]>
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 | ||
1a6bba1e RD |
649 | IMPLEMENT_ABSTRACT_CLASS(wxPyTimer, wxTimer); |
650 | ||
d55e5bfc RD |
651 | void wxPyTimer::Notify() { |
652 | bool found; | |
653 | bool blocked = wxPyBeginBlockThreads(); | |
654 | if ((found = wxPyCBH_findCallback(m_myInst, "Notify"))) | |
655 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("()")); | |
656 | wxPyEndBlockThreads(blocked); | |
657 | if (! found) | |
658 | wxTimer::Notify(); | |
659 | } | |
660 | void wxPyTimer::base_Notify() { | |
661 | wxTimer::Notify(); | |
662 | } | |
663 | ||
664 | ||
665 | ||
666 | SWIGSTATICINLINE(PyObject *) | |
667 | SWIG_FromCharPtr(const char* cptr) | |
668 | { | |
669 | size_t size = cptr ? strlen(cptr) : 0; | |
670 | if (cptr) { | |
671 | if (size > INT_MAX) { | |
672 | return SWIG_NewPointerObj(swig_const_cast(char*,cptr), | |
673 | SWIG_TypeQuery("char *"), 0); | |
674 | } else { | |
675 | return PyString_FromStringAndSize(cptr, swig_numeric_cast(int,size)); | |
676 | } | |
677 | } else { | |
678 | Py_INCREF(Py_None); | |
679 | return Py_None; | |
680 | } | |
681 | } | |
682 | ||
683 | ||
684 | SWIGSTATICINLINE(unsigned long) | |
685 | SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type, | |
686 | unsigned long max_value) | |
687 | { | |
688 | if (!PyErr_Occurred()) { | |
689 | if (value > max_value) { | |
690 | PyObject *err = | |
691 | PyString_FromFormat("value %ld is greater than '%s' minimum %ld", | |
692 | value, type, max_value); | |
693 | PyErr_SetObject(PyExc_OverflowError, err); | |
694 | Py_DECREF(err); | |
695 | } | |
696 | } | |
697 | return value; | |
698 | } | |
699 | ||
700 | ||
701 | #if UINT_MAX != ULONG_MAX | |
702 | SWIGSTATICINLINE(unsigned int) | |
703 | SWIG_AsUnsignedInt(PyObject *obj) | |
704 | { | |
705 | return swig_numeric_cast(unsigned int, | |
706 | SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj), | |
707 | "unsigned int", UINT_MAX)); | |
708 | } | |
709 | #else | |
710 | #define SWIG_AsUnsignedInt SWIG_AsUnsignedLong | |
711 | #endif | |
712 | ||
713 | ||
714 | SWIGSTATICINLINE(int) | |
715 | SWIG_CheckUnsignedInt(PyObject* obj) | |
716 | { | |
717 | SWIG_AsUnsignedInt(obj); | |
718 | if (PyErr_Occurred()) { | |
719 | PyErr_Clear(); | |
720 | return 0; | |
721 | } else { | |
722 | return 1; | |
723 | } | |
724 | } | |
725 | ||
726 | wxString Log_TimeStamp(){ | |
727 | wxString msg; | |
728 | wxLog::TimeStamp(&msg); | |
729 | return msg; | |
730 | } | |
731 | void wxLog_Destroy(wxLog *self){ delete self; } | |
732 | ||
733 | // A wxLog class that can be derived from in wxPython | |
734 | class wxPyLog : public wxLog { | |
735 | public: | |
736 | wxPyLog() : wxLog() {} | |
737 | ||
738 | virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) { | |
739 | bool found; | |
740 | bool blocked = wxPyBeginBlockThreads(); | |
741 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) { | |
742 | PyObject* s = wx2PyString(szString); | |
743 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t)); | |
744 | Py_DECREF(s); | |
745 | } | |
746 | wxPyEndBlockThreads(blocked); | |
747 | if (! found) | |
748 | wxLog::DoLog(level, szString, t); | |
749 | } | |
750 | ||
751 | virtual void DoLogString(const wxChar *szString, time_t t) { | |
752 | bool found; | |
753 | bool blocked = wxPyBeginBlockThreads(); | |
754 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) { | |
755 | PyObject* s = wx2PyString(szString); | |
756 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t)); | |
757 | Py_DECREF(s); | |
758 | } | |
759 | wxPyEndBlockThreads(blocked); | |
760 | if (! found) | |
761 | wxLog::DoLogString(szString, t); | |
762 | } | |
763 | ||
764 | PYPRIVATE; | |
765 | }; | |
766 | ||
767 | ||
768 | ||
769 | ||
770 | IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate); | |
771 | ||
772 | ||
773 | #include <wx/joystick.h> | |
774 | ||
775 | ||
776 | #if !wxUSE_JOYSTICK && !defined(__WXMSW__) | |
777 | // A C++ stub class for wxJoystick for platforms that don't have it. | |
778 | class wxJoystick : public wxObject { | |
779 | public: | |
780 | wxJoystick(int joystick = wxJOYSTICK1) { | |
781 | bool blocked = wxPyBeginBlockThreads(); | |
782 | PyErr_SetString(PyExc_NotImplementedError, | |
783 | "wxJoystick is not available on this platform."); | |
784 | wxPyEndBlockThreads(blocked); | |
785 | } | |
786 | wxPoint GetPosition() { return wxPoint(-1,-1); } | |
787 | int GetZPosition() { return -1; } | |
788 | int GetButtonState() { return -1; } | |
789 | int GetPOVPosition() { return -1; } | |
790 | int GetPOVCTSPosition() { return -1; } | |
791 | int GetRudderPosition() { return -1; } | |
792 | int GetUPosition() { return -1; } | |
793 | int GetVPosition() { return -1; } | |
794 | int GetMovementThreshold() { return -1; } | |
795 | void SetMovementThreshold(int threshold) {} | |
796 | ||
797 | bool IsOk(void) { return False; } | |
798 | int GetNumberJoysticks() { return -1; } | |
799 | int GetManufacturerId() { return -1; } | |
800 | int GetProductId() { return -1; } | |
79fccf9d | 801 | wxString GetProductName() { return wxEmptyString; } |
d55e5bfc RD |
802 | int GetXMin() { return -1; } |
803 | int GetYMin() { return -1; } | |
804 | int GetZMin() { return -1; } | |
805 | int GetXMax() { return -1; } | |
806 | int GetYMax() { return -1; } | |
807 | int GetZMax() { return -1; } | |
808 | int GetNumberButtons() { return -1; } | |
809 | int GetNumberAxes() { return -1; } | |
810 | int GetMaxButtons() { return -1; } | |
811 | int GetMaxAxes() { return -1; } | |
812 | int GetPollingMin() { return -1; } | |
813 | int GetPollingMax() { return -1; } | |
814 | int GetRudderMin() { return -1; } | |
815 | int GetRudderMax() { return -1; } | |
816 | int GetUMin() { return -1; } | |
817 | int GetUMax() { return -1; } | |
818 | int GetVMin() { return -1; } | |
819 | int GetVMax() { return -1; } | |
820 | ||
821 | bool HasRudder() { return False; } | |
822 | bool HasZ() { return False; } | |
823 | bool HasU() { return False; } | |
824 | bool HasV() { return False; } | |
825 | bool HasPOV() { return False; } | |
826 | bool HasPOV4Dir() { return False; } | |
827 | bool HasPOVCTS() { return False; } | |
828 | ||
829 | bool SetCapture(wxWindow* win, int pollingFreq = 0) { return False; } | |
830 | bool ReleaseCapture() { return False; } | |
831 | }; | |
832 | #endif | |
833 | ||
834 | ||
835 | #include <wx/sound.h> | |
836 | ||
837 | ||
838 | #if !wxUSE_SOUND | |
839 | // A C++ stub class for wxWave for platforms that don't have it. | |
840 | class wxSound : public wxObject | |
841 | { | |
842 | public: | |
843 | wxSound() { | |
844 | bool blocked = wxPyBeginBlockThreads(); | |
845 | PyErr_SetString(PyExc_NotImplementedError, | |
846 | "wxSound is not available on this platform."); | |
847 | wxPyEndBlockThreads(blocked); | |
848 | } | |
b1f29bf7 | 849 | wxSound(const wxString&/*, bool*/) { |
d55e5bfc RD |
850 | bool blocked = wxPyBeginBlockThreads(); |
851 | PyErr_SetString(PyExc_NotImplementedError, | |
852 | "wxSound is not available on this platform."); | |
853 | wxPyEndBlockThreads(blocked); | |
854 | } | |
855 | wxSound(int, const wxByte*) { | |
856 | bool blocked = wxPyBeginBlockThreads(); | |
857 | PyErr_SetString(PyExc_NotImplementedError, | |
858 | "wxSound is not available on this platform."); | |
859 | wxPyEndBlockThreads(blocked); | |
860 | } | |
861 | ||
862 | ~wxSound() {}; | |
863 | ||
b1f29bf7 | 864 | bool Create(const wxString&/*, bool*/) { return false; } |
d55e5bfc RD |
865 | bool Create(int, const wxByte*) { return false; }; |
866 | bool IsOk() { return false; }; | |
867 | bool Play(unsigned) const { return false; } | |
868 | static bool Play(const wxString&, unsigned) { return false; } | |
869 | static void Stop() {} | |
870 | }; | |
871 | ||
872 | #endif | |
873 | ||
b1f29bf7 RD |
874 | wxSound *new_wxSound(wxString const &fileName){ |
875 | if (fileName.Length() == 0) | |
876 | return new wxSound; | |
877 | else | |
878 | return new wxSound(fileName); | |
879 | } | |
880 | wxSound *new_wxSound(PyObject *data){ | |
881 | unsigned char* buffer; int size; | |
882 | wxSound *sound = NULL; | |
883 | ||
884 | bool blocked = wxPyBeginBlockThreads(); | |
885 | if (!PyArg_Parse(data, "t#", &buffer, &size)) | |
886 | goto done; | |
887 | sound = new wxSound(size, buffer); | |
888 | done: | |
889 | wxPyEndBlockThreads(blocked); | |
890 | return sound; | |
891 | } | |
892 | bool wxSound_CreateFromData(wxSound *self,PyObject *data){ | |
893 | #ifndef __WXMAC__ | |
894 | unsigned char* buffer; | |
895 | int size; | |
896 | bool rv = False; | |
897 | ||
898 | bool blocked = wxPyBeginBlockThreads(); | |
899 | if (!PyArg_Parse(data, "t#", &buffer, &size)) | |
900 | goto done; | |
901 | rv = self->Create(size, buffer); | |
902 | done: | |
903 | wxPyEndBlockThreads(blocked); | |
904 | return rv; | |
905 | #else | |
906 | bool blocked = wxPyBeginBlockThreads(); | |
907 | PyErr_SetString(PyExc_NotImplementedError, | |
908 | "Create from data is not available on this platform."); | |
909 | wxPyEndBlockThreads(blocked); | |
910 | return False; | |
911 | #endif | |
912 | } | |
d55e5bfc RD |
913 | |
914 | #include <wx/mimetype.h> | |
915 | ||
916 | PyObject *wxFileType_GetMimeType(wxFileType *self){ | |
917 | wxString str; | |
918 | if (self->GetMimeType(&str)) | |
919 | return wx2PyString(str); | |
920 | else | |
921 | RETURN_NONE(); | |
922 | } | |
923 | PyObject *wxFileType_GetMimeTypes(wxFileType *self){ | |
924 | wxArrayString arr; | |
925 | if (self->GetMimeTypes(arr)) | |
926 | return wxArrayString2PyList_helper(arr); | |
927 | else | |
928 | RETURN_NONE(); | |
929 | } | |
930 | PyObject *wxFileType_GetExtensions(wxFileType *self){ | |
931 | wxArrayString arr; | |
932 | if (self->GetExtensions(arr)) | |
933 | return wxArrayString2PyList_helper(arr); | |
934 | else | |
935 | RETURN_NONE(); | |
936 | } | |
937 | wxIcon *wxFileType_GetIcon(wxFileType *self){ | |
938 | wxIconLocation loc; | |
939 | if (self->GetIcon(&loc)) | |
940 | return new wxIcon(loc); | |
941 | else | |
942 | return NULL; | |
943 | } | |
944 | PyObject *wxFileType_GetIconInfo(wxFileType *self){ | |
945 | wxIconLocation loc; | |
946 | if (self->GetIcon(&loc)) { | |
947 | wxString iconFile = loc.GetFileName(); | |
948 | int iconIndex = -1; | |
949 | ||
950 | iconIndex = loc.GetIndex(); | |
951 | ||
952 | // Make a tuple and put the values in it | |
953 | bool blocked = wxPyBeginBlockThreads(); | |
954 | PyObject* tuple = PyTuple_New(3); | |
955 | PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(loc), | |
956 | wxT("wxIcon"), True)); | |
957 | PyTuple_SetItem(tuple, 1, wx2PyString(iconFile)); | |
958 | PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex)); | |
959 | wxPyEndBlockThreads(blocked); | |
960 | return tuple; | |
961 | } | |
962 | else | |
963 | RETURN_NONE(); | |
964 | } | |
965 | PyObject *wxFileType_GetDescription(wxFileType *self){ | |
966 | wxString str; | |
967 | if (self->GetDescription(&str)) | |
968 | return wx2PyString(str); | |
969 | else | |
970 | RETURN_NONE(); | |
971 | } | |
972 | PyObject *wxFileType_GetOpenCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
973 | wxString str; | |
974 | if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype))) | |
975 | return wx2PyString(str); | |
976 | else | |
977 | RETURN_NONE(); | |
978 | } | |
979 | PyObject *wxFileType_GetPrintCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
980 | wxString str; | |
981 | if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype))) | |
982 | return wx2PyString(str); | |
983 | else | |
984 | RETURN_NONE(); | |
985 | } | |
986 | PyObject *wxFileType_GetAllCommands(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
987 | wxArrayString verbs; | |
988 | wxArrayString commands; | |
989 | if (self->GetAllCommands(&verbs, &commands, | |
990 | wxFileType::MessageParameters(filename, mimetype))) { | |
991 | bool blocked = wxPyBeginBlockThreads(); | |
992 | PyObject* tuple = PyTuple_New(2); | |
993 | PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs)); | |
994 | PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands)); | |
995 | wxPyEndBlockThreads(blocked); | |
996 | return tuple; | |
997 | } | |
998 | else | |
999 | RETURN_NONE(); | |
1000 | } | |
1001 | wxString FileType_ExpandCommand(wxString const &command,wxString const &filename,wxString const &mimetype){ | |
1002 | return wxFileType::ExpandCommand(command, | |
1003 | wxFileType::MessageParameters(filename, mimetype)); | |
1004 | } | |
1005 | PyObject *wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self){ | |
1006 | wxArrayString arr; | |
1007 | self->EnumAllFileTypes(arr); | |
1008 | return wxArrayString2PyList_helper(arr); | |
1009 | } | |
1010 | ||
1011 | #include <wx/artprov.h> | |
1012 | ||
1013 | static const wxString wxPyART_TOOLBAR(wxART_TOOLBAR); | |
1014 | static const wxString wxPyART_MENU(wxART_MENU); | |
1015 | static const wxString wxPyART_FRAME_ICON(wxART_FRAME_ICON); | |
1016 | static const wxString wxPyART_CMN_DIALOG(wxART_CMN_DIALOG); | |
1017 | static const wxString wxPyART_HELP_BROWSER(wxART_HELP_BROWSER); | |
1018 | static const wxString wxPyART_MESSAGE_BOX(wxART_MESSAGE_BOX); | |
1019 | static const wxString wxPyART_OTHER(wxART_OTHER); | |
1020 | static const wxString wxPyART_ADD_BOOKMARK(wxART_ADD_BOOKMARK); | |
1021 | static const wxString wxPyART_DEL_BOOKMARK(wxART_DEL_BOOKMARK); | |
1022 | static const wxString wxPyART_HELP_SIDE_PANEL(wxART_HELP_SIDE_PANEL); | |
1023 | static const wxString wxPyART_HELP_SETTINGS(wxART_HELP_SETTINGS); | |
1024 | static const wxString wxPyART_HELP_BOOK(wxART_HELP_BOOK); | |
1025 | static const wxString wxPyART_HELP_FOLDER(wxART_HELP_FOLDER); | |
1026 | static const wxString wxPyART_HELP_PAGE(wxART_HELP_PAGE); | |
1027 | static const wxString wxPyART_GO_BACK(wxART_GO_BACK); | |
1028 | static const wxString wxPyART_GO_FORWARD(wxART_GO_FORWARD); | |
1029 | static const wxString wxPyART_GO_UP(wxART_GO_UP); | |
1030 | static const wxString wxPyART_GO_DOWN(wxART_GO_DOWN); | |
1031 | static const wxString wxPyART_GO_TO_PARENT(wxART_GO_TO_PARENT); | |
1032 | static const wxString wxPyART_GO_HOME(wxART_GO_HOME); | |
1033 | static const wxString wxPyART_FILE_OPEN(wxART_FILE_OPEN); | |
1034 | static const wxString wxPyART_PRINT(wxART_PRINT); | |
1035 | static const wxString wxPyART_HELP(wxART_HELP); | |
1036 | static const wxString wxPyART_TIP(wxART_TIP); | |
1037 | static const wxString wxPyART_REPORT_VIEW(wxART_REPORT_VIEW); | |
1038 | static const wxString wxPyART_LIST_VIEW(wxART_LIST_VIEW); | |
1039 | static const wxString wxPyART_NEW_DIR(wxART_NEW_DIR); | |
1040 | static const wxString wxPyART_FOLDER(wxART_FOLDER); | |
1041 | static const wxString wxPyART_GO_DIR_UP(wxART_GO_DIR_UP); | |
1042 | static const wxString wxPyART_EXECUTABLE_FILE(wxART_EXECUTABLE_FILE); | |
1043 | static const wxString wxPyART_NORMAL_FILE(wxART_NORMAL_FILE); | |
1044 | static const wxString wxPyART_TICK_MARK(wxART_TICK_MARK); | |
1045 | static const wxString wxPyART_CROSS_MARK(wxART_CROSS_MARK); | |
1046 | static const wxString wxPyART_ERROR(wxART_ERROR); | |
1047 | static const wxString wxPyART_QUESTION(wxART_QUESTION); | |
1048 | static const wxString wxPyART_WARNING(wxART_WARNING); | |
1049 | static const wxString wxPyART_INFORMATION(wxART_INFORMATION); | |
1050 | static const wxString wxPyART_MISSING_IMAGE(wxART_MISSING_IMAGE); | |
1051 | // Python aware wxArtProvider | |
1052 | class wxPyArtProvider : public wxArtProvider { | |
1053 | public: | |
1054 | ||
1055 | virtual wxBitmap CreateBitmap(const wxArtID& id, | |
1056 | const wxArtClient& client, | |
1057 | const wxSize& size) { | |
1058 | wxBitmap rval = wxNullBitmap; | |
1059 | bool blocked = wxPyBeginBlockThreads(); | |
1060 | if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) { | |
1061 | PyObject* so = wxPyConstructObject((void*)&size, wxT("wxSize"), 0); | |
1062 | PyObject* ro; | |
1063 | wxBitmap* ptr; | |
1064 | PyObject* s1, *s2; | |
1065 | s1 = wx2PyString(id); | |
1066 | s2 = wx2PyString(client); | |
1067 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so)); | |
1068 | Py_DECREF(so); | |
1069 | Py_DECREF(s1); | |
1070 | Py_DECREF(s2); | |
1071 | if (ro) { | |
1072 | if (wxPyConvertSwigPtr(ro, (void**)&ptr, wxT("wxBitmap"))) | |
1073 | rval = *ptr; | |
1074 | Py_DECREF(ro); | |
1075 | } | |
1076 | } | |
1077 | wxPyEndBlockThreads(blocked); | |
1078 | return rval; | |
1079 | } | |
1080 | ||
1081 | PYPRIVATE; | |
1082 | }; | |
1083 | ||
1084 | void wxPyArtProvider_Destroy(wxPyArtProvider *self){ delete self; } | |
1085 | ||
1086 | ||
1087 | ||
1088 | static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) { | |
1089 | PyObject* ret = PyTuple_New(3); | |
1090 | if (ret) { | |
1091 | PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag)); | |
1092 | PyTuple_SET_ITEM(ret, 1, wx2PyString(str)); | |
1093 | PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index)); | |
1094 | } | |
1095 | return ret; | |
1096 | } | |
1097 | ||
1098 | PyObject *wxConfigBase_GetFirstGroup(wxConfigBase *self){ | |
1099 | bool cont; | |
1100 | long index = 0; | |
1101 | wxString value; | |
1102 | ||
1103 | cont = self->GetFirstGroup(value, index); | |
1104 | return __EnumerationHelper(cont, value, index); | |
1105 | } | |
1106 | PyObject *wxConfigBase_GetNextGroup(wxConfigBase *self,long index){ | |
1107 | bool cont; | |
1108 | wxString value; | |
1109 | ||
1110 | cont = self->GetNextGroup(value, index); | |
1111 | return __EnumerationHelper(cont, value, index); | |
1112 | } | |
1113 | PyObject *wxConfigBase_GetFirstEntry(wxConfigBase *self){ | |
1114 | bool cont; | |
1115 | long index = 0; | |
1116 | wxString value; | |
1117 | ||
1118 | cont = self->GetFirstEntry(value, index); | |
1119 | return __EnumerationHelper(cont, value, index); | |
1120 | } | |
1121 | PyObject *wxConfigBase_GetNextEntry(wxConfigBase *self,long index){ | |
1122 | bool cont; | |
1123 | wxString value; | |
1124 | ||
1125 | cont = self->GetNextEntry(value, index); | |
1126 | return __EnumerationHelper(cont, value, index); | |
1127 | } | |
1128 | long wxConfigBase_ReadInt(wxConfigBase *self,wxString const &key,long defaultVal){ | |
1129 | long rv; | |
1130 | self->Read(key, &rv, defaultVal); | |
1131 | return rv; | |
1132 | } | |
1133 | ||
1134 | SWIGSTATICINLINE(double) | |
1135 | SWIG_AsDouble(PyObject *obj) | |
1136 | { | |
1137 | if (PyNumber_Check(obj)) | |
1138 | return PyFloat_AsDouble(obj); | |
1139 | else { | |
1140 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
1141 | obj->ob_type->tp_name); | |
1142 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
1143 | Py_DECREF(errmsg); | |
1144 | return 0; | |
1145 | } | |
1146 | } | |
1147 | ||
1148 | ||
1149 | SWIGSTATICINLINE(int) | |
1150 | SWIG_CheckDouble(PyObject* obj) | |
1151 | { | |
1152 | SWIG_AsDouble(obj); | |
1153 | if (PyErr_Occurred()) { | |
1154 | PyErr_Clear(); | |
1155 | return 0; | |
1156 | } else { | |
1157 | return 1; | |
1158 | } | |
1159 | } | |
1160 | ||
1161 | double wxConfigBase_ReadFloat(wxConfigBase *self,wxString const &key,double defaultVal){ | |
1162 | double rv; | |
1163 | self->Read(key, &rv, defaultVal); | |
1164 | return rv; | |
1165 | } | |
1166 | bool wxConfigBase_ReadBool(wxConfigBase *self,wxString const &key,bool defaultVal){ | |
1167 | bool rv; | |
1168 | self->Read(key, &rv, defaultVal); | |
1169 | return rv; | |
1170 | } | |
1171 | ||
1172 | #include <wx/datetime.h> | |
1173 | ||
1174 | ||
1175 | static const wxString wxPyDateFormatStr(wxT("%c")); | |
1176 | static const wxString wxPyTimeSpanFormatStr(wxT("%H:%M:%S")); | |
1177 | ||
1178 | #define LOCAL_TZ wxDateTime::Local | |
1179 | ||
1180 | ||
1181 | #if UINT_MAX < LONG_MAX | |
1182 | #define SWIG_FromUnsignedInt SWIG_FromLong | |
1183 | #else | |
1184 | #define SWIG_FromUnsignedInt SWIG_FromUnsignedLong | |
1185 | #endif | |
1186 | ||
1187 | wxDateTime wxDateTime___add____SWIG_0(wxDateTime *self,wxTimeSpan const &other){ return *self + other; } | |
1188 | wxDateTime wxDateTime___add____SWIG_1(wxDateTime *self,wxDateSpan const &other){ return *self + other; } | |
1189 | wxTimeSpan wxDateTime___sub____SWIG_0(wxDateTime *self,wxDateTime const &other){ return *self - other; } | |
1190 | wxDateTime wxDateTime___sub____SWIG_1(wxDateTime *self,wxTimeSpan const &other){ return *self - other; } | |
1191 | wxDateTime wxDateTime___sub____SWIG_2(wxDateTime *self,wxDateSpan const &other){ return *self - other; } | |
1192 | bool wxDateTime___lt__(wxDateTime *self,wxDateTime const *other){ | |
1193 | if (!other || !self->IsValid() || !other->IsValid()) return self < other; | |
1194 | return (*self < *other); | |
1195 | } | |
1196 | bool wxDateTime___le__(wxDateTime *self,wxDateTime const *other){ | |
1197 | if (!other || !self->IsValid() || !other->IsValid()) return self <= other; | |
1198 | return (*self <= *other); | |
1199 | } | |
1200 | bool wxDateTime___gt__(wxDateTime *self,wxDateTime const *other){ | |
1201 | if (!other || !self->IsValid() || !other->IsValid()) return self > other; | |
1202 | return (*self > *other); | |
1203 | } | |
1204 | bool wxDateTime___ge__(wxDateTime *self,wxDateTime const *other){ | |
1205 | if (!other || !self->IsValid() || !other->IsValid()) return self >= other; | |
1206 | return (*self >= *other); | |
1207 | } | |
1208 | bool wxDateTime___eq__(wxDateTime *self,wxDateTime const *other){ | |
1209 | if (!other || !self->IsValid() || !other->IsValid()) return self == other; | |
1210 | return (*self == *other); | |
1211 | } | |
1212 | bool wxDateTime___ne__(wxDateTime *self,wxDateTime const *other){ | |
1213 | if (!other || !self->IsValid() || !other->IsValid()) return self != other; | |
1214 | return (*self != *other); | |
1215 | } | |
1216 | int wxDateTime_ParseRfc822Date(wxDateTime *self,wxString const &date){ | |
1217 | const wxChar* rv; | |
1218 | const wxChar* _date = date; | |
1219 | rv = self->ParseRfc822Date(_date); | |
1220 | if (rv == NULL) return -1; | |
1221 | return rv - _date; | |
1222 | } | |
1223 | int wxDateTime_ParseFormat(wxDateTime *self,wxString const &date,wxString const &format,wxDateTime const &dateDef){ | |
1224 | const wxChar* rv; | |
1225 | const wxChar* _date = date; | |
1226 | rv = self->ParseFormat(_date, format, dateDef); | |
1227 | if (rv == NULL) return -1; | |
1228 | return rv - _date; | |
1229 | } | |
1230 | int wxDateTime_ParseDateTime(wxDateTime *self,wxString const &datetime){ | |
1231 | const wxChar* rv; | |
1232 | const wxChar* _datetime = datetime; | |
1233 | rv = self->ParseDateTime(_datetime); | |
1234 | if (rv == NULL) return -1; | |
1235 | return rv - _datetime; | |
1236 | } | |
1237 | int wxDateTime_ParseDate(wxDateTime *self,wxString const &date){ | |
1238 | const wxChar* rv; | |
1239 | const wxChar* _date = date; | |
1240 | rv = self->ParseDate(_date); | |
1241 | if (rv == NULL) return -1; | |
1242 | return rv - _date; | |
1243 | } | |
1244 | int wxDateTime_ParseTime(wxDateTime *self,wxString const &time){ | |
1245 | const wxChar* rv; | |
1246 | const wxChar* _time = time; | |
1247 | rv = self->ParseTime(_time); | |
1248 | if (rv == NULL) return -1; | |
1249 | return rv - _time; | |
1250 | } | |
1251 | wxTimeSpan wxTimeSpan___add__(wxTimeSpan *self,wxTimeSpan const &other){ return *self + other; } | |
1252 | wxTimeSpan wxTimeSpan___sub__(wxTimeSpan *self,wxTimeSpan const &other){ return *self - other; } | |
1253 | wxTimeSpan wxTimeSpan___mul__(wxTimeSpan *self,int n){ return *self * n; } | |
1254 | wxTimeSpan wxTimeSpan___rmul__(wxTimeSpan *self,int n){ return n * *self; } | |
1255 | bool wxTimeSpan___lt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self < *other) : False; } | |
1256 | bool wxTimeSpan___le__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self <= *other) : False; } | |
1257 | bool wxTimeSpan___gt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self > *other) : True; } | |
1258 | bool wxTimeSpan___ge__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self >= *other) : True; } | |
1259 | bool wxTimeSpan___eq__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self == *other) : False; } | |
1260 | bool wxTimeSpan___ne__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self != *other) : True; } | |
1261 | wxDateSpan wxDateSpan___add__(wxDateSpan *self,wxDateSpan const &other){ return *self + other; } | |
1262 | wxDateSpan wxDateSpan___sub__(wxDateSpan *self,wxDateSpan const &other){ return *self - other; } | |
1263 | wxDateSpan wxDateSpan___mul__(wxDateSpan *self,int n){ return *self * n; } | |
1264 | wxDateSpan wxDateSpan___rmul__(wxDateSpan *self,int n){ return n * *self; } | |
1265 | bool wxDateSpan___eq__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self == *other) : False; } | |
1266 | bool wxDateSpan___ne__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self != *other) : True; } | |
1267 | ||
1268 | #include <wx/dataobj.h> | |
1269 | ||
1270 | // Create a new class for wxPython to use | |
1271 | class wxPyDataObjectSimple : public wxDataObjectSimple { | |
1272 | public: | |
1273 | wxPyDataObjectSimple(const wxDataFormat& format = wxFormatInvalid) | |
1274 | : wxDataObjectSimple(format) {} | |
1275 | ||
1276 | DEC_PYCALLBACK_SIZET__const(GetDataSize); | |
1277 | bool GetDataHere(void *buf) const; | |
1278 | bool SetData(size_t len, const void *buf) const; | |
1279 | PYPRIVATE; | |
1280 | }; | |
1281 | ||
1282 | IMP_PYCALLBACK_SIZET__const(wxPyDataObjectSimple, wxDataObjectSimple, GetDataSize); | |
1283 | ||
1284 | bool wxPyDataObjectSimple::GetDataHere(void *buf) const { | |
1285 | // We need to get the data for this object and write it to buf. I think | |
1286 | // the best way to do this for wxPython is to have the Python method | |
1287 | // return either a string or None and then act appropriately with the | |
1288 | // C++ version. | |
1289 | ||
1290 | bool rval = False; | |
1291 | bool blocked = wxPyBeginBlockThreads(); | |
1292 | if (wxPyCBH_findCallback(m_myInst, "GetDataHere")) { | |
1293 | PyObject* ro; | |
1294 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
1295 | if (ro) { | |
1296 | rval = (ro != Py_None && PyString_Check(ro)); | |
1297 | if (rval) | |
1298 | memcpy(buf, PyString_AsString(ro), PyString_Size(ro)); | |
1299 | Py_DECREF(ro); | |
1300 | } | |
1301 | } | |
1302 | wxPyEndBlockThreads(blocked); | |
1303 | return rval; | |
1304 | } | |
1305 | ||
1306 | bool wxPyDataObjectSimple::SetData(size_t len, const void *buf) const{ | |
1307 | // For this one we simply need to make a string from buf and len | |
1308 | // and send it to the Python method. | |
1309 | bool rval = False; | |
1310 | bool blocked = wxPyBeginBlockThreads(); | |
1311 | if (wxPyCBH_findCallback(m_myInst, "SetData")) { | |
1312 | PyObject* data = PyString_FromStringAndSize((char*)buf, len); | |
1313 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", data)); | |
1314 | Py_DECREF(data); | |
1315 | } | |
1316 | wxPyEndBlockThreads(blocked); | |
1317 | return rval; | |
1318 | } | |
1319 | ||
1320 | // Create a new class for wxPython to use | |
1321 | class wxPyTextDataObject : public wxTextDataObject { | |
1322 | public: | |
1323 | wxPyTextDataObject(const wxString& text = wxPyEmptyString) | |
1324 | : wxTextDataObject(text) {} | |
1325 | ||
1326 | DEC_PYCALLBACK_SIZET__const(GetTextLength); | |
1327 | DEC_PYCALLBACK_STRING__const(GetText); | |
1328 | DEC_PYCALLBACK__STRING(SetText); | |
1329 | PYPRIVATE; | |
1330 | }; | |
1331 | ||
1332 | IMP_PYCALLBACK_SIZET__const(wxPyTextDataObject, wxTextDataObject, GetTextLength); | |
1333 | IMP_PYCALLBACK_STRING__const(wxPyTextDataObject, wxTextDataObject, GetText); | |
1334 | IMP_PYCALLBACK__STRING(wxPyTextDataObject, wxTextDataObject, SetText); | |
1335 | ||
1336 | ||
1337 | // Create a new class for wxPython to use | |
1338 | class wxPyBitmapDataObject : public wxBitmapDataObject { | |
1339 | public: | |
1340 | wxPyBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap) | |
1341 | : wxBitmapDataObject(bitmap) {} | |
1342 | ||
1343 | wxBitmap GetBitmap() const; | |
1344 | void SetBitmap(const wxBitmap& bitmap); | |
1345 | PYPRIVATE; | |
1346 | }; | |
1347 | ||
1348 | wxBitmap wxPyBitmapDataObject::GetBitmap() const { | |
1349 | wxBitmap* rval = &wxNullBitmap; | |
1350 | bool blocked = wxPyBeginBlockThreads(); | |
1351 | if (wxPyCBH_findCallback(m_myInst, "GetBitmap")) { | |
1352 | PyObject* ro; | |
1353 | wxBitmap* ptr; | |
1354 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
1355 | if (ro) { | |
1356 | if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxBitmap"))) | |
1357 | rval = ptr; | |
1358 | Py_DECREF(ro); | |
1359 | } | |
1360 | } | |
1361 | wxPyEndBlockThreads(blocked); | |
1362 | return *rval; | |
1363 | } | |
1364 | ||
1365 | void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) { | |
1366 | bool blocked = wxPyBeginBlockThreads(); | |
1367 | if (wxPyCBH_findCallback(m_myInst, "SetBitmap")) { | |
1368 | PyObject* bo = wxPyConstructObject((void*)&bitmap, wxT("wxBitmap"), False); | |
1369 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", bo)); | |
1370 | Py_DECREF(bo); | |
1371 | } | |
1372 | wxPyEndBlockThreads(blocked); | |
1373 | } | |
1374 | ||
1375 | void wxCustomDataObject_TakeData(wxCustomDataObject *self,PyObject *data){ | |
1376 | if (PyString_Check(data)) { | |
1377 | // for Python we just call SetData here since we always need it to make a copy. | |
1378 | self->SetData(PyString_Size(data), PyString_AsString(data)); | |
1379 | } | |
1380 | else { | |
1381 | // raise a TypeError if not a string | |
1382 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
1383 | } | |
1384 | } | |
1385 | bool wxCustomDataObject_SetData(wxCustomDataObject *self,PyObject *data){ | |
1386 | if (PyString_Check(data)) { | |
1387 | return self->SetData(PyString_Size(data), PyString_AsString(data)); | |
1388 | } | |
1389 | else { | |
1390 | // raise a TypeError if not a string | |
1391 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
1392 | return False; | |
1393 | } | |
1394 | } | |
1395 | PyObject *wxCustomDataObject_GetData(wxCustomDataObject *self){ | |
1396 | return PyString_FromStringAndSize((char*)self->GetData(), self->GetSize()); | |
1397 | } | |
1398 | ||
1399 | #include <wx/metafile.h> | |
1400 | ||
1401 | ||
1402 | IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback); | |
1403 | ||
1404 | ||
1405 | IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave); | |
1406 | IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter); | |
1407 | IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver); | |
1408 | IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData); | |
1409 | IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop); | |
1410 | ||
1411 | ||
1412 | class wxPyTextDropTarget : public wxTextDropTarget { | |
1413 | public: | |
1414 | wxPyTextDropTarget() {} | |
1415 | ||
1416 | DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText); | |
1417 | ||
1418 | DEC_PYCALLBACK__(OnLeave); | |
1419 | DEC_PYCALLBACK_DR_2WXCDR(OnEnter); | |
1420 | DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); | |
1421 | DEC_PYCALLBACK_DR_2WXCDR(OnData); | |
1422 | DEC_PYCALLBACK_BOOL_INTINT(OnDrop); | |
1423 | ||
1424 | PYPRIVATE; | |
1425 | }; | |
1426 | ||
1427 | IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText); | |
1428 | IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave); | |
1429 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter); | |
1430 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver); | |
1431 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData); | |
1432 | IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop); | |
1433 | ||
1434 | ||
1435 | ||
1436 | class wxPyFileDropTarget : public wxFileDropTarget { | |
1437 | public: | |
1438 | wxPyFileDropTarget() {} | |
1439 | ||
1440 | virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames); | |
1441 | ||
1442 | DEC_PYCALLBACK__(OnLeave); | |
1443 | DEC_PYCALLBACK_DR_2WXCDR(OnEnter); | |
1444 | DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); | |
1445 | DEC_PYCALLBACK_DR_2WXCDR(OnData); | |
1446 | DEC_PYCALLBACK_BOOL_INTINT(OnDrop); | |
1447 | ||
1448 | PYPRIVATE; | |
1449 | }; | |
1450 | ||
1451 | bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y, | |
1452 | const wxArrayString& filenames) { | |
1453 | bool rval = False; | |
1454 | bool blocked = wxPyBeginBlockThreads(); | |
1455 | if (wxPyCBH_findCallback(m_myInst, "OnDropFiles")) { | |
1456 | PyObject* list = wxArrayString2PyList_helper(filenames); | |
1457 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",x,y,list)); | |
1458 | Py_DECREF(list); | |
1459 | } | |
1460 | wxPyEndBlockThreads(blocked); | |
1461 | return rval; | |
1462 | } | |
1463 | ||
1464 | ||
1465 | ||
1466 | IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave); | |
1467 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter); | |
1468 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver); | |
1469 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData); | |
1470 | IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop); | |
1471 | ||
1472 | ||
1473 | ||
1474 | ||
1475 | bool wxClipboardLocker___nonzero__(wxClipboardLocker *self){ return !!(*self); } | |
1476 | ||
1477 | #include "wx/display.h" | |
1478 | ||
1479 | bool wxVideoMode___eq__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self == *other) : False; } | |
1480 | bool wxVideoMode___ne__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self != *other) : True; } | |
1481 | PyObject *wxDisplay_GetModes(wxDisplay *self,wxVideoMode const &mode){ | |
1482 | PyObject* pyList = NULL; | |
1483 | wxArrayVideoModes arr = self->GetModes(mode); | |
1484 | bool blocked = wxPyBeginBlockThreads(); | |
1485 | pyList = PyList_New(0); | |
1486 | for (int i=0; i < arr.GetCount(); i++) { | |
1487 | wxVideoMode* m = new wxVideoMode(arr.Item(i)); | |
1488 | PyObject* pyObj = wxPyConstructObject(m, wxT("wxVideoMode"), true); | |
1489 | PyList_Append(pyList, pyObj); | |
1490 | } | |
1491 | wxPyEndBlockThreads(blocked); | |
1492 | return pyList; | |
1493 | } | |
1494 | #ifdef __cplusplus | |
1495 | extern "C" { | |
1496 | #endif | |
1497 | static PyObject *_wrap_SystemSettings_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1498 | PyObject *resultobj; | |
1499 | int arg1 ; | |
1500 | wxColour result; | |
1501 | PyObject * obj0 = 0 ; | |
1502 | char *kwnames[] = { | |
1503 | (char *) "index", NULL | |
1504 | }; | |
1505 | ||
1506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetColour",kwnames,&obj0)) goto fail; | |
1507 | arg1 = (wxSystemColour) SWIG_AsInt(obj0); | |
1508 | if (PyErr_Occurred()) SWIG_fail; | |
1509 | { | |
1510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1511 | result = wxSystemSettings::GetColour((wxSystemColour )arg1); | |
1512 | ||
1513 | wxPyEndAllowThreads(__tstate); | |
1514 | if (PyErr_Occurred()) SWIG_fail; | |
1515 | } | |
1516 | { | |
1517 | wxColour * resultptr; | |
1518 | resultptr = new wxColour((wxColour &) result); | |
1519 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
1520 | } | |
1521 | return resultobj; | |
1522 | fail: | |
1523 | return NULL; | |
1524 | } | |
1525 | ||
1526 | ||
1527 | static PyObject *_wrap_SystemSettings_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1528 | PyObject *resultobj; | |
1529 | int arg1 ; | |
1530 | wxFont result; | |
1531 | PyObject * obj0 = 0 ; | |
1532 | char *kwnames[] = { | |
1533 | (char *) "index", NULL | |
1534 | }; | |
1535 | ||
1536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetFont",kwnames,&obj0)) goto fail; | |
1537 | arg1 = (wxSystemFont) SWIG_AsInt(obj0); | |
1538 | if (PyErr_Occurred()) SWIG_fail; | |
1539 | { | |
1540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1541 | result = wxSystemSettings::GetFont((wxSystemFont )arg1); | |
1542 | ||
1543 | wxPyEndAllowThreads(__tstate); | |
1544 | if (PyErr_Occurred()) SWIG_fail; | |
1545 | } | |
1546 | { | |
1547 | wxFont * resultptr; | |
1548 | resultptr = new wxFont((wxFont &) result); | |
1549 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
1550 | } | |
1551 | return resultobj; | |
1552 | fail: | |
1553 | return NULL; | |
1554 | } | |
1555 | ||
1556 | ||
1557 | static PyObject *_wrap_SystemSettings_GetMetric(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1558 | PyObject *resultobj; | |
1559 | int arg1 ; | |
1560 | int result; | |
1561 | PyObject * obj0 = 0 ; | |
1562 | char *kwnames[] = { | |
1563 | (char *) "index", NULL | |
1564 | }; | |
1565 | ||
1566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetMetric",kwnames,&obj0)) goto fail; | |
1567 | arg1 = (wxSystemMetric) SWIG_AsInt(obj0); | |
1568 | if (PyErr_Occurred()) SWIG_fail; | |
1569 | { | |
1570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1571 | result = (int)wxSystemSettings::GetMetric((wxSystemMetric )arg1); | |
1572 | ||
1573 | wxPyEndAllowThreads(__tstate); | |
1574 | if (PyErr_Occurred()) SWIG_fail; | |
1575 | } | |
1576 | resultobj = SWIG_FromInt((int)result); | |
1577 | return resultobj; | |
1578 | fail: | |
1579 | return NULL; | |
1580 | } | |
1581 | ||
1582 | ||
1583 | static PyObject *_wrap_SystemSettings_HasFeature(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1584 | PyObject *resultobj; | |
1585 | int arg1 ; | |
1586 | bool result; | |
1587 | PyObject * obj0 = 0 ; | |
1588 | char *kwnames[] = { | |
1589 | (char *) "index", NULL | |
1590 | }; | |
1591 | ||
1592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_HasFeature",kwnames,&obj0)) goto fail; | |
1593 | arg1 = (wxSystemFeature) SWIG_AsInt(obj0); | |
1594 | if (PyErr_Occurred()) SWIG_fail; | |
1595 | { | |
1596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1597 | result = (bool)wxSystemSettings::HasFeature((wxSystemFeature )arg1); | |
1598 | ||
1599 | wxPyEndAllowThreads(__tstate); | |
1600 | if (PyErr_Occurred()) SWIG_fail; | |
1601 | } | |
1602 | { | |
1603 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1604 | } | |
1605 | return resultobj; | |
1606 | fail: | |
1607 | return NULL; | |
1608 | } | |
1609 | ||
1610 | ||
1611 | static PyObject *_wrap_SystemSettings_GetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1612 | PyObject *resultobj; | |
1613 | int result; | |
1614 | char *kwnames[] = { | |
1615 | NULL | |
1616 | }; | |
1617 | ||
1618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SystemSettings_GetScreenType",kwnames)) goto fail; | |
1619 | { | |
1620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1621 | result = (int)wxSystemSettings::GetScreenType(); | |
1622 | ||
1623 | wxPyEndAllowThreads(__tstate); | |
1624 | if (PyErr_Occurred()) SWIG_fail; | |
1625 | } | |
1626 | resultobj = SWIG_FromInt((int)result); | |
1627 | return resultobj; | |
1628 | fail: | |
1629 | return NULL; | |
1630 | } | |
1631 | ||
1632 | ||
1633 | static PyObject *_wrap_SystemSettings_SetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1634 | PyObject *resultobj; | |
1635 | int arg1 ; | |
1636 | PyObject * obj0 = 0 ; | |
1637 | char *kwnames[] = { | |
1638 | (char *) "screen", NULL | |
1639 | }; | |
1640 | ||
1641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_SetScreenType",kwnames,&obj0)) goto fail; | |
1642 | arg1 = (wxSystemScreenType) SWIG_AsInt(obj0); | |
1643 | if (PyErr_Occurred()) SWIG_fail; | |
1644 | { | |
1645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1646 | wxSystemSettings::SetScreenType((wxSystemScreenType )arg1); | |
1647 | ||
1648 | wxPyEndAllowThreads(__tstate); | |
1649 | if (PyErr_Occurred()) SWIG_fail; | |
1650 | } | |
1651 | Py_INCREF(Py_None); resultobj = Py_None; | |
1652 | return resultobj; | |
1653 | fail: | |
1654 | return NULL; | |
1655 | } | |
1656 | ||
1657 | ||
1658 | static PyObject * SystemSettings_swigregister(PyObject *self, PyObject *args) { | |
1659 | PyObject *obj; | |
1660 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1661 | SWIG_TypeClientData(SWIGTYPE_p_wxSystemSettings, obj); | |
1662 | Py_INCREF(obj); | |
1663 | return Py_BuildValue((char *)""); | |
1664 | } | |
1665 | static PyObject *_wrap_new_SystemOptions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1666 | PyObject *resultobj; | |
1667 | wxSystemOptions *result; | |
1668 | char *kwnames[] = { | |
1669 | NULL | |
1670 | }; | |
1671 | ||
1672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SystemOptions",kwnames)) goto fail; | |
1673 | { | |
1674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1675 | result = (wxSystemOptions *)new wxSystemOptions(); | |
1676 | ||
1677 | wxPyEndAllowThreads(__tstate); | |
1678 | if (PyErr_Occurred()) SWIG_fail; | |
1679 | } | |
1680 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSystemOptions, 1); | |
1681 | return resultobj; | |
1682 | fail: | |
1683 | return NULL; | |
1684 | } | |
1685 | ||
1686 | ||
1687 | static PyObject *_wrap_SystemOptions_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1688 | PyObject *resultobj; | |
1689 | wxString *arg1 = 0 ; | |
1690 | wxString *arg2 = 0 ; | |
1691 | bool temp1 = False ; | |
1692 | bool temp2 = False ; | |
1693 | PyObject * obj0 = 0 ; | |
1694 | PyObject * obj1 = 0 ; | |
1695 | char *kwnames[] = { | |
1696 | (char *) "name",(char *) "value", NULL | |
1697 | }; | |
1698 | ||
1699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOption",kwnames,&obj0,&obj1)) goto fail; | |
1700 | { | |
1701 | arg1 = wxString_in_helper(obj0); | |
1702 | if (arg1 == NULL) SWIG_fail; | |
1703 | temp1 = True; | |
1704 | } | |
1705 | { | |
1706 | arg2 = wxString_in_helper(obj1); | |
1707 | if (arg2 == NULL) SWIG_fail; | |
1708 | temp2 = True; | |
1709 | } | |
1710 | { | |
1711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1712 | wxSystemOptions::SetOption((wxString const &)*arg1,(wxString const &)*arg2); | |
1713 | ||
1714 | wxPyEndAllowThreads(__tstate); | |
1715 | if (PyErr_Occurred()) SWIG_fail; | |
1716 | } | |
1717 | Py_INCREF(Py_None); resultobj = Py_None; | |
1718 | { | |
1719 | if (temp1) | |
1720 | delete arg1; | |
1721 | } | |
1722 | { | |
1723 | if (temp2) | |
1724 | delete arg2; | |
1725 | } | |
1726 | return resultobj; | |
1727 | fail: | |
1728 | { | |
1729 | if (temp1) | |
1730 | delete arg1; | |
1731 | } | |
1732 | { | |
1733 | if (temp2) | |
1734 | delete arg2; | |
1735 | } | |
1736 | return NULL; | |
1737 | } | |
1738 | ||
1739 | ||
1740 | static PyObject *_wrap_SystemOptions_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1741 | PyObject *resultobj; | |
1742 | wxString *arg1 = 0 ; | |
1743 | int arg2 ; | |
1744 | bool temp1 = False ; | |
1745 | PyObject * obj0 = 0 ; | |
1746 | PyObject * obj1 = 0 ; | |
1747 | char *kwnames[] = { | |
1748 | (char *) "name",(char *) "value", NULL | |
1749 | }; | |
1750 | ||
1751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOptionInt",kwnames,&obj0,&obj1)) goto fail; | |
1752 | { | |
1753 | arg1 = wxString_in_helper(obj0); | |
1754 | if (arg1 == NULL) SWIG_fail; | |
1755 | temp1 = True; | |
1756 | } | |
1757 | arg2 = (int) SWIG_AsInt(obj1); | |
1758 | if (PyErr_Occurred()) SWIG_fail; | |
1759 | { | |
1760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1761 | wxSystemOptions::SetOption((wxString const &)*arg1,arg2); | |
1762 | ||
1763 | wxPyEndAllowThreads(__tstate); | |
1764 | if (PyErr_Occurred()) SWIG_fail; | |
1765 | } | |
1766 | Py_INCREF(Py_None); resultobj = Py_None; | |
1767 | { | |
1768 | if (temp1) | |
1769 | delete arg1; | |
1770 | } | |
1771 | return resultobj; | |
1772 | fail: | |
1773 | { | |
1774 | if (temp1) | |
1775 | delete arg1; | |
1776 | } | |
1777 | return NULL; | |
1778 | } | |
1779 | ||
1780 | ||
1781 | static PyObject *_wrap_SystemOptions_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1782 | PyObject *resultobj; | |
1783 | wxString *arg1 = 0 ; | |
1784 | wxString result; | |
1785 | bool temp1 = False ; | |
1786 | PyObject * obj0 = 0 ; | |
1787 | char *kwnames[] = { | |
1788 | (char *) "name", NULL | |
1789 | }; | |
1790 | ||
1791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOption",kwnames,&obj0)) goto fail; | |
1792 | { | |
1793 | arg1 = wxString_in_helper(obj0); | |
1794 | if (arg1 == NULL) SWIG_fail; | |
1795 | temp1 = True; | |
1796 | } | |
1797 | { | |
1798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1799 | result = wxSystemOptions::GetOption((wxString const &)*arg1); | |
1800 | ||
1801 | wxPyEndAllowThreads(__tstate); | |
1802 | if (PyErr_Occurred()) SWIG_fail; | |
1803 | } | |
1804 | { | |
1805 | #if wxUSE_UNICODE | |
1806 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
1807 | #else | |
1808 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
1809 | #endif | |
1810 | } | |
1811 | { | |
1812 | if (temp1) | |
1813 | delete arg1; | |
1814 | } | |
1815 | return resultobj; | |
1816 | fail: | |
1817 | { | |
1818 | if (temp1) | |
1819 | delete arg1; | |
1820 | } | |
1821 | return NULL; | |
1822 | } | |
1823 | ||
1824 | ||
1825 | static PyObject *_wrap_SystemOptions_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1826 | PyObject *resultobj; | |
1827 | wxString *arg1 = 0 ; | |
1828 | int result; | |
1829 | bool temp1 = False ; | |
1830 | PyObject * obj0 = 0 ; | |
1831 | char *kwnames[] = { | |
1832 | (char *) "name", NULL | |
1833 | }; | |
1834 | ||
1835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOptionInt",kwnames,&obj0)) goto fail; | |
1836 | { | |
1837 | arg1 = wxString_in_helper(obj0); | |
1838 | if (arg1 == NULL) SWIG_fail; | |
1839 | temp1 = True; | |
1840 | } | |
1841 | { | |
1842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1843 | result = (int)wxSystemOptions::GetOptionInt((wxString const &)*arg1); | |
1844 | ||
1845 | wxPyEndAllowThreads(__tstate); | |
1846 | if (PyErr_Occurred()) SWIG_fail; | |
1847 | } | |
1848 | resultobj = SWIG_FromInt((int)result); | |
1849 | { | |
1850 | if (temp1) | |
1851 | delete arg1; | |
1852 | } | |
1853 | return resultobj; | |
1854 | fail: | |
1855 | { | |
1856 | if (temp1) | |
1857 | delete arg1; | |
1858 | } | |
1859 | return NULL; | |
1860 | } | |
1861 | ||
1862 | ||
1863 | static PyObject *_wrap_SystemOptions_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1864 | PyObject *resultobj; | |
1865 | wxString *arg1 = 0 ; | |
1866 | bool result; | |
1867 | bool temp1 = False ; | |
1868 | PyObject * obj0 = 0 ; | |
1869 | char *kwnames[] = { | |
1870 | (char *) "name", NULL | |
1871 | }; | |
1872 | ||
1873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_HasOption",kwnames,&obj0)) goto fail; | |
1874 | { | |
1875 | arg1 = wxString_in_helper(obj0); | |
1876 | if (arg1 == NULL) SWIG_fail; | |
1877 | temp1 = True; | |
1878 | } | |
1879 | { | |
1880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1881 | result = (bool)wxSystemOptions::HasOption((wxString const &)*arg1); | |
1882 | ||
1883 | wxPyEndAllowThreads(__tstate); | |
1884 | if (PyErr_Occurred()) SWIG_fail; | |
1885 | } | |
1886 | { | |
1887 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1888 | } | |
1889 | { | |
1890 | if (temp1) | |
1891 | delete arg1; | |
1892 | } | |
1893 | return resultobj; | |
1894 | fail: | |
1895 | { | |
1896 | if (temp1) | |
1897 | delete arg1; | |
1898 | } | |
1899 | return NULL; | |
1900 | } | |
1901 | ||
1902 | ||
1903 | static PyObject * SystemOptions_swigregister(PyObject *self, PyObject *args) { | |
1904 | PyObject *obj; | |
1905 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1906 | SWIG_TypeClientData(SWIGTYPE_p_wxSystemOptions, obj); | |
1907 | Py_INCREF(obj); | |
1908 | return Py_BuildValue((char *)""); | |
1909 | } | |
1910 | static int _wrap_FileSelectorPromptStr_set(PyObject *_val) { | |
1911 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only."); | |
1912 | return 1; | |
1913 | } | |
1914 | ||
1915 | ||
1916 | static PyObject *_wrap_FileSelectorPromptStr_get() { | |
1917 | PyObject *pyobj; | |
1918 | ||
1919 | { | |
1920 | #if wxUSE_UNICODE | |
1921 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
1922 | #else | |
1923 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
1924 | #endif | |
1925 | } | |
1926 | return pyobj; | |
1927 | } | |
1928 | ||
1929 | ||
1930 | static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *_val) { | |
1931 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only."); | |
1932 | return 1; | |
1933 | } | |
1934 | ||
1935 | ||
1936 | static PyObject *_wrap_FileSelectorDefaultWildcardStr_get() { | |
1937 | PyObject *pyobj; | |
1938 | ||
1939 | { | |
1940 | #if wxUSE_UNICODE | |
1941 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
1942 | #else | |
1943 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
1944 | #endif | |
1945 | } | |
1946 | return pyobj; | |
1947 | } | |
1948 | ||
1949 | ||
1950 | static int _wrap_DirSelectorPromptStr_set(PyObject *_val) { | |
1951 | PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only."); | |
1952 | return 1; | |
1953 | } | |
1954 | ||
1955 | ||
1956 | static PyObject *_wrap_DirSelectorPromptStr_get() { | |
1957 | PyObject *pyobj; | |
1958 | ||
1959 | { | |
1960 | #if wxUSE_UNICODE | |
1961 | pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
1962 | #else | |
1963 | pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
1964 | #endif | |
1965 | } | |
1966 | return pyobj; | |
1967 | } | |
1968 | ||
1969 | ||
1970 | static PyObject *_wrap_NewId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1971 | PyObject *resultobj; | |
1972 | long result; | |
1973 | char *kwnames[] = { | |
1974 | NULL | |
1975 | }; | |
1976 | ||
1977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewId",kwnames)) goto fail; | |
1978 | { | |
1979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1980 | result = (long)wxNewId(); | |
1981 | ||
1982 | wxPyEndAllowThreads(__tstate); | |
1983 | if (PyErr_Occurred()) SWIG_fail; | |
1984 | } | |
1985 | resultobj = SWIG_FromLong((long)result); | |
1986 | return resultobj; | |
1987 | fail: | |
1988 | return NULL; | |
1989 | } | |
1990 | ||
1991 | ||
1992 | static PyObject *_wrap_RegisterId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1993 | PyObject *resultobj; | |
1994 | long arg1 ; | |
1995 | PyObject * obj0 = 0 ; | |
1996 | char *kwnames[] = { | |
1997 | (char *) "id", NULL | |
1998 | }; | |
1999 | ||
2000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegisterId",kwnames,&obj0)) goto fail; | |
2001 | arg1 = (long) SWIG_AsLong(obj0); | |
2002 | if (PyErr_Occurred()) SWIG_fail; | |
2003 | { | |
2004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2005 | wxRegisterId(arg1); | |
2006 | ||
2007 | wxPyEndAllowThreads(__tstate); | |
2008 | if (PyErr_Occurred()) SWIG_fail; | |
2009 | } | |
2010 | Py_INCREF(Py_None); resultobj = Py_None; | |
2011 | return resultobj; | |
2012 | fail: | |
2013 | return NULL; | |
2014 | } | |
2015 | ||
2016 | ||
2017 | static PyObject *_wrap_GetCurrentId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2018 | PyObject *resultobj; | |
2019 | long result; | |
2020 | char *kwnames[] = { | |
2021 | NULL | |
2022 | }; | |
2023 | ||
2024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentId",kwnames)) goto fail; | |
2025 | { | |
2026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2027 | result = (long)wxGetCurrentId(); | |
2028 | ||
2029 | wxPyEndAllowThreads(__tstate); | |
2030 | if (PyErr_Occurred()) SWIG_fail; | |
2031 | } | |
2032 | resultobj = SWIG_FromLong((long)result); | |
2033 | return resultobj; | |
2034 | fail: | |
2035 | return NULL; | |
2036 | } | |
2037 | ||
2038 | ||
2039 | static PyObject *_wrap_Bell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2040 | PyObject *resultobj; | |
2041 | char *kwnames[] = { | |
2042 | NULL | |
2043 | }; | |
2044 | ||
2045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Bell",kwnames)) goto fail; | |
2046 | { | |
2047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2048 | wxBell(); | |
2049 | ||
2050 | wxPyEndAllowThreads(__tstate); | |
2051 | if (PyErr_Occurred()) SWIG_fail; | |
2052 | } | |
2053 | Py_INCREF(Py_None); resultobj = Py_None; | |
2054 | return resultobj; | |
2055 | fail: | |
2056 | return NULL; | |
2057 | } | |
2058 | ||
2059 | ||
2060 | static PyObject *_wrap_EndBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2061 | PyObject *resultobj; | |
2062 | char *kwnames[] = { | |
2063 | NULL | |
2064 | }; | |
2065 | ||
2066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EndBusyCursor",kwnames)) goto fail; | |
2067 | { | |
2068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2069 | wxEndBusyCursor(); | |
2070 | ||
2071 | wxPyEndAllowThreads(__tstate); | |
2072 | if (PyErr_Occurred()) SWIG_fail; | |
2073 | } | |
2074 | Py_INCREF(Py_None); resultobj = Py_None; | |
2075 | return resultobj; | |
2076 | fail: | |
2077 | return NULL; | |
2078 | } | |
2079 | ||
2080 | ||
2081 | static PyObject *_wrap_GetElapsedTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2082 | PyObject *resultobj; | |
2083 | bool arg1 = (bool) True ; | |
2084 | long result; | |
2085 | PyObject * obj0 = 0 ; | |
2086 | char *kwnames[] = { | |
2087 | (char *) "resetTimer", NULL | |
2088 | }; | |
2089 | ||
2090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetElapsedTime",kwnames,&obj0)) goto fail; | |
2091 | if (obj0) { | |
2092 | arg1 = (bool) SWIG_AsBool(obj0); | |
2093 | if (PyErr_Occurred()) SWIG_fail; | |
2094 | } | |
2095 | { | |
2096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2097 | result = (long)wxGetElapsedTime(arg1); | |
2098 | ||
2099 | wxPyEndAllowThreads(__tstate); | |
2100 | if (PyErr_Occurred()) SWIG_fail; | |
2101 | } | |
2102 | resultobj = SWIG_FromLong((long)result); | |
2103 | return resultobj; | |
2104 | fail: | |
2105 | return NULL; | |
2106 | } | |
2107 | ||
2108 | ||
2109 | static PyObject *_wrap_GetMousePosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2110 | PyObject *resultobj; | |
2111 | int *arg1 = (int *) 0 ; | |
2112 | int *arg2 = (int *) 0 ; | |
2113 | int temp1 ; | |
2114 | int temp2 ; | |
2115 | char *kwnames[] = { | |
2116 | NULL | |
2117 | }; | |
2118 | ||
2119 | arg1 = &temp1; | |
2120 | arg2 = &temp2; | |
2121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMousePosition",kwnames)) goto fail; | |
2122 | { | |
2123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2124 | wxGetMousePosition(arg1,arg2); | |
2125 | ||
2126 | wxPyEndAllowThreads(__tstate); | |
2127 | if (PyErr_Occurred()) SWIG_fail; | |
2128 | } | |
2129 | Py_INCREF(Py_None); resultobj = Py_None; | |
2130 | { | |
2131 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
2132 | resultobj = t_output_helper(resultobj,o); | |
2133 | } | |
2134 | { | |
2135 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
2136 | resultobj = t_output_helper(resultobj,o); | |
2137 | } | |
2138 | return resultobj; | |
2139 | fail: | |
2140 | return NULL; | |
2141 | } | |
2142 | ||
2143 | ||
2144 | static PyObject *_wrap_IsBusy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2145 | PyObject *resultobj; | |
2146 | bool result; | |
2147 | char *kwnames[] = { | |
2148 | NULL | |
2149 | }; | |
2150 | ||
2151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IsBusy",kwnames)) goto fail; | |
2152 | { | |
2153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2154 | result = (bool)wxIsBusy(); | |
2155 | ||
2156 | wxPyEndAllowThreads(__tstate); | |
2157 | if (PyErr_Occurred()) SWIG_fail; | |
2158 | } | |
2159 | { | |
2160 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2161 | } | |
2162 | return resultobj; | |
2163 | fail: | |
2164 | return NULL; | |
2165 | } | |
2166 | ||
2167 | ||
2168 | static PyObject *_wrap_Now(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2169 | PyObject *resultobj; | |
2170 | wxString result; | |
2171 | char *kwnames[] = { | |
2172 | NULL | |
2173 | }; | |
2174 | ||
2175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Now",kwnames)) goto fail; | |
2176 | { | |
2177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2178 | result = wxNow(); | |
2179 | ||
2180 | wxPyEndAllowThreads(__tstate); | |
2181 | if (PyErr_Occurred()) SWIG_fail; | |
2182 | } | |
2183 | { | |
2184 | #if wxUSE_UNICODE | |
2185 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2186 | #else | |
2187 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2188 | #endif | |
2189 | } | |
2190 | return resultobj; | |
2191 | fail: | |
2192 | return NULL; | |
2193 | } | |
2194 | ||
2195 | ||
2196 | static PyObject *_wrap_Shell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2197 | PyObject *resultobj; | |
2198 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
2199 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2200 | bool result; | |
2201 | bool temp1 = False ; | |
2202 | PyObject * obj0 = 0 ; | |
2203 | char *kwnames[] = { | |
2204 | (char *) "command", NULL | |
2205 | }; | |
2206 | ||
2207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Shell",kwnames,&obj0)) goto fail; | |
2208 | if (obj0) { | |
2209 | { | |
2210 | arg1 = wxString_in_helper(obj0); | |
2211 | if (arg1 == NULL) SWIG_fail; | |
2212 | temp1 = True; | |
2213 | } | |
2214 | } | |
2215 | { | |
2216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2217 | result = (bool)wxShell((wxString const &)*arg1); | |
2218 | ||
2219 | wxPyEndAllowThreads(__tstate); | |
2220 | if (PyErr_Occurred()) SWIG_fail; | |
2221 | } | |
2222 | { | |
2223 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2224 | } | |
2225 | { | |
2226 | if (temp1) | |
2227 | delete arg1; | |
2228 | } | |
2229 | return resultobj; | |
2230 | fail: | |
2231 | { | |
2232 | if (temp1) | |
2233 | delete arg1; | |
2234 | } | |
2235 | return NULL; | |
2236 | } | |
2237 | ||
2238 | ||
2239 | static PyObject *_wrap_StartTimer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2240 | PyObject *resultobj; | |
2241 | char *kwnames[] = { | |
2242 | NULL | |
2243 | }; | |
2244 | ||
2245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StartTimer",kwnames)) goto fail; | |
2246 | { | |
2247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2248 | wxStartTimer(); | |
2249 | ||
2250 | wxPyEndAllowThreads(__tstate); | |
2251 | if (PyErr_Occurred()) SWIG_fail; | |
2252 | } | |
2253 | Py_INCREF(Py_None); resultobj = Py_None; | |
2254 | return resultobj; | |
2255 | fail: | |
2256 | return NULL; | |
2257 | } | |
2258 | ||
2259 | ||
2260 | static PyObject *_wrap_GetOsVersion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2261 | PyObject *resultobj; | |
2262 | int *arg1 = (int *) 0 ; | |
2263 | int *arg2 = (int *) 0 ; | |
2264 | int result; | |
2265 | int temp1 ; | |
2266 | int temp2 ; | |
2267 | char *kwnames[] = { | |
2268 | NULL | |
2269 | }; | |
2270 | ||
2271 | arg1 = &temp1; | |
2272 | arg2 = &temp2; | |
2273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsVersion",kwnames)) goto fail; | |
2274 | { | |
2275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2276 | result = (int)wxGetOsVersion(arg1,arg2); | |
2277 | ||
2278 | wxPyEndAllowThreads(__tstate); | |
2279 | if (PyErr_Occurred()) SWIG_fail; | |
2280 | } | |
2281 | resultobj = SWIG_FromInt((int)result); | |
2282 | { | |
2283 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
2284 | resultobj = t_output_helper(resultobj,o); | |
2285 | } | |
2286 | { | |
2287 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
2288 | resultobj = t_output_helper(resultobj,o); | |
2289 | } | |
2290 | return resultobj; | |
2291 | fail: | |
2292 | return NULL; | |
2293 | } | |
2294 | ||
2295 | ||
2296 | static PyObject *_wrap_GetOsDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2297 | PyObject *resultobj; | |
2298 | wxString result; | |
2299 | char *kwnames[] = { | |
2300 | NULL | |
2301 | }; | |
2302 | ||
2303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsDescription",kwnames)) goto fail; | |
2304 | { | |
2305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2306 | result = wxGetOsDescription(); | |
2307 | ||
2308 | wxPyEndAllowThreads(__tstate); | |
2309 | if (PyErr_Occurred()) SWIG_fail; | |
2310 | } | |
2311 | { | |
2312 | #if wxUSE_UNICODE | |
2313 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2314 | #else | |
2315 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2316 | #endif | |
2317 | } | |
2318 | return resultobj; | |
2319 | fail: | |
2320 | return NULL; | |
2321 | } | |
2322 | ||
2323 | ||
2324 | static PyObject *_wrap_GetFreeMemory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2325 | PyObject *resultobj; | |
2326 | long result; | |
2327 | char *kwnames[] = { | |
2328 | NULL | |
2329 | }; | |
2330 | ||
2331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFreeMemory",kwnames)) goto fail; | |
2332 | { | |
2333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2334 | result = (long)wxGetFreeMemory(); | |
2335 | ||
2336 | wxPyEndAllowThreads(__tstate); | |
2337 | if (PyErr_Occurred()) SWIG_fail; | |
2338 | } | |
2339 | resultobj = SWIG_FromLong((long)result); | |
2340 | return resultobj; | |
2341 | fail: | |
2342 | return NULL; | |
2343 | } | |
2344 | ||
2345 | ||
2346 | static PyObject *_wrap_Shutdown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2347 | PyObject *resultobj; | |
2348 | int arg1 ; | |
2349 | bool result; | |
2350 | PyObject * obj0 = 0 ; | |
2351 | char *kwnames[] = { | |
2352 | (char *) "wFlags", NULL | |
2353 | }; | |
2354 | ||
2355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Shutdown",kwnames,&obj0)) goto fail; | |
2356 | arg1 = (wxShutdownFlags) SWIG_AsInt(obj0); | |
2357 | if (PyErr_Occurred()) SWIG_fail; | |
2358 | { | |
2359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2360 | result = (bool)wxShutdown((wxShutdownFlags )arg1); | |
2361 | ||
2362 | wxPyEndAllowThreads(__tstate); | |
2363 | if (PyErr_Occurred()) SWIG_fail; | |
2364 | } | |
2365 | { | |
2366 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2367 | } | |
2368 | return resultobj; | |
2369 | fail: | |
2370 | return NULL; | |
2371 | } | |
2372 | ||
2373 | ||
2374 | static PyObject *_wrap_Sleep(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2375 | PyObject *resultobj; | |
2376 | int arg1 ; | |
2377 | PyObject * obj0 = 0 ; | |
2378 | char *kwnames[] = { | |
2379 | (char *) "secs", NULL | |
2380 | }; | |
2381 | ||
2382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sleep",kwnames,&obj0)) goto fail; | |
2383 | arg1 = (int) SWIG_AsInt(obj0); | |
2384 | if (PyErr_Occurred()) SWIG_fail; | |
2385 | { | |
2386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2387 | wxSleep(arg1); | |
2388 | ||
2389 | wxPyEndAllowThreads(__tstate); | |
2390 | if (PyErr_Occurred()) SWIG_fail; | |
2391 | } | |
2392 | Py_INCREF(Py_None); resultobj = Py_None; | |
2393 | return resultobj; | |
2394 | fail: | |
2395 | return NULL; | |
2396 | } | |
2397 | ||
2398 | ||
2399 | static PyObject *_wrap_Usleep(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2400 | PyObject *resultobj; | |
2401 | unsigned long arg1 ; | |
2402 | PyObject * obj0 = 0 ; | |
2403 | char *kwnames[] = { | |
2404 | (char *) "milliseconds", NULL | |
2405 | }; | |
2406 | ||
2407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Usleep",kwnames,&obj0)) goto fail; | |
2408 | arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); | |
2409 | if (PyErr_Occurred()) SWIG_fail; | |
2410 | { | |
2411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2412 | wxUsleep(arg1); | |
2413 | ||
2414 | wxPyEndAllowThreads(__tstate); | |
2415 | if (PyErr_Occurred()) SWIG_fail; | |
2416 | } | |
2417 | Py_INCREF(Py_None); resultobj = Py_None; | |
2418 | return resultobj; | |
2419 | fail: | |
2420 | return NULL; | |
2421 | } | |
2422 | ||
2423 | ||
2424 | static PyObject *_wrap_EnableTopLevelWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2425 | PyObject *resultobj; | |
2426 | bool arg1 ; | |
2427 | PyObject * obj0 = 0 ; | |
2428 | char *kwnames[] = { | |
2429 | (char *) "enable", NULL | |
2430 | }; | |
2431 | ||
2432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EnableTopLevelWindows",kwnames,&obj0)) goto fail; | |
2433 | arg1 = (bool) SWIG_AsBool(obj0); | |
2434 | if (PyErr_Occurred()) SWIG_fail; | |
2435 | { | |
2436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2437 | wxEnableTopLevelWindows(arg1); | |
2438 | ||
2439 | wxPyEndAllowThreads(__tstate); | |
2440 | if (PyErr_Occurred()) SWIG_fail; | |
2441 | } | |
2442 | Py_INCREF(Py_None); resultobj = Py_None; | |
2443 | return resultobj; | |
2444 | fail: | |
2445 | return NULL; | |
2446 | } | |
2447 | ||
2448 | ||
2449 | static PyObject *_wrap_StripMenuCodes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2450 | PyObject *resultobj; | |
2451 | wxString *arg1 = 0 ; | |
2452 | wxString result; | |
2453 | bool temp1 = False ; | |
2454 | PyObject * obj0 = 0 ; | |
2455 | char *kwnames[] = { | |
2456 | (char *) "in", NULL | |
2457 | }; | |
2458 | ||
2459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StripMenuCodes",kwnames,&obj0)) goto fail; | |
2460 | { | |
2461 | arg1 = wxString_in_helper(obj0); | |
2462 | if (arg1 == NULL) SWIG_fail; | |
2463 | temp1 = True; | |
2464 | } | |
2465 | { | |
2466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2467 | result = wxStripMenuCodes((wxString const &)*arg1); | |
2468 | ||
2469 | wxPyEndAllowThreads(__tstate); | |
2470 | if (PyErr_Occurred()) SWIG_fail; | |
2471 | } | |
2472 | { | |
2473 | #if wxUSE_UNICODE | |
2474 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2475 | #else | |
2476 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2477 | #endif | |
2478 | } | |
2479 | { | |
2480 | if (temp1) | |
2481 | delete arg1; | |
2482 | } | |
2483 | return resultobj; | |
2484 | fail: | |
2485 | { | |
2486 | if (temp1) | |
2487 | delete arg1; | |
2488 | } | |
2489 | return NULL; | |
2490 | } | |
2491 | ||
2492 | ||
2493 | static PyObject *_wrap_GetEmailAddress(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2494 | PyObject *resultobj; | |
2495 | wxString result; | |
2496 | char *kwnames[] = { | |
2497 | NULL | |
2498 | }; | |
2499 | ||
2500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetEmailAddress",kwnames)) goto fail; | |
2501 | { | |
2502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2503 | result = wxGetEmailAddress(); | |
2504 | ||
2505 | wxPyEndAllowThreads(__tstate); | |
2506 | if (PyErr_Occurred()) SWIG_fail; | |
2507 | } | |
2508 | { | |
2509 | #if wxUSE_UNICODE | |
2510 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2511 | #else | |
2512 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2513 | #endif | |
2514 | } | |
2515 | return resultobj; | |
2516 | fail: | |
2517 | return NULL; | |
2518 | } | |
2519 | ||
2520 | ||
2521 | static PyObject *_wrap_GetHostName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2522 | PyObject *resultobj; | |
2523 | wxString result; | |
2524 | char *kwnames[] = { | |
2525 | NULL | |
2526 | }; | |
2527 | ||
2528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHostName",kwnames)) goto fail; | |
2529 | { | |
2530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2531 | result = wxGetHostName(); | |
2532 | ||
2533 | wxPyEndAllowThreads(__tstate); | |
2534 | if (PyErr_Occurred()) SWIG_fail; | |
2535 | } | |
2536 | { | |
2537 | #if wxUSE_UNICODE | |
2538 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2539 | #else | |
2540 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2541 | #endif | |
2542 | } | |
2543 | return resultobj; | |
2544 | fail: | |
2545 | return NULL; | |
2546 | } | |
2547 | ||
2548 | ||
2549 | static PyObject *_wrap_GetFullHostName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2550 | PyObject *resultobj; | |
2551 | wxString result; | |
2552 | char *kwnames[] = { | |
2553 | NULL | |
2554 | }; | |
2555 | ||
2556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFullHostName",kwnames)) goto fail; | |
2557 | { | |
2558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2559 | result = wxGetFullHostName(); | |
2560 | ||
2561 | wxPyEndAllowThreads(__tstate); | |
2562 | if (PyErr_Occurred()) SWIG_fail; | |
2563 | } | |
2564 | { | |
2565 | #if wxUSE_UNICODE | |
2566 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2567 | #else | |
2568 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2569 | #endif | |
2570 | } | |
2571 | return resultobj; | |
2572 | fail: | |
2573 | return NULL; | |
2574 | } | |
2575 | ||
2576 | ||
2577 | static PyObject *_wrap_GetUserId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2578 | PyObject *resultobj; | |
2579 | wxString result; | |
2580 | char *kwnames[] = { | |
2581 | NULL | |
2582 | }; | |
2583 | ||
2584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserId",kwnames)) goto fail; | |
2585 | { | |
2586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2587 | result = wxGetUserId(); | |
2588 | ||
2589 | wxPyEndAllowThreads(__tstate); | |
2590 | if (PyErr_Occurred()) SWIG_fail; | |
2591 | } | |
2592 | { | |
2593 | #if wxUSE_UNICODE | |
2594 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2595 | #else | |
2596 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2597 | #endif | |
2598 | } | |
2599 | return resultobj; | |
2600 | fail: | |
2601 | return NULL; | |
2602 | } | |
2603 | ||
2604 | ||
2605 | static PyObject *_wrap_GetUserName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2606 | PyObject *resultobj; | |
2607 | wxString result; | |
2608 | char *kwnames[] = { | |
2609 | NULL | |
2610 | }; | |
2611 | ||
2612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserName",kwnames)) goto fail; | |
2613 | { | |
2614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2615 | result = wxGetUserName(); | |
2616 | ||
2617 | wxPyEndAllowThreads(__tstate); | |
2618 | if (PyErr_Occurred()) SWIG_fail; | |
2619 | } | |
2620 | { | |
2621 | #if wxUSE_UNICODE | |
2622 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2623 | #else | |
2624 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2625 | #endif | |
2626 | } | |
2627 | return resultobj; | |
2628 | fail: | |
2629 | return NULL; | |
2630 | } | |
2631 | ||
2632 | ||
2633 | static PyObject *_wrap_GetHomeDir(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2634 | PyObject *resultobj; | |
2635 | wxString result; | |
2636 | char *kwnames[] = { | |
2637 | NULL | |
2638 | }; | |
2639 | ||
2640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHomeDir",kwnames)) goto fail; | |
2641 | { | |
2642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2643 | result = wxGetHomeDir(); | |
2644 | ||
2645 | wxPyEndAllowThreads(__tstate); | |
2646 | if (PyErr_Occurred()) SWIG_fail; | |
2647 | } | |
2648 | { | |
2649 | #if wxUSE_UNICODE | |
2650 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2651 | #else | |
2652 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2653 | #endif | |
2654 | } | |
2655 | return resultobj; | |
2656 | fail: | |
2657 | return NULL; | |
2658 | } | |
2659 | ||
2660 | ||
2661 | static PyObject *_wrap_GetUserHome(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2662 | PyObject *resultobj; | |
2663 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
2664 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2665 | wxString result; | |
2666 | bool temp1 = False ; | |
2667 | PyObject * obj0 = 0 ; | |
2668 | char *kwnames[] = { | |
2669 | (char *) "user", NULL | |
2670 | }; | |
2671 | ||
2672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetUserHome",kwnames,&obj0)) goto fail; | |
2673 | if (obj0) { | |
2674 | { | |
2675 | arg1 = wxString_in_helper(obj0); | |
2676 | if (arg1 == NULL) SWIG_fail; | |
2677 | temp1 = True; | |
2678 | } | |
2679 | } | |
2680 | { | |
2681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2682 | result = wxGetUserHome((wxString const &)*arg1); | |
2683 | ||
2684 | wxPyEndAllowThreads(__tstate); | |
2685 | if (PyErr_Occurred()) SWIG_fail; | |
2686 | } | |
2687 | { | |
2688 | #if wxUSE_UNICODE | |
2689 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2690 | #else | |
2691 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2692 | #endif | |
2693 | } | |
2694 | { | |
2695 | if (temp1) | |
2696 | delete arg1; | |
2697 | } | |
2698 | return resultobj; | |
2699 | fail: | |
2700 | { | |
2701 | if (temp1) | |
2702 | delete arg1; | |
2703 | } | |
2704 | return NULL; | |
2705 | } | |
2706 | ||
2707 | ||
2708 | static PyObject *_wrap_GetProcessId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2709 | PyObject *resultobj; | |
2710 | unsigned long result; | |
2711 | char *kwnames[] = { | |
2712 | NULL | |
2713 | }; | |
2714 | ||
2715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetProcessId",kwnames)) goto fail; | |
2716 | { | |
2717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2718 | result = (unsigned long)wxGetProcessId(); | |
2719 | ||
2720 | wxPyEndAllowThreads(__tstate); | |
2721 | if (PyErr_Occurred()) SWIG_fail; | |
2722 | } | |
2723 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
2724 | return resultobj; | |
2725 | fail: | |
2726 | return NULL; | |
2727 | } | |
2728 | ||
2729 | ||
2730 | static PyObject *_wrap_Trap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2731 | PyObject *resultobj; | |
2732 | char *kwnames[] = { | |
2733 | NULL | |
2734 | }; | |
2735 | ||
2736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Trap",kwnames)) goto fail; | |
2737 | { | |
2738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2739 | wxTrap(); | |
2740 | ||
2741 | wxPyEndAllowThreads(__tstate); | |
2742 | if (PyErr_Occurred()) SWIG_fail; | |
2743 | } | |
2744 | Py_INCREF(Py_None); resultobj = Py_None; | |
2745 | return resultobj; | |
2746 | fail: | |
2747 | return NULL; | |
2748 | } | |
2749 | ||
2750 | ||
2751 | static PyObject *_wrap_FileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2752 | PyObject *resultobj; | |
2753 | wxString const &arg1_defvalue = wxPyFileSelectorPromptStr ; | |
2754 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2755 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
2756 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
2757 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2758 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2759 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
2760 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
2761 | wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ; | |
2762 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
2763 | int arg6 = (int) 0 ; | |
2764 | wxWindow *arg7 = (wxWindow *) NULL ; | |
2765 | int arg8 = (int) -1 ; | |
2766 | int arg9 = (int) -1 ; | |
2767 | wxString result; | |
2768 | bool temp1 = False ; | |
2769 | bool temp2 = False ; | |
2770 | bool temp3 = False ; | |
2771 | bool temp4 = False ; | |
2772 | bool temp5 = False ; | |
2773 | PyObject * obj0 = 0 ; | |
2774 | PyObject * obj1 = 0 ; | |
2775 | PyObject * obj2 = 0 ; | |
2776 | PyObject * obj3 = 0 ; | |
2777 | PyObject * obj4 = 0 ; | |
2778 | PyObject * obj5 = 0 ; | |
2779 | PyObject * obj6 = 0 ; | |
2780 | PyObject * obj7 = 0 ; | |
2781 | PyObject * obj8 = 0 ; | |
2782 | char *kwnames[] = { | |
2783 | (char *) "message",(char *) "default_path",(char *) "default_filename",(char *) "default_extension",(char *) "wildcard",(char *) "flags",(char *) "parent",(char *) "x",(char *) "y", NULL | |
2784 | }; | |
2785 | ||
2786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOOOOO:FileSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
2787 | if (obj0) { | |
2788 | { | |
2789 | arg1 = wxString_in_helper(obj0); | |
2790 | if (arg1 == NULL) SWIG_fail; | |
2791 | temp1 = True; | |
2792 | } | |
2793 | } | |
2794 | if (obj1) { | |
2795 | { | |
2796 | arg2 = wxString_in_helper(obj1); | |
2797 | if (arg2 == NULL) SWIG_fail; | |
2798 | temp2 = True; | |
2799 | } | |
2800 | } | |
2801 | if (obj2) { | |
2802 | { | |
2803 | arg3 = wxString_in_helper(obj2); | |
2804 | if (arg3 == NULL) SWIG_fail; | |
2805 | temp3 = True; | |
2806 | } | |
2807 | } | |
2808 | if (obj3) { | |
2809 | { | |
2810 | arg4 = wxString_in_helper(obj3); | |
2811 | if (arg4 == NULL) SWIG_fail; | |
2812 | temp4 = True; | |
2813 | } | |
2814 | } | |
2815 | if (obj4) { | |
2816 | { | |
2817 | arg5 = wxString_in_helper(obj4); | |
2818 | if (arg5 == NULL) SWIG_fail; | |
2819 | temp5 = True; | |
2820 | } | |
2821 | } | |
2822 | if (obj5) { | |
2823 | arg6 = (int) SWIG_AsInt(obj5); | |
2824 | if (PyErr_Occurred()) SWIG_fail; | |
2825 | } | |
2826 | if (obj6) { | |
2827 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow, | |
2828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2829 | } | |
2830 | if (obj7) { | |
2831 | arg8 = (int) SWIG_AsInt(obj7); | |
2832 | if (PyErr_Occurred()) SWIG_fail; | |
2833 | } | |
2834 | if (obj8) { | |
2835 | arg9 = (int) SWIG_AsInt(obj8); | |
2836 | if (PyErr_Occurred()) SWIG_fail; | |
2837 | } | |
2838 | { | |
2839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2840 | result = wxFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,arg7,arg8,arg9); | |
2841 | ||
2842 | wxPyEndAllowThreads(__tstate); | |
2843 | if (PyErr_Occurred()) SWIG_fail; | |
2844 | } | |
2845 | { | |
2846 | #if wxUSE_UNICODE | |
2847 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2848 | #else | |
2849 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2850 | #endif | |
2851 | } | |
2852 | { | |
2853 | if (temp1) | |
2854 | delete arg1; | |
2855 | } | |
2856 | { | |
2857 | if (temp2) | |
2858 | delete arg2; | |
2859 | } | |
2860 | { | |
2861 | if (temp3) | |
2862 | delete arg3; | |
2863 | } | |
2864 | { | |
2865 | if (temp4) | |
2866 | delete arg4; | |
2867 | } | |
2868 | { | |
2869 | if (temp5) | |
2870 | delete arg5; | |
2871 | } | |
2872 | return resultobj; | |
2873 | fail: | |
2874 | { | |
2875 | if (temp1) | |
2876 | delete arg1; | |
2877 | } | |
2878 | { | |
2879 | if (temp2) | |
2880 | delete arg2; | |
2881 | } | |
2882 | { | |
2883 | if (temp3) | |
2884 | delete arg3; | |
2885 | } | |
2886 | { | |
2887 | if (temp4) | |
2888 | delete arg4; | |
2889 | } | |
2890 | { | |
2891 | if (temp5) | |
2892 | delete arg5; | |
2893 | } | |
2894 | return NULL; | |
2895 | } | |
2896 | ||
2897 | ||
2898 | static PyObject *_wrap_LoadFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2899 | PyObject *resultobj; | |
2900 | wxString *arg1 = 0 ; | |
2901 | wxString *arg2 = 0 ; | |
2902 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2903 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2904 | wxWindow *arg4 = (wxWindow *) NULL ; | |
2905 | wxString result; | |
2906 | bool temp1 = False ; | |
2907 | bool temp2 = False ; | |
2908 | bool temp3 = False ; | |
2909 | PyObject * obj0 = 0 ; | |
2910 | PyObject * obj1 = 0 ; | |
2911 | PyObject * obj2 = 0 ; | |
2912 | PyObject * obj3 = 0 ; | |
2913 | char *kwnames[] = { | |
2914 | (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL | |
2915 | }; | |
2916 | ||
2917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:LoadFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2918 | { | |
2919 | arg1 = wxString_in_helper(obj0); | |
2920 | if (arg1 == NULL) SWIG_fail; | |
2921 | temp1 = True; | |
2922 | } | |
2923 | { | |
2924 | arg2 = wxString_in_helper(obj1); | |
2925 | if (arg2 == NULL) SWIG_fail; | |
2926 | temp2 = True; | |
2927 | } | |
2928 | if (obj2) { | |
2929 | { | |
2930 | arg3 = wxString_in_helper(obj2); | |
2931 | if (arg3 == NULL) SWIG_fail; | |
2932 | temp3 = True; | |
2933 | } | |
2934 | } | |
2935 | if (obj3) { | |
2936 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
2937 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2938 | } | |
2939 | { | |
2940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2941 | result = wxLoadFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
2942 | ||
2943 | wxPyEndAllowThreads(__tstate); | |
2944 | if (PyErr_Occurred()) SWIG_fail; | |
2945 | } | |
2946 | { | |
2947 | #if wxUSE_UNICODE | |
2948 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2949 | #else | |
2950 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2951 | #endif | |
2952 | } | |
2953 | { | |
2954 | if (temp1) | |
2955 | delete arg1; | |
2956 | } | |
2957 | { | |
2958 | if (temp2) | |
2959 | delete arg2; | |
2960 | } | |
2961 | { | |
2962 | if (temp3) | |
2963 | delete arg3; | |
2964 | } | |
2965 | return resultobj; | |
2966 | fail: | |
2967 | { | |
2968 | if (temp1) | |
2969 | delete arg1; | |
2970 | } | |
2971 | { | |
2972 | if (temp2) | |
2973 | delete arg2; | |
2974 | } | |
2975 | { | |
2976 | if (temp3) | |
2977 | delete arg3; | |
2978 | } | |
2979 | return NULL; | |
2980 | } | |
2981 | ||
2982 | ||
2983 | static PyObject *_wrap_SaveFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2984 | PyObject *resultobj; | |
2985 | wxString *arg1 = 0 ; | |
2986 | wxString *arg2 = 0 ; | |
2987 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2988 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2989 | wxWindow *arg4 = (wxWindow *) NULL ; | |
2990 | wxString result; | |
2991 | bool temp1 = False ; | |
2992 | bool temp2 = False ; | |
2993 | bool temp3 = False ; | |
2994 | PyObject * obj0 = 0 ; | |
2995 | PyObject * obj1 = 0 ; | |
2996 | PyObject * obj2 = 0 ; | |
2997 | PyObject * obj3 = 0 ; | |
2998 | char *kwnames[] = { | |
2999 | (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL | |
3000 | }; | |
3001 | ||
3002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:SaveFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3003 | { | |
3004 | arg1 = wxString_in_helper(obj0); | |
3005 | if (arg1 == NULL) SWIG_fail; | |
3006 | temp1 = True; | |
3007 | } | |
3008 | { | |
3009 | arg2 = wxString_in_helper(obj1); | |
3010 | if (arg2 == NULL) SWIG_fail; | |
3011 | temp2 = True; | |
3012 | } | |
3013 | if (obj2) { | |
3014 | { | |
3015 | arg3 = wxString_in_helper(obj2); | |
3016 | if (arg3 == NULL) SWIG_fail; | |
3017 | temp3 = True; | |
3018 | } | |
3019 | } | |
3020 | if (obj3) { | |
3021 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
3022 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3023 | } | |
3024 | { | |
3025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3026 | result = wxSaveFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
3027 | ||
3028 | wxPyEndAllowThreads(__tstate); | |
3029 | if (PyErr_Occurred()) SWIG_fail; | |
3030 | } | |
3031 | { | |
3032 | #if wxUSE_UNICODE | |
3033 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3034 | #else | |
3035 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3036 | #endif | |
3037 | } | |
3038 | { | |
3039 | if (temp1) | |
3040 | delete arg1; | |
3041 | } | |
3042 | { | |
3043 | if (temp2) | |
3044 | delete arg2; | |
3045 | } | |
3046 | { | |
3047 | if (temp3) | |
3048 | delete arg3; | |
3049 | } | |
3050 | return resultobj; | |
3051 | fail: | |
3052 | { | |
3053 | if (temp1) | |
3054 | delete arg1; | |
3055 | } | |
3056 | { | |
3057 | if (temp2) | |
3058 | delete arg2; | |
3059 | } | |
3060 | { | |
3061 | if (temp3) | |
3062 | delete arg3; | |
3063 | } | |
3064 | return NULL; | |
3065 | } | |
3066 | ||
3067 | ||
3068 | static PyObject *_wrap_DirSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3069 | PyObject *resultobj; | |
3070 | wxString const &arg1_defvalue = wxPyDirSelectorPromptStr ; | |
3071 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
3072 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3073 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3074 | long arg3 = (long) wxDD_DEFAULT_STYLE ; | |
3075 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3076 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3077 | wxWindow *arg5 = (wxWindow *) NULL ; | |
3078 | wxString result; | |
3079 | bool temp1 = False ; | |
3080 | bool temp2 = False ; | |
3081 | wxPoint temp4 ; | |
3082 | PyObject * obj0 = 0 ; | |
3083 | PyObject * obj1 = 0 ; | |
3084 | PyObject * obj2 = 0 ; | |
3085 | PyObject * obj3 = 0 ; | |
3086 | PyObject * obj4 = 0 ; | |
3087 | char *kwnames[] = { | |
3088 | (char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "parent", NULL | |
3089 | }; | |
3090 | ||
3091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:DirSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
3092 | if (obj0) { | |
3093 | { | |
3094 | arg1 = wxString_in_helper(obj0); | |
3095 | if (arg1 == NULL) SWIG_fail; | |
3096 | temp1 = True; | |
3097 | } | |
3098 | } | |
3099 | if (obj1) { | |
3100 | { | |
3101 | arg2 = wxString_in_helper(obj1); | |
3102 | if (arg2 == NULL) SWIG_fail; | |
3103 | temp2 = True; | |
3104 | } | |
3105 | } | |
3106 | if (obj2) { | |
3107 | arg3 = (long) SWIG_AsLong(obj2); | |
3108 | if (PyErr_Occurred()) SWIG_fail; | |
3109 | } | |
3110 | if (obj3) { | |
3111 | { | |
3112 | arg4 = &temp4; | |
3113 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3114 | } | |
3115 | } | |
3116 | if (obj4) { | |
3117 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxWindow, | |
3118 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3119 | } | |
3120 | { | |
3121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3122 | result = wxDirSelector((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxPoint const &)*arg4,arg5); | |
3123 | ||
3124 | wxPyEndAllowThreads(__tstate); | |
3125 | if (PyErr_Occurred()) SWIG_fail; | |
3126 | } | |
3127 | { | |
3128 | #if wxUSE_UNICODE | |
3129 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3130 | #else | |
3131 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3132 | #endif | |
3133 | } | |
3134 | { | |
3135 | if (temp1) | |
3136 | delete arg1; | |
3137 | } | |
3138 | { | |
3139 | if (temp2) | |
3140 | delete arg2; | |
3141 | } | |
3142 | return resultobj; | |
3143 | fail: | |
3144 | { | |
3145 | if (temp1) | |
3146 | delete arg1; | |
3147 | } | |
3148 | { | |
3149 | if (temp2) | |
3150 | delete arg2; | |
3151 | } | |
3152 | return NULL; | |
3153 | } | |
3154 | ||
3155 | ||
3156 | static PyObject *_wrap_GetTextFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3157 | PyObject *resultobj; | |
3158 | wxString *arg1 = 0 ; | |
3159 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3160 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3161 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3162 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3163 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3164 | int arg5 = (int) -1 ; | |
3165 | int arg6 = (int) -1 ; | |
3166 | bool arg7 = (bool) True ; | |
3167 | wxString result; | |
3168 | bool temp1 = False ; | |
3169 | bool temp2 = False ; | |
3170 | bool temp3 = False ; | |
3171 | PyObject * obj0 = 0 ; | |
3172 | PyObject * obj1 = 0 ; | |
3173 | PyObject * obj2 = 0 ; | |
3174 | PyObject * obj3 = 0 ; | |
3175 | PyObject * obj4 = 0 ; | |
3176 | PyObject * obj5 = 0 ; | |
3177 | PyObject * obj6 = 0 ; | |
3178 | char *kwnames[] = { | |
3179 | (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre", NULL | |
3180 | }; | |
3181 | ||
3182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GetTextFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
3183 | { | |
3184 | arg1 = wxString_in_helper(obj0); | |
3185 | if (arg1 == NULL) SWIG_fail; | |
3186 | temp1 = True; | |
3187 | } | |
3188 | if (obj1) { | |
3189 | { | |
3190 | arg2 = wxString_in_helper(obj1); | |
3191 | if (arg2 == NULL) SWIG_fail; | |
3192 | temp2 = True; | |
3193 | } | |
3194 | } | |
3195 | if (obj2) { | |
3196 | { | |
3197 | arg3 = wxString_in_helper(obj2); | |
3198 | if (arg3 == NULL) SWIG_fail; | |
3199 | temp3 = True; | |
3200 | } | |
3201 | } | |
3202 | if (obj3) { | |
3203 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
3204 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3205 | } | |
3206 | if (obj4) { | |
3207 | arg5 = (int) SWIG_AsInt(obj4); | |
3208 | if (PyErr_Occurred()) SWIG_fail; | |
3209 | } | |
3210 | if (obj5) { | |
3211 | arg6 = (int) SWIG_AsInt(obj5); | |
3212 | if (PyErr_Occurred()) SWIG_fail; | |
3213 | } | |
3214 | if (obj6) { | |
3215 | arg7 = (bool) SWIG_AsBool(obj6); | |
3216 | if (PyErr_Occurred()) SWIG_fail; | |
3217 | } | |
3218 | { | |
3219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3220 | result = wxGetTextFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7); | |
3221 | ||
3222 | wxPyEndAllowThreads(__tstate); | |
3223 | if (PyErr_Occurred()) SWIG_fail; | |
3224 | } | |
3225 | { | |
3226 | #if wxUSE_UNICODE | |
3227 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3228 | #else | |
3229 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3230 | #endif | |
3231 | } | |
3232 | { | |
3233 | if (temp1) | |
3234 | delete arg1; | |
3235 | } | |
3236 | { | |
3237 | if (temp2) | |
3238 | delete arg2; | |
3239 | } | |
3240 | { | |
3241 | if (temp3) | |
3242 | delete arg3; | |
3243 | } | |
3244 | return resultobj; | |
3245 | fail: | |
3246 | { | |
3247 | if (temp1) | |
3248 | delete arg1; | |
3249 | } | |
3250 | { | |
3251 | if (temp2) | |
3252 | delete arg2; | |
3253 | } | |
3254 | { | |
3255 | if (temp3) | |
3256 | delete arg3; | |
3257 | } | |
3258 | return NULL; | |
3259 | } | |
3260 | ||
3261 | ||
3262 | static PyObject *_wrap_GetPasswordFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3263 | PyObject *resultobj; | |
3264 | wxString *arg1 = 0 ; | |
3265 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3266 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3267 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3268 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3269 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3270 | wxString result; | |
3271 | bool temp1 = False ; | |
3272 | bool temp2 = False ; | |
3273 | bool temp3 = False ; | |
3274 | PyObject * obj0 = 0 ; | |
3275 | PyObject * obj1 = 0 ; | |
3276 | PyObject * obj2 = 0 ; | |
3277 | PyObject * obj3 = 0 ; | |
3278 | char *kwnames[] = { | |
3279 | (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent", NULL | |
3280 | }; | |
3281 | ||
3282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:GetPasswordFromUser",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3283 | { | |
3284 | arg1 = wxString_in_helper(obj0); | |
3285 | if (arg1 == NULL) SWIG_fail; | |
3286 | temp1 = True; | |
3287 | } | |
3288 | if (obj1) { | |
3289 | { | |
3290 | arg2 = wxString_in_helper(obj1); | |
3291 | if (arg2 == NULL) SWIG_fail; | |
3292 | temp2 = True; | |
3293 | } | |
3294 | } | |
3295 | if (obj2) { | |
3296 | { | |
3297 | arg3 = wxString_in_helper(obj2); | |
3298 | if (arg3 == NULL) SWIG_fail; | |
3299 | temp3 = True; | |
3300 | } | |
3301 | } | |
3302 | if (obj3) { | |
3303 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
3304 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3305 | } | |
3306 | { | |
3307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3308 | result = wxGetPasswordFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
3309 | ||
3310 | wxPyEndAllowThreads(__tstate); | |
3311 | if (PyErr_Occurred()) SWIG_fail; | |
3312 | } | |
3313 | { | |
3314 | #if wxUSE_UNICODE | |
3315 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3316 | #else | |
3317 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3318 | #endif | |
3319 | } | |
3320 | { | |
3321 | if (temp1) | |
3322 | delete arg1; | |
3323 | } | |
3324 | { | |
3325 | if (temp2) | |
3326 | delete arg2; | |
3327 | } | |
3328 | { | |
3329 | if (temp3) | |
3330 | delete arg3; | |
3331 | } | |
3332 | return resultobj; | |
3333 | fail: | |
3334 | { | |
3335 | if (temp1) | |
3336 | delete arg1; | |
3337 | } | |
3338 | { | |
3339 | if (temp2) | |
3340 | delete arg2; | |
3341 | } | |
3342 | { | |
3343 | if (temp3) | |
3344 | delete arg3; | |
3345 | } | |
3346 | return NULL; | |
3347 | } | |
3348 | ||
3349 | ||
3350 | static PyObject *_wrap_GetSingleChoice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3351 | PyObject *resultobj; | |
3352 | wxString *arg1 = 0 ; | |
3353 | wxString *arg2 = 0 ; | |
3354 | int arg3 ; | |
3355 | wxString *arg4 = (wxString *) 0 ; | |
3356 | wxWindow *arg5 = (wxWindow *) NULL ; | |
3357 | int arg6 = (int) -1 ; | |
3358 | int arg7 = (int) -1 ; | |
3359 | bool arg8 = (bool) True ; | |
3360 | int arg9 = (int) 150 ; | |
3361 | int arg10 = (int) 200 ; | |
3362 | wxString result; | |
3363 | bool temp1 = False ; | |
3364 | bool temp2 = False ; | |
3365 | PyObject * obj0 = 0 ; | |
3366 | PyObject * obj1 = 0 ; | |
3367 | PyObject * obj2 = 0 ; | |
3368 | PyObject * obj3 = 0 ; | |
3369 | PyObject * obj4 = 0 ; | |
3370 | PyObject * obj5 = 0 ; | |
3371 | PyObject * obj6 = 0 ; | |
3372 | PyObject * obj7 = 0 ; | |
3373 | PyObject * obj8 = 0 ; | |
3374 | char *kwnames[] = { | |
3375 | (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL | |
3376 | }; | |
3377 | ||
3378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
3379 | { | |
3380 | arg1 = wxString_in_helper(obj0); | |
3381 | if (arg1 == NULL) SWIG_fail; | |
3382 | temp1 = True; | |
3383 | } | |
3384 | { | |
3385 | arg2 = wxString_in_helper(obj1); | |
3386 | if (arg2 == NULL) SWIG_fail; | |
3387 | temp2 = True; | |
3388 | } | |
3389 | { | |
3390 | arg3 = PyList_Size(obj2); | |
3391 | arg4 = wxString_LIST_helper(obj2); | |
3392 | if (arg4 == NULL) SWIG_fail; | |
3393 | } | |
3394 | if (obj3) { | |
3395 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow, | |
3396 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3397 | } | |
3398 | if (obj4) { | |
3399 | arg6 = (int) SWIG_AsInt(obj4); | |
3400 | if (PyErr_Occurred()) SWIG_fail; | |
3401 | } | |
3402 | if (obj5) { | |
3403 | arg7 = (int) SWIG_AsInt(obj5); | |
3404 | if (PyErr_Occurred()) SWIG_fail; | |
3405 | } | |
3406 | if (obj6) { | |
3407 | arg8 = (bool) SWIG_AsBool(obj6); | |
3408 | if (PyErr_Occurred()) SWIG_fail; | |
3409 | } | |
3410 | if (obj7) { | |
3411 | arg9 = (int) SWIG_AsInt(obj7); | |
3412 | if (PyErr_Occurred()) SWIG_fail; | |
3413 | } | |
3414 | if (obj8) { | |
3415 | arg10 = (int) SWIG_AsInt(obj8); | |
3416 | if (PyErr_Occurred()) SWIG_fail; | |
3417 | } | |
3418 | { | |
3419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3420 | result = wxGetSingleChoice((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); | |
3421 | ||
3422 | wxPyEndAllowThreads(__tstate); | |
3423 | if (PyErr_Occurred()) SWIG_fail; | |
3424 | } | |
3425 | { | |
3426 | #if wxUSE_UNICODE | |
3427 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3428 | #else | |
3429 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3430 | #endif | |
3431 | } | |
3432 | { | |
3433 | if (temp1) | |
3434 | delete arg1; | |
3435 | } | |
3436 | { | |
3437 | if (temp2) | |
3438 | delete arg2; | |
3439 | } | |
3440 | { | |
3441 | if (arg4) delete [] arg4; | |
3442 | } | |
3443 | return resultobj; | |
3444 | fail: | |
3445 | { | |
3446 | if (temp1) | |
3447 | delete arg1; | |
3448 | } | |
3449 | { | |
3450 | if (temp2) | |
3451 | delete arg2; | |
3452 | } | |
3453 | { | |
3454 | if (arg4) delete [] arg4; | |
3455 | } | |
3456 | return NULL; | |
3457 | } | |
3458 | ||
3459 | ||
3460 | static PyObject *_wrap_GetSingleChoiceIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3461 | PyObject *resultobj; | |
3462 | wxString *arg1 = 0 ; | |
3463 | wxString *arg2 = 0 ; | |
3464 | int arg3 ; | |
3465 | wxString *arg4 = (wxString *) 0 ; | |
3466 | wxWindow *arg5 = (wxWindow *) NULL ; | |
3467 | int arg6 = (int) -1 ; | |
3468 | int arg7 = (int) -1 ; | |
3469 | bool arg8 = (bool) True ; | |
3470 | int arg9 = (int) 150 ; | |
3471 | int arg10 = (int) 200 ; | |
3472 | int result; | |
3473 | bool temp1 = False ; | |
3474 | bool temp2 = False ; | |
3475 | PyObject * obj0 = 0 ; | |
3476 | PyObject * obj1 = 0 ; | |
3477 | PyObject * obj2 = 0 ; | |
3478 | PyObject * obj3 = 0 ; | |
3479 | PyObject * obj4 = 0 ; | |
3480 | PyObject * obj5 = 0 ; | |
3481 | PyObject * obj6 = 0 ; | |
3482 | PyObject * obj7 = 0 ; | |
3483 | PyObject * obj8 = 0 ; | |
3484 | char *kwnames[] = { | |
3485 | (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL | |
3486 | }; | |
3487 | ||
3488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoiceIndex",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
3489 | { | |
3490 | arg1 = wxString_in_helper(obj0); | |
3491 | if (arg1 == NULL) SWIG_fail; | |
3492 | temp1 = True; | |
3493 | } | |
3494 | { | |
3495 | arg2 = wxString_in_helper(obj1); | |
3496 | if (arg2 == NULL) SWIG_fail; | |
3497 | temp2 = True; | |
3498 | } | |
3499 | { | |
3500 | arg3 = PyList_Size(obj2); | |
3501 | arg4 = wxString_LIST_helper(obj2); | |
3502 | if (arg4 == NULL) SWIG_fail; | |
3503 | } | |
3504 | if (obj3) { | |
3505 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow, | |
3506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3507 | } | |
3508 | if (obj4) { | |
3509 | arg6 = (int) SWIG_AsInt(obj4); | |
3510 | if (PyErr_Occurred()) SWIG_fail; | |
3511 | } | |
3512 | if (obj5) { | |
3513 | arg7 = (int) SWIG_AsInt(obj5); | |
3514 | if (PyErr_Occurred()) SWIG_fail; | |
3515 | } | |
3516 | if (obj6) { | |
3517 | arg8 = (bool) SWIG_AsBool(obj6); | |
3518 | if (PyErr_Occurred()) SWIG_fail; | |
3519 | } | |
3520 | if (obj7) { | |
3521 | arg9 = (int) SWIG_AsInt(obj7); | |
3522 | if (PyErr_Occurred()) SWIG_fail; | |
3523 | } | |
3524 | if (obj8) { | |
3525 | arg10 = (int) SWIG_AsInt(obj8); | |
3526 | if (PyErr_Occurred()) SWIG_fail; | |
3527 | } | |
3528 | { | |
3529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3530 | result = (int)wxGetSingleChoiceIndex((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); | |
3531 | ||
3532 | wxPyEndAllowThreads(__tstate); | |
3533 | if (PyErr_Occurred()) SWIG_fail; | |
3534 | } | |
3535 | resultobj = SWIG_FromInt((int)result); | |
3536 | { | |
3537 | if (temp1) | |
3538 | delete arg1; | |
3539 | } | |
3540 | { | |
3541 | if (temp2) | |
3542 | delete arg2; | |
3543 | } | |
3544 | { | |
3545 | if (arg4) delete [] arg4; | |
3546 | } | |
3547 | return resultobj; | |
3548 | fail: | |
3549 | { | |
3550 | if (temp1) | |
3551 | delete arg1; | |
3552 | } | |
3553 | { | |
3554 | if (temp2) | |
3555 | delete arg2; | |
3556 | } | |
3557 | { | |
3558 | if (arg4) delete [] arg4; | |
3559 | } | |
3560 | return NULL; | |
3561 | } | |
3562 | ||
3563 | ||
3564 | static PyObject *_wrap_MessageBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3565 | PyObject *resultobj; | |
3566 | wxString *arg1 = 0 ; | |
3567 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3568 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3569 | int arg3 = (int) wxOK|wxCENTRE ; | |
3570 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3571 | int arg5 = (int) -1 ; | |
3572 | int arg6 = (int) -1 ; | |
3573 | int result; | |
3574 | bool temp1 = False ; | |
3575 | bool temp2 = False ; | |
3576 | PyObject * obj0 = 0 ; | |
3577 | PyObject * obj1 = 0 ; | |
3578 | PyObject * obj2 = 0 ; | |
3579 | PyObject * obj3 = 0 ; | |
3580 | PyObject * obj4 = 0 ; | |
3581 | PyObject * obj5 = 0 ; | |
3582 | char *kwnames[] = { | |
3583 | (char *) "message",(char *) "caption",(char *) "style",(char *) "parent",(char *) "x",(char *) "y", NULL | |
3584 | }; | |
3585 | ||
3586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:MessageBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
3587 | { | |
3588 | arg1 = wxString_in_helper(obj0); | |
3589 | if (arg1 == NULL) SWIG_fail; | |
3590 | temp1 = True; | |
3591 | } | |
3592 | if (obj1) { | |
3593 | { | |
3594 | arg2 = wxString_in_helper(obj1); | |
3595 | if (arg2 == NULL) SWIG_fail; | |
3596 | temp2 = True; | |
3597 | } | |
3598 | } | |
3599 | if (obj2) { | |
3600 | arg3 = (int) SWIG_AsInt(obj2); | |
3601 | if (PyErr_Occurred()) SWIG_fail; | |
3602 | } | |
3603 | if (obj3) { | |
3604 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
3605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3606 | } | |
3607 | if (obj4) { | |
3608 | arg5 = (int) SWIG_AsInt(obj4); | |
3609 | if (PyErr_Occurred()) SWIG_fail; | |
3610 | } | |
3611 | if (obj5) { | |
3612 | arg6 = (int) SWIG_AsInt(obj5); | |
3613 | if (PyErr_Occurred()) SWIG_fail; | |
3614 | } | |
3615 | { | |
3616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3617 | result = (int)wxMessageBox((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
3618 | ||
3619 | wxPyEndAllowThreads(__tstate); | |
3620 | if (PyErr_Occurred()) SWIG_fail; | |
3621 | } | |
3622 | resultobj = SWIG_FromInt((int)result); | |
3623 | { | |
3624 | if (temp1) | |
3625 | delete arg1; | |
3626 | } | |
3627 | { | |
3628 | if (temp2) | |
3629 | delete arg2; | |
3630 | } | |
3631 | return resultobj; | |
3632 | fail: | |
3633 | { | |
3634 | if (temp1) | |
3635 | delete arg1; | |
3636 | } | |
3637 | { | |
3638 | if (temp2) | |
3639 | delete arg2; | |
3640 | } | |
3641 | return NULL; | |
3642 | } | |
3643 | ||
3644 | ||
3645 | static PyObject *_wrap_GetNumberFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3646 | PyObject *resultobj; | |
3647 | wxString *arg1 = 0 ; | |
3648 | wxString *arg2 = 0 ; | |
3649 | wxString *arg3 = 0 ; | |
3650 | long arg4 ; | |
3651 | long arg5 = (long) 0 ; | |
3652 | long arg6 = (long) 100 ; | |
3653 | wxWindow *arg7 = (wxWindow *) NULL ; | |
3654 | wxPoint const &arg8_defvalue = wxDefaultPosition ; | |
3655 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
3656 | long result; | |
3657 | bool temp1 = False ; | |
3658 | bool temp2 = False ; | |
3659 | bool temp3 = False ; | |
3660 | wxPoint temp8 ; | |
3661 | PyObject * obj0 = 0 ; | |
3662 | PyObject * obj1 = 0 ; | |
3663 | PyObject * obj2 = 0 ; | |
3664 | PyObject * obj3 = 0 ; | |
3665 | PyObject * obj4 = 0 ; | |
3666 | PyObject * obj5 = 0 ; | |
3667 | PyObject * obj6 = 0 ; | |
3668 | PyObject * obj7 = 0 ; | |
3669 | char *kwnames[] = { | |
3670 | (char *) "message",(char *) "prompt",(char *) "caption",(char *) "value",(char *) "min",(char *) "max",(char *) "parent",(char *) "pos", NULL | |
3671 | }; | |
3672 | ||
3673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:GetNumberFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
3674 | { | |
3675 | arg1 = wxString_in_helper(obj0); | |
3676 | if (arg1 == NULL) SWIG_fail; | |
3677 | temp1 = True; | |
3678 | } | |
3679 | { | |
3680 | arg2 = wxString_in_helper(obj1); | |
3681 | if (arg2 == NULL) SWIG_fail; | |
3682 | temp2 = True; | |
3683 | } | |
3684 | { | |
3685 | arg3 = wxString_in_helper(obj2); | |
3686 | if (arg3 == NULL) SWIG_fail; | |
3687 | temp3 = True; | |
3688 | } | |
3689 | arg4 = (long) SWIG_AsLong(obj3); | |
3690 | if (PyErr_Occurred()) SWIG_fail; | |
3691 | if (obj4) { | |
3692 | arg5 = (long) SWIG_AsLong(obj4); | |
3693 | if (PyErr_Occurred()) SWIG_fail; | |
3694 | } | |
3695 | if (obj5) { | |
3696 | arg6 = (long) SWIG_AsLong(obj5); | |
3697 | if (PyErr_Occurred()) SWIG_fail; | |
3698 | } | |
3699 | if (obj6) { | |
3700 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow, | |
3701 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3702 | } | |
3703 | if (obj7) { | |
3704 | { | |
3705 | arg8 = &temp8; | |
3706 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
3707 | } | |
3708 | } | |
3709 | { | |
3710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3711 | result = (long)wxGetNumberFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7,(wxPoint const &)*arg8); | |
3712 | ||
3713 | wxPyEndAllowThreads(__tstate); | |
3714 | if (PyErr_Occurred()) SWIG_fail; | |
3715 | } | |
3716 | resultobj = SWIG_FromLong((long)result); | |
3717 | { | |
3718 | if (temp1) | |
3719 | delete arg1; | |
3720 | } | |
3721 | { | |
3722 | if (temp2) | |
3723 | delete arg2; | |
3724 | } | |
3725 | { | |
3726 | if (temp3) | |
3727 | delete arg3; | |
3728 | } | |
3729 | return resultobj; | |
3730 | fail: | |
3731 | { | |
3732 | if (temp1) | |
3733 | delete arg1; | |
3734 | } | |
3735 | { | |
3736 | if (temp2) | |
3737 | delete arg2; | |
3738 | } | |
3739 | { | |
3740 | if (temp3) | |
3741 | delete arg3; | |
3742 | } | |
3743 | return NULL; | |
3744 | } | |
3745 | ||
3746 | ||
3747 | static PyObject *_wrap_ColourDisplay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3748 | PyObject *resultobj; | |
3749 | bool result; | |
3750 | char *kwnames[] = { | |
3751 | NULL | |
3752 | }; | |
3753 | ||
3754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ColourDisplay",kwnames)) goto fail; | |
3755 | { | |
3756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3757 | result = (bool)wxColourDisplay(); | |
3758 | ||
3759 | wxPyEndAllowThreads(__tstate); | |
3760 | if (PyErr_Occurred()) SWIG_fail; | |
3761 | } | |
3762 | { | |
3763 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3764 | } | |
3765 | return resultobj; | |
3766 | fail: | |
3767 | return NULL; | |
3768 | } | |
3769 | ||
3770 | ||
3771 | static PyObject *_wrap_DisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3772 | PyObject *resultobj; | |
3773 | int result; | |
3774 | char *kwnames[] = { | |
3775 | NULL | |
3776 | }; | |
3777 | ||
3778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplayDepth",kwnames)) goto fail; | |
3779 | { | |
3780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3781 | result = (int)wxDisplayDepth(); | |
3782 | ||
3783 | wxPyEndAllowThreads(__tstate); | |
3784 | if (PyErr_Occurred()) SWIG_fail; | |
3785 | } | |
3786 | resultobj = SWIG_FromInt((int)result); | |
3787 | return resultobj; | |
3788 | fail: | |
3789 | return NULL; | |
3790 | } | |
3791 | ||
3792 | ||
3793 | static PyObject *_wrap_GetDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3794 | PyObject *resultobj; | |
3795 | int result; | |
3796 | char *kwnames[] = { | |
3797 | NULL | |
3798 | }; | |
3799 | ||
3800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplayDepth",kwnames)) goto fail; | |
3801 | { | |
3802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3803 | result = (int)wxGetDisplayDepth(); | |
3804 | ||
3805 | wxPyEndAllowThreads(__tstate); | |
3806 | if (PyErr_Occurred()) SWIG_fail; | |
3807 | } | |
3808 | resultobj = SWIG_FromInt((int)result); | |
3809 | return resultobj; | |
3810 | fail: | |
3811 | return NULL; | |
3812 | } | |
3813 | ||
3814 | ||
3815 | static PyObject *_wrap_DisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3816 | PyObject *resultobj; | |
3817 | int *arg1 = (int *) 0 ; | |
3818 | int *arg2 = (int *) 0 ; | |
3819 | int temp1 ; | |
3820 | int temp2 ; | |
3821 | char *kwnames[] = { | |
3822 | NULL | |
3823 | }; | |
3824 | ||
3825 | arg1 = &temp1; | |
3826 | arg2 = &temp2; | |
3827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySize",kwnames)) goto fail; | |
3828 | { | |
3829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3830 | wxDisplaySize(arg1,arg2); | |
3831 | ||
3832 | wxPyEndAllowThreads(__tstate); | |
3833 | if (PyErr_Occurred()) SWIG_fail; | |
3834 | } | |
3835 | Py_INCREF(Py_None); resultobj = Py_None; | |
3836 | { | |
3837 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
3838 | resultobj = t_output_helper(resultobj,o); | |
3839 | } | |
3840 | { | |
3841 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
3842 | resultobj = t_output_helper(resultobj,o); | |
3843 | } | |
3844 | return resultobj; | |
3845 | fail: | |
3846 | return NULL; | |
3847 | } | |
3848 | ||
3849 | ||
3850 | static PyObject *_wrap_GetDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3851 | PyObject *resultobj; | |
3852 | wxSize result; | |
3853 | char *kwnames[] = { | |
3854 | NULL | |
3855 | }; | |
3856 | ||
3857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySize",kwnames)) goto fail; | |
3858 | { | |
3859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3860 | result = wxGetDisplaySize(); | |
3861 | ||
3862 | wxPyEndAllowThreads(__tstate); | |
3863 | if (PyErr_Occurred()) SWIG_fail; | |
3864 | } | |
3865 | { | |
3866 | wxSize * resultptr; | |
3867 | resultptr = new wxSize((wxSize &) result); | |
3868 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
3869 | } | |
3870 | return resultobj; | |
3871 | fail: | |
3872 | return NULL; | |
3873 | } | |
3874 | ||
3875 | ||
3876 | static PyObject *_wrap_DisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3877 | PyObject *resultobj; | |
3878 | int *arg1 = (int *) 0 ; | |
3879 | int *arg2 = (int *) 0 ; | |
3880 | int temp1 ; | |
3881 | int temp2 ; | |
3882 | char *kwnames[] = { | |
3883 | NULL | |
3884 | }; | |
3885 | ||
3886 | arg1 = &temp1; | |
3887 | arg2 = &temp2; | |
3888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySizeMM",kwnames)) goto fail; | |
3889 | { | |
3890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3891 | wxDisplaySizeMM(arg1,arg2); | |
3892 | ||
3893 | wxPyEndAllowThreads(__tstate); | |
3894 | if (PyErr_Occurred()) SWIG_fail; | |
3895 | } | |
3896 | Py_INCREF(Py_None); resultobj = Py_None; | |
3897 | { | |
3898 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
3899 | resultobj = t_output_helper(resultobj,o); | |
3900 | } | |
3901 | { | |
3902 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
3903 | resultobj = t_output_helper(resultobj,o); | |
3904 | } | |
3905 | return resultobj; | |
3906 | fail: | |
3907 | return NULL; | |
3908 | } | |
3909 | ||
3910 | ||
3911 | static PyObject *_wrap_GetDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3912 | PyObject *resultobj; | |
3913 | wxSize result; | |
3914 | char *kwnames[] = { | |
3915 | NULL | |
3916 | }; | |
3917 | ||
3918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySizeMM",kwnames)) goto fail; | |
3919 | { | |
3920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3921 | result = wxGetDisplaySizeMM(); | |
3922 | ||
3923 | wxPyEndAllowThreads(__tstate); | |
3924 | if (PyErr_Occurred()) SWIG_fail; | |
3925 | } | |
3926 | { | |
3927 | wxSize * resultptr; | |
3928 | resultptr = new wxSize((wxSize &) result); | |
3929 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
3930 | } | |
3931 | return resultobj; | |
3932 | fail: | |
3933 | return NULL; | |
3934 | } | |
3935 | ||
3936 | ||
3937 | static PyObject *_wrap_ClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3938 | PyObject *resultobj; | |
3939 | int *arg1 = (int *) 0 ; | |
3940 | int *arg2 = (int *) 0 ; | |
3941 | int *arg3 = (int *) 0 ; | |
3942 | int *arg4 = (int *) 0 ; | |
3943 | int temp1 ; | |
3944 | int temp2 ; | |
3945 | int temp3 ; | |
3946 | int temp4 ; | |
3947 | char *kwnames[] = { | |
3948 | NULL | |
3949 | }; | |
3950 | ||
3951 | arg1 = &temp1; | |
3952 | arg2 = &temp2; | |
3953 | arg3 = &temp3; | |
3954 | arg4 = &temp4; | |
3955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ClientDisplayRect",kwnames)) goto fail; | |
3956 | { | |
3957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3958 | wxClientDisplayRect(arg1,arg2,arg3,arg4); | |
3959 | ||
3960 | wxPyEndAllowThreads(__tstate); | |
3961 | if (PyErr_Occurred()) SWIG_fail; | |
3962 | } | |
3963 | Py_INCREF(Py_None); resultobj = Py_None; | |
3964 | { | |
3965 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
3966 | resultobj = t_output_helper(resultobj,o); | |
3967 | } | |
3968 | { | |
3969 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
3970 | resultobj = t_output_helper(resultobj,o); | |
3971 | } | |
3972 | { | |
3973 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
3974 | resultobj = t_output_helper(resultobj,o); | |
3975 | } | |
3976 | { | |
3977 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
3978 | resultobj = t_output_helper(resultobj,o); | |
3979 | } | |
3980 | return resultobj; | |
3981 | fail: | |
3982 | return NULL; | |
3983 | } | |
3984 | ||
3985 | ||
3986 | static PyObject *_wrap_GetClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3987 | PyObject *resultobj; | |
3988 | wxRect result; | |
3989 | char *kwnames[] = { | |
3990 | NULL | |
3991 | }; | |
3992 | ||
3993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetClientDisplayRect",kwnames)) goto fail; | |
3994 | { | |
3995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3996 | result = wxGetClientDisplayRect(); | |
3997 | ||
3998 | wxPyEndAllowThreads(__tstate); | |
3999 | if (PyErr_Occurred()) SWIG_fail; | |
4000 | } | |
4001 | { | |
4002 | wxRect * resultptr; | |
4003 | resultptr = new wxRect((wxRect &) result); | |
4004 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
4005 | } | |
4006 | return resultobj; | |
4007 | fail: | |
4008 | return NULL; | |
4009 | } | |
4010 | ||
4011 | ||
4012 | static PyObject *_wrap_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4013 | PyObject *resultobj; | |
4014 | wxCursor *arg1 = 0 ; | |
4015 | PyObject * obj0 = 0 ; | |
4016 | char *kwnames[] = { | |
4017 | (char *) "cursor", NULL | |
4018 | }; | |
4019 | ||
4020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursor",kwnames,&obj0)) goto fail; | |
4021 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
4022 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4023 | SWIG_fail; | |
4024 | if (arg1 == NULL) { | |
4025 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4026 | SWIG_fail; | |
4027 | } | |
4028 | { | |
4029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4030 | wxSetCursor(*arg1); | |
4031 | ||
4032 | wxPyEndAllowThreads(__tstate); | |
4033 | if (PyErr_Occurred()) SWIG_fail; | |
4034 | } | |
4035 | Py_INCREF(Py_None); resultobj = Py_None; | |
4036 | return resultobj; | |
4037 | fail: | |
4038 | return NULL; | |
4039 | } | |
4040 | ||
4041 | ||
4042 | static PyObject *_wrap_BeginBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4043 | PyObject *resultobj; | |
4044 | wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ; | |
4045 | PyObject * obj0 = 0 ; | |
4046 | char *kwnames[] = { | |
4047 | (char *) "cursor", NULL | |
4048 | }; | |
4049 | ||
4050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BeginBusyCursor",kwnames,&obj0)) goto fail; | |
4051 | if (obj0) { | |
4052 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
4053 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4054 | } | |
4055 | { | |
4056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4057 | wxBeginBusyCursor(arg1); | |
4058 | ||
4059 | wxPyEndAllowThreads(__tstate); | |
4060 | if (PyErr_Occurred()) SWIG_fail; | |
4061 | } | |
4062 | Py_INCREF(Py_None); resultobj = Py_None; | |
4063 | return resultobj; | |
4064 | fail: | |
4065 | return NULL; | |
4066 | } | |
4067 | ||
4068 | ||
4069 | static PyObject *_wrap_GetActiveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4070 | PyObject *resultobj; | |
4071 | wxWindow *result; | |
4072 | char *kwnames[] = { | |
4073 | NULL | |
4074 | }; | |
4075 | ||
4076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetActiveWindow",kwnames)) goto fail; | |
4077 | { | |
4078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4079 | result = (wxWindow *)wxGetActiveWindow(); | |
4080 | ||
4081 | wxPyEndAllowThreads(__tstate); | |
4082 | if (PyErr_Occurred()) SWIG_fail; | |
4083 | } | |
4084 | { | |
4085 | resultobj = wxPyMake_wxObject(result); | |
4086 | } | |
4087 | return resultobj; | |
4088 | fail: | |
4089 | return NULL; | |
4090 | } | |
4091 | ||
4092 | ||
4093 | static PyObject *_wrap_GenericFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4094 | PyObject *resultobj; | |
4095 | wxPoint *arg1 = 0 ; | |
4096 | wxWindow *result; | |
4097 | wxPoint temp1 ; | |
4098 | PyObject * obj0 = 0 ; | |
4099 | char *kwnames[] = { | |
4100 | (char *) "pt", NULL | |
4101 | }; | |
4102 | ||
4103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericFindWindowAtPoint",kwnames,&obj0)) goto fail; | |
4104 | { | |
4105 | arg1 = &temp1; | |
4106 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
4107 | } | |
4108 | { | |
4109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4110 | result = (wxWindow *)wxGenericFindWindowAtPoint((wxPoint const &)*arg1); | |
4111 | ||
4112 | wxPyEndAllowThreads(__tstate); | |
4113 | if (PyErr_Occurred()) SWIG_fail; | |
4114 | } | |
4115 | { | |
4116 | resultobj = wxPyMake_wxObject(result); | |
4117 | } | |
4118 | return resultobj; | |
4119 | fail: | |
4120 | return NULL; | |
4121 | } | |
4122 | ||
4123 | ||
4124 | static PyObject *_wrap_FindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4125 | PyObject *resultobj; | |
4126 | wxPoint *arg1 = 0 ; | |
4127 | wxWindow *result; | |
4128 | wxPoint temp1 ; | |
4129 | PyObject * obj0 = 0 ; | |
4130 | char *kwnames[] = { | |
4131 | (char *) "pt", NULL | |
4132 | }; | |
4133 | ||
4134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindWindowAtPoint",kwnames,&obj0)) goto fail; | |
4135 | { | |
4136 | arg1 = &temp1; | |
4137 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
4138 | } | |
4139 | { | |
4140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4141 | result = (wxWindow *)wxFindWindowAtPoint((wxPoint const &)*arg1); | |
4142 | ||
4143 | wxPyEndAllowThreads(__tstate); | |
4144 | if (PyErr_Occurred()) SWIG_fail; | |
4145 | } | |
4146 | { | |
4147 | resultobj = wxPyMake_wxObject(result); | |
4148 | } | |
4149 | return resultobj; | |
4150 | fail: | |
4151 | return NULL; | |
4152 | } | |
4153 | ||
4154 | ||
4155 | static PyObject *_wrap_GetTopLevelParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4156 | PyObject *resultobj; | |
4157 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4158 | wxWindow *result; | |
4159 | PyObject * obj0 = 0 ; | |
4160 | char *kwnames[] = { | |
4161 | (char *) "win", NULL | |
4162 | }; | |
4163 | ||
4164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetTopLevelParent",kwnames,&obj0)) goto fail; | |
4165 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
4166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4167 | { | |
4168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4169 | result = (wxWindow *)wxGetTopLevelParent(arg1); | |
4170 | ||
4171 | wxPyEndAllowThreads(__tstate); | |
4172 | if (PyErr_Occurred()) SWIG_fail; | |
4173 | } | |
4174 | { | |
4175 | resultobj = wxPyMake_wxObject(result); | |
4176 | } | |
4177 | return resultobj; | |
4178 | fail: | |
4179 | return NULL; | |
4180 | } | |
4181 | ||
4182 | ||
4183 | static PyObject *_wrap_GetKeyState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4184 | PyObject *resultobj; | |
4185 | int arg1 ; | |
4186 | bool result; | |
4187 | PyObject * obj0 = 0 ; | |
4188 | char *kwnames[] = { | |
4189 | (char *) "key", NULL | |
4190 | }; | |
4191 | ||
4192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetKeyState",kwnames,&obj0)) goto fail; | |
4193 | arg1 = (wxKeyCode) SWIG_AsInt(obj0); | |
4194 | if (PyErr_Occurred()) SWIG_fail; | |
4195 | { | |
4196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4197 | result = (bool)wxGetKeyState((wxKeyCode )arg1); | |
4198 | ||
4199 | wxPyEndAllowThreads(__tstate); | |
4200 | if (PyErr_Occurred()) SWIG_fail; | |
4201 | } | |
4202 | { | |
4203 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4204 | } | |
4205 | return resultobj; | |
4206 | fail: | |
4207 | return NULL; | |
4208 | } | |
4209 | ||
4210 | ||
4211 | static PyObject *_wrap_WakeUpMainThread(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4212 | PyObject *resultobj; | |
4213 | char *kwnames[] = { | |
4214 | NULL | |
4215 | }; | |
4216 | ||
4217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpMainThread",kwnames)) goto fail; | |
4218 | { | |
4219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4220 | wxWakeUpMainThread(); | |
4221 | ||
4222 | wxPyEndAllowThreads(__tstate); | |
4223 | if (PyErr_Occurred()) SWIG_fail; | |
4224 | } | |
4225 | Py_INCREF(Py_None); resultobj = Py_None; | |
4226 | return resultobj; | |
4227 | fail: | |
4228 | return NULL; | |
4229 | } | |
4230 | ||
4231 | ||
4232 | static PyObject *_wrap_MutexGuiEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4233 | PyObject *resultobj; | |
4234 | char *kwnames[] = { | |
4235 | NULL | |
4236 | }; | |
4237 | ||
4238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiEnter",kwnames)) goto fail; | |
4239 | { | |
4240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4241 | wxMutexGuiEnter(); | |
4242 | ||
4243 | wxPyEndAllowThreads(__tstate); | |
4244 | if (PyErr_Occurred()) SWIG_fail; | |
4245 | } | |
4246 | Py_INCREF(Py_None); resultobj = Py_None; | |
4247 | return resultobj; | |
4248 | fail: | |
4249 | return NULL; | |
4250 | } | |
4251 | ||
4252 | ||
4253 | static PyObject *_wrap_MutexGuiLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4254 | PyObject *resultobj; | |
4255 | char *kwnames[] = { | |
4256 | NULL | |
4257 | }; | |
4258 | ||
4259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiLeave",kwnames)) goto fail; | |
4260 | { | |
4261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4262 | wxMutexGuiLeave(); | |
4263 | ||
4264 | wxPyEndAllowThreads(__tstate); | |
4265 | if (PyErr_Occurred()) SWIG_fail; | |
4266 | } | |
4267 | Py_INCREF(Py_None); resultobj = Py_None; | |
4268 | return resultobj; | |
4269 | fail: | |
4270 | return NULL; | |
4271 | } | |
4272 | ||
4273 | ||
4274 | static PyObject *_wrap_new_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4275 | PyObject *resultobj; | |
4276 | wxMutexGuiLocker *result; | |
4277 | char *kwnames[] = { | |
4278 | NULL | |
4279 | }; | |
4280 | ||
4281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MutexGuiLocker",kwnames)) goto fail; | |
4282 | { | |
4283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4284 | result = (wxMutexGuiLocker *)new wxMutexGuiLocker(); | |
4285 | ||
4286 | wxPyEndAllowThreads(__tstate); | |
4287 | if (PyErr_Occurred()) SWIG_fail; | |
4288 | } | |
4289 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMutexGuiLocker, 1); | |
4290 | return resultobj; | |
4291 | fail: | |
4292 | return NULL; | |
4293 | } | |
4294 | ||
4295 | ||
4296 | static PyObject *_wrap_delete_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4297 | PyObject *resultobj; | |
4298 | wxMutexGuiLocker *arg1 = (wxMutexGuiLocker *) 0 ; | |
4299 | PyObject * obj0 = 0 ; | |
4300 | char *kwnames[] = { | |
4301 | (char *) "self", NULL | |
4302 | }; | |
4303 | ||
4304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MutexGuiLocker",kwnames,&obj0)) goto fail; | |
4305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMutexGuiLocker, | |
4306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4307 | { | |
4308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4309 | delete arg1; | |
4310 | ||
4311 | wxPyEndAllowThreads(__tstate); | |
4312 | if (PyErr_Occurred()) SWIG_fail; | |
4313 | } | |
4314 | Py_INCREF(Py_None); resultobj = Py_None; | |
4315 | return resultobj; | |
4316 | fail: | |
4317 | return NULL; | |
4318 | } | |
4319 | ||
4320 | ||
4321 | static PyObject * MutexGuiLocker_swigregister(PyObject *self, PyObject *args) { | |
4322 | PyObject *obj; | |
4323 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4324 | SWIG_TypeClientData(SWIGTYPE_p_wxMutexGuiLocker, obj); | |
4325 | Py_INCREF(obj); | |
4326 | return Py_BuildValue((char *)""); | |
4327 | } | |
4328 | static PyObject *_wrap_Thread_IsMain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4329 | PyObject *resultobj; | |
4330 | bool result; | |
4331 | char *kwnames[] = { | |
4332 | NULL | |
4333 | }; | |
4334 | ||
4335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Thread_IsMain",kwnames)) goto fail; | |
4336 | { | |
4337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4338 | result = (bool)wxThread_IsMain(); | |
4339 | ||
4340 | wxPyEndAllowThreads(__tstate); | |
4341 | if (PyErr_Occurred()) SWIG_fail; | |
4342 | } | |
4343 | { | |
4344 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4345 | } | |
4346 | return resultobj; | |
4347 | fail: | |
4348 | return NULL; | |
4349 | } | |
4350 | ||
4351 | ||
4352 | static PyObject *_wrap_new_ToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4353 | PyObject *resultobj; | |
4354 | wxString *arg1 = 0 ; | |
4355 | wxToolTip *result; | |
4356 | bool temp1 = False ; | |
4357 | PyObject * obj0 = 0 ; | |
4358 | char *kwnames[] = { | |
4359 | (char *) "tip", NULL | |
4360 | }; | |
4361 | ||
4362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ToolTip",kwnames,&obj0)) goto fail; | |
4363 | { | |
4364 | arg1 = wxString_in_helper(obj0); | |
4365 | if (arg1 == NULL) SWIG_fail; | |
4366 | temp1 = True; | |
4367 | } | |
4368 | { | |
4369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4370 | result = (wxToolTip *)new wxToolTip((wxString const &)*arg1); | |
4371 | ||
4372 | wxPyEndAllowThreads(__tstate); | |
4373 | if (PyErr_Occurred()) SWIG_fail; | |
4374 | } | |
4375 | { | |
4376 | resultobj = wxPyMake_wxObject(result); | |
4377 | } | |
4378 | { | |
4379 | if (temp1) | |
4380 | delete arg1; | |
4381 | } | |
4382 | return resultobj; | |
4383 | fail: | |
4384 | { | |
4385 | if (temp1) | |
4386 | delete arg1; | |
4387 | } | |
4388 | return NULL; | |
4389 | } | |
4390 | ||
4391 | ||
4392 | static PyObject *_wrap_ToolTip_SetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4393 | PyObject *resultobj; | |
4394 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
4395 | wxString *arg2 = 0 ; | |
4396 | bool temp2 = False ; | |
4397 | PyObject * obj0 = 0 ; | |
4398 | PyObject * obj1 = 0 ; | |
4399 | char *kwnames[] = { | |
4400 | (char *) "self",(char *) "tip", NULL | |
4401 | }; | |
4402 | ||
4403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolTip_SetTip",kwnames,&obj0,&obj1)) goto fail; | |
4404 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip, | |
4405 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4406 | { | |
4407 | arg2 = wxString_in_helper(obj1); | |
4408 | if (arg2 == NULL) SWIG_fail; | |
4409 | temp2 = True; | |
4410 | } | |
4411 | { | |
4412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4413 | (arg1)->SetTip((wxString const &)*arg2); | |
4414 | ||
4415 | wxPyEndAllowThreads(__tstate); | |
4416 | if (PyErr_Occurred()) SWIG_fail; | |
4417 | } | |
4418 | Py_INCREF(Py_None); resultobj = Py_None; | |
4419 | { | |
4420 | if (temp2) | |
4421 | delete arg2; | |
4422 | } | |
4423 | return resultobj; | |
4424 | fail: | |
4425 | { | |
4426 | if (temp2) | |
4427 | delete arg2; | |
4428 | } | |
4429 | return NULL; | |
4430 | } | |
4431 | ||
4432 | ||
4433 | static PyObject *_wrap_ToolTip_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4434 | PyObject *resultobj; | |
4435 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
4436 | wxString result; | |
4437 | PyObject * obj0 = 0 ; | |
4438 | char *kwnames[] = { | |
4439 | (char *) "self", NULL | |
4440 | }; | |
4441 | ||
4442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetTip",kwnames,&obj0)) goto fail; | |
4443 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip, | |
4444 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4445 | { | |
4446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4447 | result = (arg1)->GetTip(); | |
4448 | ||
4449 | wxPyEndAllowThreads(__tstate); | |
4450 | if (PyErr_Occurred()) SWIG_fail; | |
4451 | } | |
4452 | { | |
4453 | #if wxUSE_UNICODE | |
4454 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4455 | #else | |
4456 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4457 | #endif | |
4458 | } | |
4459 | return resultobj; | |
4460 | fail: | |
4461 | return NULL; | |
4462 | } | |
4463 | ||
4464 | ||
4465 | static PyObject *_wrap_ToolTip_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4466 | PyObject *resultobj; | |
4467 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
4468 | wxWindow *result; | |
4469 | PyObject * obj0 = 0 ; | |
4470 | char *kwnames[] = { | |
4471 | (char *) "self", NULL | |
4472 | }; | |
4473 | ||
4474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetWindow",kwnames,&obj0)) goto fail; | |
4475 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip, | |
4476 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4477 | { | |
4478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4479 | result = (wxWindow *)(arg1)->GetWindow(); | |
4480 | ||
4481 | wxPyEndAllowThreads(__tstate); | |
4482 | if (PyErr_Occurred()) SWIG_fail; | |
4483 | } | |
4484 | { | |
4485 | resultobj = wxPyMake_wxObject(result); | |
4486 | } | |
4487 | return resultobj; | |
4488 | fail: | |
4489 | return NULL; | |
4490 | } | |
4491 | ||
4492 | ||
4493 | static PyObject *_wrap_ToolTip_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4494 | PyObject *resultobj; | |
4495 | bool arg1 ; | |
4496 | PyObject * obj0 = 0 ; | |
4497 | char *kwnames[] = { | |
4498 | (char *) "flag", NULL | |
4499 | }; | |
4500 | ||
4501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_Enable",kwnames,&obj0)) goto fail; | |
4502 | arg1 = (bool) SWIG_AsBool(obj0); | |
4503 | if (PyErr_Occurred()) SWIG_fail; | |
4504 | { | |
4505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4506 | wxToolTip::Enable(arg1); | |
4507 | ||
4508 | wxPyEndAllowThreads(__tstate); | |
4509 | if (PyErr_Occurred()) SWIG_fail; | |
4510 | } | |
4511 | Py_INCREF(Py_None); resultobj = Py_None; | |
4512 | return resultobj; | |
4513 | fail: | |
4514 | return NULL; | |
4515 | } | |
4516 | ||
4517 | ||
4518 | static PyObject *_wrap_ToolTip_SetDelay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4519 | PyObject *resultobj; | |
4520 | long arg1 ; | |
4521 | PyObject * obj0 = 0 ; | |
4522 | char *kwnames[] = { | |
4523 | (char *) "milliseconds", NULL | |
4524 | }; | |
4525 | ||
4526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_SetDelay",kwnames,&obj0)) goto fail; | |
4527 | arg1 = (long) SWIG_AsLong(obj0); | |
4528 | if (PyErr_Occurred()) SWIG_fail; | |
4529 | { | |
4530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4531 | wxToolTip::SetDelay(arg1); | |
4532 | ||
4533 | wxPyEndAllowThreads(__tstate); | |
4534 | if (PyErr_Occurred()) SWIG_fail; | |
4535 | } | |
4536 | Py_INCREF(Py_None); resultobj = Py_None; | |
4537 | return resultobj; | |
4538 | fail: | |
4539 | return NULL; | |
4540 | } | |
4541 | ||
4542 | ||
4543 | static PyObject * ToolTip_swigregister(PyObject *self, PyObject *args) { | |
4544 | PyObject *obj; | |
4545 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4546 | SWIG_TypeClientData(SWIGTYPE_p_wxToolTip, obj); | |
4547 | Py_INCREF(obj); | |
4548 | return Py_BuildValue((char *)""); | |
4549 | } | |
4550 | static PyObject *_wrap_new_Caret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4551 | PyObject *resultobj; | |
4552 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4553 | wxSize *arg2 = 0 ; | |
4554 | wxCaret *result; | |
4555 | wxSize temp2 ; | |
4556 | PyObject * obj0 = 0 ; | |
4557 | PyObject * obj1 = 0 ; | |
4558 | char *kwnames[] = { | |
4559 | (char *) "window",(char *) "size", NULL | |
4560 | }; | |
4561 | ||
4562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_Caret",kwnames,&obj0,&obj1)) goto fail; | |
4563 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
4564 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4565 | { | |
4566 | arg2 = &temp2; | |
4567 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4568 | } | |
4569 | { | |
4570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4571 | result = (wxCaret *)new wxCaret(arg1,(wxSize const &)*arg2); | |
4572 | ||
4573 | wxPyEndAllowThreads(__tstate); | |
4574 | if (PyErr_Occurred()) SWIG_fail; | |
4575 | } | |
4576 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 1); | |
4577 | return resultobj; | |
4578 | fail: | |
4579 | return NULL; | |
4580 | } | |
4581 | ||
4582 | ||
4583 | static PyObject *_wrap_delete_Caret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4584 | PyObject *resultobj; | |
4585 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4586 | PyObject * obj0 = 0 ; | |
4587 | char *kwnames[] = { | |
4588 | (char *) "self", NULL | |
4589 | }; | |
4590 | ||
4591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Caret",kwnames,&obj0)) goto fail; | |
4592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
4593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4594 | { | |
4595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4596 | delete arg1; | |
4597 | ||
4598 | wxPyEndAllowThreads(__tstate); | |
4599 | if (PyErr_Occurred()) SWIG_fail; | |
4600 | } | |
4601 | Py_INCREF(Py_None); resultobj = Py_None; | |
4602 | return resultobj; | |
4603 | fail: | |
4604 | return NULL; | |
4605 | } | |
4606 | ||
4607 | ||
4608 | static PyObject *_wrap_Caret_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4609 | PyObject *resultobj; | |
4610 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4611 | bool result; | |
4612 | PyObject * obj0 = 0 ; | |
4613 | char *kwnames[] = { | |
4614 | (char *) "self", NULL | |
4615 | }; | |
4616 | ||
4617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsOk",kwnames,&obj0)) goto fail; | |
4618 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
4619 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4620 | { | |
4621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4622 | result = (bool)(arg1)->IsOk(); | |
4623 | ||
4624 | wxPyEndAllowThreads(__tstate); | |
4625 | if (PyErr_Occurred()) SWIG_fail; | |
4626 | } | |
4627 | { | |
4628 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4629 | } | |
4630 | return resultobj; | |
4631 | fail: | |
4632 | return NULL; | |
4633 | } | |
4634 | ||
4635 | ||
4636 | static PyObject *_wrap_Caret_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4637 | PyObject *resultobj; | |
4638 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4639 | bool result; | |
4640 | PyObject * obj0 = 0 ; | |
4641 | char *kwnames[] = { | |
4642 | (char *) "self", NULL | |
4643 | }; | |
4644 | ||
4645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsVisible",kwnames,&obj0)) goto fail; | |
4646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
4647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4648 | { | |
4649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4650 | result = (bool)(arg1)->IsVisible(); | |
4651 | ||
4652 | wxPyEndAllowThreads(__tstate); | |
4653 | if (PyErr_Occurred()) SWIG_fail; | |
4654 | } | |
4655 | { | |
4656 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4657 | } | |
4658 | return resultobj; | |
4659 | fail: | |
4660 | return NULL; | |
4661 | } | |
4662 | ||
4663 | ||
4664 | static PyObject *_wrap_Caret_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4665 | PyObject *resultobj; | |
4666 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4667 | wxPoint result; | |
4668 | PyObject * obj0 = 0 ; | |
4669 | char *kwnames[] = { | |
4670 | (char *) "self", NULL | |
4671 | }; | |
4672 | ||
4673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPosition",kwnames,&obj0)) goto fail; | |
4674 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
4675 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4676 | { | |
4677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4678 | result = (arg1)->GetPosition(); | |
4679 | ||
4680 | wxPyEndAllowThreads(__tstate); | |
4681 | if (PyErr_Occurred()) SWIG_fail; | |
4682 | } | |
4683 | { | |
4684 | wxPoint * resultptr; | |
4685 | resultptr = new wxPoint((wxPoint &) result); | |
4686 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
4687 | } | |
4688 | return resultobj; | |
4689 | fail: | |
4690 | return NULL; | |
4691 | } | |
4692 | ||
4693 | ||
4694 | static PyObject *_wrap_Caret_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4695 | PyObject *resultobj; | |
4696 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4697 | int *arg2 = (int *) 0 ; | |
4698 | int *arg3 = (int *) 0 ; | |
4699 | int temp2 ; | |
4700 | int temp3 ; | |
4701 | PyObject * obj0 = 0 ; | |
4702 | char *kwnames[] = { | |
4703 | (char *) "self", NULL | |
4704 | }; | |
4705 | ||
4706 | arg2 = &temp2; | |
4707 | arg3 = &temp3; | |
4708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPositionTuple",kwnames,&obj0)) goto fail; | |
4709 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
4710 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4711 | { | |
4712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4713 | (arg1)->GetPosition(arg2,arg3); | |
4714 | ||
4715 | wxPyEndAllowThreads(__tstate); | |
4716 | if (PyErr_Occurred()) SWIG_fail; | |
4717 | } | |
4718 | Py_INCREF(Py_None); resultobj = Py_None; | |
4719 | { | |
4720 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4721 | resultobj = t_output_helper(resultobj,o); | |
4722 | } | |
4723 | { | |
4724 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4725 | resultobj = t_output_helper(resultobj,o); | |
4726 | } | |
4727 | return resultobj; | |
4728 | fail: | |
4729 | return NULL; | |
4730 | } | |
4731 | ||
4732 | ||
4733 | static PyObject *_wrap_Caret_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4734 | PyObject *resultobj; | |
4735 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4736 | wxSize result; | |
4737 | PyObject * obj0 = 0 ; | |
4738 | char *kwnames[] = { | |
4739 | (char *) "self", NULL | |
4740 | }; | |
4741 | ||
4742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSize",kwnames,&obj0)) goto fail; | |
4743 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
4744 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4745 | { | |
4746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4747 | result = (arg1)->GetSize(); | |
4748 | ||
4749 | wxPyEndAllowThreads(__tstate); | |
4750 | if (PyErr_Occurred()) SWIG_fail; | |
4751 | } | |
4752 | { | |
4753 | wxSize * resultptr; | |
4754 | resultptr = new wxSize((wxSize &) result); | |
4755 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
4756 | } | |
4757 | return resultobj; | |
4758 | fail: | |
4759 | return NULL; | |
4760 | } | |
4761 | ||
4762 | ||
4763 | static PyObject *_wrap_Caret_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4764 | PyObject *resultobj; | |
4765 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4766 | int *arg2 = (int *) 0 ; | |
4767 | int *arg3 = (int *) 0 ; | |
4768 | int temp2 ; | |
4769 | int temp3 ; | |
4770 | PyObject * obj0 = 0 ; | |
4771 | char *kwnames[] = { | |
4772 | (char *) "self", NULL | |
4773 | }; | |
4774 | ||
4775 | arg2 = &temp2; | |
4776 | arg3 = &temp3; | |
4777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSizeTuple",kwnames,&obj0)) goto fail; | |
4778 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
4779 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4780 | { | |
4781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4782 | (arg1)->GetSize(arg2,arg3); | |
4783 | ||
4784 | wxPyEndAllowThreads(__tstate); | |
4785 | if (PyErr_Occurred()) SWIG_fail; | |
4786 | } | |
4787 | Py_INCREF(Py_None); resultobj = Py_None; | |
4788 | { | |
4789 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4790 | resultobj = t_output_helper(resultobj,o); | |
4791 | } | |
4792 | { | |
4793 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4794 | resultobj = t_output_helper(resultobj,o); | |
4795 | } | |
4796 | return resultobj; | |
4797 | fail: | |
4798 | return NULL; | |
4799 | } | |
4800 | ||
4801 | ||
4802 | static PyObject *_wrap_Caret_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4803 | PyObject *resultobj; | |
4804 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4805 | wxWindow *result; | |
4806 | PyObject * obj0 = 0 ; | |
4807 | char *kwnames[] = { | |
4808 | (char *) "self", NULL | |
4809 | }; | |
4810 | ||
4811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetWindow",kwnames,&obj0)) goto fail; | |
4812 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
4813 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4814 | { | |
4815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4816 | result = (wxWindow *)(arg1)->GetWindow(); | |
4817 | ||
4818 | wxPyEndAllowThreads(__tstate); | |
4819 | if (PyErr_Occurred()) SWIG_fail; | |
4820 | } | |
4821 | { | |
4822 | resultobj = wxPyMake_wxObject(result); | |
4823 | } | |
4824 | return resultobj; | |
4825 | fail: | |
4826 | return NULL; | |
4827 | } | |
4828 | ||
4829 | ||
4830 | static PyObject *_wrap_Caret_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4831 | PyObject *resultobj; | |
4832 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4833 | int arg2 ; | |
4834 | int arg3 ; | |
4835 | PyObject * obj0 = 0 ; | |
4836 | PyObject * obj1 = 0 ; | |
4837 | PyObject * obj2 = 0 ; | |
4838 | char *kwnames[] = { | |
4839 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4840 | }; | |
4841 | ||
4842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_MoveXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4843 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
4844 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4845 | arg2 = (int) SWIG_AsInt(obj1); | |
4846 | if (PyErr_Occurred()) SWIG_fail; | |
4847 | arg3 = (int) SWIG_AsInt(obj2); | |
4848 | if (PyErr_Occurred()) SWIG_fail; | |
4849 | { | |
4850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4851 | (arg1)->Move(arg2,arg3); | |
4852 | ||
4853 | wxPyEndAllowThreads(__tstate); | |
4854 | if (PyErr_Occurred()) SWIG_fail; | |
4855 | } | |
4856 | Py_INCREF(Py_None); resultobj = Py_None; | |
4857 | return resultobj; | |
4858 | fail: | |
4859 | return NULL; | |
4860 | } | |
4861 | ||
4862 | ||
4863 | static PyObject *_wrap_Caret_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4864 | PyObject *resultobj; | |
4865 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4866 | wxPoint *arg2 = 0 ; | |
4867 | wxPoint temp2 ; | |
4868 | PyObject * obj0 = 0 ; | |
4869 | PyObject * obj1 = 0 ; | |
4870 | char *kwnames[] = { | |
4871 | (char *) "self",(char *) "pt", NULL | |
4872 | }; | |
4873 | ||
4874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_Move",kwnames,&obj0,&obj1)) goto fail; | |
4875 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
4876 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4877 | { | |
4878 | arg2 = &temp2; | |
4879 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4880 | } | |
4881 | { | |
4882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4883 | (arg1)->Move((wxPoint const &)*arg2); | |
4884 | ||
4885 | wxPyEndAllowThreads(__tstate); | |
4886 | if (PyErr_Occurred()) SWIG_fail; | |
4887 | } | |
4888 | Py_INCREF(Py_None); resultobj = Py_None; | |
4889 | return resultobj; | |
4890 | fail: | |
4891 | return NULL; | |
4892 | } | |
4893 | ||
4894 | ||
4895 | static PyObject *_wrap_Caret_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4896 | PyObject *resultobj; | |
4897 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4898 | int arg2 ; | |
4899 | int arg3 ; | |
4900 | PyObject * obj0 = 0 ; | |
4901 | PyObject * obj1 = 0 ; | |
4902 | PyObject * obj2 = 0 ; | |
4903 | char *kwnames[] = { | |
4904 | (char *) "self",(char *) "width",(char *) "height", NULL | |
4905 | }; | |
4906 | ||
4907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
4909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4910 | arg2 = (int) SWIG_AsInt(obj1); | |
4911 | if (PyErr_Occurred()) SWIG_fail; | |
4912 | arg3 = (int) SWIG_AsInt(obj2); | |
4913 | if (PyErr_Occurred()) SWIG_fail; | |
4914 | { | |
4915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4916 | (arg1)->SetSize(arg2,arg3); | |
4917 | ||
4918 | wxPyEndAllowThreads(__tstate); | |
4919 | if (PyErr_Occurred()) SWIG_fail; | |
4920 | } | |
4921 | Py_INCREF(Py_None); resultobj = Py_None; | |
4922 | return resultobj; | |
4923 | fail: | |
4924 | return NULL; | |
4925 | } | |
4926 | ||
4927 | ||
4928 | static PyObject *_wrap_Caret_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4929 | PyObject *resultobj; | |
4930 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4931 | wxSize *arg2 = 0 ; | |
4932 | wxSize temp2 ; | |
4933 | PyObject * obj0 = 0 ; | |
4934 | PyObject * obj1 = 0 ; | |
4935 | char *kwnames[] = { | |
4936 | (char *) "self",(char *) "size", NULL | |
4937 | }; | |
4938 | ||
4939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
4940 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
4941 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4942 | { | |
4943 | arg2 = &temp2; | |
4944 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4945 | } | |
4946 | { | |
4947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4948 | (arg1)->SetSize((wxSize const &)*arg2); | |
4949 | ||
4950 | wxPyEndAllowThreads(__tstate); | |
4951 | if (PyErr_Occurred()) SWIG_fail; | |
4952 | } | |
4953 | Py_INCREF(Py_None); resultobj = Py_None; | |
4954 | return resultobj; | |
4955 | fail: | |
4956 | return NULL; | |
4957 | } | |
4958 | ||
4959 | ||
4960 | static PyObject *_wrap_Caret_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4961 | PyObject *resultobj; | |
4962 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4963 | int arg2 = (int) True ; | |
4964 | PyObject * obj0 = 0 ; | |
4965 | PyObject * obj1 = 0 ; | |
4966 | char *kwnames[] = { | |
4967 | (char *) "self",(char *) "show", NULL | |
4968 | }; | |
4969 | ||
4970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Caret_Show",kwnames,&obj0,&obj1)) goto fail; | |
4971 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
4972 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4973 | if (obj1) { | |
4974 | arg2 = (int) SWIG_AsInt(obj1); | |
4975 | if (PyErr_Occurred()) SWIG_fail; | |
4976 | } | |
4977 | { | |
4978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4979 | (arg1)->Show(arg2); | |
4980 | ||
4981 | wxPyEndAllowThreads(__tstate); | |
4982 | if (PyErr_Occurred()) SWIG_fail; | |
4983 | } | |
4984 | Py_INCREF(Py_None); resultobj = Py_None; | |
4985 | return resultobj; | |
4986 | fail: | |
4987 | return NULL; | |
4988 | } | |
4989 | ||
4990 | ||
4991 | static PyObject *_wrap_Caret_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4992 | PyObject *resultobj; | |
4993 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4994 | PyObject * obj0 = 0 ; | |
4995 | char *kwnames[] = { | |
4996 | (char *) "self", NULL | |
4997 | }; | |
4998 | ||
4999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Hide",kwnames,&obj0)) goto fail; | |
5000 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5001 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5002 | { | |
5003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5004 | (arg1)->Hide(); | |
5005 | ||
5006 | wxPyEndAllowThreads(__tstate); | |
5007 | if (PyErr_Occurred()) SWIG_fail; | |
5008 | } | |
5009 | Py_INCREF(Py_None); resultobj = Py_None; | |
5010 | return resultobj; | |
5011 | fail: | |
5012 | return NULL; | |
5013 | } | |
5014 | ||
5015 | ||
5016 | static PyObject * Caret_swigregister(PyObject *self, PyObject *args) { | |
5017 | PyObject *obj; | |
5018 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5019 | SWIG_TypeClientData(SWIGTYPE_p_wxCaret, obj); | |
5020 | Py_INCREF(obj); | |
5021 | return Py_BuildValue((char *)""); | |
5022 | } | |
5023 | static PyObject *_wrap_Caret_GetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5024 | PyObject *resultobj; | |
5025 | int result; | |
5026 | char *kwnames[] = { | |
5027 | NULL | |
5028 | }; | |
5029 | ||
5030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Caret_GetBlinkTime",kwnames)) goto fail; | |
5031 | { | |
5032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5033 | result = (int)wxCaret_GetBlinkTime(); | |
5034 | ||
5035 | wxPyEndAllowThreads(__tstate); | |
5036 | if (PyErr_Occurred()) SWIG_fail; | |
5037 | } | |
5038 | resultobj = SWIG_FromInt((int)result); | |
5039 | return resultobj; | |
5040 | fail: | |
5041 | return NULL; | |
5042 | } | |
5043 | ||
5044 | ||
5045 | static PyObject *_wrap_Caret_SetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5046 | PyObject *resultobj; | |
5047 | int arg1 ; | |
5048 | PyObject * obj0 = 0 ; | |
5049 | char *kwnames[] = { | |
5050 | (char *) "milliseconds", NULL | |
5051 | }; | |
5052 | ||
5053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_SetBlinkTime",kwnames,&obj0)) goto fail; | |
5054 | arg1 = (int) SWIG_AsInt(obj0); | |
5055 | if (PyErr_Occurred()) SWIG_fail; | |
5056 | { | |
5057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5058 | wxCaret_SetBlinkTime(arg1); | |
5059 | ||
5060 | wxPyEndAllowThreads(__tstate); | |
5061 | if (PyErr_Occurred()) SWIG_fail; | |
5062 | } | |
5063 | Py_INCREF(Py_None); resultobj = Py_None; | |
5064 | return resultobj; | |
5065 | fail: | |
5066 | return NULL; | |
5067 | } | |
5068 | ||
5069 | ||
5070 | static PyObject *_wrap_new_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5071 | PyObject *resultobj; | |
5072 | wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ; | |
5073 | wxBusyCursor *result; | |
5074 | PyObject * obj0 = 0 ; | |
5075 | char *kwnames[] = { | |
5076 | (char *) "cursor", NULL | |
5077 | }; | |
5078 | ||
5079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BusyCursor",kwnames,&obj0)) goto fail; | |
5080 | if (obj0) { | |
5081 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
5082 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5083 | } | |
5084 | { | |
5085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5086 | result = (wxBusyCursor *)new wxBusyCursor(arg1); | |
5087 | ||
5088 | wxPyEndAllowThreads(__tstate); | |
5089 | if (PyErr_Occurred()) SWIG_fail; | |
5090 | } | |
5091 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyCursor, 1); | |
5092 | return resultobj; | |
5093 | fail: | |
5094 | return NULL; | |
5095 | } | |
5096 | ||
5097 | ||
5098 | static PyObject *_wrap_delete_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5099 | PyObject *resultobj; | |
5100 | wxBusyCursor *arg1 = (wxBusyCursor *) 0 ; | |
5101 | PyObject * obj0 = 0 ; | |
5102 | char *kwnames[] = { | |
5103 | (char *) "self", NULL | |
5104 | }; | |
5105 | ||
5106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyCursor",kwnames,&obj0)) goto fail; | |
5107 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyCursor, | |
5108 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5109 | { | |
5110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5111 | delete arg1; | |
5112 | ||
5113 | wxPyEndAllowThreads(__tstate); | |
5114 | if (PyErr_Occurred()) SWIG_fail; | |
5115 | } | |
5116 | Py_INCREF(Py_None); resultobj = Py_None; | |
5117 | return resultobj; | |
5118 | fail: | |
5119 | return NULL; | |
5120 | } | |
5121 | ||
5122 | ||
5123 | static PyObject * BusyCursor_swigregister(PyObject *self, PyObject *args) { | |
5124 | PyObject *obj; | |
5125 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5126 | SWIG_TypeClientData(SWIGTYPE_p_wxBusyCursor, obj); | |
5127 | Py_INCREF(obj); | |
5128 | return Py_BuildValue((char *)""); | |
5129 | } | |
5130 | static PyObject *_wrap_new_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5131 | PyObject *resultobj; | |
5132 | wxWindow *arg1 = (wxWindow *) NULL ; | |
5133 | wxWindowDisabler *result; | |
5134 | PyObject * obj0 = 0 ; | |
5135 | char *kwnames[] = { | |
5136 | (char *) "winToSkip", NULL | |
5137 | }; | |
5138 | ||
5139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDisabler",kwnames,&obj0)) goto fail; | |
5140 | if (obj0) { | |
5141 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
5142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5143 | } | |
5144 | { | |
5145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5146 | result = (wxWindowDisabler *)new wxWindowDisabler(arg1); | |
5147 | ||
5148 | wxPyEndAllowThreads(__tstate); | |
5149 | if (PyErr_Occurred()) SWIG_fail; | |
5150 | } | |
5151 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDisabler, 1); | |
5152 | return resultobj; | |
5153 | fail: | |
5154 | return NULL; | |
5155 | } | |
5156 | ||
5157 | ||
5158 | static PyObject *_wrap_delete_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5159 | PyObject *resultobj; | |
5160 | wxWindowDisabler *arg1 = (wxWindowDisabler *) 0 ; | |
5161 | PyObject * obj0 = 0 ; | |
5162 | char *kwnames[] = { | |
5163 | (char *) "self", NULL | |
5164 | }; | |
5165 | ||
5166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_WindowDisabler",kwnames,&obj0)) goto fail; | |
5167 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDisabler, | |
5168 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5169 | { | |
5170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5171 | delete arg1; | |
5172 | ||
5173 | wxPyEndAllowThreads(__tstate); | |
5174 | if (PyErr_Occurred()) SWIG_fail; | |
5175 | } | |
5176 | Py_INCREF(Py_None); resultobj = Py_None; | |
5177 | return resultobj; | |
5178 | fail: | |
5179 | return NULL; | |
5180 | } | |
5181 | ||
5182 | ||
5183 | static PyObject * WindowDisabler_swigregister(PyObject *self, PyObject *args) { | |
5184 | PyObject *obj; | |
5185 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5186 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDisabler, obj); | |
5187 | Py_INCREF(obj); | |
5188 | return Py_BuildValue((char *)""); | |
5189 | } | |
5190 | static PyObject *_wrap_new_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5191 | PyObject *resultobj; | |
5192 | wxString *arg1 = 0 ; | |
5193 | wxBusyInfo *result; | |
5194 | bool temp1 = False ; | |
5195 | PyObject * obj0 = 0 ; | |
5196 | char *kwnames[] = { | |
5197 | (char *) "message", NULL | |
5198 | }; | |
5199 | ||
5200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BusyInfo",kwnames,&obj0)) goto fail; | |
5201 | { | |
5202 | arg1 = wxString_in_helper(obj0); | |
5203 | if (arg1 == NULL) SWIG_fail; | |
5204 | temp1 = True; | |
5205 | } | |
5206 | { | |
5207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5208 | result = (wxBusyInfo *)new wxBusyInfo((wxString const &)*arg1); | |
5209 | ||
5210 | wxPyEndAllowThreads(__tstate); | |
5211 | if (PyErr_Occurred()) SWIG_fail; | |
5212 | } | |
5213 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyInfo, 1); | |
5214 | { | |
5215 | if (temp1) | |
5216 | delete arg1; | |
5217 | } | |
5218 | return resultobj; | |
5219 | fail: | |
5220 | { | |
5221 | if (temp1) | |
5222 | delete arg1; | |
5223 | } | |
5224 | return NULL; | |
5225 | } | |
5226 | ||
5227 | ||
5228 | static PyObject *_wrap_delete_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5229 | PyObject *resultobj; | |
5230 | wxBusyInfo *arg1 = (wxBusyInfo *) 0 ; | |
5231 | PyObject * obj0 = 0 ; | |
5232 | char *kwnames[] = { | |
5233 | (char *) "self", NULL | |
5234 | }; | |
5235 | ||
5236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyInfo",kwnames,&obj0)) goto fail; | |
5237 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyInfo, | |
5238 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5239 | { | |
5240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5241 | delete arg1; | |
5242 | ||
5243 | wxPyEndAllowThreads(__tstate); | |
5244 | if (PyErr_Occurred()) SWIG_fail; | |
5245 | } | |
5246 | Py_INCREF(Py_None); resultobj = Py_None; | |
5247 | return resultobj; | |
5248 | fail: | |
5249 | return NULL; | |
5250 | } | |
5251 | ||
5252 | ||
5253 | static PyObject * BusyInfo_swigregister(PyObject *self, PyObject *args) { | |
5254 | PyObject *obj; | |
5255 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5256 | SWIG_TypeClientData(SWIGTYPE_p_wxBusyInfo, obj); | |
5257 | Py_INCREF(obj); | |
5258 | return Py_BuildValue((char *)""); | |
5259 | } | |
5260 | static PyObject *_wrap_new_StopWatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5261 | PyObject *resultobj; | |
5262 | wxStopWatch *result; | |
5263 | char *kwnames[] = { | |
5264 | NULL | |
5265 | }; | |
5266 | ||
5267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StopWatch",kwnames)) goto fail; | |
5268 | { | |
5269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5270 | result = (wxStopWatch *)new wxStopWatch(); | |
5271 | ||
5272 | wxPyEndAllowThreads(__tstate); | |
5273 | if (PyErr_Occurred()) SWIG_fail; | |
5274 | } | |
5275 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStopWatch, 1); | |
5276 | return resultobj; | |
5277 | fail: | |
5278 | return NULL; | |
5279 | } | |
5280 | ||
5281 | ||
5282 | static PyObject *_wrap_StopWatch_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5283 | PyObject *resultobj; | |
5284 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5285 | long arg2 = (long) 0 ; | |
5286 | PyObject * obj0 = 0 ; | |
5287 | PyObject * obj1 = 0 ; | |
5288 | char *kwnames[] = { | |
5289 | (char *) "self",(char *) "t0", NULL | |
5290 | }; | |
5291 | ||
5292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StopWatch_Start",kwnames,&obj0,&obj1)) goto fail; | |
5293 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, | |
5294 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5295 | if (obj1) { | |
5296 | arg2 = (long) SWIG_AsLong(obj1); | |
5297 | if (PyErr_Occurred()) SWIG_fail; | |
5298 | } | |
5299 | { | |
5300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5301 | (arg1)->Start(arg2); | |
5302 | ||
5303 | wxPyEndAllowThreads(__tstate); | |
5304 | if (PyErr_Occurred()) SWIG_fail; | |
5305 | } | |
5306 | Py_INCREF(Py_None); resultobj = Py_None; | |
5307 | return resultobj; | |
5308 | fail: | |
5309 | return NULL; | |
5310 | } | |
5311 | ||
5312 | ||
5313 | static PyObject *_wrap_StopWatch_Pause(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5314 | PyObject *resultobj; | |
5315 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5316 | PyObject * obj0 = 0 ; | |
5317 | char *kwnames[] = { | |
5318 | (char *) "self", NULL | |
5319 | }; | |
5320 | ||
5321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Pause",kwnames,&obj0)) goto fail; | |
5322 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, | |
5323 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5324 | { | |
5325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5326 | (arg1)->Pause(); | |
5327 | ||
5328 | wxPyEndAllowThreads(__tstate); | |
5329 | if (PyErr_Occurred()) SWIG_fail; | |
5330 | } | |
5331 | Py_INCREF(Py_None); resultobj = Py_None; | |
5332 | return resultobj; | |
5333 | fail: | |
5334 | return NULL; | |
5335 | } | |
5336 | ||
5337 | ||
5338 | static PyObject *_wrap_StopWatch_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5339 | PyObject *resultobj; | |
5340 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5341 | PyObject * obj0 = 0 ; | |
5342 | char *kwnames[] = { | |
5343 | (char *) "self", NULL | |
5344 | }; | |
5345 | ||
5346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Resume",kwnames,&obj0)) goto fail; | |
5347 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, | |
5348 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5349 | { | |
5350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5351 | (arg1)->Resume(); | |
5352 | ||
5353 | wxPyEndAllowThreads(__tstate); | |
5354 | if (PyErr_Occurred()) SWIG_fail; | |
5355 | } | |
5356 | Py_INCREF(Py_None); resultobj = Py_None; | |
5357 | return resultobj; | |
5358 | fail: | |
5359 | return NULL; | |
5360 | } | |
5361 | ||
5362 | ||
5363 | static PyObject *_wrap_StopWatch_Time(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5364 | PyObject *resultobj; | |
5365 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5366 | long result; | |
5367 | PyObject * obj0 = 0 ; | |
5368 | char *kwnames[] = { | |
5369 | (char *) "self", NULL | |
5370 | }; | |
5371 | ||
5372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Time",kwnames,&obj0)) goto fail; | |
5373 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, | |
5374 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5375 | { | |
5376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5377 | result = (long)((wxStopWatch const *)arg1)->Time(); | |
5378 | ||
5379 | wxPyEndAllowThreads(__tstate); | |
5380 | if (PyErr_Occurred()) SWIG_fail; | |
5381 | } | |
5382 | resultobj = SWIG_FromLong((long)result); | |
5383 | return resultobj; | |
5384 | fail: | |
5385 | return NULL; | |
5386 | } | |
5387 | ||
5388 | ||
5389 | static PyObject * StopWatch_swigregister(PyObject *self, PyObject *args) { | |
5390 | PyObject *obj; | |
5391 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5392 | SWIG_TypeClientData(SWIGTYPE_p_wxStopWatch, obj); | |
5393 | Py_INCREF(obj); | |
5394 | return Py_BuildValue((char *)""); | |
5395 | } | |
5396 | static PyObject *_wrap_new_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5397 | PyObject *resultobj; | |
5398 | int arg1 = (int) 9 ; | |
5399 | wxFileHistory *result; | |
5400 | PyObject * obj0 = 0 ; | |
5401 | char *kwnames[] = { | |
5402 | (char *) "maxFiles", NULL | |
5403 | }; | |
5404 | ||
5405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_FileHistory",kwnames,&obj0)) goto fail; | |
5406 | if (obj0) { | |
5407 | arg1 = (int) SWIG_AsInt(obj0); | |
5408 | if (PyErr_Occurred()) SWIG_fail; | |
5409 | } | |
5410 | { | |
5411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5412 | result = (wxFileHistory *)new wxFileHistory(arg1); | |
5413 | ||
5414 | wxPyEndAllowThreads(__tstate); | |
5415 | if (PyErr_Occurred()) SWIG_fail; | |
5416 | } | |
5417 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileHistory, 1); | |
5418 | return resultobj; | |
5419 | fail: | |
5420 | return NULL; | |
5421 | } | |
5422 | ||
5423 | ||
5424 | static PyObject *_wrap_delete_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5425 | PyObject *resultobj; | |
5426 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5427 | PyObject * obj0 = 0 ; | |
5428 | char *kwnames[] = { | |
5429 | (char *) "self", NULL | |
5430 | }; | |
5431 | ||
5432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileHistory",kwnames,&obj0)) goto fail; | |
5433 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5434 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5435 | { | |
5436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5437 | delete arg1; | |
5438 | ||
5439 | wxPyEndAllowThreads(__tstate); | |
5440 | if (PyErr_Occurred()) SWIG_fail; | |
5441 | } | |
5442 | Py_INCREF(Py_None); resultobj = Py_None; | |
5443 | return resultobj; | |
5444 | fail: | |
5445 | return NULL; | |
5446 | } | |
5447 | ||
5448 | ||
5449 | static PyObject *_wrap_FileHistory_AddFileToHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5450 | PyObject *resultobj; | |
5451 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5452 | wxString *arg2 = 0 ; | |
5453 | bool temp2 = False ; | |
5454 | PyObject * obj0 = 0 ; | |
5455 | PyObject * obj1 = 0 ; | |
5456 | char *kwnames[] = { | |
5457 | (char *) "self",(char *) "file", NULL | |
5458 | }; | |
5459 | ||
5460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFileToHistory",kwnames,&obj0,&obj1)) goto fail; | |
5461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5463 | { | |
5464 | arg2 = wxString_in_helper(obj1); | |
5465 | if (arg2 == NULL) SWIG_fail; | |
5466 | temp2 = True; | |
5467 | } | |
5468 | { | |
5469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5470 | (arg1)->AddFileToHistory((wxString const &)*arg2); | |
5471 | ||
5472 | wxPyEndAllowThreads(__tstate); | |
5473 | if (PyErr_Occurred()) SWIG_fail; | |
5474 | } | |
5475 | Py_INCREF(Py_None); resultobj = Py_None; | |
5476 | { | |
5477 | if (temp2) | |
5478 | delete arg2; | |
5479 | } | |
5480 | return resultobj; | |
5481 | fail: | |
5482 | { | |
5483 | if (temp2) | |
5484 | delete arg2; | |
5485 | } | |
5486 | return NULL; | |
5487 | } | |
5488 | ||
5489 | ||
5490 | static PyObject *_wrap_FileHistory_RemoveFileFromHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5491 | PyObject *resultobj; | |
5492 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5493 | int arg2 ; | |
5494 | PyObject * obj0 = 0 ; | |
5495 | PyObject * obj1 = 0 ; | |
5496 | char *kwnames[] = { | |
5497 | (char *) "self",(char *) "i", NULL | |
5498 | }; | |
5499 | ||
5500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveFileFromHistory",kwnames,&obj0,&obj1)) goto fail; | |
5501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5503 | arg2 = (int) SWIG_AsInt(obj1); | |
5504 | if (PyErr_Occurred()) SWIG_fail; | |
5505 | { | |
5506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5507 | (arg1)->RemoveFileFromHistory(arg2); | |
5508 | ||
5509 | wxPyEndAllowThreads(__tstate); | |
5510 | if (PyErr_Occurred()) SWIG_fail; | |
5511 | } | |
5512 | Py_INCREF(Py_None); resultobj = Py_None; | |
5513 | return resultobj; | |
5514 | fail: | |
5515 | return NULL; | |
5516 | } | |
5517 | ||
5518 | ||
5519 | static PyObject *_wrap_FileHistory_GetMaxFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5520 | PyObject *resultobj; | |
5521 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5522 | int result; | |
5523 | PyObject * obj0 = 0 ; | |
5524 | char *kwnames[] = { | |
5525 | (char *) "self", NULL | |
5526 | }; | |
5527 | ||
5528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetMaxFiles",kwnames,&obj0)) goto fail; | |
5529 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5531 | { | |
5532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5533 | result = (int)((wxFileHistory const *)arg1)->GetMaxFiles(); | |
5534 | ||
5535 | wxPyEndAllowThreads(__tstate); | |
5536 | if (PyErr_Occurred()) SWIG_fail; | |
5537 | } | |
5538 | resultobj = SWIG_FromInt((int)result); | |
5539 | return resultobj; | |
5540 | fail: | |
5541 | return NULL; | |
5542 | } | |
5543 | ||
5544 | ||
5545 | static PyObject *_wrap_FileHistory_UseMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5546 | PyObject *resultobj; | |
5547 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5548 | wxMenu *arg2 = (wxMenu *) 0 ; | |
5549 | PyObject * obj0 = 0 ; | |
5550 | PyObject * obj1 = 0 ; | |
5551 | char *kwnames[] = { | |
5552 | (char *) "self",(char *) "menu", NULL | |
5553 | }; | |
5554 | ||
5555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_UseMenu",kwnames,&obj0,&obj1)) goto fail; | |
5556 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5557 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5558 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
5559 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5560 | { | |
5561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5562 | (arg1)->UseMenu(arg2); | |
5563 | ||
5564 | wxPyEndAllowThreads(__tstate); | |
5565 | if (PyErr_Occurred()) SWIG_fail; | |
5566 | } | |
5567 | Py_INCREF(Py_None); resultobj = Py_None; | |
5568 | return resultobj; | |
5569 | fail: | |
5570 | return NULL; | |
5571 | } | |
5572 | ||
5573 | ||
5574 | static PyObject *_wrap_FileHistory_RemoveMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5575 | PyObject *resultobj; | |
5576 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5577 | wxMenu *arg2 = (wxMenu *) 0 ; | |
5578 | PyObject * obj0 = 0 ; | |
5579 | PyObject * obj1 = 0 ; | |
5580 | char *kwnames[] = { | |
5581 | (char *) "self",(char *) "menu", NULL | |
5582 | }; | |
5583 | ||
5584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveMenu",kwnames,&obj0,&obj1)) goto fail; | |
5585 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5586 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5587 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
5588 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5589 | { | |
5590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5591 | (arg1)->RemoveMenu(arg2); | |
5592 | ||
5593 | wxPyEndAllowThreads(__tstate); | |
5594 | if (PyErr_Occurred()) SWIG_fail; | |
5595 | } | |
5596 | Py_INCREF(Py_None); resultobj = Py_None; | |
5597 | return resultobj; | |
5598 | fail: | |
5599 | return NULL; | |
5600 | } | |
5601 | ||
5602 | ||
5603 | static PyObject *_wrap_FileHistory_Load(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5604 | PyObject *resultobj; | |
5605 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5606 | wxConfigBase *arg2 = 0 ; | |
5607 | PyObject * obj0 = 0 ; | |
5608 | PyObject * obj1 = 0 ; | |
5609 | char *kwnames[] = { | |
5610 | (char *) "self",(char *) "config", NULL | |
5611 | }; | |
5612 | ||
5613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Load",kwnames,&obj0,&obj1)) goto fail; | |
5614 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5616 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase, | |
5617 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5618 | SWIG_fail; | |
5619 | if (arg2 == NULL) { | |
5620 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5621 | SWIG_fail; | |
5622 | } | |
5623 | { | |
5624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5625 | (arg1)->Load(*arg2); | |
5626 | ||
5627 | wxPyEndAllowThreads(__tstate); | |
5628 | if (PyErr_Occurred()) SWIG_fail; | |
5629 | } | |
5630 | Py_INCREF(Py_None); resultobj = Py_None; | |
5631 | return resultobj; | |
5632 | fail: | |
5633 | return NULL; | |
5634 | } | |
5635 | ||
5636 | ||
5637 | static PyObject *_wrap_FileHistory_Save(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5638 | PyObject *resultobj; | |
5639 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5640 | wxConfigBase *arg2 = 0 ; | |
5641 | PyObject * obj0 = 0 ; | |
5642 | PyObject * obj1 = 0 ; | |
5643 | char *kwnames[] = { | |
5644 | (char *) "self",(char *) "config", NULL | |
5645 | }; | |
5646 | ||
5647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Save",kwnames,&obj0,&obj1)) goto fail; | |
5648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5650 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase, | |
5651 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5652 | SWIG_fail; | |
5653 | if (arg2 == NULL) { | |
5654 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5655 | SWIG_fail; | |
5656 | } | |
5657 | { | |
5658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5659 | (arg1)->Save(*arg2); | |
5660 | ||
5661 | wxPyEndAllowThreads(__tstate); | |
5662 | if (PyErr_Occurred()) SWIG_fail; | |
5663 | } | |
5664 | Py_INCREF(Py_None); resultobj = Py_None; | |
5665 | return resultobj; | |
5666 | fail: | |
5667 | return NULL; | |
5668 | } | |
5669 | ||
5670 | ||
5671 | static PyObject *_wrap_FileHistory_AddFilesToMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5672 | PyObject *resultobj; | |
5673 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5674 | PyObject * obj0 = 0 ; | |
5675 | char *kwnames[] = { | |
5676 | (char *) "self", NULL | |
5677 | }; | |
5678 | ||
5679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_AddFilesToMenu",kwnames,&obj0)) goto fail; | |
5680 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5681 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5682 | { | |
5683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5684 | (arg1)->AddFilesToMenu(); | |
5685 | ||
5686 | wxPyEndAllowThreads(__tstate); | |
5687 | if (PyErr_Occurred()) SWIG_fail; | |
5688 | } | |
5689 | Py_INCREF(Py_None); resultobj = Py_None; | |
5690 | return resultobj; | |
5691 | fail: | |
5692 | return NULL; | |
5693 | } | |
5694 | ||
5695 | ||
5696 | static PyObject *_wrap_FileHistory_AddFilesToThisMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5697 | PyObject *resultobj; | |
5698 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5699 | wxMenu *arg2 = (wxMenu *) 0 ; | |
5700 | PyObject * obj0 = 0 ; | |
5701 | PyObject * obj1 = 0 ; | |
5702 | char *kwnames[] = { | |
5703 | (char *) "self",(char *) "menu", NULL | |
5704 | }; | |
5705 | ||
5706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFilesToThisMenu",kwnames,&obj0,&obj1)) goto fail; | |
5707 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5708 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5709 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
5710 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5711 | { | |
5712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5713 | (arg1)->AddFilesToMenu(arg2); | |
5714 | ||
5715 | wxPyEndAllowThreads(__tstate); | |
5716 | if (PyErr_Occurred()) SWIG_fail; | |
5717 | } | |
5718 | Py_INCREF(Py_None); resultobj = Py_None; | |
5719 | return resultobj; | |
5720 | fail: | |
5721 | return NULL; | |
5722 | } | |
5723 | ||
5724 | ||
5725 | static PyObject *_wrap_FileHistory_GetHistoryFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5726 | PyObject *resultobj; | |
5727 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5728 | int arg2 ; | |
5729 | wxString result; | |
5730 | PyObject * obj0 = 0 ; | |
5731 | PyObject * obj1 = 0 ; | |
5732 | char *kwnames[] = { | |
5733 | (char *) "self",(char *) "i", NULL | |
5734 | }; | |
5735 | ||
5736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_GetHistoryFile",kwnames,&obj0,&obj1)) goto fail; | |
5737 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5738 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5739 | arg2 = (int) SWIG_AsInt(obj1); | |
5740 | if (PyErr_Occurred()) SWIG_fail; | |
5741 | { | |
5742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5743 | result = ((wxFileHistory const *)arg1)->GetHistoryFile(arg2); | |
5744 | ||
5745 | wxPyEndAllowThreads(__tstate); | |
5746 | if (PyErr_Occurred()) SWIG_fail; | |
5747 | } | |
5748 | { | |
5749 | #if wxUSE_UNICODE | |
5750 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5751 | #else | |
5752 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5753 | #endif | |
5754 | } | |
5755 | return resultobj; | |
5756 | fail: | |
5757 | return NULL; | |
5758 | } | |
5759 | ||
5760 | ||
5761 | static PyObject *_wrap_FileHistory_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5762 | PyObject *resultobj; | |
5763 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5764 | int result; | |
5765 | PyObject * obj0 = 0 ; | |
5766 | char *kwnames[] = { | |
5767 | (char *) "self", NULL | |
5768 | }; | |
5769 | ||
5770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetCount",kwnames,&obj0)) goto fail; | |
5771 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5772 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5773 | { | |
5774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5775 | result = (int)((wxFileHistory const *)arg1)->GetCount(); | |
5776 | ||
5777 | wxPyEndAllowThreads(__tstate); | |
5778 | if (PyErr_Occurred()) SWIG_fail; | |
5779 | } | |
5780 | resultobj = SWIG_FromInt((int)result); | |
5781 | return resultobj; | |
5782 | fail: | |
5783 | return NULL; | |
5784 | } | |
5785 | ||
5786 | ||
5787 | static PyObject * FileHistory_swigregister(PyObject *self, PyObject *args) { | |
5788 | PyObject *obj; | |
5789 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5790 | SWIG_TypeClientData(SWIGTYPE_p_wxFileHistory, obj); | |
5791 | Py_INCREF(obj); | |
5792 | return Py_BuildValue((char *)""); | |
5793 | } | |
5794 | static PyObject *_wrap_new_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5795 | PyObject *resultobj; | |
5796 | wxString *arg1 = 0 ; | |
5797 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
5798 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
5799 | wxSingleInstanceChecker *result; | |
5800 | bool temp1 = False ; | |
5801 | bool temp2 = False ; | |
5802 | PyObject * obj0 = 0 ; | |
5803 | PyObject * obj1 = 0 ; | |
5804 | char *kwnames[] = { | |
5805 | (char *) "name",(char *) "path", NULL | |
5806 | }; | |
5807 | ||
5808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_SingleInstanceChecker",kwnames,&obj0,&obj1)) goto fail; | |
5809 | { | |
5810 | arg1 = wxString_in_helper(obj0); | |
5811 | if (arg1 == NULL) SWIG_fail; | |
5812 | temp1 = True; | |
5813 | } | |
5814 | if (obj1) { | |
5815 | { | |
5816 | arg2 = wxString_in_helper(obj1); | |
5817 | if (arg2 == NULL) SWIG_fail; | |
5818 | temp2 = True; | |
5819 | } | |
5820 | } | |
5821 | { | |
5822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5823 | result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker((wxString const &)*arg1,(wxString const &)*arg2); | |
5824 | ||
5825 | wxPyEndAllowThreads(__tstate); | |
5826 | if (PyErr_Occurred()) SWIG_fail; | |
5827 | } | |
5828 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1); | |
5829 | { | |
5830 | if (temp1) | |
5831 | delete arg1; | |
5832 | } | |
5833 | { | |
5834 | if (temp2) | |
5835 | delete arg2; | |
5836 | } | |
5837 | return resultobj; | |
5838 | fail: | |
5839 | { | |
5840 | if (temp1) | |
5841 | delete arg1; | |
5842 | } | |
5843 | { | |
5844 | if (temp2) | |
5845 | delete arg2; | |
5846 | } | |
5847 | return NULL; | |
5848 | } | |
5849 | ||
5850 | ||
5851 | static PyObject *_wrap_new_PreSingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5852 | PyObject *resultobj; | |
5853 | wxSingleInstanceChecker *result; | |
5854 | char *kwnames[] = { | |
5855 | NULL | |
5856 | }; | |
5857 | ||
5858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSingleInstanceChecker",kwnames)) goto fail; | |
5859 | { | |
5860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5861 | result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker(); | |
5862 | ||
5863 | wxPyEndAllowThreads(__tstate); | |
5864 | if (PyErr_Occurred()) SWIG_fail; | |
5865 | } | |
5866 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1); | |
5867 | return resultobj; | |
5868 | fail: | |
5869 | return NULL; | |
5870 | } | |
5871 | ||
5872 | ||
5873 | static PyObject *_wrap_delete_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5874 | PyObject *resultobj; | |
5875 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
5876 | PyObject * obj0 = 0 ; | |
5877 | char *kwnames[] = { | |
5878 | (char *) "self", NULL | |
5879 | }; | |
5880 | ||
5881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SingleInstanceChecker",kwnames,&obj0)) goto fail; | |
5882 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker, | |
5883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5884 | { | |
5885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5886 | delete arg1; | |
5887 | ||
5888 | wxPyEndAllowThreads(__tstate); | |
5889 | if (PyErr_Occurred()) SWIG_fail; | |
5890 | } | |
5891 | Py_INCREF(Py_None); resultobj = Py_None; | |
5892 | return resultobj; | |
5893 | fail: | |
5894 | return NULL; | |
5895 | } | |
5896 | ||
5897 | ||
5898 | static PyObject *_wrap_SingleInstanceChecker_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5899 | PyObject *resultobj; | |
5900 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
5901 | wxString *arg2 = 0 ; | |
5902 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
5903 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
5904 | bool result; | |
5905 | bool temp2 = False ; | |
5906 | bool temp3 = False ; | |
5907 | PyObject * obj0 = 0 ; | |
5908 | PyObject * obj1 = 0 ; | |
5909 | PyObject * obj2 = 0 ; | |
5910 | char *kwnames[] = { | |
5911 | (char *) "self",(char *) "name",(char *) "path", NULL | |
5912 | }; | |
5913 | ||
5914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SingleInstanceChecker_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5915 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker, | |
5916 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5917 | { | |
5918 | arg2 = wxString_in_helper(obj1); | |
5919 | if (arg2 == NULL) SWIG_fail; | |
5920 | temp2 = True; | |
5921 | } | |
5922 | if (obj2) { | |
5923 | { | |
5924 | arg3 = wxString_in_helper(obj2); | |
5925 | if (arg3 == NULL) SWIG_fail; | |
5926 | temp3 = True; | |
5927 | } | |
5928 | } | |
5929 | { | |
5930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5931 | result = (bool)(arg1)->Create((wxString const &)*arg2,(wxString const &)*arg3); | |
5932 | ||
5933 | wxPyEndAllowThreads(__tstate); | |
5934 | if (PyErr_Occurred()) SWIG_fail; | |
5935 | } | |
5936 | { | |
5937 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5938 | } | |
5939 | { | |
5940 | if (temp2) | |
5941 | delete arg2; | |
5942 | } | |
5943 | { | |
5944 | if (temp3) | |
5945 | delete arg3; | |
5946 | } | |
5947 | return resultobj; | |
5948 | fail: | |
5949 | { | |
5950 | if (temp2) | |
5951 | delete arg2; | |
5952 | } | |
5953 | { | |
5954 | if (temp3) | |
5955 | delete arg3; | |
5956 | } | |
5957 | return NULL; | |
5958 | } | |
5959 | ||
5960 | ||
5961 | static PyObject *_wrap_SingleInstanceChecker_IsAnotherRunning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5962 | PyObject *resultobj; | |
5963 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
5964 | bool result; | |
5965 | PyObject * obj0 = 0 ; | |
5966 | char *kwnames[] = { | |
5967 | (char *) "self", NULL | |
5968 | }; | |
5969 | ||
5970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleInstanceChecker_IsAnotherRunning",kwnames,&obj0)) goto fail; | |
5971 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker, | |
5972 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5973 | { | |
5974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5975 | result = (bool)((wxSingleInstanceChecker const *)arg1)->IsAnotherRunning(); | |
5976 | ||
5977 | wxPyEndAllowThreads(__tstate); | |
5978 | if (PyErr_Occurred()) SWIG_fail; | |
5979 | } | |
5980 | { | |
5981 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5982 | } | |
5983 | return resultobj; | |
5984 | fail: | |
5985 | return NULL; | |
5986 | } | |
5987 | ||
5988 | ||
5989 | static PyObject * SingleInstanceChecker_swigregister(PyObject *self, PyObject *args) { | |
5990 | PyObject *obj; | |
5991 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5992 | SWIG_TypeClientData(SWIGTYPE_p_wxSingleInstanceChecker, obj); | |
5993 | Py_INCREF(obj); | |
5994 | return Py_BuildValue((char *)""); | |
5995 | } | |
5996 | static PyObject *_wrap_DrawWindowOnDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5997 | PyObject *resultobj; | |
5998 | wxWindow *arg1 = (wxWindow *) 0 ; | |
5999 | wxDC *arg2 = 0 ; | |
6000 | int arg3 ; | |
6001 | PyObject * obj0 = 0 ; | |
6002 | PyObject * obj1 = 0 ; | |
6003 | PyObject * obj2 = 0 ; | |
6004 | char *kwnames[] = { | |
6005 | (char *) "window",(char *) "dc",(char *) "method", NULL | |
6006 | }; | |
6007 | ||
6008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DrawWindowOnDC",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6009 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
6010 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6011 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
6012 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6013 | SWIG_fail; | |
6014 | if (arg2 == NULL) { | |
6015 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6016 | SWIG_fail; | |
6017 | } | |
6018 | arg3 = (int) SWIG_AsInt(obj2); | |
6019 | if (PyErr_Occurred()) SWIG_fail; | |
6020 | { | |
6021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6022 | wxDrawWindowOnDC(arg1,(wxDC const &)*arg2,arg3); | |
6023 | ||
6024 | wxPyEndAllowThreads(__tstate); | |
6025 | if (PyErr_Occurred()) SWIG_fail; | |
6026 | } | |
6027 | Py_INCREF(Py_None); resultobj = Py_None; | |
6028 | return resultobj; | |
6029 | fail: | |
6030 | return NULL; | |
6031 | } | |
6032 | ||
6033 | ||
6034 | static PyObject *_wrap_delete_TipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6035 | PyObject *resultobj; | |
6036 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6037 | PyObject * obj0 = 0 ; | |
6038 | char *kwnames[] = { | |
6039 | (char *) "self", NULL | |
6040 | }; | |
6041 | ||
6042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TipProvider",kwnames,&obj0)) goto fail; | |
6043 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, | |
6044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6045 | { | |
6046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6047 | delete arg1; | |
6048 | ||
6049 | wxPyEndAllowThreads(__tstate); | |
6050 | if (PyErr_Occurred()) SWIG_fail; | |
6051 | } | |
6052 | Py_INCREF(Py_None); resultobj = Py_None; | |
6053 | return resultobj; | |
6054 | fail: | |
6055 | return NULL; | |
6056 | } | |
6057 | ||
6058 | ||
6059 | static PyObject *_wrap_TipProvider_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6060 | PyObject *resultobj; | |
6061 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6062 | wxString result; | |
6063 | PyObject * obj0 = 0 ; | |
6064 | char *kwnames[] = { | |
6065 | (char *) "self", NULL | |
6066 | }; | |
6067 | ||
6068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetTip",kwnames,&obj0)) goto fail; | |
6069 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, | |
6070 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6071 | { | |
6072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6073 | result = (arg1)->GetTip(); | |
6074 | ||
6075 | wxPyEndAllowThreads(__tstate); | |
6076 | if (PyErr_Occurred()) SWIG_fail; | |
6077 | } | |
6078 | { | |
6079 | #if wxUSE_UNICODE | |
6080 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6081 | #else | |
6082 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6083 | #endif | |
6084 | } | |
6085 | return resultobj; | |
6086 | fail: | |
6087 | return NULL; | |
6088 | } | |
6089 | ||
6090 | ||
6091 | static PyObject *_wrap_TipProvider_GetCurrentTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6092 | PyObject *resultobj; | |
6093 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6094 | size_t result; | |
6095 | PyObject * obj0 = 0 ; | |
6096 | char *kwnames[] = { | |
6097 | (char *) "self", NULL | |
6098 | }; | |
6099 | ||
6100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetCurrentTip",kwnames,&obj0)) goto fail; | |
6101 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, | |
6102 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6103 | { | |
6104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6105 | result = (size_t)(arg1)->GetCurrentTip(); | |
6106 | ||
6107 | wxPyEndAllowThreads(__tstate); | |
6108 | if (PyErr_Occurred()) SWIG_fail; | |
6109 | } | |
6110 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
6111 | return resultobj; | |
6112 | fail: | |
6113 | return NULL; | |
6114 | } | |
6115 | ||
6116 | ||
6117 | static PyObject *_wrap_TipProvider_PreprocessTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6118 | PyObject *resultobj; | |
6119 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6120 | wxString *arg2 = 0 ; | |
6121 | wxString result; | |
6122 | bool temp2 = False ; | |
6123 | PyObject * obj0 = 0 ; | |
6124 | PyObject * obj1 = 0 ; | |
6125 | char *kwnames[] = { | |
6126 | (char *) "self",(char *) "tip", NULL | |
6127 | }; | |
6128 | ||
6129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipProvider_PreprocessTip",kwnames,&obj0,&obj1)) goto fail; | |
6130 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, | |
6131 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6132 | { | |
6133 | arg2 = wxString_in_helper(obj1); | |
6134 | if (arg2 == NULL) SWIG_fail; | |
6135 | temp2 = True; | |
6136 | } | |
6137 | { | |
6138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6139 | result = (arg1)->PreprocessTip((wxString const &)*arg2); | |
6140 | ||
6141 | wxPyEndAllowThreads(__tstate); | |
6142 | if (PyErr_Occurred()) SWIG_fail; | |
6143 | } | |
6144 | { | |
6145 | #if wxUSE_UNICODE | |
6146 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6147 | #else | |
6148 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6149 | #endif | |
6150 | } | |
6151 | { | |
6152 | if (temp2) | |
6153 | delete arg2; | |
6154 | } | |
6155 | return resultobj; | |
6156 | fail: | |
6157 | { | |
6158 | if (temp2) | |
6159 | delete arg2; | |
6160 | } | |
6161 | return NULL; | |
6162 | } | |
6163 | ||
6164 | ||
6165 | static PyObject * TipProvider_swigregister(PyObject *self, PyObject *args) { | |
6166 | PyObject *obj; | |
6167 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6168 | SWIG_TypeClientData(SWIGTYPE_p_wxTipProvider, obj); | |
6169 | Py_INCREF(obj); | |
6170 | return Py_BuildValue((char *)""); | |
6171 | } | |
6172 | static PyObject *_wrap_new_PyTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6173 | PyObject *resultobj; | |
6174 | size_t arg1 ; | |
6175 | wxPyTipProvider *result; | |
6176 | PyObject * obj0 = 0 ; | |
6177 | char *kwnames[] = { | |
6178 | (char *) "currentTip", NULL | |
6179 | }; | |
6180 | ||
6181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PyTipProvider",kwnames,&obj0)) goto fail; | |
6182 | arg1 = (size_t) SWIG_AsUnsignedLong(obj0); | |
6183 | if (PyErr_Occurred()) SWIG_fail; | |
6184 | { | |
6185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6186 | result = (wxPyTipProvider *)new wxPyTipProvider(arg1); | |
6187 | ||
6188 | wxPyEndAllowThreads(__tstate); | |
6189 | if (PyErr_Occurred()) SWIG_fail; | |
6190 | } | |
6191 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTipProvider, 1); | |
6192 | return resultobj; | |
6193 | fail: | |
6194 | return NULL; | |
6195 | } | |
6196 | ||
6197 | ||
6198 | static PyObject *_wrap_PyTipProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6199 | PyObject *resultobj; | |
6200 | wxPyTipProvider *arg1 = (wxPyTipProvider *) 0 ; | |
6201 | PyObject *arg2 = (PyObject *) 0 ; | |
6202 | PyObject *arg3 = (PyObject *) 0 ; | |
6203 | PyObject * obj0 = 0 ; | |
6204 | PyObject * obj1 = 0 ; | |
6205 | PyObject * obj2 = 0 ; | |
6206 | char *kwnames[] = { | |
6207 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
6208 | }; | |
6209 | ||
6210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTipProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6211 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTipProvider, | |
6212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6213 | arg2 = obj1; | |
6214 | arg3 = obj2; | |
6215 | { | |
6216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6217 | (arg1)->_setCallbackInfo(arg2,arg3); | |
6218 | ||
6219 | wxPyEndAllowThreads(__tstate); | |
6220 | if (PyErr_Occurred()) SWIG_fail; | |
6221 | } | |
6222 | Py_INCREF(Py_None); resultobj = Py_None; | |
6223 | return resultobj; | |
6224 | fail: | |
6225 | return NULL; | |
6226 | } | |
6227 | ||
6228 | ||
6229 | static PyObject * PyTipProvider_swigregister(PyObject *self, PyObject *args) { | |
6230 | PyObject *obj; | |
6231 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6232 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTipProvider, obj); | |
6233 | Py_INCREF(obj); | |
6234 | return Py_BuildValue((char *)""); | |
6235 | } | |
6236 | static PyObject *_wrap_ShowTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6237 | PyObject *resultobj; | |
6238 | wxWindow *arg1 = (wxWindow *) 0 ; | |
6239 | wxTipProvider *arg2 = (wxTipProvider *) 0 ; | |
6240 | bool arg3 = (bool) True ; | |
6241 | bool result; | |
6242 | PyObject * obj0 = 0 ; | |
6243 | PyObject * obj1 = 0 ; | |
6244 | PyObject * obj2 = 0 ; | |
6245 | char *kwnames[] = { | |
6246 | (char *) "parent",(char *) "tipProvider",(char *) "showAtStartup", NULL | |
6247 | }; | |
6248 | ||
6249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ShowTip",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6250 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
6251 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6252 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTipProvider, | |
6253 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6254 | if (obj2) { | |
6255 | arg3 = (bool) SWIG_AsBool(obj2); | |
6256 | if (PyErr_Occurred()) SWIG_fail; | |
6257 | } | |
6258 | { | |
6259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6260 | result = (bool)wxShowTip(arg1,arg2,arg3); | |
6261 | ||
6262 | wxPyEndAllowThreads(__tstate); | |
6263 | if (PyErr_Occurred()) SWIG_fail; | |
6264 | } | |
6265 | { | |
6266 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6267 | } | |
6268 | return resultobj; | |
6269 | fail: | |
6270 | return NULL; | |
6271 | } | |
6272 | ||
6273 | ||
6274 | static PyObject *_wrap_CreateFileTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6275 | PyObject *resultobj; | |
6276 | wxString *arg1 = 0 ; | |
6277 | size_t arg2 ; | |
6278 | wxTipProvider *result; | |
6279 | bool temp1 = False ; | |
6280 | PyObject * obj0 = 0 ; | |
6281 | PyObject * obj1 = 0 ; | |
6282 | char *kwnames[] = { | |
6283 | (char *) "filename",(char *) "currentTip", NULL | |
6284 | }; | |
6285 | ||
6286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CreateFileTipProvider",kwnames,&obj0,&obj1)) goto fail; | |
6287 | { | |
6288 | arg1 = wxString_in_helper(obj0); | |
6289 | if (arg1 == NULL) SWIG_fail; | |
6290 | temp1 = True; | |
6291 | } | |
6292 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
6293 | if (PyErr_Occurred()) SWIG_fail; | |
6294 | { | |
6295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6296 | result = (wxTipProvider *)wxCreateFileTipProvider((wxString const &)*arg1,arg2); | |
6297 | ||
6298 | wxPyEndAllowThreads(__tstate); | |
6299 | if (PyErr_Occurred()) SWIG_fail; | |
6300 | } | |
6301 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTipProvider, 1); | |
6302 | { | |
6303 | if (temp1) | |
6304 | delete arg1; | |
6305 | } | |
6306 | return resultobj; | |
6307 | fail: | |
6308 | { | |
6309 | if (temp1) | |
6310 | delete arg1; | |
6311 | } | |
6312 | return NULL; | |
6313 | } | |
6314 | ||
6315 | ||
6316 | static PyObject *_wrap_new_Timer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6317 | PyObject *resultobj; | |
6318 | wxEvtHandler *arg1 = (wxEvtHandler *) NULL ; | |
6319 | int arg2 = (int) -1 ; | |
6320 | wxPyTimer *result; | |
6321 | PyObject * obj0 = 0 ; | |
6322 | PyObject * obj1 = 0 ; | |
6323 | char *kwnames[] = { | |
6324 | (char *) "owner",(char *) "id", NULL | |
6325 | }; | |
6326 | ||
6327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Timer",kwnames,&obj0,&obj1)) goto fail; | |
6328 | if (obj0) { | |
6329 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
6330 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6331 | } | |
6332 | if (obj1) { | |
6333 | arg2 = (int) SWIG_AsInt(obj1); | |
6334 | if (PyErr_Occurred()) SWIG_fail; | |
6335 | } | |
6336 | { | |
6337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6338 | result = (wxPyTimer *)new wxPyTimer(arg1,arg2); | |
6339 | ||
6340 | wxPyEndAllowThreads(__tstate); | |
6341 | if (PyErr_Occurred()) SWIG_fail; | |
6342 | } | |
6343 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTimer, 1); | |
6344 | return resultobj; | |
6345 | fail: | |
6346 | return NULL; | |
6347 | } | |
6348 | ||
6349 | ||
6350 | static PyObject *_wrap_delete_Timer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6351 | PyObject *resultobj; | |
6352 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6353 | PyObject * obj0 = 0 ; | |
6354 | char *kwnames[] = { | |
6355 | (char *) "self", NULL | |
6356 | }; | |
6357 | ||
6358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Timer",kwnames,&obj0)) goto fail; | |
6359 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6361 | { | |
6362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6363 | delete arg1; | |
6364 | ||
6365 | wxPyEndAllowThreads(__tstate); | |
6366 | if (PyErr_Occurred()) SWIG_fail; | |
6367 | } | |
6368 | Py_INCREF(Py_None); resultobj = Py_None; | |
6369 | return resultobj; | |
6370 | fail: | |
6371 | return NULL; | |
6372 | } | |
6373 | ||
6374 | ||
6375 | static PyObject *_wrap_Timer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6376 | PyObject *resultobj; | |
6377 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6378 | PyObject *arg2 = (PyObject *) 0 ; | |
6379 | PyObject *arg3 = (PyObject *) 0 ; | |
6380 | int arg4 = (int) 1 ; | |
6381 | PyObject * obj0 = 0 ; | |
6382 | PyObject * obj1 = 0 ; | |
6383 | PyObject * obj2 = 0 ; | |
6384 | PyObject * obj3 = 0 ; | |
6385 | char *kwnames[] = { | |
6386 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
6387 | }; | |
6388 | ||
6389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Timer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
6390 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6391 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6392 | arg2 = obj1; | |
6393 | arg3 = obj2; | |
6394 | if (obj3) { | |
6395 | arg4 = (int) SWIG_AsInt(obj3); | |
6396 | if (PyErr_Occurred()) SWIG_fail; | |
6397 | } | |
6398 | { | |
6399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6400 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
6401 | ||
6402 | wxPyEndAllowThreads(__tstate); | |
6403 | if (PyErr_Occurred()) SWIG_fail; | |
6404 | } | |
6405 | Py_INCREF(Py_None); resultobj = Py_None; | |
6406 | return resultobj; | |
6407 | fail: | |
6408 | return NULL; | |
6409 | } | |
6410 | ||
6411 | ||
6412 | static PyObject *_wrap_Timer_SetOwner(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6413 | PyObject *resultobj; | |
6414 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6415 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
6416 | int arg3 = (int) -1 ; | |
6417 | PyObject * obj0 = 0 ; | |
6418 | PyObject * obj1 = 0 ; | |
6419 | PyObject * obj2 = 0 ; | |
6420 | char *kwnames[] = { | |
6421 | (char *) "self",(char *) "owner",(char *) "id", NULL | |
6422 | }; | |
6423 | ||
6424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Timer_SetOwner",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6425 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6426 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6427 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
6428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6429 | if (obj2) { | |
6430 | arg3 = (int) SWIG_AsInt(obj2); | |
6431 | if (PyErr_Occurred()) SWIG_fail; | |
6432 | } | |
6433 | { | |
6434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6435 | (arg1)->SetOwner(arg2,arg3); | |
6436 | ||
6437 | wxPyEndAllowThreads(__tstate); | |
6438 | if (PyErr_Occurred()) SWIG_fail; | |
6439 | } | |
6440 | Py_INCREF(Py_None); resultobj = Py_None; | |
6441 | return resultobj; | |
6442 | fail: | |
6443 | return NULL; | |
6444 | } | |
6445 | ||
6446 | ||
1a6bba1e RD |
6447 | static PyObject *_wrap_Timer_GetOwner(PyObject *self, PyObject *args, PyObject *kwargs) { |
6448 | PyObject *resultobj; | |
6449 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6450 | wxEvtHandler *result; | |
6451 | PyObject * obj0 = 0 ; | |
6452 | char *kwnames[] = { | |
6453 | (char *) "self", NULL | |
6454 | }; | |
6455 | ||
6456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetOwner",kwnames,&obj0)) goto fail; | |
6457 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6458 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6459 | { | |
6460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6461 | result = (wxEvtHandler *)(arg1)->GetOwner(); | |
6462 | ||
6463 | wxPyEndAllowThreads(__tstate); | |
6464 | if (PyErr_Occurred()) SWIG_fail; | |
6465 | } | |
6466 | { | |
6467 | resultobj = wxPyMake_wxObject(result); | |
6468 | } | |
6469 | return resultobj; | |
6470 | fail: | |
6471 | return NULL; | |
6472 | } | |
6473 | ||
6474 | ||
d55e5bfc RD |
6475 | static PyObject *_wrap_Timer_Start(PyObject *self, PyObject *args, PyObject *kwargs) { |
6476 | PyObject *resultobj; | |
6477 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6478 | int arg2 = (int) -1 ; | |
6479 | bool arg3 = (bool) False ; | |
6480 | bool result; | |
6481 | PyObject * obj0 = 0 ; | |
6482 | PyObject * obj1 = 0 ; | |
6483 | PyObject * obj2 = 0 ; | |
6484 | char *kwnames[] = { | |
6485 | (char *) "self",(char *) "milliseconds",(char *) "oneShot", NULL | |
6486 | }; | |
6487 | ||
6488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Timer_Start",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6489 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6490 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6491 | if (obj1) { | |
6492 | arg2 = (int) SWIG_AsInt(obj1); | |
6493 | if (PyErr_Occurred()) SWIG_fail; | |
6494 | } | |
6495 | if (obj2) { | |
6496 | arg3 = (bool) SWIG_AsBool(obj2); | |
6497 | if (PyErr_Occurred()) SWIG_fail; | |
6498 | } | |
6499 | { | |
6500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6501 | result = (bool)(arg1)->Start(arg2,arg3); | |
6502 | ||
6503 | wxPyEndAllowThreads(__tstate); | |
6504 | if (PyErr_Occurred()) SWIG_fail; | |
6505 | } | |
6506 | { | |
6507 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6508 | } | |
6509 | return resultobj; | |
6510 | fail: | |
6511 | return NULL; | |
6512 | } | |
6513 | ||
6514 | ||
6515 | static PyObject *_wrap_Timer_Stop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6516 | PyObject *resultobj; | |
6517 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6518 | PyObject * obj0 = 0 ; | |
6519 | char *kwnames[] = { | |
6520 | (char *) "self", NULL | |
6521 | }; | |
6522 | ||
6523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Stop",kwnames,&obj0)) goto fail; | |
6524 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6525 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6526 | { | |
6527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6528 | (arg1)->Stop(); | |
6529 | ||
6530 | wxPyEndAllowThreads(__tstate); | |
6531 | if (PyErr_Occurred()) SWIG_fail; | |
6532 | } | |
6533 | Py_INCREF(Py_None); resultobj = Py_None; | |
6534 | return resultobj; | |
6535 | fail: | |
6536 | return NULL; | |
6537 | } | |
6538 | ||
6539 | ||
6540 | static PyObject *_wrap_Timer_IsRunning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6541 | PyObject *resultobj; | |
6542 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6543 | bool result; | |
6544 | PyObject * obj0 = 0 ; | |
6545 | char *kwnames[] = { | |
6546 | (char *) "self", NULL | |
6547 | }; | |
6548 | ||
6549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsRunning",kwnames,&obj0)) goto fail; | |
6550 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6551 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6552 | { | |
6553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6554 | result = (bool)((wxPyTimer const *)arg1)->IsRunning(); | |
6555 | ||
6556 | wxPyEndAllowThreads(__tstate); | |
6557 | if (PyErr_Occurred()) SWIG_fail; | |
6558 | } | |
6559 | { | |
6560 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6561 | } | |
6562 | return resultobj; | |
6563 | fail: | |
6564 | return NULL; | |
6565 | } | |
6566 | ||
6567 | ||
6568 | static PyObject *_wrap_Timer_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6569 | PyObject *resultobj; | |
6570 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6571 | int result; | |
6572 | PyObject * obj0 = 0 ; | |
6573 | char *kwnames[] = { | |
6574 | (char *) "self", NULL | |
6575 | }; | |
6576 | ||
6577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetInterval",kwnames,&obj0)) goto fail; | |
6578 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6579 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6580 | { | |
6581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6582 | result = (int)((wxPyTimer const *)arg1)->GetInterval(); | |
6583 | ||
6584 | wxPyEndAllowThreads(__tstate); | |
6585 | if (PyErr_Occurred()) SWIG_fail; | |
6586 | } | |
6587 | resultobj = SWIG_FromInt((int)result); | |
6588 | return resultobj; | |
6589 | fail: | |
6590 | return NULL; | |
6591 | } | |
6592 | ||
6593 | ||
6594 | static PyObject *_wrap_Timer_IsOneShot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6595 | PyObject *resultobj; | |
6596 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6597 | bool result; | |
6598 | PyObject * obj0 = 0 ; | |
6599 | char *kwnames[] = { | |
6600 | (char *) "self", NULL | |
6601 | }; | |
6602 | ||
6603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsOneShot",kwnames,&obj0)) goto fail; | |
6604 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6606 | { | |
6607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6608 | result = (bool)((wxPyTimer const *)arg1)->IsOneShot(); | |
6609 | ||
6610 | wxPyEndAllowThreads(__tstate); | |
6611 | if (PyErr_Occurred()) SWIG_fail; | |
6612 | } | |
6613 | { | |
6614 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6615 | } | |
6616 | return resultobj; | |
6617 | fail: | |
6618 | return NULL; | |
6619 | } | |
6620 | ||
6621 | ||
6622 | static PyObject *_wrap_Timer_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6623 | PyObject *resultobj; | |
6624 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6625 | int result; | |
6626 | PyObject * obj0 = 0 ; | |
6627 | char *kwnames[] = { | |
6628 | (char *) "self", NULL | |
6629 | }; | |
6630 | ||
6631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetId",kwnames,&obj0)) goto fail; | |
6632 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6633 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6634 | { | |
6635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6636 | result = (int)((wxPyTimer const *)arg1)->GetId(); | |
6637 | ||
6638 | wxPyEndAllowThreads(__tstate); | |
6639 | if (PyErr_Occurred()) SWIG_fail; | |
6640 | } | |
6641 | resultobj = SWIG_FromInt((int)result); | |
6642 | return resultobj; | |
6643 | fail: | |
6644 | return NULL; | |
6645 | } | |
6646 | ||
6647 | ||
6648 | static PyObject * Timer_swigregister(PyObject *self, PyObject *args) { | |
6649 | PyObject *obj; | |
6650 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6651 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTimer, obj); | |
6652 | Py_INCREF(obj); | |
6653 | return Py_BuildValue((char *)""); | |
6654 | } | |
6655 | static PyObject *_wrap_new_TimerEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6656 | PyObject *resultobj; | |
6657 | int arg1 = (int) 0 ; | |
6658 | int arg2 = (int) 0 ; | |
6659 | wxTimerEvent *result; | |
6660 | PyObject * obj0 = 0 ; | |
6661 | PyObject * obj1 = 0 ; | |
6662 | char *kwnames[] = { | |
6663 | (char *) "timerid",(char *) "interval", NULL | |
6664 | }; | |
6665 | ||
6666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TimerEvent",kwnames,&obj0,&obj1)) goto fail; | |
6667 | if (obj0) { | |
6668 | arg1 = (int) SWIG_AsInt(obj0); | |
6669 | if (PyErr_Occurred()) SWIG_fail; | |
6670 | } | |
6671 | if (obj1) { | |
6672 | arg2 = (int) SWIG_AsInt(obj1); | |
6673 | if (PyErr_Occurred()) SWIG_fail; | |
6674 | } | |
6675 | { | |
6676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6677 | result = (wxTimerEvent *)new wxTimerEvent(arg1,arg2); | |
6678 | ||
6679 | wxPyEndAllowThreads(__tstate); | |
6680 | if (PyErr_Occurred()) SWIG_fail; | |
6681 | } | |
6682 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerEvent, 1); | |
6683 | return resultobj; | |
6684 | fail: | |
6685 | return NULL; | |
6686 | } | |
6687 | ||
6688 | ||
6689 | static PyObject *_wrap_TimerEvent_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6690 | PyObject *resultobj; | |
6691 | wxTimerEvent *arg1 = (wxTimerEvent *) 0 ; | |
6692 | int result; | |
6693 | PyObject * obj0 = 0 ; | |
6694 | char *kwnames[] = { | |
6695 | (char *) "self", NULL | |
6696 | }; | |
6697 | ||
6698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimerEvent_GetInterval",kwnames,&obj0)) goto fail; | |
6699 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerEvent, | |
6700 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6701 | { | |
6702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6703 | result = (int)((wxTimerEvent const *)arg1)->GetInterval(); | |
6704 | ||
6705 | wxPyEndAllowThreads(__tstate); | |
6706 | if (PyErr_Occurred()) SWIG_fail; | |
6707 | } | |
6708 | resultobj = SWIG_FromInt((int)result); | |
6709 | return resultobj; | |
6710 | fail: | |
6711 | return NULL; | |
6712 | } | |
6713 | ||
6714 | ||
6715 | static PyObject * TimerEvent_swigregister(PyObject *self, PyObject *args) { | |
6716 | PyObject *obj; | |
6717 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6718 | SWIG_TypeClientData(SWIGTYPE_p_wxTimerEvent, obj); | |
6719 | Py_INCREF(obj); | |
6720 | return Py_BuildValue((char *)""); | |
6721 | } | |
6722 | static PyObject *_wrap_new_TimerRunner__SWIG_0(PyObject *self, PyObject *args) { | |
6723 | PyObject *resultobj; | |
6724 | wxTimer *arg1 = 0 ; | |
6725 | wxTimerRunner *result; | |
6726 | PyObject * obj0 = 0 ; | |
6727 | ||
6728 | if(!PyArg_ParseTuple(args,(char *)"O:new_TimerRunner",&obj0)) goto fail; | |
6729 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer, | |
6730 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6731 | SWIG_fail; | |
6732 | if (arg1 == NULL) { | |
6733 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6734 | SWIG_fail; | |
6735 | } | |
6736 | { | |
6737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6738 | result = (wxTimerRunner *)new wxTimerRunner(*arg1); | |
6739 | ||
6740 | wxPyEndAllowThreads(__tstate); | |
6741 | if (PyErr_Occurred()) SWIG_fail; | |
6742 | } | |
6743 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1); | |
6744 | return resultobj; | |
6745 | fail: | |
6746 | return NULL; | |
6747 | } | |
6748 | ||
6749 | ||
6750 | static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *self, PyObject *args) { | |
6751 | PyObject *resultobj; | |
6752 | wxTimer *arg1 = 0 ; | |
6753 | int arg2 ; | |
6754 | bool arg3 = (bool) False ; | |
6755 | wxTimerRunner *result; | |
6756 | PyObject * obj0 = 0 ; | |
6757 | PyObject * obj1 = 0 ; | |
6758 | PyObject * obj2 = 0 ; | |
6759 | ||
6760 | if(!PyArg_ParseTuple(args,(char *)"OO|O:new_TimerRunner",&obj0,&obj1,&obj2)) goto fail; | |
6761 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer, | |
6762 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6763 | SWIG_fail; | |
6764 | if (arg1 == NULL) { | |
6765 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6766 | SWIG_fail; | |
6767 | } | |
6768 | arg2 = (int) SWIG_AsInt(obj1); | |
6769 | if (PyErr_Occurred()) SWIG_fail; | |
6770 | if (obj2) { | |
6771 | arg3 = (bool) SWIG_AsBool(obj2); | |
6772 | if (PyErr_Occurred()) SWIG_fail; | |
6773 | } | |
6774 | { | |
6775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6776 | result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2,arg3); | |
6777 | ||
6778 | wxPyEndAllowThreads(__tstate); | |
6779 | if (PyErr_Occurred()) SWIG_fail; | |
6780 | } | |
6781 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1); | |
6782 | return resultobj; | |
6783 | fail: | |
6784 | return NULL; | |
6785 | } | |
6786 | ||
6787 | ||
6788 | static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) { | |
6789 | int argc; | |
6790 | PyObject *argv[4]; | |
6791 | int ii; | |
6792 | ||
6793 | argc = PyObject_Length(args); | |
6794 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
6795 | argv[ii] = PyTuple_GetItem(args,ii); | |
6796 | } | |
6797 | if (argc == 1) { | |
6798 | int _v; | |
6799 | { | |
6800 | void *ptr; | |
6801 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) { | |
6802 | _v = 0; | |
6803 | PyErr_Clear(); | |
6804 | } else { | |
6805 | _v = 1; | |
6806 | } | |
6807 | } | |
6808 | if (_v) { | |
6809 | return _wrap_new_TimerRunner__SWIG_0(self,args); | |
6810 | } | |
6811 | } | |
6812 | if ((argc >= 2) && (argc <= 3)) { | |
6813 | int _v; | |
6814 | { | |
6815 | void *ptr; | |
6816 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) { | |
6817 | _v = 0; | |
6818 | PyErr_Clear(); | |
6819 | } else { | |
6820 | _v = 1; | |
6821 | } | |
6822 | } | |
6823 | if (_v) { | |
6824 | _v = SWIG_CheckInt(argv[1]); | |
6825 | if (_v) { | |
6826 | if (argc <= 2) { | |
6827 | return _wrap_new_TimerRunner__SWIG_1(self,args); | |
6828 | } | |
6829 | _v = SWIG_CheckBool(argv[2]); | |
6830 | if (_v) { | |
6831 | return _wrap_new_TimerRunner__SWIG_1(self,args); | |
6832 | } | |
6833 | } | |
6834 | } | |
6835 | } | |
6836 | ||
6837 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TimerRunner'"); | |
6838 | return NULL; | |
6839 | } | |
6840 | ||
6841 | ||
6842 | static PyObject *_wrap_delete_TimerRunner(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6843 | PyObject *resultobj; | |
6844 | wxTimerRunner *arg1 = (wxTimerRunner *) 0 ; | |
6845 | PyObject * obj0 = 0 ; | |
6846 | char *kwnames[] = { | |
6847 | (char *) "self", NULL | |
6848 | }; | |
6849 | ||
6850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimerRunner",kwnames,&obj0)) goto fail; | |
6851 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner, | |
6852 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6853 | { | |
6854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6855 | delete arg1; | |
6856 | ||
6857 | wxPyEndAllowThreads(__tstate); | |
6858 | if (PyErr_Occurred()) SWIG_fail; | |
6859 | } | |
6860 | Py_INCREF(Py_None); resultobj = Py_None; | |
6861 | return resultobj; | |
6862 | fail: | |
6863 | return NULL; | |
6864 | } | |
6865 | ||
6866 | ||
6867 | static PyObject *_wrap_TimerRunner_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6868 | PyObject *resultobj; | |
6869 | wxTimerRunner *arg1 = (wxTimerRunner *) 0 ; | |
6870 | int arg2 ; | |
6871 | bool arg3 = (bool) False ; | |
6872 | PyObject * obj0 = 0 ; | |
6873 | PyObject * obj1 = 0 ; | |
6874 | PyObject * obj2 = 0 ; | |
6875 | char *kwnames[] = { | |
6876 | (char *) "self",(char *) "milli",(char *) "oneShot", NULL | |
6877 | }; | |
6878 | ||
6879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TimerRunner_Start",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6880 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner, | |
6881 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6882 | arg2 = (int) SWIG_AsInt(obj1); | |
6883 | if (PyErr_Occurred()) SWIG_fail; | |
6884 | if (obj2) { | |
6885 | arg3 = (bool) SWIG_AsBool(obj2); | |
6886 | if (PyErr_Occurred()) SWIG_fail; | |
6887 | } | |
6888 | { | |
6889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6890 | (arg1)->Start(arg2,arg3); | |
6891 | ||
6892 | wxPyEndAllowThreads(__tstate); | |
6893 | if (PyErr_Occurred()) SWIG_fail; | |
6894 | } | |
6895 | Py_INCREF(Py_None); resultobj = Py_None; | |
6896 | return resultobj; | |
6897 | fail: | |
6898 | return NULL; | |
6899 | } | |
6900 | ||
6901 | ||
6902 | static PyObject * TimerRunner_swigregister(PyObject *self, PyObject *args) { | |
6903 | PyObject *obj; | |
6904 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6905 | SWIG_TypeClientData(SWIGTYPE_p_wxTimerRunner, obj); | |
6906 | Py_INCREF(obj); | |
6907 | return Py_BuildValue((char *)""); | |
6908 | } | |
6909 | static PyObject *_wrap_new_Log(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6910 | PyObject *resultobj; | |
6911 | wxLog *result; | |
6912 | char *kwnames[] = { | |
6913 | NULL | |
6914 | }; | |
6915 | ||
6916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Log",kwnames)) goto fail; | |
6917 | { | |
6918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6919 | result = (wxLog *)new wxLog(); | |
6920 | ||
6921 | wxPyEndAllowThreads(__tstate); | |
6922 | if (PyErr_Occurred()) SWIG_fail; | |
6923 | } | |
6924 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 1); | |
6925 | return resultobj; | |
6926 | fail: | |
6927 | return NULL; | |
6928 | } | |
6929 | ||
6930 | ||
6931 | static PyObject *_wrap_Log_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6932 | PyObject *resultobj; | |
6933 | bool result; | |
6934 | char *kwnames[] = { | |
6935 | NULL | |
6936 | }; | |
6937 | ||
6938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_IsEnabled",kwnames)) goto fail; | |
6939 | { | |
6940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6941 | result = (bool)wxLog::IsEnabled(); | |
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_EnableLogging(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6956 | PyObject *resultobj; | |
6957 | bool arg1 = (bool) True ; | |
6958 | bool result; | |
6959 | PyObject * obj0 = 0 ; | |
6960 | char *kwnames[] = { | |
6961 | (char *) "doIt", NULL | |
6962 | }; | |
6963 | ||
6964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_EnableLogging",kwnames,&obj0)) goto fail; | |
6965 | if (obj0) { | |
6966 | arg1 = (bool) SWIG_AsBool(obj0); | |
6967 | if (PyErr_Occurred()) SWIG_fail; | |
6968 | } | |
6969 | { | |
6970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6971 | result = (bool)wxLog::EnableLogging(arg1); | |
6972 | ||
6973 | wxPyEndAllowThreads(__tstate); | |
6974 | if (PyErr_Occurred()) SWIG_fail; | |
6975 | } | |
6976 | { | |
6977 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6978 | } | |
6979 | return resultobj; | |
6980 | fail: | |
6981 | return NULL; | |
6982 | } | |
6983 | ||
6984 | ||
6985 | static PyObject *_wrap_Log_OnLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6986 | PyObject *resultobj; | |
6987 | wxLogLevel arg1 ; | |
6988 | wxChar *arg2 = (wxChar *) 0 ; | |
6989 | time_t arg3 ; | |
6990 | PyObject * obj0 = 0 ; | |
6991 | PyObject * obj1 = 0 ; | |
6992 | PyObject * obj2 = 0 ; | |
6993 | char *kwnames[] = { | |
6994 | (char *) "level",(char *) "szString",(char *) "t", NULL | |
6995 | }; | |
6996 | ||
6997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Log_OnLog",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6998 | arg1 = (wxLogLevel) SWIG_AsUnsignedLong(obj0); | |
6999 | if (PyErr_Occurred()) SWIG_fail; | |
7000 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxChar, | |
7001 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7002 | arg3 = (time_t) SWIG_AsUnsignedInt(obj2); | |
7003 | if (PyErr_Occurred()) SWIG_fail; | |
7004 | { | |
7005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7006 | wxLog::OnLog(arg1,(wxChar const *)arg2,arg3); | |
7007 | ||
7008 | wxPyEndAllowThreads(__tstate); | |
7009 | if (PyErr_Occurred()) SWIG_fail; | |
7010 | } | |
7011 | Py_INCREF(Py_None); resultobj = Py_None; | |
7012 | return resultobj; | |
7013 | fail: | |
7014 | return NULL; | |
7015 | } | |
7016 | ||
7017 | ||
7018 | static PyObject *_wrap_Log_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7019 | PyObject *resultobj; | |
7020 | wxLog *arg1 = (wxLog *) 0 ; | |
7021 | PyObject * obj0 = 0 ; | |
7022 | char *kwnames[] = { | |
7023 | (char *) "self", NULL | |
7024 | }; | |
7025 | ||
7026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Flush",kwnames,&obj0)) goto fail; | |
7027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, | |
7028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7029 | { | |
7030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7031 | (arg1)->Flush(); | |
7032 | ||
7033 | wxPyEndAllowThreads(__tstate); | |
7034 | if (PyErr_Occurred()) SWIG_fail; | |
7035 | } | |
7036 | Py_INCREF(Py_None); resultobj = Py_None; | |
7037 | return resultobj; | |
7038 | fail: | |
7039 | return NULL; | |
7040 | } | |
7041 | ||
7042 | ||
7043 | static PyObject *_wrap_Log_FlushActive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7044 | PyObject *resultobj; | |
7045 | char *kwnames[] = { | |
7046 | NULL | |
7047 | }; | |
7048 | ||
7049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_FlushActive",kwnames)) goto fail; | |
7050 | { | |
7051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7052 | wxLog::FlushActive(); | |
7053 | ||
7054 | wxPyEndAllowThreads(__tstate); | |
7055 | if (PyErr_Occurred()) SWIG_fail; | |
7056 | } | |
7057 | Py_INCREF(Py_None); resultobj = Py_None; | |
7058 | return resultobj; | |
7059 | fail: | |
7060 | return NULL; | |
7061 | } | |
7062 | ||
7063 | ||
7064 | static PyObject *_wrap_Log_GetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7065 | PyObject *resultobj; | |
7066 | wxLog *result; | |
7067 | char *kwnames[] = { | |
7068 | NULL | |
7069 | }; | |
7070 | ||
7071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetActiveTarget",kwnames)) goto fail; | |
7072 | { | |
7073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7074 | result = (wxLog *)wxLog::GetActiveTarget(); | |
7075 | ||
7076 | wxPyEndAllowThreads(__tstate); | |
7077 | if (PyErr_Occurred()) SWIG_fail; | |
7078 | } | |
7079 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); | |
7080 | return resultobj; | |
7081 | fail: | |
7082 | return NULL; | |
7083 | } | |
7084 | ||
7085 | ||
7086 | static PyObject *_wrap_Log_SetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7087 | PyObject *resultobj; | |
7088 | wxLog *arg1 = (wxLog *) 0 ; | |
7089 | wxLog *result; | |
7090 | PyObject * obj0 = 0 ; | |
7091 | char *kwnames[] = { | |
7092 | (char *) "pLogger", NULL | |
7093 | }; | |
7094 | ||
7095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) goto fail; | |
7096 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, | |
7097 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7098 | { | |
7099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7100 | result = (wxLog *)wxLog::SetActiveTarget(arg1); | |
7101 | ||
7102 | wxPyEndAllowThreads(__tstate); | |
7103 | if (PyErr_Occurred()) SWIG_fail; | |
7104 | } | |
7105 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); | |
7106 | return resultobj; | |
7107 | fail: | |
7108 | return NULL; | |
7109 | } | |
7110 | ||
7111 | ||
7112 | static PyObject *_wrap_Log_Suspend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7113 | PyObject *resultobj; | |
7114 | char *kwnames[] = { | |
7115 | NULL | |
7116 | }; | |
7117 | ||
7118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Suspend",kwnames)) goto fail; | |
7119 | { | |
7120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7121 | wxLog::Suspend(); | |
7122 | ||
7123 | wxPyEndAllowThreads(__tstate); | |
7124 | if (PyErr_Occurred()) SWIG_fail; | |
7125 | } | |
7126 | Py_INCREF(Py_None); resultobj = Py_None; | |
7127 | return resultobj; | |
7128 | fail: | |
7129 | return NULL; | |
7130 | } | |
7131 | ||
7132 | ||
7133 | static PyObject *_wrap_Log_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7134 | PyObject *resultobj; | |
7135 | char *kwnames[] = { | |
7136 | NULL | |
7137 | }; | |
7138 | ||
7139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Resume",kwnames)) goto fail; | |
7140 | { | |
7141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7142 | wxLog::Resume(); | |
7143 | ||
7144 | wxPyEndAllowThreads(__tstate); | |
7145 | if (PyErr_Occurred()) SWIG_fail; | |
7146 | } | |
7147 | Py_INCREF(Py_None); resultobj = Py_None; | |
7148 | return resultobj; | |
7149 | fail: | |
7150 | return NULL; | |
7151 | } | |
7152 | ||
7153 | ||
7154 | static PyObject *_wrap_Log_SetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7155 | PyObject *resultobj; | |
7156 | bool arg1 = (bool) True ; | |
7157 | PyObject * obj0 = 0 ; | |
7158 | char *kwnames[] = { | |
7159 | (char *) "bVerbose", NULL | |
7160 | }; | |
7161 | ||
7162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetVerbose",kwnames,&obj0)) goto fail; | |
7163 | if (obj0) { | |
7164 | arg1 = (bool) SWIG_AsBool(obj0); | |
7165 | if (PyErr_Occurred()) SWIG_fail; | |
7166 | } | |
7167 | { | |
7168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7169 | wxLog::SetVerbose(arg1); | |
7170 | ||
7171 | wxPyEndAllowThreads(__tstate); | |
7172 | if (PyErr_Occurred()) SWIG_fail; | |
7173 | } | |
7174 | Py_INCREF(Py_None); resultobj = Py_None; | |
7175 | return resultobj; | |
7176 | fail: | |
7177 | return NULL; | |
7178 | } | |
7179 | ||
7180 | ||
7181 | static PyObject *_wrap_Log_SetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7182 | PyObject *resultobj; | |
7183 | wxLogLevel arg1 ; | |
7184 | PyObject * obj0 = 0 ; | |
7185 | char *kwnames[] = { | |
7186 | (char *) "logLevel", NULL | |
7187 | }; | |
7188 | ||
7189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetLogLevel",kwnames,&obj0)) goto fail; | |
7190 | arg1 = (wxLogLevel) SWIG_AsUnsignedLong(obj0); | |
7191 | if (PyErr_Occurred()) SWIG_fail; | |
7192 | { | |
7193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7194 | wxLog::SetLogLevel(arg1); | |
7195 | ||
7196 | wxPyEndAllowThreads(__tstate); | |
7197 | if (PyErr_Occurred()) SWIG_fail; | |
7198 | } | |
7199 | Py_INCREF(Py_None); resultobj = Py_None; | |
7200 | return resultobj; | |
7201 | fail: | |
7202 | return NULL; | |
7203 | } | |
7204 | ||
7205 | ||
7206 | static PyObject *_wrap_Log_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7207 | PyObject *resultobj; | |
7208 | char *kwnames[] = { | |
7209 | NULL | |
7210 | }; | |
7211 | ||
7212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_DontCreateOnDemand",kwnames)) goto fail; | |
7213 | { | |
7214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7215 | wxLog::DontCreateOnDemand(); | |
7216 | ||
7217 | wxPyEndAllowThreads(__tstate); | |
7218 | if (PyErr_Occurred()) SWIG_fail; | |
7219 | } | |
7220 | Py_INCREF(Py_None); resultobj = Py_None; | |
7221 | return resultobj; | |
7222 | fail: | |
7223 | return NULL; | |
7224 | } | |
7225 | ||
7226 | ||
7227 | static PyObject *_wrap_Log_SetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7228 | PyObject *resultobj; | |
7229 | wxTraceMask arg1 ; | |
7230 | PyObject * obj0 = 0 ; | |
7231 | char *kwnames[] = { | |
7232 | (char *) "ulMask", NULL | |
7233 | }; | |
7234 | ||
7235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTraceMask",kwnames,&obj0)) goto fail; | |
7236 | arg1 = (wxTraceMask) SWIG_AsUnsignedLong(obj0); | |
7237 | if (PyErr_Occurred()) SWIG_fail; | |
7238 | { | |
7239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7240 | wxLog::SetTraceMask(arg1); | |
7241 | ||
7242 | wxPyEndAllowThreads(__tstate); | |
7243 | if (PyErr_Occurred()) SWIG_fail; | |
7244 | } | |
7245 | Py_INCREF(Py_None); resultobj = Py_None; | |
7246 | return resultobj; | |
7247 | fail: | |
7248 | return NULL; | |
7249 | } | |
7250 | ||
7251 | ||
7252 | static PyObject *_wrap_Log_AddTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7253 | PyObject *resultobj; | |
7254 | wxString *arg1 = 0 ; | |
7255 | bool temp1 = False ; | |
7256 | PyObject * obj0 = 0 ; | |
7257 | char *kwnames[] = { | |
7258 | (char *) "str", NULL | |
7259 | }; | |
7260 | ||
7261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_AddTraceMask",kwnames,&obj0)) goto fail; | |
7262 | { | |
7263 | arg1 = wxString_in_helper(obj0); | |
7264 | if (arg1 == NULL) SWIG_fail; | |
7265 | temp1 = True; | |
7266 | } | |
7267 | { | |
7268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7269 | wxLog::AddTraceMask((wxString const &)*arg1); | |
7270 | ||
7271 | wxPyEndAllowThreads(__tstate); | |
7272 | if (PyErr_Occurred()) SWIG_fail; | |
7273 | } | |
7274 | Py_INCREF(Py_None); resultobj = Py_None; | |
7275 | { | |
7276 | if (temp1) | |
7277 | delete arg1; | |
7278 | } | |
7279 | return resultobj; | |
7280 | fail: | |
7281 | { | |
7282 | if (temp1) | |
7283 | delete arg1; | |
7284 | } | |
7285 | return NULL; | |
7286 | } | |
7287 | ||
7288 | ||
7289 | static PyObject *_wrap_Log_RemoveTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7290 | PyObject *resultobj; | |
7291 | wxString *arg1 = 0 ; | |
7292 | bool temp1 = False ; | |
7293 | PyObject * obj0 = 0 ; | |
7294 | char *kwnames[] = { | |
7295 | (char *) "str", NULL | |
7296 | }; | |
7297 | ||
7298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_RemoveTraceMask",kwnames,&obj0)) goto fail; | |
7299 | { | |
7300 | arg1 = wxString_in_helper(obj0); | |
7301 | if (arg1 == NULL) SWIG_fail; | |
7302 | temp1 = True; | |
7303 | } | |
7304 | { | |
7305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7306 | wxLog::RemoveTraceMask((wxString const &)*arg1); | |
7307 | ||
7308 | wxPyEndAllowThreads(__tstate); | |
7309 | if (PyErr_Occurred()) SWIG_fail; | |
7310 | } | |
7311 | Py_INCREF(Py_None); resultobj = Py_None; | |
7312 | { | |
7313 | if (temp1) | |
7314 | delete arg1; | |
7315 | } | |
7316 | return resultobj; | |
7317 | fail: | |
7318 | { | |
7319 | if (temp1) | |
7320 | delete arg1; | |
7321 | } | |
7322 | return NULL; | |
7323 | } | |
7324 | ||
7325 | ||
7326 | static PyObject *_wrap_Log_ClearTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7327 | PyObject *resultobj; | |
7328 | char *kwnames[] = { | |
7329 | NULL | |
7330 | }; | |
7331 | ||
7332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_ClearTraceMasks",kwnames)) goto fail; | |
7333 | { | |
7334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7335 | wxLog::ClearTraceMasks(); | |
7336 | ||
7337 | wxPyEndAllowThreads(__tstate); | |
7338 | if (PyErr_Occurred()) SWIG_fail; | |
7339 | } | |
7340 | Py_INCREF(Py_None); resultobj = Py_None; | |
7341 | return resultobj; | |
7342 | fail: | |
7343 | return NULL; | |
7344 | } | |
7345 | ||
7346 | ||
7347 | static PyObject *_wrap_Log_GetTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7348 | PyObject *resultobj; | |
7349 | wxArrayString *result; | |
7350 | char *kwnames[] = { | |
7351 | NULL | |
7352 | }; | |
7353 | ||
7354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMasks",kwnames)) goto fail; | |
7355 | { | |
7356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7357 | { | |
7358 | wxArrayString const &_result_ref = wxLog::GetTraceMasks(); | |
7359 | result = (wxArrayString *) &_result_ref; | |
7360 | } | |
7361 | ||
7362 | wxPyEndAllowThreads(__tstate); | |
7363 | if (PyErr_Occurred()) SWIG_fail; | |
7364 | } | |
7365 | { | |
7366 | resultobj = wxArrayString2PyList_helper(*result); | |
7367 | } | |
7368 | return resultobj; | |
7369 | fail: | |
7370 | return NULL; | |
7371 | } | |
7372 | ||
7373 | ||
7374 | static PyObject *_wrap_Log_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7375 | PyObject *resultobj; | |
7376 | wxChar *arg1 = (wxChar *) 0 ; | |
7377 | PyObject * obj0 = 0 ; | |
7378 | char *kwnames[] = { | |
7379 | (char *) "ts", NULL | |
7380 | }; | |
7381 | ||
7382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTimestamp",kwnames,&obj0)) goto fail; | |
7383 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar, | |
7384 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7385 | { | |
7386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7387 | wxLog::SetTimestamp((wxChar const *)arg1); | |
7388 | ||
7389 | wxPyEndAllowThreads(__tstate); | |
7390 | if (PyErr_Occurred()) SWIG_fail; | |
7391 | } | |
7392 | Py_INCREF(Py_None); resultobj = Py_None; | |
7393 | return resultobj; | |
7394 | fail: | |
7395 | return NULL; | |
7396 | } | |
7397 | ||
7398 | ||
7399 | static PyObject *_wrap_Log_GetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7400 | PyObject *resultobj; | |
7401 | bool result; | |
7402 | char *kwnames[] = { | |
7403 | NULL | |
7404 | }; | |
7405 | ||
7406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetVerbose",kwnames)) goto fail; | |
7407 | { | |
7408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7409 | result = (bool)wxLog::GetVerbose(); | |
7410 | ||
7411 | wxPyEndAllowThreads(__tstate); | |
7412 | if (PyErr_Occurred()) SWIG_fail; | |
7413 | } | |
7414 | { | |
7415 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7416 | } | |
7417 | return resultobj; | |
7418 | fail: | |
7419 | return NULL; | |
7420 | } | |
7421 | ||
7422 | ||
7423 | static PyObject *_wrap_Log_GetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7424 | PyObject *resultobj; | |
7425 | wxTraceMask result; | |
7426 | char *kwnames[] = { | |
7427 | NULL | |
7428 | }; | |
7429 | ||
7430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMask",kwnames)) goto fail; | |
7431 | { | |
7432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7433 | result = (wxTraceMask)wxLog::GetTraceMask(); | |
7434 | ||
7435 | wxPyEndAllowThreads(__tstate); | |
7436 | if (PyErr_Occurred()) SWIG_fail; | |
7437 | } | |
7438 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
7439 | return resultobj; | |
7440 | fail: | |
7441 | return NULL; | |
7442 | } | |
7443 | ||
7444 | ||
7445 | static PyObject *_wrap_Log_IsAllowedTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7446 | PyObject *resultobj; | |
7447 | wxChar *arg1 = (wxChar *) 0 ; | |
7448 | bool result; | |
7449 | PyObject * obj0 = 0 ; | |
7450 | char *kwnames[] = { | |
7451 | (char *) "mask", NULL | |
7452 | }; | |
7453 | ||
7454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_IsAllowedTraceMask",kwnames,&obj0)) goto fail; | |
7455 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar, | |
7456 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7457 | { | |
7458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7459 | result = (bool)wxLog::IsAllowedTraceMask((wxChar const *)arg1); | |
7460 | ||
7461 | wxPyEndAllowThreads(__tstate); | |
7462 | if (PyErr_Occurred()) SWIG_fail; | |
7463 | } | |
7464 | { | |
7465 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7466 | } | |
7467 | return resultobj; | |
7468 | fail: | |
7469 | return NULL; | |
7470 | } | |
7471 | ||
7472 | ||
7473 | static PyObject *_wrap_Log_GetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7474 | PyObject *resultobj; | |
7475 | wxLogLevel result; | |
7476 | char *kwnames[] = { | |
7477 | NULL | |
7478 | }; | |
7479 | ||
7480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetLogLevel",kwnames)) goto fail; | |
7481 | { | |
7482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7483 | result = (wxLogLevel)wxLog::GetLogLevel(); | |
7484 | ||
7485 | wxPyEndAllowThreads(__tstate); | |
7486 | if (PyErr_Occurred()) SWIG_fail; | |
7487 | } | |
7488 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
7489 | return resultobj; | |
7490 | fail: | |
7491 | return NULL; | |
7492 | } | |
7493 | ||
7494 | ||
7495 | static PyObject *_wrap_Log_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7496 | PyObject *resultobj; | |
7497 | wxChar *result; | |
7498 | char *kwnames[] = { | |
7499 | NULL | |
7500 | }; | |
7501 | ||
7502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTimestamp",kwnames)) goto fail; | |
7503 | { | |
7504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7505 | result = (wxChar *)wxLog::GetTimestamp(); | |
7506 | ||
7507 | wxPyEndAllowThreads(__tstate); | |
7508 | if (PyErr_Occurred()) SWIG_fail; | |
7509 | } | |
7510 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChar, 0); | |
7511 | return resultobj; | |
7512 | fail: | |
7513 | return NULL; | |
7514 | } | |
7515 | ||
7516 | ||
7517 | static PyObject *_wrap_Log_TimeStamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7518 | PyObject *resultobj; | |
7519 | wxString result; | |
7520 | char *kwnames[] = { | |
7521 | NULL | |
7522 | }; | |
7523 | ||
7524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_TimeStamp",kwnames)) goto fail; | |
7525 | { | |
7526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7527 | result = Log_TimeStamp(); | |
7528 | ||
7529 | wxPyEndAllowThreads(__tstate); | |
7530 | if (PyErr_Occurred()) SWIG_fail; | |
7531 | } | |
7532 | { | |
7533 | #if wxUSE_UNICODE | |
7534 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7535 | #else | |
7536 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7537 | #endif | |
7538 | } | |
7539 | return resultobj; | |
7540 | fail: | |
7541 | return NULL; | |
7542 | } | |
7543 | ||
7544 | ||
7545 | static PyObject *_wrap_Log_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7546 | PyObject *resultobj; | |
7547 | wxLog *arg1 = (wxLog *) 0 ; | |
7548 | PyObject * obj0 = 0 ; | |
7549 | char *kwnames[] = { | |
7550 | (char *) "self", NULL | |
7551 | }; | |
7552 | ||
7553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Destroy",kwnames,&obj0)) goto fail; | |
7554 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, | |
7555 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7556 | { | |
7557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7558 | wxLog_Destroy(arg1); | |
7559 | ||
7560 | wxPyEndAllowThreads(__tstate); | |
7561 | if (PyErr_Occurred()) SWIG_fail; | |
7562 | } | |
7563 | Py_INCREF(Py_None); resultobj = Py_None; | |
7564 | return resultobj; | |
7565 | fail: | |
7566 | return NULL; | |
7567 | } | |
7568 | ||
7569 | ||
7570 | static PyObject * Log_swigregister(PyObject *self, PyObject *args) { | |
7571 | PyObject *obj; | |
7572 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7573 | SWIG_TypeClientData(SWIGTYPE_p_wxLog, obj); | |
7574 | Py_INCREF(obj); | |
7575 | return Py_BuildValue((char *)""); | |
7576 | } | |
7577 | static PyObject *_wrap_new_LogStderr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7578 | PyObject *resultobj; | |
7579 | wxLogStderr *result; | |
7580 | char *kwnames[] = { | |
7581 | NULL | |
7582 | }; | |
7583 | ||
7584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogStderr",kwnames)) goto fail; | |
7585 | { | |
7586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7587 | result = (wxLogStderr *)new wxLogStderr(); | |
7588 | ||
7589 | wxPyEndAllowThreads(__tstate); | |
7590 | if (PyErr_Occurred()) SWIG_fail; | |
7591 | } | |
7592 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogStderr, 1); | |
7593 | return resultobj; | |
7594 | fail: | |
7595 | return NULL; | |
7596 | } | |
7597 | ||
7598 | ||
7599 | static PyObject * LogStderr_swigregister(PyObject *self, PyObject *args) { | |
7600 | PyObject *obj; | |
7601 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7602 | SWIG_TypeClientData(SWIGTYPE_p_wxLogStderr, obj); | |
7603 | Py_INCREF(obj); | |
7604 | return Py_BuildValue((char *)""); | |
7605 | } | |
7606 | static PyObject *_wrap_new_LogTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7607 | PyObject *resultobj; | |
7608 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7609 | wxLogTextCtrl *result; | |
7610 | PyObject * obj0 = 0 ; | |
7611 | char *kwnames[] = { | |
7612 | (char *) "pTextCtrl", NULL | |
7613 | }; | |
7614 | ||
7615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogTextCtrl",kwnames,&obj0)) goto fail; | |
7616 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
7617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7618 | { | |
7619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7620 | result = (wxLogTextCtrl *)new wxLogTextCtrl(arg1); | |
7621 | ||
7622 | wxPyEndAllowThreads(__tstate); | |
7623 | if (PyErr_Occurred()) SWIG_fail; | |
7624 | } | |
7625 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogTextCtrl, 1); | |
7626 | return resultobj; | |
7627 | fail: | |
7628 | return NULL; | |
7629 | } | |
7630 | ||
7631 | ||
7632 | static PyObject * LogTextCtrl_swigregister(PyObject *self, PyObject *args) { | |
7633 | PyObject *obj; | |
7634 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7635 | SWIG_TypeClientData(SWIGTYPE_p_wxLogTextCtrl, obj); | |
7636 | Py_INCREF(obj); | |
7637 | return Py_BuildValue((char *)""); | |
7638 | } | |
7639 | static PyObject *_wrap_new_LogGui(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7640 | PyObject *resultobj; | |
7641 | wxLogGui *result; | |
7642 | char *kwnames[] = { | |
7643 | NULL | |
7644 | }; | |
7645 | ||
7646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogGui",kwnames)) goto fail; | |
7647 | { | |
7648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7649 | result = (wxLogGui *)new wxLogGui(); | |
7650 | ||
7651 | wxPyEndAllowThreads(__tstate); | |
7652 | if (PyErr_Occurred()) SWIG_fail; | |
7653 | } | |
7654 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogGui, 1); | |
7655 | return resultobj; | |
7656 | fail: | |
7657 | return NULL; | |
7658 | } | |
7659 | ||
7660 | ||
7661 | static PyObject * LogGui_swigregister(PyObject *self, PyObject *args) { | |
7662 | PyObject *obj; | |
7663 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7664 | SWIG_TypeClientData(SWIGTYPE_p_wxLogGui, obj); | |
7665 | Py_INCREF(obj); | |
7666 | return Py_BuildValue((char *)""); | |
7667 | } | |
7668 | static PyObject *_wrap_new_LogWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7669 | PyObject *resultobj; | |
7670 | wxFrame *arg1 = (wxFrame *) 0 ; | |
7671 | wxString *arg2 = 0 ; | |
7672 | bool arg3 = (bool) True ; | |
7673 | bool arg4 = (bool) True ; | |
7674 | wxLogWindow *result; | |
7675 | bool temp2 = False ; | |
7676 | PyObject * obj0 = 0 ; | |
7677 | PyObject * obj1 = 0 ; | |
7678 | PyObject * obj2 = 0 ; | |
7679 | PyObject * obj3 = 0 ; | |
7680 | char *kwnames[] = { | |
7681 | (char *) "pParent",(char *) "szTitle",(char *) "bShow",(char *) "bPassToOld", NULL | |
7682 | }; | |
7683 | ||
7684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_LogWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
7685 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
7686 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7687 | { | |
7688 | arg2 = wxString_in_helper(obj1); | |
7689 | if (arg2 == NULL) SWIG_fail; | |
7690 | temp2 = True; | |
7691 | } | |
7692 | if (obj2) { | |
7693 | arg3 = (bool) SWIG_AsBool(obj2); | |
7694 | if (PyErr_Occurred()) SWIG_fail; | |
7695 | } | |
7696 | if (obj3) { | |
7697 | arg4 = (bool) SWIG_AsBool(obj3); | |
7698 | if (PyErr_Occurred()) SWIG_fail; | |
7699 | } | |
7700 | { | |
7701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7702 | result = (wxLogWindow *)new wxLogWindow(arg1,(wxString const &)*arg2,arg3,arg4); | |
7703 | ||
7704 | wxPyEndAllowThreads(__tstate); | |
7705 | if (PyErr_Occurred()) SWIG_fail; | |
7706 | } | |
7707 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogWindow, 1); | |
7708 | { | |
7709 | if (temp2) | |
7710 | delete arg2; | |
7711 | } | |
7712 | return resultobj; | |
7713 | fail: | |
7714 | { | |
7715 | if (temp2) | |
7716 | delete arg2; | |
7717 | } | |
7718 | return NULL; | |
7719 | } | |
7720 | ||
7721 | ||
7722 | static PyObject *_wrap_LogWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7723 | PyObject *resultobj; | |
7724 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7725 | bool arg2 = (bool) True ; | |
7726 | PyObject * obj0 = 0 ; | |
7727 | PyObject * obj1 = 0 ; | |
7728 | char *kwnames[] = { | |
7729 | (char *) "self",(char *) "bShow", NULL | |
7730 | }; | |
7731 | ||
7732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:LogWindow_Show",kwnames,&obj0,&obj1)) goto fail; | |
7733 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, | |
7734 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7735 | if (obj1) { | |
7736 | arg2 = (bool) SWIG_AsBool(obj1); | |
7737 | if (PyErr_Occurred()) SWIG_fail; | |
7738 | } | |
7739 | { | |
7740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7741 | (arg1)->Show(arg2); | |
7742 | ||
7743 | wxPyEndAllowThreads(__tstate); | |
7744 | if (PyErr_Occurred()) SWIG_fail; | |
7745 | } | |
7746 | Py_INCREF(Py_None); resultobj = Py_None; | |
7747 | return resultobj; | |
7748 | fail: | |
7749 | return NULL; | |
7750 | } | |
7751 | ||
7752 | ||
7753 | static PyObject *_wrap_LogWindow_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7754 | PyObject *resultobj; | |
7755 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7756 | wxFrame *result; | |
7757 | PyObject * obj0 = 0 ; | |
7758 | char *kwnames[] = { | |
7759 | (char *) "self", NULL | |
7760 | }; | |
7761 | ||
7762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetFrame",kwnames,&obj0)) goto fail; | |
7763 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, | |
7764 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7765 | { | |
7766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7767 | result = (wxFrame *)((wxLogWindow const *)arg1)->GetFrame(); | |
7768 | ||
7769 | wxPyEndAllowThreads(__tstate); | |
7770 | if (PyErr_Occurred()) SWIG_fail; | |
7771 | } | |
7772 | { | |
7773 | resultobj = wxPyMake_wxObject(result); | |
7774 | } | |
7775 | return resultobj; | |
7776 | fail: | |
7777 | return NULL; | |
7778 | } | |
7779 | ||
7780 | ||
7781 | static PyObject *_wrap_LogWindow_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7782 | PyObject *resultobj; | |
7783 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7784 | wxLog *result; | |
7785 | PyObject * obj0 = 0 ; | |
7786 | char *kwnames[] = { | |
7787 | (char *) "self", NULL | |
7788 | }; | |
7789 | ||
7790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetOldLog",kwnames,&obj0)) goto fail; | |
7791 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, | |
7792 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7793 | { | |
7794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7795 | result = (wxLog *)((wxLogWindow const *)arg1)->GetOldLog(); | |
7796 | ||
7797 | wxPyEndAllowThreads(__tstate); | |
7798 | if (PyErr_Occurred()) SWIG_fail; | |
7799 | } | |
7800 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); | |
7801 | return resultobj; | |
7802 | fail: | |
7803 | return NULL; | |
7804 | } | |
7805 | ||
7806 | ||
7807 | static PyObject *_wrap_LogWindow_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7808 | PyObject *resultobj; | |
7809 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7810 | bool result; | |
7811 | PyObject * obj0 = 0 ; | |
7812 | char *kwnames[] = { | |
7813 | (char *) "self", NULL | |
7814 | }; | |
7815 | ||
7816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_IsPassingMessages",kwnames,&obj0)) goto fail; | |
7817 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, | |
7818 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7819 | { | |
7820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7821 | result = (bool)((wxLogWindow const *)arg1)->IsPassingMessages(); | |
7822 | ||
7823 | wxPyEndAllowThreads(__tstate); | |
7824 | if (PyErr_Occurred()) SWIG_fail; | |
7825 | } | |
7826 | { | |
7827 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7828 | } | |
7829 | return resultobj; | |
7830 | fail: | |
7831 | return NULL; | |
7832 | } | |
7833 | ||
7834 | ||
7835 | static PyObject *_wrap_LogWindow_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7836 | PyObject *resultobj; | |
7837 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7838 | bool arg2 ; | |
7839 | PyObject * obj0 = 0 ; | |
7840 | PyObject * obj1 = 0 ; | |
7841 | char *kwnames[] = { | |
7842 | (char *) "self",(char *) "bDoPass", NULL | |
7843 | }; | |
7844 | ||
7845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogWindow_PassMessages",kwnames,&obj0,&obj1)) goto fail; | |
7846 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, | |
7847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7848 | arg2 = (bool) SWIG_AsBool(obj1); | |
7849 | if (PyErr_Occurred()) SWIG_fail; | |
7850 | { | |
7851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7852 | (arg1)->PassMessages(arg2); | |
7853 | ||
7854 | wxPyEndAllowThreads(__tstate); | |
7855 | if (PyErr_Occurred()) SWIG_fail; | |
7856 | } | |
7857 | Py_INCREF(Py_None); resultobj = Py_None; | |
7858 | return resultobj; | |
7859 | fail: | |
7860 | return NULL; | |
7861 | } | |
7862 | ||
7863 | ||
7864 | static PyObject * LogWindow_swigregister(PyObject *self, PyObject *args) { | |
7865 | PyObject *obj; | |
7866 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7867 | SWIG_TypeClientData(SWIGTYPE_p_wxLogWindow, obj); | |
7868 | Py_INCREF(obj); | |
7869 | return Py_BuildValue((char *)""); | |
7870 | } | |
7871 | static PyObject *_wrap_new_LogChain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7872 | PyObject *resultobj; | |
7873 | wxLog *arg1 = (wxLog *) 0 ; | |
7874 | wxLogChain *result; | |
7875 | PyObject * obj0 = 0 ; | |
7876 | char *kwnames[] = { | |
7877 | (char *) "logger", NULL | |
7878 | }; | |
7879 | ||
7880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogChain",kwnames,&obj0)) goto fail; | |
7881 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, | |
7882 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7883 | { | |
7884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7885 | result = (wxLogChain *)new wxLogChain(arg1); | |
7886 | ||
7887 | wxPyEndAllowThreads(__tstate); | |
7888 | if (PyErr_Occurred()) SWIG_fail; | |
7889 | } | |
7890 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogChain, 1); | |
7891 | return resultobj; | |
7892 | fail: | |
7893 | return NULL; | |
7894 | } | |
7895 | ||
7896 | ||
7897 | static PyObject *_wrap_LogChain_SetLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7898 | PyObject *resultobj; | |
7899 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
7900 | wxLog *arg2 = (wxLog *) 0 ; | |
7901 | PyObject * obj0 = 0 ; | |
7902 | PyObject * obj1 = 0 ; | |
7903 | char *kwnames[] = { | |
7904 | (char *) "self",(char *) "logger", NULL | |
7905 | }; | |
7906 | ||
7907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_SetLog",kwnames,&obj0,&obj1)) goto fail; | |
7908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, | |
7909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7910 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLog, | |
7911 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7912 | { | |
7913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7914 | (arg1)->SetLog(arg2); | |
7915 | ||
7916 | wxPyEndAllowThreads(__tstate); | |
7917 | if (PyErr_Occurred()) SWIG_fail; | |
7918 | } | |
7919 | Py_INCREF(Py_None); resultobj = Py_None; | |
7920 | return resultobj; | |
7921 | fail: | |
7922 | return NULL; | |
7923 | } | |
7924 | ||
7925 | ||
7926 | static PyObject *_wrap_LogChain_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7927 | PyObject *resultobj; | |
7928 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
7929 | bool arg2 ; | |
7930 | PyObject * obj0 = 0 ; | |
7931 | PyObject * obj1 = 0 ; | |
7932 | char *kwnames[] = { | |
7933 | (char *) "self",(char *) "bDoPass", NULL | |
7934 | }; | |
7935 | ||
7936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_PassMessages",kwnames,&obj0,&obj1)) goto fail; | |
7937 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, | |
7938 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7939 | arg2 = (bool) SWIG_AsBool(obj1); | |
7940 | if (PyErr_Occurred()) SWIG_fail; | |
7941 | { | |
7942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7943 | (arg1)->PassMessages(arg2); | |
7944 | ||
7945 | wxPyEndAllowThreads(__tstate); | |
7946 | if (PyErr_Occurred()) SWIG_fail; | |
7947 | } | |
7948 | Py_INCREF(Py_None); resultobj = Py_None; | |
7949 | return resultobj; | |
7950 | fail: | |
7951 | return NULL; | |
7952 | } | |
7953 | ||
7954 | ||
7955 | static PyObject *_wrap_LogChain_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7956 | PyObject *resultobj; | |
7957 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
7958 | bool result; | |
7959 | PyObject * obj0 = 0 ; | |
7960 | char *kwnames[] = { | |
7961 | (char *) "self", NULL | |
7962 | }; | |
7963 | ||
7964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_IsPassingMessages",kwnames,&obj0)) goto fail; | |
7965 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, | |
7966 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7967 | { | |
7968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7969 | result = (bool)(arg1)->IsPassingMessages(); | |
7970 | ||
7971 | wxPyEndAllowThreads(__tstate); | |
7972 | if (PyErr_Occurred()) SWIG_fail; | |
7973 | } | |
7974 | { | |
7975 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7976 | } | |
7977 | return resultobj; | |
7978 | fail: | |
7979 | return NULL; | |
7980 | } | |
7981 | ||
7982 | ||
7983 | static PyObject *_wrap_LogChain_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7984 | PyObject *resultobj; | |
7985 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
7986 | wxLog *result; | |
7987 | PyObject * obj0 = 0 ; | |
7988 | char *kwnames[] = { | |
7989 | (char *) "self", NULL | |
7990 | }; | |
7991 | ||
7992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_GetOldLog",kwnames,&obj0)) goto fail; | |
7993 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, | |
7994 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7995 | { | |
7996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7997 | result = (wxLog *)(arg1)->GetOldLog(); | |
7998 | ||
7999 | wxPyEndAllowThreads(__tstate); | |
8000 | if (PyErr_Occurred()) SWIG_fail; | |
8001 | } | |
8002 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); | |
8003 | return resultobj; | |
8004 | fail: | |
8005 | return NULL; | |
8006 | } | |
8007 | ||
8008 | ||
8009 | static PyObject * LogChain_swigregister(PyObject *self, PyObject *args) { | |
8010 | PyObject *obj; | |
8011 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8012 | SWIG_TypeClientData(SWIGTYPE_p_wxLogChain, obj); | |
8013 | Py_INCREF(obj); | |
8014 | return Py_BuildValue((char *)""); | |
8015 | } | |
8016 | static PyObject *_wrap_SysErrorCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8017 | PyObject *resultobj; | |
8018 | unsigned long result; | |
8019 | char *kwnames[] = { | |
8020 | NULL | |
8021 | }; | |
8022 | ||
8023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SysErrorCode",kwnames)) goto fail; | |
8024 | { | |
8025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8026 | result = (unsigned long)wxSysErrorCode(); | |
8027 | ||
8028 | wxPyEndAllowThreads(__tstate); | |
8029 | if (PyErr_Occurred()) SWIG_fail; | |
8030 | } | |
8031 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
8032 | return resultobj; | |
8033 | fail: | |
8034 | return NULL; | |
8035 | } | |
8036 | ||
8037 | ||
8038 | static PyObject *_wrap_SysErrorMsg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8039 | PyObject *resultobj; | |
8040 | unsigned long arg1 = (unsigned long) 0 ; | |
8041 | wxString result; | |
8042 | PyObject * obj0 = 0 ; | |
8043 | char *kwnames[] = { | |
8044 | (char *) "nErrCode", NULL | |
8045 | }; | |
8046 | ||
8047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SysErrorMsg",kwnames,&obj0)) goto fail; | |
8048 | if (obj0) { | |
8049 | arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); | |
8050 | if (PyErr_Occurred()) SWIG_fail; | |
8051 | } | |
8052 | { | |
8053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8054 | result = wxSysErrorMsg(arg1); | |
8055 | ||
8056 | wxPyEndAllowThreads(__tstate); | |
8057 | if (PyErr_Occurred()) SWIG_fail; | |
8058 | } | |
8059 | { | |
8060 | #if wxUSE_UNICODE | |
8061 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8062 | #else | |
8063 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8064 | #endif | |
8065 | } | |
8066 | return resultobj; | |
8067 | fail: | |
8068 | return NULL; | |
8069 | } | |
8070 | ||
8071 | ||
8072 | static PyObject *_wrap_LogFatalError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8073 | PyObject *resultobj; | |
8074 | wxString *arg1 = 0 ; | |
8075 | bool temp1 = False ; | |
8076 | PyObject * obj0 = 0 ; | |
8077 | char *kwnames[] = { | |
8078 | (char *) "msg", NULL | |
8079 | }; | |
8080 | ||
8081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogFatalError",kwnames,&obj0)) goto fail; | |
8082 | { | |
8083 | arg1 = wxString_in_helper(obj0); | |
8084 | if (arg1 == NULL) SWIG_fail; | |
8085 | temp1 = True; | |
8086 | } | |
8087 | { | |
8088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8089 | wxLogFatalError((wxString const &)*arg1); | |
8090 | ||
8091 | wxPyEndAllowThreads(__tstate); | |
8092 | if (PyErr_Occurred()) SWIG_fail; | |
8093 | } | |
8094 | Py_INCREF(Py_None); resultobj = Py_None; | |
8095 | { | |
8096 | if (temp1) | |
8097 | delete arg1; | |
8098 | } | |
8099 | return resultobj; | |
8100 | fail: | |
8101 | { | |
8102 | if (temp1) | |
8103 | delete arg1; | |
8104 | } | |
8105 | return NULL; | |
8106 | } | |
8107 | ||
8108 | ||
8109 | static PyObject *_wrap_LogError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8110 | PyObject *resultobj; | |
8111 | wxString *arg1 = 0 ; | |
8112 | bool temp1 = False ; | |
8113 | PyObject * obj0 = 0 ; | |
8114 | char *kwnames[] = { | |
8115 | (char *) "msg", NULL | |
8116 | }; | |
8117 | ||
8118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogError",kwnames,&obj0)) goto fail; | |
8119 | { | |
8120 | arg1 = wxString_in_helper(obj0); | |
8121 | if (arg1 == NULL) SWIG_fail; | |
8122 | temp1 = True; | |
8123 | } | |
8124 | { | |
8125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8126 | wxLogError((wxString const &)*arg1); | |
8127 | ||
8128 | wxPyEndAllowThreads(__tstate); | |
8129 | if (PyErr_Occurred()) SWIG_fail; | |
8130 | } | |
8131 | Py_INCREF(Py_None); resultobj = Py_None; | |
8132 | { | |
8133 | if (temp1) | |
8134 | delete arg1; | |
8135 | } | |
8136 | return resultobj; | |
8137 | fail: | |
8138 | { | |
8139 | if (temp1) | |
8140 | delete arg1; | |
8141 | } | |
8142 | return NULL; | |
8143 | } | |
8144 | ||
8145 | ||
8146 | static PyObject *_wrap_LogWarning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8147 | PyObject *resultobj; | |
8148 | wxString *arg1 = 0 ; | |
8149 | bool temp1 = False ; | |
8150 | PyObject * obj0 = 0 ; | |
8151 | char *kwnames[] = { | |
8152 | (char *) "msg", NULL | |
8153 | }; | |
8154 | ||
8155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWarning",kwnames,&obj0)) goto fail; | |
8156 | { | |
8157 | arg1 = wxString_in_helper(obj0); | |
8158 | if (arg1 == NULL) SWIG_fail; | |
8159 | temp1 = True; | |
8160 | } | |
8161 | { | |
8162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8163 | wxLogWarning((wxString const &)*arg1); | |
8164 | ||
8165 | wxPyEndAllowThreads(__tstate); | |
8166 | if (PyErr_Occurred()) SWIG_fail; | |
8167 | } | |
8168 | Py_INCREF(Py_None); resultobj = Py_None; | |
8169 | { | |
8170 | if (temp1) | |
8171 | delete arg1; | |
8172 | } | |
8173 | return resultobj; | |
8174 | fail: | |
8175 | { | |
8176 | if (temp1) | |
8177 | delete arg1; | |
8178 | } | |
8179 | return NULL; | |
8180 | } | |
8181 | ||
8182 | ||
8183 | static PyObject *_wrap_LogMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8184 | PyObject *resultobj; | |
8185 | wxString *arg1 = 0 ; | |
8186 | bool temp1 = False ; | |
8187 | PyObject * obj0 = 0 ; | |
8188 | char *kwnames[] = { | |
8189 | (char *) "msg", NULL | |
8190 | }; | |
8191 | ||
8192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogMessage",kwnames,&obj0)) goto fail; | |
8193 | { | |
8194 | arg1 = wxString_in_helper(obj0); | |
8195 | if (arg1 == NULL) SWIG_fail; | |
8196 | temp1 = True; | |
8197 | } | |
8198 | { | |
8199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8200 | wxLogMessage((wxString const &)*arg1); | |
8201 | ||
8202 | wxPyEndAllowThreads(__tstate); | |
8203 | if (PyErr_Occurred()) SWIG_fail; | |
8204 | } | |
8205 | Py_INCREF(Py_None); resultobj = Py_None; | |
8206 | { | |
8207 | if (temp1) | |
8208 | delete arg1; | |
8209 | } | |
8210 | return resultobj; | |
8211 | fail: | |
8212 | { | |
8213 | if (temp1) | |
8214 | delete arg1; | |
8215 | } | |
8216 | return NULL; | |
8217 | } | |
8218 | ||
8219 | ||
8220 | static PyObject *_wrap_LogInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8221 | PyObject *resultobj; | |
8222 | wxString *arg1 = 0 ; | |
8223 | bool temp1 = False ; | |
8224 | PyObject * obj0 = 0 ; | |
8225 | char *kwnames[] = { | |
8226 | (char *) "msg", NULL | |
8227 | }; | |
8228 | ||
8229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogInfo",kwnames,&obj0)) goto fail; | |
8230 | { | |
8231 | arg1 = wxString_in_helper(obj0); | |
8232 | if (arg1 == NULL) SWIG_fail; | |
8233 | temp1 = True; | |
8234 | } | |
8235 | { | |
8236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8237 | wxLogInfo((wxString const &)*arg1); | |
8238 | ||
8239 | wxPyEndAllowThreads(__tstate); | |
8240 | if (PyErr_Occurred()) SWIG_fail; | |
8241 | } | |
8242 | Py_INCREF(Py_None); resultobj = Py_None; | |
8243 | { | |
8244 | if (temp1) | |
8245 | delete arg1; | |
8246 | } | |
8247 | return resultobj; | |
8248 | fail: | |
8249 | { | |
8250 | if (temp1) | |
8251 | delete arg1; | |
8252 | } | |
8253 | return NULL; | |
8254 | } | |
8255 | ||
8256 | ||
8257 | static PyObject *_wrap_LogDebug(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8258 | PyObject *resultobj; | |
8259 | wxString *arg1 = 0 ; | |
8260 | bool temp1 = False ; | |
8261 | PyObject * obj0 = 0 ; | |
8262 | char *kwnames[] = { | |
8263 | (char *) "msg", NULL | |
8264 | }; | |
8265 | ||
8266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogDebug",kwnames,&obj0)) goto fail; | |
8267 | { | |
8268 | arg1 = wxString_in_helper(obj0); | |
8269 | if (arg1 == NULL) SWIG_fail; | |
8270 | temp1 = True; | |
8271 | } | |
8272 | { | |
8273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8274 | wxLogDebug((wxString const &)*arg1); | |
8275 | ||
8276 | wxPyEndAllowThreads(__tstate); | |
8277 | if (PyErr_Occurred()) SWIG_fail; | |
8278 | } | |
8279 | Py_INCREF(Py_None); resultobj = Py_None; | |
8280 | { | |
8281 | if (temp1) | |
8282 | delete arg1; | |
8283 | } | |
8284 | return resultobj; | |
8285 | fail: | |
8286 | { | |
8287 | if (temp1) | |
8288 | delete arg1; | |
8289 | } | |
8290 | return NULL; | |
8291 | } | |
8292 | ||
8293 | ||
8294 | static PyObject *_wrap_LogVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8295 | PyObject *resultobj; | |
8296 | wxString *arg1 = 0 ; | |
8297 | bool temp1 = False ; | |
8298 | PyObject * obj0 = 0 ; | |
8299 | char *kwnames[] = { | |
8300 | (char *) "msg", NULL | |
8301 | }; | |
8302 | ||
8303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogVerbose",kwnames,&obj0)) goto fail; | |
8304 | { | |
8305 | arg1 = wxString_in_helper(obj0); | |
8306 | if (arg1 == NULL) SWIG_fail; | |
8307 | temp1 = True; | |
8308 | } | |
8309 | { | |
8310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8311 | wxLogVerbose((wxString const &)*arg1); | |
8312 | ||
8313 | wxPyEndAllowThreads(__tstate); | |
8314 | if (PyErr_Occurred()) SWIG_fail; | |
8315 | } | |
8316 | Py_INCREF(Py_None); resultobj = Py_None; | |
8317 | { | |
8318 | if (temp1) | |
8319 | delete arg1; | |
8320 | } | |
8321 | return resultobj; | |
8322 | fail: | |
8323 | { | |
8324 | if (temp1) | |
8325 | delete arg1; | |
8326 | } | |
8327 | return NULL; | |
8328 | } | |
8329 | ||
8330 | ||
8331 | static PyObject *_wrap_LogStatus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8332 | PyObject *resultobj; | |
8333 | wxString *arg1 = 0 ; | |
8334 | bool temp1 = False ; | |
8335 | PyObject * obj0 = 0 ; | |
8336 | char *kwnames[] = { | |
8337 | (char *) "msg", NULL | |
8338 | }; | |
8339 | ||
8340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogStatus",kwnames,&obj0)) goto fail; | |
8341 | { | |
8342 | arg1 = wxString_in_helper(obj0); | |
8343 | if (arg1 == NULL) SWIG_fail; | |
8344 | temp1 = True; | |
8345 | } | |
8346 | { | |
8347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8348 | wxLogStatus((wxString const &)*arg1); | |
8349 | ||
8350 | wxPyEndAllowThreads(__tstate); | |
8351 | if (PyErr_Occurred()) SWIG_fail; | |
8352 | } | |
8353 | Py_INCREF(Py_None); resultobj = Py_None; | |
8354 | { | |
8355 | if (temp1) | |
8356 | delete arg1; | |
8357 | } | |
8358 | return resultobj; | |
8359 | fail: | |
8360 | { | |
8361 | if (temp1) | |
8362 | delete arg1; | |
8363 | } | |
8364 | return NULL; | |
8365 | } | |
8366 | ||
8367 | ||
8368 | static PyObject *_wrap_LogStatusFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8369 | PyObject *resultobj; | |
8370 | wxFrame *arg1 = (wxFrame *) 0 ; | |
8371 | wxString *arg2 = 0 ; | |
8372 | bool temp2 = False ; | |
8373 | PyObject * obj0 = 0 ; | |
8374 | PyObject * obj1 = 0 ; | |
8375 | char *kwnames[] = { | |
8376 | (char *) "pFrame",(char *) "msg", NULL | |
8377 | }; | |
8378 | ||
8379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogStatusFrame",kwnames,&obj0,&obj1)) goto fail; | |
8380 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
8381 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8382 | { | |
8383 | arg2 = wxString_in_helper(obj1); | |
8384 | if (arg2 == NULL) SWIG_fail; | |
8385 | temp2 = True; | |
8386 | } | |
8387 | { | |
8388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8389 | wxLogStatus(arg1,(wxString const &)*arg2); | |
8390 | ||
8391 | wxPyEndAllowThreads(__tstate); | |
8392 | if (PyErr_Occurred()) SWIG_fail; | |
8393 | } | |
8394 | Py_INCREF(Py_None); resultobj = Py_None; | |
8395 | { | |
8396 | if (temp2) | |
8397 | delete arg2; | |
8398 | } | |
8399 | return resultobj; | |
8400 | fail: | |
8401 | { | |
8402 | if (temp2) | |
8403 | delete arg2; | |
8404 | } | |
8405 | return NULL; | |
8406 | } | |
8407 | ||
8408 | ||
8409 | static PyObject *_wrap_LogSysError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8410 | PyObject *resultobj; | |
8411 | wxString *arg1 = 0 ; | |
8412 | bool temp1 = False ; | |
8413 | PyObject * obj0 = 0 ; | |
8414 | char *kwnames[] = { | |
8415 | (char *) "msg", NULL | |
8416 | }; | |
8417 | ||
8418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogSysError",kwnames,&obj0)) goto fail; | |
8419 | { | |
8420 | arg1 = wxString_in_helper(obj0); | |
8421 | if (arg1 == NULL) SWIG_fail; | |
8422 | temp1 = True; | |
8423 | } | |
8424 | { | |
8425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8426 | wxLogSysError((wxString const &)*arg1); | |
8427 | ||
8428 | wxPyEndAllowThreads(__tstate); | |
8429 | if (PyErr_Occurred()) SWIG_fail; | |
8430 | } | |
8431 | Py_INCREF(Py_None); resultobj = Py_None; | |
8432 | { | |
8433 | if (temp1) | |
8434 | delete arg1; | |
8435 | } | |
8436 | return resultobj; | |
8437 | fail: | |
8438 | { | |
8439 | if (temp1) | |
8440 | delete arg1; | |
8441 | } | |
8442 | return NULL; | |
8443 | } | |
8444 | ||
8445 | ||
8446 | static PyObject *_wrap_LogTrace__SWIG_0(PyObject *self, PyObject *args) { | |
8447 | PyObject *resultobj; | |
8448 | unsigned long arg1 ; | |
8449 | wxString *arg2 = 0 ; | |
8450 | bool temp2 = False ; | |
8451 | PyObject * obj0 = 0 ; | |
8452 | PyObject * obj1 = 0 ; | |
8453 | ||
8454 | if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail; | |
8455 | arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); | |
8456 | if (PyErr_Occurred()) SWIG_fail; | |
8457 | { | |
8458 | arg2 = wxString_in_helper(obj1); | |
8459 | if (arg2 == NULL) SWIG_fail; | |
8460 | temp2 = True; | |
8461 | } | |
8462 | { | |
8463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8464 | wxLogTrace(arg1,(wxString const &)*arg2); | |
8465 | ||
8466 | wxPyEndAllowThreads(__tstate); | |
8467 | if (PyErr_Occurred()) SWIG_fail; | |
8468 | } | |
8469 | Py_INCREF(Py_None); resultobj = Py_None; | |
8470 | { | |
8471 | if (temp2) | |
8472 | delete arg2; | |
8473 | } | |
8474 | return resultobj; | |
8475 | fail: | |
8476 | { | |
8477 | if (temp2) | |
8478 | delete arg2; | |
8479 | } | |
8480 | return NULL; | |
8481 | } | |
8482 | ||
8483 | ||
8484 | static PyObject *_wrap_LogTrace__SWIG_1(PyObject *self, PyObject *args) { | |
8485 | PyObject *resultobj; | |
8486 | wxString *arg1 = 0 ; | |
8487 | wxString *arg2 = 0 ; | |
8488 | bool temp1 = False ; | |
8489 | bool temp2 = False ; | |
8490 | PyObject * obj0 = 0 ; | |
8491 | PyObject * obj1 = 0 ; | |
8492 | ||
8493 | if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail; | |
8494 | { | |
8495 | arg1 = wxString_in_helper(obj0); | |
8496 | if (arg1 == NULL) SWIG_fail; | |
8497 | temp1 = True; | |
8498 | } | |
8499 | { | |
8500 | arg2 = wxString_in_helper(obj1); | |
8501 | if (arg2 == NULL) SWIG_fail; | |
8502 | temp2 = True; | |
8503 | } | |
8504 | { | |
8505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8506 | wxLogTrace((wxString const &)*arg1,(wxString const &)*arg2); | |
8507 | ||
8508 | wxPyEndAllowThreads(__tstate); | |
8509 | if (PyErr_Occurred()) SWIG_fail; | |
8510 | } | |
8511 | Py_INCREF(Py_None); resultobj = Py_None; | |
8512 | { | |
8513 | if (temp1) | |
8514 | delete arg1; | |
8515 | } | |
8516 | { | |
8517 | if (temp2) | |
8518 | delete arg2; | |
8519 | } | |
8520 | return resultobj; | |
8521 | fail: | |
8522 | { | |
8523 | if (temp1) | |
8524 | delete arg1; | |
8525 | } | |
8526 | { | |
8527 | if (temp2) | |
8528 | delete arg2; | |
8529 | } | |
8530 | return NULL; | |
8531 | } | |
8532 | ||
8533 | ||
8534 | static PyObject *_wrap_LogTrace(PyObject *self, PyObject *args) { | |
8535 | int argc; | |
8536 | PyObject *argv[3]; | |
8537 | int ii; | |
8538 | ||
8539 | argc = PyObject_Length(args); | |
8540 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
8541 | argv[ii] = PyTuple_GetItem(args,ii); | |
8542 | } | |
8543 | if (argc == 2) { | |
8544 | int _v; | |
8545 | { | |
8546 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); | |
8547 | } | |
8548 | if (_v) { | |
8549 | { | |
8550 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); | |
8551 | } | |
8552 | if (_v) { | |
8553 | return _wrap_LogTrace__SWIG_1(self,args); | |
8554 | } | |
8555 | } | |
8556 | } | |
8557 | if (argc == 2) { | |
8558 | int _v; | |
8559 | _v = SWIG_CheckUnsignedLong(argv[0]); | |
8560 | if (_v) { | |
8561 | { | |
8562 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); | |
8563 | } | |
8564 | if (_v) { | |
8565 | return _wrap_LogTrace__SWIG_0(self,args); | |
8566 | } | |
8567 | } | |
8568 | } | |
8569 | ||
8570 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'LogTrace'"); | |
8571 | return NULL; | |
8572 | } | |
8573 | ||
8574 | ||
8575 | static PyObject *_wrap_LogGeneric(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8576 | PyObject *resultobj; | |
8577 | unsigned long arg1 ; | |
8578 | wxString *arg2 = 0 ; | |
8579 | bool temp2 = False ; | |
8580 | PyObject * obj0 = 0 ; | |
8581 | PyObject * obj1 = 0 ; | |
8582 | char *kwnames[] = { | |
8583 | (char *) "level",(char *) "msg", NULL | |
8584 | }; | |
8585 | ||
8586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogGeneric",kwnames,&obj0,&obj1)) goto fail; | |
8587 | arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); | |
8588 | if (PyErr_Occurred()) SWIG_fail; | |
8589 | { | |
8590 | arg2 = wxString_in_helper(obj1); | |
8591 | if (arg2 == NULL) SWIG_fail; | |
8592 | temp2 = True; | |
8593 | } | |
8594 | { | |
8595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8596 | wxLogGeneric(arg1,(wxString const &)*arg2); | |
8597 | ||
8598 | wxPyEndAllowThreads(__tstate); | |
8599 | if (PyErr_Occurred()) SWIG_fail; | |
8600 | } | |
8601 | Py_INCREF(Py_None); resultobj = Py_None; | |
8602 | { | |
8603 | if (temp2) | |
8604 | delete arg2; | |
8605 | } | |
8606 | return resultobj; | |
8607 | fail: | |
8608 | { | |
8609 | if (temp2) | |
8610 | delete arg2; | |
8611 | } | |
8612 | return NULL; | |
8613 | } | |
8614 | ||
8615 | ||
8616 | static PyObject *_wrap_SafeShowMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8617 | PyObject *resultobj; | |
8618 | wxString *arg1 = 0 ; | |
8619 | wxString *arg2 = 0 ; | |
8620 | bool temp1 = False ; | |
8621 | bool temp2 = False ; | |
8622 | PyObject * obj0 = 0 ; | |
8623 | PyObject * obj1 = 0 ; | |
8624 | char *kwnames[] = { | |
8625 | (char *) "title",(char *) "text", NULL | |
8626 | }; | |
8627 | ||
8628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SafeShowMessage",kwnames,&obj0,&obj1)) goto fail; | |
8629 | { | |
8630 | arg1 = wxString_in_helper(obj0); | |
8631 | if (arg1 == NULL) SWIG_fail; | |
8632 | temp1 = True; | |
8633 | } | |
8634 | { | |
8635 | arg2 = wxString_in_helper(obj1); | |
8636 | if (arg2 == NULL) SWIG_fail; | |
8637 | temp2 = True; | |
8638 | } | |
8639 | { | |
8640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8641 | wxSafeShowMessage((wxString const &)*arg1,(wxString const &)*arg2); | |
8642 | ||
8643 | wxPyEndAllowThreads(__tstate); | |
8644 | if (PyErr_Occurred()) SWIG_fail; | |
8645 | } | |
8646 | Py_INCREF(Py_None); resultobj = Py_None; | |
8647 | { | |
8648 | if (temp1) | |
8649 | delete arg1; | |
8650 | } | |
8651 | { | |
8652 | if (temp2) | |
8653 | delete arg2; | |
8654 | } | |
8655 | return resultobj; | |
8656 | fail: | |
8657 | { | |
8658 | if (temp1) | |
8659 | delete arg1; | |
8660 | } | |
8661 | { | |
8662 | if (temp2) | |
8663 | delete arg2; | |
8664 | } | |
8665 | return NULL; | |
8666 | } | |
8667 | ||
8668 | ||
8669 | static PyObject *_wrap_new_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8670 | PyObject *resultobj; | |
8671 | wxLogNull *result; | |
8672 | char *kwnames[] = { | |
8673 | NULL | |
8674 | }; | |
8675 | ||
8676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogNull",kwnames)) goto fail; | |
8677 | { | |
8678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8679 | result = (wxLogNull *)new wxLogNull(); | |
8680 | ||
8681 | wxPyEndAllowThreads(__tstate); | |
8682 | if (PyErr_Occurred()) SWIG_fail; | |
8683 | } | |
8684 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogNull, 1); | |
8685 | return resultobj; | |
8686 | fail: | |
8687 | return NULL; | |
8688 | } | |
8689 | ||
8690 | ||
8691 | static PyObject *_wrap_delete_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8692 | PyObject *resultobj; | |
8693 | wxLogNull *arg1 = (wxLogNull *) 0 ; | |
8694 | PyObject * obj0 = 0 ; | |
8695 | char *kwnames[] = { | |
8696 | (char *) "self", NULL | |
8697 | }; | |
8698 | ||
8699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LogNull",kwnames,&obj0)) goto fail; | |
8700 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogNull, | |
8701 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8702 | { | |
8703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8704 | delete arg1; | |
8705 | ||
8706 | wxPyEndAllowThreads(__tstate); | |
8707 | if (PyErr_Occurred()) SWIG_fail; | |
8708 | } | |
8709 | Py_INCREF(Py_None); resultobj = Py_None; | |
8710 | return resultobj; | |
8711 | fail: | |
8712 | return NULL; | |
8713 | } | |
8714 | ||
8715 | ||
8716 | static PyObject * LogNull_swigregister(PyObject *self, PyObject *args) { | |
8717 | PyObject *obj; | |
8718 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8719 | SWIG_TypeClientData(SWIGTYPE_p_wxLogNull, obj); | |
8720 | Py_INCREF(obj); | |
8721 | return Py_BuildValue((char *)""); | |
8722 | } | |
8723 | static PyObject *_wrap_new_PyLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8724 | PyObject *resultobj; | |
8725 | wxPyLog *result; | |
8726 | char *kwnames[] = { | |
8727 | NULL | |
8728 | }; | |
8729 | ||
8730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLog",kwnames)) goto fail; | |
8731 | { | |
8732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8733 | result = (wxPyLog *)new wxPyLog(); | |
8734 | ||
8735 | wxPyEndAllowThreads(__tstate); | |
8736 | if (PyErr_Occurred()) SWIG_fail; | |
8737 | } | |
8738 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyLog, 1); | |
8739 | return resultobj; | |
8740 | fail: | |
8741 | return NULL; | |
8742 | } | |
8743 | ||
8744 | ||
8745 | static PyObject *_wrap_PyLog__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8746 | PyObject *resultobj; | |
8747 | wxPyLog *arg1 = (wxPyLog *) 0 ; | |
8748 | PyObject *arg2 = (PyObject *) 0 ; | |
8749 | PyObject *arg3 = (PyObject *) 0 ; | |
8750 | PyObject * obj0 = 0 ; | |
8751 | PyObject * obj1 = 0 ; | |
8752 | PyObject * obj2 = 0 ; | |
8753 | char *kwnames[] = { | |
8754 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
8755 | }; | |
8756 | ||
8757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLog__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8758 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLog, | |
8759 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8760 | arg2 = obj1; | |
8761 | arg3 = obj2; | |
8762 | { | |
8763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8764 | (arg1)->_setCallbackInfo(arg2,arg3); | |
8765 | ||
8766 | wxPyEndAllowThreads(__tstate); | |
8767 | if (PyErr_Occurred()) SWIG_fail; | |
8768 | } | |
8769 | Py_INCREF(Py_None); resultobj = Py_None; | |
8770 | return resultobj; | |
8771 | fail: | |
8772 | return NULL; | |
8773 | } | |
8774 | ||
8775 | ||
8776 | static PyObject * PyLog_swigregister(PyObject *self, PyObject *args) { | |
8777 | PyObject *obj; | |
8778 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8779 | SWIG_TypeClientData(SWIGTYPE_p_wxPyLog, obj); | |
8780 | Py_INCREF(obj); | |
8781 | return Py_BuildValue((char *)""); | |
8782 | } | |
8783 | static PyObject *_wrap_Process_Kill(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8784 | PyObject *resultobj; | |
8785 | int arg1 ; | |
8786 | int arg2 = (int) wxSIGTERM ; | |
8787 | int result; | |
8788 | PyObject * obj0 = 0 ; | |
8789 | PyObject * obj1 = 0 ; | |
8790 | char *kwnames[] = { | |
8791 | (char *) "pid",(char *) "sig", NULL | |
8792 | }; | |
8793 | ||
8794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Kill",kwnames,&obj0,&obj1)) goto fail; | |
8795 | arg1 = (int) SWIG_AsInt(obj0); | |
8796 | if (PyErr_Occurred()) SWIG_fail; | |
8797 | if (obj1) { | |
8798 | arg2 = (wxSignal) SWIG_AsInt(obj1); | |
8799 | if (PyErr_Occurred()) SWIG_fail; | |
8800 | } | |
8801 | { | |
8802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8803 | result = (int)wxPyProcess::Kill(arg1,(wxSignal )arg2); | |
8804 | ||
8805 | wxPyEndAllowThreads(__tstate); | |
8806 | if (PyErr_Occurred()) SWIG_fail; | |
8807 | } | |
8808 | resultobj = SWIG_FromInt((int)result); | |
8809 | return resultobj; | |
8810 | fail: | |
8811 | return NULL; | |
8812 | } | |
8813 | ||
8814 | ||
8815 | static PyObject *_wrap_Process_Exists(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8816 | PyObject *resultobj; | |
8817 | int arg1 ; | |
8818 | bool result; | |
8819 | PyObject * obj0 = 0 ; | |
8820 | char *kwnames[] = { | |
8821 | (char *) "pid", NULL | |
8822 | }; | |
8823 | ||
8824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Exists",kwnames,&obj0)) goto fail; | |
8825 | arg1 = (int) SWIG_AsInt(obj0); | |
8826 | if (PyErr_Occurred()) SWIG_fail; | |
8827 | { | |
8828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8829 | result = (bool)wxPyProcess::Exists(arg1); | |
8830 | ||
8831 | wxPyEndAllowThreads(__tstate); | |
8832 | if (PyErr_Occurred()) SWIG_fail; | |
8833 | } | |
8834 | { | |
8835 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8836 | } | |
8837 | return resultobj; | |
8838 | fail: | |
8839 | return NULL; | |
8840 | } | |
8841 | ||
8842 | ||
8843 | static PyObject *_wrap_Process_Open(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8844 | PyObject *resultobj; | |
8845 | wxString *arg1 = 0 ; | |
8846 | int arg2 = (int) wxEXEC_ASYNC ; | |
8847 | wxPyProcess *result; | |
8848 | bool temp1 = False ; | |
8849 | PyObject * obj0 = 0 ; | |
8850 | PyObject * obj1 = 0 ; | |
8851 | char *kwnames[] = { | |
8852 | (char *) "cmd",(char *) "flags", NULL | |
8853 | }; | |
8854 | ||
8855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Open",kwnames,&obj0,&obj1)) goto fail; | |
8856 | { | |
8857 | arg1 = wxString_in_helper(obj0); | |
8858 | if (arg1 == NULL) SWIG_fail; | |
8859 | temp1 = True; | |
8860 | } | |
8861 | if (obj1) { | |
8862 | arg2 = (int) SWIG_AsInt(obj1); | |
8863 | if (PyErr_Occurred()) SWIG_fail; | |
8864 | } | |
8865 | { | |
8866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8867 | result = (wxPyProcess *)wxPyProcess::Open((wxString const &)*arg1,arg2); | |
8868 | ||
8869 | wxPyEndAllowThreads(__tstate); | |
8870 | if (PyErr_Occurred()) SWIG_fail; | |
8871 | } | |
8872 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 0); | |
8873 | { | |
8874 | if (temp1) | |
8875 | delete arg1; | |
8876 | } | |
8877 | return resultobj; | |
8878 | fail: | |
8879 | { | |
8880 | if (temp1) | |
8881 | delete arg1; | |
8882 | } | |
8883 | return NULL; | |
8884 | } | |
8885 | ||
8886 | ||
8887 | static PyObject *_wrap_new_Process(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8888 | PyObject *resultobj; | |
8889 | wxEvtHandler *arg1 = (wxEvtHandler *) NULL ; | |
8890 | int arg2 = (int) -1 ; | |
8891 | wxPyProcess *result; | |
8892 | PyObject * obj0 = 0 ; | |
8893 | PyObject * obj1 = 0 ; | |
8894 | char *kwnames[] = { | |
8895 | (char *) "parent",(char *) "id", NULL | |
8896 | }; | |
8897 | ||
8898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Process",kwnames,&obj0,&obj1)) goto fail; | |
8899 | if (obj0) { | |
8900 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
8901 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8902 | } | |
8903 | if (obj1) { | |
8904 | arg2 = (int) SWIG_AsInt(obj1); | |
8905 | if (PyErr_Occurred()) SWIG_fail; | |
8906 | } | |
8907 | { | |
8908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8909 | result = (wxPyProcess *)new wxPyProcess(arg1,arg2); | |
8910 | ||
8911 | wxPyEndAllowThreads(__tstate); | |
8912 | if (PyErr_Occurred()) SWIG_fail; | |
8913 | } | |
8914 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 1); | |
8915 | return resultobj; | |
8916 | fail: | |
8917 | return NULL; | |
8918 | } | |
8919 | ||
8920 | ||
8921 | static PyObject *_wrap_Process__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8922 | PyObject *resultobj; | |
8923 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8924 | PyObject *arg2 = (PyObject *) 0 ; | |
8925 | PyObject *arg3 = (PyObject *) 0 ; | |
8926 | PyObject * obj0 = 0 ; | |
8927 | PyObject * obj1 = 0 ; | |
8928 | PyObject * obj2 = 0 ; | |
8929 | char *kwnames[] = { | |
8930 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
8931 | }; | |
8932 | ||
8933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8934 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
8935 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8936 | arg2 = obj1; | |
8937 | arg3 = obj2; | |
8938 | { | |
8939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8940 | (arg1)->_setCallbackInfo(arg2,arg3); | |
8941 | ||
8942 | wxPyEndAllowThreads(__tstate); | |
8943 | if (PyErr_Occurred()) SWIG_fail; | |
8944 | } | |
8945 | Py_INCREF(Py_None); resultobj = Py_None; | |
8946 | return resultobj; | |
8947 | fail: | |
8948 | return NULL; | |
8949 | } | |
8950 | ||
8951 | ||
8952 | static PyObject *_wrap_Process_base_OnTerminate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8953 | PyObject *resultobj; | |
8954 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8955 | int arg2 ; | |
8956 | int arg3 ; | |
8957 | PyObject * obj0 = 0 ; | |
8958 | PyObject * obj1 = 0 ; | |
8959 | PyObject * obj2 = 0 ; | |
8960 | char *kwnames[] = { | |
8961 | (char *) "self",(char *) "pid",(char *) "status", NULL | |
8962 | }; | |
8963 | ||
8964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process_base_OnTerminate",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8965 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
8966 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8967 | arg2 = (int) SWIG_AsInt(obj1); | |
8968 | if (PyErr_Occurred()) SWIG_fail; | |
8969 | arg3 = (int) SWIG_AsInt(obj2); | |
8970 | if (PyErr_Occurred()) SWIG_fail; | |
8971 | { | |
8972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8973 | (arg1)->base_OnTerminate(arg2,arg3); | |
8974 | ||
8975 | wxPyEndAllowThreads(__tstate); | |
8976 | if (PyErr_Occurred()) SWIG_fail; | |
8977 | } | |
8978 | Py_INCREF(Py_None); resultobj = Py_None; | |
8979 | return resultobj; | |
8980 | fail: | |
8981 | return NULL; | |
8982 | } | |
8983 | ||
8984 | ||
8985 | static PyObject *_wrap_Process_Redirect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8986 | PyObject *resultobj; | |
8987 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8988 | PyObject * obj0 = 0 ; | |
8989 | char *kwnames[] = { | |
8990 | (char *) "self", NULL | |
8991 | }; | |
8992 | ||
8993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Redirect",kwnames,&obj0)) goto fail; | |
8994 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
8995 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8996 | { | |
8997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8998 | (arg1)->Redirect(); | |
8999 | ||
9000 | wxPyEndAllowThreads(__tstate); | |
9001 | if (PyErr_Occurred()) SWIG_fail; | |
9002 | } | |
9003 | Py_INCREF(Py_None); resultobj = Py_None; | |
9004 | return resultobj; | |
9005 | fail: | |
9006 | return NULL; | |
9007 | } | |
9008 | ||
9009 | ||
9010 | static PyObject *_wrap_Process_IsRedirected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9011 | PyObject *resultobj; | |
9012 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9013 | bool result; | |
9014 | PyObject * obj0 = 0 ; | |
9015 | char *kwnames[] = { | |
9016 | (char *) "self", NULL | |
9017 | }; | |
9018 | ||
9019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsRedirected",kwnames,&obj0)) goto fail; | |
9020 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9021 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9022 | { | |
9023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9024 | result = (bool)(arg1)->IsRedirected(); | |
9025 | ||
9026 | wxPyEndAllowThreads(__tstate); | |
9027 | if (PyErr_Occurred()) SWIG_fail; | |
9028 | } | |
9029 | { | |
9030 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9031 | } | |
9032 | return resultobj; | |
9033 | fail: | |
9034 | return NULL; | |
9035 | } | |
9036 | ||
9037 | ||
9038 | static PyObject *_wrap_Process_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9039 | PyObject *resultobj; | |
9040 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9041 | PyObject * obj0 = 0 ; | |
9042 | char *kwnames[] = { | |
9043 | (char *) "self", NULL | |
9044 | }; | |
9045 | ||
9046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Detach",kwnames,&obj0)) goto fail; | |
9047 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9048 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9049 | { | |
9050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9051 | (arg1)->Detach(); | |
9052 | ||
9053 | wxPyEndAllowThreads(__tstate); | |
9054 | if (PyErr_Occurred()) SWIG_fail; | |
9055 | } | |
9056 | Py_INCREF(Py_None); resultobj = Py_None; | |
9057 | return resultobj; | |
9058 | fail: | |
9059 | return NULL; | |
9060 | } | |
9061 | ||
9062 | ||
9063 | static PyObject *_wrap_Process_GetInputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9064 | PyObject *resultobj; | |
9065 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9066 | wxInputStream *result; | |
9067 | PyObject * obj0 = 0 ; | |
9068 | char *kwnames[] = { | |
9069 | (char *) "self", NULL | |
9070 | }; | |
9071 | ||
9072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetInputStream",kwnames,&obj0)) goto fail; | |
9073 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9074 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9075 | { | |
9076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9077 | result = (wxInputStream *)(arg1)->GetInputStream(); | |
9078 | ||
9079 | wxPyEndAllowThreads(__tstate); | |
9080 | if (PyErr_Occurred()) SWIG_fail; | |
9081 | } | |
9082 | { | |
9083 | wxPyInputStream * _ptr = NULL; | |
9084 | ||
9085 | if (result) { | |
9086 | _ptr = new wxPyInputStream(result); | |
9087 | } | |
9088 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); | |
9089 | } | |
9090 | return resultobj; | |
9091 | fail: | |
9092 | return NULL; | |
9093 | } | |
9094 | ||
9095 | ||
9096 | static PyObject *_wrap_Process_GetErrorStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9097 | PyObject *resultobj; | |
9098 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9099 | wxInputStream *result; | |
9100 | PyObject * obj0 = 0 ; | |
9101 | char *kwnames[] = { | |
9102 | (char *) "self", NULL | |
9103 | }; | |
9104 | ||
9105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetErrorStream",kwnames,&obj0)) goto fail; | |
9106 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9107 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9108 | { | |
9109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9110 | result = (wxInputStream *)(arg1)->GetErrorStream(); | |
9111 | ||
9112 | wxPyEndAllowThreads(__tstate); | |
9113 | if (PyErr_Occurred()) SWIG_fail; | |
9114 | } | |
9115 | { | |
9116 | wxPyInputStream * _ptr = NULL; | |
9117 | ||
9118 | if (result) { | |
9119 | _ptr = new wxPyInputStream(result); | |
9120 | } | |
9121 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); | |
9122 | } | |
9123 | return resultobj; | |
9124 | fail: | |
9125 | return NULL; | |
9126 | } | |
9127 | ||
9128 | ||
9129 | static PyObject *_wrap_Process_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9130 | PyObject *resultobj; | |
9131 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9132 | wxOutputStream *result; | |
9133 | PyObject * obj0 = 0 ; | |
9134 | char *kwnames[] = { | |
9135 | (char *) "self", NULL | |
9136 | }; | |
9137 | ||
9138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetOutputStream",kwnames,&obj0)) goto fail; | |
9139 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9140 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9141 | { | |
9142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9143 | result = (wxOutputStream *)(arg1)->GetOutputStream(); | |
9144 | ||
9145 | wxPyEndAllowThreads(__tstate); | |
9146 | if (PyErr_Occurred()) SWIG_fail; | |
9147 | } | |
9148 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxOutputStream, 0); | |
9149 | return resultobj; | |
9150 | fail: | |
9151 | return NULL; | |
9152 | } | |
9153 | ||
9154 | ||
9155 | static PyObject *_wrap_Process_CloseOutput(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9156 | PyObject *resultobj; | |
9157 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9158 | PyObject * obj0 = 0 ; | |
9159 | char *kwnames[] = { | |
9160 | (char *) "self", NULL | |
9161 | }; | |
9162 | ||
9163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_CloseOutput",kwnames,&obj0)) goto fail; | |
9164 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9165 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9166 | { | |
9167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9168 | (arg1)->CloseOutput(); | |
9169 | ||
9170 | wxPyEndAllowThreads(__tstate); | |
9171 | if (PyErr_Occurred()) SWIG_fail; | |
9172 | } | |
9173 | Py_INCREF(Py_None); resultobj = Py_None; | |
9174 | return resultobj; | |
9175 | fail: | |
9176 | return NULL; | |
9177 | } | |
9178 | ||
9179 | ||
9180 | static PyObject *_wrap_Process_IsInputOpened(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9181 | PyObject *resultobj; | |
9182 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9183 | bool result; | |
9184 | PyObject * obj0 = 0 ; | |
9185 | char *kwnames[] = { | |
9186 | (char *) "self", NULL | |
9187 | }; | |
9188 | ||
9189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputOpened",kwnames,&obj0)) goto fail; | |
9190 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9191 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9192 | { | |
9193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9194 | result = (bool)((wxPyProcess const *)arg1)->IsInputOpened(); | |
9195 | ||
9196 | wxPyEndAllowThreads(__tstate); | |
9197 | if (PyErr_Occurred()) SWIG_fail; | |
9198 | } | |
9199 | { | |
9200 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9201 | } | |
9202 | return resultobj; | |
9203 | fail: | |
9204 | return NULL; | |
9205 | } | |
9206 | ||
9207 | ||
9208 | static PyObject *_wrap_Process_IsInputAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9209 | PyObject *resultobj; | |
9210 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9211 | bool result; | |
9212 | PyObject * obj0 = 0 ; | |
9213 | char *kwnames[] = { | |
9214 | (char *) "self", NULL | |
9215 | }; | |
9216 | ||
9217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputAvailable",kwnames,&obj0)) goto fail; | |
9218 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9220 | { | |
9221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9222 | result = (bool)((wxPyProcess const *)arg1)->IsInputAvailable(); | |
9223 | ||
9224 | wxPyEndAllowThreads(__tstate); | |
9225 | if (PyErr_Occurred()) SWIG_fail; | |
9226 | } | |
9227 | { | |
9228 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9229 | } | |
9230 | return resultobj; | |
9231 | fail: | |
9232 | return NULL; | |
9233 | } | |
9234 | ||
9235 | ||
9236 | static PyObject *_wrap_Process_IsErrorAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9237 | PyObject *resultobj; | |
9238 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9239 | bool result; | |
9240 | PyObject * obj0 = 0 ; | |
9241 | char *kwnames[] = { | |
9242 | (char *) "self", NULL | |
9243 | }; | |
9244 | ||
9245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsErrorAvailable",kwnames,&obj0)) goto fail; | |
9246 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9247 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9248 | { | |
9249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9250 | result = (bool)((wxPyProcess const *)arg1)->IsErrorAvailable(); | |
9251 | ||
9252 | wxPyEndAllowThreads(__tstate); | |
9253 | if (PyErr_Occurred()) SWIG_fail; | |
9254 | } | |
9255 | { | |
9256 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9257 | } | |
9258 | return resultobj; | |
9259 | fail: | |
9260 | return NULL; | |
9261 | } | |
9262 | ||
9263 | ||
9264 | static PyObject * Process_swigregister(PyObject *self, PyObject *args) { | |
9265 | PyObject *obj; | |
9266 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9267 | SWIG_TypeClientData(SWIGTYPE_p_wxPyProcess, obj); | |
9268 | Py_INCREF(obj); | |
9269 | return Py_BuildValue((char *)""); | |
9270 | } | |
9271 | static PyObject *_wrap_new_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9272 | PyObject *resultobj; | |
9273 | int arg1 = (int) 0 ; | |
9274 | int arg2 = (int) 0 ; | |
9275 | int arg3 = (int) 0 ; | |
9276 | wxProcessEvent *result; | |
9277 | PyObject * obj0 = 0 ; | |
9278 | PyObject * obj1 = 0 ; | |
9279 | PyObject * obj2 = 0 ; | |
9280 | char *kwnames[] = { | |
9281 | (char *) "id",(char *) "pid",(char *) "exitcode", NULL | |
9282 | }; | |
9283 | ||
9284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ProcessEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9285 | if (obj0) { | |
9286 | arg1 = (int) SWIG_AsInt(obj0); | |
9287 | if (PyErr_Occurred()) SWIG_fail; | |
9288 | } | |
9289 | if (obj1) { | |
9290 | arg2 = (int) SWIG_AsInt(obj1); | |
9291 | if (PyErr_Occurred()) SWIG_fail; | |
9292 | } | |
9293 | if (obj2) { | |
9294 | arg3 = (int) SWIG_AsInt(obj2); | |
9295 | if (PyErr_Occurred()) SWIG_fail; | |
9296 | } | |
9297 | { | |
9298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9299 | result = (wxProcessEvent *)new wxProcessEvent(arg1,arg2,arg3); | |
9300 | ||
9301 | wxPyEndAllowThreads(__tstate); | |
9302 | if (PyErr_Occurred()) SWIG_fail; | |
9303 | } | |
9304 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxProcessEvent, 1); | |
9305 | return resultobj; | |
9306 | fail: | |
9307 | return NULL; | |
9308 | } | |
9309 | ||
9310 | ||
9311 | static PyObject *_wrap_ProcessEvent_GetPid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9312 | PyObject *resultobj; | |
9313 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9314 | int result; | |
9315 | PyObject * obj0 = 0 ; | |
9316 | char *kwnames[] = { | |
9317 | (char *) "self", NULL | |
9318 | }; | |
9319 | ||
9320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetPid",kwnames,&obj0)) goto fail; | |
9321 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, | |
9322 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9323 | { | |
9324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9325 | result = (int)(arg1)->GetPid(); | |
9326 | ||
9327 | wxPyEndAllowThreads(__tstate); | |
9328 | if (PyErr_Occurred()) SWIG_fail; | |
9329 | } | |
9330 | resultobj = SWIG_FromInt((int)result); | |
9331 | return resultobj; | |
9332 | fail: | |
9333 | return NULL; | |
9334 | } | |
9335 | ||
9336 | ||
9337 | static PyObject *_wrap_ProcessEvent_GetExitCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9338 | PyObject *resultobj; | |
9339 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9340 | int result; | |
9341 | PyObject * obj0 = 0 ; | |
9342 | char *kwnames[] = { | |
9343 | (char *) "self", NULL | |
9344 | }; | |
9345 | ||
9346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetExitCode",kwnames,&obj0)) goto fail; | |
9347 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, | |
9348 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9349 | { | |
9350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9351 | result = (int)(arg1)->GetExitCode(); | |
9352 | ||
9353 | wxPyEndAllowThreads(__tstate); | |
9354 | if (PyErr_Occurred()) SWIG_fail; | |
9355 | } | |
9356 | resultobj = SWIG_FromInt((int)result); | |
9357 | return resultobj; | |
9358 | fail: | |
9359 | return NULL; | |
9360 | } | |
9361 | ||
9362 | ||
9363 | static PyObject *_wrap_ProcessEvent_m_pid_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9364 | PyObject *resultobj; | |
9365 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9366 | int arg2 ; | |
9367 | PyObject * obj0 = 0 ; | |
9368 | PyObject * obj1 = 0 ; | |
9369 | char *kwnames[] = { | |
9370 | (char *) "self",(char *) "m_pid", NULL | |
9371 | }; | |
9372 | ||
9373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_pid_set",kwnames,&obj0,&obj1)) goto fail; | |
9374 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, | |
9375 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9376 | arg2 = (int) SWIG_AsInt(obj1); | |
9377 | if (PyErr_Occurred()) SWIG_fail; | |
9378 | if (arg1) (arg1)->m_pid = arg2; | |
9379 | ||
9380 | Py_INCREF(Py_None); resultobj = Py_None; | |
9381 | return resultobj; | |
9382 | fail: | |
9383 | return NULL; | |
9384 | } | |
9385 | ||
9386 | ||
9387 | static PyObject *_wrap_ProcessEvent_m_pid_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9388 | PyObject *resultobj; | |
9389 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9390 | int result; | |
9391 | PyObject * obj0 = 0 ; | |
9392 | char *kwnames[] = { | |
9393 | (char *) "self", NULL | |
9394 | }; | |
9395 | ||
9396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_pid_get",kwnames,&obj0)) goto fail; | |
9397 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, | |
9398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9399 | result = (int) ((arg1)->m_pid); | |
9400 | ||
9401 | resultobj = SWIG_FromInt((int)result); | |
9402 | return resultobj; | |
9403 | fail: | |
9404 | return NULL; | |
9405 | } | |
9406 | ||
9407 | ||
9408 | static PyObject *_wrap_ProcessEvent_m_exitcode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9409 | PyObject *resultobj; | |
9410 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9411 | int arg2 ; | |
9412 | PyObject * obj0 = 0 ; | |
9413 | PyObject * obj1 = 0 ; | |
9414 | char *kwnames[] = { | |
9415 | (char *) "self",(char *) "m_exitcode", NULL | |
9416 | }; | |
9417 | ||
9418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_exitcode_set",kwnames,&obj0,&obj1)) goto fail; | |
9419 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, | |
9420 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9421 | arg2 = (int) SWIG_AsInt(obj1); | |
9422 | if (PyErr_Occurred()) SWIG_fail; | |
9423 | if (arg1) (arg1)->m_exitcode = arg2; | |
9424 | ||
9425 | Py_INCREF(Py_None); resultobj = Py_None; | |
9426 | return resultobj; | |
9427 | fail: | |
9428 | return NULL; | |
9429 | } | |
9430 | ||
9431 | ||
9432 | static PyObject *_wrap_ProcessEvent_m_exitcode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9433 | PyObject *resultobj; | |
9434 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9435 | int result; | |
9436 | PyObject * obj0 = 0 ; | |
9437 | char *kwnames[] = { | |
9438 | (char *) "self", NULL | |
9439 | }; | |
9440 | ||
9441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_exitcode_get",kwnames,&obj0)) goto fail; | |
9442 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, | |
9443 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9444 | result = (int) ((arg1)->m_exitcode); | |
9445 | ||
9446 | resultobj = SWIG_FromInt((int)result); | |
9447 | return resultobj; | |
9448 | fail: | |
9449 | return NULL; | |
9450 | } | |
9451 | ||
9452 | ||
9453 | static PyObject * ProcessEvent_swigregister(PyObject *self, PyObject *args) { | |
9454 | PyObject *obj; | |
9455 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9456 | SWIG_TypeClientData(SWIGTYPE_p_wxProcessEvent, obj); | |
9457 | Py_INCREF(obj); | |
9458 | return Py_BuildValue((char *)""); | |
9459 | } | |
9460 | static PyObject *_wrap_Execute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9461 | PyObject *resultobj; | |
9462 | wxString *arg1 = 0 ; | |
9463 | int arg2 = (int) wxEXEC_ASYNC ; | |
9464 | wxPyProcess *arg3 = (wxPyProcess *) NULL ; | |
9465 | long result; | |
9466 | bool temp1 = False ; | |
9467 | PyObject * obj0 = 0 ; | |
9468 | PyObject * obj1 = 0 ; | |
9469 | PyObject * obj2 = 0 ; | |
9470 | char *kwnames[] = { | |
9471 | (char *) "command",(char *) "flags",(char *) "process", NULL | |
9472 | }; | |
9473 | ||
9474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Execute",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9475 | { | |
9476 | arg1 = wxString_in_helper(obj0); | |
9477 | if (arg1 == NULL) SWIG_fail; | |
9478 | temp1 = True; | |
9479 | } | |
9480 | if (obj1) { | |
9481 | arg2 = (int) SWIG_AsInt(obj1); | |
9482 | if (PyErr_Occurred()) SWIG_fail; | |
9483 | } | |
9484 | if (obj2) { | |
9485 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyProcess, | |
9486 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9487 | } | |
9488 | { | |
9489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9490 | result = (long)wxExecute((wxString const &)*arg1,arg2,arg3); | |
9491 | ||
9492 | wxPyEndAllowThreads(__tstate); | |
9493 | if (PyErr_Occurred()) SWIG_fail; | |
9494 | } | |
9495 | resultobj = SWIG_FromLong((long)result); | |
9496 | { | |
9497 | if (temp1) | |
9498 | delete arg1; | |
9499 | } | |
9500 | return resultobj; | |
9501 | fail: | |
9502 | { | |
9503 | if (temp1) | |
9504 | delete arg1; | |
9505 | } | |
9506 | return NULL; | |
9507 | } | |
9508 | ||
9509 | ||
9510 | static PyObject *_wrap_new_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9511 | PyObject *resultobj; | |
9512 | int arg1 = (int) wxJOYSTICK1 ; | |
9513 | wxJoystick *result; | |
9514 | PyObject * obj0 = 0 ; | |
9515 | char *kwnames[] = { | |
9516 | (char *) "joystick", NULL | |
9517 | }; | |
9518 | ||
9519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Joystick",kwnames,&obj0)) goto fail; | |
9520 | if (obj0) { | |
9521 | arg1 = (int) SWIG_AsInt(obj0); | |
9522 | if (PyErr_Occurred()) SWIG_fail; | |
9523 | } | |
9524 | { | |
9525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9526 | result = (wxJoystick *)new wxJoystick(arg1); | |
9527 | ||
9528 | wxPyEndAllowThreads(__tstate); | |
9529 | if (PyErr_Occurred()) SWIG_fail; | |
9530 | } | |
9531 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystick, 1); | |
9532 | return resultobj; | |
9533 | fail: | |
9534 | return NULL; | |
9535 | } | |
9536 | ||
9537 | ||
9538 | static PyObject *_wrap_delete_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9539 | PyObject *resultobj; | |
9540 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9541 | PyObject * obj0 = 0 ; | |
9542 | char *kwnames[] = { | |
9543 | (char *) "self", NULL | |
9544 | }; | |
9545 | ||
9546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Joystick",kwnames,&obj0)) goto fail; | |
9547 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9548 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9549 | { | |
9550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9551 | delete arg1; | |
9552 | ||
9553 | wxPyEndAllowThreads(__tstate); | |
9554 | if (PyErr_Occurred()) SWIG_fail; | |
9555 | } | |
9556 | Py_INCREF(Py_None); resultobj = Py_None; | |
9557 | return resultobj; | |
9558 | fail: | |
9559 | return NULL; | |
9560 | } | |
9561 | ||
9562 | ||
9563 | static PyObject *_wrap_Joystick_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9564 | PyObject *resultobj; | |
9565 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9566 | wxPoint result; | |
9567 | PyObject * obj0 = 0 ; | |
9568 | char *kwnames[] = { | |
9569 | (char *) "self", NULL | |
9570 | }; | |
9571 | ||
9572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPosition",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 = (arg1)->GetPosition(); | |
9578 | ||
9579 | wxPyEndAllowThreads(__tstate); | |
9580 | if (PyErr_Occurred()) SWIG_fail; | |
9581 | } | |
9582 | { | |
9583 | wxPoint * resultptr; | |
9584 | resultptr = new wxPoint((wxPoint &) result); | |
9585 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
9586 | } | |
9587 | return resultobj; | |
9588 | fail: | |
9589 | return NULL; | |
9590 | } | |
9591 | ||
9592 | ||
9593 | static PyObject *_wrap_Joystick_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9594 | PyObject *resultobj; | |
9595 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9596 | int result; | |
9597 | PyObject * obj0 = 0 ; | |
9598 | char *kwnames[] = { | |
9599 | (char *) "self", NULL | |
9600 | }; | |
9601 | ||
9602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZPosition",kwnames,&obj0)) goto fail; | |
9603 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9604 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9605 | { | |
9606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9607 | result = (int)(arg1)->GetZPosition(); | |
9608 | ||
9609 | wxPyEndAllowThreads(__tstate); | |
9610 | if (PyErr_Occurred()) SWIG_fail; | |
9611 | } | |
9612 | resultobj = SWIG_FromInt((int)result); | |
9613 | return resultobj; | |
9614 | fail: | |
9615 | return NULL; | |
9616 | } | |
9617 | ||
9618 | ||
9619 | static PyObject *_wrap_Joystick_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9620 | PyObject *resultobj; | |
9621 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9622 | int result; | |
9623 | PyObject * obj0 = 0 ; | |
9624 | char *kwnames[] = { | |
9625 | (char *) "self", NULL | |
9626 | }; | |
9627 | ||
9628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetButtonState",kwnames,&obj0)) goto fail; | |
9629 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9630 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9631 | { | |
9632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9633 | result = (int)(arg1)->GetButtonState(); | |
9634 | ||
9635 | wxPyEndAllowThreads(__tstate); | |
9636 | if (PyErr_Occurred()) SWIG_fail; | |
9637 | } | |
9638 | resultobj = SWIG_FromInt((int)result); | |
9639 | return resultobj; | |
9640 | fail: | |
9641 | return NULL; | |
9642 | } | |
9643 | ||
9644 | ||
9645 | static PyObject *_wrap_Joystick_GetPOVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9646 | PyObject *resultobj; | |
9647 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9648 | int result; | |
9649 | PyObject * obj0 = 0 ; | |
9650 | char *kwnames[] = { | |
9651 | (char *) "self", NULL | |
9652 | }; | |
9653 | ||
9654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVPosition",kwnames,&obj0)) goto fail; | |
9655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9657 | { | |
9658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9659 | result = (int)(arg1)->GetPOVPosition(); | |
9660 | ||
9661 | wxPyEndAllowThreads(__tstate); | |
9662 | if (PyErr_Occurred()) SWIG_fail; | |
9663 | } | |
9664 | resultobj = SWIG_FromInt((int)result); | |
9665 | return resultobj; | |
9666 | fail: | |
9667 | return NULL; | |
9668 | } | |
9669 | ||
9670 | ||
9671 | static PyObject *_wrap_Joystick_GetPOVCTSPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9672 | PyObject *resultobj; | |
9673 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9674 | int result; | |
9675 | PyObject * obj0 = 0 ; | |
9676 | char *kwnames[] = { | |
9677 | (char *) "self", NULL | |
9678 | }; | |
9679 | ||
9680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVCTSPosition",kwnames,&obj0)) goto fail; | |
9681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9683 | { | |
9684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9685 | result = (int)(arg1)->GetPOVCTSPosition(); | |
9686 | ||
9687 | wxPyEndAllowThreads(__tstate); | |
9688 | if (PyErr_Occurred()) SWIG_fail; | |
9689 | } | |
9690 | resultobj = SWIG_FromInt((int)result); | |
9691 | return resultobj; | |
9692 | fail: | |
9693 | return NULL; | |
9694 | } | |
9695 | ||
9696 | ||
9697 | static PyObject *_wrap_Joystick_GetRudderPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9698 | PyObject *resultobj; | |
9699 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9700 | int result; | |
9701 | PyObject * obj0 = 0 ; | |
9702 | char *kwnames[] = { | |
9703 | (char *) "self", NULL | |
9704 | }; | |
9705 | ||
9706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderPosition",kwnames,&obj0)) goto fail; | |
9707 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9708 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9709 | { | |
9710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9711 | result = (int)(arg1)->GetRudderPosition(); | |
9712 | ||
9713 | wxPyEndAllowThreads(__tstate); | |
9714 | if (PyErr_Occurred()) SWIG_fail; | |
9715 | } | |
9716 | resultobj = SWIG_FromInt((int)result); | |
9717 | return resultobj; | |
9718 | fail: | |
9719 | return NULL; | |
9720 | } | |
9721 | ||
9722 | ||
9723 | static PyObject *_wrap_Joystick_GetUPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9724 | PyObject *resultobj; | |
9725 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9726 | int result; | |
9727 | PyObject * obj0 = 0 ; | |
9728 | char *kwnames[] = { | |
9729 | (char *) "self", NULL | |
9730 | }; | |
9731 | ||
9732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUPosition",kwnames,&obj0)) goto fail; | |
9733 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9734 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9735 | { | |
9736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9737 | result = (int)(arg1)->GetUPosition(); | |
9738 | ||
9739 | wxPyEndAllowThreads(__tstate); | |
9740 | if (PyErr_Occurred()) SWIG_fail; | |
9741 | } | |
9742 | resultobj = SWIG_FromInt((int)result); | |
9743 | return resultobj; | |
9744 | fail: | |
9745 | return NULL; | |
9746 | } | |
9747 | ||
9748 | ||
9749 | static PyObject *_wrap_Joystick_GetVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9750 | PyObject *resultobj; | |
9751 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9752 | int result; | |
9753 | PyObject * obj0 = 0 ; | |
9754 | char *kwnames[] = { | |
9755 | (char *) "self", NULL | |
9756 | }; | |
9757 | ||
9758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVPosition",kwnames,&obj0)) goto fail; | |
9759 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9760 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9761 | { | |
9762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9763 | result = (int)(arg1)->GetVPosition(); | |
9764 | ||
9765 | wxPyEndAllowThreads(__tstate); | |
9766 | if (PyErr_Occurred()) SWIG_fail; | |
9767 | } | |
9768 | resultobj = SWIG_FromInt((int)result); | |
9769 | return resultobj; | |
9770 | fail: | |
9771 | return NULL; | |
9772 | } | |
9773 | ||
9774 | ||
9775 | static PyObject *_wrap_Joystick_GetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9776 | PyObject *resultobj; | |
9777 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9778 | int result; | |
9779 | PyObject * obj0 = 0 ; | |
9780 | char *kwnames[] = { | |
9781 | (char *) "self", NULL | |
9782 | }; | |
9783 | ||
9784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMovementThreshold",kwnames,&obj0)) goto fail; | |
9785 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9786 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9787 | { | |
9788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9789 | result = (int)(arg1)->GetMovementThreshold(); | |
9790 | ||
9791 | wxPyEndAllowThreads(__tstate); | |
9792 | if (PyErr_Occurred()) SWIG_fail; | |
9793 | } | |
9794 | resultobj = SWIG_FromInt((int)result); | |
9795 | return resultobj; | |
9796 | fail: | |
9797 | return NULL; | |
9798 | } | |
9799 | ||
9800 | ||
9801 | static PyObject *_wrap_Joystick_SetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9802 | PyObject *resultobj; | |
9803 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9804 | int arg2 ; | |
9805 | PyObject * obj0 = 0 ; | |
9806 | PyObject * obj1 = 0 ; | |
9807 | char *kwnames[] = { | |
9808 | (char *) "self",(char *) "threshold", NULL | |
9809 | }; | |
9810 | ||
9811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Joystick_SetMovementThreshold",kwnames,&obj0,&obj1)) goto fail; | |
9812 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9813 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9814 | arg2 = (int) SWIG_AsInt(obj1); | |
9815 | if (PyErr_Occurred()) SWIG_fail; | |
9816 | { | |
9817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9818 | (arg1)->SetMovementThreshold(arg2); | |
9819 | ||
9820 | wxPyEndAllowThreads(__tstate); | |
9821 | if (PyErr_Occurred()) SWIG_fail; | |
9822 | } | |
9823 | Py_INCREF(Py_None); resultobj = Py_None; | |
9824 | return resultobj; | |
9825 | fail: | |
9826 | return NULL; | |
9827 | } | |
9828 | ||
9829 | ||
9830 | static PyObject *_wrap_Joystick_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9831 | PyObject *resultobj; | |
9832 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9833 | bool result; | |
9834 | PyObject * obj0 = 0 ; | |
9835 | char *kwnames[] = { | |
9836 | (char *) "self", NULL | |
9837 | }; | |
9838 | ||
9839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_IsOk",kwnames,&obj0)) goto fail; | |
9840 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9841 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9842 | { | |
9843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9844 | result = (bool)(arg1)->IsOk(); | |
9845 | ||
9846 | wxPyEndAllowThreads(__tstate); | |
9847 | if (PyErr_Occurred()) SWIG_fail; | |
9848 | } | |
9849 | { | |
9850 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9851 | } | |
9852 | return resultobj; | |
9853 | fail: | |
9854 | return NULL; | |
9855 | } | |
9856 | ||
9857 | ||
9858 | static PyObject *_wrap_Joystick_GetNumberJoysticks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9859 | PyObject *resultobj; | |
9860 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9861 | int result; | |
9862 | PyObject * obj0 = 0 ; | |
9863 | char *kwnames[] = { | |
9864 | (char *) "self", NULL | |
9865 | }; | |
9866 | ||
9867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberJoysticks",kwnames,&obj0)) goto fail; | |
9868 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9869 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9870 | { | |
9871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9872 | result = (int)(arg1)->GetNumberJoysticks(); | |
9873 | ||
9874 | wxPyEndAllowThreads(__tstate); | |
9875 | if (PyErr_Occurred()) SWIG_fail; | |
9876 | } | |
9877 | resultobj = SWIG_FromInt((int)result); | |
9878 | return resultobj; | |
9879 | fail: | |
9880 | return NULL; | |
9881 | } | |
9882 | ||
9883 | ||
9884 | static PyObject *_wrap_Joystick_GetManufacturerId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9885 | PyObject *resultobj; | |
9886 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9887 | int result; | |
9888 | PyObject * obj0 = 0 ; | |
9889 | char *kwnames[] = { | |
9890 | (char *) "self", NULL | |
9891 | }; | |
9892 | ||
9893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetManufacturerId",kwnames,&obj0)) goto fail; | |
9894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9896 | { | |
9897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9898 | result = (int)(arg1)->GetManufacturerId(); | |
9899 | ||
9900 | wxPyEndAllowThreads(__tstate); | |
9901 | if (PyErr_Occurred()) SWIG_fail; | |
9902 | } | |
9903 | resultobj = SWIG_FromInt((int)result); | |
9904 | return resultobj; | |
9905 | fail: | |
9906 | return NULL; | |
9907 | } | |
9908 | ||
9909 | ||
9910 | static PyObject *_wrap_Joystick_GetProductId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9911 | PyObject *resultobj; | |
9912 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9913 | int result; | |
9914 | PyObject * obj0 = 0 ; | |
9915 | char *kwnames[] = { | |
9916 | (char *) "self", NULL | |
9917 | }; | |
9918 | ||
9919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductId",kwnames,&obj0)) goto fail; | |
9920 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9921 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9922 | { | |
9923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9924 | result = (int)(arg1)->GetProductId(); | |
9925 | ||
9926 | wxPyEndAllowThreads(__tstate); | |
9927 | if (PyErr_Occurred()) SWIG_fail; | |
9928 | } | |
9929 | resultobj = SWIG_FromInt((int)result); | |
9930 | return resultobj; | |
9931 | fail: | |
9932 | return NULL; | |
9933 | } | |
9934 | ||
9935 | ||
9936 | static PyObject *_wrap_Joystick_GetProductName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9937 | PyObject *resultobj; | |
9938 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9939 | wxString result; | |
9940 | PyObject * obj0 = 0 ; | |
9941 | char *kwnames[] = { | |
9942 | (char *) "self", NULL | |
9943 | }; | |
9944 | ||
9945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductName",kwnames,&obj0)) goto fail; | |
9946 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9947 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9948 | { | |
9949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9950 | result = (arg1)->GetProductName(); | |
9951 | ||
9952 | wxPyEndAllowThreads(__tstate); | |
9953 | if (PyErr_Occurred()) SWIG_fail; | |
9954 | } | |
9955 | { | |
9956 | #if wxUSE_UNICODE | |
9957 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9958 | #else | |
9959 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9960 | #endif | |
9961 | } | |
9962 | return resultobj; | |
9963 | fail: | |
9964 | return NULL; | |
9965 | } | |
9966 | ||
9967 | ||
9968 | static PyObject *_wrap_Joystick_GetXMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9969 | PyObject *resultobj; | |
9970 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9971 | int result; | |
9972 | PyObject * obj0 = 0 ; | |
9973 | char *kwnames[] = { | |
9974 | (char *) "self", NULL | |
9975 | }; | |
9976 | ||
9977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMin",kwnames,&obj0)) goto fail; | |
9978 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9979 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9980 | { | |
9981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9982 | result = (int)(arg1)->GetXMin(); | |
9983 | ||
9984 | wxPyEndAllowThreads(__tstate); | |
9985 | if (PyErr_Occurred()) SWIG_fail; | |
9986 | } | |
9987 | resultobj = SWIG_FromInt((int)result); | |
9988 | return resultobj; | |
9989 | fail: | |
9990 | return NULL; | |
9991 | } | |
9992 | ||
9993 | ||
9994 | static PyObject *_wrap_Joystick_GetYMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9995 | PyObject *resultobj; | |
9996 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9997 | int result; | |
9998 | PyObject * obj0 = 0 ; | |
9999 | char *kwnames[] = { | |
10000 | (char *) "self", NULL | |
10001 | }; | |
10002 | ||
10003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMin",kwnames,&obj0)) goto fail; | |
10004 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10005 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10006 | { | |
10007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10008 | result = (int)(arg1)->GetYMin(); | |
10009 | ||
10010 | wxPyEndAllowThreads(__tstate); | |
10011 | if (PyErr_Occurred()) SWIG_fail; | |
10012 | } | |
10013 | resultobj = SWIG_FromInt((int)result); | |
10014 | return resultobj; | |
10015 | fail: | |
10016 | return NULL; | |
10017 | } | |
10018 | ||
10019 | ||
10020 | static PyObject *_wrap_Joystick_GetZMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10021 | PyObject *resultobj; | |
10022 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10023 | int result; | |
10024 | PyObject * obj0 = 0 ; | |
10025 | char *kwnames[] = { | |
10026 | (char *) "self", NULL | |
10027 | }; | |
10028 | ||
10029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMin",kwnames,&obj0)) goto fail; | |
10030 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10031 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10032 | { | |
10033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10034 | result = (int)(arg1)->GetZMin(); | |
10035 | ||
10036 | wxPyEndAllowThreads(__tstate); | |
10037 | if (PyErr_Occurred()) SWIG_fail; | |
10038 | } | |
10039 | resultobj = SWIG_FromInt((int)result); | |
10040 | return resultobj; | |
10041 | fail: | |
10042 | return NULL; | |
10043 | } | |
10044 | ||
10045 | ||
10046 | static PyObject *_wrap_Joystick_GetXMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10047 | PyObject *resultobj; | |
10048 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10049 | int result; | |
10050 | PyObject * obj0 = 0 ; | |
10051 | char *kwnames[] = { | |
10052 | (char *) "self", NULL | |
10053 | }; | |
10054 | ||
10055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMax",kwnames,&obj0)) goto fail; | |
10056 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10057 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10058 | { | |
10059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10060 | result = (int)(arg1)->GetXMax(); | |
10061 | ||
10062 | wxPyEndAllowThreads(__tstate); | |
10063 | if (PyErr_Occurred()) SWIG_fail; | |
10064 | } | |
10065 | resultobj = SWIG_FromInt((int)result); | |
10066 | return resultobj; | |
10067 | fail: | |
10068 | return NULL; | |
10069 | } | |
10070 | ||
10071 | ||
10072 | static PyObject *_wrap_Joystick_GetYMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10073 | PyObject *resultobj; | |
10074 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10075 | int result; | |
10076 | PyObject * obj0 = 0 ; | |
10077 | char *kwnames[] = { | |
10078 | (char *) "self", NULL | |
10079 | }; | |
10080 | ||
10081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMax",kwnames,&obj0)) goto fail; | |
10082 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10083 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10084 | { | |
10085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10086 | result = (int)(arg1)->GetYMax(); | |
10087 | ||
10088 | wxPyEndAllowThreads(__tstate); | |
10089 | if (PyErr_Occurred()) SWIG_fail; | |
10090 | } | |
10091 | resultobj = SWIG_FromInt((int)result); | |
10092 | return resultobj; | |
10093 | fail: | |
10094 | return NULL; | |
10095 | } | |
10096 | ||
10097 | ||
10098 | static PyObject *_wrap_Joystick_GetZMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10099 | PyObject *resultobj; | |
10100 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10101 | int result; | |
10102 | PyObject * obj0 = 0 ; | |
10103 | char *kwnames[] = { | |
10104 | (char *) "self", NULL | |
10105 | }; | |
10106 | ||
10107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMax",kwnames,&obj0)) goto fail; | |
10108 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10109 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10110 | { | |
10111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10112 | result = (int)(arg1)->GetZMax(); | |
10113 | ||
10114 | wxPyEndAllowThreads(__tstate); | |
10115 | if (PyErr_Occurred()) SWIG_fail; | |
10116 | } | |
10117 | resultobj = SWIG_FromInt((int)result); | |
10118 | return resultobj; | |
10119 | fail: | |
10120 | return NULL; | |
10121 | } | |
10122 | ||
10123 | ||
10124 | static PyObject *_wrap_Joystick_GetNumberButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10125 | PyObject *resultobj; | |
10126 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10127 | int result; | |
10128 | PyObject * obj0 = 0 ; | |
10129 | char *kwnames[] = { | |
10130 | (char *) "self", NULL | |
10131 | }; | |
10132 | ||
10133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberButtons",kwnames,&obj0)) goto fail; | |
10134 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10135 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10136 | { | |
10137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10138 | result = (int)(arg1)->GetNumberButtons(); | |
10139 | ||
10140 | wxPyEndAllowThreads(__tstate); | |
10141 | if (PyErr_Occurred()) SWIG_fail; | |
10142 | } | |
10143 | resultobj = SWIG_FromInt((int)result); | |
10144 | return resultobj; | |
10145 | fail: | |
10146 | return NULL; | |
10147 | } | |
10148 | ||
10149 | ||
10150 | static PyObject *_wrap_Joystick_GetNumberAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10151 | PyObject *resultobj; | |
10152 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10153 | int result; | |
10154 | PyObject * obj0 = 0 ; | |
10155 | char *kwnames[] = { | |
10156 | (char *) "self", NULL | |
10157 | }; | |
10158 | ||
10159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberAxes",kwnames,&obj0)) goto fail; | |
10160 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10161 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10162 | { | |
10163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10164 | result = (int)(arg1)->GetNumberAxes(); | |
10165 | ||
10166 | wxPyEndAllowThreads(__tstate); | |
10167 | if (PyErr_Occurred()) SWIG_fail; | |
10168 | } | |
10169 | resultobj = SWIG_FromInt((int)result); | |
10170 | return resultobj; | |
10171 | fail: | |
10172 | return NULL; | |
10173 | } | |
10174 | ||
10175 | ||
10176 | static PyObject *_wrap_Joystick_GetMaxButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10177 | PyObject *resultobj; | |
10178 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10179 | int result; | |
10180 | PyObject * obj0 = 0 ; | |
10181 | char *kwnames[] = { | |
10182 | (char *) "self", NULL | |
10183 | }; | |
10184 | ||
10185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxButtons",kwnames,&obj0)) goto fail; | |
10186 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10187 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10188 | { | |
10189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10190 | result = (int)(arg1)->GetMaxButtons(); | |
10191 | ||
10192 | wxPyEndAllowThreads(__tstate); | |
10193 | if (PyErr_Occurred()) SWIG_fail; | |
10194 | } | |
10195 | resultobj = SWIG_FromInt((int)result); | |
10196 | return resultobj; | |
10197 | fail: | |
10198 | return NULL; | |
10199 | } | |
10200 | ||
10201 | ||
10202 | static PyObject *_wrap_Joystick_GetMaxAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10203 | PyObject *resultobj; | |
10204 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10205 | int result; | |
10206 | PyObject * obj0 = 0 ; | |
10207 | char *kwnames[] = { | |
10208 | (char *) "self", NULL | |
10209 | }; | |
10210 | ||
10211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxAxes",kwnames,&obj0)) goto fail; | |
10212 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10213 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10214 | { | |
10215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10216 | result = (int)(arg1)->GetMaxAxes(); | |
10217 | ||
10218 | wxPyEndAllowThreads(__tstate); | |
10219 | if (PyErr_Occurred()) SWIG_fail; | |
10220 | } | |
10221 | resultobj = SWIG_FromInt((int)result); | |
10222 | return resultobj; | |
10223 | fail: | |
10224 | return NULL; | |
10225 | } | |
10226 | ||
10227 | ||
10228 | static PyObject *_wrap_Joystick_GetPollingMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10229 | PyObject *resultobj; | |
10230 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10231 | int result; | |
10232 | PyObject * obj0 = 0 ; | |
10233 | char *kwnames[] = { | |
10234 | (char *) "self", NULL | |
10235 | }; | |
10236 | ||
10237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMin",kwnames,&obj0)) goto fail; | |
10238 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10239 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10240 | { | |
10241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10242 | result = (int)(arg1)->GetPollingMin(); | |
10243 | ||
10244 | wxPyEndAllowThreads(__tstate); | |
10245 | if (PyErr_Occurred()) SWIG_fail; | |
10246 | } | |
10247 | resultobj = SWIG_FromInt((int)result); | |
10248 | return resultobj; | |
10249 | fail: | |
10250 | return NULL; | |
10251 | } | |
10252 | ||
10253 | ||
10254 | static PyObject *_wrap_Joystick_GetPollingMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10255 | PyObject *resultobj; | |
10256 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10257 | int result; | |
10258 | PyObject * obj0 = 0 ; | |
10259 | char *kwnames[] = { | |
10260 | (char *) "self", NULL | |
10261 | }; | |
10262 | ||
10263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMax",kwnames,&obj0)) goto fail; | |
10264 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10265 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10266 | { | |
10267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10268 | result = (int)(arg1)->GetPollingMax(); | |
10269 | ||
10270 | wxPyEndAllowThreads(__tstate); | |
10271 | if (PyErr_Occurred()) SWIG_fail; | |
10272 | } | |
10273 | resultobj = SWIG_FromInt((int)result); | |
10274 | return resultobj; | |
10275 | fail: | |
10276 | return NULL; | |
10277 | } | |
10278 | ||
10279 | ||
10280 | static PyObject *_wrap_Joystick_GetRudderMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10281 | PyObject *resultobj; | |
10282 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10283 | int result; | |
10284 | PyObject * obj0 = 0 ; | |
10285 | char *kwnames[] = { | |
10286 | (char *) "self", NULL | |
10287 | }; | |
10288 | ||
10289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMin",kwnames,&obj0)) goto fail; | |
10290 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10292 | { | |
10293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10294 | result = (int)(arg1)->GetRudderMin(); | |
10295 | ||
10296 | wxPyEndAllowThreads(__tstate); | |
10297 | if (PyErr_Occurred()) SWIG_fail; | |
10298 | } | |
10299 | resultobj = SWIG_FromInt((int)result); | |
10300 | return resultobj; | |
10301 | fail: | |
10302 | return NULL; | |
10303 | } | |
10304 | ||
10305 | ||
10306 | static PyObject *_wrap_Joystick_GetRudderMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10307 | PyObject *resultobj; | |
10308 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10309 | int result; | |
10310 | PyObject * obj0 = 0 ; | |
10311 | char *kwnames[] = { | |
10312 | (char *) "self", NULL | |
10313 | }; | |
10314 | ||
10315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMax",kwnames,&obj0)) goto fail; | |
10316 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10317 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10318 | { | |
10319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10320 | result = (int)(arg1)->GetRudderMax(); | |
10321 | ||
10322 | wxPyEndAllowThreads(__tstate); | |
10323 | if (PyErr_Occurred()) SWIG_fail; | |
10324 | } | |
10325 | resultobj = SWIG_FromInt((int)result); | |
10326 | return resultobj; | |
10327 | fail: | |
10328 | return NULL; | |
10329 | } | |
10330 | ||
10331 | ||
10332 | static PyObject *_wrap_Joystick_GetUMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10333 | PyObject *resultobj; | |
10334 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10335 | int result; | |
10336 | PyObject * obj0 = 0 ; | |
10337 | char *kwnames[] = { | |
10338 | (char *) "self", NULL | |
10339 | }; | |
10340 | ||
10341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMin",kwnames,&obj0)) goto fail; | |
10342 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10343 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10344 | { | |
10345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10346 | result = (int)(arg1)->GetUMin(); | |
10347 | ||
10348 | wxPyEndAllowThreads(__tstate); | |
10349 | if (PyErr_Occurred()) SWIG_fail; | |
10350 | } | |
10351 | resultobj = SWIG_FromInt((int)result); | |
10352 | return resultobj; | |
10353 | fail: | |
10354 | return NULL; | |
10355 | } | |
10356 | ||
10357 | ||
10358 | static PyObject *_wrap_Joystick_GetUMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10359 | PyObject *resultobj; | |
10360 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10361 | int result; | |
10362 | PyObject * obj0 = 0 ; | |
10363 | char *kwnames[] = { | |
10364 | (char *) "self", NULL | |
10365 | }; | |
10366 | ||
10367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMax",kwnames,&obj0)) goto fail; | |
10368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10370 | { | |
10371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10372 | result = (int)(arg1)->GetUMax(); | |
10373 | ||
10374 | wxPyEndAllowThreads(__tstate); | |
10375 | if (PyErr_Occurred()) SWIG_fail; | |
10376 | } | |
10377 | resultobj = SWIG_FromInt((int)result); | |
10378 | return resultobj; | |
10379 | fail: | |
10380 | return NULL; | |
10381 | } | |
10382 | ||
10383 | ||
10384 | static PyObject *_wrap_Joystick_GetVMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10385 | PyObject *resultobj; | |
10386 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10387 | int result; | |
10388 | PyObject * obj0 = 0 ; | |
10389 | char *kwnames[] = { | |
10390 | (char *) "self", NULL | |
10391 | }; | |
10392 | ||
10393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMin",kwnames,&obj0)) goto fail; | |
10394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10396 | { | |
10397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10398 | result = (int)(arg1)->GetVMin(); | |
10399 | ||
10400 | wxPyEndAllowThreads(__tstate); | |
10401 | if (PyErr_Occurred()) SWIG_fail; | |
10402 | } | |
10403 | resultobj = SWIG_FromInt((int)result); | |
10404 | return resultobj; | |
10405 | fail: | |
10406 | return NULL; | |
10407 | } | |
10408 | ||
10409 | ||
10410 | static PyObject *_wrap_Joystick_GetVMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10411 | PyObject *resultobj; | |
10412 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10413 | int result; | |
10414 | PyObject * obj0 = 0 ; | |
10415 | char *kwnames[] = { | |
10416 | (char *) "self", NULL | |
10417 | }; | |
10418 | ||
10419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMax",kwnames,&obj0)) goto fail; | |
10420 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10421 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10422 | { | |
10423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10424 | result = (int)(arg1)->GetVMax(); | |
10425 | ||
10426 | wxPyEndAllowThreads(__tstate); | |
10427 | if (PyErr_Occurred()) SWIG_fail; | |
10428 | } | |
10429 | resultobj = SWIG_FromInt((int)result); | |
10430 | return resultobj; | |
10431 | fail: | |
10432 | return NULL; | |
10433 | } | |
10434 | ||
10435 | ||
10436 | static PyObject *_wrap_Joystick_HasRudder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10437 | PyObject *resultobj; | |
10438 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10439 | bool result; | |
10440 | PyObject * obj0 = 0 ; | |
10441 | char *kwnames[] = { | |
10442 | (char *) "self", NULL | |
10443 | }; | |
10444 | ||
10445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasRudder",kwnames,&obj0)) goto fail; | |
10446 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10447 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10448 | { | |
10449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10450 | result = (bool)(arg1)->HasRudder(); | |
10451 | ||
10452 | wxPyEndAllowThreads(__tstate); | |
10453 | if (PyErr_Occurred()) SWIG_fail; | |
10454 | } | |
10455 | { | |
10456 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10457 | } | |
10458 | return resultobj; | |
10459 | fail: | |
10460 | return NULL; | |
10461 | } | |
10462 | ||
10463 | ||
10464 | static PyObject *_wrap_Joystick_HasZ(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10465 | PyObject *resultobj; | |
10466 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10467 | bool result; | |
10468 | PyObject * obj0 = 0 ; | |
10469 | char *kwnames[] = { | |
10470 | (char *) "self", NULL | |
10471 | }; | |
10472 | ||
10473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasZ",kwnames,&obj0)) goto fail; | |
10474 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10475 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10476 | { | |
10477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10478 | result = (bool)(arg1)->HasZ(); | |
10479 | ||
10480 | wxPyEndAllowThreads(__tstate); | |
10481 | if (PyErr_Occurred()) SWIG_fail; | |
10482 | } | |
10483 | { | |
10484 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10485 | } | |
10486 | return resultobj; | |
10487 | fail: | |
10488 | return NULL; | |
10489 | } | |
10490 | ||
10491 | ||
10492 | static PyObject *_wrap_Joystick_HasU(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10493 | PyObject *resultobj; | |
10494 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10495 | bool result; | |
10496 | PyObject * obj0 = 0 ; | |
10497 | char *kwnames[] = { | |
10498 | (char *) "self", NULL | |
10499 | }; | |
10500 | ||
10501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasU",kwnames,&obj0)) goto fail; | |
10502 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10503 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10504 | { | |
10505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10506 | result = (bool)(arg1)->HasU(); | |
10507 | ||
10508 | wxPyEndAllowThreads(__tstate); | |
10509 | if (PyErr_Occurred()) SWIG_fail; | |
10510 | } | |
10511 | { | |
10512 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10513 | } | |
10514 | return resultobj; | |
10515 | fail: | |
10516 | return NULL; | |
10517 | } | |
10518 | ||
10519 | ||
10520 | static PyObject *_wrap_Joystick_HasV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10521 | PyObject *resultobj; | |
10522 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10523 | bool result; | |
10524 | PyObject * obj0 = 0 ; | |
10525 | char *kwnames[] = { | |
10526 | (char *) "self", NULL | |
10527 | }; | |
10528 | ||
10529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasV",kwnames,&obj0)) goto fail; | |
10530 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10531 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10532 | { | |
10533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10534 | result = (bool)(arg1)->HasV(); | |
10535 | ||
10536 | wxPyEndAllowThreads(__tstate); | |
10537 | if (PyErr_Occurred()) SWIG_fail; | |
10538 | } | |
10539 | { | |
10540 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10541 | } | |
10542 | return resultobj; | |
10543 | fail: | |
10544 | return NULL; | |
10545 | } | |
10546 | ||
10547 | ||
10548 | static PyObject *_wrap_Joystick_HasPOV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10549 | PyObject *resultobj; | |
10550 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10551 | bool result; | |
10552 | PyObject * obj0 = 0 ; | |
10553 | char *kwnames[] = { | |
10554 | (char *) "self", NULL | |
10555 | }; | |
10556 | ||
10557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV",kwnames,&obj0)) goto fail; | |
10558 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10559 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10560 | { | |
10561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10562 | result = (bool)(arg1)->HasPOV(); | |
10563 | ||
10564 | wxPyEndAllowThreads(__tstate); | |
10565 | if (PyErr_Occurred()) SWIG_fail; | |
10566 | } | |
10567 | { | |
10568 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10569 | } | |
10570 | return resultobj; | |
10571 | fail: | |
10572 | return NULL; | |
10573 | } | |
10574 | ||
10575 | ||
10576 | static PyObject *_wrap_Joystick_HasPOV4Dir(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10577 | PyObject *resultobj; | |
10578 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10579 | bool result; | |
10580 | PyObject * obj0 = 0 ; | |
10581 | char *kwnames[] = { | |
10582 | (char *) "self", NULL | |
10583 | }; | |
10584 | ||
10585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV4Dir",kwnames,&obj0)) goto fail; | |
10586 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10587 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10588 | { | |
10589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10590 | result = (bool)(arg1)->HasPOV4Dir(); | |
10591 | ||
10592 | wxPyEndAllowThreads(__tstate); | |
10593 | if (PyErr_Occurred()) SWIG_fail; | |
10594 | } | |
10595 | { | |
10596 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10597 | } | |
10598 | return resultobj; | |
10599 | fail: | |
10600 | return NULL; | |
10601 | } | |
10602 | ||
10603 | ||
10604 | static PyObject *_wrap_Joystick_HasPOVCTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10605 | PyObject *resultobj; | |
10606 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10607 | bool result; | |
10608 | PyObject * obj0 = 0 ; | |
10609 | char *kwnames[] = { | |
10610 | (char *) "self", NULL | |
10611 | }; | |
10612 | ||
10613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOVCTS",kwnames,&obj0)) goto fail; | |
10614 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10616 | { | |
10617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10618 | result = (bool)(arg1)->HasPOVCTS(); | |
10619 | ||
10620 | wxPyEndAllowThreads(__tstate); | |
10621 | if (PyErr_Occurred()) SWIG_fail; | |
10622 | } | |
10623 | { | |
10624 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10625 | } | |
10626 | return resultobj; | |
10627 | fail: | |
10628 | return NULL; | |
10629 | } | |
10630 | ||
10631 | ||
10632 | static PyObject *_wrap_Joystick_SetCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10633 | PyObject *resultobj; | |
10634 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10635 | wxWindow *arg2 = (wxWindow *) 0 ; | |
10636 | int arg3 = (int) 0 ; | |
10637 | bool result; | |
10638 | PyObject * obj0 = 0 ; | |
10639 | PyObject * obj1 = 0 ; | |
10640 | PyObject * obj2 = 0 ; | |
10641 | char *kwnames[] = { | |
10642 | (char *) "self",(char *) "win",(char *) "pollingFreq", NULL | |
10643 | }; | |
10644 | ||
10645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Joystick_SetCapture",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10648 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
10649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10650 | if (obj2) { | |
10651 | arg3 = (int) SWIG_AsInt(obj2); | |
10652 | if (PyErr_Occurred()) SWIG_fail; | |
10653 | } | |
10654 | { | |
10655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10656 | result = (bool)(arg1)->SetCapture(arg2,arg3); | |
10657 | ||
10658 | wxPyEndAllowThreads(__tstate); | |
10659 | if (PyErr_Occurred()) SWIG_fail; | |
10660 | } | |
10661 | { | |
10662 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10663 | } | |
10664 | return resultobj; | |
10665 | fail: | |
10666 | return NULL; | |
10667 | } | |
10668 | ||
10669 | ||
10670 | static PyObject *_wrap_Joystick_ReleaseCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10671 | PyObject *resultobj; | |
10672 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10673 | bool result; | |
10674 | PyObject * obj0 = 0 ; | |
10675 | char *kwnames[] = { | |
10676 | (char *) "self", NULL | |
10677 | }; | |
10678 | ||
10679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_ReleaseCapture",kwnames,&obj0)) goto fail; | |
10680 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10681 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10682 | { | |
10683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10684 | result = (bool)(arg1)->ReleaseCapture(); | |
10685 | ||
10686 | wxPyEndAllowThreads(__tstate); | |
10687 | if (PyErr_Occurred()) SWIG_fail; | |
10688 | } | |
10689 | { | |
10690 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10691 | } | |
10692 | return resultobj; | |
10693 | fail: | |
10694 | return NULL; | |
10695 | } | |
10696 | ||
10697 | ||
10698 | static PyObject * Joystick_swigregister(PyObject *self, PyObject *args) { | |
10699 | PyObject *obj; | |
10700 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10701 | SWIG_TypeClientData(SWIGTYPE_p_wxJoystick, obj); | |
10702 | Py_INCREF(obj); | |
10703 | return Py_BuildValue((char *)""); | |
10704 | } | |
10705 | static PyObject *_wrap_JoystickEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10706 | PyObject *resultobj; | |
10707 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10708 | wxPoint *arg2 = (wxPoint *) 0 ; | |
10709 | PyObject * obj0 = 0 ; | |
10710 | PyObject * obj1 = 0 ; | |
10711 | char *kwnames[] = { | |
10712 | (char *) "self",(char *) "m_pos", NULL | |
10713 | }; | |
10714 | ||
10715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail; | |
10716 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
10717 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10718 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint, | |
10719 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10720 | if (arg1) (arg1)->m_pos = *arg2; | |
10721 | ||
10722 | Py_INCREF(Py_None); resultobj = Py_None; | |
10723 | return resultobj; | |
10724 | fail: | |
10725 | return NULL; | |
10726 | } | |
10727 | ||
10728 | ||
10729 | static PyObject *_wrap_JoystickEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10730 | PyObject *resultobj; | |
10731 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10732 | wxPoint *result; | |
10733 | PyObject * obj0 = 0 ; | |
10734 | char *kwnames[] = { | |
10735 | (char *) "self", NULL | |
10736 | }; | |
10737 | ||
10738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_pos_get",kwnames,&obj0)) goto fail; | |
10739 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
10740 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10741 | result = (wxPoint *)& ((arg1)->m_pos); | |
10742 | ||
10743 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); | |
10744 | return resultobj; | |
10745 | fail: | |
10746 | return NULL; | |
10747 | } | |
10748 | ||
10749 | ||
10750 | static PyObject *_wrap_JoystickEvent_m_zPosition_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10751 | PyObject *resultobj; | |
10752 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10753 | int arg2 ; | |
10754 | PyObject * obj0 = 0 ; | |
10755 | PyObject * obj1 = 0 ; | |
10756 | char *kwnames[] = { | |
10757 | (char *) "self",(char *) "m_zPosition", NULL | |
10758 | }; | |
10759 | ||
10760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_zPosition_set",kwnames,&obj0,&obj1)) goto fail; | |
10761 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
10762 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10763 | arg2 = (int) SWIG_AsInt(obj1); | |
10764 | if (PyErr_Occurred()) SWIG_fail; | |
10765 | if (arg1) (arg1)->m_zPosition = arg2; | |
10766 | ||
10767 | Py_INCREF(Py_None); resultobj = Py_None; | |
10768 | return resultobj; | |
10769 | fail: | |
10770 | return NULL; | |
10771 | } | |
10772 | ||
10773 | ||
10774 | static PyObject *_wrap_JoystickEvent_m_zPosition_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10775 | PyObject *resultobj; | |
10776 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10777 | int result; | |
10778 | PyObject * obj0 = 0 ; | |
10779 | char *kwnames[] = { | |
10780 | (char *) "self", NULL | |
10781 | }; | |
10782 | ||
10783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_zPosition_get",kwnames,&obj0)) goto fail; | |
10784 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
10785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10786 | result = (int) ((arg1)->m_zPosition); | |
10787 | ||
10788 | resultobj = SWIG_FromInt((int)result); | |
10789 | return resultobj; | |
10790 | fail: | |
10791 | return NULL; | |
10792 | } | |
10793 | ||
10794 | ||
10795 | static PyObject *_wrap_JoystickEvent_m_buttonChange_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10796 | PyObject *resultobj; | |
10797 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10798 | int arg2 ; | |
10799 | PyObject * obj0 = 0 ; | |
10800 | PyObject * obj1 = 0 ; | |
10801 | char *kwnames[] = { | |
10802 | (char *) "self",(char *) "m_buttonChange", NULL | |
10803 | }; | |
10804 | ||
10805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonChange_set",kwnames,&obj0,&obj1)) goto fail; | |
10806 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
10807 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10808 | arg2 = (int) SWIG_AsInt(obj1); | |
10809 | if (PyErr_Occurred()) SWIG_fail; | |
10810 | if (arg1) (arg1)->m_buttonChange = arg2; | |
10811 | ||
10812 | Py_INCREF(Py_None); resultobj = Py_None; | |
10813 | return resultobj; | |
10814 | fail: | |
10815 | return NULL; | |
10816 | } | |
10817 | ||
10818 | ||
10819 | static PyObject *_wrap_JoystickEvent_m_buttonChange_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10820 | PyObject *resultobj; | |
10821 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10822 | int result; | |
10823 | PyObject * obj0 = 0 ; | |
10824 | char *kwnames[] = { | |
10825 | (char *) "self", NULL | |
10826 | }; | |
10827 | ||
10828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonChange_get",kwnames,&obj0)) goto fail; | |
10829 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
10830 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10831 | result = (int) ((arg1)->m_buttonChange); | |
10832 | ||
10833 | resultobj = SWIG_FromInt((int)result); | |
10834 | return resultobj; | |
10835 | fail: | |
10836 | return NULL; | |
10837 | } | |
10838 | ||
10839 | ||
10840 | static PyObject *_wrap_JoystickEvent_m_buttonState_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10841 | PyObject *resultobj; | |
10842 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10843 | int arg2 ; | |
10844 | PyObject * obj0 = 0 ; | |
10845 | PyObject * obj1 = 0 ; | |
10846 | char *kwnames[] = { | |
10847 | (char *) "self",(char *) "m_buttonState", NULL | |
10848 | }; | |
10849 | ||
10850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonState_set",kwnames,&obj0,&obj1)) goto fail; | |
10851 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
10852 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10853 | arg2 = (int) SWIG_AsInt(obj1); | |
10854 | if (PyErr_Occurred()) SWIG_fail; | |
10855 | if (arg1) (arg1)->m_buttonState = arg2; | |
10856 | ||
10857 | Py_INCREF(Py_None); resultobj = Py_None; | |
10858 | return resultobj; | |
10859 | fail: | |
10860 | return NULL; | |
10861 | } | |
10862 | ||
10863 | ||
10864 | static PyObject *_wrap_JoystickEvent_m_buttonState_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10865 | PyObject *resultobj; | |
10866 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10867 | int result; | |
10868 | PyObject * obj0 = 0 ; | |
10869 | char *kwnames[] = { | |
10870 | (char *) "self", NULL | |
10871 | }; | |
10872 | ||
10873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonState_get",kwnames,&obj0)) goto fail; | |
10874 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
10875 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10876 | result = (int) ((arg1)->m_buttonState); | |
10877 | ||
10878 | resultobj = SWIG_FromInt((int)result); | |
10879 | return resultobj; | |
10880 | fail: | |
10881 | return NULL; | |
10882 | } | |
10883 | ||
10884 | ||
10885 | static PyObject *_wrap_JoystickEvent_m_joyStick_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10886 | PyObject *resultobj; | |
10887 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10888 | int arg2 ; | |
10889 | PyObject * obj0 = 0 ; | |
10890 | PyObject * obj1 = 0 ; | |
10891 | char *kwnames[] = { | |
10892 | (char *) "self",(char *) "m_joyStick", NULL | |
10893 | }; | |
10894 | ||
10895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_joyStick_set",kwnames,&obj0,&obj1)) goto fail; | |
10896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
10897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10898 | arg2 = (int) SWIG_AsInt(obj1); | |
10899 | if (PyErr_Occurred()) SWIG_fail; | |
10900 | if (arg1) (arg1)->m_joyStick = arg2; | |
10901 | ||
10902 | Py_INCREF(Py_None); resultobj = Py_None; | |
10903 | return resultobj; | |
10904 | fail: | |
10905 | return NULL; | |
10906 | } | |
10907 | ||
10908 | ||
10909 | static PyObject *_wrap_JoystickEvent_m_joyStick_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10910 | PyObject *resultobj; | |
10911 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10912 | int result; | |
10913 | PyObject * obj0 = 0 ; | |
10914 | char *kwnames[] = { | |
10915 | (char *) "self", NULL | |
10916 | }; | |
10917 | ||
10918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_joyStick_get",kwnames,&obj0)) goto fail; | |
10919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
10920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10921 | result = (int) ((arg1)->m_joyStick); | |
10922 | ||
10923 | resultobj = SWIG_FromInt((int)result); | |
10924 | return resultobj; | |
10925 | fail: | |
10926 | return NULL; | |
10927 | } | |
10928 | ||
10929 | ||
10930 | static PyObject *_wrap_new_JoystickEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10931 | PyObject *resultobj; | |
10932 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
10933 | int arg2 = (int) 0 ; | |
10934 | int arg3 = (int) wxJOYSTICK1 ; | |
10935 | int arg4 = (int) 0 ; | |
10936 | wxJoystickEvent *result; | |
10937 | PyObject * obj0 = 0 ; | |
10938 | PyObject * obj1 = 0 ; | |
10939 | PyObject * obj2 = 0 ; | |
10940 | PyObject * obj3 = 0 ; | |
10941 | char *kwnames[] = { | |
10942 | (char *) "type",(char *) "state",(char *) "joystick",(char *) "change", NULL | |
10943 | }; | |
10944 | ||
10945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_JoystickEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10946 | if (obj0) { | |
10947 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
10948 | if (PyErr_Occurred()) SWIG_fail; | |
10949 | } | |
10950 | if (obj1) { | |
10951 | arg2 = (int) SWIG_AsInt(obj1); | |
10952 | if (PyErr_Occurred()) SWIG_fail; | |
10953 | } | |
10954 | if (obj2) { | |
10955 | arg3 = (int) SWIG_AsInt(obj2); | |
10956 | if (PyErr_Occurred()) SWIG_fail; | |
10957 | } | |
10958 | if (obj3) { | |
10959 | arg4 = (int) SWIG_AsInt(obj3); | |
10960 | if (PyErr_Occurred()) SWIG_fail; | |
10961 | } | |
10962 | { | |
10963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10964 | result = (wxJoystickEvent *)new wxJoystickEvent(arg1,arg2,arg3,arg4); | |
10965 | ||
10966 | wxPyEndAllowThreads(__tstate); | |
10967 | if (PyErr_Occurred()) SWIG_fail; | |
10968 | } | |
10969 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystickEvent, 1); | |
10970 | return resultobj; | |
10971 | fail: | |
10972 | return NULL; | |
10973 | } | |
10974 | ||
10975 | ||
10976 | static PyObject *_wrap_JoystickEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10977 | PyObject *resultobj; | |
10978 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10979 | wxPoint result; | |
10980 | PyObject * obj0 = 0 ; | |
10981 | char *kwnames[] = { | |
10982 | (char *) "self", NULL | |
10983 | }; | |
10984 | ||
10985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetPosition",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 = ((wxJoystickEvent const *)arg1)->GetPosition(); | |
10991 | ||
10992 | wxPyEndAllowThreads(__tstate); | |
10993 | if (PyErr_Occurred()) SWIG_fail; | |
10994 | } | |
10995 | { | |
10996 | wxPoint * resultptr; | |
10997 | resultptr = new wxPoint((wxPoint &) result); | |
10998 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
10999 | } | |
11000 | return resultobj; | |
11001 | fail: | |
11002 | return NULL; | |
11003 | } | |
11004 | ||
11005 | ||
11006 | static PyObject *_wrap_JoystickEvent_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11007 | PyObject *resultobj; | |
11008 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11009 | int result; | |
11010 | PyObject * obj0 = 0 ; | |
11011 | char *kwnames[] = { | |
11012 | (char *) "self", NULL | |
11013 | }; | |
11014 | ||
11015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetZPosition",kwnames,&obj0)) goto fail; | |
11016 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11017 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11018 | { | |
11019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11020 | result = (int)((wxJoystickEvent const *)arg1)->GetZPosition(); | |
11021 | ||
11022 | wxPyEndAllowThreads(__tstate); | |
11023 | if (PyErr_Occurred()) SWIG_fail; | |
11024 | } | |
11025 | resultobj = SWIG_FromInt((int)result); | |
11026 | return resultobj; | |
11027 | fail: | |
11028 | return NULL; | |
11029 | } | |
11030 | ||
11031 | ||
11032 | static PyObject *_wrap_JoystickEvent_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11033 | PyObject *resultobj; | |
11034 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11035 | int result; | |
11036 | PyObject * obj0 = 0 ; | |
11037 | char *kwnames[] = { | |
11038 | (char *) "self", NULL | |
11039 | }; | |
11040 | ||
11041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonState",kwnames,&obj0)) goto fail; | |
11042 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11043 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11044 | { | |
11045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11046 | result = (int)((wxJoystickEvent const *)arg1)->GetButtonState(); | |
11047 | ||
11048 | wxPyEndAllowThreads(__tstate); | |
11049 | if (PyErr_Occurred()) SWIG_fail; | |
11050 | } | |
11051 | resultobj = SWIG_FromInt((int)result); | |
11052 | return resultobj; | |
11053 | fail: | |
11054 | return NULL; | |
11055 | } | |
11056 | ||
11057 | ||
11058 | static PyObject *_wrap_JoystickEvent_GetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11059 | PyObject *resultobj; | |
11060 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11061 | int result; | |
11062 | PyObject * obj0 = 0 ; | |
11063 | char *kwnames[] = { | |
11064 | (char *) "self", NULL | |
11065 | }; | |
11066 | ||
11067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonChange",kwnames,&obj0)) goto fail; | |
11068 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11069 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11070 | { | |
11071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11072 | result = (int)((wxJoystickEvent const *)arg1)->GetButtonChange(); | |
11073 | ||
11074 | wxPyEndAllowThreads(__tstate); | |
11075 | if (PyErr_Occurred()) SWIG_fail; | |
11076 | } | |
11077 | resultobj = SWIG_FromInt((int)result); | |
11078 | return resultobj; | |
11079 | fail: | |
11080 | return NULL; | |
11081 | } | |
11082 | ||
11083 | ||
11084 | static PyObject *_wrap_JoystickEvent_GetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11085 | PyObject *resultobj; | |
11086 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11087 | int result; | |
11088 | PyObject * obj0 = 0 ; | |
11089 | char *kwnames[] = { | |
11090 | (char *) "self", NULL | |
11091 | }; | |
11092 | ||
11093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetJoystick",kwnames,&obj0)) goto fail; | |
11094 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11095 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11096 | { | |
11097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11098 | result = (int)((wxJoystickEvent const *)arg1)->GetJoystick(); | |
11099 | ||
11100 | wxPyEndAllowThreads(__tstate); | |
11101 | if (PyErr_Occurred()) SWIG_fail; | |
11102 | } | |
11103 | resultobj = SWIG_FromInt((int)result); | |
11104 | return resultobj; | |
11105 | fail: | |
11106 | return NULL; | |
11107 | } | |
11108 | ||
11109 | ||
11110 | static PyObject *_wrap_JoystickEvent_SetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11111 | PyObject *resultobj; | |
11112 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11113 | int arg2 ; | |
11114 | PyObject * obj0 = 0 ; | |
11115 | PyObject * obj1 = 0 ; | |
11116 | char *kwnames[] = { | |
11117 | (char *) "self",(char *) "stick", NULL | |
11118 | }; | |
11119 | ||
11120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetJoystick",kwnames,&obj0,&obj1)) goto fail; | |
11121 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11123 | arg2 = (int) SWIG_AsInt(obj1); | |
11124 | if (PyErr_Occurred()) SWIG_fail; | |
11125 | { | |
11126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11127 | (arg1)->SetJoystick(arg2); | |
11128 | ||
11129 | wxPyEndAllowThreads(__tstate); | |
11130 | if (PyErr_Occurred()) SWIG_fail; | |
11131 | } | |
11132 | Py_INCREF(Py_None); resultobj = Py_None; | |
11133 | return resultobj; | |
11134 | fail: | |
11135 | return NULL; | |
11136 | } | |
11137 | ||
11138 | ||
11139 | static PyObject *_wrap_JoystickEvent_SetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11140 | PyObject *resultobj; | |
11141 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11142 | int arg2 ; | |
11143 | PyObject * obj0 = 0 ; | |
11144 | PyObject * obj1 = 0 ; | |
11145 | char *kwnames[] = { | |
11146 | (char *) "self",(char *) "state", NULL | |
11147 | }; | |
11148 | ||
11149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonState",kwnames,&obj0,&obj1)) goto fail; | |
11150 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11151 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11152 | arg2 = (int) SWIG_AsInt(obj1); | |
11153 | if (PyErr_Occurred()) SWIG_fail; | |
11154 | { | |
11155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11156 | (arg1)->SetButtonState(arg2); | |
11157 | ||
11158 | wxPyEndAllowThreads(__tstate); | |
11159 | if (PyErr_Occurred()) SWIG_fail; | |
11160 | } | |
11161 | Py_INCREF(Py_None); resultobj = Py_None; | |
11162 | return resultobj; | |
11163 | fail: | |
11164 | return NULL; | |
11165 | } | |
11166 | ||
11167 | ||
11168 | static PyObject *_wrap_JoystickEvent_SetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11169 | PyObject *resultobj; | |
11170 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11171 | int arg2 ; | |
11172 | PyObject * obj0 = 0 ; | |
11173 | PyObject * obj1 = 0 ; | |
11174 | char *kwnames[] = { | |
11175 | (char *) "self",(char *) "change", NULL | |
11176 | }; | |
11177 | ||
11178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonChange",kwnames,&obj0,&obj1)) goto fail; | |
11179 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11180 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11181 | arg2 = (int) SWIG_AsInt(obj1); | |
11182 | if (PyErr_Occurred()) SWIG_fail; | |
11183 | { | |
11184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11185 | (arg1)->SetButtonChange(arg2); | |
11186 | ||
11187 | wxPyEndAllowThreads(__tstate); | |
11188 | if (PyErr_Occurred()) SWIG_fail; | |
11189 | } | |
11190 | Py_INCREF(Py_None); resultobj = Py_None; | |
11191 | return resultobj; | |
11192 | fail: | |
11193 | return NULL; | |
11194 | } | |
11195 | ||
11196 | ||
11197 | static PyObject *_wrap_JoystickEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11198 | PyObject *resultobj; | |
11199 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11200 | wxPoint *arg2 = 0 ; | |
11201 | wxPoint temp2 ; | |
11202 | PyObject * obj0 = 0 ; | |
11203 | PyObject * obj1 = 0 ; | |
11204 | char *kwnames[] = { | |
11205 | (char *) "self",(char *) "pos", NULL | |
11206 | }; | |
11207 | ||
11208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
11209 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11210 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11211 | { | |
11212 | arg2 = &temp2; | |
11213 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11214 | } | |
11215 | { | |
11216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11217 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
11218 | ||
11219 | wxPyEndAllowThreads(__tstate); | |
11220 | if (PyErr_Occurred()) SWIG_fail; | |
11221 | } | |
11222 | Py_INCREF(Py_None); resultobj = Py_None; | |
11223 | return resultobj; | |
11224 | fail: | |
11225 | return NULL; | |
11226 | } | |
11227 | ||
11228 | ||
11229 | static PyObject *_wrap_JoystickEvent_SetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11230 | PyObject *resultobj; | |
11231 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11232 | int arg2 ; | |
11233 | PyObject * obj0 = 0 ; | |
11234 | PyObject * obj1 = 0 ; | |
11235 | char *kwnames[] = { | |
11236 | (char *) "self",(char *) "zPos", NULL | |
11237 | }; | |
11238 | ||
11239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetZPosition",kwnames,&obj0,&obj1)) goto fail; | |
11240 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11241 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11242 | arg2 = (int) SWIG_AsInt(obj1); | |
11243 | if (PyErr_Occurred()) SWIG_fail; | |
11244 | { | |
11245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11246 | (arg1)->SetZPosition(arg2); | |
11247 | ||
11248 | wxPyEndAllowThreads(__tstate); | |
11249 | if (PyErr_Occurred()) SWIG_fail; | |
11250 | } | |
11251 | Py_INCREF(Py_None); resultobj = Py_None; | |
11252 | return resultobj; | |
11253 | fail: | |
11254 | return NULL; | |
11255 | } | |
11256 | ||
11257 | ||
11258 | static PyObject *_wrap_JoystickEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11259 | PyObject *resultobj; | |
11260 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11261 | bool result; | |
11262 | PyObject * obj0 = 0 ; | |
11263 | char *kwnames[] = { | |
11264 | (char *) "self", NULL | |
11265 | }; | |
11266 | ||
11267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsButton",kwnames,&obj0)) goto fail; | |
11268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11270 | { | |
11271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11272 | result = (bool)((wxJoystickEvent const *)arg1)->IsButton(); | |
11273 | ||
11274 | wxPyEndAllowThreads(__tstate); | |
11275 | if (PyErr_Occurred()) SWIG_fail; | |
11276 | } | |
11277 | { | |
11278 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11279 | } | |
11280 | return resultobj; | |
11281 | fail: | |
11282 | return NULL; | |
11283 | } | |
11284 | ||
11285 | ||
11286 | static PyObject *_wrap_JoystickEvent_IsMove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11287 | PyObject *resultobj; | |
11288 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11289 | bool result; | |
11290 | PyObject * obj0 = 0 ; | |
11291 | char *kwnames[] = { | |
11292 | (char *) "self", NULL | |
11293 | }; | |
11294 | ||
11295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsMove",kwnames,&obj0)) goto fail; | |
11296 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11297 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11298 | { | |
11299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11300 | result = (bool)((wxJoystickEvent const *)arg1)->IsMove(); | |
11301 | ||
11302 | wxPyEndAllowThreads(__tstate); | |
11303 | if (PyErr_Occurred()) SWIG_fail; | |
11304 | } | |
11305 | { | |
11306 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11307 | } | |
11308 | return resultobj; | |
11309 | fail: | |
11310 | return NULL; | |
11311 | } | |
11312 | ||
11313 | ||
11314 | static PyObject *_wrap_JoystickEvent_IsZMove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11315 | PyObject *resultobj; | |
11316 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11317 | bool result; | |
11318 | PyObject * obj0 = 0 ; | |
11319 | char *kwnames[] = { | |
11320 | (char *) "self", NULL | |
11321 | }; | |
11322 | ||
11323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsZMove",kwnames,&obj0)) goto fail; | |
11324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11326 | { | |
11327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11328 | result = (bool)((wxJoystickEvent const *)arg1)->IsZMove(); | |
11329 | ||
11330 | wxPyEndAllowThreads(__tstate); | |
11331 | if (PyErr_Occurred()) SWIG_fail; | |
11332 | } | |
11333 | { | |
11334 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11335 | } | |
11336 | return resultobj; | |
11337 | fail: | |
11338 | return NULL; | |
11339 | } | |
11340 | ||
11341 | ||
11342 | static PyObject *_wrap_JoystickEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11343 | PyObject *resultobj; | |
11344 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11345 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
11346 | bool result; | |
11347 | PyObject * obj0 = 0 ; | |
11348 | PyObject * obj1 = 0 ; | |
11349 | char *kwnames[] = { | |
11350 | (char *) "self",(char *) "but", NULL | |
11351 | }; | |
11352 | ||
11353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail; | |
11354 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11355 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11356 | if (obj1) { | |
11357 | arg2 = (int) SWIG_AsInt(obj1); | |
11358 | if (PyErr_Occurred()) SWIG_fail; | |
11359 | } | |
11360 | { | |
11361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11362 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonDown(arg2); | |
11363 | ||
11364 | wxPyEndAllowThreads(__tstate); | |
11365 | if (PyErr_Occurred()) SWIG_fail; | |
11366 | } | |
11367 | { | |
11368 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11369 | } | |
11370 | return resultobj; | |
11371 | fail: | |
11372 | return NULL; | |
11373 | } | |
11374 | ||
11375 | ||
11376 | static PyObject *_wrap_JoystickEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11377 | PyObject *resultobj; | |
11378 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11379 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
11380 | bool result; | |
11381 | PyObject * obj0 = 0 ; | |
11382 | PyObject * obj1 = 0 ; | |
11383 | char *kwnames[] = { | |
11384 | (char *) "self",(char *) "but", NULL | |
11385 | }; | |
11386 | ||
11387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail; | |
11388 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11389 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11390 | if (obj1) { | |
11391 | arg2 = (int) SWIG_AsInt(obj1); | |
11392 | if (PyErr_Occurred()) SWIG_fail; | |
11393 | } | |
11394 | { | |
11395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11396 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonUp(arg2); | |
11397 | ||
11398 | wxPyEndAllowThreads(__tstate); | |
11399 | if (PyErr_Occurred()) SWIG_fail; | |
11400 | } | |
11401 | { | |
11402 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11403 | } | |
11404 | return resultobj; | |
11405 | fail: | |
11406 | return NULL; | |
11407 | } | |
11408 | ||
11409 | ||
11410 | static PyObject *_wrap_JoystickEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11411 | PyObject *resultobj; | |
11412 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11413 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
11414 | bool result; | |
11415 | PyObject * obj0 = 0 ; | |
11416 | PyObject * obj1 = 0 ; | |
11417 | char *kwnames[] = { | |
11418 | (char *) "self",(char *) "but", NULL | |
11419 | }; | |
11420 | ||
11421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail; | |
11422 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11423 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11424 | if (obj1) { | |
11425 | arg2 = (int) SWIG_AsInt(obj1); | |
11426 | if (PyErr_Occurred()) SWIG_fail; | |
11427 | } | |
11428 | { | |
11429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11430 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonIsDown(arg2); | |
11431 | ||
11432 | wxPyEndAllowThreads(__tstate); | |
11433 | if (PyErr_Occurred()) SWIG_fail; | |
11434 | } | |
11435 | { | |
11436 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11437 | } | |
11438 | return resultobj; | |
11439 | fail: | |
11440 | return NULL; | |
11441 | } | |
11442 | ||
11443 | ||
11444 | static PyObject * JoystickEvent_swigregister(PyObject *self, PyObject *args) { | |
11445 | PyObject *obj; | |
11446 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11447 | SWIG_TypeClientData(SWIGTYPE_p_wxJoystickEvent, obj); | |
11448 | Py_INCREF(obj); | |
11449 | return Py_BuildValue((char *)""); | |
11450 | } | |
b1f29bf7 | 11451 | static PyObject *_wrap_new_Sound(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 11452 | PyObject *resultobj; |
b1f29bf7 RD |
11453 | wxString const &arg1_defvalue = wxPyEmptyString ; |
11454 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
d55e5bfc RD |
11455 | wxSound *result; |
11456 | bool temp1 = False ; | |
11457 | PyObject * obj0 = 0 ; | |
b1f29bf7 RD |
11458 | char *kwnames[] = { |
11459 | (char *) "fileName", NULL | |
11460 | }; | |
d55e5bfc | 11461 | |
b1f29bf7 RD |
11462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Sound",kwnames,&obj0)) goto fail; |
11463 | if (obj0) { | |
11464 | { | |
11465 | arg1 = wxString_in_helper(obj0); | |
11466 | if (arg1 == NULL) SWIG_fail; | |
11467 | temp1 = True; | |
11468 | } | |
d55e5bfc RD |
11469 | } |
11470 | { | |
11471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b1f29bf7 | 11472 | result = (wxSound *)new_wxSound((wxString const &)*arg1); |
d55e5bfc RD |
11473 | |
11474 | wxPyEndAllowThreads(__tstate); | |
11475 | if (PyErr_Occurred()) SWIG_fail; | |
11476 | } | |
11477 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1); | |
11478 | { | |
11479 | if (temp1) | |
11480 | delete arg1; | |
11481 | } | |
11482 | return resultobj; | |
11483 | fail: | |
11484 | { | |
11485 | if (temp1) | |
11486 | delete arg1; | |
11487 | } | |
11488 | return NULL; | |
11489 | } | |
11490 | ||
11491 | ||
b1f29bf7 | 11492 | static PyObject *_wrap_new_SoundFromData(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 11493 | PyObject *resultobj; |
b1f29bf7 | 11494 | PyObject *arg1 = (PyObject *) 0 ; |
d55e5bfc RD |
11495 | wxSound *result; |
11496 | PyObject * obj0 = 0 ; | |
b1f29bf7 RD |
11497 | char *kwnames[] = { |
11498 | (char *) "data", NULL | |
11499 | }; | |
d55e5bfc | 11500 | |
b1f29bf7 RD |
11501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_SoundFromData",kwnames,&obj0)) goto fail; |
11502 | arg1 = obj0; | |
d55e5bfc RD |
11503 | { |
11504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b1f29bf7 | 11505 | result = (wxSound *)new_wxSound(arg1); |
d55e5bfc RD |
11506 | |
11507 | wxPyEndAllowThreads(__tstate); | |
11508 | if (PyErr_Occurred()) SWIG_fail; | |
11509 | } | |
11510 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1); | |
11511 | return resultobj; | |
11512 | fail: | |
11513 | return NULL; | |
11514 | } | |
11515 | ||
11516 | ||
d55e5bfc RD |
11517 | static PyObject *_wrap_delete_Sound(PyObject *self, PyObject *args, PyObject *kwargs) { |
11518 | PyObject *resultobj; | |
11519 | wxSound *arg1 = (wxSound *) 0 ; | |
11520 | PyObject * obj0 = 0 ; | |
11521 | char *kwnames[] = { | |
11522 | (char *) "self", NULL | |
11523 | }; | |
11524 | ||
11525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Sound",kwnames,&obj0)) goto fail; | |
11526 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, | |
11527 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11528 | { | |
11529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11530 | delete arg1; | |
11531 | ||
11532 | wxPyEndAllowThreads(__tstate); | |
11533 | if (PyErr_Occurred()) SWIG_fail; | |
11534 | } | |
11535 | Py_INCREF(Py_None); resultobj = Py_None; | |
11536 | return resultobj; | |
11537 | fail: | |
11538 | return NULL; | |
11539 | } | |
11540 | ||
11541 | ||
b1f29bf7 | 11542 | static PyObject *_wrap_Sound_Create(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11543 | PyObject *resultobj; |
11544 | wxSound *arg1 = (wxSound *) 0 ; | |
11545 | wxString *arg2 = 0 ; | |
d55e5bfc RD |
11546 | bool result; |
11547 | bool temp2 = False ; | |
11548 | PyObject * obj0 = 0 ; | |
11549 | PyObject * obj1 = 0 ; | |
b1f29bf7 RD |
11550 | char *kwnames[] = { |
11551 | (char *) "self",(char *) "fileName", NULL | |
11552 | }; | |
d55e5bfc | 11553 | |
b1f29bf7 | 11554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_Create",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
11555 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, |
11556 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11557 | { | |
11558 | arg2 = wxString_in_helper(obj1); | |
11559 | if (arg2 == NULL) SWIG_fail; | |
11560 | temp2 = True; | |
11561 | } | |
d55e5bfc RD |
11562 | { |
11563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b1f29bf7 | 11564 | result = (bool)(arg1)->Create((wxString const &)*arg2); |
d55e5bfc RD |
11565 | |
11566 | wxPyEndAllowThreads(__tstate); | |
11567 | if (PyErr_Occurred()) SWIG_fail; | |
11568 | } | |
11569 | { | |
11570 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11571 | } | |
11572 | { | |
11573 | if (temp2) | |
11574 | delete arg2; | |
11575 | } | |
11576 | return resultobj; | |
11577 | fail: | |
11578 | { | |
11579 | if (temp2) | |
11580 | delete arg2; | |
11581 | } | |
11582 | return NULL; | |
11583 | } | |
11584 | ||
11585 | ||
b1f29bf7 | 11586 | static PyObject *_wrap_Sound_CreateFromData(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11587 | PyObject *resultobj; |
11588 | wxSound *arg1 = (wxSound *) 0 ; | |
b1f29bf7 | 11589 | PyObject *arg2 = (PyObject *) 0 ; |
d55e5bfc RD |
11590 | bool result; |
11591 | PyObject * obj0 = 0 ; | |
11592 | PyObject * obj1 = 0 ; | |
b1f29bf7 RD |
11593 | char *kwnames[] = { |
11594 | (char *) "self",(char *) "data", NULL | |
11595 | }; | |
d55e5bfc | 11596 | |
b1f29bf7 | 11597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_CreateFromData",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
11598 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, |
11599 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
b1f29bf7 | 11600 | arg2 = obj1; |
d55e5bfc RD |
11601 | { |
11602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b1f29bf7 | 11603 | result = (bool)wxSound_CreateFromData(arg1,arg2); |
d55e5bfc RD |
11604 | |
11605 | wxPyEndAllowThreads(__tstate); | |
11606 | if (PyErr_Occurred()) SWIG_fail; | |
11607 | } | |
11608 | { | |
11609 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11610 | } | |
11611 | return resultobj; | |
11612 | fail: | |
11613 | return NULL; | |
11614 | } | |
11615 | ||
11616 | ||
d55e5bfc RD |
11617 | static PyObject *_wrap_Sound_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { |
11618 | PyObject *resultobj; | |
11619 | wxSound *arg1 = (wxSound *) 0 ; | |
11620 | bool result; | |
11621 | PyObject * obj0 = 0 ; | |
11622 | char *kwnames[] = { | |
11623 | (char *) "self", NULL | |
11624 | }; | |
11625 | ||
11626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sound_IsOk",kwnames,&obj0)) goto fail; | |
11627 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, | |
11628 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11629 | { | |
11630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11631 | result = (bool)(arg1)->IsOk(); | |
11632 | ||
11633 | wxPyEndAllowThreads(__tstate); | |
11634 | if (PyErr_Occurred()) SWIG_fail; | |
11635 | } | |
11636 | { | |
11637 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11638 | } | |
11639 | return resultobj; | |
11640 | fail: | |
11641 | return NULL; | |
11642 | } | |
11643 | ||
11644 | ||
b1f29bf7 | 11645 | static PyObject *_wrap_Sound_Play(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11646 | PyObject *resultobj; |
11647 | wxSound *arg1 = (wxSound *) 0 ; | |
11648 | unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ; | |
11649 | bool result; | |
11650 | PyObject * obj0 = 0 ; | |
11651 | PyObject * obj1 = 0 ; | |
b1f29bf7 RD |
11652 | char *kwnames[] = { |
11653 | (char *) "self",(char *) "flags", NULL | |
11654 | }; | |
d55e5bfc | 11655 | |
b1f29bf7 | 11656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_Play",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
11657 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, |
11658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11659 | if (obj1) { | |
11660 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); | |
11661 | if (PyErr_Occurred()) SWIG_fail; | |
11662 | } | |
11663 | { | |
11664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11665 | result = (bool)((wxSound const *)arg1)->Play(arg2); | |
11666 | ||
11667 | wxPyEndAllowThreads(__tstate); | |
11668 | if (PyErr_Occurred()) SWIG_fail; | |
11669 | } | |
11670 | { | |
11671 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11672 | } | |
11673 | return resultobj; | |
11674 | fail: | |
11675 | return NULL; | |
11676 | } | |
11677 | ||
11678 | ||
b1f29bf7 | 11679 | static PyObject *_wrap_Sound_PlaySound(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11680 | PyObject *resultobj; |
11681 | wxString *arg1 = 0 ; | |
11682 | unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ; | |
11683 | bool result; | |
11684 | bool temp1 = False ; | |
11685 | PyObject * obj0 = 0 ; | |
11686 | PyObject * obj1 = 0 ; | |
b1f29bf7 RD |
11687 | char *kwnames[] = { |
11688 | (char *) "filename",(char *) "flags", NULL | |
11689 | }; | |
d55e5bfc | 11690 | |
b1f29bf7 | 11691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_PlaySound",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
11692 | { |
11693 | arg1 = wxString_in_helper(obj0); | |
11694 | if (arg1 == NULL) SWIG_fail; | |
11695 | temp1 = True; | |
11696 | } | |
11697 | if (obj1) { | |
11698 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); | |
11699 | if (PyErr_Occurred()) SWIG_fail; | |
11700 | } | |
11701 | { | |
11702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11703 | result = (bool)wxSound::Play((wxString const &)*arg1,arg2); | |
11704 | ||
11705 | wxPyEndAllowThreads(__tstate); | |
11706 | if (PyErr_Occurred()) SWIG_fail; | |
11707 | } | |
11708 | { | |
11709 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11710 | } | |
11711 | { | |
11712 | if (temp1) | |
11713 | delete arg1; | |
11714 | } | |
11715 | return resultobj; | |
11716 | fail: | |
11717 | { | |
11718 | if (temp1) | |
11719 | delete arg1; | |
11720 | } | |
11721 | return NULL; | |
11722 | } | |
11723 | ||
11724 | ||
11725 | static PyObject *_wrap_Sound_Stop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11726 | PyObject *resultobj; | |
11727 | char *kwnames[] = { | |
11728 | NULL | |
11729 | }; | |
11730 | ||
11731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Sound_Stop",kwnames)) goto fail; | |
11732 | { | |
11733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11734 | wxSound::Stop(); | |
11735 | ||
11736 | wxPyEndAllowThreads(__tstate); | |
11737 | if (PyErr_Occurred()) SWIG_fail; | |
11738 | } | |
11739 | Py_INCREF(Py_None); resultobj = Py_None; | |
11740 | return resultobj; | |
11741 | fail: | |
11742 | return NULL; | |
11743 | } | |
11744 | ||
11745 | ||
11746 | static PyObject * Sound_swigregister(PyObject *self, PyObject *args) { | |
11747 | PyObject *obj; | |
11748 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11749 | SWIG_TypeClientData(SWIGTYPE_p_wxSound, obj); | |
11750 | Py_INCREF(obj); | |
11751 | return Py_BuildValue((char *)""); | |
11752 | } | |
11753 | static PyObject *_wrap_new_FileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11754 | PyObject *resultobj; | |
11755 | wxString *arg1 = 0 ; | |
11756 | wxString *arg2 = 0 ; | |
11757 | wxString *arg3 = 0 ; | |
11758 | wxString *arg4 = 0 ; | |
11759 | wxFileTypeInfo *result; | |
11760 | bool temp1 = False ; | |
11761 | bool temp2 = False ; | |
11762 | bool temp3 = False ; | |
11763 | bool temp4 = False ; | |
11764 | PyObject * obj0 = 0 ; | |
11765 | PyObject * obj1 = 0 ; | |
11766 | PyObject * obj2 = 0 ; | |
11767 | PyObject * obj3 = 0 ; | |
11768 | char *kwnames[] = { | |
11769 | (char *) "mimeType",(char *) "openCmd",(char *) "printCmd",(char *) "desc", NULL | |
11770 | }; | |
11771 | ||
11772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileTypeInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
11773 | { | |
11774 | arg1 = wxString_in_helper(obj0); | |
11775 | if (arg1 == NULL) SWIG_fail; | |
11776 | temp1 = True; | |
11777 | } | |
11778 | { | |
11779 | arg2 = wxString_in_helper(obj1); | |
11780 | if (arg2 == NULL) SWIG_fail; | |
11781 | temp2 = True; | |
11782 | } | |
11783 | { | |
11784 | arg3 = wxString_in_helper(obj2); | |
11785 | if (arg3 == NULL) SWIG_fail; | |
11786 | temp3 = True; | |
11787 | } | |
11788 | { | |
11789 | arg4 = wxString_in_helper(obj3); | |
11790 | if (arg4 == NULL) SWIG_fail; | |
11791 | temp4 = True; | |
11792 | } | |
11793 | { | |
11794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11795 | result = (wxFileTypeInfo *)new wxFileTypeInfo((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
11796 | ||
11797 | wxPyEndAllowThreads(__tstate); | |
11798 | if (PyErr_Occurred()) SWIG_fail; | |
11799 | } | |
11800 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); | |
11801 | { | |
11802 | if (temp1) | |
11803 | delete arg1; | |
11804 | } | |
11805 | { | |
11806 | if (temp2) | |
11807 | delete arg2; | |
11808 | } | |
11809 | { | |
11810 | if (temp3) | |
11811 | delete arg3; | |
11812 | } | |
11813 | { | |
11814 | if (temp4) | |
11815 | delete arg4; | |
11816 | } | |
11817 | return resultobj; | |
11818 | fail: | |
11819 | { | |
11820 | if (temp1) | |
11821 | delete arg1; | |
11822 | } | |
11823 | { | |
11824 | if (temp2) | |
11825 | delete arg2; | |
11826 | } | |
11827 | { | |
11828 | if (temp3) | |
11829 | delete arg3; | |
11830 | } | |
11831 | { | |
11832 | if (temp4) | |
11833 | delete arg4; | |
11834 | } | |
11835 | return NULL; | |
11836 | } | |
11837 | ||
11838 | ||
11839 | static PyObject *_wrap_new_FileTypeInfoSequence(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11840 | PyObject *resultobj; | |
11841 | wxArrayString *arg1 = 0 ; | |
11842 | wxFileTypeInfo *result; | |
11843 | bool temp1 = False ; | |
11844 | PyObject * obj0 = 0 ; | |
11845 | char *kwnames[] = { | |
11846 | (char *) "sArray", NULL | |
11847 | }; | |
11848 | ||
11849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileTypeInfoSequence",kwnames,&obj0)) goto fail; | |
11850 | { | |
11851 | if (! PySequence_Check(obj0)) { | |
11852 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
11853 | SWIG_fail; | |
11854 | } | |
11855 | arg1 = new wxArrayString; | |
11856 | temp1 = True; | |
11857 | int i, len=PySequence_Length(obj0); | |
11858 | for (i=0; i<len; i++) { | |
11859 | PyObject* item = PySequence_GetItem(obj0, i); | |
11860 | #if wxUSE_UNICODE | |
11861 | PyObject* str = PyObject_Unicode(item); | |
11862 | #else | |
11863 | PyObject* str = PyObject_Str(item); | |
11864 | #endif | |
11865 | if (PyErr_Occurred()) SWIG_fail; | |
11866 | arg1->Add(Py2wxString(str)); | |
11867 | Py_DECREF(item); | |
11868 | Py_DECREF(str); | |
11869 | } | |
11870 | } | |
11871 | { | |
11872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11873 | result = (wxFileTypeInfo *)new wxFileTypeInfo((wxArrayString const &)*arg1); | |
11874 | ||
11875 | wxPyEndAllowThreads(__tstate); | |
11876 | if (PyErr_Occurred()) SWIG_fail; | |
11877 | } | |
11878 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); | |
11879 | { | |
11880 | if (temp1) delete arg1; | |
11881 | } | |
11882 | return resultobj; | |
11883 | fail: | |
11884 | { | |
11885 | if (temp1) delete arg1; | |
11886 | } | |
11887 | return NULL; | |
11888 | } | |
11889 | ||
11890 | ||
11891 | static PyObject *_wrap_new_NullFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11892 | PyObject *resultobj; | |
11893 | wxFileTypeInfo *result; | |
11894 | char *kwnames[] = { | |
11895 | NULL | |
11896 | }; | |
11897 | ||
11898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NullFileTypeInfo",kwnames)) goto fail; | |
11899 | { | |
11900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11901 | result = (wxFileTypeInfo *)new wxFileTypeInfo(); | |
11902 | ||
11903 | wxPyEndAllowThreads(__tstate); | |
11904 | if (PyErr_Occurred()) SWIG_fail; | |
11905 | } | |
11906 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); | |
11907 | return resultobj; | |
11908 | fail: | |
11909 | return NULL; | |
11910 | } | |
11911 | ||
11912 | ||
11913 | static PyObject *_wrap_FileTypeInfo_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11914 | PyObject *resultobj; | |
11915 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11916 | bool result; | |
11917 | PyObject * obj0 = 0 ; | |
11918 | char *kwnames[] = { | |
11919 | (char *) "self", NULL | |
11920 | }; | |
11921 | ||
11922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_IsValid",kwnames,&obj0)) goto fail; | |
11923 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
11924 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11925 | { | |
11926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11927 | result = (bool)((wxFileTypeInfo const *)arg1)->IsValid(); | |
11928 | ||
11929 | wxPyEndAllowThreads(__tstate); | |
11930 | if (PyErr_Occurred()) SWIG_fail; | |
11931 | } | |
11932 | { | |
11933 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11934 | } | |
11935 | return resultobj; | |
11936 | fail: | |
11937 | return NULL; | |
11938 | } | |
11939 | ||
11940 | ||
11941 | static PyObject *_wrap_FileTypeInfo_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11942 | PyObject *resultobj; | |
11943 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11944 | wxString *arg2 = 0 ; | |
11945 | int arg3 = (int) 0 ; | |
11946 | bool temp2 = False ; | |
11947 | PyObject * obj0 = 0 ; | |
11948 | PyObject * obj1 = 0 ; | |
11949 | PyObject * obj2 = 0 ; | |
11950 | char *kwnames[] = { | |
11951 | (char *) "self",(char *) "iconFile",(char *) "iconIndex", NULL | |
11952 | }; | |
11953 | ||
11954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileTypeInfo_SetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11955 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
11956 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11957 | { | |
11958 | arg2 = wxString_in_helper(obj1); | |
11959 | if (arg2 == NULL) SWIG_fail; | |
11960 | temp2 = True; | |
11961 | } | |
11962 | if (obj2) { | |
11963 | arg3 = (int) SWIG_AsInt(obj2); | |
11964 | if (PyErr_Occurred()) SWIG_fail; | |
11965 | } | |
11966 | { | |
11967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11968 | (arg1)->SetIcon((wxString const &)*arg2,arg3); | |
11969 | ||
11970 | wxPyEndAllowThreads(__tstate); | |
11971 | if (PyErr_Occurred()) SWIG_fail; | |
11972 | } | |
11973 | Py_INCREF(Py_None); resultobj = Py_None; | |
11974 | { | |
11975 | if (temp2) | |
11976 | delete arg2; | |
11977 | } | |
11978 | return resultobj; | |
11979 | fail: | |
11980 | { | |
11981 | if (temp2) | |
11982 | delete arg2; | |
11983 | } | |
11984 | return NULL; | |
11985 | } | |
11986 | ||
11987 | ||
11988 | static PyObject *_wrap_FileTypeInfo_SetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11989 | PyObject *resultobj; | |
11990 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11991 | wxString *arg2 = 0 ; | |
11992 | bool temp2 = False ; | |
11993 | PyObject * obj0 = 0 ; | |
11994 | PyObject * obj1 = 0 ; | |
11995 | char *kwnames[] = { | |
11996 | (char *) "self",(char *) "shortDesc", NULL | |
11997 | }; | |
11998 | ||
11999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileTypeInfo_SetShortDesc",kwnames,&obj0,&obj1)) goto fail; | |
12000 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12001 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12002 | { | |
12003 | arg2 = wxString_in_helper(obj1); | |
12004 | if (arg2 == NULL) SWIG_fail; | |
12005 | temp2 = True; | |
12006 | } | |
12007 | { | |
12008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12009 | (arg1)->SetShortDesc((wxString const &)*arg2); | |
12010 | ||
12011 | wxPyEndAllowThreads(__tstate); | |
12012 | if (PyErr_Occurred()) SWIG_fail; | |
12013 | } | |
12014 | Py_INCREF(Py_None); resultobj = Py_None; | |
12015 | { | |
12016 | if (temp2) | |
12017 | delete arg2; | |
12018 | } | |
12019 | return resultobj; | |
12020 | fail: | |
12021 | { | |
12022 | if (temp2) | |
12023 | delete arg2; | |
12024 | } | |
12025 | return NULL; | |
12026 | } | |
12027 | ||
12028 | ||
12029 | static PyObject *_wrap_FileTypeInfo_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12030 | PyObject *resultobj; | |
12031 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12032 | wxString *result; | |
12033 | PyObject * obj0 = 0 ; | |
12034 | char *kwnames[] = { | |
12035 | (char *) "self", NULL | |
12036 | }; | |
12037 | ||
12038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetMimeType",kwnames,&obj0)) goto fail; | |
12039 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12040 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12041 | { | |
12042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12043 | { | |
12044 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetMimeType(); | |
12045 | result = (wxString *) &_result_ref; | |
12046 | } | |
12047 | ||
12048 | wxPyEndAllowThreads(__tstate); | |
12049 | if (PyErr_Occurred()) SWIG_fail; | |
12050 | } | |
12051 | { | |
12052 | #if wxUSE_UNICODE | |
12053 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12054 | #else | |
12055 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12056 | #endif | |
12057 | } | |
12058 | return resultobj; | |
12059 | fail: | |
12060 | return NULL; | |
12061 | } | |
12062 | ||
12063 | ||
12064 | static PyObject *_wrap_FileTypeInfo_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12065 | PyObject *resultobj; | |
12066 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12067 | wxString *result; | |
12068 | PyObject * obj0 = 0 ; | |
12069 | char *kwnames[] = { | |
12070 | (char *) "self", NULL | |
12071 | }; | |
12072 | ||
12073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetOpenCommand",kwnames,&obj0)) goto fail; | |
12074 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12075 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12076 | { | |
12077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12078 | { | |
12079 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetOpenCommand(); | |
12080 | result = (wxString *) &_result_ref; | |
12081 | } | |
12082 | ||
12083 | wxPyEndAllowThreads(__tstate); | |
12084 | if (PyErr_Occurred()) SWIG_fail; | |
12085 | } | |
12086 | { | |
12087 | #if wxUSE_UNICODE | |
12088 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12089 | #else | |
12090 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12091 | #endif | |
12092 | } | |
12093 | return resultobj; | |
12094 | fail: | |
12095 | return NULL; | |
12096 | } | |
12097 | ||
12098 | ||
12099 | static PyObject *_wrap_FileTypeInfo_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12100 | PyObject *resultobj; | |
12101 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12102 | wxString *result; | |
12103 | PyObject * obj0 = 0 ; | |
12104 | char *kwnames[] = { | |
12105 | (char *) "self", NULL | |
12106 | }; | |
12107 | ||
12108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetPrintCommand",kwnames,&obj0)) goto fail; | |
12109 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12110 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12111 | { | |
12112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12113 | { | |
12114 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetPrintCommand(); | |
12115 | result = (wxString *) &_result_ref; | |
12116 | } | |
12117 | ||
12118 | wxPyEndAllowThreads(__tstate); | |
12119 | if (PyErr_Occurred()) SWIG_fail; | |
12120 | } | |
12121 | { | |
12122 | #if wxUSE_UNICODE | |
12123 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12124 | #else | |
12125 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12126 | #endif | |
12127 | } | |
12128 | return resultobj; | |
12129 | fail: | |
12130 | return NULL; | |
12131 | } | |
12132 | ||
12133 | ||
12134 | static PyObject *_wrap_FileTypeInfo_GetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12135 | PyObject *resultobj; | |
12136 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12137 | wxString *result; | |
12138 | PyObject * obj0 = 0 ; | |
12139 | char *kwnames[] = { | |
12140 | (char *) "self", NULL | |
12141 | }; | |
12142 | ||
12143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetShortDesc",kwnames,&obj0)) goto fail; | |
12144 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12145 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12146 | { | |
12147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12148 | { | |
12149 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetShortDesc(); | |
12150 | result = (wxString *) &_result_ref; | |
12151 | } | |
12152 | ||
12153 | wxPyEndAllowThreads(__tstate); | |
12154 | if (PyErr_Occurred()) SWIG_fail; | |
12155 | } | |
12156 | { | |
12157 | #if wxUSE_UNICODE | |
12158 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12159 | #else | |
12160 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12161 | #endif | |
12162 | } | |
12163 | return resultobj; | |
12164 | fail: | |
12165 | return NULL; | |
12166 | } | |
12167 | ||
12168 | ||
12169 | static PyObject *_wrap_FileTypeInfo_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12170 | PyObject *resultobj; | |
12171 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12172 | wxString *result; | |
12173 | PyObject * obj0 = 0 ; | |
12174 | char *kwnames[] = { | |
12175 | (char *) "self", NULL | |
12176 | }; | |
12177 | ||
12178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetDescription",kwnames,&obj0)) goto fail; | |
12179 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12180 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12181 | { | |
12182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12183 | { | |
12184 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetDescription(); | |
12185 | result = (wxString *) &_result_ref; | |
12186 | } | |
12187 | ||
12188 | wxPyEndAllowThreads(__tstate); | |
12189 | if (PyErr_Occurred()) SWIG_fail; | |
12190 | } | |
12191 | { | |
12192 | #if wxUSE_UNICODE | |
12193 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12194 | #else | |
12195 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12196 | #endif | |
12197 | } | |
12198 | return resultobj; | |
12199 | fail: | |
12200 | return NULL; | |
12201 | } | |
12202 | ||
12203 | ||
12204 | static PyObject *_wrap_FileTypeInfo_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12205 | PyObject *resultobj; | |
12206 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12207 | wxArrayString *result; | |
12208 | PyObject * obj0 = 0 ; | |
12209 | char *kwnames[] = { | |
12210 | (char *) "self", NULL | |
12211 | }; | |
12212 | ||
12213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensions",kwnames,&obj0)) goto fail; | |
12214 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12215 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12216 | { | |
12217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12218 | { | |
12219 | wxArrayString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetExtensions(); | |
12220 | result = (wxArrayString *) &_result_ref; | |
12221 | } | |
12222 | ||
12223 | wxPyEndAllowThreads(__tstate); | |
12224 | if (PyErr_Occurred()) SWIG_fail; | |
12225 | } | |
12226 | { | |
12227 | resultobj = wxArrayString2PyList_helper(*result); | |
12228 | } | |
12229 | return resultobj; | |
12230 | fail: | |
12231 | return NULL; | |
12232 | } | |
12233 | ||
12234 | ||
12235 | static PyObject *_wrap_FileTypeInfo_GetExtensionsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12236 | PyObject *resultobj; | |
12237 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12238 | int result; | |
12239 | PyObject * obj0 = 0 ; | |
12240 | char *kwnames[] = { | |
12241 | (char *) "self", NULL | |
12242 | }; | |
12243 | ||
12244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensionsCount",kwnames,&obj0)) goto fail; | |
12245 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12246 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12247 | { | |
12248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12249 | result = (int)((wxFileTypeInfo const *)arg1)->GetExtensionsCount(); | |
12250 | ||
12251 | wxPyEndAllowThreads(__tstate); | |
12252 | if (PyErr_Occurred()) SWIG_fail; | |
12253 | } | |
12254 | resultobj = SWIG_FromInt((int)result); | |
12255 | return resultobj; | |
12256 | fail: | |
12257 | return NULL; | |
12258 | } | |
12259 | ||
12260 | ||
12261 | static PyObject *_wrap_FileTypeInfo_GetIconFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12262 | PyObject *resultobj; | |
12263 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12264 | wxString *result; | |
12265 | PyObject * obj0 = 0 ; | |
12266 | char *kwnames[] = { | |
12267 | (char *) "self", NULL | |
12268 | }; | |
12269 | ||
12270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconFile",kwnames,&obj0)) goto fail; | |
12271 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12272 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12273 | { | |
12274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12275 | { | |
12276 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetIconFile(); | |
12277 | result = (wxString *) &_result_ref; | |
12278 | } | |
12279 | ||
12280 | wxPyEndAllowThreads(__tstate); | |
12281 | if (PyErr_Occurred()) SWIG_fail; | |
12282 | } | |
12283 | { | |
12284 | #if wxUSE_UNICODE | |
12285 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12286 | #else | |
12287 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12288 | #endif | |
12289 | } | |
12290 | return resultobj; | |
12291 | fail: | |
12292 | return NULL; | |
12293 | } | |
12294 | ||
12295 | ||
12296 | static PyObject *_wrap_FileTypeInfo_GetIconIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12297 | PyObject *resultobj; | |
12298 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12299 | int result; | |
12300 | PyObject * obj0 = 0 ; | |
12301 | char *kwnames[] = { | |
12302 | (char *) "self", NULL | |
12303 | }; | |
12304 | ||
12305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconIndex",kwnames,&obj0)) goto fail; | |
12306 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12308 | { | |
12309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12310 | result = (int)((wxFileTypeInfo const *)arg1)->GetIconIndex(); | |
12311 | ||
12312 | wxPyEndAllowThreads(__tstate); | |
12313 | if (PyErr_Occurred()) SWIG_fail; | |
12314 | } | |
12315 | resultobj = SWIG_FromInt((int)result); | |
12316 | return resultobj; | |
12317 | fail: | |
12318 | return NULL; | |
12319 | } | |
12320 | ||
12321 | ||
12322 | static PyObject * FileTypeInfo_swigregister(PyObject *self, PyObject *args) { | |
12323 | PyObject *obj; | |
12324 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12325 | SWIG_TypeClientData(SWIGTYPE_p_wxFileTypeInfo, obj); | |
12326 | Py_INCREF(obj); | |
12327 | return Py_BuildValue((char *)""); | |
12328 | } | |
12329 | static PyObject *_wrap_new_FileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12330 | PyObject *resultobj; | |
12331 | wxFileTypeInfo *arg1 = 0 ; | |
12332 | wxFileType *result; | |
12333 | PyObject * obj0 = 0 ; | |
12334 | char *kwnames[] = { | |
12335 | (char *) "ftInfo", NULL | |
12336 | }; | |
12337 | ||
12338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileType",kwnames,&obj0)) goto fail; | |
12339 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12340 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12341 | SWIG_fail; | |
12342 | if (arg1 == NULL) { | |
12343 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12344 | SWIG_fail; | |
12345 | } | |
12346 | { | |
12347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12348 | result = (wxFileType *)new wxFileType((wxFileTypeInfo const &)*arg1); | |
12349 | ||
12350 | wxPyEndAllowThreads(__tstate); | |
12351 | if (PyErr_Occurred()) SWIG_fail; | |
12352 | } | |
12353 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); | |
12354 | return resultobj; | |
12355 | fail: | |
12356 | return NULL; | |
12357 | } | |
12358 | ||
12359 | ||
12360 | static PyObject *_wrap_delete_FileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12361 | PyObject *resultobj; | |
12362 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12363 | PyObject * obj0 = 0 ; | |
12364 | char *kwnames[] = { | |
12365 | (char *) "self", NULL | |
12366 | }; | |
12367 | ||
12368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileType",kwnames,&obj0)) goto fail; | |
12369 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12370 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12371 | { | |
12372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12373 | delete arg1; | |
12374 | ||
12375 | wxPyEndAllowThreads(__tstate); | |
12376 | if (PyErr_Occurred()) SWIG_fail; | |
12377 | } | |
12378 | Py_INCREF(Py_None); resultobj = Py_None; | |
12379 | return resultobj; | |
12380 | fail: | |
12381 | return NULL; | |
12382 | } | |
12383 | ||
12384 | ||
12385 | static PyObject *_wrap_FileType_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12386 | PyObject *resultobj; | |
12387 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12388 | PyObject *result; | |
12389 | PyObject * obj0 = 0 ; | |
12390 | char *kwnames[] = { | |
12391 | (char *) "self", NULL | |
12392 | }; | |
12393 | ||
12394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeType",kwnames,&obj0)) goto fail; | |
12395 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12396 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12397 | { | |
12398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12399 | result = (PyObject *)wxFileType_GetMimeType(arg1); | |
12400 | ||
12401 | wxPyEndAllowThreads(__tstate); | |
12402 | if (PyErr_Occurred()) SWIG_fail; | |
12403 | } | |
12404 | resultobj = result; | |
12405 | return resultobj; | |
12406 | fail: | |
12407 | return NULL; | |
12408 | } | |
12409 | ||
12410 | ||
12411 | static PyObject *_wrap_FileType_GetMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12412 | PyObject *resultobj; | |
12413 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12414 | PyObject *result; | |
12415 | PyObject * obj0 = 0 ; | |
12416 | char *kwnames[] = { | |
12417 | (char *) "self", NULL | |
12418 | }; | |
12419 | ||
12420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeTypes",kwnames,&obj0)) goto fail; | |
12421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12423 | { | |
12424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12425 | result = (PyObject *)wxFileType_GetMimeTypes(arg1); | |
12426 | ||
12427 | wxPyEndAllowThreads(__tstate); | |
12428 | if (PyErr_Occurred()) SWIG_fail; | |
12429 | } | |
12430 | resultobj = result; | |
12431 | return resultobj; | |
12432 | fail: | |
12433 | return NULL; | |
12434 | } | |
12435 | ||
12436 | ||
12437 | static PyObject *_wrap_FileType_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12438 | PyObject *resultobj; | |
12439 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12440 | PyObject *result; | |
12441 | PyObject * obj0 = 0 ; | |
12442 | char *kwnames[] = { | |
12443 | (char *) "self", NULL | |
12444 | }; | |
12445 | ||
12446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetExtensions",kwnames,&obj0)) goto fail; | |
12447 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12448 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12449 | { | |
12450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12451 | result = (PyObject *)wxFileType_GetExtensions(arg1); | |
12452 | ||
12453 | wxPyEndAllowThreads(__tstate); | |
12454 | if (PyErr_Occurred()) SWIG_fail; | |
12455 | } | |
12456 | resultobj = result; | |
12457 | return resultobj; | |
12458 | fail: | |
12459 | return NULL; | |
12460 | } | |
12461 | ||
12462 | ||
12463 | static PyObject *_wrap_FileType_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12464 | PyObject *resultobj; | |
12465 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12466 | wxIcon *result; | |
12467 | PyObject * obj0 = 0 ; | |
12468 | char *kwnames[] = { | |
12469 | (char *) "self", NULL | |
12470 | }; | |
12471 | ||
12472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIcon",kwnames,&obj0)) goto fail; | |
12473 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12474 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12475 | { | |
12476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12477 | result = (wxIcon *)wxFileType_GetIcon(arg1); | |
12478 | ||
12479 | wxPyEndAllowThreads(__tstate); | |
12480 | if (PyErr_Occurred()) SWIG_fail; | |
12481 | } | |
12482 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); | |
12483 | return resultobj; | |
12484 | fail: | |
12485 | return NULL; | |
12486 | } | |
12487 | ||
12488 | ||
12489 | static PyObject *_wrap_FileType_GetIconInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12490 | PyObject *resultobj; | |
12491 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12492 | PyObject *result; | |
12493 | PyObject * obj0 = 0 ; | |
12494 | char *kwnames[] = { | |
12495 | (char *) "self", NULL | |
12496 | }; | |
12497 | ||
12498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIconInfo",kwnames,&obj0)) goto fail; | |
12499 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12500 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12501 | { | |
12502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12503 | result = (PyObject *)wxFileType_GetIconInfo(arg1); | |
12504 | ||
12505 | wxPyEndAllowThreads(__tstate); | |
12506 | if (PyErr_Occurred()) SWIG_fail; | |
12507 | } | |
12508 | resultobj = result; | |
12509 | return resultobj; | |
12510 | fail: | |
12511 | return NULL; | |
12512 | } | |
12513 | ||
12514 | ||
12515 | static PyObject *_wrap_FileType_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12516 | PyObject *resultobj; | |
12517 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12518 | PyObject *result; | |
12519 | PyObject * obj0 = 0 ; | |
12520 | char *kwnames[] = { | |
12521 | (char *) "self", NULL | |
12522 | }; | |
12523 | ||
12524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetDescription",kwnames,&obj0)) goto fail; | |
12525 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12526 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12527 | { | |
12528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12529 | result = (PyObject *)wxFileType_GetDescription(arg1); | |
12530 | ||
12531 | wxPyEndAllowThreads(__tstate); | |
12532 | if (PyErr_Occurred()) SWIG_fail; | |
12533 | } | |
12534 | resultobj = result; | |
12535 | return resultobj; | |
12536 | fail: | |
12537 | return NULL; | |
12538 | } | |
12539 | ||
12540 | ||
12541 | static PyObject *_wrap_FileType_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12542 | PyObject *resultobj; | |
12543 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12544 | wxString *arg2 = 0 ; | |
12545 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12546 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12547 | PyObject *result; | |
12548 | bool temp2 = False ; | |
12549 | bool temp3 = False ; | |
12550 | PyObject * obj0 = 0 ; | |
12551 | PyObject * obj1 = 0 ; | |
12552 | PyObject * obj2 = 0 ; | |
12553 | char *kwnames[] = { | |
12554 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
12555 | }; | |
12556 | ||
12557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetOpenCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12558 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12559 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12560 | { | |
12561 | arg2 = wxString_in_helper(obj1); | |
12562 | if (arg2 == NULL) SWIG_fail; | |
12563 | temp2 = True; | |
12564 | } | |
12565 | if (obj2) { | |
12566 | { | |
12567 | arg3 = wxString_in_helper(obj2); | |
12568 | if (arg3 == NULL) SWIG_fail; | |
12569 | temp3 = True; | |
12570 | } | |
12571 | } | |
12572 | { | |
12573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12574 | result = (PyObject *)wxFileType_GetOpenCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
12575 | ||
12576 | wxPyEndAllowThreads(__tstate); | |
12577 | if (PyErr_Occurred()) SWIG_fail; | |
12578 | } | |
12579 | resultobj = result; | |
12580 | { | |
12581 | if (temp2) | |
12582 | delete arg2; | |
12583 | } | |
12584 | { | |
12585 | if (temp3) | |
12586 | delete arg3; | |
12587 | } | |
12588 | return resultobj; | |
12589 | fail: | |
12590 | { | |
12591 | if (temp2) | |
12592 | delete arg2; | |
12593 | } | |
12594 | { | |
12595 | if (temp3) | |
12596 | delete arg3; | |
12597 | } | |
12598 | return NULL; | |
12599 | } | |
12600 | ||
12601 | ||
12602 | static PyObject *_wrap_FileType_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12603 | PyObject *resultobj; | |
12604 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12605 | wxString *arg2 = 0 ; | |
12606 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12607 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12608 | PyObject *result; | |
12609 | bool temp2 = False ; | |
12610 | bool temp3 = False ; | |
12611 | PyObject * obj0 = 0 ; | |
12612 | PyObject * obj1 = 0 ; | |
12613 | PyObject * obj2 = 0 ; | |
12614 | char *kwnames[] = { | |
12615 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
12616 | }; | |
12617 | ||
12618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetPrintCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12619 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12620 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12621 | { | |
12622 | arg2 = wxString_in_helper(obj1); | |
12623 | if (arg2 == NULL) SWIG_fail; | |
12624 | temp2 = True; | |
12625 | } | |
12626 | if (obj2) { | |
12627 | { | |
12628 | arg3 = wxString_in_helper(obj2); | |
12629 | if (arg3 == NULL) SWIG_fail; | |
12630 | temp3 = True; | |
12631 | } | |
12632 | } | |
12633 | { | |
12634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12635 | result = (PyObject *)wxFileType_GetPrintCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
12636 | ||
12637 | wxPyEndAllowThreads(__tstate); | |
12638 | if (PyErr_Occurred()) SWIG_fail; | |
12639 | } | |
12640 | resultobj = result; | |
12641 | { | |
12642 | if (temp2) | |
12643 | delete arg2; | |
12644 | } | |
12645 | { | |
12646 | if (temp3) | |
12647 | delete arg3; | |
12648 | } | |
12649 | return resultobj; | |
12650 | fail: | |
12651 | { | |
12652 | if (temp2) | |
12653 | delete arg2; | |
12654 | } | |
12655 | { | |
12656 | if (temp3) | |
12657 | delete arg3; | |
12658 | } | |
12659 | return NULL; | |
12660 | } | |
12661 | ||
12662 | ||
12663 | static PyObject *_wrap_FileType_GetAllCommands(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12664 | PyObject *resultobj; | |
12665 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12666 | wxString *arg2 = 0 ; | |
12667 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12668 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12669 | PyObject *result; | |
12670 | bool temp2 = False ; | |
12671 | bool temp3 = False ; | |
12672 | PyObject * obj0 = 0 ; | |
12673 | PyObject * obj1 = 0 ; | |
12674 | PyObject * obj2 = 0 ; | |
12675 | char *kwnames[] = { | |
12676 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
12677 | }; | |
12678 | ||
12679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetAllCommands",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12680 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12681 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12682 | { | |
12683 | arg2 = wxString_in_helper(obj1); | |
12684 | if (arg2 == NULL) SWIG_fail; | |
12685 | temp2 = True; | |
12686 | } | |
12687 | if (obj2) { | |
12688 | { | |
12689 | arg3 = wxString_in_helper(obj2); | |
12690 | if (arg3 == NULL) SWIG_fail; | |
12691 | temp3 = True; | |
12692 | } | |
12693 | } | |
12694 | { | |
12695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12696 | result = (PyObject *)wxFileType_GetAllCommands(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
12697 | ||
12698 | wxPyEndAllowThreads(__tstate); | |
12699 | if (PyErr_Occurred()) SWIG_fail; | |
12700 | } | |
12701 | resultobj = result; | |
12702 | { | |
12703 | if (temp2) | |
12704 | delete arg2; | |
12705 | } | |
12706 | { | |
12707 | if (temp3) | |
12708 | delete arg3; | |
12709 | } | |
12710 | return resultobj; | |
12711 | fail: | |
12712 | { | |
12713 | if (temp2) | |
12714 | delete arg2; | |
12715 | } | |
12716 | { | |
12717 | if (temp3) | |
12718 | delete arg3; | |
12719 | } | |
12720 | return NULL; | |
12721 | } | |
12722 | ||
12723 | ||
12724 | static PyObject *_wrap_FileType_SetCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12725 | PyObject *resultobj; | |
12726 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12727 | wxString *arg2 = 0 ; | |
12728 | wxString *arg3 = 0 ; | |
12729 | bool arg4 = (bool) True ; | |
12730 | bool result; | |
12731 | bool temp2 = False ; | |
12732 | bool temp3 = False ; | |
12733 | PyObject * obj0 = 0 ; | |
12734 | PyObject * obj1 = 0 ; | |
12735 | PyObject * obj2 = 0 ; | |
12736 | PyObject * obj3 = 0 ; | |
12737 | char *kwnames[] = { | |
12738 | (char *) "self",(char *) "cmd",(char *) "verb",(char *) "overwriteprompt", NULL | |
12739 | }; | |
12740 | ||
12741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FileType_SetCommand",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
12742 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12743 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12744 | { | |
12745 | arg2 = wxString_in_helper(obj1); | |
12746 | if (arg2 == NULL) SWIG_fail; | |
12747 | temp2 = True; | |
12748 | } | |
12749 | { | |
12750 | arg3 = wxString_in_helper(obj2); | |
12751 | if (arg3 == NULL) SWIG_fail; | |
12752 | temp3 = True; | |
12753 | } | |
12754 | if (obj3) { | |
12755 | arg4 = (bool) SWIG_AsBool(obj3); | |
12756 | if (PyErr_Occurred()) SWIG_fail; | |
12757 | } | |
12758 | { | |
12759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12760 | result = (bool)(arg1)->SetCommand((wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
12761 | ||
12762 | wxPyEndAllowThreads(__tstate); | |
12763 | if (PyErr_Occurred()) SWIG_fail; | |
12764 | } | |
12765 | { | |
12766 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12767 | } | |
12768 | { | |
12769 | if (temp2) | |
12770 | delete arg2; | |
12771 | } | |
12772 | { | |
12773 | if (temp3) | |
12774 | delete arg3; | |
12775 | } | |
12776 | return resultobj; | |
12777 | fail: | |
12778 | { | |
12779 | if (temp2) | |
12780 | delete arg2; | |
12781 | } | |
12782 | { | |
12783 | if (temp3) | |
12784 | delete arg3; | |
12785 | } | |
12786 | return NULL; | |
12787 | } | |
12788 | ||
12789 | ||
12790 | static PyObject *_wrap_FileType_SetDefaultIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12791 | PyObject *resultobj; | |
12792 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12793 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
12794 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
12795 | int arg3 = (int) 0 ; | |
12796 | bool result; | |
12797 | bool temp2 = False ; | |
12798 | PyObject * obj0 = 0 ; | |
12799 | PyObject * obj1 = 0 ; | |
12800 | PyObject * obj2 = 0 ; | |
12801 | char *kwnames[] = { | |
12802 | (char *) "self",(char *) "cmd",(char *) "index", NULL | |
12803 | }; | |
12804 | ||
12805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FileType_SetDefaultIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12806 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12807 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12808 | if (obj1) { | |
12809 | { | |
12810 | arg2 = wxString_in_helper(obj1); | |
12811 | if (arg2 == NULL) SWIG_fail; | |
12812 | temp2 = True; | |
12813 | } | |
12814 | } | |
12815 | if (obj2) { | |
12816 | arg3 = (int) SWIG_AsInt(obj2); | |
12817 | if (PyErr_Occurred()) SWIG_fail; | |
12818 | } | |
12819 | { | |
12820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12821 | result = (bool)(arg1)->SetDefaultIcon((wxString const &)*arg2,arg3); | |
12822 | ||
12823 | wxPyEndAllowThreads(__tstate); | |
12824 | if (PyErr_Occurred()) SWIG_fail; | |
12825 | } | |
12826 | { | |
12827 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12828 | } | |
12829 | { | |
12830 | if (temp2) | |
12831 | delete arg2; | |
12832 | } | |
12833 | return resultobj; | |
12834 | fail: | |
12835 | { | |
12836 | if (temp2) | |
12837 | delete arg2; | |
12838 | } | |
12839 | return NULL; | |
12840 | } | |
12841 | ||
12842 | ||
12843 | static PyObject *_wrap_FileType_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12844 | PyObject *resultobj; | |
12845 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12846 | bool result; | |
12847 | PyObject * obj0 = 0 ; | |
12848 | char *kwnames[] = { | |
12849 | (char *) "self", NULL | |
12850 | }; | |
12851 | ||
12852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_Unassociate",kwnames,&obj0)) goto fail; | |
12853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12855 | { | |
12856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12857 | result = (bool)(arg1)->Unassociate(); | |
12858 | ||
12859 | wxPyEndAllowThreads(__tstate); | |
12860 | if (PyErr_Occurred()) SWIG_fail; | |
12861 | } | |
12862 | { | |
12863 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12864 | } | |
12865 | return resultobj; | |
12866 | fail: | |
12867 | return NULL; | |
12868 | } | |
12869 | ||
12870 | ||
12871 | static PyObject *_wrap_FileType_ExpandCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12872 | PyObject *resultobj; | |
12873 | wxString *arg1 = 0 ; | |
12874 | wxString *arg2 = 0 ; | |
12875 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12876 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12877 | wxString result; | |
12878 | bool temp1 = False ; | |
12879 | bool temp2 = False ; | |
12880 | bool temp3 = False ; | |
12881 | PyObject * obj0 = 0 ; | |
12882 | PyObject * obj1 = 0 ; | |
12883 | PyObject * obj2 = 0 ; | |
12884 | char *kwnames[] = { | |
12885 | (char *) "command",(char *) "filename",(char *) "mimetype", NULL | |
12886 | }; | |
12887 | ||
12888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_ExpandCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12889 | { | |
12890 | arg1 = wxString_in_helper(obj0); | |
12891 | if (arg1 == NULL) SWIG_fail; | |
12892 | temp1 = True; | |
12893 | } | |
12894 | { | |
12895 | arg2 = wxString_in_helper(obj1); | |
12896 | if (arg2 == NULL) SWIG_fail; | |
12897 | temp2 = True; | |
12898 | } | |
12899 | if (obj2) { | |
12900 | { | |
12901 | arg3 = wxString_in_helper(obj2); | |
12902 | if (arg3 == NULL) SWIG_fail; | |
12903 | temp3 = True; | |
12904 | } | |
12905 | } | |
12906 | { | |
12907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12908 | result = FileType_ExpandCommand((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
12909 | ||
12910 | wxPyEndAllowThreads(__tstate); | |
12911 | if (PyErr_Occurred()) SWIG_fail; | |
12912 | } | |
12913 | { | |
12914 | #if wxUSE_UNICODE | |
12915 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12916 | #else | |
12917 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12918 | #endif | |
12919 | } | |
12920 | { | |
12921 | if (temp1) | |
12922 | delete arg1; | |
12923 | } | |
12924 | { | |
12925 | if (temp2) | |
12926 | delete arg2; | |
12927 | } | |
12928 | { | |
12929 | if (temp3) | |
12930 | delete arg3; | |
12931 | } | |
12932 | return resultobj; | |
12933 | fail: | |
12934 | { | |
12935 | if (temp1) | |
12936 | delete arg1; | |
12937 | } | |
12938 | { | |
12939 | if (temp2) | |
12940 | delete arg2; | |
12941 | } | |
12942 | { | |
12943 | if (temp3) | |
12944 | delete arg3; | |
12945 | } | |
12946 | return NULL; | |
12947 | } | |
12948 | ||
12949 | ||
12950 | static PyObject * FileType_swigregister(PyObject *self, PyObject *args) { | |
12951 | PyObject *obj; | |
12952 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12953 | SWIG_TypeClientData(SWIGTYPE_p_wxFileType, obj); | |
12954 | Py_INCREF(obj); | |
12955 | return Py_BuildValue((char *)""); | |
12956 | } | |
12957 | static int _wrap_TheMimeTypesManager_set(PyObject *_val) { | |
12958 | PyErr_SetString(PyExc_TypeError,"Variable TheMimeTypesManager is read-only."); | |
12959 | return 1; | |
12960 | } | |
12961 | ||
12962 | ||
12963 | static PyObject *_wrap_TheMimeTypesManager_get() { | |
12964 | PyObject *pyobj; | |
12965 | ||
12966 | pyobj = SWIG_NewPointerObj((void *)(wxTheMimeTypesManager), SWIGTYPE_p_wxMimeTypesManager, 0); | |
12967 | return pyobj; | |
12968 | } | |
12969 | ||
12970 | ||
12971 | static PyObject *_wrap_MimeTypesManager_IsOfType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12972 | PyObject *resultobj; | |
12973 | wxString *arg1 = 0 ; | |
12974 | wxString *arg2 = 0 ; | |
12975 | bool result; | |
12976 | bool temp1 = False ; | |
12977 | bool temp2 = False ; | |
12978 | PyObject * obj0 = 0 ; | |
12979 | PyObject * obj1 = 0 ; | |
12980 | char *kwnames[] = { | |
12981 | (char *) "mimeType",(char *) "wildcard", NULL | |
12982 | }; | |
12983 | ||
12984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_IsOfType",kwnames,&obj0,&obj1)) goto fail; | |
12985 | { | |
12986 | arg1 = wxString_in_helper(obj0); | |
12987 | if (arg1 == NULL) SWIG_fail; | |
12988 | temp1 = True; | |
12989 | } | |
12990 | { | |
12991 | arg2 = wxString_in_helper(obj1); | |
12992 | if (arg2 == NULL) SWIG_fail; | |
12993 | temp2 = True; | |
12994 | } | |
12995 | { | |
12996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12997 | result = (bool)wxMimeTypesManager::IsOfType((wxString const &)*arg1,(wxString const &)*arg2); | |
12998 | ||
12999 | wxPyEndAllowThreads(__tstate); | |
13000 | if (PyErr_Occurred()) SWIG_fail; | |
13001 | } | |
13002 | { | |
13003 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13004 | } | |
13005 | { | |
13006 | if (temp1) | |
13007 | delete arg1; | |
13008 | } | |
13009 | { | |
13010 | if (temp2) | |
13011 | delete arg2; | |
13012 | } | |
13013 | return resultobj; | |
13014 | fail: | |
13015 | { | |
13016 | if (temp1) | |
13017 | delete arg1; | |
13018 | } | |
13019 | { | |
13020 | if (temp2) | |
13021 | delete arg2; | |
13022 | } | |
13023 | return NULL; | |
13024 | } | |
13025 | ||
13026 | ||
13027 | static PyObject *_wrap_new_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13028 | PyObject *resultobj; | |
13029 | wxMimeTypesManager *result; | |
13030 | char *kwnames[] = { | |
13031 | NULL | |
13032 | }; | |
13033 | ||
13034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MimeTypesManager",kwnames)) goto fail; | |
13035 | { | |
13036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13037 | result = (wxMimeTypesManager *)new wxMimeTypesManager(); | |
13038 | ||
13039 | wxPyEndAllowThreads(__tstate); | |
13040 | if (PyErr_Occurred()) SWIG_fail; | |
13041 | } | |
13042 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMimeTypesManager, 1); | |
13043 | return resultobj; | |
13044 | fail: | |
13045 | return NULL; | |
13046 | } | |
13047 | ||
13048 | ||
13049 | static PyObject *_wrap_MimeTypesManager_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13050 | PyObject *resultobj; | |
13051 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13052 | int arg2 = (int) wxMAILCAP_ALL ; | |
13053 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13054 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13055 | bool temp3 = False ; | |
13056 | PyObject * obj0 = 0 ; | |
13057 | PyObject * obj1 = 0 ; | |
13058 | PyObject * obj2 = 0 ; | |
13059 | char *kwnames[] = { | |
13060 | (char *) "self",(char *) "mailcapStyle",(char *) "extraDir", NULL | |
13061 | }; | |
13062 | ||
13063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MimeTypesManager_Initialize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13064 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13066 | if (obj1) { | |
13067 | arg2 = (int) SWIG_AsInt(obj1); | |
13068 | if (PyErr_Occurred()) SWIG_fail; | |
13069 | } | |
13070 | if (obj2) { | |
13071 | { | |
13072 | arg3 = wxString_in_helper(obj2); | |
13073 | if (arg3 == NULL) SWIG_fail; | |
13074 | temp3 = True; | |
13075 | } | |
13076 | } | |
13077 | { | |
13078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13079 | (arg1)->Initialize(arg2,(wxString const &)*arg3); | |
13080 | ||
13081 | wxPyEndAllowThreads(__tstate); | |
13082 | if (PyErr_Occurred()) SWIG_fail; | |
13083 | } | |
13084 | Py_INCREF(Py_None); resultobj = Py_None; | |
13085 | { | |
13086 | if (temp3) | |
13087 | delete arg3; | |
13088 | } | |
13089 | return resultobj; | |
13090 | fail: | |
13091 | { | |
13092 | if (temp3) | |
13093 | delete arg3; | |
13094 | } | |
13095 | return NULL; | |
13096 | } | |
13097 | ||
13098 | ||
13099 | static PyObject *_wrap_MimeTypesManager_ClearData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13100 | PyObject *resultobj; | |
13101 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13102 | PyObject * obj0 = 0 ; | |
13103 | char *kwnames[] = { | |
13104 | (char *) "self", NULL | |
13105 | }; | |
13106 | ||
13107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_ClearData",kwnames,&obj0)) goto fail; | |
13108 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13109 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13110 | { | |
13111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13112 | (arg1)->ClearData(); | |
13113 | ||
13114 | wxPyEndAllowThreads(__tstate); | |
13115 | if (PyErr_Occurred()) SWIG_fail; | |
13116 | } | |
13117 | Py_INCREF(Py_None); resultobj = Py_None; | |
13118 | return resultobj; | |
13119 | fail: | |
13120 | return NULL; | |
13121 | } | |
13122 | ||
13123 | ||
13124 | static PyObject *_wrap_MimeTypesManager_GetFileTypeFromExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13125 | PyObject *resultobj; | |
13126 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13127 | wxString *arg2 = 0 ; | |
13128 | wxFileType *result; | |
13129 | bool temp2 = False ; | |
13130 | PyObject * obj0 = 0 ; | |
13131 | PyObject * obj1 = 0 ; | |
13132 | char *kwnames[] = { | |
13133 | (char *) "self",(char *) "ext", NULL | |
13134 | }; | |
13135 | ||
13136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromExtension",kwnames,&obj0,&obj1)) goto fail; | |
13137 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13138 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13139 | { | |
13140 | arg2 = wxString_in_helper(obj1); | |
13141 | if (arg2 == NULL) SWIG_fail; | |
13142 | temp2 = True; | |
13143 | } | |
13144 | { | |
13145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13146 | result = (wxFileType *)(arg1)->GetFileTypeFromExtension((wxString const &)*arg2); | |
13147 | ||
13148 | wxPyEndAllowThreads(__tstate); | |
13149 | if (PyErr_Occurred()) SWIG_fail; | |
13150 | } | |
13151 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); | |
13152 | { | |
13153 | if (temp2) | |
13154 | delete arg2; | |
13155 | } | |
13156 | return resultobj; | |
13157 | fail: | |
13158 | { | |
13159 | if (temp2) | |
13160 | delete arg2; | |
13161 | } | |
13162 | return NULL; | |
13163 | } | |
13164 | ||
13165 | ||
13166 | static PyObject *_wrap_MimeTypesManager_GetFileTypeFromMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13167 | PyObject *resultobj; | |
13168 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13169 | wxString *arg2 = 0 ; | |
13170 | wxFileType *result; | |
13171 | bool temp2 = False ; | |
13172 | PyObject * obj0 = 0 ; | |
13173 | PyObject * obj1 = 0 ; | |
13174 | char *kwnames[] = { | |
13175 | (char *) "self",(char *) "mimeType", NULL | |
13176 | }; | |
13177 | ||
13178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromMimeType",kwnames,&obj0,&obj1)) goto fail; | |
13179 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13180 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13181 | { | |
13182 | arg2 = wxString_in_helper(obj1); | |
13183 | if (arg2 == NULL) SWIG_fail; | |
13184 | temp2 = True; | |
13185 | } | |
13186 | { | |
13187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13188 | result = (wxFileType *)(arg1)->GetFileTypeFromMimeType((wxString const &)*arg2); | |
13189 | ||
13190 | wxPyEndAllowThreads(__tstate); | |
13191 | if (PyErr_Occurred()) SWIG_fail; | |
13192 | } | |
13193 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); | |
13194 | { | |
13195 | if (temp2) | |
13196 | delete arg2; | |
13197 | } | |
13198 | return resultobj; | |
13199 | fail: | |
13200 | { | |
13201 | if (temp2) | |
13202 | delete arg2; | |
13203 | } | |
13204 | return NULL; | |
13205 | } | |
13206 | ||
13207 | ||
13208 | static PyObject *_wrap_MimeTypesManager_ReadMailcap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13209 | PyObject *resultobj; | |
13210 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13211 | wxString *arg2 = 0 ; | |
13212 | bool arg3 = (bool) False ; | |
13213 | bool result; | |
13214 | bool temp2 = False ; | |
13215 | PyObject * obj0 = 0 ; | |
13216 | PyObject * obj1 = 0 ; | |
13217 | PyObject * obj2 = 0 ; | |
13218 | char *kwnames[] = { | |
13219 | (char *) "self",(char *) "filename",(char *) "fallback", NULL | |
13220 | }; | |
13221 | ||
13222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MimeTypesManager_ReadMailcap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13223 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13224 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13225 | { | |
13226 | arg2 = wxString_in_helper(obj1); | |
13227 | if (arg2 == NULL) SWIG_fail; | |
13228 | temp2 = True; | |
13229 | } | |
13230 | if (obj2) { | |
13231 | arg3 = (bool) SWIG_AsBool(obj2); | |
13232 | if (PyErr_Occurred()) SWIG_fail; | |
13233 | } | |
13234 | { | |
13235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13236 | result = (bool)(arg1)->ReadMailcap((wxString const &)*arg2,arg3); | |
13237 | ||
13238 | wxPyEndAllowThreads(__tstate); | |
13239 | if (PyErr_Occurred()) SWIG_fail; | |
13240 | } | |
13241 | { | |
13242 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13243 | } | |
13244 | { | |
13245 | if (temp2) | |
13246 | delete arg2; | |
13247 | } | |
13248 | return resultobj; | |
13249 | fail: | |
13250 | { | |
13251 | if (temp2) | |
13252 | delete arg2; | |
13253 | } | |
13254 | return NULL; | |
13255 | } | |
13256 | ||
13257 | ||
13258 | static PyObject *_wrap_MimeTypesManager_ReadMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13259 | PyObject *resultobj; | |
13260 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13261 | wxString *arg2 = 0 ; | |
13262 | bool result; | |
13263 | bool temp2 = False ; | |
13264 | PyObject * obj0 = 0 ; | |
13265 | PyObject * obj1 = 0 ; | |
13266 | char *kwnames[] = { | |
13267 | (char *) "self",(char *) "filename", NULL | |
13268 | }; | |
13269 | ||
13270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_ReadMimeTypes",kwnames,&obj0,&obj1)) goto fail; | |
13271 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13272 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13273 | { | |
13274 | arg2 = wxString_in_helper(obj1); | |
13275 | if (arg2 == NULL) SWIG_fail; | |
13276 | temp2 = True; | |
13277 | } | |
13278 | { | |
13279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13280 | result = (bool)(arg1)->ReadMimeTypes((wxString const &)*arg2); | |
13281 | ||
13282 | wxPyEndAllowThreads(__tstate); | |
13283 | if (PyErr_Occurred()) SWIG_fail; | |
13284 | } | |
13285 | { | |
13286 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13287 | } | |
13288 | { | |
13289 | if (temp2) | |
13290 | delete arg2; | |
13291 | } | |
13292 | return resultobj; | |
13293 | fail: | |
13294 | { | |
13295 | if (temp2) | |
13296 | delete arg2; | |
13297 | } | |
13298 | return NULL; | |
13299 | } | |
13300 | ||
13301 | ||
13302 | static PyObject *_wrap_MimeTypesManager_EnumAllFileTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13303 | PyObject *resultobj; | |
13304 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13305 | PyObject *result; | |
13306 | PyObject * obj0 = 0 ; | |
13307 | char *kwnames[] = { | |
13308 | (char *) "self", NULL | |
13309 | }; | |
13310 | ||
13311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_EnumAllFileTypes",kwnames,&obj0)) goto fail; | |
13312 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13313 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13314 | { | |
13315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13316 | result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(arg1); | |
13317 | ||
13318 | wxPyEndAllowThreads(__tstate); | |
13319 | if (PyErr_Occurred()) SWIG_fail; | |
13320 | } | |
13321 | resultobj = result; | |
13322 | return resultobj; | |
13323 | fail: | |
13324 | return NULL; | |
13325 | } | |
13326 | ||
13327 | ||
13328 | static PyObject *_wrap_MimeTypesManager_AddFallback(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13329 | PyObject *resultobj; | |
13330 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13331 | wxFileTypeInfo *arg2 = 0 ; | |
13332 | PyObject * obj0 = 0 ; | |
13333 | PyObject * obj1 = 0 ; | |
13334 | char *kwnames[] = { | |
13335 | (char *) "self",(char *) "ft", NULL | |
13336 | }; | |
13337 | ||
13338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_AddFallback",kwnames,&obj0,&obj1)) goto fail; | |
13339 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13340 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13341 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo, | |
13342 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13343 | SWIG_fail; | |
13344 | if (arg2 == NULL) { | |
13345 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13346 | SWIG_fail; | |
13347 | } | |
13348 | { | |
13349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13350 | (arg1)->AddFallback((wxFileTypeInfo const &)*arg2); | |
13351 | ||
13352 | wxPyEndAllowThreads(__tstate); | |
13353 | if (PyErr_Occurred()) SWIG_fail; | |
13354 | } | |
13355 | Py_INCREF(Py_None); resultobj = Py_None; | |
13356 | return resultobj; | |
13357 | fail: | |
13358 | return NULL; | |
13359 | } | |
13360 | ||
13361 | ||
13362 | static PyObject *_wrap_MimeTypesManager_Associate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13363 | PyObject *resultobj; | |
13364 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13365 | wxFileTypeInfo *arg2 = 0 ; | |
13366 | wxFileType *result; | |
13367 | PyObject * obj0 = 0 ; | |
13368 | PyObject * obj1 = 0 ; | |
13369 | char *kwnames[] = { | |
13370 | (char *) "self",(char *) "ftInfo", NULL | |
13371 | }; | |
13372 | ||
13373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Associate",kwnames,&obj0,&obj1)) goto fail; | |
13374 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13375 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13376 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo, | |
13377 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13378 | SWIG_fail; | |
13379 | if (arg2 == NULL) { | |
13380 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13381 | SWIG_fail; | |
13382 | } | |
13383 | { | |
13384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13385 | result = (wxFileType *)(arg1)->Associate((wxFileTypeInfo const &)*arg2); | |
13386 | ||
13387 | wxPyEndAllowThreads(__tstate); | |
13388 | if (PyErr_Occurred()) SWIG_fail; | |
13389 | } | |
13390 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); | |
13391 | return resultobj; | |
13392 | fail: | |
13393 | return NULL; | |
13394 | } | |
13395 | ||
13396 | ||
13397 | static PyObject *_wrap_MimeTypesManager_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13398 | PyObject *resultobj; | |
13399 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13400 | wxFileType *arg2 = (wxFileType *) 0 ; | |
13401 | bool result; | |
13402 | PyObject * obj0 = 0 ; | |
13403 | PyObject * obj1 = 0 ; | |
13404 | char *kwnames[] = { | |
13405 | (char *) "self",(char *) "ft", NULL | |
13406 | }; | |
13407 | ||
13408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Unassociate",kwnames,&obj0,&obj1)) goto fail; | |
13409 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13411 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileType, | |
13412 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13413 | { | |
13414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13415 | result = (bool)(arg1)->Unassociate(arg2); | |
13416 | ||
13417 | wxPyEndAllowThreads(__tstate); | |
13418 | if (PyErr_Occurred()) SWIG_fail; | |
13419 | } | |
13420 | { | |
13421 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13422 | } | |
13423 | return resultobj; | |
13424 | fail: | |
13425 | return NULL; | |
13426 | } | |
13427 | ||
13428 | ||
13429 | static PyObject *_wrap_delete_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13430 | PyObject *resultobj; | |
13431 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13432 | PyObject * obj0 = 0 ; | |
13433 | char *kwnames[] = { | |
13434 | (char *) "self", NULL | |
13435 | }; | |
13436 | ||
13437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MimeTypesManager",kwnames,&obj0)) goto fail; | |
13438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13440 | { | |
13441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13442 | delete arg1; | |
13443 | ||
13444 | wxPyEndAllowThreads(__tstate); | |
13445 | if (PyErr_Occurred()) SWIG_fail; | |
13446 | } | |
13447 | Py_INCREF(Py_None); resultobj = Py_None; | |
13448 | return resultobj; | |
13449 | fail: | |
13450 | return NULL; | |
13451 | } | |
13452 | ||
13453 | ||
13454 | static PyObject * MimeTypesManager_swigregister(PyObject *self, PyObject *args) { | |
13455 | PyObject *obj; | |
13456 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13457 | SWIG_TypeClientData(SWIGTYPE_p_wxMimeTypesManager, obj); | |
13458 | Py_INCREF(obj); | |
13459 | return Py_BuildValue((char *)""); | |
13460 | } | |
13461 | static int _wrap_ART_TOOLBAR_set(PyObject *_val) { | |
13462 | PyErr_SetString(PyExc_TypeError,"Variable ART_TOOLBAR is read-only."); | |
13463 | return 1; | |
13464 | } | |
13465 | ||
13466 | ||
13467 | static PyObject *_wrap_ART_TOOLBAR_get() { | |
13468 | PyObject *pyobj; | |
13469 | ||
13470 | { | |
13471 | #if wxUSE_UNICODE | |
13472 | pyobj = PyUnicode_FromWideChar((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len()); | |
13473 | #else | |
13474 | pyobj = PyString_FromStringAndSize((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len()); | |
13475 | #endif | |
13476 | } | |
13477 | return pyobj; | |
13478 | } | |
13479 | ||
13480 | ||
13481 | static int _wrap_ART_MENU_set(PyObject *_val) { | |
13482 | PyErr_SetString(PyExc_TypeError,"Variable ART_MENU is read-only."); | |
13483 | return 1; | |
13484 | } | |
13485 | ||
13486 | ||
13487 | static PyObject *_wrap_ART_MENU_get() { | |
13488 | PyObject *pyobj; | |
13489 | ||
13490 | { | |
13491 | #if wxUSE_UNICODE | |
13492 | pyobj = PyUnicode_FromWideChar((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len()); | |
13493 | #else | |
13494 | pyobj = PyString_FromStringAndSize((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len()); | |
13495 | #endif | |
13496 | } | |
13497 | return pyobj; | |
13498 | } | |
13499 | ||
13500 | ||
13501 | static int _wrap_ART_FRAME_ICON_set(PyObject *_val) { | |
13502 | PyErr_SetString(PyExc_TypeError,"Variable ART_FRAME_ICON is read-only."); | |
13503 | return 1; | |
13504 | } | |
13505 | ||
13506 | ||
13507 | static PyObject *_wrap_ART_FRAME_ICON_get() { | |
13508 | PyObject *pyobj; | |
13509 | ||
13510 | { | |
13511 | #if wxUSE_UNICODE | |
13512 | pyobj = PyUnicode_FromWideChar((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len()); | |
13513 | #else | |
13514 | pyobj = PyString_FromStringAndSize((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len()); | |
13515 | #endif | |
13516 | } | |
13517 | return pyobj; | |
13518 | } | |
13519 | ||
13520 | ||
13521 | static int _wrap_ART_CMN_DIALOG_set(PyObject *_val) { | |
13522 | PyErr_SetString(PyExc_TypeError,"Variable ART_CMN_DIALOG is read-only."); | |
13523 | return 1; | |
13524 | } | |
13525 | ||
13526 | ||
13527 | static PyObject *_wrap_ART_CMN_DIALOG_get() { | |
13528 | PyObject *pyobj; | |
13529 | ||
13530 | { | |
13531 | #if wxUSE_UNICODE | |
13532 | pyobj = PyUnicode_FromWideChar((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len()); | |
13533 | #else | |
13534 | pyobj = PyString_FromStringAndSize((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len()); | |
13535 | #endif | |
13536 | } | |
13537 | return pyobj; | |
13538 | } | |
13539 | ||
13540 | ||
13541 | static int _wrap_ART_HELP_BROWSER_set(PyObject *_val) { | |
13542 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BROWSER is read-only."); | |
13543 | return 1; | |
13544 | } | |
13545 | ||
13546 | ||
13547 | static PyObject *_wrap_ART_HELP_BROWSER_get() { | |
13548 | PyObject *pyobj; | |
13549 | ||
13550 | { | |
13551 | #if wxUSE_UNICODE | |
13552 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len()); | |
13553 | #else | |
13554 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len()); | |
13555 | #endif | |
13556 | } | |
13557 | return pyobj; | |
13558 | } | |
13559 | ||
13560 | ||
13561 | static int _wrap_ART_MESSAGE_BOX_set(PyObject *_val) { | |
13562 | PyErr_SetString(PyExc_TypeError,"Variable ART_MESSAGE_BOX is read-only."); | |
13563 | return 1; | |
13564 | } | |
13565 | ||
13566 | ||
13567 | static PyObject *_wrap_ART_MESSAGE_BOX_get() { | |
13568 | PyObject *pyobj; | |
13569 | ||
13570 | { | |
13571 | #if wxUSE_UNICODE | |
13572 | pyobj = PyUnicode_FromWideChar((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len()); | |
13573 | #else | |
13574 | pyobj = PyString_FromStringAndSize((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len()); | |
13575 | #endif | |
13576 | } | |
13577 | return pyobj; | |
13578 | } | |
13579 | ||
13580 | ||
13581 | static int _wrap_ART_OTHER_set(PyObject *_val) { | |
13582 | PyErr_SetString(PyExc_TypeError,"Variable ART_OTHER is read-only."); | |
13583 | return 1; | |
13584 | } | |
13585 | ||
13586 | ||
13587 | static PyObject *_wrap_ART_OTHER_get() { | |
13588 | PyObject *pyobj; | |
13589 | ||
13590 | { | |
13591 | #if wxUSE_UNICODE | |
13592 | pyobj = PyUnicode_FromWideChar((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len()); | |
13593 | #else | |
13594 | pyobj = PyString_FromStringAndSize((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len()); | |
13595 | #endif | |
13596 | } | |
13597 | return pyobj; | |
13598 | } | |
13599 | ||
13600 | ||
13601 | static int _wrap_ART_ADD_BOOKMARK_set(PyObject *_val) { | |
13602 | PyErr_SetString(PyExc_TypeError,"Variable ART_ADD_BOOKMARK is read-only."); | |
13603 | return 1; | |
13604 | } | |
13605 | ||
13606 | ||
13607 | static PyObject *_wrap_ART_ADD_BOOKMARK_get() { | |
13608 | PyObject *pyobj; | |
13609 | ||
13610 | { | |
13611 | #if wxUSE_UNICODE | |
13612 | pyobj = PyUnicode_FromWideChar((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len()); | |
13613 | #else | |
13614 | pyobj = PyString_FromStringAndSize((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len()); | |
13615 | #endif | |
13616 | } | |
13617 | return pyobj; | |
13618 | } | |
13619 | ||
13620 | ||
13621 | static int _wrap_ART_DEL_BOOKMARK_set(PyObject *_val) { | |
13622 | PyErr_SetString(PyExc_TypeError,"Variable ART_DEL_BOOKMARK is read-only."); | |
13623 | return 1; | |
13624 | } | |
13625 | ||
13626 | ||
13627 | static PyObject *_wrap_ART_DEL_BOOKMARK_get() { | |
13628 | PyObject *pyobj; | |
13629 | ||
13630 | { | |
13631 | #if wxUSE_UNICODE | |
13632 | pyobj = PyUnicode_FromWideChar((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len()); | |
13633 | #else | |
13634 | pyobj = PyString_FromStringAndSize((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len()); | |
13635 | #endif | |
13636 | } | |
13637 | return pyobj; | |
13638 | } | |
13639 | ||
13640 | ||
13641 | static int _wrap_ART_HELP_SIDE_PANEL_set(PyObject *_val) { | |
13642 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SIDE_PANEL is read-only."); | |
13643 | return 1; | |
13644 | } | |
13645 | ||
13646 | ||
13647 | static PyObject *_wrap_ART_HELP_SIDE_PANEL_get() { | |
13648 | PyObject *pyobj; | |
13649 | ||
13650 | { | |
13651 | #if wxUSE_UNICODE | |
13652 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len()); | |
13653 | #else | |
13654 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len()); | |
13655 | #endif | |
13656 | } | |
13657 | return pyobj; | |
13658 | } | |
13659 | ||
13660 | ||
13661 | static int _wrap_ART_HELP_SETTINGS_set(PyObject *_val) { | |
13662 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SETTINGS is read-only."); | |
13663 | return 1; | |
13664 | } | |
13665 | ||
13666 | ||
13667 | static PyObject *_wrap_ART_HELP_SETTINGS_get() { | |
13668 | PyObject *pyobj; | |
13669 | ||
13670 | { | |
13671 | #if wxUSE_UNICODE | |
13672 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len()); | |
13673 | #else | |
13674 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len()); | |
13675 | #endif | |
13676 | } | |
13677 | return pyobj; | |
13678 | } | |
13679 | ||
13680 | ||
13681 | static int _wrap_ART_HELP_BOOK_set(PyObject *_val) { | |
13682 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BOOK is read-only."); | |
13683 | return 1; | |
13684 | } | |
13685 | ||
13686 | ||
13687 | static PyObject *_wrap_ART_HELP_BOOK_get() { | |
13688 | PyObject *pyobj; | |
13689 | ||
13690 | { | |
13691 | #if wxUSE_UNICODE | |
13692 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len()); | |
13693 | #else | |
13694 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len()); | |
13695 | #endif | |
13696 | } | |
13697 | return pyobj; | |
13698 | } | |
13699 | ||
13700 | ||
13701 | static int _wrap_ART_HELP_FOLDER_set(PyObject *_val) { | |
13702 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_FOLDER is read-only."); | |
13703 | return 1; | |
13704 | } | |
13705 | ||
13706 | ||
13707 | static PyObject *_wrap_ART_HELP_FOLDER_get() { | |
13708 | PyObject *pyobj; | |
13709 | ||
13710 | { | |
13711 | #if wxUSE_UNICODE | |
13712 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len()); | |
13713 | #else | |
13714 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len()); | |
13715 | #endif | |
13716 | } | |
13717 | return pyobj; | |
13718 | } | |
13719 | ||
13720 | ||
13721 | static int _wrap_ART_HELP_PAGE_set(PyObject *_val) { | |
13722 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_PAGE is read-only."); | |
13723 | return 1; | |
13724 | } | |
13725 | ||
13726 | ||
13727 | static PyObject *_wrap_ART_HELP_PAGE_get() { | |
13728 | PyObject *pyobj; | |
13729 | ||
13730 | { | |
13731 | #if wxUSE_UNICODE | |
13732 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len()); | |
13733 | #else | |
13734 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len()); | |
13735 | #endif | |
13736 | } | |
13737 | return pyobj; | |
13738 | } | |
13739 | ||
13740 | ||
13741 | static int _wrap_ART_GO_BACK_set(PyObject *_val) { | |
13742 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_BACK is read-only."); | |
13743 | return 1; | |
13744 | } | |
13745 | ||
13746 | ||
13747 | static PyObject *_wrap_ART_GO_BACK_get() { | |
13748 | PyObject *pyobj; | |
13749 | ||
13750 | { | |
13751 | #if wxUSE_UNICODE | |
13752 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len()); | |
13753 | #else | |
13754 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len()); | |
13755 | #endif | |
13756 | } | |
13757 | return pyobj; | |
13758 | } | |
13759 | ||
13760 | ||
13761 | static int _wrap_ART_GO_FORWARD_set(PyObject *_val) { | |
13762 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_FORWARD is read-only."); | |
13763 | return 1; | |
13764 | } | |
13765 | ||
13766 | ||
13767 | static PyObject *_wrap_ART_GO_FORWARD_get() { | |
13768 | PyObject *pyobj; | |
13769 | ||
13770 | { | |
13771 | #if wxUSE_UNICODE | |
13772 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len()); | |
13773 | #else | |
13774 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len()); | |
13775 | #endif | |
13776 | } | |
13777 | return pyobj; | |
13778 | } | |
13779 | ||
13780 | ||
13781 | static int _wrap_ART_GO_UP_set(PyObject *_val) { | |
13782 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_UP is read-only."); | |
13783 | return 1; | |
13784 | } | |
13785 | ||
13786 | ||
13787 | static PyObject *_wrap_ART_GO_UP_get() { | |
13788 | PyObject *pyobj; | |
13789 | ||
13790 | { | |
13791 | #if wxUSE_UNICODE | |
13792 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len()); | |
13793 | #else | |
13794 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len()); | |
13795 | #endif | |
13796 | } | |
13797 | return pyobj; | |
13798 | } | |
13799 | ||
13800 | ||
13801 | static int _wrap_ART_GO_DOWN_set(PyObject *_val) { | |
13802 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DOWN is read-only."); | |
13803 | return 1; | |
13804 | } | |
13805 | ||
13806 | ||
13807 | static PyObject *_wrap_ART_GO_DOWN_get() { | |
13808 | PyObject *pyobj; | |
13809 | ||
13810 | { | |
13811 | #if wxUSE_UNICODE | |
13812 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len()); | |
13813 | #else | |
13814 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len()); | |
13815 | #endif | |
13816 | } | |
13817 | return pyobj; | |
13818 | } | |
13819 | ||
13820 | ||
13821 | static int _wrap_ART_GO_TO_PARENT_set(PyObject *_val) { | |
13822 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_TO_PARENT is read-only."); | |
13823 | return 1; | |
13824 | } | |
13825 | ||
13826 | ||
13827 | static PyObject *_wrap_ART_GO_TO_PARENT_get() { | |
13828 | PyObject *pyobj; | |
13829 | ||
13830 | { | |
13831 | #if wxUSE_UNICODE | |
13832 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len()); | |
13833 | #else | |
13834 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len()); | |
13835 | #endif | |
13836 | } | |
13837 | return pyobj; | |
13838 | } | |
13839 | ||
13840 | ||
13841 | static int _wrap_ART_GO_HOME_set(PyObject *_val) { | |
13842 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_HOME is read-only."); | |
13843 | return 1; | |
13844 | } | |
13845 | ||
13846 | ||
13847 | static PyObject *_wrap_ART_GO_HOME_get() { | |
13848 | PyObject *pyobj; | |
13849 | ||
13850 | { | |
13851 | #if wxUSE_UNICODE | |
13852 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len()); | |
13853 | #else | |
13854 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len()); | |
13855 | #endif | |
13856 | } | |
13857 | return pyobj; | |
13858 | } | |
13859 | ||
13860 | ||
13861 | static int _wrap_ART_FILE_OPEN_set(PyObject *_val) { | |
13862 | PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_OPEN is read-only."); | |
13863 | return 1; | |
13864 | } | |
13865 | ||
13866 | ||
13867 | static PyObject *_wrap_ART_FILE_OPEN_get() { | |
13868 | PyObject *pyobj; | |
13869 | ||
13870 | { | |
13871 | #if wxUSE_UNICODE | |
13872 | pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len()); | |
13873 | #else | |
13874 | pyobj = PyString_FromStringAndSize((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len()); | |
13875 | #endif | |
13876 | } | |
13877 | return pyobj; | |
13878 | } | |
13879 | ||
13880 | ||
13881 | static int _wrap_ART_PRINT_set(PyObject *_val) { | |
13882 | PyErr_SetString(PyExc_TypeError,"Variable ART_PRINT is read-only."); | |
13883 | return 1; | |
13884 | } | |
13885 | ||
13886 | ||
13887 | static PyObject *_wrap_ART_PRINT_get() { | |
13888 | PyObject *pyobj; | |
13889 | ||
13890 | { | |
13891 | #if wxUSE_UNICODE | |
13892 | pyobj = PyUnicode_FromWideChar((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len()); | |
13893 | #else | |
13894 | pyobj = PyString_FromStringAndSize((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len()); | |
13895 | #endif | |
13896 | } | |
13897 | return pyobj; | |
13898 | } | |
13899 | ||
13900 | ||
13901 | static int _wrap_ART_HELP_set(PyObject *_val) { | |
13902 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP is read-only."); | |
13903 | return 1; | |
13904 | } | |
13905 | ||
13906 | ||
13907 | static PyObject *_wrap_ART_HELP_get() { | |
13908 | PyObject *pyobj; | |
13909 | ||
13910 | { | |
13911 | #if wxUSE_UNICODE | |
13912 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len()); | |
13913 | #else | |
13914 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len()); | |
13915 | #endif | |
13916 | } | |
13917 | return pyobj; | |
13918 | } | |
13919 | ||
13920 | ||
13921 | static int _wrap_ART_TIP_set(PyObject *_val) { | |
13922 | PyErr_SetString(PyExc_TypeError,"Variable ART_TIP is read-only."); | |
13923 | return 1; | |
13924 | } | |
13925 | ||
13926 | ||
13927 | static PyObject *_wrap_ART_TIP_get() { | |
13928 | PyObject *pyobj; | |
13929 | ||
13930 | { | |
13931 | #if wxUSE_UNICODE | |
13932 | pyobj = PyUnicode_FromWideChar((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len()); | |
13933 | #else | |
13934 | pyobj = PyString_FromStringAndSize((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len()); | |
13935 | #endif | |
13936 | } | |
13937 | return pyobj; | |
13938 | } | |
13939 | ||
13940 | ||
13941 | static int _wrap_ART_REPORT_VIEW_set(PyObject *_val) { | |
13942 | PyErr_SetString(PyExc_TypeError,"Variable ART_REPORT_VIEW is read-only."); | |
13943 | return 1; | |
13944 | } | |
13945 | ||
13946 | ||
13947 | static PyObject *_wrap_ART_REPORT_VIEW_get() { | |
13948 | PyObject *pyobj; | |
13949 | ||
13950 | { | |
13951 | #if wxUSE_UNICODE | |
13952 | pyobj = PyUnicode_FromWideChar((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len()); | |
13953 | #else | |
13954 | pyobj = PyString_FromStringAndSize((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len()); | |
13955 | #endif | |
13956 | } | |
13957 | return pyobj; | |
13958 | } | |
13959 | ||
13960 | ||
13961 | static int _wrap_ART_LIST_VIEW_set(PyObject *_val) { | |
13962 | PyErr_SetString(PyExc_TypeError,"Variable ART_LIST_VIEW is read-only."); | |
13963 | return 1; | |
13964 | } | |
13965 | ||
13966 | ||
13967 | static PyObject *_wrap_ART_LIST_VIEW_get() { | |
13968 | PyObject *pyobj; | |
13969 | ||
13970 | { | |
13971 | #if wxUSE_UNICODE | |
13972 | pyobj = PyUnicode_FromWideChar((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len()); | |
13973 | #else | |
13974 | pyobj = PyString_FromStringAndSize((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len()); | |
13975 | #endif | |
13976 | } | |
13977 | return pyobj; | |
13978 | } | |
13979 | ||
13980 | ||
13981 | static int _wrap_ART_NEW_DIR_set(PyObject *_val) { | |
13982 | PyErr_SetString(PyExc_TypeError,"Variable ART_NEW_DIR is read-only."); | |
13983 | return 1; | |
13984 | } | |
13985 | ||
13986 | ||
13987 | static PyObject *_wrap_ART_NEW_DIR_get() { | |
13988 | PyObject *pyobj; | |
13989 | ||
13990 | { | |
13991 | #if wxUSE_UNICODE | |
13992 | pyobj = PyUnicode_FromWideChar((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len()); | |
13993 | #else | |
13994 | pyobj = PyString_FromStringAndSize((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len()); | |
13995 | #endif | |
13996 | } | |
13997 | return pyobj; | |
13998 | } | |
13999 | ||
14000 | ||
14001 | static int _wrap_ART_FOLDER_set(PyObject *_val) { | |
14002 | PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER is read-only."); | |
14003 | return 1; | |
14004 | } | |
14005 | ||
14006 | ||
14007 | static PyObject *_wrap_ART_FOLDER_get() { | |
14008 | PyObject *pyobj; | |
14009 | ||
14010 | { | |
14011 | #if wxUSE_UNICODE | |
14012 | pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len()); | |
14013 | #else | |
14014 | pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len()); | |
14015 | #endif | |
14016 | } | |
14017 | return pyobj; | |
14018 | } | |
14019 | ||
14020 | ||
14021 | static int _wrap_ART_GO_DIR_UP_set(PyObject *_val) { | |
14022 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DIR_UP is read-only."); | |
14023 | return 1; | |
14024 | } | |
14025 | ||
14026 | ||
14027 | static PyObject *_wrap_ART_GO_DIR_UP_get() { | |
14028 | PyObject *pyobj; | |
14029 | ||
14030 | { | |
14031 | #if wxUSE_UNICODE | |
14032 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len()); | |
14033 | #else | |
14034 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len()); | |
14035 | #endif | |
14036 | } | |
14037 | return pyobj; | |
14038 | } | |
14039 | ||
14040 | ||
14041 | static int _wrap_ART_EXECUTABLE_FILE_set(PyObject *_val) { | |
14042 | PyErr_SetString(PyExc_TypeError,"Variable ART_EXECUTABLE_FILE is read-only."); | |
14043 | return 1; | |
14044 | } | |
14045 | ||
14046 | ||
14047 | static PyObject *_wrap_ART_EXECUTABLE_FILE_get() { | |
14048 | PyObject *pyobj; | |
14049 | ||
14050 | { | |
14051 | #if wxUSE_UNICODE | |
14052 | pyobj = PyUnicode_FromWideChar((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len()); | |
14053 | #else | |
14054 | pyobj = PyString_FromStringAndSize((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len()); | |
14055 | #endif | |
14056 | } | |
14057 | return pyobj; | |
14058 | } | |
14059 | ||
14060 | ||
14061 | static int _wrap_ART_NORMAL_FILE_set(PyObject *_val) { | |
14062 | PyErr_SetString(PyExc_TypeError,"Variable ART_NORMAL_FILE is read-only."); | |
14063 | return 1; | |
14064 | } | |
14065 | ||
14066 | ||
14067 | static PyObject *_wrap_ART_NORMAL_FILE_get() { | |
14068 | PyObject *pyobj; | |
14069 | ||
14070 | { | |
14071 | #if wxUSE_UNICODE | |
14072 | pyobj = PyUnicode_FromWideChar((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len()); | |
14073 | #else | |
14074 | pyobj = PyString_FromStringAndSize((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len()); | |
14075 | #endif | |
14076 | } | |
14077 | return pyobj; | |
14078 | } | |
14079 | ||
14080 | ||
14081 | static int _wrap_ART_TICK_MARK_set(PyObject *_val) { | |
14082 | PyErr_SetString(PyExc_TypeError,"Variable ART_TICK_MARK is read-only."); | |
14083 | return 1; | |
14084 | } | |
14085 | ||
14086 | ||
14087 | static PyObject *_wrap_ART_TICK_MARK_get() { | |
14088 | PyObject *pyobj; | |
14089 | ||
14090 | { | |
14091 | #if wxUSE_UNICODE | |
14092 | pyobj = PyUnicode_FromWideChar((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len()); | |
14093 | #else | |
14094 | pyobj = PyString_FromStringAndSize((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len()); | |
14095 | #endif | |
14096 | } | |
14097 | return pyobj; | |
14098 | } | |
14099 | ||
14100 | ||
14101 | static int _wrap_ART_CROSS_MARK_set(PyObject *_val) { | |
14102 | PyErr_SetString(PyExc_TypeError,"Variable ART_CROSS_MARK is read-only."); | |
14103 | return 1; | |
14104 | } | |
14105 | ||
14106 | ||
14107 | static PyObject *_wrap_ART_CROSS_MARK_get() { | |
14108 | PyObject *pyobj; | |
14109 | ||
14110 | { | |
14111 | #if wxUSE_UNICODE | |
14112 | pyobj = PyUnicode_FromWideChar((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len()); | |
14113 | #else | |
14114 | pyobj = PyString_FromStringAndSize((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len()); | |
14115 | #endif | |
14116 | } | |
14117 | return pyobj; | |
14118 | } | |
14119 | ||
14120 | ||
14121 | static int _wrap_ART_ERROR_set(PyObject *_val) { | |
14122 | PyErr_SetString(PyExc_TypeError,"Variable ART_ERROR is read-only."); | |
14123 | return 1; | |
14124 | } | |
14125 | ||
14126 | ||
14127 | static PyObject *_wrap_ART_ERROR_get() { | |
14128 | PyObject *pyobj; | |
14129 | ||
14130 | { | |
14131 | #if wxUSE_UNICODE | |
14132 | pyobj = PyUnicode_FromWideChar((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len()); | |
14133 | #else | |
14134 | pyobj = PyString_FromStringAndSize((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len()); | |
14135 | #endif | |
14136 | } | |
14137 | return pyobj; | |
14138 | } | |
14139 | ||
14140 | ||
14141 | static int _wrap_ART_QUESTION_set(PyObject *_val) { | |
14142 | PyErr_SetString(PyExc_TypeError,"Variable ART_QUESTION is read-only."); | |
14143 | return 1; | |
14144 | } | |
14145 | ||
14146 | ||
14147 | static PyObject *_wrap_ART_QUESTION_get() { | |
14148 | PyObject *pyobj; | |
14149 | ||
14150 | { | |
14151 | #if wxUSE_UNICODE | |
14152 | pyobj = PyUnicode_FromWideChar((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len()); | |
14153 | #else | |
14154 | pyobj = PyString_FromStringAndSize((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len()); | |
14155 | #endif | |
14156 | } | |
14157 | return pyobj; | |
14158 | } | |
14159 | ||
14160 | ||
14161 | static int _wrap_ART_WARNING_set(PyObject *_val) { | |
14162 | PyErr_SetString(PyExc_TypeError,"Variable ART_WARNING is read-only."); | |
14163 | return 1; | |
14164 | } | |
14165 | ||
14166 | ||
14167 | static PyObject *_wrap_ART_WARNING_get() { | |
14168 | PyObject *pyobj; | |
14169 | ||
14170 | { | |
14171 | #if wxUSE_UNICODE | |
14172 | pyobj = PyUnicode_FromWideChar((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len()); | |
14173 | #else | |
14174 | pyobj = PyString_FromStringAndSize((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len()); | |
14175 | #endif | |
14176 | } | |
14177 | return pyobj; | |
14178 | } | |
14179 | ||
14180 | ||
14181 | static int _wrap_ART_INFORMATION_set(PyObject *_val) { | |
14182 | PyErr_SetString(PyExc_TypeError,"Variable ART_INFORMATION is read-only."); | |
14183 | return 1; | |
14184 | } | |
14185 | ||
14186 | ||
14187 | static PyObject *_wrap_ART_INFORMATION_get() { | |
14188 | PyObject *pyobj; | |
14189 | ||
14190 | { | |
14191 | #if wxUSE_UNICODE | |
14192 | pyobj = PyUnicode_FromWideChar((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len()); | |
14193 | #else | |
14194 | pyobj = PyString_FromStringAndSize((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len()); | |
14195 | #endif | |
14196 | } | |
14197 | return pyobj; | |
14198 | } | |
14199 | ||
14200 | ||
14201 | static int _wrap_ART_MISSING_IMAGE_set(PyObject *_val) { | |
14202 | PyErr_SetString(PyExc_TypeError,"Variable ART_MISSING_IMAGE is read-only."); | |
14203 | return 1; | |
14204 | } | |
14205 | ||
14206 | ||
14207 | static PyObject *_wrap_ART_MISSING_IMAGE_get() { | |
14208 | PyObject *pyobj; | |
14209 | ||
14210 | { | |
14211 | #if wxUSE_UNICODE | |
14212 | pyobj = PyUnicode_FromWideChar((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len()); | |
14213 | #else | |
14214 | pyobj = PyString_FromStringAndSize((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len()); | |
14215 | #endif | |
14216 | } | |
14217 | return pyobj; | |
14218 | } | |
14219 | ||
14220 | ||
14221 | static PyObject *_wrap_new_ArtProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14222 | PyObject *resultobj; | |
14223 | wxPyArtProvider *result; | |
14224 | char *kwnames[] = { | |
14225 | NULL | |
14226 | }; | |
14227 | ||
14228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ArtProvider",kwnames)) goto fail; | |
14229 | { | |
14230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14231 | result = (wxPyArtProvider *)new wxPyArtProvider(); | |
14232 | ||
14233 | wxPyEndAllowThreads(__tstate); | |
14234 | if (PyErr_Occurred()) SWIG_fail; | |
14235 | } | |
14236 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyArtProvider, 1); | |
14237 | return resultobj; | |
14238 | fail: | |
14239 | return NULL; | |
14240 | } | |
14241 | ||
14242 | ||
14243 | static PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14244 | PyObject *resultobj; | |
14245 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14246 | PyObject *arg2 = (PyObject *) 0 ; | |
14247 | PyObject *arg3 = (PyObject *) 0 ; | |
14248 | PyObject * obj0 = 0 ; | |
14249 | PyObject * obj1 = 0 ; | |
14250 | PyObject * obj2 = 0 ; | |
14251 | char *kwnames[] = { | |
14252 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
14253 | }; | |
14254 | ||
14255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ArtProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14256 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, | |
14257 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14258 | arg2 = obj1; | |
14259 | arg3 = obj2; | |
14260 | { | |
14261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14262 | (arg1)->_setCallbackInfo(arg2,arg3); | |
14263 | ||
14264 | wxPyEndAllowThreads(__tstate); | |
14265 | if (PyErr_Occurred()) SWIG_fail; | |
14266 | } | |
14267 | Py_INCREF(Py_None); resultobj = Py_None; | |
14268 | return resultobj; | |
14269 | fail: | |
14270 | return NULL; | |
14271 | } | |
14272 | ||
14273 | ||
14274 | static PyObject *_wrap_ArtProvider_PushProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14275 | PyObject *resultobj; | |
14276 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14277 | PyObject * obj0 = 0 ; | |
14278 | char *kwnames[] = { | |
14279 | (char *) "provider", NULL | |
14280 | }; | |
14281 | ||
14282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) goto fail; | |
14283 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, | |
14284 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14285 | { | |
14286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14287 | wxPyArtProvider::PushProvider(arg1); | |
14288 | ||
14289 | wxPyEndAllowThreads(__tstate); | |
14290 | if (PyErr_Occurred()) SWIG_fail; | |
14291 | } | |
14292 | Py_INCREF(Py_None); resultobj = Py_None; | |
14293 | return resultobj; | |
14294 | fail: | |
14295 | return NULL; | |
14296 | } | |
14297 | ||
14298 | ||
14299 | static PyObject *_wrap_ArtProvider_PopProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14300 | PyObject *resultobj; | |
14301 | bool result; | |
14302 | char *kwnames[] = { | |
14303 | NULL | |
14304 | }; | |
14305 | ||
14306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ArtProvider_PopProvider",kwnames)) goto fail; | |
14307 | { | |
14308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14309 | result = (bool)wxPyArtProvider::PopProvider(); | |
14310 | ||
14311 | wxPyEndAllowThreads(__tstate); | |
14312 | if (PyErr_Occurred()) SWIG_fail; | |
14313 | } | |
14314 | { | |
14315 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14316 | } | |
14317 | return resultobj; | |
14318 | fail: | |
14319 | return NULL; | |
14320 | } | |
14321 | ||
14322 | ||
14323 | static PyObject *_wrap_ArtProvider_RemoveProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14324 | PyObject *resultobj; | |
14325 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14326 | bool result; | |
14327 | PyObject * obj0 = 0 ; | |
14328 | char *kwnames[] = { | |
14329 | (char *) "provider", NULL | |
14330 | }; | |
14331 | ||
14332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_RemoveProvider",kwnames,&obj0)) goto fail; | |
14333 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, | |
14334 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14335 | { | |
14336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14337 | result = (bool)wxPyArtProvider::RemoveProvider(arg1); | |
14338 | ||
14339 | wxPyEndAllowThreads(__tstate); | |
14340 | if (PyErr_Occurred()) SWIG_fail; | |
14341 | } | |
14342 | { | |
14343 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14344 | } | |
14345 | return resultobj; | |
14346 | fail: | |
14347 | return NULL; | |
14348 | } | |
14349 | ||
14350 | ||
14351 | static PyObject *_wrap_ArtProvider_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14352 | PyObject *resultobj; | |
14353 | wxString *arg1 = 0 ; | |
14354 | wxString const &arg2_defvalue = wxPyART_OTHER ; | |
14355 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
14356 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
14357 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
14358 | wxBitmap result; | |
14359 | bool temp1 = False ; | |
14360 | bool temp2 = False ; | |
14361 | wxSize temp3 ; | |
14362 | PyObject * obj0 = 0 ; | |
14363 | PyObject * obj1 = 0 ; | |
14364 | PyObject * obj2 = 0 ; | |
14365 | char *kwnames[] = { | |
14366 | (char *) "id",(char *) "client",(char *) "size", NULL | |
14367 | }; | |
14368 | ||
14369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14370 | { | |
14371 | arg1 = wxString_in_helper(obj0); | |
14372 | if (arg1 == NULL) SWIG_fail; | |
14373 | temp1 = True; | |
14374 | } | |
14375 | if (obj1) { | |
14376 | { | |
14377 | arg2 = wxString_in_helper(obj1); | |
14378 | if (arg2 == NULL) SWIG_fail; | |
14379 | temp2 = True; | |
14380 | } | |
14381 | } | |
14382 | if (obj2) { | |
14383 | { | |
14384 | arg3 = &temp3; | |
14385 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
14386 | } | |
14387 | } | |
14388 | { | |
14389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14390 | result = wxPyArtProvider::GetBitmap((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3); | |
14391 | ||
14392 | wxPyEndAllowThreads(__tstate); | |
14393 | if (PyErr_Occurred()) SWIG_fail; | |
14394 | } | |
14395 | { | |
14396 | wxBitmap * resultptr; | |
14397 | resultptr = new wxBitmap((wxBitmap &) result); | |
14398 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
14399 | } | |
14400 | { | |
14401 | if (temp1) | |
14402 | delete arg1; | |
14403 | } | |
14404 | { | |
14405 | if (temp2) | |
14406 | delete arg2; | |
14407 | } | |
14408 | return resultobj; | |
14409 | fail: | |
14410 | { | |
14411 | if (temp1) | |
14412 | delete arg1; | |
14413 | } | |
14414 | { | |
14415 | if (temp2) | |
14416 | delete arg2; | |
14417 | } | |
14418 | return NULL; | |
14419 | } | |
14420 | ||
14421 | ||
14422 | static PyObject *_wrap_ArtProvider_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14423 | PyObject *resultobj; | |
14424 | wxString *arg1 = 0 ; | |
14425 | wxString const &arg2_defvalue = wxPyART_OTHER ; | |
14426 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
14427 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
14428 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
14429 | wxIcon result; | |
14430 | bool temp1 = False ; | |
14431 | bool temp2 = False ; | |
14432 | wxSize temp3 ; | |
14433 | PyObject * obj0 = 0 ; | |
14434 | PyObject * obj1 = 0 ; | |
14435 | PyObject * obj2 = 0 ; | |
14436 | char *kwnames[] = { | |
14437 | (char *) "id",(char *) "client",(char *) "size", NULL | |
14438 | }; | |
14439 | ||
14440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14441 | { | |
14442 | arg1 = wxString_in_helper(obj0); | |
14443 | if (arg1 == NULL) SWIG_fail; | |
14444 | temp1 = True; | |
14445 | } | |
14446 | if (obj1) { | |
14447 | { | |
14448 | arg2 = wxString_in_helper(obj1); | |
14449 | if (arg2 == NULL) SWIG_fail; | |
14450 | temp2 = True; | |
14451 | } | |
14452 | } | |
14453 | if (obj2) { | |
14454 | { | |
14455 | arg3 = &temp3; | |
14456 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
14457 | } | |
14458 | } | |
14459 | { | |
14460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14461 | result = wxPyArtProvider::GetIcon((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3); | |
14462 | ||
14463 | wxPyEndAllowThreads(__tstate); | |
14464 | if (PyErr_Occurred()) SWIG_fail; | |
14465 | } | |
14466 | { | |
14467 | wxIcon * resultptr; | |
14468 | resultptr = new wxIcon((wxIcon &) result); | |
14469 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1); | |
14470 | } | |
14471 | { | |
14472 | if (temp1) | |
14473 | delete arg1; | |
14474 | } | |
14475 | { | |
14476 | if (temp2) | |
14477 | delete arg2; | |
14478 | } | |
14479 | return resultobj; | |
14480 | fail: | |
14481 | { | |
14482 | if (temp1) | |
14483 | delete arg1; | |
14484 | } | |
14485 | { | |
14486 | if (temp2) | |
14487 | delete arg2; | |
14488 | } | |
14489 | return NULL; | |
14490 | } | |
14491 | ||
14492 | ||
14493 | static PyObject *_wrap_ArtProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14494 | PyObject *resultobj; | |
14495 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14496 | PyObject * obj0 = 0 ; | |
14497 | char *kwnames[] = { | |
14498 | (char *) "self", NULL | |
14499 | }; | |
14500 | ||
14501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Destroy",kwnames,&obj0)) goto fail; | |
14502 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, | |
14503 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14504 | { | |
14505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14506 | wxPyArtProvider_Destroy(arg1); | |
14507 | ||
14508 | wxPyEndAllowThreads(__tstate); | |
14509 | if (PyErr_Occurred()) SWIG_fail; | |
14510 | } | |
14511 | Py_INCREF(Py_None); resultobj = Py_None; | |
14512 | return resultobj; | |
14513 | fail: | |
14514 | return NULL; | |
14515 | } | |
14516 | ||
14517 | ||
14518 | static PyObject * ArtProvider_swigregister(PyObject *self, PyObject *args) { | |
14519 | PyObject *obj; | |
14520 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14521 | SWIG_TypeClientData(SWIGTYPE_p_wxPyArtProvider, obj); | |
14522 | Py_INCREF(obj); | |
14523 | return Py_BuildValue((char *)""); | |
14524 | } | |
14525 | static PyObject *_wrap_delete_ConfigBase(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14526 | PyObject *resultobj; | |
14527 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14528 | PyObject * obj0 = 0 ; | |
14529 | char *kwnames[] = { | |
14530 | (char *) "self", NULL | |
14531 | }; | |
14532 | ||
14533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigBase",kwnames,&obj0)) goto fail; | |
14534 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
14535 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14536 | { | |
14537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14538 | delete arg1; | |
14539 | ||
14540 | wxPyEndAllowThreads(__tstate); | |
14541 | if (PyErr_Occurred()) SWIG_fail; | |
14542 | } | |
14543 | Py_INCREF(Py_None); resultobj = Py_None; | |
14544 | return resultobj; | |
14545 | fail: | |
14546 | return NULL; | |
14547 | } | |
14548 | ||
14549 | ||
14550 | static PyObject *_wrap_ConfigBase_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14551 | PyObject *resultobj; | |
14552 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14553 | wxConfigBase *result; | |
14554 | PyObject * obj0 = 0 ; | |
14555 | char *kwnames[] = { | |
14556 | (char *) "config", NULL | |
14557 | }; | |
14558 | ||
14559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_Set",kwnames,&obj0)) goto fail; | |
14560 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
14561 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14562 | { | |
14563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14564 | result = (wxConfigBase *)wxConfigBase::Set(arg1); | |
14565 | ||
14566 | wxPyEndAllowThreads(__tstate); | |
14567 | if (PyErr_Occurred()) SWIG_fail; | |
14568 | } | |
14569 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); | |
14570 | return resultobj; | |
14571 | fail: | |
14572 | return NULL; | |
14573 | } | |
14574 | ||
14575 | ||
14576 | static PyObject *_wrap_ConfigBase_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14577 | PyObject *resultobj; | |
14578 | bool arg1 = (bool) True ; | |
14579 | wxConfigBase *result; | |
14580 | PyObject * obj0 = 0 ; | |
14581 | char *kwnames[] = { | |
14582 | (char *) "createOnDemand", NULL | |
14583 | }; | |
14584 | ||
14585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ConfigBase_Get",kwnames,&obj0)) goto fail; | |
14586 | if (obj0) { | |
14587 | arg1 = (bool) SWIG_AsBool(obj0); | |
14588 | if (PyErr_Occurred()) SWIG_fail; | |
14589 | } | |
14590 | { | |
14591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14592 | result = (wxConfigBase *)wxConfigBase::Get(arg1); | |
14593 | ||
14594 | wxPyEndAllowThreads(__tstate); | |
14595 | if (PyErr_Occurred()) SWIG_fail; | |
14596 | } | |
14597 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); | |
14598 | return resultobj; | |
14599 | fail: | |
14600 | return NULL; | |
14601 | } | |
14602 | ||
14603 | ||
14604 | static PyObject *_wrap_ConfigBase_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14605 | PyObject *resultobj; | |
14606 | wxConfigBase *result; | |
14607 | char *kwnames[] = { | |
14608 | NULL | |
14609 | }; | |
14610 | ||
14611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_Create",kwnames)) goto fail; | |
14612 | { | |
14613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14614 | result = (wxConfigBase *)wxConfigBase::Create(); | |
14615 | ||
14616 | wxPyEndAllowThreads(__tstate); | |
14617 | if (PyErr_Occurred()) SWIG_fail; | |
14618 | } | |
14619 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); | |
14620 | return resultobj; | |
14621 | fail: | |
14622 | return NULL; | |
14623 | } | |
14624 | ||
14625 | ||
14626 | static PyObject *_wrap_ConfigBase_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14627 | PyObject *resultobj; | |
14628 | char *kwnames[] = { | |
14629 | NULL | |
14630 | }; | |
14631 | ||
14632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_DontCreateOnDemand",kwnames)) goto fail; | |
14633 | { | |
14634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14635 | wxConfigBase::DontCreateOnDemand(); | |
14636 | ||
14637 | wxPyEndAllowThreads(__tstate); | |
14638 | if (PyErr_Occurred()) SWIG_fail; | |
14639 | } | |
14640 | Py_INCREF(Py_None); resultobj = Py_None; | |
14641 | return resultobj; | |
14642 | fail: | |
14643 | return NULL; | |
14644 | } | |
14645 | ||
14646 | ||
14647 | static PyObject *_wrap_ConfigBase_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14648 | PyObject *resultobj; | |
14649 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14650 | wxString *arg2 = 0 ; | |
14651 | bool temp2 = False ; | |
14652 | PyObject * obj0 = 0 ; | |
14653 | PyObject * obj1 = 0 ; | |
14654 | char *kwnames[] = { | |
14655 | (char *) "self",(char *) "path", NULL | |
14656 | }; | |
14657 | ||
14658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
14659 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
14660 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14661 | { | |
14662 | arg2 = wxString_in_helper(obj1); | |
14663 | if (arg2 == NULL) SWIG_fail; | |
14664 | temp2 = True; | |
14665 | } | |
14666 | { | |
14667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14668 | (arg1)->SetPath((wxString const &)*arg2); | |
14669 | ||
14670 | wxPyEndAllowThreads(__tstate); | |
14671 | if (PyErr_Occurred()) SWIG_fail; | |
14672 | } | |
14673 | Py_INCREF(Py_None); resultobj = Py_None; | |
14674 | { | |
14675 | if (temp2) | |
14676 | delete arg2; | |
14677 | } | |
14678 | return resultobj; | |
14679 | fail: | |
14680 | { | |
14681 | if (temp2) | |
14682 | delete arg2; | |
14683 | } | |
14684 | return NULL; | |
14685 | } | |
14686 | ||
14687 | ||
14688 | static PyObject *_wrap_ConfigBase_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14689 | PyObject *resultobj; | |
14690 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14691 | wxString *result; | |
14692 | PyObject * obj0 = 0 ; | |
14693 | char *kwnames[] = { | |
14694 | (char *) "self", NULL | |
14695 | }; | |
14696 | ||
14697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetPath",kwnames,&obj0)) goto fail; | |
14698 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
14699 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14700 | { | |
14701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14702 | { | |
14703 | wxString const &_result_ref = ((wxConfigBase const *)arg1)->GetPath(); | |
14704 | result = (wxString *) &_result_ref; | |
14705 | } | |
14706 | ||
14707 | wxPyEndAllowThreads(__tstate); | |
14708 | if (PyErr_Occurred()) SWIG_fail; | |
14709 | } | |
14710 | { | |
14711 | #if wxUSE_UNICODE | |
14712 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
14713 | #else | |
14714 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
14715 | #endif | |
14716 | } | |
14717 | return resultobj; | |
14718 | fail: | |
14719 | return NULL; | |
14720 | } | |
14721 | ||
14722 | ||
14723 | static PyObject *_wrap_ConfigBase_GetFirstGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14724 | PyObject *resultobj; | |
14725 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14726 | PyObject *result; | |
14727 | PyObject * obj0 = 0 ; | |
14728 | char *kwnames[] = { | |
14729 | (char *) "self", NULL | |
14730 | }; | |
14731 | ||
14732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstGroup",kwnames,&obj0)) goto fail; | |
14733 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
14734 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14735 | { | |
14736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14737 | result = (PyObject *)wxConfigBase_GetFirstGroup(arg1); | |
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_GetNextGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14750 | PyObject *resultobj; | |
14751 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14752 | long arg2 ; | |
14753 | PyObject *result; | |
14754 | PyObject * obj0 = 0 ; | |
14755 | PyObject * obj1 = 0 ; | |
14756 | char *kwnames[] = { | |
14757 | (char *) "self",(char *) "index", NULL | |
14758 | }; | |
14759 | ||
14760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextGroup",kwnames,&obj0,&obj1)) goto fail; | |
14761 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
14762 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14763 | arg2 = (long) SWIG_AsLong(obj1); | |
14764 | if (PyErr_Occurred()) SWIG_fail; | |
14765 | { | |
14766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14767 | result = (PyObject *)wxConfigBase_GetNextGroup(arg1,arg2); | |
14768 | ||
14769 | wxPyEndAllowThreads(__tstate); | |
14770 | if (PyErr_Occurred()) SWIG_fail; | |
14771 | } | |
14772 | resultobj = result; | |
14773 | return resultobj; | |
14774 | fail: | |
14775 | return NULL; | |
14776 | } | |
14777 | ||
14778 | ||
14779 | static PyObject *_wrap_ConfigBase_GetFirstEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14780 | PyObject *resultobj; | |
14781 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14782 | PyObject *result; | |
14783 | PyObject * obj0 = 0 ; | |
14784 | char *kwnames[] = { | |
14785 | (char *) "self", NULL | |
14786 | }; | |
14787 | ||
14788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstEntry",kwnames,&obj0)) goto fail; | |
14789 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
14790 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14791 | { | |
14792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14793 | result = (PyObject *)wxConfigBase_GetFirstEntry(arg1); | |
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_GetNextEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14806 | PyObject *resultobj; | |
14807 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14808 | long arg2 ; | |
14809 | PyObject *result; | |
14810 | PyObject * obj0 = 0 ; | |
14811 | PyObject * obj1 = 0 ; | |
14812 | char *kwnames[] = { | |
14813 | (char *) "self",(char *) "index", NULL | |
14814 | }; | |
14815 | ||
14816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextEntry",kwnames,&obj0,&obj1)) goto fail; | |
14817 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
14818 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14819 | arg2 = (long) SWIG_AsLong(obj1); | |
14820 | if (PyErr_Occurred()) SWIG_fail; | |
14821 | { | |
14822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14823 | result = (PyObject *)wxConfigBase_GetNextEntry(arg1,arg2); | |
14824 | ||
14825 | wxPyEndAllowThreads(__tstate); | |
14826 | if (PyErr_Occurred()) SWIG_fail; | |
14827 | } | |
14828 | resultobj = result; | |
14829 | return resultobj; | |
14830 | fail: | |
14831 | return NULL; | |
14832 | } | |
14833 | ||
14834 | ||
14835 | static PyObject *_wrap_ConfigBase_GetNumberOfEntries(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14836 | PyObject *resultobj; | |
14837 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14838 | bool arg2 = (bool) False ; | |
14839 | size_t result; | |
14840 | PyObject * obj0 = 0 ; | |
14841 | PyObject * obj1 = 0 ; | |
14842 | char *kwnames[] = { | |
14843 | (char *) "self",(char *) "recursive", NULL | |
14844 | }; | |
14845 | ||
14846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfEntries",kwnames,&obj0,&obj1)) goto fail; | |
14847 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
14848 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14849 | if (obj1) { | |
14850 | arg2 = (bool) SWIG_AsBool(obj1); | |
14851 | if (PyErr_Occurred()) SWIG_fail; | |
14852 | } | |
14853 | { | |
14854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14855 | result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfEntries(arg2); | |
14856 | ||
14857 | wxPyEndAllowThreads(__tstate); | |
14858 | if (PyErr_Occurred()) SWIG_fail; | |
14859 | } | |
14860 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
14861 | return resultobj; | |
14862 | fail: | |
14863 | return NULL; | |
14864 | } | |
14865 | ||
14866 | ||
14867 | static PyObject *_wrap_ConfigBase_GetNumberOfGroups(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14868 | PyObject *resultobj; | |
14869 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14870 | bool arg2 = (bool) False ; | |
14871 | size_t result; | |
14872 | PyObject * obj0 = 0 ; | |
14873 | PyObject * obj1 = 0 ; | |
14874 | char *kwnames[] = { | |
14875 | (char *) "self",(char *) "recursive", NULL | |
14876 | }; | |
14877 | ||
14878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfGroups",kwnames,&obj0,&obj1)) goto fail; | |
14879 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
14880 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14881 | if (obj1) { | |
14882 | arg2 = (bool) SWIG_AsBool(obj1); | |
14883 | if (PyErr_Occurred()) SWIG_fail; | |
14884 | } | |
14885 | { | |
14886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14887 | result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfGroups(arg2); | |
14888 | ||
14889 | wxPyEndAllowThreads(__tstate); | |
14890 | if (PyErr_Occurred()) SWIG_fail; | |
14891 | } | |
14892 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
14893 | return resultobj; | |
14894 | fail: | |
14895 | return NULL; | |
14896 | } | |
14897 | ||
14898 | ||
14899 | static PyObject *_wrap_ConfigBase_HasGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14900 | PyObject *resultobj; | |
14901 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14902 | wxString *arg2 = 0 ; | |
14903 | bool result; | |
14904 | bool temp2 = False ; | |
14905 | PyObject * obj0 = 0 ; | |
14906 | PyObject * obj1 = 0 ; | |
14907 | char *kwnames[] = { | |
14908 | (char *) "self",(char *) "name", NULL | |
14909 | }; | |
14910 | ||
14911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasGroup",kwnames,&obj0,&obj1)) goto fail; | |
14912 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
14913 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14914 | { | |
14915 | arg2 = wxString_in_helper(obj1); | |
14916 | if (arg2 == NULL) SWIG_fail; | |
14917 | temp2 = True; | |
14918 | } | |
14919 | { | |
14920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14921 | result = (bool)((wxConfigBase const *)arg1)->HasGroup((wxString const &)*arg2); | |
14922 | ||
14923 | wxPyEndAllowThreads(__tstate); | |
14924 | if (PyErr_Occurred()) SWIG_fail; | |
14925 | } | |
14926 | { | |
14927 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14928 | } | |
14929 | { | |
14930 | if (temp2) | |
14931 | delete arg2; | |
14932 | } | |
14933 | return resultobj; | |
14934 | fail: | |
14935 | { | |
14936 | if (temp2) | |
14937 | delete arg2; | |
14938 | } | |
14939 | return NULL; | |
14940 | } | |
14941 | ||
14942 | ||
14943 | static PyObject *_wrap_ConfigBase_HasEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14944 | PyObject *resultobj; | |
14945 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14946 | wxString *arg2 = 0 ; | |
14947 | bool result; | |
14948 | bool temp2 = False ; | |
14949 | PyObject * obj0 = 0 ; | |
14950 | PyObject * obj1 = 0 ; | |
14951 | char *kwnames[] = { | |
14952 | (char *) "self",(char *) "name", NULL | |
14953 | }; | |
14954 | ||
14955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasEntry",kwnames,&obj0,&obj1)) goto fail; | |
14956 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
14957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14958 | { | |
14959 | arg2 = wxString_in_helper(obj1); | |
14960 | if (arg2 == NULL) SWIG_fail; | |
14961 | temp2 = True; | |
14962 | } | |
14963 | { | |
14964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14965 | result = (bool)((wxConfigBase const *)arg1)->HasEntry((wxString const &)*arg2); | |
14966 | ||
14967 | wxPyEndAllowThreads(__tstate); | |
14968 | if (PyErr_Occurred()) SWIG_fail; | |
14969 | } | |
14970 | { | |
14971 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14972 | } | |
14973 | { | |
14974 | if (temp2) | |
14975 | delete arg2; | |
14976 | } | |
14977 | return resultobj; | |
14978 | fail: | |
14979 | { | |
14980 | if (temp2) | |
14981 | delete arg2; | |
14982 | } | |
14983 | return NULL; | |
14984 | } | |
14985 | ||
14986 | ||
14987 | static PyObject *_wrap_ConfigBase_Exists(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14988 | PyObject *resultobj; | |
14989 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14990 | wxString *arg2 = 0 ; | |
14991 | bool result; | |
14992 | bool temp2 = False ; | |
14993 | PyObject * obj0 = 0 ; | |
14994 | PyObject * obj1 = 0 ; | |
14995 | char *kwnames[] = { | |
14996 | (char *) "self",(char *) "name", NULL | |
14997 | }; | |
14998 | ||
14999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_Exists",kwnames,&obj0,&obj1)) goto fail; | |
15000 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15001 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15002 | { | |
15003 | arg2 = wxString_in_helper(obj1); | |
15004 | if (arg2 == NULL) SWIG_fail; | |
15005 | temp2 = True; | |
15006 | } | |
15007 | { | |
15008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15009 | result = (bool)((wxConfigBase const *)arg1)->Exists((wxString const &)*arg2); | |
15010 | ||
15011 | wxPyEndAllowThreads(__tstate); | |
15012 | if (PyErr_Occurred()) SWIG_fail; | |
15013 | } | |
15014 | { | |
15015 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15016 | } | |
15017 | { | |
15018 | if (temp2) | |
15019 | delete arg2; | |
15020 | } | |
15021 | return resultobj; | |
15022 | fail: | |
15023 | { | |
15024 | if (temp2) | |
15025 | delete arg2; | |
15026 | } | |
15027 | return NULL; | |
15028 | } | |
15029 | ||
15030 | ||
15031 | static PyObject *_wrap_ConfigBase_GetEntryType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15032 | PyObject *resultobj; | |
15033 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15034 | wxString *arg2 = 0 ; | |
15035 | int result; | |
15036 | bool temp2 = False ; | |
15037 | PyObject * obj0 = 0 ; | |
15038 | PyObject * obj1 = 0 ; | |
15039 | char *kwnames[] = { | |
15040 | (char *) "self",(char *) "name", NULL | |
15041 | }; | |
15042 | ||
15043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetEntryType",kwnames,&obj0,&obj1)) goto fail; | |
15044 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15045 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15046 | { | |
15047 | arg2 = wxString_in_helper(obj1); | |
15048 | if (arg2 == NULL) SWIG_fail; | |
15049 | temp2 = True; | |
15050 | } | |
15051 | { | |
15052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15053 | result = (int)((wxConfigBase const *)arg1)->GetEntryType((wxString const &)*arg2); | |
15054 | ||
15055 | wxPyEndAllowThreads(__tstate); | |
15056 | if (PyErr_Occurred()) SWIG_fail; | |
15057 | } | |
15058 | resultobj = SWIG_FromInt((int)result); | |
15059 | { | |
15060 | if (temp2) | |
15061 | delete arg2; | |
15062 | } | |
15063 | return resultobj; | |
15064 | fail: | |
15065 | { | |
15066 | if (temp2) | |
15067 | delete arg2; | |
15068 | } | |
15069 | return NULL; | |
15070 | } | |
15071 | ||
15072 | ||
15073 | static PyObject *_wrap_ConfigBase_Read(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15074 | PyObject *resultobj; | |
15075 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15076 | wxString *arg2 = 0 ; | |
15077 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
15078 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
15079 | wxString result; | |
15080 | bool temp2 = False ; | |
15081 | bool temp3 = False ; | |
15082 | PyObject * obj0 = 0 ; | |
15083 | PyObject * obj1 = 0 ; | |
15084 | PyObject * obj2 = 0 ; | |
15085 | char *kwnames[] = { | |
15086 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15087 | }; | |
15088 | ||
15089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_Read",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15090 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15091 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15092 | { | |
15093 | arg2 = wxString_in_helper(obj1); | |
15094 | if (arg2 == NULL) SWIG_fail; | |
15095 | temp2 = True; | |
15096 | } | |
15097 | if (obj2) { | |
15098 | { | |
15099 | arg3 = wxString_in_helper(obj2); | |
15100 | if (arg3 == NULL) SWIG_fail; | |
15101 | temp3 = True; | |
15102 | } | |
15103 | } | |
15104 | { | |
15105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15106 | result = (arg1)->Read((wxString const &)*arg2,(wxString const &)*arg3); | |
15107 | ||
15108 | wxPyEndAllowThreads(__tstate); | |
15109 | if (PyErr_Occurred()) SWIG_fail; | |
15110 | } | |
15111 | { | |
15112 | #if wxUSE_UNICODE | |
15113 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15114 | #else | |
15115 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15116 | #endif | |
15117 | } | |
15118 | { | |
15119 | if (temp2) | |
15120 | delete arg2; | |
15121 | } | |
15122 | { | |
15123 | if (temp3) | |
15124 | delete arg3; | |
15125 | } | |
15126 | return resultobj; | |
15127 | fail: | |
15128 | { | |
15129 | if (temp2) | |
15130 | delete arg2; | |
15131 | } | |
15132 | { | |
15133 | if (temp3) | |
15134 | delete arg3; | |
15135 | } | |
15136 | return NULL; | |
15137 | } | |
15138 | ||
15139 | ||
15140 | static PyObject *_wrap_ConfigBase_ReadInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15141 | PyObject *resultobj; | |
15142 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15143 | wxString *arg2 = 0 ; | |
15144 | long arg3 = (long) 0 ; | |
15145 | long result; | |
15146 | bool temp2 = False ; | |
15147 | PyObject * obj0 = 0 ; | |
15148 | PyObject * obj1 = 0 ; | |
15149 | PyObject * obj2 = 0 ; | |
15150 | char *kwnames[] = { | |
15151 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15152 | }; | |
15153 | ||
15154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadInt",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15157 | { | |
15158 | arg2 = wxString_in_helper(obj1); | |
15159 | if (arg2 == NULL) SWIG_fail; | |
15160 | temp2 = True; | |
15161 | } | |
15162 | if (obj2) { | |
15163 | arg3 = (long) SWIG_AsLong(obj2); | |
15164 | if (PyErr_Occurred()) SWIG_fail; | |
15165 | } | |
15166 | { | |
15167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15168 | result = (long)wxConfigBase_ReadInt(arg1,(wxString const &)*arg2,arg3); | |
15169 | ||
15170 | wxPyEndAllowThreads(__tstate); | |
15171 | if (PyErr_Occurred()) SWIG_fail; | |
15172 | } | |
15173 | resultobj = SWIG_FromLong((long)result); | |
15174 | { | |
15175 | if (temp2) | |
15176 | delete arg2; | |
15177 | } | |
15178 | return resultobj; | |
15179 | fail: | |
15180 | { | |
15181 | if (temp2) | |
15182 | delete arg2; | |
15183 | } | |
15184 | return NULL; | |
15185 | } | |
15186 | ||
15187 | ||
15188 | static PyObject *_wrap_ConfigBase_ReadFloat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15189 | PyObject *resultobj; | |
15190 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15191 | wxString *arg2 = 0 ; | |
15192 | double arg3 = (double) 0.0 ; | |
15193 | double result; | |
15194 | bool temp2 = False ; | |
15195 | PyObject * obj0 = 0 ; | |
15196 | PyObject * obj1 = 0 ; | |
15197 | PyObject * obj2 = 0 ; | |
15198 | char *kwnames[] = { | |
15199 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15200 | }; | |
15201 | ||
15202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadFloat",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15203 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15204 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15205 | { | |
15206 | arg2 = wxString_in_helper(obj1); | |
15207 | if (arg2 == NULL) SWIG_fail; | |
15208 | temp2 = True; | |
15209 | } | |
15210 | if (obj2) { | |
15211 | arg3 = (double) SWIG_AsDouble(obj2); | |
15212 | if (PyErr_Occurred()) SWIG_fail; | |
15213 | } | |
15214 | { | |
15215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15216 | result = (double)wxConfigBase_ReadFloat(arg1,(wxString const &)*arg2,arg3); | |
15217 | ||
15218 | wxPyEndAllowThreads(__tstate); | |
15219 | if (PyErr_Occurred()) SWIG_fail; | |
15220 | } | |
15221 | resultobj = SWIG_FromDouble((double)result); | |
15222 | { | |
15223 | if (temp2) | |
15224 | delete arg2; | |
15225 | } | |
15226 | return resultobj; | |
15227 | fail: | |
15228 | { | |
15229 | if (temp2) | |
15230 | delete arg2; | |
15231 | } | |
15232 | return NULL; | |
15233 | } | |
15234 | ||
15235 | ||
15236 | static PyObject *_wrap_ConfigBase_ReadBool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15237 | PyObject *resultobj; | |
15238 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15239 | wxString *arg2 = 0 ; | |
15240 | bool arg3 = (bool) False ; | |
15241 | bool result; | |
15242 | bool temp2 = False ; | |
15243 | PyObject * obj0 = 0 ; | |
15244 | PyObject * obj1 = 0 ; | |
15245 | PyObject * obj2 = 0 ; | |
15246 | char *kwnames[] = { | |
15247 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15248 | }; | |
15249 | ||
15250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadBool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15253 | { | |
15254 | arg2 = wxString_in_helper(obj1); | |
15255 | if (arg2 == NULL) SWIG_fail; | |
15256 | temp2 = True; | |
15257 | } | |
15258 | if (obj2) { | |
15259 | arg3 = (bool) SWIG_AsBool(obj2); | |
15260 | if (PyErr_Occurred()) SWIG_fail; | |
15261 | } | |
15262 | { | |
15263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15264 | result = (bool)wxConfigBase_ReadBool(arg1,(wxString const &)*arg2,arg3); | |
15265 | ||
15266 | wxPyEndAllowThreads(__tstate); | |
15267 | if (PyErr_Occurred()) SWIG_fail; | |
15268 | } | |
15269 | { | |
15270 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15271 | } | |
15272 | { | |
15273 | if (temp2) | |
15274 | delete arg2; | |
15275 | } | |
15276 | return resultobj; | |
15277 | fail: | |
15278 | { | |
15279 | if (temp2) | |
15280 | delete arg2; | |
15281 | } | |
15282 | return NULL; | |
15283 | } | |
15284 | ||
15285 | ||
15286 | static PyObject *_wrap_ConfigBase_Write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15287 | PyObject *resultobj; | |
15288 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15289 | wxString *arg2 = 0 ; | |
15290 | wxString *arg3 = 0 ; | |
15291 | bool result; | |
15292 | bool temp2 = False ; | |
15293 | bool temp3 = False ; | |
15294 | PyObject * obj0 = 0 ; | |
15295 | PyObject * obj1 = 0 ; | |
15296 | PyObject * obj2 = 0 ; | |
15297 | char *kwnames[] = { | |
15298 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15299 | }; | |
15300 | ||
15301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_Write",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15302 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15303 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15304 | { | |
15305 | arg2 = wxString_in_helper(obj1); | |
15306 | if (arg2 == NULL) SWIG_fail; | |
15307 | temp2 = True; | |
15308 | } | |
15309 | { | |
15310 | arg3 = wxString_in_helper(obj2); | |
15311 | if (arg3 == NULL) SWIG_fail; | |
15312 | temp3 = True; | |
15313 | } | |
15314 | { | |
15315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15316 | result = (bool)(arg1)->Write((wxString const &)*arg2,(wxString const &)*arg3); | |
15317 | ||
15318 | wxPyEndAllowThreads(__tstate); | |
15319 | if (PyErr_Occurred()) SWIG_fail; | |
15320 | } | |
15321 | { | |
15322 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15323 | } | |
15324 | { | |
15325 | if (temp2) | |
15326 | delete arg2; | |
15327 | } | |
15328 | { | |
15329 | if (temp3) | |
15330 | delete arg3; | |
15331 | } | |
15332 | return resultobj; | |
15333 | fail: | |
15334 | { | |
15335 | if (temp2) | |
15336 | delete arg2; | |
15337 | } | |
15338 | { | |
15339 | if (temp3) | |
15340 | delete arg3; | |
15341 | } | |
15342 | return NULL; | |
15343 | } | |
15344 | ||
15345 | ||
15346 | static PyObject *_wrap_ConfigBase_WriteInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15347 | PyObject *resultobj; | |
15348 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15349 | wxString *arg2 = 0 ; | |
15350 | long arg3 ; | |
15351 | bool result; | |
15352 | bool temp2 = False ; | |
15353 | PyObject * obj0 = 0 ; | |
15354 | PyObject * obj1 = 0 ; | |
15355 | PyObject * obj2 = 0 ; | |
15356 | char *kwnames[] = { | |
15357 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15358 | }; | |
15359 | ||
15360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteInt",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15361 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15362 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15363 | { | |
15364 | arg2 = wxString_in_helper(obj1); | |
15365 | if (arg2 == NULL) SWIG_fail; | |
15366 | temp2 = True; | |
15367 | } | |
15368 | arg3 = (long) SWIG_AsLong(obj2); | |
15369 | if (PyErr_Occurred()) SWIG_fail; | |
15370 | { | |
15371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15372 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
15373 | ||
15374 | wxPyEndAllowThreads(__tstate); | |
15375 | if (PyErr_Occurred()) SWIG_fail; | |
15376 | } | |
15377 | { | |
15378 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15379 | } | |
15380 | { | |
15381 | if (temp2) | |
15382 | delete arg2; | |
15383 | } | |
15384 | return resultobj; | |
15385 | fail: | |
15386 | { | |
15387 | if (temp2) | |
15388 | delete arg2; | |
15389 | } | |
15390 | return NULL; | |
15391 | } | |
15392 | ||
15393 | ||
15394 | static PyObject *_wrap_ConfigBase_WriteFloat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15395 | PyObject *resultobj; | |
15396 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15397 | wxString *arg2 = 0 ; | |
15398 | double arg3 ; | |
15399 | bool result; | |
15400 | bool temp2 = False ; | |
15401 | PyObject * obj0 = 0 ; | |
15402 | PyObject * obj1 = 0 ; | |
15403 | PyObject * obj2 = 0 ; | |
15404 | char *kwnames[] = { | |
15405 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15406 | }; | |
15407 | ||
15408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteFloat",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15409 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15411 | { | |
15412 | arg2 = wxString_in_helper(obj1); | |
15413 | if (arg2 == NULL) SWIG_fail; | |
15414 | temp2 = True; | |
15415 | } | |
15416 | arg3 = (double) SWIG_AsDouble(obj2); | |
15417 | if (PyErr_Occurred()) SWIG_fail; | |
15418 | { | |
15419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15420 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
15421 | ||
15422 | wxPyEndAllowThreads(__tstate); | |
15423 | if (PyErr_Occurred()) SWIG_fail; | |
15424 | } | |
15425 | { | |
15426 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15427 | } | |
15428 | { | |
15429 | if (temp2) | |
15430 | delete arg2; | |
15431 | } | |
15432 | return resultobj; | |
15433 | fail: | |
15434 | { | |
15435 | if (temp2) | |
15436 | delete arg2; | |
15437 | } | |
15438 | return NULL; | |
15439 | } | |
15440 | ||
15441 | ||
15442 | static PyObject *_wrap_ConfigBase_WriteBool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15443 | PyObject *resultobj; | |
15444 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15445 | wxString *arg2 = 0 ; | |
15446 | bool arg3 ; | |
15447 | bool result; | |
15448 | bool temp2 = False ; | |
15449 | PyObject * obj0 = 0 ; | |
15450 | PyObject * obj1 = 0 ; | |
15451 | PyObject * obj2 = 0 ; | |
15452 | char *kwnames[] = { | |
15453 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15454 | }; | |
15455 | ||
15456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteBool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15457 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15458 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15459 | { | |
15460 | arg2 = wxString_in_helper(obj1); | |
15461 | if (arg2 == NULL) SWIG_fail; | |
15462 | temp2 = True; | |
15463 | } | |
15464 | arg3 = (bool) SWIG_AsBool(obj2); | |
15465 | if (PyErr_Occurred()) SWIG_fail; | |
15466 | { | |
15467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15468 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
15469 | ||
15470 | wxPyEndAllowThreads(__tstate); | |
15471 | if (PyErr_Occurred()) SWIG_fail; | |
15472 | } | |
15473 | { | |
15474 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15475 | } | |
15476 | { | |
15477 | if (temp2) | |
15478 | delete arg2; | |
15479 | } | |
15480 | return resultobj; | |
15481 | fail: | |
15482 | { | |
15483 | if (temp2) | |
15484 | delete arg2; | |
15485 | } | |
15486 | return NULL; | |
15487 | } | |
15488 | ||
15489 | ||
15490 | static PyObject *_wrap_ConfigBase_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15491 | PyObject *resultobj; | |
15492 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15493 | bool arg2 = (bool) False ; | |
15494 | bool result; | |
15495 | PyObject * obj0 = 0 ; | |
15496 | PyObject * obj1 = 0 ; | |
15497 | char *kwnames[] = { | |
15498 | (char *) "self",(char *) "currentOnly", NULL | |
15499 | }; | |
15500 | ||
15501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_Flush",kwnames,&obj0,&obj1)) goto fail; | |
15502 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15503 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15504 | if (obj1) { | |
15505 | arg2 = (bool) SWIG_AsBool(obj1); | |
15506 | if (PyErr_Occurred()) SWIG_fail; | |
15507 | } | |
15508 | { | |
15509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15510 | result = (bool)(arg1)->Flush(arg2); | |
15511 | ||
15512 | wxPyEndAllowThreads(__tstate); | |
15513 | if (PyErr_Occurred()) SWIG_fail; | |
15514 | } | |
15515 | { | |
15516 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15517 | } | |
15518 | return resultobj; | |
15519 | fail: | |
15520 | return NULL; | |
15521 | } | |
15522 | ||
15523 | ||
15524 | static PyObject *_wrap_ConfigBase_RenameEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15525 | PyObject *resultobj; | |
15526 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15527 | wxString *arg2 = 0 ; | |
15528 | wxString *arg3 = 0 ; | |
15529 | bool result; | |
15530 | bool temp2 = False ; | |
15531 | bool temp3 = False ; | |
15532 | PyObject * obj0 = 0 ; | |
15533 | PyObject * obj1 = 0 ; | |
15534 | PyObject * obj2 = 0 ; | |
15535 | char *kwnames[] = { | |
15536 | (char *) "self",(char *) "oldName",(char *) "newName", NULL | |
15537 | }; | |
15538 | ||
15539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15540 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15541 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15542 | { | |
15543 | arg2 = wxString_in_helper(obj1); | |
15544 | if (arg2 == NULL) SWIG_fail; | |
15545 | temp2 = True; | |
15546 | } | |
15547 | { | |
15548 | arg3 = wxString_in_helper(obj2); | |
15549 | if (arg3 == NULL) SWIG_fail; | |
15550 | temp3 = True; | |
15551 | } | |
15552 | { | |
15553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15554 | result = (bool)(arg1)->RenameEntry((wxString const &)*arg2,(wxString const &)*arg3); | |
15555 | ||
15556 | wxPyEndAllowThreads(__tstate); | |
15557 | if (PyErr_Occurred()) SWIG_fail; | |
15558 | } | |
15559 | { | |
15560 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15561 | } | |
15562 | { | |
15563 | if (temp2) | |
15564 | delete arg2; | |
15565 | } | |
15566 | { | |
15567 | if (temp3) | |
15568 | delete arg3; | |
15569 | } | |
15570 | return resultobj; | |
15571 | fail: | |
15572 | { | |
15573 | if (temp2) | |
15574 | delete arg2; | |
15575 | } | |
15576 | { | |
15577 | if (temp3) | |
15578 | delete arg3; | |
15579 | } | |
15580 | return NULL; | |
15581 | } | |
15582 | ||
15583 | ||
15584 | static PyObject *_wrap_ConfigBase_RenameGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15585 | PyObject *resultobj; | |
15586 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15587 | wxString *arg2 = 0 ; | |
15588 | wxString *arg3 = 0 ; | |
15589 | bool result; | |
15590 | bool temp2 = False ; | |
15591 | bool temp3 = False ; | |
15592 | PyObject * obj0 = 0 ; | |
15593 | PyObject * obj1 = 0 ; | |
15594 | PyObject * obj2 = 0 ; | |
15595 | char *kwnames[] = { | |
15596 | (char *) "self",(char *) "oldName",(char *) "newName", NULL | |
15597 | }; | |
15598 | ||
15599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameGroup",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15600 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15601 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15602 | { | |
15603 | arg2 = wxString_in_helper(obj1); | |
15604 | if (arg2 == NULL) SWIG_fail; | |
15605 | temp2 = True; | |
15606 | } | |
15607 | { | |
15608 | arg3 = wxString_in_helper(obj2); | |
15609 | if (arg3 == NULL) SWIG_fail; | |
15610 | temp3 = True; | |
15611 | } | |
15612 | { | |
15613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15614 | result = (bool)(arg1)->RenameGroup((wxString const &)*arg2,(wxString const &)*arg3); | |
15615 | ||
15616 | wxPyEndAllowThreads(__tstate); | |
15617 | if (PyErr_Occurred()) SWIG_fail; | |
15618 | } | |
15619 | { | |
15620 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15621 | } | |
15622 | { | |
15623 | if (temp2) | |
15624 | delete arg2; | |
15625 | } | |
15626 | { | |
15627 | if (temp3) | |
15628 | delete arg3; | |
15629 | } | |
15630 | return resultobj; | |
15631 | fail: | |
15632 | { | |
15633 | if (temp2) | |
15634 | delete arg2; | |
15635 | } | |
15636 | { | |
15637 | if (temp3) | |
15638 | delete arg3; | |
15639 | } | |
15640 | return NULL; | |
15641 | } | |
15642 | ||
15643 | ||
15644 | static PyObject *_wrap_ConfigBase_DeleteEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15645 | PyObject *resultobj; | |
15646 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15647 | wxString *arg2 = 0 ; | |
15648 | bool arg3 = (bool) True ; | |
15649 | bool result; | |
15650 | bool temp2 = False ; | |
15651 | PyObject * obj0 = 0 ; | |
15652 | PyObject * obj1 = 0 ; | |
15653 | PyObject * obj2 = 0 ; | |
15654 | char *kwnames[] = { | |
15655 | (char *) "self",(char *) "key",(char *) "deleteGroupIfEmpty", NULL | |
15656 | }; | |
15657 | ||
15658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_DeleteEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15659 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15660 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15661 | { | |
15662 | arg2 = wxString_in_helper(obj1); | |
15663 | if (arg2 == NULL) SWIG_fail; | |
15664 | temp2 = True; | |
15665 | } | |
15666 | if (obj2) { | |
15667 | arg3 = (bool) SWIG_AsBool(obj2); | |
15668 | if (PyErr_Occurred()) SWIG_fail; | |
15669 | } | |
15670 | { | |
15671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15672 | result = (bool)(arg1)->DeleteEntry((wxString const &)*arg2,arg3); | |
15673 | ||
15674 | wxPyEndAllowThreads(__tstate); | |
15675 | if (PyErr_Occurred()) SWIG_fail; | |
15676 | } | |
15677 | { | |
15678 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15679 | } | |
15680 | { | |
15681 | if (temp2) | |
15682 | delete arg2; | |
15683 | } | |
15684 | return resultobj; | |
15685 | fail: | |
15686 | { | |
15687 | if (temp2) | |
15688 | delete arg2; | |
15689 | } | |
15690 | return NULL; | |
15691 | } | |
15692 | ||
15693 | ||
15694 | static PyObject *_wrap_ConfigBase_DeleteGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15695 | PyObject *resultobj; | |
15696 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15697 | wxString *arg2 = 0 ; | |
15698 | bool result; | |
15699 | bool temp2 = False ; | |
15700 | PyObject * obj0 = 0 ; | |
15701 | PyObject * obj1 = 0 ; | |
15702 | char *kwnames[] = { | |
15703 | (char *) "self",(char *) "key", NULL | |
15704 | }; | |
15705 | ||
15706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_DeleteGroup",kwnames,&obj0,&obj1)) goto fail; | |
15707 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15708 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15709 | { | |
15710 | arg2 = wxString_in_helper(obj1); | |
15711 | if (arg2 == NULL) SWIG_fail; | |
15712 | temp2 = True; | |
15713 | } | |
15714 | { | |
15715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15716 | result = (bool)(arg1)->DeleteGroup((wxString const &)*arg2); | |
15717 | ||
15718 | wxPyEndAllowThreads(__tstate); | |
15719 | if (PyErr_Occurred()) SWIG_fail; | |
15720 | } | |
15721 | { | |
15722 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15723 | } | |
15724 | { | |
15725 | if (temp2) | |
15726 | delete arg2; | |
15727 | } | |
15728 | return resultobj; | |
15729 | fail: | |
15730 | { | |
15731 | if (temp2) | |
15732 | delete arg2; | |
15733 | } | |
15734 | return NULL; | |
15735 | } | |
15736 | ||
15737 | ||
15738 | static PyObject *_wrap_ConfigBase_DeleteAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15739 | PyObject *resultobj; | |
15740 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15741 | bool result; | |
15742 | PyObject * obj0 = 0 ; | |
15743 | char *kwnames[] = { | |
15744 | (char *) "self", NULL | |
15745 | }; | |
15746 | ||
15747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_DeleteAll",kwnames,&obj0)) goto fail; | |
15748 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15749 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15750 | { | |
15751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15752 | result = (bool)(arg1)->DeleteAll(); | |
15753 | ||
15754 | wxPyEndAllowThreads(__tstate); | |
15755 | if (PyErr_Occurred()) SWIG_fail; | |
15756 | } | |
15757 | { | |
15758 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15759 | } | |
15760 | return resultobj; | |
15761 | fail: | |
15762 | return NULL; | |
15763 | } | |
15764 | ||
15765 | ||
15766 | static PyObject *_wrap_ConfigBase_SetExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15767 | PyObject *resultobj; | |
15768 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15769 | bool arg2 = (bool) True ; | |
15770 | PyObject * obj0 = 0 ; | |
15771 | PyObject * obj1 = 0 ; | |
15772 | char *kwnames[] = { | |
15773 | (char *) "self",(char *) "doIt", NULL | |
15774 | }; | |
15775 | ||
15776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetExpandEnvVars",kwnames,&obj0,&obj1)) goto fail; | |
15777 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15778 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15779 | if (obj1) { | |
15780 | arg2 = (bool) SWIG_AsBool(obj1); | |
15781 | if (PyErr_Occurred()) SWIG_fail; | |
15782 | } | |
15783 | { | |
15784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15785 | (arg1)->SetExpandEnvVars(arg2); | |
15786 | ||
15787 | wxPyEndAllowThreads(__tstate); | |
15788 | if (PyErr_Occurred()) SWIG_fail; | |
15789 | } | |
15790 | Py_INCREF(Py_None); resultobj = Py_None; | |
15791 | return resultobj; | |
15792 | fail: | |
15793 | return NULL; | |
15794 | } | |
15795 | ||
15796 | ||
15797 | static PyObject *_wrap_ConfigBase_IsExpandingEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15798 | PyObject *resultobj; | |
15799 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15800 | bool result; | |
15801 | PyObject * obj0 = 0 ; | |
15802 | char *kwnames[] = { | |
15803 | (char *) "self", NULL | |
15804 | }; | |
15805 | ||
15806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsExpandingEnvVars",kwnames,&obj0)) goto fail; | |
15807 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15808 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15809 | { | |
15810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15811 | result = (bool)((wxConfigBase const *)arg1)->IsExpandingEnvVars(); | |
15812 | ||
15813 | wxPyEndAllowThreads(__tstate); | |
15814 | if (PyErr_Occurred()) SWIG_fail; | |
15815 | } | |
15816 | { | |
15817 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15818 | } | |
15819 | return resultobj; | |
15820 | fail: | |
15821 | return NULL; | |
15822 | } | |
15823 | ||
15824 | ||
15825 | static PyObject *_wrap_ConfigBase_SetRecordDefaults(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15826 | PyObject *resultobj; | |
15827 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15828 | bool arg2 = (bool) True ; | |
15829 | PyObject * obj0 = 0 ; | |
15830 | PyObject * obj1 = 0 ; | |
15831 | char *kwnames[] = { | |
15832 | (char *) "self",(char *) "doIt", NULL | |
15833 | }; | |
15834 | ||
15835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetRecordDefaults",kwnames,&obj0,&obj1)) goto fail; | |
15836 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15837 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15838 | if (obj1) { | |
15839 | arg2 = (bool) SWIG_AsBool(obj1); | |
15840 | if (PyErr_Occurred()) SWIG_fail; | |
15841 | } | |
15842 | { | |
15843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15844 | (arg1)->SetRecordDefaults(arg2); | |
15845 | ||
15846 | wxPyEndAllowThreads(__tstate); | |
15847 | if (PyErr_Occurred()) SWIG_fail; | |
15848 | } | |
15849 | Py_INCREF(Py_None); resultobj = Py_None; | |
15850 | return resultobj; | |
15851 | fail: | |
15852 | return NULL; | |
15853 | } | |
15854 | ||
15855 | ||
15856 | static PyObject *_wrap_ConfigBase_IsRecordingDefaults(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15857 | PyObject *resultobj; | |
15858 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15859 | bool result; | |
15860 | PyObject * obj0 = 0 ; | |
15861 | char *kwnames[] = { | |
15862 | (char *) "self", NULL | |
15863 | }; | |
15864 | ||
15865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsRecordingDefaults",kwnames,&obj0)) goto fail; | |
15866 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15867 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15868 | { | |
15869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15870 | result = (bool)((wxConfigBase const *)arg1)->IsRecordingDefaults(); | |
15871 | ||
15872 | wxPyEndAllowThreads(__tstate); | |
15873 | if (PyErr_Occurred()) SWIG_fail; | |
15874 | } | |
15875 | { | |
15876 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15877 | } | |
15878 | return resultobj; | |
15879 | fail: | |
15880 | return NULL; | |
15881 | } | |
15882 | ||
15883 | ||
15884 | static PyObject *_wrap_ConfigBase_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15885 | PyObject *resultobj; | |
15886 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15887 | wxString *arg2 = 0 ; | |
15888 | wxString result; | |
15889 | bool temp2 = False ; | |
15890 | PyObject * obj0 = 0 ; | |
15891 | PyObject * obj1 = 0 ; | |
15892 | char *kwnames[] = { | |
15893 | (char *) "self",(char *) "str", NULL | |
15894 | }; | |
15895 | ||
15896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_ExpandEnvVars",kwnames,&obj0,&obj1)) goto fail; | |
15897 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15898 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15899 | { | |
15900 | arg2 = wxString_in_helper(obj1); | |
15901 | if (arg2 == NULL) SWIG_fail; | |
15902 | temp2 = True; | |
15903 | } | |
15904 | { | |
15905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15906 | result = ((wxConfigBase const *)arg1)->ExpandEnvVars((wxString const &)*arg2); | |
15907 | ||
15908 | wxPyEndAllowThreads(__tstate); | |
15909 | if (PyErr_Occurred()) SWIG_fail; | |
15910 | } | |
15911 | { | |
15912 | #if wxUSE_UNICODE | |
15913 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15914 | #else | |
15915 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15916 | #endif | |
15917 | } | |
15918 | { | |
15919 | if (temp2) | |
15920 | delete arg2; | |
15921 | } | |
15922 | return resultobj; | |
15923 | fail: | |
15924 | { | |
15925 | if (temp2) | |
15926 | delete arg2; | |
15927 | } | |
15928 | return NULL; | |
15929 | } | |
15930 | ||
15931 | ||
15932 | static PyObject *_wrap_ConfigBase_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15933 | PyObject *resultobj; | |
15934 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15935 | wxString result; | |
15936 | PyObject * obj0 = 0 ; | |
15937 | char *kwnames[] = { | |
15938 | (char *) "self", NULL | |
15939 | }; | |
15940 | ||
15941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetAppName",kwnames,&obj0)) goto fail; | |
15942 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15943 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15944 | { | |
15945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15946 | result = ((wxConfigBase const *)arg1)->GetAppName(); | |
15947 | ||
15948 | wxPyEndAllowThreads(__tstate); | |
15949 | if (PyErr_Occurred()) SWIG_fail; | |
15950 | } | |
15951 | { | |
15952 | #if wxUSE_UNICODE | |
15953 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15954 | #else | |
15955 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15956 | #endif | |
15957 | } | |
15958 | return resultobj; | |
15959 | fail: | |
15960 | return NULL; | |
15961 | } | |
15962 | ||
15963 | ||
15964 | static PyObject *_wrap_ConfigBase_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15965 | PyObject *resultobj; | |
15966 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15967 | wxString result; | |
15968 | PyObject * obj0 = 0 ; | |
15969 | char *kwnames[] = { | |
15970 | (char *) "self", NULL | |
15971 | }; | |
15972 | ||
15973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetVendorName",kwnames,&obj0)) goto fail; | |
15974 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15975 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15976 | { | |
15977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15978 | result = ((wxConfigBase const *)arg1)->GetVendorName(); | |
15979 | ||
15980 | wxPyEndAllowThreads(__tstate); | |
15981 | if (PyErr_Occurred()) SWIG_fail; | |
15982 | } | |
15983 | { | |
15984 | #if wxUSE_UNICODE | |
15985 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15986 | #else | |
15987 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15988 | #endif | |
15989 | } | |
15990 | return resultobj; | |
15991 | fail: | |
15992 | return NULL; | |
15993 | } | |
15994 | ||
15995 | ||
15996 | static PyObject *_wrap_ConfigBase_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15997 | PyObject *resultobj; | |
15998 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15999 | wxString *arg2 = 0 ; | |
16000 | bool temp2 = False ; | |
16001 | PyObject * obj0 = 0 ; | |
16002 | PyObject * obj1 = 0 ; | |
16003 | char *kwnames[] = { | |
16004 | (char *) "self",(char *) "appName", NULL | |
16005 | }; | |
16006 | ||
16007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetAppName",kwnames,&obj0,&obj1)) goto fail; | |
16008 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16009 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16010 | { | |
16011 | arg2 = wxString_in_helper(obj1); | |
16012 | if (arg2 == NULL) SWIG_fail; | |
16013 | temp2 = True; | |
16014 | } | |
16015 | { | |
16016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16017 | (arg1)->SetAppName((wxString const &)*arg2); | |
16018 | ||
16019 | wxPyEndAllowThreads(__tstate); | |
16020 | if (PyErr_Occurred()) SWIG_fail; | |
16021 | } | |
16022 | Py_INCREF(Py_None); resultobj = Py_None; | |
16023 | { | |
16024 | if (temp2) | |
16025 | delete arg2; | |
16026 | } | |
16027 | return resultobj; | |
16028 | fail: | |
16029 | { | |
16030 | if (temp2) | |
16031 | delete arg2; | |
16032 | } | |
16033 | return NULL; | |
16034 | } | |
16035 | ||
16036 | ||
16037 | static PyObject *_wrap_ConfigBase_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16038 | PyObject *resultobj; | |
16039 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16040 | wxString *arg2 = 0 ; | |
16041 | bool temp2 = False ; | |
16042 | PyObject * obj0 = 0 ; | |
16043 | PyObject * obj1 = 0 ; | |
16044 | char *kwnames[] = { | |
16045 | (char *) "self",(char *) "vendorName", NULL | |
16046 | }; | |
16047 | ||
16048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetVendorName",kwnames,&obj0,&obj1)) goto fail; | |
16049 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16050 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16051 | { | |
16052 | arg2 = wxString_in_helper(obj1); | |
16053 | if (arg2 == NULL) SWIG_fail; | |
16054 | temp2 = True; | |
16055 | } | |
16056 | { | |
16057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16058 | (arg1)->SetVendorName((wxString const &)*arg2); | |
16059 | ||
16060 | wxPyEndAllowThreads(__tstate); | |
16061 | if (PyErr_Occurred()) SWIG_fail; | |
16062 | } | |
16063 | Py_INCREF(Py_None); resultobj = Py_None; | |
16064 | { | |
16065 | if (temp2) | |
16066 | delete arg2; | |
16067 | } | |
16068 | return resultobj; | |
16069 | fail: | |
16070 | { | |
16071 | if (temp2) | |
16072 | delete arg2; | |
16073 | } | |
16074 | return NULL; | |
16075 | } | |
16076 | ||
16077 | ||
16078 | static PyObject *_wrap_ConfigBase_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16079 | PyObject *resultobj; | |
16080 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16081 | long arg2 ; | |
16082 | PyObject * obj0 = 0 ; | |
16083 | PyObject * obj1 = 0 ; | |
16084 | char *kwnames[] = { | |
16085 | (char *) "self",(char *) "style", NULL | |
16086 | }; | |
16087 | ||
16088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetStyle",kwnames,&obj0,&obj1)) goto fail; | |
16089 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16090 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16091 | arg2 = (long) SWIG_AsLong(obj1); | |
16092 | if (PyErr_Occurred()) SWIG_fail; | |
16093 | { | |
16094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16095 | (arg1)->SetStyle(arg2); | |
16096 | ||
16097 | wxPyEndAllowThreads(__tstate); | |
16098 | if (PyErr_Occurred()) SWIG_fail; | |
16099 | } | |
16100 | Py_INCREF(Py_None); resultobj = Py_None; | |
16101 | return resultobj; | |
16102 | fail: | |
16103 | return NULL; | |
16104 | } | |
16105 | ||
16106 | ||
16107 | static PyObject *_wrap_ConfigBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16108 | PyObject *resultobj; | |
16109 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16110 | long result; | |
16111 | PyObject * obj0 = 0 ; | |
16112 | char *kwnames[] = { | |
16113 | (char *) "self", NULL | |
16114 | }; | |
16115 | ||
16116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetStyle",kwnames,&obj0)) goto fail; | |
16117 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16118 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16119 | { | |
16120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16121 | result = (long)((wxConfigBase const *)arg1)->GetStyle(); | |
16122 | ||
16123 | wxPyEndAllowThreads(__tstate); | |
16124 | if (PyErr_Occurred()) SWIG_fail; | |
16125 | } | |
16126 | resultobj = SWIG_FromLong((long)result); | |
16127 | return resultobj; | |
16128 | fail: | |
16129 | return NULL; | |
16130 | } | |
16131 | ||
16132 | ||
16133 | static PyObject * ConfigBase_swigregister(PyObject *self, PyObject *args) { | |
16134 | PyObject *obj; | |
16135 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16136 | SWIG_TypeClientData(SWIGTYPE_p_wxConfigBase, obj); | |
16137 | Py_INCREF(obj); | |
16138 | return Py_BuildValue((char *)""); | |
16139 | } | |
16140 | static PyObject *_wrap_new_Config(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16141 | PyObject *resultobj; | |
16142 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
16143 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
16144 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
16145 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
16146 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16147 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16148 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
16149 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
16150 | long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ; | |
16151 | wxConfig *result; | |
16152 | bool temp1 = False ; | |
16153 | bool temp2 = False ; | |
16154 | bool temp3 = False ; | |
16155 | bool temp4 = False ; | |
16156 | PyObject * obj0 = 0 ; | |
16157 | PyObject * obj1 = 0 ; | |
16158 | PyObject * obj2 = 0 ; | |
16159 | PyObject * obj3 = 0 ; | |
16160 | PyObject * obj4 = 0 ; | |
16161 | char *kwnames[] = { | |
16162 | (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL | |
16163 | }; | |
16164 | ||
16165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_Config",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
16166 | if (obj0) { | |
16167 | { | |
16168 | arg1 = wxString_in_helper(obj0); | |
16169 | if (arg1 == NULL) SWIG_fail; | |
16170 | temp1 = True; | |
16171 | } | |
16172 | } | |
16173 | if (obj1) { | |
16174 | { | |
16175 | arg2 = wxString_in_helper(obj1); | |
16176 | if (arg2 == NULL) SWIG_fail; | |
16177 | temp2 = True; | |
16178 | } | |
16179 | } | |
16180 | if (obj2) { | |
16181 | { | |
16182 | arg3 = wxString_in_helper(obj2); | |
16183 | if (arg3 == NULL) SWIG_fail; | |
16184 | temp3 = True; | |
16185 | } | |
16186 | } | |
16187 | if (obj3) { | |
16188 | { | |
16189 | arg4 = wxString_in_helper(obj3); | |
16190 | if (arg4 == NULL) SWIG_fail; | |
16191 | temp4 = True; | |
16192 | } | |
16193 | } | |
16194 | if (obj4) { | |
16195 | arg5 = (long) SWIG_AsLong(obj4); | |
16196 | if (PyErr_Occurred()) SWIG_fail; | |
16197 | } | |
16198 | { | |
16199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16200 | result = (wxConfig *)new wxConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
16201 | ||
16202 | wxPyEndAllowThreads(__tstate); | |
16203 | if (PyErr_Occurred()) SWIG_fail; | |
16204 | } | |
16205 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfig, 1); | |
16206 | { | |
16207 | if (temp1) | |
16208 | delete arg1; | |
16209 | } | |
16210 | { | |
16211 | if (temp2) | |
16212 | delete arg2; | |
16213 | } | |
16214 | { | |
16215 | if (temp3) | |
16216 | delete arg3; | |
16217 | } | |
16218 | { | |
16219 | if (temp4) | |
16220 | delete arg4; | |
16221 | } | |
16222 | return resultobj; | |
16223 | fail: | |
16224 | { | |
16225 | if (temp1) | |
16226 | delete arg1; | |
16227 | } | |
16228 | { | |
16229 | if (temp2) | |
16230 | delete arg2; | |
16231 | } | |
16232 | { | |
16233 | if (temp3) | |
16234 | delete arg3; | |
16235 | } | |
16236 | { | |
16237 | if (temp4) | |
16238 | delete arg4; | |
16239 | } | |
16240 | return NULL; | |
16241 | } | |
16242 | ||
16243 | ||
16244 | static PyObject *_wrap_delete_Config(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16245 | PyObject *resultobj; | |
16246 | wxConfig *arg1 = (wxConfig *) 0 ; | |
16247 | PyObject * obj0 = 0 ; | |
16248 | char *kwnames[] = { | |
16249 | (char *) "self", NULL | |
16250 | }; | |
16251 | ||
16252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Config",kwnames,&obj0)) goto fail; | |
16253 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfig, | |
16254 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16255 | { | |
16256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16257 | delete arg1; | |
16258 | ||
16259 | wxPyEndAllowThreads(__tstate); | |
16260 | if (PyErr_Occurred()) SWIG_fail; | |
16261 | } | |
16262 | Py_INCREF(Py_None); resultobj = Py_None; | |
16263 | return resultobj; | |
16264 | fail: | |
16265 | return NULL; | |
16266 | } | |
16267 | ||
16268 | ||
16269 | static PyObject * Config_swigregister(PyObject *self, PyObject *args) { | |
16270 | PyObject *obj; | |
16271 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16272 | SWIG_TypeClientData(SWIGTYPE_p_wxConfig, obj); | |
16273 | Py_INCREF(obj); | |
16274 | return Py_BuildValue((char *)""); | |
16275 | } | |
16276 | static PyObject *_wrap_new_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16277 | PyObject *resultobj; | |
16278 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
16279 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
16280 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
16281 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
16282 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16283 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16284 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
16285 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
16286 | long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ; | |
16287 | wxFileConfig *result; | |
16288 | bool temp1 = False ; | |
16289 | bool temp2 = False ; | |
16290 | bool temp3 = False ; | |
16291 | bool temp4 = False ; | |
16292 | PyObject * obj0 = 0 ; | |
16293 | PyObject * obj1 = 0 ; | |
16294 | PyObject * obj2 = 0 ; | |
16295 | PyObject * obj3 = 0 ; | |
16296 | PyObject * obj4 = 0 ; | |
16297 | char *kwnames[] = { | |
16298 | (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL | |
16299 | }; | |
16300 | ||
16301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_FileConfig",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
16302 | if (obj0) { | |
16303 | { | |
16304 | arg1 = wxString_in_helper(obj0); | |
16305 | if (arg1 == NULL) SWIG_fail; | |
16306 | temp1 = True; | |
16307 | } | |
16308 | } | |
16309 | if (obj1) { | |
16310 | { | |
16311 | arg2 = wxString_in_helper(obj1); | |
16312 | if (arg2 == NULL) SWIG_fail; | |
16313 | temp2 = True; | |
16314 | } | |
16315 | } | |
16316 | if (obj2) { | |
16317 | { | |
16318 | arg3 = wxString_in_helper(obj2); | |
16319 | if (arg3 == NULL) SWIG_fail; | |
16320 | temp3 = True; | |
16321 | } | |
16322 | } | |
16323 | if (obj3) { | |
16324 | { | |
16325 | arg4 = wxString_in_helper(obj3); | |
16326 | if (arg4 == NULL) SWIG_fail; | |
16327 | temp4 = True; | |
16328 | } | |
16329 | } | |
16330 | if (obj4) { | |
16331 | arg5 = (long) SWIG_AsLong(obj4); | |
16332 | if (PyErr_Occurred()) SWIG_fail; | |
16333 | } | |
16334 | { | |
16335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16336 | result = (wxFileConfig *)new wxFileConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
16337 | ||
16338 | wxPyEndAllowThreads(__tstate); | |
16339 | if (PyErr_Occurred()) SWIG_fail; | |
16340 | } | |
16341 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileConfig, 1); | |
16342 | { | |
16343 | if (temp1) | |
16344 | delete arg1; | |
16345 | } | |
16346 | { | |
16347 | if (temp2) | |
16348 | delete arg2; | |
16349 | } | |
16350 | { | |
16351 | if (temp3) | |
16352 | delete arg3; | |
16353 | } | |
16354 | { | |
16355 | if (temp4) | |
16356 | delete arg4; | |
16357 | } | |
16358 | return resultobj; | |
16359 | fail: | |
16360 | { | |
16361 | if (temp1) | |
16362 | delete arg1; | |
16363 | } | |
16364 | { | |
16365 | if (temp2) | |
16366 | delete arg2; | |
16367 | } | |
16368 | { | |
16369 | if (temp3) | |
16370 | delete arg3; | |
16371 | } | |
16372 | { | |
16373 | if (temp4) | |
16374 | delete arg4; | |
16375 | } | |
16376 | return NULL; | |
16377 | } | |
16378 | ||
16379 | ||
16380 | static PyObject *_wrap_delete_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16381 | PyObject *resultobj; | |
16382 | wxFileConfig *arg1 = (wxFileConfig *) 0 ; | |
16383 | PyObject * obj0 = 0 ; | |
16384 | char *kwnames[] = { | |
16385 | (char *) "self", NULL | |
16386 | }; | |
16387 | ||
16388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileConfig",kwnames,&obj0)) goto fail; | |
16389 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileConfig, | |
16390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16391 | { | |
16392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16393 | delete arg1; | |
16394 | ||
16395 | wxPyEndAllowThreads(__tstate); | |
16396 | if (PyErr_Occurred()) SWIG_fail; | |
16397 | } | |
16398 | Py_INCREF(Py_None); resultobj = Py_None; | |
16399 | return resultobj; | |
16400 | fail: | |
16401 | return NULL; | |
16402 | } | |
16403 | ||
16404 | ||
16405 | static PyObject * FileConfig_swigregister(PyObject *self, PyObject *args) { | |
16406 | PyObject *obj; | |
16407 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16408 | SWIG_TypeClientData(SWIGTYPE_p_wxFileConfig, obj); | |
16409 | Py_INCREF(obj); | |
16410 | return Py_BuildValue((char *)""); | |
16411 | } | |
16412 | static PyObject *_wrap_new_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16413 | PyObject *resultobj; | |
16414 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16415 | wxString *arg2 = 0 ; | |
16416 | wxConfigPathChanger *result; | |
16417 | bool temp2 = False ; | |
16418 | PyObject * obj0 = 0 ; | |
16419 | PyObject * obj1 = 0 ; | |
16420 | char *kwnames[] = { | |
16421 | (char *) "config",(char *) "entry", NULL | |
16422 | }; | |
16423 | ||
16424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_ConfigPathChanger",kwnames,&obj0,&obj1)) goto fail; | |
16425 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16426 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16427 | { | |
16428 | arg2 = wxString_in_helper(obj1); | |
16429 | if (arg2 == NULL) SWIG_fail; | |
16430 | temp2 = True; | |
16431 | } | |
16432 | { | |
16433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16434 | result = (wxConfigPathChanger *)new wxConfigPathChanger((wxConfigBase const *)arg1,(wxString const &)*arg2); | |
16435 | ||
16436 | wxPyEndAllowThreads(__tstate); | |
16437 | if (PyErr_Occurred()) SWIG_fail; | |
16438 | } | |
16439 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigPathChanger, 1); | |
16440 | { | |
16441 | if (temp2) | |
16442 | delete arg2; | |
16443 | } | |
16444 | return resultobj; | |
16445 | fail: | |
16446 | { | |
16447 | if (temp2) | |
16448 | delete arg2; | |
16449 | } | |
16450 | return NULL; | |
16451 | } | |
16452 | ||
16453 | ||
16454 | static PyObject *_wrap_delete_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16455 | PyObject *resultobj; | |
16456 | wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ; | |
16457 | PyObject * obj0 = 0 ; | |
16458 | char *kwnames[] = { | |
16459 | (char *) "self", NULL | |
16460 | }; | |
16461 | ||
16462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigPathChanger",kwnames,&obj0)) goto fail; | |
16463 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger, | |
16464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16465 | { | |
16466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16467 | delete arg1; | |
16468 | ||
16469 | wxPyEndAllowThreads(__tstate); | |
16470 | if (PyErr_Occurred()) SWIG_fail; | |
16471 | } | |
16472 | Py_INCREF(Py_None); resultobj = Py_None; | |
16473 | return resultobj; | |
16474 | fail: | |
16475 | return NULL; | |
16476 | } | |
16477 | ||
16478 | ||
16479 | static PyObject *_wrap_ConfigPathChanger_Name(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16480 | PyObject *resultobj; | |
16481 | wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ; | |
16482 | wxString *result; | |
16483 | PyObject * obj0 = 0 ; | |
16484 | char *kwnames[] = { | |
16485 | (char *) "self", NULL | |
16486 | }; | |
16487 | ||
16488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigPathChanger_Name",kwnames,&obj0)) goto fail; | |
16489 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger, | |
16490 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16491 | { | |
16492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16493 | { | |
16494 | wxString const &_result_ref = ((wxConfigPathChanger const *)arg1)->Name(); | |
16495 | result = (wxString *) &_result_ref; | |
16496 | } | |
16497 | ||
16498 | wxPyEndAllowThreads(__tstate); | |
16499 | if (PyErr_Occurred()) SWIG_fail; | |
16500 | } | |
16501 | { | |
16502 | #if wxUSE_UNICODE | |
16503 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
16504 | #else | |
16505 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
16506 | #endif | |
16507 | } | |
16508 | return resultobj; | |
16509 | fail: | |
16510 | return NULL; | |
16511 | } | |
16512 | ||
16513 | ||
16514 | static PyObject * ConfigPathChanger_swigregister(PyObject *self, PyObject *args) { | |
16515 | PyObject *obj; | |
16516 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16517 | SWIG_TypeClientData(SWIGTYPE_p_wxConfigPathChanger, obj); | |
16518 | Py_INCREF(obj); | |
16519 | return Py_BuildValue((char *)""); | |
16520 | } | |
16521 | static PyObject *_wrap_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16522 | PyObject *resultobj; | |
16523 | wxString *arg1 = 0 ; | |
16524 | wxString result; | |
16525 | bool temp1 = False ; | |
16526 | PyObject * obj0 = 0 ; | |
16527 | char *kwnames[] = { | |
16528 | (char *) "sz", NULL | |
16529 | }; | |
16530 | ||
16531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ExpandEnvVars",kwnames,&obj0)) goto fail; | |
16532 | { | |
16533 | arg1 = wxString_in_helper(obj0); | |
16534 | if (arg1 == NULL) SWIG_fail; | |
16535 | temp1 = True; | |
16536 | } | |
16537 | { | |
16538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16539 | result = wxExpandEnvVars((wxString const &)*arg1); | |
16540 | ||
16541 | wxPyEndAllowThreads(__tstate); | |
16542 | if (PyErr_Occurred()) SWIG_fail; | |
16543 | } | |
16544 | { | |
16545 | #if wxUSE_UNICODE | |
16546 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16547 | #else | |
16548 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16549 | #endif | |
16550 | } | |
16551 | { | |
16552 | if (temp1) | |
16553 | delete arg1; | |
16554 | } | |
16555 | return resultobj; | |
16556 | fail: | |
16557 | { | |
16558 | if (temp1) | |
16559 | delete arg1; | |
16560 | } | |
16561 | return NULL; | |
16562 | } | |
16563 | ||
16564 | ||
16565 | static int _wrap_DateFormatStr_set(PyObject *_val) { | |
16566 | PyErr_SetString(PyExc_TypeError,"Variable DateFormatStr is read-only."); | |
16567 | return 1; | |
16568 | } | |
16569 | ||
16570 | ||
16571 | static PyObject *_wrap_DateFormatStr_get() { | |
16572 | PyObject *pyobj; | |
16573 | ||
16574 | { | |
16575 | #if wxUSE_UNICODE | |
16576 | pyobj = PyUnicode_FromWideChar((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len()); | |
16577 | #else | |
16578 | pyobj = PyString_FromStringAndSize((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len()); | |
16579 | #endif | |
16580 | } | |
16581 | return pyobj; | |
16582 | } | |
16583 | ||
16584 | ||
16585 | static int _wrap_TimeSpanFormatStr_set(PyObject *_val) { | |
16586 | PyErr_SetString(PyExc_TypeError,"Variable TimeSpanFormatStr is read-only."); | |
16587 | return 1; | |
16588 | } | |
16589 | ||
16590 | ||
16591 | static PyObject *_wrap_TimeSpanFormatStr_get() { | |
16592 | PyObject *pyobj; | |
16593 | ||
16594 | { | |
16595 | #if wxUSE_UNICODE | |
16596 | pyobj = PyUnicode_FromWideChar((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len()); | |
16597 | #else | |
16598 | pyobj = PyString_FromStringAndSize((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len()); | |
16599 | #endif | |
16600 | } | |
16601 | return pyobj; | |
16602 | } | |
16603 | ||
16604 | ||
16605 | static PyObject *_wrap_DateTime_SetCountry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16606 | PyObject *resultobj; | |
16607 | int arg1 ; | |
16608 | PyObject * obj0 = 0 ; | |
16609 | char *kwnames[] = { | |
16610 | (char *) "country", NULL | |
16611 | }; | |
16612 | ||
16613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetCountry",kwnames,&obj0)) goto fail; | |
16614 | arg1 = (wxDateTime::Country) SWIG_AsInt(obj0); | |
16615 | if (PyErr_Occurred()) SWIG_fail; | |
16616 | { | |
16617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16618 | wxDateTime::SetCountry((wxDateTime::Country )arg1); | |
16619 | ||
16620 | wxPyEndAllowThreads(__tstate); | |
16621 | if (PyErr_Occurred()) SWIG_fail; | |
16622 | } | |
16623 | Py_INCREF(Py_None); resultobj = Py_None; | |
16624 | return resultobj; | |
16625 | fail: | |
16626 | return NULL; | |
16627 | } | |
16628 | ||
16629 | ||
16630 | static PyObject *_wrap_DateTime_GetCountry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16631 | PyObject *resultobj; | |
16632 | int result; | |
16633 | char *kwnames[] = { | |
16634 | NULL | |
16635 | }; | |
16636 | ||
16637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetCountry",kwnames)) goto fail; | |
16638 | { | |
16639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16640 | result = (int)wxDateTime::GetCountry(); | |
16641 | ||
16642 | wxPyEndAllowThreads(__tstate); | |
16643 | if (PyErr_Occurred()) SWIG_fail; | |
16644 | } | |
16645 | resultobj = SWIG_FromInt((int)result); | |
16646 | return resultobj; | |
16647 | fail: | |
16648 | return NULL; | |
16649 | } | |
16650 | ||
16651 | ||
16652 | static PyObject *_wrap_DateTime_IsWestEuropeanCountry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16653 | PyObject *resultobj; | |
16654 | int arg1 = (int) wxDateTime::Country_Default ; | |
16655 | bool result; | |
16656 | PyObject * obj0 = 0 ; | |
16657 | char *kwnames[] = { | |
16658 | (char *) "country", NULL | |
16659 | }; | |
16660 | ||
16661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_IsWestEuropeanCountry",kwnames,&obj0)) goto fail; | |
16662 | if (obj0) { | |
16663 | arg1 = (wxDateTime::Country) SWIG_AsInt(obj0); | |
16664 | if (PyErr_Occurred()) SWIG_fail; | |
16665 | } | |
16666 | { | |
16667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16668 | result = (bool)wxDateTime::IsWestEuropeanCountry((wxDateTime::Country )arg1); | |
16669 | ||
16670 | wxPyEndAllowThreads(__tstate); | |
16671 | if (PyErr_Occurred()) SWIG_fail; | |
16672 | } | |
16673 | { | |
16674 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16675 | } | |
16676 | return resultobj; | |
16677 | fail: | |
16678 | return NULL; | |
16679 | } | |
16680 | ||
16681 | ||
16682 | static PyObject *_wrap_DateTime_GetCurrentYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16683 | PyObject *resultobj; | |
16684 | int arg1 = (int) wxDateTime::Gregorian ; | |
16685 | int result; | |
16686 | PyObject * obj0 = 0 ; | |
16687 | char *kwnames[] = { | |
16688 | (char *) "cal", NULL | |
16689 | }; | |
16690 | ||
16691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentYear",kwnames,&obj0)) goto fail; | |
16692 | if (obj0) { | |
16693 | arg1 = (wxDateTime::Calendar) SWIG_AsInt(obj0); | |
16694 | if (PyErr_Occurred()) SWIG_fail; | |
16695 | } | |
16696 | { | |
16697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16698 | result = (int)wxDateTime::GetCurrentYear((wxDateTime::Calendar )arg1); | |
16699 | ||
16700 | wxPyEndAllowThreads(__tstate); | |
16701 | if (PyErr_Occurred()) SWIG_fail; | |
16702 | } | |
16703 | resultobj = SWIG_FromInt((int)result); | |
16704 | return resultobj; | |
16705 | fail: | |
16706 | return NULL; | |
16707 | } | |
16708 | ||
16709 | ||
16710 | static PyObject *_wrap_DateTime_ConvertYearToBC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16711 | PyObject *resultobj; | |
16712 | int arg1 ; | |
16713 | int result; | |
16714 | PyObject * obj0 = 0 ; | |
16715 | char *kwnames[] = { | |
16716 | (char *) "year", NULL | |
16717 | }; | |
16718 | ||
16719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ConvertYearToBC",kwnames,&obj0)) goto fail; | |
16720 | arg1 = (int) SWIG_AsInt(obj0); | |
16721 | if (PyErr_Occurred()) SWIG_fail; | |
16722 | { | |
16723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16724 | result = (int)wxDateTime::ConvertYearToBC(arg1); | |
16725 | ||
16726 | wxPyEndAllowThreads(__tstate); | |
16727 | if (PyErr_Occurred()) SWIG_fail; | |
16728 | } | |
16729 | resultobj = SWIG_FromInt((int)result); | |
16730 | return resultobj; | |
16731 | fail: | |
16732 | return NULL; | |
16733 | } | |
16734 | ||
16735 | ||
16736 | static PyObject *_wrap_DateTime_GetCurrentMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16737 | PyObject *resultobj; | |
16738 | int arg1 = (int) wxDateTime::Gregorian ; | |
16739 | int result; | |
16740 | PyObject * obj0 = 0 ; | |
16741 | char *kwnames[] = { | |
16742 | (char *) "cal", NULL | |
16743 | }; | |
16744 | ||
16745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentMonth",kwnames,&obj0)) goto fail; | |
16746 | if (obj0) { | |
16747 | arg1 = (wxDateTime::Calendar) SWIG_AsInt(obj0); | |
16748 | if (PyErr_Occurred()) SWIG_fail; | |
16749 | } | |
16750 | { | |
16751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16752 | result = (int)wxDateTime::GetCurrentMonth((wxDateTime::Calendar )arg1); | |
16753 | ||
16754 | wxPyEndAllowThreads(__tstate); | |
16755 | if (PyErr_Occurred()) SWIG_fail; | |
16756 | } | |
16757 | resultobj = SWIG_FromInt((int)result); | |
16758 | return resultobj; | |
16759 | fail: | |
16760 | return NULL; | |
16761 | } | |
16762 | ||
16763 | ||
16764 | static PyObject *_wrap_DateTime_IsLeapYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16765 | PyObject *resultobj; | |
16766 | int arg1 = (int) wxDateTime::Inv_Year ; | |
16767 | int arg2 = (int) wxDateTime::Gregorian ; | |
16768 | bool result; | |
16769 | PyObject * obj0 = 0 ; | |
16770 | PyObject * obj1 = 0 ; | |
16771 | char *kwnames[] = { | |
16772 | (char *) "year",(char *) "cal", NULL | |
16773 | }; | |
16774 | ||
16775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsLeapYear",kwnames,&obj0,&obj1)) goto fail; | |
16776 | if (obj0) { | |
16777 | arg1 = (int) SWIG_AsInt(obj0); | |
16778 | if (PyErr_Occurred()) SWIG_fail; | |
16779 | } | |
16780 | if (obj1) { | |
16781 | arg2 = (wxDateTime::Calendar) SWIG_AsInt(obj1); | |
16782 | if (PyErr_Occurred()) SWIG_fail; | |
16783 | } | |
16784 | { | |
16785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16786 | result = (bool)wxDateTime::IsLeapYear(arg1,(wxDateTime::Calendar )arg2); | |
16787 | ||
16788 | wxPyEndAllowThreads(__tstate); | |
16789 | if (PyErr_Occurred()) SWIG_fail; | |
16790 | } | |
16791 | { | |
16792 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16793 | } | |
16794 | return resultobj; | |
16795 | fail: | |
16796 | return NULL; | |
16797 | } | |
16798 | ||
16799 | ||
16800 | static PyObject *_wrap_DateTime_GetCentury(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16801 | PyObject *resultobj; | |
16802 | int arg1 = (int) wxDateTime::Inv_Year ; | |
16803 | int result; | |
16804 | PyObject * obj0 = 0 ; | |
16805 | char *kwnames[] = { | |
16806 | (char *) "year", NULL | |
16807 | }; | |
16808 | ||
16809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCentury",kwnames,&obj0)) goto fail; | |
16810 | if (obj0) { | |
16811 | arg1 = (int) SWIG_AsInt(obj0); | |
16812 | if (PyErr_Occurred()) SWIG_fail; | |
16813 | } | |
16814 | { | |
16815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16816 | result = (int)wxDateTime::GetCentury(arg1); | |
16817 | ||
16818 | wxPyEndAllowThreads(__tstate); | |
16819 | if (PyErr_Occurred()) SWIG_fail; | |
16820 | } | |
16821 | resultobj = SWIG_FromInt((int)result); | |
16822 | return resultobj; | |
16823 | fail: | |
16824 | return NULL; | |
16825 | } | |
16826 | ||
16827 | ||
16828 | static PyObject *_wrap_DateTime_GetNumberOfDaysinYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16829 | PyObject *resultobj; | |
16830 | int arg1 ; | |
16831 | int arg2 = (int) wxDateTime::Gregorian ; | |
16832 | int result; | |
16833 | PyObject * obj0 = 0 ; | |
16834 | PyObject * obj1 = 0 ; | |
16835 | char *kwnames[] = { | |
16836 | (char *) "year",(char *) "cal", NULL | |
16837 | }; | |
16838 | ||
16839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetNumberOfDaysinYear",kwnames,&obj0,&obj1)) goto fail; | |
16840 | arg1 = (int) SWIG_AsInt(obj0); | |
16841 | if (PyErr_Occurred()) SWIG_fail; | |
16842 | if (obj1) { | |
16843 | arg2 = (wxDateTime::Calendar) SWIG_AsInt(obj1); | |
16844 | if (PyErr_Occurred()) SWIG_fail; | |
16845 | } | |
16846 | { | |
16847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16848 | result = (int)wxDateTime::GetNumberOfDays(arg1,(wxDateTime::Calendar )arg2); | |
16849 | ||
16850 | wxPyEndAllowThreads(__tstate); | |
16851 | if (PyErr_Occurred()) SWIG_fail; | |
16852 | } | |
16853 | resultobj = SWIG_FromInt((int)result); | |
16854 | return resultobj; | |
16855 | fail: | |
16856 | return NULL; | |
16857 | } | |
16858 | ||
16859 | ||
16860 | static PyObject *_wrap_DateTime_GetNumberOfDaysInMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16861 | PyObject *resultobj; | |
16862 | int arg1 ; | |
16863 | int arg2 = (int) wxDateTime::Inv_Year ; | |
16864 | int arg3 = (int) wxDateTime::Gregorian ; | |
16865 | int result; | |
16866 | PyObject * obj0 = 0 ; | |
16867 | PyObject * obj1 = 0 ; | |
16868 | PyObject * obj2 = 0 ; | |
16869 | char *kwnames[] = { | |
16870 | (char *) "month",(char *) "year",(char *) "cal", NULL | |
16871 | }; | |
16872 | ||
16873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetNumberOfDaysInMonth",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16874 | arg1 = (wxDateTime::Month) SWIG_AsInt(obj0); | |
16875 | if (PyErr_Occurred()) SWIG_fail; | |
16876 | if (obj1) { | |
16877 | arg2 = (int) SWIG_AsInt(obj1); | |
16878 | if (PyErr_Occurred()) SWIG_fail; | |
16879 | } | |
16880 | if (obj2) { | |
16881 | arg3 = (wxDateTime::Calendar) SWIG_AsInt(obj2); | |
16882 | if (PyErr_Occurred()) SWIG_fail; | |
16883 | } | |
16884 | { | |
16885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16886 | result = (int)wxDateTime::GetNumberOfDays((wxDateTime::Month )arg1,arg2,(wxDateTime::Calendar )arg3); | |
16887 | ||
16888 | wxPyEndAllowThreads(__tstate); | |
16889 | if (PyErr_Occurred()) SWIG_fail; | |
16890 | } | |
16891 | resultobj = SWIG_FromInt((int)result); | |
16892 | return resultobj; | |
16893 | fail: | |
16894 | return NULL; | |
16895 | } | |
16896 | ||
16897 | ||
16898 | static PyObject *_wrap_DateTime_GetMonthName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16899 | PyObject *resultobj; | |
16900 | int arg1 ; | |
16901 | int arg2 = (int) wxDateTime::Name_Full ; | |
16902 | wxString result; | |
16903 | PyObject * obj0 = 0 ; | |
16904 | PyObject * obj1 = 0 ; | |
16905 | char *kwnames[] = { | |
16906 | (char *) "month",(char *) "flags", NULL | |
16907 | }; | |
16908 | ||
16909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonthName",kwnames,&obj0,&obj1)) goto fail; | |
16910 | arg1 = (wxDateTime::Month) SWIG_AsInt(obj0); | |
16911 | if (PyErr_Occurred()) SWIG_fail; | |
16912 | if (obj1) { | |
16913 | arg2 = (wxDateTime::NameFlags) SWIG_AsInt(obj1); | |
16914 | if (PyErr_Occurred()) SWIG_fail; | |
16915 | } | |
16916 | { | |
16917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16918 | result = wxDateTime::GetMonthName((wxDateTime::Month )arg1,(wxDateTime::NameFlags )arg2); | |
16919 | ||
16920 | wxPyEndAllowThreads(__tstate); | |
16921 | if (PyErr_Occurred()) SWIG_fail; | |
16922 | } | |
16923 | { | |
16924 | #if wxUSE_UNICODE | |
16925 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16926 | #else | |
16927 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16928 | #endif | |
16929 | } | |
16930 | return resultobj; | |
16931 | fail: | |
16932 | return NULL; | |
16933 | } | |
16934 | ||
16935 | ||
16936 | static PyObject *_wrap_DateTime_GetWeekDayName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16937 | PyObject *resultobj; | |
16938 | int arg1 ; | |
16939 | int arg2 = (int) wxDateTime::Name_Full ; | |
16940 | wxString result; | |
16941 | PyObject * obj0 = 0 ; | |
16942 | PyObject * obj1 = 0 ; | |
16943 | char *kwnames[] = { | |
16944 | (char *) "weekday",(char *) "flags", NULL | |
16945 | }; | |
16946 | ||
16947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDayName",kwnames,&obj0,&obj1)) goto fail; | |
16948 | arg1 = (wxDateTime::WeekDay) SWIG_AsInt(obj0); | |
16949 | if (PyErr_Occurred()) SWIG_fail; | |
16950 | if (obj1) { | |
16951 | arg2 = (wxDateTime::NameFlags) SWIG_AsInt(obj1); | |
16952 | if (PyErr_Occurred()) SWIG_fail; | |
16953 | } | |
16954 | { | |
16955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16956 | result = wxDateTime::GetWeekDayName((wxDateTime::WeekDay )arg1,(wxDateTime::NameFlags )arg2); | |
16957 | ||
16958 | wxPyEndAllowThreads(__tstate); | |
16959 | if (PyErr_Occurred()) SWIG_fail; | |
16960 | } | |
16961 | { | |
16962 | #if wxUSE_UNICODE | |
16963 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16964 | #else | |
16965 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16966 | #endif | |
16967 | } | |
16968 | return resultobj; | |
16969 | fail: | |
16970 | return NULL; | |
16971 | } | |
16972 | ||
16973 | ||
16974 | static PyObject *_wrap_DateTime_GetAmPmStrings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16975 | PyObject *resultobj; | |
16976 | wxString *arg1 = (wxString *) 0 ; | |
16977 | wxString *arg2 = (wxString *) 0 ; | |
16978 | bool temp1 = False ; | |
16979 | bool temp2 = False ; | |
16980 | PyObject * obj0 = 0 ; | |
16981 | PyObject * obj1 = 0 ; | |
16982 | char *kwnames[] = { | |
16983 | (char *) "OUTPUT",(char *) "OUTPUT", NULL | |
16984 | }; | |
16985 | ||
16986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetAmPmStrings",kwnames,&obj0,&obj1)) goto fail; | |
16987 | { | |
16988 | arg1 = wxString_in_helper(obj0); | |
16989 | if (arg1 == NULL) SWIG_fail; | |
16990 | temp1 = True; | |
16991 | } | |
16992 | { | |
16993 | arg2 = wxString_in_helper(obj1); | |
16994 | if (arg2 == NULL) SWIG_fail; | |
16995 | temp2 = True; | |
16996 | } | |
16997 | { | |
16998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16999 | wxDateTime::GetAmPmStrings(arg1,arg2); | |
17000 | ||
17001 | wxPyEndAllowThreads(__tstate); | |
17002 | if (PyErr_Occurred()) SWIG_fail; | |
17003 | } | |
17004 | Py_INCREF(Py_None); resultobj = Py_None; | |
17005 | { | |
17006 | if (temp1) | |
17007 | delete arg1; | |
17008 | } | |
17009 | { | |
17010 | if (temp2) | |
17011 | delete arg2; | |
17012 | } | |
17013 | return resultobj; | |
17014 | fail: | |
17015 | { | |
17016 | if (temp1) | |
17017 | delete arg1; | |
17018 | } | |
17019 | { | |
17020 | if (temp2) | |
17021 | delete arg2; | |
17022 | } | |
17023 | return NULL; | |
17024 | } | |
17025 | ||
17026 | ||
17027 | static PyObject *_wrap_DateTime_IsDSTApplicable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17028 | PyObject *resultobj; | |
17029 | int arg1 = (int) wxDateTime::Inv_Year ; | |
17030 | int arg2 = (int) wxDateTime::Country_Default ; | |
17031 | bool result; | |
17032 | PyObject * obj0 = 0 ; | |
17033 | PyObject * obj1 = 0 ; | |
17034 | char *kwnames[] = { | |
17035 | (char *) "year",(char *) "country", NULL | |
17036 | }; | |
17037 | ||
17038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsDSTApplicable",kwnames,&obj0,&obj1)) goto fail; | |
17039 | if (obj0) { | |
17040 | arg1 = (int) SWIG_AsInt(obj0); | |
17041 | if (PyErr_Occurred()) SWIG_fail; | |
17042 | } | |
17043 | if (obj1) { | |
17044 | arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); | |
17045 | if (PyErr_Occurred()) SWIG_fail; | |
17046 | } | |
17047 | { | |
17048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17049 | result = (bool)wxDateTime::IsDSTApplicable(arg1,(wxDateTime::Country )arg2); | |
17050 | ||
17051 | wxPyEndAllowThreads(__tstate); | |
17052 | if (PyErr_Occurred()) SWIG_fail; | |
17053 | } | |
17054 | { | |
17055 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17056 | } | |
17057 | return resultobj; | |
17058 | fail: | |
17059 | return NULL; | |
17060 | } | |
17061 | ||
17062 | ||
17063 | static PyObject *_wrap_DateTime_GetBeginDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17064 | PyObject *resultobj; | |
17065 | int arg1 = (int) wxDateTime::Inv_Year ; | |
17066 | int arg2 = (int) wxDateTime::Country_Default ; | |
17067 | wxDateTime result; | |
17068 | PyObject * obj0 = 0 ; | |
17069 | PyObject * obj1 = 0 ; | |
17070 | char *kwnames[] = { | |
17071 | (char *) "year",(char *) "country", NULL | |
17072 | }; | |
17073 | ||
17074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetBeginDST",kwnames,&obj0,&obj1)) goto fail; | |
17075 | if (obj0) { | |
17076 | arg1 = (int) SWIG_AsInt(obj0); | |
17077 | if (PyErr_Occurred()) SWIG_fail; | |
17078 | } | |
17079 | if (obj1) { | |
17080 | arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); | |
17081 | if (PyErr_Occurred()) SWIG_fail; | |
17082 | } | |
17083 | { | |
17084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17085 | result = wxDateTime::GetBeginDST(arg1,(wxDateTime::Country )arg2); | |
17086 | ||
17087 | wxPyEndAllowThreads(__tstate); | |
17088 | if (PyErr_Occurred()) SWIG_fail; | |
17089 | } | |
17090 | { | |
17091 | wxDateTime * resultptr; | |
17092 | resultptr = new wxDateTime((wxDateTime &) result); | |
17093 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
17094 | } | |
17095 | return resultobj; | |
17096 | fail: | |
17097 | return NULL; | |
17098 | } | |
17099 | ||
17100 | ||
17101 | static PyObject *_wrap_DateTime_GetEndDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17102 | PyObject *resultobj; | |
17103 | int arg1 = (int) wxDateTime::Inv_Year ; | |
17104 | int arg2 = (int) wxDateTime::Country_Default ; | |
17105 | wxDateTime result; | |
17106 | PyObject * obj0 = 0 ; | |
17107 | PyObject * obj1 = 0 ; | |
17108 | char *kwnames[] = { | |
17109 | (char *) "year",(char *) "country", NULL | |
17110 | }; | |
17111 | ||
17112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetEndDST",kwnames,&obj0,&obj1)) goto fail; | |
17113 | if (obj0) { | |
17114 | arg1 = (int) SWIG_AsInt(obj0); | |
17115 | if (PyErr_Occurred()) SWIG_fail; | |
17116 | } | |
17117 | if (obj1) { | |
17118 | arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); | |
17119 | if (PyErr_Occurred()) SWIG_fail; | |
17120 | } | |
17121 | { | |
17122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17123 | result = wxDateTime::GetEndDST(arg1,(wxDateTime::Country )arg2); | |
17124 | ||
17125 | wxPyEndAllowThreads(__tstate); | |
17126 | if (PyErr_Occurred()) SWIG_fail; | |
17127 | } | |
17128 | { | |
17129 | wxDateTime * resultptr; | |
17130 | resultptr = new wxDateTime((wxDateTime &) result); | |
17131 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
17132 | } | |
17133 | return resultobj; | |
17134 | fail: | |
17135 | return NULL; | |
17136 | } | |
17137 | ||
17138 | ||
17139 | static PyObject *_wrap_DateTime_Now(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17140 | PyObject *resultobj; | |
17141 | wxDateTime result; | |
17142 | char *kwnames[] = { | |
17143 | NULL | |
17144 | }; | |
17145 | ||
17146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Now",kwnames)) goto fail; | |
17147 | { | |
17148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17149 | result = wxDateTime::Now(); | |
17150 | ||
17151 | wxPyEndAllowThreads(__tstate); | |
17152 | if (PyErr_Occurred()) SWIG_fail; | |
17153 | } | |
17154 | { | |
17155 | wxDateTime * resultptr; | |
17156 | resultptr = new wxDateTime((wxDateTime &) result); | |
17157 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
17158 | } | |
17159 | return resultobj; | |
17160 | fail: | |
17161 | return NULL; | |
17162 | } | |
17163 | ||
17164 | ||
17165 | static PyObject *_wrap_DateTime_UNow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17166 | PyObject *resultobj; | |
17167 | wxDateTime result; | |
17168 | char *kwnames[] = { | |
17169 | NULL | |
17170 | }; | |
17171 | ||
17172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_UNow",kwnames)) goto fail; | |
17173 | { | |
17174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17175 | result = wxDateTime::UNow(); | |
17176 | ||
17177 | wxPyEndAllowThreads(__tstate); | |
17178 | if (PyErr_Occurred()) SWIG_fail; | |
17179 | } | |
17180 | { | |
17181 | wxDateTime * resultptr; | |
17182 | resultptr = new wxDateTime((wxDateTime &) result); | |
17183 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
17184 | } | |
17185 | return resultobj; | |
17186 | fail: | |
17187 | return NULL; | |
17188 | } | |
17189 | ||
17190 | ||
17191 | static PyObject *_wrap_DateTime_Today(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17192 | PyObject *resultobj; | |
17193 | wxDateTime result; | |
17194 | char *kwnames[] = { | |
17195 | NULL | |
17196 | }; | |
17197 | ||
17198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Today",kwnames)) goto fail; | |
17199 | { | |
17200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17201 | result = wxDateTime::Today(); | |
17202 | ||
17203 | wxPyEndAllowThreads(__tstate); | |
17204 | if (PyErr_Occurred()) SWIG_fail; | |
17205 | } | |
17206 | { | |
17207 | wxDateTime * resultptr; | |
17208 | resultptr = new wxDateTime((wxDateTime &) result); | |
17209 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
17210 | } | |
17211 | return resultobj; | |
17212 | fail: | |
17213 | return NULL; | |
17214 | } | |
17215 | ||
17216 | ||
17217 | static PyObject *_wrap_new_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17218 | PyObject *resultobj; | |
17219 | wxDateTime *result; | |
17220 | char *kwnames[] = { | |
17221 | NULL | |
17222 | }; | |
17223 | ||
17224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DateTime",kwnames)) goto fail; | |
17225 | { | |
17226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17227 | result = (wxDateTime *)new wxDateTime(); | |
17228 | ||
17229 | wxPyEndAllowThreads(__tstate); | |
17230 | if (PyErr_Occurred()) SWIG_fail; | |
17231 | } | |
17232 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
17233 | return resultobj; | |
17234 | fail: | |
17235 | return NULL; | |
17236 | } | |
17237 | ||
17238 | ||
17239 | static PyObject *_wrap_new_DateTimeFromTimeT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17240 | PyObject *resultobj; | |
17241 | time_t arg1 ; | |
17242 | wxDateTime *result; | |
17243 | PyObject * obj0 = 0 ; | |
17244 | char *kwnames[] = { | |
17245 | (char *) "timet", NULL | |
17246 | }; | |
17247 | ||
17248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromTimeT",kwnames,&obj0)) goto fail; | |
17249 | arg1 = (time_t) SWIG_AsUnsignedInt(obj0); | |
17250 | if (PyErr_Occurred()) SWIG_fail; | |
17251 | { | |
17252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17253 | result = (wxDateTime *)new wxDateTime(arg1); | |
17254 | ||
17255 | wxPyEndAllowThreads(__tstate); | |
17256 | if (PyErr_Occurred()) SWIG_fail; | |
17257 | } | |
17258 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
17259 | return resultobj; | |
17260 | fail: | |
17261 | return NULL; | |
17262 | } | |
17263 | ||
17264 | ||
17265 | static PyObject *_wrap_new_DateTimeFromJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17266 | PyObject *resultobj; | |
17267 | double arg1 ; | |
17268 | wxDateTime *result; | |
17269 | PyObject * obj0 = 0 ; | |
17270 | char *kwnames[] = { | |
17271 | (char *) "jdn", NULL | |
17272 | }; | |
17273 | ||
17274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromJDN",kwnames,&obj0)) goto fail; | |
17275 | arg1 = (double) SWIG_AsDouble(obj0); | |
17276 | if (PyErr_Occurred()) SWIG_fail; | |
17277 | { | |
17278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17279 | result = (wxDateTime *)new wxDateTime(arg1); | |
17280 | ||
17281 | wxPyEndAllowThreads(__tstate); | |
17282 | if (PyErr_Occurred()) SWIG_fail; | |
17283 | } | |
17284 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
17285 | return resultobj; | |
17286 | fail: | |
17287 | return NULL; | |
17288 | } | |
17289 | ||
17290 | ||
17291 | static PyObject *_wrap_new_DateTimeFromHMS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17292 | PyObject *resultobj; | |
17293 | int arg1 ; | |
17294 | int arg2 = (int) 0 ; | |
17295 | int arg3 = (int) 0 ; | |
17296 | int arg4 = (int) 0 ; | |
17297 | wxDateTime *result; | |
17298 | PyObject * obj0 = 0 ; | |
17299 | PyObject * obj1 = 0 ; | |
17300 | PyObject * obj2 = 0 ; | |
17301 | PyObject * obj3 = 0 ; | |
17302 | char *kwnames[] = { | |
17303 | (char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
17304 | }; | |
17305 | ||
17306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DateTimeFromHMS",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
17307 | arg1 = (int) SWIG_AsInt(obj0); | |
17308 | if (PyErr_Occurred()) SWIG_fail; | |
17309 | if (obj1) { | |
17310 | arg2 = (int) SWIG_AsInt(obj1); | |
17311 | if (PyErr_Occurred()) SWIG_fail; | |
17312 | } | |
17313 | if (obj2) { | |
17314 | arg3 = (int) SWIG_AsInt(obj2); | |
17315 | if (PyErr_Occurred()) SWIG_fail; | |
17316 | } | |
17317 | if (obj3) { | |
17318 | arg4 = (int) SWIG_AsInt(obj3); | |
17319 | if (PyErr_Occurred()) SWIG_fail; | |
17320 | } | |
17321 | { | |
17322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17323 | result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4); | |
17324 | ||
17325 | wxPyEndAllowThreads(__tstate); | |
17326 | if (PyErr_Occurred()) SWIG_fail; | |
17327 | } | |
17328 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
17329 | return resultobj; | |
17330 | fail: | |
17331 | return NULL; | |
17332 | } | |
17333 | ||
17334 | ||
17335 | static PyObject *_wrap_new_DateTimeFromDMY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17336 | PyObject *resultobj; | |
17337 | int arg1 ; | |
17338 | int arg2 = (int) wxDateTime::Inv_Month ; | |
17339 | int arg3 = (int) wxDateTime::Inv_Year ; | |
17340 | int arg4 = (int) 0 ; | |
17341 | int arg5 = (int) 0 ; | |
17342 | int arg6 = (int) 0 ; | |
17343 | int arg7 = (int) 0 ; | |
17344 | wxDateTime *result; | |
17345 | PyObject * obj0 = 0 ; | |
17346 | PyObject * obj1 = 0 ; | |
17347 | PyObject * obj2 = 0 ; | |
17348 | PyObject * obj3 = 0 ; | |
17349 | PyObject * obj4 = 0 ; | |
17350 | PyObject * obj5 = 0 ; | |
17351 | PyObject * obj6 = 0 ; | |
17352 | char *kwnames[] = { | |
17353 | (char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
17354 | }; | |
17355 | ||
17356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DateTimeFromDMY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
17357 | arg1 = (int) SWIG_AsInt(obj0); | |
17358 | if (PyErr_Occurred()) SWIG_fail; | |
17359 | if (obj1) { | |
17360 | arg2 = (wxDateTime::Month) SWIG_AsInt(obj1); | |
17361 | if (PyErr_Occurred()) SWIG_fail; | |
17362 | } | |
17363 | if (obj2) { | |
17364 | arg3 = (int) SWIG_AsInt(obj2); | |
17365 | if (PyErr_Occurred()) SWIG_fail; | |
17366 | } | |
17367 | if (obj3) { | |
17368 | arg4 = (int) SWIG_AsInt(obj3); | |
17369 | if (PyErr_Occurred()) SWIG_fail; | |
17370 | } | |
17371 | if (obj4) { | |
17372 | arg5 = (int) SWIG_AsInt(obj4); | |
17373 | if (PyErr_Occurred()) SWIG_fail; | |
17374 | } | |
17375 | if (obj5) { | |
17376 | arg6 = (int) SWIG_AsInt(obj5); | |
17377 | if (PyErr_Occurred()) SWIG_fail; | |
17378 | } | |
17379 | if (obj6) { | |
17380 | arg7 = (int) SWIG_AsInt(obj6); | |
17381 | if (PyErr_Occurred()) SWIG_fail; | |
17382 | } | |
17383 | { | |
17384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17385 | result = (wxDateTime *)new wxDateTime(arg1,(wxDateTime::Month )arg2,arg3,arg4,arg5,arg6,arg7); | |
17386 | ||
17387 | wxPyEndAllowThreads(__tstate); | |
17388 | if (PyErr_Occurred()) SWIG_fail; | |
17389 | } | |
17390 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
17391 | return resultobj; | |
17392 | fail: | |
17393 | return NULL; | |
17394 | } | |
17395 | ||
17396 | ||
17397 | static PyObject *_wrap_delete_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17398 | PyObject *resultobj; | |
17399 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17400 | PyObject * obj0 = 0 ; | |
17401 | char *kwnames[] = { | |
17402 | (char *) "self", NULL | |
17403 | }; | |
17404 | ||
17405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateTime",kwnames,&obj0)) goto fail; | |
17406 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17407 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17408 | { | |
17409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17410 | delete arg1; | |
17411 | ||
17412 | wxPyEndAllowThreads(__tstate); | |
17413 | if (PyErr_Occurred()) SWIG_fail; | |
17414 | } | |
17415 | Py_INCREF(Py_None); resultobj = Py_None; | |
17416 | return resultobj; | |
17417 | fail: | |
17418 | return NULL; | |
17419 | } | |
17420 | ||
17421 | ||
17422 | static PyObject *_wrap_DateTime_SetToCurrent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17423 | PyObject *resultobj; | |
17424 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17425 | wxDateTime *result; | |
17426 | PyObject * obj0 = 0 ; | |
17427 | char *kwnames[] = { | |
17428 | (char *) "self", NULL | |
17429 | }; | |
17430 | ||
17431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetToCurrent",kwnames,&obj0)) goto fail; | |
17432 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17433 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17434 | { | |
17435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17436 | { | |
17437 | wxDateTime &_result_ref = (arg1)->SetToCurrent(); | |
17438 | result = (wxDateTime *) &_result_ref; | |
17439 | } | |
17440 | ||
17441 | wxPyEndAllowThreads(__tstate); | |
17442 | if (PyErr_Occurred()) SWIG_fail; | |
17443 | } | |
17444 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17445 | return resultobj; | |
17446 | fail: | |
17447 | return NULL; | |
17448 | } | |
17449 | ||
17450 | ||
17451 | static PyObject *_wrap_DateTime_SetTimeT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17452 | PyObject *resultobj; | |
17453 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17454 | time_t arg2 ; | |
17455 | wxDateTime *result; | |
17456 | PyObject * obj0 = 0 ; | |
17457 | PyObject * obj1 = 0 ; | |
17458 | char *kwnames[] = { | |
17459 | (char *) "self",(char *) "timet", NULL | |
17460 | }; | |
17461 | ||
17462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetTimeT",kwnames,&obj0,&obj1)) goto fail; | |
17463 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17465 | arg2 = (time_t) SWIG_AsUnsignedInt(obj1); | |
17466 | if (PyErr_Occurred()) SWIG_fail; | |
17467 | { | |
17468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17469 | { | |
17470 | wxDateTime &_result_ref = (arg1)->Set(arg2); | |
17471 | result = (wxDateTime *) &_result_ref; | |
17472 | } | |
17473 | ||
17474 | wxPyEndAllowThreads(__tstate); | |
17475 | if (PyErr_Occurred()) SWIG_fail; | |
17476 | } | |
17477 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17478 | return resultobj; | |
17479 | fail: | |
17480 | return NULL; | |
17481 | } | |
17482 | ||
17483 | ||
17484 | static PyObject *_wrap_DateTime_SetJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17485 | PyObject *resultobj; | |
17486 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17487 | double arg2 ; | |
17488 | wxDateTime *result; | |
17489 | PyObject * obj0 = 0 ; | |
17490 | PyObject * obj1 = 0 ; | |
17491 | char *kwnames[] = { | |
17492 | (char *) "self",(char *) "jdn", NULL | |
17493 | }; | |
17494 | ||
17495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetJDN",kwnames,&obj0,&obj1)) goto fail; | |
17496 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17497 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17498 | arg2 = (double) SWIG_AsDouble(obj1); | |
17499 | if (PyErr_Occurred()) SWIG_fail; | |
17500 | { | |
17501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17502 | { | |
17503 | wxDateTime &_result_ref = (arg1)->Set(arg2); | |
17504 | result = (wxDateTime *) &_result_ref; | |
17505 | } | |
17506 | ||
17507 | wxPyEndAllowThreads(__tstate); | |
17508 | if (PyErr_Occurred()) SWIG_fail; | |
17509 | } | |
17510 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17511 | return resultobj; | |
17512 | fail: | |
17513 | return NULL; | |
17514 | } | |
17515 | ||
17516 | ||
17517 | static PyObject *_wrap_DateTime_SetHMS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17518 | PyObject *resultobj; | |
17519 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17520 | int arg2 ; | |
17521 | int arg3 = (int) 0 ; | |
17522 | int arg4 = (int) 0 ; | |
17523 | int arg5 = (int) 0 ; | |
17524 | wxDateTime *result; | |
17525 | PyObject * obj0 = 0 ; | |
17526 | PyObject * obj1 = 0 ; | |
17527 | PyObject * obj2 = 0 ; | |
17528 | PyObject * obj3 = 0 ; | |
17529 | PyObject * obj4 = 0 ; | |
17530 | char *kwnames[] = { | |
17531 | (char *) "self",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
17532 | }; | |
17533 | ||
17534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetHMS",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
17535 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17536 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17537 | arg2 = (int) SWIG_AsInt(obj1); | |
17538 | if (PyErr_Occurred()) SWIG_fail; | |
17539 | if (obj2) { | |
17540 | arg3 = (int) SWIG_AsInt(obj2); | |
17541 | if (PyErr_Occurred()) SWIG_fail; | |
17542 | } | |
17543 | if (obj3) { | |
17544 | arg4 = (int) SWIG_AsInt(obj3); | |
17545 | if (PyErr_Occurred()) SWIG_fail; | |
17546 | } | |
17547 | if (obj4) { | |
17548 | arg5 = (int) SWIG_AsInt(obj4); | |
17549 | if (PyErr_Occurred()) SWIG_fail; | |
17550 | } | |
17551 | { | |
17552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17553 | { | |
17554 | wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5); | |
17555 | result = (wxDateTime *) &_result_ref; | |
17556 | } | |
17557 | ||
17558 | wxPyEndAllowThreads(__tstate); | |
17559 | if (PyErr_Occurred()) SWIG_fail; | |
17560 | } | |
17561 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17562 | return resultobj; | |
17563 | fail: | |
17564 | return NULL; | |
17565 | } | |
17566 | ||
17567 | ||
17568 | static PyObject *_wrap_DateTime_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17569 | PyObject *resultobj; | |
17570 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17571 | int arg2 ; | |
17572 | int arg3 = (int) wxDateTime::Inv_Month ; | |
17573 | int arg4 = (int) wxDateTime::Inv_Year ; | |
17574 | int arg5 = (int) 0 ; | |
17575 | int arg6 = (int) 0 ; | |
17576 | int arg7 = (int) 0 ; | |
17577 | int arg8 = (int) 0 ; | |
17578 | wxDateTime *result; | |
17579 | PyObject * obj0 = 0 ; | |
17580 | PyObject * obj1 = 0 ; | |
17581 | PyObject * obj2 = 0 ; | |
17582 | PyObject * obj3 = 0 ; | |
17583 | PyObject * obj4 = 0 ; | |
17584 | PyObject * obj5 = 0 ; | |
17585 | PyObject * obj6 = 0 ; | |
17586 | PyObject * obj7 = 0 ; | |
17587 | char *kwnames[] = { | |
17588 | (char *) "self",(char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
17589 | }; | |
17590 | ||
17591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:DateTime_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
17592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17594 | arg2 = (int) SWIG_AsInt(obj1); | |
17595 | if (PyErr_Occurred()) SWIG_fail; | |
17596 | if (obj2) { | |
17597 | arg3 = (wxDateTime::Month) SWIG_AsInt(obj2); | |
17598 | if (PyErr_Occurred()) SWIG_fail; | |
17599 | } | |
17600 | if (obj3) { | |
17601 | arg4 = (int) SWIG_AsInt(obj3); | |
17602 | if (PyErr_Occurred()) SWIG_fail; | |
17603 | } | |
17604 | if (obj4) { | |
17605 | arg5 = (int) SWIG_AsInt(obj4); | |
17606 | if (PyErr_Occurred()) SWIG_fail; | |
17607 | } | |
17608 | if (obj5) { | |
17609 | arg6 = (int) SWIG_AsInt(obj5); | |
17610 | if (PyErr_Occurred()) SWIG_fail; | |
17611 | } | |
17612 | if (obj6) { | |
17613 | arg7 = (int) SWIG_AsInt(obj6); | |
17614 | if (PyErr_Occurred()) SWIG_fail; | |
17615 | } | |
17616 | if (obj7) { | |
17617 | arg8 = (int) SWIG_AsInt(obj7); | |
17618 | if (PyErr_Occurred()) SWIG_fail; | |
17619 | } | |
17620 | { | |
17621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17622 | { | |
17623 | wxDateTime &_result_ref = (arg1)->Set(arg2,(wxDateTime::Month )arg3,arg4,arg5,arg6,arg7,arg8); | |
17624 | result = (wxDateTime *) &_result_ref; | |
17625 | } | |
17626 | ||
17627 | wxPyEndAllowThreads(__tstate); | |
17628 | if (PyErr_Occurred()) SWIG_fail; | |
17629 | } | |
17630 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17631 | return resultobj; | |
17632 | fail: | |
17633 | return NULL; | |
17634 | } | |
17635 | ||
17636 | ||
17637 | static PyObject *_wrap_DateTime_ResetTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17638 | PyObject *resultobj; | |
17639 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17640 | wxDateTime *result; | |
17641 | PyObject * obj0 = 0 ; | |
17642 | char *kwnames[] = { | |
17643 | (char *) "self", NULL | |
17644 | }; | |
17645 | ||
17646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ResetTime",kwnames,&obj0)) goto fail; | |
17647 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17648 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17649 | { | |
17650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17651 | { | |
17652 | wxDateTime &_result_ref = (arg1)->ResetTime(); | |
17653 | result = (wxDateTime *) &_result_ref; | |
17654 | } | |
17655 | ||
17656 | wxPyEndAllowThreads(__tstate); | |
17657 | if (PyErr_Occurred()) SWIG_fail; | |
17658 | } | |
17659 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17660 | return resultobj; | |
17661 | fail: | |
17662 | return NULL; | |
17663 | } | |
17664 | ||
17665 | ||
17666 | static PyObject *_wrap_DateTime_SetYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17667 | PyObject *resultobj; | |
17668 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17669 | int arg2 ; | |
17670 | wxDateTime *result; | |
17671 | PyObject * obj0 = 0 ; | |
17672 | PyObject * obj1 = 0 ; | |
17673 | char *kwnames[] = { | |
17674 | (char *) "self",(char *) "year", NULL | |
17675 | }; | |
17676 | ||
17677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetYear",kwnames,&obj0,&obj1)) goto fail; | |
17678 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17679 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17680 | arg2 = (int) SWIG_AsInt(obj1); | |
17681 | if (PyErr_Occurred()) SWIG_fail; | |
17682 | { | |
17683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17684 | { | |
17685 | wxDateTime &_result_ref = (arg1)->SetYear(arg2); | |
17686 | result = (wxDateTime *) &_result_ref; | |
17687 | } | |
17688 | ||
17689 | wxPyEndAllowThreads(__tstate); | |
17690 | if (PyErr_Occurred()) SWIG_fail; | |
17691 | } | |
17692 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17693 | return resultobj; | |
17694 | fail: | |
17695 | return NULL; | |
17696 | } | |
17697 | ||
17698 | ||
17699 | static PyObject *_wrap_DateTime_SetMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17700 | PyObject *resultobj; | |
17701 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17702 | int arg2 ; | |
17703 | wxDateTime *result; | |
17704 | PyObject * obj0 = 0 ; | |
17705 | PyObject * obj1 = 0 ; | |
17706 | char *kwnames[] = { | |
17707 | (char *) "self",(char *) "month", NULL | |
17708 | }; | |
17709 | ||
17710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMonth",kwnames,&obj0,&obj1)) goto fail; | |
17711 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17712 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17713 | arg2 = (wxDateTime::Month) SWIG_AsInt(obj1); | |
17714 | if (PyErr_Occurred()) SWIG_fail; | |
17715 | { | |
17716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17717 | { | |
17718 | wxDateTime &_result_ref = (arg1)->SetMonth((wxDateTime::Month )arg2); | |
17719 | result = (wxDateTime *) &_result_ref; | |
17720 | } | |
17721 | ||
17722 | wxPyEndAllowThreads(__tstate); | |
17723 | if (PyErr_Occurred()) SWIG_fail; | |
17724 | } | |
17725 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17726 | return resultobj; | |
17727 | fail: | |
17728 | return NULL; | |
17729 | } | |
17730 | ||
17731 | ||
17732 | static PyObject *_wrap_DateTime_SetDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17733 | PyObject *resultobj; | |
17734 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17735 | int arg2 ; | |
17736 | wxDateTime *result; | |
17737 | PyObject * obj0 = 0 ; | |
17738 | PyObject * obj1 = 0 ; | |
17739 | char *kwnames[] = { | |
17740 | (char *) "self",(char *) "day", NULL | |
17741 | }; | |
17742 | ||
17743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetDay",kwnames,&obj0,&obj1)) goto fail; | |
17744 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17745 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17746 | arg2 = (int) SWIG_AsInt(obj1); | |
17747 | if (PyErr_Occurred()) SWIG_fail; | |
17748 | { | |
17749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17750 | { | |
17751 | wxDateTime &_result_ref = (arg1)->SetDay(arg2); | |
17752 | result = (wxDateTime *) &_result_ref; | |
17753 | } | |
17754 | ||
17755 | wxPyEndAllowThreads(__tstate); | |
17756 | if (PyErr_Occurred()) SWIG_fail; | |
17757 | } | |
17758 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17759 | return resultobj; | |
17760 | fail: | |
17761 | return NULL; | |
17762 | } | |
17763 | ||
17764 | ||
17765 | static PyObject *_wrap_DateTime_SetHour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17766 | PyObject *resultobj; | |
17767 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17768 | int arg2 ; | |
17769 | wxDateTime *result; | |
17770 | PyObject * obj0 = 0 ; | |
17771 | PyObject * obj1 = 0 ; | |
17772 | char *kwnames[] = { | |
17773 | (char *) "self",(char *) "hour", NULL | |
17774 | }; | |
17775 | ||
17776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetHour",kwnames,&obj0,&obj1)) goto fail; | |
17777 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17778 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17779 | arg2 = (int) SWIG_AsInt(obj1); | |
17780 | if (PyErr_Occurred()) SWIG_fail; | |
17781 | { | |
17782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17783 | { | |
17784 | wxDateTime &_result_ref = (arg1)->SetHour(arg2); | |
17785 | result = (wxDateTime *) &_result_ref; | |
17786 | } | |
17787 | ||
17788 | wxPyEndAllowThreads(__tstate); | |
17789 | if (PyErr_Occurred()) SWIG_fail; | |
17790 | } | |
17791 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17792 | return resultobj; | |
17793 | fail: | |
17794 | return NULL; | |
17795 | } | |
17796 | ||
17797 | ||
17798 | static PyObject *_wrap_DateTime_SetMinute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17799 | PyObject *resultobj; | |
17800 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17801 | int arg2 ; | |
17802 | wxDateTime *result; | |
17803 | PyObject * obj0 = 0 ; | |
17804 | PyObject * obj1 = 0 ; | |
17805 | char *kwnames[] = { | |
17806 | (char *) "self",(char *) "minute", NULL | |
17807 | }; | |
17808 | ||
17809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMinute",kwnames,&obj0,&obj1)) goto fail; | |
17810 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17811 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17812 | arg2 = (int) SWIG_AsInt(obj1); | |
17813 | if (PyErr_Occurred()) SWIG_fail; | |
17814 | { | |
17815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17816 | { | |
17817 | wxDateTime &_result_ref = (arg1)->SetMinute(arg2); | |
17818 | result = (wxDateTime *) &_result_ref; | |
17819 | } | |
17820 | ||
17821 | wxPyEndAllowThreads(__tstate); | |
17822 | if (PyErr_Occurred()) SWIG_fail; | |
17823 | } | |
17824 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17825 | return resultobj; | |
17826 | fail: | |
17827 | return NULL; | |
17828 | } | |
17829 | ||
17830 | ||
17831 | static PyObject *_wrap_DateTime_SetSecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17832 | PyObject *resultobj; | |
17833 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17834 | int arg2 ; | |
17835 | wxDateTime *result; | |
17836 | PyObject * obj0 = 0 ; | |
17837 | PyObject * obj1 = 0 ; | |
17838 | char *kwnames[] = { | |
17839 | (char *) "self",(char *) "second", NULL | |
17840 | }; | |
17841 | ||
17842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetSecond",kwnames,&obj0,&obj1)) goto fail; | |
17843 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17844 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17845 | arg2 = (int) SWIG_AsInt(obj1); | |
17846 | if (PyErr_Occurred()) SWIG_fail; | |
17847 | { | |
17848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17849 | { | |
17850 | wxDateTime &_result_ref = (arg1)->SetSecond(arg2); | |
17851 | result = (wxDateTime *) &_result_ref; | |
17852 | } | |
17853 | ||
17854 | wxPyEndAllowThreads(__tstate); | |
17855 | if (PyErr_Occurred()) SWIG_fail; | |
17856 | } | |
17857 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17858 | return resultobj; | |
17859 | fail: | |
17860 | return NULL; | |
17861 | } | |
17862 | ||
17863 | ||
17864 | static PyObject *_wrap_DateTime_SetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17865 | PyObject *resultobj; | |
17866 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17867 | int arg2 ; | |
17868 | wxDateTime *result; | |
17869 | PyObject * obj0 = 0 ; | |
17870 | PyObject * obj1 = 0 ; | |
17871 | char *kwnames[] = { | |
17872 | (char *) "self",(char *) "millisecond", NULL | |
17873 | }; | |
17874 | ||
17875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMillisecond",kwnames,&obj0,&obj1)) goto fail; | |
17876 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17877 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17878 | arg2 = (int) SWIG_AsInt(obj1); | |
17879 | if (PyErr_Occurred()) SWIG_fail; | |
17880 | { | |
17881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17882 | { | |
17883 | wxDateTime &_result_ref = (arg1)->SetMillisecond(arg2); | |
17884 | result = (wxDateTime *) &_result_ref; | |
17885 | } | |
17886 | ||
17887 | wxPyEndAllowThreads(__tstate); | |
17888 | if (PyErr_Occurred()) SWIG_fail; | |
17889 | } | |
17890 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17891 | return resultobj; | |
17892 | fail: | |
17893 | return NULL; | |
17894 | } | |
17895 | ||
17896 | ||
17897 | static PyObject *_wrap_DateTime_SetToWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17898 | PyObject *resultobj; | |
17899 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17900 | int arg2 ; | |
17901 | int arg3 = (int) wxDateTime::Monday_First ; | |
17902 | wxDateTime *result; | |
17903 | PyObject * obj0 = 0 ; | |
17904 | PyObject * obj1 = 0 ; | |
17905 | PyObject * obj2 = 0 ; | |
17906 | char *kwnames[] = { | |
17907 | (char *) "self",(char *) "weekday",(char *) "flags", NULL | |
17908 | }; | |
17909 | ||
17910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17911 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17912 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17913 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
17914 | if (PyErr_Occurred()) SWIG_fail; | |
17915 | if (obj2) { | |
17916 | arg3 = (wxDateTime::WeekFlags) SWIG_AsInt(obj2); | |
17917 | if (PyErr_Occurred()) SWIG_fail; | |
17918 | } | |
17919 | { | |
17920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17921 | { | |
17922 | wxDateTime &_result_ref = (arg1)->SetToWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3); | |
17923 | result = (wxDateTime *) &_result_ref; | |
17924 | } | |
17925 | ||
17926 | wxPyEndAllowThreads(__tstate); | |
17927 | if (PyErr_Occurred()) SWIG_fail; | |
17928 | } | |
17929 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17930 | return resultobj; | |
17931 | fail: | |
17932 | return NULL; | |
17933 | } | |
17934 | ||
17935 | ||
17936 | static PyObject *_wrap_DateTime_GetWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17937 | PyObject *resultobj; | |
17938 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17939 | int arg2 ; | |
17940 | int arg3 = (int) wxDateTime::Monday_First ; | |
17941 | wxDateTime result; | |
17942 | PyObject * obj0 = 0 ; | |
17943 | PyObject * obj1 = 0 ; | |
17944 | PyObject * obj2 = 0 ; | |
17945 | char *kwnames[] = { | |
17946 | (char *) "self",(char *) "weekday",(char *) "flags", NULL | |
17947 | }; | |
17948 | ||
17949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_GetWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17950 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17951 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17952 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
17953 | if (PyErr_Occurred()) SWIG_fail; | |
17954 | if (obj2) { | |
17955 | arg3 = (wxDateTime::WeekFlags) SWIG_AsInt(obj2); | |
17956 | if (PyErr_Occurred()) SWIG_fail; | |
17957 | } | |
17958 | { | |
17959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17960 | result = (arg1)->GetWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3); | |
17961 | ||
17962 | wxPyEndAllowThreads(__tstate); | |
17963 | if (PyErr_Occurred()) SWIG_fail; | |
17964 | } | |
17965 | { | |
17966 | wxDateTime * resultptr; | |
17967 | resultptr = new wxDateTime((wxDateTime &) result); | |
17968 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
17969 | } | |
17970 | return resultobj; | |
17971 | fail: | |
17972 | return NULL; | |
17973 | } | |
17974 | ||
17975 | ||
17976 | static PyObject *_wrap_DateTime_SetToNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17977 | PyObject *resultobj; | |
17978 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17979 | int arg2 ; | |
17980 | wxDateTime *result; | |
17981 | PyObject * obj0 = 0 ; | |
17982 | PyObject * obj1 = 0 ; | |
17983 | char *kwnames[] = { | |
17984 | (char *) "self",(char *) "weekday", NULL | |
17985 | }; | |
17986 | ||
17987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToNextWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
17988 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17989 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17990 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
17991 | if (PyErr_Occurred()) SWIG_fail; | |
17992 | { | |
17993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17994 | { | |
17995 | wxDateTime &_result_ref = (arg1)->SetToNextWeekDay((wxDateTime::WeekDay )arg2); | |
17996 | result = (wxDateTime *) &_result_ref; | |
17997 | } | |
17998 | ||
17999 | wxPyEndAllowThreads(__tstate); | |
18000 | if (PyErr_Occurred()) SWIG_fail; | |
18001 | } | |
18002 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18003 | return resultobj; | |
18004 | fail: | |
18005 | return NULL; | |
18006 | } | |
18007 | ||
18008 | ||
18009 | static PyObject *_wrap_DateTime_GetNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18010 | PyObject *resultobj; | |
18011 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18012 | int arg2 ; | |
18013 | wxDateTime result; | |
18014 | PyObject * obj0 = 0 ; | |
18015 | PyObject * obj1 = 0 ; | |
18016 | char *kwnames[] = { | |
18017 | (char *) "self",(char *) "weekday", NULL | |
18018 | }; | |
18019 | ||
18020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetNextWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
18021 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18022 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18023 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18024 | if (PyErr_Occurred()) SWIG_fail; | |
18025 | { | |
18026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18027 | result = (arg1)->GetNextWeekDay((wxDateTime::WeekDay )arg2); | |
18028 | ||
18029 | wxPyEndAllowThreads(__tstate); | |
18030 | if (PyErr_Occurred()) SWIG_fail; | |
18031 | } | |
18032 | { | |
18033 | wxDateTime * resultptr; | |
18034 | resultptr = new wxDateTime((wxDateTime &) result); | |
18035 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18036 | } | |
18037 | return resultobj; | |
18038 | fail: | |
18039 | return NULL; | |
18040 | } | |
18041 | ||
18042 | ||
18043 | static PyObject *_wrap_DateTime_SetToPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18044 | PyObject *resultobj; | |
18045 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18046 | int arg2 ; | |
18047 | wxDateTime *result; | |
18048 | PyObject * obj0 = 0 ; | |
18049 | PyObject * obj1 = 0 ; | |
18050 | char *kwnames[] = { | |
18051 | (char *) "self",(char *) "weekday", NULL | |
18052 | }; | |
18053 | ||
18054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToPrevWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
18055 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18056 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18057 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18058 | if (PyErr_Occurred()) SWIG_fail; | |
18059 | { | |
18060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18061 | { | |
18062 | wxDateTime &_result_ref = (arg1)->SetToPrevWeekDay((wxDateTime::WeekDay )arg2); | |
18063 | result = (wxDateTime *) &_result_ref; | |
18064 | } | |
18065 | ||
18066 | wxPyEndAllowThreads(__tstate); | |
18067 | if (PyErr_Occurred()) SWIG_fail; | |
18068 | } | |
18069 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18070 | return resultobj; | |
18071 | fail: | |
18072 | return NULL; | |
18073 | } | |
18074 | ||
18075 | ||
18076 | static PyObject *_wrap_DateTime_GetPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18077 | PyObject *resultobj; | |
18078 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18079 | int arg2 ; | |
18080 | wxDateTime result; | |
18081 | PyObject * obj0 = 0 ; | |
18082 | PyObject * obj1 = 0 ; | |
18083 | char *kwnames[] = { | |
18084 | (char *) "self",(char *) "weekday", NULL | |
18085 | }; | |
18086 | ||
18087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetPrevWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
18088 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18089 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18090 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18091 | if (PyErr_Occurred()) SWIG_fail; | |
18092 | { | |
18093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18094 | result = (arg1)->GetPrevWeekDay((wxDateTime::WeekDay )arg2); | |
18095 | ||
18096 | wxPyEndAllowThreads(__tstate); | |
18097 | if (PyErr_Occurred()) SWIG_fail; | |
18098 | } | |
18099 | { | |
18100 | wxDateTime * resultptr; | |
18101 | resultptr = new wxDateTime((wxDateTime &) result); | |
18102 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18103 | } | |
18104 | return resultobj; | |
18105 | fail: | |
18106 | return NULL; | |
18107 | } | |
18108 | ||
18109 | ||
18110 | static PyObject *_wrap_DateTime_SetToWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18111 | PyObject *resultobj; | |
18112 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18113 | int arg2 ; | |
18114 | int arg3 = (int) 1 ; | |
18115 | int arg4 = (int) wxDateTime::Inv_Month ; | |
18116 | int arg5 = (int) wxDateTime::Inv_Year ; | |
18117 | bool result; | |
18118 | PyObject * obj0 = 0 ; | |
18119 | PyObject * obj1 = 0 ; | |
18120 | PyObject * obj2 = 0 ; | |
18121 | PyObject * obj3 = 0 ; | |
18122 | PyObject * obj4 = 0 ; | |
18123 | char *kwnames[] = { | |
18124 | (char *) "self",(char *) "weekday",(char *) "n",(char *) "month",(char *) "year", NULL | |
18125 | }; | |
18126 | ||
18127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetToWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
18128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18130 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18131 | if (PyErr_Occurred()) SWIG_fail; | |
18132 | if (obj2) { | |
18133 | arg3 = (int) SWIG_AsInt(obj2); | |
18134 | if (PyErr_Occurred()) SWIG_fail; | |
18135 | } | |
18136 | if (obj3) { | |
18137 | arg4 = (wxDateTime::Month) SWIG_AsInt(obj3); | |
18138 | if (PyErr_Occurred()) SWIG_fail; | |
18139 | } | |
18140 | if (obj4) { | |
18141 | arg5 = (int) SWIG_AsInt(obj4); | |
18142 | if (PyErr_Occurred()) SWIG_fail; | |
18143 | } | |
18144 | { | |
18145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18146 | result = (bool)(arg1)->SetToWeekDay((wxDateTime::WeekDay )arg2,arg3,(wxDateTime::Month )arg4,arg5); | |
18147 | ||
18148 | wxPyEndAllowThreads(__tstate); | |
18149 | if (PyErr_Occurred()) SWIG_fail; | |
18150 | } | |
18151 | { | |
18152 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18153 | } | |
18154 | return resultobj; | |
18155 | fail: | |
18156 | return NULL; | |
18157 | } | |
18158 | ||
18159 | ||
18160 | static PyObject *_wrap_DateTime_SetToLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18161 | PyObject *resultobj; | |
18162 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18163 | int arg2 ; | |
18164 | int arg3 = (int) wxDateTime::Inv_Month ; | |
18165 | int arg4 = (int) wxDateTime::Inv_Year ; | |
18166 | bool result; | |
18167 | PyObject * obj0 = 0 ; | |
18168 | PyObject * obj1 = 0 ; | |
18169 | PyObject * obj2 = 0 ; | |
18170 | PyObject * obj3 = 0 ; | |
18171 | char *kwnames[] = { | |
18172 | (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL | |
18173 | }; | |
18174 | ||
18175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
18176 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18177 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18178 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18179 | if (PyErr_Occurred()) SWIG_fail; | |
18180 | if (obj2) { | |
18181 | arg3 = (wxDateTime::Month) SWIG_AsInt(obj2); | |
18182 | if (PyErr_Occurred()) SWIG_fail; | |
18183 | } | |
18184 | if (obj3) { | |
18185 | arg4 = (int) SWIG_AsInt(obj3); | |
18186 | if (PyErr_Occurred()) SWIG_fail; | |
18187 | } | |
18188 | { | |
18189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18190 | result = (bool)(arg1)->SetToLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4); | |
18191 | ||
18192 | wxPyEndAllowThreads(__tstate); | |
18193 | if (PyErr_Occurred()) SWIG_fail; | |
18194 | } | |
18195 | { | |
18196 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18197 | } | |
18198 | return resultobj; | |
18199 | fail: | |
18200 | return NULL; | |
18201 | } | |
18202 | ||
18203 | ||
18204 | static PyObject *_wrap_DateTime_GetLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18205 | PyObject *resultobj; | |
18206 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18207 | int arg2 ; | |
18208 | int arg3 = (int) wxDateTime::Inv_Month ; | |
18209 | int arg4 = (int) wxDateTime::Inv_Year ; | |
18210 | wxDateTime result; | |
18211 | PyObject * obj0 = 0 ; | |
18212 | PyObject * obj1 = 0 ; | |
18213 | PyObject * obj2 = 0 ; | |
18214 | PyObject * obj3 = 0 ; | |
18215 | char *kwnames[] = { | |
18216 | (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL | |
18217 | }; | |
18218 | ||
18219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
18220 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18221 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18222 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18223 | if (PyErr_Occurred()) SWIG_fail; | |
18224 | if (obj2) { | |
18225 | arg3 = (wxDateTime::Month) SWIG_AsInt(obj2); | |
18226 | if (PyErr_Occurred()) SWIG_fail; | |
18227 | } | |
18228 | if (obj3) { | |
18229 | arg4 = (int) SWIG_AsInt(obj3); | |
18230 | if (PyErr_Occurred()) SWIG_fail; | |
18231 | } | |
18232 | { | |
18233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18234 | result = (arg1)->GetLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4); | |
18235 | ||
18236 | wxPyEndAllowThreads(__tstate); | |
18237 | if (PyErr_Occurred()) SWIG_fail; | |
18238 | } | |
18239 | { | |
18240 | wxDateTime * resultptr; | |
18241 | resultptr = new wxDateTime((wxDateTime &) result); | |
18242 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18243 | } | |
18244 | return resultobj; | |
18245 | fail: | |
18246 | return NULL; | |
18247 | } | |
18248 | ||
18249 | ||
18250 | static PyObject *_wrap_DateTime_SetToTheWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18251 | PyObject *resultobj; | |
18252 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18253 | int arg2 ; | |
18254 | int arg3 = (int) wxDateTime::Mon ; | |
18255 | int arg4 = (int) wxDateTime::Monday_First ; | |
18256 | bool result; | |
18257 | PyObject * obj0 = 0 ; | |
18258 | PyObject * obj1 = 0 ; | |
18259 | PyObject * obj2 = 0 ; | |
18260 | PyObject * obj3 = 0 ; | |
18261 | char *kwnames[] = { | |
18262 | (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL | |
18263 | }; | |
18264 | ||
18265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToTheWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
18266 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18267 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18268 | arg2 = (int) SWIG_AsInt(obj1); | |
18269 | if (PyErr_Occurred()) SWIG_fail; | |
18270 | if (obj2) { | |
18271 | arg3 = (wxDateTime::WeekDay) SWIG_AsInt(obj2); | |
18272 | if (PyErr_Occurred()) SWIG_fail; | |
18273 | } | |
18274 | if (obj3) { | |
18275 | arg4 = (wxDateTime::WeekFlags) SWIG_AsInt(obj3); | |
18276 | if (PyErr_Occurred()) SWIG_fail; | |
18277 | } | |
18278 | { | |
18279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18280 | result = (bool)(arg1)->SetToTheWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4); | |
18281 | ||
18282 | wxPyEndAllowThreads(__tstate); | |
18283 | if (PyErr_Occurred()) SWIG_fail; | |
18284 | } | |
18285 | { | |
18286 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18287 | } | |
18288 | return resultobj; | |
18289 | fail: | |
18290 | return NULL; | |
18291 | } | |
18292 | ||
18293 | ||
18294 | static PyObject *_wrap_DateTime_GetWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18295 | PyObject *resultobj; | |
18296 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18297 | int arg2 ; | |
18298 | int arg3 = (int) wxDateTime::Mon ; | |
18299 | int arg4 = (int) wxDateTime::Monday_First ; | |
18300 | wxDateTime result; | |
18301 | PyObject * obj0 = 0 ; | |
18302 | PyObject * obj1 = 0 ; | |
18303 | PyObject * obj2 = 0 ; | |
18304 | PyObject * obj3 = 0 ; | |
18305 | char *kwnames[] = { | |
18306 | (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL | |
18307 | }; | |
18308 | ||
18309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
18310 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18311 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18312 | arg2 = (int) SWIG_AsInt(obj1); | |
18313 | if (PyErr_Occurred()) SWIG_fail; | |
18314 | if (obj2) { | |
18315 | arg3 = (wxDateTime::WeekDay) SWIG_AsInt(obj2); | |
18316 | if (PyErr_Occurred()) SWIG_fail; | |
18317 | } | |
18318 | if (obj3) { | |
18319 | arg4 = (wxDateTime::WeekFlags) SWIG_AsInt(obj3); | |
18320 | if (PyErr_Occurred()) SWIG_fail; | |
18321 | } | |
18322 | { | |
18323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18324 | result = (arg1)->GetWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4); | |
18325 | ||
18326 | wxPyEndAllowThreads(__tstate); | |
18327 | if (PyErr_Occurred()) SWIG_fail; | |
18328 | } | |
18329 | { | |
18330 | wxDateTime * resultptr; | |
18331 | resultptr = new wxDateTime((wxDateTime &) result); | |
18332 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18333 | } | |
18334 | return resultobj; | |
18335 | fail: | |
18336 | return NULL; | |
18337 | } | |
18338 | ||
18339 | ||
18340 | static PyObject *_wrap_DateTime_SetToLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18341 | PyObject *resultobj; | |
18342 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18343 | int arg2 = (int) wxDateTime::Inv_Month ; | |
18344 | int arg3 = (int) wxDateTime::Inv_Year ; | |
18345 | wxDateTime *result; | |
18346 | PyObject * obj0 = 0 ; | |
18347 | PyObject * obj1 = 0 ; | |
18348 | PyObject * obj2 = 0 ; | |
18349 | char *kwnames[] = { | |
18350 | (char *) "self",(char *) "month",(char *) "year", NULL | |
18351 | }; | |
18352 | ||
18353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_SetToLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18354 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18355 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18356 | if (obj1) { | |
18357 | arg2 = (wxDateTime::Month) SWIG_AsInt(obj1); | |
18358 | if (PyErr_Occurred()) SWIG_fail; | |
18359 | } | |
18360 | if (obj2) { | |
18361 | arg3 = (int) SWIG_AsInt(obj2); | |
18362 | if (PyErr_Occurred()) SWIG_fail; | |
18363 | } | |
18364 | { | |
18365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18366 | { | |
18367 | wxDateTime &_result_ref = (arg1)->SetToLastMonthDay((wxDateTime::Month )arg2,arg3); | |
18368 | result = (wxDateTime *) &_result_ref; | |
18369 | } | |
18370 | ||
18371 | wxPyEndAllowThreads(__tstate); | |
18372 | if (PyErr_Occurred()) SWIG_fail; | |
18373 | } | |
18374 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18375 | return resultobj; | |
18376 | fail: | |
18377 | return NULL; | |
18378 | } | |
18379 | ||
18380 | ||
18381 | static PyObject *_wrap_DateTime_GetLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18382 | PyObject *resultobj; | |
18383 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18384 | int arg2 = (int) wxDateTime::Inv_Month ; | |
18385 | int arg3 = (int) wxDateTime::Inv_Year ; | |
18386 | wxDateTime result; | |
18387 | PyObject * obj0 = 0 ; | |
18388 | PyObject * obj1 = 0 ; | |
18389 | PyObject * obj2 = 0 ; | |
18390 | char *kwnames[] = { | |
18391 | (char *) "self",(char *) "month",(char *) "year", NULL | |
18392 | }; | |
18393 | ||
18394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18395 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18396 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18397 | if (obj1) { | |
18398 | arg2 = (wxDateTime::Month) SWIG_AsInt(obj1); | |
18399 | if (PyErr_Occurred()) SWIG_fail; | |
18400 | } | |
18401 | if (obj2) { | |
18402 | arg3 = (int) SWIG_AsInt(obj2); | |
18403 | if (PyErr_Occurred()) SWIG_fail; | |
18404 | } | |
18405 | { | |
18406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18407 | result = (arg1)->GetLastMonthDay((wxDateTime::Month )arg2,arg3); | |
18408 | ||
18409 | wxPyEndAllowThreads(__tstate); | |
18410 | if (PyErr_Occurred()) SWIG_fail; | |
18411 | } | |
18412 | { | |
18413 | wxDateTime * resultptr; | |
18414 | resultptr = new wxDateTime((wxDateTime &) result); | |
18415 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18416 | } | |
18417 | return resultobj; | |
18418 | fail: | |
18419 | return NULL; | |
18420 | } | |
18421 | ||
18422 | ||
18423 | static PyObject *_wrap_DateTime_SetToYearDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18424 | PyObject *resultobj; | |
18425 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18426 | int arg2 ; | |
18427 | wxDateTime *result; | |
18428 | PyObject * obj0 = 0 ; | |
18429 | PyObject * obj1 = 0 ; | |
18430 | char *kwnames[] = { | |
18431 | (char *) "self",(char *) "yday", NULL | |
18432 | }; | |
18433 | ||
18434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToYearDay",kwnames,&obj0,&obj1)) goto fail; | |
18435 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18436 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18437 | arg2 = (int) SWIG_AsInt(obj1); | |
18438 | if (PyErr_Occurred()) SWIG_fail; | |
18439 | { | |
18440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18441 | { | |
18442 | wxDateTime &_result_ref = (arg1)->SetToYearDay(arg2); | |
18443 | result = (wxDateTime *) &_result_ref; | |
18444 | } | |
18445 | ||
18446 | wxPyEndAllowThreads(__tstate); | |
18447 | if (PyErr_Occurred()) SWIG_fail; | |
18448 | } | |
18449 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18450 | return resultobj; | |
18451 | fail: | |
18452 | return NULL; | |
18453 | } | |
18454 | ||
18455 | ||
18456 | static PyObject *_wrap_DateTime_GetYearDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18457 | PyObject *resultobj; | |
18458 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18459 | int arg2 ; | |
18460 | wxDateTime result; | |
18461 | PyObject * obj0 = 0 ; | |
18462 | PyObject * obj1 = 0 ; | |
18463 | char *kwnames[] = { | |
18464 | (char *) "self",(char *) "yday", NULL | |
18465 | }; | |
18466 | ||
18467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetYearDay",kwnames,&obj0,&obj1)) goto fail; | |
18468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18470 | arg2 = (int) SWIG_AsInt(obj1); | |
18471 | if (PyErr_Occurred()) SWIG_fail; | |
18472 | { | |
18473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18474 | result = (arg1)->GetYearDay(arg2); | |
18475 | ||
18476 | wxPyEndAllowThreads(__tstate); | |
18477 | if (PyErr_Occurred()) SWIG_fail; | |
18478 | } | |
18479 | { | |
18480 | wxDateTime * resultptr; | |
18481 | resultptr = new wxDateTime((wxDateTime &) result); | |
18482 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18483 | } | |
18484 | return resultobj; | |
18485 | fail: | |
18486 | return NULL; | |
18487 | } | |
18488 | ||
18489 | ||
18490 | static PyObject *_wrap_DateTime_GetJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18491 | PyObject *resultobj; | |
18492 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18493 | double result; | |
18494 | PyObject * obj0 = 0 ; | |
18495 | char *kwnames[] = { | |
18496 | (char *) "self", NULL | |
18497 | }; | |
18498 | ||
18499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJulianDayNumber",kwnames,&obj0)) goto fail; | |
18500 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18502 | { | |
18503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18504 | result = (double)(arg1)->GetJulianDayNumber(); | |
18505 | ||
18506 | wxPyEndAllowThreads(__tstate); | |
18507 | if (PyErr_Occurred()) SWIG_fail; | |
18508 | } | |
18509 | resultobj = SWIG_FromDouble((double)result); | |
18510 | return resultobj; | |
18511 | fail: | |
18512 | return NULL; | |
18513 | } | |
18514 | ||
18515 | ||
18516 | static PyObject *_wrap_DateTime_GetJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18517 | PyObject *resultobj; | |
18518 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18519 | double result; | |
18520 | PyObject * obj0 = 0 ; | |
18521 | char *kwnames[] = { | |
18522 | (char *) "self", NULL | |
18523 | }; | |
18524 | ||
18525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJDN",kwnames,&obj0)) goto fail; | |
18526 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18527 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18528 | { | |
18529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18530 | result = (double)(arg1)->GetJDN(); | |
18531 | ||
18532 | wxPyEndAllowThreads(__tstate); | |
18533 | if (PyErr_Occurred()) SWIG_fail; | |
18534 | } | |
18535 | resultobj = SWIG_FromDouble((double)result); | |
18536 | return resultobj; | |
18537 | fail: | |
18538 | return NULL; | |
18539 | } | |
18540 | ||
18541 | ||
18542 | static PyObject *_wrap_DateTime_GetModifiedJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18543 | PyObject *resultobj; | |
18544 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18545 | double result; | |
18546 | PyObject * obj0 = 0 ; | |
18547 | char *kwnames[] = { | |
18548 | (char *) "self", NULL | |
18549 | }; | |
18550 | ||
18551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetModifiedJulianDayNumber",kwnames,&obj0)) goto fail; | |
18552 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18554 | { | |
18555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18556 | result = (double)((wxDateTime const *)arg1)->GetModifiedJulianDayNumber(); | |
18557 | ||
18558 | wxPyEndAllowThreads(__tstate); | |
18559 | if (PyErr_Occurred()) SWIG_fail; | |
18560 | } | |
18561 | resultobj = SWIG_FromDouble((double)result); | |
18562 | return resultobj; | |
18563 | fail: | |
18564 | return NULL; | |
18565 | } | |
18566 | ||
18567 | ||
18568 | static PyObject *_wrap_DateTime_GetMJD(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18569 | PyObject *resultobj; | |
18570 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18571 | double result; | |
18572 | PyObject * obj0 = 0 ; | |
18573 | char *kwnames[] = { | |
18574 | (char *) "self", NULL | |
18575 | }; | |
18576 | ||
18577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetMJD",kwnames,&obj0)) goto fail; | |
18578 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18579 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18580 | { | |
18581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18582 | result = (double)(arg1)->GetMJD(); | |
18583 | ||
18584 | wxPyEndAllowThreads(__tstate); | |
18585 | if (PyErr_Occurred()) SWIG_fail; | |
18586 | } | |
18587 | resultobj = SWIG_FromDouble((double)result); | |
18588 | return resultobj; | |
18589 | fail: | |
18590 | return NULL; | |
18591 | } | |
18592 | ||
18593 | ||
18594 | static PyObject *_wrap_DateTime_GetRataDie(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18595 | PyObject *resultobj; | |
18596 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18597 | double result; | |
18598 | PyObject * obj0 = 0 ; | |
18599 | char *kwnames[] = { | |
18600 | (char *) "self", NULL | |
18601 | }; | |
18602 | ||
18603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetRataDie",kwnames,&obj0)) goto fail; | |
18604 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18606 | { | |
18607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18608 | result = (double)(arg1)->GetRataDie(); | |
18609 | ||
18610 | wxPyEndAllowThreads(__tstate); | |
18611 | if (PyErr_Occurred()) SWIG_fail; | |
18612 | } | |
18613 | resultobj = SWIG_FromDouble((double)result); | |
18614 | return resultobj; | |
18615 | fail: | |
18616 | return NULL; | |
18617 | } | |
18618 | ||
18619 | ||
18620 | static PyObject *_wrap_DateTime_ToTimezone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18621 | PyObject *resultobj; | |
18622 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18623 | wxDateTime::TimeZone *arg2 = 0 ; | |
18624 | bool arg3 = (bool) False ; | |
18625 | wxDateTime result; | |
18626 | bool temp2 = False ; | |
18627 | PyObject * obj0 = 0 ; | |
18628 | PyObject * obj1 = 0 ; | |
18629 | PyObject * obj2 = 0 ; | |
18630 | char *kwnames[] = { | |
18631 | (char *) "self",(char *) "tz",(char *) "noDST", NULL | |
18632 | }; | |
18633 | ||
18634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_ToTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18635 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18636 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18637 | { | |
18638 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
18639 | temp2 = True; | |
18640 | } | |
18641 | if (obj2) { | |
18642 | arg3 = (bool) SWIG_AsBool(obj2); | |
18643 | if (PyErr_Occurred()) SWIG_fail; | |
18644 | } | |
18645 | { | |
18646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18647 | result = (arg1)->ToTimezone((wxDateTime::TimeZone const &)*arg2,arg3); | |
18648 | ||
18649 | wxPyEndAllowThreads(__tstate); | |
18650 | if (PyErr_Occurred()) SWIG_fail; | |
18651 | } | |
18652 | { | |
18653 | wxDateTime * resultptr; | |
18654 | resultptr = new wxDateTime((wxDateTime &) result); | |
18655 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18656 | } | |
18657 | { | |
18658 | if (temp2) delete arg2; | |
18659 | } | |
18660 | return resultobj; | |
18661 | fail: | |
18662 | { | |
18663 | if (temp2) delete arg2; | |
18664 | } | |
18665 | return NULL; | |
18666 | } | |
18667 | ||
18668 | ||
18669 | static PyObject *_wrap_DateTime_MakeTimezone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18670 | PyObject *resultobj; | |
18671 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18672 | wxDateTime::TimeZone *arg2 = 0 ; | |
18673 | bool arg3 = (bool) False ; | |
18674 | wxDateTime *result; | |
18675 | bool temp2 = False ; | |
18676 | PyObject * obj0 = 0 ; | |
18677 | PyObject * obj1 = 0 ; | |
18678 | PyObject * obj2 = 0 ; | |
18679 | char *kwnames[] = { | |
18680 | (char *) "self",(char *) "tz",(char *) "noDST", NULL | |
18681 | }; | |
18682 | ||
18683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18684 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18685 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18686 | { | |
18687 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
18688 | temp2 = True; | |
18689 | } | |
18690 | if (obj2) { | |
18691 | arg3 = (bool) SWIG_AsBool(obj2); | |
18692 | if (PyErr_Occurred()) SWIG_fail; | |
18693 | } | |
18694 | { | |
18695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18696 | { | |
18697 | wxDateTime &_result_ref = (arg1)->MakeTimezone((wxDateTime::TimeZone const &)*arg2,arg3); | |
18698 | result = (wxDateTime *) &_result_ref; | |
18699 | } | |
18700 | ||
18701 | wxPyEndAllowThreads(__tstate); | |
18702 | if (PyErr_Occurred()) SWIG_fail; | |
18703 | } | |
18704 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18705 | { | |
18706 | if (temp2) delete arg2; | |
18707 | } | |
18708 | return resultobj; | |
18709 | fail: | |
18710 | { | |
18711 | if (temp2) delete arg2; | |
18712 | } | |
18713 | return NULL; | |
18714 | } | |
18715 | ||
18716 | ||
18717 | static PyObject *_wrap_DateTime_ToGMT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18718 | PyObject *resultobj; | |
18719 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18720 | bool arg2 = (bool) False ; | |
18721 | wxDateTime result; | |
18722 | PyObject * obj0 = 0 ; | |
18723 | PyObject * obj1 = 0 ; | |
18724 | char *kwnames[] = { | |
18725 | (char *) "self",(char *) "noDST", NULL | |
18726 | }; | |
18727 | ||
18728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToGMT",kwnames,&obj0,&obj1)) goto fail; | |
18729 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18730 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18731 | if (obj1) { | |
18732 | arg2 = (bool) SWIG_AsBool(obj1); | |
18733 | if (PyErr_Occurred()) SWIG_fail; | |
18734 | } | |
18735 | { | |
18736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18737 | result = (arg1)->ToGMT(arg2); | |
18738 | ||
18739 | wxPyEndAllowThreads(__tstate); | |
18740 | if (PyErr_Occurred()) SWIG_fail; | |
18741 | } | |
18742 | { | |
18743 | wxDateTime * resultptr; | |
18744 | resultptr = new wxDateTime((wxDateTime &) result); | |
18745 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18746 | } | |
18747 | return resultobj; | |
18748 | fail: | |
18749 | return NULL; | |
18750 | } | |
18751 | ||
18752 | ||
18753 | static PyObject *_wrap_DateTime_MakeGMT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18754 | PyObject *resultobj; | |
18755 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18756 | bool arg2 = (bool) False ; | |
18757 | wxDateTime *result; | |
18758 | PyObject * obj0 = 0 ; | |
18759 | PyObject * obj1 = 0 ; | |
18760 | char *kwnames[] = { | |
18761 | (char *) "self",(char *) "noDST", NULL | |
18762 | }; | |
18763 | ||
18764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeGMT",kwnames,&obj0,&obj1)) goto fail; | |
18765 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18767 | if (obj1) { | |
18768 | arg2 = (bool) SWIG_AsBool(obj1); | |
18769 | if (PyErr_Occurred()) SWIG_fail; | |
18770 | } | |
18771 | { | |
18772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18773 | { | |
18774 | wxDateTime &_result_ref = (arg1)->MakeGMT(arg2); | |
18775 | result = (wxDateTime *) &_result_ref; | |
18776 | } | |
18777 | ||
18778 | wxPyEndAllowThreads(__tstate); | |
18779 | if (PyErr_Occurred()) SWIG_fail; | |
18780 | } | |
18781 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18782 | return resultobj; | |
18783 | fail: | |
18784 | return NULL; | |
18785 | } | |
18786 | ||
18787 | ||
18788 | static PyObject *_wrap_DateTime_IsDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18789 | PyObject *resultobj; | |
18790 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18791 | int arg2 = (int) wxDateTime::Country_Default ; | |
18792 | int result; | |
18793 | PyObject * obj0 = 0 ; | |
18794 | PyObject * obj1 = 0 ; | |
18795 | char *kwnames[] = { | |
18796 | (char *) "self",(char *) "country", NULL | |
18797 | }; | |
18798 | ||
18799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsDST",kwnames,&obj0,&obj1)) goto fail; | |
18800 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18801 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18802 | if (obj1) { | |
18803 | arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); | |
18804 | if (PyErr_Occurred()) SWIG_fail; | |
18805 | } | |
18806 | { | |
18807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18808 | result = (int)(arg1)->IsDST((wxDateTime::Country )arg2); | |
18809 | ||
18810 | wxPyEndAllowThreads(__tstate); | |
18811 | if (PyErr_Occurred()) SWIG_fail; | |
18812 | } | |
18813 | resultobj = SWIG_FromInt((int)result); | |
18814 | return resultobj; | |
18815 | fail: | |
18816 | return NULL; | |
18817 | } | |
18818 | ||
18819 | ||
18820 | static PyObject *_wrap_DateTime_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18821 | PyObject *resultobj; | |
18822 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18823 | bool result; | |
18824 | PyObject * obj0 = 0 ; | |
18825 | char *kwnames[] = { | |
18826 | (char *) "self", NULL | |
18827 | }; | |
18828 | ||
18829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_IsValid",kwnames,&obj0)) goto fail; | |
18830 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18832 | { | |
18833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18834 | result = (bool)((wxDateTime const *)arg1)->IsValid(); | |
18835 | ||
18836 | wxPyEndAllowThreads(__tstate); | |
18837 | if (PyErr_Occurred()) SWIG_fail; | |
18838 | } | |
18839 | { | |
18840 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18841 | } | |
18842 | return resultobj; | |
18843 | fail: | |
18844 | return NULL; | |
18845 | } | |
18846 | ||
18847 | ||
18848 | static PyObject *_wrap_DateTime_GetTicks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18849 | PyObject *resultobj; | |
18850 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18851 | time_t result; | |
18852 | PyObject * obj0 = 0 ; | |
18853 | char *kwnames[] = { | |
18854 | (char *) "self", NULL | |
18855 | }; | |
18856 | ||
18857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetTicks",kwnames,&obj0)) goto fail; | |
18858 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18859 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18860 | { | |
18861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18862 | result = (time_t)((wxDateTime const *)arg1)->GetTicks(); | |
18863 | ||
18864 | wxPyEndAllowThreads(__tstate); | |
18865 | if (PyErr_Occurred()) SWIG_fail; | |
18866 | } | |
18867 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); | |
18868 | return resultobj; | |
18869 | fail: | |
18870 | return NULL; | |
18871 | } | |
18872 | ||
18873 | ||
18874 | static PyObject *_wrap_DateTime_GetYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18875 | PyObject *resultobj; | |
18876 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18877 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
18878 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
18879 | int result; | |
18880 | bool temp2 = False ; | |
18881 | PyObject * obj0 = 0 ; | |
18882 | PyObject * obj1 = 0 ; | |
18883 | char *kwnames[] = { | |
18884 | (char *) "self",(char *) "tz", NULL | |
18885 | }; | |
18886 | ||
18887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetYear",kwnames,&obj0,&obj1)) goto fail; | |
18888 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18890 | if (obj1) { | |
18891 | { | |
18892 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
18893 | temp2 = True; | |
18894 | } | |
18895 | } | |
18896 | { | |
18897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18898 | result = (int)((wxDateTime const *)arg1)->GetYear((wxDateTime::TimeZone const &)*arg2); | |
18899 | ||
18900 | wxPyEndAllowThreads(__tstate); | |
18901 | if (PyErr_Occurred()) SWIG_fail; | |
18902 | } | |
18903 | resultobj = SWIG_FromInt((int)result); | |
18904 | { | |
18905 | if (temp2) delete arg2; | |
18906 | } | |
18907 | return resultobj; | |
18908 | fail: | |
18909 | { | |
18910 | if (temp2) delete arg2; | |
18911 | } | |
18912 | return NULL; | |
18913 | } | |
18914 | ||
18915 | ||
18916 | static PyObject *_wrap_DateTime_GetMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18917 | PyObject *resultobj; | |
18918 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18919 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
18920 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
18921 | int result; | |
18922 | bool temp2 = False ; | |
18923 | PyObject * obj0 = 0 ; | |
18924 | PyObject * obj1 = 0 ; | |
18925 | char *kwnames[] = { | |
18926 | (char *) "self",(char *) "tz", NULL | |
18927 | }; | |
18928 | ||
18929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonth",kwnames,&obj0,&obj1)) goto fail; | |
18930 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18931 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18932 | if (obj1) { | |
18933 | { | |
18934 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
18935 | temp2 = True; | |
18936 | } | |
18937 | } | |
18938 | { | |
18939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18940 | result = (int)((wxDateTime const *)arg1)->GetMonth((wxDateTime::TimeZone const &)*arg2); | |
18941 | ||
18942 | wxPyEndAllowThreads(__tstate); | |
18943 | if (PyErr_Occurred()) SWIG_fail; | |
18944 | } | |
18945 | resultobj = SWIG_FromInt((int)result); | |
18946 | { | |
18947 | if (temp2) delete arg2; | |
18948 | } | |
18949 | return resultobj; | |
18950 | fail: | |
18951 | { | |
18952 | if (temp2) delete arg2; | |
18953 | } | |
18954 | return NULL; | |
18955 | } | |
18956 | ||
18957 | ||
18958 | static PyObject *_wrap_DateTime_GetDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18959 | PyObject *resultobj; | |
18960 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18961 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
18962 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
18963 | int result; | |
18964 | bool temp2 = False ; | |
18965 | PyObject * obj0 = 0 ; | |
18966 | PyObject * obj1 = 0 ; | |
18967 | char *kwnames[] = { | |
18968 | (char *) "self",(char *) "tz", NULL | |
18969 | }; | |
18970 | ||
18971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDay",kwnames,&obj0,&obj1)) goto fail; | |
18972 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18973 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18974 | if (obj1) { | |
18975 | { | |
18976 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
18977 | temp2 = True; | |
18978 | } | |
18979 | } | |
18980 | { | |
18981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18982 | result = (int)((wxDateTime const *)arg1)->GetDay((wxDateTime::TimeZone const &)*arg2); | |
18983 | ||
18984 | wxPyEndAllowThreads(__tstate); | |
18985 | if (PyErr_Occurred()) SWIG_fail; | |
18986 | } | |
18987 | resultobj = SWIG_FromInt((int)result); | |
18988 | { | |
18989 | if (temp2) delete arg2; | |
18990 | } | |
18991 | return resultobj; | |
18992 | fail: | |
18993 | { | |
18994 | if (temp2) delete arg2; | |
18995 | } | |
18996 | return NULL; | |
18997 | } | |
18998 | ||
18999 | ||
19000 | static PyObject *_wrap_DateTime_GetWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19001 | PyObject *resultobj; | |
19002 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19003 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19004 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19005 | int result; | |
19006 | bool temp2 = False ; | |
19007 | PyObject * obj0 = 0 ; | |
19008 | PyObject * obj1 = 0 ; | |
19009 | char *kwnames[] = { | |
19010 | (char *) "self",(char *) "tz", NULL | |
19011 | }; | |
19012 | ||
19013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
19014 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19015 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19016 | if (obj1) { | |
19017 | { | |
19018 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
19019 | temp2 = True; | |
19020 | } | |
19021 | } | |
19022 | { | |
19023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19024 | result = (int)((wxDateTime const *)arg1)->GetWeekDay((wxDateTime::TimeZone const &)*arg2); | |
19025 | ||
19026 | wxPyEndAllowThreads(__tstate); | |
19027 | if (PyErr_Occurred()) SWIG_fail; | |
19028 | } | |
19029 | resultobj = SWIG_FromInt((int)result); | |
19030 | { | |
19031 | if (temp2) delete arg2; | |
19032 | } | |
19033 | return resultobj; | |
19034 | fail: | |
19035 | { | |
19036 | if (temp2) delete arg2; | |
19037 | } | |
19038 | return NULL; | |
19039 | } | |
19040 | ||
19041 | ||
19042 | static PyObject *_wrap_DateTime_GetHour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19043 | PyObject *resultobj; | |
19044 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19045 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19046 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19047 | int result; | |
19048 | bool temp2 = False ; | |
19049 | PyObject * obj0 = 0 ; | |
19050 | PyObject * obj1 = 0 ; | |
19051 | char *kwnames[] = { | |
19052 | (char *) "self",(char *) "tz", NULL | |
19053 | }; | |
19054 | ||
19055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetHour",kwnames,&obj0,&obj1)) goto fail; | |
19056 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19057 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19058 | if (obj1) { | |
19059 | { | |
19060 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
19061 | temp2 = True; | |
19062 | } | |
19063 | } | |
19064 | { | |
19065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19066 | result = (int)((wxDateTime const *)arg1)->GetHour((wxDateTime::TimeZone const &)*arg2); | |
19067 | ||
19068 | wxPyEndAllowThreads(__tstate); | |
19069 | if (PyErr_Occurred()) SWIG_fail; | |
19070 | } | |
19071 | resultobj = SWIG_FromInt((int)result); | |
19072 | { | |
19073 | if (temp2) delete arg2; | |
19074 | } | |
19075 | return resultobj; | |
19076 | fail: | |
19077 | { | |
19078 | if (temp2) delete arg2; | |
19079 | } | |
19080 | return NULL; | |
19081 | } | |
19082 | ||
19083 | ||
19084 | static PyObject *_wrap_DateTime_GetMinute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19085 | PyObject *resultobj; | |
19086 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19087 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19088 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19089 | int result; | |
19090 | bool temp2 = False ; | |
19091 | PyObject * obj0 = 0 ; | |
19092 | PyObject * obj1 = 0 ; | |
19093 | char *kwnames[] = { | |
19094 | (char *) "self",(char *) "tz", NULL | |
19095 | }; | |
19096 | ||
19097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMinute",kwnames,&obj0,&obj1)) goto fail; | |
19098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19100 | if (obj1) { | |
19101 | { | |
19102 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
19103 | temp2 = True; | |
19104 | } | |
19105 | } | |
19106 | { | |
19107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19108 | result = (int)((wxDateTime const *)arg1)->GetMinute((wxDateTime::TimeZone const &)*arg2); | |
19109 | ||
19110 | wxPyEndAllowThreads(__tstate); | |
19111 | if (PyErr_Occurred()) SWIG_fail; | |
19112 | } | |
19113 | resultobj = SWIG_FromInt((int)result); | |
19114 | { | |
19115 | if (temp2) delete arg2; | |
19116 | } | |
19117 | return resultobj; | |
19118 | fail: | |
19119 | { | |
19120 | if (temp2) delete arg2; | |
19121 | } | |
19122 | return NULL; | |
19123 | } | |
19124 | ||
19125 | ||
19126 | static PyObject *_wrap_DateTime_GetSecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19127 | PyObject *resultobj; | |
19128 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19129 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19130 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19131 | int result; | |
19132 | bool temp2 = False ; | |
19133 | PyObject * obj0 = 0 ; | |
19134 | PyObject * obj1 = 0 ; | |
19135 | char *kwnames[] = { | |
19136 | (char *) "self",(char *) "tz", NULL | |
19137 | }; | |
19138 | ||
19139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetSecond",kwnames,&obj0,&obj1)) goto fail; | |
19140 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19141 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19142 | if (obj1) { | |
19143 | { | |
19144 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
19145 | temp2 = True; | |
19146 | } | |
19147 | } | |
19148 | { | |
19149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19150 | result = (int)((wxDateTime const *)arg1)->GetSecond((wxDateTime::TimeZone const &)*arg2); | |
19151 | ||
19152 | wxPyEndAllowThreads(__tstate); | |
19153 | if (PyErr_Occurred()) SWIG_fail; | |
19154 | } | |
19155 | resultobj = SWIG_FromInt((int)result); | |
19156 | { | |
19157 | if (temp2) delete arg2; | |
19158 | } | |
19159 | return resultobj; | |
19160 | fail: | |
19161 | { | |
19162 | if (temp2) delete arg2; | |
19163 | } | |
19164 | return NULL; | |
19165 | } | |
19166 | ||
19167 | ||
19168 | static PyObject *_wrap_DateTime_GetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19169 | PyObject *resultobj; | |
19170 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19171 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19172 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19173 | int result; | |
19174 | bool temp2 = False ; | |
19175 | PyObject * obj0 = 0 ; | |
19176 | PyObject * obj1 = 0 ; | |
19177 | char *kwnames[] = { | |
19178 | (char *) "self",(char *) "tz", NULL | |
19179 | }; | |
19180 | ||
19181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMillisecond",kwnames,&obj0,&obj1)) goto fail; | |
19182 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19183 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19184 | if (obj1) { | |
19185 | { | |
19186 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
19187 | temp2 = True; | |
19188 | } | |
19189 | } | |
19190 | { | |
19191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19192 | result = (int)((wxDateTime const *)arg1)->GetMillisecond((wxDateTime::TimeZone const &)*arg2); | |
19193 | ||
19194 | wxPyEndAllowThreads(__tstate); | |
19195 | if (PyErr_Occurred()) SWIG_fail; | |
19196 | } | |
19197 | resultobj = SWIG_FromInt((int)result); | |
19198 | { | |
19199 | if (temp2) delete arg2; | |
19200 | } | |
19201 | return resultobj; | |
19202 | fail: | |
19203 | { | |
19204 | if (temp2) delete arg2; | |
19205 | } | |
19206 | return NULL; | |
19207 | } | |
19208 | ||
19209 | ||
19210 | static PyObject *_wrap_DateTime_GetDayOfYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19211 | PyObject *resultobj; | |
19212 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19213 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19214 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19215 | int result; | |
19216 | bool temp2 = False ; | |
19217 | PyObject * obj0 = 0 ; | |
19218 | PyObject * obj1 = 0 ; | |
19219 | char *kwnames[] = { | |
19220 | (char *) "self",(char *) "tz", NULL | |
19221 | }; | |
19222 | ||
19223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDayOfYear",kwnames,&obj0,&obj1)) goto fail; | |
19224 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19225 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19226 | if (obj1) { | |
19227 | { | |
19228 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
19229 | temp2 = True; | |
19230 | } | |
19231 | } | |
19232 | { | |
19233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19234 | result = (int)((wxDateTime const *)arg1)->GetDayOfYear((wxDateTime::TimeZone const &)*arg2); | |
19235 | ||
19236 | wxPyEndAllowThreads(__tstate); | |
19237 | if (PyErr_Occurred()) SWIG_fail; | |
19238 | } | |
19239 | resultobj = SWIG_FromInt((int)result); | |
19240 | { | |
19241 | if (temp2) delete arg2; | |
19242 | } | |
19243 | return resultobj; | |
19244 | fail: | |
19245 | { | |
19246 | if (temp2) delete arg2; | |
19247 | } | |
19248 | return NULL; | |
19249 | } | |
19250 | ||
19251 | ||
19252 | static PyObject *_wrap_DateTime_GetWeekOfYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19253 | PyObject *resultobj; | |
19254 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19255 | int arg2 = (int) wxDateTime::Monday_First ; | |
19256 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
19257 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
19258 | int result; | |
19259 | bool temp3 = False ; | |
19260 | PyObject * obj0 = 0 ; | |
19261 | PyObject * obj1 = 0 ; | |
19262 | PyObject * obj2 = 0 ; | |
19263 | char *kwnames[] = { | |
19264 | (char *) "self",(char *) "flags",(char *) "tz", NULL | |
19265 | }; | |
19266 | ||
19267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19270 | if (obj1) { | |
19271 | arg2 = (wxDateTime::WeekFlags) SWIG_AsInt(obj1); | |
19272 | if (PyErr_Occurred()) SWIG_fail; | |
19273 | } | |
19274 | if (obj2) { | |
19275 | { | |
19276 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
19277 | temp3 = True; | |
19278 | } | |
19279 | } | |
19280 | { | |
19281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19282 | result = (int)((wxDateTime const *)arg1)->GetWeekOfYear((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3); | |
19283 | ||
19284 | wxPyEndAllowThreads(__tstate); | |
19285 | if (PyErr_Occurred()) SWIG_fail; | |
19286 | } | |
19287 | resultobj = SWIG_FromInt((int)result); | |
19288 | { | |
19289 | if (temp3) delete arg3; | |
19290 | } | |
19291 | return resultobj; | |
19292 | fail: | |
19293 | { | |
19294 | if (temp3) delete arg3; | |
19295 | } | |
19296 | return NULL; | |
19297 | } | |
19298 | ||
19299 | ||
19300 | static PyObject *_wrap_DateTime_GetWeekOfMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19301 | PyObject *resultobj; | |
19302 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19303 | int arg2 = (int) wxDateTime::Monday_First ; | |
19304 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
19305 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
19306 | int result; | |
19307 | bool temp3 = False ; | |
19308 | PyObject * obj0 = 0 ; | |
19309 | PyObject * obj1 = 0 ; | |
19310 | PyObject * obj2 = 0 ; | |
19311 | char *kwnames[] = { | |
19312 | (char *) "self",(char *) "flags",(char *) "tz", NULL | |
19313 | }; | |
19314 | ||
19315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfMonth",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19316 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19317 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19318 | if (obj1) { | |
19319 | arg2 = (wxDateTime::WeekFlags) SWIG_AsInt(obj1); | |
19320 | if (PyErr_Occurred()) SWIG_fail; | |
19321 | } | |
19322 | if (obj2) { | |
19323 | { | |
19324 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
19325 | temp3 = True; | |
19326 | } | |
19327 | } | |
19328 | { | |
19329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19330 | result = (int)((wxDateTime const *)arg1)->GetWeekOfMonth((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3); | |
19331 | ||
19332 | wxPyEndAllowThreads(__tstate); | |
19333 | if (PyErr_Occurred()) SWIG_fail; | |
19334 | } | |
19335 | resultobj = SWIG_FromInt((int)result); | |
19336 | { | |
19337 | if (temp3) delete arg3; | |
19338 | } | |
19339 | return resultobj; | |
19340 | fail: | |
19341 | { | |
19342 | if (temp3) delete arg3; | |
19343 | } | |
19344 | return NULL; | |
19345 | } | |
19346 | ||
19347 | ||
19348 | static PyObject *_wrap_DateTime_IsWorkDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19349 | PyObject *resultobj; | |
19350 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19351 | int arg2 = (int) wxDateTime::Country_Default ; | |
19352 | bool result; | |
19353 | PyObject * obj0 = 0 ; | |
19354 | PyObject * obj1 = 0 ; | |
19355 | char *kwnames[] = { | |
19356 | (char *) "self",(char *) "country", NULL | |
19357 | }; | |
19358 | ||
19359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsWorkDay",kwnames,&obj0,&obj1)) goto fail; | |
19360 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19361 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19362 | if (obj1) { | |
19363 | arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); | |
19364 | if (PyErr_Occurred()) SWIG_fail; | |
19365 | } | |
19366 | { | |
19367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19368 | result = (bool)((wxDateTime const *)arg1)->IsWorkDay((wxDateTime::Country )arg2); | |
19369 | ||
19370 | wxPyEndAllowThreads(__tstate); | |
19371 | if (PyErr_Occurred()) SWIG_fail; | |
19372 | } | |
19373 | { | |
19374 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19375 | } | |
19376 | return resultobj; | |
19377 | fail: | |
19378 | return NULL; | |
19379 | } | |
19380 | ||
19381 | ||
19382 | static PyObject *_wrap_DateTime_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19383 | PyObject *resultobj; | |
19384 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19385 | wxDateTime *arg2 = 0 ; | |
19386 | bool result; | |
19387 | PyObject * obj0 = 0 ; | |
19388 | PyObject * obj1 = 0 ; | |
19389 | char *kwnames[] = { | |
19390 | (char *) "self",(char *) "datetime", NULL | |
19391 | }; | |
19392 | ||
19393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEqualTo",kwnames,&obj0,&obj1)) goto fail; | |
19394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19396 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19397 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19398 | SWIG_fail; | |
19399 | if (arg2 == NULL) { | |
19400 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19401 | SWIG_fail; | |
19402 | } | |
19403 | { | |
19404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19405 | result = (bool)((wxDateTime const *)arg1)->IsEqualTo((wxDateTime const &)*arg2); | |
19406 | ||
19407 | wxPyEndAllowThreads(__tstate); | |
19408 | if (PyErr_Occurred()) SWIG_fail; | |
19409 | } | |
19410 | { | |
19411 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19412 | } | |
19413 | return resultobj; | |
19414 | fail: | |
19415 | return NULL; | |
19416 | } | |
19417 | ||
19418 | ||
19419 | static PyObject *_wrap_DateTime_IsEarlierThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19420 | PyObject *resultobj; | |
19421 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19422 | wxDateTime *arg2 = 0 ; | |
19423 | bool result; | |
19424 | PyObject * obj0 = 0 ; | |
19425 | PyObject * obj1 = 0 ; | |
19426 | char *kwnames[] = { | |
19427 | (char *) "self",(char *) "datetime", NULL | |
19428 | }; | |
19429 | ||
19430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEarlierThan",kwnames,&obj0,&obj1)) goto fail; | |
19431 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19432 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19433 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19434 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19435 | SWIG_fail; | |
19436 | if (arg2 == NULL) { | |
19437 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19438 | SWIG_fail; | |
19439 | } | |
19440 | { | |
19441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19442 | result = (bool)((wxDateTime const *)arg1)->IsEarlierThan((wxDateTime const &)*arg2); | |
19443 | ||
19444 | wxPyEndAllowThreads(__tstate); | |
19445 | if (PyErr_Occurred()) SWIG_fail; | |
19446 | } | |
19447 | { | |
19448 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19449 | } | |
19450 | return resultobj; | |
19451 | fail: | |
19452 | return NULL; | |
19453 | } | |
19454 | ||
19455 | ||
19456 | static PyObject *_wrap_DateTime_IsLaterThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19457 | PyObject *resultobj; | |
19458 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19459 | wxDateTime *arg2 = 0 ; | |
19460 | bool result; | |
19461 | PyObject * obj0 = 0 ; | |
19462 | PyObject * obj1 = 0 ; | |
19463 | char *kwnames[] = { | |
19464 | (char *) "self",(char *) "datetime", NULL | |
19465 | }; | |
19466 | ||
19467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsLaterThan",kwnames,&obj0,&obj1)) goto fail; | |
19468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19470 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19471 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19472 | SWIG_fail; | |
19473 | if (arg2 == NULL) { | |
19474 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19475 | SWIG_fail; | |
19476 | } | |
19477 | { | |
19478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19479 | result = (bool)((wxDateTime const *)arg1)->IsLaterThan((wxDateTime const &)*arg2); | |
19480 | ||
19481 | wxPyEndAllowThreads(__tstate); | |
19482 | if (PyErr_Occurred()) SWIG_fail; | |
19483 | } | |
19484 | { | |
19485 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19486 | } | |
19487 | return resultobj; | |
19488 | fail: | |
19489 | return NULL; | |
19490 | } | |
19491 | ||
19492 | ||
19493 | static PyObject *_wrap_DateTime_IsStrictlyBetween(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19494 | PyObject *resultobj; | |
19495 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19496 | wxDateTime *arg2 = 0 ; | |
19497 | wxDateTime *arg3 = 0 ; | |
19498 | bool result; | |
19499 | PyObject * obj0 = 0 ; | |
19500 | PyObject * obj1 = 0 ; | |
19501 | PyObject * obj2 = 0 ; | |
19502 | char *kwnames[] = { | |
19503 | (char *) "self",(char *) "t1",(char *) "t2", NULL | |
19504 | }; | |
19505 | ||
19506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsStrictlyBetween",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19507 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19508 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19509 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19510 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19511 | SWIG_fail; | |
19512 | if (arg2 == NULL) { | |
19513 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19514 | SWIG_fail; | |
19515 | } | |
19516 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime, | |
19517 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19518 | SWIG_fail; | |
19519 | if (arg3 == NULL) { | |
19520 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19521 | SWIG_fail; | |
19522 | } | |
19523 | { | |
19524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19525 | result = (bool)((wxDateTime const *)arg1)->IsStrictlyBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
19526 | ||
19527 | wxPyEndAllowThreads(__tstate); | |
19528 | if (PyErr_Occurred()) SWIG_fail; | |
19529 | } | |
19530 | { | |
19531 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19532 | } | |
19533 | return resultobj; | |
19534 | fail: | |
19535 | return NULL; | |
19536 | } | |
19537 | ||
19538 | ||
19539 | static PyObject *_wrap_DateTime_IsBetween(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19540 | PyObject *resultobj; | |
19541 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19542 | wxDateTime *arg2 = 0 ; | |
19543 | wxDateTime *arg3 = 0 ; | |
19544 | bool result; | |
19545 | PyObject * obj0 = 0 ; | |
19546 | PyObject * obj1 = 0 ; | |
19547 | PyObject * obj2 = 0 ; | |
19548 | char *kwnames[] = { | |
19549 | (char *) "self",(char *) "t1",(char *) "t2", NULL | |
19550 | }; | |
19551 | ||
19552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsBetween",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19553 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19554 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19555 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19556 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19557 | SWIG_fail; | |
19558 | if (arg2 == NULL) { | |
19559 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19560 | SWIG_fail; | |
19561 | } | |
19562 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime, | |
19563 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19564 | SWIG_fail; | |
19565 | if (arg3 == NULL) { | |
19566 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19567 | SWIG_fail; | |
19568 | } | |
19569 | { | |
19570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19571 | result = (bool)((wxDateTime const *)arg1)->IsBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
19572 | ||
19573 | wxPyEndAllowThreads(__tstate); | |
19574 | if (PyErr_Occurred()) SWIG_fail; | |
19575 | } | |
19576 | { | |
19577 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19578 | } | |
19579 | return resultobj; | |
19580 | fail: | |
19581 | return NULL; | |
19582 | } | |
19583 | ||
19584 | ||
19585 | static PyObject *_wrap_DateTime_IsSameDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19586 | PyObject *resultobj; | |
19587 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19588 | wxDateTime *arg2 = 0 ; | |
19589 | bool result; | |
19590 | PyObject * obj0 = 0 ; | |
19591 | PyObject * obj1 = 0 ; | |
19592 | char *kwnames[] = { | |
19593 | (char *) "self",(char *) "dt", NULL | |
19594 | }; | |
19595 | ||
19596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameDate",kwnames,&obj0,&obj1)) goto fail; | |
19597 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19598 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19599 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19600 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19601 | SWIG_fail; | |
19602 | if (arg2 == NULL) { | |
19603 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19604 | SWIG_fail; | |
19605 | } | |
19606 | { | |
19607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19608 | result = (bool)((wxDateTime const *)arg1)->IsSameDate((wxDateTime const &)*arg2); | |
19609 | ||
19610 | wxPyEndAllowThreads(__tstate); | |
19611 | if (PyErr_Occurred()) SWIG_fail; | |
19612 | } | |
19613 | { | |
19614 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19615 | } | |
19616 | return resultobj; | |
19617 | fail: | |
19618 | return NULL; | |
19619 | } | |
19620 | ||
19621 | ||
19622 | static PyObject *_wrap_DateTime_IsSameTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19623 | PyObject *resultobj; | |
19624 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19625 | wxDateTime *arg2 = 0 ; | |
19626 | bool result; | |
19627 | PyObject * obj0 = 0 ; | |
19628 | PyObject * obj1 = 0 ; | |
19629 | char *kwnames[] = { | |
19630 | (char *) "self",(char *) "dt", NULL | |
19631 | }; | |
19632 | ||
19633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameTime",kwnames,&obj0,&obj1)) goto fail; | |
19634 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19635 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19636 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19637 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19638 | SWIG_fail; | |
19639 | if (arg2 == NULL) { | |
19640 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19641 | SWIG_fail; | |
19642 | } | |
19643 | { | |
19644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19645 | result = (bool)((wxDateTime const *)arg1)->IsSameTime((wxDateTime const &)*arg2); | |
19646 | ||
19647 | wxPyEndAllowThreads(__tstate); | |
19648 | if (PyErr_Occurred()) SWIG_fail; | |
19649 | } | |
19650 | { | |
19651 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19652 | } | |
19653 | return resultobj; | |
19654 | fail: | |
19655 | return NULL; | |
19656 | } | |
19657 | ||
19658 | ||
19659 | static PyObject *_wrap_DateTime_IsEqualUpTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19660 | PyObject *resultobj; | |
19661 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19662 | wxDateTime *arg2 = 0 ; | |
19663 | wxTimeSpan *arg3 = 0 ; | |
19664 | bool result; | |
19665 | PyObject * obj0 = 0 ; | |
19666 | PyObject * obj1 = 0 ; | |
19667 | PyObject * obj2 = 0 ; | |
19668 | char *kwnames[] = { | |
19669 | (char *) "self",(char *) "dt",(char *) "ts", NULL | |
19670 | }; | |
19671 | ||
19672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsEqualUpTo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19673 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19674 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19675 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19676 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19677 | SWIG_fail; | |
19678 | if (arg2 == NULL) { | |
19679 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19680 | SWIG_fail; | |
19681 | } | |
19682 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTimeSpan, | |
19683 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19684 | SWIG_fail; | |
19685 | if (arg3 == NULL) { | |
19686 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19687 | SWIG_fail; | |
19688 | } | |
19689 | { | |
19690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19691 | result = (bool)((wxDateTime const *)arg1)->IsEqualUpTo((wxDateTime const &)*arg2,(wxTimeSpan const &)*arg3); | |
19692 | ||
19693 | wxPyEndAllowThreads(__tstate); | |
19694 | if (PyErr_Occurred()) SWIG_fail; | |
19695 | } | |
19696 | { | |
19697 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19698 | } | |
19699 | return resultobj; | |
19700 | fail: | |
19701 | return NULL; | |
19702 | } | |
19703 | ||
19704 | ||
19705 | static PyObject *_wrap_DateTime_AddTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19706 | PyObject *resultobj; | |
19707 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19708 | wxTimeSpan *arg2 = 0 ; | |
19709 | wxDateTime *result; | |
19710 | PyObject * obj0 = 0 ; | |
19711 | PyObject * obj1 = 0 ; | |
19712 | char *kwnames[] = { | |
19713 | (char *) "self",(char *) "diff", NULL | |
19714 | }; | |
19715 | ||
19716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddTS",kwnames,&obj0,&obj1)) goto fail; | |
19717 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19718 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19719 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
19720 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19721 | SWIG_fail; | |
19722 | if (arg2 == NULL) { | |
19723 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19724 | SWIG_fail; | |
19725 | } | |
19726 | { | |
19727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19728 | { | |
19729 | wxDateTime &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2); | |
19730 | result = (wxDateTime *) &_result_ref; | |
19731 | } | |
19732 | ||
19733 | wxPyEndAllowThreads(__tstate); | |
19734 | if (PyErr_Occurred()) SWIG_fail; | |
19735 | } | |
19736 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
19737 | return resultobj; | |
19738 | fail: | |
19739 | return NULL; | |
19740 | } | |
19741 | ||
19742 | ||
19743 | static PyObject *_wrap_DateTime_AddDS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19744 | PyObject *resultobj; | |
19745 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19746 | wxDateSpan *arg2 = 0 ; | |
19747 | wxDateTime *result; | |
19748 | PyObject * obj0 = 0 ; | |
19749 | PyObject * obj1 = 0 ; | |
19750 | char *kwnames[] = { | |
19751 | (char *) "self",(char *) "diff", NULL | |
19752 | }; | |
19753 | ||
19754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddDS",kwnames,&obj0,&obj1)) goto fail; | |
19755 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19756 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19757 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
19758 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19759 | SWIG_fail; | |
19760 | if (arg2 == NULL) { | |
19761 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19762 | SWIG_fail; | |
19763 | } | |
19764 | { | |
19765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19766 | { | |
19767 | wxDateTime &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2); | |
19768 | result = (wxDateTime *) &_result_ref; | |
19769 | } | |
19770 | ||
19771 | wxPyEndAllowThreads(__tstate); | |
19772 | if (PyErr_Occurred()) SWIG_fail; | |
19773 | } | |
19774 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
19775 | return resultobj; | |
19776 | fail: | |
19777 | return NULL; | |
19778 | } | |
19779 | ||
19780 | ||
19781 | static PyObject *_wrap_DateTime_SubtractTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19782 | PyObject *resultobj; | |
19783 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19784 | wxTimeSpan *arg2 = 0 ; | |
19785 | wxDateTime *result; | |
19786 | PyObject * obj0 = 0 ; | |
19787 | PyObject * obj1 = 0 ; | |
19788 | char *kwnames[] = { | |
19789 | (char *) "self",(char *) "diff", NULL | |
19790 | }; | |
19791 | ||
19792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractTS",kwnames,&obj0,&obj1)) goto fail; | |
19793 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19794 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19795 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
19796 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19797 | SWIG_fail; | |
19798 | if (arg2 == NULL) { | |
19799 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19800 | SWIG_fail; | |
19801 | } | |
19802 | { | |
19803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19804 | { | |
19805 | wxDateTime &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2); | |
19806 | result = (wxDateTime *) &_result_ref; | |
19807 | } | |
19808 | ||
19809 | wxPyEndAllowThreads(__tstate); | |
19810 | if (PyErr_Occurred()) SWIG_fail; | |
19811 | } | |
19812 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
19813 | return resultobj; | |
19814 | fail: | |
19815 | return NULL; | |
19816 | } | |
19817 | ||
19818 | ||
19819 | static PyObject *_wrap_DateTime_SubtractDS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19820 | PyObject *resultobj; | |
19821 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19822 | wxDateSpan *arg2 = 0 ; | |
19823 | wxDateTime *result; | |
19824 | PyObject * obj0 = 0 ; | |
19825 | PyObject * obj1 = 0 ; | |
19826 | char *kwnames[] = { | |
19827 | (char *) "self",(char *) "diff", NULL | |
19828 | }; | |
19829 | ||
19830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractDS",kwnames,&obj0,&obj1)) goto fail; | |
19831 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19832 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19833 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
19834 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19835 | SWIG_fail; | |
19836 | if (arg2 == NULL) { | |
19837 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19838 | SWIG_fail; | |
19839 | } | |
19840 | { | |
19841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19842 | { | |
19843 | wxDateTime &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2); | |
19844 | result = (wxDateTime *) &_result_ref; | |
19845 | } | |
19846 | ||
19847 | wxPyEndAllowThreads(__tstate); | |
19848 | if (PyErr_Occurred()) SWIG_fail; | |
19849 | } | |
19850 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
19851 | return resultobj; | |
19852 | fail: | |
19853 | return NULL; | |
19854 | } | |
19855 | ||
19856 | ||
19857 | static PyObject *_wrap_DateTime_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19858 | PyObject *resultobj; | |
19859 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19860 | wxDateTime *arg2 = 0 ; | |
19861 | wxTimeSpan result; | |
19862 | PyObject * obj0 = 0 ; | |
19863 | PyObject * obj1 = 0 ; | |
19864 | char *kwnames[] = { | |
19865 | (char *) "self",(char *) "dt", NULL | |
19866 | }; | |
19867 | ||
19868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
19869 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19870 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19871 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19872 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19873 | SWIG_fail; | |
19874 | if (arg2 == NULL) { | |
19875 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19876 | SWIG_fail; | |
19877 | } | |
19878 | { | |
19879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19880 | result = ((wxDateTime const *)arg1)->Subtract((wxDateTime const &)*arg2); | |
19881 | ||
19882 | wxPyEndAllowThreads(__tstate); | |
19883 | if (PyErr_Occurred()) SWIG_fail; | |
19884 | } | |
19885 | { | |
19886 | wxTimeSpan * resultptr; | |
19887 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19888 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
19889 | } | |
19890 | return resultobj; | |
19891 | fail: | |
19892 | return NULL; | |
19893 | } | |
19894 | ||
19895 | ||
19896 | static PyObject *_wrap_DateTime___iadd____SWIG_0(PyObject *self, PyObject *args) { | |
19897 | PyObject *resultobj; | |
19898 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19899 | wxTimeSpan *arg2 = 0 ; | |
19900 | wxDateTime *result; | |
19901 | PyObject * obj0 = 0 ; | |
19902 | PyObject * obj1 = 0 ; | |
19903 | ||
19904 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail; | |
19905 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19907 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
19908 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19909 | SWIG_fail; | |
19910 | if (arg2 == NULL) { | |
19911 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19912 | SWIG_fail; | |
19913 | } | |
19914 | { | |
19915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19916 | { | |
19917 | wxDateTime &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2); | |
19918 | result = (wxDateTime *) &_result_ref; | |
19919 | } | |
19920 | ||
19921 | wxPyEndAllowThreads(__tstate); | |
19922 | if (PyErr_Occurred()) SWIG_fail; | |
19923 | } | |
19924 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
19925 | return resultobj; | |
19926 | fail: | |
19927 | return NULL; | |
19928 | } | |
19929 | ||
19930 | ||
19931 | static PyObject *_wrap_DateTime___iadd____SWIG_1(PyObject *self, PyObject *args) { | |
19932 | PyObject *resultobj; | |
19933 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19934 | wxDateSpan *arg2 = 0 ; | |
19935 | wxDateTime *result; | |
19936 | PyObject * obj0 = 0 ; | |
19937 | PyObject * obj1 = 0 ; | |
19938 | ||
19939 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail; | |
19940 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19941 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19942 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
19943 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19944 | SWIG_fail; | |
19945 | if (arg2 == NULL) { | |
19946 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19947 | SWIG_fail; | |
19948 | } | |
19949 | { | |
19950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19951 | { | |
19952 | wxDateTime &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2); | |
19953 | result = (wxDateTime *) &_result_ref; | |
19954 | } | |
19955 | ||
19956 | wxPyEndAllowThreads(__tstate); | |
19957 | if (PyErr_Occurred()) SWIG_fail; | |
19958 | } | |
19959 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
19960 | return resultobj; | |
19961 | fail: | |
19962 | return NULL; | |
19963 | } | |
19964 | ||
19965 | ||
19966 | static PyObject *_wrap_DateTime___iadd__(PyObject *self, PyObject *args) { | |
19967 | int argc; | |
19968 | PyObject *argv[3]; | |
19969 | int ii; | |
19970 | ||
19971 | argc = PyObject_Length(args); | |
19972 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
19973 | argv[ii] = PyTuple_GetItem(args,ii); | |
19974 | } | |
19975 | if (argc == 2) { | |
19976 | int _v; | |
19977 | { | |
19978 | void *ptr; | |
19979 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
19980 | _v = 0; | |
19981 | PyErr_Clear(); | |
19982 | } else { | |
19983 | _v = 1; | |
19984 | } | |
19985 | } | |
19986 | if (_v) { | |
19987 | { | |
19988 | void *ptr; | |
19989 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
19990 | _v = 0; | |
19991 | PyErr_Clear(); | |
19992 | } else { | |
19993 | _v = 1; | |
19994 | } | |
19995 | } | |
19996 | if (_v) { | |
19997 | return _wrap_DateTime___iadd____SWIG_0(self,args); | |
19998 | } | |
19999 | } | |
20000 | } | |
20001 | if (argc == 2) { | |
20002 | int _v; | |
20003 | { | |
20004 | void *ptr; | |
20005 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20006 | _v = 0; | |
20007 | PyErr_Clear(); | |
20008 | } else { | |
20009 | _v = 1; | |
20010 | } | |
20011 | } | |
20012 | if (_v) { | |
20013 | { | |
20014 | void *ptr; | |
20015 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
20016 | _v = 0; | |
20017 | PyErr_Clear(); | |
20018 | } else { | |
20019 | _v = 1; | |
20020 | } | |
20021 | } | |
20022 | if (_v) { | |
20023 | return _wrap_DateTime___iadd____SWIG_1(self,args); | |
20024 | } | |
20025 | } | |
20026 | } | |
20027 | ||
20028 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___iadd__'"); | |
20029 | return NULL; | |
20030 | } | |
20031 | ||
20032 | ||
20033 | static PyObject *_wrap_DateTime___isub____SWIG_0(PyObject *self, PyObject *args) { | |
20034 | PyObject *resultobj; | |
20035 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20036 | wxTimeSpan *arg2 = 0 ; | |
20037 | wxDateTime *result; | |
20038 | PyObject * obj0 = 0 ; | |
20039 | PyObject * obj1 = 0 ; | |
20040 | ||
20041 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail; | |
20042 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20043 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20044 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
20045 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20046 | SWIG_fail; | |
20047 | if (arg2 == NULL) { | |
20048 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20049 | SWIG_fail; | |
20050 | } | |
20051 | { | |
20052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20053 | { | |
20054 | wxDateTime &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2); | |
20055 | result = (wxDateTime *) &_result_ref; | |
20056 | } | |
20057 | ||
20058 | wxPyEndAllowThreads(__tstate); | |
20059 | if (PyErr_Occurred()) SWIG_fail; | |
20060 | } | |
20061 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
20062 | return resultobj; | |
20063 | fail: | |
20064 | return NULL; | |
20065 | } | |
20066 | ||
20067 | ||
20068 | static PyObject *_wrap_DateTime___isub____SWIG_1(PyObject *self, PyObject *args) { | |
20069 | PyObject *resultobj; | |
20070 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20071 | wxDateSpan *arg2 = 0 ; | |
20072 | wxDateTime *result; | |
20073 | PyObject * obj0 = 0 ; | |
20074 | PyObject * obj1 = 0 ; | |
20075 | ||
20076 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail; | |
20077 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20078 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20079 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
20080 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20081 | SWIG_fail; | |
20082 | if (arg2 == NULL) { | |
20083 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20084 | SWIG_fail; | |
20085 | } | |
20086 | { | |
20087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20088 | { | |
20089 | wxDateTime &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2); | |
20090 | result = (wxDateTime *) &_result_ref; | |
20091 | } | |
20092 | ||
20093 | wxPyEndAllowThreads(__tstate); | |
20094 | if (PyErr_Occurred()) SWIG_fail; | |
20095 | } | |
20096 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
20097 | return resultobj; | |
20098 | fail: | |
20099 | return NULL; | |
20100 | } | |
20101 | ||
20102 | ||
20103 | static PyObject *_wrap_DateTime___isub__(PyObject *self, PyObject *args) { | |
20104 | int argc; | |
20105 | PyObject *argv[3]; | |
20106 | int ii; | |
20107 | ||
20108 | argc = PyObject_Length(args); | |
20109 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
20110 | argv[ii] = PyTuple_GetItem(args,ii); | |
20111 | } | |
20112 | if (argc == 2) { | |
20113 | int _v; | |
20114 | { | |
20115 | void *ptr; | |
20116 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20117 | _v = 0; | |
20118 | PyErr_Clear(); | |
20119 | } else { | |
20120 | _v = 1; | |
20121 | } | |
20122 | } | |
20123 | if (_v) { | |
20124 | { | |
20125 | void *ptr; | |
20126 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
20127 | _v = 0; | |
20128 | PyErr_Clear(); | |
20129 | } else { | |
20130 | _v = 1; | |
20131 | } | |
20132 | } | |
20133 | if (_v) { | |
20134 | return _wrap_DateTime___isub____SWIG_0(self,args); | |
20135 | } | |
20136 | } | |
20137 | } | |
20138 | if (argc == 2) { | |
20139 | int _v; | |
20140 | { | |
20141 | void *ptr; | |
20142 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20143 | _v = 0; | |
20144 | PyErr_Clear(); | |
20145 | } else { | |
20146 | _v = 1; | |
20147 | } | |
20148 | } | |
20149 | if (_v) { | |
20150 | { | |
20151 | void *ptr; | |
20152 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
20153 | _v = 0; | |
20154 | PyErr_Clear(); | |
20155 | } else { | |
20156 | _v = 1; | |
20157 | } | |
20158 | } | |
20159 | if (_v) { | |
20160 | return _wrap_DateTime___isub____SWIG_1(self,args); | |
20161 | } | |
20162 | } | |
20163 | } | |
20164 | ||
20165 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___isub__'"); | |
20166 | return NULL; | |
20167 | } | |
20168 | ||
20169 | ||
20170 | static PyObject *_wrap_DateTime___add____SWIG_0(PyObject *self, PyObject *args) { | |
20171 | PyObject *resultobj; | |
20172 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20173 | wxTimeSpan *arg2 = 0 ; | |
20174 | wxDateTime result; | |
20175 | PyObject * obj0 = 0 ; | |
20176 | PyObject * obj1 = 0 ; | |
20177 | ||
20178 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail; | |
20179 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20180 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20181 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
20182 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20183 | SWIG_fail; | |
20184 | if (arg2 == NULL) { | |
20185 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20186 | SWIG_fail; | |
20187 | } | |
20188 | { | |
20189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20190 | result = wxDateTime___add____SWIG_0(arg1,(wxTimeSpan const &)*arg2); | |
20191 | ||
20192 | wxPyEndAllowThreads(__tstate); | |
20193 | if (PyErr_Occurred()) SWIG_fail; | |
20194 | } | |
20195 | { | |
20196 | wxDateTime * resultptr; | |
20197 | resultptr = new wxDateTime((wxDateTime &) result); | |
20198 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
20199 | } | |
20200 | return resultobj; | |
20201 | fail: | |
20202 | return NULL; | |
20203 | } | |
20204 | ||
20205 | ||
20206 | static PyObject *_wrap_DateTime___add____SWIG_1(PyObject *self, PyObject *args) { | |
20207 | PyObject *resultobj; | |
20208 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20209 | wxDateSpan *arg2 = 0 ; | |
20210 | wxDateTime result; | |
20211 | PyObject * obj0 = 0 ; | |
20212 | PyObject * obj1 = 0 ; | |
20213 | ||
20214 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail; | |
20215 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20216 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20217 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
20218 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20219 | SWIG_fail; | |
20220 | if (arg2 == NULL) { | |
20221 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20222 | SWIG_fail; | |
20223 | } | |
20224 | { | |
20225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20226 | result = wxDateTime___add____SWIG_1(arg1,(wxDateSpan const &)*arg2); | |
20227 | ||
20228 | wxPyEndAllowThreads(__tstate); | |
20229 | if (PyErr_Occurred()) SWIG_fail; | |
20230 | } | |
20231 | { | |
20232 | wxDateTime * resultptr; | |
20233 | resultptr = new wxDateTime((wxDateTime &) result); | |
20234 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
20235 | } | |
20236 | return resultobj; | |
20237 | fail: | |
20238 | return NULL; | |
20239 | } | |
20240 | ||
20241 | ||
20242 | static PyObject *_wrap_DateTime___add__(PyObject *self, PyObject *args) { | |
20243 | int argc; | |
20244 | PyObject *argv[3]; | |
20245 | int ii; | |
20246 | ||
20247 | argc = PyObject_Length(args); | |
20248 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
20249 | argv[ii] = PyTuple_GetItem(args,ii); | |
20250 | } | |
20251 | if (argc == 2) { | |
20252 | int _v; | |
20253 | { | |
20254 | void *ptr; | |
20255 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20256 | _v = 0; | |
20257 | PyErr_Clear(); | |
20258 | } else { | |
20259 | _v = 1; | |
20260 | } | |
20261 | } | |
20262 | if (_v) { | |
20263 | { | |
20264 | void *ptr; | |
20265 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
20266 | _v = 0; | |
20267 | PyErr_Clear(); | |
20268 | } else { | |
20269 | _v = 1; | |
20270 | } | |
20271 | } | |
20272 | if (_v) { | |
20273 | return _wrap_DateTime___add____SWIG_0(self,args); | |
20274 | } | |
20275 | } | |
20276 | } | |
20277 | if (argc == 2) { | |
20278 | int _v; | |
20279 | { | |
20280 | void *ptr; | |
20281 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20282 | _v = 0; | |
20283 | PyErr_Clear(); | |
20284 | } else { | |
20285 | _v = 1; | |
20286 | } | |
20287 | } | |
20288 | if (_v) { | |
20289 | { | |
20290 | void *ptr; | |
20291 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
20292 | _v = 0; | |
20293 | PyErr_Clear(); | |
20294 | } else { | |
20295 | _v = 1; | |
20296 | } | |
20297 | } | |
20298 | if (_v) { | |
20299 | return _wrap_DateTime___add____SWIG_1(self,args); | |
20300 | } | |
20301 | } | |
20302 | } | |
20303 | ||
20304 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___add__'"); | |
20305 | return NULL; | |
20306 | } | |
20307 | ||
20308 | ||
20309 | static PyObject *_wrap_DateTime___sub____SWIG_0(PyObject *self, PyObject *args) { | |
20310 | PyObject *resultobj; | |
20311 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20312 | wxDateTime *arg2 = 0 ; | |
20313 | wxTimeSpan result; | |
20314 | PyObject * obj0 = 0 ; | |
20315 | PyObject * obj1 = 0 ; | |
20316 | ||
20317 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
20318 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20319 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20320 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20321 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20322 | SWIG_fail; | |
20323 | if (arg2 == NULL) { | |
20324 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20325 | SWIG_fail; | |
20326 | } | |
20327 | { | |
20328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20329 | result = wxDateTime___sub____SWIG_0(arg1,(wxDateTime const &)*arg2); | |
20330 | ||
20331 | wxPyEndAllowThreads(__tstate); | |
20332 | if (PyErr_Occurred()) SWIG_fail; | |
20333 | } | |
20334 | { | |
20335 | wxTimeSpan * resultptr; | |
20336 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
20337 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
20338 | } | |
20339 | return resultobj; | |
20340 | fail: | |
20341 | return NULL; | |
20342 | } | |
20343 | ||
20344 | ||
20345 | static PyObject *_wrap_DateTime___sub____SWIG_1(PyObject *self, PyObject *args) { | |
20346 | PyObject *resultobj; | |
20347 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20348 | wxTimeSpan *arg2 = 0 ; | |
20349 | wxDateTime result; | |
20350 | PyObject * obj0 = 0 ; | |
20351 | PyObject * obj1 = 0 ; | |
20352 | ||
20353 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
20354 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20355 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20356 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
20357 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20358 | SWIG_fail; | |
20359 | if (arg2 == NULL) { | |
20360 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20361 | SWIG_fail; | |
20362 | } | |
20363 | { | |
20364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20365 | result = wxDateTime___sub____SWIG_1(arg1,(wxTimeSpan const &)*arg2); | |
20366 | ||
20367 | wxPyEndAllowThreads(__tstate); | |
20368 | if (PyErr_Occurred()) SWIG_fail; | |
20369 | } | |
20370 | { | |
20371 | wxDateTime * resultptr; | |
20372 | resultptr = new wxDateTime((wxDateTime &) result); | |
20373 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
20374 | } | |
20375 | return resultobj; | |
20376 | fail: | |
20377 | return NULL; | |
20378 | } | |
20379 | ||
20380 | ||
20381 | static PyObject *_wrap_DateTime___sub____SWIG_2(PyObject *self, PyObject *args) { | |
20382 | PyObject *resultobj; | |
20383 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20384 | wxDateSpan *arg2 = 0 ; | |
20385 | wxDateTime result; | |
20386 | PyObject * obj0 = 0 ; | |
20387 | PyObject * obj1 = 0 ; | |
20388 | ||
20389 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
20390 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20391 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20392 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
20393 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20394 | SWIG_fail; | |
20395 | if (arg2 == NULL) { | |
20396 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20397 | SWIG_fail; | |
20398 | } | |
20399 | { | |
20400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20401 | result = wxDateTime___sub____SWIG_2(arg1,(wxDateSpan const &)*arg2); | |
20402 | ||
20403 | wxPyEndAllowThreads(__tstate); | |
20404 | if (PyErr_Occurred()) SWIG_fail; | |
20405 | } | |
20406 | { | |
20407 | wxDateTime * resultptr; | |
20408 | resultptr = new wxDateTime((wxDateTime &) result); | |
20409 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
20410 | } | |
20411 | return resultobj; | |
20412 | fail: | |
20413 | return NULL; | |
20414 | } | |
20415 | ||
20416 | ||
20417 | static PyObject *_wrap_DateTime___sub__(PyObject *self, PyObject *args) { | |
20418 | int argc; | |
20419 | PyObject *argv[3]; | |
20420 | int ii; | |
20421 | ||
20422 | argc = PyObject_Length(args); | |
20423 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
20424 | argv[ii] = PyTuple_GetItem(args,ii); | |
20425 | } | |
20426 | if (argc == 2) { | |
20427 | int _v; | |
20428 | { | |
20429 | void *ptr; | |
20430 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20431 | _v = 0; | |
20432 | PyErr_Clear(); | |
20433 | } else { | |
20434 | _v = 1; | |
20435 | } | |
20436 | } | |
20437 | if (_v) { | |
20438 | { | |
20439 | void *ptr; | |
20440 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20441 | _v = 0; | |
20442 | PyErr_Clear(); | |
20443 | } else { | |
20444 | _v = 1; | |
20445 | } | |
20446 | } | |
20447 | if (_v) { | |
20448 | return _wrap_DateTime___sub____SWIG_0(self,args); | |
20449 | } | |
20450 | } | |
20451 | } | |
20452 | if (argc == 2) { | |
20453 | int _v; | |
20454 | { | |
20455 | void *ptr; | |
20456 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20457 | _v = 0; | |
20458 | PyErr_Clear(); | |
20459 | } else { | |
20460 | _v = 1; | |
20461 | } | |
20462 | } | |
20463 | if (_v) { | |
20464 | { | |
20465 | void *ptr; | |
20466 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
20467 | _v = 0; | |
20468 | PyErr_Clear(); | |
20469 | } else { | |
20470 | _v = 1; | |
20471 | } | |
20472 | } | |
20473 | if (_v) { | |
20474 | return _wrap_DateTime___sub____SWIG_1(self,args); | |
20475 | } | |
20476 | } | |
20477 | } | |
20478 | if (argc == 2) { | |
20479 | int _v; | |
20480 | { | |
20481 | void *ptr; | |
20482 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20483 | _v = 0; | |
20484 | PyErr_Clear(); | |
20485 | } else { | |
20486 | _v = 1; | |
20487 | } | |
20488 | } | |
20489 | if (_v) { | |
20490 | { | |
20491 | void *ptr; | |
20492 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
20493 | _v = 0; | |
20494 | PyErr_Clear(); | |
20495 | } else { | |
20496 | _v = 1; | |
20497 | } | |
20498 | } | |
20499 | if (_v) { | |
20500 | return _wrap_DateTime___sub____SWIG_2(self,args); | |
20501 | } | |
20502 | } | |
20503 | } | |
20504 | ||
20505 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___sub__'"); | |
20506 | return NULL; | |
20507 | } | |
20508 | ||
20509 | ||
20510 | static PyObject *_wrap_DateTime___lt__(PyObject *self, PyObject *args) { | |
20511 | PyObject *resultobj; | |
20512 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20513 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
20514 | bool result; | |
20515 | PyObject * obj0 = 0 ; | |
20516 | PyObject * obj1 = 0 ; | |
20517 | ||
20518 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___lt__",&obj0,&obj1)) goto fail; | |
20519 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20520 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20521 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20522 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20523 | { | |
20524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20525 | result = (bool)wxDateTime___lt__(arg1,(wxDateTime const *)arg2); | |
20526 | ||
20527 | wxPyEndAllowThreads(__tstate); | |
20528 | if (PyErr_Occurred()) SWIG_fail; | |
20529 | } | |
20530 | { | |
20531 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20532 | } | |
20533 | return resultobj; | |
20534 | fail: | |
20535 | return NULL; | |
20536 | } | |
20537 | ||
20538 | ||
20539 | static PyObject *_wrap_DateTime___le__(PyObject *self, PyObject *args) { | |
20540 | PyObject *resultobj; | |
20541 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20542 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
20543 | bool result; | |
20544 | PyObject * obj0 = 0 ; | |
20545 | PyObject * obj1 = 0 ; | |
20546 | ||
20547 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___le__",&obj0,&obj1)) goto fail; | |
20548 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20549 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20550 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20551 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20552 | { | |
20553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20554 | result = (bool)wxDateTime___le__(arg1,(wxDateTime const *)arg2); | |
20555 | ||
20556 | wxPyEndAllowThreads(__tstate); | |
20557 | if (PyErr_Occurred()) SWIG_fail; | |
20558 | } | |
20559 | { | |
20560 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20561 | } | |
20562 | return resultobj; | |
20563 | fail: | |
20564 | return NULL; | |
20565 | } | |
20566 | ||
20567 | ||
20568 | static PyObject *_wrap_DateTime___gt__(PyObject *self, PyObject *args) { | |
20569 | PyObject *resultobj; | |
20570 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20571 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
20572 | bool result; | |
20573 | PyObject * obj0 = 0 ; | |
20574 | PyObject * obj1 = 0 ; | |
20575 | ||
20576 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___gt__",&obj0,&obj1)) goto fail; | |
20577 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20578 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20579 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20580 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20581 | { | |
20582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20583 | result = (bool)wxDateTime___gt__(arg1,(wxDateTime const *)arg2); | |
20584 | ||
20585 | wxPyEndAllowThreads(__tstate); | |
20586 | if (PyErr_Occurred()) SWIG_fail; | |
20587 | } | |
20588 | { | |
20589 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20590 | } | |
20591 | return resultobj; | |
20592 | fail: | |
20593 | return NULL; | |
20594 | } | |
20595 | ||
20596 | ||
20597 | static PyObject *_wrap_DateTime___ge__(PyObject *self, PyObject *args) { | |
20598 | PyObject *resultobj; | |
20599 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20600 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
20601 | bool result; | |
20602 | PyObject * obj0 = 0 ; | |
20603 | PyObject * obj1 = 0 ; | |
20604 | ||
20605 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ge__",&obj0,&obj1)) goto fail; | |
20606 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20607 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20608 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20609 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20610 | { | |
20611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20612 | result = (bool)wxDateTime___ge__(arg1,(wxDateTime const *)arg2); | |
20613 | ||
20614 | wxPyEndAllowThreads(__tstate); | |
20615 | if (PyErr_Occurred()) SWIG_fail; | |
20616 | } | |
20617 | { | |
20618 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20619 | } | |
20620 | return resultobj; | |
20621 | fail: | |
20622 | return NULL; | |
20623 | } | |
20624 | ||
20625 | ||
20626 | static PyObject *_wrap_DateTime___eq__(PyObject *self, PyObject *args) { | |
20627 | PyObject *resultobj; | |
20628 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20629 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
20630 | bool result; | |
20631 | PyObject * obj0 = 0 ; | |
20632 | PyObject * obj1 = 0 ; | |
20633 | ||
20634 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___eq__",&obj0,&obj1)) goto fail; | |
20635 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20636 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20637 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20638 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20639 | { | |
20640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20641 | result = (bool)wxDateTime___eq__(arg1,(wxDateTime const *)arg2); | |
20642 | ||
20643 | wxPyEndAllowThreads(__tstate); | |
20644 | if (PyErr_Occurred()) SWIG_fail; | |
20645 | } | |
20646 | { | |
20647 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20648 | } | |
20649 | return resultobj; | |
20650 | fail: | |
20651 | return NULL; | |
20652 | } | |
20653 | ||
20654 | ||
20655 | static PyObject *_wrap_DateTime___ne__(PyObject *self, PyObject *args) { | |
20656 | PyObject *resultobj; | |
20657 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20658 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
20659 | bool result; | |
20660 | PyObject * obj0 = 0 ; | |
20661 | PyObject * obj1 = 0 ; | |
20662 | ||
20663 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ne__",&obj0,&obj1)) goto fail; | |
20664 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20665 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20666 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20668 | { | |
20669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20670 | result = (bool)wxDateTime___ne__(arg1,(wxDateTime const *)arg2); | |
20671 | ||
20672 | wxPyEndAllowThreads(__tstate); | |
20673 | if (PyErr_Occurred()) SWIG_fail; | |
20674 | } | |
20675 | { | |
20676 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20677 | } | |
20678 | return resultobj; | |
20679 | fail: | |
20680 | return NULL; | |
20681 | } | |
20682 | ||
20683 | ||
20684 | static PyObject *_wrap_DateTime_ParseRfc822Date(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20685 | PyObject *resultobj; | |
20686 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20687 | wxString *arg2 = 0 ; | |
20688 | int result; | |
20689 | bool temp2 = False ; | |
20690 | PyObject * obj0 = 0 ; | |
20691 | PyObject * obj1 = 0 ; | |
20692 | char *kwnames[] = { | |
20693 | (char *) "self",(char *) "date", NULL | |
20694 | }; | |
20695 | ||
20696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseRfc822Date",kwnames,&obj0,&obj1)) goto fail; | |
20697 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20698 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20699 | { | |
20700 | arg2 = wxString_in_helper(obj1); | |
20701 | if (arg2 == NULL) SWIG_fail; | |
20702 | temp2 = True; | |
20703 | } | |
20704 | { | |
20705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20706 | result = (int)wxDateTime_ParseRfc822Date(arg1,(wxString const &)*arg2); | |
20707 | ||
20708 | wxPyEndAllowThreads(__tstate); | |
20709 | if (PyErr_Occurred()) SWIG_fail; | |
20710 | } | |
20711 | resultobj = SWIG_FromInt((int)result); | |
20712 | { | |
20713 | if (temp2) | |
20714 | delete arg2; | |
20715 | } | |
20716 | return resultobj; | |
20717 | fail: | |
20718 | { | |
20719 | if (temp2) | |
20720 | delete arg2; | |
20721 | } | |
20722 | return NULL; | |
20723 | } | |
20724 | ||
20725 | ||
20726 | static PyObject *_wrap_DateTime_ParseFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20727 | PyObject *resultobj; | |
20728 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20729 | wxString *arg2 = 0 ; | |
20730 | wxString const &arg3_defvalue = wxPyDateFormatStr ; | |
20731 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
20732 | wxDateTime const &arg4_defvalue = wxDefaultDateTime ; | |
20733 | wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ; | |
20734 | int result; | |
20735 | bool temp2 = False ; | |
20736 | bool temp3 = False ; | |
20737 | PyObject * obj0 = 0 ; | |
20738 | PyObject * obj1 = 0 ; | |
20739 | PyObject * obj2 = 0 ; | |
20740 | PyObject * obj3 = 0 ; | |
20741 | char *kwnames[] = { | |
20742 | (char *) "self",(char *) "date",(char *) "format",(char *) "dateDef", NULL | |
20743 | }; | |
20744 | ||
20745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_ParseFormat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
20746 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20747 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20748 | { | |
20749 | arg2 = wxString_in_helper(obj1); | |
20750 | if (arg2 == NULL) SWIG_fail; | |
20751 | temp2 = True; | |
20752 | } | |
20753 | if (obj2) { | |
20754 | { | |
20755 | arg3 = wxString_in_helper(obj2); | |
20756 | if (arg3 == NULL) SWIG_fail; | |
20757 | temp3 = True; | |
20758 | } | |
20759 | } | |
20760 | if (obj3) { | |
20761 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDateTime, | |
20762 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20763 | SWIG_fail; | |
20764 | if (arg4 == NULL) { | |
20765 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20766 | SWIG_fail; | |
20767 | } | |
20768 | } | |
20769 | { | |
20770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20771 | result = (int)wxDateTime_ParseFormat(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxDateTime const &)*arg4); | |
20772 | ||
20773 | wxPyEndAllowThreads(__tstate); | |
20774 | if (PyErr_Occurred()) SWIG_fail; | |
20775 | } | |
20776 | resultobj = SWIG_FromInt((int)result); | |
20777 | { | |
20778 | if (temp2) | |
20779 | delete arg2; | |
20780 | } | |
20781 | { | |
20782 | if (temp3) | |
20783 | delete arg3; | |
20784 | } | |
20785 | return resultobj; | |
20786 | fail: | |
20787 | { | |
20788 | if (temp2) | |
20789 | delete arg2; | |
20790 | } | |
20791 | { | |
20792 | if (temp3) | |
20793 | delete arg3; | |
20794 | } | |
20795 | return NULL; | |
20796 | } | |
20797 | ||
20798 | ||
20799 | static PyObject *_wrap_DateTime_ParseDateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20800 | PyObject *resultobj; | |
20801 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20802 | wxString *arg2 = 0 ; | |
20803 | int result; | |
20804 | bool temp2 = False ; | |
20805 | PyObject * obj0 = 0 ; | |
20806 | PyObject * obj1 = 0 ; | |
20807 | char *kwnames[] = { | |
20808 | (char *) "self",(char *) "datetime", NULL | |
20809 | }; | |
20810 | ||
20811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDateTime",kwnames,&obj0,&obj1)) goto fail; | |
20812 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20813 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20814 | { | |
20815 | arg2 = wxString_in_helper(obj1); | |
20816 | if (arg2 == NULL) SWIG_fail; | |
20817 | temp2 = True; | |
20818 | } | |
20819 | { | |
20820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20821 | result = (int)wxDateTime_ParseDateTime(arg1,(wxString const &)*arg2); | |
20822 | ||
20823 | wxPyEndAllowThreads(__tstate); | |
20824 | if (PyErr_Occurred()) SWIG_fail; | |
20825 | } | |
20826 | resultobj = SWIG_FromInt((int)result); | |
20827 | { | |
20828 | if (temp2) | |
20829 | delete arg2; | |
20830 | } | |
20831 | return resultobj; | |
20832 | fail: | |
20833 | { | |
20834 | if (temp2) | |
20835 | delete arg2; | |
20836 | } | |
20837 | return NULL; | |
20838 | } | |
20839 | ||
20840 | ||
20841 | static PyObject *_wrap_DateTime_ParseDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20842 | PyObject *resultobj; | |
20843 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20844 | wxString *arg2 = 0 ; | |
20845 | int result; | |
20846 | bool temp2 = False ; | |
20847 | PyObject * obj0 = 0 ; | |
20848 | PyObject * obj1 = 0 ; | |
20849 | char *kwnames[] = { | |
20850 | (char *) "self",(char *) "date", NULL | |
20851 | }; | |
20852 | ||
20853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDate",kwnames,&obj0,&obj1)) goto fail; | |
20854 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20855 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20856 | { | |
20857 | arg2 = wxString_in_helper(obj1); | |
20858 | if (arg2 == NULL) SWIG_fail; | |
20859 | temp2 = True; | |
20860 | } | |
20861 | { | |
20862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20863 | result = (int)wxDateTime_ParseDate(arg1,(wxString const &)*arg2); | |
20864 | ||
20865 | wxPyEndAllowThreads(__tstate); | |
20866 | if (PyErr_Occurred()) SWIG_fail; | |
20867 | } | |
20868 | resultobj = SWIG_FromInt((int)result); | |
20869 | { | |
20870 | if (temp2) | |
20871 | delete arg2; | |
20872 | } | |
20873 | return resultobj; | |
20874 | fail: | |
20875 | { | |
20876 | if (temp2) | |
20877 | delete arg2; | |
20878 | } | |
20879 | return NULL; | |
20880 | } | |
20881 | ||
20882 | ||
20883 | static PyObject *_wrap_DateTime_ParseTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20884 | PyObject *resultobj; | |
20885 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20886 | wxString *arg2 = 0 ; | |
20887 | int result; | |
20888 | bool temp2 = False ; | |
20889 | PyObject * obj0 = 0 ; | |
20890 | PyObject * obj1 = 0 ; | |
20891 | char *kwnames[] = { | |
20892 | (char *) "self",(char *) "time", NULL | |
20893 | }; | |
20894 | ||
20895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseTime",kwnames,&obj0,&obj1)) goto fail; | |
20896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20898 | { | |
20899 | arg2 = wxString_in_helper(obj1); | |
20900 | if (arg2 == NULL) SWIG_fail; | |
20901 | temp2 = True; | |
20902 | } | |
20903 | { | |
20904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20905 | result = (int)wxDateTime_ParseTime(arg1,(wxString const &)*arg2); | |
20906 | ||
20907 | wxPyEndAllowThreads(__tstate); | |
20908 | if (PyErr_Occurred()) SWIG_fail; | |
20909 | } | |
20910 | resultobj = SWIG_FromInt((int)result); | |
20911 | { | |
20912 | if (temp2) | |
20913 | delete arg2; | |
20914 | } | |
20915 | return resultobj; | |
20916 | fail: | |
20917 | { | |
20918 | if (temp2) | |
20919 | delete arg2; | |
20920 | } | |
20921 | return NULL; | |
20922 | } | |
20923 | ||
20924 | ||
20925 | static PyObject *_wrap_DateTime_Format(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20926 | PyObject *resultobj; | |
20927 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20928 | wxString const &arg2_defvalue = wxPyDateFormatStr ; | |
20929 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
20930 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
20931 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
20932 | wxString result; | |
20933 | bool temp2 = False ; | |
20934 | bool temp3 = False ; | |
20935 | PyObject * obj0 = 0 ; | |
20936 | PyObject * obj1 = 0 ; | |
20937 | PyObject * obj2 = 0 ; | |
20938 | char *kwnames[] = { | |
20939 | (char *) "self",(char *) "format",(char *) "tz", NULL | |
20940 | }; | |
20941 | ||
20942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_Format",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20943 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20944 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20945 | if (obj1) { | |
20946 | { | |
20947 | arg2 = wxString_in_helper(obj1); | |
20948 | if (arg2 == NULL) SWIG_fail; | |
20949 | temp2 = True; | |
20950 | } | |
20951 | } | |
20952 | if (obj2) { | |
20953 | { | |
20954 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
20955 | temp3 = True; | |
20956 | } | |
20957 | } | |
20958 | { | |
20959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20960 | result = ((wxDateTime const *)arg1)->Format((wxString const &)*arg2,(wxDateTime::TimeZone const &)*arg3); | |
20961 | ||
20962 | wxPyEndAllowThreads(__tstate); | |
20963 | if (PyErr_Occurred()) SWIG_fail; | |
20964 | } | |
20965 | { | |
20966 | #if wxUSE_UNICODE | |
20967 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20968 | #else | |
20969 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20970 | #endif | |
20971 | } | |
20972 | { | |
20973 | if (temp2) | |
20974 | delete arg2; | |
20975 | } | |
20976 | { | |
20977 | if (temp3) delete arg3; | |
20978 | } | |
20979 | return resultobj; | |
20980 | fail: | |
20981 | { | |
20982 | if (temp2) | |
20983 | delete arg2; | |
20984 | } | |
20985 | { | |
20986 | if (temp3) delete arg3; | |
20987 | } | |
20988 | return NULL; | |
20989 | } | |
20990 | ||
20991 | ||
20992 | static PyObject *_wrap_DateTime_FormatDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20993 | PyObject *resultobj; | |
20994 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20995 | wxString result; | |
20996 | PyObject * obj0 = 0 ; | |
20997 | char *kwnames[] = { | |
20998 | (char *) "self", NULL | |
20999 | }; | |
21000 | ||
21001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatDate",kwnames,&obj0)) goto fail; | |
21002 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21003 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21004 | { | |
21005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21006 | result = ((wxDateTime const *)arg1)->FormatDate(); | |
21007 | ||
21008 | wxPyEndAllowThreads(__tstate); | |
21009 | if (PyErr_Occurred()) SWIG_fail; | |
21010 | } | |
21011 | { | |
21012 | #if wxUSE_UNICODE | |
21013 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21014 | #else | |
21015 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21016 | #endif | |
21017 | } | |
21018 | return resultobj; | |
21019 | fail: | |
21020 | return NULL; | |
21021 | } | |
21022 | ||
21023 | ||
21024 | static PyObject *_wrap_DateTime_FormatTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21025 | PyObject *resultobj; | |
21026 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21027 | wxString result; | |
21028 | PyObject * obj0 = 0 ; | |
21029 | char *kwnames[] = { | |
21030 | (char *) "self", NULL | |
21031 | }; | |
21032 | ||
21033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatTime",kwnames,&obj0)) goto fail; | |
21034 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21035 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21036 | { | |
21037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21038 | result = ((wxDateTime const *)arg1)->FormatTime(); | |
21039 | ||
21040 | wxPyEndAllowThreads(__tstate); | |
21041 | if (PyErr_Occurred()) SWIG_fail; | |
21042 | } | |
21043 | { | |
21044 | #if wxUSE_UNICODE | |
21045 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21046 | #else | |
21047 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21048 | #endif | |
21049 | } | |
21050 | return resultobj; | |
21051 | fail: | |
21052 | return NULL; | |
21053 | } | |
21054 | ||
21055 | ||
21056 | static PyObject *_wrap_DateTime_FormatISODate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21057 | PyObject *resultobj; | |
21058 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21059 | wxString result; | |
21060 | PyObject * obj0 = 0 ; | |
21061 | char *kwnames[] = { | |
21062 | (char *) "self", NULL | |
21063 | }; | |
21064 | ||
21065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISODate",kwnames,&obj0)) goto fail; | |
21066 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21068 | { | |
21069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21070 | result = ((wxDateTime const *)arg1)->FormatISODate(); | |
21071 | ||
21072 | wxPyEndAllowThreads(__tstate); | |
21073 | if (PyErr_Occurred()) SWIG_fail; | |
21074 | } | |
21075 | { | |
21076 | #if wxUSE_UNICODE | |
21077 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21078 | #else | |
21079 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21080 | #endif | |
21081 | } | |
21082 | return resultobj; | |
21083 | fail: | |
21084 | return NULL; | |
21085 | } | |
21086 | ||
21087 | ||
21088 | static PyObject *_wrap_DateTime_FormatISOTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21089 | PyObject *resultobj; | |
21090 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21091 | wxString result; | |
21092 | PyObject * obj0 = 0 ; | |
21093 | char *kwnames[] = { | |
21094 | (char *) "self", NULL | |
21095 | }; | |
21096 | ||
21097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISOTime",kwnames,&obj0)) goto fail; | |
21098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21100 | { | |
21101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21102 | result = ((wxDateTime const *)arg1)->FormatISOTime(); | |
21103 | ||
21104 | wxPyEndAllowThreads(__tstate); | |
21105 | if (PyErr_Occurred()) SWIG_fail; | |
21106 | } | |
21107 | { | |
21108 | #if wxUSE_UNICODE | |
21109 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21110 | #else | |
21111 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21112 | #endif | |
21113 | } | |
21114 | return resultobj; | |
21115 | fail: | |
21116 | return NULL; | |
21117 | } | |
21118 | ||
21119 | ||
21120 | static PyObject * DateTime_swigregister(PyObject *self, PyObject *args) { | |
21121 | PyObject *obj; | |
21122 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21123 | SWIG_TypeClientData(SWIGTYPE_p_wxDateTime, obj); | |
21124 | Py_INCREF(obj); | |
21125 | return Py_BuildValue((char *)""); | |
21126 | } | |
21127 | static PyObject *_wrap_TimeSpan_Seconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21128 | PyObject *resultobj; | |
21129 | long arg1 ; | |
21130 | wxTimeSpan result; | |
21131 | PyObject * obj0 = 0 ; | |
21132 | char *kwnames[] = { | |
21133 | (char *) "sec", NULL | |
21134 | }; | |
21135 | ||
21136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Seconds",kwnames,&obj0)) goto fail; | |
21137 | arg1 = (long) SWIG_AsLong(obj0); | |
21138 | if (PyErr_Occurred()) SWIG_fail; | |
21139 | { | |
21140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21141 | result = wxTimeSpan::Seconds(arg1); | |
21142 | ||
21143 | wxPyEndAllowThreads(__tstate); | |
21144 | if (PyErr_Occurred()) SWIG_fail; | |
21145 | } | |
21146 | { | |
21147 | wxTimeSpan * resultptr; | |
21148 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21149 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21150 | } | |
21151 | return resultobj; | |
21152 | fail: | |
21153 | return NULL; | |
21154 | } | |
21155 | ||
21156 | ||
21157 | static PyObject *_wrap_TimeSpan_Second(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21158 | PyObject *resultobj; | |
21159 | wxTimeSpan result; | |
21160 | char *kwnames[] = { | |
21161 | NULL | |
21162 | }; | |
21163 | ||
21164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Second",kwnames)) goto fail; | |
21165 | { | |
21166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21167 | result = wxTimeSpan::Second(); | |
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_Minutes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21184 | PyObject *resultobj; | |
21185 | long arg1 ; | |
21186 | wxTimeSpan result; | |
21187 | PyObject * obj0 = 0 ; | |
21188 | char *kwnames[] = { | |
21189 | (char *) "min", NULL | |
21190 | }; | |
21191 | ||
21192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Minutes",kwnames,&obj0)) goto fail; | |
21193 | arg1 = (long) SWIG_AsLong(obj0); | |
21194 | if (PyErr_Occurred()) SWIG_fail; | |
21195 | { | |
21196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21197 | result = wxTimeSpan::Minutes(arg1); | |
21198 | ||
21199 | wxPyEndAllowThreads(__tstate); | |
21200 | if (PyErr_Occurred()) SWIG_fail; | |
21201 | } | |
21202 | { | |
21203 | wxTimeSpan * resultptr; | |
21204 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21205 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21206 | } | |
21207 | return resultobj; | |
21208 | fail: | |
21209 | return NULL; | |
21210 | } | |
21211 | ||
21212 | ||
21213 | static PyObject *_wrap_TimeSpan_Minute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21214 | PyObject *resultobj; | |
21215 | wxTimeSpan result; | |
21216 | char *kwnames[] = { | |
21217 | NULL | |
21218 | }; | |
21219 | ||
21220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Minute",kwnames)) goto fail; | |
21221 | { | |
21222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21223 | result = wxTimeSpan::Minute(); | |
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_Hours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21240 | PyObject *resultobj; | |
21241 | long arg1 ; | |
21242 | wxTimeSpan result; | |
21243 | PyObject * obj0 = 0 ; | |
21244 | char *kwnames[] = { | |
21245 | (char *) "hours", NULL | |
21246 | }; | |
21247 | ||
21248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Hours",kwnames,&obj0)) goto fail; | |
21249 | arg1 = (long) SWIG_AsLong(obj0); | |
21250 | if (PyErr_Occurred()) SWIG_fail; | |
21251 | { | |
21252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21253 | result = wxTimeSpan::Hours(arg1); | |
21254 | ||
21255 | wxPyEndAllowThreads(__tstate); | |
21256 | if (PyErr_Occurred()) SWIG_fail; | |
21257 | } | |
21258 | { | |
21259 | wxTimeSpan * resultptr; | |
21260 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21261 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21262 | } | |
21263 | return resultobj; | |
21264 | fail: | |
21265 | return NULL; | |
21266 | } | |
21267 | ||
21268 | ||
21269 | static PyObject *_wrap_TimeSpan_Hour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21270 | PyObject *resultobj; | |
21271 | wxTimeSpan result; | |
21272 | char *kwnames[] = { | |
21273 | NULL | |
21274 | }; | |
21275 | ||
21276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Hour",kwnames)) goto fail; | |
21277 | { | |
21278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21279 | result = wxTimeSpan::Hour(); | |
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_Days(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21296 | PyObject *resultobj; | |
21297 | long arg1 ; | |
21298 | wxTimeSpan result; | |
21299 | PyObject * obj0 = 0 ; | |
21300 | char *kwnames[] = { | |
21301 | (char *) "days", NULL | |
21302 | }; | |
21303 | ||
21304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Days",kwnames,&obj0)) goto fail; | |
21305 | arg1 = (long) SWIG_AsLong(obj0); | |
21306 | if (PyErr_Occurred()) SWIG_fail; | |
21307 | { | |
21308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21309 | result = wxTimeSpan::Days(arg1); | |
21310 | ||
21311 | wxPyEndAllowThreads(__tstate); | |
21312 | if (PyErr_Occurred()) SWIG_fail; | |
21313 | } | |
21314 | { | |
21315 | wxTimeSpan * resultptr; | |
21316 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21317 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21318 | } | |
21319 | return resultobj; | |
21320 | fail: | |
21321 | return NULL; | |
21322 | } | |
21323 | ||
21324 | ||
21325 | static PyObject *_wrap_TimeSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21326 | PyObject *resultobj; | |
21327 | wxTimeSpan result; | |
21328 | char *kwnames[] = { | |
21329 | NULL | |
21330 | }; | |
21331 | ||
21332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Day",kwnames)) goto fail; | |
21333 | { | |
21334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21335 | result = wxTimeSpan::Day(); | |
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_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21352 | PyObject *resultobj; | |
21353 | long arg1 ; | |
21354 | wxTimeSpan result; | |
21355 | PyObject * obj0 = 0 ; | |
21356 | char *kwnames[] = { | |
21357 | (char *) "days", NULL | |
21358 | }; | |
21359 | ||
21360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Weeks",kwnames,&obj0)) goto fail; | |
21361 | arg1 = (long) SWIG_AsLong(obj0); | |
21362 | if (PyErr_Occurred()) SWIG_fail; | |
21363 | { | |
21364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21365 | result = wxTimeSpan::Weeks(arg1); | |
21366 | ||
21367 | wxPyEndAllowThreads(__tstate); | |
21368 | if (PyErr_Occurred()) SWIG_fail; | |
21369 | } | |
21370 | { | |
21371 | wxTimeSpan * resultptr; | |
21372 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21373 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21374 | } | |
21375 | return resultobj; | |
21376 | fail: | |
21377 | return NULL; | |
21378 | } | |
21379 | ||
21380 | ||
21381 | static PyObject *_wrap_TimeSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21382 | PyObject *resultobj; | |
21383 | wxTimeSpan result; | |
21384 | char *kwnames[] = { | |
21385 | NULL | |
21386 | }; | |
21387 | ||
21388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Week",kwnames)) goto fail; | |
21389 | { | |
21390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21391 | result = wxTimeSpan::Week(); | |
21392 | ||
21393 | wxPyEndAllowThreads(__tstate); | |
21394 | if (PyErr_Occurred()) SWIG_fail; | |
21395 | } | |
21396 | { | |
21397 | wxTimeSpan * resultptr; | |
21398 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21399 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21400 | } | |
21401 | return resultobj; | |
21402 | fail: | |
21403 | return NULL; | |
21404 | } | |
21405 | ||
21406 | ||
21407 | static PyObject *_wrap_new_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21408 | PyObject *resultobj; | |
21409 | long arg1 = (long) 0 ; | |
21410 | long arg2 = (long) 0 ; | |
21411 | long arg3 = (long) 0 ; | |
21412 | long arg4 = (long) 0 ; | |
21413 | wxTimeSpan *result; | |
21414 | PyObject * obj0 = 0 ; | |
21415 | PyObject * obj1 = 0 ; | |
21416 | PyObject * obj2 = 0 ; | |
21417 | PyObject * obj3 = 0 ; | |
21418 | char *kwnames[] = { | |
21419 | (char *) "hours",(char *) "minutes",(char *) "seconds",(char *) "milliseconds", NULL | |
21420 | }; | |
21421 | ||
21422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TimeSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
21423 | if (obj0) { | |
21424 | arg1 = (long) SWIG_AsLong(obj0); | |
21425 | if (PyErr_Occurred()) SWIG_fail; | |
21426 | } | |
21427 | if (obj1) { | |
21428 | arg2 = (long) SWIG_AsLong(obj1); | |
21429 | if (PyErr_Occurred()) SWIG_fail; | |
21430 | } | |
21431 | if (obj2) { | |
21432 | arg3 = (long) SWIG_AsLong(obj2); | |
21433 | if (PyErr_Occurred()) SWIG_fail; | |
21434 | } | |
21435 | if (obj3) { | |
21436 | arg4 = (long) SWIG_AsLong(obj3); | |
21437 | if (PyErr_Occurred()) SWIG_fail; | |
21438 | } | |
21439 | { | |
21440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21441 | result = (wxTimeSpan *)new wxTimeSpan(arg1,arg2,arg3,arg4); | |
21442 | ||
21443 | wxPyEndAllowThreads(__tstate); | |
21444 | if (PyErr_Occurred()) SWIG_fail; | |
21445 | } | |
21446 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1); | |
21447 | return resultobj; | |
21448 | fail: | |
21449 | return NULL; | |
21450 | } | |
21451 | ||
21452 | ||
21453 | static PyObject *_wrap_delete_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21454 | PyObject *resultobj; | |
21455 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21456 | PyObject * obj0 = 0 ; | |
21457 | char *kwnames[] = { | |
21458 | (char *) "self", NULL | |
21459 | }; | |
21460 | ||
21461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimeSpan",kwnames,&obj0)) goto fail; | |
21462 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21463 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21464 | { | |
21465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21466 | delete arg1; | |
21467 | ||
21468 | wxPyEndAllowThreads(__tstate); | |
21469 | if (PyErr_Occurred()) SWIG_fail; | |
21470 | } | |
21471 | Py_INCREF(Py_None); resultobj = Py_None; | |
21472 | return resultobj; | |
21473 | fail: | |
21474 | return NULL; | |
21475 | } | |
21476 | ||
21477 | ||
21478 | static PyObject *_wrap_TimeSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21479 | PyObject *resultobj; | |
21480 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21481 | wxTimeSpan *arg2 = 0 ; | |
21482 | wxTimeSpan *result; | |
21483 | PyObject * obj0 = 0 ; | |
21484 | PyObject * obj1 = 0 ; | |
21485 | char *kwnames[] = { | |
21486 | (char *) "self",(char *) "diff", NULL | |
21487 | }; | |
21488 | ||
21489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Add",kwnames,&obj0,&obj1)) goto fail; | |
21490 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21491 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21492 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21493 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21494 | SWIG_fail; | |
21495 | if (arg2 == NULL) { | |
21496 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21497 | SWIG_fail; | |
21498 | } | |
21499 | { | |
21500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21501 | { | |
21502 | wxTimeSpan &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2); | |
21503 | result = (wxTimeSpan *) &_result_ref; | |
21504 | } | |
21505 | ||
21506 | wxPyEndAllowThreads(__tstate); | |
21507 | if (PyErr_Occurred()) SWIG_fail; | |
21508 | } | |
21509 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
21510 | return resultobj; | |
21511 | fail: | |
21512 | return NULL; | |
21513 | } | |
21514 | ||
21515 | ||
21516 | static PyObject *_wrap_TimeSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21517 | PyObject *resultobj; | |
21518 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21519 | wxTimeSpan *arg2 = 0 ; | |
21520 | wxTimeSpan *result; | |
21521 | PyObject * obj0 = 0 ; | |
21522 | PyObject * obj1 = 0 ; | |
21523 | char *kwnames[] = { | |
21524 | (char *) "self",(char *) "diff", NULL | |
21525 | }; | |
21526 | ||
21527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
21528 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21529 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21530 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21531 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21532 | SWIG_fail; | |
21533 | if (arg2 == NULL) { | |
21534 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21535 | SWIG_fail; | |
21536 | } | |
21537 | { | |
21538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21539 | { | |
21540 | wxTimeSpan &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2); | |
21541 | result = (wxTimeSpan *) &_result_ref; | |
21542 | } | |
21543 | ||
21544 | wxPyEndAllowThreads(__tstate); | |
21545 | if (PyErr_Occurred()) SWIG_fail; | |
21546 | } | |
21547 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
21548 | return resultobj; | |
21549 | fail: | |
21550 | return NULL; | |
21551 | } | |
21552 | ||
21553 | ||
21554 | static PyObject *_wrap_TimeSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21555 | PyObject *resultobj; | |
21556 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21557 | int arg2 ; | |
21558 | wxTimeSpan *result; | |
21559 | PyObject * obj0 = 0 ; | |
21560 | PyObject * obj1 = 0 ; | |
21561 | char *kwnames[] = { | |
21562 | (char *) "self",(char *) "n", NULL | |
21563 | }; | |
21564 | ||
21565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Multiply",kwnames,&obj0,&obj1)) goto fail; | |
21566 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21567 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21568 | arg2 = (int) SWIG_AsInt(obj1); | |
21569 | if (PyErr_Occurred()) SWIG_fail; | |
21570 | { | |
21571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21572 | { | |
21573 | wxTimeSpan &_result_ref = (arg1)->Multiply(arg2); | |
21574 | result = (wxTimeSpan *) &_result_ref; | |
21575 | } | |
21576 | ||
21577 | wxPyEndAllowThreads(__tstate); | |
21578 | if (PyErr_Occurred()) SWIG_fail; | |
21579 | } | |
21580 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
21581 | return resultobj; | |
21582 | fail: | |
21583 | return NULL; | |
21584 | } | |
21585 | ||
21586 | ||
21587 | static PyObject *_wrap_TimeSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21588 | PyObject *resultobj; | |
21589 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21590 | wxTimeSpan *result; | |
21591 | PyObject * obj0 = 0 ; | |
21592 | char *kwnames[] = { | |
21593 | (char *) "self", NULL | |
21594 | }; | |
21595 | ||
21596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Neg",kwnames,&obj0)) goto fail; | |
21597 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21598 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21599 | { | |
21600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21601 | { | |
21602 | wxTimeSpan &_result_ref = (arg1)->Neg(); | |
21603 | result = (wxTimeSpan *) &_result_ref; | |
21604 | } | |
21605 | ||
21606 | wxPyEndAllowThreads(__tstate); | |
21607 | if (PyErr_Occurred()) SWIG_fail; | |
21608 | } | |
21609 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
21610 | return resultobj; | |
21611 | fail: | |
21612 | return NULL; | |
21613 | } | |
21614 | ||
21615 | ||
21616 | static PyObject *_wrap_TimeSpan_Abs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21617 | PyObject *resultobj; | |
21618 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21619 | wxTimeSpan result; | |
21620 | PyObject * obj0 = 0 ; | |
21621 | char *kwnames[] = { | |
21622 | (char *) "self", NULL | |
21623 | }; | |
21624 | ||
21625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Abs",kwnames,&obj0)) goto fail; | |
21626 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21627 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21628 | { | |
21629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21630 | result = ((wxTimeSpan const *)arg1)->Abs(); | |
21631 | ||
21632 | wxPyEndAllowThreads(__tstate); | |
21633 | if (PyErr_Occurred()) SWIG_fail; | |
21634 | } | |
21635 | { | |
21636 | wxTimeSpan * resultptr; | |
21637 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21638 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21639 | } | |
21640 | return resultobj; | |
21641 | fail: | |
21642 | return NULL; | |
21643 | } | |
21644 | ||
21645 | ||
21646 | static PyObject *_wrap_TimeSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21647 | PyObject *resultobj; | |
21648 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21649 | wxTimeSpan *arg2 = 0 ; | |
21650 | wxTimeSpan *result; | |
21651 | PyObject * obj0 = 0 ; | |
21652 | PyObject * obj1 = 0 ; | |
21653 | char *kwnames[] = { | |
21654 | (char *) "self",(char *) "diff", NULL | |
21655 | }; | |
21656 | ||
21657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
21658 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21659 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21660 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21661 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21662 | SWIG_fail; | |
21663 | if (arg2 == NULL) { | |
21664 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21665 | SWIG_fail; | |
21666 | } | |
21667 | { | |
21668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21669 | { | |
21670 | wxTimeSpan &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2); | |
21671 | result = (wxTimeSpan *) &_result_ref; | |
21672 | } | |
21673 | ||
21674 | wxPyEndAllowThreads(__tstate); | |
21675 | if (PyErr_Occurred()) SWIG_fail; | |
21676 | } | |
21677 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
21678 | return resultobj; | |
21679 | fail: | |
21680 | return NULL; | |
21681 | } | |
21682 | ||
21683 | ||
21684 | static PyObject *_wrap_TimeSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21685 | PyObject *resultobj; | |
21686 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21687 | wxTimeSpan *arg2 = 0 ; | |
21688 | wxTimeSpan *result; | |
21689 | PyObject * obj0 = 0 ; | |
21690 | PyObject * obj1 = 0 ; | |
21691 | char *kwnames[] = { | |
21692 | (char *) "self",(char *) "diff", NULL | |
21693 | }; | |
21694 | ||
21695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___isub__",kwnames,&obj0,&obj1)) goto fail; | |
21696 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21697 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21698 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21699 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21700 | SWIG_fail; | |
21701 | if (arg2 == NULL) { | |
21702 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21703 | SWIG_fail; | |
21704 | } | |
21705 | { | |
21706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21707 | { | |
21708 | wxTimeSpan &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2); | |
21709 | result = (wxTimeSpan *) &_result_ref; | |
21710 | } | |
21711 | ||
21712 | wxPyEndAllowThreads(__tstate); | |
21713 | if (PyErr_Occurred()) SWIG_fail; | |
21714 | } | |
21715 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
21716 | return resultobj; | |
21717 | fail: | |
21718 | return NULL; | |
21719 | } | |
21720 | ||
21721 | ||
21722 | static PyObject *_wrap_TimeSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21723 | PyObject *resultobj; | |
21724 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21725 | int arg2 ; | |
21726 | wxTimeSpan *result; | |
21727 | PyObject * obj0 = 0 ; | |
21728 | PyObject * obj1 = 0 ; | |
21729 | char *kwnames[] = { | |
21730 | (char *) "self",(char *) "n", NULL | |
21731 | }; | |
21732 | ||
21733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___imul__",kwnames,&obj0,&obj1)) goto fail; | |
21734 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21735 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21736 | arg2 = (int) SWIG_AsInt(obj1); | |
21737 | if (PyErr_Occurred()) SWIG_fail; | |
21738 | { | |
21739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21740 | { | |
21741 | wxTimeSpan &_result_ref = (arg1)->operator *=(arg2); | |
21742 | result = (wxTimeSpan *) &_result_ref; | |
21743 | } | |
21744 | ||
21745 | wxPyEndAllowThreads(__tstate); | |
21746 | if (PyErr_Occurred()) SWIG_fail; | |
21747 | } | |
21748 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
21749 | return resultobj; | |
21750 | fail: | |
21751 | return NULL; | |
21752 | } | |
21753 | ||
21754 | ||
21755 | static PyObject *_wrap_TimeSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21756 | PyObject *resultobj; | |
21757 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21758 | wxTimeSpan *result; | |
21759 | PyObject * obj0 = 0 ; | |
21760 | char *kwnames[] = { | |
21761 | (char *) "self", NULL | |
21762 | }; | |
21763 | ||
21764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan___neg__",kwnames,&obj0)) goto fail; | |
21765 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21767 | { | |
21768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21769 | { | |
21770 | wxTimeSpan &_result_ref = (arg1)->operator -(); | |
21771 | result = (wxTimeSpan *) &_result_ref; | |
21772 | } | |
21773 | ||
21774 | wxPyEndAllowThreads(__tstate); | |
21775 | if (PyErr_Occurred()) SWIG_fail; | |
21776 | } | |
21777 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
21778 | return resultobj; | |
21779 | fail: | |
21780 | return NULL; | |
21781 | } | |
21782 | ||
21783 | ||
21784 | static PyObject *_wrap_TimeSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21785 | PyObject *resultobj; | |
21786 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21787 | wxTimeSpan *arg2 = 0 ; | |
21788 | wxTimeSpan result; | |
21789 | PyObject * obj0 = 0 ; | |
21790 | PyObject * obj1 = 0 ; | |
21791 | char *kwnames[] = { | |
21792 | (char *) "self",(char *) "other", NULL | |
21793 | }; | |
21794 | ||
21795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___add__",kwnames,&obj0,&obj1)) goto fail; | |
21796 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21797 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21798 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21799 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21800 | SWIG_fail; | |
21801 | if (arg2 == NULL) { | |
21802 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21803 | SWIG_fail; | |
21804 | } | |
21805 | { | |
21806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21807 | result = wxTimeSpan___add__(arg1,(wxTimeSpan const &)*arg2); | |
21808 | ||
21809 | wxPyEndAllowThreads(__tstate); | |
21810 | if (PyErr_Occurred()) SWIG_fail; | |
21811 | } | |
21812 | { | |
21813 | wxTimeSpan * resultptr; | |
21814 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21815 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21816 | } | |
21817 | return resultobj; | |
21818 | fail: | |
21819 | return NULL; | |
21820 | } | |
21821 | ||
21822 | ||
21823 | static PyObject *_wrap_TimeSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21824 | PyObject *resultobj; | |
21825 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21826 | wxTimeSpan *arg2 = 0 ; | |
21827 | wxTimeSpan result; | |
21828 | PyObject * obj0 = 0 ; | |
21829 | PyObject * obj1 = 0 ; | |
21830 | char *kwnames[] = { | |
21831 | (char *) "self",(char *) "other", NULL | |
21832 | }; | |
21833 | ||
21834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___sub__",kwnames,&obj0,&obj1)) goto fail; | |
21835 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21836 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21837 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21838 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21839 | SWIG_fail; | |
21840 | if (arg2 == NULL) { | |
21841 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21842 | SWIG_fail; | |
21843 | } | |
21844 | { | |
21845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21846 | result = wxTimeSpan___sub__(arg1,(wxTimeSpan const &)*arg2); | |
21847 | ||
21848 | wxPyEndAllowThreads(__tstate); | |
21849 | if (PyErr_Occurred()) SWIG_fail; | |
21850 | } | |
21851 | { | |
21852 | wxTimeSpan * resultptr; | |
21853 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21854 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21855 | } | |
21856 | return resultobj; | |
21857 | fail: | |
21858 | return NULL; | |
21859 | } | |
21860 | ||
21861 | ||
21862 | static PyObject *_wrap_TimeSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21863 | PyObject *resultobj; | |
21864 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21865 | int arg2 ; | |
21866 | wxTimeSpan result; | |
21867 | PyObject * obj0 = 0 ; | |
21868 | PyObject * obj1 = 0 ; | |
21869 | char *kwnames[] = { | |
21870 | (char *) "self",(char *) "n", NULL | |
21871 | }; | |
21872 | ||
21873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___mul__",kwnames,&obj0,&obj1)) goto fail; | |
21874 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21875 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21876 | arg2 = (int) SWIG_AsInt(obj1); | |
21877 | if (PyErr_Occurred()) SWIG_fail; | |
21878 | { | |
21879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21880 | result = wxTimeSpan___mul__(arg1,arg2); | |
21881 | ||
21882 | wxPyEndAllowThreads(__tstate); | |
21883 | if (PyErr_Occurred()) SWIG_fail; | |
21884 | } | |
21885 | { | |
21886 | wxTimeSpan * resultptr; | |
21887 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21888 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21889 | } | |
21890 | return resultobj; | |
21891 | fail: | |
21892 | return NULL; | |
21893 | } | |
21894 | ||
21895 | ||
21896 | static PyObject *_wrap_TimeSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21897 | PyObject *resultobj; | |
21898 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21899 | int arg2 ; | |
21900 | wxTimeSpan result; | |
21901 | PyObject * obj0 = 0 ; | |
21902 | PyObject * obj1 = 0 ; | |
21903 | char *kwnames[] = { | |
21904 | (char *) "self",(char *) "n", NULL | |
21905 | }; | |
21906 | ||
21907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___rmul__",kwnames,&obj0,&obj1)) goto fail; | |
21908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21910 | arg2 = (int) SWIG_AsInt(obj1); | |
21911 | if (PyErr_Occurred()) SWIG_fail; | |
21912 | { | |
21913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21914 | result = wxTimeSpan___rmul__(arg1,arg2); | |
21915 | ||
21916 | wxPyEndAllowThreads(__tstate); | |
21917 | if (PyErr_Occurred()) SWIG_fail; | |
21918 | } | |
21919 | { | |
21920 | wxTimeSpan * resultptr; | |
21921 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21922 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21923 | } | |
21924 | return resultobj; | |
21925 | fail: | |
21926 | return NULL; | |
21927 | } | |
21928 | ||
21929 | ||
21930 | static PyObject *_wrap_TimeSpan___lt__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21931 | PyObject *resultobj; | |
21932 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21933 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
21934 | bool result; | |
21935 | PyObject * obj0 = 0 ; | |
21936 | PyObject * obj1 = 0 ; | |
21937 | char *kwnames[] = { | |
21938 | (char *) "self",(char *) "other", NULL | |
21939 | }; | |
21940 | ||
21941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___lt__",kwnames,&obj0,&obj1)) goto fail; | |
21942 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21943 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21944 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21946 | { | |
21947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21948 | result = (bool)wxTimeSpan___lt__(arg1,(wxTimeSpan const *)arg2); | |
21949 | ||
21950 | wxPyEndAllowThreads(__tstate); | |
21951 | if (PyErr_Occurred()) SWIG_fail; | |
21952 | } | |
21953 | { | |
21954 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21955 | } | |
21956 | return resultobj; | |
21957 | fail: | |
21958 | return NULL; | |
21959 | } | |
21960 | ||
21961 | ||
21962 | static PyObject *_wrap_TimeSpan___le__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21963 | PyObject *resultobj; | |
21964 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21965 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
21966 | bool result; | |
21967 | PyObject * obj0 = 0 ; | |
21968 | PyObject * obj1 = 0 ; | |
21969 | char *kwnames[] = { | |
21970 | (char *) "self",(char *) "other", NULL | |
21971 | }; | |
21972 | ||
21973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___le__",kwnames,&obj0,&obj1)) goto fail; | |
21974 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21975 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21976 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21977 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21978 | { | |
21979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21980 | result = (bool)wxTimeSpan___le__(arg1,(wxTimeSpan const *)arg2); | |
21981 | ||
21982 | wxPyEndAllowThreads(__tstate); | |
21983 | if (PyErr_Occurred()) SWIG_fail; | |
21984 | } | |
21985 | { | |
21986 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21987 | } | |
21988 | return resultobj; | |
21989 | fail: | |
21990 | return NULL; | |
21991 | } | |
21992 | ||
21993 | ||
21994 | static PyObject *_wrap_TimeSpan___gt__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21995 | PyObject *resultobj; | |
21996 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21997 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
21998 | bool result; | |
21999 | PyObject * obj0 = 0 ; | |
22000 | PyObject * obj1 = 0 ; | |
22001 | char *kwnames[] = { | |
22002 | (char *) "self",(char *) "other", NULL | |
22003 | }; | |
22004 | ||
22005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___gt__",kwnames,&obj0,&obj1)) goto fail; | |
22006 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22008 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22009 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22010 | { | |
22011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22012 | result = (bool)wxTimeSpan___gt__(arg1,(wxTimeSpan const *)arg2); | |
22013 | ||
22014 | wxPyEndAllowThreads(__tstate); | |
22015 | if (PyErr_Occurred()) SWIG_fail; | |
22016 | } | |
22017 | { | |
22018 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22019 | } | |
22020 | return resultobj; | |
22021 | fail: | |
22022 | return NULL; | |
22023 | } | |
22024 | ||
22025 | ||
22026 | static PyObject *_wrap_TimeSpan___ge__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22027 | PyObject *resultobj; | |
22028 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22029 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
22030 | bool result; | |
22031 | PyObject * obj0 = 0 ; | |
22032 | PyObject * obj1 = 0 ; | |
22033 | char *kwnames[] = { | |
22034 | (char *) "self",(char *) "other", NULL | |
22035 | }; | |
22036 | ||
22037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ge__",kwnames,&obj0,&obj1)) goto fail; | |
22038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22040 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22041 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22042 | { | |
22043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22044 | result = (bool)wxTimeSpan___ge__(arg1,(wxTimeSpan const *)arg2); | |
22045 | ||
22046 | wxPyEndAllowThreads(__tstate); | |
22047 | if (PyErr_Occurred()) SWIG_fail; | |
22048 | } | |
22049 | { | |
22050 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22051 | } | |
22052 | return resultobj; | |
22053 | fail: | |
22054 | return NULL; | |
22055 | } | |
22056 | ||
22057 | ||
22058 | static PyObject *_wrap_TimeSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22059 | PyObject *resultobj; | |
22060 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22061 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
22062 | bool result; | |
22063 | PyObject * obj0 = 0 ; | |
22064 | PyObject * obj1 = 0 ; | |
22065 | char *kwnames[] = { | |
22066 | (char *) "self",(char *) "other", NULL | |
22067 | }; | |
22068 | ||
22069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
22070 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22071 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22072 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22073 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22074 | { | |
22075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22076 | result = (bool)wxTimeSpan___eq__(arg1,(wxTimeSpan const *)arg2); | |
22077 | ||
22078 | wxPyEndAllowThreads(__tstate); | |
22079 | if (PyErr_Occurred()) SWIG_fail; | |
22080 | } | |
22081 | { | |
22082 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22083 | } | |
22084 | return resultobj; | |
22085 | fail: | |
22086 | return NULL; | |
22087 | } | |
22088 | ||
22089 | ||
22090 | static PyObject *_wrap_TimeSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22091 | PyObject *resultobj; | |
22092 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22093 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
22094 | bool result; | |
22095 | PyObject * obj0 = 0 ; | |
22096 | PyObject * obj1 = 0 ; | |
22097 | char *kwnames[] = { | |
22098 | (char *) "self",(char *) "other", NULL | |
22099 | }; | |
22100 | ||
22101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
22102 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22103 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22104 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22105 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22106 | { | |
22107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22108 | result = (bool)wxTimeSpan___ne__(arg1,(wxTimeSpan const *)arg2); | |
22109 | ||
22110 | wxPyEndAllowThreads(__tstate); | |
22111 | if (PyErr_Occurred()) SWIG_fail; | |
22112 | } | |
22113 | { | |
22114 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22115 | } | |
22116 | return resultobj; | |
22117 | fail: | |
22118 | return NULL; | |
22119 | } | |
22120 | ||
22121 | ||
22122 | static PyObject *_wrap_TimeSpan_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22123 | PyObject *resultobj; | |
22124 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22125 | bool result; | |
22126 | PyObject * obj0 = 0 ; | |
22127 | char *kwnames[] = { | |
22128 | (char *) "self", NULL | |
22129 | }; | |
22130 | ||
22131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNull",kwnames,&obj0)) goto fail; | |
22132 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22133 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22134 | { | |
22135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22136 | result = (bool)((wxTimeSpan const *)arg1)->IsNull(); | |
22137 | ||
22138 | wxPyEndAllowThreads(__tstate); | |
22139 | if (PyErr_Occurred()) SWIG_fail; | |
22140 | } | |
22141 | { | |
22142 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22143 | } | |
22144 | return resultobj; | |
22145 | fail: | |
22146 | return NULL; | |
22147 | } | |
22148 | ||
22149 | ||
22150 | static PyObject *_wrap_TimeSpan_IsPositive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22151 | PyObject *resultobj; | |
22152 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22153 | bool result; | |
22154 | PyObject * obj0 = 0 ; | |
22155 | char *kwnames[] = { | |
22156 | (char *) "self", NULL | |
22157 | }; | |
22158 | ||
22159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsPositive",kwnames,&obj0)) goto fail; | |
22160 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22161 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22162 | { | |
22163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22164 | result = (bool)((wxTimeSpan const *)arg1)->IsPositive(); | |
22165 | ||
22166 | wxPyEndAllowThreads(__tstate); | |
22167 | if (PyErr_Occurred()) SWIG_fail; | |
22168 | } | |
22169 | { | |
22170 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22171 | } | |
22172 | return resultobj; | |
22173 | fail: | |
22174 | return NULL; | |
22175 | } | |
22176 | ||
22177 | ||
22178 | static PyObject *_wrap_TimeSpan_IsNegative(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22179 | PyObject *resultobj; | |
22180 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22181 | bool result; | |
22182 | PyObject * obj0 = 0 ; | |
22183 | char *kwnames[] = { | |
22184 | (char *) "self", NULL | |
22185 | }; | |
22186 | ||
22187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNegative",kwnames,&obj0)) goto fail; | |
22188 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22189 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22190 | { | |
22191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22192 | result = (bool)((wxTimeSpan const *)arg1)->IsNegative(); | |
22193 | ||
22194 | wxPyEndAllowThreads(__tstate); | |
22195 | if (PyErr_Occurred()) SWIG_fail; | |
22196 | } | |
22197 | { | |
22198 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22199 | } | |
22200 | return resultobj; | |
22201 | fail: | |
22202 | return NULL; | |
22203 | } | |
22204 | ||
22205 | ||
22206 | static PyObject *_wrap_TimeSpan_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22207 | PyObject *resultobj; | |
22208 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22209 | wxTimeSpan *arg2 = 0 ; | |
22210 | bool result; | |
22211 | PyObject * obj0 = 0 ; | |
22212 | PyObject * obj1 = 0 ; | |
22213 | char *kwnames[] = { | |
22214 | (char *) "self",(char *) "ts", NULL | |
22215 | }; | |
22216 | ||
22217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsEqualTo",kwnames,&obj0,&obj1)) goto fail; | |
22218 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22220 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22221 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22222 | SWIG_fail; | |
22223 | if (arg2 == NULL) { | |
22224 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22225 | SWIG_fail; | |
22226 | } | |
22227 | { | |
22228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22229 | result = (bool)((wxTimeSpan const *)arg1)->IsEqualTo((wxTimeSpan const &)*arg2); | |
22230 | ||
22231 | wxPyEndAllowThreads(__tstate); | |
22232 | if (PyErr_Occurred()) SWIG_fail; | |
22233 | } | |
22234 | { | |
22235 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22236 | } | |
22237 | return resultobj; | |
22238 | fail: | |
22239 | return NULL; | |
22240 | } | |
22241 | ||
22242 | ||
22243 | static PyObject *_wrap_TimeSpan_IsLongerThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22244 | PyObject *resultobj; | |
22245 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22246 | wxTimeSpan *arg2 = 0 ; | |
22247 | bool result; | |
22248 | PyObject * obj0 = 0 ; | |
22249 | PyObject * obj1 = 0 ; | |
22250 | char *kwnames[] = { | |
22251 | (char *) "self",(char *) "ts", NULL | |
22252 | }; | |
22253 | ||
22254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsLongerThan",kwnames,&obj0,&obj1)) goto fail; | |
22255 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22256 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22257 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22258 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22259 | SWIG_fail; | |
22260 | if (arg2 == NULL) { | |
22261 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22262 | SWIG_fail; | |
22263 | } | |
22264 | { | |
22265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22266 | result = (bool)((wxTimeSpan const *)arg1)->IsLongerThan((wxTimeSpan const &)*arg2); | |
22267 | ||
22268 | wxPyEndAllowThreads(__tstate); | |
22269 | if (PyErr_Occurred()) SWIG_fail; | |
22270 | } | |
22271 | { | |
22272 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22273 | } | |
22274 | return resultobj; | |
22275 | fail: | |
22276 | return NULL; | |
22277 | } | |
22278 | ||
22279 | ||
22280 | static PyObject *_wrap_TimeSpan_IsShorterThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22281 | PyObject *resultobj; | |
22282 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22283 | wxTimeSpan *arg2 = 0 ; | |
22284 | bool result; | |
22285 | PyObject * obj0 = 0 ; | |
22286 | PyObject * obj1 = 0 ; | |
22287 | char *kwnames[] = { | |
22288 | (char *) "self",(char *) "t", NULL | |
22289 | }; | |
22290 | ||
22291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsShorterThan",kwnames,&obj0,&obj1)) goto fail; | |
22292 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22293 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22294 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22295 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22296 | SWIG_fail; | |
22297 | if (arg2 == NULL) { | |
22298 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22299 | SWIG_fail; | |
22300 | } | |
22301 | { | |
22302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22303 | result = (bool)((wxTimeSpan const *)arg1)->IsShorterThan((wxTimeSpan const &)*arg2); | |
22304 | ||
22305 | wxPyEndAllowThreads(__tstate); | |
22306 | if (PyErr_Occurred()) SWIG_fail; | |
22307 | } | |
22308 | { | |
22309 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22310 | } | |
22311 | return resultobj; | |
22312 | fail: | |
22313 | return NULL; | |
22314 | } | |
22315 | ||
22316 | ||
22317 | static PyObject *_wrap_TimeSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22318 | PyObject *resultobj; | |
22319 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22320 | int result; | |
22321 | PyObject * obj0 = 0 ; | |
22322 | char *kwnames[] = { | |
22323 | (char *) "self", NULL | |
22324 | }; | |
22325 | ||
22326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetWeeks",kwnames,&obj0)) goto fail; | |
22327 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22328 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22329 | { | |
22330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22331 | result = (int)((wxTimeSpan const *)arg1)->GetWeeks(); | |
22332 | ||
22333 | wxPyEndAllowThreads(__tstate); | |
22334 | if (PyErr_Occurred()) SWIG_fail; | |
22335 | } | |
22336 | resultobj = SWIG_FromInt((int)result); | |
22337 | return resultobj; | |
22338 | fail: | |
22339 | return NULL; | |
22340 | } | |
22341 | ||
22342 | ||
22343 | static PyObject *_wrap_TimeSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22344 | PyObject *resultobj; | |
22345 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22346 | int result; | |
22347 | PyObject * obj0 = 0 ; | |
22348 | char *kwnames[] = { | |
22349 | (char *) "self", NULL | |
22350 | }; | |
22351 | ||
22352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetDays",kwnames,&obj0)) goto fail; | |
22353 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22354 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22355 | { | |
22356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22357 | result = (int)((wxTimeSpan const *)arg1)->GetDays(); | |
22358 | ||
22359 | wxPyEndAllowThreads(__tstate); | |
22360 | if (PyErr_Occurred()) SWIG_fail; | |
22361 | } | |
22362 | resultobj = SWIG_FromInt((int)result); | |
22363 | return resultobj; | |
22364 | fail: | |
22365 | return NULL; | |
22366 | } | |
22367 | ||
22368 | ||
22369 | static PyObject *_wrap_TimeSpan_GetHours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22370 | PyObject *resultobj; | |
22371 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22372 | int result; | |
22373 | PyObject * obj0 = 0 ; | |
22374 | char *kwnames[] = { | |
22375 | (char *) "self", NULL | |
22376 | }; | |
22377 | ||
22378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetHours",kwnames,&obj0)) goto fail; | |
22379 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22380 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22381 | { | |
22382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22383 | result = (int)((wxTimeSpan const *)arg1)->GetHours(); | |
22384 | ||
22385 | wxPyEndAllowThreads(__tstate); | |
22386 | if (PyErr_Occurred()) SWIG_fail; | |
22387 | } | |
22388 | resultobj = SWIG_FromInt((int)result); | |
22389 | return resultobj; | |
22390 | fail: | |
22391 | return NULL; | |
22392 | } | |
22393 | ||
22394 | ||
22395 | static PyObject *_wrap_TimeSpan_GetMinutes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22396 | PyObject *resultobj; | |
22397 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22398 | int result; | |
22399 | PyObject * obj0 = 0 ; | |
22400 | char *kwnames[] = { | |
22401 | (char *) "self", NULL | |
22402 | }; | |
22403 | ||
22404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMinutes",kwnames,&obj0)) goto fail; | |
22405 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22406 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22407 | { | |
22408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22409 | result = (int)((wxTimeSpan const *)arg1)->GetMinutes(); | |
22410 | ||
22411 | wxPyEndAllowThreads(__tstate); | |
22412 | if (PyErr_Occurred()) SWIG_fail; | |
22413 | } | |
22414 | resultobj = SWIG_FromInt((int)result); | |
22415 | return resultobj; | |
22416 | fail: | |
22417 | return NULL; | |
22418 | } | |
22419 | ||
22420 | ||
22421 | static PyObject *_wrap_TimeSpan_GetSeconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22422 | PyObject *resultobj; | |
22423 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22424 | wxLongLong result; | |
22425 | PyObject * obj0 = 0 ; | |
22426 | char *kwnames[] = { | |
22427 | (char *) "self", NULL | |
22428 | }; | |
22429 | ||
22430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetSeconds",kwnames,&obj0)) goto fail; | |
22431 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22432 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22433 | { | |
22434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22435 | result = ((wxTimeSpan const *)arg1)->GetSeconds(); | |
22436 | ||
22437 | wxPyEndAllowThreads(__tstate); | |
22438 | if (PyErr_Occurred()) SWIG_fail; | |
22439 | } | |
22440 | { | |
22441 | PyObject *hi, *lo, *shifter, *shifted; | |
22442 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
22443 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
22444 | shifter = PyLong_FromLong(32); | |
22445 | shifted = PyNumber_Lshift(hi, shifter); | |
22446 | resultobj = PyNumber_Or(shifted, lo); | |
22447 | Py_DECREF(hi); | |
22448 | Py_DECREF(lo); | |
22449 | Py_DECREF(shifter); | |
22450 | Py_DECREF(shifted); | |
22451 | } | |
22452 | return resultobj; | |
22453 | fail: | |
22454 | return NULL; | |
22455 | } | |
22456 | ||
22457 | ||
22458 | static PyObject *_wrap_TimeSpan_GetMilliseconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22459 | PyObject *resultobj; | |
22460 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22461 | wxLongLong result; | |
22462 | PyObject * obj0 = 0 ; | |
22463 | char *kwnames[] = { | |
22464 | (char *) "self", NULL | |
22465 | }; | |
22466 | ||
22467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMilliseconds",kwnames,&obj0)) goto fail; | |
22468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22470 | { | |
22471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22472 | result = ((wxTimeSpan const *)arg1)->GetMilliseconds(); | |
22473 | ||
22474 | wxPyEndAllowThreads(__tstate); | |
22475 | if (PyErr_Occurred()) SWIG_fail; | |
22476 | } | |
22477 | { | |
22478 | PyObject *hi, *lo, *shifter, *shifted; | |
22479 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
22480 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
22481 | shifter = PyLong_FromLong(32); | |
22482 | shifted = PyNumber_Lshift(hi, shifter); | |
22483 | resultobj = PyNumber_Or(shifted, lo); | |
22484 | Py_DECREF(hi); | |
22485 | Py_DECREF(lo); | |
22486 | Py_DECREF(shifter); | |
22487 | Py_DECREF(shifted); | |
22488 | } | |
22489 | return resultobj; | |
22490 | fail: | |
22491 | return NULL; | |
22492 | } | |
22493 | ||
22494 | ||
22495 | static PyObject *_wrap_TimeSpan_Format(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22496 | PyObject *resultobj; | |
22497 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22498 | wxString const &arg2_defvalue = wxPyTimeSpanFormatStr ; | |
22499 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
22500 | wxString result; | |
22501 | bool temp2 = False ; | |
22502 | PyObject * obj0 = 0 ; | |
22503 | PyObject * obj1 = 0 ; | |
22504 | char *kwnames[] = { | |
22505 | (char *) "self",(char *) "format", NULL | |
22506 | }; | |
22507 | ||
22508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TimeSpan_Format",kwnames,&obj0,&obj1)) goto fail; | |
22509 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22510 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22511 | if (obj1) { | |
22512 | { | |
22513 | arg2 = wxString_in_helper(obj1); | |
22514 | if (arg2 == NULL) SWIG_fail; | |
22515 | temp2 = True; | |
22516 | } | |
22517 | } | |
22518 | { | |
22519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22520 | result = ((wxTimeSpan const *)arg1)->Format((wxString const &)*arg2); | |
22521 | ||
22522 | wxPyEndAllowThreads(__tstate); | |
22523 | if (PyErr_Occurred()) SWIG_fail; | |
22524 | } | |
22525 | { | |
22526 | #if wxUSE_UNICODE | |
22527 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
22528 | #else | |
22529 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
22530 | #endif | |
22531 | } | |
22532 | { | |
22533 | if (temp2) | |
22534 | delete arg2; | |
22535 | } | |
22536 | return resultobj; | |
22537 | fail: | |
22538 | { | |
22539 | if (temp2) | |
22540 | delete arg2; | |
22541 | } | |
22542 | return NULL; | |
22543 | } | |
22544 | ||
22545 | ||
22546 | static PyObject * TimeSpan_swigregister(PyObject *self, PyObject *args) { | |
22547 | PyObject *obj; | |
22548 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22549 | SWIG_TypeClientData(SWIGTYPE_p_wxTimeSpan, obj); | |
22550 | Py_INCREF(obj); | |
22551 | return Py_BuildValue((char *)""); | |
22552 | } | |
22553 | static PyObject *_wrap_new_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22554 | PyObject *resultobj; | |
22555 | int arg1 = (int) 0 ; | |
22556 | int arg2 = (int) 0 ; | |
22557 | int arg3 = (int) 0 ; | |
22558 | int arg4 = (int) 0 ; | |
22559 | wxDateSpan *result; | |
22560 | PyObject * obj0 = 0 ; | |
22561 | PyObject * obj1 = 0 ; | |
22562 | PyObject * obj2 = 0 ; | |
22563 | PyObject * obj3 = 0 ; | |
22564 | char *kwnames[] = { | |
22565 | (char *) "years",(char *) "months",(char *) "weeks",(char *) "days", NULL | |
22566 | }; | |
22567 | ||
22568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_DateSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
22569 | if (obj0) { | |
22570 | arg1 = (int) SWIG_AsInt(obj0); | |
22571 | if (PyErr_Occurred()) SWIG_fail; | |
22572 | } | |
22573 | if (obj1) { | |
22574 | arg2 = (int) SWIG_AsInt(obj1); | |
22575 | if (PyErr_Occurred()) SWIG_fail; | |
22576 | } | |
22577 | if (obj2) { | |
22578 | arg3 = (int) SWIG_AsInt(obj2); | |
22579 | if (PyErr_Occurred()) SWIG_fail; | |
22580 | } | |
22581 | if (obj3) { | |
22582 | arg4 = (int) SWIG_AsInt(obj3); | |
22583 | if (PyErr_Occurred()) SWIG_fail; | |
22584 | } | |
22585 | { | |
22586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22587 | result = (wxDateSpan *)new wxDateSpan(arg1,arg2,arg3,arg4); | |
22588 | ||
22589 | wxPyEndAllowThreads(__tstate); | |
22590 | if (PyErr_Occurred()) SWIG_fail; | |
22591 | } | |
22592 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1); | |
22593 | return resultobj; | |
22594 | fail: | |
22595 | return NULL; | |
22596 | } | |
22597 | ||
22598 | ||
22599 | static PyObject *_wrap_delete_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22600 | PyObject *resultobj; | |
22601 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22602 | PyObject * obj0 = 0 ; | |
22603 | char *kwnames[] = { | |
22604 | (char *) "self", NULL | |
22605 | }; | |
22606 | ||
22607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateSpan",kwnames,&obj0)) goto fail; | |
22608 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
22609 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22610 | { | |
22611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22612 | delete arg1; | |
22613 | ||
22614 | wxPyEndAllowThreads(__tstate); | |
22615 | if (PyErr_Occurred()) SWIG_fail; | |
22616 | } | |
22617 | Py_INCREF(Py_None); resultobj = Py_None; | |
22618 | return resultobj; | |
22619 | fail: | |
22620 | return NULL; | |
22621 | } | |
22622 | ||
22623 | ||
22624 | static PyObject *_wrap_DateSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22625 | PyObject *resultobj; | |
22626 | int arg1 ; | |
22627 | wxDateSpan result; | |
22628 | PyObject * obj0 = 0 ; | |
22629 | char *kwnames[] = { | |
22630 | (char *) "days", NULL | |
22631 | }; | |
22632 | ||
22633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Days",kwnames,&obj0)) goto fail; | |
22634 | arg1 = (int) SWIG_AsInt(obj0); | |
22635 | if (PyErr_Occurred()) SWIG_fail; | |
22636 | { | |
22637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22638 | result = wxDateSpan::Days(arg1); | |
22639 | ||
22640 | wxPyEndAllowThreads(__tstate); | |
22641 | if (PyErr_Occurred()) SWIG_fail; | |
22642 | } | |
22643 | { | |
22644 | wxDateSpan * resultptr; | |
22645 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
22646 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
22647 | } | |
22648 | return resultobj; | |
22649 | fail: | |
22650 | return NULL; | |
22651 | } | |
22652 | ||
22653 | ||
22654 | static PyObject *_wrap_DateSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22655 | PyObject *resultobj; | |
22656 | wxDateSpan result; | |
22657 | char *kwnames[] = { | |
22658 | NULL | |
22659 | }; | |
22660 | ||
22661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Day",kwnames)) goto fail; | |
22662 | { | |
22663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22664 | result = wxDateSpan::Day(); | |
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_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22681 | PyObject *resultobj; | |
22682 | int arg1 ; | |
22683 | wxDateSpan result; | |
22684 | PyObject * obj0 = 0 ; | |
22685 | char *kwnames[] = { | |
22686 | (char *) "weeks", NULL | |
22687 | }; | |
22688 | ||
22689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Weeks",kwnames,&obj0)) goto fail; | |
22690 | arg1 = (int) SWIG_AsInt(obj0); | |
22691 | if (PyErr_Occurred()) SWIG_fail; | |
22692 | { | |
22693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22694 | result = wxDateSpan::Weeks(arg1); | |
22695 | ||
22696 | wxPyEndAllowThreads(__tstate); | |
22697 | if (PyErr_Occurred()) SWIG_fail; | |
22698 | } | |
22699 | { | |
22700 | wxDateSpan * resultptr; | |
22701 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
22702 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
22703 | } | |
22704 | return resultobj; | |
22705 | fail: | |
22706 | return NULL; | |
22707 | } | |
22708 | ||
22709 | ||
22710 | static PyObject *_wrap_DateSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22711 | PyObject *resultobj; | |
22712 | wxDateSpan result; | |
22713 | char *kwnames[] = { | |
22714 | NULL | |
22715 | }; | |
22716 | ||
22717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Week",kwnames)) goto fail; | |
22718 | { | |
22719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22720 | result = wxDateSpan::Week(); | |
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_Months(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22737 | PyObject *resultobj; | |
22738 | int arg1 ; | |
22739 | wxDateSpan result; | |
22740 | PyObject * obj0 = 0 ; | |
22741 | char *kwnames[] = { | |
22742 | (char *) "mon", NULL | |
22743 | }; | |
22744 | ||
22745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Months",kwnames,&obj0)) goto fail; | |
22746 | arg1 = (int) SWIG_AsInt(obj0); | |
22747 | if (PyErr_Occurred()) SWIG_fail; | |
22748 | { | |
22749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22750 | result = wxDateSpan::Months(arg1); | |
22751 | ||
22752 | wxPyEndAllowThreads(__tstate); | |
22753 | if (PyErr_Occurred()) SWIG_fail; | |
22754 | } | |
22755 | { | |
22756 | wxDateSpan * resultptr; | |
22757 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
22758 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
22759 | } | |
22760 | return resultobj; | |
22761 | fail: | |
22762 | return NULL; | |
22763 | } | |
22764 | ||
22765 | ||
22766 | static PyObject *_wrap_DateSpan_Month(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22767 | PyObject *resultobj; | |
22768 | wxDateSpan result; | |
22769 | char *kwnames[] = { | |
22770 | NULL | |
22771 | }; | |
22772 | ||
22773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Month",kwnames)) goto fail; | |
22774 | { | |
22775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22776 | result = wxDateSpan::Month(); | |
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_Years(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22793 | PyObject *resultobj; | |
22794 | int arg1 ; | |
22795 | wxDateSpan result; | |
22796 | PyObject * obj0 = 0 ; | |
22797 | char *kwnames[] = { | |
22798 | (char *) "years", NULL | |
22799 | }; | |
22800 | ||
22801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Years",kwnames,&obj0)) goto fail; | |
22802 | arg1 = (int) SWIG_AsInt(obj0); | |
22803 | if (PyErr_Occurred()) SWIG_fail; | |
22804 | { | |
22805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22806 | result = wxDateSpan::Years(arg1); | |
22807 | ||
22808 | wxPyEndAllowThreads(__tstate); | |
22809 | if (PyErr_Occurred()) SWIG_fail; | |
22810 | } | |
22811 | { | |
22812 | wxDateSpan * resultptr; | |
22813 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
22814 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
22815 | } | |
22816 | return resultobj; | |
22817 | fail: | |
22818 | return NULL; | |
22819 | } | |
22820 | ||
22821 | ||
22822 | static PyObject *_wrap_DateSpan_Year(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22823 | PyObject *resultobj; | |
22824 | wxDateSpan result; | |
22825 | char *kwnames[] = { | |
22826 | NULL | |
22827 | }; | |
22828 | ||
22829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Year",kwnames)) goto fail; | |
22830 | { | |
22831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22832 | result = wxDateSpan::Year(); | |
22833 | ||
22834 | wxPyEndAllowThreads(__tstate); | |
22835 | if (PyErr_Occurred()) SWIG_fail; | |
22836 | } | |
22837 | { | |
22838 | wxDateSpan * resultptr; | |
22839 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
22840 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
22841 | } | |
22842 | return resultobj; | |
22843 | fail: | |
22844 | return NULL; | |
22845 | } | |
22846 | ||
22847 | ||
22848 | static PyObject *_wrap_DateSpan_SetYears(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22849 | PyObject *resultobj; | |
22850 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22851 | int arg2 ; | |
22852 | wxDateSpan *result; | |
22853 | PyObject * obj0 = 0 ; | |
22854 | PyObject * obj1 = 0 ; | |
22855 | char *kwnames[] = { | |
22856 | (char *) "self",(char *) "n", NULL | |
22857 | }; | |
22858 | ||
22859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetYears",kwnames,&obj0,&obj1)) goto fail; | |
22860 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
22861 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22862 | arg2 = (int) SWIG_AsInt(obj1); | |
22863 | if (PyErr_Occurred()) SWIG_fail; | |
22864 | { | |
22865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22866 | { | |
22867 | wxDateSpan &_result_ref = (arg1)->SetYears(arg2); | |
22868 | result = (wxDateSpan *) &_result_ref; | |
22869 | } | |
22870 | ||
22871 | wxPyEndAllowThreads(__tstate); | |
22872 | if (PyErr_Occurred()) SWIG_fail; | |
22873 | } | |
22874 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
22875 | return resultobj; | |
22876 | fail: | |
22877 | return NULL; | |
22878 | } | |
22879 | ||
22880 | ||
22881 | static PyObject *_wrap_DateSpan_SetMonths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22882 | PyObject *resultobj; | |
22883 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22884 | int arg2 ; | |
22885 | wxDateSpan *result; | |
22886 | PyObject * obj0 = 0 ; | |
22887 | PyObject * obj1 = 0 ; | |
22888 | char *kwnames[] = { | |
22889 | (char *) "self",(char *) "n", NULL | |
22890 | }; | |
22891 | ||
22892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetMonths",kwnames,&obj0,&obj1)) goto fail; | |
22893 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
22894 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22895 | arg2 = (int) SWIG_AsInt(obj1); | |
22896 | if (PyErr_Occurred()) SWIG_fail; | |
22897 | { | |
22898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22899 | { | |
22900 | wxDateSpan &_result_ref = (arg1)->SetMonths(arg2); | |
22901 | result = (wxDateSpan *) &_result_ref; | |
22902 | } | |
22903 | ||
22904 | wxPyEndAllowThreads(__tstate); | |
22905 | if (PyErr_Occurred()) SWIG_fail; | |
22906 | } | |
22907 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
22908 | return resultobj; | |
22909 | fail: | |
22910 | return NULL; | |
22911 | } | |
22912 | ||
22913 | ||
22914 | static PyObject *_wrap_DateSpan_SetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22915 | PyObject *resultobj; | |
22916 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22917 | int arg2 ; | |
22918 | wxDateSpan *result; | |
22919 | PyObject * obj0 = 0 ; | |
22920 | PyObject * obj1 = 0 ; | |
22921 | char *kwnames[] = { | |
22922 | (char *) "self",(char *) "n", NULL | |
22923 | }; | |
22924 | ||
22925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetWeeks",kwnames,&obj0,&obj1)) goto fail; | |
22926 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
22927 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22928 | arg2 = (int) SWIG_AsInt(obj1); | |
22929 | if (PyErr_Occurred()) SWIG_fail; | |
22930 | { | |
22931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22932 | { | |
22933 | wxDateSpan &_result_ref = (arg1)->SetWeeks(arg2); | |
22934 | result = (wxDateSpan *) &_result_ref; | |
22935 | } | |
22936 | ||
22937 | wxPyEndAllowThreads(__tstate); | |
22938 | if (PyErr_Occurred()) SWIG_fail; | |
22939 | } | |
22940 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
22941 | return resultobj; | |
22942 | fail: | |
22943 | return NULL; | |
22944 | } | |
22945 | ||
22946 | ||
22947 | static PyObject *_wrap_DateSpan_SetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22948 | PyObject *resultobj; | |
22949 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22950 | int arg2 ; | |
22951 | wxDateSpan *result; | |
22952 | PyObject * obj0 = 0 ; | |
22953 | PyObject * obj1 = 0 ; | |
22954 | char *kwnames[] = { | |
22955 | (char *) "self",(char *) "n", NULL | |
22956 | }; | |
22957 | ||
22958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetDays",kwnames,&obj0,&obj1)) goto fail; | |
22959 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
22960 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22961 | arg2 = (int) SWIG_AsInt(obj1); | |
22962 | if (PyErr_Occurred()) SWIG_fail; | |
22963 | { | |
22964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22965 | { | |
22966 | wxDateSpan &_result_ref = (arg1)->SetDays(arg2); | |
22967 | result = (wxDateSpan *) &_result_ref; | |
22968 | } | |
22969 | ||
22970 | wxPyEndAllowThreads(__tstate); | |
22971 | if (PyErr_Occurred()) SWIG_fail; | |
22972 | } | |
22973 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
22974 | return resultobj; | |
22975 | fail: | |
22976 | return NULL; | |
22977 | } | |
22978 | ||
22979 | ||
22980 | static PyObject *_wrap_DateSpan_GetYears(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22981 | PyObject *resultobj; | |
22982 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22983 | int result; | |
22984 | PyObject * obj0 = 0 ; | |
22985 | char *kwnames[] = { | |
22986 | (char *) "self", NULL | |
22987 | }; | |
22988 | ||
22989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetYears",kwnames,&obj0)) goto fail; | |
22990 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
22991 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22992 | { | |
22993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22994 | result = (int)((wxDateSpan const *)arg1)->GetYears(); | |
22995 | ||
22996 | wxPyEndAllowThreads(__tstate); | |
22997 | if (PyErr_Occurred()) SWIG_fail; | |
22998 | } | |
22999 | resultobj = SWIG_FromInt((int)result); | |
23000 | return resultobj; | |
23001 | fail: | |
23002 | return NULL; | |
23003 | } | |
23004 | ||
23005 | ||
23006 | static PyObject *_wrap_DateSpan_GetMonths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23007 | PyObject *resultobj; | |
23008 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23009 | int result; | |
23010 | PyObject * obj0 = 0 ; | |
23011 | char *kwnames[] = { | |
23012 | (char *) "self", NULL | |
23013 | }; | |
23014 | ||
23015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetMonths",kwnames,&obj0)) goto fail; | |
23016 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23017 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23018 | { | |
23019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23020 | result = (int)((wxDateSpan const *)arg1)->GetMonths(); | |
23021 | ||
23022 | wxPyEndAllowThreads(__tstate); | |
23023 | if (PyErr_Occurred()) SWIG_fail; | |
23024 | } | |
23025 | resultobj = SWIG_FromInt((int)result); | |
23026 | return resultobj; | |
23027 | fail: | |
23028 | return NULL; | |
23029 | } | |
23030 | ||
23031 | ||
23032 | static PyObject *_wrap_DateSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23033 | PyObject *resultobj; | |
23034 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23035 | int result; | |
23036 | PyObject * obj0 = 0 ; | |
23037 | char *kwnames[] = { | |
23038 | (char *) "self", NULL | |
23039 | }; | |
23040 | ||
23041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetWeeks",kwnames,&obj0)) goto fail; | |
23042 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23043 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23044 | { | |
23045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23046 | result = (int)((wxDateSpan const *)arg1)->GetWeeks(); | |
23047 | ||
23048 | wxPyEndAllowThreads(__tstate); | |
23049 | if (PyErr_Occurred()) SWIG_fail; | |
23050 | } | |
23051 | resultobj = SWIG_FromInt((int)result); | |
23052 | return resultobj; | |
23053 | fail: | |
23054 | return NULL; | |
23055 | } | |
23056 | ||
23057 | ||
23058 | static PyObject *_wrap_DateSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23059 | PyObject *resultobj; | |
23060 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23061 | int result; | |
23062 | PyObject * obj0 = 0 ; | |
23063 | char *kwnames[] = { | |
23064 | (char *) "self", NULL | |
23065 | }; | |
23066 | ||
23067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetDays",kwnames,&obj0)) goto fail; | |
23068 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23069 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23070 | { | |
23071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23072 | result = (int)((wxDateSpan const *)arg1)->GetDays(); | |
23073 | ||
23074 | wxPyEndAllowThreads(__tstate); | |
23075 | if (PyErr_Occurred()) SWIG_fail; | |
23076 | } | |
23077 | resultobj = SWIG_FromInt((int)result); | |
23078 | return resultobj; | |
23079 | fail: | |
23080 | return NULL; | |
23081 | } | |
23082 | ||
23083 | ||
23084 | static PyObject *_wrap_DateSpan_GetTotalDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23085 | PyObject *resultobj; | |
23086 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23087 | int result; | |
23088 | PyObject * obj0 = 0 ; | |
23089 | char *kwnames[] = { | |
23090 | (char *) "self", NULL | |
23091 | }; | |
23092 | ||
23093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetTotalDays",kwnames,&obj0)) goto fail; | |
23094 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23095 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23096 | { | |
23097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23098 | result = (int)((wxDateSpan const *)arg1)->GetTotalDays(); | |
23099 | ||
23100 | wxPyEndAllowThreads(__tstate); | |
23101 | if (PyErr_Occurred()) SWIG_fail; | |
23102 | } | |
23103 | resultobj = SWIG_FromInt((int)result); | |
23104 | return resultobj; | |
23105 | fail: | |
23106 | return NULL; | |
23107 | } | |
23108 | ||
23109 | ||
23110 | static PyObject *_wrap_DateSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23111 | PyObject *resultobj; | |
23112 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23113 | wxDateSpan *arg2 = 0 ; | |
23114 | wxDateSpan *result; | |
23115 | PyObject * obj0 = 0 ; | |
23116 | PyObject * obj1 = 0 ; | |
23117 | char *kwnames[] = { | |
23118 | (char *) "self",(char *) "other", NULL | |
23119 | }; | |
23120 | ||
23121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Add",kwnames,&obj0,&obj1)) goto fail; | |
23122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23124 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23125 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23126 | SWIG_fail; | |
23127 | if (arg2 == NULL) { | |
23128 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23129 | SWIG_fail; | |
23130 | } | |
23131 | { | |
23132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23133 | { | |
23134 | wxDateSpan &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2); | |
23135 | result = (wxDateSpan *) &_result_ref; | |
23136 | } | |
23137 | ||
23138 | wxPyEndAllowThreads(__tstate); | |
23139 | if (PyErr_Occurred()) SWIG_fail; | |
23140 | } | |
23141 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23142 | return resultobj; | |
23143 | fail: | |
23144 | return NULL; | |
23145 | } | |
23146 | ||
23147 | ||
23148 | static PyObject *_wrap_DateSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23149 | PyObject *resultobj; | |
23150 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23151 | wxDateSpan *arg2 = 0 ; | |
23152 | wxDateSpan *result; | |
23153 | PyObject * obj0 = 0 ; | |
23154 | PyObject * obj1 = 0 ; | |
23155 | char *kwnames[] = { | |
23156 | (char *) "self",(char *) "other", NULL | |
23157 | }; | |
23158 | ||
23159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
23160 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23161 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23162 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23163 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23164 | SWIG_fail; | |
23165 | if (arg2 == NULL) { | |
23166 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23167 | SWIG_fail; | |
23168 | } | |
23169 | { | |
23170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23171 | { | |
23172 | wxDateSpan &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2); | |
23173 | result = (wxDateSpan *) &_result_ref; | |
23174 | } | |
23175 | ||
23176 | wxPyEndAllowThreads(__tstate); | |
23177 | if (PyErr_Occurred()) SWIG_fail; | |
23178 | } | |
23179 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23180 | return resultobj; | |
23181 | fail: | |
23182 | return NULL; | |
23183 | } | |
23184 | ||
23185 | ||
23186 | static PyObject *_wrap_DateSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23187 | PyObject *resultobj; | |
23188 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23189 | wxDateSpan *result; | |
23190 | PyObject * obj0 = 0 ; | |
23191 | char *kwnames[] = { | |
23192 | (char *) "self", NULL | |
23193 | }; | |
23194 | ||
23195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Neg",kwnames,&obj0)) goto fail; | |
23196 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23198 | { | |
23199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23200 | { | |
23201 | wxDateSpan &_result_ref = (arg1)->Neg(); | |
23202 | result = (wxDateSpan *) &_result_ref; | |
23203 | } | |
23204 | ||
23205 | wxPyEndAllowThreads(__tstate); | |
23206 | if (PyErr_Occurred()) SWIG_fail; | |
23207 | } | |
23208 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23209 | return resultobj; | |
23210 | fail: | |
23211 | return NULL; | |
23212 | } | |
23213 | ||
23214 | ||
23215 | static PyObject *_wrap_DateSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23216 | PyObject *resultobj; | |
23217 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23218 | int arg2 ; | |
23219 | wxDateSpan *result; | |
23220 | PyObject * obj0 = 0 ; | |
23221 | PyObject * obj1 = 0 ; | |
23222 | char *kwnames[] = { | |
23223 | (char *) "self",(char *) "factor", NULL | |
23224 | }; | |
23225 | ||
23226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Multiply",kwnames,&obj0,&obj1)) goto fail; | |
23227 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23228 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23229 | arg2 = (int) SWIG_AsInt(obj1); | |
23230 | if (PyErr_Occurred()) SWIG_fail; | |
23231 | { | |
23232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23233 | { | |
23234 | wxDateSpan &_result_ref = (arg1)->Multiply(arg2); | |
23235 | result = (wxDateSpan *) &_result_ref; | |
23236 | } | |
23237 | ||
23238 | wxPyEndAllowThreads(__tstate); | |
23239 | if (PyErr_Occurred()) SWIG_fail; | |
23240 | } | |
23241 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23242 | return resultobj; | |
23243 | fail: | |
23244 | return NULL; | |
23245 | } | |
23246 | ||
23247 | ||
23248 | static PyObject *_wrap_DateSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23249 | PyObject *resultobj; | |
23250 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23251 | wxDateSpan *arg2 = 0 ; | |
23252 | wxDateSpan *result; | |
23253 | PyObject * obj0 = 0 ; | |
23254 | PyObject * obj1 = 0 ; | |
23255 | char *kwnames[] = { | |
23256 | (char *) "self",(char *) "other", NULL | |
23257 | }; | |
23258 | ||
23259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
23260 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23262 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23263 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23264 | SWIG_fail; | |
23265 | if (arg2 == NULL) { | |
23266 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23267 | SWIG_fail; | |
23268 | } | |
23269 | { | |
23270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23271 | { | |
23272 | wxDateSpan &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2); | |
23273 | result = (wxDateSpan *) &_result_ref; | |
23274 | } | |
23275 | ||
23276 | wxPyEndAllowThreads(__tstate); | |
23277 | if (PyErr_Occurred()) SWIG_fail; | |
23278 | } | |
23279 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23280 | return resultobj; | |
23281 | fail: | |
23282 | return NULL; | |
23283 | } | |
23284 | ||
23285 | ||
23286 | static PyObject *_wrap_DateSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23287 | PyObject *resultobj; | |
23288 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23289 | wxDateSpan *arg2 = 0 ; | |
23290 | wxDateSpan *result; | |
23291 | PyObject * obj0 = 0 ; | |
23292 | PyObject * obj1 = 0 ; | |
23293 | char *kwnames[] = { | |
23294 | (char *) "self",(char *) "other", NULL | |
23295 | }; | |
23296 | ||
23297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___isub__",kwnames,&obj0,&obj1)) goto fail; | |
23298 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23300 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23301 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23302 | SWIG_fail; | |
23303 | if (arg2 == NULL) { | |
23304 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23305 | SWIG_fail; | |
23306 | } | |
23307 | { | |
23308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23309 | { | |
23310 | wxDateSpan &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2); | |
23311 | result = (wxDateSpan *) &_result_ref; | |
23312 | } | |
23313 | ||
23314 | wxPyEndAllowThreads(__tstate); | |
23315 | if (PyErr_Occurred()) SWIG_fail; | |
23316 | } | |
23317 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23318 | return resultobj; | |
23319 | fail: | |
23320 | return NULL; | |
23321 | } | |
23322 | ||
23323 | ||
23324 | static PyObject *_wrap_DateSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23325 | PyObject *resultobj; | |
23326 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23327 | wxDateSpan *result; | |
23328 | PyObject * obj0 = 0 ; | |
23329 | char *kwnames[] = { | |
23330 | (char *) "self", NULL | |
23331 | }; | |
23332 | ||
23333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan___neg__",kwnames,&obj0)) goto fail; | |
23334 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23335 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23336 | { | |
23337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23338 | { | |
23339 | wxDateSpan &_result_ref = (arg1)->operator -(); | |
23340 | result = (wxDateSpan *) &_result_ref; | |
23341 | } | |
23342 | ||
23343 | wxPyEndAllowThreads(__tstate); | |
23344 | if (PyErr_Occurred()) SWIG_fail; | |
23345 | } | |
23346 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23347 | return resultobj; | |
23348 | fail: | |
23349 | return NULL; | |
23350 | } | |
23351 | ||
23352 | ||
23353 | static PyObject *_wrap_DateSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23354 | PyObject *resultobj; | |
23355 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23356 | int arg2 ; | |
23357 | wxDateSpan *result; | |
23358 | PyObject * obj0 = 0 ; | |
23359 | PyObject * obj1 = 0 ; | |
23360 | char *kwnames[] = { | |
23361 | (char *) "self",(char *) "factor", NULL | |
23362 | }; | |
23363 | ||
23364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___imul__",kwnames,&obj0,&obj1)) goto fail; | |
23365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23367 | arg2 = (int) SWIG_AsInt(obj1); | |
23368 | if (PyErr_Occurred()) SWIG_fail; | |
23369 | { | |
23370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23371 | { | |
23372 | wxDateSpan &_result_ref = (arg1)->operator *=(arg2); | |
23373 | result = (wxDateSpan *) &_result_ref; | |
23374 | } | |
23375 | ||
23376 | wxPyEndAllowThreads(__tstate); | |
23377 | if (PyErr_Occurred()) SWIG_fail; | |
23378 | } | |
23379 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23380 | return resultobj; | |
23381 | fail: | |
23382 | return NULL; | |
23383 | } | |
23384 | ||
23385 | ||
23386 | static PyObject *_wrap_DateSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23387 | PyObject *resultobj; | |
23388 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23389 | wxDateSpan *arg2 = 0 ; | |
23390 | wxDateSpan result; | |
23391 | PyObject * obj0 = 0 ; | |
23392 | PyObject * obj1 = 0 ; | |
23393 | char *kwnames[] = { | |
23394 | (char *) "self",(char *) "other", NULL | |
23395 | }; | |
23396 | ||
23397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___add__",kwnames,&obj0,&obj1)) goto fail; | |
23398 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23399 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23400 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23401 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23402 | SWIG_fail; | |
23403 | if (arg2 == NULL) { | |
23404 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23405 | SWIG_fail; | |
23406 | } | |
23407 | { | |
23408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23409 | result = wxDateSpan___add__(arg1,(wxDateSpan const &)*arg2); | |
23410 | ||
23411 | wxPyEndAllowThreads(__tstate); | |
23412 | if (PyErr_Occurred()) SWIG_fail; | |
23413 | } | |
23414 | { | |
23415 | wxDateSpan * resultptr; | |
23416 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23417 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23418 | } | |
23419 | return resultobj; | |
23420 | fail: | |
23421 | return NULL; | |
23422 | } | |
23423 | ||
23424 | ||
23425 | static PyObject *_wrap_DateSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23426 | PyObject *resultobj; | |
23427 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23428 | wxDateSpan *arg2 = 0 ; | |
23429 | wxDateSpan result; | |
23430 | PyObject * obj0 = 0 ; | |
23431 | PyObject * obj1 = 0 ; | |
23432 | char *kwnames[] = { | |
23433 | (char *) "self",(char *) "other", NULL | |
23434 | }; | |
23435 | ||
23436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___sub__",kwnames,&obj0,&obj1)) goto fail; | |
23437 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23438 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23439 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23440 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23441 | SWIG_fail; | |
23442 | if (arg2 == NULL) { | |
23443 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23444 | SWIG_fail; | |
23445 | } | |
23446 | { | |
23447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23448 | result = wxDateSpan___sub__(arg1,(wxDateSpan const &)*arg2); | |
23449 | ||
23450 | wxPyEndAllowThreads(__tstate); | |
23451 | if (PyErr_Occurred()) SWIG_fail; | |
23452 | } | |
23453 | { | |
23454 | wxDateSpan * resultptr; | |
23455 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23456 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23457 | } | |
23458 | return resultobj; | |
23459 | fail: | |
23460 | return NULL; | |
23461 | } | |
23462 | ||
23463 | ||
23464 | static PyObject *_wrap_DateSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23465 | PyObject *resultobj; | |
23466 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23467 | int arg2 ; | |
23468 | wxDateSpan result; | |
23469 | PyObject * obj0 = 0 ; | |
23470 | PyObject * obj1 = 0 ; | |
23471 | char *kwnames[] = { | |
23472 | (char *) "self",(char *) "n", NULL | |
23473 | }; | |
23474 | ||
23475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___mul__",kwnames,&obj0,&obj1)) goto fail; | |
23476 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23477 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23478 | arg2 = (int) SWIG_AsInt(obj1); | |
23479 | if (PyErr_Occurred()) SWIG_fail; | |
23480 | { | |
23481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23482 | result = wxDateSpan___mul__(arg1,arg2); | |
23483 | ||
23484 | wxPyEndAllowThreads(__tstate); | |
23485 | if (PyErr_Occurred()) SWIG_fail; | |
23486 | } | |
23487 | { | |
23488 | wxDateSpan * resultptr; | |
23489 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23490 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23491 | } | |
23492 | return resultobj; | |
23493 | fail: | |
23494 | return NULL; | |
23495 | } | |
23496 | ||
23497 | ||
23498 | static PyObject *_wrap_DateSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23499 | PyObject *resultobj; | |
23500 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23501 | int arg2 ; | |
23502 | wxDateSpan result; | |
23503 | PyObject * obj0 = 0 ; | |
23504 | PyObject * obj1 = 0 ; | |
23505 | char *kwnames[] = { | |
23506 | (char *) "self",(char *) "n", NULL | |
23507 | }; | |
23508 | ||
23509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___rmul__",kwnames,&obj0,&obj1)) goto fail; | |
23510 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23511 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23512 | arg2 = (int) SWIG_AsInt(obj1); | |
23513 | if (PyErr_Occurred()) SWIG_fail; | |
23514 | { | |
23515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23516 | result = wxDateSpan___rmul__(arg1,arg2); | |
23517 | ||
23518 | wxPyEndAllowThreads(__tstate); | |
23519 | if (PyErr_Occurred()) SWIG_fail; | |
23520 | } | |
23521 | { | |
23522 | wxDateSpan * resultptr; | |
23523 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23524 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23525 | } | |
23526 | return resultobj; | |
23527 | fail: | |
23528 | return NULL; | |
23529 | } | |
23530 | ||
23531 | ||
23532 | static PyObject *_wrap_DateSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23533 | PyObject *resultobj; | |
23534 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23535 | wxDateSpan *arg2 = (wxDateSpan *) 0 ; | |
23536 | bool result; | |
23537 | PyObject * obj0 = 0 ; | |
23538 | PyObject * obj1 = 0 ; | |
23539 | char *kwnames[] = { | |
23540 | (char *) "self",(char *) "other", NULL | |
23541 | }; | |
23542 | ||
23543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
23544 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23545 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23546 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23547 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23548 | { | |
23549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23550 | result = (bool)wxDateSpan___eq__(arg1,(wxDateSpan const *)arg2); | |
23551 | ||
23552 | wxPyEndAllowThreads(__tstate); | |
23553 | if (PyErr_Occurred()) SWIG_fail; | |
23554 | } | |
23555 | { | |
23556 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23557 | } | |
23558 | return resultobj; | |
23559 | fail: | |
23560 | return NULL; | |
23561 | } | |
23562 | ||
23563 | ||
23564 | static PyObject *_wrap_DateSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23565 | PyObject *resultobj; | |
23566 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23567 | wxDateSpan *arg2 = (wxDateSpan *) 0 ; | |
23568 | bool result; | |
23569 | PyObject * obj0 = 0 ; | |
23570 | PyObject * obj1 = 0 ; | |
23571 | char *kwnames[] = { | |
23572 | (char *) "self",(char *) "other", NULL | |
23573 | }; | |
23574 | ||
23575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
23576 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23577 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23578 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23579 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23580 | { | |
23581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23582 | result = (bool)wxDateSpan___ne__(arg1,(wxDateSpan const *)arg2); | |
23583 | ||
23584 | wxPyEndAllowThreads(__tstate); | |
23585 | if (PyErr_Occurred()) SWIG_fail; | |
23586 | } | |
23587 | { | |
23588 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23589 | } | |
23590 | return resultobj; | |
23591 | fail: | |
23592 | return NULL; | |
23593 | } | |
23594 | ||
23595 | ||
23596 | static PyObject * DateSpan_swigregister(PyObject *self, PyObject *args) { | |
23597 | PyObject *obj; | |
23598 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23599 | SWIG_TypeClientData(SWIGTYPE_p_wxDateSpan, obj); | |
23600 | Py_INCREF(obj); | |
23601 | return Py_BuildValue((char *)""); | |
23602 | } | |
23603 | static PyObject *_wrap_GetLocalTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23604 | PyObject *resultobj; | |
23605 | long result; | |
23606 | char *kwnames[] = { | |
23607 | NULL | |
23608 | }; | |
23609 | ||
23610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTime",kwnames)) goto fail; | |
23611 | { | |
23612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23613 | result = (long)wxGetLocalTime(); | |
23614 | ||
23615 | wxPyEndAllowThreads(__tstate); | |
23616 | if (PyErr_Occurred()) SWIG_fail; | |
23617 | } | |
23618 | resultobj = SWIG_FromLong((long)result); | |
23619 | return resultobj; | |
23620 | fail: | |
23621 | return NULL; | |
23622 | } | |
23623 | ||
23624 | ||
23625 | static PyObject *_wrap_GetUTCTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23626 | PyObject *resultobj; | |
23627 | long result; | |
23628 | char *kwnames[] = { | |
23629 | NULL | |
23630 | }; | |
23631 | ||
23632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUTCTime",kwnames)) goto fail; | |
23633 | { | |
23634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23635 | result = (long)wxGetUTCTime(); | |
23636 | ||
23637 | wxPyEndAllowThreads(__tstate); | |
23638 | if (PyErr_Occurred()) SWIG_fail; | |
23639 | } | |
23640 | resultobj = SWIG_FromLong((long)result); | |
23641 | return resultobj; | |
23642 | fail: | |
23643 | return NULL; | |
23644 | } | |
23645 | ||
23646 | ||
23647 | static PyObject *_wrap_GetCurrentTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23648 | PyObject *resultobj; | |
23649 | long result; | |
23650 | char *kwnames[] = { | |
23651 | NULL | |
23652 | }; | |
23653 | ||
23654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentTime",kwnames)) goto fail; | |
23655 | { | |
23656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23657 | result = (long)wxGetCurrentTime(); | |
23658 | ||
23659 | wxPyEndAllowThreads(__tstate); | |
23660 | if (PyErr_Occurred()) SWIG_fail; | |
23661 | } | |
23662 | resultobj = SWIG_FromLong((long)result); | |
23663 | return resultobj; | |
23664 | fail: | |
23665 | return NULL; | |
23666 | } | |
23667 | ||
23668 | ||
23669 | static PyObject *_wrap_GetLocalTimeMillis(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23670 | PyObject *resultobj; | |
23671 | wxLongLong result; | |
23672 | char *kwnames[] = { | |
23673 | NULL | |
23674 | }; | |
23675 | ||
23676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTimeMillis",kwnames)) goto fail; | |
23677 | { | |
23678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23679 | result = wxGetLocalTimeMillis(); | |
23680 | ||
23681 | wxPyEndAllowThreads(__tstate); | |
23682 | if (PyErr_Occurred()) SWIG_fail; | |
23683 | } | |
23684 | { | |
23685 | PyObject *hi, *lo, *shifter, *shifted; | |
23686 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
23687 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
23688 | shifter = PyLong_FromLong(32); | |
23689 | shifted = PyNumber_Lshift(hi, shifter); | |
23690 | resultobj = PyNumber_Or(shifted, lo); | |
23691 | Py_DECREF(hi); | |
23692 | Py_DECREF(lo); | |
23693 | Py_DECREF(shifter); | |
23694 | Py_DECREF(shifted); | |
23695 | } | |
23696 | return resultobj; | |
23697 | fail: | |
23698 | return NULL; | |
23699 | } | |
23700 | ||
23701 | ||
23702 | static int _wrap_DefaultDateTime_set(PyObject *_val) { | |
23703 | PyErr_SetString(PyExc_TypeError,"Variable DefaultDateTime is read-only."); | |
23704 | return 1; | |
23705 | } | |
23706 | ||
23707 | ||
23708 | static PyObject *_wrap_DefaultDateTime_get() { | |
23709 | PyObject *pyobj; | |
23710 | ||
23711 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultDateTime), SWIGTYPE_p_wxDateTime, 0); | |
23712 | return pyobj; | |
23713 | } | |
23714 | ||
23715 | ||
23716 | static PyObject *_wrap_new_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23717 | PyObject *resultobj; | |
23718 | int arg1 ; | |
23719 | wxDataFormat *result; | |
23720 | PyObject * obj0 = 0 ; | |
23721 | char *kwnames[] = { | |
23722 | (char *) "type", NULL | |
23723 | }; | |
23724 | ||
23725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DataFormat",kwnames,&obj0)) goto fail; | |
23726 | arg1 = (wxDataFormatId) SWIG_AsInt(obj0); | |
23727 | if (PyErr_Occurred()) SWIG_fail; | |
23728 | { | |
23729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23730 | result = (wxDataFormat *)new wxDataFormat((wxDataFormatId )arg1); | |
23731 | ||
23732 | wxPyEndAllowThreads(__tstate); | |
23733 | if (PyErr_Occurred()) SWIG_fail; | |
23734 | } | |
23735 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1); | |
23736 | return resultobj; | |
23737 | fail: | |
23738 | return NULL; | |
23739 | } | |
23740 | ||
23741 | ||
23742 | static PyObject *_wrap_new_CustomDataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23743 | PyObject *resultobj; | |
23744 | wxString *arg1 = 0 ; | |
23745 | wxDataFormat *result; | |
23746 | bool temp1 = False ; | |
23747 | PyObject * obj0 = 0 ; | |
23748 | char *kwnames[] = { | |
23749 | (char *) "format", NULL | |
23750 | }; | |
23751 | ||
23752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CustomDataFormat",kwnames,&obj0)) goto fail; | |
23753 | { | |
23754 | arg1 = wxString_in_helper(obj0); | |
23755 | if (arg1 == NULL) SWIG_fail; | |
23756 | temp1 = True; | |
23757 | } | |
23758 | { | |
23759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23760 | result = (wxDataFormat *)new wxDataFormat((wxString const &)*arg1); | |
23761 | ||
23762 | wxPyEndAllowThreads(__tstate); | |
23763 | if (PyErr_Occurred()) SWIG_fail; | |
23764 | } | |
23765 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1); | |
23766 | { | |
23767 | if (temp1) | |
23768 | delete arg1; | |
23769 | } | |
23770 | return resultobj; | |
23771 | fail: | |
23772 | { | |
23773 | if (temp1) | |
23774 | delete arg1; | |
23775 | } | |
23776 | return NULL; | |
23777 | } | |
23778 | ||
23779 | ||
23780 | static PyObject *_wrap_delete_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23781 | PyObject *resultobj; | |
23782 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23783 | PyObject * obj0 = 0 ; | |
23784 | char *kwnames[] = { | |
23785 | (char *) "self", NULL | |
23786 | }; | |
23787 | ||
23788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataFormat",kwnames,&obj0)) goto fail; | |
23789 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
23790 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23791 | { | |
23792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23793 | delete arg1; | |
23794 | ||
23795 | wxPyEndAllowThreads(__tstate); | |
23796 | if (PyErr_Occurred()) SWIG_fail; | |
23797 | } | |
23798 | Py_INCREF(Py_None); resultobj = Py_None; | |
23799 | return resultobj; | |
23800 | fail: | |
23801 | return NULL; | |
23802 | } | |
23803 | ||
23804 | ||
23805 | static PyObject *_wrap_DataFormat___eq____SWIG_0(PyObject *self, PyObject *args) { | |
23806 | PyObject *resultobj; | |
23807 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23808 | int arg2 ; | |
23809 | bool result; | |
23810 | PyObject * obj0 = 0 ; | |
23811 | PyObject * obj1 = 0 ; | |
23812 | ||
23813 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail; | |
23814 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
23815 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23816 | arg2 = (wxDataFormatId) SWIG_AsInt(obj1); | |
23817 | if (PyErr_Occurred()) SWIG_fail; | |
23818 | { | |
23819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23820 | result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormatId )arg2); | |
23821 | ||
23822 | wxPyEndAllowThreads(__tstate); | |
23823 | if (PyErr_Occurred()) SWIG_fail; | |
23824 | } | |
23825 | { | |
23826 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23827 | } | |
23828 | return resultobj; | |
23829 | fail: | |
23830 | return NULL; | |
23831 | } | |
23832 | ||
23833 | ||
23834 | static PyObject *_wrap_DataFormat___ne____SWIG_0(PyObject *self, PyObject *args) { | |
23835 | PyObject *resultobj; | |
23836 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23837 | int arg2 ; | |
23838 | bool result; | |
23839 | PyObject * obj0 = 0 ; | |
23840 | PyObject * obj1 = 0 ; | |
23841 | ||
23842 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail; | |
23843 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
23844 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23845 | arg2 = (wxDataFormatId) SWIG_AsInt(obj1); | |
23846 | if (PyErr_Occurred()) SWIG_fail; | |
23847 | { | |
23848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23849 | result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormatId )arg2); | |
23850 | ||
23851 | wxPyEndAllowThreads(__tstate); | |
23852 | if (PyErr_Occurred()) SWIG_fail; | |
23853 | } | |
23854 | { | |
23855 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23856 | } | |
23857 | return resultobj; | |
23858 | fail: | |
23859 | return NULL; | |
23860 | } | |
23861 | ||
23862 | ||
23863 | static PyObject *_wrap_DataFormat___eq____SWIG_1(PyObject *self, PyObject *args) { | |
23864 | PyObject *resultobj; | |
23865 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23866 | wxDataFormat *arg2 = 0 ; | |
23867 | bool result; | |
23868 | PyObject * obj0 = 0 ; | |
23869 | PyObject * obj1 = 0 ; | |
23870 | ||
23871 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail; | |
23872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
23873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23874 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
23875 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23876 | SWIG_fail; | |
23877 | if (arg2 == NULL) { | |
23878 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23879 | SWIG_fail; | |
23880 | } | |
23881 | { | |
23882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23883 | result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormat const &)*arg2); | |
23884 | ||
23885 | wxPyEndAllowThreads(__tstate); | |
23886 | if (PyErr_Occurred()) SWIG_fail; | |
23887 | } | |
23888 | { | |
23889 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23890 | } | |
23891 | return resultobj; | |
23892 | fail: | |
23893 | return NULL; | |
23894 | } | |
23895 | ||
23896 | ||
23897 | static PyObject *_wrap_DataFormat___eq__(PyObject *self, PyObject *args) { | |
23898 | int argc; | |
23899 | PyObject *argv[3]; | |
23900 | int ii; | |
23901 | ||
23902 | argc = PyObject_Length(args); | |
23903 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
23904 | argv[ii] = PyTuple_GetItem(args,ii); | |
23905 | } | |
23906 | if (argc == 2) { | |
23907 | int _v; | |
23908 | { | |
23909 | void *ptr; | |
23910 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
23911 | _v = 0; | |
23912 | PyErr_Clear(); | |
23913 | } else { | |
23914 | _v = 1; | |
23915 | } | |
23916 | } | |
23917 | if (_v) { | |
23918 | { | |
23919 | void *ptr; | |
23920 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
23921 | _v = 0; | |
23922 | PyErr_Clear(); | |
23923 | } else { | |
23924 | _v = 1; | |
23925 | } | |
23926 | } | |
23927 | if (_v) { | |
23928 | return _wrap_DataFormat___eq____SWIG_1(self,args); | |
23929 | } | |
23930 | } | |
23931 | } | |
23932 | if (argc == 2) { | |
23933 | int _v; | |
23934 | { | |
23935 | void *ptr; | |
23936 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
23937 | _v = 0; | |
23938 | PyErr_Clear(); | |
23939 | } else { | |
23940 | _v = 1; | |
23941 | } | |
23942 | } | |
23943 | if (_v) { | |
23944 | _v = SWIG_CheckInt(argv[1]); | |
23945 | if (_v) { | |
23946 | return _wrap_DataFormat___eq____SWIG_0(self,args); | |
23947 | } | |
23948 | } | |
23949 | } | |
23950 | ||
23951 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___eq__'"); | |
23952 | return NULL; | |
23953 | } | |
23954 | ||
23955 | ||
23956 | static PyObject *_wrap_DataFormat___ne____SWIG_1(PyObject *self, PyObject *args) { | |
23957 | PyObject *resultobj; | |
23958 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23959 | wxDataFormat *arg2 = 0 ; | |
23960 | bool result; | |
23961 | PyObject * obj0 = 0 ; | |
23962 | PyObject * obj1 = 0 ; | |
23963 | ||
23964 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail; | |
23965 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
23966 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23967 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
23968 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23969 | SWIG_fail; | |
23970 | if (arg2 == NULL) { | |
23971 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23972 | SWIG_fail; | |
23973 | } | |
23974 | { | |
23975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23976 | result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormat const &)*arg2); | |
23977 | ||
23978 | wxPyEndAllowThreads(__tstate); | |
23979 | if (PyErr_Occurred()) SWIG_fail; | |
23980 | } | |
23981 | { | |
23982 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23983 | } | |
23984 | return resultobj; | |
23985 | fail: | |
23986 | return NULL; | |
23987 | } | |
23988 | ||
23989 | ||
23990 | static PyObject *_wrap_DataFormat___ne__(PyObject *self, PyObject *args) { | |
23991 | int argc; | |
23992 | PyObject *argv[3]; | |
23993 | int ii; | |
23994 | ||
23995 | argc = PyObject_Length(args); | |
23996 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
23997 | argv[ii] = PyTuple_GetItem(args,ii); | |
23998 | } | |
23999 | if (argc == 2) { | |
24000 | int _v; | |
24001 | { | |
24002 | void *ptr; | |
24003 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
24004 | _v = 0; | |
24005 | PyErr_Clear(); | |
24006 | } else { | |
24007 | _v = 1; | |
24008 | } | |
24009 | } | |
24010 | if (_v) { | |
24011 | { | |
24012 | void *ptr; | |
24013 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
24014 | _v = 0; | |
24015 | PyErr_Clear(); | |
24016 | } else { | |
24017 | _v = 1; | |
24018 | } | |
24019 | } | |
24020 | if (_v) { | |
24021 | return _wrap_DataFormat___ne____SWIG_1(self,args); | |
24022 | } | |
24023 | } | |
24024 | } | |
24025 | if (argc == 2) { | |
24026 | int _v; | |
24027 | { | |
24028 | void *ptr; | |
24029 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
24030 | _v = 0; | |
24031 | PyErr_Clear(); | |
24032 | } else { | |
24033 | _v = 1; | |
24034 | } | |
24035 | } | |
24036 | if (_v) { | |
24037 | _v = SWIG_CheckInt(argv[1]); | |
24038 | if (_v) { | |
24039 | return _wrap_DataFormat___ne____SWIG_0(self,args); | |
24040 | } | |
24041 | } | |
24042 | } | |
24043 | ||
24044 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___ne__'"); | |
24045 | return NULL; | |
24046 | } | |
24047 | ||
24048 | ||
24049 | static PyObject *_wrap_DataFormat_SetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24050 | PyObject *resultobj; | |
24051 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24052 | int arg2 ; | |
24053 | PyObject * obj0 = 0 ; | |
24054 | PyObject * obj1 = 0 ; | |
24055 | char *kwnames[] = { | |
24056 | (char *) "self",(char *) "format", NULL | |
24057 | }; | |
24058 | ||
24059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetType",kwnames,&obj0,&obj1)) goto fail; | |
24060 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24061 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24062 | arg2 = (wxDataFormatId) SWIG_AsInt(obj1); | |
24063 | if (PyErr_Occurred()) SWIG_fail; | |
24064 | { | |
24065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24066 | (arg1)->SetType((wxDataFormatId )arg2); | |
24067 | ||
24068 | wxPyEndAllowThreads(__tstate); | |
24069 | if (PyErr_Occurred()) SWIG_fail; | |
24070 | } | |
24071 | Py_INCREF(Py_None); resultobj = Py_None; | |
24072 | return resultobj; | |
24073 | fail: | |
24074 | return NULL; | |
24075 | } | |
24076 | ||
24077 | ||
24078 | static PyObject *_wrap_DataFormat_GetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24079 | PyObject *resultobj; | |
24080 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24081 | int result; | |
24082 | PyObject * obj0 = 0 ; | |
24083 | char *kwnames[] = { | |
24084 | (char *) "self", NULL | |
24085 | }; | |
24086 | ||
24087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetType",kwnames,&obj0)) goto fail; | |
24088 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24089 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24090 | { | |
24091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24092 | result = (int)((wxDataFormat const *)arg1)->GetType(); | |
24093 | ||
24094 | wxPyEndAllowThreads(__tstate); | |
24095 | if (PyErr_Occurred()) SWIG_fail; | |
24096 | } | |
24097 | resultobj = SWIG_FromInt((int)result); | |
24098 | return resultobj; | |
24099 | fail: | |
24100 | return NULL; | |
24101 | } | |
24102 | ||
24103 | ||
24104 | static PyObject *_wrap_DataFormat_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24105 | PyObject *resultobj; | |
24106 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24107 | wxString result; | |
24108 | PyObject * obj0 = 0 ; | |
24109 | char *kwnames[] = { | |
24110 | (char *) "self", NULL | |
24111 | }; | |
24112 | ||
24113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetId",kwnames,&obj0)) goto fail; | |
24114 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24115 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24116 | { | |
24117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24118 | result = ((wxDataFormat const *)arg1)->GetId(); | |
24119 | ||
24120 | wxPyEndAllowThreads(__tstate); | |
24121 | if (PyErr_Occurred()) SWIG_fail; | |
24122 | } | |
24123 | { | |
24124 | #if wxUSE_UNICODE | |
24125 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24126 | #else | |
24127 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24128 | #endif | |
24129 | } | |
24130 | return resultobj; | |
24131 | fail: | |
24132 | return NULL; | |
24133 | } | |
24134 | ||
24135 | ||
24136 | static PyObject *_wrap_DataFormat_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24137 | PyObject *resultobj; | |
24138 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24139 | wxString *arg2 = 0 ; | |
24140 | bool temp2 = False ; | |
24141 | PyObject * obj0 = 0 ; | |
24142 | PyObject * obj1 = 0 ; | |
24143 | char *kwnames[] = { | |
24144 | (char *) "self",(char *) "format", NULL | |
24145 | }; | |
24146 | ||
24147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetId",kwnames,&obj0,&obj1)) goto fail; | |
24148 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24149 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24150 | { | |
24151 | arg2 = wxString_in_helper(obj1); | |
24152 | if (arg2 == NULL) SWIG_fail; | |
24153 | temp2 = True; | |
24154 | } | |
24155 | { | |
24156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24157 | (arg1)->SetId((wxString const &)*arg2); | |
24158 | ||
24159 | wxPyEndAllowThreads(__tstate); | |
24160 | if (PyErr_Occurred()) SWIG_fail; | |
24161 | } | |
24162 | Py_INCREF(Py_None); resultobj = Py_None; | |
24163 | { | |
24164 | if (temp2) | |
24165 | delete arg2; | |
24166 | } | |
24167 | return resultobj; | |
24168 | fail: | |
24169 | { | |
24170 | if (temp2) | |
24171 | delete arg2; | |
24172 | } | |
24173 | return NULL; | |
24174 | } | |
24175 | ||
24176 | ||
24177 | static PyObject * DataFormat_swigregister(PyObject *self, PyObject *args) { | |
24178 | PyObject *obj; | |
24179 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24180 | SWIG_TypeClientData(SWIGTYPE_p_wxDataFormat, obj); | |
24181 | Py_INCREF(obj); | |
24182 | return Py_BuildValue((char *)""); | |
24183 | } | |
24184 | static int _wrap_FormatInvalid_set(PyObject *_val) { | |
24185 | PyErr_SetString(PyExc_TypeError,"Variable FormatInvalid is read-only."); | |
24186 | return 1; | |
24187 | } | |
24188 | ||
24189 | ||
24190 | static PyObject *_wrap_FormatInvalid_get() { | |
24191 | PyObject *pyobj; | |
24192 | ||
24193 | pyobj = SWIG_NewPointerObj((void *)(&wxFormatInvalid), SWIGTYPE_p_wxDataFormat, 0); | |
24194 | return pyobj; | |
24195 | } | |
24196 | ||
24197 | ||
24198 | static PyObject *_wrap_delete_DataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24199 | PyObject *resultobj; | |
24200 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24201 | PyObject * obj0 = 0 ; | |
24202 | char *kwnames[] = { | |
24203 | (char *) "self", NULL | |
24204 | }; | |
24205 | ||
24206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataObject",kwnames,&obj0)) goto fail; | |
24207 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
24208 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24209 | { | |
24210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24211 | delete arg1; | |
24212 | ||
24213 | wxPyEndAllowThreads(__tstate); | |
24214 | if (PyErr_Occurred()) SWIG_fail; | |
24215 | } | |
24216 | Py_INCREF(Py_None); resultobj = Py_None; | |
24217 | return resultobj; | |
24218 | fail: | |
24219 | return NULL; | |
24220 | } | |
24221 | ||
24222 | ||
24223 | static PyObject *_wrap_DataObject_GetPreferredFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24224 | PyObject *resultobj; | |
24225 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24226 | int arg2 = (int) wxDataObject::Get ; | |
24227 | SwigValueWrapper< wxDataFormat > result; | |
24228 | PyObject * obj0 = 0 ; | |
24229 | PyObject * obj1 = 0 ; | |
24230 | char *kwnames[] = { | |
24231 | (char *) "self",(char *) "dir", NULL | |
24232 | }; | |
24233 | ||
24234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetPreferredFormat",kwnames,&obj0,&obj1)) goto fail; | |
24235 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
24236 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24237 | if (obj1) { | |
24238 | arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1); | |
24239 | if (PyErr_Occurred()) SWIG_fail; | |
24240 | } | |
24241 | { | |
24242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24243 | result = ((wxDataObject const *)arg1)->GetPreferredFormat((wxDataObject::Direction )arg2); | |
24244 | ||
24245 | wxPyEndAllowThreads(__tstate); | |
24246 | if (PyErr_Occurred()) SWIG_fail; | |
24247 | } | |
24248 | { | |
24249 | wxDataFormat * resultptr; | |
24250 | resultptr = new wxDataFormat((wxDataFormat &) result); | |
24251 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDataFormat, 1); | |
24252 | } | |
24253 | return resultobj; | |
24254 | fail: | |
24255 | return NULL; | |
24256 | } | |
24257 | ||
24258 | ||
24259 | static PyObject *_wrap_DataObject_GetFormatCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24260 | PyObject *resultobj; | |
24261 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24262 | int arg2 = (int) wxDataObject::Get ; | |
24263 | size_t result; | |
24264 | PyObject * obj0 = 0 ; | |
24265 | PyObject * obj1 = 0 ; | |
24266 | char *kwnames[] = { | |
24267 | (char *) "self",(char *) "dir", NULL | |
24268 | }; | |
24269 | ||
24270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetFormatCount",kwnames,&obj0,&obj1)) goto fail; | |
24271 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
24272 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24273 | if (obj1) { | |
24274 | arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1); | |
24275 | if (PyErr_Occurred()) SWIG_fail; | |
24276 | } | |
24277 | { | |
24278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24279 | result = (size_t)((wxDataObject const *)arg1)->GetFormatCount((wxDataObject::Direction )arg2); | |
24280 | ||
24281 | wxPyEndAllowThreads(__tstate); | |
24282 | if (PyErr_Occurred()) SWIG_fail; | |
24283 | } | |
24284 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
24285 | return resultobj; | |
24286 | fail: | |
24287 | return NULL; | |
24288 | } | |
24289 | ||
24290 | ||
24291 | static PyObject *_wrap_DataObject_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24292 | PyObject *resultobj; | |
24293 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24294 | wxDataFormat *arg2 = 0 ; | |
24295 | int arg3 = (int) wxDataObject::Get ; | |
24296 | bool result; | |
24297 | PyObject * obj0 = 0 ; | |
24298 | PyObject * obj1 = 0 ; | |
24299 | PyObject * obj2 = 0 ; | |
24300 | char *kwnames[] = { | |
24301 | (char *) "self",(char *) "format",(char *) "dir", NULL | |
24302 | }; | |
24303 | ||
24304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_IsSupported",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
24306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24307 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24308 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24309 | SWIG_fail; | |
24310 | if (arg2 == NULL) { | |
24311 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24312 | SWIG_fail; | |
24313 | } | |
24314 | if (obj2) { | |
24315 | arg3 = (wxDataObject::Direction) SWIG_AsInt(obj2); | |
24316 | if (PyErr_Occurred()) SWIG_fail; | |
24317 | } | |
24318 | { | |
24319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24320 | result = (bool)((wxDataObject const *)arg1)->IsSupported((wxDataFormat const &)*arg2,(wxDataObject::Direction )arg3); | |
24321 | ||
24322 | wxPyEndAllowThreads(__tstate); | |
24323 | if (PyErr_Occurred()) SWIG_fail; | |
24324 | } | |
24325 | { | |
24326 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24327 | } | |
24328 | return resultobj; | |
24329 | fail: | |
24330 | return NULL; | |
24331 | } | |
24332 | ||
24333 | ||
24334 | static PyObject *_wrap_DataObject_GetDataSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24335 | PyObject *resultobj; | |
24336 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24337 | wxDataFormat *arg2 = 0 ; | |
24338 | size_t result; | |
24339 | PyObject * obj0 = 0 ; | |
24340 | PyObject * obj1 = 0 ; | |
24341 | char *kwnames[] = { | |
24342 | (char *) "self",(char *) "format", NULL | |
24343 | }; | |
24344 | ||
24345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataSize",kwnames,&obj0,&obj1)) goto fail; | |
24346 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
24347 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24348 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24349 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24350 | SWIG_fail; | |
24351 | if (arg2 == NULL) { | |
24352 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24353 | SWIG_fail; | |
24354 | } | |
24355 | { | |
24356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24357 | result = (size_t)((wxDataObject const *)arg1)->GetDataSize((wxDataFormat const &)*arg2); | |
24358 | ||
24359 | wxPyEndAllowThreads(__tstate); | |
24360 | if (PyErr_Occurred()) SWIG_fail; | |
24361 | } | |
24362 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
24363 | return resultobj; | |
24364 | fail: | |
24365 | return NULL; | |
24366 | } | |
24367 | ||
24368 | ||
24369 | static PyObject *_wrap_DataObject_GetAllFormats(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24370 | PyObject *resultobj; | |
24371 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24372 | wxDataFormat *arg2 = (wxDataFormat *) 0 ; | |
24373 | int arg3 = (int) wxDataObject::Get ; | |
24374 | PyObject * obj0 = 0 ; | |
24375 | PyObject * obj1 = 0 ; | |
24376 | PyObject * obj2 = 0 ; | |
24377 | char *kwnames[] = { | |
24378 | (char *) "self",(char *) "formats",(char *) "dir", NULL | |
24379 | }; | |
24380 | ||
24381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_GetAllFormats",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24382 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
24383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24384 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24386 | if (obj2) { | |
24387 | arg3 = (wxDataObject::Direction) SWIG_AsInt(obj2); | |
24388 | if (PyErr_Occurred()) SWIG_fail; | |
24389 | } | |
24390 | { | |
24391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24392 | ((wxDataObject const *)arg1)->GetAllFormats(arg2,(wxDataObject::Direction )arg3); | |
24393 | ||
24394 | wxPyEndAllowThreads(__tstate); | |
24395 | if (PyErr_Occurred()) SWIG_fail; | |
24396 | } | |
24397 | Py_INCREF(Py_None); resultobj = Py_None; | |
24398 | return resultobj; | |
24399 | fail: | |
24400 | return NULL; | |
24401 | } | |
24402 | ||
24403 | ||
24404 | static PyObject *_wrap_DataObject_GetDataHere(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24405 | PyObject *resultobj; | |
24406 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24407 | wxDataFormat *arg2 = 0 ; | |
24408 | void *arg3 = (void *) 0 ; | |
24409 | bool result; | |
24410 | PyObject * obj0 = 0 ; | |
24411 | PyObject * obj1 = 0 ; | |
24412 | PyObject * obj2 = 0 ; | |
24413 | char *kwnames[] = { | |
24414 | (char *) "self",(char *) "format",(char *) "buf", NULL | |
24415 | }; | |
24416 | ||
24417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DataObject_GetDataHere",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24418 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
24419 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24420 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24421 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24422 | SWIG_fail; | |
24423 | if (arg2 == NULL) { | |
24424 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24425 | SWIG_fail; | |
24426 | } | |
24427 | if ((SWIG_ConvertPtr(obj2,&arg3,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24428 | { | |
24429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24430 | result = (bool)((wxDataObject const *)arg1)->GetDataHere((wxDataFormat const &)*arg2,arg3); | |
24431 | ||
24432 | wxPyEndAllowThreads(__tstate); | |
24433 | if (PyErr_Occurred()) SWIG_fail; | |
24434 | } | |
24435 | { | |
24436 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24437 | } | |
24438 | return resultobj; | |
24439 | fail: | |
24440 | return NULL; | |
24441 | } | |
24442 | ||
24443 | ||
24444 | static PyObject *_wrap_DataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24445 | PyObject *resultobj; | |
24446 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24447 | wxDataFormat *arg2 = 0 ; | |
24448 | size_t arg3 ; | |
24449 | void *arg4 = (void *) 0 ; | |
24450 | bool result; | |
24451 | PyObject * obj0 = 0 ; | |
24452 | PyObject * obj1 = 0 ; | |
24453 | PyObject * obj2 = 0 ; | |
24454 | PyObject * obj3 = 0 ; | |
24455 | char *kwnames[] = { | |
24456 | (char *) "self",(char *) "format",(char *) "len",(char *) "buf", NULL | |
24457 | }; | |
24458 | ||
24459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DataObject_SetData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
24460 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
24461 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24462 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24463 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24464 | SWIG_fail; | |
24465 | if (arg2 == NULL) { | |
24466 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24467 | SWIG_fail; | |
24468 | } | |
24469 | arg3 = (size_t) SWIG_AsUnsignedLong(obj2); | |
24470 | if (PyErr_Occurred()) SWIG_fail; | |
24471 | if ((SWIG_ConvertPtr(obj3,&arg4,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24472 | { | |
24473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24474 | result = (bool)(arg1)->SetData((wxDataFormat const &)*arg2,arg3,(void const *)arg4); | |
24475 | ||
24476 | wxPyEndAllowThreads(__tstate); | |
24477 | if (PyErr_Occurred()) SWIG_fail; | |
24478 | } | |
24479 | { | |
24480 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24481 | } | |
24482 | return resultobj; | |
24483 | fail: | |
24484 | return NULL; | |
24485 | } | |
24486 | ||
24487 | ||
24488 | static PyObject * DataObject_swigregister(PyObject *self, PyObject *args) { | |
24489 | PyObject *obj; | |
24490 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24491 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObject, obj); | |
24492 | Py_INCREF(obj); | |
24493 | return Py_BuildValue((char *)""); | |
24494 | } | |
24495 | static PyObject *_wrap_new_DataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24496 | PyObject *resultobj; | |
24497 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
24498 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
24499 | wxDataObjectSimple *result; | |
24500 | PyObject * obj0 = 0 ; | |
24501 | char *kwnames[] = { | |
24502 | (char *) "format", NULL | |
24503 | }; | |
24504 | ||
24505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DataObjectSimple",kwnames,&obj0)) goto fail; | |
24506 | if (obj0) { | |
24507 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24508 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24509 | SWIG_fail; | |
24510 | if (arg1 == NULL) { | |
24511 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24512 | SWIG_fail; | |
24513 | } | |
24514 | } | |
24515 | { | |
24516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24517 | result = (wxDataObjectSimple *)new wxDataObjectSimple((wxDataFormat const &)*arg1); | |
24518 | ||
24519 | wxPyEndAllowThreads(__tstate); | |
24520 | if (PyErr_Occurred()) SWIG_fail; | |
24521 | } | |
24522 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectSimple, 1); | |
24523 | return resultobj; | |
24524 | fail: | |
24525 | return NULL; | |
24526 | } | |
24527 | ||
24528 | ||
24529 | static PyObject *_wrap_DataObjectSimple_GetFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24530 | PyObject *resultobj; | |
24531 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
24532 | wxDataFormat *result; | |
24533 | PyObject * obj0 = 0 ; | |
24534 | char *kwnames[] = { | |
24535 | (char *) "self", NULL | |
24536 | }; | |
24537 | ||
24538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetFormat",kwnames,&obj0)) goto fail; | |
24539 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, | |
24540 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24541 | { | |
24542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24543 | { | |
24544 | wxDataFormat const &_result_ref = (arg1)->GetFormat(); | |
24545 | result = (wxDataFormat *) &_result_ref; | |
24546 | } | |
24547 | ||
24548 | wxPyEndAllowThreads(__tstate); | |
24549 | if (PyErr_Occurred()) SWIG_fail; | |
24550 | } | |
24551 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 0); | |
24552 | return resultobj; | |
24553 | fail: | |
24554 | return NULL; | |
24555 | } | |
24556 | ||
24557 | ||
24558 | static PyObject *_wrap_DataObjectSimple_SetFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24559 | PyObject *resultobj; | |
24560 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
24561 | wxDataFormat *arg2 = 0 ; | |
24562 | PyObject * obj0 = 0 ; | |
24563 | PyObject * obj1 = 0 ; | |
24564 | char *kwnames[] = { | |
24565 | (char *) "self",(char *) "format", NULL | |
24566 | }; | |
24567 | ||
24568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetFormat",kwnames,&obj0,&obj1)) goto fail; | |
24569 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, | |
24570 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24571 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24572 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24573 | SWIG_fail; | |
24574 | if (arg2 == NULL) { | |
24575 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24576 | SWIG_fail; | |
24577 | } | |
24578 | { | |
24579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24580 | (arg1)->SetFormat((wxDataFormat const &)*arg2); | |
24581 | ||
24582 | wxPyEndAllowThreads(__tstate); | |
24583 | if (PyErr_Occurred()) SWIG_fail; | |
24584 | } | |
24585 | Py_INCREF(Py_None); resultobj = Py_None; | |
24586 | return resultobj; | |
24587 | fail: | |
24588 | return NULL; | |
24589 | } | |
24590 | ||
24591 | ||
24592 | static PyObject * DataObjectSimple_swigregister(PyObject *self, PyObject *args) { | |
24593 | PyObject *obj; | |
24594 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24595 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectSimple, obj); | |
24596 | Py_INCREF(obj); | |
24597 | return Py_BuildValue((char *)""); | |
24598 | } | |
24599 | static PyObject *_wrap_new_PyDataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24600 | PyObject *resultobj; | |
24601 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
24602 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
24603 | wxPyDataObjectSimple *result; | |
24604 | PyObject * obj0 = 0 ; | |
24605 | char *kwnames[] = { | |
24606 | (char *) "format", NULL | |
24607 | }; | |
24608 | ||
24609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDataObjectSimple",kwnames,&obj0)) goto fail; | |
24610 | if (obj0) { | |
24611 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24612 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24613 | SWIG_fail; | |
24614 | if (arg1 == NULL) { | |
24615 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24616 | SWIG_fail; | |
24617 | } | |
24618 | } | |
24619 | { | |
24620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24621 | result = (wxPyDataObjectSimple *)new wxPyDataObjectSimple((wxDataFormat const &)*arg1); | |
24622 | ||
24623 | wxPyEndAllowThreads(__tstate); | |
24624 | if (PyErr_Occurred()) SWIG_fail; | |
24625 | } | |
24626 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDataObjectSimple, 1); | |
24627 | return resultobj; | |
24628 | fail: | |
24629 | return NULL; | |
24630 | } | |
24631 | ||
24632 | ||
24633 | static PyObject *_wrap_PyDataObjectSimple__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24634 | PyObject *resultobj; | |
24635 | wxPyDataObjectSimple *arg1 = (wxPyDataObjectSimple *) 0 ; | |
24636 | PyObject *arg2 = (PyObject *) 0 ; | |
24637 | PyObject *arg3 = (PyObject *) 0 ; | |
24638 | PyObject * obj0 = 0 ; | |
24639 | PyObject * obj1 = 0 ; | |
24640 | PyObject * obj2 = 0 ; | |
24641 | char *kwnames[] = { | |
24642 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
24643 | }; | |
24644 | ||
24645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDataObjectSimple__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDataObjectSimple, | |
24647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24648 | arg2 = obj1; | |
24649 | arg3 = obj2; | |
24650 | { | |
24651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24652 | (arg1)->_setCallbackInfo(arg2,arg3); | |
24653 | ||
24654 | wxPyEndAllowThreads(__tstate); | |
24655 | if (PyErr_Occurred()) SWIG_fail; | |
24656 | } | |
24657 | Py_INCREF(Py_None); resultobj = Py_None; | |
24658 | return resultobj; | |
24659 | fail: | |
24660 | return NULL; | |
24661 | } | |
24662 | ||
24663 | ||
24664 | static PyObject * PyDataObjectSimple_swigregister(PyObject *self, PyObject *args) { | |
24665 | PyObject *obj; | |
24666 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24667 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDataObjectSimple, obj); | |
24668 | Py_INCREF(obj); | |
24669 | return Py_BuildValue((char *)""); | |
24670 | } | |
24671 | static PyObject *_wrap_new_DataObjectComposite(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24672 | PyObject *resultobj; | |
24673 | wxDataObjectComposite *result; | |
24674 | char *kwnames[] = { | |
24675 | NULL | |
24676 | }; | |
24677 | ||
24678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DataObjectComposite",kwnames)) goto fail; | |
24679 | { | |
24680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24681 | result = (wxDataObjectComposite *)new wxDataObjectComposite(); | |
24682 | ||
24683 | wxPyEndAllowThreads(__tstate); | |
24684 | if (PyErr_Occurred()) SWIG_fail; | |
24685 | } | |
24686 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectComposite, 1); | |
24687 | return resultobj; | |
24688 | fail: | |
24689 | return NULL; | |
24690 | } | |
24691 | ||
24692 | ||
24693 | static PyObject *_wrap_DataObjectComposite_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24694 | PyObject *resultobj; | |
24695 | wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ; | |
24696 | wxDataObjectSimple *arg2 = (wxDataObjectSimple *) 0 ; | |
24697 | int arg3 = (int) False ; | |
24698 | PyObject * obj0 = 0 ; | |
24699 | PyObject * obj1 = 0 ; | |
24700 | PyObject * obj2 = 0 ; | |
24701 | char *kwnames[] = { | |
24702 | (char *) "self",(char *) "dataObject",(char *) "preferred", NULL | |
24703 | }; | |
24704 | ||
24705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObjectComposite_Add",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24706 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectComposite, | |
24707 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24708 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObjectSimple, | |
24709 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
24710 | if (obj2) { | |
24711 | arg3 = (int) SWIG_AsInt(obj2); | |
24712 | if (PyErr_Occurred()) SWIG_fail; | |
24713 | } | |
24714 | { | |
24715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24716 | (arg1)->Add(arg2,arg3); | |
24717 | ||
24718 | wxPyEndAllowThreads(__tstate); | |
24719 | if (PyErr_Occurred()) SWIG_fail; | |
24720 | } | |
24721 | Py_INCREF(Py_None); resultobj = Py_None; | |
24722 | return resultobj; | |
24723 | fail: | |
24724 | return NULL; | |
24725 | } | |
24726 | ||
24727 | ||
24728 | static PyObject * DataObjectComposite_swigregister(PyObject *self, PyObject *args) { | |
24729 | PyObject *obj; | |
24730 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24731 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectComposite, obj); | |
24732 | Py_INCREF(obj); | |
24733 | return Py_BuildValue((char *)""); | |
24734 | } | |
24735 | static PyObject *_wrap_new_TextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24736 | PyObject *resultobj; | |
24737 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
24738 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
24739 | wxTextDataObject *result; | |
24740 | bool temp1 = False ; | |
24741 | PyObject * obj0 = 0 ; | |
24742 | char *kwnames[] = { | |
24743 | (char *) "text", NULL | |
24744 | }; | |
24745 | ||
24746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TextDataObject",kwnames,&obj0)) goto fail; | |
24747 | if (obj0) { | |
24748 | { | |
24749 | arg1 = wxString_in_helper(obj0); | |
24750 | if (arg1 == NULL) SWIG_fail; | |
24751 | temp1 = True; | |
24752 | } | |
24753 | } | |
24754 | { | |
24755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24756 | result = (wxTextDataObject *)new wxTextDataObject((wxString const &)*arg1); | |
24757 | ||
24758 | wxPyEndAllowThreads(__tstate); | |
24759 | if (PyErr_Occurred()) SWIG_fail; | |
24760 | } | |
24761 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextDataObject, 1); | |
24762 | { | |
24763 | if (temp1) | |
24764 | delete arg1; | |
24765 | } | |
24766 | return resultobj; | |
24767 | fail: | |
24768 | { | |
24769 | if (temp1) | |
24770 | delete arg1; | |
24771 | } | |
24772 | return NULL; | |
24773 | } | |
24774 | ||
24775 | ||
24776 | static PyObject *_wrap_TextDataObject_GetTextLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24777 | PyObject *resultobj; | |
24778 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
24779 | size_t result; | |
24780 | PyObject * obj0 = 0 ; | |
24781 | char *kwnames[] = { | |
24782 | (char *) "self", NULL | |
24783 | }; | |
24784 | ||
24785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetTextLength",kwnames,&obj0)) goto fail; | |
24786 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject, | |
24787 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24788 | { | |
24789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24790 | result = (size_t)(arg1)->GetTextLength(); | |
24791 | ||
24792 | wxPyEndAllowThreads(__tstate); | |
24793 | if (PyErr_Occurred()) SWIG_fail; | |
24794 | } | |
24795 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
24796 | return resultobj; | |
24797 | fail: | |
24798 | return NULL; | |
24799 | } | |
24800 | ||
24801 | ||
24802 | static PyObject *_wrap_TextDataObject_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24803 | PyObject *resultobj; | |
24804 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
24805 | wxString result; | |
24806 | PyObject * obj0 = 0 ; | |
24807 | char *kwnames[] = { | |
24808 | (char *) "self", NULL | |
24809 | }; | |
24810 | ||
24811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetText",kwnames,&obj0)) goto fail; | |
24812 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject, | |
24813 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24814 | { | |
24815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24816 | result = (arg1)->GetText(); | |
24817 | ||
24818 | wxPyEndAllowThreads(__tstate); | |
24819 | if (PyErr_Occurred()) SWIG_fail; | |
24820 | } | |
24821 | { | |
24822 | #if wxUSE_UNICODE | |
24823 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24824 | #else | |
24825 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24826 | #endif | |
24827 | } | |
24828 | return resultobj; | |
24829 | fail: | |
24830 | return NULL; | |
24831 | } | |
24832 | ||
24833 | ||
24834 | static PyObject *_wrap_TextDataObject_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24835 | PyObject *resultobj; | |
24836 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
24837 | wxString *arg2 = 0 ; | |
24838 | bool temp2 = False ; | |
24839 | PyObject * obj0 = 0 ; | |
24840 | PyObject * obj1 = 0 ; | |
24841 | char *kwnames[] = { | |
24842 | (char *) "self",(char *) "text", NULL | |
24843 | }; | |
24844 | ||
24845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextDataObject_SetText",kwnames,&obj0,&obj1)) goto fail; | |
24846 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject, | |
24847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24848 | { | |
24849 | arg2 = wxString_in_helper(obj1); | |
24850 | if (arg2 == NULL) SWIG_fail; | |
24851 | temp2 = True; | |
24852 | } | |
24853 | { | |
24854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24855 | (arg1)->SetText((wxString const &)*arg2); | |
24856 | ||
24857 | wxPyEndAllowThreads(__tstate); | |
24858 | if (PyErr_Occurred()) SWIG_fail; | |
24859 | } | |
24860 | Py_INCREF(Py_None); resultobj = Py_None; | |
24861 | { | |
24862 | if (temp2) | |
24863 | delete arg2; | |
24864 | } | |
24865 | return resultobj; | |
24866 | fail: | |
24867 | { | |
24868 | if (temp2) | |
24869 | delete arg2; | |
24870 | } | |
24871 | return NULL; | |
24872 | } | |
24873 | ||
24874 | ||
24875 | static PyObject * TextDataObject_swigregister(PyObject *self, PyObject *args) { | |
24876 | PyObject *obj; | |
24877 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24878 | SWIG_TypeClientData(SWIGTYPE_p_wxTextDataObject, obj); | |
24879 | Py_INCREF(obj); | |
24880 | return Py_BuildValue((char *)""); | |
24881 | } | |
24882 | static PyObject *_wrap_new_PyTextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24883 | PyObject *resultobj; | |
24884 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
24885 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
24886 | wxPyTextDataObject *result; | |
24887 | bool temp1 = False ; | |
24888 | PyObject * obj0 = 0 ; | |
24889 | char *kwnames[] = { | |
24890 | (char *) "text", NULL | |
24891 | }; | |
24892 | ||
24893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyTextDataObject",kwnames,&obj0)) goto fail; | |
24894 | if (obj0) { | |
24895 | { | |
24896 | arg1 = wxString_in_helper(obj0); | |
24897 | if (arg1 == NULL) SWIG_fail; | |
24898 | temp1 = True; | |
24899 | } | |
24900 | } | |
24901 | { | |
24902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24903 | result = (wxPyTextDataObject *)new wxPyTextDataObject((wxString const &)*arg1); | |
24904 | ||
24905 | wxPyEndAllowThreads(__tstate); | |
24906 | if (PyErr_Occurred()) SWIG_fail; | |
24907 | } | |
24908 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDataObject, 1); | |
24909 | { | |
24910 | if (temp1) | |
24911 | delete arg1; | |
24912 | } | |
24913 | return resultobj; | |
24914 | fail: | |
24915 | { | |
24916 | if (temp1) | |
24917 | delete arg1; | |
24918 | } | |
24919 | return NULL; | |
24920 | } | |
24921 | ||
24922 | ||
24923 | static PyObject *_wrap_PyTextDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24924 | PyObject *resultobj; | |
24925 | wxPyTextDataObject *arg1 = (wxPyTextDataObject *) 0 ; | |
24926 | PyObject *arg2 = (PyObject *) 0 ; | |
24927 | PyObject *arg3 = (PyObject *) 0 ; | |
24928 | PyObject * obj0 = 0 ; | |
24929 | PyObject * obj1 = 0 ; | |
24930 | PyObject * obj2 = 0 ; | |
24931 | char *kwnames[] = { | |
24932 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
24933 | }; | |
24934 | ||
24935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24936 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDataObject, | |
24937 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24938 | arg2 = obj1; | |
24939 | arg3 = obj2; | |
24940 | { | |
24941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24942 | (arg1)->_setCallbackInfo(arg2,arg3); | |
24943 | ||
24944 | wxPyEndAllowThreads(__tstate); | |
24945 | if (PyErr_Occurred()) SWIG_fail; | |
24946 | } | |
24947 | Py_INCREF(Py_None); resultobj = Py_None; | |
24948 | return resultobj; | |
24949 | fail: | |
24950 | return NULL; | |
24951 | } | |
24952 | ||
24953 | ||
24954 | static PyObject * PyTextDataObject_swigregister(PyObject *self, PyObject *args) { | |
24955 | PyObject *obj; | |
24956 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24957 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDataObject, obj); | |
24958 | Py_INCREF(obj); | |
24959 | return Py_BuildValue((char *)""); | |
24960 | } | |
24961 | static PyObject *_wrap_new_BitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24962 | PyObject *resultobj; | |
24963 | wxBitmap const &arg1_defvalue = wxNullBitmap ; | |
24964 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
24965 | wxBitmapDataObject *result; | |
24966 | PyObject * obj0 = 0 ; | |
24967 | char *kwnames[] = { | |
24968 | (char *) "bitmap", NULL | |
24969 | }; | |
24970 | ||
24971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BitmapDataObject",kwnames,&obj0)) goto fail; | |
24972 | if (obj0) { | |
24973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
24974 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24975 | SWIG_fail; | |
24976 | if (arg1 == NULL) { | |
24977 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24978 | SWIG_fail; | |
24979 | } | |
24980 | } | |
24981 | { | |
24982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24983 | result = (wxBitmapDataObject *)new wxBitmapDataObject((wxBitmap const &)*arg1); | |
24984 | ||
24985 | wxPyEndAllowThreads(__tstate); | |
24986 | if (PyErr_Occurred()) SWIG_fail; | |
24987 | } | |
24988 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapDataObject, 1); | |
24989 | return resultobj; | |
24990 | fail: | |
24991 | return NULL; | |
24992 | } | |
24993 | ||
24994 | ||
24995 | static PyObject *_wrap_BitmapDataObject_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24996 | PyObject *resultobj; | |
24997 | wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ; | |
24998 | wxBitmap result; | |
24999 | PyObject * obj0 = 0 ; | |
25000 | char *kwnames[] = { | |
25001 | (char *) "self", NULL | |
25002 | }; | |
25003 | ||
25004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapDataObject_GetBitmap",kwnames,&obj0)) goto fail; | |
25005 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject, | |
25006 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25007 | { | |
25008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25009 | result = ((wxBitmapDataObject const *)arg1)->GetBitmap(); | |
25010 | ||
25011 | wxPyEndAllowThreads(__tstate); | |
25012 | if (PyErr_Occurred()) SWIG_fail; | |
25013 | } | |
25014 | { | |
25015 | wxBitmap * resultptr; | |
25016 | resultptr = new wxBitmap((wxBitmap &) result); | |
25017 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
25018 | } | |
25019 | return resultobj; | |
25020 | fail: | |
25021 | return NULL; | |
25022 | } | |
25023 | ||
25024 | ||
25025 | static PyObject *_wrap_BitmapDataObject_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25026 | PyObject *resultobj; | |
25027 | wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ; | |
25028 | wxBitmap *arg2 = 0 ; | |
25029 | PyObject * obj0 = 0 ; | |
25030 | PyObject * obj1 = 0 ; | |
25031 | char *kwnames[] = { | |
25032 | (char *) "self",(char *) "bitmap", NULL | |
25033 | }; | |
25034 | ||
25035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapDataObject_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
25036 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject, | |
25037 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25038 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
25039 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25040 | SWIG_fail; | |
25041 | if (arg2 == NULL) { | |
25042 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25043 | SWIG_fail; | |
25044 | } | |
25045 | { | |
25046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25047 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
25048 | ||
25049 | wxPyEndAllowThreads(__tstate); | |
25050 | if (PyErr_Occurred()) SWIG_fail; | |
25051 | } | |
25052 | Py_INCREF(Py_None); resultobj = Py_None; | |
25053 | return resultobj; | |
25054 | fail: | |
25055 | return NULL; | |
25056 | } | |
25057 | ||
25058 | ||
25059 | static PyObject * BitmapDataObject_swigregister(PyObject *self, PyObject *args) { | |
25060 | PyObject *obj; | |
25061 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25062 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmapDataObject, obj); | |
25063 | Py_INCREF(obj); | |
25064 | return Py_BuildValue((char *)""); | |
25065 | } | |
25066 | static PyObject *_wrap_new_PyBitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25067 | PyObject *resultobj; | |
25068 | wxBitmap const &arg1_defvalue = wxNullBitmap ; | |
25069 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
25070 | wxPyBitmapDataObject *result; | |
25071 | PyObject * obj0 = 0 ; | |
25072 | char *kwnames[] = { | |
25073 | (char *) "bitmap", NULL | |
25074 | }; | |
25075 | ||
25076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyBitmapDataObject",kwnames,&obj0)) goto fail; | |
25077 | if (obj0) { | |
25078 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
25079 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25080 | SWIG_fail; | |
25081 | if (arg1 == NULL) { | |
25082 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25083 | SWIG_fail; | |
25084 | } | |
25085 | } | |
25086 | { | |
25087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25088 | result = (wxPyBitmapDataObject *)new wxPyBitmapDataObject((wxBitmap const &)*arg1); | |
25089 | ||
25090 | wxPyEndAllowThreads(__tstate); | |
25091 | if (PyErr_Occurred()) SWIG_fail; | |
25092 | } | |
25093 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyBitmapDataObject, 1); | |
25094 | return resultobj; | |
25095 | fail: | |
25096 | return NULL; | |
25097 | } | |
25098 | ||
25099 | ||
25100 | static PyObject *_wrap_PyBitmapDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25101 | PyObject *resultobj; | |
25102 | wxPyBitmapDataObject *arg1 = (wxPyBitmapDataObject *) 0 ; | |
25103 | PyObject *arg2 = (PyObject *) 0 ; | |
25104 | PyObject *arg3 = (PyObject *) 0 ; | |
25105 | PyObject * obj0 = 0 ; | |
25106 | PyObject * obj1 = 0 ; | |
25107 | PyObject * obj2 = 0 ; | |
25108 | char *kwnames[] = { | |
25109 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25110 | }; | |
25111 | ||
25112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25113 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapDataObject, | |
25114 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25115 | arg2 = obj1; | |
25116 | arg3 = obj2; | |
25117 | { | |
25118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25119 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25120 | ||
25121 | wxPyEndAllowThreads(__tstate); | |
25122 | if (PyErr_Occurred()) SWIG_fail; | |
25123 | } | |
25124 | Py_INCREF(Py_None); resultobj = Py_None; | |
25125 | return resultobj; | |
25126 | fail: | |
25127 | return NULL; | |
25128 | } | |
25129 | ||
25130 | ||
25131 | static PyObject * PyBitmapDataObject_swigregister(PyObject *self, PyObject *args) { | |
25132 | PyObject *obj; | |
25133 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25134 | SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapDataObject, obj); | |
25135 | Py_INCREF(obj); | |
25136 | return Py_BuildValue((char *)""); | |
25137 | } | |
25138 | static PyObject *_wrap_new_FileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25139 | PyObject *resultobj; | |
25140 | wxFileDataObject *result; | |
25141 | char *kwnames[] = { | |
25142 | NULL | |
25143 | }; | |
25144 | ||
25145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDataObject",kwnames)) goto fail; | |
25146 | { | |
25147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25148 | result = (wxFileDataObject *)new wxFileDataObject(); | |
25149 | ||
25150 | wxPyEndAllowThreads(__tstate); | |
25151 | if (PyErr_Occurred()) SWIG_fail; | |
25152 | } | |
25153 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileDataObject, 1); | |
25154 | return resultobj; | |
25155 | fail: | |
25156 | return NULL; | |
25157 | } | |
25158 | ||
25159 | ||
25160 | static PyObject *_wrap_FileDataObject_GetFilenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25161 | PyObject *resultobj; | |
25162 | wxFileDataObject *arg1 = (wxFileDataObject *) 0 ; | |
25163 | wxArrayString *result; | |
25164 | PyObject * obj0 = 0 ; | |
25165 | char *kwnames[] = { | |
25166 | (char *) "self", NULL | |
25167 | }; | |
25168 | ||
25169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDataObject_GetFilenames",kwnames,&obj0)) goto fail; | |
25170 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject, | |
25171 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25172 | { | |
25173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25174 | { | |
25175 | wxArrayString const &_result_ref = (arg1)->GetFilenames(); | |
25176 | result = (wxArrayString *) &_result_ref; | |
25177 | } | |
25178 | ||
25179 | wxPyEndAllowThreads(__tstate); | |
25180 | if (PyErr_Occurred()) SWIG_fail; | |
25181 | } | |
25182 | { | |
25183 | resultobj = wxArrayString2PyList_helper(*result); | |
25184 | } | |
25185 | return resultobj; | |
25186 | fail: | |
25187 | return NULL; | |
25188 | } | |
25189 | ||
25190 | ||
25191 | static PyObject *_wrap_FileDataObject_AddFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25192 | PyObject *resultobj; | |
25193 | wxFileDataObject *arg1 = (wxFileDataObject *) 0 ; | |
25194 | wxString *arg2 = 0 ; | |
25195 | bool temp2 = False ; | |
25196 | PyObject * obj0 = 0 ; | |
25197 | PyObject * obj1 = 0 ; | |
25198 | char *kwnames[] = { | |
25199 | (char *) "self",(char *) "filename", NULL | |
25200 | }; | |
25201 | ||
25202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDataObject_AddFile",kwnames,&obj0,&obj1)) goto fail; | |
25203 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject, | |
25204 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25205 | { | |
25206 | arg2 = wxString_in_helper(obj1); | |
25207 | if (arg2 == NULL) SWIG_fail; | |
25208 | temp2 = True; | |
25209 | } | |
25210 | { | |
25211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25212 | (arg1)->AddFile((wxString const &)*arg2); | |
25213 | ||
25214 | wxPyEndAllowThreads(__tstate); | |
25215 | if (PyErr_Occurred()) SWIG_fail; | |
25216 | } | |
25217 | Py_INCREF(Py_None); resultobj = Py_None; | |
25218 | { | |
25219 | if (temp2) | |
25220 | delete arg2; | |
25221 | } | |
25222 | return resultobj; | |
25223 | fail: | |
25224 | { | |
25225 | if (temp2) | |
25226 | delete arg2; | |
25227 | } | |
25228 | return NULL; | |
25229 | } | |
25230 | ||
25231 | ||
25232 | static PyObject * FileDataObject_swigregister(PyObject *self, PyObject *args) { | |
25233 | PyObject *obj; | |
25234 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25235 | SWIG_TypeClientData(SWIGTYPE_p_wxFileDataObject, obj); | |
25236 | Py_INCREF(obj); | |
25237 | return Py_BuildValue((char *)""); | |
25238 | } | |
25239 | static PyObject *_wrap_new_CustomDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25240 | PyObject *resultobj; | |
25241 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
25242 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
25243 | wxCustomDataObject *result; | |
25244 | PyObject * obj0 = 0 ; | |
25245 | char *kwnames[] = { | |
25246 | (char *) "format", NULL | |
25247 | }; | |
25248 | ||
25249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CustomDataObject",kwnames,&obj0)) goto fail; | |
25250 | if (obj0) { | |
25251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
25252 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25253 | SWIG_fail; | |
25254 | if (arg1 == NULL) { | |
25255 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25256 | SWIG_fail; | |
25257 | } | |
25258 | } | |
25259 | { | |
25260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25261 | result = (wxCustomDataObject *)new wxCustomDataObject((wxDataFormat const &)*arg1); | |
25262 | ||
25263 | wxPyEndAllowThreads(__tstate); | |
25264 | if (PyErr_Occurred()) SWIG_fail; | |
25265 | } | |
25266 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCustomDataObject, 1); | |
25267 | return resultobj; | |
25268 | fail: | |
25269 | return NULL; | |
25270 | } | |
25271 | ||
25272 | ||
25273 | static PyObject *_wrap_CustomDataObject_TakeData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25274 | PyObject *resultobj; | |
25275 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
25276 | PyObject *arg2 = (PyObject *) 0 ; | |
25277 | PyObject * obj0 = 0 ; | |
25278 | PyObject * obj1 = 0 ; | |
25279 | char *kwnames[] = { | |
25280 | (char *) "self",(char *) "data", NULL | |
25281 | }; | |
25282 | ||
25283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_TakeData",kwnames,&obj0,&obj1)) goto fail; | |
25284 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, | |
25285 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25286 | arg2 = obj1; | |
25287 | { | |
25288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25289 | wxCustomDataObject_TakeData(arg1,arg2); | |
25290 | ||
25291 | wxPyEndAllowThreads(__tstate); | |
25292 | if (PyErr_Occurred()) SWIG_fail; | |
25293 | } | |
25294 | Py_INCREF(Py_None); resultobj = Py_None; | |
25295 | return resultobj; | |
25296 | fail: | |
25297 | return NULL; | |
25298 | } | |
25299 | ||
25300 | ||
25301 | static PyObject *_wrap_CustomDataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25302 | PyObject *resultobj; | |
25303 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
25304 | PyObject *arg2 = (PyObject *) 0 ; | |
25305 | bool result; | |
25306 | PyObject * obj0 = 0 ; | |
25307 | PyObject * obj1 = 0 ; | |
25308 | char *kwnames[] = { | |
25309 | (char *) "self",(char *) "data", NULL | |
25310 | }; | |
25311 | ||
25312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_SetData",kwnames,&obj0,&obj1)) goto fail; | |
25313 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, | |
25314 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25315 | arg2 = obj1; | |
25316 | { | |
25317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25318 | result = (bool)wxCustomDataObject_SetData(arg1,arg2); | |
25319 | ||
25320 | wxPyEndAllowThreads(__tstate); | |
25321 | if (PyErr_Occurred()) SWIG_fail; | |
25322 | } | |
25323 | { | |
25324 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25325 | } | |
25326 | return resultobj; | |
25327 | fail: | |
25328 | return NULL; | |
25329 | } | |
25330 | ||
25331 | ||
25332 | static PyObject *_wrap_CustomDataObject_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25333 | PyObject *resultobj; | |
25334 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
25335 | size_t result; | |
25336 | PyObject * obj0 = 0 ; | |
25337 | char *kwnames[] = { | |
25338 | (char *) "self", NULL | |
25339 | }; | |
25340 | ||
25341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetSize",kwnames,&obj0)) goto fail; | |
25342 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, | |
25343 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25344 | { | |
25345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25346 | result = (size_t)(arg1)->GetSize(); | |
25347 | ||
25348 | wxPyEndAllowThreads(__tstate); | |
25349 | if (PyErr_Occurred()) SWIG_fail; | |
25350 | } | |
25351 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
25352 | return resultobj; | |
25353 | fail: | |
25354 | return NULL; | |
25355 | } | |
25356 | ||
25357 | ||
25358 | static PyObject *_wrap_CustomDataObject_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25359 | PyObject *resultobj; | |
25360 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
25361 | PyObject *result; | |
25362 | PyObject * obj0 = 0 ; | |
25363 | char *kwnames[] = { | |
25364 | (char *) "self", NULL | |
25365 | }; | |
25366 | ||
25367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetData",kwnames,&obj0)) goto fail; | |
25368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, | |
25369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25370 | { | |
25371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25372 | result = (PyObject *)wxCustomDataObject_GetData(arg1); | |
25373 | ||
25374 | wxPyEndAllowThreads(__tstate); | |
25375 | if (PyErr_Occurred()) SWIG_fail; | |
25376 | } | |
25377 | resultobj = result; | |
25378 | return resultobj; | |
25379 | fail: | |
25380 | return NULL; | |
25381 | } | |
25382 | ||
25383 | ||
25384 | static PyObject * CustomDataObject_swigregister(PyObject *self, PyObject *args) { | |
25385 | PyObject *obj; | |
25386 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25387 | SWIG_TypeClientData(SWIGTYPE_p_wxCustomDataObject, obj); | |
25388 | Py_INCREF(obj); | |
25389 | return Py_BuildValue((char *)""); | |
25390 | } | |
25391 | static PyObject *_wrap_new_URLDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25392 | PyObject *resultobj; | |
25393 | wxURLDataObject *result; | |
25394 | char *kwnames[] = { | |
25395 | NULL | |
25396 | }; | |
25397 | ||
25398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_URLDataObject",kwnames)) goto fail; | |
25399 | { | |
25400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25401 | result = (wxURLDataObject *)new wxURLDataObject(); | |
25402 | ||
25403 | wxPyEndAllowThreads(__tstate); | |
25404 | if (PyErr_Occurred()) SWIG_fail; | |
25405 | } | |
25406 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxURLDataObject, 1); | |
25407 | return resultobj; | |
25408 | fail: | |
25409 | return NULL; | |
25410 | } | |
25411 | ||
25412 | ||
25413 | static PyObject *_wrap_URLDataObject_GetURL(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25414 | PyObject *resultobj; | |
25415 | wxURLDataObject *arg1 = (wxURLDataObject *) 0 ; | |
25416 | wxString result; | |
25417 | PyObject * obj0 = 0 ; | |
25418 | char *kwnames[] = { | |
25419 | (char *) "self", NULL | |
25420 | }; | |
25421 | ||
25422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:URLDataObject_GetURL",kwnames,&obj0)) goto fail; | |
25423 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject, | |
25424 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25425 | { | |
25426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25427 | result = (arg1)->GetURL(); | |
25428 | ||
25429 | wxPyEndAllowThreads(__tstate); | |
25430 | if (PyErr_Occurred()) SWIG_fail; | |
25431 | } | |
25432 | { | |
25433 | #if wxUSE_UNICODE | |
25434 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
25435 | #else | |
25436 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
25437 | #endif | |
25438 | } | |
25439 | return resultobj; | |
25440 | fail: | |
25441 | return NULL; | |
25442 | } | |
25443 | ||
25444 | ||
25445 | static PyObject *_wrap_URLDataObject_SetURL(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25446 | PyObject *resultobj; | |
25447 | wxURLDataObject *arg1 = (wxURLDataObject *) 0 ; | |
25448 | wxString *arg2 = 0 ; | |
25449 | bool temp2 = False ; | |
25450 | PyObject * obj0 = 0 ; | |
25451 | PyObject * obj1 = 0 ; | |
25452 | char *kwnames[] = { | |
25453 | (char *) "self",(char *) "url", NULL | |
25454 | }; | |
25455 | ||
25456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:URLDataObject_SetURL",kwnames,&obj0,&obj1)) goto fail; | |
25457 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject, | |
25458 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25459 | { | |
25460 | arg2 = wxString_in_helper(obj1); | |
25461 | if (arg2 == NULL) SWIG_fail; | |
25462 | temp2 = True; | |
25463 | } | |
25464 | { | |
25465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25466 | (arg1)->SetURL((wxString const &)*arg2); | |
25467 | ||
25468 | wxPyEndAllowThreads(__tstate); | |
25469 | if (PyErr_Occurred()) SWIG_fail; | |
25470 | } | |
25471 | Py_INCREF(Py_None); resultobj = Py_None; | |
25472 | { | |
25473 | if (temp2) | |
25474 | delete arg2; | |
25475 | } | |
25476 | return resultobj; | |
25477 | fail: | |
25478 | { | |
25479 | if (temp2) | |
25480 | delete arg2; | |
25481 | } | |
25482 | return NULL; | |
25483 | } | |
25484 | ||
25485 | ||
25486 | static PyObject * URLDataObject_swigregister(PyObject *self, PyObject *args) { | |
25487 | PyObject *obj; | |
25488 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25489 | SWIG_TypeClientData(SWIGTYPE_p_wxURLDataObject, obj); | |
25490 | Py_INCREF(obj); | |
25491 | return Py_BuildValue((char *)""); | |
25492 | } | |
25493 | static PyObject *_wrap_new_MetafileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25494 | PyObject *resultobj; | |
25495 | wxMetafileDataObject *result; | |
25496 | char *kwnames[] = { | |
25497 | NULL | |
25498 | }; | |
25499 | ||
25500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MetafileDataObject",kwnames)) goto fail; | |
25501 | { | |
25502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25503 | result = (wxMetafileDataObject *)new wxMetafileDataObject(); | |
25504 | ||
25505 | wxPyEndAllowThreads(__tstate); | |
25506 | if (PyErr_Occurred()) SWIG_fail; | |
25507 | } | |
25508 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetafileDataObject, 1); | |
25509 | return resultobj; | |
25510 | fail: | |
25511 | return NULL; | |
25512 | } | |
25513 | ||
25514 | ||
25515 | static PyObject *_wrap_MetafileDataObject_SetMetafile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25516 | PyObject *resultobj; | |
25517 | wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ; | |
25518 | wxMetafile *arg2 = 0 ; | |
25519 | PyObject * obj0 = 0 ; | |
25520 | PyObject * obj1 = 0 ; | |
25521 | char *kwnames[] = { | |
25522 | (char *) "self",(char *) "metafile", NULL | |
25523 | }; | |
25524 | ||
25525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MetafileDataObject_SetMetafile",kwnames,&obj0,&obj1)) goto fail; | |
25526 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetafileDataObject, | |
25527 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25528 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMetafile, | |
25529 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25530 | SWIG_fail; | |
25531 | if (arg2 == NULL) { | |
25532 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25533 | SWIG_fail; | |
25534 | } | |
25535 | { | |
25536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25537 | (arg1)->SetMetafile((wxMetafile const &)*arg2); | |
25538 | ||
25539 | wxPyEndAllowThreads(__tstate); | |
25540 | if (PyErr_Occurred()) SWIG_fail; | |
25541 | } | |
25542 | Py_INCREF(Py_None); resultobj = Py_None; | |
25543 | return resultobj; | |
25544 | fail: | |
25545 | return NULL; | |
25546 | } | |
25547 | ||
25548 | ||
25549 | static PyObject *_wrap_MetafileDataObject_GetMetafile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25550 | PyObject *resultobj; | |
25551 | wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ; | |
25552 | wxMetafile result; | |
25553 | PyObject * obj0 = 0 ; | |
25554 | char *kwnames[] = { | |
25555 | (char *) "self", NULL | |
25556 | }; | |
25557 | ||
25558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetafileDataObject_GetMetafile",kwnames,&obj0)) goto fail; | |
25559 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetafileDataObject, | |
25560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25561 | { | |
25562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25563 | result = ((wxMetafileDataObject const *)arg1)->GetMetafile(); | |
25564 | ||
25565 | wxPyEndAllowThreads(__tstate); | |
25566 | if (PyErr_Occurred()) SWIG_fail; | |
25567 | } | |
25568 | { | |
25569 | wxMetafile * resultptr; | |
25570 | resultptr = new wxMetafile((wxMetafile &) result); | |
25571 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxMetafile, 1); | |
25572 | } | |
25573 | return resultobj; | |
25574 | fail: | |
25575 | return NULL; | |
25576 | } | |
25577 | ||
25578 | ||
25579 | static PyObject * MetafileDataObject_swigregister(PyObject *self, PyObject *args) { | |
25580 | PyObject *obj; | |
25581 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25582 | SWIG_TypeClientData(SWIGTYPE_p_wxMetafileDataObject, obj); | |
25583 | Py_INCREF(obj); | |
25584 | return Py_BuildValue((char *)""); | |
25585 | } | |
25586 | static PyObject *_wrap_IsDragResultOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25587 | PyObject *resultobj; | |
25588 | int arg1 ; | |
25589 | bool result; | |
25590 | PyObject * obj0 = 0 ; | |
25591 | char *kwnames[] = { | |
25592 | (char *) "res", NULL | |
25593 | }; | |
25594 | ||
25595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsDragResultOk",kwnames,&obj0)) goto fail; | |
25596 | arg1 = (wxDragResult) SWIG_AsInt(obj0); | |
25597 | if (PyErr_Occurred()) SWIG_fail; | |
25598 | { | |
25599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25600 | result = (bool)wxIsDragResultOk((wxDragResult )arg1); | |
25601 | ||
25602 | wxPyEndAllowThreads(__tstate); | |
25603 | if (PyErr_Occurred()) SWIG_fail; | |
25604 | } | |
25605 | { | |
25606 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25607 | } | |
25608 | return resultobj; | |
25609 | fail: | |
25610 | return NULL; | |
25611 | } | |
25612 | ||
25613 | ||
25614 | static PyObject *_wrap_new_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25615 | PyObject *resultobj; | |
25616 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25617 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
25618 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
25619 | wxCursor const &arg3_defvalue = wxNullCursor ; | |
25620 | wxCursor *arg3 = (wxCursor *) &arg3_defvalue ; | |
25621 | wxCursor const &arg4_defvalue = wxNullCursor ; | |
25622 | wxCursor *arg4 = (wxCursor *) &arg4_defvalue ; | |
25623 | wxPyDropSource *result; | |
25624 | PyObject * obj0 = 0 ; | |
25625 | PyObject * obj1 = 0 ; | |
25626 | PyObject * obj2 = 0 ; | |
25627 | PyObject * obj3 = 0 ; | |
25628 | char *kwnames[] = { | |
25629 | (char *) "win",(char *) "copy",(char *) "move",(char *) "none", NULL | |
25630 | }; | |
25631 | ||
25632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DropSource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
25633 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25634 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25635 | if (obj1) { | |
25636 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
25637 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25638 | SWIG_fail; | |
25639 | if (arg2 == NULL) { | |
25640 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25641 | SWIG_fail; | |
25642 | } | |
25643 | } | |
25644 | if (obj2) { | |
25645 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor, | |
25646 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25647 | SWIG_fail; | |
25648 | if (arg3 == NULL) { | |
25649 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25650 | SWIG_fail; | |
25651 | } | |
25652 | } | |
25653 | if (obj3) { | |
25654 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxCursor, | |
25655 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25656 | SWIG_fail; | |
25657 | if (arg4 == NULL) { | |
25658 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25659 | SWIG_fail; | |
25660 | } | |
25661 | } | |
25662 | { | |
25663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25664 | result = (wxPyDropSource *)new wxPyDropSource(arg1,(wxCursor const &)*arg2,(wxCursor const &)*arg3,(wxCursor const &)*arg4); | |
25665 | ||
25666 | wxPyEndAllowThreads(__tstate); | |
25667 | if (PyErr_Occurred()) SWIG_fail; | |
25668 | } | |
25669 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropSource, 1); | |
25670 | return resultobj; | |
25671 | fail: | |
25672 | return NULL; | |
25673 | } | |
25674 | ||
25675 | ||
25676 | static PyObject *_wrap_DropSource__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25677 | PyObject *resultobj; | |
25678 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25679 | PyObject *arg2 = (PyObject *) 0 ; | |
25680 | PyObject *arg3 = (PyObject *) 0 ; | |
25681 | int arg4 ; | |
25682 | PyObject * obj0 = 0 ; | |
25683 | PyObject * obj1 = 0 ; | |
25684 | PyObject * obj2 = 0 ; | |
25685 | PyObject * obj3 = 0 ; | |
25686 | char *kwnames[] = { | |
25687 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
25688 | }; | |
25689 | ||
25690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropSource__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
25691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
25692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25693 | arg2 = obj1; | |
25694 | arg3 = obj2; | |
25695 | arg4 = (int) SWIG_AsInt(obj3); | |
25696 | if (PyErr_Occurred()) SWIG_fail; | |
25697 | { | |
25698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25699 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
25700 | ||
25701 | wxPyEndAllowThreads(__tstate); | |
25702 | if (PyErr_Occurred()) SWIG_fail; | |
25703 | } | |
25704 | Py_INCREF(Py_None); resultobj = Py_None; | |
25705 | return resultobj; | |
25706 | fail: | |
25707 | return NULL; | |
25708 | } | |
25709 | ||
25710 | ||
25711 | static PyObject *_wrap_delete_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25712 | PyObject *resultobj; | |
25713 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25714 | PyObject * obj0 = 0 ; | |
25715 | char *kwnames[] = { | |
25716 | (char *) "self", NULL | |
25717 | }; | |
25718 | ||
25719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropSource",kwnames,&obj0)) goto fail; | |
25720 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
25721 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25722 | { | |
25723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25724 | delete arg1; | |
25725 | ||
25726 | wxPyEndAllowThreads(__tstate); | |
25727 | if (PyErr_Occurred()) SWIG_fail; | |
25728 | } | |
25729 | Py_INCREF(Py_None); resultobj = Py_None; | |
25730 | return resultobj; | |
25731 | fail: | |
25732 | return NULL; | |
25733 | } | |
25734 | ||
25735 | ||
25736 | static PyObject *_wrap_DropSource_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25737 | PyObject *resultobj; | |
25738 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25739 | wxDataObject *arg2 = 0 ; | |
25740 | PyObject * obj0 = 0 ; | |
25741 | PyObject * obj1 = 0 ; | |
25742 | char *kwnames[] = { | |
25743 | (char *) "self",(char *) "data", NULL | |
25744 | }; | |
25745 | ||
25746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_SetData",kwnames,&obj0,&obj1)) goto fail; | |
25747 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
25748 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25749 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
25750 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25751 | SWIG_fail; | |
25752 | if (arg2 == NULL) { | |
25753 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25754 | SWIG_fail; | |
25755 | } | |
25756 | { | |
25757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25758 | (arg1)->SetData(*arg2); | |
25759 | ||
25760 | wxPyEndAllowThreads(__tstate); | |
25761 | if (PyErr_Occurred()) SWIG_fail; | |
25762 | } | |
25763 | Py_INCREF(Py_None); resultobj = Py_None; | |
25764 | return resultobj; | |
25765 | fail: | |
25766 | return NULL; | |
25767 | } | |
25768 | ||
25769 | ||
25770 | static PyObject *_wrap_DropSource_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25771 | PyObject *resultobj; | |
25772 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25773 | wxDataObject *result; | |
25774 | PyObject * obj0 = 0 ; | |
25775 | char *kwnames[] = { | |
25776 | (char *) "self", NULL | |
25777 | }; | |
25778 | ||
25779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropSource_GetDataObject",kwnames,&obj0)) goto fail; | |
25780 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
25781 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25782 | { | |
25783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25784 | result = (wxDataObject *)(arg1)->GetDataObject(); | |
25785 | ||
25786 | wxPyEndAllowThreads(__tstate); | |
25787 | if (PyErr_Occurred()) SWIG_fail; | |
25788 | } | |
25789 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0); | |
25790 | return resultobj; | |
25791 | fail: | |
25792 | return NULL; | |
25793 | } | |
25794 | ||
25795 | ||
25796 | static PyObject *_wrap_DropSource_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25797 | PyObject *resultobj; | |
25798 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25799 | int arg2 ; | |
25800 | wxCursor *arg3 = 0 ; | |
25801 | PyObject * obj0 = 0 ; | |
25802 | PyObject * obj1 = 0 ; | |
25803 | PyObject * obj2 = 0 ; | |
25804 | char *kwnames[] = { | |
25805 | (char *) "self",(char *) "res",(char *) "cursor", NULL | |
25806 | }; | |
25807 | ||
25808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropSource_SetCursor",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25809 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
25810 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25811 | arg2 = (wxDragResult) SWIG_AsInt(obj1); | |
25812 | if (PyErr_Occurred()) SWIG_fail; | |
25813 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor, | |
25814 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25815 | SWIG_fail; | |
25816 | if (arg3 == NULL) { | |
25817 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25818 | SWIG_fail; | |
25819 | } | |
25820 | { | |
25821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25822 | (arg1)->SetCursor((wxDragResult )arg2,(wxCursor const &)*arg3); | |
25823 | ||
25824 | wxPyEndAllowThreads(__tstate); | |
25825 | if (PyErr_Occurred()) SWIG_fail; | |
25826 | } | |
25827 | Py_INCREF(Py_None); resultobj = Py_None; | |
25828 | return resultobj; | |
25829 | fail: | |
25830 | return NULL; | |
25831 | } | |
25832 | ||
25833 | ||
25834 | static PyObject *_wrap_DropSource_DoDragDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25835 | PyObject *resultobj; | |
25836 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25837 | int arg2 = (int) wxDrag_CopyOnly ; | |
25838 | int result; | |
25839 | PyObject * obj0 = 0 ; | |
25840 | PyObject * obj1 = 0 ; | |
25841 | char *kwnames[] = { | |
25842 | (char *) "self",(char *) "flags", NULL | |
25843 | }; | |
25844 | ||
25845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DropSource_DoDragDrop",kwnames,&obj0,&obj1)) goto fail; | |
25846 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
25847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25848 | if (obj1) { | |
25849 | arg2 = (int) SWIG_AsInt(obj1); | |
25850 | if (PyErr_Occurred()) SWIG_fail; | |
25851 | } | |
25852 | { | |
25853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25854 | result = (int)(arg1)->DoDragDrop(arg2); | |
25855 | ||
25856 | wxPyEndAllowThreads(__tstate); | |
25857 | if (PyErr_Occurred()) SWIG_fail; | |
25858 | } | |
25859 | resultobj = SWIG_FromInt((int)result); | |
25860 | return resultobj; | |
25861 | fail: | |
25862 | return NULL; | |
25863 | } | |
25864 | ||
25865 | ||
25866 | static PyObject *_wrap_DropSource_base_GiveFeedback(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25867 | PyObject *resultobj; | |
25868 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25869 | int arg2 ; | |
25870 | bool result; | |
25871 | PyObject * obj0 = 0 ; | |
25872 | PyObject * obj1 = 0 ; | |
25873 | char *kwnames[] = { | |
25874 | (char *) "self",(char *) "effect", NULL | |
25875 | }; | |
25876 | ||
25877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_base_GiveFeedback",kwnames,&obj0,&obj1)) goto fail; | |
25878 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
25879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25880 | arg2 = (wxDragResult) SWIG_AsInt(obj1); | |
25881 | if (PyErr_Occurred()) SWIG_fail; | |
25882 | { | |
25883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25884 | result = (bool)(arg1)->base_GiveFeedback((wxDragResult )arg2); | |
25885 | ||
25886 | wxPyEndAllowThreads(__tstate); | |
25887 | if (PyErr_Occurred()) SWIG_fail; | |
25888 | } | |
25889 | { | |
25890 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25891 | } | |
25892 | return resultobj; | |
25893 | fail: | |
25894 | return NULL; | |
25895 | } | |
25896 | ||
25897 | ||
25898 | static PyObject * DropSource_swigregister(PyObject *self, PyObject *args) { | |
25899 | PyObject *obj; | |
25900 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25901 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDropSource, obj); | |
25902 | Py_INCREF(obj); | |
25903 | return Py_BuildValue((char *)""); | |
25904 | } | |
25905 | static PyObject *_wrap_new_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25906 | PyObject *resultobj; | |
25907 | wxDataObject *arg1 = (wxDataObject *) NULL ; | |
25908 | wxPyDropTarget *result; | |
25909 | PyObject * obj0 = 0 ; | |
25910 | char *kwnames[] = { | |
25911 | (char *) "dataObject", NULL | |
25912 | }; | |
25913 | ||
25914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DropTarget",kwnames,&obj0)) goto fail; | |
25915 | if (obj0) { | |
25916 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
25917 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
25918 | } | |
25919 | { | |
25920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25921 | result = (wxPyDropTarget *)new wxPyDropTarget(arg1); | |
25922 | ||
25923 | wxPyEndAllowThreads(__tstate); | |
25924 | if (PyErr_Occurred()) SWIG_fail; | |
25925 | } | |
25926 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 1); | |
25927 | return resultobj; | |
25928 | fail: | |
25929 | return NULL; | |
25930 | } | |
25931 | ||
25932 | ||
25933 | static PyObject *_wrap_DropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25934 | PyObject *resultobj; | |
25935 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
25936 | PyObject *arg2 = (PyObject *) 0 ; | |
25937 | PyObject *arg3 = (PyObject *) 0 ; | |
25938 | PyObject * obj0 = 0 ; | |
25939 | PyObject * obj1 = 0 ; | |
25940 | PyObject * obj2 = 0 ; | |
25941 | char *kwnames[] = { | |
25942 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25943 | }; | |
25944 | ||
25945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25946 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
25947 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25948 | arg2 = obj1; | |
25949 | arg3 = obj2; | |
25950 | { | |
25951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25952 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25953 | ||
25954 | wxPyEndAllowThreads(__tstate); | |
25955 | if (PyErr_Occurred()) SWIG_fail; | |
25956 | } | |
25957 | Py_INCREF(Py_None); resultobj = Py_None; | |
25958 | return resultobj; | |
25959 | fail: | |
25960 | return NULL; | |
25961 | } | |
25962 | ||
25963 | ||
25964 | static PyObject *_wrap_delete_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25965 | PyObject *resultobj; | |
25966 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
25967 | PyObject * obj0 = 0 ; | |
25968 | char *kwnames[] = { | |
25969 | (char *) "self", NULL | |
25970 | }; | |
25971 | ||
25972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropTarget",kwnames,&obj0)) goto fail; | |
25973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
25974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25975 | { | |
25976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25977 | delete arg1; | |
25978 | ||
25979 | wxPyEndAllowThreads(__tstate); | |
25980 | if (PyErr_Occurred()) SWIG_fail; | |
25981 | } | |
25982 | Py_INCREF(Py_None); resultobj = Py_None; | |
25983 | return resultobj; | |
25984 | fail: | |
25985 | return NULL; | |
25986 | } | |
25987 | ||
25988 | ||
25989 | static PyObject *_wrap_DropTarget_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25990 | PyObject *resultobj; | |
25991 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
25992 | wxDataObject *result; | |
25993 | PyObject * obj0 = 0 ; | |
25994 | char *kwnames[] = { | |
25995 | (char *) "self", NULL | |
25996 | }; | |
25997 | ||
25998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDataObject",kwnames,&obj0)) goto fail; | |
25999 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26000 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26001 | { | |
26002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26003 | result = (wxDataObject *)(arg1)->GetDataObject(); | |
26004 | ||
26005 | wxPyEndAllowThreads(__tstate); | |
26006 | if (PyErr_Occurred()) SWIG_fail; | |
26007 | } | |
26008 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0); | |
26009 | return resultobj; | |
26010 | fail: | |
26011 | return NULL; | |
26012 | } | |
26013 | ||
26014 | ||
26015 | static PyObject *_wrap_DropTarget_SetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26016 | PyObject *resultobj; | |
26017 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26018 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
26019 | PyObject * obj0 = 0 ; | |
26020 | PyObject * obj1 = 0 ; | |
26021 | char *kwnames[] = { | |
26022 | (char *) "self",(char *) "dataObject", NULL | |
26023 | }; | |
26024 | ||
26025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDataObject",kwnames,&obj0,&obj1)) goto fail; | |
26026 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26027 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26028 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
26029 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
26030 | { | |
26031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26032 | (arg1)->SetDataObject(arg2); | |
26033 | ||
26034 | wxPyEndAllowThreads(__tstate); | |
26035 | if (PyErr_Occurred()) SWIG_fail; | |
26036 | } | |
26037 | Py_INCREF(Py_None); resultobj = Py_None; | |
26038 | return resultobj; | |
26039 | fail: | |
26040 | return NULL; | |
26041 | } | |
26042 | ||
26043 | ||
26044 | static PyObject *_wrap_DropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26045 | PyObject *resultobj; | |
26046 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26047 | int arg2 ; | |
26048 | int arg3 ; | |
26049 | int arg4 ; | |
26050 | int result; | |
26051 | PyObject * obj0 = 0 ; | |
26052 | PyObject * obj1 = 0 ; | |
26053 | PyObject * obj2 = 0 ; | |
26054 | PyObject * obj3 = 0 ; | |
26055 | char *kwnames[] = { | |
26056 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26057 | }; | |
26058 | ||
26059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26060 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26061 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26062 | arg2 = (int) SWIG_AsInt(obj1); | |
26063 | if (PyErr_Occurred()) SWIG_fail; | |
26064 | arg3 = (int) SWIG_AsInt(obj2); | |
26065 | if (PyErr_Occurred()) SWIG_fail; | |
26066 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26067 | if (PyErr_Occurred()) SWIG_fail; | |
26068 | { | |
26069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26070 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
26071 | ||
26072 | wxPyEndAllowThreads(__tstate); | |
26073 | if (PyErr_Occurred()) SWIG_fail; | |
26074 | } | |
26075 | resultobj = SWIG_FromInt((int)result); | |
26076 | return resultobj; | |
26077 | fail: | |
26078 | return NULL; | |
26079 | } | |
26080 | ||
26081 | ||
26082 | static PyObject *_wrap_DropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26083 | PyObject *resultobj; | |
26084 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26085 | int arg2 ; | |
26086 | int arg3 ; | |
26087 | int arg4 ; | |
26088 | int result; | |
26089 | PyObject * obj0 = 0 ; | |
26090 | PyObject * obj1 = 0 ; | |
26091 | PyObject * obj2 = 0 ; | |
26092 | PyObject * obj3 = 0 ; | |
26093 | char *kwnames[] = { | |
26094 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26095 | }; | |
26096 | ||
26097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26100 | arg2 = (int) SWIG_AsInt(obj1); | |
26101 | if (PyErr_Occurred()) SWIG_fail; | |
26102 | arg3 = (int) SWIG_AsInt(obj2); | |
26103 | if (PyErr_Occurred()) SWIG_fail; | |
26104 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26105 | if (PyErr_Occurred()) SWIG_fail; | |
26106 | { | |
26107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26108 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
26109 | ||
26110 | wxPyEndAllowThreads(__tstate); | |
26111 | if (PyErr_Occurred()) SWIG_fail; | |
26112 | } | |
26113 | resultobj = SWIG_FromInt((int)result); | |
26114 | return resultobj; | |
26115 | fail: | |
26116 | return NULL; | |
26117 | } | |
26118 | ||
26119 | ||
26120 | static PyObject *_wrap_DropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26121 | PyObject *resultobj; | |
26122 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26123 | PyObject * obj0 = 0 ; | |
26124 | char *kwnames[] = { | |
26125 | (char *) "self", NULL | |
26126 | }; | |
26127 | ||
26128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
26129 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26130 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26131 | { | |
26132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26133 | (arg1)->base_OnLeave(); | |
26134 | ||
26135 | wxPyEndAllowThreads(__tstate); | |
26136 | if (PyErr_Occurred()) SWIG_fail; | |
26137 | } | |
26138 | Py_INCREF(Py_None); resultobj = Py_None; | |
26139 | return resultobj; | |
26140 | fail: | |
26141 | return NULL; | |
26142 | } | |
26143 | ||
26144 | ||
26145 | static PyObject *_wrap_DropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26146 | PyObject *resultobj; | |
26147 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26148 | int arg2 ; | |
26149 | int arg3 ; | |
26150 | bool result; | |
26151 | PyObject * obj0 = 0 ; | |
26152 | PyObject * obj1 = 0 ; | |
26153 | PyObject * obj2 = 0 ; | |
26154 | char *kwnames[] = { | |
26155 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26156 | }; | |
26157 | ||
26158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26159 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26160 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26161 | arg2 = (int) SWIG_AsInt(obj1); | |
26162 | if (PyErr_Occurred()) SWIG_fail; | |
26163 | arg3 = (int) SWIG_AsInt(obj2); | |
26164 | if (PyErr_Occurred()) SWIG_fail; | |
26165 | { | |
26166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26167 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
26168 | ||
26169 | wxPyEndAllowThreads(__tstate); | |
26170 | if (PyErr_Occurred()) SWIG_fail; | |
26171 | } | |
26172 | { | |
26173 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26174 | } | |
26175 | return resultobj; | |
26176 | fail: | |
26177 | return NULL; | |
26178 | } | |
26179 | ||
26180 | ||
26181 | static PyObject *_wrap_DropTarget_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26182 | PyObject *resultobj; | |
26183 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26184 | bool result; | |
26185 | PyObject * obj0 = 0 ; | |
26186 | char *kwnames[] = { | |
26187 | (char *) "self", NULL | |
26188 | }; | |
26189 | ||
26190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetData",kwnames,&obj0)) goto fail; | |
26191 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26192 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26193 | { | |
26194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26195 | result = (bool)(arg1)->GetData(); | |
26196 | ||
26197 | wxPyEndAllowThreads(__tstate); | |
26198 | if (PyErr_Occurred()) SWIG_fail; | |
26199 | } | |
26200 | { | |
26201 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26202 | } | |
26203 | return resultobj; | |
26204 | fail: | |
26205 | return NULL; | |
26206 | } | |
26207 | ||
26208 | ||
26209 | static PyObject * DropTarget_swigregister(PyObject *self, PyObject *args) { | |
26210 | PyObject *obj; | |
26211 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26212 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDropTarget, obj); | |
26213 | Py_INCREF(obj); | |
26214 | return Py_BuildValue((char *)""); | |
26215 | } | |
26216 | static PyObject *_wrap_new_TextDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26217 | PyObject *resultobj; | |
26218 | wxPyTextDropTarget *result; | |
26219 | char *kwnames[] = { | |
26220 | NULL | |
26221 | }; | |
26222 | ||
26223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TextDropTarget",kwnames)) goto fail; | |
26224 | { | |
26225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26226 | result = (wxPyTextDropTarget *)new wxPyTextDropTarget(); | |
26227 | ||
26228 | wxPyEndAllowThreads(__tstate); | |
26229 | if (PyErr_Occurred()) SWIG_fail; | |
26230 | } | |
26231 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDropTarget, 1); | |
26232 | return resultobj; | |
26233 | fail: | |
26234 | return NULL; | |
26235 | } | |
26236 | ||
26237 | ||
26238 | static PyObject *_wrap_TextDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26239 | PyObject *resultobj; | |
26240 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26241 | PyObject *arg2 = (PyObject *) 0 ; | |
26242 | PyObject *arg3 = (PyObject *) 0 ; | |
26243 | PyObject * obj0 = 0 ; | |
26244 | PyObject * obj1 = 0 ; | |
26245 | PyObject * obj2 = 0 ; | |
26246 | char *kwnames[] = { | |
26247 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
26248 | }; | |
26249 | ||
26250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, | |
26252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26253 | arg2 = obj1; | |
26254 | arg3 = obj2; | |
26255 | { | |
26256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26257 | (arg1)->_setCallbackInfo(arg2,arg3); | |
26258 | ||
26259 | wxPyEndAllowThreads(__tstate); | |
26260 | if (PyErr_Occurred()) SWIG_fail; | |
26261 | } | |
26262 | Py_INCREF(Py_None); resultobj = Py_None; | |
26263 | return resultobj; | |
26264 | fail: | |
26265 | return NULL; | |
26266 | } | |
26267 | ||
26268 | ||
26269 | static PyObject *_wrap_TextDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26270 | PyObject *resultobj; | |
26271 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26272 | int arg2 ; | |
26273 | int arg3 ; | |
26274 | int arg4 ; | |
26275 | int result; | |
26276 | PyObject * obj0 = 0 ; | |
26277 | PyObject * obj1 = 0 ; | |
26278 | PyObject * obj2 = 0 ; | |
26279 | PyObject * obj3 = 0 ; | |
26280 | char *kwnames[] = { | |
26281 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26282 | }; | |
26283 | ||
26284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26285 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, | |
26286 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26287 | arg2 = (int) SWIG_AsInt(obj1); | |
26288 | if (PyErr_Occurred()) SWIG_fail; | |
26289 | arg3 = (int) SWIG_AsInt(obj2); | |
26290 | if (PyErr_Occurred()) SWIG_fail; | |
26291 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26292 | if (PyErr_Occurred()) SWIG_fail; | |
26293 | { | |
26294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26295 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
26296 | ||
26297 | wxPyEndAllowThreads(__tstate); | |
26298 | if (PyErr_Occurred()) SWIG_fail; | |
26299 | } | |
26300 | resultobj = SWIG_FromInt((int)result); | |
26301 | return resultobj; | |
26302 | fail: | |
26303 | return NULL; | |
26304 | } | |
26305 | ||
26306 | ||
26307 | static PyObject *_wrap_TextDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26308 | PyObject *resultobj; | |
26309 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26310 | int arg2 ; | |
26311 | int arg3 ; | |
26312 | int arg4 ; | |
26313 | int result; | |
26314 | PyObject * obj0 = 0 ; | |
26315 | PyObject * obj1 = 0 ; | |
26316 | PyObject * obj2 = 0 ; | |
26317 | PyObject * obj3 = 0 ; | |
26318 | char *kwnames[] = { | |
26319 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26320 | }; | |
26321 | ||
26322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26323 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, | |
26324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26325 | arg2 = (int) SWIG_AsInt(obj1); | |
26326 | if (PyErr_Occurred()) SWIG_fail; | |
26327 | arg3 = (int) SWIG_AsInt(obj2); | |
26328 | if (PyErr_Occurred()) SWIG_fail; | |
26329 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26330 | if (PyErr_Occurred()) SWIG_fail; | |
26331 | { | |
26332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26333 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
26334 | ||
26335 | wxPyEndAllowThreads(__tstate); | |
26336 | if (PyErr_Occurred()) SWIG_fail; | |
26337 | } | |
26338 | resultobj = SWIG_FromInt((int)result); | |
26339 | return resultobj; | |
26340 | fail: | |
26341 | return NULL; | |
26342 | } | |
26343 | ||
26344 | ||
26345 | static PyObject *_wrap_TextDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26346 | PyObject *resultobj; | |
26347 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26348 | PyObject * obj0 = 0 ; | |
26349 | char *kwnames[] = { | |
26350 | (char *) "self", NULL | |
26351 | }; | |
26352 | ||
26353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
26354 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, | |
26355 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26356 | { | |
26357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26358 | (arg1)->base_OnLeave(); | |
26359 | ||
26360 | wxPyEndAllowThreads(__tstate); | |
26361 | if (PyErr_Occurred()) SWIG_fail; | |
26362 | } | |
26363 | Py_INCREF(Py_None); resultobj = Py_None; | |
26364 | return resultobj; | |
26365 | fail: | |
26366 | return NULL; | |
26367 | } | |
26368 | ||
26369 | ||
26370 | static PyObject *_wrap_TextDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26371 | PyObject *resultobj; | |
26372 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26373 | int arg2 ; | |
26374 | int arg3 ; | |
26375 | bool result; | |
26376 | PyObject * obj0 = 0 ; | |
26377 | PyObject * obj1 = 0 ; | |
26378 | PyObject * obj2 = 0 ; | |
26379 | char *kwnames[] = { | |
26380 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26381 | }; | |
26382 | ||
26383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26384 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, | |
26385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26386 | arg2 = (int) SWIG_AsInt(obj1); | |
26387 | if (PyErr_Occurred()) SWIG_fail; | |
26388 | arg3 = (int) SWIG_AsInt(obj2); | |
26389 | if (PyErr_Occurred()) SWIG_fail; | |
26390 | { | |
26391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26392 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
26393 | ||
26394 | wxPyEndAllowThreads(__tstate); | |
26395 | if (PyErr_Occurred()) SWIG_fail; | |
26396 | } | |
26397 | { | |
26398 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26399 | } | |
26400 | return resultobj; | |
26401 | fail: | |
26402 | return NULL; | |
26403 | } | |
26404 | ||
26405 | ||
26406 | static PyObject *_wrap_TextDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26407 | PyObject *resultobj; | |
26408 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26409 | int arg2 ; | |
26410 | int arg3 ; | |
26411 | int arg4 ; | |
26412 | int result; | |
26413 | PyObject * obj0 = 0 ; | |
26414 | PyObject * obj1 = 0 ; | |
26415 | PyObject * obj2 = 0 ; | |
26416 | PyObject * obj3 = 0 ; | |
26417 | char *kwnames[] = { | |
26418 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26419 | }; | |
26420 | ||
26421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26422 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, | |
26423 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26424 | arg2 = (int) SWIG_AsInt(obj1); | |
26425 | if (PyErr_Occurred()) SWIG_fail; | |
26426 | arg3 = (int) SWIG_AsInt(obj2); | |
26427 | if (PyErr_Occurred()) SWIG_fail; | |
26428 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26429 | if (PyErr_Occurred()) SWIG_fail; | |
26430 | { | |
26431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26432 | result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4); | |
26433 | ||
26434 | wxPyEndAllowThreads(__tstate); | |
26435 | if (PyErr_Occurred()) SWIG_fail; | |
26436 | } | |
26437 | resultobj = SWIG_FromInt((int)result); | |
26438 | return resultobj; | |
26439 | fail: | |
26440 | return NULL; | |
26441 | } | |
26442 | ||
26443 | ||
26444 | static PyObject * TextDropTarget_swigregister(PyObject *self, PyObject *args) { | |
26445 | PyObject *obj; | |
26446 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26447 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDropTarget, obj); | |
26448 | Py_INCREF(obj); | |
26449 | return Py_BuildValue((char *)""); | |
26450 | } | |
26451 | static PyObject *_wrap_new_FileDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26452 | PyObject *resultobj; | |
26453 | wxPyFileDropTarget *result; | |
26454 | char *kwnames[] = { | |
26455 | NULL | |
26456 | }; | |
26457 | ||
26458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDropTarget",kwnames)) goto fail; | |
26459 | { | |
26460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26461 | result = (wxPyFileDropTarget *)new wxPyFileDropTarget(); | |
26462 | ||
26463 | wxPyEndAllowThreads(__tstate); | |
26464 | if (PyErr_Occurred()) SWIG_fail; | |
26465 | } | |
26466 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileDropTarget, 1); | |
26467 | return resultobj; | |
26468 | fail: | |
26469 | return NULL; | |
26470 | } | |
26471 | ||
26472 | ||
26473 | static PyObject *_wrap_FileDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26474 | PyObject *resultobj; | |
26475 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
26476 | PyObject *arg2 = (PyObject *) 0 ; | |
26477 | PyObject *arg3 = (PyObject *) 0 ; | |
26478 | PyObject * obj0 = 0 ; | |
26479 | PyObject * obj1 = 0 ; | |
26480 | PyObject * obj2 = 0 ; | |
26481 | char *kwnames[] = { | |
26482 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
26483 | }; | |
26484 | ||
26485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26486 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, | |
26487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26488 | arg2 = obj1; | |
26489 | arg3 = obj2; | |
26490 | { | |
26491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26492 | (arg1)->_setCallbackInfo(arg2,arg3); | |
26493 | ||
26494 | wxPyEndAllowThreads(__tstate); | |
26495 | if (PyErr_Occurred()) SWIG_fail; | |
26496 | } | |
26497 | Py_INCREF(Py_None); resultobj = Py_None; | |
26498 | return resultobj; | |
26499 | fail: | |
26500 | return NULL; | |
26501 | } | |
26502 | ||
26503 | ||
26504 | static PyObject *_wrap_FileDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26505 | PyObject *resultobj; | |
26506 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
26507 | int arg2 ; | |
26508 | int arg3 ; | |
26509 | int arg4 ; | |
26510 | int result; | |
26511 | PyObject * obj0 = 0 ; | |
26512 | PyObject * obj1 = 0 ; | |
26513 | PyObject * obj2 = 0 ; | |
26514 | PyObject * obj3 = 0 ; | |
26515 | char *kwnames[] = { | |
26516 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26517 | }; | |
26518 | ||
26519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26520 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, | |
26521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26522 | arg2 = (int) SWIG_AsInt(obj1); | |
26523 | if (PyErr_Occurred()) SWIG_fail; | |
26524 | arg3 = (int) SWIG_AsInt(obj2); | |
26525 | if (PyErr_Occurred()) SWIG_fail; | |
26526 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26527 | if (PyErr_Occurred()) SWIG_fail; | |
26528 | { | |
26529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26530 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
26531 | ||
26532 | wxPyEndAllowThreads(__tstate); | |
26533 | if (PyErr_Occurred()) SWIG_fail; | |
26534 | } | |
26535 | resultobj = SWIG_FromInt((int)result); | |
26536 | return resultobj; | |
26537 | fail: | |
26538 | return NULL; | |
26539 | } | |
26540 | ||
26541 | ||
26542 | static PyObject *_wrap_FileDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26543 | PyObject *resultobj; | |
26544 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
26545 | int arg2 ; | |
26546 | int arg3 ; | |
26547 | int arg4 ; | |
26548 | int result; | |
26549 | PyObject * obj0 = 0 ; | |
26550 | PyObject * obj1 = 0 ; | |
26551 | PyObject * obj2 = 0 ; | |
26552 | PyObject * obj3 = 0 ; | |
26553 | char *kwnames[] = { | |
26554 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26555 | }; | |
26556 | ||
26557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26558 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, | |
26559 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26560 | arg2 = (int) SWIG_AsInt(obj1); | |
26561 | if (PyErr_Occurred()) SWIG_fail; | |
26562 | arg3 = (int) SWIG_AsInt(obj2); | |
26563 | if (PyErr_Occurred()) SWIG_fail; | |
26564 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26565 | if (PyErr_Occurred()) SWIG_fail; | |
26566 | { | |
26567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26568 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
26569 | ||
26570 | wxPyEndAllowThreads(__tstate); | |
26571 | if (PyErr_Occurred()) SWIG_fail; | |
26572 | } | |
26573 | resultobj = SWIG_FromInt((int)result); | |
26574 | return resultobj; | |
26575 | fail: | |
26576 | return NULL; | |
26577 | } | |
26578 | ||
26579 | ||
26580 | static PyObject *_wrap_FileDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26581 | PyObject *resultobj; | |
26582 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
26583 | PyObject * obj0 = 0 ; | |
26584 | char *kwnames[] = { | |
26585 | (char *) "self", NULL | |
26586 | }; | |
26587 | ||
26588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
26589 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, | |
26590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26591 | { | |
26592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26593 | (arg1)->base_OnLeave(); | |
26594 | ||
26595 | wxPyEndAllowThreads(__tstate); | |
26596 | if (PyErr_Occurred()) SWIG_fail; | |
26597 | } | |
26598 | Py_INCREF(Py_None); resultobj = Py_None; | |
26599 | return resultobj; | |
26600 | fail: | |
26601 | return NULL; | |
26602 | } | |
26603 | ||
26604 | ||
26605 | static PyObject *_wrap_FileDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26606 | PyObject *resultobj; | |
26607 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
26608 | int arg2 ; | |
26609 | int arg3 ; | |
26610 | bool result; | |
26611 | PyObject * obj0 = 0 ; | |
26612 | PyObject * obj1 = 0 ; | |
26613 | PyObject * obj2 = 0 ; | |
26614 | char *kwnames[] = { | |
26615 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26616 | }; | |
26617 | ||
26618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26619 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, | |
26620 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26621 | arg2 = (int) SWIG_AsInt(obj1); | |
26622 | if (PyErr_Occurred()) SWIG_fail; | |
26623 | arg3 = (int) SWIG_AsInt(obj2); | |
26624 | if (PyErr_Occurred()) SWIG_fail; | |
26625 | { | |
26626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26627 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
26628 | ||
26629 | wxPyEndAllowThreads(__tstate); | |
26630 | if (PyErr_Occurred()) SWIG_fail; | |
26631 | } | |
26632 | { | |
26633 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26634 | } | |
26635 | return resultobj; | |
26636 | fail: | |
26637 | return NULL; | |
26638 | } | |
26639 | ||
26640 | ||
26641 | static PyObject *_wrap_FileDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26642 | PyObject *resultobj; | |
26643 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
26644 | int arg2 ; | |
26645 | int arg3 ; | |
26646 | int arg4 ; | |
26647 | int result; | |
26648 | PyObject * obj0 = 0 ; | |
26649 | PyObject * obj1 = 0 ; | |
26650 | PyObject * obj2 = 0 ; | |
26651 | PyObject * obj3 = 0 ; | |
26652 | char *kwnames[] = { | |
26653 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26654 | }; | |
26655 | ||
26656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26657 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, | |
26658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26659 | arg2 = (int) SWIG_AsInt(obj1); | |
26660 | if (PyErr_Occurred()) SWIG_fail; | |
26661 | arg3 = (int) SWIG_AsInt(obj2); | |
26662 | if (PyErr_Occurred()) SWIG_fail; | |
26663 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26664 | if (PyErr_Occurred()) SWIG_fail; | |
26665 | { | |
26666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26667 | result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4); | |
26668 | ||
26669 | wxPyEndAllowThreads(__tstate); | |
26670 | if (PyErr_Occurred()) SWIG_fail; | |
26671 | } | |
26672 | resultobj = SWIG_FromInt((int)result); | |
26673 | return resultobj; | |
26674 | fail: | |
26675 | return NULL; | |
26676 | } | |
26677 | ||
26678 | ||
26679 | static PyObject * FileDropTarget_swigregister(PyObject *self, PyObject *args) { | |
26680 | PyObject *obj; | |
26681 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26682 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFileDropTarget, obj); | |
26683 | Py_INCREF(obj); | |
26684 | return Py_BuildValue((char *)""); | |
26685 | } | |
26686 | static PyObject *_wrap_new_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26687 | PyObject *resultobj; | |
26688 | wxClipboard *result; | |
26689 | char *kwnames[] = { | |
26690 | NULL | |
26691 | }; | |
26692 | ||
26693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Clipboard",kwnames)) goto fail; | |
26694 | { | |
26695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26696 | result = (wxClipboard *)new wxClipboard(); | |
26697 | ||
26698 | wxPyEndAllowThreads(__tstate); | |
26699 | if (PyErr_Occurred()) SWIG_fail; | |
26700 | } | |
26701 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 1); | |
26702 | return resultobj; | |
26703 | fail: | |
26704 | return NULL; | |
26705 | } | |
26706 | ||
26707 | ||
26708 | static PyObject *_wrap_delete_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26709 | PyObject *resultobj; | |
26710 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26711 | PyObject * obj0 = 0 ; | |
26712 | char *kwnames[] = { | |
26713 | (char *) "self", NULL | |
26714 | }; | |
26715 | ||
26716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Clipboard",kwnames,&obj0)) goto fail; | |
26717 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
26718 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26719 | { | |
26720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26721 | delete arg1; | |
26722 | ||
26723 | wxPyEndAllowThreads(__tstate); | |
26724 | if (PyErr_Occurred()) SWIG_fail; | |
26725 | } | |
26726 | Py_INCREF(Py_None); resultobj = Py_None; | |
26727 | return resultobj; | |
26728 | fail: | |
26729 | return NULL; | |
26730 | } | |
26731 | ||
26732 | ||
26733 | static PyObject *_wrap_Clipboard_Open(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26734 | PyObject *resultobj; | |
26735 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26736 | bool result; | |
26737 | PyObject * obj0 = 0 ; | |
26738 | char *kwnames[] = { | |
26739 | (char *) "self", NULL | |
26740 | }; | |
26741 | ||
26742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Open",kwnames,&obj0)) goto fail; | |
26743 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
26744 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26745 | { | |
26746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26747 | result = (bool)(arg1)->Open(); | |
26748 | ||
26749 | wxPyEndAllowThreads(__tstate); | |
26750 | if (PyErr_Occurred()) SWIG_fail; | |
26751 | } | |
26752 | { | |
26753 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26754 | } | |
26755 | return resultobj; | |
26756 | fail: | |
26757 | return NULL; | |
26758 | } | |
26759 | ||
26760 | ||
26761 | static PyObject *_wrap_Clipboard_Close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26762 | PyObject *resultobj; | |
26763 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26764 | PyObject * obj0 = 0 ; | |
26765 | char *kwnames[] = { | |
26766 | (char *) "self", NULL | |
26767 | }; | |
26768 | ||
26769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Close",kwnames,&obj0)) goto fail; | |
26770 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
26771 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26772 | { | |
26773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26774 | (arg1)->Close(); | |
26775 | ||
26776 | wxPyEndAllowThreads(__tstate); | |
26777 | if (PyErr_Occurred()) SWIG_fail; | |
26778 | } | |
26779 | Py_INCREF(Py_None); resultobj = Py_None; | |
26780 | return resultobj; | |
26781 | fail: | |
26782 | return NULL; | |
26783 | } | |
26784 | ||
26785 | ||
26786 | static PyObject *_wrap_Clipboard_IsOpened(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26787 | PyObject *resultobj; | |
26788 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26789 | bool result; | |
26790 | PyObject * obj0 = 0 ; | |
26791 | char *kwnames[] = { | |
26792 | (char *) "self", NULL | |
26793 | }; | |
26794 | ||
26795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_IsOpened",kwnames,&obj0)) goto fail; | |
26796 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
26797 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26798 | { | |
26799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26800 | result = (bool)((wxClipboard const *)arg1)->IsOpened(); | |
26801 | ||
26802 | wxPyEndAllowThreads(__tstate); | |
26803 | if (PyErr_Occurred()) SWIG_fail; | |
26804 | } | |
26805 | { | |
26806 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26807 | } | |
26808 | return resultobj; | |
26809 | fail: | |
26810 | return NULL; | |
26811 | } | |
26812 | ||
26813 | ||
26814 | static PyObject *_wrap_Clipboard_AddData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26815 | PyObject *resultobj; | |
26816 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26817 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
26818 | bool result; | |
26819 | PyObject * obj0 = 0 ; | |
26820 | PyObject * obj1 = 0 ; | |
26821 | char *kwnames[] = { | |
26822 | (char *) "self",(char *) "data", NULL | |
26823 | }; | |
26824 | ||
26825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_AddData",kwnames,&obj0,&obj1)) goto fail; | |
26826 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
26827 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26828 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
26829 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
26830 | { | |
26831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26832 | result = (bool)(arg1)->AddData(arg2); | |
26833 | ||
26834 | wxPyEndAllowThreads(__tstate); | |
26835 | if (PyErr_Occurred()) SWIG_fail; | |
26836 | } | |
26837 | { | |
26838 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26839 | } | |
26840 | return resultobj; | |
26841 | fail: | |
26842 | return NULL; | |
26843 | } | |
26844 | ||
26845 | ||
26846 | static PyObject *_wrap_Clipboard_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26847 | PyObject *resultobj; | |
26848 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26849 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
26850 | bool result; | |
26851 | PyObject * obj0 = 0 ; | |
26852 | PyObject * obj1 = 0 ; | |
26853 | char *kwnames[] = { | |
26854 | (char *) "self",(char *) "data", NULL | |
26855 | }; | |
26856 | ||
26857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_SetData",kwnames,&obj0,&obj1)) goto fail; | |
26858 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
26859 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26860 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
26861 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
26862 | { | |
26863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26864 | result = (bool)(arg1)->SetData(arg2); | |
26865 | ||
26866 | wxPyEndAllowThreads(__tstate); | |
26867 | if (PyErr_Occurred()) SWIG_fail; | |
26868 | } | |
26869 | { | |
26870 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26871 | } | |
26872 | return resultobj; | |
26873 | fail: | |
26874 | return NULL; | |
26875 | } | |
26876 | ||
26877 | ||
26878 | static PyObject *_wrap_Clipboard_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26879 | PyObject *resultobj; | |
26880 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26881 | wxDataFormat *arg2 = 0 ; | |
26882 | bool result; | |
26883 | PyObject * obj0 = 0 ; | |
26884 | PyObject * obj1 = 0 ; | |
26885 | char *kwnames[] = { | |
26886 | (char *) "self",(char *) "format", NULL | |
26887 | }; | |
26888 | ||
26889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_IsSupported",kwnames,&obj0,&obj1)) goto fail; | |
26890 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
26891 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26892 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
26893 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26894 | SWIG_fail; | |
26895 | if (arg2 == NULL) { | |
26896 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26897 | SWIG_fail; | |
26898 | } | |
26899 | { | |
26900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26901 | result = (bool)(arg1)->IsSupported((wxDataFormat const &)*arg2); | |
26902 | ||
26903 | wxPyEndAllowThreads(__tstate); | |
26904 | if (PyErr_Occurred()) SWIG_fail; | |
26905 | } | |
26906 | { | |
26907 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26908 | } | |
26909 | return resultobj; | |
26910 | fail: | |
26911 | return NULL; | |
26912 | } | |
26913 | ||
26914 | ||
26915 | static PyObject *_wrap_Clipboard_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26916 | PyObject *resultobj; | |
26917 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26918 | wxDataObject *arg2 = 0 ; | |
26919 | bool result; | |
26920 | PyObject * obj0 = 0 ; | |
26921 | PyObject * obj1 = 0 ; | |
26922 | char *kwnames[] = { | |
26923 | (char *) "self",(char *) "data", NULL | |
26924 | }; | |
26925 | ||
26926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_GetData",kwnames,&obj0,&obj1)) goto fail; | |
26927 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
26928 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26929 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
26930 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26931 | SWIG_fail; | |
26932 | if (arg2 == NULL) { | |
26933 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26934 | SWIG_fail; | |
26935 | } | |
26936 | { | |
26937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26938 | result = (bool)(arg1)->GetData(*arg2); | |
26939 | ||
26940 | wxPyEndAllowThreads(__tstate); | |
26941 | if (PyErr_Occurred()) SWIG_fail; | |
26942 | } | |
26943 | { | |
26944 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26945 | } | |
26946 | return resultobj; | |
26947 | fail: | |
26948 | return NULL; | |
26949 | } | |
26950 | ||
26951 | ||
26952 | static PyObject *_wrap_Clipboard_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26953 | PyObject *resultobj; | |
26954 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26955 | PyObject * obj0 = 0 ; | |
26956 | char *kwnames[] = { | |
26957 | (char *) "self", NULL | |
26958 | }; | |
26959 | ||
26960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Clear",kwnames,&obj0)) goto fail; | |
26961 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
26962 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26963 | { | |
26964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26965 | (arg1)->Clear(); | |
26966 | ||
26967 | wxPyEndAllowThreads(__tstate); | |
26968 | if (PyErr_Occurred()) SWIG_fail; | |
26969 | } | |
26970 | Py_INCREF(Py_None); resultobj = Py_None; | |
26971 | return resultobj; | |
26972 | fail: | |
26973 | return NULL; | |
26974 | } | |
26975 | ||
26976 | ||
26977 | static PyObject *_wrap_Clipboard_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26978 | PyObject *resultobj; | |
26979 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26980 | bool result; | |
26981 | PyObject * obj0 = 0 ; | |
26982 | char *kwnames[] = { | |
26983 | (char *) "self", NULL | |
26984 | }; | |
26985 | ||
26986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Flush",kwnames,&obj0)) goto fail; | |
26987 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
26988 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26989 | { | |
26990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26991 | result = (bool)(arg1)->Flush(); | |
26992 | ||
26993 | wxPyEndAllowThreads(__tstate); | |
26994 | if (PyErr_Occurred()) SWIG_fail; | |
26995 | } | |
26996 | { | |
26997 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26998 | } | |
26999 | return resultobj; | |
27000 | fail: | |
27001 | return NULL; | |
27002 | } | |
27003 | ||
27004 | ||
27005 | static PyObject *_wrap_Clipboard_UsePrimarySelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27006 | PyObject *resultobj; | |
27007 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27008 | bool arg2 = (bool) True ; | |
27009 | PyObject * obj0 = 0 ; | |
27010 | PyObject * obj1 = 0 ; | |
27011 | char *kwnames[] = { | |
27012 | (char *) "self",(char *) "primary", NULL | |
27013 | }; | |
27014 | ||
27015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Clipboard_UsePrimarySelection",kwnames,&obj0,&obj1)) goto fail; | |
27016 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27017 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27018 | if (obj1) { | |
27019 | arg2 = (bool) SWIG_AsBool(obj1); | |
27020 | if (PyErr_Occurred()) SWIG_fail; | |
27021 | } | |
27022 | { | |
27023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27024 | (arg1)->UsePrimarySelection(arg2); | |
27025 | ||
27026 | wxPyEndAllowThreads(__tstate); | |
27027 | if (PyErr_Occurred()) SWIG_fail; | |
27028 | } | |
27029 | Py_INCREF(Py_None); resultobj = Py_None; | |
27030 | return resultobj; | |
27031 | fail: | |
27032 | return NULL; | |
27033 | } | |
27034 | ||
27035 | ||
27036 | static PyObject * Clipboard_swigregister(PyObject *self, PyObject *args) { | |
27037 | PyObject *obj; | |
27038 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27039 | SWIG_TypeClientData(SWIGTYPE_p_wxClipboard, obj); | |
27040 | Py_INCREF(obj); | |
27041 | return Py_BuildValue((char *)""); | |
27042 | } | |
27043 | static int _wrap_TheClipboard_set(PyObject *_val) { | |
27044 | PyErr_SetString(PyExc_TypeError,"Variable TheClipboard is read-only."); | |
27045 | return 1; | |
27046 | } | |
27047 | ||
27048 | ||
27049 | static PyObject *_wrap_TheClipboard_get() { | |
27050 | PyObject *pyobj; | |
27051 | ||
27052 | pyobj = SWIG_NewPointerObj((void *)(wxTheClipboard), SWIGTYPE_p_wxClipboard, 0); | |
27053 | return pyobj; | |
27054 | } | |
27055 | ||
27056 | ||
27057 | static PyObject *_wrap_new_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27058 | PyObject *resultobj; | |
27059 | wxClipboard *arg1 = (wxClipboard *) NULL ; | |
27060 | wxClipboardLocker *result; | |
27061 | PyObject * obj0 = 0 ; | |
27062 | char *kwnames[] = { | |
27063 | (char *) "clipboard", NULL | |
27064 | }; | |
27065 | ||
27066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ClipboardLocker",kwnames,&obj0)) goto fail; | |
27067 | if (obj0) { | |
27068 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27069 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27070 | } | |
27071 | { | |
27072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27073 | result = (wxClipboardLocker *)new wxClipboardLocker(arg1); | |
27074 | ||
27075 | wxPyEndAllowThreads(__tstate); | |
27076 | if (PyErr_Occurred()) SWIG_fail; | |
27077 | } | |
27078 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboardLocker, 1); | |
27079 | return resultobj; | |
27080 | fail: | |
27081 | return NULL; | |
27082 | } | |
27083 | ||
27084 | ||
27085 | static PyObject *_wrap_delete_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27086 | PyObject *resultobj; | |
27087 | wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ; | |
27088 | PyObject * obj0 = 0 ; | |
27089 | char *kwnames[] = { | |
27090 | (char *) "self", NULL | |
27091 | }; | |
27092 | ||
27093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ClipboardLocker",kwnames,&obj0)) goto fail; | |
27094 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker, | |
27095 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27096 | { | |
27097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27098 | delete arg1; | |
27099 | ||
27100 | wxPyEndAllowThreads(__tstate); | |
27101 | if (PyErr_Occurred()) SWIG_fail; | |
27102 | } | |
27103 | Py_INCREF(Py_None); resultobj = Py_None; | |
27104 | return resultobj; | |
27105 | fail: | |
27106 | return NULL; | |
27107 | } | |
27108 | ||
27109 | ||
27110 | static PyObject *_wrap_ClipboardLocker___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27111 | PyObject *resultobj; | |
27112 | wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ; | |
27113 | bool result; | |
27114 | PyObject * obj0 = 0 ; | |
27115 | char *kwnames[] = { | |
27116 | (char *) "self", NULL | |
27117 | }; | |
27118 | ||
27119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ClipboardLocker___nonzero__",kwnames,&obj0)) goto fail; | |
27120 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker, | |
27121 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27122 | { | |
27123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27124 | result = (bool)wxClipboardLocker___nonzero__(arg1); | |
27125 | ||
27126 | wxPyEndAllowThreads(__tstate); | |
27127 | if (PyErr_Occurred()) SWIG_fail; | |
27128 | } | |
27129 | { | |
27130 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27131 | } | |
27132 | return resultobj; | |
27133 | fail: | |
27134 | return NULL; | |
27135 | } | |
27136 | ||
27137 | ||
27138 | static PyObject * ClipboardLocker_swigregister(PyObject *self, PyObject *args) { | |
27139 | PyObject *obj; | |
27140 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27141 | SWIG_TypeClientData(SWIGTYPE_p_wxClipboardLocker, obj); | |
27142 | Py_INCREF(obj); | |
27143 | return Py_BuildValue((char *)""); | |
27144 | } | |
27145 | static PyObject *_wrap_new_VideoMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27146 | PyObject *resultobj; | |
27147 | int arg1 = (int) 0 ; | |
27148 | int arg2 = (int) 0 ; | |
27149 | int arg3 = (int) 0 ; | |
27150 | int arg4 = (int) 0 ; | |
27151 | wxVideoMode *result; | |
27152 | PyObject * obj0 = 0 ; | |
27153 | PyObject * obj1 = 0 ; | |
27154 | PyObject * obj2 = 0 ; | |
27155 | PyObject * obj3 = 0 ; | |
27156 | char *kwnames[] = { | |
27157 | (char *) "width",(char *) "height",(char *) "depth",(char *) "freq", NULL | |
27158 | }; | |
27159 | ||
27160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_VideoMode",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
27161 | if (obj0) { | |
27162 | arg1 = (int) SWIG_AsInt(obj0); | |
27163 | if (PyErr_Occurred()) SWIG_fail; | |
27164 | } | |
27165 | if (obj1) { | |
27166 | arg2 = (int) SWIG_AsInt(obj1); | |
27167 | if (PyErr_Occurred()) SWIG_fail; | |
27168 | } | |
27169 | if (obj2) { | |
27170 | arg3 = (int) SWIG_AsInt(obj2); | |
27171 | if (PyErr_Occurred()) SWIG_fail; | |
27172 | } | |
27173 | if (obj3) { | |
27174 | arg4 = (int) SWIG_AsInt(obj3); | |
27175 | if (PyErr_Occurred()) SWIG_fail; | |
27176 | } | |
27177 | { | |
27178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27179 | result = (wxVideoMode *)new wxVideoMode(arg1,arg2,arg3,arg4); | |
27180 | ||
27181 | wxPyEndAllowThreads(__tstate); | |
27182 | if (PyErr_Occurred()) SWIG_fail; | |
27183 | } | |
27184 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVideoMode, 1); | |
27185 | return resultobj; | |
27186 | fail: | |
27187 | return NULL; | |
27188 | } | |
27189 | ||
27190 | ||
27191 | static PyObject *_wrap_delete_VideoMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27192 | PyObject *resultobj; | |
27193 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27194 | PyObject * obj0 = 0 ; | |
27195 | char *kwnames[] = { | |
27196 | (char *) "self", NULL | |
27197 | }; | |
27198 | ||
27199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VideoMode",kwnames,&obj0)) goto fail; | |
27200 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27202 | { | |
27203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27204 | delete arg1; | |
27205 | ||
27206 | wxPyEndAllowThreads(__tstate); | |
27207 | if (PyErr_Occurred()) SWIG_fail; | |
27208 | } | |
27209 | Py_INCREF(Py_None); resultobj = Py_None; | |
27210 | return resultobj; | |
27211 | fail: | |
27212 | return NULL; | |
27213 | } | |
27214 | ||
27215 | ||
27216 | static PyObject *_wrap_VideoMode_Matches(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27217 | PyObject *resultobj; | |
27218 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27219 | wxVideoMode *arg2 = 0 ; | |
27220 | bool result; | |
27221 | PyObject * obj0 = 0 ; | |
27222 | PyObject * obj1 = 0 ; | |
27223 | char *kwnames[] = { | |
27224 | (char *) "self",(char *) "other", NULL | |
27225 | }; | |
27226 | ||
27227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_Matches",kwnames,&obj0,&obj1)) goto fail; | |
27228 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27229 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27230 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
27231 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27232 | SWIG_fail; | |
27233 | if (arg2 == NULL) { | |
27234 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27235 | SWIG_fail; | |
27236 | } | |
27237 | { | |
27238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27239 | result = (bool)((wxVideoMode const *)arg1)->Matches((wxVideoMode const &)*arg2); | |
27240 | ||
27241 | wxPyEndAllowThreads(__tstate); | |
27242 | if (PyErr_Occurred()) SWIG_fail; | |
27243 | } | |
27244 | { | |
27245 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27246 | } | |
27247 | return resultobj; | |
27248 | fail: | |
27249 | return NULL; | |
27250 | } | |
27251 | ||
27252 | ||
27253 | static PyObject *_wrap_VideoMode_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27254 | PyObject *resultobj; | |
27255 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27256 | int result; | |
27257 | PyObject * obj0 = 0 ; | |
27258 | char *kwnames[] = { | |
27259 | (char *) "self", NULL | |
27260 | }; | |
27261 | ||
27262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetWidth",kwnames,&obj0)) goto fail; | |
27263 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27264 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27265 | { | |
27266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27267 | result = (int)((wxVideoMode const *)arg1)->GetWidth(); | |
27268 | ||
27269 | wxPyEndAllowThreads(__tstate); | |
27270 | if (PyErr_Occurred()) SWIG_fail; | |
27271 | } | |
27272 | resultobj = SWIG_FromInt((int)result); | |
27273 | return resultobj; | |
27274 | fail: | |
27275 | return NULL; | |
27276 | } | |
27277 | ||
27278 | ||
27279 | static PyObject *_wrap_VideoMode_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27280 | PyObject *resultobj; | |
27281 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27282 | int result; | |
27283 | PyObject * obj0 = 0 ; | |
27284 | char *kwnames[] = { | |
27285 | (char *) "self", NULL | |
27286 | }; | |
27287 | ||
27288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetHeight",kwnames,&obj0)) goto fail; | |
27289 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27290 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27291 | { | |
27292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27293 | result = (int)((wxVideoMode const *)arg1)->GetHeight(); | |
27294 | ||
27295 | wxPyEndAllowThreads(__tstate); | |
27296 | if (PyErr_Occurred()) SWIG_fail; | |
27297 | } | |
27298 | resultobj = SWIG_FromInt((int)result); | |
27299 | return resultobj; | |
27300 | fail: | |
27301 | return NULL; | |
27302 | } | |
27303 | ||
27304 | ||
27305 | static PyObject *_wrap_VideoMode_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27306 | PyObject *resultobj; | |
27307 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27308 | int result; | |
27309 | PyObject * obj0 = 0 ; | |
27310 | char *kwnames[] = { | |
27311 | (char *) "self", NULL | |
27312 | }; | |
27313 | ||
27314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetDepth",kwnames,&obj0)) goto fail; | |
27315 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27317 | { | |
27318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27319 | result = (int)((wxVideoMode const *)arg1)->GetDepth(); | |
27320 | ||
27321 | wxPyEndAllowThreads(__tstate); | |
27322 | if (PyErr_Occurred()) SWIG_fail; | |
27323 | } | |
27324 | resultobj = SWIG_FromInt((int)result); | |
27325 | return resultobj; | |
27326 | fail: | |
27327 | return NULL; | |
27328 | } | |
27329 | ||
27330 | ||
27331 | static PyObject *_wrap_VideoMode_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27332 | PyObject *resultobj; | |
27333 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27334 | bool result; | |
27335 | PyObject * obj0 = 0 ; | |
27336 | char *kwnames[] = { | |
27337 | (char *) "self", NULL | |
27338 | }; | |
27339 | ||
27340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_IsOk",kwnames,&obj0)) goto fail; | |
27341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27343 | { | |
27344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27345 | result = (bool)((wxVideoMode const *)arg1)->IsOk(); | |
27346 | ||
27347 | wxPyEndAllowThreads(__tstate); | |
27348 | if (PyErr_Occurred()) SWIG_fail; | |
27349 | } | |
27350 | { | |
27351 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27352 | } | |
27353 | return resultobj; | |
27354 | fail: | |
27355 | return NULL; | |
27356 | } | |
27357 | ||
27358 | ||
27359 | static PyObject *_wrap_VideoMode___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27360 | PyObject *resultobj; | |
27361 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27362 | wxVideoMode *arg2 = (wxVideoMode *) 0 ; | |
27363 | bool result; | |
27364 | PyObject * obj0 = 0 ; | |
27365 | PyObject * obj1 = 0 ; | |
27366 | char *kwnames[] = { | |
27367 | (char *) "self",(char *) "other", NULL | |
27368 | }; | |
27369 | ||
27370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___eq__",kwnames,&obj0,&obj1)) goto fail; | |
27371 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27372 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27373 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
27374 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27375 | { | |
27376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27377 | result = (bool)wxVideoMode___eq__(arg1,(wxVideoMode const *)arg2); | |
27378 | ||
27379 | wxPyEndAllowThreads(__tstate); | |
27380 | if (PyErr_Occurred()) SWIG_fail; | |
27381 | } | |
27382 | { | |
27383 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27384 | } | |
27385 | return resultobj; | |
27386 | fail: | |
27387 | return NULL; | |
27388 | } | |
27389 | ||
27390 | ||
27391 | static PyObject *_wrap_VideoMode___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27392 | PyObject *resultobj; | |
27393 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27394 | wxVideoMode *arg2 = (wxVideoMode *) 0 ; | |
27395 | bool result; | |
27396 | PyObject * obj0 = 0 ; | |
27397 | PyObject * obj1 = 0 ; | |
27398 | char *kwnames[] = { | |
27399 | (char *) "self",(char *) "other", NULL | |
27400 | }; | |
27401 | ||
27402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___ne__",kwnames,&obj0,&obj1)) goto fail; | |
27403 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27405 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
27406 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27407 | { | |
27408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27409 | result = (bool)wxVideoMode___ne__(arg1,(wxVideoMode const *)arg2); | |
27410 | ||
27411 | wxPyEndAllowThreads(__tstate); | |
27412 | if (PyErr_Occurred()) SWIG_fail; | |
27413 | } | |
27414 | { | |
27415 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27416 | } | |
27417 | return resultobj; | |
27418 | fail: | |
27419 | return NULL; | |
27420 | } | |
27421 | ||
27422 | ||
27423 | static PyObject *_wrap_VideoMode_w_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27424 | PyObject *resultobj; | |
27425 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27426 | int arg2 ; | |
27427 | PyObject * obj0 = 0 ; | |
27428 | PyObject * obj1 = 0 ; | |
27429 | char *kwnames[] = { | |
27430 | (char *) "self",(char *) "w", NULL | |
27431 | }; | |
27432 | ||
27433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_w_set",kwnames,&obj0,&obj1)) goto fail; | |
27434 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27435 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27436 | arg2 = (int) SWIG_AsInt(obj1); | |
27437 | if (PyErr_Occurred()) SWIG_fail; | |
27438 | if (arg1) (arg1)->w = arg2; | |
27439 | ||
27440 | Py_INCREF(Py_None); resultobj = Py_None; | |
27441 | return resultobj; | |
27442 | fail: | |
27443 | return NULL; | |
27444 | } | |
27445 | ||
27446 | ||
27447 | static PyObject *_wrap_VideoMode_w_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27448 | PyObject *resultobj; | |
27449 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27450 | int result; | |
27451 | PyObject * obj0 = 0 ; | |
27452 | char *kwnames[] = { | |
27453 | (char *) "self", NULL | |
27454 | }; | |
27455 | ||
27456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_w_get",kwnames,&obj0)) goto fail; | |
27457 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27458 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27459 | result = (int) ((arg1)->w); | |
27460 | ||
27461 | resultobj = SWIG_FromInt((int)result); | |
27462 | return resultobj; | |
27463 | fail: | |
27464 | return NULL; | |
27465 | } | |
27466 | ||
27467 | ||
27468 | static PyObject *_wrap_VideoMode_h_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27469 | PyObject *resultobj; | |
27470 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27471 | int arg2 ; | |
27472 | PyObject * obj0 = 0 ; | |
27473 | PyObject * obj1 = 0 ; | |
27474 | char *kwnames[] = { | |
27475 | (char *) "self",(char *) "h", NULL | |
27476 | }; | |
27477 | ||
27478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_h_set",kwnames,&obj0,&obj1)) goto fail; | |
27479 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27480 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27481 | arg2 = (int) SWIG_AsInt(obj1); | |
27482 | if (PyErr_Occurred()) SWIG_fail; | |
27483 | if (arg1) (arg1)->h = arg2; | |
27484 | ||
27485 | Py_INCREF(Py_None); resultobj = Py_None; | |
27486 | return resultobj; | |
27487 | fail: | |
27488 | return NULL; | |
27489 | } | |
27490 | ||
27491 | ||
27492 | static PyObject *_wrap_VideoMode_h_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27493 | PyObject *resultobj; | |
27494 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27495 | int result; | |
27496 | PyObject * obj0 = 0 ; | |
27497 | char *kwnames[] = { | |
27498 | (char *) "self", NULL | |
27499 | }; | |
27500 | ||
27501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_h_get",kwnames,&obj0)) goto fail; | |
27502 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27503 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27504 | result = (int) ((arg1)->h); | |
27505 | ||
27506 | resultobj = SWIG_FromInt((int)result); | |
27507 | return resultobj; | |
27508 | fail: | |
27509 | return NULL; | |
27510 | } | |
27511 | ||
27512 | ||
27513 | static PyObject *_wrap_VideoMode_bpp_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27514 | PyObject *resultobj; | |
27515 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27516 | int arg2 ; | |
27517 | PyObject * obj0 = 0 ; | |
27518 | PyObject * obj1 = 0 ; | |
27519 | char *kwnames[] = { | |
27520 | (char *) "self",(char *) "bpp", NULL | |
27521 | }; | |
27522 | ||
27523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_bpp_set",kwnames,&obj0,&obj1)) goto fail; | |
27524 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27525 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27526 | arg2 = (int) SWIG_AsInt(obj1); | |
27527 | if (PyErr_Occurred()) SWIG_fail; | |
27528 | if (arg1) (arg1)->bpp = arg2; | |
27529 | ||
27530 | Py_INCREF(Py_None); resultobj = Py_None; | |
27531 | return resultobj; | |
27532 | fail: | |
27533 | return NULL; | |
27534 | } | |
27535 | ||
27536 | ||
27537 | static PyObject *_wrap_VideoMode_bpp_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27538 | PyObject *resultobj; | |
27539 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27540 | int result; | |
27541 | PyObject * obj0 = 0 ; | |
27542 | char *kwnames[] = { | |
27543 | (char *) "self", NULL | |
27544 | }; | |
27545 | ||
27546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_bpp_get",kwnames,&obj0)) goto fail; | |
27547 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27548 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27549 | result = (int) ((arg1)->bpp); | |
27550 | ||
27551 | resultobj = SWIG_FromInt((int)result); | |
27552 | return resultobj; | |
27553 | fail: | |
27554 | return NULL; | |
27555 | } | |
27556 | ||
27557 | ||
27558 | static PyObject *_wrap_VideoMode_refresh_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27559 | PyObject *resultobj; | |
27560 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27561 | int arg2 ; | |
27562 | PyObject * obj0 = 0 ; | |
27563 | PyObject * obj1 = 0 ; | |
27564 | char *kwnames[] = { | |
27565 | (char *) "self",(char *) "refresh", NULL | |
27566 | }; | |
27567 | ||
27568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_refresh_set",kwnames,&obj0,&obj1)) goto fail; | |
27569 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27570 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27571 | arg2 = (int) SWIG_AsInt(obj1); | |
27572 | if (PyErr_Occurred()) SWIG_fail; | |
27573 | if (arg1) (arg1)->refresh = arg2; | |
27574 | ||
27575 | Py_INCREF(Py_None); resultobj = Py_None; | |
27576 | return resultobj; | |
27577 | fail: | |
27578 | return NULL; | |
27579 | } | |
27580 | ||
27581 | ||
27582 | static PyObject *_wrap_VideoMode_refresh_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27583 | PyObject *resultobj; | |
27584 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27585 | int result; | |
27586 | PyObject * obj0 = 0 ; | |
27587 | char *kwnames[] = { | |
27588 | (char *) "self", NULL | |
27589 | }; | |
27590 | ||
27591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_refresh_get",kwnames,&obj0)) goto fail; | |
27592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27594 | result = (int) ((arg1)->refresh); | |
27595 | ||
27596 | resultobj = SWIG_FromInt((int)result); | |
27597 | return resultobj; | |
27598 | fail: | |
27599 | return NULL; | |
27600 | } | |
27601 | ||
27602 | ||
27603 | static PyObject * VideoMode_swigregister(PyObject *self, PyObject *args) { | |
27604 | PyObject *obj; | |
27605 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27606 | SWIG_TypeClientData(SWIGTYPE_p_wxVideoMode, obj); | |
27607 | Py_INCREF(obj); | |
27608 | return Py_BuildValue((char *)""); | |
27609 | } | |
27610 | static int _wrap_DefaultVideoMode_set(PyObject *_val) { | |
27611 | PyErr_SetString(PyExc_TypeError,"Variable DefaultVideoMode is read-only."); | |
27612 | return 1; | |
27613 | } | |
27614 | ||
27615 | ||
27616 | static PyObject *_wrap_DefaultVideoMode_get() { | |
27617 | PyObject *pyobj; | |
27618 | ||
27619 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultVideoMode), SWIGTYPE_p_wxVideoMode, 0); | |
27620 | return pyobj; | |
27621 | } | |
27622 | ||
27623 | ||
27624 | static PyObject *_wrap_new_Display(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27625 | PyObject *resultobj; | |
27626 | size_t arg1 = (size_t) 0 ; | |
27627 | wxDisplay *result; | |
27628 | PyObject * obj0 = 0 ; | |
27629 | char *kwnames[] = { | |
27630 | (char *) "index", NULL | |
27631 | }; | |
27632 | ||
27633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Display",kwnames,&obj0)) goto fail; | |
27634 | if (obj0) { | |
27635 | arg1 = (size_t) SWIG_AsUnsignedLong(obj0); | |
27636 | if (PyErr_Occurred()) SWIG_fail; | |
27637 | } | |
27638 | { | |
27639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27640 | result = (wxDisplay *)new wxDisplay(arg1); | |
27641 | ||
27642 | wxPyEndAllowThreads(__tstate); | |
27643 | if (PyErr_Occurred()) SWIG_fail; | |
27644 | } | |
27645 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplay, 1); | |
27646 | return resultobj; | |
27647 | fail: | |
27648 | return NULL; | |
27649 | } | |
27650 | ||
27651 | ||
27652 | static PyObject *_wrap_delete_Display(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27653 | PyObject *resultobj; | |
27654 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27655 | PyObject * obj0 = 0 ; | |
27656 | char *kwnames[] = { | |
27657 | (char *) "self", NULL | |
27658 | }; | |
27659 | ||
27660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Display",kwnames,&obj0)) goto fail; | |
27661 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27662 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27663 | { | |
27664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27665 | delete arg1; | |
27666 | ||
27667 | wxPyEndAllowThreads(__tstate); | |
27668 | if (PyErr_Occurred()) SWIG_fail; | |
27669 | } | |
27670 | Py_INCREF(Py_None); resultobj = Py_None; | |
27671 | return resultobj; | |
27672 | fail: | |
27673 | return NULL; | |
27674 | } | |
27675 | ||
27676 | ||
27677 | static PyObject *_wrap_Display_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27678 | PyObject *resultobj; | |
27679 | size_t result; | |
27680 | char *kwnames[] = { | |
27681 | NULL | |
27682 | }; | |
27683 | ||
27684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Display_GetCount",kwnames)) goto fail; | |
27685 | { | |
27686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27687 | result = (size_t)wxDisplay::GetCount(); | |
27688 | ||
27689 | wxPyEndAllowThreads(__tstate); | |
27690 | if (PyErr_Occurred()) SWIG_fail; | |
27691 | } | |
27692 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
27693 | return resultobj; | |
27694 | fail: | |
27695 | return NULL; | |
27696 | } | |
27697 | ||
27698 | ||
27699 | static PyObject *_wrap_Display_GetFromPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27700 | PyObject *resultobj; | |
27701 | wxPoint *arg1 = 0 ; | |
27702 | int result; | |
27703 | wxPoint temp1 ; | |
27704 | PyObject * obj0 = 0 ; | |
27705 | char *kwnames[] = { | |
27706 | (char *) "pt", NULL | |
27707 | }; | |
27708 | ||
27709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromPoint",kwnames,&obj0)) goto fail; | |
27710 | { | |
27711 | arg1 = &temp1; | |
27712 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
27713 | } | |
27714 | { | |
27715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27716 | result = (int)wxDisplay::GetFromPoint((wxPoint const &)*arg1); | |
27717 | ||
27718 | wxPyEndAllowThreads(__tstate); | |
27719 | if (PyErr_Occurred()) SWIG_fail; | |
27720 | } | |
27721 | resultobj = SWIG_FromInt((int)result); | |
27722 | return resultobj; | |
27723 | fail: | |
27724 | return NULL; | |
27725 | } | |
27726 | ||
27727 | ||
27728 | static PyObject *_wrap_Display_GetFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27729 | PyObject *resultobj; | |
27730 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27731 | int result; | |
27732 | PyObject * obj0 = 0 ; | |
27733 | char *kwnames[] = { | |
27734 | (char *) "window", NULL | |
27735 | }; | |
27736 | ||
27737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromWindow",kwnames,&obj0)) goto fail; | |
27738 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27739 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27740 | { | |
27741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27742 | result = (int)wxDisplay::GetFromWindow(arg1); | |
27743 | ||
27744 | wxPyEndAllowThreads(__tstate); | |
27745 | if (PyErr_Occurred()) SWIG_fail; | |
27746 | } | |
27747 | resultobj = SWIG_FromInt((int)result); | |
27748 | return resultobj; | |
27749 | fail: | |
27750 | return NULL; | |
27751 | } | |
27752 | ||
27753 | ||
27754 | static PyObject *_wrap_Display_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27755 | PyObject *resultobj; | |
27756 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27757 | bool result; | |
27758 | PyObject * obj0 = 0 ; | |
27759 | char *kwnames[] = { | |
27760 | (char *) "self", NULL | |
27761 | }; | |
27762 | ||
27763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsOk",kwnames,&obj0)) goto fail; | |
27764 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27765 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27766 | { | |
27767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27768 | result = (bool)((wxDisplay const *)arg1)->IsOk(); | |
27769 | ||
27770 | wxPyEndAllowThreads(__tstate); | |
27771 | if (PyErr_Occurred()) SWIG_fail; | |
27772 | } | |
27773 | { | |
27774 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27775 | } | |
27776 | return resultobj; | |
27777 | fail: | |
27778 | return NULL; | |
27779 | } | |
27780 | ||
27781 | ||
27782 | static PyObject *_wrap_Display_GetGeometry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27783 | PyObject *resultobj; | |
27784 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27785 | wxRect result; | |
27786 | PyObject * obj0 = 0 ; | |
27787 | char *kwnames[] = { | |
27788 | (char *) "self", NULL | |
27789 | }; | |
27790 | ||
27791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetGeometry",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)->GetGeometry(); | |
27797 | ||
27798 | wxPyEndAllowThreads(__tstate); | |
27799 | if (PyErr_Occurred()) SWIG_fail; | |
27800 | } | |
27801 | { | |
27802 | wxRect * resultptr; | |
27803 | resultptr = new wxRect((wxRect &) result); | |
27804 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
27805 | } | |
27806 | return resultobj; | |
27807 | fail: | |
27808 | return NULL; | |
27809 | } | |
27810 | ||
27811 | ||
27812 | static PyObject *_wrap_Display_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27813 | PyObject *resultobj; | |
27814 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27815 | wxString result; | |
27816 | PyObject * obj0 = 0 ; | |
27817 | char *kwnames[] = { | |
27818 | (char *) "self", NULL | |
27819 | }; | |
27820 | ||
27821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetName",kwnames,&obj0)) goto fail; | |
27822 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27823 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27824 | { | |
27825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27826 | result = ((wxDisplay const *)arg1)->GetName(); | |
27827 | ||
27828 | wxPyEndAllowThreads(__tstate); | |
27829 | if (PyErr_Occurred()) SWIG_fail; | |
27830 | } | |
27831 | { | |
27832 | #if wxUSE_UNICODE | |
27833 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
27834 | #else | |
27835 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
27836 | #endif | |
27837 | } | |
27838 | return resultobj; | |
27839 | fail: | |
27840 | return NULL; | |
27841 | } | |
27842 | ||
27843 | ||
27844 | static PyObject *_wrap_Display_IsPrimary(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27845 | PyObject *resultobj; | |
27846 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27847 | bool result; | |
27848 | PyObject * obj0 = 0 ; | |
27849 | char *kwnames[] = { | |
27850 | (char *) "self", NULL | |
27851 | }; | |
27852 | ||
27853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsPrimary",kwnames,&obj0)) goto fail; | |
27854 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27855 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27856 | { | |
27857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27858 | result = (bool)((wxDisplay const *)arg1)->IsPrimary(); | |
27859 | ||
27860 | wxPyEndAllowThreads(__tstate); | |
27861 | if (PyErr_Occurred()) SWIG_fail; | |
27862 | } | |
27863 | { | |
27864 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27865 | } | |
27866 | return resultobj; | |
27867 | fail: | |
27868 | return NULL; | |
27869 | } | |
27870 | ||
27871 | ||
27872 | static PyObject *_wrap_Display_GetModes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27873 | PyObject *resultobj; | |
27874 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27875 | wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ; | |
27876 | wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ; | |
27877 | PyObject *result; | |
27878 | PyObject * obj0 = 0 ; | |
27879 | PyObject * obj1 = 0 ; | |
27880 | char *kwnames[] = { | |
27881 | (char *) "self",(char *) "mode", NULL | |
27882 | }; | |
27883 | ||
27884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_GetModes",kwnames,&obj0,&obj1)) goto fail; | |
27885 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27886 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27887 | if (obj1) { | |
27888 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
27889 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27890 | SWIG_fail; | |
27891 | if (arg2 == NULL) { | |
27892 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27893 | SWIG_fail; | |
27894 | } | |
27895 | } | |
27896 | { | |
27897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27898 | result = (PyObject *)wxDisplay_GetModes(arg1,(wxVideoMode const &)*arg2); | |
27899 | ||
27900 | wxPyEndAllowThreads(__tstate); | |
27901 | if (PyErr_Occurred()) SWIG_fail; | |
27902 | } | |
27903 | resultobj = result; | |
27904 | return resultobj; | |
27905 | fail: | |
27906 | return NULL; | |
27907 | } | |
27908 | ||
27909 | ||
27910 | static PyObject *_wrap_Display_GetCurrentMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27911 | PyObject *resultobj; | |
27912 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27913 | wxVideoMode result; | |
27914 | PyObject * obj0 = 0 ; | |
27915 | char *kwnames[] = { | |
27916 | (char *) "self", NULL | |
27917 | }; | |
27918 | ||
27919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetCurrentMode",kwnames,&obj0)) goto fail; | |
27920 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27921 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27922 | { | |
27923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27924 | result = ((wxDisplay const *)arg1)->GetCurrentMode(); | |
27925 | ||
27926 | wxPyEndAllowThreads(__tstate); | |
27927 | if (PyErr_Occurred()) SWIG_fail; | |
27928 | } | |
27929 | { | |
27930 | wxVideoMode * resultptr; | |
27931 | resultptr = new wxVideoMode((wxVideoMode &) result); | |
27932 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVideoMode, 1); | |
27933 | } | |
27934 | return resultobj; | |
27935 | fail: | |
27936 | return NULL; | |
27937 | } | |
27938 | ||
27939 | ||
27940 | static PyObject *_wrap_Display_ChangeMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27941 | PyObject *resultobj; | |
27942 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27943 | wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ; | |
27944 | wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ; | |
27945 | bool result; | |
27946 | PyObject * obj0 = 0 ; | |
27947 | PyObject * obj1 = 0 ; | |
27948 | char *kwnames[] = { | |
27949 | (char *) "self",(char *) "mode", NULL | |
27950 | }; | |
27951 | ||
27952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_ChangeMode",kwnames,&obj0,&obj1)) goto fail; | |
27953 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27954 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27955 | if (obj1) { | |
27956 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
27957 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27958 | SWIG_fail; | |
27959 | if (arg2 == NULL) { | |
27960 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27961 | SWIG_fail; | |
27962 | } | |
27963 | } | |
27964 | { | |
27965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27966 | result = (bool)(arg1)->ChangeMode((wxVideoMode const &)*arg2); | |
27967 | ||
27968 | wxPyEndAllowThreads(__tstate); | |
27969 | if (PyErr_Occurred()) SWIG_fail; | |
27970 | } | |
27971 | { | |
27972 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27973 | } | |
27974 | return resultobj; | |
27975 | fail: | |
27976 | return NULL; | |
27977 | } | |
27978 | ||
27979 | ||
27980 | static PyObject *_wrap_Display_ResetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27981 | PyObject *resultobj; | |
27982 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27983 | PyObject * obj0 = 0 ; | |
27984 | char *kwnames[] = { | |
27985 | (char *) "self", NULL | |
27986 | }; | |
27987 | ||
27988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_ResetMode",kwnames,&obj0)) goto fail; | |
27989 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27990 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27991 | { | |
27992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27993 | (arg1)->ResetMode(); | |
27994 | ||
27995 | wxPyEndAllowThreads(__tstate); | |
27996 | if (PyErr_Occurred()) SWIG_fail; | |
27997 | } | |
27998 | Py_INCREF(Py_None); resultobj = Py_None; | |
27999 | return resultobj; | |
28000 | fail: | |
28001 | return NULL; | |
28002 | } | |
28003 | ||
28004 | ||
28005 | static PyObject * Display_swigregister(PyObject *self, PyObject *args) { | |
28006 | PyObject *obj; | |
28007 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28008 | SWIG_TypeClientData(SWIGTYPE_p_wxDisplay, obj); | |
28009 | Py_INCREF(obj); | |
28010 | return Py_BuildValue((char *)""); | |
28011 | } | |
28012 | static PyMethodDef SwigMethods[] = { | |
28013 | { (char *)"SystemSettings_GetColour", (PyCFunction) _wrap_SystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
28014 | { (char *)"SystemSettings_GetFont", (PyCFunction) _wrap_SystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
28015 | { (char *)"SystemSettings_GetMetric", (PyCFunction) _wrap_SystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS }, | |
28016 | { (char *)"SystemSettings_HasFeature", (PyCFunction) _wrap_SystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS }, | |
28017 | { (char *)"SystemSettings_GetScreenType", (PyCFunction) _wrap_SystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS }, | |
28018 | { (char *)"SystemSettings_SetScreenType", (PyCFunction) _wrap_SystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS }, | |
28019 | { (char *)"SystemSettings_swigregister", SystemSettings_swigregister, METH_VARARGS }, | |
28020 | { (char *)"new_SystemOptions", (PyCFunction) _wrap_new_SystemOptions, METH_VARARGS | METH_KEYWORDS }, | |
28021 | { (char *)"SystemOptions_SetOption", (PyCFunction) _wrap_SystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS }, | |
28022 | { (char *)"SystemOptions_SetOptionInt", (PyCFunction) _wrap_SystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
28023 | { (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS }, | |
28024 | { (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
28025 | { (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS }, | |
28026 | { (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS }, | |
28027 | { (char *)"NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS }, | |
28028 | { (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS }, | |
28029 | { (char *)"GetCurrentId", (PyCFunction) _wrap_GetCurrentId, METH_VARARGS | METH_KEYWORDS }, | |
28030 | { (char *)"Bell", (PyCFunction) _wrap_Bell, METH_VARARGS | METH_KEYWORDS }, | |
28031 | { (char *)"EndBusyCursor", (PyCFunction) _wrap_EndBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
28032 | { (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS }, | |
28033 | { (char *)"GetMousePosition", (PyCFunction) _wrap_GetMousePosition, METH_VARARGS | METH_KEYWORDS }, | |
28034 | { (char *)"IsBusy", (PyCFunction) _wrap_IsBusy, METH_VARARGS | METH_KEYWORDS }, | |
28035 | { (char *)"Now", (PyCFunction) _wrap_Now, METH_VARARGS | METH_KEYWORDS }, | |
28036 | { (char *)"Shell", (PyCFunction) _wrap_Shell, METH_VARARGS | METH_KEYWORDS }, | |
28037 | { (char *)"StartTimer", (PyCFunction) _wrap_StartTimer, METH_VARARGS | METH_KEYWORDS }, | |
28038 | { (char *)"GetOsVersion", (PyCFunction) _wrap_GetOsVersion, METH_VARARGS | METH_KEYWORDS }, | |
28039 | { (char *)"GetOsDescription", (PyCFunction) _wrap_GetOsDescription, METH_VARARGS | METH_KEYWORDS }, | |
28040 | { (char *)"GetFreeMemory", (PyCFunction) _wrap_GetFreeMemory, METH_VARARGS | METH_KEYWORDS }, | |
28041 | { (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS }, | |
28042 | { (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS }, | |
28043 | { (char *)"Usleep", (PyCFunction) _wrap_Usleep, METH_VARARGS | METH_KEYWORDS }, | |
28044 | { (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS }, | |
28045 | { (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS }, | |
28046 | { (char *)"GetEmailAddress", (PyCFunction) _wrap_GetEmailAddress, METH_VARARGS | METH_KEYWORDS }, | |
28047 | { (char *)"GetHostName", (PyCFunction) _wrap_GetHostName, METH_VARARGS | METH_KEYWORDS }, | |
28048 | { (char *)"GetFullHostName", (PyCFunction) _wrap_GetFullHostName, METH_VARARGS | METH_KEYWORDS }, | |
28049 | { (char *)"GetUserId", (PyCFunction) _wrap_GetUserId, METH_VARARGS | METH_KEYWORDS }, | |
28050 | { (char *)"GetUserName", (PyCFunction) _wrap_GetUserName, METH_VARARGS | METH_KEYWORDS }, | |
28051 | { (char *)"GetHomeDir", (PyCFunction) _wrap_GetHomeDir, METH_VARARGS | METH_KEYWORDS }, | |
28052 | { (char *)"GetUserHome", (PyCFunction) _wrap_GetUserHome, METH_VARARGS | METH_KEYWORDS }, | |
28053 | { (char *)"GetProcessId", (PyCFunction) _wrap_GetProcessId, METH_VARARGS | METH_KEYWORDS }, | |
28054 | { (char *)"Trap", (PyCFunction) _wrap_Trap, METH_VARARGS | METH_KEYWORDS }, | |
28055 | { (char *)"FileSelector", (PyCFunction) _wrap_FileSelector, METH_VARARGS | METH_KEYWORDS }, | |
28056 | { (char *)"LoadFileSelector", (PyCFunction) _wrap_LoadFileSelector, METH_VARARGS | METH_KEYWORDS }, | |
28057 | { (char *)"SaveFileSelector", (PyCFunction) _wrap_SaveFileSelector, METH_VARARGS | METH_KEYWORDS }, | |
28058 | { (char *)"DirSelector", (PyCFunction) _wrap_DirSelector, METH_VARARGS | METH_KEYWORDS }, | |
28059 | { (char *)"GetTextFromUser", (PyCFunction) _wrap_GetTextFromUser, METH_VARARGS | METH_KEYWORDS }, | |
28060 | { (char *)"GetPasswordFromUser", (PyCFunction) _wrap_GetPasswordFromUser, METH_VARARGS | METH_KEYWORDS }, | |
28061 | { (char *)"GetSingleChoice", (PyCFunction) _wrap_GetSingleChoice, METH_VARARGS | METH_KEYWORDS }, | |
28062 | { (char *)"GetSingleChoiceIndex", (PyCFunction) _wrap_GetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS }, | |
28063 | { (char *)"MessageBox", (PyCFunction) _wrap_MessageBox, METH_VARARGS | METH_KEYWORDS }, | |
28064 | { (char *)"GetNumberFromUser", (PyCFunction) _wrap_GetNumberFromUser, METH_VARARGS | METH_KEYWORDS }, | |
28065 | { (char *)"ColourDisplay", (PyCFunction) _wrap_ColourDisplay, METH_VARARGS | METH_KEYWORDS }, | |
28066 | { (char *)"DisplayDepth", (PyCFunction) _wrap_DisplayDepth, METH_VARARGS | METH_KEYWORDS }, | |
28067 | { (char *)"GetDisplayDepth", (PyCFunction) _wrap_GetDisplayDepth, METH_VARARGS | METH_KEYWORDS }, | |
28068 | { (char *)"DisplaySize", (PyCFunction) _wrap_DisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
28069 | { (char *)"GetDisplaySize", (PyCFunction) _wrap_GetDisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
28070 | { (char *)"DisplaySizeMM", (PyCFunction) _wrap_DisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, | |
28071 | { (char *)"GetDisplaySizeMM", (PyCFunction) _wrap_GetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, | |
28072 | { (char *)"ClientDisplayRect", (PyCFunction) _wrap_ClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, | |
28073 | { (char *)"GetClientDisplayRect", (PyCFunction) _wrap_GetClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, | |
28074 | { (char *)"SetCursor", (PyCFunction) _wrap_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
28075 | { (char *)"BeginBusyCursor", (PyCFunction) _wrap_BeginBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
28076 | { (char *)"GetActiveWindow", (PyCFunction) _wrap_GetActiveWindow, METH_VARARGS | METH_KEYWORDS }, | |
28077 | { (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
28078 | { (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
28079 | { (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS }, | |
28080 | { (char *)"GetKeyState", (PyCFunction) _wrap_GetKeyState, METH_VARARGS | METH_KEYWORDS }, | |
28081 | { (char *)"WakeUpMainThread", (PyCFunction) _wrap_WakeUpMainThread, METH_VARARGS | METH_KEYWORDS }, | |
28082 | { (char *)"MutexGuiEnter", (PyCFunction) _wrap_MutexGuiEnter, METH_VARARGS | METH_KEYWORDS }, | |
28083 | { (char *)"MutexGuiLeave", (PyCFunction) _wrap_MutexGuiLeave, METH_VARARGS | METH_KEYWORDS }, | |
28084 | { (char *)"new_MutexGuiLocker", (PyCFunction) _wrap_new_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, | |
28085 | { (char *)"delete_MutexGuiLocker", (PyCFunction) _wrap_delete_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, | |
28086 | { (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS }, | |
28087 | { (char *)"Thread_IsMain", (PyCFunction) _wrap_Thread_IsMain, METH_VARARGS | METH_KEYWORDS }, | |
28088 | { (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS }, | |
28089 | { (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS }, | |
28090 | { (char *)"ToolTip_GetTip", (PyCFunction) _wrap_ToolTip_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
28091 | { (char *)"ToolTip_GetWindow", (PyCFunction) _wrap_ToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
28092 | { (char *)"ToolTip_Enable", (PyCFunction) _wrap_ToolTip_Enable, METH_VARARGS | METH_KEYWORDS }, | |
28093 | { (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS }, | |
28094 | { (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS }, | |
28095 | { (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS }, | |
28096 | { (char *)"delete_Caret", (PyCFunction) _wrap_delete_Caret, METH_VARARGS | METH_KEYWORDS }, | |
28097 | { (char *)"Caret_IsOk", (PyCFunction) _wrap_Caret_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
28098 | { (char *)"Caret_IsVisible", (PyCFunction) _wrap_Caret_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
28099 | { (char *)"Caret_GetPosition", (PyCFunction) _wrap_Caret_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
28100 | { (char *)"Caret_GetPositionTuple", (PyCFunction) _wrap_Caret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
28101 | { (char *)"Caret_GetSize", (PyCFunction) _wrap_Caret_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
28102 | { (char *)"Caret_GetSizeTuple", (PyCFunction) _wrap_Caret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
28103 | { (char *)"Caret_GetWindow", (PyCFunction) _wrap_Caret_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
28104 | { (char *)"Caret_MoveXY", (PyCFunction) _wrap_Caret_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
28105 | { (char *)"Caret_Move", (PyCFunction) _wrap_Caret_Move, METH_VARARGS | METH_KEYWORDS }, | |
28106 | { (char *)"Caret_SetSizeWH", (PyCFunction) _wrap_Caret_SetSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
28107 | { (char *)"Caret_SetSize", (PyCFunction) _wrap_Caret_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
28108 | { (char *)"Caret_Show", (PyCFunction) _wrap_Caret_Show, METH_VARARGS | METH_KEYWORDS }, | |
28109 | { (char *)"Caret_Hide", (PyCFunction) _wrap_Caret_Hide, METH_VARARGS | METH_KEYWORDS }, | |
28110 | { (char *)"Caret_swigregister", Caret_swigregister, METH_VARARGS }, | |
28111 | { (char *)"Caret_GetBlinkTime", (PyCFunction) _wrap_Caret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS }, | |
28112 | { (char *)"Caret_SetBlinkTime", (PyCFunction) _wrap_Caret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS }, | |
28113 | { (char *)"new_BusyCursor", (PyCFunction) _wrap_new_BusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
28114 | { (char *)"delete_BusyCursor", (PyCFunction) _wrap_delete_BusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
28115 | { (char *)"BusyCursor_swigregister", BusyCursor_swigregister, METH_VARARGS }, | |
28116 | { (char *)"new_WindowDisabler", (PyCFunction) _wrap_new_WindowDisabler, METH_VARARGS | METH_KEYWORDS }, | |
28117 | { (char *)"delete_WindowDisabler", (PyCFunction) _wrap_delete_WindowDisabler, METH_VARARGS | METH_KEYWORDS }, | |
28118 | { (char *)"WindowDisabler_swigregister", WindowDisabler_swigregister, METH_VARARGS }, | |
28119 | { (char *)"new_BusyInfo", (PyCFunction) _wrap_new_BusyInfo, METH_VARARGS | METH_KEYWORDS }, | |
28120 | { (char *)"delete_BusyInfo", (PyCFunction) _wrap_delete_BusyInfo, METH_VARARGS | METH_KEYWORDS }, | |
28121 | { (char *)"BusyInfo_swigregister", BusyInfo_swigregister, METH_VARARGS }, | |
28122 | { (char *)"new_StopWatch", (PyCFunction) _wrap_new_StopWatch, METH_VARARGS | METH_KEYWORDS }, | |
28123 | { (char *)"StopWatch_Start", (PyCFunction) _wrap_StopWatch_Start, METH_VARARGS | METH_KEYWORDS }, | |
28124 | { (char *)"StopWatch_Pause", (PyCFunction) _wrap_StopWatch_Pause, METH_VARARGS | METH_KEYWORDS }, | |
28125 | { (char *)"StopWatch_Resume", (PyCFunction) _wrap_StopWatch_Resume, METH_VARARGS | METH_KEYWORDS }, | |
28126 | { (char *)"StopWatch_Time", (PyCFunction) _wrap_StopWatch_Time, METH_VARARGS | METH_KEYWORDS }, | |
28127 | { (char *)"StopWatch_swigregister", StopWatch_swigregister, METH_VARARGS }, | |
28128 | { (char *)"new_FileHistory", (PyCFunction) _wrap_new_FileHistory, METH_VARARGS | METH_KEYWORDS }, | |
28129 | { (char *)"delete_FileHistory", (PyCFunction) _wrap_delete_FileHistory, METH_VARARGS | METH_KEYWORDS }, | |
28130 | { (char *)"FileHistory_AddFileToHistory", (PyCFunction) _wrap_FileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS }, | |
28131 | { (char *)"FileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_FileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS }, | |
28132 | { (char *)"FileHistory_GetMaxFiles", (PyCFunction) _wrap_FileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS }, | |
28133 | { (char *)"FileHistory_UseMenu", (PyCFunction) _wrap_FileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS }, | |
28134 | { (char *)"FileHistory_RemoveMenu", (PyCFunction) _wrap_FileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS }, | |
28135 | { (char *)"FileHistory_Load", (PyCFunction) _wrap_FileHistory_Load, METH_VARARGS | METH_KEYWORDS }, | |
28136 | { (char *)"FileHistory_Save", (PyCFunction) _wrap_FileHistory_Save, METH_VARARGS | METH_KEYWORDS }, | |
28137 | { (char *)"FileHistory_AddFilesToMenu", (PyCFunction) _wrap_FileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS }, | |
28138 | { (char *)"FileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_FileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS }, | |
28139 | { (char *)"FileHistory_GetHistoryFile", (PyCFunction) _wrap_FileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS }, | |
28140 | { (char *)"FileHistory_GetCount", (PyCFunction) _wrap_FileHistory_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
28141 | { (char *)"FileHistory_swigregister", FileHistory_swigregister, METH_VARARGS }, | |
28142 | { (char *)"new_SingleInstanceChecker", (PyCFunction) _wrap_new_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
28143 | { (char *)"new_PreSingleInstanceChecker", (PyCFunction) _wrap_new_PreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
28144 | { (char *)"delete_SingleInstanceChecker", (PyCFunction) _wrap_delete_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
28145 | { (char *)"SingleInstanceChecker_Create", (PyCFunction) _wrap_SingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS }, | |
28146 | { (char *)"SingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_SingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS }, | |
28147 | { (char *)"SingleInstanceChecker_swigregister", SingleInstanceChecker_swigregister, METH_VARARGS }, | |
28148 | { (char *)"DrawWindowOnDC", (PyCFunction) _wrap_DrawWindowOnDC, METH_VARARGS | METH_KEYWORDS }, | |
28149 | { (char *)"delete_TipProvider", (PyCFunction) _wrap_delete_TipProvider, METH_VARARGS | METH_KEYWORDS }, | |
28150 | { (char *)"TipProvider_GetTip", (PyCFunction) _wrap_TipProvider_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
28151 | { (char *)"TipProvider_GetCurrentTip", (PyCFunction) _wrap_TipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS }, | |
28152 | { (char *)"TipProvider_PreprocessTip", (PyCFunction) _wrap_TipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS }, | |
28153 | { (char *)"TipProvider_swigregister", TipProvider_swigregister, METH_VARARGS }, | |
28154 | { (char *)"new_PyTipProvider", (PyCFunction) _wrap_new_PyTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
28155 | { (char *)"PyTipProvider__setCallbackInfo", (PyCFunction) _wrap_PyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28156 | { (char *)"PyTipProvider_swigregister", PyTipProvider_swigregister, METH_VARARGS }, | |
28157 | { (char *)"ShowTip", (PyCFunction) _wrap_ShowTip, METH_VARARGS | METH_KEYWORDS }, | |
28158 | { (char *)"CreateFileTipProvider", (PyCFunction) _wrap_CreateFileTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
28159 | { (char *)"new_Timer", (PyCFunction) _wrap_new_Timer, METH_VARARGS | METH_KEYWORDS }, | |
28160 | { (char *)"delete_Timer", (PyCFunction) _wrap_delete_Timer, METH_VARARGS | METH_KEYWORDS }, | |
28161 | { (char *)"Timer__setCallbackInfo", (PyCFunction) _wrap_Timer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28162 | { (char *)"Timer_SetOwner", (PyCFunction) _wrap_Timer_SetOwner, METH_VARARGS | METH_KEYWORDS }, | |
1a6bba1e | 28163 | { (char *)"Timer_GetOwner", (PyCFunction) _wrap_Timer_GetOwner, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
28164 | { (char *)"Timer_Start", (PyCFunction) _wrap_Timer_Start, METH_VARARGS | METH_KEYWORDS }, |
28165 | { (char *)"Timer_Stop", (PyCFunction) _wrap_Timer_Stop, METH_VARARGS | METH_KEYWORDS }, | |
28166 | { (char *)"Timer_IsRunning", (PyCFunction) _wrap_Timer_IsRunning, METH_VARARGS | METH_KEYWORDS }, | |
28167 | { (char *)"Timer_GetInterval", (PyCFunction) _wrap_Timer_GetInterval, METH_VARARGS | METH_KEYWORDS }, | |
28168 | { (char *)"Timer_IsOneShot", (PyCFunction) _wrap_Timer_IsOneShot, METH_VARARGS | METH_KEYWORDS }, | |
28169 | { (char *)"Timer_GetId", (PyCFunction) _wrap_Timer_GetId, METH_VARARGS | METH_KEYWORDS }, | |
28170 | { (char *)"Timer_swigregister", Timer_swigregister, METH_VARARGS }, | |
28171 | { (char *)"new_TimerEvent", (PyCFunction) _wrap_new_TimerEvent, METH_VARARGS | METH_KEYWORDS }, | |
28172 | { (char *)"TimerEvent_GetInterval", (PyCFunction) _wrap_TimerEvent_GetInterval, METH_VARARGS | METH_KEYWORDS }, | |
28173 | { (char *)"TimerEvent_swigregister", TimerEvent_swigregister, METH_VARARGS }, | |
28174 | { (char *)"new_TimerRunner", _wrap_new_TimerRunner, METH_VARARGS }, | |
28175 | { (char *)"delete_TimerRunner", (PyCFunction) _wrap_delete_TimerRunner, METH_VARARGS | METH_KEYWORDS }, | |
28176 | { (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS }, | |
28177 | { (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS }, | |
28178 | { (char *)"new_Log", (PyCFunction) _wrap_new_Log, METH_VARARGS | METH_KEYWORDS }, | |
28179 | { (char *)"Log_IsEnabled", (PyCFunction) _wrap_Log_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
28180 | { (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS }, | |
28181 | { (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS }, | |
28182 | { (char *)"Log_Flush", (PyCFunction) _wrap_Log_Flush, METH_VARARGS | METH_KEYWORDS }, | |
28183 | { (char *)"Log_FlushActive", (PyCFunction) _wrap_Log_FlushActive, METH_VARARGS | METH_KEYWORDS }, | |
28184 | { (char *)"Log_GetActiveTarget", (PyCFunction) _wrap_Log_GetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
28185 | { (char *)"Log_SetActiveTarget", (PyCFunction) _wrap_Log_SetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
28186 | { (char *)"Log_Suspend", (PyCFunction) _wrap_Log_Suspend, METH_VARARGS | METH_KEYWORDS }, | |
28187 | { (char *)"Log_Resume", (PyCFunction) _wrap_Log_Resume, METH_VARARGS | METH_KEYWORDS }, | |
28188 | { (char *)"Log_SetVerbose", (PyCFunction) _wrap_Log_SetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
28189 | { (char *)"Log_SetLogLevel", (PyCFunction) _wrap_Log_SetLogLevel, METH_VARARGS | METH_KEYWORDS }, | |
28190 | { (char *)"Log_DontCreateOnDemand", (PyCFunction) _wrap_Log_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS }, | |
28191 | { (char *)"Log_SetTraceMask", (PyCFunction) _wrap_Log_SetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
28192 | { (char *)"Log_AddTraceMask", (PyCFunction) _wrap_Log_AddTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
28193 | { (char *)"Log_RemoveTraceMask", (PyCFunction) _wrap_Log_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
28194 | { (char *)"Log_ClearTraceMasks", (PyCFunction) _wrap_Log_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS }, | |
28195 | { (char *)"Log_GetTraceMasks", (PyCFunction) _wrap_Log_GetTraceMasks, METH_VARARGS | METH_KEYWORDS }, | |
28196 | { (char *)"Log_SetTimestamp", (PyCFunction) _wrap_Log_SetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
28197 | { (char *)"Log_GetVerbose", (PyCFunction) _wrap_Log_GetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
28198 | { (char *)"Log_GetTraceMask", (PyCFunction) _wrap_Log_GetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
28199 | { (char *)"Log_IsAllowedTraceMask", (PyCFunction) _wrap_Log_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
28200 | { (char *)"Log_GetLogLevel", (PyCFunction) _wrap_Log_GetLogLevel, METH_VARARGS | METH_KEYWORDS }, | |
28201 | { (char *)"Log_GetTimestamp", (PyCFunction) _wrap_Log_GetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
28202 | { (char *)"Log_TimeStamp", (PyCFunction) _wrap_Log_TimeStamp, METH_VARARGS | METH_KEYWORDS }, | |
28203 | { (char *)"Log_Destroy", (PyCFunction) _wrap_Log_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
28204 | { (char *)"Log_swigregister", Log_swigregister, METH_VARARGS }, | |
28205 | { (char *)"new_LogStderr", (PyCFunction) _wrap_new_LogStderr, METH_VARARGS | METH_KEYWORDS }, | |
28206 | { (char *)"LogStderr_swigregister", LogStderr_swigregister, METH_VARARGS }, | |
28207 | { (char *)"new_LogTextCtrl", (PyCFunction) _wrap_new_LogTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
28208 | { (char *)"LogTextCtrl_swigregister", LogTextCtrl_swigregister, METH_VARARGS }, | |
28209 | { (char *)"new_LogGui", (PyCFunction) _wrap_new_LogGui, METH_VARARGS | METH_KEYWORDS }, | |
28210 | { (char *)"LogGui_swigregister", LogGui_swigregister, METH_VARARGS }, | |
28211 | { (char *)"new_LogWindow", (PyCFunction) _wrap_new_LogWindow, METH_VARARGS | METH_KEYWORDS }, | |
28212 | { (char *)"LogWindow_Show", (PyCFunction) _wrap_LogWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
28213 | { (char *)"LogWindow_GetFrame", (PyCFunction) _wrap_LogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS }, | |
28214 | { (char *)"LogWindow_GetOldLog", (PyCFunction) _wrap_LogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS }, | |
28215 | { (char *)"LogWindow_IsPassingMessages", (PyCFunction) _wrap_LogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
28216 | { (char *)"LogWindow_PassMessages", (PyCFunction) _wrap_LogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS }, | |
28217 | { (char *)"LogWindow_swigregister", LogWindow_swigregister, METH_VARARGS }, | |
28218 | { (char *)"new_LogChain", (PyCFunction) _wrap_new_LogChain, METH_VARARGS | METH_KEYWORDS }, | |
28219 | { (char *)"LogChain_SetLog", (PyCFunction) _wrap_LogChain_SetLog, METH_VARARGS | METH_KEYWORDS }, | |
28220 | { (char *)"LogChain_PassMessages", (PyCFunction) _wrap_LogChain_PassMessages, METH_VARARGS | METH_KEYWORDS }, | |
28221 | { (char *)"LogChain_IsPassingMessages", (PyCFunction) _wrap_LogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
28222 | { (char *)"LogChain_GetOldLog", (PyCFunction) _wrap_LogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS }, | |
28223 | { (char *)"LogChain_swigregister", LogChain_swigregister, METH_VARARGS }, | |
28224 | { (char *)"SysErrorCode", (PyCFunction) _wrap_SysErrorCode, METH_VARARGS | METH_KEYWORDS }, | |
28225 | { (char *)"SysErrorMsg", (PyCFunction) _wrap_SysErrorMsg, METH_VARARGS | METH_KEYWORDS }, | |
28226 | { (char *)"LogFatalError", (PyCFunction) _wrap_LogFatalError, METH_VARARGS | METH_KEYWORDS }, | |
28227 | { (char *)"LogError", (PyCFunction) _wrap_LogError, METH_VARARGS | METH_KEYWORDS }, | |
28228 | { (char *)"LogWarning", (PyCFunction) _wrap_LogWarning, METH_VARARGS | METH_KEYWORDS }, | |
28229 | { (char *)"LogMessage", (PyCFunction) _wrap_LogMessage, METH_VARARGS | METH_KEYWORDS }, | |
28230 | { (char *)"LogInfo", (PyCFunction) _wrap_LogInfo, METH_VARARGS | METH_KEYWORDS }, | |
28231 | { (char *)"LogDebug", (PyCFunction) _wrap_LogDebug, METH_VARARGS | METH_KEYWORDS }, | |
28232 | { (char *)"LogVerbose", (PyCFunction) _wrap_LogVerbose, METH_VARARGS | METH_KEYWORDS }, | |
28233 | { (char *)"LogStatus", (PyCFunction) _wrap_LogStatus, METH_VARARGS | METH_KEYWORDS }, | |
28234 | { (char *)"LogStatusFrame", (PyCFunction) _wrap_LogStatusFrame, METH_VARARGS | METH_KEYWORDS }, | |
28235 | { (char *)"LogSysError", (PyCFunction) _wrap_LogSysError, METH_VARARGS | METH_KEYWORDS }, | |
28236 | { (char *)"LogTrace", _wrap_LogTrace, METH_VARARGS }, | |
28237 | { (char *)"LogGeneric", (PyCFunction) _wrap_LogGeneric, METH_VARARGS | METH_KEYWORDS }, | |
28238 | { (char *)"SafeShowMessage", (PyCFunction) _wrap_SafeShowMessage, METH_VARARGS | METH_KEYWORDS }, | |
28239 | { (char *)"new_LogNull", (PyCFunction) _wrap_new_LogNull, METH_VARARGS | METH_KEYWORDS }, | |
28240 | { (char *)"delete_LogNull", (PyCFunction) _wrap_delete_LogNull, METH_VARARGS | METH_KEYWORDS }, | |
28241 | { (char *)"LogNull_swigregister", LogNull_swigregister, METH_VARARGS }, | |
28242 | { (char *)"new_PyLog", (PyCFunction) _wrap_new_PyLog, METH_VARARGS | METH_KEYWORDS }, | |
28243 | { (char *)"PyLog__setCallbackInfo", (PyCFunction) _wrap_PyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28244 | { (char *)"PyLog_swigregister", PyLog_swigregister, METH_VARARGS }, | |
28245 | { (char *)"Process_Kill", (PyCFunction) _wrap_Process_Kill, METH_VARARGS | METH_KEYWORDS }, | |
28246 | { (char *)"Process_Exists", (PyCFunction) _wrap_Process_Exists, METH_VARARGS | METH_KEYWORDS }, | |
28247 | { (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS }, | |
28248 | { (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS }, | |
28249 | { (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28250 | { (char *)"Process_base_OnTerminate", (PyCFunction) _wrap_Process_base_OnTerminate, METH_VARARGS | METH_KEYWORDS }, | |
28251 | { (char *)"Process_Redirect", (PyCFunction) _wrap_Process_Redirect, METH_VARARGS | METH_KEYWORDS }, | |
28252 | { (char *)"Process_IsRedirected", (PyCFunction) _wrap_Process_IsRedirected, METH_VARARGS | METH_KEYWORDS }, | |
28253 | { (char *)"Process_Detach", (PyCFunction) _wrap_Process_Detach, METH_VARARGS | METH_KEYWORDS }, | |
28254 | { (char *)"Process_GetInputStream", (PyCFunction) _wrap_Process_GetInputStream, METH_VARARGS | METH_KEYWORDS }, | |
28255 | { (char *)"Process_GetErrorStream", (PyCFunction) _wrap_Process_GetErrorStream, METH_VARARGS | METH_KEYWORDS }, | |
28256 | { (char *)"Process_GetOutputStream", (PyCFunction) _wrap_Process_GetOutputStream, METH_VARARGS | METH_KEYWORDS }, | |
28257 | { (char *)"Process_CloseOutput", (PyCFunction) _wrap_Process_CloseOutput, METH_VARARGS | METH_KEYWORDS }, | |
28258 | { (char *)"Process_IsInputOpened", (PyCFunction) _wrap_Process_IsInputOpened, METH_VARARGS | METH_KEYWORDS }, | |
28259 | { (char *)"Process_IsInputAvailable", (PyCFunction) _wrap_Process_IsInputAvailable, METH_VARARGS | METH_KEYWORDS }, | |
28260 | { (char *)"Process_IsErrorAvailable", (PyCFunction) _wrap_Process_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS }, | |
28261 | { (char *)"Process_swigregister", Process_swigregister, METH_VARARGS }, | |
28262 | { (char *)"new_ProcessEvent", (PyCFunction) _wrap_new_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, | |
28263 | { (char *)"ProcessEvent_GetPid", (PyCFunction) _wrap_ProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS }, | |
28264 | { (char *)"ProcessEvent_GetExitCode", (PyCFunction) _wrap_ProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS }, | |
28265 | { (char *)"ProcessEvent_m_pid_set", (PyCFunction) _wrap_ProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS }, | |
28266 | { (char *)"ProcessEvent_m_pid_get", (PyCFunction) _wrap_ProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS }, | |
28267 | { (char *)"ProcessEvent_m_exitcode_set", (PyCFunction) _wrap_ProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS }, | |
28268 | { (char *)"ProcessEvent_m_exitcode_get", (PyCFunction) _wrap_ProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS }, | |
28269 | { (char *)"ProcessEvent_swigregister", ProcessEvent_swigregister, METH_VARARGS }, | |
28270 | { (char *)"Execute", (PyCFunction) _wrap_Execute, METH_VARARGS | METH_KEYWORDS }, | |
28271 | { (char *)"new_Joystick", (PyCFunction) _wrap_new_Joystick, METH_VARARGS | METH_KEYWORDS }, | |
28272 | { (char *)"delete_Joystick", (PyCFunction) _wrap_delete_Joystick, METH_VARARGS | METH_KEYWORDS }, | |
28273 | { (char *)"Joystick_GetPosition", (PyCFunction) _wrap_Joystick_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
28274 | { (char *)"Joystick_GetZPosition", (PyCFunction) _wrap_Joystick_GetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
28275 | { (char *)"Joystick_GetButtonState", (PyCFunction) _wrap_Joystick_GetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
28276 | { (char *)"Joystick_GetPOVPosition", (PyCFunction) _wrap_Joystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS }, | |
28277 | { (char *)"Joystick_GetPOVCTSPosition", (PyCFunction) _wrap_Joystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS }, | |
28278 | { (char *)"Joystick_GetRudderPosition", (PyCFunction) _wrap_Joystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS }, | |
28279 | { (char *)"Joystick_GetUPosition", (PyCFunction) _wrap_Joystick_GetUPosition, METH_VARARGS | METH_KEYWORDS }, | |
28280 | { (char *)"Joystick_GetVPosition", (PyCFunction) _wrap_Joystick_GetVPosition, METH_VARARGS | METH_KEYWORDS }, | |
28281 | { (char *)"Joystick_GetMovementThreshold", (PyCFunction) _wrap_Joystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
28282 | { (char *)"Joystick_SetMovementThreshold", (PyCFunction) _wrap_Joystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
28283 | { (char *)"Joystick_IsOk", (PyCFunction) _wrap_Joystick_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
28284 | { (char *)"Joystick_GetNumberJoysticks", (PyCFunction) _wrap_Joystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS }, | |
28285 | { (char *)"Joystick_GetManufacturerId", (PyCFunction) _wrap_Joystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS }, | |
28286 | { (char *)"Joystick_GetProductId", (PyCFunction) _wrap_Joystick_GetProductId, METH_VARARGS | METH_KEYWORDS }, | |
28287 | { (char *)"Joystick_GetProductName", (PyCFunction) _wrap_Joystick_GetProductName, METH_VARARGS | METH_KEYWORDS }, | |
28288 | { (char *)"Joystick_GetXMin", (PyCFunction) _wrap_Joystick_GetXMin, METH_VARARGS | METH_KEYWORDS }, | |
28289 | { (char *)"Joystick_GetYMin", (PyCFunction) _wrap_Joystick_GetYMin, METH_VARARGS | METH_KEYWORDS }, | |
28290 | { (char *)"Joystick_GetZMin", (PyCFunction) _wrap_Joystick_GetZMin, METH_VARARGS | METH_KEYWORDS }, | |
28291 | { (char *)"Joystick_GetXMax", (PyCFunction) _wrap_Joystick_GetXMax, METH_VARARGS | METH_KEYWORDS }, | |
28292 | { (char *)"Joystick_GetYMax", (PyCFunction) _wrap_Joystick_GetYMax, METH_VARARGS | METH_KEYWORDS }, | |
28293 | { (char *)"Joystick_GetZMax", (PyCFunction) _wrap_Joystick_GetZMax, METH_VARARGS | METH_KEYWORDS }, | |
28294 | { (char *)"Joystick_GetNumberButtons", (PyCFunction) _wrap_Joystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS }, | |
28295 | { (char *)"Joystick_GetNumberAxes", (PyCFunction) _wrap_Joystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS }, | |
28296 | { (char *)"Joystick_GetMaxButtons", (PyCFunction) _wrap_Joystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS }, | |
28297 | { (char *)"Joystick_GetMaxAxes", (PyCFunction) _wrap_Joystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS }, | |
28298 | { (char *)"Joystick_GetPollingMin", (PyCFunction) _wrap_Joystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS }, | |
28299 | { (char *)"Joystick_GetPollingMax", (PyCFunction) _wrap_Joystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS }, | |
28300 | { (char *)"Joystick_GetRudderMin", (PyCFunction) _wrap_Joystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS }, | |
28301 | { (char *)"Joystick_GetRudderMax", (PyCFunction) _wrap_Joystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS }, | |
28302 | { (char *)"Joystick_GetUMin", (PyCFunction) _wrap_Joystick_GetUMin, METH_VARARGS | METH_KEYWORDS }, | |
28303 | { (char *)"Joystick_GetUMax", (PyCFunction) _wrap_Joystick_GetUMax, METH_VARARGS | METH_KEYWORDS }, | |
28304 | { (char *)"Joystick_GetVMin", (PyCFunction) _wrap_Joystick_GetVMin, METH_VARARGS | METH_KEYWORDS }, | |
28305 | { (char *)"Joystick_GetVMax", (PyCFunction) _wrap_Joystick_GetVMax, METH_VARARGS | METH_KEYWORDS }, | |
28306 | { (char *)"Joystick_HasRudder", (PyCFunction) _wrap_Joystick_HasRudder, METH_VARARGS | METH_KEYWORDS }, | |
28307 | { (char *)"Joystick_HasZ", (PyCFunction) _wrap_Joystick_HasZ, METH_VARARGS | METH_KEYWORDS }, | |
28308 | { (char *)"Joystick_HasU", (PyCFunction) _wrap_Joystick_HasU, METH_VARARGS | METH_KEYWORDS }, | |
28309 | { (char *)"Joystick_HasV", (PyCFunction) _wrap_Joystick_HasV, METH_VARARGS | METH_KEYWORDS }, | |
28310 | { (char *)"Joystick_HasPOV", (PyCFunction) _wrap_Joystick_HasPOV, METH_VARARGS | METH_KEYWORDS }, | |
28311 | { (char *)"Joystick_HasPOV4Dir", (PyCFunction) _wrap_Joystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS }, | |
28312 | { (char *)"Joystick_HasPOVCTS", (PyCFunction) _wrap_Joystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS }, | |
28313 | { (char *)"Joystick_SetCapture", (PyCFunction) _wrap_Joystick_SetCapture, METH_VARARGS | METH_KEYWORDS }, | |
28314 | { (char *)"Joystick_ReleaseCapture", (PyCFunction) _wrap_Joystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS }, | |
28315 | { (char *)"Joystick_swigregister", Joystick_swigregister, METH_VARARGS }, | |
28316 | { (char *)"JoystickEvent_m_pos_set", (PyCFunction) _wrap_JoystickEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS }, | |
28317 | { (char *)"JoystickEvent_m_pos_get", (PyCFunction) _wrap_JoystickEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS }, | |
28318 | { (char *)"JoystickEvent_m_zPosition_set", (PyCFunction) _wrap_JoystickEvent_m_zPosition_set, METH_VARARGS | METH_KEYWORDS }, | |
28319 | { (char *)"JoystickEvent_m_zPosition_get", (PyCFunction) _wrap_JoystickEvent_m_zPosition_get, METH_VARARGS | METH_KEYWORDS }, | |
28320 | { (char *)"JoystickEvent_m_buttonChange_set", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_set, METH_VARARGS | METH_KEYWORDS }, | |
28321 | { (char *)"JoystickEvent_m_buttonChange_get", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_get, METH_VARARGS | METH_KEYWORDS }, | |
28322 | { (char *)"JoystickEvent_m_buttonState_set", (PyCFunction) _wrap_JoystickEvent_m_buttonState_set, METH_VARARGS | METH_KEYWORDS }, | |
28323 | { (char *)"JoystickEvent_m_buttonState_get", (PyCFunction) _wrap_JoystickEvent_m_buttonState_get, METH_VARARGS | METH_KEYWORDS }, | |
28324 | { (char *)"JoystickEvent_m_joyStick_set", (PyCFunction) _wrap_JoystickEvent_m_joyStick_set, METH_VARARGS | METH_KEYWORDS }, | |
28325 | { (char *)"JoystickEvent_m_joyStick_get", (PyCFunction) _wrap_JoystickEvent_m_joyStick_get, METH_VARARGS | METH_KEYWORDS }, | |
28326 | { (char *)"new_JoystickEvent", (PyCFunction) _wrap_new_JoystickEvent, METH_VARARGS | METH_KEYWORDS }, | |
28327 | { (char *)"JoystickEvent_GetPosition", (PyCFunction) _wrap_JoystickEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
28328 | { (char *)"JoystickEvent_GetZPosition", (PyCFunction) _wrap_JoystickEvent_GetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
28329 | { (char *)"JoystickEvent_GetButtonState", (PyCFunction) _wrap_JoystickEvent_GetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
28330 | { (char *)"JoystickEvent_GetButtonChange", (PyCFunction) _wrap_JoystickEvent_GetButtonChange, METH_VARARGS | METH_KEYWORDS }, | |
28331 | { (char *)"JoystickEvent_GetJoystick", (PyCFunction) _wrap_JoystickEvent_GetJoystick, METH_VARARGS | METH_KEYWORDS }, | |
28332 | { (char *)"JoystickEvent_SetJoystick", (PyCFunction) _wrap_JoystickEvent_SetJoystick, METH_VARARGS | METH_KEYWORDS }, | |
28333 | { (char *)"JoystickEvent_SetButtonState", (PyCFunction) _wrap_JoystickEvent_SetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
28334 | { (char *)"JoystickEvent_SetButtonChange", (PyCFunction) _wrap_JoystickEvent_SetButtonChange, METH_VARARGS | METH_KEYWORDS }, | |
28335 | { (char *)"JoystickEvent_SetPosition", (PyCFunction) _wrap_JoystickEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
28336 | { (char *)"JoystickEvent_SetZPosition", (PyCFunction) _wrap_JoystickEvent_SetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
28337 | { (char *)"JoystickEvent_IsButton", (PyCFunction) _wrap_JoystickEvent_IsButton, METH_VARARGS | METH_KEYWORDS }, | |
28338 | { (char *)"JoystickEvent_IsMove", (PyCFunction) _wrap_JoystickEvent_IsMove, METH_VARARGS | METH_KEYWORDS }, | |
28339 | { (char *)"JoystickEvent_IsZMove", (PyCFunction) _wrap_JoystickEvent_IsZMove, METH_VARARGS | METH_KEYWORDS }, | |
28340 | { (char *)"JoystickEvent_ButtonDown", (PyCFunction) _wrap_JoystickEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS }, | |
28341 | { (char *)"JoystickEvent_ButtonUp", (PyCFunction) _wrap_JoystickEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS }, | |
28342 | { (char *)"JoystickEvent_ButtonIsDown", (PyCFunction) _wrap_JoystickEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS }, | |
28343 | { (char *)"JoystickEvent_swigregister", JoystickEvent_swigregister, METH_VARARGS }, | |
b1f29bf7 RD |
28344 | { (char *)"new_Sound", (PyCFunction) _wrap_new_Sound, METH_VARARGS | METH_KEYWORDS }, |
28345 | { (char *)"new_SoundFromData", (PyCFunction) _wrap_new_SoundFromData, METH_VARARGS | METH_KEYWORDS }, | |
d55e5bfc | 28346 | { (char *)"delete_Sound", (PyCFunction) _wrap_delete_Sound, METH_VARARGS | METH_KEYWORDS }, |
b1f29bf7 RD |
28347 | { (char *)"Sound_Create", (PyCFunction) _wrap_Sound_Create, METH_VARARGS | METH_KEYWORDS }, |
28348 | { (char *)"Sound_CreateFromData", (PyCFunction) _wrap_Sound_CreateFromData, METH_VARARGS | METH_KEYWORDS }, | |
d55e5bfc | 28349 | { (char *)"Sound_IsOk", (PyCFunction) _wrap_Sound_IsOk, METH_VARARGS | METH_KEYWORDS }, |
b1f29bf7 RD |
28350 | { (char *)"Sound_Play", (PyCFunction) _wrap_Sound_Play, METH_VARARGS | METH_KEYWORDS }, |
28351 | { (char *)"Sound_PlaySound", (PyCFunction) _wrap_Sound_PlaySound, METH_VARARGS | METH_KEYWORDS }, | |
d55e5bfc RD |
28352 | { (char *)"Sound_Stop", (PyCFunction) _wrap_Sound_Stop, METH_VARARGS | METH_KEYWORDS }, |
28353 | { (char *)"Sound_swigregister", Sound_swigregister, METH_VARARGS }, | |
28354 | { (char *)"new_FileTypeInfo", (PyCFunction) _wrap_new_FileTypeInfo, METH_VARARGS | METH_KEYWORDS }, | |
28355 | { (char *)"new_FileTypeInfoSequence", (PyCFunction) _wrap_new_FileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS }, | |
28356 | { (char *)"new_NullFileTypeInfo", (PyCFunction) _wrap_new_NullFileTypeInfo, METH_VARARGS | METH_KEYWORDS }, | |
28357 | { (char *)"FileTypeInfo_IsValid", (PyCFunction) _wrap_FileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS }, | |
28358 | { (char *)"FileTypeInfo_SetIcon", (PyCFunction) _wrap_FileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
28359 | { (char *)"FileTypeInfo_SetShortDesc", (PyCFunction) _wrap_FileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
28360 | { (char *)"FileTypeInfo_GetMimeType", (PyCFunction) _wrap_FileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
28361 | { (char *)"FileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_FileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
28362 | { (char *)"FileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_FileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
28363 | { (char *)"FileTypeInfo_GetShortDesc", (PyCFunction) _wrap_FileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
28364 | { (char *)"FileTypeInfo_GetDescription", (PyCFunction) _wrap_FileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
28365 | { (char *)"FileTypeInfo_GetExtensions", (PyCFunction) _wrap_FileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
28366 | { (char *)"FileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_FileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS }, | |
28367 | { (char *)"FileTypeInfo_GetIconFile", (PyCFunction) _wrap_FileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS }, | |
28368 | { (char *)"FileTypeInfo_GetIconIndex", (PyCFunction) _wrap_FileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS }, | |
28369 | { (char *)"FileTypeInfo_swigregister", FileTypeInfo_swigregister, METH_VARARGS }, | |
28370 | { (char *)"new_FileType", (PyCFunction) _wrap_new_FileType, METH_VARARGS | METH_KEYWORDS }, | |
28371 | { (char *)"delete_FileType", (PyCFunction) _wrap_delete_FileType, METH_VARARGS | METH_KEYWORDS }, | |
28372 | { (char *)"FileType_GetMimeType", (PyCFunction) _wrap_FileType_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
28373 | { (char *)"FileType_GetMimeTypes", (PyCFunction) _wrap_FileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
28374 | { (char *)"FileType_GetExtensions", (PyCFunction) _wrap_FileType_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
28375 | { (char *)"FileType_GetIcon", (PyCFunction) _wrap_FileType_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
28376 | { (char *)"FileType_GetIconInfo", (PyCFunction) _wrap_FileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS }, | |
28377 | { (char *)"FileType_GetDescription", (PyCFunction) _wrap_FileType_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
28378 | { (char *)"FileType_GetOpenCommand", (PyCFunction) _wrap_FileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
28379 | { (char *)"FileType_GetPrintCommand", (PyCFunction) _wrap_FileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
28380 | { (char *)"FileType_GetAllCommands", (PyCFunction) _wrap_FileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS }, | |
28381 | { (char *)"FileType_SetCommand", (PyCFunction) _wrap_FileType_SetCommand, METH_VARARGS | METH_KEYWORDS }, | |
28382 | { (char *)"FileType_SetDefaultIcon", (PyCFunction) _wrap_FileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS }, | |
28383 | { (char *)"FileType_Unassociate", (PyCFunction) _wrap_FileType_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
28384 | { (char *)"FileType_ExpandCommand", (PyCFunction) _wrap_FileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS }, | |
28385 | { (char *)"FileType_swigregister", FileType_swigregister, METH_VARARGS }, | |
28386 | { (char *)"MimeTypesManager_IsOfType", (PyCFunction) _wrap_MimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS }, | |
28387 | { (char *)"new_MimeTypesManager", (PyCFunction) _wrap_new_MimeTypesManager, METH_VARARGS | METH_KEYWORDS }, | |
28388 | { (char *)"MimeTypesManager_Initialize", (PyCFunction) _wrap_MimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS }, | |
28389 | { (char *)"MimeTypesManager_ClearData", (PyCFunction) _wrap_MimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS }, | |
28390 | { (char *)"MimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS }, | |
28391 | { (char *)"MimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS }, | |
28392 | { (char *)"MimeTypesManager_ReadMailcap", (PyCFunction) _wrap_MimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS }, | |
28393 | { (char *)"MimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_MimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
28394 | { (char *)"MimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_MimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS }, | |
28395 | { (char *)"MimeTypesManager_AddFallback", (PyCFunction) _wrap_MimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS }, | |
28396 | { (char *)"MimeTypesManager_Associate", (PyCFunction) _wrap_MimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS }, | |
28397 | { (char *)"MimeTypesManager_Unassociate", (PyCFunction) _wrap_MimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
28398 | { (char *)"delete_MimeTypesManager", (PyCFunction) _wrap_delete_MimeTypesManager, METH_VARARGS | METH_KEYWORDS }, | |
28399 | { (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS }, | |
28400 | { (char *)"new_ArtProvider", (PyCFunction) _wrap_new_ArtProvider, METH_VARARGS | METH_KEYWORDS }, | |
28401 | { (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28402 | { (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS }, | |
28403 | { (char *)"ArtProvider_PopProvider", (PyCFunction) _wrap_ArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS }, | |
28404 | { (char *)"ArtProvider_RemoveProvider", (PyCFunction) _wrap_ArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS }, | |
28405 | { (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
28406 | { (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
28407 | { (char *)"ArtProvider_Destroy", (PyCFunction) _wrap_ArtProvider_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
28408 | { (char *)"ArtProvider_swigregister", ArtProvider_swigregister, METH_VARARGS }, | |
28409 | { (char *)"delete_ConfigBase", (PyCFunction) _wrap_delete_ConfigBase, METH_VARARGS | METH_KEYWORDS }, | |
28410 | { (char *)"ConfigBase_Set", (PyCFunction) _wrap_ConfigBase_Set, METH_VARARGS | METH_KEYWORDS }, | |
28411 | { (char *)"ConfigBase_Get", (PyCFunction) _wrap_ConfigBase_Get, METH_VARARGS | METH_KEYWORDS }, | |
28412 | { (char *)"ConfigBase_Create", (PyCFunction) _wrap_ConfigBase_Create, METH_VARARGS | METH_KEYWORDS }, | |
28413 | { (char *)"ConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_ConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS }, | |
28414 | { (char *)"ConfigBase_SetPath", (PyCFunction) _wrap_ConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
28415 | { (char *)"ConfigBase_GetPath", (PyCFunction) _wrap_ConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
28416 | { (char *)"ConfigBase_GetFirstGroup", (PyCFunction) _wrap_ConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS }, | |
28417 | { (char *)"ConfigBase_GetNextGroup", (PyCFunction) _wrap_ConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS }, | |
28418 | { (char *)"ConfigBase_GetFirstEntry", (PyCFunction) _wrap_ConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS }, | |
28419 | { (char *)"ConfigBase_GetNextEntry", (PyCFunction) _wrap_ConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS }, | |
28420 | { (char *)"ConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_ConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS }, | |
28421 | { (char *)"ConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_ConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS }, | |
28422 | { (char *)"ConfigBase_HasGroup", (PyCFunction) _wrap_ConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS }, | |
28423 | { (char *)"ConfigBase_HasEntry", (PyCFunction) _wrap_ConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS }, | |
28424 | { (char *)"ConfigBase_Exists", (PyCFunction) _wrap_ConfigBase_Exists, METH_VARARGS | METH_KEYWORDS }, | |
28425 | { (char *)"ConfigBase_GetEntryType", (PyCFunction) _wrap_ConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS }, | |
28426 | { (char *)"ConfigBase_Read", (PyCFunction) _wrap_ConfigBase_Read, METH_VARARGS | METH_KEYWORDS }, | |
28427 | { (char *)"ConfigBase_ReadInt", (PyCFunction) _wrap_ConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS }, | |
28428 | { (char *)"ConfigBase_ReadFloat", (PyCFunction) _wrap_ConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS }, | |
28429 | { (char *)"ConfigBase_ReadBool", (PyCFunction) _wrap_ConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS }, | |
28430 | { (char *)"ConfigBase_Write", (PyCFunction) _wrap_ConfigBase_Write, METH_VARARGS | METH_KEYWORDS }, | |
28431 | { (char *)"ConfigBase_WriteInt", (PyCFunction) _wrap_ConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS }, | |
28432 | { (char *)"ConfigBase_WriteFloat", (PyCFunction) _wrap_ConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS }, | |
28433 | { (char *)"ConfigBase_WriteBool", (PyCFunction) _wrap_ConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS }, | |
28434 | { (char *)"ConfigBase_Flush", (PyCFunction) _wrap_ConfigBase_Flush, METH_VARARGS | METH_KEYWORDS }, | |
28435 | { (char *)"ConfigBase_RenameEntry", (PyCFunction) _wrap_ConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS }, | |
28436 | { (char *)"ConfigBase_RenameGroup", (PyCFunction) _wrap_ConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS }, | |
28437 | { (char *)"ConfigBase_DeleteEntry", (PyCFunction) _wrap_ConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS }, | |
28438 | { (char *)"ConfigBase_DeleteGroup", (PyCFunction) _wrap_ConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS }, | |
28439 | { (char *)"ConfigBase_DeleteAll", (PyCFunction) _wrap_ConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS }, | |
28440 | { (char *)"ConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_ConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
28441 | { (char *)"ConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_ConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
28442 | { (char *)"ConfigBase_SetRecordDefaults", (PyCFunction) _wrap_ConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS }, | |
28443 | { (char *)"ConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_ConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS }, | |
28444 | { (char *)"ConfigBase_ExpandEnvVars", (PyCFunction) _wrap_ConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
28445 | { (char *)"ConfigBase_GetAppName", (PyCFunction) _wrap_ConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS }, | |
28446 | { (char *)"ConfigBase_GetVendorName", (PyCFunction) _wrap_ConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
28447 | { (char *)"ConfigBase_SetAppName", (PyCFunction) _wrap_ConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS }, | |
28448 | { (char *)"ConfigBase_SetVendorName", (PyCFunction) _wrap_ConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
28449 | { (char *)"ConfigBase_SetStyle", (PyCFunction) _wrap_ConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
28450 | { (char *)"ConfigBase_GetStyle", (PyCFunction) _wrap_ConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
28451 | { (char *)"ConfigBase_swigregister", ConfigBase_swigregister, METH_VARARGS }, | |
28452 | { (char *)"new_Config", (PyCFunction) _wrap_new_Config, METH_VARARGS | METH_KEYWORDS }, | |
28453 | { (char *)"delete_Config", (PyCFunction) _wrap_delete_Config, METH_VARARGS | METH_KEYWORDS }, | |
28454 | { (char *)"Config_swigregister", Config_swigregister, METH_VARARGS }, | |
28455 | { (char *)"new_FileConfig", (PyCFunction) _wrap_new_FileConfig, METH_VARARGS | METH_KEYWORDS }, | |
28456 | { (char *)"delete_FileConfig", (PyCFunction) _wrap_delete_FileConfig, METH_VARARGS | METH_KEYWORDS }, | |
28457 | { (char *)"FileConfig_swigregister", FileConfig_swigregister, METH_VARARGS }, | |
28458 | { (char *)"new_ConfigPathChanger", (PyCFunction) _wrap_new_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS }, | |
28459 | { (char *)"delete_ConfigPathChanger", (PyCFunction) _wrap_delete_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS }, | |
28460 | { (char *)"ConfigPathChanger_Name", (PyCFunction) _wrap_ConfigPathChanger_Name, METH_VARARGS | METH_KEYWORDS }, | |
28461 | { (char *)"ConfigPathChanger_swigregister", ConfigPathChanger_swigregister, METH_VARARGS }, | |
28462 | { (char *)"ExpandEnvVars", (PyCFunction) _wrap_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
28463 | { (char *)"DateTime_SetCountry", (PyCFunction) _wrap_DateTime_SetCountry, METH_VARARGS | METH_KEYWORDS }, | |
28464 | { (char *)"DateTime_GetCountry", (PyCFunction) _wrap_DateTime_GetCountry, METH_VARARGS | METH_KEYWORDS }, | |
28465 | { (char *)"DateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_DateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS }, | |
28466 | { (char *)"DateTime_GetCurrentYear", (PyCFunction) _wrap_DateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS }, | |
28467 | { (char *)"DateTime_ConvertYearToBC", (PyCFunction) _wrap_DateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS }, | |
28468 | { (char *)"DateTime_GetCurrentMonth", (PyCFunction) _wrap_DateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS }, | |
28469 | { (char *)"DateTime_IsLeapYear", (PyCFunction) _wrap_DateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS }, | |
28470 | { (char *)"DateTime_GetCentury", (PyCFunction) _wrap_DateTime_GetCentury, METH_VARARGS | METH_KEYWORDS }, | |
28471 | { (char *)"DateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_DateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS }, | |
28472 | { (char *)"DateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_DateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS }, | |
28473 | { (char *)"DateTime_GetMonthName", (PyCFunction) _wrap_DateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS }, | |
28474 | { (char *)"DateTime_GetWeekDayName", (PyCFunction) _wrap_DateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS }, | |
28475 | { (char *)"DateTime_GetAmPmStrings", (PyCFunction) _wrap_DateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS }, | |
28476 | { (char *)"DateTime_IsDSTApplicable", (PyCFunction) _wrap_DateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS }, | |
28477 | { (char *)"DateTime_GetBeginDST", (PyCFunction) _wrap_DateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS }, | |
28478 | { (char *)"DateTime_GetEndDST", (PyCFunction) _wrap_DateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS }, | |
28479 | { (char *)"DateTime_Now", (PyCFunction) _wrap_DateTime_Now, METH_VARARGS | METH_KEYWORDS }, | |
28480 | { (char *)"DateTime_UNow", (PyCFunction) _wrap_DateTime_UNow, METH_VARARGS | METH_KEYWORDS }, | |
28481 | { (char *)"DateTime_Today", (PyCFunction) _wrap_DateTime_Today, METH_VARARGS | METH_KEYWORDS }, | |
28482 | { (char *)"new_DateTime", (PyCFunction) _wrap_new_DateTime, METH_VARARGS | METH_KEYWORDS }, | |
28483 | { (char *)"new_DateTimeFromTimeT", (PyCFunction) _wrap_new_DateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS }, | |
28484 | { (char *)"new_DateTimeFromJDN", (PyCFunction) _wrap_new_DateTimeFromJDN, METH_VARARGS | METH_KEYWORDS }, | |
28485 | { (char *)"new_DateTimeFromHMS", (PyCFunction) _wrap_new_DateTimeFromHMS, METH_VARARGS | METH_KEYWORDS }, | |
28486 | { (char *)"new_DateTimeFromDMY", (PyCFunction) _wrap_new_DateTimeFromDMY, METH_VARARGS | METH_KEYWORDS }, | |
28487 | { (char *)"delete_DateTime", (PyCFunction) _wrap_delete_DateTime, METH_VARARGS | METH_KEYWORDS }, | |
28488 | { (char *)"DateTime_SetToCurrent", (PyCFunction) _wrap_DateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS }, | |
28489 | { (char *)"DateTime_SetTimeT", (PyCFunction) _wrap_DateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS }, | |
28490 | { (char *)"DateTime_SetJDN", (PyCFunction) _wrap_DateTime_SetJDN, METH_VARARGS | METH_KEYWORDS }, | |
28491 | { (char *)"DateTime_SetHMS", (PyCFunction) _wrap_DateTime_SetHMS, METH_VARARGS | METH_KEYWORDS }, | |
28492 | { (char *)"DateTime_Set", (PyCFunction) _wrap_DateTime_Set, METH_VARARGS | METH_KEYWORDS }, | |
28493 | { (char *)"DateTime_ResetTime", (PyCFunction) _wrap_DateTime_ResetTime, METH_VARARGS | METH_KEYWORDS }, | |
28494 | { (char *)"DateTime_SetYear", (PyCFunction) _wrap_DateTime_SetYear, METH_VARARGS | METH_KEYWORDS }, | |
28495 | { (char *)"DateTime_SetMonth", (PyCFunction) _wrap_DateTime_SetMonth, METH_VARARGS | METH_KEYWORDS }, | |
28496 | { (char *)"DateTime_SetDay", (PyCFunction) _wrap_DateTime_SetDay, METH_VARARGS | METH_KEYWORDS }, | |
28497 | { (char *)"DateTime_SetHour", (PyCFunction) _wrap_DateTime_SetHour, METH_VARARGS | METH_KEYWORDS }, | |
28498 | { (char *)"DateTime_SetMinute", (PyCFunction) _wrap_DateTime_SetMinute, METH_VARARGS | METH_KEYWORDS }, | |
28499 | { (char *)"DateTime_SetSecond", (PyCFunction) _wrap_DateTime_SetSecond, METH_VARARGS | METH_KEYWORDS }, | |
28500 | { (char *)"DateTime_SetMillisecond", (PyCFunction) _wrap_DateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS }, | |
28501 | { (char *)"DateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS }, | |
28502 | { (char *)"DateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS }, | |
28503 | { (char *)"DateTime_SetToNextWeekDay", (PyCFunction) _wrap_DateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28504 | { (char *)"DateTime_GetNextWeekDay", (PyCFunction) _wrap_DateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28505 | { (char *)"DateTime_SetToPrevWeekDay", (PyCFunction) _wrap_DateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28506 | { (char *)"DateTime_GetPrevWeekDay", (PyCFunction) _wrap_DateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28507 | { (char *)"DateTime_SetToWeekDay", (PyCFunction) _wrap_DateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28508 | { (char *)"DateTime_SetToLastWeekDay", (PyCFunction) _wrap_DateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28509 | { (char *)"DateTime_GetLastWeekDay", (PyCFunction) _wrap_DateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28510 | { (char *)"DateTime_SetToTheWeek", (PyCFunction) _wrap_DateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS }, | |
28511 | { (char *)"DateTime_GetWeek", (PyCFunction) _wrap_DateTime_GetWeek, METH_VARARGS | METH_KEYWORDS }, | |
28512 | { (char *)"DateTime_SetToLastMonthDay", (PyCFunction) _wrap_DateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS }, | |
28513 | { (char *)"DateTime_GetLastMonthDay", (PyCFunction) _wrap_DateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS }, | |
28514 | { (char *)"DateTime_SetToYearDay", (PyCFunction) _wrap_DateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS }, | |
28515 | { (char *)"DateTime_GetYearDay", (PyCFunction) _wrap_DateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS }, | |
28516 | { (char *)"DateTime_GetJulianDayNumber", (PyCFunction) _wrap_DateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS }, | |
28517 | { (char *)"DateTime_GetJDN", (PyCFunction) _wrap_DateTime_GetJDN, METH_VARARGS | METH_KEYWORDS }, | |
28518 | { (char *)"DateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_DateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS }, | |
28519 | { (char *)"DateTime_GetMJD", (PyCFunction) _wrap_DateTime_GetMJD, METH_VARARGS | METH_KEYWORDS }, | |
28520 | { (char *)"DateTime_GetRataDie", (PyCFunction) _wrap_DateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS }, | |
28521 | { (char *)"DateTime_ToTimezone", (PyCFunction) _wrap_DateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS }, | |
28522 | { (char *)"DateTime_MakeTimezone", (PyCFunction) _wrap_DateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS }, | |
28523 | { (char *)"DateTime_ToGMT", (PyCFunction) _wrap_DateTime_ToGMT, METH_VARARGS | METH_KEYWORDS }, | |
28524 | { (char *)"DateTime_MakeGMT", (PyCFunction) _wrap_DateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS }, | |
28525 | { (char *)"DateTime_IsDST", (PyCFunction) _wrap_DateTime_IsDST, METH_VARARGS | METH_KEYWORDS }, | |
28526 | { (char *)"DateTime_IsValid", (PyCFunction) _wrap_DateTime_IsValid, METH_VARARGS | METH_KEYWORDS }, | |
28527 | { (char *)"DateTime_GetTicks", (PyCFunction) _wrap_DateTime_GetTicks, METH_VARARGS | METH_KEYWORDS }, | |
28528 | { (char *)"DateTime_GetYear", (PyCFunction) _wrap_DateTime_GetYear, METH_VARARGS | METH_KEYWORDS }, | |
28529 | { (char *)"DateTime_GetMonth", (PyCFunction) _wrap_DateTime_GetMonth, METH_VARARGS | METH_KEYWORDS }, | |
28530 | { (char *)"DateTime_GetDay", (PyCFunction) _wrap_DateTime_GetDay, METH_VARARGS | METH_KEYWORDS }, | |
28531 | { (char *)"DateTime_GetWeekDay", (PyCFunction) _wrap_DateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28532 | { (char *)"DateTime_GetHour", (PyCFunction) _wrap_DateTime_GetHour, METH_VARARGS | METH_KEYWORDS }, | |
28533 | { (char *)"DateTime_GetMinute", (PyCFunction) _wrap_DateTime_GetMinute, METH_VARARGS | METH_KEYWORDS }, | |
28534 | { (char *)"DateTime_GetSecond", (PyCFunction) _wrap_DateTime_GetSecond, METH_VARARGS | METH_KEYWORDS }, | |
28535 | { (char *)"DateTime_GetMillisecond", (PyCFunction) _wrap_DateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS }, | |
28536 | { (char *)"DateTime_GetDayOfYear", (PyCFunction) _wrap_DateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS }, | |
28537 | { (char *)"DateTime_GetWeekOfYear", (PyCFunction) _wrap_DateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS }, | |
28538 | { (char *)"DateTime_GetWeekOfMonth", (PyCFunction) _wrap_DateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS }, | |
28539 | { (char *)"DateTime_IsWorkDay", (PyCFunction) _wrap_DateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS }, | |
28540 | { (char *)"DateTime_IsEqualTo", (PyCFunction) _wrap_DateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS }, | |
28541 | { (char *)"DateTime_IsEarlierThan", (PyCFunction) _wrap_DateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS }, | |
28542 | { (char *)"DateTime_IsLaterThan", (PyCFunction) _wrap_DateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS }, | |
28543 | { (char *)"DateTime_IsStrictlyBetween", (PyCFunction) _wrap_DateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS }, | |
28544 | { (char *)"DateTime_IsBetween", (PyCFunction) _wrap_DateTime_IsBetween, METH_VARARGS | METH_KEYWORDS }, | |
28545 | { (char *)"DateTime_IsSameDate", (PyCFunction) _wrap_DateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS }, | |
28546 | { (char *)"DateTime_IsSameTime", (PyCFunction) _wrap_DateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS }, | |
28547 | { (char *)"DateTime_IsEqualUpTo", (PyCFunction) _wrap_DateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS }, | |
28548 | { (char *)"DateTime_AddTS", (PyCFunction) _wrap_DateTime_AddTS, METH_VARARGS | METH_KEYWORDS }, | |
28549 | { (char *)"DateTime_AddDS", (PyCFunction) _wrap_DateTime_AddDS, METH_VARARGS | METH_KEYWORDS }, | |
28550 | { (char *)"DateTime_SubtractTS", (PyCFunction) _wrap_DateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS }, | |
28551 | { (char *)"DateTime_SubtractDS", (PyCFunction) _wrap_DateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS }, | |
28552 | { (char *)"DateTime_Subtract", (PyCFunction) _wrap_DateTime_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
28553 | { (char *)"DateTime___iadd__", _wrap_DateTime___iadd__, METH_VARARGS }, | |
28554 | { (char *)"DateTime___isub__", _wrap_DateTime___isub__, METH_VARARGS }, | |
28555 | { (char *)"DateTime___add__", _wrap_DateTime___add__, METH_VARARGS }, | |
28556 | { (char *)"DateTime___sub__", _wrap_DateTime___sub__, METH_VARARGS }, | |
28557 | { (char *)"DateTime___lt__", _wrap_DateTime___lt__, METH_VARARGS }, | |
28558 | { (char *)"DateTime___le__", _wrap_DateTime___le__, METH_VARARGS }, | |
28559 | { (char *)"DateTime___gt__", _wrap_DateTime___gt__, METH_VARARGS }, | |
28560 | { (char *)"DateTime___ge__", _wrap_DateTime___ge__, METH_VARARGS }, | |
28561 | { (char *)"DateTime___eq__", _wrap_DateTime___eq__, METH_VARARGS }, | |
28562 | { (char *)"DateTime___ne__", _wrap_DateTime___ne__, METH_VARARGS }, | |
28563 | { (char *)"DateTime_ParseRfc822Date", (PyCFunction) _wrap_DateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS }, | |
28564 | { (char *)"DateTime_ParseFormat", (PyCFunction) _wrap_DateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS }, | |
28565 | { (char *)"DateTime_ParseDateTime", (PyCFunction) _wrap_DateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS }, | |
28566 | { (char *)"DateTime_ParseDate", (PyCFunction) _wrap_DateTime_ParseDate, METH_VARARGS | METH_KEYWORDS }, | |
28567 | { (char *)"DateTime_ParseTime", (PyCFunction) _wrap_DateTime_ParseTime, METH_VARARGS | METH_KEYWORDS }, | |
28568 | { (char *)"DateTime_Format", (PyCFunction) _wrap_DateTime_Format, METH_VARARGS | METH_KEYWORDS }, | |
28569 | { (char *)"DateTime_FormatDate", (PyCFunction) _wrap_DateTime_FormatDate, METH_VARARGS | METH_KEYWORDS }, | |
28570 | { (char *)"DateTime_FormatTime", (PyCFunction) _wrap_DateTime_FormatTime, METH_VARARGS | METH_KEYWORDS }, | |
28571 | { (char *)"DateTime_FormatISODate", (PyCFunction) _wrap_DateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS }, | |
28572 | { (char *)"DateTime_FormatISOTime", (PyCFunction) _wrap_DateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS }, | |
28573 | { (char *)"DateTime_swigregister", DateTime_swigregister, METH_VARARGS }, | |
28574 | { (char *)"TimeSpan_Seconds", (PyCFunction) _wrap_TimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS }, | |
28575 | { (char *)"TimeSpan_Second", (PyCFunction) _wrap_TimeSpan_Second, METH_VARARGS | METH_KEYWORDS }, | |
28576 | { (char *)"TimeSpan_Minutes", (PyCFunction) _wrap_TimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS }, | |
28577 | { (char *)"TimeSpan_Minute", (PyCFunction) _wrap_TimeSpan_Minute, METH_VARARGS | METH_KEYWORDS }, | |
28578 | { (char *)"TimeSpan_Hours", (PyCFunction) _wrap_TimeSpan_Hours, METH_VARARGS | METH_KEYWORDS }, | |
28579 | { (char *)"TimeSpan_Hour", (PyCFunction) _wrap_TimeSpan_Hour, METH_VARARGS | METH_KEYWORDS }, | |
28580 | { (char *)"TimeSpan_Days", (PyCFunction) _wrap_TimeSpan_Days, METH_VARARGS | METH_KEYWORDS }, | |
28581 | { (char *)"TimeSpan_Day", (PyCFunction) _wrap_TimeSpan_Day, METH_VARARGS | METH_KEYWORDS }, | |
28582 | { (char *)"TimeSpan_Weeks", (PyCFunction) _wrap_TimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS }, | |
28583 | { (char *)"TimeSpan_Week", (PyCFunction) _wrap_TimeSpan_Week, METH_VARARGS | METH_KEYWORDS }, | |
28584 | { (char *)"new_TimeSpan", (PyCFunction) _wrap_new_TimeSpan, METH_VARARGS | METH_KEYWORDS }, | |
28585 | { (char *)"delete_TimeSpan", (PyCFunction) _wrap_delete_TimeSpan, METH_VARARGS | METH_KEYWORDS }, | |
28586 | { (char *)"TimeSpan_Add", (PyCFunction) _wrap_TimeSpan_Add, METH_VARARGS | METH_KEYWORDS }, | |
28587 | { (char *)"TimeSpan_Subtract", (PyCFunction) _wrap_TimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
28588 | { (char *)"TimeSpan_Multiply", (PyCFunction) _wrap_TimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS }, | |
28589 | { (char *)"TimeSpan_Neg", (PyCFunction) _wrap_TimeSpan_Neg, METH_VARARGS | METH_KEYWORDS }, | |
28590 | { (char *)"TimeSpan_Abs", (PyCFunction) _wrap_TimeSpan_Abs, METH_VARARGS | METH_KEYWORDS }, | |
28591 | { (char *)"TimeSpan___iadd__", (PyCFunction) _wrap_TimeSpan___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
28592 | { (char *)"TimeSpan___isub__", (PyCFunction) _wrap_TimeSpan___isub__, METH_VARARGS | METH_KEYWORDS }, | |
28593 | { (char *)"TimeSpan___imul__", (PyCFunction) _wrap_TimeSpan___imul__, METH_VARARGS | METH_KEYWORDS }, | |
28594 | { (char *)"TimeSpan___neg__", (PyCFunction) _wrap_TimeSpan___neg__, METH_VARARGS | METH_KEYWORDS }, | |
28595 | { (char *)"TimeSpan___add__", (PyCFunction) _wrap_TimeSpan___add__, METH_VARARGS | METH_KEYWORDS }, | |
28596 | { (char *)"TimeSpan___sub__", (PyCFunction) _wrap_TimeSpan___sub__, METH_VARARGS | METH_KEYWORDS }, | |
28597 | { (char *)"TimeSpan___mul__", (PyCFunction) _wrap_TimeSpan___mul__, METH_VARARGS | METH_KEYWORDS }, | |
28598 | { (char *)"TimeSpan___rmul__", (PyCFunction) _wrap_TimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS }, | |
28599 | { (char *)"TimeSpan___lt__", (PyCFunction) _wrap_TimeSpan___lt__, METH_VARARGS | METH_KEYWORDS }, | |
28600 | { (char *)"TimeSpan___le__", (PyCFunction) _wrap_TimeSpan___le__, METH_VARARGS | METH_KEYWORDS }, | |
28601 | { (char *)"TimeSpan___gt__", (PyCFunction) _wrap_TimeSpan___gt__, METH_VARARGS | METH_KEYWORDS }, | |
28602 | { (char *)"TimeSpan___ge__", (PyCFunction) _wrap_TimeSpan___ge__, METH_VARARGS | METH_KEYWORDS }, | |
28603 | { (char *)"TimeSpan___eq__", (PyCFunction) _wrap_TimeSpan___eq__, METH_VARARGS | METH_KEYWORDS }, | |
28604 | { (char *)"TimeSpan___ne__", (PyCFunction) _wrap_TimeSpan___ne__, METH_VARARGS | METH_KEYWORDS }, | |
28605 | { (char *)"TimeSpan_IsNull", (PyCFunction) _wrap_TimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS }, | |
28606 | { (char *)"TimeSpan_IsPositive", (PyCFunction) _wrap_TimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS }, | |
28607 | { (char *)"TimeSpan_IsNegative", (PyCFunction) _wrap_TimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS }, | |
28608 | { (char *)"TimeSpan_IsEqualTo", (PyCFunction) _wrap_TimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS }, | |
28609 | { (char *)"TimeSpan_IsLongerThan", (PyCFunction) _wrap_TimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS }, | |
28610 | { (char *)"TimeSpan_IsShorterThan", (PyCFunction) _wrap_TimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS }, | |
28611 | { (char *)"TimeSpan_GetWeeks", (PyCFunction) _wrap_TimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
28612 | { (char *)"TimeSpan_GetDays", (PyCFunction) _wrap_TimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS }, | |
28613 | { (char *)"TimeSpan_GetHours", (PyCFunction) _wrap_TimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS }, | |
28614 | { (char *)"TimeSpan_GetMinutes", (PyCFunction) _wrap_TimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS }, | |
28615 | { (char *)"TimeSpan_GetSeconds", (PyCFunction) _wrap_TimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS }, | |
28616 | { (char *)"TimeSpan_GetMilliseconds", (PyCFunction) _wrap_TimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS }, | |
28617 | { (char *)"TimeSpan_Format", (PyCFunction) _wrap_TimeSpan_Format, METH_VARARGS | METH_KEYWORDS }, | |
28618 | { (char *)"TimeSpan_swigregister", TimeSpan_swigregister, METH_VARARGS }, | |
28619 | { (char *)"new_DateSpan", (PyCFunction) _wrap_new_DateSpan, METH_VARARGS | METH_KEYWORDS }, | |
28620 | { (char *)"delete_DateSpan", (PyCFunction) _wrap_delete_DateSpan, METH_VARARGS | METH_KEYWORDS }, | |
28621 | { (char *)"DateSpan_Days", (PyCFunction) _wrap_DateSpan_Days, METH_VARARGS | METH_KEYWORDS }, | |
28622 | { (char *)"DateSpan_Day", (PyCFunction) _wrap_DateSpan_Day, METH_VARARGS | METH_KEYWORDS }, | |
28623 | { (char *)"DateSpan_Weeks", (PyCFunction) _wrap_DateSpan_Weeks, METH_VARARGS | METH_KEYWORDS }, | |
28624 | { (char *)"DateSpan_Week", (PyCFunction) _wrap_DateSpan_Week, METH_VARARGS | METH_KEYWORDS }, | |
28625 | { (char *)"DateSpan_Months", (PyCFunction) _wrap_DateSpan_Months, METH_VARARGS | METH_KEYWORDS }, | |
28626 | { (char *)"DateSpan_Month", (PyCFunction) _wrap_DateSpan_Month, METH_VARARGS | METH_KEYWORDS }, | |
28627 | { (char *)"DateSpan_Years", (PyCFunction) _wrap_DateSpan_Years, METH_VARARGS | METH_KEYWORDS }, | |
28628 | { (char *)"DateSpan_Year", (PyCFunction) _wrap_DateSpan_Year, METH_VARARGS | METH_KEYWORDS }, | |
28629 | { (char *)"DateSpan_SetYears", (PyCFunction) _wrap_DateSpan_SetYears, METH_VARARGS | METH_KEYWORDS }, | |
28630 | { (char *)"DateSpan_SetMonths", (PyCFunction) _wrap_DateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS }, | |
28631 | { (char *)"DateSpan_SetWeeks", (PyCFunction) _wrap_DateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
28632 | { (char *)"DateSpan_SetDays", (PyCFunction) _wrap_DateSpan_SetDays, METH_VARARGS | METH_KEYWORDS }, | |
28633 | { (char *)"DateSpan_GetYears", (PyCFunction) _wrap_DateSpan_GetYears, METH_VARARGS | METH_KEYWORDS }, | |
28634 | { (char *)"DateSpan_GetMonths", (PyCFunction) _wrap_DateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS }, | |
28635 | { (char *)"DateSpan_GetWeeks", (PyCFunction) _wrap_DateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
28636 | { (char *)"DateSpan_GetDays", (PyCFunction) _wrap_DateSpan_GetDays, METH_VARARGS | METH_KEYWORDS }, | |
28637 | { (char *)"DateSpan_GetTotalDays", (PyCFunction) _wrap_DateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS }, | |
28638 | { (char *)"DateSpan_Add", (PyCFunction) _wrap_DateSpan_Add, METH_VARARGS | METH_KEYWORDS }, | |
28639 | { (char *)"DateSpan_Subtract", (PyCFunction) _wrap_DateSpan_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
28640 | { (char *)"DateSpan_Neg", (PyCFunction) _wrap_DateSpan_Neg, METH_VARARGS | METH_KEYWORDS }, | |
28641 | { (char *)"DateSpan_Multiply", (PyCFunction) _wrap_DateSpan_Multiply, METH_VARARGS | METH_KEYWORDS }, | |
28642 | { (char *)"DateSpan___iadd__", (PyCFunction) _wrap_DateSpan___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
28643 | { (char *)"DateSpan___isub__", (PyCFunction) _wrap_DateSpan___isub__, METH_VARARGS | METH_KEYWORDS }, | |
28644 | { (char *)"DateSpan___neg__", (PyCFunction) _wrap_DateSpan___neg__, METH_VARARGS | METH_KEYWORDS }, | |
28645 | { (char *)"DateSpan___imul__", (PyCFunction) _wrap_DateSpan___imul__, METH_VARARGS | METH_KEYWORDS }, | |
28646 | { (char *)"DateSpan___add__", (PyCFunction) _wrap_DateSpan___add__, METH_VARARGS | METH_KEYWORDS }, | |
28647 | { (char *)"DateSpan___sub__", (PyCFunction) _wrap_DateSpan___sub__, METH_VARARGS | METH_KEYWORDS }, | |
28648 | { (char *)"DateSpan___mul__", (PyCFunction) _wrap_DateSpan___mul__, METH_VARARGS | METH_KEYWORDS }, | |
28649 | { (char *)"DateSpan___rmul__", (PyCFunction) _wrap_DateSpan___rmul__, METH_VARARGS | METH_KEYWORDS }, | |
28650 | { (char *)"DateSpan___eq__", (PyCFunction) _wrap_DateSpan___eq__, METH_VARARGS | METH_KEYWORDS }, | |
28651 | { (char *)"DateSpan___ne__", (PyCFunction) _wrap_DateSpan___ne__, METH_VARARGS | METH_KEYWORDS }, | |
28652 | { (char *)"DateSpan_swigregister", DateSpan_swigregister, METH_VARARGS }, | |
28653 | { (char *)"GetLocalTime", (PyCFunction) _wrap_GetLocalTime, METH_VARARGS | METH_KEYWORDS }, | |
28654 | { (char *)"GetUTCTime", (PyCFunction) _wrap_GetUTCTime, METH_VARARGS | METH_KEYWORDS }, | |
28655 | { (char *)"GetCurrentTime", (PyCFunction) _wrap_GetCurrentTime, METH_VARARGS | METH_KEYWORDS }, | |
28656 | { (char *)"GetLocalTimeMillis", (PyCFunction) _wrap_GetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS }, | |
28657 | { (char *)"new_DataFormat", (PyCFunction) _wrap_new_DataFormat, METH_VARARGS | METH_KEYWORDS }, | |
28658 | { (char *)"new_CustomDataFormat", (PyCFunction) _wrap_new_CustomDataFormat, METH_VARARGS | METH_KEYWORDS }, | |
28659 | { (char *)"delete_DataFormat", (PyCFunction) _wrap_delete_DataFormat, METH_VARARGS | METH_KEYWORDS }, | |
28660 | { (char *)"DataFormat___eq__", _wrap_DataFormat___eq__, METH_VARARGS }, | |
28661 | { (char *)"DataFormat___ne__", _wrap_DataFormat___ne__, METH_VARARGS }, | |
28662 | { (char *)"DataFormat_SetType", (PyCFunction) _wrap_DataFormat_SetType, METH_VARARGS | METH_KEYWORDS }, | |
28663 | { (char *)"DataFormat_GetType", (PyCFunction) _wrap_DataFormat_GetType, METH_VARARGS | METH_KEYWORDS }, | |
28664 | { (char *)"DataFormat_GetId", (PyCFunction) _wrap_DataFormat_GetId, METH_VARARGS | METH_KEYWORDS }, | |
28665 | { (char *)"DataFormat_SetId", (PyCFunction) _wrap_DataFormat_SetId, METH_VARARGS | METH_KEYWORDS }, | |
28666 | { (char *)"DataFormat_swigregister", DataFormat_swigregister, METH_VARARGS }, | |
28667 | { (char *)"delete_DataObject", (PyCFunction) _wrap_delete_DataObject, METH_VARARGS | METH_KEYWORDS }, | |
28668 | { (char *)"DataObject_GetPreferredFormat", (PyCFunction) _wrap_DataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS }, | |
28669 | { (char *)"DataObject_GetFormatCount", (PyCFunction) _wrap_DataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS }, | |
28670 | { (char *)"DataObject_IsSupported", (PyCFunction) _wrap_DataObject_IsSupported, METH_VARARGS | METH_KEYWORDS }, | |
28671 | { (char *)"DataObject_GetDataSize", (PyCFunction) _wrap_DataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS }, | |
28672 | { (char *)"DataObject_GetAllFormats", (PyCFunction) _wrap_DataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS }, | |
28673 | { (char *)"DataObject_GetDataHere", (PyCFunction) _wrap_DataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS }, | |
28674 | { (char *)"DataObject_SetData", (PyCFunction) _wrap_DataObject_SetData, METH_VARARGS | METH_KEYWORDS }, | |
28675 | { (char *)"DataObject_swigregister", DataObject_swigregister, METH_VARARGS }, | |
28676 | { (char *)"new_DataObjectSimple", (PyCFunction) _wrap_new_DataObjectSimple, METH_VARARGS | METH_KEYWORDS }, | |
28677 | { (char *)"DataObjectSimple_GetFormat", (PyCFunction) _wrap_DataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS }, | |
28678 | { (char *)"DataObjectSimple_SetFormat", (PyCFunction) _wrap_DataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS }, | |
28679 | { (char *)"DataObjectSimple_swigregister", DataObjectSimple_swigregister, METH_VARARGS }, | |
28680 | { (char *)"new_PyDataObjectSimple", (PyCFunction) _wrap_new_PyDataObjectSimple, METH_VARARGS | METH_KEYWORDS }, | |
28681 | { (char *)"PyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_PyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28682 | { (char *)"PyDataObjectSimple_swigregister", PyDataObjectSimple_swigregister, METH_VARARGS }, | |
28683 | { (char *)"new_DataObjectComposite", (PyCFunction) _wrap_new_DataObjectComposite, METH_VARARGS | METH_KEYWORDS }, | |
28684 | { (char *)"DataObjectComposite_Add", (PyCFunction) _wrap_DataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS }, | |
28685 | { (char *)"DataObjectComposite_swigregister", DataObjectComposite_swigregister, METH_VARARGS }, | |
28686 | { (char *)"new_TextDataObject", (PyCFunction) _wrap_new_TextDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28687 | { (char *)"TextDataObject_GetTextLength", (PyCFunction) _wrap_TextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS }, | |
28688 | { (char *)"TextDataObject_GetText", (PyCFunction) _wrap_TextDataObject_GetText, METH_VARARGS | METH_KEYWORDS }, | |
28689 | { (char *)"TextDataObject_SetText", (PyCFunction) _wrap_TextDataObject_SetText, METH_VARARGS | METH_KEYWORDS }, | |
28690 | { (char *)"TextDataObject_swigregister", TextDataObject_swigregister, METH_VARARGS }, | |
28691 | { (char *)"new_PyTextDataObject", (PyCFunction) _wrap_new_PyTextDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28692 | { (char *)"PyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_PyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28693 | { (char *)"PyTextDataObject_swigregister", PyTextDataObject_swigregister, METH_VARARGS }, | |
28694 | { (char *)"new_BitmapDataObject", (PyCFunction) _wrap_new_BitmapDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28695 | { (char *)"BitmapDataObject_GetBitmap", (PyCFunction) _wrap_BitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
28696 | { (char *)"BitmapDataObject_SetBitmap", (PyCFunction) _wrap_BitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
28697 | { (char *)"BitmapDataObject_swigregister", BitmapDataObject_swigregister, METH_VARARGS }, | |
28698 | { (char *)"new_PyBitmapDataObject", (PyCFunction) _wrap_new_PyBitmapDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28699 | { (char *)"PyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_PyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28700 | { (char *)"PyBitmapDataObject_swigregister", PyBitmapDataObject_swigregister, METH_VARARGS }, | |
28701 | { (char *)"new_FileDataObject", (PyCFunction) _wrap_new_FileDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28702 | { (char *)"FileDataObject_GetFilenames", (PyCFunction) _wrap_FileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS }, | |
28703 | { (char *)"FileDataObject_AddFile", (PyCFunction) _wrap_FileDataObject_AddFile, METH_VARARGS | METH_KEYWORDS }, | |
28704 | { (char *)"FileDataObject_swigregister", FileDataObject_swigregister, METH_VARARGS }, | |
28705 | { (char *)"new_CustomDataObject", (PyCFunction) _wrap_new_CustomDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28706 | { (char *)"CustomDataObject_TakeData", (PyCFunction) _wrap_CustomDataObject_TakeData, METH_VARARGS | METH_KEYWORDS }, | |
28707 | { (char *)"CustomDataObject_SetData", (PyCFunction) _wrap_CustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS }, | |
28708 | { (char *)"CustomDataObject_GetSize", (PyCFunction) _wrap_CustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
28709 | { (char *)"CustomDataObject_GetData", (PyCFunction) _wrap_CustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS }, | |
28710 | { (char *)"CustomDataObject_swigregister", CustomDataObject_swigregister, METH_VARARGS }, | |
28711 | { (char *)"new_URLDataObject", (PyCFunction) _wrap_new_URLDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28712 | { (char *)"URLDataObject_GetURL", (PyCFunction) _wrap_URLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS }, | |
28713 | { (char *)"URLDataObject_SetURL", (PyCFunction) _wrap_URLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS }, | |
28714 | { (char *)"URLDataObject_swigregister", URLDataObject_swigregister, METH_VARARGS }, | |
28715 | { (char *)"new_MetafileDataObject", (PyCFunction) _wrap_new_MetafileDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28716 | { (char *)"MetafileDataObject_SetMetafile", (PyCFunction) _wrap_MetafileDataObject_SetMetafile, METH_VARARGS | METH_KEYWORDS }, | |
28717 | { (char *)"MetafileDataObject_GetMetafile", (PyCFunction) _wrap_MetafileDataObject_GetMetafile, METH_VARARGS | METH_KEYWORDS }, | |
28718 | { (char *)"MetafileDataObject_swigregister", MetafileDataObject_swigregister, METH_VARARGS }, | |
28719 | { (char *)"IsDragResultOk", (PyCFunction) _wrap_IsDragResultOk, METH_VARARGS | METH_KEYWORDS }, | |
28720 | { (char *)"new_DropSource", (PyCFunction) _wrap_new_DropSource, METH_VARARGS | METH_KEYWORDS }, | |
28721 | { (char *)"DropSource__setCallbackInfo", (PyCFunction) _wrap_DropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28722 | { (char *)"delete_DropSource", (PyCFunction) _wrap_delete_DropSource, METH_VARARGS | METH_KEYWORDS }, | |
28723 | { (char *)"DropSource_SetData", (PyCFunction) _wrap_DropSource_SetData, METH_VARARGS | METH_KEYWORDS }, | |
28724 | { (char *)"DropSource_GetDataObject", (PyCFunction) _wrap_DropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28725 | { (char *)"DropSource_SetCursor", (PyCFunction) _wrap_DropSource_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
28726 | { (char *)"DropSource_DoDragDrop", (PyCFunction) _wrap_DropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS }, | |
28727 | { (char *)"DropSource_base_GiveFeedback", (PyCFunction) _wrap_DropSource_base_GiveFeedback, METH_VARARGS | METH_KEYWORDS }, | |
28728 | { (char *)"DropSource_swigregister", DropSource_swigregister, METH_VARARGS }, | |
28729 | { (char *)"new_DropTarget", (PyCFunction) _wrap_new_DropTarget, METH_VARARGS | METH_KEYWORDS }, | |
28730 | { (char *)"DropTarget__setCallbackInfo", (PyCFunction) _wrap_DropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28731 | { (char *)"delete_DropTarget", (PyCFunction) _wrap_delete_DropTarget, METH_VARARGS | METH_KEYWORDS }, | |
28732 | { (char *)"DropTarget_GetDataObject", (PyCFunction) _wrap_DropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28733 | { (char *)"DropTarget_SetDataObject", (PyCFunction) _wrap_DropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28734 | { (char *)"DropTarget_base_OnEnter", (PyCFunction) _wrap_DropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, | |
28735 | { (char *)"DropTarget_base_OnDragOver", (PyCFunction) _wrap_DropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, | |
28736 | { (char *)"DropTarget_base_OnLeave", (PyCFunction) _wrap_DropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, | |
28737 | { (char *)"DropTarget_base_OnDrop", (PyCFunction) _wrap_DropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, | |
28738 | { (char *)"DropTarget_GetData", (PyCFunction) _wrap_DropTarget_GetData, METH_VARARGS | METH_KEYWORDS }, | |
28739 | { (char *)"DropTarget_swigregister", DropTarget_swigregister, METH_VARARGS }, | |
28740 | { (char *)"new_TextDropTarget", (PyCFunction) _wrap_new_TextDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
28741 | { (char *)"TextDropTarget__setCallbackInfo", (PyCFunction) _wrap_TextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28742 | { (char *)"TextDropTarget_base_OnEnter", (PyCFunction) _wrap_TextDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, | |
28743 | { (char *)"TextDropTarget_base_OnDragOver", (PyCFunction) _wrap_TextDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, | |
28744 | { (char *)"TextDropTarget_base_OnLeave", (PyCFunction) _wrap_TextDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, | |
28745 | { (char *)"TextDropTarget_base_OnDrop", (PyCFunction) _wrap_TextDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, | |
28746 | { (char *)"TextDropTarget_base_OnData", (PyCFunction) _wrap_TextDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS }, | |
28747 | { (char *)"TextDropTarget_swigregister", TextDropTarget_swigregister, METH_VARARGS }, | |
28748 | { (char *)"new_FileDropTarget", (PyCFunction) _wrap_new_FileDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
28749 | { (char *)"FileDropTarget__setCallbackInfo", (PyCFunction) _wrap_FileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28750 | { (char *)"FileDropTarget_base_OnEnter", (PyCFunction) _wrap_FileDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, | |
28751 | { (char *)"FileDropTarget_base_OnDragOver", (PyCFunction) _wrap_FileDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, | |
28752 | { (char *)"FileDropTarget_base_OnLeave", (PyCFunction) _wrap_FileDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, | |
28753 | { (char *)"FileDropTarget_base_OnDrop", (PyCFunction) _wrap_FileDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, | |
28754 | { (char *)"FileDropTarget_base_OnData", (PyCFunction) _wrap_FileDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS }, | |
28755 | { (char *)"FileDropTarget_swigregister", FileDropTarget_swigregister, METH_VARARGS }, | |
28756 | { (char *)"new_Clipboard", (PyCFunction) _wrap_new_Clipboard, METH_VARARGS | METH_KEYWORDS }, | |
28757 | { (char *)"delete_Clipboard", (PyCFunction) _wrap_delete_Clipboard, METH_VARARGS | METH_KEYWORDS }, | |
28758 | { (char *)"Clipboard_Open", (PyCFunction) _wrap_Clipboard_Open, METH_VARARGS | METH_KEYWORDS }, | |
28759 | { (char *)"Clipboard_Close", (PyCFunction) _wrap_Clipboard_Close, METH_VARARGS | METH_KEYWORDS }, | |
28760 | { (char *)"Clipboard_IsOpened", (PyCFunction) _wrap_Clipboard_IsOpened, METH_VARARGS | METH_KEYWORDS }, | |
28761 | { (char *)"Clipboard_AddData", (PyCFunction) _wrap_Clipboard_AddData, METH_VARARGS | METH_KEYWORDS }, | |
28762 | { (char *)"Clipboard_SetData", (PyCFunction) _wrap_Clipboard_SetData, METH_VARARGS | METH_KEYWORDS }, | |
28763 | { (char *)"Clipboard_IsSupported", (PyCFunction) _wrap_Clipboard_IsSupported, METH_VARARGS | METH_KEYWORDS }, | |
28764 | { (char *)"Clipboard_GetData", (PyCFunction) _wrap_Clipboard_GetData, METH_VARARGS | METH_KEYWORDS }, | |
28765 | { (char *)"Clipboard_Clear", (PyCFunction) _wrap_Clipboard_Clear, METH_VARARGS | METH_KEYWORDS }, | |
28766 | { (char *)"Clipboard_Flush", (PyCFunction) _wrap_Clipboard_Flush, METH_VARARGS | METH_KEYWORDS }, | |
28767 | { (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS }, | |
28768 | { (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS }, | |
28769 | { (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS }, | |
28770 | { (char *)"delete_ClipboardLocker", (PyCFunction) _wrap_delete_ClipboardLocker, METH_VARARGS | METH_KEYWORDS }, | |
28771 | { (char *)"ClipboardLocker___nonzero__", (PyCFunction) _wrap_ClipboardLocker___nonzero__, METH_VARARGS | METH_KEYWORDS }, | |
28772 | { (char *)"ClipboardLocker_swigregister", ClipboardLocker_swigregister, METH_VARARGS }, | |
28773 | { (char *)"new_VideoMode", (PyCFunction) _wrap_new_VideoMode, METH_VARARGS | METH_KEYWORDS }, | |
28774 | { (char *)"delete_VideoMode", (PyCFunction) _wrap_delete_VideoMode, METH_VARARGS | METH_KEYWORDS }, | |
28775 | { (char *)"VideoMode_Matches", (PyCFunction) _wrap_VideoMode_Matches, METH_VARARGS | METH_KEYWORDS }, | |
28776 | { (char *)"VideoMode_GetWidth", (PyCFunction) _wrap_VideoMode_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
28777 | { (char *)"VideoMode_GetHeight", (PyCFunction) _wrap_VideoMode_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
28778 | { (char *)"VideoMode_GetDepth", (PyCFunction) _wrap_VideoMode_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
28779 | { (char *)"VideoMode_IsOk", (PyCFunction) _wrap_VideoMode_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
28780 | { (char *)"VideoMode___eq__", (PyCFunction) _wrap_VideoMode___eq__, METH_VARARGS | METH_KEYWORDS }, | |
28781 | { (char *)"VideoMode___ne__", (PyCFunction) _wrap_VideoMode___ne__, METH_VARARGS | METH_KEYWORDS }, | |
28782 | { (char *)"VideoMode_w_set", (PyCFunction) _wrap_VideoMode_w_set, METH_VARARGS | METH_KEYWORDS }, | |
28783 | { (char *)"VideoMode_w_get", (PyCFunction) _wrap_VideoMode_w_get, METH_VARARGS | METH_KEYWORDS }, | |
28784 | { (char *)"VideoMode_h_set", (PyCFunction) _wrap_VideoMode_h_set, METH_VARARGS | METH_KEYWORDS }, | |
28785 | { (char *)"VideoMode_h_get", (PyCFunction) _wrap_VideoMode_h_get, METH_VARARGS | METH_KEYWORDS }, | |
28786 | { (char *)"VideoMode_bpp_set", (PyCFunction) _wrap_VideoMode_bpp_set, METH_VARARGS | METH_KEYWORDS }, | |
28787 | { (char *)"VideoMode_bpp_get", (PyCFunction) _wrap_VideoMode_bpp_get, METH_VARARGS | METH_KEYWORDS }, | |
28788 | { (char *)"VideoMode_refresh_set", (PyCFunction) _wrap_VideoMode_refresh_set, METH_VARARGS | METH_KEYWORDS }, | |
28789 | { (char *)"VideoMode_refresh_get", (PyCFunction) _wrap_VideoMode_refresh_get, METH_VARARGS | METH_KEYWORDS }, | |
28790 | { (char *)"VideoMode_swigregister", VideoMode_swigregister, METH_VARARGS }, | |
28791 | { (char *)"new_Display", (PyCFunction) _wrap_new_Display, METH_VARARGS | METH_KEYWORDS }, | |
28792 | { (char *)"delete_Display", (PyCFunction) _wrap_delete_Display, METH_VARARGS | METH_KEYWORDS }, | |
28793 | { (char *)"Display_GetCount", (PyCFunction) _wrap_Display_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
28794 | { (char *)"Display_GetFromPoint", (PyCFunction) _wrap_Display_GetFromPoint, METH_VARARGS | METH_KEYWORDS }, | |
28795 | { (char *)"Display_GetFromWindow", (PyCFunction) _wrap_Display_GetFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
28796 | { (char *)"Display_IsOk", (PyCFunction) _wrap_Display_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
28797 | { (char *)"Display_GetGeometry", (PyCFunction) _wrap_Display_GetGeometry, METH_VARARGS | METH_KEYWORDS }, | |
28798 | { (char *)"Display_GetName", (PyCFunction) _wrap_Display_GetName, METH_VARARGS | METH_KEYWORDS }, | |
28799 | { (char *)"Display_IsPrimary", (PyCFunction) _wrap_Display_IsPrimary, METH_VARARGS | METH_KEYWORDS }, | |
28800 | { (char *)"Display_GetModes", (PyCFunction) _wrap_Display_GetModes, METH_VARARGS | METH_KEYWORDS }, | |
28801 | { (char *)"Display_GetCurrentMode", (PyCFunction) _wrap_Display_GetCurrentMode, METH_VARARGS | METH_KEYWORDS }, | |
28802 | { (char *)"Display_ChangeMode", (PyCFunction) _wrap_Display_ChangeMode, METH_VARARGS | METH_KEYWORDS }, | |
28803 | { (char *)"Display_ResetMode", (PyCFunction) _wrap_Display_ResetMode, METH_VARARGS | METH_KEYWORDS }, | |
28804 | { (char *)"Display_swigregister", Display_swigregister, METH_VARARGS }, | |
28805 | { NULL, NULL } | |
28806 | }; | |
28807 | ||
28808 | ||
28809 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
28810 | ||
28811 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
28812 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
28813 | } | |
28814 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
28815 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
28816 | } | |
28817 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
28818 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
28819 | } | |
28820 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
28821 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
28822 | } | |
28823 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
28824 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
28825 | } | |
28826 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
28827 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
28828 | } | |
28829 | static void *_p_wxTimerEventTo_p_wxEvent(void *x) { | |
28830 | return (void *)((wxEvent *) ((wxTimerEvent *) x)); | |
28831 | } | |
28832 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
28833 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
28834 | } | |
28835 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
28836 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
28837 | } | |
28838 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
28839 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
28840 | } | |
28841 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
28842 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
28843 | } | |
28844 | static void *_p_wxJoystickEventTo_p_wxEvent(void *x) { | |
28845 | return (void *)((wxEvent *) ((wxJoystickEvent *) x)); | |
28846 | } | |
28847 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
28848 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
28849 | } | |
28850 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
28851 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
28852 | } | |
28853 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
28854 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
28855 | } | |
28856 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
28857 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
28858 | } | |
28859 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
28860 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
28861 | } | |
28862 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
28863 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
28864 | } | |
28865 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
28866 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
28867 | } | |
28868 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
28869 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
28870 | } | |
28871 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
28872 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
28873 | } | |
28874 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
28875 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
28876 | } | |
28877 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
28878 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
28879 | } | |
28880 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
28881 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
28882 | } | |
28883 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
28884 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
28885 | } | |
28886 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
28887 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
28888 | } | |
28889 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
28890 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
28891 | } | |
28892 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
28893 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
28894 | } | |
28895 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
28896 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
28897 | } | |
28898 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
28899 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
28900 | } | |
28901 | static void *_p_wxProcessEventTo_p_wxEvent(void *x) { | |
28902 | return (void *)((wxEvent *) ((wxProcessEvent *) x)); | |
28903 | } | |
28904 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
28905 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
28906 | } | |
28907 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
28908 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
28909 | } | |
28910 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
28911 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
28912 | } | |
28913 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
28914 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
28915 | } | |
28916 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
28917 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
28918 | } | |
28919 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
28920 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
28921 | } | |
28922 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
28923 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
28924 | } | |
28925 | static void *_p_wxFileConfigTo_p_wxConfigBase(void *x) { | |
28926 | return (void *)((wxConfigBase *) ((wxFileConfig *) x)); | |
28927 | } | |
28928 | static void *_p_wxConfigTo_p_wxConfigBase(void *x) { | |
28929 | return (void *)((wxConfigBase *) ((wxConfig *) x)); | |
28930 | } | |
28931 | static void *_p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject(void *x) { | |
28932 | return (void *)((wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
28933 | } | |
28934 | static void *_p_wxPyTextDataObjectTo_p_wxTextDataObject(void *x) { | |
28935 | return (void *)((wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
28936 | } | |
28937 | static void *_p_wxDataObjectSimpleTo_p_wxDataObject(void *x) { | |
28938 | return (void *)((wxDataObject *) ((wxDataObjectSimple *) x)); | |
28939 | } | |
28940 | static void *_p_wxPyDataObjectSimpleTo_p_wxDataObject(void *x) { | |
28941 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxPyDataObjectSimple *) x)); | |
28942 | } | |
28943 | static void *_p_wxDataObjectCompositeTo_p_wxDataObject(void *x) { | |
28944 | return (void *)((wxDataObject *) ((wxDataObjectComposite *) x)); | |
28945 | } | |
28946 | static void *_p_wxTextDataObjectTo_p_wxDataObject(void *x) { | |
28947 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxTextDataObject *) x)); | |
28948 | } | |
28949 | static void *_p_wxPyTextDataObjectTo_p_wxDataObject(void *x) { | |
28950 | return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
28951 | } | |
28952 | static void *_p_wxBitmapDataObjectTo_p_wxDataObject(void *x) { | |
28953 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxBitmapDataObject *) x)); | |
28954 | } | |
28955 | static void *_p_wxPyBitmapDataObjectTo_p_wxDataObject(void *x) { | |
28956 | return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
28957 | } | |
28958 | static void *_p_wxFileDataObjectTo_p_wxDataObject(void *x) { | |
28959 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxFileDataObject *) x)); | |
28960 | } | |
28961 | static void *_p_wxCustomDataObjectTo_p_wxDataObject(void *x) { | |
28962 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxCustomDataObject *) x)); | |
28963 | } | |
28964 | static void *_p_wxURLDataObjectTo_p_wxDataObject(void *x) { | |
28965 | return (void *)((wxDataObject *) (wxDataObjectComposite *) ((wxURLDataObject *) x)); | |
28966 | } | |
28967 | static void *_p_wxMetafileDataObjectTo_p_wxDataObject(void *x) { | |
28968 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxMetafileDataObject *) x)); | |
28969 | } | |
28970 | static void *_p_wxURLDataObjectTo_p_wxDataObjectComposite(void *x) { | |
28971 | return (void *)((wxDataObjectComposite *) ((wxURLDataObject *) x)); | |
28972 | } | |
28973 | static void *_p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple(void *x) { | |
28974 | return (void *)((wxDataObjectSimple *) ((wxPyDataObjectSimple *) x)); | |
28975 | } | |
28976 | static void *_p_wxTextDataObjectTo_p_wxDataObjectSimple(void *x) { | |
28977 | return (void *)((wxDataObjectSimple *) ((wxTextDataObject *) x)); | |
28978 | } | |
28979 | static void *_p_wxPyTextDataObjectTo_p_wxDataObjectSimple(void *x) { | |
28980 | return (void *)((wxDataObjectSimple *) (wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
28981 | } | |
28982 | static void *_p_wxBitmapDataObjectTo_p_wxDataObjectSimple(void *x) { | |
28983 | return (void *)((wxDataObjectSimple *) ((wxBitmapDataObject *) x)); | |
28984 | } | |
28985 | static void *_p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple(void *x) { | |
28986 | return (void *)((wxDataObjectSimple *) (wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
28987 | } | |
28988 | static void *_p_wxFileDataObjectTo_p_wxDataObjectSimple(void *x) { | |
28989 | return (void *)((wxDataObjectSimple *) ((wxFileDataObject *) x)); | |
28990 | } | |
28991 | static void *_p_wxCustomDataObjectTo_p_wxDataObjectSimple(void *x) { | |
28992 | return (void *)((wxDataObjectSimple *) ((wxCustomDataObject *) x)); | |
28993 | } | |
28994 | static void *_p_wxMetafileDataObjectTo_p_wxDataObjectSimple(void *x) { | |
28995 | return (void *)((wxDataObjectSimple *) ((wxMetafileDataObject *) x)); | |
28996 | } | |
28997 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
28998 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
28999 | } | |
29000 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
29001 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
29002 | } | |
29003 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
29004 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
29005 | } | |
29006 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
29007 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
29008 | } | |
29009 | static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) { | |
29010 | return (void *)((wxEvtHandler *) ((wxPyTimer *) x)); | |
29011 | } | |
29012 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
29013 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
29014 | } | |
29015 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
29016 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
29017 | } | |
29018 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
29019 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
29020 | } | |
29021 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
29022 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
29023 | } | |
29024 | static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) { | |
29025 | return (void *)((wxEvtHandler *) ((wxPyProcess *) x)); | |
29026 | } | |
29027 | static void *_p_wxPyTipProviderTo_p_wxTipProvider(void *x) { | |
29028 | return (void *)((wxTipProvider *) ((wxPyTipProvider *) x)); | |
29029 | } | |
29030 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
29031 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
29032 | } | |
29033 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
29034 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
29035 | } | |
29036 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
29037 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
29038 | } | |
29039 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
29040 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
29041 | } | |
29042 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
29043 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
29044 | } | |
29045 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
29046 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
29047 | } | |
29048 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
29049 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
29050 | } | |
29051 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
29052 | return (void *)((wxObject *) ((wxSizer *) x)); | |
29053 | } | |
29054 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
29055 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
29056 | } | |
29057 | static void *_p_wxFileHistoryTo_p_wxObject(void *x) { | |
29058 | return (void *)((wxObject *) ((wxFileHistory *) x)); | |
29059 | } | |
29060 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
29061 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
29062 | } | |
29063 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
29064 | return (void *)((wxObject *) ((wxEvent *) x)); | |
29065 | } | |
29066 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
29067 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
29068 | } | |
29069 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
29070 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
29071 | } | |
29072 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
29073 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
29074 | } | |
29075 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
29076 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
29077 | } | |
29078 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
29079 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
29080 | } | |
29081 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
29082 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
29083 | } | |
29084 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
29085 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
29086 | } | |
29087 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
29088 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
29089 | } | |
29090 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
29091 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
29092 | } | |
29093 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
29094 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
29095 | } | |
29096 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
29097 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
29098 | } | |
29099 | static void *_p_wxTimerEventTo_p_wxObject(void *x) { | |
29100 | return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x)); | |
29101 | } | |
29102 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
29103 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
29104 | } | |
29105 | static void *_p_wxClipboardTo_p_wxObject(void *x) { | |
29106 | return (void *)((wxObject *) ((wxClipboard *) x)); | |
29107 | } | |
29108 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
29109 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
29110 | } | |
29111 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
29112 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
29113 | } | |
29114 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
29115 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
29116 | } | |
29117 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
29118 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
29119 | } | |
29120 | static void *_p_wxToolTipTo_p_wxObject(void *x) { | |
29121 | return (void *)((wxObject *) ((wxToolTip *) x)); | |
29122 | } | |
29123 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
29124 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
29125 | } | |
29126 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
29127 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
29128 | } | |
29129 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
29130 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
29131 | } | |
29132 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
29133 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
29134 | } | |
29135 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
29136 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
29137 | } | |
29138 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
29139 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
29140 | } | |
29141 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
29142 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
29143 | } | |
29144 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
29145 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
29146 | } | |
29147 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
29148 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
29149 | } | |
29150 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
29151 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
29152 | } | |
29153 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
29154 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
29155 | } | |
29156 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
29157 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
29158 | } | |
29159 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
29160 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
29161 | } | |
29162 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
29163 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
29164 | } | |
29165 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
29166 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
29167 | } | |
29168 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
29169 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
29170 | } | |
29171 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
29172 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
29173 | } | |
29174 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
29175 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
29176 | } | |
29177 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
29178 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
29179 | } | |
29180 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
29181 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
29182 | } | |
29183 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
29184 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
29185 | } | |
29186 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
29187 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
29188 | } | |
29189 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
29190 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
29191 | } | |
29192 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
29193 | return (void *)((wxObject *) ((wxImage *) x)); | |
29194 | } | |
29195 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
29196 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
29197 | } | |
29198 | static void *_p_wxSystemOptionsTo_p_wxObject(void *x) { | |
29199 | return (void *)((wxObject *) ((wxSystemOptions *) x)); | |
29200 | } | |
29201 | static void *_p_wxJoystickEventTo_p_wxObject(void *x) { | |
29202 | return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x)); | |
29203 | } | |
29204 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
29205 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
29206 | } | |
29207 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
29208 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
29209 | } | |
29210 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
29211 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
29212 | } | |
29213 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
29214 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
29215 | } | |
29216 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
29217 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
29218 | } | |
29219 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
29220 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
29221 | } | |
29222 | static void *_p_wxPyProcessTo_p_wxObject(void *x) { | |
29223 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x)); | |
29224 | } | |
29225 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
29226 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
29227 | } | |
29228 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
29229 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
29230 | } | |
29231 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
29232 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
29233 | } | |
29234 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
29235 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
29236 | } | |
29237 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
29238 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
29239 | } | |
29240 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
29241 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
29242 | } | |
29243 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
29244 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
29245 | } | |
29246 | static void *_p_wxBusyInfoTo_p_wxObject(void *x) { | |
29247 | return (void *)((wxObject *) ((wxBusyInfo *) x)); | |
29248 | } | |
29249 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
29250 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
29251 | } | |
29252 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
29253 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
29254 | } | |
29255 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
29256 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
29257 | } | |
29258 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
29259 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
29260 | } | |
29261 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
29262 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
29263 | } | |
29264 | static void *_p_wxProcessEventTo_p_wxObject(void *x) { | |
29265 | return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x)); | |
29266 | } | |
29267 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
29268 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
29269 | } | |
29270 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
29271 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
29272 | } | |
29273 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
29274 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
29275 | } | |
29276 | static void *_p_wxPyTimerTo_p_wxObject(void *x) { | |
29277 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x)); | |
29278 | } | |
29279 | static void *_p_wxLogStderrTo_p_wxLog(void *x) { | |
29280 | return (void *)((wxLog *) ((wxLogStderr *) x)); | |
29281 | } | |
29282 | static void *_p_wxLogTextCtrlTo_p_wxLog(void *x) { | |
29283 | return (void *)((wxLog *) ((wxLogTextCtrl *) x)); | |
29284 | } | |
29285 | static void *_p_wxLogWindowTo_p_wxLog(void *x) { | |
29286 | return (void *)((wxLog *) ((wxLogWindow *) x)); | |
29287 | } | |
29288 | static void *_p_wxLogChainTo_p_wxLog(void *x) { | |
29289 | return (void *)((wxLog *) ((wxLogChain *) x)); | |
29290 | } | |
29291 | static void *_p_wxLogGuiTo_p_wxLog(void *x) { | |
29292 | return (void *)((wxLog *) ((wxLogGui *) x)); | |
29293 | } | |
29294 | static void *_p_wxPyLogTo_p_wxLog(void *x) { | |
29295 | return (void *)((wxLog *) ((wxPyLog *) x)); | |
29296 | } | |
29297 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
29298 | return (void *)((wxWindow *) ((wxControl *) x)); | |
29299 | } | |
29300 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
29301 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
29302 | } | |
29303 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
29304 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
29305 | } | |
29306 | static void *_p_wxPyTextDropTargetTo_p_wxPyDropTarget(void *x) { | |
29307 | return (void *)((wxPyDropTarget *) ((wxPyTextDropTarget *) x)); | |
29308 | } | |
29309 | static void *_p_wxPyFileDropTargetTo_p_wxPyDropTarget(void *x) { | |
29310 | return (void *)((wxPyDropTarget *) ((wxPyFileDropTarget *) x)); | |
29311 | } | |
29312 | 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}}; | |
29313 | 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}}; | |
29314 | 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}}; | |
29315 | static swig_type_info _swigt__p_wxFileHistory[] = {{"_p_wxFileHistory", 0, "wxFileHistory *", 0, 0, 0, 0},{"_p_wxFileHistory", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29316 | static swig_type_info _swigt__p_wxLog[] = {{"_p_wxLog", 0, "wxLog *", 0, 0, 0, 0},{"_p_wxLogStderr", _p_wxLogStderrTo_p_wxLog, 0, 0, 0, 0, 0},{"_p_wxLogTextCtrl", _p_wxLogTextCtrlTo_p_wxLog, 0, 0, 0, 0, 0},{"_p_wxLogWindow", _p_wxLogWindowTo_p_wxLog, 0, 0, 0, 0, 0},{"_p_wxLogChain", _p_wxLogChainTo_p_wxLog, 0, 0, 0, 0, 0},{"_p_wxLogGui", _p_wxLogGuiTo_p_wxLog, 0, 0, 0, 0, 0},{"_p_wxPyLog", _p_wxPyLogTo_p_wxLog, 0, 0, 0, 0, 0},{"_p_wxLog", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29317 | static swig_type_info _swigt__p_wxDateTime__TimeZone[] = {{"_p_wxDateTime__TimeZone", 0, "wxDateTime::TimeZone *", 0, 0, 0, 0},{"_p_wxDateTime__TimeZone", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29318 | static swig_type_info _swigt__p_wxMenu[] = {{"_p_wxMenu", 0, "wxMenu *", 0, 0, 0, 0},{"_p_wxMenu", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29319 | static swig_type_info _swigt__p_wxEvent[] = {{"_p_wxEvent", 0, "wxEvent *", 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxTimerEvent", _p_wxTimerEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxJoystickEvent", _p_wxJoystickEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEvent", 0, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxProcessEvent", _p_wxProcessEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29320 | static swig_type_info _swigt__p_wxConfigBase[] = {{"_p_wxConfigBase", 0, "wxConfigBase *", 0, 0, 0, 0},{"_p_wxFileConfig", _p_wxFileConfigTo_p_wxConfigBase, 0, 0, 0, 0, 0},{"_p_wxConfigBase", 0, 0, 0, 0, 0, 0},{"_p_wxConfig", _p_wxConfigTo_p_wxConfigBase, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29321 | static swig_type_info _swigt__p_wxDisplay[] = {{"_p_wxDisplay", 0, "wxDisplay *", 0, 0, 0, 0},{"_p_wxDisplay", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29322 | static swig_type_info _swigt__p_wxFileType[] = {{"_p_wxFileType", 0, "wxFileType *", 0, 0, 0, 0},{"_p_wxFileType", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29323 | static swig_type_info _swigt__p_wxLogGui[] = {{"_p_wxLogGui", 0, "wxLogGui *", 0, 0, 0, 0},{"_p_wxLogGui", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29324 | static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0, 0, 0, 0},{"_p_wxFont", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29325 | static swig_type_info _swigt__p_wxDataFormat[] = {{"_p_wxDataFormat", 0, "wxDataFormat *", 0, 0, 0, 0},{"_p_wxDataFormat", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29326 | static swig_type_info _swigt__p_wxTimerEvent[] = {{"_p_wxTimerEvent", 0, "wxTimerEvent *", 0, 0, 0, 0},{"_p_wxTimerEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29327 | static swig_type_info _swigt__p_wxCaret[] = {{"_p_wxCaret", 0, "wxCaret *", 0, 0, 0, 0},{"_p_wxCaret", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29328 | static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0, 0, 0, 0},{"_p_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29329 | static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0, 0, 0, 0},{"_p_wxSize", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29330 | static swig_type_info _swigt__p_wxClipboard[] = {{"_p_wxClipboard", 0, "wxClipboard *", 0, 0, 0, 0},{"_p_wxClipboard", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29331 | static swig_type_info _swigt__p_wxStopWatch[] = {{"_p_wxStopWatch", 0, "wxStopWatch *", 0, 0, 0, 0},{"_p_wxStopWatch", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29332 | static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0, 0, 0, 0},{"_p_wxDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29333 | static swig_type_info _swigt__p_wxClipboardLocker[] = {{"_p_wxClipboardLocker", 0, "wxClipboardLocker *", 0, 0, 0, 0},{"_p_wxClipboardLocker", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29334 | static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0, 0, 0, 0},{"_p_wxIcon", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29335 | static swig_type_info _swigt__p_wxLogStderr[] = {{"_p_wxLogStderr", 0, "wxLogStderr *", 0, 0, 0, 0},{"_p_wxLogStderr", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29336 | static swig_type_info _swigt__p_wxLogTextCtrl[] = {{"_p_wxLogTextCtrl", 0, "wxLogTextCtrl *", 0, 0, 0, 0},{"_p_wxLogTextCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29337 | static swig_type_info _swigt__p_wxTextCtrl[] = {{"_p_wxTextCtrl", 0, "wxTextCtrl *", 0, 0, 0, 0},{"_p_wxTextCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29338 | static swig_type_info _swigt__p_wxBusyCursor[] = {{"_p_wxBusyCursor", 0, "wxBusyCursor *", 0, 0, 0, 0},{"_p_wxBusyCursor", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
b1f29bf7 | 29339 | 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 |
29340 | 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}}; |
29341 | 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}}; | |
29342 | 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}}; | |
29343 | 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 |
29344 | static swig_type_info _swigt__p_wxFileDataObject[] = {{"_p_wxFileDataObject", 0, "wxFileDataObject *", 0, 0, 0, 0},{"_p_wxFileDataObject", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
29345 | static swig_type_info _swigt__p_wxCustomDataObject[] = {{"_p_wxCustomDataObject", 0, "wxCustomDataObject *", 0, 0, 0, 0},{"_p_wxCustomDataObject", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29346 | static swig_type_info _swigt__p_wxURLDataObject[] = {{"_p_wxURLDataObject", 0, "wxURLDataObject *", 0, 0, 0, 0},{"_p_wxURLDataObject", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29347 | static swig_type_info _swigt__p_wxMetafileDataObject[] = {{"_p_wxMetafileDataObject", 0, "wxMetafileDataObject *", 0, 0, 0, 0},{"_p_wxMetafileDataObject", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29348 | static swig_type_info _swigt__p_wxSound[] = {{"_p_wxSound", 0, "wxSound *", 0, 0, 0, 0},{"_p_wxSound", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29349 | static swig_type_info _swigt__p_wxTimerRunner[] = {{"_p_wxTimerRunner", 0, "wxTimerRunner *", 0, 0, 0, 0},{"_p_wxTimerRunner", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29350 | static swig_type_info _swigt__p_wxLogWindow[] = {{"_p_wxLogWindow", 0, "wxLogWindow *", 0, 0, 0, 0},{"_p_wxLogWindow", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29351 | static swig_type_info _swigt__p_wxTimeSpan[] = {{"_p_wxTimeSpan", 0, "wxTimeSpan *", 0, 0, 0, 0},{"_p_wxTimeSpan", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29352 | static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0, 0, 0, 0},{"_p_wxArrayString", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29353 | static swig_type_info _swigt__p_wxWindowDisabler[] = {{"_p_wxWindowDisabler", 0, "wxWindowDisabler *", 0, 0, 0, 0},{"_p_wxWindowDisabler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29354 | static swig_type_info _swigt__p_wxToolTip[] = {{"_p_wxToolTip", 0, "wxToolTip *", 0, 0, 0, 0},{"_p_wxToolTip", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29355 | static swig_type_info _swigt__p_wxDataObjectComposite[] = {{"_p_wxDataObjectComposite", 0, "wxDataObjectComposite *", 0, 0, 0, 0},{"_p_wxDataObjectComposite", 0, 0, 0, 0, 0, 0},{"_p_wxURLDataObject", _p_wxURLDataObjectTo_p_wxDataObjectComposite, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29356 | static swig_type_info _swigt__p_wxFileConfig[] = {{"_p_wxFileConfig", 0, "wxFileConfig *", 0, 0, 0, 0},{"_p_wxFileConfig", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29357 | static swig_type_info _swigt__p_wxSystemSettings[] = {{"_p_wxSystemSettings", 0, "wxSystemSettings *", 0, 0, 0, 0},{"_p_wxSystemSettings", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29358 | static swig_type_info _swigt__p_wxVideoMode[] = {{"_p_wxVideoMode", 0, "wxVideoMode *", 0, 0, 0, 0},{"_p_wxVideoMode", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29359 | static swig_type_info _swigt__p_wxPyDataObjectSimple[] = {{"_p_wxPyDataObjectSimple", 0, "wxPyDataObjectSimple *", 0, 0, 0, 0},{"_p_wxPyDataObjectSimple", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29360 | static swig_type_info _swigt__p_wxDataObjectSimple[] = {{"_p_wxDataObjectSimple", 0, "wxDataObjectSimple *", 0, 0, 0, 0},{"_p_wxDataObjectSimple", 0, 0, 0, 0, 0, 0},{"_p_wxPyDataObjectSimple", _p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple, 0, 0, 0, 0, 0},{"_p_wxTextDataObject", _p_wxTextDataObjectTo_p_wxDataObjectSimple, 0, 0, 0, 0, 0},{"_p_wxPyTextDataObject", _p_wxPyTextDataObjectTo_p_wxDataObjectSimple, 0, 0, 0, 0, 0},{"_p_wxBitmapDataObject", _p_wxBitmapDataObjectTo_p_wxDataObjectSimple, 0, 0, 0, 0, 0},{"_p_wxPyBitmapDataObject", _p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple, 0, 0, 0, 0, 0},{"_p_wxFileDataObject", _p_wxFileDataObjectTo_p_wxDataObjectSimple, 0, 0, 0, 0, 0},{"_p_wxCustomDataObject", _p_wxCustomDataObjectTo_p_wxDataObjectSimple, 0, 0, 0, 0, 0},{"_p_wxMetafileDataObject", _p_wxMetafileDataObjectTo_p_wxDataObjectSimple, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29361 | static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", 0, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyTimer", _p_wxPyTimerTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyProcess", _p_wxPyProcessTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29362 | static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0, 0, 0, 0},{"_p_wxRect", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29363 | static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0, 0, 0, 0},{"_p_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29364 | static swig_type_info _swigt__p_wxSingleInstanceChecker[] = {{"_p_wxSingleInstanceChecker", 0, "wxSingleInstanceChecker *", 0, 0, 0, 0},{"_p_wxSingleInstanceChecker", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29365 | static swig_type_info _swigt__p_wxFileTypeInfo[] = {{"_p_wxFileTypeInfo", 0, "wxFileTypeInfo *", 0, 0, 0, 0},{"_p_wxFileTypeInfo", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29366 | static swig_type_info _swigt__p_wxFrame[] = {{"_p_wxFrame", 0, "wxFrame *", 0, 0, 0, 0},{"_p_wxFrame", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29367 | static swig_type_info _swigt__p_wxTimer[] = {{"_p_wxTimer", 0, "wxTimer *", 0, 0, 0, 0},{"_p_wxTimer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29368 | static swig_type_info _swigt__p_wxMimeTypesManager[] = {{"_p_wxMimeTypesManager", 0, "wxMimeTypesManager *", 0, 0, 0, 0},{"_p_wxMimeTypesManager", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29369 | static swig_type_info _swigt__p_wxPyArtProvider[] = {{"_p_wxPyArtProvider", 0, "wxPyArtProvider *", 0, 0, 0, 0},{"_p_wxPyArtProvider", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29370 | static swig_type_info _swigt__p_wxPyTipProvider[] = {{"_p_wxPyTipProvider", 0, "wxPyTipProvider *", 0, 0, 0, 0},{"_p_wxPyTipProvider", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29371 | static swig_type_info _swigt__p_wxTipProvider[] = {{"_p_wxTipProvider", 0, "wxTipProvider *", 0, 0, 0, 0},{"_p_wxTipProvider", 0, 0, 0, 0, 0, 0},{"_p_wxPyTipProvider", _p_wxPyTipProviderTo_p_wxTipProvider, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29372 | static swig_type_info _swigt__p_wxJoystick[] = {{"_p_wxJoystick", 0, "wxJoystick *", 0, 0, 0, 0},{"_p_wxJoystick", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29373 | static swig_type_info _swigt__p_wxSystemOptions[] = {{"_p_wxSystemOptions", 0, "wxSystemOptions *", 0, 0, 0, 0},{"_p_wxSystemOptions", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29374 | static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0, 0, 0, 0},{"_p_wxPoint", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29375 | static swig_type_info _swigt__p_wxJoystickEvent[] = {{"_p_wxJoystickEvent", 0, "wxJoystickEvent *", 0, 0, 0, 0},{"_p_wxJoystickEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29376 | static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0, 0, 0, 0},{"_p_wxCursor", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29377 | static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0, 0, 0, 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizer", _p_wxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileHistory", _p_wxFileHistoryTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvent", _p_wxEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTimerEvent", _p_wxTimerEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxClipboard", _p_wxClipboardTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToolTip", _p_wxToolTipTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImage", _p_wxImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSystemOptions", _p_wxSystemOptionsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJoystickEvent", _p_wxJoystickEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxObject", 0, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyProcess", _p_wxPyProcessTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBusyInfo", _p_wxBusyInfoTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxProcessEvent", _p_wxProcessEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyTimer", _p_wxPyTimerTo_p_wxObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29378 | static swig_type_info _swigt__p_wxOutputStream[] = {{"_p_wxOutputStream", 0, "wxOutputStream *", 0, 0, 0, 0},{"_p_wxOutputStream", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29379 | static swig_type_info _swigt__p_wxDateTime[] = {{"_p_wxDateTime", 0, "wxDateTime *", 0, 0, 0, 0},{"_p_wxDateTime", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29380 | static swig_type_info _swigt__p_wxPyDropSource[] = {{"_p_wxPyDropSource", 0, "wxPyDropSource *", 0, 0, 0, 0},{"_p_wxPyDropSource", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29381 | static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxWindow", 0, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29382 | static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0, 0, 0, 0},{"_p_wxString", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29383 | static swig_type_info _swigt__p_wxPyProcess[] = {{"_p_wxPyProcess", 0, "wxPyProcess *", 0, 0, 0, 0},{"_p_wxPyProcess", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29384 | static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0, 0, 0, 0},{"_p_wxBitmap", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29385 | static swig_type_info _swigt__p_wxConfig[] = {{"_p_wxConfig", 0, "wxConfig *", 0, 0, 0, 0},{"_p_wxConfig", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29386 | static swig_type_info _swigt__p_wxChar[] = {{"_p_wxChar", 0, "wxChar *", 0, 0, 0, 0},{"_p_wxChar", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29387 | static swig_type_info _swigt__p_wxBusyInfo[] = {{"_p_wxBusyInfo", 0, "wxBusyInfo *", 0, 0, 0, 0},{"_p_wxBusyInfo", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29388 | static swig_type_info _swigt__p_wxPyDropTarget[] = {{"_p_wxPyDropTarget", 0, "wxPyDropTarget *", 0, 0, 0, 0},{"_p_wxPyDropTarget", 0, 0, 0, 0, 0, 0},{"_p_wxPyTextDropTarget", _p_wxPyTextDropTargetTo_p_wxPyDropTarget, 0, 0, 0, 0, 0},{"_p_wxPyFileDropTarget", _p_wxPyFileDropTargetTo_p_wxPyDropTarget, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29389 | static swig_type_info _swigt__p_wxPyTextDropTarget[] = {{"_p_wxPyTextDropTarget", 0, "wxPyTextDropTarget *", 0, 0, 0, 0},{"_p_wxPyTextDropTarget", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29390 | static swig_type_info _swigt__p_wxPyFileDropTarget[] = {{"_p_wxPyFileDropTarget", 0, "wxPyFileDropTarget *", 0, 0, 0, 0},{"_p_wxPyFileDropTarget", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29391 | static swig_type_info _swigt__p_wxProcessEvent[] = {{"_p_wxProcessEvent", 0, "wxProcessEvent *", 0, 0, 0, 0},{"_p_wxProcessEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29392 | static swig_type_info _swigt__p_wxPyLog[] = {{"_p_wxPyLog", 0, "wxPyLog *", 0, 0, 0, 0},{"_p_wxPyLog", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29393 | static swig_type_info _swigt__p_wxLogNull[] = {{"_p_wxLogNull", 0, "wxLogNull *", 0, 0, 0, 0},{"_p_wxLogNull", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
29394 | static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0, 0, 0, 0},{"_p_wxColour", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
d55e5bfc RD |
29395 | 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}}; |
29396 | 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}}; | |
29397 | 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}}; | |
29398 | ||
29399 | static swig_type_info *swig_types_initial[] = { | |
29400 | _swigt__p_wxLogChain, | |
29401 | _swigt__p_wxMutexGuiLocker, | |
29402 | _swigt__p_wxMetafile, | |
29403 | _swigt__p_wxFileHistory, | |
29404 | _swigt__p_wxLog, | |
29405 | _swigt__p_wxDateTime__TimeZone, | |
29406 | _swigt__p_wxMenu, | |
29407 | _swigt__p_wxEvent, | |
29408 | _swigt__p_wxConfigBase, | |
29409 | _swigt__p_wxDisplay, | |
29410 | _swigt__p_wxFileType, | |
29411 | _swigt__p_wxLogGui, | |
29412 | _swigt__p_wxFont, | |
29413 | _swigt__p_wxDataFormat, | |
29414 | _swigt__p_wxTimerEvent, | |
29415 | _swigt__p_wxCaret, | |
29416 | _swigt__p_int, | |
29417 | _swigt__p_wxSize, | |
29418 | _swigt__p_wxClipboard, | |
29419 | _swigt__p_wxStopWatch, | |
29420 | _swigt__p_wxDC, | |
29421 | _swigt__p_wxClipboardLocker, | |
29422 | _swigt__p_wxIcon, | |
29423 | _swigt__p_wxLogStderr, | |
29424 | _swigt__p_wxLogTextCtrl, | |
29425 | _swigt__p_wxTextCtrl, | |
29426 | _swigt__p_wxBusyCursor, | |
b1f29bf7 | 29427 | _swigt__p_wxPyBitmapDataObject, |
d55e5bfc RD |
29428 | _swigt__p_wxPyTextDataObject, |
29429 | _swigt__p_wxBitmapDataObject, | |
29430 | _swigt__p_wxTextDataObject, | |
29431 | _swigt__p_wxDataObject, | |
d55e5bfc RD |
29432 | _swigt__p_wxFileDataObject, |
29433 | _swigt__p_wxCustomDataObject, | |
29434 | _swigt__p_wxURLDataObject, | |
29435 | _swigt__p_wxMetafileDataObject, | |
29436 | _swigt__p_wxSound, | |
29437 | _swigt__p_wxTimerRunner, | |
29438 | _swigt__p_wxLogWindow, | |
29439 | _swigt__p_wxTimeSpan, | |
29440 | _swigt__p_wxArrayString, | |
29441 | _swigt__p_wxWindowDisabler, | |
29442 | _swigt__p_wxToolTip, | |
29443 | _swigt__p_wxDataObjectComposite, | |
29444 | _swigt__p_wxFileConfig, | |
29445 | _swigt__p_wxSystemSettings, | |
29446 | _swigt__p_wxVideoMode, | |
29447 | _swigt__p_wxPyDataObjectSimple, | |
29448 | _swigt__p_wxDataObjectSimple, | |
29449 | _swigt__p_wxEvtHandler, | |
29450 | _swigt__p_wxRect, | |
29451 | _swigt__p_char, | |
29452 | _swigt__p_wxSingleInstanceChecker, | |
29453 | _swigt__p_wxFileTypeInfo, | |
29454 | _swigt__p_wxFrame, | |
29455 | _swigt__p_wxTimer, | |
29456 | _swigt__p_wxMimeTypesManager, | |
29457 | _swigt__p_wxPyArtProvider, | |
29458 | _swigt__p_wxPyTipProvider, | |
29459 | _swigt__p_wxTipProvider, | |
29460 | _swigt__p_wxJoystick, | |
29461 | _swigt__p_wxSystemOptions, | |
29462 | _swigt__p_wxPoint, | |
29463 | _swigt__p_wxJoystickEvent, | |
29464 | _swigt__p_wxCursor, | |
29465 | _swigt__p_wxObject, | |
29466 | _swigt__p_wxOutputStream, | |
29467 | _swigt__p_wxDateTime, | |
29468 | _swigt__p_wxPyDropSource, | |
29469 | _swigt__p_wxWindow, | |
29470 | _swigt__p_wxString, | |
29471 | _swigt__p_wxPyProcess, | |
29472 | _swigt__p_wxBitmap, | |
29473 | _swigt__p_wxConfig, | |
29474 | _swigt__p_wxChar, | |
29475 | _swigt__p_wxBusyInfo, | |
29476 | _swigt__p_wxPyDropTarget, | |
29477 | _swigt__p_wxPyTextDropTarget, | |
29478 | _swigt__p_wxPyFileDropTarget, | |
29479 | _swigt__p_wxProcessEvent, | |
29480 | _swigt__p_wxPyLog, | |
29481 | _swigt__p_wxLogNull, | |
29482 | _swigt__p_wxColour, | |
d55e5bfc RD |
29483 | _swigt__p_wxConfigPathChanger, |
29484 | _swigt__p_wxPyTimer, | |
29485 | _swigt__p_wxDateSpan, | |
29486 | 0 | |
29487 | }; | |
29488 | ||
29489 | ||
29490 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
29491 | ||
29492 | static swig_const_info swig_const_table[] = { | |
29493 | { SWIG_PY_POINTER, (char*)"TRACE_MemAlloc", 0, 0, (void *)"memalloc", &SWIGTYPE_p_char}, | |
29494 | { SWIG_PY_POINTER, (char*)"TRACE_Messages", 0, 0, (void *)"messages", &SWIGTYPE_p_char}, | |
29495 | { SWIG_PY_POINTER, (char*)"TRACE_ResAlloc", 0, 0, (void *)"resalloc", &SWIGTYPE_p_char}, | |
29496 | { SWIG_PY_POINTER, (char*)"TRACE_RefCount", 0, 0, (void *)"refcount", &SWIGTYPE_p_char}, | |
29497 | { SWIG_PY_POINTER, (char*)"TRACE_OleCalls", 0, 0, (void *)"ole", &SWIGTYPE_p_char}, | |
29498 | {0}}; | |
29499 | ||
29500 | #ifdef __cplusplus | |
29501 | } | |
29502 | #endif | |
29503 | ||
29504 | #ifdef __cplusplus | |
29505 | extern "C" | |
29506 | #endif | |
29507 | SWIGEXPORT(void) SWIG_init(void) { | |
29508 | static PyObject *SWIG_globals = 0; | |
29509 | static int typeinit = 0; | |
29510 | PyObject *m, *d; | |
29511 | int i; | |
29512 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
29513 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
29514 | d = PyModule_GetDict(m); | |
29515 | ||
29516 | if (!typeinit) { | |
29517 | for (i = 0; swig_types_initial[i]; i++) { | |
29518 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
29519 | } | |
29520 | typeinit = 1; | |
29521 | } | |
29522 | SWIG_InstallConstants(d,swig_const_table); | |
29523 | ||
29524 | PyDict_SetItemString(d,"SYS_OEM_FIXED_FONT", SWIG_FromInt((int)wxSYS_OEM_FIXED_FONT)); | |
29525 | PyDict_SetItemString(d,"SYS_ANSI_FIXED_FONT", SWIG_FromInt((int)wxSYS_ANSI_FIXED_FONT)); | |
29526 | PyDict_SetItemString(d,"SYS_ANSI_VAR_FONT", SWIG_FromInt((int)wxSYS_ANSI_VAR_FONT)); | |
29527 | PyDict_SetItemString(d,"SYS_SYSTEM_FONT", SWIG_FromInt((int)wxSYS_SYSTEM_FONT)); | |
29528 | PyDict_SetItemString(d,"SYS_DEVICE_DEFAULT_FONT", SWIG_FromInt((int)wxSYS_DEVICE_DEFAULT_FONT)); | |
29529 | PyDict_SetItemString(d,"SYS_DEFAULT_PALETTE", SWIG_FromInt((int)wxSYS_DEFAULT_PALETTE)); | |
29530 | PyDict_SetItemString(d,"SYS_SYSTEM_FIXED_FONT", SWIG_FromInt((int)wxSYS_SYSTEM_FIXED_FONT)); | |
29531 | PyDict_SetItemString(d,"SYS_DEFAULT_GUI_FONT", SWIG_FromInt((int)wxSYS_DEFAULT_GUI_FONT)); | |
29532 | PyDict_SetItemString(d,"SYS_ICONTITLE_FONT", SWIG_FromInt((int)wxSYS_ICONTITLE_FONT)); | |
29533 | PyDict_SetItemString(d,"SYS_COLOUR_SCROLLBAR", SWIG_FromInt((int)wxSYS_COLOUR_SCROLLBAR)); | |
29534 | PyDict_SetItemString(d,"SYS_COLOUR_BACKGROUND", SWIG_FromInt((int)wxSYS_COLOUR_BACKGROUND)); | |
29535 | PyDict_SetItemString(d,"SYS_COLOUR_DESKTOP", SWIG_FromInt((int)wxSYS_COLOUR_DESKTOP)); | |
29536 | PyDict_SetItemString(d,"SYS_COLOUR_ACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_ACTIVECAPTION)); | |
29537 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVECAPTION)); | |
29538 | PyDict_SetItemString(d,"SYS_COLOUR_MENU", SWIG_FromInt((int)wxSYS_COLOUR_MENU)); | |
29539 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOW", SWIG_FromInt((int)wxSYS_COLOUR_WINDOW)); | |
29540 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOWFRAME", SWIG_FromInt((int)wxSYS_COLOUR_WINDOWFRAME)); | |
29541 | PyDict_SetItemString(d,"SYS_COLOUR_MENUTEXT", SWIG_FromInt((int)wxSYS_COLOUR_MENUTEXT)); | |
29542 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOWTEXT", SWIG_FromInt((int)wxSYS_COLOUR_WINDOWTEXT)); | |
29543 | PyDict_SetItemString(d,"SYS_COLOUR_CAPTIONTEXT", SWIG_FromInt((int)wxSYS_COLOUR_CAPTIONTEXT)); | |
29544 | PyDict_SetItemString(d,"SYS_COLOUR_ACTIVEBORDER", SWIG_FromInt((int)wxSYS_COLOUR_ACTIVEBORDER)); | |
29545 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVEBORDER", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVEBORDER)); | |
29546 | PyDict_SetItemString(d,"SYS_COLOUR_APPWORKSPACE", SWIG_FromInt((int)wxSYS_COLOUR_APPWORKSPACE)); | |
29547 | PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_HIGHLIGHT)); | |
29548 | PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHTTEXT", SWIG_FromInt((int)wxSYS_COLOUR_HIGHLIGHTTEXT)); | |
29549 | PyDict_SetItemString(d,"SYS_COLOUR_BTNFACE", SWIG_FromInt((int)wxSYS_COLOUR_BTNFACE)); | |
29550 | PyDict_SetItemString(d,"SYS_COLOUR_3DFACE", SWIG_FromInt((int)wxSYS_COLOUR_3DFACE)); | |
29551 | PyDict_SetItemString(d,"SYS_COLOUR_BTNSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_BTNSHADOW)); | |
29552 | PyDict_SetItemString(d,"SYS_COLOUR_3DSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_3DSHADOW)); | |
29553 | PyDict_SetItemString(d,"SYS_COLOUR_GRAYTEXT", SWIG_FromInt((int)wxSYS_COLOUR_GRAYTEXT)); | |
29554 | PyDict_SetItemString(d,"SYS_COLOUR_BTNTEXT", SWIG_FromInt((int)wxSYS_COLOUR_BTNTEXT)); | |
29555 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTIONTEXT", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVECAPTIONTEXT)); | |
29556 | PyDict_SetItemString(d,"SYS_COLOUR_BTNHIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_BTNHIGHLIGHT)); | |
29557 | PyDict_SetItemString(d,"SYS_COLOUR_BTNHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_BTNHILIGHT)); | |
29558 | PyDict_SetItemString(d,"SYS_COLOUR_3DHIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DHIGHLIGHT)); | |
29559 | PyDict_SetItemString(d,"SYS_COLOUR_3DHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DHILIGHT)); | |
29560 | PyDict_SetItemString(d,"SYS_COLOUR_3DDKSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_3DDKSHADOW)); | |
29561 | PyDict_SetItemString(d,"SYS_COLOUR_3DLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DLIGHT)); | |
29562 | PyDict_SetItemString(d,"SYS_COLOUR_INFOTEXT", SWIG_FromInt((int)wxSYS_COLOUR_INFOTEXT)); | |
29563 | PyDict_SetItemString(d,"SYS_COLOUR_INFOBK", SWIG_FromInt((int)wxSYS_COLOUR_INFOBK)); | |
29564 | PyDict_SetItemString(d,"SYS_COLOUR_LISTBOX", SWIG_FromInt((int)wxSYS_COLOUR_LISTBOX)); | |
29565 | PyDict_SetItemString(d,"SYS_COLOUR_HOTLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_HOTLIGHT)); | |
29566 | PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_GRADIENTACTIVECAPTION)); | |
29567 | PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTINACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_GRADIENTINACTIVECAPTION)); | |
29568 | PyDict_SetItemString(d,"SYS_COLOUR_MENUHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_MENUHILIGHT)); | |
29569 | PyDict_SetItemString(d,"SYS_COLOUR_MENUBAR", SWIG_FromInt((int)wxSYS_COLOUR_MENUBAR)); | |
29570 | PyDict_SetItemString(d,"SYS_COLOUR_MAX", SWIG_FromInt((int)wxSYS_COLOUR_MAX)); | |
29571 | PyDict_SetItemString(d,"SYS_MOUSE_BUTTONS", SWIG_FromInt((int)wxSYS_MOUSE_BUTTONS)); | |
29572 | PyDict_SetItemString(d,"SYS_BORDER_X", SWIG_FromInt((int)wxSYS_BORDER_X)); | |
29573 | PyDict_SetItemString(d,"SYS_BORDER_Y", SWIG_FromInt((int)wxSYS_BORDER_Y)); | |
29574 | PyDict_SetItemString(d,"SYS_CURSOR_X", SWIG_FromInt((int)wxSYS_CURSOR_X)); | |
29575 | PyDict_SetItemString(d,"SYS_CURSOR_Y", SWIG_FromInt((int)wxSYS_CURSOR_Y)); | |
29576 | PyDict_SetItemString(d,"SYS_DCLICK_X", SWIG_FromInt((int)wxSYS_DCLICK_X)); | |
29577 | PyDict_SetItemString(d,"SYS_DCLICK_Y", SWIG_FromInt((int)wxSYS_DCLICK_Y)); | |
29578 | PyDict_SetItemString(d,"SYS_DRAG_X", SWIG_FromInt((int)wxSYS_DRAG_X)); | |
29579 | PyDict_SetItemString(d,"SYS_DRAG_Y", SWIG_FromInt((int)wxSYS_DRAG_Y)); | |
29580 | PyDict_SetItemString(d,"SYS_EDGE_X", SWIG_FromInt((int)wxSYS_EDGE_X)); | |
29581 | PyDict_SetItemString(d,"SYS_EDGE_Y", SWIG_FromInt((int)wxSYS_EDGE_Y)); | |
29582 | PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_X", SWIG_FromInt((int)wxSYS_HSCROLL_ARROW_X)); | |
29583 | PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_Y", SWIG_FromInt((int)wxSYS_HSCROLL_ARROW_Y)); | |
29584 | PyDict_SetItemString(d,"SYS_HTHUMB_X", SWIG_FromInt((int)wxSYS_HTHUMB_X)); | |
29585 | PyDict_SetItemString(d,"SYS_ICON_X", SWIG_FromInt((int)wxSYS_ICON_X)); | |
29586 | PyDict_SetItemString(d,"SYS_ICON_Y", SWIG_FromInt((int)wxSYS_ICON_Y)); | |
29587 | PyDict_SetItemString(d,"SYS_ICONSPACING_X", SWIG_FromInt((int)wxSYS_ICONSPACING_X)); | |
29588 | PyDict_SetItemString(d,"SYS_ICONSPACING_Y", SWIG_FromInt((int)wxSYS_ICONSPACING_Y)); | |
29589 | PyDict_SetItemString(d,"SYS_WINDOWMIN_X", SWIG_FromInt((int)wxSYS_WINDOWMIN_X)); | |
29590 | PyDict_SetItemString(d,"SYS_WINDOWMIN_Y", SWIG_FromInt((int)wxSYS_WINDOWMIN_Y)); | |
29591 | PyDict_SetItemString(d,"SYS_SCREEN_X", SWIG_FromInt((int)wxSYS_SCREEN_X)); | |
29592 | PyDict_SetItemString(d,"SYS_SCREEN_Y", SWIG_FromInt((int)wxSYS_SCREEN_Y)); | |
29593 | PyDict_SetItemString(d,"SYS_FRAMESIZE_X", SWIG_FromInt((int)wxSYS_FRAMESIZE_X)); | |
29594 | PyDict_SetItemString(d,"SYS_FRAMESIZE_Y", SWIG_FromInt((int)wxSYS_FRAMESIZE_Y)); | |
29595 | PyDict_SetItemString(d,"SYS_SMALLICON_X", SWIG_FromInt((int)wxSYS_SMALLICON_X)); | |
29596 | PyDict_SetItemString(d,"SYS_SMALLICON_Y", SWIG_FromInt((int)wxSYS_SMALLICON_Y)); | |
29597 | PyDict_SetItemString(d,"SYS_HSCROLL_Y", SWIG_FromInt((int)wxSYS_HSCROLL_Y)); | |
29598 | PyDict_SetItemString(d,"SYS_VSCROLL_X", SWIG_FromInt((int)wxSYS_VSCROLL_X)); | |
29599 | PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_X", SWIG_FromInt((int)wxSYS_VSCROLL_ARROW_X)); | |
29600 | PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_Y", SWIG_FromInt((int)wxSYS_VSCROLL_ARROW_Y)); | |
29601 | PyDict_SetItemString(d,"SYS_VTHUMB_Y", SWIG_FromInt((int)wxSYS_VTHUMB_Y)); | |
29602 | PyDict_SetItemString(d,"SYS_CAPTION_Y", SWIG_FromInt((int)wxSYS_CAPTION_Y)); | |
29603 | PyDict_SetItemString(d,"SYS_MENU_Y", SWIG_FromInt((int)wxSYS_MENU_Y)); | |
29604 | PyDict_SetItemString(d,"SYS_NETWORK_PRESENT", SWIG_FromInt((int)wxSYS_NETWORK_PRESENT)); | |
29605 | PyDict_SetItemString(d,"SYS_PENWINDOWS_PRESENT", SWIG_FromInt((int)wxSYS_PENWINDOWS_PRESENT)); | |
29606 | PyDict_SetItemString(d,"SYS_SHOW_SOUNDS", SWIG_FromInt((int)wxSYS_SHOW_SOUNDS)); | |
29607 | PyDict_SetItemString(d,"SYS_SWAP_BUTTONS", SWIG_FromInt((int)wxSYS_SWAP_BUTTONS)); | |
29608 | PyDict_SetItemString(d,"SYS_CAN_DRAW_FRAME_DECORATIONS", SWIG_FromInt((int)wxSYS_CAN_DRAW_FRAME_DECORATIONS)); | |
29609 | PyDict_SetItemString(d,"SYS_CAN_ICONIZE_FRAME", SWIG_FromInt((int)wxSYS_CAN_ICONIZE_FRAME)); | |
29610 | PyDict_SetItemString(d,"SYS_SCREEN_NONE", SWIG_FromInt((int)wxSYS_SCREEN_NONE)); | |
29611 | PyDict_SetItemString(d,"SYS_SCREEN_TINY", SWIG_FromInt((int)wxSYS_SCREEN_TINY)); | |
29612 | PyDict_SetItemString(d,"SYS_SCREEN_PDA", SWIG_FromInt((int)wxSYS_SCREEN_PDA)); | |
29613 | PyDict_SetItemString(d,"SYS_SCREEN_SMALL", SWIG_FromInt((int)wxSYS_SCREEN_SMALL)); | |
29614 | PyDict_SetItemString(d,"SYS_SCREEN_DESKTOP", SWIG_FromInt((int)wxSYS_SCREEN_DESKTOP)); | |
29615 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); | |
29616 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set); | |
29617 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set); | |
29618 | SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set); | |
29619 | PyDict_SetItemString(d,"SHUTDOWN_POWEROFF", SWIG_FromInt((int)wxSHUTDOWN_POWEROFF)); | |
29620 | PyDict_SetItemString(d,"SHUTDOWN_REBOOT", SWIG_FromInt((int)wxSHUTDOWN_REBOOT)); | |
29621 | PyDict_SetItemString(d,"TIMER_CONTINUOUS", SWIG_FromInt((int)wxTIMER_CONTINUOUS)); | |
29622 | PyDict_SetItemString(d,"TIMER_ONE_SHOT", SWIG_FromInt((int)wxTIMER_ONE_SHOT)); | |
29623 | PyDict_SetItemString(d, "wxEVT_TIMER", PyInt_FromLong(wxEVT_TIMER)); | |
1a6bba1e RD |
29624 | |
29625 | wxPyPtrTypeMap_Add("wxTimer", "wxPyTimer"); | |
29626 | ||
d55e5bfc RD |
29627 | PyDict_SetItemString(d,"LOG_FatalError", SWIG_FromInt((int)wxLOG_FatalError)); |
29628 | PyDict_SetItemString(d,"LOG_Error", SWIG_FromInt((int)wxLOG_Error)); | |
29629 | PyDict_SetItemString(d,"LOG_Warning", SWIG_FromInt((int)wxLOG_Warning)); | |
29630 | PyDict_SetItemString(d,"LOG_Message", SWIG_FromInt((int)wxLOG_Message)); | |
29631 | PyDict_SetItemString(d,"LOG_Status", SWIG_FromInt((int)wxLOG_Status)); | |
29632 | PyDict_SetItemString(d,"LOG_Info", SWIG_FromInt((int)wxLOG_Info)); | |
29633 | PyDict_SetItemString(d,"LOG_Debug", SWIG_FromInt((int)wxLOG_Debug)); | |
29634 | PyDict_SetItemString(d,"LOG_Trace", SWIG_FromInt((int)wxLOG_Trace)); | |
29635 | PyDict_SetItemString(d,"LOG_Progress", SWIG_FromInt((int)wxLOG_Progress)); | |
29636 | PyDict_SetItemString(d,"LOG_User", SWIG_FromInt((int)wxLOG_User)); | |
29637 | PyDict_SetItemString(d,"LOG_Max", SWIG_FromInt((int)wxLOG_Max)); | |
29638 | PyDict_SetItemString(d,"TRACE_MemAlloc", SWIG_FromCharPtr("memalloc")); | |
29639 | PyDict_SetItemString(d,"TRACE_Messages", SWIG_FromCharPtr("messages")); | |
29640 | PyDict_SetItemString(d,"TRACE_ResAlloc", SWIG_FromCharPtr("resalloc")); | |
29641 | PyDict_SetItemString(d,"TRACE_RefCount", SWIG_FromCharPtr("refcount")); | |
29642 | PyDict_SetItemString(d,"TRACE_OleCalls", SWIG_FromCharPtr("ole")); | |
29643 | PyDict_SetItemString(d,"TraceMemAlloc", SWIG_FromInt((int)0x0001)); | |
29644 | PyDict_SetItemString(d,"TraceMessages", SWIG_FromInt((int)0x0002)); | |
29645 | PyDict_SetItemString(d,"TraceResAlloc", SWIG_FromInt((int)0x0004)); | |
29646 | PyDict_SetItemString(d,"TraceRefCount", SWIG_FromInt((int)0x0008)); | |
29647 | PyDict_SetItemString(d,"TraceOleCalls", SWIG_FromInt((int)0x0100)); | |
29648 | PyDict_SetItemString(d,"PROCESS_DEFAULT", SWIG_FromInt((int)wxPROCESS_DEFAULT)); | |
29649 | PyDict_SetItemString(d,"PROCESS_REDIRECT", SWIG_FromInt((int)wxPROCESS_REDIRECT)); | |
29650 | PyDict_SetItemString(d,"KILL_OK", SWIG_FromInt((int)wxKILL_OK)); | |
29651 | PyDict_SetItemString(d,"KILL_BAD_SIGNAL", SWIG_FromInt((int)wxKILL_BAD_SIGNAL)); | |
29652 | PyDict_SetItemString(d,"KILL_ACCESS_DENIED", SWIG_FromInt((int)wxKILL_ACCESS_DENIED)); | |
29653 | PyDict_SetItemString(d,"KILL_NO_PROCESS", SWIG_FromInt((int)wxKILL_NO_PROCESS)); | |
29654 | PyDict_SetItemString(d,"KILL_ERROR", SWIG_FromInt((int)wxKILL_ERROR)); | |
29655 | PyDict_SetItemString(d,"SIGNONE", SWIG_FromInt((int)wxSIGNONE)); | |
29656 | PyDict_SetItemString(d,"SIGHUP", SWIG_FromInt((int)wxSIGHUP)); | |
29657 | PyDict_SetItemString(d,"SIGINT", SWIG_FromInt((int)wxSIGINT)); | |
29658 | PyDict_SetItemString(d,"SIGQUIT", SWIG_FromInt((int)wxSIGQUIT)); | |
29659 | PyDict_SetItemString(d,"SIGILL", SWIG_FromInt((int)wxSIGILL)); | |
29660 | PyDict_SetItemString(d,"SIGTRAP", SWIG_FromInt((int)wxSIGTRAP)); | |
29661 | PyDict_SetItemString(d,"SIGABRT", SWIG_FromInt((int)wxSIGABRT)); | |
29662 | PyDict_SetItemString(d,"SIGIOT", SWIG_FromInt((int)wxSIGIOT)); | |
29663 | PyDict_SetItemString(d,"SIGEMT", SWIG_FromInt((int)wxSIGEMT)); | |
29664 | PyDict_SetItemString(d,"SIGFPE", SWIG_FromInt((int)wxSIGFPE)); | |
29665 | PyDict_SetItemString(d,"SIGKILL", SWIG_FromInt((int)wxSIGKILL)); | |
29666 | PyDict_SetItemString(d,"SIGBUS", SWIG_FromInt((int)wxSIGBUS)); | |
29667 | PyDict_SetItemString(d,"SIGSEGV", SWIG_FromInt((int)wxSIGSEGV)); | |
29668 | PyDict_SetItemString(d,"SIGSYS", SWIG_FromInt((int)wxSIGSYS)); | |
29669 | PyDict_SetItemString(d,"SIGPIPE", SWIG_FromInt((int)wxSIGPIPE)); | |
29670 | PyDict_SetItemString(d,"SIGALRM", SWIG_FromInt((int)wxSIGALRM)); | |
29671 | PyDict_SetItemString(d,"SIGTERM", SWIG_FromInt((int)wxSIGTERM)); | |
29672 | PyDict_SetItemString(d, "wxEVT_END_PROCESS", PyInt_FromLong(wxEVT_END_PROCESS)); | |
29673 | PyDict_SetItemString(d,"EXEC_ASYNC", SWIG_FromInt((int)wxEXEC_ASYNC)); | |
29674 | PyDict_SetItemString(d,"EXEC_SYNC", SWIG_FromInt((int)wxEXEC_SYNC)); | |
29675 | PyDict_SetItemString(d,"EXEC_NOHIDE", SWIG_FromInt((int)wxEXEC_NOHIDE)); | |
29676 | PyDict_SetItemString(d,"EXEC_MAKE_GROUP_LEADER", SWIG_FromInt((int)wxEXEC_MAKE_GROUP_LEADER)); | |
29677 | ||
29678 | wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess"); | |
29679 | ||
29680 | PyDict_SetItemString(d,"JOYSTICK1", SWIG_FromInt((int)wxJOYSTICK1)); | |
29681 | PyDict_SetItemString(d,"JOYSTICK2", SWIG_FromInt((int)wxJOYSTICK2)); | |
29682 | PyDict_SetItemString(d,"JOY_BUTTON_ANY", SWIG_FromInt((int)wxJOY_BUTTON_ANY)); | |
29683 | PyDict_SetItemString(d,"JOY_BUTTON1", SWIG_FromInt((int)wxJOY_BUTTON1)); | |
29684 | PyDict_SetItemString(d,"JOY_BUTTON2", SWIG_FromInt((int)wxJOY_BUTTON2)); | |
29685 | PyDict_SetItemString(d,"JOY_BUTTON3", SWIG_FromInt((int)wxJOY_BUTTON3)); | |
29686 | PyDict_SetItemString(d,"JOY_BUTTON4", SWIG_FromInt((int)wxJOY_BUTTON4)); | |
29687 | PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong(wxEVT_JOY_BUTTON_DOWN)); | |
29688 | PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_UP", PyInt_FromLong(wxEVT_JOY_BUTTON_UP)); | |
29689 | PyDict_SetItemString(d, "wxEVT_JOY_MOVE", PyInt_FromLong(wxEVT_JOY_MOVE)); | |
29690 | PyDict_SetItemString(d, "wxEVT_JOY_ZMOVE", PyInt_FromLong(wxEVT_JOY_ZMOVE)); | |
29691 | PyDict_SetItemString(d,"SOUND_SYNC", SWIG_FromInt((int)wxSOUND_SYNC)); | |
29692 | PyDict_SetItemString(d,"SOUND_ASYNC", SWIG_FromInt((int)wxSOUND_ASYNC)); | |
29693 | PyDict_SetItemString(d,"SOUND_LOOP", SWIG_FromInt((int)wxSOUND_LOOP)); | |
29694 | PyDict_SetItemString(d,"MAILCAP_STANDARD", SWIG_FromInt((int)wxMAILCAP_STANDARD)); | |
29695 | PyDict_SetItemString(d,"MAILCAP_NETSCAPE", SWIG_FromInt((int)wxMAILCAP_NETSCAPE)); | |
29696 | PyDict_SetItemString(d,"MAILCAP_KDE", SWIG_FromInt((int)wxMAILCAP_KDE)); | |
29697 | PyDict_SetItemString(d,"MAILCAP_GNOME", SWIG_FromInt((int)wxMAILCAP_GNOME)); | |
29698 | PyDict_SetItemString(d,"MAILCAP_ALL", SWIG_FromInt((int)wxMAILCAP_ALL)); | |
29699 | SWIG_addvarlink(SWIG_globals,(char*)"TheMimeTypesManager",_wrap_TheMimeTypesManager_get, _wrap_TheMimeTypesManager_set); | |
29700 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TOOLBAR",_wrap_ART_TOOLBAR_get, _wrap_ART_TOOLBAR_set); | |
29701 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MENU",_wrap_ART_MENU_get, _wrap_ART_MENU_set); | |
29702 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FRAME_ICON",_wrap_ART_FRAME_ICON_get, _wrap_ART_FRAME_ICON_set); | |
29703 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CMN_DIALOG",_wrap_ART_CMN_DIALOG_get, _wrap_ART_CMN_DIALOG_set); | |
29704 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BROWSER",_wrap_ART_HELP_BROWSER_get, _wrap_ART_HELP_BROWSER_set); | |
29705 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MESSAGE_BOX",_wrap_ART_MESSAGE_BOX_get, _wrap_ART_MESSAGE_BOX_set); | |
29706 | SWIG_addvarlink(SWIG_globals,(char*)"ART_OTHER",_wrap_ART_OTHER_get, _wrap_ART_OTHER_set); | |
29707 | SWIG_addvarlink(SWIG_globals,(char*)"ART_ADD_BOOKMARK",_wrap_ART_ADD_BOOKMARK_get, _wrap_ART_ADD_BOOKMARK_set); | |
29708 | SWIG_addvarlink(SWIG_globals,(char*)"ART_DEL_BOOKMARK",_wrap_ART_DEL_BOOKMARK_get, _wrap_ART_DEL_BOOKMARK_set); | |
29709 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SIDE_PANEL",_wrap_ART_HELP_SIDE_PANEL_get, _wrap_ART_HELP_SIDE_PANEL_set); | |
29710 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SETTINGS",_wrap_ART_HELP_SETTINGS_get, _wrap_ART_HELP_SETTINGS_set); | |
29711 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BOOK",_wrap_ART_HELP_BOOK_get, _wrap_ART_HELP_BOOK_set); | |
29712 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_FOLDER",_wrap_ART_HELP_FOLDER_get, _wrap_ART_HELP_FOLDER_set); | |
29713 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_PAGE",_wrap_ART_HELP_PAGE_get, _wrap_ART_HELP_PAGE_set); | |
29714 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_BACK",_wrap_ART_GO_BACK_get, _wrap_ART_GO_BACK_set); | |
29715 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_FORWARD",_wrap_ART_GO_FORWARD_get, _wrap_ART_GO_FORWARD_set); | |
29716 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_UP",_wrap_ART_GO_UP_get, _wrap_ART_GO_UP_set); | |
29717 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DOWN",_wrap_ART_GO_DOWN_get, _wrap_ART_GO_DOWN_set); | |
29718 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_TO_PARENT",_wrap_ART_GO_TO_PARENT_get, _wrap_ART_GO_TO_PARENT_set); | |
29719 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_HOME",_wrap_ART_GO_HOME_get, _wrap_ART_GO_HOME_set); | |
29720 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_OPEN",_wrap_ART_FILE_OPEN_get, _wrap_ART_FILE_OPEN_set); | |
29721 | SWIG_addvarlink(SWIG_globals,(char*)"ART_PRINT",_wrap_ART_PRINT_get, _wrap_ART_PRINT_set); | |
29722 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP",_wrap_ART_HELP_get, _wrap_ART_HELP_set); | |
29723 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TIP",_wrap_ART_TIP_get, _wrap_ART_TIP_set); | |
29724 | SWIG_addvarlink(SWIG_globals,(char*)"ART_REPORT_VIEW",_wrap_ART_REPORT_VIEW_get, _wrap_ART_REPORT_VIEW_set); | |
29725 | SWIG_addvarlink(SWIG_globals,(char*)"ART_LIST_VIEW",_wrap_ART_LIST_VIEW_get, _wrap_ART_LIST_VIEW_set); | |
29726 | SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW_DIR",_wrap_ART_NEW_DIR_get, _wrap_ART_NEW_DIR_set); | |
29727 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER",_wrap_ART_FOLDER_get, _wrap_ART_FOLDER_set); | |
29728 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DIR_UP",_wrap_ART_GO_DIR_UP_get, _wrap_ART_GO_DIR_UP_set); | |
29729 | SWIG_addvarlink(SWIG_globals,(char*)"ART_EXECUTABLE_FILE",_wrap_ART_EXECUTABLE_FILE_get, _wrap_ART_EXECUTABLE_FILE_set); | |
29730 | SWIG_addvarlink(SWIG_globals,(char*)"ART_NORMAL_FILE",_wrap_ART_NORMAL_FILE_get, _wrap_ART_NORMAL_FILE_set); | |
29731 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TICK_MARK",_wrap_ART_TICK_MARK_get, _wrap_ART_TICK_MARK_set); | |
29732 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CROSS_MARK",_wrap_ART_CROSS_MARK_get, _wrap_ART_CROSS_MARK_set); | |
29733 | SWIG_addvarlink(SWIG_globals,(char*)"ART_ERROR",_wrap_ART_ERROR_get, _wrap_ART_ERROR_set); | |
29734 | SWIG_addvarlink(SWIG_globals,(char*)"ART_QUESTION",_wrap_ART_QUESTION_get, _wrap_ART_QUESTION_set); | |
29735 | SWIG_addvarlink(SWIG_globals,(char*)"ART_WARNING",_wrap_ART_WARNING_get, _wrap_ART_WARNING_set); | |
29736 | SWIG_addvarlink(SWIG_globals,(char*)"ART_INFORMATION",_wrap_ART_INFORMATION_get, _wrap_ART_INFORMATION_set); | |
29737 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MISSING_IMAGE",_wrap_ART_MISSING_IMAGE_get, _wrap_ART_MISSING_IMAGE_set); | |
29738 | ||
29739 | wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider"); | |
29740 | ||
29741 | PyDict_SetItemString(d,"CONFIG_USE_LOCAL_FILE", SWIG_FromInt((int)wxCONFIG_USE_LOCAL_FILE)); | |
29742 | PyDict_SetItemString(d,"CONFIG_USE_GLOBAL_FILE", SWIG_FromInt((int)wxCONFIG_USE_GLOBAL_FILE)); | |
29743 | PyDict_SetItemString(d,"CONFIG_USE_RELATIVE_PATH", SWIG_FromInt((int)wxCONFIG_USE_RELATIVE_PATH)); | |
29744 | PyDict_SetItemString(d,"CONFIG_USE_NO_ESCAPE_CHARACTERS", SWIG_FromInt((int)wxCONFIG_USE_NO_ESCAPE_CHARACTERS)); | |
29745 | PyDict_SetItemString(d,"ConfigBase_Type_Unknown", SWIG_FromInt((int)wxConfigBase::Type_Unknown)); | |
29746 | PyDict_SetItemString(d,"ConfigBase_Type_String", SWIG_FromInt((int)wxConfigBase::Type_String)); | |
29747 | PyDict_SetItemString(d,"ConfigBase_Type_Boolean", SWIG_FromInt((int)wxConfigBase::Type_Boolean)); | |
29748 | PyDict_SetItemString(d,"ConfigBase_Type_Integer", SWIG_FromInt((int)wxConfigBase::Type_Integer)); | |
29749 | PyDict_SetItemString(d,"ConfigBase_Type_Float", SWIG_FromInt((int)wxConfigBase::Type_Float)); | |
29750 | SWIG_addvarlink(SWIG_globals,(char*)"DateFormatStr",_wrap_DateFormatStr_get, _wrap_DateFormatStr_set); | |
29751 | SWIG_addvarlink(SWIG_globals,(char*)"TimeSpanFormatStr",_wrap_TimeSpanFormatStr_get, _wrap_TimeSpanFormatStr_set); | |
29752 | PyDict_SetItemString(d,"DateTime_Local", SWIG_FromInt((int)wxDateTime::Local)); | |
29753 | PyDict_SetItemString(d,"DateTime_GMT_12", SWIG_FromInt((int)wxDateTime::GMT_12)); | |
29754 | PyDict_SetItemString(d,"DateTime_GMT_11", SWIG_FromInt((int)wxDateTime::GMT_11)); | |
29755 | PyDict_SetItemString(d,"DateTime_GMT_10", SWIG_FromInt((int)wxDateTime::GMT_10)); | |
29756 | PyDict_SetItemString(d,"DateTime_GMT_9", SWIG_FromInt((int)wxDateTime::GMT_9)); | |
29757 | PyDict_SetItemString(d,"DateTime_GMT_8", SWIG_FromInt((int)wxDateTime::GMT_8)); | |
29758 | PyDict_SetItemString(d,"DateTime_GMT_7", SWIG_FromInt((int)wxDateTime::GMT_7)); | |
29759 | PyDict_SetItemString(d,"DateTime_GMT_6", SWIG_FromInt((int)wxDateTime::GMT_6)); | |
29760 | PyDict_SetItemString(d,"DateTime_GMT_5", SWIG_FromInt((int)wxDateTime::GMT_5)); | |
29761 | PyDict_SetItemString(d,"DateTime_GMT_4", SWIG_FromInt((int)wxDateTime::GMT_4)); | |
29762 | PyDict_SetItemString(d,"DateTime_GMT_3", SWIG_FromInt((int)wxDateTime::GMT_3)); | |
29763 | PyDict_SetItemString(d,"DateTime_GMT_2", SWIG_FromInt((int)wxDateTime::GMT_2)); | |
29764 | PyDict_SetItemString(d,"DateTime_GMT_1", SWIG_FromInt((int)wxDateTime::GMT_1)); | |
29765 | PyDict_SetItemString(d,"DateTime_GMT0", SWIG_FromInt((int)wxDateTime::GMT0)); | |
29766 | PyDict_SetItemString(d,"DateTime_GMT1", SWIG_FromInt((int)wxDateTime::GMT1)); | |
29767 | PyDict_SetItemString(d,"DateTime_GMT2", SWIG_FromInt((int)wxDateTime::GMT2)); | |
29768 | PyDict_SetItemString(d,"DateTime_GMT3", SWIG_FromInt((int)wxDateTime::GMT3)); | |
29769 | PyDict_SetItemString(d,"DateTime_GMT4", SWIG_FromInt((int)wxDateTime::GMT4)); | |
29770 | PyDict_SetItemString(d,"DateTime_GMT5", SWIG_FromInt((int)wxDateTime::GMT5)); | |
29771 | PyDict_SetItemString(d,"DateTime_GMT6", SWIG_FromInt((int)wxDateTime::GMT6)); | |
29772 | PyDict_SetItemString(d,"DateTime_GMT7", SWIG_FromInt((int)wxDateTime::GMT7)); | |
29773 | PyDict_SetItemString(d,"DateTime_GMT8", SWIG_FromInt((int)wxDateTime::GMT8)); | |
29774 | PyDict_SetItemString(d,"DateTime_GMT9", SWIG_FromInt((int)wxDateTime::GMT9)); | |
29775 | PyDict_SetItemString(d,"DateTime_GMT10", SWIG_FromInt((int)wxDateTime::GMT10)); | |
29776 | PyDict_SetItemString(d,"DateTime_GMT11", SWIG_FromInt((int)wxDateTime::GMT11)); | |
29777 | PyDict_SetItemString(d,"DateTime_GMT12", SWIG_FromInt((int)wxDateTime::GMT12)); | |
29778 | PyDict_SetItemString(d,"DateTime_WET", SWIG_FromInt((int)wxDateTime::WET)); | |
29779 | PyDict_SetItemString(d,"DateTime_WEST", SWIG_FromInt((int)wxDateTime::WEST)); | |
29780 | PyDict_SetItemString(d,"DateTime_CET", SWIG_FromInt((int)wxDateTime::CET)); | |
29781 | PyDict_SetItemString(d,"DateTime_CEST", SWIG_FromInt((int)wxDateTime::CEST)); | |
29782 | PyDict_SetItemString(d,"DateTime_EET", SWIG_FromInt((int)wxDateTime::EET)); | |
29783 | PyDict_SetItemString(d,"DateTime_EEST", SWIG_FromInt((int)wxDateTime::EEST)); | |
29784 | PyDict_SetItemString(d,"DateTime_MSK", SWIG_FromInt((int)wxDateTime::MSK)); | |
29785 | PyDict_SetItemString(d,"DateTime_MSD", SWIG_FromInt((int)wxDateTime::MSD)); | |
29786 | PyDict_SetItemString(d,"DateTime_AST", SWIG_FromInt((int)wxDateTime::AST)); | |
29787 | PyDict_SetItemString(d,"DateTime_ADT", SWIG_FromInt((int)wxDateTime::ADT)); | |
29788 | PyDict_SetItemString(d,"DateTime_EST", SWIG_FromInt((int)wxDateTime::EST)); | |
29789 | PyDict_SetItemString(d,"DateTime_EDT", SWIG_FromInt((int)wxDateTime::EDT)); | |
29790 | PyDict_SetItemString(d,"DateTime_CST", SWIG_FromInt((int)wxDateTime::CST)); | |
29791 | PyDict_SetItemString(d,"DateTime_CDT", SWIG_FromInt((int)wxDateTime::CDT)); | |
29792 | PyDict_SetItemString(d,"DateTime_MST", SWIG_FromInt((int)wxDateTime::MST)); | |
29793 | PyDict_SetItemString(d,"DateTime_MDT", SWIG_FromInt((int)wxDateTime::MDT)); | |
29794 | PyDict_SetItemString(d,"DateTime_PST", SWIG_FromInt((int)wxDateTime::PST)); | |
29795 | PyDict_SetItemString(d,"DateTime_PDT", SWIG_FromInt((int)wxDateTime::PDT)); | |
29796 | PyDict_SetItemString(d,"DateTime_HST", SWIG_FromInt((int)wxDateTime::HST)); | |
29797 | PyDict_SetItemString(d,"DateTime_AKST", SWIG_FromInt((int)wxDateTime::AKST)); | |
29798 | PyDict_SetItemString(d,"DateTime_AKDT", SWIG_FromInt((int)wxDateTime::AKDT)); | |
29799 | PyDict_SetItemString(d,"DateTime_A_WST", SWIG_FromInt((int)wxDateTime::A_WST)); | |
29800 | PyDict_SetItemString(d,"DateTime_A_CST", SWIG_FromInt((int)wxDateTime::A_CST)); | |
29801 | PyDict_SetItemString(d,"DateTime_A_EST", SWIG_FromInt((int)wxDateTime::A_EST)); | |
29802 | PyDict_SetItemString(d,"DateTime_A_ESST", SWIG_FromInt((int)wxDateTime::A_ESST)); | |
29803 | PyDict_SetItemString(d,"DateTime_UTC", SWIG_FromInt((int)wxDateTime::UTC)); | |
29804 | PyDict_SetItemString(d,"DateTime_Gregorian", SWIG_FromInt((int)wxDateTime::Gregorian)); | |
29805 | PyDict_SetItemString(d,"DateTime_Julian", SWIG_FromInt((int)wxDateTime::Julian)); | |
29806 | PyDict_SetItemString(d,"DateTime_Gr_Unknown", SWIG_FromInt((int)wxDateTime::Gr_Unknown)); | |
29807 | PyDict_SetItemString(d,"DateTime_Gr_Standard", SWIG_FromInt((int)wxDateTime::Gr_Standard)); | |
29808 | PyDict_SetItemString(d,"DateTime_Gr_Alaska", SWIG_FromInt((int)wxDateTime::Gr_Alaska)); | |
29809 | PyDict_SetItemString(d,"DateTime_Gr_Albania", SWIG_FromInt((int)wxDateTime::Gr_Albania)); | |
29810 | PyDict_SetItemString(d,"DateTime_Gr_Austria", SWIG_FromInt((int)wxDateTime::Gr_Austria)); | |
29811 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Brixen", SWIG_FromInt((int)wxDateTime::Gr_Austria_Brixen)); | |
29812 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Salzburg", SWIG_FromInt((int)wxDateTime::Gr_Austria_Salzburg)); | |
29813 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Tyrol", SWIG_FromInt((int)wxDateTime::Gr_Austria_Tyrol)); | |
29814 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Carinthia", SWIG_FromInt((int)wxDateTime::Gr_Austria_Carinthia)); | |
29815 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Styria", SWIG_FromInt((int)wxDateTime::Gr_Austria_Styria)); | |
29816 | PyDict_SetItemString(d,"DateTime_Gr_Belgium", SWIG_FromInt((int)wxDateTime::Gr_Belgium)); | |
29817 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria)); | |
29818 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_1", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_1)); | |
29819 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_2", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_2)); | |
29820 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_3", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_3)); | |
29821 | PyDict_SetItemString(d,"DateTime_Gr_Canada", SWIG_FromInt((int)wxDateTime::Gr_Canada)); | |
29822 | PyDict_SetItemString(d,"DateTime_Gr_China", SWIG_FromInt((int)wxDateTime::Gr_China)); | |
29823 | PyDict_SetItemString(d,"DateTime_Gr_China_1", SWIG_FromInt((int)wxDateTime::Gr_China_1)); | |
29824 | PyDict_SetItemString(d,"DateTime_Gr_China_2", SWIG_FromInt((int)wxDateTime::Gr_China_2)); | |
29825 | PyDict_SetItemString(d,"DateTime_Gr_Czechoslovakia", SWIG_FromInt((int)wxDateTime::Gr_Czechoslovakia)); | |
29826 | PyDict_SetItemString(d,"DateTime_Gr_Denmark", SWIG_FromInt((int)wxDateTime::Gr_Denmark)); | |
29827 | PyDict_SetItemString(d,"DateTime_Gr_Egypt", SWIG_FromInt((int)wxDateTime::Gr_Egypt)); | |
29828 | PyDict_SetItemString(d,"DateTime_Gr_Estonia", SWIG_FromInt((int)wxDateTime::Gr_Estonia)); | |
29829 | PyDict_SetItemString(d,"DateTime_Gr_Finland", SWIG_FromInt((int)wxDateTime::Gr_Finland)); | |
29830 | PyDict_SetItemString(d,"DateTime_Gr_France", SWIG_FromInt((int)wxDateTime::Gr_France)); | |
29831 | PyDict_SetItemString(d,"DateTime_Gr_France_Alsace", SWIG_FromInt((int)wxDateTime::Gr_France_Alsace)); | |
29832 | PyDict_SetItemString(d,"DateTime_Gr_France_Lorraine", SWIG_FromInt((int)wxDateTime::Gr_France_Lorraine)); | |
29833 | PyDict_SetItemString(d,"DateTime_Gr_France_Strasbourg", SWIG_FromInt((int)wxDateTime::Gr_France_Strasbourg)); | |
29834 | PyDict_SetItemString(d,"DateTime_Gr_Germany", SWIG_FromInt((int)wxDateTime::Gr_Germany)); | |
29835 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Catholic", SWIG_FromInt((int)wxDateTime::Gr_Germany_Catholic)); | |
29836 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Prussia", SWIG_FromInt((int)wxDateTime::Gr_Germany_Prussia)); | |
29837 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Protestant", SWIG_FromInt((int)wxDateTime::Gr_Germany_Protestant)); | |
29838 | PyDict_SetItemString(d,"DateTime_Gr_GreatBritain", SWIG_FromInt((int)wxDateTime::Gr_GreatBritain)); | |
29839 | PyDict_SetItemString(d,"DateTime_Gr_Greece", SWIG_FromInt((int)wxDateTime::Gr_Greece)); | |
29840 | PyDict_SetItemString(d,"DateTime_Gr_Hungary", SWIG_FromInt((int)wxDateTime::Gr_Hungary)); | |
29841 | PyDict_SetItemString(d,"DateTime_Gr_Ireland", SWIG_FromInt((int)wxDateTime::Gr_Ireland)); | |
29842 | PyDict_SetItemString(d,"DateTime_Gr_Italy", SWIG_FromInt((int)wxDateTime::Gr_Italy)); | |
29843 | PyDict_SetItemString(d,"DateTime_Gr_Japan", SWIG_FromInt((int)wxDateTime::Gr_Japan)); | |
29844 | PyDict_SetItemString(d,"DateTime_Gr_Japan_1", SWIG_FromInt((int)wxDateTime::Gr_Japan_1)); | |
29845 | PyDict_SetItemString(d,"DateTime_Gr_Japan_2", SWIG_FromInt((int)wxDateTime::Gr_Japan_2)); | |
29846 | PyDict_SetItemString(d,"DateTime_Gr_Japan_3", SWIG_FromInt((int)wxDateTime::Gr_Japan_3)); | |
29847 | PyDict_SetItemString(d,"DateTime_Gr_Latvia", SWIG_FromInt((int)wxDateTime::Gr_Latvia)); | |
29848 | PyDict_SetItemString(d,"DateTime_Gr_Lithuania", SWIG_FromInt((int)wxDateTime::Gr_Lithuania)); | |
29849 | PyDict_SetItemString(d,"DateTime_Gr_Luxemburg", SWIG_FromInt((int)wxDateTime::Gr_Luxemburg)); | |
29850 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands", SWIG_FromInt((int)wxDateTime::Gr_Netherlands)); | |
29851 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Groningen", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Groningen)); | |
29852 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Gelderland", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Gelderland)); | |
29853 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Utrecht", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Utrecht)); | |
29854 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Friesland", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Friesland)); | |
29855 | PyDict_SetItemString(d,"DateTime_Gr_Norway", SWIG_FromInt((int)wxDateTime::Gr_Norway)); | |
29856 | PyDict_SetItemString(d,"DateTime_Gr_Poland", SWIG_FromInt((int)wxDateTime::Gr_Poland)); | |
29857 | PyDict_SetItemString(d,"DateTime_Gr_Portugal", SWIG_FromInt((int)wxDateTime::Gr_Portugal)); | |
29858 | PyDict_SetItemString(d,"DateTime_Gr_Romania", SWIG_FromInt((int)wxDateTime::Gr_Romania)); | |
29859 | PyDict_SetItemString(d,"DateTime_Gr_Russia", SWIG_FromInt((int)wxDateTime::Gr_Russia)); | |
29860 | PyDict_SetItemString(d,"DateTime_Gr_Scotland", SWIG_FromInt((int)wxDateTime::Gr_Scotland)); | |
29861 | PyDict_SetItemString(d,"DateTime_Gr_Spain", SWIG_FromInt((int)wxDateTime::Gr_Spain)); | |
29862 | PyDict_SetItemString(d,"DateTime_Gr_Sweden", SWIG_FromInt((int)wxDateTime::Gr_Sweden)); | |
29863 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland", SWIG_FromInt((int)wxDateTime::Gr_Switzerland)); | |
29864 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Catholic", SWIG_FromInt((int)wxDateTime::Gr_Switzerland_Catholic)); | |
29865 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Protestant", SWIG_FromInt((int)wxDateTime::Gr_Switzerland_Protestant)); | |
29866 | PyDict_SetItemString(d,"DateTime_Gr_Turkey", SWIG_FromInt((int)wxDateTime::Gr_Turkey)); | |
29867 | PyDict_SetItemString(d,"DateTime_Gr_USA", SWIG_FromInt((int)wxDateTime::Gr_USA)); | |
29868 | PyDict_SetItemString(d,"DateTime_Gr_Wales", SWIG_FromInt((int)wxDateTime::Gr_Wales)); | |
29869 | PyDict_SetItemString(d,"DateTime_Gr_Yugoslavia", SWIG_FromInt((int)wxDateTime::Gr_Yugoslavia)); | |
29870 | PyDict_SetItemString(d,"DateTime_Country_Unknown", SWIG_FromInt((int)wxDateTime::Country_Unknown)); | |
29871 | PyDict_SetItemString(d,"DateTime_Country_Default", SWIG_FromInt((int)wxDateTime::Country_Default)); | |
29872 | PyDict_SetItemString(d,"DateTime_Country_WesternEurope_Start", SWIG_FromInt((int)wxDateTime::Country_WesternEurope_Start)); | |
29873 | PyDict_SetItemString(d,"DateTime_Country_EEC", SWIG_FromInt((int)wxDateTime::Country_EEC)); | |
29874 | PyDict_SetItemString(d,"DateTime_France", SWIG_FromInt((int)wxDateTime::France)); | |
29875 | PyDict_SetItemString(d,"DateTime_Germany", SWIG_FromInt((int)wxDateTime::Germany)); | |
29876 | PyDict_SetItemString(d,"DateTime_UK", SWIG_FromInt((int)wxDateTime::UK)); | |
29877 | PyDict_SetItemString(d,"DateTime_Country_WesternEurope_End", SWIG_FromInt((int)wxDateTime::Country_WesternEurope_End)); | |
29878 | PyDict_SetItemString(d,"DateTime_Russia", SWIG_FromInt((int)wxDateTime::Russia)); | |
29879 | PyDict_SetItemString(d,"DateTime_USA", SWIG_FromInt((int)wxDateTime::USA)); | |
29880 | PyDict_SetItemString(d,"DateTime_Jan", SWIG_FromInt((int)wxDateTime::Jan)); | |
29881 | PyDict_SetItemString(d,"DateTime_Feb", SWIG_FromInt((int)wxDateTime::Feb)); | |
29882 | PyDict_SetItemString(d,"DateTime_Mar", SWIG_FromInt((int)wxDateTime::Mar)); | |
29883 | PyDict_SetItemString(d,"DateTime_Apr", SWIG_FromInt((int)wxDateTime::Apr)); | |
29884 | PyDict_SetItemString(d,"DateTime_May", SWIG_FromInt((int)wxDateTime::May)); | |
29885 | PyDict_SetItemString(d,"DateTime_Jun", SWIG_FromInt((int)wxDateTime::Jun)); | |
29886 | PyDict_SetItemString(d,"DateTime_Jul", SWIG_FromInt((int)wxDateTime::Jul)); | |
29887 | PyDict_SetItemString(d,"DateTime_Aug", SWIG_FromInt((int)wxDateTime::Aug)); | |
29888 | PyDict_SetItemString(d,"DateTime_Sep", SWIG_FromInt((int)wxDateTime::Sep)); | |
29889 | PyDict_SetItemString(d,"DateTime_Oct", SWIG_FromInt((int)wxDateTime::Oct)); | |
29890 | PyDict_SetItemString(d,"DateTime_Nov", SWIG_FromInt((int)wxDateTime::Nov)); | |
29891 | PyDict_SetItemString(d,"DateTime_Dec", SWIG_FromInt((int)wxDateTime::Dec)); | |
29892 | PyDict_SetItemString(d,"DateTime_Inv_Month", SWIG_FromInt((int)wxDateTime::Inv_Month)); | |
29893 | PyDict_SetItemString(d,"DateTime_Sun", SWIG_FromInt((int)wxDateTime::Sun)); | |
29894 | PyDict_SetItemString(d,"DateTime_Mon", SWIG_FromInt((int)wxDateTime::Mon)); | |
29895 | PyDict_SetItemString(d,"DateTime_Tue", SWIG_FromInt((int)wxDateTime::Tue)); | |
29896 | PyDict_SetItemString(d,"DateTime_Wed", SWIG_FromInt((int)wxDateTime::Wed)); | |
29897 | PyDict_SetItemString(d,"DateTime_Thu", SWIG_FromInt((int)wxDateTime::Thu)); | |
29898 | PyDict_SetItemString(d,"DateTime_Fri", SWIG_FromInt((int)wxDateTime::Fri)); | |
29899 | PyDict_SetItemString(d,"DateTime_Sat", SWIG_FromInt((int)wxDateTime::Sat)); | |
29900 | PyDict_SetItemString(d,"DateTime_Inv_WeekDay", SWIG_FromInt((int)wxDateTime::Inv_WeekDay)); | |
29901 | PyDict_SetItemString(d,"DateTime_Inv_Year", SWIG_FromInt((int)wxDateTime::Inv_Year)); | |
29902 | PyDict_SetItemString(d,"DateTime_Name_Full", SWIG_FromInt((int)wxDateTime::Name_Full)); | |
29903 | PyDict_SetItemString(d,"DateTime_Name_Abbr", SWIG_FromInt((int)wxDateTime::Name_Abbr)); | |
29904 | PyDict_SetItemString(d,"DateTime_Default_First", SWIG_FromInt((int)wxDateTime::Default_First)); | |
29905 | PyDict_SetItemString(d,"DateTime_Monday_First", SWIG_FromInt((int)wxDateTime::Monday_First)); | |
29906 | PyDict_SetItemString(d,"DateTime_Sunday_First", SWIG_FromInt((int)wxDateTime::Sunday_First)); | |
29907 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultDateTime",_wrap_DefaultDateTime_get, _wrap_DefaultDateTime_set); | |
29908 | PyDict_SetItemString(d,"DF_INVALID", SWIG_FromInt((int)wxDF_INVALID)); | |
29909 | PyDict_SetItemString(d,"DF_TEXT", SWIG_FromInt((int)wxDF_TEXT)); | |
29910 | PyDict_SetItemString(d,"DF_BITMAP", SWIG_FromInt((int)wxDF_BITMAP)); | |
29911 | PyDict_SetItemString(d,"DF_METAFILE", SWIG_FromInt((int)wxDF_METAFILE)); | |
29912 | PyDict_SetItemString(d,"DF_SYLK", SWIG_FromInt((int)wxDF_SYLK)); | |
29913 | PyDict_SetItemString(d,"DF_DIF", SWIG_FromInt((int)wxDF_DIF)); | |
29914 | PyDict_SetItemString(d,"DF_TIFF", SWIG_FromInt((int)wxDF_TIFF)); | |
29915 | PyDict_SetItemString(d,"DF_OEMTEXT", SWIG_FromInt((int)wxDF_OEMTEXT)); | |
29916 | PyDict_SetItemString(d,"DF_DIB", SWIG_FromInt((int)wxDF_DIB)); | |
29917 | PyDict_SetItemString(d,"DF_PALETTE", SWIG_FromInt((int)wxDF_PALETTE)); | |
29918 | PyDict_SetItemString(d,"DF_PENDATA", SWIG_FromInt((int)wxDF_PENDATA)); | |
29919 | PyDict_SetItemString(d,"DF_RIFF", SWIG_FromInt((int)wxDF_RIFF)); | |
29920 | PyDict_SetItemString(d,"DF_WAVE", SWIG_FromInt((int)wxDF_WAVE)); | |
29921 | PyDict_SetItemString(d,"DF_UNICODETEXT", SWIG_FromInt((int)wxDF_UNICODETEXT)); | |
29922 | PyDict_SetItemString(d,"DF_ENHMETAFILE", SWIG_FromInt((int)wxDF_ENHMETAFILE)); | |
29923 | PyDict_SetItemString(d,"DF_FILENAME", SWIG_FromInt((int)wxDF_FILENAME)); | |
29924 | PyDict_SetItemString(d,"DF_LOCALE", SWIG_FromInt((int)wxDF_LOCALE)); | |
29925 | PyDict_SetItemString(d,"DF_PRIVATE", SWIG_FromInt((int)wxDF_PRIVATE)); | |
29926 | PyDict_SetItemString(d,"DF_HTML", SWIG_FromInt((int)wxDF_HTML)); | |
29927 | PyDict_SetItemString(d,"DF_MAX", SWIG_FromInt((int)wxDF_MAX)); | |
29928 | SWIG_addvarlink(SWIG_globals,(char*)"FormatInvalid",_wrap_FormatInvalid_get, _wrap_FormatInvalid_set); | |
29929 | PyDict_SetItemString(d,"DataObject_Get", SWIG_FromInt((int)wxDataObject::Get)); | |
29930 | PyDict_SetItemString(d,"DataObject_Set", SWIG_FromInt((int)wxDataObject::Set)); | |
29931 | PyDict_SetItemString(d,"DataObject_Both", SWIG_FromInt((int)wxDataObject::Both)); | |
29932 | PyDict_SetItemString(d,"Drag_CopyOnly", SWIG_FromInt((int)wxDrag_CopyOnly)); | |
29933 | PyDict_SetItemString(d,"Drag_AllowMove", SWIG_FromInt((int)wxDrag_AllowMove)); | |
29934 | PyDict_SetItemString(d,"Drag_DefaultMove", SWIG_FromInt((int)wxDrag_DefaultMove)); | |
29935 | PyDict_SetItemString(d,"DragError", SWIG_FromInt((int)wxDragError)); | |
29936 | PyDict_SetItemString(d,"DragNone", SWIG_FromInt((int)wxDragNone)); | |
29937 | PyDict_SetItemString(d,"DragCopy", SWIG_FromInt((int)wxDragCopy)); | |
29938 | PyDict_SetItemString(d,"DragMove", SWIG_FromInt((int)wxDragMove)); | |
29939 | PyDict_SetItemString(d,"DragLink", SWIG_FromInt((int)wxDragLink)); | |
29940 | PyDict_SetItemString(d,"DragCancel", SWIG_FromInt((int)wxDragCancel)); | |
29941 | ||
29942 | wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource"); | |
29943 | wxPyPtrTypeMap_Add("wxDropTarget", "wxPyDropTarget"); | |
29944 | wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget"); | |
29945 | wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget"); | |
29946 | ||
29947 | SWIG_addvarlink(SWIG_globals,(char*)"TheClipboard",_wrap_TheClipboard_get, _wrap_TheClipboard_set); | |
29948 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultVideoMode",_wrap_DefaultVideoMode_get, _wrap_DefaultVideoMode_set); | |
29949 | } | |
29950 |