]>
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] | |
0346c964 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] | |
0346c964 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" | |
0439c23b | 352 | #include "wx/wxPython/pyistream.h" |
d55e5bfc RD |
353 | |
354 | static const wxString wxPyEmptyString(wxEmptyString); | |
355 | ||
356 | ||
357 | ||
358 | #include <limits.h> | |
359 | ||
360 | ||
361 | SWIGSTATICINLINE(long) | |
362 | SWIG_CheckLongInRange(long value, const char* type, | |
363 | long min_value, long max_value) | |
364 | { | |
365 | if (!PyErr_Occurred()) { | |
366 | if (value < min_value) { | |
367 | PyObject *err = | |
368 | PyString_FromFormat("value %ld is less than '%s' minimum %ld", | |
369 | value, type, min_value); | |
370 | ||
371 | PyErr_SetObject(PyExc_OverflowError, err); | |
372 | Py_DECREF(err); | |
373 | } else if (value > max_value) { | |
374 | PyObject *err = | |
375 | PyString_FromFormat("value %ld is greater than '%s' maximum %ld", | |
376 | value, type, max_value); | |
377 | PyErr_SetObject(PyExc_OverflowError, err); | |
378 | Py_DECREF(err); | |
379 | } | |
380 | } | |
381 | return value; | |
382 | } | |
383 | ||
384 | ||
385 | SWIGSTATICINLINE(long) | |
386 | SWIG_AsLong(PyObject * obj) | |
387 | { | |
388 | if (PyNumber_Check(obj)) | |
389 | return PyInt_AsLong(obj); | |
390 | else { | |
391 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
392 | obj->ob_type->tp_name); | |
393 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
394 | Py_DECREF(errmsg); | |
395 | return 0; | |
396 | } | |
397 | } | |
398 | ||
399 | ||
400 | #if INT_MAX != LONG_MAX | |
401 | SWIGSTATICINLINE(int) | |
402 | SWIG_AsInt(PyObject *obj) | |
403 | { | |
404 | return swig_numeric_cast(int, | |
405 | SWIG_CheckLongInRange(SWIG_AsLong(obj), | |
406 | "int", INT_MIN, INT_MAX)); | |
407 | } | |
408 | #else | |
409 | #define SWIG_AsInt SWIG_AsLong | |
410 | #endif | |
411 | ||
412 | ||
413 | SWIGSTATICINLINE(int) | |
414 | SWIG_CheckInt(PyObject* obj) | |
415 | { | |
416 | SWIG_AsInt(obj); | |
417 | if (PyErr_Occurred()) { | |
418 | PyErr_Clear(); | |
419 | return 0; | |
420 | } else { | |
421 | return 1; | |
422 | } | |
423 | } | |
424 | ||
425 | static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr); | |
426 | static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr); | |
427 | static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr); | |
428 | ||
429 | SWIGSTATICINLINE(int) | |
430 | SWIG_CheckLong(PyObject* obj) | |
431 | { | |
432 | SWIG_AsLong(obj); | |
433 | if (PyErr_Occurred()) { | |
434 | PyErr_Clear(); | |
435 | return 0; | |
436 | } else { | |
437 | return 1; | |
438 | } | |
439 | } | |
440 | ||
441 | ||
442 | SWIGSTATICINLINE(bool) | |
443 | SWIG_AsBool(PyObject *obj) | |
444 | { | |
445 | return PyObject_IsTrue(obj) ? true : false; | |
446 | } | |
447 | ||
448 | ||
449 | SWIGSTATICINLINE(int) | |
450 | SWIG_CheckBool(PyObject* obj) | |
451 | { | |
452 | SWIG_AsBool(obj); | |
453 | if (PyErr_Occurred()) { | |
454 | PyErr_Clear(); | |
455 | return 0; | |
456 | } else { | |
457 | return 1; | |
458 | } | |
459 | } | |
460 | ||
461 | ||
462 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
463 | PyObject* o2; | |
464 | PyObject* o3; | |
465 | ||
466 | if (!target) { | |
467 | target = o; | |
468 | } else if (target == Py_None) { | |
469 | Py_DECREF(Py_None); | |
470 | target = o; | |
471 | } else { | |
472 | if (!PyTuple_Check(target)) { | |
473 | o2 = target; | |
474 | target = PyTuple_New(1); | |
475 | PyTuple_SetItem(target, 0, o2); | |
476 | } | |
477 | o3 = PyTuple_New(1); | |
478 | PyTuple_SetItem(o3, 0, o); | |
479 | ||
480 | o2 = target; | |
481 | target = PySequence_Concat(o2, o3); | |
482 | Py_DECREF(o2); | |
483 | Py_DECREF(o3); | |
484 | } | |
485 | return target; | |
486 | } | |
487 | ||
488 | ||
489 | SWIGSTATICINLINE(unsigned long) | |
490 | SWIG_AsUnsignedLong(PyObject * obj) | |
491 | { | |
492 | if (PyLong_Check(obj)) { | |
493 | return PyLong_AsUnsignedLong(obj); | |
494 | } else { | |
495 | long i = SWIG_AsLong(obj); | |
496 | if ( !PyErr_Occurred() && (i < 0)) { | |
497 | PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type"); | |
498 | } | |
499 | return i; | |
500 | } | |
501 | } | |
502 | ||
503 | ||
504 | SWIGSTATICINLINE(int) | |
505 | SWIG_CheckUnsignedLong(PyObject* obj) | |
506 | { | |
507 | SWIG_AsUnsignedLong(obj); | |
508 | if (PyErr_Occurred()) { | |
509 | PyErr_Clear(); | |
510 | return 0; | |
511 | } else { | |
512 | return 1; | |
513 | } | |
514 | } | |
515 | ||
516 | ||
517 | SWIGSTATICINLINE(PyObject* ) | |
518 | SWIG_FromUnsignedLong(unsigned long value) | |
519 | { | |
520 | return (value > LONG_MAX) ? | |
521 | PyLong_FromUnsignedLong(value) | |
522 | : PyInt_FromLong(swig_numeric_cast(long,value)); | |
523 | } | |
524 | ||
525 | ||
526 | bool wxThread_IsMain() { | |
527 | #ifdef WXP_WITH_THREAD | |
528 | return wxThread::IsMain(); | |
529 | #else | |
530 | return True; | |
531 | #endif | |
532 | } | |
533 | ||
534 | ||
535 | int wxCaret_GetBlinkTime() { | |
536 | return wxCaret::GetBlinkTime(); | |
537 | } | |
538 | ||
539 | void wxCaret_SetBlinkTime(int milliseconds) { | |
540 | wxCaret::SetBlinkTime(milliseconds); | |
541 | } | |
542 | ||
543 | ||
544 | #include <wx/snglinst.h> | |
545 | ||
546 | ||
547 | #ifdef __WXMSW__ | |
548 | #include <wx/msw/private.h> | |
549 | #include <wx/dynload.h> | |
550 | #endif | |
551 | ||
552 | ||
553 | ||
554 | void wxDrawWindowOnDC(wxWindow* window, const wxDC& dc, int method) | |
555 | { | |
556 | #ifdef __WXMSW__ | |
557 | ||
558 | switch (method) | |
559 | { | |
560 | case 1: | |
561 | // This one only partially works. Appears to be an undocumented | |
562 | // "standard" convention that not all widgets adhear to. For | |
563 | // example, for some widgets backgrounds or non-client areas may | |
564 | // not be painted. | |
565 | ::SendMessage(GetHwndOf(window), WM_PAINT, (long)GetHdcOf(dc), 0); | |
566 | break; | |
567 | ||
568 | case 2: | |
569 | // This one works much better, except for on XP. On Win2k nearly | |
570 | // all widgets and their children are captured correctly[**]. On | |
571 | // XP with Themes activated most native widgets draw only | |
572 | // partially, if at all. Without themes it works just like on | |
573 | // Win2k. | |
574 | // | |
575 | // ** For example the radio buttons in a wxRadioBox are not its | |
576 | // children by default, but you can capture it via the panel | |
577 | // instead, or change RADIOBTN_PARENT_IS_RADIOBOX in radiobox.cpp. | |
578 | ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc), | |
579 | PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | | |
580 | PRF_ERASEBKGND | PRF_OWNED ); | |
581 | break; | |
582 | ||
583 | case 3: | |
584 | // This one is only defined in the latest SDK and is only | |
585 | // available on XP. MSDN says it is similar to sending WM_PRINT | |
586 | // so I expect that it will work similar to the above. Since it | |
587 | // is avaialble only on XP, it can't be compiled like this and | |
588 | // will have to be loaded dynamically. | |
589 | // //::PrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); //break; | |
590 | ||
591 | // fall through | |
592 | ||
593 | case 4: | |
594 | // Use PrintWindow if available, or fallback to WM_PRINT | |
595 | // otherwise. Unfortunately using PrintWindow is even worse than | |
596 | // WM_PRINT. For most native widgets nothing is drawn to the dc | |
597 | // at all, with or without Themes. | |
598 | typedef BOOL (WINAPI *PrintWindow_t)(HWND, HDC, UINT); | |
599 | static bool s_triedToLoad = False; | |
600 | static PrintWindow_t pfnPrintWindow = NULL; | |
601 | if ( !s_triedToLoad ) | |
602 | { | |
603 | ||
604 | s_triedToLoad = True; | |
605 | wxDynamicLibrary dllUser32(_T("user32.dll")); | |
606 | if ( dllUser32.IsLoaded() ) | |
607 | { | |
608 | wxLogNull nolog; // Don't report errors here | |
609 | pfnPrintWindow = (PrintWindow_t)dllUser32.GetSymbol(_T("PrintWindow")); | |
610 | } | |
611 | } | |
612 | if (pfnPrintWindow) | |
613 | { | |
614 | printf("Using PrintWindow\n"); | |
615 | pfnPrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); | |
616 | } | |
617 | else | |
618 | { | |
619 | printf("Using WM_PRINT\n"); | |
620 | ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc), | |
621 | PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | PRF_ERASEBKGND | PRF_OWNED ); | |
622 | } | |
623 | } | |
624 | #endif | |
625 | } | |
626 | ||
627 | ||
628 | ||
629 | #include <wx/tipdlg.h> | |
630 | ||
631 | ||
632 | class wxPyTipProvider : public wxTipProvider { | |
633 | public: | |
634 | wxPyTipProvider(size_t currentTip) | |
635 | : wxTipProvider(currentTip) {} | |
636 | ||
637 | DEC_PYCALLBACK_STRING__pure(GetTip); | |
638 | DEC_PYCALLBACK_STRING_STRING(PreprocessTip); | |
639 | PYPRIVATE; | |
640 | }; | |
641 | ||
642 | IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip); | |
643 | IMP_PYCALLBACK_STRING_STRING(wxPyTipProvider, wxTipProvider, PreprocessTip); | |
644 | ||
645 | ||
646 | //IMP_PYCALLBACK__(wxPyTimer, wxTimer, Notify); | |
647 | ||
1a6bba1e RD |
648 | IMPLEMENT_ABSTRACT_CLASS(wxPyTimer, wxTimer); |
649 | ||
d55e5bfc RD |
650 | void wxPyTimer::Notify() { |
651 | bool found; | |
652 | bool blocked = wxPyBeginBlockThreads(); | |
653 | if ((found = wxPyCBH_findCallback(m_myInst, "Notify"))) | |
654 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("()")); | |
655 | wxPyEndBlockThreads(blocked); | |
656 | if (! found) | |
657 | wxTimer::Notify(); | |
658 | } | |
659 | void wxPyTimer::base_Notify() { | |
660 | wxTimer::Notify(); | |
661 | } | |
662 | ||
663 | ||
664 | ||
665 | SWIGSTATICINLINE(PyObject *) | |
666 | SWIG_FromCharPtr(const char* cptr) | |
667 | { | |
668 | size_t size = cptr ? strlen(cptr) : 0; | |
669 | if (cptr) { | |
670 | if (size > INT_MAX) { | |
671 | return SWIG_NewPointerObj(swig_const_cast(char*,cptr), | |
672 | SWIG_TypeQuery("char *"), 0); | |
673 | } else { | |
674 | return PyString_FromStringAndSize(cptr, swig_numeric_cast(int,size)); | |
675 | } | |
676 | } else { | |
677 | Py_INCREF(Py_None); | |
678 | return Py_None; | |
679 | } | |
680 | } | |
681 | ||
682 | ||
683 | SWIGSTATICINLINE(unsigned long) | |
684 | SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type, | |
685 | unsigned long max_value) | |
686 | { | |
687 | if (!PyErr_Occurred()) { | |
688 | if (value > max_value) { | |
689 | PyObject *err = | |
690 | PyString_FromFormat("value %ld is greater than '%s' minimum %ld", | |
691 | value, type, max_value); | |
692 | PyErr_SetObject(PyExc_OverflowError, err); | |
693 | Py_DECREF(err); | |
694 | } | |
695 | } | |
696 | return value; | |
697 | } | |
698 | ||
699 | ||
700 | #if UINT_MAX != ULONG_MAX | |
701 | SWIGSTATICINLINE(unsigned int) | |
702 | SWIG_AsUnsignedInt(PyObject *obj) | |
703 | { | |
704 | return swig_numeric_cast(unsigned int, | |
705 | SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj), | |
706 | "unsigned int", UINT_MAX)); | |
707 | } | |
708 | #else | |
709 | #define SWIG_AsUnsignedInt SWIG_AsUnsignedLong | |
710 | #endif | |
711 | ||
712 | ||
713 | SWIGSTATICINLINE(int) | |
714 | SWIG_CheckUnsignedInt(PyObject* obj) | |
715 | { | |
716 | SWIG_AsUnsignedInt(obj); | |
717 | if (PyErr_Occurred()) { | |
718 | PyErr_Clear(); | |
719 | return 0; | |
720 | } else { | |
721 | return 1; | |
722 | } | |
723 | } | |
724 | ||
725 | wxString Log_TimeStamp(){ | |
726 | wxString msg; | |
727 | wxLog::TimeStamp(&msg); | |
728 | return msg; | |
729 | } | |
730 | void wxLog_Destroy(wxLog *self){ delete self; } | |
731 | ||
732 | // A wxLog class that can be derived from in wxPython | |
733 | class wxPyLog : public wxLog { | |
734 | public: | |
735 | wxPyLog() : wxLog() {} | |
736 | ||
737 | virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) { | |
738 | bool found; | |
739 | bool blocked = wxPyBeginBlockThreads(); | |
740 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) { | |
741 | PyObject* s = wx2PyString(szString); | |
742 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t)); | |
743 | Py_DECREF(s); | |
744 | } | |
745 | wxPyEndBlockThreads(blocked); | |
746 | if (! found) | |
747 | wxLog::DoLog(level, szString, t); | |
748 | } | |
749 | ||
750 | virtual void DoLogString(const wxChar *szString, time_t t) { | |
751 | bool found; | |
752 | bool blocked = wxPyBeginBlockThreads(); | |
753 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) { | |
754 | PyObject* s = wx2PyString(szString); | |
755 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t)); | |
756 | Py_DECREF(s); | |
757 | } | |
758 | wxPyEndBlockThreads(blocked); | |
759 | if (! found) | |
760 | wxLog::DoLogString(szString, t); | |
761 | } | |
762 | ||
763 | PYPRIVATE; | |
764 | }; | |
765 | ||
766 | ||
767 | ||
768 | ||
769 | IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate); | |
770 | ||
771 | ||
772 | #include <wx/joystick.h> | |
773 | ||
774 | ||
775 | #if !wxUSE_JOYSTICK && !defined(__WXMSW__) | |
776 | // A C++ stub class for wxJoystick for platforms that don't have it. | |
777 | class wxJoystick : public wxObject { | |
778 | public: | |
779 | wxJoystick(int joystick = wxJOYSTICK1) { | |
780 | bool blocked = wxPyBeginBlockThreads(); | |
781 | PyErr_SetString(PyExc_NotImplementedError, | |
782 | "wxJoystick is not available on this platform."); | |
783 | wxPyEndBlockThreads(blocked); | |
784 | } | |
785 | wxPoint GetPosition() { return wxPoint(-1,-1); } | |
786 | int GetZPosition() { return -1; } | |
787 | int GetButtonState() { return -1; } | |
788 | int GetPOVPosition() { return -1; } | |
789 | int GetPOVCTSPosition() { return -1; } | |
790 | int GetRudderPosition() { return -1; } | |
791 | int GetUPosition() { return -1; } | |
792 | int GetVPosition() { return -1; } | |
793 | int GetMovementThreshold() { return -1; } | |
794 | void SetMovementThreshold(int threshold) {} | |
795 | ||
796 | bool IsOk(void) { return False; } | |
797 | int GetNumberJoysticks() { return -1; } | |
798 | int GetManufacturerId() { return -1; } | |
799 | int GetProductId() { return -1; } | |
15817c7e | 800 | wxString GetProductName() { return wxEmptyString; } |
d55e5bfc RD |
801 | int GetXMin() { return -1; } |
802 | int GetYMin() { return -1; } | |
803 | int GetZMin() { return -1; } | |
804 | int GetXMax() { return -1; } | |
805 | int GetYMax() { return -1; } | |
806 | int GetZMax() { return -1; } | |
807 | int GetNumberButtons() { return -1; } | |
808 | int GetNumberAxes() { return -1; } | |
809 | int GetMaxButtons() { return -1; } | |
810 | int GetMaxAxes() { return -1; } | |
811 | int GetPollingMin() { return -1; } | |
812 | int GetPollingMax() { return -1; } | |
813 | int GetRudderMin() { return -1; } | |
814 | int GetRudderMax() { return -1; } | |
815 | int GetUMin() { return -1; } | |
816 | int GetUMax() { return -1; } | |
817 | int GetVMin() { return -1; } | |
818 | int GetVMax() { return -1; } | |
819 | ||
820 | bool HasRudder() { return False; } | |
821 | bool HasZ() { return False; } | |
822 | bool HasU() { return False; } | |
823 | bool HasV() { return False; } | |
824 | bool HasPOV() { return False; } | |
825 | bool HasPOV4Dir() { return False; } | |
826 | bool HasPOVCTS() { return False; } | |
827 | ||
828 | bool SetCapture(wxWindow* win, int pollingFreq = 0) { return False; } | |
829 | bool ReleaseCapture() { return False; } | |
830 | }; | |
831 | #endif | |
832 | ||
833 | ||
834 | #include <wx/sound.h> | |
835 | ||
836 | ||
837 | #if !wxUSE_SOUND | |
838 | // A C++ stub class for wxWave for platforms that don't have it. | |
839 | class wxSound : public wxObject | |
840 | { | |
841 | public: | |
842 | wxSound() { | |
843 | bool blocked = wxPyBeginBlockThreads(); | |
844 | PyErr_SetString(PyExc_NotImplementedError, | |
845 | "wxSound is not available on this platform."); | |
846 | wxPyEndBlockThreads(blocked); | |
847 | } | |
0346c964 | 848 | wxSound(const wxString&/*, bool*/) { |
d55e5bfc RD |
849 | bool blocked = wxPyBeginBlockThreads(); |
850 | PyErr_SetString(PyExc_NotImplementedError, | |
851 | "wxSound is not available on this platform."); | |
852 | wxPyEndBlockThreads(blocked); | |
853 | } | |
854 | wxSound(int, const wxByte*) { | |
855 | bool blocked = wxPyBeginBlockThreads(); | |
856 | PyErr_SetString(PyExc_NotImplementedError, | |
857 | "wxSound is not available on this platform."); | |
858 | wxPyEndBlockThreads(blocked); | |
859 | } | |
860 | ||
861 | ~wxSound() {}; | |
862 | ||
0346c964 | 863 | bool Create(const wxString&/*, bool*/) { return false; } |
d55e5bfc RD |
864 | bool Create(int, const wxByte*) { return false; }; |
865 | bool IsOk() { return false; }; | |
866 | bool Play(unsigned) const { return false; } | |
867 | static bool Play(const wxString&, unsigned) { return false; } | |
868 | static void Stop() {} | |
869 | }; | |
870 | ||
871 | #endif | |
872 | ||
0346c964 RD |
873 | wxSound *new_wxSound(wxString const &fileName){ |
874 | if (fileName.Length() == 0) | |
875 | return new wxSound; | |
876 | else | |
877 | return new wxSound(fileName); | |
878 | } | |
879 | wxSound *new_wxSound(PyObject *data){ | |
880 | unsigned char* buffer; int size; | |
881 | wxSound *sound = NULL; | |
882 | ||
d55e5bfc | 883 | bool blocked = wxPyBeginBlockThreads(); |
0346c964 RD |
884 | if (!PyArg_Parse(data, "t#", &buffer, &size)) |
885 | goto done; | |
886 | sound = new wxSound(size, buffer); | |
887 | done: | |
d55e5bfc | 888 | wxPyEndBlockThreads(blocked); |
0346c964 RD |
889 | return sound; |
890 | } | |
891 | bool wxSound_CreateFromData(wxSound *self,PyObject *data){ | |
892 | #ifndef __WXMAC__ | |
893 | unsigned char* buffer; | |
894 | int size; | |
895 | bool rv = False; | |
896 | ||
897 | bool blocked = wxPyBeginBlockThreads(); | |
898 | if (!PyArg_Parse(data, "t#", &buffer, &size)) | |
899 | goto done; | |
900 | rv = self->Create(size, buffer); | |
901 | done: | |
902 | wxPyEndBlockThreads(blocked); | |
903 | return rv; | |
904 | #else | |
905 | bool blocked = wxPyBeginBlockThreads(); | |
906 | PyErr_SetString(PyExc_NotImplementedError, | |
907 | "Create from data is not available on this platform."); | |
908 | wxPyEndBlockThreads(blocked); | |
909 | return False; | |
910 | #endif | |
d55e5bfc RD |
911 | } |
912 | void Sound_Stop(){ wxPyRaiseNotImplemented(); } | |
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 | ||
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 | ||
68e533f8 RD |
1270 | PyObject *wxDataObject_GetAllFormats(wxDataObject *self,wxDataObject::Direction dir){ |
1271 | size_t count = self->GetFormatCount(dir); | |
1272 | wxDataFormat* formats = new wxDataFormat[count]; | |
1273 | self->GetAllFormats(formats, dir); | |
1274 | ||
1275 | bool blocked = wxPyBeginBlockThreads(); | |
1276 | PyObject* list = PyList_New(count); | |
1277 | for (size_t i=0; i<count; i++) { | |
1278 | wxDataFormat* format = new wxDataFormat(formats[i]); | |
1279 | PyObject* obj = wxPyConstructObject((void*)format, wxT("wxDataFormat"), True); | |
1280 | PyList_Append(list, obj); | |
1281 | Py_DECREF(obj); | |
1282 | } | |
1283 | wxPyEndBlockThreads(blocked); | |
1284 | delete [] formats; | |
1285 | return list; | |
1286 | } | |
1287 | PyObject *wxDataObject_GetDataHere(wxDataObject *self,wxDataFormat const &format){ | |
1288 | PyObject* rval = NULL; | |
1289 | size_t size = self->GetDataSize(format); | |
1290 | bool blocked = wxPyBeginBlockThreads(); | |
1291 | if (size) { | |
1292 | char* buf = new char[size]; | |
1293 | if (self->GetDataHere(format, buf)) | |
1294 | rval = PyString_FromStringAndSize(buf, size); | |
1295 | delete [] buf; | |
1296 | } | |
1297 | if (! rval) { | |
1298 | rval = Py_None; | |
1299 | Py_INCREF(rval); | |
1300 | } | |
1301 | wxPyEndBlockThreads(blocked); | |
1302 | return rval; | |
1303 | } | |
1304 | bool wxDataObject_SetData(wxDataObject *self,wxDataFormat const &format,PyObject *data){ | |
1305 | bool rval; | |
1306 | bool blocked = wxPyBeginBlockThreads(); | |
1307 | if (PyString_Check(data)) { | |
1308 | rval = self->SetData(format, PyString_Size(data), PyString_AsString(data)); | |
1309 | } | |
1310 | else { | |
1311 | // raise a TypeError if not a string | |
1312 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
1313 | rval = False; | |
1314 | } | |
1315 | wxPyEndBlockThreads(blocked); | |
1316 | return rval; | |
1317 | } | |
1318 | PyObject *wxDataObjectSimple_GetDataHere(wxDataObjectSimple *self){ | |
1319 | PyObject* rval = NULL; | |
1320 | size_t size = self->GetDataSize(); | |
1321 | bool blocked = wxPyBeginBlockThreads(); | |
1322 | if (size) { | |
1323 | char* buf = new char[size]; | |
1324 | if (self->GetDataHere(buf)) | |
1325 | rval = PyString_FromStringAndSize(buf, size); | |
1326 | delete [] buf; | |
1327 | } | |
1328 | if (! rval) { | |
1329 | rval = Py_None; | |
1330 | Py_INCREF(rval); | |
1331 | } | |
1332 | wxPyEndBlockThreads(blocked); | |
1333 | return rval; | |
1334 | } | |
1335 | bool wxDataObjectSimple_SetData(wxDataObjectSimple *self,PyObject *data){ | |
1336 | bool rval; | |
1337 | bool blocked = wxPyBeginBlockThreads(); | |
1338 | if (PyString_Check(data)) { | |
1339 | rval = self->SetData(PyString_Size(data), PyString_AsString(data)); | |
1340 | } | |
1341 | else { | |
1342 | // raise a TypeError if not a string | |
1343 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
1344 | rval = False; | |
1345 | } | |
1346 | wxPyEndBlockThreads(blocked); | |
1347 | return rval; | |
1348 | } | |
d55e5bfc RD |
1349 | // Create a new class for wxPython to use |
1350 | class wxPyDataObjectSimple : public wxDataObjectSimple { | |
1351 | public: | |
1352 | wxPyDataObjectSimple(const wxDataFormat& format = wxFormatInvalid) | |
1353 | : wxDataObjectSimple(format) {} | |
1354 | ||
1355 | DEC_PYCALLBACK_SIZET__const(GetDataSize); | |
1356 | bool GetDataHere(void *buf) const; | |
1357 | bool SetData(size_t len, const void *buf) const; | |
1358 | PYPRIVATE; | |
1359 | }; | |
1360 | ||
1361 | IMP_PYCALLBACK_SIZET__const(wxPyDataObjectSimple, wxDataObjectSimple, GetDataSize); | |
1362 | ||
1363 | bool wxPyDataObjectSimple::GetDataHere(void *buf) const { | |
1364 | // We need to get the data for this object and write it to buf. I think | |
1365 | // the best way to do this for wxPython is to have the Python method | |
1366 | // return either a string or None and then act appropriately with the | |
1367 | // C++ version. | |
1368 | ||
1369 | bool rval = False; | |
1370 | bool blocked = wxPyBeginBlockThreads(); | |
1371 | if (wxPyCBH_findCallback(m_myInst, "GetDataHere")) { | |
1372 | PyObject* ro; | |
1373 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
1374 | if (ro) { | |
1375 | rval = (ro != Py_None && PyString_Check(ro)); | |
1376 | if (rval) | |
1377 | memcpy(buf, PyString_AsString(ro), PyString_Size(ro)); | |
1378 | Py_DECREF(ro); | |
1379 | } | |
1380 | } | |
1381 | wxPyEndBlockThreads(blocked); | |
1382 | return rval; | |
1383 | } | |
1384 | ||
1385 | bool wxPyDataObjectSimple::SetData(size_t len, const void *buf) const{ | |
1386 | // For this one we simply need to make a string from buf and len | |
1387 | // and send it to the Python method. | |
1388 | bool rval = False; | |
1389 | bool blocked = wxPyBeginBlockThreads(); | |
1390 | if (wxPyCBH_findCallback(m_myInst, "SetData")) { | |
1391 | PyObject* data = PyString_FromStringAndSize((char*)buf, len); | |
1392 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", data)); | |
1393 | Py_DECREF(data); | |
1394 | } | |
1395 | wxPyEndBlockThreads(blocked); | |
1396 | return rval; | |
1397 | } | |
1398 | ||
1399 | // Create a new class for wxPython to use | |
1400 | class wxPyTextDataObject : public wxTextDataObject { | |
1401 | public: | |
1402 | wxPyTextDataObject(const wxString& text = wxPyEmptyString) | |
1403 | : wxTextDataObject(text) {} | |
1404 | ||
1405 | DEC_PYCALLBACK_SIZET__const(GetTextLength); | |
1406 | DEC_PYCALLBACK_STRING__const(GetText); | |
1407 | DEC_PYCALLBACK__STRING(SetText); | |
1408 | PYPRIVATE; | |
1409 | }; | |
1410 | ||
1411 | IMP_PYCALLBACK_SIZET__const(wxPyTextDataObject, wxTextDataObject, GetTextLength); | |
1412 | IMP_PYCALLBACK_STRING__const(wxPyTextDataObject, wxTextDataObject, GetText); | |
1413 | IMP_PYCALLBACK__STRING(wxPyTextDataObject, wxTextDataObject, SetText); | |
1414 | ||
1415 | ||
1416 | // Create a new class for wxPython to use | |
1417 | class wxPyBitmapDataObject : public wxBitmapDataObject { | |
1418 | public: | |
1419 | wxPyBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap) | |
1420 | : wxBitmapDataObject(bitmap) {} | |
1421 | ||
1422 | wxBitmap GetBitmap() const; | |
1423 | void SetBitmap(const wxBitmap& bitmap); | |
1424 | PYPRIVATE; | |
1425 | }; | |
1426 | ||
1427 | wxBitmap wxPyBitmapDataObject::GetBitmap() const { | |
1428 | wxBitmap* rval = &wxNullBitmap; | |
1429 | bool blocked = wxPyBeginBlockThreads(); | |
1430 | if (wxPyCBH_findCallback(m_myInst, "GetBitmap")) { | |
1431 | PyObject* ro; | |
1432 | wxBitmap* ptr; | |
1433 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
1434 | if (ro) { | |
1435 | if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxBitmap"))) | |
1436 | rval = ptr; | |
1437 | Py_DECREF(ro); | |
1438 | } | |
1439 | } | |
1440 | wxPyEndBlockThreads(blocked); | |
1441 | return *rval; | |
1442 | } | |
68e533f8 | 1443 | |
d55e5bfc RD |
1444 | void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) { |
1445 | bool blocked = wxPyBeginBlockThreads(); | |
1446 | if (wxPyCBH_findCallback(m_myInst, "SetBitmap")) { | |
1447 | PyObject* bo = wxPyConstructObject((void*)&bitmap, wxT("wxBitmap"), False); | |
1448 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", bo)); | |
1449 | Py_DECREF(bo); | |
1450 | } | |
1451 | wxPyEndBlockThreads(blocked); | |
1452 | } | |
1453 | ||
d55e5bfc | 1454 | bool wxCustomDataObject_SetData(wxCustomDataObject *self,PyObject *data){ |
68e533f8 RD |
1455 | bool rval; |
1456 | bool blocked = wxPyBeginBlockThreads(); | |
d55e5bfc | 1457 | if (PyString_Check(data)) { |
68e533f8 | 1458 | rval = self->SetData(PyString_Size(data), PyString_AsString(data)); |
d55e5bfc RD |
1459 | } |
1460 | else { | |
1461 | // raise a TypeError if not a string | |
1462 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
68e533f8 | 1463 | rval = False; |
d55e5bfc | 1464 | } |
68e533f8 RD |
1465 | wxPyEndBlockThreads(blocked); |
1466 | return rval; | |
d55e5bfc RD |
1467 | } |
1468 | PyObject *wxCustomDataObject_GetData(wxCustomDataObject *self){ | |
68e533f8 RD |
1469 | PyObject* obj; |
1470 | bool blocked = wxPyBeginBlockThreads(); | |
1471 | obj = PyString_FromStringAndSize((char*)self->GetData(), self->GetSize()); | |
a07a67e6 RD |
1472 | wxPyEndBlockThreads(blocked); |
1473 | return obj; | |
d55e5bfc RD |
1474 | } |
1475 | ||
1476 | #include <wx/metafile.h> | |
1477 | ||
1478 | ||
1479 | IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback); | |
1480 | ||
1481 | ||
1482 | IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave); | |
1483 | IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter); | |
1484 | IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver); | |
1485 | IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData); | |
1486 | IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop); | |
1487 | ||
1488 | ||
1489 | class wxPyTextDropTarget : public wxTextDropTarget { | |
1490 | public: | |
1491 | wxPyTextDropTarget() {} | |
1492 | ||
1493 | DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText); | |
1494 | ||
1495 | DEC_PYCALLBACK__(OnLeave); | |
1496 | DEC_PYCALLBACK_DR_2WXCDR(OnEnter); | |
1497 | DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); | |
1498 | DEC_PYCALLBACK_DR_2WXCDR(OnData); | |
1499 | DEC_PYCALLBACK_BOOL_INTINT(OnDrop); | |
1500 | ||
1501 | PYPRIVATE; | |
1502 | }; | |
1503 | ||
1504 | IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText); | |
1505 | IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave); | |
1506 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter); | |
1507 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver); | |
1508 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData); | |
1509 | IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop); | |
1510 | ||
1511 | ||
1512 | ||
1513 | class wxPyFileDropTarget : public wxFileDropTarget { | |
1514 | public: | |
1515 | wxPyFileDropTarget() {} | |
1516 | ||
1517 | virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames); | |
1518 | ||
1519 | DEC_PYCALLBACK__(OnLeave); | |
1520 | DEC_PYCALLBACK_DR_2WXCDR(OnEnter); | |
1521 | DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); | |
1522 | DEC_PYCALLBACK_DR_2WXCDR(OnData); | |
1523 | DEC_PYCALLBACK_BOOL_INTINT(OnDrop); | |
1524 | ||
1525 | PYPRIVATE; | |
1526 | }; | |
1527 | ||
1528 | bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y, | |
1529 | const wxArrayString& filenames) { | |
1530 | bool rval = False; | |
1531 | bool blocked = wxPyBeginBlockThreads(); | |
1532 | if (wxPyCBH_findCallback(m_myInst, "OnDropFiles")) { | |
1533 | PyObject* list = wxArrayString2PyList_helper(filenames); | |
1534 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",x,y,list)); | |
1535 | Py_DECREF(list); | |
1536 | } | |
1537 | wxPyEndBlockThreads(blocked); | |
1538 | return rval; | |
1539 | } | |
1540 | ||
1541 | ||
1542 | ||
1543 | IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave); | |
1544 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter); | |
1545 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver); | |
1546 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData); | |
1547 | IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop); | |
1548 | ||
1549 | ||
1550 | ||
1551 | ||
1552 | bool wxClipboardLocker___nonzero__(wxClipboardLocker *self){ return !!(*self); } | |
1553 | ||
1554 | #include "wx/display.h" | |
1555 | ||
1556 | bool wxVideoMode___eq__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self == *other) : False; } | |
1557 | bool wxVideoMode___ne__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self != *other) : True; } | |
1558 | int Display_GetFromWindow(wxWindow *window){ wxPyRaiseNotImplemented(); return wxNOT_FOUND; } | |
1559 | PyObject *wxDisplay_GetModes(wxDisplay *self,wxVideoMode const &mode){ | |
1560 | PyObject* pyList = NULL; | |
1561 | wxArrayVideoModes arr = self->GetModes(mode); | |
1562 | bool blocked = wxPyBeginBlockThreads(); | |
1563 | pyList = PyList_New(0); | |
1564 | for (int i=0; i < arr.GetCount(); i++) { | |
1565 | wxVideoMode* m = new wxVideoMode(arr.Item(i)); | |
1566 | PyObject* pyObj = wxPyConstructObject(m, wxT("wxVideoMode"), true); | |
1567 | PyList_Append(pyList, pyObj); | |
68e533f8 | 1568 | Py_DECREF(pyObj); |
d55e5bfc RD |
1569 | } |
1570 | wxPyEndBlockThreads(blocked); | |
1571 | return pyList; | |
1572 | } | |
1573 | #ifdef __cplusplus | |
1574 | extern "C" { | |
1575 | #endif | |
1576 | static PyObject *_wrap_SystemSettings_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1577 | PyObject *resultobj; | |
1578 | int arg1 ; | |
1579 | wxColour result; | |
1580 | PyObject * obj0 = 0 ; | |
1581 | char *kwnames[] = { | |
1582 | (char *) "index", NULL | |
1583 | }; | |
1584 | ||
1585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetColour",kwnames,&obj0)) goto fail; | |
1586 | arg1 = (wxSystemColour) SWIG_AsInt(obj0); | |
1587 | if (PyErr_Occurred()) SWIG_fail; | |
1588 | { | |
0439c23b | 1589 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1591 | result = wxSystemSettings::GetColour((wxSystemColour )arg1); | |
1592 | ||
1593 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 1594 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
1595 | } |
1596 | { | |
1597 | wxColour * resultptr; | |
1598 | resultptr = new wxColour((wxColour &) result); | |
1599 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
1600 | } | |
1601 | return resultobj; | |
1602 | fail: | |
1603 | return NULL; | |
1604 | } | |
1605 | ||
1606 | ||
1607 | static PyObject *_wrap_SystemSettings_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1608 | PyObject *resultobj; | |
1609 | int arg1 ; | |
1610 | wxFont result; | |
1611 | PyObject * obj0 = 0 ; | |
1612 | char *kwnames[] = { | |
1613 | (char *) "index", NULL | |
1614 | }; | |
1615 | ||
1616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetFont",kwnames,&obj0)) goto fail; | |
1617 | arg1 = (wxSystemFont) SWIG_AsInt(obj0); | |
1618 | if (PyErr_Occurred()) SWIG_fail; | |
1619 | { | |
0439c23b | 1620 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1622 | result = wxSystemSettings::GetFont((wxSystemFont )arg1); | |
1623 | ||
1624 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 1625 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
1626 | } |
1627 | { | |
1628 | wxFont * resultptr; | |
1629 | resultptr = new wxFont((wxFont &) result); | |
1630 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
1631 | } | |
1632 | return resultobj; | |
1633 | fail: | |
1634 | return NULL; | |
1635 | } | |
1636 | ||
1637 | ||
1638 | static PyObject *_wrap_SystemSettings_GetMetric(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1639 | PyObject *resultobj; | |
1640 | int arg1 ; | |
1641 | int result; | |
1642 | PyObject * obj0 = 0 ; | |
1643 | char *kwnames[] = { | |
1644 | (char *) "index", NULL | |
1645 | }; | |
1646 | ||
1647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetMetric",kwnames,&obj0)) goto fail; | |
1648 | arg1 = (wxSystemMetric) SWIG_AsInt(obj0); | |
1649 | if (PyErr_Occurred()) SWIG_fail; | |
1650 | { | |
0439c23b | 1651 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1653 | result = (int)wxSystemSettings::GetMetric((wxSystemMetric )arg1); | |
1654 | ||
1655 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 1656 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
1657 | } |
1658 | resultobj = SWIG_FromInt((int)result); | |
1659 | return resultobj; | |
1660 | fail: | |
1661 | return NULL; | |
1662 | } | |
1663 | ||
1664 | ||
1665 | static PyObject *_wrap_SystemSettings_HasFeature(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1666 | PyObject *resultobj; | |
1667 | int arg1 ; | |
1668 | bool result; | |
1669 | PyObject * obj0 = 0 ; | |
1670 | char *kwnames[] = { | |
1671 | (char *) "index", NULL | |
1672 | }; | |
1673 | ||
1674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_HasFeature",kwnames,&obj0)) goto fail; | |
1675 | arg1 = (wxSystemFeature) SWIG_AsInt(obj0); | |
1676 | if (PyErr_Occurred()) SWIG_fail; | |
1677 | { | |
0439c23b | 1678 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1680 | result = (bool)wxSystemSettings::HasFeature((wxSystemFeature )arg1); | |
1681 | ||
1682 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 1683 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
1684 | } |
1685 | { | |
1686 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1687 | } | |
1688 | return resultobj; | |
1689 | fail: | |
1690 | return NULL; | |
1691 | } | |
1692 | ||
1693 | ||
1694 | static PyObject *_wrap_SystemSettings_GetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1695 | PyObject *resultobj; | |
1696 | int result; | |
1697 | char *kwnames[] = { | |
1698 | NULL | |
1699 | }; | |
1700 | ||
1701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SystemSettings_GetScreenType",kwnames)) goto fail; | |
1702 | { | |
0439c23b | 1703 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1705 | result = (int)wxSystemSettings::GetScreenType(); | |
1706 | ||
1707 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 1708 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
1709 | } |
1710 | resultobj = SWIG_FromInt((int)result); | |
1711 | return resultobj; | |
1712 | fail: | |
1713 | return NULL; | |
1714 | } | |
1715 | ||
1716 | ||
1717 | static PyObject *_wrap_SystemSettings_SetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1718 | PyObject *resultobj; | |
1719 | int arg1 ; | |
1720 | PyObject * obj0 = 0 ; | |
1721 | char *kwnames[] = { | |
1722 | (char *) "screen", NULL | |
1723 | }; | |
1724 | ||
1725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_SetScreenType",kwnames,&obj0)) goto fail; | |
1726 | arg1 = (wxSystemScreenType) SWIG_AsInt(obj0); | |
1727 | if (PyErr_Occurred()) SWIG_fail; | |
1728 | { | |
0439c23b | 1729 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1731 | wxSystemSettings::SetScreenType((wxSystemScreenType )arg1); | |
1732 | ||
1733 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 1734 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
1735 | } |
1736 | Py_INCREF(Py_None); resultobj = Py_None; | |
1737 | return resultobj; | |
1738 | fail: | |
1739 | return NULL; | |
1740 | } | |
1741 | ||
1742 | ||
1743 | static PyObject * SystemSettings_swigregister(PyObject *self, PyObject *args) { | |
1744 | PyObject *obj; | |
1745 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1746 | SWIG_TypeClientData(SWIGTYPE_p_wxSystemSettings, obj); | |
1747 | Py_INCREF(obj); | |
1748 | return Py_BuildValue((char *)""); | |
1749 | } | |
1750 | static PyObject *_wrap_new_SystemOptions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1751 | PyObject *resultobj; | |
1752 | wxSystemOptions *result; | |
1753 | char *kwnames[] = { | |
1754 | NULL | |
1755 | }; | |
1756 | ||
1757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SystemOptions",kwnames)) goto fail; | |
1758 | { | |
1759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1760 | result = (wxSystemOptions *)new wxSystemOptions(); | |
1761 | ||
1762 | wxPyEndAllowThreads(__tstate); | |
1763 | if (PyErr_Occurred()) SWIG_fail; | |
1764 | } | |
1765 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSystemOptions, 1); | |
1766 | return resultobj; | |
1767 | fail: | |
1768 | return NULL; | |
1769 | } | |
1770 | ||
1771 | ||
1772 | static PyObject *_wrap_SystemOptions_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1773 | PyObject *resultobj; | |
1774 | wxString *arg1 = 0 ; | |
1775 | wxString *arg2 = 0 ; | |
1776 | bool temp1 = False ; | |
1777 | bool temp2 = False ; | |
1778 | PyObject * obj0 = 0 ; | |
1779 | PyObject * obj1 = 0 ; | |
1780 | char *kwnames[] = { | |
1781 | (char *) "name",(char *) "value", NULL | |
1782 | }; | |
1783 | ||
1784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOption",kwnames,&obj0,&obj1)) goto fail; | |
1785 | { | |
1786 | arg1 = wxString_in_helper(obj0); | |
1787 | if (arg1 == NULL) SWIG_fail; | |
1788 | temp1 = True; | |
1789 | } | |
1790 | { | |
1791 | arg2 = wxString_in_helper(obj1); | |
1792 | if (arg2 == NULL) SWIG_fail; | |
1793 | temp2 = True; | |
1794 | } | |
1795 | { | |
1796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1797 | wxSystemOptions::SetOption((wxString const &)*arg1,(wxString const &)*arg2); | |
1798 | ||
1799 | wxPyEndAllowThreads(__tstate); | |
1800 | if (PyErr_Occurred()) SWIG_fail; | |
1801 | } | |
1802 | Py_INCREF(Py_None); resultobj = Py_None; | |
1803 | { | |
1804 | if (temp1) | |
1805 | delete arg1; | |
1806 | } | |
1807 | { | |
1808 | if (temp2) | |
1809 | delete arg2; | |
1810 | } | |
1811 | return resultobj; | |
1812 | fail: | |
1813 | { | |
1814 | if (temp1) | |
1815 | delete arg1; | |
1816 | } | |
1817 | { | |
1818 | if (temp2) | |
1819 | delete arg2; | |
1820 | } | |
1821 | return NULL; | |
1822 | } | |
1823 | ||
1824 | ||
1825 | static PyObject *_wrap_SystemOptions_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1826 | PyObject *resultobj; | |
1827 | wxString *arg1 = 0 ; | |
1828 | int arg2 ; | |
1829 | bool temp1 = False ; | |
1830 | PyObject * obj0 = 0 ; | |
1831 | PyObject * obj1 = 0 ; | |
1832 | char *kwnames[] = { | |
1833 | (char *) "name",(char *) "value", NULL | |
1834 | }; | |
1835 | ||
1836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOptionInt",kwnames,&obj0,&obj1)) goto fail; | |
1837 | { | |
1838 | arg1 = wxString_in_helper(obj0); | |
1839 | if (arg1 == NULL) SWIG_fail; | |
1840 | temp1 = True; | |
1841 | } | |
1842 | arg2 = (int) SWIG_AsInt(obj1); | |
1843 | if (PyErr_Occurred()) SWIG_fail; | |
1844 | { | |
1845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1846 | wxSystemOptions::SetOption((wxString const &)*arg1,arg2); | |
1847 | ||
1848 | wxPyEndAllowThreads(__tstate); | |
1849 | if (PyErr_Occurred()) SWIG_fail; | |
1850 | } | |
1851 | Py_INCREF(Py_None); resultobj = Py_None; | |
1852 | { | |
1853 | if (temp1) | |
1854 | delete arg1; | |
1855 | } | |
1856 | return resultobj; | |
1857 | fail: | |
1858 | { | |
1859 | if (temp1) | |
1860 | delete arg1; | |
1861 | } | |
1862 | return NULL; | |
1863 | } | |
1864 | ||
1865 | ||
1866 | static PyObject *_wrap_SystemOptions_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1867 | PyObject *resultobj; | |
1868 | wxString *arg1 = 0 ; | |
1869 | wxString result; | |
1870 | bool temp1 = False ; | |
1871 | PyObject * obj0 = 0 ; | |
1872 | char *kwnames[] = { | |
1873 | (char *) "name", NULL | |
1874 | }; | |
1875 | ||
1876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOption",kwnames,&obj0)) goto fail; | |
1877 | { | |
1878 | arg1 = wxString_in_helper(obj0); | |
1879 | if (arg1 == NULL) SWIG_fail; | |
1880 | temp1 = True; | |
1881 | } | |
1882 | { | |
1883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1884 | result = wxSystemOptions::GetOption((wxString const &)*arg1); | |
1885 | ||
1886 | wxPyEndAllowThreads(__tstate); | |
1887 | if (PyErr_Occurred()) SWIG_fail; | |
1888 | } | |
1889 | { | |
1890 | #if wxUSE_UNICODE | |
1891 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
1892 | #else | |
1893 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
1894 | #endif | |
1895 | } | |
1896 | { | |
1897 | if (temp1) | |
1898 | delete arg1; | |
1899 | } | |
1900 | return resultobj; | |
1901 | fail: | |
1902 | { | |
1903 | if (temp1) | |
1904 | delete arg1; | |
1905 | } | |
1906 | return NULL; | |
1907 | } | |
1908 | ||
1909 | ||
1910 | static PyObject *_wrap_SystemOptions_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1911 | PyObject *resultobj; | |
1912 | wxString *arg1 = 0 ; | |
1913 | int result; | |
1914 | bool temp1 = False ; | |
1915 | PyObject * obj0 = 0 ; | |
1916 | char *kwnames[] = { | |
1917 | (char *) "name", NULL | |
1918 | }; | |
1919 | ||
1920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOptionInt",kwnames,&obj0)) goto fail; | |
1921 | { | |
1922 | arg1 = wxString_in_helper(obj0); | |
1923 | if (arg1 == NULL) SWIG_fail; | |
1924 | temp1 = True; | |
1925 | } | |
1926 | { | |
1927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1928 | result = (int)wxSystemOptions::GetOptionInt((wxString const &)*arg1); | |
1929 | ||
1930 | wxPyEndAllowThreads(__tstate); | |
1931 | if (PyErr_Occurred()) SWIG_fail; | |
1932 | } | |
1933 | resultobj = SWIG_FromInt((int)result); | |
1934 | { | |
1935 | if (temp1) | |
1936 | delete arg1; | |
1937 | } | |
1938 | return resultobj; | |
1939 | fail: | |
1940 | { | |
1941 | if (temp1) | |
1942 | delete arg1; | |
1943 | } | |
1944 | return NULL; | |
1945 | } | |
1946 | ||
1947 | ||
1948 | static PyObject *_wrap_SystemOptions_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1949 | PyObject *resultobj; | |
1950 | wxString *arg1 = 0 ; | |
1951 | bool result; | |
1952 | bool temp1 = False ; | |
1953 | PyObject * obj0 = 0 ; | |
1954 | char *kwnames[] = { | |
1955 | (char *) "name", NULL | |
1956 | }; | |
1957 | ||
1958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_HasOption",kwnames,&obj0)) goto fail; | |
1959 | { | |
1960 | arg1 = wxString_in_helper(obj0); | |
1961 | if (arg1 == NULL) SWIG_fail; | |
1962 | temp1 = True; | |
1963 | } | |
1964 | { | |
1965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1966 | result = (bool)wxSystemOptions::HasOption((wxString const &)*arg1); | |
1967 | ||
1968 | wxPyEndAllowThreads(__tstate); | |
1969 | if (PyErr_Occurred()) SWIG_fail; | |
1970 | } | |
1971 | { | |
1972 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1973 | } | |
1974 | { | |
1975 | if (temp1) | |
1976 | delete arg1; | |
1977 | } | |
1978 | return resultobj; | |
1979 | fail: | |
1980 | { | |
1981 | if (temp1) | |
1982 | delete arg1; | |
1983 | } | |
1984 | return NULL; | |
1985 | } | |
1986 | ||
1987 | ||
1988 | static PyObject * SystemOptions_swigregister(PyObject *self, PyObject *args) { | |
1989 | PyObject *obj; | |
1990 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1991 | SWIG_TypeClientData(SWIGTYPE_p_wxSystemOptions, obj); | |
1992 | Py_INCREF(obj); | |
1993 | return Py_BuildValue((char *)""); | |
1994 | } | |
1995 | static int _wrap_FileSelectorPromptStr_set(PyObject *_val) { | |
1996 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only."); | |
1997 | return 1; | |
1998 | } | |
1999 | ||
2000 | ||
2001 | static PyObject *_wrap_FileSelectorPromptStr_get() { | |
2002 | PyObject *pyobj; | |
2003 | ||
2004 | { | |
2005 | #if wxUSE_UNICODE | |
2006 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
2007 | #else | |
2008 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
2009 | #endif | |
2010 | } | |
2011 | return pyobj; | |
2012 | } | |
2013 | ||
2014 | ||
2015 | static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *_val) { | |
2016 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only."); | |
2017 | return 1; | |
2018 | } | |
2019 | ||
2020 | ||
2021 | static PyObject *_wrap_FileSelectorDefaultWildcardStr_get() { | |
2022 | PyObject *pyobj; | |
2023 | ||
2024 | { | |
2025 | #if wxUSE_UNICODE | |
2026 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
2027 | #else | |
2028 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
2029 | #endif | |
2030 | } | |
2031 | return pyobj; | |
2032 | } | |
2033 | ||
2034 | ||
2035 | static int _wrap_DirSelectorPromptStr_set(PyObject *_val) { | |
2036 | PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only."); | |
2037 | return 1; | |
2038 | } | |
2039 | ||
2040 | ||
2041 | static PyObject *_wrap_DirSelectorPromptStr_get() { | |
2042 | PyObject *pyobj; | |
2043 | ||
2044 | { | |
2045 | #if wxUSE_UNICODE | |
2046 | pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
2047 | #else | |
2048 | pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
2049 | #endif | |
2050 | } | |
2051 | return pyobj; | |
2052 | } | |
2053 | ||
2054 | ||
2055 | static PyObject *_wrap_NewId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2056 | PyObject *resultobj; | |
2057 | long result; | |
2058 | char *kwnames[] = { | |
2059 | NULL | |
2060 | }; | |
2061 | ||
2062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewId",kwnames)) goto fail; | |
2063 | { | |
2064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2065 | result = (long)wxNewId(); | |
2066 | ||
2067 | wxPyEndAllowThreads(__tstate); | |
2068 | if (PyErr_Occurred()) SWIG_fail; | |
2069 | } | |
2070 | resultobj = SWIG_FromLong((long)result); | |
2071 | return resultobj; | |
2072 | fail: | |
2073 | return NULL; | |
2074 | } | |
2075 | ||
2076 | ||
2077 | static PyObject *_wrap_RegisterId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2078 | PyObject *resultobj; | |
2079 | long arg1 ; | |
2080 | PyObject * obj0 = 0 ; | |
2081 | char *kwnames[] = { | |
2082 | (char *) "id", NULL | |
2083 | }; | |
2084 | ||
2085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegisterId",kwnames,&obj0)) goto fail; | |
2086 | arg1 = (long) SWIG_AsLong(obj0); | |
2087 | if (PyErr_Occurred()) SWIG_fail; | |
2088 | { | |
2089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2090 | wxRegisterId(arg1); | |
2091 | ||
2092 | wxPyEndAllowThreads(__tstate); | |
2093 | if (PyErr_Occurred()) SWIG_fail; | |
2094 | } | |
2095 | Py_INCREF(Py_None); resultobj = Py_None; | |
2096 | return resultobj; | |
2097 | fail: | |
2098 | return NULL; | |
2099 | } | |
2100 | ||
2101 | ||
2102 | static PyObject *_wrap_GetCurrentId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2103 | PyObject *resultobj; | |
2104 | long result; | |
2105 | char *kwnames[] = { | |
2106 | NULL | |
2107 | }; | |
2108 | ||
2109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentId",kwnames)) goto fail; | |
2110 | { | |
2111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2112 | result = (long)wxGetCurrentId(); | |
2113 | ||
2114 | wxPyEndAllowThreads(__tstate); | |
2115 | if (PyErr_Occurred()) SWIG_fail; | |
2116 | } | |
2117 | resultobj = SWIG_FromLong((long)result); | |
2118 | return resultobj; | |
2119 | fail: | |
2120 | return NULL; | |
2121 | } | |
2122 | ||
2123 | ||
2124 | static PyObject *_wrap_Bell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2125 | PyObject *resultobj; | |
2126 | char *kwnames[] = { | |
2127 | NULL | |
2128 | }; | |
2129 | ||
2130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Bell",kwnames)) goto fail; | |
2131 | { | |
0439c23b | 2132 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2134 | wxBell(); | |
2135 | ||
2136 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 2137 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2138 | } |
2139 | Py_INCREF(Py_None); resultobj = Py_None; | |
2140 | return resultobj; | |
2141 | fail: | |
2142 | return NULL; | |
2143 | } | |
2144 | ||
2145 | ||
2146 | static PyObject *_wrap_EndBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2147 | PyObject *resultobj; | |
2148 | char *kwnames[] = { | |
2149 | NULL | |
2150 | }; | |
2151 | ||
2152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EndBusyCursor",kwnames)) goto fail; | |
2153 | { | |
0439c23b | 2154 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2156 | wxEndBusyCursor(); | |
2157 | ||
2158 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 2159 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2160 | } |
2161 | Py_INCREF(Py_None); resultobj = Py_None; | |
2162 | return resultobj; | |
2163 | fail: | |
2164 | return NULL; | |
2165 | } | |
2166 | ||
2167 | ||
2168 | static PyObject *_wrap_GetElapsedTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2169 | PyObject *resultobj; | |
2170 | bool arg1 = (bool) True ; | |
2171 | long result; | |
2172 | PyObject * obj0 = 0 ; | |
2173 | char *kwnames[] = { | |
2174 | (char *) "resetTimer", NULL | |
2175 | }; | |
2176 | ||
2177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetElapsedTime",kwnames,&obj0)) goto fail; | |
2178 | if (obj0) { | |
2179 | arg1 = (bool) SWIG_AsBool(obj0); | |
2180 | if (PyErr_Occurred()) SWIG_fail; | |
2181 | } | |
2182 | { | |
2183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2184 | result = (long)wxGetElapsedTime(arg1); | |
2185 | ||
2186 | wxPyEndAllowThreads(__tstate); | |
2187 | if (PyErr_Occurred()) SWIG_fail; | |
2188 | } | |
2189 | resultobj = SWIG_FromLong((long)result); | |
2190 | return resultobj; | |
2191 | fail: | |
2192 | return NULL; | |
2193 | } | |
2194 | ||
2195 | ||
2196 | static PyObject *_wrap_GetMousePosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2197 | PyObject *resultobj; | |
2198 | int *arg1 = (int *) 0 ; | |
2199 | int *arg2 = (int *) 0 ; | |
2200 | int temp1 ; | |
2201 | int temp2 ; | |
2202 | char *kwnames[] = { | |
2203 | NULL | |
2204 | }; | |
2205 | ||
2206 | arg1 = &temp1; | |
2207 | arg2 = &temp2; | |
2208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMousePosition",kwnames)) goto fail; | |
2209 | { | |
0439c23b | 2210 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2212 | wxGetMousePosition(arg1,arg2); | |
2213 | ||
2214 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 2215 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2216 | } |
2217 | Py_INCREF(Py_None); resultobj = Py_None; | |
2218 | { | |
2219 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
2220 | resultobj = t_output_helper(resultobj,o); | |
2221 | } | |
2222 | { | |
2223 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
2224 | resultobj = t_output_helper(resultobj,o); | |
2225 | } | |
2226 | return resultobj; | |
2227 | fail: | |
2228 | return NULL; | |
2229 | } | |
2230 | ||
2231 | ||
2232 | static PyObject *_wrap_IsBusy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2233 | PyObject *resultobj; | |
2234 | bool result; | |
2235 | char *kwnames[] = { | |
2236 | NULL | |
2237 | }; | |
2238 | ||
2239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IsBusy",kwnames)) goto fail; | |
2240 | { | |
2241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2242 | result = (bool)wxIsBusy(); | |
2243 | ||
2244 | wxPyEndAllowThreads(__tstate); | |
2245 | if (PyErr_Occurred()) SWIG_fail; | |
2246 | } | |
2247 | { | |
2248 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2249 | } | |
2250 | return resultobj; | |
2251 | fail: | |
2252 | return NULL; | |
2253 | } | |
2254 | ||
2255 | ||
2256 | static PyObject *_wrap_Now(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2257 | PyObject *resultobj; | |
2258 | wxString result; | |
2259 | char *kwnames[] = { | |
2260 | NULL | |
2261 | }; | |
2262 | ||
2263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Now",kwnames)) goto fail; | |
2264 | { | |
2265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2266 | result = wxNow(); | |
2267 | ||
2268 | wxPyEndAllowThreads(__tstate); | |
2269 | if (PyErr_Occurred()) SWIG_fail; | |
2270 | } | |
2271 | { | |
2272 | #if wxUSE_UNICODE | |
2273 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2274 | #else | |
2275 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2276 | #endif | |
2277 | } | |
2278 | return resultobj; | |
2279 | fail: | |
2280 | return NULL; | |
2281 | } | |
2282 | ||
2283 | ||
2284 | static PyObject *_wrap_Shell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2285 | PyObject *resultobj; | |
2286 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
2287 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2288 | bool result; | |
2289 | bool temp1 = False ; | |
2290 | PyObject * obj0 = 0 ; | |
2291 | char *kwnames[] = { | |
2292 | (char *) "command", NULL | |
2293 | }; | |
2294 | ||
2295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Shell",kwnames,&obj0)) goto fail; | |
2296 | if (obj0) { | |
2297 | { | |
2298 | arg1 = wxString_in_helper(obj0); | |
2299 | if (arg1 == NULL) SWIG_fail; | |
2300 | temp1 = True; | |
2301 | } | |
2302 | } | |
2303 | { | |
2304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2305 | result = (bool)wxShell((wxString const &)*arg1); | |
2306 | ||
2307 | wxPyEndAllowThreads(__tstate); | |
2308 | if (PyErr_Occurred()) SWIG_fail; | |
2309 | } | |
2310 | { | |
2311 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2312 | } | |
2313 | { | |
2314 | if (temp1) | |
2315 | delete arg1; | |
2316 | } | |
2317 | return resultobj; | |
2318 | fail: | |
2319 | { | |
2320 | if (temp1) | |
2321 | delete arg1; | |
2322 | } | |
2323 | return NULL; | |
2324 | } | |
2325 | ||
2326 | ||
2327 | static PyObject *_wrap_StartTimer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2328 | PyObject *resultobj; | |
2329 | char *kwnames[] = { | |
2330 | NULL | |
2331 | }; | |
2332 | ||
2333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StartTimer",kwnames)) goto fail; | |
2334 | { | |
2335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2336 | wxStartTimer(); | |
2337 | ||
2338 | wxPyEndAllowThreads(__tstate); | |
2339 | if (PyErr_Occurred()) SWIG_fail; | |
2340 | } | |
2341 | Py_INCREF(Py_None); resultobj = Py_None; | |
2342 | return resultobj; | |
2343 | fail: | |
2344 | return NULL; | |
2345 | } | |
2346 | ||
2347 | ||
2348 | static PyObject *_wrap_GetOsVersion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2349 | PyObject *resultobj; | |
2350 | int *arg1 = (int *) 0 ; | |
2351 | int *arg2 = (int *) 0 ; | |
2352 | int result; | |
2353 | int temp1 ; | |
2354 | int temp2 ; | |
2355 | char *kwnames[] = { | |
2356 | NULL | |
2357 | }; | |
2358 | ||
2359 | arg1 = &temp1; | |
2360 | arg2 = &temp2; | |
2361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsVersion",kwnames)) goto fail; | |
2362 | { | |
2363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2364 | result = (int)wxGetOsVersion(arg1,arg2); | |
2365 | ||
2366 | wxPyEndAllowThreads(__tstate); | |
2367 | if (PyErr_Occurred()) SWIG_fail; | |
2368 | } | |
2369 | resultobj = SWIG_FromInt((int)result); | |
2370 | { | |
2371 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
2372 | resultobj = t_output_helper(resultobj,o); | |
2373 | } | |
2374 | { | |
2375 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
2376 | resultobj = t_output_helper(resultobj,o); | |
2377 | } | |
2378 | return resultobj; | |
2379 | fail: | |
2380 | return NULL; | |
2381 | } | |
2382 | ||
2383 | ||
2384 | static PyObject *_wrap_GetOsDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2385 | PyObject *resultobj; | |
2386 | wxString result; | |
2387 | char *kwnames[] = { | |
2388 | NULL | |
2389 | }; | |
2390 | ||
2391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsDescription",kwnames)) goto fail; | |
2392 | { | |
2393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2394 | result = wxGetOsDescription(); | |
2395 | ||
2396 | wxPyEndAllowThreads(__tstate); | |
2397 | if (PyErr_Occurred()) SWIG_fail; | |
2398 | } | |
2399 | { | |
2400 | #if wxUSE_UNICODE | |
2401 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2402 | #else | |
2403 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2404 | #endif | |
2405 | } | |
2406 | return resultobj; | |
2407 | fail: | |
2408 | return NULL; | |
2409 | } | |
2410 | ||
2411 | ||
2412 | static PyObject *_wrap_GetFreeMemory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2413 | PyObject *resultobj; | |
2414 | long result; | |
2415 | char *kwnames[] = { | |
2416 | NULL | |
2417 | }; | |
2418 | ||
2419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFreeMemory",kwnames)) goto fail; | |
2420 | { | |
2421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2422 | result = (long)wxGetFreeMemory(); | |
2423 | ||
2424 | wxPyEndAllowThreads(__tstate); | |
2425 | if (PyErr_Occurred()) SWIG_fail; | |
2426 | } | |
2427 | resultobj = SWIG_FromLong((long)result); | |
2428 | return resultobj; | |
2429 | fail: | |
2430 | return NULL; | |
2431 | } | |
2432 | ||
2433 | ||
2434 | static PyObject *_wrap_Shutdown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2435 | PyObject *resultobj; | |
2436 | int arg1 ; | |
2437 | bool result; | |
2438 | PyObject * obj0 = 0 ; | |
2439 | char *kwnames[] = { | |
2440 | (char *) "wFlags", NULL | |
2441 | }; | |
2442 | ||
2443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Shutdown",kwnames,&obj0)) goto fail; | |
2444 | arg1 = (wxShutdownFlags) SWIG_AsInt(obj0); | |
2445 | if (PyErr_Occurred()) SWIG_fail; | |
2446 | { | |
0439c23b | 2447 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2449 | result = (bool)wxShutdown((wxShutdownFlags )arg1); | |
2450 | ||
2451 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 2452 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2453 | } |
2454 | { | |
2455 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2456 | } | |
2457 | return resultobj; | |
2458 | fail: | |
2459 | return NULL; | |
2460 | } | |
2461 | ||
2462 | ||
2463 | static PyObject *_wrap_Sleep(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2464 | PyObject *resultobj; | |
2465 | int arg1 ; | |
2466 | PyObject * obj0 = 0 ; | |
2467 | char *kwnames[] = { | |
2468 | (char *) "secs", NULL | |
2469 | }; | |
2470 | ||
2471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sleep",kwnames,&obj0)) goto fail; | |
2472 | arg1 = (int) SWIG_AsInt(obj0); | |
2473 | if (PyErr_Occurred()) SWIG_fail; | |
2474 | { | |
2475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2476 | wxSleep(arg1); | |
2477 | ||
2478 | wxPyEndAllowThreads(__tstate); | |
2479 | if (PyErr_Occurred()) SWIG_fail; | |
2480 | } | |
2481 | Py_INCREF(Py_None); resultobj = Py_None; | |
2482 | return resultobj; | |
2483 | fail: | |
2484 | return NULL; | |
2485 | } | |
2486 | ||
2487 | ||
2488 | static PyObject *_wrap_Usleep(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2489 | PyObject *resultobj; | |
2490 | unsigned long arg1 ; | |
2491 | PyObject * obj0 = 0 ; | |
2492 | char *kwnames[] = { | |
2493 | (char *) "milliseconds", NULL | |
2494 | }; | |
2495 | ||
2496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Usleep",kwnames,&obj0)) goto fail; | |
2497 | arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); | |
2498 | if (PyErr_Occurred()) SWIG_fail; | |
2499 | { | |
2500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2501 | wxUsleep(arg1); | |
2502 | ||
2503 | wxPyEndAllowThreads(__tstate); | |
2504 | if (PyErr_Occurred()) SWIG_fail; | |
2505 | } | |
2506 | Py_INCREF(Py_None); resultobj = Py_None; | |
2507 | return resultobj; | |
2508 | fail: | |
2509 | return NULL; | |
2510 | } | |
2511 | ||
2512 | ||
2513 | static PyObject *_wrap_EnableTopLevelWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2514 | PyObject *resultobj; | |
2515 | bool arg1 ; | |
2516 | PyObject * obj0 = 0 ; | |
2517 | char *kwnames[] = { | |
2518 | (char *) "enable", NULL | |
2519 | }; | |
2520 | ||
2521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EnableTopLevelWindows",kwnames,&obj0)) goto fail; | |
2522 | arg1 = (bool) SWIG_AsBool(obj0); | |
2523 | if (PyErr_Occurred()) SWIG_fail; | |
2524 | { | |
2525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2526 | wxEnableTopLevelWindows(arg1); | |
2527 | ||
2528 | wxPyEndAllowThreads(__tstate); | |
2529 | if (PyErr_Occurred()) SWIG_fail; | |
2530 | } | |
2531 | Py_INCREF(Py_None); resultobj = Py_None; | |
2532 | return resultobj; | |
2533 | fail: | |
2534 | return NULL; | |
2535 | } | |
2536 | ||
2537 | ||
2538 | static PyObject *_wrap_StripMenuCodes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2539 | PyObject *resultobj; | |
2540 | wxString *arg1 = 0 ; | |
2541 | wxString result; | |
2542 | bool temp1 = False ; | |
2543 | PyObject * obj0 = 0 ; | |
2544 | char *kwnames[] = { | |
2545 | (char *) "in", NULL | |
2546 | }; | |
2547 | ||
2548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StripMenuCodes",kwnames,&obj0)) goto fail; | |
2549 | { | |
2550 | arg1 = wxString_in_helper(obj0); | |
2551 | if (arg1 == NULL) SWIG_fail; | |
2552 | temp1 = True; | |
2553 | } | |
2554 | { | |
2555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2556 | result = wxStripMenuCodes((wxString const &)*arg1); | |
2557 | ||
2558 | wxPyEndAllowThreads(__tstate); | |
2559 | if (PyErr_Occurred()) SWIG_fail; | |
2560 | } | |
2561 | { | |
2562 | #if wxUSE_UNICODE | |
2563 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2564 | #else | |
2565 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2566 | #endif | |
2567 | } | |
2568 | { | |
2569 | if (temp1) | |
2570 | delete arg1; | |
2571 | } | |
2572 | return resultobj; | |
2573 | fail: | |
2574 | { | |
2575 | if (temp1) | |
2576 | delete arg1; | |
2577 | } | |
2578 | return NULL; | |
2579 | } | |
2580 | ||
2581 | ||
2582 | static PyObject *_wrap_GetEmailAddress(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2583 | PyObject *resultobj; | |
2584 | wxString result; | |
2585 | char *kwnames[] = { | |
2586 | NULL | |
2587 | }; | |
2588 | ||
2589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetEmailAddress",kwnames)) goto fail; | |
2590 | { | |
2591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2592 | result = wxGetEmailAddress(); | |
2593 | ||
2594 | wxPyEndAllowThreads(__tstate); | |
2595 | if (PyErr_Occurred()) SWIG_fail; | |
2596 | } | |
2597 | { | |
2598 | #if wxUSE_UNICODE | |
2599 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2600 | #else | |
2601 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2602 | #endif | |
2603 | } | |
2604 | return resultobj; | |
2605 | fail: | |
2606 | return NULL; | |
2607 | } | |
2608 | ||
2609 | ||
2610 | static PyObject *_wrap_GetHostName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2611 | PyObject *resultobj; | |
2612 | wxString result; | |
2613 | char *kwnames[] = { | |
2614 | NULL | |
2615 | }; | |
2616 | ||
2617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHostName",kwnames)) goto fail; | |
2618 | { | |
2619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2620 | result = wxGetHostName(); | |
2621 | ||
2622 | wxPyEndAllowThreads(__tstate); | |
2623 | if (PyErr_Occurred()) SWIG_fail; | |
2624 | } | |
2625 | { | |
2626 | #if wxUSE_UNICODE | |
2627 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2628 | #else | |
2629 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2630 | #endif | |
2631 | } | |
2632 | return resultobj; | |
2633 | fail: | |
2634 | return NULL; | |
2635 | } | |
2636 | ||
2637 | ||
2638 | static PyObject *_wrap_GetFullHostName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2639 | PyObject *resultobj; | |
2640 | wxString result; | |
2641 | char *kwnames[] = { | |
2642 | NULL | |
2643 | }; | |
2644 | ||
2645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFullHostName",kwnames)) goto fail; | |
2646 | { | |
2647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2648 | result = wxGetFullHostName(); | |
2649 | ||
2650 | wxPyEndAllowThreads(__tstate); | |
2651 | if (PyErr_Occurred()) SWIG_fail; | |
2652 | } | |
2653 | { | |
2654 | #if wxUSE_UNICODE | |
2655 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2656 | #else | |
2657 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2658 | #endif | |
2659 | } | |
2660 | return resultobj; | |
2661 | fail: | |
2662 | return NULL; | |
2663 | } | |
2664 | ||
2665 | ||
2666 | static PyObject *_wrap_GetUserId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2667 | PyObject *resultobj; | |
2668 | wxString result; | |
2669 | char *kwnames[] = { | |
2670 | NULL | |
2671 | }; | |
2672 | ||
2673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserId",kwnames)) goto fail; | |
2674 | { | |
2675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2676 | result = wxGetUserId(); | |
2677 | ||
2678 | wxPyEndAllowThreads(__tstate); | |
2679 | if (PyErr_Occurred()) SWIG_fail; | |
2680 | } | |
2681 | { | |
2682 | #if wxUSE_UNICODE | |
2683 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2684 | #else | |
2685 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2686 | #endif | |
2687 | } | |
2688 | return resultobj; | |
2689 | fail: | |
2690 | return NULL; | |
2691 | } | |
2692 | ||
2693 | ||
2694 | static PyObject *_wrap_GetUserName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2695 | PyObject *resultobj; | |
2696 | wxString result; | |
2697 | char *kwnames[] = { | |
2698 | NULL | |
2699 | }; | |
2700 | ||
2701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserName",kwnames)) goto fail; | |
2702 | { | |
2703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2704 | result = wxGetUserName(); | |
2705 | ||
2706 | wxPyEndAllowThreads(__tstate); | |
2707 | if (PyErr_Occurred()) SWIG_fail; | |
2708 | } | |
2709 | { | |
2710 | #if wxUSE_UNICODE | |
2711 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2712 | #else | |
2713 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2714 | #endif | |
2715 | } | |
2716 | return resultobj; | |
2717 | fail: | |
2718 | return NULL; | |
2719 | } | |
2720 | ||
2721 | ||
2722 | static PyObject *_wrap_GetHomeDir(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2723 | PyObject *resultobj; | |
2724 | wxString result; | |
2725 | char *kwnames[] = { | |
2726 | NULL | |
2727 | }; | |
2728 | ||
2729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHomeDir",kwnames)) goto fail; | |
2730 | { | |
2731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2732 | result = wxGetHomeDir(); | |
2733 | ||
2734 | wxPyEndAllowThreads(__tstate); | |
2735 | if (PyErr_Occurred()) SWIG_fail; | |
2736 | } | |
2737 | { | |
2738 | #if wxUSE_UNICODE | |
2739 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2740 | #else | |
2741 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2742 | #endif | |
2743 | } | |
2744 | return resultobj; | |
2745 | fail: | |
2746 | return NULL; | |
2747 | } | |
2748 | ||
2749 | ||
2750 | static PyObject *_wrap_GetUserHome(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2751 | PyObject *resultobj; | |
2752 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
2753 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2754 | wxString result; | |
2755 | bool temp1 = False ; | |
2756 | PyObject * obj0 = 0 ; | |
2757 | char *kwnames[] = { | |
2758 | (char *) "user", NULL | |
2759 | }; | |
2760 | ||
2761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetUserHome",kwnames,&obj0)) goto fail; | |
2762 | if (obj0) { | |
2763 | { | |
2764 | arg1 = wxString_in_helper(obj0); | |
2765 | if (arg1 == NULL) SWIG_fail; | |
2766 | temp1 = True; | |
2767 | } | |
2768 | } | |
2769 | { | |
2770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2771 | result = wxGetUserHome((wxString const &)*arg1); | |
2772 | ||
2773 | wxPyEndAllowThreads(__tstate); | |
2774 | if (PyErr_Occurred()) SWIG_fail; | |
2775 | } | |
2776 | { | |
2777 | #if wxUSE_UNICODE | |
2778 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2779 | #else | |
2780 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2781 | #endif | |
2782 | } | |
2783 | { | |
2784 | if (temp1) | |
2785 | delete arg1; | |
2786 | } | |
2787 | return resultobj; | |
2788 | fail: | |
2789 | { | |
2790 | if (temp1) | |
2791 | delete arg1; | |
2792 | } | |
2793 | return NULL; | |
2794 | } | |
2795 | ||
2796 | ||
2797 | static PyObject *_wrap_GetProcessId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2798 | PyObject *resultobj; | |
2799 | unsigned long result; | |
2800 | char *kwnames[] = { | |
2801 | NULL | |
2802 | }; | |
2803 | ||
2804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetProcessId",kwnames)) goto fail; | |
2805 | { | |
2806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2807 | result = (unsigned long)wxGetProcessId(); | |
2808 | ||
2809 | wxPyEndAllowThreads(__tstate); | |
2810 | if (PyErr_Occurred()) SWIG_fail; | |
2811 | } | |
2812 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
2813 | return resultobj; | |
2814 | fail: | |
2815 | return NULL; | |
2816 | } | |
2817 | ||
2818 | ||
2819 | static PyObject *_wrap_Trap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2820 | PyObject *resultobj; | |
2821 | char *kwnames[] = { | |
2822 | NULL | |
2823 | }; | |
2824 | ||
2825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Trap",kwnames)) goto fail; | |
2826 | { | |
2827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2828 | wxTrap(); | |
2829 | ||
2830 | wxPyEndAllowThreads(__tstate); | |
2831 | if (PyErr_Occurred()) SWIG_fail; | |
2832 | } | |
2833 | Py_INCREF(Py_None); resultobj = Py_None; | |
2834 | return resultobj; | |
2835 | fail: | |
2836 | return NULL; | |
2837 | } | |
2838 | ||
2839 | ||
2840 | static PyObject *_wrap_FileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2841 | PyObject *resultobj; | |
2842 | wxString const &arg1_defvalue = wxPyFileSelectorPromptStr ; | |
2843 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2844 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
2845 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
2846 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2847 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2848 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
2849 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
2850 | wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ; | |
2851 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
2852 | int arg6 = (int) 0 ; | |
2853 | wxWindow *arg7 = (wxWindow *) NULL ; | |
2854 | int arg8 = (int) -1 ; | |
2855 | int arg9 = (int) -1 ; | |
2856 | wxString result; | |
2857 | bool temp1 = False ; | |
2858 | bool temp2 = False ; | |
2859 | bool temp3 = False ; | |
2860 | bool temp4 = False ; | |
2861 | bool temp5 = False ; | |
2862 | PyObject * obj0 = 0 ; | |
2863 | PyObject * obj1 = 0 ; | |
2864 | PyObject * obj2 = 0 ; | |
2865 | PyObject * obj3 = 0 ; | |
2866 | PyObject * obj4 = 0 ; | |
2867 | PyObject * obj5 = 0 ; | |
2868 | PyObject * obj6 = 0 ; | |
2869 | PyObject * obj7 = 0 ; | |
2870 | PyObject * obj8 = 0 ; | |
2871 | char *kwnames[] = { | |
2872 | (char *) "message",(char *) "default_path",(char *) "default_filename",(char *) "default_extension",(char *) "wildcard",(char *) "flags",(char *) "parent",(char *) "x",(char *) "y", NULL | |
2873 | }; | |
2874 | ||
2875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOOOOO:FileSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
2876 | if (obj0) { | |
2877 | { | |
2878 | arg1 = wxString_in_helper(obj0); | |
2879 | if (arg1 == NULL) SWIG_fail; | |
2880 | temp1 = True; | |
2881 | } | |
2882 | } | |
2883 | if (obj1) { | |
2884 | { | |
2885 | arg2 = wxString_in_helper(obj1); | |
2886 | if (arg2 == NULL) SWIG_fail; | |
2887 | temp2 = True; | |
2888 | } | |
2889 | } | |
2890 | if (obj2) { | |
2891 | { | |
2892 | arg3 = wxString_in_helper(obj2); | |
2893 | if (arg3 == NULL) SWIG_fail; | |
2894 | temp3 = True; | |
2895 | } | |
2896 | } | |
2897 | if (obj3) { | |
2898 | { | |
2899 | arg4 = wxString_in_helper(obj3); | |
2900 | if (arg4 == NULL) SWIG_fail; | |
2901 | temp4 = True; | |
2902 | } | |
2903 | } | |
2904 | if (obj4) { | |
2905 | { | |
2906 | arg5 = wxString_in_helper(obj4); | |
2907 | if (arg5 == NULL) SWIG_fail; | |
2908 | temp5 = True; | |
2909 | } | |
2910 | } | |
2911 | if (obj5) { | |
2912 | arg6 = (int) SWIG_AsInt(obj5); | |
2913 | if (PyErr_Occurred()) SWIG_fail; | |
2914 | } | |
2915 | if (obj6) { | |
2916 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow, | |
2917 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2918 | } | |
2919 | if (obj7) { | |
2920 | arg8 = (int) SWIG_AsInt(obj7); | |
2921 | if (PyErr_Occurred()) SWIG_fail; | |
2922 | } | |
2923 | if (obj8) { | |
2924 | arg9 = (int) SWIG_AsInt(obj8); | |
2925 | if (PyErr_Occurred()) SWIG_fail; | |
2926 | } | |
2927 | { | |
0439c23b | 2928 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2930 | result = wxFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,arg7,arg8,arg9); | |
2931 | ||
2932 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 2933 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2934 | } |
2935 | { | |
2936 | #if wxUSE_UNICODE | |
2937 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2938 | #else | |
2939 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2940 | #endif | |
2941 | } | |
2942 | { | |
2943 | if (temp1) | |
2944 | delete arg1; | |
2945 | } | |
2946 | { | |
2947 | if (temp2) | |
2948 | delete arg2; | |
2949 | } | |
2950 | { | |
2951 | if (temp3) | |
2952 | delete arg3; | |
2953 | } | |
2954 | { | |
2955 | if (temp4) | |
2956 | delete arg4; | |
2957 | } | |
2958 | { | |
2959 | if (temp5) | |
2960 | delete arg5; | |
2961 | } | |
2962 | return resultobj; | |
2963 | fail: | |
2964 | { | |
2965 | if (temp1) | |
2966 | delete arg1; | |
2967 | } | |
2968 | { | |
2969 | if (temp2) | |
2970 | delete arg2; | |
2971 | } | |
2972 | { | |
2973 | if (temp3) | |
2974 | delete arg3; | |
2975 | } | |
2976 | { | |
2977 | if (temp4) | |
2978 | delete arg4; | |
2979 | } | |
2980 | { | |
2981 | if (temp5) | |
2982 | delete arg5; | |
2983 | } | |
2984 | return NULL; | |
2985 | } | |
2986 | ||
2987 | ||
2988 | static PyObject *_wrap_LoadFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2989 | PyObject *resultobj; | |
2990 | wxString *arg1 = 0 ; | |
2991 | wxString *arg2 = 0 ; | |
2992 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2993 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2994 | wxWindow *arg4 = (wxWindow *) NULL ; | |
2995 | wxString result; | |
2996 | bool temp1 = False ; | |
2997 | bool temp2 = False ; | |
2998 | bool temp3 = False ; | |
2999 | PyObject * obj0 = 0 ; | |
3000 | PyObject * obj1 = 0 ; | |
3001 | PyObject * obj2 = 0 ; | |
3002 | PyObject * obj3 = 0 ; | |
3003 | char *kwnames[] = { | |
3004 | (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL | |
3005 | }; | |
3006 | ||
3007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:LoadFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3008 | { | |
3009 | arg1 = wxString_in_helper(obj0); | |
3010 | if (arg1 == NULL) SWIG_fail; | |
3011 | temp1 = True; | |
3012 | } | |
3013 | { | |
3014 | arg2 = wxString_in_helper(obj1); | |
3015 | if (arg2 == NULL) SWIG_fail; | |
3016 | temp2 = True; | |
3017 | } | |
3018 | if (obj2) { | |
3019 | { | |
3020 | arg3 = wxString_in_helper(obj2); | |
3021 | if (arg3 == NULL) SWIG_fail; | |
3022 | temp3 = True; | |
3023 | } | |
3024 | } | |
3025 | if (obj3) { | |
3026 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
3027 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3028 | } | |
3029 | { | |
0439c23b | 3030 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3032 | result = wxLoadFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
3033 | ||
3034 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 3035 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3036 | } |
3037 | { | |
3038 | #if wxUSE_UNICODE | |
3039 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3040 | #else | |
3041 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3042 | #endif | |
3043 | } | |
3044 | { | |
3045 | if (temp1) | |
3046 | delete arg1; | |
3047 | } | |
3048 | { | |
3049 | if (temp2) | |
3050 | delete arg2; | |
3051 | } | |
3052 | { | |
3053 | if (temp3) | |
3054 | delete arg3; | |
3055 | } | |
3056 | return resultobj; | |
3057 | fail: | |
3058 | { | |
3059 | if (temp1) | |
3060 | delete arg1; | |
3061 | } | |
3062 | { | |
3063 | if (temp2) | |
3064 | delete arg2; | |
3065 | } | |
3066 | { | |
3067 | if (temp3) | |
3068 | delete arg3; | |
3069 | } | |
3070 | return NULL; | |
3071 | } | |
3072 | ||
3073 | ||
3074 | static PyObject *_wrap_SaveFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3075 | PyObject *resultobj; | |
3076 | wxString *arg1 = 0 ; | |
3077 | wxString *arg2 = 0 ; | |
3078 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3079 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3080 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3081 | wxString result; | |
3082 | bool temp1 = False ; | |
3083 | bool temp2 = False ; | |
3084 | bool temp3 = False ; | |
3085 | PyObject * obj0 = 0 ; | |
3086 | PyObject * obj1 = 0 ; | |
3087 | PyObject * obj2 = 0 ; | |
3088 | PyObject * obj3 = 0 ; | |
3089 | char *kwnames[] = { | |
3090 | (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL | |
3091 | }; | |
3092 | ||
3093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:SaveFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3094 | { | |
3095 | arg1 = wxString_in_helper(obj0); | |
3096 | if (arg1 == NULL) SWIG_fail; | |
3097 | temp1 = True; | |
3098 | } | |
3099 | { | |
3100 | arg2 = wxString_in_helper(obj1); | |
3101 | if (arg2 == NULL) SWIG_fail; | |
3102 | temp2 = True; | |
3103 | } | |
3104 | if (obj2) { | |
3105 | { | |
3106 | arg3 = wxString_in_helper(obj2); | |
3107 | if (arg3 == NULL) SWIG_fail; | |
3108 | temp3 = True; | |
3109 | } | |
3110 | } | |
3111 | if (obj3) { | |
3112 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
3113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3114 | } | |
3115 | { | |
0439c23b | 3116 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3118 | result = wxSaveFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
3119 | ||
3120 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 3121 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3122 | } |
3123 | { | |
3124 | #if wxUSE_UNICODE | |
3125 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3126 | #else | |
3127 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3128 | #endif | |
3129 | } | |
3130 | { | |
3131 | if (temp1) | |
3132 | delete arg1; | |
3133 | } | |
3134 | { | |
3135 | if (temp2) | |
3136 | delete arg2; | |
3137 | } | |
3138 | { | |
3139 | if (temp3) | |
3140 | delete arg3; | |
3141 | } | |
3142 | return resultobj; | |
3143 | fail: | |
3144 | { | |
3145 | if (temp1) | |
3146 | delete arg1; | |
3147 | } | |
3148 | { | |
3149 | if (temp2) | |
3150 | delete arg2; | |
3151 | } | |
3152 | { | |
3153 | if (temp3) | |
3154 | delete arg3; | |
3155 | } | |
3156 | return NULL; | |
3157 | } | |
3158 | ||
3159 | ||
3160 | static PyObject *_wrap_DirSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3161 | PyObject *resultobj; | |
3162 | wxString const &arg1_defvalue = wxPyDirSelectorPromptStr ; | |
3163 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
3164 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3165 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3166 | long arg3 = (long) wxDD_DEFAULT_STYLE ; | |
3167 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3168 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3169 | wxWindow *arg5 = (wxWindow *) NULL ; | |
3170 | wxString result; | |
3171 | bool temp1 = False ; | |
3172 | bool temp2 = False ; | |
3173 | wxPoint temp4 ; | |
3174 | PyObject * obj0 = 0 ; | |
3175 | PyObject * obj1 = 0 ; | |
3176 | PyObject * obj2 = 0 ; | |
3177 | PyObject * obj3 = 0 ; | |
3178 | PyObject * obj4 = 0 ; | |
3179 | char *kwnames[] = { | |
3180 | (char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "parent", NULL | |
3181 | }; | |
3182 | ||
3183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:DirSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
3184 | if (obj0) { | |
3185 | { | |
3186 | arg1 = wxString_in_helper(obj0); | |
3187 | if (arg1 == NULL) SWIG_fail; | |
3188 | temp1 = True; | |
3189 | } | |
3190 | } | |
3191 | if (obj1) { | |
3192 | { | |
3193 | arg2 = wxString_in_helper(obj1); | |
3194 | if (arg2 == NULL) SWIG_fail; | |
3195 | temp2 = True; | |
3196 | } | |
3197 | } | |
3198 | if (obj2) { | |
3199 | arg3 = (long) SWIG_AsLong(obj2); | |
3200 | if (PyErr_Occurred()) SWIG_fail; | |
3201 | } | |
3202 | if (obj3) { | |
3203 | { | |
3204 | arg4 = &temp4; | |
3205 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3206 | } | |
3207 | } | |
3208 | if (obj4) { | |
3209 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxWindow, | |
3210 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3211 | } | |
3212 | { | |
0439c23b | 3213 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3215 | result = wxDirSelector((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxPoint const &)*arg4,arg5); | |
3216 | ||
3217 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 3218 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3219 | } |
3220 | { | |
3221 | #if wxUSE_UNICODE | |
3222 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3223 | #else | |
3224 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3225 | #endif | |
3226 | } | |
3227 | { | |
3228 | if (temp1) | |
3229 | delete arg1; | |
3230 | } | |
3231 | { | |
3232 | if (temp2) | |
3233 | delete arg2; | |
3234 | } | |
3235 | return resultobj; | |
3236 | fail: | |
3237 | { | |
3238 | if (temp1) | |
3239 | delete arg1; | |
3240 | } | |
3241 | { | |
3242 | if (temp2) | |
3243 | delete arg2; | |
3244 | } | |
3245 | return NULL; | |
3246 | } | |
3247 | ||
3248 | ||
3249 | static PyObject *_wrap_GetTextFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3250 | PyObject *resultobj; | |
3251 | wxString *arg1 = 0 ; | |
3252 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3253 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3254 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3255 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3256 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3257 | int arg5 = (int) -1 ; | |
3258 | int arg6 = (int) -1 ; | |
3259 | bool arg7 = (bool) True ; | |
3260 | wxString result; | |
3261 | bool temp1 = False ; | |
3262 | bool temp2 = False ; | |
3263 | bool temp3 = False ; | |
3264 | PyObject * obj0 = 0 ; | |
3265 | PyObject * obj1 = 0 ; | |
3266 | PyObject * obj2 = 0 ; | |
3267 | PyObject * obj3 = 0 ; | |
3268 | PyObject * obj4 = 0 ; | |
3269 | PyObject * obj5 = 0 ; | |
3270 | PyObject * obj6 = 0 ; | |
3271 | char *kwnames[] = { | |
3272 | (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre", NULL | |
3273 | }; | |
3274 | ||
3275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GetTextFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
3276 | { | |
3277 | arg1 = wxString_in_helper(obj0); | |
3278 | if (arg1 == NULL) SWIG_fail; | |
3279 | temp1 = True; | |
3280 | } | |
3281 | if (obj1) { | |
3282 | { | |
3283 | arg2 = wxString_in_helper(obj1); | |
3284 | if (arg2 == NULL) SWIG_fail; | |
3285 | temp2 = True; | |
3286 | } | |
3287 | } | |
3288 | if (obj2) { | |
3289 | { | |
3290 | arg3 = wxString_in_helper(obj2); | |
3291 | if (arg3 == NULL) SWIG_fail; | |
3292 | temp3 = True; | |
3293 | } | |
3294 | } | |
3295 | if (obj3) { | |
3296 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
3297 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3298 | } | |
3299 | if (obj4) { | |
3300 | arg5 = (int) SWIG_AsInt(obj4); | |
3301 | if (PyErr_Occurred()) SWIG_fail; | |
3302 | } | |
3303 | if (obj5) { | |
3304 | arg6 = (int) SWIG_AsInt(obj5); | |
3305 | if (PyErr_Occurred()) SWIG_fail; | |
3306 | } | |
3307 | if (obj6) { | |
3308 | arg7 = (bool) SWIG_AsBool(obj6); | |
3309 | if (PyErr_Occurred()) SWIG_fail; | |
3310 | } | |
3311 | { | |
0439c23b | 3312 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3314 | result = wxGetTextFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7); | |
3315 | ||
3316 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 3317 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3318 | } |
3319 | { | |
3320 | #if wxUSE_UNICODE | |
3321 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3322 | #else | |
3323 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3324 | #endif | |
3325 | } | |
3326 | { | |
3327 | if (temp1) | |
3328 | delete arg1; | |
3329 | } | |
3330 | { | |
3331 | if (temp2) | |
3332 | delete arg2; | |
3333 | } | |
3334 | { | |
3335 | if (temp3) | |
3336 | delete arg3; | |
3337 | } | |
3338 | return resultobj; | |
3339 | fail: | |
3340 | { | |
3341 | if (temp1) | |
3342 | delete arg1; | |
3343 | } | |
3344 | { | |
3345 | if (temp2) | |
3346 | delete arg2; | |
3347 | } | |
3348 | { | |
3349 | if (temp3) | |
3350 | delete arg3; | |
3351 | } | |
3352 | return NULL; | |
3353 | } | |
3354 | ||
3355 | ||
3356 | static PyObject *_wrap_GetPasswordFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3357 | PyObject *resultobj; | |
3358 | wxString *arg1 = 0 ; | |
3359 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3360 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3361 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3362 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3363 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3364 | wxString result; | |
3365 | bool temp1 = False ; | |
3366 | bool temp2 = False ; | |
3367 | bool temp3 = False ; | |
3368 | PyObject * obj0 = 0 ; | |
3369 | PyObject * obj1 = 0 ; | |
3370 | PyObject * obj2 = 0 ; | |
3371 | PyObject * obj3 = 0 ; | |
3372 | char *kwnames[] = { | |
3373 | (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent", NULL | |
3374 | }; | |
3375 | ||
3376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:GetPasswordFromUser",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3377 | { | |
3378 | arg1 = wxString_in_helper(obj0); | |
3379 | if (arg1 == NULL) SWIG_fail; | |
3380 | temp1 = True; | |
3381 | } | |
3382 | if (obj1) { | |
3383 | { | |
3384 | arg2 = wxString_in_helper(obj1); | |
3385 | if (arg2 == NULL) SWIG_fail; | |
3386 | temp2 = True; | |
3387 | } | |
3388 | } | |
3389 | if (obj2) { | |
3390 | { | |
3391 | arg3 = wxString_in_helper(obj2); | |
3392 | if (arg3 == NULL) SWIG_fail; | |
3393 | temp3 = True; | |
3394 | } | |
3395 | } | |
3396 | if (obj3) { | |
3397 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
3398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3399 | } | |
3400 | { | |
0439c23b | 3401 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3403 | result = wxGetPasswordFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
3404 | ||
3405 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 3406 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3407 | } |
3408 | { | |
3409 | #if wxUSE_UNICODE | |
3410 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3411 | #else | |
3412 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3413 | #endif | |
3414 | } | |
3415 | { | |
3416 | if (temp1) | |
3417 | delete arg1; | |
3418 | } | |
3419 | { | |
3420 | if (temp2) | |
3421 | delete arg2; | |
3422 | } | |
3423 | { | |
3424 | if (temp3) | |
3425 | delete arg3; | |
3426 | } | |
3427 | return resultobj; | |
3428 | fail: | |
3429 | { | |
3430 | if (temp1) | |
3431 | delete arg1; | |
3432 | } | |
3433 | { | |
3434 | if (temp2) | |
3435 | delete arg2; | |
3436 | } | |
3437 | { | |
3438 | if (temp3) | |
3439 | delete arg3; | |
3440 | } | |
3441 | return NULL; | |
3442 | } | |
3443 | ||
3444 | ||
3445 | static PyObject *_wrap_GetSingleChoice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3446 | PyObject *resultobj; | |
3447 | wxString *arg1 = 0 ; | |
3448 | wxString *arg2 = 0 ; | |
3449 | int arg3 ; | |
3450 | wxString *arg4 = (wxString *) 0 ; | |
3451 | wxWindow *arg5 = (wxWindow *) NULL ; | |
3452 | int arg6 = (int) -1 ; | |
3453 | int arg7 = (int) -1 ; | |
3454 | bool arg8 = (bool) True ; | |
3455 | int arg9 = (int) 150 ; | |
3456 | int arg10 = (int) 200 ; | |
3457 | wxString result; | |
3458 | bool temp1 = False ; | |
3459 | bool temp2 = False ; | |
3460 | PyObject * obj0 = 0 ; | |
3461 | PyObject * obj1 = 0 ; | |
3462 | PyObject * obj2 = 0 ; | |
3463 | PyObject * obj3 = 0 ; | |
3464 | PyObject * obj4 = 0 ; | |
3465 | PyObject * obj5 = 0 ; | |
3466 | PyObject * obj6 = 0 ; | |
3467 | PyObject * obj7 = 0 ; | |
3468 | PyObject * obj8 = 0 ; | |
3469 | char *kwnames[] = { | |
3470 | (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL | |
3471 | }; | |
3472 | ||
3473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
3474 | { | |
3475 | arg1 = wxString_in_helper(obj0); | |
3476 | if (arg1 == NULL) SWIG_fail; | |
3477 | temp1 = True; | |
3478 | } | |
3479 | { | |
3480 | arg2 = wxString_in_helper(obj1); | |
3481 | if (arg2 == NULL) SWIG_fail; | |
3482 | temp2 = True; | |
3483 | } | |
3484 | { | |
3485 | arg3 = PyList_Size(obj2); | |
3486 | arg4 = wxString_LIST_helper(obj2); | |
3487 | if (arg4 == NULL) SWIG_fail; | |
3488 | } | |
3489 | if (obj3) { | |
3490 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow, | |
3491 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3492 | } | |
3493 | if (obj4) { | |
3494 | arg6 = (int) SWIG_AsInt(obj4); | |
3495 | if (PyErr_Occurred()) SWIG_fail; | |
3496 | } | |
3497 | if (obj5) { | |
3498 | arg7 = (int) SWIG_AsInt(obj5); | |
3499 | if (PyErr_Occurred()) SWIG_fail; | |
3500 | } | |
3501 | if (obj6) { | |
3502 | arg8 = (bool) SWIG_AsBool(obj6); | |
3503 | if (PyErr_Occurred()) SWIG_fail; | |
3504 | } | |
3505 | if (obj7) { | |
3506 | arg9 = (int) SWIG_AsInt(obj7); | |
3507 | if (PyErr_Occurred()) SWIG_fail; | |
3508 | } | |
3509 | if (obj8) { | |
3510 | arg10 = (int) SWIG_AsInt(obj8); | |
3511 | if (PyErr_Occurred()) SWIG_fail; | |
3512 | } | |
3513 | { | |
0439c23b | 3514 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3516 | result = wxGetSingleChoice((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); | |
3517 | ||
3518 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 3519 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3520 | } |
3521 | { | |
3522 | #if wxUSE_UNICODE | |
3523 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3524 | #else | |
3525 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3526 | #endif | |
3527 | } | |
3528 | { | |
3529 | if (temp1) | |
3530 | delete arg1; | |
3531 | } | |
3532 | { | |
3533 | if (temp2) | |
3534 | delete arg2; | |
3535 | } | |
3536 | { | |
3537 | if (arg4) delete [] arg4; | |
3538 | } | |
3539 | return resultobj; | |
3540 | fail: | |
3541 | { | |
3542 | if (temp1) | |
3543 | delete arg1; | |
3544 | } | |
3545 | { | |
3546 | if (temp2) | |
3547 | delete arg2; | |
3548 | } | |
3549 | { | |
3550 | if (arg4) delete [] arg4; | |
3551 | } | |
3552 | return NULL; | |
3553 | } | |
3554 | ||
3555 | ||
3556 | static PyObject *_wrap_GetSingleChoiceIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3557 | PyObject *resultobj; | |
3558 | wxString *arg1 = 0 ; | |
3559 | wxString *arg2 = 0 ; | |
3560 | int arg3 ; | |
3561 | wxString *arg4 = (wxString *) 0 ; | |
3562 | wxWindow *arg5 = (wxWindow *) NULL ; | |
3563 | int arg6 = (int) -1 ; | |
3564 | int arg7 = (int) -1 ; | |
3565 | bool arg8 = (bool) True ; | |
3566 | int arg9 = (int) 150 ; | |
3567 | int arg10 = (int) 200 ; | |
3568 | int result; | |
3569 | bool temp1 = False ; | |
3570 | bool temp2 = False ; | |
3571 | PyObject * obj0 = 0 ; | |
3572 | PyObject * obj1 = 0 ; | |
3573 | PyObject * obj2 = 0 ; | |
3574 | PyObject * obj3 = 0 ; | |
3575 | PyObject * obj4 = 0 ; | |
3576 | PyObject * obj5 = 0 ; | |
3577 | PyObject * obj6 = 0 ; | |
3578 | PyObject * obj7 = 0 ; | |
3579 | PyObject * obj8 = 0 ; | |
3580 | char *kwnames[] = { | |
3581 | (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL | |
3582 | }; | |
3583 | ||
3584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoiceIndex",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
3585 | { | |
3586 | arg1 = wxString_in_helper(obj0); | |
3587 | if (arg1 == NULL) SWIG_fail; | |
3588 | temp1 = True; | |
3589 | } | |
3590 | { | |
3591 | arg2 = wxString_in_helper(obj1); | |
3592 | if (arg2 == NULL) SWIG_fail; | |
3593 | temp2 = True; | |
3594 | } | |
3595 | { | |
3596 | arg3 = PyList_Size(obj2); | |
3597 | arg4 = wxString_LIST_helper(obj2); | |
3598 | if (arg4 == NULL) SWIG_fail; | |
3599 | } | |
3600 | if (obj3) { | |
3601 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow, | |
3602 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3603 | } | |
3604 | if (obj4) { | |
3605 | arg6 = (int) SWIG_AsInt(obj4); | |
3606 | if (PyErr_Occurred()) SWIG_fail; | |
3607 | } | |
3608 | if (obj5) { | |
3609 | arg7 = (int) SWIG_AsInt(obj5); | |
3610 | if (PyErr_Occurred()) SWIG_fail; | |
3611 | } | |
3612 | if (obj6) { | |
3613 | arg8 = (bool) SWIG_AsBool(obj6); | |
3614 | if (PyErr_Occurred()) SWIG_fail; | |
3615 | } | |
3616 | if (obj7) { | |
3617 | arg9 = (int) SWIG_AsInt(obj7); | |
3618 | if (PyErr_Occurred()) SWIG_fail; | |
3619 | } | |
3620 | if (obj8) { | |
3621 | arg10 = (int) SWIG_AsInt(obj8); | |
3622 | if (PyErr_Occurred()) SWIG_fail; | |
3623 | } | |
3624 | { | |
0439c23b | 3625 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3627 | result = (int)wxGetSingleChoiceIndex((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); | |
3628 | ||
3629 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 3630 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3631 | } |
3632 | resultobj = SWIG_FromInt((int)result); | |
3633 | { | |
3634 | if (temp1) | |
3635 | delete arg1; | |
3636 | } | |
3637 | { | |
3638 | if (temp2) | |
3639 | delete arg2; | |
3640 | } | |
3641 | { | |
3642 | if (arg4) delete [] arg4; | |
3643 | } | |
3644 | return resultobj; | |
3645 | fail: | |
3646 | { | |
3647 | if (temp1) | |
3648 | delete arg1; | |
3649 | } | |
3650 | { | |
3651 | if (temp2) | |
3652 | delete arg2; | |
3653 | } | |
3654 | { | |
3655 | if (arg4) delete [] arg4; | |
3656 | } | |
3657 | return NULL; | |
3658 | } | |
3659 | ||
3660 | ||
3661 | static PyObject *_wrap_MessageBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3662 | PyObject *resultobj; | |
3663 | wxString *arg1 = 0 ; | |
3664 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3665 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3666 | int arg3 = (int) wxOK|wxCENTRE ; | |
3667 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3668 | int arg5 = (int) -1 ; | |
3669 | int arg6 = (int) -1 ; | |
3670 | int result; | |
3671 | bool temp1 = False ; | |
3672 | bool temp2 = False ; | |
3673 | PyObject * obj0 = 0 ; | |
3674 | PyObject * obj1 = 0 ; | |
3675 | PyObject * obj2 = 0 ; | |
3676 | PyObject * obj3 = 0 ; | |
3677 | PyObject * obj4 = 0 ; | |
3678 | PyObject * obj5 = 0 ; | |
3679 | char *kwnames[] = { | |
3680 | (char *) "message",(char *) "caption",(char *) "style",(char *) "parent",(char *) "x",(char *) "y", NULL | |
3681 | }; | |
3682 | ||
3683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:MessageBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
3684 | { | |
3685 | arg1 = wxString_in_helper(obj0); | |
3686 | if (arg1 == NULL) SWIG_fail; | |
3687 | temp1 = True; | |
3688 | } | |
3689 | if (obj1) { | |
3690 | { | |
3691 | arg2 = wxString_in_helper(obj1); | |
3692 | if (arg2 == NULL) SWIG_fail; | |
3693 | temp2 = True; | |
3694 | } | |
3695 | } | |
3696 | if (obj2) { | |
3697 | arg3 = (int) SWIG_AsInt(obj2); | |
3698 | if (PyErr_Occurred()) SWIG_fail; | |
3699 | } | |
3700 | if (obj3) { | |
3701 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
3702 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3703 | } | |
3704 | if (obj4) { | |
3705 | arg5 = (int) SWIG_AsInt(obj4); | |
3706 | if (PyErr_Occurred()) SWIG_fail; | |
3707 | } | |
3708 | if (obj5) { | |
3709 | arg6 = (int) SWIG_AsInt(obj5); | |
3710 | if (PyErr_Occurred()) SWIG_fail; | |
3711 | } | |
3712 | { | |
0439c23b | 3713 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3715 | result = (int)wxMessageBox((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
3716 | ||
3717 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 3718 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3719 | } |
3720 | resultobj = SWIG_FromInt((int)result); | |
3721 | { | |
3722 | if (temp1) | |
3723 | delete arg1; | |
3724 | } | |
3725 | { | |
3726 | if (temp2) | |
3727 | delete arg2; | |
3728 | } | |
3729 | return resultobj; | |
3730 | fail: | |
3731 | { | |
3732 | if (temp1) | |
3733 | delete arg1; | |
3734 | } | |
3735 | { | |
3736 | if (temp2) | |
3737 | delete arg2; | |
3738 | } | |
3739 | return NULL; | |
3740 | } | |
3741 | ||
3742 | ||
3743 | static PyObject *_wrap_GetNumberFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3744 | PyObject *resultobj; | |
3745 | wxString *arg1 = 0 ; | |
3746 | wxString *arg2 = 0 ; | |
3747 | wxString *arg3 = 0 ; | |
3748 | long arg4 ; | |
3749 | long arg5 = (long) 0 ; | |
3750 | long arg6 = (long) 100 ; | |
3751 | wxWindow *arg7 = (wxWindow *) NULL ; | |
3752 | wxPoint const &arg8_defvalue = wxDefaultPosition ; | |
3753 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
3754 | long result; | |
3755 | bool temp1 = False ; | |
3756 | bool temp2 = False ; | |
3757 | bool temp3 = False ; | |
3758 | wxPoint temp8 ; | |
3759 | PyObject * obj0 = 0 ; | |
3760 | PyObject * obj1 = 0 ; | |
3761 | PyObject * obj2 = 0 ; | |
3762 | PyObject * obj3 = 0 ; | |
3763 | PyObject * obj4 = 0 ; | |
3764 | PyObject * obj5 = 0 ; | |
3765 | PyObject * obj6 = 0 ; | |
3766 | PyObject * obj7 = 0 ; | |
3767 | char *kwnames[] = { | |
3768 | (char *) "message",(char *) "prompt",(char *) "caption",(char *) "value",(char *) "min",(char *) "max",(char *) "parent",(char *) "pos", NULL | |
3769 | }; | |
3770 | ||
3771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:GetNumberFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
3772 | { | |
3773 | arg1 = wxString_in_helper(obj0); | |
3774 | if (arg1 == NULL) SWIG_fail; | |
3775 | temp1 = True; | |
3776 | } | |
3777 | { | |
3778 | arg2 = wxString_in_helper(obj1); | |
3779 | if (arg2 == NULL) SWIG_fail; | |
3780 | temp2 = True; | |
3781 | } | |
3782 | { | |
3783 | arg3 = wxString_in_helper(obj2); | |
3784 | if (arg3 == NULL) SWIG_fail; | |
3785 | temp3 = True; | |
3786 | } | |
3787 | arg4 = (long) SWIG_AsLong(obj3); | |
3788 | if (PyErr_Occurred()) SWIG_fail; | |
3789 | if (obj4) { | |
3790 | arg5 = (long) SWIG_AsLong(obj4); | |
3791 | if (PyErr_Occurred()) SWIG_fail; | |
3792 | } | |
3793 | if (obj5) { | |
3794 | arg6 = (long) SWIG_AsLong(obj5); | |
3795 | if (PyErr_Occurred()) SWIG_fail; | |
3796 | } | |
3797 | if (obj6) { | |
3798 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow, | |
3799 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3800 | } | |
3801 | if (obj7) { | |
3802 | { | |
3803 | arg8 = &temp8; | |
3804 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
3805 | } | |
3806 | } | |
3807 | { | |
0439c23b | 3808 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3810 | result = (long)wxGetNumberFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7,(wxPoint const &)*arg8); | |
3811 | ||
3812 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 3813 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3814 | } |
3815 | resultobj = SWIG_FromLong((long)result); | |
3816 | { | |
3817 | if (temp1) | |
3818 | delete arg1; | |
3819 | } | |
3820 | { | |
3821 | if (temp2) | |
3822 | delete arg2; | |
3823 | } | |
3824 | { | |
3825 | if (temp3) | |
3826 | delete arg3; | |
3827 | } | |
3828 | return resultobj; | |
3829 | fail: | |
3830 | { | |
3831 | if (temp1) | |
3832 | delete arg1; | |
3833 | } | |
3834 | { | |
3835 | if (temp2) | |
3836 | delete arg2; | |
3837 | } | |
3838 | { | |
3839 | if (temp3) | |
3840 | delete arg3; | |
3841 | } | |
3842 | return NULL; | |
3843 | } | |
3844 | ||
3845 | ||
3846 | static PyObject *_wrap_ColourDisplay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3847 | PyObject *resultobj; | |
3848 | bool result; | |
3849 | char *kwnames[] = { | |
3850 | NULL | |
3851 | }; | |
3852 | ||
3853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ColourDisplay",kwnames)) goto fail; | |
3854 | { | |
0439c23b | 3855 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3857 | result = (bool)wxColourDisplay(); | |
3858 | ||
3859 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 3860 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3861 | } |
3862 | { | |
3863 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3864 | } | |
3865 | return resultobj; | |
3866 | fail: | |
3867 | return NULL; | |
3868 | } | |
3869 | ||
3870 | ||
3871 | static PyObject *_wrap_DisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3872 | PyObject *resultobj; | |
3873 | int result; | |
3874 | char *kwnames[] = { | |
3875 | NULL | |
3876 | }; | |
3877 | ||
3878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplayDepth",kwnames)) goto fail; | |
3879 | { | |
0439c23b | 3880 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3882 | result = (int)wxDisplayDepth(); | |
3883 | ||
3884 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 3885 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3886 | } |
3887 | resultobj = SWIG_FromInt((int)result); | |
3888 | return resultobj; | |
3889 | fail: | |
3890 | return NULL; | |
3891 | } | |
3892 | ||
3893 | ||
3894 | static PyObject *_wrap_GetDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3895 | PyObject *resultobj; | |
3896 | int result; | |
3897 | char *kwnames[] = { | |
3898 | NULL | |
3899 | }; | |
3900 | ||
3901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplayDepth",kwnames)) goto fail; | |
3902 | { | |
0439c23b | 3903 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3905 | result = (int)wxGetDisplayDepth(); | |
3906 | ||
3907 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 3908 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3909 | } |
3910 | resultobj = SWIG_FromInt((int)result); | |
3911 | return resultobj; | |
3912 | fail: | |
3913 | return NULL; | |
3914 | } | |
3915 | ||
3916 | ||
3917 | static PyObject *_wrap_DisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3918 | PyObject *resultobj; | |
3919 | int *arg1 = (int *) 0 ; | |
3920 | int *arg2 = (int *) 0 ; | |
3921 | int temp1 ; | |
3922 | int temp2 ; | |
3923 | char *kwnames[] = { | |
3924 | NULL | |
3925 | }; | |
3926 | ||
3927 | arg1 = &temp1; | |
3928 | arg2 = &temp2; | |
3929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySize",kwnames)) goto fail; | |
3930 | { | |
0439c23b | 3931 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3933 | wxDisplaySize(arg1,arg2); | |
3934 | ||
3935 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 3936 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3937 | } |
3938 | Py_INCREF(Py_None); resultobj = Py_None; | |
3939 | { | |
3940 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
3941 | resultobj = t_output_helper(resultobj,o); | |
3942 | } | |
3943 | { | |
3944 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
3945 | resultobj = t_output_helper(resultobj,o); | |
3946 | } | |
3947 | return resultobj; | |
3948 | fail: | |
3949 | return NULL; | |
3950 | } | |
3951 | ||
3952 | ||
3953 | static PyObject *_wrap_GetDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3954 | PyObject *resultobj; | |
3955 | wxSize result; | |
3956 | char *kwnames[] = { | |
3957 | NULL | |
3958 | }; | |
3959 | ||
3960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySize",kwnames)) goto fail; | |
3961 | { | |
0439c23b | 3962 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3964 | result = wxGetDisplaySize(); | |
3965 | ||
3966 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 3967 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3968 | } |
3969 | { | |
3970 | wxSize * resultptr; | |
3971 | resultptr = new wxSize((wxSize &) result); | |
3972 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
3973 | } | |
3974 | return resultobj; | |
3975 | fail: | |
3976 | return NULL; | |
3977 | } | |
3978 | ||
3979 | ||
3980 | static PyObject *_wrap_DisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3981 | PyObject *resultobj; | |
3982 | int *arg1 = (int *) 0 ; | |
3983 | int *arg2 = (int *) 0 ; | |
3984 | int temp1 ; | |
3985 | int temp2 ; | |
3986 | char *kwnames[] = { | |
3987 | NULL | |
3988 | }; | |
3989 | ||
3990 | arg1 = &temp1; | |
3991 | arg2 = &temp2; | |
3992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySizeMM",kwnames)) goto fail; | |
3993 | { | |
0439c23b | 3994 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3996 | wxDisplaySizeMM(arg1,arg2); | |
3997 | ||
3998 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 3999 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4000 | } |
4001 | Py_INCREF(Py_None); resultobj = Py_None; | |
4002 | { | |
4003 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
4004 | resultobj = t_output_helper(resultobj,o); | |
4005 | } | |
4006 | { | |
4007 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4008 | resultobj = t_output_helper(resultobj,o); | |
4009 | } | |
4010 | return resultobj; | |
4011 | fail: | |
4012 | return NULL; | |
4013 | } | |
4014 | ||
4015 | ||
4016 | static PyObject *_wrap_GetDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4017 | PyObject *resultobj; | |
4018 | wxSize result; | |
4019 | char *kwnames[] = { | |
4020 | NULL | |
4021 | }; | |
4022 | ||
4023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySizeMM",kwnames)) goto fail; | |
4024 | { | |
0439c23b | 4025 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4027 | result = wxGetDisplaySizeMM(); | |
4028 | ||
4029 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 4030 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4031 | } |
4032 | { | |
4033 | wxSize * resultptr; | |
4034 | resultptr = new wxSize((wxSize &) result); | |
4035 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
4036 | } | |
4037 | return resultobj; | |
4038 | fail: | |
4039 | return NULL; | |
4040 | } | |
4041 | ||
4042 | ||
4043 | static PyObject *_wrap_ClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4044 | PyObject *resultobj; | |
4045 | int *arg1 = (int *) 0 ; | |
4046 | int *arg2 = (int *) 0 ; | |
4047 | int *arg3 = (int *) 0 ; | |
4048 | int *arg4 = (int *) 0 ; | |
4049 | int temp1 ; | |
4050 | int temp2 ; | |
4051 | int temp3 ; | |
4052 | int temp4 ; | |
4053 | char *kwnames[] = { | |
4054 | NULL | |
4055 | }; | |
4056 | ||
4057 | arg1 = &temp1; | |
4058 | arg2 = &temp2; | |
4059 | arg3 = &temp3; | |
4060 | arg4 = &temp4; | |
4061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ClientDisplayRect",kwnames)) goto fail; | |
4062 | { | |
0439c23b | 4063 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4065 | wxClientDisplayRect(arg1,arg2,arg3,arg4); | |
4066 | ||
4067 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 4068 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4069 | } |
4070 | Py_INCREF(Py_None); resultobj = Py_None; | |
4071 | { | |
4072 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
4073 | resultobj = t_output_helper(resultobj,o); | |
4074 | } | |
4075 | { | |
4076 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4077 | resultobj = t_output_helper(resultobj,o); | |
4078 | } | |
4079 | { | |
4080 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4081 | resultobj = t_output_helper(resultobj,o); | |
4082 | } | |
4083 | { | |
4084 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
4085 | resultobj = t_output_helper(resultobj,o); | |
4086 | } | |
4087 | return resultobj; | |
4088 | fail: | |
4089 | return NULL; | |
4090 | } | |
4091 | ||
4092 | ||
4093 | static PyObject *_wrap_GetClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4094 | PyObject *resultobj; | |
4095 | wxRect result; | |
4096 | char *kwnames[] = { | |
4097 | NULL | |
4098 | }; | |
4099 | ||
4100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetClientDisplayRect",kwnames)) goto fail; | |
4101 | { | |
0439c23b | 4102 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4104 | result = wxGetClientDisplayRect(); | |
4105 | ||
4106 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 4107 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4108 | } |
4109 | { | |
4110 | wxRect * resultptr; | |
4111 | resultptr = new wxRect((wxRect &) result); | |
4112 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
4113 | } | |
4114 | return resultobj; | |
4115 | fail: | |
4116 | return NULL; | |
4117 | } | |
4118 | ||
4119 | ||
4120 | static PyObject *_wrap_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4121 | PyObject *resultobj; | |
4122 | wxCursor *arg1 = 0 ; | |
4123 | PyObject * obj0 = 0 ; | |
4124 | char *kwnames[] = { | |
4125 | (char *) "cursor", NULL | |
4126 | }; | |
4127 | ||
4128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursor",kwnames,&obj0)) goto fail; | |
4129 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
4130 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4131 | SWIG_fail; | |
4132 | if (arg1 == NULL) { | |
4133 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4134 | SWIG_fail; | |
4135 | } | |
4136 | { | |
0439c23b | 4137 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4139 | wxSetCursor(*arg1); | |
4140 | ||
4141 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 4142 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4143 | } |
4144 | Py_INCREF(Py_None); resultobj = Py_None; | |
4145 | return resultobj; | |
4146 | fail: | |
4147 | return NULL; | |
4148 | } | |
4149 | ||
4150 | ||
4151 | static PyObject *_wrap_BeginBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4152 | PyObject *resultobj; | |
4153 | wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ; | |
4154 | PyObject * obj0 = 0 ; | |
4155 | char *kwnames[] = { | |
4156 | (char *) "cursor", NULL | |
4157 | }; | |
4158 | ||
4159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BeginBusyCursor",kwnames,&obj0)) goto fail; | |
4160 | if (obj0) { | |
4161 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
4162 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4163 | } | |
4164 | { | |
0439c23b | 4165 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4167 | wxBeginBusyCursor(arg1); | |
4168 | ||
4169 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 4170 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4171 | } |
4172 | Py_INCREF(Py_None); resultobj = Py_None; | |
4173 | return resultobj; | |
4174 | fail: | |
4175 | return NULL; | |
4176 | } | |
4177 | ||
4178 | ||
4179 | static PyObject *_wrap_GetActiveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4180 | PyObject *resultobj; | |
4181 | wxWindow *result; | |
4182 | char *kwnames[] = { | |
4183 | NULL | |
4184 | }; | |
4185 | ||
4186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetActiveWindow",kwnames)) goto fail; | |
4187 | { | |
0439c23b | 4188 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4190 | result = (wxWindow *)wxGetActiveWindow(); | |
4191 | ||
4192 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 4193 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4194 | } |
4195 | { | |
4196 | resultobj = wxPyMake_wxObject(result); | |
4197 | } | |
4198 | return resultobj; | |
4199 | fail: | |
4200 | return NULL; | |
4201 | } | |
4202 | ||
4203 | ||
4204 | static PyObject *_wrap_GenericFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4205 | PyObject *resultobj; | |
4206 | wxPoint *arg1 = 0 ; | |
4207 | wxWindow *result; | |
4208 | wxPoint temp1 ; | |
4209 | PyObject * obj0 = 0 ; | |
4210 | char *kwnames[] = { | |
4211 | (char *) "pt", NULL | |
4212 | }; | |
4213 | ||
4214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericFindWindowAtPoint",kwnames,&obj0)) goto fail; | |
4215 | { | |
4216 | arg1 = &temp1; | |
4217 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
4218 | } | |
4219 | { | |
0439c23b | 4220 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4222 | result = (wxWindow *)wxGenericFindWindowAtPoint((wxPoint const &)*arg1); | |
4223 | ||
4224 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 4225 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4226 | } |
4227 | { | |
4228 | resultobj = wxPyMake_wxObject(result); | |
4229 | } | |
4230 | return resultobj; | |
4231 | fail: | |
4232 | return NULL; | |
4233 | } | |
4234 | ||
4235 | ||
4236 | static PyObject *_wrap_FindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4237 | PyObject *resultobj; | |
4238 | wxPoint *arg1 = 0 ; | |
4239 | wxWindow *result; | |
4240 | wxPoint temp1 ; | |
4241 | PyObject * obj0 = 0 ; | |
4242 | char *kwnames[] = { | |
4243 | (char *) "pt", NULL | |
4244 | }; | |
4245 | ||
4246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindWindowAtPoint",kwnames,&obj0)) goto fail; | |
4247 | { | |
4248 | arg1 = &temp1; | |
4249 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
4250 | } | |
4251 | { | |
0439c23b | 4252 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4254 | result = (wxWindow *)wxFindWindowAtPoint((wxPoint const &)*arg1); | |
4255 | ||
4256 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 4257 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4258 | } |
4259 | { | |
4260 | resultobj = wxPyMake_wxObject(result); | |
4261 | } | |
4262 | return resultobj; | |
4263 | fail: | |
4264 | return NULL; | |
4265 | } | |
4266 | ||
4267 | ||
4268 | static PyObject *_wrap_GetTopLevelParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4269 | PyObject *resultobj; | |
4270 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4271 | wxWindow *result; | |
4272 | PyObject * obj0 = 0 ; | |
4273 | char *kwnames[] = { | |
4274 | (char *) "win", NULL | |
4275 | }; | |
4276 | ||
4277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetTopLevelParent",kwnames,&obj0)) goto fail; | |
4278 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
4279 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4280 | { | |
0439c23b | 4281 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4283 | result = (wxWindow *)wxGetTopLevelParent(arg1); | |
4284 | ||
4285 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 4286 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4287 | } |
4288 | { | |
4289 | resultobj = wxPyMake_wxObject(result); | |
4290 | } | |
4291 | return resultobj; | |
4292 | fail: | |
4293 | return NULL; | |
4294 | } | |
4295 | ||
4296 | ||
4297 | static PyObject *_wrap_GetKeyState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4298 | PyObject *resultobj; | |
4299 | int arg1 ; | |
4300 | bool result; | |
4301 | PyObject * obj0 = 0 ; | |
4302 | char *kwnames[] = { | |
4303 | (char *) "key", NULL | |
4304 | }; | |
4305 | ||
4306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetKeyState",kwnames,&obj0)) goto fail; | |
4307 | arg1 = (wxKeyCode) SWIG_AsInt(obj0); | |
4308 | if (PyErr_Occurred()) SWIG_fail; | |
4309 | { | |
0439c23b | 4310 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4312 | result = (bool)wxGetKeyState((wxKeyCode )arg1); | |
4313 | ||
4314 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 4315 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4316 | } |
4317 | { | |
4318 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4319 | } | |
4320 | return resultobj; | |
4321 | fail: | |
4322 | return NULL; | |
4323 | } | |
4324 | ||
4325 | ||
4326 | static PyObject *_wrap_WakeUpMainThread(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4327 | PyObject *resultobj; | |
4328 | char *kwnames[] = { | |
4329 | NULL | |
4330 | }; | |
4331 | ||
4332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpMainThread",kwnames)) goto fail; | |
4333 | { | |
0439c23b | 4334 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4336 | wxWakeUpMainThread(); | |
4337 | ||
4338 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 4339 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4340 | } |
4341 | Py_INCREF(Py_None); resultobj = Py_None; | |
4342 | return resultobj; | |
4343 | fail: | |
4344 | return NULL; | |
4345 | } | |
4346 | ||
4347 | ||
4348 | static PyObject *_wrap_MutexGuiEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4349 | PyObject *resultobj; | |
4350 | char *kwnames[] = { | |
4351 | NULL | |
4352 | }; | |
4353 | ||
4354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiEnter",kwnames)) goto fail; | |
4355 | { | |
0439c23b | 4356 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4358 | wxMutexGuiEnter(); | |
4359 | ||
4360 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 4361 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4362 | } |
4363 | Py_INCREF(Py_None); resultobj = Py_None; | |
4364 | return resultobj; | |
4365 | fail: | |
4366 | return NULL; | |
4367 | } | |
4368 | ||
4369 | ||
4370 | static PyObject *_wrap_MutexGuiLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4371 | PyObject *resultobj; | |
4372 | char *kwnames[] = { | |
4373 | NULL | |
4374 | }; | |
4375 | ||
4376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiLeave",kwnames)) goto fail; | |
4377 | { | |
0439c23b | 4378 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4380 | wxMutexGuiLeave(); | |
4381 | ||
4382 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 4383 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4384 | } |
4385 | Py_INCREF(Py_None); resultobj = Py_None; | |
4386 | return resultobj; | |
4387 | fail: | |
4388 | return NULL; | |
4389 | } | |
4390 | ||
4391 | ||
4392 | static PyObject *_wrap_new_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4393 | PyObject *resultobj; | |
4394 | wxMutexGuiLocker *result; | |
4395 | char *kwnames[] = { | |
4396 | NULL | |
4397 | }; | |
4398 | ||
4399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MutexGuiLocker",kwnames)) goto fail; | |
4400 | { | |
0439c23b | 4401 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4403 | result = (wxMutexGuiLocker *)new wxMutexGuiLocker(); | |
4404 | ||
4405 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 4406 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4407 | } |
4408 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMutexGuiLocker, 1); | |
4409 | return resultobj; | |
4410 | fail: | |
4411 | return NULL; | |
4412 | } | |
4413 | ||
4414 | ||
4415 | static PyObject *_wrap_delete_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4416 | PyObject *resultobj; | |
4417 | wxMutexGuiLocker *arg1 = (wxMutexGuiLocker *) 0 ; | |
4418 | PyObject * obj0 = 0 ; | |
4419 | char *kwnames[] = { | |
4420 | (char *) "self", NULL | |
4421 | }; | |
4422 | ||
4423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MutexGuiLocker",kwnames,&obj0)) goto fail; | |
4424 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMutexGuiLocker, | |
4425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4426 | { | |
4427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4428 | delete arg1; | |
4429 | ||
4430 | wxPyEndAllowThreads(__tstate); | |
4431 | if (PyErr_Occurred()) SWIG_fail; | |
4432 | } | |
4433 | Py_INCREF(Py_None); resultobj = Py_None; | |
4434 | return resultobj; | |
4435 | fail: | |
4436 | return NULL; | |
4437 | } | |
4438 | ||
4439 | ||
4440 | static PyObject * MutexGuiLocker_swigregister(PyObject *self, PyObject *args) { | |
4441 | PyObject *obj; | |
4442 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4443 | SWIG_TypeClientData(SWIGTYPE_p_wxMutexGuiLocker, obj); | |
4444 | Py_INCREF(obj); | |
4445 | return Py_BuildValue((char *)""); | |
4446 | } | |
4447 | static PyObject *_wrap_Thread_IsMain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4448 | PyObject *resultobj; | |
4449 | bool result; | |
4450 | char *kwnames[] = { | |
4451 | NULL | |
4452 | }; | |
4453 | ||
4454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Thread_IsMain",kwnames)) goto fail; | |
4455 | { | |
4456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4457 | result = (bool)wxThread_IsMain(); | |
4458 | ||
4459 | wxPyEndAllowThreads(__tstate); | |
4460 | if (PyErr_Occurred()) SWIG_fail; | |
4461 | } | |
4462 | { | |
4463 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4464 | } | |
4465 | return resultobj; | |
4466 | fail: | |
4467 | return NULL; | |
4468 | } | |
4469 | ||
4470 | ||
4471 | static PyObject *_wrap_new_ToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4472 | PyObject *resultobj; | |
4473 | wxString *arg1 = 0 ; | |
4474 | wxToolTip *result; | |
4475 | bool temp1 = False ; | |
4476 | PyObject * obj0 = 0 ; | |
4477 | char *kwnames[] = { | |
4478 | (char *) "tip", NULL | |
4479 | }; | |
4480 | ||
4481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ToolTip",kwnames,&obj0)) goto fail; | |
4482 | { | |
4483 | arg1 = wxString_in_helper(obj0); | |
4484 | if (arg1 == NULL) SWIG_fail; | |
4485 | temp1 = True; | |
4486 | } | |
4487 | { | |
0439c23b | 4488 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4490 | result = (wxToolTip *)new wxToolTip((wxString const &)*arg1); | |
4491 | ||
4492 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 4493 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4494 | } |
4495 | { | |
4496 | resultobj = wxPyMake_wxObject(result); | |
4497 | } | |
4498 | { | |
4499 | if (temp1) | |
4500 | delete arg1; | |
4501 | } | |
4502 | return resultobj; | |
4503 | fail: | |
4504 | { | |
4505 | if (temp1) | |
4506 | delete arg1; | |
4507 | } | |
4508 | return NULL; | |
4509 | } | |
4510 | ||
4511 | ||
4512 | static PyObject *_wrap_ToolTip_SetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4513 | PyObject *resultobj; | |
4514 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
4515 | wxString *arg2 = 0 ; | |
4516 | bool temp2 = False ; | |
4517 | PyObject * obj0 = 0 ; | |
4518 | PyObject * obj1 = 0 ; | |
4519 | char *kwnames[] = { | |
4520 | (char *) "self",(char *) "tip", NULL | |
4521 | }; | |
4522 | ||
4523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolTip_SetTip",kwnames,&obj0,&obj1)) goto fail; | |
4524 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip, | |
4525 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4526 | { | |
4527 | arg2 = wxString_in_helper(obj1); | |
4528 | if (arg2 == NULL) SWIG_fail; | |
4529 | temp2 = True; | |
4530 | } | |
4531 | { | |
4532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4533 | (arg1)->SetTip((wxString const &)*arg2); | |
4534 | ||
4535 | wxPyEndAllowThreads(__tstate); | |
4536 | if (PyErr_Occurred()) SWIG_fail; | |
4537 | } | |
4538 | Py_INCREF(Py_None); resultobj = Py_None; | |
4539 | { | |
4540 | if (temp2) | |
4541 | delete arg2; | |
4542 | } | |
4543 | return resultobj; | |
4544 | fail: | |
4545 | { | |
4546 | if (temp2) | |
4547 | delete arg2; | |
4548 | } | |
4549 | return NULL; | |
4550 | } | |
4551 | ||
4552 | ||
4553 | static PyObject *_wrap_ToolTip_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4554 | PyObject *resultobj; | |
4555 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
4556 | wxString result; | |
4557 | PyObject * obj0 = 0 ; | |
4558 | char *kwnames[] = { | |
4559 | (char *) "self", NULL | |
4560 | }; | |
4561 | ||
4562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetTip",kwnames,&obj0)) goto fail; | |
4563 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip, | |
4564 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4565 | { | |
4566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4567 | result = (arg1)->GetTip(); | |
4568 | ||
4569 | wxPyEndAllowThreads(__tstate); | |
4570 | if (PyErr_Occurred()) SWIG_fail; | |
4571 | } | |
4572 | { | |
4573 | #if wxUSE_UNICODE | |
4574 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4575 | #else | |
4576 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4577 | #endif | |
4578 | } | |
4579 | return resultobj; | |
4580 | fail: | |
4581 | return NULL; | |
4582 | } | |
4583 | ||
4584 | ||
4585 | static PyObject *_wrap_ToolTip_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4586 | PyObject *resultobj; | |
4587 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
4588 | wxWindow *result; | |
4589 | PyObject * obj0 = 0 ; | |
4590 | char *kwnames[] = { | |
4591 | (char *) "self", NULL | |
4592 | }; | |
4593 | ||
4594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetWindow",kwnames,&obj0)) goto fail; | |
4595 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip, | |
4596 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4597 | { | |
4598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4599 | result = (wxWindow *)(arg1)->GetWindow(); | |
4600 | ||
4601 | wxPyEndAllowThreads(__tstate); | |
4602 | if (PyErr_Occurred()) SWIG_fail; | |
4603 | } | |
4604 | { | |
4605 | resultobj = wxPyMake_wxObject(result); | |
4606 | } | |
4607 | return resultobj; | |
4608 | fail: | |
4609 | return NULL; | |
4610 | } | |
4611 | ||
4612 | ||
4613 | static PyObject *_wrap_ToolTip_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4614 | PyObject *resultobj; | |
4615 | bool arg1 ; | |
4616 | PyObject * obj0 = 0 ; | |
4617 | char *kwnames[] = { | |
4618 | (char *) "flag", NULL | |
4619 | }; | |
4620 | ||
4621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_Enable",kwnames,&obj0)) goto fail; | |
4622 | arg1 = (bool) SWIG_AsBool(obj0); | |
4623 | if (PyErr_Occurred()) SWIG_fail; | |
4624 | { | |
4625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4626 | wxToolTip::Enable(arg1); | |
4627 | ||
4628 | wxPyEndAllowThreads(__tstate); | |
4629 | if (PyErr_Occurred()) SWIG_fail; | |
4630 | } | |
4631 | Py_INCREF(Py_None); resultobj = Py_None; | |
4632 | return resultobj; | |
4633 | fail: | |
4634 | return NULL; | |
4635 | } | |
4636 | ||
4637 | ||
4638 | static PyObject *_wrap_ToolTip_SetDelay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4639 | PyObject *resultobj; | |
4640 | long arg1 ; | |
4641 | PyObject * obj0 = 0 ; | |
4642 | char *kwnames[] = { | |
4643 | (char *) "milliseconds", NULL | |
4644 | }; | |
4645 | ||
4646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_SetDelay",kwnames,&obj0)) goto fail; | |
4647 | arg1 = (long) SWIG_AsLong(obj0); | |
4648 | if (PyErr_Occurred()) SWIG_fail; | |
4649 | { | |
4650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4651 | wxToolTip::SetDelay(arg1); | |
4652 | ||
4653 | wxPyEndAllowThreads(__tstate); | |
4654 | if (PyErr_Occurred()) SWIG_fail; | |
4655 | } | |
4656 | Py_INCREF(Py_None); resultobj = Py_None; | |
4657 | return resultobj; | |
4658 | fail: | |
4659 | return NULL; | |
4660 | } | |
4661 | ||
4662 | ||
4663 | static PyObject * ToolTip_swigregister(PyObject *self, PyObject *args) { | |
4664 | PyObject *obj; | |
4665 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4666 | SWIG_TypeClientData(SWIGTYPE_p_wxToolTip, obj); | |
4667 | Py_INCREF(obj); | |
4668 | return Py_BuildValue((char *)""); | |
4669 | } | |
4670 | static PyObject *_wrap_new_Caret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4671 | PyObject *resultobj; | |
4672 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4673 | wxSize *arg2 = 0 ; | |
4674 | wxCaret *result; | |
4675 | wxSize temp2 ; | |
4676 | PyObject * obj0 = 0 ; | |
4677 | PyObject * obj1 = 0 ; | |
4678 | char *kwnames[] = { | |
4679 | (char *) "window",(char *) "size", NULL | |
4680 | }; | |
4681 | ||
4682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_Caret",kwnames,&obj0,&obj1)) goto fail; | |
4683 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
4684 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4685 | { | |
4686 | arg2 = &temp2; | |
4687 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4688 | } | |
4689 | { | |
0439c23b | 4690 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4692 | result = (wxCaret *)new wxCaret(arg1,(wxSize const &)*arg2); | |
4693 | ||
4694 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 4695 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4696 | } |
4697 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 1); | |
4698 | return resultobj; | |
4699 | fail: | |
4700 | return NULL; | |
4701 | } | |
4702 | ||
4703 | ||
4704 | static PyObject *_wrap_delete_Caret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4705 | PyObject *resultobj; | |
4706 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4707 | PyObject * obj0 = 0 ; | |
4708 | char *kwnames[] = { | |
4709 | (char *) "self", NULL | |
4710 | }; | |
4711 | ||
4712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Caret",kwnames,&obj0)) goto fail; | |
4713 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
4714 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4715 | { | |
4716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4717 | delete arg1; | |
4718 | ||
4719 | wxPyEndAllowThreads(__tstate); | |
4720 | if (PyErr_Occurred()) SWIG_fail; | |
4721 | } | |
4722 | Py_INCREF(Py_None); resultobj = Py_None; | |
4723 | return resultobj; | |
4724 | fail: | |
4725 | return NULL; | |
4726 | } | |
4727 | ||
4728 | ||
4729 | static PyObject *_wrap_Caret_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4730 | PyObject *resultobj; | |
4731 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4732 | bool result; | |
4733 | PyObject * obj0 = 0 ; | |
4734 | char *kwnames[] = { | |
4735 | (char *) "self", NULL | |
4736 | }; | |
4737 | ||
4738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsOk",kwnames,&obj0)) goto fail; | |
4739 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
4740 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4741 | { | |
4742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4743 | result = (bool)(arg1)->IsOk(); | |
4744 | ||
4745 | wxPyEndAllowThreads(__tstate); | |
4746 | if (PyErr_Occurred()) SWIG_fail; | |
4747 | } | |
4748 | { | |
4749 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4750 | } | |
4751 | return resultobj; | |
4752 | fail: | |
4753 | return NULL; | |
4754 | } | |
4755 | ||
4756 | ||
4757 | static PyObject *_wrap_Caret_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4758 | PyObject *resultobj; | |
4759 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4760 | bool result; | |
4761 | PyObject * obj0 = 0 ; | |
4762 | char *kwnames[] = { | |
4763 | (char *) "self", NULL | |
4764 | }; | |
4765 | ||
4766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsVisible",kwnames,&obj0)) goto fail; | |
4767 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
4768 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4769 | { | |
4770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4771 | result = (bool)(arg1)->IsVisible(); | |
4772 | ||
4773 | wxPyEndAllowThreads(__tstate); | |
4774 | if (PyErr_Occurred()) SWIG_fail; | |
4775 | } | |
4776 | { | |
4777 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4778 | } | |
4779 | return resultobj; | |
4780 | fail: | |
4781 | return NULL; | |
4782 | } | |
4783 | ||
4784 | ||
4785 | static PyObject *_wrap_Caret_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4786 | PyObject *resultobj; | |
4787 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4788 | wxPoint result; | |
4789 | PyObject * obj0 = 0 ; | |
4790 | char *kwnames[] = { | |
4791 | (char *) "self", NULL | |
4792 | }; | |
4793 | ||
4794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPosition",kwnames,&obj0)) goto fail; | |
4795 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
4796 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4797 | { | |
4798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4799 | result = (arg1)->GetPosition(); | |
4800 | ||
4801 | wxPyEndAllowThreads(__tstate); | |
4802 | if (PyErr_Occurred()) SWIG_fail; | |
4803 | } | |
4804 | { | |
4805 | wxPoint * resultptr; | |
4806 | resultptr = new wxPoint((wxPoint &) result); | |
4807 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
4808 | } | |
4809 | return resultobj; | |
4810 | fail: | |
4811 | return NULL; | |
4812 | } | |
4813 | ||
4814 | ||
4815 | static PyObject *_wrap_Caret_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4816 | PyObject *resultobj; | |
4817 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4818 | int *arg2 = (int *) 0 ; | |
4819 | int *arg3 = (int *) 0 ; | |
4820 | int temp2 ; | |
4821 | int temp3 ; | |
4822 | PyObject * obj0 = 0 ; | |
4823 | char *kwnames[] = { | |
4824 | (char *) "self", NULL | |
4825 | }; | |
4826 | ||
4827 | arg2 = &temp2; | |
4828 | arg3 = &temp3; | |
4829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPositionTuple",kwnames,&obj0)) goto fail; | |
4830 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
4831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4832 | { | |
4833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4834 | (arg1)->GetPosition(arg2,arg3); | |
4835 | ||
4836 | wxPyEndAllowThreads(__tstate); | |
4837 | if (PyErr_Occurred()) SWIG_fail; | |
4838 | } | |
4839 | Py_INCREF(Py_None); resultobj = Py_None; | |
4840 | { | |
4841 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4842 | resultobj = t_output_helper(resultobj,o); | |
4843 | } | |
4844 | { | |
4845 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4846 | resultobj = t_output_helper(resultobj,o); | |
4847 | } | |
4848 | return resultobj; | |
4849 | fail: | |
4850 | return NULL; | |
4851 | } | |
4852 | ||
4853 | ||
4854 | static PyObject *_wrap_Caret_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4855 | PyObject *resultobj; | |
4856 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4857 | wxSize result; | |
4858 | PyObject * obj0 = 0 ; | |
4859 | char *kwnames[] = { | |
4860 | (char *) "self", NULL | |
4861 | }; | |
4862 | ||
4863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSize",kwnames,&obj0)) goto fail; | |
4864 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
4865 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4866 | { | |
4867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4868 | result = (arg1)->GetSize(); | |
4869 | ||
4870 | wxPyEndAllowThreads(__tstate); | |
4871 | if (PyErr_Occurred()) SWIG_fail; | |
4872 | } | |
4873 | { | |
4874 | wxSize * resultptr; | |
4875 | resultptr = new wxSize((wxSize &) result); | |
4876 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
4877 | } | |
4878 | return resultobj; | |
4879 | fail: | |
4880 | return NULL; | |
4881 | } | |
4882 | ||
4883 | ||
4884 | static PyObject *_wrap_Caret_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4885 | PyObject *resultobj; | |
4886 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4887 | int *arg2 = (int *) 0 ; | |
4888 | int *arg3 = (int *) 0 ; | |
4889 | int temp2 ; | |
4890 | int temp3 ; | |
4891 | PyObject * obj0 = 0 ; | |
4892 | char *kwnames[] = { | |
4893 | (char *) "self", NULL | |
4894 | }; | |
4895 | ||
4896 | arg2 = &temp2; | |
4897 | arg3 = &temp3; | |
4898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSizeTuple",kwnames,&obj0)) goto fail; | |
4899 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
4900 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4901 | { | |
4902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4903 | (arg1)->GetSize(arg2,arg3); | |
4904 | ||
4905 | wxPyEndAllowThreads(__tstate); | |
4906 | if (PyErr_Occurred()) SWIG_fail; | |
4907 | } | |
4908 | Py_INCREF(Py_None); resultobj = Py_None; | |
4909 | { | |
4910 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4911 | resultobj = t_output_helper(resultobj,o); | |
4912 | } | |
4913 | { | |
4914 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4915 | resultobj = t_output_helper(resultobj,o); | |
4916 | } | |
4917 | return resultobj; | |
4918 | fail: | |
4919 | return NULL; | |
4920 | } | |
4921 | ||
4922 | ||
4923 | static PyObject *_wrap_Caret_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4924 | PyObject *resultobj; | |
4925 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4926 | wxWindow *result; | |
4927 | PyObject * obj0 = 0 ; | |
4928 | char *kwnames[] = { | |
4929 | (char *) "self", NULL | |
4930 | }; | |
4931 | ||
4932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetWindow",kwnames,&obj0)) goto fail; | |
4933 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
4934 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4935 | { | |
4936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4937 | result = (wxWindow *)(arg1)->GetWindow(); | |
4938 | ||
4939 | wxPyEndAllowThreads(__tstate); | |
4940 | if (PyErr_Occurred()) SWIG_fail; | |
4941 | } | |
4942 | { | |
4943 | resultobj = wxPyMake_wxObject(result); | |
4944 | } | |
4945 | return resultobj; | |
4946 | fail: | |
4947 | return NULL; | |
4948 | } | |
4949 | ||
4950 | ||
4951 | static PyObject *_wrap_Caret_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4952 | PyObject *resultobj; | |
4953 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4954 | int arg2 ; | |
4955 | int arg3 ; | |
4956 | PyObject * obj0 = 0 ; | |
4957 | PyObject * obj1 = 0 ; | |
4958 | PyObject * obj2 = 0 ; | |
4959 | char *kwnames[] = { | |
4960 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4961 | }; | |
4962 | ||
4963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_MoveXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4964 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
4965 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4966 | arg2 = (int) SWIG_AsInt(obj1); | |
4967 | if (PyErr_Occurred()) SWIG_fail; | |
4968 | arg3 = (int) SWIG_AsInt(obj2); | |
4969 | if (PyErr_Occurred()) SWIG_fail; | |
4970 | { | |
4971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4972 | (arg1)->Move(arg2,arg3); | |
4973 | ||
4974 | wxPyEndAllowThreads(__tstate); | |
4975 | if (PyErr_Occurred()) SWIG_fail; | |
4976 | } | |
4977 | Py_INCREF(Py_None); resultobj = Py_None; | |
4978 | return resultobj; | |
4979 | fail: | |
4980 | return NULL; | |
4981 | } | |
4982 | ||
4983 | ||
4984 | static PyObject *_wrap_Caret_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4985 | PyObject *resultobj; | |
4986 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4987 | wxPoint *arg2 = 0 ; | |
4988 | wxPoint temp2 ; | |
4989 | PyObject * obj0 = 0 ; | |
4990 | PyObject * obj1 = 0 ; | |
4991 | char *kwnames[] = { | |
4992 | (char *) "self",(char *) "pt", NULL | |
4993 | }; | |
4994 | ||
4995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_Move",kwnames,&obj0,&obj1)) goto fail; | |
4996 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
4997 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4998 | { | |
4999 | arg2 = &temp2; | |
5000 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
5001 | } | |
5002 | { | |
5003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5004 | (arg1)->Move((wxPoint const &)*arg2); | |
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 *_wrap_Caret_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5017 | PyObject *resultobj; | |
5018 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5019 | int arg2 ; | |
5020 | int arg3 ; | |
5021 | PyObject * obj0 = 0 ; | |
5022 | PyObject * obj1 = 0 ; | |
5023 | PyObject * obj2 = 0 ; | |
5024 | char *kwnames[] = { | |
5025 | (char *) "self",(char *) "width",(char *) "height", NULL | |
5026 | }; | |
5027 | ||
5028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5029 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5030 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5031 | arg2 = (int) SWIG_AsInt(obj1); | |
5032 | if (PyErr_Occurred()) SWIG_fail; | |
5033 | arg3 = (int) SWIG_AsInt(obj2); | |
5034 | if (PyErr_Occurred()) SWIG_fail; | |
5035 | { | |
5036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5037 | (arg1)->SetSize(arg2,arg3); | |
5038 | ||
5039 | wxPyEndAllowThreads(__tstate); | |
5040 | if (PyErr_Occurred()) SWIG_fail; | |
5041 | } | |
5042 | Py_INCREF(Py_None); resultobj = Py_None; | |
5043 | return resultobj; | |
5044 | fail: | |
5045 | return NULL; | |
5046 | } | |
5047 | ||
5048 | ||
5049 | static PyObject *_wrap_Caret_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5050 | PyObject *resultobj; | |
5051 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5052 | wxSize *arg2 = 0 ; | |
5053 | wxSize temp2 ; | |
5054 | PyObject * obj0 = 0 ; | |
5055 | PyObject * obj1 = 0 ; | |
5056 | char *kwnames[] = { | |
5057 | (char *) "self",(char *) "size", NULL | |
5058 | }; | |
5059 | ||
5060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
5061 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5062 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5063 | { | |
5064 | arg2 = &temp2; | |
5065 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
5066 | } | |
5067 | { | |
5068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5069 | (arg1)->SetSize((wxSize const &)*arg2); | |
5070 | ||
5071 | wxPyEndAllowThreads(__tstate); | |
5072 | if (PyErr_Occurred()) SWIG_fail; | |
5073 | } | |
5074 | Py_INCREF(Py_None); resultobj = Py_None; | |
5075 | return resultobj; | |
5076 | fail: | |
5077 | return NULL; | |
5078 | } | |
5079 | ||
5080 | ||
5081 | static PyObject *_wrap_Caret_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5082 | PyObject *resultobj; | |
5083 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5084 | int arg2 = (int) True ; | |
5085 | PyObject * obj0 = 0 ; | |
5086 | PyObject * obj1 = 0 ; | |
5087 | char *kwnames[] = { | |
5088 | (char *) "self",(char *) "show", NULL | |
5089 | }; | |
5090 | ||
5091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Caret_Show",kwnames,&obj0,&obj1)) goto fail; | |
5092 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5093 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5094 | if (obj1) { | |
5095 | arg2 = (int) SWIG_AsInt(obj1); | |
5096 | if (PyErr_Occurred()) SWIG_fail; | |
5097 | } | |
5098 | { | |
5099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5100 | (arg1)->Show(arg2); | |
5101 | ||
5102 | wxPyEndAllowThreads(__tstate); | |
5103 | if (PyErr_Occurred()) SWIG_fail; | |
5104 | } | |
5105 | Py_INCREF(Py_None); resultobj = Py_None; | |
5106 | return resultobj; | |
5107 | fail: | |
5108 | return NULL; | |
5109 | } | |
5110 | ||
5111 | ||
5112 | static PyObject *_wrap_Caret_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5113 | PyObject *resultobj; | |
5114 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5115 | PyObject * obj0 = 0 ; | |
5116 | char *kwnames[] = { | |
5117 | (char *) "self", NULL | |
5118 | }; | |
5119 | ||
5120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Hide",kwnames,&obj0)) goto fail; | |
5121 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5123 | { | |
5124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5125 | (arg1)->Hide(); | |
5126 | ||
5127 | wxPyEndAllowThreads(__tstate); | |
5128 | if (PyErr_Occurred()) SWIG_fail; | |
5129 | } | |
5130 | Py_INCREF(Py_None); resultobj = Py_None; | |
5131 | return resultobj; | |
5132 | fail: | |
5133 | return NULL; | |
5134 | } | |
5135 | ||
5136 | ||
5137 | static PyObject * Caret_swigregister(PyObject *self, PyObject *args) { | |
5138 | PyObject *obj; | |
5139 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5140 | SWIG_TypeClientData(SWIGTYPE_p_wxCaret, obj); | |
5141 | Py_INCREF(obj); | |
5142 | return Py_BuildValue((char *)""); | |
5143 | } | |
5144 | static PyObject *_wrap_Caret_GetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5145 | PyObject *resultobj; | |
5146 | int result; | |
5147 | char *kwnames[] = { | |
5148 | NULL | |
5149 | }; | |
5150 | ||
5151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Caret_GetBlinkTime",kwnames)) goto fail; | |
5152 | { | |
5153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5154 | result = (int)wxCaret_GetBlinkTime(); | |
5155 | ||
5156 | wxPyEndAllowThreads(__tstate); | |
5157 | if (PyErr_Occurred()) SWIG_fail; | |
5158 | } | |
5159 | resultobj = SWIG_FromInt((int)result); | |
5160 | return resultobj; | |
5161 | fail: | |
5162 | return NULL; | |
5163 | } | |
5164 | ||
5165 | ||
5166 | static PyObject *_wrap_Caret_SetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5167 | PyObject *resultobj; | |
5168 | int arg1 ; | |
5169 | PyObject * obj0 = 0 ; | |
5170 | char *kwnames[] = { | |
5171 | (char *) "milliseconds", NULL | |
5172 | }; | |
5173 | ||
5174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_SetBlinkTime",kwnames,&obj0)) goto fail; | |
5175 | arg1 = (int) SWIG_AsInt(obj0); | |
5176 | if (PyErr_Occurred()) SWIG_fail; | |
5177 | { | |
5178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5179 | wxCaret_SetBlinkTime(arg1); | |
5180 | ||
5181 | wxPyEndAllowThreads(__tstate); | |
5182 | if (PyErr_Occurred()) SWIG_fail; | |
5183 | } | |
5184 | Py_INCREF(Py_None); resultobj = Py_None; | |
5185 | return resultobj; | |
5186 | fail: | |
5187 | return NULL; | |
5188 | } | |
5189 | ||
5190 | ||
5191 | static PyObject *_wrap_new_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5192 | PyObject *resultobj; | |
5193 | wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ; | |
5194 | wxBusyCursor *result; | |
5195 | PyObject * obj0 = 0 ; | |
5196 | char *kwnames[] = { | |
5197 | (char *) "cursor", NULL | |
5198 | }; | |
5199 | ||
5200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BusyCursor",kwnames,&obj0)) goto fail; | |
5201 | if (obj0) { | |
5202 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
5203 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5204 | } | |
5205 | { | |
0439c23b | 5206 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5208 | result = (wxBusyCursor *)new wxBusyCursor(arg1); | |
5209 | ||
5210 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 5211 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5212 | } |
5213 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyCursor, 1); | |
5214 | return resultobj; | |
5215 | fail: | |
5216 | return NULL; | |
5217 | } | |
5218 | ||
5219 | ||
5220 | static PyObject *_wrap_delete_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5221 | PyObject *resultobj; | |
5222 | wxBusyCursor *arg1 = (wxBusyCursor *) 0 ; | |
5223 | PyObject * obj0 = 0 ; | |
5224 | char *kwnames[] = { | |
5225 | (char *) "self", NULL | |
5226 | }; | |
5227 | ||
5228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyCursor",kwnames,&obj0)) goto fail; | |
5229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyCursor, | |
5230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5231 | { | |
5232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5233 | delete arg1; | |
5234 | ||
5235 | wxPyEndAllowThreads(__tstate); | |
5236 | if (PyErr_Occurred()) SWIG_fail; | |
5237 | } | |
5238 | Py_INCREF(Py_None); resultobj = Py_None; | |
5239 | return resultobj; | |
5240 | fail: | |
5241 | return NULL; | |
5242 | } | |
5243 | ||
5244 | ||
5245 | static PyObject * BusyCursor_swigregister(PyObject *self, PyObject *args) { | |
5246 | PyObject *obj; | |
5247 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5248 | SWIG_TypeClientData(SWIGTYPE_p_wxBusyCursor, obj); | |
5249 | Py_INCREF(obj); | |
5250 | return Py_BuildValue((char *)""); | |
5251 | } | |
5252 | static PyObject *_wrap_new_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5253 | PyObject *resultobj; | |
5254 | wxWindow *arg1 = (wxWindow *) NULL ; | |
5255 | wxWindowDisabler *result; | |
5256 | PyObject * obj0 = 0 ; | |
5257 | char *kwnames[] = { | |
5258 | (char *) "winToSkip", NULL | |
5259 | }; | |
5260 | ||
5261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDisabler",kwnames,&obj0)) goto fail; | |
5262 | if (obj0) { | |
5263 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
5264 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5265 | } | |
5266 | { | |
0439c23b | 5267 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5269 | result = (wxWindowDisabler *)new wxWindowDisabler(arg1); | |
5270 | ||
5271 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 5272 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5273 | } |
5274 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDisabler, 1); | |
5275 | return resultobj; | |
5276 | fail: | |
5277 | return NULL; | |
5278 | } | |
5279 | ||
5280 | ||
5281 | static PyObject *_wrap_delete_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5282 | PyObject *resultobj; | |
5283 | wxWindowDisabler *arg1 = (wxWindowDisabler *) 0 ; | |
5284 | PyObject * obj0 = 0 ; | |
5285 | char *kwnames[] = { | |
5286 | (char *) "self", NULL | |
5287 | }; | |
5288 | ||
5289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_WindowDisabler",kwnames,&obj0)) goto fail; | |
5290 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDisabler, | |
5291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5292 | { | |
5293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5294 | delete arg1; | |
5295 | ||
5296 | wxPyEndAllowThreads(__tstate); | |
5297 | if (PyErr_Occurred()) SWIG_fail; | |
5298 | } | |
5299 | Py_INCREF(Py_None); resultobj = Py_None; | |
5300 | return resultobj; | |
5301 | fail: | |
5302 | return NULL; | |
5303 | } | |
5304 | ||
5305 | ||
5306 | static PyObject * WindowDisabler_swigregister(PyObject *self, PyObject *args) { | |
5307 | PyObject *obj; | |
5308 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5309 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDisabler, obj); | |
5310 | Py_INCREF(obj); | |
5311 | return Py_BuildValue((char *)""); | |
5312 | } | |
5313 | static PyObject *_wrap_new_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5314 | PyObject *resultobj; | |
5315 | wxString *arg1 = 0 ; | |
5316 | wxBusyInfo *result; | |
5317 | bool temp1 = False ; | |
5318 | PyObject * obj0 = 0 ; | |
5319 | char *kwnames[] = { | |
5320 | (char *) "message", NULL | |
5321 | }; | |
5322 | ||
5323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BusyInfo",kwnames,&obj0)) goto fail; | |
5324 | { | |
5325 | arg1 = wxString_in_helper(obj0); | |
5326 | if (arg1 == NULL) SWIG_fail; | |
5327 | temp1 = True; | |
5328 | } | |
5329 | { | |
0439c23b | 5330 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5332 | result = (wxBusyInfo *)new wxBusyInfo((wxString const &)*arg1); | |
5333 | ||
5334 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 5335 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5336 | } |
5337 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyInfo, 1); | |
5338 | { | |
5339 | if (temp1) | |
5340 | delete arg1; | |
5341 | } | |
5342 | return resultobj; | |
5343 | fail: | |
5344 | { | |
5345 | if (temp1) | |
5346 | delete arg1; | |
5347 | } | |
5348 | return NULL; | |
5349 | } | |
5350 | ||
5351 | ||
5352 | static PyObject *_wrap_delete_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5353 | PyObject *resultobj; | |
5354 | wxBusyInfo *arg1 = (wxBusyInfo *) 0 ; | |
5355 | PyObject * obj0 = 0 ; | |
5356 | char *kwnames[] = { | |
5357 | (char *) "self", NULL | |
5358 | }; | |
5359 | ||
5360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyInfo",kwnames,&obj0)) goto fail; | |
5361 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyInfo, | |
5362 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5363 | { | |
5364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5365 | delete arg1; | |
5366 | ||
5367 | wxPyEndAllowThreads(__tstate); | |
5368 | if (PyErr_Occurred()) SWIG_fail; | |
5369 | } | |
5370 | Py_INCREF(Py_None); resultobj = Py_None; | |
5371 | return resultobj; | |
5372 | fail: | |
5373 | return NULL; | |
5374 | } | |
5375 | ||
5376 | ||
5377 | static PyObject * BusyInfo_swigregister(PyObject *self, PyObject *args) { | |
5378 | PyObject *obj; | |
5379 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5380 | SWIG_TypeClientData(SWIGTYPE_p_wxBusyInfo, obj); | |
5381 | Py_INCREF(obj); | |
5382 | return Py_BuildValue((char *)""); | |
5383 | } | |
5384 | static PyObject *_wrap_new_StopWatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5385 | PyObject *resultobj; | |
5386 | wxStopWatch *result; | |
5387 | char *kwnames[] = { | |
5388 | NULL | |
5389 | }; | |
5390 | ||
5391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StopWatch",kwnames)) goto fail; | |
5392 | { | |
5393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5394 | result = (wxStopWatch *)new wxStopWatch(); | |
5395 | ||
5396 | wxPyEndAllowThreads(__tstate); | |
5397 | if (PyErr_Occurred()) SWIG_fail; | |
5398 | } | |
5399 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStopWatch, 1); | |
5400 | return resultobj; | |
5401 | fail: | |
5402 | return NULL; | |
5403 | } | |
5404 | ||
5405 | ||
5406 | static PyObject *_wrap_StopWatch_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5407 | PyObject *resultobj; | |
5408 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5409 | long arg2 = (long) 0 ; | |
5410 | PyObject * obj0 = 0 ; | |
5411 | PyObject * obj1 = 0 ; | |
5412 | char *kwnames[] = { | |
5413 | (char *) "self",(char *) "t0", NULL | |
5414 | }; | |
5415 | ||
5416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StopWatch_Start",kwnames,&obj0,&obj1)) goto fail; | |
5417 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, | |
5418 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5419 | if (obj1) { | |
5420 | arg2 = (long) SWIG_AsLong(obj1); | |
5421 | if (PyErr_Occurred()) SWIG_fail; | |
5422 | } | |
5423 | { | |
5424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5425 | (arg1)->Start(arg2); | |
5426 | ||
5427 | wxPyEndAllowThreads(__tstate); | |
5428 | if (PyErr_Occurred()) SWIG_fail; | |
5429 | } | |
5430 | Py_INCREF(Py_None); resultobj = Py_None; | |
5431 | return resultobj; | |
5432 | fail: | |
5433 | return NULL; | |
5434 | } | |
5435 | ||
5436 | ||
5437 | static PyObject *_wrap_StopWatch_Pause(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5438 | PyObject *resultobj; | |
5439 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5440 | PyObject * obj0 = 0 ; | |
5441 | char *kwnames[] = { | |
5442 | (char *) "self", NULL | |
5443 | }; | |
5444 | ||
5445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Pause",kwnames,&obj0)) goto fail; | |
5446 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, | |
5447 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5448 | { | |
5449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5450 | (arg1)->Pause(); | |
5451 | ||
5452 | wxPyEndAllowThreads(__tstate); | |
5453 | if (PyErr_Occurred()) SWIG_fail; | |
5454 | } | |
5455 | Py_INCREF(Py_None); resultobj = Py_None; | |
5456 | return resultobj; | |
5457 | fail: | |
5458 | return NULL; | |
5459 | } | |
5460 | ||
5461 | ||
5462 | static PyObject *_wrap_StopWatch_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5463 | PyObject *resultobj; | |
5464 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5465 | PyObject * obj0 = 0 ; | |
5466 | char *kwnames[] = { | |
5467 | (char *) "self", NULL | |
5468 | }; | |
5469 | ||
5470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Resume",kwnames,&obj0)) goto fail; | |
5471 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, | |
5472 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5473 | { | |
5474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5475 | (arg1)->Resume(); | |
5476 | ||
5477 | wxPyEndAllowThreads(__tstate); | |
5478 | if (PyErr_Occurred()) SWIG_fail; | |
5479 | } | |
5480 | Py_INCREF(Py_None); resultobj = Py_None; | |
5481 | return resultobj; | |
5482 | fail: | |
5483 | return NULL; | |
5484 | } | |
5485 | ||
5486 | ||
5487 | static PyObject *_wrap_StopWatch_Time(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5488 | PyObject *resultobj; | |
5489 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5490 | long result; | |
5491 | PyObject * obj0 = 0 ; | |
5492 | char *kwnames[] = { | |
5493 | (char *) "self", NULL | |
5494 | }; | |
5495 | ||
5496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Time",kwnames,&obj0)) goto fail; | |
5497 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, | |
5498 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5499 | { | |
5500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5501 | result = (long)((wxStopWatch const *)arg1)->Time(); | |
5502 | ||
5503 | wxPyEndAllowThreads(__tstate); | |
5504 | if (PyErr_Occurred()) SWIG_fail; | |
5505 | } | |
5506 | resultobj = SWIG_FromLong((long)result); | |
5507 | return resultobj; | |
5508 | fail: | |
5509 | return NULL; | |
5510 | } | |
5511 | ||
5512 | ||
5513 | static PyObject * StopWatch_swigregister(PyObject *self, PyObject *args) { | |
5514 | PyObject *obj; | |
5515 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5516 | SWIG_TypeClientData(SWIGTYPE_p_wxStopWatch, obj); | |
5517 | Py_INCREF(obj); | |
5518 | return Py_BuildValue((char *)""); | |
5519 | } | |
5520 | static PyObject *_wrap_new_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5521 | PyObject *resultobj; | |
5522 | int arg1 = (int) 9 ; | |
5523 | wxFileHistory *result; | |
5524 | PyObject * obj0 = 0 ; | |
5525 | char *kwnames[] = { | |
5526 | (char *) "maxFiles", NULL | |
5527 | }; | |
5528 | ||
5529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_FileHistory",kwnames,&obj0)) goto fail; | |
5530 | if (obj0) { | |
5531 | arg1 = (int) SWIG_AsInt(obj0); | |
5532 | if (PyErr_Occurred()) SWIG_fail; | |
5533 | } | |
5534 | { | |
5535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5536 | result = (wxFileHistory *)new wxFileHistory(arg1); | |
5537 | ||
5538 | wxPyEndAllowThreads(__tstate); | |
5539 | if (PyErr_Occurred()) SWIG_fail; | |
5540 | } | |
5541 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileHistory, 1); | |
5542 | return resultobj; | |
5543 | fail: | |
5544 | return NULL; | |
5545 | } | |
5546 | ||
5547 | ||
5548 | static PyObject *_wrap_delete_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5549 | PyObject *resultobj; | |
5550 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5551 | PyObject * obj0 = 0 ; | |
5552 | char *kwnames[] = { | |
5553 | (char *) "self", NULL | |
5554 | }; | |
5555 | ||
5556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileHistory",kwnames,&obj0)) goto fail; | |
5557 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5558 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5559 | { | |
5560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5561 | delete arg1; | |
5562 | ||
5563 | wxPyEndAllowThreads(__tstate); | |
5564 | if (PyErr_Occurred()) SWIG_fail; | |
5565 | } | |
5566 | Py_INCREF(Py_None); resultobj = Py_None; | |
5567 | return resultobj; | |
5568 | fail: | |
5569 | return NULL; | |
5570 | } | |
5571 | ||
5572 | ||
5573 | static PyObject *_wrap_FileHistory_AddFileToHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5574 | PyObject *resultobj; | |
5575 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5576 | wxString *arg2 = 0 ; | |
5577 | bool temp2 = False ; | |
5578 | PyObject * obj0 = 0 ; | |
5579 | PyObject * obj1 = 0 ; | |
5580 | char *kwnames[] = { | |
5581 | (char *) "self",(char *) "file", NULL | |
5582 | }; | |
5583 | ||
5584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFileToHistory",kwnames,&obj0,&obj1)) goto fail; | |
5585 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5586 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5587 | { | |
5588 | arg2 = wxString_in_helper(obj1); | |
5589 | if (arg2 == NULL) SWIG_fail; | |
5590 | temp2 = True; | |
5591 | } | |
5592 | { | |
5593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5594 | (arg1)->AddFileToHistory((wxString const &)*arg2); | |
5595 | ||
5596 | wxPyEndAllowThreads(__tstate); | |
5597 | if (PyErr_Occurred()) SWIG_fail; | |
5598 | } | |
5599 | Py_INCREF(Py_None); resultobj = Py_None; | |
5600 | { | |
5601 | if (temp2) | |
5602 | delete arg2; | |
5603 | } | |
5604 | return resultobj; | |
5605 | fail: | |
5606 | { | |
5607 | if (temp2) | |
5608 | delete arg2; | |
5609 | } | |
5610 | return NULL; | |
5611 | } | |
5612 | ||
5613 | ||
5614 | static PyObject *_wrap_FileHistory_RemoveFileFromHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5615 | PyObject *resultobj; | |
5616 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5617 | int arg2 ; | |
5618 | PyObject * obj0 = 0 ; | |
5619 | PyObject * obj1 = 0 ; | |
5620 | char *kwnames[] = { | |
5621 | (char *) "self",(char *) "i", NULL | |
5622 | }; | |
5623 | ||
5624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveFileFromHistory",kwnames,&obj0,&obj1)) goto fail; | |
5625 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5627 | arg2 = (int) SWIG_AsInt(obj1); | |
5628 | if (PyErr_Occurred()) SWIG_fail; | |
5629 | { | |
5630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5631 | (arg1)->RemoveFileFromHistory(arg2); | |
5632 | ||
5633 | wxPyEndAllowThreads(__tstate); | |
5634 | if (PyErr_Occurred()) SWIG_fail; | |
5635 | } | |
5636 | Py_INCREF(Py_None); resultobj = Py_None; | |
5637 | return resultobj; | |
5638 | fail: | |
5639 | return NULL; | |
5640 | } | |
5641 | ||
5642 | ||
5643 | static PyObject *_wrap_FileHistory_GetMaxFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5644 | PyObject *resultobj; | |
5645 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5646 | int result; | |
5647 | PyObject * obj0 = 0 ; | |
5648 | char *kwnames[] = { | |
5649 | (char *) "self", NULL | |
5650 | }; | |
5651 | ||
5652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetMaxFiles",kwnames,&obj0)) goto fail; | |
5653 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5654 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5655 | { | |
5656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5657 | result = (int)((wxFileHistory const *)arg1)->GetMaxFiles(); | |
5658 | ||
5659 | wxPyEndAllowThreads(__tstate); | |
5660 | if (PyErr_Occurred()) SWIG_fail; | |
5661 | } | |
5662 | resultobj = SWIG_FromInt((int)result); | |
5663 | return resultobj; | |
5664 | fail: | |
5665 | return NULL; | |
5666 | } | |
5667 | ||
5668 | ||
5669 | static PyObject *_wrap_FileHistory_UseMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5670 | PyObject *resultobj; | |
5671 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5672 | wxMenu *arg2 = (wxMenu *) 0 ; | |
5673 | PyObject * obj0 = 0 ; | |
5674 | PyObject * obj1 = 0 ; | |
5675 | char *kwnames[] = { | |
5676 | (char *) "self",(char *) "menu", NULL | |
5677 | }; | |
5678 | ||
5679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_UseMenu",kwnames,&obj0,&obj1)) goto fail; | |
5680 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5681 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5682 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
5683 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5684 | { | |
5685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5686 | (arg1)->UseMenu(arg2); | |
5687 | ||
5688 | wxPyEndAllowThreads(__tstate); | |
5689 | if (PyErr_Occurred()) SWIG_fail; | |
5690 | } | |
5691 | Py_INCREF(Py_None); resultobj = Py_None; | |
5692 | return resultobj; | |
5693 | fail: | |
5694 | return NULL; | |
5695 | } | |
5696 | ||
5697 | ||
5698 | static PyObject *_wrap_FileHistory_RemoveMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5699 | PyObject *resultobj; | |
5700 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5701 | wxMenu *arg2 = (wxMenu *) 0 ; | |
5702 | PyObject * obj0 = 0 ; | |
5703 | PyObject * obj1 = 0 ; | |
5704 | char *kwnames[] = { | |
5705 | (char *) "self",(char *) "menu", NULL | |
5706 | }; | |
5707 | ||
5708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveMenu",kwnames,&obj0,&obj1)) goto fail; | |
5709 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5710 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5711 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
5712 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5713 | { | |
5714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5715 | (arg1)->RemoveMenu(arg2); | |
5716 | ||
5717 | wxPyEndAllowThreads(__tstate); | |
5718 | if (PyErr_Occurred()) SWIG_fail; | |
5719 | } | |
5720 | Py_INCREF(Py_None); resultobj = Py_None; | |
5721 | return resultobj; | |
5722 | fail: | |
5723 | return NULL; | |
5724 | } | |
5725 | ||
5726 | ||
5727 | static PyObject *_wrap_FileHistory_Load(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5728 | PyObject *resultobj; | |
5729 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5730 | wxConfigBase *arg2 = 0 ; | |
5731 | PyObject * obj0 = 0 ; | |
5732 | PyObject * obj1 = 0 ; | |
5733 | char *kwnames[] = { | |
5734 | (char *) "self",(char *) "config", NULL | |
5735 | }; | |
5736 | ||
5737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Load",kwnames,&obj0,&obj1)) goto fail; | |
5738 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5739 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5740 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase, | |
5741 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5742 | SWIG_fail; | |
5743 | if (arg2 == NULL) { | |
5744 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5745 | SWIG_fail; | |
5746 | } | |
5747 | { | |
5748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5749 | (arg1)->Load(*arg2); | |
5750 | ||
5751 | wxPyEndAllowThreads(__tstate); | |
5752 | if (PyErr_Occurred()) SWIG_fail; | |
5753 | } | |
5754 | Py_INCREF(Py_None); resultobj = Py_None; | |
5755 | return resultobj; | |
5756 | fail: | |
5757 | return NULL; | |
5758 | } | |
5759 | ||
5760 | ||
5761 | static PyObject *_wrap_FileHistory_Save(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5762 | PyObject *resultobj; | |
5763 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5764 | wxConfigBase *arg2 = 0 ; | |
5765 | PyObject * obj0 = 0 ; | |
5766 | PyObject * obj1 = 0 ; | |
5767 | char *kwnames[] = { | |
5768 | (char *) "self",(char *) "config", NULL | |
5769 | }; | |
5770 | ||
5771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Save",kwnames,&obj0,&obj1)) goto fail; | |
5772 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5773 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5774 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase, | |
5775 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5776 | SWIG_fail; | |
5777 | if (arg2 == NULL) { | |
5778 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5779 | SWIG_fail; | |
5780 | } | |
5781 | { | |
5782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5783 | (arg1)->Save(*arg2); | |
5784 | ||
5785 | wxPyEndAllowThreads(__tstate); | |
5786 | if (PyErr_Occurred()) SWIG_fail; | |
5787 | } | |
5788 | Py_INCREF(Py_None); resultobj = Py_None; | |
5789 | return resultobj; | |
5790 | fail: | |
5791 | return NULL; | |
5792 | } | |
5793 | ||
5794 | ||
5795 | static PyObject *_wrap_FileHistory_AddFilesToMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5796 | PyObject *resultobj; | |
5797 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5798 | PyObject * obj0 = 0 ; | |
5799 | char *kwnames[] = { | |
5800 | (char *) "self", NULL | |
5801 | }; | |
5802 | ||
5803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_AddFilesToMenu",kwnames,&obj0)) goto fail; | |
5804 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5805 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5806 | { | |
5807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5808 | (arg1)->AddFilesToMenu(); | |
5809 | ||
5810 | wxPyEndAllowThreads(__tstate); | |
5811 | if (PyErr_Occurred()) SWIG_fail; | |
5812 | } | |
5813 | Py_INCREF(Py_None); resultobj = Py_None; | |
5814 | return resultobj; | |
5815 | fail: | |
5816 | return NULL; | |
5817 | } | |
5818 | ||
5819 | ||
5820 | static PyObject *_wrap_FileHistory_AddFilesToThisMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5821 | PyObject *resultobj; | |
5822 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5823 | wxMenu *arg2 = (wxMenu *) 0 ; | |
5824 | PyObject * obj0 = 0 ; | |
5825 | PyObject * obj1 = 0 ; | |
5826 | char *kwnames[] = { | |
5827 | (char *) "self",(char *) "menu", NULL | |
5828 | }; | |
5829 | ||
5830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFilesToThisMenu",kwnames,&obj0,&obj1)) goto fail; | |
5831 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5832 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5833 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
5834 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5835 | { | |
5836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5837 | (arg1)->AddFilesToMenu(arg2); | |
5838 | ||
5839 | wxPyEndAllowThreads(__tstate); | |
5840 | if (PyErr_Occurred()) SWIG_fail; | |
5841 | } | |
5842 | Py_INCREF(Py_None); resultobj = Py_None; | |
5843 | return resultobj; | |
5844 | fail: | |
5845 | return NULL; | |
5846 | } | |
5847 | ||
5848 | ||
5849 | static PyObject *_wrap_FileHistory_GetHistoryFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5850 | PyObject *resultobj; | |
5851 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5852 | int arg2 ; | |
5853 | wxString result; | |
5854 | PyObject * obj0 = 0 ; | |
5855 | PyObject * obj1 = 0 ; | |
5856 | char *kwnames[] = { | |
5857 | (char *) "self",(char *) "i", NULL | |
5858 | }; | |
5859 | ||
5860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_GetHistoryFile",kwnames,&obj0,&obj1)) goto fail; | |
5861 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5862 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5863 | arg2 = (int) SWIG_AsInt(obj1); | |
5864 | if (PyErr_Occurred()) SWIG_fail; | |
5865 | { | |
5866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5867 | result = ((wxFileHistory const *)arg1)->GetHistoryFile(arg2); | |
5868 | ||
5869 | wxPyEndAllowThreads(__tstate); | |
5870 | if (PyErr_Occurred()) SWIG_fail; | |
5871 | } | |
5872 | { | |
5873 | #if wxUSE_UNICODE | |
5874 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5875 | #else | |
5876 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5877 | #endif | |
5878 | } | |
5879 | return resultobj; | |
5880 | fail: | |
5881 | return NULL; | |
5882 | } | |
5883 | ||
5884 | ||
5885 | static PyObject *_wrap_FileHistory_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5886 | PyObject *resultobj; | |
5887 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5888 | int result; | |
5889 | PyObject * obj0 = 0 ; | |
5890 | char *kwnames[] = { | |
5891 | (char *) "self", NULL | |
5892 | }; | |
5893 | ||
5894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetCount",kwnames,&obj0)) goto fail; | |
5895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5897 | { | |
5898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5899 | result = (int)((wxFileHistory const *)arg1)->GetCount(); | |
5900 | ||
5901 | wxPyEndAllowThreads(__tstate); | |
5902 | if (PyErr_Occurred()) SWIG_fail; | |
5903 | } | |
5904 | resultobj = SWIG_FromInt((int)result); | |
5905 | return resultobj; | |
5906 | fail: | |
5907 | return NULL; | |
5908 | } | |
5909 | ||
5910 | ||
5911 | static PyObject * FileHistory_swigregister(PyObject *self, PyObject *args) { | |
5912 | PyObject *obj; | |
5913 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5914 | SWIG_TypeClientData(SWIGTYPE_p_wxFileHistory, obj); | |
5915 | Py_INCREF(obj); | |
5916 | return Py_BuildValue((char *)""); | |
5917 | } | |
5918 | static PyObject *_wrap_new_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5919 | PyObject *resultobj; | |
5920 | wxString *arg1 = 0 ; | |
5921 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
5922 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
5923 | wxSingleInstanceChecker *result; | |
5924 | bool temp1 = False ; | |
5925 | bool temp2 = False ; | |
5926 | PyObject * obj0 = 0 ; | |
5927 | PyObject * obj1 = 0 ; | |
5928 | char *kwnames[] = { | |
5929 | (char *) "name",(char *) "path", NULL | |
5930 | }; | |
5931 | ||
5932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_SingleInstanceChecker",kwnames,&obj0,&obj1)) goto fail; | |
5933 | { | |
5934 | arg1 = wxString_in_helper(obj0); | |
5935 | if (arg1 == NULL) SWIG_fail; | |
5936 | temp1 = True; | |
5937 | } | |
5938 | if (obj1) { | |
5939 | { | |
5940 | arg2 = wxString_in_helper(obj1); | |
5941 | if (arg2 == NULL) SWIG_fail; | |
5942 | temp2 = True; | |
5943 | } | |
5944 | } | |
5945 | { | |
5946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5947 | result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker((wxString const &)*arg1,(wxString const &)*arg2); | |
5948 | ||
5949 | wxPyEndAllowThreads(__tstate); | |
5950 | if (PyErr_Occurred()) SWIG_fail; | |
5951 | } | |
5952 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1); | |
5953 | { | |
5954 | if (temp1) | |
5955 | delete arg1; | |
5956 | } | |
5957 | { | |
5958 | if (temp2) | |
5959 | delete arg2; | |
5960 | } | |
5961 | return resultobj; | |
5962 | fail: | |
5963 | { | |
5964 | if (temp1) | |
5965 | delete arg1; | |
5966 | } | |
5967 | { | |
5968 | if (temp2) | |
5969 | delete arg2; | |
5970 | } | |
5971 | return NULL; | |
5972 | } | |
5973 | ||
5974 | ||
5975 | static PyObject *_wrap_new_PreSingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5976 | PyObject *resultobj; | |
5977 | wxSingleInstanceChecker *result; | |
5978 | char *kwnames[] = { | |
5979 | NULL | |
5980 | }; | |
5981 | ||
5982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSingleInstanceChecker",kwnames)) goto fail; | |
5983 | { | |
5984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5985 | result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker(); | |
5986 | ||
5987 | wxPyEndAllowThreads(__tstate); | |
5988 | if (PyErr_Occurred()) SWIG_fail; | |
5989 | } | |
5990 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1); | |
5991 | return resultobj; | |
5992 | fail: | |
5993 | return NULL; | |
5994 | } | |
5995 | ||
5996 | ||
5997 | static PyObject *_wrap_delete_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5998 | PyObject *resultobj; | |
5999 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
6000 | PyObject * obj0 = 0 ; | |
6001 | char *kwnames[] = { | |
6002 | (char *) "self", NULL | |
6003 | }; | |
6004 | ||
6005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SingleInstanceChecker",kwnames,&obj0)) goto fail; | |
6006 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker, | |
6007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6008 | { | |
6009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6010 | delete arg1; | |
6011 | ||
6012 | wxPyEndAllowThreads(__tstate); | |
6013 | if (PyErr_Occurred()) SWIG_fail; | |
6014 | } | |
6015 | Py_INCREF(Py_None); resultobj = Py_None; | |
6016 | return resultobj; | |
6017 | fail: | |
6018 | return NULL; | |
6019 | } | |
6020 | ||
6021 | ||
6022 | static PyObject *_wrap_SingleInstanceChecker_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6023 | PyObject *resultobj; | |
6024 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
6025 | wxString *arg2 = 0 ; | |
6026 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
6027 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
6028 | bool result; | |
6029 | bool temp2 = False ; | |
6030 | bool temp3 = False ; | |
6031 | PyObject * obj0 = 0 ; | |
6032 | PyObject * obj1 = 0 ; | |
6033 | PyObject * obj2 = 0 ; | |
6034 | char *kwnames[] = { | |
6035 | (char *) "self",(char *) "name",(char *) "path", NULL | |
6036 | }; | |
6037 | ||
6038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SingleInstanceChecker_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6039 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker, | |
6040 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6041 | { | |
6042 | arg2 = wxString_in_helper(obj1); | |
6043 | if (arg2 == NULL) SWIG_fail; | |
6044 | temp2 = True; | |
6045 | } | |
6046 | if (obj2) { | |
6047 | { | |
6048 | arg3 = wxString_in_helper(obj2); | |
6049 | if (arg3 == NULL) SWIG_fail; | |
6050 | temp3 = True; | |
6051 | } | |
6052 | } | |
6053 | { | |
6054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6055 | result = (bool)(arg1)->Create((wxString const &)*arg2,(wxString const &)*arg3); | |
6056 | ||
6057 | wxPyEndAllowThreads(__tstate); | |
6058 | if (PyErr_Occurred()) SWIG_fail; | |
6059 | } | |
6060 | { | |
6061 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6062 | } | |
6063 | { | |
6064 | if (temp2) | |
6065 | delete arg2; | |
6066 | } | |
6067 | { | |
6068 | if (temp3) | |
6069 | delete arg3; | |
6070 | } | |
6071 | return resultobj; | |
6072 | fail: | |
6073 | { | |
6074 | if (temp2) | |
6075 | delete arg2; | |
6076 | } | |
6077 | { | |
6078 | if (temp3) | |
6079 | delete arg3; | |
6080 | } | |
6081 | return NULL; | |
6082 | } | |
6083 | ||
6084 | ||
6085 | static PyObject *_wrap_SingleInstanceChecker_IsAnotherRunning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6086 | PyObject *resultobj; | |
6087 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
6088 | bool result; | |
6089 | PyObject * obj0 = 0 ; | |
6090 | char *kwnames[] = { | |
6091 | (char *) "self", NULL | |
6092 | }; | |
6093 | ||
6094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleInstanceChecker_IsAnotherRunning",kwnames,&obj0)) goto fail; | |
6095 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker, | |
6096 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6097 | { | |
6098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6099 | result = (bool)((wxSingleInstanceChecker const *)arg1)->IsAnotherRunning(); | |
6100 | ||
6101 | wxPyEndAllowThreads(__tstate); | |
6102 | if (PyErr_Occurred()) SWIG_fail; | |
6103 | } | |
6104 | { | |
6105 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6106 | } | |
6107 | return resultobj; | |
6108 | fail: | |
6109 | return NULL; | |
6110 | } | |
6111 | ||
6112 | ||
6113 | static PyObject * SingleInstanceChecker_swigregister(PyObject *self, PyObject *args) { | |
6114 | PyObject *obj; | |
6115 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6116 | SWIG_TypeClientData(SWIGTYPE_p_wxSingleInstanceChecker, obj); | |
6117 | Py_INCREF(obj); | |
6118 | return Py_BuildValue((char *)""); | |
6119 | } | |
6120 | static PyObject *_wrap_DrawWindowOnDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6121 | PyObject *resultobj; | |
6122 | wxWindow *arg1 = (wxWindow *) 0 ; | |
6123 | wxDC *arg2 = 0 ; | |
6124 | int arg3 ; | |
6125 | PyObject * obj0 = 0 ; | |
6126 | PyObject * obj1 = 0 ; | |
6127 | PyObject * obj2 = 0 ; | |
6128 | char *kwnames[] = { | |
6129 | (char *) "window",(char *) "dc",(char *) "method", NULL | |
6130 | }; | |
6131 | ||
6132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DrawWindowOnDC",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6133 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
6134 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6135 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
6136 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6137 | SWIG_fail; | |
6138 | if (arg2 == NULL) { | |
6139 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6140 | SWIG_fail; | |
6141 | } | |
6142 | arg3 = (int) SWIG_AsInt(obj2); | |
6143 | if (PyErr_Occurred()) SWIG_fail; | |
6144 | { | |
6145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6146 | wxDrawWindowOnDC(arg1,(wxDC const &)*arg2,arg3); | |
6147 | ||
6148 | wxPyEndAllowThreads(__tstate); | |
6149 | if (PyErr_Occurred()) SWIG_fail; | |
6150 | } | |
6151 | Py_INCREF(Py_None); resultobj = Py_None; | |
6152 | return resultobj; | |
6153 | fail: | |
6154 | return NULL; | |
6155 | } | |
6156 | ||
6157 | ||
6158 | static PyObject *_wrap_delete_TipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6159 | PyObject *resultobj; | |
6160 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6161 | PyObject * obj0 = 0 ; | |
6162 | char *kwnames[] = { | |
6163 | (char *) "self", NULL | |
6164 | }; | |
6165 | ||
6166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TipProvider",kwnames,&obj0)) goto fail; | |
6167 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, | |
6168 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6169 | { | |
6170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6171 | delete arg1; | |
6172 | ||
6173 | wxPyEndAllowThreads(__tstate); | |
6174 | if (PyErr_Occurred()) SWIG_fail; | |
6175 | } | |
6176 | Py_INCREF(Py_None); resultobj = Py_None; | |
6177 | return resultobj; | |
6178 | fail: | |
6179 | return NULL; | |
6180 | } | |
6181 | ||
6182 | ||
6183 | static PyObject *_wrap_TipProvider_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6184 | PyObject *resultobj; | |
6185 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6186 | wxString result; | |
6187 | PyObject * obj0 = 0 ; | |
6188 | char *kwnames[] = { | |
6189 | (char *) "self", NULL | |
6190 | }; | |
6191 | ||
6192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetTip",kwnames,&obj0)) goto fail; | |
6193 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, | |
6194 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6195 | { | |
6196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6197 | result = (arg1)->GetTip(); | |
6198 | ||
6199 | wxPyEndAllowThreads(__tstate); | |
6200 | if (PyErr_Occurred()) SWIG_fail; | |
6201 | } | |
6202 | { | |
6203 | #if wxUSE_UNICODE | |
6204 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6205 | #else | |
6206 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6207 | #endif | |
6208 | } | |
6209 | return resultobj; | |
6210 | fail: | |
6211 | return NULL; | |
6212 | } | |
6213 | ||
6214 | ||
6215 | static PyObject *_wrap_TipProvider_GetCurrentTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6216 | PyObject *resultobj; | |
6217 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6218 | size_t result; | |
6219 | PyObject * obj0 = 0 ; | |
6220 | char *kwnames[] = { | |
6221 | (char *) "self", NULL | |
6222 | }; | |
6223 | ||
6224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetCurrentTip",kwnames,&obj0)) goto fail; | |
6225 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, | |
6226 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6227 | { | |
6228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6229 | result = (size_t)(arg1)->GetCurrentTip(); | |
6230 | ||
6231 | wxPyEndAllowThreads(__tstate); | |
6232 | if (PyErr_Occurred()) SWIG_fail; | |
6233 | } | |
6234 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
6235 | return resultobj; | |
6236 | fail: | |
6237 | return NULL; | |
6238 | } | |
6239 | ||
6240 | ||
6241 | static PyObject *_wrap_TipProvider_PreprocessTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6242 | PyObject *resultobj; | |
6243 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6244 | wxString *arg2 = 0 ; | |
6245 | wxString result; | |
6246 | bool temp2 = False ; | |
6247 | PyObject * obj0 = 0 ; | |
6248 | PyObject * obj1 = 0 ; | |
6249 | char *kwnames[] = { | |
6250 | (char *) "self",(char *) "tip", NULL | |
6251 | }; | |
6252 | ||
6253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipProvider_PreprocessTip",kwnames,&obj0,&obj1)) goto fail; | |
6254 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, | |
6255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6256 | { | |
6257 | arg2 = wxString_in_helper(obj1); | |
6258 | if (arg2 == NULL) SWIG_fail; | |
6259 | temp2 = True; | |
6260 | } | |
6261 | { | |
6262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6263 | result = (arg1)->PreprocessTip((wxString const &)*arg2); | |
6264 | ||
6265 | wxPyEndAllowThreads(__tstate); | |
6266 | if (PyErr_Occurred()) SWIG_fail; | |
6267 | } | |
6268 | { | |
6269 | #if wxUSE_UNICODE | |
6270 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6271 | #else | |
6272 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6273 | #endif | |
6274 | } | |
6275 | { | |
6276 | if (temp2) | |
6277 | delete arg2; | |
6278 | } | |
6279 | return resultobj; | |
6280 | fail: | |
6281 | { | |
6282 | if (temp2) | |
6283 | delete arg2; | |
6284 | } | |
6285 | return NULL; | |
6286 | } | |
6287 | ||
6288 | ||
6289 | static PyObject * TipProvider_swigregister(PyObject *self, PyObject *args) { | |
6290 | PyObject *obj; | |
6291 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6292 | SWIG_TypeClientData(SWIGTYPE_p_wxTipProvider, obj); | |
6293 | Py_INCREF(obj); | |
6294 | return Py_BuildValue((char *)""); | |
6295 | } | |
6296 | static PyObject *_wrap_new_PyTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6297 | PyObject *resultobj; | |
6298 | size_t arg1 ; | |
6299 | wxPyTipProvider *result; | |
6300 | PyObject * obj0 = 0 ; | |
6301 | char *kwnames[] = { | |
6302 | (char *) "currentTip", NULL | |
6303 | }; | |
6304 | ||
6305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PyTipProvider",kwnames,&obj0)) goto fail; | |
6306 | arg1 = (size_t) SWIG_AsUnsignedLong(obj0); | |
6307 | if (PyErr_Occurred()) SWIG_fail; | |
6308 | { | |
6309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6310 | result = (wxPyTipProvider *)new wxPyTipProvider(arg1); | |
6311 | ||
6312 | wxPyEndAllowThreads(__tstate); | |
6313 | if (PyErr_Occurred()) SWIG_fail; | |
6314 | } | |
6315 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTipProvider, 1); | |
6316 | return resultobj; | |
6317 | fail: | |
6318 | return NULL; | |
6319 | } | |
6320 | ||
6321 | ||
6322 | static PyObject *_wrap_PyTipProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6323 | PyObject *resultobj; | |
6324 | wxPyTipProvider *arg1 = (wxPyTipProvider *) 0 ; | |
6325 | PyObject *arg2 = (PyObject *) 0 ; | |
6326 | PyObject *arg3 = (PyObject *) 0 ; | |
6327 | PyObject * obj0 = 0 ; | |
6328 | PyObject * obj1 = 0 ; | |
6329 | PyObject * obj2 = 0 ; | |
6330 | char *kwnames[] = { | |
6331 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
6332 | }; | |
6333 | ||
6334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTipProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTipProvider, | |
6336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6337 | arg2 = obj1; | |
6338 | arg3 = obj2; | |
6339 | { | |
6340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6341 | (arg1)->_setCallbackInfo(arg2,arg3); | |
6342 | ||
6343 | wxPyEndAllowThreads(__tstate); | |
6344 | if (PyErr_Occurred()) SWIG_fail; | |
6345 | } | |
6346 | Py_INCREF(Py_None); resultobj = Py_None; | |
6347 | return resultobj; | |
6348 | fail: | |
6349 | return NULL; | |
6350 | } | |
6351 | ||
6352 | ||
6353 | static PyObject * PyTipProvider_swigregister(PyObject *self, PyObject *args) { | |
6354 | PyObject *obj; | |
6355 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6356 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTipProvider, obj); | |
6357 | Py_INCREF(obj); | |
6358 | return Py_BuildValue((char *)""); | |
6359 | } | |
6360 | static PyObject *_wrap_ShowTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6361 | PyObject *resultobj; | |
6362 | wxWindow *arg1 = (wxWindow *) 0 ; | |
6363 | wxTipProvider *arg2 = (wxTipProvider *) 0 ; | |
6364 | bool arg3 = (bool) True ; | |
6365 | bool result; | |
6366 | PyObject * obj0 = 0 ; | |
6367 | PyObject * obj1 = 0 ; | |
6368 | PyObject * obj2 = 0 ; | |
6369 | char *kwnames[] = { | |
6370 | (char *) "parent",(char *) "tipProvider",(char *) "showAtStartup", NULL | |
6371 | }; | |
6372 | ||
6373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ShowTip",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6374 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
6375 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6376 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTipProvider, | |
6377 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6378 | if (obj2) { | |
6379 | arg3 = (bool) SWIG_AsBool(obj2); | |
6380 | if (PyErr_Occurred()) SWIG_fail; | |
6381 | } | |
6382 | { | |
0439c23b | 6383 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6385 | result = (bool)wxShowTip(arg1,arg2,arg3); | |
6386 | ||
6387 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 6388 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6389 | } |
6390 | { | |
6391 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6392 | } | |
6393 | return resultobj; | |
6394 | fail: | |
6395 | return NULL; | |
6396 | } | |
6397 | ||
6398 | ||
6399 | static PyObject *_wrap_CreateFileTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6400 | PyObject *resultobj; | |
6401 | wxString *arg1 = 0 ; | |
6402 | size_t arg2 ; | |
6403 | wxTipProvider *result; | |
6404 | bool temp1 = False ; | |
6405 | PyObject * obj0 = 0 ; | |
6406 | PyObject * obj1 = 0 ; | |
6407 | char *kwnames[] = { | |
6408 | (char *) "filename",(char *) "currentTip", NULL | |
6409 | }; | |
6410 | ||
6411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CreateFileTipProvider",kwnames,&obj0,&obj1)) goto fail; | |
6412 | { | |
6413 | arg1 = wxString_in_helper(obj0); | |
6414 | if (arg1 == NULL) SWIG_fail; | |
6415 | temp1 = True; | |
6416 | } | |
6417 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
6418 | if (PyErr_Occurred()) SWIG_fail; | |
6419 | { | |
0439c23b | 6420 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6422 | result = (wxTipProvider *)wxCreateFileTipProvider((wxString const &)*arg1,arg2); | |
6423 | ||
6424 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 6425 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6426 | } |
6427 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTipProvider, 1); | |
6428 | { | |
6429 | if (temp1) | |
6430 | delete arg1; | |
6431 | } | |
6432 | return resultobj; | |
6433 | fail: | |
6434 | { | |
6435 | if (temp1) | |
6436 | delete arg1; | |
6437 | } | |
6438 | return NULL; | |
6439 | } | |
6440 | ||
6441 | ||
6442 | static PyObject *_wrap_new_Timer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6443 | PyObject *resultobj; | |
6444 | wxEvtHandler *arg1 = (wxEvtHandler *) NULL ; | |
6445 | int arg2 = (int) -1 ; | |
6446 | wxPyTimer *result; | |
6447 | PyObject * obj0 = 0 ; | |
6448 | PyObject * obj1 = 0 ; | |
6449 | char *kwnames[] = { | |
6450 | (char *) "owner",(char *) "id", NULL | |
6451 | }; | |
6452 | ||
6453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Timer",kwnames,&obj0,&obj1)) goto fail; | |
6454 | if (obj0) { | |
6455 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
6456 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6457 | } | |
6458 | if (obj1) { | |
6459 | arg2 = (int) SWIG_AsInt(obj1); | |
6460 | if (PyErr_Occurred()) SWIG_fail; | |
6461 | } | |
6462 | { | |
0439c23b | 6463 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6465 | result = (wxPyTimer *)new wxPyTimer(arg1,arg2); | |
6466 | ||
6467 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 6468 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6469 | } |
6470 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTimer, 1); | |
6471 | return resultobj; | |
6472 | fail: | |
6473 | return NULL; | |
6474 | } | |
6475 | ||
6476 | ||
6477 | static PyObject *_wrap_delete_Timer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6478 | PyObject *resultobj; | |
6479 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6480 | PyObject * obj0 = 0 ; | |
6481 | char *kwnames[] = { | |
6482 | (char *) "self", NULL | |
6483 | }; | |
6484 | ||
6485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Timer",kwnames,&obj0)) goto fail; | |
6486 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6488 | { | |
6489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6490 | delete arg1; | |
6491 | ||
6492 | wxPyEndAllowThreads(__tstate); | |
6493 | if (PyErr_Occurred()) SWIG_fail; | |
6494 | } | |
6495 | Py_INCREF(Py_None); resultobj = Py_None; | |
6496 | return resultobj; | |
6497 | fail: | |
6498 | return NULL; | |
6499 | } | |
6500 | ||
6501 | ||
6502 | static PyObject *_wrap_Timer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6503 | PyObject *resultobj; | |
6504 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6505 | PyObject *arg2 = (PyObject *) 0 ; | |
6506 | PyObject *arg3 = (PyObject *) 0 ; | |
6507 | int arg4 = (int) 1 ; | |
6508 | PyObject * obj0 = 0 ; | |
6509 | PyObject * obj1 = 0 ; | |
6510 | PyObject * obj2 = 0 ; | |
6511 | PyObject * obj3 = 0 ; | |
6512 | char *kwnames[] = { | |
6513 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
6514 | }; | |
6515 | ||
6516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Timer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
6517 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6518 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6519 | arg2 = obj1; | |
6520 | arg3 = obj2; | |
6521 | if (obj3) { | |
6522 | arg4 = (int) SWIG_AsInt(obj3); | |
6523 | if (PyErr_Occurred()) SWIG_fail; | |
6524 | } | |
6525 | { | |
6526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6527 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
6528 | ||
6529 | wxPyEndAllowThreads(__tstate); | |
6530 | if (PyErr_Occurred()) SWIG_fail; | |
6531 | } | |
6532 | Py_INCREF(Py_None); resultobj = Py_None; | |
6533 | return resultobj; | |
6534 | fail: | |
6535 | return NULL; | |
6536 | } | |
6537 | ||
6538 | ||
6539 | static PyObject *_wrap_Timer_SetOwner(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6540 | PyObject *resultobj; | |
6541 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6542 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
6543 | int arg3 = (int) -1 ; | |
6544 | PyObject * obj0 = 0 ; | |
6545 | PyObject * obj1 = 0 ; | |
6546 | PyObject * obj2 = 0 ; | |
6547 | char *kwnames[] = { | |
6548 | (char *) "self",(char *) "owner",(char *) "id", NULL | |
6549 | }; | |
6550 | ||
6551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Timer_SetOwner",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6552 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6554 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
6555 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6556 | if (obj2) { | |
6557 | arg3 = (int) SWIG_AsInt(obj2); | |
6558 | if (PyErr_Occurred()) SWIG_fail; | |
6559 | } | |
6560 | { | |
6561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6562 | (arg1)->SetOwner(arg2,arg3); | |
6563 | ||
6564 | wxPyEndAllowThreads(__tstate); | |
6565 | if (PyErr_Occurred()) SWIG_fail; | |
6566 | } | |
6567 | Py_INCREF(Py_None); resultobj = Py_None; | |
6568 | return resultobj; | |
6569 | fail: | |
6570 | return NULL; | |
6571 | } | |
6572 | ||
6573 | ||
1a6bba1e RD |
6574 | static PyObject *_wrap_Timer_GetOwner(PyObject *self, PyObject *args, PyObject *kwargs) { |
6575 | PyObject *resultobj; | |
6576 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6577 | wxEvtHandler *result; | |
6578 | PyObject * obj0 = 0 ; | |
6579 | char *kwnames[] = { | |
6580 | (char *) "self", NULL | |
6581 | }; | |
6582 | ||
6583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetOwner",kwnames,&obj0)) goto fail; | |
6584 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6585 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6586 | { | |
6587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6588 | result = (wxEvtHandler *)(arg1)->GetOwner(); | |
6589 | ||
6590 | wxPyEndAllowThreads(__tstate); | |
6591 | if (PyErr_Occurred()) SWIG_fail; | |
6592 | } | |
6593 | { | |
6594 | resultobj = wxPyMake_wxObject(result); | |
6595 | } | |
6596 | return resultobj; | |
6597 | fail: | |
6598 | return NULL; | |
6599 | } | |
6600 | ||
6601 | ||
d55e5bfc RD |
6602 | static PyObject *_wrap_Timer_Start(PyObject *self, PyObject *args, PyObject *kwargs) { |
6603 | PyObject *resultobj; | |
6604 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6605 | int arg2 = (int) -1 ; | |
6606 | bool arg3 = (bool) False ; | |
6607 | bool result; | |
6608 | PyObject * obj0 = 0 ; | |
6609 | PyObject * obj1 = 0 ; | |
6610 | PyObject * obj2 = 0 ; | |
6611 | char *kwnames[] = { | |
6612 | (char *) "self",(char *) "milliseconds",(char *) "oneShot", NULL | |
6613 | }; | |
6614 | ||
6615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Timer_Start",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6616 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6618 | if (obj1) { | |
6619 | arg2 = (int) SWIG_AsInt(obj1); | |
6620 | if (PyErr_Occurred()) SWIG_fail; | |
6621 | } | |
6622 | if (obj2) { | |
6623 | arg3 = (bool) SWIG_AsBool(obj2); | |
6624 | if (PyErr_Occurred()) SWIG_fail; | |
6625 | } | |
6626 | { | |
6627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6628 | result = (bool)(arg1)->Start(arg2,arg3); | |
6629 | ||
6630 | wxPyEndAllowThreads(__tstate); | |
6631 | if (PyErr_Occurred()) SWIG_fail; | |
6632 | } | |
6633 | { | |
6634 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6635 | } | |
6636 | return resultobj; | |
6637 | fail: | |
6638 | return NULL; | |
6639 | } | |
6640 | ||
6641 | ||
6642 | static PyObject *_wrap_Timer_Stop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6643 | PyObject *resultobj; | |
6644 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6645 | PyObject * obj0 = 0 ; | |
6646 | char *kwnames[] = { | |
6647 | (char *) "self", NULL | |
6648 | }; | |
6649 | ||
6650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Stop",kwnames,&obj0)) goto fail; | |
6651 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6652 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6653 | { | |
6654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6655 | (arg1)->Stop(); | |
6656 | ||
6657 | wxPyEndAllowThreads(__tstate); | |
6658 | if (PyErr_Occurred()) SWIG_fail; | |
6659 | } | |
6660 | Py_INCREF(Py_None); resultobj = Py_None; | |
6661 | return resultobj; | |
6662 | fail: | |
6663 | return NULL; | |
6664 | } | |
6665 | ||
6666 | ||
6667 | static PyObject *_wrap_Timer_IsRunning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6668 | PyObject *resultobj; | |
6669 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6670 | bool result; | |
6671 | PyObject * obj0 = 0 ; | |
6672 | char *kwnames[] = { | |
6673 | (char *) "self", NULL | |
6674 | }; | |
6675 | ||
6676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsRunning",kwnames,&obj0)) goto fail; | |
6677 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6679 | { | |
6680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6681 | result = (bool)((wxPyTimer const *)arg1)->IsRunning(); | |
6682 | ||
6683 | wxPyEndAllowThreads(__tstate); | |
6684 | if (PyErr_Occurred()) SWIG_fail; | |
6685 | } | |
6686 | { | |
6687 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6688 | } | |
6689 | return resultobj; | |
6690 | fail: | |
6691 | return NULL; | |
6692 | } | |
6693 | ||
6694 | ||
6695 | static PyObject *_wrap_Timer_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6696 | PyObject *resultobj; | |
6697 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6698 | int result; | |
6699 | PyObject * obj0 = 0 ; | |
6700 | char *kwnames[] = { | |
6701 | (char *) "self", NULL | |
6702 | }; | |
6703 | ||
6704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetInterval",kwnames,&obj0)) goto fail; | |
6705 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6706 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6707 | { | |
6708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6709 | result = (int)((wxPyTimer const *)arg1)->GetInterval(); | |
6710 | ||
6711 | wxPyEndAllowThreads(__tstate); | |
6712 | if (PyErr_Occurred()) SWIG_fail; | |
6713 | } | |
6714 | resultobj = SWIG_FromInt((int)result); | |
6715 | return resultobj; | |
6716 | fail: | |
6717 | return NULL; | |
6718 | } | |
6719 | ||
6720 | ||
6721 | static PyObject *_wrap_Timer_IsOneShot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6722 | PyObject *resultobj; | |
6723 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6724 | bool result; | |
6725 | PyObject * obj0 = 0 ; | |
6726 | char *kwnames[] = { | |
6727 | (char *) "self", NULL | |
6728 | }; | |
6729 | ||
6730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsOneShot",kwnames,&obj0)) goto fail; | |
6731 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6732 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6733 | { | |
6734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6735 | result = (bool)((wxPyTimer const *)arg1)->IsOneShot(); | |
6736 | ||
6737 | wxPyEndAllowThreads(__tstate); | |
6738 | if (PyErr_Occurred()) SWIG_fail; | |
6739 | } | |
6740 | { | |
6741 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6742 | } | |
6743 | return resultobj; | |
6744 | fail: | |
6745 | return NULL; | |
6746 | } | |
6747 | ||
6748 | ||
6749 | static PyObject *_wrap_Timer_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6750 | PyObject *resultobj; | |
6751 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6752 | int result; | |
6753 | PyObject * obj0 = 0 ; | |
6754 | char *kwnames[] = { | |
6755 | (char *) "self", NULL | |
6756 | }; | |
6757 | ||
6758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetId",kwnames,&obj0)) goto fail; | |
6759 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6760 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6761 | { | |
6762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6763 | result = (int)((wxPyTimer const *)arg1)->GetId(); | |
6764 | ||
6765 | wxPyEndAllowThreads(__tstate); | |
6766 | if (PyErr_Occurred()) SWIG_fail; | |
6767 | } | |
6768 | resultobj = SWIG_FromInt((int)result); | |
6769 | return resultobj; | |
6770 | fail: | |
6771 | return NULL; | |
6772 | } | |
6773 | ||
6774 | ||
6775 | static PyObject * Timer_swigregister(PyObject *self, PyObject *args) { | |
6776 | PyObject *obj; | |
6777 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6778 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTimer, obj); | |
6779 | Py_INCREF(obj); | |
6780 | return Py_BuildValue((char *)""); | |
6781 | } | |
6782 | static PyObject *_wrap_new_TimerEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6783 | PyObject *resultobj; | |
6784 | int arg1 = (int) 0 ; | |
6785 | int arg2 = (int) 0 ; | |
6786 | wxTimerEvent *result; | |
6787 | PyObject * obj0 = 0 ; | |
6788 | PyObject * obj1 = 0 ; | |
6789 | char *kwnames[] = { | |
6790 | (char *) "timerid",(char *) "interval", NULL | |
6791 | }; | |
6792 | ||
6793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TimerEvent",kwnames,&obj0,&obj1)) goto fail; | |
6794 | if (obj0) { | |
6795 | arg1 = (int) SWIG_AsInt(obj0); | |
6796 | if (PyErr_Occurred()) SWIG_fail; | |
6797 | } | |
6798 | if (obj1) { | |
6799 | arg2 = (int) SWIG_AsInt(obj1); | |
6800 | if (PyErr_Occurred()) SWIG_fail; | |
6801 | } | |
6802 | { | |
6803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6804 | result = (wxTimerEvent *)new wxTimerEvent(arg1,arg2); | |
6805 | ||
6806 | wxPyEndAllowThreads(__tstate); | |
6807 | if (PyErr_Occurred()) SWIG_fail; | |
6808 | } | |
6809 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerEvent, 1); | |
6810 | return resultobj; | |
6811 | fail: | |
6812 | return NULL; | |
6813 | } | |
6814 | ||
6815 | ||
6816 | static PyObject *_wrap_TimerEvent_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6817 | PyObject *resultobj; | |
6818 | wxTimerEvent *arg1 = (wxTimerEvent *) 0 ; | |
6819 | int result; | |
6820 | PyObject * obj0 = 0 ; | |
6821 | char *kwnames[] = { | |
6822 | (char *) "self", NULL | |
6823 | }; | |
6824 | ||
6825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimerEvent_GetInterval",kwnames,&obj0)) goto fail; | |
6826 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerEvent, | |
6827 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6828 | { | |
6829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6830 | result = (int)((wxTimerEvent const *)arg1)->GetInterval(); | |
6831 | ||
6832 | wxPyEndAllowThreads(__tstate); | |
6833 | if (PyErr_Occurred()) SWIG_fail; | |
6834 | } | |
6835 | resultobj = SWIG_FromInt((int)result); | |
6836 | return resultobj; | |
6837 | fail: | |
6838 | return NULL; | |
6839 | } | |
6840 | ||
6841 | ||
6842 | static PyObject * TimerEvent_swigregister(PyObject *self, PyObject *args) { | |
6843 | PyObject *obj; | |
6844 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6845 | SWIG_TypeClientData(SWIGTYPE_p_wxTimerEvent, obj); | |
6846 | Py_INCREF(obj); | |
6847 | return Py_BuildValue((char *)""); | |
6848 | } | |
6849 | static PyObject *_wrap_new_TimerRunner__SWIG_0(PyObject *self, PyObject *args) { | |
6850 | PyObject *resultobj; | |
6851 | wxTimer *arg1 = 0 ; | |
6852 | wxTimerRunner *result; | |
6853 | PyObject * obj0 = 0 ; | |
6854 | ||
6855 | if(!PyArg_ParseTuple(args,(char *)"O:new_TimerRunner",&obj0)) goto fail; | |
6856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer, | |
6857 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6858 | SWIG_fail; | |
6859 | if (arg1 == NULL) { | |
6860 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6861 | SWIG_fail; | |
6862 | } | |
6863 | { | |
0439c23b | 6864 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6866 | result = (wxTimerRunner *)new wxTimerRunner(*arg1); | |
6867 | ||
6868 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 6869 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6870 | } |
6871 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1); | |
6872 | return resultobj; | |
6873 | fail: | |
6874 | return NULL; | |
6875 | } | |
6876 | ||
6877 | ||
6878 | static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *self, PyObject *args) { | |
6879 | PyObject *resultobj; | |
6880 | wxTimer *arg1 = 0 ; | |
6881 | int arg2 ; | |
6882 | bool arg3 = (bool) False ; | |
6883 | wxTimerRunner *result; | |
6884 | PyObject * obj0 = 0 ; | |
6885 | PyObject * obj1 = 0 ; | |
6886 | PyObject * obj2 = 0 ; | |
6887 | ||
6888 | if(!PyArg_ParseTuple(args,(char *)"OO|O:new_TimerRunner",&obj0,&obj1,&obj2)) goto fail; | |
6889 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer, | |
6890 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6891 | SWIG_fail; | |
6892 | if (arg1 == NULL) { | |
6893 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6894 | SWIG_fail; | |
6895 | } | |
6896 | arg2 = (int) SWIG_AsInt(obj1); | |
6897 | if (PyErr_Occurred()) SWIG_fail; | |
6898 | if (obj2) { | |
6899 | arg3 = (bool) SWIG_AsBool(obj2); | |
6900 | if (PyErr_Occurred()) SWIG_fail; | |
6901 | } | |
6902 | { | |
0439c23b | 6903 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6905 | result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2,arg3); | |
6906 | ||
6907 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 6908 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6909 | } |
6910 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1); | |
6911 | return resultobj; | |
6912 | fail: | |
6913 | return NULL; | |
6914 | } | |
6915 | ||
6916 | ||
6917 | static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) { | |
6918 | int argc; | |
6919 | PyObject *argv[4]; | |
6920 | int ii; | |
6921 | ||
6922 | argc = PyObject_Length(args); | |
6923 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
6924 | argv[ii] = PyTuple_GetItem(args,ii); | |
6925 | } | |
6926 | if (argc == 1) { | |
6927 | int _v; | |
6928 | { | |
6929 | void *ptr; | |
6930 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) { | |
6931 | _v = 0; | |
6932 | PyErr_Clear(); | |
6933 | } else { | |
6934 | _v = 1; | |
6935 | } | |
6936 | } | |
6937 | if (_v) { | |
6938 | return _wrap_new_TimerRunner__SWIG_0(self,args); | |
6939 | } | |
6940 | } | |
6941 | if ((argc >= 2) && (argc <= 3)) { | |
6942 | int _v; | |
6943 | { | |
6944 | void *ptr; | |
6945 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) { | |
6946 | _v = 0; | |
6947 | PyErr_Clear(); | |
6948 | } else { | |
6949 | _v = 1; | |
6950 | } | |
6951 | } | |
6952 | if (_v) { | |
6953 | _v = SWIG_CheckInt(argv[1]); | |
6954 | if (_v) { | |
6955 | if (argc <= 2) { | |
6956 | return _wrap_new_TimerRunner__SWIG_1(self,args); | |
6957 | } | |
6958 | _v = SWIG_CheckBool(argv[2]); | |
6959 | if (_v) { | |
6960 | return _wrap_new_TimerRunner__SWIG_1(self,args); | |
6961 | } | |
6962 | } | |
6963 | } | |
6964 | } | |
6965 | ||
6966 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TimerRunner'"); | |
6967 | return NULL; | |
6968 | } | |
6969 | ||
6970 | ||
6971 | static PyObject *_wrap_delete_TimerRunner(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6972 | PyObject *resultobj; | |
6973 | wxTimerRunner *arg1 = (wxTimerRunner *) 0 ; | |
6974 | PyObject * obj0 = 0 ; | |
6975 | char *kwnames[] = { | |
6976 | (char *) "self", NULL | |
6977 | }; | |
6978 | ||
6979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimerRunner",kwnames,&obj0)) goto fail; | |
6980 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner, | |
6981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6982 | { | |
6983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6984 | delete arg1; | |
6985 | ||
6986 | wxPyEndAllowThreads(__tstate); | |
6987 | if (PyErr_Occurred()) SWIG_fail; | |
6988 | } | |
6989 | Py_INCREF(Py_None); resultobj = Py_None; | |
6990 | return resultobj; | |
6991 | fail: | |
6992 | return NULL; | |
6993 | } | |
6994 | ||
6995 | ||
6996 | static PyObject *_wrap_TimerRunner_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6997 | PyObject *resultobj; | |
6998 | wxTimerRunner *arg1 = (wxTimerRunner *) 0 ; | |
6999 | int arg2 ; | |
7000 | bool arg3 = (bool) False ; | |
7001 | PyObject * obj0 = 0 ; | |
7002 | PyObject * obj1 = 0 ; | |
7003 | PyObject * obj2 = 0 ; | |
7004 | char *kwnames[] = { | |
7005 | (char *) "self",(char *) "milli",(char *) "oneShot", NULL | |
7006 | }; | |
7007 | ||
7008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TimerRunner_Start",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7009 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner, | |
7010 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7011 | arg2 = (int) SWIG_AsInt(obj1); | |
7012 | if (PyErr_Occurred()) SWIG_fail; | |
7013 | if (obj2) { | |
7014 | arg3 = (bool) SWIG_AsBool(obj2); | |
7015 | if (PyErr_Occurred()) SWIG_fail; | |
7016 | } | |
7017 | { | |
7018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7019 | (arg1)->Start(arg2,arg3); | |
7020 | ||
7021 | wxPyEndAllowThreads(__tstate); | |
7022 | if (PyErr_Occurred()) SWIG_fail; | |
7023 | } | |
7024 | Py_INCREF(Py_None); resultobj = Py_None; | |
7025 | return resultobj; | |
7026 | fail: | |
7027 | return NULL; | |
7028 | } | |
7029 | ||
7030 | ||
7031 | static PyObject * TimerRunner_swigregister(PyObject *self, PyObject *args) { | |
7032 | PyObject *obj; | |
7033 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7034 | SWIG_TypeClientData(SWIGTYPE_p_wxTimerRunner, obj); | |
7035 | Py_INCREF(obj); | |
7036 | return Py_BuildValue((char *)""); | |
7037 | } | |
7038 | static PyObject *_wrap_new_Log(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7039 | PyObject *resultobj; | |
7040 | wxLog *result; | |
7041 | char *kwnames[] = { | |
7042 | NULL | |
7043 | }; | |
7044 | ||
7045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Log",kwnames)) goto fail; | |
7046 | { | |
7047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7048 | result = (wxLog *)new wxLog(); | |
7049 | ||
7050 | wxPyEndAllowThreads(__tstate); | |
7051 | if (PyErr_Occurred()) SWIG_fail; | |
7052 | } | |
7053 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 1); | |
7054 | return resultobj; | |
7055 | fail: | |
7056 | return NULL; | |
7057 | } | |
7058 | ||
7059 | ||
7060 | static PyObject *_wrap_Log_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7061 | PyObject *resultobj; | |
7062 | bool result; | |
7063 | char *kwnames[] = { | |
7064 | NULL | |
7065 | }; | |
7066 | ||
7067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_IsEnabled",kwnames)) goto fail; | |
7068 | { | |
7069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7070 | result = (bool)wxLog::IsEnabled(); | |
7071 | ||
7072 | wxPyEndAllowThreads(__tstate); | |
7073 | if (PyErr_Occurred()) SWIG_fail; | |
7074 | } | |
7075 | { | |
7076 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7077 | } | |
7078 | return resultobj; | |
7079 | fail: | |
7080 | return NULL; | |
7081 | } | |
7082 | ||
7083 | ||
7084 | static PyObject *_wrap_Log_EnableLogging(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7085 | PyObject *resultobj; | |
7086 | bool arg1 = (bool) True ; | |
7087 | bool result; | |
7088 | PyObject * obj0 = 0 ; | |
7089 | char *kwnames[] = { | |
7090 | (char *) "doIt", NULL | |
7091 | }; | |
7092 | ||
7093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_EnableLogging",kwnames,&obj0)) goto fail; | |
7094 | if (obj0) { | |
7095 | arg1 = (bool) SWIG_AsBool(obj0); | |
7096 | if (PyErr_Occurred()) SWIG_fail; | |
7097 | } | |
7098 | { | |
7099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7100 | result = (bool)wxLog::EnableLogging(arg1); | |
7101 | ||
7102 | wxPyEndAllowThreads(__tstate); | |
7103 | if (PyErr_Occurred()) SWIG_fail; | |
7104 | } | |
7105 | { | |
7106 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7107 | } | |
7108 | return resultobj; | |
7109 | fail: | |
7110 | return NULL; | |
7111 | } | |
7112 | ||
7113 | ||
7114 | static PyObject *_wrap_Log_OnLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7115 | PyObject *resultobj; | |
7116 | wxLogLevel arg1 ; | |
7117 | wxChar *arg2 = (wxChar *) 0 ; | |
7118 | time_t arg3 ; | |
7119 | PyObject * obj0 = 0 ; | |
7120 | PyObject * obj1 = 0 ; | |
7121 | PyObject * obj2 = 0 ; | |
7122 | char *kwnames[] = { | |
7123 | (char *) "level",(char *) "szString",(char *) "t", NULL | |
7124 | }; | |
7125 | ||
7126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Log_OnLog",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7127 | arg1 = (wxLogLevel) SWIG_AsUnsignedLong(obj0); | |
7128 | if (PyErr_Occurred()) SWIG_fail; | |
7129 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxChar, | |
7130 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7131 | arg3 = (time_t) SWIG_AsUnsignedInt(obj2); | |
7132 | if (PyErr_Occurred()) SWIG_fail; | |
7133 | { | |
7134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7135 | wxLog::OnLog(arg1,(wxChar const *)arg2,arg3); | |
7136 | ||
7137 | wxPyEndAllowThreads(__tstate); | |
7138 | if (PyErr_Occurred()) SWIG_fail; | |
7139 | } | |
7140 | Py_INCREF(Py_None); resultobj = Py_None; | |
7141 | return resultobj; | |
7142 | fail: | |
7143 | return NULL; | |
7144 | } | |
7145 | ||
7146 | ||
7147 | static PyObject *_wrap_Log_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7148 | PyObject *resultobj; | |
7149 | wxLog *arg1 = (wxLog *) 0 ; | |
7150 | PyObject * obj0 = 0 ; | |
7151 | char *kwnames[] = { | |
7152 | (char *) "self", NULL | |
7153 | }; | |
7154 | ||
7155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Flush",kwnames,&obj0)) goto fail; | |
7156 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, | |
7157 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7158 | { | |
7159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7160 | (arg1)->Flush(); | |
7161 | ||
7162 | wxPyEndAllowThreads(__tstate); | |
7163 | if (PyErr_Occurred()) SWIG_fail; | |
7164 | } | |
7165 | Py_INCREF(Py_None); resultobj = Py_None; | |
7166 | return resultobj; | |
7167 | fail: | |
7168 | return NULL; | |
7169 | } | |
7170 | ||
7171 | ||
7172 | static PyObject *_wrap_Log_FlushActive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7173 | PyObject *resultobj; | |
7174 | char *kwnames[] = { | |
7175 | NULL | |
7176 | }; | |
7177 | ||
7178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_FlushActive",kwnames)) goto fail; | |
7179 | { | |
7180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7181 | wxLog::FlushActive(); | |
7182 | ||
7183 | wxPyEndAllowThreads(__tstate); | |
7184 | if (PyErr_Occurred()) SWIG_fail; | |
7185 | } | |
7186 | Py_INCREF(Py_None); resultobj = Py_None; | |
7187 | return resultobj; | |
7188 | fail: | |
7189 | return NULL; | |
7190 | } | |
7191 | ||
7192 | ||
7193 | static PyObject *_wrap_Log_GetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7194 | PyObject *resultobj; | |
7195 | wxLog *result; | |
7196 | char *kwnames[] = { | |
7197 | NULL | |
7198 | }; | |
7199 | ||
7200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetActiveTarget",kwnames)) goto fail; | |
7201 | { | |
7202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7203 | result = (wxLog *)wxLog::GetActiveTarget(); | |
7204 | ||
7205 | wxPyEndAllowThreads(__tstate); | |
7206 | if (PyErr_Occurred()) SWIG_fail; | |
7207 | } | |
7208 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); | |
7209 | return resultobj; | |
7210 | fail: | |
7211 | return NULL; | |
7212 | } | |
7213 | ||
7214 | ||
7215 | static PyObject *_wrap_Log_SetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7216 | PyObject *resultobj; | |
7217 | wxLog *arg1 = (wxLog *) 0 ; | |
7218 | wxLog *result; | |
7219 | PyObject * obj0 = 0 ; | |
7220 | char *kwnames[] = { | |
7221 | (char *) "pLogger", NULL | |
7222 | }; | |
7223 | ||
7224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) goto fail; | |
7225 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, | |
7226 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7227 | { | |
7228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7229 | result = (wxLog *)wxLog::SetActiveTarget(arg1); | |
7230 | ||
7231 | wxPyEndAllowThreads(__tstate); | |
7232 | if (PyErr_Occurred()) SWIG_fail; | |
7233 | } | |
7234 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); | |
7235 | return resultobj; | |
7236 | fail: | |
7237 | return NULL; | |
7238 | } | |
7239 | ||
7240 | ||
7241 | static PyObject *_wrap_Log_Suspend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7242 | PyObject *resultobj; | |
7243 | char *kwnames[] = { | |
7244 | NULL | |
7245 | }; | |
7246 | ||
7247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Suspend",kwnames)) goto fail; | |
7248 | { | |
7249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7250 | wxLog::Suspend(); | |
7251 | ||
7252 | wxPyEndAllowThreads(__tstate); | |
7253 | if (PyErr_Occurred()) SWIG_fail; | |
7254 | } | |
7255 | Py_INCREF(Py_None); resultobj = Py_None; | |
7256 | return resultobj; | |
7257 | fail: | |
7258 | return NULL; | |
7259 | } | |
7260 | ||
7261 | ||
7262 | static PyObject *_wrap_Log_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7263 | PyObject *resultobj; | |
7264 | char *kwnames[] = { | |
7265 | NULL | |
7266 | }; | |
7267 | ||
7268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Resume",kwnames)) goto fail; | |
7269 | { | |
7270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7271 | wxLog::Resume(); | |
7272 | ||
7273 | wxPyEndAllowThreads(__tstate); | |
7274 | if (PyErr_Occurred()) SWIG_fail; | |
7275 | } | |
7276 | Py_INCREF(Py_None); resultobj = Py_None; | |
7277 | return resultobj; | |
7278 | fail: | |
7279 | return NULL; | |
7280 | } | |
7281 | ||
7282 | ||
7283 | static PyObject *_wrap_Log_SetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7284 | PyObject *resultobj; | |
7285 | bool arg1 = (bool) True ; | |
7286 | PyObject * obj0 = 0 ; | |
7287 | char *kwnames[] = { | |
7288 | (char *) "bVerbose", NULL | |
7289 | }; | |
7290 | ||
7291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetVerbose",kwnames,&obj0)) goto fail; | |
7292 | if (obj0) { | |
7293 | arg1 = (bool) SWIG_AsBool(obj0); | |
7294 | if (PyErr_Occurred()) SWIG_fail; | |
7295 | } | |
7296 | { | |
7297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7298 | wxLog::SetVerbose(arg1); | |
7299 | ||
7300 | wxPyEndAllowThreads(__tstate); | |
7301 | if (PyErr_Occurred()) SWIG_fail; | |
7302 | } | |
7303 | Py_INCREF(Py_None); resultobj = Py_None; | |
7304 | return resultobj; | |
7305 | fail: | |
7306 | return NULL; | |
7307 | } | |
7308 | ||
7309 | ||
7310 | static PyObject *_wrap_Log_SetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7311 | PyObject *resultobj; | |
7312 | wxLogLevel arg1 ; | |
7313 | PyObject * obj0 = 0 ; | |
7314 | char *kwnames[] = { | |
7315 | (char *) "logLevel", NULL | |
7316 | }; | |
7317 | ||
7318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetLogLevel",kwnames,&obj0)) goto fail; | |
7319 | arg1 = (wxLogLevel) SWIG_AsUnsignedLong(obj0); | |
7320 | if (PyErr_Occurred()) SWIG_fail; | |
7321 | { | |
7322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7323 | wxLog::SetLogLevel(arg1); | |
7324 | ||
7325 | wxPyEndAllowThreads(__tstate); | |
7326 | if (PyErr_Occurred()) SWIG_fail; | |
7327 | } | |
7328 | Py_INCREF(Py_None); resultobj = Py_None; | |
7329 | return resultobj; | |
7330 | fail: | |
7331 | return NULL; | |
7332 | } | |
7333 | ||
7334 | ||
7335 | static PyObject *_wrap_Log_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7336 | PyObject *resultobj; | |
7337 | char *kwnames[] = { | |
7338 | NULL | |
7339 | }; | |
7340 | ||
7341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_DontCreateOnDemand",kwnames)) goto fail; | |
7342 | { | |
7343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7344 | wxLog::DontCreateOnDemand(); | |
7345 | ||
7346 | wxPyEndAllowThreads(__tstate); | |
7347 | if (PyErr_Occurred()) SWIG_fail; | |
7348 | } | |
7349 | Py_INCREF(Py_None); resultobj = Py_None; | |
7350 | return resultobj; | |
7351 | fail: | |
7352 | return NULL; | |
7353 | } | |
7354 | ||
7355 | ||
7356 | static PyObject *_wrap_Log_SetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7357 | PyObject *resultobj; | |
7358 | wxTraceMask arg1 ; | |
7359 | PyObject * obj0 = 0 ; | |
7360 | char *kwnames[] = { | |
7361 | (char *) "ulMask", NULL | |
7362 | }; | |
7363 | ||
7364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTraceMask",kwnames,&obj0)) goto fail; | |
7365 | arg1 = (wxTraceMask) SWIG_AsUnsignedLong(obj0); | |
7366 | if (PyErr_Occurred()) SWIG_fail; | |
7367 | { | |
7368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7369 | wxLog::SetTraceMask(arg1); | |
7370 | ||
7371 | wxPyEndAllowThreads(__tstate); | |
7372 | if (PyErr_Occurred()) SWIG_fail; | |
7373 | } | |
7374 | Py_INCREF(Py_None); resultobj = Py_None; | |
7375 | return resultobj; | |
7376 | fail: | |
7377 | return NULL; | |
7378 | } | |
7379 | ||
7380 | ||
7381 | static PyObject *_wrap_Log_AddTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7382 | PyObject *resultobj; | |
7383 | wxString *arg1 = 0 ; | |
7384 | bool temp1 = False ; | |
7385 | PyObject * obj0 = 0 ; | |
7386 | char *kwnames[] = { | |
7387 | (char *) "str", NULL | |
7388 | }; | |
7389 | ||
7390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_AddTraceMask",kwnames,&obj0)) goto fail; | |
7391 | { | |
7392 | arg1 = wxString_in_helper(obj0); | |
7393 | if (arg1 == NULL) SWIG_fail; | |
7394 | temp1 = True; | |
7395 | } | |
7396 | { | |
7397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7398 | wxLog::AddTraceMask((wxString const &)*arg1); | |
7399 | ||
7400 | wxPyEndAllowThreads(__tstate); | |
7401 | if (PyErr_Occurred()) SWIG_fail; | |
7402 | } | |
7403 | Py_INCREF(Py_None); resultobj = Py_None; | |
7404 | { | |
7405 | if (temp1) | |
7406 | delete arg1; | |
7407 | } | |
7408 | return resultobj; | |
7409 | fail: | |
7410 | { | |
7411 | if (temp1) | |
7412 | delete arg1; | |
7413 | } | |
7414 | return NULL; | |
7415 | } | |
7416 | ||
7417 | ||
7418 | static PyObject *_wrap_Log_RemoveTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7419 | PyObject *resultobj; | |
7420 | wxString *arg1 = 0 ; | |
7421 | bool temp1 = False ; | |
7422 | PyObject * obj0 = 0 ; | |
7423 | char *kwnames[] = { | |
7424 | (char *) "str", NULL | |
7425 | }; | |
7426 | ||
7427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_RemoveTraceMask",kwnames,&obj0)) goto fail; | |
7428 | { | |
7429 | arg1 = wxString_in_helper(obj0); | |
7430 | if (arg1 == NULL) SWIG_fail; | |
7431 | temp1 = True; | |
7432 | } | |
7433 | { | |
7434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7435 | wxLog::RemoveTraceMask((wxString const &)*arg1); | |
7436 | ||
7437 | wxPyEndAllowThreads(__tstate); | |
7438 | if (PyErr_Occurred()) SWIG_fail; | |
7439 | } | |
7440 | Py_INCREF(Py_None); resultobj = Py_None; | |
7441 | { | |
7442 | if (temp1) | |
7443 | delete arg1; | |
7444 | } | |
7445 | return resultobj; | |
7446 | fail: | |
7447 | { | |
7448 | if (temp1) | |
7449 | delete arg1; | |
7450 | } | |
7451 | return NULL; | |
7452 | } | |
7453 | ||
7454 | ||
7455 | static PyObject *_wrap_Log_ClearTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7456 | PyObject *resultobj; | |
7457 | char *kwnames[] = { | |
7458 | NULL | |
7459 | }; | |
7460 | ||
7461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_ClearTraceMasks",kwnames)) goto fail; | |
7462 | { | |
7463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7464 | wxLog::ClearTraceMasks(); | |
7465 | ||
7466 | wxPyEndAllowThreads(__tstate); | |
7467 | if (PyErr_Occurred()) SWIG_fail; | |
7468 | } | |
7469 | Py_INCREF(Py_None); resultobj = Py_None; | |
7470 | return resultobj; | |
7471 | fail: | |
7472 | return NULL; | |
7473 | } | |
7474 | ||
7475 | ||
7476 | static PyObject *_wrap_Log_GetTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7477 | PyObject *resultobj; | |
7478 | wxArrayString *result; | |
7479 | char *kwnames[] = { | |
7480 | NULL | |
7481 | }; | |
7482 | ||
7483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMasks",kwnames)) goto fail; | |
7484 | { | |
7485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7486 | { | |
7487 | wxArrayString const &_result_ref = wxLog::GetTraceMasks(); | |
7488 | result = (wxArrayString *) &_result_ref; | |
7489 | } | |
7490 | ||
7491 | wxPyEndAllowThreads(__tstate); | |
7492 | if (PyErr_Occurred()) SWIG_fail; | |
7493 | } | |
7494 | { | |
7495 | resultobj = wxArrayString2PyList_helper(*result); | |
7496 | } | |
7497 | return resultobj; | |
7498 | fail: | |
7499 | return NULL; | |
7500 | } | |
7501 | ||
7502 | ||
7503 | static PyObject *_wrap_Log_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7504 | PyObject *resultobj; | |
7505 | wxChar *arg1 = (wxChar *) 0 ; | |
7506 | PyObject * obj0 = 0 ; | |
7507 | char *kwnames[] = { | |
7508 | (char *) "ts", NULL | |
7509 | }; | |
7510 | ||
7511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTimestamp",kwnames,&obj0)) goto fail; | |
7512 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar, | |
7513 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7514 | { | |
7515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7516 | wxLog::SetTimestamp((wxChar const *)arg1); | |
7517 | ||
7518 | wxPyEndAllowThreads(__tstate); | |
7519 | if (PyErr_Occurred()) SWIG_fail; | |
7520 | } | |
7521 | Py_INCREF(Py_None); resultobj = Py_None; | |
7522 | return resultobj; | |
7523 | fail: | |
7524 | return NULL; | |
7525 | } | |
7526 | ||
7527 | ||
7528 | static PyObject *_wrap_Log_GetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7529 | PyObject *resultobj; | |
7530 | bool result; | |
7531 | char *kwnames[] = { | |
7532 | NULL | |
7533 | }; | |
7534 | ||
7535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetVerbose",kwnames)) goto fail; | |
7536 | { | |
7537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7538 | result = (bool)wxLog::GetVerbose(); | |
7539 | ||
7540 | wxPyEndAllowThreads(__tstate); | |
7541 | if (PyErr_Occurred()) SWIG_fail; | |
7542 | } | |
7543 | { | |
7544 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7545 | } | |
7546 | return resultobj; | |
7547 | fail: | |
7548 | return NULL; | |
7549 | } | |
7550 | ||
7551 | ||
7552 | static PyObject *_wrap_Log_GetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7553 | PyObject *resultobj; | |
7554 | wxTraceMask result; | |
7555 | char *kwnames[] = { | |
7556 | NULL | |
7557 | }; | |
7558 | ||
7559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMask",kwnames)) goto fail; | |
7560 | { | |
7561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7562 | result = (wxTraceMask)wxLog::GetTraceMask(); | |
7563 | ||
7564 | wxPyEndAllowThreads(__tstate); | |
7565 | if (PyErr_Occurred()) SWIG_fail; | |
7566 | } | |
7567 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
7568 | return resultobj; | |
7569 | fail: | |
7570 | return NULL; | |
7571 | } | |
7572 | ||
7573 | ||
7574 | static PyObject *_wrap_Log_IsAllowedTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7575 | PyObject *resultobj; | |
7576 | wxChar *arg1 = (wxChar *) 0 ; | |
7577 | bool result; | |
7578 | PyObject * obj0 = 0 ; | |
7579 | char *kwnames[] = { | |
7580 | (char *) "mask", NULL | |
7581 | }; | |
7582 | ||
7583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_IsAllowedTraceMask",kwnames,&obj0)) goto fail; | |
7584 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar, | |
7585 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7586 | { | |
7587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7588 | result = (bool)wxLog::IsAllowedTraceMask((wxChar const *)arg1); | |
7589 | ||
7590 | wxPyEndAllowThreads(__tstate); | |
7591 | if (PyErr_Occurred()) SWIG_fail; | |
7592 | } | |
7593 | { | |
7594 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7595 | } | |
7596 | return resultobj; | |
7597 | fail: | |
7598 | return NULL; | |
7599 | } | |
7600 | ||
7601 | ||
7602 | static PyObject *_wrap_Log_GetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7603 | PyObject *resultobj; | |
7604 | wxLogLevel result; | |
7605 | char *kwnames[] = { | |
7606 | NULL | |
7607 | }; | |
7608 | ||
7609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetLogLevel",kwnames)) goto fail; | |
7610 | { | |
7611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7612 | result = (wxLogLevel)wxLog::GetLogLevel(); | |
7613 | ||
7614 | wxPyEndAllowThreads(__tstate); | |
7615 | if (PyErr_Occurred()) SWIG_fail; | |
7616 | } | |
7617 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
7618 | return resultobj; | |
7619 | fail: | |
7620 | return NULL; | |
7621 | } | |
7622 | ||
7623 | ||
7624 | static PyObject *_wrap_Log_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7625 | PyObject *resultobj; | |
7626 | wxChar *result; | |
7627 | char *kwnames[] = { | |
7628 | NULL | |
7629 | }; | |
7630 | ||
7631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTimestamp",kwnames)) goto fail; | |
7632 | { | |
7633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7634 | result = (wxChar *)wxLog::GetTimestamp(); | |
7635 | ||
7636 | wxPyEndAllowThreads(__tstate); | |
7637 | if (PyErr_Occurred()) SWIG_fail; | |
7638 | } | |
7639 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChar, 0); | |
7640 | return resultobj; | |
7641 | fail: | |
7642 | return NULL; | |
7643 | } | |
7644 | ||
7645 | ||
7646 | static PyObject *_wrap_Log_TimeStamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7647 | PyObject *resultobj; | |
7648 | wxString result; | |
7649 | char *kwnames[] = { | |
7650 | NULL | |
7651 | }; | |
7652 | ||
7653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_TimeStamp",kwnames)) goto fail; | |
7654 | { | |
7655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7656 | result = Log_TimeStamp(); | |
7657 | ||
7658 | wxPyEndAllowThreads(__tstate); | |
7659 | if (PyErr_Occurred()) SWIG_fail; | |
7660 | } | |
7661 | { | |
7662 | #if wxUSE_UNICODE | |
7663 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7664 | #else | |
7665 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7666 | #endif | |
7667 | } | |
7668 | return resultobj; | |
7669 | fail: | |
7670 | return NULL; | |
7671 | } | |
7672 | ||
7673 | ||
7674 | static PyObject *_wrap_Log_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7675 | PyObject *resultobj; | |
7676 | wxLog *arg1 = (wxLog *) 0 ; | |
7677 | PyObject * obj0 = 0 ; | |
7678 | char *kwnames[] = { | |
7679 | (char *) "self", NULL | |
7680 | }; | |
7681 | ||
7682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Destroy",kwnames,&obj0)) goto fail; | |
7683 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, | |
7684 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7685 | { | |
7686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7687 | wxLog_Destroy(arg1); | |
7688 | ||
7689 | wxPyEndAllowThreads(__tstate); | |
7690 | if (PyErr_Occurred()) SWIG_fail; | |
7691 | } | |
7692 | Py_INCREF(Py_None); resultobj = Py_None; | |
7693 | return resultobj; | |
7694 | fail: | |
7695 | return NULL; | |
7696 | } | |
7697 | ||
7698 | ||
7699 | static PyObject * Log_swigregister(PyObject *self, PyObject *args) { | |
7700 | PyObject *obj; | |
7701 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7702 | SWIG_TypeClientData(SWIGTYPE_p_wxLog, obj); | |
7703 | Py_INCREF(obj); | |
7704 | return Py_BuildValue((char *)""); | |
7705 | } | |
7706 | static PyObject *_wrap_new_LogStderr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7707 | PyObject *resultobj; | |
7708 | wxLogStderr *result; | |
7709 | char *kwnames[] = { | |
7710 | NULL | |
7711 | }; | |
7712 | ||
7713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogStderr",kwnames)) goto fail; | |
7714 | { | |
7715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7716 | result = (wxLogStderr *)new wxLogStderr(); | |
7717 | ||
7718 | wxPyEndAllowThreads(__tstate); | |
7719 | if (PyErr_Occurred()) SWIG_fail; | |
7720 | } | |
7721 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogStderr, 1); | |
7722 | return resultobj; | |
7723 | fail: | |
7724 | return NULL; | |
7725 | } | |
7726 | ||
7727 | ||
7728 | static PyObject * LogStderr_swigregister(PyObject *self, PyObject *args) { | |
7729 | PyObject *obj; | |
7730 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7731 | SWIG_TypeClientData(SWIGTYPE_p_wxLogStderr, obj); | |
7732 | Py_INCREF(obj); | |
7733 | return Py_BuildValue((char *)""); | |
7734 | } | |
7735 | static PyObject *_wrap_new_LogTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7736 | PyObject *resultobj; | |
7737 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7738 | wxLogTextCtrl *result; | |
7739 | PyObject * obj0 = 0 ; | |
7740 | char *kwnames[] = { | |
7741 | (char *) "pTextCtrl", NULL | |
7742 | }; | |
7743 | ||
7744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogTextCtrl",kwnames,&obj0)) goto fail; | |
7745 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
7746 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7747 | { | |
7748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7749 | result = (wxLogTextCtrl *)new wxLogTextCtrl(arg1); | |
7750 | ||
7751 | wxPyEndAllowThreads(__tstate); | |
7752 | if (PyErr_Occurred()) SWIG_fail; | |
7753 | } | |
7754 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogTextCtrl, 1); | |
7755 | return resultobj; | |
7756 | fail: | |
7757 | return NULL; | |
7758 | } | |
7759 | ||
7760 | ||
7761 | static PyObject * LogTextCtrl_swigregister(PyObject *self, PyObject *args) { | |
7762 | PyObject *obj; | |
7763 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7764 | SWIG_TypeClientData(SWIGTYPE_p_wxLogTextCtrl, obj); | |
7765 | Py_INCREF(obj); | |
7766 | return Py_BuildValue((char *)""); | |
7767 | } | |
7768 | static PyObject *_wrap_new_LogGui(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7769 | PyObject *resultobj; | |
7770 | wxLogGui *result; | |
7771 | char *kwnames[] = { | |
7772 | NULL | |
7773 | }; | |
7774 | ||
7775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogGui",kwnames)) goto fail; | |
7776 | { | |
7777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7778 | result = (wxLogGui *)new wxLogGui(); | |
7779 | ||
7780 | wxPyEndAllowThreads(__tstate); | |
7781 | if (PyErr_Occurred()) SWIG_fail; | |
7782 | } | |
7783 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogGui, 1); | |
7784 | return resultobj; | |
7785 | fail: | |
7786 | return NULL; | |
7787 | } | |
7788 | ||
7789 | ||
7790 | static PyObject * LogGui_swigregister(PyObject *self, PyObject *args) { | |
7791 | PyObject *obj; | |
7792 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7793 | SWIG_TypeClientData(SWIGTYPE_p_wxLogGui, obj); | |
7794 | Py_INCREF(obj); | |
7795 | return Py_BuildValue((char *)""); | |
7796 | } | |
7797 | static PyObject *_wrap_new_LogWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7798 | PyObject *resultobj; | |
7799 | wxFrame *arg1 = (wxFrame *) 0 ; | |
7800 | wxString *arg2 = 0 ; | |
7801 | bool arg3 = (bool) True ; | |
7802 | bool arg4 = (bool) True ; | |
7803 | wxLogWindow *result; | |
7804 | bool temp2 = False ; | |
7805 | PyObject * obj0 = 0 ; | |
7806 | PyObject * obj1 = 0 ; | |
7807 | PyObject * obj2 = 0 ; | |
7808 | PyObject * obj3 = 0 ; | |
7809 | char *kwnames[] = { | |
7810 | (char *) "pParent",(char *) "szTitle",(char *) "bShow",(char *) "bPassToOld", NULL | |
7811 | }; | |
7812 | ||
7813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_LogWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
7814 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
7815 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7816 | { | |
7817 | arg2 = wxString_in_helper(obj1); | |
7818 | if (arg2 == NULL) SWIG_fail; | |
7819 | temp2 = True; | |
7820 | } | |
7821 | if (obj2) { | |
7822 | arg3 = (bool) SWIG_AsBool(obj2); | |
7823 | if (PyErr_Occurred()) SWIG_fail; | |
7824 | } | |
7825 | if (obj3) { | |
7826 | arg4 = (bool) SWIG_AsBool(obj3); | |
7827 | if (PyErr_Occurred()) SWIG_fail; | |
7828 | } | |
7829 | { | |
7830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7831 | result = (wxLogWindow *)new wxLogWindow(arg1,(wxString const &)*arg2,arg3,arg4); | |
7832 | ||
7833 | wxPyEndAllowThreads(__tstate); | |
7834 | if (PyErr_Occurred()) SWIG_fail; | |
7835 | } | |
7836 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogWindow, 1); | |
7837 | { | |
7838 | if (temp2) | |
7839 | delete arg2; | |
7840 | } | |
7841 | return resultobj; | |
7842 | fail: | |
7843 | { | |
7844 | if (temp2) | |
7845 | delete arg2; | |
7846 | } | |
7847 | return NULL; | |
7848 | } | |
7849 | ||
7850 | ||
7851 | static PyObject *_wrap_LogWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7852 | PyObject *resultobj; | |
7853 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7854 | bool arg2 = (bool) True ; | |
7855 | PyObject * obj0 = 0 ; | |
7856 | PyObject * obj1 = 0 ; | |
7857 | char *kwnames[] = { | |
7858 | (char *) "self",(char *) "bShow", NULL | |
7859 | }; | |
7860 | ||
7861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:LogWindow_Show",kwnames,&obj0,&obj1)) goto fail; | |
7862 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, | |
7863 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7864 | if (obj1) { | |
7865 | arg2 = (bool) SWIG_AsBool(obj1); | |
7866 | if (PyErr_Occurred()) SWIG_fail; | |
7867 | } | |
7868 | { | |
7869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7870 | (arg1)->Show(arg2); | |
7871 | ||
7872 | wxPyEndAllowThreads(__tstate); | |
7873 | if (PyErr_Occurred()) SWIG_fail; | |
7874 | } | |
7875 | Py_INCREF(Py_None); resultobj = Py_None; | |
7876 | return resultobj; | |
7877 | fail: | |
7878 | return NULL; | |
7879 | } | |
7880 | ||
7881 | ||
7882 | static PyObject *_wrap_LogWindow_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7883 | PyObject *resultobj; | |
7884 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7885 | wxFrame *result; | |
7886 | PyObject * obj0 = 0 ; | |
7887 | char *kwnames[] = { | |
7888 | (char *) "self", NULL | |
7889 | }; | |
7890 | ||
7891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetFrame",kwnames,&obj0)) goto fail; | |
7892 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, | |
7893 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7894 | { | |
7895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7896 | result = (wxFrame *)((wxLogWindow const *)arg1)->GetFrame(); | |
7897 | ||
7898 | wxPyEndAllowThreads(__tstate); | |
7899 | if (PyErr_Occurred()) SWIG_fail; | |
7900 | } | |
7901 | { | |
7902 | resultobj = wxPyMake_wxObject(result); | |
7903 | } | |
7904 | return resultobj; | |
7905 | fail: | |
7906 | return NULL; | |
7907 | } | |
7908 | ||
7909 | ||
7910 | static PyObject *_wrap_LogWindow_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7911 | PyObject *resultobj; | |
7912 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7913 | wxLog *result; | |
7914 | PyObject * obj0 = 0 ; | |
7915 | char *kwnames[] = { | |
7916 | (char *) "self", NULL | |
7917 | }; | |
7918 | ||
7919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetOldLog",kwnames,&obj0)) goto fail; | |
7920 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, | |
7921 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7922 | { | |
7923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7924 | result = (wxLog *)((wxLogWindow const *)arg1)->GetOldLog(); | |
7925 | ||
7926 | wxPyEndAllowThreads(__tstate); | |
7927 | if (PyErr_Occurred()) SWIG_fail; | |
7928 | } | |
7929 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); | |
7930 | return resultobj; | |
7931 | fail: | |
7932 | return NULL; | |
7933 | } | |
7934 | ||
7935 | ||
7936 | static PyObject *_wrap_LogWindow_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7937 | PyObject *resultobj; | |
7938 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7939 | bool result; | |
7940 | PyObject * obj0 = 0 ; | |
7941 | char *kwnames[] = { | |
7942 | (char *) "self", NULL | |
7943 | }; | |
7944 | ||
7945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_IsPassingMessages",kwnames,&obj0)) goto fail; | |
7946 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, | |
7947 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7948 | { | |
7949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7950 | result = (bool)((wxLogWindow const *)arg1)->IsPassingMessages(); | |
7951 | ||
7952 | wxPyEndAllowThreads(__tstate); | |
7953 | if (PyErr_Occurred()) SWIG_fail; | |
7954 | } | |
7955 | { | |
7956 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7957 | } | |
7958 | return resultobj; | |
7959 | fail: | |
7960 | return NULL; | |
7961 | } | |
7962 | ||
7963 | ||
7964 | static PyObject *_wrap_LogWindow_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7965 | PyObject *resultobj; | |
7966 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7967 | bool arg2 ; | |
7968 | PyObject * obj0 = 0 ; | |
7969 | PyObject * obj1 = 0 ; | |
7970 | char *kwnames[] = { | |
7971 | (char *) "self",(char *) "bDoPass", NULL | |
7972 | }; | |
7973 | ||
7974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogWindow_PassMessages",kwnames,&obj0,&obj1)) goto fail; | |
7975 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, | |
7976 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7977 | arg2 = (bool) SWIG_AsBool(obj1); | |
7978 | if (PyErr_Occurred()) SWIG_fail; | |
7979 | { | |
7980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7981 | (arg1)->PassMessages(arg2); | |
7982 | ||
7983 | wxPyEndAllowThreads(__tstate); | |
7984 | if (PyErr_Occurred()) SWIG_fail; | |
7985 | } | |
7986 | Py_INCREF(Py_None); resultobj = Py_None; | |
7987 | return resultobj; | |
7988 | fail: | |
7989 | return NULL; | |
7990 | } | |
7991 | ||
7992 | ||
7993 | static PyObject * LogWindow_swigregister(PyObject *self, PyObject *args) { | |
7994 | PyObject *obj; | |
7995 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7996 | SWIG_TypeClientData(SWIGTYPE_p_wxLogWindow, obj); | |
7997 | Py_INCREF(obj); | |
7998 | return Py_BuildValue((char *)""); | |
7999 | } | |
8000 | static PyObject *_wrap_new_LogChain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8001 | PyObject *resultobj; | |
8002 | wxLog *arg1 = (wxLog *) 0 ; | |
8003 | wxLogChain *result; | |
8004 | PyObject * obj0 = 0 ; | |
8005 | char *kwnames[] = { | |
8006 | (char *) "logger", NULL | |
8007 | }; | |
8008 | ||
8009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogChain",kwnames,&obj0)) goto fail; | |
8010 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, | |
8011 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8012 | { | |
8013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8014 | result = (wxLogChain *)new wxLogChain(arg1); | |
8015 | ||
8016 | wxPyEndAllowThreads(__tstate); | |
8017 | if (PyErr_Occurred()) SWIG_fail; | |
8018 | } | |
8019 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogChain, 1); | |
8020 | return resultobj; | |
8021 | fail: | |
8022 | return NULL; | |
8023 | } | |
8024 | ||
8025 | ||
8026 | static PyObject *_wrap_LogChain_SetLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8027 | PyObject *resultobj; | |
8028 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
8029 | wxLog *arg2 = (wxLog *) 0 ; | |
8030 | PyObject * obj0 = 0 ; | |
8031 | PyObject * obj1 = 0 ; | |
8032 | char *kwnames[] = { | |
8033 | (char *) "self",(char *) "logger", NULL | |
8034 | }; | |
8035 | ||
8036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_SetLog",kwnames,&obj0,&obj1)) goto fail; | |
8037 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, | |
8038 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8039 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLog, | |
8040 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8041 | { | |
8042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8043 | (arg1)->SetLog(arg2); | |
8044 | ||
8045 | wxPyEndAllowThreads(__tstate); | |
8046 | if (PyErr_Occurred()) SWIG_fail; | |
8047 | } | |
8048 | Py_INCREF(Py_None); resultobj = Py_None; | |
8049 | return resultobj; | |
8050 | fail: | |
8051 | return NULL; | |
8052 | } | |
8053 | ||
8054 | ||
8055 | static PyObject *_wrap_LogChain_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8056 | PyObject *resultobj; | |
8057 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
8058 | bool arg2 ; | |
8059 | PyObject * obj0 = 0 ; | |
8060 | PyObject * obj1 = 0 ; | |
8061 | char *kwnames[] = { | |
8062 | (char *) "self",(char *) "bDoPass", NULL | |
8063 | }; | |
8064 | ||
8065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_PassMessages",kwnames,&obj0,&obj1)) goto fail; | |
8066 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, | |
8067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8068 | arg2 = (bool) SWIG_AsBool(obj1); | |
8069 | if (PyErr_Occurred()) SWIG_fail; | |
8070 | { | |
8071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8072 | (arg1)->PassMessages(arg2); | |
8073 | ||
8074 | wxPyEndAllowThreads(__tstate); | |
8075 | if (PyErr_Occurred()) SWIG_fail; | |
8076 | } | |
8077 | Py_INCREF(Py_None); resultobj = Py_None; | |
8078 | return resultobj; | |
8079 | fail: | |
8080 | return NULL; | |
8081 | } | |
8082 | ||
8083 | ||
8084 | static PyObject *_wrap_LogChain_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8085 | PyObject *resultobj; | |
8086 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
8087 | bool result; | |
8088 | PyObject * obj0 = 0 ; | |
8089 | char *kwnames[] = { | |
8090 | (char *) "self", NULL | |
8091 | }; | |
8092 | ||
8093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_IsPassingMessages",kwnames,&obj0)) goto fail; | |
8094 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, | |
8095 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8096 | { | |
8097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8098 | result = (bool)(arg1)->IsPassingMessages(); | |
8099 | ||
8100 | wxPyEndAllowThreads(__tstate); | |
8101 | if (PyErr_Occurred()) SWIG_fail; | |
8102 | } | |
8103 | { | |
8104 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8105 | } | |
8106 | return resultobj; | |
8107 | fail: | |
8108 | return NULL; | |
8109 | } | |
8110 | ||
8111 | ||
8112 | static PyObject *_wrap_LogChain_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8113 | PyObject *resultobj; | |
8114 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
8115 | wxLog *result; | |
8116 | PyObject * obj0 = 0 ; | |
8117 | char *kwnames[] = { | |
8118 | (char *) "self", NULL | |
8119 | }; | |
8120 | ||
8121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_GetOldLog",kwnames,&obj0)) goto fail; | |
8122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, | |
8123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8124 | { | |
8125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8126 | result = (wxLog *)(arg1)->GetOldLog(); | |
8127 | ||
8128 | wxPyEndAllowThreads(__tstate); | |
8129 | if (PyErr_Occurred()) SWIG_fail; | |
8130 | } | |
8131 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); | |
8132 | return resultobj; | |
8133 | fail: | |
8134 | return NULL; | |
8135 | } | |
8136 | ||
8137 | ||
8138 | static PyObject * LogChain_swigregister(PyObject *self, PyObject *args) { | |
8139 | PyObject *obj; | |
8140 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8141 | SWIG_TypeClientData(SWIGTYPE_p_wxLogChain, obj); | |
8142 | Py_INCREF(obj); | |
8143 | return Py_BuildValue((char *)""); | |
8144 | } | |
8145 | static PyObject *_wrap_SysErrorCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8146 | PyObject *resultobj; | |
8147 | unsigned long result; | |
8148 | char *kwnames[] = { | |
8149 | NULL | |
8150 | }; | |
8151 | ||
8152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SysErrorCode",kwnames)) goto fail; | |
8153 | { | |
8154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8155 | result = (unsigned long)wxSysErrorCode(); | |
8156 | ||
8157 | wxPyEndAllowThreads(__tstate); | |
8158 | if (PyErr_Occurred()) SWIG_fail; | |
8159 | } | |
8160 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
8161 | return resultobj; | |
8162 | fail: | |
8163 | return NULL; | |
8164 | } | |
8165 | ||
8166 | ||
8167 | static PyObject *_wrap_SysErrorMsg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8168 | PyObject *resultobj; | |
8169 | unsigned long arg1 = (unsigned long) 0 ; | |
8170 | wxString result; | |
8171 | PyObject * obj0 = 0 ; | |
8172 | char *kwnames[] = { | |
8173 | (char *) "nErrCode", NULL | |
8174 | }; | |
8175 | ||
8176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SysErrorMsg",kwnames,&obj0)) goto fail; | |
8177 | if (obj0) { | |
8178 | arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); | |
8179 | if (PyErr_Occurred()) SWIG_fail; | |
8180 | } | |
8181 | { | |
8182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8183 | result = wxSysErrorMsg(arg1); | |
8184 | ||
8185 | wxPyEndAllowThreads(__tstate); | |
8186 | if (PyErr_Occurred()) SWIG_fail; | |
8187 | } | |
8188 | { | |
8189 | #if wxUSE_UNICODE | |
8190 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8191 | #else | |
8192 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8193 | #endif | |
8194 | } | |
8195 | return resultobj; | |
8196 | fail: | |
8197 | return NULL; | |
8198 | } | |
8199 | ||
8200 | ||
8201 | static PyObject *_wrap_LogFatalError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8202 | PyObject *resultobj; | |
8203 | wxString *arg1 = 0 ; | |
8204 | bool temp1 = False ; | |
8205 | PyObject * obj0 = 0 ; | |
8206 | char *kwnames[] = { | |
8207 | (char *) "msg", NULL | |
8208 | }; | |
8209 | ||
8210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogFatalError",kwnames,&obj0)) goto fail; | |
8211 | { | |
8212 | arg1 = wxString_in_helper(obj0); | |
8213 | if (arg1 == NULL) SWIG_fail; | |
8214 | temp1 = True; | |
8215 | } | |
8216 | { | |
8217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8218 | wxLogFatalError((wxString const &)*arg1); | |
8219 | ||
8220 | wxPyEndAllowThreads(__tstate); | |
8221 | if (PyErr_Occurred()) SWIG_fail; | |
8222 | } | |
8223 | Py_INCREF(Py_None); resultobj = Py_None; | |
8224 | { | |
8225 | if (temp1) | |
8226 | delete arg1; | |
8227 | } | |
8228 | return resultobj; | |
8229 | fail: | |
8230 | { | |
8231 | if (temp1) | |
8232 | delete arg1; | |
8233 | } | |
8234 | return NULL; | |
8235 | } | |
8236 | ||
8237 | ||
8238 | static PyObject *_wrap_LogError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8239 | PyObject *resultobj; | |
8240 | wxString *arg1 = 0 ; | |
8241 | bool temp1 = False ; | |
8242 | PyObject * obj0 = 0 ; | |
8243 | char *kwnames[] = { | |
8244 | (char *) "msg", NULL | |
8245 | }; | |
8246 | ||
8247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogError",kwnames,&obj0)) goto fail; | |
8248 | { | |
8249 | arg1 = wxString_in_helper(obj0); | |
8250 | if (arg1 == NULL) SWIG_fail; | |
8251 | temp1 = True; | |
8252 | } | |
8253 | { | |
8254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8255 | wxLogError((wxString const &)*arg1); | |
8256 | ||
8257 | wxPyEndAllowThreads(__tstate); | |
8258 | if (PyErr_Occurred()) SWIG_fail; | |
8259 | } | |
8260 | Py_INCREF(Py_None); resultobj = Py_None; | |
8261 | { | |
8262 | if (temp1) | |
8263 | delete arg1; | |
8264 | } | |
8265 | return resultobj; | |
8266 | fail: | |
8267 | { | |
8268 | if (temp1) | |
8269 | delete arg1; | |
8270 | } | |
8271 | return NULL; | |
8272 | } | |
8273 | ||
8274 | ||
8275 | static PyObject *_wrap_LogWarning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8276 | PyObject *resultobj; | |
8277 | wxString *arg1 = 0 ; | |
8278 | bool temp1 = False ; | |
8279 | PyObject * obj0 = 0 ; | |
8280 | char *kwnames[] = { | |
8281 | (char *) "msg", NULL | |
8282 | }; | |
8283 | ||
8284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWarning",kwnames,&obj0)) goto fail; | |
8285 | { | |
8286 | arg1 = wxString_in_helper(obj0); | |
8287 | if (arg1 == NULL) SWIG_fail; | |
8288 | temp1 = True; | |
8289 | } | |
8290 | { | |
8291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8292 | wxLogWarning((wxString const &)*arg1); | |
8293 | ||
8294 | wxPyEndAllowThreads(__tstate); | |
8295 | if (PyErr_Occurred()) SWIG_fail; | |
8296 | } | |
8297 | Py_INCREF(Py_None); resultobj = Py_None; | |
8298 | { | |
8299 | if (temp1) | |
8300 | delete arg1; | |
8301 | } | |
8302 | return resultobj; | |
8303 | fail: | |
8304 | { | |
8305 | if (temp1) | |
8306 | delete arg1; | |
8307 | } | |
8308 | return NULL; | |
8309 | } | |
8310 | ||
8311 | ||
8312 | static PyObject *_wrap_LogMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8313 | PyObject *resultobj; | |
8314 | wxString *arg1 = 0 ; | |
8315 | bool temp1 = False ; | |
8316 | PyObject * obj0 = 0 ; | |
8317 | char *kwnames[] = { | |
8318 | (char *) "msg", NULL | |
8319 | }; | |
8320 | ||
8321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogMessage",kwnames,&obj0)) goto fail; | |
8322 | { | |
8323 | arg1 = wxString_in_helper(obj0); | |
8324 | if (arg1 == NULL) SWIG_fail; | |
8325 | temp1 = True; | |
8326 | } | |
8327 | { | |
8328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8329 | wxLogMessage((wxString const &)*arg1); | |
8330 | ||
8331 | wxPyEndAllowThreads(__tstate); | |
8332 | if (PyErr_Occurred()) SWIG_fail; | |
8333 | } | |
8334 | Py_INCREF(Py_None); resultobj = Py_None; | |
8335 | { | |
8336 | if (temp1) | |
8337 | delete arg1; | |
8338 | } | |
8339 | return resultobj; | |
8340 | fail: | |
8341 | { | |
8342 | if (temp1) | |
8343 | delete arg1; | |
8344 | } | |
8345 | return NULL; | |
8346 | } | |
8347 | ||
8348 | ||
8349 | static PyObject *_wrap_LogInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8350 | PyObject *resultobj; | |
8351 | wxString *arg1 = 0 ; | |
8352 | bool temp1 = False ; | |
8353 | PyObject * obj0 = 0 ; | |
8354 | char *kwnames[] = { | |
8355 | (char *) "msg", NULL | |
8356 | }; | |
8357 | ||
8358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogInfo",kwnames,&obj0)) goto fail; | |
8359 | { | |
8360 | arg1 = wxString_in_helper(obj0); | |
8361 | if (arg1 == NULL) SWIG_fail; | |
8362 | temp1 = True; | |
8363 | } | |
8364 | { | |
8365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8366 | wxLogInfo((wxString const &)*arg1); | |
8367 | ||
8368 | wxPyEndAllowThreads(__tstate); | |
8369 | if (PyErr_Occurred()) SWIG_fail; | |
8370 | } | |
8371 | Py_INCREF(Py_None); resultobj = Py_None; | |
8372 | { | |
8373 | if (temp1) | |
8374 | delete arg1; | |
8375 | } | |
8376 | return resultobj; | |
8377 | fail: | |
8378 | { | |
8379 | if (temp1) | |
8380 | delete arg1; | |
8381 | } | |
8382 | return NULL; | |
8383 | } | |
8384 | ||
8385 | ||
8386 | static PyObject *_wrap_LogDebug(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8387 | PyObject *resultobj; | |
8388 | wxString *arg1 = 0 ; | |
8389 | bool temp1 = False ; | |
8390 | PyObject * obj0 = 0 ; | |
8391 | char *kwnames[] = { | |
8392 | (char *) "msg", NULL | |
8393 | }; | |
8394 | ||
8395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogDebug",kwnames,&obj0)) goto fail; | |
8396 | { | |
8397 | arg1 = wxString_in_helper(obj0); | |
8398 | if (arg1 == NULL) SWIG_fail; | |
8399 | temp1 = True; | |
8400 | } | |
8401 | { | |
8402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8403 | wxLogDebug((wxString const &)*arg1); | |
8404 | ||
8405 | wxPyEndAllowThreads(__tstate); | |
8406 | if (PyErr_Occurred()) SWIG_fail; | |
8407 | } | |
8408 | Py_INCREF(Py_None); resultobj = Py_None; | |
8409 | { | |
8410 | if (temp1) | |
8411 | delete arg1; | |
8412 | } | |
8413 | return resultobj; | |
8414 | fail: | |
8415 | { | |
8416 | if (temp1) | |
8417 | delete arg1; | |
8418 | } | |
8419 | return NULL; | |
8420 | } | |
8421 | ||
8422 | ||
8423 | static PyObject *_wrap_LogVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8424 | PyObject *resultobj; | |
8425 | wxString *arg1 = 0 ; | |
8426 | bool temp1 = False ; | |
8427 | PyObject * obj0 = 0 ; | |
8428 | char *kwnames[] = { | |
8429 | (char *) "msg", NULL | |
8430 | }; | |
8431 | ||
8432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogVerbose",kwnames,&obj0)) goto fail; | |
8433 | { | |
8434 | arg1 = wxString_in_helper(obj0); | |
8435 | if (arg1 == NULL) SWIG_fail; | |
8436 | temp1 = True; | |
8437 | } | |
8438 | { | |
8439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8440 | wxLogVerbose((wxString const &)*arg1); | |
8441 | ||
8442 | wxPyEndAllowThreads(__tstate); | |
8443 | if (PyErr_Occurred()) SWIG_fail; | |
8444 | } | |
8445 | Py_INCREF(Py_None); resultobj = Py_None; | |
8446 | { | |
8447 | if (temp1) | |
8448 | delete arg1; | |
8449 | } | |
8450 | return resultobj; | |
8451 | fail: | |
8452 | { | |
8453 | if (temp1) | |
8454 | delete arg1; | |
8455 | } | |
8456 | return NULL; | |
8457 | } | |
8458 | ||
8459 | ||
8460 | static PyObject *_wrap_LogStatus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8461 | PyObject *resultobj; | |
8462 | wxString *arg1 = 0 ; | |
8463 | bool temp1 = False ; | |
8464 | PyObject * obj0 = 0 ; | |
8465 | char *kwnames[] = { | |
8466 | (char *) "msg", NULL | |
8467 | }; | |
8468 | ||
8469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogStatus",kwnames,&obj0)) goto fail; | |
8470 | { | |
8471 | arg1 = wxString_in_helper(obj0); | |
8472 | if (arg1 == NULL) SWIG_fail; | |
8473 | temp1 = True; | |
8474 | } | |
8475 | { | |
8476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8477 | wxLogStatus((wxString const &)*arg1); | |
8478 | ||
8479 | wxPyEndAllowThreads(__tstate); | |
8480 | if (PyErr_Occurred()) SWIG_fail; | |
8481 | } | |
8482 | Py_INCREF(Py_None); resultobj = Py_None; | |
8483 | { | |
8484 | if (temp1) | |
8485 | delete arg1; | |
8486 | } | |
8487 | return resultobj; | |
8488 | fail: | |
8489 | { | |
8490 | if (temp1) | |
8491 | delete arg1; | |
8492 | } | |
8493 | return NULL; | |
8494 | } | |
8495 | ||
8496 | ||
8497 | static PyObject *_wrap_LogStatusFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8498 | PyObject *resultobj; | |
8499 | wxFrame *arg1 = (wxFrame *) 0 ; | |
8500 | wxString *arg2 = 0 ; | |
8501 | bool temp2 = False ; | |
8502 | PyObject * obj0 = 0 ; | |
8503 | PyObject * obj1 = 0 ; | |
8504 | char *kwnames[] = { | |
8505 | (char *) "pFrame",(char *) "msg", NULL | |
8506 | }; | |
8507 | ||
8508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogStatusFrame",kwnames,&obj0,&obj1)) goto fail; | |
8509 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
8510 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8511 | { | |
8512 | arg2 = wxString_in_helper(obj1); | |
8513 | if (arg2 == NULL) SWIG_fail; | |
8514 | temp2 = True; | |
8515 | } | |
8516 | { | |
8517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8518 | wxLogStatus(arg1,(wxString const &)*arg2); | |
8519 | ||
8520 | wxPyEndAllowThreads(__tstate); | |
8521 | if (PyErr_Occurred()) SWIG_fail; | |
8522 | } | |
8523 | Py_INCREF(Py_None); resultobj = Py_None; | |
8524 | { | |
8525 | if (temp2) | |
8526 | delete arg2; | |
8527 | } | |
8528 | return resultobj; | |
8529 | fail: | |
8530 | { | |
8531 | if (temp2) | |
8532 | delete arg2; | |
8533 | } | |
8534 | return NULL; | |
8535 | } | |
8536 | ||
8537 | ||
8538 | static PyObject *_wrap_LogSysError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8539 | PyObject *resultobj; | |
8540 | wxString *arg1 = 0 ; | |
8541 | bool temp1 = False ; | |
8542 | PyObject * obj0 = 0 ; | |
8543 | char *kwnames[] = { | |
8544 | (char *) "msg", NULL | |
8545 | }; | |
8546 | ||
8547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogSysError",kwnames,&obj0)) goto fail; | |
8548 | { | |
8549 | arg1 = wxString_in_helper(obj0); | |
8550 | if (arg1 == NULL) SWIG_fail; | |
8551 | temp1 = True; | |
8552 | } | |
8553 | { | |
8554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8555 | wxLogSysError((wxString const &)*arg1); | |
8556 | ||
8557 | wxPyEndAllowThreads(__tstate); | |
8558 | if (PyErr_Occurred()) SWIG_fail; | |
8559 | } | |
8560 | Py_INCREF(Py_None); resultobj = Py_None; | |
8561 | { | |
8562 | if (temp1) | |
8563 | delete arg1; | |
8564 | } | |
8565 | return resultobj; | |
8566 | fail: | |
8567 | { | |
8568 | if (temp1) | |
8569 | delete arg1; | |
8570 | } | |
8571 | return NULL; | |
8572 | } | |
8573 | ||
8574 | ||
8575 | static PyObject *_wrap_LogTrace__SWIG_0(PyObject *self, PyObject *args) { | |
8576 | PyObject *resultobj; | |
8577 | unsigned long arg1 ; | |
8578 | wxString *arg2 = 0 ; | |
8579 | bool temp2 = False ; | |
8580 | PyObject * obj0 = 0 ; | |
8581 | PyObject * obj1 = 0 ; | |
8582 | ||
8583 | if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail; | |
8584 | arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); | |
8585 | if (PyErr_Occurred()) SWIG_fail; | |
8586 | { | |
8587 | arg2 = wxString_in_helper(obj1); | |
8588 | if (arg2 == NULL) SWIG_fail; | |
8589 | temp2 = True; | |
8590 | } | |
8591 | { | |
8592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8593 | wxLogTrace(arg1,(wxString const &)*arg2); | |
8594 | ||
8595 | wxPyEndAllowThreads(__tstate); | |
8596 | if (PyErr_Occurred()) SWIG_fail; | |
8597 | } | |
8598 | Py_INCREF(Py_None); resultobj = Py_None; | |
8599 | { | |
8600 | if (temp2) | |
8601 | delete arg2; | |
8602 | } | |
8603 | return resultobj; | |
8604 | fail: | |
8605 | { | |
8606 | if (temp2) | |
8607 | delete arg2; | |
8608 | } | |
8609 | return NULL; | |
8610 | } | |
8611 | ||
8612 | ||
8613 | static PyObject *_wrap_LogTrace__SWIG_1(PyObject *self, PyObject *args) { | |
8614 | PyObject *resultobj; | |
8615 | wxString *arg1 = 0 ; | |
8616 | wxString *arg2 = 0 ; | |
8617 | bool temp1 = False ; | |
8618 | bool temp2 = False ; | |
8619 | PyObject * obj0 = 0 ; | |
8620 | PyObject * obj1 = 0 ; | |
8621 | ||
8622 | if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail; | |
8623 | { | |
8624 | arg1 = wxString_in_helper(obj0); | |
8625 | if (arg1 == NULL) SWIG_fail; | |
8626 | temp1 = True; | |
8627 | } | |
8628 | { | |
8629 | arg2 = wxString_in_helper(obj1); | |
8630 | if (arg2 == NULL) SWIG_fail; | |
8631 | temp2 = True; | |
8632 | } | |
8633 | { | |
8634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8635 | wxLogTrace((wxString const &)*arg1,(wxString const &)*arg2); | |
8636 | ||
8637 | wxPyEndAllowThreads(__tstate); | |
8638 | if (PyErr_Occurred()) SWIG_fail; | |
8639 | } | |
8640 | Py_INCREF(Py_None); resultobj = Py_None; | |
8641 | { | |
8642 | if (temp1) | |
8643 | delete arg1; | |
8644 | } | |
8645 | { | |
8646 | if (temp2) | |
8647 | delete arg2; | |
8648 | } | |
8649 | return resultobj; | |
8650 | fail: | |
8651 | { | |
8652 | if (temp1) | |
8653 | delete arg1; | |
8654 | } | |
8655 | { | |
8656 | if (temp2) | |
8657 | delete arg2; | |
8658 | } | |
8659 | return NULL; | |
8660 | } | |
8661 | ||
8662 | ||
8663 | static PyObject *_wrap_LogTrace(PyObject *self, PyObject *args) { | |
8664 | int argc; | |
8665 | PyObject *argv[3]; | |
8666 | int ii; | |
8667 | ||
8668 | argc = PyObject_Length(args); | |
8669 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
8670 | argv[ii] = PyTuple_GetItem(args,ii); | |
8671 | } | |
8672 | if (argc == 2) { | |
8673 | int _v; | |
8674 | { | |
8675 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); | |
8676 | } | |
8677 | if (_v) { | |
8678 | { | |
8679 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); | |
8680 | } | |
8681 | if (_v) { | |
8682 | return _wrap_LogTrace__SWIG_1(self,args); | |
8683 | } | |
8684 | } | |
8685 | } | |
8686 | if (argc == 2) { | |
8687 | int _v; | |
8688 | _v = SWIG_CheckUnsignedLong(argv[0]); | |
8689 | if (_v) { | |
8690 | { | |
8691 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); | |
8692 | } | |
8693 | if (_v) { | |
8694 | return _wrap_LogTrace__SWIG_0(self,args); | |
8695 | } | |
8696 | } | |
8697 | } | |
8698 | ||
8699 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'LogTrace'"); | |
8700 | return NULL; | |
8701 | } | |
8702 | ||
8703 | ||
8704 | static PyObject *_wrap_LogGeneric(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8705 | PyObject *resultobj; | |
8706 | unsigned long arg1 ; | |
8707 | wxString *arg2 = 0 ; | |
8708 | bool temp2 = False ; | |
8709 | PyObject * obj0 = 0 ; | |
8710 | PyObject * obj1 = 0 ; | |
8711 | char *kwnames[] = { | |
8712 | (char *) "level",(char *) "msg", NULL | |
8713 | }; | |
8714 | ||
8715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogGeneric",kwnames,&obj0,&obj1)) goto fail; | |
8716 | arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); | |
8717 | if (PyErr_Occurred()) SWIG_fail; | |
8718 | { | |
8719 | arg2 = wxString_in_helper(obj1); | |
8720 | if (arg2 == NULL) SWIG_fail; | |
8721 | temp2 = True; | |
8722 | } | |
8723 | { | |
8724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8725 | wxLogGeneric(arg1,(wxString const &)*arg2); | |
8726 | ||
8727 | wxPyEndAllowThreads(__tstate); | |
8728 | if (PyErr_Occurred()) SWIG_fail; | |
8729 | } | |
8730 | Py_INCREF(Py_None); resultobj = Py_None; | |
8731 | { | |
8732 | if (temp2) | |
8733 | delete arg2; | |
8734 | } | |
8735 | return resultobj; | |
8736 | fail: | |
8737 | { | |
8738 | if (temp2) | |
8739 | delete arg2; | |
8740 | } | |
8741 | return NULL; | |
8742 | } | |
8743 | ||
8744 | ||
8745 | static PyObject *_wrap_SafeShowMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8746 | PyObject *resultobj; | |
8747 | wxString *arg1 = 0 ; | |
8748 | wxString *arg2 = 0 ; | |
8749 | bool temp1 = False ; | |
8750 | bool temp2 = False ; | |
8751 | PyObject * obj0 = 0 ; | |
8752 | PyObject * obj1 = 0 ; | |
8753 | char *kwnames[] = { | |
8754 | (char *) "title",(char *) "text", NULL | |
8755 | }; | |
8756 | ||
8757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SafeShowMessage",kwnames,&obj0,&obj1)) goto fail; | |
8758 | { | |
8759 | arg1 = wxString_in_helper(obj0); | |
8760 | if (arg1 == NULL) SWIG_fail; | |
8761 | temp1 = True; | |
8762 | } | |
8763 | { | |
8764 | arg2 = wxString_in_helper(obj1); | |
8765 | if (arg2 == NULL) SWIG_fail; | |
8766 | temp2 = True; | |
8767 | } | |
8768 | { | |
8769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8770 | wxSafeShowMessage((wxString const &)*arg1,(wxString const &)*arg2); | |
8771 | ||
8772 | wxPyEndAllowThreads(__tstate); | |
8773 | if (PyErr_Occurred()) SWIG_fail; | |
8774 | } | |
8775 | Py_INCREF(Py_None); resultobj = Py_None; | |
8776 | { | |
8777 | if (temp1) | |
8778 | delete arg1; | |
8779 | } | |
8780 | { | |
8781 | if (temp2) | |
8782 | delete arg2; | |
8783 | } | |
8784 | return resultobj; | |
8785 | fail: | |
8786 | { | |
8787 | if (temp1) | |
8788 | delete arg1; | |
8789 | } | |
8790 | { | |
8791 | if (temp2) | |
8792 | delete arg2; | |
8793 | } | |
8794 | return NULL; | |
8795 | } | |
8796 | ||
8797 | ||
8798 | static PyObject *_wrap_new_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8799 | PyObject *resultobj; | |
8800 | wxLogNull *result; | |
8801 | char *kwnames[] = { | |
8802 | NULL | |
8803 | }; | |
8804 | ||
8805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogNull",kwnames)) goto fail; | |
8806 | { | |
8807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8808 | result = (wxLogNull *)new wxLogNull(); | |
8809 | ||
8810 | wxPyEndAllowThreads(__tstate); | |
8811 | if (PyErr_Occurred()) SWIG_fail; | |
8812 | } | |
8813 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogNull, 1); | |
8814 | return resultobj; | |
8815 | fail: | |
8816 | return NULL; | |
8817 | } | |
8818 | ||
8819 | ||
8820 | static PyObject *_wrap_delete_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8821 | PyObject *resultobj; | |
8822 | wxLogNull *arg1 = (wxLogNull *) 0 ; | |
8823 | PyObject * obj0 = 0 ; | |
8824 | char *kwnames[] = { | |
8825 | (char *) "self", NULL | |
8826 | }; | |
8827 | ||
8828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LogNull",kwnames,&obj0)) goto fail; | |
8829 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogNull, | |
8830 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8831 | { | |
8832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8833 | delete arg1; | |
8834 | ||
8835 | wxPyEndAllowThreads(__tstate); | |
8836 | if (PyErr_Occurred()) SWIG_fail; | |
8837 | } | |
8838 | Py_INCREF(Py_None); resultobj = Py_None; | |
8839 | return resultobj; | |
8840 | fail: | |
8841 | return NULL; | |
8842 | } | |
8843 | ||
8844 | ||
8845 | static PyObject * LogNull_swigregister(PyObject *self, PyObject *args) { | |
8846 | PyObject *obj; | |
8847 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8848 | SWIG_TypeClientData(SWIGTYPE_p_wxLogNull, obj); | |
8849 | Py_INCREF(obj); | |
8850 | return Py_BuildValue((char *)""); | |
8851 | } | |
8852 | static PyObject *_wrap_new_PyLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8853 | PyObject *resultobj; | |
8854 | wxPyLog *result; | |
8855 | char *kwnames[] = { | |
8856 | NULL | |
8857 | }; | |
8858 | ||
8859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLog",kwnames)) goto fail; | |
8860 | { | |
8861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8862 | result = (wxPyLog *)new wxPyLog(); | |
8863 | ||
8864 | wxPyEndAllowThreads(__tstate); | |
8865 | if (PyErr_Occurred()) SWIG_fail; | |
8866 | } | |
8867 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyLog, 1); | |
8868 | return resultobj; | |
8869 | fail: | |
8870 | return NULL; | |
8871 | } | |
8872 | ||
8873 | ||
8874 | static PyObject *_wrap_PyLog__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8875 | PyObject *resultobj; | |
8876 | wxPyLog *arg1 = (wxPyLog *) 0 ; | |
8877 | PyObject *arg2 = (PyObject *) 0 ; | |
8878 | PyObject *arg3 = (PyObject *) 0 ; | |
8879 | PyObject * obj0 = 0 ; | |
8880 | PyObject * obj1 = 0 ; | |
8881 | PyObject * obj2 = 0 ; | |
8882 | char *kwnames[] = { | |
8883 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
8884 | }; | |
8885 | ||
8886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLog__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8887 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLog, | |
8888 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8889 | arg2 = obj1; | |
8890 | arg3 = obj2; | |
8891 | { | |
8892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8893 | (arg1)->_setCallbackInfo(arg2,arg3); | |
8894 | ||
8895 | wxPyEndAllowThreads(__tstate); | |
8896 | if (PyErr_Occurred()) SWIG_fail; | |
8897 | } | |
8898 | Py_INCREF(Py_None); resultobj = Py_None; | |
8899 | return resultobj; | |
8900 | fail: | |
8901 | return NULL; | |
8902 | } | |
8903 | ||
8904 | ||
8905 | static PyObject * PyLog_swigregister(PyObject *self, PyObject *args) { | |
8906 | PyObject *obj; | |
8907 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8908 | SWIG_TypeClientData(SWIGTYPE_p_wxPyLog, obj); | |
8909 | Py_INCREF(obj); | |
8910 | return Py_BuildValue((char *)""); | |
8911 | } | |
8912 | static PyObject *_wrap_Process_Kill(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8913 | PyObject *resultobj; | |
8914 | int arg1 ; | |
8915 | int arg2 = (int) wxSIGTERM ; | |
8916 | int result; | |
8917 | PyObject * obj0 = 0 ; | |
8918 | PyObject * obj1 = 0 ; | |
8919 | char *kwnames[] = { | |
8920 | (char *) "pid",(char *) "sig", NULL | |
8921 | }; | |
8922 | ||
8923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Kill",kwnames,&obj0,&obj1)) goto fail; | |
8924 | arg1 = (int) SWIG_AsInt(obj0); | |
8925 | if (PyErr_Occurred()) SWIG_fail; | |
8926 | if (obj1) { | |
8927 | arg2 = (wxSignal) SWIG_AsInt(obj1); | |
8928 | if (PyErr_Occurred()) SWIG_fail; | |
8929 | } | |
8930 | { | |
8931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8932 | result = (int)wxPyProcess::Kill(arg1,(wxSignal )arg2); | |
8933 | ||
8934 | wxPyEndAllowThreads(__tstate); | |
8935 | if (PyErr_Occurred()) SWIG_fail; | |
8936 | } | |
8937 | resultobj = SWIG_FromInt((int)result); | |
8938 | return resultobj; | |
8939 | fail: | |
8940 | return NULL; | |
8941 | } | |
8942 | ||
8943 | ||
8944 | static PyObject *_wrap_Process_Exists(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8945 | PyObject *resultobj; | |
8946 | int arg1 ; | |
8947 | bool result; | |
8948 | PyObject * obj0 = 0 ; | |
8949 | char *kwnames[] = { | |
8950 | (char *) "pid", NULL | |
8951 | }; | |
8952 | ||
8953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Exists",kwnames,&obj0)) goto fail; | |
8954 | arg1 = (int) SWIG_AsInt(obj0); | |
8955 | if (PyErr_Occurred()) SWIG_fail; | |
8956 | { | |
8957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8958 | result = (bool)wxPyProcess::Exists(arg1); | |
8959 | ||
8960 | wxPyEndAllowThreads(__tstate); | |
8961 | if (PyErr_Occurred()) SWIG_fail; | |
8962 | } | |
8963 | { | |
8964 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8965 | } | |
8966 | return resultobj; | |
8967 | fail: | |
8968 | return NULL; | |
8969 | } | |
8970 | ||
8971 | ||
8972 | static PyObject *_wrap_Process_Open(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8973 | PyObject *resultobj; | |
8974 | wxString *arg1 = 0 ; | |
8975 | int arg2 = (int) wxEXEC_ASYNC ; | |
8976 | wxPyProcess *result; | |
8977 | bool temp1 = False ; | |
8978 | PyObject * obj0 = 0 ; | |
8979 | PyObject * obj1 = 0 ; | |
8980 | char *kwnames[] = { | |
8981 | (char *) "cmd",(char *) "flags", NULL | |
8982 | }; | |
8983 | ||
8984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Open",kwnames,&obj0,&obj1)) goto fail; | |
8985 | { | |
8986 | arg1 = wxString_in_helper(obj0); | |
8987 | if (arg1 == NULL) SWIG_fail; | |
8988 | temp1 = True; | |
8989 | } | |
8990 | if (obj1) { | |
8991 | arg2 = (int) SWIG_AsInt(obj1); | |
8992 | if (PyErr_Occurred()) SWIG_fail; | |
8993 | } | |
8994 | { | |
8995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8996 | result = (wxPyProcess *)wxPyProcess::Open((wxString const &)*arg1,arg2); | |
8997 | ||
8998 | wxPyEndAllowThreads(__tstate); | |
8999 | if (PyErr_Occurred()) SWIG_fail; | |
9000 | } | |
9001 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 0); | |
9002 | { | |
9003 | if (temp1) | |
9004 | delete arg1; | |
9005 | } | |
9006 | return resultobj; | |
9007 | fail: | |
9008 | { | |
9009 | if (temp1) | |
9010 | delete arg1; | |
9011 | } | |
9012 | return NULL; | |
9013 | } | |
9014 | ||
9015 | ||
9016 | static PyObject *_wrap_new_Process(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9017 | PyObject *resultobj; | |
9018 | wxEvtHandler *arg1 = (wxEvtHandler *) NULL ; | |
9019 | int arg2 = (int) -1 ; | |
9020 | wxPyProcess *result; | |
9021 | PyObject * obj0 = 0 ; | |
9022 | PyObject * obj1 = 0 ; | |
9023 | char *kwnames[] = { | |
9024 | (char *) "parent",(char *) "id", NULL | |
9025 | }; | |
9026 | ||
9027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Process",kwnames,&obj0,&obj1)) goto fail; | |
9028 | if (obj0) { | |
9029 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
9030 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9031 | } | |
9032 | if (obj1) { | |
9033 | arg2 = (int) SWIG_AsInt(obj1); | |
9034 | if (PyErr_Occurred()) SWIG_fail; | |
9035 | } | |
9036 | { | |
9037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9038 | result = (wxPyProcess *)new wxPyProcess(arg1,arg2); | |
9039 | ||
9040 | wxPyEndAllowThreads(__tstate); | |
9041 | if (PyErr_Occurred()) SWIG_fail; | |
9042 | } | |
9043 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 1); | |
9044 | return resultobj; | |
9045 | fail: | |
9046 | return NULL; | |
9047 | } | |
9048 | ||
9049 | ||
9050 | static PyObject *_wrap_Process__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9051 | PyObject *resultobj; | |
9052 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9053 | PyObject *arg2 = (PyObject *) 0 ; | |
9054 | PyObject *arg3 = (PyObject *) 0 ; | |
9055 | PyObject * obj0 = 0 ; | |
9056 | PyObject * obj1 = 0 ; | |
9057 | PyObject * obj2 = 0 ; | |
9058 | char *kwnames[] = { | |
9059 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
9060 | }; | |
9061 | ||
9062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9065 | arg2 = obj1; | |
9066 | arg3 = obj2; | |
9067 | { | |
9068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9069 | (arg1)->_setCallbackInfo(arg2,arg3); | |
9070 | ||
9071 | wxPyEndAllowThreads(__tstate); | |
9072 | if (PyErr_Occurred()) SWIG_fail; | |
9073 | } | |
9074 | Py_INCREF(Py_None); resultobj = Py_None; | |
9075 | return resultobj; | |
9076 | fail: | |
9077 | return NULL; | |
9078 | } | |
9079 | ||
9080 | ||
9081 | static PyObject *_wrap_Process_base_OnTerminate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9082 | PyObject *resultobj; | |
9083 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9084 | int arg2 ; | |
9085 | int arg3 ; | |
9086 | PyObject * obj0 = 0 ; | |
9087 | PyObject * obj1 = 0 ; | |
9088 | PyObject * obj2 = 0 ; | |
9089 | char *kwnames[] = { | |
9090 | (char *) "self",(char *) "pid",(char *) "status", NULL | |
9091 | }; | |
9092 | ||
9093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process_base_OnTerminate",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9094 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9095 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9096 | arg2 = (int) SWIG_AsInt(obj1); | |
9097 | if (PyErr_Occurred()) SWIG_fail; | |
9098 | arg3 = (int) SWIG_AsInt(obj2); | |
9099 | if (PyErr_Occurred()) SWIG_fail; | |
9100 | { | |
9101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9102 | (arg1)->base_OnTerminate(arg2,arg3); | |
9103 | ||
9104 | wxPyEndAllowThreads(__tstate); | |
9105 | if (PyErr_Occurred()) SWIG_fail; | |
9106 | } | |
9107 | Py_INCREF(Py_None); resultobj = Py_None; | |
9108 | return resultobj; | |
9109 | fail: | |
9110 | return NULL; | |
9111 | } | |
9112 | ||
9113 | ||
9114 | static PyObject *_wrap_Process_Redirect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9115 | PyObject *resultobj; | |
9116 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9117 | PyObject * obj0 = 0 ; | |
9118 | char *kwnames[] = { | |
9119 | (char *) "self", NULL | |
9120 | }; | |
9121 | ||
9122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Redirect",kwnames,&obj0)) goto fail; | |
9123 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9124 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9125 | { | |
9126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9127 | (arg1)->Redirect(); | |
9128 | ||
9129 | wxPyEndAllowThreads(__tstate); | |
9130 | if (PyErr_Occurred()) SWIG_fail; | |
9131 | } | |
9132 | Py_INCREF(Py_None); resultobj = Py_None; | |
9133 | return resultobj; | |
9134 | fail: | |
9135 | return NULL; | |
9136 | } | |
9137 | ||
9138 | ||
9139 | static PyObject *_wrap_Process_IsRedirected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9140 | PyObject *resultobj; | |
9141 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9142 | bool result; | |
9143 | PyObject * obj0 = 0 ; | |
9144 | char *kwnames[] = { | |
9145 | (char *) "self", NULL | |
9146 | }; | |
9147 | ||
9148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsRedirected",kwnames,&obj0)) goto fail; | |
9149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9151 | { | |
9152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9153 | result = (bool)(arg1)->IsRedirected(); | |
9154 | ||
9155 | wxPyEndAllowThreads(__tstate); | |
9156 | if (PyErr_Occurred()) SWIG_fail; | |
9157 | } | |
9158 | { | |
9159 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9160 | } | |
9161 | return resultobj; | |
9162 | fail: | |
9163 | return NULL; | |
9164 | } | |
9165 | ||
9166 | ||
9167 | static PyObject *_wrap_Process_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9168 | PyObject *resultobj; | |
9169 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9170 | PyObject * obj0 = 0 ; | |
9171 | char *kwnames[] = { | |
9172 | (char *) "self", NULL | |
9173 | }; | |
9174 | ||
9175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Detach",kwnames,&obj0)) goto fail; | |
9176 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9177 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9178 | { | |
9179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9180 | (arg1)->Detach(); | |
9181 | ||
9182 | wxPyEndAllowThreads(__tstate); | |
9183 | if (PyErr_Occurred()) SWIG_fail; | |
9184 | } | |
9185 | Py_INCREF(Py_None); resultobj = Py_None; | |
9186 | return resultobj; | |
9187 | fail: | |
9188 | return NULL; | |
9189 | } | |
9190 | ||
9191 | ||
9192 | static PyObject *_wrap_Process_GetInputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9193 | PyObject *resultobj; | |
9194 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9195 | wxInputStream *result; | |
9196 | PyObject * obj0 = 0 ; | |
9197 | char *kwnames[] = { | |
9198 | (char *) "self", NULL | |
9199 | }; | |
9200 | ||
9201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetInputStream",kwnames,&obj0)) goto fail; | |
9202 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9203 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9204 | { | |
9205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9206 | result = (wxInputStream *)(arg1)->GetInputStream(); | |
9207 | ||
9208 | wxPyEndAllowThreads(__tstate); | |
9209 | if (PyErr_Occurred()) SWIG_fail; | |
9210 | } | |
9211 | { | |
9212 | wxPyInputStream * _ptr = NULL; | |
9213 | ||
9214 | if (result) { | |
9215 | _ptr = new wxPyInputStream(result); | |
9216 | } | |
9217 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); | |
9218 | } | |
9219 | return resultobj; | |
9220 | fail: | |
9221 | return NULL; | |
9222 | } | |
9223 | ||
9224 | ||
9225 | static PyObject *_wrap_Process_GetErrorStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9226 | PyObject *resultobj; | |
9227 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9228 | wxInputStream *result; | |
9229 | PyObject * obj0 = 0 ; | |
9230 | char *kwnames[] = { | |
9231 | (char *) "self", NULL | |
9232 | }; | |
9233 | ||
9234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetErrorStream",kwnames,&obj0)) goto fail; | |
9235 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9236 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9237 | { | |
9238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9239 | result = (wxInputStream *)(arg1)->GetErrorStream(); | |
9240 | ||
9241 | wxPyEndAllowThreads(__tstate); | |
9242 | if (PyErr_Occurred()) SWIG_fail; | |
9243 | } | |
9244 | { | |
9245 | wxPyInputStream * _ptr = NULL; | |
9246 | ||
9247 | if (result) { | |
9248 | _ptr = new wxPyInputStream(result); | |
9249 | } | |
9250 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); | |
9251 | } | |
9252 | return resultobj; | |
9253 | fail: | |
9254 | return NULL; | |
9255 | } | |
9256 | ||
9257 | ||
9258 | static PyObject *_wrap_Process_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9259 | PyObject *resultobj; | |
9260 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9261 | wxOutputStream *result; | |
9262 | PyObject * obj0 = 0 ; | |
9263 | char *kwnames[] = { | |
9264 | (char *) "self", NULL | |
9265 | }; | |
9266 | ||
9267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetOutputStream",kwnames,&obj0)) goto fail; | |
9268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9270 | { | |
9271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9272 | result = (wxOutputStream *)(arg1)->GetOutputStream(); | |
9273 | ||
9274 | wxPyEndAllowThreads(__tstate); | |
9275 | if (PyErr_Occurred()) SWIG_fail; | |
9276 | } | |
9277 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxOutputStream, 0); | |
9278 | return resultobj; | |
9279 | fail: | |
9280 | return NULL; | |
9281 | } | |
9282 | ||
9283 | ||
9284 | static PyObject *_wrap_Process_CloseOutput(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9285 | PyObject *resultobj; | |
9286 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9287 | PyObject * obj0 = 0 ; | |
9288 | char *kwnames[] = { | |
9289 | (char *) "self", NULL | |
9290 | }; | |
9291 | ||
9292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_CloseOutput",kwnames,&obj0)) goto fail; | |
9293 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9294 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9295 | { | |
9296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9297 | (arg1)->CloseOutput(); | |
9298 | ||
9299 | wxPyEndAllowThreads(__tstate); | |
9300 | if (PyErr_Occurred()) SWIG_fail; | |
9301 | } | |
9302 | Py_INCREF(Py_None); resultobj = Py_None; | |
9303 | return resultobj; | |
9304 | fail: | |
9305 | return NULL; | |
9306 | } | |
9307 | ||
9308 | ||
9309 | static PyObject *_wrap_Process_IsInputOpened(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9310 | PyObject *resultobj; | |
9311 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9312 | bool result; | |
9313 | PyObject * obj0 = 0 ; | |
9314 | char *kwnames[] = { | |
9315 | (char *) "self", NULL | |
9316 | }; | |
9317 | ||
9318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputOpened",kwnames,&obj0)) goto fail; | |
9319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9321 | { | |
9322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9323 | result = (bool)((wxPyProcess const *)arg1)->IsInputOpened(); | |
9324 | ||
9325 | wxPyEndAllowThreads(__tstate); | |
9326 | if (PyErr_Occurred()) SWIG_fail; | |
9327 | } | |
9328 | { | |
9329 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9330 | } | |
9331 | return resultobj; | |
9332 | fail: | |
9333 | return NULL; | |
9334 | } | |
9335 | ||
9336 | ||
9337 | static PyObject *_wrap_Process_IsInputAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9338 | PyObject *resultobj; | |
9339 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9340 | bool result; | |
9341 | PyObject * obj0 = 0 ; | |
9342 | char *kwnames[] = { | |
9343 | (char *) "self", NULL | |
9344 | }; | |
9345 | ||
9346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputAvailable",kwnames,&obj0)) goto fail; | |
9347 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9348 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9349 | { | |
9350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9351 | result = (bool)((wxPyProcess const *)arg1)->IsInputAvailable(); | |
9352 | ||
9353 | wxPyEndAllowThreads(__tstate); | |
9354 | if (PyErr_Occurred()) SWIG_fail; | |
9355 | } | |
9356 | { | |
9357 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9358 | } | |
9359 | return resultobj; | |
9360 | fail: | |
9361 | return NULL; | |
9362 | } | |
9363 | ||
9364 | ||
9365 | static PyObject *_wrap_Process_IsErrorAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9366 | PyObject *resultobj; | |
9367 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9368 | bool result; | |
9369 | PyObject * obj0 = 0 ; | |
9370 | char *kwnames[] = { | |
9371 | (char *) "self", NULL | |
9372 | }; | |
9373 | ||
9374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsErrorAvailable",kwnames,&obj0)) goto fail; | |
9375 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9376 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9377 | { | |
9378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9379 | result = (bool)((wxPyProcess const *)arg1)->IsErrorAvailable(); | |
9380 | ||
9381 | wxPyEndAllowThreads(__tstate); | |
9382 | if (PyErr_Occurred()) SWIG_fail; | |
9383 | } | |
9384 | { | |
9385 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9386 | } | |
9387 | return resultobj; | |
9388 | fail: | |
9389 | return NULL; | |
9390 | } | |
9391 | ||
9392 | ||
9393 | static PyObject * Process_swigregister(PyObject *self, PyObject *args) { | |
9394 | PyObject *obj; | |
9395 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9396 | SWIG_TypeClientData(SWIGTYPE_p_wxPyProcess, obj); | |
9397 | Py_INCREF(obj); | |
9398 | return Py_BuildValue((char *)""); | |
9399 | } | |
9400 | static PyObject *_wrap_new_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9401 | PyObject *resultobj; | |
9402 | int arg1 = (int) 0 ; | |
9403 | int arg2 = (int) 0 ; | |
9404 | int arg3 = (int) 0 ; | |
9405 | wxProcessEvent *result; | |
9406 | PyObject * obj0 = 0 ; | |
9407 | PyObject * obj1 = 0 ; | |
9408 | PyObject * obj2 = 0 ; | |
9409 | char *kwnames[] = { | |
9410 | (char *) "id",(char *) "pid",(char *) "exitcode", NULL | |
9411 | }; | |
9412 | ||
9413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ProcessEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9414 | if (obj0) { | |
9415 | arg1 = (int) SWIG_AsInt(obj0); | |
9416 | if (PyErr_Occurred()) SWIG_fail; | |
9417 | } | |
9418 | if (obj1) { | |
9419 | arg2 = (int) SWIG_AsInt(obj1); | |
9420 | if (PyErr_Occurred()) SWIG_fail; | |
9421 | } | |
9422 | if (obj2) { | |
9423 | arg3 = (int) SWIG_AsInt(obj2); | |
9424 | if (PyErr_Occurred()) SWIG_fail; | |
9425 | } | |
9426 | { | |
9427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9428 | result = (wxProcessEvent *)new wxProcessEvent(arg1,arg2,arg3); | |
9429 | ||
9430 | wxPyEndAllowThreads(__tstate); | |
9431 | if (PyErr_Occurred()) SWIG_fail; | |
9432 | } | |
9433 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxProcessEvent, 1); | |
9434 | return resultobj; | |
9435 | fail: | |
9436 | return NULL; | |
9437 | } | |
9438 | ||
9439 | ||
9440 | static PyObject *_wrap_ProcessEvent_GetPid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9441 | PyObject *resultobj; | |
9442 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9443 | int result; | |
9444 | PyObject * obj0 = 0 ; | |
9445 | char *kwnames[] = { | |
9446 | (char *) "self", NULL | |
9447 | }; | |
9448 | ||
9449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetPid",kwnames,&obj0)) goto fail; | |
9450 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, | |
9451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9452 | { | |
9453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9454 | result = (int)(arg1)->GetPid(); | |
9455 | ||
9456 | wxPyEndAllowThreads(__tstate); | |
9457 | if (PyErr_Occurred()) SWIG_fail; | |
9458 | } | |
9459 | resultobj = SWIG_FromInt((int)result); | |
9460 | return resultobj; | |
9461 | fail: | |
9462 | return NULL; | |
9463 | } | |
9464 | ||
9465 | ||
9466 | static PyObject *_wrap_ProcessEvent_GetExitCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9467 | PyObject *resultobj; | |
9468 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9469 | int result; | |
9470 | PyObject * obj0 = 0 ; | |
9471 | char *kwnames[] = { | |
9472 | (char *) "self", NULL | |
9473 | }; | |
9474 | ||
9475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetExitCode",kwnames,&obj0)) goto fail; | |
9476 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, | |
9477 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9478 | { | |
9479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9480 | result = (int)(arg1)->GetExitCode(); | |
9481 | ||
9482 | wxPyEndAllowThreads(__tstate); | |
9483 | if (PyErr_Occurred()) SWIG_fail; | |
9484 | } | |
9485 | resultobj = SWIG_FromInt((int)result); | |
9486 | return resultobj; | |
9487 | fail: | |
9488 | return NULL; | |
9489 | } | |
9490 | ||
9491 | ||
9492 | static PyObject *_wrap_ProcessEvent_m_pid_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9493 | PyObject *resultobj; | |
9494 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9495 | int arg2 ; | |
9496 | PyObject * obj0 = 0 ; | |
9497 | PyObject * obj1 = 0 ; | |
9498 | char *kwnames[] = { | |
9499 | (char *) "self",(char *) "m_pid", NULL | |
9500 | }; | |
9501 | ||
9502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_pid_set",kwnames,&obj0,&obj1)) goto fail; | |
9503 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, | |
9504 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9505 | arg2 = (int) SWIG_AsInt(obj1); | |
9506 | if (PyErr_Occurred()) SWIG_fail; | |
9507 | if (arg1) (arg1)->m_pid = arg2; | |
9508 | ||
9509 | Py_INCREF(Py_None); resultobj = Py_None; | |
9510 | return resultobj; | |
9511 | fail: | |
9512 | return NULL; | |
9513 | } | |
9514 | ||
9515 | ||
9516 | static PyObject *_wrap_ProcessEvent_m_pid_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9517 | PyObject *resultobj; | |
9518 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9519 | int result; | |
9520 | PyObject * obj0 = 0 ; | |
9521 | char *kwnames[] = { | |
9522 | (char *) "self", NULL | |
9523 | }; | |
9524 | ||
9525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_pid_get",kwnames,&obj0)) goto fail; | |
9526 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, | |
9527 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9528 | result = (int) ((arg1)->m_pid); | |
9529 | ||
9530 | resultobj = SWIG_FromInt((int)result); | |
9531 | return resultobj; | |
9532 | fail: | |
9533 | return NULL; | |
9534 | } | |
9535 | ||
9536 | ||
9537 | static PyObject *_wrap_ProcessEvent_m_exitcode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9538 | PyObject *resultobj; | |
9539 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9540 | int arg2 ; | |
9541 | PyObject * obj0 = 0 ; | |
9542 | PyObject * obj1 = 0 ; | |
9543 | char *kwnames[] = { | |
9544 | (char *) "self",(char *) "m_exitcode", NULL | |
9545 | }; | |
9546 | ||
9547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_exitcode_set",kwnames,&obj0,&obj1)) goto fail; | |
9548 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, | |
9549 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9550 | arg2 = (int) SWIG_AsInt(obj1); | |
9551 | if (PyErr_Occurred()) SWIG_fail; | |
9552 | if (arg1) (arg1)->m_exitcode = arg2; | |
9553 | ||
9554 | Py_INCREF(Py_None); resultobj = Py_None; | |
9555 | return resultobj; | |
9556 | fail: | |
9557 | return NULL; | |
9558 | } | |
9559 | ||
9560 | ||
9561 | static PyObject *_wrap_ProcessEvent_m_exitcode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9562 | PyObject *resultobj; | |
9563 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9564 | int result; | |
9565 | PyObject * obj0 = 0 ; | |
9566 | char *kwnames[] = { | |
9567 | (char *) "self", NULL | |
9568 | }; | |
9569 | ||
9570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_exitcode_get",kwnames,&obj0)) goto fail; | |
9571 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, | |
9572 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9573 | result = (int) ((arg1)->m_exitcode); | |
9574 | ||
9575 | resultobj = SWIG_FromInt((int)result); | |
9576 | return resultobj; | |
9577 | fail: | |
9578 | return NULL; | |
9579 | } | |
9580 | ||
9581 | ||
9582 | static PyObject * ProcessEvent_swigregister(PyObject *self, PyObject *args) { | |
9583 | PyObject *obj; | |
9584 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9585 | SWIG_TypeClientData(SWIGTYPE_p_wxProcessEvent, obj); | |
9586 | Py_INCREF(obj); | |
9587 | return Py_BuildValue((char *)""); | |
9588 | } | |
9589 | static PyObject *_wrap_Execute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9590 | PyObject *resultobj; | |
9591 | wxString *arg1 = 0 ; | |
9592 | int arg2 = (int) wxEXEC_ASYNC ; | |
9593 | wxPyProcess *arg3 = (wxPyProcess *) NULL ; | |
9594 | long result; | |
9595 | bool temp1 = False ; | |
9596 | PyObject * obj0 = 0 ; | |
9597 | PyObject * obj1 = 0 ; | |
9598 | PyObject * obj2 = 0 ; | |
9599 | char *kwnames[] = { | |
9600 | (char *) "command",(char *) "flags",(char *) "process", NULL | |
9601 | }; | |
9602 | ||
9603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Execute",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9604 | { | |
9605 | arg1 = wxString_in_helper(obj0); | |
9606 | if (arg1 == NULL) SWIG_fail; | |
9607 | temp1 = True; | |
9608 | } | |
9609 | if (obj1) { | |
9610 | arg2 = (int) SWIG_AsInt(obj1); | |
9611 | if (PyErr_Occurred()) SWIG_fail; | |
9612 | } | |
9613 | if (obj2) { | |
9614 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyProcess, | |
9615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9616 | } | |
9617 | { | |
0439c23b | 9618 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
9619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9620 | result = (long)wxExecute((wxString const &)*arg1,arg2,arg3); | |
9621 | ||
9622 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 9623 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
9624 | } |
9625 | resultobj = SWIG_FromLong((long)result); | |
9626 | { | |
9627 | if (temp1) | |
9628 | delete arg1; | |
9629 | } | |
9630 | return resultobj; | |
9631 | fail: | |
9632 | { | |
9633 | if (temp1) | |
9634 | delete arg1; | |
9635 | } | |
9636 | return NULL; | |
9637 | } | |
9638 | ||
9639 | ||
9640 | static PyObject *_wrap_new_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9641 | PyObject *resultobj; | |
9642 | int arg1 = (int) wxJOYSTICK1 ; | |
9643 | wxJoystick *result; | |
9644 | PyObject * obj0 = 0 ; | |
9645 | char *kwnames[] = { | |
9646 | (char *) "joystick", NULL | |
9647 | }; | |
9648 | ||
9649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Joystick",kwnames,&obj0)) goto fail; | |
9650 | if (obj0) { | |
9651 | arg1 = (int) SWIG_AsInt(obj0); | |
9652 | if (PyErr_Occurred()) SWIG_fail; | |
9653 | } | |
9654 | { | |
0439c23b | 9655 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
9656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9657 | result = (wxJoystick *)new wxJoystick(arg1); | |
9658 | ||
9659 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 9660 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
9661 | } |
9662 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystick, 1); | |
9663 | return resultobj; | |
9664 | fail: | |
9665 | return NULL; | |
9666 | } | |
9667 | ||
9668 | ||
9669 | static PyObject *_wrap_delete_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9670 | PyObject *resultobj; | |
9671 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9672 | PyObject * obj0 = 0 ; | |
9673 | char *kwnames[] = { | |
9674 | (char *) "self", NULL | |
9675 | }; | |
9676 | ||
9677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Joystick",kwnames,&obj0)) goto fail; | |
9678 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9679 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9680 | { | |
9681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9682 | delete arg1; | |
9683 | ||
9684 | wxPyEndAllowThreads(__tstate); | |
9685 | if (PyErr_Occurred()) SWIG_fail; | |
9686 | } | |
9687 | Py_INCREF(Py_None); resultobj = Py_None; | |
9688 | return resultobj; | |
9689 | fail: | |
9690 | return NULL; | |
9691 | } | |
9692 | ||
9693 | ||
9694 | static PyObject *_wrap_Joystick_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9695 | PyObject *resultobj; | |
9696 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9697 | wxPoint result; | |
9698 | PyObject * obj0 = 0 ; | |
9699 | char *kwnames[] = { | |
9700 | (char *) "self", NULL | |
9701 | }; | |
9702 | ||
9703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPosition",kwnames,&obj0)) goto fail; | |
9704 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9705 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9706 | { | |
9707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9708 | result = (arg1)->GetPosition(); | |
9709 | ||
9710 | wxPyEndAllowThreads(__tstate); | |
9711 | if (PyErr_Occurred()) SWIG_fail; | |
9712 | } | |
9713 | { | |
9714 | wxPoint * resultptr; | |
9715 | resultptr = new wxPoint((wxPoint &) result); | |
9716 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
9717 | } | |
9718 | return resultobj; | |
9719 | fail: | |
9720 | return NULL; | |
9721 | } | |
9722 | ||
9723 | ||
9724 | static PyObject *_wrap_Joystick_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9725 | PyObject *resultobj; | |
9726 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9727 | int result; | |
9728 | PyObject * obj0 = 0 ; | |
9729 | char *kwnames[] = { | |
9730 | (char *) "self", NULL | |
9731 | }; | |
9732 | ||
9733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZPosition",kwnames,&obj0)) goto fail; | |
9734 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9735 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9736 | { | |
9737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9738 | result = (int)(arg1)->GetZPosition(); | |
9739 | ||
9740 | wxPyEndAllowThreads(__tstate); | |
9741 | if (PyErr_Occurred()) SWIG_fail; | |
9742 | } | |
9743 | resultobj = SWIG_FromInt((int)result); | |
9744 | return resultobj; | |
9745 | fail: | |
9746 | return NULL; | |
9747 | } | |
9748 | ||
9749 | ||
9750 | static PyObject *_wrap_Joystick_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9751 | PyObject *resultobj; | |
9752 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9753 | int result; | |
9754 | PyObject * obj0 = 0 ; | |
9755 | char *kwnames[] = { | |
9756 | (char *) "self", NULL | |
9757 | }; | |
9758 | ||
9759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetButtonState",kwnames,&obj0)) goto fail; | |
9760 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9761 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9762 | { | |
9763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9764 | result = (int)(arg1)->GetButtonState(); | |
9765 | ||
9766 | wxPyEndAllowThreads(__tstate); | |
9767 | if (PyErr_Occurred()) SWIG_fail; | |
9768 | } | |
9769 | resultobj = SWIG_FromInt((int)result); | |
9770 | return resultobj; | |
9771 | fail: | |
9772 | return NULL; | |
9773 | } | |
9774 | ||
9775 | ||
9776 | static PyObject *_wrap_Joystick_GetPOVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9777 | PyObject *resultobj; | |
9778 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9779 | int result; | |
9780 | PyObject * obj0 = 0 ; | |
9781 | char *kwnames[] = { | |
9782 | (char *) "self", NULL | |
9783 | }; | |
9784 | ||
9785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVPosition",kwnames,&obj0)) goto fail; | |
9786 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9787 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9788 | { | |
9789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9790 | result = (int)(arg1)->GetPOVPosition(); | |
9791 | ||
9792 | wxPyEndAllowThreads(__tstate); | |
9793 | if (PyErr_Occurred()) SWIG_fail; | |
9794 | } | |
9795 | resultobj = SWIG_FromInt((int)result); | |
9796 | return resultobj; | |
9797 | fail: | |
9798 | return NULL; | |
9799 | } | |
9800 | ||
9801 | ||
9802 | static PyObject *_wrap_Joystick_GetPOVCTSPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9803 | PyObject *resultobj; | |
9804 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9805 | int result; | |
9806 | PyObject * obj0 = 0 ; | |
9807 | char *kwnames[] = { | |
9808 | (char *) "self", NULL | |
9809 | }; | |
9810 | ||
9811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVCTSPosition",kwnames,&obj0)) goto fail; | |
9812 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9813 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9814 | { | |
9815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9816 | result = (int)(arg1)->GetPOVCTSPosition(); | |
9817 | ||
9818 | wxPyEndAllowThreads(__tstate); | |
9819 | if (PyErr_Occurred()) SWIG_fail; | |
9820 | } | |
9821 | resultobj = SWIG_FromInt((int)result); | |
9822 | return resultobj; | |
9823 | fail: | |
9824 | return NULL; | |
9825 | } | |
9826 | ||
9827 | ||
9828 | static PyObject *_wrap_Joystick_GetRudderPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9829 | PyObject *resultobj; | |
9830 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9831 | int result; | |
9832 | PyObject * obj0 = 0 ; | |
9833 | char *kwnames[] = { | |
9834 | (char *) "self", NULL | |
9835 | }; | |
9836 | ||
9837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderPosition",kwnames,&obj0)) goto fail; | |
9838 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9839 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9840 | { | |
9841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9842 | result = (int)(arg1)->GetRudderPosition(); | |
9843 | ||
9844 | wxPyEndAllowThreads(__tstate); | |
9845 | if (PyErr_Occurred()) SWIG_fail; | |
9846 | } | |
9847 | resultobj = SWIG_FromInt((int)result); | |
9848 | return resultobj; | |
9849 | fail: | |
9850 | return NULL; | |
9851 | } | |
9852 | ||
9853 | ||
9854 | static PyObject *_wrap_Joystick_GetUPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9855 | PyObject *resultobj; | |
9856 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9857 | int result; | |
9858 | PyObject * obj0 = 0 ; | |
9859 | char *kwnames[] = { | |
9860 | (char *) "self", NULL | |
9861 | }; | |
9862 | ||
9863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUPosition",kwnames,&obj0)) goto fail; | |
9864 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9865 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9866 | { | |
9867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9868 | result = (int)(arg1)->GetUPosition(); | |
9869 | ||
9870 | wxPyEndAllowThreads(__tstate); | |
9871 | if (PyErr_Occurred()) SWIG_fail; | |
9872 | } | |
9873 | resultobj = SWIG_FromInt((int)result); | |
9874 | return resultobj; | |
9875 | fail: | |
9876 | return NULL; | |
9877 | } | |
9878 | ||
9879 | ||
9880 | static PyObject *_wrap_Joystick_GetVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9881 | PyObject *resultobj; | |
9882 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9883 | int result; | |
9884 | PyObject * obj0 = 0 ; | |
9885 | char *kwnames[] = { | |
9886 | (char *) "self", NULL | |
9887 | }; | |
9888 | ||
9889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVPosition",kwnames,&obj0)) goto fail; | |
9890 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9891 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9892 | { | |
9893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9894 | result = (int)(arg1)->GetVPosition(); | |
9895 | ||
9896 | wxPyEndAllowThreads(__tstate); | |
9897 | if (PyErr_Occurred()) SWIG_fail; | |
9898 | } | |
9899 | resultobj = SWIG_FromInt((int)result); | |
9900 | return resultobj; | |
9901 | fail: | |
9902 | return NULL; | |
9903 | } | |
9904 | ||
9905 | ||
9906 | static PyObject *_wrap_Joystick_GetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9907 | PyObject *resultobj; | |
9908 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9909 | int result; | |
9910 | PyObject * obj0 = 0 ; | |
9911 | char *kwnames[] = { | |
9912 | (char *) "self", NULL | |
9913 | }; | |
9914 | ||
9915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMovementThreshold",kwnames,&obj0)) goto fail; | |
9916 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9917 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9918 | { | |
9919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9920 | result = (int)(arg1)->GetMovementThreshold(); | |
9921 | ||
9922 | wxPyEndAllowThreads(__tstate); | |
9923 | if (PyErr_Occurred()) SWIG_fail; | |
9924 | } | |
9925 | resultobj = SWIG_FromInt((int)result); | |
9926 | return resultobj; | |
9927 | fail: | |
9928 | return NULL; | |
9929 | } | |
9930 | ||
9931 | ||
9932 | static PyObject *_wrap_Joystick_SetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9933 | PyObject *resultobj; | |
9934 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9935 | int arg2 ; | |
9936 | PyObject * obj0 = 0 ; | |
9937 | PyObject * obj1 = 0 ; | |
9938 | char *kwnames[] = { | |
9939 | (char *) "self",(char *) "threshold", NULL | |
9940 | }; | |
9941 | ||
9942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Joystick_SetMovementThreshold",kwnames,&obj0,&obj1)) goto fail; | |
9943 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9944 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9945 | arg2 = (int) SWIG_AsInt(obj1); | |
9946 | if (PyErr_Occurred()) SWIG_fail; | |
9947 | { | |
9948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9949 | (arg1)->SetMovementThreshold(arg2); | |
9950 | ||
9951 | wxPyEndAllowThreads(__tstate); | |
9952 | if (PyErr_Occurred()) SWIG_fail; | |
9953 | } | |
9954 | Py_INCREF(Py_None); resultobj = Py_None; | |
9955 | return resultobj; | |
9956 | fail: | |
9957 | return NULL; | |
9958 | } | |
9959 | ||
9960 | ||
9961 | static PyObject *_wrap_Joystick_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9962 | PyObject *resultobj; | |
9963 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9964 | bool result; | |
9965 | PyObject * obj0 = 0 ; | |
9966 | char *kwnames[] = { | |
9967 | (char *) "self", NULL | |
9968 | }; | |
9969 | ||
9970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_IsOk",kwnames,&obj0)) goto fail; | |
9971 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
9972 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9973 | { | |
9974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9975 | result = (bool)(arg1)->IsOk(); | |
9976 | ||
9977 | wxPyEndAllowThreads(__tstate); | |
9978 | if (PyErr_Occurred()) SWIG_fail; | |
9979 | } | |
9980 | { | |
9981 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9982 | } | |
9983 | return resultobj; | |
9984 | fail: | |
9985 | return NULL; | |
9986 | } | |
9987 | ||
9988 | ||
9989 | static PyObject *_wrap_Joystick_GetNumberJoysticks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9990 | PyObject *resultobj; | |
9991 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9992 | int result; | |
9993 | PyObject * obj0 = 0 ; | |
9994 | char *kwnames[] = { | |
9995 | (char *) "self", NULL | |
9996 | }; | |
9997 | ||
9998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberJoysticks",kwnames,&obj0)) goto fail; | |
9999 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10000 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10001 | { | |
10002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10003 | result = (int)(arg1)->GetNumberJoysticks(); | |
10004 | ||
10005 | wxPyEndAllowThreads(__tstate); | |
10006 | if (PyErr_Occurred()) SWIG_fail; | |
10007 | } | |
10008 | resultobj = SWIG_FromInt((int)result); | |
10009 | return resultobj; | |
10010 | fail: | |
10011 | return NULL; | |
10012 | } | |
10013 | ||
10014 | ||
10015 | static PyObject *_wrap_Joystick_GetManufacturerId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10016 | PyObject *resultobj; | |
10017 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10018 | int result; | |
10019 | PyObject * obj0 = 0 ; | |
10020 | char *kwnames[] = { | |
10021 | (char *) "self", NULL | |
10022 | }; | |
10023 | ||
10024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetManufacturerId",kwnames,&obj0)) goto fail; | |
10025 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10026 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10027 | { | |
10028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10029 | result = (int)(arg1)->GetManufacturerId(); | |
10030 | ||
10031 | wxPyEndAllowThreads(__tstate); | |
10032 | if (PyErr_Occurred()) SWIG_fail; | |
10033 | } | |
10034 | resultobj = SWIG_FromInt((int)result); | |
10035 | return resultobj; | |
10036 | fail: | |
10037 | return NULL; | |
10038 | } | |
10039 | ||
10040 | ||
10041 | static PyObject *_wrap_Joystick_GetProductId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10042 | PyObject *resultobj; | |
10043 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10044 | int result; | |
10045 | PyObject * obj0 = 0 ; | |
10046 | char *kwnames[] = { | |
10047 | (char *) "self", NULL | |
10048 | }; | |
10049 | ||
10050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductId",kwnames,&obj0)) goto fail; | |
10051 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10052 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10053 | { | |
10054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10055 | result = (int)(arg1)->GetProductId(); | |
10056 | ||
10057 | wxPyEndAllowThreads(__tstate); | |
10058 | if (PyErr_Occurred()) SWIG_fail; | |
10059 | } | |
10060 | resultobj = SWIG_FromInt((int)result); | |
10061 | return resultobj; | |
10062 | fail: | |
10063 | return NULL; | |
10064 | } | |
10065 | ||
10066 | ||
10067 | static PyObject *_wrap_Joystick_GetProductName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10068 | PyObject *resultobj; | |
10069 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10070 | wxString result; | |
10071 | PyObject * obj0 = 0 ; | |
10072 | char *kwnames[] = { | |
10073 | (char *) "self", NULL | |
10074 | }; | |
10075 | ||
10076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductName",kwnames,&obj0)) goto fail; | |
10077 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10078 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10079 | { | |
10080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10081 | result = (arg1)->GetProductName(); | |
10082 | ||
10083 | wxPyEndAllowThreads(__tstate); | |
10084 | if (PyErr_Occurred()) SWIG_fail; | |
10085 | } | |
10086 | { | |
10087 | #if wxUSE_UNICODE | |
10088 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10089 | #else | |
10090 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10091 | #endif | |
10092 | } | |
10093 | return resultobj; | |
10094 | fail: | |
10095 | return NULL; | |
10096 | } | |
10097 | ||
10098 | ||
10099 | static PyObject *_wrap_Joystick_GetXMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10100 | PyObject *resultobj; | |
10101 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10102 | int result; | |
10103 | PyObject * obj0 = 0 ; | |
10104 | char *kwnames[] = { | |
10105 | (char *) "self", NULL | |
10106 | }; | |
10107 | ||
10108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMin",kwnames,&obj0)) goto fail; | |
10109 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10110 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10111 | { | |
10112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10113 | result = (int)(arg1)->GetXMin(); | |
10114 | ||
10115 | wxPyEndAllowThreads(__tstate); | |
10116 | if (PyErr_Occurred()) SWIG_fail; | |
10117 | } | |
10118 | resultobj = SWIG_FromInt((int)result); | |
10119 | return resultobj; | |
10120 | fail: | |
10121 | return NULL; | |
10122 | } | |
10123 | ||
10124 | ||
10125 | static PyObject *_wrap_Joystick_GetYMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10126 | PyObject *resultobj; | |
10127 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10128 | int result; | |
10129 | PyObject * obj0 = 0 ; | |
10130 | char *kwnames[] = { | |
10131 | (char *) "self", NULL | |
10132 | }; | |
10133 | ||
10134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMin",kwnames,&obj0)) goto fail; | |
10135 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10136 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10137 | { | |
10138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10139 | result = (int)(arg1)->GetYMin(); | |
10140 | ||
10141 | wxPyEndAllowThreads(__tstate); | |
10142 | if (PyErr_Occurred()) SWIG_fail; | |
10143 | } | |
10144 | resultobj = SWIG_FromInt((int)result); | |
10145 | return resultobj; | |
10146 | fail: | |
10147 | return NULL; | |
10148 | } | |
10149 | ||
10150 | ||
10151 | static PyObject *_wrap_Joystick_GetZMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10152 | PyObject *resultobj; | |
10153 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10154 | int result; | |
10155 | PyObject * obj0 = 0 ; | |
10156 | char *kwnames[] = { | |
10157 | (char *) "self", NULL | |
10158 | }; | |
10159 | ||
10160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMin",kwnames,&obj0)) goto fail; | |
10161 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10162 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10163 | { | |
10164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10165 | result = (int)(arg1)->GetZMin(); | |
10166 | ||
10167 | wxPyEndAllowThreads(__tstate); | |
10168 | if (PyErr_Occurred()) SWIG_fail; | |
10169 | } | |
10170 | resultobj = SWIG_FromInt((int)result); | |
10171 | return resultobj; | |
10172 | fail: | |
10173 | return NULL; | |
10174 | } | |
10175 | ||
10176 | ||
10177 | static PyObject *_wrap_Joystick_GetXMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10178 | PyObject *resultobj; | |
10179 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10180 | int result; | |
10181 | PyObject * obj0 = 0 ; | |
10182 | char *kwnames[] = { | |
10183 | (char *) "self", NULL | |
10184 | }; | |
10185 | ||
10186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMax",kwnames,&obj0)) goto fail; | |
10187 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10188 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10189 | { | |
10190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10191 | result = (int)(arg1)->GetXMax(); | |
10192 | ||
10193 | wxPyEndAllowThreads(__tstate); | |
10194 | if (PyErr_Occurred()) SWIG_fail; | |
10195 | } | |
10196 | resultobj = SWIG_FromInt((int)result); | |
10197 | return resultobj; | |
10198 | fail: | |
10199 | return NULL; | |
10200 | } | |
10201 | ||
10202 | ||
10203 | static PyObject *_wrap_Joystick_GetYMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10204 | PyObject *resultobj; | |
10205 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10206 | int result; | |
10207 | PyObject * obj0 = 0 ; | |
10208 | char *kwnames[] = { | |
10209 | (char *) "self", NULL | |
10210 | }; | |
10211 | ||
10212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMax",kwnames,&obj0)) goto fail; | |
10213 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10214 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10215 | { | |
10216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10217 | result = (int)(arg1)->GetYMax(); | |
10218 | ||
10219 | wxPyEndAllowThreads(__tstate); | |
10220 | if (PyErr_Occurred()) SWIG_fail; | |
10221 | } | |
10222 | resultobj = SWIG_FromInt((int)result); | |
10223 | return resultobj; | |
10224 | fail: | |
10225 | return NULL; | |
10226 | } | |
10227 | ||
10228 | ||
10229 | static PyObject *_wrap_Joystick_GetZMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10230 | PyObject *resultobj; | |
10231 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10232 | int result; | |
10233 | PyObject * obj0 = 0 ; | |
10234 | char *kwnames[] = { | |
10235 | (char *) "self", NULL | |
10236 | }; | |
10237 | ||
10238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMax",kwnames,&obj0)) goto fail; | |
10239 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10240 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10241 | { | |
10242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10243 | result = (int)(arg1)->GetZMax(); | |
10244 | ||
10245 | wxPyEndAllowThreads(__tstate); | |
10246 | if (PyErr_Occurred()) SWIG_fail; | |
10247 | } | |
10248 | resultobj = SWIG_FromInt((int)result); | |
10249 | return resultobj; | |
10250 | fail: | |
10251 | return NULL; | |
10252 | } | |
10253 | ||
10254 | ||
10255 | static PyObject *_wrap_Joystick_GetNumberButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10256 | PyObject *resultobj; | |
10257 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10258 | int result; | |
10259 | PyObject * obj0 = 0 ; | |
10260 | char *kwnames[] = { | |
10261 | (char *) "self", NULL | |
10262 | }; | |
10263 | ||
10264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberButtons",kwnames,&obj0)) goto fail; | |
10265 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10266 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10267 | { | |
10268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10269 | result = (int)(arg1)->GetNumberButtons(); | |
10270 | ||
10271 | wxPyEndAllowThreads(__tstate); | |
10272 | if (PyErr_Occurred()) SWIG_fail; | |
10273 | } | |
10274 | resultobj = SWIG_FromInt((int)result); | |
10275 | return resultobj; | |
10276 | fail: | |
10277 | return NULL; | |
10278 | } | |
10279 | ||
10280 | ||
10281 | static PyObject *_wrap_Joystick_GetNumberAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10282 | PyObject *resultobj; | |
10283 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10284 | int result; | |
10285 | PyObject * obj0 = 0 ; | |
10286 | char *kwnames[] = { | |
10287 | (char *) "self", NULL | |
10288 | }; | |
10289 | ||
10290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberAxes",kwnames,&obj0)) goto fail; | |
10291 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10292 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10293 | { | |
10294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10295 | result = (int)(arg1)->GetNumberAxes(); | |
10296 | ||
10297 | wxPyEndAllowThreads(__tstate); | |
10298 | if (PyErr_Occurred()) SWIG_fail; | |
10299 | } | |
10300 | resultobj = SWIG_FromInt((int)result); | |
10301 | return resultobj; | |
10302 | fail: | |
10303 | return NULL; | |
10304 | } | |
10305 | ||
10306 | ||
10307 | static PyObject *_wrap_Joystick_GetMaxButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10308 | PyObject *resultobj; | |
10309 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10310 | int result; | |
10311 | PyObject * obj0 = 0 ; | |
10312 | char *kwnames[] = { | |
10313 | (char *) "self", NULL | |
10314 | }; | |
10315 | ||
10316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxButtons",kwnames,&obj0)) goto fail; | |
10317 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10318 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10319 | { | |
10320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10321 | result = (int)(arg1)->GetMaxButtons(); | |
10322 | ||
10323 | wxPyEndAllowThreads(__tstate); | |
10324 | if (PyErr_Occurred()) SWIG_fail; | |
10325 | } | |
10326 | resultobj = SWIG_FromInt((int)result); | |
10327 | return resultobj; | |
10328 | fail: | |
10329 | return NULL; | |
10330 | } | |
10331 | ||
10332 | ||
10333 | static PyObject *_wrap_Joystick_GetMaxAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10334 | PyObject *resultobj; | |
10335 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10336 | int result; | |
10337 | PyObject * obj0 = 0 ; | |
10338 | char *kwnames[] = { | |
10339 | (char *) "self", NULL | |
10340 | }; | |
10341 | ||
10342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxAxes",kwnames,&obj0)) goto fail; | |
10343 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10345 | { | |
10346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10347 | result = (int)(arg1)->GetMaxAxes(); | |
10348 | ||
10349 | wxPyEndAllowThreads(__tstate); | |
10350 | if (PyErr_Occurred()) SWIG_fail; | |
10351 | } | |
10352 | resultobj = SWIG_FromInt((int)result); | |
10353 | return resultobj; | |
10354 | fail: | |
10355 | return NULL; | |
10356 | } | |
10357 | ||
10358 | ||
10359 | static PyObject *_wrap_Joystick_GetPollingMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10360 | PyObject *resultobj; | |
10361 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10362 | int result; | |
10363 | PyObject * obj0 = 0 ; | |
10364 | char *kwnames[] = { | |
10365 | (char *) "self", NULL | |
10366 | }; | |
10367 | ||
10368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMin",kwnames,&obj0)) goto fail; | |
10369 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10370 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10371 | { | |
10372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10373 | result = (int)(arg1)->GetPollingMin(); | |
10374 | ||
10375 | wxPyEndAllowThreads(__tstate); | |
10376 | if (PyErr_Occurred()) SWIG_fail; | |
10377 | } | |
10378 | resultobj = SWIG_FromInt((int)result); | |
10379 | return resultobj; | |
10380 | fail: | |
10381 | return NULL; | |
10382 | } | |
10383 | ||
10384 | ||
10385 | static PyObject *_wrap_Joystick_GetPollingMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10386 | PyObject *resultobj; | |
10387 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10388 | int result; | |
10389 | PyObject * obj0 = 0 ; | |
10390 | char *kwnames[] = { | |
10391 | (char *) "self", NULL | |
10392 | }; | |
10393 | ||
10394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMax",kwnames,&obj0)) goto fail; | |
10395 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10396 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10397 | { | |
10398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10399 | result = (int)(arg1)->GetPollingMax(); | |
10400 | ||
10401 | wxPyEndAllowThreads(__tstate); | |
10402 | if (PyErr_Occurred()) SWIG_fail; | |
10403 | } | |
10404 | resultobj = SWIG_FromInt((int)result); | |
10405 | return resultobj; | |
10406 | fail: | |
10407 | return NULL; | |
10408 | } | |
10409 | ||
10410 | ||
10411 | static PyObject *_wrap_Joystick_GetRudderMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10412 | PyObject *resultobj; | |
10413 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10414 | int result; | |
10415 | PyObject * obj0 = 0 ; | |
10416 | char *kwnames[] = { | |
10417 | (char *) "self", NULL | |
10418 | }; | |
10419 | ||
10420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMin",kwnames,&obj0)) goto fail; | |
10421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10423 | { | |
10424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10425 | result = (int)(arg1)->GetRudderMin(); | |
10426 | ||
10427 | wxPyEndAllowThreads(__tstate); | |
10428 | if (PyErr_Occurred()) SWIG_fail; | |
10429 | } | |
10430 | resultobj = SWIG_FromInt((int)result); | |
10431 | return resultobj; | |
10432 | fail: | |
10433 | return NULL; | |
10434 | } | |
10435 | ||
10436 | ||
10437 | static PyObject *_wrap_Joystick_GetRudderMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10438 | PyObject *resultobj; | |
10439 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10440 | int result; | |
10441 | PyObject * obj0 = 0 ; | |
10442 | char *kwnames[] = { | |
10443 | (char *) "self", NULL | |
10444 | }; | |
10445 | ||
10446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMax",kwnames,&obj0)) goto fail; | |
10447 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10448 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10449 | { | |
10450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10451 | result = (int)(arg1)->GetRudderMax(); | |
10452 | ||
10453 | wxPyEndAllowThreads(__tstate); | |
10454 | if (PyErr_Occurred()) SWIG_fail; | |
10455 | } | |
10456 | resultobj = SWIG_FromInt((int)result); | |
10457 | return resultobj; | |
10458 | fail: | |
10459 | return NULL; | |
10460 | } | |
10461 | ||
10462 | ||
10463 | static PyObject *_wrap_Joystick_GetUMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10464 | PyObject *resultobj; | |
10465 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10466 | int result; | |
10467 | PyObject * obj0 = 0 ; | |
10468 | char *kwnames[] = { | |
10469 | (char *) "self", NULL | |
10470 | }; | |
10471 | ||
10472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMin",kwnames,&obj0)) goto fail; | |
10473 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10474 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10475 | { | |
10476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10477 | result = (int)(arg1)->GetUMin(); | |
10478 | ||
10479 | wxPyEndAllowThreads(__tstate); | |
10480 | if (PyErr_Occurred()) SWIG_fail; | |
10481 | } | |
10482 | resultobj = SWIG_FromInt((int)result); | |
10483 | return resultobj; | |
10484 | fail: | |
10485 | return NULL; | |
10486 | } | |
10487 | ||
10488 | ||
10489 | static PyObject *_wrap_Joystick_GetUMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10490 | PyObject *resultobj; | |
10491 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10492 | int result; | |
10493 | PyObject * obj0 = 0 ; | |
10494 | char *kwnames[] = { | |
10495 | (char *) "self", NULL | |
10496 | }; | |
10497 | ||
10498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMax",kwnames,&obj0)) goto fail; | |
10499 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10500 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10501 | { | |
10502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10503 | result = (int)(arg1)->GetUMax(); | |
10504 | ||
10505 | wxPyEndAllowThreads(__tstate); | |
10506 | if (PyErr_Occurred()) SWIG_fail; | |
10507 | } | |
10508 | resultobj = SWIG_FromInt((int)result); | |
10509 | return resultobj; | |
10510 | fail: | |
10511 | return NULL; | |
10512 | } | |
10513 | ||
10514 | ||
10515 | static PyObject *_wrap_Joystick_GetVMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10516 | PyObject *resultobj; | |
10517 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10518 | int result; | |
10519 | PyObject * obj0 = 0 ; | |
10520 | char *kwnames[] = { | |
10521 | (char *) "self", NULL | |
10522 | }; | |
10523 | ||
10524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMin",kwnames,&obj0)) goto fail; | |
10525 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10526 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10527 | { | |
10528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10529 | result = (int)(arg1)->GetVMin(); | |
10530 | ||
10531 | wxPyEndAllowThreads(__tstate); | |
10532 | if (PyErr_Occurred()) SWIG_fail; | |
10533 | } | |
10534 | resultobj = SWIG_FromInt((int)result); | |
10535 | return resultobj; | |
10536 | fail: | |
10537 | return NULL; | |
10538 | } | |
10539 | ||
10540 | ||
10541 | static PyObject *_wrap_Joystick_GetVMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10542 | PyObject *resultobj; | |
10543 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10544 | int result; | |
10545 | PyObject * obj0 = 0 ; | |
10546 | char *kwnames[] = { | |
10547 | (char *) "self", NULL | |
10548 | }; | |
10549 | ||
10550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMax",kwnames,&obj0)) goto fail; | |
10551 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10553 | { | |
10554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10555 | result = (int)(arg1)->GetVMax(); | |
10556 | ||
10557 | wxPyEndAllowThreads(__tstate); | |
10558 | if (PyErr_Occurred()) SWIG_fail; | |
10559 | } | |
10560 | resultobj = SWIG_FromInt((int)result); | |
10561 | return resultobj; | |
10562 | fail: | |
10563 | return NULL; | |
10564 | } | |
10565 | ||
10566 | ||
10567 | static PyObject *_wrap_Joystick_HasRudder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10568 | PyObject *resultobj; | |
10569 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10570 | bool result; | |
10571 | PyObject * obj0 = 0 ; | |
10572 | char *kwnames[] = { | |
10573 | (char *) "self", NULL | |
10574 | }; | |
10575 | ||
10576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasRudder",kwnames,&obj0)) goto fail; | |
10577 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10578 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10579 | { | |
10580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10581 | result = (bool)(arg1)->HasRudder(); | |
10582 | ||
10583 | wxPyEndAllowThreads(__tstate); | |
10584 | if (PyErr_Occurred()) SWIG_fail; | |
10585 | } | |
10586 | { | |
10587 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10588 | } | |
10589 | return resultobj; | |
10590 | fail: | |
10591 | return NULL; | |
10592 | } | |
10593 | ||
10594 | ||
10595 | static PyObject *_wrap_Joystick_HasZ(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10596 | PyObject *resultobj; | |
10597 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10598 | bool result; | |
10599 | PyObject * obj0 = 0 ; | |
10600 | char *kwnames[] = { | |
10601 | (char *) "self", NULL | |
10602 | }; | |
10603 | ||
10604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasZ",kwnames,&obj0)) goto fail; | |
10605 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10606 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10607 | { | |
10608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10609 | result = (bool)(arg1)->HasZ(); | |
10610 | ||
10611 | wxPyEndAllowThreads(__tstate); | |
10612 | if (PyErr_Occurred()) SWIG_fail; | |
10613 | } | |
10614 | { | |
10615 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10616 | } | |
10617 | return resultobj; | |
10618 | fail: | |
10619 | return NULL; | |
10620 | } | |
10621 | ||
10622 | ||
10623 | static PyObject *_wrap_Joystick_HasU(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10624 | PyObject *resultobj; | |
10625 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10626 | bool result; | |
10627 | PyObject * obj0 = 0 ; | |
10628 | char *kwnames[] = { | |
10629 | (char *) "self", NULL | |
10630 | }; | |
10631 | ||
10632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasU",kwnames,&obj0)) goto fail; | |
10633 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10634 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10635 | { | |
10636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10637 | result = (bool)(arg1)->HasU(); | |
10638 | ||
10639 | wxPyEndAllowThreads(__tstate); | |
10640 | if (PyErr_Occurred()) SWIG_fail; | |
10641 | } | |
10642 | { | |
10643 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10644 | } | |
10645 | return resultobj; | |
10646 | fail: | |
10647 | return NULL; | |
10648 | } | |
10649 | ||
10650 | ||
10651 | static PyObject *_wrap_Joystick_HasV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10652 | PyObject *resultobj; | |
10653 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10654 | bool result; | |
10655 | PyObject * obj0 = 0 ; | |
10656 | char *kwnames[] = { | |
10657 | (char *) "self", NULL | |
10658 | }; | |
10659 | ||
10660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasV",kwnames,&obj0)) goto fail; | |
10661 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10662 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10663 | { | |
10664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10665 | result = (bool)(arg1)->HasV(); | |
10666 | ||
10667 | wxPyEndAllowThreads(__tstate); | |
10668 | if (PyErr_Occurred()) SWIG_fail; | |
10669 | } | |
10670 | { | |
10671 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10672 | } | |
10673 | return resultobj; | |
10674 | fail: | |
10675 | return NULL; | |
10676 | } | |
10677 | ||
10678 | ||
10679 | static PyObject *_wrap_Joystick_HasPOV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10680 | PyObject *resultobj; | |
10681 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10682 | bool result; | |
10683 | PyObject * obj0 = 0 ; | |
10684 | char *kwnames[] = { | |
10685 | (char *) "self", NULL | |
10686 | }; | |
10687 | ||
10688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV",kwnames,&obj0)) goto fail; | |
10689 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10690 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10691 | { | |
10692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10693 | result = (bool)(arg1)->HasPOV(); | |
10694 | ||
10695 | wxPyEndAllowThreads(__tstate); | |
10696 | if (PyErr_Occurred()) SWIG_fail; | |
10697 | } | |
10698 | { | |
10699 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10700 | } | |
10701 | return resultobj; | |
10702 | fail: | |
10703 | return NULL; | |
10704 | } | |
10705 | ||
10706 | ||
10707 | static PyObject *_wrap_Joystick_HasPOV4Dir(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10708 | PyObject *resultobj; | |
10709 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10710 | bool result; | |
10711 | PyObject * obj0 = 0 ; | |
10712 | char *kwnames[] = { | |
10713 | (char *) "self", NULL | |
10714 | }; | |
10715 | ||
10716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV4Dir",kwnames,&obj0)) goto fail; | |
10717 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10718 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10719 | { | |
10720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10721 | result = (bool)(arg1)->HasPOV4Dir(); | |
10722 | ||
10723 | wxPyEndAllowThreads(__tstate); | |
10724 | if (PyErr_Occurred()) SWIG_fail; | |
10725 | } | |
10726 | { | |
10727 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10728 | } | |
10729 | return resultobj; | |
10730 | fail: | |
10731 | return NULL; | |
10732 | } | |
10733 | ||
10734 | ||
10735 | static PyObject *_wrap_Joystick_HasPOVCTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10736 | PyObject *resultobj; | |
10737 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10738 | bool result; | |
10739 | PyObject * obj0 = 0 ; | |
10740 | char *kwnames[] = { | |
10741 | (char *) "self", NULL | |
10742 | }; | |
10743 | ||
10744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOVCTS",kwnames,&obj0)) goto fail; | |
10745 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10746 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10747 | { | |
10748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10749 | result = (bool)(arg1)->HasPOVCTS(); | |
10750 | ||
10751 | wxPyEndAllowThreads(__tstate); | |
10752 | if (PyErr_Occurred()) SWIG_fail; | |
10753 | } | |
10754 | { | |
10755 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10756 | } | |
10757 | return resultobj; | |
10758 | fail: | |
10759 | return NULL; | |
10760 | } | |
10761 | ||
10762 | ||
10763 | static PyObject *_wrap_Joystick_SetCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10764 | PyObject *resultobj; | |
10765 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10766 | wxWindow *arg2 = (wxWindow *) 0 ; | |
10767 | int arg3 = (int) 0 ; | |
10768 | bool result; | |
10769 | PyObject * obj0 = 0 ; | |
10770 | PyObject * obj1 = 0 ; | |
10771 | PyObject * obj2 = 0 ; | |
10772 | char *kwnames[] = { | |
10773 | (char *) "self",(char *) "win",(char *) "pollingFreq", NULL | |
10774 | }; | |
10775 | ||
10776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Joystick_SetCapture",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10777 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10778 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10779 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
10780 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10781 | if (obj2) { | |
10782 | arg3 = (int) SWIG_AsInt(obj2); | |
10783 | if (PyErr_Occurred()) SWIG_fail; | |
10784 | } | |
10785 | { | |
10786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10787 | result = (bool)(arg1)->SetCapture(arg2,arg3); | |
10788 | ||
10789 | wxPyEndAllowThreads(__tstate); | |
10790 | if (PyErr_Occurred()) SWIG_fail; | |
10791 | } | |
10792 | { | |
10793 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10794 | } | |
10795 | return resultobj; | |
10796 | fail: | |
10797 | return NULL; | |
10798 | } | |
10799 | ||
10800 | ||
10801 | static PyObject *_wrap_Joystick_ReleaseCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10802 | PyObject *resultobj; | |
10803 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10804 | bool result; | |
10805 | PyObject * obj0 = 0 ; | |
10806 | char *kwnames[] = { | |
10807 | (char *) "self", NULL | |
10808 | }; | |
10809 | ||
10810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_ReleaseCapture",kwnames,&obj0)) goto fail; | |
10811 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10812 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10813 | { | |
10814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10815 | result = (bool)(arg1)->ReleaseCapture(); | |
10816 | ||
10817 | wxPyEndAllowThreads(__tstate); | |
10818 | if (PyErr_Occurred()) SWIG_fail; | |
10819 | } | |
10820 | { | |
10821 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10822 | } | |
10823 | return resultobj; | |
10824 | fail: | |
10825 | return NULL; | |
10826 | } | |
10827 | ||
10828 | ||
10829 | static PyObject * Joystick_swigregister(PyObject *self, PyObject *args) { | |
10830 | PyObject *obj; | |
10831 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10832 | SWIG_TypeClientData(SWIGTYPE_p_wxJoystick, obj); | |
10833 | Py_INCREF(obj); | |
10834 | return Py_BuildValue((char *)""); | |
10835 | } | |
10836 | static PyObject *_wrap_JoystickEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10837 | PyObject *resultobj; | |
10838 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10839 | wxPoint *arg2 = (wxPoint *) 0 ; | |
10840 | PyObject * obj0 = 0 ; | |
10841 | PyObject * obj1 = 0 ; | |
10842 | char *kwnames[] = { | |
10843 | (char *) "self",(char *) "m_pos", NULL | |
10844 | }; | |
10845 | ||
10846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail; | |
10847 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
10848 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10849 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint, | |
10850 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10851 | if (arg1) (arg1)->m_pos = *arg2; | |
10852 | ||
10853 | Py_INCREF(Py_None); resultobj = Py_None; | |
10854 | return resultobj; | |
10855 | fail: | |
10856 | return NULL; | |
10857 | } | |
10858 | ||
10859 | ||
10860 | static PyObject *_wrap_JoystickEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10861 | PyObject *resultobj; | |
10862 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10863 | wxPoint *result; | |
10864 | PyObject * obj0 = 0 ; | |
10865 | char *kwnames[] = { | |
10866 | (char *) "self", NULL | |
10867 | }; | |
10868 | ||
10869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_pos_get",kwnames,&obj0)) goto fail; | |
10870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
10871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10872 | result = (wxPoint *)& ((arg1)->m_pos); | |
10873 | ||
10874 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); | |
10875 | return resultobj; | |
10876 | fail: | |
10877 | return NULL; | |
10878 | } | |
10879 | ||
10880 | ||
10881 | static PyObject *_wrap_JoystickEvent_m_zPosition_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10882 | PyObject *resultobj; | |
10883 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10884 | int arg2 ; | |
10885 | PyObject * obj0 = 0 ; | |
10886 | PyObject * obj1 = 0 ; | |
10887 | char *kwnames[] = { | |
10888 | (char *) "self",(char *) "m_zPosition", NULL | |
10889 | }; | |
10890 | ||
10891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_zPosition_set",kwnames,&obj0,&obj1)) goto fail; | |
10892 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
10893 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10894 | arg2 = (int) SWIG_AsInt(obj1); | |
10895 | if (PyErr_Occurred()) SWIG_fail; | |
10896 | if (arg1) (arg1)->m_zPosition = arg2; | |
10897 | ||
10898 | Py_INCREF(Py_None); resultobj = Py_None; | |
10899 | return resultobj; | |
10900 | fail: | |
10901 | return NULL; | |
10902 | } | |
10903 | ||
10904 | ||
10905 | static PyObject *_wrap_JoystickEvent_m_zPosition_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10906 | PyObject *resultobj; | |
10907 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10908 | int result; | |
10909 | PyObject * obj0 = 0 ; | |
10910 | char *kwnames[] = { | |
10911 | (char *) "self", NULL | |
10912 | }; | |
10913 | ||
10914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_zPosition_get",kwnames,&obj0)) goto fail; | |
10915 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
10916 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10917 | result = (int) ((arg1)->m_zPosition); | |
10918 | ||
10919 | resultobj = SWIG_FromInt((int)result); | |
10920 | return resultobj; | |
10921 | fail: | |
10922 | return NULL; | |
10923 | } | |
10924 | ||
10925 | ||
10926 | static PyObject *_wrap_JoystickEvent_m_buttonChange_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10927 | PyObject *resultobj; | |
10928 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10929 | int arg2 ; | |
10930 | PyObject * obj0 = 0 ; | |
10931 | PyObject * obj1 = 0 ; | |
10932 | char *kwnames[] = { | |
10933 | (char *) "self",(char *) "m_buttonChange", NULL | |
10934 | }; | |
10935 | ||
10936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonChange_set",kwnames,&obj0,&obj1)) goto fail; | |
10937 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
10938 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10939 | arg2 = (int) SWIG_AsInt(obj1); | |
10940 | if (PyErr_Occurred()) SWIG_fail; | |
10941 | if (arg1) (arg1)->m_buttonChange = arg2; | |
10942 | ||
10943 | Py_INCREF(Py_None); resultobj = Py_None; | |
10944 | return resultobj; | |
10945 | fail: | |
10946 | return NULL; | |
10947 | } | |
10948 | ||
10949 | ||
10950 | static PyObject *_wrap_JoystickEvent_m_buttonChange_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10951 | PyObject *resultobj; | |
10952 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10953 | int result; | |
10954 | PyObject * obj0 = 0 ; | |
10955 | char *kwnames[] = { | |
10956 | (char *) "self", NULL | |
10957 | }; | |
10958 | ||
10959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonChange_get",kwnames,&obj0)) goto fail; | |
10960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
10961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10962 | result = (int) ((arg1)->m_buttonChange); | |
10963 | ||
10964 | resultobj = SWIG_FromInt((int)result); | |
10965 | return resultobj; | |
10966 | fail: | |
10967 | return NULL; | |
10968 | } | |
10969 | ||
10970 | ||
10971 | static PyObject *_wrap_JoystickEvent_m_buttonState_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10972 | PyObject *resultobj; | |
10973 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10974 | int arg2 ; | |
10975 | PyObject * obj0 = 0 ; | |
10976 | PyObject * obj1 = 0 ; | |
10977 | char *kwnames[] = { | |
10978 | (char *) "self",(char *) "m_buttonState", NULL | |
10979 | }; | |
10980 | ||
10981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonState_set",kwnames,&obj0,&obj1)) goto fail; | |
10982 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
10983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10984 | arg2 = (int) SWIG_AsInt(obj1); | |
10985 | if (PyErr_Occurred()) SWIG_fail; | |
10986 | if (arg1) (arg1)->m_buttonState = arg2; | |
10987 | ||
10988 | Py_INCREF(Py_None); resultobj = Py_None; | |
10989 | return resultobj; | |
10990 | fail: | |
10991 | return NULL; | |
10992 | } | |
10993 | ||
10994 | ||
10995 | static PyObject *_wrap_JoystickEvent_m_buttonState_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10996 | PyObject *resultobj; | |
10997 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10998 | int result; | |
10999 | PyObject * obj0 = 0 ; | |
11000 | char *kwnames[] = { | |
11001 | (char *) "self", NULL | |
11002 | }; | |
11003 | ||
11004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonState_get",kwnames,&obj0)) goto fail; | |
11005 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11006 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11007 | result = (int) ((arg1)->m_buttonState); | |
11008 | ||
11009 | resultobj = SWIG_FromInt((int)result); | |
11010 | return resultobj; | |
11011 | fail: | |
11012 | return NULL; | |
11013 | } | |
11014 | ||
11015 | ||
11016 | static PyObject *_wrap_JoystickEvent_m_joyStick_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11017 | PyObject *resultobj; | |
11018 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11019 | int arg2 ; | |
11020 | PyObject * obj0 = 0 ; | |
11021 | PyObject * obj1 = 0 ; | |
11022 | char *kwnames[] = { | |
11023 | (char *) "self",(char *) "m_joyStick", NULL | |
11024 | }; | |
11025 | ||
11026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_joyStick_set",kwnames,&obj0,&obj1)) goto fail; | |
11027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11029 | arg2 = (int) SWIG_AsInt(obj1); | |
11030 | if (PyErr_Occurred()) SWIG_fail; | |
11031 | if (arg1) (arg1)->m_joyStick = arg2; | |
11032 | ||
11033 | Py_INCREF(Py_None); resultobj = Py_None; | |
11034 | return resultobj; | |
11035 | fail: | |
11036 | return NULL; | |
11037 | } | |
11038 | ||
11039 | ||
11040 | static PyObject *_wrap_JoystickEvent_m_joyStick_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11041 | PyObject *resultobj; | |
11042 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11043 | int result; | |
11044 | PyObject * obj0 = 0 ; | |
11045 | char *kwnames[] = { | |
11046 | (char *) "self", NULL | |
11047 | }; | |
11048 | ||
11049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_joyStick_get",kwnames,&obj0)) goto fail; | |
11050 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11051 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11052 | result = (int) ((arg1)->m_joyStick); | |
11053 | ||
11054 | resultobj = SWIG_FromInt((int)result); | |
11055 | return resultobj; | |
11056 | fail: | |
11057 | return NULL; | |
11058 | } | |
11059 | ||
11060 | ||
11061 | static PyObject *_wrap_new_JoystickEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11062 | PyObject *resultobj; | |
11063 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
11064 | int arg2 = (int) 0 ; | |
11065 | int arg3 = (int) wxJOYSTICK1 ; | |
11066 | int arg4 = (int) 0 ; | |
11067 | wxJoystickEvent *result; | |
11068 | PyObject * obj0 = 0 ; | |
11069 | PyObject * obj1 = 0 ; | |
11070 | PyObject * obj2 = 0 ; | |
11071 | PyObject * obj3 = 0 ; | |
11072 | char *kwnames[] = { | |
11073 | (char *) "type",(char *) "state",(char *) "joystick",(char *) "change", NULL | |
11074 | }; | |
11075 | ||
11076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_JoystickEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
11077 | if (obj0) { | |
11078 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
11079 | if (PyErr_Occurred()) SWIG_fail; | |
11080 | } | |
11081 | if (obj1) { | |
11082 | arg2 = (int) SWIG_AsInt(obj1); | |
11083 | if (PyErr_Occurred()) SWIG_fail; | |
11084 | } | |
11085 | if (obj2) { | |
11086 | arg3 = (int) SWIG_AsInt(obj2); | |
11087 | if (PyErr_Occurred()) SWIG_fail; | |
11088 | } | |
11089 | if (obj3) { | |
11090 | arg4 = (int) SWIG_AsInt(obj3); | |
11091 | if (PyErr_Occurred()) SWIG_fail; | |
11092 | } | |
11093 | { | |
11094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11095 | result = (wxJoystickEvent *)new wxJoystickEvent(arg1,arg2,arg3,arg4); | |
11096 | ||
11097 | wxPyEndAllowThreads(__tstate); | |
11098 | if (PyErr_Occurred()) SWIG_fail; | |
11099 | } | |
11100 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystickEvent, 1); | |
11101 | return resultobj; | |
11102 | fail: | |
11103 | return NULL; | |
11104 | } | |
11105 | ||
11106 | ||
11107 | static PyObject *_wrap_JoystickEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11108 | PyObject *resultobj; | |
11109 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11110 | wxPoint result; | |
11111 | PyObject * obj0 = 0 ; | |
11112 | char *kwnames[] = { | |
11113 | (char *) "self", NULL | |
11114 | }; | |
11115 | ||
11116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetPosition",kwnames,&obj0)) goto fail; | |
11117 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11118 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11119 | { | |
11120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11121 | result = ((wxJoystickEvent const *)arg1)->GetPosition(); | |
11122 | ||
11123 | wxPyEndAllowThreads(__tstate); | |
11124 | if (PyErr_Occurred()) SWIG_fail; | |
11125 | } | |
11126 | { | |
11127 | wxPoint * resultptr; | |
11128 | resultptr = new wxPoint((wxPoint &) result); | |
11129 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
11130 | } | |
11131 | return resultobj; | |
11132 | fail: | |
11133 | return NULL; | |
11134 | } | |
11135 | ||
11136 | ||
11137 | static PyObject *_wrap_JoystickEvent_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11138 | PyObject *resultobj; | |
11139 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11140 | int result; | |
11141 | PyObject * obj0 = 0 ; | |
11142 | char *kwnames[] = { | |
11143 | (char *) "self", NULL | |
11144 | }; | |
11145 | ||
11146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetZPosition",kwnames,&obj0)) goto fail; | |
11147 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11148 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11149 | { | |
11150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11151 | result = (int)((wxJoystickEvent const *)arg1)->GetZPosition(); | |
11152 | ||
11153 | wxPyEndAllowThreads(__tstate); | |
11154 | if (PyErr_Occurred()) SWIG_fail; | |
11155 | } | |
11156 | resultobj = SWIG_FromInt((int)result); | |
11157 | return resultobj; | |
11158 | fail: | |
11159 | return NULL; | |
11160 | } | |
11161 | ||
11162 | ||
11163 | static PyObject *_wrap_JoystickEvent_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11164 | PyObject *resultobj; | |
11165 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11166 | int result; | |
11167 | PyObject * obj0 = 0 ; | |
11168 | char *kwnames[] = { | |
11169 | (char *) "self", NULL | |
11170 | }; | |
11171 | ||
11172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonState",kwnames,&obj0)) goto fail; | |
11173 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11174 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11175 | { | |
11176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11177 | result = (int)((wxJoystickEvent const *)arg1)->GetButtonState(); | |
11178 | ||
11179 | wxPyEndAllowThreads(__tstate); | |
11180 | if (PyErr_Occurred()) SWIG_fail; | |
11181 | } | |
11182 | resultobj = SWIG_FromInt((int)result); | |
11183 | return resultobj; | |
11184 | fail: | |
11185 | return NULL; | |
11186 | } | |
11187 | ||
11188 | ||
11189 | static PyObject *_wrap_JoystickEvent_GetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11190 | PyObject *resultobj; | |
11191 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11192 | int result; | |
11193 | PyObject * obj0 = 0 ; | |
11194 | char *kwnames[] = { | |
11195 | (char *) "self", NULL | |
11196 | }; | |
11197 | ||
11198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonChange",kwnames,&obj0)) goto fail; | |
11199 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11200 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11201 | { | |
11202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11203 | result = (int)((wxJoystickEvent const *)arg1)->GetButtonChange(); | |
11204 | ||
11205 | wxPyEndAllowThreads(__tstate); | |
11206 | if (PyErr_Occurred()) SWIG_fail; | |
11207 | } | |
11208 | resultobj = SWIG_FromInt((int)result); | |
11209 | return resultobj; | |
11210 | fail: | |
11211 | return NULL; | |
11212 | } | |
11213 | ||
11214 | ||
11215 | static PyObject *_wrap_JoystickEvent_GetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11216 | PyObject *resultobj; | |
11217 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11218 | int result; | |
11219 | PyObject * obj0 = 0 ; | |
11220 | char *kwnames[] = { | |
11221 | (char *) "self", NULL | |
11222 | }; | |
11223 | ||
11224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetJoystick",kwnames,&obj0)) goto fail; | |
11225 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11226 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11227 | { | |
11228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11229 | result = (int)((wxJoystickEvent const *)arg1)->GetJoystick(); | |
11230 | ||
11231 | wxPyEndAllowThreads(__tstate); | |
11232 | if (PyErr_Occurred()) SWIG_fail; | |
11233 | } | |
11234 | resultobj = SWIG_FromInt((int)result); | |
11235 | return resultobj; | |
11236 | fail: | |
11237 | return NULL; | |
11238 | } | |
11239 | ||
11240 | ||
11241 | static PyObject *_wrap_JoystickEvent_SetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11242 | PyObject *resultobj; | |
11243 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11244 | int arg2 ; | |
11245 | PyObject * obj0 = 0 ; | |
11246 | PyObject * obj1 = 0 ; | |
11247 | char *kwnames[] = { | |
11248 | (char *) "self",(char *) "stick", NULL | |
11249 | }; | |
11250 | ||
11251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetJoystick",kwnames,&obj0,&obj1)) goto fail; | |
11252 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11253 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11254 | arg2 = (int) SWIG_AsInt(obj1); | |
11255 | if (PyErr_Occurred()) SWIG_fail; | |
11256 | { | |
11257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11258 | (arg1)->SetJoystick(arg2); | |
11259 | ||
11260 | wxPyEndAllowThreads(__tstate); | |
11261 | if (PyErr_Occurred()) SWIG_fail; | |
11262 | } | |
11263 | Py_INCREF(Py_None); resultobj = Py_None; | |
11264 | return resultobj; | |
11265 | fail: | |
11266 | return NULL; | |
11267 | } | |
11268 | ||
11269 | ||
11270 | static PyObject *_wrap_JoystickEvent_SetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11271 | PyObject *resultobj; | |
11272 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11273 | int arg2 ; | |
11274 | PyObject * obj0 = 0 ; | |
11275 | PyObject * obj1 = 0 ; | |
11276 | char *kwnames[] = { | |
11277 | (char *) "self",(char *) "state", NULL | |
11278 | }; | |
11279 | ||
11280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonState",kwnames,&obj0,&obj1)) goto fail; | |
11281 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11282 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11283 | arg2 = (int) SWIG_AsInt(obj1); | |
11284 | if (PyErr_Occurred()) SWIG_fail; | |
11285 | { | |
11286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11287 | (arg1)->SetButtonState(arg2); | |
11288 | ||
11289 | wxPyEndAllowThreads(__tstate); | |
11290 | if (PyErr_Occurred()) SWIG_fail; | |
11291 | } | |
11292 | Py_INCREF(Py_None); resultobj = Py_None; | |
11293 | return resultobj; | |
11294 | fail: | |
11295 | return NULL; | |
11296 | } | |
11297 | ||
11298 | ||
11299 | static PyObject *_wrap_JoystickEvent_SetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11300 | PyObject *resultobj; | |
11301 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11302 | int arg2 ; | |
11303 | PyObject * obj0 = 0 ; | |
11304 | PyObject * obj1 = 0 ; | |
11305 | char *kwnames[] = { | |
11306 | (char *) "self",(char *) "change", NULL | |
11307 | }; | |
11308 | ||
11309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonChange",kwnames,&obj0,&obj1)) goto fail; | |
11310 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11311 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11312 | arg2 = (int) SWIG_AsInt(obj1); | |
11313 | if (PyErr_Occurred()) SWIG_fail; | |
11314 | { | |
11315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11316 | (arg1)->SetButtonChange(arg2); | |
11317 | ||
11318 | wxPyEndAllowThreads(__tstate); | |
11319 | if (PyErr_Occurred()) SWIG_fail; | |
11320 | } | |
11321 | Py_INCREF(Py_None); resultobj = Py_None; | |
11322 | return resultobj; | |
11323 | fail: | |
11324 | return NULL; | |
11325 | } | |
11326 | ||
11327 | ||
11328 | static PyObject *_wrap_JoystickEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11329 | PyObject *resultobj; | |
11330 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11331 | wxPoint *arg2 = 0 ; | |
11332 | wxPoint temp2 ; | |
11333 | PyObject * obj0 = 0 ; | |
11334 | PyObject * obj1 = 0 ; | |
11335 | char *kwnames[] = { | |
11336 | (char *) "self",(char *) "pos", NULL | |
11337 | }; | |
11338 | ||
11339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
11340 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11341 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11342 | { | |
11343 | arg2 = &temp2; | |
11344 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11345 | } | |
11346 | { | |
11347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11348 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
11349 | ||
11350 | wxPyEndAllowThreads(__tstate); | |
11351 | if (PyErr_Occurred()) SWIG_fail; | |
11352 | } | |
11353 | Py_INCREF(Py_None); resultobj = Py_None; | |
11354 | return resultobj; | |
11355 | fail: | |
11356 | return NULL; | |
11357 | } | |
11358 | ||
11359 | ||
11360 | static PyObject *_wrap_JoystickEvent_SetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11361 | PyObject *resultobj; | |
11362 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11363 | int arg2 ; | |
11364 | PyObject * obj0 = 0 ; | |
11365 | PyObject * obj1 = 0 ; | |
11366 | char *kwnames[] = { | |
11367 | (char *) "self",(char *) "zPos", NULL | |
11368 | }; | |
11369 | ||
11370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetZPosition",kwnames,&obj0,&obj1)) goto fail; | |
11371 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11372 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11373 | arg2 = (int) SWIG_AsInt(obj1); | |
11374 | if (PyErr_Occurred()) SWIG_fail; | |
11375 | { | |
11376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11377 | (arg1)->SetZPosition(arg2); | |
11378 | ||
11379 | wxPyEndAllowThreads(__tstate); | |
11380 | if (PyErr_Occurred()) SWIG_fail; | |
11381 | } | |
11382 | Py_INCREF(Py_None); resultobj = Py_None; | |
11383 | return resultobj; | |
11384 | fail: | |
11385 | return NULL; | |
11386 | } | |
11387 | ||
11388 | ||
11389 | static PyObject *_wrap_JoystickEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11390 | PyObject *resultobj; | |
11391 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11392 | bool result; | |
11393 | PyObject * obj0 = 0 ; | |
11394 | char *kwnames[] = { | |
11395 | (char *) "self", NULL | |
11396 | }; | |
11397 | ||
11398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsButton",kwnames,&obj0)) goto fail; | |
11399 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11400 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11401 | { | |
11402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11403 | result = (bool)((wxJoystickEvent const *)arg1)->IsButton(); | |
11404 | ||
11405 | wxPyEndAllowThreads(__tstate); | |
11406 | if (PyErr_Occurred()) SWIG_fail; | |
11407 | } | |
11408 | { | |
11409 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11410 | } | |
11411 | return resultobj; | |
11412 | fail: | |
11413 | return NULL; | |
11414 | } | |
11415 | ||
11416 | ||
11417 | static PyObject *_wrap_JoystickEvent_IsMove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11418 | PyObject *resultobj; | |
11419 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11420 | bool result; | |
11421 | PyObject * obj0 = 0 ; | |
11422 | char *kwnames[] = { | |
11423 | (char *) "self", NULL | |
11424 | }; | |
11425 | ||
11426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsMove",kwnames,&obj0)) goto fail; | |
11427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11429 | { | |
11430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11431 | result = (bool)((wxJoystickEvent const *)arg1)->IsMove(); | |
11432 | ||
11433 | wxPyEndAllowThreads(__tstate); | |
11434 | if (PyErr_Occurred()) SWIG_fail; | |
11435 | } | |
11436 | { | |
11437 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11438 | } | |
11439 | return resultobj; | |
11440 | fail: | |
11441 | return NULL; | |
11442 | } | |
11443 | ||
11444 | ||
11445 | static PyObject *_wrap_JoystickEvent_IsZMove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11446 | PyObject *resultobj; | |
11447 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11448 | bool result; | |
11449 | PyObject * obj0 = 0 ; | |
11450 | char *kwnames[] = { | |
11451 | (char *) "self", NULL | |
11452 | }; | |
11453 | ||
11454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsZMove",kwnames,&obj0)) goto fail; | |
11455 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11456 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11457 | { | |
11458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11459 | result = (bool)((wxJoystickEvent const *)arg1)->IsZMove(); | |
11460 | ||
11461 | wxPyEndAllowThreads(__tstate); | |
11462 | if (PyErr_Occurred()) SWIG_fail; | |
11463 | } | |
11464 | { | |
11465 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11466 | } | |
11467 | return resultobj; | |
11468 | fail: | |
11469 | return NULL; | |
11470 | } | |
11471 | ||
11472 | ||
11473 | static PyObject *_wrap_JoystickEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11474 | PyObject *resultobj; | |
11475 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11476 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
11477 | bool result; | |
11478 | PyObject * obj0 = 0 ; | |
11479 | PyObject * obj1 = 0 ; | |
11480 | char *kwnames[] = { | |
11481 | (char *) "self",(char *) "but", NULL | |
11482 | }; | |
11483 | ||
11484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail; | |
11485 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11486 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11487 | if (obj1) { | |
11488 | arg2 = (int) SWIG_AsInt(obj1); | |
11489 | if (PyErr_Occurred()) SWIG_fail; | |
11490 | } | |
11491 | { | |
11492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11493 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonDown(arg2); | |
11494 | ||
11495 | wxPyEndAllowThreads(__tstate); | |
11496 | if (PyErr_Occurred()) SWIG_fail; | |
11497 | } | |
11498 | { | |
11499 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11500 | } | |
11501 | return resultobj; | |
11502 | fail: | |
11503 | return NULL; | |
11504 | } | |
11505 | ||
11506 | ||
11507 | static PyObject *_wrap_JoystickEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11508 | PyObject *resultobj; | |
11509 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11510 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
11511 | bool result; | |
11512 | PyObject * obj0 = 0 ; | |
11513 | PyObject * obj1 = 0 ; | |
11514 | char *kwnames[] = { | |
11515 | (char *) "self",(char *) "but", NULL | |
11516 | }; | |
11517 | ||
11518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail; | |
11519 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11520 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11521 | if (obj1) { | |
11522 | arg2 = (int) SWIG_AsInt(obj1); | |
11523 | if (PyErr_Occurred()) SWIG_fail; | |
11524 | } | |
11525 | { | |
11526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11527 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonUp(arg2); | |
11528 | ||
11529 | wxPyEndAllowThreads(__tstate); | |
11530 | if (PyErr_Occurred()) SWIG_fail; | |
11531 | } | |
11532 | { | |
11533 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11534 | } | |
11535 | return resultobj; | |
11536 | fail: | |
11537 | return NULL; | |
11538 | } | |
11539 | ||
11540 | ||
11541 | static PyObject *_wrap_JoystickEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11542 | PyObject *resultobj; | |
11543 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11544 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
11545 | bool result; | |
11546 | PyObject * obj0 = 0 ; | |
11547 | PyObject * obj1 = 0 ; | |
11548 | char *kwnames[] = { | |
11549 | (char *) "self",(char *) "but", NULL | |
11550 | }; | |
11551 | ||
11552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail; | |
11553 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11554 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11555 | if (obj1) { | |
11556 | arg2 = (int) SWIG_AsInt(obj1); | |
11557 | if (PyErr_Occurred()) SWIG_fail; | |
11558 | } | |
11559 | { | |
11560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11561 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonIsDown(arg2); | |
11562 | ||
11563 | wxPyEndAllowThreads(__tstate); | |
11564 | if (PyErr_Occurred()) SWIG_fail; | |
11565 | } | |
11566 | { | |
11567 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11568 | } | |
11569 | return resultobj; | |
11570 | fail: | |
11571 | return NULL; | |
11572 | } | |
11573 | ||
11574 | ||
11575 | static PyObject * JoystickEvent_swigregister(PyObject *self, PyObject *args) { | |
11576 | PyObject *obj; | |
11577 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11578 | SWIG_TypeClientData(SWIGTYPE_p_wxJoystickEvent, obj); | |
11579 | Py_INCREF(obj); | |
11580 | return Py_BuildValue((char *)""); | |
11581 | } | |
0346c964 | 11582 | static PyObject *_wrap_new_Sound(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 11583 | PyObject *resultobj; |
0346c964 RD |
11584 | wxString const &arg1_defvalue = wxPyEmptyString ; |
11585 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
d55e5bfc RD |
11586 | wxSound *result; |
11587 | bool temp1 = False ; | |
11588 | PyObject * obj0 = 0 ; | |
0346c964 RD |
11589 | char *kwnames[] = { |
11590 | (char *) "fileName", NULL | |
11591 | }; | |
d55e5bfc | 11592 | |
0346c964 RD |
11593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Sound",kwnames,&obj0)) goto fail; |
11594 | if (obj0) { | |
11595 | { | |
11596 | arg1 = wxString_in_helper(obj0); | |
11597 | if (arg1 == NULL) SWIG_fail; | |
11598 | temp1 = True; | |
11599 | } | |
d55e5bfc RD |
11600 | } |
11601 | { | |
0439c23b | 11602 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 11603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0346c964 | 11604 | result = (wxSound *)new_wxSound((wxString const &)*arg1); |
d55e5bfc RD |
11605 | |
11606 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 11607 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
11608 | } |
11609 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1); | |
11610 | { | |
11611 | if (temp1) | |
11612 | delete arg1; | |
11613 | } | |
11614 | return resultobj; | |
11615 | fail: | |
11616 | { | |
11617 | if (temp1) | |
11618 | delete arg1; | |
11619 | } | |
11620 | return NULL; | |
11621 | } | |
11622 | ||
11623 | ||
0346c964 | 11624 | static PyObject *_wrap_new_SoundFromData(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 11625 | PyObject *resultobj; |
0346c964 | 11626 | PyObject *arg1 = (PyObject *) 0 ; |
d55e5bfc RD |
11627 | wxSound *result; |
11628 | PyObject * obj0 = 0 ; | |
0346c964 RD |
11629 | char *kwnames[] = { |
11630 | (char *) "data", NULL | |
11631 | }; | |
d55e5bfc | 11632 | |
0346c964 RD |
11633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_SoundFromData",kwnames,&obj0)) goto fail; |
11634 | arg1 = obj0; | |
d55e5bfc | 11635 | { |
0439c23b | 11636 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 11637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0346c964 | 11638 | result = (wxSound *)new_wxSound(arg1); |
d55e5bfc RD |
11639 | |
11640 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 11641 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
11642 | } |
11643 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1); | |
11644 | return resultobj; | |
11645 | fail: | |
11646 | return NULL; | |
11647 | } | |
11648 | ||
11649 | ||
d55e5bfc RD |
11650 | static PyObject *_wrap_delete_Sound(PyObject *self, PyObject *args, PyObject *kwargs) { |
11651 | PyObject *resultobj; | |
11652 | wxSound *arg1 = (wxSound *) 0 ; | |
11653 | PyObject * obj0 = 0 ; | |
11654 | char *kwnames[] = { | |
11655 | (char *) "self", NULL | |
11656 | }; | |
11657 | ||
11658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Sound",kwnames,&obj0)) goto fail; | |
11659 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, | |
11660 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11661 | { | |
11662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11663 | delete arg1; | |
11664 | ||
11665 | wxPyEndAllowThreads(__tstate); | |
11666 | if (PyErr_Occurred()) SWIG_fail; | |
11667 | } | |
11668 | Py_INCREF(Py_None); resultobj = Py_None; | |
11669 | return resultobj; | |
11670 | fail: | |
11671 | return NULL; | |
11672 | } | |
11673 | ||
11674 | ||
0346c964 | 11675 | static PyObject *_wrap_Sound_Create(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11676 | PyObject *resultobj; |
11677 | wxSound *arg1 = (wxSound *) 0 ; | |
11678 | wxString *arg2 = 0 ; | |
d55e5bfc RD |
11679 | bool result; |
11680 | bool temp2 = False ; | |
11681 | PyObject * obj0 = 0 ; | |
11682 | PyObject * obj1 = 0 ; | |
0346c964 RD |
11683 | char *kwnames[] = { |
11684 | (char *) "self",(char *) "fileName", NULL | |
11685 | }; | |
d55e5bfc | 11686 | |
0346c964 | 11687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_Create",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
11688 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, |
11689 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11690 | { | |
11691 | arg2 = wxString_in_helper(obj1); | |
11692 | if (arg2 == NULL) SWIG_fail; | |
11693 | temp2 = True; | |
11694 | } | |
d55e5bfc RD |
11695 | { |
11696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
0346c964 | 11697 | result = (bool)(arg1)->Create((wxString const &)*arg2); |
d55e5bfc RD |
11698 | |
11699 | wxPyEndAllowThreads(__tstate); | |
11700 | if (PyErr_Occurred()) SWIG_fail; | |
11701 | } | |
11702 | { | |
11703 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11704 | } | |
11705 | { | |
11706 | if (temp2) | |
11707 | delete arg2; | |
11708 | } | |
11709 | return resultobj; | |
11710 | fail: | |
11711 | { | |
11712 | if (temp2) | |
11713 | delete arg2; | |
11714 | } | |
11715 | return NULL; | |
11716 | } | |
11717 | ||
11718 | ||
0346c964 | 11719 | static PyObject *_wrap_Sound_CreateFromData(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11720 | PyObject *resultobj; |
11721 | wxSound *arg1 = (wxSound *) 0 ; | |
0346c964 | 11722 | PyObject *arg2 = (PyObject *) 0 ; |
d55e5bfc RD |
11723 | bool result; |
11724 | PyObject * obj0 = 0 ; | |
11725 | PyObject * obj1 = 0 ; | |
0346c964 RD |
11726 | char *kwnames[] = { |
11727 | (char *) "self",(char *) "data", NULL | |
11728 | }; | |
d55e5bfc | 11729 | |
0346c964 | 11730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_CreateFromData",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
11731 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, |
11732 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
0346c964 | 11733 | arg2 = obj1; |
d55e5bfc RD |
11734 | { |
11735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
0346c964 | 11736 | result = (bool)wxSound_CreateFromData(arg1,arg2); |
d55e5bfc RD |
11737 | |
11738 | wxPyEndAllowThreads(__tstate); | |
11739 | if (PyErr_Occurred()) SWIG_fail; | |
11740 | } | |
11741 | { | |
11742 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11743 | } | |
11744 | return resultobj; | |
11745 | fail: | |
11746 | return NULL; | |
11747 | } | |
11748 | ||
11749 | ||
d55e5bfc RD |
11750 | static PyObject *_wrap_Sound_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { |
11751 | PyObject *resultobj; | |
11752 | wxSound *arg1 = (wxSound *) 0 ; | |
11753 | bool result; | |
11754 | PyObject * obj0 = 0 ; | |
11755 | char *kwnames[] = { | |
11756 | (char *) "self", NULL | |
11757 | }; | |
11758 | ||
11759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sound_IsOk",kwnames,&obj0)) goto fail; | |
11760 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, | |
11761 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11762 | { | |
11763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11764 | result = (bool)(arg1)->IsOk(); | |
11765 | ||
11766 | wxPyEndAllowThreads(__tstate); | |
11767 | if (PyErr_Occurred()) SWIG_fail; | |
11768 | } | |
11769 | { | |
11770 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11771 | } | |
11772 | return resultobj; | |
11773 | fail: | |
11774 | return NULL; | |
11775 | } | |
11776 | ||
11777 | ||
0346c964 | 11778 | static PyObject *_wrap_Sound_Play(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11779 | PyObject *resultobj; |
11780 | wxSound *arg1 = (wxSound *) 0 ; | |
11781 | unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ; | |
11782 | bool result; | |
11783 | PyObject * obj0 = 0 ; | |
11784 | PyObject * obj1 = 0 ; | |
0346c964 RD |
11785 | char *kwnames[] = { |
11786 | (char *) "self",(char *) "flags", NULL | |
11787 | }; | |
d55e5bfc | 11788 | |
0346c964 | 11789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_Play",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
11790 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, |
11791 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11792 | if (obj1) { | |
11793 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); | |
11794 | if (PyErr_Occurred()) SWIG_fail; | |
11795 | } | |
11796 | { | |
0439c23b | 11797 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
11798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11799 | result = (bool)((wxSound const *)arg1)->Play(arg2); | |
11800 | ||
11801 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 11802 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
11803 | } |
11804 | { | |
11805 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11806 | } | |
11807 | return resultobj; | |
11808 | fail: | |
11809 | return NULL; | |
11810 | } | |
11811 | ||
11812 | ||
0346c964 | 11813 | static PyObject *_wrap_Sound_PlaySound(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11814 | PyObject *resultobj; |
11815 | wxString *arg1 = 0 ; | |
11816 | unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ; | |
11817 | bool result; | |
11818 | bool temp1 = False ; | |
11819 | PyObject * obj0 = 0 ; | |
11820 | PyObject * obj1 = 0 ; | |
0346c964 RD |
11821 | char *kwnames[] = { |
11822 | (char *) "filename",(char *) "flags", NULL | |
11823 | }; | |
d55e5bfc | 11824 | |
0346c964 | 11825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_PlaySound",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
11826 | { |
11827 | arg1 = wxString_in_helper(obj0); | |
11828 | if (arg1 == NULL) SWIG_fail; | |
11829 | temp1 = True; | |
11830 | } | |
11831 | if (obj1) { | |
11832 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); | |
11833 | if (PyErr_Occurred()) SWIG_fail; | |
11834 | } | |
11835 | { | |
0439c23b | 11836 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
11837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11838 | result = (bool)wxSound::Play((wxString const &)*arg1,arg2); | |
11839 | ||
11840 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 11841 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
11842 | } |
11843 | { | |
11844 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11845 | } | |
11846 | { | |
11847 | if (temp1) | |
11848 | delete arg1; | |
11849 | } | |
11850 | return resultobj; | |
11851 | fail: | |
11852 | { | |
11853 | if (temp1) | |
11854 | delete arg1; | |
11855 | } | |
11856 | return NULL; | |
11857 | } | |
11858 | ||
11859 | ||
11860 | static PyObject *_wrap_Sound_Stop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11861 | PyObject *resultobj; | |
11862 | char *kwnames[] = { | |
11863 | NULL | |
11864 | }; | |
11865 | ||
11866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Sound_Stop",kwnames)) goto fail; | |
11867 | { | |
0439c23b | 11868 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
11869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11870 | Sound_Stop(); | |
11871 | ||
11872 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 11873 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
11874 | } |
11875 | Py_INCREF(Py_None); resultobj = Py_None; | |
11876 | return resultobj; | |
11877 | fail: | |
11878 | return NULL; | |
11879 | } | |
11880 | ||
11881 | ||
11882 | static PyObject * Sound_swigregister(PyObject *self, PyObject *args) { | |
11883 | PyObject *obj; | |
11884 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11885 | SWIG_TypeClientData(SWIGTYPE_p_wxSound, obj); | |
11886 | Py_INCREF(obj); | |
11887 | return Py_BuildValue((char *)""); | |
11888 | } | |
11889 | static PyObject *_wrap_new_FileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11890 | PyObject *resultobj; | |
11891 | wxString *arg1 = 0 ; | |
11892 | wxString *arg2 = 0 ; | |
11893 | wxString *arg3 = 0 ; | |
11894 | wxString *arg4 = 0 ; | |
11895 | wxFileTypeInfo *result; | |
11896 | bool temp1 = False ; | |
11897 | bool temp2 = False ; | |
11898 | bool temp3 = False ; | |
11899 | bool temp4 = False ; | |
11900 | PyObject * obj0 = 0 ; | |
11901 | PyObject * obj1 = 0 ; | |
11902 | PyObject * obj2 = 0 ; | |
11903 | PyObject * obj3 = 0 ; | |
11904 | char *kwnames[] = { | |
11905 | (char *) "mimeType",(char *) "openCmd",(char *) "printCmd",(char *) "desc", NULL | |
11906 | }; | |
11907 | ||
11908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileTypeInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
11909 | { | |
11910 | arg1 = wxString_in_helper(obj0); | |
11911 | if (arg1 == NULL) SWIG_fail; | |
11912 | temp1 = True; | |
11913 | } | |
11914 | { | |
11915 | arg2 = wxString_in_helper(obj1); | |
11916 | if (arg2 == NULL) SWIG_fail; | |
11917 | temp2 = True; | |
11918 | } | |
11919 | { | |
11920 | arg3 = wxString_in_helper(obj2); | |
11921 | if (arg3 == NULL) SWIG_fail; | |
11922 | temp3 = True; | |
11923 | } | |
11924 | { | |
11925 | arg4 = wxString_in_helper(obj3); | |
11926 | if (arg4 == NULL) SWIG_fail; | |
11927 | temp4 = True; | |
11928 | } | |
11929 | { | |
11930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11931 | result = (wxFileTypeInfo *)new wxFileTypeInfo((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
11932 | ||
11933 | wxPyEndAllowThreads(__tstate); | |
11934 | if (PyErr_Occurred()) SWIG_fail; | |
11935 | } | |
11936 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); | |
11937 | { | |
11938 | if (temp1) | |
11939 | delete arg1; | |
11940 | } | |
11941 | { | |
11942 | if (temp2) | |
11943 | delete arg2; | |
11944 | } | |
11945 | { | |
11946 | if (temp3) | |
11947 | delete arg3; | |
11948 | } | |
11949 | { | |
11950 | if (temp4) | |
11951 | delete arg4; | |
11952 | } | |
11953 | return resultobj; | |
11954 | fail: | |
11955 | { | |
11956 | if (temp1) | |
11957 | delete arg1; | |
11958 | } | |
11959 | { | |
11960 | if (temp2) | |
11961 | delete arg2; | |
11962 | } | |
11963 | { | |
11964 | if (temp3) | |
11965 | delete arg3; | |
11966 | } | |
11967 | { | |
11968 | if (temp4) | |
11969 | delete arg4; | |
11970 | } | |
11971 | return NULL; | |
11972 | } | |
11973 | ||
11974 | ||
11975 | static PyObject *_wrap_new_FileTypeInfoSequence(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11976 | PyObject *resultobj; | |
11977 | wxArrayString *arg1 = 0 ; | |
11978 | wxFileTypeInfo *result; | |
11979 | bool temp1 = False ; | |
11980 | PyObject * obj0 = 0 ; | |
11981 | char *kwnames[] = { | |
11982 | (char *) "sArray", NULL | |
11983 | }; | |
11984 | ||
11985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileTypeInfoSequence",kwnames,&obj0)) goto fail; | |
11986 | { | |
11987 | if (! PySequence_Check(obj0)) { | |
11988 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
11989 | SWIG_fail; | |
11990 | } | |
11991 | arg1 = new wxArrayString; | |
11992 | temp1 = True; | |
11993 | int i, len=PySequence_Length(obj0); | |
11994 | for (i=0; i<len; i++) { | |
11995 | PyObject* item = PySequence_GetItem(obj0, i); | |
11996 | #if wxUSE_UNICODE | |
11997 | PyObject* str = PyObject_Unicode(item); | |
11998 | #else | |
11999 | PyObject* str = PyObject_Str(item); | |
12000 | #endif | |
12001 | if (PyErr_Occurred()) SWIG_fail; | |
12002 | arg1->Add(Py2wxString(str)); | |
12003 | Py_DECREF(item); | |
12004 | Py_DECREF(str); | |
12005 | } | |
12006 | } | |
12007 | { | |
12008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12009 | result = (wxFileTypeInfo *)new wxFileTypeInfo((wxArrayString const &)*arg1); | |
12010 | ||
12011 | wxPyEndAllowThreads(__tstate); | |
12012 | if (PyErr_Occurred()) SWIG_fail; | |
12013 | } | |
12014 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); | |
12015 | { | |
12016 | if (temp1) delete arg1; | |
12017 | } | |
12018 | return resultobj; | |
12019 | fail: | |
12020 | { | |
12021 | if (temp1) delete arg1; | |
12022 | } | |
12023 | return NULL; | |
12024 | } | |
12025 | ||
12026 | ||
12027 | static PyObject *_wrap_new_NullFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12028 | PyObject *resultobj; | |
12029 | wxFileTypeInfo *result; | |
12030 | char *kwnames[] = { | |
12031 | NULL | |
12032 | }; | |
12033 | ||
12034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NullFileTypeInfo",kwnames)) goto fail; | |
12035 | { | |
12036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12037 | result = (wxFileTypeInfo *)new wxFileTypeInfo(); | |
12038 | ||
12039 | wxPyEndAllowThreads(__tstate); | |
12040 | if (PyErr_Occurred()) SWIG_fail; | |
12041 | } | |
12042 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); | |
12043 | return resultobj; | |
12044 | fail: | |
12045 | return NULL; | |
12046 | } | |
12047 | ||
12048 | ||
12049 | static PyObject *_wrap_FileTypeInfo_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12050 | PyObject *resultobj; | |
12051 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12052 | bool result; | |
12053 | PyObject * obj0 = 0 ; | |
12054 | char *kwnames[] = { | |
12055 | (char *) "self", NULL | |
12056 | }; | |
12057 | ||
12058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_IsValid",kwnames,&obj0)) goto fail; | |
12059 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12060 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12061 | { | |
12062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12063 | result = (bool)((wxFileTypeInfo const *)arg1)->IsValid(); | |
12064 | ||
12065 | wxPyEndAllowThreads(__tstate); | |
12066 | if (PyErr_Occurred()) SWIG_fail; | |
12067 | } | |
12068 | { | |
12069 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12070 | } | |
12071 | return resultobj; | |
12072 | fail: | |
12073 | return NULL; | |
12074 | } | |
12075 | ||
12076 | ||
12077 | static PyObject *_wrap_FileTypeInfo_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12078 | PyObject *resultobj; | |
12079 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12080 | wxString *arg2 = 0 ; | |
12081 | int arg3 = (int) 0 ; | |
12082 | bool temp2 = False ; | |
12083 | PyObject * obj0 = 0 ; | |
12084 | PyObject * obj1 = 0 ; | |
12085 | PyObject * obj2 = 0 ; | |
12086 | char *kwnames[] = { | |
12087 | (char *) "self",(char *) "iconFile",(char *) "iconIndex", NULL | |
12088 | }; | |
12089 | ||
12090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileTypeInfo_SetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12093 | { | |
12094 | arg2 = wxString_in_helper(obj1); | |
12095 | if (arg2 == NULL) SWIG_fail; | |
12096 | temp2 = True; | |
12097 | } | |
12098 | if (obj2) { | |
12099 | arg3 = (int) SWIG_AsInt(obj2); | |
12100 | if (PyErr_Occurred()) SWIG_fail; | |
12101 | } | |
12102 | { | |
12103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12104 | (arg1)->SetIcon((wxString const &)*arg2,arg3); | |
12105 | ||
12106 | wxPyEndAllowThreads(__tstate); | |
12107 | if (PyErr_Occurred()) SWIG_fail; | |
12108 | } | |
12109 | Py_INCREF(Py_None); resultobj = Py_None; | |
12110 | { | |
12111 | if (temp2) | |
12112 | delete arg2; | |
12113 | } | |
12114 | return resultobj; | |
12115 | fail: | |
12116 | { | |
12117 | if (temp2) | |
12118 | delete arg2; | |
12119 | } | |
12120 | return NULL; | |
12121 | } | |
12122 | ||
12123 | ||
12124 | static PyObject *_wrap_FileTypeInfo_SetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12125 | PyObject *resultobj; | |
12126 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12127 | wxString *arg2 = 0 ; | |
12128 | bool temp2 = False ; | |
12129 | PyObject * obj0 = 0 ; | |
12130 | PyObject * obj1 = 0 ; | |
12131 | char *kwnames[] = { | |
12132 | (char *) "self",(char *) "shortDesc", NULL | |
12133 | }; | |
12134 | ||
12135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileTypeInfo_SetShortDesc",kwnames,&obj0,&obj1)) goto fail; | |
12136 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12137 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12138 | { | |
12139 | arg2 = wxString_in_helper(obj1); | |
12140 | if (arg2 == NULL) SWIG_fail; | |
12141 | temp2 = True; | |
12142 | } | |
12143 | { | |
12144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12145 | (arg1)->SetShortDesc((wxString const &)*arg2); | |
12146 | ||
12147 | wxPyEndAllowThreads(__tstate); | |
12148 | if (PyErr_Occurred()) SWIG_fail; | |
12149 | } | |
12150 | Py_INCREF(Py_None); resultobj = Py_None; | |
12151 | { | |
12152 | if (temp2) | |
12153 | delete arg2; | |
12154 | } | |
12155 | return resultobj; | |
12156 | fail: | |
12157 | { | |
12158 | if (temp2) | |
12159 | delete arg2; | |
12160 | } | |
12161 | return NULL; | |
12162 | } | |
12163 | ||
12164 | ||
12165 | static PyObject *_wrap_FileTypeInfo_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12166 | PyObject *resultobj; | |
12167 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12168 | wxString *result; | |
12169 | PyObject * obj0 = 0 ; | |
12170 | char *kwnames[] = { | |
12171 | (char *) "self", NULL | |
12172 | }; | |
12173 | ||
12174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetMimeType",kwnames,&obj0)) goto fail; | |
12175 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12176 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12177 | { | |
12178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12179 | { | |
12180 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetMimeType(); | |
12181 | result = (wxString *) &_result_ref; | |
12182 | } | |
12183 | ||
12184 | wxPyEndAllowThreads(__tstate); | |
12185 | if (PyErr_Occurred()) SWIG_fail; | |
12186 | } | |
12187 | { | |
12188 | #if wxUSE_UNICODE | |
12189 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12190 | #else | |
12191 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12192 | #endif | |
12193 | } | |
12194 | return resultobj; | |
12195 | fail: | |
12196 | return NULL; | |
12197 | } | |
12198 | ||
12199 | ||
12200 | static PyObject *_wrap_FileTypeInfo_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12201 | PyObject *resultobj; | |
12202 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12203 | wxString *result; | |
12204 | PyObject * obj0 = 0 ; | |
12205 | char *kwnames[] = { | |
12206 | (char *) "self", NULL | |
12207 | }; | |
12208 | ||
12209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetOpenCommand",kwnames,&obj0)) goto fail; | |
12210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12212 | { | |
12213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12214 | { | |
12215 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetOpenCommand(); | |
12216 | result = (wxString *) &_result_ref; | |
12217 | } | |
12218 | ||
12219 | wxPyEndAllowThreads(__tstate); | |
12220 | if (PyErr_Occurred()) SWIG_fail; | |
12221 | } | |
12222 | { | |
12223 | #if wxUSE_UNICODE | |
12224 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12225 | #else | |
12226 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12227 | #endif | |
12228 | } | |
12229 | return resultobj; | |
12230 | fail: | |
12231 | return NULL; | |
12232 | } | |
12233 | ||
12234 | ||
12235 | static PyObject *_wrap_FileTypeInfo_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12236 | PyObject *resultobj; | |
12237 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12238 | wxString *result; | |
12239 | PyObject * obj0 = 0 ; | |
12240 | char *kwnames[] = { | |
12241 | (char *) "self", NULL | |
12242 | }; | |
12243 | ||
12244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetPrintCommand",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 | { | |
12250 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetPrintCommand(); | |
12251 | result = (wxString *) &_result_ref; | |
12252 | } | |
12253 | ||
12254 | wxPyEndAllowThreads(__tstate); | |
12255 | if (PyErr_Occurred()) SWIG_fail; | |
12256 | } | |
12257 | { | |
12258 | #if wxUSE_UNICODE | |
12259 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12260 | #else | |
12261 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12262 | #endif | |
12263 | } | |
12264 | return resultobj; | |
12265 | fail: | |
12266 | return NULL; | |
12267 | } | |
12268 | ||
12269 | ||
12270 | static PyObject *_wrap_FileTypeInfo_GetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12271 | PyObject *resultobj; | |
12272 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12273 | wxString *result; | |
12274 | PyObject * obj0 = 0 ; | |
12275 | char *kwnames[] = { | |
12276 | (char *) "self", NULL | |
12277 | }; | |
12278 | ||
12279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetShortDesc",kwnames,&obj0)) goto fail; | |
12280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12282 | { | |
12283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12284 | { | |
12285 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetShortDesc(); | |
12286 | result = (wxString *) &_result_ref; | |
12287 | } | |
12288 | ||
12289 | wxPyEndAllowThreads(__tstate); | |
12290 | if (PyErr_Occurred()) SWIG_fail; | |
12291 | } | |
12292 | { | |
12293 | #if wxUSE_UNICODE | |
12294 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12295 | #else | |
12296 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12297 | #endif | |
12298 | } | |
12299 | return resultobj; | |
12300 | fail: | |
12301 | return NULL; | |
12302 | } | |
12303 | ||
12304 | ||
12305 | static PyObject *_wrap_FileTypeInfo_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12306 | PyObject *resultobj; | |
12307 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12308 | wxString *result; | |
12309 | PyObject * obj0 = 0 ; | |
12310 | char *kwnames[] = { | |
12311 | (char *) "self", NULL | |
12312 | }; | |
12313 | ||
12314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetDescription",kwnames,&obj0)) goto fail; | |
12315 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12317 | { | |
12318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12319 | { | |
12320 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetDescription(); | |
12321 | result = (wxString *) &_result_ref; | |
12322 | } | |
12323 | ||
12324 | wxPyEndAllowThreads(__tstate); | |
12325 | if (PyErr_Occurred()) SWIG_fail; | |
12326 | } | |
12327 | { | |
12328 | #if wxUSE_UNICODE | |
12329 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12330 | #else | |
12331 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12332 | #endif | |
12333 | } | |
12334 | return resultobj; | |
12335 | fail: | |
12336 | return NULL; | |
12337 | } | |
12338 | ||
12339 | ||
12340 | static PyObject *_wrap_FileTypeInfo_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12341 | PyObject *resultobj; | |
12342 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12343 | wxArrayString *result; | |
12344 | PyObject * obj0 = 0 ; | |
12345 | char *kwnames[] = { | |
12346 | (char *) "self", NULL | |
12347 | }; | |
12348 | ||
12349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensions",kwnames,&obj0)) goto fail; | |
12350 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12351 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12352 | { | |
12353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12354 | { | |
12355 | wxArrayString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetExtensions(); | |
12356 | result = (wxArrayString *) &_result_ref; | |
12357 | } | |
12358 | ||
12359 | wxPyEndAllowThreads(__tstate); | |
12360 | if (PyErr_Occurred()) SWIG_fail; | |
12361 | } | |
12362 | { | |
12363 | resultobj = wxArrayString2PyList_helper(*result); | |
12364 | } | |
12365 | return resultobj; | |
12366 | fail: | |
12367 | return NULL; | |
12368 | } | |
12369 | ||
12370 | ||
12371 | static PyObject *_wrap_FileTypeInfo_GetExtensionsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12372 | PyObject *resultobj; | |
12373 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12374 | int result; | |
12375 | PyObject * obj0 = 0 ; | |
12376 | char *kwnames[] = { | |
12377 | (char *) "self", NULL | |
12378 | }; | |
12379 | ||
12380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensionsCount",kwnames,&obj0)) goto fail; | |
12381 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12382 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12383 | { | |
12384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12385 | result = (int)((wxFileTypeInfo const *)arg1)->GetExtensionsCount(); | |
12386 | ||
12387 | wxPyEndAllowThreads(__tstate); | |
12388 | if (PyErr_Occurred()) SWIG_fail; | |
12389 | } | |
12390 | resultobj = SWIG_FromInt((int)result); | |
12391 | return resultobj; | |
12392 | fail: | |
12393 | return NULL; | |
12394 | } | |
12395 | ||
12396 | ||
12397 | static PyObject *_wrap_FileTypeInfo_GetIconFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12398 | PyObject *resultobj; | |
12399 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12400 | wxString *result; | |
12401 | PyObject * obj0 = 0 ; | |
12402 | char *kwnames[] = { | |
12403 | (char *) "self", NULL | |
12404 | }; | |
12405 | ||
12406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconFile",kwnames,&obj0)) goto fail; | |
12407 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12408 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12409 | { | |
12410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12411 | { | |
12412 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetIconFile(); | |
12413 | result = (wxString *) &_result_ref; | |
12414 | } | |
12415 | ||
12416 | wxPyEndAllowThreads(__tstate); | |
12417 | if (PyErr_Occurred()) SWIG_fail; | |
12418 | } | |
12419 | { | |
12420 | #if wxUSE_UNICODE | |
12421 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12422 | #else | |
12423 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12424 | #endif | |
12425 | } | |
12426 | return resultobj; | |
12427 | fail: | |
12428 | return NULL; | |
12429 | } | |
12430 | ||
12431 | ||
12432 | static PyObject *_wrap_FileTypeInfo_GetIconIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12433 | PyObject *resultobj; | |
12434 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12435 | int result; | |
12436 | PyObject * obj0 = 0 ; | |
12437 | char *kwnames[] = { | |
12438 | (char *) "self", NULL | |
12439 | }; | |
12440 | ||
12441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconIndex",kwnames,&obj0)) goto fail; | |
12442 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12443 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12444 | { | |
12445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12446 | result = (int)((wxFileTypeInfo const *)arg1)->GetIconIndex(); | |
12447 | ||
12448 | wxPyEndAllowThreads(__tstate); | |
12449 | if (PyErr_Occurred()) SWIG_fail; | |
12450 | } | |
12451 | resultobj = SWIG_FromInt((int)result); | |
12452 | return resultobj; | |
12453 | fail: | |
12454 | return NULL; | |
12455 | } | |
12456 | ||
12457 | ||
12458 | static PyObject * FileTypeInfo_swigregister(PyObject *self, PyObject *args) { | |
12459 | PyObject *obj; | |
12460 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12461 | SWIG_TypeClientData(SWIGTYPE_p_wxFileTypeInfo, obj); | |
12462 | Py_INCREF(obj); | |
12463 | return Py_BuildValue((char *)""); | |
12464 | } | |
12465 | static PyObject *_wrap_new_FileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12466 | PyObject *resultobj; | |
12467 | wxFileTypeInfo *arg1 = 0 ; | |
12468 | wxFileType *result; | |
12469 | PyObject * obj0 = 0 ; | |
12470 | char *kwnames[] = { | |
12471 | (char *) "ftInfo", NULL | |
12472 | }; | |
12473 | ||
12474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileType",kwnames,&obj0)) goto fail; | |
12475 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12476 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12477 | SWIG_fail; | |
12478 | if (arg1 == NULL) { | |
12479 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12480 | SWIG_fail; | |
12481 | } | |
12482 | { | |
12483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12484 | result = (wxFileType *)new wxFileType((wxFileTypeInfo const &)*arg1); | |
12485 | ||
12486 | wxPyEndAllowThreads(__tstate); | |
12487 | if (PyErr_Occurred()) SWIG_fail; | |
12488 | } | |
12489 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); | |
12490 | return resultobj; | |
12491 | fail: | |
12492 | return NULL; | |
12493 | } | |
12494 | ||
12495 | ||
12496 | static PyObject *_wrap_delete_FileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12497 | PyObject *resultobj; | |
12498 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12499 | PyObject * obj0 = 0 ; | |
12500 | char *kwnames[] = { | |
12501 | (char *) "self", NULL | |
12502 | }; | |
12503 | ||
12504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileType",kwnames,&obj0)) goto fail; | |
12505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12507 | { | |
12508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12509 | delete arg1; | |
12510 | ||
12511 | wxPyEndAllowThreads(__tstate); | |
12512 | if (PyErr_Occurred()) SWIG_fail; | |
12513 | } | |
12514 | Py_INCREF(Py_None); resultobj = Py_None; | |
12515 | return resultobj; | |
12516 | fail: | |
12517 | return NULL; | |
12518 | } | |
12519 | ||
12520 | ||
12521 | static PyObject *_wrap_FileType_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12522 | PyObject *resultobj; | |
12523 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12524 | PyObject *result; | |
12525 | PyObject * obj0 = 0 ; | |
12526 | char *kwnames[] = { | |
12527 | (char *) "self", NULL | |
12528 | }; | |
12529 | ||
12530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeType",kwnames,&obj0)) goto fail; | |
12531 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12532 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12533 | { | |
12534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12535 | result = (PyObject *)wxFileType_GetMimeType(arg1); | |
12536 | ||
12537 | wxPyEndAllowThreads(__tstate); | |
12538 | if (PyErr_Occurred()) SWIG_fail; | |
12539 | } | |
12540 | resultobj = result; | |
12541 | return resultobj; | |
12542 | fail: | |
12543 | return NULL; | |
12544 | } | |
12545 | ||
12546 | ||
12547 | static PyObject *_wrap_FileType_GetMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12548 | PyObject *resultobj; | |
12549 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12550 | PyObject *result; | |
12551 | PyObject * obj0 = 0 ; | |
12552 | char *kwnames[] = { | |
12553 | (char *) "self", NULL | |
12554 | }; | |
12555 | ||
12556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeTypes",kwnames,&obj0)) goto fail; | |
12557 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12558 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12559 | { | |
12560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12561 | result = (PyObject *)wxFileType_GetMimeTypes(arg1); | |
12562 | ||
12563 | wxPyEndAllowThreads(__tstate); | |
12564 | if (PyErr_Occurred()) SWIG_fail; | |
12565 | } | |
12566 | resultobj = result; | |
12567 | return resultobj; | |
12568 | fail: | |
12569 | return NULL; | |
12570 | } | |
12571 | ||
12572 | ||
12573 | static PyObject *_wrap_FileType_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12574 | PyObject *resultobj; | |
12575 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12576 | PyObject *result; | |
12577 | PyObject * obj0 = 0 ; | |
12578 | char *kwnames[] = { | |
12579 | (char *) "self", NULL | |
12580 | }; | |
12581 | ||
12582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetExtensions",kwnames,&obj0)) goto fail; | |
12583 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12584 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12585 | { | |
12586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12587 | result = (PyObject *)wxFileType_GetExtensions(arg1); | |
12588 | ||
12589 | wxPyEndAllowThreads(__tstate); | |
12590 | if (PyErr_Occurred()) SWIG_fail; | |
12591 | } | |
12592 | resultobj = result; | |
12593 | return resultobj; | |
12594 | fail: | |
12595 | return NULL; | |
12596 | } | |
12597 | ||
12598 | ||
12599 | static PyObject *_wrap_FileType_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12600 | PyObject *resultobj; | |
12601 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12602 | wxIcon *result; | |
12603 | PyObject * obj0 = 0 ; | |
12604 | char *kwnames[] = { | |
12605 | (char *) "self", NULL | |
12606 | }; | |
12607 | ||
12608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIcon",kwnames,&obj0)) goto fail; | |
12609 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12611 | { | |
12612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12613 | result = (wxIcon *)wxFileType_GetIcon(arg1); | |
12614 | ||
12615 | wxPyEndAllowThreads(__tstate); | |
12616 | if (PyErr_Occurred()) SWIG_fail; | |
12617 | } | |
12618 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); | |
12619 | return resultobj; | |
12620 | fail: | |
12621 | return NULL; | |
12622 | } | |
12623 | ||
12624 | ||
12625 | static PyObject *_wrap_FileType_GetIconInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12626 | PyObject *resultobj; | |
12627 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12628 | PyObject *result; | |
12629 | PyObject * obj0 = 0 ; | |
12630 | char *kwnames[] = { | |
12631 | (char *) "self", NULL | |
12632 | }; | |
12633 | ||
12634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIconInfo",kwnames,&obj0)) goto fail; | |
12635 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12636 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12637 | { | |
12638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12639 | result = (PyObject *)wxFileType_GetIconInfo(arg1); | |
12640 | ||
12641 | wxPyEndAllowThreads(__tstate); | |
12642 | if (PyErr_Occurred()) SWIG_fail; | |
12643 | } | |
12644 | resultobj = result; | |
12645 | return resultobj; | |
12646 | fail: | |
12647 | return NULL; | |
12648 | } | |
12649 | ||
12650 | ||
12651 | static PyObject *_wrap_FileType_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12652 | PyObject *resultobj; | |
12653 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12654 | PyObject *result; | |
12655 | PyObject * obj0 = 0 ; | |
12656 | char *kwnames[] = { | |
12657 | (char *) "self", NULL | |
12658 | }; | |
12659 | ||
12660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetDescription",kwnames,&obj0)) goto fail; | |
12661 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12662 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12663 | { | |
12664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12665 | result = (PyObject *)wxFileType_GetDescription(arg1); | |
12666 | ||
12667 | wxPyEndAllowThreads(__tstate); | |
12668 | if (PyErr_Occurred()) SWIG_fail; | |
12669 | } | |
12670 | resultobj = result; | |
12671 | return resultobj; | |
12672 | fail: | |
12673 | return NULL; | |
12674 | } | |
12675 | ||
12676 | ||
12677 | static PyObject *_wrap_FileType_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12678 | PyObject *resultobj; | |
12679 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12680 | wxString *arg2 = 0 ; | |
12681 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12682 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12683 | PyObject *result; | |
12684 | bool temp2 = False ; | |
12685 | bool temp3 = False ; | |
12686 | PyObject * obj0 = 0 ; | |
12687 | PyObject * obj1 = 0 ; | |
12688 | PyObject * obj2 = 0 ; | |
12689 | char *kwnames[] = { | |
12690 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
12691 | }; | |
12692 | ||
12693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetOpenCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12694 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12695 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12696 | { | |
12697 | arg2 = wxString_in_helper(obj1); | |
12698 | if (arg2 == NULL) SWIG_fail; | |
12699 | temp2 = True; | |
12700 | } | |
12701 | if (obj2) { | |
12702 | { | |
12703 | arg3 = wxString_in_helper(obj2); | |
12704 | if (arg3 == NULL) SWIG_fail; | |
12705 | temp3 = True; | |
12706 | } | |
12707 | } | |
12708 | { | |
12709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12710 | result = (PyObject *)wxFileType_GetOpenCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
12711 | ||
12712 | wxPyEndAllowThreads(__tstate); | |
12713 | if (PyErr_Occurred()) SWIG_fail; | |
12714 | } | |
12715 | resultobj = result; | |
12716 | { | |
12717 | if (temp2) | |
12718 | delete arg2; | |
12719 | } | |
12720 | { | |
12721 | if (temp3) | |
12722 | delete arg3; | |
12723 | } | |
12724 | return resultobj; | |
12725 | fail: | |
12726 | { | |
12727 | if (temp2) | |
12728 | delete arg2; | |
12729 | } | |
12730 | { | |
12731 | if (temp3) | |
12732 | delete arg3; | |
12733 | } | |
12734 | return NULL; | |
12735 | } | |
12736 | ||
12737 | ||
12738 | static PyObject *_wrap_FileType_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12739 | PyObject *resultobj; | |
12740 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12741 | wxString *arg2 = 0 ; | |
12742 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12743 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12744 | PyObject *result; | |
12745 | bool temp2 = False ; | |
12746 | bool temp3 = False ; | |
12747 | PyObject * obj0 = 0 ; | |
12748 | PyObject * obj1 = 0 ; | |
12749 | PyObject * obj2 = 0 ; | |
12750 | char *kwnames[] = { | |
12751 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
12752 | }; | |
12753 | ||
12754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetPrintCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12755 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12756 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12757 | { | |
12758 | arg2 = wxString_in_helper(obj1); | |
12759 | if (arg2 == NULL) SWIG_fail; | |
12760 | temp2 = True; | |
12761 | } | |
12762 | if (obj2) { | |
12763 | { | |
12764 | arg3 = wxString_in_helper(obj2); | |
12765 | if (arg3 == NULL) SWIG_fail; | |
12766 | temp3 = True; | |
12767 | } | |
12768 | } | |
12769 | { | |
12770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12771 | result = (PyObject *)wxFileType_GetPrintCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
12772 | ||
12773 | wxPyEndAllowThreads(__tstate); | |
12774 | if (PyErr_Occurred()) SWIG_fail; | |
12775 | } | |
12776 | resultobj = result; | |
12777 | { | |
12778 | if (temp2) | |
12779 | delete arg2; | |
12780 | } | |
12781 | { | |
12782 | if (temp3) | |
12783 | delete arg3; | |
12784 | } | |
12785 | return resultobj; | |
12786 | fail: | |
12787 | { | |
12788 | if (temp2) | |
12789 | delete arg2; | |
12790 | } | |
12791 | { | |
12792 | if (temp3) | |
12793 | delete arg3; | |
12794 | } | |
12795 | return NULL; | |
12796 | } | |
12797 | ||
12798 | ||
12799 | static PyObject *_wrap_FileType_GetAllCommands(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12800 | PyObject *resultobj; | |
12801 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12802 | wxString *arg2 = 0 ; | |
12803 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12804 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12805 | PyObject *result; | |
12806 | bool temp2 = False ; | |
12807 | bool temp3 = False ; | |
12808 | PyObject * obj0 = 0 ; | |
12809 | PyObject * obj1 = 0 ; | |
12810 | PyObject * obj2 = 0 ; | |
12811 | char *kwnames[] = { | |
12812 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
12813 | }; | |
12814 | ||
12815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetAllCommands",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12816 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12817 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12818 | { | |
12819 | arg2 = wxString_in_helper(obj1); | |
12820 | if (arg2 == NULL) SWIG_fail; | |
12821 | temp2 = True; | |
12822 | } | |
12823 | if (obj2) { | |
12824 | { | |
12825 | arg3 = wxString_in_helper(obj2); | |
12826 | if (arg3 == NULL) SWIG_fail; | |
12827 | temp3 = True; | |
12828 | } | |
12829 | } | |
12830 | { | |
12831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12832 | result = (PyObject *)wxFileType_GetAllCommands(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
12833 | ||
12834 | wxPyEndAllowThreads(__tstate); | |
12835 | if (PyErr_Occurred()) SWIG_fail; | |
12836 | } | |
12837 | resultobj = result; | |
12838 | { | |
12839 | if (temp2) | |
12840 | delete arg2; | |
12841 | } | |
12842 | { | |
12843 | if (temp3) | |
12844 | delete arg3; | |
12845 | } | |
12846 | return resultobj; | |
12847 | fail: | |
12848 | { | |
12849 | if (temp2) | |
12850 | delete arg2; | |
12851 | } | |
12852 | { | |
12853 | if (temp3) | |
12854 | delete arg3; | |
12855 | } | |
12856 | return NULL; | |
12857 | } | |
12858 | ||
12859 | ||
12860 | static PyObject *_wrap_FileType_SetCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12861 | PyObject *resultobj; | |
12862 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12863 | wxString *arg2 = 0 ; | |
12864 | wxString *arg3 = 0 ; | |
12865 | bool arg4 = (bool) True ; | |
12866 | bool result; | |
12867 | bool temp2 = False ; | |
12868 | bool temp3 = False ; | |
12869 | PyObject * obj0 = 0 ; | |
12870 | PyObject * obj1 = 0 ; | |
12871 | PyObject * obj2 = 0 ; | |
12872 | PyObject * obj3 = 0 ; | |
12873 | char *kwnames[] = { | |
12874 | (char *) "self",(char *) "cmd",(char *) "verb",(char *) "overwriteprompt", NULL | |
12875 | }; | |
12876 | ||
12877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FileType_SetCommand",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
12878 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12880 | { | |
12881 | arg2 = wxString_in_helper(obj1); | |
12882 | if (arg2 == NULL) SWIG_fail; | |
12883 | temp2 = True; | |
12884 | } | |
12885 | { | |
12886 | arg3 = wxString_in_helper(obj2); | |
12887 | if (arg3 == NULL) SWIG_fail; | |
12888 | temp3 = True; | |
12889 | } | |
12890 | if (obj3) { | |
12891 | arg4 = (bool) SWIG_AsBool(obj3); | |
12892 | if (PyErr_Occurred()) SWIG_fail; | |
12893 | } | |
12894 | { | |
12895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12896 | result = (bool)(arg1)->SetCommand((wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
12897 | ||
12898 | wxPyEndAllowThreads(__tstate); | |
12899 | if (PyErr_Occurred()) SWIG_fail; | |
12900 | } | |
12901 | { | |
12902 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12903 | } | |
12904 | { | |
12905 | if (temp2) | |
12906 | delete arg2; | |
12907 | } | |
12908 | { | |
12909 | if (temp3) | |
12910 | delete arg3; | |
12911 | } | |
12912 | return resultobj; | |
12913 | fail: | |
12914 | { | |
12915 | if (temp2) | |
12916 | delete arg2; | |
12917 | } | |
12918 | { | |
12919 | if (temp3) | |
12920 | delete arg3; | |
12921 | } | |
12922 | return NULL; | |
12923 | } | |
12924 | ||
12925 | ||
12926 | static PyObject *_wrap_FileType_SetDefaultIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12927 | PyObject *resultobj; | |
12928 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12929 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
12930 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
12931 | int arg3 = (int) 0 ; | |
12932 | bool result; | |
12933 | bool temp2 = False ; | |
12934 | PyObject * obj0 = 0 ; | |
12935 | PyObject * obj1 = 0 ; | |
12936 | PyObject * obj2 = 0 ; | |
12937 | char *kwnames[] = { | |
12938 | (char *) "self",(char *) "cmd",(char *) "index", NULL | |
12939 | }; | |
12940 | ||
12941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FileType_SetDefaultIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12942 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12943 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12944 | if (obj1) { | |
12945 | { | |
12946 | arg2 = wxString_in_helper(obj1); | |
12947 | if (arg2 == NULL) SWIG_fail; | |
12948 | temp2 = True; | |
12949 | } | |
12950 | } | |
12951 | if (obj2) { | |
12952 | arg3 = (int) SWIG_AsInt(obj2); | |
12953 | if (PyErr_Occurred()) SWIG_fail; | |
12954 | } | |
12955 | { | |
12956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12957 | result = (bool)(arg1)->SetDefaultIcon((wxString const &)*arg2,arg3); | |
12958 | ||
12959 | wxPyEndAllowThreads(__tstate); | |
12960 | if (PyErr_Occurred()) SWIG_fail; | |
12961 | } | |
12962 | { | |
12963 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12964 | } | |
12965 | { | |
12966 | if (temp2) | |
12967 | delete arg2; | |
12968 | } | |
12969 | return resultobj; | |
12970 | fail: | |
12971 | { | |
12972 | if (temp2) | |
12973 | delete arg2; | |
12974 | } | |
12975 | return NULL; | |
12976 | } | |
12977 | ||
12978 | ||
12979 | static PyObject *_wrap_FileType_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12980 | PyObject *resultobj; | |
12981 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12982 | bool result; | |
12983 | PyObject * obj0 = 0 ; | |
12984 | char *kwnames[] = { | |
12985 | (char *) "self", NULL | |
12986 | }; | |
12987 | ||
12988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_Unassociate",kwnames,&obj0)) goto fail; | |
12989 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12990 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12991 | { | |
12992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12993 | result = (bool)(arg1)->Unassociate(); | |
12994 | ||
12995 | wxPyEndAllowThreads(__tstate); | |
12996 | if (PyErr_Occurred()) SWIG_fail; | |
12997 | } | |
12998 | { | |
12999 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13000 | } | |
13001 | return resultobj; | |
13002 | fail: | |
13003 | return NULL; | |
13004 | } | |
13005 | ||
13006 | ||
13007 | static PyObject *_wrap_FileType_ExpandCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13008 | PyObject *resultobj; | |
13009 | wxString *arg1 = 0 ; | |
13010 | wxString *arg2 = 0 ; | |
13011 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13012 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13013 | wxString result; | |
13014 | bool temp1 = False ; | |
13015 | bool temp2 = False ; | |
13016 | bool temp3 = False ; | |
13017 | PyObject * obj0 = 0 ; | |
13018 | PyObject * obj1 = 0 ; | |
13019 | PyObject * obj2 = 0 ; | |
13020 | char *kwnames[] = { | |
13021 | (char *) "command",(char *) "filename",(char *) "mimetype", NULL | |
13022 | }; | |
13023 | ||
13024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_ExpandCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13025 | { | |
13026 | arg1 = wxString_in_helper(obj0); | |
13027 | if (arg1 == NULL) SWIG_fail; | |
13028 | temp1 = True; | |
13029 | } | |
13030 | { | |
13031 | arg2 = wxString_in_helper(obj1); | |
13032 | if (arg2 == NULL) SWIG_fail; | |
13033 | temp2 = True; | |
13034 | } | |
13035 | if (obj2) { | |
13036 | { | |
13037 | arg3 = wxString_in_helper(obj2); | |
13038 | if (arg3 == NULL) SWIG_fail; | |
13039 | temp3 = True; | |
13040 | } | |
13041 | } | |
13042 | { | |
13043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13044 | result = FileType_ExpandCommand((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
13045 | ||
13046 | wxPyEndAllowThreads(__tstate); | |
13047 | if (PyErr_Occurred()) SWIG_fail; | |
13048 | } | |
13049 | { | |
13050 | #if wxUSE_UNICODE | |
13051 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13052 | #else | |
13053 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13054 | #endif | |
13055 | } | |
13056 | { | |
13057 | if (temp1) | |
13058 | delete arg1; | |
13059 | } | |
13060 | { | |
13061 | if (temp2) | |
13062 | delete arg2; | |
13063 | } | |
13064 | { | |
13065 | if (temp3) | |
13066 | delete arg3; | |
13067 | } | |
13068 | return resultobj; | |
13069 | fail: | |
13070 | { | |
13071 | if (temp1) | |
13072 | delete arg1; | |
13073 | } | |
13074 | { | |
13075 | if (temp2) | |
13076 | delete arg2; | |
13077 | } | |
13078 | { | |
13079 | if (temp3) | |
13080 | delete arg3; | |
13081 | } | |
13082 | return NULL; | |
13083 | } | |
13084 | ||
13085 | ||
13086 | static PyObject * FileType_swigregister(PyObject *self, PyObject *args) { | |
13087 | PyObject *obj; | |
13088 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13089 | SWIG_TypeClientData(SWIGTYPE_p_wxFileType, obj); | |
13090 | Py_INCREF(obj); | |
13091 | return Py_BuildValue((char *)""); | |
13092 | } | |
13093 | static int _wrap_TheMimeTypesManager_set(PyObject *_val) { | |
13094 | PyErr_SetString(PyExc_TypeError,"Variable TheMimeTypesManager is read-only."); | |
13095 | return 1; | |
13096 | } | |
13097 | ||
13098 | ||
13099 | static PyObject *_wrap_TheMimeTypesManager_get() { | |
13100 | PyObject *pyobj; | |
13101 | ||
13102 | pyobj = SWIG_NewPointerObj((void *)(wxTheMimeTypesManager), SWIGTYPE_p_wxMimeTypesManager, 0); | |
13103 | return pyobj; | |
13104 | } | |
13105 | ||
13106 | ||
13107 | static PyObject *_wrap_MimeTypesManager_IsOfType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13108 | PyObject *resultobj; | |
13109 | wxString *arg1 = 0 ; | |
13110 | wxString *arg2 = 0 ; | |
13111 | bool result; | |
13112 | bool temp1 = False ; | |
13113 | bool temp2 = False ; | |
13114 | PyObject * obj0 = 0 ; | |
13115 | PyObject * obj1 = 0 ; | |
13116 | char *kwnames[] = { | |
13117 | (char *) "mimeType",(char *) "wildcard", NULL | |
13118 | }; | |
13119 | ||
13120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_IsOfType",kwnames,&obj0,&obj1)) goto fail; | |
13121 | { | |
13122 | arg1 = wxString_in_helper(obj0); | |
13123 | if (arg1 == NULL) SWIG_fail; | |
13124 | temp1 = True; | |
13125 | } | |
13126 | { | |
13127 | arg2 = wxString_in_helper(obj1); | |
13128 | if (arg2 == NULL) SWIG_fail; | |
13129 | temp2 = True; | |
13130 | } | |
13131 | { | |
13132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13133 | result = (bool)wxMimeTypesManager::IsOfType((wxString const &)*arg1,(wxString const &)*arg2); | |
13134 | ||
13135 | wxPyEndAllowThreads(__tstate); | |
13136 | if (PyErr_Occurred()) SWIG_fail; | |
13137 | } | |
13138 | { | |
13139 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13140 | } | |
13141 | { | |
13142 | if (temp1) | |
13143 | delete arg1; | |
13144 | } | |
13145 | { | |
13146 | if (temp2) | |
13147 | delete arg2; | |
13148 | } | |
13149 | return resultobj; | |
13150 | fail: | |
13151 | { | |
13152 | if (temp1) | |
13153 | delete arg1; | |
13154 | } | |
13155 | { | |
13156 | if (temp2) | |
13157 | delete arg2; | |
13158 | } | |
13159 | return NULL; | |
13160 | } | |
13161 | ||
13162 | ||
13163 | static PyObject *_wrap_new_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13164 | PyObject *resultobj; | |
13165 | wxMimeTypesManager *result; | |
13166 | char *kwnames[] = { | |
13167 | NULL | |
13168 | }; | |
13169 | ||
13170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MimeTypesManager",kwnames)) goto fail; | |
13171 | { | |
13172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13173 | result = (wxMimeTypesManager *)new wxMimeTypesManager(); | |
13174 | ||
13175 | wxPyEndAllowThreads(__tstate); | |
13176 | if (PyErr_Occurred()) SWIG_fail; | |
13177 | } | |
13178 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMimeTypesManager, 1); | |
13179 | return resultobj; | |
13180 | fail: | |
13181 | return NULL; | |
13182 | } | |
13183 | ||
13184 | ||
13185 | static PyObject *_wrap_MimeTypesManager_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13186 | PyObject *resultobj; | |
13187 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13188 | int arg2 = (int) wxMAILCAP_ALL ; | |
13189 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13190 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13191 | bool temp3 = False ; | |
13192 | PyObject * obj0 = 0 ; | |
13193 | PyObject * obj1 = 0 ; | |
13194 | PyObject * obj2 = 0 ; | |
13195 | char *kwnames[] = { | |
13196 | (char *) "self",(char *) "mailcapStyle",(char *) "extraDir", NULL | |
13197 | }; | |
13198 | ||
13199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MimeTypesManager_Initialize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13200 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13202 | if (obj1) { | |
13203 | arg2 = (int) SWIG_AsInt(obj1); | |
13204 | if (PyErr_Occurred()) SWIG_fail; | |
13205 | } | |
13206 | if (obj2) { | |
13207 | { | |
13208 | arg3 = wxString_in_helper(obj2); | |
13209 | if (arg3 == NULL) SWIG_fail; | |
13210 | temp3 = True; | |
13211 | } | |
13212 | } | |
13213 | { | |
13214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13215 | (arg1)->Initialize(arg2,(wxString const &)*arg3); | |
13216 | ||
13217 | wxPyEndAllowThreads(__tstate); | |
13218 | if (PyErr_Occurred()) SWIG_fail; | |
13219 | } | |
13220 | Py_INCREF(Py_None); resultobj = Py_None; | |
13221 | { | |
13222 | if (temp3) | |
13223 | delete arg3; | |
13224 | } | |
13225 | return resultobj; | |
13226 | fail: | |
13227 | { | |
13228 | if (temp3) | |
13229 | delete arg3; | |
13230 | } | |
13231 | return NULL; | |
13232 | } | |
13233 | ||
13234 | ||
13235 | static PyObject *_wrap_MimeTypesManager_ClearData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13236 | PyObject *resultobj; | |
13237 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13238 | PyObject * obj0 = 0 ; | |
13239 | char *kwnames[] = { | |
13240 | (char *) "self", NULL | |
13241 | }; | |
13242 | ||
13243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_ClearData",kwnames,&obj0)) goto fail; | |
13244 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13245 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13246 | { | |
13247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13248 | (arg1)->ClearData(); | |
13249 | ||
13250 | wxPyEndAllowThreads(__tstate); | |
13251 | if (PyErr_Occurred()) SWIG_fail; | |
13252 | } | |
13253 | Py_INCREF(Py_None); resultobj = Py_None; | |
13254 | return resultobj; | |
13255 | fail: | |
13256 | return NULL; | |
13257 | } | |
13258 | ||
13259 | ||
13260 | static PyObject *_wrap_MimeTypesManager_GetFileTypeFromExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13261 | PyObject *resultobj; | |
13262 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13263 | wxString *arg2 = 0 ; | |
13264 | wxFileType *result; | |
13265 | bool temp2 = False ; | |
13266 | PyObject * obj0 = 0 ; | |
13267 | PyObject * obj1 = 0 ; | |
13268 | char *kwnames[] = { | |
13269 | (char *) "self",(char *) "ext", NULL | |
13270 | }; | |
13271 | ||
13272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromExtension",kwnames,&obj0,&obj1)) goto fail; | |
13273 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13274 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13275 | { | |
13276 | arg2 = wxString_in_helper(obj1); | |
13277 | if (arg2 == NULL) SWIG_fail; | |
13278 | temp2 = True; | |
13279 | } | |
13280 | { | |
13281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13282 | result = (wxFileType *)(arg1)->GetFileTypeFromExtension((wxString const &)*arg2); | |
13283 | ||
13284 | wxPyEndAllowThreads(__tstate); | |
13285 | if (PyErr_Occurred()) SWIG_fail; | |
13286 | } | |
13287 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); | |
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_GetFileTypeFromMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13303 | PyObject *resultobj; | |
13304 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13305 | wxString *arg2 = 0 ; | |
13306 | wxFileType *result; | |
13307 | bool temp2 = False ; | |
13308 | PyObject * obj0 = 0 ; | |
13309 | PyObject * obj1 = 0 ; | |
13310 | char *kwnames[] = { | |
13311 | (char *) "self",(char *) "mimeType", NULL | |
13312 | }; | |
13313 | ||
13314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromMimeType",kwnames,&obj0,&obj1)) goto fail; | |
13315 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13317 | { | |
13318 | arg2 = wxString_in_helper(obj1); | |
13319 | if (arg2 == NULL) SWIG_fail; | |
13320 | temp2 = True; | |
13321 | } | |
13322 | { | |
13323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13324 | result = (wxFileType *)(arg1)->GetFileTypeFromMimeType((wxString const &)*arg2); | |
13325 | ||
13326 | wxPyEndAllowThreads(__tstate); | |
13327 | if (PyErr_Occurred()) SWIG_fail; | |
13328 | } | |
13329 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); | |
13330 | { | |
13331 | if (temp2) | |
13332 | delete arg2; | |
13333 | } | |
13334 | return resultobj; | |
13335 | fail: | |
13336 | { | |
13337 | if (temp2) | |
13338 | delete arg2; | |
13339 | } | |
13340 | return NULL; | |
13341 | } | |
13342 | ||
13343 | ||
13344 | static PyObject *_wrap_MimeTypesManager_ReadMailcap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13345 | PyObject *resultobj; | |
13346 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13347 | wxString *arg2 = 0 ; | |
13348 | bool arg3 = (bool) False ; | |
13349 | bool result; | |
13350 | bool temp2 = False ; | |
13351 | PyObject * obj0 = 0 ; | |
13352 | PyObject * obj1 = 0 ; | |
13353 | PyObject * obj2 = 0 ; | |
13354 | char *kwnames[] = { | |
13355 | (char *) "self",(char *) "filename",(char *) "fallback", NULL | |
13356 | }; | |
13357 | ||
13358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MimeTypesManager_ReadMailcap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13359 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13361 | { | |
13362 | arg2 = wxString_in_helper(obj1); | |
13363 | if (arg2 == NULL) SWIG_fail; | |
13364 | temp2 = True; | |
13365 | } | |
13366 | if (obj2) { | |
13367 | arg3 = (bool) SWIG_AsBool(obj2); | |
13368 | if (PyErr_Occurred()) SWIG_fail; | |
13369 | } | |
13370 | { | |
13371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13372 | result = (bool)(arg1)->ReadMailcap((wxString const &)*arg2,arg3); | |
13373 | ||
13374 | wxPyEndAllowThreads(__tstate); | |
13375 | if (PyErr_Occurred()) SWIG_fail; | |
13376 | } | |
13377 | { | |
13378 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13379 | } | |
13380 | { | |
13381 | if (temp2) | |
13382 | delete arg2; | |
13383 | } | |
13384 | return resultobj; | |
13385 | fail: | |
13386 | { | |
13387 | if (temp2) | |
13388 | delete arg2; | |
13389 | } | |
13390 | return NULL; | |
13391 | } | |
13392 | ||
13393 | ||
13394 | static PyObject *_wrap_MimeTypesManager_ReadMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13395 | PyObject *resultobj; | |
13396 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13397 | wxString *arg2 = 0 ; | |
13398 | bool result; | |
13399 | bool temp2 = False ; | |
13400 | PyObject * obj0 = 0 ; | |
13401 | PyObject * obj1 = 0 ; | |
13402 | char *kwnames[] = { | |
13403 | (char *) "self",(char *) "filename", NULL | |
13404 | }; | |
13405 | ||
13406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_ReadMimeTypes",kwnames,&obj0,&obj1)) goto fail; | |
13407 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13408 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13409 | { | |
13410 | arg2 = wxString_in_helper(obj1); | |
13411 | if (arg2 == NULL) SWIG_fail; | |
13412 | temp2 = True; | |
13413 | } | |
13414 | { | |
13415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13416 | result = (bool)(arg1)->ReadMimeTypes((wxString const &)*arg2); | |
13417 | ||
13418 | wxPyEndAllowThreads(__tstate); | |
13419 | if (PyErr_Occurred()) SWIG_fail; | |
13420 | } | |
13421 | { | |
13422 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13423 | } | |
13424 | { | |
13425 | if (temp2) | |
13426 | delete arg2; | |
13427 | } | |
13428 | return resultobj; | |
13429 | fail: | |
13430 | { | |
13431 | if (temp2) | |
13432 | delete arg2; | |
13433 | } | |
13434 | return NULL; | |
13435 | } | |
13436 | ||
13437 | ||
13438 | static PyObject *_wrap_MimeTypesManager_EnumAllFileTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13439 | PyObject *resultobj; | |
13440 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13441 | PyObject *result; | |
13442 | PyObject * obj0 = 0 ; | |
13443 | char *kwnames[] = { | |
13444 | (char *) "self", NULL | |
13445 | }; | |
13446 | ||
13447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_EnumAllFileTypes",kwnames,&obj0)) goto fail; | |
13448 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13449 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13450 | { | |
13451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13452 | result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(arg1); | |
13453 | ||
13454 | wxPyEndAllowThreads(__tstate); | |
13455 | if (PyErr_Occurred()) SWIG_fail; | |
13456 | } | |
13457 | resultobj = result; | |
13458 | return resultobj; | |
13459 | fail: | |
13460 | return NULL; | |
13461 | } | |
13462 | ||
13463 | ||
13464 | static PyObject *_wrap_MimeTypesManager_AddFallback(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13465 | PyObject *resultobj; | |
13466 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13467 | wxFileTypeInfo *arg2 = 0 ; | |
13468 | PyObject * obj0 = 0 ; | |
13469 | PyObject * obj1 = 0 ; | |
13470 | char *kwnames[] = { | |
13471 | (char *) "self",(char *) "ft", NULL | |
13472 | }; | |
13473 | ||
13474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_AddFallback",kwnames,&obj0,&obj1)) goto fail; | |
13475 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13476 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13477 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo, | |
13478 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13479 | SWIG_fail; | |
13480 | if (arg2 == NULL) { | |
13481 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13482 | SWIG_fail; | |
13483 | } | |
13484 | { | |
13485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13486 | (arg1)->AddFallback((wxFileTypeInfo const &)*arg2); | |
13487 | ||
13488 | wxPyEndAllowThreads(__tstate); | |
13489 | if (PyErr_Occurred()) SWIG_fail; | |
13490 | } | |
13491 | Py_INCREF(Py_None); resultobj = Py_None; | |
13492 | return resultobj; | |
13493 | fail: | |
13494 | return NULL; | |
13495 | } | |
13496 | ||
13497 | ||
13498 | static PyObject *_wrap_MimeTypesManager_Associate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13499 | PyObject *resultobj; | |
13500 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13501 | wxFileTypeInfo *arg2 = 0 ; | |
13502 | wxFileType *result; | |
13503 | PyObject * obj0 = 0 ; | |
13504 | PyObject * obj1 = 0 ; | |
13505 | char *kwnames[] = { | |
13506 | (char *) "self",(char *) "ftInfo", NULL | |
13507 | }; | |
13508 | ||
13509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Associate",kwnames,&obj0,&obj1)) goto fail; | |
13510 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13511 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13512 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo, | |
13513 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13514 | SWIG_fail; | |
13515 | if (arg2 == NULL) { | |
13516 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13517 | SWIG_fail; | |
13518 | } | |
13519 | { | |
13520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13521 | result = (wxFileType *)(arg1)->Associate((wxFileTypeInfo const &)*arg2); | |
13522 | ||
13523 | wxPyEndAllowThreads(__tstate); | |
13524 | if (PyErr_Occurred()) SWIG_fail; | |
13525 | } | |
13526 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); | |
13527 | return resultobj; | |
13528 | fail: | |
13529 | return NULL; | |
13530 | } | |
13531 | ||
13532 | ||
13533 | static PyObject *_wrap_MimeTypesManager_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13534 | PyObject *resultobj; | |
13535 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13536 | wxFileType *arg2 = (wxFileType *) 0 ; | |
13537 | bool result; | |
13538 | PyObject * obj0 = 0 ; | |
13539 | PyObject * obj1 = 0 ; | |
13540 | char *kwnames[] = { | |
13541 | (char *) "self",(char *) "ft", NULL | |
13542 | }; | |
13543 | ||
13544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Unassociate",kwnames,&obj0,&obj1)) goto fail; | |
13545 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13547 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileType, | |
13548 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13549 | { | |
13550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13551 | result = (bool)(arg1)->Unassociate(arg2); | |
13552 | ||
13553 | wxPyEndAllowThreads(__tstate); | |
13554 | if (PyErr_Occurred()) SWIG_fail; | |
13555 | } | |
13556 | { | |
13557 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13558 | } | |
13559 | return resultobj; | |
13560 | fail: | |
13561 | return NULL; | |
13562 | } | |
13563 | ||
13564 | ||
13565 | static PyObject *_wrap_delete_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13566 | PyObject *resultobj; | |
13567 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13568 | PyObject * obj0 = 0 ; | |
13569 | char *kwnames[] = { | |
13570 | (char *) "self", NULL | |
13571 | }; | |
13572 | ||
13573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MimeTypesManager",kwnames,&obj0)) goto fail; | |
13574 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13575 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13576 | { | |
13577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13578 | delete arg1; | |
13579 | ||
13580 | wxPyEndAllowThreads(__tstate); | |
13581 | if (PyErr_Occurred()) SWIG_fail; | |
13582 | } | |
13583 | Py_INCREF(Py_None); resultobj = Py_None; | |
13584 | return resultobj; | |
13585 | fail: | |
13586 | return NULL; | |
13587 | } | |
13588 | ||
13589 | ||
13590 | static PyObject * MimeTypesManager_swigregister(PyObject *self, PyObject *args) { | |
13591 | PyObject *obj; | |
13592 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13593 | SWIG_TypeClientData(SWIGTYPE_p_wxMimeTypesManager, obj); | |
13594 | Py_INCREF(obj); | |
13595 | return Py_BuildValue((char *)""); | |
13596 | } | |
13597 | static int _wrap_ART_TOOLBAR_set(PyObject *_val) { | |
13598 | PyErr_SetString(PyExc_TypeError,"Variable ART_TOOLBAR is read-only."); | |
13599 | return 1; | |
13600 | } | |
13601 | ||
13602 | ||
13603 | static PyObject *_wrap_ART_TOOLBAR_get() { | |
13604 | PyObject *pyobj; | |
13605 | ||
13606 | { | |
13607 | #if wxUSE_UNICODE | |
13608 | pyobj = PyUnicode_FromWideChar((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len()); | |
13609 | #else | |
13610 | pyobj = PyString_FromStringAndSize((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len()); | |
13611 | #endif | |
13612 | } | |
13613 | return pyobj; | |
13614 | } | |
13615 | ||
13616 | ||
13617 | static int _wrap_ART_MENU_set(PyObject *_val) { | |
13618 | PyErr_SetString(PyExc_TypeError,"Variable ART_MENU is read-only."); | |
13619 | return 1; | |
13620 | } | |
13621 | ||
13622 | ||
13623 | static PyObject *_wrap_ART_MENU_get() { | |
13624 | PyObject *pyobj; | |
13625 | ||
13626 | { | |
13627 | #if wxUSE_UNICODE | |
13628 | pyobj = PyUnicode_FromWideChar((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len()); | |
13629 | #else | |
13630 | pyobj = PyString_FromStringAndSize((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len()); | |
13631 | #endif | |
13632 | } | |
13633 | return pyobj; | |
13634 | } | |
13635 | ||
13636 | ||
13637 | static int _wrap_ART_FRAME_ICON_set(PyObject *_val) { | |
13638 | PyErr_SetString(PyExc_TypeError,"Variable ART_FRAME_ICON is read-only."); | |
13639 | return 1; | |
13640 | } | |
13641 | ||
13642 | ||
13643 | static PyObject *_wrap_ART_FRAME_ICON_get() { | |
13644 | PyObject *pyobj; | |
13645 | ||
13646 | { | |
13647 | #if wxUSE_UNICODE | |
13648 | pyobj = PyUnicode_FromWideChar((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len()); | |
13649 | #else | |
13650 | pyobj = PyString_FromStringAndSize((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len()); | |
13651 | #endif | |
13652 | } | |
13653 | return pyobj; | |
13654 | } | |
13655 | ||
13656 | ||
13657 | static int _wrap_ART_CMN_DIALOG_set(PyObject *_val) { | |
13658 | PyErr_SetString(PyExc_TypeError,"Variable ART_CMN_DIALOG is read-only."); | |
13659 | return 1; | |
13660 | } | |
13661 | ||
13662 | ||
13663 | static PyObject *_wrap_ART_CMN_DIALOG_get() { | |
13664 | PyObject *pyobj; | |
13665 | ||
13666 | { | |
13667 | #if wxUSE_UNICODE | |
13668 | pyobj = PyUnicode_FromWideChar((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len()); | |
13669 | #else | |
13670 | pyobj = PyString_FromStringAndSize((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len()); | |
13671 | #endif | |
13672 | } | |
13673 | return pyobj; | |
13674 | } | |
13675 | ||
13676 | ||
13677 | static int _wrap_ART_HELP_BROWSER_set(PyObject *_val) { | |
13678 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BROWSER is read-only."); | |
13679 | return 1; | |
13680 | } | |
13681 | ||
13682 | ||
13683 | static PyObject *_wrap_ART_HELP_BROWSER_get() { | |
13684 | PyObject *pyobj; | |
13685 | ||
13686 | { | |
13687 | #if wxUSE_UNICODE | |
13688 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len()); | |
13689 | #else | |
13690 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len()); | |
13691 | #endif | |
13692 | } | |
13693 | return pyobj; | |
13694 | } | |
13695 | ||
13696 | ||
13697 | static int _wrap_ART_MESSAGE_BOX_set(PyObject *_val) { | |
13698 | PyErr_SetString(PyExc_TypeError,"Variable ART_MESSAGE_BOX is read-only."); | |
13699 | return 1; | |
13700 | } | |
13701 | ||
13702 | ||
13703 | static PyObject *_wrap_ART_MESSAGE_BOX_get() { | |
13704 | PyObject *pyobj; | |
13705 | ||
13706 | { | |
13707 | #if wxUSE_UNICODE | |
13708 | pyobj = PyUnicode_FromWideChar((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len()); | |
13709 | #else | |
13710 | pyobj = PyString_FromStringAndSize((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len()); | |
13711 | #endif | |
13712 | } | |
13713 | return pyobj; | |
13714 | } | |
13715 | ||
13716 | ||
13717 | static int _wrap_ART_OTHER_set(PyObject *_val) { | |
13718 | PyErr_SetString(PyExc_TypeError,"Variable ART_OTHER is read-only."); | |
13719 | return 1; | |
13720 | } | |
13721 | ||
13722 | ||
13723 | static PyObject *_wrap_ART_OTHER_get() { | |
13724 | PyObject *pyobj; | |
13725 | ||
13726 | { | |
13727 | #if wxUSE_UNICODE | |
13728 | pyobj = PyUnicode_FromWideChar((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len()); | |
13729 | #else | |
13730 | pyobj = PyString_FromStringAndSize((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len()); | |
13731 | #endif | |
13732 | } | |
13733 | return pyobj; | |
13734 | } | |
13735 | ||
13736 | ||
13737 | static int _wrap_ART_ADD_BOOKMARK_set(PyObject *_val) { | |
13738 | PyErr_SetString(PyExc_TypeError,"Variable ART_ADD_BOOKMARK is read-only."); | |
13739 | return 1; | |
13740 | } | |
13741 | ||
13742 | ||
13743 | static PyObject *_wrap_ART_ADD_BOOKMARK_get() { | |
13744 | PyObject *pyobj; | |
13745 | ||
13746 | { | |
13747 | #if wxUSE_UNICODE | |
13748 | pyobj = PyUnicode_FromWideChar((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len()); | |
13749 | #else | |
13750 | pyobj = PyString_FromStringAndSize((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len()); | |
13751 | #endif | |
13752 | } | |
13753 | return pyobj; | |
13754 | } | |
13755 | ||
13756 | ||
13757 | static int _wrap_ART_DEL_BOOKMARK_set(PyObject *_val) { | |
13758 | PyErr_SetString(PyExc_TypeError,"Variable ART_DEL_BOOKMARK is read-only."); | |
13759 | return 1; | |
13760 | } | |
13761 | ||
13762 | ||
13763 | static PyObject *_wrap_ART_DEL_BOOKMARK_get() { | |
13764 | PyObject *pyobj; | |
13765 | ||
13766 | { | |
13767 | #if wxUSE_UNICODE | |
13768 | pyobj = PyUnicode_FromWideChar((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len()); | |
13769 | #else | |
13770 | pyobj = PyString_FromStringAndSize((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len()); | |
13771 | #endif | |
13772 | } | |
13773 | return pyobj; | |
13774 | } | |
13775 | ||
13776 | ||
13777 | static int _wrap_ART_HELP_SIDE_PANEL_set(PyObject *_val) { | |
13778 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SIDE_PANEL is read-only."); | |
13779 | return 1; | |
13780 | } | |
13781 | ||
13782 | ||
13783 | static PyObject *_wrap_ART_HELP_SIDE_PANEL_get() { | |
13784 | PyObject *pyobj; | |
13785 | ||
13786 | { | |
13787 | #if wxUSE_UNICODE | |
13788 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len()); | |
13789 | #else | |
13790 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len()); | |
13791 | #endif | |
13792 | } | |
13793 | return pyobj; | |
13794 | } | |
13795 | ||
13796 | ||
13797 | static int _wrap_ART_HELP_SETTINGS_set(PyObject *_val) { | |
13798 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SETTINGS is read-only."); | |
13799 | return 1; | |
13800 | } | |
13801 | ||
13802 | ||
13803 | static PyObject *_wrap_ART_HELP_SETTINGS_get() { | |
13804 | PyObject *pyobj; | |
13805 | ||
13806 | { | |
13807 | #if wxUSE_UNICODE | |
13808 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len()); | |
13809 | #else | |
13810 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len()); | |
13811 | #endif | |
13812 | } | |
13813 | return pyobj; | |
13814 | } | |
13815 | ||
13816 | ||
13817 | static int _wrap_ART_HELP_BOOK_set(PyObject *_val) { | |
13818 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BOOK is read-only."); | |
13819 | return 1; | |
13820 | } | |
13821 | ||
13822 | ||
13823 | static PyObject *_wrap_ART_HELP_BOOK_get() { | |
13824 | PyObject *pyobj; | |
13825 | ||
13826 | { | |
13827 | #if wxUSE_UNICODE | |
13828 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len()); | |
13829 | #else | |
13830 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len()); | |
13831 | #endif | |
13832 | } | |
13833 | return pyobj; | |
13834 | } | |
13835 | ||
13836 | ||
13837 | static int _wrap_ART_HELP_FOLDER_set(PyObject *_val) { | |
13838 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_FOLDER is read-only."); | |
13839 | return 1; | |
13840 | } | |
13841 | ||
13842 | ||
13843 | static PyObject *_wrap_ART_HELP_FOLDER_get() { | |
13844 | PyObject *pyobj; | |
13845 | ||
13846 | { | |
13847 | #if wxUSE_UNICODE | |
13848 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len()); | |
13849 | #else | |
13850 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len()); | |
13851 | #endif | |
13852 | } | |
13853 | return pyobj; | |
13854 | } | |
13855 | ||
13856 | ||
13857 | static int _wrap_ART_HELP_PAGE_set(PyObject *_val) { | |
13858 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_PAGE is read-only."); | |
13859 | return 1; | |
13860 | } | |
13861 | ||
13862 | ||
13863 | static PyObject *_wrap_ART_HELP_PAGE_get() { | |
13864 | PyObject *pyobj; | |
13865 | ||
13866 | { | |
13867 | #if wxUSE_UNICODE | |
13868 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len()); | |
13869 | #else | |
13870 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len()); | |
13871 | #endif | |
13872 | } | |
13873 | return pyobj; | |
13874 | } | |
13875 | ||
13876 | ||
13877 | static int _wrap_ART_GO_BACK_set(PyObject *_val) { | |
13878 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_BACK is read-only."); | |
13879 | return 1; | |
13880 | } | |
13881 | ||
13882 | ||
13883 | static PyObject *_wrap_ART_GO_BACK_get() { | |
13884 | PyObject *pyobj; | |
13885 | ||
13886 | { | |
13887 | #if wxUSE_UNICODE | |
13888 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len()); | |
13889 | #else | |
13890 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len()); | |
13891 | #endif | |
13892 | } | |
13893 | return pyobj; | |
13894 | } | |
13895 | ||
13896 | ||
13897 | static int _wrap_ART_GO_FORWARD_set(PyObject *_val) { | |
13898 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_FORWARD is read-only."); | |
13899 | return 1; | |
13900 | } | |
13901 | ||
13902 | ||
13903 | static PyObject *_wrap_ART_GO_FORWARD_get() { | |
13904 | PyObject *pyobj; | |
13905 | ||
13906 | { | |
13907 | #if wxUSE_UNICODE | |
13908 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len()); | |
13909 | #else | |
13910 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len()); | |
13911 | #endif | |
13912 | } | |
13913 | return pyobj; | |
13914 | } | |
13915 | ||
13916 | ||
13917 | static int _wrap_ART_GO_UP_set(PyObject *_val) { | |
13918 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_UP is read-only."); | |
13919 | return 1; | |
13920 | } | |
13921 | ||
13922 | ||
13923 | static PyObject *_wrap_ART_GO_UP_get() { | |
13924 | PyObject *pyobj; | |
13925 | ||
13926 | { | |
13927 | #if wxUSE_UNICODE | |
13928 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len()); | |
13929 | #else | |
13930 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len()); | |
13931 | #endif | |
13932 | } | |
13933 | return pyobj; | |
13934 | } | |
13935 | ||
13936 | ||
13937 | static int _wrap_ART_GO_DOWN_set(PyObject *_val) { | |
13938 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DOWN is read-only."); | |
13939 | return 1; | |
13940 | } | |
13941 | ||
13942 | ||
13943 | static PyObject *_wrap_ART_GO_DOWN_get() { | |
13944 | PyObject *pyobj; | |
13945 | ||
13946 | { | |
13947 | #if wxUSE_UNICODE | |
13948 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len()); | |
13949 | #else | |
13950 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len()); | |
13951 | #endif | |
13952 | } | |
13953 | return pyobj; | |
13954 | } | |
13955 | ||
13956 | ||
13957 | static int _wrap_ART_GO_TO_PARENT_set(PyObject *_val) { | |
13958 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_TO_PARENT is read-only."); | |
13959 | return 1; | |
13960 | } | |
13961 | ||
13962 | ||
13963 | static PyObject *_wrap_ART_GO_TO_PARENT_get() { | |
13964 | PyObject *pyobj; | |
13965 | ||
13966 | { | |
13967 | #if wxUSE_UNICODE | |
13968 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len()); | |
13969 | #else | |
13970 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len()); | |
13971 | #endif | |
13972 | } | |
13973 | return pyobj; | |
13974 | } | |
13975 | ||
13976 | ||
13977 | static int _wrap_ART_GO_HOME_set(PyObject *_val) { | |
13978 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_HOME is read-only."); | |
13979 | return 1; | |
13980 | } | |
13981 | ||
13982 | ||
13983 | static PyObject *_wrap_ART_GO_HOME_get() { | |
13984 | PyObject *pyobj; | |
13985 | ||
13986 | { | |
13987 | #if wxUSE_UNICODE | |
13988 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len()); | |
13989 | #else | |
13990 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len()); | |
13991 | #endif | |
13992 | } | |
13993 | return pyobj; | |
13994 | } | |
13995 | ||
13996 | ||
13997 | static int _wrap_ART_FILE_OPEN_set(PyObject *_val) { | |
13998 | PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_OPEN is read-only."); | |
13999 | return 1; | |
14000 | } | |
14001 | ||
14002 | ||
14003 | static PyObject *_wrap_ART_FILE_OPEN_get() { | |
14004 | PyObject *pyobj; | |
14005 | ||
14006 | { | |
14007 | #if wxUSE_UNICODE | |
14008 | pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len()); | |
14009 | #else | |
14010 | pyobj = PyString_FromStringAndSize((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len()); | |
14011 | #endif | |
14012 | } | |
14013 | return pyobj; | |
14014 | } | |
14015 | ||
14016 | ||
14017 | static int _wrap_ART_PRINT_set(PyObject *_val) { | |
14018 | PyErr_SetString(PyExc_TypeError,"Variable ART_PRINT is read-only."); | |
14019 | return 1; | |
14020 | } | |
14021 | ||
14022 | ||
14023 | static PyObject *_wrap_ART_PRINT_get() { | |
14024 | PyObject *pyobj; | |
14025 | ||
14026 | { | |
14027 | #if wxUSE_UNICODE | |
14028 | pyobj = PyUnicode_FromWideChar((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len()); | |
14029 | #else | |
14030 | pyobj = PyString_FromStringAndSize((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len()); | |
14031 | #endif | |
14032 | } | |
14033 | return pyobj; | |
14034 | } | |
14035 | ||
14036 | ||
14037 | static int _wrap_ART_HELP_set(PyObject *_val) { | |
14038 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP is read-only."); | |
14039 | return 1; | |
14040 | } | |
14041 | ||
14042 | ||
14043 | static PyObject *_wrap_ART_HELP_get() { | |
14044 | PyObject *pyobj; | |
14045 | ||
14046 | { | |
14047 | #if wxUSE_UNICODE | |
14048 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len()); | |
14049 | #else | |
14050 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len()); | |
14051 | #endif | |
14052 | } | |
14053 | return pyobj; | |
14054 | } | |
14055 | ||
14056 | ||
14057 | static int _wrap_ART_TIP_set(PyObject *_val) { | |
14058 | PyErr_SetString(PyExc_TypeError,"Variable ART_TIP is read-only."); | |
14059 | return 1; | |
14060 | } | |
14061 | ||
14062 | ||
14063 | static PyObject *_wrap_ART_TIP_get() { | |
14064 | PyObject *pyobj; | |
14065 | ||
14066 | { | |
14067 | #if wxUSE_UNICODE | |
14068 | pyobj = PyUnicode_FromWideChar((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len()); | |
14069 | #else | |
14070 | pyobj = PyString_FromStringAndSize((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len()); | |
14071 | #endif | |
14072 | } | |
14073 | return pyobj; | |
14074 | } | |
14075 | ||
14076 | ||
14077 | static int _wrap_ART_REPORT_VIEW_set(PyObject *_val) { | |
14078 | PyErr_SetString(PyExc_TypeError,"Variable ART_REPORT_VIEW is read-only."); | |
14079 | return 1; | |
14080 | } | |
14081 | ||
14082 | ||
14083 | static PyObject *_wrap_ART_REPORT_VIEW_get() { | |
14084 | PyObject *pyobj; | |
14085 | ||
14086 | { | |
14087 | #if wxUSE_UNICODE | |
14088 | pyobj = PyUnicode_FromWideChar((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len()); | |
14089 | #else | |
14090 | pyobj = PyString_FromStringAndSize((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len()); | |
14091 | #endif | |
14092 | } | |
14093 | return pyobj; | |
14094 | } | |
14095 | ||
14096 | ||
14097 | static int _wrap_ART_LIST_VIEW_set(PyObject *_val) { | |
14098 | PyErr_SetString(PyExc_TypeError,"Variable ART_LIST_VIEW is read-only."); | |
14099 | return 1; | |
14100 | } | |
14101 | ||
14102 | ||
14103 | static PyObject *_wrap_ART_LIST_VIEW_get() { | |
14104 | PyObject *pyobj; | |
14105 | ||
14106 | { | |
14107 | #if wxUSE_UNICODE | |
14108 | pyobj = PyUnicode_FromWideChar((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len()); | |
14109 | #else | |
14110 | pyobj = PyString_FromStringAndSize((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len()); | |
14111 | #endif | |
14112 | } | |
14113 | return pyobj; | |
14114 | } | |
14115 | ||
14116 | ||
14117 | static int _wrap_ART_NEW_DIR_set(PyObject *_val) { | |
14118 | PyErr_SetString(PyExc_TypeError,"Variable ART_NEW_DIR is read-only."); | |
14119 | return 1; | |
14120 | } | |
14121 | ||
14122 | ||
14123 | static PyObject *_wrap_ART_NEW_DIR_get() { | |
14124 | PyObject *pyobj; | |
14125 | ||
14126 | { | |
14127 | #if wxUSE_UNICODE | |
14128 | pyobj = PyUnicode_FromWideChar((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len()); | |
14129 | #else | |
14130 | pyobj = PyString_FromStringAndSize((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len()); | |
14131 | #endif | |
14132 | } | |
14133 | return pyobj; | |
14134 | } | |
14135 | ||
14136 | ||
14137 | static int _wrap_ART_FOLDER_set(PyObject *_val) { | |
14138 | PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER is read-only."); | |
14139 | return 1; | |
14140 | } | |
14141 | ||
14142 | ||
14143 | static PyObject *_wrap_ART_FOLDER_get() { | |
14144 | PyObject *pyobj; | |
14145 | ||
14146 | { | |
14147 | #if wxUSE_UNICODE | |
14148 | pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len()); | |
14149 | #else | |
14150 | pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len()); | |
14151 | #endif | |
14152 | } | |
14153 | return pyobj; | |
14154 | } | |
14155 | ||
14156 | ||
14157 | static int _wrap_ART_GO_DIR_UP_set(PyObject *_val) { | |
14158 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DIR_UP is read-only."); | |
14159 | return 1; | |
14160 | } | |
14161 | ||
14162 | ||
14163 | static PyObject *_wrap_ART_GO_DIR_UP_get() { | |
14164 | PyObject *pyobj; | |
14165 | ||
14166 | { | |
14167 | #if wxUSE_UNICODE | |
14168 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len()); | |
14169 | #else | |
14170 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len()); | |
14171 | #endif | |
14172 | } | |
14173 | return pyobj; | |
14174 | } | |
14175 | ||
14176 | ||
14177 | static int _wrap_ART_EXECUTABLE_FILE_set(PyObject *_val) { | |
14178 | PyErr_SetString(PyExc_TypeError,"Variable ART_EXECUTABLE_FILE is read-only."); | |
14179 | return 1; | |
14180 | } | |
14181 | ||
14182 | ||
14183 | static PyObject *_wrap_ART_EXECUTABLE_FILE_get() { | |
14184 | PyObject *pyobj; | |
14185 | ||
14186 | { | |
14187 | #if wxUSE_UNICODE | |
14188 | pyobj = PyUnicode_FromWideChar((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len()); | |
14189 | #else | |
14190 | pyobj = PyString_FromStringAndSize((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len()); | |
14191 | #endif | |
14192 | } | |
14193 | return pyobj; | |
14194 | } | |
14195 | ||
14196 | ||
14197 | static int _wrap_ART_NORMAL_FILE_set(PyObject *_val) { | |
14198 | PyErr_SetString(PyExc_TypeError,"Variable ART_NORMAL_FILE is read-only."); | |
14199 | return 1; | |
14200 | } | |
14201 | ||
14202 | ||
14203 | static PyObject *_wrap_ART_NORMAL_FILE_get() { | |
14204 | PyObject *pyobj; | |
14205 | ||
14206 | { | |
14207 | #if wxUSE_UNICODE | |
14208 | pyobj = PyUnicode_FromWideChar((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len()); | |
14209 | #else | |
14210 | pyobj = PyString_FromStringAndSize((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len()); | |
14211 | #endif | |
14212 | } | |
14213 | return pyobj; | |
14214 | } | |
14215 | ||
14216 | ||
14217 | static int _wrap_ART_TICK_MARK_set(PyObject *_val) { | |
14218 | PyErr_SetString(PyExc_TypeError,"Variable ART_TICK_MARK is read-only."); | |
14219 | return 1; | |
14220 | } | |
14221 | ||
14222 | ||
14223 | static PyObject *_wrap_ART_TICK_MARK_get() { | |
14224 | PyObject *pyobj; | |
14225 | ||
14226 | { | |
14227 | #if wxUSE_UNICODE | |
14228 | pyobj = PyUnicode_FromWideChar((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len()); | |
14229 | #else | |
14230 | pyobj = PyString_FromStringAndSize((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len()); | |
14231 | #endif | |
14232 | } | |
14233 | return pyobj; | |
14234 | } | |
14235 | ||
14236 | ||
14237 | static int _wrap_ART_CROSS_MARK_set(PyObject *_val) { | |
14238 | PyErr_SetString(PyExc_TypeError,"Variable ART_CROSS_MARK is read-only."); | |
14239 | return 1; | |
14240 | } | |
14241 | ||
14242 | ||
14243 | static PyObject *_wrap_ART_CROSS_MARK_get() { | |
14244 | PyObject *pyobj; | |
14245 | ||
14246 | { | |
14247 | #if wxUSE_UNICODE | |
14248 | pyobj = PyUnicode_FromWideChar((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len()); | |
14249 | #else | |
14250 | pyobj = PyString_FromStringAndSize((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len()); | |
14251 | #endif | |
14252 | } | |
14253 | return pyobj; | |
14254 | } | |
14255 | ||
14256 | ||
14257 | static int _wrap_ART_ERROR_set(PyObject *_val) { | |
14258 | PyErr_SetString(PyExc_TypeError,"Variable ART_ERROR is read-only."); | |
14259 | return 1; | |
14260 | } | |
14261 | ||
14262 | ||
14263 | static PyObject *_wrap_ART_ERROR_get() { | |
14264 | PyObject *pyobj; | |
14265 | ||
14266 | { | |
14267 | #if wxUSE_UNICODE | |
14268 | pyobj = PyUnicode_FromWideChar((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len()); | |
14269 | #else | |
14270 | pyobj = PyString_FromStringAndSize((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len()); | |
14271 | #endif | |
14272 | } | |
14273 | return pyobj; | |
14274 | } | |
14275 | ||
14276 | ||
14277 | static int _wrap_ART_QUESTION_set(PyObject *_val) { | |
14278 | PyErr_SetString(PyExc_TypeError,"Variable ART_QUESTION is read-only."); | |
14279 | return 1; | |
14280 | } | |
14281 | ||
14282 | ||
14283 | static PyObject *_wrap_ART_QUESTION_get() { | |
14284 | PyObject *pyobj; | |
14285 | ||
14286 | { | |
14287 | #if wxUSE_UNICODE | |
14288 | pyobj = PyUnicode_FromWideChar((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len()); | |
14289 | #else | |
14290 | pyobj = PyString_FromStringAndSize((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len()); | |
14291 | #endif | |
14292 | } | |
14293 | return pyobj; | |
14294 | } | |
14295 | ||
14296 | ||
14297 | static int _wrap_ART_WARNING_set(PyObject *_val) { | |
14298 | PyErr_SetString(PyExc_TypeError,"Variable ART_WARNING is read-only."); | |
14299 | return 1; | |
14300 | } | |
14301 | ||
14302 | ||
14303 | static PyObject *_wrap_ART_WARNING_get() { | |
14304 | PyObject *pyobj; | |
14305 | ||
14306 | { | |
14307 | #if wxUSE_UNICODE | |
14308 | pyobj = PyUnicode_FromWideChar((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len()); | |
14309 | #else | |
14310 | pyobj = PyString_FromStringAndSize((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len()); | |
14311 | #endif | |
14312 | } | |
14313 | return pyobj; | |
14314 | } | |
14315 | ||
14316 | ||
14317 | static int _wrap_ART_INFORMATION_set(PyObject *_val) { | |
14318 | PyErr_SetString(PyExc_TypeError,"Variable ART_INFORMATION is read-only."); | |
14319 | return 1; | |
14320 | } | |
14321 | ||
14322 | ||
14323 | static PyObject *_wrap_ART_INFORMATION_get() { | |
14324 | PyObject *pyobj; | |
14325 | ||
14326 | { | |
14327 | #if wxUSE_UNICODE | |
14328 | pyobj = PyUnicode_FromWideChar((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len()); | |
14329 | #else | |
14330 | pyobj = PyString_FromStringAndSize((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len()); | |
14331 | #endif | |
14332 | } | |
14333 | return pyobj; | |
14334 | } | |
14335 | ||
14336 | ||
14337 | static int _wrap_ART_MISSING_IMAGE_set(PyObject *_val) { | |
14338 | PyErr_SetString(PyExc_TypeError,"Variable ART_MISSING_IMAGE is read-only."); | |
14339 | return 1; | |
14340 | } | |
14341 | ||
14342 | ||
14343 | static PyObject *_wrap_ART_MISSING_IMAGE_get() { | |
14344 | PyObject *pyobj; | |
14345 | ||
14346 | { | |
14347 | #if wxUSE_UNICODE | |
14348 | pyobj = PyUnicode_FromWideChar((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len()); | |
14349 | #else | |
14350 | pyobj = PyString_FromStringAndSize((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len()); | |
14351 | #endif | |
14352 | } | |
14353 | return pyobj; | |
14354 | } | |
14355 | ||
14356 | ||
14357 | static PyObject *_wrap_new_ArtProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14358 | PyObject *resultobj; | |
14359 | wxPyArtProvider *result; | |
14360 | char *kwnames[] = { | |
14361 | NULL | |
14362 | }; | |
14363 | ||
14364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ArtProvider",kwnames)) goto fail; | |
14365 | { | |
0439c23b | 14366 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
14367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14368 | result = (wxPyArtProvider *)new wxPyArtProvider(); | |
14369 | ||
14370 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 14371 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
14372 | } |
14373 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyArtProvider, 1); | |
14374 | return resultobj; | |
14375 | fail: | |
14376 | return NULL; | |
14377 | } | |
14378 | ||
14379 | ||
14380 | static PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14381 | PyObject *resultobj; | |
14382 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14383 | PyObject *arg2 = (PyObject *) 0 ; | |
14384 | PyObject *arg3 = (PyObject *) 0 ; | |
14385 | PyObject * obj0 = 0 ; | |
14386 | PyObject * obj1 = 0 ; | |
14387 | PyObject * obj2 = 0 ; | |
14388 | char *kwnames[] = { | |
14389 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
14390 | }; | |
14391 | ||
14392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ArtProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14393 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, | |
14394 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14395 | arg2 = obj1; | |
14396 | arg3 = obj2; | |
14397 | { | |
14398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14399 | (arg1)->_setCallbackInfo(arg2,arg3); | |
14400 | ||
14401 | wxPyEndAllowThreads(__tstate); | |
14402 | if (PyErr_Occurred()) SWIG_fail; | |
14403 | } | |
14404 | Py_INCREF(Py_None); resultobj = Py_None; | |
14405 | return resultobj; | |
14406 | fail: | |
14407 | return NULL; | |
14408 | } | |
14409 | ||
14410 | ||
14411 | static PyObject *_wrap_ArtProvider_PushProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14412 | PyObject *resultobj; | |
14413 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14414 | PyObject * obj0 = 0 ; | |
14415 | char *kwnames[] = { | |
14416 | (char *) "provider", NULL | |
14417 | }; | |
14418 | ||
14419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) goto fail; | |
14420 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, | |
14421 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14422 | { | |
14423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14424 | wxPyArtProvider::PushProvider(arg1); | |
14425 | ||
14426 | wxPyEndAllowThreads(__tstate); | |
14427 | if (PyErr_Occurred()) SWIG_fail; | |
14428 | } | |
14429 | Py_INCREF(Py_None); resultobj = Py_None; | |
14430 | return resultobj; | |
14431 | fail: | |
14432 | return NULL; | |
14433 | } | |
14434 | ||
14435 | ||
14436 | static PyObject *_wrap_ArtProvider_PopProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14437 | PyObject *resultobj; | |
14438 | bool result; | |
14439 | char *kwnames[] = { | |
14440 | NULL | |
14441 | }; | |
14442 | ||
14443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ArtProvider_PopProvider",kwnames)) goto fail; | |
14444 | { | |
14445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14446 | result = (bool)wxPyArtProvider::PopProvider(); | |
14447 | ||
14448 | wxPyEndAllowThreads(__tstate); | |
14449 | if (PyErr_Occurred()) SWIG_fail; | |
14450 | } | |
14451 | { | |
14452 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14453 | } | |
14454 | return resultobj; | |
14455 | fail: | |
14456 | return NULL; | |
14457 | } | |
14458 | ||
14459 | ||
14460 | static PyObject *_wrap_ArtProvider_RemoveProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14461 | PyObject *resultobj; | |
14462 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14463 | bool result; | |
14464 | PyObject * obj0 = 0 ; | |
14465 | char *kwnames[] = { | |
14466 | (char *) "provider", NULL | |
14467 | }; | |
14468 | ||
14469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_RemoveProvider",kwnames,&obj0)) goto fail; | |
14470 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, | |
14471 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14472 | { | |
14473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14474 | result = (bool)wxPyArtProvider::RemoveProvider(arg1); | |
14475 | ||
14476 | wxPyEndAllowThreads(__tstate); | |
14477 | if (PyErr_Occurred()) SWIG_fail; | |
14478 | } | |
14479 | { | |
14480 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14481 | } | |
14482 | return resultobj; | |
14483 | fail: | |
14484 | return NULL; | |
14485 | } | |
14486 | ||
14487 | ||
14488 | static PyObject *_wrap_ArtProvider_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14489 | PyObject *resultobj; | |
14490 | wxString *arg1 = 0 ; | |
14491 | wxString const &arg2_defvalue = wxPyART_OTHER ; | |
14492 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
14493 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
14494 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
14495 | wxBitmap result; | |
14496 | bool temp1 = False ; | |
14497 | bool temp2 = False ; | |
14498 | wxSize temp3 ; | |
14499 | PyObject * obj0 = 0 ; | |
14500 | PyObject * obj1 = 0 ; | |
14501 | PyObject * obj2 = 0 ; | |
14502 | char *kwnames[] = { | |
14503 | (char *) "id",(char *) "client",(char *) "size", NULL | |
14504 | }; | |
14505 | ||
14506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14507 | { | |
14508 | arg1 = wxString_in_helper(obj0); | |
14509 | if (arg1 == NULL) SWIG_fail; | |
14510 | temp1 = True; | |
14511 | } | |
14512 | if (obj1) { | |
14513 | { | |
14514 | arg2 = wxString_in_helper(obj1); | |
14515 | if (arg2 == NULL) SWIG_fail; | |
14516 | temp2 = True; | |
14517 | } | |
14518 | } | |
14519 | if (obj2) { | |
14520 | { | |
14521 | arg3 = &temp3; | |
14522 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
14523 | } | |
14524 | } | |
14525 | { | |
0439c23b | 14526 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
14527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14528 | result = wxPyArtProvider::GetBitmap((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3); | |
14529 | ||
14530 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 14531 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
14532 | } |
14533 | { | |
14534 | wxBitmap * resultptr; | |
14535 | resultptr = new wxBitmap((wxBitmap &) result); | |
14536 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
14537 | } | |
14538 | { | |
14539 | if (temp1) | |
14540 | delete arg1; | |
14541 | } | |
14542 | { | |
14543 | if (temp2) | |
14544 | delete arg2; | |
14545 | } | |
14546 | return resultobj; | |
14547 | fail: | |
14548 | { | |
14549 | if (temp1) | |
14550 | delete arg1; | |
14551 | } | |
14552 | { | |
14553 | if (temp2) | |
14554 | delete arg2; | |
14555 | } | |
14556 | return NULL; | |
14557 | } | |
14558 | ||
14559 | ||
14560 | static PyObject *_wrap_ArtProvider_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14561 | PyObject *resultobj; | |
14562 | wxString *arg1 = 0 ; | |
14563 | wxString const &arg2_defvalue = wxPyART_OTHER ; | |
14564 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
14565 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
14566 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
14567 | wxIcon result; | |
14568 | bool temp1 = False ; | |
14569 | bool temp2 = False ; | |
14570 | wxSize temp3 ; | |
14571 | PyObject * obj0 = 0 ; | |
14572 | PyObject * obj1 = 0 ; | |
14573 | PyObject * obj2 = 0 ; | |
14574 | char *kwnames[] = { | |
14575 | (char *) "id",(char *) "client",(char *) "size", NULL | |
14576 | }; | |
14577 | ||
14578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14579 | { | |
14580 | arg1 = wxString_in_helper(obj0); | |
14581 | if (arg1 == NULL) SWIG_fail; | |
14582 | temp1 = True; | |
14583 | } | |
14584 | if (obj1) { | |
14585 | { | |
14586 | arg2 = wxString_in_helper(obj1); | |
14587 | if (arg2 == NULL) SWIG_fail; | |
14588 | temp2 = True; | |
14589 | } | |
14590 | } | |
14591 | if (obj2) { | |
14592 | { | |
14593 | arg3 = &temp3; | |
14594 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
14595 | } | |
14596 | } | |
14597 | { | |
0439c23b | 14598 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
14599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14600 | result = wxPyArtProvider::GetIcon((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3); | |
14601 | ||
14602 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 14603 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
14604 | } |
14605 | { | |
14606 | wxIcon * resultptr; | |
14607 | resultptr = new wxIcon((wxIcon &) result); | |
14608 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1); | |
14609 | } | |
14610 | { | |
14611 | if (temp1) | |
14612 | delete arg1; | |
14613 | } | |
14614 | { | |
14615 | if (temp2) | |
14616 | delete arg2; | |
14617 | } | |
14618 | return resultobj; | |
14619 | fail: | |
14620 | { | |
14621 | if (temp1) | |
14622 | delete arg1; | |
14623 | } | |
14624 | { | |
14625 | if (temp2) | |
14626 | delete arg2; | |
14627 | } | |
14628 | return NULL; | |
14629 | } | |
14630 | ||
14631 | ||
14632 | static PyObject *_wrap_ArtProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14633 | PyObject *resultobj; | |
14634 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14635 | PyObject * obj0 = 0 ; | |
14636 | char *kwnames[] = { | |
14637 | (char *) "self", NULL | |
14638 | }; | |
14639 | ||
14640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Destroy",kwnames,&obj0)) goto fail; | |
14641 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, | |
14642 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14643 | { | |
14644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14645 | wxPyArtProvider_Destroy(arg1); | |
14646 | ||
14647 | wxPyEndAllowThreads(__tstate); | |
14648 | if (PyErr_Occurred()) SWIG_fail; | |
14649 | } | |
14650 | Py_INCREF(Py_None); resultobj = Py_None; | |
14651 | return resultobj; | |
14652 | fail: | |
14653 | return NULL; | |
14654 | } | |
14655 | ||
14656 | ||
14657 | static PyObject * ArtProvider_swigregister(PyObject *self, PyObject *args) { | |
14658 | PyObject *obj; | |
14659 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14660 | SWIG_TypeClientData(SWIGTYPE_p_wxPyArtProvider, obj); | |
14661 | Py_INCREF(obj); | |
14662 | return Py_BuildValue((char *)""); | |
14663 | } | |
14664 | static PyObject *_wrap_delete_ConfigBase(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14665 | PyObject *resultobj; | |
14666 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14667 | PyObject * obj0 = 0 ; | |
14668 | char *kwnames[] = { | |
14669 | (char *) "self", NULL | |
14670 | }; | |
14671 | ||
14672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigBase",kwnames,&obj0)) goto fail; | |
14673 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
14674 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14675 | { | |
14676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14677 | delete arg1; | |
14678 | ||
14679 | wxPyEndAllowThreads(__tstate); | |
14680 | if (PyErr_Occurred()) SWIG_fail; | |
14681 | } | |
14682 | Py_INCREF(Py_None); resultobj = Py_None; | |
14683 | return resultobj; | |
14684 | fail: | |
14685 | return NULL; | |
14686 | } | |
14687 | ||
14688 | ||
14689 | static PyObject *_wrap_ConfigBase_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14690 | PyObject *resultobj; | |
14691 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14692 | wxConfigBase *result; | |
14693 | PyObject * obj0 = 0 ; | |
14694 | char *kwnames[] = { | |
14695 | (char *) "config", NULL | |
14696 | }; | |
14697 | ||
14698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_Set",kwnames,&obj0)) goto fail; | |
14699 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
14700 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14701 | { | |
14702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14703 | result = (wxConfigBase *)wxConfigBase::Set(arg1); | |
14704 | ||
14705 | wxPyEndAllowThreads(__tstate); | |
14706 | if (PyErr_Occurred()) SWIG_fail; | |
14707 | } | |
14708 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); | |
14709 | return resultobj; | |
14710 | fail: | |
14711 | return NULL; | |
14712 | } | |
14713 | ||
14714 | ||
14715 | static PyObject *_wrap_ConfigBase_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14716 | PyObject *resultobj; | |
14717 | bool arg1 = (bool) True ; | |
14718 | wxConfigBase *result; | |
14719 | PyObject * obj0 = 0 ; | |
14720 | char *kwnames[] = { | |
14721 | (char *) "createOnDemand", NULL | |
14722 | }; | |
14723 | ||
14724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ConfigBase_Get",kwnames,&obj0)) goto fail; | |
14725 | if (obj0) { | |
14726 | arg1 = (bool) SWIG_AsBool(obj0); | |
14727 | if (PyErr_Occurred()) SWIG_fail; | |
14728 | } | |
14729 | { | |
14730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14731 | result = (wxConfigBase *)wxConfigBase::Get(arg1); | |
14732 | ||
14733 | wxPyEndAllowThreads(__tstate); | |
14734 | if (PyErr_Occurred()) SWIG_fail; | |
14735 | } | |
14736 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); | |
14737 | return resultobj; | |
14738 | fail: | |
14739 | return NULL; | |
14740 | } | |
14741 | ||
14742 | ||
14743 | static PyObject *_wrap_ConfigBase_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14744 | PyObject *resultobj; | |
14745 | wxConfigBase *result; | |
14746 | char *kwnames[] = { | |
14747 | NULL | |
14748 | }; | |
14749 | ||
14750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_Create",kwnames)) goto fail; | |
14751 | { | |
14752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14753 | result = (wxConfigBase *)wxConfigBase::Create(); | |
14754 | ||
14755 | wxPyEndAllowThreads(__tstate); | |
14756 | if (PyErr_Occurred()) SWIG_fail; | |
14757 | } | |
14758 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); | |
14759 | return resultobj; | |
14760 | fail: | |
14761 | return NULL; | |
14762 | } | |
14763 | ||
14764 | ||
14765 | static PyObject *_wrap_ConfigBase_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14766 | PyObject *resultobj; | |
14767 | char *kwnames[] = { | |
14768 | NULL | |
14769 | }; | |
14770 | ||
14771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_DontCreateOnDemand",kwnames)) goto fail; | |
14772 | { | |
14773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14774 | wxConfigBase::DontCreateOnDemand(); | |
14775 | ||
14776 | wxPyEndAllowThreads(__tstate); | |
14777 | if (PyErr_Occurred()) SWIG_fail; | |
14778 | } | |
14779 | Py_INCREF(Py_None); resultobj = Py_None; | |
14780 | return resultobj; | |
14781 | fail: | |
14782 | return NULL; | |
14783 | } | |
14784 | ||
14785 | ||
14786 | static PyObject *_wrap_ConfigBase_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14787 | PyObject *resultobj; | |
14788 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14789 | wxString *arg2 = 0 ; | |
14790 | bool temp2 = False ; | |
14791 | PyObject * obj0 = 0 ; | |
14792 | PyObject * obj1 = 0 ; | |
14793 | char *kwnames[] = { | |
14794 | (char *) "self",(char *) "path", NULL | |
14795 | }; | |
14796 | ||
14797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
14798 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
14799 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14800 | { | |
14801 | arg2 = wxString_in_helper(obj1); | |
14802 | if (arg2 == NULL) SWIG_fail; | |
14803 | temp2 = True; | |
14804 | } | |
14805 | { | |
14806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14807 | (arg1)->SetPath((wxString const &)*arg2); | |
14808 | ||
14809 | wxPyEndAllowThreads(__tstate); | |
14810 | if (PyErr_Occurred()) SWIG_fail; | |
14811 | } | |
14812 | Py_INCREF(Py_None); resultobj = Py_None; | |
14813 | { | |
14814 | if (temp2) | |
14815 | delete arg2; | |
14816 | } | |
14817 | return resultobj; | |
14818 | fail: | |
14819 | { | |
14820 | if (temp2) | |
14821 | delete arg2; | |
14822 | } | |
14823 | return NULL; | |
14824 | } | |
14825 | ||
14826 | ||
14827 | static PyObject *_wrap_ConfigBase_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14828 | PyObject *resultobj; | |
14829 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14830 | wxString *result; | |
14831 | PyObject * obj0 = 0 ; | |
14832 | char *kwnames[] = { | |
14833 | (char *) "self", NULL | |
14834 | }; | |
14835 | ||
14836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetPath",kwnames,&obj0)) goto fail; | |
14837 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
14838 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14839 | { | |
14840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14841 | { | |
14842 | wxString const &_result_ref = ((wxConfigBase const *)arg1)->GetPath(); | |
14843 | result = (wxString *) &_result_ref; | |
14844 | } | |
14845 | ||
14846 | wxPyEndAllowThreads(__tstate); | |
14847 | if (PyErr_Occurred()) SWIG_fail; | |
14848 | } | |
14849 | { | |
14850 | #if wxUSE_UNICODE | |
14851 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
14852 | #else | |
14853 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
14854 | #endif | |
14855 | } | |
14856 | return resultobj; | |
14857 | fail: | |
14858 | return NULL; | |
14859 | } | |
14860 | ||
14861 | ||
14862 | static PyObject *_wrap_ConfigBase_GetFirstGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14863 | PyObject *resultobj; | |
14864 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14865 | PyObject *result; | |
14866 | PyObject * obj0 = 0 ; | |
14867 | char *kwnames[] = { | |
14868 | (char *) "self", NULL | |
14869 | }; | |
14870 | ||
14871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstGroup",kwnames,&obj0)) goto fail; | |
14872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
14873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14874 | { | |
14875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14876 | result = (PyObject *)wxConfigBase_GetFirstGroup(arg1); | |
14877 | ||
14878 | wxPyEndAllowThreads(__tstate); | |
14879 | if (PyErr_Occurred()) SWIG_fail; | |
14880 | } | |
14881 | resultobj = result; | |
14882 | return resultobj; | |
14883 | fail: | |
14884 | return NULL; | |
14885 | } | |
14886 | ||
14887 | ||
14888 | static PyObject *_wrap_ConfigBase_GetNextGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14889 | PyObject *resultobj; | |
14890 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14891 | long arg2 ; | |
14892 | PyObject *result; | |
14893 | PyObject * obj0 = 0 ; | |
14894 | PyObject * obj1 = 0 ; | |
14895 | char *kwnames[] = { | |
14896 | (char *) "self",(char *) "index", NULL | |
14897 | }; | |
14898 | ||
14899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextGroup",kwnames,&obj0,&obj1)) goto fail; | |
14900 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
14901 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14902 | arg2 = (long) SWIG_AsLong(obj1); | |
14903 | if (PyErr_Occurred()) SWIG_fail; | |
14904 | { | |
14905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14906 | result = (PyObject *)wxConfigBase_GetNextGroup(arg1,arg2); | |
14907 | ||
14908 | wxPyEndAllowThreads(__tstate); | |
14909 | if (PyErr_Occurred()) SWIG_fail; | |
14910 | } | |
14911 | resultobj = result; | |
14912 | return resultobj; | |
14913 | fail: | |
14914 | return NULL; | |
14915 | } | |
14916 | ||
14917 | ||
14918 | static PyObject *_wrap_ConfigBase_GetFirstEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14919 | PyObject *resultobj; | |
14920 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14921 | PyObject *result; | |
14922 | PyObject * obj0 = 0 ; | |
14923 | char *kwnames[] = { | |
14924 | (char *) "self", NULL | |
14925 | }; | |
14926 | ||
14927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstEntry",kwnames,&obj0)) goto fail; | |
14928 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
14929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14930 | { | |
14931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14932 | result = (PyObject *)wxConfigBase_GetFirstEntry(arg1); | |
14933 | ||
14934 | wxPyEndAllowThreads(__tstate); | |
14935 | if (PyErr_Occurred()) SWIG_fail; | |
14936 | } | |
14937 | resultobj = result; | |
14938 | return resultobj; | |
14939 | fail: | |
14940 | return NULL; | |
14941 | } | |
14942 | ||
14943 | ||
14944 | static PyObject *_wrap_ConfigBase_GetNextEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14945 | PyObject *resultobj; | |
14946 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14947 | long arg2 ; | |
14948 | PyObject *result; | |
14949 | PyObject * obj0 = 0 ; | |
14950 | PyObject * obj1 = 0 ; | |
14951 | char *kwnames[] = { | |
14952 | (char *) "self",(char *) "index", NULL | |
14953 | }; | |
14954 | ||
14955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextEntry",kwnames,&obj0,&obj1)) goto fail; | |
14956 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
14957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14958 | arg2 = (long) SWIG_AsLong(obj1); | |
14959 | if (PyErr_Occurred()) SWIG_fail; | |
14960 | { | |
14961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14962 | result = (PyObject *)wxConfigBase_GetNextEntry(arg1,arg2); | |
14963 | ||
14964 | wxPyEndAllowThreads(__tstate); | |
14965 | if (PyErr_Occurred()) SWIG_fail; | |
14966 | } | |
14967 | resultobj = result; | |
14968 | return resultobj; | |
14969 | fail: | |
14970 | return NULL; | |
14971 | } | |
14972 | ||
14973 | ||
14974 | static PyObject *_wrap_ConfigBase_GetNumberOfEntries(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14975 | PyObject *resultobj; | |
14976 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14977 | bool arg2 = (bool) False ; | |
14978 | size_t result; | |
14979 | PyObject * obj0 = 0 ; | |
14980 | PyObject * obj1 = 0 ; | |
14981 | char *kwnames[] = { | |
14982 | (char *) "self",(char *) "recursive", NULL | |
14983 | }; | |
14984 | ||
14985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfEntries",kwnames,&obj0,&obj1)) goto fail; | |
14986 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
14987 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14988 | if (obj1) { | |
14989 | arg2 = (bool) SWIG_AsBool(obj1); | |
14990 | if (PyErr_Occurred()) SWIG_fail; | |
14991 | } | |
14992 | { | |
14993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14994 | result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfEntries(arg2); | |
14995 | ||
14996 | wxPyEndAllowThreads(__tstate); | |
14997 | if (PyErr_Occurred()) SWIG_fail; | |
14998 | } | |
14999 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
15000 | return resultobj; | |
15001 | fail: | |
15002 | return NULL; | |
15003 | } | |
15004 | ||
15005 | ||
15006 | static PyObject *_wrap_ConfigBase_GetNumberOfGroups(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15007 | PyObject *resultobj; | |
15008 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15009 | bool arg2 = (bool) False ; | |
15010 | size_t result; | |
15011 | PyObject * obj0 = 0 ; | |
15012 | PyObject * obj1 = 0 ; | |
15013 | char *kwnames[] = { | |
15014 | (char *) "self",(char *) "recursive", NULL | |
15015 | }; | |
15016 | ||
15017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfGroups",kwnames,&obj0,&obj1)) goto fail; | |
15018 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15019 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15020 | if (obj1) { | |
15021 | arg2 = (bool) SWIG_AsBool(obj1); | |
15022 | if (PyErr_Occurred()) SWIG_fail; | |
15023 | } | |
15024 | { | |
15025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15026 | result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfGroups(arg2); | |
15027 | ||
15028 | wxPyEndAllowThreads(__tstate); | |
15029 | if (PyErr_Occurred()) SWIG_fail; | |
15030 | } | |
15031 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
15032 | return resultobj; | |
15033 | fail: | |
15034 | return NULL; | |
15035 | } | |
15036 | ||
15037 | ||
15038 | static PyObject *_wrap_ConfigBase_HasGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15039 | PyObject *resultobj; | |
15040 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15041 | wxString *arg2 = 0 ; | |
15042 | bool result; | |
15043 | bool temp2 = False ; | |
15044 | PyObject * obj0 = 0 ; | |
15045 | PyObject * obj1 = 0 ; | |
15046 | char *kwnames[] = { | |
15047 | (char *) "self",(char *) "name", NULL | |
15048 | }; | |
15049 | ||
15050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasGroup",kwnames,&obj0,&obj1)) goto fail; | |
15051 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15052 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15053 | { | |
15054 | arg2 = wxString_in_helper(obj1); | |
15055 | if (arg2 == NULL) SWIG_fail; | |
15056 | temp2 = True; | |
15057 | } | |
15058 | { | |
15059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15060 | result = (bool)((wxConfigBase const *)arg1)->HasGroup((wxString const &)*arg2); | |
15061 | ||
15062 | wxPyEndAllowThreads(__tstate); | |
15063 | if (PyErr_Occurred()) SWIG_fail; | |
15064 | } | |
15065 | { | |
15066 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15067 | } | |
15068 | { | |
15069 | if (temp2) | |
15070 | delete arg2; | |
15071 | } | |
15072 | return resultobj; | |
15073 | fail: | |
15074 | { | |
15075 | if (temp2) | |
15076 | delete arg2; | |
15077 | } | |
15078 | return NULL; | |
15079 | } | |
15080 | ||
15081 | ||
15082 | static PyObject *_wrap_ConfigBase_HasEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15083 | PyObject *resultobj; | |
15084 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15085 | wxString *arg2 = 0 ; | |
15086 | bool result; | |
15087 | bool temp2 = False ; | |
15088 | PyObject * obj0 = 0 ; | |
15089 | PyObject * obj1 = 0 ; | |
15090 | char *kwnames[] = { | |
15091 | (char *) "self",(char *) "name", NULL | |
15092 | }; | |
15093 | ||
15094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasEntry",kwnames,&obj0,&obj1)) goto fail; | |
15095 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15096 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15097 | { | |
15098 | arg2 = wxString_in_helper(obj1); | |
15099 | if (arg2 == NULL) SWIG_fail; | |
15100 | temp2 = True; | |
15101 | } | |
15102 | { | |
15103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15104 | result = (bool)((wxConfigBase const *)arg1)->HasEntry((wxString const &)*arg2); | |
15105 | ||
15106 | wxPyEndAllowThreads(__tstate); | |
15107 | if (PyErr_Occurred()) SWIG_fail; | |
15108 | } | |
15109 | { | |
15110 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15111 | } | |
15112 | { | |
15113 | if (temp2) | |
15114 | delete arg2; | |
15115 | } | |
15116 | return resultobj; | |
15117 | fail: | |
15118 | { | |
15119 | if (temp2) | |
15120 | delete arg2; | |
15121 | } | |
15122 | return NULL; | |
15123 | } | |
15124 | ||
15125 | ||
15126 | static PyObject *_wrap_ConfigBase_Exists(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15127 | PyObject *resultobj; | |
15128 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15129 | wxString *arg2 = 0 ; | |
15130 | bool result; | |
15131 | bool temp2 = False ; | |
15132 | PyObject * obj0 = 0 ; | |
15133 | PyObject * obj1 = 0 ; | |
15134 | char *kwnames[] = { | |
15135 | (char *) "self",(char *) "name", NULL | |
15136 | }; | |
15137 | ||
15138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_Exists",kwnames,&obj0,&obj1)) goto fail; | |
15139 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15140 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15141 | { | |
15142 | arg2 = wxString_in_helper(obj1); | |
15143 | if (arg2 == NULL) SWIG_fail; | |
15144 | temp2 = True; | |
15145 | } | |
15146 | { | |
15147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15148 | result = (bool)((wxConfigBase const *)arg1)->Exists((wxString const &)*arg2); | |
15149 | ||
15150 | wxPyEndAllowThreads(__tstate); | |
15151 | if (PyErr_Occurred()) SWIG_fail; | |
15152 | } | |
15153 | { | |
15154 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15155 | } | |
15156 | { | |
15157 | if (temp2) | |
15158 | delete arg2; | |
15159 | } | |
15160 | return resultobj; | |
15161 | fail: | |
15162 | { | |
15163 | if (temp2) | |
15164 | delete arg2; | |
15165 | } | |
15166 | return NULL; | |
15167 | } | |
15168 | ||
15169 | ||
15170 | static PyObject *_wrap_ConfigBase_GetEntryType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15171 | PyObject *resultobj; | |
15172 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15173 | wxString *arg2 = 0 ; | |
15174 | int result; | |
15175 | bool temp2 = False ; | |
15176 | PyObject * obj0 = 0 ; | |
15177 | PyObject * obj1 = 0 ; | |
15178 | char *kwnames[] = { | |
15179 | (char *) "self",(char *) "name", NULL | |
15180 | }; | |
15181 | ||
15182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetEntryType",kwnames,&obj0,&obj1)) goto fail; | |
15183 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15184 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15185 | { | |
15186 | arg2 = wxString_in_helper(obj1); | |
15187 | if (arg2 == NULL) SWIG_fail; | |
15188 | temp2 = True; | |
15189 | } | |
15190 | { | |
15191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15192 | result = (int)((wxConfigBase const *)arg1)->GetEntryType((wxString const &)*arg2); | |
15193 | ||
15194 | wxPyEndAllowThreads(__tstate); | |
15195 | if (PyErr_Occurred()) SWIG_fail; | |
15196 | } | |
15197 | resultobj = SWIG_FromInt((int)result); | |
15198 | { | |
15199 | if (temp2) | |
15200 | delete arg2; | |
15201 | } | |
15202 | return resultobj; | |
15203 | fail: | |
15204 | { | |
15205 | if (temp2) | |
15206 | delete arg2; | |
15207 | } | |
15208 | return NULL; | |
15209 | } | |
15210 | ||
15211 | ||
15212 | static PyObject *_wrap_ConfigBase_Read(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15213 | PyObject *resultobj; | |
15214 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15215 | wxString *arg2 = 0 ; | |
15216 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
15217 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
15218 | wxString result; | |
15219 | bool temp2 = False ; | |
15220 | bool temp3 = False ; | |
15221 | PyObject * obj0 = 0 ; | |
15222 | PyObject * obj1 = 0 ; | |
15223 | PyObject * obj2 = 0 ; | |
15224 | char *kwnames[] = { | |
15225 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15226 | }; | |
15227 | ||
15228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_Read",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15231 | { | |
15232 | arg2 = wxString_in_helper(obj1); | |
15233 | if (arg2 == NULL) SWIG_fail; | |
15234 | temp2 = True; | |
15235 | } | |
15236 | if (obj2) { | |
15237 | { | |
15238 | arg3 = wxString_in_helper(obj2); | |
15239 | if (arg3 == NULL) SWIG_fail; | |
15240 | temp3 = True; | |
15241 | } | |
15242 | } | |
15243 | { | |
15244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15245 | result = (arg1)->Read((wxString const &)*arg2,(wxString const &)*arg3); | |
15246 | ||
15247 | wxPyEndAllowThreads(__tstate); | |
15248 | if (PyErr_Occurred()) SWIG_fail; | |
15249 | } | |
15250 | { | |
15251 | #if wxUSE_UNICODE | |
15252 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15253 | #else | |
15254 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15255 | #endif | |
15256 | } | |
15257 | { | |
15258 | if (temp2) | |
15259 | delete arg2; | |
15260 | } | |
15261 | { | |
15262 | if (temp3) | |
15263 | delete arg3; | |
15264 | } | |
15265 | return resultobj; | |
15266 | fail: | |
15267 | { | |
15268 | if (temp2) | |
15269 | delete arg2; | |
15270 | } | |
15271 | { | |
15272 | if (temp3) | |
15273 | delete arg3; | |
15274 | } | |
15275 | return NULL; | |
15276 | } | |
15277 | ||
15278 | ||
15279 | static PyObject *_wrap_ConfigBase_ReadInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15280 | PyObject *resultobj; | |
15281 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15282 | wxString *arg2 = 0 ; | |
15283 | long arg3 = (long) 0 ; | |
15284 | long result; | |
15285 | bool temp2 = False ; | |
15286 | PyObject * obj0 = 0 ; | |
15287 | PyObject * obj1 = 0 ; | |
15288 | PyObject * obj2 = 0 ; | |
15289 | char *kwnames[] = { | |
15290 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15291 | }; | |
15292 | ||
15293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadInt",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15294 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15295 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15296 | { | |
15297 | arg2 = wxString_in_helper(obj1); | |
15298 | if (arg2 == NULL) SWIG_fail; | |
15299 | temp2 = True; | |
15300 | } | |
15301 | if (obj2) { | |
15302 | arg3 = (long) SWIG_AsLong(obj2); | |
15303 | if (PyErr_Occurred()) SWIG_fail; | |
15304 | } | |
15305 | { | |
15306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15307 | result = (long)wxConfigBase_ReadInt(arg1,(wxString const &)*arg2,arg3); | |
15308 | ||
15309 | wxPyEndAllowThreads(__tstate); | |
15310 | if (PyErr_Occurred()) SWIG_fail; | |
15311 | } | |
15312 | resultobj = SWIG_FromLong((long)result); | |
15313 | { | |
15314 | if (temp2) | |
15315 | delete arg2; | |
15316 | } | |
15317 | return resultobj; | |
15318 | fail: | |
15319 | { | |
15320 | if (temp2) | |
15321 | delete arg2; | |
15322 | } | |
15323 | return NULL; | |
15324 | } | |
15325 | ||
15326 | ||
15327 | static PyObject *_wrap_ConfigBase_ReadFloat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15328 | PyObject *resultobj; | |
15329 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15330 | wxString *arg2 = 0 ; | |
15331 | double arg3 = (double) 0.0 ; | |
15332 | double result; | |
15333 | bool temp2 = False ; | |
15334 | PyObject * obj0 = 0 ; | |
15335 | PyObject * obj1 = 0 ; | |
15336 | PyObject * obj2 = 0 ; | |
15337 | char *kwnames[] = { | |
15338 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15339 | }; | |
15340 | ||
15341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadFloat",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15342 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15343 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15344 | { | |
15345 | arg2 = wxString_in_helper(obj1); | |
15346 | if (arg2 == NULL) SWIG_fail; | |
15347 | temp2 = True; | |
15348 | } | |
15349 | if (obj2) { | |
15350 | arg3 = (double) SWIG_AsDouble(obj2); | |
15351 | if (PyErr_Occurred()) SWIG_fail; | |
15352 | } | |
15353 | { | |
15354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15355 | result = (double)wxConfigBase_ReadFloat(arg1,(wxString const &)*arg2,arg3); | |
15356 | ||
15357 | wxPyEndAllowThreads(__tstate); | |
15358 | if (PyErr_Occurred()) SWIG_fail; | |
15359 | } | |
15360 | resultobj = SWIG_FromDouble((double)result); | |
15361 | { | |
15362 | if (temp2) | |
15363 | delete arg2; | |
15364 | } | |
15365 | return resultobj; | |
15366 | fail: | |
15367 | { | |
15368 | if (temp2) | |
15369 | delete arg2; | |
15370 | } | |
15371 | return NULL; | |
15372 | } | |
15373 | ||
15374 | ||
15375 | static PyObject *_wrap_ConfigBase_ReadBool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15376 | PyObject *resultobj; | |
15377 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15378 | wxString *arg2 = 0 ; | |
15379 | bool arg3 = (bool) False ; | |
15380 | bool result; | |
15381 | bool temp2 = False ; | |
15382 | PyObject * obj0 = 0 ; | |
15383 | PyObject * obj1 = 0 ; | |
15384 | PyObject * obj2 = 0 ; | |
15385 | char *kwnames[] = { | |
15386 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15387 | }; | |
15388 | ||
15389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadBool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15390 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15391 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15392 | { | |
15393 | arg2 = wxString_in_helper(obj1); | |
15394 | if (arg2 == NULL) SWIG_fail; | |
15395 | temp2 = True; | |
15396 | } | |
15397 | if (obj2) { | |
15398 | arg3 = (bool) SWIG_AsBool(obj2); | |
15399 | if (PyErr_Occurred()) SWIG_fail; | |
15400 | } | |
15401 | { | |
15402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15403 | result = (bool)wxConfigBase_ReadBool(arg1,(wxString const &)*arg2,arg3); | |
15404 | ||
15405 | wxPyEndAllowThreads(__tstate); | |
15406 | if (PyErr_Occurred()) SWIG_fail; | |
15407 | } | |
15408 | { | |
15409 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15410 | } | |
15411 | { | |
15412 | if (temp2) | |
15413 | delete arg2; | |
15414 | } | |
15415 | return resultobj; | |
15416 | fail: | |
15417 | { | |
15418 | if (temp2) | |
15419 | delete arg2; | |
15420 | } | |
15421 | return NULL; | |
15422 | } | |
15423 | ||
15424 | ||
15425 | static PyObject *_wrap_ConfigBase_Write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15426 | PyObject *resultobj; | |
15427 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15428 | wxString *arg2 = 0 ; | |
15429 | wxString *arg3 = 0 ; | |
15430 | bool result; | |
15431 | bool temp2 = False ; | |
15432 | bool temp3 = False ; | |
15433 | PyObject * obj0 = 0 ; | |
15434 | PyObject * obj1 = 0 ; | |
15435 | PyObject * obj2 = 0 ; | |
15436 | char *kwnames[] = { | |
15437 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15438 | }; | |
15439 | ||
15440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_Write",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15441 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15442 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15443 | { | |
15444 | arg2 = wxString_in_helper(obj1); | |
15445 | if (arg2 == NULL) SWIG_fail; | |
15446 | temp2 = True; | |
15447 | } | |
15448 | { | |
15449 | arg3 = wxString_in_helper(obj2); | |
15450 | if (arg3 == NULL) SWIG_fail; | |
15451 | temp3 = True; | |
15452 | } | |
15453 | { | |
15454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15455 | result = (bool)(arg1)->Write((wxString const &)*arg2,(wxString const &)*arg3); | |
15456 | ||
15457 | wxPyEndAllowThreads(__tstate); | |
15458 | if (PyErr_Occurred()) SWIG_fail; | |
15459 | } | |
15460 | { | |
15461 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15462 | } | |
15463 | { | |
15464 | if (temp2) | |
15465 | delete arg2; | |
15466 | } | |
15467 | { | |
15468 | if (temp3) | |
15469 | delete arg3; | |
15470 | } | |
15471 | return resultobj; | |
15472 | fail: | |
15473 | { | |
15474 | if (temp2) | |
15475 | delete arg2; | |
15476 | } | |
15477 | { | |
15478 | if (temp3) | |
15479 | delete arg3; | |
15480 | } | |
15481 | return NULL; | |
15482 | } | |
15483 | ||
15484 | ||
15485 | static PyObject *_wrap_ConfigBase_WriteInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15486 | PyObject *resultobj; | |
15487 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15488 | wxString *arg2 = 0 ; | |
15489 | long arg3 ; | |
15490 | bool result; | |
15491 | bool temp2 = False ; | |
15492 | PyObject * obj0 = 0 ; | |
15493 | PyObject * obj1 = 0 ; | |
15494 | PyObject * obj2 = 0 ; | |
15495 | char *kwnames[] = { | |
15496 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15497 | }; | |
15498 | ||
15499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteInt",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15500 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15502 | { | |
15503 | arg2 = wxString_in_helper(obj1); | |
15504 | if (arg2 == NULL) SWIG_fail; | |
15505 | temp2 = True; | |
15506 | } | |
15507 | arg3 = (long) SWIG_AsLong(obj2); | |
15508 | if (PyErr_Occurred()) SWIG_fail; | |
15509 | { | |
15510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15511 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
15512 | ||
15513 | wxPyEndAllowThreads(__tstate); | |
15514 | if (PyErr_Occurred()) SWIG_fail; | |
15515 | } | |
15516 | { | |
15517 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15518 | } | |
15519 | { | |
15520 | if (temp2) | |
15521 | delete arg2; | |
15522 | } | |
15523 | return resultobj; | |
15524 | fail: | |
15525 | { | |
15526 | if (temp2) | |
15527 | delete arg2; | |
15528 | } | |
15529 | return NULL; | |
15530 | } | |
15531 | ||
15532 | ||
15533 | static PyObject *_wrap_ConfigBase_WriteFloat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15534 | PyObject *resultobj; | |
15535 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15536 | wxString *arg2 = 0 ; | |
15537 | double arg3 ; | |
15538 | bool result; | |
15539 | bool temp2 = False ; | |
15540 | PyObject * obj0 = 0 ; | |
15541 | PyObject * obj1 = 0 ; | |
15542 | PyObject * obj2 = 0 ; | |
15543 | char *kwnames[] = { | |
15544 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15545 | }; | |
15546 | ||
15547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteFloat",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15548 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15549 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15550 | { | |
15551 | arg2 = wxString_in_helper(obj1); | |
15552 | if (arg2 == NULL) SWIG_fail; | |
15553 | temp2 = True; | |
15554 | } | |
15555 | arg3 = (double) SWIG_AsDouble(obj2); | |
15556 | if (PyErr_Occurred()) SWIG_fail; | |
15557 | { | |
15558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15559 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
15560 | ||
15561 | wxPyEndAllowThreads(__tstate); | |
15562 | if (PyErr_Occurred()) SWIG_fail; | |
15563 | } | |
15564 | { | |
15565 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15566 | } | |
15567 | { | |
15568 | if (temp2) | |
15569 | delete arg2; | |
15570 | } | |
15571 | return resultobj; | |
15572 | fail: | |
15573 | { | |
15574 | if (temp2) | |
15575 | delete arg2; | |
15576 | } | |
15577 | return NULL; | |
15578 | } | |
15579 | ||
15580 | ||
15581 | static PyObject *_wrap_ConfigBase_WriteBool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15582 | PyObject *resultobj; | |
15583 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15584 | wxString *arg2 = 0 ; | |
15585 | bool arg3 ; | |
15586 | bool result; | |
15587 | bool temp2 = False ; | |
15588 | PyObject * obj0 = 0 ; | |
15589 | PyObject * obj1 = 0 ; | |
15590 | PyObject * obj2 = 0 ; | |
15591 | char *kwnames[] = { | |
15592 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15593 | }; | |
15594 | ||
15595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteBool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15596 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15598 | { | |
15599 | arg2 = wxString_in_helper(obj1); | |
15600 | if (arg2 == NULL) SWIG_fail; | |
15601 | temp2 = True; | |
15602 | } | |
15603 | arg3 = (bool) SWIG_AsBool(obj2); | |
15604 | if (PyErr_Occurred()) SWIG_fail; | |
15605 | { | |
15606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15607 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
15608 | ||
15609 | wxPyEndAllowThreads(__tstate); | |
15610 | if (PyErr_Occurred()) SWIG_fail; | |
15611 | } | |
15612 | { | |
15613 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15614 | } | |
15615 | { | |
15616 | if (temp2) | |
15617 | delete arg2; | |
15618 | } | |
15619 | return resultobj; | |
15620 | fail: | |
15621 | { | |
15622 | if (temp2) | |
15623 | delete arg2; | |
15624 | } | |
15625 | return NULL; | |
15626 | } | |
15627 | ||
15628 | ||
15629 | static PyObject *_wrap_ConfigBase_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15630 | PyObject *resultobj; | |
15631 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15632 | bool arg2 = (bool) False ; | |
15633 | bool result; | |
15634 | PyObject * obj0 = 0 ; | |
15635 | PyObject * obj1 = 0 ; | |
15636 | char *kwnames[] = { | |
15637 | (char *) "self",(char *) "currentOnly", NULL | |
15638 | }; | |
15639 | ||
15640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_Flush",kwnames,&obj0,&obj1)) goto fail; | |
15641 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15642 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15643 | if (obj1) { | |
15644 | arg2 = (bool) SWIG_AsBool(obj1); | |
15645 | if (PyErr_Occurred()) SWIG_fail; | |
15646 | } | |
15647 | { | |
15648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15649 | result = (bool)(arg1)->Flush(arg2); | |
15650 | ||
15651 | wxPyEndAllowThreads(__tstate); | |
15652 | if (PyErr_Occurred()) SWIG_fail; | |
15653 | } | |
15654 | { | |
15655 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15656 | } | |
15657 | return resultobj; | |
15658 | fail: | |
15659 | return NULL; | |
15660 | } | |
15661 | ||
15662 | ||
15663 | static PyObject *_wrap_ConfigBase_RenameEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15664 | PyObject *resultobj; | |
15665 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15666 | wxString *arg2 = 0 ; | |
15667 | wxString *arg3 = 0 ; | |
15668 | bool result; | |
15669 | bool temp2 = False ; | |
15670 | bool temp3 = False ; | |
15671 | PyObject * obj0 = 0 ; | |
15672 | PyObject * obj1 = 0 ; | |
15673 | PyObject * obj2 = 0 ; | |
15674 | char *kwnames[] = { | |
15675 | (char *) "self",(char *) "oldName",(char *) "newName", NULL | |
15676 | }; | |
15677 | ||
15678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15679 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15680 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15681 | { | |
15682 | arg2 = wxString_in_helper(obj1); | |
15683 | if (arg2 == NULL) SWIG_fail; | |
15684 | temp2 = True; | |
15685 | } | |
15686 | { | |
15687 | arg3 = wxString_in_helper(obj2); | |
15688 | if (arg3 == NULL) SWIG_fail; | |
15689 | temp3 = True; | |
15690 | } | |
15691 | { | |
15692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15693 | result = (bool)(arg1)->RenameEntry((wxString const &)*arg2,(wxString const &)*arg3); | |
15694 | ||
15695 | wxPyEndAllowThreads(__tstate); | |
15696 | if (PyErr_Occurred()) SWIG_fail; | |
15697 | } | |
15698 | { | |
15699 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15700 | } | |
15701 | { | |
15702 | if (temp2) | |
15703 | delete arg2; | |
15704 | } | |
15705 | { | |
15706 | if (temp3) | |
15707 | delete arg3; | |
15708 | } | |
15709 | return resultobj; | |
15710 | fail: | |
15711 | { | |
15712 | if (temp2) | |
15713 | delete arg2; | |
15714 | } | |
15715 | { | |
15716 | if (temp3) | |
15717 | delete arg3; | |
15718 | } | |
15719 | return NULL; | |
15720 | } | |
15721 | ||
15722 | ||
15723 | static PyObject *_wrap_ConfigBase_RenameGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15724 | PyObject *resultobj; | |
15725 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15726 | wxString *arg2 = 0 ; | |
15727 | wxString *arg3 = 0 ; | |
15728 | bool result; | |
15729 | bool temp2 = False ; | |
15730 | bool temp3 = False ; | |
15731 | PyObject * obj0 = 0 ; | |
15732 | PyObject * obj1 = 0 ; | |
15733 | PyObject * obj2 = 0 ; | |
15734 | char *kwnames[] = { | |
15735 | (char *) "self",(char *) "oldName",(char *) "newName", NULL | |
15736 | }; | |
15737 | ||
15738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameGroup",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15739 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15740 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15741 | { | |
15742 | arg2 = wxString_in_helper(obj1); | |
15743 | if (arg2 == NULL) SWIG_fail; | |
15744 | temp2 = True; | |
15745 | } | |
15746 | { | |
15747 | arg3 = wxString_in_helper(obj2); | |
15748 | if (arg3 == NULL) SWIG_fail; | |
15749 | temp3 = True; | |
15750 | } | |
15751 | { | |
15752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15753 | result = (bool)(arg1)->RenameGroup((wxString const &)*arg2,(wxString const &)*arg3); | |
15754 | ||
15755 | wxPyEndAllowThreads(__tstate); | |
15756 | if (PyErr_Occurred()) SWIG_fail; | |
15757 | } | |
15758 | { | |
15759 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15760 | } | |
15761 | { | |
15762 | if (temp2) | |
15763 | delete arg2; | |
15764 | } | |
15765 | { | |
15766 | if (temp3) | |
15767 | delete arg3; | |
15768 | } | |
15769 | return resultobj; | |
15770 | fail: | |
15771 | { | |
15772 | if (temp2) | |
15773 | delete arg2; | |
15774 | } | |
15775 | { | |
15776 | if (temp3) | |
15777 | delete arg3; | |
15778 | } | |
15779 | return NULL; | |
15780 | } | |
15781 | ||
15782 | ||
15783 | static PyObject *_wrap_ConfigBase_DeleteEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15784 | PyObject *resultobj; | |
15785 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15786 | wxString *arg2 = 0 ; | |
15787 | bool arg3 = (bool) True ; | |
15788 | bool result; | |
15789 | bool temp2 = False ; | |
15790 | PyObject * obj0 = 0 ; | |
15791 | PyObject * obj1 = 0 ; | |
15792 | PyObject * obj2 = 0 ; | |
15793 | char *kwnames[] = { | |
15794 | (char *) "self",(char *) "key",(char *) "deleteGroupIfEmpty", NULL | |
15795 | }; | |
15796 | ||
15797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_DeleteEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15798 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15799 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15800 | { | |
15801 | arg2 = wxString_in_helper(obj1); | |
15802 | if (arg2 == NULL) SWIG_fail; | |
15803 | temp2 = True; | |
15804 | } | |
15805 | if (obj2) { | |
15806 | arg3 = (bool) SWIG_AsBool(obj2); | |
15807 | if (PyErr_Occurred()) SWIG_fail; | |
15808 | } | |
15809 | { | |
15810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15811 | result = (bool)(arg1)->DeleteEntry((wxString const &)*arg2,arg3); | |
15812 | ||
15813 | wxPyEndAllowThreads(__tstate); | |
15814 | if (PyErr_Occurred()) SWIG_fail; | |
15815 | } | |
15816 | { | |
15817 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15818 | } | |
15819 | { | |
15820 | if (temp2) | |
15821 | delete arg2; | |
15822 | } | |
15823 | return resultobj; | |
15824 | fail: | |
15825 | { | |
15826 | if (temp2) | |
15827 | delete arg2; | |
15828 | } | |
15829 | return NULL; | |
15830 | } | |
15831 | ||
15832 | ||
15833 | static PyObject *_wrap_ConfigBase_DeleteGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15834 | PyObject *resultobj; | |
15835 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15836 | wxString *arg2 = 0 ; | |
15837 | bool result; | |
15838 | bool temp2 = False ; | |
15839 | PyObject * obj0 = 0 ; | |
15840 | PyObject * obj1 = 0 ; | |
15841 | char *kwnames[] = { | |
15842 | (char *) "self",(char *) "key", NULL | |
15843 | }; | |
15844 | ||
15845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_DeleteGroup",kwnames,&obj0,&obj1)) goto fail; | |
15846 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15848 | { | |
15849 | arg2 = wxString_in_helper(obj1); | |
15850 | if (arg2 == NULL) SWIG_fail; | |
15851 | temp2 = True; | |
15852 | } | |
15853 | { | |
15854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15855 | result = (bool)(arg1)->DeleteGroup((wxString const &)*arg2); | |
15856 | ||
15857 | wxPyEndAllowThreads(__tstate); | |
15858 | if (PyErr_Occurred()) SWIG_fail; | |
15859 | } | |
15860 | { | |
15861 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15862 | } | |
15863 | { | |
15864 | if (temp2) | |
15865 | delete arg2; | |
15866 | } | |
15867 | return resultobj; | |
15868 | fail: | |
15869 | { | |
15870 | if (temp2) | |
15871 | delete arg2; | |
15872 | } | |
15873 | return NULL; | |
15874 | } | |
15875 | ||
15876 | ||
15877 | static PyObject *_wrap_ConfigBase_DeleteAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15878 | PyObject *resultobj; | |
15879 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15880 | bool result; | |
15881 | PyObject * obj0 = 0 ; | |
15882 | char *kwnames[] = { | |
15883 | (char *) "self", NULL | |
15884 | }; | |
15885 | ||
15886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_DeleteAll",kwnames,&obj0)) goto fail; | |
15887 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15888 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15889 | { | |
15890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15891 | result = (bool)(arg1)->DeleteAll(); | |
15892 | ||
15893 | wxPyEndAllowThreads(__tstate); | |
15894 | if (PyErr_Occurred()) SWIG_fail; | |
15895 | } | |
15896 | { | |
15897 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15898 | } | |
15899 | return resultobj; | |
15900 | fail: | |
15901 | return NULL; | |
15902 | } | |
15903 | ||
15904 | ||
15905 | static PyObject *_wrap_ConfigBase_SetExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15906 | PyObject *resultobj; | |
15907 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15908 | bool arg2 = (bool) True ; | |
15909 | PyObject * obj0 = 0 ; | |
15910 | PyObject * obj1 = 0 ; | |
15911 | char *kwnames[] = { | |
15912 | (char *) "self",(char *) "doIt", NULL | |
15913 | }; | |
15914 | ||
15915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetExpandEnvVars",kwnames,&obj0,&obj1)) goto fail; | |
15916 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15917 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15918 | if (obj1) { | |
15919 | arg2 = (bool) SWIG_AsBool(obj1); | |
15920 | if (PyErr_Occurred()) SWIG_fail; | |
15921 | } | |
15922 | { | |
15923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15924 | (arg1)->SetExpandEnvVars(arg2); | |
15925 | ||
15926 | wxPyEndAllowThreads(__tstate); | |
15927 | if (PyErr_Occurred()) SWIG_fail; | |
15928 | } | |
15929 | Py_INCREF(Py_None); resultobj = Py_None; | |
15930 | return resultobj; | |
15931 | fail: | |
15932 | return NULL; | |
15933 | } | |
15934 | ||
15935 | ||
15936 | static PyObject *_wrap_ConfigBase_IsExpandingEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15937 | PyObject *resultobj; | |
15938 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15939 | bool result; | |
15940 | PyObject * obj0 = 0 ; | |
15941 | char *kwnames[] = { | |
15942 | (char *) "self", NULL | |
15943 | }; | |
15944 | ||
15945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsExpandingEnvVars",kwnames,&obj0)) goto fail; | |
15946 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15947 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15948 | { | |
15949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15950 | result = (bool)((wxConfigBase const *)arg1)->IsExpandingEnvVars(); | |
15951 | ||
15952 | wxPyEndAllowThreads(__tstate); | |
15953 | if (PyErr_Occurred()) SWIG_fail; | |
15954 | } | |
15955 | { | |
15956 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15957 | } | |
15958 | return resultobj; | |
15959 | fail: | |
15960 | return NULL; | |
15961 | } | |
15962 | ||
15963 | ||
15964 | static PyObject *_wrap_ConfigBase_SetRecordDefaults(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15965 | PyObject *resultobj; | |
15966 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15967 | bool arg2 = (bool) True ; | |
15968 | PyObject * obj0 = 0 ; | |
15969 | PyObject * obj1 = 0 ; | |
15970 | char *kwnames[] = { | |
15971 | (char *) "self",(char *) "doIt", NULL | |
15972 | }; | |
15973 | ||
15974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetRecordDefaults",kwnames,&obj0,&obj1)) goto fail; | |
15975 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15976 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15977 | if (obj1) { | |
15978 | arg2 = (bool) SWIG_AsBool(obj1); | |
15979 | if (PyErr_Occurred()) SWIG_fail; | |
15980 | } | |
15981 | { | |
15982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15983 | (arg1)->SetRecordDefaults(arg2); | |
15984 | ||
15985 | wxPyEndAllowThreads(__tstate); | |
15986 | if (PyErr_Occurred()) SWIG_fail; | |
15987 | } | |
15988 | Py_INCREF(Py_None); resultobj = Py_None; | |
15989 | return resultobj; | |
15990 | fail: | |
15991 | return NULL; | |
15992 | } | |
15993 | ||
15994 | ||
15995 | static PyObject *_wrap_ConfigBase_IsRecordingDefaults(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15996 | PyObject *resultobj; | |
15997 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15998 | bool result; | |
15999 | PyObject * obj0 = 0 ; | |
16000 | char *kwnames[] = { | |
16001 | (char *) "self", NULL | |
16002 | }; | |
16003 | ||
16004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsRecordingDefaults",kwnames,&obj0)) goto fail; | |
16005 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16006 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16007 | { | |
16008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16009 | result = (bool)((wxConfigBase const *)arg1)->IsRecordingDefaults(); | |
16010 | ||
16011 | wxPyEndAllowThreads(__tstate); | |
16012 | if (PyErr_Occurred()) SWIG_fail; | |
16013 | } | |
16014 | { | |
16015 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16016 | } | |
16017 | return resultobj; | |
16018 | fail: | |
16019 | return NULL; | |
16020 | } | |
16021 | ||
16022 | ||
16023 | static PyObject *_wrap_ConfigBase_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16024 | PyObject *resultobj; | |
16025 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16026 | wxString *arg2 = 0 ; | |
16027 | wxString result; | |
16028 | bool temp2 = False ; | |
16029 | PyObject * obj0 = 0 ; | |
16030 | PyObject * obj1 = 0 ; | |
16031 | char *kwnames[] = { | |
16032 | (char *) "self",(char *) "str", NULL | |
16033 | }; | |
16034 | ||
16035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_ExpandEnvVars",kwnames,&obj0,&obj1)) goto fail; | |
16036 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16037 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16038 | { | |
16039 | arg2 = wxString_in_helper(obj1); | |
16040 | if (arg2 == NULL) SWIG_fail; | |
16041 | temp2 = True; | |
16042 | } | |
16043 | { | |
16044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16045 | result = ((wxConfigBase const *)arg1)->ExpandEnvVars((wxString const &)*arg2); | |
16046 | ||
16047 | wxPyEndAllowThreads(__tstate); | |
16048 | if (PyErr_Occurred()) SWIG_fail; | |
16049 | } | |
16050 | { | |
16051 | #if wxUSE_UNICODE | |
16052 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16053 | #else | |
16054 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16055 | #endif | |
16056 | } | |
16057 | { | |
16058 | if (temp2) | |
16059 | delete arg2; | |
16060 | } | |
16061 | return resultobj; | |
16062 | fail: | |
16063 | { | |
16064 | if (temp2) | |
16065 | delete arg2; | |
16066 | } | |
16067 | return NULL; | |
16068 | } | |
16069 | ||
16070 | ||
16071 | static PyObject *_wrap_ConfigBase_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16072 | PyObject *resultobj; | |
16073 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16074 | wxString result; | |
16075 | PyObject * obj0 = 0 ; | |
16076 | char *kwnames[] = { | |
16077 | (char *) "self", NULL | |
16078 | }; | |
16079 | ||
16080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetAppName",kwnames,&obj0)) goto fail; | |
16081 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16082 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16083 | { | |
16084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16085 | result = ((wxConfigBase const *)arg1)->GetAppName(); | |
16086 | ||
16087 | wxPyEndAllowThreads(__tstate); | |
16088 | if (PyErr_Occurred()) SWIG_fail; | |
16089 | } | |
16090 | { | |
16091 | #if wxUSE_UNICODE | |
16092 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16093 | #else | |
16094 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16095 | #endif | |
16096 | } | |
16097 | return resultobj; | |
16098 | fail: | |
16099 | return NULL; | |
16100 | } | |
16101 | ||
16102 | ||
16103 | static PyObject *_wrap_ConfigBase_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16104 | PyObject *resultobj; | |
16105 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16106 | wxString result; | |
16107 | PyObject * obj0 = 0 ; | |
16108 | char *kwnames[] = { | |
16109 | (char *) "self", NULL | |
16110 | }; | |
16111 | ||
16112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetVendorName",kwnames,&obj0)) goto fail; | |
16113 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16114 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16115 | { | |
16116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16117 | result = ((wxConfigBase const *)arg1)->GetVendorName(); | |
16118 | ||
16119 | wxPyEndAllowThreads(__tstate); | |
16120 | if (PyErr_Occurred()) SWIG_fail; | |
16121 | } | |
16122 | { | |
16123 | #if wxUSE_UNICODE | |
16124 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16125 | #else | |
16126 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16127 | #endif | |
16128 | } | |
16129 | return resultobj; | |
16130 | fail: | |
16131 | return NULL; | |
16132 | } | |
16133 | ||
16134 | ||
16135 | static PyObject *_wrap_ConfigBase_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16136 | PyObject *resultobj; | |
16137 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16138 | wxString *arg2 = 0 ; | |
16139 | bool temp2 = False ; | |
16140 | PyObject * obj0 = 0 ; | |
16141 | PyObject * obj1 = 0 ; | |
16142 | char *kwnames[] = { | |
16143 | (char *) "self",(char *) "appName", NULL | |
16144 | }; | |
16145 | ||
16146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetAppName",kwnames,&obj0,&obj1)) goto fail; | |
16147 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16148 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16149 | { | |
16150 | arg2 = wxString_in_helper(obj1); | |
16151 | if (arg2 == NULL) SWIG_fail; | |
16152 | temp2 = True; | |
16153 | } | |
16154 | { | |
16155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16156 | (arg1)->SetAppName((wxString const &)*arg2); | |
16157 | ||
16158 | wxPyEndAllowThreads(__tstate); | |
16159 | if (PyErr_Occurred()) SWIG_fail; | |
16160 | } | |
16161 | Py_INCREF(Py_None); resultobj = Py_None; | |
16162 | { | |
16163 | if (temp2) | |
16164 | delete arg2; | |
16165 | } | |
16166 | return resultobj; | |
16167 | fail: | |
16168 | { | |
16169 | if (temp2) | |
16170 | delete arg2; | |
16171 | } | |
16172 | return NULL; | |
16173 | } | |
16174 | ||
16175 | ||
16176 | static PyObject *_wrap_ConfigBase_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16177 | PyObject *resultobj; | |
16178 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16179 | wxString *arg2 = 0 ; | |
16180 | bool temp2 = False ; | |
16181 | PyObject * obj0 = 0 ; | |
16182 | PyObject * obj1 = 0 ; | |
16183 | char *kwnames[] = { | |
16184 | (char *) "self",(char *) "vendorName", NULL | |
16185 | }; | |
16186 | ||
16187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetVendorName",kwnames,&obj0,&obj1)) goto fail; | |
16188 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16189 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16190 | { | |
16191 | arg2 = wxString_in_helper(obj1); | |
16192 | if (arg2 == NULL) SWIG_fail; | |
16193 | temp2 = True; | |
16194 | } | |
16195 | { | |
16196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16197 | (arg1)->SetVendorName((wxString const &)*arg2); | |
16198 | ||
16199 | wxPyEndAllowThreads(__tstate); | |
16200 | if (PyErr_Occurred()) SWIG_fail; | |
16201 | } | |
16202 | Py_INCREF(Py_None); resultobj = Py_None; | |
16203 | { | |
16204 | if (temp2) | |
16205 | delete arg2; | |
16206 | } | |
16207 | return resultobj; | |
16208 | fail: | |
16209 | { | |
16210 | if (temp2) | |
16211 | delete arg2; | |
16212 | } | |
16213 | return NULL; | |
16214 | } | |
16215 | ||
16216 | ||
16217 | static PyObject *_wrap_ConfigBase_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16218 | PyObject *resultobj; | |
16219 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16220 | long arg2 ; | |
16221 | PyObject * obj0 = 0 ; | |
16222 | PyObject * obj1 = 0 ; | |
16223 | char *kwnames[] = { | |
16224 | (char *) "self",(char *) "style", NULL | |
16225 | }; | |
16226 | ||
16227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetStyle",kwnames,&obj0,&obj1)) goto fail; | |
16228 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16229 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16230 | arg2 = (long) SWIG_AsLong(obj1); | |
16231 | if (PyErr_Occurred()) SWIG_fail; | |
16232 | { | |
16233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16234 | (arg1)->SetStyle(arg2); | |
16235 | ||
16236 | wxPyEndAllowThreads(__tstate); | |
16237 | if (PyErr_Occurred()) SWIG_fail; | |
16238 | } | |
16239 | Py_INCREF(Py_None); resultobj = Py_None; | |
16240 | return resultobj; | |
16241 | fail: | |
16242 | return NULL; | |
16243 | } | |
16244 | ||
16245 | ||
16246 | static PyObject *_wrap_ConfigBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16247 | PyObject *resultobj; | |
16248 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16249 | long result; | |
16250 | PyObject * obj0 = 0 ; | |
16251 | char *kwnames[] = { | |
16252 | (char *) "self", NULL | |
16253 | }; | |
16254 | ||
16255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetStyle",kwnames,&obj0)) goto fail; | |
16256 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16257 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16258 | { | |
16259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16260 | result = (long)((wxConfigBase const *)arg1)->GetStyle(); | |
16261 | ||
16262 | wxPyEndAllowThreads(__tstate); | |
16263 | if (PyErr_Occurred()) SWIG_fail; | |
16264 | } | |
16265 | resultobj = SWIG_FromLong((long)result); | |
16266 | return resultobj; | |
16267 | fail: | |
16268 | return NULL; | |
16269 | } | |
16270 | ||
16271 | ||
16272 | static PyObject * ConfigBase_swigregister(PyObject *self, PyObject *args) { | |
16273 | PyObject *obj; | |
16274 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16275 | SWIG_TypeClientData(SWIGTYPE_p_wxConfigBase, obj); | |
16276 | Py_INCREF(obj); | |
16277 | return Py_BuildValue((char *)""); | |
16278 | } | |
16279 | static PyObject *_wrap_new_Config(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16280 | PyObject *resultobj; | |
16281 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
16282 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
16283 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
16284 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
16285 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16286 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16287 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
16288 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
16289 | long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ; | |
16290 | wxConfig *result; | |
16291 | bool temp1 = False ; | |
16292 | bool temp2 = False ; | |
16293 | bool temp3 = False ; | |
16294 | bool temp4 = False ; | |
16295 | PyObject * obj0 = 0 ; | |
16296 | PyObject * obj1 = 0 ; | |
16297 | PyObject * obj2 = 0 ; | |
16298 | PyObject * obj3 = 0 ; | |
16299 | PyObject * obj4 = 0 ; | |
16300 | char *kwnames[] = { | |
16301 | (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL | |
16302 | }; | |
16303 | ||
16304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_Config",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
16305 | if (obj0) { | |
16306 | { | |
16307 | arg1 = wxString_in_helper(obj0); | |
16308 | if (arg1 == NULL) SWIG_fail; | |
16309 | temp1 = True; | |
16310 | } | |
16311 | } | |
16312 | if (obj1) { | |
16313 | { | |
16314 | arg2 = wxString_in_helper(obj1); | |
16315 | if (arg2 == NULL) SWIG_fail; | |
16316 | temp2 = True; | |
16317 | } | |
16318 | } | |
16319 | if (obj2) { | |
16320 | { | |
16321 | arg3 = wxString_in_helper(obj2); | |
16322 | if (arg3 == NULL) SWIG_fail; | |
16323 | temp3 = True; | |
16324 | } | |
16325 | } | |
16326 | if (obj3) { | |
16327 | { | |
16328 | arg4 = wxString_in_helper(obj3); | |
16329 | if (arg4 == NULL) SWIG_fail; | |
16330 | temp4 = True; | |
16331 | } | |
16332 | } | |
16333 | if (obj4) { | |
16334 | arg5 = (long) SWIG_AsLong(obj4); | |
16335 | if (PyErr_Occurred()) SWIG_fail; | |
16336 | } | |
16337 | { | |
16338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16339 | result = (wxConfig *)new wxConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
16340 | ||
16341 | wxPyEndAllowThreads(__tstate); | |
16342 | if (PyErr_Occurred()) SWIG_fail; | |
16343 | } | |
16344 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfig, 1); | |
16345 | { | |
16346 | if (temp1) | |
16347 | delete arg1; | |
16348 | } | |
16349 | { | |
16350 | if (temp2) | |
16351 | delete arg2; | |
16352 | } | |
16353 | { | |
16354 | if (temp3) | |
16355 | delete arg3; | |
16356 | } | |
16357 | { | |
16358 | if (temp4) | |
16359 | delete arg4; | |
16360 | } | |
16361 | return resultobj; | |
16362 | fail: | |
16363 | { | |
16364 | if (temp1) | |
16365 | delete arg1; | |
16366 | } | |
16367 | { | |
16368 | if (temp2) | |
16369 | delete arg2; | |
16370 | } | |
16371 | { | |
16372 | if (temp3) | |
16373 | delete arg3; | |
16374 | } | |
16375 | { | |
16376 | if (temp4) | |
16377 | delete arg4; | |
16378 | } | |
16379 | return NULL; | |
16380 | } | |
16381 | ||
16382 | ||
16383 | static PyObject *_wrap_delete_Config(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16384 | PyObject *resultobj; | |
16385 | wxConfig *arg1 = (wxConfig *) 0 ; | |
16386 | PyObject * obj0 = 0 ; | |
16387 | char *kwnames[] = { | |
16388 | (char *) "self", NULL | |
16389 | }; | |
16390 | ||
16391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Config",kwnames,&obj0)) goto fail; | |
16392 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfig, | |
16393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16394 | { | |
16395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16396 | delete arg1; | |
16397 | ||
16398 | wxPyEndAllowThreads(__tstate); | |
16399 | if (PyErr_Occurred()) SWIG_fail; | |
16400 | } | |
16401 | Py_INCREF(Py_None); resultobj = Py_None; | |
16402 | return resultobj; | |
16403 | fail: | |
16404 | return NULL; | |
16405 | } | |
16406 | ||
16407 | ||
16408 | static PyObject * Config_swigregister(PyObject *self, PyObject *args) { | |
16409 | PyObject *obj; | |
16410 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16411 | SWIG_TypeClientData(SWIGTYPE_p_wxConfig, obj); | |
16412 | Py_INCREF(obj); | |
16413 | return Py_BuildValue((char *)""); | |
16414 | } | |
16415 | static PyObject *_wrap_new_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16416 | PyObject *resultobj; | |
16417 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
16418 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
16419 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
16420 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
16421 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16422 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16423 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
16424 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
16425 | long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ; | |
16426 | wxFileConfig *result; | |
16427 | bool temp1 = False ; | |
16428 | bool temp2 = False ; | |
16429 | bool temp3 = False ; | |
16430 | bool temp4 = False ; | |
16431 | PyObject * obj0 = 0 ; | |
16432 | PyObject * obj1 = 0 ; | |
16433 | PyObject * obj2 = 0 ; | |
16434 | PyObject * obj3 = 0 ; | |
16435 | PyObject * obj4 = 0 ; | |
16436 | char *kwnames[] = { | |
16437 | (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL | |
16438 | }; | |
16439 | ||
16440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_FileConfig",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
16441 | if (obj0) { | |
16442 | { | |
16443 | arg1 = wxString_in_helper(obj0); | |
16444 | if (arg1 == NULL) SWIG_fail; | |
16445 | temp1 = True; | |
16446 | } | |
16447 | } | |
16448 | if (obj1) { | |
16449 | { | |
16450 | arg2 = wxString_in_helper(obj1); | |
16451 | if (arg2 == NULL) SWIG_fail; | |
16452 | temp2 = True; | |
16453 | } | |
16454 | } | |
16455 | if (obj2) { | |
16456 | { | |
16457 | arg3 = wxString_in_helper(obj2); | |
16458 | if (arg3 == NULL) SWIG_fail; | |
16459 | temp3 = True; | |
16460 | } | |
16461 | } | |
16462 | if (obj3) { | |
16463 | { | |
16464 | arg4 = wxString_in_helper(obj3); | |
16465 | if (arg4 == NULL) SWIG_fail; | |
16466 | temp4 = True; | |
16467 | } | |
16468 | } | |
16469 | if (obj4) { | |
16470 | arg5 = (long) SWIG_AsLong(obj4); | |
16471 | if (PyErr_Occurred()) SWIG_fail; | |
16472 | } | |
16473 | { | |
16474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16475 | result = (wxFileConfig *)new wxFileConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
16476 | ||
16477 | wxPyEndAllowThreads(__tstate); | |
16478 | if (PyErr_Occurred()) SWIG_fail; | |
16479 | } | |
16480 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileConfig, 1); | |
16481 | { | |
16482 | if (temp1) | |
16483 | delete arg1; | |
16484 | } | |
16485 | { | |
16486 | if (temp2) | |
16487 | delete arg2; | |
16488 | } | |
16489 | { | |
16490 | if (temp3) | |
16491 | delete arg3; | |
16492 | } | |
16493 | { | |
16494 | if (temp4) | |
16495 | delete arg4; | |
16496 | } | |
16497 | return resultobj; | |
16498 | fail: | |
16499 | { | |
16500 | if (temp1) | |
16501 | delete arg1; | |
16502 | } | |
16503 | { | |
16504 | if (temp2) | |
16505 | delete arg2; | |
16506 | } | |
16507 | { | |
16508 | if (temp3) | |
16509 | delete arg3; | |
16510 | } | |
16511 | { | |
16512 | if (temp4) | |
16513 | delete arg4; | |
16514 | } | |
16515 | return NULL; | |
16516 | } | |
16517 | ||
16518 | ||
16519 | static PyObject *_wrap_delete_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16520 | PyObject *resultobj; | |
16521 | wxFileConfig *arg1 = (wxFileConfig *) 0 ; | |
16522 | PyObject * obj0 = 0 ; | |
16523 | char *kwnames[] = { | |
16524 | (char *) "self", NULL | |
16525 | }; | |
16526 | ||
16527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileConfig",kwnames,&obj0)) goto fail; | |
16528 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileConfig, | |
16529 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16530 | { | |
16531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16532 | delete arg1; | |
16533 | ||
16534 | wxPyEndAllowThreads(__tstate); | |
16535 | if (PyErr_Occurred()) SWIG_fail; | |
16536 | } | |
16537 | Py_INCREF(Py_None); resultobj = Py_None; | |
16538 | return resultobj; | |
16539 | fail: | |
16540 | return NULL; | |
16541 | } | |
16542 | ||
16543 | ||
16544 | static PyObject * FileConfig_swigregister(PyObject *self, PyObject *args) { | |
16545 | PyObject *obj; | |
16546 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16547 | SWIG_TypeClientData(SWIGTYPE_p_wxFileConfig, obj); | |
16548 | Py_INCREF(obj); | |
16549 | return Py_BuildValue((char *)""); | |
16550 | } | |
16551 | static PyObject *_wrap_new_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16552 | PyObject *resultobj; | |
16553 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16554 | wxString *arg2 = 0 ; | |
16555 | wxConfigPathChanger *result; | |
16556 | bool temp2 = False ; | |
16557 | PyObject * obj0 = 0 ; | |
16558 | PyObject * obj1 = 0 ; | |
16559 | char *kwnames[] = { | |
16560 | (char *) "config",(char *) "entry", NULL | |
16561 | }; | |
16562 | ||
16563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_ConfigPathChanger",kwnames,&obj0,&obj1)) goto fail; | |
16564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16566 | { | |
16567 | arg2 = wxString_in_helper(obj1); | |
16568 | if (arg2 == NULL) SWIG_fail; | |
16569 | temp2 = True; | |
16570 | } | |
16571 | { | |
16572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16573 | result = (wxConfigPathChanger *)new wxConfigPathChanger((wxConfigBase const *)arg1,(wxString const &)*arg2); | |
16574 | ||
16575 | wxPyEndAllowThreads(__tstate); | |
16576 | if (PyErr_Occurred()) SWIG_fail; | |
16577 | } | |
16578 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigPathChanger, 1); | |
16579 | { | |
16580 | if (temp2) | |
16581 | delete arg2; | |
16582 | } | |
16583 | return resultobj; | |
16584 | fail: | |
16585 | { | |
16586 | if (temp2) | |
16587 | delete arg2; | |
16588 | } | |
16589 | return NULL; | |
16590 | } | |
16591 | ||
16592 | ||
16593 | static PyObject *_wrap_delete_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16594 | PyObject *resultobj; | |
16595 | wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ; | |
16596 | PyObject * obj0 = 0 ; | |
16597 | char *kwnames[] = { | |
16598 | (char *) "self", NULL | |
16599 | }; | |
16600 | ||
16601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigPathChanger",kwnames,&obj0)) goto fail; | |
16602 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger, | |
16603 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16604 | { | |
16605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16606 | delete arg1; | |
16607 | ||
16608 | wxPyEndAllowThreads(__tstate); | |
16609 | if (PyErr_Occurred()) SWIG_fail; | |
16610 | } | |
16611 | Py_INCREF(Py_None); resultobj = Py_None; | |
16612 | return resultobj; | |
16613 | fail: | |
16614 | return NULL; | |
16615 | } | |
16616 | ||
16617 | ||
16618 | static PyObject *_wrap_ConfigPathChanger_Name(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16619 | PyObject *resultobj; | |
16620 | wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ; | |
16621 | wxString *result; | |
16622 | PyObject * obj0 = 0 ; | |
16623 | char *kwnames[] = { | |
16624 | (char *) "self", NULL | |
16625 | }; | |
16626 | ||
16627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigPathChanger_Name",kwnames,&obj0)) goto fail; | |
16628 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger, | |
16629 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16630 | { | |
16631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16632 | { | |
16633 | wxString const &_result_ref = ((wxConfigPathChanger const *)arg1)->Name(); | |
16634 | result = (wxString *) &_result_ref; | |
16635 | } | |
16636 | ||
16637 | wxPyEndAllowThreads(__tstate); | |
16638 | if (PyErr_Occurred()) SWIG_fail; | |
16639 | } | |
16640 | { | |
16641 | #if wxUSE_UNICODE | |
16642 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
16643 | #else | |
16644 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
16645 | #endif | |
16646 | } | |
16647 | return resultobj; | |
16648 | fail: | |
16649 | return NULL; | |
16650 | } | |
16651 | ||
16652 | ||
16653 | static PyObject * ConfigPathChanger_swigregister(PyObject *self, PyObject *args) { | |
16654 | PyObject *obj; | |
16655 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16656 | SWIG_TypeClientData(SWIGTYPE_p_wxConfigPathChanger, obj); | |
16657 | Py_INCREF(obj); | |
16658 | return Py_BuildValue((char *)""); | |
16659 | } | |
16660 | static PyObject *_wrap_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16661 | PyObject *resultobj; | |
16662 | wxString *arg1 = 0 ; | |
16663 | wxString result; | |
16664 | bool temp1 = False ; | |
16665 | PyObject * obj0 = 0 ; | |
16666 | char *kwnames[] = { | |
16667 | (char *) "sz", NULL | |
16668 | }; | |
16669 | ||
16670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ExpandEnvVars",kwnames,&obj0)) goto fail; | |
16671 | { | |
16672 | arg1 = wxString_in_helper(obj0); | |
16673 | if (arg1 == NULL) SWIG_fail; | |
16674 | temp1 = True; | |
16675 | } | |
16676 | { | |
16677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16678 | result = wxExpandEnvVars((wxString const &)*arg1); | |
16679 | ||
16680 | wxPyEndAllowThreads(__tstate); | |
16681 | if (PyErr_Occurred()) SWIG_fail; | |
16682 | } | |
16683 | { | |
16684 | #if wxUSE_UNICODE | |
16685 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16686 | #else | |
16687 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16688 | #endif | |
16689 | } | |
16690 | { | |
16691 | if (temp1) | |
16692 | delete arg1; | |
16693 | } | |
16694 | return resultobj; | |
16695 | fail: | |
16696 | { | |
16697 | if (temp1) | |
16698 | delete arg1; | |
16699 | } | |
16700 | return NULL; | |
16701 | } | |
16702 | ||
16703 | ||
16704 | static int _wrap_DateFormatStr_set(PyObject *_val) { | |
16705 | PyErr_SetString(PyExc_TypeError,"Variable DateFormatStr is read-only."); | |
16706 | return 1; | |
16707 | } | |
16708 | ||
16709 | ||
16710 | static PyObject *_wrap_DateFormatStr_get() { | |
16711 | PyObject *pyobj; | |
16712 | ||
16713 | { | |
16714 | #if wxUSE_UNICODE | |
16715 | pyobj = PyUnicode_FromWideChar((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len()); | |
16716 | #else | |
16717 | pyobj = PyString_FromStringAndSize((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len()); | |
16718 | #endif | |
16719 | } | |
16720 | return pyobj; | |
16721 | } | |
16722 | ||
16723 | ||
16724 | static int _wrap_TimeSpanFormatStr_set(PyObject *_val) { | |
16725 | PyErr_SetString(PyExc_TypeError,"Variable TimeSpanFormatStr is read-only."); | |
16726 | return 1; | |
16727 | } | |
16728 | ||
16729 | ||
16730 | static PyObject *_wrap_TimeSpanFormatStr_get() { | |
16731 | PyObject *pyobj; | |
16732 | ||
16733 | { | |
16734 | #if wxUSE_UNICODE | |
16735 | pyobj = PyUnicode_FromWideChar((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len()); | |
16736 | #else | |
16737 | pyobj = PyString_FromStringAndSize((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len()); | |
16738 | #endif | |
16739 | } | |
16740 | return pyobj; | |
16741 | } | |
16742 | ||
16743 | ||
16744 | static PyObject *_wrap_DateTime_SetCountry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16745 | PyObject *resultobj; | |
16746 | int arg1 ; | |
16747 | PyObject * obj0 = 0 ; | |
16748 | char *kwnames[] = { | |
16749 | (char *) "country", NULL | |
16750 | }; | |
16751 | ||
16752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetCountry",kwnames,&obj0)) goto fail; | |
16753 | arg1 = (wxDateTime::Country) SWIG_AsInt(obj0); | |
16754 | if (PyErr_Occurred()) SWIG_fail; | |
16755 | { | |
16756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16757 | wxDateTime::SetCountry((wxDateTime::Country )arg1); | |
16758 | ||
16759 | wxPyEndAllowThreads(__tstate); | |
16760 | if (PyErr_Occurred()) SWIG_fail; | |
16761 | } | |
16762 | Py_INCREF(Py_None); resultobj = Py_None; | |
16763 | return resultobj; | |
16764 | fail: | |
16765 | return NULL; | |
16766 | } | |
16767 | ||
16768 | ||
16769 | static PyObject *_wrap_DateTime_GetCountry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16770 | PyObject *resultobj; | |
16771 | int result; | |
16772 | char *kwnames[] = { | |
16773 | NULL | |
16774 | }; | |
16775 | ||
16776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetCountry",kwnames)) goto fail; | |
16777 | { | |
16778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16779 | result = (int)wxDateTime::GetCountry(); | |
16780 | ||
16781 | wxPyEndAllowThreads(__tstate); | |
16782 | if (PyErr_Occurred()) SWIG_fail; | |
16783 | } | |
16784 | resultobj = SWIG_FromInt((int)result); | |
16785 | return resultobj; | |
16786 | fail: | |
16787 | return NULL; | |
16788 | } | |
16789 | ||
16790 | ||
16791 | static PyObject *_wrap_DateTime_IsWestEuropeanCountry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16792 | PyObject *resultobj; | |
16793 | int arg1 = (int) wxDateTime::Country_Default ; | |
16794 | bool result; | |
16795 | PyObject * obj0 = 0 ; | |
16796 | char *kwnames[] = { | |
16797 | (char *) "country", NULL | |
16798 | }; | |
16799 | ||
16800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_IsWestEuropeanCountry",kwnames,&obj0)) goto fail; | |
16801 | if (obj0) { | |
16802 | arg1 = (wxDateTime::Country) SWIG_AsInt(obj0); | |
16803 | if (PyErr_Occurred()) SWIG_fail; | |
16804 | } | |
16805 | { | |
16806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16807 | result = (bool)wxDateTime::IsWestEuropeanCountry((wxDateTime::Country )arg1); | |
16808 | ||
16809 | wxPyEndAllowThreads(__tstate); | |
16810 | if (PyErr_Occurred()) SWIG_fail; | |
16811 | } | |
16812 | { | |
16813 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16814 | } | |
16815 | return resultobj; | |
16816 | fail: | |
16817 | return NULL; | |
16818 | } | |
16819 | ||
16820 | ||
16821 | static PyObject *_wrap_DateTime_GetCurrentYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16822 | PyObject *resultobj; | |
16823 | int arg1 = (int) wxDateTime::Gregorian ; | |
16824 | int result; | |
16825 | PyObject * obj0 = 0 ; | |
16826 | char *kwnames[] = { | |
16827 | (char *) "cal", NULL | |
16828 | }; | |
16829 | ||
16830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentYear",kwnames,&obj0)) goto fail; | |
16831 | if (obj0) { | |
16832 | arg1 = (wxDateTime::Calendar) SWIG_AsInt(obj0); | |
16833 | if (PyErr_Occurred()) SWIG_fail; | |
16834 | } | |
16835 | { | |
16836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16837 | result = (int)wxDateTime::GetCurrentYear((wxDateTime::Calendar )arg1); | |
16838 | ||
16839 | wxPyEndAllowThreads(__tstate); | |
16840 | if (PyErr_Occurred()) SWIG_fail; | |
16841 | } | |
16842 | resultobj = SWIG_FromInt((int)result); | |
16843 | return resultobj; | |
16844 | fail: | |
16845 | return NULL; | |
16846 | } | |
16847 | ||
16848 | ||
16849 | static PyObject *_wrap_DateTime_ConvertYearToBC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16850 | PyObject *resultobj; | |
16851 | int arg1 ; | |
16852 | int result; | |
16853 | PyObject * obj0 = 0 ; | |
16854 | char *kwnames[] = { | |
16855 | (char *) "year", NULL | |
16856 | }; | |
16857 | ||
16858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ConvertYearToBC",kwnames,&obj0)) goto fail; | |
16859 | arg1 = (int) SWIG_AsInt(obj0); | |
16860 | if (PyErr_Occurred()) SWIG_fail; | |
16861 | { | |
16862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16863 | result = (int)wxDateTime::ConvertYearToBC(arg1); | |
16864 | ||
16865 | wxPyEndAllowThreads(__tstate); | |
16866 | if (PyErr_Occurred()) SWIG_fail; | |
16867 | } | |
16868 | resultobj = SWIG_FromInt((int)result); | |
16869 | return resultobj; | |
16870 | fail: | |
16871 | return NULL; | |
16872 | } | |
16873 | ||
16874 | ||
16875 | static PyObject *_wrap_DateTime_GetCurrentMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16876 | PyObject *resultobj; | |
16877 | int arg1 = (int) wxDateTime::Gregorian ; | |
16878 | int result; | |
16879 | PyObject * obj0 = 0 ; | |
16880 | char *kwnames[] = { | |
16881 | (char *) "cal", NULL | |
16882 | }; | |
16883 | ||
16884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentMonth",kwnames,&obj0)) goto fail; | |
16885 | if (obj0) { | |
16886 | arg1 = (wxDateTime::Calendar) SWIG_AsInt(obj0); | |
16887 | if (PyErr_Occurred()) SWIG_fail; | |
16888 | } | |
16889 | { | |
16890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16891 | result = (int)wxDateTime::GetCurrentMonth((wxDateTime::Calendar )arg1); | |
16892 | ||
16893 | wxPyEndAllowThreads(__tstate); | |
16894 | if (PyErr_Occurred()) SWIG_fail; | |
16895 | } | |
16896 | resultobj = SWIG_FromInt((int)result); | |
16897 | return resultobj; | |
16898 | fail: | |
16899 | return NULL; | |
16900 | } | |
16901 | ||
16902 | ||
16903 | static PyObject *_wrap_DateTime_IsLeapYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16904 | PyObject *resultobj; | |
16905 | int arg1 = (int) wxDateTime::Inv_Year ; | |
16906 | int arg2 = (int) wxDateTime::Gregorian ; | |
16907 | bool result; | |
16908 | PyObject * obj0 = 0 ; | |
16909 | PyObject * obj1 = 0 ; | |
16910 | char *kwnames[] = { | |
16911 | (char *) "year",(char *) "cal", NULL | |
16912 | }; | |
16913 | ||
16914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsLeapYear",kwnames,&obj0,&obj1)) goto fail; | |
16915 | if (obj0) { | |
16916 | arg1 = (int) SWIG_AsInt(obj0); | |
16917 | if (PyErr_Occurred()) SWIG_fail; | |
16918 | } | |
16919 | if (obj1) { | |
16920 | arg2 = (wxDateTime::Calendar) SWIG_AsInt(obj1); | |
16921 | if (PyErr_Occurred()) SWIG_fail; | |
16922 | } | |
16923 | { | |
16924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16925 | result = (bool)wxDateTime::IsLeapYear(arg1,(wxDateTime::Calendar )arg2); | |
16926 | ||
16927 | wxPyEndAllowThreads(__tstate); | |
16928 | if (PyErr_Occurred()) SWIG_fail; | |
16929 | } | |
16930 | { | |
16931 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16932 | } | |
16933 | return resultobj; | |
16934 | fail: | |
16935 | return NULL; | |
16936 | } | |
16937 | ||
16938 | ||
16939 | static PyObject *_wrap_DateTime_GetCentury(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16940 | PyObject *resultobj; | |
16941 | int arg1 = (int) wxDateTime::Inv_Year ; | |
16942 | int result; | |
16943 | PyObject * obj0 = 0 ; | |
16944 | char *kwnames[] = { | |
16945 | (char *) "year", NULL | |
16946 | }; | |
16947 | ||
16948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCentury",kwnames,&obj0)) goto fail; | |
16949 | if (obj0) { | |
16950 | arg1 = (int) SWIG_AsInt(obj0); | |
16951 | if (PyErr_Occurred()) SWIG_fail; | |
16952 | } | |
16953 | { | |
16954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16955 | result = (int)wxDateTime::GetCentury(arg1); | |
16956 | ||
16957 | wxPyEndAllowThreads(__tstate); | |
16958 | if (PyErr_Occurred()) SWIG_fail; | |
16959 | } | |
16960 | resultobj = SWIG_FromInt((int)result); | |
16961 | return resultobj; | |
16962 | fail: | |
16963 | return NULL; | |
16964 | } | |
16965 | ||
16966 | ||
16967 | static PyObject *_wrap_DateTime_GetNumberOfDaysinYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16968 | PyObject *resultobj; | |
16969 | int arg1 ; | |
16970 | int arg2 = (int) wxDateTime::Gregorian ; | |
16971 | int result; | |
16972 | PyObject * obj0 = 0 ; | |
16973 | PyObject * obj1 = 0 ; | |
16974 | char *kwnames[] = { | |
16975 | (char *) "year",(char *) "cal", NULL | |
16976 | }; | |
16977 | ||
16978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetNumberOfDaysinYear",kwnames,&obj0,&obj1)) goto fail; | |
16979 | arg1 = (int) SWIG_AsInt(obj0); | |
16980 | if (PyErr_Occurred()) SWIG_fail; | |
16981 | if (obj1) { | |
16982 | arg2 = (wxDateTime::Calendar) SWIG_AsInt(obj1); | |
16983 | if (PyErr_Occurred()) SWIG_fail; | |
16984 | } | |
16985 | { | |
16986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16987 | result = (int)wxDateTime::GetNumberOfDays(arg1,(wxDateTime::Calendar )arg2); | |
16988 | ||
16989 | wxPyEndAllowThreads(__tstate); | |
16990 | if (PyErr_Occurred()) SWIG_fail; | |
16991 | } | |
16992 | resultobj = SWIG_FromInt((int)result); | |
16993 | return resultobj; | |
16994 | fail: | |
16995 | return NULL; | |
16996 | } | |
16997 | ||
16998 | ||
16999 | static PyObject *_wrap_DateTime_GetNumberOfDaysInMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17000 | PyObject *resultobj; | |
17001 | int arg1 ; | |
17002 | int arg2 = (int) wxDateTime::Inv_Year ; | |
17003 | int arg3 = (int) wxDateTime::Gregorian ; | |
17004 | int result; | |
17005 | PyObject * obj0 = 0 ; | |
17006 | PyObject * obj1 = 0 ; | |
17007 | PyObject * obj2 = 0 ; | |
17008 | char *kwnames[] = { | |
17009 | (char *) "month",(char *) "year",(char *) "cal", NULL | |
17010 | }; | |
17011 | ||
17012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetNumberOfDaysInMonth",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17013 | arg1 = (wxDateTime::Month) SWIG_AsInt(obj0); | |
17014 | if (PyErr_Occurred()) SWIG_fail; | |
17015 | if (obj1) { | |
17016 | arg2 = (int) SWIG_AsInt(obj1); | |
17017 | if (PyErr_Occurred()) SWIG_fail; | |
17018 | } | |
17019 | if (obj2) { | |
17020 | arg3 = (wxDateTime::Calendar) SWIG_AsInt(obj2); | |
17021 | if (PyErr_Occurred()) SWIG_fail; | |
17022 | } | |
17023 | { | |
17024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17025 | result = (int)wxDateTime::GetNumberOfDays((wxDateTime::Month )arg1,arg2,(wxDateTime::Calendar )arg3); | |
17026 | ||
17027 | wxPyEndAllowThreads(__tstate); | |
17028 | if (PyErr_Occurred()) SWIG_fail; | |
17029 | } | |
17030 | resultobj = SWIG_FromInt((int)result); | |
17031 | return resultobj; | |
17032 | fail: | |
17033 | return NULL; | |
17034 | } | |
17035 | ||
17036 | ||
17037 | static PyObject *_wrap_DateTime_GetMonthName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17038 | PyObject *resultobj; | |
17039 | int arg1 ; | |
17040 | int arg2 = (int) wxDateTime::Name_Full ; | |
17041 | wxString result; | |
17042 | PyObject * obj0 = 0 ; | |
17043 | PyObject * obj1 = 0 ; | |
17044 | char *kwnames[] = { | |
17045 | (char *) "month",(char *) "flags", NULL | |
17046 | }; | |
17047 | ||
17048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonthName",kwnames,&obj0,&obj1)) goto fail; | |
17049 | arg1 = (wxDateTime::Month) SWIG_AsInt(obj0); | |
17050 | if (PyErr_Occurred()) SWIG_fail; | |
17051 | if (obj1) { | |
17052 | arg2 = (wxDateTime::NameFlags) SWIG_AsInt(obj1); | |
17053 | if (PyErr_Occurred()) SWIG_fail; | |
17054 | } | |
17055 | { | |
17056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17057 | result = wxDateTime::GetMonthName((wxDateTime::Month )arg1,(wxDateTime::NameFlags )arg2); | |
17058 | ||
17059 | wxPyEndAllowThreads(__tstate); | |
17060 | if (PyErr_Occurred()) SWIG_fail; | |
17061 | } | |
17062 | { | |
17063 | #if wxUSE_UNICODE | |
17064 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17065 | #else | |
17066 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17067 | #endif | |
17068 | } | |
17069 | return resultobj; | |
17070 | fail: | |
17071 | return NULL; | |
17072 | } | |
17073 | ||
17074 | ||
17075 | static PyObject *_wrap_DateTime_GetWeekDayName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17076 | PyObject *resultobj; | |
17077 | int arg1 ; | |
17078 | int arg2 = (int) wxDateTime::Name_Full ; | |
17079 | wxString result; | |
17080 | PyObject * obj0 = 0 ; | |
17081 | PyObject * obj1 = 0 ; | |
17082 | char *kwnames[] = { | |
17083 | (char *) "weekday",(char *) "flags", NULL | |
17084 | }; | |
17085 | ||
17086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDayName",kwnames,&obj0,&obj1)) goto fail; | |
17087 | arg1 = (wxDateTime::WeekDay) SWIG_AsInt(obj0); | |
17088 | if (PyErr_Occurred()) SWIG_fail; | |
17089 | if (obj1) { | |
17090 | arg2 = (wxDateTime::NameFlags) SWIG_AsInt(obj1); | |
17091 | if (PyErr_Occurred()) SWIG_fail; | |
17092 | } | |
17093 | { | |
17094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17095 | result = wxDateTime::GetWeekDayName((wxDateTime::WeekDay )arg1,(wxDateTime::NameFlags )arg2); | |
17096 | ||
17097 | wxPyEndAllowThreads(__tstate); | |
17098 | if (PyErr_Occurred()) SWIG_fail; | |
17099 | } | |
17100 | { | |
17101 | #if wxUSE_UNICODE | |
17102 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17103 | #else | |
17104 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17105 | #endif | |
17106 | } | |
17107 | return resultobj; | |
17108 | fail: | |
17109 | return NULL; | |
17110 | } | |
17111 | ||
17112 | ||
17113 | static PyObject *_wrap_DateTime_GetAmPmStrings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17114 | PyObject *resultobj; | |
17115 | wxString *arg1 = (wxString *) 0 ; | |
17116 | wxString *arg2 = (wxString *) 0 ; | |
17117 | bool temp1 = False ; | |
17118 | bool temp2 = False ; | |
17119 | PyObject * obj0 = 0 ; | |
17120 | PyObject * obj1 = 0 ; | |
17121 | char *kwnames[] = { | |
17122 | (char *) "OUTPUT",(char *) "OUTPUT", NULL | |
17123 | }; | |
17124 | ||
17125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetAmPmStrings",kwnames,&obj0,&obj1)) goto fail; | |
17126 | { | |
17127 | arg1 = wxString_in_helper(obj0); | |
17128 | if (arg1 == NULL) SWIG_fail; | |
17129 | temp1 = True; | |
17130 | } | |
17131 | { | |
17132 | arg2 = wxString_in_helper(obj1); | |
17133 | if (arg2 == NULL) SWIG_fail; | |
17134 | temp2 = True; | |
17135 | } | |
17136 | { | |
17137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17138 | wxDateTime::GetAmPmStrings(arg1,arg2); | |
17139 | ||
17140 | wxPyEndAllowThreads(__tstate); | |
17141 | if (PyErr_Occurred()) SWIG_fail; | |
17142 | } | |
17143 | Py_INCREF(Py_None); resultobj = Py_None; | |
17144 | { | |
17145 | if (temp1) | |
17146 | delete arg1; | |
17147 | } | |
17148 | { | |
17149 | if (temp2) | |
17150 | delete arg2; | |
17151 | } | |
17152 | return resultobj; | |
17153 | fail: | |
17154 | { | |
17155 | if (temp1) | |
17156 | delete arg1; | |
17157 | } | |
17158 | { | |
17159 | if (temp2) | |
17160 | delete arg2; | |
17161 | } | |
17162 | return NULL; | |
17163 | } | |
17164 | ||
17165 | ||
17166 | static PyObject *_wrap_DateTime_IsDSTApplicable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17167 | PyObject *resultobj; | |
17168 | int arg1 = (int) wxDateTime::Inv_Year ; | |
17169 | int arg2 = (int) wxDateTime::Country_Default ; | |
17170 | bool result; | |
17171 | PyObject * obj0 = 0 ; | |
17172 | PyObject * obj1 = 0 ; | |
17173 | char *kwnames[] = { | |
17174 | (char *) "year",(char *) "country", NULL | |
17175 | }; | |
17176 | ||
17177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsDSTApplicable",kwnames,&obj0,&obj1)) goto fail; | |
17178 | if (obj0) { | |
17179 | arg1 = (int) SWIG_AsInt(obj0); | |
17180 | if (PyErr_Occurred()) SWIG_fail; | |
17181 | } | |
17182 | if (obj1) { | |
17183 | arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); | |
17184 | if (PyErr_Occurred()) SWIG_fail; | |
17185 | } | |
17186 | { | |
17187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17188 | result = (bool)wxDateTime::IsDSTApplicable(arg1,(wxDateTime::Country )arg2); | |
17189 | ||
17190 | wxPyEndAllowThreads(__tstate); | |
17191 | if (PyErr_Occurred()) SWIG_fail; | |
17192 | } | |
17193 | { | |
17194 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17195 | } | |
17196 | return resultobj; | |
17197 | fail: | |
17198 | return NULL; | |
17199 | } | |
17200 | ||
17201 | ||
17202 | static PyObject *_wrap_DateTime_GetBeginDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17203 | PyObject *resultobj; | |
17204 | int arg1 = (int) wxDateTime::Inv_Year ; | |
17205 | int arg2 = (int) wxDateTime::Country_Default ; | |
17206 | wxDateTime result; | |
17207 | PyObject * obj0 = 0 ; | |
17208 | PyObject * obj1 = 0 ; | |
17209 | char *kwnames[] = { | |
17210 | (char *) "year",(char *) "country", NULL | |
17211 | }; | |
17212 | ||
17213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetBeginDST",kwnames,&obj0,&obj1)) goto fail; | |
17214 | if (obj0) { | |
17215 | arg1 = (int) SWIG_AsInt(obj0); | |
17216 | if (PyErr_Occurred()) SWIG_fail; | |
17217 | } | |
17218 | if (obj1) { | |
17219 | arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); | |
17220 | if (PyErr_Occurred()) SWIG_fail; | |
17221 | } | |
17222 | { | |
17223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17224 | result = wxDateTime::GetBeginDST(arg1,(wxDateTime::Country )arg2); | |
17225 | ||
17226 | wxPyEndAllowThreads(__tstate); | |
17227 | if (PyErr_Occurred()) SWIG_fail; | |
17228 | } | |
17229 | { | |
17230 | wxDateTime * resultptr; | |
17231 | resultptr = new wxDateTime((wxDateTime &) result); | |
17232 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
17233 | } | |
17234 | return resultobj; | |
17235 | fail: | |
17236 | return NULL; | |
17237 | } | |
17238 | ||
17239 | ||
17240 | static PyObject *_wrap_DateTime_GetEndDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17241 | PyObject *resultobj; | |
17242 | int arg1 = (int) wxDateTime::Inv_Year ; | |
17243 | int arg2 = (int) wxDateTime::Country_Default ; | |
17244 | wxDateTime result; | |
17245 | PyObject * obj0 = 0 ; | |
17246 | PyObject * obj1 = 0 ; | |
17247 | char *kwnames[] = { | |
17248 | (char *) "year",(char *) "country", NULL | |
17249 | }; | |
17250 | ||
17251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetEndDST",kwnames,&obj0,&obj1)) goto fail; | |
17252 | if (obj0) { | |
17253 | arg1 = (int) SWIG_AsInt(obj0); | |
17254 | if (PyErr_Occurred()) SWIG_fail; | |
17255 | } | |
17256 | if (obj1) { | |
17257 | arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); | |
17258 | if (PyErr_Occurred()) SWIG_fail; | |
17259 | } | |
17260 | { | |
17261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17262 | result = wxDateTime::GetEndDST(arg1,(wxDateTime::Country )arg2); | |
17263 | ||
17264 | wxPyEndAllowThreads(__tstate); | |
17265 | if (PyErr_Occurred()) SWIG_fail; | |
17266 | } | |
17267 | { | |
17268 | wxDateTime * resultptr; | |
17269 | resultptr = new wxDateTime((wxDateTime &) result); | |
17270 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
17271 | } | |
17272 | return resultobj; | |
17273 | fail: | |
17274 | return NULL; | |
17275 | } | |
17276 | ||
17277 | ||
17278 | static PyObject *_wrap_DateTime_Now(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17279 | PyObject *resultobj; | |
17280 | wxDateTime result; | |
17281 | char *kwnames[] = { | |
17282 | NULL | |
17283 | }; | |
17284 | ||
17285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Now",kwnames)) goto fail; | |
17286 | { | |
17287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17288 | result = wxDateTime::Now(); | |
17289 | ||
17290 | wxPyEndAllowThreads(__tstate); | |
17291 | if (PyErr_Occurred()) SWIG_fail; | |
17292 | } | |
17293 | { | |
17294 | wxDateTime * resultptr; | |
17295 | resultptr = new wxDateTime((wxDateTime &) result); | |
17296 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
17297 | } | |
17298 | return resultobj; | |
17299 | fail: | |
17300 | return NULL; | |
17301 | } | |
17302 | ||
17303 | ||
17304 | static PyObject *_wrap_DateTime_UNow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17305 | PyObject *resultobj; | |
17306 | wxDateTime result; | |
17307 | char *kwnames[] = { | |
17308 | NULL | |
17309 | }; | |
17310 | ||
17311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_UNow",kwnames)) goto fail; | |
17312 | { | |
17313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17314 | result = wxDateTime::UNow(); | |
17315 | ||
17316 | wxPyEndAllowThreads(__tstate); | |
17317 | if (PyErr_Occurred()) SWIG_fail; | |
17318 | } | |
17319 | { | |
17320 | wxDateTime * resultptr; | |
17321 | resultptr = new wxDateTime((wxDateTime &) result); | |
17322 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
17323 | } | |
17324 | return resultobj; | |
17325 | fail: | |
17326 | return NULL; | |
17327 | } | |
17328 | ||
17329 | ||
17330 | static PyObject *_wrap_DateTime_Today(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17331 | PyObject *resultobj; | |
17332 | wxDateTime result; | |
17333 | char *kwnames[] = { | |
17334 | NULL | |
17335 | }; | |
17336 | ||
17337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Today",kwnames)) goto fail; | |
17338 | { | |
17339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17340 | result = wxDateTime::Today(); | |
17341 | ||
17342 | wxPyEndAllowThreads(__tstate); | |
17343 | if (PyErr_Occurred()) SWIG_fail; | |
17344 | } | |
17345 | { | |
17346 | wxDateTime * resultptr; | |
17347 | resultptr = new wxDateTime((wxDateTime &) result); | |
17348 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
17349 | } | |
17350 | return resultobj; | |
17351 | fail: | |
17352 | return NULL; | |
17353 | } | |
17354 | ||
17355 | ||
17356 | static PyObject *_wrap_new_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17357 | PyObject *resultobj; | |
17358 | wxDateTime *result; | |
17359 | char *kwnames[] = { | |
17360 | NULL | |
17361 | }; | |
17362 | ||
17363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DateTime",kwnames)) goto fail; | |
17364 | { | |
17365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17366 | result = (wxDateTime *)new wxDateTime(); | |
17367 | ||
17368 | wxPyEndAllowThreads(__tstate); | |
17369 | if (PyErr_Occurred()) SWIG_fail; | |
17370 | } | |
17371 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
17372 | return resultobj; | |
17373 | fail: | |
17374 | return NULL; | |
17375 | } | |
17376 | ||
17377 | ||
17378 | static PyObject *_wrap_new_DateTimeFromTimeT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17379 | PyObject *resultobj; | |
17380 | time_t arg1 ; | |
17381 | wxDateTime *result; | |
17382 | PyObject * obj0 = 0 ; | |
17383 | char *kwnames[] = { | |
17384 | (char *) "timet", NULL | |
17385 | }; | |
17386 | ||
17387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromTimeT",kwnames,&obj0)) goto fail; | |
17388 | arg1 = (time_t) SWIG_AsUnsignedInt(obj0); | |
17389 | if (PyErr_Occurred()) SWIG_fail; | |
17390 | { | |
17391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17392 | result = (wxDateTime *)new wxDateTime(arg1); | |
17393 | ||
17394 | wxPyEndAllowThreads(__tstate); | |
17395 | if (PyErr_Occurred()) SWIG_fail; | |
17396 | } | |
17397 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
17398 | return resultobj; | |
17399 | fail: | |
17400 | return NULL; | |
17401 | } | |
17402 | ||
17403 | ||
17404 | static PyObject *_wrap_new_DateTimeFromJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17405 | PyObject *resultobj; | |
17406 | double arg1 ; | |
17407 | wxDateTime *result; | |
17408 | PyObject * obj0 = 0 ; | |
17409 | char *kwnames[] = { | |
17410 | (char *) "jdn", NULL | |
17411 | }; | |
17412 | ||
17413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromJDN",kwnames,&obj0)) goto fail; | |
17414 | arg1 = (double) SWIG_AsDouble(obj0); | |
17415 | if (PyErr_Occurred()) SWIG_fail; | |
17416 | { | |
17417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17418 | result = (wxDateTime *)new wxDateTime(arg1); | |
17419 | ||
17420 | wxPyEndAllowThreads(__tstate); | |
17421 | if (PyErr_Occurred()) SWIG_fail; | |
17422 | } | |
17423 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
17424 | return resultobj; | |
17425 | fail: | |
17426 | return NULL; | |
17427 | } | |
17428 | ||
17429 | ||
17430 | static PyObject *_wrap_new_DateTimeFromHMS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17431 | PyObject *resultobj; | |
17432 | int arg1 ; | |
17433 | int arg2 = (int) 0 ; | |
17434 | int arg3 = (int) 0 ; | |
17435 | int arg4 = (int) 0 ; | |
17436 | wxDateTime *result; | |
17437 | PyObject * obj0 = 0 ; | |
17438 | PyObject * obj1 = 0 ; | |
17439 | PyObject * obj2 = 0 ; | |
17440 | PyObject * obj3 = 0 ; | |
17441 | char *kwnames[] = { | |
17442 | (char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
17443 | }; | |
17444 | ||
17445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DateTimeFromHMS",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
17446 | arg1 = (int) SWIG_AsInt(obj0); | |
17447 | if (PyErr_Occurred()) SWIG_fail; | |
17448 | if (obj1) { | |
17449 | arg2 = (int) SWIG_AsInt(obj1); | |
17450 | if (PyErr_Occurred()) SWIG_fail; | |
17451 | } | |
17452 | if (obj2) { | |
17453 | arg3 = (int) SWIG_AsInt(obj2); | |
17454 | if (PyErr_Occurred()) SWIG_fail; | |
17455 | } | |
17456 | if (obj3) { | |
17457 | arg4 = (int) SWIG_AsInt(obj3); | |
17458 | if (PyErr_Occurred()) SWIG_fail; | |
17459 | } | |
17460 | { | |
17461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17462 | result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4); | |
17463 | ||
17464 | wxPyEndAllowThreads(__tstate); | |
17465 | if (PyErr_Occurred()) SWIG_fail; | |
17466 | } | |
17467 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
17468 | return resultobj; | |
17469 | fail: | |
17470 | return NULL; | |
17471 | } | |
17472 | ||
17473 | ||
17474 | static PyObject *_wrap_new_DateTimeFromDMY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17475 | PyObject *resultobj; | |
17476 | int arg1 ; | |
17477 | int arg2 = (int) wxDateTime::Inv_Month ; | |
17478 | int arg3 = (int) wxDateTime::Inv_Year ; | |
17479 | int arg4 = (int) 0 ; | |
17480 | int arg5 = (int) 0 ; | |
17481 | int arg6 = (int) 0 ; | |
17482 | int arg7 = (int) 0 ; | |
17483 | wxDateTime *result; | |
17484 | PyObject * obj0 = 0 ; | |
17485 | PyObject * obj1 = 0 ; | |
17486 | PyObject * obj2 = 0 ; | |
17487 | PyObject * obj3 = 0 ; | |
17488 | PyObject * obj4 = 0 ; | |
17489 | PyObject * obj5 = 0 ; | |
17490 | PyObject * obj6 = 0 ; | |
17491 | char *kwnames[] = { | |
17492 | (char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
17493 | }; | |
17494 | ||
17495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DateTimeFromDMY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
17496 | arg1 = (int) SWIG_AsInt(obj0); | |
17497 | if (PyErr_Occurred()) SWIG_fail; | |
17498 | if (obj1) { | |
17499 | arg2 = (wxDateTime::Month) SWIG_AsInt(obj1); | |
17500 | if (PyErr_Occurred()) SWIG_fail; | |
17501 | } | |
17502 | if (obj2) { | |
17503 | arg3 = (int) SWIG_AsInt(obj2); | |
17504 | if (PyErr_Occurred()) SWIG_fail; | |
17505 | } | |
17506 | if (obj3) { | |
17507 | arg4 = (int) SWIG_AsInt(obj3); | |
17508 | if (PyErr_Occurred()) SWIG_fail; | |
17509 | } | |
17510 | if (obj4) { | |
17511 | arg5 = (int) SWIG_AsInt(obj4); | |
17512 | if (PyErr_Occurred()) SWIG_fail; | |
17513 | } | |
17514 | if (obj5) { | |
17515 | arg6 = (int) SWIG_AsInt(obj5); | |
17516 | if (PyErr_Occurred()) SWIG_fail; | |
17517 | } | |
17518 | if (obj6) { | |
17519 | arg7 = (int) SWIG_AsInt(obj6); | |
17520 | if (PyErr_Occurred()) SWIG_fail; | |
17521 | } | |
17522 | { | |
17523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17524 | result = (wxDateTime *)new wxDateTime(arg1,(wxDateTime::Month )arg2,arg3,arg4,arg5,arg6,arg7); | |
17525 | ||
17526 | wxPyEndAllowThreads(__tstate); | |
17527 | if (PyErr_Occurred()) SWIG_fail; | |
17528 | } | |
17529 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
17530 | return resultobj; | |
17531 | fail: | |
17532 | return NULL; | |
17533 | } | |
17534 | ||
17535 | ||
17536 | static PyObject *_wrap_delete_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17537 | PyObject *resultobj; | |
17538 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17539 | PyObject * obj0 = 0 ; | |
17540 | char *kwnames[] = { | |
17541 | (char *) "self", NULL | |
17542 | }; | |
17543 | ||
17544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateTime",kwnames,&obj0)) goto fail; | |
17545 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17547 | { | |
17548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17549 | delete arg1; | |
17550 | ||
17551 | wxPyEndAllowThreads(__tstate); | |
17552 | if (PyErr_Occurred()) SWIG_fail; | |
17553 | } | |
17554 | Py_INCREF(Py_None); resultobj = Py_None; | |
17555 | return resultobj; | |
17556 | fail: | |
17557 | return NULL; | |
17558 | } | |
17559 | ||
17560 | ||
17561 | static PyObject *_wrap_DateTime_SetToCurrent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17562 | PyObject *resultobj; | |
17563 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17564 | wxDateTime *result; | |
17565 | PyObject * obj0 = 0 ; | |
17566 | char *kwnames[] = { | |
17567 | (char *) "self", NULL | |
17568 | }; | |
17569 | ||
17570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetToCurrent",kwnames,&obj0)) goto fail; | |
17571 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17572 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17573 | { | |
17574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17575 | { | |
17576 | wxDateTime &_result_ref = (arg1)->SetToCurrent(); | |
17577 | result = (wxDateTime *) &_result_ref; | |
17578 | } | |
17579 | ||
17580 | wxPyEndAllowThreads(__tstate); | |
17581 | if (PyErr_Occurred()) SWIG_fail; | |
17582 | } | |
17583 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17584 | return resultobj; | |
17585 | fail: | |
17586 | return NULL; | |
17587 | } | |
17588 | ||
17589 | ||
17590 | static PyObject *_wrap_DateTime_SetTimeT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17591 | PyObject *resultobj; | |
17592 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17593 | time_t arg2 ; | |
17594 | wxDateTime *result; | |
17595 | PyObject * obj0 = 0 ; | |
17596 | PyObject * obj1 = 0 ; | |
17597 | char *kwnames[] = { | |
17598 | (char *) "self",(char *) "timet", NULL | |
17599 | }; | |
17600 | ||
17601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetTimeT",kwnames,&obj0,&obj1)) goto fail; | |
17602 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17603 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17604 | arg2 = (time_t) SWIG_AsUnsignedInt(obj1); | |
17605 | if (PyErr_Occurred()) SWIG_fail; | |
17606 | { | |
17607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17608 | { | |
17609 | wxDateTime &_result_ref = (arg1)->Set(arg2); | |
17610 | result = (wxDateTime *) &_result_ref; | |
17611 | } | |
17612 | ||
17613 | wxPyEndAllowThreads(__tstate); | |
17614 | if (PyErr_Occurred()) SWIG_fail; | |
17615 | } | |
17616 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17617 | return resultobj; | |
17618 | fail: | |
17619 | return NULL; | |
17620 | } | |
17621 | ||
17622 | ||
17623 | static PyObject *_wrap_DateTime_SetJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17624 | PyObject *resultobj; | |
17625 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17626 | double arg2 ; | |
17627 | wxDateTime *result; | |
17628 | PyObject * obj0 = 0 ; | |
17629 | PyObject * obj1 = 0 ; | |
17630 | char *kwnames[] = { | |
17631 | (char *) "self",(char *) "jdn", NULL | |
17632 | }; | |
17633 | ||
17634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetJDN",kwnames,&obj0,&obj1)) goto fail; | |
17635 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17636 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17637 | arg2 = (double) SWIG_AsDouble(obj1); | |
17638 | if (PyErr_Occurred()) SWIG_fail; | |
17639 | { | |
17640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17641 | { | |
17642 | wxDateTime &_result_ref = (arg1)->Set(arg2); | |
17643 | result = (wxDateTime *) &_result_ref; | |
17644 | } | |
17645 | ||
17646 | wxPyEndAllowThreads(__tstate); | |
17647 | if (PyErr_Occurred()) SWIG_fail; | |
17648 | } | |
17649 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17650 | return resultobj; | |
17651 | fail: | |
17652 | return NULL; | |
17653 | } | |
17654 | ||
17655 | ||
17656 | static PyObject *_wrap_DateTime_SetHMS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17657 | PyObject *resultobj; | |
17658 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17659 | int arg2 ; | |
17660 | int arg3 = (int) 0 ; | |
17661 | int arg4 = (int) 0 ; | |
17662 | int arg5 = (int) 0 ; | |
17663 | wxDateTime *result; | |
17664 | PyObject * obj0 = 0 ; | |
17665 | PyObject * obj1 = 0 ; | |
17666 | PyObject * obj2 = 0 ; | |
17667 | PyObject * obj3 = 0 ; | |
17668 | PyObject * obj4 = 0 ; | |
17669 | char *kwnames[] = { | |
17670 | (char *) "self",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
17671 | }; | |
17672 | ||
17673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetHMS",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
17674 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17675 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17676 | arg2 = (int) SWIG_AsInt(obj1); | |
17677 | if (PyErr_Occurred()) SWIG_fail; | |
17678 | if (obj2) { | |
17679 | arg3 = (int) SWIG_AsInt(obj2); | |
17680 | if (PyErr_Occurred()) SWIG_fail; | |
17681 | } | |
17682 | if (obj3) { | |
17683 | arg4 = (int) SWIG_AsInt(obj3); | |
17684 | if (PyErr_Occurred()) SWIG_fail; | |
17685 | } | |
17686 | if (obj4) { | |
17687 | arg5 = (int) SWIG_AsInt(obj4); | |
17688 | if (PyErr_Occurred()) SWIG_fail; | |
17689 | } | |
17690 | { | |
17691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17692 | { | |
17693 | wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5); | |
17694 | result = (wxDateTime *) &_result_ref; | |
17695 | } | |
17696 | ||
17697 | wxPyEndAllowThreads(__tstate); | |
17698 | if (PyErr_Occurred()) SWIG_fail; | |
17699 | } | |
17700 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17701 | return resultobj; | |
17702 | fail: | |
17703 | return NULL; | |
17704 | } | |
17705 | ||
17706 | ||
17707 | static PyObject *_wrap_DateTime_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17708 | PyObject *resultobj; | |
17709 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17710 | int arg2 ; | |
17711 | int arg3 = (int) wxDateTime::Inv_Month ; | |
17712 | int arg4 = (int) wxDateTime::Inv_Year ; | |
17713 | int arg5 = (int) 0 ; | |
17714 | int arg6 = (int) 0 ; | |
17715 | int arg7 = (int) 0 ; | |
17716 | int arg8 = (int) 0 ; | |
17717 | wxDateTime *result; | |
17718 | PyObject * obj0 = 0 ; | |
17719 | PyObject * obj1 = 0 ; | |
17720 | PyObject * obj2 = 0 ; | |
17721 | PyObject * obj3 = 0 ; | |
17722 | PyObject * obj4 = 0 ; | |
17723 | PyObject * obj5 = 0 ; | |
17724 | PyObject * obj6 = 0 ; | |
17725 | PyObject * obj7 = 0 ; | |
17726 | char *kwnames[] = { | |
17727 | (char *) "self",(char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
17728 | }; | |
17729 | ||
17730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:DateTime_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
17731 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17732 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17733 | arg2 = (int) SWIG_AsInt(obj1); | |
17734 | if (PyErr_Occurred()) SWIG_fail; | |
17735 | if (obj2) { | |
17736 | arg3 = (wxDateTime::Month) SWIG_AsInt(obj2); | |
17737 | if (PyErr_Occurred()) SWIG_fail; | |
17738 | } | |
17739 | if (obj3) { | |
17740 | arg4 = (int) SWIG_AsInt(obj3); | |
17741 | if (PyErr_Occurred()) SWIG_fail; | |
17742 | } | |
17743 | if (obj4) { | |
17744 | arg5 = (int) SWIG_AsInt(obj4); | |
17745 | if (PyErr_Occurred()) SWIG_fail; | |
17746 | } | |
17747 | if (obj5) { | |
17748 | arg6 = (int) SWIG_AsInt(obj5); | |
17749 | if (PyErr_Occurred()) SWIG_fail; | |
17750 | } | |
17751 | if (obj6) { | |
17752 | arg7 = (int) SWIG_AsInt(obj6); | |
17753 | if (PyErr_Occurred()) SWIG_fail; | |
17754 | } | |
17755 | if (obj7) { | |
17756 | arg8 = (int) SWIG_AsInt(obj7); | |
17757 | if (PyErr_Occurred()) SWIG_fail; | |
17758 | } | |
17759 | { | |
17760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17761 | { | |
17762 | wxDateTime &_result_ref = (arg1)->Set(arg2,(wxDateTime::Month )arg3,arg4,arg5,arg6,arg7,arg8); | |
17763 | result = (wxDateTime *) &_result_ref; | |
17764 | } | |
17765 | ||
17766 | wxPyEndAllowThreads(__tstate); | |
17767 | if (PyErr_Occurred()) SWIG_fail; | |
17768 | } | |
17769 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17770 | return resultobj; | |
17771 | fail: | |
17772 | return NULL; | |
17773 | } | |
17774 | ||
17775 | ||
17776 | static PyObject *_wrap_DateTime_ResetTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17777 | PyObject *resultobj; | |
17778 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17779 | wxDateTime *result; | |
17780 | PyObject * obj0 = 0 ; | |
17781 | char *kwnames[] = { | |
17782 | (char *) "self", NULL | |
17783 | }; | |
17784 | ||
17785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ResetTime",kwnames,&obj0)) goto fail; | |
17786 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17787 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17788 | { | |
17789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17790 | { | |
17791 | wxDateTime &_result_ref = (arg1)->ResetTime(); | |
17792 | result = (wxDateTime *) &_result_ref; | |
17793 | } | |
17794 | ||
17795 | wxPyEndAllowThreads(__tstate); | |
17796 | if (PyErr_Occurred()) SWIG_fail; | |
17797 | } | |
17798 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17799 | return resultobj; | |
17800 | fail: | |
17801 | return NULL; | |
17802 | } | |
17803 | ||
17804 | ||
17805 | static PyObject *_wrap_DateTime_SetYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17806 | PyObject *resultobj; | |
17807 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17808 | int arg2 ; | |
17809 | wxDateTime *result; | |
17810 | PyObject * obj0 = 0 ; | |
17811 | PyObject * obj1 = 0 ; | |
17812 | char *kwnames[] = { | |
17813 | (char *) "self",(char *) "year", NULL | |
17814 | }; | |
17815 | ||
17816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetYear",kwnames,&obj0,&obj1)) goto fail; | |
17817 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17818 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17819 | arg2 = (int) SWIG_AsInt(obj1); | |
17820 | if (PyErr_Occurred()) SWIG_fail; | |
17821 | { | |
17822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17823 | { | |
17824 | wxDateTime &_result_ref = (arg1)->SetYear(arg2); | |
17825 | result = (wxDateTime *) &_result_ref; | |
17826 | } | |
17827 | ||
17828 | wxPyEndAllowThreads(__tstate); | |
17829 | if (PyErr_Occurred()) SWIG_fail; | |
17830 | } | |
17831 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17832 | return resultobj; | |
17833 | fail: | |
17834 | return NULL; | |
17835 | } | |
17836 | ||
17837 | ||
17838 | static PyObject *_wrap_DateTime_SetMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17839 | PyObject *resultobj; | |
17840 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17841 | int arg2 ; | |
17842 | wxDateTime *result; | |
17843 | PyObject * obj0 = 0 ; | |
17844 | PyObject * obj1 = 0 ; | |
17845 | char *kwnames[] = { | |
17846 | (char *) "self",(char *) "month", NULL | |
17847 | }; | |
17848 | ||
17849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMonth",kwnames,&obj0,&obj1)) goto fail; | |
17850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17852 | arg2 = (wxDateTime::Month) SWIG_AsInt(obj1); | |
17853 | if (PyErr_Occurred()) SWIG_fail; | |
17854 | { | |
17855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17856 | { | |
17857 | wxDateTime &_result_ref = (arg1)->SetMonth((wxDateTime::Month )arg2); | |
17858 | result = (wxDateTime *) &_result_ref; | |
17859 | } | |
17860 | ||
17861 | wxPyEndAllowThreads(__tstate); | |
17862 | if (PyErr_Occurred()) SWIG_fail; | |
17863 | } | |
17864 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17865 | return resultobj; | |
17866 | fail: | |
17867 | return NULL; | |
17868 | } | |
17869 | ||
17870 | ||
17871 | static PyObject *_wrap_DateTime_SetDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17872 | PyObject *resultobj; | |
17873 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17874 | int arg2 ; | |
17875 | wxDateTime *result; | |
17876 | PyObject * obj0 = 0 ; | |
17877 | PyObject * obj1 = 0 ; | |
17878 | char *kwnames[] = { | |
17879 | (char *) "self",(char *) "day", NULL | |
17880 | }; | |
17881 | ||
17882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetDay",kwnames,&obj0,&obj1)) goto fail; | |
17883 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17885 | arg2 = (int) SWIG_AsInt(obj1); | |
17886 | if (PyErr_Occurred()) SWIG_fail; | |
17887 | { | |
17888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17889 | { | |
17890 | wxDateTime &_result_ref = (arg1)->SetDay(arg2); | |
17891 | result = (wxDateTime *) &_result_ref; | |
17892 | } | |
17893 | ||
17894 | wxPyEndAllowThreads(__tstate); | |
17895 | if (PyErr_Occurred()) SWIG_fail; | |
17896 | } | |
17897 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17898 | return resultobj; | |
17899 | fail: | |
17900 | return NULL; | |
17901 | } | |
17902 | ||
17903 | ||
17904 | static PyObject *_wrap_DateTime_SetHour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17905 | PyObject *resultobj; | |
17906 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17907 | int arg2 ; | |
17908 | wxDateTime *result; | |
17909 | PyObject * obj0 = 0 ; | |
17910 | PyObject * obj1 = 0 ; | |
17911 | char *kwnames[] = { | |
17912 | (char *) "self",(char *) "hour", NULL | |
17913 | }; | |
17914 | ||
17915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetHour",kwnames,&obj0,&obj1)) goto fail; | |
17916 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17917 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17918 | arg2 = (int) SWIG_AsInt(obj1); | |
17919 | if (PyErr_Occurred()) SWIG_fail; | |
17920 | { | |
17921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17922 | { | |
17923 | wxDateTime &_result_ref = (arg1)->SetHour(arg2); | |
17924 | result = (wxDateTime *) &_result_ref; | |
17925 | } | |
17926 | ||
17927 | wxPyEndAllowThreads(__tstate); | |
17928 | if (PyErr_Occurred()) SWIG_fail; | |
17929 | } | |
17930 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17931 | return resultobj; | |
17932 | fail: | |
17933 | return NULL; | |
17934 | } | |
17935 | ||
17936 | ||
17937 | static PyObject *_wrap_DateTime_SetMinute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17938 | PyObject *resultobj; | |
17939 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17940 | int arg2 ; | |
17941 | wxDateTime *result; | |
17942 | PyObject * obj0 = 0 ; | |
17943 | PyObject * obj1 = 0 ; | |
17944 | char *kwnames[] = { | |
17945 | (char *) "self",(char *) "minute", NULL | |
17946 | }; | |
17947 | ||
17948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMinute",kwnames,&obj0,&obj1)) goto fail; | |
17949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17951 | arg2 = (int) SWIG_AsInt(obj1); | |
17952 | if (PyErr_Occurred()) SWIG_fail; | |
17953 | { | |
17954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17955 | { | |
17956 | wxDateTime &_result_ref = (arg1)->SetMinute(arg2); | |
17957 | result = (wxDateTime *) &_result_ref; | |
17958 | } | |
17959 | ||
17960 | wxPyEndAllowThreads(__tstate); | |
17961 | if (PyErr_Occurred()) SWIG_fail; | |
17962 | } | |
17963 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17964 | return resultobj; | |
17965 | fail: | |
17966 | return NULL; | |
17967 | } | |
17968 | ||
17969 | ||
17970 | static PyObject *_wrap_DateTime_SetSecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17971 | PyObject *resultobj; | |
17972 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17973 | int arg2 ; | |
17974 | wxDateTime *result; | |
17975 | PyObject * obj0 = 0 ; | |
17976 | PyObject * obj1 = 0 ; | |
17977 | char *kwnames[] = { | |
17978 | (char *) "self",(char *) "second", NULL | |
17979 | }; | |
17980 | ||
17981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetSecond",kwnames,&obj0,&obj1)) goto fail; | |
17982 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17984 | arg2 = (int) SWIG_AsInt(obj1); | |
17985 | if (PyErr_Occurred()) SWIG_fail; | |
17986 | { | |
17987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17988 | { | |
17989 | wxDateTime &_result_ref = (arg1)->SetSecond(arg2); | |
17990 | result = (wxDateTime *) &_result_ref; | |
17991 | } | |
17992 | ||
17993 | wxPyEndAllowThreads(__tstate); | |
17994 | if (PyErr_Occurred()) SWIG_fail; | |
17995 | } | |
17996 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17997 | return resultobj; | |
17998 | fail: | |
17999 | return NULL; | |
18000 | } | |
18001 | ||
18002 | ||
18003 | static PyObject *_wrap_DateTime_SetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18004 | PyObject *resultobj; | |
18005 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18006 | int arg2 ; | |
18007 | wxDateTime *result; | |
18008 | PyObject * obj0 = 0 ; | |
18009 | PyObject * obj1 = 0 ; | |
18010 | char *kwnames[] = { | |
18011 | (char *) "self",(char *) "millisecond", NULL | |
18012 | }; | |
18013 | ||
18014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMillisecond",kwnames,&obj0,&obj1)) goto fail; | |
18015 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18016 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18017 | arg2 = (int) SWIG_AsInt(obj1); | |
18018 | if (PyErr_Occurred()) SWIG_fail; | |
18019 | { | |
18020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18021 | { | |
18022 | wxDateTime &_result_ref = (arg1)->SetMillisecond(arg2); | |
18023 | result = (wxDateTime *) &_result_ref; | |
18024 | } | |
18025 | ||
18026 | wxPyEndAllowThreads(__tstate); | |
18027 | if (PyErr_Occurred()) SWIG_fail; | |
18028 | } | |
18029 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18030 | return resultobj; | |
18031 | fail: | |
18032 | return NULL; | |
18033 | } | |
18034 | ||
18035 | ||
18036 | static PyObject *_wrap_DateTime_SetToWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18037 | PyObject *resultobj; | |
18038 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18039 | int arg2 ; | |
18040 | int arg3 = (int) wxDateTime::Monday_First ; | |
18041 | wxDateTime *result; | |
18042 | PyObject * obj0 = 0 ; | |
18043 | PyObject * obj1 = 0 ; | |
18044 | PyObject * obj2 = 0 ; | |
18045 | char *kwnames[] = { | |
18046 | (char *) "self",(char *) "weekday",(char *) "flags", NULL | |
18047 | }; | |
18048 | ||
18049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18050 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18051 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18052 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18053 | if (PyErr_Occurred()) SWIG_fail; | |
18054 | if (obj2) { | |
18055 | arg3 = (wxDateTime::WeekFlags) SWIG_AsInt(obj2); | |
18056 | if (PyErr_Occurred()) SWIG_fail; | |
18057 | } | |
18058 | { | |
18059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18060 | { | |
18061 | wxDateTime &_result_ref = (arg1)->SetToWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3); | |
18062 | result = (wxDateTime *) &_result_ref; | |
18063 | } | |
18064 | ||
18065 | wxPyEndAllowThreads(__tstate); | |
18066 | if (PyErr_Occurred()) SWIG_fail; | |
18067 | } | |
18068 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18069 | return resultobj; | |
18070 | fail: | |
18071 | return NULL; | |
18072 | } | |
18073 | ||
18074 | ||
18075 | static PyObject *_wrap_DateTime_GetWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18076 | PyObject *resultobj; | |
18077 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18078 | int arg2 ; | |
18079 | int arg3 = (int) wxDateTime::Monday_First ; | |
18080 | wxDateTime result; | |
18081 | PyObject * obj0 = 0 ; | |
18082 | PyObject * obj1 = 0 ; | |
18083 | PyObject * obj2 = 0 ; | |
18084 | char *kwnames[] = { | |
18085 | (char *) "self",(char *) "weekday",(char *) "flags", NULL | |
18086 | }; | |
18087 | ||
18088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_GetWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18089 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18090 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18091 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18092 | if (PyErr_Occurred()) SWIG_fail; | |
18093 | if (obj2) { | |
18094 | arg3 = (wxDateTime::WeekFlags) SWIG_AsInt(obj2); | |
18095 | if (PyErr_Occurred()) SWIG_fail; | |
18096 | } | |
18097 | { | |
18098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18099 | result = (arg1)->GetWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3); | |
18100 | ||
18101 | wxPyEndAllowThreads(__tstate); | |
18102 | if (PyErr_Occurred()) SWIG_fail; | |
18103 | } | |
18104 | { | |
18105 | wxDateTime * resultptr; | |
18106 | resultptr = new wxDateTime((wxDateTime &) result); | |
18107 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18108 | } | |
18109 | return resultobj; | |
18110 | fail: | |
18111 | return NULL; | |
18112 | } | |
18113 | ||
18114 | ||
18115 | static PyObject *_wrap_DateTime_SetToNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18116 | PyObject *resultobj; | |
18117 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18118 | int arg2 ; | |
18119 | wxDateTime *result; | |
18120 | PyObject * obj0 = 0 ; | |
18121 | PyObject * obj1 = 0 ; | |
18122 | char *kwnames[] = { | |
18123 | (char *) "self",(char *) "weekday", NULL | |
18124 | }; | |
18125 | ||
18126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToNextWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
18127 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18129 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18130 | if (PyErr_Occurred()) SWIG_fail; | |
18131 | { | |
18132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18133 | { | |
18134 | wxDateTime &_result_ref = (arg1)->SetToNextWeekDay((wxDateTime::WeekDay )arg2); | |
18135 | result = (wxDateTime *) &_result_ref; | |
18136 | } | |
18137 | ||
18138 | wxPyEndAllowThreads(__tstate); | |
18139 | if (PyErr_Occurred()) SWIG_fail; | |
18140 | } | |
18141 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18142 | return resultobj; | |
18143 | fail: | |
18144 | return NULL; | |
18145 | } | |
18146 | ||
18147 | ||
18148 | static PyObject *_wrap_DateTime_GetNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18149 | PyObject *resultobj; | |
18150 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18151 | int arg2 ; | |
18152 | wxDateTime result; | |
18153 | PyObject * obj0 = 0 ; | |
18154 | PyObject * obj1 = 0 ; | |
18155 | char *kwnames[] = { | |
18156 | (char *) "self",(char *) "weekday", NULL | |
18157 | }; | |
18158 | ||
18159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetNextWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
18160 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18161 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18162 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18163 | if (PyErr_Occurred()) SWIG_fail; | |
18164 | { | |
18165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18166 | result = (arg1)->GetNextWeekDay((wxDateTime::WeekDay )arg2); | |
18167 | ||
18168 | wxPyEndAllowThreads(__tstate); | |
18169 | if (PyErr_Occurred()) SWIG_fail; | |
18170 | } | |
18171 | { | |
18172 | wxDateTime * resultptr; | |
18173 | resultptr = new wxDateTime((wxDateTime &) result); | |
18174 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18175 | } | |
18176 | return resultobj; | |
18177 | fail: | |
18178 | return NULL; | |
18179 | } | |
18180 | ||
18181 | ||
18182 | static PyObject *_wrap_DateTime_SetToPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18183 | PyObject *resultobj; | |
18184 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18185 | int arg2 ; | |
18186 | wxDateTime *result; | |
18187 | PyObject * obj0 = 0 ; | |
18188 | PyObject * obj1 = 0 ; | |
18189 | char *kwnames[] = { | |
18190 | (char *) "self",(char *) "weekday", NULL | |
18191 | }; | |
18192 | ||
18193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToPrevWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
18194 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18195 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18196 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18197 | if (PyErr_Occurred()) SWIG_fail; | |
18198 | { | |
18199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18200 | { | |
18201 | wxDateTime &_result_ref = (arg1)->SetToPrevWeekDay((wxDateTime::WeekDay )arg2); | |
18202 | result = (wxDateTime *) &_result_ref; | |
18203 | } | |
18204 | ||
18205 | wxPyEndAllowThreads(__tstate); | |
18206 | if (PyErr_Occurred()) SWIG_fail; | |
18207 | } | |
18208 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18209 | return resultobj; | |
18210 | fail: | |
18211 | return NULL; | |
18212 | } | |
18213 | ||
18214 | ||
18215 | static PyObject *_wrap_DateTime_GetPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18216 | PyObject *resultobj; | |
18217 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18218 | int arg2 ; | |
18219 | wxDateTime result; | |
18220 | PyObject * obj0 = 0 ; | |
18221 | PyObject * obj1 = 0 ; | |
18222 | char *kwnames[] = { | |
18223 | (char *) "self",(char *) "weekday", NULL | |
18224 | }; | |
18225 | ||
18226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetPrevWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
18227 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18228 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18229 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18230 | if (PyErr_Occurred()) SWIG_fail; | |
18231 | { | |
18232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18233 | result = (arg1)->GetPrevWeekDay((wxDateTime::WeekDay )arg2); | |
18234 | ||
18235 | wxPyEndAllowThreads(__tstate); | |
18236 | if (PyErr_Occurred()) SWIG_fail; | |
18237 | } | |
18238 | { | |
18239 | wxDateTime * resultptr; | |
18240 | resultptr = new wxDateTime((wxDateTime &) result); | |
18241 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18242 | } | |
18243 | return resultobj; | |
18244 | fail: | |
18245 | return NULL; | |
18246 | } | |
18247 | ||
18248 | ||
18249 | static PyObject *_wrap_DateTime_SetToWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18250 | PyObject *resultobj; | |
18251 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18252 | int arg2 ; | |
18253 | int arg3 = (int) 1 ; | |
18254 | int arg4 = (int) wxDateTime::Inv_Month ; | |
18255 | int arg5 = (int) wxDateTime::Inv_Year ; | |
18256 | bool result; | |
18257 | PyObject * obj0 = 0 ; | |
18258 | PyObject * obj1 = 0 ; | |
18259 | PyObject * obj2 = 0 ; | |
18260 | PyObject * obj3 = 0 ; | |
18261 | PyObject * obj4 = 0 ; | |
18262 | char *kwnames[] = { | |
18263 | (char *) "self",(char *) "weekday",(char *) "n",(char *) "month",(char *) "year", NULL | |
18264 | }; | |
18265 | ||
18266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetToWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
18267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18269 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18270 | if (PyErr_Occurred()) SWIG_fail; | |
18271 | if (obj2) { | |
18272 | arg3 = (int) SWIG_AsInt(obj2); | |
18273 | if (PyErr_Occurred()) SWIG_fail; | |
18274 | } | |
18275 | if (obj3) { | |
18276 | arg4 = (wxDateTime::Month) SWIG_AsInt(obj3); | |
18277 | if (PyErr_Occurred()) SWIG_fail; | |
18278 | } | |
18279 | if (obj4) { | |
18280 | arg5 = (int) SWIG_AsInt(obj4); | |
18281 | if (PyErr_Occurred()) SWIG_fail; | |
18282 | } | |
18283 | { | |
18284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18285 | result = (bool)(arg1)->SetToWeekDay((wxDateTime::WeekDay )arg2,arg3,(wxDateTime::Month )arg4,arg5); | |
18286 | ||
18287 | wxPyEndAllowThreads(__tstate); | |
18288 | if (PyErr_Occurred()) SWIG_fail; | |
18289 | } | |
18290 | { | |
18291 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18292 | } | |
18293 | return resultobj; | |
18294 | fail: | |
18295 | return NULL; | |
18296 | } | |
18297 | ||
18298 | ||
18299 | static PyObject *_wrap_DateTime_SetToLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18300 | PyObject *resultobj; | |
18301 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18302 | int arg2 ; | |
18303 | int arg3 = (int) wxDateTime::Inv_Month ; | |
18304 | int arg4 = (int) wxDateTime::Inv_Year ; | |
18305 | bool result; | |
18306 | PyObject * obj0 = 0 ; | |
18307 | PyObject * obj1 = 0 ; | |
18308 | PyObject * obj2 = 0 ; | |
18309 | PyObject * obj3 = 0 ; | |
18310 | char *kwnames[] = { | |
18311 | (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL | |
18312 | }; | |
18313 | ||
18314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
18315 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18317 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18318 | if (PyErr_Occurred()) SWIG_fail; | |
18319 | if (obj2) { | |
18320 | arg3 = (wxDateTime::Month) SWIG_AsInt(obj2); | |
18321 | if (PyErr_Occurred()) SWIG_fail; | |
18322 | } | |
18323 | if (obj3) { | |
18324 | arg4 = (int) SWIG_AsInt(obj3); | |
18325 | if (PyErr_Occurred()) SWIG_fail; | |
18326 | } | |
18327 | { | |
18328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18329 | result = (bool)(arg1)->SetToLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4); | |
18330 | ||
18331 | wxPyEndAllowThreads(__tstate); | |
18332 | if (PyErr_Occurred()) SWIG_fail; | |
18333 | } | |
18334 | { | |
18335 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18336 | } | |
18337 | return resultobj; | |
18338 | fail: | |
18339 | return NULL; | |
18340 | } | |
18341 | ||
18342 | ||
18343 | static PyObject *_wrap_DateTime_GetLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18344 | PyObject *resultobj; | |
18345 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18346 | int arg2 ; | |
18347 | int arg3 = (int) wxDateTime::Inv_Month ; | |
18348 | int arg4 = (int) wxDateTime::Inv_Year ; | |
18349 | wxDateTime result; | |
18350 | PyObject * obj0 = 0 ; | |
18351 | PyObject * obj1 = 0 ; | |
18352 | PyObject * obj2 = 0 ; | |
18353 | PyObject * obj3 = 0 ; | |
18354 | char *kwnames[] = { | |
18355 | (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL | |
18356 | }; | |
18357 | ||
18358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
18359 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18361 | arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1); | |
18362 | if (PyErr_Occurred()) SWIG_fail; | |
18363 | if (obj2) { | |
18364 | arg3 = (wxDateTime::Month) SWIG_AsInt(obj2); | |
18365 | if (PyErr_Occurred()) SWIG_fail; | |
18366 | } | |
18367 | if (obj3) { | |
18368 | arg4 = (int) SWIG_AsInt(obj3); | |
18369 | if (PyErr_Occurred()) SWIG_fail; | |
18370 | } | |
18371 | { | |
18372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18373 | result = (arg1)->GetLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4); | |
18374 | ||
18375 | wxPyEndAllowThreads(__tstate); | |
18376 | if (PyErr_Occurred()) SWIG_fail; | |
18377 | } | |
18378 | { | |
18379 | wxDateTime * resultptr; | |
18380 | resultptr = new wxDateTime((wxDateTime &) result); | |
18381 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18382 | } | |
18383 | return resultobj; | |
18384 | fail: | |
18385 | return NULL; | |
18386 | } | |
18387 | ||
18388 | ||
18389 | static PyObject *_wrap_DateTime_SetToTheWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18390 | PyObject *resultobj; | |
18391 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18392 | int arg2 ; | |
18393 | int arg3 = (int) wxDateTime::Mon ; | |
18394 | int arg4 = (int) wxDateTime::Monday_First ; | |
18395 | bool result; | |
18396 | PyObject * obj0 = 0 ; | |
18397 | PyObject * obj1 = 0 ; | |
18398 | PyObject * obj2 = 0 ; | |
18399 | PyObject * obj3 = 0 ; | |
18400 | char *kwnames[] = { | |
18401 | (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL | |
18402 | }; | |
18403 | ||
18404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToTheWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
18405 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18406 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18407 | arg2 = (int) SWIG_AsInt(obj1); | |
18408 | if (PyErr_Occurred()) SWIG_fail; | |
18409 | if (obj2) { | |
18410 | arg3 = (wxDateTime::WeekDay) SWIG_AsInt(obj2); | |
18411 | if (PyErr_Occurred()) SWIG_fail; | |
18412 | } | |
18413 | if (obj3) { | |
18414 | arg4 = (wxDateTime::WeekFlags) SWIG_AsInt(obj3); | |
18415 | if (PyErr_Occurred()) SWIG_fail; | |
18416 | } | |
18417 | { | |
18418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18419 | result = (bool)(arg1)->SetToTheWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4); | |
18420 | ||
18421 | wxPyEndAllowThreads(__tstate); | |
18422 | if (PyErr_Occurred()) SWIG_fail; | |
18423 | } | |
18424 | { | |
18425 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18426 | } | |
18427 | return resultobj; | |
18428 | fail: | |
18429 | return NULL; | |
18430 | } | |
18431 | ||
18432 | ||
18433 | static PyObject *_wrap_DateTime_GetWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18434 | PyObject *resultobj; | |
18435 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18436 | int arg2 ; | |
18437 | int arg3 = (int) wxDateTime::Mon ; | |
18438 | int arg4 = (int) wxDateTime::Monday_First ; | |
18439 | wxDateTime result; | |
18440 | PyObject * obj0 = 0 ; | |
18441 | PyObject * obj1 = 0 ; | |
18442 | PyObject * obj2 = 0 ; | |
18443 | PyObject * obj3 = 0 ; | |
18444 | char *kwnames[] = { | |
18445 | (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL | |
18446 | }; | |
18447 | ||
18448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
18449 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18450 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18451 | arg2 = (int) SWIG_AsInt(obj1); | |
18452 | if (PyErr_Occurred()) SWIG_fail; | |
18453 | if (obj2) { | |
18454 | arg3 = (wxDateTime::WeekDay) SWIG_AsInt(obj2); | |
18455 | if (PyErr_Occurred()) SWIG_fail; | |
18456 | } | |
18457 | if (obj3) { | |
18458 | arg4 = (wxDateTime::WeekFlags) SWIG_AsInt(obj3); | |
18459 | if (PyErr_Occurred()) SWIG_fail; | |
18460 | } | |
18461 | { | |
18462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18463 | result = (arg1)->GetWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4); | |
18464 | ||
18465 | wxPyEndAllowThreads(__tstate); | |
18466 | if (PyErr_Occurred()) SWIG_fail; | |
18467 | } | |
18468 | { | |
18469 | wxDateTime * resultptr; | |
18470 | resultptr = new wxDateTime((wxDateTime &) result); | |
18471 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18472 | } | |
18473 | return resultobj; | |
18474 | fail: | |
18475 | return NULL; | |
18476 | } | |
18477 | ||
18478 | ||
18479 | static PyObject *_wrap_DateTime_SetToLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18480 | PyObject *resultobj; | |
18481 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18482 | int arg2 = (int) wxDateTime::Inv_Month ; | |
18483 | int arg3 = (int) wxDateTime::Inv_Year ; | |
18484 | wxDateTime *result; | |
18485 | PyObject * obj0 = 0 ; | |
18486 | PyObject * obj1 = 0 ; | |
18487 | PyObject * obj2 = 0 ; | |
18488 | char *kwnames[] = { | |
18489 | (char *) "self",(char *) "month",(char *) "year", NULL | |
18490 | }; | |
18491 | ||
18492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_SetToLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18493 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18494 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18495 | if (obj1) { | |
18496 | arg2 = (wxDateTime::Month) SWIG_AsInt(obj1); | |
18497 | if (PyErr_Occurred()) SWIG_fail; | |
18498 | } | |
18499 | if (obj2) { | |
18500 | arg3 = (int) SWIG_AsInt(obj2); | |
18501 | if (PyErr_Occurred()) SWIG_fail; | |
18502 | } | |
18503 | { | |
18504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18505 | { | |
18506 | wxDateTime &_result_ref = (arg1)->SetToLastMonthDay((wxDateTime::Month )arg2,arg3); | |
18507 | result = (wxDateTime *) &_result_ref; | |
18508 | } | |
18509 | ||
18510 | wxPyEndAllowThreads(__tstate); | |
18511 | if (PyErr_Occurred()) SWIG_fail; | |
18512 | } | |
18513 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18514 | return resultobj; | |
18515 | fail: | |
18516 | return NULL; | |
18517 | } | |
18518 | ||
18519 | ||
18520 | static PyObject *_wrap_DateTime_GetLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18521 | PyObject *resultobj; | |
18522 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18523 | int arg2 = (int) wxDateTime::Inv_Month ; | |
18524 | int arg3 = (int) wxDateTime::Inv_Year ; | |
18525 | wxDateTime result; | |
18526 | PyObject * obj0 = 0 ; | |
18527 | PyObject * obj1 = 0 ; | |
18528 | PyObject * obj2 = 0 ; | |
18529 | char *kwnames[] = { | |
18530 | (char *) "self",(char *) "month",(char *) "year", NULL | |
18531 | }; | |
18532 | ||
18533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18534 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18535 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18536 | if (obj1) { | |
18537 | arg2 = (wxDateTime::Month) SWIG_AsInt(obj1); | |
18538 | if (PyErr_Occurred()) SWIG_fail; | |
18539 | } | |
18540 | if (obj2) { | |
18541 | arg3 = (int) SWIG_AsInt(obj2); | |
18542 | if (PyErr_Occurred()) SWIG_fail; | |
18543 | } | |
18544 | { | |
18545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18546 | result = (arg1)->GetLastMonthDay((wxDateTime::Month )arg2,arg3); | |
18547 | ||
18548 | wxPyEndAllowThreads(__tstate); | |
18549 | if (PyErr_Occurred()) SWIG_fail; | |
18550 | } | |
18551 | { | |
18552 | wxDateTime * resultptr; | |
18553 | resultptr = new wxDateTime((wxDateTime &) result); | |
18554 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18555 | } | |
18556 | return resultobj; | |
18557 | fail: | |
18558 | return NULL; | |
18559 | } | |
18560 | ||
18561 | ||
18562 | static PyObject *_wrap_DateTime_SetToYearDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18563 | PyObject *resultobj; | |
18564 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18565 | int arg2 ; | |
18566 | wxDateTime *result; | |
18567 | PyObject * obj0 = 0 ; | |
18568 | PyObject * obj1 = 0 ; | |
18569 | char *kwnames[] = { | |
18570 | (char *) "self",(char *) "yday", NULL | |
18571 | }; | |
18572 | ||
18573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToYearDay",kwnames,&obj0,&obj1)) goto fail; | |
18574 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18575 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18576 | arg2 = (int) SWIG_AsInt(obj1); | |
18577 | if (PyErr_Occurred()) SWIG_fail; | |
18578 | { | |
18579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18580 | { | |
18581 | wxDateTime &_result_ref = (arg1)->SetToYearDay(arg2); | |
18582 | result = (wxDateTime *) &_result_ref; | |
18583 | } | |
18584 | ||
18585 | wxPyEndAllowThreads(__tstate); | |
18586 | if (PyErr_Occurred()) SWIG_fail; | |
18587 | } | |
18588 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18589 | return resultobj; | |
18590 | fail: | |
18591 | return NULL; | |
18592 | } | |
18593 | ||
18594 | ||
18595 | static PyObject *_wrap_DateTime_GetYearDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18596 | PyObject *resultobj; | |
18597 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18598 | int arg2 ; | |
18599 | wxDateTime result; | |
18600 | PyObject * obj0 = 0 ; | |
18601 | PyObject * obj1 = 0 ; | |
18602 | char *kwnames[] = { | |
18603 | (char *) "self",(char *) "yday", NULL | |
18604 | }; | |
18605 | ||
18606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetYearDay",kwnames,&obj0,&obj1)) goto fail; | |
18607 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18608 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18609 | arg2 = (int) SWIG_AsInt(obj1); | |
18610 | if (PyErr_Occurred()) SWIG_fail; | |
18611 | { | |
18612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18613 | result = (arg1)->GetYearDay(arg2); | |
18614 | ||
18615 | wxPyEndAllowThreads(__tstate); | |
18616 | if (PyErr_Occurred()) SWIG_fail; | |
18617 | } | |
18618 | { | |
18619 | wxDateTime * resultptr; | |
18620 | resultptr = new wxDateTime((wxDateTime &) result); | |
18621 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18622 | } | |
18623 | return resultobj; | |
18624 | fail: | |
18625 | return NULL; | |
18626 | } | |
18627 | ||
18628 | ||
18629 | static PyObject *_wrap_DateTime_GetJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18630 | PyObject *resultobj; | |
18631 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18632 | double result; | |
18633 | PyObject * obj0 = 0 ; | |
18634 | char *kwnames[] = { | |
18635 | (char *) "self", NULL | |
18636 | }; | |
18637 | ||
18638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJulianDayNumber",kwnames,&obj0)) goto fail; | |
18639 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18640 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18641 | { | |
18642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18643 | result = (double)(arg1)->GetJulianDayNumber(); | |
18644 | ||
18645 | wxPyEndAllowThreads(__tstate); | |
18646 | if (PyErr_Occurred()) SWIG_fail; | |
18647 | } | |
18648 | resultobj = SWIG_FromDouble((double)result); | |
18649 | return resultobj; | |
18650 | fail: | |
18651 | return NULL; | |
18652 | } | |
18653 | ||
18654 | ||
18655 | static PyObject *_wrap_DateTime_GetJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18656 | PyObject *resultobj; | |
18657 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18658 | double result; | |
18659 | PyObject * obj0 = 0 ; | |
18660 | char *kwnames[] = { | |
18661 | (char *) "self", NULL | |
18662 | }; | |
18663 | ||
18664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJDN",kwnames,&obj0)) goto fail; | |
18665 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18666 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18667 | { | |
18668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18669 | result = (double)(arg1)->GetJDN(); | |
18670 | ||
18671 | wxPyEndAllowThreads(__tstate); | |
18672 | if (PyErr_Occurred()) SWIG_fail; | |
18673 | } | |
18674 | resultobj = SWIG_FromDouble((double)result); | |
18675 | return resultobj; | |
18676 | fail: | |
18677 | return NULL; | |
18678 | } | |
18679 | ||
18680 | ||
18681 | static PyObject *_wrap_DateTime_GetModifiedJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18682 | PyObject *resultobj; | |
18683 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18684 | double result; | |
18685 | PyObject * obj0 = 0 ; | |
18686 | char *kwnames[] = { | |
18687 | (char *) "self", NULL | |
18688 | }; | |
18689 | ||
18690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetModifiedJulianDayNumber",kwnames,&obj0)) goto fail; | |
18691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18693 | { | |
18694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18695 | result = (double)((wxDateTime const *)arg1)->GetModifiedJulianDayNumber(); | |
18696 | ||
18697 | wxPyEndAllowThreads(__tstate); | |
18698 | if (PyErr_Occurred()) SWIG_fail; | |
18699 | } | |
18700 | resultobj = SWIG_FromDouble((double)result); | |
18701 | return resultobj; | |
18702 | fail: | |
18703 | return NULL; | |
18704 | } | |
18705 | ||
18706 | ||
18707 | static PyObject *_wrap_DateTime_GetMJD(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18708 | PyObject *resultobj; | |
18709 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18710 | double result; | |
18711 | PyObject * obj0 = 0 ; | |
18712 | char *kwnames[] = { | |
18713 | (char *) "self", NULL | |
18714 | }; | |
18715 | ||
18716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetMJD",kwnames,&obj0)) goto fail; | |
18717 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18718 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18719 | { | |
18720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18721 | result = (double)(arg1)->GetMJD(); | |
18722 | ||
18723 | wxPyEndAllowThreads(__tstate); | |
18724 | if (PyErr_Occurred()) SWIG_fail; | |
18725 | } | |
18726 | resultobj = SWIG_FromDouble((double)result); | |
18727 | return resultobj; | |
18728 | fail: | |
18729 | return NULL; | |
18730 | } | |
18731 | ||
18732 | ||
18733 | static PyObject *_wrap_DateTime_GetRataDie(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18734 | PyObject *resultobj; | |
18735 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18736 | double result; | |
18737 | PyObject * obj0 = 0 ; | |
18738 | char *kwnames[] = { | |
18739 | (char *) "self", NULL | |
18740 | }; | |
18741 | ||
18742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetRataDie",kwnames,&obj0)) goto fail; | |
18743 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18744 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18745 | { | |
18746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18747 | result = (double)(arg1)->GetRataDie(); | |
18748 | ||
18749 | wxPyEndAllowThreads(__tstate); | |
18750 | if (PyErr_Occurred()) SWIG_fail; | |
18751 | } | |
18752 | resultobj = SWIG_FromDouble((double)result); | |
18753 | return resultobj; | |
18754 | fail: | |
18755 | return NULL; | |
18756 | } | |
18757 | ||
18758 | ||
18759 | static PyObject *_wrap_DateTime_ToTimezone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18760 | PyObject *resultobj; | |
18761 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18762 | wxDateTime::TimeZone *arg2 = 0 ; | |
18763 | bool arg3 = (bool) False ; | |
18764 | wxDateTime result; | |
18765 | bool temp2 = False ; | |
18766 | PyObject * obj0 = 0 ; | |
18767 | PyObject * obj1 = 0 ; | |
18768 | PyObject * obj2 = 0 ; | |
18769 | char *kwnames[] = { | |
18770 | (char *) "self",(char *) "tz",(char *) "noDST", NULL | |
18771 | }; | |
18772 | ||
18773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_ToTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18774 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18775 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18776 | { | |
18777 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
18778 | temp2 = True; | |
18779 | } | |
18780 | if (obj2) { | |
18781 | arg3 = (bool) SWIG_AsBool(obj2); | |
18782 | if (PyErr_Occurred()) SWIG_fail; | |
18783 | } | |
18784 | { | |
18785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18786 | result = (arg1)->ToTimezone((wxDateTime::TimeZone const &)*arg2,arg3); | |
18787 | ||
18788 | wxPyEndAllowThreads(__tstate); | |
18789 | if (PyErr_Occurred()) SWIG_fail; | |
18790 | } | |
18791 | { | |
18792 | wxDateTime * resultptr; | |
18793 | resultptr = new wxDateTime((wxDateTime &) result); | |
18794 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18795 | } | |
18796 | { | |
18797 | if (temp2) delete arg2; | |
18798 | } | |
18799 | return resultobj; | |
18800 | fail: | |
18801 | { | |
18802 | if (temp2) delete arg2; | |
18803 | } | |
18804 | return NULL; | |
18805 | } | |
18806 | ||
18807 | ||
18808 | static PyObject *_wrap_DateTime_MakeTimezone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18809 | PyObject *resultobj; | |
18810 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18811 | wxDateTime::TimeZone *arg2 = 0 ; | |
18812 | bool arg3 = (bool) False ; | |
18813 | wxDateTime *result; | |
18814 | bool temp2 = False ; | |
18815 | PyObject * obj0 = 0 ; | |
18816 | PyObject * obj1 = 0 ; | |
18817 | PyObject * obj2 = 0 ; | |
18818 | char *kwnames[] = { | |
18819 | (char *) "self",(char *) "tz",(char *) "noDST", NULL | |
18820 | }; | |
18821 | ||
18822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18823 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18824 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18825 | { | |
18826 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
18827 | temp2 = True; | |
18828 | } | |
18829 | if (obj2) { | |
18830 | arg3 = (bool) SWIG_AsBool(obj2); | |
18831 | if (PyErr_Occurred()) SWIG_fail; | |
18832 | } | |
18833 | { | |
18834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18835 | { | |
18836 | wxDateTime &_result_ref = (arg1)->MakeTimezone((wxDateTime::TimeZone const &)*arg2,arg3); | |
18837 | result = (wxDateTime *) &_result_ref; | |
18838 | } | |
18839 | ||
18840 | wxPyEndAllowThreads(__tstate); | |
18841 | if (PyErr_Occurred()) SWIG_fail; | |
18842 | } | |
18843 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18844 | { | |
18845 | if (temp2) delete arg2; | |
18846 | } | |
18847 | return resultobj; | |
18848 | fail: | |
18849 | { | |
18850 | if (temp2) delete arg2; | |
18851 | } | |
18852 | return NULL; | |
18853 | } | |
18854 | ||
18855 | ||
18856 | static PyObject *_wrap_DateTime_ToGMT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18857 | PyObject *resultobj; | |
18858 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18859 | bool arg2 = (bool) False ; | |
18860 | wxDateTime result; | |
18861 | PyObject * obj0 = 0 ; | |
18862 | PyObject * obj1 = 0 ; | |
18863 | char *kwnames[] = { | |
18864 | (char *) "self",(char *) "noDST", NULL | |
18865 | }; | |
18866 | ||
18867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToGMT",kwnames,&obj0,&obj1)) goto fail; | |
18868 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18869 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18870 | if (obj1) { | |
18871 | arg2 = (bool) SWIG_AsBool(obj1); | |
18872 | if (PyErr_Occurred()) SWIG_fail; | |
18873 | } | |
18874 | { | |
18875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18876 | result = (arg1)->ToGMT(arg2); | |
18877 | ||
18878 | wxPyEndAllowThreads(__tstate); | |
18879 | if (PyErr_Occurred()) SWIG_fail; | |
18880 | } | |
18881 | { | |
18882 | wxDateTime * resultptr; | |
18883 | resultptr = new wxDateTime((wxDateTime &) result); | |
18884 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18885 | } | |
18886 | return resultobj; | |
18887 | fail: | |
18888 | return NULL; | |
18889 | } | |
18890 | ||
18891 | ||
18892 | static PyObject *_wrap_DateTime_MakeGMT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18893 | PyObject *resultobj; | |
18894 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18895 | bool arg2 = (bool) False ; | |
18896 | wxDateTime *result; | |
18897 | PyObject * obj0 = 0 ; | |
18898 | PyObject * obj1 = 0 ; | |
18899 | char *kwnames[] = { | |
18900 | (char *) "self",(char *) "noDST", NULL | |
18901 | }; | |
18902 | ||
18903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeGMT",kwnames,&obj0,&obj1)) goto fail; | |
18904 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18905 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18906 | if (obj1) { | |
18907 | arg2 = (bool) SWIG_AsBool(obj1); | |
18908 | if (PyErr_Occurred()) SWIG_fail; | |
18909 | } | |
18910 | { | |
18911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18912 | { | |
18913 | wxDateTime &_result_ref = (arg1)->MakeGMT(arg2); | |
18914 | result = (wxDateTime *) &_result_ref; | |
18915 | } | |
18916 | ||
18917 | wxPyEndAllowThreads(__tstate); | |
18918 | if (PyErr_Occurred()) SWIG_fail; | |
18919 | } | |
18920 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18921 | return resultobj; | |
18922 | fail: | |
18923 | return NULL; | |
18924 | } | |
18925 | ||
18926 | ||
18927 | static PyObject *_wrap_DateTime_IsDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18928 | PyObject *resultobj; | |
18929 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18930 | int arg2 = (int) wxDateTime::Country_Default ; | |
18931 | int result; | |
18932 | PyObject * obj0 = 0 ; | |
18933 | PyObject * obj1 = 0 ; | |
18934 | char *kwnames[] = { | |
18935 | (char *) "self",(char *) "country", NULL | |
18936 | }; | |
18937 | ||
18938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsDST",kwnames,&obj0,&obj1)) goto fail; | |
18939 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18940 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18941 | if (obj1) { | |
18942 | arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); | |
18943 | if (PyErr_Occurred()) SWIG_fail; | |
18944 | } | |
18945 | { | |
18946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18947 | result = (int)(arg1)->IsDST((wxDateTime::Country )arg2); | |
18948 | ||
18949 | wxPyEndAllowThreads(__tstate); | |
18950 | if (PyErr_Occurred()) SWIG_fail; | |
18951 | } | |
18952 | resultobj = SWIG_FromInt((int)result); | |
18953 | return resultobj; | |
18954 | fail: | |
18955 | return NULL; | |
18956 | } | |
18957 | ||
18958 | ||
18959 | static PyObject *_wrap_DateTime_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18960 | PyObject *resultobj; | |
18961 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18962 | bool result; | |
18963 | PyObject * obj0 = 0 ; | |
18964 | char *kwnames[] = { | |
18965 | (char *) "self", NULL | |
18966 | }; | |
18967 | ||
18968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_IsValid",kwnames,&obj0)) goto fail; | |
18969 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18970 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18971 | { | |
18972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18973 | result = (bool)((wxDateTime const *)arg1)->IsValid(); | |
18974 | ||
18975 | wxPyEndAllowThreads(__tstate); | |
18976 | if (PyErr_Occurred()) SWIG_fail; | |
18977 | } | |
18978 | { | |
18979 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18980 | } | |
18981 | return resultobj; | |
18982 | fail: | |
18983 | return NULL; | |
18984 | } | |
18985 | ||
18986 | ||
18987 | static PyObject *_wrap_DateTime_GetTicks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18988 | PyObject *resultobj; | |
18989 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18990 | time_t result; | |
18991 | PyObject * obj0 = 0 ; | |
18992 | char *kwnames[] = { | |
18993 | (char *) "self", NULL | |
18994 | }; | |
18995 | ||
18996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetTicks",kwnames,&obj0)) goto fail; | |
18997 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18998 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18999 | { | |
19000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19001 | result = (time_t)((wxDateTime const *)arg1)->GetTicks(); | |
19002 | ||
19003 | wxPyEndAllowThreads(__tstate); | |
19004 | if (PyErr_Occurred()) SWIG_fail; | |
19005 | } | |
19006 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); | |
19007 | return resultobj; | |
19008 | fail: | |
19009 | return NULL; | |
19010 | } | |
19011 | ||
19012 | ||
19013 | static PyObject *_wrap_DateTime_GetYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19014 | PyObject *resultobj; | |
19015 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19016 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19017 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19018 | int result; | |
19019 | bool temp2 = False ; | |
19020 | PyObject * obj0 = 0 ; | |
19021 | PyObject * obj1 = 0 ; | |
19022 | char *kwnames[] = { | |
19023 | (char *) "self",(char *) "tz", NULL | |
19024 | }; | |
19025 | ||
19026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetYear",kwnames,&obj0,&obj1)) goto fail; | |
19027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19029 | if (obj1) { | |
19030 | { | |
19031 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
19032 | temp2 = True; | |
19033 | } | |
19034 | } | |
19035 | { | |
19036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19037 | result = (int)((wxDateTime const *)arg1)->GetYear((wxDateTime::TimeZone const &)*arg2); | |
19038 | ||
19039 | wxPyEndAllowThreads(__tstate); | |
19040 | if (PyErr_Occurred()) SWIG_fail; | |
19041 | } | |
19042 | resultobj = SWIG_FromInt((int)result); | |
19043 | { | |
19044 | if (temp2) delete arg2; | |
19045 | } | |
19046 | return resultobj; | |
19047 | fail: | |
19048 | { | |
19049 | if (temp2) delete arg2; | |
19050 | } | |
19051 | return NULL; | |
19052 | } | |
19053 | ||
19054 | ||
19055 | static PyObject *_wrap_DateTime_GetMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19056 | PyObject *resultobj; | |
19057 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19058 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19059 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19060 | int result; | |
19061 | bool temp2 = False ; | |
19062 | PyObject * obj0 = 0 ; | |
19063 | PyObject * obj1 = 0 ; | |
19064 | char *kwnames[] = { | |
19065 | (char *) "self",(char *) "tz", NULL | |
19066 | }; | |
19067 | ||
19068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonth",kwnames,&obj0,&obj1)) goto fail; | |
19069 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19070 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19071 | if (obj1) { | |
19072 | { | |
19073 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
19074 | temp2 = True; | |
19075 | } | |
19076 | } | |
19077 | { | |
19078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19079 | result = (int)((wxDateTime const *)arg1)->GetMonth((wxDateTime::TimeZone const &)*arg2); | |
19080 | ||
19081 | wxPyEndAllowThreads(__tstate); | |
19082 | if (PyErr_Occurred()) SWIG_fail; | |
19083 | } | |
19084 | resultobj = SWIG_FromInt((int)result); | |
19085 | { | |
19086 | if (temp2) delete arg2; | |
19087 | } | |
19088 | return resultobj; | |
19089 | fail: | |
19090 | { | |
19091 | if (temp2) delete arg2; | |
19092 | } | |
19093 | return NULL; | |
19094 | } | |
19095 | ||
19096 | ||
19097 | static PyObject *_wrap_DateTime_GetDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19098 | PyObject *resultobj; | |
19099 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19100 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19101 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19102 | int result; | |
19103 | bool temp2 = False ; | |
19104 | PyObject * obj0 = 0 ; | |
19105 | PyObject * obj1 = 0 ; | |
19106 | char *kwnames[] = { | |
19107 | (char *) "self",(char *) "tz", NULL | |
19108 | }; | |
19109 | ||
19110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDay",kwnames,&obj0,&obj1)) goto fail; | |
19111 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19112 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19113 | if (obj1) { | |
19114 | { | |
19115 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
19116 | temp2 = True; | |
19117 | } | |
19118 | } | |
19119 | { | |
19120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19121 | result = (int)((wxDateTime const *)arg1)->GetDay((wxDateTime::TimeZone const &)*arg2); | |
19122 | ||
19123 | wxPyEndAllowThreads(__tstate); | |
19124 | if (PyErr_Occurred()) SWIG_fail; | |
19125 | } | |
19126 | resultobj = SWIG_FromInt((int)result); | |
19127 | { | |
19128 | if (temp2) delete arg2; | |
19129 | } | |
19130 | return resultobj; | |
19131 | fail: | |
19132 | { | |
19133 | if (temp2) delete arg2; | |
19134 | } | |
19135 | return NULL; | |
19136 | } | |
19137 | ||
19138 | ||
19139 | static PyObject *_wrap_DateTime_GetWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19140 | PyObject *resultobj; | |
19141 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19142 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19143 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19144 | int result; | |
19145 | bool temp2 = False ; | |
19146 | PyObject * obj0 = 0 ; | |
19147 | PyObject * obj1 = 0 ; | |
19148 | char *kwnames[] = { | |
19149 | (char *) "self",(char *) "tz", NULL | |
19150 | }; | |
19151 | ||
19152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
19153 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19154 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19155 | if (obj1) { | |
19156 | { | |
19157 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
19158 | temp2 = True; | |
19159 | } | |
19160 | } | |
19161 | { | |
19162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19163 | result = (int)((wxDateTime const *)arg1)->GetWeekDay((wxDateTime::TimeZone const &)*arg2); | |
19164 | ||
19165 | wxPyEndAllowThreads(__tstate); | |
19166 | if (PyErr_Occurred()) SWIG_fail; | |
19167 | } | |
19168 | resultobj = SWIG_FromInt((int)result); | |
19169 | { | |
19170 | if (temp2) delete arg2; | |
19171 | } | |
19172 | return resultobj; | |
19173 | fail: | |
19174 | { | |
19175 | if (temp2) delete arg2; | |
19176 | } | |
19177 | return NULL; | |
19178 | } | |
19179 | ||
19180 | ||
19181 | static PyObject *_wrap_DateTime_GetHour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19182 | PyObject *resultobj; | |
19183 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19184 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19185 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19186 | int result; | |
19187 | bool temp2 = False ; | |
19188 | PyObject * obj0 = 0 ; | |
19189 | PyObject * obj1 = 0 ; | |
19190 | char *kwnames[] = { | |
19191 | (char *) "self",(char *) "tz", NULL | |
19192 | }; | |
19193 | ||
19194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetHour",kwnames,&obj0,&obj1)) goto fail; | |
19195 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19196 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19197 | if (obj1) { | |
19198 | { | |
19199 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
19200 | temp2 = True; | |
19201 | } | |
19202 | } | |
19203 | { | |
19204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19205 | result = (int)((wxDateTime const *)arg1)->GetHour((wxDateTime::TimeZone const &)*arg2); | |
19206 | ||
19207 | wxPyEndAllowThreads(__tstate); | |
19208 | if (PyErr_Occurred()) SWIG_fail; | |
19209 | } | |
19210 | resultobj = SWIG_FromInt((int)result); | |
19211 | { | |
19212 | if (temp2) delete arg2; | |
19213 | } | |
19214 | return resultobj; | |
19215 | fail: | |
19216 | { | |
19217 | if (temp2) delete arg2; | |
19218 | } | |
19219 | return NULL; | |
19220 | } | |
19221 | ||
19222 | ||
19223 | static PyObject *_wrap_DateTime_GetMinute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19224 | PyObject *resultobj; | |
19225 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19226 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19227 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19228 | int result; | |
19229 | bool temp2 = False ; | |
19230 | PyObject * obj0 = 0 ; | |
19231 | PyObject * obj1 = 0 ; | |
19232 | char *kwnames[] = { | |
19233 | (char *) "self",(char *) "tz", NULL | |
19234 | }; | |
19235 | ||
19236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMinute",kwnames,&obj0,&obj1)) goto fail; | |
19237 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19238 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19239 | if (obj1) { | |
19240 | { | |
19241 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
19242 | temp2 = True; | |
19243 | } | |
19244 | } | |
19245 | { | |
19246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19247 | result = (int)((wxDateTime const *)arg1)->GetMinute((wxDateTime::TimeZone const &)*arg2); | |
19248 | ||
19249 | wxPyEndAllowThreads(__tstate); | |
19250 | if (PyErr_Occurred()) SWIG_fail; | |
19251 | } | |
19252 | resultobj = SWIG_FromInt((int)result); | |
19253 | { | |
19254 | if (temp2) delete arg2; | |
19255 | } | |
19256 | return resultobj; | |
19257 | fail: | |
19258 | { | |
19259 | if (temp2) delete arg2; | |
19260 | } | |
19261 | return NULL; | |
19262 | } | |
19263 | ||
19264 | ||
19265 | static PyObject *_wrap_DateTime_GetSecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19266 | PyObject *resultobj; | |
19267 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19268 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19269 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19270 | int result; | |
19271 | bool temp2 = False ; | |
19272 | PyObject * obj0 = 0 ; | |
19273 | PyObject * obj1 = 0 ; | |
19274 | char *kwnames[] = { | |
19275 | (char *) "self",(char *) "tz", NULL | |
19276 | }; | |
19277 | ||
19278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetSecond",kwnames,&obj0,&obj1)) goto fail; | |
19279 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19280 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19281 | if (obj1) { | |
19282 | { | |
19283 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
19284 | temp2 = True; | |
19285 | } | |
19286 | } | |
19287 | { | |
19288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19289 | result = (int)((wxDateTime const *)arg1)->GetSecond((wxDateTime::TimeZone const &)*arg2); | |
19290 | ||
19291 | wxPyEndAllowThreads(__tstate); | |
19292 | if (PyErr_Occurred()) SWIG_fail; | |
19293 | } | |
19294 | resultobj = SWIG_FromInt((int)result); | |
19295 | { | |
19296 | if (temp2) delete arg2; | |
19297 | } | |
19298 | return resultobj; | |
19299 | fail: | |
19300 | { | |
19301 | if (temp2) delete arg2; | |
19302 | } | |
19303 | return NULL; | |
19304 | } | |
19305 | ||
19306 | ||
19307 | static PyObject *_wrap_DateTime_GetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19308 | PyObject *resultobj; | |
19309 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19310 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19311 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19312 | int result; | |
19313 | bool temp2 = False ; | |
19314 | PyObject * obj0 = 0 ; | |
19315 | PyObject * obj1 = 0 ; | |
19316 | char *kwnames[] = { | |
19317 | (char *) "self",(char *) "tz", NULL | |
19318 | }; | |
19319 | ||
19320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMillisecond",kwnames,&obj0,&obj1)) goto fail; | |
19321 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19322 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19323 | if (obj1) { | |
19324 | { | |
19325 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
19326 | temp2 = True; | |
19327 | } | |
19328 | } | |
19329 | { | |
19330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19331 | result = (int)((wxDateTime const *)arg1)->GetMillisecond((wxDateTime::TimeZone const &)*arg2); | |
19332 | ||
19333 | wxPyEndAllowThreads(__tstate); | |
19334 | if (PyErr_Occurred()) SWIG_fail; | |
19335 | } | |
19336 | resultobj = SWIG_FromInt((int)result); | |
19337 | { | |
19338 | if (temp2) delete arg2; | |
19339 | } | |
19340 | return resultobj; | |
19341 | fail: | |
19342 | { | |
19343 | if (temp2) delete arg2; | |
19344 | } | |
19345 | return NULL; | |
19346 | } | |
19347 | ||
19348 | ||
19349 | static PyObject *_wrap_DateTime_GetDayOfYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19350 | PyObject *resultobj; | |
19351 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19352 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19353 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19354 | int result; | |
19355 | bool temp2 = False ; | |
19356 | PyObject * obj0 = 0 ; | |
19357 | PyObject * obj1 = 0 ; | |
19358 | char *kwnames[] = { | |
19359 | (char *) "self",(char *) "tz", NULL | |
19360 | }; | |
19361 | ||
19362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDayOfYear",kwnames,&obj0,&obj1)) goto fail; | |
19363 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19364 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19365 | if (obj1) { | |
19366 | { | |
19367 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
19368 | temp2 = True; | |
19369 | } | |
19370 | } | |
19371 | { | |
19372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19373 | result = (int)((wxDateTime const *)arg1)->GetDayOfYear((wxDateTime::TimeZone const &)*arg2); | |
19374 | ||
19375 | wxPyEndAllowThreads(__tstate); | |
19376 | if (PyErr_Occurred()) SWIG_fail; | |
19377 | } | |
19378 | resultobj = SWIG_FromInt((int)result); | |
19379 | { | |
19380 | if (temp2) delete arg2; | |
19381 | } | |
19382 | return resultobj; | |
19383 | fail: | |
19384 | { | |
19385 | if (temp2) delete arg2; | |
19386 | } | |
19387 | return NULL; | |
19388 | } | |
19389 | ||
19390 | ||
19391 | static PyObject *_wrap_DateTime_GetWeekOfYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19392 | PyObject *resultobj; | |
19393 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19394 | int arg2 = (int) wxDateTime::Monday_First ; | |
19395 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
19396 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
19397 | int result; | |
19398 | bool temp3 = False ; | |
19399 | PyObject * obj0 = 0 ; | |
19400 | PyObject * obj1 = 0 ; | |
19401 | PyObject * obj2 = 0 ; | |
19402 | char *kwnames[] = { | |
19403 | (char *) "self",(char *) "flags",(char *) "tz", NULL | |
19404 | }; | |
19405 | ||
19406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19407 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19408 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19409 | if (obj1) { | |
19410 | arg2 = (wxDateTime::WeekFlags) SWIG_AsInt(obj1); | |
19411 | if (PyErr_Occurred()) SWIG_fail; | |
19412 | } | |
19413 | if (obj2) { | |
19414 | { | |
19415 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
19416 | temp3 = True; | |
19417 | } | |
19418 | } | |
19419 | { | |
19420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19421 | result = (int)((wxDateTime const *)arg1)->GetWeekOfYear((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3); | |
19422 | ||
19423 | wxPyEndAllowThreads(__tstate); | |
19424 | if (PyErr_Occurred()) SWIG_fail; | |
19425 | } | |
19426 | resultobj = SWIG_FromInt((int)result); | |
19427 | { | |
19428 | if (temp3) delete arg3; | |
19429 | } | |
19430 | return resultobj; | |
19431 | fail: | |
19432 | { | |
19433 | if (temp3) delete arg3; | |
19434 | } | |
19435 | return NULL; | |
19436 | } | |
19437 | ||
19438 | ||
19439 | static PyObject *_wrap_DateTime_GetWeekOfMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19440 | PyObject *resultobj; | |
19441 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19442 | int arg2 = (int) wxDateTime::Monday_First ; | |
19443 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
19444 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
19445 | int result; | |
19446 | bool temp3 = False ; | |
19447 | PyObject * obj0 = 0 ; | |
19448 | PyObject * obj1 = 0 ; | |
19449 | PyObject * obj2 = 0 ; | |
19450 | char *kwnames[] = { | |
19451 | (char *) "self",(char *) "flags",(char *) "tz", NULL | |
19452 | }; | |
19453 | ||
19454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfMonth",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19455 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19456 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19457 | if (obj1) { | |
19458 | arg2 = (wxDateTime::WeekFlags) SWIG_AsInt(obj1); | |
19459 | if (PyErr_Occurred()) SWIG_fail; | |
19460 | } | |
19461 | if (obj2) { | |
19462 | { | |
19463 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
19464 | temp3 = True; | |
19465 | } | |
19466 | } | |
19467 | { | |
19468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19469 | result = (int)((wxDateTime const *)arg1)->GetWeekOfMonth((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3); | |
19470 | ||
19471 | wxPyEndAllowThreads(__tstate); | |
19472 | if (PyErr_Occurred()) SWIG_fail; | |
19473 | } | |
19474 | resultobj = SWIG_FromInt((int)result); | |
19475 | { | |
19476 | if (temp3) delete arg3; | |
19477 | } | |
19478 | return resultobj; | |
19479 | fail: | |
19480 | { | |
19481 | if (temp3) delete arg3; | |
19482 | } | |
19483 | return NULL; | |
19484 | } | |
19485 | ||
19486 | ||
19487 | static PyObject *_wrap_DateTime_IsWorkDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19488 | PyObject *resultobj; | |
19489 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19490 | int arg2 = (int) wxDateTime::Country_Default ; | |
19491 | bool result; | |
19492 | PyObject * obj0 = 0 ; | |
19493 | PyObject * obj1 = 0 ; | |
19494 | char *kwnames[] = { | |
19495 | (char *) "self",(char *) "country", NULL | |
19496 | }; | |
19497 | ||
19498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsWorkDay",kwnames,&obj0,&obj1)) goto fail; | |
19499 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19500 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19501 | if (obj1) { | |
19502 | arg2 = (wxDateTime::Country) SWIG_AsInt(obj1); | |
19503 | if (PyErr_Occurred()) SWIG_fail; | |
19504 | } | |
19505 | { | |
19506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19507 | result = (bool)((wxDateTime const *)arg1)->IsWorkDay((wxDateTime::Country )arg2); | |
19508 | ||
19509 | wxPyEndAllowThreads(__tstate); | |
19510 | if (PyErr_Occurred()) SWIG_fail; | |
19511 | } | |
19512 | { | |
19513 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19514 | } | |
19515 | return resultobj; | |
19516 | fail: | |
19517 | return NULL; | |
19518 | } | |
19519 | ||
19520 | ||
19521 | static PyObject *_wrap_DateTime_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19522 | PyObject *resultobj; | |
19523 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19524 | wxDateTime *arg2 = 0 ; | |
19525 | bool result; | |
19526 | PyObject * obj0 = 0 ; | |
19527 | PyObject * obj1 = 0 ; | |
19528 | char *kwnames[] = { | |
19529 | (char *) "self",(char *) "datetime", NULL | |
19530 | }; | |
19531 | ||
19532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEqualTo",kwnames,&obj0,&obj1)) goto fail; | |
19533 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19534 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19535 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19536 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19537 | SWIG_fail; | |
19538 | if (arg2 == NULL) { | |
19539 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19540 | SWIG_fail; | |
19541 | } | |
19542 | { | |
19543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19544 | result = (bool)((wxDateTime const *)arg1)->IsEqualTo((wxDateTime const &)*arg2); | |
19545 | ||
19546 | wxPyEndAllowThreads(__tstate); | |
19547 | if (PyErr_Occurred()) SWIG_fail; | |
19548 | } | |
19549 | { | |
19550 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19551 | } | |
19552 | return resultobj; | |
19553 | fail: | |
19554 | return NULL; | |
19555 | } | |
19556 | ||
19557 | ||
19558 | static PyObject *_wrap_DateTime_IsEarlierThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19559 | PyObject *resultobj; | |
19560 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19561 | wxDateTime *arg2 = 0 ; | |
19562 | bool result; | |
19563 | PyObject * obj0 = 0 ; | |
19564 | PyObject * obj1 = 0 ; | |
19565 | char *kwnames[] = { | |
19566 | (char *) "self",(char *) "datetime", NULL | |
19567 | }; | |
19568 | ||
19569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEarlierThan",kwnames,&obj0,&obj1)) goto fail; | |
19570 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19571 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19572 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19573 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19574 | SWIG_fail; | |
19575 | if (arg2 == NULL) { | |
19576 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19577 | SWIG_fail; | |
19578 | } | |
19579 | { | |
19580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19581 | result = (bool)((wxDateTime const *)arg1)->IsEarlierThan((wxDateTime const &)*arg2); | |
19582 | ||
19583 | wxPyEndAllowThreads(__tstate); | |
19584 | if (PyErr_Occurred()) SWIG_fail; | |
19585 | } | |
19586 | { | |
19587 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19588 | } | |
19589 | return resultobj; | |
19590 | fail: | |
19591 | return NULL; | |
19592 | } | |
19593 | ||
19594 | ||
19595 | static PyObject *_wrap_DateTime_IsLaterThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19596 | PyObject *resultobj; | |
19597 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19598 | wxDateTime *arg2 = 0 ; | |
19599 | bool result; | |
19600 | PyObject * obj0 = 0 ; | |
19601 | PyObject * obj1 = 0 ; | |
19602 | char *kwnames[] = { | |
19603 | (char *) "self",(char *) "datetime", NULL | |
19604 | }; | |
19605 | ||
19606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsLaterThan",kwnames,&obj0,&obj1)) goto fail; | |
19607 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19608 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19609 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19610 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19611 | SWIG_fail; | |
19612 | if (arg2 == NULL) { | |
19613 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19614 | SWIG_fail; | |
19615 | } | |
19616 | { | |
19617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19618 | result = (bool)((wxDateTime const *)arg1)->IsLaterThan((wxDateTime const &)*arg2); | |
19619 | ||
19620 | wxPyEndAllowThreads(__tstate); | |
19621 | if (PyErr_Occurred()) SWIG_fail; | |
19622 | } | |
19623 | { | |
19624 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19625 | } | |
19626 | return resultobj; | |
19627 | fail: | |
19628 | return NULL; | |
19629 | } | |
19630 | ||
19631 | ||
19632 | static PyObject *_wrap_DateTime_IsStrictlyBetween(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19633 | PyObject *resultobj; | |
19634 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19635 | wxDateTime *arg2 = 0 ; | |
19636 | wxDateTime *arg3 = 0 ; | |
19637 | bool result; | |
19638 | PyObject * obj0 = 0 ; | |
19639 | PyObject * obj1 = 0 ; | |
19640 | PyObject * obj2 = 0 ; | |
19641 | char *kwnames[] = { | |
19642 | (char *) "self",(char *) "t1",(char *) "t2", NULL | |
19643 | }; | |
19644 | ||
19645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsStrictlyBetween",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19648 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19649 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19650 | SWIG_fail; | |
19651 | if (arg2 == NULL) { | |
19652 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19653 | SWIG_fail; | |
19654 | } | |
19655 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime, | |
19656 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19657 | SWIG_fail; | |
19658 | if (arg3 == NULL) { | |
19659 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19660 | SWIG_fail; | |
19661 | } | |
19662 | { | |
19663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19664 | result = (bool)((wxDateTime const *)arg1)->IsStrictlyBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
19665 | ||
19666 | wxPyEndAllowThreads(__tstate); | |
19667 | if (PyErr_Occurred()) SWIG_fail; | |
19668 | } | |
19669 | { | |
19670 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19671 | } | |
19672 | return resultobj; | |
19673 | fail: | |
19674 | return NULL; | |
19675 | } | |
19676 | ||
19677 | ||
19678 | static PyObject *_wrap_DateTime_IsBetween(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19679 | PyObject *resultobj; | |
19680 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19681 | wxDateTime *arg2 = 0 ; | |
19682 | wxDateTime *arg3 = 0 ; | |
19683 | bool result; | |
19684 | PyObject * obj0 = 0 ; | |
19685 | PyObject * obj1 = 0 ; | |
19686 | PyObject * obj2 = 0 ; | |
19687 | char *kwnames[] = { | |
19688 | (char *) "self",(char *) "t1",(char *) "t2", NULL | |
19689 | }; | |
19690 | ||
19691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsBetween",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19692 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19693 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19694 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19695 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19696 | SWIG_fail; | |
19697 | if (arg2 == NULL) { | |
19698 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19699 | SWIG_fail; | |
19700 | } | |
19701 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime, | |
19702 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19703 | SWIG_fail; | |
19704 | if (arg3 == NULL) { | |
19705 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19706 | SWIG_fail; | |
19707 | } | |
19708 | { | |
19709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19710 | result = (bool)((wxDateTime const *)arg1)->IsBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
19711 | ||
19712 | wxPyEndAllowThreads(__tstate); | |
19713 | if (PyErr_Occurred()) SWIG_fail; | |
19714 | } | |
19715 | { | |
19716 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19717 | } | |
19718 | return resultobj; | |
19719 | fail: | |
19720 | return NULL; | |
19721 | } | |
19722 | ||
19723 | ||
19724 | static PyObject *_wrap_DateTime_IsSameDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19725 | PyObject *resultobj; | |
19726 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19727 | wxDateTime *arg2 = 0 ; | |
19728 | bool result; | |
19729 | PyObject * obj0 = 0 ; | |
19730 | PyObject * obj1 = 0 ; | |
19731 | char *kwnames[] = { | |
19732 | (char *) "self",(char *) "dt", NULL | |
19733 | }; | |
19734 | ||
19735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameDate",kwnames,&obj0,&obj1)) goto fail; | |
19736 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19737 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19738 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19739 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19740 | SWIG_fail; | |
19741 | if (arg2 == NULL) { | |
19742 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19743 | SWIG_fail; | |
19744 | } | |
19745 | { | |
19746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19747 | result = (bool)((wxDateTime const *)arg1)->IsSameDate((wxDateTime const &)*arg2); | |
19748 | ||
19749 | wxPyEndAllowThreads(__tstate); | |
19750 | if (PyErr_Occurred()) SWIG_fail; | |
19751 | } | |
19752 | { | |
19753 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19754 | } | |
19755 | return resultobj; | |
19756 | fail: | |
19757 | return NULL; | |
19758 | } | |
19759 | ||
19760 | ||
19761 | static PyObject *_wrap_DateTime_IsSameTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19762 | PyObject *resultobj; | |
19763 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19764 | wxDateTime *arg2 = 0 ; | |
19765 | bool result; | |
19766 | PyObject * obj0 = 0 ; | |
19767 | PyObject * obj1 = 0 ; | |
19768 | char *kwnames[] = { | |
19769 | (char *) "self",(char *) "dt", NULL | |
19770 | }; | |
19771 | ||
19772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameTime",kwnames,&obj0,&obj1)) goto fail; | |
19773 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19774 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19775 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19776 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19777 | SWIG_fail; | |
19778 | if (arg2 == NULL) { | |
19779 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19780 | SWIG_fail; | |
19781 | } | |
19782 | { | |
19783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19784 | result = (bool)((wxDateTime const *)arg1)->IsSameTime((wxDateTime const &)*arg2); | |
19785 | ||
19786 | wxPyEndAllowThreads(__tstate); | |
19787 | if (PyErr_Occurred()) SWIG_fail; | |
19788 | } | |
19789 | { | |
19790 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19791 | } | |
19792 | return resultobj; | |
19793 | fail: | |
19794 | return NULL; | |
19795 | } | |
19796 | ||
19797 | ||
19798 | static PyObject *_wrap_DateTime_IsEqualUpTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19799 | PyObject *resultobj; | |
19800 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19801 | wxDateTime *arg2 = 0 ; | |
19802 | wxTimeSpan *arg3 = 0 ; | |
19803 | bool result; | |
19804 | PyObject * obj0 = 0 ; | |
19805 | PyObject * obj1 = 0 ; | |
19806 | PyObject * obj2 = 0 ; | |
19807 | char *kwnames[] = { | |
19808 | (char *) "self",(char *) "dt",(char *) "ts", NULL | |
19809 | }; | |
19810 | ||
19811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsEqualUpTo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19812 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19813 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19814 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19815 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19816 | SWIG_fail; | |
19817 | if (arg2 == NULL) { | |
19818 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19819 | SWIG_fail; | |
19820 | } | |
19821 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTimeSpan, | |
19822 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19823 | SWIG_fail; | |
19824 | if (arg3 == NULL) { | |
19825 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19826 | SWIG_fail; | |
19827 | } | |
19828 | { | |
19829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19830 | result = (bool)((wxDateTime const *)arg1)->IsEqualUpTo((wxDateTime const &)*arg2,(wxTimeSpan const &)*arg3); | |
19831 | ||
19832 | wxPyEndAllowThreads(__tstate); | |
19833 | if (PyErr_Occurred()) SWIG_fail; | |
19834 | } | |
19835 | { | |
19836 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19837 | } | |
19838 | return resultobj; | |
19839 | fail: | |
19840 | return NULL; | |
19841 | } | |
19842 | ||
19843 | ||
19844 | static PyObject *_wrap_DateTime_AddTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19845 | PyObject *resultobj; | |
19846 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19847 | wxTimeSpan *arg2 = 0 ; | |
19848 | wxDateTime *result; | |
19849 | PyObject * obj0 = 0 ; | |
19850 | PyObject * obj1 = 0 ; | |
19851 | char *kwnames[] = { | |
19852 | (char *) "self",(char *) "diff", NULL | |
19853 | }; | |
19854 | ||
19855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddTS",kwnames,&obj0,&obj1)) goto fail; | |
19856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19858 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
19859 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19860 | SWIG_fail; | |
19861 | if (arg2 == NULL) { | |
19862 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19863 | SWIG_fail; | |
19864 | } | |
19865 | { | |
19866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19867 | { | |
19868 | wxDateTime &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2); | |
19869 | result = (wxDateTime *) &_result_ref; | |
19870 | } | |
19871 | ||
19872 | wxPyEndAllowThreads(__tstate); | |
19873 | if (PyErr_Occurred()) SWIG_fail; | |
19874 | } | |
19875 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
19876 | return resultobj; | |
19877 | fail: | |
19878 | return NULL; | |
19879 | } | |
19880 | ||
19881 | ||
19882 | static PyObject *_wrap_DateTime_AddDS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19883 | PyObject *resultobj; | |
19884 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19885 | wxDateSpan *arg2 = 0 ; | |
19886 | wxDateTime *result; | |
19887 | PyObject * obj0 = 0 ; | |
19888 | PyObject * obj1 = 0 ; | |
19889 | char *kwnames[] = { | |
19890 | (char *) "self",(char *) "diff", NULL | |
19891 | }; | |
19892 | ||
19893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddDS",kwnames,&obj0,&obj1)) goto fail; | |
19894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19896 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
19897 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19898 | SWIG_fail; | |
19899 | if (arg2 == NULL) { | |
19900 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19901 | SWIG_fail; | |
19902 | } | |
19903 | { | |
19904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19905 | { | |
19906 | wxDateTime &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2); | |
19907 | result = (wxDateTime *) &_result_ref; | |
19908 | } | |
19909 | ||
19910 | wxPyEndAllowThreads(__tstate); | |
19911 | if (PyErr_Occurred()) SWIG_fail; | |
19912 | } | |
19913 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
19914 | return resultobj; | |
19915 | fail: | |
19916 | return NULL; | |
19917 | } | |
19918 | ||
19919 | ||
19920 | static PyObject *_wrap_DateTime_SubtractTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19921 | PyObject *resultobj; | |
19922 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19923 | wxTimeSpan *arg2 = 0 ; | |
19924 | wxDateTime *result; | |
19925 | PyObject * obj0 = 0 ; | |
19926 | PyObject * obj1 = 0 ; | |
19927 | char *kwnames[] = { | |
19928 | (char *) "self",(char *) "diff", NULL | |
19929 | }; | |
19930 | ||
19931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractTS",kwnames,&obj0,&obj1)) goto fail; | |
19932 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19933 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19934 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
19935 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19936 | SWIG_fail; | |
19937 | if (arg2 == NULL) { | |
19938 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19939 | SWIG_fail; | |
19940 | } | |
19941 | { | |
19942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19943 | { | |
19944 | wxDateTime &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2); | |
19945 | result = (wxDateTime *) &_result_ref; | |
19946 | } | |
19947 | ||
19948 | wxPyEndAllowThreads(__tstate); | |
19949 | if (PyErr_Occurred()) SWIG_fail; | |
19950 | } | |
19951 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
19952 | return resultobj; | |
19953 | fail: | |
19954 | return NULL; | |
19955 | } | |
19956 | ||
19957 | ||
19958 | static PyObject *_wrap_DateTime_SubtractDS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19959 | PyObject *resultobj; | |
19960 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19961 | wxDateSpan *arg2 = 0 ; | |
19962 | wxDateTime *result; | |
19963 | PyObject * obj0 = 0 ; | |
19964 | PyObject * obj1 = 0 ; | |
19965 | char *kwnames[] = { | |
19966 | (char *) "self",(char *) "diff", NULL | |
19967 | }; | |
19968 | ||
19969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractDS",kwnames,&obj0,&obj1)) goto fail; | |
19970 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19972 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
19973 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19974 | SWIG_fail; | |
19975 | if (arg2 == NULL) { | |
19976 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19977 | SWIG_fail; | |
19978 | } | |
19979 | { | |
19980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19981 | { | |
19982 | wxDateTime &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2); | |
19983 | result = (wxDateTime *) &_result_ref; | |
19984 | } | |
19985 | ||
19986 | wxPyEndAllowThreads(__tstate); | |
19987 | if (PyErr_Occurred()) SWIG_fail; | |
19988 | } | |
19989 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
19990 | return resultobj; | |
19991 | fail: | |
19992 | return NULL; | |
19993 | } | |
19994 | ||
19995 | ||
19996 | static PyObject *_wrap_DateTime_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19997 | PyObject *resultobj; | |
19998 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19999 | wxDateTime *arg2 = 0 ; | |
20000 | wxTimeSpan result; | |
20001 | PyObject * obj0 = 0 ; | |
20002 | PyObject * obj1 = 0 ; | |
20003 | char *kwnames[] = { | |
20004 | (char *) "self",(char *) "dt", NULL | |
20005 | }; | |
20006 | ||
20007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
20008 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20009 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20010 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20011 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20012 | SWIG_fail; | |
20013 | if (arg2 == NULL) { | |
20014 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20015 | SWIG_fail; | |
20016 | } | |
20017 | { | |
20018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20019 | result = ((wxDateTime const *)arg1)->Subtract((wxDateTime const &)*arg2); | |
20020 | ||
20021 | wxPyEndAllowThreads(__tstate); | |
20022 | if (PyErr_Occurred()) SWIG_fail; | |
20023 | } | |
20024 | { | |
20025 | wxTimeSpan * resultptr; | |
20026 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
20027 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
20028 | } | |
20029 | return resultobj; | |
20030 | fail: | |
20031 | return NULL; | |
20032 | } | |
20033 | ||
20034 | ||
20035 | static PyObject *_wrap_DateTime___iadd____SWIG_0(PyObject *self, PyObject *args) { | |
20036 | PyObject *resultobj; | |
20037 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20038 | wxTimeSpan *arg2 = 0 ; | |
20039 | wxDateTime *result; | |
20040 | PyObject * obj0 = 0 ; | |
20041 | PyObject * obj1 = 0 ; | |
20042 | ||
20043 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail; | |
20044 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20045 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20046 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
20047 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20048 | SWIG_fail; | |
20049 | if (arg2 == NULL) { | |
20050 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20051 | SWIG_fail; | |
20052 | } | |
20053 | { | |
20054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20055 | { | |
20056 | wxDateTime &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2); | |
20057 | result = (wxDateTime *) &_result_ref; | |
20058 | } | |
20059 | ||
20060 | wxPyEndAllowThreads(__tstate); | |
20061 | if (PyErr_Occurred()) SWIG_fail; | |
20062 | } | |
20063 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
20064 | return resultobj; | |
20065 | fail: | |
20066 | return NULL; | |
20067 | } | |
20068 | ||
20069 | ||
20070 | static PyObject *_wrap_DateTime___iadd____SWIG_1(PyObject *self, PyObject *args) { | |
20071 | PyObject *resultobj; | |
20072 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20073 | wxDateSpan *arg2 = 0 ; | |
20074 | wxDateTime *result; | |
20075 | PyObject * obj0 = 0 ; | |
20076 | PyObject * obj1 = 0 ; | |
20077 | ||
20078 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail; | |
20079 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20080 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20081 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
20082 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20083 | SWIG_fail; | |
20084 | if (arg2 == NULL) { | |
20085 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20086 | SWIG_fail; | |
20087 | } | |
20088 | { | |
20089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20090 | { | |
20091 | wxDateTime &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2); | |
20092 | result = (wxDateTime *) &_result_ref; | |
20093 | } | |
20094 | ||
20095 | wxPyEndAllowThreads(__tstate); | |
20096 | if (PyErr_Occurred()) SWIG_fail; | |
20097 | } | |
20098 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
20099 | return resultobj; | |
20100 | fail: | |
20101 | return NULL; | |
20102 | } | |
20103 | ||
20104 | ||
20105 | static PyObject *_wrap_DateTime___iadd__(PyObject *self, PyObject *args) { | |
20106 | int argc; | |
20107 | PyObject *argv[3]; | |
20108 | int ii; | |
20109 | ||
20110 | argc = PyObject_Length(args); | |
20111 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
20112 | argv[ii] = PyTuple_GetItem(args,ii); | |
20113 | } | |
20114 | if (argc == 2) { | |
20115 | int _v; | |
20116 | { | |
20117 | void *ptr; | |
20118 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20119 | _v = 0; | |
20120 | PyErr_Clear(); | |
20121 | } else { | |
20122 | _v = 1; | |
20123 | } | |
20124 | } | |
20125 | if (_v) { | |
20126 | { | |
20127 | void *ptr; | |
20128 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
20129 | _v = 0; | |
20130 | PyErr_Clear(); | |
20131 | } else { | |
20132 | _v = 1; | |
20133 | } | |
20134 | } | |
20135 | if (_v) { | |
20136 | return _wrap_DateTime___iadd____SWIG_0(self,args); | |
20137 | } | |
20138 | } | |
20139 | } | |
20140 | if (argc == 2) { | |
20141 | int _v; | |
20142 | { | |
20143 | void *ptr; | |
20144 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20145 | _v = 0; | |
20146 | PyErr_Clear(); | |
20147 | } else { | |
20148 | _v = 1; | |
20149 | } | |
20150 | } | |
20151 | if (_v) { | |
20152 | { | |
20153 | void *ptr; | |
20154 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
20155 | _v = 0; | |
20156 | PyErr_Clear(); | |
20157 | } else { | |
20158 | _v = 1; | |
20159 | } | |
20160 | } | |
20161 | if (_v) { | |
20162 | return _wrap_DateTime___iadd____SWIG_1(self,args); | |
20163 | } | |
20164 | } | |
20165 | } | |
20166 | ||
20167 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___iadd__'"); | |
20168 | return NULL; | |
20169 | } | |
20170 | ||
20171 | ||
20172 | static PyObject *_wrap_DateTime___isub____SWIG_0(PyObject *self, PyObject *args) { | |
20173 | PyObject *resultobj; | |
20174 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20175 | wxTimeSpan *arg2 = 0 ; | |
20176 | wxDateTime *result; | |
20177 | PyObject * obj0 = 0 ; | |
20178 | PyObject * obj1 = 0 ; | |
20179 | ||
20180 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail; | |
20181 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20183 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
20184 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20185 | SWIG_fail; | |
20186 | if (arg2 == NULL) { | |
20187 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20188 | SWIG_fail; | |
20189 | } | |
20190 | { | |
20191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20192 | { | |
20193 | wxDateTime &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2); | |
20194 | result = (wxDateTime *) &_result_ref; | |
20195 | } | |
20196 | ||
20197 | wxPyEndAllowThreads(__tstate); | |
20198 | if (PyErr_Occurred()) SWIG_fail; | |
20199 | } | |
20200 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
20201 | return resultobj; | |
20202 | fail: | |
20203 | return NULL; | |
20204 | } | |
20205 | ||
20206 | ||
20207 | static PyObject *_wrap_DateTime___isub____SWIG_1(PyObject *self, PyObject *args) { | |
20208 | PyObject *resultobj; | |
20209 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20210 | wxDateSpan *arg2 = 0 ; | |
20211 | wxDateTime *result; | |
20212 | PyObject * obj0 = 0 ; | |
20213 | PyObject * obj1 = 0 ; | |
20214 | ||
20215 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail; | |
20216 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20217 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20218 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
20219 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20220 | SWIG_fail; | |
20221 | if (arg2 == NULL) { | |
20222 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20223 | SWIG_fail; | |
20224 | } | |
20225 | { | |
20226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20227 | { | |
20228 | wxDateTime &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2); | |
20229 | result = (wxDateTime *) &_result_ref; | |
20230 | } | |
20231 | ||
20232 | wxPyEndAllowThreads(__tstate); | |
20233 | if (PyErr_Occurred()) SWIG_fail; | |
20234 | } | |
20235 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
20236 | return resultobj; | |
20237 | fail: | |
20238 | return NULL; | |
20239 | } | |
20240 | ||
20241 | ||
20242 | static PyObject *_wrap_DateTime___isub__(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___isub____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___isub____SWIG_1(self,args); | |
20300 | } | |
20301 | } | |
20302 | } | |
20303 | ||
20304 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___isub__'"); | |
20305 | return NULL; | |
20306 | } | |
20307 | ||
20308 | ||
20309 | static PyObject *_wrap_DateTime___add____SWIG_0(PyObject *self, PyObject *args) { | |
20310 | PyObject *resultobj; | |
20311 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20312 | wxTimeSpan *arg2 = 0 ; | |
20313 | wxDateTime result; | |
20314 | PyObject * obj0 = 0 ; | |
20315 | PyObject * obj1 = 0 ; | |
20316 | ||
20317 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&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_wxTimeSpan, | |
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___add____SWIG_0(arg1,(wxTimeSpan const &)*arg2); | |
20330 | ||
20331 | wxPyEndAllowThreads(__tstate); | |
20332 | if (PyErr_Occurred()) SWIG_fail; | |
20333 | } | |
20334 | { | |
20335 | wxDateTime * resultptr; | |
20336 | resultptr = new wxDateTime((wxDateTime &) result); | |
20337 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
20338 | } | |
20339 | return resultobj; | |
20340 | fail: | |
20341 | return NULL; | |
20342 | } | |
20343 | ||
20344 | ||
20345 | static PyObject *_wrap_DateTime___add____SWIG_1(PyObject *self, PyObject *args) { | |
20346 | PyObject *resultobj; | |
20347 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20348 | wxDateSpan *arg2 = 0 ; | |
20349 | wxDateTime result; | |
20350 | PyObject * obj0 = 0 ; | |
20351 | PyObject * obj1 = 0 ; | |
20352 | ||
20353 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&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_wxDateSpan, | |
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___add____SWIG_1(arg1,(wxDateSpan 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___add__(PyObject *self, PyObject *args) { | |
20382 | int argc; | |
20383 | PyObject *argv[3]; | |
20384 | int ii; | |
20385 | ||
20386 | argc = PyObject_Length(args); | |
20387 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
20388 | argv[ii] = PyTuple_GetItem(args,ii); | |
20389 | } | |
20390 | if (argc == 2) { | |
20391 | int _v; | |
20392 | { | |
20393 | void *ptr; | |
20394 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20395 | _v = 0; | |
20396 | PyErr_Clear(); | |
20397 | } else { | |
20398 | _v = 1; | |
20399 | } | |
20400 | } | |
20401 | if (_v) { | |
20402 | { | |
20403 | void *ptr; | |
20404 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
20405 | _v = 0; | |
20406 | PyErr_Clear(); | |
20407 | } else { | |
20408 | _v = 1; | |
20409 | } | |
20410 | } | |
20411 | if (_v) { | |
20412 | return _wrap_DateTime___add____SWIG_0(self,args); | |
20413 | } | |
20414 | } | |
20415 | } | |
20416 | if (argc == 2) { | |
20417 | int _v; | |
20418 | { | |
20419 | void *ptr; | |
20420 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20421 | _v = 0; | |
20422 | PyErr_Clear(); | |
20423 | } else { | |
20424 | _v = 1; | |
20425 | } | |
20426 | } | |
20427 | if (_v) { | |
20428 | { | |
20429 | void *ptr; | |
20430 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
20431 | _v = 0; | |
20432 | PyErr_Clear(); | |
20433 | } else { | |
20434 | _v = 1; | |
20435 | } | |
20436 | } | |
20437 | if (_v) { | |
20438 | return _wrap_DateTime___add____SWIG_1(self,args); | |
20439 | } | |
20440 | } | |
20441 | } | |
20442 | ||
20443 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___add__'"); | |
20444 | return NULL; | |
20445 | } | |
20446 | ||
20447 | ||
20448 | static PyObject *_wrap_DateTime___sub____SWIG_0(PyObject *self, PyObject *args) { | |
20449 | PyObject *resultobj; | |
20450 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20451 | wxDateTime *arg2 = 0 ; | |
20452 | wxTimeSpan result; | |
20453 | PyObject * obj0 = 0 ; | |
20454 | PyObject * obj1 = 0 ; | |
20455 | ||
20456 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
20457 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20458 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20459 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20460 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20461 | SWIG_fail; | |
20462 | if (arg2 == NULL) { | |
20463 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20464 | SWIG_fail; | |
20465 | } | |
20466 | { | |
20467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20468 | result = wxDateTime___sub____SWIG_0(arg1,(wxDateTime const &)*arg2); | |
20469 | ||
20470 | wxPyEndAllowThreads(__tstate); | |
20471 | if (PyErr_Occurred()) SWIG_fail; | |
20472 | } | |
20473 | { | |
20474 | wxTimeSpan * resultptr; | |
20475 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
20476 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
20477 | } | |
20478 | return resultobj; | |
20479 | fail: | |
20480 | return NULL; | |
20481 | } | |
20482 | ||
20483 | ||
20484 | static PyObject *_wrap_DateTime___sub____SWIG_1(PyObject *self, PyObject *args) { | |
20485 | PyObject *resultobj; | |
20486 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20487 | wxTimeSpan *arg2 = 0 ; | |
20488 | wxDateTime result; | |
20489 | PyObject * obj0 = 0 ; | |
20490 | PyObject * obj1 = 0 ; | |
20491 | ||
20492 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
20493 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20494 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20495 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
20496 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20497 | SWIG_fail; | |
20498 | if (arg2 == NULL) { | |
20499 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20500 | SWIG_fail; | |
20501 | } | |
20502 | { | |
20503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20504 | result = wxDateTime___sub____SWIG_1(arg1,(wxTimeSpan const &)*arg2); | |
20505 | ||
20506 | wxPyEndAllowThreads(__tstate); | |
20507 | if (PyErr_Occurred()) SWIG_fail; | |
20508 | } | |
20509 | { | |
20510 | wxDateTime * resultptr; | |
20511 | resultptr = new wxDateTime((wxDateTime &) result); | |
20512 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
20513 | } | |
20514 | return resultobj; | |
20515 | fail: | |
20516 | return NULL; | |
20517 | } | |
20518 | ||
20519 | ||
20520 | static PyObject *_wrap_DateTime___sub____SWIG_2(PyObject *self, PyObject *args) { | |
20521 | PyObject *resultobj; | |
20522 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20523 | wxDateSpan *arg2 = 0 ; | |
20524 | wxDateTime result; | |
20525 | PyObject * obj0 = 0 ; | |
20526 | PyObject * obj1 = 0 ; | |
20527 | ||
20528 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
20529 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20531 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
20532 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20533 | SWIG_fail; | |
20534 | if (arg2 == NULL) { | |
20535 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20536 | SWIG_fail; | |
20537 | } | |
20538 | { | |
20539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20540 | result = wxDateTime___sub____SWIG_2(arg1,(wxDateSpan const &)*arg2); | |
20541 | ||
20542 | wxPyEndAllowThreads(__tstate); | |
20543 | if (PyErr_Occurred()) SWIG_fail; | |
20544 | } | |
20545 | { | |
20546 | wxDateTime * resultptr; | |
20547 | resultptr = new wxDateTime((wxDateTime &) result); | |
20548 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
20549 | } | |
20550 | return resultobj; | |
20551 | fail: | |
20552 | return NULL; | |
20553 | } | |
20554 | ||
20555 | ||
20556 | static PyObject *_wrap_DateTime___sub__(PyObject *self, PyObject *args) { | |
20557 | int argc; | |
20558 | PyObject *argv[3]; | |
20559 | int ii; | |
20560 | ||
20561 | argc = PyObject_Length(args); | |
20562 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
20563 | argv[ii] = PyTuple_GetItem(args,ii); | |
20564 | } | |
20565 | if (argc == 2) { | |
20566 | int _v; | |
20567 | { | |
20568 | void *ptr; | |
20569 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20570 | _v = 0; | |
20571 | PyErr_Clear(); | |
20572 | } else { | |
20573 | _v = 1; | |
20574 | } | |
20575 | } | |
20576 | if (_v) { | |
20577 | { | |
20578 | void *ptr; | |
20579 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20580 | _v = 0; | |
20581 | PyErr_Clear(); | |
20582 | } else { | |
20583 | _v = 1; | |
20584 | } | |
20585 | } | |
20586 | if (_v) { | |
20587 | return _wrap_DateTime___sub____SWIG_0(self,args); | |
20588 | } | |
20589 | } | |
20590 | } | |
20591 | if (argc == 2) { | |
20592 | int _v; | |
20593 | { | |
20594 | void *ptr; | |
20595 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20596 | _v = 0; | |
20597 | PyErr_Clear(); | |
20598 | } else { | |
20599 | _v = 1; | |
20600 | } | |
20601 | } | |
20602 | if (_v) { | |
20603 | { | |
20604 | void *ptr; | |
20605 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
20606 | _v = 0; | |
20607 | PyErr_Clear(); | |
20608 | } else { | |
20609 | _v = 1; | |
20610 | } | |
20611 | } | |
20612 | if (_v) { | |
20613 | return _wrap_DateTime___sub____SWIG_1(self,args); | |
20614 | } | |
20615 | } | |
20616 | } | |
20617 | if (argc == 2) { | |
20618 | int _v; | |
20619 | { | |
20620 | void *ptr; | |
20621 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20622 | _v = 0; | |
20623 | PyErr_Clear(); | |
20624 | } else { | |
20625 | _v = 1; | |
20626 | } | |
20627 | } | |
20628 | if (_v) { | |
20629 | { | |
20630 | void *ptr; | |
20631 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
20632 | _v = 0; | |
20633 | PyErr_Clear(); | |
20634 | } else { | |
20635 | _v = 1; | |
20636 | } | |
20637 | } | |
20638 | if (_v) { | |
20639 | return _wrap_DateTime___sub____SWIG_2(self,args); | |
20640 | } | |
20641 | } | |
20642 | } | |
20643 | ||
20644 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___sub__'"); | |
20645 | return NULL; | |
20646 | } | |
20647 | ||
20648 | ||
20649 | static PyObject *_wrap_DateTime___lt__(PyObject *self, PyObject *args) { | |
20650 | PyObject *resultobj; | |
20651 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20652 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
20653 | bool result; | |
20654 | PyObject * obj0 = 0 ; | |
20655 | PyObject * obj1 = 0 ; | |
20656 | ||
20657 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___lt__",&obj0,&obj1)) goto fail; | |
20658 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20659 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20660 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20661 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20662 | { | |
20663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20664 | result = (bool)wxDateTime___lt__(arg1,(wxDateTime const *)arg2); | |
20665 | ||
20666 | wxPyEndAllowThreads(__tstate); | |
20667 | if (PyErr_Occurred()) SWIG_fail; | |
20668 | } | |
20669 | { | |
20670 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20671 | } | |
20672 | return resultobj; | |
20673 | fail: | |
20674 | return NULL; | |
20675 | } | |
20676 | ||
20677 | ||
20678 | static PyObject *_wrap_DateTime___le__(PyObject *self, PyObject *args) { | |
20679 | PyObject *resultobj; | |
20680 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20681 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
20682 | bool result; | |
20683 | PyObject * obj0 = 0 ; | |
20684 | PyObject * obj1 = 0 ; | |
20685 | ||
20686 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___le__",&obj0,&obj1)) goto fail; | |
20687 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20688 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20689 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20690 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20691 | { | |
20692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20693 | result = (bool)wxDateTime___le__(arg1,(wxDateTime const *)arg2); | |
20694 | ||
20695 | wxPyEndAllowThreads(__tstate); | |
20696 | if (PyErr_Occurred()) SWIG_fail; | |
20697 | } | |
20698 | { | |
20699 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20700 | } | |
20701 | return resultobj; | |
20702 | fail: | |
20703 | return NULL; | |
20704 | } | |
20705 | ||
20706 | ||
20707 | static PyObject *_wrap_DateTime___gt__(PyObject *self, PyObject *args) { | |
20708 | PyObject *resultobj; | |
20709 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20710 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
20711 | bool result; | |
20712 | PyObject * obj0 = 0 ; | |
20713 | PyObject * obj1 = 0 ; | |
20714 | ||
20715 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___gt__",&obj0,&obj1)) goto fail; | |
20716 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20717 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20718 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20719 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20720 | { | |
20721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20722 | result = (bool)wxDateTime___gt__(arg1,(wxDateTime const *)arg2); | |
20723 | ||
20724 | wxPyEndAllowThreads(__tstate); | |
20725 | if (PyErr_Occurred()) SWIG_fail; | |
20726 | } | |
20727 | { | |
20728 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20729 | } | |
20730 | return resultobj; | |
20731 | fail: | |
20732 | return NULL; | |
20733 | } | |
20734 | ||
20735 | ||
20736 | static PyObject *_wrap_DateTime___ge__(PyObject *self, PyObject *args) { | |
20737 | PyObject *resultobj; | |
20738 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20739 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
20740 | bool result; | |
20741 | PyObject * obj0 = 0 ; | |
20742 | PyObject * obj1 = 0 ; | |
20743 | ||
20744 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ge__",&obj0,&obj1)) goto fail; | |
20745 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20746 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20747 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20748 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20749 | { | |
20750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20751 | result = (bool)wxDateTime___ge__(arg1,(wxDateTime const *)arg2); | |
20752 | ||
20753 | wxPyEndAllowThreads(__tstate); | |
20754 | if (PyErr_Occurred()) SWIG_fail; | |
20755 | } | |
20756 | { | |
20757 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20758 | } | |
20759 | return resultobj; | |
20760 | fail: | |
20761 | return NULL; | |
20762 | } | |
20763 | ||
20764 | ||
20765 | static PyObject *_wrap_DateTime___eq__(PyObject *self, PyObject *args) { | |
20766 | PyObject *resultobj; | |
20767 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20768 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
20769 | bool result; | |
20770 | PyObject * obj0 = 0 ; | |
20771 | PyObject * obj1 = 0 ; | |
20772 | ||
20773 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___eq__",&obj0,&obj1)) goto fail; | |
20774 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20775 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20776 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20778 | { | |
20779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20780 | result = (bool)wxDateTime___eq__(arg1,(wxDateTime const *)arg2); | |
20781 | ||
20782 | wxPyEndAllowThreads(__tstate); | |
20783 | if (PyErr_Occurred()) SWIG_fail; | |
20784 | } | |
20785 | { | |
20786 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20787 | } | |
20788 | return resultobj; | |
20789 | fail: | |
20790 | return NULL; | |
20791 | } | |
20792 | ||
20793 | ||
20794 | static PyObject *_wrap_DateTime___ne__(PyObject *self, PyObject *args) { | |
20795 | PyObject *resultobj; | |
20796 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20797 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
20798 | bool result; | |
20799 | PyObject * obj0 = 0 ; | |
20800 | PyObject * obj1 = 0 ; | |
20801 | ||
20802 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ne__",&obj0,&obj1)) goto fail; | |
20803 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20804 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20805 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20806 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20807 | { | |
20808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20809 | result = (bool)wxDateTime___ne__(arg1,(wxDateTime const *)arg2); | |
20810 | ||
20811 | wxPyEndAllowThreads(__tstate); | |
20812 | if (PyErr_Occurred()) SWIG_fail; | |
20813 | } | |
20814 | { | |
20815 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20816 | } | |
20817 | return resultobj; | |
20818 | fail: | |
20819 | return NULL; | |
20820 | } | |
20821 | ||
20822 | ||
20823 | static PyObject *_wrap_DateTime_ParseRfc822Date(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20824 | PyObject *resultobj; | |
20825 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20826 | wxString *arg2 = 0 ; | |
20827 | int result; | |
20828 | bool temp2 = False ; | |
20829 | PyObject * obj0 = 0 ; | |
20830 | PyObject * obj1 = 0 ; | |
20831 | char *kwnames[] = { | |
20832 | (char *) "self",(char *) "date", NULL | |
20833 | }; | |
20834 | ||
20835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseRfc822Date",kwnames,&obj0,&obj1)) goto fail; | |
20836 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20837 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20838 | { | |
20839 | arg2 = wxString_in_helper(obj1); | |
20840 | if (arg2 == NULL) SWIG_fail; | |
20841 | temp2 = True; | |
20842 | } | |
20843 | { | |
20844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20845 | result = (int)wxDateTime_ParseRfc822Date(arg1,(wxString const &)*arg2); | |
20846 | ||
20847 | wxPyEndAllowThreads(__tstate); | |
20848 | if (PyErr_Occurred()) SWIG_fail; | |
20849 | } | |
20850 | resultobj = SWIG_FromInt((int)result); | |
20851 | { | |
20852 | if (temp2) | |
20853 | delete arg2; | |
20854 | } | |
20855 | return resultobj; | |
20856 | fail: | |
20857 | { | |
20858 | if (temp2) | |
20859 | delete arg2; | |
20860 | } | |
20861 | return NULL; | |
20862 | } | |
20863 | ||
20864 | ||
20865 | static PyObject *_wrap_DateTime_ParseFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20866 | PyObject *resultobj; | |
20867 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20868 | wxString *arg2 = 0 ; | |
20869 | wxString const &arg3_defvalue = wxPyDateFormatStr ; | |
20870 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
20871 | wxDateTime const &arg4_defvalue = wxDefaultDateTime ; | |
20872 | wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ; | |
20873 | int result; | |
20874 | bool temp2 = False ; | |
20875 | bool temp3 = False ; | |
20876 | PyObject * obj0 = 0 ; | |
20877 | PyObject * obj1 = 0 ; | |
20878 | PyObject * obj2 = 0 ; | |
20879 | PyObject * obj3 = 0 ; | |
20880 | char *kwnames[] = { | |
20881 | (char *) "self",(char *) "date",(char *) "format",(char *) "dateDef", NULL | |
20882 | }; | |
20883 | ||
20884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_ParseFormat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
20885 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20886 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20887 | { | |
20888 | arg2 = wxString_in_helper(obj1); | |
20889 | if (arg2 == NULL) SWIG_fail; | |
20890 | temp2 = True; | |
20891 | } | |
20892 | if (obj2) { | |
20893 | { | |
20894 | arg3 = wxString_in_helper(obj2); | |
20895 | if (arg3 == NULL) SWIG_fail; | |
20896 | temp3 = True; | |
20897 | } | |
20898 | } | |
20899 | if (obj3) { | |
20900 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDateTime, | |
20901 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20902 | SWIG_fail; | |
20903 | if (arg4 == NULL) { | |
20904 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20905 | SWIG_fail; | |
20906 | } | |
20907 | } | |
20908 | { | |
20909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20910 | result = (int)wxDateTime_ParseFormat(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxDateTime const &)*arg4); | |
20911 | ||
20912 | wxPyEndAllowThreads(__tstate); | |
20913 | if (PyErr_Occurred()) SWIG_fail; | |
20914 | } | |
20915 | resultobj = SWIG_FromInt((int)result); | |
20916 | { | |
20917 | if (temp2) | |
20918 | delete arg2; | |
20919 | } | |
20920 | { | |
20921 | if (temp3) | |
20922 | delete arg3; | |
20923 | } | |
20924 | return resultobj; | |
20925 | fail: | |
20926 | { | |
20927 | if (temp2) | |
20928 | delete arg2; | |
20929 | } | |
20930 | { | |
20931 | if (temp3) | |
20932 | delete arg3; | |
20933 | } | |
20934 | return NULL; | |
20935 | } | |
20936 | ||
20937 | ||
20938 | static PyObject *_wrap_DateTime_ParseDateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20939 | PyObject *resultobj; | |
20940 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20941 | wxString *arg2 = 0 ; | |
20942 | int result; | |
20943 | bool temp2 = False ; | |
20944 | PyObject * obj0 = 0 ; | |
20945 | PyObject * obj1 = 0 ; | |
20946 | char *kwnames[] = { | |
20947 | (char *) "self",(char *) "datetime", NULL | |
20948 | }; | |
20949 | ||
20950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDateTime",kwnames,&obj0,&obj1)) goto fail; | |
20951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20953 | { | |
20954 | arg2 = wxString_in_helper(obj1); | |
20955 | if (arg2 == NULL) SWIG_fail; | |
20956 | temp2 = True; | |
20957 | } | |
20958 | { | |
20959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20960 | result = (int)wxDateTime_ParseDateTime(arg1,(wxString const &)*arg2); | |
20961 | ||
20962 | wxPyEndAllowThreads(__tstate); | |
20963 | if (PyErr_Occurred()) SWIG_fail; | |
20964 | } | |
20965 | resultobj = SWIG_FromInt((int)result); | |
20966 | { | |
20967 | if (temp2) | |
20968 | delete arg2; | |
20969 | } | |
20970 | return resultobj; | |
20971 | fail: | |
20972 | { | |
20973 | if (temp2) | |
20974 | delete arg2; | |
20975 | } | |
20976 | return NULL; | |
20977 | } | |
20978 | ||
20979 | ||
20980 | static PyObject *_wrap_DateTime_ParseDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20981 | PyObject *resultobj; | |
20982 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20983 | wxString *arg2 = 0 ; | |
20984 | int result; | |
20985 | bool temp2 = False ; | |
20986 | PyObject * obj0 = 0 ; | |
20987 | PyObject * obj1 = 0 ; | |
20988 | char *kwnames[] = { | |
20989 | (char *) "self",(char *) "date", NULL | |
20990 | }; | |
20991 | ||
20992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDate",kwnames,&obj0,&obj1)) goto fail; | |
20993 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20994 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20995 | { | |
20996 | arg2 = wxString_in_helper(obj1); | |
20997 | if (arg2 == NULL) SWIG_fail; | |
20998 | temp2 = True; | |
20999 | } | |
21000 | { | |
21001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21002 | result = (int)wxDateTime_ParseDate(arg1,(wxString const &)*arg2); | |
21003 | ||
21004 | wxPyEndAllowThreads(__tstate); | |
21005 | if (PyErr_Occurred()) SWIG_fail; | |
21006 | } | |
21007 | resultobj = SWIG_FromInt((int)result); | |
21008 | { | |
21009 | if (temp2) | |
21010 | delete arg2; | |
21011 | } | |
21012 | return resultobj; | |
21013 | fail: | |
21014 | { | |
21015 | if (temp2) | |
21016 | delete arg2; | |
21017 | } | |
21018 | return NULL; | |
21019 | } | |
21020 | ||
21021 | ||
21022 | static PyObject *_wrap_DateTime_ParseTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21023 | PyObject *resultobj; | |
21024 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21025 | wxString *arg2 = 0 ; | |
21026 | int result; | |
21027 | bool temp2 = False ; | |
21028 | PyObject * obj0 = 0 ; | |
21029 | PyObject * obj1 = 0 ; | |
21030 | char *kwnames[] = { | |
21031 | (char *) "self",(char *) "time", NULL | |
21032 | }; | |
21033 | ||
21034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseTime",kwnames,&obj0,&obj1)) goto fail; | |
21035 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21036 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21037 | { | |
21038 | arg2 = wxString_in_helper(obj1); | |
21039 | if (arg2 == NULL) SWIG_fail; | |
21040 | temp2 = True; | |
21041 | } | |
21042 | { | |
21043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21044 | result = (int)wxDateTime_ParseTime(arg1,(wxString const &)*arg2); | |
21045 | ||
21046 | wxPyEndAllowThreads(__tstate); | |
21047 | if (PyErr_Occurred()) SWIG_fail; | |
21048 | } | |
21049 | resultobj = SWIG_FromInt((int)result); | |
21050 | { | |
21051 | if (temp2) | |
21052 | delete arg2; | |
21053 | } | |
21054 | return resultobj; | |
21055 | fail: | |
21056 | { | |
21057 | if (temp2) | |
21058 | delete arg2; | |
21059 | } | |
21060 | return NULL; | |
21061 | } | |
21062 | ||
21063 | ||
21064 | static PyObject *_wrap_DateTime_Format(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21065 | PyObject *resultobj; | |
21066 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21067 | wxString const &arg2_defvalue = wxPyDateFormatStr ; | |
21068 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
21069 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
21070 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
21071 | wxString result; | |
21072 | bool temp2 = False ; | |
21073 | bool temp3 = False ; | |
21074 | PyObject * obj0 = 0 ; | |
21075 | PyObject * obj1 = 0 ; | |
21076 | PyObject * obj2 = 0 ; | |
21077 | char *kwnames[] = { | |
21078 | (char *) "self",(char *) "format",(char *) "tz", NULL | |
21079 | }; | |
21080 | ||
21081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_Format",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21082 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21083 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21084 | if (obj1) { | |
21085 | { | |
21086 | arg2 = wxString_in_helper(obj1); | |
21087 | if (arg2 == NULL) SWIG_fail; | |
21088 | temp2 = True; | |
21089 | } | |
21090 | } | |
21091 | if (obj2) { | |
21092 | { | |
21093 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
21094 | temp3 = True; | |
21095 | } | |
21096 | } | |
21097 | { | |
21098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21099 | result = ((wxDateTime const *)arg1)->Format((wxString const &)*arg2,(wxDateTime::TimeZone const &)*arg3); | |
21100 | ||
21101 | wxPyEndAllowThreads(__tstate); | |
21102 | if (PyErr_Occurred()) SWIG_fail; | |
21103 | } | |
21104 | { | |
21105 | #if wxUSE_UNICODE | |
21106 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21107 | #else | |
21108 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21109 | #endif | |
21110 | } | |
21111 | { | |
21112 | if (temp2) | |
21113 | delete arg2; | |
21114 | } | |
21115 | { | |
21116 | if (temp3) delete arg3; | |
21117 | } | |
21118 | return resultobj; | |
21119 | fail: | |
21120 | { | |
21121 | if (temp2) | |
21122 | delete arg2; | |
21123 | } | |
21124 | { | |
21125 | if (temp3) delete arg3; | |
21126 | } | |
21127 | return NULL; | |
21128 | } | |
21129 | ||
21130 | ||
21131 | static PyObject *_wrap_DateTime_FormatDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21132 | PyObject *resultobj; | |
21133 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21134 | wxString result; | |
21135 | PyObject * obj0 = 0 ; | |
21136 | char *kwnames[] = { | |
21137 | (char *) "self", NULL | |
21138 | }; | |
21139 | ||
21140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatDate",kwnames,&obj0)) goto fail; | |
21141 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21143 | { | |
21144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21145 | result = ((wxDateTime const *)arg1)->FormatDate(); | |
21146 | ||
21147 | wxPyEndAllowThreads(__tstate); | |
21148 | if (PyErr_Occurred()) SWIG_fail; | |
21149 | } | |
21150 | { | |
21151 | #if wxUSE_UNICODE | |
21152 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21153 | #else | |
21154 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21155 | #endif | |
21156 | } | |
21157 | return resultobj; | |
21158 | fail: | |
21159 | return NULL; | |
21160 | } | |
21161 | ||
21162 | ||
21163 | static PyObject *_wrap_DateTime_FormatTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21164 | PyObject *resultobj; | |
21165 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21166 | wxString result; | |
21167 | PyObject * obj0 = 0 ; | |
21168 | char *kwnames[] = { | |
21169 | (char *) "self", NULL | |
21170 | }; | |
21171 | ||
21172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatTime",kwnames,&obj0)) goto fail; | |
21173 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21174 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21175 | { | |
21176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21177 | result = ((wxDateTime const *)arg1)->FormatTime(); | |
21178 | ||
21179 | wxPyEndAllowThreads(__tstate); | |
21180 | if (PyErr_Occurred()) SWIG_fail; | |
21181 | } | |
21182 | { | |
21183 | #if wxUSE_UNICODE | |
21184 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21185 | #else | |
21186 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21187 | #endif | |
21188 | } | |
21189 | return resultobj; | |
21190 | fail: | |
21191 | return NULL; | |
21192 | } | |
21193 | ||
21194 | ||
21195 | static PyObject *_wrap_DateTime_FormatISODate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21196 | PyObject *resultobj; | |
21197 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21198 | wxString result; | |
21199 | PyObject * obj0 = 0 ; | |
21200 | char *kwnames[] = { | |
21201 | (char *) "self", NULL | |
21202 | }; | |
21203 | ||
21204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISODate",kwnames,&obj0)) goto fail; | |
21205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21207 | { | |
21208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21209 | result = ((wxDateTime const *)arg1)->FormatISODate(); | |
21210 | ||
21211 | wxPyEndAllowThreads(__tstate); | |
21212 | if (PyErr_Occurred()) SWIG_fail; | |
21213 | } | |
21214 | { | |
21215 | #if wxUSE_UNICODE | |
21216 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21217 | #else | |
21218 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21219 | #endif | |
21220 | } | |
21221 | return resultobj; | |
21222 | fail: | |
21223 | return NULL; | |
21224 | } | |
21225 | ||
21226 | ||
21227 | static PyObject *_wrap_DateTime_FormatISOTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21228 | PyObject *resultobj; | |
21229 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21230 | wxString result; | |
21231 | PyObject * obj0 = 0 ; | |
21232 | char *kwnames[] = { | |
21233 | (char *) "self", NULL | |
21234 | }; | |
21235 | ||
21236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISOTime",kwnames,&obj0)) goto fail; | |
21237 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21238 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21239 | { | |
21240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21241 | result = ((wxDateTime const *)arg1)->FormatISOTime(); | |
21242 | ||
21243 | wxPyEndAllowThreads(__tstate); | |
21244 | if (PyErr_Occurred()) SWIG_fail; | |
21245 | } | |
21246 | { | |
21247 | #if wxUSE_UNICODE | |
21248 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21249 | #else | |
21250 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21251 | #endif | |
21252 | } | |
21253 | return resultobj; | |
21254 | fail: | |
21255 | return NULL; | |
21256 | } | |
21257 | ||
21258 | ||
21259 | static PyObject * DateTime_swigregister(PyObject *self, PyObject *args) { | |
21260 | PyObject *obj; | |
21261 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21262 | SWIG_TypeClientData(SWIGTYPE_p_wxDateTime, obj); | |
21263 | Py_INCREF(obj); | |
21264 | return Py_BuildValue((char *)""); | |
21265 | } | |
21266 | static PyObject *_wrap_TimeSpan_Seconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21267 | PyObject *resultobj; | |
21268 | long arg1 ; | |
21269 | wxTimeSpan result; | |
21270 | PyObject * obj0 = 0 ; | |
21271 | char *kwnames[] = { | |
21272 | (char *) "sec", NULL | |
21273 | }; | |
21274 | ||
21275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Seconds",kwnames,&obj0)) goto fail; | |
21276 | arg1 = (long) SWIG_AsLong(obj0); | |
21277 | if (PyErr_Occurred()) SWIG_fail; | |
21278 | { | |
21279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21280 | result = wxTimeSpan::Seconds(arg1); | |
21281 | ||
21282 | wxPyEndAllowThreads(__tstate); | |
21283 | if (PyErr_Occurred()) SWIG_fail; | |
21284 | } | |
21285 | { | |
21286 | wxTimeSpan * resultptr; | |
21287 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21288 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21289 | } | |
21290 | return resultobj; | |
21291 | fail: | |
21292 | return NULL; | |
21293 | } | |
21294 | ||
21295 | ||
21296 | static PyObject *_wrap_TimeSpan_Second(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21297 | PyObject *resultobj; | |
21298 | wxTimeSpan result; | |
21299 | char *kwnames[] = { | |
21300 | NULL | |
21301 | }; | |
21302 | ||
21303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Second",kwnames)) goto fail; | |
21304 | { | |
21305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21306 | result = wxTimeSpan::Second(); | |
21307 | ||
21308 | wxPyEndAllowThreads(__tstate); | |
21309 | if (PyErr_Occurred()) SWIG_fail; | |
21310 | } | |
21311 | { | |
21312 | wxTimeSpan * resultptr; | |
21313 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21314 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21315 | } | |
21316 | return resultobj; | |
21317 | fail: | |
21318 | return NULL; | |
21319 | } | |
21320 | ||
21321 | ||
21322 | static PyObject *_wrap_TimeSpan_Minutes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21323 | PyObject *resultobj; | |
21324 | long arg1 ; | |
21325 | wxTimeSpan result; | |
21326 | PyObject * obj0 = 0 ; | |
21327 | char *kwnames[] = { | |
21328 | (char *) "min", NULL | |
21329 | }; | |
21330 | ||
21331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Minutes",kwnames,&obj0)) goto fail; | |
21332 | arg1 = (long) SWIG_AsLong(obj0); | |
21333 | if (PyErr_Occurred()) SWIG_fail; | |
21334 | { | |
21335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21336 | result = wxTimeSpan::Minutes(arg1); | |
21337 | ||
21338 | wxPyEndAllowThreads(__tstate); | |
21339 | if (PyErr_Occurred()) SWIG_fail; | |
21340 | } | |
21341 | { | |
21342 | wxTimeSpan * resultptr; | |
21343 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21344 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21345 | } | |
21346 | return resultobj; | |
21347 | fail: | |
21348 | return NULL; | |
21349 | } | |
21350 | ||
21351 | ||
21352 | static PyObject *_wrap_TimeSpan_Minute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21353 | PyObject *resultobj; | |
21354 | wxTimeSpan result; | |
21355 | char *kwnames[] = { | |
21356 | NULL | |
21357 | }; | |
21358 | ||
21359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Minute",kwnames)) goto fail; | |
21360 | { | |
21361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21362 | result = wxTimeSpan::Minute(); | |
21363 | ||
21364 | wxPyEndAllowThreads(__tstate); | |
21365 | if (PyErr_Occurred()) SWIG_fail; | |
21366 | } | |
21367 | { | |
21368 | wxTimeSpan * resultptr; | |
21369 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21370 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21371 | } | |
21372 | return resultobj; | |
21373 | fail: | |
21374 | return NULL; | |
21375 | } | |
21376 | ||
21377 | ||
21378 | static PyObject *_wrap_TimeSpan_Hours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21379 | PyObject *resultobj; | |
21380 | long arg1 ; | |
21381 | wxTimeSpan result; | |
21382 | PyObject * obj0 = 0 ; | |
21383 | char *kwnames[] = { | |
21384 | (char *) "hours", NULL | |
21385 | }; | |
21386 | ||
21387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Hours",kwnames,&obj0)) goto fail; | |
21388 | arg1 = (long) SWIG_AsLong(obj0); | |
21389 | if (PyErr_Occurred()) SWIG_fail; | |
21390 | { | |
21391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21392 | result = wxTimeSpan::Hours(arg1); | |
21393 | ||
21394 | wxPyEndAllowThreads(__tstate); | |
21395 | if (PyErr_Occurred()) SWIG_fail; | |
21396 | } | |
21397 | { | |
21398 | wxTimeSpan * resultptr; | |
21399 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21400 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21401 | } | |
21402 | return resultobj; | |
21403 | fail: | |
21404 | return NULL; | |
21405 | } | |
21406 | ||
21407 | ||
21408 | static PyObject *_wrap_TimeSpan_Hour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21409 | PyObject *resultobj; | |
21410 | wxTimeSpan result; | |
21411 | char *kwnames[] = { | |
21412 | NULL | |
21413 | }; | |
21414 | ||
21415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Hour",kwnames)) goto fail; | |
21416 | { | |
21417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21418 | result = wxTimeSpan::Hour(); | |
21419 | ||
21420 | wxPyEndAllowThreads(__tstate); | |
21421 | if (PyErr_Occurred()) SWIG_fail; | |
21422 | } | |
21423 | { | |
21424 | wxTimeSpan * resultptr; | |
21425 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21426 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21427 | } | |
21428 | return resultobj; | |
21429 | fail: | |
21430 | return NULL; | |
21431 | } | |
21432 | ||
21433 | ||
21434 | static PyObject *_wrap_TimeSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21435 | PyObject *resultobj; | |
21436 | long arg1 ; | |
21437 | wxTimeSpan result; | |
21438 | PyObject * obj0 = 0 ; | |
21439 | char *kwnames[] = { | |
21440 | (char *) "days", NULL | |
21441 | }; | |
21442 | ||
21443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Days",kwnames,&obj0)) goto fail; | |
21444 | arg1 = (long) SWIG_AsLong(obj0); | |
21445 | if (PyErr_Occurred()) SWIG_fail; | |
21446 | { | |
21447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21448 | result = wxTimeSpan::Days(arg1); | |
21449 | ||
21450 | wxPyEndAllowThreads(__tstate); | |
21451 | if (PyErr_Occurred()) SWIG_fail; | |
21452 | } | |
21453 | { | |
21454 | wxTimeSpan * resultptr; | |
21455 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21456 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21457 | } | |
21458 | return resultobj; | |
21459 | fail: | |
21460 | return NULL; | |
21461 | } | |
21462 | ||
21463 | ||
21464 | static PyObject *_wrap_TimeSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21465 | PyObject *resultobj; | |
21466 | wxTimeSpan result; | |
21467 | char *kwnames[] = { | |
21468 | NULL | |
21469 | }; | |
21470 | ||
21471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Day",kwnames)) goto fail; | |
21472 | { | |
21473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21474 | result = wxTimeSpan::Day(); | |
21475 | ||
21476 | wxPyEndAllowThreads(__tstate); | |
21477 | if (PyErr_Occurred()) SWIG_fail; | |
21478 | } | |
21479 | { | |
21480 | wxTimeSpan * resultptr; | |
21481 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21482 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21483 | } | |
21484 | return resultobj; | |
21485 | fail: | |
21486 | return NULL; | |
21487 | } | |
21488 | ||
21489 | ||
21490 | static PyObject *_wrap_TimeSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21491 | PyObject *resultobj; | |
21492 | long arg1 ; | |
21493 | wxTimeSpan result; | |
21494 | PyObject * obj0 = 0 ; | |
21495 | char *kwnames[] = { | |
21496 | (char *) "days", NULL | |
21497 | }; | |
21498 | ||
21499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Weeks",kwnames,&obj0)) goto fail; | |
21500 | arg1 = (long) SWIG_AsLong(obj0); | |
21501 | if (PyErr_Occurred()) SWIG_fail; | |
21502 | { | |
21503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21504 | result = wxTimeSpan::Weeks(arg1); | |
21505 | ||
21506 | wxPyEndAllowThreads(__tstate); | |
21507 | if (PyErr_Occurred()) SWIG_fail; | |
21508 | } | |
21509 | { | |
21510 | wxTimeSpan * resultptr; | |
21511 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21512 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21513 | } | |
21514 | return resultobj; | |
21515 | fail: | |
21516 | return NULL; | |
21517 | } | |
21518 | ||
21519 | ||
21520 | static PyObject *_wrap_TimeSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21521 | PyObject *resultobj; | |
21522 | wxTimeSpan result; | |
21523 | char *kwnames[] = { | |
21524 | NULL | |
21525 | }; | |
21526 | ||
21527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Week",kwnames)) goto fail; | |
21528 | { | |
21529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21530 | result = wxTimeSpan::Week(); | |
21531 | ||
21532 | wxPyEndAllowThreads(__tstate); | |
21533 | if (PyErr_Occurred()) SWIG_fail; | |
21534 | } | |
21535 | { | |
21536 | wxTimeSpan * resultptr; | |
21537 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21538 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21539 | } | |
21540 | return resultobj; | |
21541 | fail: | |
21542 | return NULL; | |
21543 | } | |
21544 | ||
21545 | ||
21546 | static PyObject *_wrap_new_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21547 | PyObject *resultobj; | |
21548 | long arg1 = (long) 0 ; | |
21549 | long arg2 = (long) 0 ; | |
21550 | long arg3 = (long) 0 ; | |
21551 | long arg4 = (long) 0 ; | |
21552 | wxTimeSpan *result; | |
21553 | PyObject * obj0 = 0 ; | |
21554 | PyObject * obj1 = 0 ; | |
21555 | PyObject * obj2 = 0 ; | |
21556 | PyObject * obj3 = 0 ; | |
21557 | char *kwnames[] = { | |
21558 | (char *) "hours",(char *) "minutes",(char *) "seconds",(char *) "milliseconds", NULL | |
21559 | }; | |
21560 | ||
21561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TimeSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
21562 | if (obj0) { | |
21563 | arg1 = (long) SWIG_AsLong(obj0); | |
21564 | if (PyErr_Occurred()) SWIG_fail; | |
21565 | } | |
21566 | if (obj1) { | |
21567 | arg2 = (long) SWIG_AsLong(obj1); | |
21568 | if (PyErr_Occurred()) SWIG_fail; | |
21569 | } | |
21570 | if (obj2) { | |
21571 | arg3 = (long) SWIG_AsLong(obj2); | |
21572 | if (PyErr_Occurred()) SWIG_fail; | |
21573 | } | |
21574 | if (obj3) { | |
21575 | arg4 = (long) SWIG_AsLong(obj3); | |
21576 | if (PyErr_Occurred()) SWIG_fail; | |
21577 | } | |
21578 | { | |
21579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21580 | result = (wxTimeSpan *)new wxTimeSpan(arg1,arg2,arg3,arg4); | |
21581 | ||
21582 | wxPyEndAllowThreads(__tstate); | |
21583 | if (PyErr_Occurred()) SWIG_fail; | |
21584 | } | |
21585 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1); | |
21586 | return resultobj; | |
21587 | fail: | |
21588 | return NULL; | |
21589 | } | |
21590 | ||
21591 | ||
21592 | static PyObject *_wrap_delete_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21593 | PyObject *resultobj; | |
21594 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21595 | PyObject * obj0 = 0 ; | |
21596 | char *kwnames[] = { | |
21597 | (char *) "self", NULL | |
21598 | }; | |
21599 | ||
21600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimeSpan",kwnames,&obj0)) goto fail; | |
21601 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21602 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21603 | { | |
21604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21605 | delete arg1; | |
21606 | ||
21607 | wxPyEndAllowThreads(__tstate); | |
21608 | if (PyErr_Occurred()) SWIG_fail; | |
21609 | } | |
21610 | Py_INCREF(Py_None); resultobj = Py_None; | |
21611 | return resultobj; | |
21612 | fail: | |
21613 | return NULL; | |
21614 | } | |
21615 | ||
21616 | ||
21617 | static PyObject *_wrap_TimeSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21618 | PyObject *resultobj; | |
21619 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21620 | wxTimeSpan *arg2 = 0 ; | |
21621 | wxTimeSpan *result; | |
21622 | PyObject * obj0 = 0 ; | |
21623 | PyObject * obj1 = 0 ; | |
21624 | char *kwnames[] = { | |
21625 | (char *) "self",(char *) "diff", NULL | |
21626 | }; | |
21627 | ||
21628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Add",kwnames,&obj0,&obj1)) goto fail; | |
21629 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21630 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21631 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21632 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21633 | SWIG_fail; | |
21634 | if (arg2 == NULL) { | |
21635 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21636 | SWIG_fail; | |
21637 | } | |
21638 | { | |
21639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21640 | { | |
21641 | wxTimeSpan &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2); | |
21642 | result = (wxTimeSpan *) &_result_ref; | |
21643 | } | |
21644 | ||
21645 | wxPyEndAllowThreads(__tstate); | |
21646 | if (PyErr_Occurred()) SWIG_fail; | |
21647 | } | |
21648 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
21649 | return resultobj; | |
21650 | fail: | |
21651 | return NULL; | |
21652 | } | |
21653 | ||
21654 | ||
21655 | static PyObject *_wrap_TimeSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21656 | PyObject *resultobj; | |
21657 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21658 | wxTimeSpan *arg2 = 0 ; | |
21659 | wxTimeSpan *result; | |
21660 | PyObject * obj0 = 0 ; | |
21661 | PyObject * obj1 = 0 ; | |
21662 | char *kwnames[] = { | |
21663 | (char *) "self",(char *) "diff", NULL | |
21664 | }; | |
21665 | ||
21666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
21667 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21668 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21669 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21670 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21671 | SWIG_fail; | |
21672 | if (arg2 == NULL) { | |
21673 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21674 | SWIG_fail; | |
21675 | } | |
21676 | { | |
21677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21678 | { | |
21679 | wxTimeSpan &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2); | |
21680 | result = (wxTimeSpan *) &_result_ref; | |
21681 | } | |
21682 | ||
21683 | wxPyEndAllowThreads(__tstate); | |
21684 | if (PyErr_Occurred()) SWIG_fail; | |
21685 | } | |
21686 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
21687 | return resultobj; | |
21688 | fail: | |
21689 | return NULL; | |
21690 | } | |
21691 | ||
21692 | ||
21693 | static PyObject *_wrap_TimeSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21694 | PyObject *resultobj; | |
21695 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21696 | int arg2 ; | |
21697 | wxTimeSpan *result; | |
21698 | PyObject * obj0 = 0 ; | |
21699 | PyObject * obj1 = 0 ; | |
21700 | char *kwnames[] = { | |
21701 | (char *) "self",(char *) "n", NULL | |
21702 | }; | |
21703 | ||
21704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Multiply",kwnames,&obj0,&obj1)) goto fail; | |
21705 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21706 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21707 | arg2 = (int) SWIG_AsInt(obj1); | |
21708 | if (PyErr_Occurred()) SWIG_fail; | |
21709 | { | |
21710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21711 | { | |
21712 | wxTimeSpan &_result_ref = (arg1)->Multiply(arg2); | |
21713 | result = (wxTimeSpan *) &_result_ref; | |
21714 | } | |
21715 | ||
21716 | wxPyEndAllowThreads(__tstate); | |
21717 | if (PyErr_Occurred()) SWIG_fail; | |
21718 | } | |
21719 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
21720 | return resultobj; | |
21721 | fail: | |
21722 | return NULL; | |
21723 | } | |
21724 | ||
21725 | ||
21726 | static PyObject *_wrap_TimeSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21727 | PyObject *resultobj; | |
21728 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21729 | wxTimeSpan *result; | |
21730 | PyObject * obj0 = 0 ; | |
21731 | char *kwnames[] = { | |
21732 | (char *) "self", NULL | |
21733 | }; | |
21734 | ||
21735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Neg",kwnames,&obj0)) goto fail; | |
21736 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21737 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21738 | { | |
21739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21740 | { | |
21741 | wxTimeSpan &_result_ref = (arg1)->Neg(); | |
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_Abs(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_Abs",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 | result = ((wxTimeSpan const *)arg1)->Abs(); | |
21770 | ||
21771 | wxPyEndAllowThreads(__tstate); | |
21772 | if (PyErr_Occurred()) SWIG_fail; | |
21773 | } | |
21774 | { | |
21775 | wxTimeSpan * resultptr; | |
21776 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21777 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21778 | } | |
21779 | return resultobj; | |
21780 | fail: | |
21781 | return NULL; | |
21782 | } | |
21783 | ||
21784 | ||
21785 | static PyObject *_wrap_TimeSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21786 | PyObject *resultobj; | |
21787 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21788 | wxTimeSpan *arg2 = 0 ; | |
21789 | wxTimeSpan *result; | |
21790 | PyObject * obj0 = 0 ; | |
21791 | PyObject * obj1 = 0 ; | |
21792 | char *kwnames[] = { | |
21793 | (char *) "self",(char *) "diff", NULL | |
21794 | }; | |
21795 | ||
21796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
21797 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21798 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21799 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21800 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21801 | SWIG_fail; | |
21802 | if (arg2 == NULL) { | |
21803 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21804 | SWIG_fail; | |
21805 | } | |
21806 | { | |
21807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21808 | { | |
21809 | wxTimeSpan &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2); | |
21810 | result = (wxTimeSpan *) &_result_ref; | |
21811 | } | |
21812 | ||
21813 | wxPyEndAllowThreads(__tstate); | |
21814 | if (PyErr_Occurred()) SWIG_fail; | |
21815 | } | |
21816 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
21817 | return resultobj; | |
21818 | fail: | |
21819 | return NULL; | |
21820 | } | |
21821 | ||
21822 | ||
21823 | static PyObject *_wrap_TimeSpan___isub__(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 *) "diff", NULL | |
21832 | }; | |
21833 | ||
21834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___isub__",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 | { | |
21847 | wxTimeSpan &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2); | |
21848 | result = (wxTimeSpan *) &_result_ref; | |
21849 | } | |
21850 | ||
21851 | wxPyEndAllowThreads(__tstate); | |
21852 | if (PyErr_Occurred()) SWIG_fail; | |
21853 | } | |
21854 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
21855 | return resultobj; | |
21856 | fail: | |
21857 | return NULL; | |
21858 | } | |
21859 | ||
21860 | ||
21861 | static PyObject *_wrap_TimeSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21862 | PyObject *resultobj; | |
21863 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21864 | int arg2 ; | |
21865 | wxTimeSpan *result; | |
21866 | PyObject * obj0 = 0 ; | |
21867 | PyObject * obj1 = 0 ; | |
21868 | char *kwnames[] = { | |
21869 | (char *) "self",(char *) "n", NULL | |
21870 | }; | |
21871 | ||
21872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___imul__",kwnames,&obj0,&obj1)) goto fail; | |
21873 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21874 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21875 | arg2 = (int) SWIG_AsInt(obj1); | |
21876 | if (PyErr_Occurred()) SWIG_fail; | |
21877 | { | |
21878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21879 | { | |
21880 | wxTimeSpan &_result_ref = (arg1)->operator *=(arg2); | |
21881 | result = (wxTimeSpan *) &_result_ref; | |
21882 | } | |
21883 | ||
21884 | wxPyEndAllowThreads(__tstate); | |
21885 | if (PyErr_Occurred()) SWIG_fail; | |
21886 | } | |
21887 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
21888 | return resultobj; | |
21889 | fail: | |
21890 | return NULL; | |
21891 | } | |
21892 | ||
21893 | ||
21894 | static PyObject *_wrap_TimeSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21895 | PyObject *resultobj; | |
21896 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21897 | wxTimeSpan *result; | |
21898 | PyObject * obj0 = 0 ; | |
21899 | char *kwnames[] = { | |
21900 | (char *) "self", NULL | |
21901 | }; | |
21902 | ||
21903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan___neg__",kwnames,&obj0)) goto fail; | |
21904 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21905 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21906 | { | |
21907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21908 | { | |
21909 | wxTimeSpan &_result_ref = (arg1)->operator -(); | |
21910 | result = (wxTimeSpan *) &_result_ref; | |
21911 | } | |
21912 | ||
21913 | wxPyEndAllowThreads(__tstate); | |
21914 | if (PyErr_Occurred()) SWIG_fail; | |
21915 | } | |
21916 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
21917 | return resultobj; | |
21918 | fail: | |
21919 | return NULL; | |
21920 | } | |
21921 | ||
21922 | ||
21923 | static PyObject *_wrap_TimeSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21924 | PyObject *resultobj; | |
21925 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21926 | wxTimeSpan *arg2 = 0 ; | |
21927 | wxTimeSpan result; | |
21928 | PyObject * obj0 = 0 ; | |
21929 | PyObject * obj1 = 0 ; | |
21930 | char *kwnames[] = { | |
21931 | (char *) "self",(char *) "other", NULL | |
21932 | }; | |
21933 | ||
21934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___add__",kwnames,&obj0,&obj1)) goto fail; | |
21935 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21936 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21937 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21938 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21939 | SWIG_fail; | |
21940 | if (arg2 == NULL) { | |
21941 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21942 | SWIG_fail; | |
21943 | } | |
21944 | { | |
21945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21946 | result = wxTimeSpan___add__(arg1,(wxTimeSpan const &)*arg2); | |
21947 | ||
21948 | wxPyEndAllowThreads(__tstate); | |
21949 | if (PyErr_Occurred()) SWIG_fail; | |
21950 | } | |
21951 | { | |
21952 | wxTimeSpan * resultptr; | |
21953 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21954 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21955 | } | |
21956 | return resultobj; | |
21957 | fail: | |
21958 | return NULL; | |
21959 | } | |
21960 | ||
21961 | ||
21962 | static PyObject *_wrap_TimeSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21963 | PyObject *resultobj; | |
21964 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21965 | wxTimeSpan *arg2 = 0 ; | |
21966 | wxTimeSpan 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___sub__",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) | |
21978 | SWIG_fail; | |
21979 | if (arg2 == NULL) { | |
21980 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21981 | SWIG_fail; | |
21982 | } | |
21983 | { | |
21984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21985 | result = wxTimeSpan___sub__(arg1,(wxTimeSpan const &)*arg2); | |
21986 | ||
21987 | wxPyEndAllowThreads(__tstate); | |
21988 | if (PyErr_Occurred()) SWIG_fail; | |
21989 | } | |
21990 | { | |
21991 | wxTimeSpan * resultptr; | |
21992 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21993 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21994 | } | |
21995 | return resultobj; | |
21996 | fail: | |
21997 | return NULL; | |
21998 | } | |
21999 | ||
22000 | ||
22001 | static PyObject *_wrap_TimeSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22002 | PyObject *resultobj; | |
22003 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22004 | int arg2 ; | |
22005 | wxTimeSpan result; | |
22006 | PyObject * obj0 = 0 ; | |
22007 | PyObject * obj1 = 0 ; | |
22008 | char *kwnames[] = { | |
22009 | (char *) "self",(char *) "n", NULL | |
22010 | }; | |
22011 | ||
22012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___mul__",kwnames,&obj0,&obj1)) goto fail; | |
22013 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22014 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22015 | arg2 = (int) SWIG_AsInt(obj1); | |
22016 | if (PyErr_Occurred()) SWIG_fail; | |
22017 | { | |
22018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22019 | result = wxTimeSpan___mul__(arg1,arg2); | |
22020 | ||
22021 | wxPyEndAllowThreads(__tstate); | |
22022 | if (PyErr_Occurred()) SWIG_fail; | |
22023 | } | |
22024 | { | |
22025 | wxTimeSpan * resultptr; | |
22026 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
22027 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
22028 | } | |
22029 | return resultobj; | |
22030 | fail: | |
22031 | return NULL; | |
22032 | } | |
22033 | ||
22034 | ||
22035 | static PyObject *_wrap_TimeSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22036 | PyObject *resultobj; | |
22037 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22038 | int arg2 ; | |
22039 | wxTimeSpan result; | |
22040 | PyObject * obj0 = 0 ; | |
22041 | PyObject * obj1 = 0 ; | |
22042 | char *kwnames[] = { | |
22043 | (char *) "self",(char *) "n", NULL | |
22044 | }; | |
22045 | ||
22046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___rmul__",kwnames,&obj0,&obj1)) goto fail; | |
22047 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22048 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22049 | arg2 = (int) SWIG_AsInt(obj1); | |
22050 | if (PyErr_Occurred()) SWIG_fail; | |
22051 | { | |
22052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22053 | result = wxTimeSpan___rmul__(arg1,arg2); | |
22054 | ||
22055 | wxPyEndAllowThreads(__tstate); | |
22056 | if (PyErr_Occurred()) SWIG_fail; | |
22057 | } | |
22058 | { | |
22059 | wxTimeSpan * resultptr; | |
22060 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
22061 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
22062 | } | |
22063 | return resultobj; | |
22064 | fail: | |
22065 | return NULL; | |
22066 | } | |
22067 | ||
22068 | ||
22069 | static PyObject *_wrap_TimeSpan___lt__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22070 | PyObject *resultobj; | |
22071 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22072 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
22073 | bool result; | |
22074 | PyObject * obj0 = 0 ; | |
22075 | PyObject * obj1 = 0 ; | |
22076 | char *kwnames[] = { | |
22077 | (char *) "self",(char *) "other", NULL | |
22078 | }; | |
22079 | ||
22080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___lt__",kwnames,&obj0,&obj1)) goto fail; | |
22081 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22082 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22083 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22084 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22085 | { | |
22086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22087 | result = (bool)wxTimeSpan___lt__(arg1,(wxTimeSpan const *)arg2); | |
22088 | ||
22089 | wxPyEndAllowThreads(__tstate); | |
22090 | if (PyErr_Occurred()) SWIG_fail; | |
22091 | } | |
22092 | { | |
22093 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22094 | } | |
22095 | return resultobj; | |
22096 | fail: | |
22097 | return NULL; | |
22098 | } | |
22099 | ||
22100 | ||
22101 | static PyObject *_wrap_TimeSpan___le__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22102 | PyObject *resultobj; | |
22103 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22104 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
22105 | bool result; | |
22106 | PyObject * obj0 = 0 ; | |
22107 | PyObject * obj1 = 0 ; | |
22108 | char *kwnames[] = { | |
22109 | (char *) "self",(char *) "other", NULL | |
22110 | }; | |
22111 | ||
22112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___le__",kwnames,&obj0,&obj1)) goto fail; | |
22113 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22114 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22115 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22116 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22117 | { | |
22118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22119 | result = (bool)wxTimeSpan___le__(arg1,(wxTimeSpan const *)arg2); | |
22120 | ||
22121 | wxPyEndAllowThreads(__tstate); | |
22122 | if (PyErr_Occurred()) SWIG_fail; | |
22123 | } | |
22124 | { | |
22125 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22126 | } | |
22127 | return resultobj; | |
22128 | fail: | |
22129 | return NULL; | |
22130 | } | |
22131 | ||
22132 | ||
22133 | static PyObject *_wrap_TimeSpan___gt__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22134 | PyObject *resultobj; | |
22135 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22136 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
22137 | bool result; | |
22138 | PyObject * obj0 = 0 ; | |
22139 | PyObject * obj1 = 0 ; | |
22140 | char *kwnames[] = { | |
22141 | (char *) "self",(char *) "other", NULL | |
22142 | }; | |
22143 | ||
22144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___gt__",kwnames,&obj0,&obj1)) goto fail; | |
22145 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22146 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22147 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22148 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22149 | { | |
22150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22151 | result = (bool)wxTimeSpan___gt__(arg1,(wxTimeSpan const *)arg2); | |
22152 | ||
22153 | wxPyEndAllowThreads(__tstate); | |
22154 | if (PyErr_Occurred()) SWIG_fail; | |
22155 | } | |
22156 | { | |
22157 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22158 | } | |
22159 | return resultobj; | |
22160 | fail: | |
22161 | return NULL; | |
22162 | } | |
22163 | ||
22164 | ||
22165 | static PyObject *_wrap_TimeSpan___ge__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22166 | PyObject *resultobj; | |
22167 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22168 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
22169 | bool result; | |
22170 | PyObject * obj0 = 0 ; | |
22171 | PyObject * obj1 = 0 ; | |
22172 | char *kwnames[] = { | |
22173 | (char *) "self",(char *) "other", NULL | |
22174 | }; | |
22175 | ||
22176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ge__",kwnames,&obj0,&obj1)) goto fail; | |
22177 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22179 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22180 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22181 | { | |
22182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22183 | result = (bool)wxTimeSpan___ge__(arg1,(wxTimeSpan const *)arg2); | |
22184 | ||
22185 | wxPyEndAllowThreads(__tstate); | |
22186 | if (PyErr_Occurred()) SWIG_fail; | |
22187 | } | |
22188 | { | |
22189 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22190 | } | |
22191 | return resultobj; | |
22192 | fail: | |
22193 | return NULL; | |
22194 | } | |
22195 | ||
22196 | ||
22197 | static PyObject *_wrap_TimeSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22198 | PyObject *resultobj; | |
22199 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22200 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
22201 | bool result; | |
22202 | PyObject * obj0 = 0 ; | |
22203 | PyObject * obj1 = 0 ; | |
22204 | char *kwnames[] = { | |
22205 | (char *) "self",(char *) "other", NULL | |
22206 | }; | |
22207 | ||
22208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
22209 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22210 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22211 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22213 | { | |
22214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22215 | result = (bool)wxTimeSpan___eq__(arg1,(wxTimeSpan const *)arg2); | |
22216 | ||
22217 | wxPyEndAllowThreads(__tstate); | |
22218 | if (PyErr_Occurred()) SWIG_fail; | |
22219 | } | |
22220 | { | |
22221 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22222 | } | |
22223 | return resultobj; | |
22224 | fail: | |
22225 | return NULL; | |
22226 | } | |
22227 | ||
22228 | ||
22229 | static PyObject *_wrap_TimeSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22230 | PyObject *resultobj; | |
22231 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22232 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
22233 | bool result; | |
22234 | PyObject * obj0 = 0 ; | |
22235 | PyObject * obj1 = 0 ; | |
22236 | char *kwnames[] = { | |
22237 | (char *) "self",(char *) "other", NULL | |
22238 | }; | |
22239 | ||
22240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
22241 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22242 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22243 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22244 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22245 | { | |
22246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22247 | result = (bool)wxTimeSpan___ne__(arg1,(wxTimeSpan const *)arg2); | |
22248 | ||
22249 | wxPyEndAllowThreads(__tstate); | |
22250 | if (PyErr_Occurred()) SWIG_fail; | |
22251 | } | |
22252 | { | |
22253 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22254 | } | |
22255 | return resultobj; | |
22256 | fail: | |
22257 | return NULL; | |
22258 | } | |
22259 | ||
22260 | ||
22261 | static PyObject *_wrap_TimeSpan_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22262 | PyObject *resultobj; | |
22263 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22264 | bool result; | |
22265 | PyObject * obj0 = 0 ; | |
22266 | char *kwnames[] = { | |
22267 | (char *) "self", NULL | |
22268 | }; | |
22269 | ||
22270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNull",kwnames,&obj0)) goto fail; | |
22271 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22272 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22273 | { | |
22274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22275 | result = (bool)((wxTimeSpan const *)arg1)->IsNull(); | |
22276 | ||
22277 | wxPyEndAllowThreads(__tstate); | |
22278 | if (PyErr_Occurred()) SWIG_fail; | |
22279 | } | |
22280 | { | |
22281 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22282 | } | |
22283 | return resultobj; | |
22284 | fail: | |
22285 | return NULL; | |
22286 | } | |
22287 | ||
22288 | ||
22289 | static PyObject *_wrap_TimeSpan_IsPositive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22290 | PyObject *resultobj; | |
22291 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22292 | bool result; | |
22293 | PyObject * obj0 = 0 ; | |
22294 | char *kwnames[] = { | |
22295 | (char *) "self", NULL | |
22296 | }; | |
22297 | ||
22298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsPositive",kwnames,&obj0)) goto fail; | |
22299 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22300 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22301 | { | |
22302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22303 | result = (bool)((wxTimeSpan const *)arg1)->IsPositive(); | |
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_IsNegative(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22318 | PyObject *resultobj; | |
22319 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22320 | bool result; | |
22321 | PyObject * obj0 = 0 ; | |
22322 | char *kwnames[] = { | |
22323 | (char *) "self", NULL | |
22324 | }; | |
22325 | ||
22326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNegative",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 = (bool)((wxTimeSpan const *)arg1)->IsNegative(); | |
22332 | ||
22333 | wxPyEndAllowThreads(__tstate); | |
22334 | if (PyErr_Occurred()) SWIG_fail; | |
22335 | } | |
22336 | { | |
22337 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22338 | } | |
22339 | return resultobj; | |
22340 | fail: | |
22341 | return NULL; | |
22342 | } | |
22343 | ||
22344 | ||
22345 | static PyObject *_wrap_TimeSpan_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22346 | PyObject *resultobj; | |
22347 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22348 | wxTimeSpan *arg2 = 0 ; | |
22349 | bool result; | |
22350 | PyObject * obj0 = 0 ; | |
22351 | PyObject * obj1 = 0 ; | |
22352 | char *kwnames[] = { | |
22353 | (char *) "self",(char *) "ts", NULL | |
22354 | }; | |
22355 | ||
22356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsEqualTo",kwnames,&obj0,&obj1)) goto fail; | |
22357 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22358 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22359 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22360 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22361 | SWIG_fail; | |
22362 | if (arg2 == NULL) { | |
22363 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22364 | SWIG_fail; | |
22365 | } | |
22366 | { | |
22367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22368 | result = (bool)((wxTimeSpan const *)arg1)->IsEqualTo((wxTimeSpan const &)*arg2); | |
22369 | ||
22370 | wxPyEndAllowThreads(__tstate); | |
22371 | if (PyErr_Occurred()) SWIG_fail; | |
22372 | } | |
22373 | { | |
22374 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22375 | } | |
22376 | return resultobj; | |
22377 | fail: | |
22378 | return NULL; | |
22379 | } | |
22380 | ||
22381 | ||
22382 | static PyObject *_wrap_TimeSpan_IsLongerThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22383 | PyObject *resultobj; | |
22384 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22385 | wxTimeSpan *arg2 = 0 ; | |
22386 | bool result; | |
22387 | PyObject * obj0 = 0 ; | |
22388 | PyObject * obj1 = 0 ; | |
22389 | char *kwnames[] = { | |
22390 | (char *) "self",(char *) "ts", NULL | |
22391 | }; | |
22392 | ||
22393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsLongerThan",kwnames,&obj0,&obj1)) goto fail; | |
22394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22396 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22397 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22398 | SWIG_fail; | |
22399 | if (arg2 == NULL) { | |
22400 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22401 | SWIG_fail; | |
22402 | } | |
22403 | { | |
22404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22405 | result = (bool)((wxTimeSpan const *)arg1)->IsLongerThan((wxTimeSpan const &)*arg2); | |
22406 | ||
22407 | wxPyEndAllowThreads(__tstate); | |
22408 | if (PyErr_Occurred()) SWIG_fail; | |
22409 | } | |
22410 | { | |
22411 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22412 | } | |
22413 | return resultobj; | |
22414 | fail: | |
22415 | return NULL; | |
22416 | } | |
22417 | ||
22418 | ||
22419 | static PyObject *_wrap_TimeSpan_IsShorterThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22420 | PyObject *resultobj; | |
22421 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22422 | wxTimeSpan *arg2 = 0 ; | |
22423 | bool result; | |
22424 | PyObject * obj0 = 0 ; | |
22425 | PyObject * obj1 = 0 ; | |
22426 | char *kwnames[] = { | |
22427 | (char *) "self",(char *) "t", NULL | |
22428 | }; | |
22429 | ||
22430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsShorterThan",kwnames,&obj0,&obj1)) goto fail; | |
22431 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22432 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22433 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22434 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22435 | SWIG_fail; | |
22436 | if (arg2 == NULL) { | |
22437 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22438 | SWIG_fail; | |
22439 | } | |
22440 | { | |
22441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22442 | result = (bool)((wxTimeSpan const *)arg1)->IsShorterThan((wxTimeSpan const &)*arg2); | |
22443 | ||
22444 | wxPyEndAllowThreads(__tstate); | |
22445 | if (PyErr_Occurred()) SWIG_fail; | |
22446 | } | |
22447 | { | |
22448 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22449 | } | |
22450 | return resultobj; | |
22451 | fail: | |
22452 | return NULL; | |
22453 | } | |
22454 | ||
22455 | ||
22456 | static PyObject *_wrap_TimeSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22457 | PyObject *resultobj; | |
22458 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22459 | int result; | |
22460 | PyObject * obj0 = 0 ; | |
22461 | char *kwnames[] = { | |
22462 | (char *) "self", NULL | |
22463 | }; | |
22464 | ||
22465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetWeeks",kwnames,&obj0)) goto fail; | |
22466 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22467 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22468 | { | |
22469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22470 | result = (int)((wxTimeSpan const *)arg1)->GetWeeks(); | |
22471 | ||
22472 | wxPyEndAllowThreads(__tstate); | |
22473 | if (PyErr_Occurred()) SWIG_fail; | |
22474 | } | |
22475 | resultobj = SWIG_FromInt((int)result); | |
22476 | return resultobj; | |
22477 | fail: | |
22478 | return NULL; | |
22479 | } | |
22480 | ||
22481 | ||
22482 | static PyObject *_wrap_TimeSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22483 | PyObject *resultobj; | |
22484 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22485 | int result; | |
22486 | PyObject * obj0 = 0 ; | |
22487 | char *kwnames[] = { | |
22488 | (char *) "self", NULL | |
22489 | }; | |
22490 | ||
22491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetDays",kwnames,&obj0)) goto fail; | |
22492 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22493 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22494 | { | |
22495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22496 | result = (int)((wxTimeSpan const *)arg1)->GetDays(); | |
22497 | ||
22498 | wxPyEndAllowThreads(__tstate); | |
22499 | if (PyErr_Occurred()) SWIG_fail; | |
22500 | } | |
22501 | resultobj = SWIG_FromInt((int)result); | |
22502 | return resultobj; | |
22503 | fail: | |
22504 | return NULL; | |
22505 | } | |
22506 | ||
22507 | ||
22508 | static PyObject *_wrap_TimeSpan_GetHours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22509 | PyObject *resultobj; | |
22510 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22511 | int result; | |
22512 | PyObject * obj0 = 0 ; | |
22513 | char *kwnames[] = { | |
22514 | (char *) "self", NULL | |
22515 | }; | |
22516 | ||
22517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetHours",kwnames,&obj0)) goto fail; | |
22518 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22519 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22520 | { | |
22521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22522 | result = (int)((wxTimeSpan const *)arg1)->GetHours(); | |
22523 | ||
22524 | wxPyEndAllowThreads(__tstate); | |
22525 | if (PyErr_Occurred()) SWIG_fail; | |
22526 | } | |
22527 | resultobj = SWIG_FromInt((int)result); | |
22528 | return resultobj; | |
22529 | fail: | |
22530 | return NULL; | |
22531 | } | |
22532 | ||
22533 | ||
22534 | static PyObject *_wrap_TimeSpan_GetMinutes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22535 | PyObject *resultobj; | |
22536 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22537 | int result; | |
22538 | PyObject * obj0 = 0 ; | |
22539 | char *kwnames[] = { | |
22540 | (char *) "self", NULL | |
22541 | }; | |
22542 | ||
22543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMinutes",kwnames,&obj0)) goto fail; | |
22544 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22545 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22546 | { | |
22547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22548 | result = (int)((wxTimeSpan const *)arg1)->GetMinutes(); | |
22549 | ||
22550 | wxPyEndAllowThreads(__tstate); | |
22551 | if (PyErr_Occurred()) SWIG_fail; | |
22552 | } | |
22553 | resultobj = SWIG_FromInt((int)result); | |
22554 | return resultobj; | |
22555 | fail: | |
22556 | return NULL; | |
22557 | } | |
22558 | ||
22559 | ||
22560 | static PyObject *_wrap_TimeSpan_GetSeconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22561 | PyObject *resultobj; | |
22562 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22563 | wxLongLong result; | |
22564 | PyObject * obj0 = 0 ; | |
22565 | char *kwnames[] = { | |
22566 | (char *) "self", NULL | |
22567 | }; | |
22568 | ||
22569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetSeconds",kwnames,&obj0)) goto fail; | |
22570 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22571 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22572 | { | |
22573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22574 | result = ((wxTimeSpan const *)arg1)->GetSeconds(); | |
22575 | ||
22576 | wxPyEndAllowThreads(__tstate); | |
22577 | if (PyErr_Occurred()) SWIG_fail; | |
22578 | } | |
22579 | { | |
22580 | PyObject *hi, *lo, *shifter, *shifted; | |
22581 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
22582 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
22583 | shifter = PyLong_FromLong(32); | |
22584 | shifted = PyNumber_Lshift(hi, shifter); | |
22585 | resultobj = PyNumber_Or(shifted, lo); | |
22586 | Py_DECREF(hi); | |
22587 | Py_DECREF(lo); | |
22588 | Py_DECREF(shifter); | |
22589 | Py_DECREF(shifted); | |
22590 | } | |
22591 | return resultobj; | |
22592 | fail: | |
22593 | return NULL; | |
22594 | } | |
22595 | ||
22596 | ||
22597 | static PyObject *_wrap_TimeSpan_GetMilliseconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22598 | PyObject *resultobj; | |
22599 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22600 | wxLongLong result; | |
22601 | PyObject * obj0 = 0 ; | |
22602 | char *kwnames[] = { | |
22603 | (char *) "self", NULL | |
22604 | }; | |
22605 | ||
22606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMilliseconds",kwnames,&obj0)) goto fail; | |
22607 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22608 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22609 | { | |
22610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22611 | result = ((wxTimeSpan const *)arg1)->GetMilliseconds(); | |
22612 | ||
22613 | wxPyEndAllowThreads(__tstate); | |
22614 | if (PyErr_Occurred()) SWIG_fail; | |
22615 | } | |
22616 | { | |
22617 | PyObject *hi, *lo, *shifter, *shifted; | |
22618 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
22619 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
22620 | shifter = PyLong_FromLong(32); | |
22621 | shifted = PyNumber_Lshift(hi, shifter); | |
22622 | resultobj = PyNumber_Or(shifted, lo); | |
22623 | Py_DECREF(hi); | |
22624 | Py_DECREF(lo); | |
22625 | Py_DECREF(shifter); | |
22626 | Py_DECREF(shifted); | |
22627 | } | |
22628 | return resultobj; | |
22629 | fail: | |
22630 | return NULL; | |
22631 | } | |
22632 | ||
22633 | ||
22634 | static PyObject *_wrap_TimeSpan_Format(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22635 | PyObject *resultobj; | |
22636 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22637 | wxString const &arg2_defvalue = wxPyTimeSpanFormatStr ; | |
22638 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
22639 | wxString result; | |
22640 | bool temp2 = False ; | |
22641 | PyObject * obj0 = 0 ; | |
22642 | PyObject * obj1 = 0 ; | |
22643 | char *kwnames[] = { | |
22644 | (char *) "self",(char *) "format", NULL | |
22645 | }; | |
22646 | ||
22647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TimeSpan_Format",kwnames,&obj0,&obj1)) goto fail; | |
22648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22650 | if (obj1) { | |
22651 | { | |
22652 | arg2 = wxString_in_helper(obj1); | |
22653 | if (arg2 == NULL) SWIG_fail; | |
22654 | temp2 = True; | |
22655 | } | |
22656 | } | |
22657 | { | |
22658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22659 | result = ((wxTimeSpan const *)arg1)->Format((wxString const &)*arg2); | |
22660 | ||
22661 | wxPyEndAllowThreads(__tstate); | |
22662 | if (PyErr_Occurred()) SWIG_fail; | |
22663 | } | |
22664 | { | |
22665 | #if wxUSE_UNICODE | |
22666 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
22667 | #else | |
22668 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
22669 | #endif | |
22670 | } | |
22671 | { | |
22672 | if (temp2) | |
22673 | delete arg2; | |
22674 | } | |
22675 | return resultobj; | |
22676 | fail: | |
22677 | { | |
22678 | if (temp2) | |
22679 | delete arg2; | |
22680 | } | |
22681 | return NULL; | |
22682 | } | |
22683 | ||
22684 | ||
22685 | static PyObject * TimeSpan_swigregister(PyObject *self, PyObject *args) { | |
22686 | PyObject *obj; | |
22687 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22688 | SWIG_TypeClientData(SWIGTYPE_p_wxTimeSpan, obj); | |
22689 | Py_INCREF(obj); | |
22690 | return Py_BuildValue((char *)""); | |
22691 | } | |
22692 | static PyObject *_wrap_new_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22693 | PyObject *resultobj; | |
22694 | int arg1 = (int) 0 ; | |
22695 | int arg2 = (int) 0 ; | |
22696 | int arg3 = (int) 0 ; | |
22697 | int arg4 = (int) 0 ; | |
22698 | wxDateSpan *result; | |
22699 | PyObject * obj0 = 0 ; | |
22700 | PyObject * obj1 = 0 ; | |
22701 | PyObject * obj2 = 0 ; | |
22702 | PyObject * obj3 = 0 ; | |
22703 | char *kwnames[] = { | |
22704 | (char *) "years",(char *) "months",(char *) "weeks",(char *) "days", NULL | |
22705 | }; | |
22706 | ||
22707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_DateSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
22708 | if (obj0) { | |
22709 | arg1 = (int) SWIG_AsInt(obj0); | |
22710 | if (PyErr_Occurred()) SWIG_fail; | |
22711 | } | |
22712 | if (obj1) { | |
22713 | arg2 = (int) SWIG_AsInt(obj1); | |
22714 | if (PyErr_Occurred()) SWIG_fail; | |
22715 | } | |
22716 | if (obj2) { | |
22717 | arg3 = (int) SWIG_AsInt(obj2); | |
22718 | if (PyErr_Occurred()) SWIG_fail; | |
22719 | } | |
22720 | if (obj3) { | |
22721 | arg4 = (int) SWIG_AsInt(obj3); | |
22722 | if (PyErr_Occurred()) SWIG_fail; | |
22723 | } | |
22724 | { | |
22725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22726 | result = (wxDateSpan *)new wxDateSpan(arg1,arg2,arg3,arg4); | |
22727 | ||
22728 | wxPyEndAllowThreads(__tstate); | |
22729 | if (PyErr_Occurred()) SWIG_fail; | |
22730 | } | |
22731 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1); | |
22732 | return resultobj; | |
22733 | fail: | |
22734 | return NULL; | |
22735 | } | |
22736 | ||
22737 | ||
22738 | static PyObject *_wrap_delete_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22739 | PyObject *resultobj; | |
22740 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22741 | PyObject * obj0 = 0 ; | |
22742 | char *kwnames[] = { | |
22743 | (char *) "self", NULL | |
22744 | }; | |
22745 | ||
22746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateSpan",kwnames,&obj0)) goto fail; | |
22747 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
22748 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22749 | { | |
22750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22751 | delete arg1; | |
22752 | ||
22753 | wxPyEndAllowThreads(__tstate); | |
22754 | if (PyErr_Occurred()) SWIG_fail; | |
22755 | } | |
22756 | Py_INCREF(Py_None); resultobj = Py_None; | |
22757 | return resultobj; | |
22758 | fail: | |
22759 | return NULL; | |
22760 | } | |
22761 | ||
22762 | ||
22763 | static PyObject *_wrap_DateSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22764 | PyObject *resultobj; | |
22765 | int arg1 ; | |
22766 | wxDateSpan result; | |
22767 | PyObject * obj0 = 0 ; | |
22768 | char *kwnames[] = { | |
22769 | (char *) "days", NULL | |
22770 | }; | |
22771 | ||
22772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Days",kwnames,&obj0)) goto fail; | |
22773 | arg1 = (int) SWIG_AsInt(obj0); | |
22774 | if (PyErr_Occurred()) SWIG_fail; | |
22775 | { | |
22776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22777 | result = wxDateSpan::Days(arg1); | |
22778 | ||
22779 | wxPyEndAllowThreads(__tstate); | |
22780 | if (PyErr_Occurred()) SWIG_fail; | |
22781 | } | |
22782 | { | |
22783 | wxDateSpan * resultptr; | |
22784 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
22785 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
22786 | } | |
22787 | return resultobj; | |
22788 | fail: | |
22789 | return NULL; | |
22790 | } | |
22791 | ||
22792 | ||
22793 | static PyObject *_wrap_DateSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22794 | PyObject *resultobj; | |
22795 | wxDateSpan result; | |
22796 | char *kwnames[] = { | |
22797 | NULL | |
22798 | }; | |
22799 | ||
22800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Day",kwnames)) goto fail; | |
22801 | { | |
22802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22803 | result = wxDateSpan::Day(); | |
22804 | ||
22805 | wxPyEndAllowThreads(__tstate); | |
22806 | if (PyErr_Occurred()) SWIG_fail; | |
22807 | } | |
22808 | { | |
22809 | wxDateSpan * resultptr; | |
22810 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
22811 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
22812 | } | |
22813 | return resultobj; | |
22814 | fail: | |
22815 | return NULL; | |
22816 | } | |
22817 | ||
22818 | ||
22819 | static PyObject *_wrap_DateSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22820 | PyObject *resultobj; | |
22821 | int arg1 ; | |
22822 | wxDateSpan result; | |
22823 | PyObject * obj0 = 0 ; | |
22824 | char *kwnames[] = { | |
22825 | (char *) "weeks", NULL | |
22826 | }; | |
22827 | ||
22828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Weeks",kwnames,&obj0)) goto fail; | |
22829 | arg1 = (int) SWIG_AsInt(obj0); | |
22830 | if (PyErr_Occurred()) SWIG_fail; | |
22831 | { | |
22832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22833 | result = wxDateSpan::Weeks(arg1); | |
22834 | ||
22835 | wxPyEndAllowThreads(__tstate); | |
22836 | if (PyErr_Occurred()) SWIG_fail; | |
22837 | } | |
22838 | { | |
22839 | wxDateSpan * resultptr; | |
22840 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
22841 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
22842 | } | |
22843 | return resultobj; | |
22844 | fail: | |
22845 | return NULL; | |
22846 | } | |
22847 | ||
22848 | ||
22849 | static PyObject *_wrap_DateSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22850 | PyObject *resultobj; | |
22851 | wxDateSpan result; | |
22852 | char *kwnames[] = { | |
22853 | NULL | |
22854 | }; | |
22855 | ||
22856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Week",kwnames)) goto fail; | |
22857 | { | |
22858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22859 | result = wxDateSpan::Week(); | |
22860 | ||
22861 | wxPyEndAllowThreads(__tstate); | |
22862 | if (PyErr_Occurred()) SWIG_fail; | |
22863 | } | |
22864 | { | |
22865 | wxDateSpan * resultptr; | |
22866 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
22867 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
22868 | } | |
22869 | return resultobj; | |
22870 | fail: | |
22871 | return NULL; | |
22872 | } | |
22873 | ||
22874 | ||
22875 | static PyObject *_wrap_DateSpan_Months(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22876 | PyObject *resultobj; | |
22877 | int arg1 ; | |
22878 | wxDateSpan result; | |
22879 | PyObject * obj0 = 0 ; | |
22880 | char *kwnames[] = { | |
22881 | (char *) "mon", NULL | |
22882 | }; | |
22883 | ||
22884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Months",kwnames,&obj0)) goto fail; | |
22885 | arg1 = (int) SWIG_AsInt(obj0); | |
22886 | if (PyErr_Occurred()) SWIG_fail; | |
22887 | { | |
22888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22889 | result = wxDateSpan::Months(arg1); | |
22890 | ||
22891 | wxPyEndAllowThreads(__tstate); | |
22892 | if (PyErr_Occurred()) SWIG_fail; | |
22893 | } | |
22894 | { | |
22895 | wxDateSpan * resultptr; | |
22896 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
22897 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
22898 | } | |
22899 | return resultobj; | |
22900 | fail: | |
22901 | return NULL; | |
22902 | } | |
22903 | ||
22904 | ||
22905 | static PyObject *_wrap_DateSpan_Month(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22906 | PyObject *resultobj; | |
22907 | wxDateSpan result; | |
22908 | char *kwnames[] = { | |
22909 | NULL | |
22910 | }; | |
22911 | ||
22912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Month",kwnames)) goto fail; | |
22913 | { | |
22914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22915 | result = wxDateSpan::Month(); | |
22916 | ||
22917 | wxPyEndAllowThreads(__tstate); | |
22918 | if (PyErr_Occurred()) SWIG_fail; | |
22919 | } | |
22920 | { | |
22921 | wxDateSpan * resultptr; | |
22922 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
22923 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
22924 | } | |
22925 | return resultobj; | |
22926 | fail: | |
22927 | return NULL; | |
22928 | } | |
22929 | ||
22930 | ||
22931 | static PyObject *_wrap_DateSpan_Years(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22932 | PyObject *resultobj; | |
22933 | int arg1 ; | |
22934 | wxDateSpan result; | |
22935 | PyObject * obj0 = 0 ; | |
22936 | char *kwnames[] = { | |
22937 | (char *) "years", NULL | |
22938 | }; | |
22939 | ||
22940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Years",kwnames,&obj0)) goto fail; | |
22941 | arg1 = (int) SWIG_AsInt(obj0); | |
22942 | if (PyErr_Occurred()) SWIG_fail; | |
22943 | { | |
22944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22945 | result = wxDateSpan::Years(arg1); | |
22946 | ||
22947 | wxPyEndAllowThreads(__tstate); | |
22948 | if (PyErr_Occurred()) SWIG_fail; | |
22949 | } | |
22950 | { | |
22951 | wxDateSpan * resultptr; | |
22952 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
22953 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
22954 | } | |
22955 | return resultobj; | |
22956 | fail: | |
22957 | return NULL; | |
22958 | } | |
22959 | ||
22960 | ||
22961 | static PyObject *_wrap_DateSpan_Year(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22962 | PyObject *resultobj; | |
22963 | wxDateSpan result; | |
22964 | char *kwnames[] = { | |
22965 | NULL | |
22966 | }; | |
22967 | ||
22968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Year",kwnames)) goto fail; | |
22969 | { | |
22970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22971 | result = wxDateSpan::Year(); | |
22972 | ||
22973 | wxPyEndAllowThreads(__tstate); | |
22974 | if (PyErr_Occurred()) SWIG_fail; | |
22975 | } | |
22976 | { | |
22977 | wxDateSpan * resultptr; | |
22978 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
22979 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
22980 | } | |
22981 | return resultobj; | |
22982 | fail: | |
22983 | return NULL; | |
22984 | } | |
22985 | ||
22986 | ||
22987 | static PyObject *_wrap_DateSpan_SetYears(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22988 | PyObject *resultobj; | |
22989 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
22990 | int arg2 ; | |
22991 | wxDateSpan *result; | |
22992 | PyObject * obj0 = 0 ; | |
22993 | PyObject * obj1 = 0 ; | |
22994 | char *kwnames[] = { | |
22995 | (char *) "self",(char *) "n", NULL | |
22996 | }; | |
22997 | ||
22998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetYears",kwnames,&obj0,&obj1)) goto fail; | |
22999 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23000 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23001 | arg2 = (int) SWIG_AsInt(obj1); | |
23002 | if (PyErr_Occurred()) SWIG_fail; | |
23003 | { | |
23004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23005 | { | |
23006 | wxDateSpan &_result_ref = (arg1)->SetYears(arg2); | |
23007 | result = (wxDateSpan *) &_result_ref; | |
23008 | } | |
23009 | ||
23010 | wxPyEndAllowThreads(__tstate); | |
23011 | if (PyErr_Occurred()) SWIG_fail; | |
23012 | } | |
23013 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23014 | return resultobj; | |
23015 | fail: | |
23016 | return NULL; | |
23017 | } | |
23018 | ||
23019 | ||
23020 | static PyObject *_wrap_DateSpan_SetMonths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23021 | PyObject *resultobj; | |
23022 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23023 | int arg2 ; | |
23024 | wxDateSpan *result; | |
23025 | PyObject * obj0 = 0 ; | |
23026 | PyObject * obj1 = 0 ; | |
23027 | char *kwnames[] = { | |
23028 | (char *) "self",(char *) "n", NULL | |
23029 | }; | |
23030 | ||
23031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetMonths",kwnames,&obj0,&obj1)) goto fail; | |
23032 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23033 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23034 | arg2 = (int) SWIG_AsInt(obj1); | |
23035 | if (PyErr_Occurred()) SWIG_fail; | |
23036 | { | |
23037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23038 | { | |
23039 | wxDateSpan &_result_ref = (arg1)->SetMonths(arg2); | |
23040 | result = (wxDateSpan *) &_result_ref; | |
23041 | } | |
23042 | ||
23043 | wxPyEndAllowThreads(__tstate); | |
23044 | if (PyErr_Occurred()) SWIG_fail; | |
23045 | } | |
23046 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23047 | return resultobj; | |
23048 | fail: | |
23049 | return NULL; | |
23050 | } | |
23051 | ||
23052 | ||
23053 | static PyObject *_wrap_DateSpan_SetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23054 | PyObject *resultobj; | |
23055 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23056 | int arg2 ; | |
23057 | wxDateSpan *result; | |
23058 | PyObject * obj0 = 0 ; | |
23059 | PyObject * obj1 = 0 ; | |
23060 | char *kwnames[] = { | |
23061 | (char *) "self",(char *) "n", NULL | |
23062 | }; | |
23063 | ||
23064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetWeeks",kwnames,&obj0,&obj1)) goto fail; | |
23065 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23066 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23067 | arg2 = (int) SWIG_AsInt(obj1); | |
23068 | if (PyErr_Occurred()) SWIG_fail; | |
23069 | { | |
23070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23071 | { | |
23072 | wxDateSpan &_result_ref = (arg1)->SetWeeks(arg2); | |
23073 | result = (wxDateSpan *) &_result_ref; | |
23074 | } | |
23075 | ||
23076 | wxPyEndAllowThreads(__tstate); | |
23077 | if (PyErr_Occurred()) SWIG_fail; | |
23078 | } | |
23079 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23080 | return resultobj; | |
23081 | fail: | |
23082 | return NULL; | |
23083 | } | |
23084 | ||
23085 | ||
23086 | static PyObject *_wrap_DateSpan_SetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23087 | PyObject *resultobj; | |
23088 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23089 | int arg2 ; | |
23090 | wxDateSpan *result; | |
23091 | PyObject * obj0 = 0 ; | |
23092 | PyObject * obj1 = 0 ; | |
23093 | char *kwnames[] = { | |
23094 | (char *) "self",(char *) "n", NULL | |
23095 | }; | |
23096 | ||
23097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetDays",kwnames,&obj0,&obj1)) goto fail; | |
23098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23100 | arg2 = (int) SWIG_AsInt(obj1); | |
23101 | if (PyErr_Occurred()) SWIG_fail; | |
23102 | { | |
23103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23104 | { | |
23105 | wxDateSpan &_result_ref = (arg1)->SetDays(arg2); | |
23106 | result = (wxDateSpan *) &_result_ref; | |
23107 | } | |
23108 | ||
23109 | wxPyEndAllowThreads(__tstate); | |
23110 | if (PyErr_Occurred()) SWIG_fail; | |
23111 | } | |
23112 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23113 | return resultobj; | |
23114 | fail: | |
23115 | return NULL; | |
23116 | } | |
23117 | ||
23118 | ||
23119 | static PyObject *_wrap_DateSpan_GetYears(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23120 | PyObject *resultobj; | |
23121 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23122 | int result; | |
23123 | PyObject * obj0 = 0 ; | |
23124 | char *kwnames[] = { | |
23125 | (char *) "self", NULL | |
23126 | }; | |
23127 | ||
23128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetYears",kwnames,&obj0)) goto fail; | |
23129 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23130 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23131 | { | |
23132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23133 | result = (int)((wxDateSpan const *)arg1)->GetYears(); | |
23134 | ||
23135 | wxPyEndAllowThreads(__tstate); | |
23136 | if (PyErr_Occurred()) SWIG_fail; | |
23137 | } | |
23138 | resultobj = SWIG_FromInt((int)result); | |
23139 | return resultobj; | |
23140 | fail: | |
23141 | return NULL; | |
23142 | } | |
23143 | ||
23144 | ||
23145 | static PyObject *_wrap_DateSpan_GetMonths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23146 | PyObject *resultobj; | |
23147 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23148 | int result; | |
23149 | PyObject * obj0 = 0 ; | |
23150 | char *kwnames[] = { | |
23151 | (char *) "self", NULL | |
23152 | }; | |
23153 | ||
23154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetMonths",kwnames,&obj0)) goto fail; | |
23155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23157 | { | |
23158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23159 | result = (int)((wxDateSpan const *)arg1)->GetMonths(); | |
23160 | ||
23161 | wxPyEndAllowThreads(__tstate); | |
23162 | if (PyErr_Occurred()) SWIG_fail; | |
23163 | } | |
23164 | resultobj = SWIG_FromInt((int)result); | |
23165 | return resultobj; | |
23166 | fail: | |
23167 | return NULL; | |
23168 | } | |
23169 | ||
23170 | ||
23171 | static PyObject *_wrap_DateSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23172 | PyObject *resultobj; | |
23173 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23174 | int result; | |
23175 | PyObject * obj0 = 0 ; | |
23176 | char *kwnames[] = { | |
23177 | (char *) "self", NULL | |
23178 | }; | |
23179 | ||
23180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetWeeks",kwnames,&obj0)) goto fail; | |
23181 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23183 | { | |
23184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23185 | result = (int)((wxDateSpan const *)arg1)->GetWeeks(); | |
23186 | ||
23187 | wxPyEndAllowThreads(__tstate); | |
23188 | if (PyErr_Occurred()) SWIG_fail; | |
23189 | } | |
23190 | resultobj = SWIG_FromInt((int)result); | |
23191 | return resultobj; | |
23192 | fail: | |
23193 | return NULL; | |
23194 | } | |
23195 | ||
23196 | ||
23197 | static PyObject *_wrap_DateSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23198 | PyObject *resultobj; | |
23199 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23200 | int result; | |
23201 | PyObject * obj0 = 0 ; | |
23202 | char *kwnames[] = { | |
23203 | (char *) "self", NULL | |
23204 | }; | |
23205 | ||
23206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetDays",kwnames,&obj0)) goto fail; | |
23207 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23208 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23209 | { | |
23210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23211 | result = (int)((wxDateSpan const *)arg1)->GetDays(); | |
23212 | ||
23213 | wxPyEndAllowThreads(__tstate); | |
23214 | if (PyErr_Occurred()) SWIG_fail; | |
23215 | } | |
23216 | resultobj = SWIG_FromInt((int)result); | |
23217 | return resultobj; | |
23218 | fail: | |
23219 | return NULL; | |
23220 | } | |
23221 | ||
23222 | ||
23223 | static PyObject *_wrap_DateSpan_GetTotalDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23224 | PyObject *resultobj; | |
23225 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23226 | int result; | |
23227 | PyObject * obj0 = 0 ; | |
23228 | char *kwnames[] = { | |
23229 | (char *) "self", NULL | |
23230 | }; | |
23231 | ||
23232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetTotalDays",kwnames,&obj0)) goto fail; | |
23233 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23234 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23235 | { | |
23236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23237 | result = (int)((wxDateSpan const *)arg1)->GetTotalDays(); | |
23238 | ||
23239 | wxPyEndAllowThreads(__tstate); | |
23240 | if (PyErr_Occurred()) SWIG_fail; | |
23241 | } | |
23242 | resultobj = SWIG_FromInt((int)result); | |
23243 | return resultobj; | |
23244 | fail: | |
23245 | return NULL; | |
23246 | } | |
23247 | ||
23248 | ||
23249 | static PyObject *_wrap_DateSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23250 | PyObject *resultobj; | |
23251 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23252 | wxDateSpan *arg2 = 0 ; | |
23253 | wxDateSpan *result; | |
23254 | PyObject * obj0 = 0 ; | |
23255 | PyObject * obj1 = 0 ; | |
23256 | char *kwnames[] = { | |
23257 | (char *) "self",(char *) "other", NULL | |
23258 | }; | |
23259 | ||
23260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Add",kwnames,&obj0,&obj1)) goto fail; | |
23261 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23262 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23263 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23264 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23265 | SWIG_fail; | |
23266 | if (arg2 == NULL) { | |
23267 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23268 | SWIG_fail; | |
23269 | } | |
23270 | { | |
23271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23272 | { | |
23273 | wxDateSpan &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2); | |
23274 | result = (wxDateSpan *) &_result_ref; | |
23275 | } | |
23276 | ||
23277 | wxPyEndAllowThreads(__tstate); | |
23278 | if (PyErr_Occurred()) SWIG_fail; | |
23279 | } | |
23280 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23281 | return resultobj; | |
23282 | fail: | |
23283 | return NULL; | |
23284 | } | |
23285 | ||
23286 | ||
23287 | static PyObject *_wrap_DateSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23288 | PyObject *resultobj; | |
23289 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23290 | wxDateSpan *arg2 = 0 ; | |
23291 | wxDateSpan *result; | |
23292 | PyObject * obj0 = 0 ; | |
23293 | PyObject * obj1 = 0 ; | |
23294 | char *kwnames[] = { | |
23295 | (char *) "self",(char *) "other", NULL | |
23296 | }; | |
23297 | ||
23298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
23299 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23300 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23301 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23302 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23303 | SWIG_fail; | |
23304 | if (arg2 == NULL) { | |
23305 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23306 | SWIG_fail; | |
23307 | } | |
23308 | { | |
23309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23310 | { | |
23311 | wxDateSpan &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2); | |
23312 | result = (wxDateSpan *) &_result_ref; | |
23313 | } | |
23314 | ||
23315 | wxPyEndAllowThreads(__tstate); | |
23316 | if (PyErr_Occurred()) SWIG_fail; | |
23317 | } | |
23318 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23319 | return resultobj; | |
23320 | fail: | |
23321 | return NULL; | |
23322 | } | |
23323 | ||
23324 | ||
23325 | static PyObject *_wrap_DateSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23326 | PyObject *resultobj; | |
23327 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23328 | wxDateSpan *result; | |
23329 | PyObject * obj0 = 0 ; | |
23330 | char *kwnames[] = { | |
23331 | (char *) "self", NULL | |
23332 | }; | |
23333 | ||
23334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Neg",kwnames,&obj0)) goto fail; | |
23335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23337 | { | |
23338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23339 | { | |
23340 | wxDateSpan &_result_ref = (arg1)->Neg(); | |
23341 | result = (wxDateSpan *) &_result_ref; | |
23342 | } | |
23343 | ||
23344 | wxPyEndAllowThreads(__tstate); | |
23345 | if (PyErr_Occurred()) SWIG_fail; | |
23346 | } | |
23347 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23348 | return resultobj; | |
23349 | fail: | |
23350 | return NULL; | |
23351 | } | |
23352 | ||
23353 | ||
23354 | static PyObject *_wrap_DateSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23355 | PyObject *resultobj; | |
23356 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23357 | int arg2 ; | |
23358 | wxDateSpan *result; | |
23359 | PyObject * obj0 = 0 ; | |
23360 | PyObject * obj1 = 0 ; | |
23361 | char *kwnames[] = { | |
23362 | (char *) "self",(char *) "factor", NULL | |
23363 | }; | |
23364 | ||
23365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Multiply",kwnames,&obj0,&obj1)) goto fail; | |
23366 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23367 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23368 | arg2 = (int) SWIG_AsInt(obj1); | |
23369 | if (PyErr_Occurred()) SWIG_fail; | |
23370 | { | |
23371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23372 | { | |
23373 | wxDateSpan &_result_ref = (arg1)->Multiply(arg2); | |
23374 | result = (wxDateSpan *) &_result_ref; | |
23375 | } | |
23376 | ||
23377 | wxPyEndAllowThreads(__tstate); | |
23378 | if (PyErr_Occurred()) SWIG_fail; | |
23379 | } | |
23380 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23381 | return resultobj; | |
23382 | fail: | |
23383 | return NULL; | |
23384 | } | |
23385 | ||
23386 | ||
23387 | static PyObject *_wrap_DateSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23388 | PyObject *resultobj; | |
23389 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23390 | wxDateSpan *arg2 = 0 ; | |
23391 | wxDateSpan *result; | |
23392 | PyObject * obj0 = 0 ; | |
23393 | PyObject * obj1 = 0 ; | |
23394 | char *kwnames[] = { | |
23395 | (char *) "self",(char *) "other", NULL | |
23396 | }; | |
23397 | ||
23398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
23399 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23400 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23401 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23402 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23403 | SWIG_fail; | |
23404 | if (arg2 == NULL) { | |
23405 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23406 | SWIG_fail; | |
23407 | } | |
23408 | { | |
23409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23410 | { | |
23411 | wxDateSpan &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2); | |
23412 | result = (wxDateSpan *) &_result_ref; | |
23413 | } | |
23414 | ||
23415 | wxPyEndAllowThreads(__tstate); | |
23416 | if (PyErr_Occurred()) SWIG_fail; | |
23417 | } | |
23418 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23419 | return resultobj; | |
23420 | fail: | |
23421 | return NULL; | |
23422 | } | |
23423 | ||
23424 | ||
23425 | static PyObject *_wrap_DateSpan___isub__(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___isub__",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 | { | |
23449 | wxDateSpan &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2); | |
23450 | result = (wxDateSpan *) &_result_ref; | |
23451 | } | |
23452 | ||
23453 | wxPyEndAllowThreads(__tstate); | |
23454 | if (PyErr_Occurred()) SWIG_fail; | |
23455 | } | |
23456 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23457 | return resultobj; | |
23458 | fail: | |
23459 | return NULL; | |
23460 | } | |
23461 | ||
23462 | ||
23463 | static PyObject *_wrap_DateSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23464 | PyObject *resultobj; | |
23465 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23466 | wxDateSpan *result; | |
23467 | PyObject * obj0 = 0 ; | |
23468 | char *kwnames[] = { | |
23469 | (char *) "self", NULL | |
23470 | }; | |
23471 | ||
23472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan___neg__",kwnames,&obj0)) goto fail; | |
23473 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23474 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23475 | { | |
23476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23477 | { | |
23478 | wxDateSpan &_result_ref = (arg1)->operator -(); | |
23479 | result = (wxDateSpan *) &_result_ref; | |
23480 | } | |
23481 | ||
23482 | wxPyEndAllowThreads(__tstate); | |
23483 | if (PyErr_Occurred()) SWIG_fail; | |
23484 | } | |
23485 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23486 | return resultobj; | |
23487 | fail: | |
23488 | return NULL; | |
23489 | } | |
23490 | ||
23491 | ||
23492 | static PyObject *_wrap_DateSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23493 | PyObject *resultobj; | |
23494 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23495 | int arg2 ; | |
23496 | wxDateSpan *result; | |
23497 | PyObject * obj0 = 0 ; | |
23498 | PyObject * obj1 = 0 ; | |
23499 | char *kwnames[] = { | |
23500 | (char *) "self",(char *) "factor", NULL | |
23501 | }; | |
23502 | ||
23503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___imul__",kwnames,&obj0,&obj1)) goto fail; | |
23504 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23505 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23506 | arg2 = (int) SWIG_AsInt(obj1); | |
23507 | if (PyErr_Occurred()) SWIG_fail; | |
23508 | { | |
23509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23510 | { | |
23511 | wxDateSpan &_result_ref = (arg1)->operator *=(arg2); | |
23512 | result = (wxDateSpan *) &_result_ref; | |
23513 | } | |
23514 | ||
23515 | wxPyEndAllowThreads(__tstate); | |
23516 | if (PyErr_Occurred()) SWIG_fail; | |
23517 | } | |
23518 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23519 | return resultobj; | |
23520 | fail: | |
23521 | return NULL; | |
23522 | } | |
23523 | ||
23524 | ||
23525 | static PyObject *_wrap_DateSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23526 | PyObject *resultobj; | |
23527 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23528 | wxDateSpan *arg2 = 0 ; | |
23529 | wxDateSpan result; | |
23530 | PyObject * obj0 = 0 ; | |
23531 | PyObject * obj1 = 0 ; | |
23532 | char *kwnames[] = { | |
23533 | (char *) "self",(char *) "other", NULL | |
23534 | }; | |
23535 | ||
23536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___add__",kwnames,&obj0,&obj1)) goto fail; | |
23537 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23538 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23539 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23540 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23541 | SWIG_fail; | |
23542 | if (arg2 == NULL) { | |
23543 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23544 | SWIG_fail; | |
23545 | } | |
23546 | { | |
23547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23548 | result = wxDateSpan___add__(arg1,(wxDateSpan const &)*arg2); | |
23549 | ||
23550 | wxPyEndAllowThreads(__tstate); | |
23551 | if (PyErr_Occurred()) SWIG_fail; | |
23552 | } | |
23553 | { | |
23554 | wxDateSpan * resultptr; | |
23555 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23556 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23557 | } | |
23558 | return resultobj; | |
23559 | fail: | |
23560 | return NULL; | |
23561 | } | |
23562 | ||
23563 | ||
23564 | static PyObject *_wrap_DateSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23565 | PyObject *resultobj; | |
23566 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23567 | wxDateSpan *arg2 = 0 ; | |
23568 | wxDateSpan 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___sub__",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) | |
23580 | SWIG_fail; | |
23581 | if (arg2 == NULL) { | |
23582 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23583 | SWIG_fail; | |
23584 | } | |
23585 | { | |
23586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23587 | result = wxDateSpan___sub__(arg1,(wxDateSpan const &)*arg2); | |
23588 | ||
23589 | wxPyEndAllowThreads(__tstate); | |
23590 | if (PyErr_Occurred()) SWIG_fail; | |
23591 | } | |
23592 | { | |
23593 | wxDateSpan * resultptr; | |
23594 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23595 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23596 | } | |
23597 | return resultobj; | |
23598 | fail: | |
23599 | return NULL; | |
23600 | } | |
23601 | ||
23602 | ||
23603 | static PyObject *_wrap_DateSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23604 | PyObject *resultobj; | |
23605 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23606 | int arg2 ; | |
23607 | wxDateSpan result; | |
23608 | PyObject * obj0 = 0 ; | |
23609 | PyObject * obj1 = 0 ; | |
23610 | char *kwnames[] = { | |
23611 | (char *) "self",(char *) "n", NULL | |
23612 | }; | |
23613 | ||
23614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___mul__",kwnames,&obj0,&obj1)) goto fail; | |
23615 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23617 | arg2 = (int) SWIG_AsInt(obj1); | |
23618 | if (PyErr_Occurred()) SWIG_fail; | |
23619 | { | |
23620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23621 | result = wxDateSpan___mul__(arg1,arg2); | |
23622 | ||
23623 | wxPyEndAllowThreads(__tstate); | |
23624 | if (PyErr_Occurred()) SWIG_fail; | |
23625 | } | |
23626 | { | |
23627 | wxDateSpan * resultptr; | |
23628 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23629 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23630 | } | |
23631 | return resultobj; | |
23632 | fail: | |
23633 | return NULL; | |
23634 | } | |
23635 | ||
23636 | ||
23637 | static PyObject *_wrap_DateSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23638 | PyObject *resultobj; | |
23639 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23640 | int arg2 ; | |
23641 | wxDateSpan result; | |
23642 | PyObject * obj0 = 0 ; | |
23643 | PyObject * obj1 = 0 ; | |
23644 | char *kwnames[] = { | |
23645 | (char *) "self",(char *) "n", NULL | |
23646 | }; | |
23647 | ||
23648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___rmul__",kwnames,&obj0,&obj1)) goto fail; | |
23649 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23650 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23651 | arg2 = (int) SWIG_AsInt(obj1); | |
23652 | if (PyErr_Occurred()) SWIG_fail; | |
23653 | { | |
23654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23655 | result = wxDateSpan___rmul__(arg1,arg2); | |
23656 | ||
23657 | wxPyEndAllowThreads(__tstate); | |
23658 | if (PyErr_Occurred()) SWIG_fail; | |
23659 | } | |
23660 | { | |
23661 | wxDateSpan * resultptr; | |
23662 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23663 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23664 | } | |
23665 | return resultobj; | |
23666 | fail: | |
23667 | return NULL; | |
23668 | } | |
23669 | ||
23670 | ||
23671 | static PyObject *_wrap_DateSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23672 | PyObject *resultobj; | |
23673 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23674 | wxDateSpan *arg2 = (wxDateSpan *) 0 ; | |
23675 | bool result; | |
23676 | PyObject * obj0 = 0 ; | |
23677 | PyObject * obj1 = 0 ; | |
23678 | char *kwnames[] = { | |
23679 | (char *) "self",(char *) "other", NULL | |
23680 | }; | |
23681 | ||
23682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
23683 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23684 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23685 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23686 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23687 | { | |
23688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23689 | result = (bool)wxDateSpan___eq__(arg1,(wxDateSpan const *)arg2); | |
23690 | ||
23691 | wxPyEndAllowThreads(__tstate); | |
23692 | if (PyErr_Occurred()) SWIG_fail; | |
23693 | } | |
23694 | { | |
23695 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23696 | } | |
23697 | return resultobj; | |
23698 | fail: | |
23699 | return NULL; | |
23700 | } | |
23701 | ||
23702 | ||
23703 | static PyObject *_wrap_DateSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23704 | PyObject *resultobj; | |
23705 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23706 | wxDateSpan *arg2 = (wxDateSpan *) 0 ; | |
23707 | bool result; | |
23708 | PyObject * obj0 = 0 ; | |
23709 | PyObject * obj1 = 0 ; | |
23710 | char *kwnames[] = { | |
23711 | (char *) "self",(char *) "other", NULL | |
23712 | }; | |
23713 | ||
23714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
23715 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23716 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23717 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23718 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23719 | { | |
23720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23721 | result = (bool)wxDateSpan___ne__(arg1,(wxDateSpan const *)arg2); | |
23722 | ||
23723 | wxPyEndAllowThreads(__tstate); | |
23724 | if (PyErr_Occurred()) SWIG_fail; | |
23725 | } | |
23726 | { | |
23727 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23728 | } | |
23729 | return resultobj; | |
23730 | fail: | |
23731 | return NULL; | |
23732 | } | |
23733 | ||
23734 | ||
23735 | static PyObject * DateSpan_swigregister(PyObject *self, PyObject *args) { | |
23736 | PyObject *obj; | |
23737 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23738 | SWIG_TypeClientData(SWIGTYPE_p_wxDateSpan, obj); | |
23739 | Py_INCREF(obj); | |
23740 | return Py_BuildValue((char *)""); | |
23741 | } | |
23742 | static PyObject *_wrap_GetLocalTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23743 | PyObject *resultobj; | |
23744 | long result; | |
23745 | char *kwnames[] = { | |
23746 | NULL | |
23747 | }; | |
23748 | ||
23749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTime",kwnames)) goto fail; | |
23750 | { | |
23751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23752 | result = (long)wxGetLocalTime(); | |
23753 | ||
23754 | wxPyEndAllowThreads(__tstate); | |
23755 | if (PyErr_Occurred()) SWIG_fail; | |
23756 | } | |
23757 | resultobj = SWIG_FromLong((long)result); | |
23758 | return resultobj; | |
23759 | fail: | |
23760 | return NULL; | |
23761 | } | |
23762 | ||
23763 | ||
23764 | static PyObject *_wrap_GetUTCTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23765 | PyObject *resultobj; | |
23766 | long result; | |
23767 | char *kwnames[] = { | |
23768 | NULL | |
23769 | }; | |
23770 | ||
23771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUTCTime",kwnames)) goto fail; | |
23772 | { | |
23773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23774 | result = (long)wxGetUTCTime(); | |
23775 | ||
23776 | wxPyEndAllowThreads(__tstate); | |
23777 | if (PyErr_Occurred()) SWIG_fail; | |
23778 | } | |
23779 | resultobj = SWIG_FromLong((long)result); | |
23780 | return resultobj; | |
23781 | fail: | |
23782 | return NULL; | |
23783 | } | |
23784 | ||
23785 | ||
23786 | static PyObject *_wrap_GetCurrentTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23787 | PyObject *resultobj; | |
23788 | long result; | |
23789 | char *kwnames[] = { | |
23790 | NULL | |
23791 | }; | |
23792 | ||
23793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentTime",kwnames)) goto fail; | |
23794 | { | |
23795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23796 | result = (long)wxGetCurrentTime(); | |
23797 | ||
23798 | wxPyEndAllowThreads(__tstate); | |
23799 | if (PyErr_Occurred()) SWIG_fail; | |
23800 | } | |
23801 | resultobj = SWIG_FromLong((long)result); | |
23802 | return resultobj; | |
23803 | fail: | |
23804 | return NULL; | |
23805 | } | |
23806 | ||
23807 | ||
23808 | static PyObject *_wrap_GetLocalTimeMillis(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23809 | PyObject *resultobj; | |
23810 | wxLongLong result; | |
23811 | char *kwnames[] = { | |
23812 | NULL | |
23813 | }; | |
23814 | ||
23815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTimeMillis",kwnames)) goto fail; | |
23816 | { | |
23817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23818 | result = wxGetLocalTimeMillis(); | |
23819 | ||
23820 | wxPyEndAllowThreads(__tstate); | |
23821 | if (PyErr_Occurred()) SWIG_fail; | |
23822 | } | |
23823 | { | |
23824 | PyObject *hi, *lo, *shifter, *shifted; | |
23825 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
23826 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
23827 | shifter = PyLong_FromLong(32); | |
23828 | shifted = PyNumber_Lshift(hi, shifter); | |
23829 | resultobj = PyNumber_Or(shifted, lo); | |
23830 | Py_DECREF(hi); | |
23831 | Py_DECREF(lo); | |
23832 | Py_DECREF(shifter); | |
23833 | Py_DECREF(shifted); | |
23834 | } | |
23835 | return resultobj; | |
23836 | fail: | |
23837 | return NULL; | |
23838 | } | |
23839 | ||
23840 | ||
23841 | static int _wrap_DefaultDateTime_set(PyObject *_val) { | |
23842 | PyErr_SetString(PyExc_TypeError,"Variable DefaultDateTime is read-only."); | |
23843 | return 1; | |
23844 | } | |
23845 | ||
23846 | ||
23847 | static PyObject *_wrap_DefaultDateTime_get() { | |
23848 | PyObject *pyobj; | |
23849 | ||
23850 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultDateTime), SWIGTYPE_p_wxDateTime, 0); | |
23851 | return pyobj; | |
23852 | } | |
23853 | ||
23854 | ||
23855 | static PyObject *_wrap_new_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23856 | PyObject *resultobj; | |
23857 | int arg1 ; | |
23858 | wxDataFormat *result; | |
23859 | PyObject * obj0 = 0 ; | |
23860 | char *kwnames[] = { | |
23861 | (char *) "type", NULL | |
23862 | }; | |
23863 | ||
23864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DataFormat",kwnames,&obj0)) goto fail; | |
23865 | arg1 = (wxDataFormatId) SWIG_AsInt(obj0); | |
23866 | if (PyErr_Occurred()) SWIG_fail; | |
23867 | { | |
23868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23869 | result = (wxDataFormat *)new wxDataFormat((wxDataFormatId )arg1); | |
23870 | ||
23871 | wxPyEndAllowThreads(__tstate); | |
23872 | if (PyErr_Occurred()) SWIG_fail; | |
23873 | } | |
23874 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1); | |
23875 | return resultobj; | |
23876 | fail: | |
23877 | return NULL; | |
23878 | } | |
23879 | ||
23880 | ||
23881 | static PyObject *_wrap_new_CustomDataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23882 | PyObject *resultobj; | |
23883 | wxString *arg1 = 0 ; | |
23884 | wxDataFormat *result; | |
23885 | bool temp1 = False ; | |
23886 | PyObject * obj0 = 0 ; | |
23887 | char *kwnames[] = { | |
23888 | (char *) "format", NULL | |
23889 | }; | |
23890 | ||
23891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CustomDataFormat",kwnames,&obj0)) goto fail; | |
23892 | { | |
23893 | arg1 = wxString_in_helper(obj0); | |
23894 | if (arg1 == NULL) SWIG_fail; | |
23895 | temp1 = True; | |
23896 | } | |
23897 | { | |
23898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23899 | result = (wxDataFormat *)new wxDataFormat((wxString const &)*arg1); | |
23900 | ||
23901 | wxPyEndAllowThreads(__tstate); | |
23902 | if (PyErr_Occurred()) SWIG_fail; | |
23903 | } | |
23904 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1); | |
23905 | { | |
23906 | if (temp1) | |
23907 | delete arg1; | |
23908 | } | |
23909 | return resultobj; | |
23910 | fail: | |
23911 | { | |
23912 | if (temp1) | |
23913 | delete arg1; | |
23914 | } | |
23915 | return NULL; | |
23916 | } | |
23917 | ||
23918 | ||
23919 | static PyObject *_wrap_delete_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23920 | PyObject *resultobj; | |
23921 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23922 | PyObject * obj0 = 0 ; | |
23923 | char *kwnames[] = { | |
23924 | (char *) "self", NULL | |
23925 | }; | |
23926 | ||
23927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataFormat",kwnames,&obj0)) goto fail; | |
23928 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
23929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23930 | { | |
23931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23932 | delete arg1; | |
23933 | ||
23934 | wxPyEndAllowThreads(__tstate); | |
23935 | if (PyErr_Occurred()) SWIG_fail; | |
23936 | } | |
23937 | Py_INCREF(Py_None); resultobj = Py_None; | |
23938 | return resultobj; | |
23939 | fail: | |
23940 | return NULL; | |
23941 | } | |
23942 | ||
23943 | ||
23944 | static PyObject *_wrap_DataFormat___eq____SWIG_0(PyObject *self, PyObject *args) { | |
23945 | PyObject *resultobj; | |
23946 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23947 | int arg2 ; | |
23948 | bool result; | |
23949 | PyObject * obj0 = 0 ; | |
23950 | PyObject * obj1 = 0 ; | |
23951 | ||
23952 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail; | |
23953 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
23954 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23955 | arg2 = (wxDataFormatId) SWIG_AsInt(obj1); | |
23956 | if (PyErr_Occurred()) SWIG_fail; | |
23957 | { | |
23958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23959 | result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormatId )arg2); | |
23960 | ||
23961 | wxPyEndAllowThreads(__tstate); | |
23962 | if (PyErr_Occurred()) SWIG_fail; | |
23963 | } | |
23964 | { | |
23965 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23966 | } | |
23967 | return resultobj; | |
23968 | fail: | |
23969 | return NULL; | |
23970 | } | |
23971 | ||
23972 | ||
23973 | static PyObject *_wrap_DataFormat___ne____SWIG_0(PyObject *self, PyObject *args) { | |
23974 | PyObject *resultobj; | |
23975 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
23976 | int arg2 ; | |
23977 | bool result; | |
23978 | PyObject * obj0 = 0 ; | |
23979 | PyObject * obj1 = 0 ; | |
23980 | ||
23981 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail; | |
23982 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
23983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23984 | arg2 = (wxDataFormatId) SWIG_AsInt(obj1); | |
23985 | if (PyErr_Occurred()) SWIG_fail; | |
23986 | { | |
23987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23988 | result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormatId )arg2); | |
23989 | ||
23990 | wxPyEndAllowThreads(__tstate); | |
23991 | if (PyErr_Occurred()) SWIG_fail; | |
23992 | } | |
23993 | { | |
23994 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23995 | } | |
23996 | return resultobj; | |
23997 | fail: | |
23998 | return NULL; | |
23999 | } | |
24000 | ||
24001 | ||
24002 | static PyObject *_wrap_DataFormat___eq____SWIG_1(PyObject *self, PyObject *args) { | |
24003 | PyObject *resultobj; | |
24004 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24005 | wxDataFormat *arg2 = 0 ; | |
24006 | bool result; | |
24007 | PyObject * obj0 = 0 ; | |
24008 | PyObject * obj1 = 0 ; | |
24009 | ||
24010 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail; | |
24011 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24013 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24014 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24015 | SWIG_fail; | |
24016 | if (arg2 == NULL) { | |
24017 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24018 | SWIG_fail; | |
24019 | } | |
24020 | { | |
24021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24022 | result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormat const &)*arg2); | |
24023 | ||
24024 | wxPyEndAllowThreads(__tstate); | |
24025 | if (PyErr_Occurred()) SWIG_fail; | |
24026 | } | |
24027 | { | |
24028 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24029 | } | |
24030 | return resultobj; | |
24031 | fail: | |
24032 | return NULL; | |
24033 | } | |
24034 | ||
24035 | ||
24036 | static PyObject *_wrap_DataFormat___eq__(PyObject *self, PyObject *args) { | |
24037 | int argc; | |
24038 | PyObject *argv[3]; | |
24039 | int ii; | |
24040 | ||
24041 | argc = PyObject_Length(args); | |
24042 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
24043 | argv[ii] = PyTuple_GetItem(args,ii); | |
24044 | } | |
24045 | if (argc == 2) { | |
24046 | int _v; | |
24047 | { | |
24048 | void *ptr; | |
24049 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
24050 | _v = 0; | |
24051 | PyErr_Clear(); | |
24052 | } else { | |
24053 | _v = 1; | |
24054 | } | |
24055 | } | |
24056 | if (_v) { | |
24057 | { | |
24058 | void *ptr; | |
24059 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
24060 | _v = 0; | |
24061 | PyErr_Clear(); | |
24062 | } else { | |
24063 | _v = 1; | |
24064 | } | |
24065 | } | |
24066 | if (_v) { | |
24067 | return _wrap_DataFormat___eq____SWIG_1(self,args); | |
24068 | } | |
24069 | } | |
24070 | } | |
24071 | if (argc == 2) { | |
24072 | int _v; | |
24073 | { | |
24074 | void *ptr; | |
24075 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
24076 | _v = 0; | |
24077 | PyErr_Clear(); | |
24078 | } else { | |
24079 | _v = 1; | |
24080 | } | |
24081 | } | |
24082 | if (_v) { | |
24083 | _v = SWIG_CheckInt(argv[1]); | |
24084 | if (_v) { | |
24085 | return _wrap_DataFormat___eq____SWIG_0(self,args); | |
24086 | } | |
24087 | } | |
24088 | } | |
24089 | ||
24090 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___eq__'"); | |
24091 | return NULL; | |
24092 | } | |
24093 | ||
24094 | ||
24095 | static PyObject *_wrap_DataFormat___ne____SWIG_1(PyObject *self, PyObject *args) { | |
24096 | PyObject *resultobj; | |
24097 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24098 | wxDataFormat *arg2 = 0 ; | |
24099 | bool result; | |
24100 | PyObject * obj0 = 0 ; | |
24101 | PyObject * obj1 = 0 ; | |
24102 | ||
24103 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail; | |
24104 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24105 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24106 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24107 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24108 | SWIG_fail; | |
24109 | if (arg2 == NULL) { | |
24110 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24111 | SWIG_fail; | |
24112 | } | |
24113 | { | |
24114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24115 | result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormat const &)*arg2); | |
24116 | ||
24117 | wxPyEndAllowThreads(__tstate); | |
24118 | if (PyErr_Occurred()) SWIG_fail; | |
24119 | } | |
24120 | { | |
24121 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24122 | } | |
24123 | return resultobj; | |
24124 | fail: | |
24125 | return NULL; | |
24126 | } | |
24127 | ||
24128 | ||
24129 | static PyObject *_wrap_DataFormat___ne__(PyObject *self, PyObject *args) { | |
24130 | int argc; | |
24131 | PyObject *argv[3]; | |
24132 | int ii; | |
24133 | ||
24134 | argc = PyObject_Length(args); | |
24135 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
24136 | argv[ii] = PyTuple_GetItem(args,ii); | |
24137 | } | |
24138 | if (argc == 2) { | |
24139 | int _v; | |
24140 | { | |
24141 | void *ptr; | |
24142 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
24143 | _v = 0; | |
24144 | PyErr_Clear(); | |
24145 | } else { | |
24146 | _v = 1; | |
24147 | } | |
24148 | } | |
24149 | if (_v) { | |
24150 | { | |
24151 | void *ptr; | |
24152 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
24153 | _v = 0; | |
24154 | PyErr_Clear(); | |
24155 | } else { | |
24156 | _v = 1; | |
24157 | } | |
24158 | } | |
24159 | if (_v) { | |
24160 | return _wrap_DataFormat___ne____SWIG_1(self,args); | |
24161 | } | |
24162 | } | |
24163 | } | |
24164 | if (argc == 2) { | |
24165 | int _v; | |
24166 | { | |
24167 | void *ptr; | |
24168 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
24169 | _v = 0; | |
24170 | PyErr_Clear(); | |
24171 | } else { | |
24172 | _v = 1; | |
24173 | } | |
24174 | } | |
24175 | if (_v) { | |
24176 | _v = SWIG_CheckInt(argv[1]); | |
24177 | if (_v) { | |
24178 | return _wrap_DataFormat___ne____SWIG_0(self,args); | |
24179 | } | |
24180 | } | |
24181 | } | |
24182 | ||
24183 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___ne__'"); | |
24184 | return NULL; | |
24185 | } | |
24186 | ||
24187 | ||
24188 | static PyObject *_wrap_DataFormat_SetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24189 | PyObject *resultobj; | |
24190 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24191 | int arg2 ; | |
24192 | PyObject * obj0 = 0 ; | |
24193 | PyObject * obj1 = 0 ; | |
24194 | char *kwnames[] = { | |
24195 | (char *) "self",(char *) "format", NULL | |
24196 | }; | |
24197 | ||
24198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetType",kwnames,&obj0,&obj1)) goto fail; | |
24199 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24200 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24201 | arg2 = (wxDataFormatId) SWIG_AsInt(obj1); | |
24202 | if (PyErr_Occurred()) SWIG_fail; | |
24203 | { | |
24204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24205 | (arg1)->SetType((wxDataFormatId )arg2); | |
24206 | ||
24207 | wxPyEndAllowThreads(__tstate); | |
24208 | if (PyErr_Occurred()) SWIG_fail; | |
24209 | } | |
24210 | Py_INCREF(Py_None); resultobj = Py_None; | |
24211 | return resultobj; | |
24212 | fail: | |
24213 | return NULL; | |
24214 | } | |
24215 | ||
24216 | ||
24217 | static PyObject *_wrap_DataFormat_GetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24218 | PyObject *resultobj; | |
24219 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24220 | int result; | |
24221 | PyObject * obj0 = 0 ; | |
24222 | char *kwnames[] = { | |
24223 | (char *) "self", NULL | |
24224 | }; | |
24225 | ||
24226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetType",kwnames,&obj0)) goto fail; | |
24227 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24228 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24229 | { | |
24230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24231 | result = (int)((wxDataFormat const *)arg1)->GetType(); | |
24232 | ||
24233 | wxPyEndAllowThreads(__tstate); | |
24234 | if (PyErr_Occurred()) SWIG_fail; | |
24235 | } | |
24236 | resultobj = SWIG_FromInt((int)result); | |
24237 | return resultobj; | |
24238 | fail: | |
24239 | return NULL; | |
24240 | } | |
24241 | ||
24242 | ||
24243 | static PyObject *_wrap_DataFormat_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24244 | PyObject *resultobj; | |
24245 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24246 | wxString result; | |
24247 | PyObject * obj0 = 0 ; | |
24248 | char *kwnames[] = { | |
24249 | (char *) "self", NULL | |
24250 | }; | |
24251 | ||
24252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetId",kwnames,&obj0)) goto fail; | |
24253 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24254 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24255 | { | |
24256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24257 | result = ((wxDataFormat const *)arg1)->GetId(); | |
24258 | ||
24259 | wxPyEndAllowThreads(__tstate); | |
24260 | if (PyErr_Occurred()) SWIG_fail; | |
24261 | } | |
24262 | { | |
24263 | #if wxUSE_UNICODE | |
24264 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24265 | #else | |
24266 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24267 | #endif | |
24268 | } | |
24269 | return resultobj; | |
24270 | fail: | |
24271 | return NULL; | |
24272 | } | |
24273 | ||
24274 | ||
24275 | static PyObject *_wrap_DataFormat_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24276 | PyObject *resultobj; | |
24277 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24278 | wxString *arg2 = 0 ; | |
24279 | bool temp2 = False ; | |
24280 | PyObject * obj0 = 0 ; | |
24281 | PyObject * obj1 = 0 ; | |
24282 | char *kwnames[] = { | |
24283 | (char *) "self",(char *) "format", NULL | |
24284 | }; | |
24285 | ||
24286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetId",kwnames,&obj0,&obj1)) goto fail; | |
24287 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24289 | { | |
24290 | arg2 = wxString_in_helper(obj1); | |
24291 | if (arg2 == NULL) SWIG_fail; | |
24292 | temp2 = True; | |
24293 | } | |
24294 | { | |
24295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24296 | (arg1)->SetId((wxString const &)*arg2); | |
24297 | ||
24298 | wxPyEndAllowThreads(__tstate); | |
24299 | if (PyErr_Occurred()) SWIG_fail; | |
24300 | } | |
24301 | Py_INCREF(Py_None); resultobj = Py_None; | |
24302 | { | |
24303 | if (temp2) | |
24304 | delete arg2; | |
24305 | } | |
24306 | return resultobj; | |
24307 | fail: | |
24308 | { | |
24309 | if (temp2) | |
24310 | delete arg2; | |
24311 | } | |
24312 | return NULL; | |
24313 | } | |
24314 | ||
24315 | ||
24316 | static PyObject * DataFormat_swigregister(PyObject *self, PyObject *args) { | |
24317 | PyObject *obj; | |
24318 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24319 | SWIG_TypeClientData(SWIGTYPE_p_wxDataFormat, obj); | |
24320 | Py_INCREF(obj); | |
24321 | return Py_BuildValue((char *)""); | |
24322 | } | |
24323 | static int _wrap_FormatInvalid_set(PyObject *_val) { | |
24324 | PyErr_SetString(PyExc_TypeError,"Variable FormatInvalid is read-only."); | |
24325 | return 1; | |
24326 | } | |
24327 | ||
24328 | ||
24329 | static PyObject *_wrap_FormatInvalid_get() { | |
24330 | PyObject *pyobj; | |
24331 | ||
24332 | pyobj = SWIG_NewPointerObj((void *)(&wxFormatInvalid), SWIGTYPE_p_wxDataFormat, 0); | |
24333 | return pyobj; | |
24334 | } | |
24335 | ||
24336 | ||
24337 | static PyObject *_wrap_delete_DataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24338 | PyObject *resultobj; | |
24339 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24340 | PyObject * obj0 = 0 ; | |
24341 | char *kwnames[] = { | |
24342 | (char *) "self", NULL | |
24343 | }; | |
24344 | ||
24345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataObject",kwnames,&obj0)) goto fail; | |
24346 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
24347 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24348 | { | |
24349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24350 | delete arg1; | |
24351 | ||
24352 | wxPyEndAllowThreads(__tstate); | |
24353 | if (PyErr_Occurred()) SWIG_fail; | |
24354 | } | |
24355 | Py_INCREF(Py_None); resultobj = Py_None; | |
24356 | return resultobj; | |
24357 | fail: | |
24358 | return NULL; | |
24359 | } | |
24360 | ||
24361 | ||
24362 | static PyObject *_wrap_DataObject_GetPreferredFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24363 | PyObject *resultobj; | |
24364 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24365 | int arg2 = (int) wxDataObject::Get ; | |
24366 | SwigValueWrapper< wxDataFormat > result; | |
24367 | PyObject * obj0 = 0 ; | |
24368 | PyObject * obj1 = 0 ; | |
24369 | char *kwnames[] = { | |
24370 | (char *) "self",(char *) "dir", NULL | |
24371 | }; | |
24372 | ||
24373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetPreferredFormat",kwnames,&obj0,&obj1)) goto fail; | |
24374 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
24375 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24376 | if (obj1) { | |
24377 | arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1); | |
24378 | if (PyErr_Occurred()) SWIG_fail; | |
24379 | } | |
24380 | { | |
24381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24382 | result = ((wxDataObject const *)arg1)->GetPreferredFormat((wxDataObject::Direction )arg2); | |
24383 | ||
24384 | wxPyEndAllowThreads(__tstate); | |
24385 | if (PyErr_Occurred()) SWIG_fail; | |
24386 | } | |
24387 | { | |
24388 | wxDataFormat * resultptr; | |
24389 | resultptr = new wxDataFormat((wxDataFormat &) result); | |
24390 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDataFormat, 1); | |
24391 | } | |
24392 | return resultobj; | |
24393 | fail: | |
24394 | return NULL; | |
24395 | } | |
24396 | ||
24397 | ||
24398 | static PyObject *_wrap_DataObject_GetFormatCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24399 | PyObject *resultobj; | |
24400 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24401 | int arg2 = (int) wxDataObject::Get ; | |
24402 | size_t result; | |
24403 | PyObject * obj0 = 0 ; | |
24404 | PyObject * obj1 = 0 ; | |
24405 | char *kwnames[] = { | |
24406 | (char *) "self",(char *) "dir", NULL | |
24407 | }; | |
24408 | ||
24409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetFormatCount",kwnames,&obj0,&obj1)) goto fail; | |
24410 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
24411 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24412 | if (obj1) { | |
24413 | arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1); | |
24414 | if (PyErr_Occurred()) SWIG_fail; | |
24415 | } | |
24416 | { | |
24417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24418 | result = (size_t)((wxDataObject const *)arg1)->GetFormatCount((wxDataObject::Direction )arg2); | |
24419 | ||
24420 | wxPyEndAllowThreads(__tstate); | |
24421 | if (PyErr_Occurred()) SWIG_fail; | |
24422 | } | |
24423 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
24424 | return resultobj; | |
24425 | fail: | |
24426 | return NULL; | |
24427 | } | |
24428 | ||
24429 | ||
24430 | static PyObject *_wrap_DataObject_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24431 | PyObject *resultobj; | |
24432 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24433 | wxDataFormat *arg2 = 0 ; | |
24434 | int arg3 = (int) wxDataObject::Get ; | |
24435 | bool result; | |
24436 | PyObject * obj0 = 0 ; | |
24437 | PyObject * obj1 = 0 ; | |
24438 | PyObject * obj2 = 0 ; | |
24439 | char *kwnames[] = { | |
24440 | (char *) "self",(char *) "format",(char *) "dir", NULL | |
24441 | }; | |
24442 | ||
24443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_IsSupported",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24444 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
24445 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24446 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24447 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24448 | SWIG_fail; | |
24449 | if (arg2 == NULL) { | |
24450 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24451 | SWIG_fail; | |
24452 | } | |
24453 | if (obj2) { | |
24454 | arg3 = (wxDataObject::Direction) SWIG_AsInt(obj2); | |
24455 | if (PyErr_Occurred()) SWIG_fail; | |
24456 | } | |
24457 | { | |
24458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24459 | result = (bool)((wxDataObject const *)arg1)->IsSupported((wxDataFormat const &)*arg2,(wxDataObject::Direction )arg3); | |
24460 | ||
24461 | wxPyEndAllowThreads(__tstate); | |
24462 | if (PyErr_Occurred()) SWIG_fail; | |
24463 | } | |
24464 | { | |
24465 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24466 | } | |
24467 | return resultobj; | |
24468 | fail: | |
24469 | return NULL; | |
24470 | } | |
24471 | ||
24472 | ||
24473 | static PyObject *_wrap_DataObject_GetDataSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24474 | PyObject *resultobj; | |
24475 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24476 | wxDataFormat *arg2 = 0 ; | |
24477 | size_t result; | |
24478 | PyObject * obj0 = 0 ; | |
24479 | PyObject * obj1 = 0 ; | |
24480 | char *kwnames[] = { | |
24481 | (char *) "self",(char *) "format", NULL | |
24482 | }; | |
24483 | ||
24484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataSize",kwnames,&obj0,&obj1)) goto fail; | |
24485 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
24486 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24487 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24488 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24489 | SWIG_fail; | |
24490 | if (arg2 == NULL) { | |
24491 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24492 | SWIG_fail; | |
24493 | } | |
24494 | { | |
24495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24496 | result = (size_t)((wxDataObject const *)arg1)->GetDataSize((wxDataFormat const &)*arg2); | |
24497 | ||
24498 | wxPyEndAllowThreads(__tstate); | |
24499 | if (PyErr_Occurred()) SWIG_fail; | |
24500 | } | |
24501 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
24502 | return resultobj; | |
24503 | fail: | |
24504 | return NULL; | |
24505 | } | |
24506 | ||
24507 | ||
24508 | static PyObject *_wrap_DataObject_GetAllFormats(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24509 | PyObject *resultobj; | |
24510 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
68e533f8 RD |
24511 | int arg2 = (int) wxDataObject::Get ; |
24512 | PyObject *result; | |
d55e5bfc RD |
24513 | PyObject * obj0 = 0 ; |
24514 | PyObject * obj1 = 0 ; | |
d55e5bfc | 24515 | char *kwnames[] = { |
68e533f8 | 24516 | (char *) "self",(char *) "dir", NULL |
d55e5bfc RD |
24517 | }; |
24518 | ||
68e533f8 | 24519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetAllFormats",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
24520 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
68e533f8 RD |
24522 | if (obj1) { |
24523 | arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1); | |
d55e5bfc RD |
24524 | if (PyErr_Occurred()) SWIG_fail; |
24525 | } | |
24526 | { | |
24527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
68e533f8 | 24528 | result = (PyObject *)wxDataObject_GetAllFormats(arg1,(wxDataObject::Direction )arg2); |
d55e5bfc RD |
24529 | |
24530 | wxPyEndAllowThreads(__tstate); | |
24531 | if (PyErr_Occurred()) SWIG_fail; | |
24532 | } | |
68e533f8 | 24533 | resultobj = result; |
d55e5bfc RD |
24534 | return resultobj; |
24535 | fail: | |
24536 | return NULL; | |
24537 | } | |
24538 | ||
24539 | ||
24540 | static PyObject *_wrap_DataObject_GetDataHere(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24541 | PyObject *resultobj; | |
24542 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24543 | wxDataFormat *arg2 = 0 ; | |
68e533f8 | 24544 | PyObject *result; |
d55e5bfc RD |
24545 | PyObject * obj0 = 0 ; |
24546 | PyObject * obj1 = 0 ; | |
d55e5bfc | 24547 | char *kwnames[] = { |
68e533f8 | 24548 | (char *) "self",(char *) "format", NULL |
d55e5bfc RD |
24549 | }; |
24550 | ||
68e533f8 | 24551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataHere",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
24552 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24554 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24555 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24556 | SWIG_fail; | |
24557 | if (arg2 == NULL) { | |
24558 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24559 | SWIG_fail; | |
24560 | } | |
d55e5bfc RD |
24561 | { |
24562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
68e533f8 | 24563 | result = (PyObject *)wxDataObject_GetDataHere(arg1,(wxDataFormat const &)*arg2); |
d55e5bfc RD |
24564 | |
24565 | wxPyEndAllowThreads(__tstate); | |
24566 | if (PyErr_Occurred()) SWIG_fail; | |
24567 | } | |
68e533f8 | 24568 | resultobj = result; |
d55e5bfc RD |
24569 | return resultobj; |
24570 | fail: | |
24571 | return NULL; | |
24572 | } | |
24573 | ||
24574 | ||
24575 | static PyObject *_wrap_DataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24576 | PyObject *resultobj; | |
24577 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24578 | wxDataFormat *arg2 = 0 ; | |
68e533f8 | 24579 | PyObject *arg3 = (PyObject *) 0 ; |
d55e5bfc RD |
24580 | bool result; |
24581 | PyObject * obj0 = 0 ; | |
24582 | PyObject * obj1 = 0 ; | |
24583 | PyObject * obj2 = 0 ; | |
d55e5bfc | 24584 | char *kwnames[] = { |
68e533f8 | 24585 | (char *) "self",(char *) "format",(char *) "data", NULL |
d55e5bfc RD |
24586 | }; |
24587 | ||
68e533f8 | 24588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DataObject_SetData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
24589 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24591 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24592 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24593 | SWIG_fail; | |
24594 | if (arg2 == NULL) { | |
24595 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24596 | SWIG_fail; | |
24597 | } | |
68e533f8 | 24598 | arg3 = obj2; |
d55e5bfc RD |
24599 | { |
24600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
68e533f8 | 24601 | result = (bool)wxDataObject_SetData(arg1,(wxDataFormat const &)*arg2,arg3); |
d55e5bfc RD |
24602 | |
24603 | wxPyEndAllowThreads(__tstate); | |
24604 | if (PyErr_Occurred()) SWIG_fail; | |
24605 | } | |
24606 | { | |
24607 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24608 | } | |
24609 | return resultobj; | |
24610 | fail: | |
24611 | return NULL; | |
24612 | } | |
24613 | ||
24614 | ||
24615 | static PyObject * DataObject_swigregister(PyObject *self, PyObject *args) { | |
24616 | PyObject *obj; | |
24617 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24618 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObject, obj); | |
24619 | Py_INCREF(obj); | |
24620 | return Py_BuildValue((char *)""); | |
24621 | } | |
24622 | static PyObject *_wrap_new_DataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24623 | PyObject *resultobj; | |
24624 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
24625 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
24626 | wxDataObjectSimple *result; | |
24627 | PyObject * obj0 = 0 ; | |
24628 | char *kwnames[] = { | |
24629 | (char *) "format", NULL | |
24630 | }; | |
24631 | ||
24632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DataObjectSimple",kwnames,&obj0)) goto fail; | |
24633 | if (obj0) { | |
24634 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24635 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24636 | SWIG_fail; | |
24637 | if (arg1 == NULL) { | |
24638 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24639 | SWIG_fail; | |
24640 | } | |
24641 | } | |
24642 | { | |
24643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24644 | result = (wxDataObjectSimple *)new wxDataObjectSimple((wxDataFormat const &)*arg1); | |
24645 | ||
24646 | wxPyEndAllowThreads(__tstate); | |
24647 | if (PyErr_Occurred()) SWIG_fail; | |
24648 | } | |
24649 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectSimple, 1); | |
24650 | return resultobj; | |
24651 | fail: | |
24652 | return NULL; | |
24653 | } | |
24654 | ||
24655 | ||
24656 | static PyObject *_wrap_DataObjectSimple_GetFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24657 | PyObject *resultobj; | |
24658 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
24659 | wxDataFormat *result; | |
24660 | PyObject * obj0 = 0 ; | |
24661 | char *kwnames[] = { | |
24662 | (char *) "self", NULL | |
24663 | }; | |
24664 | ||
24665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetFormat",kwnames,&obj0)) goto fail; | |
24666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, | |
24667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24668 | { | |
24669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24670 | { | |
24671 | wxDataFormat const &_result_ref = (arg1)->GetFormat(); | |
24672 | result = (wxDataFormat *) &_result_ref; | |
24673 | } | |
24674 | ||
24675 | wxPyEndAllowThreads(__tstate); | |
24676 | if (PyErr_Occurred()) SWIG_fail; | |
24677 | } | |
24678 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 0); | |
24679 | return resultobj; | |
24680 | fail: | |
24681 | return NULL; | |
24682 | } | |
24683 | ||
24684 | ||
24685 | static PyObject *_wrap_DataObjectSimple_SetFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24686 | PyObject *resultobj; | |
24687 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
24688 | wxDataFormat *arg2 = 0 ; | |
24689 | PyObject * obj0 = 0 ; | |
24690 | PyObject * obj1 = 0 ; | |
24691 | char *kwnames[] = { | |
24692 | (char *) "self",(char *) "format", NULL | |
24693 | }; | |
24694 | ||
24695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetFormat",kwnames,&obj0,&obj1)) goto fail; | |
24696 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, | |
24697 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24698 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24699 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24700 | SWIG_fail; | |
24701 | if (arg2 == NULL) { | |
24702 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24703 | SWIG_fail; | |
24704 | } | |
24705 | { | |
24706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24707 | (arg1)->SetFormat((wxDataFormat const &)*arg2); | |
24708 | ||
24709 | wxPyEndAllowThreads(__tstate); | |
24710 | if (PyErr_Occurred()) SWIG_fail; | |
24711 | } | |
24712 | Py_INCREF(Py_None); resultobj = Py_None; | |
24713 | return resultobj; | |
24714 | fail: | |
24715 | return NULL; | |
24716 | } | |
24717 | ||
24718 | ||
68e533f8 RD |
24719 | static PyObject *_wrap_DataObjectSimple_GetDataSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
24720 | PyObject *resultobj; | |
24721 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
24722 | size_t result; | |
24723 | PyObject * obj0 = 0 ; | |
24724 | char *kwnames[] = { | |
24725 | (char *) "self", NULL | |
24726 | }; | |
24727 | ||
24728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataSize",kwnames,&obj0)) goto fail; | |
24729 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, | |
24730 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24731 | { | |
24732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24733 | result = (size_t)((wxDataObjectSimple const *)arg1)->GetDataSize(); | |
24734 | ||
24735 | wxPyEndAllowThreads(__tstate); | |
24736 | if (PyErr_Occurred()) SWIG_fail; | |
24737 | } | |
24738 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
24739 | return resultobj; | |
24740 | fail: | |
24741 | return NULL; | |
24742 | } | |
24743 | ||
24744 | ||
24745 | static PyObject *_wrap_DataObjectSimple_GetDataHere(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24746 | PyObject *resultobj; | |
24747 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
24748 | PyObject *result; | |
24749 | PyObject * obj0 = 0 ; | |
24750 | char *kwnames[] = { | |
24751 | (char *) "self", NULL | |
24752 | }; | |
24753 | ||
24754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataHere",kwnames,&obj0)) goto fail; | |
24755 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, | |
24756 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24757 | { | |
24758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24759 | result = (PyObject *)wxDataObjectSimple_GetDataHere(arg1); | |
24760 | ||
24761 | wxPyEndAllowThreads(__tstate); | |
24762 | if (PyErr_Occurred()) SWIG_fail; | |
24763 | } | |
24764 | resultobj = result; | |
24765 | return resultobj; | |
24766 | fail: | |
24767 | return NULL; | |
24768 | } | |
24769 | ||
24770 | ||
24771 | static PyObject *_wrap_DataObjectSimple_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24772 | PyObject *resultobj; | |
24773 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
24774 | PyObject *arg2 = (PyObject *) 0 ; | |
24775 | bool result; | |
24776 | PyObject * obj0 = 0 ; | |
24777 | PyObject * obj1 = 0 ; | |
24778 | char *kwnames[] = { | |
24779 | (char *) "self",(char *) "data", NULL | |
24780 | }; | |
24781 | ||
24782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetData",kwnames,&obj0,&obj1)) goto fail; | |
24783 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, | |
24784 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24785 | arg2 = obj1; | |
24786 | { | |
24787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24788 | result = (bool)wxDataObjectSimple_SetData(arg1,arg2); | |
24789 | ||
24790 | wxPyEndAllowThreads(__tstate); | |
24791 | if (PyErr_Occurred()) SWIG_fail; | |
24792 | } | |
24793 | { | |
24794 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24795 | } | |
24796 | return resultobj; | |
24797 | fail: | |
24798 | return NULL; | |
24799 | } | |
24800 | ||
24801 | ||
d55e5bfc RD |
24802 | static PyObject * DataObjectSimple_swigregister(PyObject *self, PyObject *args) { |
24803 | PyObject *obj; | |
24804 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24805 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectSimple, obj); | |
24806 | Py_INCREF(obj); | |
24807 | return Py_BuildValue((char *)""); | |
24808 | } | |
24809 | static PyObject *_wrap_new_PyDataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24810 | PyObject *resultobj; | |
24811 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
24812 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
24813 | wxPyDataObjectSimple *result; | |
24814 | PyObject * obj0 = 0 ; | |
24815 | char *kwnames[] = { | |
24816 | (char *) "format", NULL | |
24817 | }; | |
24818 | ||
24819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDataObjectSimple",kwnames,&obj0)) goto fail; | |
24820 | if (obj0) { | |
24821 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24822 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24823 | SWIG_fail; | |
24824 | if (arg1 == NULL) { | |
24825 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24826 | SWIG_fail; | |
24827 | } | |
24828 | } | |
24829 | { | |
24830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24831 | result = (wxPyDataObjectSimple *)new wxPyDataObjectSimple((wxDataFormat const &)*arg1); | |
24832 | ||
24833 | wxPyEndAllowThreads(__tstate); | |
24834 | if (PyErr_Occurred()) SWIG_fail; | |
24835 | } | |
24836 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDataObjectSimple, 1); | |
24837 | return resultobj; | |
24838 | fail: | |
24839 | return NULL; | |
24840 | } | |
24841 | ||
24842 | ||
24843 | static PyObject *_wrap_PyDataObjectSimple__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24844 | PyObject *resultobj; | |
24845 | wxPyDataObjectSimple *arg1 = (wxPyDataObjectSimple *) 0 ; | |
24846 | PyObject *arg2 = (PyObject *) 0 ; | |
24847 | PyObject *arg3 = (PyObject *) 0 ; | |
24848 | PyObject * obj0 = 0 ; | |
24849 | PyObject * obj1 = 0 ; | |
24850 | PyObject * obj2 = 0 ; | |
24851 | char *kwnames[] = { | |
24852 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
24853 | }; | |
24854 | ||
24855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDataObjectSimple__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDataObjectSimple, | |
24857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24858 | arg2 = obj1; | |
24859 | arg3 = obj2; | |
24860 | { | |
24861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24862 | (arg1)->_setCallbackInfo(arg2,arg3); | |
24863 | ||
24864 | wxPyEndAllowThreads(__tstate); | |
24865 | if (PyErr_Occurred()) SWIG_fail; | |
24866 | } | |
24867 | Py_INCREF(Py_None); resultobj = Py_None; | |
24868 | return resultobj; | |
24869 | fail: | |
24870 | return NULL; | |
24871 | } | |
24872 | ||
24873 | ||
24874 | static PyObject * PyDataObjectSimple_swigregister(PyObject *self, PyObject *args) { | |
24875 | PyObject *obj; | |
24876 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24877 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDataObjectSimple, obj); | |
24878 | Py_INCREF(obj); | |
24879 | return Py_BuildValue((char *)""); | |
24880 | } | |
24881 | static PyObject *_wrap_new_DataObjectComposite(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24882 | PyObject *resultobj; | |
24883 | wxDataObjectComposite *result; | |
24884 | char *kwnames[] = { | |
24885 | NULL | |
24886 | }; | |
24887 | ||
24888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DataObjectComposite",kwnames)) goto fail; | |
24889 | { | |
24890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24891 | result = (wxDataObjectComposite *)new wxDataObjectComposite(); | |
24892 | ||
24893 | wxPyEndAllowThreads(__tstate); | |
24894 | if (PyErr_Occurred()) SWIG_fail; | |
24895 | } | |
24896 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectComposite, 1); | |
24897 | return resultobj; | |
24898 | fail: | |
24899 | return NULL; | |
24900 | } | |
24901 | ||
24902 | ||
24903 | static PyObject *_wrap_DataObjectComposite_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24904 | PyObject *resultobj; | |
24905 | wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ; | |
24906 | wxDataObjectSimple *arg2 = (wxDataObjectSimple *) 0 ; | |
68e533f8 | 24907 | bool arg3 = (bool) False ; |
d55e5bfc RD |
24908 | PyObject * obj0 = 0 ; |
24909 | PyObject * obj1 = 0 ; | |
24910 | PyObject * obj2 = 0 ; | |
24911 | char *kwnames[] = { | |
24912 | (char *) "self",(char *) "dataObject",(char *) "preferred", NULL | |
24913 | }; | |
24914 | ||
24915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObjectComposite_Add",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24916 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectComposite, | |
24917 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24918 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObjectSimple, | |
24919 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
24920 | if (obj2) { | |
68e533f8 | 24921 | arg3 = (bool) SWIG_AsBool(obj2); |
d55e5bfc RD |
24922 | if (PyErr_Occurred()) SWIG_fail; |
24923 | } | |
24924 | { | |
24925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24926 | (arg1)->Add(arg2,arg3); | |
24927 | ||
24928 | wxPyEndAllowThreads(__tstate); | |
24929 | if (PyErr_Occurred()) SWIG_fail; | |
24930 | } | |
24931 | Py_INCREF(Py_None); resultobj = Py_None; | |
24932 | return resultobj; | |
24933 | fail: | |
24934 | return NULL; | |
24935 | } | |
24936 | ||
24937 | ||
24938 | static PyObject * DataObjectComposite_swigregister(PyObject *self, PyObject *args) { | |
24939 | PyObject *obj; | |
24940 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24941 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectComposite, obj); | |
24942 | Py_INCREF(obj); | |
24943 | return Py_BuildValue((char *)""); | |
24944 | } | |
24945 | static PyObject *_wrap_new_TextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24946 | PyObject *resultobj; | |
24947 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
24948 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
24949 | wxTextDataObject *result; | |
24950 | bool temp1 = False ; | |
24951 | PyObject * obj0 = 0 ; | |
24952 | char *kwnames[] = { | |
24953 | (char *) "text", NULL | |
24954 | }; | |
24955 | ||
24956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TextDataObject",kwnames,&obj0)) goto fail; | |
24957 | if (obj0) { | |
24958 | { | |
24959 | arg1 = wxString_in_helper(obj0); | |
24960 | if (arg1 == NULL) SWIG_fail; | |
24961 | temp1 = True; | |
24962 | } | |
24963 | } | |
24964 | { | |
24965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24966 | result = (wxTextDataObject *)new wxTextDataObject((wxString const &)*arg1); | |
24967 | ||
24968 | wxPyEndAllowThreads(__tstate); | |
24969 | if (PyErr_Occurred()) SWIG_fail; | |
24970 | } | |
24971 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextDataObject, 1); | |
24972 | { | |
24973 | if (temp1) | |
24974 | delete arg1; | |
24975 | } | |
24976 | return resultobj; | |
24977 | fail: | |
24978 | { | |
24979 | if (temp1) | |
24980 | delete arg1; | |
24981 | } | |
24982 | return NULL; | |
24983 | } | |
24984 | ||
24985 | ||
24986 | static PyObject *_wrap_TextDataObject_GetTextLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24987 | PyObject *resultobj; | |
24988 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
24989 | size_t result; | |
24990 | PyObject * obj0 = 0 ; | |
24991 | char *kwnames[] = { | |
24992 | (char *) "self", NULL | |
24993 | }; | |
24994 | ||
24995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetTextLength",kwnames,&obj0)) goto fail; | |
24996 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject, | |
24997 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24998 | { | |
24999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25000 | result = (size_t)(arg1)->GetTextLength(); | |
25001 | ||
25002 | wxPyEndAllowThreads(__tstate); | |
25003 | if (PyErr_Occurred()) SWIG_fail; | |
25004 | } | |
25005 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
25006 | return resultobj; | |
25007 | fail: | |
25008 | return NULL; | |
25009 | } | |
25010 | ||
25011 | ||
25012 | static PyObject *_wrap_TextDataObject_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25013 | PyObject *resultobj; | |
25014 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
25015 | wxString result; | |
25016 | PyObject * obj0 = 0 ; | |
25017 | char *kwnames[] = { | |
25018 | (char *) "self", NULL | |
25019 | }; | |
25020 | ||
25021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetText",kwnames,&obj0)) goto fail; | |
25022 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject, | |
25023 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25024 | { | |
25025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25026 | result = (arg1)->GetText(); | |
25027 | ||
25028 | wxPyEndAllowThreads(__tstate); | |
25029 | if (PyErr_Occurred()) SWIG_fail; | |
25030 | } | |
25031 | { | |
25032 | #if wxUSE_UNICODE | |
25033 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
25034 | #else | |
25035 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
25036 | #endif | |
25037 | } | |
25038 | return resultobj; | |
25039 | fail: | |
25040 | return NULL; | |
25041 | } | |
25042 | ||
25043 | ||
25044 | static PyObject *_wrap_TextDataObject_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25045 | PyObject *resultobj; | |
25046 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
25047 | wxString *arg2 = 0 ; | |
25048 | bool temp2 = False ; | |
25049 | PyObject * obj0 = 0 ; | |
25050 | PyObject * obj1 = 0 ; | |
25051 | char *kwnames[] = { | |
25052 | (char *) "self",(char *) "text", NULL | |
25053 | }; | |
25054 | ||
25055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextDataObject_SetText",kwnames,&obj0,&obj1)) goto fail; | |
25056 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject, | |
25057 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25058 | { | |
25059 | arg2 = wxString_in_helper(obj1); | |
25060 | if (arg2 == NULL) SWIG_fail; | |
25061 | temp2 = True; | |
25062 | } | |
25063 | { | |
25064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25065 | (arg1)->SetText((wxString const &)*arg2); | |
25066 | ||
25067 | wxPyEndAllowThreads(__tstate); | |
25068 | if (PyErr_Occurred()) SWIG_fail; | |
25069 | } | |
25070 | Py_INCREF(Py_None); resultobj = Py_None; | |
25071 | { | |
25072 | if (temp2) | |
25073 | delete arg2; | |
25074 | } | |
25075 | return resultobj; | |
25076 | fail: | |
25077 | { | |
25078 | if (temp2) | |
25079 | delete arg2; | |
25080 | } | |
25081 | return NULL; | |
25082 | } | |
25083 | ||
25084 | ||
25085 | static PyObject * TextDataObject_swigregister(PyObject *self, PyObject *args) { | |
25086 | PyObject *obj; | |
25087 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25088 | SWIG_TypeClientData(SWIGTYPE_p_wxTextDataObject, obj); | |
25089 | Py_INCREF(obj); | |
25090 | return Py_BuildValue((char *)""); | |
25091 | } | |
25092 | static PyObject *_wrap_new_PyTextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25093 | PyObject *resultobj; | |
25094 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
25095 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
25096 | wxPyTextDataObject *result; | |
25097 | bool temp1 = False ; | |
25098 | PyObject * obj0 = 0 ; | |
25099 | char *kwnames[] = { | |
25100 | (char *) "text", NULL | |
25101 | }; | |
25102 | ||
25103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyTextDataObject",kwnames,&obj0)) goto fail; | |
25104 | if (obj0) { | |
25105 | { | |
25106 | arg1 = wxString_in_helper(obj0); | |
25107 | if (arg1 == NULL) SWIG_fail; | |
25108 | temp1 = True; | |
25109 | } | |
25110 | } | |
25111 | { | |
25112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25113 | result = (wxPyTextDataObject *)new wxPyTextDataObject((wxString const &)*arg1); | |
25114 | ||
25115 | wxPyEndAllowThreads(__tstate); | |
25116 | if (PyErr_Occurred()) SWIG_fail; | |
25117 | } | |
25118 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDataObject, 1); | |
25119 | { | |
25120 | if (temp1) | |
25121 | delete arg1; | |
25122 | } | |
25123 | return resultobj; | |
25124 | fail: | |
25125 | { | |
25126 | if (temp1) | |
25127 | delete arg1; | |
25128 | } | |
25129 | return NULL; | |
25130 | } | |
25131 | ||
25132 | ||
25133 | static PyObject *_wrap_PyTextDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25134 | PyObject *resultobj; | |
25135 | wxPyTextDataObject *arg1 = (wxPyTextDataObject *) 0 ; | |
25136 | PyObject *arg2 = (PyObject *) 0 ; | |
25137 | PyObject *arg3 = (PyObject *) 0 ; | |
25138 | PyObject * obj0 = 0 ; | |
25139 | PyObject * obj1 = 0 ; | |
25140 | PyObject * obj2 = 0 ; | |
25141 | char *kwnames[] = { | |
25142 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25143 | }; | |
25144 | ||
25145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25146 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDataObject, | |
25147 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25148 | arg2 = obj1; | |
25149 | arg3 = obj2; | |
25150 | { | |
25151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25152 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25153 | ||
25154 | wxPyEndAllowThreads(__tstate); | |
25155 | if (PyErr_Occurred()) SWIG_fail; | |
25156 | } | |
25157 | Py_INCREF(Py_None); resultobj = Py_None; | |
25158 | return resultobj; | |
25159 | fail: | |
25160 | return NULL; | |
25161 | } | |
25162 | ||
25163 | ||
25164 | static PyObject * PyTextDataObject_swigregister(PyObject *self, PyObject *args) { | |
25165 | PyObject *obj; | |
25166 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25167 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDataObject, obj); | |
25168 | Py_INCREF(obj); | |
25169 | return Py_BuildValue((char *)""); | |
25170 | } | |
25171 | static PyObject *_wrap_new_BitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25172 | PyObject *resultobj; | |
25173 | wxBitmap const &arg1_defvalue = wxNullBitmap ; | |
25174 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
25175 | wxBitmapDataObject *result; | |
25176 | PyObject * obj0 = 0 ; | |
25177 | char *kwnames[] = { | |
25178 | (char *) "bitmap", NULL | |
25179 | }; | |
25180 | ||
25181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BitmapDataObject",kwnames,&obj0)) goto fail; | |
25182 | if (obj0) { | |
25183 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
25184 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25185 | SWIG_fail; | |
25186 | if (arg1 == NULL) { | |
25187 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25188 | SWIG_fail; | |
25189 | } | |
25190 | } | |
25191 | { | |
25192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25193 | result = (wxBitmapDataObject *)new wxBitmapDataObject((wxBitmap const &)*arg1); | |
25194 | ||
25195 | wxPyEndAllowThreads(__tstate); | |
25196 | if (PyErr_Occurred()) SWIG_fail; | |
25197 | } | |
25198 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapDataObject, 1); | |
25199 | return resultobj; | |
25200 | fail: | |
25201 | return NULL; | |
25202 | } | |
25203 | ||
25204 | ||
25205 | static PyObject *_wrap_BitmapDataObject_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25206 | PyObject *resultobj; | |
25207 | wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ; | |
25208 | wxBitmap result; | |
25209 | PyObject * obj0 = 0 ; | |
25210 | char *kwnames[] = { | |
25211 | (char *) "self", NULL | |
25212 | }; | |
25213 | ||
25214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapDataObject_GetBitmap",kwnames,&obj0)) goto fail; | |
25215 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject, | |
25216 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25217 | { | |
25218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25219 | result = ((wxBitmapDataObject const *)arg1)->GetBitmap(); | |
25220 | ||
25221 | wxPyEndAllowThreads(__tstate); | |
25222 | if (PyErr_Occurred()) SWIG_fail; | |
25223 | } | |
25224 | { | |
25225 | wxBitmap * resultptr; | |
25226 | resultptr = new wxBitmap((wxBitmap &) result); | |
25227 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
25228 | } | |
25229 | return resultobj; | |
25230 | fail: | |
25231 | return NULL; | |
25232 | } | |
25233 | ||
25234 | ||
25235 | static PyObject *_wrap_BitmapDataObject_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25236 | PyObject *resultobj; | |
25237 | wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ; | |
25238 | wxBitmap *arg2 = 0 ; | |
25239 | PyObject * obj0 = 0 ; | |
25240 | PyObject * obj1 = 0 ; | |
25241 | char *kwnames[] = { | |
25242 | (char *) "self",(char *) "bitmap", NULL | |
25243 | }; | |
25244 | ||
25245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapDataObject_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
25246 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject, | |
25247 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25248 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
25249 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25250 | SWIG_fail; | |
25251 | if (arg2 == NULL) { | |
25252 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25253 | SWIG_fail; | |
25254 | } | |
25255 | { | |
25256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25257 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
25258 | ||
25259 | wxPyEndAllowThreads(__tstate); | |
25260 | if (PyErr_Occurred()) SWIG_fail; | |
25261 | } | |
25262 | Py_INCREF(Py_None); resultobj = Py_None; | |
25263 | return resultobj; | |
25264 | fail: | |
25265 | return NULL; | |
25266 | } | |
25267 | ||
25268 | ||
25269 | static PyObject * BitmapDataObject_swigregister(PyObject *self, PyObject *args) { | |
25270 | PyObject *obj; | |
25271 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25272 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmapDataObject, obj); | |
25273 | Py_INCREF(obj); | |
25274 | return Py_BuildValue((char *)""); | |
25275 | } | |
25276 | static PyObject *_wrap_new_PyBitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25277 | PyObject *resultobj; | |
25278 | wxBitmap const &arg1_defvalue = wxNullBitmap ; | |
25279 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
25280 | wxPyBitmapDataObject *result; | |
25281 | PyObject * obj0 = 0 ; | |
25282 | char *kwnames[] = { | |
25283 | (char *) "bitmap", NULL | |
25284 | }; | |
25285 | ||
25286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyBitmapDataObject",kwnames,&obj0)) goto fail; | |
25287 | if (obj0) { | |
25288 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
25289 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25290 | SWIG_fail; | |
25291 | if (arg1 == NULL) { | |
25292 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25293 | SWIG_fail; | |
25294 | } | |
25295 | } | |
25296 | { | |
25297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25298 | result = (wxPyBitmapDataObject *)new wxPyBitmapDataObject((wxBitmap const &)*arg1); | |
25299 | ||
25300 | wxPyEndAllowThreads(__tstate); | |
25301 | if (PyErr_Occurred()) SWIG_fail; | |
25302 | } | |
25303 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyBitmapDataObject, 1); | |
25304 | return resultobj; | |
25305 | fail: | |
25306 | return NULL; | |
25307 | } | |
25308 | ||
25309 | ||
25310 | static PyObject *_wrap_PyBitmapDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25311 | PyObject *resultobj; | |
25312 | wxPyBitmapDataObject *arg1 = (wxPyBitmapDataObject *) 0 ; | |
25313 | PyObject *arg2 = (PyObject *) 0 ; | |
25314 | PyObject *arg3 = (PyObject *) 0 ; | |
25315 | PyObject * obj0 = 0 ; | |
25316 | PyObject * obj1 = 0 ; | |
25317 | PyObject * obj2 = 0 ; | |
25318 | char *kwnames[] = { | |
25319 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25320 | }; | |
25321 | ||
25322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25323 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapDataObject, | |
25324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25325 | arg2 = obj1; | |
25326 | arg3 = obj2; | |
25327 | { | |
25328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25329 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25330 | ||
25331 | wxPyEndAllowThreads(__tstate); | |
25332 | if (PyErr_Occurred()) SWIG_fail; | |
25333 | } | |
25334 | Py_INCREF(Py_None); resultobj = Py_None; | |
25335 | return resultobj; | |
25336 | fail: | |
25337 | return NULL; | |
25338 | } | |
25339 | ||
25340 | ||
25341 | static PyObject * PyBitmapDataObject_swigregister(PyObject *self, PyObject *args) { | |
25342 | PyObject *obj; | |
25343 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25344 | SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapDataObject, obj); | |
25345 | Py_INCREF(obj); | |
25346 | return Py_BuildValue((char *)""); | |
25347 | } | |
25348 | static PyObject *_wrap_new_FileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25349 | PyObject *resultobj; | |
25350 | wxFileDataObject *result; | |
25351 | char *kwnames[] = { | |
25352 | NULL | |
25353 | }; | |
25354 | ||
25355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDataObject",kwnames)) goto fail; | |
25356 | { | |
25357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25358 | result = (wxFileDataObject *)new wxFileDataObject(); | |
25359 | ||
25360 | wxPyEndAllowThreads(__tstate); | |
25361 | if (PyErr_Occurred()) SWIG_fail; | |
25362 | } | |
25363 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileDataObject, 1); | |
25364 | return resultobj; | |
25365 | fail: | |
25366 | return NULL; | |
25367 | } | |
25368 | ||
25369 | ||
25370 | static PyObject *_wrap_FileDataObject_GetFilenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25371 | PyObject *resultobj; | |
25372 | wxFileDataObject *arg1 = (wxFileDataObject *) 0 ; | |
25373 | wxArrayString *result; | |
25374 | PyObject * obj0 = 0 ; | |
25375 | char *kwnames[] = { | |
25376 | (char *) "self", NULL | |
25377 | }; | |
25378 | ||
25379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDataObject_GetFilenames",kwnames,&obj0)) goto fail; | |
25380 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject, | |
25381 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25382 | { | |
25383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25384 | { | |
25385 | wxArrayString const &_result_ref = (arg1)->GetFilenames(); | |
25386 | result = (wxArrayString *) &_result_ref; | |
25387 | } | |
25388 | ||
25389 | wxPyEndAllowThreads(__tstate); | |
25390 | if (PyErr_Occurred()) SWIG_fail; | |
25391 | } | |
25392 | { | |
25393 | resultobj = wxArrayString2PyList_helper(*result); | |
25394 | } | |
25395 | return resultobj; | |
25396 | fail: | |
25397 | return NULL; | |
25398 | } | |
25399 | ||
25400 | ||
25401 | static PyObject *_wrap_FileDataObject_AddFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25402 | PyObject *resultobj; | |
25403 | wxFileDataObject *arg1 = (wxFileDataObject *) 0 ; | |
25404 | wxString *arg2 = 0 ; | |
25405 | bool temp2 = False ; | |
25406 | PyObject * obj0 = 0 ; | |
25407 | PyObject * obj1 = 0 ; | |
25408 | char *kwnames[] = { | |
25409 | (char *) "self",(char *) "filename", NULL | |
25410 | }; | |
25411 | ||
25412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDataObject_AddFile",kwnames,&obj0,&obj1)) goto fail; | |
25413 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject, | |
25414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25415 | { | |
25416 | arg2 = wxString_in_helper(obj1); | |
25417 | if (arg2 == NULL) SWIG_fail; | |
25418 | temp2 = True; | |
25419 | } | |
25420 | { | |
25421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25422 | (arg1)->AddFile((wxString const &)*arg2); | |
25423 | ||
25424 | wxPyEndAllowThreads(__tstate); | |
25425 | if (PyErr_Occurred()) SWIG_fail; | |
25426 | } | |
25427 | Py_INCREF(Py_None); resultobj = Py_None; | |
25428 | { | |
25429 | if (temp2) | |
25430 | delete arg2; | |
25431 | } | |
25432 | return resultobj; | |
25433 | fail: | |
25434 | { | |
25435 | if (temp2) | |
25436 | delete arg2; | |
25437 | } | |
25438 | return NULL; | |
25439 | } | |
25440 | ||
25441 | ||
25442 | static PyObject * FileDataObject_swigregister(PyObject *self, PyObject *args) { | |
25443 | PyObject *obj; | |
25444 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25445 | SWIG_TypeClientData(SWIGTYPE_p_wxFileDataObject, obj); | |
25446 | Py_INCREF(obj); | |
25447 | return Py_BuildValue((char *)""); | |
25448 | } | |
25449 | static PyObject *_wrap_new_CustomDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25450 | PyObject *resultobj; | |
25451 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
25452 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
25453 | wxCustomDataObject *result; | |
25454 | PyObject * obj0 = 0 ; | |
25455 | char *kwnames[] = { | |
25456 | (char *) "format", NULL | |
25457 | }; | |
25458 | ||
25459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CustomDataObject",kwnames,&obj0)) goto fail; | |
25460 | if (obj0) { | |
25461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
25462 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25463 | SWIG_fail; | |
25464 | if (arg1 == NULL) { | |
25465 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25466 | SWIG_fail; | |
25467 | } | |
25468 | } | |
25469 | { | |
25470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25471 | result = (wxCustomDataObject *)new wxCustomDataObject((wxDataFormat const &)*arg1); | |
25472 | ||
25473 | wxPyEndAllowThreads(__tstate); | |
25474 | if (PyErr_Occurred()) SWIG_fail; | |
25475 | } | |
25476 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCustomDataObject, 1); | |
25477 | return resultobj; | |
25478 | fail: | |
25479 | return NULL; | |
25480 | } | |
25481 | ||
25482 | ||
d55e5bfc RD |
25483 | static PyObject *_wrap_CustomDataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { |
25484 | PyObject *resultobj; | |
25485 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
25486 | PyObject *arg2 = (PyObject *) 0 ; | |
25487 | bool result; | |
25488 | PyObject * obj0 = 0 ; | |
25489 | PyObject * obj1 = 0 ; | |
25490 | char *kwnames[] = { | |
25491 | (char *) "self",(char *) "data", NULL | |
25492 | }; | |
25493 | ||
25494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_SetData",kwnames,&obj0,&obj1)) goto fail; | |
25495 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, | |
25496 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25497 | arg2 = obj1; | |
25498 | { | |
25499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25500 | result = (bool)wxCustomDataObject_SetData(arg1,arg2); | |
25501 | ||
25502 | wxPyEndAllowThreads(__tstate); | |
25503 | if (PyErr_Occurred()) SWIG_fail; | |
25504 | } | |
25505 | { | |
25506 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25507 | } | |
25508 | return resultobj; | |
25509 | fail: | |
25510 | return NULL; | |
25511 | } | |
25512 | ||
25513 | ||
25514 | static PyObject *_wrap_CustomDataObject_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25515 | PyObject *resultobj; | |
25516 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
25517 | size_t result; | |
25518 | PyObject * obj0 = 0 ; | |
25519 | char *kwnames[] = { | |
25520 | (char *) "self", NULL | |
25521 | }; | |
25522 | ||
25523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetSize",kwnames,&obj0)) goto fail; | |
25524 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, | |
25525 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25526 | { | |
25527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25528 | result = (size_t)(arg1)->GetSize(); | |
25529 | ||
25530 | wxPyEndAllowThreads(__tstate); | |
25531 | if (PyErr_Occurred()) SWIG_fail; | |
25532 | } | |
25533 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
25534 | return resultobj; | |
25535 | fail: | |
25536 | return NULL; | |
25537 | } | |
25538 | ||
25539 | ||
25540 | static PyObject *_wrap_CustomDataObject_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25541 | PyObject *resultobj; | |
25542 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
25543 | PyObject *result; | |
25544 | PyObject * obj0 = 0 ; | |
25545 | char *kwnames[] = { | |
25546 | (char *) "self", NULL | |
25547 | }; | |
25548 | ||
25549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetData",kwnames,&obj0)) goto fail; | |
25550 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, | |
25551 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25552 | { | |
25553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25554 | result = (PyObject *)wxCustomDataObject_GetData(arg1); | |
25555 | ||
25556 | wxPyEndAllowThreads(__tstate); | |
25557 | if (PyErr_Occurred()) SWIG_fail; | |
25558 | } | |
25559 | resultobj = result; | |
25560 | return resultobj; | |
25561 | fail: | |
25562 | return NULL; | |
25563 | } | |
25564 | ||
25565 | ||
25566 | static PyObject * CustomDataObject_swigregister(PyObject *self, PyObject *args) { | |
25567 | PyObject *obj; | |
25568 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25569 | SWIG_TypeClientData(SWIGTYPE_p_wxCustomDataObject, obj); | |
25570 | Py_INCREF(obj); | |
25571 | return Py_BuildValue((char *)""); | |
25572 | } | |
25573 | static PyObject *_wrap_new_URLDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25574 | PyObject *resultobj; | |
25575 | wxURLDataObject *result; | |
25576 | char *kwnames[] = { | |
25577 | NULL | |
25578 | }; | |
25579 | ||
25580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_URLDataObject",kwnames)) goto fail; | |
25581 | { | |
25582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25583 | result = (wxURLDataObject *)new wxURLDataObject(); | |
25584 | ||
25585 | wxPyEndAllowThreads(__tstate); | |
25586 | if (PyErr_Occurred()) SWIG_fail; | |
25587 | } | |
25588 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxURLDataObject, 1); | |
25589 | return resultobj; | |
25590 | fail: | |
25591 | return NULL; | |
25592 | } | |
25593 | ||
25594 | ||
25595 | static PyObject *_wrap_URLDataObject_GetURL(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25596 | PyObject *resultobj; | |
25597 | wxURLDataObject *arg1 = (wxURLDataObject *) 0 ; | |
25598 | wxString result; | |
25599 | PyObject * obj0 = 0 ; | |
25600 | char *kwnames[] = { | |
25601 | (char *) "self", NULL | |
25602 | }; | |
25603 | ||
25604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:URLDataObject_GetURL",kwnames,&obj0)) goto fail; | |
25605 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject, | |
25606 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25607 | { | |
25608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25609 | result = (arg1)->GetURL(); | |
25610 | ||
25611 | wxPyEndAllowThreads(__tstate); | |
25612 | if (PyErr_Occurred()) SWIG_fail; | |
25613 | } | |
25614 | { | |
25615 | #if wxUSE_UNICODE | |
25616 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
25617 | #else | |
25618 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
25619 | #endif | |
25620 | } | |
25621 | return resultobj; | |
25622 | fail: | |
25623 | return NULL; | |
25624 | } | |
25625 | ||
25626 | ||
25627 | static PyObject *_wrap_URLDataObject_SetURL(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25628 | PyObject *resultobj; | |
25629 | wxURLDataObject *arg1 = (wxURLDataObject *) 0 ; | |
25630 | wxString *arg2 = 0 ; | |
25631 | bool temp2 = False ; | |
25632 | PyObject * obj0 = 0 ; | |
25633 | PyObject * obj1 = 0 ; | |
25634 | char *kwnames[] = { | |
25635 | (char *) "self",(char *) "url", NULL | |
25636 | }; | |
25637 | ||
25638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:URLDataObject_SetURL",kwnames,&obj0,&obj1)) goto fail; | |
25639 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject, | |
25640 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25641 | { | |
25642 | arg2 = wxString_in_helper(obj1); | |
25643 | if (arg2 == NULL) SWIG_fail; | |
25644 | temp2 = True; | |
25645 | } | |
25646 | { | |
25647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25648 | (arg1)->SetURL((wxString const &)*arg2); | |
25649 | ||
25650 | wxPyEndAllowThreads(__tstate); | |
25651 | if (PyErr_Occurred()) SWIG_fail; | |
25652 | } | |
25653 | Py_INCREF(Py_None); resultobj = Py_None; | |
25654 | { | |
25655 | if (temp2) | |
25656 | delete arg2; | |
25657 | } | |
25658 | return resultobj; | |
25659 | fail: | |
25660 | { | |
25661 | if (temp2) | |
25662 | delete arg2; | |
25663 | } | |
25664 | return NULL; | |
25665 | } | |
25666 | ||
25667 | ||
25668 | static PyObject * URLDataObject_swigregister(PyObject *self, PyObject *args) { | |
25669 | PyObject *obj; | |
25670 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25671 | SWIG_TypeClientData(SWIGTYPE_p_wxURLDataObject, obj); | |
25672 | Py_INCREF(obj); | |
25673 | return Py_BuildValue((char *)""); | |
25674 | } | |
25675 | static PyObject *_wrap_new_MetafileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25676 | PyObject *resultobj; | |
25677 | wxMetafileDataObject *result; | |
25678 | char *kwnames[] = { | |
25679 | NULL | |
25680 | }; | |
25681 | ||
25682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MetafileDataObject",kwnames)) goto fail; | |
25683 | { | |
25684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25685 | result = (wxMetafileDataObject *)new wxMetafileDataObject(); | |
25686 | ||
25687 | wxPyEndAllowThreads(__tstate); | |
25688 | if (PyErr_Occurred()) SWIG_fail; | |
25689 | } | |
25690 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetafileDataObject, 1); | |
25691 | return resultobj; | |
25692 | fail: | |
25693 | return NULL; | |
25694 | } | |
25695 | ||
25696 | ||
25697 | static PyObject *_wrap_MetafileDataObject_SetMetafile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25698 | PyObject *resultobj; | |
25699 | wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ; | |
25700 | wxMetafile *arg2 = 0 ; | |
25701 | PyObject * obj0 = 0 ; | |
25702 | PyObject * obj1 = 0 ; | |
25703 | char *kwnames[] = { | |
25704 | (char *) "self",(char *) "metafile", NULL | |
25705 | }; | |
25706 | ||
25707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MetafileDataObject_SetMetafile",kwnames,&obj0,&obj1)) goto fail; | |
25708 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetafileDataObject, | |
25709 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25710 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMetafile, | |
25711 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25712 | SWIG_fail; | |
25713 | if (arg2 == NULL) { | |
25714 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25715 | SWIG_fail; | |
25716 | } | |
25717 | { | |
25718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25719 | (arg1)->SetMetafile((wxMetafile const &)*arg2); | |
25720 | ||
25721 | wxPyEndAllowThreads(__tstate); | |
25722 | if (PyErr_Occurred()) SWIG_fail; | |
25723 | } | |
25724 | Py_INCREF(Py_None); resultobj = Py_None; | |
25725 | return resultobj; | |
25726 | fail: | |
25727 | return NULL; | |
25728 | } | |
25729 | ||
25730 | ||
25731 | static PyObject *_wrap_MetafileDataObject_GetMetafile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25732 | PyObject *resultobj; | |
25733 | wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ; | |
25734 | wxMetafile result; | |
25735 | PyObject * obj0 = 0 ; | |
25736 | char *kwnames[] = { | |
25737 | (char *) "self", NULL | |
25738 | }; | |
25739 | ||
25740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetafileDataObject_GetMetafile",kwnames,&obj0)) goto fail; | |
25741 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetafileDataObject, | |
25742 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25743 | { | |
25744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25745 | result = ((wxMetafileDataObject const *)arg1)->GetMetafile(); | |
25746 | ||
25747 | wxPyEndAllowThreads(__tstate); | |
25748 | if (PyErr_Occurred()) SWIG_fail; | |
25749 | } | |
25750 | { | |
25751 | wxMetafile * resultptr; | |
25752 | resultptr = new wxMetafile((wxMetafile &) result); | |
25753 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxMetafile, 1); | |
25754 | } | |
25755 | return resultobj; | |
25756 | fail: | |
25757 | return NULL; | |
25758 | } | |
25759 | ||
25760 | ||
25761 | static PyObject * MetafileDataObject_swigregister(PyObject *self, PyObject *args) { | |
25762 | PyObject *obj; | |
25763 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25764 | SWIG_TypeClientData(SWIGTYPE_p_wxMetafileDataObject, obj); | |
25765 | Py_INCREF(obj); | |
25766 | return Py_BuildValue((char *)""); | |
25767 | } | |
25768 | static PyObject *_wrap_IsDragResultOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25769 | PyObject *resultobj; | |
25770 | int arg1 ; | |
25771 | bool result; | |
25772 | PyObject * obj0 = 0 ; | |
25773 | char *kwnames[] = { | |
25774 | (char *) "res", NULL | |
25775 | }; | |
25776 | ||
25777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsDragResultOk",kwnames,&obj0)) goto fail; | |
25778 | arg1 = (wxDragResult) SWIG_AsInt(obj0); | |
25779 | if (PyErr_Occurred()) SWIG_fail; | |
25780 | { | |
25781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25782 | result = (bool)wxIsDragResultOk((wxDragResult )arg1); | |
25783 | ||
25784 | wxPyEndAllowThreads(__tstate); | |
25785 | if (PyErr_Occurred()) SWIG_fail; | |
25786 | } | |
25787 | { | |
25788 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25789 | } | |
25790 | return resultobj; | |
25791 | fail: | |
25792 | return NULL; | |
25793 | } | |
25794 | ||
25795 | ||
25796 | static PyObject *_wrap_new_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25797 | PyObject *resultobj; | |
25798 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25799 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
25800 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
25801 | wxCursor const &arg3_defvalue = wxNullCursor ; | |
25802 | wxCursor *arg3 = (wxCursor *) &arg3_defvalue ; | |
25803 | wxCursor const &arg4_defvalue = wxNullCursor ; | |
25804 | wxCursor *arg4 = (wxCursor *) &arg4_defvalue ; | |
25805 | wxPyDropSource *result; | |
25806 | PyObject * obj0 = 0 ; | |
25807 | PyObject * obj1 = 0 ; | |
25808 | PyObject * obj2 = 0 ; | |
25809 | PyObject * obj3 = 0 ; | |
25810 | char *kwnames[] = { | |
25811 | (char *) "win",(char *) "copy",(char *) "move",(char *) "none", NULL | |
25812 | }; | |
25813 | ||
25814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DropSource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
25815 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25816 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25817 | if (obj1) { | |
25818 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
25819 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25820 | SWIG_fail; | |
25821 | if (arg2 == NULL) { | |
25822 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25823 | SWIG_fail; | |
25824 | } | |
25825 | } | |
25826 | if (obj2) { | |
25827 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor, | |
25828 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25829 | SWIG_fail; | |
25830 | if (arg3 == NULL) { | |
25831 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25832 | SWIG_fail; | |
25833 | } | |
25834 | } | |
25835 | if (obj3) { | |
25836 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxCursor, | |
25837 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25838 | SWIG_fail; | |
25839 | if (arg4 == NULL) { | |
25840 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25841 | SWIG_fail; | |
25842 | } | |
25843 | } | |
25844 | { | |
25845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25846 | result = (wxPyDropSource *)new wxPyDropSource(arg1,(wxCursor const &)*arg2,(wxCursor const &)*arg3,(wxCursor const &)*arg4); | |
25847 | ||
25848 | wxPyEndAllowThreads(__tstate); | |
25849 | if (PyErr_Occurred()) SWIG_fail; | |
25850 | } | |
25851 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropSource, 1); | |
25852 | return resultobj; | |
25853 | fail: | |
25854 | return NULL; | |
25855 | } | |
25856 | ||
25857 | ||
25858 | static PyObject *_wrap_DropSource__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25859 | PyObject *resultobj; | |
25860 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25861 | PyObject *arg2 = (PyObject *) 0 ; | |
25862 | PyObject *arg3 = (PyObject *) 0 ; | |
25863 | int arg4 ; | |
25864 | PyObject * obj0 = 0 ; | |
25865 | PyObject * obj1 = 0 ; | |
25866 | PyObject * obj2 = 0 ; | |
25867 | PyObject * obj3 = 0 ; | |
25868 | char *kwnames[] = { | |
25869 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
25870 | }; | |
25871 | ||
25872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropSource__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
25873 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
25874 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25875 | arg2 = obj1; | |
25876 | arg3 = obj2; | |
25877 | arg4 = (int) SWIG_AsInt(obj3); | |
25878 | if (PyErr_Occurred()) SWIG_fail; | |
25879 | { | |
25880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25881 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
25882 | ||
25883 | wxPyEndAllowThreads(__tstate); | |
25884 | if (PyErr_Occurred()) SWIG_fail; | |
25885 | } | |
25886 | Py_INCREF(Py_None); resultobj = Py_None; | |
25887 | return resultobj; | |
25888 | fail: | |
25889 | return NULL; | |
25890 | } | |
25891 | ||
25892 | ||
25893 | static PyObject *_wrap_delete_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25894 | PyObject *resultobj; | |
25895 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25896 | PyObject * obj0 = 0 ; | |
25897 | char *kwnames[] = { | |
25898 | (char *) "self", NULL | |
25899 | }; | |
25900 | ||
25901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropSource",kwnames,&obj0)) goto fail; | |
25902 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
25903 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25904 | { | |
25905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25906 | delete arg1; | |
25907 | ||
25908 | wxPyEndAllowThreads(__tstate); | |
25909 | if (PyErr_Occurred()) SWIG_fail; | |
25910 | } | |
25911 | Py_INCREF(Py_None); resultobj = Py_None; | |
25912 | return resultobj; | |
25913 | fail: | |
25914 | return NULL; | |
25915 | } | |
25916 | ||
25917 | ||
25918 | static PyObject *_wrap_DropSource_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25919 | PyObject *resultobj; | |
25920 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25921 | wxDataObject *arg2 = 0 ; | |
25922 | PyObject * obj0 = 0 ; | |
25923 | PyObject * obj1 = 0 ; | |
25924 | char *kwnames[] = { | |
25925 | (char *) "self",(char *) "data", NULL | |
25926 | }; | |
25927 | ||
25928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_SetData",kwnames,&obj0,&obj1)) goto fail; | |
25929 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
25930 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25931 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
25932 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25933 | SWIG_fail; | |
25934 | if (arg2 == NULL) { | |
25935 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25936 | SWIG_fail; | |
25937 | } | |
25938 | { | |
25939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25940 | (arg1)->SetData(*arg2); | |
25941 | ||
25942 | wxPyEndAllowThreads(__tstate); | |
25943 | if (PyErr_Occurred()) SWIG_fail; | |
25944 | } | |
25945 | Py_INCREF(Py_None); resultobj = Py_None; | |
25946 | return resultobj; | |
25947 | fail: | |
25948 | return NULL; | |
25949 | } | |
25950 | ||
25951 | ||
25952 | static PyObject *_wrap_DropSource_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25953 | PyObject *resultobj; | |
25954 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25955 | wxDataObject *result; | |
25956 | PyObject * obj0 = 0 ; | |
25957 | char *kwnames[] = { | |
25958 | (char *) "self", NULL | |
25959 | }; | |
25960 | ||
25961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropSource_GetDataObject",kwnames,&obj0)) goto fail; | |
25962 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
25963 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25964 | { | |
25965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25966 | result = (wxDataObject *)(arg1)->GetDataObject(); | |
25967 | ||
25968 | wxPyEndAllowThreads(__tstate); | |
25969 | if (PyErr_Occurred()) SWIG_fail; | |
25970 | } | |
25971 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0); | |
25972 | return resultobj; | |
25973 | fail: | |
25974 | return NULL; | |
25975 | } | |
25976 | ||
25977 | ||
25978 | static PyObject *_wrap_DropSource_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25979 | PyObject *resultobj; | |
25980 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
25981 | int arg2 ; | |
25982 | wxCursor *arg3 = 0 ; | |
25983 | PyObject * obj0 = 0 ; | |
25984 | PyObject * obj1 = 0 ; | |
25985 | PyObject * obj2 = 0 ; | |
25986 | char *kwnames[] = { | |
25987 | (char *) "self",(char *) "res",(char *) "cursor", NULL | |
25988 | }; | |
25989 | ||
25990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropSource_SetCursor",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25991 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
25992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25993 | arg2 = (wxDragResult) SWIG_AsInt(obj1); | |
25994 | if (PyErr_Occurred()) SWIG_fail; | |
25995 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor, | |
25996 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25997 | SWIG_fail; | |
25998 | if (arg3 == NULL) { | |
25999 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26000 | SWIG_fail; | |
26001 | } | |
26002 | { | |
26003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26004 | (arg1)->SetCursor((wxDragResult )arg2,(wxCursor const &)*arg3); | |
26005 | ||
26006 | wxPyEndAllowThreads(__tstate); | |
26007 | if (PyErr_Occurred()) SWIG_fail; | |
26008 | } | |
26009 | Py_INCREF(Py_None); resultobj = Py_None; | |
26010 | return resultobj; | |
26011 | fail: | |
26012 | return NULL; | |
26013 | } | |
26014 | ||
26015 | ||
26016 | static PyObject *_wrap_DropSource_DoDragDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26017 | PyObject *resultobj; | |
26018 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
26019 | int arg2 = (int) wxDrag_CopyOnly ; | |
26020 | int result; | |
26021 | PyObject * obj0 = 0 ; | |
26022 | PyObject * obj1 = 0 ; | |
26023 | char *kwnames[] = { | |
26024 | (char *) "self",(char *) "flags", NULL | |
26025 | }; | |
26026 | ||
26027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DropSource_DoDragDrop",kwnames,&obj0,&obj1)) goto fail; | |
26028 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
26029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26030 | if (obj1) { | |
26031 | arg2 = (int) SWIG_AsInt(obj1); | |
26032 | if (PyErr_Occurred()) SWIG_fail; | |
26033 | } | |
26034 | { | |
26035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26036 | result = (int)(arg1)->DoDragDrop(arg2); | |
26037 | ||
26038 | wxPyEndAllowThreads(__tstate); | |
26039 | if (PyErr_Occurred()) SWIG_fail; | |
26040 | } | |
26041 | resultobj = SWIG_FromInt((int)result); | |
26042 | return resultobj; | |
26043 | fail: | |
26044 | return NULL; | |
26045 | } | |
26046 | ||
26047 | ||
26048 | static PyObject *_wrap_DropSource_base_GiveFeedback(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26049 | PyObject *resultobj; | |
26050 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
26051 | int arg2 ; | |
26052 | bool result; | |
26053 | PyObject * obj0 = 0 ; | |
26054 | PyObject * obj1 = 0 ; | |
26055 | char *kwnames[] = { | |
26056 | (char *) "self",(char *) "effect", NULL | |
26057 | }; | |
26058 | ||
26059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_base_GiveFeedback",kwnames,&obj0,&obj1)) goto fail; | |
26060 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
26061 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26062 | arg2 = (wxDragResult) SWIG_AsInt(obj1); | |
26063 | if (PyErr_Occurred()) SWIG_fail; | |
26064 | { | |
26065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26066 | result = (bool)(arg1)->base_GiveFeedback((wxDragResult )arg2); | |
26067 | ||
26068 | wxPyEndAllowThreads(__tstate); | |
26069 | if (PyErr_Occurred()) SWIG_fail; | |
26070 | } | |
26071 | { | |
26072 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26073 | } | |
26074 | return resultobj; | |
26075 | fail: | |
26076 | return NULL; | |
26077 | } | |
26078 | ||
26079 | ||
26080 | static PyObject * DropSource_swigregister(PyObject *self, PyObject *args) { | |
26081 | PyObject *obj; | |
26082 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26083 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDropSource, obj); | |
26084 | Py_INCREF(obj); | |
26085 | return Py_BuildValue((char *)""); | |
26086 | } | |
26087 | static PyObject *_wrap_new_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26088 | PyObject *resultobj; | |
26089 | wxDataObject *arg1 = (wxDataObject *) NULL ; | |
26090 | wxPyDropTarget *result; | |
26091 | PyObject * obj0 = 0 ; | |
26092 | char *kwnames[] = { | |
26093 | (char *) "dataObject", NULL | |
26094 | }; | |
26095 | ||
26096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DropTarget",kwnames,&obj0)) goto fail; | |
26097 | if (obj0) { | |
26098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
26099 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
26100 | } | |
26101 | { | |
26102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26103 | result = (wxPyDropTarget *)new wxPyDropTarget(arg1); | |
26104 | ||
26105 | wxPyEndAllowThreads(__tstate); | |
26106 | if (PyErr_Occurred()) SWIG_fail; | |
26107 | } | |
26108 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 1); | |
26109 | return resultobj; | |
26110 | fail: | |
26111 | return NULL; | |
26112 | } | |
26113 | ||
26114 | ||
26115 | static PyObject *_wrap_DropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26116 | PyObject *resultobj; | |
26117 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26118 | PyObject *arg2 = (PyObject *) 0 ; | |
26119 | PyObject *arg3 = (PyObject *) 0 ; | |
26120 | PyObject * obj0 = 0 ; | |
26121 | PyObject * obj1 = 0 ; | |
26122 | PyObject * obj2 = 0 ; | |
26123 | char *kwnames[] = { | |
26124 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
26125 | }; | |
26126 | ||
26127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26130 | arg2 = obj1; | |
26131 | arg3 = obj2; | |
26132 | { | |
26133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26134 | (arg1)->_setCallbackInfo(arg2,arg3); | |
26135 | ||
26136 | wxPyEndAllowThreads(__tstate); | |
26137 | if (PyErr_Occurred()) SWIG_fail; | |
26138 | } | |
26139 | Py_INCREF(Py_None); resultobj = Py_None; | |
26140 | return resultobj; | |
26141 | fail: | |
26142 | return NULL; | |
26143 | } | |
26144 | ||
26145 | ||
26146 | static PyObject *_wrap_delete_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26147 | PyObject *resultobj; | |
26148 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26149 | PyObject * obj0 = 0 ; | |
26150 | char *kwnames[] = { | |
26151 | (char *) "self", NULL | |
26152 | }; | |
26153 | ||
26154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropTarget",kwnames,&obj0)) goto fail; | |
26155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26157 | { | |
26158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26159 | delete arg1; | |
26160 | ||
26161 | wxPyEndAllowThreads(__tstate); | |
26162 | if (PyErr_Occurred()) SWIG_fail; | |
26163 | } | |
26164 | Py_INCREF(Py_None); resultobj = Py_None; | |
26165 | return resultobj; | |
26166 | fail: | |
26167 | return NULL; | |
26168 | } | |
26169 | ||
26170 | ||
26171 | static PyObject *_wrap_DropTarget_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26172 | PyObject *resultobj; | |
26173 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26174 | wxDataObject *result; | |
26175 | PyObject * obj0 = 0 ; | |
26176 | char *kwnames[] = { | |
26177 | (char *) "self", NULL | |
26178 | }; | |
26179 | ||
26180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDataObject",kwnames,&obj0)) goto fail; | |
26181 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26183 | { | |
26184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26185 | result = (wxDataObject *)(arg1)->GetDataObject(); | |
26186 | ||
26187 | wxPyEndAllowThreads(__tstate); | |
26188 | if (PyErr_Occurred()) SWIG_fail; | |
26189 | } | |
26190 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0); | |
26191 | return resultobj; | |
26192 | fail: | |
26193 | return NULL; | |
26194 | } | |
26195 | ||
26196 | ||
26197 | static PyObject *_wrap_DropTarget_SetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26198 | PyObject *resultobj; | |
26199 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26200 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
26201 | PyObject * obj0 = 0 ; | |
26202 | PyObject * obj1 = 0 ; | |
26203 | char *kwnames[] = { | |
26204 | (char *) "self",(char *) "dataObject", NULL | |
26205 | }; | |
26206 | ||
26207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDataObject",kwnames,&obj0,&obj1)) goto fail; | |
26208 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26209 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26210 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
26211 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
26212 | { | |
26213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26214 | (arg1)->SetDataObject(arg2); | |
26215 | ||
26216 | wxPyEndAllowThreads(__tstate); | |
26217 | if (PyErr_Occurred()) SWIG_fail; | |
26218 | } | |
26219 | Py_INCREF(Py_None); resultobj = Py_None; | |
26220 | return resultobj; | |
26221 | fail: | |
26222 | return NULL; | |
26223 | } | |
26224 | ||
26225 | ||
26226 | static PyObject *_wrap_DropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26227 | PyObject *resultobj; | |
26228 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26229 | int arg2 ; | |
26230 | int arg3 ; | |
26231 | int arg4 ; | |
26232 | int result; | |
26233 | PyObject * obj0 = 0 ; | |
26234 | PyObject * obj1 = 0 ; | |
26235 | PyObject * obj2 = 0 ; | |
26236 | PyObject * obj3 = 0 ; | |
26237 | char *kwnames[] = { | |
26238 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26239 | }; | |
26240 | ||
26241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26242 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26243 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26244 | arg2 = (int) SWIG_AsInt(obj1); | |
26245 | if (PyErr_Occurred()) SWIG_fail; | |
26246 | arg3 = (int) SWIG_AsInt(obj2); | |
26247 | if (PyErr_Occurred()) SWIG_fail; | |
26248 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26249 | if (PyErr_Occurred()) SWIG_fail; | |
26250 | { | |
26251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26252 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
26253 | ||
26254 | wxPyEndAllowThreads(__tstate); | |
26255 | if (PyErr_Occurred()) SWIG_fail; | |
26256 | } | |
26257 | resultobj = SWIG_FromInt((int)result); | |
26258 | return resultobj; | |
26259 | fail: | |
26260 | return NULL; | |
26261 | } | |
26262 | ||
26263 | ||
26264 | static PyObject *_wrap_DropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26265 | PyObject *resultobj; | |
26266 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26267 | int arg2 ; | |
26268 | int arg3 ; | |
26269 | int arg4 ; | |
26270 | int result; | |
26271 | PyObject * obj0 = 0 ; | |
26272 | PyObject * obj1 = 0 ; | |
26273 | PyObject * obj2 = 0 ; | |
26274 | PyObject * obj3 = 0 ; | |
26275 | char *kwnames[] = { | |
26276 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26277 | }; | |
26278 | ||
26279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26282 | arg2 = (int) SWIG_AsInt(obj1); | |
26283 | if (PyErr_Occurred()) SWIG_fail; | |
26284 | arg3 = (int) SWIG_AsInt(obj2); | |
26285 | if (PyErr_Occurred()) SWIG_fail; | |
26286 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26287 | if (PyErr_Occurred()) SWIG_fail; | |
26288 | { | |
26289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26290 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
26291 | ||
26292 | wxPyEndAllowThreads(__tstate); | |
26293 | if (PyErr_Occurred()) SWIG_fail; | |
26294 | } | |
26295 | resultobj = SWIG_FromInt((int)result); | |
26296 | return resultobj; | |
26297 | fail: | |
26298 | return NULL; | |
26299 | } | |
26300 | ||
26301 | ||
26302 | static PyObject *_wrap_DropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26303 | PyObject *resultobj; | |
26304 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26305 | PyObject * obj0 = 0 ; | |
26306 | char *kwnames[] = { | |
26307 | (char *) "self", NULL | |
26308 | }; | |
26309 | ||
26310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
26311 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26312 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26313 | { | |
26314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26315 | (arg1)->base_OnLeave(); | |
26316 | ||
26317 | wxPyEndAllowThreads(__tstate); | |
26318 | if (PyErr_Occurred()) SWIG_fail; | |
26319 | } | |
26320 | Py_INCREF(Py_None); resultobj = Py_None; | |
26321 | return resultobj; | |
26322 | fail: | |
26323 | return NULL; | |
26324 | } | |
26325 | ||
26326 | ||
26327 | static PyObject *_wrap_DropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26328 | PyObject *resultobj; | |
26329 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26330 | int arg2 ; | |
26331 | int arg3 ; | |
26332 | bool result; | |
26333 | PyObject * obj0 = 0 ; | |
26334 | PyObject * obj1 = 0 ; | |
26335 | PyObject * obj2 = 0 ; | |
26336 | char *kwnames[] = { | |
26337 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26338 | }; | |
26339 | ||
26340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26343 | arg2 = (int) SWIG_AsInt(obj1); | |
26344 | if (PyErr_Occurred()) SWIG_fail; | |
26345 | arg3 = (int) SWIG_AsInt(obj2); | |
26346 | if (PyErr_Occurred()) SWIG_fail; | |
26347 | { | |
26348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26349 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
26350 | ||
26351 | wxPyEndAllowThreads(__tstate); | |
26352 | if (PyErr_Occurred()) SWIG_fail; | |
26353 | } | |
26354 | { | |
26355 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26356 | } | |
26357 | return resultobj; | |
26358 | fail: | |
26359 | return NULL; | |
26360 | } | |
26361 | ||
26362 | ||
26363 | static PyObject *_wrap_DropTarget_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26364 | PyObject *resultobj; | |
26365 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26366 | bool result; | |
26367 | PyObject * obj0 = 0 ; | |
26368 | char *kwnames[] = { | |
26369 | (char *) "self", NULL | |
26370 | }; | |
26371 | ||
26372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetData",kwnames,&obj0)) goto fail; | |
26373 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26374 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26375 | { | |
26376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26377 | result = (bool)(arg1)->GetData(); | |
26378 | ||
26379 | wxPyEndAllowThreads(__tstate); | |
26380 | if (PyErr_Occurred()) SWIG_fail; | |
26381 | } | |
26382 | { | |
26383 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26384 | } | |
26385 | return resultobj; | |
26386 | fail: | |
26387 | return NULL; | |
26388 | } | |
26389 | ||
26390 | ||
26391 | static PyObject * DropTarget_swigregister(PyObject *self, PyObject *args) { | |
26392 | PyObject *obj; | |
26393 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26394 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDropTarget, obj); | |
26395 | Py_INCREF(obj); | |
26396 | return Py_BuildValue((char *)""); | |
26397 | } | |
26398 | static PyObject *_wrap_new_TextDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26399 | PyObject *resultobj; | |
26400 | wxPyTextDropTarget *result; | |
26401 | char *kwnames[] = { | |
26402 | NULL | |
26403 | }; | |
26404 | ||
26405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TextDropTarget",kwnames)) goto fail; | |
26406 | { | |
26407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26408 | result = (wxPyTextDropTarget *)new wxPyTextDropTarget(); | |
26409 | ||
26410 | wxPyEndAllowThreads(__tstate); | |
26411 | if (PyErr_Occurred()) SWIG_fail; | |
26412 | } | |
26413 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDropTarget, 1); | |
26414 | return resultobj; | |
26415 | fail: | |
26416 | return NULL; | |
26417 | } | |
26418 | ||
26419 | ||
26420 | static PyObject *_wrap_TextDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26421 | PyObject *resultobj; | |
26422 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26423 | PyObject *arg2 = (PyObject *) 0 ; | |
26424 | PyObject *arg3 = (PyObject *) 0 ; | |
26425 | PyObject * obj0 = 0 ; | |
26426 | PyObject * obj1 = 0 ; | |
26427 | PyObject * obj2 = 0 ; | |
26428 | char *kwnames[] = { | |
26429 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
26430 | }; | |
26431 | ||
26432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26433 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, | |
26434 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26435 | arg2 = obj1; | |
26436 | arg3 = obj2; | |
26437 | { | |
26438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26439 | (arg1)->_setCallbackInfo(arg2,arg3); | |
26440 | ||
26441 | wxPyEndAllowThreads(__tstate); | |
26442 | if (PyErr_Occurred()) SWIG_fail; | |
26443 | } | |
26444 | Py_INCREF(Py_None); resultobj = Py_None; | |
26445 | return resultobj; | |
26446 | fail: | |
26447 | return NULL; | |
26448 | } | |
26449 | ||
26450 | ||
26451 | static PyObject *_wrap_TextDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26452 | PyObject *resultobj; | |
26453 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26454 | int arg2 ; | |
26455 | int arg3 ; | |
26456 | int arg4 ; | |
26457 | int result; | |
26458 | PyObject * obj0 = 0 ; | |
26459 | PyObject * obj1 = 0 ; | |
26460 | PyObject * obj2 = 0 ; | |
26461 | PyObject * obj3 = 0 ; | |
26462 | char *kwnames[] = { | |
26463 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26464 | }; | |
26465 | ||
26466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26467 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, | |
26468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26469 | arg2 = (int) SWIG_AsInt(obj1); | |
26470 | if (PyErr_Occurred()) SWIG_fail; | |
26471 | arg3 = (int) SWIG_AsInt(obj2); | |
26472 | if (PyErr_Occurred()) SWIG_fail; | |
26473 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26474 | if (PyErr_Occurred()) SWIG_fail; | |
26475 | { | |
26476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26477 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
26478 | ||
26479 | wxPyEndAllowThreads(__tstate); | |
26480 | if (PyErr_Occurred()) SWIG_fail; | |
26481 | } | |
26482 | resultobj = SWIG_FromInt((int)result); | |
26483 | return resultobj; | |
26484 | fail: | |
26485 | return NULL; | |
26486 | } | |
26487 | ||
26488 | ||
26489 | static PyObject *_wrap_TextDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26490 | PyObject *resultobj; | |
26491 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26492 | int arg2 ; | |
26493 | int arg3 ; | |
26494 | int arg4 ; | |
26495 | int result; | |
26496 | PyObject * obj0 = 0 ; | |
26497 | PyObject * obj1 = 0 ; | |
26498 | PyObject * obj2 = 0 ; | |
26499 | PyObject * obj3 = 0 ; | |
26500 | char *kwnames[] = { | |
26501 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26502 | }; | |
26503 | ||
26504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, | |
26506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26507 | arg2 = (int) SWIG_AsInt(obj1); | |
26508 | if (PyErr_Occurred()) SWIG_fail; | |
26509 | arg3 = (int) SWIG_AsInt(obj2); | |
26510 | if (PyErr_Occurred()) SWIG_fail; | |
26511 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26512 | if (PyErr_Occurred()) SWIG_fail; | |
26513 | { | |
26514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26515 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
26516 | ||
26517 | wxPyEndAllowThreads(__tstate); | |
26518 | if (PyErr_Occurred()) SWIG_fail; | |
26519 | } | |
26520 | resultobj = SWIG_FromInt((int)result); | |
26521 | return resultobj; | |
26522 | fail: | |
26523 | return NULL; | |
26524 | } | |
26525 | ||
26526 | ||
26527 | static PyObject *_wrap_TextDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26528 | PyObject *resultobj; | |
26529 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26530 | PyObject * obj0 = 0 ; | |
26531 | char *kwnames[] = { | |
26532 | (char *) "self", NULL | |
26533 | }; | |
26534 | ||
26535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
26536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, | |
26537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26538 | { | |
26539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26540 | (arg1)->base_OnLeave(); | |
26541 | ||
26542 | wxPyEndAllowThreads(__tstate); | |
26543 | if (PyErr_Occurred()) SWIG_fail; | |
26544 | } | |
26545 | Py_INCREF(Py_None); resultobj = Py_None; | |
26546 | return resultobj; | |
26547 | fail: | |
26548 | return NULL; | |
26549 | } | |
26550 | ||
26551 | ||
26552 | static PyObject *_wrap_TextDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26553 | PyObject *resultobj; | |
26554 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26555 | int arg2 ; | |
26556 | int arg3 ; | |
26557 | bool result; | |
26558 | PyObject * obj0 = 0 ; | |
26559 | PyObject * obj1 = 0 ; | |
26560 | PyObject * obj2 = 0 ; | |
26561 | char *kwnames[] = { | |
26562 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26563 | }; | |
26564 | ||
26565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26566 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, | |
26567 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26568 | arg2 = (int) SWIG_AsInt(obj1); | |
26569 | if (PyErr_Occurred()) SWIG_fail; | |
26570 | arg3 = (int) SWIG_AsInt(obj2); | |
26571 | if (PyErr_Occurred()) SWIG_fail; | |
26572 | { | |
26573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26574 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
26575 | ||
26576 | wxPyEndAllowThreads(__tstate); | |
26577 | if (PyErr_Occurred()) SWIG_fail; | |
26578 | } | |
26579 | { | |
26580 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26581 | } | |
26582 | return resultobj; | |
26583 | fail: | |
26584 | return NULL; | |
26585 | } | |
26586 | ||
26587 | ||
26588 | static PyObject *_wrap_TextDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26589 | PyObject *resultobj; | |
26590 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26591 | int arg2 ; | |
26592 | int arg3 ; | |
26593 | int arg4 ; | |
26594 | int result; | |
26595 | PyObject * obj0 = 0 ; | |
26596 | PyObject * obj1 = 0 ; | |
26597 | PyObject * obj2 = 0 ; | |
26598 | PyObject * obj3 = 0 ; | |
26599 | char *kwnames[] = { | |
26600 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26601 | }; | |
26602 | ||
26603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26604 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, | |
26605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26606 | arg2 = (int) SWIG_AsInt(obj1); | |
26607 | if (PyErr_Occurred()) SWIG_fail; | |
26608 | arg3 = (int) SWIG_AsInt(obj2); | |
26609 | if (PyErr_Occurred()) SWIG_fail; | |
26610 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26611 | if (PyErr_Occurred()) SWIG_fail; | |
26612 | { | |
26613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26614 | result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4); | |
26615 | ||
26616 | wxPyEndAllowThreads(__tstate); | |
26617 | if (PyErr_Occurred()) SWIG_fail; | |
26618 | } | |
26619 | resultobj = SWIG_FromInt((int)result); | |
26620 | return resultobj; | |
26621 | fail: | |
26622 | return NULL; | |
26623 | } | |
26624 | ||
26625 | ||
26626 | static PyObject * TextDropTarget_swigregister(PyObject *self, PyObject *args) { | |
26627 | PyObject *obj; | |
26628 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26629 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDropTarget, obj); | |
26630 | Py_INCREF(obj); | |
26631 | return Py_BuildValue((char *)""); | |
26632 | } | |
26633 | static PyObject *_wrap_new_FileDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26634 | PyObject *resultobj; | |
26635 | wxPyFileDropTarget *result; | |
26636 | char *kwnames[] = { | |
26637 | NULL | |
26638 | }; | |
26639 | ||
26640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDropTarget",kwnames)) goto fail; | |
26641 | { | |
26642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26643 | result = (wxPyFileDropTarget *)new wxPyFileDropTarget(); | |
26644 | ||
26645 | wxPyEndAllowThreads(__tstate); | |
26646 | if (PyErr_Occurred()) SWIG_fail; | |
26647 | } | |
26648 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileDropTarget, 1); | |
26649 | return resultobj; | |
26650 | fail: | |
26651 | return NULL; | |
26652 | } | |
26653 | ||
26654 | ||
26655 | static PyObject *_wrap_FileDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26656 | PyObject *resultobj; | |
26657 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
26658 | PyObject *arg2 = (PyObject *) 0 ; | |
26659 | PyObject *arg3 = (PyObject *) 0 ; | |
26660 | PyObject * obj0 = 0 ; | |
26661 | PyObject * obj1 = 0 ; | |
26662 | PyObject * obj2 = 0 ; | |
26663 | char *kwnames[] = { | |
26664 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
26665 | }; | |
26666 | ||
26667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26668 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, | |
26669 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26670 | arg2 = obj1; | |
26671 | arg3 = obj2; | |
26672 | { | |
26673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26674 | (arg1)->_setCallbackInfo(arg2,arg3); | |
26675 | ||
26676 | wxPyEndAllowThreads(__tstate); | |
26677 | if (PyErr_Occurred()) SWIG_fail; | |
26678 | } | |
26679 | Py_INCREF(Py_None); resultobj = Py_None; | |
26680 | return resultobj; | |
26681 | fail: | |
26682 | return NULL; | |
26683 | } | |
26684 | ||
26685 | ||
26686 | static PyObject *_wrap_FileDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26687 | PyObject *resultobj; | |
26688 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
26689 | int arg2 ; | |
26690 | int arg3 ; | |
26691 | int arg4 ; | |
26692 | int result; | |
26693 | PyObject * obj0 = 0 ; | |
26694 | PyObject * obj1 = 0 ; | |
26695 | PyObject * obj2 = 0 ; | |
26696 | PyObject * obj3 = 0 ; | |
26697 | char *kwnames[] = { | |
26698 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26699 | }; | |
26700 | ||
26701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26702 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, | |
26703 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26704 | arg2 = (int) SWIG_AsInt(obj1); | |
26705 | if (PyErr_Occurred()) SWIG_fail; | |
26706 | arg3 = (int) SWIG_AsInt(obj2); | |
26707 | if (PyErr_Occurred()) SWIG_fail; | |
26708 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26709 | if (PyErr_Occurred()) SWIG_fail; | |
26710 | { | |
26711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26712 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
26713 | ||
26714 | wxPyEndAllowThreads(__tstate); | |
26715 | if (PyErr_Occurred()) SWIG_fail; | |
26716 | } | |
26717 | resultobj = SWIG_FromInt((int)result); | |
26718 | return resultobj; | |
26719 | fail: | |
26720 | return NULL; | |
26721 | } | |
26722 | ||
26723 | ||
26724 | static PyObject *_wrap_FileDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26725 | PyObject *resultobj; | |
26726 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
26727 | int arg2 ; | |
26728 | int arg3 ; | |
26729 | int arg4 ; | |
26730 | int result; | |
26731 | PyObject * obj0 = 0 ; | |
26732 | PyObject * obj1 = 0 ; | |
26733 | PyObject * obj2 = 0 ; | |
26734 | PyObject * obj3 = 0 ; | |
26735 | char *kwnames[] = { | |
26736 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26737 | }; | |
26738 | ||
26739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26740 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, | |
26741 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26742 | arg2 = (int) SWIG_AsInt(obj1); | |
26743 | if (PyErr_Occurred()) SWIG_fail; | |
26744 | arg3 = (int) SWIG_AsInt(obj2); | |
26745 | if (PyErr_Occurred()) SWIG_fail; | |
26746 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26747 | if (PyErr_Occurred()) SWIG_fail; | |
26748 | { | |
26749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26750 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
26751 | ||
26752 | wxPyEndAllowThreads(__tstate); | |
26753 | if (PyErr_Occurred()) SWIG_fail; | |
26754 | } | |
26755 | resultobj = SWIG_FromInt((int)result); | |
26756 | return resultobj; | |
26757 | fail: | |
26758 | return NULL; | |
26759 | } | |
26760 | ||
26761 | ||
26762 | static PyObject *_wrap_FileDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26763 | PyObject *resultobj; | |
26764 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
26765 | PyObject * obj0 = 0 ; | |
26766 | char *kwnames[] = { | |
26767 | (char *) "self", NULL | |
26768 | }; | |
26769 | ||
26770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
26771 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, | |
26772 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26773 | { | |
26774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26775 | (arg1)->base_OnLeave(); | |
26776 | ||
26777 | wxPyEndAllowThreads(__tstate); | |
26778 | if (PyErr_Occurred()) SWIG_fail; | |
26779 | } | |
26780 | Py_INCREF(Py_None); resultobj = Py_None; | |
26781 | return resultobj; | |
26782 | fail: | |
26783 | return NULL; | |
26784 | } | |
26785 | ||
26786 | ||
26787 | static PyObject *_wrap_FileDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26788 | PyObject *resultobj; | |
26789 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
26790 | int arg2 ; | |
26791 | int arg3 ; | |
26792 | bool result; | |
26793 | PyObject * obj0 = 0 ; | |
26794 | PyObject * obj1 = 0 ; | |
26795 | PyObject * obj2 = 0 ; | |
26796 | char *kwnames[] = { | |
26797 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26798 | }; | |
26799 | ||
26800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26801 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, | |
26802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26803 | arg2 = (int) SWIG_AsInt(obj1); | |
26804 | if (PyErr_Occurred()) SWIG_fail; | |
26805 | arg3 = (int) SWIG_AsInt(obj2); | |
26806 | if (PyErr_Occurred()) SWIG_fail; | |
26807 | { | |
26808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26809 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
26810 | ||
26811 | wxPyEndAllowThreads(__tstate); | |
26812 | if (PyErr_Occurred()) SWIG_fail; | |
26813 | } | |
26814 | { | |
26815 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26816 | } | |
26817 | return resultobj; | |
26818 | fail: | |
26819 | return NULL; | |
26820 | } | |
26821 | ||
26822 | ||
26823 | static PyObject *_wrap_FileDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26824 | PyObject *resultobj; | |
26825 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
26826 | int arg2 ; | |
26827 | int arg3 ; | |
26828 | int arg4 ; | |
26829 | int result; | |
26830 | PyObject * obj0 = 0 ; | |
26831 | PyObject * obj1 = 0 ; | |
26832 | PyObject * obj2 = 0 ; | |
26833 | PyObject * obj3 = 0 ; | |
26834 | char *kwnames[] = { | |
26835 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26836 | }; | |
26837 | ||
26838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26839 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, | |
26840 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26841 | arg2 = (int) SWIG_AsInt(obj1); | |
26842 | if (PyErr_Occurred()) SWIG_fail; | |
26843 | arg3 = (int) SWIG_AsInt(obj2); | |
26844 | if (PyErr_Occurred()) SWIG_fail; | |
26845 | arg4 = (wxDragResult) SWIG_AsInt(obj3); | |
26846 | if (PyErr_Occurred()) SWIG_fail; | |
26847 | { | |
26848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26849 | result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4); | |
26850 | ||
26851 | wxPyEndAllowThreads(__tstate); | |
26852 | if (PyErr_Occurred()) SWIG_fail; | |
26853 | } | |
26854 | resultobj = SWIG_FromInt((int)result); | |
26855 | return resultobj; | |
26856 | fail: | |
26857 | return NULL; | |
26858 | } | |
26859 | ||
26860 | ||
26861 | static PyObject * FileDropTarget_swigregister(PyObject *self, PyObject *args) { | |
26862 | PyObject *obj; | |
26863 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26864 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFileDropTarget, obj); | |
26865 | Py_INCREF(obj); | |
26866 | return Py_BuildValue((char *)""); | |
26867 | } | |
26868 | static PyObject *_wrap_new_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26869 | PyObject *resultobj; | |
26870 | wxClipboard *result; | |
26871 | char *kwnames[] = { | |
26872 | NULL | |
26873 | }; | |
26874 | ||
26875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Clipboard",kwnames)) goto fail; | |
26876 | { | |
26877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26878 | result = (wxClipboard *)new wxClipboard(); | |
26879 | ||
26880 | wxPyEndAllowThreads(__tstate); | |
26881 | if (PyErr_Occurred()) SWIG_fail; | |
26882 | } | |
26883 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 1); | |
26884 | return resultobj; | |
26885 | fail: | |
26886 | return NULL; | |
26887 | } | |
26888 | ||
26889 | ||
26890 | static PyObject *_wrap_delete_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26891 | PyObject *resultobj; | |
26892 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26893 | PyObject * obj0 = 0 ; | |
26894 | char *kwnames[] = { | |
26895 | (char *) "self", NULL | |
26896 | }; | |
26897 | ||
26898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Clipboard",kwnames,&obj0)) goto fail; | |
26899 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
26900 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26901 | { | |
26902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26903 | delete arg1; | |
26904 | ||
26905 | wxPyEndAllowThreads(__tstate); | |
26906 | if (PyErr_Occurred()) SWIG_fail; | |
26907 | } | |
26908 | Py_INCREF(Py_None); resultobj = Py_None; | |
26909 | return resultobj; | |
26910 | fail: | |
26911 | return NULL; | |
26912 | } | |
26913 | ||
26914 | ||
26915 | static PyObject *_wrap_Clipboard_Open(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26916 | PyObject *resultobj; | |
26917 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26918 | bool result; | |
26919 | PyObject * obj0 = 0 ; | |
26920 | char *kwnames[] = { | |
26921 | (char *) "self", NULL | |
26922 | }; | |
26923 | ||
26924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Open",kwnames,&obj0)) goto fail; | |
26925 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
26926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26927 | { | |
26928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26929 | result = (bool)(arg1)->Open(); | |
26930 | ||
26931 | wxPyEndAllowThreads(__tstate); | |
26932 | if (PyErr_Occurred()) SWIG_fail; | |
26933 | } | |
26934 | { | |
26935 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26936 | } | |
26937 | return resultobj; | |
26938 | fail: | |
26939 | return NULL; | |
26940 | } | |
26941 | ||
26942 | ||
26943 | static PyObject *_wrap_Clipboard_Close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26944 | PyObject *resultobj; | |
26945 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26946 | PyObject * obj0 = 0 ; | |
26947 | char *kwnames[] = { | |
26948 | (char *) "self", NULL | |
26949 | }; | |
26950 | ||
26951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Close",kwnames,&obj0)) goto fail; | |
26952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
26953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26954 | { | |
26955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26956 | (arg1)->Close(); | |
26957 | ||
26958 | wxPyEndAllowThreads(__tstate); | |
26959 | if (PyErr_Occurred()) SWIG_fail; | |
26960 | } | |
26961 | Py_INCREF(Py_None); resultobj = Py_None; | |
26962 | return resultobj; | |
26963 | fail: | |
26964 | return NULL; | |
26965 | } | |
26966 | ||
26967 | ||
26968 | static PyObject *_wrap_Clipboard_IsOpened(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26969 | PyObject *resultobj; | |
26970 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26971 | bool result; | |
26972 | PyObject * obj0 = 0 ; | |
26973 | char *kwnames[] = { | |
26974 | (char *) "self", NULL | |
26975 | }; | |
26976 | ||
26977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_IsOpened",kwnames,&obj0)) goto fail; | |
26978 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
26979 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26980 | { | |
26981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26982 | result = (bool)((wxClipboard const *)arg1)->IsOpened(); | |
26983 | ||
26984 | wxPyEndAllowThreads(__tstate); | |
26985 | if (PyErr_Occurred()) SWIG_fail; | |
26986 | } | |
26987 | { | |
26988 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26989 | } | |
26990 | return resultobj; | |
26991 | fail: | |
26992 | return NULL; | |
26993 | } | |
26994 | ||
26995 | ||
26996 | static PyObject *_wrap_Clipboard_AddData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26997 | PyObject *resultobj; | |
26998 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
26999 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
27000 | bool result; | |
27001 | PyObject * obj0 = 0 ; | |
27002 | PyObject * obj1 = 0 ; | |
27003 | char *kwnames[] = { | |
27004 | (char *) "self",(char *) "data", NULL | |
27005 | }; | |
27006 | ||
27007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_AddData",kwnames,&obj0,&obj1)) goto fail; | |
27008 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27009 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27010 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
27011 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
27012 | { | |
27013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27014 | result = (bool)(arg1)->AddData(arg2); | |
27015 | ||
27016 | wxPyEndAllowThreads(__tstate); | |
27017 | if (PyErr_Occurred()) SWIG_fail; | |
27018 | } | |
27019 | { | |
27020 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27021 | } | |
27022 | return resultobj; | |
27023 | fail: | |
27024 | return NULL; | |
27025 | } | |
27026 | ||
27027 | ||
27028 | static PyObject *_wrap_Clipboard_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27029 | PyObject *resultobj; | |
27030 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27031 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
27032 | bool result; | |
27033 | PyObject * obj0 = 0 ; | |
27034 | PyObject * obj1 = 0 ; | |
27035 | char *kwnames[] = { | |
27036 | (char *) "self",(char *) "data", NULL | |
27037 | }; | |
27038 | ||
27039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_SetData",kwnames,&obj0,&obj1)) goto fail; | |
27040 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27041 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27042 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
27043 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
27044 | { | |
27045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27046 | result = (bool)(arg1)->SetData(arg2); | |
27047 | ||
27048 | wxPyEndAllowThreads(__tstate); | |
27049 | if (PyErr_Occurred()) SWIG_fail; | |
27050 | } | |
27051 | { | |
27052 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27053 | } | |
27054 | return resultobj; | |
27055 | fail: | |
27056 | return NULL; | |
27057 | } | |
27058 | ||
27059 | ||
27060 | static PyObject *_wrap_Clipboard_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27061 | PyObject *resultobj; | |
27062 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27063 | wxDataFormat *arg2 = 0 ; | |
27064 | bool result; | |
27065 | PyObject * obj0 = 0 ; | |
27066 | PyObject * obj1 = 0 ; | |
27067 | char *kwnames[] = { | |
27068 | (char *) "self",(char *) "format", NULL | |
27069 | }; | |
27070 | ||
27071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_IsSupported",kwnames,&obj0,&obj1)) goto fail; | |
27072 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27073 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27074 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
27075 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27076 | SWIG_fail; | |
27077 | if (arg2 == NULL) { | |
27078 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27079 | SWIG_fail; | |
27080 | } | |
27081 | { | |
27082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27083 | result = (bool)(arg1)->IsSupported((wxDataFormat const &)*arg2); | |
27084 | ||
27085 | wxPyEndAllowThreads(__tstate); | |
27086 | if (PyErr_Occurred()) SWIG_fail; | |
27087 | } | |
27088 | { | |
27089 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27090 | } | |
27091 | return resultobj; | |
27092 | fail: | |
27093 | return NULL; | |
27094 | } | |
27095 | ||
27096 | ||
27097 | static PyObject *_wrap_Clipboard_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27098 | PyObject *resultobj; | |
27099 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27100 | wxDataObject *arg2 = 0 ; | |
27101 | bool result; | |
27102 | PyObject * obj0 = 0 ; | |
27103 | PyObject * obj1 = 0 ; | |
27104 | char *kwnames[] = { | |
27105 | (char *) "self",(char *) "data", NULL | |
27106 | }; | |
27107 | ||
27108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_GetData",kwnames,&obj0,&obj1)) goto fail; | |
27109 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27110 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27111 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
27112 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27113 | SWIG_fail; | |
27114 | if (arg2 == NULL) { | |
27115 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27116 | SWIG_fail; | |
27117 | } | |
27118 | { | |
27119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27120 | result = (bool)(arg1)->GetData(*arg2); | |
27121 | ||
27122 | wxPyEndAllowThreads(__tstate); | |
27123 | if (PyErr_Occurred()) SWIG_fail; | |
27124 | } | |
27125 | { | |
27126 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27127 | } | |
27128 | return resultobj; | |
27129 | fail: | |
27130 | return NULL; | |
27131 | } | |
27132 | ||
27133 | ||
27134 | static PyObject *_wrap_Clipboard_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27135 | PyObject *resultobj; | |
27136 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27137 | PyObject * obj0 = 0 ; | |
27138 | char *kwnames[] = { | |
27139 | (char *) "self", NULL | |
27140 | }; | |
27141 | ||
27142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Clear",kwnames,&obj0)) goto fail; | |
27143 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27144 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27145 | { | |
27146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27147 | (arg1)->Clear(); | |
27148 | ||
27149 | wxPyEndAllowThreads(__tstate); | |
27150 | if (PyErr_Occurred()) SWIG_fail; | |
27151 | } | |
27152 | Py_INCREF(Py_None); resultobj = Py_None; | |
27153 | return resultobj; | |
27154 | fail: | |
27155 | return NULL; | |
27156 | } | |
27157 | ||
27158 | ||
27159 | static PyObject *_wrap_Clipboard_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27160 | PyObject *resultobj; | |
27161 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27162 | bool result; | |
27163 | PyObject * obj0 = 0 ; | |
27164 | char *kwnames[] = { | |
27165 | (char *) "self", NULL | |
27166 | }; | |
27167 | ||
27168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Flush",kwnames,&obj0)) goto fail; | |
27169 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27170 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27171 | { | |
27172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27173 | result = (bool)(arg1)->Flush(); | |
27174 | ||
27175 | wxPyEndAllowThreads(__tstate); | |
27176 | if (PyErr_Occurred()) SWIG_fail; | |
27177 | } | |
27178 | { | |
27179 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27180 | } | |
27181 | return resultobj; | |
27182 | fail: | |
27183 | return NULL; | |
27184 | } | |
27185 | ||
27186 | ||
27187 | static PyObject *_wrap_Clipboard_UsePrimarySelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27188 | PyObject *resultobj; | |
27189 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27190 | bool arg2 = (bool) True ; | |
27191 | PyObject * obj0 = 0 ; | |
27192 | PyObject * obj1 = 0 ; | |
27193 | char *kwnames[] = { | |
27194 | (char *) "self",(char *) "primary", NULL | |
27195 | }; | |
27196 | ||
27197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Clipboard_UsePrimarySelection",kwnames,&obj0,&obj1)) goto fail; | |
27198 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27199 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27200 | if (obj1) { | |
27201 | arg2 = (bool) SWIG_AsBool(obj1); | |
27202 | if (PyErr_Occurred()) SWIG_fail; | |
27203 | } | |
27204 | { | |
27205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27206 | (arg1)->UsePrimarySelection(arg2); | |
27207 | ||
27208 | wxPyEndAllowThreads(__tstate); | |
27209 | if (PyErr_Occurred()) SWIG_fail; | |
27210 | } | |
27211 | Py_INCREF(Py_None); resultobj = Py_None; | |
27212 | return resultobj; | |
27213 | fail: | |
27214 | return NULL; | |
27215 | } | |
27216 | ||
27217 | ||
27218 | static PyObject * Clipboard_swigregister(PyObject *self, PyObject *args) { | |
27219 | PyObject *obj; | |
27220 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27221 | SWIG_TypeClientData(SWIGTYPE_p_wxClipboard, obj); | |
27222 | Py_INCREF(obj); | |
27223 | return Py_BuildValue((char *)""); | |
27224 | } | |
27225 | static int _wrap_TheClipboard_set(PyObject *_val) { | |
27226 | PyErr_SetString(PyExc_TypeError,"Variable TheClipboard is read-only."); | |
27227 | return 1; | |
27228 | } | |
27229 | ||
27230 | ||
27231 | static PyObject *_wrap_TheClipboard_get() { | |
27232 | PyObject *pyobj; | |
27233 | ||
27234 | pyobj = SWIG_NewPointerObj((void *)(wxTheClipboard), SWIGTYPE_p_wxClipboard, 0); | |
27235 | return pyobj; | |
27236 | } | |
27237 | ||
27238 | ||
27239 | static PyObject *_wrap_new_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27240 | PyObject *resultobj; | |
27241 | wxClipboard *arg1 = (wxClipboard *) NULL ; | |
27242 | wxClipboardLocker *result; | |
27243 | PyObject * obj0 = 0 ; | |
27244 | char *kwnames[] = { | |
27245 | (char *) "clipboard", NULL | |
27246 | }; | |
27247 | ||
27248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ClipboardLocker",kwnames,&obj0)) goto fail; | |
27249 | if (obj0) { | |
27250 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27251 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27252 | } | |
27253 | { | |
27254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27255 | result = (wxClipboardLocker *)new wxClipboardLocker(arg1); | |
27256 | ||
27257 | wxPyEndAllowThreads(__tstate); | |
27258 | if (PyErr_Occurred()) SWIG_fail; | |
27259 | } | |
27260 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboardLocker, 1); | |
27261 | return resultobj; | |
27262 | fail: | |
27263 | return NULL; | |
27264 | } | |
27265 | ||
27266 | ||
27267 | static PyObject *_wrap_delete_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27268 | PyObject *resultobj; | |
27269 | wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ; | |
27270 | PyObject * obj0 = 0 ; | |
27271 | char *kwnames[] = { | |
27272 | (char *) "self", NULL | |
27273 | }; | |
27274 | ||
27275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ClipboardLocker",kwnames,&obj0)) goto fail; | |
27276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker, | |
27277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27278 | { | |
27279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27280 | delete arg1; | |
27281 | ||
27282 | wxPyEndAllowThreads(__tstate); | |
27283 | if (PyErr_Occurred()) SWIG_fail; | |
27284 | } | |
27285 | Py_INCREF(Py_None); resultobj = Py_None; | |
27286 | return resultobj; | |
27287 | fail: | |
27288 | return NULL; | |
27289 | } | |
27290 | ||
27291 | ||
27292 | static PyObject *_wrap_ClipboardLocker___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27293 | PyObject *resultobj; | |
27294 | wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ; | |
27295 | bool result; | |
27296 | PyObject * obj0 = 0 ; | |
27297 | char *kwnames[] = { | |
27298 | (char *) "self", NULL | |
27299 | }; | |
27300 | ||
27301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ClipboardLocker___nonzero__",kwnames,&obj0)) goto fail; | |
27302 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker, | |
27303 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27304 | { | |
27305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27306 | result = (bool)wxClipboardLocker___nonzero__(arg1); | |
27307 | ||
27308 | wxPyEndAllowThreads(__tstate); | |
27309 | if (PyErr_Occurred()) SWIG_fail; | |
27310 | } | |
27311 | { | |
27312 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27313 | } | |
27314 | return resultobj; | |
27315 | fail: | |
27316 | return NULL; | |
27317 | } | |
27318 | ||
27319 | ||
27320 | static PyObject * ClipboardLocker_swigregister(PyObject *self, PyObject *args) { | |
27321 | PyObject *obj; | |
27322 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27323 | SWIG_TypeClientData(SWIGTYPE_p_wxClipboardLocker, obj); | |
27324 | Py_INCREF(obj); | |
27325 | return Py_BuildValue((char *)""); | |
27326 | } | |
27327 | static PyObject *_wrap_new_VideoMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27328 | PyObject *resultobj; | |
27329 | int arg1 = (int) 0 ; | |
27330 | int arg2 = (int) 0 ; | |
27331 | int arg3 = (int) 0 ; | |
27332 | int arg4 = (int) 0 ; | |
27333 | wxVideoMode *result; | |
27334 | PyObject * obj0 = 0 ; | |
27335 | PyObject * obj1 = 0 ; | |
27336 | PyObject * obj2 = 0 ; | |
27337 | PyObject * obj3 = 0 ; | |
27338 | char *kwnames[] = { | |
27339 | (char *) "width",(char *) "height",(char *) "depth",(char *) "freq", NULL | |
27340 | }; | |
27341 | ||
27342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_VideoMode",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
27343 | if (obj0) { | |
27344 | arg1 = (int) SWIG_AsInt(obj0); | |
27345 | if (PyErr_Occurred()) SWIG_fail; | |
27346 | } | |
27347 | if (obj1) { | |
27348 | arg2 = (int) SWIG_AsInt(obj1); | |
27349 | if (PyErr_Occurred()) SWIG_fail; | |
27350 | } | |
27351 | if (obj2) { | |
27352 | arg3 = (int) SWIG_AsInt(obj2); | |
27353 | if (PyErr_Occurred()) SWIG_fail; | |
27354 | } | |
27355 | if (obj3) { | |
27356 | arg4 = (int) SWIG_AsInt(obj3); | |
27357 | if (PyErr_Occurred()) SWIG_fail; | |
27358 | } | |
27359 | { | |
27360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27361 | result = (wxVideoMode *)new wxVideoMode(arg1,arg2,arg3,arg4); | |
27362 | ||
27363 | wxPyEndAllowThreads(__tstate); | |
27364 | if (PyErr_Occurred()) SWIG_fail; | |
27365 | } | |
27366 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVideoMode, 1); | |
27367 | return resultobj; | |
27368 | fail: | |
27369 | return NULL; | |
27370 | } | |
27371 | ||
27372 | ||
27373 | static PyObject *_wrap_delete_VideoMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27374 | PyObject *resultobj; | |
27375 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27376 | PyObject * obj0 = 0 ; | |
27377 | char *kwnames[] = { | |
27378 | (char *) "self", NULL | |
27379 | }; | |
27380 | ||
27381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VideoMode",kwnames,&obj0)) goto fail; | |
27382 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27384 | { | |
27385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27386 | delete arg1; | |
27387 | ||
27388 | wxPyEndAllowThreads(__tstate); | |
27389 | if (PyErr_Occurred()) SWIG_fail; | |
27390 | } | |
27391 | Py_INCREF(Py_None); resultobj = Py_None; | |
27392 | return resultobj; | |
27393 | fail: | |
27394 | return NULL; | |
27395 | } | |
27396 | ||
27397 | ||
27398 | static PyObject *_wrap_VideoMode_Matches(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27399 | PyObject *resultobj; | |
27400 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27401 | wxVideoMode *arg2 = 0 ; | |
27402 | bool result; | |
27403 | PyObject * obj0 = 0 ; | |
27404 | PyObject * obj1 = 0 ; | |
27405 | char *kwnames[] = { | |
27406 | (char *) "self",(char *) "other", NULL | |
27407 | }; | |
27408 | ||
27409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_Matches",kwnames,&obj0,&obj1)) goto fail; | |
27410 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27411 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27412 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
27413 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27414 | SWIG_fail; | |
27415 | if (arg2 == NULL) { | |
27416 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27417 | SWIG_fail; | |
27418 | } | |
27419 | { | |
27420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27421 | result = (bool)((wxVideoMode const *)arg1)->Matches((wxVideoMode const &)*arg2); | |
27422 | ||
27423 | wxPyEndAllowThreads(__tstate); | |
27424 | if (PyErr_Occurred()) SWIG_fail; | |
27425 | } | |
27426 | { | |
27427 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27428 | } | |
27429 | return resultobj; | |
27430 | fail: | |
27431 | return NULL; | |
27432 | } | |
27433 | ||
27434 | ||
27435 | static PyObject *_wrap_VideoMode_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27436 | PyObject *resultobj; | |
27437 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27438 | int result; | |
27439 | PyObject * obj0 = 0 ; | |
27440 | char *kwnames[] = { | |
27441 | (char *) "self", NULL | |
27442 | }; | |
27443 | ||
27444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetWidth",kwnames,&obj0)) goto fail; | |
27445 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27446 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27447 | { | |
27448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27449 | result = (int)((wxVideoMode const *)arg1)->GetWidth(); | |
27450 | ||
27451 | wxPyEndAllowThreads(__tstate); | |
27452 | if (PyErr_Occurred()) SWIG_fail; | |
27453 | } | |
27454 | resultobj = SWIG_FromInt((int)result); | |
27455 | return resultobj; | |
27456 | fail: | |
27457 | return NULL; | |
27458 | } | |
27459 | ||
27460 | ||
27461 | static PyObject *_wrap_VideoMode_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27462 | PyObject *resultobj; | |
27463 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27464 | int result; | |
27465 | PyObject * obj0 = 0 ; | |
27466 | char *kwnames[] = { | |
27467 | (char *) "self", NULL | |
27468 | }; | |
27469 | ||
27470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetHeight",kwnames,&obj0)) goto fail; | |
27471 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27472 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27473 | { | |
27474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27475 | result = (int)((wxVideoMode const *)arg1)->GetHeight(); | |
27476 | ||
27477 | wxPyEndAllowThreads(__tstate); | |
27478 | if (PyErr_Occurred()) SWIG_fail; | |
27479 | } | |
27480 | resultobj = SWIG_FromInt((int)result); | |
27481 | return resultobj; | |
27482 | fail: | |
27483 | return NULL; | |
27484 | } | |
27485 | ||
27486 | ||
27487 | static PyObject *_wrap_VideoMode_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27488 | PyObject *resultobj; | |
27489 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27490 | int result; | |
27491 | PyObject * obj0 = 0 ; | |
27492 | char *kwnames[] = { | |
27493 | (char *) "self", NULL | |
27494 | }; | |
27495 | ||
27496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetDepth",kwnames,&obj0)) goto fail; | |
27497 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27498 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27499 | { | |
27500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27501 | result = (int)((wxVideoMode const *)arg1)->GetDepth(); | |
27502 | ||
27503 | wxPyEndAllowThreads(__tstate); | |
27504 | if (PyErr_Occurred()) SWIG_fail; | |
27505 | } | |
27506 | resultobj = SWIG_FromInt((int)result); | |
27507 | return resultobj; | |
27508 | fail: | |
27509 | return NULL; | |
27510 | } | |
27511 | ||
27512 | ||
27513 | static PyObject *_wrap_VideoMode_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27514 | PyObject *resultobj; | |
27515 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27516 | bool result; | |
27517 | PyObject * obj0 = 0 ; | |
27518 | char *kwnames[] = { | |
27519 | (char *) "self", NULL | |
27520 | }; | |
27521 | ||
27522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_IsOk",kwnames,&obj0)) goto fail; | |
27523 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27524 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27525 | { | |
27526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27527 | result = (bool)((wxVideoMode const *)arg1)->IsOk(); | |
27528 | ||
27529 | wxPyEndAllowThreads(__tstate); | |
27530 | if (PyErr_Occurred()) SWIG_fail; | |
27531 | } | |
27532 | { | |
27533 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27534 | } | |
27535 | return resultobj; | |
27536 | fail: | |
27537 | return NULL; | |
27538 | } | |
27539 | ||
27540 | ||
27541 | static PyObject *_wrap_VideoMode___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27542 | PyObject *resultobj; | |
27543 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27544 | wxVideoMode *arg2 = (wxVideoMode *) 0 ; | |
27545 | bool result; | |
27546 | PyObject * obj0 = 0 ; | |
27547 | PyObject * obj1 = 0 ; | |
27548 | char *kwnames[] = { | |
27549 | (char *) "self",(char *) "other", NULL | |
27550 | }; | |
27551 | ||
27552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___eq__",kwnames,&obj0,&obj1)) goto fail; | |
27553 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27554 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27555 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
27556 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27557 | { | |
27558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27559 | result = (bool)wxVideoMode___eq__(arg1,(wxVideoMode const *)arg2); | |
27560 | ||
27561 | wxPyEndAllowThreads(__tstate); | |
27562 | if (PyErr_Occurred()) SWIG_fail; | |
27563 | } | |
27564 | { | |
27565 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27566 | } | |
27567 | return resultobj; | |
27568 | fail: | |
27569 | return NULL; | |
27570 | } | |
27571 | ||
27572 | ||
27573 | static PyObject *_wrap_VideoMode___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27574 | PyObject *resultobj; | |
27575 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27576 | wxVideoMode *arg2 = (wxVideoMode *) 0 ; | |
27577 | bool result; | |
27578 | PyObject * obj0 = 0 ; | |
27579 | PyObject * obj1 = 0 ; | |
27580 | char *kwnames[] = { | |
27581 | (char *) "self",(char *) "other", NULL | |
27582 | }; | |
27583 | ||
27584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___ne__",kwnames,&obj0,&obj1)) goto fail; | |
27585 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27586 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27587 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
27588 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27589 | { | |
27590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27591 | result = (bool)wxVideoMode___ne__(arg1,(wxVideoMode const *)arg2); | |
27592 | ||
27593 | wxPyEndAllowThreads(__tstate); | |
27594 | if (PyErr_Occurred()) SWIG_fail; | |
27595 | } | |
27596 | { | |
27597 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27598 | } | |
27599 | return resultobj; | |
27600 | fail: | |
27601 | return NULL; | |
27602 | } | |
27603 | ||
27604 | ||
27605 | static PyObject *_wrap_VideoMode_w_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27606 | PyObject *resultobj; | |
27607 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27608 | int arg2 ; | |
27609 | PyObject * obj0 = 0 ; | |
27610 | PyObject * obj1 = 0 ; | |
27611 | char *kwnames[] = { | |
27612 | (char *) "self",(char *) "w", NULL | |
27613 | }; | |
27614 | ||
27615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_w_set",kwnames,&obj0,&obj1)) goto fail; | |
27616 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27618 | arg2 = (int) SWIG_AsInt(obj1); | |
27619 | if (PyErr_Occurred()) SWIG_fail; | |
27620 | if (arg1) (arg1)->w = arg2; | |
27621 | ||
27622 | Py_INCREF(Py_None); resultobj = Py_None; | |
27623 | return resultobj; | |
27624 | fail: | |
27625 | return NULL; | |
27626 | } | |
27627 | ||
27628 | ||
27629 | static PyObject *_wrap_VideoMode_w_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27630 | PyObject *resultobj; | |
27631 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27632 | int result; | |
27633 | PyObject * obj0 = 0 ; | |
27634 | char *kwnames[] = { | |
27635 | (char *) "self", NULL | |
27636 | }; | |
27637 | ||
27638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_w_get",kwnames,&obj0)) goto fail; | |
27639 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27640 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27641 | result = (int) ((arg1)->w); | |
27642 | ||
27643 | resultobj = SWIG_FromInt((int)result); | |
27644 | return resultobj; | |
27645 | fail: | |
27646 | return NULL; | |
27647 | } | |
27648 | ||
27649 | ||
27650 | static PyObject *_wrap_VideoMode_h_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27651 | PyObject *resultobj; | |
27652 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27653 | int arg2 ; | |
27654 | PyObject * obj0 = 0 ; | |
27655 | PyObject * obj1 = 0 ; | |
27656 | char *kwnames[] = { | |
27657 | (char *) "self",(char *) "h", NULL | |
27658 | }; | |
27659 | ||
27660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_h_set",kwnames,&obj0,&obj1)) goto fail; | |
27661 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27662 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27663 | arg2 = (int) SWIG_AsInt(obj1); | |
27664 | if (PyErr_Occurred()) SWIG_fail; | |
27665 | if (arg1) (arg1)->h = arg2; | |
27666 | ||
27667 | Py_INCREF(Py_None); resultobj = Py_None; | |
27668 | return resultobj; | |
27669 | fail: | |
27670 | return NULL; | |
27671 | } | |
27672 | ||
27673 | ||
27674 | static PyObject *_wrap_VideoMode_h_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27675 | PyObject *resultobj; | |
27676 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27677 | int result; | |
27678 | PyObject * obj0 = 0 ; | |
27679 | char *kwnames[] = { | |
27680 | (char *) "self", NULL | |
27681 | }; | |
27682 | ||
27683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_h_get",kwnames,&obj0)) goto fail; | |
27684 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27685 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27686 | result = (int) ((arg1)->h); | |
27687 | ||
27688 | resultobj = SWIG_FromInt((int)result); | |
27689 | return resultobj; | |
27690 | fail: | |
27691 | return NULL; | |
27692 | } | |
27693 | ||
27694 | ||
27695 | static PyObject *_wrap_VideoMode_bpp_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27696 | PyObject *resultobj; | |
27697 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27698 | int arg2 ; | |
27699 | PyObject * obj0 = 0 ; | |
27700 | PyObject * obj1 = 0 ; | |
27701 | char *kwnames[] = { | |
27702 | (char *) "self",(char *) "bpp", NULL | |
27703 | }; | |
27704 | ||
27705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_bpp_set",kwnames,&obj0,&obj1)) goto fail; | |
27706 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27707 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27708 | arg2 = (int) SWIG_AsInt(obj1); | |
27709 | if (PyErr_Occurred()) SWIG_fail; | |
27710 | if (arg1) (arg1)->bpp = arg2; | |
27711 | ||
27712 | Py_INCREF(Py_None); resultobj = Py_None; | |
27713 | return resultobj; | |
27714 | fail: | |
27715 | return NULL; | |
27716 | } | |
27717 | ||
27718 | ||
27719 | static PyObject *_wrap_VideoMode_bpp_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27720 | PyObject *resultobj; | |
27721 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27722 | int result; | |
27723 | PyObject * obj0 = 0 ; | |
27724 | char *kwnames[] = { | |
27725 | (char *) "self", NULL | |
27726 | }; | |
27727 | ||
27728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_bpp_get",kwnames,&obj0)) goto fail; | |
27729 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27730 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27731 | result = (int) ((arg1)->bpp); | |
27732 | ||
27733 | resultobj = SWIG_FromInt((int)result); | |
27734 | return resultobj; | |
27735 | fail: | |
27736 | return NULL; | |
27737 | } | |
27738 | ||
27739 | ||
27740 | static PyObject *_wrap_VideoMode_refresh_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27741 | PyObject *resultobj; | |
27742 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27743 | int arg2 ; | |
27744 | PyObject * obj0 = 0 ; | |
27745 | PyObject * obj1 = 0 ; | |
27746 | char *kwnames[] = { | |
27747 | (char *) "self",(char *) "refresh", NULL | |
27748 | }; | |
27749 | ||
27750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_refresh_set",kwnames,&obj0,&obj1)) goto fail; | |
27751 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27752 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27753 | arg2 = (int) SWIG_AsInt(obj1); | |
27754 | if (PyErr_Occurred()) SWIG_fail; | |
27755 | if (arg1) (arg1)->refresh = arg2; | |
27756 | ||
27757 | Py_INCREF(Py_None); resultobj = Py_None; | |
27758 | return resultobj; | |
27759 | fail: | |
27760 | return NULL; | |
27761 | } | |
27762 | ||
27763 | ||
27764 | static PyObject *_wrap_VideoMode_refresh_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27765 | PyObject *resultobj; | |
27766 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27767 | int result; | |
27768 | PyObject * obj0 = 0 ; | |
27769 | char *kwnames[] = { | |
27770 | (char *) "self", NULL | |
27771 | }; | |
27772 | ||
27773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_refresh_get",kwnames,&obj0)) goto fail; | |
27774 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27775 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27776 | result = (int) ((arg1)->refresh); | |
27777 | ||
27778 | resultobj = SWIG_FromInt((int)result); | |
27779 | return resultobj; | |
27780 | fail: | |
27781 | return NULL; | |
27782 | } | |
27783 | ||
27784 | ||
27785 | static PyObject * VideoMode_swigregister(PyObject *self, PyObject *args) { | |
27786 | PyObject *obj; | |
27787 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27788 | SWIG_TypeClientData(SWIGTYPE_p_wxVideoMode, obj); | |
27789 | Py_INCREF(obj); | |
27790 | return Py_BuildValue((char *)""); | |
27791 | } | |
27792 | static int _wrap_DefaultVideoMode_set(PyObject *_val) { | |
27793 | PyErr_SetString(PyExc_TypeError,"Variable DefaultVideoMode is read-only."); | |
27794 | return 1; | |
27795 | } | |
27796 | ||
27797 | ||
27798 | static PyObject *_wrap_DefaultVideoMode_get() { | |
27799 | PyObject *pyobj; | |
27800 | ||
27801 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultVideoMode), SWIGTYPE_p_wxVideoMode, 0); | |
27802 | return pyobj; | |
27803 | } | |
27804 | ||
27805 | ||
27806 | static PyObject *_wrap_new_Display(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27807 | PyObject *resultobj; | |
27808 | size_t arg1 = (size_t) 0 ; | |
27809 | wxDisplay *result; | |
27810 | PyObject * obj0 = 0 ; | |
27811 | char *kwnames[] = { | |
27812 | (char *) "index", NULL | |
27813 | }; | |
27814 | ||
27815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Display",kwnames,&obj0)) goto fail; | |
27816 | if (obj0) { | |
27817 | arg1 = (size_t) SWIG_AsUnsignedLong(obj0); | |
27818 | if (PyErr_Occurred()) SWIG_fail; | |
27819 | } | |
27820 | { | |
27821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27822 | result = (wxDisplay *)new wxDisplay(arg1); | |
27823 | ||
27824 | wxPyEndAllowThreads(__tstate); | |
27825 | if (PyErr_Occurred()) SWIG_fail; | |
27826 | } | |
27827 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplay, 1); | |
27828 | return resultobj; | |
27829 | fail: | |
27830 | return NULL; | |
27831 | } | |
27832 | ||
27833 | ||
27834 | static PyObject *_wrap_delete_Display(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27835 | PyObject *resultobj; | |
27836 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27837 | PyObject * obj0 = 0 ; | |
27838 | char *kwnames[] = { | |
27839 | (char *) "self", NULL | |
27840 | }; | |
27841 | ||
27842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Display",kwnames,&obj0)) goto fail; | |
27843 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27844 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27845 | { | |
27846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27847 | delete arg1; | |
27848 | ||
27849 | wxPyEndAllowThreads(__tstate); | |
27850 | if (PyErr_Occurred()) SWIG_fail; | |
27851 | } | |
27852 | Py_INCREF(Py_None); resultobj = Py_None; | |
27853 | return resultobj; | |
27854 | fail: | |
27855 | return NULL; | |
27856 | } | |
27857 | ||
27858 | ||
27859 | static PyObject *_wrap_Display_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27860 | PyObject *resultobj; | |
27861 | size_t result; | |
27862 | char *kwnames[] = { | |
27863 | NULL | |
27864 | }; | |
27865 | ||
27866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Display_GetCount",kwnames)) goto fail; | |
27867 | { | |
27868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27869 | result = (size_t)wxDisplay::GetCount(); | |
27870 | ||
27871 | wxPyEndAllowThreads(__tstate); | |
27872 | if (PyErr_Occurred()) SWIG_fail; | |
27873 | } | |
27874 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
27875 | return resultobj; | |
27876 | fail: | |
27877 | return NULL; | |
27878 | } | |
27879 | ||
27880 | ||
27881 | static PyObject *_wrap_Display_GetFromPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27882 | PyObject *resultobj; | |
27883 | wxPoint *arg1 = 0 ; | |
27884 | int result; | |
27885 | wxPoint temp1 ; | |
27886 | PyObject * obj0 = 0 ; | |
27887 | char *kwnames[] = { | |
27888 | (char *) "pt", NULL | |
27889 | }; | |
27890 | ||
27891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromPoint",kwnames,&obj0)) goto fail; | |
27892 | { | |
27893 | arg1 = &temp1; | |
27894 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
27895 | } | |
27896 | { | |
27897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27898 | result = (int)wxDisplay::GetFromPoint((wxPoint const &)*arg1); | |
27899 | ||
27900 | wxPyEndAllowThreads(__tstate); | |
27901 | if (PyErr_Occurred()) SWIG_fail; | |
27902 | } | |
27903 | resultobj = SWIG_FromInt((int)result); | |
27904 | return resultobj; | |
27905 | fail: | |
27906 | return NULL; | |
27907 | } | |
27908 | ||
27909 | ||
27910 | static PyObject *_wrap_Display_GetFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27911 | PyObject *resultobj; | |
27912 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27913 | int result; | |
27914 | PyObject * obj0 = 0 ; | |
27915 | char *kwnames[] = { | |
27916 | (char *) "window", NULL | |
27917 | }; | |
27918 | ||
27919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromWindow",kwnames,&obj0)) goto fail; | |
27920 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27921 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27922 | { | |
27923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27924 | result = (int)Display_GetFromWindow(arg1); | |
27925 | ||
27926 | wxPyEndAllowThreads(__tstate); | |
27927 | if (PyErr_Occurred()) SWIG_fail; | |
27928 | } | |
27929 | resultobj = SWIG_FromInt((int)result); | |
27930 | return resultobj; | |
27931 | fail: | |
27932 | return NULL; | |
27933 | } | |
27934 | ||
27935 | ||
27936 | static PyObject *_wrap_Display_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27937 | PyObject *resultobj; | |
27938 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27939 | bool result; | |
27940 | PyObject * obj0 = 0 ; | |
27941 | char *kwnames[] = { | |
27942 | (char *) "self", NULL | |
27943 | }; | |
27944 | ||
27945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsOk",kwnames,&obj0)) goto fail; | |
27946 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27947 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27948 | { | |
27949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27950 | result = (bool)((wxDisplay const *)arg1)->IsOk(); | |
27951 | ||
27952 | wxPyEndAllowThreads(__tstate); | |
27953 | if (PyErr_Occurred()) SWIG_fail; | |
27954 | } | |
27955 | { | |
27956 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27957 | } | |
27958 | return resultobj; | |
27959 | fail: | |
27960 | return NULL; | |
27961 | } | |
27962 | ||
27963 | ||
27964 | static PyObject *_wrap_Display_GetGeometry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27965 | PyObject *resultobj; | |
27966 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27967 | wxRect result; | |
27968 | PyObject * obj0 = 0 ; | |
27969 | char *kwnames[] = { | |
27970 | (char *) "self", NULL | |
27971 | }; | |
27972 | ||
27973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetGeometry",kwnames,&obj0)) goto fail; | |
27974 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
27975 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27976 | { | |
27977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27978 | result = ((wxDisplay const *)arg1)->GetGeometry(); | |
27979 | ||
27980 | wxPyEndAllowThreads(__tstate); | |
27981 | if (PyErr_Occurred()) SWIG_fail; | |
27982 | } | |
27983 | { | |
27984 | wxRect * resultptr; | |
27985 | resultptr = new wxRect((wxRect &) result); | |
27986 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
27987 | } | |
27988 | return resultobj; | |
27989 | fail: | |
27990 | return NULL; | |
27991 | } | |
27992 | ||
27993 | ||
27994 | static PyObject *_wrap_Display_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27995 | PyObject *resultobj; | |
27996 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
27997 | wxString result; | |
27998 | PyObject * obj0 = 0 ; | |
27999 | char *kwnames[] = { | |
28000 | (char *) "self", NULL | |
28001 | }; | |
28002 | ||
28003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetName",kwnames,&obj0)) goto fail; | |
28004 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28005 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28006 | { | |
28007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28008 | result = ((wxDisplay const *)arg1)->GetName(); | |
28009 | ||
28010 | wxPyEndAllowThreads(__tstate); | |
28011 | if (PyErr_Occurred()) SWIG_fail; | |
28012 | } | |
28013 | { | |
28014 | #if wxUSE_UNICODE | |
28015 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28016 | #else | |
28017 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28018 | #endif | |
28019 | } | |
28020 | return resultobj; | |
28021 | fail: | |
28022 | return NULL; | |
28023 | } | |
28024 | ||
28025 | ||
28026 | static PyObject *_wrap_Display_IsPrimary(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28027 | PyObject *resultobj; | |
28028 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28029 | bool result; | |
28030 | PyObject * obj0 = 0 ; | |
28031 | char *kwnames[] = { | |
28032 | (char *) "self", NULL | |
28033 | }; | |
28034 | ||
28035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsPrimary",kwnames,&obj0)) goto fail; | |
28036 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28037 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28038 | { | |
28039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28040 | result = (bool)((wxDisplay const *)arg1)->IsPrimary(); | |
28041 | ||
28042 | wxPyEndAllowThreads(__tstate); | |
28043 | if (PyErr_Occurred()) SWIG_fail; | |
28044 | } | |
28045 | { | |
28046 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28047 | } | |
28048 | return resultobj; | |
28049 | fail: | |
28050 | return NULL; | |
28051 | } | |
28052 | ||
28053 | ||
28054 | static PyObject *_wrap_Display_GetModes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28055 | PyObject *resultobj; | |
28056 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28057 | wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ; | |
28058 | wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ; | |
28059 | PyObject *result; | |
28060 | PyObject * obj0 = 0 ; | |
28061 | PyObject * obj1 = 0 ; | |
28062 | char *kwnames[] = { | |
28063 | (char *) "self",(char *) "mode", NULL | |
28064 | }; | |
28065 | ||
28066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_GetModes",kwnames,&obj0,&obj1)) goto fail; | |
28067 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28068 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28069 | if (obj1) { | |
28070 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
28071 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28072 | SWIG_fail; | |
28073 | if (arg2 == NULL) { | |
28074 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
28075 | SWIG_fail; | |
28076 | } | |
28077 | } | |
28078 | { | |
28079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28080 | result = (PyObject *)wxDisplay_GetModes(arg1,(wxVideoMode const &)*arg2); | |
28081 | ||
28082 | wxPyEndAllowThreads(__tstate); | |
28083 | if (PyErr_Occurred()) SWIG_fail; | |
28084 | } | |
28085 | resultobj = result; | |
28086 | return resultobj; | |
28087 | fail: | |
28088 | return NULL; | |
28089 | } | |
28090 | ||
28091 | ||
28092 | static PyObject *_wrap_Display_GetCurrentMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28093 | PyObject *resultobj; | |
28094 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28095 | wxVideoMode result; | |
28096 | PyObject * obj0 = 0 ; | |
28097 | char *kwnames[] = { | |
28098 | (char *) "self", NULL | |
28099 | }; | |
28100 | ||
28101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetCurrentMode",kwnames,&obj0)) goto fail; | |
28102 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28103 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28104 | { | |
28105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28106 | result = ((wxDisplay const *)arg1)->GetCurrentMode(); | |
28107 | ||
28108 | wxPyEndAllowThreads(__tstate); | |
28109 | if (PyErr_Occurred()) SWIG_fail; | |
28110 | } | |
28111 | { | |
28112 | wxVideoMode * resultptr; | |
28113 | resultptr = new wxVideoMode((wxVideoMode &) result); | |
28114 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVideoMode, 1); | |
28115 | } | |
28116 | return resultobj; | |
28117 | fail: | |
28118 | return NULL; | |
28119 | } | |
28120 | ||
28121 | ||
28122 | static PyObject *_wrap_Display_ChangeMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28123 | PyObject *resultobj; | |
28124 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28125 | wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ; | |
28126 | wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ; | |
28127 | bool result; | |
28128 | PyObject * obj0 = 0 ; | |
28129 | PyObject * obj1 = 0 ; | |
28130 | char *kwnames[] = { | |
28131 | (char *) "self",(char *) "mode", NULL | |
28132 | }; | |
28133 | ||
28134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_ChangeMode",kwnames,&obj0,&obj1)) goto fail; | |
28135 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28136 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28137 | if (obj1) { | |
28138 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
28139 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28140 | SWIG_fail; | |
28141 | if (arg2 == NULL) { | |
28142 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
28143 | SWIG_fail; | |
28144 | } | |
28145 | } | |
28146 | { | |
28147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28148 | result = (bool)(arg1)->ChangeMode((wxVideoMode const &)*arg2); | |
28149 | ||
28150 | wxPyEndAllowThreads(__tstate); | |
28151 | if (PyErr_Occurred()) SWIG_fail; | |
28152 | } | |
28153 | { | |
28154 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28155 | } | |
28156 | return resultobj; | |
28157 | fail: | |
28158 | return NULL; | |
28159 | } | |
28160 | ||
28161 | ||
28162 | static PyObject *_wrap_Display_ResetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28163 | PyObject *resultobj; | |
28164 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28165 | PyObject * obj0 = 0 ; | |
28166 | char *kwnames[] = { | |
28167 | (char *) "self", NULL | |
28168 | }; | |
28169 | ||
28170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_ResetMode",kwnames,&obj0)) goto fail; | |
28171 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28172 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28173 | { | |
28174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28175 | (arg1)->ResetMode(); | |
28176 | ||
28177 | wxPyEndAllowThreads(__tstate); | |
28178 | if (PyErr_Occurred()) SWIG_fail; | |
28179 | } | |
28180 | Py_INCREF(Py_None); resultobj = Py_None; | |
28181 | return resultobj; | |
28182 | fail: | |
28183 | return NULL; | |
28184 | } | |
28185 | ||
28186 | ||
28187 | static PyObject * Display_swigregister(PyObject *self, PyObject *args) { | |
28188 | PyObject *obj; | |
28189 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28190 | SWIG_TypeClientData(SWIGTYPE_p_wxDisplay, obj); | |
28191 | Py_INCREF(obj); | |
28192 | return Py_BuildValue((char *)""); | |
28193 | } | |
28194 | static PyMethodDef SwigMethods[] = { | |
28195 | { (char *)"SystemSettings_GetColour", (PyCFunction) _wrap_SystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
28196 | { (char *)"SystemSettings_GetFont", (PyCFunction) _wrap_SystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
28197 | { (char *)"SystemSettings_GetMetric", (PyCFunction) _wrap_SystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS }, | |
28198 | { (char *)"SystemSettings_HasFeature", (PyCFunction) _wrap_SystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS }, | |
28199 | { (char *)"SystemSettings_GetScreenType", (PyCFunction) _wrap_SystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS }, | |
28200 | { (char *)"SystemSettings_SetScreenType", (PyCFunction) _wrap_SystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS }, | |
28201 | { (char *)"SystemSettings_swigregister", SystemSettings_swigregister, METH_VARARGS }, | |
28202 | { (char *)"new_SystemOptions", (PyCFunction) _wrap_new_SystemOptions, METH_VARARGS | METH_KEYWORDS }, | |
28203 | { (char *)"SystemOptions_SetOption", (PyCFunction) _wrap_SystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS }, | |
28204 | { (char *)"SystemOptions_SetOptionInt", (PyCFunction) _wrap_SystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
28205 | { (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS }, | |
28206 | { (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
28207 | { (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS }, | |
28208 | { (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS }, | |
28209 | { (char *)"NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS }, | |
28210 | { (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS }, | |
28211 | { (char *)"GetCurrentId", (PyCFunction) _wrap_GetCurrentId, METH_VARARGS | METH_KEYWORDS }, | |
28212 | { (char *)"Bell", (PyCFunction) _wrap_Bell, METH_VARARGS | METH_KEYWORDS }, | |
28213 | { (char *)"EndBusyCursor", (PyCFunction) _wrap_EndBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
28214 | { (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS }, | |
28215 | { (char *)"GetMousePosition", (PyCFunction) _wrap_GetMousePosition, METH_VARARGS | METH_KEYWORDS }, | |
28216 | { (char *)"IsBusy", (PyCFunction) _wrap_IsBusy, METH_VARARGS | METH_KEYWORDS }, | |
28217 | { (char *)"Now", (PyCFunction) _wrap_Now, METH_VARARGS | METH_KEYWORDS }, | |
28218 | { (char *)"Shell", (PyCFunction) _wrap_Shell, METH_VARARGS | METH_KEYWORDS }, | |
28219 | { (char *)"StartTimer", (PyCFunction) _wrap_StartTimer, METH_VARARGS | METH_KEYWORDS }, | |
28220 | { (char *)"GetOsVersion", (PyCFunction) _wrap_GetOsVersion, METH_VARARGS | METH_KEYWORDS }, | |
28221 | { (char *)"GetOsDescription", (PyCFunction) _wrap_GetOsDescription, METH_VARARGS | METH_KEYWORDS }, | |
28222 | { (char *)"GetFreeMemory", (PyCFunction) _wrap_GetFreeMemory, METH_VARARGS | METH_KEYWORDS }, | |
28223 | { (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS }, | |
28224 | { (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS }, | |
28225 | { (char *)"Usleep", (PyCFunction) _wrap_Usleep, METH_VARARGS | METH_KEYWORDS }, | |
28226 | { (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS }, | |
28227 | { (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS }, | |
28228 | { (char *)"GetEmailAddress", (PyCFunction) _wrap_GetEmailAddress, METH_VARARGS | METH_KEYWORDS }, | |
28229 | { (char *)"GetHostName", (PyCFunction) _wrap_GetHostName, METH_VARARGS | METH_KEYWORDS }, | |
28230 | { (char *)"GetFullHostName", (PyCFunction) _wrap_GetFullHostName, METH_VARARGS | METH_KEYWORDS }, | |
28231 | { (char *)"GetUserId", (PyCFunction) _wrap_GetUserId, METH_VARARGS | METH_KEYWORDS }, | |
28232 | { (char *)"GetUserName", (PyCFunction) _wrap_GetUserName, METH_VARARGS | METH_KEYWORDS }, | |
28233 | { (char *)"GetHomeDir", (PyCFunction) _wrap_GetHomeDir, METH_VARARGS | METH_KEYWORDS }, | |
28234 | { (char *)"GetUserHome", (PyCFunction) _wrap_GetUserHome, METH_VARARGS | METH_KEYWORDS }, | |
28235 | { (char *)"GetProcessId", (PyCFunction) _wrap_GetProcessId, METH_VARARGS | METH_KEYWORDS }, | |
28236 | { (char *)"Trap", (PyCFunction) _wrap_Trap, METH_VARARGS | METH_KEYWORDS }, | |
28237 | { (char *)"FileSelector", (PyCFunction) _wrap_FileSelector, METH_VARARGS | METH_KEYWORDS }, | |
28238 | { (char *)"LoadFileSelector", (PyCFunction) _wrap_LoadFileSelector, METH_VARARGS | METH_KEYWORDS }, | |
28239 | { (char *)"SaveFileSelector", (PyCFunction) _wrap_SaveFileSelector, METH_VARARGS | METH_KEYWORDS }, | |
28240 | { (char *)"DirSelector", (PyCFunction) _wrap_DirSelector, METH_VARARGS | METH_KEYWORDS }, | |
28241 | { (char *)"GetTextFromUser", (PyCFunction) _wrap_GetTextFromUser, METH_VARARGS | METH_KEYWORDS }, | |
28242 | { (char *)"GetPasswordFromUser", (PyCFunction) _wrap_GetPasswordFromUser, METH_VARARGS | METH_KEYWORDS }, | |
28243 | { (char *)"GetSingleChoice", (PyCFunction) _wrap_GetSingleChoice, METH_VARARGS | METH_KEYWORDS }, | |
28244 | { (char *)"GetSingleChoiceIndex", (PyCFunction) _wrap_GetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS }, | |
28245 | { (char *)"MessageBox", (PyCFunction) _wrap_MessageBox, METH_VARARGS | METH_KEYWORDS }, | |
28246 | { (char *)"GetNumberFromUser", (PyCFunction) _wrap_GetNumberFromUser, METH_VARARGS | METH_KEYWORDS }, | |
28247 | { (char *)"ColourDisplay", (PyCFunction) _wrap_ColourDisplay, METH_VARARGS | METH_KEYWORDS }, | |
28248 | { (char *)"DisplayDepth", (PyCFunction) _wrap_DisplayDepth, METH_VARARGS | METH_KEYWORDS }, | |
28249 | { (char *)"GetDisplayDepth", (PyCFunction) _wrap_GetDisplayDepth, METH_VARARGS | METH_KEYWORDS }, | |
28250 | { (char *)"DisplaySize", (PyCFunction) _wrap_DisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
28251 | { (char *)"GetDisplaySize", (PyCFunction) _wrap_GetDisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
28252 | { (char *)"DisplaySizeMM", (PyCFunction) _wrap_DisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, | |
28253 | { (char *)"GetDisplaySizeMM", (PyCFunction) _wrap_GetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, | |
28254 | { (char *)"ClientDisplayRect", (PyCFunction) _wrap_ClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, | |
28255 | { (char *)"GetClientDisplayRect", (PyCFunction) _wrap_GetClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, | |
28256 | { (char *)"SetCursor", (PyCFunction) _wrap_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
28257 | { (char *)"BeginBusyCursor", (PyCFunction) _wrap_BeginBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
28258 | { (char *)"GetActiveWindow", (PyCFunction) _wrap_GetActiveWindow, METH_VARARGS | METH_KEYWORDS }, | |
28259 | { (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
28260 | { (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
28261 | { (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS }, | |
28262 | { (char *)"GetKeyState", (PyCFunction) _wrap_GetKeyState, METH_VARARGS | METH_KEYWORDS }, | |
28263 | { (char *)"WakeUpMainThread", (PyCFunction) _wrap_WakeUpMainThread, METH_VARARGS | METH_KEYWORDS }, | |
28264 | { (char *)"MutexGuiEnter", (PyCFunction) _wrap_MutexGuiEnter, METH_VARARGS | METH_KEYWORDS }, | |
28265 | { (char *)"MutexGuiLeave", (PyCFunction) _wrap_MutexGuiLeave, METH_VARARGS | METH_KEYWORDS }, | |
28266 | { (char *)"new_MutexGuiLocker", (PyCFunction) _wrap_new_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, | |
28267 | { (char *)"delete_MutexGuiLocker", (PyCFunction) _wrap_delete_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, | |
28268 | { (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS }, | |
28269 | { (char *)"Thread_IsMain", (PyCFunction) _wrap_Thread_IsMain, METH_VARARGS | METH_KEYWORDS }, | |
28270 | { (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS }, | |
28271 | { (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS }, | |
28272 | { (char *)"ToolTip_GetTip", (PyCFunction) _wrap_ToolTip_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
28273 | { (char *)"ToolTip_GetWindow", (PyCFunction) _wrap_ToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
28274 | { (char *)"ToolTip_Enable", (PyCFunction) _wrap_ToolTip_Enable, METH_VARARGS | METH_KEYWORDS }, | |
28275 | { (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS }, | |
28276 | { (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS }, | |
28277 | { (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS }, | |
28278 | { (char *)"delete_Caret", (PyCFunction) _wrap_delete_Caret, METH_VARARGS | METH_KEYWORDS }, | |
28279 | { (char *)"Caret_IsOk", (PyCFunction) _wrap_Caret_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
28280 | { (char *)"Caret_IsVisible", (PyCFunction) _wrap_Caret_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
28281 | { (char *)"Caret_GetPosition", (PyCFunction) _wrap_Caret_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
28282 | { (char *)"Caret_GetPositionTuple", (PyCFunction) _wrap_Caret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
28283 | { (char *)"Caret_GetSize", (PyCFunction) _wrap_Caret_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
28284 | { (char *)"Caret_GetSizeTuple", (PyCFunction) _wrap_Caret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
28285 | { (char *)"Caret_GetWindow", (PyCFunction) _wrap_Caret_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
28286 | { (char *)"Caret_MoveXY", (PyCFunction) _wrap_Caret_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
28287 | { (char *)"Caret_Move", (PyCFunction) _wrap_Caret_Move, METH_VARARGS | METH_KEYWORDS }, | |
28288 | { (char *)"Caret_SetSizeWH", (PyCFunction) _wrap_Caret_SetSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
28289 | { (char *)"Caret_SetSize", (PyCFunction) _wrap_Caret_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
28290 | { (char *)"Caret_Show", (PyCFunction) _wrap_Caret_Show, METH_VARARGS | METH_KEYWORDS }, | |
28291 | { (char *)"Caret_Hide", (PyCFunction) _wrap_Caret_Hide, METH_VARARGS | METH_KEYWORDS }, | |
28292 | { (char *)"Caret_swigregister", Caret_swigregister, METH_VARARGS }, | |
28293 | { (char *)"Caret_GetBlinkTime", (PyCFunction) _wrap_Caret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS }, | |
28294 | { (char *)"Caret_SetBlinkTime", (PyCFunction) _wrap_Caret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS }, | |
28295 | { (char *)"new_BusyCursor", (PyCFunction) _wrap_new_BusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
28296 | { (char *)"delete_BusyCursor", (PyCFunction) _wrap_delete_BusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
28297 | { (char *)"BusyCursor_swigregister", BusyCursor_swigregister, METH_VARARGS }, | |
28298 | { (char *)"new_WindowDisabler", (PyCFunction) _wrap_new_WindowDisabler, METH_VARARGS | METH_KEYWORDS }, | |
28299 | { (char *)"delete_WindowDisabler", (PyCFunction) _wrap_delete_WindowDisabler, METH_VARARGS | METH_KEYWORDS }, | |
28300 | { (char *)"WindowDisabler_swigregister", WindowDisabler_swigregister, METH_VARARGS }, | |
28301 | { (char *)"new_BusyInfo", (PyCFunction) _wrap_new_BusyInfo, METH_VARARGS | METH_KEYWORDS }, | |
28302 | { (char *)"delete_BusyInfo", (PyCFunction) _wrap_delete_BusyInfo, METH_VARARGS | METH_KEYWORDS }, | |
28303 | { (char *)"BusyInfo_swigregister", BusyInfo_swigregister, METH_VARARGS }, | |
28304 | { (char *)"new_StopWatch", (PyCFunction) _wrap_new_StopWatch, METH_VARARGS | METH_KEYWORDS }, | |
28305 | { (char *)"StopWatch_Start", (PyCFunction) _wrap_StopWatch_Start, METH_VARARGS | METH_KEYWORDS }, | |
28306 | { (char *)"StopWatch_Pause", (PyCFunction) _wrap_StopWatch_Pause, METH_VARARGS | METH_KEYWORDS }, | |
28307 | { (char *)"StopWatch_Resume", (PyCFunction) _wrap_StopWatch_Resume, METH_VARARGS | METH_KEYWORDS }, | |
28308 | { (char *)"StopWatch_Time", (PyCFunction) _wrap_StopWatch_Time, METH_VARARGS | METH_KEYWORDS }, | |
28309 | { (char *)"StopWatch_swigregister", StopWatch_swigregister, METH_VARARGS }, | |
28310 | { (char *)"new_FileHistory", (PyCFunction) _wrap_new_FileHistory, METH_VARARGS | METH_KEYWORDS }, | |
28311 | { (char *)"delete_FileHistory", (PyCFunction) _wrap_delete_FileHistory, METH_VARARGS | METH_KEYWORDS }, | |
28312 | { (char *)"FileHistory_AddFileToHistory", (PyCFunction) _wrap_FileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS }, | |
28313 | { (char *)"FileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_FileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS }, | |
28314 | { (char *)"FileHistory_GetMaxFiles", (PyCFunction) _wrap_FileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS }, | |
28315 | { (char *)"FileHistory_UseMenu", (PyCFunction) _wrap_FileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS }, | |
28316 | { (char *)"FileHistory_RemoveMenu", (PyCFunction) _wrap_FileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS }, | |
28317 | { (char *)"FileHistory_Load", (PyCFunction) _wrap_FileHistory_Load, METH_VARARGS | METH_KEYWORDS }, | |
28318 | { (char *)"FileHistory_Save", (PyCFunction) _wrap_FileHistory_Save, METH_VARARGS | METH_KEYWORDS }, | |
28319 | { (char *)"FileHistory_AddFilesToMenu", (PyCFunction) _wrap_FileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS }, | |
28320 | { (char *)"FileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_FileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS }, | |
28321 | { (char *)"FileHistory_GetHistoryFile", (PyCFunction) _wrap_FileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS }, | |
28322 | { (char *)"FileHistory_GetCount", (PyCFunction) _wrap_FileHistory_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
28323 | { (char *)"FileHistory_swigregister", FileHistory_swigregister, METH_VARARGS }, | |
28324 | { (char *)"new_SingleInstanceChecker", (PyCFunction) _wrap_new_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
28325 | { (char *)"new_PreSingleInstanceChecker", (PyCFunction) _wrap_new_PreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
28326 | { (char *)"delete_SingleInstanceChecker", (PyCFunction) _wrap_delete_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
28327 | { (char *)"SingleInstanceChecker_Create", (PyCFunction) _wrap_SingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS }, | |
28328 | { (char *)"SingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_SingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS }, | |
28329 | { (char *)"SingleInstanceChecker_swigregister", SingleInstanceChecker_swigregister, METH_VARARGS }, | |
28330 | { (char *)"DrawWindowOnDC", (PyCFunction) _wrap_DrawWindowOnDC, METH_VARARGS | METH_KEYWORDS }, | |
28331 | { (char *)"delete_TipProvider", (PyCFunction) _wrap_delete_TipProvider, METH_VARARGS | METH_KEYWORDS }, | |
28332 | { (char *)"TipProvider_GetTip", (PyCFunction) _wrap_TipProvider_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
28333 | { (char *)"TipProvider_GetCurrentTip", (PyCFunction) _wrap_TipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS }, | |
28334 | { (char *)"TipProvider_PreprocessTip", (PyCFunction) _wrap_TipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS }, | |
28335 | { (char *)"TipProvider_swigregister", TipProvider_swigregister, METH_VARARGS }, | |
28336 | { (char *)"new_PyTipProvider", (PyCFunction) _wrap_new_PyTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
28337 | { (char *)"PyTipProvider__setCallbackInfo", (PyCFunction) _wrap_PyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28338 | { (char *)"PyTipProvider_swigregister", PyTipProvider_swigregister, METH_VARARGS }, | |
28339 | { (char *)"ShowTip", (PyCFunction) _wrap_ShowTip, METH_VARARGS | METH_KEYWORDS }, | |
28340 | { (char *)"CreateFileTipProvider", (PyCFunction) _wrap_CreateFileTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
28341 | { (char *)"new_Timer", (PyCFunction) _wrap_new_Timer, METH_VARARGS | METH_KEYWORDS }, | |
28342 | { (char *)"delete_Timer", (PyCFunction) _wrap_delete_Timer, METH_VARARGS | METH_KEYWORDS }, | |
28343 | { (char *)"Timer__setCallbackInfo", (PyCFunction) _wrap_Timer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28344 | { (char *)"Timer_SetOwner", (PyCFunction) _wrap_Timer_SetOwner, METH_VARARGS | METH_KEYWORDS }, | |
1a6bba1e | 28345 | { (char *)"Timer_GetOwner", (PyCFunction) _wrap_Timer_GetOwner, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
28346 | { (char *)"Timer_Start", (PyCFunction) _wrap_Timer_Start, METH_VARARGS | METH_KEYWORDS }, |
28347 | { (char *)"Timer_Stop", (PyCFunction) _wrap_Timer_Stop, METH_VARARGS | METH_KEYWORDS }, | |
28348 | { (char *)"Timer_IsRunning", (PyCFunction) _wrap_Timer_IsRunning, METH_VARARGS | METH_KEYWORDS }, | |
28349 | { (char *)"Timer_GetInterval", (PyCFunction) _wrap_Timer_GetInterval, METH_VARARGS | METH_KEYWORDS }, | |
28350 | { (char *)"Timer_IsOneShot", (PyCFunction) _wrap_Timer_IsOneShot, METH_VARARGS | METH_KEYWORDS }, | |
28351 | { (char *)"Timer_GetId", (PyCFunction) _wrap_Timer_GetId, METH_VARARGS | METH_KEYWORDS }, | |
28352 | { (char *)"Timer_swigregister", Timer_swigregister, METH_VARARGS }, | |
28353 | { (char *)"new_TimerEvent", (PyCFunction) _wrap_new_TimerEvent, METH_VARARGS | METH_KEYWORDS }, | |
28354 | { (char *)"TimerEvent_GetInterval", (PyCFunction) _wrap_TimerEvent_GetInterval, METH_VARARGS | METH_KEYWORDS }, | |
28355 | { (char *)"TimerEvent_swigregister", TimerEvent_swigregister, METH_VARARGS }, | |
28356 | { (char *)"new_TimerRunner", _wrap_new_TimerRunner, METH_VARARGS }, | |
28357 | { (char *)"delete_TimerRunner", (PyCFunction) _wrap_delete_TimerRunner, METH_VARARGS | METH_KEYWORDS }, | |
28358 | { (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS }, | |
28359 | { (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS }, | |
28360 | { (char *)"new_Log", (PyCFunction) _wrap_new_Log, METH_VARARGS | METH_KEYWORDS }, | |
28361 | { (char *)"Log_IsEnabled", (PyCFunction) _wrap_Log_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
28362 | { (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS }, | |
28363 | { (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS }, | |
28364 | { (char *)"Log_Flush", (PyCFunction) _wrap_Log_Flush, METH_VARARGS | METH_KEYWORDS }, | |
28365 | { (char *)"Log_FlushActive", (PyCFunction) _wrap_Log_FlushActive, METH_VARARGS | METH_KEYWORDS }, | |
28366 | { (char *)"Log_GetActiveTarget", (PyCFunction) _wrap_Log_GetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
28367 | { (char *)"Log_SetActiveTarget", (PyCFunction) _wrap_Log_SetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
28368 | { (char *)"Log_Suspend", (PyCFunction) _wrap_Log_Suspend, METH_VARARGS | METH_KEYWORDS }, | |
28369 | { (char *)"Log_Resume", (PyCFunction) _wrap_Log_Resume, METH_VARARGS | METH_KEYWORDS }, | |
28370 | { (char *)"Log_SetVerbose", (PyCFunction) _wrap_Log_SetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
28371 | { (char *)"Log_SetLogLevel", (PyCFunction) _wrap_Log_SetLogLevel, METH_VARARGS | METH_KEYWORDS }, | |
28372 | { (char *)"Log_DontCreateOnDemand", (PyCFunction) _wrap_Log_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS }, | |
28373 | { (char *)"Log_SetTraceMask", (PyCFunction) _wrap_Log_SetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
28374 | { (char *)"Log_AddTraceMask", (PyCFunction) _wrap_Log_AddTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
28375 | { (char *)"Log_RemoveTraceMask", (PyCFunction) _wrap_Log_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
28376 | { (char *)"Log_ClearTraceMasks", (PyCFunction) _wrap_Log_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS }, | |
28377 | { (char *)"Log_GetTraceMasks", (PyCFunction) _wrap_Log_GetTraceMasks, METH_VARARGS | METH_KEYWORDS }, | |
28378 | { (char *)"Log_SetTimestamp", (PyCFunction) _wrap_Log_SetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
28379 | { (char *)"Log_GetVerbose", (PyCFunction) _wrap_Log_GetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
28380 | { (char *)"Log_GetTraceMask", (PyCFunction) _wrap_Log_GetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
28381 | { (char *)"Log_IsAllowedTraceMask", (PyCFunction) _wrap_Log_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
28382 | { (char *)"Log_GetLogLevel", (PyCFunction) _wrap_Log_GetLogLevel, METH_VARARGS | METH_KEYWORDS }, | |
28383 | { (char *)"Log_GetTimestamp", (PyCFunction) _wrap_Log_GetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
28384 | { (char *)"Log_TimeStamp", (PyCFunction) _wrap_Log_TimeStamp, METH_VARARGS | METH_KEYWORDS }, | |
28385 | { (char *)"Log_Destroy", (PyCFunction) _wrap_Log_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
28386 | { (char *)"Log_swigregister", Log_swigregister, METH_VARARGS }, | |
28387 | { (char *)"new_LogStderr", (PyCFunction) _wrap_new_LogStderr, METH_VARARGS | METH_KEYWORDS }, | |
28388 | { (char *)"LogStderr_swigregister", LogStderr_swigregister, METH_VARARGS }, | |
28389 | { (char *)"new_LogTextCtrl", (PyCFunction) _wrap_new_LogTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
28390 | { (char *)"LogTextCtrl_swigregister", LogTextCtrl_swigregister, METH_VARARGS }, | |
28391 | { (char *)"new_LogGui", (PyCFunction) _wrap_new_LogGui, METH_VARARGS | METH_KEYWORDS }, | |
28392 | { (char *)"LogGui_swigregister", LogGui_swigregister, METH_VARARGS }, | |
28393 | { (char *)"new_LogWindow", (PyCFunction) _wrap_new_LogWindow, METH_VARARGS | METH_KEYWORDS }, | |
28394 | { (char *)"LogWindow_Show", (PyCFunction) _wrap_LogWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
28395 | { (char *)"LogWindow_GetFrame", (PyCFunction) _wrap_LogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS }, | |
28396 | { (char *)"LogWindow_GetOldLog", (PyCFunction) _wrap_LogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS }, | |
28397 | { (char *)"LogWindow_IsPassingMessages", (PyCFunction) _wrap_LogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
28398 | { (char *)"LogWindow_PassMessages", (PyCFunction) _wrap_LogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS }, | |
28399 | { (char *)"LogWindow_swigregister", LogWindow_swigregister, METH_VARARGS }, | |
28400 | { (char *)"new_LogChain", (PyCFunction) _wrap_new_LogChain, METH_VARARGS | METH_KEYWORDS }, | |
28401 | { (char *)"LogChain_SetLog", (PyCFunction) _wrap_LogChain_SetLog, METH_VARARGS | METH_KEYWORDS }, | |
28402 | { (char *)"LogChain_PassMessages", (PyCFunction) _wrap_LogChain_PassMessages, METH_VARARGS | METH_KEYWORDS }, | |
28403 | { (char *)"LogChain_IsPassingMessages", (PyCFunction) _wrap_LogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
28404 | { (char *)"LogChain_GetOldLog", (PyCFunction) _wrap_LogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS }, | |
28405 | { (char *)"LogChain_swigregister", LogChain_swigregister, METH_VARARGS }, | |
28406 | { (char *)"SysErrorCode", (PyCFunction) _wrap_SysErrorCode, METH_VARARGS | METH_KEYWORDS }, | |
28407 | { (char *)"SysErrorMsg", (PyCFunction) _wrap_SysErrorMsg, METH_VARARGS | METH_KEYWORDS }, | |
28408 | { (char *)"LogFatalError", (PyCFunction) _wrap_LogFatalError, METH_VARARGS | METH_KEYWORDS }, | |
28409 | { (char *)"LogError", (PyCFunction) _wrap_LogError, METH_VARARGS | METH_KEYWORDS }, | |
28410 | { (char *)"LogWarning", (PyCFunction) _wrap_LogWarning, METH_VARARGS | METH_KEYWORDS }, | |
28411 | { (char *)"LogMessage", (PyCFunction) _wrap_LogMessage, METH_VARARGS | METH_KEYWORDS }, | |
28412 | { (char *)"LogInfo", (PyCFunction) _wrap_LogInfo, METH_VARARGS | METH_KEYWORDS }, | |
28413 | { (char *)"LogDebug", (PyCFunction) _wrap_LogDebug, METH_VARARGS | METH_KEYWORDS }, | |
28414 | { (char *)"LogVerbose", (PyCFunction) _wrap_LogVerbose, METH_VARARGS | METH_KEYWORDS }, | |
28415 | { (char *)"LogStatus", (PyCFunction) _wrap_LogStatus, METH_VARARGS | METH_KEYWORDS }, | |
28416 | { (char *)"LogStatusFrame", (PyCFunction) _wrap_LogStatusFrame, METH_VARARGS | METH_KEYWORDS }, | |
28417 | { (char *)"LogSysError", (PyCFunction) _wrap_LogSysError, METH_VARARGS | METH_KEYWORDS }, | |
28418 | { (char *)"LogTrace", _wrap_LogTrace, METH_VARARGS }, | |
28419 | { (char *)"LogGeneric", (PyCFunction) _wrap_LogGeneric, METH_VARARGS | METH_KEYWORDS }, | |
28420 | { (char *)"SafeShowMessage", (PyCFunction) _wrap_SafeShowMessage, METH_VARARGS | METH_KEYWORDS }, | |
28421 | { (char *)"new_LogNull", (PyCFunction) _wrap_new_LogNull, METH_VARARGS | METH_KEYWORDS }, | |
28422 | { (char *)"delete_LogNull", (PyCFunction) _wrap_delete_LogNull, METH_VARARGS | METH_KEYWORDS }, | |
28423 | { (char *)"LogNull_swigregister", LogNull_swigregister, METH_VARARGS }, | |
28424 | { (char *)"new_PyLog", (PyCFunction) _wrap_new_PyLog, METH_VARARGS | METH_KEYWORDS }, | |
28425 | { (char *)"PyLog__setCallbackInfo", (PyCFunction) _wrap_PyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28426 | { (char *)"PyLog_swigregister", PyLog_swigregister, METH_VARARGS }, | |
28427 | { (char *)"Process_Kill", (PyCFunction) _wrap_Process_Kill, METH_VARARGS | METH_KEYWORDS }, | |
28428 | { (char *)"Process_Exists", (PyCFunction) _wrap_Process_Exists, METH_VARARGS | METH_KEYWORDS }, | |
28429 | { (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS }, | |
28430 | { (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS }, | |
28431 | { (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28432 | { (char *)"Process_base_OnTerminate", (PyCFunction) _wrap_Process_base_OnTerminate, METH_VARARGS | METH_KEYWORDS }, | |
28433 | { (char *)"Process_Redirect", (PyCFunction) _wrap_Process_Redirect, METH_VARARGS | METH_KEYWORDS }, | |
28434 | { (char *)"Process_IsRedirected", (PyCFunction) _wrap_Process_IsRedirected, METH_VARARGS | METH_KEYWORDS }, | |
28435 | { (char *)"Process_Detach", (PyCFunction) _wrap_Process_Detach, METH_VARARGS | METH_KEYWORDS }, | |
28436 | { (char *)"Process_GetInputStream", (PyCFunction) _wrap_Process_GetInputStream, METH_VARARGS | METH_KEYWORDS }, | |
28437 | { (char *)"Process_GetErrorStream", (PyCFunction) _wrap_Process_GetErrorStream, METH_VARARGS | METH_KEYWORDS }, | |
28438 | { (char *)"Process_GetOutputStream", (PyCFunction) _wrap_Process_GetOutputStream, METH_VARARGS | METH_KEYWORDS }, | |
28439 | { (char *)"Process_CloseOutput", (PyCFunction) _wrap_Process_CloseOutput, METH_VARARGS | METH_KEYWORDS }, | |
28440 | { (char *)"Process_IsInputOpened", (PyCFunction) _wrap_Process_IsInputOpened, METH_VARARGS | METH_KEYWORDS }, | |
28441 | { (char *)"Process_IsInputAvailable", (PyCFunction) _wrap_Process_IsInputAvailable, METH_VARARGS | METH_KEYWORDS }, | |
28442 | { (char *)"Process_IsErrorAvailable", (PyCFunction) _wrap_Process_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS }, | |
28443 | { (char *)"Process_swigregister", Process_swigregister, METH_VARARGS }, | |
28444 | { (char *)"new_ProcessEvent", (PyCFunction) _wrap_new_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, | |
28445 | { (char *)"ProcessEvent_GetPid", (PyCFunction) _wrap_ProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS }, | |
28446 | { (char *)"ProcessEvent_GetExitCode", (PyCFunction) _wrap_ProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS }, | |
28447 | { (char *)"ProcessEvent_m_pid_set", (PyCFunction) _wrap_ProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS }, | |
28448 | { (char *)"ProcessEvent_m_pid_get", (PyCFunction) _wrap_ProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS }, | |
28449 | { (char *)"ProcessEvent_m_exitcode_set", (PyCFunction) _wrap_ProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS }, | |
28450 | { (char *)"ProcessEvent_m_exitcode_get", (PyCFunction) _wrap_ProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS }, | |
28451 | { (char *)"ProcessEvent_swigregister", ProcessEvent_swigregister, METH_VARARGS }, | |
28452 | { (char *)"Execute", (PyCFunction) _wrap_Execute, METH_VARARGS | METH_KEYWORDS }, | |
28453 | { (char *)"new_Joystick", (PyCFunction) _wrap_new_Joystick, METH_VARARGS | METH_KEYWORDS }, | |
28454 | { (char *)"delete_Joystick", (PyCFunction) _wrap_delete_Joystick, METH_VARARGS | METH_KEYWORDS }, | |
28455 | { (char *)"Joystick_GetPosition", (PyCFunction) _wrap_Joystick_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
28456 | { (char *)"Joystick_GetZPosition", (PyCFunction) _wrap_Joystick_GetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
28457 | { (char *)"Joystick_GetButtonState", (PyCFunction) _wrap_Joystick_GetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
28458 | { (char *)"Joystick_GetPOVPosition", (PyCFunction) _wrap_Joystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS }, | |
28459 | { (char *)"Joystick_GetPOVCTSPosition", (PyCFunction) _wrap_Joystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS }, | |
28460 | { (char *)"Joystick_GetRudderPosition", (PyCFunction) _wrap_Joystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS }, | |
28461 | { (char *)"Joystick_GetUPosition", (PyCFunction) _wrap_Joystick_GetUPosition, METH_VARARGS | METH_KEYWORDS }, | |
28462 | { (char *)"Joystick_GetVPosition", (PyCFunction) _wrap_Joystick_GetVPosition, METH_VARARGS | METH_KEYWORDS }, | |
28463 | { (char *)"Joystick_GetMovementThreshold", (PyCFunction) _wrap_Joystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
28464 | { (char *)"Joystick_SetMovementThreshold", (PyCFunction) _wrap_Joystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
28465 | { (char *)"Joystick_IsOk", (PyCFunction) _wrap_Joystick_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
28466 | { (char *)"Joystick_GetNumberJoysticks", (PyCFunction) _wrap_Joystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS }, | |
28467 | { (char *)"Joystick_GetManufacturerId", (PyCFunction) _wrap_Joystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS }, | |
28468 | { (char *)"Joystick_GetProductId", (PyCFunction) _wrap_Joystick_GetProductId, METH_VARARGS | METH_KEYWORDS }, | |
28469 | { (char *)"Joystick_GetProductName", (PyCFunction) _wrap_Joystick_GetProductName, METH_VARARGS | METH_KEYWORDS }, | |
28470 | { (char *)"Joystick_GetXMin", (PyCFunction) _wrap_Joystick_GetXMin, METH_VARARGS | METH_KEYWORDS }, | |
28471 | { (char *)"Joystick_GetYMin", (PyCFunction) _wrap_Joystick_GetYMin, METH_VARARGS | METH_KEYWORDS }, | |
28472 | { (char *)"Joystick_GetZMin", (PyCFunction) _wrap_Joystick_GetZMin, METH_VARARGS | METH_KEYWORDS }, | |
28473 | { (char *)"Joystick_GetXMax", (PyCFunction) _wrap_Joystick_GetXMax, METH_VARARGS | METH_KEYWORDS }, | |
28474 | { (char *)"Joystick_GetYMax", (PyCFunction) _wrap_Joystick_GetYMax, METH_VARARGS | METH_KEYWORDS }, | |
28475 | { (char *)"Joystick_GetZMax", (PyCFunction) _wrap_Joystick_GetZMax, METH_VARARGS | METH_KEYWORDS }, | |
28476 | { (char *)"Joystick_GetNumberButtons", (PyCFunction) _wrap_Joystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS }, | |
28477 | { (char *)"Joystick_GetNumberAxes", (PyCFunction) _wrap_Joystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS }, | |
28478 | { (char *)"Joystick_GetMaxButtons", (PyCFunction) _wrap_Joystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS }, | |
28479 | { (char *)"Joystick_GetMaxAxes", (PyCFunction) _wrap_Joystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS }, | |
28480 | { (char *)"Joystick_GetPollingMin", (PyCFunction) _wrap_Joystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS }, | |
28481 | { (char *)"Joystick_GetPollingMax", (PyCFunction) _wrap_Joystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS }, | |
28482 | { (char *)"Joystick_GetRudderMin", (PyCFunction) _wrap_Joystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS }, | |
28483 | { (char *)"Joystick_GetRudderMax", (PyCFunction) _wrap_Joystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS }, | |
28484 | { (char *)"Joystick_GetUMin", (PyCFunction) _wrap_Joystick_GetUMin, METH_VARARGS | METH_KEYWORDS }, | |
28485 | { (char *)"Joystick_GetUMax", (PyCFunction) _wrap_Joystick_GetUMax, METH_VARARGS | METH_KEYWORDS }, | |
28486 | { (char *)"Joystick_GetVMin", (PyCFunction) _wrap_Joystick_GetVMin, METH_VARARGS | METH_KEYWORDS }, | |
28487 | { (char *)"Joystick_GetVMax", (PyCFunction) _wrap_Joystick_GetVMax, METH_VARARGS | METH_KEYWORDS }, | |
28488 | { (char *)"Joystick_HasRudder", (PyCFunction) _wrap_Joystick_HasRudder, METH_VARARGS | METH_KEYWORDS }, | |
28489 | { (char *)"Joystick_HasZ", (PyCFunction) _wrap_Joystick_HasZ, METH_VARARGS | METH_KEYWORDS }, | |
28490 | { (char *)"Joystick_HasU", (PyCFunction) _wrap_Joystick_HasU, METH_VARARGS | METH_KEYWORDS }, | |
28491 | { (char *)"Joystick_HasV", (PyCFunction) _wrap_Joystick_HasV, METH_VARARGS | METH_KEYWORDS }, | |
28492 | { (char *)"Joystick_HasPOV", (PyCFunction) _wrap_Joystick_HasPOV, METH_VARARGS | METH_KEYWORDS }, | |
28493 | { (char *)"Joystick_HasPOV4Dir", (PyCFunction) _wrap_Joystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS }, | |
28494 | { (char *)"Joystick_HasPOVCTS", (PyCFunction) _wrap_Joystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS }, | |
28495 | { (char *)"Joystick_SetCapture", (PyCFunction) _wrap_Joystick_SetCapture, METH_VARARGS | METH_KEYWORDS }, | |
28496 | { (char *)"Joystick_ReleaseCapture", (PyCFunction) _wrap_Joystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS }, | |
28497 | { (char *)"Joystick_swigregister", Joystick_swigregister, METH_VARARGS }, | |
28498 | { (char *)"JoystickEvent_m_pos_set", (PyCFunction) _wrap_JoystickEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS }, | |
28499 | { (char *)"JoystickEvent_m_pos_get", (PyCFunction) _wrap_JoystickEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS }, | |
28500 | { (char *)"JoystickEvent_m_zPosition_set", (PyCFunction) _wrap_JoystickEvent_m_zPosition_set, METH_VARARGS | METH_KEYWORDS }, | |
28501 | { (char *)"JoystickEvent_m_zPosition_get", (PyCFunction) _wrap_JoystickEvent_m_zPosition_get, METH_VARARGS | METH_KEYWORDS }, | |
28502 | { (char *)"JoystickEvent_m_buttonChange_set", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_set, METH_VARARGS | METH_KEYWORDS }, | |
28503 | { (char *)"JoystickEvent_m_buttonChange_get", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_get, METH_VARARGS | METH_KEYWORDS }, | |
28504 | { (char *)"JoystickEvent_m_buttonState_set", (PyCFunction) _wrap_JoystickEvent_m_buttonState_set, METH_VARARGS | METH_KEYWORDS }, | |
28505 | { (char *)"JoystickEvent_m_buttonState_get", (PyCFunction) _wrap_JoystickEvent_m_buttonState_get, METH_VARARGS | METH_KEYWORDS }, | |
28506 | { (char *)"JoystickEvent_m_joyStick_set", (PyCFunction) _wrap_JoystickEvent_m_joyStick_set, METH_VARARGS | METH_KEYWORDS }, | |
28507 | { (char *)"JoystickEvent_m_joyStick_get", (PyCFunction) _wrap_JoystickEvent_m_joyStick_get, METH_VARARGS | METH_KEYWORDS }, | |
28508 | { (char *)"new_JoystickEvent", (PyCFunction) _wrap_new_JoystickEvent, METH_VARARGS | METH_KEYWORDS }, | |
28509 | { (char *)"JoystickEvent_GetPosition", (PyCFunction) _wrap_JoystickEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
28510 | { (char *)"JoystickEvent_GetZPosition", (PyCFunction) _wrap_JoystickEvent_GetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
28511 | { (char *)"JoystickEvent_GetButtonState", (PyCFunction) _wrap_JoystickEvent_GetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
28512 | { (char *)"JoystickEvent_GetButtonChange", (PyCFunction) _wrap_JoystickEvent_GetButtonChange, METH_VARARGS | METH_KEYWORDS }, | |
28513 | { (char *)"JoystickEvent_GetJoystick", (PyCFunction) _wrap_JoystickEvent_GetJoystick, METH_VARARGS | METH_KEYWORDS }, | |
28514 | { (char *)"JoystickEvent_SetJoystick", (PyCFunction) _wrap_JoystickEvent_SetJoystick, METH_VARARGS | METH_KEYWORDS }, | |
28515 | { (char *)"JoystickEvent_SetButtonState", (PyCFunction) _wrap_JoystickEvent_SetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
28516 | { (char *)"JoystickEvent_SetButtonChange", (PyCFunction) _wrap_JoystickEvent_SetButtonChange, METH_VARARGS | METH_KEYWORDS }, | |
28517 | { (char *)"JoystickEvent_SetPosition", (PyCFunction) _wrap_JoystickEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
28518 | { (char *)"JoystickEvent_SetZPosition", (PyCFunction) _wrap_JoystickEvent_SetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
28519 | { (char *)"JoystickEvent_IsButton", (PyCFunction) _wrap_JoystickEvent_IsButton, METH_VARARGS | METH_KEYWORDS }, | |
28520 | { (char *)"JoystickEvent_IsMove", (PyCFunction) _wrap_JoystickEvent_IsMove, METH_VARARGS | METH_KEYWORDS }, | |
28521 | { (char *)"JoystickEvent_IsZMove", (PyCFunction) _wrap_JoystickEvent_IsZMove, METH_VARARGS | METH_KEYWORDS }, | |
28522 | { (char *)"JoystickEvent_ButtonDown", (PyCFunction) _wrap_JoystickEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS }, | |
28523 | { (char *)"JoystickEvent_ButtonUp", (PyCFunction) _wrap_JoystickEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS }, | |
28524 | { (char *)"JoystickEvent_ButtonIsDown", (PyCFunction) _wrap_JoystickEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS }, | |
28525 | { (char *)"JoystickEvent_swigregister", JoystickEvent_swigregister, METH_VARARGS }, | |
0346c964 RD |
28526 | { (char *)"new_Sound", (PyCFunction) _wrap_new_Sound, METH_VARARGS | METH_KEYWORDS }, |
28527 | { (char *)"new_SoundFromData", (PyCFunction) _wrap_new_SoundFromData, METH_VARARGS | METH_KEYWORDS }, | |
d55e5bfc | 28528 | { (char *)"delete_Sound", (PyCFunction) _wrap_delete_Sound, METH_VARARGS | METH_KEYWORDS }, |
0346c964 RD |
28529 | { (char *)"Sound_Create", (PyCFunction) _wrap_Sound_Create, METH_VARARGS | METH_KEYWORDS }, |
28530 | { (char *)"Sound_CreateFromData", (PyCFunction) _wrap_Sound_CreateFromData, METH_VARARGS | METH_KEYWORDS }, | |
d55e5bfc | 28531 | { (char *)"Sound_IsOk", (PyCFunction) _wrap_Sound_IsOk, METH_VARARGS | METH_KEYWORDS }, |
0346c964 RD |
28532 | { (char *)"Sound_Play", (PyCFunction) _wrap_Sound_Play, METH_VARARGS | METH_KEYWORDS }, |
28533 | { (char *)"Sound_PlaySound", (PyCFunction) _wrap_Sound_PlaySound, METH_VARARGS | METH_KEYWORDS }, | |
d55e5bfc RD |
28534 | { (char *)"Sound_Stop", (PyCFunction) _wrap_Sound_Stop, METH_VARARGS | METH_KEYWORDS }, |
28535 | { (char *)"Sound_swigregister", Sound_swigregister, METH_VARARGS }, | |
28536 | { (char *)"new_FileTypeInfo", (PyCFunction) _wrap_new_FileTypeInfo, METH_VARARGS | METH_KEYWORDS }, | |
28537 | { (char *)"new_FileTypeInfoSequence", (PyCFunction) _wrap_new_FileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS }, | |
28538 | { (char *)"new_NullFileTypeInfo", (PyCFunction) _wrap_new_NullFileTypeInfo, METH_VARARGS | METH_KEYWORDS }, | |
28539 | { (char *)"FileTypeInfo_IsValid", (PyCFunction) _wrap_FileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS }, | |
28540 | { (char *)"FileTypeInfo_SetIcon", (PyCFunction) _wrap_FileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
28541 | { (char *)"FileTypeInfo_SetShortDesc", (PyCFunction) _wrap_FileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
28542 | { (char *)"FileTypeInfo_GetMimeType", (PyCFunction) _wrap_FileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
28543 | { (char *)"FileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_FileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
28544 | { (char *)"FileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_FileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
28545 | { (char *)"FileTypeInfo_GetShortDesc", (PyCFunction) _wrap_FileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
28546 | { (char *)"FileTypeInfo_GetDescription", (PyCFunction) _wrap_FileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
28547 | { (char *)"FileTypeInfo_GetExtensions", (PyCFunction) _wrap_FileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
28548 | { (char *)"FileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_FileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS }, | |
28549 | { (char *)"FileTypeInfo_GetIconFile", (PyCFunction) _wrap_FileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS }, | |
28550 | { (char *)"FileTypeInfo_GetIconIndex", (PyCFunction) _wrap_FileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS }, | |
28551 | { (char *)"FileTypeInfo_swigregister", FileTypeInfo_swigregister, METH_VARARGS }, | |
28552 | { (char *)"new_FileType", (PyCFunction) _wrap_new_FileType, METH_VARARGS | METH_KEYWORDS }, | |
28553 | { (char *)"delete_FileType", (PyCFunction) _wrap_delete_FileType, METH_VARARGS | METH_KEYWORDS }, | |
28554 | { (char *)"FileType_GetMimeType", (PyCFunction) _wrap_FileType_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
28555 | { (char *)"FileType_GetMimeTypes", (PyCFunction) _wrap_FileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
28556 | { (char *)"FileType_GetExtensions", (PyCFunction) _wrap_FileType_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
28557 | { (char *)"FileType_GetIcon", (PyCFunction) _wrap_FileType_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
28558 | { (char *)"FileType_GetIconInfo", (PyCFunction) _wrap_FileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS }, | |
28559 | { (char *)"FileType_GetDescription", (PyCFunction) _wrap_FileType_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
28560 | { (char *)"FileType_GetOpenCommand", (PyCFunction) _wrap_FileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
28561 | { (char *)"FileType_GetPrintCommand", (PyCFunction) _wrap_FileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
28562 | { (char *)"FileType_GetAllCommands", (PyCFunction) _wrap_FileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS }, | |
28563 | { (char *)"FileType_SetCommand", (PyCFunction) _wrap_FileType_SetCommand, METH_VARARGS | METH_KEYWORDS }, | |
28564 | { (char *)"FileType_SetDefaultIcon", (PyCFunction) _wrap_FileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS }, | |
28565 | { (char *)"FileType_Unassociate", (PyCFunction) _wrap_FileType_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
28566 | { (char *)"FileType_ExpandCommand", (PyCFunction) _wrap_FileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS }, | |
28567 | { (char *)"FileType_swigregister", FileType_swigregister, METH_VARARGS }, | |
28568 | { (char *)"MimeTypesManager_IsOfType", (PyCFunction) _wrap_MimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS }, | |
28569 | { (char *)"new_MimeTypesManager", (PyCFunction) _wrap_new_MimeTypesManager, METH_VARARGS | METH_KEYWORDS }, | |
28570 | { (char *)"MimeTypesManager_Initialize", (PyCFunction) _wrap_MimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS }, | |
28571 | { (char *)"MimeTypesManager_ClearData", (PyCFunction) _wrap_MimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS }, | |
28572 | { (char *)"MimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS }, | |
28573 | { (char *)"MimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS }, | |
28574 | { (char *)"MimeTypesManager_ReadMailcap", (PyCFunction) _wrap_MimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS }, | |
28575 | { (char *)"MimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_MimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
28576 | { (char *)"MimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_MimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS }, | |
28577 | { (char *)"MimeTypesManager_AddFallback", (PyCFunction) _wrap_MimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS }, | |
28578 | { (char *)"MimeTypesManager_Associate", (PyCFunction) _wrap_MimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS }, | |
28579 | { (char *)"MimeTypesManager_Unassociate", (PyCFunction) _wrap_MimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
28580 | { (char *)"delete_MimeTypesManager", (PyCFunction) _wrap_delete_MimeTypesManager, METH_VARARGS | METH_KEYWORDS }, | |
28581 | { (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS }, | |
28582 | { (char *)"new_ArtProvider", (PyCFunction) _wrap_new_ArtProvider, METH_VARARGS | METH_KEYWORDS }, | |
28583 | { (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28584 | { (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS }, | |
28585 | { (char *)"ArtProvider_PopProvider", (PyCFunction) _wrap_ArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS }, | |
28586 | { (char *)"ArtProvider_RemoveProvider", (PyCFunction) _wrap_ArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS }, | |
28587 | { (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
28588 | { (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
28589 | { (char *)"ArtProvider_Destroy", (PyCFunction) _wrap_ArtProvider_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
28590 | { (char *)"ArtProvider_swigregister", ArtProvider_swigregister, METH_VARARGS }, | |
28591 | { (char *)"delete_ConfigBase", (PyCFunction) _wrap_delete_ConfigBase, METH_VARARGS | METH_KEYWORDS }, | |
28592 | { (char *)"ConfigBase_Set", (PyCFunction) _wrap_ConfigBase_Set, METH_VARARGS | METH_KEYWORDS }, | |
28593 | { (char *)"ConfigBase_Get", (PyCFunction) _wrap_ConfigBase_Get, METH_VARARGS | METH_KEYWORDS }, | |
28594 | { (char *)"ConfigBase_Create", (PyCFunction) _wrap_ConfigBase_Create, METH_VARARGS | METH_KEYWORDS }, | |
28595 | { (char *)"ConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_ConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS }, | |
28596 | { (char *)"ConfigBase_SetPath", (PyCFunction) _wrap_ConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
28597 | { (char *)"ConfigBase_GetPath", (PyCFunction) _wrap_ConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
28598 | { (char *)"ConfigBase_GetFirstGroup", (PyCFunction) _wrap_ConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS }, | |
28599 | { (char *)"ConfigBase_GetNextGroup", (PyCFunction) _wrap_ConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS }, | |
28600 | { (char *)"ConfigBase_GetFirstEntry", (PyCFunction) _wrap_ConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS }, | |
28601 | { (char *)"ConfigBase_GetNextEntry", (PyCFunction) _wrap_ConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS }, | |
28602 | { (char *)"ConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_ConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS }, | |
28603 | { (char *)"ConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_ConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS }, | |
28604 | { (char *)"ConfigBase_HasGroup", (PyCFunction) _wrap_ConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS }, | |
28605 | { (char *)"ConfigBase_HasEntry", (PyCFunction) _wrap_ConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS }, | |
28606 | { (char *)"ConfigBase_Exists", (PyCFunction) _wrap_ConfigBase_Exists, METH_VARARGS | METH_KEYWORDS }, | |
28607 | { (char *)"ConfigBase_GetEntryType", (PyCFunction) _wrap_ConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS }, | |
28608 | { (char *)"ConfigBase_Read", (PyCFunction) _wrap_ConfigBase_Read, METH_VARARGS | METH_KEYWORDS }, | |
28609 | { (char *)"ConfigBase_ReadInt", (PyCFunction) _wrap_ConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS }, | |
28610 | { (char *)"ConfigBase_ReadFloat", (PyCFunction) _wrap_ConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS }, | |
28611 | { (char *)"ConfigBase_ReadBool", (PyCFunction) _wrap_ConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS }, | |
28612 | { (char *)"ConfigBase_Write", (PyCFunction) _wrap_ConfigBase_Write, METH_VARARGS | METH_KEYWORDS }, | |
28613 | { (char *)"ConfigBase_WriteInt", (PyCFunction) _wrap_ConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS }, | |
28614 | { (char *)"ConfigBase_WriteFloat", (PyCFunction) _wrap_ConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS }, | |
28615 | { (char *)"ConfigBase_WriteBool", (PyCFunction) _wrap_ConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS }, | |
28616 | { (char *)"ConfigBase_Flush", (PyCFunction) _wrap_ConfigBase_Flush, METH_VARARGS | METH_KEYWORDS }, | |
28617 | { (char *)"ConfigBase_RenameEntry", (PyCFunction) _wrap_ConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS }, | |
28618 | { (char *)"ConfigBase_RenameGroup", (PyCFunction) _wrap_ConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS }, | |
28619 | { (char *)"ConfigBase_DeleteEntry", (PyCFunction) _wrap_ConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS }, | |
28620 | { (char *)"ConfigBase_DeleteGroup", (PyCFunction) _wrap_ConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS }, | |
28621 | { (char *)"ConfigBase_DeleteAll", (PyCFunction) _wrap_ConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS }, | |
28622 | { (char *)"ConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_ConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
28623 | { (char *)"ConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_ConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
28624 | { (char *)"ConfigBase_SetRecordDefaults", (PyCFunction) _wrap_ConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS }, | |
28625 | { (char *)"ConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_ConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS }, | |
28626 | { (char *)"ConfigBase_ExpandEnvVars", (PyCFunction) _wrap_ConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
28627 | { (char *)"ConfigBase_GetAppName", (PyCFunction) _wrap_ConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS }, | |
28628 | { (char *)"ConfigBase_GetVendorName", (PyCFunction) _wrap_ConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
28629 | { (char *)"ConfigBase_SetAppName", (PyCFunction) _wrap_ConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS }, | |
28630 | { (char *)"ConfigBase_SetVendorName", (PyCFunction) _wrap_ConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
28631 | { (char *)"ConfigBase_SetStyle", (PyCFunction) _wrap_ConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
28632 | { (char *)"ConfigBase_GetStyle", (PyCFunction) _wrap_ConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
28633 | { (char *)"ConfigBase_swigregister", ConfigBase_swigregister, METH_VARARGS }, | |
28634 | { (char *)"new_Config", (PyCFunction) _wrap_new_Config, METH_VARARGS | METH_KEYWORDS }, | |
28635 | { (char *)"delete_Config", (PyCFunction) _wrap_delete_Config, METH_VARARGS | METH_KEYWORDS }, | |
28636 | { (char *)"Config_swigregister", Config_swigregister, METH_VARARGS }, | |
28637 | { (char *)"new_FileConfig", (PyCFunction) _wrap_new_FileConfig, METH_VARARGS | METH_KEYWORDS }, | |
28638 | { (char *)"delete_FileConfig", (PyCFunction) _wrap_delete_FileConfig, METH_VARARGS | METH_KEYWORDS }, | |
28639 | { (char *)"FileConfig_swigregister", FileConfig_swigregister, METH_VARARGS }, | |
28640 | { (char *)"new_ConfigPathChanger", (PyCFunction) _wrap_new_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS }, | |
28641 | { (char *)"delete_ConfigPathChanger", (PyCFunction) _wrap_delete_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS }, | |
28642 | { (char *)"ConfigPathChanger_Name", (PyCFunction) _wrap_ConfigPathChanger_Name, METH_VARARGS | METH_KEYWORDS }, | |
28643 | { (char *)"ConfigPathChanger_swigregister", ConfigPathChanger_swigregister, METH_VARARGS }, | |
28644 | { (char *)"ExpandEnvVars", (PyCFunction) _wrap_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
28645 | { (char *)"DateTime_SetCountry", (PyCFunction) _wrap_DateTime_SetCountry, METH_VARARGS | METH_KEYWORDS }, | |
28646 | { (char *)"DateTime_GetCountry", (PyCFunction) _wrap_DateTime_GetCountry, METH_VARARGS | METH_KEYWORDS }, | |
28647 | { (char *)"DateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_DateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS }, | |
28648 | { (char *)"DateTime_GetCurrentYear", (PyCFunction) _wrap_DateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS }, | |
28649 | { (char *)"DateTime_ConvertYearToBC", (PyCFunction) _wrap_DateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS }, | |
28650 | { (char *)"DateTime_GetCurrentMonth", (PyCFunction) _wrap_DateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS }, | |
28651 | { (char *)"DateTime_IsLeapYear", (PyCFunction) _wrap_DateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS }, | |
28652 | { (char *)"DateTime_GetCentury", (PyCFunction) _wrap_DateTime_GetCentury, METH_VARARGS | METH_KEYWORDS }, | |
28653 | { (char *)"DateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_DateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS }, | |
28654 | { (char *)"DateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_DateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS }, | |
28655 | { (char *)"DateTime_GetMonthName", (PyCFunction) _wrap_DateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS }, | |
28656 | { (char *)"DateTime_GetWeekDayName", (PyCFunction) _wrap_DateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS }, | |
28657 | { (char *)"DateTime_GetAmPmStrings", (PyCFunction) _wrap_DateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS }, | |
28658 | { (char *)"DateTime_IsDSTApplicable", (PyCFunction) _wrap_DateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS }, | |
28659 | { (char *)"DateTime_GetBeginDST", (PyCFunction) _wrap_DateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS }, | |
28660 | { (char *)"DateTime_GetEndDST", (PyCFunction) _wrap_DateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS }, | |
28661 | { (char *)"DateTime_Now", (PyCFunction) _wrap_DateTime_Now, METH_VARARGS | METH_KEYWORDS }, | |
28662 | { (char *)"DateTime_UNow", (PyCFunction) _wrap_DateTime_UNow, METH_VARARGS | METH_KEYWORDS }, | |
28663 | { (char *)"DateTime_Today", (PyCFunction) _wrap_DateTime_Today, METH_VARARGS | METH_KEYWORDS }, | |
28664 | { (char *)"new_DateTime", (PyCFunction) _wrap_new_DateTime, METH_VARARGS | METH_KEYWORDS }, | |
28665 | { (char *)"new_DateTimeFromTimeT", (PyCFunction) _wrap_new_DateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS }, | |
28666 | { (char *)"new_DateTimeFromJDN", (PyCFunction) _wrap_new_DateTimeFromJDN, METH_VARARGS | METH_KEYWORDS }, | |
28667 | { (char *)"new_DateTimeFromHMS", (PyCFunction) _wrap_new_DateTimeFromHMS, METH_VARARGS | METH_KEYWORDS }, | |
28668 | { (char *)"new_DateTimeFromDMY", (PyCFunction) _wrap_new_DateTimeFromDMY, METH_VARARGS | METH_KEYWORDS }, | |
28669 | { (char *)"delete_DateTime", (PyCFunction) _wrap_delete_DateTime, METH_VARARGS | METH_KEYWORDS }, | |
28670 | { (char *)"DateTime_SetToCurrent", (PyCFunction) _wrap_DateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS }, | |
28671 | { (char *)"DateTime_SetTimeT", (PyCFunction) _wrap_DateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS }, | |
28672 | { (char *)"DateTime_SetJDN", (PyCFunction) _wrap_DateTime_SetJDN, METH_VARARGS | METH_KEYWORDS }, | |
28673 | { (char *)"DateTime_SetHMS", (PyCFunction) _wrap_DateTime_SetHMS, METH_VARARGS | METH_KEYWORDS }, | |
28674 | { (char *)"DateTime_Set", (PyCFunction) _wrap_DateTime_Set, METH_VARARGS | METH_KEYWORDS }, | |
28675 | { (char *)"DateTime_ResetTime", (PyCFunction) _wrap_DateTime_ResetTime, METH_VARARGS | METH_KEYWORDS }, | |
28676 | { (char *)"DateTime_SetYear", (PyCFunction) _wrap_DateTime_SetYear, METH_VARARGS | METH_KEYWORDS }, | |
28677 | { (char *)"DateTime_SetMonth", (PyCFunction) _wrap_DateTime_SetMonth, METH_VARARGS | METH_KEYWORDS }, | |
28678 | { (char *)"DateTime_SetDay", (PyCFunction) _wrap_DateTime_SetDay, METH_VARARGS | METH_KEYWORDS }, | |
28679 | { (char *)"DateTime_SetHour", (PyCFunction) _wrap_DateTime_SetHour, METH_VARARGS | METH_KEYWORDS }, | |
28680 | { (char *)"DateTime_SetMinute", (PyCFunction) _wrap_DateTime_SetMinute, METH_VARARGS | METH_KEYWORDS }, | |
28681 | { (char *)"DateTime_SetSecond", (PyCFunction) _wrap_DateTime_SetSecond, METH_VARARGS | METH_KEYWORDS }, | |
28682 | { (char *)"DateTime_SetMillisecond", (PyCFunction) _wrap_DateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS }, | |
28683 | { (char *)"DateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS }, | |
28684 | { (char *)"DateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS }, | |
28685 | { (char *)"DateTime_SetToNextWeekDay", (PyCFunction) _wrap_DateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28686 | { (char *)"DateTime_GetNextWeekDay", (PyCFunction) _wrap_DateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28687 | { (char *)"DateTime_SetToPrevWeekDay", (PyCFunction) _wrap_DateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28688 | { (char *)"DateTime_GetPrevWeekDay", (PyCFunction) _wrap_DateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28689 | { (char *)"DateTime_SetToWeekDay", (PyCFunction) _wrap_DateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28690 | { (char *)"DateTime_SetToLastWeekDay", (PyCFunction) _wrap_DateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28691 | { (char *)"DateTime_GetLastWeekDay", (PyCFunction) _wrap_DateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28692 | { (char *)"DateTime_SetToTheWeek", (PyCFunction) _wrap_DateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS }, | |
28693 | { (char *)"DateTime_GetWeek", (PyCFunction) _wrap_DateTime_GetWeek, METH_VARARGS | METH_KEYWORDS }, | |
28694 | { (char *)"DateTime_SetToLastMonthDay", (PyCFunction) _wrap_DateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS }, | |
28695 | { (char *)"DateTime_GetLastMonthDay", (PyCFunction) _wrap_DateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS }, | |
28696 | { (char *)"DateTime_SetToYearDay", (PyCFunction) _wrap_DateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS }, | |
28697 | { (char *)"DateTime_GetYearDay", (PyCFunction) _wrap_DateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS }, | |
28698 | { (char *)"DateTime_GetJulianDayNumber", (PyCFunction) _wrap_DateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS }, | |
28699 | { (char *)"DateTime_GetJDN", (PyCFunction) _wrap_DateTime_GetJDN, METH_VARARGS | METH_KEYWORDS }, | |
28700 | { (char *)"DateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_DateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS }, | |
28701 | { (char *)"DateTime_GetMJD", (PyCFunction) _wrap_DateTime_GetMJD, METH_VARARGS | METH_KEYWORDS }, | |
28702 | { (char *)"DateTime_GetRataDie", (PyCFunction) _wrap_DateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS }, | |
28703 | { (char *)"DateTime_ToTimezone", (PyCFunction) _wrap_DateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS }, | |
28704 | { (char *)"DateTime_MakeTimezone", (PyCFunction) _wrap_DateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS }, | |
28705 | { (char *)"DateTime_ToGMT", (PyCFunction) _wrap_DateTime_ToGMT, METH_VARARGS | METH_KEYWORDS }, | |
28706 | { (char *)"DateTime_MakeGMT", (PyCFunction) _wrap_DateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS }, | |
28707 | { (char *)"DateTime_IsDST", (PyCFunction) _wrap_DateTime_IsDST, METH_VARARGS | METH_KEYWORDS }, | |
28708 | { (char *)"DateTime_IsValid", (PyCFunction) _wrap_DateTime_IsValid, METH_VARARGS | METH_KEYWORDS }, | |
28709 | { (char *)"DateTime_GetTicks", (PyCFunction) _wrap_DateTime_GetTicks, METH_VARARGS | METH_KEYWORDS }, | |
28710 | { (char *)"DateTime_GetYear", (PyCFunction) _wrap_DateTime_GetYear, METH_VARARGS | METH_KEYWORDS }, | |
28711 | { (char *)"DateTime_GetMonth", (PyCFunction) _wrap_DateTime_GetMonth, METH_VARARGS | METH_KEYWORDS }, | |
28712 | { (char *)"DateTime_GetDay", (PyCFunction) _wrap_DateTime_GetDay, METH_VARARGS | METH_KEYWORDS }, | |
28713 | { (char *)"DateTime_GetWeekDay", (PyCFunction) _wrap_DateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
28714 | { (char *)"DateTime_GetHour", (PyCFunction) _wrap_DateTime_GetHour, METH_VARARGS | METH_KEYWORDS }, | |
28715 | { (char *)"DateTime_GetMinute", (PyCFunction) _wrap_DateTime_GetMinute, METH_VARARGS | METH_KEYWORDS }, | |
28716 | { (char *)"DateTime_GetSecond", (PyCFunction) _wrap_DateTime_GetSecond, METH_VARARGS | METH_KEYWORDS }, | |
28717 | { (char *)"DateTime_GetMillisecond", (PyCFunction) _wrap_DateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS }, | |
28718 | { (char *)"DateTime_GetDayOfYear", (PyCFunction) _wrap_DateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS }, | |
28719 | { (char *)"DateTime_GetWeekOfYear", (PyCFunction) _wrap_DateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS }, | |
28720 | { (char *)"DateTime_GetWeekOfMonth", (PyCFunction) _wrap_DateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS }, | |
28721 | { (char *)"DateTime_IsWorkDay", (PyCFunction) _wrap_DateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS }, | |
28722 | { (char *)"DateTime_IsEqualTo", (PyCFunction) _wrap_DateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS }, | |
28723 | { (char *)"DateTime_IsEarlierThan", (PyCFunction) _wrap_DateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS }, | |
28724 | { (char *)"DateTime_IsLaterThan", (PyCFunction) _wrap_DateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS }, | |
28725 | { (char *)"DateTime_IsStrictlyBetween", (PyCFunction) _wrap_DateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS }, | |
28726 | { (char *)"DateTime_IsBetween", (PyCFunction) _wrap_DateTime_IsBetween, METH_VARARGS | METH_KEYWORDS }, | |
28727 | { (char *)"DateTime_IsSameDate", (PyCFunction) _wrap_DateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS }, | |
28728 | { (char *)"DateTime_IsSameTime", (PyCFunction) _wrap_DateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS }, | |
28729 | { (char *)"DateTime_IsEqualUpTo", (PyCFunction) _wrap_DateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS }, | |
28730 | { (char *)"DateTime_AddTS", (PyCFunction) _wrap_DateTime_AddTS, METH_VARARGS | METH_KEYWORDS }, | |
28731 | { (char *)"DateTime_AddDS", (PyCFunction) _wrap_DateTime_AddDS, METH_VARARGS | METH_KEYWORDS }, | |
28732 | { (char *)"DateTime_SubtractTS", (PyCFunction) _wrap_DateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS }, | |
28733 | { (char *)"DateTime_SubtractDS", (PyCFunction) _wrap_DateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS }, | |
28734 | { (char *)"DateTime_Subtract", (PyCFunction) _wrap_DateTime_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
28735 | { (char *)"DateTime___iadd__", _wrap_DateTime___iadd__, METH_VARARGS }, | |
28736 | { (char *)"DateTime___isub__", _wrap_DateTime___isub__, METH_VARARGS }, | |
28737 | { (char *)"DateTime___add__", _wrap_DateTime___add__, METH_VARARGS }, | |
28738 | { (char *)"DateTime___sub__", _wrap_DateTime___sub__, METH_VARARGS }, | |
28739 | { (char *)"DateTime___lt__", _wrap_DateTime___lt__, METH_VARARGS }, | |
28740 | { (char *)"DateTime___le__", _wrap_DateTime___le__, METH_VARARGS }, | |
28741 | { (char *)"DateTime___gt__", _wrap_DateTime___gt__, METH_VARARGS }, | |
28742 | { (char *)"DateTime___ge__", _wrap_DateTime___ge__, METH_VARARGS }, | |
28743 | { (char *)"DateTime___eq__", _wrap_DateTime___eq__, METH_VARARGS }, | |
28744 | { (char *)"DateTime___ne__", _wrap_DateTime___ne__, METH_VARARGS }, | |
28745 | { (char *)"DateTime_ParseRfc822Date", (PyCFunction) _wrap_DateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS }, | |
28746 | { (char *)"DateTime_ParseFormat", (PyCFunction) _wrap_DateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS }, | |
28747 | { (char *)"DateTime_ParseDateTime", (PyCFunction) _wrap_DateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS }, | |
28748 | { (char *)"DateTime_ParseDate", (PyCFunction) _wrap_DateTime_ParseDate, METH_VARARGS | METH_KEYWORDS }, | |
28749 | { (char *)"DateTime_ParseTime", (PyCFunction) _wrap_DateTime_ParseTime, METH_VARARGS | METH_KEYWORDS }, | |
28750 | { (char *)"DateTime_Format", (PyCFunction) _wrap_DateTime_Format, METH_VARARGS | METH_KEYWORDS }, | |
28751 | { (char *)"DateTime_FormatDate", (PyCFunction) _wrap_DateTime_FormatDate, METH_VARARGS | METH_KEYWORDS }, | |
28752 | { (char *)"DateTime_FormatTime", (PyCFunction) _wrap_DateTime_FormatTime, METH_VARARGS | METH_KEYWORDS }, | |
28753 | { (char *)"DateTime_FormatISODate", (PyCFunction) _wrap_DateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS }, | |
28754 | { (char *)"DateTime_FormatISOTime", (PyCFunction) _wrap_DateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS }, | |
28755 | { (char *)"DateTime_swigregister", DateTime_swigregister, METH_VARARGS }, | |
28756 | { (char *)"TimeSpan_Seconds", (PyCFunction) _wrap_TimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS }, | |
28757 | { (char *)"TimeSpan_Second", (PyCFunction) _wrap_TimeSpan_Second, METH_VARARGS | METH_KEYWORDS }, | |
28758 | { (char *)"TimeSpan_Minutes", (PyCFunction) _wrap_TimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS }, | |
28759 | { (char *)"TimeSpan_Minute", (PyCFunction) _wrap_TimeSpan_Minute, METH_VARARGS | METH_KEYWORDS }, | |
28760 | { (char *)"TimeSpan_Hours", (PyCFunction) _wrap_TimeSpan_Hours, METH_VARARGS | METH_KEYWORDS }, | |
28761 | { (char *)"TimeSpan_Hour", (PyCFunction) _wrap_TimeSpan_Hour, METH_VARARGS | METH_KEYWORDS }, | |
28762 | { (char *)"TimeSpan_Days", (PyCFunction) _wrap_TimeSpan_Days, METH_VARARGS | METH_KEYWORDS }, | |
28763 | { (char *)"TimeSpan_Day", (PyCFunction) _wrap_TimeSpan_Day, METH_VARARGS | METH_KEYWORDS }, | |
28764 | { (char *)"TimeSpan_Weeks", (PyCFunction) _wrap_TimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS }, | |
28765 | { (char *)"TimeSpan_Week", (PyCFunction) _wrap_TimeSpan_Week, METH_VARARGS | METH_KEYWORDS }, | |
28766 | { (char *)"new_TimeSpan", (PyCFunction) _wrap_new_TimeSpan, METH_VARARGS | METH_KEYWORDS }, | |
28767 | { (char *)"delete_TimeSpan", (PyCFunction) _wrap_delete_TimeSpan, METH_VARARGS | METH_KEYWORDS }, | |
28768 | { (char *)"TimeSpan_Add", (PyCFunction) _wrap_TimeSpan_Add, METH_VARARGS | METH_KEYWORDS }, | |
28769 | { (char *)"TimeSpan_Subtract", (PyCFunction) _wrap_TimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
28770 | { (char *)"TimeSpan_Multiply", (PyCFunction) _wrap_TimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS }, | |
28771 | { (char *)"TimeSpan_Neg", (PyCFunction) _wrap_TimeSpan_Neg, METH_VARARGS | METH_KEYWORDS }, | |
28772 | { (char *)"TimeSpan_Abs", (PyCFunction) _wrap_TimeSpan_Abs, METH_VARARGS | METH_KEYWORDS }, | |
28773 | { (char *)"TimeSpan___iadd__", (PyCFunction) _wrap_TimeSpan___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
28774 | { (char *)"TimeSpan___isub__", (PyCFunction) _wrap_TimeSpan___isub__, METH_VARARGS | METH_KEYWORDS }, | |
28775 | { (char *)"TimeSpan___imul__", (PyCFunction) _wrap_TimeSpan___imul__, METH_VARARGS | METH_KEYWORDS }, | |
28776 | { (char *)"TimeSpan___neg__", (PyCFunction) _wrap_TimeSpan___neg__, METH_VARARGS | METH_KEYWORDS }, | |
28777 | { (char *)"TimeSpan___add__", (PyCFunction) _wrap_TimeSpan___add__, METH_VARARGS | METH_KEYWORDS }, | |
28778 | { (char *)"TimeSpan___sub__", (PyCFunction) _wrap_TimeSpan___sub__, METH_VARARGS | METH_KEYWORDS }, | |
28779 | { (char *)"TimeSpan___mul__", (PyCFunction) _wrap_TimeSpan___mul__, METH_VARARGS | METH_KEYWORDS }, | |
28780 | { (char *)"TimeSpan___rmul__", (PyCFunction) _wrap_TimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS }, | |
28781 | { (char *)"TimeSpan___lt__", (PyCFunction) _wrap_TimeSpan___lt__, METH_VARARGS | METH_KEYWORDS }, | |
28782 | { (char *)"TimeSpan___le__", (PyCFunction) _wrap_TimeSpan___le__, METH_VARARGS | METH_KEYWORDS }, | |
28783 | { (char *)"TimeSpan___gt__", (PyCFunction) _wrap_TimeSpan___gt__, METH_VARARGS | METH_KEYWORDS }, | |
28784 | { (char *)"TimeSpan___ge__", (PyCFunction) _wrap_TimeSpan___ge__, METH_VARARGS | METH_KEYWORDS }, | |
28785 | { (char *)"TimeSpan___eq__", (PyCFunction) _wrap_TimeSpan___eq__, METH_VARARGS | METH_KEYWORDS }, | |
28786 | { (char *)"TimeSpan___ne__", (PyCFunction) _wrap_TimeSpan___ne__, METH_VARARGS | METH_KEYWORDS }, | |
28787 | { (char *)"TimeSpan_IsNull", (PyCFunction) _wrap_TimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS }, | |
28788 | { (char *)"TimeSpan_IsPositive", (PyCFunction) _wrap_TimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS }, | |
28789 | { (char *)"TimeSpan_IsNegative", (PyCFunction) _wrap_TimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS }, | |
28790 | { (char *)"TimeSpan_IsEqualTo", (PyCFunction) _wrap_TimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS }, | |
28791 | { (char *)"TimeSpan_IsLongerThan", (PyCFunction) _wrap_TimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS }, | |
28792 | { (char *)"TimeSpan_IsShorterThan", (PyCFunction) _wrap_TimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS }, | |
28793 | { (char *)"TimeSpan_GetWeeks", (PyCFunction) _wrap_TimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
28794 | { (char *)"TimeSpan_GetDays", (PyCFunction) _wrap_TimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS }, | |
28795 | { (char *)"TimeSpan_GetHours", (PyCFunction) _wrap_TimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS }, | |
28796 | { (char *)"TimeSpan_GetMinutes", (PyCFunction) _wrap_TimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS }, | |
28797 | { (char *)"TimeSpan_GetSeconds", (PyCFunction) _wrap_TimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS }, | |
28798 | { (char *)"TimeSpan_GetMilliseconds", (PyCFunction) _wrap_TimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS }, | |
28799 | { (char *)"TimeSpan_Format", (PyCFunction) _wrap_TimeSpan_Format, METH_VARARGS | METH_KEYWORDS }, | |
28800 | { (char *)"TimeSpan_swigregister", TimeSpan_swigregister, METH_VARARGS }, | |
28801 | { (char *)"new_DateSpan", (PyCFunction) _wrap_new_DateSpan, METH_VARARGS | METH_KEYWORDS }, | |
28802 | { (char *)"delete_DateSpan", (PyCFunction) _wrap_delete_DateSpan, METH_VARARGS | METH_KEYWORDS }, | |
28803 | { (char *)"DateSpan_Days", (PyCFunction) _wrap_DateSpan_Days, METH_VARARGS | METH_KEYWORDS }, | |
28804 | { (char *)"DateSpan_Day", (PyCFunction) _wrap_DateSpan_Day, METH_VARARGS | METH_KEYWORDS }, | |
28805 | { (char *)"DateSpan_Weeks", (PyCFunction) _wrap_DateSpan_Weeks, METH_VARARGS | METH_KEYWORDS }, | |
28806 | { (char *)"DateSpan_Week", (PyCFunction) _wrap_DateSpan_Week, METH_VARARGS | METH_KEYWORDS }, | |
28807 | { (char *)"DateSpan_Months", (PyCFunction) _wrap_DateSpan_Months, METH_VARARGS | METH_KEYWORDS }, | |
28808 | { (char *)"DateSpan_Month", (PyCFunction) _wrap_DateSpan_Month, METH_VARARGS | METH_KEYWORDS }, | |
28809 | { (char *)"DateSpan_Years", (PyCFunction) _wrap_DateSpan_Years, METH_VARARGS | METH_KEYWORDS }, | |
28810 | { (char *)"DateSpan_Year", (PyCFunction) _wrap_DateSpan_Year, METH_VARARGS | METH_KEYWORDS }, | |
28811 | { (char *)"DateSpan_SetYears", (PyCFunction) _wrap_DateSpan_SetYears, METH_VARARGS | METH_KEYWORDS }, | |
28812 | { (char *)"DateSpan_SetMonths", (PyCFunction) _wrap_DateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS }, | |
28813 | { (char *)"DateSpan_SetWeeks", (PyCFunction) _wrap_DateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
28814 | { (char *)"DateSpan_SetDays", (PyCFunction) _wrap_DateSpan_SetDays, METH_VARARGS | METH_KEYWORDS }, | |
28815 | { (char *)"DateSpan_GetYears", (PyCFunction) _wrap_DateSpan_GetYears, METH_VARARGS | METH_KEYWORDS }, | |
28816 | { (char *)"DateSpan_GetMonths", (PyCFunction) _wrap_DateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS }, | |
28817 | { (char *)"DateSpan_GetWeeks", (PyCFunction) _wrap_DateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
28818 | { (char *)"DateSpan_GetDays", (PyCFunction) _wrap_DateSpan_GetDays, METH_VARARGS | METH_KEYWORDS }, | |
28819 | { (char *)"DateSpan_GetTotalDays", (PyCFunction) _wrap_DateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS }, | |
28820 | { (char *)"DateSpan_Add", (PyCFunction) _wrap_DateSpan_Add, METH_VARARGS | METH_KEYWORDS }, | |
28821 | { (char *)"DateSpan_Subtract", (PyCFunction) _wrap_DateSpan_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
28822 | { (char *)"DateSpan_Neg", (PyCFunction) _wrap_DateSpan_Neg, METH_VARARGS | METH_KEYWORDS }, | |
28823 | { (char *)"DateSpan_Multiply", (PyCFunction) _wrap_DateSpan_Multiply, METH_VARARGS | METH_KEYWORDS }, | |
28824 | { (char *)"DateSpan___iadd__", (PyCFunction) _wrap_DateSpan___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
28825 | { (char *)"DateSpan___isub__", (PyCFunction) _wrap_DateSpan___isub__, METH_VARARGS | METH_KEYWORDS }, | |
28826 | { (char *)"DateSpan___neg__", (PyCFunction) _wrap_DateSpan___neg__, METH_VARARGS | METH_KEYWORDS }, | |
28827 | { (char *)"DateSpan___imul__", (PyCFunction) _wrap_DateSpan___imul__, METH_VARARGS | METH_KEYWORDS }, | |
28828 | { (char *)"DateSpan___add__", (PyCFunction) _wrap_DateSpan___add__, METH_VARARGS | METH_KEYWORDS }, | |
28829 | { (char *)"DateSpan___sub__", (PyCFunction) _wrap_DateSpan___sub__, METH_VARARGS | METH_KEYWORDS }, | |
28830 | { (char *)"DateSpan___mul__", (PyCFunction) _wrap_DateSpan___mul__, METH_VARARGS | METH_KEYWORDS }, | |
28831 | { (char *)"DateSpan___rmul__", (PyCFunction) _wrap_DateSpan___rmul__, METH_VARARGS | METH_KEYWORDS }, | |
28832 | { (char *)"DateSpan___eq__", (PyCFunction) _wrap_DateSpan___eq__, METH_VARARGS | METH_KEYWORDS }, | |
28833 | { (char *)"DateSpan___ne__", (PyCFunction) _wrap_DateSpan___ne__, METH_VARARGS | METH_KEYWORDS }, | |
28834 | { (char *)"DateSpan_swigregister", DateSpan_swigregister, METH_VARARGS }, | |
28835 | { (char *)"GetLocalTime", (PyCFunction) _wrap_GetLocalTime, METH_VARARGS | METH_KEYWORDS }, | |
28836 | { (char *)"GetUTCTime", (PyCFunction) _wrap_GetUTCTime, METH_VARARGS | METH_KEYWORDS }, | |
28837 | { (char *)"GetCurrentTime", (PyCFunction) _wrap_GetCurrentTime, METH_VARARGS | METH_KEYWORDS }, | |
28838 | { (char *)"GetLocalTimeMillis", (PyCFunction) _wrap_GetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS }, | |
28839 | { (char *)"new_DataFormat", (PyCFunction) _wrap_new_DataFormat, METH_VARARGS | METH_KEYWORDS }, | |
28840 | { (char *)"new_CustomDataFormat", (PyCFunction) _wrap_new_CustomDataFormat, METH_VARARGS | METH_KEYWORDS }, | |
28841 | { (char *)"delete_DataFormat", (PyCFunction) _wrap_delete_DataFormat, METH_VARARGS | METH_KEYWORDS }, | |
28842 | { (char *)"DataFormat___eq__", _wrap_DataFormat___eq__, METH_VARARGS }, | |
28843 | { (char *)"DataFormat___ne__", _wrap_DataFormat___ne__, METH_VARARGS }, | |
28844 | { (char *)"DataFormat_SetType", (PyCFunction) _wrap_DataFormat_SetType, METH_VARARGS | METH_KEYWORDS }, | |
28845 | { (char *)"DataFormat_GetType", (PyCFunction) _wrap_DataFormat_GetType, METH_VARARGS | METH_KEYWORDS }, | |
28846 | { (char *)"DataFormat_GetId", (PyCFunction) _wrap_DataFormat_GetId, METH_VARARGS | METH_KEYWORDS }, | |
28847 | { (char *)"DataFormat_SetId", (PyCFunction) _wrap_DataFormat_SetId, METH_VARARGS | METH_KEYWORDS }, | |
28848 | { (char *)"DataFormat_swigregister", DataFormat_swigregister, METH_VARARGS }, | |
28849 | { (char *)"delete_DataObject", (PyCFunction) _wrap_delete_DataObject, METH_VARARGS | METH_KEYWORDS }, | |
28850 | { (char *)"DataObject_GetPreferredFormat", (PyCFunction) _wrap_DataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS }, | |
28851 | { (char *)"DataObject_GetFormatCount", (PyCFunction) _wrap_DataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS }, | |
28852 | { (char *)"DataObject_IsSupported", (PyCFunction) _wrap_DataObject_IsSupported, METH_VARARGS | METH_KEYWORDS }, | |
28853 | { (char *)"DataObject_GetDataSize", (PyCFunction) _wrap_DataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS }, | |
28854 | { (char *)"DataObject_GetAllFormats", (PyCFunction) _wrap_DataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS }, | |
28855 | { (char *)"DataObject_GetDataHere", (PyCFunction) _wrap_DataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS }, | |
28856 | { (char *)"DataObject_SetData", (PyCFunction) _wrap_DataObject_SetData, METH_VARARGS | METH_KEYWORDS }, | |
28857 | { (char *)"DataObject_swigregister", DataObject_swigregister, METH_VARARGS }, | |
28858 | { (char *)"new_DataObjectSimple", (PyCFunction) _wrap_new_DataObjectSimple, METH_VARARGS | METH_KEYWORDS }, | |
28859 | { (char *)"DataObjectSimple_GetFormat", (PyCFunction) _wrap_DataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS }, | |
28860 | { (char *)"DataObjectSimple_SetFormat", (PyCFunction) _wrap_DataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS }, | |
68e533f8 RD |
28861 | { (char *)"DataObjectSimple_GetDataSize", (PyCFunction) _wrap_DataObjectSimple_GetDataSize, METH_VARARGS | METH_KEYWORDS }, |
28862 | { (char *)"DataObjectSimple_GetDataHere", (PyCFunction) _wrap_DataObjectSimple_GetDataHere, METH_VARARGS | METH_KEYWORDS }, | |
28863 | { (char *)"DataObjectSimple_SetData", (PyCFunction) _wrap_DataObjectSimple_SetData, METH_VARARGS | METH_KEYWORDS }, | |
d55e5bfc RD |
28864 | { (char *)"DataObjectSimple_swigregister", DataObjectSimple_swigregister, METH_VARARGS }, |
28865 | { (char *)"new_PyDataObjectSimple", (PyCFunction) _wrap_new_PyDataObjectSimple, METH_VARARGS | METH_KEYWORDS }, | |
28866 | { (char *)"PyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_PyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28867 | { (char *)"PyDataObjectSimple_swigregister", PyDataObjectSimple_swigregister, METH_VARARGS }, | |
28868 | { (char *)"new_DataObjectComposite", (PyCFunction) _wrap_new_DataObjectComposite, METH_VARARGS | METH_KEYWORDS }, | |
28869 | { (char *)"DataObjectComposite_Add", (PyCFunction) _wrap_DataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS }, | |
28870 | { (char *)"DataObjectComposite_swigregister", DataObjectComposite_swigregister, METH_VARARGS }, | |
28871 | { (char *)"new_TextDataObject", (PyCFunction) _wrap_new_TextDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28872 | { (char *)"TextDataObject_GetTextLength", (PyCFunction) _wrap_TextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS }, | |
28873 | { (char *)"TextDataObject_GetText", (PyCFunction) _wrap_TextDataObject_GetText, METH_VARARGS | METH_KEYWORDS }, | |
28874 | { (char *)"TextDataObject_SetText", (PyCFunction) _wrap_TextDataObject_SetText, METH_VARARGS | METH_KEYWORDS }, | |
28875 | { (char *)"TextDataObject_swigregister", TextDataObject_swigregister, METH_VARARGS }, | |
28876 | { (char *)"new_PyTextDataObject", (PyCFunction) _wrap_new_PyTextDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28877 | { (char *)"PyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_PyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28878 | { (char *)"PyTextDataObject_swigregister", PyTextDataObject_swigregister, METH_VARARGS }, | |
28879 | { (char *)"new_BitmapDataObject", (PyCFunction) _wrap_new_BitmapDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28880 | { (char *)"BitmapDataObject_GetBitmap", (PyCFunction) _wrap_BitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
28881 | { (char *)"BitmapDataObject_SetBitmap", (PyCFunction) _wrap_BitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
28882 | { (char *)"BitmapDataObject_swigregister", BitmapDataObject_swigregister, METH_VARARGS }, | |
28883 | { (char *)"new_PyBitmapDataObject", (PyCFunction) _wrap_new_PyBitmapDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28884 | { (char *)"PyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_PyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28885 | { (char *)"PyBitmapDataObject_swigregister", PyBitmapDataObject_swigregister, METH_VARARGS }, | |
28886 | { (char *)"new_FileDataObject", (PyCFunction) _wrap_new_FileDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28887 | { (char *)"FileDataObject_GetFilenames", (PyCFunction) _wrap_FileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS }, | |
28888 | { (char *)"FileDataObject_AddFile", (PyCFunction) _wrap_FileDataObject_AddFile, METH_VARARGS | METH_KEYWORDS }, | |
28889 | { (char *)"FileDataObject_swigregister", FileDataObject_swigregister, METH_VARARGS }, | |
28890 | { (char *)"new_CustomDataObject", (PyCFunction) _wrap_new_CustomDataObject, METH_VARARGS | METH_KEYWORDS }, | |
d55e5bfc RD |
28891 | { (char *)"CustomDataObject_SetData", (PyCFunction) _wrap_CustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS }, |
28892 | { (char *)"CustomDataObject_GetSize", (PyCFunction) _wrap_CustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
28893 | { (char *)"CustomDataObject_GetData", (PyCFunction) _wrap_CustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS }, | |
28894 | { (char *)"CustomDataObject_swigregister", CustomDataObject_swigregister, METH_VARARGS }, | |
28895 | { (char *)"new_URLDataObject", (PyCFunction) _wrap_new_URLDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28896 | { (char *)"URLDataObject_GetURL", (PyCFunction) _wrap_URLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS }, | |
28897 | { (char *)"URLDataObject_SetURL", (PyCFunction) _wrap_URLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS }, | |
28898 | { (char *)"URLDataObject_swigregister", URLDataObject_swigregister, METH_VARARGS }, | |
28899 | { (char *)"new_MetafileDataObject", (PyCFunction) _wrap_new_MetafileDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28900 | { (char *)"MetafileDataObject_SetMetafile", (PyCFunction) _wrap_MetafileDataObject_SetMetafile, METH_VARARGS | METH_KEYWORDS }, | |
28901 | { (char *)"MetafileDataObject_GetMetafile", (PyCFunction) _wrap_MetafileDataObject_GetMetafile, METH_VARARGS | METH_KEYWORDS }, | |
28902 | { (char *)"MetafileDataObject_swigregister", MetafileDataObject_swigregister, METH_VARARGS }, | |
28903 | { (char *)"IsDragResultOk", (PyCFunction) _wrap_IsDragResultOk, METH_VARARGS | METH_KEYWORDS }, | |
28904 | { (char *)"new_DropSource", (PyCFunction) _wrap_new_DropSource, METH_VARARGS | METH_KEYWORDS }, | |
28905 | { (char *)"DropSource__setCallbackInfo", (PyCFunction) _wrap_DropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28906 | { (char *)"delete_DropSource", (PyCFunction) _wrap_delete_DropSource, METH_VARARGS | METH_KEYWORDS }, | |
28907 | { (char *)"DropSource_SetData", (PyCFunction) _wrap_DropSource_SetData, METH_VARARGS | METH_KEYWORDS }, | |
28908 | { (char *)"DropSource_GetDataObject", (PyCFunction) _wrap_DropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28909 | { (char *)"DropSource_SetCursor", (PyCFunction) _wrap_DropSource_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
28910 | { (char *)"DropSource_DoDragDrop", (PyCFunction) _wrap_DropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS }, | |
28911 | { (char *)"DropSource_base_GiveFeedback", (PyCFunction) _wrap_DropSource_base_GiveFeedback, METH_VARARGS | METH_KEYWORDS }, | |
28912 | { (char *)"DropSource_swigregister", DropSource_swigregister, METH_VARARGS }, | |
28913 | { (char *)"new_DropTarget", (PyCFunction) _wrap_new_DropTarget, METH_VARARGS | METH_KEYWORDS }, | |
28914 | { (char *)"DropTarget__setCallbackInfo", (PyCFunction) _wrap_DropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28915 | { (char *)"delete_DropTarget", (PyCFunction) _wrap_delete_DropTarget, METH_VARARGS | METH_KEYWORDS }, | |
28916 | { (char *)"DropTarget_GetDataObject", (PyCFunction) _wrap_DropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28917 | { (char *)"DropTarget_SetDataObject", (PyCFunction) _wrap_DropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS }, | |
28918 | { (char *)"DropTarget_base_OnEnter", (PyCFunction) _wrap_DropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, | |
28919 | { (char *)"DropTarget_base_OnDragOver", (PyCFunction) _wrap_DropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, | |
28920 | { (char *)"DropTarget_base_OnLeave", (PyCFunction) _wrap_DropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, | |
28921 | { (char *)"DropTarget_base_OnDrop", (PyCFunction) _wrap_DropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, | |
28922 | { (char *)"DropTarget_GetData", (PyCFunction) _wrap_DropTarget_GetData, METH_VARARGS | METH_KEYWORDS }, | |
28923 | { (char *)"DropTarget_swigregister", DropTarget_swigregister, METH_VARARGS }, | |
28924 | { (char *)"new_TextDropTarget", (PyCFunction) _wrap_new_TextDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
28925 | { (char *)"TextDropTarget__setCallbackInfo", (PyCFunction) _wrap_TextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28926 | { (char *)"TextDropTarget_base_OnEnter", (PyCFunction) _wrap_TextDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, | |
28927 | { (char *)"TextDropTarget_base_OnDragOver", (PyCFunction) _wrap_TextDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, | |
28928 | { (char *)"TextDropTarget_base_OnLeave", (PyCFunction) _wrap_TextDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, | |
28929 | { (char *)"TextDropTarget_base_OnDrop", (PyCFunction) _wrap_TextDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, | |
28930 | { (char *)"TextDropTarget_base_OnData", (PyCFunction) _wrap_TextDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS }, | |
28931 | { (char *)"TextDropTarget_swigregister", TextDropTarget_swigregister, METH_VARARGS }, | |
28932 | { (char *)"new_FileDropTarget", (PyCFunction) _wrap_new_FileDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
28933 | { (char *)"FileDropTarget__setCallbackInfo", (PyCFunction) _wrap_FileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
28934 | { (char *)"FileDropTarget_base_OnEnter", (PyCFunction) _wrap_FileDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, | |
28935 | { (char *)"FileDropTarget_base_OnDragOver", (PyCFunction) _wrap_FileDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, | |
28936 | { (char *)"FileDropTarget_base_OnLeave", (PyCFunction) _wrap_FileDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, | |
28937 | { (char *)"FileDropTarget_base_OnDrop", (PyCFunction) _wrap_FileDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, | |
28938 | { (char *)"FileDropTarget_base_OnData", (PyCFunction) _wrap_FileDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS }, | |
28939 | { (char *)"FileDropTarget_swigregister", FileDropTarget_swigregister, METH_VARARGS }, | |
28940 | { (char *)"new_Clipboard", (PyCFunction) _wrap_new_Clipboard, METH_VARARGS | METH_KEYWORDS }, | |
28941 | { (char *)"delete_Clipboard", (PyCFunction) _wrap_delete_Clipboard, METH_VARARGS | METH_KEYWORDS }, | |
28942 | { (char *)"Clipboard_Open", (PyCFunction) _wrap_Clipboard_Open, METH_VARARGS | METH_KEYWORDS }, | |
28943 | { (char *)"Clipboard_Close", (PyCFunction) _wrap_Clipboard_Close, METH_VARARGS | METH_KEYWORDS }, | |
28944 | { (char *)"Clipboard_IsOpened", (PyCFunction) _wrap_Clipboard_IsOpened, METH_VARARGS | METH_KEYWORDS }, | |
28945 | { (char *)"Clipboard_AddData", (PyCFunction) _wrap_Clipboard_AddData, METH_VARARGS | METH_KEYWORDS }, | |
28946 | { (char *)"Clipboard_SetData", (PyCFunction) _wrap_Clipboard_SetData, METH_VARARGS | METH_KEYWORDS }, | |
28947 | { (char *)"Clipboard_IsSupported", (PyCFunction) _wrap_Clipboard_IsSupported, METH_VARARGS | METH_KEYWORDS }, | |
28948 | { (char *)"Clipboard_GetData", (PyCFunction) _wrap_Clipboard_GetData, METH_VARARGS | METH_KEYWORDS }, | |
28949 | { (char *)"Clipboard_Clear", (PyCFunction) _wrap_Clipboard_Clear, METH_VARARGS | METH_KEYWORDS }, | |
28950 | { (char *)"Clipboard_Flush", (PyCFunction) _wrap_Clipboard_Flush, METH_VARARGS | METH_KEYWORDS }, | |
28951 | { (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS }, | |
28952 | { (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS }, | |
28953 | { (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS }, | |
28954 | { (char *)"delete_ClipboardLocker", (PyCFunction) _wrap_delete_ClipboardLocker, METH_VARARGS | METH_KEYWORDS }, | |
28955 | { (char *)"ClipboardLocker___nonzero__", (PyCFunction) _wrap_ClipboardLocker___nonzero__, METH_VARARGS | METH_KEYWORDS }, | |
28956 | { (char *)"ClipboardLocker_swigregister", ClipboardLocker_swigregister, METH_VARARGS }, | |
28957 | { (char *)"new_VideoMode", (PyCFunction) _wrap_new_VideoMode, METH_VARARGS | METH_KEYWORDS }, | |
28958 | { (char *)"delete_VideoMode", (PyCFunction) _wrap_delete_VideoMode, METH_VARARGS | METH_KEYWORDS }, | |
28959 | { (char *)"VideoMode_Matches", (PyCFunction) _wrap_VideoMode_Matches, METH_VARARGS | METH_KEYWORDS }, | |
28960 | { (char *)"VideoMode_GetWidth", (PyCFunction) _wrap_VideoMode_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
28961 | { (char *)"VideoMode_GetHeight", (PyCFunction) _wrap_VideoMode_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
28962 | { (char *)"VideoMode_GetDepth", (PyCFunction) _wrap_VideoMode_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
28963 | { (char *)"VideoMode_IsOk", (PyCFunction) _wrap_VideoMode_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
28964 | { (char *)"VideoMode___eq__", (PyCFunction) _wrap_VideoMode___eq__, METH_VARARGS | METH_KEYWORDS }, | |
28965 | { (char *)"VideoMode___ne__", (PyCFunction) _wrap_VideoMode___ne__, METH_VARARGS | METH_KEYWORDS }, | |
28966 | { (char *)"VideoMode_w_set", (PyCFunction) _wrap_VideoMode_w_set, METH_VARARGS | METH_KEYWORDS }, | |
28967 | { (char *)"VideoMode_w_get", (PyCFunction) _wrap_VideoMode_w_get, METH_VARARGS | METH_KEYWORDS }, | |
28968 | { (char *)"VideoMode_h_set", (PyCFunction) _wrap_VideoMode_h_set, METH_VARARGS | METH_KEYWORDS }, | |
28969 | { (char *)"VideoMode_h_get", (PyCFunction) _wrap_VideoMode_h_get, METH_VARARGS | METH_KEYWORDS }, | |
28970 | { (char *)"VideoMode_bpp_set", (PyCFunction) _wrap_VideoMode_bpp_set, METH_VARARGS | METH_KEYWORDS }, | |
28971 | { (char *)"VideoMode_bpp_get", (PyCFunction) _wrap_VideoMode_bpp_get, METH_VARARGS | METH_KEYWORDS }, | |
28972 | { (char *)"VideoMode_refresh_set", (PyCFunction) _wrap_VideoMode_refresh_set, METH_VARARGS | METH_KEYWORDS }, | |
28973 | { (char *)"VideoMode_refresh_get", (PyCFunction) _wrap_VideoMode_refresh_get, METH_VARARGS | METH_KEYWORDS }, | |
28974 | { (char *)"VideoMode_swigregister", VideoMode_swigregister, METH_VARARGS }, | |
28975 | { (char *)"new_Display", (PyCFunction) _wrap_new_Display, METH_VARARGS | METH_KEYWORDS }, | |
28976 | { (char *)"delete_Display", (PyCFunction) _wrap_delete_Display, METH_VARARGS | METH_KEYWORDS }, | |
28977 | { (char *)"Display_GetCount", (PyCFunction) _wrap_Display_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
28978 | { (char *)"Display_GetFromPoint", (PyCFunction) _wrap_Display_GetFromPoint, METH_VARARGS | METH_KEYWORDS }, | |
28979 | { (char *)"Display_GetFromWindow", (PyCFunction) _wrap_Display_GetFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
28980 | { (char *)"Display_IsOk", (PyCFunction) _wrap_Display_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
28981 | { (char *)"Display_GetGeometry", (PyCFunction) _wrap_Display_GetGeometry, METH_VARARGS | METH_KEYWORDS }, | |
28982 | { (char *)"Display_GetName", (PyCFunction) _wrap_Display_GetName, METH_VARARGS | METH_KEYWORDS }, | |
28983 | { (char *)"Display_IsPrimary", (PyCFunction) _wrap_Display_IsPrimary, METH_VARARGS | METH_KEYWORDS }, | |
28984 | { (char *)"Display_GetModes", (PyCFunction) _wrap_Display_GetModes, METH_VARARGS | METH_KEYWORDS }, | |
28985 | { (char *)"Display_GetCurrentMode", (PyCFunction) _wrap_Display_GetCurrentMode, METH_VARARGS | METH_KEYWORDS }, | |
28986 | { (char *)"Display_ChangeMode", (PyCFunction) _wrap_Display_ChangeMode, METH_VARARGS | METH_KEYWORDS }, | |
28987 | { (char *)"Display_ResetMode", (PyCFunction) _wrap_Display_ResetMode, METH_VARARGS | METH_KEYWORDS }, | |
28988 | { (char *)"Display_swigregister", Display_swigregister, METH_VARARGS }, | |
28989 | { NULL, NULL } | |
28990 | }; | |
28991 | ||
28992 | ||
28993 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
28994 | ||
28995 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
28996 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
28997 | } | |
28998 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
28999 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
29000 | } | |
29001 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
29002 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
29003 | } | |
29004 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
29005 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
29006 | } | |
29007 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
29008 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
29009 | } | |
29010 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
29011 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
29012 | } | |
29013 | static void *_p_wxTimerEventTo_p_wxEvent(void *x) { | |
29014 | return (void *)((wxEvent *) ((wxTimerEvent *) x)); | |
29015 | } | |
29016 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
29017 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
29018 | } | |
29019 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
29020 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
29021 | } | |
29022 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
29023 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
29024 | } | |
29025 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
29026 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
29027 | } | |
29028 | static void *_p_wxJoystickEventTo_p_wxEvent(void *x) { | |
29029 | return (void *)((wxEvent *) ((wxJoystickEvent *) x)); | |
29030 | } | |
29031 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
29032 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
29033 | } | |
29034 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
29035 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
29036 | } | |
29037 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
29038 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
29039 | } | |
29040 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
29041 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
29042 | } | |
29043 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
29044 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
29045 | } | |
29046 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
29047 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
29048 | } | |
29049 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
29050 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
29051 | } | |
29052 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
29053 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
29054 | } | |
29055 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
29056 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
29057 | } | |
29058 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
29059 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
29060 | } | |
29061 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
29062 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
29063 | } | |
29064 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
29065 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
29066 | } | |
29067 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
29068 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
29069 | } | |
29070 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
29071 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
29072 | } | |
29073 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
29074 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
29075 | } | |
29076 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
29077 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
29078 | } | |
29079 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
29080 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
29081 | } | |
29082 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
29083 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
29084 | } | |
29085 | static void *_p_wxProcessEventTo_p_wxEvent(void *x) { | |
29086 | return (void *)((wxEvent *) ((wxProcessEvent *) x)); | |
29087 | } | |
29088 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
29089 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
29090 | } | |
29091 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
29092 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
29093 | } | |
29094 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
29095 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
29096 | } | |
29097 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
29098 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
29099 | } | |
29100 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
29101 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
29102 | } | |
29103 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
29104 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
29105 | } | |
29106 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
29107 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
29108 | } | |
29109 | static void *_p_wxFileConfigTo_p_wxConfigBase(void *x) { | |
29110 | return (void *)((wxConfigBase *) ((wxFileConfig *) x)); | |
29111 | } | |
29112 | static void *_p_wxConfigTo_p_wxConfigBase(void *x) { | |
29113 | return (void *)((wxConfigBase *) ((wxConfig *) x)); | |
29114 | } | |
29115 | static void *_p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject(void *x) { | |
29116 | return (void *)((wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
29117 | } | |
29118 | static void *_p_wxPyTextDataObjectTo_p_wxTextDataObject(void *x) { | |
29119 | return (void *)((wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
29120 | } | |
29121 | static void *_p_wxDataObjectSimpleTo_p_wxDataObject(void *x) { | |
29122 | return (void *)((wxDataObject *) ((wxDataObjectSimple *) x)); | |
29123 | } | |
29124 | static void *_p_wxPyDataObjectSimpleTo_p_wxDataObject(void *x) { | |
29125 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxPyDataObjectSimple *) x)); | |
29126 | } | |
29127 | static void *_p_wxDataObjectCompositeTo_p_wxDataObject(void *x) { | |
29128 | return (void *)((wxDataObject *) ((wxDataObjectComposite *) x)); | |
29129 | } | |
29130 | static void *_p_wxTextDataObjectTo_p_wxDataObject(void *x) { | |
29131 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxTextDataObject *) x)); | |
29132 | } | |
29133 | static void *_p_wxPyTextDataObjectTo_p_wxDataObject(void *x) { | |
29134 | return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
29135 | } | |
29136 | static void *_p_wxBitmapDataObjectTo_p_wxDataObject(void *x) { | |
29137 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxBitmapDataObject *) x)); | |
29138 | } | |
29139 | static void *_p_wxPyBitmapDataObjectTo_p_wxDataObject(void *x) { | |
29140 | return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
29141 | } | |
29142 | static void *_p_wxFileDataObjectTo_p_wxDataObject(void *x) { | |
29143 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxFileDataObject *) x)); | |
29144 | } | |
29145 | static void *_p_wxCustomDataObjectTo_p_wxDataObject(void *x) { | |
29146 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxCustomDataObject *) x)); | |
29147 | } | |
29148 | static void *_p_wxURLDataObjectTo_p_wxDataObject(void *x) { | |
29149 | return (void *)((wxDataObject *) (wxDataObjectComposite *) ((wxURLDataObject *) x)); | |
29150 | } | |
29151 | static void *_p_wxMetafileDataObjectTo_p_wxDataObject(void *x) { | |
29152 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxMetafileDataObject *) x)); | |
29153 | } | |
29154 | static void *_p_wxURLDataObjectTo_p_wxDataObjectComposite(void *x) { | |
29155 | return (void *)((wxDataObjectComposite *) ((wxURLDataObject *) x)); | |
29156 | } | |
29157 | static void *_p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple(void *x) { | |
29158 | return (void *)((wxDataObjectSimple *) ((wxPyDataObjectSimple *) x)); | |
29159 | } | |
29160 | static void *_p_wxTextDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29161 | return (void *)((wxDataObjectSimple *) ((wxTextDataObject *) x)); | |
29162 | } | |
29163 | static void *_p_wxPyTextDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29164 | return (void *)((wxDataObjectSimple *) (wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
29165 | } | |
29166 | static void *_p_wxBitmapDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29167 | return (void *)((wxDataObjectSimple *) ((wxBitmapDataObject *) x)); | |
29168 | } | |
29169 | static void *_p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29170 | return (void *)((wxDataObjectSimple *) (wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
29171 | } | |
29172 | static void *_p_wxFileDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29173 | return (void *)((wxDataObjectSimple *) ((wxFileDataObject *) x)); | |
29174 | } | |
29175 | static void *_p_wxCustomDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29176 | return (void *)((wxDataObjectSimple *) ((wxCustomDataObject *) x)); | |
29177 | } | |
29178 | static void *_p_wxMetafileDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29179 | return (void *)((wxDataObjectSimple *) ((wxMetafileDataObject *) x)); | |
29180 | } | |
29181 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
29182 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
29183 | } | |
29184 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
29185 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
29186 | } | |
29187 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
29188 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
29189 | } | |
29190 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
29191 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
29192 | } | |
29193 | static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) { | |
29194 | return (void *)((wxEvtHandler *) ((wxPyTimer *) x)); | |
29195 | } | |
29196 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
29197 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
29198 | } | |
29199 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
29200 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
29201 | } | |
29202 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
29203 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
29204 | } | |
29205 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
29206 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
29207 | } | |
29208 | static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) { | |
29209 | return (void *)((wxEvtHandler *) ((wxPyProcess *) x)); | |
29210 | } | |
29211 | static void *_p_wxPyTipProviderTo_p_wxTipProvider(void *x) { | |
29212 | return (void *)((wxTipProvider *) ((wxPyTipProvider *) x)); | |
29213 | } | |
29214 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
29215 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
29216 | } | |
29217 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
29218 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
29219 | } | |
29220 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
29221 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
29222 | } | |
29223 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
29224 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
29225 | } | |
29226 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
29227 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
29228 | } | |
29229 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
29230 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
29231 | } | |
29232 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
29233 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
29234 | } | |
29235 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
29236 | return (void *)((wxObject *) ((wxSizer *) x)); | |
29237 | } | |
29238 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
29239 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
29240 | } | |
29241 | static void *_p_wxFileHistoryTo_p_wxObject(void *x) { | |
29242 | return (void *)((wxObject *) ((wxFileHistory *) x)); | |
29243 | } | |
29244 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
29245 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
29246 | } | |
29247 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
29248 | return (void *)((wxObject *) ((wxEvent *) x)); | |
29249 | } | |
29250 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
29251 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
29252 | } | |
29253 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
29254 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
29255 | } | |
29256 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
29257 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
29258 | } | |
29259 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
29260 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
29261 | } | |
29262 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
29263 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
29264 | } | |
29265 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
29266 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
29267 | } | |
29268 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
29269 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
29270 | } | |
29271 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
29272 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
29273 | } | |
29274 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
29275 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
29276 | } | |
29277 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
29278 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
29279 | } | |
29280 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
29281 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
29282 | } | |
29283 | static void *_p_wxTimerEventTo_p_wxObject(void *x) { | |
29284 | return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x)); | |
29285 | } | |
29286 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
29287 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
29288 | } | |
29289 | static void *_p_wxClipboardTo_p_wxObject(void *x) { | |
29290 | return (void *)((wxObject *) ((wxClipboard *) x)); | |
29291 | } | |
29292 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
29293 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
29294 | } | |
29295 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
29296 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
29297 | } | |
29298 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
29299 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
29300 | } | |
29301 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
29302 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
29303 | } | |
29304 | static void *_p_wxToolTipTo_p_wxObject(void *x) { | |
29305 | return (void *)((wxObject *) ((wxToolTip *) x)); | |
29306 | } | |
29307 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
29308 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
29309 | } | |
29310 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
29311 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
29312 | } | |
29313 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
29314 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
29315 | } | |
29316 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
29317 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
29318 | } | |
29319 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
29320 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
29321 | } | |
29322 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
29323 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
29324 | } | |
29325 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
29326 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
29327 | } | |
29328 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
29329 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
29330 | } | |
29331 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
29332 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
29333 | } | |
29334 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
29335 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
29336 | } | |
29337 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
29338 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
29339 | } | |
29340 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
29341 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
29342 | } | |
29343 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
29344 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
29345 | } | |
29346 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
29347 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
29348 | } | |
29349 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
29350 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
29351 | } | |
29352 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
29353 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
29354 | } | |
29355 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
29356 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
29357 | } | |
29358 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
29359 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
29360 | } | |
29361 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
29362 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
29363 | } | |
29364 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
29365 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
29366 | } | |
29367 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
29368 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
29369 | } | |
29370 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
29371 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
29372 | } | |
29373 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
29374 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
29375 | } | |
29376 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
29377 | return (void *)((wxObject *) ((wxImage *) x)); | |
29378 | } | |
29379 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
29380 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
29381 | } | |
29382 | static void *_p_wxSystemOptionsTo_p_wxObject(void *x) { | |
29383 | return (void *)((wxObject *) ((wxSystemOptions *) x)); | |
29384 | } | |
29385 | static void *_p_wxJoystickEventTo_p_wxObject(void *x) { | |
29386 | return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x)); | |
29387 | } | |
29388 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
29389 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
29390 | } | |
29391 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
29392 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
29393 | } | |
29394 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
29395 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
29396 | } | |
29397 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
29398 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
29399 | } | |
29400 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
29401 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
29402 | } | |
29403 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
29404 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
29405 | } | |
29406 | static void *_p_wxPyProcessTo_p_wxObject(void *x) { | |
29407 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x)); | |
29408 | } | |
29409 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
29410 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
29411 | } | |
29412 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
29413 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
29414 | } | |
29415 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
29416 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
29417 | } | |
29418 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
29419 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
29420 | } | |
29421 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
29422 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
29423 | } | |
29424 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
29425 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
29426 | } | |
29427 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
29428 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
29429 | } | |
29430 | static void *_p_wxBusyInfoTo_p_wxObject(void *x) { | |
29431 | return (void *)((wxObject *) ((wxBusyInfo *) x)); | |
29432 | } | |
29433 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
29434 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
29435 | } | |
29436 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
29437 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
29438 | } | |
29439 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
29440 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
29441 | } | |
29442 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
29443 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
29444 | } | |
29445 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
29446 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
29447 | } | |
29448 | static void *_p_wxProcessEventTo_p_wxObject(void *x) { | |
29449 | return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x)); | |
29450 | } | |
29451 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
29452 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
29453 | } | |
29454 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
29455 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
29456 | } | |
29457 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
29458 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
29459 | } | |
29460 | static void *_p_wxPyTimerTo_p_wxObject(void *x) { | |
29461 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x)); | |
29462 | } | |
29463 | static void *_p_wxLogStderrTo_p_wxLog(void *x) { | |
29464 | return (void *)((wxLog *) ((wxLogStderr *) x)); | |
29465 | } | |
29466 | static void *_p_wxLogTextCtrlTo_p_wxLog(void *x) { | |
29467 | return (void *)((wxLog *) ((wxLogTextCtrl *) x)); | |
29468 | } | |
29469 | static void *_p_wxLogWindowTo_p_wxLog(void *x) { | |
29470 | return (void *)((wxLog *) ((wxLogWindow *) x)); | |
29471 | } | |
29472 | static void *_p_wxLogChainTo_p_wxLog(void *x) { | |
29473 | return (void *)((wxLog *) ((wxLogChain *) x)); | |
29474 | } | |
29475 | static void *_p_wxLogGuiTo_p_wxLog(void *x) { | |
29476 | return (void *)((wxLog *) ((wxLogGui *) x)); | |
29477 | } | |
29478 | static void *_p_wxPyLogTo_p_wxLog(void *x) { | |
29479 | return (void *)((wxLog *) ((wxPyLog *) x)); | |
29480 | } | |
29481 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
29482 | return (void *)((wxWindow *) ((wxControl *) x)); | |
29483 | } | |
29484 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
29485 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
29486 | } | |
29487 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
29488 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
29489 | } | |
29490 | static void *_p_wxPyTextDropTargetTo_p_wxPyDropTarget(void *x) { | |
29491 | return (void *)((wxPyDropTarget *) ((wxPyTextDropTarget *) x)); | |
29492 | } | |
29493 | static void *_p_wxPyFileDropTargetTo_p_wxPyDropTarget(void *x) { | |
29494 | return (void *)((wxPyDropTarget *) ((wxPyFileDropTarget *) x)); | |
29495 | } | |
29496 | 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}}; | |
29497 | 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}}; | |
29498 | 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}}; | |
29499 | 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}}; | |
29500 | 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}}; | |
29501 | 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}}; | |
29502 | 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}}; | |
29503 | 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}}; | |
29504 | 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}}; | |
29505 | 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}}; | |
29506 | 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}}; | |
29507 | 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}}; | |
29508 | 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}}; | |
29509 | 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}}; | |
29510 | 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}}; | |
29511 | 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}}; | |
29512 | 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}}; | |
29513 | 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}}; | |
29514 | 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}}; | |
29515 | 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}}; | |
29516 | 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}}; | |
29517 | 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}}; | |
29518 | 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}}; | |
29519 | 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}}; | |
29520 | 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}}; | |
29521 | 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}}; | |
29522 | 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}}; | |
0346c964 | 29523 | 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 |
29524 | 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}}; |
29525 | 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}}; | |
29526 | 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}}; | |
29527 | 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 |
29528 | 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}}; |
29529 | 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}}; | |
29530 | 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}}; | |
29531 | 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}}; | |
29532 | 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}}; | |
29533 | 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}}; | |
29534 | 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}}; | |
29535 | 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}}; | |
29536 | 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}}; | |
29537 | 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}}; | |
29538 | 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}}; | |
29539 | 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}}; | |
29540 | 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}}; | |
29541 | 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}}; | |
29542 | 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}}; | |
29543 | 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}}; | |
29544 | 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}}; | |
29545 | 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}}; | |
29546 | 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}}; | |
29547 | 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}}; | |
29548 | 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}}; | |
29549 | 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}}; | |
29550 | 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}}; | |
29551 | 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}}; | |
29552 | 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}}; | |
29553 | 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}}; | |
29554 | 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}}; | |
29555 | 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}}; | |
29556 | 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}}; | |
29557 | 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}}; | |
29558 | 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}}; | |
29559 | 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}}; | |
29560 | 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}}; | |
29561 | 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}}; | |
29562 | 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}}; | |
29563 | 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}}; | |
29564 | 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}}; | |
29565 | 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}}; | |
29566 | 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}}; | |
29567 | 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}}; | |
29568 | 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}}; | |
29569 | 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}}; | |
29570 | 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}}; | |
29571 | 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}}; | |
29572 | 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}}; | |
29573 | 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}}; | |
29574 | 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}}; | |
29575 | 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}}; | |
29576 | 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}}; | |
29577 | 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}}; | |
29578 | 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 |
29579 | 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}}; |
29580 | 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}}; | |
29581 | 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}}; | |
29582 | ||
29583 | static swig_type_info *swig_types_initial[] = { | |
29584 | _swigt__p_wxLogChain, | |
29585 | _swigt__p_wxMutexGuiLocker, | |
29586 | _swigt__p_wxMetafile, | |
29587 | _swigt__p_wxFileHistory, | |
29588 | _swigt__p_wxLog, | |
29589 | _swigt__p_wxDateTime__TimeZone, | |
29590 | _swigt__p_wxMenu, | |
29591 | _swigt__p_wxEvent, | |
29592 | _swigt__p_wxConfigBase, | |
29593 | _swigt__p_wxDisplay, | |
29594 | _swigt__p_wxFileType, | |
29595 | _swigt__p_wxLogGui, | |
29596 | _swigt__p_wxFont, | |
29597 | _swigt__p_wxDataFormat, | |
29598 | _swigt__p_wxTimerEvent, | |
29599 | _swigt__p_wxCaret, | |
29600 | _swigt__p_int, | |
29601 | _swigt__p_wxSize, | |
29602 | _swigt__p_wxClipboard, | |
29603 | _swigt__p_wxStopWatch, | |
29604 | _swigt__p_wxDC, | |
29605 | _swigt__p_wxClipboardLocker, | |
29606 | _swigt__p_wxIcon, | |
29607 | _swigt__p_wxLogStderr, | |
29608 | _swigt__p_wxLogTextCtrl, | |
29609 | _swigt__p_wxTextCtrl, | |
29610 | _swigt__p_wxBusyCursor, | |
0346c964 | 29611 | _swigt__p_wxPyBitmapDataObject, |
d55e5bfc RD |
29612 | _swigt__p_wxPyTextDataObject, |
29613 | _swigt__p_wxBitmapDataObject, | |
29614 | _swigt__p_wxTextDataObject, | |
29615 | _swigt__p_wxDataObject, | |
d55e5bfc RD |
29616 | _swigt__p_wxFileDataObject, |
29617 | _swigt__p_wxCustomDataObject, | |
29618 | _swigt__p_wxURLDataObject, | |
29619 | _swigt__p_wxMetafileDataObject, | |
29620 | _swigt__p_wxSound, | |
29621 | _swigt__p_wxTimerRunner, | |
29622 | _swigt__p_wxLogWindow, | |
29623 | _swigt__p_wxTimeSpan, | |
29624 | _swigt__p_wxArrayString, | |
29625 | _swigt__p_wxWindowDisabler, | |
29626 | _swigt__p_wxToolTip, | |
29627 | _swigt__p_wxDataObjectComposite, | |
29628 | _swigt__p_wxFileConfig, | |
29629 | _swigt__p_wxSystemSettings, | |
29630 | _swigt__p_wxVideoMode, | |
29631 | _swigt__p_wxPyDataObjectSimple, | |
29632 | _swigt__p_wxDataObjectSimple, | |
29633 | _swigt__p_wxEvtHandler, | |
29634 | _swigt__p_wxRect, | |
29635 | _swigt__p_char, | |
29636 | _swigt__p_wxSingleInstanceChecker, | |
29637 | _swigt__p_wxFileTypeInfo, | |
29638 | _swigt__p_wxFrame, | |
29639 | _swigt__p_wxTimer, | |
29640 | _swigt__p_wxMimeTypesManager, | |
29641 | _swigt__p_wxPyArtProvider, | |
29642 | _swigt__p_wxPyTipProvider, | |
29643 | _swigt__p_wxTipProvider, | |
29644 | _swigt__p_wxJoystick, | |
29645 | _swigt__p_wxSystemOptions, | |
29646 | _swigt__p_wxPoint, | |
29647 | _swigt__p_wxJoystickEvent, | |
29648 | _swigt__p_wxCursor, | |
29649 | _swigt__p_wxObject, | |
29650 | _swigt__p_wxOutputStream, | |
29651 | _swigt__p_wxDateTime, | |
29652 | _swigt__p_wxPyDropSource, | |
29653 | _swigt__p_wxWindow, | |
29654 | _swigt__p_wxString, | |
29655 | _swigt__p_wxPyProcess, | |
29656 | _swigt__p_wxBitmap, | |
29657 | _swigt__p_wxConfig, | |
29658 | _swigt__p_wxChar, | |
29659 | _swigt__p_wxBusyInfo, | |
29660 | _swigt__p_wxPyDropTarget, | |
29661 | _swigt__p_wxPyTextDropTarget, | |
29662 | _swigt__p_wxPyFileDropTarget, | |
29663 | _swigt__p_wxProcessEvent, | |
29664 | _swigt__p_wxPyLog, | |
29665 | _swigt__p_wxLogNull, | |
29666 | _swigt__p_wxColour, | |
d55e5bfc RD |
29667 | _swigt__p_wxConfigPathChanger, |
29668 | _swigt__p_wxPyTimer, | |
29669 | _swigt__p_wxDateSpan, | |
29670 | 0 | |
29671 | }; | |
29672 | ||
29673 | ||
29674 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
29675 | ||
29676 | static swig_const_info swig_const_table[] = { | |
29677 | { SWIG_PY_POINTER, (char*)"TRACE_MemAlloc", 0, 0, (void *)"memalloc", &SWIGTYPE_p_char}, | |
29678 | { SWIG_PY_POINTER, (char*)"TRACE_Messages", 0, 0, (void *)"messages", &SWIGTYPE_p_char}, | |
29679 | { SWIG_PY_POINTER, (char*)"TRACE_ResAlloc", 0, 0, (void *)"resalloc", &SWIGTYPE_p_char}, | |
29680 | { SWIG_PY_POINTER, (char*)"TRACE_RefCount", 0, 0, (void *)"refcount", &SWIGTYPE_p_char}, | |
29681 | { SWIG_PY_POINTER, (char*)"TRACE_OleCalls", 0, 0, (void *)"ole", &SWIGTYPE_p_char}, | |
29682 | {0}}; | |
29683 | ||
29684 | #ifdef __cplusplus | |
29685 | } | |
29686 | #endif | |
29687 | ||
29688 | #ifdef __cplusplus | |
29689 | extern "C" | |
29690 | #endif | |
29691 | SWIGEXPORT(void) SWIG_init(void) { | |
29692 | static PyObject *SWIG_globals = 0; | |
29693 | static int typeinit = 0; | |
29694 | PyObject *m, *d; | |
29695 | int i; | |
29696 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
29697 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
29698 | d = PyModule_GetDict(m); | |
29699 | ||
29700 | if (!typeinit) { | |
29701 | for (i = 0; swig_types_initial[i]; i++) { | |
29702 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
29703 | } | |
29704 | typeinit = 1; | |
29705 | } | |
29706 | SWIG_InstallConstants(d,swig_const_table); | |
29707 | ||
29708 | PyDict_SetItemString(d,"SYS_OEM_FIXED_FONT", SWIG_FromInt((int)wxSYS_OEM_FIXED_FONT)); | |
29709 | PyDict_SetItemString(d,"SYS_ANSI_FIXED_FONT", SWIG_FromInt((int)wxSYS_ANSI_FIXED_FONT)); | |
29710 | PyDict_SetItemString(d,"SYS_ANSI_VAR_FONT", SWIG_FromInt((int)wxSYS_ANSI_VAR_FONT)); | |
29711 | PyDict_SetItemString(d,"SYS_SYSTEM_FONT", SWIG_FromInt((int)wxSYS_SYSTEM_FONT)); | |
29712 | PyDict_SetItemString(d,"SYS_DEVICE_DEFAULT_FONT", SWIG_FromInt((int)wxSYS_DEVICE_DEFAULT_FONT)); | |
29713 | PyDict_SetItemString(d,"SYS_DEFAULT_PALETTE", SWIG_FromInt((int)wxSYS_DEFAULT_PALETTE)); | |
29714 | PyDict_SetItemString(d,"SYS_SYSTEM_FIXED_FONT", SWIG_FromInt((int)wxSYS_SYSTEM_FIXED_FONT)); | |
29715 | PyDict_SetItemString(d,"SYS_DEFAULT_GUI_FONT", SWIG_FromInt((int)wxSYS_DEFAULT_GUI_FONT)); | |
29716 | PyDict_SetItemString(d,"SYS_ICONTITLE_FONT", SWIG_FromInt((int)wxSYS_ICONTITLE_FONT)); | |
29717 | PyDict_SetItemString(d,"SYS_COLOUR_SCROLLBAR", SWIG_FromInt((int)wxSYS_COLOUR_SCROLLBAR)); | |
29718 | PyDict_SetItemString(d,"SYS_COLOUR_BACKGROUND", SWIG_FromInt((int)wxSYS_COLOUR_BACKGROUND)); | |
29719 | PyDict_SetItemString(d,"SYS_COLOUR_DESKTOP", SWIG_FromInt((int)wxSYS_COLOUR_DESKTOP)); | |
29720 | PyDict_SetItemString(d,"SYS_COLOUR_ACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_ACTIVECAPTION)); | |
29721 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVECAPTION)); | |
29722 | PyDict_SetItemString(d,"SYS_COLOUR_MENU", SWIG_FromInt((int)wxSYS_COLOUR_MENU)); | |
29723 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOW", SWIG_FromInt((int)wxSYS_COLOUR_WINDOW)); | |
29724 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOWFRAME", SWIG_FromInt((int)wxSYS_COLOUR_WINDOWFRAME)); | |
29725 | PyDict_SetItemString(d,"SYS_COLOUR_MENUTEXT", SWIG_FromInt((int)wxSYS_COLOUR_MENUTEXT)); | |
29726 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOWTEXT", SWIG_FromInt((int)wxSYS_COLOUR_WINDOWTEXT)); | |
29727 | PyDict_SetItemString(d,"SYS_COLOUR_CAPTIONTEXT", SWIG_FromInt((int)wxSYS_COLOUR_CAPTIONTEXT)); | |
29728 | PyDict_SetItemString(d,"SYS_COLOUR_ACTIVEBORDER", SWIG_FromInt((int)wxSYS_COLOUR_ACTIVEBORDER)); | |
29729 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVEBORDER", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVEBORDER)); | |
29730 | PyDict_SetItemString(d,"SYS_COLOUR_APPWORKSPACE", SWIG_FromInt((int)wxSYS_COLOUR_APPWORKSPACE)); | |
29731 | PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_HIGHLIGHT)); | |
29732 | PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHTTEXT", SWIG_FromInt((int)wxSYS_COLOUR_HIGHLIGHTTEXT)); | |
29733 | PyDict_SetItemString(d,"SYS_COLOUR_BTNFACE", SWIG_FromInt((int)wxSYS_COLOUR_BTNFACE)); | |
29734 | PyDict_SetItemString(d,"SYS_COLOUR_3DFACE", SWIG_FromInt((int)wxSYS_COLOUR_3DFACE)); | |
29735 | PyDict_SetItemString(d,"SYS_COLOUR_BTNSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_BTNSHADOW)); | |
29736 | PyDict_SetItemString(d,"SYS_COLOUR_3DSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_3DSHADOW)); | |
29737 | PyDict_SetItemString(d,"SYS_COLOUR_GRAYTEXT", SWIG_FromInt((int)wxSYS_COLOUR_GRAYTEXT)); | |
29738 | PyDict_SetItemString(d,"SYS_COLOUR_BTNTEXT", SWIG_FromInt((int)wxSYS_COLOUR_BTNTEXT)); | |
29739 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTIONTEXT", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVECAPTIONTEXT)); | |
29740 | PyDict_SetItemString(d,"SYS_COLOUR_BTNHIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_BTNHIGHLIGHT)); | |
29741 | PyDict_SetItemString(d,"SYS_COLOUR_BTNHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_BTNHILIGHT)); | |
29742 | PyDict_SetItemString(d,"SYS_COLOUR_3DHIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DHIGHLIGHT)); | |
29743 | PyDict_SetItemString(d,"SYS_COLOUR_3DHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DHILIGHT)); | |
29744 | PyDict_SetItemString(d,"SYS_COLOUR_3DDKSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_3DDKSHADOW)); | |
29745 | PyDict_SetItemString(d,"SYS_COLOUR_3DLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DLIGHT)); | |
29746 | PyDict_SetItemString(d,"SYS_COLOUR_INFOTEXT", SWIG_FromInt((int)wxSYS_COLOUR_INFOTEXT)); | |
29747 | PyDict_SetItemString(d,"SYS_COLOUR_INFOBK", SWIG_FromInt((int)wxSYS_COLOUR_INFOBK)); | |
29748 | PyDict_SetItemString(d,"SYS_COLOUR_LISTBOX", SWIG_FromInt((int)wxSYS_COLOUR_LISTBOX)); | |
29749 | PyDict_SetItemString(d,"SYS_COLOUR_HOTLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_HOTLIGHT)); | |
29750 | PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_GRADIENTACTIVECAPTION)); | |
29751 | PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTINACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_GRADIENTINACTIVECAPTION)); | |
29752 | PyDict_SetItemString(d,"SYS_COLOUR_MENUHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_MENUHILIGHT)); | |
29753 | PyDict_SetItemString(d,"SYS_COLOUR_MENUBAR", SWIG_FromInt((int)wxSYS_COLOUR_MENUBAR)); | |
29754 | PyDict_SetItemString(d,"SYS_COLOUR_MAX", SWIG_FromInt((int)wxSYS_COLOUR_MAX)); | |
29755 | PyDict_SetItemString(d,"SYS_MOUSE_BUTTONS", SWIG_FromInt((int)wxSYS_MOUSE_BUTTONS)); | |
29756 | PyDict_SetItemString(d,"SYS_BORDER_X", SWIG_FromInt((int)wxSYS_BORDER_X)); | |
29757 | PyDict_SetItemString(d,"SYS_BORDER_Y", SWIG_FromInt((int)wxSYS_BORDER_Y)); | |
29758 | PyDict_SetItemString(d,"SYS_CURSOR_X", SWIG_FromInt((int)wxSYS_CURSOR_X)); | |
29759 | PyDict_SetItemString(d,"SYS_CURSOR_Y", SWIG_FromInt((int)wxSYS_CURSOR_Y)); | |
29760 | PyDict_SetItemString(d,"SYS_DCLICK_X", SWIG_FromInt((int)wxSYS_DCLICK_X)); | |
29761 | PyDict_SetItemString(d,"SYS_DCLICK_Y", SWIG_FromInt((int)wxSYS_DCLICK_Y)); | |
29762 | PyDict_SetItemString(d,"SYS_DRAG_X", SWIG_FromInt((int)wxSYS_DRAG_X)); | |
29763 | PyDict_SetItemString(d,"SYS_DRAG_Y", SWIG_FromInt((int)wxSYS_DRAG_Y)); | |
29764 | PyDict_SetItemString(d,"SYS_EDGE_X", SWIG_FromInt((int)wxSYS_EDGE_X)); | |
29765 | PyDict_SetItemString(d,"SYS_EDGE_Y", SWIG_FromInt((int)wxSYS_EDGE_Y)); | |
29766 | PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_X", SWIG_FromInt((int)wxSYS_HSCROLL_ARROW_X)); | |
29767 | PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_Y", SWIG_FromInt((int)wxSYS_HSCROLL_ARROW_Y)); | |
29768 | PyDict_SetItemString(d,"SYS_HTHUMB_X", SWIG_FromInt((int)wxSYS_HTHUMB_X)); | |
29769 | PyDict_SetItemString(d,"SYS_ICON_X", SWIG_FromInt((int)wxSYS_ICON_X)); | |
29770 | PyDict_SetItemString(d,"SYS_ICON_Y", SWIG_FromInt((int)wxSYS_ICON_Y)); | |
29771 | PyDict_SetItemString(d,"SYS_ICONSPACING_X", SWIG_FromInt((int)wxSYS_ICONSPACING_X)); | |
29772 | PyDict_SetItemString(d,"SYS_ICONSPACING_Y", SWIG_FromInt((int)wxSYS_ICONSPACING_Y)); | |
29773 | PyDict_SetItemString(d,"SYS_WINDOWMIN_X", SWIG_FromInt((int)wxSYS_WINDOWMIN_X)); | |
29774 | PyDict_SetItemString(d,"SYS_WINDOWMIN_Y", SWIG_FromInt((int)wxSYS_WINDOWMIN_Y)); | |
29775 | PyDict_SetItemString(d,"SYS_SCREEN_X", SWIG_FromInt((int)wxSYS_SCREEN_X)); | |
29776 | PyDict_SetItemString(d,"SYS_SCREEN_Y", SWIG_FromInt((int)wxSYS_SCREEN_Y)); | |
29777 | PyDict_SetItemString(d,"SYS_FRAMESIZE_X", SWIG_FromInt((int)wxSYS_FRAMESIZE_X)); | |
29778 | PyDict_SetItemString(d,"SYS_FRAMESIZE_Y", SWIG_FromInt((int)wxSYS_FRAMESIZE_Y)); | |
29779 | PyDict_SetItemString(d,"SYS_SMALLICON_X", SWIG_FromInt((int)wxSYS_SMALLICON_X)); | |
29780 | PyDict_SetItemString(d,"SYS_SMALLICON_Y", SWIG_FromInt((int)wxSYS_SMALLICON_Y)); | |
29781 | PyDict_SetItemString(d,"SYS_HSCROLL_Y", SWIG_FromInt((int)wxSYS_HSCROLL_Y)); | |
29782 | PyDict_SetItemString(d,"SYS_VSCROLL_X", SWIG_FromInt((int)wxSYS_VSCROLL_X)); | |
29783 | PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_X", SWIG_FromInt((int)wxSYS_VSCROLL_ARROW_X)); | |
29784 | PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_Y", SWIG_FromInt((int)wxSYS_VSCROLL_ARROW_Y)); | |
29785 | PyDict_SetItemString(d,"SYS_VTHUMB_Y", SWIG_FromInt((int)wxSYS_VTHUMB_Y)); | |
29786 | PyDict_SetItemString(d,"SYS_CAPTION_Y", SWIG_FromInt((int)wxSYS_CAPTION_Y)); | |
29787 | PyDict_SetItemString(d,"SYS_MENU_Y", SWIG_FromInt((int)wxSYS_MENU_Y)); | |
29788 | PyDict_SetItemString(d,"SYS_NETWORK_PRESENT", SWIG_FromInt((int)wxSYS_NETWORK_PRESENT)); | |
29789 | PyDict_SetItemString(d,"SYS_PENWINDOWS_PRESENT", SWIG_FromInt((int)wxSYS_PENWINDOWS_PRESENT)); | |
29790 | PyDict_SetItemString(d,"SYS_SHOW_SOUNDS", SWIG_FromInt((int)wxSYS_SHOW_SOUNDS)); | |
29791 | PyDict_SetItemString(d,"SYS_SWAP_BUTTONS", SWIG_FromInt((int)wxSYS_SWAP_BUTTONS)); | |
29792 | PyDict_SetItemString(d,"SYS_CAN_DRAW_FRAME_DECORATIONS", SWIG_FromInt((int)wxSYS_CAN_DRAW_FRAME_DECORATIONS)); | |
29793 | PyDict_SetItemString(d,"SYS_CAN_ICONIZE_FRAME", SWIG_FromInt((int)wxSYS_CAN_ICONIZE_FRAME)); | |
29794 | PyDict_SetItemString(d,"SYS_SCREEN_NONE", SWIG_FromInt((int)wxSYS_SCREEN_NONE)); | |
29795 | PyDict_SetItemString(d,"SYS_SCREEN_TINY", SWIG_FromInt((int)wxSYS_SCREEN_TINY)); | |
29796 | PyDict_SetItemString(d,"SYS_SCREEN_PDA", SWIG_FromInt((int)wxSYS_SCREEN_PDA)); | |
29797 | PyDict_SetItemString(d,"SYS_SCREEN_SMALL", SWIG_FromInt((int)wxSYS_SCREEN_SMALL)); | |
29798 | PyDict_SetItemString(d,"SYS_SCREEN_DESKTOP", SWIG_FromInt((int)wxSYS_SCREEN_DESKTOP)); | |
29799 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); | |
29800 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set); | |
29801 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set); | |
29802 | SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set); | |
29803 | PyDict_SetItemString(d,"SHUTDOWN_POWEROFF", SWIG_FromInt((int)wxSHUTDOWN_POWEROFF)); | |
29804 | PyDict_SetItemString(d,"SHUTDOWN_REBOOT", SWIG_FromInt((int)wxSHUTDOWN_REBOOT)); | |
29805 | PyDict_SetItemString(d,"TIMER_CONTINUOUS", SWIG_FromInt((int)wxTIMER_CONTINUOUS)); | |
29806 | PyDict_SetItemString(d,"TIMER_ONE_SHOT", SWIG_FromInt((int)wxTIMER_ONE_SHOT)); | |
29807 | PyDict_SetItemString(d, "wxEVT_TIMER", PyInt_FromLong(wxEVT_TIMER)); | |
1a6bba1e RD |
29808 | |
29809 | wxPyPtrTypeMap_Add("wxTimer", "wxPyTimer"); | |
29810 | ||
d55e5bfc RD |
29811 | PyDict_SetItemString(d,"LOG_FatalError", SWIG_FromInt((int)wxLOG_FatalError)); |
29812 | PyDict_SetItemString(d,"LOG_Error", SWIG_FromInt((int)wxLOG_Error)); | |
29813 | PyDict_SetItemString(d,"LOG_Warning", SWIG_FromInt((int)wxLOG_Warning)); | |
29814 | PyDict_SetItemString(d,"LOG_Message", SWIG_FromInt((int)wxLOG_Message)); | |
29815 | PyDict_SetItemString(d,"LOG_Status", SWIG_FromInt((int)wxLOG_Status)); | |
29816 | PyDict_SetItemString(d,"LOG_Info", SWIG_FromInt((int)wxLOG_Info)); | |
29817 | PyDict_SetItemString(d,"LOG_Debug", SWIG_FromInt((int)wxLOG_Debug)); | |
29818 | PyDict_SetItemString(d,"LOG_Trace", SWIG_FromInt((int)wxLOG_Trace)); | |
29819 | PyDict_SetItemString(d,"LOG_Progress", SWIG_FromInt((int)wxLOG_Progress)); | |
29820 | PyDict_SetItemString(d,"LOG_User", SWIG_FromInt((int)wxLOG_User)); | |
29821 | PyDict_SetItemString(d,"LOG_Max", SWIG_FromInt((int)wxLOG_Max)); | |
29822 | PyDict_SetItemString(d,"TRACE_MemAlloc", SWIG_FromCharPtr("memalloc")); | |
29823 | PyDict_SetItemString(d,"TRACE_Messages", SWIG_FromCharPtr("messages")); | |
29824 | PyDict_SetItemString(d,"TRACE_ResAlloc", SWIG_FromCharPtr("resalloc")); | |
29825 | PyDict_SetItemString(d,"TRACE_RefCount", SWIG_FromCharPtr("refcount")); | |
29826 | PyDict_SetItemString(d,"TRACE_OleCalls", SWIG_FromCharPtr("ole")); | |
29827 | PyDict_SetItemString(d,"TraceMemAlloc", SWIG_FromInt((int)0x0001)); | |
29828 | PyDict_SetItemString(d,"TraceMessages", SWIG_FromInt((int)0x0002)); | |
29829 | PyDict_SetItemString(d,"TraceResAlloc", SWIG_FromInt((int)0x0004)); | |
29830 | PyDict_SetItemString(d,"TraceRefCount", SWIG_FromInt((int)0x0008)); | |
29831 | PyDict_SetItemString(d,"TraceOleCalls", SWIG_FromInt((int)0x0100)); | |
29832 | PyDict_SetItemString(d,"PROCESS_DEFAULT", SWIG_FromInt((int)wxPROCESS_DEFAULT)); | |
29833 | PyDict_SetItemString(d,"PROCESS_REDIRECT", SWIG_FromInt((int)wxPROCESS_REDIRECT)); | |
29834 | PyDict_SetItemString(d,"KILL_OK", SWIG_FromInt((int)wxKILL_OK)); | |
29835 | PyDict_SetItemString(d,"KILL_BAD_SIGNAL", SWIG_FromInt((int)wxKILL_BAD_SIGNAL)); | |
29836 | PyDict_SetItemString(d,"KILL_ACCESS_DENIED", SWIG_FromInt((int)wxKILL_ACCESS_DENIED)); | |
29837 | PyDict_SetItemString(d,"KILL_NO_PROCESS", SWIG_FromInt((int)wxKILL_NO_PROCESS)); | |
29838 | PyDict_SetItemString(d,"KILL_ERROR", SWIG_FromInt((int)wxKILL_ERROR)); | |
29839 | PyDict_SetItemString(d,"SIGNONE", SWIG_FromInt((int)wxSIGNONE)); | |
29840 | PyDict_SetItemString(d,"SIGHUP", SWIG_FromInt((int)wxSIGHUP)); | |
29841 | PyDict_SetItemString(d,"SIGINT", SWIG_FromInt((int)wxSIGINT)); | |
29842 | PyDict_SetItemString(d,"SIGQUIT", SWIG_FromInt((int)wxSIGQUIT)); | |
29843 | PyDict_SetItemString(d,"SIGILL", SWIG_FromInt((int)wxSIGILL)); | |
29844 | PyDict_SetItemString(d,"SIGTRAP", SWIG_FromInt((int)wxSIGTRAP)); | |
29845 | PyDict_SetItemString(d,"SIGABRT", SWIG_FromInt((int)wxSIGABRT)); | |
29846 | PyDict_SetItemString(d,"SIGIOT", SWIG_FromInt((int)wxSIGIOT)); | |
29847 | PyDict_SetItemString(d,"SIGEMT", SWIG_FromInt((int)wxSIGEMT)); | |
29848 | PyDict_SetItemString(d,"SIGFPE", SWIG_FromInt((int)wxSIGFPE)); | |
29849 | PyDict_SetItemString(d,"SIGKILL", SWIG_FromInt((int)wxSIGKILL)); | |
29850 | PyDict_SetItemString(d,"SIGBUS", SWIG_FromInt((int)wxSIGBUS)); | |
29851 | PyDict_SetItemString(d,"SIGSEGV", SWIG_FromInt((int)wxSIGSEGV)); | |
29852 | PyDict_SetItemString(d,"SIGSYS", SWIG_FromInt((int)wxSIGSYS)); | |
29853 | PyDict_SetItemString(d,"SIGPIPE", SWIG_FromInt((int)wxSIGPIPE)); | |
29854 | PyDict_SetItemString(d,"SIGALRM", SWIG_FromInt((int)wxSIGALRM)); | |
29855 | PyDict_SetItemString(d,"SIGTERM", SWIG_FromInt((int)wxSIGTERM)); | |
29856 | PyDict_SetItemString(d, "wxEVT_END_PROCESS", PyInt_FromLong(wxEVT_END_PROCESS)); | |
29857 | PyDict_SetItemString(d,"EXEC_ASYNC", SWIG_FromInt((int)wxEXEC_ASYNC)); | |
29858 | PyDict_SetItemString(d,"EXEC_SYNC", SWIG_FromInt((int)wxEXEC_SYNC)); | |
29859 | PyDict_SetItemString(d,"EXEC_NOHIDE", SWIG_FromInt((int)wxEXEC_NOHIDE)); | |
29860 | PyDict_SetItemString(d,"EXEC_MAKE_GROUP_LEADER", SWIG_FromInt((int)wxEXEC_MAKE_GROUP_LEADER)); | |
29861 | ||
29862 | wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess"); | |
29863 | ||
29864 | PyDict_SetItemString(d,"JOYSTICK1", SWIG_FromInt((int)wxJOYSTICK1)); | |
29865 | PyDict_SetItemString(d,"JOYSTICK2", SWIG_FromInt((int)wxJOYSTICK2)); | |
29866 | PyDict_SetItemString(d,"JOY_BUTTON_ANY", SWIG_FromInt((int)wxJOY_BUTTON_ANY)); | |
29867 | PyDict_SetItemString(d,"JOY_BUTTON1", SWIG_FromInt((int)wxJOY_BUTTON1)); | |
29868 | PyDict_SetItemString(d,"JOY_BUTTON2", SWIG_FromInt((int)wxJOY_BUTTON2)); | |
29869 | PyDict_SetItemString(d,"JOY_BUTTON3", SWIG_FromInt((int)wxJOY_BUTTON3)); | |
29870 | PyDict_SetItemString(d,"JOY_BUTTON4", SWIG_FromInt((int)wxJOY_BUTTON4)); | |
29871 | PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong(wxEVT_JOY_BUTTON_DOWN)); | |
29872 | PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_UP", PyInt_FromLong(wxEVT_JOY_BUTTON_UP)); | |
29873 | PyDict_SetItemString(d, "wxEVT_JOY_MOVE", PyInt_FromLong(wxEVT_JOY_MOVE)); | |
29874 | PyDict_SetItemString(d, "wxEVT_JOY_ZMOVE", PyInt_FromLong(wxEVT_JOY_ZMOVE)); | |
29875 | PyDict_SetItemString(d,"SOUND_SYNC", SWIG_FromInt((int)wxSOUND_SYNC)); | |
29876 | PyDict_SetItemString(d,"SOUND_ASYNC", SWIG_FromInt((int)wxSOUND_ASYNC)); | |
29877 | PyDict_SetItemString(d,"SOUND_LOOP", SWIG_FromInt((int)wxSOUND_LOOP)); | |
29878 | PyDict_SetItemString(d,"MAILCAP_STANDARD", SWIG_FromInt((int)wxMAILCAP_STANDARD)); | |
29879 | PyDict_SetItemString(d,"MAILCAP_NETSCAPE", SWIG_FromInt((int)wxMAILCAP_NETSCAPE)); | |
29880 | PyDict_SetItemString(d,"MAILCAP_KDE", SWIG_FromInt((int)wxMAILCAP_KDE)); | |
29881 | PyDict_SetItemString(d,"MAILCAP_GNOME", SWIG_FromInt((int)wxMAILCAP_GNOME)); | |
29882 | PyDict_SetItemString(d,"MAILCAP_ALL", SWIG_FromInt((int)wxMAILCAP_ALL)); | |
29883 | SWIG_addvarlink(SWIG_globals,(char*)"TheMimeTypesManager",_wrap_TheMimeTypesManager_get, _wrap_TheMimeTypesManager_set); | |
29884 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TOOLBAR",_wrap_ART_TOOLBAR_get, _wrap_ART_TOOLBAR_set); | |
29885 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MENU",_wrap_ART_MENU_get, _wrap_ART_MENU_set); | |
29886 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FRAME_ICON",_wrap_ART_FRAME_ICON_get, _wrap_ART_FRAME_ICON_set); | |
29887 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CMN_DIALOG",_wrap_ART_CMN_DIALOG_get, _wrap_ART_CMN_DIALOG_set); | |
29888 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BROWSER",_wrap_ART_HELP_BROWSER_get, _wrap_ART_HELP_BROWSER_set); | |
29889 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MESSAGE_BOX",_wrap_ART_MESSAGE_BOX_get, _wrap_ART_MESSAGE_BOX_set); | |
29890 | SWIG_addvarlink(SWIG_globals,(char*)"ART_OTHER",_wrap_ART_OTHER_get, _wrap_ART_OTHER_set); | |
29891 | SWIG_addvarlink(SWIG_globals,(char*)"ART_ADD_BOOKMARK",_wrap_ART_ADD_BOOKMARK_get, _wrap_ART_ADD_BOOKMARK_set); | |
29892 | SWIG_addvarlink(SWIG_globals,(char*)"ART_DEL_BOOKMARK",_wrap_ART_DEL_BOOKMARK_get, _wrap_ART_DEL_BOOKMARK_set); | |
29893 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SIDE_PANEL",_wrap_ART_HELP_SIDE_PANEL_get, _wrap_ART_HELP_SIDE_PANEL_set); | |
29894 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SETTINGS",_wrap_ART_HELP_SETTINGS_get, _wrap_ART_HELP_SETTINGS_set); | |
29895 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BOOK",_wrap_ART_HELP_BOOK_get, _wrap_ART_HELP_BOOK_set); | |
29896 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_FOLDER",_wrap_ART_HELP_FOLDER_get, _wrap_ART_HELP_FOLDER_set); | |
29897 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_PAGE",_wrap_ART_HELP_PAGE_get, _wrap_ART_HELP_PAGE_set); | |
29898 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_BACK",_wrap_ART_GO_BACK_get, _wrap_ART_GO_BACK_set); | |
29899 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_FORWARD",_wrap_ART_GO_FORWARD_get, _wrap_ART_GO_FORWARD_set); | |
29900 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_UP",_wrap_ART_GO_UP_get, _wrap_ART_GO_UP_set); | |
29901 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DOWN",_wrap_ART_GO_DOWN_get, _wrap_ART_GO_DOWN_set); | |
29902 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_TO_PARENT",_wrap_ART_GO_TO_PARENT_get, _wrap_ART_GO_TO_PARENT_set); | |
29903 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_HOME",_wrap_ART_GO_HOME_get, _wrap_ART_GO_HOME_set); | |
29904 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_OPEN",_wrap_ART_FILE_OPEN_get, _wrap_ART_FILE_OPEN_set); | |
29905 | SWIG_addvarlink(SWIG_globals,(char*)"ART_PRINT",_wrap_ART_PRINT_get, _wrap_ART_PRINT_set); | |
29906 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP",_wrap_ART_HELP_get, _wrap_ART_HELP_set); | |
29907 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TIP",_wrap_ART_TIP_get, _wrap_ART_TIP_set); | |
29908 | SWIG_addvarlink(SWIG_globals,(char*)"ART_REPORT_VIEW",_wrap_ART_REPORT_VIEW_get, _wrap_ART_REPORT_VIEW_set); | |
29909 | SWIG_addvarlink(SWIG_globals,(char*)"ART_LIST_VIEW",_wrap_ART_LIST_VIEW_get, _wrap_ART_LIST_VIEW_set); | |
29910 | SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW_DIR",_wrap_ART_NEW_DIR_get, _wrap_ART_NEW_DIR_set); | |
29911 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER",_wrap_ART_FOLDER_get, _wrap_ART_FOLDER_set); | |
29912 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DIR_UP",_wrap_ART_GO_DIR_UP_get, _wrap_ART_GO_DIR_UP_set); | |
29913 | SWIG_addvarlink(SWIG_globals,(char*)"ART_EXECUTABLE_FILE",_wrap_ART_EXECUTABLE_FILE_get, _wrap_ART_EXECUTABLE_FILE_set); | |
29914 | SWIG_addvarlink(SWIG_globals,(char*)"ART_NORMAL_FILE",_wrap_ART_NORMAL_FILE_get, _wrap_ART_NORMAL_FILE_set); | |
29915 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TICK_MARK",_wrap_ART_TICK_MARK_get, _wrap_ART_TICK_MARK_set); | |
29916 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CROSS_MARK",_wrap_ART_CROSS_MARK_get, _wrap_ART_CROSS_MARK_set); | |
29917 | SWIG_addvarlink(SWIG_globals,(char*)"ART_ERROR",_wrap_ART_ERROR_get, _wrap_ART_ERROR_set); | |
29918 | SWIG_addvarlink(SWIG_globals,(char*)"ART_QUESTION",_wrap_ART_QUESTION_get, _wrap_ART_QUESTION_set); | |
29919 | SWIG_addvarlink(SWIG_globals,(char*)"ART_WARNING",_wrap_ART_WARNING_get, _wrap_ART_WARNING_set); | |
29920 | SWIG_addvarlink(SWIG_globals,(char*)"ART_INFORMATION",_wrap_ART_INFORMATION_get, _wrap_ART_INFORMATION_set); | |
29921 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MISSING_IMAGE",_wrap_ART_MISSING_IMAGE_get, _wrap_ART_MISSING_IMAGE_set); | |
29922 | ||
29923 | wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider"); | |
29924 | ||
29925 | PyDict_SetItemString(d,"CONFIG_USE_LOCAL_FILE", SWIG_FromInt((int)wxCONFIG_USE_LOCAL_FILE)); | |
29926 | PyDict_SetItemString(d,"CONFIG_USE_GLOBAL_FILE", SWIG_FromInt((int)wxCONFIG_USE_GLOBAL_FILE)); | |
29927 | PyDict_SetItemString(d,"CONFIG_USE_RELATIVE_PATH", SWIG_FromInt((int)wxCONFIG_USE_RELATIVE_PATH)); | |
29928 | PyDict_SetItemString(d,"CONFIG_USE_NO_ESCAPE_CHARACTERS", SWIG_FromInt((int)wxCONFIG_USE_NO_ESCAPE_CHARACTERS)); | |
29929 | PyDict_SetItemString(d,"ConfigBase_Type_Unknown", SWIG_FromInt((int)wxConfigBase::Type_Unknown)); | |
29930 | PyDict_SetItemString(d,"ConfigBase_Type_String", SWIG_FromInt((int)wxConfigBase::Type_String)); | |
29931 | PyDict_SetItemString(d,"ConfigBase_Type_Boolean", SWIG_FromInt((int)wxConfigBase::Type_Boolean)); | |
29932 | PyDict_SetItemString(d,"ConfigBase_Type_Integer", SWIG_FromInt((int)wxConfigBase::Type_Integer)); | |
29933 | PyDict_SetItemString(d,"ConfigBase_Type_Float", SWIG_FromInt((int)wxConfigBase::Type_Float)); | |
29934 | SWIG_addvarlink(SWIG_globals,(char*)"DateFormatStr",_wrap_DateFormatStr_get, _wrap_DateFormatStr_set); | |
29935 | SWIG_addvarlink(SWIG_globals,(char*)"TimeSpanFormatStr",_wrap_TimeSpanFormatStr_get, _wrap_TimeSpanFormatStr_set); | |
29936 | PyDict_SetItemString(d,"DateTime_Local", SWIG_FromInt((int)wxDateTime::Local)); | |
29937 | PyDict_SetItemString(d,"DateTime_GMT_12", SWIG_FromInt((int)wxDateTime::GMT_12)); | |
29938 | PyDict_SetItemString(d,"DateTime_GMT_11", SWIG_FromInt((int)wxDateTime::GMT_11)); | |
29939 | PyDict_SetItemString(d,"DateTime_GMT_10", SWIG_FromInt((int)wxDateTime::GMT_10)); | |
29940 | PyDict_SetItemString(d,"DateTime_GMT_9", SWIG_FromInt((int)wxDateTime::GMT_9)); | |
29941 | PyDict_SetItemString(d,"DateTime_GMT_8", SWIG_FromInt((int)wxDateTime::GMT_8)); | |
29942 | PyDict_SetItemString(d,"DateTime_GMT_7", SWIG_FromInt((int)wxDateTime::GMT_7)); | |
29943 | PyDict_SetItemString(d,"DateTime_GMT_6", SWIG_FromInt((int)wxDateTime::GMT_6)); | |
29944 | PyDict_SetItemString(d,"DateTime_GMT_5", SWIG_FromInt((int)wxDateTime::GMT_5)); | |
29945 | PyDict_SetItemString(d,"DateTime_GMT_4", SWIG_FromInt((int)wxDateTime::GMT_4)); | |
29946 | PyDict_SetItemString(d,"DateTime_GMT_3", SWIG_FromInt((int)wxDateTime::GMT_3)); | |
29947 | PyDict_SetItemString(d,"DateTime_GMT_2", SWIG_FromInt((int)wxDateTime::GMT_2)); | |
29948 | PyDict_SetItemString(d,"DateTime_GMT_1", SWIG_FromInt((int)wxDateTime::GMT_1)); | |
29949 | PyDict_SetItemString(d,"DateTime_GMT0", SWIG_FromInt((int)wxDateTime::GMT0)); | |
29950 | PyDict_SetItemString(d,"DateTime_GMT1", SWIG_FromInt((int)wxDateTime::GMT1)); | |
29951 | PyDict_SetItemString(d,"DateTime_GMT2", SWIG_FromInt((int)wxDateTime::GMT2)); | |
29952 | PyDict_SetItemString(d,"DateTime_GMT3", SWIG_FromInt((int)wxDateTime::GMT3)); | |
29953 | PyDict_SetItemString(d,"DateTime_GMT4", SWIG_FromInt((int)wxDateTime::GMT4)); | |
29954 | PyDict_SetItemString(d,"DateTime_GMT5", SWIG_FromInt((int)wxDateTime::GMT5)); | |
29955 | PyDict_SetItemString(d,"DateTime_GMT6", SWIG_FromInt((int)wxDateTime::GMT6)); | |
29956 | PyDict_SetItemString(d,"DateTime_GMT7", SWIG_FromInt((int)wxDateTime::GMT7)); | |
29957 | PyDict_SetItemString(d,"DateTime_GMT8", SWIG_FromInt((int)wxDateTime::GMT8)); | |
29958 | PyDict_SetItemString(d,"DateTime_GMT9", SWIG_FromInt((int)wxDateTime::GMT9)); | |
29959 | PyDict_SetItemString(d,"DateTime_GMT10", SWIG_FromInt((int)wxDateTime::GMT10)); | |
29960 | PyDict_SetItemString(d,"DateTime_GMT11", SWIG_FromInt((int)wxDateTime::GMT11)); | |
29961 | PyDict_SetItemString(d,"DateTime_GMT12", SWIG_FromInt((int)wxDateTime::GMT12)); | |
29962 | PyDict_SetItemString(d,"DateTime_WET", SWIG_FromInt((int)wxDateTime::WET)); | |
29963 | PyDict_SetItemString(d,"DateTime_WEST", SWIG_FromInt((int)wxDateTime::WEST)); | |
29964 | PyDict_SetItemString(d,"DateTime_CET", SWIG_FromInt((int)wxDateTime::CET)); | |
29965 | PyDict_SetItemString(d,"DateTime_CEST", SWIG_FromInt((int)wxDateTime::CEST)); | |
29966 | PyDict_SetItemString(d,"DateTime_EET", SWIG_FromInt((int)wxDateTime::EET)); | |
29967 | PyDict_SetItemString(d,"DateTime_EEST", SWIG_FromInt((int)wxDateTime::EEST)); | |
29968 | PyDict_SetItemString(d,"DateTime_MSK", SWIG_FromInt((int)wxDateTime::MSK)); | |
29969 | PyDict_SetItemString(d,"DateTime_MSD", SWIG_FromInt((int)wxDateTime::MSD)); | |
29970 | PyDict_SetItemString(d,"DateTime_AST", SWIG_FromInt((int)wxDateTime::AST)); | |
29971 | PyDict_SetItemString(d,"DateTime_ADT", SWIG_FromInt((int)wxDateTime::ADT)); | |
29972 | PyDict_SetItemString(d,"DateTime_EST", SWIG_FromInt((int)wxDateTime::EST)); | |
29973 | PyDict_SetItemString(d,"DateTime_EDT", SWIG_FromInt((int)wxDateTime::EDT)); | |
29974 | PyDict_SetItemString(d,"DateTime_CST", SWIG_FromInt((int)wxDateTime::CST)); | |
29975 | PyDict_SetItemString(d,"DateTime_CDT", SWIG_FromInt((int)wxDateTime::CDT)); | |
29976 | PyDict_SetItemString(d,"DateTime_MST", SWIG_FromInt((int)wxDateTime::MST)); | |
29977 | PyDict_SetItemString(d,"DateTime_MDT", SWIG_FromInt((int)wxDateTime::MDT)); | |
29978 | PyDict_SetItemString(d,"DateTime_PST", SWIG_FromInt((int)wxDateTime::PST)); | |
29979 | PyDict_SetItemString(d,"DateTime_PDT", SWIG_FromInt((int)wxDateTime::PDT)); | |
29980 | PyDict_SetItemString(d,"DateTime_HST", SWIG_FromInt((int)wxDateTime::HST)); | |
29981 | PyDict_SetItemString(d,"DateTime_AKST", SWIG_FromInt((int)wxDateTime::AKST)); | |
29982 | PyDict_SetItemString(d,"DateTime_AKDT", SWIG_FromInt((int)wxDateTime::AKDT)); | |
29983 | PyDict_SetItemString(d,"DateTime_A_WST", SWIG_FromInt((int)wxDateTime::A_WST)); | |
29984 | PyDict_SetItemString(d,"DateTime_A_CST", SWIG_FromInt((int)wxDateTime::A_CST)); | |
29985 | PyDict_SetItemString(d,"DateTime_A_EST", SWIG_FromInt((int)wxDateTime::A_EST)); | |
29986 | PyDict_SetItemString(d,"DateTime_A_ESST", SWIG_FromInt((int)wxDateTime::A_ESST)); | |
29987 | PyDict_SetItemString(d,"DateTime_UTC", SWIG_FromInt((int)wxDateTime::UTC)); | |
29988 | PyDict_SetItemString(d,"DateTime_Gregorian", SWIG_FromInt((int)wxDateTime::Gregorian)); | |
29989 | PyDict_SetItemString(d,"DateTime_Julian", SWIG_FromInt((int)wxDateTime::Julian)); | |
29990 | PyDict_SetItemString(d,"DateTime_Gr_Unknown", SWIG_FromInt((int)wxDateTime::Gr_Unknown)); | |
29991 | PyDict_SetItemString(d,"DateTime_Gr_Standard", SWIG_FromInt((int)wxDateTime::Gr_Standard)); | |
29992 | PyDict_SetItemString(d,"DateTime_Gr_Alaska", SWIG_FromInt((int)wxDateTime::Gr_Alaska)); | |
29993 | PyDict_SetItemString(d,"DateTime_Gr_Albania", SWIG_FromInt((int)wxDateTime::Gr_Albania)); | |
29994 | PyDict_SetItemString(d,"DateTime_Gr_Austria", SWIG_FromInt((int)wxDateTime::Gr_Austria)); | |
29995 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Brixen", SWIG_FromInt((int)wxDateTime::Gr_Austria_Brixen)); | |
29996 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Salzburg", SWIG_FromInt((int)wxDateTime::Gr_Austria_Salzburg)); | |
29997 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Tyrol", SWIG_FromInt((int)wxDateTime::Gr_Austria_Tyrol)); | |
29998 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Carinthia", SWIG_FromInt((int)wxDateTime::Gr_Austria_Carinthia)); | |
29999 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Styria", SWIG_FromInt((int)wxDateTime::Gr_Austria_Styria)); | |
30000 | PyDict_SetItemString(d,"DateTime_Gr_Belgium", SWIG_FromInt((int)wxDateTime::Gr_Belgium)); | |
30001 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria)); | |
30002 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_1", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_1)); | |
30003 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_2", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_2)); | |
30004 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_3", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_3)); | |
30005 | PyDict_SetItemString(d,"DateTime_Gr_Canada", SWIG_FromInt((int)wxDateTime::Gr_Canada)); | |
30006 | PyDict_SetItemString(d,"DateTime_Gr_China", SWIG_FromInt((int)wxDateTime::Gr_China)); | |
30007 | PyDict_SetItemString(d,"DateTime_Gr_China_1", SWIG_FromInt((int)wxDateTime::Gr_China_1)); | |
30008 | PyDict_SetItemString(d,"DateTime_Gr_China_2", SWIG_FromInt((int)wxDateTime::Gr_China_2)); | |
30009 | PyDict_SetItemString(d,"DateTime_Gr_Czechoslovakia", SWIG_FromInt((int)wxDateTime::Gr_Czechoslovakia)); | |
30010 | PyDict_SetItemString(d,"DateTime_Gr_Denmark", SWIG_FromInt((int)wxDateTime::Gr_Denmark)); | |
30011 | PyDict_SetItemString(d,"DateTime_Gr_Egypt", SWIG_FromInt((int)wxDateTime::Gr_Egypt)); | |
30012 | PyDict_SetItemString(d,"DateTime_Gr_Estonia", SWIG_FromInt((int)wxDateTime::Gr_Estonia)); | |
30013 | PyDict_SetItemString(d,"DateTime_Gr_Finland", SWIG_FromInt((int)wxDateTime::Gr_Finland)); | |
30014 | PyDict_SetItemString(d,"DateTime_Gr_France", SWIG_FromInt((int)wxDateTime::Gr_France)); | |
30015 | PyDict_SetItemString(d,"DateTime_Gr_France_Alsace", SWIG_FromInt((int)wxDateTime::Gr_France_Alsace)); | |
30016 | PyDict_SetItemString(d,"DateTime_Gr_France_Lorraine", SWIG_FromInt((int)wxDateTime::Gr_France_Lorraine)); | |
30017 | PyDict_SetItemString(d,"DateTime_Gr_France_Strasbourg", SWIG_FromInt((int)wxDateTime::Gr_France_Strasbourg)); | |
30018 | PyDict_SetItemString(d,"DateTime_Gr_Germany", SWIG_FromInt((int)wxDateTime::Gr_Germany)); | |
30019 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Catholic", SWIG_FromInt((int)wxDateTime::Gr_Germany_Catholic)); | |
30020 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Prussia", SWIG_FromInt((int)wxDateTime::Gr_Germany_Prussia)); | |
30021 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Protestant", SWIG_FromInt((int)wxDateTime::Gr_Germany_Protestant)); | |
30022 | PyDict_SetItemString(d,"DateTime_Gr_GreatBritain", SWIG_FromInt((int)wxDateTime::Gr_GreatBritain)); | |
30023 | PyDict_SetItemString(d,"DateTime_Gr_Greece", SWIG_FromInt((int)wxDateTime::Gr_Greece)); | |
30024 | PyDict_SetItemString(d,"DateTime_Gr_Hungary", SWIG_FromInt((int)wxDateTime::Gr_Hungary)); | |
30025 | PyDict_SetItemString(d,"DateTime_Gr_Ireland", SWIG_FromInt((int)wxDateTime::Gr_Ireland)); | |
30026 | PyDict_SetItemString(d,"DateTime_Gr_Italy", SWIG_FromInt((int)wxDateTime::Gr_Italy)); | |
30027 | PyDict_SetItemString(d,"DateTime_Gr_Japan", SWIG_FromInt((int)wxDateTime::Gr_Japan)); | |
30028 | PyDict_SetItemString(d,"DateTime_Gr_Japan_1", SWIG_FromInt((int)wxDateTime::Gr_Japan_1)); | |
30029 | PyDict_SetItemString(d,"DateTime_Gr_Japan_2", SWIG_FromInt((int)wxDateTime::Gr_Japan_2)); | |
30030 | PyDict_SetItemString(d,"DateTime_Gr_Japan_3", SWIG_FromInt((int)wxDateTime::Gr_Japan_3)); | |
30031 | PyDict_SetItemString(d,"DateTime_Gr_Latvia", SWIG_FromInt((int)wxDateTime::Gr_Latvia)); | |
30032 | PyDict_SetItemString(d,"DateTime_Gr_Lithuania", SWIG_FromInt((int)wxDateTime::Gr_Lithuania)); | |
30033 | PyDict_SetItemString(d,"DateTime_Gr_Luxemburg", SWIG_FromInt((int)wxDateTime::Gr_Luxemburg)); | |
30034 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands", SWIG_FromInt((int)wxDateTime::Gr_Netherlands)); | |
30035 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Groningen", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Groningen)); | |
30036 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Gelderland", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Gelderland)); | |
30037 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Utrecht", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Utrecht)); | |
30038 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Friesland", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Friesland)); | |
30039 | PyDict_SetItemString(d,"DateTime_Gr_Norway", SWIG_FromInt((int)wxDateTime::Gr_Norway)); | |
30040 | PyDict_SetItemString(d,"DateTime_Gr_Poland", SWIG_FromInt((int)wxDateTime::Gr_Poland)); | |
30041 | PyDict_SetItemString(d,"DateTime_Gr_Portugal", SWIG_FromInt((int)wxDateTime::Gr_Portugal)); | |
30042 | PyDict_SetItemString(d,"DateTime_Gr_Romania", SWIG_FromInt((int)wxDateTime::Gr_Romania)); | |
30043 | PyDict_SetItemString(d,"DateTime_Gr_Russia", SWIG_FromInt((int)wxDateTime::Gr_Russia)); | |
30044 | PyDict_SetItemString(d,"DateTime_Gr_Scotland", SWIG_FromInt((int)wxDateTime::Gr_Scotland)); | |
30045 | PyDict_SetItemString(d,"DateTime_Gr_Spain", SWIG_FromInt((int)wxDateTime::Gr_Spain)); | |
30046 | PyDict_SetItemString(d,"DateTime_Gr_Sweden", SWIG_FromInt((int)wxDateTime::Gr_Sweden)); | |
30047 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland", SWIG_FromInt((int)wxDateTime::Gr_Switzerland)); | |
30048 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Catholic", SWIG_FromInt((int)wxDateTime::Gr_Switzerland_Catholic)); | |
30049 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Protestant", SWIG_FromInt((int)wxDateTime::Gr_Switzerland_Protestant)); | |
30050 | PyDict_SetItemString(d,"DateTime_Gr_Turkey", SWIG_FromInt((int)wxDateTime::Gr_Turkey)); | |
30051 | PyDict_SetItemString(d,"DateTime_Gr_USA", SWIG_FromInt((int)wxDateTime::Gr_USA)); | |
30052 | PyDict_SetItemString(d,"DateTime_Gr_Wales", SWIG_FromInt((int)wxDateTime::Gr_Wales)); | |
30053 | PyDict_SetItemString(d,"DateTime_Gr_Yugoslavia", SWIG_FromInt((int)wxDateTime::Gr_Yugoslavia)); | |
30054 | PyDict_SetItemString(d,"DateTime_Country_Unknown", SWIG_FromInt((int)wxDateTime::Country_Unknown)); | |
30055 | PyDict_SetItemString(d,"DateTime_Country_Default", SWIG_FromInt((int)wxDateTime::Country_Default)); | |
30056 | PyDict_SetItemString(d,"DateTime_Country_WesternEurope_Start", SWIG_FromInt((int)wxDateTime::Country_WesternEurope_Start)); | |
30057 | PyDict_SetItemString(d,"DateTime_Country_EEC", SWIG_FromInt((int)wxDateTime::Country_EEC)); | |
30058 | PyDict_SetItemString(d,"DateTime_France", SWIG_FromInt((int)wxDateTime::France)); | |
30059 | PyDict_SetItemString(d,"DateTime_Germany", SWIG_FromInt((int)wxDateTime::Germany)); | |
30060 | PyDict_SetItemString(d,"DateTime_UK", SWIG_FromInt((int)wxDateTime::UK)); | |
30061 | PyDict_SetItemString(d,"DateTime_Country_WesternEurope_End", SWIG_FromInt((int)wxDateTime::Country_WesternEurope_End)); | |
30062 | PyDict_SetItemString(d,"DateTime_Russia", SWIG_FromInt((int)wxDateTime::Russia)); | |
30063 | PyDict_SetItemString(d,"DateTime_USA", SWIG_FromInt((int)wxDateTime::USA)); | |
30064 | PyDict_SetItemString(d,"DateTime_Jan", SWIG_FromInt((int)wxDateTime::Jan)); | |
30065 | PyDict_SetItemString(d,"DateTime_Feb", SWIG_FromInt((int)wxDateTime::Feb)); | |
30066 | PyDict_SetItemString(d,"DateTime_Mar", SWIG_FromInt((int)wxDateTime::Mar)); | |
30067 | PyDict_SetItemString(d,"DateTime_Apr", SWIG_FromInt((int)wxDateTime::Apr)); | |
30068 | PyDict_SetItemString(d,"DateTime_May", SWIG_FromInt((int)wxDateTime::May)); | |
30069 | PyDict_SetItemString(d,"DateTime_Jun", SWIG_FromInt((int)wxDateTime::Jun)); | |
30070 | PyDict_SetItemString(d,"DateTime_Jul", SWIG_FromInt((int)wxDateTime::Jul)); | |
30071 | PyDict_SetItemString(d,"DateTime_Aug", SWIG_FromInt((int)wxDateTime::Aug)); | |
30072 | PyDict_SetItemString(d,"DateTime_Sep", SWIG_FromInt((int)wxDateTime::Sep)); | |
30073 | PyDict_SetItemString(d,"DateTime_Oct", SWIG_FromInt((int)wxDateTime::Oct)); | |
30074 | PyDict_SetItemString(d,"DateTime_Nov", SWIG_FromInt((int)wxDateTime::Nov)); | |
30075 | PyDict_SetItemString(d,"DateTime_Dec", SWIG_FromInt((int)wxDateTime::Dec)); | |
30076 | PyDict_SetItemString(d,"DateTime_Inv_Month", SWIG_FromInt((int)wxDateTime::Inv_Month)); | |
30077 | PyDict_SetItemString(d,"DateTime_Sun", SWIG_FromInt((int)wxDateTime::Sun)); | |
30078 | PyDict_SetItemString(d,"DateTime_Mon", SWIG_FromInt((int)wxDateTime::Mon)); | |
30079 | PyDict_SetItemString(d,"DateTime_Tue", SWIG_FromInt((int)wxDateTime::Tue)); | |
30080 | PyDict_SetItemString(d,"DateTime_Wed", SWIG_FromInt((int)wxDateTime::Wed)); | |
30081 | PyDict_SetItemString(d,"DateTime_Thu", SWIG_FromInt((int)wxDateTime::Thu)); | |
30082 | PyDict_SetItemString(d,"DateTime_Fri", SWIG_FromInt((int)wxDateTime::Fri)); | |
30083 | PyDict_SetItemString(d,"DateTime_Sat", SWIG_FromInt((int)wxDateTime::Sat)); | |
30084 | PyDict_SetItemString(d,"DateTime_Inv_WeekDay", SWIG_FromInt((int)wxDateTime::Inv_WeekDay)); | |
30085 | PyDict_SetItemString(d,"DateTime_Inv_Year", SWIG_FromInt((int)wxDateTime::Inv_Year)); | |
30086 | PyDict_SetItemString(d,"DateTime_Name_Full", SWIG_FromInt((int)wxDateTime::Name_Full)); | |
30087 | PyDict_SetItemString(d,"DateTime_Name_Abbr", SWIG_FromInt((int)wxDateTime::Name_Abbr)); | |
30088 | PyDict_SetItemString(d,"DateTime_Default_First", SWIG_FromInt((int)wxDateTime::Default_First)); | |
30089 | PyDict_SetItemString(d,"DateTime_Monday_First", SWIG_FromInt((int)wxDateTime::Monday_First)); | |
30090 | PyDict_SetItemString(d,"DateTime_Sunday_First", SWIG_FromInt((int)wxDateTime::Sunday_First)); | |
30091 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultDateTime",_wrap_DefaultDateTime_get, _wrap_DefaultDateTime_set); | |
30092 | PyDict_SetItemString(d,"DF_INVALID", SWIG_FromInt((int)wxDF_INVALID)); | |
30093 | PyDict_SetItemString(d,"DF_TEXT", SWIG_FromInt((int)wxDF_TEXT)); | |
30094 | PyDict_SetItemString(d,"DF_BITMAP", SWIG_FromInt((int)wxDF_BITMAP)); | |
30095 | PyDict_SetItemString(d,"DF_METAFILE", SWIG_FromInt((int)wxDF_METAFILE)); | |
30096 | PyDict_SetItemString(d,"DF_SYLK", SWIG_FromInt((int)wxDF_SYLK)); | |
30097 | PyDict_SetItemString(d,"DF_DIF", SWIG_FromInt((int)wxDF_DIF)); | |
30098 | PyDict_SetItemString(d,"DF_TIFF", SWIG_FromInt((int)wxDF_TIFF)); | |
30099 | PyDict_SetItemString(d,"DF_OEMTEXT", SWIG_FromInt((int)wxDF_OEMTEXT)); | |
30100 | PyDict_SetItemString(d,"DF_DIB", SWIG_FromInt((int)wxDF_DIB)); | |
30101 | PyDict_SetItemString(d,"DF_PALETTE", SWIG_FromInt((int)wxDF_PALETTE)); | |
30102 | PyDict_SetItemString(d,"DF_PENDATA", SWIG_FromInt((int)wxDF_PENDATA)); | |
30103 | PyDict_SetItemString(d,"DF_RIFF", SWIG_FromInt((int)wxDF_RIFF)); | |
30104 | PyDict_SetItemString(d,"DF_WAVE", SWIG_FromInt((int)wxDF_WAVE)); | |
30105 | PyDict_SetItemString(d,"DF_UNICODETEXT", SWIG_FromInt((int)wxDF_UNICODETEXT)); | |
30106 | PyDict_SetItemString(d,"DF_ENHMETAFILE", SWIG_FromInt((int)wxDF_ENHMETAFILE)); | |
30107 | PyDict_SetItemString(d,"DF_FILENAME", SWIG_FromInt((int)wxDF_FILENAME)); | |
30108 | PyDict_SetItemString(d,"DF_LOCALE", SWIG_FromInt((int)wxDF_LOCALE)); | |
30109 | PyDict_SetItemString(d,"DF_PRIVATE", SWIG_FromInt((int)wxDF_PRIVATE)); | |
30110 | PyDict_SetItemString(d,"DF_HTML", SWIG_FromInt((int)wxDF_HTML)); | |
30111 | PyDict_SetItemString(d,"DF_MAX", SWIG_FromInt((int)wxDF_MAX)); | |
30112 | SWIG_addvarlink(SWIG_globals,(char*)"FormatInvalid",_wrap_FormatInvalid_get, _wrap_FormatInvalid_set); | |
30113 | PyDict_SetItemString(d,"DataObject_Get", SWIG_FromInt((int)wxDataObject::Get)); | |
30114 | PyDict_SetItemString(d,"DataObject_Set", SWIG_FromInt((int)wxDataObject::Set)); | |
30115 | PyDict_SetItemString(d,"DataObject_Both", SWIG_FromInt((int)wxDataObject::Both)); | |
30116 | PyDict_SetItemString(d,"Drag_CopyOnly", SWIG_FromInt((int)wxDrag_CopyOnly)); | |
30117 | PyDict_SetItemString(d,"Drag_AllowMove", SWIG_FromInt((int)wxDrag_AllowMove)); | |
30118 | PyDict_SetItemString(d,"Drag_DefaultMove", SWIG_FromInt((int)wxDrag_DefaultMove)); | |
30119 | PyDict_SetItemString(d,"DragError", SWIG_FromInt((int)wxDragError)); | |
30120 | PyDict_SetItemString(d,"DragNone", SWIG_FromInt((int)wxDragNone)); | |
30121 | PyDict_SetItemString(d,"DragCopy", SWIG_FromInt((int)wxDragCopy)); | |
30122 | PyDict_SetItemString(d,"DragMove", SWIG_FromInt((int)wxDragMove)); | |
30123 | PyDict_SetItemString(d,"DragLink", SWIG_FromInt((int)wxDragLink)); | |
30124 | PyDict_SetItemString(d,"DragCancel", SWIG_FromInt((int)wxDragCancel)); | |
30125 | ||
30126 | wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource"); | |
30127 | wxPyPtrTypeMap_Add("wxDropTarget", "wxPyDropTarget"); | |
30128 | wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget"); | |
30129 | wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget"); | |
30130 | ||
30131 | SWIG_addvarlink(SWIG_globals,(char*)"TheClipboard",_wrap_TheClipboard_get, _wrap_TheClipboard_set); | |
30132 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultVideoMode",_wrap_DefaultVideoMode_get, _wrap_DefaultVideoMode_set); | |
30133 | } | |
30134 |