]>
Commit | Line | Data |
---|---|---|
1 | /* ---------------------------------------------------------------------------- | |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
3 | * Version 1.3.22 | |
4 | * | |
5 | * This file is not intended to be easily readable and contains a number of | |
6 | * coding conventions designed to improve portability and efficiency. Do not make | |
7 | * changes to this file unless you know what you are doing--modify the SWIG | |
8 | * interface file instead. | |
9 | * ----------------------------------------------------------------------------- */ | |
10 | ||
11 | #define SWIGPYTHON | |
12 | #define SWIG_NOINCLUDE | |
13 | ||
14 | #ifdef __cplusplus | |
15 | template<class T> class SwigValueWrapper { | |
16 | T *tt; | |
17 | public: | |
18 | SwigValueWrapper() : tt(0) { } | |
19 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
20 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
21 | ~SwigValueWrapper() { delete tt; } | |
22 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
23 | operator T&() const { return *tt; } | |
24 | T *operator&() { return tt; } | |
25 | private: | |
26 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
27 | }; | |
28 | #endif | |
29 | ||
30 | ||
31 | #include "Python.h" | |
32 | ||
33 | /*************************************************************** -*- c -*- | |
34 | * python/precommon.swg | |
35 | * | |
36 | * Rename all exported symbols from common.swg, to avoid symbol | |
37 | * clashes if multiple interpreters are included | |
38 | * | |
39 | ************************************************************************/ | |
40 | ||
41 | #define SWIG_TypeRegister SWIG_Python_TypeRegister | |
42 | #define SWIG_TypeCheck SWIG_Python_TypeCheck | |
43 | #define SWIG_TypeCast SWIG_Python_TypeCast | |
44 | #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast | |
45 | #define SWIG_TypeName SWIG_Python_TypeName | |
46 | #define SWIG_TypePrettyName SWIG_Python_TypePrettyName | |
47 | #define SWIG_TypeQuery SWIG_Python_TypeQuery | |
48 | #define SWIG_TypeClientData SWIG_Python_TypeClientData | |
49 | #define SWIG_PackData SWIG_Python_PackData | |
50 | #define SWIG_UnpackData SWIG_Python_UnpackData | |
51 | ||
52 | ||
53 | /*********************************************************************** | |
54 | * common.swg for wxPython | |
55 | * | |
56 | * Include only the function prototypes and such from SWIG's common.swg, | |
57 | * but not the runtime functions themselves. This helps keep the | |
58 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
59 | * anyway. | |
60 | * | |
61 | ************************************************************************/ | |
62 | ||
63 | #include <string.h> | |
64 | ||
65 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
66 | # if defined(_MSC_VER) || defined(__GNUC__) | |
67 | # if defined(STATIC_LINKED) | |
68 | # define SWIGEXPORT(a) a | |
69 | # define SWIGIMPORT(a) extern a | |
70 | # else | |
71 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
72 | # define SWIGIMPORT(a) extern a | |
73 | # endif | |
74 | # else | |
75 | # if defined(__BORLANDC__) | |
76 | # define SWIGEXPORT(a) a _export | |
77 | # define SWIGIMPORT(a) a _export | |
78 | # else | |
79 | # define SWIGEXPORT(a) a | |
80 | # define SWIGIMPORT(a) a | |
81 | # endif | |
82 | # endif | |
83 | #else | |
84 | # define SWIGEXPORT(a) a | |
85 | # define SWIGIMPORT(a) a | |
86 | #endif | |
87 | ||
88 | #ifdef SWIG_GLOBAL | |
89 | # define SWIGRUNTIME(a) SWIGEXPORT(a) | |
90 | #else | |
91 | # define SWIGRUNTIME(a) static a | |
92 | #endif | |
93 | ||
94 | #ifdef __cplusplus | |
95 | extern "C" { | |
96 | #endif | |
97 | ||
98 | typedef void *(*swig_converter_func)(void *); | |
99 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
100 | ||
101 | typedef struct swig_type_info { | |
102 | const char *name; | |
103 | swig_converter_func converter; | |
104 | const char *str; | |
105 | void *clientdata; | |
106 | swig_dycast_func dcast; | |
107 | struct swig_type_info *next; | |
108 | struct swig_type_info *prev; | |
109 | } swig_type_info; | |
110 | ||
111 | ||
112 | SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *); | |
113 | SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *); | |
114 | SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *); | |
115 | SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **); | |
116 | SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *); | |
117 | SWIGIMPORT(const char *) SWIG_TypePrettyName(const swig_type_info *); | |
118 | SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); | |
119 | SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); | |
120 | SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); | |
121 | SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); | |
122 | ||
123 | ||
124 | #ifdef __cplusplus | |
125 | } | |
126 | #endif | |
127 | ||
128 | ||
129 | /*********************************************************************** | |
130 | * pyrun.swg for wxPython | |
131 | * | |
132 | * Include only the function prototypes and such from SWIG's pyrun.swg, | |
133 | * but not the runtime functions themselves. This helps keep the | |
134 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
135 | * anyway. | |
136 | * | |
137 | ************************************************************************/ | |
138 | ||
139 | #ifdef __cplusplus | |
140 | extern "C" { | |
141 | #endif | |
142 | ||
143 | #define SWIG_PY_INT 1 | |
144 | #define SWIG_PY_FLOAT 2 | |
145 | #define SWIG_PY_STRING 3 | |
146 | #define SWIG_PY_POINTER 4 | |
147 | #define SWIG_PY_BINARY 5 | |
148 | ||
149 | /* Flags for pointer conversion */ | |
150 | ||
151 | #define SWIG_POINTER_EXCEPTION 0x1 | |
152 | #define SWIG_POINTER_DISOWN 0x2 | |
153 | ||
154 | /* Exception handling in wrappers */ | |
155 | #define SWIG_fail goto fail | |
156 | ||
157 | /* Constant information structure */ | |
158 | typedef struct swig_const_info { | |
159 | int type; | |
160 | char *name; | |
161 | long lvalue; | |
162 | double dvalue; | |
163 | void *pvalue; | |
164 | swig_type_info **ptype; | |
165 | } swig_const_info; | |
166 | ||
167 | /* Common SWIG API */ | |
168 | #define SWIG_ConvertPtr(obj, pp, type, flags) \ | |
169 | SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
170 | #define SWIG_NewPointerObj(p, type, flags) \ | |
171 | SWIG_Python_NewPointerObj(p, type, flags) | |
172 | #define SWIG_MustGetPtr(p, type, argnum, flags) \ | |
173 | SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
174 | ||
175 | /* Python-specific SWIG API */ | |
176 | #define SWIG_newvarlink() \ | |
177 | SWIG_Python_newvarlink() | |
178 | #define SWIG_addvarlink(p, name, get_attr, set_attr) \ | |
179 | SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
180 | #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \ | |
181 | SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) | |
182 | #define SWIG_NewPackedObj(ptr, sz, type) \ | |
183 | SWIG_Python_NewPackedObj(ptr, sz, type) | |
184 | #define SWIG_InstallConstants(d, constants) \ | |
185 | SWIG_Python_InstallConstants(d, constants) | |
186 | ||
187 | typedef double (*py_objasdbl_conv)(PyObject *obj); | |
188 | ||
189 | SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); | |
190 | SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); | |
191 | SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); | |
192 | SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void); | |
193 | SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
194 | SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); | |
195 | SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); | |
196 | SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); | |
197 | ||
198 | ||
199 | /* Contract support */ | |
200 | ||
201 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else | |
202 | ||
203 | #ifdef __cplusplus | |
204 | } | |
205 | #endif | |
206 | ||
207 | ||
208 | ||
209 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
210 | ||
211 | #define SWIGTYPE_p_wxLogChain swig_types[0] | |
212 | #define SWIGTYPE_p_wxMutexGuiLocker swig_types[1] | |
213 | #define SWIGTYPE_p_wxFileHistory swig_types[2] | |
214 | #define SWIGTYPE_p_wxLog swig_types[3] | |
215 | #define SWIGTYPE_p_wxDateTime__TimeZone swig_types[4] | |
216 | #define SWIGTYPE_p_wxMenu swig_types[5] | |
217 | #define SWIGTYPE_p_wxEvent swig_types[6] | |
218 | #define SWIGTYPE_p_wxConfigBase swig_types[7] | |
219 | #define SWIGTYPE_p_wxDisplay swig_types[8] | |
220 | #define SWIGTYPE_p_wxFileType swig_types[9] | |
221 | #define SWIGTYPE_p_wxLogGui swig_types[10] | |
222 | #define SWIGTYPE_p_wxFont swig_types[11] | |
223 | #define SWIGTYPE_p_wxDataFormat swig_types[12] | |
224 | #define SWIGTYPE_p_wxTimerEvent swig_types[13] | |
225 | #define SWIGTYPE_p_wxCaret swig_types[14] | |
226 | #define SWIGTYPE_p_int swig_types[15] | |
227 | #define SWIGTYPE_p_wxSize swig_types[16] | |
228 | #define SWIGTYPE_p_wxClipboard swig_types[17] | |
229 | #define SWIGTYPE_p_wxStopWatch swig_types[18] | |
230 | #define SWIGTYPE_p_wxDC swig_types[19] | |
231 | #define SWIGTYPE_p_wxClipboardLocker swig_types[20] | |
232 | #define SWIGTYPE_p_wxIcon swig_types[21] | |
233 | #define SWIGTYPE_p_wxLogStderr swig_types[22] | |
234 | #define SWIGTYPE_p_wxLogTextCtrl swig_types[23] | |
235 | #define SWIGTYPE_p_wxTextCtrl swig_types[24] | |
236 | #define SWIGTYPE_p_wxBusyCursor swig_types[25] | |
237 | #define SWIGTYPE_p_wxPyBitmapDataObject swig_types[26] | |
238 | #define SWIGTYPE_p_wxPyTextDataObject swig_types[27] | |
239 | #define SWIGTYPE_p_wxBitmapDataObject swig_types[28] | |
240 | #define SWIGTYPE_p_wxTextDataObject swig_types[29] | |
241 | #define SWIGTYPE_p_wxDataObject swig_types[30] | |
242 | #define SWIGTYPE_p_wxFileDataObject swig_types[31] | |
243 | #define SWIGTYPE_p_wxCustomDataObject swig_types[32] | |
244 | #define SWIGTYPE_p_wxURLDataObject swig_types[33] | |
245 | #define SWIGTYPE_p_wxMetafileDataObject swig_types[34] | |
246 | #define SWIGTYPE_p_wxSound swig_types[35] | |
247 | #define SWIGTYPE_p_wxTimerRunner swig_types[36] | |
248 | #define SWIGTYPE_p_wxLogWindow swig_types[37] | |
249 | #define SWIGTYPE_p_wxTimeSpan swig_types[38] | |
250 | #define SWIGTYPE_p_wxArrayString swig_types[39] | |
251 | #define SWIGTYPE_p_wxWindowDisabler swig_types[40] | |
252 | #define SWIGTYPE_p_wxToolTip swig_types[41] | |
253 | #define SWIGTYPE_p_wxDataObjectComposite swig_types[42] | |
254 | #define SWIGTYPE_p_wxFileConfig swig_types[43] | |
255 | #define SWIGTYPE_p_wxSystemSettings swig_types[44] | |
256 | #define SWIGTYPE_p_wxVideoMode swig_types[45] | |
257 | #define SWIGTYPE_p_wxPyDataObjectSimple swig_types[46] | |
258 | #define SWIGTYPE_p_wxDataObjectSimple swig_types[47] | |
259 | #define SWIGTYPE_p_wxEvtHandler swig_types[48] | |
260 | #define SWIGTYPE_p_wxRect swig_types[49] | |
261 | #define SWIGTYPE_p_char swig_types[50] | |
262 | #define SWIGTYPE_p_wxSingleInstanceChecker swig_types[51] | |
263 | #define SWIGTYPE_p_wxStandardPaths swig_types[52] | |
264 | #define SWIGTYPE_p_wxFileTypeInfo swig_types[53] | |
265 | #define SWIGTYPE_p_wxFrame swig_types[54] | |
266 | #define SWIGTYPE_p_wxTimer swig_types[55] | |
267 | #define SWIGTYPE_p_wxMimeTypesManager swig_types[56] | |
268 | #define SWIGTYPE_p_wxPyArtProvider swig_types[57] | |
269 | #define SWIGTYPE_p_wxPyTipProvider swig_types[58] | |
270 | #define SWIGTYPE_p_wxTipProvider swig_types[59] | |
271 | #define SWIGTYPE_p_wxJoystick swig_types[60] | |
272 | #define SWIGTYPE_p_wxSystemOptions swig_types[61] | |
273 | #define SWIGTYPE_p_wxPoint swig_types[62] | |
274 | #define SWIGTYPE_p_wxJoystickEvent swig_types[63] | |
275 | #define SWIGTYPE_p_wxCursor swig_types[64] | |
276 | #define SWIGTYPE_p_wxObject swig_types[65] | |
277 | #define SWIGTYPE_p_wxOutputStream swig_types[66] | |
278 | #define SWIGTYPE_p_wxDateTime swig_types[67] | |
279 | #define SWIGTYPE_p_wxPyDropSource swig_types[68] | |
280 | #define SWIGTYPE_p_wxWindow swig_types[69] | |
281 | #define SWIGTYPE_p_wxString swig_types[70] | |
282 | #define SWIGTYPE_p_wxPyProcess swig_types[71] | |
283 | #define SWIGTYPE_p_wxBitmap swig_types[72] | |
284 | #define SWIGTYPE_p_wxConfig swig_types[73] | |
285 | #define SWIGTYPE_p_wxChar swig_types[74] | |
286 | #define SWIGTYPE_p_wxBusyInfo swig_types[75] | |
287 | #define SWIGTYPE_p_wxPyDropTarget swig_types[76] | |
288 | #define SWIGTYPE_p_wxPyTextDropTarget swig_types[77] | |
289 | #define SWIGTYPE_p_wxPyFileDropTarget swig_types[78] | |
290 | #define SWIGTYPE_p_wxProcessEvent swig_types[79] | |
291 | #define SWIGTYPE_p_wxPyLog swig_types[80] | |
292 | #define SWIGTYPE_p_wxLogNull swig_types[81] | |
293 | #define SWIGTYPE_p_wxColour swig_types[82] | |
294 | #define SWIGTYPE_p_wxConfigPathChanger swig_types[83] | |
295 | #define SWIGTYPE_p_wxPyTimer swig_types[84] | |
296 | #define SWIGTYPE_p_wxDateSpan swig_types[85] | |
297 | static swig_type_info *swig_types[87]; | |
298 | ||
299 | /* -------- TYPES TABLE (END) -------- */ | |
300 | ||
301 | ||
302 | /*----------------------------------------------- | |
303 | @(target):= _misc_.so | |
304 | ------------------------------------------------*/ | |
305 | #define SWIG_init init_misc_ | |
306 | ||
307 | #define SWIG_name "_misc_" | |
308 | ||
309 | /* Auxiliar swig macros that appear in the header */ | |
310 | ||
311 | #define SWIG_OLDOBJ 1 | |
312 | #define SWIG_NEWOBJ SWIG_OLDOBJ + 1 | |
313 | #define SWIG_PYSTR SWIG_NEWOBJ + 1 | |
314 | ||
315 | #ifdef __cplusplus | |
316 | #define SWIGSTATICINLINE(a) static inline a | |
317 | #define SWIGSTATIC(a) static a | |
318 | #define swig_new_array(size,Type) (new Type[(size)]) | |
319 | #define swig_delete(cptr) delete cptr | |
320 | #define swig_delete_array(cptr) delete[] cptr | |
321 | #define swig_const_cast(a,Type) const_cast<Type >(a) | |
322 | #define swig_static_cast(a,Type) static_cast<Type >(a) | |
323 | #define swig_reinterpret_cast(a,Type) reinterpret_cast<Type >(a) | |
324 | #define swig_new_copy(ptr,Type) (new Type(*ptr)) | |
325 | #define swig_numeric_cast(a,Type) static_cast<Type >(a) | |
326 | ||
327 | #else /* C case */ | |
328 | ||
329 | #define SWIGSTATICINLINE(a) static a | |
330 | #define SWIGSTATIC(a) static a | |
331 | #define swig_new_array(size,Type) ((Type*) malloc((size)*sizeof(Type))) | |
332 | #define swig_delete(cptr) free((char*)cptr) | |
333 | #define swig_delete_array(cptr) free((char*)cptr) | |
334 | #define swig_const_cast(a,Type) (Type)(a) | |
335 | #define swig_static_cast(a,Type) (Type)(a) | |
336 | #define swig_reinterpret_cast(a,Type) (Type)(a) | |
337 | #define swig_numeric_cast(a,Type) (Type)(a) | |
338 | #define swig_new_copy(ptr,Type) ((Type*)memcpy(malloc(sizeof(Type)),ptr,sizeof(Type))) | |
339 | ||
340 | #endif /* __cplusplus */ | |
341 | ||
342 | ||
343 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
344 | #define SWIG_From_signed_SS_char PyInt_FromLong | |
345 | /*@@*/ | |
346 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
347 | #define SWIG_From_unsigned_SS_char PyInt_FromLong | |
348 | /*@@*/ | |
349 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
350 | #define SWIG_From_short PyInt_FromLong | |
351 | /*@@*/ | |
352 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
353 | #define SWIG_From_unsigned_SS_short PyInt_FromLong | |
354 | /*@@*/ | |
355 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
356 | #define SWIG_From_int PyInt_FromLong | |
357 | /*@@*/ | |
358 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
359 | #define SWIG_From_long PyInt_FromLong | |
360 | /*@@*/ | |
361 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
362 | #define SWIG_From_float PyFloat_FromDouble | |
363 | /*@@*/ | |
364 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
365 | #define SWIG_From_double PyFloat_FromDouble | |
366 | /*@@*/ | |
367 | ||
368 | ||
369 | #include "wx/wxPython/wxPython.h" | |
370 | #include "wx/wxPython/pyclasses.h" | |
371 | #include "wx/wxPython/pyistream.h" | |
372 | ||
373 | static const wxString wxPyEmptyString(wxEmptyString); | |
374 | ||
375 | ||
376 | ||
377 | #include <limits.h> | |
378 | ||
379 | ||
380 | SWIGSTATICINLINE(int) | |
381 | SWIG_CheckLongInRange(long value, long min_value, long max_value, | |
382 | const char *errmsg) | |
383 | { | |
384 | if (value < min_value) { | |
385 | if (errmsg) { | |
386 | PyErr_Format(PyExc_OverflowError, | |
387 | "value %ld is less than '%s' minimum %ld", | |
388 | value, errmsg, min_value); | |
389 | } | |
390 | return 0; | |
391 | } else if (value > max_value) { | |
392 | if (errmsg) { | |
393 | PyErr_Format(PyExc_OverflowError, | |
394 | "value %ld is greater than '%s' maximum %ld", | |
395 | value, errmsg, max_value); | |
396 | } | |
397 | return 0; | |
398 | } | |
399 | return 1; | |
400 | } | |
401 | ||
402 | ||
403 | // See my_fragments.i | |
404 | SWIGSTATICINLINE(int) | |
405 | SWIG_AsVal_long(PyObject* obj, long* val) | |
406 | { | |
407 | if (PyNumber_Check(obj)) { | |
408 | if (val) *val = PyInt_AsLong(obj); | |
409 | return 1; | |
410 | } | |
411 | else { | |
412 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
413 | obj->ob_type->tp_name); | |
414 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
415 | Py_DECREF(errmsg); | |
416 | } | |
417 | return 0; | |
418 | } | |
419 | ||
420 | ||
421 | #if INT_MAX != LONG_MAX | |
422 | SWIGSTATICINLINE(int) | |
423 | SWIG_AsVal_int(PyObject *obj, int *val) | |
424 | { | |
425 | const char* errmsg = val ? "int" : 0; | |
426 | long v; | |
427 | if (SWIG_AsVal_long(obj, &v)) { | |
428 | if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) { | |
429 | if (val) *val = swig_numeric_cast(v, int); | |
430 | return 1; | |
431 | } else { | |
432 | return 0; | |
433 | } | |
434 | } else { | |
435 | PyErr_Clear(); | |
436 | } | |
437 | if (val) { | |
438 | PyErr_SetString(PyExc_TypeError, "an int is expected"); | |
439 | } | |
440 | return 0; | |
441 | } | |
442 | #else | |
443 | SWIGSTATICINLINE(int) | |
444 | SWIG_AsVal_int(PyObject *obj, int *val) | |
445 | { | |
446 | return SWIG_AsVal_long(obj,(long*)val); | |
447 | } | |
448 | #endif | |
449 | ||
450 | ||
451 | SWIGSTATICINLINE(int) | |
452 | SWIG_As_int(PyObject* obj) | |
453 | { | |
454 | int v; | |
455 | if (!SWIG_AsVal_int(obj, &v)) { | |
456 | /* | |
457 | this is needed to make valgrind/purify happier. the other | |
458 | solution is throw an exception, but since this code should work | |
459 | with plain C .... | |
460 | */ | |
461 | memset((void*)&v, 0, sizeof(int)); | |
462 | } | |
463 | return v; | |
464 | } | |
465 | ||
466 | ||
467 | SWIGSTATICINLINE(int) | |
468 | SWIG_Check_int(PyObject* obj) | |
469 | { | |
470 | return SWIG_AsVal_int(obj, (int*)0); | |
471 | } | |
472 | ||
473 | static const wxString wxPyWINDOW_DEFAULT_VARIANT(wxWINDOW_DEFAULT_VARIANT); | |
474 | ||
475 | #include <wx/stockitem.h> | |
476 | ||
477 | static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr); | |
478 | static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr); | |
479 | static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr); | |
480 | ||
481 | SWIGSTATICINLINE(long) | |
482 | SWIG_As_long(PyObject* obj) | |
483 | { | |
484 | long v; | |
485 | if (!SWIG_AsVal_long(obj, &v)) { | |
486 | /* | |
487 | this is needed to make valgrind/purify happier. the other | |
488 | solution is throw an exception, but since this code should work | |
489 | with plain C .... | |
490 | */ | |
491 | memset((void*)&v, 0, sizeof(long)); | |
492 | } | |
493 | return v; | |
494 | } | |
495 | ||
496 | ||
497 | SWIGSTATICINLINE(int) | |
498 | SWIG_Check_long(PyObject* obj) | |
499 | { | |
500 | return SWIG_AsVal_long(obj, (long*)0); | |
501 | } | |
502 | ||
503 | ||
504 | SWIGSTATICINLINE(int) | |
505 | SWIG_AsVal_bool(PyObject *obj, bool *val) | |
506 | { | |
507 | /* if (val) *val = PyObject_IsTrue(obj); return 1; */ | |
508 | if (obj == Py_True) { | |
509 | if (val) *val = true; | |
510 | return 1; | |
511 | } | |
512 | if (obj == Py_False) { | |
513 | if (val) *val = false; | |
514 | return 1; | |
515 | } | |
516 | int res = 0; | |
517 | if (SWIG_AsVal_int(obj, &res)) { | |
518 | if (val) *val = (bool)res; | |
519 | return 1; | |
520 | } | |
521 | if (val) { | |
522 | PyErr_SetString(PyExc_TypeError, "a bool is expected"); | |
523 | } | |
524 | return 0; | |
525 | } | |
526 | ||
527 | ||
528 | SWIGSTATICINLINE(bool) | |
529 | SWIG_As_bool(PyObject* obj) | |
530 | { | |
531 | bool v; | |
532 | if (!SWIG_AsVal_bool(obj, &v)) { | |
533 | /* | |
534 | this is needed to make valgrind/purify happier. the other | |
535 | solution is throw an exception, but since this code should work | |
536 | with plain C .... | |
537 | */ | |
538 | memset((void*)&v, 0, sizeof(bool)); | |
539 | } | |
540 | return v; | |
541 | } | |
542 | ||
543 | ||
544 | SWIGSTATICINLINE(int) | |
545 | SWIG_Check_bool(PyObject* obj) | |
546 | { | |
547 | return SWIG_AsVal_bool(obj, (bool*)0); | |
548 | } | |
549 | ||
550 | ||
551 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
552 | PyObject* o2; | |
553 | PyObject* o3; | |
554 | ||
555 | if (!target) { | |
556 | target = o; | |
557 | } else if (target == Py_None) { | |
558 | Py_DECREF(Py_None); | |
559 | target = o; | |
560 | } else { | |
561 | if (!PyTuple_Check(target)) { | |
562 | o2 = target; | |
563 | target = PyTuple_New(1); | |
564 | PyTuple_SetItem(target, 0, o2); | |
565 | } | |
566 | o3 = PyTuple_New(1); | |
567 | PyTuple_SetItem(o3, 0, o); | |
568 | ||
569 | o2 = target; | |
570 | target = PySequence_Concat(o2, o3); | |
571 | Py_DECREF(o2); | |
572 | Py_DECREF(o3); | |
573 | } | |
574 | return target; | |
575 | } | |
576 | ||
577 | ||
578 | ||
579 | long wxGetFreeMemory() | |
580 | { wxPyRaiseNotImplemented(); return 0; } | |
581 | ||
582 | ||
583 | // See my_fragments.i | |
584 | SWIGSTATICINLINE(int) | |
585 | SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val) | |
586 | { | |
587 | long v = 0; | |
588 | if (SWIG_AsVal_long(obj, &v) && v < 0) { | |
589 | PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type"); | |
590 | return 0; | |
591 | } | |
592 | else if (val) | |
593 | *val = (unsigned long)v; | |
594 | return 1; | |
595 | } | |
596 | ||
597 | ||
598 | SWIGSTATICINLINE(unsigned long) | |
599 | SWIG_As_unsigned_SS_long(PyObject* obj) | |
600 | { | |
601 | unsigned long v; | |
602 | if (!SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
603 | /* | |
604 | this is needed to make valgrind/purify happier. the other | |
605 | solution is throw an exception, but since this code should work | |
606 | with plain C .... | |
607 | */ | |
608 | memset((void*)&v, 0, sizeof(unsigned long)); | |
609 | } | |
610 | return v; | |
611 | } | |
612 | ||
613 | ||
614 | SWIGSTATICINLINE(int) | |
615 | SWIG_Check_unsigned_SS_long(PyObject* obj) | |
616 | { | |
617 | return SWIG_AsVal_unsigned_SS_long(obj, (unsigned long*)0); | |
618 | } | |
619 | ||
620 | ||
621 | SWIGSTATICINLINE(PyObject* ) | |
622 | SWIG_From_unsigned_SS_long(unsigned long value) | |
623 | { | |
624 | return (value > LONG_MAX) ? | |
625 | PyLong_FromUnsignedLong(value) | |
626 | : PyInt_FromLong(swig_numeric_cast(value,long)); | |
627 | } | |
628 | ||
629 | ||
630 | void wxWakeUpMainThread() {} | |
631 | ||
632 | ||
633 | bool wxThread_IsMain() { | |
634 | #ifdef WXP_WITH_THREAD | |
635 | return wxThread::IsMain(); | |
636 | #else | |
637 | return true; | |
638 | #endif | |
639 | } | |
640 | ||
641 | ||
642 | int wxCaret_GetBlinkTime() { | |
643 | return wxCaret::GetBlinkTime(); | |
644 | } | |
645 | ||
646 | void wxCaret_SetBlinkTime(int milliseconds) { | |
647 | wxCaret::SetBlinkTime(milliseconds); | |
648 | } | |
649 | ||
650 | ||
651 | #include <wx/snglinst.h> | |
652 | ||
653 | ||
654 | #ifdef __WXMSW__ | |
655 | #include <wx/msw/private.h> | |
656 | #include <wx/dynload.h> | |
657 | #endif | |
658 | ||
659 | ||
660 | ||
661 | void wxDrawWindowOnDC(wxWindow* window, const wxDC& dc, int method) | |
662 | { | |
663 | #ifdef __WXMSW__ | |
664 | ||
665 | switch (method) | |
666 | { | |
667 | case 1: | |
668 | // This one only partially works. Appears to be an undocumented | |
669 | // "standard" convention that not all widgets adhear to. For | |
670 | // example, for some widgets backgrounds or non-client areas may | |
671 | // not be painted. | |
672 | ::SendMessage(GetHwndOf(window), WM_PAINT, (long)GetHdcOf(dc), 0); | |
673 | break; | |
674 | ||
675 | case 2: | |
676 | // This one works much better, except for on XP. On Win2k nearly | |
677 | // all widgets and their children are captured correctly[**]. On | |
678 | // XP with Themes activated most native widgets draw only | |
679 | // partially, if at all. Without themes it works just like on | |
680 | // Win2k. | |
681 | // | |
682 | // ** For example the radio buttons in a wxRadioBox are not its | |
683 | // children by default, but you can capture it via the panel | |
684 | // instead, or change RADIOBTN_PARENT_IS_RADIOBOX in radiobox.cpp. | |
685 | ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc), | |
686 | PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | | |
687 | PRF_ERASEBKGND | PRF_OWNED ); | |
688 | break; | |
689 | ||
690 | case 3: | |
691 | // This one is only defined in the latest SDK and is only | |
692 | // available on XP. MSDN says it is similar to sending WM_PRINT | |
693 | // so I expect that it will work similar to the above. Since it | |
694 | // is avaialble only on XP, it can't be compiled like this and | |
695 | // will have to be loaded dynamically. | |
696 | // //::PrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); //break; | |
697 | ||
698 | // fall through | |
699 | ||
700 | case 4: | |
701 | // Use PrintWindow if available, or fallback to WM_PRINT | |
702 | // otherwise. Unfortunately using PrintWindow is even worse than | |
703 | // WM_PRINT. For most native widgets nothing is drawn to the dc | |
704 | // at all, with or without Themes. | |
705 | typedef BOOL (WINAPI *PrintWindow_t)(HWND, HDC, UINT); | |
706 | static bool s_triedToLoad = false; | |
707 | static PrintWindow_t pfnPrintWindow = NULL; | |
708 | if ( !s_triedToLoad ) | |
709 | { | |
710 | ||
711 | s_triedToLoad = true; | |
712 | wxDynamicLibrary dllUser32(_T("user32.dll")); | |
713 | if ( dllUser32.IsLoaded() ) | |
714 | { | |
715 | wxLogNull nolog; // Don't report errors here | |
716 | pfnPrintWindow = (PrintWindow_t)dllUser32.GetSymbol(_T("PrintWindow")); | |
717 | } | |
718 | } | |
719 | if (pfnPrintWindow) | |
720 | { | |
721 | printf("Using PrintWindow\n"); | |
722 | pfnPrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); | |
723 | } | |
724 | else | |
725 | { | |
726 | printf("Using WM_PRINT\n"); | |
727 | ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc), | |
728 | PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | PRF_ERASEBKGND | PRF_OWNED ); | |
729 | } | |
730 | } | |
731 | #endif | |
732 | } | |
733 | ||
734 | ||
735 | ||
736 | #include <wx/tipdlg.h> | |
737 | ||
738 | ||
739 | class wxPyTipProvider : public wxTipProvider { | |
740 | public: | |
741 | wxPyTipProvider(size_t currentTip) | |
742 | : wxTipProvider(currentTip) {} | |
743 | ||
744 | DEC_PYCALLBACK_STRING__pure(GetTip); | |
745 | DEC_PYCALLBACK_STRING_STRING(PreprocessTip); | |
746 | PYPRIVATE; | |
747 | }; | |
748 | ||
749 | IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip); | |
750 | IMP_PYCALLBACK_STRING_STRING(wxPyTipProvider, wxTipProvider, PreprocessTip); | |
751 | ||
752 | ||
753 | //IMP_PYCALLBACK__(wxPyTimer, wxTimer, Notify); | |
754 | ||
755 | IMPLEMENT_ABSTRACT_CLASS(wxPyTimer, wxTimer); | |
756 | ||
757 | void wxPyTimer::Notify() { | |
758 | bool found; | |
759 | bool blocked = wxPyBeginBlockThreads(); | |
760 | if ((found = wxPyCBH_findCallback(m_myInst, "Notify"))) | |
761 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("()")); | |
762 | wxPyEndBlockThreads(blocked); | |
763 | if (! found) | |
764 | wxTimer::Notify(); | |
765 | } | |
766 | void wxPyTimer::base_Notify() { | |
767 | wxTimer::Notify(); | |
768 | } | |
769 | ||
770 | ||
771 | ||
772 | SWIGSTATICINLINE(PyObject *) | |
773 | SWIG_FromCharPtr(const char* cptr) | |
774 | { | |
775 | if (cptr) { | |
776 | size_t size = strlen(cptr); | |
777 | if (size > INT_MAX) { | |
778 | return SWIG_NewPointerObj(swig_const_cast(cptr,char*), | |
779 | SWIG_TypeQuery("char *"), 0); | |
780 | } else { | |
781 | if (size != 0) { | |
782 | return PyString_FromStringAndSize(cptr, size); | |
783 | } else { | |
784 | return PyString_FromString(cptr); | |
785 | } | |
786 | } | |
787 | } | |
788 | Py_INCREF(Py_None); | |
789 | return Py_None; | |
790 | } | |
791 | ||
792 | ||
793 | SWIGSTATICINLINE(int) | |
794 | SWIG_CheckUnsignedLongInRange(unsigned long value, | |
795 | unsigned long max_value, | |
796 | const char *errmsg) | |
797 | { | |
798 | if (value > max_value) { | |
799 | if (errmsg) { | |
800 | PyErr_Format(PyExc_OverflowError, | |
801 | "value %ld is greater than '%s' minimum %ld", | |
802 | value, errmsg, max_value); | |
803 | } | |
804 | return 0; | |
805 | } | |
806 | return 1; | |
807 | } | |
808 | ||
809 | ||
810 | #if UINT_MAX != ULONG_MAX | |
811 | SWIGSTATICINLINE(int) | |
812 | SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val) | |
813 | { | |
814 | const char* errmsg = val ? "unsigned int" : 0; | |
815 | unsigned long v; | |
816 | if (SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
817 | if (SWIG_CheckUnsignedLongInRange(v, INT_MAX, errmsg)) { | |
818 | if (val) *val = swig_numeric_cast(v, unsigned int); | |
819 | return 1; | |
820 | } | |
821 | } else { | |
822 | PyErr_Clear(); | |
823 | } | |
824 | if (val) { | |
825 | PyErr_SetString(PyExc_TypeError, "an unsigned int is expected"); | |
826 | } | |
827 | return 0; | |
828 | } | |
829 | #else | |
830 | SWIGSTATICINLINE(unsigned int) | |
831 | SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val) | |
832 | { | |
833 | return SWIG_AsVal_unsigned_SS_long(obj,(unsigned long *)val); | |
834 | } | |
835 | #endif | |
836 | ||
837 | ||
838 | SWIGSTATICINLINE(unsigned int) | |
839 | SWIG_As_unsigned_SS_int(PyObject* obj) | |
840 | { | |
841 | unsigned int v; | |
842 | if (!SWIG_AsVal_unsigned_SS_int(obj, &v)) { | |
843 | /* | |
844 | this is needed to make valgrind/purify happier. the other | |
845 | solution is throw an exception, but since this code should work | |
846 | with plain C .... | |
847 | */ | |
848 | memset((void*)&v, 0, sizeof(unsigned int)); | |
849 | } | |
850 | return v; | |
851 | } | |
852 | ||
853 | ||
854 | SWIGSTATICINLINE(int) | |
855 | SWIG_Check_unsigned_SS_int(PyObject* obj) | |
856 | { | |
857 | return SWIG_AsVal_unsigned_SS_int(obj, (unsigned int*)0); | |
858 | } | |
859 | ||
860 | wxString Log_TimeStamp(){ | |
861 | wxString msg; | |
862 | wxLog::TimeStamp(&msg); | |
863 | return msg; | |
864 | } | |
865 | void wxLog_Destroy(wxLog *self){ delete self; } | |
866 | ||
867 | // A wxLog class that can be derived from in wxPython | |
868 | class wxPyLog : public wxLog { | |
869 | public: | |
870 | wxPyLog() : wxLog() {} | |
871 | ||
872 | virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) { | |
873 | bool found; | |
874 | bool blocked = wxPyBeginBlockThreads(); | |
875 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) { | |
876 | PyObject* s = wx2PyString(szString); | |
877 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t)); | |
878 | Py_DECREF(s); | |
879 | } | |
880 | wxPyEndBlockThreads(blocked); | |
881 | if (! found) | |
882 | wxLog::DoLog(level, szString, t); | |
883 | } | |
884 | ||
885 | virtual void DoLogString(const wxChar *szString, time_t t) { | |
886 | bool found; | |
887 | bool blocked = wxPyBeginBlockThreads(); | |
888 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) { | |
889 | PyObject* s = wx2PyString(szString); | |
890 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t)); | |
891 | Py_DECREF(s); | |
892 | } | |
893 | wxPyEndBlockThreads(blocked); | |
894 | if (! found) | |
895 | wxLog::DoLogString(szString, t); | |
896 | } | |
897 | ||
898 | PYPRIVATE; | |
899 | }; | |
900 | ||
901 | ||
902 | ||
903 | ||
904 | IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate); | |
905 | ||
906 | ||
907 | #include <wx/joystick.h> | |
908 | ||
909 | ||
910 | #if !wxUSE_JOYSTICK && !defined(__WXMSW__) | |
911 | // A C++ stub class for wxJoystick for platforms that don't have it. | |
912 | class wxJoystick : public wxObject { | |
913 | public: | |
914 | wxJoystick(int joystick = wxJOYSTICK1) { | |
915 | bool blocked = wxPyBeginBlockThreads(); | |
916 | PyErr_SetString(PyExc_NotImplementedError, | |
917 | "wxJoystick is not available on this platform."); | |
918 | wxPyEndBlockThreads(blocked); | |
919 | } | |
920 | wxPoint GetPosition() { return wxPoint(-1,-1); } | |
921 | int GetZPosition() { return -1; } | |
922 | int GetButtonState() { return -1; } | |
923 | int GetPOVPosition() { return -1; } | |
924 | int GetPOVCTSPosition() { return -1; } | |
925 | int GetRudderPosition() { return -1; } | |
926 | int GetUPosition() { return -1; } | |
927 | int GetVPosition() { return -1; } | |
928 | int GetMovementThreshold() { return -1; } | |
929 | void SetMovementThreshold(int threshold) {} | |
930 | ||
931 | bool IsOk(void) { return false; } | |
932 | int GetNumberJoysticks() { return -1; } | |
933 | int GetManufacturerId() { return -1; } | |
934 | int GetProductId() { return -1; } | |
935 | wxString GetProductName() { return wxEmptyString; } | |
936 | int GetXMin() { return -1; } | |
937 | int GetYMin() { return -1; } | |
938 | int GetZMin() { return -1; } | |
939 | int GetXMax() { return -1; } | |
940 | int GetYMax() { return -1; } | |
941 | int GetZMax() { return -1; } | |
942 | int GetNumberButtons() { return -1; } | |
943 | int GetNumberAxes() { return -1; } | |
944 | int GetMaxButtons() { return -1; } | |
945 | int GetMaxAxes() { return -1; } | |
946 | int GetPollingMin() { return -1; } | |
947 | int GetPollingMax() { return -1; } | |
948 | int GetRudderMin() { return -1; } | |
949 | int GetRudderMax() { return -1; } | |
950 | int GetUMin() { return -1; } | |
951 | int GetUMax() { return -1; } | |
952 | int GetVMin() { return -1; } | |
953 | int GetVMax() { return -1; } | |
954 | ||
955 | bool HasRudder() { return false; } | |
956 | bool HasZ() { return false; } | |
957 | bool HasU() { return false; } | |
958 | bool HasV() { return false; } | |
959 | bool HasPOV() { return false; } | |
960 | bool HasPOV4Dir() { return false; } | |
961 | bool HasPOVCTS() { return false; } | |
962 | ||
963 | bool SetCapture(wxWindow* win, int pollingFreq = 0) { return false; } | |
964 | bool ReleaseCapture() { return false; } | |
965 | }; | |
966 | #endif | |
967 | ||
968 | ||
969 | #include <wx/sound.h> | |
970 | ||
971 | ||
972 | #if !wxUSE_SOUND | |
973 | // A C++ stub class for wxWave for platforms that don't have it. | |
974 | class wxSound : public wxObject | |
975 | { | |
976 | public: | |
977 | wxSound() { | |
978 | bool blocked = wxPyBeginBlockThreads(); | |
979 | PyErr_SetString(PyExc_NotImplementedError, | |
980 | "wxSound is not available on this platform."); | |
981 | wxPyEndBlockThreads(blocked); | |
982 | } | |
983 | wxSound(const wxString&/*, bool*/) { | |
984 | bool blocked = wxPyBeginBlockThreads(); | |
985 | PyErr_SetString(PyExc_NotImplementedError, | |
986 | "wxSound is not available on this platform."); | |
987 | wxPyEndBlockThreads(blocked); | |
988 | } | |
989 | wxSound(int, const wxByte*) { | |
990 | bool blocked = wxPyBeginBlockThreads(); | |
991 | PyErr_SetString(PyExc_NotImplementedError, | |
992 | "wxSound is not available on this platform."); | |
993 | wxPyEndBlockThreads(blocked); | |
994 | } | |
995 | ||
996 | ~wxSound() {}; | |
997 | ||
998 | bool Create(const wxString&/*, bool*/) { return false; } | |
999 | bool Create(int, const wxByte*) { return false; }; | |
1000 | bool IsOk() { return false; }; | |
1001 | bool Play(unsigned) const { return false; } | |
1002 | static bool Play(const wxString&, unsigned) { return false; } | |
1003 | static void Stop() {} | |
1004 | }; | |
1005 | ||
1006 | #endif | |
1007 | ||
1008 | wxSound *new_wxSound(wxString const &fileName){ | |
1009 | if (fileName.Length() == 0) | |
1010 | return new wxSound; | |
1011 | else | |
1012 | return new wxSound(fileName); | |
1013 | } | |
1014 | wxSound *new_wxSound(PyObject *data){ | |
1015 | unsigned char* buffer; int size; | |
1016 | wxSound *sound = NULL; | |
1017 | ||
1018 | bool blocked = wxPyBeginBlockThreads(); | |
1019 | if (!PyArg_Parse(data, "t#", &buffer, &size)) | |
1020 | goto done; | |
1021 | sound = new wxSound(size, buffer); | |
1022 | done: | |
1023 | wxPyEndBlockThreads(blocked); | |
1024 | return sound; | |
1025 | } | |
1026 | bool wxSound_CreateFromData(wxSound *self,PyObject *data){ | |
1027 | #ifndef __WXMAC__ | |
1028 | unsigned char* buffer; | |
1029 | int size; | |
1030 | bool rv = false; | |
1031 | ||
1032 | bool blocked = wxPyBeginBlockThreads(); | |
1033 | if (!PyArg_Parse(data, "t#", &buffer, &size)) | |
1034 | goto done; | |
1035 | rv = self->Create(size, buffer); | |
1036 | done: | |
1037 | wxPyEndBlockThreads(blocked); | |
1038 | return rv; | |
1039 | #else | |
1040 | bool blocked = wxPyBeginBlockThreads(); | |
1041 | PyErr_SetString(PyExc_NotImplementedError, | |
1042 | "Create from data is not available on this platform."); | |
1043 | wxPyEndBlockThreads(blocked); | |
1044 | return false; | |
1045 | #endif | |
1046 | } | |
1047 | ||
1048 | #include <wx/mimetype.h> | |
1049 | ||
1050 | PyObject *wxFileType_GetMimeType(wxFileType *self){ | |
1051 | wxString str; | |
1052 | if (self->GetMimeType(&str)) | |
1053 | return wx2PyString(str); | |
1054 | else | |
1055 | RETURN_NONE(); | |
1056 | } | |
1057 | PyObject *wxFileType_GetMimeTypes(wxFileType *self){ | |
1058 | wxArrayString arr; | |
1059 | if (self->GetMimeTypes(arr)) | |
1060 | return wxArrayString2PyList_helper(arr); | |
1061 | else | |
1062 | RETURN_NONE(); | |
1063 | } | |
1064 | PyObject *wxFileType_GetExtensions(wxFileType *self){ | |
1065 | wxArrayString arr; | |
1066 | if (self->GetExtensions(arr)) | |
1067 | return wxArrayString2PyList_helper(arr); | |
1068 | else | |
1069 | RETURN_NONE(); | |
1070 | } | |
1071 | wxIcon *wxFileType_GetIcon(wxFileType *self){ | |
1072 | wxIconLocation loc; | |
1073 | if (self->GetIcon(&loc)) | |
1074 | return new wxIcon(loc); | |
1075 | else | |
1076 | return NULL; | |
1077 | } | |
1078 | PyObject *wxFileType_GetIconInfo(wxFileType *self){ | |
1079 | wxIconLocation loc; | |
1080 | if (self->GetIcon(&loc)) { | |
1081 | wxString iconFile = loc.GetFileName(); | |
1082 | int iconIndex = -1; | |
1083 | ||
1084 | ||
1085 | ||
1086 | // Make a tuple and put the values in it | |
1087 | bool blocked = wxPyBeginBlockThreads(); | |
1088 | PyObject* tuple = PyTuple_New(3); | |
1089 | PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(loc), | |
1090 | wxT("wxIcon"), true)); | |
1091 | PyTuple_SetItem(tuple, 1, wx2PyString(iconFile)); | |
1092 | PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex)); | |
1093 | wxPyEndBlockThreads(blocked); | |
1094 | return tuple; | |
1095 | } | |
1096 | else | |
1097 | RETURN_NONE(); | |
1098 | } | |
1099 | PyObject *wxFileType_GetDescription(wxFileType *self){ | |
1100 | wxString str; | |
1101 | if (self->GetDescription(&str)) | |
1102 | return wx2PyString(str); | |
1103 | else | |
1104 | RETURN_NONE(); | |
1105 | } | |
1106 | PyObject *wxFileType_GetOpenCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
1107 | wxString str; | |
1108 | if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype))) | |
1109 | return wx2PyString(str); | |
1110 | else | |
1111 | RETURN_NONE(); | |
1112 | } | |
1113 | PyObject *wxFileType_GetPrintCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
1114 | wxString str; | |
1115 | if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype))) | |
1116 | return wx2PyString(str); | |
1117 | else | |
1118 | RETURN_NONE(); | |
1119 | } | |
1120 | PyObject *wxFileType_GetAllCommands(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
1121 | wxArrayString verbs; | |
1122 | wxArrayString commands; | |
1123 | if (self->GetAllCommands(&verbs, &commands, | |
1124 | wxFileType::MessageParameters(filename, mimetype))) { | |
1125 | bool blocked = wxPyBeginBlockThreads(); | |
1126 | PyObject* tuple = PyTuple_New(2); | |
1127 | PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs)); | |
1128 | PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands)); | |
1129 | wxPyEndBlockThreads(blocked); | |
1130 | return tuple; | |
1131 | } | |
1132 | else | |
1133 | RETURN_NONE(); | |
1134 | } | |
1135 | wxString FileType_ExpandCommand(wxString const &command,wxString const &filename,wxString const &mimetype){ | |
1136 | return wxFileType::ExpandCommand(command, | |
1137 | wxFileType::MessageParameters(filename, mimetype)); | |
1138 | } | |
1139 | PyObject *wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self){ | |
1140 | wxArrayString arr; | |
1141 | self->EnumAllFileTypes(arr); | |
1142 | return wxArrayString2PyList_helper(arr); | |
1143 | } | |
1144 | ||
1145 | #include <wx/artprov.h> | |
1146 | ||
1147 | static const wxString wxPyART_TOOLBAR(wxART_TOOLBAR); | |
1148 | static const wxString wxPyART_MENU(wxART_MENU); | |
1149 | static const wxString wxPyART_FRAME_ICON(wxART_FRAME_ICON); | |
1150 | static const wxString wxPyART_CMN_DIALOG(wxART_CMN_DIALOG); | |
1151 | static const wxString wxPyART_HELP_BROWSER(wxART_HELP_BROWSER); | |
1152 | static const wxString wxPyART_MESSAGE_BOX(wxART_MESSAGE_BOX); | |
1153 | static const wxString wxPyART_BUTTON(wxART_BUTTON); | |
1154 | static const wxString wxPyART_OTHER(wxART_OTHER); | |
1155 | static const wxString wxPyART_ADD_BOOKMARK(wxART_ADD_BOOKMARK); | |
1156 | static const wxString wxPyART_DEL_BOOKMARK(wxART_DEL_BOOKMARK); | |
1157 | static const wxString wxPyART_HELP_SIDE_PANEL(wxART_HELP_SIDE_PANEL); | |
1158 | static const wxString wxPyART_HELP_SETTINGS(wxART_HELP_SETTINGS); | |
1159 | static const wxString wxPyART_HELP_BOOK(wxART_HELP_BOOK); | |
1160 | static const wxString wxPyART_HELP_FOLDER(wxART_HELP_FOLDER); | |
1161 | static const wxString wxPyART_HELP_PAGE(wxART_HELP_PAGE); | |
1162 | static const wxString wxPyART_GO_BACK(wxART_GO_BACK); | |
1163 | static const wxString wxPyART_GO_FORWARD(wxART_GO_FORWARD); | |
1164 | static const wxString wxPyART_GO_UP(wxART_GO_UP); | |
1165 | static const wxString wxPyART_GO_DOWN(wxART_GO_DOWN); | |
1166 | static const wxString wxPyART_GO_TO_PARENT(wxART_GO_TO_PARENT); | |
1167 | static const wxString wxPyART_GO_HOME(wxART_GO_HOME); | |
1168 | static const wxString wxPyART_FILE_OPEN(wxART_FILE_OPEN); | |
1169 | static const wxString wxPyART_PRINT(wxART_PRINT); | |
1170 | static const wxString wxPyART_HELP(wxART_HELP); | |
1171 | static const wxString wxPyART_TIP(wxART_TIP); | |
1172 | static const wxString wxPyART_REPORT_VIEW(wxART_REPORT_VIEW); | |
1173 | static const wxString wxPyART_LIST_VIEW(wxART_LIST_VIEW); | |
1174 | static const wxString wxPyART_NEW_DIR(wxART_NEW_DIR); | |
1175 | static const wxString wxPyART_FOLDER(wxART_FOLDER); | |
1176 | static const wxString wxPyART_GO_DIR_UP(wxART_GO_DIR_UP); | |
1177 | static const wxString wxPyART_EXECUTABLE_FILE(wxART_EXECUTABLE_FILE); | |
1178 | static const wxString wxPyART_NORMAL_FILE(wxART_NORMAL_FILE); | |
1179 | static const wxString wxPyART_TICK_MARK(wxART_TICK_MARK); | |
1180 | static const wxString wxPyART_CROSS_MARK(wxART_CROSS_MARK); | |
1181 | static const wxString wxPyART_ERROR(wxART_ERROR); | |
1182 | static const wxString wxPyART_QUESTION(wxART_QUESTION); | |
1183 | static const wxString wxPyART_WARNING(wxART_WARNING); | |
1184 | static const wxString wxPyART_INFORMATION(wxART_INFORMATION); | |
1185 | static const wxString wxPyART_MISSING_IMAGE(wxART_MISSING_IMAGE); | |
1186 | // Python aware wxArtProvider | |
1187 | class wxPyArtProvider : public wxArtProvider { | |
1188 | public: | |
1189 | ||
1190 | virtual wxBitmap CreateBitmap(const wxArtID& id, | |
1191 | const wxArtClient& client, | |
1192 | const wxSize& size) { | |
1193 | wxBitmap rval = wxNullBitmap; | |
1194 | bool blocked = wxPyBeginBlockThreads(); | |
1195 | if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) { | |
1196 | PyObject* so = wxPyConstructObject((void*)&size, wxT("wxSize"), 0); | |
1197 | PyObject* ro; | |
1198 | wxBitmap* ptr; | |
1199 | PyObject* s1, *s2; | |
1200 | s1 = wx2PyString(id); | |
1201 | s2 = wx2PyString(client); | |
1202 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so)); | |
1203 | Py_DECREF(so); | |
1204 | Py_DECREF(s1); | |
1205 | Py_DECREF(s2); | |
1206 | if (ro) { | |
1207 | if (wxPyConvertSwigPtr(ro, (void**)&ptr, wxT("wxBitmap"))) | |
1208 | rval = *ptr; | |
1209 | Py_DECREF(ro); | |
1210 | } | |
1211 | } | |
1212 | wxPyEndBlockThreads(blocked); | |
1213 | return rval; | |
1214 | } | |
1215 | ||
1216 | PYPRIVATE; | |
1217 | }; | |
1218 | ||
1219 | void wxPyArtProvider_Destroy(wxPyArtProvider *self){ delete self; } | |
1220 | ||
1221 | ||
1222 | ||
1223 | static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) { | |
1224 | PyObject* ret = PyTuple_New(3); | |
1225 | if (ret) { | |
1226 | PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag)); | |
1227 | PyTuple_SET_ITEM(ret, 1, wx2PyString(str)); | |
1228 | PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index)); | |
1229 | } | |
1230 | return ret; | |
1231 | } | |
1232 | ||
1233 | PyObject *wxConfigBase_GetFirstGroup(wxConfigBase *self){ | |
1234 | bool cont; | |
1235 | long index = 0; | |
1236 | wxString value; | |
1237 | ||
1238 | cont = self->GetFirstGroup(value, index); | |
1239 | return __EnumerationHelper(cont, value, index); | |
1240 | } | |
1241 | PyObject *wxConfigBase_GetNextGroup(wxConfigBase *self,long index){ | |
1242 | bool cont; | |
1243 | wxString value; | |
1244 | ||
1245 | cont = self->GetNextGroup(value, index); | |
1246 | return __EnumerationHelper(cont, value, index); | |
1247 | } | |
1248 | PyObject *wxConfigBase_GetFirstEntry(wxConfigBase *self){ | |
1249 | bool cont; | |
1250 | long index = 0; | |
1251 | wxString value; | |
1252 | ||
1253 | cont = self->GetFirstEntry(value, index); | |
1254 | return __EnumerationHelper(cont, value, index); | |
1255 | } | |
1256 | PyObject *wxConfigBase_GetNextEntry(wxConfigBase *self,long index){ | |
1257 | bool cont; | |
1258 | wxString value; | |
1259 | ||
1260 | cont = self->GetNextEntry(value, index); | |
1261 | return __EnumerationHelper(cont, value, index); | |
1262 | } | |
1263 | long wxConfigBase_ReadInt(wxConfigBase *self,wxString const &key,long defaultVal){ | |
1264 | long rv; | |
1265 | self->Read(key, &rv, defaultVal); | |
1266 | return rv; | |
1267 | } | |
1268 | ||
1269 | // See my_fragments.i | |
1270 | SWIGSTATICINLINE(int) | |
1271 | SWIG_AsVal_double(PyObject *obj, double* val) | |
1272 | { | |
1273 | if (PyNumber_Check(obj)) { | |
1274 | if (val) *val = PyFloat_AsDouble(obj); | |
1275 | return 1; | |
1276 | } | |
1277 | else { | |
1278 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
1279 | obj->ob_type->tp_name); | |
1280 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
1281 | Py_DECREF(errmsg); | |
1282 | } | |
1283 | return 0; | |
1284 | } | |
1285 | ||
1286 | ||
1287 | SWIGSTATICINLINE(double) | |
1288 | SWIG_As_double(PyObject* obj) | |
1289 | { | |
1290 | double v; | |
1291 | if (!SWIG_AsVal_double(obj, &v)) { | |
1292 | /* | |
1293 | this is needed to make valgrind/purify happier. the other | |
1294 | solution is throw an exception, but since this code should work | |
1295 | with plain C .... | |
1296 | */ | |
1297 | memset((void*)&v, 0, sizeof(double)); | |
1298 | } | |
1299 | return v; | |
1300 | } | |
1301 | ||
1302 | ||
1303 | SWIGSTATICINLINE(int) | |
1304 | SWIG_Check_double(PyObject* obj) | |
1305 | { | |
1306 | return SWIG_AsVal_double(obj, (double*)0); | |
1307 | } | |
1308 | ||
1309 | double wxConfigBase_ReadFloat(wxConfigBase *self,wxString const &key,double defaultVal){ | |
1310 | double rv; | |
1311 | self->Read(key, &rv, defaultVal); | |
1312 | return rv; | |
1313 | } | |
1314 | bool wxConfigBase_ReadBool(wxConfigBase *self,wxString const &key,bool defaultVal){ | |
1315 | bool rv; | |
1316 | self->Read(key, &rv, defaultVal); | |
1317 | return rv; | |
1318 | } | |
1319 | ||
1320 | #include <wx/datetime.h> | |
1321 | ||
1322 | ||
1323 | static const wxString wxPyDateFormatStr(wxT("%c")); | |
1324 | static const wxString wxPyTimeSpanFormatStr(wxT("%H:%M:%S")); | |
1325 | ||
1326 | #define LOCAL_TZ wxDateTime::Local | |
1327 | ||
1328 | ||
1329 | #if UINT_MAX < LONG_MAX | |
1330 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
1331 | #define SWIG_From_unsigned_SS_int SWIG_From_long | |
1332 | /*@@*/ | |
1333 | #else | |
1334 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
1335 | #define SWIG_From_unsigned_SS_int SWIG_From_unsigned_SS_long | |
1336 | /*@@*/ | |
1337 | #endif | |
1338 | ||
1339 | wxDateTime wxDateTime___add____SWIG_0(wxDateTime *self,wxTimeSpan const &other){ return *self + other; } | |
1340 | wxDateTime wxDateTime___add____SWIG_1(wxDateTime *self,wxDateSpan const &other){ return *self + other; } | |
1341 | wxTimeSpan wxDateTime___sub____SWIG_0(wxDateTime *self,wxDateTime const &other){ return *self - other; } | |
1342 | wxDateTime wxDateTime___sub____SWIG_1(wxDateTime *self,wxTimeSpan const &other){ return *self - other; } | |
1343 | wxDateTime wxDateTime___sub____SWIG_2(wxDateTime *self,wxDateSpan const &other){ return *self - other; } | |
1344 | bool wxDateTime___lt__(wxDateTime *self,wxDateTime const *other){ | |
1345 | if (!other || !self->IsValid() || !other->IsValid()) return self < other; | |
1346 | return (*self < *other); | |
1347 | } | |
1348 | bool wxDateTime___le__(wxDateTime *self,wxDateTime const *other){ | |
1349 | if (!other || !self->IsValid() || !other->IsValid()) return self <= other; | |
1350 | return (*self <= *other); | |
1351 | } | |
1352 | bool wxDateTime___gt__(wxDateTime *self,wxDateTime const *other){ | |
1353 | if (!other || !self->IsValid() || !other->IsValid()) return self > other; | |
1354 | return (*self > *other); | |
1355 | } | |
1356 | bool wxDateTime___ge__(wxDateTime *self,wxDateTime const *other){ | |
1357 | if (!other || !self->IsValid() || !other->IsValid()) return self >= other; | |
1358 | return (*self >= *other); | |
1359 | } | |
1360 | bool wxDateTime___eq__(wxDateTime *self,wxDateTime const *other){ | |
1361 | if (!other || !self->IsValid() || !other->IsValid()) return self == other; | |
1362 | return (*self == *other); | |
1363 | } | |
1364 | bool wxDateTime___ne__(wxDateTime *self,wxDateTime const *other){ | |
1365 | if (!other || !self->IsValid() || !other->IsValid()) return self != other; | |
1366 | return (*self != *other); | |
1367 | } | |
1368 | int wxDateTime_ParseRfc822Date(wxDateTime *self,wxString const &date){ | |
1369 | const wxChar* rv; | |
1370 | const wxChar* _date = date; | |
1371 | rv = self->ParseRfc822Date(_date); | |
1372 | if (rv == NULL) return -1; | |
1373 | return rv - _date; | |
1374 | } | |
1375 | int wxDateTime_ParseFormat(wxDateTime *self,wxString const &date,wxString const &format,wxDateTime const &dateDef){ | |
1376 | const wxChar* rv; | |
1377 | const wxChar* _date = date; | |
1378 | rv = self->ParseFormat(_date, format, dateDef); | |
1379 | if (rv == NULL) return -1; | |
1380 | return rv - _date; | |
1381 | } | |
1382 | int wxDateTime_ParseDateTime(wxDateTime *self,wxString const &datetime){ | |
1383 | const wxChar* rv; | |
1384 | const wxChar* _datetime = datetime; | |
1385 | rv = self->ParseDateTime(_datetime); | |
1386 | if (rv == NULL) return -1; | |
1387 | return rv - _datetime; | |
1388 | } | |
1389 | int wxDateTime_ParseDate(wxDateTime *self,wxString const &date){ | |
1390 | const wxChar* rv; | |
1391 | const wxChar* _date = date; | |
1392 | rv = self->ParseDate(_date); | |
1393 | if (rv == NULL) return -1; | |
1394 | return rv - _date; | |
1395 | } | |
1396 | int wxDateTime_ParseTime(wxDateTime *self,wxString const &time){ | |
1397 | const wxChar* rv; | |
1398 | const wxChar* _time = time; | |
1399 | rv = self->ParseTime(_time); | |
1400 | if (rv == NULL) return -1; | |
1401 | return rv - _time; | |
1402 | } | |
1403 | wxTimeSpan wxTimeSpan___add__(wxTimeSpan *self,wxTimeSpan const &other){ return *self + other; } | |
1404 | wxTimeSpan wxTimeSpan___sub__(wxTimeSpan *self,wxTimeSpan const &other){ return *self - other; } | |
1405 | wxTimeSpan wxTimeSpan___mul__(wxTimeSpan *self,int n){ return *self * n; } | |
1406 | wxTimeSpan wxTimeSpan___rmul__(wxTimeSpan *self,int n){ return n * *self; } | |
1407 | bool wxTimeSpan___lt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self < *other) : false; } | |
1408 | bool wxTimeSpan___le__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self <= *other) : false; } | |
1409 | bool wxTimeSpan___gt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self > *other) : true; } | |
1410 | bool wxTimeSpan___ge__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self >= *other) : true; } | |
1411 | bool wxTimeSpan___eq__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self == *other) : false; } | |
1412 | bool wxTimeSpan___ne__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self != *other) : true; } | |
1413 | wxDateSpan wxDateSpan___add__(wxDateSpan *self,wxDateSpan const &other){ return *self + other; } | |
1414 | wxDateSpan wxDateSpan___sub__(wxDateSpan *self,wxDateSpan const &other){ return *self - other; } | |
1415 | wxDateSpan wxDateSpan___mul__(wxDateSpan *self,int n){ return *self * n; } | |
1416 | wxDateSpan wxDateSpan___rmul__(wxDateSpan *self,int n){ return n * *self; } | |
1417 | bool wxDateSpan___eq__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self == *other) : false; } | |
1418 | bool wxDateSpan___ne__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self != *other) : true; } | |
1419 | ||
1420 | #include <wx/dataobj.h> | |
1421 | ||
1422 | PyObject *wxDataObject_GetAllFormats(wxDataObject *self,wxDataObject::Direction dir){ | |
1423 | size_t count = self->GetFormatCount(dir); | |
1424 | wxDataFormat* formats = new wxDataFormat[count]; | |
1425 | self->GetAllFormats(formats, dir); | |
1426 | ||
1427 | bool blocked = wxPyBeginBlockThreads(); | |
1428 | PyObject* list = PyList_New(count); | |
1429 | for (size_t i=0; i<count; i++) { | |
1430 | wxDataFormat* format = new wxDataFormat(formats[i]); | |
1431 | PyObject* obj = wxPyConstructObject((void*)format, wxT("wxDataFormat"), true); | |
1432 | PyList_Append(list, obj); | |
1433 | Py_DECREF(obj); | |
1434 | } | |
1435 | wxPyEndBlockThreads(blocked); | |
1436 | delete [] formats; | |
1437 | return list; | |
1438 | } | |
1439 | PyObject *wxDataObject_GetDataHere(wxDataObject *self,wxDataFormat const &format){ | |
1440 | PyObject* rval = NULL; | |
1441 | size_t size = self->GetDataSize(format); | |
1442 | bool blocked = wxPyBeginBlockThreads(); | |
1443 | if (size) { | |
1444 | char* buf = new char[size]; | |
1445 | if (self->GetDataHere(format, buf)) | |
1446 | rval = PyString_FromStringAndSize(buf, size); | |
1447 | delete [] buf; | |
1448 | } | |
1449 | if (! rval) { | |
1450 | rval = Py_None; | |
1451 | Py_INCREF(rval); | |
1452 | } | |
1453 | wxPyEndBlockThreads(blocked); | |
1454 | return rval; | |
1455 | } | |
1456 | bool wxDataObject_SetData(wxDataObject *self,wxDataFormat const &format,PyObject *data){ | |
1457 | bool rval; | |
1458 | bool blocked = wxPyBeginBlockThreads(); | |
1459 | if (PyString_Check(data)) { | |
1460 | rval = self->SetData(format, PyString_Size(data), PyString_AsString(data)); | |
1461 | } | |
1462 | else { | |
1463 | // raise a TypeError if not a string | |
1464 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
1465 | rval = false; | |
1466 | } | |
1467 | wxPyEndBlockThreads(blocked); | |
1468 | return rval; | |
1469 | } | |
1470 | PyObject *wxDataObjectSimple_GetDataHere(wxDataObjectSimple *self){ | |
1471 | PyObject* rval = NULL; | |
1472 | size_t size = self->GetDataSize(); | |
1473 | bool blocked = wxPyBeginBlockThreads(); | |
1474 | if (size) { | |
1475 | char* buf = new char[size]; | |
1476 | if (self->GetDataHere(buf)) | |
1477 | rval = PyString_FromStringAndSize(buf, size); | |
1478 | delete [] buf; | |
1479 | } | |
1480 | if (! rval) { | |
1481 | rval = Py_None; | |
1482 | Py_INCREF(rval); | |
1483 | } | |
1484 | wxPyEndBlockThreads(blocked); | |
1485 | return rval; | |
1486 | } | |
1487 | bool wxDataObjectSimple_SetData(wxDataObjectSimple *self,PyObject *data){ | |
1488 | bool rval; | |
1489 | bool blocked = wxPyBeginBlockThreads(); | |
1490 | if (PyString_Check(data)) { | |
1491 | rval = self->SetData(PyString_Size(data), PyString_AsString(data)); | |
1492 | } | |
1493 | else { | |
1494 | // raise a TypeError if not a string | |
1495 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
1496 | rval = false; | |
1497 | } | |
1498 | wxPyEndBlockThreads(blocked); | |
1499 | return rval; | |
1500 | } | |
1501 | // Create a new class for wxPython to use | |
1502 | class wxPyDataObjectSimple : public wxDataObjectSimple { | |
1503 | public: | |
1504 | wxPyDataObjectSimple(const wxDataFormat& format = wxFormatInvalid) | |
1505 | : wxDataObjectSimple(format) {} | |
1506 | ||
1507 | DEC_PYCALLBACK_SIZET__const(GetDataSize); | |
1508 | bool GetDataHere(void *buf) const; | |
1509 | bool SetData(size_t len, const void *buf) const; | |
1510 | PYPRIVATE; | |
1511 | }; | |
1512 | ||
1513 | IMP_PYCALLBACK_SIZET__const(wxPyDataObjectSimple, wxDataObjectSimple, GetDataSize); | |
1514 | ||
1515 | bool wxPyDataObjectSimple::GetDataHere(void *buf) const { | |
1516 | // We need to get the data for this object and write it to buf. I think | |
1517 | // the best way to do this for wxPython is to have the Python method | |
1518 | // return either a string or None and then act appropriately with the | |
1519 | // C++ version. | |
1520 | ||
1521 | bool rval = false; | |
1522 | bool blocked = wxPyBeginBlockThreads(); | |
1523 | if (wxPyCBH_findCallback(m_myInst, "GetDataHere")) { | |
1524 | PyObject* ro; | |
1525 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
1526 | if (ro) { | |
1527 | rval = (ro != Py_None && PyString_Check(ro)); | |
1528 | if (rval) | |
1529 | memcpy(buf, PyString_AsString(ro), PyString_Size(ro)); | |
1530 | Py_DECREF(ro); | |
1531 | } | |
1532 | } | |
1533 | wxPyEndBlockThreads(blocked); | |
1534 | return rval; | |
1535 | } | |
1536 | ||
1537 | bool wxPyDataObjectSimple::SetData(size_t len, const void *buf) const{ | |
1538 | // For this one we simply need to make a string from buf and len | |
1539 | // and send it to the Python method. | |
1540 | bool rval = false; | |
1541 | bool blocked = wxPyBeginBlockThreads(); | |
1542 | if (wxPyCBH_findCallback(m_myInst, "SetData")) { | |
1543 | PyObject* data = PyString_FromStringAndSize((char*)buf, len); | |
1544 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", data)); | |
1545 | Py_DECREF(data); | |
1546 | } | |
1547 | wxPyEndBlockThreads(blocked); | |
1548 | return rval; | |
1549 | } | |
1550 | ||
1551 | // Create a new class for wxPython to use | |
1552 | class wxPyTextDataObject : public wxTextDataObject { | |
1553 | public: | |
1554 | wxPyTextDataObject(const wxString& text = wxPyEmptyString) | |
1555 | : wxTextDataObject(text) {} | |
1556 | ||
1557 | DEC_PYCALLBACK_SIZET__const(GetTextLength); | |
1558 | DEC_PYCALLBACK_STRING__const(GetText); | |
1559 | DEC_PYCALLBACK__STRING(SetText); | |
1560 | PYPRIVATE; | |
1561 | }; | |
1562 | ||
1563 | IMP_PYCALLBACK_SIZET__const(wxPyTextDataObject, wxTextDataObject, GetTextLength); | |
1564 | IMP_PYCALLBACK_STRING__const(wxPyTextDataObject, wxTextDataObject, GetText); | |
1565 | IMP_PYCALLBACK__STRING(wxPyTextDataObject, wxTextDataObject, SetText); | |
1566 | ||
1567 | ||
1568 | // Create a new class for wxPython to use | |
1569 | class wxPyBitmapDataObject : public wxBitmapDataObject { | |
1570 | public: | |
1571 | wxPyBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap) | |
1572 | : wxBitmapDataObject(bitmap) {} | |
1573 | ||
1574 | wxBitmap GetBitmap() const; | |
1575 | void SetBitmap(const wxBitmap& bitmap); | |
1576 | PYPRIVATE; | |
1577 | }; | |
1578 | ||
1579 | wxBitmap wxPyBitmapDataObject::GetBitmap() const { | |
1580 | wxBitmap* rval = &wxNullBitmap; | |
1581 | bool blocked = wxPyBeginBlockThreads(); | |
1582 | if (wxPyCBH_findCallback(m_myInst, "GetBitmap")) { | |
1583 | PyObject* ro; | |
1584 | wxBitmap* ptr; | |
1585 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
1586 | if (ro) { | |
1587 | if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxBitmap"))) | |
1588 | rval = ptr; | |
1589 | Py_DECREF(ro); | |
1590 | } | |
1591 | } | |
1592 | wxPyEndBlockThreads(blocked); | |
1593 | return *rval; | |
1594 | } | |
1595 | ||
1596 | void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) { | |
1597 | bool blocked = wxPyBeginBlockThreads(); | |
1598 | if (wxPyCBH_findCallback(m_myInst, "SetBitmap")) { | |
1599 | PyObject* bo = wxPyConstructObject((void*)&bitmap, wxT("wxBitmap"), false); | |
1600 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", bo)); | |
1601 | Py_DECREF(bo); | |
1602 | } | |
1603 | wxPyEndBlockThreads(blocked); | |
1604 | } | |
1605 | ||
1606 | bool wxCustomDataObject_SetData(wxCustomDataObject *self,PyObject *data){ | |
1607 | bool rval; | |
1608 | bool blocked = wxPyBeginBlockThreads(); | |
1609 | if (PyString_Check(data)) { | |
1610 | rval = self->SetData(PyString_Size(data), PyString_AsString(data)); | |
1611 | } | |
1612 | else { | |
1613 | // raise a TypeError if not a string | |
1614 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
1615 | rval = false; | |
1616 | } | |
1617 | wxPyEndBlockThreads(blocked); | |
1618 | return rval; | |
1619 | } | |
1620 | PyObject *wxCustomDataObject_GetData(wxCustomDataObject *self){ | |
1621 | PyObject* obj; | |
1622 | bool blocked = wxPyBeginBlockThreads(); | |
1623 | obj = PyString_FromStringAndSize((char*)self->GetData(), self->GetSize()); | |
1624 | wxPyEndBlockThreads(blocked); | |
1625 | return obj; | |
1626 | } | |
1627 | ||
1628 | class wxMetafileDataObject : public wxDataObjectSimple | |
1629 | { | |
1630 | public: | |
1631 | wxMetafileDataObject() { wxPyRaiseNotImplemented(); } | |
1632 | }; | |
1633 | ||
1634 | ||
1635 | IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback); | |
1636 | ||
1637 | ||
1638 | IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave); | |
1639 | IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter); | |
1640 | IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver); | |
1641 | IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData); | |
1642 | IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop); | |
1643 | ||
1644 | ||
1645 | class wxPyTextDropTarget : public wxTextDropTarget { | |
1646 | public: | |
1647 | wxPyTextDropTarget() {} | |
1648 | ||
1649 | DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText); | |
1650 | ||
1651 | DEC_PYCALLBACK__(OnLeave); | |
1652 | DEC_PYCALLBACK_DR_2WXCDR(OnEnter); | |
1653 | DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); | |
1654 | DEC_PYCALLBACK_DR_2WXCDR(OnData); | |
1655 | DEC_PYCALLBACK_BOOL_INTINT(OnDrop); | |
1656 | ||
1657 | PYPRIVATE; | |
1658 | }; | |
1659 | ||
1660 | IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText); | |
1661 | IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave); | |
1662 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter); | |
1663 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver); | |
1664 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData); | |
1665 | IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop); | |
1666 | ||
1667 | ||
1668 | ||
1669 | class wxPyFileDropTarget : public wxFileDropTarget { | |
1670 | public: | |
1671 | wxPyFileDropTarget() {} | |
1672 | ||
1673 | virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames); | |
1674 | ||
1675 | DEC_PYCALLBACK__(OnLeave); | |
1676 | DEC_PYCALLBACK_DR_2WXCDR(OnEnter); | |
1677 | DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); | |
1678 | DEC_PYCALLBACK_DR_2WXCDR(OnData); | |
1679 | DEC_PYCALLBACK_BOOL_INTINT(OnDrop); | |
1680 | ||
1681 | PYPRIVATE; | |
1682 | }; | |
1683 | ||
1684 | bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y, | |
1685 | const wxArrayString& filenames) { | |
1686 | bool rval = false; | |
1687 | bool blocked = wxPyBeginBlockThreads(); | |
1688 | if (wxPyCBH_findCallback(m_myInst, "OnDropFiles")) { | |
1689 | PyObject* list = wxArrayString2PyList_helper(filenames); | |
1690 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",x,y,list)); | |
1691 | Py_DECREF(list); | |
1692 | } | |
1693 | wxPyEndBlockThreads(blocked); | |
1694 | return rval; | |
1695 | } | |
1696 | ||
1697 | ||
1698 | ||
1699 | IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave); | |
1700 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter); | |
1701 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver); | |
1702 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData); | |
1703 | IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop); | |
1704 | ||
1705 | ||
1706 | ||
1707 | ||
1708 | bool wxClipboardLocker___nonzero__(wxClipboardLocker *self){ return !!(*self); } | |
1709 | ||
1710 | #include <wx/display.h> | |
1711 | ||
1712 | bool wxVideoMode___eq__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self == *other) : false; } | |
1713 | bool wxVideoMode___ne__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self != *other) : true; } | |
1714 | ||
1715 | // dummy version of wxDisplay for when it is not enabled in the wxWidgets build | |
1716 | #if !wxUSE_DISPLAY | |
1717 | #include <wx/dynarray.h> | |
1718 | #include <wx/vidmode.h> | |
1719 | ||
1720 | WX_DECLARE_OBJARRAY(wxVideoMode, wxArrayVideoModes); | |
1721 | #include "wx/arrimpl.cpp" | |
1722 | WX_DEFINE_OBJARRAY(wxArrayVideoModes); | |
1723 | const wxVideoMode wxDefaultVideoMode; | |
1724 | ||
1725 | class wxDisplay | |
1726 | { | |
1727 | public: | |
1728 | wxDisplay(size_t index = 0) { wxPyRaiseNotImplemented(); } | |
1729 | ~wxDisplay() {} | |
1730 | ||
1731 | static size_t GetCount() | |
1732 | { wxPyRaiseNotImplemented(); return 0; } | |
1733 | ||
1734 | static int GetFromPoint(const wxPoint& pt) | |
1735 | { wxPyRaiseNotImplemented(); return wxNOT_FOUND; } | |
1736 | static int GetFromWindow(wxWindow *window) | |
1737 | { wxPyRaiseNotImplemented(); return wxNOT_FOUND; } | |
1738 | ||
1739 | virtual bool IsOk() const { return false; } | |
1740 | virtual wxRect GetGeometry() const { wxRect r; return r; } | |
1741 | virtual wxString GetName() const { return wxEmptyString; } | |
1742 | bool IsPrimary() const { return false; } | |
1743 | ||
1744 | wxArrayVideoModes GetModes(const wxVideoMode& mode = wxDefaultVideoMode) | |
1745 | { wxArrayVideoModes a; return a; } | |
1746 | ||
1747 | virtual wxVideoMode GetCurrentMode() const | |
1748 | { return wxDefaultVideoMode; } | |
1749 | ||
1750 | virtual bool ChangeMode(const wxVideoMode& mode = wxDefaultVideoMode) | |
1751 | { return false; } | |
1752 | ||
1753 | void ResetMode() {} | |
1754 | }; | |
1755 | #endif | |
1756 | ||
1757 | int Display_GetFromWindow(wxWindow *window){ wxPyRaiseNotImplemented(); return wxNOT_FOUND; } | |
1758 | PyObject *wxDisplay_GetModes(wxDisplay *self,wxVideoMode const &mode){ | |
1759 | PyObject* pyList = NULL; | |
1760 | wxArrayVideoModes arr = self->GetModes(mode); | |
1761 | bool blocked = wxPyBeginBlockThreads(); | |
1762 | pyList = PyList_New(0); | |
1763 | for (int i=0; i < arr.GetCount(); i++) { | |
1764 | wxVideoMode* m = new wxVideoMode(arr.Item(i)); | |
1765 | PyObject* pyObj = wxPyConstructObject(m, wxT("wxVideoMode"), true); | |
1766 | PyList_Append(pyList, pyObj); | |
1767 | Py_DECREF(pyObj); | |
1768 | } | |
1769 | wxPyEndBlockThreads(blocked); | |
1770 | return pyList; | |
1771 | } | |
1772 | ||
1773 | #include <wx/stdpaths.h> | |
1774 | ||
1775 | wxStandardPaths *StandardPaths_Get(){ | |
1776 | return (wxStandardPaths*) &wxStandardPaths::Get(); | |
1777 | } | |
1778 | #ifdef __cplusplus | |
1779 | extern "C" { | |
1780 | #endif | |
1781 | static PyObject *_wrap_SystemSettings_GetColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
1782 | PyObject *resultobj; | |
1783 | int arg1 ; | |
1784 | wxColour result; | |
1785 | PyObject * obj0 = 0 ; | |
1786 | char *kwnames[] = { | |
1787 | (char *) "index", NULL | |
1788 | }; | |
1789 | ||
1790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetColour",kwnames,&obj0)) goto fail; | |
1791 | arg1 = (int)SWIG_As_int(obj0); | |
1792 | if (PyErr_Occurred()) SWIG_fail; | |
1793 | { | |
1794 | if (!wxPyCheckForApp()) SWIG_fail; | |
1795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1796 | result = wxSystemSettings::GetColour((wxSystemColour )arg1); | |
1797 | ||
1798 | wxPyEndAllowThreads(__tstate); | |
1799 | if (PyErr_Occurred()) SWIG_fail; | |
1800 | } | |
1801 | { | |
1802 | wxColour * resultptr; | |
1803 | resultptr = new wxColour((wxColour &) result); | |
1804 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
1805 | } | |
1806 | return resultobj; | |
1807 | fail: | |
1808 | return NULL; | |
1809 | } | |
1810 | ||
1811 | ||
1812 | static PyObject *_wrap_SystemSettings_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { | |
1813 | PyObject *resultobj; | |
1814 | int arg1 ; | |
1815 | wxFont result; | |
1816 | PyObject * obj0 = 0 ; | |
1817 | char *kwnames[] = { | |
1818 | (char *) "index", NULL | |
1819 | }; | |
1820 | ||
1821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetFont",kwnames,&obj0)) goto fail; | |
1822 | arg1 = (int)SWIG_As_int(obj0); | |
1823 | if (PyErr_Occurred()) SWIG_fail; | |
1824 | { | |
1825 | if (!wxPyCheckForApp()) SWIG_fail; | |
1826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1827 | result = wxSystemSettings::GetFont((wxSystemFont )arg1); | |
1828 | ||
1829 | wxPyEndAllowThreads(__tstate); | |
1830 | if (PyErr_Occurred()) SWIG_fail; | |
1831 | } | |
1832 | { | |
1833 | wxFont * resultptr; | |
1834 | resultptr = new wxFont((wxFont &) result); | |
1835 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
1836 | } | |
1837 | return resultobj; | |
1838 | fail: | |
1839 | return NULL; | |
1840 | } | |
1841 | ||
1842 | ||
1843 | static PyObject *_wrap_SystemSettings_GetMetric(PyObject *, PyObject *args, PyObject *kwargs) { | |
1844 | PyObject *resultobj; | |
1845 | int arg1 ; | |
1846 | int result; | |
1847 | PyObject * obj0 = 0 ; | |
1848 | char *kwnames[] = { | |
1849 | (char *) "index", NULL | |
1850 | }; | |
1851 | ||
1852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetMetric",kwnames,&obj0)) goto fail; | |
1853 | arg1 = (int)SWIG_As_int(obj0); | |
1854 | if (PyErr_Occurred()) SWIG_fail; | |
1855 | { | |
1856 | if (!wxPyCheckForApp()) SWIG_fail; | |
1857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1858 | result = (int)wxSystemSettings::GetMetric((wxSystemMetric )arg1); | |
1859 | ||
1860 | wxPyEndAllowThreads(__tstate); | |
1861 | if (PyErr_Occurred()) SWIG_fail; | |
1862 | } | |
1863 | resultobj = SWIG_From_int((int)result); | |
1864 | return resultobj; | |
1865 | fail: | |
1866 | return NULL; | |
1867 | } | |
1868 | ||
1869 | ||
1870 | static PyObject *_wrap_SystemSettings_HasFeature(PyObject *, PyObject *args, PyObject *kwargs) { | |
1871 | PyObject *resultobj; | |
1872 | int arg1 ; | |
1873 | bool result; | |
1874 | PyObject * obj0 = 0 ; | |
1875 | char *kwnames[] = { | |
1876 | (char *) "index", NULL | |
1877 | }; | |
1878 | ||
1879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_HasFeature",kwnames,&obj0)) goto fail; | |
1880 | arg1 = (int)SWIG_As_int(obj0); | |
1881 | if (PyErr_Occurred()) SWIG_fail; | |
1882 | { | |
1883 | if (!wxPyCheckForApp()) SWIG_fail; | |
1884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1885 | result = (bool)wxSystemSettings::HasFeature((wxSystemFeature )arg1); | |
1886 | ||
1887 | wxPyEndAllowThreads(__tstate); | |
1888 | if (PyErr_Occurred()) SWIG_fail; | |
1889 | } | |
1890 | { | |
1891 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1892 | } | |
1893 | return resultobj; | |
1894 | fail: | |
1895 | return NULL; | |
1896 | } | |
1897 | ||
1898 | ||
1899 | static PyObject *_wrap_SystemSettings_GetScreenType(PyObject *, PyObject *args, PyObject *kwargs) { | |
1900 | PyObject *resultobj; | |
1901 | int result; | |
1902 | char *kwnames[] = { | |
1903 | NULL | |
1904 | }; | |
1905 | ||
1906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SystemSettings_GetScreenType",kwnames)) goto fail; | |
1907 | { | |
1908 | if (!wxPyCheckForApp()) SWIG_fail; | |
1909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1910 | result = (int)wxSystemSettings::GetScreenType(); | |
1911 | ||
1912 | wxPyEndAllowThreads(__tstate); | |
1913 | if (PyErr_Occurred()) SWIG_fail; | |
1914 | } | |
1915 | resultobj = SWIG_From_int((int)result); | |
1916 | return resultobj; | |
1917 | fail: | |
1918 | return NULL; | |
1919 | } | |
1920 | ||
1921 | ||
1922 | static PyObject *_wrap_SystemSettings_SetScreenType(PyObject *, PyObject *args, PyObject *kwargs) { | |
1923 | PyObject *resultobj; | |
1924 | int arg1 ; | |
1925 | PyObject * obj0 = 0 ; | |
1926 | char *kwnames[] = { | |
1927 | (char *) "screen", NULL | |
1928 | }; | |
1929 | ||
1930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_SetScreenType",kwnames,&obj0)) goto fail; | |
1931 | arg1 = (int)SWIG_As_int(obj0); | |
1932 | if (PyErr_Occurred()) SWIG_fail; | |
1933 | { | |
1934 | if (!wxPyCheckForApp()) SWIG_fail; | |
1935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1936 | wxSystemSettings::SetScreenType((wxSystemScreenType )arg1); | |
1937 | ||
1938 | wxPyEndAllowThreads(__tstate); | |
1939 | if (PyErr_Occurred()) SWIG_fail; | |
1940 | } | |
1941 | Py_INCREF(Py_None); resultobj = Py_None; | |
1942 | return resultobj; | |
1943 | fail: | |
1944 | return NULL; | |
1945 | } | |
1946 | ||
1947 | ||
1948 | static PyObject * SystemSettings_swigregister(PyObject *, PyObject *args) { | |
1949 | PyObject *obj; | |
1950 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1951 | SWIG_TypeClientData(SWIGTYPE_p_wxSystemSettings, obj); | |
1952 | Py_INCREF(obj); | |
1953 | return Py_BuildValue((char *)""); | |
1954 | } | |
1955 | static int _wrap_WINDOW_DEFAULT_VARIANT_set(PyObject *) { | |
1956 | PyErr_SetString(PyExc_TypeError,"Variable WINDOW_DEFAULT_VARIANT is read-only."); | |
1957 | return 1; | |
1958 | } | |
1959 | ||
1960 | ||
1961 | static PyObject *_wrap_WINDOW_DEFAULT_VARIANT_get() { | |
1962 | PyObject *pyobj; | |
1963 | ||
1964 | { | |
1965 | #if wxUSE_UNICODE | |
1966 | pyobj = PyUnicode_FromWideChar((&wxPyWINDOW_DEFAULT_VARIANT)->c_str(), (&wxPyWINDOW_DEFAULT_VARIANT)->Len()); | |
1967 | #else | |
1968 | pyobj = PyString_FromStringAndSize((&wxPyWINDOW_DEFAULT_VARIANT)->c_str(), (&wxPyWINDOW_DEFAULT_VARIANT)->Len()); | |
1969 | #endif | |
1970 | } | |
1971 | return pyobj; | |
1972 | } | |
1973 | ||
1974 | ||
1975 | static PyObject *_wrap_new_SystemOptions(PyObject *, PyObject *args, PyObject *kwargs) { | |
1976 | PyObject *resultobj; | |
1977 | wxSystemOptions *result; | |
1978 | char *kwnames[] = { | |
1979 | NULL | |
1980 | }; | |
1981 | ||
1982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SystemOptions",kwnames)) goto fail; | |
1983 | { | |
1984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1985 | result = (wxSystemOptions *)new wxSystemOptions(); | |
1986 | ||
1987 | wxPyEndAllowThreads(__tstate); | |
1988 | if (PyErr_Occurred()) SWIG_fail; | |
1989 | } | |
1990 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSystemOptions, 1); | |
1991 | return resultobj; | |
1992 | fail: | |
1993 | return NULL; | |
1994 | } | |
1995 | ||
1996 | ||
1997 | static PyObject *_wrap_SystemOptions_SetOption(PyObject *, PyObject *args, PyObject *kwargs) { | |
1998 | PyObject *resultobj; | |
1999 | wxString *arg1 = 0 ; | |
2000 | wxString *arg2 = 0 ; | |
2001 | bool temp1 = false ; | |
2002 | bool temp2 = false ; | |
2003 | PyObject * obj0 = 0 ; | |
2004 | PyObject * obj1 = 0 ; | |
2005 | char *kwnames[] = { | |
2006 | (char *) "name",(char *) "value", NULL | |
2007 | }; | |
2008 | ||
2009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOption",kwnames,&obj0,&obj1)) goto fail; | |
2010 | { | |
2011 | arg1 = wxString_in_helper(obj0); | |
2012 | if (arg1 == NULL) SWIG_fail; | |
2013 | temp1 = true; | |
2014 | } | |
2015 | { | |
2016 | arg2 = wxString_in_helper(obj1); | |
2017 | if (arg2 == NULL) SWIG_fail; | |
2018 | temp2 = true; | |
2019 | } | |
2020 | { | |
2021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2022 | wxSystemOptions::SetOption((wxString const &)*arg1,(wxString const &)*arg2); | |
2023 | ||
2024 | wxPyEndAllowThreads(__tstate); | |
2025 | if (PyErr_Occurred()) SWIG_fail; | |
2026 | } | |
2027 | Py_INCREF(Py_None); resultobj = Py_None; | |
2028 | { | |
2029 | if (temp1) | |
2030 | delete arg1; | |
2031 | } | |
2032 | { | |
2033 | if (temp2) | |
2034 | delete arg2; | |
2035 | } | |
2036 | return resultobj; | |
2037 | fail: | |
2038 | { | |
2039 | if (temp1) | |
2040 | delete arg1; | |
2041 | } | |
2042 | { | |
2043 | if (temp2) | |
2044 | delete arg2; | |
2045 | } | |
2046 | return NULL; | |
2047 | } | |
2048 | ||
2049 | ||
2050 | static PyObject *_wrap_SystemOptions_SetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) { | |
2051 | PyObject *resultobj; | |
2052 | wxString *arg1 = 0 ; | |
2053 | int arg2 ; | |
2054 | bool temp1 = false ; | |
2055 | PyObject * obj0 = 0 ; | |
2056 | PyObject * obj1 = 0 ; | |
2057 | char *kwnames[] = { | |
2058 | (char *) "name",(char *) "value", NULL | |
2059 | }; | |
2060 | ||
2061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOptionInt",kwnames,&obj0,&obj1)) goto fail; | |
2062 | { | |
2063 | arg1 = wxString_in_helper(obj0); | |
2064 | if (arg1 == NULL) SWIG_fail; | |
2065 | temp1 = true; | |
2066 | } | |
2067 | arg2 = (int)SWIG_As_int(obj1); | |
2068 | if (PyErr_Occurred()) SWIG_fail; | |
2069 | { | |
2070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2071 | wxSystemOptions::SetOption((wxString const &)*arg1,arg2); | |
2072 | ||
2073 | wxPyEndAllowThreads(__tstate); | |
2074 | if (PyErr_Occurred()) SWIG_fail; | |
2075 | } | |
2076 | Py_INCREF(Py_None); resultobj = Py_None; | |
2077 | { | |
2078 | if (temp1) | |
2079 | delete arg1; | |
2080 | } | |
2081 | return resultobj; | |
2082 | fail: | |
2083 | { | |
2084 | if (temp1) | |
2085 | delete arg1; | |
2086 | } | |
2087 | return NULL; | |
2088 | } | |
2089 | ||
2090 | ||
2091 | static PyObject *_wrap_SystemOptions_GetOption(PyObject *, PyObject *args, PyObject *kwargs) { | |
2092 | PyObject *resultobj; | |
2093 | wxString *arg1 = 0 ; | |
2094 | wxString result; | |
2095 | bool temp1 = false ; | |
2096 | PyObject * obj0 = 0 ; | |
2097 | char *kwnames[] = { | |
2098 | (char *) "name", NULL | |
2099 | }; | |
2100 | ||
2101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOption",kwnames,&obj0)) goto fail; | |
2102 | { | |
2103 | arg1 = wxString_in_helper(obj0); | |
2104 | if (arg1 == NULL) SWIG_fail; | |
2105 | temp1 = true; | |
2106 | } | |
2107 | { | |
2108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2109 | result = wxSystemOptions::GetOption((wxString const &)*arg1); | |
2110 | ||
2111 | wxPyEndAllowThreads(__tstate); | |
2112 | if (PyErr_Occurred()) SWIG_fail; | |
2113 | } | |
2114 | { | |
2115 | #if wxUSE_UNICODE | |
2116 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2117 | #else | |
2118 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2119 | #endif | |
2120 | } | |
2121 | { | |
2122 | if (temp1) | |
2123 | delete arg1; | |
2124 | } | |
2125 | return resultobj; | |
2126 | fail: | |
2127 | { | |
2128 | if (temp1) | |
2129 | delete arg1; | |
2130 | } | |
2131 | return NULL; | |
2132 | } | |
2133 | ||
2134 | ||
2135 | static PyObject *_wrap_SystemOptions_GetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) { | |
2136 | PyObject *resultobj; | |
2137 | wxString *arg1 = 0 ; | |
2138 | int result; | |
2139 | bool temp1 = false ; | |
2140 | PyObject * obj0 = 0 ; | |
2141 | char *kwnames[] = { | |
2142 | (char *) "name", NULL | |
2143 | }; | |
2144 | ||
2145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOptionInt",kwnames,&obj0)) goto fail; | |
2146 | { | |
2147 | arg1 = wxString_in_helper(obj0); | |
2148 | if (arg1 == NULL) SWIG_fail; | |
2149 | temp1 = true; | |
2150 | } | |
2151 | { | |
2152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2153 | result = (int)wxSystemOptions::GetOptionInt((wxString const &)*arg1); | |
2154 | ||
2155 | wxPyEndAllowThreads(__tstate); | |
2156 | if (PyErr_Occurred()) SWIG_fail; | |
2157 | } | |
2158 | resultobj = SWIG_From_int((int)result); | |
2159 | { | |
2160 | if (temp1) | |
2161 | delete arg1; | |
2162 | } | |
2163 | return resultobj; | |
2164 | fail: | |
2165 | { | |
2166 | if (temp1) | |
2167 | delete arg1; | |
2168 | } | |
2169 | return NULL; | |
2170 | } | |
2171 | ||
2172 | ||
2173 | static PyObject *_wrap_SystemOptions_HasOption(PyObject *, PyObject *args, PyObject *kwargs) { | |
2174 | PyObject *resultobj; | |
2175 | wxString *arg1 = 0 ; | |
2176 | bool result; | |
2177 | bool temp1 = false ; | |
2178 | PyObject * obj0 = 0 ; | |
2179 | char *kwnames[] = { | |
2180 | (char *) "name", NULL | |
2181 | }; | |
2182 | ||
2183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_HasOption",kwnames,&obj0)) goto fail; | |
2184 | { | |
2185 | arg1 = wxString_in_helper(obj0); | |
2186 | if (arg1 == NULL) SWIG_fail; | |
2187 | temp1 = true; | |
2188 | } | |
2189 | { | |
2190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2191 | result = (bool)wxSystemOptions::HasOption((wxString const &)*arg1); | |
2192 | ||
2193 | wxPyEndAllowThreads(__tstate); | |
2194 | if (PyErr_Occurred()) SWIG_fail; | |
2195 | } | |
2196 | { | |
2197 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2198 | } | |
2199 | { | |
2200 | if (temp1) | |
2201 | delete arg1; | |
2202 | } | |
2203 | return resultobj; | |
2204 | fail: | |
2205 | { | |
2206 | if (temp1) | |
2207 | delete arg1; | |
2208 | } | |
2209 | return NULL; | |
2210 | } | |
2211 | ||
2212 | ||
2213 | static PyObject * SystemOptions_swigregister(PyObject *, PyObject *args) { | |
2214 | PyObject *obj; | |
2215 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2216 | SWIG_TypeClientData(SWIGTYPE_p_wxSystemOptions, obj); | |
2217 | Py_INCREF(obj); | |
2218 | return Py_BuildValue((char *)""); | |
2219 | } | |
2220 | static int _wrap_FileSelectorPromptStr_set(PyObject *) { | |
2221 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only."); | |
2222 | return 1; | |
2223 | } | |
2224 | ||
2225 | ||
2226 | static PyObject *_wrap_FileSelectorPromptStr_get() { | |
2227 | PyObject *pyobj; | |
2228 | ||
2229 | { | |
2230 | #if wxUSE_UNICODE | |
2231 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
2232 | #else | |
2233 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
2234 | #endif | |
2235 | } | |
2236 | return pyobj; | |
2237 | } | |
2238 | ||
2239 | ||
2240 | static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *) { | |
2241 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only."); | |
2242 | return 1; | |
2243 | } | |
2244 | ||
2245 | ||
2246 | static PyObject *_wrap_FileSelectorDefaultWildcardStr_get() { | |
2247 | PyObject *pyobj; | |
2248 | ||
2249 | { | |
2250 | #if wxUSE_UNICODE | |
2251 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
2252 | #else | |
2253 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
2254 | #endif | |
2255 | } | |
2256 | return pyobj; | |
2257 | } | |
2258 | ||
2259 | ||
2260 | static int _wrap_DirSelectorPromptStr_set(PyObject *) { | |
2261 | PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only."); | |
2262 | return 1; | |
2263 | } | |
2264 | ||
2265 | ||
2266 | static PyObject *_wrap_DirSelectorPromptStr_get() { | |
2267 | PyObject *pyobj; | |
2268 | ||
2269 | { | |
2270 | #if wxUSE_UNICODE | |
2271 | pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
2272 | #else | |
2273 | pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
2274 | #endif | |
2275 | } | |
2276 | return pyobj; | |
2277 | } | |
2278 | ||
2279 | ||
2280 | static PyObject *_wrap_NewId(PyObject *, PyObject *args, PyObject *kwargs) { | |
2281 | PyObject *resultobj; | |
2282 | long result; | |
2283 | char *kwnames[] = { | |
2284 | NULL | |
2285 | }; | |
2286 | ||
2287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewId",kwnames)) goto fail; | |
2288 | { | |
2289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2290 | result = (long)wxNewId(); | |
2291 | ||
2292 | wxPyEndAllowThreads(__tstate); | |
2293 | if (PyErr_Occurred()) SWIG_fail; | |
2294 | } | |
2295 | resultobj = SWIG_From_long((long)result); | |
2296 | return resultobj; | |
2297 | fail: | |
2298 | return NULL; | |
2299 | } | |
2300 | ||
2301 | ||
2302 | static PyObject *_wrap_RegisterId(PyObject *, PyObject *args, PyObject *kwargs) { | |
2303 | PyObject *resultobj; | |
2304 | long arg1 ; | |
2305 | PyObject * obj0 = 0 ; | |
2306 | char *kwnames[] = { | |
2307 | (char *) "id", NULL | |
2308 | }; | |
2309 | ||
2310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegisterId",kwnames,&obj0)) goto fail; | |
2311 | arg1 = (long)SWIG_As_long(obj0); | |
2312 | if (PyErr_Occurred()) SWIG_fail; | |
2313 | { | |
2314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2315 | wxRegisterId(arg1); | |
2316 | ||
2317 | wxPyEndAllowThreads(__tstate); | |
2318 | if (PyErr_Occurred()) SWIG_fail; | |
2319 | } | |
2320 | Py_INCREF(Py_None); resultobj = Py_None; | |
2321 | return resultobj; | |
2322 | fail: | |
2323 | return NULL; | |
2324 | } | |
2325 | ||
2326 | ||
2327 | static PyObject *_wrap_GetCurrentId(PyObject *, PyObject *args, PyObject *kwargs) { | |
2328 | PyObject *resultobj; | |
2329 | long result; | |
2330 | char *kwnames[] = { | |
2331 | NULL | |
2332 | }; | |
2333 | ||
2334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentId",kwnames)) goto fail; | |
2335 | { | |
2336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2337 | result = (long)wxGetCurrentId(); | |
2338 | ||
2339 | wxPyEndAllowThreads(__tstate); | |
2340 | if (PyErr_Occurred()) SWIG_fail; | |
2341 | } | |
2342 | resultobj = SWIG_From_long((long)result); | |
2343 | return resultobj; | |
2344 | fail: | |
2345 | return NULL; | |
2346 | } | |
2347 | ||
2348 | ||
2349 | static PyObject *_wrap_IsStockID(PyObject *, PyObject *args, PyObject *kwargs) { | |
2350 | PyObject *resultobj; | |
2351 | int arg1 ; | |
2352 | bool result; | |
2353 | PyObject * obj0 = 0 ; | |
2354 | char *kwnames[] = { | |
2355 | (char *) "id", NULL | |
2356 | }; | |
2357 | ||
2358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsStockID",kwnames,&obj0)) goto fail; | |
2359 | arg1 = (int)SWIG_As_int(obj0); | |
2360 | if (PyErr_Occurred()) SWIG_fail; | |
2361 | { | |
2362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2363 | result = (bool)wxIsStockID(arg1); | |
2364 | ||
2365 | wxPyEndAllowThreads(__tstate); | |
2366 | if (PyErr_Occurred()) SWIG_fail; | |
2367 | } | |
2368 | { | |
2369 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2370 | } | |
2371 | return resultobj; | |
2372 | fail: | |
2373 | return NULL; | |
2374 | } | |
2375 | ||
2376 | ||
2377 | static PyObject *_wrap_IsStockLabel(PyObject *, PyObject *args, PyObject *kwargs) { | |
2378 | PyObject *resultobj; | |
2379 | int arg1 ; | |
2380 | wxString *arg2 = 0 ; | |
2381 | bool result; | |
2382 | bool temp2 = false ; | |
2383 | PyObject * obj0 = 0 ; | |
2384 | PyObject * obj1 = 0 ; | |
2385 | char *kwnames[] = { | |
2386 | (char *) "id",(char *) "label", NULL | |
2387 | }; | |
2388 | ||
2389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IsStockLabel",kwnames,&obj0,&obj1)) goto fail; | |
2390 | arg1 = (int)SWIG_As_int(obj0); | |
2391 | if (PyErr_Occurred()) SWIG_fail; | |
2392 | { | |
2393 | arg2 = wxString_in_helper(obj1); | |
2394 | if (arg2 == NULL) SWIG_fail; | |
2395 | temp2 = true; | |
2396 | } | |
2397 | { | |
2398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2399 | result = (bool)wxIsStockLabel(arg1,(wxString const &)*arg2); | |
2400 | ||
2401 | wxPyEndAllowThreads(__tstate); | |
2402 | if (PyErr_Occurred()) SWIG_fail; | |
2403 | } | |
2404 | { | |
2405 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2406 | } | |
2407 | { | |
2408 | if (temp2) | |
2409 | delete arg2; | |
2410 | } | |
2411 | return resultobj; | |
2412 | fail: | |
2413 | { | |
2414 | if (temp2) | |
2415 | delete arg2; | |
2416 | } | |
2417 | return NULL; | |
2418 | } | |
2419 | ||
2420 | ||
2421 | static PyObject *_wrap_GetStockLabel(PyObject *, PyObject *args, PyObject *kwargs) { | |
2422 | PyObject *resultobj; | |
2423 | int arg1 ; | |
2424 | wxString result; | |
2425 | PyObject * obj0 = 0 ; | |
2426 | char *kwnames[] = { | |
2427 | (char *) "id", NULL | |
2428 | }; | |
2429 | ||
2430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetStockLabel",kwnames,&obj0)) goto fail; | |
2431 | arg1 = (int)SWIG_As_int(obj0); | |
2432 | if (PyErr_Occurred()) SWIG_fail; | |
2433 | { | |
2434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2435 | result = wxGetStockLabel(arg1); | |
2436 | ||
2437 | wxPyEndAllowThreads(__tstate); | |
2438 | if (PyErr_Occurred()) SWIG_fail; | |
2439 | } | |
2440 | { | |
2441 | #if wxUSE_UNICODE | |
2442 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2443 | #else | |
2444 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2445 | #endif | |
2446 | } | |
2447 | return resultobj; | |
2448 | fail: | |
2449 | return NULL; | |
2450 | } | |
2451 | ||
2452 | ||
2453 | static PyObject *_wrap_Bell(PyObject *, PyObject *args, PyObject *kwargs) { | |
2454 | PyObject *resultobj; | |
2455 | char *kwnames[] = { | |
2456 | NULL | |
2457 | }; | |
2458 | ||
2459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Bell",kwnames)) goto fail; | |
2460 | { | |
2461 | if (!wxPyCheckForApp()) SWIG_fail; | |
2462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2463 | wxBell(); | |
2464 | ||
2465 | wxPyEndAllowThreads(__tstate); | |
2466 | if (PyErr_Occurred()) SWIG_fail; | |
2467 | } | |
2468 | Py_INCREF(Py_None); resultobj = Py_None; | |
2469 | return resultobj; | |
2470 | fail: | |
2471 | return NULL; | |
2472 | } | |
2473 | ||
2474 | ||
2475 | static PyObject *_wrap_EndBusyCursor(PyObject *, PyObject *args, PyObject *kwargs) { | |
2476 | PyObject *resultobj; | |
2477 | char *kwnames[] = { | |
2478 | NULL | |
2479 | }; | |
2480 | ||
2481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EndBusyCursor",kwnames)) goto fail; | |
2482 | { | |
2483 | if (!wxPyCheckForApp()) SWIG_fail; | |
2484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2485 | wxEndBusyCursor(); | |
2486 | ||
2487 | wxPyEndAllowThreads(__tstate); | |
2488 | if (PyErr_Occurred()) SWIG_fail; | |
2489 | } | |
2490 | Py_INCREF(Py_None); resultobj = Py_None; | |
2491 | return resultobj; | |
2492 | fail: | |
2493 | return NULL; | |
2494 | } | |
2495 | ||
2496 | ||
2497 | static PyObject *_wrap_GetElapsedTime(PyObject *, PyObject *args, PyObject *kwargs) { | |
2498 | PyObject *resultobj; | |
2499 | bool arg1 = (bool) true ; | |
2500 | long result; | |
2501 | PyObject * obj0 = 0 ; | |
2502 | char *kwnames[] = { | |
2503 | (char *) "resetTimer", NULL | |
2504 | }; | |
2505 | ||
2506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetElapsedTime",kwnames,&obj0)) goto fail; | |
2507 | if (obj0) { | |
2508 | arg1 = (bool)SWIG_As_bool(obj0); | |
2509 | if (PyErr_Occurred()) SWIG_fail; | |
2510 | } | |
2511 | { | |
2512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2513 | result = (long)wxGetElapsedTime(arg1); | |
2514 | ||
2515 | wxPyEndAllowThreads(__tstate); | |
2516 | if (PyErr_Occurred()) SWIG_fail; | |
2517 | } | |
2518 | resultobj = SWIG_From_long((long)result); | |
2519 | return resultobj; | |
2520 | fail: | |
2521 | return NULL; | |
2522 | } | |
2523 | ||
2524 | ||
2525 | static PyObject *_wrap_GetMousePosition(PyObject *, PyObject *args, PyObject *kwargs) { | |
2526 | PyObject *resultobj; | |
2527 | int *arg1 = (int *) 0 ; | |
2528 | int *arg2 = (int *) 0 ; | |
2529 | int temp1 ; | |
2530 | int res1 = 0 ; | |
2531 | int temp2 ; | |
2532 | int res2 = 0 ; | |
2533 | char *kwnames[] = { | |
2534 | NULL | |
2535 | }; | |
2536 | ||
2537 | arg1 = &temp1; res1 = SWIG_NEWOBJ; | |
2538 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
2539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMousePosition",kwnames)) goto fail; | |
2540 | { | |
2541 | if (!wxPyCheckForApp()) SWIG_fail; | |
2542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2543 | wxGetMousePosition(arg1,arg2); | |
2544 | ||
2545 | wxPyEndAllowThreads(__tstate); | |
2546 | if (PyErr_Occurred()) SWIG_fail; | |
2547 | } | |
2548 | Py_INCREF(Py_None); resultobj = Py_None; | |
2549 | resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ? | |
2550 | SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0))); | |
2551 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
2552 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
2553 | return resultobj; | |
2554 | fail: | |
2555 | return NULL; | |
2556 | } | |
2557 | ||
2558 | ||
2559 | static PyObject *_wrap_IsBusy(PyObject *, PyObject *args, PyObject *kwargs) { | |
2560 | PyObject *resultobj; | |
2561 | bool result; | |
2562 | char *kwnames[] = { | |
2563 | NULL | |
2564 | }; | |
2565 | ||
2566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IsBusy",kwnames)) goto fail; | |
2567 | { | |
2568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2569 | result = (bool)wxIsBusy(); | |
2570 | ||
2571 | wxPyEndAllowThreads(__tstate); | |
2572 | if (PyErr_Occurred()) SWIG_fail; | |
2573 | } | |
2574 | { | |
2575 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2576 | } | |
2577 | return resultobj; | |
2578 | fail: | |
2579 | return NULL; | |
2580 | } | |
2581 | ||
2582 | ||
2583 | static PyObject *_wrap_Now(PyObject *, PyObject *args, PyObject *kwargs) { | |
2584 | PyObject *resultobj; | |
2585 | wxString result; | |
2586 | char *kwnames[] = { | |
2587 | NULL | |
2588 | }; | |
2589 | ||
2590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Now",kwnames)) goto fail; | |
2591 | { | |
2592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2593 | result = wxNow(); | |
2594 | ||
2595 | wxPyEndAllowThreads(__tstate); | |
2596 | if (PyErr_Occurred()) SWIG_fail; | |
2597 | } | |
2598 | { | |
2599 | #if wxUSE_UNICODE | |
2600 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2601 | #else | |
2602 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2603 | #endif | |
2604 | } | |
2605 | return resultobj; | |
2606 | fail: | |
2607 | return NULL; | |
2608 | } | |
2609 | ||
2610 | ||
2611 | static PyObject *_wrap_Shell(PyObject *, PyObject *args, PyObject *kwargs) { | |
2612 | PyObject *resultobj; | |
2613 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
2614 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2615 | bool result; | |
2616 | bool temp1 = false ; | |
2617 | PyObject * obj0 = 0 ; | |
2618 | char *kwnames[] = { | |
2619 | (char *) "command", NULL | |
2620 | }; | |
2621 | ||
2622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Shell",kwnames,&obj0)) goto fail; | |
2623 | if (obj0) { | |
2624 | { | |
2625 | arg1 = wxString_in_helper(obj0); | |
2626 | if (arg1 == NULL) SWIG_fail; | |
2627 | temp1 = true; | |
2628 | } | |
2629 | } | |
2630 | { | |
2631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2632 | result = (bool)wxShell((wxString const &)*arg1); | |
2633 | ||
2634 | wxPyEndAllowThreads(__tstate); | |
2635 | if (PyErr_Occurred()) SWIG_fail; | |
2636 | } | |
2637 | { | |
2638 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2639 | } | |
2640 | { | |
2641 | if (temp1) | |
2642 | delete arg1; | |
2643 | } | |
2644 | return resultobj; | |
2645 | fail: | |
2646 | { | |
2647 | if (temp1) | |
2648 | delete arg1; | |
2649 | } | |
2650 | return NULL; | |
2651 | } | |
2652 | ||
2653 | ||
2654 | static PyObject *_wrap_StartTimer(PyObject *, PyObject *args, PyObject *kwargs) { | |
2655 | PyObject *resultobj; | |
2656 | char *kwnames[] = { | |
2657 | NULL | |
2658 | }; | |
2659 | ||
2660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StartTimer",kwnames)) goto fail; | |
2661 | { | |
2662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2663 | wxStartTimer(); | |
2664 | ||
2665 | wxPyEndAllowThreads(__tstate); | |
2666 | if (PyErr_Occurred()) SWIG_fail; | |
2667 | } | |
2668 | Py_INCREF(Py_None); resultobj = Py_None; | |
2669 | return resultobj; | |
2670 | fail: | |
2671 | return NULL; | |
2672 | } | |
2673 | ||
2674 | ||
2675 | static PyObject *_wrap_GetOsVersion(PyObject *, PyObject *args, PyObject *kwargs) { | |
2676 | PyObject *resultobj; | |
2677 | int *arg1 = (int *) 0 ; | |
2678 | int *arg2 = (int *) 0 ; | |
2679 | int result; | |
2680 | int temp1 ; | |
2681 | int res1 = 0 ; | |
2682 | int temp2 ; | |
2683 | int res2 = 0 ; | |
2684 | char *kwnames[] = { | |
2685 | NULL | |
2686 | }; | |
2687 | ||
2688 | arg1 = &temp1; res1 = SWIG_NEWOBJ; | |
2689 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
2690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsVersion",kwnames)) goto fail; | |
2691 | { | |
2692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2693 | result = (int)wxGetOsVersion(arg1,arg2); | |
2694 | ||
2695 | wxPyEndAllowThreads(__tstate); | |
2696 | if (PyErr_Occurred()) SWIG_fail; | |
2697 | } | |
2698 | resultobj = SWIG_From_int((int)result); | |
2699 | resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ? | |
2700 | SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0))); | |
2701 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
2702 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
2703 | return resultobj; | |
2704 | fail: | |
2705 | return NULL; | |
2706 | } | |
2707 | ||
2708 | ||
2709 | static PyObject *_wrap_GetOsDescription(PyObject *, PyObject *args, PyObject *kwargs) { | |
2710 | PyObject *resultobj; | |
2711 | wxString result; | |
2712 | char *kwnames[] = { | |
2713 | NULL | |
2714 | }; | |
2715 | ||
2716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsDescription",kwnames)) goto fail; | |
2717 | { | |
2718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2719 | result = wxGetOsDescription(); | |
2720 | ||
2721 | wxPyEndAllowThreads(__tstate); | |
2722 | if (PyErr_Occurred()) SWIG_fail; | |
2723 | } | |
2724 | { | |
2725 | #if wxUSE_UNICODE | |
2726 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2727 | #else | |
2728 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2729 | #endif | |
2730 | } | |
2731 | return resultobj; | |
2732 | fail: | |
2733 | return NULL; | |
2734 | } | |
2735 | ||
2736 | ||
2737 | static PyObject *_wrap_GetFreeMemory(PyObject *, PyObject *args, PyObject *kwargs) { | |
2738 | PyObject *resultobj; | |
2739 | long result; | |
2740 | char *kwnames[] = { | |
2741 | NULL | |
2742 | }; | |
2743 | ||
2744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFreeMemory",kwnames)) goto fail; | |
2745 | { | |
2746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2747 | result = (long)wxGetFreeMemory(); | |
2748 | ||
2749 | wxPyEndAllowThreads(__tstate); | |
2750 | if (PyErr_Occurred()) SWIG_fail; | |
2751 | } | |
2752 | resultobj = SWIG_From_long((long)result); | |
2753 | return resultobj; | |
2754 | fail: | |
2755 | return NULL; | |
2756 | } | |
2757 | ||
2758 | ||
2759 | static PyObject *_wrap_Shutdown(PyObject *, PyObject *args, PyObject *kwargs) { | |
2760 | PyObject *resultobj; | |
2761 | int arg1 ; | |
2762 | bool result; | |
2763 | PyObject * obj0 = 0 ; | |
2764 | char *kwnames[] = { | |
2765 | (char *) "wFlags", NULL | |
2766 | }; | |
2767 | ||
2768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Shutdown",kwnames,&obj0)) goto fail; | |
2769 | arg1 = (int)SWIG_As_int(obj0); | |
2770 | if (PyErr_Occurred()) SWIG_fail; | |
2771 | { | |
2772 | if (!wxPyCheckForApp()) SWIG_fail; | |
2773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2774 | result = (bool)wxShutdown((wxShutdownFlags )arg1); | |
2775 | ||
2776 | wxPyEndAllowThreads(__tstate); | |
2777 | if (PyErr_Occurred()) SWIG_fail; | |
2778 | } | |
2779 | { | |
2780 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2781 | } | |
2782 | return resultobj; | |
2783 | fail: | |
2784 | return NULL; | |
2785 | } | |
2786 | ||
2787 | ||
2788 | static PyObject *_wrap_Sleep(PyObject *, PyObject *args, PyObject *kwargs) { | |
2789 | PyObject *resultobj; | |
2790 | int arg1 ; | |
2791 | PyObject * obj0 = 0 ; | |
2792 | char *kwnames[] = { | |
2793 | (char *) "secs", NULL | |
2794 | }; | |
2795 | ||
2796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sleep",kwnames,&obj0)) goto fail; | |
2797 | arg1 = (int)SWIG_As_int(obj0); | |
2798 | if (PyErr_Occurred()) SWIG_fail; | |
2799 | { | |
2800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2801 | wxSleep(arg1); | |
2802 | ||
2803 | wxPyEndAllowThreads(__tstate); | |
2804 | if (PyErr_Occurred()) SWIG_fail; | |
2805 | } | |
2806 | Py_INCREF(Py_None); resultobj = Py_None; | |
2807 | return resultobj; | |
2808 | fail: | |
2809 | return NULL; | |
2810 | } | |
2811 | ||
2812 | ||
2813 | static PyObject *_wrap_MilliSleep(PyObject *, PyObject *args, PyObject *kwargs) { | |
2814 | PyObject *resultobj; | |
2815 | unsigned long arg1 ; | |
2816 | PyObject * obj0 = 0 ; | |
2817 | char *kwnames[] = { | |
2818 | (char *) "milliseconds", NULL | |
2819 | }; | |
2820 | ||
2821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MilliSleep",kwnames,&obj0)) goto fail; | |
2822 | arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0); | |
2823 | if (PyErr_Occurred()) SWIG_fail; | |
2824 | { | |
2825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2826 | wxMilliSleep(arg1); | |
2827 | ||
2828 | wxPyEndAllowThreads(__tstate); | |
2829 | if (PyErr_Occurred()) SWIG_fail; | |
2830 | } | |
2831 | Py_INCREF(Py_None); resultobj = Py_None; | |
2832 | return resultobj; | |
2833 | fail: | |
2834 | return NULL; | |
2835 | } | |
2836 | ||
2837 | ||
2838 | static PyObject *_wrap_MicroSleep(PyObject *, PyObject *args, PyObject *kwargs) { | |
2839 | PyObject *resultobj; | |
2840 | unsigned long arg1 ; | |
2841 | PyObject * obj0 = 0 ; | |
2842 | char *kwnames[] = { | |
2843 | (char *) "microseconds", NULL | |
2844 | }; | |
2845 | ||
2846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MicroSleep",kwnames,&obj0)) goto fail; | |
2847 | arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0); | |
2848 | if (PyErr_Occurred()) SWIG_fail; | |
2849 | { | |
2850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2851 | wxMicroSleep(arg1); | |
2852 | ||
2853 | wxPyEndAllowThreads(__tstate); | |
2854 | if (PyErr_Occurred()) SWIG_fail; | |
2855 | } | |
2856 | Py_INCREF(Py_None); resultobj = Py_None; | |
2857 | return resultobj; | |
2858 | fail: | |
2859 | return NULL; | |
2860 | } | |
2861 | ||
2862 | ||
2863 | static PyObject *_wrap_EnableTopLevelWindows(PyObject *, PyObject *args, PyObject *kwargs) { | |
2864 | PyObject *resultobj; | |
2865 | bool arg1 ; | |
2866 | PyObject * obj0 = 0 ; | |
2867 | char *kwnames[] = { | |
2868 | (char *) "enable", NULL | |
2869 | }; | |
2870 | ||
2871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EnableTopLevelWindows",kwnames,&obj0)) goto fail; | |
2872 | arg1 = (bool)SWIG_As_bool(obj0); | |
2873 | if (PyErr_Occurred()) SWIG_fail; | |
2874 | { | |
2875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2876 | wxEnableTopLevelWindows(arg1); | |
2877 | ||
2878 | wxPyEndAllowThreads(__tstate); | |
2879 | if (PyErr_Occurred()) SWIG_fail; | |
2880 | } | |
2881 | Py_INCREF(Py_None); resultobj = Py_None; | |
2882 | return resultobj; | |
2883 | fail: | |
2884 | return NULL; | |
2885 | } | |
2886 | ||
2887 | ||
2888 | static PyObject *_wrap_StripMenuCodes(PyObject *, PyObject *args, PyObject *kwargs) { | |
2889 | PyObject *resultobj; | |
2890 | wxString *arg1 = 0 ; | |
2891 | wxString result; | |
2892 | bool temp1 = false ; | |
2893 | PyObject * obj0 = 0 ; | |
2894 | char *kwnames[] = { | |
2895 | (char *) "in", NULL | |
2896 | }; | |
2897 | ||
2898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StripMenuCodes",kwnames,&obj0)) goto fail; | |
2899 | { | |
2900 | arg1 = wxString_in_helper(obj0); | |
2901 | if (arg1 == NULL) SWIG_fail; | |
2902 | temp1 = true; | |
2903 | } | |
2904 | { | |
2905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2906 | result = wxStripMenuCodes((wxString const &)*arg1); | |
2907 | ||
2908 | wxPyEndAllowThreads(__tstate); | |
2909 | if (PyErr_Occurred()) SWIG_fail; | |
2910 | } | |
2911 | { | |
2912 | #if wxUSE_UNICODE | |
2913 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2914 | #else | |
2915 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2916 | #endif | |
2917 | } | |
2918 | { | |
2919 | if (temp1) | |
2920 | delete arg1; | |
2921 | } | |
2922 | return resultobj; | |
2923 | fail: | |
2924 | { | |
2925 | if (temp1) | |
2926 | delete arg1; | |
2927 | } | |
2928 | return NULL; | |
2929 | } | |
2930 | ||
2931 | ||
2932 | static PyObject *_wrap_GetEmailAddress(PyObject *, PyObject *args, PyObject *kwargs) { | |
2933 | PyObject *resultobj; | |
2934 | wxString result; | |
2935 | char *kwnames[] = { | |
2936 | NULL | |
2937 | }; | |
2938 | ||
2939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetEmailAddress",kwnames)) goto fail; | |
2940 | { | |
2941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2942 | result = wxGetEmailAddress(); | |
2943 | ||
2944 | wxPyEndAllowThreads(__tstate); | |
2945 | if (PyErr_Occurred()) SWIG_fail; | |
2946 | } | |
2947 | { | |
2948 | #if wxUSE_UNICODE | |
2949 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2950 | #else | |
2951 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2952 | #endif | |
2953 | } | |
2954 | return resultobj; | |
2955 | fail: | |
2956 | return NULL; | |
2957 | } | |
2958 | ||
2959 | ||
2960 | static PyObject *_wrap_GetHostName(PyObject *, PyObject *args, PyObject *kwargs) { | |
2961 | PyObject *resultobj; | |
2962 | wxString result; | |
2963 | char *kwnames[] = { | |
2964 | NULL | |
2965 | }; | |
2966 | ||
2967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHostName",kwnames)) goto fail; | |
2968 | { | |
2969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2970 | result = wxGetHostName(); | |
2971 | ||
2972 | wxPyEndAllowThreads(__tstate); | |
2973 | if (PyErr_Occurred()) SWIG_fail; | |
2974 | } | |
2975 | { | |
2976 | #if wxUSE_UNICODE | |
2977 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2978 | #else | |
2979 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2980 | #endif | |
2981 | } | |
2982 | return resultobj; | |
2983 | fail: | |
2984 | return NULL; | |
2985 | } | |
2986 | ||
2987 | ||
2988 | static PyObject *_wrap_GetFullHostName(PyObject *, PyObject *args, PyObject *kwargs) { | |
2989 | PyObject *resultobj; | |
2990 | wxString result; | |
2991 | char *kwnames[] = { | |
2992 | NULL | |
2993 | }; | |
2994 | ||
2995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFullHostName",kwnames)) goto fail; | |
2996 | { | |
2997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2998 | result = wxGetFullHostName(); | |
2999 | ||
3000 | wxPyEndAllowThreads(__tstate); | |
3001 | if (PyErr_Occurred()) SWIG_fail; | |
3002 | } | |
3003 | { | |
3004 | #if wxUSE_UNICODE | |
3005 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3006 | #else | |
3007 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3008 | #endif | |
3009 | } | |
3010 | return resultobj; | |
3011 | fail: | |
3012 | return NULL; | |
3013 | } | |
3014 | ||
3015 | ||
3016 | static PyObject *_wrap_GetUserId(PyObject *, PyObject *args, PyObject *kwargs) { | |
3017 | PyObject *resultobj; | |
3018 | wxString result; | |
3019 | char *kwnames[] = { | |
3020 | NULL | |
3021 | }; | |
3022 | ||
3023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserId",kwnames)) goto fail; | |
3024 | { | |
3025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3026 | result = wxGetUserId(); | |
3027 | ||
3028 | wxPyEndAllowThreads(__tstate); | |
3029 | if (PyErr_Occurred()) SWIG_fail; | |
3030 | } | |
3031 | { | |
3032 | #if wxUSE_UNICODE | |
3033 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3034 | #else | |
3035 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3036 | #endif | |
3037 | } | |
3038 | return resultobj; | |
3039 | fail: | |
3040 | return NULL; | |
3041 | } | |
3042 | ||
3043 | ||
3044 | static PyObject *_wrap_GetUserName(PyObject *, PyObject *args, PyObject *kwargs) { | |
3045 | PyObject *resultobj; | |
3046 | wxString result; | |
3047 | char *kwnames[] = { | |
3048 | NULL | |
3049 | }; | |
3050 | ||
3051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserName",kwnames)) goto fail; | |
3052 | { | |
3053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3054 | result = wxGetUserName(); | |
3055 | ||
3056 | wxPyEndAllowThreads(__tstate); | |
3057 | if (PyErr_Occurred()) SWIG_fail; | |
3058 | } | |
3059 | { | |
3060 | #if wxUSE_UNICODE | |
3061 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3062 | #else | |
3063 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3064 | #endif | |
3065 | } | |
3066 | return resultobj; | |
3067 | fail: | |
3068 | return NULL; | |
3069 | } | |
3070 | ||
3071 | ||
3072 | static PyObject *_wrap_GetHomeDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
3073 | PyObject *resultobj; | |
3074 | wxString result; | |
3075 | char *kwnames[] = { | |
3076 | NULL | |
3077 | }; | |
3078 | ||
3079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHomeDir",kwnames)) goto fail; | |
3080 | { | |
3081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3082 | result = wxGetHomeDir(); | |
3083 | ||
3084 | wxPyEndAllowThreads(__tstate); | |
3085 | if (PyErr_Occurred()) SWIG_fail; | |
3086 | } | |
3087 | { | |
3088 | #if wxUSE_UNICODE | |
3089 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3090 | #else | |
3091 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3092 | #endif | |
3093 | } | |
3094 | return resultobj; | |
3095 | fail: | |
3096 | return NULL; | |
3097 | } | |
3098 | ||
3099 | ||
3100 | static PyObject *_wrap_GetUserHome(PyObject *, PyObject *args, PyObject *kwargs) { | |
3101 | PyObject *resultobj; | |
3102 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
3103 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
3104 | wxString result; | |
3105 | bool temp1 = false ; | |
3106 | PyObject * obj0 = 0 ; | |
3107 | char *kwnames[] = { | |
3108 | (char *) "user", NULL | |
3109 | }; | |
3110 | ||
3111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetUserHome",kwnames,&obj0)) goto fail; | |
3112 | if (obj0) { | |
3113 | { | |
3114 | arg1 = wxString_in_helper(obj0); | |
3115 | if (arg1 == NULL) SWIG_fail; | |
3116 | temp1 = true; | |
3117 | } | |
3118 | } | |
3119 | { | |
3120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3121 | result = wxGetUserHome((wxString const &)*arg1); | |
3122 | ||
3123 | wxPyEndAllowThreads(__tstate); | |
3124 | if (PyErr_Occurred()) SWIG_fail; | |
3125 | } | |
3126 | { | |
3127 | #if wxUSE_UNICODE | |
3128 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3129 | #else | |
3130 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3131 | #endif | |
3132 | } | |
3133 | { | |
3134 | if (temp1) | |
3135 | delete arg1; | |
3136 | } | |
3137 | return resultobj; | |
3138 | fail: | |
3139 | { | |
3140 | if (temp1) | |
3141 | delete arg1; | |
3142 | } | |
3143 | return NULL; | |
3144 | } | |
3145 | ||
3146 | ||
3147 | static PyObject *_wrap_GetProcessId(PyObject *, PyObject *args, PyObject *kwargs) { | |
3148 | PyObject *resultobj; | |
3149 | unsigned long result; | |
3150 | char *kwnames[] = { | |
3151 | NULL | |
3152 | }; | |
3153 | ||
3154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetProcessId",kwnames)) goto fail; | |
3155 | { | |
3156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3157 | result = (unsigned long)wxGetProcessId(); | |
3158 | ||
3159 | wxPyEndAllowThreads(__tstate); | |
3160 | if (PyErr_Occurred()) SWIG_fail; | |
3161 | } | |
3162 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); | |
3163 | return resultobj; | |
3164 | fail: | |
3165 | return NULL; | |
3166 | } | |
3167 | ||
3168 | ||
3169 | static PyObject *_wrap_Trap(PyObject *, PyObject *args, PyObject *kwargs) { | |
3170 | PyObject *resultobj; | |
3171 | char *kwnames[] = { | |
3172 | NULL | |
3173 | }; | |
3174 | ||
3175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Trap",kwnames)) goto fail; | |
3176 | { | |
3177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3178 | wxTrap(); | |
3179 | ||
3180 | wxPyEndAllowThreads(__tstate); | |
3181 | if (PyErr_Occurred()) SWIG_fail; | |
3182 | } | |
3183 | Py_INCREF(Py_None); resultobj = Py_None; | |
3184 | return resultobj; | |
3185 | fail: | |
3186 | return NULL; | |
3187 | } | |
3188 | ||
3189 | ||
3190 | static PyObject *_wrap_FileSelector(PyObject *, PyObject *args, PyObject *kwargs) { | |
3191 | PyObject *resultobj; | |
3192 | wxString const &arg1_defvalue = wxPyFileSelectorPromptStr ; | |
3193 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
3194 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3195 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3196 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3197 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3198 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
3199 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
3200 | wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ; | |
3201 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
3202 | int arg6 = (int) 0 ; | |
3203 | wxWindow *arg7 = (wxWindow *) NULL ; | |
3204 | int arg8 = (int) -1 ; | |
3205 | int arg9 = (int) -1 ; | |
3206 | wxString result; | |
3207 | bool temp1 = false ; | |
3208 | bool temp2 = false ; | |
3209 | bool temp3 = false ; | |
3210 | bool temp4 = false ; | |
3211 | bool temp5 = false ; | |
3212 | PyObject * obj0 = 0 ; | |
3213 | PyObject * obj1 = 0 ; | |
3214 | PyObject * obj2 = 0 ; | |
3215 | PyObject * obj3 = 0 ; | |
3216 | PyObject * obj4 = 0 ; | |
3217 | PyObject * obj5 = 0 ; | |
3218 | PyObject * obj6 = 0 ; | |
3219 | PyObject * obj7 = 0 ; | |
3220 | PyObject * obj8 = 0 ; | |
3221 | char *kwnames[] = { | |
3222 | (char *) "message",(char *) "default_path",(char *) "default_filename",(char *) "default_extension",(char *) "wildcard",(char *) "flags",(char *) "parent",(char *) "x",(char *) "y", NULL | |
3223 | }; | |
3224 | ||
3225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOOOOO:FileSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
3226 | if (obj0) { | |
3227 | { | |
3228 | arg1 = wxString_in_helper(obj0); | |
3229 | if (arg1 == NULL) SWIG_fail; | |
3230 | temp1 = true; | |
3231 | } | |
3232 | } | |
3233 | if (obj1) { | |
3234 | { | |
3235 | arg2 = wxString_in_helper(obj1); | |
3236 | if (arg2 == NULL) SWIG_fail; | |
3237 | temp2 = true; | |
3238 | } | |
3239 | } | |
3240 | if (obj2) { | |
3241 | { | |
3242 | arg3 = wxString_in_helper(obj2); | |
3243 | if (arg3 == NULL) SWIG_fail; | |
3244 | temp3 = true; | |
3245 | } | |
3246 | } | |
3247 | if (obj3) { | |
3248 | { | |
3249 | arg4 = wxString_in_helper(obj3); | |
3250 | if (arg4 == NULL) SWIG_fail; | |
3251 | temp4 = true; | |
3252 | } | |
3253 | } | |
3254 | if (obj4) { | |
3255 | { | |
3256 | arg5 = wxString_in_helper(obj4); | |
3257 | if (arg5 == NULL) SWIG_fail; | |
3258 | temp5 = true; | |
3259 | } | |
3260 | } | |
3261 | if (obj5) { | |
3262 | arg6 = (int)SWIG_As_int(obj5); | |
3263 | if (PyErr_Occurred()) SWIG_fail; | |
3264 | } | |
3265 | if (obj6) { | |
3266 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow, | |
3267 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3268 | } | |
3269 | if (obj7) { | |
3270 | arg8 = (int)SWIG_As_int(obj7); | |
3271 | if (PyErr_Occurred()) SWIG_fail; | |
3272 | } | |
3273 | if (obj8) { | |
3274 | arg9 = (int)SWIG_As_int(obj8); | |
3275 | if (PyErr_Occurred()) SWIG_fail; | |
3276 | } | |
3277 | { | |
3278 | if (!wxPyCheckForApp()) SWIG_fail; | |
3279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3280 | result = wxFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,arg7,arg8,arg9); | |
3281 | ||
3282 | wxPyEndAllowThreads(__tstate); | |
3283 | if (PyErr_Occurred()) SWIG_fail; | |
3284 | } | |
3285 | { | |
3286 | #if wxUSE_UNICODE | |
3287 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3288 | #else | |
3289 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3290 | #endif | |
3291 | } | |
3292 | { | |
3293 | if (temp1) | |
3294 | delete arg1; | |
3295 | } | |
3296 | { | |
3297 | if (temp2) | |
3298 | delete arg2; | |
3299 | } | |
3300 | { | |
3301 | if (temp3) | |
3302 | delete arg3; | |
3303 | } | |
3304 | { | |
3305 | if (temp4) | |
3306 | delete arg4; | |
3307 | } | |
3308 | { | |
3309 | if (temp5) | |
3310 | delete arg5; | |
3311 | } | |
3312 | return resultobj; | |
3313 | fail: | |
3314 | { | |
3315 | if (temp1) | |
3316 | delete arg1; | |
3317 | } | |
3318 | { | |
3319 | if (temp2) | |
3320 | delete arg2; | |
3321 | } | |
3322 | { | |
3323 | if (temp3) | |
3324 | delete arg3; | |
3325 | } | |
3326 | { | |
3327 | if (temp4) | |
3328 | delete arg4; | |
3329 | } | |
3330 | { | |
3331 | if (temp5) | |
3332 | delete arg5; | |
3333 | } | |
3334 | return NULL; | |
3335 | } | |
3336 | ||
3337 | ||
3338 | static PyObject *_wrap_LoadFileSelector(PyObject *, PyObject *args, PyObject *kwargs) { | |
3339 | PyObject *resultobj; | |
3340 | wxString *arg1 = 0 ; | |
3341 | wxString *arg2 = 0 ; | |
3342 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3343 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3344 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3345 | wxString result; | |
3346 | bool temp1 = false ; | |
3347 | bool temp2 = false ; | |
3348 | bool temp3 = false ; | |
3349 | PyObject * obj0 = 0 ; | |
3350 | PyObject * obj1 = 0 ; | |
3351 | PyObject * obj2 = 0 ; | |
3352 | PyObject * obj3 = 0 ; | |
3353 | char *kwnames[] = { | |
3354 | (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL | |
3355 | }; | |
3356 | ||
3357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:LoadFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3358 | { | |
3359 | arg1 = wxString_in_helper(obj0); | |
3360 | if (arg1 == NULL) SWIG_fail; | |
3361 | temp1 = true; | |
3362 | } | |
3363 | { | |
3364 | arg2 = wxString_in_helper(obj1); | |
3365 | if (arg2 == NULL) SWIG_fail; | |
3366 | temp2 = true; | |
3367 | } | |
3368 | if (obj2) { | |
3369 | { | |
3370 | arg3 = wxString_in_helper(obj2); | |
3371 | if (arg3 == NULL) SWIG_fail; | |
3372 | temp3 = true; | |
3373 | } | |
3374 | } | |
3375 | if (obj3) { | |
3376 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
3377 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3378 | } | |
3379 | { | |
3380 | if (!wxPyCheckForApp()) SWIG_fail; | |
3381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3382 | result = wxLoadFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
3383 | ||
3384 | wxPyEndAllowThreads(__tstate); | |
3385 | if (PyErr_Occurred()) SWIG_fail; | |
3386 | } | |
3387 | { | |
3388 | #if wxUSE_UNICODE | |
3389 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3390 | #else | |
3391 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3392 | #endif | |
3393 | } | |
3394 | { | |
3395 | if (temp1) | |
3396 | delete arg1; | |
3397 | } | |
3398 | { | |
3399 | if (temp2) | |
3400 | delete arg2; | |
3401 | } | |
3402 | { | |
3403 | if (temp3) | |
3404 | delete arg3; | |
3405 | } | |
3406 | return resultobj; | |
3407 | fail: | |
3408 | { | |
3409 | if (temp1) | |
3410 | delete arg1; | |
3411 | } | |
3412 | { | |
3413 | if (temp2) | |
3414 | delete arg2; | |
3415 | } | |
3416 | { | |
3417 | if (temp3) | |
3418 | delete arg3; | |
3419 | } | |
3420 | return NULL; | |
3421 | } | |
3422 | ||
3423 | ||
3424 | static PyObject *_wrap_SaveFileSelector(PyObject *, PyObject *args, PyObject *kwargs) { | |
3425 | PyObject *resultobj; | |
3426 | wxString *arg1 = 0 ; | |
3427 | wxString *arg2 = 0 ; | |
3428 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3429 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3430 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3431 | wxString result; | |
3432 | bool temp1 = false ; | |
3433 | bool temp2 = false ; | |
3434 | bool temp3 = false ; | |
3435 | PyObject * obj0 = 0 ; | |
3436 | PyObject * obj1 = 0 ; | |
3437 | PyObject * obj2 = 0 ; | |
3438 | PyObject * obj3 = 0 ; | |
3439 | char *kwnames[] = { | |
3440 | (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL | |
3441 | }; | |
3442 | ||
3443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:SaveFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3444 | { | |
3445 | arg1 = wxString_in_helper(obj0); | |
3446 | if (arg1 == NULL) SWIG_fail; | |
3447 | temp1 = true; | |
3448 | } | |
3449 | { | |
3450 | arg2 = wxString_in_helper(obj1); | |
3451 | if (arg2 == NULL) SWIG_fail; | |
3452 | temp2 = true; | |
3453 | } | |
3454 | if (obj2) { | |
3455 | { | |
3456 | arg3 = wxString_in_helper(obj2); | |
3457 | if (arg3 == NULL) SWIG_fail; | |
3458 | temp3 = true; | |
3459 | } | |
3460 | } | |
3461 | if (obj3) { | |
3462 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
3463 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3464 | } | |
3465 | { | |
3466 | if (!wxPyCheckForApp()) SWIG_fail; | |
3467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3468 | result = wxSaveFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
3469 | ||
3470 | wxPyEndAllowThreads(__tstate); | |
3471 | if (PyErr_Occurred()) SWIG_fail; | |
3472 | } | |
3473 | { | |
3474 | #if wxUSE_UNICODE | |
3475 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3476 | #else | |
3477 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3478 | #endif | |
3479 | } | |
3480 | { | |
3481 | if (temp1) | |
3482 | delete arg1; | |
3483 | } | |
3484 | { | |
3485 | if (temp2) | |
3486 | delete arg2; | |
3487 | } | |
3488 | { | |
3489 | if (temp3) | |
3490 | delete arg3; | |
3491 | } | |
3492 | return resultobj; | |
3493 | fail: | |
3494 | { | |
3495 | if (temp1) | |
3496 | delete arg1; | |
3497 | } | |
3498 | { | |
3499 | if (temp2) | |
3500 | delete arg2; | |
3501 | } | |
3502 | { | |
3503 | if (temp3) | |
3504 | delete arg3; | |
3505 | } | |
3506 | return NULL; | |
3507 | } | |
3508 | ||
3509 | ||
3510 | static PyObject *_wrap_DirSelector(PyObject *, PyObject *args, PyObject *kwargs) { | |
3511 | PyObject *resultobj; | |
3512 | wxString const &arg1_defvalue = wxPyDirSelectorPromptStr ; | |
3513 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
3514 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3515 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3516 | long arg3 = (long) wxDD_DEFAULT_STYLE ; | |
3517 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3518 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3519 | wxWindow *arg5 = (wxWindow *) NULL ; | |
3520 | wxString result; | |
3521 | bool temp1 = false ; | |
3522 | bool temp2 = false ; | |
3523 | wxPoint temp4 ; | |
3524 | PyObject * obj0 = 0 ; | |
3525 | PyObject * obj1 = 0 ; | |
3526 | PyObject * obj2 = 0 ; | |
3527 | PyObject * obj3 = 0 ; | |
3528 | PyObject * obj4 = 0 ; | |
3529 | char *kwnames[] = { | |
3530 | (char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "parent", NULL | |
3531 | }; | |
3532 | ||
3533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:DirSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
3534 | if (obj0) { | |
3535 | { | |
3536 | arg1 = wxString_in_helper(obj0); | |
3537 | if (arg1 == NULL) SWIG_fail; | |
3538 | temp1 = true; | |
3539 | } | |
3540 | } | |
3541 | if (obj1) { | |
3542 | { | |
3543 | arg2 = wxString_in_helper(obj1); | |
3544 | if (arg2 == NULL) SWIG_fail; | |
3545 | temp2 = true; | |
3546 | } | |
3547 | } | |
3548 | if (obj2) { | |
3549 | arg3 = (long)SWIG_As_long(obj2); | |
3550 | if (PyErr_Occurred()) SWIG_fail; | |
3551 | } | |
3552 | if (obj3) { | |
3553 | { | |
3554 | arg4 = &temp4; | |
3555 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3556 | } | |
3557 | } | |
3558 | if (obj4) { | |
3559 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxWindow, | |
3560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3561 | } | |
3562 | { | |
3563 | if (!wxPyCheckForApp()) SWIG_fail; | |
3564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3565 | result = wxDirSelector((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxPoint const &)*arg4,arg5); | |
3566 | ||
3567 | wxPyEndAllowThreads(__tstate); | |
3568 | if (PyErr_Occurred()) SWIG_fail; | |
3569 | } | |
3570 | { | |
3571 | #if wxUSE_UNICODE | |
3572 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3573 | #else | |
3574 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3575 | #endif | |
3576 | } | |
3577 | { | |
3578 | if (temp1) | |
3579 | delete arg1; | |
3580 | } | |
3581 | { | |
3582 | if (temp2) | |
3583 | delete arg2; | |
3584 | } | |
3585 | return resultobj; | |
3586 | fail: | |
3587 | { | |
3588 | if (temp1) | |
3589 | delete arg1; | |
3590 | } | |
3591 | { | |
3592 | if (temp2) | |
3593 | delete arg2; | |
3594 | } | |
3595 | return NULL; | |
3596 | } | |
3597 | ||
3598 | ||
3599 | static PyObject *_wrap_GetTextFromUser(PyObject *, PyObject *args, PyObject *kwargs) { | |
3600 | PyObject *resultobj; | |
3601 | wxString *arg1 = 0 ; | |
3602 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3603 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3604 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3605 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3606 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3607 | int arg5 = (int) -1 ; | |
3608 | int arg6 = (int) -1 ; | |
3609 | bool arg7 = (bool) true ; | |
3610 | wxString result; | |
3611 | bool temp1 = false ; | |
3612 | bool temp2 = false ; | |
3613 | bool temp3 = false ; | |
3614 | PyObject * obj0 = 0 ; | |
3615 | PyObject * obj1 = 0 ; | |
3616 | PyObject * obj2 = 0 ; | |
3617 | PyObject * obj3 = 0 ; | |
3618 | PyObject * obj4 = 0 ; | |
3619 | PyObject * obj5 = 0 ; | |
3620 | PyObject * obj6 = 0 ; | |
3621 | char *kwnames[] = { | |
3622 | (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre", NULL | |
3623 | }; | |
3624 | ||
3625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GetTextFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
3626 | { | |
3627 | arg1 = wxString_in_helper(obj0); | |
3628 | if (arg1 == NULL) SWIG_fail; | |
3629 | temp1 = true; | |
3630 | } | |
3631 | if (obj1) { | |
3632 | { | |
3633 | arg2 = wxString_in_helper(obj1); | |
3634 | if (arg2 == NULL) SWIG_fail; | |
3635 | temp2 = true; | |
3636 | } | |
3637 | } | |
3638 | if (obj2) { | |
3639 | { | |
3640 | arg3 = wxString_in_helper(obj2); | |
3641 | if (arg3 == NULL) SWIG_fail; | |
3642 | temp3 = true; | |
3643 | } | |
3644 | } | |
3645 | if (obj3) { | |
3646 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
3647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3648 | } | |
3649 | if (obj4) { | |
3650 | arg5 = (int)SWIG_As_int(obj4); | |
3651 | if (PyErr_Occurred()) SWIG_fail; | |
3652 | } | |
3653 | if (obj5) { | |
3654 | arg6 = (int)SWIG_As_int(obj5); | |
3655 | if (PyErr_Occurred()) SWIG_fail; | |
3656 | } | |
3657 | if (obj6) { | |
3658 | arg7 = (bool)SWIG_As_bool(obj6); | |
3659 | if (PyErr_Occurred()) SWIG_fail; | |
3660 | } | |
3661 | { | |
3662 | if (!wxPyCheckForApp()) SWIG_fail; | |
3663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3664 | result = wxGetTextFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7); | |
3665 | ||
3666 | wxPyEndAllowThreads(__tstate); | |
3667 | if (PyErr_Occurred()) SWIG_fail; | |
3668 | } | |
3669 | { | |
3670 | #if wxUSE_UNICODE | |
3671 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3672 | #else | |
3673 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3674 | #endif | |
3675 | } | |
3676 | { | |
3677 | if (temp1) | |
3678 | delete arg1; | |
3679 | } | |
3680 | { | |
3681 | if (temp2) | |
3682 | delete arg2; | |
3683 | } | |
3684 | { | |
3685 | if (temp3) | |
3686 | delete arg3; | |
3687 | } | |
3688 | return resultobj; | |
3689 | fail: | |
3690 | { | |
3691 | if (temp1) | |
3692 | delete arg1; | |
3693 | } | |
3694 | { | |
3695 | if (temp2) | |
3696 | delete arg2; | |
3697 | } | |
3698 | { | |
3699 | if (temp3) | |
3700 | delete arg3; | |
3701 | } | |
3702 | return NULL; | |
3703 | } | |
3704 | ||
3705 | ||
3706 | static PyObject *_wrap_GetPasswordFromUser(PyObject *, PyObject *args, PyObject *kwargs) { | |
3707 | PyObject *resultobj; | |
3708 | wxString *arg1 = 0 ; | |
3709 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3710 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3711 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3712 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3713 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3714 | wxString result; | |
3715 | bool temp1 = false ; | |
3716 | bool temp2 = false ; | |
3717 | bool temp3 = false ; | |
3718 | PyObject * obj0 = 0 ; | |
3719 | PyObject * obj1 = 0 ; | |
3720 | PyObject * obj2 = 0 ; | |
3721 | PyObject * obj3 = 0 ; | |
3722 | char *kwnames[] = { | |
3723 | (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent", NULL | |
3724 | }; | |
3725 | ||
3726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:GetPasswordFromUser",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3727 | { | |
3728 | arg1 = wxString_in_helper(obj0); | |
3729 | if (arg1 == NULL) SWIG_fail; | |
3730 | temp1 = true; | |
3731 | } | |
3732 | if (obj1) { | |
3733 | { | |
3734 | arg2 = wxString_in_helper(obj1); | |
3735 | if (arg2 == NULL) SWIG_fail; | |
3736 | temp2 = true; | |
3737 | } | |
3738 | } | |
3739 | if (obj2) { | |
3740 | { | |
3741 | arg3 = wxString_in_helper(obj2); | |
3742 | if (arg3 == NULL) SWIG_fail; | |
3743 | temp3 = true; | |
3744 | } | |
3745 | } | |
3746 | if (obj3) { | |
3747 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
3748 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3749 | } | |
3750 | { | |
3751 | if (!wxPyCheckForApp()) SWIG_fail; | |
3752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3753 | result = wxGetPasswordFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
3754 | ||
3755 | wxPyEndAllowThreads(__tstate); | |
3756 | if (PyErr_Occurred()) SWIG_fail; | |
3757 | } | |
3758 | { | |
3759 | #if wxUSE_UNICODE | |
3760 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3761 | #else | |
3762 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3763 | #endif | |
3764 | } | |
3765 | { | |
3766 | if (temp1) | |
3767 | delete arg1; | |
3768 | } | |
3769 | { | |
3770 | if (temp2) | |
3771 | delete arg2; | |
3772 | } | |
3773 | { | |
3774 | if (temp3) | |
3775 | delete arg3; | |
3776 | } | |
3777 | return resultobj; | |
3778 | fail: | |
3779 | { | |
3780 | if (temp1) | |
3781 | delete arg1; | |
3782 | } | |
3783 | { | |
3784 | if (temp2) | |
3785 | delete arg2; | |
3786 | } | |
3787 | { | |
3788 | if (temp3) | |
3789 | delete arg3; | |
3790 | } | |
3791 | return NULL; | |
3792 | } | |
3793 | ||
3794 | ||
3795 | static PyObject *_wrap_GetSingleChoice(PyObject *, PyObject *args, PyObject *kwargs) { | |
3796 | PyObject *resultobj; | |
3797 | wxString *arg1 = 0 ; | |
3798 | wxString *arg2 = 0 ; | |
3799 | int arg3 ; | |
3800 | wxString *arg4 = (wxString *) 0 ; | |
3801 | wxWindow *arg5 = (wxWindow *) NULL ; | |
3802 | int arg6 = (int) -1 ; | |
3803 | int arg7 = (int) -1 ; | |
3804 | bool arg8 = (bool) true ; | |
3805 | int arg9 = (int) 150 ; | |
3806 | int arg10 = (int) 200 ; | |
3807 | wxString result; | |
3808 | bool temp1 = false ; | |
3809 | bool temp2 = false ; | |
3810 | PyObject * obj0 = 0 ; | |
3811 | PyObject * obj1 = 0 ; | |
3812 | PyObject * obj2 = 0 ; | |
3813 | PyObject * obj3 = 0 ; | |
3814 | PyObject * obj4 = 0 ; | |
3815 | PyObject * obj5 = 0 ; | |
3816 | PyObject * obj6 = 0 ; | |
3817 | PyObject * obj7 = 0 ; | |
3818 | PyObject * obj8 = 0 ; | |
3819 | char *kwnames[] = { | |
3820 | (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL | |
3821 | }; | |
3822 | ||
3823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
3824 | { | |
3825 | arg1 = wxString_in_helper(obj0); | |
3826 | if (arg1 == NULL) SWIG_fail; | |
3827 | temp1 = true; | |
3828 | } | |
3829 | { | |
3830 | arg2 = wxString_in_helper(obj1); | |
3831 | if (arg2 == NULL) SWIG_fail; | |
3832 | temp2 = true; | |
3833 | } | |
3834 | { | |
3835 | arg3 = PyList_Size(obj2); | |
3836 | arg4 = wxString_LIST_helper(obj2); | |
3837 | if (arg4 == NULL) SWIG_fail; | |
3838 | } | |
3839 | if (obj3) { | |
3840 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow, | |
3841 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3842 | } | |
3843 | if (obj4) { | |
3844 | arg6 = (int)SWIG_As_int(obj4); | |
3845 | if (PyErr_Occurred()) SWIG_fail; | |
3846 | } | |
3847 | if (obj5) { | |
3848 | arg7 = (int)SWIG_As_int(obj5); | |
3849 | if (PyErr_Occurred()) SWIG_fail; | |
3850 | } | |
3851 | if (obj6) { | |
3852 | arg8 = (bool)SWIG_As_bool(obj6); | |
3853 | if (PyErr_Occurred()) SWIG_fail; | |
3854 | } | |
3855 | if (obj7) { | |
3856 | arg9 = (int)SWIG_As_int(obj7); | |
3857 | if (PyErr_Occurred()) SWIG_fail; | |
3858 | } | |
3859 | if (obj8) { | |
3860 | arg10 = (int)SWIG_As_int(obj8); | |
3861 | if (PyErr_Occurred()) SWIG_fail; | |
3862 | } | |
3863 | { | |
3864 | if (!wxPyCheckForApp()) SWIG_fail; | |
3865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3866 | result = wxGetSingleChoice((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); | |
3867 | ||
3868 | wxPyEndAllowThreads(__tstate); | |
3869 | if (PyErr_Occurred()) SWIG_fail; | |
3870 | } | |
3871 | { | |
3872 | #if wxUSE_UNICODE | |
3873 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3874 | #else | |
3875 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3876 | #endif | |
3877 | } | |
3878 | { | |
3879 | if (temp1) | |
3880 | delete arg1; | |
3881 | } | |
3882 | { | |
3883 | if (temp2) | |
3884 | delete arg2; | |
3885 | } | |
3886 | { | |
3887 | if (arg4) delete [] arg4; | |
3888 | } | |
3889 | return resultobj; | |
3890 | fail: | |
3891 | { | |
3892 | if (temp1) | |
3893 | delete arg1; | |
3894 | } | |
3895 | { | |
3896 | if (temp2) | |
3897 | delete arg2; | |
3898 | } | |
3899 | { | |
3900 | if (arg4) delete [] arg4; | |
3901 | } | |
3902 | return NULL; | |
3903 | } | |
3904 | ||
3905 | ||
3906 | static PyObject *_wrap_GetSingleChoiceIndex(PyObject *, PyObject *args, PyObject *kwargs) { | |
3907 | PyObject *resultobj; | |
3908 | wxString *arg1 = 0 ; | |
3909 | wxString *arg2 = 0 ; | |
3910 | int arg3 ; | |
3911 | wxString *arg4 = (wxString *) 0 ; | |
3912 | wxWindow *arg5 = (wxWindow *) NULL ; | |
3913 | int arg6 = (int) -1 ; | |
3914 | int arg7 = (int) -1 ; | |
3915 | bool arg8 = (bool) true ; | |
3916 | int arg9 = (int) 150 ; | |
3917 | int arg10 = (int) 200 ; | |
3918 | int result; | |
3919 | bool temp1 = false ; | |
3920 | bool temp2 = false ; | |
3921 | PyObject * obj0 = 0 ; | |
3922 | PyObject * obj1 = 0 ; | |
3923 | PyObject * obj2 = 0 ; | |
3924 | PyObject * obj3 = 0 ; | |
3925 | PyObject * obj4 = 0 ; | |
3926 | PyObject * obj5 = 0 ; | |
3927 | PyObject * obj6 = 0 ; | |
3928 | PyObject * obj7 = 0 ; | |
3929 | PyObject * obj8 = 0 ; | |
3930 | char *kwnames[] = { | |
3931 | (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL | |
3932 | }; | |
3933 | ||
3934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoiceIndex",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
3935 | { | |
3936 | arg1 = wxString_in_helper(obj0); | |
3937 | if (arg1 == NULL) SWIG_fail; | |
3938 | temp1 = true; | |
3939 | } | |
3940 | { | |
3941 | arg2 = wxString_in_helper(obj1); | |
3942 | if (arg2 == NULL) SWIG_fail; | |
3943 | temp2 = true; | |
3944 | } | |
3945 | { | |
3946 | arg3 = PyList_Size(obj2); | |
3947 | arg4 = wxString_LIST_helper(obj2); | |
3948 | if (arg4 == NULL) SWIG_fail; | |
3949 | } | |
3950 | if (obj3) { | |
3951 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow, | |
3952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3953 | } | |
3954 | if (obj4) { | |
3955 | arg6 = (int)SWIG_As_int(obj4); | |
3956 | if (PyErr_Occurred()) SWIG_fail; | |
3957 | } | |
3958 | if (obj5) { | |
3959 | arg7 = (int)SWIG_As_int(obj5); | |
3960 | if (PyErr_Occurred()) SWIG_fail; | |
3961 | } | |
3962 | if (obj6) { | |
3963 | arg8 = (bool)SWIG_As_bool(obj6); | |
3964 | if (PyErr_Occurred()) SWIG_fail; | |
3965 | } | |
3966 | if (obj7) { | |
3967 | arg9 = (int)SWIG_As_int(obj7); | |
3968 | if (PyErr_Occurred()) SWIG_fail; | |
3969 | } | |
3970 | if (obj8) { | |
3971 | arg10 = (int)SWIG_As_int(obj8); | |
3972 | if (PyErr_Occurred()) SWIG_fail; | |
3973 | } | |
3974 | { | |
3975 | if (!wxPyCheckForApp()) SWIG_fail; | |
3976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3977 | result = (int)wxGetSingleChoiceIndex((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); | |
3978 | ||
3979 | wxPyEndAllowThreads(__tstate); | |
3980 | if (PyErr_Occurred()) SWIG_fail; | |
3981 | } | |
3982 | resultobj = SWIG_From_int((int)result); | |
3983 | { | |
3984 | if (temp1) | |
3985 | delete arg1; | |
3986 | } | |
3987 | { | |
3988 | if (temp2) | |
3989 | delete arg2; | |
3990 | } | |
3991 | { | |
3992 | if (arg4) delete [] arg4; | |
3993 | } | |
3994 | return resultobj; | |
3995 | fail: | |
3996 | { | |
3997 | if (temp1) | |
3998 | delete arg1; | |
3999 | } | |
4000 | { | |
4001 | if (temp2) | |
4002 | delete arg2; | |
4003 | } | |
4004 | { | |
4005 | if (arg4) delete [] arg4; | |
4006 | } | |
4007 | return NULL; | |
4008 | } | |
4009 | ||
4010 | ||
4011 | static PyObject *_wrap_MessageBox(PyObject *, PyObject *args, PyObject *kwargs) { | |
4012 | PyObject *resultobj; | |
4013 | wxString *arg1 = 0 ; | |
4014 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
4015 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
4016 | int arg3 = (int) wxOK|wxCENTRE ; | |
4017 | wxWindow *arg4 = (wxWindow *) NULL ; | |
4018 | int arg5 = (int) -1 ; | |
4019 | int arg6 = (int) -1 ; | |
4020 | int result; | |
4021 | bool temp1 = false ; | |
4022 | bool temp2 = false ; | |
4023 | PyObject * obj0 = 0 ; | |
4024 | PyObject * obj1 = 0 ; | |
4025 | PyObject * obj2 = 0 ; | |
4026 | PyObject * obj3 = 0 ; | |
4027 | PyObject * obj4 = 0 ; | |
4028 | PyObject * obj5 = 0 ; | |
4029 | char *kwnames[] = { | |
4030 | (char *) "message",(char *) "caption",(char *) "style",(char *) "parent",(char *) "x",(char *) "y", NULL | |
4031 | }; | |
4032 | ||
4033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:MessageBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
4034 | { | |
4035 | arg1 = wxString_in_helper(obj0); | |
4036 | if (arg1 == NULL) SWIG_fail; | |
4037 | temp1 = true; | |
4038 | } | |
4039 | if (obj1) { | |
4040 | { | |
4041 | arg2 = wxString_in_helper(obj1); | |
4042 | if (arg2 == NULL) SWIG_fail; | |
4043 | temp2 = true; | |
4044 | } | |
4045 | } | |
4046 | if (obj2) { | |
4047 | arg3 = (int)SWIG_As_int(obj2); | |
4048 | if (PyErr_Occurred()) SWIG_fail; | |
4049 | } | |
4050 | if (obj3) { | |
4051 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
4052 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4053 | } | |
4054 | if (obj4) { | |
4055 | arg5 = (int)SWIG_As_int(obj4); | |
4056 | if (PyErr_Occurred()) SWIG_fail; | |
4057 | } | |
4058 | if (obj5) { | |
4059 | arg6 = (int)SWIG_As_int(obj5); | |
4060 | if (PyErr_Occurred()) SWIG_fail; | |
4061 | } | |
4062 | { | |
4063 | if (!wxPyCheckForApp()) SWIG_fail; | |
4064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4065 | result = (int)wxMessageBox((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
4066 | ||
4067 | wxPyEndAllowThreads(__tstate); | |
4068 | if (PyErr_Occurred()) SWIG_fail; | |
4069 | } | |
4070 | resultobj = SWIG_From_int((int)result); | |
4071 | { | |
4072 | if (temp1) | |
4073 | delete arg1; | |
4074 | } | |
4075 | { | |
4076 | if (temp2) | |
4077 | delete arg2; | |
4078 | } | |
4079 | return resultobj; | |
4080 | fail: | |
4081 | { | |
4082 | if (temp1) | |
4083 | delete arg1; | |
4084 | } | |
4085 | { | |
4086 | if (temp2) | |
4087 | delete arg2; | |
4088 | } | |
4089 | return NULL; | |
4090 | } | |
4091 | ||
4092 | ||
4093 | static PyObject *_wrap_GetNumberFromUser(PyObject *, PyObject *args, PyObject *kwargs) { | |
4094 | PyObject *resultobj; | |
4095 | wxString *arg1 = 0 ; | |
4096 | wxString *arg2 = 0 ; | |
4097 | wxString *arg3 = 0 ; | |
4098 | long arg4 ; | |
4099 | long arg5 = (long) 0 ; | |
4100 | long arg6 = (long) 100 ; | |
4101 | wxWindow *arg7 = (wxWindow *) NULL ; | |
4102 | wxPoint const &arg8_defvalue = wxDefaultPosition ; | |
4103 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
4104 | long result; | |
4105 | bool temp1 = false ; | |
4106 | bool temp2 = false ; | |
4107 | bool temp3 = false ; | |
4108 | wxPoint temp8 ; | |
4109 | PyObject * obj0 = 0 ; | |
4110 | PyObject * obj1 = 0 ; | |
4111 | PyObject * obj2 = 0 ; | |
4112 | PyObject * obj3 = 0 ; | |
4113 | PyObject * obj4 = 0 ; | |
4114 | PyObject * obj5 = 0 ; | |
4115 | PyObject * obj6 = 0 ; | |
4116 | PyObject * obj7 = 0 ; | |
4117 | char *kwnames[] = { | |
4118 | (char *) "message",(char *) "prompt",(char *) "caption",(char *) "value",(char *) "min",(char *) "max",(char *) "parent",(char *) "pos", NULL | |
4119 | }; | |
4120 | ||
4121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:GetNumberFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
4122 | { | |
4123 | arg1 = wxString_in_helper(obj0); | |
4124 | if (arg1 == NULL) SWIG_fail; | |
4125 | temp1 = true; | |
4126 | } | |
4127 | { | |
4128 | arg2 = wxString_in_helper(obj1); | |
4129 | if (arg2 == NULL) SWIG_fail; | |
4130 | temp2 = true; | |
4131 | } | |
4132 | { | |
4133 | arg3 = wxString_in_helper(obj2); | |
4134 | if (arg3 == NULL) SWIG_fail; | |
4135 | temp3 = true; | |
4136 | } | |
4137 | arg4 = (long)SWIG_As_long(obj3); | |
4138 | if (PyErr_Occurred()) SWIG_fail; | |
4139 | if (obj4) { | |
4140 | arg5 = (long)SWIG_As_long(obj4); | |
4141 | if (PyErr_Occurred()) SWIG_fail; | |
4142 | } | |
4143 | if (obj5) { | |
4144 | arg6 = (long)SWIG_As_long(obj5); | |
4145 | if (PyErr_Occurred()) SWIG_fail; | |
4146 | } | |
4147 | if (obj6) { | |
4148 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow, | |
4149 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4150 | } | |
4151 | if (obj7) { | |
4152 | { | |
4153 | arg8 = &temp8; | |
4154 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
4155 | } | |
4156 | } | |
4157 | { | |
4158 | if (!wxPyCheckForApp()) SWIG_fail; | |
4159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4160 | result = (long)wxGetNumberFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7,(wxPoint const &)*arg8); | |
4161 | ||
4162 | wxPyEndAllowThreads(__tstate); | |
4163 | if (PyErr_Occurred()) SWIG_fail; | |
4164 | } | |
4165 | resultobj = SWIG_From_long((long)result); | |
4166 | { | |
4167 | if (temp1) | |
4168 | delete arg1; | |
4169 | } | |
4170 | { | |
4171 | if (temp2) | |
4172 | delete arg2; | |
4173 | } | |
4174 | { | |
4175 | if (temp3) | |
4176 | delete arg3; | |
4177 | } | |
4178 | return resultobj; | |
4179 | fail: | |
4180 | { | |
4181 | if (temp1) | |
4182 | delete arg1; | |
4183 | } | |
4184 | { | |
4185 | if (temp2) | |
4186 | delete arg2; | |
4187 | } | |
4188 | { | |
4189 | if (temp3) | |
4190 | delete arg3; | |
4191 | } | |
4192 | return NULL; | |
4193 | } | |
4194 | ||
4195 | ||
4196 | static PyObject *_wrap_ColourDisplay(PyObject *, PyObject *args, PyObject *kwargs) { | |
4197 | PyObject *resultobj; | |
4198 | bool result; | |
4199 | char *kwnames[] = { | |
4200 | NULL | |
4201 | }; | |
4202 | ||
4203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ColourDisplay",kwnames)) goto fail; | |
4204 | { | |
4205 | if (!wxPyCheckForApp()) SWIG_fail; | |
4206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4207 | result = (bool)wxColourDisplay(); | |
4208 | ||
4209 | wxPyEndAllowThreads(__tstate); | |
4210 | if (PyErr_Occurred()) SWIG_fail; | |
4211 | } | |
4212 | { | |
4213 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4214 | } | |
4215 | return resultobj; | |
4216 | fail: | |
4217 | return NULL; | |
4218 | } | |
4219 | ||
4220 | ||
4221 | static PyObject *_wrap_DisplayDepth(PyObject *, PyObject *args, PyObject *kwargs) { | |
4222 | PyObject *resultobj; | |
4223 | int result; | |
4224 | char *kwnames[] = { | |
4225 | NULL | |
4226 | }; | |
4227 | ||
4228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplayDepth",kwnames)) goto fail; | |
4229 | { | |
4230 | if (!wxPyCheckForApp()) SWIG_fail; | |
4231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4232 | result = (int)wxDisplayDepth(); | |
4233 | ||
4234 | wxPyEndAllowThreads(__tstate); | |
4235 | if (PyErr_Occurred()) SWIG_fail; | |
4236 | } | |
4237 | resultobj = SWIG_From_int((int)result); | |
4238 | return resultobj; | |
4239 | fail: | |
4240 | return NULL; | |
4241 | } | |
4242 | ||
4243 | ||
4244 | static PyObject *_wrap_GetDisplayDepth(PyObject *, PyObject *args, PyObject *kwargs) { | |
4245 | PyObject *resultobj; | |
4246 | int result; | |
4247 | char *kwnames[] = { | |
4248 | NULL | |
4249 | }; | |
4250 | ||
4251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplayDepth",kwnames)) goto fail; | |
4252 | { | |
4253 | if (!wxPyCheckForApp()) SWIG_fail; | |
4254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4255 | result = (int)wxGetDisplayDepth(); | |
4256 | ||
4257 | wxPyEndAllowThreads(__tstate); | |
4258 | if (PyErr_Occurred()) SWIG_fail; | |
4259 | } | |
4260 | resultobj = SWIG_From_int((int)result); | |
4261 | return resultobj; | |
4262 | fail: | |
4263 | return NULL; | |
4264 | } | |
4265 | ||
4266 | ||
4267 | static PyObject *_wrap_DisplaySize(PyObject *, PyObject *args, PyObject *kwargs) { | |
4268 | PyObject *resultobj; | |
4269 | int *arg1 = (int *) 0 ; | |
4270 | int *arg2 = (int *) 0 ; | |
4271 | int temp1 ; | |
4272 | int res1 = 0 ; | |
4273 | int temp2 ; | |
4274 | int res2 = 0 ; | |
4275 | char *kwnames[] = { | |
4276 | NULL | |
4277 | }; | |
4278 | ||
4279 | arg1 = &temp1; res1 = SWIG_NEWOBJ; | |
4280 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
4281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySize",kwnames)) goto fail; | |
4282 | { | |
4283 | if (!wxPyCheckForApp()) SWIG_fail; | |
4284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4285 | wxDisplaySize(arg1,arg2); | |
4286 | ||
4287 | wxPyEndAllowThreads(__tstate); | |
4288 | if (PyErr_Occurred()) SWIG_fail; | |
4289 | } | |
4290 | Py_INCREF(Py_None); resultobj = Py_None; | |
4291 | resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ? | |
4292 | SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0))); | |
4293 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
4294 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
4295 | return resultobj; | |
4296 | fail: | |
4297 | return NULL; | |
4298 | } | |
4299 | ||
4300 | ||
4301 | static PyObject *_wrap_GetDisplaySize(PyObject *, PyObject *args, PyObject *kwargs) { | |
4302 | PyObject *resultobj; | |
4303 | wxSize result; | |
4304 | char *kwnames[] = { | |
4305 | NULL | |
4306 | }; | |
4307 | ||
4308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySize",kwnames)) goto fail; | |
4309 | { | |
4310 | if (!wxPyCheckForApp()) SWIG_fail; | |
4311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4312 | result = wxGetDisplaySize(); | |
4313 | ||
4314 | wxPyEndAllowThreads(__tstate); | |
4315 | if (PyErr_Occurred()) SWIG_fail; | |
4316 | } | |
4317 | { | |
4318 | wxSize * resultptr; | |
4319 | resultptr = new wxSize((wxSize &) result); | |
4320 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
4321 | } | |
4322 | return resultobj; | |
4323 | fail: | |
4324 | return NULL; | |
4325 | } | |
4326 | ||
4327 | ||
4328 | static PyObject *_wrap_DisplaySizeMM(PyObject *, PyObject *args, PyObject *kwargs) { | |
4329 | PyObject *resultobj; | |
4330 | int *arg1 = (int *) 0 ; | |
4331 | int *arg2 = (int *) 0 ; | |
4332 | int temp1 ; | |
4333 | int res1 = 0 ; | |
4334 | int temp2 ; | |
4335 | int res2 = 0 ; | |
4336 | char *kwnames[] = { | |
4337 | NULL | |
4338 | }; | |
4339 | ||
4340 | arg1 = &temp1; res1 = SWIG_NEWOBJ; | |
4341 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
4342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySizeMM",kwnames)) goto fail; | |
4343 | { | |
4344 | if (!wxPyCheckForApp()) SWIG_fail; | |
4345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4346 | wxDisplaySizeMM(arg1,arg2); | |
4347 | ||
4348 | wxPyEndAllowThreads(__tstate); | |
4349 | if (PyErr_Occurred()) SWIG_fail; | |
4350 | } | |
4351 | Py_INCREF(Py_None); resultobj = Py_None; | |
4352 | resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ? | |
4353 | SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0))); | |
4354 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
4355 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
4356 | return resultobj; | |
4357 | fail: | |
4358 | return NULL; | |
4359 | } | |
4360 | ||
4361 | ||
4362 | static PyObject *_wrap_GetDisplaySizeMM(PyObject *, PyObject *args, PyObject *kwargs) { | |
4363 | PyObject *resultobj; | |
4364 | wxSize result; | |
4365 | char *kwnames[] = { | |
4366 | NULL | |
4367 | }; | |
4368 | ||
4369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySizeMM",kwnames)) goto fail; | |
4370 | { | |
4371 | if (!wxPyCheckForApp()) SWIG_fail; | |
4372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4373 | result = wxGetDisplaySizeMM(); | |
4374 | ||
4375 | wxPyEndAllowThreads(__tstate); | |
4376 | if (PyErr_Occurred()) SWIG_fail; | |
4377 | } | |
4378 | { | |
4379 | wxSize * resultptr; | |
4380 | resultptr = new wxSize((wxSize &) result); | |
4381 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
4382 | } | |
4383 | return resultobj; | |
4384 | fail: | |
4385 | return NULL; | |
4386 | } | |
4387 | ||
4388 | ||
4389 | static PyObject *_wrap_ClientDisplayRect(PyObject *, PyObject *args, PyObject *kwargs) { | |
4390 | PyObject *resultobj; | |
4391 | int *arg1 = (int *) 0 ; | |
4392 | int *arg2 = (int *) 0 ; | |
4393 | int *arg3 = (int *) 0 ; | |
4394 | int *arg4 = (int *) 0 ; | |
4395 | int temp1 ; | |
4396 | int res1 = 0 ; | |
4397 | int temp2 ; | |
4398 | int res2 = 0 ; | |
4399 | int temp3 ; | |
4400 | int res3 = 0 ; | |
4401 | int temp4 ; | |
4402 | int res4 = 0 ; | |
4403 | char *kwnames[] = { | |
4404 | NULL | |
4405 | }; | |
4406 | ||
4407 | arg1 = &temp1; res1 = SWIG_NEWOBJ; | |
4408 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
4409 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
4410 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
4411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ClientDisplayRect",kwnames)) goto fail; | |
4412 | { | |
4413 | if (!wxPyCheckForApp()) SWIG_fail; | |
4414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4415 | wxClientDisplayRect(arg1,arg2,arg3,arg4); | |
4416 | ||
4417 | wxPyEndAllowThreads(__tstate); | |
4418 | if (PyErr_Occurred()) SWIG_fail; | |
4419 | } | |
4420 | Py_INCREF(Py_None); resultobj = Py_None; | |
4421 | resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ? | |
4422 | SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0))); | |
4423 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
4424 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
4425 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
4426 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
4427 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
4428 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
4429 | return resultobj; | |
4430 | fail: | |
4431 | return NULL; | |
4432 | } | |
4433 | ||
4434 | ||
4435 | static PyObject *_wrap_GetClientDisplayRect(PyObject *, PyObject *args, PyObject *kwargs) { | |
4436 | PyObject *resultobj; | |
4437 | wxRect result; | |
4438 | char *kwnames[] = { | |
4439 | NULL | |
4440 | }; | |
4441 | ||
4442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetClientDisplayRect",kwnames)) goto fail; | |
4443 | { | |
4444 | if (!wxPyCheckForApp()) SWIG_fail; | |
4445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4446 | result = wxGetClientDisplayRect(); | |
4447 | ||
4448 | wxPyEndAllowThreads(__tstate); | |
4449 | if (PyErr_Occurred()) SWIG_fail; | |
4450 | } | |
4451 | { | |
4452 | wxRect * resultptr; | |
4453 | resultptr = new wxRect((wxRect &) result); | |
4454 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
4455 | } | |
4456 | return resultobj; | |
4457 | fail: | |
4458 | return NULL; | |
4459 | } | |
4460 | ||
4461 | ||
4462 | static PyObject *_wrap_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) { | |
4463 | PyObject *resultobj; | |
4464 | wxCursor *arg1 = 0 ; | |
4465 | PyObject * obj0 = 0 ; | |
4466 | char *kwnames[] = { | |
4467 | (char *) "cursor", NULL | |
4468 | }; | |
4469 | ||
4470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursor",kwnames,&obj0)) goto fail; | |
4471 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
4472 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4473 | SWIG_fail; | |
4474 | if (arg1 == NULL) { | |
4475 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4476 | SWIG_fail; | |
4477 | } | |
4478 | { | |
4479 | if (!wxPyCheckForApp()) SWIG_fail; | |
4480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4481 | wxSetCursor(*arg1); | |
4482 | ||
4483 | wxPyEndAllowThreads(__tstate); | |
4484 | if (PyErr_Occurred()) SWIG_fail; | |
4485 | } | |
4486 | Py_INCREF(Py_None); resultobj = Py_None; | |
4487 | return resultobj; | |
4488 | fail: | |
4489 | return NULL; | |
4490 | } | |
4491 | ||
4492 | ||
4493 | static PyObject *_wrap_BeginBusyCursor(PyObject *, PyObject *args, PyObject *kwargs) { | |
4494 | PyObject *resultobj; | |
4495 | wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ; | |
4496 | PyObject * obj0 = 0 ; | |
4497 | char *kwnames[] = { | |
4498 | (char *) "cursor", NULL | |
4499 | }; | |
4500 | ||
4501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BeginBusyCursor",kwnames,&obj0)) goto fail; | |
4502 | if (obj0) { | |
4503 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
4504 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4505 | } | |
4506 | { | |
4507 | if (!wxPyCheckForApp()) SWIG_fail; | |
4508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4509 | wxBeginBusyCursor(arg1); | |
4510 | ||
4511 | wxPyEndAllowThreads(__tstate); | |
4512 | if (PyErr_Occurred()) SWIG_fail; | |
4513 | } | |
4514 | Py_INCREF(Py_None); resultobj = Py_None; | |
4515 | return resultobj; | |
4516 | fail: | |
4517 | return NULL; | |
4518 | } | |
4519 | ||
4520 | ||
4521 | static PyObject *_wrap_GetActiveWindow(PyObject *, PyObject *args, PyObject *kwargs) { | |
4522 | PyObject *resultobj; | |
4523 | wxWindow *result; | |
4524 | char *kwnames[] = { | |
4525 | NULL | |
4526 | }; | |
4527 | ||
4528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetActiveWindow",kwnames)) goto fail; | |
4529 | { | |
4530 | if (!wxPyCheckForApp()) SWIG_fail; | |
4531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4532 | result = (wxWindow *)wxGetActiveWindow(); | |
4533 | ||
4534 | wxPyEndAllowThreads(__tstate); | |
4535 | if (PyErr_Occurred()) SWIG_fail; | |
4536 | } | |
4537 | { | |
4538 | resultobj = wxPyMake_wxObject(result, 0); | |
4539 | } | |
4540 | return resultobj; | |
4541 | fail: | |
4542 | return NULL; | |
4543 | } | |
4544 | ||
4545 | ||
4546 | static PyObject *_wrap_GenericFindWindowAtPoint(PyObject *, PyObject *args, PyObject *kwargs) { | |
4547 | PyObject *resultobj; | |
4548 | wxPoint *arg1 = 0 ; | |
4549 | wxWindow *result; | |
4550 | wxPoint temp1 ; | |
4551 | PyObject * obj0 = 0 ; | |
4552 | char *kwnames[] = { | |
4553 | (char *) "pt", NULL | |
4554 | }; | |
4555 | ||
4556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericFindWindowAtPoint",kwnames,&obj0)) goto fail; | |
4557 | { | |
4558 | arg1 = &temp1; | |
4559 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
4560 | } | |
4561 | { | |
4562 | if (!wxPyCheckForApp()) SWIG_fail; | |
4563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4564 | result = (wxWindow *)wxGenericFindWindowAtPoint((wxPoint const &)*arg1); | |
4565 | ||
4566 | wxPyEndAllowThreads(__tstate); | |
4567 | if (PyErr_Occurred()) SWIG_fail; | |
4568 | } | |
4569 | { | |
4570 | resultobj = wxPyMake_wxObject(result, 0); | |
4571 | } | |
4572 | return resultobj; | |
4573 | fail: | |
4574 | return NULL; | |
4575 | } | |
4576 | ||
4577 | ||
4578 | static PyObject *_wrap_FindWindowAtPoint(PyObject *, PyObject *args, PyObject *kwargs) { | |
4579 | PyObject *resultobj; | |
4580 | wxPoint *arg1 = 0 ; | |
4581 | wxWindow *result; | |
4582 | wxPoint temp1 ; | |
4583 | PyObject * obj0 = 0 ; | |
4584 | char *kwnames[] = { | |
4585 | (char *) "pt", NULL | |
4586 | }; | |
4587 | ||
4588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindWindowAtPoint",kwnames,&obj0)) goto fail; | |
4589 | { | |
4590 | arg1 = &temp1; | |
4591 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
4592 | } | |
4593 | { | |
4594 | if (!wxPyCheckForApp()) SWIG_fail; | |
4595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4596 | result = (wxWindow *)wxFindWindowAtPoint((wxPoint const &)*arg1); | |
4597 | ||
4598 | wxPyEndAllowThreads(__tstate); | |
4599 | if (PyErr_Occurred()) SWIG_fail; | |
4600 | } | |
4601 | { | |
4602 | resultobj = wxPyMake_wxObject(result, 0); | |
4603 | } | |
4604 | return resultobj; | |
4605 | fail: | |
4606 | return NULL; | |
4607 | } | |
4608 | ||
4609 | ||
4610 | static PyObject *_wrap_GetTopLevelParent(PyObject *, PyObject *args, PyObject *kwargs) { | |
4611 | PyObject *resultobj; | |
4612 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4613 | wxWindow *result; | |
4614 | PyObject * obj0 = 0 ; | |
4615 | char *kwnames[] = { | |
4616 | (char *) "win", NULL | |
4617 | }; | |
4618 | ||
4619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetTopLevelParent",kwnames,&obj0)) goto fail; | |
4620 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
4621 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4622 | { | |
4623 | if (!wxPyCheckForApp()) SWIG_fail; | |
4624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4625 | result = (wxWindow *)wxGetTopLevelParent(arg1); | |
4626 | ||
4627 | wxPyEndAllowThreads(__tstate); | |
4628 | if (PyErr_Occurred()) SWIG_fail; | |
4629 | } | |
4630 | { | |
4631 | resultobj = wxPyMake_wxObject(result, 0); | |
4632 | } | |
4633 | return resultobj; | |
4634 | fail: | |
4635 | return NULL; | |
4636 | } | |
4637 | ||
4638 | ||
4639 | static PyObject *_wrap_GetKeyState(PyObject *, PyObject *args, PyObject *kwargs) { | |
4640 | PyObject *resultobj; | |
4641 | int arg1 ; | |
4642 | bool result; | |
4643 | PyObject * obj0 = 0 ; | |
4644 | char *kwnames[] = { | |
4645 | (char *) "key", NULL | |
4646 | }; | |
4647 | ||
4648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetKeyState",kwnames,&obj0)) goto fail; | |
4649 | arg1 = (int)SWIG_As_int(obj0); | |
4650 | if (PyErr_Occurred()) SWIG_fail; | |
4651 | { | |
4652 | if (!wxPyCheckForApp()) SWIG_fail; | |
4653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4654 | result = (bool)wxGetKeyState((wxKeyCode )arg1); | |
4655 | ||
4656 | wxPyEndAllowThreads(__tstate); | |
4657 | if (PyErr_Occurred()) SWIG_fail; | |
4658 | } | |
4659 | { | |
4660 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4661 | } | |
4662 | return resultobj; | |
4663 | fail: | |
4664 | return NULL; | |
4665 | } | |
4666 | ||
4667 | ||
4668 | static PyObject *_wrap_WakeUpMainThread(PyObject *, PyObject *args, PyObject *kwargs) { | |
4669 | PyObject *resultobj; | |
4670 | char *kwnames[] = { | |
4671 | NULL | |
4672 | }; | |
4673 | ||
4674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpMainThread",kwnames)) goto fail; | |
4675 | { | |
4676 | if (!wxPyCheckForApp()) SWIG_fail; | |
4677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4678 | wxWakeUpMainThread(); | |
4679 | ||
4680 | wxPyEndAllowThreads(__tstate); | |
4681 | if (PyErr_Occurred()) SWIG_fail; | |
4682 | } | |
4683 | Py_INCREF(Py_None); resultobj = Py_None; | |
4684 | return resultobj; | |
4685 | fail: | |
4686 | return NULL; | |
4687 | } | |
4688 | ||
4689 | ||
4690 | static PyObject *_wrap_MutexGuiEnter(PyObject *, PyObject *args, PyObject *kwargs) { | |
4691 | PyObject *resultobj; | |
4692 | char *kwnames[] = { | |
4693 | NULL | |
4694 | }; | |
4695 | ||
4696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiEnter",kwnames)) goto fail; | |
4697 | { | |
4698 | if (!wxPyCheckForApp()) SWIG_fail; | |
4699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4700 | wxMutexGuiEnter(); | |
4701 | ||
4702 | wxPyEndAllowThreads(__tstate); | |
4703 | if (PyErr_Occurred()) SWIG_fail; | |
4704 | } | |
4705 | Py_INCREF(Py_None); resultobj = Py_None; | |
4706 | return resultobj; | |
4707 | fail: | |
4708 | return NULL; | |
4709 | } | |
4710 | ||
4711 | ||
4712 | static PyObject *_wrap_MutexGuiLeave(PyObject *, PyObject *args, PyObject *kwargs) { | |
4713 | PyObject *resultobj; | |
4714 | char *kwnames[] = { | |
4715 | NULL | |
4716 | }; | |
4717 | ||
4718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiLeave",kwnames)) goto fail; | |
4719 | { | |
4720 | if (!wxPyCheckForApp()) SWIG_fail; | |
4721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4722 | wxMutexGuiLeave(); | |
4723 | ||
4724 | wxPyEndAllowThreads(__tstate); | |
4725 | if (PyErr_Occurred()) SWIG_fail; | |
4726 | } | |
4727 | Py_INCREF(Py_None); resultobj = Py_None; | |
4728 | return resultobj; | |
4729 | fail: | |
4730 | return NULL; | |
4731 | } | |
4732 | ||
4733 | ||
4734 | static PyObject *_wrap_new_MutexGuiLocker(PyObject *, PyObject *args, PyObject *kwargs) { | |
4735 | PyObject *resultobj; | |
4736 | wxMutexGuiLocker *result; | |
4737 | char *kwnames[] = { | |
4738 | NULL | |
4739 | }; | |
4740 | ||
4741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MutexGuiLocker",kwnames)) goto fail; | |
4742 | { | |
4743 | if (!wxPyCheckForApp()) SWIG_fail; | |
4744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4745 | result = (wxMutexGuiLocker *)new wxMutexGuiLocker(); | |
4746 | ||
4747 | wxPyEndAllowThreads(__tstate); | |
4748 | if (PyErr_Occurred()) SWIG_fail; | |
4749 | } | |
4750 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMutexGuiLocker, 1); | |
4751 | return resultobj; | |
4752 | fail: | |
4753 | return NULL; | |
4754 | } | |
4755 | ||
4756 | ||
4757 | static PyObject *_wrap_delete_MutexGuiLocker(PyObject *, PyObject *args, PyObject *kwargs) { | |
4758 | PyObject *resultobj; | |
4759 | wxMutexGuiLocker *arg1 = (wxMutexGuiLocker *) 0 ; | |
4760 | PyObject * obj0 = 0 ; | |
4761 | char *kwnames[] = { | |
4762 | (char *) "self", NULL | |
4763 | }; | |
4764 | ||
4765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MutexGuiLocker",kwnames,&obj0)) goto fail; | |
4766 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMutexGuiLocker, | |
4767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4768 | { | |
4769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4770 | delete arg1; | |
4771 | ||
4772 | wxPyEndAllowThreads(__tstate); | |
4773 | if (PyErr_Occurred()) SWIG_fail; | |
4774 | } | |
4775 | Py_INCREF(Py_None); resultobj = Py_None; | |
4776 | return resultobj; | |
4777 | fail: | |
4778 | return NULL; | |
4779 | } | |
4780 | ||
4781 | ||
4782 | static PyObject * MutexGuiLocker_swigregister(PyObject *, PyObject *args) { | |
4783 | PyObject *obj; | |
4784 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4785 | SWIG_TypeClientData(SWIGTYPE_p_wxMutexGuiLocker, obj); | |
4786 | Py_INCREF(obj); | |
4787 | return Py_BuildValue((char *)""); | |
4788 | } | |
4789 | static PyObject *_wrap_Thread_IsMain(PyObject *, PyObject *args, PyObject *kwargs) { | |
4790 | PyObject *resultobj; | |
4791 | bool result; | |
4792 | char *kwnames[] = { | |
4793 | NULL | |
4794 | }; | |
4795 | ||
4796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Thread_IsMain",kwnames)) goto fail; | |
4797 | { | |
4798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4799 | result = (bool)wxThread_IsMain(); | |
4800 | ||
4801 | wxPyEndAllowThreads(__tstate); | |
4802 | if (PyErr_Occurred()) SWIG_fail; | |
4803 | } | |
4804 | { | |
4805 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4806 | } | |
4807 | return resultobj; | |
4808 | fail: | |
4809 | return NULL; | |
4810 | } | |
4811 | ||
4812 | ||
4813 | static PyObject *_wrap_new_ToolTip(PyObject *, PyObject *args, PyObject *kwargs) { | |
4814 | PyObject *resultobj; | |
4815 | wxString *arg1 = 0 ; | |
4816 | wxToolTip *result; | |
4817 | bool temp1 = false ; | |
4818 | PyObject * obj0 = 0 ; | |
4819 | char *kwnames[] = { | |
4820 | (char *) "tip", NULL | |
4821 | }; | |
4822 | ||
4823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ToolTip",kwnames,&obj0)) goto fail; | |
4824 | { | |
4825 | arg1 = wxString_in_helper(obj0); | |
4826 | if (arg1 == NULL) SWIG_fail; | |
4827 | temp1 = true; | |
4828 | } | |
4829 | { | |
4830 | if (!wxPyCheckForApp()) SWIG_fail; | |
4831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4832 | result = (wxToolTip *)new wxToolTip((wxString const &)*arg1); | |
4833 | ||
4834 | wxPyEndAllowThreads(__tstate); | |
4835 | if (PyErr_Occurred()) SWIG_fail; | |
4836 | } | |
4837 | { | |
4838 | resultobj = wxPyMake_wxObject(result, 1); | |
4839 | } | |
4840 | { | |
4841 | if (temp1) | |
4842 | delete arg1; | |
4843 | } | |
4844 | return resultobj; | |
4845 | fail: | |
4846 | { | |
4847 | if (temp1) | |
4848 | delete arg1; | |
4849 | } | |
4850 | return NULL; | |
4851 | } | |
4852 | ||
4853 | ||
4854 | static PyObject *_wrap_ToolTip_SetTip(PyObject *, PyObject *args, PyObject *kwargs) { | |
4855 | PyObject *resultobj; | |
4856 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
4857 | wxString *arg2 = 0 ; | |
4858 | bool temp2 = false ; | |
4859 | PyObject * obj0 = 0 ; | |
4860 | PyObject * obj1 = 0 ; | |
4861 | char *kwnames[] = { | |
4862 | (char *) "self",(char *) "tip", NULL | |
4863 | }; | |
4864 | ||
4865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolTip_SetTip",kwnames,&obj0,&obj1)) goto fail; | |
4866 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip, | |
4867 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4868 | { | |
4869 | arg2 = wxString_in_helper(obj1); | |
4870 | if (arg2 == NULL) SWIG_fail; | |
4871 | temp2 = true; | |
4872 | } | |
4873 | { | |
4874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4875 | (arg1)->SetTip((wxString const &)*arg2); | |
4876 | ||
4877 | wxPyEndAllowThreads(__tstate); | |
4878 | if (PyErr_Occurred()) SWIG_fail; | |
4879 | } | |
4880 | Py_INCREF(Py_None); resultobj = Py_None; | |
4881 | { | |
4882 | if (temp2) | |
4883 | delete arg2; | |
4884 | } | |
4885 | return resultobj; | |
4886 | fail: | |
4887 | { | |
4888 | if (temp2) | |
4889 | delete arg2; | |
4890 | } | |
4891 | return NULL; | |
4892 | } | |
4893 | ||
4894 | ||
4895 | static PyObject *_wrap_ToolTip_GetTip(PyObject *, PyObject *args, PyObject *kwargs) { | |
4896 | PyObject *resultobj; | |
4897 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
4898 | wxString result; | |
4899 | PyObject * obj0 = 0 ; | |
4900 | char *kwnames[] = { | |
4901 | (char *) "self", NULL | |
4902 | }; | |
4903 | ||
4904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetTip",kwnames,&obj0)) goto fail; | |
4905 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip, | |
4906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4907 | { | |
4908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4909 | result = (arg1)->GetTip(); | |
4910 | ||
4911 | wxPyEndAllowThreads(__tstate); | |
4912 | if (PyErr_Occurred()) SWIG_fail; | |
4913 | } | |
4914 | { | |
4915 | #if wxUSE_UNICODE | |
4916 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4917 | #else | |
4918 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4919 | #endif | |
4920 | } | |
4921 | return resultobj; | |
4922 | fail: | |
4923 | return NULL; | |
4924 | } | |
4925 | ||
4926 | ||
4927 | static PyObject *_wrap_ToolTip_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { | |
4928 | PyObject *resultobj; | |
4929 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
4930 | wxWindow *result; | |
4931 | PyObject * obj0 = 0 ; | |
4932 | char *kwnames[] = { | |
4933 | (char *) "self", NULL | |
4934 | }; | |
4935 | ||
4936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetWindow",kwnames,&obj0)) goto fail; | |
4937 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip, | |
4938 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4939 | { | |
4940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4941 | result = (wxWindow *)(arg1)->GetWindow(); | |
4942 | ||
4943 | wxPyEndAllowThreads(__tstate); | |
4944 | if (PyErr_Occurred()) SWIG_fail; | |
4945 | } | |
4946 | { | |
4947 | resultobj = wxPyMake_wxObject(result, 0); | |
4948 | } | |
4949 | return resultobj; | |
4950 | fail: | |
4951 | return NULL; | |
4952 | } | |
4953 | ||
4954 | ||
4955 | static PyObject *_wrap_ToolTip_Enable(PyObject *, PyObject *args, PyObject *kwargs) { | |
4956 | PyObject *resultobj; | |
4957 | bool arg1 ; | |
4958 | PyObject * obj0 = 0 ; | |
4959 | char *kwnames[] = { | |
4960 | (char *) "flag", NULL | |
4961 | }; | |
4962 | ||
4963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_Enable",kwnames,&obj0)) goto fail; | |
4964 | arg1 = (bool)SWIG_As_bool(obj0); | |
4965 | if (PyErr_Occurred()) SWIG_fail; | |
4966 | { | |
4967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4968 | wxToolTip::Enable(arg1); | |
4969 | ||
4970 | wxPyEndAllowThreads(__tstate); | |
4971 | if (PyErr_Occurred()) SWIG_fail; | |
4972 | } | |
4973 | Py_INCREF(Py_None); resultobj = Py_None; | |
4974 | return resultobj; | |
4975 | fail: | |
4976 | return NULL; | |
4977 | } | |
4978 | ||
4979 | ||
4980 | static PyObject *_wrap_ToolTip_SetDelay(PyObject *, PyObject *args, PyObject *kwargs) { | |
4981 | PyObject *resultobj; | |
4982 | long arg1 ; | |
4983 | PyObject * obj0 = 0 ; | |
4984 | char *kwnames[] = { | |
4985 | (char *) "milliseconds", NULL | |
4986 | }; | |
4987 | ||
4988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_SetDelay",kwnames,&obj0)) goto fail; | |
4989 | arg1 = (long)SWIG_As_long(obj0); | |
4990 | if (PyErr_Occurred()) SWIG_fail; | |
4991 | { | |
4992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4993 | wxToolTip::SetDelay(arg1); | |
4994 | ||
4995 | wxPyEndAllowThreads(__tstate); | |
4996 | if (PyErr_Occurred()) SWIG_fail; | |
4997 | } | |
4998 | Py_INCREF(Py_None); resultobj = Py_None; | |
4999 | return resultobj; | |
5000 | fail: | |
5001 | return NULL; | |
5002 | } | |
5003 | ||
5004 | ||
5005 | static PyObject * ToolTip_swigregister(PyObject *, PyObject *args) { | |
5006 | PyObject *obj; | |
5007 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5008 | SWIG_TypeClientData(SWIGTYPE_p_wxToolTip, obj); | |
5009 | Py_INCREF(obj); | |
5010 | return Py_BuildValue((char *)""); | |
5011 | } | |
5012 | static PyObject *_wrap_new_Caret(PyObject *, PyObject *args, PyObject *kwargs) { | |
5013 | PyObject *resultobj; | |
5014 | wxWindow *arg1 = (wxWindow *) 0 ; | |
5015 | wxSize *arg2 = 0 ; | |
5016 | wxCaret *result; | |
5017 | wxSize temp2 ; | |
5018 | PyObject * obj0 = 0 ; | |
5019 | PyObject * obj1 = 0 ; | |
5020 | char *kwnames[] = { | |
5021 | (char *) "window",(char *) "size", NULL | |
5022 | }; | |
5023 | ||
5024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_Caret",kwnames,&obj0,&obj1)) goto fail; | |
5025 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
5026 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5027 | { | |
5028 | arg2 = &temp2; | |
5029 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
5030 | } | |
5031 | { | |
5032 | if (!wxPyCheckForApp()) SWIG_fail; | |
5033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5034 | result = (wxCaret *)new wxCaret(arg1,(wxSize const &)*arg2); | |
5035 | ||
5036 | wxPyEndAllowThreads(__tstate); | |
5037 | if (PyErr_Occurred()) SWIG_fail; | |
5038 | } | |
5039 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 1); | |
5040 | return resultobj; | |
5041 | fail: | |
5042 | return NULL; | |
5043 | } | |
5044 | ||
5045 | ||
5046 | static PyObject *_wrap_delete_Caret(PyObject *, PyObject *args, PyObject *kwargs) { | |
5047 | PyObject *resultobj; | |
5048 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5049 | PyObject * obj0 = 0 ; | |
5050 | char *kwnames[] = { | |
5051 | (char *) "self", NULL | |
5052 | }; | |
5053 | ||
5054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Caret",kwnames,&obj0)) goto fail; | |
5055 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5056 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5057 | { | |
5058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5059 | delete arg1; | |
5060 | ||
5061 | wxPyEndAllowThreads(__tstate); | |
5062 | if (PyErr_Occurred()) SWIG_fail; | |
5063 | } | |
5064 | Py_INCREF(Py_None); resultobj = Py_None; | |
5065 | return resultobj; | |
5066 | fail: | |
5067 | return NULL; | |
5068 | } | |
5069 | ||
5070 | ||
5071 | static PyObject *_wrap_Caret_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { | |
5072 | PyObject *resultobj; | |
5073 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5074 | bool result; | |
5075 | PyObject * obj0 = 0 ; | |
5076 | char *kwnames[] = { | |
5077 | (char *) "self", NULL | |
5078 | }; | |
5079 | ||
5080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsOk",kwnames,&obj0)) goto fail; | |
5081 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5082 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5083 | { | |
5084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5085 | result = (bool)(arg1)->IsOk(); | |
5086 | ||
5087 | wxPyEndAllowThreads(__tstate); | |
5088 | if (PyErr_Occurred()) SWIG_fail; | |
5089 | } | |
5090 | { | |
5091 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5092 | } | |
5093 | return resultobj; | |
5094 | fail: | |
5095 | return NULL; | |
5096 | } | |
5097 | ||
5098 | ||
5099 | static PyObject *_wrap_Caret_IsVisible(PyObject *, PyObject *args, PyObject *kwargs) { | |
5100 | PyObject *resultobj; | |
5101 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5102 | bool result; | |
5103 | PyObject * obj0 = 0 ; | |
5104 | char *kwnames[] = { | |
5105 | (char *) "self", NULL | |
5106 | }; | |
5107 | ||
5108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsVisible",kwnames,&obj0)) goto fail; | |
5109 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5110 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5111 | { | |
5112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5113 | result = (bool)(arg1)->IsVisible(); | |
5114 | ||
5115 | wxPyEndAllowThreads(__tstate); | |
5116 | if (PyErr_Occurred()) SWIG_fail; | |
5117 | } | |
5118 | { | |
5119 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5120 | } | |
5121 | return resultobj; | |
5122 | fail: | |
5123 | return NULL; | |
5124 | } | |
5125 | ||
5126 | ||
5127 | static PyObject *_wrap_Caret_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { | |
5128 | PyObject *resultobj; | |
5129 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5130 | wxPoint result; | |
5131 | PyObject * obj0 = 0 ; | |
5132 | char *kwnames[] = { | |
5133 | (char *) "self", NULL | |
5134 | }; | |
5135 | ||
5136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPosition",kwnames,&obj0)) goto fail; | |
5137 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5138 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5139 | { | |
5140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5141 | result = (arg1)->GetPosition(); | |
5142 | ||
5143 | wxPyEndAllowThreads(__tstate); | |
5144 | if (PyErr_Occurred()) SWIG_fail; | |
5145 | } | |
5146 | { | |
5147 | wxPoint * resultptr; | |
5148 | resultptr = new wxPoint((wxPoint &) result); | |
5149 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
5150 | } | |
5151 | return resultobj; | |
5152 | fail: | |
5153 | return NULL; | |
5154 | } | |
5155 | ||
5156 | ||
5157 | static PyObject *_wrap_Caret_GetPositionTuple(PyObject *, PyObject *args, PyObject *kwargs) { | |
5158 | PyObject *resultobj; | |
5159 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5160 | int *arg2 = (int *) 0 ; | |
5161 | int *arg3 = (int *) 0 ; | |
5162 | int temp2 ; | |
5163 | int res2 = 0 ; | |
5164 | int temp3 ; | |
5165 | int res3 = 0 ; | |
5166 | PyObject * obj0 = 0 ; | |
5167 | char *kwnames[] = { | |
5168 | (char *) "self", NULL | |
5169 | }; | |
5170 | ||
5171 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
5172 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
5173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPositionTuple",kwnames,&obj0)) goto fail; | |
5174 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5175 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5176 | { | |
5177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5178 | (arg1)->GetPosition(arg2,arg3); | |
5179 | ||
5180 | wxPyEndAllowThreads(__tstate); | |
5181 | if (PyErr_Occurred()) SWIG_fail; | |
5182 | } | |
5183 | Py_INCREF(Py_None); resultobj = Py_None; | |
5184 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
5185 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
5186 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
5187 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
5188 | return resultobj; | |
5189 | fail: | |
5190 | return NULL; | |
5191 | } | |
5192 | ||
5193 | ||
5194 | static PyObject *_wrap_Caret_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
5195 | PyObject *resultobj; | |
5196 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5197 | wxSize result; | |
5198 | PyObject * obj0 = 0 ; | |
5199 | char *kwnames[] = { | |
5200 | (char *) "self", NULL | |
5201 | }; | |
5202 | ||
5203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSize",kwnames,&obj0)) goto fail; | |
5204 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5205 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5206 | { | |
5207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5208 | result = (arg1)->GetSize(); | |
5209 | ||
5210 | wxPyEndAllowThreads(__tstate); | |
5211 | if (PyErr_Occurred()) SWIG_fail; | |
5212 | } | |
5213 | { | |
5214 | wxSize * resultptr; | |
5215 | resultptr = new wxSize((wxSize &) result); | |
5216 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
5217 | } | |
5218 | return resultobj; | |
5219 | fail: | |
5220 | return NULL; | |
5221 | } | |
5222 | ||
5223 | ||
5224 | static PyObject *_wrap_Caret_GetSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { | |
5225 | PyObject *resultobj; | |
5226 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5227 | int *arg2 = (int *) 0 ; | |
5228 | int *arg3 = (int *) 0 ; | |
5229 | int temp2 ; | |
5230 | int res2 = 0 ; | |
5231 | int temp3 ; | |
5232 | int res3 = 0 ; | |
5233 | PyObject * obj0 = 0 ; | |
5234 | char *kwnames[] = { | |
5235 | (char *) "self", NULL | |
5236 | }; | |
5237 | ||
5238 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
5239 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
5240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSizeTuple",kwnames,&obj0)) goto fail; | |
5241 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5242 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5243 | { | |
5244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5245 | (arg1)->GetSize(arg2,arg3); | |
5246 | ||
5247 | wxPyEndAllowThreads(__tstate); | |
5248 | if (PyErr_Occurred()) SWIG_fail; | |
5249 | } | |
5250 | Py_INCREF(Py_None); resultobj = Py_None; | |
5251 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
5252 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
5253 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
5254 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
5255 | return resultobj; | |
5256 | fail: | |
5257 | return NULL; | |
5258 | } | |
5259 | ||
5260 | ||
5261 | static PyObject *_wrap_Caret_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { | |
5262 | PyObject *resultobj; | |
5263 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5264 | wxWindow *result; | |
5265 | PyObject * obj0 = 0 ; | |
5266 | char *kwnames[] = { | |
5267 | (char *) "self", NULL | |
5268 | }; | |
5269 | ||
5270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetWindow",kwnames,&obj0)) goto fail; | |
5271 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5272 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5273 | { | |
5274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5275 | result = (wxWindow *)(arg1)->GetWindow(); | |
5276 | ||
5277 | wxPyEndAllowThreads(__tstate); | |
5278 | if (PyErr_Occurred()) SWIG_fail; | |
5279 | } | |
5280 | { | |
5281 | resultobj = wxPyMake_wxObject(result, 0); | |
5282 | } | |
5283 | return resultobj; | |
5284 | fail: | |
5285 | return NULL; | |
5286 | } | |
5287 | ||
5288 | ||
5289 | static PyObject *_wrap_Caret_MoveXY(PyObject *, PyObject *args, PyObject *kwargs) { | |
5290 | PyObject *resultobj; | |
5291 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5292 | int arg2 ; | |
5293 | int arg3 ; | |
5294 | PyObject * obj0 = 0 ; | |
5295 | PyObject * obj1 = 0 ; | |
5296 | PyObject * obj2 = 0 ; | |
5297 | char *kwnames[] = { | |
5298 | (char *) "self",(char *) "x",(char *) "y", NULL | |
5299 | }; | |
5300 | ||
5301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_MoveXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5302 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5303 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5304 | arg2 = (int)SWIG_As_int(obj1); | |
5305 | if (PyErr_Occurred()) SWIG_fail; | |
5306 | arg3 = (int)SWIG_As_int(obj2); | |
5307 | if (PyErr_Occurred()) SWIG_fail; | |
5308 | { | |
5309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5310 | (arg1)->Move(arg2,arg3); | |
5311 | ||
5312 | wxPyEndAllowThreads(__tstate); | |
5313 | if (PyErr_Occurred()) SWIG_fail; | |
5314 | } | |
5315 | Py_INCREF(Py_None); resultobj = Py_None; | |
5316 | return resultobj; | |
5317 | fail: | |
5318 | return NULL; | |
5319 | } | |
5320 | ||
5321 | ||
5322 | static PyObject *_wrap_Caret_Move(PyObject *, PyObject *args, PyObject *kwargs) { | |
5323 | PyObject *resultobj; | |
5324 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5325 | wxPoint *arg2 = 0 ; | |
5326 | wxPoint temp2 ; | |
5327 | PyObject * obj0 = 0 ; | |
5328 | PyObject * obj1 = 0 ; | |
5329 | char *kwnames[] = { | |
5330 | (char *) "self",(char *) "pt", NULL | |
5331 | }; | |
5332 | ||
5333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_Move",kwnames,&obj0,&obj1)) goto fail; | |
5334 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5335 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5336 | { | |
5337 | arg2 = &temp2; | |
5338 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
5339 | } | |
5340 | { | |
5341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5342 | (arg1)->Move((wxPoint const &)*arg2); | |
5343 | ||
5344 | wxPyEndAllowThreads(__tstate); | |
5345 | if (PyErr_Occurred()) SWIG_fail; | |
5346 | } | |
5347 | Py_INCREF(Py_None); resultobj = Py_None; | |
5348 | return resultobj; | |
5349 | fail: | |
5350 | return NULL; | |
5351 | } | |
5352 | ||
5353 | ||
5354 | static PyObject *_wrap_Caret_SetSizeWH(PyObject *, PyObject *args, PyObject *kwargs) { | |
5355 | PyObject *resultobj; | |
5356 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5357 | int arg2 ; | |
5358 | int arg3 ; | |
5359 | PyObject * obj0 = 0 ; | |
5360 | PyObject * obj1 = 0 ; | |
5361 | PyObject * obj2 = 0 ; | |
5362 | char *kwnames[] = { | |
5363 | (char *) "self",(char *) "width",(char *) "height", NULL | |
5364 | }; | |
5365 | ||
5366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5367 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5369 | arg2 = (int)SWIG_As_int(obj1); | |
5370 | if (PyErr_Occurred()) SWIG_fail; | |
5371 | arg3 = (int)SWIG_As_int(obj2); | |
5372 | if (PyErr_Occurred()) SWIG_fail; | |
5373 | { | |
5374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5375 | (arg1)->SetSize(arg2,arg3); | |
5376 | ||
5377 | wxPyEndAllowThreads(__tstate); | |
5378 | if (PyErr_Occurred()) SWIG_fail; | |
5379 | } | |
5380 | Py_INCREF(Py_None); resultobj = Py_None; | |
5381 | return resultobj; | |
5382 | fail: | |
5383 | return NULL; | |
5384 | } | |
5385 | ||
5386 | ||
5387 | static PyObject *_wrap_Caret_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
5388 | PyObject *resultobj; | |
5389 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5390 | wxSize *arg2 = 0 ; | |
5391 | wxSize temp2 ; | |
5392 | PyObject * obj0 = 0 ; | |
5393 | PyObject * obj1 = 0 ; | |
5394 | char *kwnames[] = { | |
5395 | (char *) "self",(char *) "size", NULL | |
5396 | }; | |
5397 | ||
5398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
5399 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5400 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5401 | { | |
5402 | arg2 = &temp2; | |
5403 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
5404 | } | |
5405 | { | |
5406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5407 | (arg1)->SetSize((wxSize const &)*arg2); | |
5408 | ||
5409 | wxPyEndAllowThreads(__tstate); | |
5410 | if (PyErr_Occurred()) SWIG_fail; | |
5411 | } | |
5412 | Py_INCREF(Py_None); resultobj = Py_None; | |
5413 | return resultobj; | |
5414 | fail: | |
5415 | return NULL; | |
5416 | } | |
5417 | ||
5418 | ||
5419 | static PyObject *_wrap_Caret_Show(PyObject *, PyObject *args, PyObject *kwargs) { | |
5420 | PyObject *resultobj; | |
5421 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5422 | int arg2 = (int) true ; | |
5423 | PyObject * obj0 = 0 ; | |
5424 | PyObject * obj1 = 0 ; | |
5425 | char *kwnames[] = { | |
5426 | (char *) "self",(char *) "show", NULL | |
5427 | }; | |
5428 | ||
5429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Caret_Show",kwnames,&obj0,&obj1)) goto fail; | |
5430 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5431 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5432 | if (obj1) { | |
5433 | arg2 = (int)SWIG_As_int(obj1); | |
5434 | if (PyErr_Occurred()) SWIG_fail; | |
5435 | } | |
5436 | { | |
5437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5438 | (arg1)->Show(arg2); | |
5439 | ||
5440 | wxPyEndAllowThreads(__tstate); | |
5441 | if (PyErr_Occurred()) SWIG_fail; | |
5442 | } | |
5443 | Py_INCREF(Py_None); resultobj = Py_None; | |
5444 | return resultobj; | |
5445 | fail: | |
5446 | return NULL; | |
5447 | } | |
5448 | ||
5449 | ||
5450 | static PyObject *_wrap_Caret_Hide(PyObject *, PyObject *args, PyObject *kwargs) { | |
5451 | PyObject *resultobj; | |
5452 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5453 | PyObject * obj0 = 0 ; | |
5454 | char *kwnames[] = { | |
5455 | (char *) "self", NULL | |
5456 | }; | |
5457 | ||
5458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Hide",kwnames,&obj0)) goto fail; | |
5459 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5460 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5461 | { | |
5462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5463 | (arg1)->Hide(); | |
5464 | ||
5465 | wxPyEndAllowThreads(__tstate); | |
5466 | if (PyErr_Occurred()) SWIG_fail; | |
5467 | } | |
5468 | Py_INCREF(Py_None); resultobj = Py_None; | |
5469 | return resultobj; | |
5470 | fail: | |
5471 | return NULL; | |
5472 | } | |
5473 | ||
5474 | ||
5475 | static PyObject * Caret_swigregister(PyObject *, PyObject *args) { | |
5476 | PyObject *obj; | |
5477 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5478 | SWIG_TypeClientData(SWIGTYPE_p_wxCaret, obj); | |
5479 | Py_INCREF(obj); | |
5480 | return Py_BuildValue((char *)""); | |
5481 | } | |
5482 | static PyObject *_wrap_Caret_GetBlinkTime(PyObject *, PyObject *args, PyObject *kwargs) { | |
5483 | PyObject *resultobj; | |
5484 | int result; | |
5485 | char *kwnames[] = { | |
5486 | NULL | |
5487 | }; | |
5488 | ||
5489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Caret_GetBlinkTime",kwnames)) goto fail; | |
5490 | { | |
5491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5492 | result = (int)wxCaret_GetBlinkTime(); | |
5493 | ||
5494 | wxPyEndAllowThreads(__tstate); | |
5495 | if (PyErr_Occurred()) SWIG_fail; | |
5496 | } | |
5497 | resultobj = SWIG_From_int((int)result); | |
5498 | return resultobj; | |
5499 | fail: | |
5500 | return NULL; | |
5501 | } | |
5502 | ||
5503 | ||
5504 | static PyObject *_wrap_Caret_SetBlinkTime(PyObject *, PyObject *args, PyObject *kwargs) { | |
5505 | PyObject *resultobj; | |
5506 | int arg1 ; | |
5507 | PyObject * obj0 = 0 ; | |
5508 | char *kwnames[] = { | |
5509 | (char *) "milliseconds", NULL | |
5510 | }; | |
5511 | ||
5512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_SetBlinkTime",kwnames,&obj0)) goto fail; | |
5513 | arg1 = (int)SWIG_As_int(obj0); | |
5514 | if (PyErr_Occurred()) SWIG_fail; | |
5515 | { | |
5516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5517 | wxCaret_SetBlinkTime(arg1); | |
5518 | ||
5519 | wxPyEndAllowThreads(__tstate); | |
5520 | if (PyErr_Occurred()) SWIG_fail; | |
5521 | } | |
5522 | Py_INCREF(Py_None); resultobj = Py_None; | |
5523 | return resultobj; | |
5524 | fail: | |
5525 | return NULL; | |
5526 | } | |
5527 | ||
5528 | ||
5529 | static PyObject *_wrap_new_BusyCursor(PyObject *, PyObject *args, PyObject *kwargs) { | |
5530 | PyObject *resultobj; | |
5531 | wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ; | |
5532 | wxBusyCursor *result; | |
5533 | PyObject * obj0 = 0 ; | |
5534 | char *kwnames[] = { | |
5535 | (char *) "cursor", NULL | |
5536 | }; | |
5537 | ||
5538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BusyCursor",kwnames,&obj0)) goto fail; | |
5539 | if (obj0) { | |
5540 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
5541 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5542 | } | |
5543 | { | |
5544 | if (!wxPyCheckForApp()) SWIG_fail; | |
5545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5546 | result = (wxBusyCursor *)new wxBusyCursor(arg1); | |
5547 | ||
5548 | wxPyEndAllowThreads(__tstate); | |
5549 | if (PyErr_Occurred()) SWIG_fail; | |
5550 | } | |
5551 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyCursor, 1); | |
5552 | return resultobj; | |
5553 | fail: | |
5554 | return NULL; | |
5555 | } | |
5556 | ||
5557 | ||
5558 | static PyObject *_wrap_delete_BusyCursor(PyObject *, PyObject *args, PyObject *kwargs) { | |
5559 | PyObject *resultobj; | |
5560 | wxBusyCursor *arg1 = (wxBusyCursor *) 0 ; | |
5561 | PyObject * obj0 = 0 ; | |
5562 | char *kwnames[] = { | |
5563 | (char *) "self", NULL | |
5564 | }; | |
5565 | ||
5566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyCursor",kwnames,&obj0)) goto fail; | |
5567 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyCursor, | |
5568 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5569 | { | |
5570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5571 | delete arg1; | |
5572 | ||
5573 | wxPyEndAllowThreads(__tstate); | |
5574 | if (PyErr_Occurred()) SWIG_fail; | |
5575 | } | |
5576 | Py_INCREF(Py_None); resultobj = Py_None; | |
5577 | return resultobj; | |
5578 | fail: | |
5579 | return NULL; | |
5580 | } | |
5581 | ||
5582 | ||
5583 | static PyObject * BusyCursor_swigregister(PyObject *, PyObject *args) { | |
5584 | PyObject *obj; | |
5585 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5586 | SWIG_TypeClientData(SWIGTYPE_p_wxBusyCursor, obj); | |
5587 | Py_INCREF(obj); | |
5588 | return Py_BuildValue((char *)""); | |
5589 | } | |
5590 | static PyObject *_wrap_new_WindowDisabler(PyObject *, PyObject *args, PyObject *kwargs) { | |
5591 | PyObject *resultobj; | |
5592 | wxWindow *arg1 = (wxWindow *) NULL ; | |
5593 | wxWindowDisabler *result; | |
5594 | PyObject * obj0 = 0 ; | |
5595 | char *kwnames[] = { | |
5596 | (char *) "winToSkip", NULL | |
5597 | }; | |
5598 | ||
5599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDisabler",kwnames,&obj0)) goto fail; | |
5600 | if (obj0) { | |
5601 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
5602 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5603 | } | |
5604 | { | |
5605 | if (!wxPyCheckForApp()) SWIG_fail; | |
5606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5607 | result = (wxWindowDisabler *)new wxWindowDisabler(arg1); | |
5608 | ||
5609 | wxPyEndAllowThreads(__tstate); | |
5610 | if (PyErr_Occurred()) SWIG_fail; | |
5611 | } | |
5612 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDisabler, 1); | |
5613 | return resultobj; | |
5614 | fail: | |
5615 | return NULL; | |
5616 | } | |
5617 | ||
5618 | ||
5619 | static PyObject *_wrap_delete_WindowDisabler(PyObject *, PyObject *args, PyObject *kwargs) { | |
5620 | PyObject *resultobj; | |
5621 | wxWindowDisabler *arg1 = (wxWindowDisabler *) 0 ; | |
5622 | PyObject * obj0 = 0 ; | |
5623 | char *kwnames[] = { | |
5624 | (char *) "self", NULL | |
5625 | }; | |
5626 | ||
5627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_WindowDisabler",kwnames,&obj0)) goto fail; | |
5628 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDisabler, | |
5629 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5630 | { | |
5631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5632 | delete arg1; | |
5633 | ||
5634 | wxPyEndAllowThreads(__tstate); | |
5635 | if (PyErr_Occurred()) SWIG_fail; | |
5636 | } | |
5637 | Py_INCREF(Py_None); resultobj = Py_None; | |
5638 | return resultobj; | |
5639 | fail: | |
5640 | return NULL; | |
5641 | } | |
5642 | ||
5643 | ||
5644 | static PyObject * WindowDisabler_swigregister(PyObject *, PyObject *args) { | |
5645 | PyObject *obj; | |
5646 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5647 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDisabler, obj); | |
5648 | Py_INCREF(obj); | |
5649 | return Py_BuildValue((char *)""); | |
5650 | } | |
5651 | static PyObject *_wrap_new_BusyInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
5652 | PyObject *resultobj; | |
5653 | wxString *arg1 = 0 ; | |
5654 | wxBusyInfo *result; | |
5655 | bool temp1 = false ; | |
5656 | PyObject * obj0 = 0 ; | |
5657 | char *kwnames[] = { | |
5658 | (char *) "message", NULL | |
5659 | }; | |
5660 | ||
5661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BusyInfo",kwnames,&obj0)) goto fail; | |
5662 | { | |
5663 | arg1 = wxString_in_helper(obj0); | |
5664 | if (arg1 == NULL) SWIG_fail; | |
5665 | temp1 = true; | |
5666 | } | |
5667 | { | |
5668 | if (!wxPyCheckForApp()) SWIG_fail; | |
5669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5670 | result = (wxBusyInfo *)new wxBusyInfo((wxString const &)*arg1); | |
5671 | ||
5672 | wxPyEndAllowThreads(__tstate); | |
5673 | if (PyErr_Occurred()) SWIG_fail; | |
5674 | } | |
5675 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyInfo, 1); | |
5676 | { | |
5677 | if (temp1) | |
5678 | delete arg1; | |
5679 | } | |
5680 | return resultobj; | |
5681 | fail: | |
5682 | { | |
5683 | if (temp1) | |
5684 | delete arg1; | |
5685 | } | |
5686 | return NULL; | |
5687 | } | |
5688 | ||
5689 | ||
5690 | static PyObject *_wrap_delete_BusyInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
5691 | PyObject *resultobj; | |
5692 | wxBusyInfo *arg1 = (wxBusyInfo *) 0 ; | |
5693 | PyObject * obj0 = 0 ; | |
5694 | char *kwnames[] = { | |
5695 | (char *) "self", NULL | |
5696 | }; | |
5697 | ||
5698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyInfo",kwnames,&obj0)) goto fail; | |
5699 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyInfo, | |
5700 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5701 | { | |
5702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5703 | delete arg1; | |
5704 | ||
5705 | wxPyEndAllowThreads(__tstate); | |
5706 | if (PyErr_Occurred()) SWIG_fail; | |
5707 | } | |
5708 | Py_INCREF(Py_None); resultobj = Py_None; | |
5709 | return resultobj; | |
5710 | fail: | |
5711 | return NULL; | |
5712 | } | |
5713 | ||
5714 | ||
5715 | static PyObject * BusyInfo_swigregister(PyObject *, PyObject *args) { | |
5716 | PyObject *obj; | |
5717 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5718 | SWIG_TypeClientData(SWIGTYPE_p_wxBusyInfo, obj); | |
5719 | Py_INCREF(obj); | |
5720 | return Py_BuildValue((char *)""); | |
5721 | } | |
5722 | static PyObject *_wrap_new_StopWatch(PyObject *, PyObject *args, PyObject *kwargs) { | |
5723 | PyObject *resultobj; | |
5724 | wxStopWatch *result; | |
5725 | char *kwnames[] = { | |
5726 | NULL | |
5727 | }; | |
5728 | ||
5729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StopWatch",kwnames)) goto fail; | |
5730 | { | |
5731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5732 | result = (wxStopWatch *)new wxStopWatch(); | |
5733 | ||
5734 | wxPyEndAllowThreads(__tstate); | |
5735 | if (PyErr_Occurred()) SWIG_fail; | |
5736 | } | |
5737 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStopWatch, 1); | |
5738 | return resultobj; | |
5739 | fail: | |
5740 | return NULL; | |
5741 | } | |
5742 | ||
5743 | ||
5744 | static PyObject *_wrap_StopWatch_Start(PyObject *, PyObject *args, PyObject *kwargs) { | |
5745 | PyObject *resultobj; | |
5746 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5747 | long arg2 = (long) 0 ; | |
5748 | PyObject * obj0 = 0 ; | |
5749 | PyObject * obj1 = 0 ; | |
5750 | char *kwnames[] = { | |
5751 | (char *) "self",(char *) "t0", NULL | |
5752 | }; | |
5753 | ||
5754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StopWatch_Start",kwnames,&obj0,&obj1)) goto fail; | |
5755 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, | |
5756 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5757 | if (obj1) { | |
5758 | arg2 = (long)SWIG_As_long(obj1); | |
5759 | if (PyErr_Occurred()) SWIG_fail; | |
5760 | } | |
5761 | { | |
5762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5763 | (arg1)->Start(arg2); | |
5764 | ||
5765 | wxPyEndAllowThreads(__tstate); | |
5766 | if (PyErr_Occurred()) SWIG_fail; | |
5767 | } | |
5768 | Py_INCREF(Py_None); resultobj = Py_None; | |
5769 | return resultobj; | |
5770 | fail: | |
5771 | return NULL; | |
5772 | } | |
5773 | ||
5774 | ||
5775 | static PyObject *_wrap_StopWatch_Pause(PyObject *, PyObject *args, PyObject *kwargs) { | |
5776 | PyObject *resultobj; | |
5777 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5778 | PyObject * obj0 = 0 ; | |
5779 | char *kwnames[] = { | |
5780 | (char *) "self", NULL | |
5781 | }; | |
5782 | ||
5783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Pause",kwnames,&obj0)) goto fail; | |
5784 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, | |
5785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5786 | { | |
5787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5788 | (arg1)->Pause(); | |
5789 | ||
5790 | wxPyEndAllowThreads(__tstate); | |
5791 | if (PyErr_Occurred()) SWIG_fail; | |
5792 | } | |
5793 | Py_INCREF(Py_None); resultobj = Py_None; | |
5794 | return resultobj; | |
5795 | fail: | |
5796 | return NULL; | |
5797 | } | |
5798 | ||
5799 | ||
5800 | static PyObject *_wrap_StopWatch_Resume(PyObject *, PyObject *args, PyObject *kwargs) { | |
5801 | PyObject *resultobj; | |
5802 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5803 | PyObject * obj0 = 0 ; | |
5804 | char *kwnames[] = { | |
5805 | (char *) "self", NULL | |
5806 | }; | |
5807 | ||
5808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Resume",kwnames,&obj0)) goto fail; | |
5809 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, | |
5810 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5811 | { | |
5812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5813 | (arg1)->Resume(); | |
5814 | ||
5815 | wxPyEndAllowThreads(__tstate); | |
5816 | if (PyErr_Occurred()) SWIG_fail; | |
5817 | } | |
5818 | Py_INCREF(Py_None); resultobj = Py_None; | |
5819 | return resultobj; | |
5820 | fail: | |
5821 | return NULL; | |
5822 | } | |
5823 | ||
5824 | ||
5825 | static PyObject *_wrap_StopWatch_Time(PyObject *, PyObject *args, PyObject *kwargs) { | |
5826 | PyObject *resultobj; | |
5827 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5828 | long result; | |
5829 | PyObject * obj0 = 0 ; | |
5830 | char *kwnames[] = { | |
5831 | (char *) "self", NULL | |
5832 | }; | |
5833 | ||
5834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Time",kwnames,&obj0)) goto fail; | |
5835 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, | |
5836 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5837 | { | |
5838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5839 | result = (long)((wxStopWatch const *)arg1)->Time(); | |
5840 | ||
5841 | wxPyEndAllowThreads(__tstate); | |
5842 | if (PyErr_Occurred()) SWIG_fail; | |
5843 | } | |
5844 | resultobj = SWIG_From_long((long)result); | |
5845 | return resultobj; | |
5846 | fail: | |
5847 | return NULL; | |
5848 | } | |
5849 | ||
5850 | ||
5851 | static PyObject * StopWatch_swigregister(PyObject *, PyObject *args) { | |
5852 | PyObject *obj; | |
5853 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5854 | SWIG_TypeClientData(SWIGTYPE_p_wxStopWatch, obj); | |
5855 | Py_INCREF(obj); | |
5856 | return Py_BuildValue((char *)""); | |
5857 | } | |
5858 | static PyObject *_wrap_new_FileHistory(PyObject *, PyObject *args, PyObject *kwargs) { | |
5859 | PyObject *resultobj; | |
5860 | int arg1 = (int) 9 ; | |
5861 | int arg2 = (int) wxID_FILE1 ; | |
5862 | wxFileHistory *result; | |
5863 | PyObject * obj0 = 0 ; | |
5864 | PyObject * obj1 = 0 ; | |
5865 | char *kwnames[] = { | |
5866 | (char *) "maxFiles",(char *) "idBase", NULL | |
5867 | }; | |
5868 | ||
5869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FileHistory",kwnames,&obj0,&obj1)) goto fail; | |
5870 | if (obj0) { | |
5871 | arg1 = (int)SWIG_As_int(obj0); | |
5872 | if (PyErr_Occurred()) SWIG_fail; | |
5873 | } | |
5874 | if (obj1) { | |
5875 | arg2 = (int)SWIG_As_int(obj1); | |
5876 | if (PyErr_Occurred()) SWIG_fail; | |
5877 | } | |
5878 | { | |
5879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5880 | result = (wxFileHistory *)new wxFileHistory(arg1,arg2); | |
5881 | ||
5882 | wxPyEndAllowThreads(__tstate); | |
5883 | if (PyErr_Occurred()) SWIG_fail; | |
5884 | } | |
5885 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileHistory, 1); | |
5886 | return resultobj; | |
5887 | fail: | |
5888 | return NULL; | |
5889 | } | |
5890 | ||
5891 | ||
5892 | static PyObject *_wrap_delete_FileHistory(PyObject *, PyObject *args, PyObject *kwargs) { | |
5893 | PyObject *resultobj; | |
5894 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5895 | PyObject * obj0 = 0 ; | |
5896 | char *kwnames[] = { | |
5897 | (char *) "self", NULL | |
5898 | }; | |
5899 | ||
5900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileHistory",kwnames,&obj0)) goto fail; | |
5901 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5902 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5903 | { | |
5904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5905 | delete arg1; | |
5906 | ||
5907 | wxPyEndAllowThreads(__tstate); | |
5908 | if (PyErr_Occurred()) SWIG_fail; | |
5909 | } | |
5910 | Py_INCREF(Py_None); resultobj = Py_None; | |
5911 | return resultobj; | |
5912 | fail: | |
5913 | return NULL; | |
5914 | } | |
5915 | ||
5916 | ||
5917 | static PyObject *_wrap_FileHistory_AddFileToHistory(PyObject *, PyObject *args, PyObject *kwargs) { | |
5918 | PyObject *resultobj; | |
5919 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5920 | wxString *arg2 = 0 ; | |
5921 | bool temp2 = false ; | |
5922 | PyObject * obj0 = 0 ; | |
5923 | PyObject * obj1 = 0 ; | |
5924 | char *kwnames[] = { | |
5925 | (char *) "self",(char *) "file", NULL | |
5926 | }; | |
5927 | ||
5928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFileToHistory",kwnames,&obj0,&obj1)) goto fail; | |
5929 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5930 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5931 | { | |
5932 | arg2 = wxString_in_helper(obj1); | |
5933 | if (arg2 == NULL) SWIG_fail; | |
5934 | temp2 = true; | |
5935 | } | |
5936 | { | |
5937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5938 | (arg1)->AddFileToHistory((wxString const &)*arg2); | |
5939 | ||
5940 | wxPyEndAllowThreads(__tstate); | |
5941 | if (PyErr_Occurred()) SWIG_fail; | |
5942 | } | |
5943 | Py_INCREF(Py_None); resultobj = Py_None; | |
5944 | { | |
5945 | if (temp2) | |
5946 | delete arg2; | |
5947 | } | |
5948 | return resultobj; | |
5949 | fail: | |
5950 | { | |
5951 | if (temp2) | |
5952 | delete arg2; | |
5953 | } | |
5954 | return NULL; | |
5955 | } | |
5956 | ||
5957 | ||
5958 | static PyObject *_wrap_FileHistory_RemoveFileFromHistory(PyObject *, PyObject *args, PyObject *kwargs) { | |
5959 | PyObject *resultobj; | |
5960 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5961 | int arg2 ; | |
5962 | PyObject * obj0 = 0 ; | |
5963 | PyObject * obj1 = 0 ; | |
5964 | char *kwnames[] = { | |
5965 | (char *) "self",(char *) "i", NULL | |
5966 | }; | |
5967 | ||
5968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveFileFromHistory",kwnames,&obj0,&obj1)) goto fail; | |
5969 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5970 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5971 | arg2 = (int)SWIG_As_int(obj1); | |
5972 | if (PyErr_Occurred()) SWIG_fail; | |
5973 | { | |
5974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5975 | (arg1)->RemoveFileFromHistory(arg2); | |
5976 | ||
5977 | wxPyEndAllowThreads(__tstate); | |
5978 | if (PyErr_Occurred()) SWIG_fail; | |
5979 | } | |
5980 | Py_INCREF(Py_None); resultobj = Py_None; | |
5981 | return resultobj; | |
5982 | fail: | |
5983 | return NULL; | |
5984 | } | |
5985 | ||
5986 | ||
5987 | static PyObject *_wrap_FileHistory_GetMaxFiles(PyObject *, PyObject *args, PyObject *kwargs) { | |
5988 | PyObject *resultobj; | |
5989 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5990 | int result; | |
5991 | PyObject * obj0 = 0 ; | |
5992 | char *kwnames[] = { | |
5993 | (char *) "self", NULL | |
5994 | }; | |
5995 | ||
5996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetMaxFiles",kwnames,&obj0)) goto fail; | |
5997 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5998 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5999 | { | |
6000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6001 | result = (int)((wxFileHistory const *)arg1)->GetMaxFiles(); | |
6002 | ||
6003 | wxPyEndAllowThreads(__tstate); | |
6004 | if (PyErr_Occurred()) SWIG_fail; | |
6005 | } | |
6006 | resultobj = SWIG_From_int((int)result); | |
6007 | return resultobj; | |
6008 | fail: | |
6009 | return NULL; | |
6010 | } | |
6011 | ||
6012 | ||
6013 | static PyObject *_wrap_FileHistory_UseMenu(PyObject *, PyObject *args, PyObject *kwargs) { | |
6014 | PyObject *resultobj; | |
6015 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
6016 | wxMenu *arg2 = (wxMenu *) 0 ; | |
6017 | PyObject * obj0 = 0 ; | |
6018 | PyObject * obj1 = 0 ; | |
6019 | char *kwnames[] = { | |
6020 | (char *) "self",(char *) "menu", NULL | |
6021 | }; | |
6022 | ||
6023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_UseMenu",kwnames,&obj0,&obj1)) goto fail; | |
6024 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
6025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6026 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
6027 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6028 | { | |
6029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6030 | (arg1)->UseMenu(arg2); | |
6031 | ||
6032 | wxPyEndAllowThreads(__tstate); | |
6033 | if (PyErr_Occurred()) SWIG_fail; | |
6034 | } | |
6035 | Py_INCREF(Py_None); resultobj = Py_None; | |
6036 | return resultobj; | |
6037 | fail: | |
6038 | return NULL; | |
6039 | } | |
6040 | ||
6041 | ||
6042 | static PyObject *_wrap_FileHistory_RemoveMenu(PyObject *, PyObject *args, PyObject *kwargs) { | |
6043 | PyObject *resultobj; | |
6044 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
6045 | wxMenu *arg2 = (wxMenu *) 0 ; | |
6046 | PyObject * obj0 = 0 ; | |
6047 | PyObject * obj1 = 0 ; | |
6048 | char *kwnames[] = { | |
6049 | (char *) "self",(char *) "menu", NULL | |
6050 | }; | |
6051 | ||
6052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveMenu",kwnames,&obj0,&obj1)) goto fail; | |
6053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
6054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6055 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
6056 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6057 | { | |
6058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6059 | (arg1)->RemoveMenu(arg2); | |
6060 | ||
6061 | wxPyEndAllowThreads(__tstate); | |
6062 | if (PyErr_Occurred()) SWIG_fail; | |
6063 | } | |
6064 | Py_INCREF(Py_None); resultobj = Py_None; | |
6065 | return resultobj; | |
6066 | fail: | |
6067 | return NULL; | |
6068 | } | |
6069 | ||
6070 | ||
6071 | static PyObject *_wrap_FileHistory_Load(PyObject *, PyObject *args, PyObject *kwargs) { | |
6072 | PyObject *resultobj; | |
6073 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
6074 | wxConfigBase *arg2 = 0 ; | |
6075 | PyObject * obj0 = 0 ; | |
6076 | PyObject * obj1 = 0 ; | |
6077 | char *kwnames[] = { | |
6078 | (char *) "self",(char *) "config", NULL | |
6079 | }; | |
6080 | ||
6081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Load",kwnames,&obj0,&obj1)) goto fail; | |
6082 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
6083 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6084 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase, | |
6085 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6086 | SWIG_fail; | |
6087 | if (arg2 == NULL) { | |
6088 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6089 | SWIG_fail; | |
6090 | } | |
6091 | { | |
6092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6093 | (arg1)->Load(*arg2); | |
6094 | ||
6095 | wxPyEndAllowThreads(__tstate); | |
6096 | if (PyErr_Occurred()) SWIG_fail; | |
6097 | } | |
6098 | Py_INCREF(Py_None); resultobj = Py_None; | |
6099 | return resultobj; | |
6100 | fail: | |
6101 | return NULL; | |
6102 | } | |
6103 | ||
6104 | ||
6105 | static PyObject *_wrap_FileHistory_Save(PyObject *, PyObject *args, PyObject *kwargs) { | |
6106 | PyObject *resultobj; | |
6107 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
6108 | wxConfigBase *arg2 = 0 ; | |
6109 | PyObject * obj0 = 0 ; | |
6110 | PyObject * obj1 = 0 ; | |
6111 | char *kwnames[] = { | |
6112 | (char *) "self",(char *) "config", NULL | |
6113 | }; | |
6114 | ||
6115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Save",kwnames,&obj0,&obj1)) goto fail; | |
6116 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
6117 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6118 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase, | |
6119 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6120 | SWIG_fail; | |
6121 | if (arg2 == NULL) { | |
6122 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6123 | SWIG_fail; | |
6124 | } | |
6125 | { | |
6126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6127 | (arg1)->Save(*arg2); | |
6128 | ||
6129 | wxPyEndAllowThreads(__tstate); | |
6130 | if (PyErr_Occurred()) SWIG_fail; | |
6131 | } | |
6132 | Py_INCREF(Py_None); resultobj = Py_None; | |
6133 | return resultobj; | |
6134 | fail: | |
6135 | return NULL; | |
6136 | } | |
6137 | ||
6138 | ||
6139 | static PyObject *_wrap_FileHistory_AddFilesToMenu(PyObject *, PyObject *args, PyObject *kwargs) { | |
6140 | PyObject *resultobj; | |
6141 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
6142 | PyObject * obj0 = 0 ; | |
6143 | char *kwnames[] = { | |
6144 | (char *) "self", NULL | |
6145 | }; | |
6146 | ||
6147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_AddFilesToMenu",kwnames,&obj0)) goto fail; | |
6148 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
6149 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6150 | { | |
6151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6152 | (arg1)->AddFilesToMenu(); | |
6153 | ||
6154 | wxPyEndAllowThreads(__tstate); | |
6155 | if (PyErr_Occurred()) SWIG_fail; | |
6156 | } | |
6157 | Py_INCREF(Py_None); resultobj = Py_None; | |
6158 | return resultobj; | |
6159 | fail: | |
6160 | return NULL; | |
6161 | } | |
6162 | ||
6163 | ||
6164 | static PyObject *_wrap_FileHistory_AddFilesToThisMenu(PyObject *, PyObject *args, PyObject *kwargs) { | |
6165 | PyObject *resultobj; | |
6166 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
6167 | wxMenu *arg2 = (wxMenu *) 0 ; | |
6168 | PyObject * obj0 = 0 ; | |
6169 | PyObject * obj1 = 0 ; | |
6170 | char *kwnames[] = { | |
6171 | (char *) "self",(char *) "menu", NULL | |
6172 | }; | |
6173 | ||
6174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFilesToThisMenu",kwnames,&obj0,&obj1)) goto fail; | |
6175 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
6176 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6177 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
6178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6179 | { | |
6180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6181 | (arg1)->AddFilesToMenu(arg2); | |
6182 | ||
6183 | wxPyEndAllowThreads(__tstate); | |
6184 | if (PyErr_Occurred()) SWIG_fail; | |
6185 | } | |
6186 | Py_INCREF(Py_None); resultobj = Py_None; | |
6187 | return resultobj; | |
6188 | fail: | |
6189 | return NULL; | |
6190 | } | |
6191 | ||
6192 | ||
6193 | static PyObject *_wrap_FileHistory_GetHistoryFile(PyObject *, PyObject *args, PyObject *kwargs) { | |
6194 | PyObject *resultobj; | |
6195 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
6196 | int arg2 ; | |
6197 | wxString result; | |
6198 | PyObject * obj0 = 0 ; | |
6199 | PyObject * obj1 = 0 ; | |
6200 | char *kwnames[] = { | |
6201 | (char *) "self",(char *) "i", NULL | |
6202 | }; | |
6203 | ||
6204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_GetHistoryFile",kwnames,&obj0,&obj1)) goto fail; | |
6205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
6206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6207 | arg2 = (int)SWIG_As_int(obj1); | |
6208 | if (PyErr_Occurred()) SWIG_fail; | |
6209 | { | |
6210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6211 | result = ((wxFileHistory const *)arg1)->GetHistoryFile(arg2); | |
6212 | ||
6213 | wxPyEndAllowThreads(__tstate); | |
6214 | if (PyErr_Occurred()) SWIG_fail; | |
6215 | } | |
6216 | { | |
6217 | #if wxUSE_UNICODE | |
6218 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6219 | #else | |
6220 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6221 | #endif | |
6222 | } | |
6223 | return resultobj; | |
6224 | fail: | |
6225 | return NULL; | |
6226 | } | |
6227 | ||
6228 | ||
6229 | static PyObject *_wrap_FileHistory_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { | |
6230 | PyObject *resultobj; | |
6231 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
6232 | int result; | |
6233 | PyObject * obj0 = 0 ; | |
6234 | char *kwnames[] = { | |
6235 | (char *) "self", NULL | |
6236 | }; | |
6237 | ||
6238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetCount",kwnames,&obj0)) goto fail; | |
6239 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
6240 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6241 | { | |
6242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6243 | result = (int)((wxFileHistory const *)arg1)->GetCount(); | |
6244 | ||
6245 | wxPyEndAllowThreads(__tstate); | |
6246 | if (PyErr_Occurred()) SWIG_fail; | |
6247 | } | |
6248 | resultobj = SWIG_From_int((int)result); | |
6249 | return resultobj; | |
6250 | fail: | |
6251 | return NULL; | |
6252 | } | |
6253 | ||
6254 | ||
6255 | static PyObject * FileHistory_swigregister(PyObject *, PyObject *args) { | |
6256 | PyObject *obj; | |
6257 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6258 | SWIG_TypeClientData(SWIGTYPE_p_wxFileHistory, obj); | |
6259 | Py_INCREF(obj); | |
6260 | return Py_BuildValue((char *)""); | |
6261 | } | |
6262 | static PyObject *_wrap_new_SingleInstanceChecker(PyObject *, PyObject *args, PyObject *kwargs) { | |
6263 | PyObject *resultobj; | |
6264 | wxString *arg1 = 0 ; | |
6265 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
6266 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
6267 | wxSingleInstanceChecker *result; | |
6268 | bool temp1 = false ; | |
6269 | bool temp2 = false ; | |
6270 | PyObject * obj0 = 0 ; | |
6271 | PyObject * obj1 = 0 ; | |
6272 | char *kwnames[] = { | |
6273 | (char *) "name",(char *) "path", NULL | |
6274 | }; | |
6275 | ||
6276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_SingleInstanceChecker",kwnames,&obj0,&obj1)) goto fail; | |
6277 | { | |
6278 | arg1 = wxString_in_helper(obj0); | |
6279 | if (arg1 == NULL) SWIG_fail; | |
6280 | temp1 = true; | |
6281 | } | |
6282 | if (obj1) { | |
6283 | { | |
6284 | arg2 = wxString_in_helper(obj1); | |
6285 | if (arg2 == NULL) SWIG_fail; | |
6286 | temp2 = true; | |
6287 | } | |
6288 | } | |
6289 | { | |
6290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6291 | result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker((wxString const &)*arg1,(wxString const &)*arg2); | |
6292 | ||
6293 | wxPyEndAllowThreads(__tstate); | |
6294 | if (PyErr_Occurred()) SWIG_fail; | |
6295 | } | |
6296 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1); | |
6297 | { | |
6298 | if (temp1) | |
6299 | delete arg1; | |
6300 | } | |
6301 | { | |
6302 | if (temp2) | |
6303 | delete arg2; | |
6304 | } | |
6305 | return resultobj; | |
6306 | fail: | |
6307 | { | |
6308 | if (temp1) | |
6309 | delete arg1; | |
6310 | } | |
6311 | { | |
6312 | if (temp2) | |
6313 | delete arg2; | |
6314 | } | |
6315 | return NULL; | |
6316 | } | |
6317 | ||
6318 | ||
6319 | static PyObject *_wrap_new_PreSingleInstanceChecker(PyObject *, PyObject *args, PyObject *kwargs) { | |
6320 | PyObject *resultobj; | |
6321 | wxSingleInstanceChecker *result; | |
6322 | char *kwnames[] = { | |
6323 | NULL | |
6324 | }; | |
6325 | ||
6326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSingleInstanceChecker",kwnames)) goto fail; | |
6327 | { | |
6328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6329 | result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker(); | |
6330 | ||
6331 | wxPyEndAllowThreads(__tstate); | |
6332 | if (PyErr_Occurred()) SWIG_fail; | |
6333 | } | |
6334 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1); | |
6335 | return resultobj; | |
6336 | fail: | |
6337 | return NULL; | |
6338 | } | |
6339 | ||
6340 | ||
6341 | static PyObject *_wrap_delete_SingleInstanceChecker(PyObject *, PyObject *args, PyObject *kwargs) { | |
6342 | PyObject *resultobj; | |
6343 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
6344 | PyObject * obj0 = 0 ; | |
6345 | char *kwnames[] = { | |
6346 | (char *) "self", NULL | |
6347 | }; | |
6348 | ||
6349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SingleInstanceChecker",kwnames,&obj0)) goto fail; | |
6350 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker, | |
6351 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6352 | { | |
6353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6354 | delete arg1; | |
6355 | ||
6356 | wxPyEndAllowThreads(__tstate); | |
6357 | if (PyErr_Occurred()) SWIG_fail; | |
6358 | } | |
6359 | Py_INCREF(Py_None); resultobj = Py_None; | |
6360 | return resultobj; | |
6361 | fail: | |
6362 | return NULL; | |
6363 | } | |
6364 | ||
6365 | ||
6366 | static PyObject *_wrap_SingleInstanceChecker_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
6367 | PyObject *resultobj; | |
6368 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
6369 | wxString *arg2 = 0 ; | |
6370 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
6371 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
6372 | bool result; | |
6373 | bool temp2 = false ; | |
6374 | bool temp3 = false ; | |
6375 | PyObject * obj0 = 0 ; | |
6376 | PyObject * obj1 = 0 ; | |
6377 | PyObject * obj2 = 0 ; | |
6378 | char *kwnames[] = { | |
6379 | (char *) "self",(char *) "name",(char *) "path", NULL | |
6380 | }; | |
6381 | ||
6382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SingleInstanceChecker_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6383 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker, | |
6384 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6385 | { | |
6386 | arg2 = wxString_in_helper(obj1); | |
6387 | if (arg2 == NULL) SWIG_fail; | |
6388 | temp2 = true; | |
6389 | } | |
6390 | if (obj2) { | |
6391 | { | |
6392 | arg3 = wxString_in_helper(obj2); | |
6393 | if (arg3 == NULL) SWIG_fail; | |
6394 | temp3 = true; | |
6395 | } | |
6396 | } | |
6397 | { | |
6398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6399 | result = (bool)(arg1)->Create((wxString const &)*arg2,(wxString const &)*arg3); | |
6400 | ||
6401 | wxPyEndAllowThreads(__tstate); | |
6402 | if (PyErr_Occurred()) SWIG_fail; | |
6403 | } | |
6404 | { | |
6405 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6406 | } | |
6407 | { | |
6408 | if (temp2) | |
6409 | delete arg2; | |
6410 | } | |
6411 | { | |
6412 | if (temp3) | |
6413 | delete arg3; | |
6414 | } | |
6415 | return resultobj; | |
6416 | fail: | |
6417 | { | |
6418 | if (temp2) | |
6419 | delete arg2; | |
6420 | } | |
6421 | { | |
6422 | if (temp3) | |
6423 | delete arg3; | |
6424 | } | |
6425 | return NULL; | |
6426 | } | |
6427 | ||
6428 | ||
6429 | static PyObject *_wrap_SingleInstanceChecker_IsAnotherRunning(PyObject *, PyObject *args, PyObject *kwargs) { | |
6430 | PyObject *resultobj; | |
6431 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
6432 | bool result; | |
6433 | PyObject * obj0 = 0 ; | |
6434 | char *kwnames[] = { | |
6435 | (char *) "self", NULL | |
6436 | }; | |
6437 | ||
6438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleInstanceChecker_IsAnotherRunning",kwnames,&obj0)) goto fail; | |
6439 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker, | |
6440 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6441 | { | |
6442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6443 | result = (bool)((wxSingleInstanceChecker const *)arg1)->IsAnotherRunning(); | |
6444 | ||
6445 | wxPyEndAllowThreads(__tstate); | |
6446 | if (PyErr_Occurred()) SWIG_fail; | |
6447 | } | |
6448 | { | |
6449 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6450 | } | |
6451 | return resultobj; | |
6452 | fail: | |
6453 | return NULL; | |
6454 | } | |
6455 | ||
6456 | ||
6457 | static PyObject * SingleInstanceChecker_swigregister(PyObject *, PyObject *args) { | |
6458 | PyObject *obj; | |
6459 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6460 | SWIG_TypeClientData(SWIGTYPE_p_wxSingleInstanceChecker, obj); | |
6461 | Py_INCREF(obj); | |
6462 | return Py_BuildValue((char *)""); | |
6463 | } | |
6464 | static PyObject *_wrap_DrawWindowOnDC(PyObject *, PyObject *args, PyObject *kwargs) { | |
6465 | PyObject *resultobj; | |
6466 | wxWindow *arg1 = (wxWindow *) 0 ; | |
6467 | wxDC *arg2 = 0 ; | |
6468 | int arg3 ; | |
6469 | PyObject * obj0 = 0 ; | |
6470 | PyObject * obj1 = 0 ; | |
6471 | PyObject * obj2 = 0 ; | |
6472 | char *kwnames[] = { | |
6473 | (char *) "window",(char *) "dc",(char *) "method", NULL | |
6474 | }; | |
6475 | ||
6476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DrawWindowOnDC",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6477 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
6478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6479 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
6480 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6481 | SWIG_fail; | |
6482 | if (arg2 == NULL) { | |
6483 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6484 | SWIG_fail; | |
6485 | } | |
6486 | arg3 = (int)SWIG_As_int(obj2); | |
6487 | if (PyErr_Occurred()) SWIG_fail; | |
6488 | { | |
6489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6490 | wxDrawWindowOnDC(arg1,(wxDC const &)*arg2,arg3); | |
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_delete_TipProvider(PyObject *, PyObject *args, PyObject *kwargs) { | |
6503 | PyObject *resultobj; | |
6504 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6505 | PyObject * obj0 = 0 ; | |
6506 | char *kwnames[] = { | |
6507 | (char *) "self", NULL | |
6508 | }; | |
6509 | ||
6510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TipProvider",kwnames,&obj0)) goto fail; | |
6511 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, | |
6512 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6513 | { | |
6514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6515 | delete arg1; | |
6516 | ||
6517 | wxPyEndAllowThreads(__tstate); | |
6518 | if (PyErr_Occurred()) SWIG_fail; | |
6519 | } | |
6520 | Py_INCREF(Py_None); resultobj = Py_None; | |
6521 | return resultobj; | |
6522 | fail: | |
6523 | return NULL; | |
6524 | } | |
6525 | ||
6526 | ||
6527 | static PyObject *_wrap_TipProvider_GetTip(PyObject *, PyObject *args, PyObject *kwargs) { | |
6528 | PyObject *resultobj; | |
6529 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6530 | wxString result; | |
6531 | PyObject * obj0 = 0 ; | |
6532 | char *kwnames[] = { | |
6533 | (char *) "self", NULL | |
6534 | }; | |
6535 | ||
6536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetTip",kwnames,&obj0)) goto fail; | |
6537 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, | |
6538 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6539 | { | |
6540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6541 | result = (arg1)->GetTip(); | |
6542 | ||
6543 | wxPyEndAllowThreads(__tstate); | |
6544 | if (PyErr_Occurred()) SWIG_fail; | |
6545 | } | |
6546 | { | |
6547 | #if wxUSE_UNICODE | |
6548 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6549 | #else | |
6550 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6551 | #endif | |
6552 | } | |
6553 | return resultobj; | |
6554 | fail: | |
6555 | return NULL; | |
6556 | } | |
6557 | ||
6558 | ||
6559 | static PyObject *_wrap_TipProvider_GetCurrentTip(PyObject *, PyObject *args, PyObject *kwargs) { | |
6560 | PyObject *resultobj; | |
6561 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6562 | size_t result; | |
6563 | PyObject * obj0 = 0 ; | |
6564 | char *kwnames[] = { | |
6565 | (char *) "self", NULL | |
6566 | }; | |
6567 | ||
6568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetCurrentTip",kwnames,&obj0)) goto fail; | |
6569 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, | |
6570 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6571 | { | |
6572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6573 | result = (size_t)(arg1)->GetCurrentTip(); | |
6574 | ||
6575 | wxPyEndAllowThreads(__tstate); | |
6576 | if (PyErr_Occurred()) SWIG_fail; | |
6577 | } | |
6578 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); | |
6579 | return resultobj; | |
6580 | fail: | |
6581 | return NULL; | |
6582 | } | |
6583 | ||
6584 | ||
6585 | static PyObject *_wrap_TipProvider_PreprocessTip(PyObject *, PyObject *args, PyObject *kwargs) { | |
6586 | PyObject *resultobj; | |
6587 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6588 | wxString *arg2 = 0 ; | |
6589 | wxString result; | |
6590 | bool temp2 = false ; | |
6591 | PyObject * obj0 = 0 ; | |
6592 | PyObject * obj1 = 0 ; | |
6593 | char *kwnames[] = { | |
6594 | (char *) "self",(char *) "tip", NULL | |
6595 | }; | |
6596 | ||
6597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipProvider_PreprocessTip",kwnames,&obj0,&obj1)) goto fail; | |
6598 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, | |
6599 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6600 | { | |
6601 | arg2 = wxString_in_helper(obj1); | |
6602 | if (arg2 == NULL) SWIG_fail; | |
6603 | temp2 = true; | |
6604 | } | |
6605 | { | |
6606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6607 | result = (arg1)->PreprocessTip((wxString const &)*arg2); | |
6608 | ||
6609 | wxPyEndAllowThreads(__tstate); | |
6610 | if (PyErr_Occurred()) SWIG_fail; | |
6611 | } | |
6612 | { | |
6613 | #if wxUSE_UNICODE | |
6614 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6615 | #else | |
6616 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6617 | #endif | |
6618 | } | |
6619 | { | |
6620 | if (temp2) | |
6621 | delete arg2; | |
6622 | } | |
6623 | return resultobj; | |
6624 | fail: | |
6625 | { | |
6626 | if (temp2) | |
6627 | delete arg2; | |
6628 | } | |
6629 | return NULL; | |
6630 | } | |
6631 | ||
6632 | ||
6633 | static PyObject * TipProvider_swigregister(PyObject *, PyObject *args) { | |
6634 | PyObject *obj; | |
6635 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6636 | SWIG_TypeClientData(SWIGTYPE_p_wxTipProvider, obj); | |
6637 | Py_INCREF(obj); | |
6638 | return Py_BuildValue((char *)""); | |
6639 | } | |
6640 | static PyObject *_wrap_new_PyTipProvider(PyObject *, PyObject *args, PyObject *kwargs) { | |
6641 | PyObject *resultobj; | |
6642 | size_t arg1 ; | |
6643 | wxPyTipProvider *result; | |
6644 | PyObject * obj0 = 0 ; | |
6645 | char *kwnames[] = { | |
6646 | (char *) "currentTip", NULL | |
6647 | }; | |
6648 | ||
6649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PyTipProvider",kwnames,&obj0)) goto fail; | |
6650 | arg1 = (size_t)SWIG_As_unsigned_SS_long(obj0); | |
6651 | if (PyErr_Occurred()) SWIG_fail; | |
6652 | { | |
6653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6654 | result = (wxPyTipProvider *)new wxPyTipProvider(arg1); | |
6655 | ||
6656 | wxPyEndAllowThreads(__tstate); | |
6657 | if (PyErr_Occurred()) SWIG_fail; | |
6658 | } | |
6659 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTipProvider, 1); | |
6660 | return resultobj; | |
6661 | fail: | |
6662 | return NULL; | |
6663 | } | |
6664 | ||
6665 | ||
6666 | static PyObject *_wrap_PyTipProvider__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
6667 | PyObject *resultobj; | |
6668 | wxPyTipProvider *arg1 = (wxPyTipProvider *) 0 ; | |
6669 | PyObject *arg2 = (PyObject *) 0 ; | |
6670 | PyObject *arg3 = (PyObject *) 0 ; | |
6671 | PyObject * obj0 = 0 ; | |
6672 | PyObject * obj1 = 0 ; | |
6673 | PyObject * obj2 = 0 ; | |
6674 | char *kwnames[] = { | |
6675 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
6676 | }; | |
6677 | ||
6678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTipProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6679 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTipProvider, | |
6680 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6681 | arg2 = obj1; | |
6682 | arg3 = obj2; | |
6683 | { | |
6684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6685 | (arg1)->_setCallbackInfo(arg2,arg3); | |
6686 | ||
6687 | wxPyEndAllowThreads(__tstate); | |
6688 | if (PyErr_Occurred()) SWIG_fail; | |
6689 | } | |
6690 | Py_INCREF(Py_None); resultobj = Py_None; | |
6691 | return resultobj; | |
6692 | fail: | |
6693 | return NULL; | |
6694 | } | |
6695 | ||
6696 | ||
6697 | static PyObject * PyTipProvider_swigregister(PyObject *, PyObject *args) { | |
6698 | PyObject *obj; | |
6699 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6700 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTipProvider, obj); | |
6701 | Py_INCREF(obj); | |
6702 | return Py_BuildValue((char *)""); | |
6703 | } | |
6704 | static PyObject *_wrap_ShowTip(PyObject *, PyObject *args, PyObject *kwargs) { | |
6705 | PyObject *resultobj; | |
6706 | wxWindow *arg1 = (wxWindow *) 0 ; | |
6707 | wxTipProvider *arg2 = (wxTipProvider *) 0 ; | |
6708 | bool arg3 = (bool) true ; | |
6709 | bool result; | |
6710 | PyObject * obj0 = 0 ; | |
6711 | PyObject * obj1 = 0 ; | |
6712 | PyObject * obj2 = 0 ; | |
6713 | char *kwnames[] = { | |
6714 | (char *) "parent",(char *) "tipProvider",(char *) "showAtStartup", NULL | |
6715 | }; | |
6716 | ||
6717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ShowTip",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6718 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
6719 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6720 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTipProvider, | |
6721 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6722 | if (obj2) { | |
6723 | arg3 = (bool)SWIG_As_bool(obj2); | |
6724 | if (PyErr_Occurred()) SWIG_fail; | |
6725 | } | |
6726 | { | |
6727 | if (!wxPyCheckForApp()) SWIG_fail; | |
6728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6729 | result = (bool)wxShowTip(arg1,arg2,arg3); | |
6730 | ||
6731 | wxPyEndAllowThreads(__tstate); | |
6732 | if (PyErr_Occurred()) SWIG_fail; | |
6733 | } | |
6734 | { | |
6735 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6736 | } | |
6737 | return resultobj; | |
6738 | fail: | |
6739 | return NULL; | |
6740 | } | |
6741 | ||
6742 | ||
6743 | static PyObject *_wrap_CreateFileTipProvider(PyObject *, PyObject *args, PyObject *kwargs) { | |
6744 | PyObject *resultobj; | |
6745 | wxString *arg1 = 0 ; | |
6746 | size_t arg2 ; | |
6747 | wxTipProvider *result; | |
6748 | bool temp1 = false ; | |
6749 | PyObject * obj0 = 0 ; | |
6750 | PyObject * obj1 = 0 ; | |
6751 | char *kwnames[] = { | |
6752 | (char *) "filename",(char *) "currentTip", NULL | |
6753 | }; | |
6754 | ||
6755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CreateFileTipProvider",kwnames,&obj0,&obj1)) goto fail; | |
6756 | { | |
6757 | arg1 = wxString_in_helper(obj0); | |
6758 | if (arg1 == NULL) SWIG_fail; | |
6759 | temp1 = true; | |
6760 | } | |
6761 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); | |
6762 | if (PyErr_Occurred()) SWIG_fail; | |
6763 | { | |
6764 | if (!wxPyCheckForApp()) SWIG_fail; | |
6765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6766 | result = (wxTipProvider *)wxCreateFileTipProvider((wxString const &)*arg1,arg2); | |
6767 | ||
6768 | wxPyEndAllowThreads(__tstate); | |
6769 | if (PyErr_Occurred()) SWIG_fail; | |
6770 | } | |
6771 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTipProvider, 1); | |
6772 | { | |
6773 | if (temp1) | |
6774 | delete arg1; | |
6775 | } | |
6776 | return resultobj; | |
6777 | fail: | |
6778 | { | |
6779 | if (temp1) | |
6780 | delete arg1; | |
6781 | } | |
6782 | return NULL; | |
6783 | } | |
6784 | ||
6785 | ||
6786 | static PyObject *_wrap_new_Timer(PyObject *, PyObject *args, PyObject *kwargs) { | |
6787 | PyObject *resultobj; | |
6788 | wxEvtHandler *arg1 = (wxEvtHandler *) NULL ; | |
6789 | int arg2 = (int) -1 ; | |
6790 | wxPyTimer *result; | |
6791 | PyObject * obj0 = 0 ; | |
6792 | PyObject * obj1 = 0 ; | |
6793 | char *kwnames[] = { | |
6794 | (char *) "owner",(char *) "id", NULL | |
6795 | }; | |
6796 | ||
6797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Timer",kwnames,&obj0,&obj1)) goto fail; | |
6798 | if (obj0) { | |
6799 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
6800 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6801 | } | |
6802 | if (obj1) { | |
6803 | arg2 = (int)SWIG_As_int(obj1); | |
6804 | if (PyErr_Occurred()) SWIG_fail; | |
6805 | } | |
6806 | { | |
6807 | if (!wxPyCheckForApp()) SWIG_fail; | |
6808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6809 | result = (wxPyTimer *)new wxPyTimer(arg1,arg2); | |
6810 | ||
6811 | wxPyEndAllowThreads(__tstate); | |
6812 | if (PyErr_Occurred()) SWIG_fail; | |
6813 | } | |
6814 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTimer, 1); | |
6815 | return resultobj; | |
6816 | fail: | |
6817 | return NULL; | |
6818 | } | |
6819 | ||
6820 | ||
6821 | static PyObject *_wrap_delete_Timer(PyObject *, PyObject *args, PyObject *kwargs) { | |
6822 | PyObject *resultobj; | |
6823 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6824 | PyObject * obj0 = 0 ; | |
6825 | char *kwnames[] = { | |
6826 | (char *) "self", NULL | |
6827 | }; | |
6828 | ||
6829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Timer",kwnames,&obj0)) goto fail; | |
6830 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6832 | { | |
6833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6834 | delete arg1; | |
6835 | ||
6836 | wxPyEndAllowThreads(__tstate); | |
6837 | if (PyErr_Occurred()) SWIG_fail; | |
6838 | } | |
6839 | Py_INCREF(Py_None); resultobj = Py_None; | |
6840 | return resultobj; | |
6841 | fail: | |
6842 | return NULL; | |
6843 | } | |
6844 | ||
6845 | ||
6846 | static PyObject *_wrap_Timer__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
6847 | PyObject *resultobj; | |
6848 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6849 | PyObject *arg2 = (PyObject *) 0 ; | |
6850 | PyObject *arg3 = (PyObject *) 0 ; | |
6851 | int arg4 = (int) 1 ; | |
6852 | PyObject * obj0 = 0 ; | |
6853 | PyObject * obj1 = 0 ; | |
6854 | PyObject * obj2 = 0 ; | |
6855 | PyObject * obj3 = 0 ; | |
6856 | char *kwnames[] = { | |
6857 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
6858 | }; | |
6859 | ||
6860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Timer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
6861 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6862 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6863 | arg2 = obj1; | |
6864 | arg3 = obj2; | |
6865 | if (obj3) { | |
6866 | arg4 = (int)SWIG_As_int(obj3); | |
6867 | if (PyErr_Occurred()) SWIG_fail; | |
6868 | } | |
6869 | { | |
6870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6871 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
6872 | ||
6873 | wxPyEndAllowThreads(__tstate); | |
6874 | if (PyErr_Occurred()) SWIG_fail; | |
6875 | } | |
6876 | Py_INCREF(Py_None); resultobj = Py_None; | |
6877 | return resultobj; | |
6878 | fail: | |
6879 | return NULL; | |
6880 | } | |
6881 | ||
6882 | ||
6883 | static PyObject *_wrap_Timer_SetOwner(PyObject *, PyObject *args, PyObject *kwargs) { | |
6884 | PyObject *resultobj; | |
6885 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6886 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
6887 | int arg3 = (int) -1 ; | |
6888 | PyObject * obj0 = 0 ; | |
6889 | PyObject * obj1 = 0 ; | |
6890 | PyObject * obj2 = 0 ; | |
6891 | char *kwnames[] = { | |
6892 | (char *) "self",(char *) "owner",(char *) "id", NULL | |
6893 | }; | |
6894 | ||
6895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Timer_SetOwner",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6898 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
6899 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6900 | if (obj2) { | |
6901 | arg3 = (int)SWIG_As_int(obj2); | |
6902 | if (PyErr_Occurred()) SWIG_fail; | |
6903 | } | |
6904 | { | |
6905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6906 | (arg1)->SetOwner(arg2,arg3); | |
6907 | ||
6908 | wxPyEndAllowThreads(__tstate); | |
6909 | if (PyErr_Occurred()) SWIG_fail; | |
6910 | } | |
6911 | Py_INCREF(Py_None); resultobj = Py_None; | |
6912 | return resultobj; | |
6913 | fail: | |
6914 | return NULL; | |
6915 | } | |
6916 | ||
6917 | ||
6918 | static PyObject *_wrap_Timer_GetOwner(PyObject *, PyObject *args, PyObject *kwargs) { | |
6919 | PyObject *resultobj; | |
6920 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6921 | wxEvtHandler *result; | |
6922 | PyObject * obj0 = 0 ; | |
6923 | char *kwnames[] = { | |
6924 | (char *) "self", NULL | |
6925 | }; | |
6926 | ||
6927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetOwner",kwnames,&obj0)) goto fail; | |
6928 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6930 | { | |
6931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6932 | result = (wxEvtHandler *)(arg1)->GetOwner(); | |
6933 | ||
6934 | wxPyEndAllowThreads(__tstate); | |
6935 | if (PyErr_Occurred()) SWIG_fail; | |
6936 | } | |
6937 | { | |
6938 | resultobj = wxPyMake_wxObject(result, 0); | |
6939 | } | |
6940 | return resultobj; | |
6941 | fail: | |
6942 | return NULL; | |
6943 | } | |
6944 | ||
6945 | ||
6946 | static PyObject *_wrap_Timer_Start(PyObject *, PyObject *args, PyObject *kwargs) { | |
6947 | PyObject *resultobj; | |
6948 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6949 | int arg2 = (int) -1 ; | |
6950 | bool arg3 = (bool) false ; | |
6951 | bool result; | |
6952 | PyObject * obj0 = 0 ; | |
6953 | PyObject * obj1 = 0 ; | |
6954 | PyObject * obj2 = 0 ; | |
6955 | char *kwnames[] = { | |
6956 | (char *) "self",(char *) "milliseconds",(char *) "oneShot", NULL | |
6957 | }; | |
6958 | ||
6959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Timer_Start",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6962 | if (obj1) { | |
6963 | arg2 = (int)SWIG_As_int(obj1); | |
6964 | if (PyErr_Occurred()) SWIG_fail; | |
6965 | } | |
6966 | if (obj2) { | |
6967 | arg3 = (bool)SWIG_As_bool(obj2); | |
6968 | if (PyErr_Occurred()) SWIG_fail; | |
6969 | } | |
6970 | { | |
6971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6972 | result = (bool)(arg1)->Start(arg2,arg3); | |
6973 | ||
6974 | wxPyEndAllowThreads(__tstate); | |
6975 | if (PyErr_Occurred()) SWIG_fail; | |
6976 | } | |
6977 | { | |
6978 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6979 | } | |
6980 | return resultobj; | |
6981 | fail: | |
6982 | return NULL; | |
6983 | } | |
6984 | ||
6985 | ||
6986 | static PyObject *_wrap_Timer_Stop(PyObject *, PyObject *args, PyObject *kwargs) { | |
6987 | PyObject *resultobj; | |
6988 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6989 | PyObject * obj0 = 0 ; | |
6990 | char *kwnames[] = { | |
6991 | (char *) "self", NULL | |
6992 | }; | |
6993 | ||
6994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Stop",kwnames,&obj0)) goto fail; | |
6995 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6996 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6997 | { | |
6998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6999 | (arg1)->Stop(); | |
7000 | ||
7001 | wxPyEndAllowThreads(__tstate); | |
7002 | if (PyErr_Occurred()) SWIG_fail; | |
7003 | } | |
7004 | Py_INCREF(Py_None); resultobj = Py_None; | |
7005 | return resultobj; | |
7006 | fail: | |
7007 | return NULL; | |
7008 | } | |
7009 | ||
7010 | ||
7011 | static PyObject *_wrap_Timer_IsRunning(PyObject *, PyObject *args, PyObject *kwargs) { | |
7012 | PyObject *resultobj; | |
7013 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
7014 | bool result; | |
7015 | PyObject * obj0 = 0 ; | |
7016 | char *kwnames[] = { | |
7017 | (char *) "self", NULL | |
7018 | }; | |
7019 | ||
7020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsRunning",kwnames,&obj0)) goto fail; | |
7021 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
7022 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7023 | { | |
7024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7025 | result = (bool)((wxPyTimer const *)arg1)->IsRunning(); | |
7026 | ||
7027 | wxPyEndAllowThreads(__tstate); | |
7028 | if (PyErr_Occurred()) SWIG_fail; | |
7029 | } | |
7030 | { | |
7031 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7032 | } | |
7033 | return resultobj; | |
7034 | fail: | |
7035 | return NULL; | |
7036 | } | |
7037 | ||
7038 | ||
7039 | static PyObject *_wrap_Timer_GetInterval(PyObject *, PyObject *args, PyObject *kwargs) { | |
7040 | PyObject *resultobj; | |
7041 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
7042 | int result; | |
7043 | PyObject * obj0 = 0 ; | |
7044 | char *kwnames[] = { | |
7045 | (char *) "self", NULL | |
7046 | }; | |
7047 | ||
7048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetInterval",kwnames,&obj0)) goto fail; | |
7049 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
7050 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7051 | { | |
7052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7053 | result = (int)((wxPyTimer const *)arg1)->GetInterval(); | |
7054 | ||
7055 | wxPyEndAllowThreads(__tstate); | |
7056 | if (PyErr_Occurred()) SWIG_fail; | |
7057 | } | |
7058 | resultobj = SWIG_From_int((int)result); | |
7059 | return resultobj; | |
7060 | fail: | |
7061 | return NULL; | |
7062 | } | |
7063 | ||
7064 | ||
7065 | static PyObject *_wrap_Timer_IsOneShot(PyObject *, PyObject *args, PyObject *kwargs) { | |
7066 | PyObject *resultobj; | |
7067 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
7068 | bool result; | |
7069 | PyObject * obj0 = 0 ; | |
7070 | char *kwnames[] = { | |
7071 | (char *) "self", NULL | |
7072 | }; | |
7073 | ||
7074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsOneShot",kwnames,&obj0)) goto fail; | |
7075 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
7076 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7077 | { | |
7078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7079 | result = (bool)((wxPyTimer const *)arg1)->IsOneShot(); | |
7080 | ||
7081 | wxPyEndAllowThreads(__tstate); | |
7082 | if (PyErr_Occurred()) SWIG_fail; | |
7083 | } | |
7084 | { | |
7085 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7086 | } | |
7087 | return resultobj; | |
7088 | fail: | |
7089 | return NULL; | |
7090 | } | |
7091 | ||
7092 | ||
7093 | static PyObject *_wrap_Timer_GetId(PyObject *, PyObject *args, PyObject *kwargs) { | |
7094 | PyObject *resultobj; | |
7095 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
7096 | int result; | |
7097 | PyObject * obj0 = 0 ; | |
7098 | char *kwnames[] = { | |
7099 | (char *) "self", NULL | |
7100 | }; | |
7101 | ||
7102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetId",kwnames,&obj0)) goto fail; | |
7103 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
7104 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7105 | { | |
7106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7107 | result = (int)((wxPyTimer const *)arg1)->GetId(); | |
7108 | ||
7109 | wxPyEndAllowThreads(__tstate); | |
7110 | if (PyErr_Occurred()) SWIG_fail; | |
7111 | } | |
7112 | resultobj = SWIG_From_int((int)result); | |
7113 | return resultobj; | |
7114 | fail: | |
7115 | return NULL; | |
7116 | } | |
7117 | ||
7118 | ||
7119 | static PyObject * Timer_swigregister(PyObject *, PyObject *args) { | |
7120 | PyObject *obj; | |
7121 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7122 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTimer, obj); | |
7123 | Py_INCREF(obj); | |
7124 | return Py_BuildValue((char *)""); | |
7125 | } | |
7126 | static PyObject *_wrap_new_TimerEvent(PyObject *, PyObject *args, PyObject *kwargs) { | |
7127 | PyObject *resultobj; | |
7128 | int arg1 = (int) 0 ; | |
7129 | int arg2 = (int) 0 ; | |
7130 | wxTimerEvent *result; | |
7131 | PyObject * obj0 = 0 ; | |
7132 | PyObject * obj1 = 0 ; | |
7133 | char *kwnames[] = { | |
7134 | (char *) "timerid",(char *) "interval", NULL | |
7135 | }; | |
7136 | ||
7137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TimerEvent",kwnames,&obj0,&obj1)) goto fail; | |
7138 | if (obj0) { | |
7139 | arg1 = (int)SWIG_As_int(obj0); | |
7140 | if (PyErr_Occurred()) SWIG_fail; | |
7141 | } | |
7142 | if (obj1) { | |
7143 | arg2 = (int)SWIG_As_int(obj1); | |
7144 | if (PyErr_Occurred()) SWIG_fail; | |
7145 | } | |
7146 | { | |
7147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7148 | result = (wxTimerEvent *)new wxTimerEvent(arg1,arg2); | |
7149 | ||
7150 | wxPyEndAllowThreads(__tstate); | |
7151 | if (PyErr_Occurred()) SWIG_fail; | |
7152 | } | |
7153 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerEvent, 1); | |
7154 | return resultobj; | |
7155 | fail: | |
7156 | return NULL; | |
7157 | } | |
7158 | ||
7159 | ||
7160 | static PyObject *_wrap_TimerEvent_GetInterval(PyObject *, PyObject *args, PyObject *kwargs) { | |
7161 | PyObject *resultobj; | |
7162 | wxTimerEvent *arg1 = (wxTimerEvent *) 0 ; | |
7163 | int result; | |
7164 | PyObject * obj0 = 0 ; | |
7165 | char *kwnames[] = { | |
7166 | (char *) "self", NULL | |
7167 | }; | |
7168 | ||
7169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimerEvent_GetInterval",kwnames,&obj0)) goto fail; | |
7170 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerEvent, | |
7171 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7172 | { | |
7173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7174 | result = (int)((wxTimerEvent const *)arg1)->GetInterval(); | |
7175 | ||
7176 | wxPyEndAllowThreads(__tstate); | |
7177 | if (PyErr_Occurred()) SWIG_fail; | |
7178 | } | |
7179 | resultobj = SWIG_From_int((int)result); | |
7180 | return resultobj; | |
7181 | fail: | |
7182 | return NULL; | |
7183 | } | |
7184 | ||
7185 | ||
7186 | static PyObject * TimerEvent_swigregister(PyObject *, PyObject *args) { | |
7187 | PyObject *obj; | |
7188 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7189 | SWIG_TypeClientData(SWIGTYPE_p_wxTimerEvent, obj); | |
7190 | Py_INCREF(obj); | |
7191 | return Py_BuildValue((char *)""); | |
7192 | } | |
7193 | static PyObject *_wrap_new_TimerRunner__SWIG_0(PyObject *, PyObject *args) { | |
7194 | PyObject *resultobj; | |
7195 | wxTimer *arg1 = 0 ; | |
7196 | wxTimerRunner *result; | |
7197 | PyObject * obj0 = 0 ; | |
7198 | ||
7199 | if(!PyArg_ParseTuple(args,(char *)"O:new_TimerRunner",&obj0)) goto fail; | |
7200 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer, | |
7201 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7202 | SWIG_fail; | |
7203 | if (arg1 == NULL) { | |
7204 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7205 | SWIG_fail; | |
7206 | } | |
7207 | { | |
7208 | if (!wxPyCheckForApp()) SWIG_fail; | |
7209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7210 | result = (wxTimerRunner *)new wxTimerRunner(*arg1); | |
7211 | ||
7212 | wxPyEndAllowThreads(__tstate); | |
7213 | if (PyErr_Occurred()) SWIG_fail; | |
7214 | } | |
7215 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1); | |
7216 | return resultobj; | |
7217 | fail: | |
7218 | return NULL; | |
7219 | } | |
7220 | ||
7221 | ||
7222 | static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *, PyObject *args) { | |
7223 | PyObject *resultobj; | |
7224 | wxTimer *arg1 = 0 ; | |
7225 | int arg2 ; | |
7226 | bool arg3 = (bool) false ; | |
7227 | wxTimerRunner *result; | |
7228 | PyObject * obj0 = 0 ; | |
7229 | PyObject * obj1 = 0 ; | |
7230 | PyObject * obj2 = 0 ; | |
7231 | ||
7232 | if(!PyArg_ParseTuple(args,(char *)"OO|O:new_TimerRunner",&obj0,&obj1,&obj2)) goto fail; | |
7233 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer, | |
7234 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7235 | SWIG_fail; | |
7236 | if (arg1 == NULL) { | |
7237 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7238 | SWIG_fail; | |
7239 | } | |
7240 | arg2 = (int)SWIG_As_int(obj1); | |
7241 | if (PyErr_Occurred()) SWIG_fail; | |
7242 | if (obj2) { | |
7243 | arg3 = (bool)SWIG_As_bool(obj2); | |
7244 | if (PyErr_Occurred()) SWIG_fail; | |
7245 | } | |
7246 | { | |
7247 | if (!wxPyCheckForApp()) SWIG_fail; | |
7248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7249 | result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2,arg3); | |
7250 | ||
7251 | wxPyEndAllowThreads(__tstate); | |
7252 | if (PyErr_Occurred()) SWIG_fail; | |
7253 | } | |
7254 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1); | |
7255 | return resultobj; | |
7256 | fail: | |
7257 | return NULL; | |
7258 | } | |
7259 | ||
7260 | ||
7261 | static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) { | |
7262 | int argc; | |
7263 | PyObject *argv[4]; | |
7264 | int ii; | |
7265 | ||
7266 | argc = PyObject_Length(args); | |
7267 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
7268 | argv[ii] = PyTuple_GetItem(args,ii); | |
7269 | } | |
7270 | if (argc == 1) { | |
7271 | int _v; | |
7272 | { | |
7273 | void *ptr; | |
7274 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) { | |
7275 | _v = 0; | |
7276 | PyErr_Clear(); | |
7277 | } else { | |
7278 | _v = 1; | |
7279 | } | |
7280 | } | |
7281 | if (_v) { | |
7282 | return _wrap_new_TimerRunner__SWIG_0(self,args); | |
7283 | } | |
7284 | } | |
7285 | if ((argc >= 2) && (argc <= 3)) { | |
7286 | int _v; | |
7287 | { | |
7288 | void *ptr; | |
7289 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) { | |
7290 | _v = 0; | |
7291 | PyErr_Clear(); | |
7292 | } else { | |
7293 | _v = 1; | |
7294 | } | |
7295 | } | |
7296 | if (_v) { | |
7297 | _v = SWIG_Check_int(argv[1]); | |
7298 | if (_v) { | |
7299 | if (argc <= 2) { | |
7300 | return _wrap_new_TimerRunner__SWIG_1(self,args); | |
7301 | } | |
7302 | _v = SWIG_Check_bool(argv[2]); | |
7303 | if (_v) { | |
7304 | return _wrap_new_TimerRunner__SWIG_1(self,args); | |
7305 | } | |
7306 | } | |
7307 | } | |
7308 | } | |
7309 | ||
7310 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TimerRunner'"); | |
7311 | return NULL; | |
7312 | } | |
7313 | ||
7314 | ||
7315 | static PyObject *_wrap_delete_TimerRunner(PyObject *, PyObject *args, PyObject *kwargs) { | |
7316 | PyObject *resultobj; | |
7317 | wxTimerRunner *arg1 = (wxTimerRunner *) 0 ; | |
7318 | PyObject * obj0 = 0 ; | |
7319 | char *kwnames[] = { | |
7320 | (char *) "self", NULL | |
7321 | }; | |
7322 | ||
7323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimerRunner",kwnames,&obj0)) goto fail; | |
7324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner, | |
7325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7326 | { | |
7327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7328 | delete arg1; | |
7329 | ||
7330 | wxPyEndAllowThreads(__tstate); | |
7331 | if (PyErr_Occurred()) SWIG_fail; | |
7332 | } | |
7333 | Py_INCREF(Py_None); resultobj = Py_None; | |
7334 | return resultobj; | |
7335 | fail: | |
7336 | return NULL; | |
7337 | } | |
7338 | ||
7339 | ||
7340 | static PyObject *_wrap_TimerRunner_Start(PyObject *, PyObject *args, PyObject *kwargs) { | |
7341 | PyObject *resultobj; | |
7342 | wxTimerRunner *arg1 = (wxTimerRunner *) 0 ; | |
7343 | int arg2 ; | |
7344 | bool arg3 = (bool) false ; | |
7345 | PyObject * obj0 = 0 ; | |
7346 | PyObject * obj1 = 0 ; | |
7347 | PyObject * obj2 = 0 ; | |
7348 | char *kwnames[] = { | |
7349 | (char *) "self",(char *) "milli",(char *) "oneShot", NULL | |
7350 | }; | |
7351 | ||
7352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TimerRunner_Start",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7353 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner, | |
7354 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7355 | arg2 = (int)SWIG_As_int(obj1); | |
7356 | if (PyErr_Occurred()) SWIG_fail; | |
7357 | if (obj2) { | |
7358 | arg3 = (bool)SWIG_As_bool(obj2); | |
7359 | if (PyErr_Occurred()) SWIG_fail; | |
7360 | } | |
7361 | { | |
7362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7363 | (arg1)->Start(arg2,arg3); | |
7364 | ||
7365 | wxPyEndAllowThreads(__tstate); | |
7366 | if (PyErr_Occurred()) SWIG_fail; | |
7367 | } | |
7368 | Py_INCREF(Py_None); resultobj = Py_None; | |
7369 | return resultobj; | |
7370 | fail: | |
7371 | return NULL; | |
7372 | } | |
7373 | ||
7374 | ||
7375 | static PyObject * TimerRunner_swigregister(PyObject *, PyObject *args) { | |
7376 | PyObject *obj; | |
7377 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7378 | SWIG_TypeClientData(SWIGTYPE_p_wxTimerRunner, obj); | |
7379 | Py_INCREF(obj); | |
7380 | return Py_BuildValue((char *)""); | |
7381 | } | |
7382 | static PyObject *_wrap_new_Log(PyObject *, PyObject *args, PyObject *kwargs) { | |
7383 | PyObject *resultobj; | |
7384 | wxLog *result; | |
7385 | char *kwnames[] = { | |
7386 | NULL | |
7387 | }; | |
7388 | ||
7389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Log",kwnames)) goto fail; | |
7390 | { | |
7391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7392 | result = (wxLog *)new wxLog(); | |
7393 | ||
7394 | wxPyEndAllowThreads(__tstate); | |
7395 | if (PyErr_Occurred()) SWIG_fail; | |
7396 | } | |
7397 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 1); | |
7398 | return resultobj; | |
7399 | fail: | |
7400 | return NULL; | |
7401 | } | |
7402 | ||
7403 | ||
7404 | static PyObject *_wrap_Log_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { | |
7405 | PyObject *resultobj; | |
7406 | bool result; | |
7407 | char *kwnames[] = { | |
7408 | NULL | |
7409 | }; | |
7410 | ||
7411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_IsEnabled",kwnames)) goto fail; | |
7412 | { | |
7413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7414 | result = (bool)wxLog::IsEnabled(); | |
7415 | ||
7416 | wxPyEndAllowThreads(__tstate); | |
7417 | if (PyErr_Occurred()) SWIG_fail; | |
7418 | } | |
7419 | { | |
7420 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7421 | } | |
7422 | return resultobj; | |
7423 | fail: | |
7424 | return NULL; | |
7425 | } | |
7426 | ||
7427 | ||
7428 | static PyObject *_wrap_Log_EnableLogging(PyObject *, PyObject *args, PyObject *kwargs) { | |
7429 | PyObject *resultobj; | |
7430 | bool arg1 = (bool) true ; | |
7431 | bool result; | |
7432 | PyObject * obj0 = 0 ; | |
7433 | char *kwnames[] = { | |
7434 | (char *) "doIt", NULL | |
7435 | }; | |
7436 | ||
7437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_EnableLogging",kwnames,&obj0)) goto fail; | |
7438 | if (obj0) { | |
7439 | arg1 = (bool)SWIG_As_bool(obj0); | |
7440 | if (PyErr_Occurred()) SWIG_fail; | |
7441 | } | |
7442 | { | |
7443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7444 | result = (bool)wxLog::EnableLogging(arg1); | |
7445 | ||
7446 | wxPyEndAllowThreads(__tstate); | |
7447 | if (PyErr_Occurred()) SWIG_fail; | |
7448 | } | |
7449 | { | |
7450 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7451 | } | |
7452 | return resultobj; | |
7453 | fail: | |
7454 | return NULL; | |
7455 | } | |
7456 | ||
7457 | ||
7458 | static PyObject *_wrap_Log_OnLog(PyObject *, PyObject *args, PyObject *kwargs) { | |
7459 | PyObject *resultobj; | |
7460 | wxLogLevel arg1 ; | |
7461 | wxChar *arg2 = (wxChar *) 0 ; | |
7462 | time_t arg3 ; | |
7463 | PyObject * obj0 = 0 ; | |
7464 | PyObject * obj1 = 0 ; | |
7465 | PyObject * obj2 = 0 ; | |
7466 | char *kwnames[] = { | |
7467 | (char *) "level",(char *) "szString",(char *) "t", NULL | |
7468 | }; | |
7469 | ||
7470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Log_OnLog",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7471 | arg1 = (wxLogLevel)SWIG_As_unsigned_SS_long(obj0); | |
7472 | if (PyErr_Occurred()) SWIG_fail; | |
7473 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxChar, | |
7474 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7475 | arg3 = (time_t)SWIG_As_unsigned_SS_int(obj2); | |
7476 | if (PyErr_Occurred()) SWIG_fail; | |
7477 | { | |
7478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7479 | wxLog::OnLog(arg1,(wxChar const *)arg2,arg3); | |
7480 | ||
7481 | wxPyEndAllowThreads(__tstate); | |
7482 | if (PyErr_Occurred()) SWIG_fail; | |
7483 | } | |
7484 | Py_INCREF(Py_None); resultobj = Py_None; | |
7485 | return resultobj; | |
7486 | fail: | |
7487 | return NULL; | |
7488 | } | |
7489 | ||
7490 | ||
7491 | static PyObject *_wrap_Log_Flush(PyObject *, PyObject *args, PyObject *kwargs) { | |
7492 | PyObject *resultobj; | |
7493 | wxLog *arg1 = (wxLog *) 0 ; | |
7494 | PyObject * obj0 = 0 ; | |
7495 | char *kwnames[] = { | |
7496 | (char *) "self", NULL | |
7497 | }; | |
7498 | ||
7499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Flush",kwnames,&obj0)) goto fail; | |
7500 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, | |
7501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7502 | { | |
7503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7504 | (arg1)->Flush(); | |
7505 | ||
7506 | wxPyEndAllowThreads(__tstate); | |
7507 | if (PyErr_Occurred()) SWIG_fail; | |
7508 | } | |
7509 | Py_INCREF(Py_None); resultobj = Py_None; | |
7510 | return resultobj; | |
7511 | fail: | |
7512 | return NULL; | |
7513 | } | |
7514 | ||
7515 | ||
7516 | static PyObject *_wrap_Log_FlushActive(PyObject *, PyObject *args, PyObject *kwargs) { | |
7517 | PyObject *resultobj; | |
7518 | char *kwnames[] = { | |
7519 | NULL | |
7520 | }; | |
7521 | ||
7522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_FlushActive",kwnames)) goto fail; | |
7523 | { | |
7524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7525 | wxLog::FlushActive(); | |
7526 | ||
7527 | wxPyEndAllowThreads(__tstate); | |
7528 | if (PyErr_Occurred()) SWIG_fail; | |
7529 | } | |
7530 | Py_INCREF(Py_None); resultobj = Py_None; | |
7531 | return resultobj; | |
7532 | fail: | |
7533 | return NULL; | |
7534 | } | |
7535 | ||
7536 | ||
7537 | static PyObject *_wrap_Log_GetActiveTarget(PyObject *, PyObject *args, PyObject *kwargs) { | |
7538 | PyObject *resultobj; | |
7539 | wxLog *result; | |
7540 | char *kwnames[] = { | |
7541 | NULL | |
7542 | }; | |
7543 | ||
7544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetActiveTarget",kwnames)) goto fail; | |
7545 | { | |
7546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7547 | result = (wxLog *)wxLog::GetActiveTarget(); | |
7548 | ||
7549 | wxPyEndAllowThreads(__tstate); | |
7550 | if (PyErr_Occurred()) SWIG_fail; | |
7551 | } | |
7552 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); | |
7553 | return resultobj; | |
7554 | fail: | |
7555 | return NULL; | |
7556 | } | |
7557 | ||
7558 | ||
7559 | static PyObject *_wrap_Log_SetActiveTarget(PyObject *, PyObject *args, PyObject *kwargs) { | |
7560 | PyObject *resultobj; | |
7561 | wxLog *arg1 = (wxLog *) 0 ; | |
7562 | wxLog *result; | |
7563 | PyObject * obj0 = 0 ; | |
7564 | char *kwnames[] = { | |
7565 | (char *) "pLogger", NULL | |
7566 | }; | |
7567 | ||
7568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) goto fail; | |
7569 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, | |
7570 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7571 | { | |
7572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7573 | result = (wxLog *)wxLog::SetActiveTarget(arg1); | |
7574 | ||
7575 | wxPyEndAllowThreads(__tstate); | |
7576 | if (PyErr_Occurred()) SWIG_fail; | |
7577 | } | |
7578 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); | |
7579 | return resultobj; | |
7580 | fail: | |
7581 | return NULL; | |
7582 | } | |
7583 | ||
7584 | ||
7585 | static PyObject *_wrap_Log_Suspend(PyObject *, PyObject *args, PyObject *kwargs) { | |
7586 | PyObject *resultobj; | |
7587 | char *kwnames[] = { | |
7588 | NULL | |
7589 | }; | |
7590 | ||
7591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Suspend",kwnames)) goto fail; | |
7592 | { | |
7593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7594 | wxLog::Suspend(); | |
7595 | ||
7596 | wxPyEndAllowThreads(__tstate); | |
7597 | if (PyErr_Occurred()) SWIG_fail; | |
7598 | } | |
7599 | Py_INCREF(Py_None); resultobj = Py_None; | |
7600 | return resultobj; | |
7601 | fail: | |
7602 | return NULL; | |
7603 | } | |
7604 | ||
7605 | ||
7606 | static PyObject *_wrap_Log_Resume(PyObject *, PyObject *args, PyObject *kwargs) { | |
7607 | PyObject *resultobj; | |
7608 | char *kwnames[] = { | |
7609 | NULL | |
7610 | }; | |
7611 | ||
7612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Resume",kwnames)) goto fail; | |
7613 | { | |
7614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7615 | wxLog::Resume(); | |
7616 | ||
7617 | wxPyEndAllowThreads(__tstate); | |
7618 | if (PyErr_Occurred()) SWIG_fail; | |
7619 | } | |
7620 | Py_INCREF(Py_None); resultobj = Py_None; | |
7621 | return resultobj; | |
7622 | fail: | |
7623 | return NULL; | |
7624 | } | |
7625 | ||
7626 | ||
7627 | static PyObject *_wrap_Log_SetVerbose(PyObject *, PyObject *args, PyObject *kwargs) { | |
7628 | PyObject *resultobj; | |
7629 | bool arg1 = (bool) true ; | |
7630 | PyObject * obj0 = 0 ; | |
7631 | char *kwnames[] = { | |
7632 | (char *) "bVerbose", NULL | |
7633 | }; | |
7634 | ||
7635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetVerbose",kwnames,&obj0)) goto fail; | |
7636 | if (obj0) { | |
7637 | arg1 = (bool)SWIG_As_bool(obj0); | |
7638 | if (PyErr_Occurred()) SWIG_fail; | |
7639 | } | |
7640 | { | |
7641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7642 | wxLog::SetVerbose(arg1); | |
7643 | ||
7644 | wxPyEndAllowThreads(__tstate); | |
7645 | if (PyErr_Occurred()) SWIG_fail; | |
7646 | } | |
7647 | Py_INCREF(Py_None); resultobj = Py_None; | |
7648 | return resultobj; | |
7649 | fail: | |
7650 | return NULL; | |
7651 | } | |
7652 | ||
7653 | ||
7654 | static PyObject *_wrap_Log_SetLogLevel(PyObject *, PyObject *args, PyObject *kwargs) { | |
7655 | PyObject *resultobj; | |
7656 | wxLogLevel arg1 ; | |
7657 | PyObject * obj0 = 0 ; | |
7658 | char *kwnames[] = { | |
7659 | (char *) "logLevel", NULL | |
7660 | }; | |
7661 | ||
7662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetLogLevel",kwnames,&obj0)) goto fail; | |
7663 | arg1 = (wxLogLevel)SWIG_As_unsigned_SS_long(obj0); | |
7664 | if (PyErr_Occurred()) SWIG_fail; | |
7665 | { | |
7666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7667 | wxLog::SetLogLevel(arg1); | |
7668 | ||
7669 | wxPyEndAllowThreads(__tstate); | |
7670 | if (PyErr_Occurred()) SWIG_fail; | |
7671 | } | |
7672 | Py_INCREF(Py_None); resultobj = Py_None; | |
7673 | return resultobj; | |
7674 | fail: | |
7675 | return NULL; | |
7676 | } | |
7677 | ||
7678 | ||
7679 | static PyObject *_wrap_Log_DontCreateOnDemand(PyObject *, PyObject *args, PyObject *kwargs) { | |
7680 | PyObject *resultobj; | |
7681 | char *kwnames[] = { | |
7682 | NULL | |
7683 | }; | |
7684 | ||
7685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_DontCreateOnDemand",kwnames)) goto fail; | |
7686 | { | |
7687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7688 | wxLog::DontCreateOnDemand(); | |
7689 | ||
7690 | wxPyEndAllowThreads(__tstate); | |
7691 | if (PyErr_Occurred()) SWIG_fail; | |
7692 | } | |
7693 | Py_INCREF(Py_None); resultobj = Py_None; | |
7694 | return resultobj; | |
7695 | fail: | |
7696 | return NULL; | |
7697 | } | |
7698 | ||
7699 | ||
7700 | static PyObject *_wrap_Log_SetTraceMask(PyObject *, PyObject *args, PyObject *kwargs) { | |
7701 | PyObject *resultobj; | |
7702 | wxTraceMask arg1 ; | |
7703 | PyObject * obj0 = 0 ; | |
7704 | char *kwnames[] = { | |
7705 | (char *) "ulMask", NULL | |
7706 | }; | |
7707 | ||
7708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTraceMask",kwnames,&obj0)) goto fail; | |
7709 | arg1 = (wxTraceMask)SWIG_As_unsigned_SS_long(obj0); | |
7710 | if (PyErr_Occurred()) SWIG_fail; | |
7711 | { | |
7712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7713 | wxLog::SetTraceMask(arg1); | |
7714 | ||
7715 | wxPyEndAllowThreads(__tstate); | |
7716 | if (PyErr_Occurred()) SWIG_fail; | |
7717 | } | |
7718 | Py_INCREF(Py_None); resultobj = Py_None; | |
7719 | return resultobj; | |
7720 | fail: | |
7721 | return NULL; | |
7722 | } | |
7723 | ||
7724 | ||
7725 | static PyObject *_wrap_Log_AddTraceMask(PyObject *, PyObject *args, PyObject *kwargs) { | |
7726 | PyObject *resultobj; | |
7727 | wxString *arg1 = 0 ; | |
7728 | bool temp1 = false ; | |
7729 | PyObject * obj0 = 0 ; | |
7730 | char *kwnames[] = { | |
7731 | (char *) "str", NULL | |
7732 | }; | |
7733 | ||
7734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_AddTraceMask",kwnames,&obj0)) goto fail; | |
7735 | { | |
7736 | arg1 = wxString_in_helper(obj0); | |
7737 | if (arg1 == NULL) SWIG_fail; | |
7738 | temp1 = true; | |
7739 | } | |
7740 | { | |
7741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7742 | wxLog::AddTraceMask((wxString const &)*arg1); | |
7743 | ||
7744 | wxPyEndAllowThreads(__tstate); | |
7745 | if (PyErr_Occurred()) SWIG_fail; | |
7746 | } | |
7747 | Py_INCREF(Py_None); resultobj = Py_None; | |
7748 | { | |
7749 | if (temp1) | |
7750 | delete arg1; | |
7751 | } | |
7752 | return resultobj; | |
7753 | fail: | |
7754 | { | |
7755 | if (temp1) | |
7756 | delete arg1; | |
7757 | } | |
7758 | return NULL; | |
7759 | } | |
7760 | ||
7761 | ||
7762 | static PyObject *_wrap_Log_RemoveTraceMask(PyObject *, PyObject *args, PyObject *kwargs) { | |
7763 | PyObject *resultobj; | |
7764 | wxString *arg1 = 0 ; | |
7765 | bool temp1 = false ; | |
7766 | PyObject * obj0 = 0 ; | |
7767 | char *kwnames[] = { | |
7768 | (char *) "str", NULL | |
7769 | }; | |
7770 | ||
7771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_RemoveTraceMask",kwnames,&obj0)) goto fail; | |
7772 | { | |
7773 | arg1 = wxString_in_helper(obj0); | |
7774 | if (arg1 == NULL) SWIG_fail; | |
7775 | temp1 = true; | |
7776 | } | |
7777 | { | |
7778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7779 | wxLog::RemoveTraceMask((wxString const &)*arg1); | |
7780 | ||
7781 | wxPyEndAllowThreads(__tstate); | |
7782 | if (PyErr_Occurred()) SWIG_fail; | |
7783 | } | |
7784 | Py_INCREF(Py_None); resultobj = Py_None; | |
7785 | { | |
7786 | if (temp1) | |
7787 | delete arg1; | |
7788 | } | |
7789 | return resultobj; | |
7790 | fail: | |
7791 | { | |
7792 | if (temp1) | |
7793 | delete arg1; | |
7794 | } | |
7795 | return NULL; | |
7796 | } | |
7797 | ||
7798 | ||
7799 | static PyObject *_wrap_Log_ClearTraceMasks(PyObject *, PyObject *args, PyObject *kwargs) { | |
7800 | PyObject *resultobj; | |
7801 | char *kwnames[] = { | |
7802 | NULL | |
7803 | }; | |
7804 | ||
7805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_ClearTraceMasks",kwnames)) goto fail; | |
7806 | { | |
7807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7808 | wxLog::ClearTraceMasks(); | |
7809 | ||
7810 | wxPyEndAllowThreads(__tstate); | |
7811 | if (PyErr_Occurred()) SWIG_fail; | |
7812 | } | |
7813 | Py_INCREF(Py_None); resultobj = Py_None; | |
7814 | return resultobj; | |
7815 | fail: | |
7816 | return NULL; | |
7817 | } | |
7818 | ||
7819 | ||
7820 | static PyObject *_wrap_Log_GetTraceMasks(PyObject *, PyObject *args, PyObject *kwargs) { | |
7821 | PyObject *resultobj; | |
7822 | wxArrayString *result; | |
7823 | char *kwnames[] = { | |
7824 | NULL | |
7825 | }; | |
7826 | ||
7827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMasks",kwnames)) goto fail; | |
7828 | { | |
7829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7830 | { | |
7831 | wxArrayString const &_result_ref = wxLog::GetTraceMasks(); | |
7832 | result = (wxArrayString *) &_result_ref; | |
7833 | } | |
7834 | ||
7835 | wxPyEndAllowThreads(__tstate); | |
7836 | if (PyErr_Occurred()) SWIG_fail; | |
7837 | } | |
7838 | { | |
7839 | resultobj = wxArrayString2PyList_helper(*result); | |
7840 | } | |
7841 | return resultobj; | |
7842 | fail: | |
7843 | return NULL; | |
7844 | } | |
7845 | ||
7846 | ||
7847 | static PyObject *_wrap_Log_SetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) { | |
7848 | PyObject *resultobj; | |
7849 | wxChar *arg1 = (wxChar *) 0 ; | |
7850 | PyObject * obj0 = 0 ; | |
7851 | char *kwnames[] = { | |
7852 | (char *) "ts", NULL | |
7853 | }; | |
7854 | ||
7855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTimestamp",kwnames,&obj0)) goto fail; | |
7856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar, | |
7857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7858 | { | |
7859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7860 | wxLog::SetTimestamp((wxChar const *)arg1); | |
7861 | ||
7862 | wxPyEndAllowThreads(__tstate); | |
7863 | if (PyErr_Occurred()) SWIG_fail; | |
7864 | } | |
7865 | Py_INCREF(Py_None); resultobj = Py_None; | |
7866 | return resultobj; | |
7867 | fail: | |
7868 | return NULL; | |
7869 | } | |
7870 | ||
7871 | ||
7872 | static PyObject *_wrap_Log_GetVerbose(PyObject *, PyObject *args, PyObject *kwargs) { | |
7873 | PyObject *resultobj; | |
7874 | bool result; | |
7875 | char *kwnames[] = { | |
7876 | NULL | |
7877 | }; | |
7878 | ||
7879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetVerbose",kwnames)) goto fail; | |
7880 | { | |
7881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7882 | result = (bool)wxLog::GetVerbose(); | |
7883 | ||
7884 | wxPyEndAllowThreads(__tstate); | |
7885 | if (PyErr_Occurred()) SWIG_fail; | |
7886 | } | |
7887 | { | |
7888 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7889 | } | |
7890 | return resultobj; | |
7891 | fail: | |
7892 | return NULL; | |
7893 | } | |
7894 | ||
7895 | ||
7896 | static PyObject *_wrap_Log_GetTraceMask(PyObject *, PyObject *args, PyObject *kwargs) { | |
7897 | PyObject *resultobj; | |
7898 | wxTraceMask result; | |
7899 | char *kwnames[] = { | |
7900 | NULL | |
7901 | }; | |
7902 | ||
7903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMask",kwnames)) goto fail; | |
7904 | { | |
7905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7906 | result = (wxTraceMask)wxLog::GetTraceMask(); | |
7907 | ||
7908 | wxPyEndAllowThreads(__tstate); | |
7909 | if (PyErr_Occurred()) SWIG_fail; | |
7910 | } | |
7911 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); | |
7912 | return resultobj; | |
7913 | fail: | |
7914 | return NULL; | |
7915 | } | |
7916 | ||
7917 | ||
7918 | static PyObject *_wrap_Log_IsAllowedTraceMask(PyObject *, PyObject *args, PyObject *kwargs) { | |
7919 | PyObject *resultobj; | |
7920 | wxChar *arg1 = (wxChar *) 0 ; | |
7921 | bool result; | |
7922 | PyObject * obj0 = 0 ; | |
7923 | char *kwnames[] = { | |
7924 | (char *) "mask", NULL | |
7925 | }; | |
7926 | ||
7927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_IsAllowedTraceMask",kwnames,&obj0)) goto fail; | |
7928 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar, | |
7929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7930 | { | |
7931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7932 | result = (bool)wxLog::IsAllowedTraceMask((wxChar const *)arg1); | |
7933 | ||
7934 | wxPyEndAllowThreads(__tstate); | |
7935 | if (PyErr_Occurred()) SWIG_fail; | |
7936 | } | |
7937 | { | |
7938 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7939 | } | |
7940 | return resultobj; | |
7941 | fail: | |
7942 | return NULL; | |
7943 | } | |
7944 | ||
7945 | ||
7946 | static PyObject *_wrap_Log_GetLogLevel(PyObject *, PyObject *args, PyObject *kwargs) { | |
7947 | PyObject *resultobj; | |
7948 | wxLogLevel result; | |
7949 | char *kwnames[] = { | |
7950 | NULL | |
7951 | }; | |
7952 | ||
7953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetLogLevel",kwnames)) goto fail; | |
7954 | { | |
7955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7956 | result = (wxLogLevel)wxLog::GetLogLevel(); | |
7957 | ||
7958 | wxPyEndAllowThreads(__tstate); | |
7959 | if (PyErr_Occurred()) SWIG_fail; | |
7960 | } | |
7961 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); | |
7962 | return resultobj; | |
7963 | fail: | |
7964 | return NULL; | |
7965 | } | |
7966 | ||
7967 | ||
7968 | static PyObject *_wrap_Log_GetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) { | |
7969 | PyObject *resultobj; | |
7970 | wxChar *result; | |
7971 | char *kwnames[] = { | |
7972 | NULL | |
7973 | }; | |
7974 | ||
7975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTimestamp",kwnames)) goto fail; | |
7976 | { | |
7977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7978 | result = (wxChar *)wxLog::GetTimestamp(); | |
7979 | ||
7980 | wxPyEndAllowThreads(__tstate); | |
7981 | if (PyErr_Occurred()) SWIG_fail; | |
7982 | } | |
7983 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChar, 0); | |
7984 | return resultobj; | |
7985 | fail: | |
7986 | return NULL; | |
7987 | } | |
7988 | ||
7989 | ||
7990 | static PyObject *_wrap_Log_TimeStamp(PyObject *, PyObject *args, PyObject *kwargs) { | |
7991 | PyObject *resultobj; | |
7992 | wxString result; | |
7993 | char *kwnames[] = { | |
7994 | NULL | |
7995 | }; | |
7996 | ||
7997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_TimeStamp",kwnames)) goto fail; | |
7998 | { | |
7999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8000 | result = Log_TimeStamp(); | |
8001 | ||
8002 | wxPyEndAllowThreads(__tstate); | |
8003 | if (PyErr_Occurred()) SWIG_fail; | |
8004 | } | |
8005 | { | |
8006 | #if wxUSE_UNICODE | |
8007 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8008 | #else | |
8009 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8010 | #endif | |
8011 | } | |
8012 | return resultobj; | |
8013 | fail: | |
8014 | return NULL; | |
8015 | } | |
8016 | ||
8017 | ||
8018 | static PyObject *_wrap_Log_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { | |
8019 | PyObject *resultobj; | |
8020 | wxLog *arg1 = (wxLog *) 0 ; | |
8021 | PyObject * obj0 = 0 ; | |
8022 | char *kwnames[] = { | |
8023 | (char *) "self", NULL | |
8024 | }; | |
8025 | ||
8026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Destroy",kwnames,&obj0)) goto fail; | |
8027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, | |
8028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8029 | { | |
8030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8031 | wxLog_Destroy(arg1); | |
8032 | ||
8033 | wxPyEndAllowThreads(__tstate); | |
8034 | if (PyErr_Occurred()) SWIG_fail; | |
8035 | } | |
8036 | Py_INCREF(Py_None); resultobj = Py_None; | |
8037 | return resultobj; | |
8038 | fail: | |
8039 | return NULL; | |
8040 | } | |
8041 | ||
8042 | ||
8043 | static PyObject * Log_swigregister(PyObject *, PyObject *args) { | |
8044 | PyObject *obj; | |
8045 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8046 | SWIG_TypeClientData(SWIGTYPE_p_wxLog, obj); | |
8047 | Py_INCREF(obj); | |
8048 | return Py_BuildValue((char *)""); | |
8049 | } | |
8050 | static PyObject *_wrap_new_LogStderr(PyObject *, PyObject *args, PyObject *kwargs) { | |
8051 | PyObject *resultobj; | |
8052 | wxLogStderr *result; | |
8053 | char *kwnames[] = { | |
8054 | NULL | |
8055 | }; | |
8056 | ||
8057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogStderr",kwnames)) goto fail; | |
8058 | { | |
8059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8060 | result = (wxLogStderr *)new wxLogStderr(); | |
8061 | ||
8062 | wxPyEndAllowThreads(__tstate); | |
8063 | if (PyErr_Occurred()) SWIG_fail; | |
8064 | } | |
8065 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogStderr, 1); | |
8066 | return resultobj; | |
8067 | fail: | |
8068 | return NULL; | |
8069 | } | |
8070 | ||
8071 | ||
8072 | static PyObject * LogStderr_swigregister(PyObject *, PyObject *args) { | |
8073 | PyObject *obj; | |
8074 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8075 | SWIG_TypeClientData(SWIGTYPE_p_wxLogStderr, obj); | |
8076 | Py_INCREF(obj); | |
8077 | return Py_BuildValue((char *)""); | |
8078 | } | |
8079 | static PyObject *_wrap_new_LogTextCtrl(PyObject *, PyObject *args, PyObject *kwargs) { | |
8080 | PyObject *resultobj; | |
8081 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8082 | wxLogTextCtrl *result; | |
8083 | PyObject * obj0 = 0 ; | |
8084 | char *kwnames[] = { | |
8085 | (char *) "pTextCtrl", NULL | |
8086 | }; | |
8087 | ||
8088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogTextCtrl",kwnames,&obj0)) goto fail; | |
8089 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8090 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8091 | { | |
8092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8093 | result = (wxLogTextCtrl *)new wxLogTextCtrl(arg1); | |
8094 | ||
8095 | wxPyEndAllowThreads(__tstate); | |
8096 | if (PyErr_Occurred()) SWIG_fail; | |
8097 | } | |
8098 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogTextCtrl, 1); | |
8099 | return resultobj; | |
8100 | fail: | |
8101 | return NULL; | |
8102 | } | |
8103 | ||
8104 | ||
8105 | static PyObject * LogTextCtrl_swigregister(PyObject *, PyObject *args) { | |
8106 | PyObject *obj; | |
8107 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8108 | SWIG_TypeClientData(SWIGTYPE_p_wxLogTextCtrl, obj); | |
8109 | Py_INCREF(obj); | |
8110 | return Py_BuildValue((char *)""); | |
8111 | } | |
8112 | static PyObject *_wrap_new_LogGui(PyObject *, PyObject *args, PyObject *kwargs) { | |
8113 | PyObject *resultobj; | |
8114 | wxLogGui *result; | |
8115 | char *kwnames[] = { | |
8116 | NULL | |
8117 | }; | |
8118 | ||
8119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogGui",kwnames)) goto fail; | |
8120 | { | |
8121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8122 | result = (wxLogGui *)new wxLogGui(); | |
8123 | ||
8124 | wxPyEndAllowThreads(__tstate); | |
8125 | if (PyErr_Occurred()) SWIG_fail; | |
8126 | } | |
8127 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogGui, 1); | |
8128 | return resultobj; | |
8129 | fail: | |
8130 | return NULL; | |
8131 | } | |
8132 | ||
8133 | ||
8134 | static PyObject * LogGui_swigregister(PyObject *, PyObject *args) { | |
8135 | PyObject *obj; | |
8136 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8137 | SWIG_TypeClientData(SWIGTYPE_p_wxLogGui, obj); | |
8138 | Py_INCREF(obj); | |
8139 | return Py_BuildValue((char *)""); | |
8140 | } | |
8141 | static PyObject *_wrap_new_LogWindow(PyObject *, PyObject *args, PyObject *kwargs) { | |
8142 | PyObject *resultobj; | |
8143 | wxFrame *arg1 = (wxFrame *) 0 ; | |
8144 | wxString *arg2 = 0 ; | |
8145 | bool arg3 = (bool) true ; | |
8146 | bool arg4 = (bool) true ; | |
8147 | wxLogWindow *result; | |
8148 | bool temp2 = false ; | |
8149 | PyObject * obj0 = 0 ; | |
8150 | PyObject * obj1 = 0 ; | |
8151 | PyObject * obj2 = 0 ; | |
8152 | PyObject * obj3 = 0 ; | |
8153 | char *kwnames[] = { | |
8154 | (char *) "pParent",(char *) "szTitle",(char *) "bShow",(char *) "bPassToOld", NULL | |
8155 | }; | |
8156 | ||
8157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_LogWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
8158 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
8159 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8160 | { | |
8161 | arg2 = wxString_in_helper(obj1); | |
8162 | if (arg2 == NULL) SWIG_fail; | |
8163 | temp2 = true; | |
8164 | } | |
8165 | if (obj2) { | |
8166 | arg3 = (bool)SWIG_As_bool(obj2); | |
8167 | if (PyErr_Occurred()) SWIG_fail; | |
8168 | } | |
8169 | if (obj3) { | |
8170 | arg4 = (bool)SWIG_As_bool(obj3); | |
8171 | if (PyErr_Occurred()) SWIG_fail; | |
8172 | } | |
8173 | { | |
8174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8175 | result = (wxLogWindow *)new wxLogWindow(arg1,(wxString const &)*arg2,arg3,arg4); | |
8176 | ||
8177 | wxPyEndAllowThreads(__tstate); | |
8178 | if (PyErr_Occurred()) SWIG_fail; | |
8179 | } | |
8180 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogWindow, 1); | |
8181 | { | |
8182 | if (temp2) | |
8183 | delete arg2; | |
8184 | } | |
8185 | return resultobj; | |
8186 | fail: | |
8187 | { | |
8188 | if (temp2) | |
8189 | delete arg2; | |
8190 | } | |
8191 | return NULL; | |
8192 | } | |
8193 | ||
8194 | ||
8195 | static PyObject *_wrap_LogWindow_Show(PyObject *, PyObject *args, PyObject *kwargs) { | |
8196 | PyObject *resultobj; | |
8197 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
8198 | bool arg2 = (bool) true ; | |
8199 | PyObject * obj0 = 0 ; | |
8200 | PyObject * obj1 = 0 ; | |
8201 | char *kwnames[] = { | |
8202 | (char *) "self",(char *) "bShow", NULL | |
8203 | }; | |
8204 | ||
8205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:LogWindow_Show",kwnames,&obj0,&obj1)) goto fail; | |
8206 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, | |
8207 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8208 | if (obj1) { | |
8209 | arg2 = (bool)SWIG_As_bool(obj1); | |
8210 | if (PyErr_Occurred()) SWIG_fail; | |
8211 | } | |
8212 | { | |
8213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8214 | (arg1)->Show(arg2); | |
8215 | ||
8216 | wxPyEndAllowThreads(__tstate); | |
8217 | if (PyErr_Occurred()) SWIG_fail; | |
8218 | } | |
8219 | Py_INCREF(Py_None); resultobj = Py_None; | |
8220 | return resultobj; | |
8221 | fail: | |
8222 | return NULL; | |
8223 | } | |
8224 | ||
8225 | ||
8226 | static PyObject *_wrap_LogWindow_GetFrame(PyObject *, PyObject *args, PyObject *kwargs) { | |
8227 | PyObject *resultobj; | |
8228 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
8229 | wxFrame *result; | |
8230 | PyObject * obj0 = 0 ; | |
8231 | char *kwnames[] = { | |
8232 | (char *) "self", NULL | |
8233 | }; | |
8234 | ||
8235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetFrame",kwnames,&obj0)) goto fail; | |
8236 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, | |
8237 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8238 | { | |
8239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8240 | result = (wxFrame *)((wxLogWindow const *)arg1)->GetFrame(); | |
8241 | ||
8242 | wxPyEndAllowThreads(__tstate); | |
8243 | if (PyErr_Occurred()) SWIG_fail; | |
8244 | } | |
8245 | { | |
8246 | resultobj = wxPyMake_wxObject(result, 0); | |
8247 | } | |
8248 | return resultobj; | |
8249 | fail: | |
8250 | return NULL; | |
8251 | } | |
8252 | ||
8253 | ||
8254 | static PyObject *_wrap_LogWindow_GetOldLog(PyObject *, PyObject *args, PyObject *kwargs) { | |
8255 | PyObject *resultobj; | |
8256 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
8257 | wxLog *result; | |
8258 | PyObject * obj0 = 0 ; | |
8259 | char *kwnames[] = { | |
8260 | (char *) "self", NULL | |
8261 | }; | |
8262 | ||
8263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetOldLog",kwnames,&obj0)) goto fail; | |
8264 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, | |
8265 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8266 | { | |
8267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8268 | result = (wxLog *)((wxLogWindow const *)arg1)->GetOldLog(); | |
8269 | ||
8270 | wxPyEndAllowThreads(__tstate); | |
8271 | if (PyErr_Occurred()) SWIG_fail; | |
8272 | } | |
8273 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); | |
8274 | return resultobj; | |
8275 | fail: | |
8276 | return NULL; | |
8277 | } | |
8278 | ||
8279 | ||
8280 | static PyObject *_wrap_LogWindow_IsPassingMessages(PyObject *, PyObject *args, PyObject *kwargs) { | |
8281 | PyObject *resultobj; | |
8282 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
8283 | bool result; | |
8284 | PyObject * obj0 = 0 ; | |
8285 | char *kwnames[] = { | |
8286 | (char *) "self", NULL | |
8287 | }; | |
8288 | ||
8289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_IsPassingMessages",kwnames,&obj0)) goto fail; | |
8290 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, | |
8291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8292 | { | |
8293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8294 | result = (bool)((wxLogWindow const *)arg1)->IsPassingMessages(); | |
8295 | ||
8296 | wxPyEndAllowThreads(__tstate); | |
8297 | if (PyErr_Occurred()) SWIG_fail; | |
8298 | } | |
8299 | { | |
8300 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8301 | } | |
8302 | return resultobj; | |
8303 | fail: | |
8304 | return NULL; | |
8305 | } | |
8306 | ||
8307 | ||
8308 | static PyObject *_wrap_LogWindow_PassMessages(PyObject *, PyObject *args, PyObject *kwargs) { | |
8309 | PyObject *resultobj; | |
8310 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
8311 | bool arg2 ; | |
8312 | PyObject * obj0 = 0 ; | |
8313 | PyObject * obj1 = 0 ; | |
8314 | char *kwnames[] = { | |
8315 | (char *) "self",(char *) "bDoPass", NULL | |
8316 | }; | |
8317 | ||
8318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogWindow_PassMessages",kwnames,&obj0,&obj1)) goto fail; | |
8319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, | |
8320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8321 | arg2 = (bool)SWIG_As_bool(obj1); | |
8322 | if (PyErr_Occurred()) SWIG_fail; | |
8323 | { | |
8324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8325 | (arg1)->PassMessages(arg2); | |
8326 | ||
8327 | wxPyEndAllowThreads(__tstate); | |
8328 | if (PyErr_Occurred()) SWIG_fail; | |
8329 | } | |
8330 | Py_INCREF(Py_None); resultobj = Py_None; | |
8331 | return resultobj; | |
8332 | fail: | |
8333 | return NULL; | |
8334 | } | |
8335 | ||
8336 | ||
8337 | static PyObject * LogWindow_swigregister(PyObject *, PyObject *args) { | |
8338 | PyObject *obj; | |
8339 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8340 | SWIG_TypeClientData(SWIGTYPE_p_wxLogWindow, obj); | |
8341 | Py_INCREF(obj); | |
8342 | return Py_BuildValue((char *)""); | |
8343 | } | |
8344 | static PyObject *_wrap_new_LogChain(PyObject *, PyObject *args, PyObject *kwargs) { | |
8345 | PyObject *resultobj; | |
8346 | wxLog *arg1 = (wxLog *) 0 ; | |
8347 | wxLogChain *result; | |
8348 | PyObject * obj0 = 0 ; | |
8349 | char *kwnames[] = { | |
8350 | (char *) "logger", NULL | |
8351 | }; | |
8352 | ||
8353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogChain",kwnames,&obj0)) goto fail; | |
8354 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, | |
8355 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8356 | { | |
8357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8358 | result = (wxLogChain *)new wxLogChain(arg1); | |
8359 | ||
8360 | wxPyEndAllowThreads(__tstate); | |
8361 | if (PyErr_Occurred()) SWIG_fail; | |
8362 | } | |
8363 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogChain, 1); | |
8364 | return resultobj; | |
8365 | fail: | |
8366 | return NULL; | |
8367 | } | |
8368 | ||
8369 | ||
8370 | static PyObject *_wrap_LogChain_SetLog(PyObject *, PyObject *args, PyObject *kwargs) { | |
8371 | PyObject *resultobj; | |
8372 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
8373 | wxLog *arg2 = (wxLog *) 0 ; | |
8374 | PyObject * obj0 = 0 ; | |
8375 | PyObject * obj1 = 0 ; | |
8376 | char *kwnames[] = { | |
8377 | (char *) "self",(char *) "logger", NULL | |
8378 | }; | |
8379 | ||
8380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_SetLog",kwnames,&obj0,&obj1)) goto fail; | |
8381 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, | |
8382 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8383 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLog, | |
8384 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8385 | { | |
8386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8387 | (arg1)->SetLog(arg2); | |
8388 | ||
8389 | wxPyEndAllowThreads(__tstate); | |
8390 | if (PyErr_Occurred()) SWIG_fail; | |
8391 | } | |
8392 | Py_INCREF(Py_None); resultobj = Py_None; | |
8393 | return resultobj; | |
8394 | fail: | |
8395 | return NULL; | |
8396 | } | |
8397 | ||
8398 | ||
8399 | static PyObject *_wrap_LogChain_PassMessages(PyObject *, PyObject *args, PyObject *kwargs) { | |
8400 | PyObject *resultobj; | |
8401 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
8402 | bool arg2 ; | |
8403 | PyObject * obj0 = 0 ; | |
8404 | PyObject * obj1 = 0 ; | |
8405 | char *kwnames[] = { | |
8406 | (char *) "self",(char *) "bDoPass", NULL | |
8407 | }; | |
8408 | ||
8409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_PassMessages",kwnames,&obj0,&obj1)) goto fail; | |
8410 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, | |
8411 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8412 | arg2 = (bool)SWIG_As_bool(obj1); | |
8413 | if (PyErr_Occurred()) SWIG_fail; | |
8414 | { | |
8415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8416 | (arg1)->PassMessages(arg2); | |
8417 | ||
8418 | wxPyEndAllowThreads(__tstate); | |
8419 | if (PyErr_Occurred()) SWIG_fail; | |
8420 | } | |
8421 | Py_INCREF(Py_None); resultobj = Py_None; | |
8422 | return resultobj; | |
8423 | fail: | |
8424 | return NULL; | |
8425 | } | |
8426 | ||
8427 | ||
8428 | static PyObject *_wrap_LogChain_IsPassingMessages(PyObject *, PyObject *args, PyObject *kwargs) { | |
8429 | PyObject *resultobj; | |
8430 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
8431 | bool result; | |
8432 | PyObject * obj0 = 0 ; | |
8433 | char *kwnames[] = { | |
8434 | (char *) "self", NULL | |
8435 | }; | |
8436 | ||
8437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_IsPassingMessages",kwnames,&obj0)) goto fail; | |
8438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, | |
8439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8440 | { | |
8441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8442 | result = (bool)(arg1)->IsPassingMessages(); | |
8443 | ||
8444 | wxPyEndAllowThreads(__tstate); | |
8445 | if (PyErr_Occurred()) SWIG_fail; | |
8446 | } | |
8447 | { | |
8448 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8449 | } | |
8450 | return resultobj; | |
8451 | fail: | |
8452 | return NULL; | |
8453 | } | |
8454 | ||
8455 | ||
8456 | static PyObject *_wrap_LogChain_GetOldLog(PyObject *, PyObject *args, PyObject *kwargs) { | |
8457 | PyObject *resultobj; | |
8458 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
8459 | wxLog *result; | |
8460 | PyObject * obj0 = 0 ; | |
8461 | char *kwnames[] = { | |
8462 | (char *) "self", NULL | |
8463 | }; | |
8464 | ||
8465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_GetOldLog",kwnames,&obj0)) goto fail; | |
8466 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, | |
8467 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8468 | { | |
8469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8470 | result = (wxLog *)(arg1)->GetOldLog(); | |
8471 | ||
8472 | wxPyEndAllowThreads(__tstate); | |
8473 | if (PyErr_Occurred()) SWIG_fail; | |
8474 | } | |
8475 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); | |
8476 | return resultobj; | |
8477 | fail: | |
8478 | return NULL; | |
8479 | } | |
8480 | ||
8481 | ||
8482 | static PyObject * LogChain_swigregister(PyObject *, PyObject *args) { | |
8483 | PyObject *obj; | |
8484 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8485 | SWIG_TypeClientData(SWIGTYPE_p_wxLogChain, obj); | |
8486 | Py_INCREF(obj); | |
8487 | return Py_BuildValue((char *)""); | |
8488 | } | |
8489 | static PyObject *_wrap_SysErrorCode(PyObject *, PyObject *args, PyObject *kwargs) { | |
8490 | PyObject *resultobj; | |
8491 | unsigned long result; | |
8492 | char *kwnames[] = { | |
8493 | NULL | |
8494 | }; | |
8495 | ||
8496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SysErrorCode",kwnames)) goto fail; | |
8497 | { | |
8498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8499 | result = (unsigned long)wxSysErrorCode(); | |
8500 | ||
8501 | wxPyEndAllowThreads(__tstate); | |
8502 | if (PyErr_Occurred()) SWIG_fail; | |
8503 | } | |
8504 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); | |
8505 | return resultobj; | |
8506 | fail: | |
8507 | return NULL; | |
8508 | } | |
8509 | ||
8510 | ||
8511 | static PyObject *_wrap_SysErrorMsg(PyObject *, PyObject *args, PyObject *kwargs) { | |
8512 | PyObject *resultobj; | |
8513 | unsigned long arg1 = (unsigned long) 0 ; | |
8514 | wxString result; | |
8515 | PyObject * obj0 = 0 ; | |
8516 | char *kwnames[] = { | |
8517 | (char *) "nErrCode", NULL | |
8518 | }; | |
8519 | ||
8520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SysErrorMsg",kwnames,&obj0)) goto fail; | |
8521 | if (obj0) { | |
8522 | arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0); | |
8523 | if (PyErr_Occurred()) SWIG_fail; | |
8524 | } | |
8525 | { | |
8526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8527 | result = wxSysErrorMsg(arg1); | |
8528 | ||
8529 | wxPyEndAllowThreads(__tstate); | |
8530 | if (PyErr_Occurred()) SWIG_fail; | |
8531 | } | |
8532 | { | |
8533 | #if wxUSE_UNICODE | |
8534 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8535 | #else | |
8536 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8537 | #endif | |
8538 | } | |
8539 | return resultobj; | |
8540 | fail: | |
8541 | return NULL; | |
8542 | } | |
8543 | ||
8544 | ||
8545 | static PyObject *_wrap_LogFatalError(PyObject *, PyObject *args, PyObject *kwargs) { | |
8546 | PyObject *resultobj; | |
8547 | wxString *arg1 = 0 ; | |
8548 | bool temp1 = false ; | |
8549 | PyObject * obj0 = 0 ; | |
8550 | char *kwnames[] = { | |
8551 | (char *) "msg", NULL | |
8552 | }; | |
8553 | ||
8554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogFatalError",kwnames,&obj0)) goto fail; | |
8555 | { | |
8556 | arg1 = wxString_in_helper(obj0); | |
8557 | if (arg1 == NULL) SWIG_fail; | |
8558 | temp1 = true; | |
8559 | } | |
8560 | { | |
8561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8562 | wxLogFatalError((wxString const &)*arg1); | |
8563 | ||
8564 | wxPyEndAllowThreads(__tstate); | |
8565 | if (PyErr_Occurred()) SWIG_fail; | |
8566 | } | |
8567 | Py_INCREF(Py_None); resultobj = Py_None; | |
8568 | { | |
8569 | if (temp1) | |
8570 | delete arg1; | |
8571 | } | |
8572 | return resultobj; | |
8573 | fail: | |
8574 | { | |
8575 | if (temp1) | |
8576 | delete arg1; | |
8577 | } | |
8578 | return NULL; | |
8579 | } | |
8580 | ||
8581 | ||
8582 | static PyObject *_wrap_LogError(PyObject *, PyObject *args, PyObject *kwargs) { | |
8583 | PyObject *resultobj; | |
8584 | wxString *arg1 = 0 ; | |
8585 | bool temp1 = false ; | |
8586 | PyObject * obj0 = 0 ; | |
8587 | char *kwnames[] = { | |
8588 | (char *) "msg", NULL | |
8589 | }; | |
8590 | ||
8591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogError",kwnames,&obj0)) goto fail; | |
8592 | { | |
8593 | arg1 = wxString_in_helper(obj0); | |
8594 | if (arg1 == NULL) SWIG_fail; | |
8595 | temp1 = true; | |
8596 | } | |
8597 | { | |
8598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8599 | wxLogError((wxString const &)*arg1); | |
8600 | ||
8601 | wxPyEndAllowThreads(__tstate); | |
8602 | if (PyErr_Occurred()) SWIG_fail; | |
8603 | } | |
8604 | Py_INCREF(Py_None); resultobj = Py_None; | |
8605 | { | |
8606 | if (temp1) | |
8607 | delete arg1; | |
8608 | } | |
8609 | return resultobj; | |
8610 | fail: | |
8611 | { | |
8612 | if (temp1) | |
8613 | delete arg1; | |
8614 | } | |
8615 | return NULL; | |
8616 | } | |
8617 | ||
8618 | ||
8619 | static PyObject *_wrap_LogWarning(PyObject *, PyObject *args, PyObject *kwargs) { | |
8620 | PyObject *resultobj; | |
8621 | wxString *arg1 = 0 ; | |
8622 | bool temp1 = false ; | |
8623 | PyObject * obj0 = 0 ; | |
8624 | char *kwnames[] = { | |
8625 | (char *) "msg", NULL | |
8626 | }; | |
8627 | ||
8628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWarning",kwnames,&obj0)) goto fail; | |
8629 | { | |
8630 | arg1 = wxString_in_helper(obj0); | |
8631 | if (arg1 == NULL) SWIG_fail; | |
8632 | temp1 = true; | |
8633 | } | |
8634 | { | |
8635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8636 | wxLogWarning((wxString const &)*arg1); | |
8637 | ||
8638 | wxPyEndAllowThreads(__tstate); | |
8639 | if (PyErr_Occurred()) SWIG_fail; | |
8640 | } | |
8641 | Py_INCREF(Py_None); resultobj = Py_None; | |
8642 | { | |
8643 | if (temp1) | |
8644 | delete arg1; | |
8645 | } | |
8646 | return resultobj; | |
8647 | fail: | |
8648 | { | |
8649 | if (temp1) | |
8650 | delete arg1; | |
8651 | } | |
8652 | return NULL; | |
8653 | } | |
8654 | ||
8655 | ||
8656 | static PyObject *_wrap_LogMessage(PyObject *, PyObject *args, PyObject *kwargs) { | |
8657 | PyObject *resultobj; | |
8658 | wxString *arg1 = 0 ; | |
8659 | bool temp1 = false ; | |
8660 | PyObject * obj0 = 0 ; | |
8661 | char *kwnames[] = { | |
8662 | (char *) "msg", NULL | |
8663 | }; | |
8664 | ||
8665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogMessage",kwnames,&obj0)) goto fail; | |
8666 | { | |
8667 | arg1 = wxString_in_helper(obj0); | |
8668 | if (arg1 == NULL) SWIG_fail; | |
8669 | temp1 = true; | |
8670 | } | |
8671 | { | |
8672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8673 | wxLogMessage((wxString const &)*arg1); | |
8674 | ||
8675 | wxPyEndAllowThreads(__tstate); | |
8676 | if (PyErr_Occurred()) SWIG_fail; | |
8677 | } | |
8678 | Py_INCREF(Py_None); resultobj = Py_None; | |
8679 | { | |
8680 | if (temp1) | |
8681 | delete arg1; | |
8682 | } | |
8683 | return resultobj; | |
8684 | fail: | |
8685 | { | |
8686 | if (temp1) | |
8687 | delete arg1; | |
8688 | } | |
8689 | return NULL; | |
8690 | } | |
8691 | ||
8692 | ||
8693 | static PyObject *_wrap_LogInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
8694 | PyObject *resultobj; | |
8695 | wxString *arg1 = 0 ; | |
8696 | bool temp1 = false ; | |
8697 | PyObject * obj0 = 0 ; | |
8698 | char *kwnames[] = { | |
8699 | (char *) "msg", NULL | |
8700 | }; | |
8701 | ||
8702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogInfo",kwnames,&obj0)) goto fail; | |
8703 | { | |
8704 | arg1 = wxString_in_helper(obj0); | |
8705 | if (arg1 == NULL) SWIG_fail; | |
8706 | temp1 = true; | |
8707 | } | |
8708 | { | |
8709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8710 | wxLogInfo((wxString const &)*arg1); | |
8711 | ||
8712 | wxPyEndAllowThreads(__tstate); | |
8713 | if (PyErr_Occurred()) SWIG_fail; | |
8714 | } | |
8715 | Py_INCREF(Py_None); resultobj = Py_None; | |
8716 | { | |
8717 | if (temp1) | |
8718 | delete arg1; | |
8719 | } | |
8720 | return resultobj; | |
8721 | fail: | |
8722 | { | |
8723 | if (temp1) | |
8724 | delete arg1; | |
8725 | } | |
8726 | return NULL; | |
8727 | } | |
8728 | ||
8729 | ||
8730 | static PyObject *_wrap_LogDebug(PyObject *, PyObject *args, PyObject *kwargs) { | |
8731 | PyObject *resultobj; | |
8732 | wxString *arg1 = 0 ; | |
8733 | bool temp1 = false ; | |
8734 | PyObject * obj0 = 0 ; | |
8735 | char *kwnames[] = { | |
8736 | (char *) "msg", NULL | |
8737 | }; | |
8738 | ||
8739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogDebug",kwnames,&obj0)) goto fail; | |
8740 | { | |
8741 | arg1 = wxString_in_helper(obj0); | |
8742 | if (arg1 == NULL) SWIG_fail; | |
8743 | temp1 = true; | |
8744 | } | |
8745 | { | |
8746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8747 | wxLogDebug((wxString const &)*arg1); | |
8748 | ||
8749 | wxPyEndAllowThreads(__tstate); | |
8750 | if (PyErr_Occurred()) SWIG_fail; | |
8751 | } | |
8752 | Py_INCREF(Py_None); resultobj = Py_None; | |
8753 | { | |
8754 | if (temp1) | |
8755 | delete arg1; | |
8756 | } | |
8757 | return resultobj; | |
8758 | fail: | |
8759 | { | |
8760 | if (temp1) | |
8761 | delete arg1; | |
8762 | } | |
8763 | return NULL; | |
8764 | } | |
8765 | ||
8766 | ||
8767 | static PyObject *_wrap_LogVerbose(PyObject *, PyObject *args, PyObject *kwargs) { | |
8768 | PyObject *resultobj; | |
8769 | wxString *arg1 = 0 ; | |
8770 | bool temp1 = false ; | |
8771 | PyObject * obj0 = 0 ; | |
8772 | char *kwnames[] = { | |
8773 | (char *) "msg", NULL | |
8774 | }; | |
8775 | ||
8776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogVerbose",kwnames,&obj0)) goto fail; | |
8777 | { | |
8778 | arg1 = wxString_in_helper(obj0); | |
8779 | if (arg1 == NULL) SWIG_fail; | |
8780 | temp1 = true; | |
8781 | } | |
8782 | { | |
8783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8784 | wxLogVerbose((wxString const &)*arg1); | |
8785 | ||
8786 | wxPyEndAllowThreads(__tstate); | |
8787 | if (PyErr_Occurred()) SWIG_fail; | |
8788 | } | |
8789 | Py_INCREF(Py_None); resultobj = Py_None; | |
8790 | { | |
8791 | if (temp1) | |
8792 | delete arg1; | |
8793 | } | |
8794 | return resultobj; | |
8795 | fail: | |
8796 | { | |
8797 | if (temp1) | |
8798 | delete arg1; | |
8799 | } | |
8800 | return NULL; | |
8801 | } | |
8802 | ||
8803 | ||
8804 | static PyObject *_wrap_LogStatus(PyObject *, PyObject *args, PyObject *kwargs) { | |
8805 | PyObject *resultobj; | |
8806 | wxString *arg1 = 0 ; | |
8807 | bool temp1 = false ; | |
8808 | PyObject * obj0 = 0 ; | |
8809 | char *kwnames[] = { | |
8810 | (char *) "msg", NULL | |
8811 | }; | |
8812 | ||
8813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogStatus",kwnames,&obj0)) goto fail; | |
8814 | { | |
8815 | arg1 = wxString_in_helper(obj0); | |
8816 | if (arg1 == NULL) SWIG_fail; | |
8817 | temp1 = true; | |
8818 | } | |
8819 | { | |
8820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8821 | wxLogStatus((wxString const &)*arg1); | |
8822 | ||
8823 | wxPyEndAllowThreads(__tstate); | |
8824 | if (PyErr_Occurred()) SWIG_fail; | |
8825 | } | |
8826 | Py_INCREF(Py_None); resultobj = Py_None; | |
8827 | { | |
8828 | if (temp1) | |
8829 | delete arg1; | |
8830 | } | |
8831 | return resultobj; | |
8832 | fail: | |
8833 | { | |
8834 | if (temp1) | |
8835 | delete arg1; | |
8836 | } | |
8837 | return NULL; | |
8838 | } | |
8839 | ||
8840 | ||
8841 | static PyObject *_wrap_LogStatusFrame(PyObject *, PyObject *args, PyObject *kwargs) { | |
8842 | PyObject *resultobj; | |
8843 | wxFrame *arg1 = (wxFrame *) 0 ; | |
8844 | wxString *arg2 = 0 ; | |
8845 | bool temp2 = false ; | |
8846 | PyObject * obj0 = 0 ; | |
8847 | PyObject * obj1 = 0 ; | |
8848 | char *kwnames[] = { | |
8849 | (char *) "pFrame",(char *) "msg", NULL | |
8850 | }; | |
8851 | ||
8852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogStatusFrame",kwnames,&obj0,&obj1)) goto fail; | |
8853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
8854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8855 | { | |
8856 | arg2 = wxString_in_helper(obj1); | |
8857 | if (arg2 == NULL) SWIG_fail; | |
8858 | temp2 = true; | |
8859 | } | |
8860 | { | |
8861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8862 | wxLogStatus(arg1,(wxString const &)*arg2); | |
8863 | ||
8864 | wxPyEndAllowThreads(__tstate); | |
8865 | if (PyErr_Occurred()) SWIG_fail; | |
8866 | } | |
8867 | Py_INCREF(Py_None); resultobj = Py_None; | |
8868 | { | |
8869 | if (temp2) | |
8870 | delete arg2; | |
8871 | } | |
8872 | return resultobj; | |
8873 | fail: | |
8874 | { | |
8875 | if (temp2) | |
8876 | delete arg2; | |
8877 | } | |
8878 | return NULL; | |
8879 | } | |
8880 | ||
8881 | ||
8882 | static PyObject *_wrap_LogSysError(PyObject *, PyObject *args, PyObject *kwargs) { | |
8883 | PyObject *resultobj; | |
8884 | wxString *arg1 = 0 ; | |
8885 | bool temp1 = false ; | |
8886 | PyObject * obj0 = 0 ; | |
8887 | char *kwnames[] = { | |
8888 | (char *) "msg", NULL | |
8889 | }; | |
8890 | ||
8891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogSysError",kwnames,&obj0)) goto fail; | |
8892 | { | |
8893 | arg1 = wxString_in_helper(obj0); | |
8894 | if (arg1 == NULL) SWIG_fail; | |
8895 | temp1 = true; | |
8896 | } | |
8897 | { | |
8898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8899 | wxLogSysError((wxString const &)*arg1); | |
8900 | ||
8901 | wxPyEndAllowThreads(__tstate); | |
8902 | if (PyErr_Occurred()) SWIG_fail; | |
8903 | } | |
8904 | Py_INCREF(Py_None); resultobj = Py_None; | |
8905 | { | |
8906 | if (temp1) | |
8907 | delete arg1; | |
8908 | } | |
8909 | return resultobj; | |
8910 | fail: | |
8911 | { | |
8912 | if (temp1) | |
8913 | delete arg1; | |
8914 | } | |
8915 | return NULL; | |
8916 | } | |
8917 | ||
8918 | ||
8919 | static PyObject *_wrap_LogTrace__SWIG_0(PyObject *, PyObject *args) { | |
8920 | PyObject *resultobj; | |
8921 | unsigned long arg1 ; | |
8922 | wxString *arg2 = 0 ; | |
8923 | bool temp2 = false ; | |
8924 | PyObject * obj0 = 0 ; | |
8925 | PyObject * obj1 = 0 ; | |
8926 | ||
8927 | if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail; | |
8928 | arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0); | |
8929 | if (PyErr_Occurred()) SWIG_fail; | |
8930 | { | |
8931 | arg2 = wxString_in_helper(obj1); | |
8932 | if (arg2 == NULL) SWIG_fail; | |
8933 | temp2 = true; | |
8934 | } | |
8935 | { | |
8936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8937 | wxLogTrace(arg1,(wxString const &)*arg2); | |
8938 | ||
8939 | wxPyEndAllowThreads(__tstate); | |
8940 | if (PyErr_Occurred()) SWIG_fail; | |
8941 | } | |
8942 | Py_INCREF(Py_None); resultobj = Py_None; | |
8943 | { | |
8944 | if (temp2) | |
8945 | delete arg2; | |
8946 | } | |
8947 | return resultobj; | |
8948 | fail: | |
8949 | { | |
8950 | if (temp2) | |
8951 | delete arg2; | |
8952 | } | |
8953 | return NULL; | |
8954 | } | |
8955 | ||
8956 | ||
8957 | static PyObject *_wrap_LogTrace__SWIG_1(PyObject *, PyObject *args) { | |
8958 | PyObject *resultobj; | |
8959 | wxString *arg1 = 0 ; | |
8960 | wxString *arg2 = 0 ; | |
8961 | bool temp1 = false ; | |
8962 | bool temp2 = false ; | |
8963 | PyObject * obj0 = 0 ; | |
8964 | PyObject * obj1 = 0 ; | |
8965 | ||
8966 | if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail; | |
8967 | { | |
8968 | arg1 = wxString_in_helper(obj0); | |
8969 | if (arg1 == NULL) SWIG_fail; | |
8970 | temp1 = true; | |
8971 | } | |
8972 | { | |
8973 | arg2 = wxString_in_helper(obj1); | |
8974 | if (arg2 == NULL) SWIG_fail; | |
8975 | temp2 = true; | |
8976 | } | |
8977 | { | |
8978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8979 | wxLogTrace((wxString const &)*arg1,(wxString const &)*arg2); | |
8980 | ||
8981 | wxPyEndAllowThreads(__tstate); | |
8982 | if (PyErr_Occurred()) SWIG_fail; | |
8983 | } | |
8984 | Py_INCREF(Py_None); resultobj = Py_None; | |
8985 | { | |
8986 | if (temp1) | |
8987 | delete arg1; | |
8988 | } | |
8989 | { | |
8990 | if (temp2) | |
8991 | delete arg2; | |
8992 | } | |
8993 | return resultobj; | |
8994 | fail: | |
8995 | { | |
8996 | if (temp1) | |
8997 | delete arg1; | |
8998 | } | |
8999 | { | |
9000 | if (temp2) | |
9001 | delete arg2; | |
9002 | } | |
9003 | return NULL; | |
9004 | } | |
9005 | ||
9006 | ||
9007 | static PyObject *_wrap_LogTrace(PyObject *self, PyObject *args) { | |
9008 | int argc; | |
9009 | PyObject *argv[3]; | |
9010 | int ii; | |
9011 | ||
9012 | argc = PyObject_Length(args); | |
9013 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
9014 | argv[ii] = PyTuple_GetItem(args,ii); | |
9015 | } | |
9016 | if (argc == 2) { | |
9017 | int _v; | |
9018 | { | |
9019 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); | |
9020 | } | |
9021 | if (_v) { | |
9022 | { | |
9023 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); | |
9024 | } | |
9025 | if (_v) { | |
9026 | return _wrap_LogTrace__SWIG_1(self,args); | |
9027 | } | |
9028 | } | |
9029 | } | |
9030 | if (argc == 2) { | |
9031 | int _v; | |
9032 | _v = SWIG_Check_unsigned_SS_long(argv[0]); | |
9033 | if (_v) { | |
9034 | { | |
9035 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); | |
9036 | } | |
9037 | if (_v) { | |
9038 | return _wrap_LogTrace__SWIG_0(self,args); | |
9039 | } | |
9040 | } | |
9041 | } | |
9042 | ||
9043 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'LogTrace'"); | |
9044 | return NULL; | |
9045 | } | |
9046 | ||
9047 | ||
9048 | static PyObject *_wrap_LogGeneric(PyObject *, PyObject *args, PyObject *kwargs) { | |
9049 | PyObject *resultobj; | |
9050 | unsigned long arg1 ; | |
9051 | wxString *arg2 = 0 ; | |
9052 | bool temp2 = false ; | |
9053 | PyObject * obj0 = 0 ; | |
9054 | PyObject * obj1 = 0 ; | |
9055 | char *kwnames[] = { | |
9056 | (char *) "level",(char *) "msg", NULL | |
9057 | }; | |
9058 | ||
9059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogGeneric",kwnames,&obj0,&obj1)) goto fail; | |
9060 | arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0); | |
9061 | if (PyErr_Occurred()) SWIG_fail; | |
9062 | { | |
9063 | arg2 = wxString_in_helper(obj1); | |
9064 | if (arg2 == NULL) SWIG_fail; | |
9065 | temp2 = true; | |
9066 | } | |
9067 | { | |
9068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9069 | wxLogGeneric(arg1,(wxString const &)*arg2); | |
9070 | ||
9071 | wxPyEndAllowThreads(__tstate); | |
9072 | if (PyErr_Occurred()) SWIG_fail; | |
9073 | } | |
9074 | Py_INCREF(Py_None); resultobj = Py_None; | |
9075 | { | |
9076 | if (temp2) | |
9077 | delete arg2; | |
9078 | } | |
9079 | return resultobj; | |
9080 | fail: | |
9081 | { | |
9082 | if (temp2) | |
9083 | delete arg2; | |
9084 | } | |
9085 | return NULL; | |
9086 | } | |
9087 | ||
9088 | ||
9089 | static PyObject *_wrap_SafeShowMessage(PyObject *, PyObject *args, PyObject *kwargs) { | |
9090 | PyObject *resultobj; | |
9091 | wxString *arg1 = 0 ; | |
9092 | wxString *arg2 = 0 ; | |
9093 | bool temp1 = false ; | |
9094 | bool temp2 = false ; | |
9095 | PyObject * obj0 = 0 ; | |
9096 | PyObject * obj1 = 0 ; | |
9097 | char *kwnames[] = { | |
9098 | (char *) "title",(char *) "text", NULL | |
9099 | }; | |
9100 | ||
9101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SafeShowMessage",kwnames,&obj0,&obj1)) goto fail; | |
9102 | { | |
9103 | arg1 = wxString_in_helper(obj0); | |
9104 | if (arg1 == NULL) SWIG_fail; | |
9105 | temp1 = true; | |
9106 | } | |
9107 | { | |
9108 | arg2 = wxString_in_helper(obj1); | |
9109 | if (arg2 == NULL) SWIG_fail; | |
9110 | temp2 = true; | |
9111 | } | |
9112 | { | |
9113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9114 | wxSafeShowMessage((wxString const &)*arg1,(wxString const &)*arg2); | |
9115 | ||
9116 | wxPyEndAllowThreads(__tstate); | |
9117 | if (PyErr_Occurred()) SWIG_fail; | |
9118 | } | |
9119 | Py_INCREF(Py_None); resultobj = Py_None; | |
9120 | { | |
9121 | if (temp1) | |
9122 | delete arg1; | |
9123 | } | |
9124 | { | |
9125 | if (temp2) | |
9126 | delete arg2; | |
9127 | } | |
9128 | return resultobj; | |
9129 | fail: | |
9130 | { | |
9131 | if (temp1) | |
9132 | delete arg1; | |
9133 | } | |
9134 | { | |
9135 | if (temp2) | |
9136 | delete arg2; | |
9137 | } | |
9138 | return NULL; | |
9139 | } | |
9140 | ||
9141 | ||
9142 | static PyObject *_wrap_new_LogNull(PyObject *, PyObject *args, PyObject *kwargs) { | |
9143 | PyObject *resultobj; | |
9144 | wxLogNull *result; | |
9145 | char *kwnames[] = { | |
9146 | NULL | |
9147 | }; | |
9148 | ||
9149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogNull",kwnames)) goto fail; | |
9150 | { | |
9151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9152 | result = (wxLogNull *)new wxLogNull(); | |
9153 | ||
9154 | wxPyEndAllowThreads(__tstate); | |
9155 | if (PyErr_Occurred()) SWIG_fail; | |
9156 | } | |
9157 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogNull, 1); | |
9158 | return resultobj; | |
9159 | fail: | |
9160 | return NULL; | |
9161 | } | |
9162 | ||
9163 | ||
9164 | static PyObject *_wrap_delete_LogNull(PyObject *, PyObject *args, PyObject *kwargs) { | |
9165 | PyObject *resultobj; | |
9166 | wxLogNull *arg1 = (wxLogNull *) 0 ; | |
9167 | PyObject * obj0 = 0 ; | |
9168 | char *kwnames[] = { | |
9169 | (char *) "self", NULL | |
9170 | }; | |
9171 | ||
9172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LogNull",kwnames,&obj0)) goto fail; | |
9173 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogNull, | |
9174 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9175 | { | |
9176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9177 | delete arg1; | |
9178 | ||
9179 | wxPyEndAllowThreads(__tstate); | |
9180 | if (PyErr_Occurred()) SWIG_fail; | |
9181 | } | |
9182 | Py_INCREF(Py_None); resultobj = Py_None; | |
9183 | return resultobj; | |
9184 | fail: | |
9185 | return NULL; | |
9186 | } | |
9187 | ||
9188 | ||
9189 | static PyObject * LogNull_swigregister(PyObject *, PyObject *args) { | |
9190 | PyObject *obj; | |
9191 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9192 | SWIG_TypeClientData(SWIGTYPE_p_wxLogNull, obj); | |
9193 | Py_INCREF(obj); | |
9194 | return Py_BuildValue((char *)""); | |
9195 | } | |
9196 | static PyObject *_wrap_new_PyLog(PyObject *, PyObject *args, PyObject *kwargs) { | |
9197 | PyObject *resultobj; | |
9198 | wxPyLog *result; | |
9199 | char *kwnames[] = { | |
9200 | NULL | |
9201 | }; | |
9202 | ||
9203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLog",kwnames)) goto fail; | |
9204 | { | |
9205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9206 | result = (wxPyLog *)new wxPyLog(); | |
9207 | ||
9208 | wxPyEndAllowThreads(__tstate); | |
9209 | if (PyErr_Occurred()) SWIG_fail; | |
9210 | } | |
9211 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyLog, 1); | |
9212 | return resultobj; | |
9213 | fail: | |
9214 | return NULL; | |
9215 | } | |
9216 | ||
9217 | ||
9218 | static PyObject *_wrap_PyLog__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
9219 | PyObject *resultobj; | |
9220 | wxPyLog *arg1 = (wxPyLog *) 0 ; | |
9221 | PyObject *arg2 = (PyObject *) 0 ; | |
9222 | PyObject *arg3 = (PyObject *) 0 ; | |
9223 | PyObject * obj0 = 0 ; | |
9224 | PyObject * obj1 = 0 ; | |
9225 | PyObject * obj2 = 0 ; | |
9226 | char *kwnames[] = { | |
9227 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
9228 | }; | |
9229 | ||
9230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLog__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9231 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLog, | |
9232 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9233 | arg2 = obj1; | |
9234 | arg3 = obj2; | |
9235 | { | |
9236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9237 | (arg1)->_setCallbackInfo(arg2,arg3); | |
9238 | ||
9239 | wxPyEndAllowThreads(__tstate); | |
9240 | if (PyErr_Occurred()) SWIG_fail; | |
9241 | } | |
9242 | Py_INCREF(Py_None); resultobj = Py_None; | |
9243 | return resultobj; | |
9244 | fail: | |
9245 | return NULL; | |
9246 | } | |
9247 | ||
9248 | ||
9249 | static PyObject * PyLog_swigregister(PyObject *, PyObject *args) { | |
9250 | PyObject *obj; | |
9251 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9252 | SWIG_TypeClientData(SWIGTYPE_p_wxPyLog, obj); | |
9253 | Py_INCREF(obj); | |
9254 | return Py_BuildValue((char *)""); | |
9255 | } | |
9256 | static PyObject *_wrap_Process_Kill(PyObject *, PyObject *args, PyObject *kwargs) { | |
9257 | PyObject *resultobj; | |
9258 | int arg1 ; | |
9259 | int arg2 = (int) wxSIGTERM ; | |
9260 | int result; | |
9261 | PyObject * obj0 = 0 ; | |
9262 | PyObject * obj1 = 0 ; | |
9263 | char *kwnames[] = { | |
9264 | (char *) "pid",(char *) "sig", NULL | |
9265 | }; | |
9266 | ||
9267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Kill",kwnames,&obj0,&obj1)) goto fail; | |
9268 | arg1 = (int)SWIG_As_int(obj0); | |
9269 | if (PyErr_Occurred()) SWIG_fail; | |
9270 | if (obj1) { | |
9271 | arg2 = (int)SWIG_As_int(obj1); | |
9272 | if (PyErr_Occurred()) SWIG_fail; | |
9273 | } | |
9274 | { | |
9275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9276 | result = (int)wxPyProcess::Kill(arg1,(wxSignal )arg2); | |
9277 | ||
9278 | wxPyEndAllowThreads(__tstate); | |
9279 | if (PyErr_Occurred()) SWIG_fail; | |
9280 | } | |
9281 | resultobj = SWIG_From_int((int)result); | |
9282 | return resultobj; | |
9283 | fail: | |
9284 | return NULL; | |
9285 | } | |
9286 | ||
9287 | ||
9288 | static PyObject *_wrap_Process_Exists(PyObject *, PyObject *args, PyObject *kwargs) { | |
9289 | PyObject *resultobj; | |
9290 | int arg1 ; | |
9291 | bool result; | |
9292 | PyObject * obj0 = 0 ; | |
9293 | char *kwnames[] = { | |
9294 | (char *) "pid", NULL | |
9295 | }; | |
9296 | ||
9297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Exists",kwnames,&obj0)) goto fail; | |
9298 | arg1 = (int)SWIG_As_int(obj0); | |
9299 | if (PyErr_Occurred()) SWIG_fail; | |
9300 | { | |
9301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9302 | result = (bool)wxPyProcess::Exists(arg1); | |
9303 | ||
9304 | wxPyEndAllowThreads(__tstate); | |
9305 | if (PyErr_Occurred()) SWIG_fail; | |
9306 | } | |
9307 | { | |
9308 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9309 | } | |
9310 | return resultobj; | |
9311 | fail: | |
9312 | return NULL; | |
9313 | } | |
9314 | ||
9315 | ||
9316 | static PyObject *_wrap_Process_Open(PyObject *, PyObject *args, PyObject *kwargs) { | |
9317 | PyObject *resultobj; | |
9318 | wxString *arg1 = 0 ; | |
9319 | int arg2 = (int) wxEXEC_ASYNC ; | |
9320 | wxPyProcess *result; | |
9321 | bool temp1 = false ; | |
9322 | PyObject * obj0 = 0 ; | |
9323 | PyObject * obj1 = 0 ; | |
9324 | char *kwnames[] = { | |
9325 | (char *) "cmd",(char *) "flags", NULL | |
9326 | }; | |
9327 | ||
9328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Open",kwnames,&obj0,&obj1)) goto fail; | |
9329 | { | |
9330 | arg1 = wxString_in_helper(obj0); | |
9331 | if (arg1 == NULL) SWIG_fail; | |
9332 | temp1 = true; | |
9333 | } | |
9334 | if (obj1) { | |
9335 | arg2 = (int)SWIG_As_int(obj1); | |
9336 | if (PyErr_Occurred()) SWIG_fail; | |
9337 | } | |
9338 | { | |
9339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9340 | result = (wxPyProcess *)wxPyProcess::Open((wxString const &)*arg1,arg2); | |
9341 | ||
9342 | wxPyEndAllowThreads(__tstate); | |
9343 | if (PyErr_Occurred()) SWIG_fail; | |
9344 | } | |
9345 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 0); | |
9346 | { | |
9347 | if (temp1) | |
9348 | delete arg1; | |
9349 | } | |
9350 | return resultobj; | |
9351 | fail: | |
9352 | { | |
9353 | if (temp1) | |
9354 | delete arg1; | |
9355 | } | |
9356 | return NULL; | |
9357 | } | |
9358 | ||
9359 | ||
9360 | static PyObject *_wrap_new_Process(PyObject *, PyObject *args, PyObject *kwargs) { | |
9361 | PyObject *resultobj; | |
9362 | wxEvtHandler *arg1 = (wxEvtHandler *) NULL ; | |
9363 | int arg2 = (int) -1 ; | |
9364 | wxPyProcess *result; | |
9365 | PyObject * obj0 = 0 ; | |
9366 | PyObject * obj1 = 0 ; | |
9367 | char *kwnames[] = { | |
9368 | (char *) "parent",(char *) "id", NULL | |
9369 | }; | |
9370 | ||
9371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Process",kwnames,&obj0,&obj1)) goto fail; | |
9372 | if (obj0) { | |
9373 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
9374 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9375 | } | |
9376 | if (obj1) { | |
9377 | arg2 = (int)SWIG_As_int(obj1); | |
9378 | if (PyErr_Occurred()) SWIG_fail; | |
9379 | } | |
9380 | { | |
9381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9382 | result = (wxPyProcess *)new wxPyProcess(arg1,arg2); | |
9383 | ||
9384 | wxPyEndAllowThreads(__tstate); | |
9385 | if (PyErr_Occurred()) SWIG_fail; | |
9386 | } | |
9387 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 1); | |
9388 | return resultobj; | |
9389 | fail: | |
9390 | return NULL; | |
9391 | } | |
9392 | ||
9393 | ||
9394 | static PyObject *_wrap_Process__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
9395 | PyObject *resultobj; | |
9396 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9397 | PyObject *arg2 = (PyObject *) 0 ; | |
9398 | PyObject *arg3 = (PyObject *) 0 ; | |
9399 | PyObject * obj0 = 0 ; | |
9400 | PyObject * obj1 = 0 ; | |
9401 | PyObject * obj2 = 0 ; | |
9402 | char *kwnames[] = { | |
9403 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
9404 | }; | |
9405 | ||
9406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9407 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9408 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9409 | arg2 = obj1; | |
9410 | arg3 = obj2; | |
9411 | { | |
9412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9413 | (arg1)->_setCallbackInfo(arg2,arg3); | |
9414 | ||
9415 | wxPyEndAllowThreads(__tstate); | |
9416 | if (PyErr_Occurred()) SWIG_fail; | |
9417 | } | |
9418 | Py_INCREF(Py_None); resultobj = Py_None; | |
9419 | return resultobj; | |
9420 | fail: | |
9421 | return NULL; | |
9422 | } | |
9423 | ||
9424 | ||
9425 | static PyObject *_wrap_Process_base_OnTerminate(PyObject *, PyObject *args, PyObject *kwargs) { | |
9426 | PyObject *resultobj; | |
9427 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9428 | int arg2 ; | |
9429 | int arg3 ; | |
9430 | PyObject * obj0 = 0 ; | |
9431 | PyObject * obj1 = 0 ; | |
9432 | PyObject * obj2 = 0 ; | |
9433 | char *kwnames[] = { | |
9434 | (char *) "self",(char *) "pid",(char *) "status", NULL | |
9435 | }; | |
9436 | ||
9437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process_base_OnTerminate",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9440 | arg2 = (int)SWIG_As_int(obj1); | |
9441 | if (PyErr_Occurred()) SWIG_fail; | |
9442 | arg3 = (int)SWIG_As_int(obj2); | |
9443 | if (PyErr_Occurred()) SWIG_fail; | |
9444 | { | |
9445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9446 | (arg1)->base_OnTerminate(arg2,arg3); | |
9447 | ||
9448 | wxPyEndAllowThreads(__tstate); | |
9449 | if (PyErr_Occurred()) SWIG_fail; | |
9450 | } | |
9451 | Py_INCREF(Py_None); resultobj = Py_None; | |
9452 | return resultobj; | |
9453 | fail: | |
9454 | return NULL; | |
9455 | } | |
9456 | ||
9457 | ||
9458 | static PyObject *_wrap_Process_Redirect(PyObject *, PyObject *args, PyObject *kwargs) { | |
9459 | PyObject *resultobj; | |
9460 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9461 | PyObject * obj0 = 0 ; | |
9462 | char *kwnames[] = { | |
9463 | (char *) "self", NULL | |
9464 | }; | |
9465 | ||
9466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Redirect",kwnames,&obj0)) goto fail; | |
9467 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9469 | { | |
9470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9471 | (arg1)->Redirect(); | |
9472 | ||
9473 | wxPyEndAllowThreads(__tstate); | |
9474 | if (PyErr_Occurred()) SWIG_fail; | |
9475 | } | |
9476 | Py_INCREF(Py_None); resultobj = Py_None; | |
9477 | return resultobj; | |
9478 | fail: | |
9479 | return NULL; | |
9480 | } | |
9481 | ||
9482 | ||
9483 | static PyObject *_wrap_Process_IsRedirected(PyObject *, PyObject *args, PyObject *kwargs) { | |
9484 | PyObject *resultobj; | |
9485 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9486 | bool result; | |
9487 | PyObject * obj0 = 0 ; | |
9488 | char *kwnames[] = { | |
9489 | (char *) "self", NULL | |
9490 | }; | |
9491 | ||
9492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsRedirected",kwnames,&obj0)) goto fail; | |
9493 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9494 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9495 | { | |
9496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9497 | result = (bool)(arg1)->IsRedirected(); | |
9498 | ||
9499 | wxPyEndAllowThreads(__tstate); | |
9500 | if (PyErr_Occurred()) SWIG_fail; | |
9501 | } | |
9502 | { | |
9503 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9504 | } | |
9505 | return resultobj; | |
9506 | fail: | |
9507 | return NULL; | |
9508 | } | |
9509 | ||
9510 | ||
9511 | static PyObject *_wrap_Process_Detach(PyObject *, PyObject *args, PyObject *kwargs) { | |
9512 | PyObject *resultobj; | |
9513 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9514 | PyObject * obj0 = 0 ; | |
9515 | char *kwnames[] = { | |
9516 | (char *) "self", NULL | |
9517 | }; | |
9518 | ||
9519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Detach",kwnames,&obj0)) goto fail; | |
9520 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9522 | { | |
9523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9524 | (arg1)->Detach(); | |
9525 | ||
9526 | wxPyEndAllowThreads(__tstate); | |
9527 | if (PyErr_Occurred()) SWIG_fail; | |
9528 | } | |
9529 | Py_INCREF(Py_None); resultobj = Py_None; | |
9530 | return resultobj; | |
9531 | fail: | |
9532 | return NULL; | |
9533 | } | |
9534 | ||
9535 | ||
9536 | static PyObject *_wrap_Process_GetInputStream(PyObject *, PyObject *args, PyObject *kwargs) { | |
9537 | PyObject *resultobj; | |
9538 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9539 | wxInputStream *result; | |
9540 | PyObject * obj0 = 0 ; | |
9541 | char *kwnames[] = { | |
9542 | (char *) "self", NULL | |
9543 | }; | |
9544 | ||
9545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetInputStream",kwnames,&obj0)) goto fail; | |
9546 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9547 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9548 | { | |
9549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9550 | result = (wxInputStream *)(arg1)->GetInputStream(); | |
9551 | ||
9552 | wxPyEndAllowThreads(__tstate); | |
9553 | if (PyErr_Occurred()) SWIG_fail; | |
9554 | } | |
9555 | { | |
9556 | wxPyInputStream * _ptr = NULL; | |
9557 | ||
9558 | if (result) { | |
9559 | _ptr = new wxPyInputStream(result); | |
9560 | } | |
9561 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), 0); | |
9562 | } | |
9563 | return resultobj; | |
9564 | fail: | |
9565 | return NULL; | |
9566 | } | |
9567 | ||
9568 | ||
9569 | static PyObject *_wrap_Process_GetErrorStream(PyObject *, PyObject *args, PyObject *kwargs) { | |
9570 | PyObject *resultobj; | |
9571 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9572 | wxInputStream *result; | |
9573 | PyObject * obj0 = 0 ; | |
9574 | char *kwnames[] = { | |
9575 | (char *) "self", NULL | |
9576 | }; | |
9577 | ||
9578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetErrorStream",kwnames,&obj0)) goto fail; | |
9579 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9580 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9581 | { | |
9582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9583 | result = (wxInputStream *)(arg1)->GetErrorStream(); | |
9584 | ||
9585 | wxPyEndAllowThreads(__tstate); | |
9586 | if (PyErr_Occurred()) SWIG_fail; | |
9587 | } | |
9588 | { | |
9589 | wxPyInputStream * _ptr = NULL; | |
9590 | ||
9591 | if (result) { | |
9592 | _ptr = new wxPyInputStream(result); | |
9593 | } | |
9594 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), 0); | |
9595 | } | |
9596 | return resultobj; | |
9597 | fail: | |
9598 | return NULL; | |
9599 | } | |
9600 | ||
9601 | ||
9602 | static PyObject *_wrap_Process_GetOutputStream(PyObject *, PyObject *args, PyObject *kwargs) { | |
9603 | PyObject *resultobj; | |
9604 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9605 | wxOutputStream *result; | |
9606 | PyObject * obj0 = 0 ; | |
9607 | char *kwnames[] = { | |
9608 | (char *) "self", NULL | |
9609 | }; | |
9610 | ||
9611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetOutputStream",kwnames,&obj0)) goto fail; | |
9612 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9613 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9614 | { | |
9615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9616 | result = (wxOutputStream *)(arg1)->GetOutputStream(); | |
9617 | ||
9618 | wxPyEndAllowThreads(__tstate); | |
9619 | if (PyErr_Occurred()) SWIG_fail; | |
9620 | } | |
9621 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxOutputStream, 0); | |
9622 | return resultobj; | |
9623 | fail: | |
9624 | return NULL; | |
9625 | } | |
9626 | ||
9627 | ||
9628 | static PyObject *_wrap_Process_CloseOutput(PyObject *, PyObject *args, PyObject *kwargs) { | |
9629 | PyObject *resultobj; | |
9630 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9631 | PyObject * obj0 = 0 ; | |
9632 | char *kwnames[] = { | |
9633 | (char *) "self", NULL | |
9634 | }; | |
9635 | ||
9636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_CloseOutput",kwnames,&obj0)) goto fail; | |
9637 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9638 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9639 | { | |
9640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9641 | (arg1)->CloseOutput(); | |
9642 | ||
9643 | wxPyEndAllowThreads(__tstate); | |
9644 | if (PyErr_Occurred()) SWIG_fail; | |
9645 | } | |
9646 | Py_INCREF(Py_None); resultobj = Py_None; | |
9647 | return resultobj; | |
9648 | fail: | |
9649 | return NULL; | |
9650 | } | |
9651 | ||
9652 | ||
9653 | static PyObject *_wrap_Process_IsInputOpened(PyObject *, PyObject *args, PyObject *kwargs) { | |
9654 | PyObject *resultobj; | |
9655 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9656 | bool result; | |
9657 | PyObject * obj0 = 0 ; | |
9658 | char *kwnames[] = { | |
9659 | (char *) "self", NULL | |
9660 | }; | |
9661 | ||
9662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputOpened",kwnames,&obj0)) goto fail; | |
9663 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9665 | { | |
9666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9667 | result = (bool)((wxPyProcess const *)arg1)->IsInputOpened(); | |
9668 | ||
9669 | wxPyEndAllowThreads(__tstate); | |
9670 | if (PyErr_Occurred()) SWIG_fail; | |
9671 | } | |
9672 | { | |
9673 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9674 | } | |
9675 | return resultobj; | |
9676 | fail: | |
9677 | return NULL; | |
9678 | } | |
9679 | ||
9680 | ||
9681 | static PyObject *_wrap_Process_IsInputAvailable(PyObject *, PyObject *args, PyObject *kwargs) { | |
9682 | PyObject *resultobj; | |
9683 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9684 | bool result; | |
9685 | PyObject * obj0 = 0 ; | |
9686 | char *kwnames[] = { | |
9687 | (char *) "self", NULL | |
9688 | }; | |
9689 | ||
9690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputAvailable",kwnames,&obj0)) goto fail; | |
9691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9693 | { | |
9694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9695 | result = (bool)((wxPyProcess const *)arg1)->IsInputAvailable(); | |
9696 | ||
9697 | wxPyEndAllowThreads(__tstate); | |
9698 | if (PyErr_Occurred()) SWIG_fail; | |
9699 | } | |
9700 | { | |
9701 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9702 | } | |
9703 | return resultobj; | |
9704 | fail: | |
9705 | return NULL; | |
9706 | } | |
9707 | ||
9708 | ||
9709 | static PyObject *_wrap_Process_IsErrorAvailable(PyObject *, PyObject *args, PyObject *kwargs) { | |
9710 | PyObject *resultobj; | |
9711 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9712 | bool result; | |
9713 | PyObject * obj0 = 0 ; | |
9714 | char *kwnames[] = { | |
9715 | (char *) "self", NULL | |
9716 | }; | |
9717 | ||
9718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsErrorAvailable",kwnames,&obj0)) goto fail; | |
9719 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9720 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9721 | { | |
9722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9723 | result = (bool)((wxPyProcess const *)arg1)->IsErrorAvailable(); | |
9724 | ||
9725 | wxPyEndAllowThreads(__tstate); | |
9726 | if (PyErr_Occurred()) SWIG_fail; | |
9727 | } | |
9728 | { | |
9729 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9730 | } | |
9731 | return resultobj; | |
9732 | fail: | |
9733 | return NULL; | |
9734 | } | |
9735 | ||
9736 | ||
9737 | static PyObject * Process_swigregister(PyObject *, PyObject *args) { | |
9738 | PyObject *obj; | |
9739 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9740 | SWIG_TypeClientData(SWIGTYPE_p_wxPyProcess, obj); | |
9741 | Py_INCREF(obj); | |
9742 | return Py_BuildValue((char *)""); | |
9743 | } | |
9744 | static PyObject *_wrap_new_ProcessEvent(PyObject *, PyObject *args, PyObject *kwargs) { | |
9745 | PyObject *resultobj; | |
9746 | int arg1 = (int) 0 ; | |
9747 | int arg2 = (int) 0 ; | |
9748 | int arg3 = (int) 0 ; | |
9749 | wxProcessEvent *result; | |
9750 | PyObject * obj0 = 0 ; | |
9751 | PyObject * obj1 = 0 ; | |
9752 | PyObject * obj2 = 0 ; | |
9753 | char *kwnames[] = { | |
9754 | (char *) "id",(char *) "pid",(char *) "exitcode", NULL | |
9755 | }; | |
9756 | ||
9757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ProcessEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9758 | if (obj0) { | |
9759 | arg1 = (int)SWIG_As_int(obj0); | |
9760 | if (PyErr_Occurred()) SWIG_fail; | |
9761 | } | |
9762 | if (obj1) { | |
9763 | arg2 = (int)SWIG_As_int(obj1); | |
9764 | if (PyErr_Occurred()) SWIG_fail; | |
9765 | } | |
9766 | if (obj2) { | |
9767 | arg3 = (int)SWIG_As_int(obj2); | |
9768 | if (PyErr_Occurred()) SWIG_fail; | |
9769 | } | |
9770 | { | |
9771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9772 | result = (wxProcessEvent *)new wxProcessEvent(arg1,arg2,arg3); | |
9773 | ||
9774 | wxPyEndAllowThreads(__tstate); | |
9775 | if (PyErr_Occurred()) SWIG_fail; | |
9776 | } | |
9777 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxProcessEvent, 1); | |
9778 | return resultobj; | |
9779 | fail: | |
9780 | return NULL; | |
9781 | } | |
9782 | ||
9783 | ||
9784 | static PyObject *_wrap_ProcessEvent_GetPid(PyObject *, PyObject *args, PyObject *kwargs) { | |
9785 | PyObject *resultobj; | |
9786 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9787 | int result; | |
9788 | PyObject * obj0 = 0 ; | |
9789 | char *kwnames[] = { | |
9790 | (char *) "self", NULL | |
9791 | }; | |
9792 | ||
9793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetPid",kwnames,&obj0)) goto fail; | |
9794 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, | |
9795 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9796 | { | |
9797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9798 | result = (int)(arg1)->GetPid(); | |
9799 | ||
9800 | wxPyEndAllowThreads(__tstate); | |
9801 | if (PyErr_Occurred()) SWIG_fail; | |
9802 | } | |
9803 | resultobj = SWIG_From_int((int)result); | |
9804 | return resultobj; | |
9805 | fail: | |
9806 | return NULL; | |
9807 | } | |
9808 | ||
9809 | ||
9810 | static PyObject *_wrap_ProcessEvent_GetExitCode(PyObject *, PyObject *args, PyObject *kwargs) { | |
9811 | PyObject *resultobj; | |
9812 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9813 | int result; | |
9814 | PyObject * obj0 = 0 ; | |
9815 | char *kwnames[] = { | |
9816 | (char *) "self", NULL | |
9817 | }; | |
9818 | ||
9819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetExitCode",kwnames,&obj0)) goto fail; | |
9820 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, | |
9821 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9822 | { | |
9823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9824 | result = (int)(arg1)->GetExitCode(); | |
9825 | ||
9826 | wxPyEndAllowThreads(__tstate); | |
9827 | if (PyErr_Occurred()) SWIG_fail; | |
9828 | } | |
9829 | resultobj = SWIG_From_int((int)result); | |
9830 | return resultobj; | |
9831 | fail: | |
9832 | return NULL; | |
9833 | } | |
9834 | ||
9835 | ||
9836 | static PyObject *_wrap_ProcessEvent_m_pid_set(PyObject *, PyObject *args, PyObject *kwargs) { | |
9837 | PyObject *resultobj; | |
9838 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9839 | int arg2 ; | |
9840 | PyObject * obj0 = 0 ; | |
9841 | PyObject * obj1 = 0 ; | |
9842 | char *kwnames[] = { | |
9843 | (char *) "self",(char *) "m_pid", NULL | |
9844 | }; | |
9845 | ||
9846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_pid_set",kwnames,&obj0,&obj1)) goto fail; | |
9847 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, | |
9848 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9849 | arg2 = (int)SWIG_As_int(obj1); | |
9850 | if (PyErr_Occurred()) SWIG_fail; | |
9851 | if (arg1) (arg1)->m_pid = arg2; | |
9852 | ||
9853 | Py_INCREF(Py_None); resultobj = Py_None; | |
9854 | return resultobj; | |
9855 | fail: | |
9856 | return NULL; | |
9857 | } | |
9858 | ||
9859 | ||
9860 | static PyObject *_wrap_ProcessEvent_m_pid_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
9861 | PyObject *resultobj; | |
9862 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9863 | int result; | |
9864 | PyObject * obj0 = 0 ; | |
9865 | char *kwnames[] = { | |
9866 | (char *) "self", NULL | |
9867 | }; | |
9868 | ||
9869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_pid_get",kwnames,&obj0)) goto fail; | |
9870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, | |
9871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9872 | result = (int) ((arg1)->m_pid); | |
9873 | ||
9874 | resultobj = SWIG_From_int((int)result); | |
9875 | return resultobj; | |
9876 | fail: | |
9877 | return NULL; | |
9878 | } | |
9879 | ||
9880 | ||
9881 | static PyObject *_wrap_ProcessEvent_m_exitcode_set(PyObject *, PyObject *args, PyObject *kwargs) { | |
9882 | PyObject *resultobj; | |
9883 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9884 | int arg2 ; | |
9885 | PyObject * obj0 = 0 ; | |
9886 | PyObject * obj1 = 0 ; | |
9887 | char *kwnames[] = { | |
9888 | (char *) "self",(char *) "m_exitcode", NULL | |
9889 | }; | |
9890 | ||
9891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_exitcode_set",kwnames,&obj0,&obj1)) goto fail; | |
9892 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, | |
9893 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9894 | arg2 = (int)SWIG_As_int(obj1); | |
9895 | if (PyErr_Occurred()) SWIG_fail; | |
9896 | if (arg1) (arg1)->m_exitcode = arg2; | |
9897 | ||
9898 | Py_INCREF(Py_None); resultobj = Py_None; | |
9899 | return resultobj; | |
9900 | fail: | |
9901 | return NULL; | |
9902 | } | |
9903 | ||
9904 | ||
9905 | static PyObject *_wrap_ProcessEvent_m_exitcode_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
9906 | PyObject *resultobj; | |
9907 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9908 | int result; | |
9909 | PyObject * obj0 = 0 ; | |
9910 | char *kwnames[] = { | |
9911 | (char *) "self", NULL | |
9912 | }; | |
9913 | ||
9914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_exitcode_get",kwnames,&obj0)) goto fail; | |
9915 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, | |
9916 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9917 | result = (int) ((arg1)->m_exitcode); | |
9918 | ||
9919 | resultobj = SWIG_From_int((int)result); | |
9920 | return resultobj; | |
9921 | fail: | |
9922 | return NULL; | |
9923 | } | |
9924 | ||
9925 | ||
9926 | static PyObject * ProcessEvent_swigregister(PyObject *, PyObject *args) { | |
9927 | PyObject *obj; | |
9928 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9929 | SWIG_TypeClientData(SWIGTYPE_p_wxProcessEvent, obj); | |
9930 | Py_INCREF(obj); | |
9931 | return Py_BuildValue((char *)""); | |
9932 | } | |
9933 | static PyObject *_wrap_Execute(PyObject *, PyObject *args, PyObject *kwargs) { | |
9934 | PyObject *resultobj; | |
9935 | wxString *arg1 = 0 ; | |
9936 | int arg2 = (int) wxEXEC_ASYNC ; | |
9937 | wxPyProcess *arg3 = (wxPyProcess *) NULL ; | |
9938 | long result; | |
9939 | bool temp1 = false ; | |
9940 | PyObject * obj0 = 0 ; | |
9941 | PyObject * obj1 = 0 ; | |
9942 | PyObject * obj2 = 0 ; | |
9943 | char *kwnames[] = { | |
9944 | (char *) "command",(char *) "flags",(char *) "process", NULL | |
9945 | }; | |
9946 | ||
9947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Execute",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9948 | { | |
9949 | arg1 = wxString_in_helper(obj0); | |
9950 | if (arg1 == NULL) SWIG_fail; | |
9951 | temp1 = true; | |
9952 | } | |
9953 | if (obj1) { | |
9954 | arg2 = (int)SWIG_As_int(obj1); | |
9955 | if (PyErr_Occurred()) SWIG_fail; | |
9956 | } | |
9957 | if (obj2) { | |
9958 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyProcess, | |
9959 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9960 | } | |
9961 | { | |
9962 | if (!wxPyCheckForApp()) SWIG_fail; | |
9963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9964 | result = (long)wxExecute((wxString const &)*arg1,arg2,arg3); | |
9965 | ||
9966 | wxPyEndAllowThreads(__tstate); | |
9967 | if (PyErr_Occurred()) SWIG_fail; | |
9968 | } | |
9969 | resultobj = SWIG_From_long((long)result); | |
9970 | { | |
9971 | if (temp1) | |
9972 | delete arg1; | |
9973 | } | |
9974 | return resultobj; | |
9975 | fail: | |
9976 | { | |
9977 | if (temp1) | |
9978 | delete arg1; | |
9979 | } | |
9980 | return NULL; | |
9981 | } | |
9982 | ||
9983 | ||
9984 | static PyObject *_wrap_new_Joystick(PyObject *, PyObject *args, PyObject *kwargs) { | |
9985 | PyObject *resultobj; | |
9986 | int arg1 = (int) wxJOYSTICK1 ; | |
9987 | wxJoystick *result; | |
9988 | PyObject * obj0 = 0 ; | |
9989 | char *kwnames[] = { | |
9990 | (char *) "joystick", NULL | |
9991 | }; | |
9992 | ||
9993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Joystick",kwnames,&obj0)) goto fail; | |
9994 | if (obj0) { | |
9995 | arg1 = (int)SWIG_As_int(obj0); | |
9996 | if (PyErr_Occurred()) SWIG_fail; | |
9997 | } | |
9998 | { | |
9999 | if (!wxPyCheckForApp()) SWIG_fail; | |
10000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10001 | result = (wxJoystick *)new wxJoystick(arg1); | |
10002 | ||
10003 | wxPyEndAllowThreads(__tstate); | |
10004 | if (PyErr_Occurred()) SWIG_fail; | |
10005 | } | |
10006 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystick, 1); | |
10007 | return resultobj; | |
10008 | fail: | |
10009 | return NULL; | |
10010 | } | |
10011 | ||
10012 | ||
10013 | static PyObject *_wrap_delete_Joystick(PyObject *, PyObject *args, PyObject *kwargs) { | |
10014 | PyObject *resultobj; | |
10015 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10016 | PyObject * obj0 = 0 ; | |
10017 | char *kwnames[] = { | |
10018 | (char *) "self", NULL | |
10019 | }; | |
10020 | ||
10021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Joystick",kwnames,&obj0)) goto fail; | |
10022 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10023 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10024 | { | |
10025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10026 | delete arg1; | |
10027 | ||
10028 | wxPyEndAllowThreads(__tstate); | |
10029 | if (PyErr_Occurred()) SWIG_fail; | |
10030 | } | |
10031 | Py_INCREF(Py_None); resultobj = Py_None; | |
10032 | return resultobj; | |
10033 | fail: | |
10034 | return NULL; | |
10035 | } | |
10036 | ||
10037 | ||
10038 | static PyObject *_wrap_Joystick_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { | |
10039 | PyObject *resultobj; | |
10040 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10041 | wxPoint result; | |
10042 | PyObject * obj0 = 0 ; | |
10043 | char *kwnames[] = { | |
10044 | (char *) "self", NULL | |
10045 | }; | |
10046 | ||
10047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPosition",kwnames,&obj0)) goto fail; | |
10048 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10049 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10050 | { | |
10051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10052 | result = (arg1)->GetPosition(); | |
10053 | ||
10054 | wxPyEndAllowThreads(__tstate); | |
10055 | if (PyErr_Occurred()) SWIG_fail; | |
10056 | } | |
10057 | { | |
10058 | wxPoint * resultptr; | |
10059 | resultptr = new wxPoint((wxPoint &) result); | |
10060 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
10061 | } | |
10062 | return resultobj; | |
10063 | fail: | |
10064 | return NULL; | |
10065 | } | |
10066 | ||
10067 | ||
10068 | static PyObject *_wrap_Joystick_GetZPosition(PyObject *, PyObject *args, PyObject *kwargs) { | |
10069 | PyObject *resultobj; | |
10070 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10071 | int result; | |
10072 | PyObject * obj0 = 0 ; | |
10073 | char *kwnames[] = { | |
10074 | (char *) "self", NULL | |
10075 | }; | |
10076 | ||
10077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZPosition",kwnames,&obj0)) goto fail; | |
10078 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10079 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10080 | { | |
10081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10082 | result = (int)(arg1)->GetZPosition(); | |
10083 | ||
10084 | wxPyEndAllowThreads(__tstate); | |
10085 | if (PyErr_Occurred()) SWIG_fail; | |
10086 | } | |
10087 | resultobj = SWIG_From_int((int)result); | |
10088 | return resultobj; | |
10089 | fail: | |
10090 | return NULL; | |
10091 | } | |
10092 | ||
10093 | ||
10094 | static PyObject *_wrap_Joystick_GetButtonState(PyObject *, PyObject *args, PyObject *kwargs) { | |
10095 | PyObject *resultobj; | |
10096 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10097 | int result; | |
10098 | PyObject * obj0 = 0 ; | |
10099 | char *kwnames[] = { | |
10100 | (char *) "self", NULL | |
10101 | }; | |
10102 | ||
10103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetButtonState",kwnames,&obj0)) goto fail; | |
10104 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10105 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10106 | { | |
10107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10108 | result = (int)(arg1)->GetButtonState(); | |
10109 | ||
10110 | wxPyEndAllowThreads(__tstate); | |
10111 | if (PyErr_Occurred()) SWIG_fail; | |
10112 | } | |
10113 | resultobj = SWIG_From_int((int)result); | |
10114 | return resultobj; | |
10115 | fail: | |
10116 | return NULL; | |
10117 | } | |
10118 | ||
10119 | ||
10120 | static PyObject *_wrap_Joystick_GetPOVPosition(PyObject *, PyObject *args, PyObject *kwargs) { | |
10121 | PyObject *resultobj; | |
10122 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10123 | int result; | |
10124 | PyObject * obj0 = 0 ; | |
10125 | char *kwnames[] = { | |
10126 | (char *) "self", NULL | |
10127 | }; | |
10128 | ||
10129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVPosition",kwnames,&obj0)) goto fail; | |
10130 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10131 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10132 | { | |
10133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10134 | result = (int)(arg1)->GetPOVPosition(); | |
10135 | ||
10136 | wxPyEndAllowThreads(__tstate); | |
10137 | if (PyErr_Occurred()) SWIG_fail; | |
10138 | } | |
10139 | resultobj = SWIG_From_int((int)result); | |
10140 | return resultobj; | |
10141 | fail: | |
10142 | return NULL; | |
10143 | } | |
10144 | ||
10145 | ||
10146 | static PyObject *_wrap_Joystick_GetPOVCTSPosition(PyObject *, PyObject *args, PyObject *kwargs) { | |
10147 | PyObject *resultobj; | |
10148 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10149 | int result; | |
10150 | PyObject * obj0 = 0 ; | |
10151 | char *kwnames[] = { | |
10152 | (char *) "self", NULL | |
10153 | }; | |
10154 | ||
10155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVCTSPosition",kwnames,&obj0)) goto fail; | |
10156 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10157 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10158 | { | |
10159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10160 | result = (int)(arg1)->GetPOVCTSPosition(); | |
10161 | ||
10162 | wxPyEndAllowThreads(__tstate); | |
10163 | if (PyErr_Occurred()) SWIG_fail; | |
10164 | } | |
10165 | resultobj = SWIG_From_int((int)result); | |
10166 | return resultobj; | |
10167 | fail: | |
10168 | return NULL; | |
10169 | } | |
10170 | ||
10171 | ||
10172 | static PyObject *_wrap_Joystick_GetRudderPosition(PyObject *, PyObject *args, PyObject *kwargs) { | |
10173 | PyObject *resultobj; | |
10174 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10175 | int result; | |
10176 | PyObject * obj0 = 0 ; | |
10177 | char *kwnames[] = { | |
10178 | (char *) "self", NULL | |
10179 | }; | |
10180 | ||
10181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderPosition",kwnames,&obj0)) goto fail; | |
10182 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10183 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10184 | { | |
10185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10186 | result = (int)(arg1)->GetRudderPosition(); | |
10187 | ||
10188 | wxPyEndAllowThreads(__tstate); | |
10189 | if (PyErr_Occurred()) SWIG_fail; | |
10190 | } | |
10191 | resultobj = SWIG_From_int((int)result); | |
10192 | return resultobj; | |
10193 | fail: | |
10194 | return NULL; | |
10195 | } | |
10196 | ||
10197 | ||
10198 | static PyObject *_wrap_Joystick_GetUPosition(PyObject *, PyObject *args, PyObject *kwargs) { | |
10199 | PyObject *resultobj; | |
10200 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10201 | int result; | |
10202 | PyObject * obj0 = 0 ; | |
10203 | char *kwnames[] = { | |
10204 | (char *) "self", NULL | |
10205 | }; | |
10206 | ||
10207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUPosition",kwnames,&obj0)) goto fail; | |
10208 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10209 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10210 | { | |
10211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10212 | result = (int)(arg1)->GetUPosition(); | |
10213 | ||
10214 | wxPyEndAllowThreads(__tstate); | |
10215 | if (PyErr_Occurred()) SWIG_fail; | |
10216 | } | |
10217 | resultobj = SWIG_From_int((int)result); | |
10218 | return resultobj; | |
10219 | fail: | |
10220 | return NULL; | |
10221 | } | |
10222 | ||
10223 | ||
10224 | static PyObject *_wrap_Joystick_GetVPosition(PyObject *, PyObject *args, PyObject *kwargs) { | |
10225 | PyObject *resultobj; | |
10226 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10227 | int result; | |
10228 | PyObject * obj0 = 0 ; | |
10229 | char *kwnames[] = { | |
10230 | (char *) "self", NULL | |
10231 | }; | |
10232 | ||
10233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVPosition",kwnames,&obj0)) goto fail; | |
10234 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10235 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10236 | { | |
10237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10238 | result = (int)(arg1)->GetVPosition(); | |
10239 | ||
10240 | wxPyEndAllowThreads(__tstate); | |
10241 | if (PyErr_Occurred()) SWIG_fail; | |
10242 | } | |
10243 | resultobj = SWIG_From_int((int)result); | |
10244 | return resultobj; | |
10245 | fail: | |
10246 | return NULL; | |
10247 | } | |
10248 | ||
10249 | ||
10250 | static PyObject *_wrap_Joystick_GetMovementThreshold(PyObject *, PyObject *args, PyObject *kwargs) { | |
10251 | PyObject *resultobj; | |
10252 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10253 | int result; | |
10254 | PyObject * obj0 = 0 ; | |
10255 | char *kwnames[] = { | |
10256 | (char *) "self", NULL | |
10257 | }; | |
10258 | ||
10259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMovementThreshold",kwnames,&obj0)) goto fail; | |
10260 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10262 | { | |
10263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10264 | result = (int)(arg1)->GetMovementThreshold(); | |
10265 | ||
10266 | wxPyEndAllowThreads(__tstate); | |
10267 | if (PyErr_Occurred()) SWIG_fail; | |
10268 | } | |
10269 | resultobj = SWIG_From_int((int)result); | |
10270 | return resultobj; | |
10271 | fail: | |
10272 | return NULL; | |
10273 | } | |
10274 | ||
10275 | ||
10276 | static PyObject *_wrap_Joystick_SetMovementThreshold(PyObject *, PyObject *args, PyObject *kwargs) { | |
10277 | PyObject *resultobj; | |
10278 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10279 | int arg2 ; | |
10280 | PyObject * obj0 = 0 ; | |
10281 | PyObject * obj1 = 0 ; | |
10282 | char *kwnames[] = { | |
10283 | (char *) "self",(char *) "threshold", NULL | |
10284 | }; | |
10285 | ||
10286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Joystick_SetMovementThreshold",kwnames,&obj0,&obj1)) goto fail; | |
10287 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10289 | arg2 = (int)SWIG_As_int(obj1); | |
10290 | if (PyErr_Occurred()) SWIG_fail; | |
10291 | { | |
10292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10293 | (arg1)->SetMovementThreshold(arg2); | |
10294 | ||
10295 | wxPyEndAllowThreads(__tstate); | |
10296 | if (PyErr_Occurred()) SWIG_fail; | |
10297 | } | |
10298 | Py_INCREF(Py_None); resultobj = Py_None; | |
10299 | return resultobj; | |
10300 | fail: | |
10301 | return NULL; | |
10302 | } | |
10303 | ||
10304 | ||
10305 | static PyObject *_wrap_Joystick_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { | |
10306 | PyObject *resultobj; | |
10307 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10308 | bool result; | |
10309 | PyObject * obj0 = 0 ; | |
10310 | char *kwnames[] = { | |
10311 | (char *) "self", NULL | |
10312 | }; | |
10313 | ||
10314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_IsOk",kwnames,&obj0)) goto fail; | |
10315 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10317 | { | |
10318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10319 | result = (bool)(arg1)->IsOk(); | |
10320 | ||
10321 | wxPyEndAllowThreads(__tstate); | |
10322 | if (PyErr_Occurred()) SWIG_fail; | |
10323 | } | |
10324 | { | |
10325 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10326 | } | |
10327 | return resultobj; | |
10328 | fail: | |
10329 | return NULL; | |
10330 | } | |
10331 | ||
10332 | ||
10333 | static PyObject *_wrap_Joystick_GetNumberJoysticks(PyObject *, 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_GetNumberJoysticks",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)->GetNumberJoysticks(); | |
10348 | ||
10349 | wxPyEndAllowThreads(__tstate); | |
10350 | if (PyErr_Occurred()) SWIG_fail; | |
10351 | } | |
10352 | resultobj = SWIG_From_int((int)result); | |
10353 | return resultobj; | |
10354 | fail: | |
10355 | return NULL; | |
10356 | } | |
10357 | ||
10358 | ||
10359 | static PyObject *_wrap_Joystick_GetManufacturerId(PyObject *, 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_GetManufacturerId",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)->GetManufacturerId(); | |
10374 | ||
10375 | wxPyEndAllowThreads(__tstate); | |
10376 | if (PyErr_Occurred()) SWIG_fail; | |
10377 | } | |
10378 | resultobj = SWIG_From_int((int)result); | |
10379 | return resultobj; | |
10380 | fail: | |
10381 | return NULL; | |
10382 | } | |
10383 | ||
10384 | ||
10385 | static PyObject *_wrap_Joystick_GetProductId(PyObject *, 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_GetProductId",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)->GetProductId(); | |
10400 | ||
10401 | wxPyEndAllowThreads(__tstate); | |
10402 | if (PyErr_Occurred()) SWIG_fail; | |
10403 | } | |
10404 | resultobj = SWIG_From_int((int)result); | |
10405 | return resultobj; | |
10406 | fail: | |
10407 | return NULL; | |
10408 | } | |
10409 | ||
10410 | ||
10411 | static PyObject *_wrap_Joystick_GetProductName(PyObject *, PyObject *args, PyObject *kwargs) { | |
10412 | PyObject *resultobj; | |
10413 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10414 | wxString result; | |
10415 | PyObject * obj0 = 0 ; | |
10416 | char *kwnames[] = { | |
10417 | (char *) "self", NULL | |
10418 | }; | |
10419 | ||
10420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductName",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 = (arg1)->GetProductName(); | |
10426 | ||
10427 | wxPyEndAllowThreads(__tstate); | |
10428 | if (PyErr_Occurred()) SWIG_fail; | |
10429 | } | |
10430 | { | |
10431 | #if wxUSE_UNICODE | |
10432 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10433 | #else | |
10434 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10435 | #endif | |
10436 | } | |
10437 | return resultobj; | |
10438 | fail: | |
10439 | return NULL; | |
10440 | } | |
10441 | ||
10442 | ||
10443 | static PyObject *_wrap_Joystick_GetXMin(PyObject *, PyObject *args, PyObject *kwargs) { | |
10444 | PyObject *resultobj; | |
10445 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10446 | int result; | |
10447 | PyObject * obj0 = 0 ; | |
10448 | char *kwnames[] = { | |
10449 | (char *) "self", NULL | |
10450 | }; | |
10451 | ||
10452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMin",kwnames,&obj0)) goto fail; | |
10453 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10454 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10455 | { | |
10456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10457 | result = (int)(arg1)->GetXMin(); | |
10458 | ||
10459 | wxPyEndAllowThreads(__tstate); | |
10460 | if (PyErr_Occurred()) SWIG_fail; | |
10461 | } | |
10462 | resultobj = SWIG_From_int((int)result); | |
10463 | return resultobj; | |
10464 | fail: | |
10465 | return NULL; | |
10466 | } | |
10467 | ||
10468 | ||
10469 | static PyObject *_wrap_Joystick_GetYMin(PyObject *, PyObject *args, PyObject *kwargs) { | |
10470 | PyObject *resultobj; | |
10471 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10472 | int result; | |
10473 | PyObject * obj0 = 0 ; | |
10474 | char *kwnames[] = { | |
10475 | (char *) "self", NULL | |
10476 | }; | |
10477 | ||
10478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMin",kwnames,&obj0)) goto fail; | |
10479 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10480 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10481 | { | |
10482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10483 | result = (int)(arg1)->GetYMin(); | |
10484 | ||
10485 | wxPyEndAllowThreads(__tstate); | |
10486 | if (PyErr_Occurred()) SWIG_fail; | |
10487 | } | |
10488 | resultobj = SWIG_From_int((int)result); | |
10489 | return resultobj; | |
10490 | fail: | |
10491 | return NULL; | |
10492 | } | |
10493 | ||
10494 | ||
10495 | static PyObject *_wrap_Joystick_GetZMin(PyObject *, PyObject *args, PyObject *kwargs) { | |
10496 | PyObject *resultobj; | |
10497 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10498 | int result; | |
10499 | PyObject * obj0 = 0 ; | |
10500 | char *kwnames[] = { | |
10501 | (char *) "self", NULL | |
10502 | }; | |
10503 | ||
10504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMin",kwnames,&obj0)) goto fail; | |
10505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10507 | { | |
10508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10509 | result = (int)(arg1)->GetZMin(); | |
10510 | ||
10511 | wxPyEndAllowThreads(__tstate); | |
10512 | if (PyErr_Occurred()) SWIG_fail; | |
10513 | } | |
10514 | resultobj = SWIG_From_int((int)result); | |
10515 | return resultobj; | |
10516 | fail: | |
10517 | return NULL; | |
10518 | } | |
10519 | ||
10520 | ||
10521 | static PyObject *_wrap_Joystick_GetXMax(PyObject *, PyObject *args, PyObject *kwargs) { | |
10522 | PyObject *resultobj; | |
10523 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10524 | int result; | |
10525 | PyObject * obj0 = 0 ; | |
10526 | char *kwnames[] = { | |
10527 | (char *) "self", NULL | |
10528 | }; | |
10529 | ||
10530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMax",kwnames,&obj0)) goto fail; | |
10531 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10532 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10533 | { | |
10534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10535 | result = (int)(arg1)->GetXMax(); | |
10536 | ||
10537 | wxPyEndAllowThreads(__tstate); | |
10538 | if (PyErr_Occurred()) SWIG_fail; | |
10539 | } | |
10540 | resultobj = SWIG_From_int((int)result); | |
10541 | return resultobj; | |
10542 | fail: | |
10543 | return NULL; | |
10544 | } | |
10545 | ||
10546 | ||
10547 | static PyObject *_wrap_Joystick_GetYMax(PyObject *, PyObject *args, PyObject *kwargs) { | |
10548 | PyObject *resultobj; | |
10549 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10550 | int result; | |
10551 | PyObject * obj0 = 0 ; | |
10552 | char *kwnames[] = { | |
10553 | (char *) "self", NULL | |
10554 | }; | |
10555 | ||
10556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMax",kwnames,&obj0)) goto fail; | |
10557 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10558 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10559 | { | |
10560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10561 | result = (int)(arg1)->GetYMax(); | |
10562 | ||
10563 | wxPyEndAllowThreads(__tstate); | |
10564 | if (PyErr_Occurred()) SWIG_fail; | |
10565 | } | |
10566 | resultobj = SWIG_From_int((int)result); | |
10567 | return resultobj; | |
10568 | fail: | |
10569 | return NULL; | |
10570 | } | |
10571 | ||
10572 | ||
10573 | static PyObject *_wrap_Joystick_GetZMax(PyObject *, PyObject *args, PyObject *kwargs) { | |
10574 | PyObject *resultobj; | |
10575 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10576 | int result; | |
10577 | PyObject * obj0 = 0 ; | |
10578 | char *kwnames[] = { | |
10579 | (char *) "self", NULL | |
10580 | }; | |
10581 | ||
10582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMax",kwnames,&obj0)) goto fail; | |
10583 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10584 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10585 | { | |
10586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10587 | result = (int)(arg1)->GetZMax(); | |
10588 | ||
10589 | wxPyEndAllowThreads(__tstate); | |
10590 | if (PyErr_Occurred()) SWIG_fail; | |
10591 | } | |
10592 | resultobj = SWIG_From_int((int)result); | |
10593 | return resultobj; | |
10594 | fail: | |
10595 | return NULL; | |
10596 | } | |
10597 | ||
10598 | ||
10599 | static PyObject *_wrap_Joystick_GetNumberButtons(PyObject *, PyObject *args, PyObject *kwargs) { | |
10600 | PyObject *resultobj; | |
10601 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10602 | int result; | |
10603 | PyObject * obj0 = 0 ; | |
10604 | char *kwnames[] = { | |
10605 | (char *) "self", NULL | |
10606 | }; | |
10607 | ||
10608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberButtons",kwnames,&obj0)) goto fail; | |
10609 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10611 | { | |
10612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10613 | result = (int)(arg1)->GetNumberButtons(); | |
10614 | ||
10615 | wxPyEndAllowThreads(__tstate); | |
10616 | if (PyErr_Occurred()) SWIG_fail; | |
10617 | } | |
10618 | resultobj = SWIG_From_int((int)result); | |
10619 | return resultobj; | |
10620 | fail: | |
10621 | return NULL; | |
10622 | } | |
10623 | ||
10624 | ||
10625 | static PyObject *_wrap_Joystick_GetNumberAxes(PyObject *, PyObject *args, PyObject *kwargs) { | |
10626 | PyObject *resultobj; | |
10627 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10628 | int result; | |
10629 | PyObject * obj0 = 0 ; | |
10630 | char *kwnames[] = { | |
10631 | (char *) "self", NULL | |
10632 | }; | |
10633 | ||
10634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberAxes",kwnames,&obj0)) goto fail; | |
10635 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10636 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10637 | { | |
10638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10639 | result = (int)(arg1)->GetNumberAxes(); | |
10640 | ||
10641 | wxPyEndAllowThreads(__tstate); | |
10642 | if (PyErr_Occurred()) SWIG_fail; | |
10643 | } | |
10644 | resultobj = SWIG_From_int((int)result); | |
10645 | return resultobj; | |
10646 | fail: | |
10647 | return NULL; | |
10648 | } | |
10649 | ||
10650 | ||
10651 | static PyObject *_wrap_Joystick_GetMaxButtons(PyObject *, PyObject *args, PyObject *kwargs) { | |
10652 | PyObject *resultobj; | |
10653 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10654 | int result; | |
10655 | PyObject * obj0 = 0 ; | |
10656 | char *kwnames[] = { | |
10657 | (char *) "self", NULL | |
10658 | }; | |
10659 | ||
10660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxButtons",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 = (int)(arg1)->GetMaxButtons(); | |
10666 | ||
10667 | wxPyEndAllowThreads(__tstate); | |
10668 | if (PyErr_Occurred()) SWIG_fail; | |
10669 | } | |
10670 | resultobj = SWIG_From_int((int)result); | |
10671 | return resultobj; | |
10672 | fail: | |
10673 | return NULL; | |
10674 | } | |
10675 | ||
10676 | ||
10677 | static PyObject *_wrap_Joystick_GetMaxAxes(PyObject *, PyObject *args, PyObject *kwargs) { | |
10678 | PyObject *resultobj; | |
10679 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10680 | int result; | |
10681 | PyObject * obj0 = 0 ; | |
10682 | char *kwnames[] = { | |
10683 | (char *) "self", NULL | |
10684 | }; | |
10685 | ||
10686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxAxes",kwnames,&obj0)) goto fail; | |
10687 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10688 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10689 | { | |
10690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10691 | result = (int)(arg1)->GetMaxAxes(); | |
10692 | ||
10693 | wxPyEndAllowThreads(__tstate); | |
10694 | if (PyErr_Occurred()) SWIG_fail; | |
10695 | } | |
10696 | resultobj = SWIG_From_int((int)result); | |
10697 | return resultobj; | |
10698 | fail: | |
10699 | return NULL; | |
10700 | } | |
10701 | ||
10702 | ||
10703 | static PyObject *_wrap_Joystick_GetPollingMin(PyObject *, PyObject *args, PyObject *kwargs) { | |
10704 | PyObject *resultobj; | |
10705 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10706 | int result; | |
10707 | PyObject * obj0 = 0 ; | |
10708 | char *kwnames[] = { | |
10709 | (char *) "self", NULL | |
10710 | }; | |
10711 | ||
10712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMin",kwnames,&obj0)) goto fail; | |
10713 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10714 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10715 | { | |
10716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10717 | result = (int)(arg1)->GetPollingMin(); | |
10718 | ||
10719 | wxPyEndAllowThreads(__tstate); | |
10720 | if (PyErr_Occurred()) SWIG_fail; | |
10721 | } | |
10722 | resultobj = SWIG_From_int((int)result); | |
10723 | return resultobj; | |
10724 | fail: | |
10725 | return NULL; | |
10726 | } | |
10727 | ||
10728 | ||
10729 | static PyObject *_wrap_Joystick_GetPollingMax(PyObject *, PyObject *args, PyObject *kwargs) { | |
10730 | PyObject *resultobj; | |
10731 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10732 | int result; | |
10733 | PyObject * obj0 = 0 ; | |
10734 | char *kwnames[] = { | |
10735 | (char *) "self", NULL | |
10736 | }; | |
10737 | ||
10738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMax",kwnames,&obj0)) goto fail; | |
10739 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10740 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10741 | { | |
10742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10743 | result = (int)(arg1)->GetPollingMax(); | |
10744 | ||
10745 | wxPyEndAllowThreads(__tstate); | |
10746 | if (PyErr_Occurred()) SWIG_fail; | |
10747 | } | |
10748 | resultobj = SWIG_From_int((int)result); | |
10749 | return resultobj; | |
10750 | fail: | |
10751 | return NULL; | |
10752 | } | |
10753 | ||
10754 | ||
10755 | static PyObject *_wrap_Joystick_GetRudderMin(PyObject *, PyObject *args, PyObject *kwargs) { | |
10756 | PyObject *resultobj; | |
10757 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10758 | int result; | |
10759 | PyObject * obj0 = 0 ; | |
10760 | char *kwnames[] = { | |
10761 | (char *) "self", NULL | |
10762 | }; | |
10763 | ||
10764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMin",kwnames,&obj0)) goto fail; | |
10765 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10767 | { | |
10768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10769 | result = (int)(arg1)->GetRudderMin(); | |
10770 | ||
10771 | wxPyEndAllowThreads(__tstate); | |
10772 | if (PyErr_Occurred()) SWIG_fail; | |
10773 | } | |
10774 | resultobj = SWIG_From_int((int)result); | |
10775 | return resultobj; | |
10776 | fail: | |
10777 | return NULL; | |
10778 | } | |
10779 | ||
10780 | ||
10781 | static PyObject *_wrap_Joystick_GetRudderMax(PyObject *, PyObject *args, PyObject *kwargs) { | |
10782 | PyObject *resultobj; | |
10783 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10784 | int result; | |
10785 | PyObject * obj0 = 0 ; | |
10786 | char *kwnames[] = { | |
10787 | (char *) "self", NULL | |
10788 | }; | |
10789 | ||
10790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMax",kwnames,&obj0)) goto fail; | |
10791 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10792 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10793 | { | |
10794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10795 | result = (int)(arg1)->GetRudderMax(); | |
10796 | ||
10797 | wxPyEndAllowThreads(__tstate); | |
10798 | if (PyErr_Occurred()) SWIG_fail; | |
10799 | } | |
10800 | resultobj = SWIG_From_int((int)result); | |
10801 | return resultobj; | |
10802 | fail: | |
10803 | return NULL; | |
10804 | } | |
10805 | ||
10806 | ||
10807 | static PyObject *_wrap_Joystick_GetUMin(PyObject *, PyObject *args, PyObject *kwargs) { | |
10808 | PyObject *resultobj; | |
10809 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10810 | int result; | |
10811 | PyObject * obj0 = 0 ; | |
10812 | char *kwnames[] = { | |
10813 | (char *) "self", NULL | |
10814 | }; | |
10815 | ||
10816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMin",kwnames,&obj0)) goto fail; | |
10817 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10818 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10819 | { | |
10820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10821 | result = (int)(arg1)->GetUMin(); | |
10822 | ||
10823 | wxPyEndAllowThreads(__tstate); | |
10824 | if (PyErr_Occurred()) SWIG_fail; | |
10825 | } | |
10826 | resultobj = SWIG_From_int((int)result); | |
10827 | return resultobj; | |
10828 | fail: | |
10829 | return NULL; | |
10830 | } | |
10831 | ||
10832 | ||
10833 | static PyObject *_wrap_Joystick_GetUMax(PyObject *, PyObject *args, PyObject *kwargs) { | |
10834 | PyObject *resultobj; | |
10835 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10836 | int result; | |
10837 | PyObject * obj0 = 0 ; | |
10838 | char *kwnames[] = { | |
10839 | (char *) "self", NULL | |
10840 | }; | |
10841 | ||
10842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMax",kwnames,&obj0)) goto fail; | |
10843 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10844 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10845 | { | |
10846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10847 | result = (int)(arg1)->GetUMax(); | |
10848 | ||
10849 | wxPyEndAllowThreads(__tstate); | |
10850 | if (PyErr_Occurred()) SWIG_fail; | |
10851 | } | |
10852 | resultobj = SWIG_From_int((int)result); | |
10853 | return resultobj; | |
10854 | fail: | |
10855 | return NULL; | |
10856 | } | |
10857 | ||
10858 | ||
10859 | static PyObject *_wrap_Joystick_GetVMin(PyObject *, PyObject *args, PyObject *kwargs) { | |
10860 | PyObject *resultobj; | |
10861 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10862 | int result; | |
10863 | PyObject * obj0 = 0 ; | |
10864 | char *kwnames[] = { | |
10865 | (char *) "self", NULL | |
10866 | }; | |
10867 | ||
10868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMin",kwnames,&obj0)) goto fail; | |
10869 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10870 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10871 | { | |
10872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10873 | result = (int)(arg1)->GetVMin(); | |
10874 | ||
10875 | wxPyEndAllowThreads(__tstate); | |
10876 | if (PyErr_Occurred()) SWIG_fail; | |
10877 | } | |
10878 | resultobj = SWIG_From_int((int)result); | |
10879 | return resultobj; | |
10880 | fail: | |
10881 | return NULL; | |
10882 | } | |
10883 | ||
10884 | ||
10885 | static PyObject *_wrap_Joystick_GetVMax(PyObject *, PyObject *args, PyObject *kwargs) { | |
10886 | PyObject *resultobj; | |
10887 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10888 | int result; | |
10889 | PyObject * obj0 = 0 ; | |
10890 | char *kwnames[] = { | |
10891 | (char *) "self", NULL | |
10892 | }; | |
10893 | ||
10894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMax",kwnames,&obj0)) goto fail; | |
10895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10897 | { | |
10898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10899 | result = (int)(arg1)->GetVMax(); | |
10900 | ||
10901 | wxPyEndAllowThreads(__tstate); | |
10902 | if (PyErr_Occurred()) SWIG_fail; | |
10903 | } | |
10904 | resultobj = SWIG_From_int((int)result); | |
10905 | return resultobj; | |
10906 | fail: | |
10907 | return NULL; | |
10908 | } | |
10909 | ||
10910 | ||
10911 | static PyObject *_wrap_Joystick_HasRudder(PyObject *, PyObject *args, PyObject *kwargs) { | |
10912 | PyObject *resultobj; | |
10913 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10914 | bool result; | |
10915 | PyObject * obj0 = 0 ; | |
10916 | char *kwnames[] = { | |
10917 | (char *) "self", NULL | |
10918 | }; | |
10919 | ||
10920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasRudder",kwnames,&obj0)) goto fail; | |
10921 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10923 | { | |
10924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10925 | result = (bool)(arg1)->HasRudder(); | |
10926 | ||
10927 | wxPyEndAllowThreads(__tstate); | |
10928 | if (PyErr_Occurred()) SWIG_fail; | |
10929 | } | |
10930 | { | |
10931 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10932 | } | |
10933 | return resultobj; | |
10934 | fail: | |
10935 | return NULL; | |
10936 | } | |
10937 | ||
10938 | ||
10939 | static PyObject *_wrap_Joystick_HasZ(PyObject *, PyObject *args, PyObject *kwargs) { | |
10940 | PyObject *resultobj; | |
10941 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10942 | bool result; | |
10943 | PyObject * obj0 = 0 ; | |
10944 | char *kwnames[] = { | |
10945 | (char *) "self", NULL | |
10946 | }; | |
10947 | ||
10948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasZ",kwnames,&obj0)) goto fail; | |
10949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10951 | { | |
10952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10953 | result = (bool)(arg1)->HasZ(); | |
10954 | ||
10955 | wxPyEndAllowThreads(__tstate); | |
10956 | if (PyErr_Occurred()) SWIG_fail; | |
10957 | } | |
10958 | { | |
10959 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10960 | } | |
10961 | return resultobj; | |
10962 | fail: | |
10963 | return NULL; | |
10964 | } | |
10965 | ||
10966 | ||
10967 | static PyObject *_wrap_Joystick_HasU(PyObject *, PyObject *args, PyObject *kwargs) { | |
10968 | PyObject *resultobj; | |
10969 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10970 | bool result; | |
10971 | PyObject * obj0 = 0 ; | |
10972 | char *kwnames[] = { | |
10973 | (char *) "self", NULL | |
10974 | }; | |
10975 | ||
10976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasU",kwnames,&obj0)) goto fail; | |
10977 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10978 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10979 | { | |
10980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10981 | result = (bool)(arg1)->HasU(); | |
10982 | ||
10983 | wxPyEndAllowThreads(__tstate); | |
10984 | if (PyErr_Occurred()) SWIG_fail; | |
10985 | } | |
10986 | { | |
10987 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10988 | } | |
10989 | return resultobj; | |
10990 | fail: | |
10991 | return NULL; | |
10992 | } | |
10993 | ||
10994 | ||
10995 | static PyObject *_wrap_Joystick_HasV(PyObject *, PyObject *args, PyObject *kwargs) { | |
10996 | PyObject *resultobj; | |
10997 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10998 | bool result; | |
10999 | PyObject * obj0 = 0 ; | |
11000 | char *kwnames[] = { | |
11001 | (char *) "self", NULL | |
11002 | }; | |
11003 | ||
11004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasV",kwnames,&obj0)) goto fail; | |
11005 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
11006 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11007 | { | |
11008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11009 | result = (bool)(arg1)->HasV(); | |
11010 | ||
11011 | wxPyEndAllowThreads(__tstate); | |
11012 | if (PyErr_Occurred()) SWIG_fail; | |
11013 | } | |
11014 | { | |
11015 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11016 | } | |
11017 | return resultobj; | |
11018 | fail: | |
11019 | return NULL; | |
11020 | } | |
11021 | ||
11022 | ||
11023 | static PyObject *_wrap_Joystick_HasPOV(PyObject *, PyObject *args, PyObject *kwargs) { | |
11024 | PyObject *resultobj; | |
11025 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11026 | bool result; | |
11027 | PyObject * obj0 = 0 ; | |
11028 | char *kwnames[] = { | |
11029 | (char *) "self", NULL | |
11030 | }; | |
11031 | ||
11032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV",kwnames,&obj0)) goto fail; | |
11033 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
11034 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11035 | { | |
11036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11037 | result = (bool)(arg1)->HasPOV(); | |
11038 | ||
11039 | wxPyEndAllowThreads(__tstate); | |
11040 | if (PyErr_Occurred()) SWIG_fail; | |
11041 | } | |
11042 | { | |
11043 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11044 | } | |
11045 | return resultobj; | |
11046 | fail: | |
11047 | return NULL; | |
11048 | } | |
11049 | ||
11050 | ||
11051 | static PyObject *_wrap_Joystick_HasPOV4Dir(PyObject *, PyObject *args, PyObject *kwargs) { | |
11052 | PyObject *resultobj; | |
11053 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11054 | bool result; | |
11055 | PyObject * obj0 = 0 ; | |
11056 | char *kwnames[] = { | |
11057 | (char *) "self", NULL | |
11058 | }; | |
11059 | ||
11060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV4Dir",kwnames,&obj0)) goto fail; | |
11061 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
11062 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11063 | { | |
11064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11065 | result = (bool)(arg1)->HasPOV4Dir(); | |
11066 | ||
11067 | wxPyEndAllowThreads(__tstate); | |
11068 | if (PyErr_Occurred()) SWIG_fail; | |
11069 | } | |
11070 | { | |
11071 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11072 | } | |
11073 | return resultobj; | |
11074 | fail: | |
11075 | return NULL; | |
11076 | } | |
11077 | ||
11078 | ||
11079 | static PyObject *_wrap_Joystick_HasPOVCTS(PyObject *, PyObject *args, PyObject *kwargs) { | |
11080 | PyObject *resultobj; | |
11081 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11082 | bool result; | |
11083 | PyObject * obj0 = 0 ; | |
11084 | char *kwnames[] = { | |
11085 | (char *) "self", NULL | |
11086 | }; | |
11087 | ||
11088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOVCTS",kwnames,&obj0)) goto fail; | |
11089 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
11090 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11091 | { | |
11092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11093 | result = (bool)(arg1)->HasPOVCTS(); | |
11094 | ||
11095 | wxPyEndAllowThreads(__tstate); | |
11096 | if (PyErr_Occurred()) SWIG_fail; | |
11097 | } | |
11098 | { | |
11099 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11100 | } | |
11101 | return resultobj; | |
11102 | fail: | |
11103 | return NULL; | |
11104 | } | |
11105 | ||
11106 | ||
11107 | static PyObject *_wrap_Joystick_SetCapture(PyObject *, PyObject *args, PyObject *kwargs) { | |
11108 | PyObject *resultobj; | |
11109 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11110 | wxWindow *arg2 = (wxWindow *) 0 ; | |
11111 | int arg3 = (int) 0 ; | |
11112 | bool result; | |
11113 | PyObject * obj0 = 0 ; | |
11114 | PyObject * obj1 = 0 ; | |
11115 | PyObject * obj2 = 0 ; | |
11116 | char *kwnames[] = { | |
11117 | (char *) "self",(char *) "win",(char *) "pollingFreq", NULL | |
11118 | }; | |
11119 | ||
11120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Joystick_SetCapture",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11121 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
11122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11123 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
11124 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11125 | if (obj2) { | |
11126 | arg3 = (int)SWIG_As_int(obj2); | |
11127 | if (PyErr_Occurred()) SWIG_fail; | |
11128 | } | |
11129 | { | |
11130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11131 | result = (bool)(arg1)->SetCapture(arg2,arg3); | |
11132 | ||
11133 | wxPyEndAllowThreads(__tstate); | |
11134 | if (PyErr_Occurred()) SWIG_fail; | |
11135 | } | |
11136 | { | |
11137 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11138 | } | |
11139 | return resultobj; | |
11140 | fail: | |
11141 | return NULL; | |
11142 | } | |
11143 | ||
11144 | ||
11145 | static PyObject *_wrap_Joystick_ReleaseCapture(PyObject *, PyObject *args, PyObject *kwargs) { | |
11146 | PyObject *resultobj; | |
11147 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11148 | bool result; | |
11149 | PyObject * obj0 = 0 ; | |
11150 | char *kwnames[] = { | |
11151 | (char *) "self", NULL | |
11152 | }; | |
11153 | ||
11154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_ReleaseCapture",kwnames,&obj0)) goto fail; | |
11155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
11156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11157 | { | |
11158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11159 | result = (bool)(arg1)->ReleaseCapture(); | |
11160 | ||
11161 | wxPyEndAllowThreads(__tstate); | |
11162 | if (PyErr_Occurred()) SWIG_fail; | |
11163 | } | |
11164 | { | |
11165 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11166 | } | |
11167 | return resultobj; | |
11168 | fail: | |
11169 | return NULL; | |
11170 | } | |
11171 | ||
11172 | ||
11173 | static PyObject * Joystick_swigregister(PyObject *, PyObject *args) { | |
11174 | PyObject *obj; | |
11175 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11176 | SWIG_TypeClientData(SWIGTYPE_p_wxJoystick, obj); | |
11177 | Py_INCREF(obj); | |
11178 | return Py_BuildValue((char *)""); | |
11179 | } | |
11180 | static PyObject *_wrap_JoystickEvent_m_pos_set(PyObject *, PyObject *args, PyObject *kwargs) { | |
11181 | PyObject *resultobj; | |
11182 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11183 | wxPoint *arg2 = (wxPoint *) 0 ; | |
11184 | PyObject * obj0 = 0 ; | |
11185 | PyObject * obj1 = 0 ; | |
11186 | char *kwnames[] = { | |
11187 | (char *) "self",(char *) "m_pos", NULL | |
11188 | }; | |
11189 | ||
11190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail; | |
11191 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11192 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11193 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint, | |
11194 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11195 | if (arg1) (arg1)->m_pos = *arg2; | |
11196 | ||
11197 | Py_INCREF(Py_None); resultobj = Py_None; | |
11198 | return resultobj; | |
11199 | fail: | |
11200 | return NULL; | |
11201 | } | |
11202 | ||
11203 | ||
11204 | static PyObject *_wrap_JoystickEvent_m_pos_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
11205 | PyObject *resultobj; | |
11206 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11207 | wxPoint *result; | |
11208 | PyObject * obj0 = 0 ; | |
11209 | char *kwnames[] = { | |
11210 | (char *) "self", NULL | |
11211 | }; | |
11212 | ||
11213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_pos_get",kwnames,&obj0)) goto fail; | |
11214 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11215 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11216 | result = (wxPoint *)& ((arg1)->m_pos); | |
11217 | ||
11218 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); | |
11219 | return resultobj; | |
11220 | fail: | |
11221 | return NULL; | |
11222 | } | |
11223 | ||
11224 | ||
11225 | static PyObject *_wrap_JoystickEvent_m_zPosition_set(PyObject *, PyObject *args, PyObject *kwargs) { | |
11226 | PyObject *resultobj; | |
11227 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11228 | int arg2 ; | |
11229 | PyObject * obj0 = 0 ; | |
11230 | PyObject * obj1 = 0 ; | |
11231 | char *kwnames[] = { | |
11232 | (char *) "self",(char *) "m_zPosition", NULL | |
11233 | }; | |
11234 | ||
11235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_zPosition_set",kwnames,&obj0,&obj1)) goto fail; | |
11236 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11237 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11238 | arg2 = (int)SWIG_As_int(obj1); | |
11239 | if (PyErr_Occurred()) SWIG_fail; | |
11240 | if (arg1) (arg1)->m_zPosition = arg2; | |
11241 | ||
11242 | Py_INCREF(Py_None); resultobj = Py_None; | |
11243 | return resultobj; | |
11244 | fail: | |
11245 | return NULL; | |
11246 | } | |
11247 | ||
11248 | ||
11249 | static PyObject *_wrap_JoystickEvent_m_zPosition_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
11250 | PyObject *resultobj; | |
11251 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11252 | int result; | |
11253 | PyObject * obj0 = 0 ; | |
11254 | char *kwnames[] = { | |
11255 | (char *) "self", NULL | |
11256 | }; | |
11257 | ||
11258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_zPosition_get",kwnames,&obj0)) goto fail; | |
11259 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11260 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11261 | result = (int) ((arg1)->m_zPosition); | |
11262 | ||
11263 | resultobj = SWIG_From_int((int)result); | |
11264 | return resultobj; | |
11265 | fail: | |
11266 | return NULL; | |
11267 | } | |
11268 | ||
11269 | ||
11270 | static PyObject *_wrap_JoystickEvent_m_buttonChange_set(PyObject *, 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 *) "m_buttonChange", NULL | |
11278 | }; | |
11279 | ||
11280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonChange_set",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_As_int(obj1); | |
11284 | if (PyErr_Occurred()) SWIG_fail; | |
11285 | if (arg1) (arg1)->m_buttonChange = arg2; | |
11286 | ||
11287 | Py_INCREF(Py_None); resultobj = Py_None; | |
11288 | return resultobj; | |
11289 | fail: | |
11290 | return NULL; | |
11291 | } | |
11292 | ||
11293 | ||
11294 | static PyObject *_wrap_JoystickEvent_m_buttonChange_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
11295 | PyObject *resultobj; | |
11296 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11297 | int result; | |
11298 | PyObject * obj0 = 0 ; | |
11299 | char *kwnames[] = { | |
11300 | (char *) "self", NULL | |
11301 | }; | |
11302 | ||
11303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonChange_get",kwnames,&obj0)) goto fail; | |
11304 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11305 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11306 | result = (int) ((arg1)->m_buttonChange); | |
11307 | ||
11308 | resultobj = SWIG_From_int((int)result); | |
11309 | return resultobj; | |
11310 | fail: | |
11311 | return NULL; | |
11312 | } | |
11313 | ||
11314 | ||
11315 | static PyObject *_wrap_JoystickEvent_m_buttonState_set(PyObject *, PyObject *args, PyObject *kwargs) { | |
11316 | PyObject *resultobj; | |
11317 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11318 | int arg2 ; | |
11319 | PyObject * obj0 = 0 ; | |
11320 | PyObject * obj1 = 0 ; | |
11321 | char *kwnames[] = { | |
11322 | (char *) "self",(char *) "m_buttonState", NULL | |
11323 | }; | |
11324 | ||
11325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonState_set",kwnames,&obj0,&obj1)) goto fail; | |
11326 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11327 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11328 | arg2 = (int)SWIG_As_int(obj1); | |
11329 | if (PyErr_Occurred()) SWIG_fail; | |
11330 | if (arg1) (arg1)->m_buttonState = arg2; | |
11331 | ||
11332 | Py_INCREF(Py_None); resultobj = Py_None; | |
11333 | return resultobj; | |
11334 | fail: | |
11335 | return NULL; | |
11336 | } | |
11337 | ||
11338 | ||
11339 | static PyObject *_wrap_JoystickEvent_m_buttonState_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
11340 | PyObject *resultobj; | |
11341 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11342 | int result; | |
11343 | PyObject * obj0 = 0 ; | |
11344 | char *kwnames[] = { | |
11345 | (char *) "self", NULL | |
11346 | }; | |
11347 | ||
11348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonState_get",kwnames,&obj0)) goto fail; | |
11349 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11351 | result = (int) ((arg1)->m_buttonState); | |
11352 | ||
11353 | resultobj = SWIG_From_int((int)result); | |
11354 | return resultobj; | |
11355 | fail: | |
11356 | return NULL; | |
11357 | } | |
11358 | ||
11359 | ||
11360 | static PyObject *_wrap_JoystickEvent_m_joyStick_set(PyObject *, 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 *) "m_joyStick", NULL | |
11368 | }; | |
11369 | ||
11370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_joyStick_set",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_As_int(obj1); | |
11374 | if (PyErr_Occurred()) SWIG_fail; | |
11375 | if (arg1) (arg1)->m_joyStick = arg2; | |
11376 | ||
11377 | Py_INCREF(Py_None); resultobj = Py_None; | |
11378 | return resultobj; | |
11379 | fail: | |
11380 | return NULL; | |
11381 | } | |
11382 | ||
11383 | ||
11384 | static PyObject *_wrap_JoystickEvent_m_joyStick_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
11385 | PyObject *resultobj; | |
11386 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11387 | int result; | |
11388 | PyObject * obj0 = 0 ; | |
11389 | char *kwnames[] = { | |
11390 | (char *) "self", NULL | |
11391 | }; | |
11392 | ||
11393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_joyStick_get",kwnames,&obj0)) goto fail; | |
11394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11396 | result = (int) ((arg1)->m_joyStick); | |
11397 | ||
11398 | resultobj = SWIG_From_int((int)result); | |
11399 | return resultobj; | |
11400 | fail: | |
11401 | return NULL; | |
11402 | } | |
11403 | ||
11404 | ||
11405 | static PyObject *_wrap_new_JoystickEvent(PyObject *, PyObject *args, PyObject *kwargs) { | |
11406 | PyObject *resultobj; | |
11407 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
11408 | int arg2 = (int) 0 ; | |
11409 | int arg3 = (int) wxJOYSTICK1 ; | |
11410 | int arg4 = (int) 0 ; | |
11411 | wxJoystickEvent *result; | |
11412 | PyObject * obj0 = 0 ; | |
11413 | PyObject * obj1 = 0 ; | |
11414 | PyObject * obj2 = 0 ; | |
11415 | PyObject * obj3 = 0 ; | |
11416 | char *kwnames[] = { | |
11417 | (char *) "type",(char *) "state",(char *) "joystick",(char *) "change", NULL | |
11418 | }; | |
11419 | ||
11420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_JoystickEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
11421 | if (obj0) { | |
11422 | arg1 = (wxEventType)SWIG_As_int(obj0); | |
11423 | if (PyErr_Occurred()) SWIG_fail; | |
11424 | } | |
11425 | if (obj1) { | |
11426 | arg2 = (int)SWIG_As_int(obj1); | |
11427 | if (PyErr_Occurred()) SWIG_fail; | |
11428 | } | |
11429 | if (obj2) { | |
11430 | arg3 = (int)SWIG_As_int(obj2); | |
11431 | if (PyErr_Occurred()) SWIG_fail; | |
11432 | } | |
11433 | if (obj3) { | |
11434 | arg4 = (int)SWIG_As_int(obj3); | |
11435 | if (PyErr_Occurred()) SWIG_fail; | |
11436 | } | |
11437 | { | |
11438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11439 | result = (wxJoystickEvent *)new wxJoystickEvent(arg1,arg2,arg3,arg4); | |
11440 | ||
11441 | wxPyEndAllowThreads(__tstate); | |
11442 | if (PyErr_Occurred()) SWIG_fail; | |
11443 | } | |
11444 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystickEvent, 1); | |
11445 | return resultobj; | |
11446 | fail: | |
11447 | return NULL; | |
11448 | } | |
11449 | ||
11450 | ||
11451 | static PyObject *_wrap_JoystickEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { | |
11452 | PyObject *resultobj; | |
11453 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11454 | wxPoint result; | |
11455 | PyObject * obj0 = 0 ; | |
11456 | char *kwnames[] = { | |
11457 | (char *) "self", NULL | |
11458 | }; | |
11459 | ||
11460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetPosition",kwnames,&obj0)) goto fail; | |
11461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11463 | { | |
11464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11465 | result = ((wxJoystickEvent const *)arg1)->GetPosition(); | |
11466 | ||
11467 | wxPyEndAllowThreads(__tstate); | |
11468 | if (PyErr_Occurred()) SWIG_fail; | |
11469 | } | |
11470 | { | |
11471 | wxPoint * resultptr; | |
11472 | resultptr = new wxPoint((wxPoint &) result); | |
11473 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
11474 | } | |
11475 | return resultobj; | |
11476 | fail: | |
11477 | return NULL; | |
11478 | } | |
11479 | ||
11480 | ||
11481 | static PyObject *_wrap_JoystickEvent_GetZPosition(PyObject *, PyObject *args, PyObject *kwargs) { | |
11482 | PyObject *resultobj; | |
11483 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11484 | int result; | |
11485 | PyObject * obj0 = 0 ; | |
11486 | char *kwnames[] = { | |
11487 | (char *) "self", NULL | |
11488 | }; | |
11489 | ||
11490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetZPosition",kwnames,&obj0)) goto fail; | |
11491 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11492 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11493 | { | |
11494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11495 | result = (int)((wxJoystickEvent const *)arg1)->GetZPosition(); | |
11496 | ||
11497 | wxPyEndAllowThreads(__tstate); | |
11498 | if (PyErr_Occurred()) SWIG_fail; | |
11499 | } | |
11500 | resultobj = SWIG_From_int((int)result); | |
11501 | return resultobj; | |
11502 | fail: | |
11503 | return NULL; | |
11504 | } | |
11505 | ||
11506 | ||
11507 | static PyObject *_wrap_JoystickEvent_GetButtonState(PyObject *, PyObject *args, PyObject *kwargs) { | |
11508 | PyObject *resultobj; | |
11509 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11510 | int result; | |
11511 | PyObject * obj0 = 0 ; | |
11512 | char *kwnames[] = { | |
11513 | (char *) "self", NULL | |
11514 | }; | |
11515 | ||
11516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonState",kwnames,&obj0)) goto fail; | |
11517 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11518 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11519 | { | |
11520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11521 | result = (int)((wxJoystickEvent const *)arg1)->GetButtonState(); | |
11522 | ||
11523 | wxPyEndAllowThreads(__tstate); | |
11524 | if (PyErr_Occurred()) SWIG_fail; | |
11525 | } | |
11526 | resultobj = SWIG_From_int((int)result); | |
11527 | return resultobj; | |
11528 | fail: | |
11529 | return NULL; | |
11530 | } | |
11531 | ||
11532 | ||
11533 | static PyObject *_wrap_JoystickEvent_GetButtonChange(PyObject *, PyObject *args, PyObject *kwargs) { | |
11534 | PyObject *resultobj; | |
11535 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11536 | int result; | |
11537 | PyObject * obj0 = 0 ; | |
11538 | char *kwnames[] = { | |
11539 | (char *) "self", NULL | |
11540 | }; | |
11541 | ||
11542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonChange",kwnames,&obj0)) goto fail; | |
11543 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11544 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11545 | { | |
11546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11547 | result = (int)((wxJoystickEvent const *)arg1)->GetButtonChange(); | |
11548 | ||
11549 | wxPyEndAllowThreads(__tstate); | |
11550 | if (PyErr_Occurred()) SWIG_fail; | |
11551 | } | |
11552 | resultobj = SWIG_From_int((int)result); | |
11553 | return resultobj; | |
11554 | fail: | |
11555 | return NULL; | |
11556 | } | |
11557 | ||
11558 | ||
11559 | static PyObject *_wrap_JoystickEvent_GetJoystick(PyObject *, PyObject *args, PyObject *kwargs) { | |
11560 | PyObject *resultobj; | |
11561 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11562 | int result; | |
11563 | PyObject * obj0 = 0 ; | |
11564 | char *kwnames[] = { | |
11565 | (char *) "self", NULL | |
11566 | }; | |
11567 | ||
11568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetJoystick",kwnames,&obj0)) goto fail; | |
11569 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11570 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11571 | { | |
11572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11573 | result = (int)((wxJoystickEvent const *)arg1)->GetJoystick(); | |
11574 | ||
11575 | wxPyEndAllowThreads(__tstate); | |
11576 | if (PyErr_Occurred()) SWIG_fail; | |
11577 | } | |
11578 | resultobj = SWIG_From_int((int)result); | |
11579 | return resultobj; | |
11580 | fail: | |
11581 | return NULL; | |
11582 | } | |
11583 | ||
11584 | ||
11585 | static PyObject *_wrap_JoystickEvent_SetJoystick(PyObject *, PyObject *args, PyObject *kwargs) { | |
11586 | PyObject *resultobj; | |
11587 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11588 | int arg2 ; | |
11589 | PyObject * obj0 = 0 ; | |
11590 | PyObject * obj1 = 0 ; | |
11591 | char *kwnames[] = { | |
11592 | (char *) "self",(char *) "stick", NULL | |
11593 | }; | |
11594 | ||
11595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetJoystick",kwnames,&obj0,&obj1)) goto fail; | |
11596 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11598 | arg2 = (int)SWIG_As_int(obj1); | |
11599 | if (PyErr_Occurred()) SWIG_fail; | |
11600 | { | |
11601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11602 | (arg1)->SetJoystick(arg2); | |
11603 | ||
11604 | wxPyEndAllowThreads(__tstate); | |
11605 | if (PyErr_Occurred()) SWIG_fail; | |
11606 | } | |
11607 | Py_INCREF(Py_None); resultobj = Py_None; | |
11608 | return resultobj; | |
11609 | fail: | |
11610 | return NULL; | |
11611 | } | |
11612 | ||
11613 | ||
11614 | static PyObject *_wrap_JoystickEvent_SetButtonState(PyObject *, PyObject *args, PyObject *kwargs) { | |
11615 | PyObject *resultobj; | |
11616 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11617 | int arg2 ; | |
11618 | PyObject * obj0 = 0 ; | |
11619 | PyObject * obj1 = 0 ; | |
11620 | char *kwnames[] = { | |
11621 | (char *) "self",(char *) "state", NULL | |
11622 | }; | |
11623 | ||
11624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonState",kwnames,&obj0,&obj1)) goto fail; | |
11625 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11627 | arg2 = (int)SWIG_As_int(obj1); | |
11628 | if (PyErr_Occurred()) SWIG_fail; | |
11629 | { | |
11630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11631 | (arg1)->SetButtonState(arg2); | |
11632 | ||
11633 | wxPyEndAllowThreads(__tstate); | |
11634 | if (PyErr_Occurred()) SWIG_fail; | |
11635 | } | |
11636 | Py_INCREF(Py_None); resultobj = Py_None; | |
11637 | return resultobj; | |
11638 | fail: | |
11639 | return NULL; | |
11640 | } | |
11641 | ||
11642 | ||
11643 | static PyObject *_wrap_JoystickEvent_SetButtonChange(PyObject *, PyObject *args, PyObject *kwargs) { | |
11644 | PyObject *resultobj; | |
11645 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11646 | int arg2 ; | |
11647 | PyObject * obj0 = 0 ; | |
11648 | PyObject * obj1 = 0 ; | |
11649 | char *kwnames[] = { | |
11650 | (char *) "self",(char *) "change", NULL | |
11651 | }; | |
11652 | ||
11653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonChange",kwnames,&obj0,&obj1)) goto fail; | |
11654 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11655 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11656 | arg2 = (int)SWIG_As_int(obj1); | |
11657 | if (PyErr_Occurred()) SWIG_fail; | |
11658 | { | |
11659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11660 | (arg1)->SetButtonChange(arg2); | |
11661 | ||
11662 | wxPyEndAllowThreads(__tstate); | |
11663 | if (PyErr_Occurred()) SWIG_fail; | |
11664 | } | |
11665 | Py_INCREF(Py_None); resultobj = Py_None; | |
11666 | return resultobj; | |
11667 | fail: | |
11668 | return NULL; | |
11669 | } | |
11670 | ||
11671 | ||
11672 | static PyObject *_wrap_JoystickEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { | |
11673 | PyObject *resultobj; | |
11674 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11675 | wxPoint *arg2 = 0 ; | |
11676 | wxPoint temp2 ; | |
11677 | PyObject * obj0 = 0 ; | |
11678 | PyObject * obj1 = 0 ; | |
11679 | char *kwnames[] = { | |
11680 | (char *) "self",(char *) "pos", NULL | |
11681 | }; | |
11682 | ||
11683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
11684 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11685 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11686 | { | |
11687 | arg2 = &temp2; | |
11688 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11689 | } | |
11690 | { | |
11691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11692 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
11693 | ||
11694 | wxPyEndAllowThreads(__tstate); | |
11695 | if (PyErr_Occurred()) SWIG_fail; | |
11696 | } | |
11697 | Py_INCREF(Py_None); resultobj = Py_None; | |
11698 | return resultobj; | |
11699 | fail: | |
11700 | return NULL; | |
11701 | } | |
11702 | ||
11703 | ||
11704 | static PyObject *_wrap_JoystickEvent_SetZPosition(PyObject *, PyObject *args, PyObject *kwargs) { | |
11705 | PyObject *resultobj; | |
11706 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11707 | int arg2 ; | |
11708 | PyObject * obj0 = 0 ; | |
11709 | PyObject * obj1 = 0 ; | |
11710 | char *kwnames[] = { | |
11711 | (char *) "self",(char *) "zPos", NULL | |
11712 | }; | |
11713 | ||
11714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetZPosition",kwnames,&obj0,&obj1)) goto fail; | |
11715 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11716 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11717 | arg2 = (int)SWIG_As_int(obj1); | |
11718 | if (PyErr_Occurred()) SWIG_fail; | |
11719 | { | |
11720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11721 | (arg1)->SetZPosition(arg2); | |
11722 | ||
11723 | wxPyEndAllowThreads(__tstate); | |
11724 | if (PyErr_Occurred()) SWIG_fail; | |
11725 | } | |
11726 | Py_INCREF(Py_None); resultobj = Py_None; | |
11727 | return resultobj; | |
11728 | fail: | |
11729 | return NULL; | |
11730 | } | |
11731 | ||
11732 | ||
11733 | static PyObject *_wrap_JoystickEvent_IsButton(PyObject *, PyObject *args, PyObject *kwargs) { | |
11734 | PyObject *resultobj; | |
11735 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11736 | bool result; | |
11737 | PyObject * obj0 = 0 ; | |
11738 | char *kwnames[] = { | |
11739 | (char *) "self", NULL | |
11740 | }; | |
11741 | ||
11742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsButton",kwnames,&obj0)) goto fail; | |
11743 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11744 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11745 | { | |
11746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11747 | result = (bool)((wxJoystickEvent const *)arg1)->IsButton(); | |
11748 | ||
11749 | wxPyEndAllowThreads(__tstate); | |
11750 | if (PyErr_Occurred()) SWIG_fail; | |
11751 | } | |
11752 | { | |
11753 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11754 | } | |
11755 | return resultobj; | |
11756 | fail: | |
11757 | return NULL; | |
11758 | } | |
11759 | ||
11760 | ||
11761 | static PyObject *_wrap_JoystickEvent_IsMove(PyObject *, PyObject *args, PyObject *kwargs) { | |
11762 | PyObject *resultobj; | |
11763 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11764 | bool result; | |
11765 | PyObject * obj0 = 0 ; | |
11766 | char *kwnames[] = { | |
11767 | (char *) "self", NULL | |
11768 | }; | |
11769 | ||
11770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsMove",kwnames,&obj0)) goto fail; | |
11771 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11772 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11773 | { | |
11774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11775 | result = (bool)((wxJoystickEvent const *)arg1)->IsMove(); | |
11776 | ||
11777 | wxPyEndAllowThreads(__tstate); | |
11778 | if (PyErr_Occurred()) SWIG_fail; | |
11779 | } | |
11780 | { | |
11781 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11782 | } | |
11783 | return resultobj; | |
11784 | fail: | |
11785 | return NULL; | |
11786 | } | |
11787 | ||
11788 | ||
11789 | static PyObject *_wrap_JoystickEvent_IsZMove(PyObject *, PyObject *args, PyObject *kwargs) { | |
11790 | PyObject *resultobj; | |
11791 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11792 | bool result; | |
11793 | PyObject * obj0 = 0 ; | |
11794 | char *kwnames[] = { | |
11795 | (char *) "self", NULL | |
11796 | }; | |
11797 | ||
11798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsZMove",kwnames,&obj0)) goto fail; | |
11799 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11800 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11801 | { | |
11802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11803 | result = (bool)((wxJoystickEvent const *)arg1)->IsZMove(); | |
11804 | ||
11805 | wxPyEndAllowThreads(__tstate); | |
11806 | if (PyErr_Occurred()) SWIG_fail; | |
11807 | } | |
11808 | { | |
11809 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11810 | } | |
11811 | return resultobj; | |
11812 | fail: | |
11813 | return NULL; | |
11814 | } | |
11815 | ||
11816 | ||
11817 | static PyObject *_wrap_JoystickEvent_ButtonDown(PyObject *, PyObject *args, PyObject *kwargs) { | |
11818 | PyObject *resultobj; | |
11819 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11820 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
11821 | bool result; | |
11822 | PyObject * obj0 = 0 ; | |
11823 | PyObject * obj1 = 0 ; | |
11824 | char *kwnames[] = { | |
11825 | (char *) "self",(char *) "but", NULL | |
11826 | }; | |
11827 | ||
11828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail; | |
11829 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11830 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11831 | if (obj1) { | |
11832 | arg2 = (int)SWIG_As_int(obj1); | |
11833 | if (PyErr_Occurred()) SWIG_fail; | |
11834 | } | |
11835 | { | |
11836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11837 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonDown(arg2); | |
11838 | ||
11839 | wxPyEndAllowThreads(__tstate); | |
11840 | if (PyErr_Occurred()) SWIG_fail; | |
11841 | } | |
11842 | { | |
11843 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11844 | } | |
11845 | return resultobj; | |
11846 | fail: | |
11847 | return NULL; | |
11848 | } | |
11849 | ||
11850 | ||
11851 | static PyObject *_wrap_JoystickEvent_ButtonUp(PyObject *, PyObject *args, PyObject *kwargs) { | |
11852 | PyObject *resultobj; | |
11853 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11854 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
11855 | bool result; | |
11856 | PyObject * obj0 = 0 ; | |
11857 | PyObject * obj1 = 0 ; | |
11858 | char *kwnames[] = { | |
11859 | (char *) "self",(char *) "but", NULL | |
11860 | }; | |
11861 | ||
11862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail; | |
11863 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11864 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11865 | if (obj1) { | |
11866 | arg2 = (int)SWIG_As_int(obj1); | |
11867 | if (PyErr_Occurred()) SWIG_fail; | |
11868 | } | |
11869 | { | |
11870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11871 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonUp(arg2); | |
11872 | ||
11873 | wxPyEndAllowThreads(__tstate); | |
11874 | if (PyErr_Occurred()) SWIG_fail; | |
11875 | } | |
11876 | { | |
11877 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11878 | } | |
11879 | return resultobj; | |
11880 | fail: | |
11881 | return NULL; | |
11882 | } | |
11883 | ||
11884 | ||
11885 | static PyObject *_wrap_JoystickEvent_ButtonIsDown(PyObject *, PyObject *args, PyObject *kwargs) { | |
11886 | PyObject *resultobj; | |
11887 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11888 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
11889 | bool result; | |
11890 | PyObject * obj0 = 0 ; | |
11891 | PyObject * obj1 = 0 ; | |
11892 | char *kwnames[] = { | |
11893 | (char *) "self",(char *) "but", NULL | |
11894 | }; | |
11895 | ||
11896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail; | |
11897 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11898 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11899 | if (obj1) { | |
11900 | arg2 = (int)SWIG_As_int(obj1); | |
11901 | if (PyErr_Occurred()) SWIG_fail; | |
11902 | } | |
11903 | { | |
11904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11905 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonIsDown(arg2); | |
11906 | ||
11907 | wxPyEndAllowThreads(__tstate); | |
11908 | if (PyErr_Occurred()) SWIG_fail; | |
11909 | } | |
11910 | { | |
11911 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11912 | } | |
11913 | return resultobj; | |
11914 | fail: | |
11915 | return NULL; | |
11916 | } | |
11917 | ||
11918 | ||
11919 | static PyObject * JoystickEvent_swigregister(PyObject *, PyObject *args) { | |
11920 | PyObject *obj; | |
11921 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11922 | SWIG_TypeClientData(SWIGTYPE_p_wxJoystickEvent, obj); | |
11923 | Py_INCREF(obj); | |
11924 | return Py_BuildValue((char *)""); | |
11925 | } | |
11926 | static PyObject *_wrap_new_Sound(PyObject *, PyObject *args, PyObject *kwargs) { | |
11927 | PyObject *resultobj; | |
11928 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
11929 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
11930 | wxSound *result; | |
11931 | bool temp1 = false ; | |
11932 | PyObject * obj0 = 0 ; | |
11933 | char *kwnames[] = { | |
11934 | (char *) "fileName", NULL | |
11935 | }; | |
11936 | ||
11937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Sound",kwnames,&obj0)) goto fail; | |
11938 | if (obj0) { | |
11939 | { | |
11940 | arg1 = wxString_in_helper(obj0); | |
11941 | if (arg1 == NULL) SWIG_fail; | |
11942 | temp1 = true; | |
11943 | } | |
11944 | } | |
11945 | { | |
11946 | if (!wxPyCheckForApp()) SWIG_fail; | |
11947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11948 | result = (wxSound *)new_wxSound((wxString const &)*arg1); | |
11949 | ||
11950 | wxPyEndAllowThreads(__tstate); | |
11951 | if (PyErr_Occurred()) SWIG_fail; | |
11952 | } | |
11953 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1); | |
11954 | { | |
11955 | if (temp1) | |
11956 | delete arg1; | |
11957 | } | |
11958 | return resultobj; | |
11959 | fail: | |
11960 | { | |
11961 | if (temp1) | |
11962 | delete arg1; | |
11963 | } | |
11964 | return NULL; | |
11965 | } | |
11966 | ||
11967 | ||
11968 | static PyObject *_wrap_new_SoundFromData(PyObject *, PyObject *args, PyObject *kwargs) { | |
11969 | PyObject *resultobj; | |
11970 | PyObject *arg1 = (PyObject *) 0 ; | |
11971 | wxSound *result; | |
11972 | PyObject * obj0 = 0 ; | |
11973 | char *kwnames[] = { | |
11974 | (char *) "data", NULL | |
11975 | }; | |
11976 | ||
11977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_SoundFromData",kwnames,&obj0)) goto fail; | |
11978 | arg1 = obj0; | |
11979 | { | |
11980 | if (!wxPyCheckForApp()) SWIG_fail; | |
11981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11982 | result = (wxSound *)new_wxSound(arg1); | |
11983 | ||
11984 | wxPyEndAllowThreads(__tstate); | |
11985 | if (PyErr_Occurred()) SWIG_fail; | |
11986 | } | |
11987 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1); | |
11988 | return resultobj; | |
11989 | fail: | |
11990 | return NULL; | |
11991 | } | |
11992 | ||
11993 | ||
11994 | static PyObject *_wrap_delete_Sound(PyObject *, PyObject *args, PyObject *kwargs) { | |
11995 | PyObject *resultobj; | |
11996 | wxSound *arg1 = (wxSound *) 0 ; | |
11997 | PyObject * obj0 = 0 ; | |
11998 | char *kwnames[] = { | |
11999 | (char *) "self", NULL | |
12000 | }; | |
12001 | ||
12002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Sound",kwnames,&obj0)) goto fail; | |
12003 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, | |
12004 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12005 | { | |
12006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12007 | delete arg1; | |
12008 | ||
12009 | wxPyEndAllowThreads(__tstate); | |
12010 | if (PyErr_Occurred()) SWIG_fail; | |
12011 | } | |
12012 | Py_INCREF(Py_None); resultobj = Py_None; | |
12013 | return resultobj; | |
12014 | fail: | |
12015 | return NULL; | |
12016 | } | |
12017 | ||
12018 | ||
12019 | static PyObject *_wrap_Sound_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
12020 | PyObject *resultobj; | |
12021 | wxSound *arg1 = (wxSound *) 0 ; | |
12022 | wxString *arg2 = 0 ; | |
12023 | bool result; | |
12024 | bool temp2 = false ; | |
12025 | PyObject * obj0 = 0 ; | |
12026 | PyObject * obj1 = 0 ; | |
12027 | char *kwnames[] = { | |
12028 | (char *) "self",(char *) "fileName", NULL | |
12029 | }; | |
12030 | ||
12031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_Create",kwnames,&obj0,&obj1)) goto fail; | |
12032 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, | |
12033 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12034 | { | |
12035 | arg2 = wxString_in_helper(obj1); | |
12036 | if (arg2 == NULL) SWIG_fail; | |
12037 | temp2 = true; | |
12038 | } | |
12039 | { | |
12040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12041 | result = (bool)(arg1)->Create((wxString const &)*arg2); | |
12042 | ||
12043 | wxPyEndAllowThreads(__tstate); | |
12044 | if (PyErr_Occurred()) SWIG_fail; | |
12045 | } | |
12046 | { | |
12047 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12048 | } | |
12049 | { | |
12050 | if (temp2) | |
12051 | delete arg2; | |
12052 | } | |
12053 | return resultobj; | |
12054 | fail: | |
12055 | { | |
12056 | if (temp2) | |
12057 | delete arg2; | |
12058 | } | |
12059 | return NULL; | |
12060 | } | |
12061 | ||
12062 | ||
12063 | static PyObject *_wrap_Sound_CreateFromData(PyObject *, PyObject *args, PyObject *kwargs) { | |
12064 | PyObject *resultobj; | |
12065 | wxSound *arg1 = (wxSound *) 0 ; | |
12066 | PyObject *arg2 = (PyObject *) 0 ; | |
12067 | bool result; | |
12068 | PyObject * obj0 = 0 ; | |
12069 | PyObject * obj1 = 0 ; | |
12070 | char *kwnames[] = { | |
12071 | (char *) "self",(char *) "data", NULL | |
12072 | }; | |
12073 | ||
12074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_CreateFromData",kwnames,&obj0,&obj1)) goto fail; | |
12075 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, | |
12076 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12077 | arg2 = obj1; | |
12078 | { | |
12079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12080 | result = (bool)wxSound_CreateFromData(arg1,arg2); | |
12081 | ||
12082 | wxPyEndAllowThreads(__tstate); | |
12083 | if (PyErr_Occurred()) SWIG_fail; | |
12084 | } | |
12085 | { | |
12086 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12087 | } | |
12088 | return resultobj; | |
12089 | fail: | |
12090 | return NULL; | |
12091 | } | |
12092 | ||
12093 | ||
12094 | static PyObject *_wrap_Sound_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { | |
12095 | PyObject *resultobj; | |
12096 | wxSound *arg1 = (wxSound *) 0 ; | |
12097 | bool result; | |
12098 | PyObject * obj0 = 0 ; | |
12099 | char *kwnames[] = { | |
12100 | (char *) "self", NULL | |
12101 | }; | |
12102 | ||
12103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sound_IsOk",kwnames,&obj0)) goto fail; | |
12104 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, | |
12105 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12106 | { | |
12107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12108 | result = (bool)(arg1)->IsOk(); | |
12109 | ||
12110 | wxPyEndAllowThreads(__tstate); | |
12111 | if (PyErr_Occurred()) SWIG_fail; | |
12112 | } | |
12113 | { | |
12114 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12115 | } | |
12116 | return resultobj; | |
12117 | fail: | |
12118 | return NULL; | |
12119 | } | |
12120 | ||
12121 | ||
12122 | static PyObject *_wrap_Sound_Play(PyObject *, PyObject *args, PyObject *kwargs) { | |
12123 | PyObject *resultobj; | |
12124 | wxSound *arg1 = (wxSound *) 0 ; | |
12125 | unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ; | |
12126 | bool result; | |
12127 | PyObject * obj0 = 0 ; | |
12128 | PyObject * obj1 = 0 ; | |
12129 | char *kwnames[] = { | |
12130 | (char *) "self",(char *) "flags", NULL | |
12131 | }; | |
12132 | ||
12133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_Play",kwnames,&obj0,&obj1)) goto fail; | |
12134 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, | |
12135 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12136 | if (obj1) { | |
12137 | arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1); | |
12138 | if (PyErr_Occurred()) SWIG_fail; | |
12139 | } | |
12140 | { | |
12141 | if (!wxPyCheckForApp()) SWIG_fail; | |
12142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12143 | result = (bool)((wxSound const *)arg1)->Play(arg2); | |
12144 | ||
12145 | wxPyEndAllowThreads(__tstate); | |
12146 | if (PyErr_Occurred()) SWIG_fail; | |
12147 | } | |
12148 | { | |
12149 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12150 | } | |
12151 | return resultobj; | |
12152 | fail: | |
12153 | return NULL; | |
12154 | } | |
12155 | ||
12156 | ||
12157 | static PyObject *_wrap_Sound_PlaySound(PyObject *, PyObject *args, PyObject *kwargs) { | |
12158 | PyObject *resultobj; | |
12159 | wxString *arg1 = 0 ; | |
12160 | unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ; | |
12161 | bool result; | |
12162 | bool temp1 = false ; | |
12163 | PyObject * obj0 = 0 ; | |
12164 | PyObject * obj1 = 0 ; | |
12165 | char *kwnames[] = { | |
12166 | (char *) "filename",(char *) "flags", NULL | |
12167 | }; | |
12168 | ||
12169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_PlaySound",kwnames,&obj0,&obj1)) goto fail; | |
12170 | { | |
12171 | arg1 = wxString_in_helper(obj0); | |
12172 | if (arg1 == NULL) SWIG_fail; | |
12173 | temp1 = true; | |
12174 | } | |
12175 | if (obj1) { | |
12176 | arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1); | |
12177 | if (PyErr_Occurred()) SWIG_fail; | |
12178 | } | |
12179 | { | |
12180 | if (!wxPyCheckForApp()) SWIG_fail; | |
12181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12182 | result = (bool)wxSound::Play((wxString const &)*arg1,arg2); | |
12183 | ||
12184 | wxPyEndAllowThreads(__tstate); | |
12185 | if (PyErr_Occurred()) SWIG_fail; | |
12186 | } | |
12187 | { | |
12188 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12189 | } | |
12190 | { | |
12191 | if (temp1) | |
12192 | delete arg1; | |
12193 | } | |
12194 | return resultobj; | |
12195 | fail: | |
12196 | { | |
12197 | if (temp1) | |
12198 | delete arg1; | |
12199 | } | |
12200 | return NULL; | |
12201 | } | |
12202 | ||
12203 | ||
12204 | static PyObject *_wrap_Sound_Stop(PyObject *, PyObject *args, PyObject *kwargs) { | |
12205 | PyObject *resultobj; | |
12206 | char *kwnames[] = { | |
12207 | NULL | |
12208 | }; | |
12209 | ||
12210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Sound_Stop",kwnames)) goto fail; | |
12211 | { | |
12212 | if (!wxPyCheckForApp()) SWIG_fail; | |
12213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12214 | wxSound::Stop(); | |
12215 | ||
12216 | wxPyEndAllowThreads(__tstate); | |
12217 | if (PyErr_Occurred()) SWIG_fail; | |
12218 | } | |
12219 | Py_INCREF(Py_None); resultobj = Py_None; | |
12220 | return resultobj; | |
12221 | fail: | |
12222 | return NULL; | |
12223 | } | |
12224 | ||
12225 | ||
12226 | static PyObject * Sound_swigregister(PyObject *, PyObject *args) { | |
12227 | PyObject *obj; | |
12228 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12229 | SWIG_TypeClientData(SWIGTYPE_p_wxSound, obj); | |
12230 | Py_INCREF(obj); | |
12231 | return Py_BuildValue((char *)""); | |
12232 | } | |
12233 | static PyObject *_wrap_new_FileTypeInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
12234 | PyObject *resultobj; | |
12235 | wxString *arg1 = 0 ; | |
12236 | wxString *arg2 = 0 ; | |
12237 | wxString *arg3 = 0 ; | |
12238 | wxString *arg4 = 0 ; | |
12239 | wxFileTypeInfo *result; | |
12240 | bool temp1 = false ; | |
12241 | bool temp2 = false ; | |
12242 | bool temp3 = false ; | |
12243 | bool temp4 = false ; | |
12244 | PyObject * obj0 = 0 ; | |
12245 | PyObject * obj1 = 0 ; | |
12246 | PyObject * obj2 = 0 ; | |
12247 | PyObject * obj3 = 0 ; | |
12248 | char *kwnames[] = { | |
12249 | (char *) "mimeType",(char *) "openCmd",(char *) "printCmd",(char *) "desc", NULL | |
12250 | }; | |
12251 | ||
12252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileTypeInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
12253 | { | |
12254 | arg1 = wxString_in_helper(obj0); | |
12255 | if (arg1 == NULL) SWIG_fail; | |
12256 | temp1 = true; | |
12257 | } | |
12258 | { | |
12259 | arg2 = wxString_in_helper(obj1); | |
12260 | if (arg2 == NULL) SWIG_fail; | |
12261 | temp2 = true; | |
12262 | } | |
12263 | { | |
12264 | arg3 = wxString_in_helper(obj2); | |
12265 | if (arg3 == NULL) SWIG_fail; | |
12266 | temp3 = true; | |
12267 | } | |
12268 | { | |
12269 | arg4 = wxString_in_helper(obj3); | |
12270 | if (arg4 == NULL) SWIG_fail; | |
12271 | temp4 = true; | |
12272 | } | |
12273 | { | |
12274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12275 | result = (wxFileTypeInfo *)new wxFileTypeInfo((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
12276 | ||
12277 | wxPyEndAllowThreads(__tstate); | |
12278 | if (PyErr_Occurred()) SWIG_fail; | |
12279 | } | |
12280 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); | |
12281 | { | |
12282 | if (temp1) | |
12283 | delete arg1; | |
12284 | } | |
12285 | { | |
12286 | if (temp2) | |
12287 | delete arg2; | |
12288 | } | |
12289 | { | |
12290 | if (temp3) | |
12291 | delete arg3; | |
12292 | } | |
12293 | { | |
12294 | if (temp4) | |
12295 | delete arg4; | |
12296 | } | |
12297 | return resultobj; | |
12298 | fail: | |
12299 | { | |
12300 | if (temp1) | |
12301 | delete arg1; | |
12302 | } | |
12303 | { | |
12304 | if (temp2) | |
12305 | delete arg2; | |
12306 | } | |
12307 | { | |
12308 | if (temp3) | |
12309 | delete arg3; | |
12310 | } | |
12311 | { | |
12312 | if (temp4) | |
12313 | delete arg4; | |
12314 | } | |
12315 | return NULL; | |
12316 | } | |
12317 | ||
12318 | ||
12319 | static PyObject *_wrap_new_FileTypeInfoSequence(PyObject *, PyObject *args, PyObject *kwargs) { | |
12320 | PyObject *resultobj; | |
12321 | wxArrayString *arg1 = 0 ; | |
12322 | wxFileTypeInfo *result; | |
12323 | bool temp1 = false ; | |
12324 | PyObject * obj0 = 0 ; | |
12325 | char *kwnames[] = { | |
12326 | (char *) "sArray", NULL | |
12327 | }; | |
12328 | ||
12329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileTypeInfoSequence",kwnames,&obj0)) goto fail; | |
12330 | { | |
12331 | if (! PySequence_Check(obj0)) { | |
12332 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
12333 | SWIG_fail; | |
12334 | } | |
12335 | arg1 = new wxArrayString; | |
12336 | temp1 = true; | |
12337 | int i, len=PySequence_Length(obj0); | |
12338 | for (i=0; i<len; i++) { | |
12339 | PyObject* item = PySequence_GetItem(obj0, i); | |
12340 | #if wxUSE_UNICODE | |
12341 | PyObject* str = PyObject_Unicode(item); | |
12342 | #else | |
12343 | PyObject* str = PyObject_Str(item); | |
12344 | #endif | |
12345 | if (PyErr_Occurred()) SWIG_fail; | |
12346 | arg1->Add(Py2wxString(str)); | |
12347 | Py_DECREF(item); | |
12348 | Py_DECREF(str); | |
12349 | } | |
12350 | } | |
12351 | { | |
12352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12353 | result = (wxFileTypeInfo *)new wxFileTypeInfo((wxArrayString const &)*arg1); | |
12354 | ||
12355 | wxPyEndAllowThreads(__tstate); | |
12356 | if (PyErr_Occurred()) SWIG_fail; | |
12357 | } | |
12358 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); | |
12359 | { | |
12360 | if (temp1) delete arg1; | |
12361 | } | |
12362 | return resultobj; | |
12363 | fail: | |
12364 | { | |
12365 | if (temp1) delete arg1; | |
12366 | } | |
12367 | return NULL; | |
12368 | } | |
12369 | ||
12370 | ||
12371 | static PyObject *_wrap_new_NullFileTypeInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
12372 | PyObject *resultobj; | |
12373 | wxFileTypeInfo *result; | |
12374 | char *kwnames[] = { | |
12375 | NULL | |
12376 | }; | |
12377 | ||
12378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NullFileTypeInfo",kwnames)) goto fail; | |
12379 | { | |
12380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12381 | result = (wxFileTypeInfo *)new wxFileTypeInfo(); | |
12382 | ||
12383 | wxPyEndAllowThreads(__tstate); | |
12384 | if (PyErr_Occurred()) SWIG_fail; | |
12385 | } | |
12386 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); | |
12387 | return resultobj; | |
12388 | fail: | |
12389 | return NULL; | |
12390 | } | |
12391 | ||
12392 | ||
12393 | static PyObject *_wrap_FileTypeInfo_IsValid(PyObject *, PyObject *args, PyObject *kwargs) { | |
12394 | PyObject *resultobj; | |
12395 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12396 | bool result; | |
12397 | PyObject * obj0 = 0 ; | |
12398 | char *kwnames[] = { | |
12399 | (char *) "self", NULL | |
12400 | }; | |
12401 | ||
12402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_IsValid",kwnames,&obj0)) goto fail; | |
12403 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12405 | { | |
12406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12407 | result = (bool)((wxFileTypeInfo const *)arg1)->IsValid(); | |
12408 | ||
12409 | wxPyEndAllowThreads(__tstate); | |
12410 | if (PyErr_Occurred()) SWIG_fail; | |
12411 | } | |
12412 | { | |
12413 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12414 | } | |
12415 | return resultobj; | |
12416 | fail: | |
12417 | return NULL; | |
12418 | } | |
12419 | ||
12420 | ||
12421 | static PyObject *_wrap_FileTypeInfo_SetIcon(PyObject *, PyObject *args, PyObject *kwargs) { | |
12422 | PyObject *resultobj; | |
12423 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12424 | wxString *arg2 = 0 ; | |
12425 | int arg3 = (int) 0 ; | |
12426 | bool temp2 = false ; | |
12427 | PyObject * obj0 = 0 ; | |
12428 | PyObject * obj1 = 0 ; | |
12429 | PyObject * obj2 = 0 ; | |
12430 | char *kwnames[] = { | |
12431 | (char *) "self",(char *) "iconFile",(char *) "iconIndex", NULL | |
12432 | }; | |
12433 | ||
12434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileTypeInfo_SetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12435 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12436 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12437 | { | |
12438 | arg2 = wxString_in_helper(obj1); | |
12439 | if (arg2 == NULL) SWIG_fail; | |
12440 | temp2 = true; | |
12441 | } | |
12442 | if (obj2) { | |
12443 | arg3 = (int)SWIG_As_int(obj2); | |
12444 | if (PyErr_Occurred()) SWIG_fail; | |
12445 | } | |
12446 | { | |
12447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12448 | (arg1)->SetIcon((wxString const &)*arg2,arg3); | |
12449 | ||
12450 | wxPyEndAllowThreads(__tstate); | |
12451 | if (PyErr_Occurred()) SWIG_fail; | |
12452 | } | |
12453 | Py_INCREF(Py_None); resultobj = Py_None; | |
12454 | { | |
12455 | if (temp2) | |
12456 | delete arg2; | |
12457 | } | |
12458 | return resultobj; | |
12459 | fail: | |
12460 | { | |
12461 | if (temp2) | |
12462 | delete arg2; | |
12463 | } | |
12464 | return NULL; | |
12465 | } | |
12466 | ||
12467 | ||
12468 | static PyObject *_wrap_FileTypeInfo_SetShortDesc(PyObject *, PyObject *args, PyObject *kwargs) { | |
12469 | PyObject *resultobj; | |
12470 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12471 | wxString *arg2 = 0 ; | |
12472 | bool temp2 = false ; | |
12473 | PyObject * obj0 = 0 ; | |
12474 | PyObject * obj1 = 0 ; | |
12475 | char *kwnames[] = { | |
12476 | (char *) "self",(char *) "shortDesc", NULL | |
12477 | }; | |
12478 | ||
12479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileTypeInfo_SetShortDesc",kwnames,&obj0,&obj1)) goto fail; | |
12480 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12481 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12482 | { | |
12483 | arg2 = wxString_in_helper(obj1); | |
12484 | if (arg2 == NULL) SWIG_fail; | |
12485 | temp2 = true; | |
12486 | } | |
12487 | { | |
12488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12489 | (arg1)->SetShortDesc((wxString const &)*arg2); | |
12490 | ||
12491 | wxPyEndAllowThreads(__tstate); | |
12492 | if (PyErr_Occurred()) SWIG_fail; | |
12493 | } | |
12494 | Py_INCREF(Py_None); resultobj = Py_None; | |
12495 | { | |
12496 | if (temp2) | |
12497 | delete arg2; | |
12498 | } | |
12499 | return resultobj; | |
12500 | fail: | |
12501 | { | |
12502 | if (temp2) | |
12503 | delete arg2; | |
12504 | } | |
12505 | return NULL; | |
12506 | } | |
12507 | ||
12508 | ||
12509 | static PyObject *_wrap_FileTypeInfo_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) { | |
12510 | PyObject *resultobj; | |
12511 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12512 | wxString *result; | |
12513 | PyObject * obj0 = 0 ; | |
12514 | char *kwnames[] = { | |
12515 | (char *) "self", NULL | |
12516 | }; | |
12517 | ||
12518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetMimeType",kwnames,&obj0)) goto fail; | |
12519 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12520 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12521 | { | |
12522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12523 | { | |
12524 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetMimeType(); | |
12525 | result = (wxString *) &_result_ref; | |
12526 | } | |
12527 | ||
12528 | wxPyEndAllowThreads(__tstate); | |
12529 | if (PyErr_Occurred()) SWIG_fail; | |
12530 | } | |
12531 | { | |
12532 | #if wxUSE_UNICODE | |
12533 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12534 | #else | |
12535 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12536 | #endif | |
12537 | } | |
12538 | return resultobj; | |
12539 | fail: | |
12540 | return NULL; | |
12541 | } | |
12542 | ||
12543 | ||
12544 | static PyObject *_wrap_FileTypeInfo_GetOpenCommand(PyObject *, PyObject *args, PyObject *kwargs) { | |
12545 | PyObject *resultobj; | |
12546 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12547 | wxString *result; | |
12548 | PyObject * obj0 = 0 ; | |
12549 | char *kwnames[] = { | |
12550 | (char *) "self", NULL | |
12551 | }; | |
12552 | ||
12553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetOpenCommand",kwnames,&obj0)) goto fail; | |
12554 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12555 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12556 | { | |
12557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12558 | { | |
12559 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetOpenCommand(); | |
12560 | result = (wxString *) &_result_ref; | |
12561 | } | |
12562 | ||
12563 | wxPyEndAllowThreads(__tstate); | |
12564 | if (PyErr_Occurred()) SWIG_fail; | |
12565 | } | |
12566 | { | |
12567 | #if wxUSE_UNICODE | |
12568 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12569 | #else | |
12570 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12571 | #endif | |
12572 | } | |
12573 | return resultobj; | |
12574 | fail: | |
12575 | return NULL; | |
12576 | } | |
12577 | ||
12578 | ||
12579 | static PyObject *_wrap_FileTypeInfo_GetPrintCommand(PyObject *, PyObject *args, PyObject *kwargs) { | |
12580 | PyObject *resultobj; | |
12581 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12582 | wxString *result; | |
12583 | PyObject * obj0 = 0 ; | |
12584 | char *kwnames[] = { | |
12585 | (char *) "self", NULL | |
12586 | }; | |
12587 | ||
12588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetPrintCommand",kwnames,&obj0)) goto fail; | |
12589 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12591 | { | |
12592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12593 | { | |
12594 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetPrintCommand(); | |
12595 | result = (wxString *) &_result_ref; | |
12596 | } | |
12597 | ||
12598 | wxPyEndAllowThreads(__tstate); | |
12599 | if (PyErr_Occurred()) SWIG_fail; | |
12600 | } | |
12601 | { | |
12602 | #if wxUSE_UNICODE | |
12603 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12604 | #else | |
12605 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12606 | #endif | |
12607 | } | |
12608 | return resultobj; | |
12609 | fail: | |
12610 | return NULL; | |
12611 | } | |
12612 | ||
12613 | ||
12614 | static PyObject *_wrap_FileTypeInfo_GetShortDesc(PyObject *, PyObject *args, PyObject *kwargs) { | |
12615 | PyObject *resultobj; | |
12616 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12617 | wxString *result; | |
12618 | PyObject * obj0 = 0 ; | |
12619 | char *kwnames[] = { | |
12620 | (char *) "self", NULL | |
12621 | }; | |
12622 | ||
12623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetShortDesc",kwnames,&obj0)) goto fail; | |
12624 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12625 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12626 | { | |
12627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12628 | { | |
12629 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetShortDesc(); | |
12630 | result = (wxString *) &_result_ref; | |
12631 | } | |
12632 | ||
12633 | wxPyEndAllowThreads(__tstate); | |
12634 | if (PyErr_Occurred()) SWIG_fail; | |
12635 | } | |
12636 | { | |
12637 | #if wxUSE_UNICODE | |
12638 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12639 | #else | |
12640 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12641 | #endif | |
12642 | } | |
12643 | return resultobj; | |
12644 | fail: | |
12645 | return NULL; | |
12646 | } | |
12647 | ||
12648 | ||
12649 | static PyObject *_wrap_FileTypeInfo_GetDescription(PyObject *, PyObject *args, PyObject *kwargs) { | |
12650 | PyObject *resultobj; | |
12651 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12652 | wxString *result; | |
12653 | PyObject * obj0 = 0 ; | |
12654 | char *kwnames[] = { | |
12655 | (char *) "self", NULL | |
12656 | }; | |
12657 | ||
12658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetDescription",kwnames,&obj0)) goto fail; | |
12659 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12660 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12661 | { | |
12662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12663 | { | |
12664 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetDescription(); | |
12665 | result = (wxString *) &_result_ref; | |
12666 | } | |
12667 | ||
12668 | wxPyEndAllowThreads(__tstate); | |
12669 | if (PyErr_Occurred()) SWIG_fail; | |
12670 | } | |
12671 | { | |
12672 | #if wxUSE_UNICODE | |
12673 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12674 | #else | |
12675 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12676 | #endif | |
12677 | } | |
12678 | return resultobj; | |
12679 | fail: | |
12680 | return NULL; | |
12681 | } | |
12682 | ||
12683 | ||
12684 | static PyObject *_wrap_FileTypeInfo_GetExtensions(PyObject *, PyObject *args, PyObject *kwargs) { | |
12685 | PyObject *resultobj; | |
12686 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12687 | wxArrayString *result; | |
12688 | PyObject * obj0 = 0 ; | |
12689 | char *kwnames[] = { | |
12690 | (char *) "self", NULL | |
12691 | }; | |
12692 | ||
12693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensions",kwnames,&obj0)) goto fail; | |
12694 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12695 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12696 | { | |
12697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12698 | { | |
12699 | wxArrayString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetExtensions(); | |
12700 | result = (wxArrayString *) &_result_ref; | |
12701 | } | |
12702 | ||
12703 | wxPyEndAllowThreads(__tstate); | |
12704 | if (PyErr_Occurred()) SWIG_fail; | |
12705 | } | |
12706 | { | |
12707 | resultobj = wxArrayString2PyList_helper(*result); | |
12708 | } | |
12709 | return resultobj; | |
12710 | fail: | |
12711 | return NULL; | |
12712 | } | |
12713 | ||
12714 | ||
12715 | static PyObject *_wrap_FileTypeInfo_GetExtensionsCount(PyObject *, PyObject *args, PyObject *kwargs) { | |
12716 | PyObject *resultobj; | |
12717 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12718 | int result; | |
12719 | PyObject * obj0 = 0 ; | |
12720 | char *kwnames[] = { | |
12721 | (char *) "self", NULL | |
12722 | }; | |
12723 | ||
12724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensionsCount",kwnames,&obj0)) goto fail; | |
12725 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12727 | { | |
12728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12729 | result = (int)((wxFileTypeInfo const *)arg1)->GetExtensionsCount(); | |
12730 | ||
12731 | wxPyEndAllowThreads(__tstate); | |
12732 | if (PyErr_Occurred()) SWIG_fail; | |
12733 | } | |
12734 | resultobj = SWIG_From_int((int)result); | |
12735 | return resultobj; | |
12736 | fail: | |
12737 | return NULL; | |
12738 | } | |
12739 | ||
12740 | ||
12741 | static PyObject *_wrap_FileTypeInfo_GetIconFile(PyObject *, PyObject *args, PyObject *kwargs) { | |
12742 | PyObject *resultobj; | |
12743 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12744 | wxString *result; | |
12745 | PyObject * obj0 = 0 ; | |
12746 | char *kwnames[] = { | |
12747 | (char *) "self", NULL | |
12748 | }; | |
12749 | ||
12750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconFile",kwnames,&obj0)) goto fail; | |
12751 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12752 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12753 | { | |
12754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12755 | { | |
12756 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetIconFile(); | |
12757 | result = (wxString *) &_result_ref; | |
12758 | } | |
12759 | ||
12760 | wxPyEndAllowThreads(__tstate); | |
12761 | if (PyErr_Occurred()) SWIG_fail; | |
12762 | } | |
12763 | { | |
12764 | #if wxUSE_UNICODE | |
12765 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12766 | #else | |
12767 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12768 | #endif | |
12769 | } | |
12770 | return resultobj; | |
12771 | fail: | |
12772 | return NULL; | |
12773 | } | |
12774 | ||
12775 | ||
12776 | static PyObject *_wrap_FileTypeInfo_GetIconIndex(PyObject *, PyObject *args, PyObject *kwargs) { | |
12777 | PyObject *resultobj; | |
12778 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12779 | int result; | |
12780 | PyObject * obj0 = 0 ; | |
12781 | char *kwnames[] = { | |
12782 | (char *) "self", NULL | |
12783 | }; | |
12784 | ||
12785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconIndex",kwnames,&obj0)) goto fail; | |
12786 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12787 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12788 | { | |
12789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12790 | result = (int)((wxFileTypeInfo const *)arg1)->GetIconIndex(); | |
12791 | ||
12792 | wxPyEndAllowThreads(__tstate); | |
12793 | if (PyErr_Occurred()) SWIG_fail; | |
12794 | } | |
12795 | resultobj = SWIG_From_int((int)result); | |
12796 | return resultobj; | |
12797 | fail: | |
12798 | return NULL; | |
12799 | } | |
12800 | ||
12801 | ||
12802 | static PyObject * FileTypeInfo_swigregister(PyObject *, PyObject *args) { | |
12803 | PyObject *obj; | |
12804 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12805 | SWIG_TypeClientData(SWIGTYPE_p_wxFileTypeInfo, obj); | |
12806 | Py_INCREF(obj); | |
12807 | return Py_BuildValue((char *)""); | |
12808 | } | |
12809 | static PyObject *_wrap_new_FileType(PyObject *, PyObject *args, PyObject *kwargs) { | |
12810 | PyObject *resultobj; | |
12811 | wxFileTypeInfo *arg1 = 0 ; | |
12812 | wxFileType *result; | |
12813 | PyObject * obj0 = 0 ; | |
12814 | char *kwnames[] = { | |
12815 | (char *) "ftInfo", NULL | |
12816 | }; | |
12817 | ||
12818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileType",kwnames,&obj0)) goto fail; | |
12819 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12820 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12821 | SWIG_fail; | |
12822 | if (arg1 == NULL) { | |
12823 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12824 | SWIG_fail; | |
12825 | } | |
12826 | { | |
12827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12828 | result = (wxFileType *)new wxFileType((wxFileTypeInfo const &)*arg1); | |
12829 | ||
12830 | wxPyEndAllowThreads(__tstate); | |
12831 | if (PyErr_Occurred()) SWIG_fail; | |
12832 | } | |
12833 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); | |
12834 | return resultobj; | |
12835 | fail: | |
12836 | return NULL; | |
12837 | } | |
12838 | ||
12839 | ||
12840 | static PyObject *_wrap_delete_FileType(PyObject *, PyObject *args, PyObject *kwargs) { | |
12841 | PyObject *resultobj; | |
12842 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12843 | PyObject * obj0 = 0 ; | |
12844 | char *kwnames[] = { | |
12845 | (char *) "self", NULL | |
12846 | }; | |
12847 | ||
12848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileType",kwnames,&obj0)) goto fail; | |
12849 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12850 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12851 | { | |
12852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12853 | delete arg1; | |
12854 | ||
12855 | wxPyEndAllowThreads(__tstate); | |
12856 | if (PyErr_Occurred()) SWIG_fail; | |
12857 | } | |
12858 | Py_INCREF(Py_None); resultobj = Py_None; | |
12859 | return resultobj; | |
12860 | fail: | |
12861 | return NULL; | |
12862 | } | |
12863 | ||
12864 | ||
12865 | static PyObject *_wrap_FileType_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) { | |
12866 | PyObject *resultobj; | |
12867 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12868 | PyObject *result; | |
12869 | PyObject * obj0 = 0 ; | |
12870 | char *kwnames[] = { | |
12871 | (char *) "self", NULL | |
12872 | }; | |
12873 | ||
12874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeType",kwnames,&obj0)) goto fail; | |
12875 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12876 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12877 | { | |
12878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12879 | result = (PyObject *)wxFileType_GetMimeType(arg1); | |
12880 | ||
12881 | wxPyEndAllowThreads(__tstate); | |
12882 | if (PyErr_Occurred()) SWIG_fail; | |
12883 | } | |
12884 | resultobj = result; | |
12885 | return resultobj; | |
12886 | fail: | |
12887 | return NULL; | |
12888 | } | |
12889 | ||
12890 | ||
12891 | static PyObject *_wrap_FileType_GetMimeTypes(PyObject *, PyObject *args, PyObject *kwargs) { | |
12892 | PyObject *resultobj; | |
12893 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12894 | PyObject *result; | |
12895 | PyObject * obj0 = 0 ; | |
12896 | char *kwnames[] = { | |
12897 | (char *) "self", NULL | |
12898 | }; | |
12899 | ||
12900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeTypes",kwnames,&obj0)) goto fail; | |
12901 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12902 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12903 | { | |
12904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12905 | result = (PyObject *)wxFileType_GetMimeTypes(arg1); | |
12906 | ||
12907 | wxPyEndAllowThreads(__tstate); | |
12908 | if (PyErr_Occurred()) SWIG_fail; | |
12909 | } | |
12910 | resultobj = result; | |
12911 | return resultobj; | |
12912 | fail: | |
12913 | return NULL; | |
12914 | } | |
12915 | ||
12916 | ||
12917 | static PyObject *_wrap_FileType_GetExtensions(PyObject *, PyObject *args, PyObject *kwargs) { | |
12918 | PyObject *resultobj; | |
12919 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12920 | PyObject *result; | |
12921 | PyObject * obj0 = 0 ; | |
12922 | char *kwnames[] = { | |
12923 | (char *) "self", NULL | |
12924 | }; | |
12925 | ||
12926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetExtensions",kwnames,&obj0)) goto fail; | |
12927 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12928 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12929 | { | |
12930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12931 | result = (PyObject *)wxFileType_GetExtensions(arg1); | |
12932 | ||
12933 | wxPyEndAllowThreads(__tstate); | |
12934 | if (PyErr_Occurred()) SWIG_fail; | |
12935 | } | |
12936 | resultobj = result; | |
12937 | return resultobj; | |
12938 | fail: | |
12939 | return NULL; | |
12940 | } | |
12941 | ||
12942 | ||
12943 | static PyObject *_wrap_FileType_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) { | |
12944 | PyObject *resultobj; | |
12945 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12946 | wxIcon *result; | |
12947 | PyObject * obj0 = 0 ; | |
12948 | char *kwnames[] = { | |
12949 | (char *) "self", NULL | |
12950 | }; | |
12951 | ||
12952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIcon",kwnames,&obj0)) goto fail; | |
12953 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12954 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12955 | { | |
12956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12957 | result = (wxIcon *)wxFileType_GetIcon(arg1); | |
12958 | ||
12959 | wxPyEndAllowThreads(__tstate); | |
12960 | if (PyErr_Occurred()) SWIG_fail; | |
12961 | } | |
12962 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); | |
12963 | return resultobj; | |
12964 | fail: | |
12965 | return NULL; | |
12966 | } | |
12967 | ||
12968 | ||
12969 | static PyObject *_wrap_FileType_GetIconInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
12970 | PyObject *resultobj; | |
12971 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12972 | PyObject *result; | |
12973 | PyObject * obj0 = 0 ; | |
12974 | char *kwnames[] = { | |
12975 | (char *) "self", NULL | |
12976 | }; | |
12977 | ||
12978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIconInfo",kwnames,&obj0)) goto fail; | |
12979 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12980 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12981 | { | |
12982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12983 | result = (PyObject *)wxFileType_GetIconInfo(arg1); | |
12984 | ||
12985 | wxPyEndAllowThreads(__tstate); | |
12986 | if (PyErr_Occurred()) SWIG_fail; | |
12987 | } | |
12988 | resultobj = result; | |
12989 | return resultobj; | |
12990 | fail: | |
12991 | return NULL; | |
12992 | } | |
12993 | ||
12994 | ||
12995 | static PyObject *_wrap_FileType_GetDescription(PyObject *, PyObject *args, PyObject *kwargs) { | |
12996 | PyObject *resultobj; | |
12997 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12998 | PyObject *result; | |
12999 | PyObject * obj0 = 0 ; | |
13000 | char *kwnames[] = { | |
13001 | (char *) "self", NULL | |
13002 | }; | |
13003 | ||
13004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetDescription",kwnames,&obj0)) goto fail; | |
13005 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
13006 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13007 | { | |
13008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13009 | result = (PyObject *)wxFileType_GetDescription(arg1); | |
13010 | ||
13011 | wxPyEndAllowThreads(__tstate); | |
13012 | if (PyErr_Occurred()) SWIG_fail; | |
13013 | } | |
13014 | resultobj = result; | |
13015 | return resultobj; | |
13016 | fail: | |
13017 | return NULL; | |
13018 | } | |
13019 | ||
13020 | ||
13021 | static PyObject *_wrap_FileType_GetOpenCommand(PyObject *, PyObject *args, PyObject *kwargs) { | |
13022 | PyObject *resultobj; | |
13023 | wxFileType *arg1 = (wxFileType *) 0 ; | |
13024 | wxString *arg2 = 0 ; | |
13025 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13026 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13027 | PyObject *result; | |
13028 | bool temp2 = false ; | |
13029 | bool temp3 = false ; | |
13030 | PyObject * obj0 = 0 ; | |
13031 | PyObject * obj1 = 0 ; | |
13032 | PyObject * obj2 = 0 ; | |
13033 | char *kwnames[] = { | |
13034 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
13035 | }; | |
13036 | ||
13037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetOpenCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
13039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13040 | { | |
13041 | arg2 = wxString_in_helper(obj1); | |
13042 | if (arg2 == NULL) SWIG_fail; | |
13043 | temp2 = true; | |
13044 | } | |
13045 | if (obj2) { | |
13046 | { | |
13047 | arg3 = wxString_in_helper(obj2); | |
13048 | if (arg3 == NULL) SWIG_fail; | |
13049 | temp3 = true; | |
13050 | } | |
13051 | } | |
13052 | { | |
13053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13054 | result = (PyObject *)wxFileType_GetOpenCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
13055 | ||
13056 | wxPyEndAllowThreads(__tstate); | |
13057 | if (PyErr_Occurred()) SWIG_fail; | |
13058 | } | |
13059 | resultobj = result; | |
13060 | { | |
13061 | if (temp2) | |
13062 | delete arg2; | |
13063 | } | |
13064 | { | |
13065 | if (temp3) | |
13066 | delete arg3; | |
13067 | } | |
13068 | return resultobj; | |
13069 | fail: | |
13070 | { | |
13071 | if (temp2) | |
13072 | delete arg2; | |
13073 | } | |
13074 | { | |
13075 | if (temp3) | |
13076 | delete arg3; | |
13077 | } | |
13078 | return NULL; | |
13079 | } | |
13080 | ||
13081 | ||
13082 | static PyObject *_wrap_FileType_GetPrintCommand(PyObject *, PyObject *args, PyObject *kwargs) { | |
13083 | PyObject *resultobj; | |
13084 | wxFileType *arg1 = (wxFileType *) 0 ; | |
13085 | wxString *arg2 = 0 ; | |
13086 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13087 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13088 | PyObject *result; | |
13089 | bool temp2 = false ; | |
13090 | bool temp3 = false ; | |
13091 | PyObject * obj0 = 0 ; | |
13092 | PyObject * obj1 = 0 ; | |
13093 | PyObject * obj2 = 0 ; | |
13094 | char *kwnames[] = { | |
13095 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
13096 | }; | |
13097 | ||
13098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetPrintCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13099 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
13100 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13101 | { | |
13102 | arg2 = wxString_in_helper(obj1); | |
13103 | if (arg2 == NULL) SWIG_fail; | |
13104 | temp2 = true; | |
13105 | } | |
13106 | if (obj2) { | |
13107 | { | |
13108 | arg3 = wxString_in_helper(obj2); | |
13109 | if (arg3 == NULL) SWIG_fail; | |
13110 | temp3 = true; | |
13111 | } | |
13112 | } | |
13113 | { | |
13114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13115 | result = (PyObject *)wxFileType_GetPrintCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
13116 | ||
13117 | wxPyEndAllowThreads(__tstate); | |
13118 | if (PyErr_Occurred()) SWIG_fail; | |
13119 | } | |
13120 | resultobj = result; | |
13121 | { | |
13122 | if (temp2) | |
13123 | delete arg2; | |
13124 | } | |
13125 | { | |
13126 | if (temp3) | |
13127 | delete arg3; | |
13128 | } | |
13129 | return resultobj; | |
13130 | fail: | |
13131 | { | |
13132 | if (temp2) | |
13133 | delete arg2; | |
13134 | } | |
13135 | { | |
13136 | if (temp3) | |
13137 | delete arg3; | |
13138 | } | |
13139 | return NULL; | |
13140 | } | |
13141 | ||
13142 | ||
13143 | static PyObject *_wrap_FileType_GetAllCommands(PyObject *, PyObject *args, PyObject *kwargs) { | |
13144 | PyObject *resultobj; | |
13145 | wxFileType *arg1 = (wxFileType *) 0 ; | |
13146 | wxString *arg2 = 0 ; | |
13147 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13148 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13149 | PyObject *result; | |
13150 | bool temp2 = false ; | |
13151 | bool temp3 = false ; | |
13152 | PyObject * obj0 = 0 ; | |
13153 | PyObject * obj1 = 0 ; | |
13154 | PyObject * obj2 = 0 ; | |
13155 | char *kwnames[] = { | |
13156 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
13157 | }; | |
13158 | ||
13159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetAllCommands",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13160 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
13161 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13162 | { | |
13163 | arg2 = wxString_in_helper(obj1); | |
13164 | if (arg2 == NULL) SWIG_fail; | |
13165 | temp2 = true; | |
13166 | } | |
13167 | if (obj2) { | |
13168 | { | |
13169 | arg3 = wxString_in_helper(obj2); | |
13170 | if (arg3 == NULL) SWIG_fail; | |
13171 | temp3 = true; | |
13172 | } | |
13173 | } | |
13174 | { | |
13175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13176 | result = (PyObject *)wxFileType_GetAllCommands(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
13177 | ||
13178 | wxPyEndAllowThreads(__tstate); | |
13179 | if (PyErr_Occurred()) SWIG_fail; | |
13180 | } | |
13181 | resultobj = result; | |
13182 | { | |
13183 | if (temp2) | |
13184 | delete arg2; | |
13185 | } | |
13186 | { | |
13187 | if (temp3) | |
13188 | delete arg3; | |
13189 | } | |
13190 | return resultobj; | |
13191 | fail: | |
13192 | { | |
13193 | if (temp2) | |
13194 | delete arg2; | |
13195 | } | |
13196 | { | |
13197 | if (temp3) | |
13198 | delete arg3; | |
13199 | } | |
13200 | return NULL; | |
13201 | } | |
13202 | ||
13203 | ||
13204 | static PyObject *_wrap_FileType_SetCommand(PyObject *, PyObject *args, PyObject *kwargs) { | |
13205 | PyObject *resultobj; | |
13206 | wxFileType *arg1 = (wxFileType *) 0 ; | |
13207 | wxString *arg2 = 0 ; | |
13208 | wxString *arg3 = 0 ; | |
13209 | bool arg4 = (bool) true ; | |
13210 | bool result; | |
13211 | bool temp2 = false ; | |
13212 | bool temp3 = false ; | |
13213 | PyObject * obj0 = 0 ; | |
13214 | PyObject * obj1 = 0 ; | |
13215 | PyObject * obj2 = 0 ; | |
13216 | PyObject * obj3 = 0 ; | |
13217 | char *kwnames[] = { | |
13218 | (char *) "self",(char *) "cmd",(char *) "verb",(char *) "overwriteprompt", NULL | |
13219 | }; | |
13220 | ||
13221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FileType_SetCommand",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
13222 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
13223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13224 | { | |
13225 | arg2 = wxString_in_helper(obj1); | |
13226 | if (arg2 == NULL) SWIG_fail; | |
13227 | temp2 = true; | |
13228 | } | |
13229 | { | |
13230 | arg3 = wxString_in_helper(obj2); | |
13231 | if (arg3 == NULL) SWIG_fail; | |
13232 | temp3 = true; | |
13233 | } | |
13234 | if (obj3) { | |
13235 | arg4 = (bool)SWIG_As_bool(obj3); | |
13236 | if (PyErr_Occurred()) SWIG_fail; | |
13237 | } | |
13238 | { | |
13239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13240 | result = (bool)(arg1)->SetCommand((wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
13241 | ||
13242 | wxPyEndAllowThreads(__tstate); | |
13243 | if (PyErr_Occurred()) SWIG_fail; | |
13244 | } | |
13245 | { | |
13246 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13247 | } | |
13248 | { | |
13249 | if (temp2) | |
13250 | delete arg2; | |
13251 | } | |
13252 | { | |
13253 | if (temp3) | |
13254 | delete arg3; | |
13255 | } | |
13256 | return resultobj; | |
13257 | fail: | |
13258 | { | |
13259 | if (temp2) | |
13260 | delete arg2; | |
13261 | } | |
13262 | { | |
13263 | if (temp3) | |
13264 | delete arg3; | |
13265 | } | |
13266 | return NULL; | |
13267 | } | |
13268 | ||
13269 | ||
13270 | static PyObject *_wrap_FileType_SetDefaultIcon(PyObject *, PyObject *args, PyObject *kwargs) { | |
13271 | PyObject *resultobj; | |
13272 | wxFileType *arg1 = (wxFileType *) 0 ; | |
13273 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
13274 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
13275 | int arg3 = (int) 0 ; | |
13276 | bool result; | |
13277 | bool temp2 = false ; | |
13278 | PyObject * obj0 = 0 ; | |
13279 | PyObject * obj1 = 0 ; | |
13280 | PyObject * obj2 = 0 ; | |
13281 | char *kwnames[] = { | |
13282 | (char *) "self",(char *) "cmd",(char *) "index", NULL | |
13283 | }; | |
13284 | ||
13285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FileType_SetDefaultIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13286 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
13287 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13288 | if (obj1) { | |
13289 | { | |
13290 | arg2 = wxString_in_helper(obj1); | |
13291 | if (arg2 == NULL) SWIG_fail; | |
13292 | temp2 = true; | |
13293 | } | |
13294 | } | |
13295 | if (obj2) { | |
13296 | arg3 = (int)SWIG_As_int(obj2); | |
13297 | if (PyErr_Occurred()) SWIG_fail; | |
13298 | } | |
13299 | { | |
13300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13301 | result = (bool)(arg1)->SetDefaultIcon((wxString const &)*arg2,arg3); | |
13302 | ||
13303 | wxPyEndAllowThreads(__tstate); | |
13304 | if (PyErr_Occurred()) SWIG_fail; | |
13305 | } | |
13306 | { | |
13307 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13308 | } | |
13309 | { | |
13310 | if (temp2) | |
13311 | delete arg2; | |
13312 | } | |
13313 | return resultobj; | |
13314 | fail: | |
13315 | { | |
13316 | if (temp2) | |
13317 | delete arg2; | |
13318 | } | |
13319 | return NULL; | |
13320 | } | |
13321 | ||
13322 | ||
13323 | static PyObject *_wrap_FileType_Unassociate(PyObject *, PyObject *args, PyObject *kwargs) { | |
13324 | PyObject *resultobj; | |
13325 | wxFileType *arg1 = (wxFileType *) 0 ; | |
13326 | bool result; | |
13327 | PyObject * obj0 = 0 ; | |
13328 | char *kwnames[] = { | |
13329 | (char *) "self", NULL | |
13330 | }; | |
13331 | ||
13332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_Unassociate",kwnames,&obj0)) goto fail; | |
13333 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
13334 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13335 | { | |
13336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13337 | result = (bool)(arg1)->Unassociate(); | |
13338 | ||
13339 | wxPyEndAllowThreads(__tstate); | |
13340 | if (PyErr_Occurred()) SWIG_fail; | |
13341 | } | |
13342 | { | |
13343 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13344 | } | |
13345 | return resultobj; | |
13346 | fail: | |
13347 | return NULL; | |
13348 | } | |
13349 | ||
13350 | ||
13351 | static PyObject *_wrap_FileType_ExpandCommand(PyObject *, PyObject *args, PyObject *kwargs) { | |
13352 | PyObject *resultobj; | |
13353 | wxString *arg1 = 0 ; | |
13354 | wxString *arg2 = 0 ; | |
13355 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13356 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13357 | wxString result; | |
13358 | bool temp1 = false ; | |
13359 | bool temp2 = false ; | |
13360 | bool temp3 = false ; | |
13361 | PyObject * obj0 = 0 ; | |
13362 | PyObject * obj1 = 0 ; | |
13363 | PyObject * obj2 = 0 ; | |
13364 | char *kwnames[] = { | |
13365 | (char *) "command",(char *) "filename",(char *) "mimetype", NULL | |
13366 | }; | |
13367 | ||
13368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_ExpandCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13369 | { | |
13370 | arg1 = wxString_in_helper(obj0); | |
13371 | if (arg1 == NULL) SWIG_fail; | |
13372 | temp1 = true; | |
13373 | } | |
13374 | { | |
13375 | arg2 = wxString_in_helper(obj1); | |
13376 | if (arg2 == NULL) SWIG_fail; | |
13377 | temp2 = true; | |
13378 | } | |
13379 | if (obj2) { | |
13380 | { | |
13381 | arg3 = wxString_in_helper(obj2); | |
13382 | if (arg3 == NULL) SWIG_fail; | |
13383 | temp3 = true; | |
13384 | } | |
13385 | } | |
13386 | { | |
13387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13388 | result = FileType_ExpandCommand((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
13389 | ||
13390 | wxPyEndAllowThreads(__tstate); | |
13391 | if (PyErr_Occurred()) SWIG_fail; | |
13392 | } | |
13393 | { | |
13394 | #if wxUSE_UNICODE | |
13395 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13396 | #else | |
13397 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13398 | #endif | |
13399 | } | |
13400 | { | |
13401 | if (temp1) | |
13402 | delete arg1; | |
13403 | } | |
13404 | { | |
13405 | if (temp2) | |
13406 | delete arg2; | |
13407 | } | |
13408 | { | |
13409 | if (temp3) | |
13410 | delete arg3; | |
13411 | } | |
13412 | return resultobj; | |
13413 | fail: | |
13414 | { | |
13415 | if (temp1) | |
13416 | delete arg1; | |
13417 | } | |
13418 | { | |
13419 | if (temp2) | |
13420 | delete arg2; | |
13421 | } | |
13422 | { | |
13423 | if (temp3) | |
13424 | delete arg3; | |
13425 | } | |
13426 | return NULL; | |
13427 | } | |
13428 | ||
13429 | ||
13430 | static PyObject * FileType_swigregister(PyObject *, PyObject *args) { | |
13431 | PyObject *obj; | |
13432 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13433 | SWIG_TypeClientData(SWIGTYPE_p_wxFileType, obj); | |
13434 | Py_INCREF(obj); | |
13435 | return Py_BuildValue((char *)""); | |
13436 | } | |
13437 | static int _wrap_TheMimeTypesManager_set(PyObject *) { | |
13438 | PyErr_SetString(PyExc_TypeError,"Variable TheMimeTypesManager is read-only."); | |
13439 | return 1; | |
13440 | } | |
13441 | ||
13442 | ||
13443 | static PyObject *_wrap_TheMimeTypesManager_get() { | |
13444 | PyObject *pyobj; | |
13445 | ||
13446 | pyobj = SWIG_NewPointerObj((void *)(wxTheMimeTypesManager), SWIGTYPE_p_wxMimeTypesManager, 0); | |
13447 | return pyobj; | |
13448 | } | |
13449 | ||
13450 | ||
13451 | static PyObject *_wrap_MimeTypesManager_IsOfType(PyObject *, PyObject *args, PyObject *kwargs) { | |
13452 | PyObject *resultobj; | |
13453 | wxString *arg1 = 0 ; | |
13454 | wxString *arg2 = 0 ; | |
13455 | bool result; | |
13456 | bool temp1 = false ; | |
13457 | bool temp2 = false ; | |
13458 | PyObject * obj0 = 0 ; | |
13459 | PyObject * obj1 = 0 ; | |
13460 | char *kwnames[] = { | |
13461 | (char *) "mimeType",(char *) "wildcard", NULL | |
13462 | }; | |
13463 | ||
13464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_IsOfType",kwnames,&obj0,&obj1)) goto fail; | |
13465 | { | |
13466 | arg1 = wxString_in_helper(obj0); | |
13467 | if (arg1 == NULL) SWIG_fail; | |
13468 | temp1 = true; | |
13469 | } | |
13470 | { | |
13471 | arg2 = wxString_in_helper(obj1); | |
13472 | if (arg2 == NULL) SWIG_fail; | |
13473 | temp2 = true; | |
13474 | } | |
13475 | { | |
13476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13477 | result = (bool)wxMimeTypesManager::IsOfType((wxString const &)*arg1,(wxString const &)*arg2); | |
13478 | ||
13479 | wxPyEndAllowThreads(__tstate); | |
13480 | if (PyErr_Occurred()) SWIG_fail; | |
13481 | } | |
13482 | { | |
13483 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13484 | } | |
13485 | { | |
13486 | if (temp1) | |
13487 | delete arg1; | |
13488 | } | |
13489 | { | |
13490 | if (temp2) | |
13491 | delete arg2; | |
13492 | } | |
13493 | return resultobj; | |
13494 | fail: | |
13495 | { | |
13496 | if (temp1) | |
13497 | delete arg1; | |
13498 | } | |
13499 | { | |
13500 | if (temp2) | |
13501 | delete arg2; | |
13502 | } | |
13503 | return NULL; | |
13504 | } | |
13505 | ||
13506 | ||
13507 | static PyObject *_wrap_new_MimeTypesManager(PyObject *, PyObject *args, PyObject *kwargs) { | |
13508 | PyObject *resultobj; | |
13509 | wxMimeTypesManager *result; | |
13510 | char *kwnames[] = { | |
13511 | NULL | |
13512 | }; | |
13513 | ||
13514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MimeTypesManager",kwnames)) goto fail; | |
13515 | { | |
13516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13517 | result = (wxMimeTypesManager *)new wxMimeTypesManager(); | |
13518 | ||
13519 | wxPyEndAllowThreads(__tstate); | |
13520 | if (PyErr_Occurred()) SWIG_fail; | |
13521 | } | |
13522 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMimeTypesManager, 1); | |
13523 | return resultobj; | |
13524 | fail: | |
13525 | return NULL; | |
13526 | } | |
13527 | ||
13528 | ||
13529 | static PyObject *_wrap_MimeTypesManager_Initialize(PyObject *, PyObject *args, PyObject *kwargs) { | |
13530 | PyObject *resultobj; | |
13531 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13532 | int arg2 = (int) wxMAILCAP_ALL ; | |
13533 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13534 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13535 | bool temp3 = false ; | |
13536 | PyObject * obj0 = 0 ; | |
13537 | PyObject * obj1 = 0 ; | |
13538 | PyObject * obj2 = 0 ; | |
13539 | char *kwnames[] = { | |
13540 | (char *) "self",(char *) "mailcapStyle",(char *) "extraDir", NULL | |
13541 | }; | |
13542 | ||
13543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MimeTypesManager_Initialize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13544 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13545 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13546 | if (obj1) { | |
13547 | arg2 = (int)SWIG_As_int(obj1); | |
13548 | if (PyErr_Occurred()) SWIG_fail; | |
13549 | } | |
13550 | if (obj2) { | |
13551 | { | |
13552 | arg3 = wxString_in_helper(obj2); | |
13553 | if (arg3 == NULL) SWIG_fail; | |
13554 | temp3 = true; | |
13555 | } | |
13556 | } | |
13557 | { | |
13558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13559 | (arg1)->Initialize(arg2,(wxString const &)*arg3); | |
13560 | ||
13561 | wxPyEndAllowThreads(__tstate); | |
13562 | if (PyErr_Occurred()) SWIG_fail; | |
13563 | } | |
13564 | Py_INCREF(Py_None); resultobj = Py_None; | |
13565 | { | |
13566 | if (temp3) | |
13567 | delete arg3; | |
13568 | } | |
13569 | return resultobj; | |
13570 | fail: | |
13571 | { | |
13572 | if (temp3) | |
13573 | delete arg3; | |
13574 | } | |
13575 | return NULL; | |
13576 | } | |
13577 | ||
13578 | ||
13579 | static PyObject *_wrap_MimeTypesManager_ClearData(PyObject *, PyObject *args, PyObject *kwargs) { | |
13580 | PyObject *resultobj; | |
13581 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13582 | PyObject * obj0 = 0 ; | |
13583 | char *kwnames[] = { | |
13584 | (char *) "self", NULL | |
13585 | }; | |
13586 | ||
13587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_ClearData",kwnames,&obj0)) goto fail; | |
13588 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13589 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13590 | { | |
13591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13592 | (arg1)->ClearData(); | |
13593 | ||
13594 | wxPyEndAllowThreads(__tstate); | |
13595 | if (PyErr_Occurred()) SWIG_fail; | |
13596 | } | |
13597 | Py_INCREF(Py_None); resultobj = Py_None; | |
13598 | return resultobj; | |
13599 | fail: | |
13600 | return NULL; | |
13601 | } | |
13602 | ||
13603 | ||
13604 | static PyObject *_wrap_MimeTypesManager_GetFileTypeFromExtension(PyObject *, PyObject *args, PyObject *kwargs) { | |
13605 | PyObject *resultobj; | |
13606 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13607 | wxString *arg2 = 0 ; | |
13608 | wxFileType *result; | |
13609 | bool temp2 = false ; | |
13610 | PyObject * obj0 = 0 ; | |
13611 | PyObject * obj1 = 0 ; | |
13612 | char *kwnames[] = { | |
13613 | (char *) "self",(char *) "ext", NULL | |
13614 | }; | |
13615 | ||
13616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromExtension",kwnames,&obj0,&obj1)) goto fail; | |
13617 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13618 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13619 | { | |
13620 | arg2 = wxString_in_helper(obj1); | |
13621 | if (arg2 == NULL) SWIG_fail; | |
13622 | temp2 = true; | |
13623 | } | |
13624 | { | |
13625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13626 | result = (wxFileType *)(arg1)->GetFileTypeFromExtension((wxString const &)*arg2); | |
13627 | ||
13628 | wxPyEndAllowThreads(__tstate); | |
13629 | if (PyErr_Occurred()) SWIG_fail; | |
13630 | } | |
13631 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); | |
13632 | { | |
13633 | if (temp2) | |
13634 | delete arg2; | |
13635 | } | |
13636 | return resultobj; | |
13637 | fail: | |
13638 | { | |
13639 | if (temp2) | |
13640 | delete arg2; | |
13641 | } | |
13642 | return NULL; | |
13643 | } | |
13644 | ||
13645 | ||
13646 | static PyObject *_wrap_MimeTypesManager_GetFileTypeFromMimeType(PyObject *, PyObject *args, PyObject *kwargs) { | |
13647 | PyObject *resultobj; | |
13648 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13649 | wxString *arg2 = 0 ; | |
13650 | wxFileType *result; | |
13651 | bool temp2 = false ; | |
13652 | PyObject * obj0 = 0 ; | |
13653 | PyObject * obj1 = 0 ; | |
13654 | char *kwnames[] = { | |
13655 | (char *) "self",(char *) "mimeType", NULL | |
13656 | }; | |
13657 | ||
13658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromMimeType",kwnames,&obj0,&obj1)) goto fail; | |
13659 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13660 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13661 | { | |
13662 | arg2 = wxString_in_helper(obj1); | |
13663 | if (arg2 == NULL) SWIG_fail; | |
13664 | temp2 = true; | |
13665 | } | |
13666 | { | |
13667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13668 | result = (wxFileType *)(arg1)->GetFileTypeFromMimeType((wxString const &)*arg2); | |
13669 | ||
13670 | wxPyEndAllowThreads(__tstate); | |
13671 | if (PyErr_Occurred()) SWIG_fail; | |
13672 | } | |
13673 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); | |
13674 | { | |
13675 | if (temp2) | |
13676 | delete arg2; | |
13677 | } | |
13678 | return resultobj; | |
13679 | fail: | |
13680 | { | |
13681 | if (temp2) | |
13682 | delete arg2; | |
13683 | } | |
13684 | return NULL; | |
13685 | } | |
13686 | ||
13687 | ||
13688 | static PyObject *_wrap_MimeTypesManager_ReadMailcap(PyObject *, PyObject *args, PyObject *kwargs) { | |
13689 | PyObject *resultobj; | |
13690 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13691 | wxString *arg2 = 0 ; | |
13692 | bool arg3 = (bool) false ; | |
13693 | bool result; | |
13694 | bool temp2 = false ; | |
13695 | PyObject * obj0 = 0 ; | |
13696 | PyObject * obj1 = 0 ; | |
13697 | PyObject * obj2 = 0 ; | |
13698 | char *kwnames[] = { | |
13699 | (char *) "self",(char *) "filename",(char *) "fallback", NULL | |
13700 | }; | |
13701 | ||
13702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MimeTypesManager_ReadMailcap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13703 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13704 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13705 | { | |
13706 | arg2 = wxString_in_helper(obj1); | |
13707 | if (arg2 == NULL) SWIG_fail; | |
13708 | temp2 = true; | |
13709 | } | |
13710 | if (obj2) { | |
13711 | arg3 = (bool)SWIG_As_bool(obj2); | |
13712 | if (PyErr_Occurred()) SWIG_fail; | |
13713 | } | |
13714 | { | |
13715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13716 | result = (bool)(arg1)->ReadMailcap((wxString const &)*arg2,arg3); | |
13717 | ||
13718 | wxPyEndAllowThreads(__tstate); | |
13719 | if (PyErr_Occurred()) SWIG_fail; | |
13720 | } | |
13721 | { | |
13722 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13723 | } | |
13724 | { | |
13725 | if (temp2) | |
13726 | delete arg2; | |
13727 | } | |
13728 | return resultobj; | |
13729 | fail: | |
13730 | { | |
13731 | if (temp2) | |
13732 | delete arg2; | |
13733 | } | |
13734 | return NULL; | |
13735 | } | |
13736 | ||
13737 | ||
13738 | static PyObject *_wrap_MimeTypesManager_ReadMimeTypes(PyObject *, PyObject *args, PyObject *kwargs) { | |
13739 | PyObject *resultobj; | |
13740 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13741 | wxString *arg2 = 0 ; | |
13742 | bool result; | |
13743 | bool temp2 = false ; | |
13744 | PyObject * obj0 = 0 ; | |
13745 | PyObject * obj1 = 0 ; | |
13746 | char *kwnames[] = { | |
13747 | (char *) "self",(char *) "filename", NULL | |
13748 | }; | |
13749 | ||
13750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_ReadMimeTypes",kwnames,&obj0,&obj1)) goto fail; | |
13751 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13752 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13753 | { | |
13754 | arg2 = wxString_in_helper(obj1); | |
13755 | if (arg2 == NULL) SWIG_fail; | |
13756 | temp2 = true; | |
13757 | } | |
13758 | { | |
13759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13760 | result = (bool)(arg1)->ReadMimeTypes((wxString const &)*arg2); | |
13761 | ||
13762 | wxPyEndAllowThreads(__tstate); | |
13763 | if (PyErr_Occurred()) SWIG_fail; | |
13764 | } | |
13765 | { | |
13766 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13767 | } | |
13768 | { | |
13769 | if (temp2) | |
13770 | delete arg2; | |
13771 | } | |
13772 | return resultobj; | |
13773 | fail: | |
13774 | { | |
13775 | if (temp2) | |
13776 | delete arg2; | |
13777 | } | |
13778 | return NULL; | |
13779 | } | |
13780 | ||
13781 | ||
13782 | static PyObject *_wrap_MimeTypesManager_EnumAllFileTypes(PyObject *, PyObject *args, PyObject *kwargs) { | |
13783 | PyObject *resultobj; | |
13784 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13785 | PyObject *result; | |
13786 | PyObject * obj0 = 0 ; | |
13787 | char *kwnames[] = { | |
13788 | (char *) "self", NULL | |
13789 | }; | |
13790 | ||
13791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_EnumAllFileTypes",kwnames,&obj0)) goto fail; | |
13792 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13793 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13794 | { | |
13795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13796 | result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(arg1); | |
13797 | ||
13798 | wxPyEndAllowThreads(__tstate); | |
13799 | if (PyErr_Occurred()) SWIG_fail; | |
13800 | } | |
13801 | resultobj = result; | |
13802 | return resultobj; | |
13803 | fail: | |
13804 | return NULL; | |
13805 | } | |
13806 | ||
13807 | ||
13808 | static PyObject *_wrap_MimeTypesManager_AddFallback(PyObject *, PyObject *args, PyObject *kwargs) { | |
13809 | PyObject *resultobj; | |
13810 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13811 | wxFileTypeInfo *arg2 = 0 ; | |
13812 | PyObject * obj0 = 0 ; | |
13813 | PyObject * obj1 = 0 ; | |
13814 | char *kwnames[] = { | |
13815 | (char *) "self",(char *) "ft", NULL | |
13816 | }; | |
13817 | ||
13818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_AddFallback",kwnames,&obj0,&obj1)) goto fail; | |
13819 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13820 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13821 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo, | |
13822 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13823 | SWIG_fail; | |
13824 | if (arg2 == NULL) { | |
13825 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13826 | SWIG_fail; | |
13827 | } | |
13828 | { | |
13829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13830 | (arg1)->AddFallback((wxFileTypeInfo const &)*arg2); | |
13831 | ||
13832 | wxPyEndAllowThreads(__tstate); | |
13833 | if (PyErr_Occurred()) SWIG_fail; | |
13834 | } | |
13835 | Py_INCREF(Py_None); resultobj = Py_None; | |
13836 | return resultobj; | |
13837 | fail: | |
13838 | return NULL; | |
13839 | } | |
13840 | ||
13841 | ||
13842 | static PyObject *_wrap_MimeTypesManager_Associate(PyObject *, PyObject *args, PyObject *kwargs) { | |
13843 | PyObject *resultobj; | |
13844 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13845 | wxFileTypeInfo *arg2 = 0 ; | |
13846 | wxFileType *result; | |
13847 | PyObject * obj0 = 0 ; | |
13848 | PyObject * obj1 = 0 ; | |
13849 | char *kwnames[] = { | |
13850 | (char *) "self",(char *) "ftInfo", NULL | |
13851 | }; | |
13852 | ||
13853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Associate",kwnames,&obj0,&obj1)) goto fail; | |
13854 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13855 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13856 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo, | |
13857 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13858 | SWIG_fail; | |
13859 | if (arg2 == NULL) { | |
13860 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13861 | SWIG_fail; | |
13862 | } | |
13863 | { | |
13864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13865 | result = (wxFileType *)(arg1)->Associate((wxFileTypeInfo const &)*arg2); | |
13866 | ||
13867 | wxPyEndAllowThreads(__tstate); | |
13868 | if (PyErr_Occurred()) SWIG_fail; | |
13869 | } | |
13870 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); | |
13871 | return resultobj; | |
13872 | fail: | |
13873 | return NULL; | |
13874 | } | |
13875 | ||
13876 | ||
13877 | static PyObject *_wrap_MimeTypesManager_Unassociate(PyObject *, PyObject *args, PyObject *kwargs) { | |
13878 | PyObject *resultobj; | |
13879 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13880 | wxFileType *arg2 = (wxFileType *) 0 ; | |
13881 | bool result; | |
13882 | PyObject * obj0 = 0 ; | |
13883 | PyObject * obj1 = 0 ; | |
13884 | char *kwnames[] = { | |
13885 | (char *) "self",(char *) "ft", NULL | |
13886 | }; | |
13887 | ||
13888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Unassociate",kwnames,&obj0,&obj1)) goto fail; | |
13889 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13890 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13891 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileType, | |
13892 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13893 | { | |
13894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13895 | result = (bool)(arg1)->Unassociate(arg2); | |
13896 | ||
13897 | wxPyEndAllowThreads(__tstate); | |
13898 | if (PyErr_Occurred()) SWIG_fail; | |
13899 | } | |
13900 | { | |
13901 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13902 | } | |
13903 | return resultobj; | |
13904 | fail: | |
13905 | return NULL; | |
13906 | } | |
13907 | ||
13908 | ||
13909 | static PyObject *_wrap_delete_MimeTypesManager(PyObject *, PyObject *args, PyObject *kwargs) { | |
13910 | PyObject *resultobj; | |
13911 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13912 | PyObject * obj0 = 0 ; | |
13913 | char *kwnames[] = { | |
13914 | (char *) "self", NULL | |
13915 | }; | |
13916 | ||
13917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MimeTypesManager",kwnames,&obj0)) goto fail; | |
13918 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13919 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13920 | { | |
13921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13922 | delete arg1; | |
13923 | ||
13924 | wxPyEndAllowThreads(__tstate); | |
13925 | if (PyErr_Occurred()) SWIG_fail; | |
13926 | } | |
13927 | Py_INCREF(Py_None); resultobj = Py_None; | |
13928 | return resultobj; | |
13929 | fail: | |
13930 | return NULL; | |
13931 | } | |
13932 | ||
13933 | ||
13934 | static PyObject * MimeTypesManager_swigregister(PyObject *, PyObject *args) { | |
13935 | PyObject *obj; | |
13936 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13937 | SWIG_TypeClientData(SWIGTYPE_p_wxMimeTypesManager, obj); | |
13938 | Py_INCREF(obj); | |
13939 | return Py_BuildValue((char *)""); | |
13940 | } | |
13941 | static int _wrap_ART_TOOLBAR_set(PyObject *) { | |
13942 | PyErr_SetString(PyExc_TypeError,"Variable ART_TOOLBAR is read-only."); | |
13943 | return 1; | |
13944 | } | |
13945 | ||
13946 | ||
13947 | static PyObject *_wrap_ART_TOOLBAR_get() { | |
13948 | PyObject *pyobj; | |
13949 | ||
13950 | { | |
13951 | #if wxUSE_UNICODE | |
13952 | pyobj = PyUnicode_FromWideChar((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len()); | |
13953 | #else | |
13954 | pyobj = PyString_FromStringAndSize((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len()); | |
13955 | #endif | |
13956 | } | |
13957 | return pyobj; | |
13958 | } | |
13959 | ||
13960 | ||
13961 | static int _wrap_ART_MENU_set(PyObject *) { | |
13962 | PyErr_SetString(PyExc_TypeError,"Variable ART_MENU is read-only."); | |
13963 | return 1; | |
13964 | } | |
13965 | ||
13966 | ||
13967 | static PyObject *_wrap_ART_MENU_get() { | |
13968 | PyObject *pyobj; | |
13969 | ||
13970 | { | |
13971 | #if wxUSE_UNICODE | |
13972 | pyobj = PyUnicode_FromWideChar((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len()); | |
13973 | #else | |
13974 | pyobj = PyString_FromStringAndSize((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len()); | |
13975 | #endif | |
13976 | } | |
13977 | return pyobj; | |
13978 | } | |
13979 | ||
13980 | ||
13981 | static int _wrap_ART_FRAME_ICON_set(PyObject *) { | |
13982 | PyErr_SetString(PyExc_TypeError,"Variable ART_FRAME_ICON is read-only."); | |
13983 | return 1; | |
13984 | } | |
13985 | ||
13986 | ||
13987 | static PyObject *_wrap_ART_FRAME_ICON_get() { | |
13988 | PyObject *pyobj; | |
13989 | ||
13990 | { | |
13991 | #if wxUSE_UNICODE | |
13992 | pyobj = PyUnicode_FromWideChar((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len()); | |
13993 | #else | |
13994 | pyobj = PyString_FromStringAndSize((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len()); | |
13995 | #endif | |
13996 | } | |
13997 | return pyobj; | |
13998 | } | |
13999 | ||
14000 | ||
14001 | static int _wrap_ART_CMN_DIALOG_set(PyObject *) { | |
14002 | PyErr_SetString(PyExc_TypeError,"Variable ART_CMN_DIALOG is read-only."); | |
14003 | return 1; | |
14004 | } | |
14005 | ||
14006 | ||
14007 | static PyObject *_wrap_ART_CMN_DIALOG_get() { | |
14008 | PyObject *pyobj; | |
14009 | ||
14010 | { | |
14011 | #if wxUSE_UNICODE | |
14012 | pyobj = PyUnicode_FromWideChar((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len()); | |
14013 | #else | |
14014 | pyobj = PyString_FromStringAndSize((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len()); | |
14015 | #endif | |
14016 | } | |
14017 | return pyobj; | |
14018 | } | |
14019 | ||
14020 | ||
14021 | static int _wrap_ART_HELP_BROWSER_set(PyObject *) { | |
14022 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BROWSER is read-only."); | |
14023 | return 1; | |
14024 | } | |
14025 | ||
14026 | ||
14027 | static PyObject *_wrap_ART_HELP_BROWSER_get() { | |
14028 | PyObject *pyobj; | |
14029 | ||
14030 | { | |
14031 | #if wxUSE_UNICODE | |
14032 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len()); | |
14033 | #else | |
14034 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len()); | |
14035 | #endif | |
14036 | } | |
14037 | return pyobj; | |
14038 | } | |
14039 | ||
14040 | ||
14041 | static int _wrap_ART_MESSAGE_BOX_set(PyObject *) { | |
14042 | PyErr_SetString(PyExc_TypeError,"Variable ART_MESSAGE_BOX is read-only."); | |
14043 | return 1; | |
14044 | } | |
14045 | ||
14046 | ||
14047 | static PyObject *_wrap_ART_MESSAGE_BOX_get() { | |
14048 | PyObject *pyobj; | |
14049 | ||
14050 | { | |
14051 | #if wxUSE_UNICODE | |
14052 | pyobj = PyUnicode_FromWideChar((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len()); | |
14053 | #else | |
14054 | pyobj = PyString_FromStringAndSize((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len()); | |
14055 | #endif | |
14056 | } | |
14057 | return pyobj; | |
14058 | } | |
14059 | ||
14060 | ||
14061 | static int _wrap_ART_BUTTON_set(PyObject *) { | |
14062 | PyErr_SetString(PyExc_TypeError,"Variable ART_BUTTON is read-only."); | |
14063 | return 1; | |
14064 | } | |
14065 | ||
14066 | ||
14067 | static PyObject *_wrap_ART_BUTTON_get() { | |
14068 | PyObject *pyobj; | |
14069 | ||
14070 | { | |
14071 | #if wxUSE_UNICODE | |
14072 | pyobj = PyUnicode_FromWideChar((&wxPyART_BUTTON)->c_str(), (&wxPyART_BUTTON)->Len()); | |
14073 | #else | |
14074 | pyobj = PyString_FromStringAndSize((&wxPyART_BUTTON)->c_str(), (&wxPyART_BUTTON)->Len()); | |
14075 | #endif | |
14076 | } | |
14077 | return pyobj; | |
14078 | } | |
14079 | ||
14080 | ||
14081 | static int _wrap_ART_OTHER_set(PyObject *) { | |
14082 | PyErr_SetString(PyExc_TypeError,"Variable ART_OTHER is read-only."); | |
14083 | return 1; | |
14084 | } | |
14085 | ||
14086 | ||
14087 | static PyObject *_wrap_ART_OTHER_get() { | |
14088 | PyObject *pyobj; | |
14089 | ||
14090 | { | |
14091 | #if wxUSE_UNICODE | |
14092 | pyobj = PyUnicode_FromWideChar((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len()); | |
14093 | #else | |
14094 | pyobj = PyString_FromStringAndSize((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len()); | |
14095 | #endif | |
14096 | } | |
14097 | return pyobj; | |
14098 | } | |
14099 | ||
14100 | ||
14101 | static int _wrap_ART_ADD_BOOKMARK_set(PyObject *) { | |
14102 | PyErr_SetString(PyExc_TypeError,"Variable ART_ADD_BOOKMARK is read-only."); | |
14103 | return 1; | |
14104 | } | |
14105 | ||
14106 | ||
14107 | static PyObject *_wrap_ART_ADD_BOOKMARK_get() { | |
14108 | PyObject *pyobj; | |
14109 | ||
14110 | { | |
14111 | #if wxUSE_UNICODE | |
14112 | pyobj = PyUnicode_FromWideChar((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len()); | |
14113 | #else | |
14114 | pyobj = PyString_FromStringAndSize((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len()); | |
14115 | #endif | |
14116 | } | |
14117 | return pyobj; | |
14118 | } | |
14119 | ||
14120 | ||
14121 | static int _wrap_ART_DEL_BOOKMARK_set(PyObject *) { | |
14122 | PyErr_SetString(PyExc_TypeError,"Variable ART_DEL_BOOKMARK is read-only."); | |
14123 | return 1; | |
14124 | } | |
14125 | ||
14126 | ||
14127 | static PyObject *_wrap_ART_DEL_BOOKMARK_get() { | |
14128 | PyObject *pyobj; | |
14129 | ||
14130 | { | |
14131 | #if wxUSE_UNICODE | |
14132 | pyobj = PyUnicode_FromWideChar((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len()); | |
14133 | #else | |
14134 | pyobj = PyString_FromStringAndSize((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len()); | |
14135 | #endif | |
14136 | } | |
14137 | return pyobj; | |
14138 | } | |
14139 | ||
14140 | ||
14141 | static int _wrap_ART_HELP_SIDE_PANEL_set(PyObject *) { | |
14142 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SIDE_PANEL is read-only."); | |
14143 | return 1; | |
14144 | } | |
14145 | ||
14146 | ||
14147 | static PyObject *_wrap_ART_HELP_SIDE_PANEL_get() { | |
14148 | PyObject *pyobj; | |
14149 | ||
14150 | { | |
14151 | #if wxUSE_UNICODE | |
14152 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len()); | |
14153 | #else | |
14154 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len()); | |
14155 | #endif | |
14156 | } | |
14157 | return pyobj; | |
14158 | } | |
14159 | ||
14160 | ||
14161 | static int _wrap_ART_HELP_SETTINGS_set(PyObject *) { | |
14162 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SETTINGS is read-only."); | |
14163 | return 1; | |
14164 | } | |
14165 | ||
14166 | ||
14167 | static PyObject *_wrap_ART_HELP_SETTINGS_get() { | |
14168 | PyObject *pyobj; | |
14169 | ||
14170 | { | |
14171 | #if wxUSE_UNICODE | |
14172 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len()); | |
14173 | #else | |
14174 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len()); | |
14175 | #endif | |
14176 | } | |
14177 | return pyobj; | |
14178 | } | |
14179 | ||
14180 | ||
14181 | static int _wrap_ART_HELP_BOOK_set(PyObject *) { | |
14182 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BOOK is read-only."); | |
14183 | return 1; | |
14184 | } | |
14185 | ||
14186 | ||
14187 | static PyObject *_wrap_ART_HELP_BOOK_get() { | |
14188 | PyObject *pyobj; | |
14189 | ||
14190 | { | |
14191 | #if wxUSE_UNICODE | |
14192 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len()); | |
14193 | #else | |
14194 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len()); | |
14195 | #endif | |
14196 | } | |
14197 | return pyobj; | |
14198 | } | |
14199 | ||
14200 | ||
14201 | static int _wrap_ART_HELP_FOLDER_set(PyObject *) { | |
14202 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_FOLDER is read-only."); | |
14203 | return 1; | |
14204 | } | |
14205 | ||
14206 | ||
14207 | static PyObject *_wrap_ART_HELP_FOLDER_get() { | |
14208 | PyObject *pyobj; | |
14209 | ||
14210 | { | |
14211 | #if wxUSE_UNICODE | |
14212 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len()); | |
14213 | #else | |
14214 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len()); | |
14215 | #endif | |
14216 | } | |
14217 | return pyobj; | |
14218 | } | |
14219 | ||
14220 | ||
14221 | static int _wrap_ART_HELP_PAGE_set(PyObject *) { | |
14222 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_PAGE is read-only."); | |
14223 | return 1; | |
14224 | } | |
14225 | ||
14226 | ||
14227 | static PyObject *_wrap_ART_HELP_PAGE_get() { | |
14228 | PyObject *pyobj; | |
14229 | ||
14230 | { | |
14231 | #if wxUSE_UNICODE | |
14232 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len()); | |
14233 | #else | |
14234 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len()); | |
14235 | #endif | |
14236 | } | |
14237 | return pyobj; | |
14238 | } | |
14239 | ||
14240 | ||
14241 | static int _wrap_ART_GO_BACK_set(PyObject *) { | |
14242 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_BACK is read-only."); | |
14243 | return 1; | |
14244 | } | |
14245 | ||
14246 | ||
14247 | static PyObject *_wrap_ART_GO_BACK_get() { | |
14248 | PyObject *pyobj; | |
14249 | ||
14250 | { | |
14251 | #if wxUSE_UNICODE | |
14252 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len()); | |
14253 | #else | |
14254 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len()); | |
14255 | #endif | |
14256 | } | |
14257 | return pyobj; | |
14258 | } | |
14259 | ||
14260 | ||
14261 | static int _wrap_ART_GO_FORWARD_set(PyObject *) { | |
14262 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_FORWARD is read-only."); | |
14263 | return 1; | |
14264 | } | |
14265 | ||
14266 | ||
14267 | static PyObject *_wrap_ART_GO_FORWARD_get() { | |
14268 | PyObject *pyobj; | |
14269 | ||
14270 | { | |
14271 | #if wxUSE_UNICODE | |
14272 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len()); | |
14273 | #else | |
14274 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len()); | |
14275 | #endif | |
14276 | } | |
14277 | return pyobj; | |
14278 | } | |
14279 | ||
14280 | ||
14281 | static int _wrap_ART_GO_UP_set(PyObject *) { | |
14282 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_UP is read-only."); | |
14283 | return 1; | |
14284 | } | |
14285 | ||
14286 | ||
14287 | static PyObject *_wrap_ART_GO_UP_get() { | |
14288 | PyObject *pyobj; | |
14289 | ||
14290 | { | |
14291 | #if wxUSE_UNICODE | |
14292 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len()); | |
14293 | #else | |
14294 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len()); | |
14295 | #endif | |
14296 | } | |
14297 | return pyobj; | |
14298 | } | |
14299 | ||
14300 | ||
14301 | static int _wrap_ART_GO_DOWN_set(PyObject *) { | |
14302 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DOWN is read-only."); | |
14303 | return 1; | |
14304 | } | |
14305 | ||
14306 | ||
14307 | static PyObject *_wrap_ART_GO_DOWN_get() { | |
14308 | PyObject *pyobj; | |
14309 | ||
14310 | { | |
14311 | #if wxUSE_UNICODE | |
14312 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len()); | |
14313 | #else | |
14314 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len()); | |
14315 | #endif | |
14316 | } | |
14317 | return pyobj; | |
14318 | } | |
14319 | ||
14320 | ||
14321 | static int _wrap_ART_GO_TO_PARENT_set(PyObject *) { | |
14322 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_TO_PARENT is read-only."); | |
14323 | return 1; | |
14324 | } | |
14325 | ||
14326 | ||
14327 | static PyObject *_wrap_ART_GO_TO_PARENT_get() { | |
14328 | PyObject *pyobj; | |
14329 | ||
14330 | { | |
14331 | #if wxUSE_UNICODE | |
14332 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len()); | |
14333 | #else | |
14334 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len()); | |
14335 | #endif | |
14336 | } | |
14337 | return pyobj; | |
14338 | } | |
14339 | ||
14340 | ||
14341 | static int _wrap_ART_GO_HOME_set(PyObject *) { | |
14342 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_HOME is read-only."); | |
14343 | return 1; | |
14344 | } | |
14345 | ||
14346 | ||
14347 | static PyObject *_wrap_ART_GO_HOME_get() { | |
14348 | PyObject *pyobj; | |
14349 | ||
14350 | { | |
14351 | #if wxUSE_UNICODE | |
14352 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len()); | |
14353 | #else | |
14354 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len()); | |
14355 | #endif | |
14356 | } | |
14357 | return pyobj; | |
14358 | } | |
14359 | ||
14360 | ||
14361 | static int _wrap_ART_FILE_OPEN_set(PyObject *) { | |
14362 | PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_OPEN is read-only."); | |
14363 | return 1; | |
14364 | } | |
14365 | ||
14366 | ||
14367 | static PyObject *_wrap_ART_FILE_OPEN_get() { | |
14368 | PyObject *pyobj; | |
14369 | ||
14370 | { | |
14371 | #if wxUSE_UNICODE | |
14372 | pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len()); | |
14373 | #else | |
14374 | pyobj = PyString_FromStringAndSize((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len()); | |
14375 | #endif | |
14376 | } | |
14377 | return pyobj; | |
14378 | } | |
14379 | ||
14380 | ||
14381 | static int _wrap_ART_PRINT_set(PyObject *) { | |
14382 | PyErr_SetString(PyExc_TypeError,"Variable ART_PRINT is read-only."); | |
14383 | return 1; | |
14384 | } | |
14385 | ||
14386 | ||
14387 | static PyObject *_wrap_ART_PRINT_get() { | |
14388 | PyObject *pyobj; | |
14389 | ||
14390 | { | |
14391 | #if wxUSE_UNICODE | |
14392 | pyobj = PyUnicode_FromWideChar((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len()); | |
14393 | #else | |
14394 | pyobj = PyString_FromStringAndSize((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len()); | |
14395 | #endif | |
14396 | } | |
14397 | return pyobj; | |
14398 | } | |
14399 | ||
14400 | ||
14401 | static int _wrap_ART_HELP_set(PyObject *) { | |
14402 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP is read-only."); | |
14403 | return 1; | |
14404 | } | |
14405 | ||
14406 | ||
14407 | static PyObject *_wrap_ART_HELP_get() { | |
14408 | PyObject *pyobj; | |
14409 | ||
14410 | { | |
14411 | #if wxUSE_UNICODE | |
14412 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len()); | |
14413 | #else | |
14414 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len()); | |
14415 | #endif | |
14416 | } | |
14417 | return pyobj; | |
14418 | } | |
14419 | ||
14420 | ||
14421 | static int _wrap_ART_TIP_set(PyObject *) { | |
14422 | PyErr_SetString(PyExc_TypeError,"Variable ART_TIP is read-only."); | |
14423 | return 1; | |
14424 | } | |
14425 | ||
14426 | ||
14427 | static PyObject *_wrap_ART_TIP_get() { | |
14428 | PyObject *pyobj; | |
14429 | ||
14430 | { | |
14431 | #if wxUSE_UNICODE | |
14432 | pyobj = PyUnicode_FromWideChar((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len()); | |
14433 | #else | |
14434 | pyobj = PyString_FromStringAndSize((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len()); | |
14435 | #endif | |
14436 | } | |
14437 | return pyobj; | |
14438 | } | |
14439 | ||
14440 | ||
14441 | static int _wrap_ART_REPORT_VIEW_set(PyObject *) { | |
14442 | PyErr_SetString(PyExc_TypeError,"Variable ART_REPORT_VIEW is read-only."); | |
14443 | return 1; | |
14444 | } | |
14445 | ||
14446 | ||
14447 | static PyObject *_wrap_ART_REPORT_VIEW_get() { | |
14448 | PyObject *pyobj; | |
14449 | ||
14450 | { | |
14451 | #if wxUSE_UNICODE | |
14452 | pyobj = PyUnicode_FromWideChar((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len()); | |
14453 | #else | |
14454 | pyobj = PyString_FromStringAndSize((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len()); | |
14455 | #endif | |
14456 | } | |
14457 | return pyobj; | |
14458 | } | |
14459 | ||
14460 | ||
14461 | static int _wrap_ART_LIST_VIEW_set(PyObject *) { | |
14462 | PyErr_SetString(PyExc_TypeError,"Variable ART_LIST_VIEW is read-only."); | |
14463 | return 1; | |
14464 | } | |
14465 | ||
14466 | ||
14467 | static PyObject *_wrap_ART_LIST_VIEW_get() { | |
14468 | PyObject *pyobj; | |
14469 | ||
14470 | { | |
14471 | #if wxUSE_UNICODE | |
14472 | pyobj = PyUnicode_FromWideChar((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len()); | |
14473 | #else | |
14474 | pyobj = PyString_FromStringAndSize((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len()); | |
14475 | #endif | |
14476 | } | |
14477 | return pyobj; | |
14478 | } | |
14479 | ||
14480 | ||
14481 | static int _wrap_ART_NEW_DIR_set(PyObject *) { | |
14482 | PyErr_SetString(PyExc_TypeError,"Variable ART_NEW_DIR is read-only."); | |
14483 | return 1; | |
14484 | } | |
14485 | ||
14486 | ||
14487 | static PyObject *_wrap_ART_NEW_DIR_get() { | |
14488 | PyObject *pyobj; | |
14489 | ||
14490 | { | |
14491 | #if wxUSE_UNICODE | |
14492 | pyobj = PyUnicode_FromWideChar((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len()); | |
14493 | #else | |
14494 | pyobj = PyString_FromStringAndSize((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len()); | |
14495 | #endif | |
14496 | } | |
14497 | return pyobj; | |
14498 | } | |
14499 | ||
14500 | ||
14501 | static int _wrap_ART_FOLDER_set(PyObject *) { | |
14502 | PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER is read-only."); | |
14503 | return 1; | |
14504 | } | |
14505 | ||
14506 | ||
14507 | static PyObject *_wrap_ART_FOLDER_get() { | |
14508 | PyObject *pyobj; | |
14509 | ||
14510 | { | |
14511 | #if wxUSE_UNICODE | |
14512 | pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len()); | |
14513 | #else | |
14514 | pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len()); | |
14515 | #endif | |
14516 | } | |
14517 | return pyobj; | |
14518 | } | |
14519 | ||
14520 | ||
14521 | static int _wrap_ART_GO_DIR_UP_set(PyObject *) { | |
14522 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DIR_UP is read-only."); | |
14523 | return 1; | |
14524 | } | |
14525 | ||
14526 | ||
14527 | static PyObject *_wrap_ART_GO_DIR_UP_get() { | |
14528 | PyObject *pyobj; | |
14529 | ||
14530 | { | |
14531 | #if wxUSE_UNICODE | |
14532 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len()); | |
14533 | #else | |
14534 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len()); | |
14535 | #endif | |
14536 | } | |
14537 | return pyobj; | |
14538 | } | |
14539 | ||
14540 | ||
14541 | static int _wrap_ART_EXECUTABLE_FILE_set(PyObject *) { | |
14542 | PyErr_SetString(PyExc_TypeError,"Variable ART_EXECUTABLE_FILE is read-only."); | |
14543 | return 1; | |
14544 | } | |
14545 | ||
14546 | ||
14547 | static PyObject *_wrap_ART_EXECUTABLE_FILE_get() { | |
14548 | PyObject *pyobj; | |
14549 | ||
14550 | { | |
14551 | #if wxUSE_UNICODE | |
14552 | pyobj = PyUnicode_FromWideChar((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len()); | |
14553 | #else | |
14554 | pyobj = PyString_FromStringAndSize((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len()); | |
14555 | #endif | |
14556 | } | |
14557 | return pyobj; | |
14558 | } | |
14559 | ||
14560 | ||
14561 | static int _wrap_ART_NORMAL_FILE_set(PyObject *) { | |
14562 | PyErr_SetString(PyExc_TypeError,"Variable ART_NORMAL_FILE is read-only."); | |
14563 | return 1; | |
14564 | } | |
14565 | ||
14566 | ||
14567 | static PyObject *_wrap_ART_NORMAL_FILE_get() { | |
14568 | PyObject *pyobj; | |
14569 | ||
14570 | { | |
14571 | #if wxUSE_UNICODE | |
14572 | pyobj = PyUnicode_FromWideChar((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len()); | |
14573 | #else | |
14574 | pyobj = PyString_FromStringAndSize((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len()); | |
14575 | #endif | |
14576 | } | |
14577 | return pyobj; | |
14578 | } | |
14579 | ||
14580 | ||
14581 | static int _wrap_ART_TICK_MARK_set(PyObject *) { | |
14582 | PyErr_SetString(PyExc_TypeError,"Variable ART_TICK_MARK is read-only."); | |
14583 | return 1; | |
14584 | } | |
14585 | ||
14586 | ||
14587 | static PyObject *_wrap_ART_TICK_MARK_get() { | |
14588 | PyObject *pyobj; | |
14589 | ||
14590 | { | |
14591 | #if wxUSE_UNICODE | |
14592 | pyobj = PyUnicode_FromWideChar((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len()); | |
14593 | #else | |
14594 | pyobj = PyString_FromStringAndSize((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len()); | |
14595 | #endif | |
14596 | } | |
14597 | return pyobj; | |
14598 | } | |
14599 | ||
14600 | ||
14601 | static int _wrap_ART_CROSS_MARK_set(PyObject *) { | |
14602 | PyErr_SetString(PyExc_TypeError,"Variable ART_CROSS_MARK is read-only."); | |
14603 | return 1; | |
14604 | } | |
14605 | ||
14606 | ||
14607 | static PyObject *_wrap_ART_CROSS_MARK_get() { | |
14608 | PyObject *pyobj; | |
14609 | ||
14610 | { | |
14611 | #if wxUSE_UNICODE | |
14612 | pyobj = PyUnicode_FromWideChar((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len()); | |
14613 | #else | |
14614 | pyobj = PyString_FromStringAndSize((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len()); | |
14615 | #endif | |
14616 | } | |
14617 | return pyobj; | |
14618 | } | |
14619 | ||
14620 | ||
14621 | static int _wrap_ART_ERROR_set(PyObject *) { | |
14622 | PyErr_SetString(PyExc_TypeError,"Variable ART_ERROR is read-only."); | |
14623 | return 1; | |
14624 | } | |
14625 | ||
14626 | ||
14627 | static PyObject *_wrap_ART_ERROR_get() { | |
14628 | PyObject *pyobj; | |
14629 | ||
14630 | { | |
14631 | #if wxUSE_UNICODE | |
14632 | pyobj = PyUnicode_FromWideChar((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len()); | |
14633 | #else | |
14634 | pyobj = PyString_FromStringAndSize((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len()); | |
14635 | #endif | |
14636 | } | |
14637 | return pyobj; | |
14638 | } | |
14639 | ||
14640 | ||
14641 | static int _wrap_ART_QUESTION_set(PyObject *) { | |
14642 | PyErr_SetString(PyExc_TypeError,"Variable ART_QUESTION is read-only."); | |
14643 | return 1; | |
14644 | } | |
14645 | ||
14646 | ||
14647 | static PyObject *_wrap_ART_QUESTION_get() { | |
14648 | PyObject *pyobj; | |
14649 | ||
14650 | { | |
14651 | #if wxUSE_UNICODE | |
14652 | pyobj = PyUnicode_FromWideChar((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len()); | |
14653 | #else | |
14654 | pyobj = PyString_FromStringAndSize((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len()); | |
14655 | #endif | |
14656 | } | |
14657 | return pyobj; | |
14658 | } | |
14659 | ||
14660 | ||
14661 | static int _wrap_ART_WARNING_set(PyObject *) { | |
14662 | PyErr_SetString(PyExc_TypeError,"Variable ART_WARNING is read-only."); | |
14663 | return 1; | |
14664 | } | |
14665 | ||
14666 | ||
14667 | static PyObject *_wrap_ART_WARNING_get() { | |
14668 | PyObject *pyobj; | |
14669 | ||
14670 | { | |
14671 | #if wxUSE_UNICODE | |
14672 | pyobj = PyUnicode_FromWideChar((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len()); | |
14673 | #else | |
14674 | pyobj = PyString_FromStringAndSize((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len()); | |
14675 | #endif | |
14676 | } | |
14677 | return pyobj; | |
14678 | } | |
14679 | ||
14680 | ||
14681 | static int _wrap_ART_INFORMATION_set(PyObject *) { | |
14682 | PyErr_SetString(PyExc_TypeError,"Variable ART_INFORMATION is read-only."); | |
14683 | return 1; | |
14684 | } | |
14685 | ||
14686 | ||
14687 | static PyObject *_wrap_ART_INFORMATION_get() { | |
14688 | PyObject *pyobj; | |
14689 | ||
14690 | { | |
14691 | #if wxUSE_UNICODE | |
14692 | pyobj = PyUnicode_FromWideChar((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len()); | |
14693 | #else | |
14694 | pyobj = PyString_FromStringAndSize((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len()); | |
14695 | #endif | |
14696 | } | |
14697 | return pyobj; | |
14698 | } | |
14699 | ||
14700 | ||
14701 | static int _wrap_ART_MISSING_IMAGE_set(PyObject *) { | |
14702 | PyErr_SetString(PyExc_TypeError,"Variable ART_MISSING_IMAGE is read-only."); | |
14703 | return 1; | |
14704 | } | |
14705 | ||
14706 | ||
14707 | static PyObject *_wrap_ART_MISSING_IMAGE_get() { | |
14708 | PyObject *pyobj; | |
14709 | ||
14710 | { | |
14711 | #if wxUSE_UNICODE | |
14712 | pyobj = PyUnicode_FromWideChar((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len()); | |
14713 | #else | |
14714 | pyobj = PyString_FromStringAndSize((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len()); | |
14715 | #endif | |
14716 | } | |
14717 | return pyobj; | |
14718 | } | |
14719 | ||
14720 | ||
14721 | static PyObject *_wrap_new_ArtProvider(PyObject *, PyObject *args, PyObject *kwargs) { | |
14722 | PyObject *resultobj; | |
14723 | wxPyArtProvider *result; | |
14724 | char *kwnames[] = { | |
14725 | NULL | |
14726 | }; | |
14727 | ||
14728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ArtProvider",kwnames)) goto fail; | |
14729 | { | |
14730 | if (!wxPyCheckForApp()) SWIG_fail; | |
14731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14732 | result = (wxPyArtProvider *)new wxPyArtProvider(); | |
14733 | ||
14734 | wxPyEndAllowThreads(__tstate); | |
14735 | if (PyErr_Occurred()) SWIG_fail; | |
14736 | } | |
14737 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyArtProvider, 1); | |
14738 | return resultobj; | |
14739 | fail: | |
14740 | return NULL; | |
14741 | } | |
14742 | ||
14743 | ||
14744 | static PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
14745 | PyObject *resultobj; | |
14746 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14747 | PyObject *arg2 = (PyObject *) 0 ; | |
14748 | PyObject *arg3 = (PyObject *) 0 ; | |
14749 | PyObject * obj0 = 0 ; | |
14750 | PyObject * obj1 = 0 ; | |
14751 | PyObject * obj2 = 0 ; | |
14752 | char *kwnames[] = { | |
14753 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
14754 | }; | |
14755 | ||
14756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ArtProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14757 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, | |
14758 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14759 | arg2 = obj1; | |
14760 | arg3 = obj2; | |
14761 | { | |
14762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14763 | (arg1)->_setCallbackInfo(arg2,arg3); | |
14764 | ||
14765 | wxPyEndAllowThreads(__tstate); | |
14766 | if (PyErr_Occurred()) SWIG_fail; | |
14767 | } | |
14768 | Py_INCREF(Py_None); resultobj = Py_None; | |
14769 | return resultobj; | |
14770 | fail: | |
14771 | return NULL; | |
14772 | } | |
14773 | ||
14774 | ||
14775 | static PyObject *_wrap_ArtProvider_PushProvider(PyObject *, PyObject *args, PyObject *kwargs) { | |
14776 | PyObject *resultobj; | |
14777 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14778 | PyObject * obj0 = 0 ; | |
14779 | char *kwnames[] = { | |
14780 | (char *) "provider", NULL | |
14781 | }; | |
14782 | ||
14783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) goto fail; | |
14784 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, | |
14785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14786 | { | |
14787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14788 | wxPyArtProvider::PushProvider(arg1); | |
14789 | ||
14790 | wxPyEndAllowThreads(__tstate); | |
14791 | if (PyErr_Occurred()) SWIG_fail; | |
14792 | } | |
14793 | Py_INCREF(Py_None); resultobj = Py_None; | |
14794 | return resultobj; | |
14795 | fail: | |
14796 | return NULL; | |
14797 | } | |
14798 | ||
14799 | ||
14800 | static PyObject *_wrap_ArtProvider_PopProvider(PyObject *, PyObject *args, PyObject *kwargs) { | |
14801 | PyObject *resultobj; | |
14802 | bool result; | |
14803 | char *kwnames[] = { | |
14804 | NULL | |
14805 | }; | |
14806 | ||
14807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ArtProvider_PopProvider",kwnames)) goto fail; | |
14808 | { | |
14809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14810 | result = (bool)wxPyArtProvider::PopProvider(); | |
14811 | ||
14812 | wxPyEndAllowThreads(__tstate); | |
14813 | if (PyErr_Occurred()) SWIG_fail; | |
14814 | } | |
14815 | { | |
14816 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14817 | } | |
14818 | return resultobj; | |
14819 | fail: | |
14820 | return NULL; | |
14821 | } | |
14822 | ||
14823 | ||
14824 | static PyObject *_wrap_ArtProvider_RemoveProvider(PyObject *, PyObject *args, PyObject *kwargs) { | |
14825 | PyObject *resultobj; | |
14826 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14827 | bool result; | |
14828 | PyObject * obj0 = 0 ; | |
14829 | char *kwnames[] = { | |
14830 | (char *) "provider", NULL | |
14831 | }; | |
14832 | ||
14833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_RemoveProvider",kwnames,&obj0)) goto fail; | |
14834 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, | |
14835 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14836 | { | |
14837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14838 | result = (bool)wxPyArtProvider::RemoveProvider(arg1); | |
14839 | ||
14840 | wxPyEndAllowThreads(__tstate); | |
14841 | if (PyErr_Occurred()) SWIG_fail; | |
14842 | } | |
14843 | { | |
14844 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14845 | } | |
14846 | return resultobj; | |
14847 | fail: | |
14848 | return NULL; | |
14849 | } | |
14850 | ||
14851 | ||
14852 | static PyObject *_wrap_ArtProvider_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { | |
14853 | PyObject *resultobj; | |
14854 | wxString *arg1 = 0 ; | |
14855 | wxString const &arg2_defvalue = wxPyART_OTHER ; | |
14856 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
14857 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
14858 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
14859 | wxBitmap result; | |
14860 | bool temp1 = false ; | |
14861 | bool temp2 = false ; | |
14862 | wxSize temp3 ; | |
14863 | PyObject * obj0 = 0 ; | |
14864 | PyObject * obj1 = 0 ; | |
14865 | PyObject * obj2 = 0 ; | |
14866 | char *kwnames[] = { | |
14867 | (char *) "id",(char *) "client",(char *) "size", NULL | |
14868 | }; | |
14869 | ||
14870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14871 | { | |
14872 | arg1 = wxString_in_helper(obj0); | |
14873 | if (arg1 == NULL) SWIG_fail; | |
14874 | temp1 = true; | |
14875 | } | |
14876 | if (obj1) { | |
14877 | { | |
14878 | arg2 = wxString_in_helper(obj1); | |
14879 | if (arg2 == NULL) SWIG_fail; | |
14880 | temp2 = true; | |
14881 | } | |
14882 | } | |
14883 | if (obj2) { | |
14884 | { | |
14885 | arg3 = &temp3; | |
14886 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
14887 | } | |
14888 | } | |
14889 | { | |
14890 | if (!wxPyCheckForApp()) SWIG_fail; | |
14891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14892 | result = wxPyArtProvider::GetBitmap((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3); | |
14893 | ||
14894 | wxPyEndAllowThreads(__tstate); | |
14895 | if (PyErr_Occurred()) SWIG_fail; | |
14896 | } | |
14897 | { | |
14898 | wxBitmap * resultptr; | |
14899 | resultptr = new wxBitmap((wxBitmap &) result); | |
14900 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
14901 | } | |
14902 | { | |
14903 | if (temp1) | |
14904 | delete arg1; | |
14905 | } | |
14906 | { | |
14907 | if (temp2) | |
14908 | delete arg2; | |
14909 | } | |
14910 | return resultobj; | |
14911 | fail: | |
14912 | { | |
14913 | if (temp1) | |
14914 | delete arg1; | |
14915 | } | |
14916 | { | |
14917 | if (temp2) | |
14918 | delete arg2; | |
14919 | } | |
14920 | return NULL; | |
14921 | } | |
14922 | ||
14923 | ||
14924 | static PyObject *_wrap_ArtProvider_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) { | |
14925 | PyObject *resultobj; | |
14926 | wxString *arg1 = 0 ; | |
14927 | wxString const &arg2_defvalue = wxPyART_OTHER ; | |
14928 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
14929 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
14930 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
14931 | wxIcon result; | |
14932 | bool temp1 = false ; | |
14933 | bool temp2 = false ; | |
14934 | wxSize temp3 ; | |
14935 | PyObject * obj0 = 0 ; | |
14936 | PyObject * obj1 = 0 ; | |
14937 | PyObject * obj2 = 0 ; | |
14938 | char *kwnames[] = { | |
14939 | (char *) "id",(char *) "client",(char *) "size", NULL | |
14940 | }; | |
14941 | ||
14942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14943 | { | |
14944 | arg1 = wxString_in_helper(obj0); | |
14945 | if (arg1 == NULL) SWIG_fail; | |
14946 | temp1 = true; | |
14947 | } | |
14948 | if (obj1) { | |
14949 | { | |
14950 | arg2 = wxString_in_helper(obj1); | |
14951 | if (arg2 == NULL) SWIG_fail; | |
14952 | temp2 = true; | |
14953 | } | |
14954 | } | |
14955 | if (obj2) { | |
14956 | { | |
14957 | arg3 = &temp3; | |
14958 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
14959 | } | |
14960 | } | |
14961 | { | |
14962 | if (!wxPyCheckForApp()) SWIG_fail; | |
14963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14964 | result = wxPyArtProvider::GetIcon((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3); | |
14965 | ||
14966 | wxPyEndAllowThreads(__tstate); | |
14967 | if (PyErr_Occurred()) SWIG_fail; | |
14968 | } | |
14969 | { | |
14970 | wxIcon * resultptr; | |
14971 | resultptr = new wxIcon((wxIcon &) result); | |
14972 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1); | |
14973 | } | |
14974 | { | |
14975 | if (temp1) | |
14976 | delete arg1; | |
14977 | } | |
14978 | { | |
14979 | if (temp2) | |
14980 | delete arg2; | |
14981 | } | |
14982 | return resultobj; | |
14983 | fail: | |
14984 | { | |
14985 | if (temp1) | |
14986 | delete arg1; | |
14987 | } | |
14988 | { | |
14989 | if (temp2) | |
14990 | delete arg2; | |
14991 | } | |
14992 | return NULL; | |
14993 | } | |
14994 | ||
14995 | ||
14996 | static PyObject *_wrap_ArtProvider_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { | |
14997 | PyObject *resultobj; | |
14998 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14999 | PyObject * obj0 = 0 ; | |
15000 | char *kwnames[] = { | |
15001 | (char *) "self", NULL | |
15002 | }; | |
15003 | ||
15004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Destroy",kwnames,&obj0)) goto fail; | |
15005 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, | |
15006 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15007 | { | |
15008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15009 | wxPyArtProvider_Destroy(arg1); | |
15010 | ||
15011 | wxPyEndAllowThreads(__tstate); | |
15012 | if (PyErr_Occurred()) SWIG_fail; | |
15013 | } | |
15014 | Py_INCREF(Py_None); resultobj = Py_None; | |
15015 | return resultobj; | |
15016 | fail: | |
15017 | return NULL; | |
15018 | } | |
15019 | ||
15020 | ||
15021 | static PyObject * ArtProvider_swigregister(PyObject *, PyObject *args) { | |
15022 | PyObject *obj; | |
15023 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15024 | SWIG_TypeClientData(SWIGTYPE_p_wxPyArtProvider, obj); | |
15025 | Py_INCREF(obj); | |
15026 | return Py_BuildValue((char *)""); | |
15027 | } | |
15028 | static PyObject *_wrap_delete_ConfigBase(PyObject *, PyObject *args, PyObject *kwargs) { | |
15029 | PyObject *resultobj; | |
15030 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15031 | PyObject * obj0 = 0 ; | |
15032 | char *kwnames[] = { | |
15033 | (char *) "self", NULL | |
15034 | }; | |
15035 | ||
15036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigBase",kwnames,&obj0)) goto fail; | |
15037 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15038 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15039 | { | |
15040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15041 | delete arg1; | |
15042 | ||
15043 | wxPyEndAllowThreads(__tstate); | |
15044 | if (PyErr_Occurred()) SWIG_fail; | |
15045 | } | |
15046 | Py_INCREF(Py_None); resultobj = Py_None; | |
15047 | return resultobj; | |
15048 | fail: | |
15049 | return NULL; | |
15050 | } | |
15051 | ||
15052 | ||
15053 | static PyObject *_wrap_ConfigBase_Set(PyObject *, PyObject *args, PyObject *kwargs) { | |
15054 | PyObject *resultobj; | |
15055 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15056 | wxConfigBase *result; | |
15057 | PyObject * obj0 = 0 ; | |
15058 | char *kwnames[] = { | |
15059 | (char *) "config", NULL | |
15060 | }; | |
15061 | ||
15062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_Set",kwnames,&obj0)) goto fail; | |
15063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15065 | { | |
15066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15067 | result = (wxConfigBase *)wxConfigBase::Set(arg1); | |
15068 | ||
15069 | wxPyEndAllowThreads(__tstate); | |
15070 | if (PyErr_Occurred()) SWIG_fail; | |
15071 | } | |
15072 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); | |
15073 | return resultobj; | |
15074 | fail: | |
15075 | return NULL; | |
15076 | } | |
15077 | ||
15078 | ||
15079 | static PyObject *_wrap_ConfigBase_Get(PyObject *, PyObject *args, PyObject *kwargs) { | |
15080 | PyObject *resultobj; | |
15081 | bool arg1 = (bool) true ; | |
15082 | wxConfigBase *result; | |
15083 | PyObject * obj0 = 0 ; | |
15084 | char *kwnames[] = { | |
15085 | (char *) "createOnDemand", NULL | |
15086 | }; | |
15087 | ||
15088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ConfigBase_Get",kwnames,&obj0)) goto fail; | |
15089 | if (obj0) { | |
15090 | arg1 = (bool)SWIG_As_bool(obj0); | |
15091 | if (PyErr_Occurred()) SWIG_fail; | |
15092 | } | |
15093 | { | |
15094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15095 | result = (wxConfigBase *)wxConfigBase::Get(arg1); | |
15096 | ||
15097 | wxPyEndAllowThreads(__tstate); | |
15098 | if (PyErr_Occurred()) SWIG_fail; | |
15099 | } | |
15100 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); | |
15101 | return resultobj; | |
15102 | fail: | |
15103 | return NULL; | |
15104 | } | |
15105 | ||
15106 | ||
15107 | static PyObject *_wrap_ConfigBase_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
15108 | PyObject *resultobj; | |
15109 | wxConfigBase *result; | |
15110 | char *kwnames[] = { | |
15111 | NULL | |
15112 | }; | |
15113 | ||
15114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_Create",kwnames)) goto fail; | |
15115 | { | |
15116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15117 | result = (wxConfigBase *)wxConfigBase::Create(); | |
15118 | ||
15119 | wxPyEndAllowThreads(__tstate); | |
15120 | if (PyErr_Occurred()) SWIG_fail; | |
15121 | } | |
15122 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); | |
15123 | return resultobj; | |
15124 | fail: | |
15125 | return NULL; | |
15126 | } | |
15127 | ||
15128 | ||
15129 | static PyObject *_wrap_ConfigBase_DontCreateOnDemand(PyObject *, PyObject *args, PyObject *kwargs) { | |
15130 | PyObject *resultobj; | |
15131 | char *kwnames[] = { | |
15132 | NULL | |
15133 | }; | |
15134 | ||
15135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_DontCreateOnDemand",kwnames)) goto fail; | |
15136 | { | |
15137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15138 | wxConfigBase::DontCreateOnDemand(); | |
15139 | ||
15140 | wxPyEndAllowThreads(__tstate); | |
15141 | if (PyErr_Occurred()) SWIG_fail; | |
15142 | } | |
15143 | Py_INCREF(Py_None); resultobj = Py_None; | |
15144 | return resultobj; | |
15145 | fail: | |
15146 | return NULL; | |
15147 | } | |
15148 | ||
15149 | ||
15150 | static PyObject *_wrap_ConfigBase_SetPath(PyObject *, PyObject *args, PyObject *kwargs) { | |
15151 | PyObject *resultobj; | |
15152 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15153 | wxString *arg2 = 0 ; | |
15154 | bool temp2 = false ; | |
15155 | PyObject * obj0 = 0 ; | |
15156 | PyObject * obj1 = 0 ; | |
15157 | char *kwnames[] = { | |
15158 | (char *) "self",(char *) "path", NULL | |
15159 | }; | |
15160 | ||
15161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
15162 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15163 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15164 | { | |
15165 | arg2 = wxString_in_helper(obj1); | |
15166 | if (arg2 == NULL) SWIG_fail; | |
15167 | temp2 = true; | |
15168 | } | |
15169 | { | |
15170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15171 | (arg1)->SetPath((wxString const &)*arg2); | |
15172 | ||
15173 | wxPyEndAllowThreads(__tstate); | |
15174 | if (PyErr_Occurred()) SWIG_fail; | |
15175 | } | |
15176 | Py_INCREF(Py_None); resultobj = Py_None; | |
15177 | { | |
15178 | if (temp2) | |
15179 | delete arg2; | |
15180 | } | |
15181 | return resultobj; | |
15182 | fail: | |
15183 | { | |
15184 | if (temp2) | |
15185 | delete arg2; | |
15186 | } | |
15187 | return NULL; | |
15188 | } | |
15189 | ||
15190 | ||
15191 | static PyObject *_wrap_ConfigBase_GetPath(PyObject *, PyObject *args, PyObject *kwargs) { | |
15192 | PyObject *resultobj; | |
15193 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15194 | wxString *result; | |
15195 | PyObject * obj0 = 0 ; | |
15196 | char *kwnames[] = { | |
15197 | (char *) "self", NULL | |
15198 | }; | |
15199 | ||
15200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetPath",kwnames,&obj0)) goto fail; | |
15201 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15202 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15203 | { | |
15204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15205 | { | |
15206 | wxString const &_result_ref = ((wxConfigBase const *)arg1)->GetPath(); | |
15207 | result = (wxString *) &_result_ref; | |
15208 | } | |
15209 | ||
15210 | wxPyEndAllowThreads(__tstate); | |
15211 | if (PyErr_Occurred()) SWIG_fail; | |
15212 | } | |
15213 | { | |
15214 | #if wxUSE_UNICODE | |
15215 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
15216 | #else | |
15217 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
15218 | #endif | |
15219 | } | |
15220 | return resultobj; | |
15221 | fail: | |
15222 | return NULL; | |
15223 | } | |
15224 | ||
15225 | ||
15226 | static PyObject *_wrap_ConfigBase_GetFirstGroup(PyObject *, PyObject *args, PyObject *kwargs) { | |
15227 | PyObject *resultobj; | |
15228 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15229 | PyObject *result; | |
15230 | PyObject * obj0 = 0 ; | |
15231 | char *kwnames[] = { | |
15232 | (char *) "self", NULL | |
15233 | }; | |
15234 | ||
15235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstGroup",kwnames,&obj0)) goto fail; | |
15236 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15237 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15238 | { | |
15239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15240 | result = (PyObject *)wxConfigBase_GetFirstGroup(arg1); | |
15241 | ||
15242 | wxPyEndAllowThreads(__tstate); | |
15243 | if (PyErr_Occurred()) SWIG_fail; | |
15244 | } | |
15245 | resultobj = result; | |
15246 | return resultobj; | |
15247 | fail: | |
15248 | return NULL; | |
15249 | } | |
15250 | ||
15251 | ||
15252 | static PyObject *_wrap_ConfigBase_GetNextGroup(PyObject *, PyObject *args, PyObject *kwargs) { | |
15253 | PyObject *resultobj; | |
15254 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15255 | long arg2 ; | |
15256 | PyObject *result; | |
15257 | PyObject * obj0 = 0 ; | |
15258 | PyObject * obj1 = 0 ; | |
15259 | char *kwnames[] = { | |
15260 | (char *) "self",(char *) "index", NULL | |
15261 | }; | |
15262 | ||
15263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextGroup",kwnames,&obj0,&obj1)) goto fail; | |
15264 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15265 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15266 | arg2 = (long)SWIG_As_long(obj1); | |
15267 | if (PyErr_Occurred()) SWIG_fail; | |
15268 | { | |
15269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15270 | result = (PyObject *)wxConfigBase_GetNextGroup(arg1,arg2); | |
15271 | ||
15272 | wxPyEndAllowThreads(__tstate); | |
15273 | if (PyErr_Occurred()) SWIG_fail; | |
15274 | } | |
15275 | resultobj = result; | |
15276 | return resultobj; | |
15277 | fail: | |
15278 | return NULL; | |
15279 | } | |
15280 | ||
15281 | ||
15282 | static PyObject *_wrap_ConfigBase_GetFirstEntry(PyObject *, PyObject *args, PyObject *kwargs) { | |
15283 | PyObject *resultobj; | |
15284 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15285 | PyObject *result; | |
15286 | PyObject * obj0 = 0 ; | |
15287 | char *kwnames[] = { | |
15288 | (char *) "self", NULL | |
15289 | }; | |
15290 | ||
15291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstEntry",kwnames,&obj0)) goto fail; | |
15292 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15293 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15294 | { | |
15295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15296 | result = (PyObject *)wxConfigBase_GetFirstEntry(arg1); | |
15297 | ||
15298 | wxPyEndAllowThreads(__tstate); | |
15299 | if (PyErr_Occurred()) SWIG_fail; | |
15300 | } | |
15301 | resultobj = result; | |
15302 | return resultobj; | |
15303 | fail: | |
15304 | return NULL; | |
15305 | } | |
15306 | ||
15307 | ||
15308 | static PyObject *_wrap_ConfigBase_GetNextEntry(PyObject *, PyObject *args, PyObject *kwargs) { | |
15309 | PyObject *resultobj; | |
15310 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15311 | long arg2 ; | |
15312 | PyObject *result; | |
15313 | PyObject * obj0 = 0 ; | |
15314 | PyObject * obj1 = 0 ; | |
15315 | char *kwnames[] = { | |
15316 | (char *) "self",(char *) "index", NULL | |
15317 | }; | |
15318 | ||
15319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextEntry",kwnames,&obj0,&obj1)) goto fail; | |
15320 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15321 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15322 | arg2 = (long)SWIG_As_long(obj1); | |
15323 | if (PyErr_Occurred()) SWIG_fail; | |
15324 | { | |
15325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15326 | result = (PyObject *)wxConfigBase_GetNextEntry(arg1,arg2); | |
15327 | ||
15328 | wxPyEndAllowThreads(__tstate); | |
15329 | if (PyErr_Occurred()) SWIG_fail; | |
15330 | } | |
15331 | resultobj = result; | |
15332 | return resultobj; | |
15333 | fail: | |
15334 | return NULL; | |
15335 | } | |
15336 | ||
15337 | ||
15338 | static PyObject *_wrap_ConfigBase_GetNumberOfEntries(PyObject *, PyObject *args, PyObject *kwargs) { | |
15339 | PyObject *resultobj; | |
15340 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15341 | bool arg2 = (bool) false ; | |
15342 | size_t result; | |
15343 | PyObject * obj0 = 0 ; | |
15344 | PyObject * obj1 = 0 ; | |
15345 | char *kwnames[] = { | |
15346 | (char *) "self",(char *) "recursive", NULL | |
15347 | }; | |
15348 | ||
15349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfEntries",kwnames,&obj0,&obj1)) goto fail; | |
15350 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15351 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15352 | if (obj1) { | |
15353 | arg2 = (bool)SWIG_As_bool(obj1); | |
15354 | if (PyErr_Occurred()) SWIG_fail; | |
15355 | } | |
15356 | { | |
15357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15358 | result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfEntries(arg2); | |
15359 | ||
15360 | wxPyEndAllowThreads(__tstate); | |
15361 | if (PyErr_Occurred()) SWIG_fail; | |
15362 | } | |
15363 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); | |
15364 | return resultobj; | |
15365 | fail: | |
15366 | return NULL; | |
15367 | } | |
15368 | ||
15369 | ||
15370 | static PyObject *_wrap_ConfigBase_GetNumberOfGroups(PyObject *, PyObject *args, PyObject *kwargs) { | |
15371 | PyObject *resultobj; | |
15372 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15373 | bool arg2 = (bool) false ; | |
15374 | size_t result; | |
15375 | PyObject * obj0 = 0 ; | |
15376 | PyObject * obj1 = 0 ; | |
15377 | char *kwnames[] = { | |
15378 | (char *) "self",(char *) "recursive", NULL | |
15379 | }; | |
15380 | ||
15381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfGroups",kwnames,&obj0,&obj1)) goto fail; | |
15382 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15384 | if (obj1) { | |
15385 | arg2 = (bool)SWIG_As_bool(obj1); | |
15386 | if (PyErr_Occurred()) SWIG_fail; | |
15387 | } | |
15388 | { | |
15389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15390 | result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfGroups(arg2); | |
15391 | ||
15392 | wxPyEndAllowThreads(__tstate); | |
15393 | if (PyErr_Occurred()) SWIG_fail; | |
15394 | } | |
15395 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); | |
15396 | return resultobj; | |
15397 | fail: | |
15398 | return NULL; | |
15399 | } | |
15400 | ||
15401 | ||
15402 | static PyObject *_wrap_ConfigBase_HasGroup(PyObject *, PyObject *args, PyObject *kwargs) { | |
15403 | PyObject *resultobj; | |
15404 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15405 | wxString *arg2 = 0 ; | |
15406 | bool result; | |
15407 | bool temp2 = false ; | |
15408 | PyObject * obj0 = 0 ; | |
15409 | PyObject * obj1 = 0 ; | |
15410 | char *kwnames[] = { | |
15411 | (char *) "self",(char *) "name", NULL | |
15412 | }; | |
15413 | ||
15414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasGroup",kwnames,&obj0,&obj1)) goto fail; | |
15415 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15416 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15417 | { | |
15418 | arg2 = wxString_in_helper(obj1); | |
15419 | if (arg2 == NULL) SWIG_fail; | |
15420 | temp2 = true; | |
15421 | } | |
15422 | { | |
15423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15424 | result = (bool)((wxConfigBase const *)arg1)->HasGroup((wxString const &)*arg2); | |
15425 | ||
15426 | wxPyEndAllowThreads(__tstate); | |
15427 | if (PyErr_Occurred()) SWIG_fail; | |
15428 | } | |
15429 | { | |
15430 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15431 | } | |
15432 | { | |
15433 | if (temp2) | |
15434 | delete arg2; | |
15435 | } | |
15436 | return resultobj; | |
15437 | fail: | |
15438 | { | |
15439 | if (temp2) | |
15440 | delete arg2; | |
15441 | } | |
15442 | return NULL; | |
15443 | } | |
15444 | ||
15445 | ||
15446 | static PyObject *_wrap_ConfigBase_HasEntry(PyObject *, PyObject *args, PyObject *kwargs) { | |
15447 | PyObject *resultobj; | |
15448 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15449 | wxString *arg2 = 0 ; | |
15450 | bool result; | |
15451 | bool temp2 = false ; | |
15452 | PyObject * obj0 = 0 ; | |
15453 | PyObject * obj1 = 0 ; | |
15454 | char *kwnames[] = { | |
15455 | (char *) "self",(char *) "name", NULL | |
15456 | }; | |
15457 | ||
15458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasEntry",kwnames,&obj0,&obj1)) goto fail; | |
15459 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15460 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15461 | { | |
15462 | arg2 = wxString_in_helper(obj1); | |
15463 | if (arg2 == NULL) SWIG_fail; | |
15464 | temp2 = true; | |
15465 | } | |
15466 | { | |
15467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15468 | result = (bool)((wxConfigBase const *)arg1)->HasEntry((wxString const &)*arg2); | |
15469 | ||
15470 | wxPyEndAllowThreads(__tstate); | |
15471 | if (PyErr_Occurred()) SWIG_fail; | |
15472 | } | |
15473 | { | |
15474 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15475 | } | |
15476 | { | |
15477 | if (temp2) | |
15478 | delete arg2; | |
15479 | } | |
15480 | return resultobj; | |
15481 | fail: | |
15482 | { | |
15483 | if (temp2) | |
15484 | delete arg2; | |
15485 | } | |
15486 | return NULL; | |
15487 | } | |
15488 | ||
15489 | ||
15490 | static PyObject *_wrap_ConfigBase_Exists(PyObject *, PyObject *args, PyObject *kwargs) { | |
15491 | PyObject *resultobj; | |
15492 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15493 | wxString *arg2 = 0 ; | |
15494 | bool result; | |
15495 | bool temp2 = false ; | |
15496 | PyObject * obj0 = 0 ; | |
15497 | PyObject * obj1 = 0 ; | |
15498 | char *kwnames[] = { | |
15499 | (char *) "self",(char *) "name", NULL | |
15500 | }; | |
15501 | ||
15502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_Exists",kwnames,&obj0,&obj1)) goto fail; | |
15503 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15504 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15505 | { | |
15506 | arg2 = wxString_in_helper(obj1); | |
15507 | if (arg2 == NULL) SWIG_fail; | |
15508 | temp2 = true; | |
15509 | } | |
15510 | { | |
15511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15512 | result = (bool)((wxConfigBase const *)arg1)->Exists((wxString const &)*arg2); | |
15513 | ||
15514 | wxPyEndAllowThreads(__tstate); | |
15515 | if (PyErr_Occurred()) SWIG_fail; | |
15516 | } | |
15517 | { | |
15518 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15519 | } | |
15520 | { | |
15521 | if (temp2) | |
15522 | delete arg2; | |
15523 | } | |
15524 | return resultobj; | |
15525 | fail: | |
15526 | { | |
15527 | if (temp2) | |
15528 | delete arg2; | |
15529 | } | |
15530 | return NULL; | |
15531 | } | |
15532 | ||
15533 | ||
15534 | static PyObject *_wrap_ConfigBase_GetEntryType(PyObject *, PyObject *args, PyObject *kwargs) { | |
15535 | PyObject *resultobj; | |
15536 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15537 | wxString *arg2 = 0 ; | |
15538 | int result; | |
15539 | bool temp2 = false ; | |
15540 | PyObject * obj0 = 0 ; | |
15541 | PyObject * obj1 = 0 ; | |
15542 | char *kwnames[] = { | |
15543 | (char *) "self",(char *) "name", NULL | |
15544 | }; | |
15545 | ||
15546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetEntryType",kwnames,&obj0,&obj1)) goto fail; | |
15547 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15548 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15549 | { | |
15550 | arg2 = wxString_in_helper(obj1); | |
15551 | if (arg2 == NULL) SWIG_fail; | |
15552 | temp2 = true; | |
15553 | } | |
15554 | { | |
15555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15556 | result = (int)((wxConfigBase const *)arg1)->GetEntryType((wxString const &)*arg2); | |
15557 | ||
15558 | wxPyEndAllowThreads(__tstate); | |
15559 | if (PyErr_Occurred()) SWIG_fail; | |
15560 | } | |
15561 | resultobj = SWIG_From_int((int)result); | |
15562 | { | |
15563 | if (temp2) | |
15564 | delete arg2; | |
15565 | } | |
15566 | return resultobj; | |
15567 | fail: | |
15568 | { | |
15569 | if (temp2) | |
15570 | delete arg2; | |
15571 | } | |
15572 | return NULL; | |
15573 | } | |
15574 | ||
15575 | ||
15576 | static PyObject *_wrap_ConfigBase_Read(PyObject *, PyObject *args, PyObject *kwargs) { | |
15577 | PyObject *resultobj; | |
15578 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15579 | wxString *arg2 = 0 ; | |
15580 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
15581 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
15582 | wxString result; | |
15583 | bool temp2 = false ; | |
15584 | bool temp3 = false ; | |
15585 | PyObject * obj0 = 0 ; | |
15586 | PyObject * obj1 = 0 ; | |
15587 | PyObject * obj2 = 0 ; | |
15588 | char *kwnames[] = { | |
15589 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15590 | }; | |
15591 | ||
15592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_Read",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15593 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15594 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15595 | { | |
15596 | arg2 = wxString_in_helper(obj1); | |
15597 | if (arg2 == NULL) SWIG_fail; | |
15598 | temp2 = true; | |
15599 | } | |
15600 | if (obj2) { | |
15601 | { | |
15602 | arg3 = wxString_in_helper(obj2); | |
15603 | if (arg3 == NULL) SWIG_fail; | |
15604 | temp3 = true; | |
15605 | } | |
15606 | } | |
15607 | { | |
15608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15609 | result = (arg1)->Read((wxString const &)*arg2,(wxString const &)*arg3); | |
15610 | ||
15611 | wxPyEndAllowThreads(__tstate); | |
15612 | if (PyErr_Occurred()) SWIG_fail; | |
15613 | } | |
15614 | { | |
15615 | #if wxUSE_UNICODE | |
15616 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15617 | #else | |
15618 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15619 | #endif | |
15620 | } | |
15621 | { | |
15622 | if (temp2) | |
15623 | delete arg2; | |
15624 | } | |
15625 | { | |
15626 | if (temp3) | |
15627 | delete arg3; | |
15628 | } | |
15629 | return resultobj; | |
15630 | fail: | |
15631 | { | |
15632 | if (temp2) | |
15633 | delete arg2; | |
15634 | } | |
15635 | { | |
15636 | if (temp3) | |
15637 | delete arg3; | |
15638 | } | |
15639 | return NULL; | |
15640 | } | |
15641 | ||
15642 | ||
15643 | static PyObject *_wrap_ConfigBase_ReadInt(PyObject *, PyObject *args, PyObject *kwargs) { | |
15644 | PyObject *resultobj; | |
15645 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15646 | wxString *arg2 = 0 ; | |
15647 | long arg3 = (long) 0 ; | |
15648 | long result; | |
15649 | bool temp2 = false ; | |
15650 | PyObject * obj0 = 0 ; | |
15651 | PyObject * obj1 = 0 ; | |
15652 | PyObject * obj2 = 0 ; | |
15653 | char *kwnames[] = { | |
15654 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15655 | }; | |
15656 | ||
15657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadInt",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15658 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15659 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15660 | { | |
15661 | arg2 = wxString_in_helper(obj1); | |
15662 | if (arg2 == NULL) SWIG_fail; | |
15663 | temp2 = true; | |
15664 | } | |
15665 | if (obj2) { | |
15666 | arg3 = (long)SWIG_As_long(obj2); | |
15667 | if (PyErr_Occurred()) SWIG_fail; | |
15668 | } | |
15669 | { | |
15670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15671 | result = (long)wxConfigBase_ReadInt(arg1,(wxString const &)*arg2,arg3); | |
15672 | ||
15673 | wxPyEndAllowThreads(__tstate); | |
15674 | if (PyErr_Occurred()) SWIG_fail; | |
15675 | } | |
15676 | resultobj = SWIG_From_long((long)result); | |
15677 | { | |
15678 | if (temp2) | |
15679 | delete arg2; | |
15680 | } | |
15681 | return resultobj; | |
15682 | fail: | |
15683 | { | |
15684 | if (temp2) | |
15685 | delete arg2; | |
15686 | } | |
15687 | return NULL; | |
15688 | } | |
15689 | ||
15690 | ||
15691 | static PyObject *_wrap_ConfigBase_ReadFloat(PyObject *, PyObject *args, PyObject *kwargs) { | |
15692 | PyObject *resultobj; | |
15693 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15694 | wxString *arg2 = 0 ; | |
15695 | double arg3 = (double) 0.0 ; | |
15696 | double result; | |
15697 | bool temp2 = false ; | |
15698 | PyObject * obj0 = 0 ; | |
15699 | PyObject * obj1 = 0 ; | |
15700 | PyObject * obj2 = 0 ; | |
15701 | char *kwnames[] = { | |
15702 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15703 | }; | |
15704 | ||
15705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadFloat",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15706 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15707 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15708 | { | |
15709 | arg2 = wxString_in_helper(obj1); | |
15710 | if (arg2 == NULL) SWIG_fail; | |
15711 | temp2 = true; | |
15712 | } | |
15713 | if (obj2) { | |
15714 | arg3 = (double)SWIG_As_double(obj2); | |
15715 | if (PyErr_Occurred()) SWIG_fail; | |
15716 | } | |
15717 | { | |
15718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15719 | result = (double)wxConfigBase_ReadFloat(arg1,(wxString const &)*arg2,arg3); | |
15720 | ||
15721 | wxPyEndAllowThreads(__tstate); | |
15722 | if (PyErr_Occurred()) SWIG_fail; | |
15723 | } | |
15724 | resultobj = SWIG_From_double((double)result); | |
15725 | { | |
15726 | if (temp2) | |
15727 | delete arg2; | |
15728 | } | |
15729 | return resultobj; | |
15730 | fail: | |
15731 | { | |
15732 | if (temp2) | |
15733 | delete arg2; | |
15734 | } | |
15735 | return NULL; | |
15736 | } | |
15737 | ||
15738 | ||
15739 | static PyObject *_wrap_ConfigBase_ReadBool(PyObject *, PyObject *args, PyObject *kwargs) { | |
15740 | PyObject *resultobj; | |
15741 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15742 | wxString *arg2 = 0 ; | |
15743 | bool arg3 = (bool) false ; | |
15744 | bool result; | |
15745 | bool temp2 = false ; | |
15746 | PyObject * obj0 = 0 ; | |
15747 | PyObject * obj1 = 0 ; | |
15748 | PyObject * obj2 = 0 ; | |
15749 | char *kwnames[] = { | |
15750 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15751 | }; | |
15752 | ||
15753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadBool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15754 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15755 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15756 | { | |
15757 | arg2 = wxString_in_helper(obj1); | |
15758 | if (arg2 == NULL) SWIG_fail; | |
15759 | temp2 = true; | |
15760 | } | |
15761 | if (obj2) { | |
15762 | arg3 = (bool)SWIG_As_bool(obj2); | |
15763 | if (PyErr_Occurred()) SWIG_fail; | |
15764 | } | |
15765 | { | |
15766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15767 | result = (bool)wxConfigBase_ReadBool(arg1,(wxString const &)*arg2,arg3); | |
15768 | ||
15769 | wxPyEndAllowThreads(__tstate); | |
15770 | if (PyErr_Occurred()) SWIG_fail; | |
15771 | } | |
15772 | { | |
15773 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15774 | } | |
15775 | { | |
15776 | if (temp2) | |
15777 | delete arg2; | |
15778 | } | |
15779 | return resultobj; | |
15780 | fail: | |
15781 | { | |
15782 | if (temp2) | |
15783 | delete arg2; | |
15784 | } | |
15785 | return NULL; | |
15786 | } | |
15787 | ||
15788 | ||
15789 | static PyObject *_wrap_ConfigBase_Write(PyObject *, PyObject *args, PyObject *kwargs) { | |
15790 | PyObject *resultobj; | |
15791 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15792 | wxString *arg2 = 0 ; | |
15793 | wxString *arg3 = 0 ; | |
15794 | bool result; | |
15795 | bool temp2 = false ; | |
15796 | bool temp3 = false ; | |
15797 | PyObject * obj0 = 0 ; | |
15798 | PyObject * obj1 = 0 ; | |
15799 | PyObject * obj2 = 0 ; | |
15800 | char *kwnames[] = { | |
15801 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15802 | }; | |
15803 | ||
15804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_Write",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15805 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15806 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15807 | { | |
15808 | arg2 = wxString_in_helper(obj1); | |
15809 | if (arg2 == NULL) SWIG_fail; | |
15810 | temp2 = true; | |
15811 | } | |
15812 | { | |
15813 | arg3 = wxString_in_helper(obj2); | |
15814 | if (arg3 == NULL) SWIG_fail; | |
15815 | temp3 = true; | |
15816 | } | |
15817 | { | |
15818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15819 | result = (bool)(arg1)->Write((wxString const &)*arg2,(wxString const &)*arg3); | |
15820 | ||
15821 | wxPyEndAllowThreads(__tstate); | |
15822 | if (PyErr_Occurred()) SWIG_fail; | |
15823 | } | |
15824 | { | |
15825 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15826 | } | |
15827 | { | |
15828 | if (temp2) | |
15829 | delete arg2; | |
15830 | } | |
15831 | { | |
15832 | if (temp3) | |
15833 | delete arg3; | |
15834 | } | |
15835 | return resultobj; | |
15836 | fail: | |
15837 | { | |
15838 | if (temp2) | |
15839 | delete arg2; | |
15840 | } | |
15841 | { | |
15842 | if (temp3) | |
15843 | delete arg3; | |
15844 | } | |
15845 | return NULL; | |
15846 | } | |
15847 | ||
15848 | ||
15849 | static PyObject *_wrap_ConfigBase_WriteInt(PyObject *, PyObject *args, PyObject *kwargs) { | |
15850 | PyObject *resultobj; | |
15851 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15852 | wxString *arg2 = 0 ; | |
15853 | long arg3 ; | |
15854 | bool result; | |
15855 | bool temp2 = false ; | |
15856 | PyObject * obj0 = 0 ; | |
15857 | PyObject * obj1 = 0 ; | |
15858 | PyObject * obj2 = 0 ; | |
15859 | char *kwnames[] = { | |
15860 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15861 | }; | |
15862 | ||
15863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteInt",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15864 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15865 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15866 | { | |
15867 | arg2 = wxString_in_helper(obj1); | |
15868 | if (arg2 == NULL) SWIG_fail; | |
15869 | temp2 = true; | |
15870 | } | |
15871 | arg3 = (long)SWIG_As_long(obj2); | |
15872 | if (PyErr_Occurred()) SWIG_fail; | |
15873 | { | |
15874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15875 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
15876 | ||
15877 | wxPyEndAllowThreads(__tstate); | |
15878 | if (PyErr_Occurred()) SWIG_fail; | |
15879 | } | |
15880 | { | |
15881 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15882 | } | |
15883 | { | |
15884 | if (temp2) | |
15885 | delete arg2; | |
15886 | } | |
15887 | return resultobj; | |
15888 | fail: | |
15889 | { | |
15890 | if (temp2) | |
15891 | delete arg2; | |
15892 | } | |
15893 | return NULL; | |
15894 | } | |
15895 | ||
15896 | ||
15897 | static PyObject *_wrap_ConfigBase_WriteFloat(PyObject *, PyObject *args, PyObject *kwargs) { | |
15898 | PyObject *resultobj; | |
15899 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15900 | wxString *arg2 = 0 ; | |
15901 | double arg3 ; | |
15902 | bool result; | |
15903 | bool temp2 = false ; | |
15904 | PyObject * obj0 = 0 ; | |
15905 | PyObject * obj1 = 0 ; | |
15906 | PyObject * obj2 = 0 ; | |
15907 | char *kwnames[] = { | |
15908 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15909 | }; | |
15910 | ||
15911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteFloat",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15912 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15913 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15914 | { | |
15915 | arg2 = wxString_in_helper(obj1); | |
15916 | if (arg2 == NULL) SWIG_fail; | |
15917 | temp2 = true; | |
15918 | } | |
15919 | arg3 = (double)SWIG_As_double(obj2); | |
15920 | if (PyErr_Occurred()) SWIG_fail; | |
15921 | { | |
15922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15923 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
15924 | ||
15925 | wxPyEndAllowThreads(__tstate); | |
15926 | if (PyErr_Occurred()) SWIG_fail; | |
15927 | } | |
15928 | { | |
15929 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15930 | } | |
15931 | { | |
15932 | if (temp2) | |
15933 | delete arg2; | |
15934 | } | |
15935 | return resultobj; | |
15936 | fail: | |
15937 | { | |
15938 | if (temp2) | |
15939 | delete arg2; | |
15940 | } | |
15941 | return NULL; | |
15942 | } | |
15943 | ||
15944 | ||
15945 | static PyObject *_wrap_ConfigBase_WriteBool(PyObject *, PyObject *args, PyObject *kwargs) { | |
15946 | PyObject *resultobj; | |
15947 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15948 | wxString *arg2 = 0 ; | |
15949 | bool arg3 ; | |
15950 | bool result; | |
15951 | bool temp2 = false ; | |
15952 | PyObject * obj0 = 0 ; | |
15953 | PyObject * obj1 = 0 ; | |
15954 | PyObject * obj2 = 0 ; | |
15955 | char *kwnames[] = { | |
15956 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15957 | }; | |
15958 | ||
15959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteBool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15962 | { | |
15963 | arg2 = wxString_in_helper(obj1); | |
15964 | if (arg2 == NULL) SWIG_fail; | |
15965 | temp2 = true; | |
15966 | } | |
15967 | arg3 = (bool)SWIG_As_bool(obj2); | |
15968 | if (PyErr_Occurred()) SWIG_fail; | |
15969 | { | |
15970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15971 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
15972 | ||
15973 | wxPyEndAllowThreads(__tstate); | |
15974 | if (PyErr_Occurred()) SWIG_fail; | |
15975 | } | |
15976 | { | |
15977 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15978 | } | |
15979 | { | |
15980 | if (temp2) | |
15981 | delete arg2; | |
15982 | } | |
15983 | return resultobj; | |
15984 | fail: | |
15985 | { | |
15986 | if (temp2) | |
15987 | delete arg2; | |
15988 | } | |
15989 | return NULL; | |
15990 | } | |
15991 | ||
15992 | ||
15993 | static PyObject *_wrap_ConfigBase_Flush(PyObject *, PyObject *args, PyObject *kwargs) { | |
15994 | PyObject *resultobj; | |
15995 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15996 | bool arg2 = (bool) false ; | |
15997 | bool result; | |
15998 | PyObject * obj0 = 0 ; | |
15999 | PyObject * obj1 = 0 ; | |
16000 | char *kwnames[] = { | |
16001 | (char *) "self",(char *) "currentOnly", NULL | |
16002 | }; | |
16003 | ||
16004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_Flush",kwnames,&obj0,&obj1)) goto fail; | |
16005 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16006 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16007 | if (obj1) { | |
16008 | arg2 = (bool)SWIG_As_bool(obj1); | |
16009 | if (PyErr_Occurred()) SWIG_fail; | |
16010 | } | |
16011 | { | |
16012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16013 | result = (bool)(arg1)->Flush(arg2); | |
16014 | ||
16015 | wxPyEndAllowThreads(__tstate); | |
16016 | if (PyErr_Occurred()) SWIG_fail; | |
16017 | } | |
16018 | { | |
16019 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16020 | } | |
16021 | return resultobj; | |
16022 | fail: | |
16023 | return NULL; | |
16024 | } | |
16025 | ||
16026 | ||
16027 | static PyObject *_wrap_ConfigBase_RenameEntry(PyObject *, PyObject *args, PyObject *kwargs) { | |
16028 | PyObject *resultobj; | |
16029 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16030 | wxString *arg2 = 0 ; | |
16031 | wxString *arg3 = 0 ; | |
16032 | bool result; | |
16033 | bool temp2 = false ; | |
16034 | bool temp3 = false ; | |
16035 | PyObject * obj0 = 0 ; | |
16036 | PyObject * obj1 = 0 ; | |
16037 | PyObject * obj2 = 0 ; | |
16038 | char *kwnames[] = { | |
16039 | (char *) "self",(char *) "oldName",(char *) "newName", NULL | |
16040 | }; | |
16041 | ||
16042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16043 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16045 | { | |
16046 | arg2 = wxString_in_helper(obj1); | |
16047 | if (arg2 == NULL) SWIG_fail; | |
16048 | temp2 = true; | |
16049 | } | |
16050 | { | |
16051 | arg3 = wxString_in_helper(obj2); | |
16052 | if (arg3 == NULL) SWIG_fail; | |
16053 | temp3 = true; | |
16054 | } | |
16055 | { | |
16056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16057 | result = (bool)(arg1)->RenameEntry((wxString const &)*arg2,(wxString const &)*arg3); | |
16058 | ||
16059 | wxPyEndAllowThreads(__tstate); | |
16060 | if (PyErr_Occurred()) SWIG_fail; | |
16061 | } | |
16062 | { | |
16063 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16064 | } | |
16065 | { | |
16066 | if (temp2) | |
16067 | delete arg2; | |
16068 | } | |
16069 | { | |
16070 | if (temp3) | |
16071 | delete arg3; | |
16072 | } | |
16073 | return resultobj; | |
16074 | fail: | |
16075 | { | |
16076 | if (temp2) | |
16077 | delete arg2; | |
16078 | } | |
16079 | { | |
16080 | if (temp3) | |
16081 | delete arg3; | |
16082 | } | |
16083 | return NULL; | |
16084 | } | |
16085 | ||
16086 | ||
16087 | static PyObject *_wrap_ConfigBase_RenameGroup(PyObject *, PyObject *args, PyObject *kwargs) { | |
16088 | PyObject *resultobj; | |
16089 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16090 | wxString *arg2 = 0 ; | |
16091 | wxString *arg3 = 0 ; | |
16092 | bool result; | |
16093 | bool temp2 = false ; | |
16094 | bool temp3 = false ; | |
16095 | PyObject * obj0 = 0 ; | |
16096 | PyObject * obj1 = 0 ; | |
16097 | PyObject * obj2 = 0 ; | |
16098 | char *kwnames[] = { | |
16099 | (char *) "self",(char *) "oldName",(char *) "newName", NULL | |
16100 | }; | |
16101 | ||
16102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameGroup",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16103 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16104 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16105 | { | |
16106 | arg2 = wxString_in_helper(obj1); | |
16107 | if (arg2 == NULL) SWIG_fail; | |
16108 | temp2 = true; | |
16109 | } | |
16110 | { | |
16111 | arg3 = wxString_in_helper(obj2); | |
16112 | if (arg3 == NULL) SWIG_fail; | |
16113 | temp3 = true; | |
16114 | } | |
16115 | { | |
16116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16117 | result = (bool)(arg1)->RenameGroup((wxString const &)*arg2,(wxString const &)*arg3); | |
16118 | ||
16119 | wxPyEndAllowThreads(__tstate); | |
16120 | if (PyErr_Occurred()) SWIG_fail; | |
16121 | } | |
16122 | { | |
16123 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16124 | } | |
16125 | { | |
16126 | if (temp2) | |
16127 | delete arg2; | |
16128 | } | |
16129 | { | |
16130 | if (temp3) | |
16131 | delete arg3; | |
16132 | } | |
16133 | return resultobj; | |
16134 | fail: | |
16135 | { | |
16136 | if (temp2) | |
16137 | delete arg2; | |
16138 | } | |
16139 | { | |
16140 | if (temp3) | |
16141 | delete arg3; | |
16142 | } | |
16143 | return NULL; | |
16144 | } | |
16145 | ||
16146 | ||
16147 | static PyObject *_wrap_ConfigBase_DeleteEntry(PyObject *, PyObject *args, PyObject *kwargs) { | |
16148 | PyObject *resultobj; | |
16149 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16150 | wxString *arg2 = 0 ; | |
16151 | bool arg3 = (bool) true ; | |
16152 | bool result; | |
16153 | bool temp2 = false ; | |
16154 | PyObject * obj0 = 0 ; | |
16155 | PyObject * obj1 = 0 ; | |
16156 | PyObject * obj2 = 0 ; | |
16157 | char *kwnames[] = { | |
16158 | (char *) "self",(char *) "key",(char *) "deleteGroupIfEmpty", NULL | |
16159 | }; | |
16160 | ||
16161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_DeleteEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16162 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16163 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16164 | { | |
16165 | arg2 = wxString_in_helper(obj1); | |
16166 | if (arg2 == NULL) SWIG_fail; | |
16167 | temp2 = true; | |
16168 | } | |
16169 | if (obj2) { | |
16170 | arg3 = (bool)SWIG_As_bool(obj2); | |
16171 | if (PyErr_Occurred()) SWIG_fail; | |
16172 | } | |
16173 | { | |
16174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16175 | result = (bool)(arg1)->DeleteEntry((wxString const &)*arg2,arg3); | |
16176 | ||
16177 | wxPyEndAllowThreads(__tstate); | |
16178 | if (PyErr_Occurred()) SWIG_fail; | |
16179 | } | |
16180 | { | |
16181 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16182 | } | |
16183 | { | |
16184 | if (temp2) | |
16185 | delete arg2; | |
16186 | } | |
16187 | return resultobj; | |
16188 | fail: | |
16189 | { | |
16190 | if (temp2) | |
16191 | delete arg2; | |
16192 | } | |
16193 | return NULL; | |
16194 | } | |
16195 | ||
16196 | ||
16197 | static PyObject *_wrap_ConfigBase_DeleteGroup(PyObject *, PyObject *args, PyObject *kwargs) { | |
16198 | PyObject *resultobj; | |
16199 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16200 | wxString *arg2 = 0 ; | |
16201 | bool result; | |
16202 | bool temp2 = false ; | |
16203 | PyObject * obj0 = 0 ; | |
16204 | PyObject * obj1 = 0 ; | |
16205 | char *kwnames[] = { | |
16206 | (char *) "self",(char *) "key", NULL | |
16207 | }; | |
16208 | ||
16209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_DeleteGroup",kwnames,&obj0,&obj1)) goto fail; | |
16210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16212 | { | |
16213 | arg2 = wxString_in_helper(obj1); | |
16214 | if (arg2 == NULL) SWIG_fail; | |
16215 | temp2 = true; | |
16216 | } | |
16217 | { | |
16218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16219 | result = (bool)(arg1)->DeleteGroup((wxString const &)*arg2); | |
16220 | ||
16221 | wxPyEndAllowThreads(__tstate); | |
16222 | if (PyErr_Occurred()) SWIG_fail; | |
16223 | } | |
16224 | { | |
16225 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16226 | } | |
16227 | { | |
16228 | if (temp2) | |
16229 | delete arg2; | |
16230 | } | |
16231 | return resultobj; | |
16232 | fail: | |
16233 | { | |
16234 | if (temp2) | |
16235 | delete arg2; | |
16236 | } | |
16237 | return NULL; | |
16238 | } | |
16239 | ||
16240 | ||
16241 | static PyObject *_wrap_ConfigBase_DeleteAll(PyObject *, PyObject *args, PyObject *kwargs) { | |
16242 | PyObject *resultobj; | |
16243 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16244 | bool result; | |
16245 | PyObject * obj0 = 0 ; | |
16246 | char *kwnames[] = { | |
16247 | (char *) "self", NULL | |
16248 | }; | |
16249 | ||
16250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_DeleteAll",kwnames,&obj0)) goto fail; | |
16251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16253 | { | |
16254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16255 | result = (bool)(arg1)->DeleteAll(); | |
16256 | ||
16257 | wxPyEndAllowThreads(__tstate); | |
16258 | if (PyErr_Occurred()) SWIG_fail; | |
16259 | } | |
16260 | { | |
16261 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16262 | } | |
16263 | return resultobj; | |
16264 | fail: | |
16265 | return NULL; | |
16266 | } | |
16267 | ||
16268 | ||
16269 | static PyObject *_wrap_ConfigBase_SetExpandEnvVars(PyObject *, PyObject *args, PyObject *kwargs) { | |
16270 | PyObject *resultobj; | |
16271 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16272 | bool arg2 = (bool) true ; | |
16273 | PyObject * obj0 = 0 ; | |
16274 | PyObject * obj1 = 0 ; | |
16275 | char *kwnames[] = { | |
16276 | (char *) "self",(char *) "doIt", NULL | |
16277 | }; | |
16278 | ||
16279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetExpandEnvVars",kwnames,&obj0,&obj1)) goto fail; | |
16280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16282 | if (obj1) { | |
16283 | arg2 = (bool)SWIG_As_bool(obj1); | |
16284 | if (PyErr_Occurred()) SWIG_fail; | |
16285 | } | |
16286 | { | |
16287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16288 | (arg1)->SetExpandEnvVars(arg2); | |
16289 | ||
16290 | wxPyEndAllowThreads(__tstate); | |
16291 | if (PyErr_Occurred()) SWIG_fail; | |
16292 | } | |
16293 | Py_INCREF(Py_None); resultobj = Py_None; | |
16294 | return resultobj; | |
16295 | fail: | |
16296 | return NULL; | |
16297 | } | |
16298 | ||
16299 | ||
16300 | static PyObject *_wrap_ConfigBase_IsExpandingEnvVars(PyObject *, PyObject *args, PyObject *kwargs) { | |
16301 | PyObject *resultobj; | |
16302 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16303 | bool result; | |
16304 | PyObject * obj0 = 0 ; | |
16305 | char *kwnames[] = { | |
16306 | (char *) "self", NULL | |
16307 | }; | |
16308 | ||
16309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsExpandingEnvVars",kwnames,&obj0)) goto fail; | |
16310 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16311 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16312 | { | |
16313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16314 | result = (bool)((wxConfigBase const *)arg1)->IsExpandingEnvVars(); | |
16315 | ||
16316 | wxPyEndAllowThreads(__tstate); | |
16317 | if (PyErr_Occurred()) SWIG_fail; | |
16318 | } | |
16319 | { | |
16320 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16321 | } | |
16322 | return resultobj; | |
16323 | fail: | |
16324 | return NULL; | |
16325 | } | |
16326 | ||
16327 | ||
16328 | static PyObject *_wrap_ConfigBase_SetRecordDefaults(PyObject *, PyObject *args, PyObject *kwargs) { | |
16329 | PyObject *resultobj; | |
16330 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16331 | bool arg2 = (bool) true ; | |
16332 | PyObject * obj0 = 0 ; | |
16333 | PyObject * obj1 = 0 ; | |
16334 | char *kwnames[] = { | |
16335 | (char *) "self",(char *) "doIt", NULL | |
16336 | }; | |
16337 | ||
16338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetRecordDefaults",kwnames,&obj0,&obj1)) goto fail; | |
16339 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16340 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16341 | if (obj1) { | |
16342 | arg2 = (bool)SWIG_As_bool(obj1); | |
16343 | if (PyErr_Occurred()) SWIG_fail; | |
16344 | } | |
16345 | { | |
16346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16347 | (arg1)->SetRecordDefaults(arg2); | |
16348 | ||
16349 | wxPyEndAllowThreads(__tstate); | |
16350 | if (PyErr_Occurred()) SWIG_fail; | |
16351 | } | |
16352 | Py_INCREF(Py_None); resultobj = Py_None; | |
16353 | return resultobj; | |
16354 | fail: | |
16355 | return NULL; | |
16356 | } | |
16357 | ||
16358 | ||
16359 | static PyObject *_wrap_ConfigBase_IsRecordingDefaults(PyObject *, PyObject *args, PyObject *kwargs) { | |
16360 | PyObject *resultobj; | |
16361 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16362 | bool result; | |
16363 | PyObject * obj0 = 0 ; | |
16364 | char *kwnames[] = { | |
16365 | (char *) "self", NULL | |
16366 | }; | |
16367 | ||
16368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsRecordingDefaults",kwnames,&obj0)) goto fail; | |
16369 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16370 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16371 | { | |
16372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16373 | result = (bool)((wxConfigBase const *)arg1)->IsRecordingDefaults(); | |
16374 | ||
16375 | wxPyEndAllowThreads(__tstate); | |
16376 | if (PyErr_Occurred()) SWIG_fail; | |
16377 | } | |
16378 | { | |
16379 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16380 | } | |
16381 | return resultobj; | |
16382 | fail: | |
16383 | return NULL; | |
16384 | } | |
16385 | ||
16386 | ||
16387 | static PyObject *_wrap_ConfigBase_ExpandEnvVars(PyObject *, PyObject *args, PyObject *kwargs) { | |
16388 | PyObject *resultobj; | |
16389 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16390 | wxString *arg2 = 0 ; | |
16391 | wxString result; | |
16392 | bool temp2 = false ; | |
16393 | PyObject * obj0 = 0 ; | |
16394 | PyObject * obj1 = 0 ; | |
16395 | char *kwnames[] = { | |
16396 | (char *) "self",(char *) "str", NULL | |
16397 | }; | |
16398 | ||
16399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_ExpandEnvVars",kwnames,&obj0,&obj1)) goto fail; | |
16400 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16401 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16402 | { | |
16403 | arg2 = wxString_in_helper(obj1); | |
16404 | if (arg2 == NULL) SWIG_fail; | |
16405 | temp2 = true; | |
16406 | } | |
16407 | { | |
16408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16409 | result = ((wxConfigBase const *)arg1)->ExpandEnvVars((wxString const &)*arg2); | |
16410 | ||
16411 | wxPyEndAllowThreads(__tstate); | |
16412 | if (PyErr_Occurred()) SWIG_fail; | |
16413 | } | |
16414 | { | |
16415 | #if wxUSE_UNICODE | |
16416 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16417 | #else | |
16418 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16419 | #endif | |
16420 | } | |
16421 | { | |
16422 | if (temp2) | |
16423 | delete arg2; | |
16424 | } | |
16425 | return resultobj; | |
16426 | fail: | |
16427 | { | |
16428 | if (temp2) | |
16429 | delete arg2; | |
16430 | } | |
16431 | return NULL; | |
16432 | } | |
16433 | ||
16434 | ||
16435 | static PyObject *_wrap_ConfigBase_GetAppName(PyObject *, PyObject *args, PyObject *kwargs) { | |
16436 | PyObject *resultobj; | |
16437 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16438 | wxString result; | |
16439 | PyObject * obj0 = 0 ; | |
16440 | char *kwnames[] = { | |
16441 | (char *) "self", NULL | |
16442 | }; | |
16443 | ||
16444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetAppName",kwnames,&obj0)) goto fail; | |
16445 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16446 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16447 | { | |
16448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16449 | result = ((wxConfigBase const *)arg1)->GetAppName(); | |
16450 | ||
16451 | wxPyEndAllowThreads(__tstate); | |
16452 | if (PyErr_Occurred()) SWIG_fail; | |
16453 | } | |
16454 | { | |
16455 | #if wxUSE_UNICODE | |
16456 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16457 | #else | |
16458 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16459 | #endif | |
16460 | } | |
16461 | return resultobj; | |
16462 | fail: | |
16463 | return NULL; | |
16464 | } | |
16465 | ||
16466 | ||
16467 | static PyObject *_wrap_ConfigBase_GetVendorName(PyObject *, PyObject *args, PyObject *kwargs) { | |
16468 | PyObject *resultobj; | |
16469 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16470 | wxString result; | |
16471 | PyObject * obj0 = 0 ; | |
16472 | char *kwnames[] = { | |
16473 | (char *) "self", NULL | |
16474 | }; | |
16475 | ||
16476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetVendorName",kwnames,&obj0)) goto fail; | |
16477 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16479 | { | |
16480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16481 | result = ((wxConfigBase const *)arg1)->GetVendorName(); | |
16482 | ||
16483 | wxPyEndAllowThreads(__tstate); | |
16484 | if (PyErr_Occurred()) SWIG_fail; | |
16485 | } | |
16486 | { | |
16487 | #if wxUSE_UNICODE | |
16488 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16489 | #else | |
16490 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16491 | #endif | |
16492 | } | |
16493 | return resultobj; | |
16494 | fail: | |
16495 | return NULL; | |
16496 | } | |
16497 | ||
16498 | ||
16499 | static PyObject *_wrap_ConfigBase_SetAppName(PyObject *, PyObject *args, PyObject *kwargs) { | |
16500 | PyObject *resultobj; | |
16501 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16502 | wxString *arg2 = 0 ; | |
16503 | bool temp2 = false ; | |
16504 | PyObject * obj0 = 0 ; | |
16505 | PyObject * obj1 = 0 ; | |
16506 | char *kwnames[] = { | |
16507 | (char *) "self",(char *) "appName", NULL | |
16508 | }; | |
16509 | ||
16510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetAppName",kwnames,&obj0,&obj1)) goto fail; | |
16511 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16512 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16513 | { | |
16514 | arg2 = wxString_in_helper(obj1); | |
16515 | if (arg2 == NULL) SWIG_fail; | |
16516 | temp2 = true; | |
16517 | } | |
16518 | { | |
16519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16520 | (arg1)->SetAppName((wxString const &)*arg2); | |
16521 | ||
16522 | wxPyEndAllowThreads(__tstate); | |
16523 | if (PyErr_Occurred()) SWIG_fail; | |
16524 | } | |
16525 | Py_INCREF(Py_None); resultobj = Py_None; | |
16526 | { | |
16527 | if (temp2) | |
16528 | delete arg2; | |
16529 | } | |
16530 | return resultobj; | |
16531 | fail: | |
16532 | { | |
16533 | if (temp2) | |
16534 | delete arg2; | |
16535 | } | |
16536 | return NULL; | |
16537 | } | |
16538 | ||
16539 | ||
16540 | static PyObject *_wrap_ConfigBase_SetVendorName(PyObject *, PyObject *args, PyObject *kwargs) { | |
16541 | PyObject *resultobj; | |
16542 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16543 | wxString *arg2 = 0 ; | |
16544 | bool temp2 = false ; | |
16545 | PyObject * obj0 = 0 ; | |
16546 | PyObject * obj1 = 0 ; | |
16547 | char *kwnames[] = { | |
16548 | (char *) "self",(char *) "vendorName", NULL | |
16549 | }; | |
16550 | ||
16551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetVendorName",kwnames,&obj0,&obj1)) goto fail; | |
16552 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16554 | { | |
16555 | arg2 = wxString_in_helper(obj1); | |
16556 | if (arg2 == NULL) SWIG_fail; | |
16557 | temp2 = true; | |
16558 | } | |
16559 | { | |
16560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16561 | (arg1)->SetVendorName((wxString const &)*arg2); | |
16562 | ||
16563 | wxPyEndAllowThreads(__tstate); | |
16564 | if (PyErr_Occurred()) SWIG_fail; | |
16565 | } | |
16566 | Py_INCREF(Py_None); resultobj = Py_None; | |
16567 | { | |
16568 | if (temp2) | |
16569 | delete arg2; | |
16570 | } | |
16571 | return resultobj; | |
16572 | fail: | |
16573 | { | |
16574 | if (temp2) | |
16575 | delete arg2; | |
16576 | } | |
16577 | return NULL; | |
16578 | } | |
16579 | ||
16580 | ||
16581 | static PyObject *_wrap_ConfigBase_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) { | |
16582 | PyObject *resultobj; | |
16583 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16584 | long arg2 ; | |
16585 | PyObject * obj0 = 0 ; | |
16586 | PyObject * obj1 = 0 ; | |
16587 | char *kwnames[] = { | |
16588 | (char *) "self",(char *) "style", NULL | |
16589 | }; | |
16590 | ||
16591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetStyle",kwnames,&obj0,&obj1)) goto fail; | |
16592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16594 | arg2 = (long)SWIG_As_long(obj1); | |
16595 | if (PyErr_Occurred()) SWIG_fail; | |
16596 | { | |
16597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16598 | (arg1)->SetStyle(arg2); | |
16599 | ||
16600 | wxPyEndAllowThreads(__tstate); | |
16601 | if (PyErr_Occurred()) SWIG_fail; | |
16602 | } | |
16603 | Py_INCREF(Py_None); resultobj = Py_None; | |
16604 | return resultobj; | |
16605 | fail: | |
16606 | return NULL; | |
16607 | } | |
16608 | ||
16609 | ||
16610 | static PyObject *_wrap_ConfigBase_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { | |
16611 | PyObject *resultobj; | |
16612 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16613 | long result; | |
16614 | PyObject * obj0 = 0 ; | |
16615 | char *kwnames[] = { | |
16616 | (char *) "self", NULL | |
16617 | }; | |
16618 | ||
16619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetStyle",kwnames,&obj0)) goto fail; | |
16620 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16621 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16622 | { | |
16623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16624 | result = (long)((wxConfigBase const *)arg1)->GetStyle(); | |
16625 | ||
16626 | wxPyEndAllowThreads(__tstate); | |
16627 | if (PyErr_Occurred()) SWIG_fail; | |
16628 | } | |
16629 | resultobj = SWIG_From_long((long)result); | |
16630 | return resultobj; | |
16631 | fail: | |
16632 | return NULL; | |
16633 | } | |
16634 | ||
16635 | ||
16636 | static PyObject * ConfigBase_swigregister(PyObject *, PyObject *args) { | |
16637 | PyObject *obj; | |
16638 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16639 | SWIG_TypeClientData(SWIGTYPE_p_wxConfigBase, obj); | |
16640 | Py_INCREF(obj); | |
16641 | return Py_BuildValue((char *)""); | |
16642 | } | |
16643 | static PyObject *_wrap_new_Config(PyObject *, PyObject *args, PyObject *kwargs) { | |
16644 | PyObject *resultobj; | |
16645 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
16646 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
16647 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
16648 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
16649 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16650 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16651 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
16652 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
16653 | long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ; | |
16654 | wxConfig *result; | |
16655 | bool temp1 = false ; | |
16656 | bool temp2 = false ; | |
16657 | bool temp3 = false ; | |
16658 | bool temp4 = false ; | |
16659 | PyObject * obj0 = 0 ; | |
16660 | PyObject * obj1 = 0 ; | |
16661 | PyObject * obj2 = 0 ; | |
16662 | PyObject * obj3 = 0 ; | |
16663 | PyObject * obj4 = 0 ; | |
16664 | char *kwnames[] = { | |
16665 | (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL | |
16666 | }; | |
16667 | ||
16668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_Config",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
16669 | if (obj0) { | |
16670 | { | |
16671 | arg1 = wxString_in_helper(obj0); | |
16672 | if (arg1 == NULL) SWIG_fail; | |
16673 | temp1 = true; | |
16674 | } | |
16675 | } | |
16676 | if (obj1) { | |
16677 | { | |
16678 | arg2 = wxString_in_helper(obj1); | |
16679 | if (arg2 == NULL) SWIG_fail; | |
16680 | temp2 = true; | |
16681 | } | |
16682 | } | |
16683 | if (obj2) { | |
16684 | { | |
16685 | arg3 = wxString_in_helper(obj2); | |
16686 | if (arg3 == NULL) SWIG_fail; | |
16687 | temp3 = true; | |
16688 | } | |
16689 | } | |
16690 | if (obj3) { | |
16691 | { | |
16692 | arg4 = wxString_in_helper(obj3); | |
16693 | if (arg4 == NULL) SWIG_fail; | |
16694 | temp4 = true; | |
16695 | } | |
16696 | } | |
16697 | if (obj4) { | |
16698 | arg5 = (long)SWIG_As_long(obj4); | |
16699 | if (PyErr_Occurred()) SWIG_fail; | |
16700 | } | |
16701 | { | |
16702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16703 | result = (wxConfig *)new wxConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
16704 | ||
16705 | wxPyEndAllowThreads(__tstate); | |
16706 | if (PyErr_Occurred()) SWIG_fail; | |
16707 | } | |
16708 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfig, 1); | |
16709 | { | |
16710 | if (temp1) | |
16711 | delete arg1; | |
16712 | } | |
16713 | { | |
16714 | if (temp2) | |
16715 | delete arg2; | |
16716 | } | |
16717 | { | |
16718 | if (temp3) | |
16719 | delete arg3; | |
16720 | } | |
16721 | { | |
16722 | if (temp4) | |
16723 | delete arg4; | |
16724 | } | |
16725 | return resultobj; | |
16726 | fail: | |
16727 | { | |
16728 | if (temp1) | |
16729 | delete arg1; | |
16730 | } | |
16731 | { | |
16732 | if (temp2) | |
16733 | delete arg2; | |
16734 | } | |
16735 | { | |
16736 | if (temp3) | |
16737 | delete arg3; | |
16738 | } | |
16739 | { | |
16740 | if (temp4) | |
16741 | delete arg4; | |
16742 | } | |
16743 | return NULL; | |
16744 | } | |
16745 | ||
16746 | ||
16747 | static PyObject *_wrap_delete_Config(PyObject *, PyObject *args, PyObject *kwargs) { | |
16748 | PyObject *resultobj; | |
16749 | wxConfig *arg1 = (wxConfig *) 0 ; | |
16750 | PyObject * obj0 = 0 ; | |
16751 | char *kwnames[] = { | |
16752 | (char *) "self", NULL | |
16753 | }; | |
16754 | ||
16755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Config",kwnames,&obj0)) goto fail; | |
16756 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfig, | |
16757 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16758 | { | |
16759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16760 | delete arg1; | |
16761 | ||
16762 | wxPyEndAllowThreads(__tstate); | |
16763 | if (PyErr_Occurred()) SWIG_fail; | |
16764 | } | |
16765 | Py_INCREF(Py_None); resultobj = Py_None; | |
16766 | return resultobj; | |
16767 | fail: | |
16768 | return NULL; | |
16769 | } | |
16770 | ||
16771 | ||
16772 | static PyObject * Config_swigregister(PyObject *, PyObject *args) { | |
16773 | PyObject *obj; | |
16774 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16775 | SWIG_TypeClientData(SWIGTYPE_p_wxConfig, obj); | |
16776 | Py_INCREF(obj); | |
16777 | return Py_BuildValue((char *)""); | |
16778 | } | |
16779 | static PyObject *_wrap_new_FileConfig(PyObject *, PyObject *args, PyObject *kwargs) { | |
16780 | PyObject *resultobj; | |
16781 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
16782 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
16783 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
16784 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
16785 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16786 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16787 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
16788 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
16789 | long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ; | |
16790 | wxFileConfig *result; | |
16791 | bool temp1 = false ; | |
16792 | bool temp2 = false ; | |
16793 | bool temp3 = false ; | |
16794 | bool temp4 = false ; | |
16795 | PyObject * obj0 = 0 ; | |
16796 | PyObject * obj1 = 0 ; | |
16797 | PyObject * obj2 = 0 ; | |
16798 | PyObject * obj3 = 0 ; | |
16799 | PyObject * obj4 = 0 ; | |
16800 | char *kwnames[] = { | |
16801 | (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL | |
16802 | }; | |
16803 | ||
16804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_FileConfig",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
16805 | if (obj0) { | |
16806 | { | |
16807 | arg1 = wxString_in_helper(obj0); | |
16808 | if (arg1 == NULL) SWIG_fail; | |
16809 | temp1 = true; | |
16810 | } | |
16811 | } | |
16812 | if (obj1) { | |
16813 | { | |
16814 | arg2 = wxString_in_helper(obj1); | |
16815 | if (arg2 == NULL) SWIG_fail; | |
16816 | temp2 = true; | |
16817 | } | |
16818 | } | |
16819 | if (obj2) { | |
16820 | { | |
16821 | arg3 = wxString_in_helper(obj2); | |
16822 | if (arg3 == NULL) SWIG_fail; | |
16823 | temp3 = true; | |
16824 | } | |
16825 | } | |
16826 | if (obj3) { | |
16827 | { | |
16828 | arg4 = wxString_in_helper(obj3); | |
16829 | if (arg4 == NULL) SWIG_fail; | |
16830 | temp4 = true; | |
16831 | } | |
16832 | } | |
16833 | if (obj4) { | |
16834 | arg5 = (long)SWIG_As_long(obj4); | |
16835 | if (PyErr_Occurred()) SWIG_fail; | |
16836 | } | |
16837 | { | |
16838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16839 | result = (wxFileConfig *)new wxFileConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
16840 | ||
16841 | wxPyEndAllowThreads(__tstate); | |
16842 | if (PyErr_Occurred()) SWIG_fail; | |
16843 | } | |
16844 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileConfig, 1); | |
16845 | { | |
16846 | if (temp1) | |
16847 | delete arg1; | |
16848 | } | |
16849 | { | |
16850 | if (temp2) | |
16851 | delete arg2; | |
16852 | } | |
16853 | { | |
16854 | if (temp3) | |
16855 | delete arg3; | |
16856 | } | |
16857 | { | |
16858 | if (temp4) | |
16859 | delete arg4; | |
16860 | } | |
16861 | return resultobj; | |
16862 | fail: | |
16863 | { | |
16864 | if (temp1) | |
16865 | delete arg1; | |
16866 | } | |
16867 | { | |
16868 | if (temp2) | |
16869 | delete arg2; | |
16870 | } | |
16871 | { | |
16872 | if (temp3) | |
16873 | delete arg3; | |
16874 | } | |
16875 | { | |
16876 | if (temp4) | |
16877 | delete arg4; | |
16878 | } | |
16879 | return NULL; | |
16880 | } | |
16881 | ||
16882 | ||
16883 | static PyObject *_wrap_delete_FileConfig(PyObject *, PyObject *args, PyObject *kwargs) { | |
16884 | PyObject *resultobj; | |
16885 | wxFileConfig *arg1 = (wxFileConfig *) 0 ; | |
16886 | PyObject * obj0 = 0 ; | |
16887 | char *kwnames[] = { | |
16888 | (char *) "self", NULL | |
16889 | }; | |
16890 | ||
16891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileConfig",kwnames,&obj0)) goto fail; | |
16892 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileConfig, | |
16893 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16894 | { | |
16895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16896 | delete arg1; | |
16897 | ||
16898 | wxPyEndAllowThreads(__tstate); | |
16899 | if (PyErr_Occurred()) SWIG_fail; | |
16900 | } | |
16901 | Py_INCREF(Py_None); resultobj = Py_None; | |
16902 | return resultobj; | |
16903 | fail: | |
16904 | return NULL; | |
16905 | } | |
16906 | ||
16907 | ||
16908 | static PyObject * FileConfig_swigregister(PyObject *, PyObject *args) { | |
16909 | PyObject *obj; | |
16910 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16911 | SWIG_TypeClientData(SWIGTYPE_p_wxFileConfig, obj); | |
16912 | Py_INCREF(obj); | |
16913 | return Py_BuildValue((char *)""); | |
16914 | } | |
16915 | static PyObject *_wrap_new_ConfigPathChanger(PyObject *, PyObject *args, PyObject *kwargs) { | |
16916 | PyObject *resultobj; | |
16917 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16918 | wxString *arg2 = 0 ; | |
16919 | wxConfigPathChanger *result; | |
16920 | bool temp2 = false ; | |
16921 | PyObject * obj0 = 0 ; | |
16922 | PyObject * obj1 = 0 ; | |
16923 | char *kwnames[] = { | |
16924 | (char *) "config",(char *) "entry", NULL | |
16925 | }; | |
16926 | ||
16927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_ConfigPathChanger",kwnames,&obj0,&obj1)) goto fail; | |
16928 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16930 | { | |
16931 | arg2 = wxString_in_helper(obj1); | |
16932 | if (arg2 == NULL) SWIG_fail; | |
16933 | temp2 = true; | |
16934 | } | |
16935 | { | |
16936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16937 | result = (wxConfigPathChanger *)new wxConfigPathChanger((wxConfigBase const *)arg1,(wxString const &)*arg2); | |
16938 | ||
16939 | wxPyEndAllowThreads(__tstate); | |
16940 | if (PyErr_Occurred()) SWIG_fail; | |
16941 | } | |
16942 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigPathChanger, 1); | |
16943 | { | |
16944 | if (temp2) | |
16945 | delete arg2; | |
16946 | } | |
16947 | return resultobj; | |
16948 | fail: | |
16949 | { | |
16950 | if (temp2) | |
16951 | delete arg2; | |
16952 | } | |
16953 | return NULL; | |
16954 | } | |
16955 | ||
16956 | ||
16957 | static PyObject *_wrap_delete_ConfigPathChanger(PyObject *, PyObject *args, PyObject *kwargs) { | |
16958 | PyObject *resultobj; | |
16959 | wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ; | |
16960 | PyObject * obj0 = 0 ; | |
16961 | char *kwnames[] = { | |
16962 | (char *) "self", NULL | |
16963 | }; | |
16964 | ||
16965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigPathChanger",kwnames,&obj0)) goto fail; | |
16966 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger, | |
16967 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16968 | { | |
16969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16970 | delete arg1; | |
16971 | ||
16972 | wxPyEndAllowThreads(__tstate); | |
16973 | if (PyErr_Occurred()) SWIG_fail; | |
16974 | } | |
16975 | Py_INCREF(Py_None); resultobj = Py_None; | |
16976 | return resultobj; | |
16977 | fail: | |
16978 | return NULL; | |
16979 | } | |
16980 | ||
16981 | ||
16982 | static PyObject *_wrap_ConfigPathChanger_Name(PyObject *, PyObject *args, PyObject *kwargs) { | |
16983 | PyObject *resultobj; | |
16984 | wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ; | |
16985 | wxString *result; | |
16986 | PyObject * obj0 = 0 ; | |
16987 | char *kwnames[] = { | |
16988 | (char *) "self", NULL | |
16989 | }; | |
16990 | ||
16991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigPathChanger_Name",kwnames,&obj0)) goto fail; | |
16992 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger, | |
16993 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16994 | { | |
16995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16996 | { | |
16997 | wxString const &_result_ref = ((wxConfigPathChanger const *)arg1)->Name(); | |
16998 | result = (wxString *) &_result_ref; | |
16999 | } | |
17000 | ||
17001 | wxPyEndAllowThreads(__tstate); | |
17002 | if (PyErr_Occurred()) SWIG_fail; | |
17003 | } | |
17004 | { | |
17005 | #if wxUSE_UNICODE | |
17006 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
17007 | #else | |
17008 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
17009 | #endif | |
17010 | } | |
17011 | return resultobj; | |
17012 | fail: | |
17013 | return NULL; | |
17014 | } | |
17015 | ||
17016 | ||
17017 | static PyObject * ConfigPathChanger_swigregister(PyObject *, PyObject *args) { | |
17018 | PyObject *obj; | |
17019 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17020 | SWIG_TypeClientData(SWIGTYPE_p_wxConfigPathChanger, obj); | |
17021 | Py_INCREF(obj); | |
17022 | return Py_BuildValue((char *)""); | |
17023 | } | |
17024 | static PyObject *_wrap_ExpandEnvVars(PyObject *, PyObject *args, PyObject *kwargs) { | |
17025 | PyObject *resultobj; | |
17026 | wxString *arg1 = 0 ; | |
17027 | wxString result; | |
17028 | bool temp1 = false ; | |
17029 | PyObject * obj0 = 0 ; | |
17030 | char *kwnames[] = { | |
17031 | (char *) "sz", NULL | |
17032 | }; | |
17033 | ||
17034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ExpandEnvVars",kwnames,&obj0)) goto fail; | |
17035 | { | |
17036 | arg1 = wxString_in_helper(obj0); | |
17037 | if (arg1 == NULL) SWIG_fail; | |
17038 | temp1 = true; | |
17039 | } | |
17040 | { | |
17041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17042 | result = wxExpandEnvVars((wxString const &)*arg1); | |
17043 | ||
17044 | wxPyEndAllowThreads(__tstate); | |
17045 | if (PyErr_Occurred()) SWIG_fail; | |
17046 | } | |
17047 | { | |
17048 | #if wxUSE_UNICODE | |
17049 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17050 | #else | |
17051 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17052 | #endif | |
17053 | } | |
17054 | { | |
17055 | if (temp1) | |
17056 | delete arg1; | |
17057 | } | |
17058 | return resultobj; | |
17059 | fail: | |
17060 | { | |
17061 | if (temp1) | |
17062 | delete arg1; | |
17063 | } | |
17064 | return NULL; | |
17065 | } | |
17066 | ||
17067 | ||
17068 | static int _wrap_DateFormatStr_set(PyObject *) { | |
17069 | PyErr_SetString(PyExc_TypeError,"Variable DateFormatStr is read-only."); | |
17070 | return 1; | |
17071 | } | |
17072 | ||
17073 | ||
17074 | static PyObject *_wrap_DateFormatStr_get() { | |
17075 | PyObject *pyobj; | |
17076 | ||
17077 | { | |
17078 | #if wxUSE_UNICODE | |
17079 | pyobj = PyUnicode_FromWideChar((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len()); | |
17080 | #else | |
17081 | pyobj = PyString_FromStringAndSize((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len()); | |
17082 | #endif | |
17083 | } | |
17084 | return pyobj; | |
17085 | } | |
17086 | ||
17087 | ||
17088 | static int _wrap_TimeSpanFormatStr_set(PyObject *) { | |
17089 | PyErr_SetString(PyExc_TypeError,"Variable TimeSpanFormatStr is read-only."); | |
17090 | return 1; | |
17091 | } | |
17092 | ||
17093 | ||
17094 | static PyObject *_wrap_TimeSpanFormatStr_get() { | |
17095 | PyObject *pyobj; | |
17096 | ||
17097 | { | |
17098 | #if wxUSE_UNICODE | |
17099 | pyobj = PyUnicode_FromWideChar((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len()); | |
17100 | #else | |
17101 | pyobj = PyString_FromStringAndSize((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len()); | |
17102 | #endif | |
17103 | } | |
17104 | return pyobj; | |
17105 | } | |
17106 | ||
17107 | ||
17108 | static PyObject *_wrap_DateTime_SetCountry(PyObject *, PyObject *args, PyObject *kwargs) { | |
17109 | PyObject *resultobj; | |
17110 | int arg1 ; | |
17111 | PyObject * obj0 = 0 ; | |
17112 | char *kwnames[] = { | |
17113 | (char *) "country", NULL | |
17114 | }; | |
17115 | ||
17116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetCountry",kwnames,&obj0)) goto fail; | |
17117 | arg1 = (int)SWIG_As_int(obj0); | |
17118 | if (PyErr_Occurred()) SWIG_fail; | |
17119 | { | |
17120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17121 | wxDateTime::SetCountry((wxDateTime::Country )arg1); | |
17122 | ||
17123 | wxPyEndAllowThreads(__tstate); | |
17124 | if (PyErr_Occurred()) SWIG_fail; | |
17125 | } | |
17126 | Py_INCREF(Py_None); resultobj = Py_None; | |
17127 | return resultobj; | |
17128 | fail: | |
17129 | return NULL; | |
17130 | } | |
17131 | ||
17132 | ||
17133 | static PyObject *_wrap_DateTime_GetCountry(PyObject *, PyObject *args, PyObject *kwargs) { | |
17134 | PyObject *resultobj; | |
17135 | int result; | |
17136 | char *kwnames[] = { | |
17137 | NULL | |
17138 | }; | |
17139 | ||
17140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetCountry",kwnames)) goto fail; | |
17141 | { | |
17142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17143 | result = (int)wxDateTime::GetCountry(); | |
17144 | ||
17145 | wxPyEndAllowThreads(__tstate); | |
17146 | if (PyErr_Occurred()) SWIG_fail; | |
17147 | } | |
17148 | resultobj = SWIG_From_int((int)result); | |
17149 | return resultobj; | |
17150 | fail: | |
17151 | return NULL; | |
17152 | } | |
17153 | ||
17154 | ||
17155 | static PyObject *_wrap_DateTime_IsWestEuropeanCountry(PyObject *, PyObject *args, PyObject *kwargs) { | |
17156 | PyObject *resultobj; | |
17157 | int arg1 = (int) wxDateTime::Country_Default ; | |
17158 | bool result; | |
17159 | PyObject * obj0 = 0 ; | |
17160 | char *kwnames[] = { | |
17161 | (char *) "country", NULL | |
17162 | }; | |
17163 | ||
17164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_IsWestEuropeanCountry",kwnames,&obj0)) goto fail; | |
17165 | if (obj0) { | |
17166 | arg1 = (int)SWIG_As_int(obj0); | |
17167 | if (PyErr_Occurred()) SWIG_fail; | |
17168 | } | |
17169 | { | |
17170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17171 | result = (bool)wxDateTime::IsWestEuropeanCountry((wxDateTime::Country )arg1); | |
17172 | ||
17173 | wxPyEndAllowThreads(__tstate); | |
17174 | if (PyErr_Occurred()) SWIG_fail; | |
17175 | } | |
17176 | { | |
17177 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17178 | } | |
17179 | return resultobj; | |
17180 | fail: | |
17181 | return NULL; | |
17182 | } | |
17183 | ||
17184 | ||
17185 | static PyObject *_wrap_DateTime_GetCurrentYear(PyObject *, PyObject *args, PyObject *kwargs) { | |
17186 | PyObject *resultobj; | |
17187 | int arg1 = (int) wxDateTime::Gregorian ; | |
17188 | int result; | |
17189 | PyObject * obj0 = 0 ; | |
17190 | char *kwnames[] = { | |
17191 | (char *) "cal", NULL | |
17192 | }; | |
17193 | ||
17194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentYear",kwnames,&obj0)) goto fail; | |
17195 | if (obj0) { | |
17196 | arg1 = (int)SWIG_As_int(obj0); | |
17197 | if (PyErr_Occurred()) SWIG_fail; | |
17198 | } | |
17199 | { | |
17200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17201 | result = (int)wxDateTime::GetCurrentYear((wxDateTime::Calendar )arg1); | |
17202 | ||
17203 | wxPyEndAllowThreads(__tstate); | |
17204 | if (PyErr_Occurred()) SWIG_fail; | |
17205 | } | |
17206 | resultobj = SWIG_From_int((int)result); | |
17207 | return resultobj; | |
17208 | fail: | |
17209 | return NULL; | |
17210 | } | |
17211 | ||
17212 | ||
17213 | static PyObject *_wrap_DateTime_ConvertYearToBC(PyObject *, PyObject *args, PyObject *kwargs) { | |
17214 | PyObject *resultobj; | |
17215 | int arg1 ; | |
17216 | int result; | |
17217 | PyObject * obj0 = 0 ; | |
17218 | char *kwnames[] = { | |
17219 | (char *) "year", NULL | |
17220 | }; | |
17221 | ||
17222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ConvertYearToBC",kwnames,&obj0)) goto fail; | |
17223 | arg1 = (int)SWIG_As_int(obj0); | |
17224 | if (PyErr_Occurred()) SWIG_fail; | |
17225 | { | |
17226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17227 | result = (int)wxDateTime::ConvertYearToBC(arg1); | |
17228 | ||
17229 | wxPyEndAllowThreads(__tstate); | |
17230 | if (PyErr_Occurred()) SWIG_fail; | |
17231 | } | |
17232 | resultobj = SWIG_From_int((int)result); | |
17233 | return resultobj; | |
17234 | fail: | |
17235 | return NULL; | |
17236 | } | |
17237 | ||
17238 | ||
17239 | static PyObject *_wrap_DateTime_GetCurrentMonth(PyObject *, PyObject *args, PyObject *kwargs) { | |
17240 | PyObject *resultobj; | |
17241 | int arg1 = (int) wxDateTime::Gregorian ; | |
17242 | int result; | |
17243 | PyObject * obj0 = 0 ; | |
17244 | char *kwnames[] = { | |
17245 | (char *) "cal", NULL | |
17246 | }; | |
17247 | ||
17248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentMonth",kwnames,&obj0)) goto fail; | |
17249 | if (obj0) { | |
17250 | arg1 = (int)SWIG_As_int(obj0); | |
17251 | if (PyErr_Occurred()) SWIG_fail; | |
17252 | } | |
17253 | { | |
17254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17255 | result = (int)wxDateTime::GetCurrentMonth((wxDateTime::Calendar )arg1); | |
17256 | ||
17257 | wxPyEndAllowThreads(__tstate); | |
17258 | if (PyErr_Occurred()) SWIG_fail; | |
17259 | } | |
17260 | resultobj = SWIG_From_int((int)result); | |
17261 | return resultobj; | |
17262 | fail: | |
17263 | return NULL; | |
17264 | } | |
17265 | ||
17266 | ||
17267 | static PyObject *_wrap_DateTime_IsLeapYear(PyObject *, PyObject *args, PyObject *kwargs) { | |
17268 | PyObject *resultobj; | |
17269 | int arg1 = (int) wxDateTime::Inv_Year ; | |
17270 | int arg2 = (int) wxDateTime::Gregorian ; | |
17271 | bool result; | |
17272 | PyObject * obj0 = 0 ; | |
17273 | PyObject * obj1 = 0 ; | |
17274 | char *kwnames[] = { | |
17275 | (char *) "year",(char *) "cal", NULL | |
17276 | }; | |
17277 | ||
17278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsLeapYear",kwnames,&obj0,&obj1)) goto fail; | |
17279 | if (obj0) { | |
17280 | arg1 = (int)SWIG_As_int(obj0); | |
17281 | if (PyErr_Occurred()) SWIG_fail; | |
17282 | } | |
17283 | if (obj1) { | |
17284 | arg2 = (int)SWIG_As_int(obj1); | |
17285 | if (PyErr_Occurred()) SWIG_fail; | |
17286 | } | |
17287 | { | |
17288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17289 | result = (bool)wxDateTime::IsLeapYear(arg1,(wxDateTime::Calendar )arg2); | |
17290 | ||
17291 | wxPyEndAllowThreads(__tstate); | |
17292 | if (PyErr_Occurred()) SWIG_fail; | |
17293 | } | |
17294 | { | |
17295 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17296 | } | |
17297 | return resultobj; | |
17298 | fail: | |
17299 | return NULL; | |
17300 | } | |
17301 | ||
17302 | ||
17303 | static PyObject *_wrap_DateTime_GetCentury(PyObject *, PyObject *args, PyObject *kwargs) { | |
17304 | PyObject *resultobj; | |
17305 | int arg1 = (int) wxDateTime::Inv_Year ; | |
17306 | int result; | |
17307 | PyObject * obj0 = 0 ; | |
17308 | char *kwnames[] = { | |
17309 | (char *) "year", NULL | |
17310 | }; | |
17311 | ||
17312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCentury",kwnames,&obj0)) goto fail; | |
17313 | if (obj0) { | |
17314 | arg1 = (int)SWIG_As_int(obj0); | |
17315 | if (PyErr_Occurred()) SWIG_fail; | |
17316 | } | |
17317 | { | |
17318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17319 | result = (int)wxDateTime::GetCentury(arg1); | |
17320 | ||
17321 | wxPyEndAllowThreads(__tstate); | |
17322 | if (PyErr_Occurred()) SWIG_fail; | |
17323 | } | |
17324 | resultobj = SWIG_From_int((int)result); | |
17325 | return resultobj; | |
17326 | fail: | |
17327 | return NULL; | |
17328 | } | |
17329 | ||
17330 | ||
17331 | static PyObject *_wrap_DateTime_GetNumberOfDaysinYear(PyObject *, PyObject *args, PyObject *kwargs) { | |
17332 | PyObject *resultobj; | |
17333 | int arg1 ; | |
17334 | int arg2 = (int) wxDateTime::Gregorian ; | |
17335 | int result; | |
17336 | PyObject * obj0 = 0 ; | |
17337 | PyObject * obj1 = 0 ; | |
17338 | char *kwnames[] = { | |
17339 | (char *) "year",(char *) "cal", NULL | |
17340 | }; | |
17341 | ||
17342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetNumberOfDaysinYear",kwnames,&obj0,&obj1)) goto fail; | |
17343 | arg1 = (int)SWIG_As_int(obj0); | |
17344 | if (PyErr_Occurred()) SWIG_fail; | |
17345 | if (obj1) { | |
17346 | arg2 = (int)SWIG_As_int(obj1); | |
17347 | if (PyErr_Occurred()) SWIG_fail; | |
17348 | } | |
17349 | { | |
17350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17351 | result = (int)wxDateTime::GetNumberOfDays(arg1,(wxDateTime::Calendar )arg2); | |
17352 | ||
17353 | wxPyEndAllowThreads(__tstate); | |
17354 | if (PyErr_Occurred()) SWIG_fail; | |
17355 | } | |
17356 | resultobj = SWIG_From_int((int)result); | |
17357 | return resultobj; | |
17358 | fail: | |
17359 | return NULL; | |
17360 | } | |
17361 | ||
17362 | ||
17363 | static PyObject *_wrap_DateTime_GetNumberOfDaysInMonth(PyObject *, PyObject *args, PyObject *kwargs) { | |
17364 | PyObject *resultobj; | |
17365 | int arg1 ; | |
17366 | int arg2 = (int) wxDateTime::Inv_Year ; | |
17367 | int arg3 = (int) wxDateTime::Gregorian ; | |
17368 | int result; | |
17369 | PyObject * obj0 = 0 ; | |
17370 | PyObject * obj1 = 0 ; | |
17371 | PyObject * obj2 = 0 ; | |
17372 | char *kwnames[] = { | |
17373 | (char *) "month",(char *) "year",(char *) "cal", NULL | |
17374 | }; | |
17375 | ||
17376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetNumberOfDaysInMonth",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17377 | arg1 = (int)SWIG_As_int(obj0); | |
17378 | if (PyErr_Occurred()) SWIG_fail; | |
17379 | if (obj1) { | |
17380 | arg2 = (int)SWIG_As_int(obj1); | |
17381 | if (PyErr_Occurred()) SWIG_fail; | |
17382 | } | |
17383 | if (obj2) { | |
17384 | arg3 = (int)SWIG_As_int(obj2); | |
17385 | if (PyErr_Occurred()) SWIG_fail; | |
17386 | } | |
17387 | { | |
17388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17389 | result = (int)wxDateTime::GetNumberOfDays((wxDateTime::Month )arg1,arg2,(wxDateTime::Calendar )arg3); | |
17390 | ||
17391 | wxPyEndAllowThreads(__tstate); | |
17392 | if (PyErr_Occurred()) SWIG_fail; | |
17393 | } | |
17394 | resultobj = SWIG_From_int((int)result); | |
17395 | return resultobj; | |
17396 | fail: | |
17397 | return NULL; | |
17398 | } | |
17399 | ||
17400 | ||
17401 | static PyObject *_wrap_DateTime_GetMonthName(PyObject *, PyObject *args, PyObject *kwargs) { | |
17402 | PyObject *resultobj; | |
17403 | int arg1 ; | |
17404 | int arg2 = (int) wxDateTime::Name_Full ; | |
17405 | wxString result; | |
17406 | PyObject * obj0 = 0 ; | |
17407 | PyObject * obj1 = 0 ; | |
17408 | char *kwnames[] = { | |
17409 | (char *) "month",(char *) "flags", NULL | |
17410 | }; | |
17411 | ||
17412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonthName",kwnames,&obj0,&obj1)) goto fail; | |
17413 | arg1 = (int)SWIG_As_int(obj0); | |
17414 | if (PyErr_Occurred()) SWIG_fail; | |
17415 | if (obj1) { | |
17416 | arg2 = (int)SWIG_As_int(obj1); | |
17417 | if (PyErr_Occurred()) SWIG_fail; | |
17418 | } | |
17419 | { | |
17420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17421 | result = wxDateTime::GetMonthName((wxDateTime::Month )arg1,(wxDateTime::NameFlags )arg2); | |
17422 | ||
17423 | wxPyEndAllowThreads(__tstate); | |
17424 | if (PyErr_Occurred()) SWIG_fail; | |
17425 | } | |
17426 | { | |
17427 | #if wxUSE_UNICODE | |
17428 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17429 | #else | |
17430 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17431 | #endif | |
17432 | } | |
17433 | return resultobj; | |
17434 | fail: | |
17435 | return NULL; | |
17436 | } | |
17437 | ||
17438 | ||
17439 | static PyObject *_wrap_DateTime_GetWeekDayName(PyObject *, PyObject *args, PyObject *kwargs) { | |
17440 | PyObject *resultobj; | |
17441 | int arg1 ; | |
17442 | int arg2 = (int) wxDateTime::Name_Full ; | |
17443 | wxString result; | |
17444 | PyObject * obj0 = 0 ; | |
17445 | PyObject * obj1 = 0 ; | |
17446 | char *kwnames[] = { | |
17447 | (char *) "weekday",(char *) "flags", NULL | |
17448 | }; | |
17449 | ||
17450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDayName",kwnames,&obj0,&obj1)) goto fail; | |
17451 | arg1 = (int)SWIG_As_int(obj0); | |
17452 | if (PyErr_Occurred()) SWIG_fail; | |
17453 | if (obj1) { | |
17454 | arg2 = (int)SWIG_As_int(obj1); | |
17455 | if (PyErr_Occurred()) SWIG_fail; | |
17456 | } | |
17457 | { | |
17458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17459 | result = wxDateTime::GetWeekDayName((wxDateTime::WeekDay )arg1,(wxDateTime::NameFlags )arg2); | |
17460 | ||
17461 | wxPyEndAllowThreads(__tstate); | |
17462 | if (PyErr_Occurred()) SWIG_fail; | |
17463 | } | |
17464 | { | |
17465 | #if wxUSE_UNICODE | |
17466 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17467 | #else | |
17468 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17469 | #endif | |
17470 | } | |
17471 | return resultobj; | |
17472 | fail: | |
17473 | return NULL; | |
17474 | } | |
17475 | ||
17476 | ||
17477 | static PyObject *_wrap_DateTime_GetAmPmStrings(PyObject *, PyObject *args, PyObject *kwargs) { | |
17478 | PyObject *resultobj; | |
17479 | wxString *arg1 = (wxString *) 0 ; | |
17480 | wxString *arg2 = (wxString *) 0 ; | |
17481 | bool temp1 = false ; | |
17482 | bool temp2 = false ; | |
17483 | PyObject * obj0 = 0 ; | |
17484 | PyObject * obj1 = 0 ; | |
17485 | char *kwnames[] = { | |
17486 | (char *) "OUTPUT",(char *) "OUTPUT", NULL | |
17487 | }; | |
17488 | ||
17489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetAmPmStrings",kwnames,&obj0,&obj1)) goto fail; | |
17490 | { | |
17491 | arg1 = wxString_in_helper(obj0); | |
17492 | if (arg1 == NULL) SWIG_fail; | |
17493 | temp1 = true; | |
17494 | } | |
17495 | { | |
17496 | arg2 = wxString_in_helper(obj1); | |
17497 | if (arg2 == NULL) SWIG_fail; | |
17498 | temp2 = true; | |
17499 | } | |
17500 | { | |
17501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17502 | wxDateTime::GetAmPmStrings(arg1,arg2); | |
17503 | ||
17504 | wxPyEndAllowThreads(__tstate); | |
17505 | if (PyErr_Occurred()) SWIG_fail; | |
17506 | } | |
17507 | Py_INCREF(Py_None); resultobj = Py_None; | |
17508 | { | |
17509 | if (temp1) | |
17510 | delete arg1; | |
17511 | } | |
17512 | { | |
17513 | if (temp2) | |
17514 | delete arg2; | |
17515 | } | |
17516 | return resultobj; | |
17517 | fail: | |
17518 | { | |
17519 | if (temp1) | |
17520 | delete arg1; | |
17521 | } | |
17522 | { | |
17523 | if (temp2) | |
17524 | delete arg2; | |
17525 | } | |
17526 | return NULL; | |
17527 | } | |
17528 | ||
17529 | ||
17530 | static PyObject *_wrap_DateTime_IsDSTApplicable(PyObject *, PyObject *args, PyObject *kwargs) { | |
17531 | PyObject *resultobj; | |
17532 | int arg1 = (int) wxDateTime::Inv_Year ; | |
17533 | int arg2 = (int) wxDateTime::Country_Default ; | |
17534 | bool result; | |
17535 | PyObject * obj0 = 0 ; | |
17536 | PyObject * obj1 = 0 ; | |
17537 | char *kwnames[] = { | |
17538 | (char *) "year",(char *) "country", NULL | |
17539 | }; | |
17540 | ||
17541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsDSTApplicable",kwnames,&obj0,&obj1)) goto fail; | |
17542 | if (obj0) { | |
17543 | arg1 = (int)SWIG_As_int(obj0); | |
17544 | if (PyErr_Occurred()) SWIG_fail; | |
17545 | } | |
17546 | if (obj1) { | |
17547 | arg2 = (int)SWIG_As_int(obj1); | |
17548 | if (PyErr_Occurred()) SWIG_fail; | |
17549 | } | |
17550 | { | |
17551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17552 | result = (bool)wxDateTime::IsDSTApplicable(arg1,(wxDateTime::Country )arg2); | |
17553 | ||
17554 | wxPyEndAllowThreads(__tstate); | |
17555 | if (PyErr_Occurred()) SWIG_fail; | |
17556 | } | |
17557 | { | |
17558 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17559 | } | |
17560 | return resultobj; | |
17561 | fail: | |
17562 | return NULL; | |
17563 | } | |
17564 | ||
17565 | ||
17566 | static PyObject *_wrap_DateTime_GetBeginDST(PyObject *, PyObject *args, PyObject *kwargs) { | |
17567 | PyObject *resultobj; | |
17568 | int arg1 = (int) wxDateTime::Inv_Year ; | |
17569 | int arg2 = (int) wxDateTime::Country_Default ; | |
17570 | wxDateTime result; | |
17571 | PyObject * obj0 = 0 ; | |
17572 | PyObject * obj1 = 0 ; | |
17573 | char *kwnames[] = { | |
17574 | (char *) "year",(char *) "country", NULL | |
17575 | }; | |
17576 | ||
17577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetBeginDST",kwnames,&obj0,&obj1)) goto fail; | |
17578 | if (obj0) { | |
17579 | arg1 = (int)SWIG_As_int(obj0); | |
17580 | if (PyErr_Occurred()) SWIG_fail; | |
17581 | } | |
17582 | if (obj1) { | |
17583 | arg2 = (int)SWIG_As_int(obj1); | |
17584 | if (PyErr_Occurred()) SWIG_fail; | |
17585 | } | |
17586 | { | |
17587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17588 | result = wxDateTime::GetBeginDST(arg1,(wxDateTime::Country )arg2); | |
17589 | ||
17590 | wxPyEndAllowThreads(__tstate); | |
17591 | if (PyErr_Occurred()) SWIG_fail; | |
17592 | } | |
17593 | { | |
17594 | wxDateTime * resultptr; | |
17595 | resultptr = new wxDateTime((wxDateTime &) result); | |
17596 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
17597 | } | |
17598 | return resultobj; | |
17599 | fail: | |
17600 | return NULL; | |
17601 | } | |
17602 | ||
17603 | ||
17604 | static PyObject *_wrap_DateTime_GetEndDST(PyObject *, PyObject *args, PyObject *kwargs) { | |
17605 | PyObject *resultobj; | |
17606 | int arg1 = (int) wxDateTime::Inv_Year ; | |
17607 | int arg2 = (int) wxDateTime::Country_Default ; | |
17608 | wxDateTime result; | |
17609 | PyObject * obj0 = 0 ; | |
17610 | PyObject * obj1 = 0 ; | |
17611 | char *kwnames[] = { | |
17612 | (char *) "year",(char *) "country", NULL | |
17613 | }; | |
17614 | ||
17615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetEndDST",kwnames,&obj0,&obj1)) goto fail; | |
17616 | if (obj0) { | |
17617 | arg1 = (int)SWIG_As_int(obj0); | |
17618 | if (PyErr_Occurred()) SWIG_fail; | |
17619 | } | |
17620 | if (obj1) { | |
17621 | arg2 = (int)SWIG_As_int(obj1); | |
17622 | if (PyErr_Occurred()) SWIG_fail; | |
17623 | } | |
17624 | { | |
17625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17626 | result = wxDateTime::GetEndDST(arg1,(wxDateTime::Country )arg2); | |
17627 | ||
17628 | wxPyEndAllowThreads(__tstate); | |
17629 | if (PyErr_Occurred()) SWIG_fail; | |
17630 | } | |
17631 | { | |
17632 | wxDateTime * resultptr; | |
17633 | resultptr = new wxDateTime((wxDateTime &) result); | |
17634 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
17635 | } | |
17636 | return resultobj; | |
17637 | fail: | |
17638 | return NULL; | |
17639 | } | |
17640 | ||
17641 | ||
17642 | static PyObject *_wrap_DateTime_Now(PyObject *, PyObject *args, PyObject *kwargs) { | |
17643 | PyObject *resultobj; | |
17644 | wxDateTime result; | |
17645 | char *kwnames[] = { | |
17646 | NULL | |
17647 | }; | |
17648 | ||
17649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Now",kwnames)) goto fail; | |
17650 | { | |
17651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17652 | result = wxDateTime::Now(); | |
17653 | ||
17654 | wxPyEndAllowThreads(__tstate); | |
17655 | if (PyErr_Occurred()) SWIG_fail; | |
17656 | } | |
17657 | { | |
17658 | wxDateTime * resultptr; | |
17659 | resultptr = new wxDateTime((wxDateTime &) result); | |
17660 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
17661 | } | |
17662 | return resultobj; | |
17663 | fail: | |
17664 | return NULL; | |
17665 | } | |
17666 | ||
17667 | ||
17668 | static PyObject *_wrap_DateTime_UNow(PyObject *, PyObject *args, PyObject *kwargs) { | |
17669 | PyObject *resultobj; | |
17670 | wxDateTime result; | |
17671 | char *kwnames[] = { | |
17672 | NULL | |
17673 | }; | |
17674 | ||
17675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_UNow",kwnames)) goto fail; | |
17676 | { | |
17677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17678 | result = wxDateTime::UNow(); | |
17679 | ||
17680 | wxPyEndAllowThreads(__tstate); | |
17681 | if (PyErr_Occurred()) SWIG_fail; | |
17682 | } | |
17683 | { | |
17684 | wxDateTime * resultptr; | |
17685 | resultptr = new wxDateTime((wxDateTime &) result); | |
17686 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
17687 | } | |
17688 | return resultobj; | |
17689 | fail: | |
17690 | return NULL; | |
17691 | } | |
17692 | ||
17693 | ||
17694 | static PyObject *_wrap_DateTime_Today(PyObject *, PyObject *args, PyObject *kwargs) { | |
17695 | PyObject *resultobj; | |
17696 | wxDateTime result; | |
17697 | char *kwnames[] = { | |
17698 | NULL | |
17699 | }; | |
17700 | ||
17701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Today",kwnames)) goto fail; | |
17702 | { | |
17703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17704 | result = wxDateTime::Today(); | |
17705 | ||
17706 | wxPyEndAllowThreads(__tstate); | |
17707 | if (PyErr_Occurred()) SWIG_fail; | |
17708 | } | |
17709 | { | |
17710 | wxDateTime * resultptr; | |
17711 | resultptr = new wxDateTime((wxDateTime &) result); | |
17712 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
17713 | } | |
17714 | return resultobj; | |
17715 | fail: | |
17716 | return NULL; | |
17717 | } | |
17718 | ||
17719 | ||
17720 | static PyObject *_wrap_new_DateTime(PyObject *, PyObject *args, PyObject *kwargs) { | |
17721 | PyObject *resultobj; | |
17722 | wxDateTime *result; | |
17723 | char *kwnames[] = { | |
17724 | NULL | |
17725 | }; | |
17726 | ||
17727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DateTime",kwnames)) goto fail; | |
17728 | { | |
17729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17730 | result = (wxDateTime *)new wxDateTime(); | |
17731 | ||
17732 | wxPyEndAllowThreads(__tstate); | |
17733 | if (PyErr_Occurred()) SWIG_fail; | |
17734 | } | |
17735 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
17736 | return resultobj; | |
17737 | fail: | |
17738 | return NULL; | |
17739 | } | |
17740 | ||
17741 | ||
17742 | static PyObject *_wrap_new_DateTimeFromTimeT(PyObject *, PyObject *args, PyObject *kwargs) { | |
17743 | PyObject *resultobj; | |
17744 | time_t arg1 ; | |
17745 | wxDateTime *result; | |
17746 | PyObject * obj0 = 0 ; | |
17747 | char *kwnames[] = { | |
17748 | (char *) "timet", NULL | |
17749 | }; | |
17750 | ||
17751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromTimeT",kwnames,&obj0)) goto fail; | |
17752 | arg1 = (time_t)SWIG_As_unsigned_SS_int(obj0); | |
17753 | if (PyErr_Occurred()) SWIG_fail; | |
17754 | { | |
17755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17756 | result = (wxDateTime *)new wxDateTime(arg1); | |
17757 | ||
17758 | wxPyEndAllowThreads(__tstate); | |
17759 | if (PyErr_Occurred()) SWIG_fail; | |
17760 | } | |
17761 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
17762 | return resultobj; | |
17763 | fail: | |
17764 | return NULL; | |
17765 | } | |
17766 | ||
17767 | ||
17768 | static PyObject *_wrap_new_DateTimeFromJDN(PyObject *, PyObject *args, PyObject *kwargs) { | |
17769 | PyObject *resultobj; | |
17770 | double arg1 ; | |
17771 | wxDateTime *result; | |
17772 | PyObject * obj0 = 0 ; | |
17773 | char *kwnames[] = { | |
17774 | (char *) "jdn", NULL | |
17775 | }; | |
17776 | ||
17777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromJDN",kwnames,&obj0)) goto fail; | |
17778 | arg1 = (double)SWIG_As_double(obj0); | |
17779 | if (PyErr_Occurred()) SWIG_fail; | |
17780 | { | |
17781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17782 | result = (wxDateTime *)new wxDateTime(arg1); | |
17783 | ||
17784 | wxPyEndAllowThreads(__tstate); | |
17785 | if (PyErr_Occurred()) SWIG_fail; | |
17786 | } | |
17787 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
17788 | return resultobj; | |
17789 | fail: | |
17790 | return NULL; | |
17791 | } | |
17792 | ||
17793 | ||
17794 | static PyObject *_wrap_new_DateTimeFromHMS(PyObject *, PyObject *args, PyObject *kwargs) { | |
17795 | PyObject *resultobj; | |
17796 | int arg1 ; | |
17797 | int arg2 = (int) 0 ; | |
17798 | int arg3 = (int) 0 ; | |
17799 | int arg4 = (int) 0 ; | |
17800 | wxDateTime *result; | |
17801 | PyObject * obj0 = 0 ; | |
17802 | PyObject * obj1 = 0 ; | |
17803 | PyObject * obj2 = 0 ; | |
17804 | PyObject * obj3 = 0 ; | |
17805 | char *kwnames[] = { | |
17806 | (char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
17807 | }; | |
17808 | ||
17809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DateTimeFromHMS",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
17810 | arg1 = (int)SWIG_As_int(obj0); | |
17811 | if (PyErr_Occurred()) SWIG_fail; | |
17812 | if (obj1) { | |
17813 | arg2 = (int)SWIG_As_int(obj1); | |
17814 | if (PyErr_Occurred()) SWIG_fail; | |
17815 | } | |
17816 | if (obj2) { | |
17817 | arg3 = (int)SWIG_As_int(obj2); | |
17818 | if (PyErr_Occurred()) SWIG_fail; | |
17819 | } | |
17820 | if (obj3) { | |
17821 | arg4 = (int)SWIG_As_int(obj3); | |
17822 | if (PyErr_Occurred()) SWIG_fail; | |
17823 | } | |
17824 | { | |
17825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17826 | result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4); | |
17827 | ||
17828 | wxPyEndAllowThreads(__tstate); | |
17829 | if (PyErr_Occurred()) SWIG_fail; | |
17830 | } | |
17831 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
17832 | return resultobj; | |
17833 | fail: | |
17834 | return NULL; | |
17835 | } | |
17836 | ||
17837 | ||
17838 | static PyObject *_wrap_new_DateTimeFromDMY(PyObject *, PyObject *args, PyObject *kwargs) { | |
17839 | PyObject *resultobj; | |
17840 | int arg1 ; | |
17841 | int arg2 = (int) wxDateTime::Inv_Month ; | |
17842 | int arg3 = (int) wxDateTime::Inv_Year ; | |
17843 | int arg4 = (int) 0 ; | |
17844 | int arg5 = (int) 0 ; | |
17845 | int arg6 = (int) 0 ; | |
17846 | int arg7 = (int) 0 ; | |
17847 | wxDateTime *result; | |
17848 | PyObject * obj0 = 0 ; | |
17849 | PyObject * obj1 = 0 ; | |
17850 | PyObject * obj2 = 0 ; | |
17851 | PyObject * obj3 = 0 ; | |
17852 | PyObject * obj4 = 0 ; | |
17853 | PyObject * obj5 = 0 ; | |
17854 | PyObject * obj6 = 0 ; | |
17855 | char *kwnames[] = { | |
17856 | (char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
17857 | }; | |
17858 | ||
17859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DateTimeFromDMY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
17860 | arg1 = (int)SWIG_As_int(obj0); | |
17861 | if (PyErr_Occurred()) SWIG_fail; | |
17862 | if (obj1) { | |
17863 | arg2 = (int)SWIG_As_int(obj1); | |
17864 | if (PyErr_Occurred()) SWIG_fail; | |
17865 | } | |
17866 | if (obj2) { | |
17867 | arg3 = (int)SWIG_As_int(obj2); | |
17868 | if (PyErr_Occurred()) SWIG_fail; | |
17869 | } | |
17870 | if (obj3) { | |
17871 | arg4 = (int)SWIG_As_int(obj3); | |
17872 | if (PyErr_Occurred()) SWIG_fail; | |
17873 | } | |
17874 | if (obj4) { | |
17875 | arg5 = (int)SWIG_As_int(obj4); | |
17876 | if (PyErr_Occurred()) SWIG_fail; | |
17877 | } | |
17878 | if (obj5) { | |
17879 | arg6 = (int)SWIG_As_int(obj5); | |
17880 | if (PyErr_Occurred()) SWIG_fail; | |
17881 | } | |
17882 | if (obj6) { | |
17883 | arg7 = (int)SWIG_As_int(obj6); | |
17884 | if (PyErr_Occurred()) SWIG_fail; | |
17885 | } | |
17886 | { | |
17887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17888 | result = (wxDateTime *)new wxDateTime(arg1,(wxDateTime::Month )arg2,arg3,arg4,arg5,arg6,arg7); | |
17889 | ||
17890 | wxPyEndAllowThreads(__tstate); | |
17891 | if (PyErr_Occurred()) SWIG_fail; | |
17892 | } | |
17893 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
17894 | return resultobj; | |
17895 | fail: | |
17896 | return NULL; | |
17897 | } | |
17898 | ||
17899 | ||
17900 | static PyObject *_wrap_delete_DateTime(PyObject *, PyObject *args, PyObject *kwargs) { | |
17901 | PyObject *resultobj; | |
17902 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17903 | PyObject * obj0 = 0 ; | |
17904 | char *kwnames[] = { | |
17905 | (char *) "self", NULL | |
17906 | }; | |
17907 | ||
17908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateTime",kwnames,&obj0)) goto fail; | |
17909 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17910 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17911 | { | |
17912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17913 | delete arg1; | |
17914 | ||
17915 | wxPyEndAllowThreads(__tstate); | |
17916 | if (PyErr_Occurred()) SWIG_fail; | |
17917 | } | |
17918 | Py_INCREF(Py_None); resultobj = Py_None; | |
17919 | return resultobj; | |
17920 | fail: | |
17921 | return NULL; | |
17922 | } | |
17923 | ||
17924 | ||
17925 | static PyObject *_wrap_DateTime_SetToCurrent(PyObject *, PyObject *args, PyObject *kwargs) { | |
17926 | PyObject *resultobj; | |
17927 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17928 | wxDateTime *result; | |
17929 | PyObject * obj0 = 0 ; | |
17930 | char *kwnames[] = { | |
17931 | (char *) "self", NULL | |
17932 | }; | |
17933 | ||
17934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetToCurrent",kwnames,&obj0)) goto fail; | |
17935 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17936 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17937 | { | |
17938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17939 | { | |
17940 | wxDateTime &_result_ref = (arg1)->SetToCurrent(); | |
17941 | result = (wxDateTime *) &_result_ref; | |
17942 | } | |
17943 | ||
17944 | wxPyEndAllowThreads(__tstate); | |
17945 | if (PyErr_Occurred()) SWIG_fail; | |
17946 | } | |
17947 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17948 | return resultobj; | |
17949 | fail: | |
17950 | return NULL; | |
17951 | } | |
17952 | ||
17953 | ||
17954 | static PyObject *_wrap_DateTime_SetTimeT(PyObject *, PyObject *args, PyObject *kwargs) { | |
17955 | PyObject *resultobj; | |
17956 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17957 | time_t arg2 ; | |
17958 | wxDateTime *result; | |
17959 | PyObject * obj0 = 0 ; | |
17960 | PyObject * obj1 = 0 ; | |
17961 | char *kwnames[] = { | |
17962 | (char *) "self",(char *) "timet", NULL | |
17963 | }; | |
17964 | ||
17965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetTimeT",kwnames,&obj0,&obj1)) goto fail; | |
17966 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17967 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17968 | arg2 = (time_t)SWIG_As_unsigned_SS_int(obj1); | |
17969 | if (PyErr_Occurred()) SWIG_fail; | |
17970 | { | |
17971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17972 | { | |
17973 | wxDateTime &_result_ref = (arg1)->Set(arg2); | |
17974 | result = (wxDateTime *) &_result_ref; | |
17975 | } | |
17976 | ||
17977 | wxPyEndAllowThreads(__tstate); | |
17978 | if (PyErr_Occurred()) SWIG_fail; | |
17979 | } | |
17980 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17981 | return resultobj; | |
17982 | fail: | |
17983 | return NULL; | |
17984 | } | |
17985 | ||
17986 | ||
17987 | static PyObject *_wrap_DateTime_SetJDN(PyObject *, PyObject *args, PyObject *kwargs) { | |
17988 | PyObject *resultobj; | |
17989 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17990 | double arg2 ; | |
17991 | wxDateTime *result; | |
17992 | PyObject * obj0 = 0 ; | |
17993 | PyObject * obj1 = 0 ; | |
17994 | char *kwnames[] = { | |
17995 | (char *) "self",(char *) "jdn", NULL | |
17996 | }; | |
17997 | ||
17998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetJDN",kwnames,&obj0,&obj1)) goto fail; | |
17999 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18000 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18001 | arg2 = (double)SWIG_As_double(obj1); | |
18002 | if (PyErr_Occurred()) SWIG_fail; | |
18003 | { | |
18004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18005 | { | |
18006 | wxDateTime &_result_ref = (arg1)->Set(arg2); | |
18007 | result = (wxDateTime *) &_result_ref; | |
18008 | } | |
18009 | ||
18010 | wxPyEndAllowThreads(__tstate); | |
18011 | if (PyErr_Occurred()) SWIG_fail; | |
18012 | } | |
18013 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18014 | return resultobj; | |
18015 | fail: | |
18016 | return NULL; | |
18017 | } | |
18018 | ||
18019 | ||
18020 | static PyObject *_wrap_DateTime_SetHMS(PyObject *, PyObject *args, PyObject *kwargs) { | |
18021 | PyObject *resultobj; | |
18022 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18023 | int arg2 ; | |
18024 | int arg3 = (int) 0 ; | |
18025 | int arg4 = (int) 0 ; | |
18026 | int arg5 = (int) 0 ; | |
18027 | wxDateTime *result; | |
18028 | PyObject * obj0 = 0 ; | |
18029 | PyObject * obj1 = 0 ; | |
18030 | PyObject * obj2 = 0 ; | |
18031 | PyObject * obj3 = 0 ; | |
18032 | PyObject * obj4 = 0 ; | |
18033 | char *kwnames[] = { | |
18034 | (char *) "self",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
18035 | }; | |
18036 | ||
18037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetHMS",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
18038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18040 | arg2 = (int)SWIG_As_int(obj1); | |
18041 | if (PyErr_Occurred()) SWIG_fail; | |
18042 | if (obj2) { | |
18043 | arg3 = (int)SWIG_As_int(obj2); | |
18044 | if (PyErr_Occurred()) SWIG_fail; | |
18045 | } | |
18046 | if (obj3) { | |
18047 | arg4 = (int)SWIG_As_int(obj3); | |
18048 | if (PyErr_Occurred()) SWIG_fail; | |
18049 | } | |
18050 | if (obj4) { | |
18051 | arg5 = (int)SWIG_As_int(obj4); | |
18052 | if (PyErr_Occurred()) SWIG_fail; | |
18053 | } | |
18054 | { | |
18055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18056 | { | |
18057 | wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5); | |
18058 | result = (wxDateTime *) &_result_ref; | |
18059 | } | |
18060 | ||
18061 | wxPyEndAllowThreads(__tstate); | |
18062 | if (PyErr_Occurred()) SWIG_fail; | |
18063 | } | |
18064 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18065 | return resultobj; | |
18066 | fail: | |
18067 | return NULL; | |
18068 | } | |
18069 | ||
18070 | ||
18071 | static PyObject *_wrap_DateTime_Set(PyObject *, PyObject *args, PyObject *kwargs) { | |
18072 | PyObject *resultobj; | |
18073 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18074 | int arg2 ; | |
18075 | int arg3 = (int) wxDateTime::Inv_Month ; | |
18076 | int arg4 = (int) wxDateTime::Inv_Year ; | |
18077 | int arg5 = (int) 0 ; | |
18078 | int arg6 = (int) 0 ; | |
18079 | int arg7 = (int) 0 ; | |
18080 | int arg8 = (int) 0 ; | |
18081 | wxDateTime *result; | |
18082 | PyObject * obj0 = 0 ; | |
18083 | PyObject * obj1 = 0 ; | |
18084 | PyObject * obj2 = 0 ; | |
18085 | PyObject * obj3 = 0 ; | |
18086 | PyObject * obj4 = 0 ; | |
18087 | PyObject * obj5 = 0 ; | |
18088 | PyObject * obj6 = 0 ; | |
18089 | PyObject * obj7 = 0 ; | |
18090 | char *kwnames[] = { | |
18091 | (char *) "self",(char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
18092 | }; | |
18093 | ||
18094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:DateTime_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
18095 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18096 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18097 | arg2 = (int)SWIG_As_int(obj1); | |
18098 | if (PyErr_Occurred()) SWIG_fail; | |
18099 | if (obj2) { | |
18100 | arg3 = (int)SWIG_As_int(obj2); | |
18101 | if (PyErr_Occurred()) SWIG_fail; | |
18102 | } | |
18103 | if (obj3) { | |
18104 | arg4 = (int)SWIG_As_int(obj3); | |
18105 | if (PyErr_Occurred()) SWIG_fail; | |
18106 | } | |
18107 | if (obj4) { | |
18108 | arg5 = (int)SWIG_As_int(obj4); | |
18109 | if (PyErr_Occurred()) SWIG_fail; | |
18110 | } | |
18111 | if (obj5) { | |
18112 | arg6 = (int)SWIG_As_int(obj5); | |
18113 | if (PyErr_Occurred()) SWIG_fail; | |
18114 | } | |
18115 | if (obj6) { | |
18116 | arg7 = (int)SWIG_As_int(obj6); | |
18117 | if (PyErr_Occurred()) SWIG_fail; | |
18118 | } | |
18119 | if (obj7) { | |
18120 | arg8 = (int)SWIG_As_int(obj7); | |
18121 | if (PyErr_Occurred()) SWIG_fail; | |
18122 | } | |
18123 | { | |
18124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18125 | { | |
18126 | wxDateTime &_result_ref = (arg1)->Set(arg2,(wxDateTime::Month )arg3,arg4,arg5,arg6,arg7,arg8); | |
18127 | result = (wxDateTime *) &_result_ref; | |
18128 | } | |
18129 | ||
18130 | wxPyEndAllowThreads(__tstate); | |
18131 | if (PyErr_Occurred()) SWIG_fail; | |
18132 | } | |
18133 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18134 | return resultobj; | |
18135 | fail: | |
18136 | return NULL; | |
18137 | } | |
18138 | ||
18139 | ||
18140 | static PyObject *_wrap_DateTime_ResetTime(PyObject *, PyObject *args, PyObject *kwargs) { | |
18141 | PyObject *resultobj; | |
18142 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18143 | wxDateTime *result; | |
18144 | PyObject * obj0 = 0 ; | |
18145 | char *kwnames[] = { | |
18146 | (char *) "self", NULL | |
18147 | }; | |
18148 | ||
18149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ResetTime",kwnames,&obj0)) goto fail; | |
18150 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18151 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18152 | { | |
18153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18154 | { | |
18155 | wxDateTime &_result_ref = (arg1)->ResetTime(); | |
18156 | result = (wxDateTime *) &_result_ref; | |
18157 | } | |
18158 | ||
18159 | wxPyEndAllowThreads(__tstate); | |
18160 | if (PyErr_Occurred()) SWIG_fail; | |
18161 | } | |
18162 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18163 | return resultobj; | |
18164 | fail: | |
18165 | return NULL; | |
18166 | } | |
18167 | ||
18168 | ||
18169 | static PyObject *_wrap_DateTime_SetYear(PyObject *, PyObject *args, PyObject *kwargs) { | |
18170 | PyObject *resultobj; | |
18171 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18172 | int arg2 ; | |
18173 | wxDateTime *result; | |
18174 | PyObject * obj0 = 0 ; | |
18175 | PyObject * obj1 = 0 ; | |
18176 | char *kwnames[] = { | |
18177 | (char *) "self",(char *) "year", NULL | |
18178 | }; | |
18179 | ||
18180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetYear",kwnames,&obj0,&obj1)) goto fail; | |
18181 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18183 | arg2 = (int)SWIG_As_int(obj1); | |
18184 | if (PyErr_Occurred()) SWIG_fail; | |
18185 | { | |
18186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18187 | { | |
18188 | wxDateTime &_result_ref = (arg1)->SetYear(arg2); | |
18189 | result = (wxDateTime *) &_result_ref; | |
18190 | } | |
18191 | ||
18192 | wxPyEndAllowThreads(__tstate); | |
18193 | if (PyErr_Occurred()) SWIG_fail; | |
18194 | } | |
18195 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18196 | return resultobj; | |
18197 | fail: | |
18198 | return NULL; | |
18199 | } | |
18200 | ||
18201 | ||
18202 | static PyObject *_wrap_DateTime_SetMonth(PyObject *, PyObject *args, PyObject *kwargs) { | |
18203 | PyObject *resultobj; | |
18204 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18205 | int arg2 ; | |
18206 | wxDateTime *result; | |
18207 | PyObject * obj0 = 0 ; | |
18208 | PyObject * obj1 = 0 ; | |
18209 | char *kwnames[] = { | |
18210 | (char *) "self",(char *) "month", NULL | |
18211 | }; | |
18212 | ||
18213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMonth",kwnames,&obj0,&obj1)) goto fail; | |
18214 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18215 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18216 | arg2 = (int)SWIG_As_int(obj1); | |
18217 | if (PyErr_Occurred()) SWIG_fail; | |
18218 | { | |
18219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18220 | { | |
18221 | wxDateTime &_result_ref = (arg1)->SetMonth((wxDateTime::Month )arg2); | |
18222 | result = (wxDateTime *) &_result_ref; | |
18223 | } | |
18224 | ||
18225 | wxPyEndAllowThreads(__tstate); | |
18226 | if (PyErr_Occurred()) SWIG_fail; | |
18227 | } | |
18228 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18229 | return resultobj; | |
18230 | fail: | |
18231 | return NULL; | |
18232 | } | |
18233 | ||
18234 | ||
18235 | static PyObject *_wrap_DateTime_SetDay(PyObject *, PyObject *args, PyObject *kwargs) { | |
18236 | PyObject *resultobj; | |
18237 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18238 | int arg2 ; | |
18239 | wxDateTime *result; | |
18240 | PyObject * obj0 = 0 ; | |
18241 | PyObject * obj1 = 0 ; | |
18242 | char *kwnames[] = { | |
18243 | (char *) "self",(char *) "day", NULL | |
18244 | }; | |
18245 | ||
18246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetDay",kwnames,&obj0,&obj1)) goto fail; | |
18247 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18248 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18249 | arg2 = (int)SWIG_As_int(obj1); | |
18250 | if (PyErr_Occurred()) SWIG_fail; | |
18251 | { | |
18252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18253 | { | |
18254 | wxDateTime &_result_ref = (arg1)->SetDay(arg2); | |
18255 | result = (wxDateTime *) &_result_ref; | |
18256 | } | |
18257 | ||
18258 | wxPyEndAllowThreads(__tstate); | |
18259 | if (PyErr_Occurred()) SWIG_fail; | |
18260 | } | |
18261 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18262 | return resultobj; | |
18263 | fail: | |
18264 | return NULL; | |
18265 | } | |
18266 | ||
18267 | ||
18268 | static PyObject *_wrap_DateTime_SetHour(PyObject *, PyObject *args, PyObject *kwargs) { | |
18269 | PyObject *resultobj; | |
18270 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18271 | int arg2 ; | |
18272 | wxDateTime *result; | |
18273 | PyObject * obj0 = 0 ; | |
18274 | PyObject * obj1 = 0 ; | |
18275 | char *kwnames[] = { | |
18276 | (char *) "self",(char *) "hour", NULL | |
18277 | }; | |
18278 | ||
18279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetHour",kwnames,&obj0,&obj1)) goto fail; | |
18280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18282 | arg2 = (int)SWIG_As_int(obj1); | |
18283 | if (PyErr_Occurred()) SWIG_fail; | |
18284 | { | |
18285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18286 | { | |
18287 | wxDateTime &_result_ref = (arg1)->SetHour(arg2); | |
18288 | result = (wxDateTime *) &_result_ref; | |
18289 | } | |
18290 | ||
18291 | wxPyEndAllowThreads(__tstate); | |
18292 | if (PyErr_Occurred()) SWIG_fail; | |
18293 | } | |
18294 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18295 | return resultobj; | |
18296 | fail: | |
18297 | return NULL; | |
18298 | } | |
18299 | ||
18300 | ||
18301 | static PyObject *_wrap_DateTime_SetMinute(PyObject *, PyObject *args, PyObject *kwargs) { | |
18302 | PyObject *resultobj; | |
18303 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18304 | int arg2 ; | |
18305 | wxDateTime *result; | |
18306 | PyObject * obj0 = 0 ; | |
18307 | PyObject * obj1 = 0 ; | |
18308 | char *kwnames[] = { | |
18309 | (char *) "self",(char *) "minute", NULL | |
18310 | }; | |
18311 | ||
18312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMinute",kwnames,&obj0,&obj1)) goto fail; | |
18313 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18314 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18315 | arg2 = (int)SWIG_As_int(obj1); | |
18316 | if (PyErr_Occurred()) SWIG_fail; | |
18317 | { | |
18318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18319 | { | |
18320 | wxDateTime &_result_ref = (arg1)->SetMinute(arg2); | |
18321 | result = (wxDateTime *) &_result_ref; | |
18322 | } | |
18323 | ||
18324 | wxPyEndAllowThreads(__tstate); | |
18325 | if (PyErr_Occurred()) SWIG_fail; | |
18326 | } | |
18327 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18328 | return resultobj; | |
18329 | fail: | |
18330 | return NULL; | |
18331 | } | |
18332 | ||
18333 | ||
18334 | static PyObject *_wrap_DateTime_SetSecond(PyObject *, PyObject *args, PyObject *kwargs) { | |
18335 | PyObject *resultobj; | |
18336 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18337 | int arg2 ; | |
18338 | wxDateTime *result; | |
18339 | PyObject * obj0 = 0 ; | |
18340 | PyObject * obj1 = 0 ; | |
18341 | char *kwnames[] = { | |
18342 | (char *) "self",(char *) "second", NULL | |
18343 | }; | |
18344 | ||
18345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetSecond",kwnames,&obj0,&obj1)) goto fail; | |
18346 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18347 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18348 | arg2 = (int)SWIG_As_int(obj1); | |
18349 | if (PyErr_Occurred()) SWIG_fail; | |
18350 | { | |
18351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18352 | { | |
18353 | wxDateTime &_result_ref = (arg1)->SetSecond(arg2); | |
18354 | result = (wxDateTime *) &_result_ref; | |
18355 | } | |
18356 | ||
18357 | wxPyEndAllowThreads(__tstate); | |
18358 | if (PyErr_Occurred()) SWIG_fail; | |
18359 | } | |
18360 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18361 | return resultobj; | |
18362 | fail: | |
18363 | return NULL; | |
18364 | } | |
18365 | ||
18366 | ||
18367 | static PyObject *_wrap_DateTime_SetMillisecond(PyObject *, PyObject *args, PyObject *kwargs) { | |
18368 | PyObject *resultobj; | |
18369 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18370 | int arg2 ; | |
18371 | wxDateTime *result; | |
18372 | PyObject * obj0 = 0 ; | |
18373 | PyObject * obj1 = 0 ; | |
18374 | char *kwnames[] = { | |
18375 | (char *) "self",(char *) "millisecond", NULL | |
18376 | }; | |
18377 | ||
18378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMillisecond",kwnames,&obj0,&obj1)) goto fail; | |
18379 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18380 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18381 | arg2 = (int)SWIG_As_int(obj1); | |
18382 | if (PyErr_Occurred()) SWIG_fail; | |
18383 | { | |
18384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18385 | { | |
18386 | wxDateTime &_result_ref = (arg1)->SetMillisecond(arg2); | |
18387 | result = (wxDateTime *) &_result_ref; | |
18388 | } | |
18389 | ||
18390 | wxPyEndAllowThreads(__tstate); | |
18391 | if (PyErr_Occurred()) SWIG_fail; | |
18392 | } | |
18393 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18394 | return resultobj; | |
18395 | fail: | |
18396 | return NULL; | |
18397 | } | |
18398 | ||
18399 | ||
18400 | static PyObject *_wrap_DateTime_SetToWeekDayInSameWeek(PyObject *, PyObject *args, PyObject *kwargs) { | |
18401 | PyObject *resultobj; | |
18402 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18403 | int arg2 ; | |
18404 | int arg3 = (int) wxDateTime::Monday_First ; | |
18405 | wxDateTime *result; | |
18406 | PyObject * obj0 = 0 ; | |
18407 | PyObject * obj1 = 0 ; | |
18408 | PyObject * obj2 = 0 ; | |
18409 | char *kwnames[] = { | |
18410 | (char *) "self",(char *) "weekday",(char *) "flags", NULL | |
18411 | }; | |
18412 | ||
18413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18414 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18415 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18416 | arg2 = (int)SWIG_As_int(obj1); | |
18417 | if (PyErr_Occurred()) SWIG_fail; | |
18418 | if (obj2) { | |
18419 | arg3 = (int)SWIG_As_int(obj2); | |
18420 | if (PyErr_Occurred()) SWIG_fail; | |
18421 | } | |
18422 | { | |
18423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18424 | { | |
18425 | wxDateTime &_result_ref = (arg1)->SetToWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3); | |
18426 | result = (wxDateTime *) &_result_ref; | |
18427 | } | |
18428 | ||
18429 | wxPyEndAllowThreads(__tstate); | |
18430 | if (PyErr_Occurred()) SWIG_fail; | |
18431 | } | |
18432 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18433 | return resultobj; | |
18434 | fail: | |
18435 | return NULL; | |
18436 | } | |
18437 | ||
18438 | ||
18439 | static PyObject *_wrap_DateTime_GetWeekDayInSameWeek(PyObject *, PyObject *args, PyObject *kwargs) { | |
18440 | PyObject *resultobj; | |
18441 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18442 | int arg2 ; | |
18443 | int arg3 = (int) wxDateTime::Monday_First ; | |
18444 | wxDateTime result; | |
18445 | PyObject * obj0 = 0 ; | |
18446 | PyObject * obj1 = 0 ; | |
18447 | PyObject * obj2 = 0 ; | |
18448 | char *kwnames[] = { | |
18449 | (char *) "self",(char *) "weekday",(char *) "flags", NULL | |
18450 | }; | |
18451 | ||
18452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_GetWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18453 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18454 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18455 | arg2 = (int)SWIG_As_int(obj1); | |
18456 | if (PyErr_Occurred()) SWIG_fail; | |
18457 | if (obj2) { | |
18458 | arg3 = (int)SWIG_As_int(obj2); | |
18459 | if (PyErr_Occurred()) SWIG_fail; | |
18460 | } | |
18461 | { | |
18462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18463 | result = (arg1)->GetWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3); | |
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_SetToNextWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { | |
18480 | PyObject *resultobj; | |
18481 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18482 | int arg2 ; | |
18483 | wxDateTime *result; | |
18484 | PyObject * obj0 = 0 ; | |
18485 | PyObject * obj1 = 0 ; | |
18486 | char *kwnames[] = { | |
18487 | (char *) "self",(char *) "weekday", NULL | |
18488 | }; | |
18489 | ||
18490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToNextWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
18491 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18492 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18493 | arg2 = (int)SWIG_As_int(obj1); | |
18494 | if (PyErr_Occurred()) SWIG_fail; | |
18495 | { | |
18496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18497 | { | |
18498 | wxDateTime &_result_ref = (arg1)->SetToNextWeekDay((wxDateTime::WeekDay )arg2); | |
18499 | result = (wxDateTime *) &_result_ref; | |
18500 | } | |
18501 | ||
18502 | wxPyEndAllowThreads(__tstate); | |
18503 | if (PyErr_Occurred()) SWIG_fail; | |
18504 | } | |
18505 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18506 | return resultobj; | |
18507 | fail: | |
18508 | return NULL; | |
18509 | } | |
18510 | ||
18511 | ||
18512 | static PyObject *_wrap_DateTime_GetNextWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { | |
18513 | PyObject *resultobj; | |
18514 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18515 | int arg2 ; | |
18516 | wxDateTime result; | |
18517 | PyObject * obj0 = 0 ; | |
18518 | PyObject * obj1 = 0 ; | |
18519 | char *kwnames[] = { | |
18520 | (char *) "self",(char *) "weekday", NULL | |
18521 | }; | |
18522 | ||
18523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetNextWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
18524 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18525 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18526 | arg2 = (int)SWIG_As_int(obj1); | |
18527 | if (PyErr_Occurred()) SWIG_fail; | |
18528 | { | |
18529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18530 | result = (arg1)->GetNextWeekDay((wxDateTime::WeekDay )arg2); | |
18531 | ||
18532 | wxPyEndAllowThreads(__tstate); | |
18533 | if (PyErr_Occurred()) SWIG_fail; | |
18534 | } | |
18535 | { | |
18536 | wxDateTime * resultptr; | |
18537 | resultptr = new wxDateTime((wxDateTime &) result); | |
18538 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18539 | } | |
18540 | return resultobj; | |
18541 | fail: | |
18542 | return NULL; | |
18543 | } | |
18544 | ||
18545 | ||
18546 | static PyObject *_wrap_DateTime_SetToPrevWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { | |
18547 | PyObject *resultobj; | |
18548 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18549 | int arg2 ; | |
18550 | wxDateTime *result; | |
18551 | PyObject * obj0 = 0 ; | |
18552 | PyObject * obj1 = 0 ; | |
18553 | char *kwnames[] = { | |
18554 | (char *) "self",(char *) "weekday", NULL | |
18555 | }; | |
18556 | ||
18557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToPrevWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
18558 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18559 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18560 | arg2 = (int)SWIG_As_int(obj1); | |
18561 | if (PyErr_Occurred()) SWIG_fail; | |
18562 | { | |
18563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18564 | { | |
18565 | wxDateTime &_result_ref = (arg1)->SetToPrevWeekDay((wxDateTime::WeekDay )arg2); | |
18566 | result = (wxDateTime *) &_result_ref; | |
18567 | } | |
18568 | ||
18569 | wxPyEndAllowThreads(__tstate); | |
18570 | if (PyErr_Occurred()) SWIG_fail; | |
18571 | } | |
18572 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18573 | return resultobj; | |
18574 | fail: | |
18575 | return NULL; | |
18576 | } | |
18577 | ||
18578 | ||
18579 | static PyObject *_wrap_DateTime_GetPrevWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { | |
18580 | PyObject *resultobj; | |
18581 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18582 | int arg2 ; | |
18583 | wxDateTime result; | |
18584 | PyObject * obj0 = 0 ; | |
18585 | PyObject * obj1 = 0 ; | |
18586 | char *kwnames[] = { | |
18587 | (char *) "self",(char *) "weekday", NULL | |
18588 | }; | |
18589 | ||
18590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetPrevWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
18591 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18593 | arg2 = (int)SWIG_As_int(obj1); | |
18594 | if (PyErr_Occurred()) SWIG_fail; | |
18595 | { | |
18596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18597 | result = (arg1)->GetPrevWeekDay((wxDateTime::WeekDay )arg2); | |
18598 | ||
18599 | wxPyEndAllowThreads(__tstate); | |
18600 | if (PyErr_Occurred()) SWIG_fail; | |
18601 | } | |
18602 | { | |
18603 | wxDateTime * resultptr; | |
18604 | resultptr = new wxDateTime((wxDateTime &) result); | |
18605 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18606 | } | |
18607 | return resultobj; | |
18608 | fail: | |
18609 | return NULL; | |
18610 | } | |
18611 | ||
18612 | ||
18613 | static PyObject *_wrap_DateTime_SetToWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { | |
18614 | PyObject *resultobj; | |
18615 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18616 | int arg2 ; | |
18617 | int arg3 = (int) 1 ; | |
18618 | int arg4 = (int) wxDateTime::Inv_Month ; | |
18619 | int arg5 = (int) wxDateTime::Inv_Year ; | |
18620 | bool result; | |
18621 | PyObject * obj0 = 0 ; | |
18622 | PyObject * obj1 = 0 ; | |
18623 | PyObject * obj2 = 0 ; | |
18624 | PyObject * obj3 = 0 ; | |
18625 | PyObject * obj4 = 0 ; | |
18626 | char *kwnames[] = { | |
18627 | (char *) "self",(char *) "weekday",(char *) "n",(char *) "month",(char *) "year", NULL | |
18628 | }; | |
18629 | ||
18630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetToWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
18631 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18632 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18633 | arg2 = (int)SWIG_As_int(obj1); | |
18634 | if (PyErr_Occurred()) SWIG_fail; | |
18635 | if (obj2) { | |
18636 | arg3 = (int)SWIG_As_int(obj2); | |
18637 | if (PyErr_Occurred()) SWIG_fail; | |
18638 | } | |
18639 | if (obj3) { | |
18640 | arg4 = (int)SWIG_As_int(obj3); | |
18641 | if (PyErr_Occurred()) SWIG_fail; | |
18642 | } | |
18643 | if (obj4) { | |
18644 | arg5 = (int)SWIG_As_int(obj4); | |
18645 | if (PyErr_Occurred()) SWIG_fail; | |
18646 | } | |
18647 | { | |
18648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18649 | result = (bool)(arg1)->SetToWeekDay((wxDateTime::WeekDay )arg2,arg3,(wxDateTime::Month )arg4,arg5); | |
18650 | ||
18651 | wxPyEndAllowThreads(__tstate); | |
18652 | if (PyErr_Occurred()) SWIG_fail; | |
18653 | } | |
18654 | { | |
18655 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18656 | } | |
18657 | return resultobj; | |
18658 | fail: | |
18659 | return NULL; | |
18660 | } | |
18661 | ||
18662 | ||
18663 | static PyObject *_wrap_DateTime_SetToLastWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { | |
18664 | PyObject *resultobj; | |
18665 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18666 | int arg2 ; | |
18667 | int arg3 = (int) wxDateTime::Inv_Month ; | |
18668 | int arg4 = (int) wxDateTime::Inv_Year ; | |
18669 | bool result; | |
18670 | PyObject * obj0 = 0 ; | |
18671 | PyObject * obj1 = 0 ; | |
18672 | PyObject * obj2 = 0 ; | |
18673 | PyObject * obj3 = 0 ; | |
18674 | char *kwnames[] = { | |
18675 | (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL | |
18676 | }; | |
18677 | ||
18678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
18679 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18680 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18681 | arg2 = (int)SWIG_As_int(obj1); | |
18682 | if (PyErr_Occurred()) SWIG_fail; | |
18683 | if (obj2) { | |
18684 | arg3 = (int)SWIG_As_int(obj2); | |
18685 | if (PyErr_Occurred()) SWIG_fail; | |
18686 | } | |
18687 | if (obj3) { | |
18688 | arg4 = (int)SWIG_As_int(obj3); | |
18689 | if (PyErr_Occurred()) SWIG_fail; | |
18690 | } | |
18691 | { | |
18692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18693 | result = (bool)(arg1)->SetToLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4); | |
18694 | ||
18695 | wxPyEndAllowThreads(__tstate); | |
18696 | if (PyErr_Occurred()) SWIG_fail; | |
18697 | } | |
18698 | { | |
18699 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18700 | } | |
18701 | return resultobj; | |
18702 | fail: | |
18703 | return NULL; | |
18704 | } | |
18705 | ||
18706 | ||
18707 | static PyObject *_wrap_DateTime_GetLastWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { | |
18708 | PyObject *resultobj; | |
18709 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18710 | int arg2 ; | |
18711 | int arg3 = (int) wxDateTime::Inv_Month ; | |
18712 | int arg4 = (int) wxDateTime::Inv_Year ; | |
18713 | wxDateTime result; | |
18714 | PyObject * obj0 = 0 ; | |
18715 | PyObject * obj1 = 0 ; | |
18716 | PyObject * obj2 = 0 ; | |
18717 | PyObject * obj3 = 0 ; | |
18718 | char *kwnames[] = { | |
18719 | (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL | |
18720 | }; | |
18721 | ||
18722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
18723 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18724 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18725 | arg2 = (int)SWIG_As_int(obj1); | |
18726 | if (PyErr_Occurred()) SWIG_fail; | |
18727 | if (obj2) { | |
18728 | arg3 = (int)SWIG_As_int(obj2); | |
18729 | if (PyErr_Occurred()) SWIG_fail; | |
18730 | } | |
18731 | if (obj3) { | |
18732 | arg4 = (int)SWIG_As_int(obj3); | |
18733 | if (PyErr_Occurred()) SWIG_fail; | |
18734 | } | |
18735 | { | |
18736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18737 | result = (arg1)->GetLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4); | |
18738 | ||
18739 | wxPyEndAllowThreads(__tstate); | |
18740 | if (PyErr_Occurred()) SWIG_fail; | |
18741 | } | |
18742 | { | |
18743 | wxDateTime * resultptr; | |
18744 | resultptr = new wxDateTime((wxDateTime &) result); | |
18745 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18746 | } | |
18747 | return resultobj; | |
18748 | fail: | |
18749 | return NULL; | |
18750 | } | |
18751 | ||
18752 | ||
18753 | static PyObject *_wrap_DateTime_SetToTheWeek(PyObject *, PyObject *args, PyObject *kwargs) { | |
18754 | PyObject *resultobj; | |
18755 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18756 | int arg2 ; | |
18757 | int arg3 = (int) wxDateTime::Mon ; | |
18758 | int arg4 = (int) wxDateTime::Monday_First ; | |
18759 | bool result; | |
18760 | PyObject * obj0 = 0 ; | |
18761 | PyObject * obj1 = 0 ; | |
18762 | PyObject * obj2 = 0 ; | |
18763 | PyObject * obj3 = 0 ; | |
18764 | char *kwnames[] = { | |
18765 | (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL | |
18766 | }; | |
18767 | ||
18768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToTheWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
18769 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18770 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18771 | arg2 = (int)SWIG_As_int(obj1); | |
18772 | if (PyErr_Occurred()) SWIG_fail; | |
18773 | if (obj2) { | |
18774 | arg3 = (int)SWIG_As_int(obj2); | |
18775 | if (PyErr_Occurred()) SWIG_fail; | |
18776 | } | |
18777 | if (obj3) { | |
18778 | arg4 = (int)SWIG_As_int(obj3); | |
18779 | if (PyErr_Occurred()) SWIG_fail; | |
18780 | } | |
18781 | { | |
18782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18783 | result = (bool)(arg1)->SetToTheWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4); | |
18784 | ||
18785 | wxPyEndAllowThreads(__tstate); | |
18786 | if (PyErr_Occurred()) SWIG_fail; | |
18787 | } | |
18788 | { | |
18789 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18790 | } | |
18791 | return resultobj; | |
18792 | fail: | |
18793 | return NULL; | |
18794 | } | |
18795 | ||
18796 | ||
18797 | static PyObject *_wrap_DateTime_GetWeek(PyObject *, PyObject *args, PyObject *kwargs) { | |
18798 | PyObject *resultobj; | |
18799 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18800 | int arg2 ; | |
18801 | int arg3 = (int) wxDateTime::Mon ; | |
18802 | int arg4 = (int) wxDateTime::Monday_First ; | |
18803 | wxDateTime result; | |
18804 | PyObject * obj0 = 0 ; | |
18805 | PyObject * obj1 = 0 ; | |
18806 | PyObject * obj2 = 0 ; | |
18807 | PyObject * obj3 = 0 ; | |
18808 | char *kwnames[] = { | |
18809 | (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL | |
18810 | }; | |
18811 | ||
18812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
18813 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18814 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18815 | arg2 = (int)SWIG_As_int(obj1); | |
18816 | if (PyErr_Occurred()) SWIG_fail; | |
18817 | if (obj2) { | |
18818 | arg3 = (int)SWIG_As_int(obj2); | |
18819 | if (PyErr_Occurred()) SWIG_fail; | |
18820 | } | |
18821 | if (obj3) { | |
18822 | arg4 = (int)SWIG_As_int(obj3); | |
18823 | if (PyErr_Occurred()) SWIG_fail; | |
18824 | } | |
18825 | { | |
18826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18827 | result = (arg1)->GetWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4); | |
18828 | ||
18829 | wxPyEndAllowThreads(__tstate); | |
18830 | if (PyErr_Occurred()) SWIG_fail; | |
18831 | } | |
18832 | { | |
18833 | wxDateTime * resultptr; | |
18834 | resultptr = new wxDateTime((wxDateTime &) result); | |
18835 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18836 | } | |
18837 | return resultobj; | |
18838 | fail: | |
18839 | return NULL; | |
18840 | } | |
18841 | ||
18842 | ||
18843 | static PyObject *_wrap_DateTime_SetToWeekOfYear(PyObject *, PyObject *args, PyObject *kwargs) { | |
18844 | PyObject *resultobj; | |
18845 | int arg1 ; | |
18846 | int arg2 ; | |
18847 | int arg3 = (int) wxDateTime::Mon ; | |
18848 | wxDateTime result; | |
18849 | PyObject * obj0 = 0 ; | |
18850 | PyObject * obj1 = 0 ; | |
18851 | PyObject * obj2 = 0 ; | |
18852 | char *kwnames[] = { | |
18853 | (char *) "year",(char *) "numWeek",(char *) "weekday", NULL | |
18854 | }; | |
18855 | ||
18856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18857 | arg1 = (int)SWIG_As_int(obj0); | |
18858 | if (PyErr_Occurred()) SWIG_fail; | |
18859 | arg2 = (int)SWIG_As_int(obj1); | |
18860 | if (PyErr_Occurred()) SWIG_fail; | |
18861 | if (obj2) { | |
18862 | arg3 = (int)SWIG_As_int(obj2); | |
18863 | if (PyErr_Occurred()) SWIG_fail; | |
18864 | } | |
18865 | { | |
18866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18867 | result = wxDateTime::SetToWeekOfYear(arg1,arg2,(wxDateTime::WeekDay )arg3); | |
18868 | ||
18869 | wxPyEndAllowThreads(__tstate); | |
18870 | if (PyErr_Occurred()) SWIG_fail; | |
18871 | } | |
18872 | { | |
18873 | wxDateTime * resultptr; | |
18874 | resultptr = new wxDateTime((wxDateTime &) result); | |
18875 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18876 | } | |
18877 | return resultobj; | |
18878 | fail: | |
18879 | return NULL; | |
18880 | } | |
18881 | ||
18882 | ||
18883 | static PyObject *_wrap_DateTime_SetToLastMonthDay(PyObject *, PyObject *args, PyObject *kwargs) { | |
18884 | PyObject *resultobj; | |
18885 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18886 | int arg2 = (int) wxDateTime::Inv_Month ; | |
18887 | int arg3 = (int) wxDateTime::Inv_Year ; | |
18888 | wxDateTime *result; | |
18889 | PyObject * obj0 = 0 ; | |
18890 | PyObject * obj1 = 0 ; | |
18891 | PyObject * obj2 = 0 ; | |
18892 | char *kwnames[] = { | |
18893 | (char *) "self",(char *) "month",(char *) "year", NULL | |
18894 | }; | |
18895 | ||
18896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_SetToLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18897 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18898 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18899 | if (obj1) { | |
18900 | arg2 = (int)SWIG_As_int(obj1); | |
18901 | if (PyErr_Occurred()) SWIG_fail; | |
18902 | } | |
18903 | if (obj2) { | |
18904 | arg3 = (int)SWIG_As_int(obj2); | |
18905 | if (PyErr_Occurred()) SWIG_fail; | |
18906 | } | |
18907 | { | |
18908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18909 | { | |
18910 | wxDateTime &_result_ref = (arg1)->SetToLastMonthDay((wxDateTime::Month )arg2,arg3); | |
18911 | result = (wxDateTime *) &_result_ref; | |
18912 | } | |
18913 | ||
18914 | wxPyEndAllowThreads(__tstate); | |
18915 | if (PyErr_Occurred()) SWIG_fail; | |
18916 | } | |
18917 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18918 | return resultobj; | |
18919 | fail: | |
18920 | return NULL; | |
18921 | } | |
18922 | ||
18923 | ||
18924 | static PyObject *_wrap_DateTime_GetLastMonthDay(PyObject *, PyObject *args, PyObject *kwargs) { | |
18925 | PyObject *resultobj; | |
18926 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18927 | int arg2 = (int) wxDateTime::Inv_Month ; | |
18928 | int arg3 = (int) wxDateTime::Inv_Year ; | |
18929 | wxDateTime result; | |
18930 | PyObject * obj0 = 0 ; | |
18931 | PyObject * obj1 = 0 ; | |
18932 | PyObject * obj2 = 0 ; | |
18933 | char *kwnames[] = { | |
18934 | (char *) "self",(char *) "month",(char *) "year", NULL | |
18935 | }; | |
18936 | ||
18937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18938 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18939 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18940 | if (obj1) { | |
18941 | arg2 = (int)SWIG_As_int(obj1); | |
18942 | if (PyErr_Occurred()) SWIG_fail; | |
18943 | } | |
18944 | if (obj2) { | |
18945 | arg3 = (int)SWIG_As_int(obj2); | |
18946 | if (PyErr_Occurred()) SWIG_fail; | |
18947 | } | |
18948 | { | |
18949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18950 | result = (arg1)->GetLastMonthDay((wxDateTime::Month )arg2,arg3); | |
18951 | ||
18952 | wxPyEndAllowThreads(__tstate); | |
18953 | if (PyErr_Occurred()) SWIG_fail; | |
18954 | } | |
18955 | { | |
18956 | wxDateTime * resultptr; | |
18957 | resultptr = new wxDateTime((wxDateTime &) result); | |
18958 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18959 | } | |
18960 | return resultobj; | |
18961 | fail: | |
18962 | return NULL; | |
18963 | } | |
18964 | ||
18965 | ||
18966 | static PyObject *_wrap_DateTime_SetToYearDay(PyObject *, PyObject *args, PyObject *kwargs) { | |
18967 | PyObject *resultobj; | |
18968 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18969 | int arg2 ; | |
18970 | wxDateTime *result; | |
18971 | PyObject * obj0 = 0 ; | |
18972 | PyObject * obj1 = 0 ; | |
18973 | char *kwnames[] = { | |
18974 | (char *) "self",(char *) "yday", NULL | |
18975 | }; | |
18976 | ||
18977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToYearDay",kwnames,&obj0,&obj1)) goto fail; | |
18978 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18979 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18980 | arg2 = (int)SWIG_As_int(obj1); | |
18981 | if (PyErr_Occurred()) SWIG_fail; | |
18982 | { | |
18983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18984 | { | |
18985 | wxDateTime &_result_ref = (arg1)->SetToYearDay(arg2); | |
18986 | result = (wxDateTime *) &_result_ref; | |
18987 | } | |
18988 | ||
18989 | wxPyEndAllowThreads(__tstate); | |
18990 | if (PyErr_Occurred()) SWIG_fail; | |
18991 | } | |
18992 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18993 | return resultobj; | |
18994 | fail: | |
18995 | return NULL; | |
18996 | } | |
18997 | ||
18998 | ||
18999 | static PyObject *_wrap_DateTime_GetYearDay(PyObject *, PyObject *args, PyObject *kwargs) { | |
19000 | PyObject *resultobj; | |
19001 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19002 | int arg2 ; | |
19003 | wxDateTime result; | |
19004 | PyObject * obj0 = 0 ; | |
19005 | PyObject * obj1 = 0 ; | |
19006 | char *kwnames[] = { | |
19007 | (char *) "self",(char *) "yday", NULL | |
19008 | }; | |
19009 | ||
19010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetYearDay",kwnames,&obj0,&obj1)) goto fail; | |
19011 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19013 | arg2 = (int)SWIG_As_int(obj1); | |
19014 | if (PyErr_Occurred()) SWIG_fail; | |
19015 | { | |
19016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19017 | result = (arg1)->GetYearDay(arg2); | |
19018 | ||
19019 | wxPyEndAllowThreads(__tstate); | |
19020 | if (PyErr_Occurred()) SWIG_fail; | |
19021 | } | |
19022 | { | |
19023 | wxDateTime * resultptr; | |
19024 | resultptr = new wxDateTime((wxDateTime &) result); | |
19025 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
19026 | } | |
19027 | return resultobj; | |
19028 | fail: | |
19029 | return NULL; | |
19030 | } | |
19031 | ||
19032 | ||
19033 | static PyObject *_wrap_DateTime_GetJulianDayNumber(PyObject *, PyObject *args, PyObject *kwargs) { | |
19034 | PyObject *resultobj; | |
19035 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19036 | double result; | |
19037 | PyObject * obj0 = 0 ; | |
19038 | char *kwnames[] = { | |
19039 | (char *) "self", NULL | |
19040 | }; | |
19041 | ||
19042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJulianDayNumber",kwnames,&obj0)) goto fail; | |
19043 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19045 | { | |
19046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19047 | result = (double)(arg1)->GetJulianDayNumber(); | |
19048 | ||
19049 | wxPyEndAllowThreads(__tstate); | |
19050 | if (PyErr_Occurred()) SWIG_fail; | |
19051 | } | |
19052 | resultobj = SWIG_From_double((double)result); | |
19053 | return resultobj; | |
19054 | fail: | |
19055 | return NULL; | |
19056 | } | |
19057 | ||
19058 | ||
19059 | static PyObject *_wrap_DateTime_GetJDN(PyObject *, PyObject *args, PyObject *kwargs) { | |
19060 | PyObject *resultobj; | |
19061 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19062 | double result; | |
19063 | PyObject * obj0 = 0 ; | |
19064 | char *kwnames[] = { | |
19065 | (char *) "self", NULL | |
19066 | }; | |
19067 | ||
19068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJDN",kwnames,&obj0)) goto fail; | |
19069 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19070 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19071 | { | |
19072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19073 | result = (double)(arg1)->GetJDN(); | |
19074 | ||
19075 | wxPyEndAllowThreads(__tstate); | |
19076 | if (PyErr_Occurred()) SWIG_fail; | |
19077 | } | |
19078 | resultobj = SWIG_From_double((double)result); | |
19079 | return resultobj; | |
19080 | fail: | |
19081 | return NULL; | |
19082 | } | |
19083 | ||
19084 | ||
19085 | static PyObject *_wrap_DateTime_GetModifiedJulianDayNumber(PyObject *, PyObject *args, PyObject *kwargs) { | |
19086 | PyObject *resultobj; | |
19087 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19088 | double result; | |
19089 | PyObject * obj0 = 0 ; | |
19090 | char *kwnames[] = { | |
19091 | (char *) "self", NULL | |
19092 | }; | |
19093 | ||
19094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetModifiedJulianDayNumber",kwnames,&obj0)) goto fail; | |
19095 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19096 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19097 | { | |
19098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19099 | result = (double)((wxDateTime const *)arg1)->GetModifiedJulianDayNumber(); | |
19100 | ||
19101 | wxPyEndAllowThreads(__tstate); | |
19102 | if (PyErr_Occurred()) SWIG_fail; | |
19103 | } | |
19104 | resultobj = SWIG_From_double((double)result); | |
19105 | return resultobj; | |
19106 | fail: | |
19107 | return NULL; | |
19108 | } | |
19109 | ||
19110 | ||
19111 | static PyObject *_wrap_DateTime_GetMJD(PyObject *, PyObject *args, PyObject *kwargs) { | |
19112 | PyObject *resultobj; | |
19113 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19114 | double result; | |
19115 | PyObject * obj0 = 0 ; | |
19116 | char *kwnames[] = { | |
19117 | (char *) "self", NULL | |
19118 | }; | |
19119 | ||
19120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetMJD",kwnames,&obj0)) goto fail; | |
19121 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19123 | { | |
19124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19125 | result = (double)(arg1)->GetMJD(); | |
19126 | ||
19127 | wxPyEndAllowThreads(__tstate); | |
19128 | if (PyErr_Occurred()) SWIG_fail; | |
19129 | } | |
19130 | resultobj = SWIG_From_double((double)result); | |
19131 | return resultobj; | |
19132 | fail: | |
19133 | return NULL; | |
19134 | } | |
19135 | ||
19136 | ||
19137 | static PyObject *_wrap_DateTime_GetRataDie(PyObject *, PyObject *args, PyObject *kwargs) { | |
19138 | PyObject *resultobj; | |
19139 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19140 | double result; | |
19141 | PyObject * obj0 = 0 ; | |
19142 | char *kwnames[] = { | |
19143 | (char *) "self", NULL | |
19144 | }; | |
19145 | ||
19146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetRataDie",kwnames,&obj0)) goto fail; | |
19147 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19148 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19149 | { | |
19150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19151 | result = (double)(arg1)->GetRataDie(); | |
19152 | ||
19153 | wxPyEndAllowThreads(__tstate); | |
19154 | if (PyErr_Occurred()) SWIG_fail; | |
19155 | } | |
19156 | resultobj = SWIG_From_double((double)result); | |
19157 | return resultobj; | |
19158 | fail: | |
19159 | return NULL; | |
19160 | } | |
19161 | ||
19162 | ||
19163 | static PyObject *_wrap_DateTime_ToTimezone(PyObject *, PyObject *args, PyObject *kwargs) { | |
19164 | PyObject *resultobj; | |
19165 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19166 | wxDateTime::TimeZone *arg2 = 0 ; | |
19167 | bool arg3 = (bool) false ; | |
19168 | wxDateTime result; | |
19169 | bool temp2 = false ; | |
19170 | PyObject * obj0 = 0 ; | |
19171 | PyObject * obj1 = 0 ; | |
19172 | PyObject * obj2 = 0 ; | |
19173 | char *kwnames[] = { | |
19174 | (char *) "self",(char *) "tz",(char *) "noDST", NULL | |
19175 | }; | |
19176 | ||
19177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_ToTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19178 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19179 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19180 | { | |
19181 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
19182 | temp2 = true; | |
19183 | } | |
19184 | if (obj2) { | |
19185 | arg3 = (bool)SWIG_As_bool(obj2); | |
19186 | if (PyErr_Occurred()) SWIG_fail; | |
19187 | } | |
19188 | { | |
19189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19190 | result = (arg1)->ToTimezone((wxDateTime::TimeZone const &)*arg2,arg3); | |
19191 | ||
19192 | wxPyEndAllowThreads(__tstate); | |
19193 | if (PyErr_Occurred()) SWIG_fail; | |
19194 | } | |
19195 | { | |
19196 | wxDateTime * resultptr; | |
19197 | resultptr = new wxDateTime((wxDateTime &) result); | |
19198 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
19199 | } | |
19200 | { | |
19201 | if (temp2) delete arg2; | |
19202 | } | |
19203 | return resultobj; | |
19204 | fail: | |
19205 | { | |
19206 | if (temp2) delete arg2; | |
19207 | } | |
19208 | return NULL; | |
19209 | } | |
19210 | ||
19211 | ||
19212 | static PyObject *_wrap_DateTime_MakeTimezone(PyObject *, PyObject *args, PyObject *kwargs) { | |
19213 | PyObject *resultobj; | |
19214 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19215 | wxDateTime::TimeZone *arg2 = 0 ; | |
19216 | bool arg3 = (bool) false ; | |
19217 | wxDateTime *result; | |
19218 | bool temp2 = false ; | |
19219 | PyObject * obj0 = 0 ; | |
19220 | PyObject * obj1 = 0 ; | |
19221 | PyObject * obj2 = 0 ; | |
19222 | char *kwnames[] = { | |
19223 | (char *) "self",(char *) "tz",(char *) "noDST", NULL | |
19224 | }; | |
19225 | ||
19226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19227 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19228 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19229 | { | |
19230 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
19231 | temp2 = true; | |
19232 | } | |
19233 | if (obj2) { | |
19234 | arg3 = (bool)SWIG_As_bool(obj2); | |
19235 | if (PyErr_Occurred()) SWIG_fail; | |
19236 | } | |
19237 | { | |
19238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19239 | { | |
19240 | wxDateTime &_result_ref = (arg1)->MakeTimezone((wxDateTime::TimeZone const &)*arg2,arg3); | |
19241 | result = (wxDateTime *) &_result_ref; | |
19242 | } | |
19243 | ||
19244 | wxPyEndAllowThreads(__tstate); | |
19245 | if (PyErr_Occurred()) SWIG_fail; | |
19246 | } | |
19247 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
19248 | { | |
19249 | if (temp2) delete arg2; | |
19250 | } | |
19251 | return resultobj; | |
19252 | fail: | |
19253 | { | |
19254 | if (temp2) delete arg2; | |
19255 | } | |
19256 | return NULL; | |
19257 | } | |
19258 | ||
19259 | ||
19260 | static PyObject *_wrap_DateTime_ToGMT(PyObject *, PyObject *args, PyObject *kwargs) { | |
19261 | PyObject *resultobj; | |
19262 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19263 | bool arg2 = (bool) false ; | |
19264 | wxDateTime result; | |
19265 | PyObject * obj0 = 0 ; | |
19266 | PyObject * obj1 = 0 ; | |
19267 | char *kwnames[] = { | |
19268 | (char *) "self",(char *) "noDST", NULL | |
19269 | }; | |
19270 | ||
19271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToGMT",kwnames,&obj0,&obj1)) goto fail; | |
19272 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19273 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19274 | if (obj1) { | |
19275 | arg2 = (bool)SWIG_As_bool(obj1); | |
19276 | if (PyErr_Occurred()) SWIG_fail; | |
19277 | } | |
19278 | { | |
19279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19280 | result = (arg1)->ToGMT(arg2); | |
19281 | ||
19282 | wxPyEndAllowThreads(__tstate); | |
19283 | if (PyErr_Occurred()) SWIG_fail; | |
19284 | } | |
19285 | { | |
19286 | wxDateTime * resultptr; | |
19287 | resultptr = new wxDateTime((wxDateTime &) result); | |
19288 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
19289 | } | |
19290 | return resultobj; | |
19291 | fail: | |
19292 | return NULL; | |
19293 | } | |
19294 | ||
19295 | ||
19296 | static PyObject *_wrap_DateTime_MakeGMT(PyObject *, PyObject *args, PyObject *kwargs) { | |
19297 | PyObject *resultobj; | |
19298 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19299 | bool arg2 = (bool) false ; | |
19300 | wxDateTime *result; | |
19301 | PyObject * obj0 = 0 ; | |
19302 | PyObject * obj1 = 0 ; | |
19303 | char *kwnames[] = { | |
19304 | (char *) "self",(char *) "noDST", NULL | |
19305 | }; | |
19306 | ||
19307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeGMT",kwnames,&obj0,&obj1)) goto fail; | |
19308 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19309 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19310 | if (obj1) { | |
19311 | arg2 = (bool)SWIG_As_bool(obj1); | |
19312 | if (PyErr_Occurred()) SWIG_fail; | |
19313 | } | |
19314 | { | |
19315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19316 | { | |
19317 | wxDateTime &_result_ref = (arg1)->MakeGMT(arg2); | |
19318 | result = (wxDateTime *) &_result_ref; | |
19319 | } | |
19320 | ||
19321 | wxPyEndAllowThreads(__tstate); | |
19322 | if (PyErr_Occurred()) SWIG_fail; | |
19323 | } | |
19324 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
19325 | return resultobj; | |
19326 | fail: | |
19327 | return NULL; | |
19328 | } | |
19329 | ||
19330 | ||
19331 | static PyObject *_wrap_DateTime_IsDST(PyObject *, PyObject *args, PyObject *kwargs) { | |
19332 | PyObject *resultobj; | |
19333 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19334 | int arg2 = (int) wxDateTime::Country_Default ; | |
19335 | int result; | |
19336 | PyObject * obj0 = 0 ; | |
19337 | PyObject * obj1 = 0 ; | |
19338 | char *kwnames[] = { | |
19339 | (char *) "self",(char *) "country", NULL | |
19340 | }; | |
19341 | ||
19342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsDST",kwnames,&obj0,&obj1)) goto fail; | |
19343 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19345 | if (obj1) { | |
19346 | arg2 = (int)SWIG_As_int(obj1); | |
19347 | if (PyErr_Occurred()) SWIG_fail; | |
19348 | } | |
19349 | { | |
19350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19351 | result = (int)(arg1)->IsDST((wxDateTime::Country )arg2); | |
19352 | ||
19353 | wxPyEndAllowThreads(__tstate); | |
19354 | if (PyErr_Occurred()) SWIG_fail; | |
19355 | } | |
19356 | resultobj = SWIG_From_int((int)result); | |
19357 | return resultobj; | |
19358 | fail: | |
19359 | return NULL; | |
19360 | } | |
19361 | ||
19362 | ||
19363 | static PyObject *_wrap_DateTime_IsValid(PyObject *, PyObject *args, PyObject *kwargs) { | |
19364 | PyObject *resultobj; | |
19365 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19366 | bool result; | |
19367 | PyObject * obj0 = 0 ; | |
19368 | char *kwnames[] = { | |
19369 | (char *) "self", NULL | |
19370 | }; | |
19371 | ||
19372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_IsValid",kwnames,&obj0)) goto fail; | |
19373 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19374 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19375 | { | |
19376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19377 | result = (bool)((wxDateTime const *)arg1)->IsValid(); | |
19378 | ||
19379 | wxPyEndAllowThreads(__tstate); | |
19380 | if (PyErr_Occurred()) SWIG_fail; | |
19381 | } | |
19382 | { | |
19383 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19384 | } | |
19385 | return resultobj; | |
19386 | fail: | |
19387 | return NULL; | |
19388 | } | |
19389 | ||
19390 | ||
19391 | static PyObject *_wrap_DateTime_GetTicks(PyObject *, PyObject *args, PyObject *kwargs) { | |
19392 | PyObject *resultobj; | |
19393 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19394 | time_t result; | |
19395 | PyObject * obj0 = 0 ; | |
19396 | char *kwnames[] = { | |
19397 | (char *) "self", NULL | |
19398 | }; | |
19399 | ||
19400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetTicks",kwnames,&obj0)) goto fail; | |
19401 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19402 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19403 | { | |
19404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19405 | result = (time_t)((wxDateTime const *)arg1)->GetTicks(); | |
19406 | ||
19407 | wxPyEndAllowThreads(__tstate); | |
19408 | if (PyErr_Occurred()) SWIG_fail; | |
19409 | } | |
19410 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)result); | |
19411 | return resultobj; | |
19412 | fail: | |
19413 | return NULL; | |
19414 | } | |
19415 | ||
19416 | ||
19417 | static PyObject *_wrap_DateTime_GetYear(PyObject *, PyObject *args, PyObject *kwargs) { | |
19418 | PyObject *resultobj; | |
19419 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19420 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19421 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19422 | int result; | |
19423 | bool temp2 = false ; | |
19424 | PyObject * obj0 = 0 ; | |
19425 | PyObject * obj1 = 0 ; | |
19426 | char *kwnames[] = { | |
19427 | (char *) "self",(char *) "tz", NULL | |
19428 | }; | |
19429 | ||
19430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetYear",kwnames,&obj0,&obj1)) goto fail; | |
19431 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19432 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19433 | if (obj1) { | |
19434 | { | |
19435 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
19436 | temp2 = true; | |
19437 | } | |
19438 | } | |
19439 | { | |
19440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19441 | result = (int)((wxDateTime const *)arg1)->GetYear((wxDateTime::TimeZone const &)*arg2); | |
19442 | ||
19443 | wxPyEndAllowThreads(__tstate); | |
19444 | if (PyErr_Occurred()) SWIG_fail; | |
19445 | } | |
19446 | resultobj = SWIG_From_int((int)result); | |
19447 | { | |
19448 | if (temp2) delete arg2; | |
19449 | } | |
19450 | return resultobj; | |
19451 | fail: | |
19452 | { | |
19453 | if (temp2) delete arg2; | |
19454 | } | |
19455 | return NULL; | |
19456 | } | |
19457 | ||
19458 | ||
19459 | static PyObject *_wrap_DateTime_GetMonth(PyObject *, PyObject *args, PyObject *kwargs) { | |
19460 | PyObject *resultobj; | |
19461 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19462 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19463 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19464 | int result; | |
19465 | bool temp2 = false ; | |
19466 | PyObject * obj0 = 0 ; | |
19467 | PyObject * obj1 = 0 ; | |
19468 | char *kwnames[] = { | |
19469 | (char *) "self",(char *) "tz", NULL | |
19470 | }; | |
19471 | ||
19472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonth",kwnames,&obj0,&obj1)) goto fail; | |
19473 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19474 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19475 | if (obj1) { | |
19476 | { | |
19477 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
19478 | temp2 = true; | |
19479 | } | |
19480 | } | |
19481 | { | |
19482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19483 | result = (int)((wxDateTime const *)arg1)->GetMonth((wxDateTime::TimeZone const &)*arg2); | |
19484 | ||
19485 | wxPyEndAllowThreads(__tstate); | |
19486 | if (PyErr_Occurred()) SWIG_fail; | |
19487 | } | |
19488 | resultobj = SWIG_From_int((int)result); | |
19489 | { | |
19490 | if (temp2) delete arg2; | |
19491 | } | |
19492 | return resultobj; | |
19493 | fail: | |
19494 | { | |
19495 | if (temp2) delete arg2; | |
19496 | } | |
19497 | return NULL; | |
19498 | } | |
19499 | ||
19500 | ||
19501 | static PyObject *_wrap_DateTime_GetDay(PyObject *, PyObject *args, PyObject *kwargs) { | |
19502 | PyObject *resultobj; | |
19503 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19504 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19505 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19506 | int result; | |
19507 | bool temp2 = false ; | |
19508 | PyObject * obj0 = 0 ; | |
19509 | PyObject * obj1 = 0 ; | |
19510 | char *kwnames[] = { | |
19511 | (char *) "self",(char *) "tz", NULL | |
19512 | }; | |
19513 | ||
19514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDay",kwnames,&obj0,&obj1)) goto fail; | |
19515 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19516 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19517 | if (obj1) { | |
19518 | { | |
19519 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
19520 | temp2 = true; | |
19521 | } | |
19522 | } | |
19523 | { | |
19524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19525 | result = (int)((wxDateTime const *)arg1)->GetDay((wxDateTime::TimeZone const &)*arg2); | |
19526 | ||
19527 | wxPyEndAllowThreads(__tstate); | |
19528 | if (PyErr_Occurred()) SWIG_fail; | |
19529 | } | |
19530 | resultobj = SWIG_From_int((int)result); | |
19531 | { | |
19532 | if (temp2) delete arg2; | |
19533 | } | |
19534 | return resultobj; | |
19535 | fail: | |
19536 | { | |
19537 | if (temp2) delete arg2; | |
19538 | } | |
19539 | return NULL; | |
19540 | } | |
19541 | ||
19542 | ||
19543 | static PyObject *_wrap_DateTime_GetWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { | |
19544 | PyObject *resultobj; | |
19545 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19546 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19547 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19548 | int result; | |
19549 | bool temp2 = false ; | |
19550 | PyObject * obj0 = 0 ; | |
19551 | PyObject * obj1 = 0 ; | |
19552 | char *kwnames[] = { | |
19553 | (char *) "self",(char *) "tz", NULL | |
19554 | }; | |
19555 | ||
19556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
19557 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19558 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19559 | if (obj1) { | |
19560 | { | |
19561 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
19562 | temp2 = true; | |
19563 | } | |
19564 | } | |
19565 | { | |
19566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19567 | result = (int)((wxDateTime const *)arg1)->GetWeekDay((wxDateTime::TimeZone const &)*arg2); | |
19568 | ||
19569 | wxPyEndAllowThreads(__tstate); | |
19570 | if (PyErr_Occurred()) SWIG_fail; | |
19571 | } | |
19572 | resultobj = SWIG_From_int((int)result); | |
19573 | { | |
19574 | if (temp2) delete arg2; | |
19575 | } | |
19576 | return resultobj; | |
19577 | fail: | |
19578 | { | |
19579 | if (temp2) delete arg2; | |
19580 | } | |
19581 | return NULL; | |
19582 | } | |
19583 | ||
19584 | ||
19585 | static PyObject *_wrap_DateTime_GetHour(PyObject *, PyObject *args, PyObject *kwargs) { | |
19586 | PyObject *resultobj; | |
19587 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19588 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19589 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19590 | int result; | |
19591 | bool temp2 = false ; | |
19592 | PyObject * obj0 = 0 ; | |
19593 | PyObject * obj1 = 0 ; | |
19594 | char *kwnames[] = { | |
19595 | (char *) "self",(char *) "tz", NULL | |
19596 | }; | |
19597 | ||
19598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetHour",kwnames,&obj0,&obj1)) goto fail; | |
19599 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19600 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19601 | if (obj1) { | |
19602 | { | |
19603 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
19604 | temp2 = true; | |
19605 | } | |
19606 | } | |
19607 | { | |
19608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19609 | result = (int)((wxDateTime const *)arg1)->GetHour((wxDateTime::TimeZone const &)*arg2); | |
19610 | ||
19611 | wxPyEndAllowThreads(__tstate); | |
19612 | if (PyErr_Occurred()) SWIG_fail; | |
19613 | } | |
19614 | resultobj = SWIG_From_int((int)result); | |
19615 | { | |
19616 | if (temp2) delete arg2; | |
19617 | } | |
19618 | return resultobj; | |
19619 | fail: | |
19620 | { | |
19621 | if (temp2) delete arg2; | |
19622 | } | |
19623 | return NULL; | |
19624 | } | |
19625 | ||
19626 | ||
19627 | static PyObject *_wrap_DateTime_GetMinute(PyObject *, PyObject *args, PyObject *kwargs) { | |
19628 | PyObject *resultobj; | |
19629 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19630 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19631 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19632 | int result; | |
19633 | bool temp2 = false ; | |
19634 | PyObject * obj0 = 0 ; | |
19635 | PyObject * obj1 = 0 ; | |
19636 | char *kwnames[] = { | |
19637 | (char *) "self",(char *) "tz", NULL | |
19638 | }; | |
19639 | ||
19640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMinute",kwnames,&obj0,&obj1)) goto fail; | |
19641 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19642 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19643 | if (obj1) { | |
19644 | { | |
19645 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
19646 | temp2 = true; | |
19647 | } | |
19648 | } | |
19649 | { | |
19650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19651 | result = (int)((wxDateTime const *)arg1)->GetMinute((wxDateTime::TimeZone const &)*arg2); | |
19652 | ||
19653 | wxPyEndAllowThreads(__tstate); | |
19654 | if (PyErr_Occurred()) SWIG_fail; | |
19655 | } | |
19656 | resultobj = SWIG_From_int((int)result); | |
19657 | { | |
19658 | if (temp2) delete arg2; | |
19659 | } | |
19660 | return resultobj; | |
19661 | fail: | |
19662 | { | |
19663 | if (temp2) delete arg2; | |
19664 | } | |
19665 | return NULL; | |
19666 | } | |
19667 | ||
19668 | ||
19669 | static PyObject *_wrap_DateTime_GetSecond(PyObject *, PyObject *args, PyObject *kwargs) { | |
19670 | PyObject *resultobj; | |
19671 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19672 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19673 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19674 | int result; | |
19675 | bool temp2 = false ; | |
19676 | PyObject * obj0 = 0 ; | |
19677 | PyObject * obj1 = 0 ; | |
19678 | char *kwnames[] = { | |
19679 | (char *) "self",(char *) "tz", NULL | |
19680 | }; | |
19681 | ||
19682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetSecond",kwnames,&obj0,&obj1)) goto fail; | |
19683 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19684 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19685 | if (obj1) { | |
19686 | { | |
19687 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
19688 | temp2 = true; | |
19689 | } | |
19690 | } | |
19691 | { | |
19692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19693 | result = (int)((wxDateTime const *)arg1)->GetSecond((wxDateTime::TimeZone const &)*arg2); | |
19694 | ||
19695 | wxPyEndAllowThreads(__tstate); | |
19696 | if (PyErr_Occurred()) SWIG_fail; | |
19697 | } | |
19698 | resultobj = SWIG_From_int((int)result); | |
19699 | { | |
19700 | if (temp2) delete arg2; | |
19701 | } | |
19702 | return resultobj; | |
19703 | fail: | |
19704 | { | |
19705 | if (temp2) delete arg2; | |
19706 | } | |
19707 | return NULL; | |
19708 | } | |
19709 | ||
19710 | ||
19711 | static PyObject *_wrap_DateTime_GetMillisecond(PyObject *, PyObject *args, PyObject *kwargs) { | |
19712 | PyObject *resultobj; | |
19713 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19714 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19715 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19716 | int result; | |
19717 | bool temp2 = false ; | |
19718 | PyObject * obj0 = 0 ; | |
19719 | PyObject * obj1 = 0 ; | |
19720 | char *kwnames[] = { | |
19721 | (char *) "self",(char *) "tz", NULL | |
19722 | }; | |
19723 | ||
19724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMillisecond",kwnames,&obj0,&obj1)) goto fail; | |
19725 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19727 | if (obj1) { | |
19728 | { | |
19729 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
19730 | temp2 = true; | |
19731 | } | |
19732 | } | |
19733 | { | |
19734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19735 | result = (int)((wxDateTime const *)arg1)->GetMillisecond((wxDateTime::TimeZone const &)*arg2); | |
19736 | ||
19737 | wxPyEndAllowThreads(__tstate); | |
19738 | if (PyErr_Occurred()) SWIG_fail; | |
19739 | } | |
19740 | resultobj = SWIG_From_int((int)result); | |
19741 | { | |
19742 | if (temp2) delete arg2; | |
19743 | } | |
19744 | return resultobj; | |
19745 | fail: | |
19746 | { | |
19747 | if (temp2) delete arg2; | |
19748 | } | |
19749 | return NULL; | |
19750 | } | |
19751 | ||
19752 | ||
19753 | static PyObject *_wrap_DateTime_GetDayOfYear(PyObject *, PyObject *args, PyObject *kwargs) { | |
19754 | PyObject *resultobj; | |
19755 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19756 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19757 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19758 | int result; | |
19759 | bool temp2 = false ; | |
19760 | PyObject * obj0 = 0 ; | |
19761 | PyObject * obj1 = 0 ; | |
19762 | char *kwnames[] = { | |
19763 | (char *) "self",(char *) "tz", NULL | |
19764 | }; | |
19765 | ||
19766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDayOfYear",kwnames,&obj0,&obj1)) goto fail; | |
19767 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19768 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19769 | if (obj1) { | |
19770 | { | |
19771 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
19772 | temp2 = true; | |
19773 | } | |
19774 | } | |
19775 | { | |
19776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19777 | result = (int)((wxDateTime const *)arg1)->GetDayOfYear((wxDateTime::TimeZone const &)*arg2); | |
19778 | ||
19779 | wxPyEndAllowThreads(__tstate); | |
19780 | if (PyErr_Occurred()) SWIG_fail; | |
19781 | } | |
19782 | resultobj = SWIG_From_int((int)result); | |
19783 | { | |
19784 | if (temp2) delete arg2; | |
19785 | } | |
19786 | return resultobj; | |
19787 | fail: | |
19788 | { | |
19789 | if (temp2) delete arg2; | |
19790 | } | |
19791 | return NULL; | |
19792 | } | |
19793 | ||
19794 | ||
19795 | static PyObject *_wrap_DateTime_GetWeekOfYear(PyObject *, PyObject *args, PyObject *kwargs) { | |
19796 | PyObject *resultobj; | |
19797 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19798 | int arg2 = (int) wxDateTime::Monday_First ; | |
19799 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
19800 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
19801 | int result; | |
19802 | bool temp3 = false ; | |
19803 | PyObject * obj0 = 0 ; | |
19804 | PyObject * obj1 = 0 ; | |
19805 | PyObject * obj2 = 0 ; | |
19806 | char *kwnames[] = { | |
19807 | (char *) "self",(char *) "flags",(char *) "tz", NULL | |
19808 | }; | |
19809 | ||
19810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19811 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19812 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19813 | if (obj1) { | |
19814 | arg2 = (int)SWIG_As_int(obj1); | |
19815 | if (PyErr_Occurred()) SWIG_fail; | |
19816 | } | |
19817 | if (obj2) { | |
19818 | { | |
19819 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
19820 | temp3 = true; | |
19821 | } | |
19822 | } | |
19823 | { | |
19824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19825 | result = (int)((wxDateTime const *)arg1)->GetWeekOfYear((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3); | |
19826 | ||
19827 | wxPyEndAllowThreads(__tstate); | |
19828 | if (PyErr_Occurred()) SWIG_fail; | |
19829 | } | |
19830 | resultobj = SWIG_From_int((int)result); | |
19831 | { | |
19832 | if (temp3) delete arg3; | |
19833 | } | |
19834 | return resultobj; | |
19835 | fail: | |
19836 | { | |
19837 | if (temp3) delete arg3; | |
19838 | } | |
19839 | return NULL; | |
19840 | } | |
19841 | ||
19842 | ||
19843 | static PyObject *_wrap_DateTime_GetWeekOfMonth(PyObject *, PyObject *args, PyObject *kwargs) { | |
19844 | PyObject *resultobj; | |
19845 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19846 | int arg2 = (int) wxDateTime::Monday_First ; | |
19847 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
19848 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
19849 | int result; | |
19850 | bool temp3 = false ; | |
19851 | PyObject * obj0 = 0 ; | |
19852 | PyObject * obj1 = 0 ; | |
19853 | PyObject * obj2 = 0 ; | |
19854 | char *kwnames[] = { | |
19855 | (char *) "self",(char *) "flags",(char *) "tz", NULL | |
19856 | }; | |
19857 | ||
19858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfMonth",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19859 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19860 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19861 | if (obj1) { | |
19862 | arg2 = (int)SWIG_As_int(obj1); | |
19863 | if (PyErr_Occurred()) SWIG_fail; | |
19864 | } | |
19865 | if (obj2) { | |
19866 | { | |
19867 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
19868 | temp3 = true; | |
19869 | } | |
19870 | } | |
19871 | { | |
19872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19873 | result = (int)((wxDateTime const *)arg1)->GetWeekOfMonth((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3); | |
19874 | ||
19875 | wxPyEndAllowThreads(__tstate); | |
19876 | if (PyErr_Occurred()) SWIG_fail; | |
19877 | } | |
19878 | resultobj = SWIG_From_int((int)result); | |
19879 | { | |
19880 | if (temp3) delete arg3; | |
19881 | } | |
19882 | return resultobj; | |
19883 | fail: | |
19884 | { | |
19885 | if (temp3) delete arg3; | |
19886 | } | |
19887 | return NULL; | |
19888 | } | |
19889 | ||
19890 | ||
19891 | static PyObject *_wrap_DateTime_IsWorkDay(PyObject *, PyObject *args, PyObject *kwargs) { | |
19892 | PyObject *resultobj; | |
19893 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19894 | int arg2 = (int) wxDateTime::Country_Default ; | |
19895 | bool result; | |
19896 | PyObject * obj0 = 0 ; | |
19897 | PyObject * obj1 = 0 ; | |
19898 | char *kwnames[] = { | |
19899 | (char *) "self",(char *) "country", NULL | |
19900 | }; | |
19901 | ||
19902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsWorkDay",kwnames,&obj0,&obj1)) goto fail; | |
19903 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19904 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19905 | if (obj1) { | |
19906 | arg2 = (int)SWIG_As_int(obj1); | |
19907 | if (PyErr_Occurred()) SWIG_fail; | |
19908 | } | |
19909 | { | |
19910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19911 | result = (bool)((wxDateTime const *)arg1)->IsWorkDay((wxDateTime::Country )arg2); | |
19912 | ||
19913 | wxPyEndAllowThreads(__tstate); | |
19914 | if (PyErr_Occurred()) SWIG_fail; | |
19915 | } | |
19916 | { | |
19917 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19918 | } | |
19919 | return resultobj; | |
19920 | fail: | |
19921 | return NULL; | |
19922 | } | |
19923 | ||
19924 | ||
19925 | static PyObject *_wrap_DateTime_IsEqualTo(PyObject *, PyObject *args, PyObject *kwargs) { | |
19926 | PyObject *resultobj; | |
19927 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19928 | wxDateTime *arg2 = 0 ; | |
19929 | bool result; | |
19930 | PyObject * obj0 = 0 ; | |
19931 | PyObject * obj1 = 0 ; | |
19932 | char *kwnames[] = { | |
19933 | (char *) "self",(char *) "datetime", NULL | |
19934 | }; | |
19935 | ||
19936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEqualTo",kwnames,&obj0,&obj1)) goto fail; | |
19937 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19938 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19939 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19940 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19941 | SWIG_fail; | |
19942 | if (arg2 == NULL) { | |
19943 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19944 | SWIG_fail; | |
19945 | } | |
19946 | { | |
19947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19948 | result = (bool)((wxDateTime const *)arg1)->IsEqualTo((wxDateTime const &)*arg2); | |
19949 | ||
19950 | wxPyEndAllowThreads(__tstate); | |
19951 | if (PyErr_Occurred()) SWIG_fail; | |
19952 | } | |
19953 | { | |
19954 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19955 | } | |
19956 | return resultobj; | |
19957 | fail: | |
19958 | return NULL; | |
19959 | } | |
19960 | ||
19961 | ||
19962 | static PyObject *_wrap_DateTime_IsEarlierThan(PyObject *, PyObject *args, PyObject *kwargs) { | |
19963 | PyObject *resultobj; | |
19964 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19965 | wxDateTime *arg2 = 0 ; | |
19966 | bool result; | |
19967 | PyObject * obj0 = 0 ; | |
19968 | PyObject * obj1 = 0 ; | |
19969 | char *kwnames[] = { | |
19970 | (char *) "self",(char *) "datetime", NULL | |
19971 | }; | |
19972 | ||
19973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEarlierThan",kwnames,&obj0,&obj1)) goto fail; | |
19974 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19975 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19976 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19977 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19978 | SWIG_fail; | |
19979 | if (arg2 == NULL) { | |
19980 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19981 | SWIG_fail; | |
19982 | } | |
19983 | { | |
19984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19985 | result = (bool)((wxDateTime const *)arg1)->IsEarlierThan((wxDateTime const &)*arg2); | |
19986 | ||
19987 | wxPyEndAllowThreads(__tstate); | |
19988 | if (PyErr_Occurred()) SWIG_fail; | |
19989 | } | |
19990 | { | |
19991 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19992 | } | |
19993 | return resultobj; | |
19994 | fail: | |
19995 | return NULL; | |
19996 | } | |
19997 | ||
19998 | ||
19999 | static PyObject *_wrap_DateTime_IsLaterThan(PyObject *, PyObject *args, PyObject *kwargs) { | |
20000 | PyObject *resultobj; | |
20001 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20002 | wxDateTime *arg2 = 0 ; | |
20003 | bool result; | |
20004 | PyObject * obj0 = 0 ; | |
20005 | PyObject * obj1 = 0 ; | |
20006 | char *kwnames[] = { | |
20007 | (char *) "self",(char *) "datetime", NULL | |
20008 | }; | |
20009 | ||
20010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsLaterThan",kwnames,&obj0,&obj1)) goto fail; | |
20011 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20013 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20014 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20015 | SWIG_fail; | |
20016 | if (arg2 == NULL) { | |
20017 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20018 | SWIG_fail; | |
20019 | } | |
20020 | { | |
20021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20022 | result = (bool)((wxDateTime const *)arg1)->IsLaterThan((wxDateTime const &)*arg2); | |
20023 | ||
20024 | wxPyEndAllowThreads(__tstate); | |
20025 | if (PyErr_Occurred()) SWIG_fail; | |
20026 | } | |
20027 | { | |
20028 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20029 | } | |
20030 | return resultobj; | |
20031 | fail: | |
20032 | return NULL; | |
20033 | } | |
20034 | ||
20035 | ||
20036 | static PyObject *_wrap_DateTime_IsStrictlyBetween(PyObject *, PyObject *args, PyObject *kwargs) { | |
20037 | PyObject *resultobj; | |
20038 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20039 | wxDateTime *arg2 = 0 ; | |
20040 | wxDateTime *arg3 = 0 ; | |
20041 | bool result; | |
20042 | PyObject * obj0 = 0 ; | |
20043 | PyObject * obj1 = 0 ; | |
20044 | PyObject * obj2 = 0 ; | |
20045 | char *kwnames[] = { | |
20046 | (char *) "self",(char *) "t1",(char *) "t2", NULL | |
20047 | }; | |
20048 | ||
20049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsStrictlyBetween",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20050 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20051 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20052 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20053 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20054 | SWIG_fail; | |
20055 | if (arg2 == NULL) { | |
20056 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20057 | SWIG_fail; | |
20058 | } | |
20059 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime, | |
20060 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20061 | SWIG_fail; | |
20062 | if (arg3 == NULL) { | |
20063 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20064 | SWIG_fail; | |
20065 | } | |
20066 | { | |
20067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20068 | result = (bool)((wxDateTime const *)arg1)->IsStrictlyBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
20069 | ||
20070 | wxPyEndAllowThreads(__tstate); | |
20071 | if (PyErr_Occurred()) SWIG_fail; | |
20072 | } | |
20073 | { | |
20074 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20075 | } | |
20076 | return resultobj; | |
20077 | fail: | |
20078 | return NULL; | |
20079 | } | |
20080 | ||
20081 | ||
20082 | static PyObject *_wrap_DateTime_IsBetween(PyObject *, PyObject *args, PyObject *kwargs) { | |
20083 | PyObject *resultobj; | |
20084 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20085 | wxDateTime *arg2 = 0 ; | |
20086 | wxDateTime *arg3 = 0 ; | |
20087 | bool result; | |
20088 | PyObject * obj0 = 0 ; | |
20089 | PyObject * obj1 = 0 ; | |
20090 | PyObject * obj2 = 0 ; | |
20091 | char *kwnames[] = { | |
20092 | (char *) "self",(char *) "t1",(char *) "t2", NULL | |
20093 | }; | |
20094 | ||
20095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsBetween",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20096 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20097 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20098 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20099 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20100 | SWIG_fail; | |
20101 | if (arg2 == NULL) { | |
20102 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20103 | SWIG_fail; | |
20104 | } | |
20105 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime, | |
20106 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20107 | SWIG_fail; | |
20108 | if (arg3 == NULL) { | |
20109 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20110 | SWIG_fail; | |
20111 | } | |
20112 | { | |
20113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20114 | result = (bool)((wxDateTime const *)arg1)->IsBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
20115 | ||
20116 | wxPyEndAllowThreads(__tstate); | |
20117 | if (PyErr_Occurred()) SWIG_fail; | |
20118 | } | |
20119 | { | |
20120 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20121 | } | |
20122 | return resultobj; | |
20123 | fail: | |
20124 | return NULL; | |
20125 | } | |
20126 | ||
20127 | ||
20128 | static PyObject *_wrap_DateTime_IsSameDate(PyObject *, PyObject *args, PyObject *kwargs) { | |
20129 | PyObject *resultobj; | |
20130 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20131 | wxDateTime *arg2 = 0 ; | |
20132 | bool result; | |
20133 | PyObject * obj0 = 0 ; | |
20134 | PyObject * obj1 = 0 ; | |
20135 | char *kwnames[] = { | |
20136 | (char *) "self",(char *) "dt", NULL | |
20137 | }; | |
20138 | ||
20139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameDate",kwnames,&obj0,&obj1)) goto fail; | |
20140 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20141 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20142 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20143 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20144 | SWIG_fail; | |
20145 | if (arg2 == NULL) { | |
20146 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20147 | SWIG_fail; | |
20148 | } | |
20149 | { | |
20150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20151 | result = (bool)((wxDateTime const *)arg1)->IsSameDate((wxDateTime const &)*arg2); | |
20152 | ||
20153 | wxPyEndAllowThreads(__tstate); | |
20154 | if (PyErr_Occurred()) SWIG_fail; | |
20155 | } | |
20156 | { | |
20157 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20158 | } | |
20159 | return resultobj; | |
20160 | fail: | |
20161 | return NULL; | |
20162 | } | |
20163 | ||
20164 | ||
20165 | static PyObject *_wrap_DateTime_IsSameTime(PyObject *, PyObject *args, PyObject *kwargs) { | |
20166 | PyObject *resultobj; | |
20167 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20168 | wxDateTime *arg2 = 0 ; | |
20169 | bool result; | |
20170 | PyObject * obj0 = 0 ; | |
20171 | PyObject * obj1 = 0 ; | |
20172 | char *kwnames[] = { | |
20173 | (char *) "self",(char *) "dt", NULL | |
20174 | }; | |
20175 | ||
20176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameTime",kwnames,&obj0,&obj1)) goto fail; | |
20177 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20179 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20180 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20181 | SWIG_fail; | |
20182 | if (arg2 == NULL) { | |
20183 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20184 | SWIG_fail; | |
20185 | } | |
20186 | { | |
20187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20188 | result = (bool)((wxDateTime const *)arg1)->IsSameTime((wxDateTime const &)*arg2); | |
20189 | ||
20190 | wxPyEndAllowThreads(__tstate); | |
20191 | if (PyErr_Occurred()) SWIG_fail; | |
20192 | } | |
20193 | { | |
20194 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20195 | } | |
20196 | return resultobj; | |
20197 | fail: | |
20198 | return NULL; | |
20199 | } | |
20200 | ||
20201 | ||
20202 | static PyObject *_wrap_DateTime_IsEqualUpTo(PyObject *, PyObject *args, PyObject *kwargs) { | |
20203 | PyObject *resultobj; | |
20204 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20205 | wxDateTime *arg2 = 0 ; | |
20206 | wxTimeSpan *arg3 = 0 ; | |
20207 | bool result; | |
20208 | PyObject * obj0 = 0 ; | |
20209 | PyObject * obj1 = 0 ; | |
20210 | PyObject * obj2 = 0 ; | |
20211 | char *kwnames[] = { | |
20212 | (char *) "self",(char *) "dt",(char *) "ts", NULL | |
20213 | }; | |
20214 | ||
20215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsEqualUpTo",kwnames,&obj0,&obj1,&obj2)) 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_wxDateTime, | |
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 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTimeSpan, | |
20226 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20227 | SWIG_fail; | |
20228 | if (arg3 == NULL) { | |
20229 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20230 | SWIG_fail; | |
20231 | } | |
20232 | { | |
20233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20234 | result = (bool)((wxDateTime const *)arg1)->IsEqualUpTo((wxDateTime const &)*arg2,(wxTimeSpan const &)*arg3); | |
20235 | ||
20236 | wxPyEndAllowThreads(__tstate); | |
20237 | if (PyErr_Occurred()) SWIG_fail; | |
20238 | } | |
20239 | { | |
20240 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20241 | } | |
20242 | return resultobj; | |
20243 | fail: | |
20244 | return NULL; | |
20245 | } | |
20246 | ||
20247 | ||
20248 | static PyObject *_wrap_DateTime_AddTS(PyObject *, PyObject *args, PyObject *kwargs) { | |
20249 | PyObject *resultobj; | |
20250 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20251 | wxTimeSpan *arg2 = 0 ; | |
20252 | wxDateTime *result; | |
20253 | PyObject * obj0 = 0 ; | |
20254 | PyObject * obj1 = 0 ; | |
20255 | char *kwnames[] = { | |
20256 | (char *) "self",(char *) "diff", NULL | |
20257 | }; | |
20258 | ||
20259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddTS",kwnames,&obj0,&obj1)) goto fail; | |
20260 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20262 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
20263 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20264 | SWIG_fail; | |
20265 | if (arg2 == NULL) { | |
20266 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20267 | SWIG_fail; | |
20268 | } | |
20269 | { | |
20270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20271 | { | |
20272 | wxDateTime &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2); | |
20273 | result = (wxDateTime *) &_result_ref; | |
20274 | } | |
20275 | ||
20276 | wxPyEndAllowThreads(__tstate); | |
20277 | if (PyErr_Occurred()) SWIG_fail; | |
20278 | } | |
20279 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
20280 | return resultobj; | |
20281 | fail: | |
20282 | return NULL; | |
20283 | } | |
20284 | ||
20285 | ||
20286 | static PyObject *_wrap_DateTime_AddDS(PyObject *, PyObject *args, PyObject *kwargs) { | |
20287 | PyObject *resultobj; | |
20288 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20289 | wxDateSpan *arg2 = 0 ; | |
20290 | wxDateTime *result; | |
20291 | PyObject * obj0 = 0 ; | |
20292 | PyObject * obj1 = 0 ; | |
20293 | char *kwnames[] = { | |
20294 | (char *) "self",(char *) "diff", NULL | |
20295 | }; | |
20296 | ||
20297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddDS",kwnames,&obj0,&obj1)) goto fail; | |
20298 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20300 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
20301 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20302 | SWIG_fail; | |
20303 | if (arg2 == NULL) { | |
20304 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20305 | SWIG_fail; | |
20306 | } | |
20307 | { | |
20308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20309 | { | |
20310 | wxDateTime &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2); | |
20311 | result = (wxDateTime *) &_result_ref; | |
20312 | } | |
20313 | ||
20314 | wxPyEndAllowThreads(__tstate); | |
20315 | if (PyErr_Occurred()) SWIG_fail; | |
20316 | } | |
20317 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
20318 | return resultobj; | |
20319 | fail: | |
20320 | return NULL; | |
20321 | } | |
20322 | ||
20323 | ||
20324 | static PyObject *_wrap_DateTime_SubtractTS(PyObject *, PyObject *args, PyObject *kwargs) { | |
20325 | PyObject *resultobj; | |
20326 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20327 | wxTimeSpan *arg2 = 0 ; | |
20328 | wxDateTime *result; | |
20329 | PyObject * obj0 = 0 ; | |
20330 | PyObject * obj1 = 0 ; | |
20331 | char *kwnames[] = { | |
20332 | (char *) "self",(char *) "diff", NULL | |
20333 | }; | |
20334 | ||
20335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractTS",kwnames,&obj0,&obj1)) goto fail; | |
20336 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20337 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20338 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
20339 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20340 | SWIG_fail; | |
20341 | if (arg2 == NULL) { | |
20342 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20343 | SWIG_fail; | |
20344 | } | |
20345 | { | |
20346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20347 | { | |
20348 | wxDateTime &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2); | |
20349 | result = (wxDateTime *) &_result_ref; | |
20350 | } | |
20351 | ||
20352 | wxPyEndAllowThreads(__tstate); | |
20353 | if (PyErr_Occurred()) SWIG_fail; | |
20354 | } | |
20355 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
20356 | return resultobj; | |
20357 | fail: | |
20358 | return NULL; | |
20359 | } | |
20360 | ||
20361 | ||
20362 | static PyObject *_wrap_DateTime_SubtractDS(PyObject *, PyObject *args, PyObject *kwargs) { | |
20363 | PyObject *resultobj; | |
20364 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20365 | wxDateSpan *arg2 = 0 ; | |
20366 | wxDateTime *result; | |
20367 | PyObject * obj0 = 0 ; | |
20368 | PyObject * obj1 = 0 ; | |
20369 | char *kwnames[] = { | |
20370 | (char *) "self",(char *) "diff", NULL | |
20371 | }; | |
20372 | ||
20373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractDS",kwnames,&obj0,&obj1)) goto fail; | |
20374 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20375 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20376 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
20377 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20378 | SWIG_fail; | |
20379 | if (arg2 == NULL) { | |
20380 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20381 | SWIG_fail; | |
20382 | } | |
20383 | { | |
20384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20385 | { | |
20386 | wxDateTime &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2); | |
20387 | result = (wxDateTime *) &_result_ref; | |
20388 | } | |
20389 | ||
20390 | wxPyEndAllowThreads(__tstate); | |
20391 | if (PyErr_Occurred()) SWIG_fail; | |
20392 | } | |
20393 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
20394 | return resultobj; | |
20395 | fail: | |
20396 | return NULL; | |
20397 | } | |
20398 | ||
20399 | ||
20400 | static PyObject *_wrap_DateTime_Subtract(PyObject *, PyObject *args, PyObject *kwargs) { | |
20401 | PyObject *resultobj; | |
20402 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20403 | wxDateTime *arg2 = 0 ; | |
20404 | wxTimeSpan result; | |
20405 | PyObject * obj0 = 0 ; | |
20406 | PyObject * obj1 = 0 ; | |
20407 | char *kwnames[] = { | |
20408 | (char *) "self",(char *) "dt", NULL | |
20409 | }; | |
20410 | ||
20411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
20412 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20413 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20414 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20415 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20416 | SWIG_fail; | |
20417 | if (arg2 == NULL) { | |
20418 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20419 | SWIG_fail; | |
20420 | } | |
20421 | { | |
20422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20423 | result = ((wxDateTime const *)arg1)->Subtract((wxDateTime const &)*arg2); | |
20424 | ||
20425 | wxPyEndAllowThreads(__tstate); | |
20426 | if (PyErr_Occurred()) SWIG_fail; | |
20427 | } | |
20428 | { | |
20429 | wxTimeSpan * resultptr; | |
20430 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
20431 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
20432 | } | |
20433 | return resultobj; | |
20434 | fail: | |
20435 | return NULL; | |
20436 | } | |
20437 | ||
20438 | ||
20439 | static PyObject *_wrap_DateTime___iadd____SWIG_0(PyObject *, PyObject *args) { | |
20440 | PyObject *resultobj; | |
20441 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20442 | wxTimeSpan *arg2 = 0 ; | |
20443 | wxDateTime *result; | |
20444 | PyObject * obj0 = 0 ; | |
20445 | PyObject * obj1 = 0 ; | |
20446 | ||
20447 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail; | |
20448 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20449 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
20450 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
20451 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20452 | SWIG_fail; | |
20453 | if (arg2 == NULL) { | |
20454 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20455 | SWIG_fail; | |
20456 | } | |
20457 | { | |
20458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20459 | { | |
20460 | wxDateTime &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2); | |
20461 | result = (wxDateTime *) &_result_ref; | |
20462 | } | |
20463 | ||
20464 | wxPyEndAllowThreads(__tstate); | |
20465 | if (PyErr_Occurred()) SWIG_fail; | |
20466 | } | |
20467 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
20468 | return resultobj; | |
20469 | fail: | |
20470 | return NULL; | |
20471 | } | |
20472 | ||
20473 | ||
20474 | static PyObject *_wrap_DateTime___iadd____SWIG_1(PyObject *, PyObject *args) { | |
20475 | PyObject *resultobj; | |
20476 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20477 | wxDateSpan *arg2 = 0 ; | |
20478 | wxDateTime *result; | |
20479 | PyObject * obj0 = 0 ; | |
20480 | PyObject * obj1 = 0 ; | |
20481 | ||
20482 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail; | |
20483 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20484 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
20485 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
20486 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20487 | SWIG_fail; | |
20488 | if (arg2 == NULL) { | |
20489 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20490 | SWIG_fail; | |
20491 | } | |
20492 | { | |
20493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20494 | { | |
20495 | wxDateTime &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2); | |
20496 | result = (wxDateTime *) &_result_ref; | |
20497 | } | |
20498 | ||
20499 | wxPyEndAllowThreads(__tstate); | |
20500 | if (PyErr_Occurred()) SWIG_fail; | |
20501 | } | |
20502 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
20503 | return resultobj; | |
20504 | fail: | |
20505 | return NULL; | |
20506 | } | |
20507 | ||
20508 | ||
20509 | static PyObject *_wrap_DateTime___iadd__(PyObject *self, PyObject *args) { | |
20510 | int argc; | |
20511 | PyObject *argv[3]; | |
20512 | int ii; | |
20513 | ||
20514 | argc = PyObject_Length(args); | |
20515 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
20516 | argv[ii] = PyTuple_GetItem(args,ii); | |
20517 | } | |
20518 | if (argc == 2) { | |
20519 | int _v; | |
20520 | { | |
20521 | void *ptr; | |
20522 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20523 | _v = 0; | |
20524 | PyErr_Clear(); | |
20525 | } else { | |
20526 | _v = 1; | |
20527 | } | |
20528 | } | |
20529 | if (_v) { | |
20530 | { | |
20531 | void *ptr; | |
20532 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
20533 | _v = 0; | |
20534 | PyErr_Clear(); | |
20535 | } else { | |
20536 | _v = 1; | |
20537 | } | |
20538 | } | |
20539 | if (_v) { | |
20540 | return _wrap_DateTime___iadd____SWIG_0(self,args); | |
20541 | } | |
20542 | } | |
20543 | } | |
20544 | if (argc == 2) { | |
20545 | int _v; | |
20546 | { | |
20547 | void *ptr; | |
20548 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20549 | _v = 0; | |
20550 | PyErr_Clear(); | |
20551 | } else { | |
20552 | _v = 1; | |
20553 | } | |
20554 | } | |
20555 | if (_v) { | |
20556 | { | |
20557 | void *ptr; | |
20558 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
20559 | _v = 0; | |
20560 | PyErr_Clear(); | |
20561 | } else { | |
20562 | _v = 1; | |
20563 | } | |
20564 | } | |
20565 | if (_v) { | |
20566 | return _wrap_DateTime___iadd____SWIG_1(self,args); | |
20567 | } | |
20568 | } | |
20569 | } | |
20570 | ||
20571 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___iadd__'"); | |
20572 | return NULL; | |
20573 | } | |
20574 | ||
20575 | ||
20576 | static PyObject *_wrap_DateTime___isub____SWIG_0(PyObject *, PyObject *args) { | |
20577 | PyObject *resultobj; | |
20578 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20579 | wxTimeSpan *arg2 = 0 ; | |
20580 | wxDateTime *result; | |
20581 | PyObject * obj0 = 0 ; | |
20582 | PyObject * obj1 = 0 ; | |
20583 | ||
20584 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail; | |
20585 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20586 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
20587 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
20588 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20589 | SWIG_fail; | |
20590 | if (arg2 == NULL) { | |
20591 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20592 | SWIG_fail; | |
20593 | } | |
20594 | { | |
20595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20596 | { | |
20597 | wxDateTime &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2); | |
20598 | result = (wxDateTime *) &_result_ref; | |
20599 | } | |
20600 | ||
20601 | wxPyEndAllowThreads(__tstate); | |
20602 | if (PyErr_Occurred()) SWIG_fail; | |
20603 | } | |
20604 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
20605 | return resultobj; | |
20606 | fail: | |
20607 | return NULL; | |
20608 | } | |
20609 | ||
20610 | ||
20611 | static PyObject *_wrap_DateTime___isub____SWIG_1(PyObject *, PyObject *args) { | |
20612 | PyObject *resultobj; | |
20613 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20614 | wxDateSpan *arg2 = 0 ; | |
20615 | wxDateTime *result; | |
20616 | PyObject * obj0 = 0 ; | |
20617 | PyObject * obj1 = 0 ; | |
20618 | ||
20619 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail; | |
20620 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20621 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
20622 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
20623 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20624 | SWIG_fail; | |
20625 | if (arg2 == NULL) { | |
20626 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20627 | SWIG_fail; | |
20628 | } | |
20629 | { | |
20630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20631 | { | |
20632 | wxDateTime &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2); | |
20633 | result = (wxDateTime *) &_result_ref; | |
20634 | } | |
20635 | ||
20636 | wxPyEndAllowThreads(__tstate); | |
20637 | if (PyErr_Occurred()) SWIG_fail; | |
20638 | } | |
20639 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
20640 | return resultobj; | |
20641 | fail: | |
20642 | return NULL; | |
20643 | } | |
20644 | ||
20645 | ||
20646 | static PyObject *_wrap_DateTime___isub__(PyObject *self, PyObject *args) { | |
20647 | int argc; | |
20648 | PyObject *argv[3]; | |
20649 | int ii; | |
20650 | ||
20651 | argc = PyObject_Length(args); | |
20652 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
20653 | argv[ii] = PyTuple_GetItem(args,ii); | |
20654 | } | |
20655 | if (argc == 2) { | |
20656 | int _v; | |
20657 | { | |
20658 | void *ptr; | |
20659 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20660 | _v = 0; | |
20661 | PyErr_Clear(); | |
20662 | } else { | |
20663 | _v = 1; | |
20664 | } | |
20665 | } | |
20666 | if (_v) { | |
20667 | { | |
20668 | void *ptr; | |
20669 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
20670 | _v = 0; | |
20671 | PyErr_Clear(); | |
20672 | } else { | |
20673 | _v = 1; | |
20674 | } | |
20675 | } | |
20676 | if (_v) { | |
20677 | return _wrap_DateTime___isub____SWIG_0(self,args); | |
20678 | } | |
20679 | } | |
20680 | } | |
20681 | if (argc == 2) { | |
20682 | int _v; | |
20683 | { | |
20684 | void *ptr; | |
20685 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20686 | _v = 0; | |
20687 | PyErr_Clear(); | |
20688 | } else { | |
20689 | _v = 1; | |
20690 | } | |
20691 | } | |
20692 | if (_v) { | |
20693 | { | |
20694 | void *ptr; | |
20695 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
20696 | _v = 0; | |
20697 | PyErr_Clear(); | |
20698 | } else { | |
20699 | _v = 1; | |
20700 | } | |
20701 | } | |
20702 | if (_v) { | |
20703 | return _wrap_DateTime___isub____SWIG_1(self,args); | |
20704 | } | |
20705 | } | |
20706 | } | |
20707 | ||
20708 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___isub__'"); | |
20709 | return NULL; | |
20710 | } | |
20711 | ||
20712 | ||
20713 | static PyObject *_wrap_DateTime___add____SWIG_0(PyObject *, PyObject *args) { | |
20714 | PyObject *resultobj; | |
20715 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20716 | wxTimeSpan *arg2 = 0 ; | |
20717 | wxDateTime result; | |
20718 | PyObject * obj0 = 0 ; | |
20719 | PyObject * obj1 = 0 ; | |
20720 | ||
20721 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail; | |
20722 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20724 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
20725 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20726 | SWIG_fail; | |
20727 | if (arg2 == NULL) { | |
20728 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20729 | SWIG_fail; | |
20730 | } | |
20731 | { | |
20732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20733 | result = wxDateTime___add____SWIG_0(arg1,(wxTimeSpan const &)*arg2); | |
20734 | ||
20735 | wxPyEndAllowThreads(__tstate); | |
20736 | if (PyErr_Occurred()) SWIG_fail; | |
20737 | } | |
20738 | { | |
20739 | wxDateTime * resultptr; | |
20740 | resultptr = new wxDateTime((wxDateTime &) result); | |
20741 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
20742 | } | |
20743 | return resultobj; | |
20744 | fail: | |
20745 | return NULL; | |
20746 | } | |
20747 | ||
20748 | ||
20749 | static PyObject *_wrap_DateTime___add____SWIG_1(PyObject *, PyObject *args) { | |
20750 | PyObject *resultobj; | |
20751 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20752 | wxDateSpan *arg2 = 0 ; | |
20753 | wxDateTime result; | |
20754 | PyObject * obj0 = 0 ; | |
20755 | PyObject * obj1 = 0 ; | |
20756 | ||
20757 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail; | |
20758 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20759 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20760 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
20761 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20762 | SWIG_fail; | |
20763 | if (arg2 == NULL) { | |
20764 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20765 | SWIG_fail; | |
20766 | } | |
20767 | { | |
20768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20769 | result = wxDateTime___add____SWIG_1(arg1,(wxDateSpan const &)*arg2); | |
20770 | ||
20771 | wxPyEndAllowThreads(__tstate); | |
20772 | if (PyErr_Occurred()) SWIG_fail; | |
20773 | } | |
20774 | { | |
20775 | wxDateTime * resultptr; | |
20776 | resultptr = new wxDateTime((wxDateTime &) result); | |
20777 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
20778 | } | |
20779 | return resultobj; | |
20780 | fail: | |
20781 | return NULL; | |
20782 | } | |
20783 | ||
20784 | ||
20785 | static PyObject *_wrap_DateTime___add__(PyObject *self, PyObject *args) { | |
20786 | int argc; | |
20787 | PyObject *argv[3]; | |
20788 | int ii; | |
20789 | ||
20790 | argc = PyObject_Length(args); | |
20791 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
20792 | argv[ii] = PyTuple_GetItem(args,ii); | |
20793 | } | |
20794 | if (argc == 2) { | |
20795 | int _v; | |
20796 | { | |
20797 | void *ptr; | |
20798 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20799 | _v = 0; | |
20800 | PyErr_Clear(); | |
20801 | } else { | |
20802 | _v = 1; | |
20803 | } | |
20804 | } | |
20805 | if (_v) { | |
20806 | { | |
20807 | void *ptr; | |
20808 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
20809 | _v = 0; | |
20810 | PyErr_Clear(); | |
20811 | } else { | |
20812 | _v = 1; | |
20813 | } | |
20814 | } | |
20815 | if (_v) { | |
20816 | return _wrap_DateTime___add____SWIG_0(self,args); | |
20817 | } | |
20818 | } | |
20819 | } | |
20820 | if (argc == 2) { | |
20821 | int _v; | |
20822 | { | |
20823 | void *ptr; | |
20824 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20825 | _v = 0; | |
20826 | PyErr_Clear(); | |
20827 | } else { | |
20828 | _v = 1; | |
20829 | } | |
20830 | } | |
20831 | if (_v) { | |
20832 | { | |
20833 | void *ptr; | |
20834 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
20835 | _v = 0; | |
20836 | PyErr_Clear(); | |
20837 | } else { | |
20838 | _v = 1; | |
20839 | } | |
20840 | } | |
20841 | if (_v) { | |
20842 | return _wrap_DateTime___add____SWIG_1(self,args); | |
20843 | } | |
20844 | } | |
20845 | } | |
20846 | ||
20847 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___add__'"); | |
20848 | return NULL; | |
20849 | } | |
20850 | ||
20851 | ||
20852 | static PyObject *_wrap_DateTime___sub____SWIG_0(PyObject *, PyObject *args) { | |
20853 | PyObject *resultobj; | |
20854 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20855 | wxDateTime *arg2 = 0 ; | |
20856 | wxTimeSpan result; | |
20857 | PyObject * obj0 = 0 ; | |
20858 | PyObject * obj1 = 0 ; | |
20859 | ||
20860 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
20861 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20862 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20863 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20864 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20865 | SWIG_fail; | |
20866 | if (arg2 == NULL) { | |
20867 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20868 | SWIG_fail; | |
20869 | } | |
20870 | { | |
20871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20872 | result = wxDateTime___sub____SWIG_0(arg1,(wxDateTime const &)*arg2); | |
20873 | ||
20874 | wxPyEndAllowThreads(__tstate); | |
20875 | if (PyErr_Occurred()) SWIG_fail; | |
20876 | } | |
20877 | { | |
20878 | wxTimeSpan * resultptr; | |
20879 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
20880 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
20881 | } | |
20882 | return resultobj; | |
20883 | fail: | |
20884 | return NULL; | |
20885 | } | |
20886 | ||
20887 | ||
20888 | static PyObject *_wrap_DateTime___sub____SWIG_1(PyObject *, PyObject *args) { | |
20889 | PyObject *resultobj; | |
20890 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20891 | wxTimeSpan *arg2 = 0 ; | |
20892 | wxDateTime result; | |
20893 | PyObject * obj0 = 0 ; | |
20894 | PyObject * obj1 = 0 ; | |
20895 | ||
20896 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
20897 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20898 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20899 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
20900 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20901 | SWIG_fail; | |
20902 | if (arg2 == NULL) { | |
20903 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20904 | SWIG_fail; | |
20905 | } | |
20906 | { | |
20907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20908 | result = wxDateTime___sub____SWIG_1(arg1,(wxTimeSpan const &)*arg2); | |
20909 | ||
20910 | wxPyEndAllowThreads(__tstate); | |
20911 | if (PyErr_Occurred()) SWIG_fail; | |
20912 | } | |
20913 | { | |
20914 | wxDateTime * resultptr; | |
20915 | resultptr = new wxDateTime((wxDateTime &) result); | |
20916 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
20917 | } | |
20918 | return resultobj; | |
20919 | fail: | |
20920 | return NULL; | |
20921 | } | |
20922 | ||
20923 | ||
20924 | static PyObject *_wrap_DateTime___sub____SWIG_2(PyObject *, PyObject *args) { | |
20925 | PyObject *resultobj; | |
20926 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20927 | wxDateSpan *arg2 = 0 ; | |
20928 | wxDateTime result; | |
20929 | PyObject * obj0 = 0 ; | |
20930 | PyObject * obj1 = 0 ; | |
20931 | ||
20932 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
20933 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20934 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20935 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
20936 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20937 | SWIG_fail; | |
20938 | if (arg2 == NULL) { | |
20939 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20940 | SWIG_fail; | |
20941 | } | |
20942 | { | |
20943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20944 | result = wxDateTime___sub____SWIG_2(arg1,(wxDateSpan const &)*arg2); | |
20945 | ||
20946 | wxPyEndAllowThreads(__tstate); | |
20947 | if (PyErr_Occurred()) SWIG_fail; | |
20948 | } | |
20949 | { | |
20950 | wxDateTime * resultptr; | |
20951 | resultptr = new wxDateTime((wxDateTime &) result); | |
20952 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
20953 | } | |
20954 | return resultobj; | |
20955 | fail: | |
20956 | return NULL; | |
20957 | } | |
20958 | ||
20959 | ||
20960 | static PyObject *_wrap_DateTime___sub__(PyObject *self, PyObject *args) { | |
20961 | int argc; | |
20962 | PyObject *argv[3]; | |
20963 | int ii; | |
20964 | ||
20965 | argc = PyObject_Length(args); | |
20966 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
20967 | argv[ii] = PyTuple_GetItem(args,ii); | |
20968 | } | |
20969 | if (argc == 2) { | |
20970 | int _v; | |
20971 | { | |
20972 | void *ptr; | |
20973 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20974 | _v = 0; | |
20975 | PyErr_Clear(); | |
20976 | } else { | |
20977 | _v = 1; | |
20978 | } | |
20979 | } | |
20980 | if (_v) { | |
20981 | { | |
20982 | void *ptr; | |
20983 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20984 | _v = 0; | |
20985 | PyErr_Clear(); | |
20986 | } else { | |
20987 | _v = 1; | |
20988 | } | |
20989 | } | |
20990 | if (_v) { | |
20991 | return _wrap_DateTime___sub____SWIG_0(self,args); | |
20992 | } | |
20993 | } | |
20994 | } | |
20995 | if (argc == 2) { | |
20996 | int _v; | |
20997 | { | |
20998 | void *ptr; | |
20999 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
21000 | _v = 0; | |
21001 | PyErr_Clear(); | |
21002 | } else { | |
21003 | _v = 1; | |
21004 | } | |
21005 | } | |
21006 | if (_v) { | |
21007 | { | |
21008 | void *ptr; | |
21009 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
21010 | _v = 0; | |
21011 | PyErr_Clear(); | |
21012 | } else { | |
21013 | _v = 1; | |
21014 | } | |
21015 | } | |
21016 | if (_v) { | |
21017 | return _wrap_DateTime___sub____SWIG_1(self,args); | |
21018 | } | |
21019 | } | |
21020 | } | |
21021 | if (argc == 2) { | |
21022 | int _v; | |
21023 | { | |
21024 | void *ptr; | |
21025 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
21026 | _v = 0; | |
21027 | PyErr_Clear(); | |
21028 | } else { | |
21029 | _v = 1; | |
21030 | } | |
21031 | } | |
21032 | if (_v) { | |
21033 | { | |
21034 | void *ptr; | |
21035 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
21036 | _v = 0; | |
21037 | PyErr_Clear(); | |
21038 | } else { | |
21039 | _v = 1; | |
21040 | } | |
21041 | } | |
21042 | if (_v) { | |
21043 | return _wrap_DateTime___sub____SWIG_2(self,args); | |
21044 | } | |
21045 | } | |
21046 | } | |
21047 | ||
21048 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___sub__'"); | |
21049 | return NULL; | |
21050 | } | |
21051 | ||
21052 | ||
21053 | static PyObject *_wrap_DateTime___lt__(PyObject *, PyObject *args) { | |
21054 | PyObject *resultobj; | |
21055 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21056 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
21057 | bool result; | |
21058 | PyObject * obj0 = 0 ; | |
21059 | PyObject * obj1 = 0 ; | |
21060 | ||
21061 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___lt__",&obj0,&obj1)) goto fail; | |
21062 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21063 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21064 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
21065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21066 | { | |
21067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21068 | result = (bool)wxDateTime___lt__(arg1,(wxDateTime const *)arg2); | |
21069 | ||
21070 | wxPyEndAllowThreads(__tstate); | |
21071 | if (PyErr_Occurred()) SWIG_fail; | |
21072 | } | |
21073 | { | |
21074 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21075 | } | |
21076 | return resultobj; | |
21077 | fail: | |
21078 | return NULL; | |
21079 | } | |
21080 | ||
21081 | ||
21082 | static PyObject *_wrap_DateTime___le__(PyObject *, PyObject *args) { | |
21083 | PyObject *resultobj; | |
21084 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21085 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
21086 | bool result; | |
21087 | PyObject * obj0 = 0 ; | |
21088 | PyObject * obj1 = 0 ; | |
21089 | ||
21090 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___le__",&obj0,&obj1)) goto fail; | |
21091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21093 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
21094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21095 | { | |
21096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21097 | result = (bool)wxDateTime___le__(arg1,(wxDateTime const *)arg2); | |
21098 | ||
21099 | wxPyEndAllowThreads(__tstate); | |
21100 | if (PyErr_Occurred()) SWIG_fail; | |
21101 | } | |
21102 | { | |
21103 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21104 | } | |
21105 | return resultobj; | |
21106 | fail: | |
21107 | return NULL; | |
21108 | } | |
21109 | ||
21110 | ||
21111 | static PyObject *_wrap_DateTime___gt__(PyObject *, PyObject *args) { | |
21112 | PyObject *resultobj; | |
21113 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21114 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
21115 | bool result; | |
21116 | PyObject * obj0 = 0 ; | |
21117 | PyObject * obj1 = 0 ; | |
21118 | ||
21119 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___gt__",&obj0,&obj1)) goto fail; | |
21120 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21121 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21122 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
21123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21124 | { | |
21125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21126 | result = (bool)wxDateTime___gt__(arg1,(wxDateTime const *)arg2); | |
21127 | ||
21128 | wxPyEndAllowThreads(__tstate); | |
21129 | if (PyErr_Occurred()) SWIG_fail; | |
21130 | } | |
21131 | { | |
21132 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21133 | } | |
21134 | return resultobj; | |
21135 | fail: | |
21136 | return NULL; | |
21137 | } | |
21138 | ||
21139 | ||
21140 | static PyObject *_wrap_DateTime___ge__(PyObject *, PyObject *args) { | |
21141 | PyObject *resultobj; | |
21142 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21143 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
21144 | bool result; | |
21145 | PyObject * obj0 = 0 ; | |
21146 | PyObject * obj1 = 0 ; | |
21147 | ||
21148 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ge__",&obj0,&obj1)) goto fail; | |
21149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21151 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
21152 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21153 | { | |
21154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21155 | result = (bool)wxDateTime___ge__(arg1,(wxDateTime const *)arg2); | |
21156 | ||
21157 | wxPyEndAllowThreads(__tstate); | |
21158 | if (PyErr_Occurred()) SWIG_fail; | |
21159 | } | |
21160 | { | |
21161 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21162 | } | |
21163 | return resultobj; | |
21164 | fail: | |
21165 | return NULL; | |
21166 | } | |
21167 | ||
21168 | ||
21169 | static PyObject *_wrap_DateTime___eq__(PyObject *, PyObject *args) { | |
21170 | PyObject *resultobj; | |
21171 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21172 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
21173 | bool result; | |
21174 | PyObject * obj0 = 0 ; | |
21175 | PyObject * obj1 = 0 ; | |
21176 | ||
21177 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___eq__",&obj0,&obj1)) goto fail; | |
21178 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21179 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21180 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
21181 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21182 | { | |
21183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21184 | result = (bool)wxDateTime___eq__(arg1,(wxDateTime const *)arg2); | |
21185 | ||
21186 | wxPyEndAllowThreads(__tstate); | |
21187 | if (PyErr_Occurred()) SWIG_fail; | |
21188 | } | |
21189 | { | |
21190 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21191 | } | |
21192 | return resultobj; | |
21193 | fail: | |
21194 | return NULL; | |
21195 | } | |
21196 | ||
21197 | ||
21198 | static PyObject *_wrap_DateTime___ne__(PyObject *, PyObject *args) { | |
21199 | PyObject *resultobj; | |
21200 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21201 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
21202 | bool result; | |
21203 | PyObject * obj0 = 0 ; | |
21204 | PyObject * obj1 = 0 ; | |
21205 | ||
21206 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ne__",&obj0,&obj1)) goto fail; | |
21207 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21208 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21209 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
21210 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21211 | { | |
21212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21213 | result = (bool)wxDateTime___ne__(arg1,(wxDateTime const *)arg2); | |
21214 | ||
21215 | wxPyEndAllowThreads(__tstate); | |
21216 | if (PyErr_Occurred()) SWIG_fail; | |
21217 | } | |
21218 | { | |
21219 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21220 | } | |
21221 | return resultobj; | |
21222 | fail: | |
21223 | return NULL; | |
21224 | } | |
21225 | ||
21226 | ||
21227 | static PyObject *_wrap_DateTime_ParseRfc822Date(PyObject *, PyObject *args, PyObject *kwargs) { | |
21228 | PyObject *resultobj; | |
21229 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21230 | wxString *arg2 = 0 ; | |
21231 | int result; | |
21232 | bool temp2 = false ; | |
21233 | PyObject * obj0 = 0 ; | |
21234 | PyObject * obj1 = 0 ; | |
21235 | char *kwnames[] = { | |
21236 | (char *) "self",(char *) "date", NULL | |
21237 | }; | |
21238 | ||
21239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseRfc822Date",kwnames,&obj0,&obj1)) goto fail; | |
21240 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21241 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21242 | { | |
21243 | arg2 = wxString_in_helper(obj1); | |
21244 | if (arg2 == NULL) SWIG_fail; | |
21245 | temp2 = true; | |
21246 | } | |
21247 | { | |
21248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21249 | result = (int)wxDateTime_ParseRfc822Date(arg1,(wxString const &)*arg2); | |
21250 | ||
21251 | wxPyEndAllowThreads(__tstate); | |
21252 | if (PyErr_Occurred()) SWIG_fail; | |
21253 | } | |
21254 | resultobj = SWIG_From_int((int)result); | |
21255 | { | |
21256 | if (temp2) | |
21257 | delete arg2; | |
21258 | } | |
21259 | return resultobj; | |
21260 | fail: | |
21261 | { | |
21262 | if (temp2) | |
21263 | delete arg2; | |
21264 | } | |
21265 | return NULL; | |
21266 | } | |
21267 | ||
21268 | ||
21269 | static PyObject *_wrap_DateTime_ParseFormat(PyObject *, PyObject *args, PyObject *kwargs) { | |
21270 | PyObject *resultobj; | |
21271 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21272 | wxString *arg2 = 0 ; | |
21273 | wxString const &arg3_defvalue = wxPyDateFormatStr ; | |
21274 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
21275 | wxDateTime const &arg4_defvalue = wxDefaultDateTime ; | |
21276 | wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ; | |
21277 | int result; | |
21278 | bool temp2 = false ; | |
21279 | bool temp3 = false ; | |
21280 | PyObject * obj0 = 0 ; | |
21281 | PyObject * obj1 = 0 ; | |
21282 | PyObject * obj2 = 0 ; | |
21283 | PyObject * obj3 = 0 ; | |
21284 | char *kwnames[] = { | |
21285 | (char *) "self",(char *) "date",(char *) "format",(char *) "dateDef", NULL | |
21286 | }; | |
21287 | ||
21288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_ParseFormat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
21289 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21290 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21291 | { | |
21292 | arg2 = wxString_in_helper(obj1); | |
21293 | if (arg2 == NULL) SWIG_fail; | |
21294 | temp2 = true; | |
21295 | } | |
21296 | if (obj2) { | |
21297 | { | |
21298 | arg3 = wxString_in_helper(obj2); | |
21299 | if (arg3 == NULL) SWIG_fail; | |
21300 | temp3 = true; | |
21301 | } | |
21302 | } | |
21303 | if (obj3) { | |
21304 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDateTime, | |
21305 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21306 | SWIG_fail; | |
21307 | if (arg4 == NULL) { | |
21308 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21309 | SWIG_fail; | |
21310 | } | |
21311 | } | |
21312 | { | |
21313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21314 | result = (int)wxDateTime_ParseFormat(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxDateTime const &)*arg4); | |
21315 | ||
21316 | wxPyEndAllowThreads(__tstate); | |
21317 | if (PyErr_Occurred()) SWIG_fail; | |
21318 | } | |
21319 | resultobj = SWIG_From_int((int)result); | |
21320 | { | |
21321 | if (temp2) | |
21322 | delete arg2; | |
21323 | } | |
21324 | { | |
21325 | if (temp3) | |
21326 | delete arg3; | |
21327 | } | |
21328 | return resultobj; | |
21329 | fail: | |
21330 | { | |
21331 | if (temp2) | |
21332 | delete arg2; | |
21333 | } | |
21334 | { | |
21335 | if (temp3) | |
21336 | delete arg3; | |
21337 | } | |
21338 | return NULL; | |
21339 | } | |
21340 | ||
21341 | ||
21342 | static PyObject *_wrap_DateTime_ParseDateTime(PyObject *, PyObject *args, PyObject *kwargs) { | |
21343 | PyObject *resultobj; | |
21344 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21345 | wxString *arg2 = 0 ; | |
21346 | int result; | |
21347 | bool temp2 = false ; | |
21348 | PyObject * obj0 = 0 ; | |
21349 | PyObject * obj1 = 0 ; | |
21350 | char *kwnames[] = { | |
21351 | (char *) "self",(char *) "datetime", NULL | |
21352 | }; | |
21353 | ||
21354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDateTime",kwnames,&obj0,&obj1)) goto fail; | |
21355 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21356 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21357 | { | |
21358 | arg2 = wxString_in_helper(obj1); | |
21359 | if (arg2 == NULL) SWIG_fail; | |
21360 | temp2 = true; | |
21361 | } | |
21362 | { | |
21363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21364 | result = (int)wxDateTime_ParseDateTime(arg1,(wxString const &)*arg2); | |
21365 | ||
21366 | wxPyEndAllowThreads(__tstate); | |
21367 | if (PyErr_Occurred()) SWIG_fail; | |
21368 | } | |
21369 | resultobj = SWIG_From_int((int)result); | |
21370 | { | |
21371 | if (temp2) | |
21372 | delete arg2; | |
21373 | } | |
21374 | return resultobj; | |
21375 | fail: | |
21376 | { | |
21377 | if (temp2) | |
21378 | delete arg2; | |
21379 | } | |
21380 | return NULL; | |
21381 | } | |
21382 | ||
21383 | ||
21384 | static PyObject *_wrap_DateTime_ParseDate(PyObject *, PyObject *args, PyObject *kwargs) { | |
21385 | PyObject *resultobj; | |
21386 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21387 | wxString *arg2 = 0 ; | |
21388 | int result; | |
21389 | bool temp2 = false ; | |
21390 | PyObject * obj0 = 0 ; | |
21391 | PyObject * obj1 = 0 ; | |
21392 | char *kwnames[] = { | |
21393 | (char *) "self",(char *) "date", NULL | |
21394 | }; | |
21395 | ||
21396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDate",kwnames,&obj0,&obj1)) goto fail; | |
21397 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21399 | { | |
21400 | arg2 = wxString_in_helper(obj1); | |
21401 | if (arg2 == NULL) SWIG_fail; | |
21402 | temp2 = true; | |
21403 | } | |
21404 | { | |
21405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21406 | result = (int)wxDateTime_ParseDate(arg1,(wxString const &)*arg2); | |
21407 | ||
21408 | wxPyEndAllowThreads(__tstate); | |
21409 | if (PyErr_Occurred()) SWIG_fail; | |
21410 | } | |
21411 | resultobj = SWIG_From_int((int)result); | |
21412 | { | |
21413 | if (temp2) | |
21414 | delete arg2; | |
21415 | } | |
21416 | return resultobj; | |
21417 | fail: | |
21418 | { | |
21419 | if (temp2) | |
21420 | delete arg2; | |
21421 | } | |
21422 | return NULL; | |
21423 | } | |
21424 | ||
21425 | ||
21426 | static PyObject *_wrap_DateTime_ParseTime(PyObject *, PyObject *args, PyObject *kwargs) { | |
21427 | PyObject *resultobj; | |
21428 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21429 | wxString *arg2 = 0 ; | |
21430 | int result; | |
21431 | bool temp2 = false ; | |
21432 | PyObject * obj0 = 0 ; | |
21433 | PyObject * obj1 = 0 ; | |
21434 | char *kwnames[] = { | |
21435 | (char *) "self",(char *) "time", NULL | |
21436 | }; | |
21437 | ||
21438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseTime",kwnames,&obj0,&obj1)) goto fail; | |
21439 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21440 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21441 | { | |
21442 | arg2 = wxString_in_helper(obj1); | |
21443 | if (arg2 == NULL) SWIG_fail; | |
21444 | temp2 = true; | |
21445 | } | |
21446 | { | |
21447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21448 | result = (int)wxDateTime_ParseTime(arg1,(wxString const &)*arg2); | |
21449 | ||
21450 | wxPyEndAllowThreads(__tstate); | |
21451 | if (PyErr_Occurred()) SWIG_fail; | |
21452 | } | |
21453 | resultobj = SWIG_From_int((int)result); | |
21454 | { | |
21455 | if (temp2) | |
21456 | delete arg2; | |
21457 | } | |
21458 | return resultobj; | |
21459 | fail: | |
21460 | { | |
21461 | if (temp2) | |
21462 | delete arg2; | |
21463 | } | |
21464 | return NULL; | |
21465 | } | |
21466 | ||
21467 | ||
21468 | static PyObject *_wrap_DateTime_Format(PyObject *, PyObject *args, PyObject *kwargs) { | |
21469 | PyObject *resultobj; | |
21470 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21471 | wxString const &arg2_defvalue = wxPyDateFormatStr ; | |
21472 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
21473 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
21474 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
21475 | wxString result; | |
21476 | bool temp2 = false ; | |
21477 | bool temp3 = false ; | |
21478 | PyObject * obj0 = 0 ; | |
21479 | PyObject * obj1 = 0 ; | |
21480 | PyObject * obj2 = 0 ; | |
21481 | char *kwnames[] = { | |
21482 | (char *) "self",(char *) "format",(char *) "tz", NULL | |
21483 | }; | |
21484 | ||
21485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_Format",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21486 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21488 | if (obj1) { | |
21489 | { | |
21490 | arg2 = wxString_in_helper(obj1); | |
21491 | if (arg2 == NULL) SWIG_fail; | |
21492 | temp2 = true; | |
21493 | } | |
21494 | } | |
21495 | if (obj2) { | |
21496 | { | |
21497 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
21498 | temp3 = true; | |
21499 | } | |
21500 | } | |
21501 | { | |
21502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21503 | result = ((wxDateTime const *)arg1)->Format((wxString const &)*arg2,(wxDateTime::TimeZone const &)*arg3); | |
21504 | ||
21505 | wxPyEndAllowThreads(__tstate); | |
21506 | if (PyErr_Occurred()) SWIG_fail; | |
21507 | } | |
21508 | { | |
21509 | #if wxUSE_UNICODE | |
21510 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21511 | #else | |
21512 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21513 | #endif | |
21514 | } | |
21515 | { | |
21516 | if (temp2) | |
21517 | delete arg2; | |
21518 | } | |
21519 | { | |
21520 | if (temp3) delete arg3; | |
21521 | } | |
21522 | return resultobj; | |
21523 | fail: | |
21524 | { | |
21525 | if (temp2) | |
21526 | delete arg2; | |
21527 | } | |
21528 | { | |
21529 | if (temp3) delete arg3; | |
21530 | } | |
21531 | return NULL; | |
21532 | } | |
21533 | ||
21534 | ||
21535 | static PyObject *_wrap_DateTime_FormatDate(PyObject *, PyObject *args, PyObject *kwargs) { | |
21536 | PyObject *resultobj; | |
21537 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21538 | wxString result; | |
21539 | PyObject * obj0 = 0 ; | |
21540 | char *kwnames[] = { | |
21541 | (char *) "self", NULL | |
21542 | }; | |
21543 | ||
21544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatDate",kwnames,&obj0)) goto fail; | |
21545 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21547 | { | |
21548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21549 | result = ((wxDateTime const *)arg1)->FormatDate(); | |
21550 | ||
21551 | wxPyEndAllowThreads(__tstate); | |
21552 | if (PyErr_Occurred()) SWIG_fail; | |
21553 | } | |
21554 | { | |
21555 | #if wxUSE_UNICODE | |
21556 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21557 | #else | |
21558 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21559 | #endif | |
21560 | } | |
21561 | return resultobj; | |
21562 | fail: | |
21563 | return NULL; | |
21564 | } | |
21565 | ||
21566 | ||
21567 | static PyObject *_wrap_DateTime_FormatTime(PyObject *, PyObject *args, PyObject *kwargs) { | |
21568 | PyObject *resultobj; | |
21569 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21570 | wxString result; | |
21571 | PyObject * obj0 = 0 ; | |
21572 | char *kwnames[] = { | |
21573 | (char *) "self", NULL | |
21574 | }; | |
21575 | ||
21576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatTime",kwnames,&obj0)) goto fail; | |
21577 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21578 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21579 | { | |
21580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21581 | result = ((wxDateTime const *)arg1)->FormatTime(); | |
21582 | ||
21583 | wxPyEndAllowThreads(__tstate); | |
21584 | if (PyErr_Occurred()) SWIG_fail; | |
21585 | } | |
21586 | { | |
21587 | #if wxUSE_UNICODE | |
21588 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21589 | #else | |
21590 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21591 | #endif | |
21592 | } | |
21593 | return resultobj; | |
21594 | fail: | |
21595 | return NULL; | |
21596 | } | |
21597 | ||
21598 | ||
21599 | static PyObject *_wrap_DateTime_FormatISODate(PyObject *, PyObject *args, PyObject *kwargs) { | |
21600 | PyObject *resultobj; | |
21601 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21602 | wxString result; | |
21603 | PyObject * obj0 = 0 ; | |
21604 | char *kwnames[] = { | |
21605 | (char *) "self", NULL | |
21606 | }; | |
21607 | ||
21608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISODate",kwnames,&obj0)) goto fail; | |
21609 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21611 | { | |
21612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21613 | result = ((wxDateTime const *)arg1)->FormatISODate(); | |
21614 | ||
21615 | wxPyEndAllowThreads(__tstate); | |
21616 | if (PyErr_Occurred()) SWIG_fail; | |
21617 | } | |
21618 | { | |
21619 | #if wxUSE_UNICODE | |
21620 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21621 | #else | |
21622 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21623 | #endif | |
21624 | } | |
21625 | return resultobj; | |
21626 | fail: | |
21627 | return NULL; | |
21628 | } | |
21629 | ||
21630 | ||
21631 | static PyObject *_wrap_DateTime_FormatISOTime(PyObject *, PyObject *args, PyObject *kwargs) { | |
21632 | PyObject *resultobj; | |
21633 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21634 | wxString result; | |
21635 | PyObject * obj0 = 0 ; | |
21636 | char *kwnames[] = { | |
21637 | (char *) "self", NULL | |
21638 | }; | |
21639 | ||
21640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISOTime",kwnames,&obj0)) goto fail; | |
21641 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21642 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21643 | { | |
21644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21645 | result = ((wxDateTime const *)arg1)->FormatISOTime(); | |
21646 | ||
21647 | wxPyEndAllowThreads(__tstate); | |
21648 | if (PyErr_Occurred()) SWIG_fail; | |
21649 | } | |
21650 | { | |
21651 | #if wxUSE_UNICODE | |
21652 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21653 | #else | |
21654 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21655 | #endif | |
21656 | } | |
21657 | return resultobj; | |
21658 | fail: | |
21659 | return NULL; | |
21660 | } | |
21661 | ||
21662 | ||
21663 | static PyObject * DateTime_swigregister(PyObject *, PyObject *args) { | |
21664 | PyObject *obj; | |
21665 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21666 | SWIG_TypeClientData(SWIGTYPE_p_wxDateTime, obj); | |
21667 | Py_INCREF(obj); | |
21668 | return Py_BuildValue((char *)""); | |
21669 | } | |
21670 | static PyObject *_wrap_TimeSpan_Seconds(PyObject *, PyObject *args, PyObject *kwargs) { | |
21671 | PyObject *resultobj; | |
21672 | long arg1 ; | |
21673 | wxTimeSpan result; | |
21674 | PyObject * obj0 = 0 ; | |
21675 | char *kwnames[] = { | |
21676 | (char *) "sec", NULL | |
21677 | }; | |
21678 | ||
21679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Seconds",kwnames,&obj0)) goto fail; | |
21680 | arg1 = (long)SWIG_As_long(obj0); | |
21681 | if (PyErr_Occurred()) SWIG_fail; | |
21682 | { | |
21683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21684 | result = wxTimeSpan::Seconds(arg1); | |
21685 | ||
21686 | wxPyEndAllowThreads(__tstate); | |
21687 | if (PyErr_Occurred()) SWIG_fail; | |
21688 | } | |
21689 | { | |
21690 | wxTimeSpan * resultptr; | |
21691 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21692 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21693 | } | |
21694 | return resultobj; | |
21695 | fail: | |
21696 | return NULL; | |
21697 | } | |
21698 | ||
21699 | ||
21700 | static PyObject *_wrap_TimeSpan_Second(PyObject *, PyObject *args, PyObject *kwargs) { | |
21701 | PyObject *resultobj; | |
21702 | wxTimeSpan result; | |
21703 | char *kwnames[] = { | |
21704 | NULL | |
21705 | }; | |
21706 | ||
21707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Second",kwnames)) goto fail; | |
21708 | { | |
21709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21710 | result = wxTimeSpan::Second(); | |
21711 | ||
21712 | wxPyEndAllowThreads(__tstate); | |
21713 | if (PyErr_Occurred()) SWIG_fail; | |
21714 | } | |
21715 | { | |
21716 | wxTimeSpan * resultptr; | |
21717 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21718 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21719 | } | |
21720 | return resultobj; | |
21721 | fail: | |
21722 | return NULL; | |
21723 | } | |
21724 | ||
21725 | ||
21726 | static PyObject *_wrap_TimeSpan_Minutes(PyObject *, PyObject *args, PyObject *kwargs) { | |
21727 | PyObject *resultobj; | |
21728 | long arg1 ; | |
21729 | wxTimeSpan result; | |
21730 | PyObject * obj0 = 0 ; | |
21731 | char *kwnames[] = { | |
21732 | (char *) "min", NULL | |
21733 | }; | |
21734 | ||
21735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Minutes",kwnames,&obj0)) goto fail; | |
21736 | arg1 = (long)SWIG_As_long(obj0); | |
21737 | if (PyErr_Occurred()) SWIG_fail; | |
21738 | { | |
21739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21740 | result = wxTimeSpan::Minutes(arg1); | |
21741 | ||
21742 | wxPyEndAllowThreads(__tstate); | |
21743 | if (PyErr_Occurred()) SWIG_fail; | |
21744 | } | |
21745 | { | |
21746 | wxTimeSpan * resultptr; | |
21747 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21748 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21749 | } | |
21750 | return resultobj; | |
21751 | fail: | |
21752 | return NULL; | |
21753 | } | |
21754 | ||
21755 | ||
21756 | static PyObject *_wrap_TimeSpan_Minute(PyObject *, PyObject *args, PyObject *kwargs) { | |
21757 | PyObject *resultobj; | |
21758 | wxTimeSpan result; | |
21759 | char *kwnames[] = { | |
21760 | NULL | |
21761 | }; | |
21762 | ||
21763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Minute",kwnames)) goto fail; | |
21764 | { | |
21765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21766 | result = wxTimeSpan::Minute(); | |
21767 | ||
21768 | wxPyEndAllowThreads(__tstate); | |
21769 | if (PyErr_Occurred()) SWIG_fail; | |
21770 | } | |
21771 | { | |
21772 | wxTimeSpan * resultptr; | |
21773 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21774 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21775 | } | |
21776 | return resultobj; | |
21777 | fail: | |
21778 | return NULL; | |
21779 | } | |
21780 | ||
21781 | ||
21782 | static PyObject *_wrap_TimeSpan_Hours(PyObject *, PyObject *args, PyObject *kwargs) { | |
21783 | PyObject *resultobj; | |
21784 | long arg1 ; | |
21785 | wxTimeSpan result; | |
21786 | PyObject * obj0 = 0 ; | |
21787 | char *kwnames[] = { | |
21788 | (char *) "hours", NULL | |
21789 | }; | |
21790 | ||
21791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Hours",kwnames,&obj0)) goto fail; | |
21792 | arg1 = (long)SWIG_As_long(obj0); | |
21793 | if (PyErr_Occurred()) SWIG_fail; | |
21794 | { | |
21795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21796 | result = wxTimeSpan::Hours(arg1); | |
21797 | ||
21798 | wxPyEndAllowThreads(__tstate); | |
21799 | if (PyErr_Occurred()) SWIG_fail; | |
21800 | } | |
21801 | { | |
21802 | wxTimeSpan * resultptr; | |
21803 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21804 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21805 | } | |
21806 | return resultobj; | |
21807 | fail: | |
21808 | return NULL; | |
21809 | } | |
21810 | ||
21811 | ||
21812 | static PyObject *_wrap_TimeSpan_Hour(PyObject *, PyObject *args, PyObject *kwargs) { | |
21813 | PyObject *resultobj; | |
21814 | wxTimeSpan result; | |
21815 | char *kwnames[] = { | |
21816 | NULL | |
21817 | }; | |
21818 | ||
21819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Hour",kwnames)) goto fail; | |
21820 | { | |
21821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21822 | result = wxTimeSpan::Hour(); | |
21823 | ||
21824 | wxPyEndAllowThreads(__tstate); | |
21825 | if (PyErr_Occurred()) SWIG_fail; | |
21826 | } | |
21827 | { | |
21828 | wxTimeSpan * resultptr; | |
21829 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21830 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21831 | } | |
21832 | return resultobj; | |
21833 | fail: | |
21834 | return NULL; | |
21835 | } | |
21836 | ||
21837 | ||
21838 | static PyObject *_wrap_TimeSpan_Days(PyObject *, PyObject *args, PyObject *kwargs) { | |
21839 | PyObject *resultobj; | |
21840 | long arg1 ; | |
21841 | wxTimeSpan result; | |
21842 | PyObject * obj0 = 0 ; | |
21843 | char *kwnames[] = { | |
21844 | (char *) "days", NULL | |
21845 | }; | |
21846 | ||
21847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Days",kwnames,&obj0)) goto fail; | |
21848 | arg1 = (long)SWIG_As_long(obj0); | |
21849 | if (PyErr_Occurred()) SWIG_fail; | |
21850 | { | |
21851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21852 | result = wxTimeSpan::Days(arg1); | |
21853 | ||
21854 | wxPyEndAllowThreads(__tstate); | |
21855 | if (PyErr_Occurred()) SWIG_fail; | |
21856 | } | |
21857 | { | |
21858 | wxTimeSpan * resultptr; | |
21859 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21860 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21861 | } | |
21862 | return resultobj; | |
21863 | fail: | |
21864 | return NULL; | |
21865 | } | |
21866 | ||
21867 | ||
21868 | static PyObject *_wrap_TimeSpan_Day(PyObject *, PyObject *args, PyObject *kwargs) { | |
21869 | PyObject *resultobj; | |
21870 | wxTimeSpan result; | |
21871 | char *kwnames[] = { | |
21872 | NULL | |
21873 | }; | |
21874 | ||
21875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Day",kwnames)) goto fail; | |
21876 | { | |
21877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21878 | result = wxTimeSpan::Day(); | |
21879 | ||
21880 | wxPyEndAllowThreads(__tstate); | |
21881 | if (PyErr_Occurred()) SWIG_fail; | |
21882 | } | |
21883 | { | |
21884 | wxTimeSpan * resultptr; | |
21885 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21886 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21887 | } | |
21888 | return resultobj; | |
21889 | fail: | |
21890 | return NULL; | |
21891 | } | |
21892 | ||
21893 | ||
21894 | static PyObject *_wrap_TimeSpan_Weeks(PyObject *, PyObject *args, PyObject *kwargs) { | |
21895 | PyObject *resultobj; | |
21896 | long arg1 ; | |
21897 | wxTimeSpan result; | |
21898 | PyObject * obj0 = 0 ; | |
21899 | char *kwnames[] = { | |
21900 | (char *) "days", NULL | |
21901 | }; | |
21902 | ||
21903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Weeks",kwnames,&obj0)) goto fail; | |
21904 | arg1 = (long)SWIG_As_long(obj0); | |
21905 | if (PyErr_Occurred()) SWIG_fail; | |
21906 | { | |
21907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21908 | result = wxTimeSpan::Weeks(arg1); | |
21909 | ||
21910 | wxPyEndAllowThreads(__tstate); | |
21911 | if (PyErr_Occurred()) SWIG_fail; | |
21912 | } | |
21913 | { | |
21914 | wxTimeSpan * resultptr; | |
21915 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21916 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21917 | } | |
21918 | return resultobj; | |
21919 | fail: | |
21920 | return NULL; | |
21921 | } | |
21922 | ||
21923 | ||
21924 | static PyObject *_wrap_TimeSpan_Week(PyObject *, PyObject *args, PyObject *kwargs) { | |
21925 | PyObject *resultobj; | |
21926 | wxTimeSpan result; | |
21927 | char *kwnames[] = { | |
21928 | NULL | |
21929 | }; | |
21930 | ||
21931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Week",kwnames)) goto fail; | |
21932 | { | |
21933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21934 | result = wxTimeSpan::Week(); | |
21935 | ||
21936 | wxPyEndAllowThreads(__tstate); | |
21937 | if (PyErr_Occurred()) SWIG_fail; | |
21938 | } | |
21939 | { | |
21940 | wxTimeSpan * resultptr; | |
21941 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21942 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21943 | } | |
21944 | return resultobj; | |
21945 | fail: | |
21946 | return NULL; | |
21947 | } | |
21948 | ||
21949 | ||
21950 | static PyObject *_wrap_new_TimeSpan(PyObject *, PyObject *args, PyObject *kwargs) { | |
21951 | PyObject *resultobj; | |
21952 | long arg1 = (long) 0 ; | |
21953 | long arg2 = (long) 0 ; | |
21954 | long arg3 = (long) 0 ; | |
21955 | long arg4 = (long) 0 ; | |
21956 | wxTimeSpan *result; | |
21957 | PyObject * obj0 = 0 ; | |
21958 | PyObject * obj1 = 0 ; | |
21959 | PyObject * obj2 = 0 ; | |
21960 | PyObject * obj3 = 0 ; | |
21961 | char *kwnames[] = { | |
21962 | (char *) "hours",(char *) "minutes",(char *) "seconds",(char *) "milliseconds", NULL | |
21963 | }; | |
21964 | ||
21965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TimeSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
21966 | if (obj0) { | |
21967 | arg1 = (long)SWIG_As_long(obj0); | |
21968 | if (PyErr_Occurred()) SWIG_fail; | |
21969 | } | |
21970 | if (obj1) { | |
21971 | arg2 = (long)SWIG_As_long(obj1); | |
21972 | if (PyErr_Occurred()) SWIG_fail; | |
21973 | } | |
21974 | if (obj2) { | |
21975 | arg3 = (long)SWIG_As_long(obj2); | |
21976 | if (PyErr_Occurred()) SWIG_fail; | |
21977 | } | |
21978 | if (obj3) { | |
21979 | arg4 = (long)SWIG_As_long(obj3); | |
21980 | if (PyErr_Occurred()) SWIG_fail; | |
21981 | } | |
21982 | { | |
21983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21984 | result = (wxTimeSpan *)new wxTimeSpan(arg1,arg2,arg3,arg4); | |
21985 | ||
21986 | wxPyEndAllowThreads(__tstate); | |
21987 | if (PyErr_Occurred()) SWIG_fail; | |
21988 | } | |
21989 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1); | |
21990 | return resultobj; | |
21991 | fail: | |
21992 | return NULL; | |
21993 | } | |
21994 | ||
21995 | ||
21996 | static PyObject *_wrap_delete_TimeSpan(PyObject *, PyObject *args, PyObject *kwargs) { | |
21997 | PyObject *resultobj; | |
21998 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21999 | PyObject * obj0 = 0 ; | |
22000 | char *kwnames[] = { | |
22001 | (char *) "self", NULL | |
22002 | }; | |
22003 | ||
22004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimeSpan",kwnames,&obj0)) goto fail; | |
22005 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22006 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22007 | { | |
22008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22009 | delete arg1; | |
22010 | ||
22011 | wxPyEndAllowThreads(__tstate); | |
22012 | if (PyErr_Occurred()) SWIG_fail; | |
22013 | } | |
22014 | Py_INCREF(Py_None); resultobj = Py_None; | |
22015 | return resultobj; | |
22016 | fail: | |
22017 | return NULL; | |
22018 | } | |
22019 | ||
22020 | ||
22021 | static PyObject *_wrap_TimeSpan_Add(PyObject *, PyObject *args, PyObject *kwargs) { | |
22022 | PyObject *resultobj; | |
22023 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22024 | wxTimeSpan *arg2 = 0 ; | |
22025 | wxTimeSpan *result; | |
22026 | PyObject * obj0 = 0 ; | |
22027 | PyObject * obj1 = 0 ; | |
22028 | char *kwnames[] = { | |
22029 | (char *) "self",(char *) "diff", NULL | |
22030 | }; | |
22031 | ||
22032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Add",kwnames,&obj0,&obj1)) goto fail; | |
22033 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22034 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22035 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22036 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22037 | SWIG_fail; | |
22038 | if (arg2 == NULL) { | |
22039 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22040 | SWIG_fail; | |
22041 | } | |
22042 | { | |
22043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22044 | { | |
22045 | wxTimeSpan &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2); | |
22046 | result = (wxTimeSpan *) &_result_ref; | |
22047 | } | |
22048 | ||
22049 | wxPyEndAllowThreads(__tstate); | |
22050 | if (PyErr_Occurred()) SWIG_fail; | |
22051 | } | |
22052 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
22053 | return resultobj; | |
22054 | fail: | |
22055 | return NULL; | |
22056 | } | |
22057 | ||
22058 | ||
22059 | static PyObject *_wrap_TimeSpan_Subtract(PyObject *, PyObject *args, PyObject *kwargs) { | |
22060 | PyObject *resultobj; | |
22061 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22062 | wxTimeSpan *arg2 = 0 ; | |
22063 | wxTimeSpan *result; | |
22064 | PyObject * obj0 = 0 ; | |
22065 | PyObject * obj1 = 0 ; | |
22066 | char *kwnames[] = { | |
22067 | (char *) "self",(char *) "diff", NULL | |
22068 | }; | |
22069 | ||
22070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
22071 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22072 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22073 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22074 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22075 | SWIG_fail; | |
22076 | if (arg2 == NULL) { | |
22077 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22078 | SWIG_fail; | |
22079 | } | |
22080 | { | |
22081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22082 | { | |
22083 | wxTimeSpan &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2); | |
22084 | result = (wxTimeSpan *) &_result_ref; | |
22085 | } | |
22086 | ||
22087 | wxPyEndAllowThreads(__tstate); | |
22088 | if (PyErr_Occurred()) SWIG_fail; | |
22089 | } | |
22090 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
22091 | return resultobj; | |
22092 | fail: | |
22093 | return NULL; | |
22094 | } | |
22095 | ||
22096 | ||
22097 | static PyObject *_wrap_TimeSpan_Multiply(PyObject *, PyObject *args, PyObject *kwargs) { | |
22098 | PyObject *resultobj; | |
22099 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22100 | int arg2 ; | |
22101 | wxTimeSpan *result; | |
22102 | PyObject * obj0 = 0 ; | |
22103 | PyObject * obj1 = 0 ; | |
22104 | char *kwnames[] = { | |
22105 | (char *) "self",(char *) "n", NULL | |
22106 | }; | |
22107 | ||
22108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Multiply",kwnames,&obj0,&obj1)) goto fail; | |
22109 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22110 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22111 | arg2 = (int)SWIG_As_int(obj1); | |
22112 | if (PyErr_Occurred()) SWIG_fail; | |
22113 | { | |
22114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22115 | { | |
22116 | wxTimeSpan &_result_ref = (arg1)->Multiply(arg2); | |
22117 | result = (wxTimeSpan *) &_result_ref; | |
22118 | } | |
22119 | ||
22120 | wxPyEndAllowThreads(__tstate); | |
22121 | if (PyErr_Occurred()) SWIG_fail; | |
22122 | } | |
22123 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
22124 | return resultobj; | |
22125 | fail: | |
22126 | return NULL; | |
22127 | } | |
22128 | ||
22129 | ||
22130 | static PyObject *_wrap_TimeSpan_Neg(PyObject *, PyObject *args, PyObject *kwargs) { | |
22131 | PyObject *resultobj; | |
22132 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22133 | wxTimeSpan *result; | |
22134 | PyObject * obj0 = 0 ; | |
22135 | char *kwnames[] = { | |
22136 | (char *) "self", NULL | |
22137 | }; | |
22138 | ||
22139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Neg",kwnames,&obj0)) goto fail; | |
22140 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22141 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22142 | { | |
22143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22144 | { | |
22145 | wxTimeSpan &_result_ref = (arg1)->Neg(); | |
22146 | result = (wxTimeSpan *) &_result_ref; | |
22147 | } | |
22148 | ||
22149 | wxPyEndAllowThreads(__tstate); | |
22150 | if (PyErr_Occurred()) SWIG_fail; | |
22151 | } | |
22152 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
22153 | return resultobj; | |
22154 | fail: | |
22155 | return NULL; | |
22156 | } | |
22157 | ||
22158 | ||
22159 | static PyObject *_wrap_TimeSpan_Abs(PyObject *, PyObject *args, PyObject *kwargs) { | |
22160 | PyObject *resultobj; | |
22161 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22162 | wxTimeSpan result; | |
22163 | PyObject * obj0 = 0 ; | |
22164 | char *kwnames[] = { | |
22165 | (char *) "self", NULL | |
22166 | }; | |
22167 | ||
22168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Abs",kwnames,&obj0)) goto fail; | |
22169 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22170 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22171 | { | |
22172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22173 | result = ((wxTimeSpan const *)arg1)->Abs(); | |
22174 | ||
22175 | wxPyEndAllowThreads(__tstate); | |
22176 | if (PyErr_Occurred()) SWIG_fail; | |
22177 | } | |
22178 | { | |
22179 | wxTimeSpan * resultptr; | |
22180 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
22181 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
22182 | } | |
22183 | return resultobj; | |
22184 | fail: | |
22185 | return NULL; | |
22186 | } | |
22187 | ||
22188 | ||
22189 | static PyObject *_wrap_TimeSpan___iadd__(PyObject *, PyObject *args, PyObject *kwargs) { | |
22190 | PyObject *resultobj; | |
22191 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22192 | wxTimeSpan *arg2 = 0 ; | |
22193 | wxTimeSpan *result; | |
22194 | PyObject * obj0 = 0 ; | |
22195 | PyObject * obj1 = 0 ; | |
22196 | char *kwnames[] = { | |
22197 | (char *) "self",(char *) "diff", NULL | |
22198 | }; | |
22199 | ||
22200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
22201 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22202 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
22203 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22204 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22205 | SWIG_fail; | |
22206 | if (arg2 == NULL) { | |
22207 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22208 | SWIG_fail; | |
22209 | } | |
22210 | { | |
22211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22212 | { | |
22213 | wxTimeSpan &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2); | |
22214 | result = (wxTimeSpan *) &_result_ref; | |
22215 | } | |
22216 | ||
22217 | wxPyEndAllowThreads(__tstate); | |
22218 | if (PyErr_Occurred()) SWIG_fail; | |
22219 | } | |
22220 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1); | |
22221 | return resultobj; | |
22222 | fail: | |
22223 | return NULL; | |
22224 | } | |
22225 | ||
22226 | ||
22227 | static PyObject *_wrap_TimeSpan___isub__(PyObject *, PyObject *args, PyObject *kwargs) { | |
22228 | PyObject *resultobj; | |
22229 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22230 | wxTimeSpan *arg2 = 0 ; | |
22231 | wxTimeSpan *result; | |
22232 | PyObject * obj0 = 0 ; | |
22233 | PyObject * obj1 = 0 ; | |
22234 | char *kwnames[] = { | |
22235 | (char *) "self",(char *) "diff", NULL | |
22236 | }; | |
22237 | ||
22238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___isub__",kwnames,&obj0,&obj1)) goto fail; | |
22239 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22240 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
22241 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22242 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22243 | SWIG_fail; | |
22244 | if (arg2 == NULL) { | |
22245 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22246 | SWIG_fail; | |
22247 | } | |
22248 | { | |
22249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22250 | { | |
22251 | wxTimeSpan &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2); | |
22252 | result = (wxTimeSpan *) &_result_ref; | |
22253 | } | |
22254 | ||
22255 | wxPyEndAllowThreads(__tstate); | |
22256 | if (PyErr_Occurred()) SWIG_fail; | |
22257 | } | |
22258 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1); | |
22259 | return resultobj; | |
22260 | fail: | |
22261 | return NULL; | |
22262 | } | |
22263 | ||
22264 | ||
22265 | static PyObject *_wrap_TimeSpan___imul__(PyObject *, PyObject *args, PyObject *kwargs) { | |
22266 | PyObject *resultobj; | |
22267 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22268 | int arg2 ; | |
22269 | wxTimeSpan *result; | |
22270 | PyObject * obj0 = 0 ; | |
22271 | PyObject * obj1 = 0 ; | |
22272 | char *kwnames[] = { | |
22273 | (char *) "self",(char *) "n", NULL | |
22274 | }; | |
22275 | ||
22276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___imul__",kwnames,&obj0,&obj1)) goto fail; | |
22277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22278 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
22279 | arg2 = (int)SWIG_As_int(obj1); | |
22280 | if (PyErr_Occurred()) SWIG_fail; | |
22281 | { | |
22282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22283 | { | |
22284 | wxTimeSpan &_result_ref = (arg1)->operator *=(arg2); | |
22285 | result = (wxTimeSpan *) &_result_ref; | |
22286 | } | |
22287 | ||
22288 | wxPyEndAllowThreads(__tstate); | |
22289 | if (PyErr_Occurred()) SWIG_fail; | |
22290 | } | |
22291 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1); | |
22292 | return resultobj; | |
22293 | fail: | |
22294 | return NULL; | |
22295 | } | |
22296 | ||
22297 | ||
22298 | static PyObject *_wrap_TimeSpan___neg__(PyObject *, PyObject *args, PyObject *kwargs) { | |
22299 | PyObject *resultobj; | |
22300 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22301 | wxTimeSpan *result; | |
22302 | PyObject * obj0 = 0 ; | |
22303 | char *kwnames[] = { | |
22304 | (char *) "self", NULL | |
22305 | }; | |
22306 | ||
22307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan___neg__",kwnames,&obj0)) goto fail; | |
22308 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22309 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22310 | { | |
22311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22312 | { | |
22313 | wxTimeSpan &_result_ref = (arg1)->operator -(); | |
22314 | result = (wxTimeSpan *) &_result_ref; | |
22315 | } | |
22316 | ||
22317 | wxPyEndAllowThreads(__tstate); | |
22318 | if (PyErr_Occurred()) SWIG_fail; | |
22319 | } | |
22320 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
22321 | return resultobj; | |
22322 | fail: | |
22323 | return NULL; | |
22324 | } | |
22325 | ||
22326 | ||
22327 | static PyObject *_wrap_TimeSpan___add__(PyObject *, PyObject *args, PyObject *kwargs) { | |
22328 | PyObject *resultobj; | |
22329 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22330 | wxTimeSpan *arg2 = 0 ; | |
22331 | wxTimeSpan result; | |
22332 | PyObject * obj0 = 0 ; | |
22333 | PyObject * obj1 = 0 ; | |
22334 | char *kwnames[] = { | |
22335 | (char *) "self",(char *) "other", NULL | |
22336 | }; | |
22337 | ||
22338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___add__",kwnames,&obj0,&obj1)) goto fail; | |
22339 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22340 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22341 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22342 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22343 | SWIG_fail; | |
22344 | if (arg2 == NULL) { | |
22345 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22346 | SWIG_fail; | |
22347 | } | |
22348 | { | |
22349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22350 | result = wxTimeSpan___add__(arg1,(wxTimeSpan const &)*arg2); | |
22351 | ||
22352 | wxPyEndAllowThreads(__tstate); | |
22353 | if (PyErr_Occurred()) SWIG_fail; | |
22354 | } | |
22355 | { | |
22356 | wxTimeSpan * resultptr; | |
22357 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
22358 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
22359 | } | |
22360 | return resultobj; | |
22361 | fail: | |
22362 | return NULL; | |
22363 | } | |
22364 | ||
22365 | ||
22366 | static PyObject *_wrap_TimeSpan___sub__(PyObject *, PyObject *args, PyObject *kwargs) { | |
22367 | PyObject *resultobj; | |
22368 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22369 | wxTimeSpan *arg2 = 0 ; | |
22370 | wxTimeSpan result; | |
22371 | PyObject * obj0 = 0 ; | |
22372 | PyObject * obj1 = 0 ; | |
22373 | char *kwnames[] = { | |
22374 | (char *) "self",(char *) "other", NULL | |
22375 | }; | |
22376 | ||
22377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___sub__",kwnames,&obj0,&obj1)) goto fail; | |
22378 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22379 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22380 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22381 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22382 | SWIG_fail; | |
22383 | if (arg2 == NULL) { | |
22384 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22385 | SWIG_fail; | |
22386 | } | |
22387 | { | |
22388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22389 | result = wxTimeSpan___sub__(arg1,(wxTimeSpan const &)*arg2); | |
22390 | ||
22391 | wxPyEndAllowThreads(__tstate); | |
22392 | if (PyErr_Occurred()) SWIG_fail; | |
22393 | } | |
22394 | { | |
22395 | wxTimeSpan * resultptr; | |
22396 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
22397 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
22398 | } | |
22399 | return resultobj; | |
22400 | fail: | |
22401 | return NULL; | |
22402 | } | |
22403 | ||
22404 | ||
22405 | static PyObject *_wrap_TimeSpan___mul__(PyObject *, PyObject *args, PyObject *kwargs) { | |
22406 | PyObject *resultobj; | |
22407 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22408 | int arg2 ; | |
22409 | wxTimeSpan result; | |
22410 | PyObject * obj0 = 0 ; | |
22411 | PyObject * obj1 = 0 ; | |
22412 | char *kwnames[] = { | |
22413 | (char *) "self",(char *) "n", NULL | |
22414 | }; | |
22415 | ||
22416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___mul__",kwnames,&obj0,&obj1)) goto fail; | |
22417 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22418 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22419 | arg2 = (int)SWIG_As_int(obj1); | |
22420 | if (PyErr_Occurred()) SWIG_fail; | |
22421 | { | |
22422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22423 | result = wxTimeSpan___mul__(arg1,arg2); | |
22424 | ||
22425 | wxPyEndAllowThreads(__tstate); | |
22426 | if (PyErr_Occurred()) SWIG_fail; | |
22427 | } | |
22428 | { | |
22429 | wxTimeSpan * resultptr; | |
22430 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
22431 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
22432 | } | |
22433 | return resultobj; | |
22434 | fail: | |
22435 | return NULL; | |
22436 | } | |
22437 | ||
22438 | ||
22439 | static PyObject *_wrap_TimeSpan___rmul__(PyObject *, PyObject *args, PyObject *kwargs) { | |
22440 | PyObject *resultobj; | |
22441 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22442 | int arg2 ; | |
22443 | wxTimeSpan result; | |
22444 | PyObject * obj0 = 0 ; | |
22445 | PyObject * obj1 = 0 ; | |
22446 | char *kwnames[] = { | |
22447 | (char *) "self",(char *) "n", NULL | |
22448 | }; | |
22449 | ||
22450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___rmul__",kwnames,&obj0,&obj1)) goto fail; | |
22451 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22452 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22453 | arg2 = (int)SWIG_As_int(obj1); | |
22454 | if (PyErr_Occurred()) SWIG_fail; | |
22455 | { | |
22456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22457 | result = wxTimeSpan___rmul__(arg1,arg2); | |
22458 | ||
22459 | wxPyEndAllowThreads(__tstate); | |
22460 | if (PyErr_Occurred()) SWIG_fail; | |
22461 | } | |
22462 | { | |
22463 | wxTimeSpan * resultptr; | |
22464 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
22465 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
22466 | } | |
22467 | return resultobj; | |
22468 | fail: | |
22469 | return NULL; | |
22470 | } | |
22471 | ||
22472 | ||
22473 | static PyObject *_wrap_TimeSpan___lt__(PyObject *, PyObject *args, PyObject *kwargs) { | |
22474 | PyObject *resultobj; | |
22475 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22476 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
22477 | bool result; | |
22478 | PyObject * obj0 = 0 ; | |
22479 | PyObject * obj1 = 0 ; | |
22480 | char *kwnames[] = { | |
22481 | (char *) "self",(char *) "other", NULL | |
22482 | }; | |
22483 | ||
22484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___lt__",kwnames,&obj0,&obj1)) goto fail; | |
22485 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22486 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22487 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22488 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22489 | { | |
22490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22491 | result = (bool)wxTimeSpan___lt__(arg1,(wxTimeSpan const *)arg2); | |
22492 | ||
22493 | wxPyEndAllowThreads(__tstate); | |
22494 | if (PyErr_Occurred()) SWIG_fail; | |
22495 | } | |
22496 | { | |
22497 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22498 | } | |
22499 | return resultobj; | |
22500 | fail: | |
22501 | return NULL; | |
22502 | } | |
22503 | ||
22504 | ||
22505 | static PyObject *_wrap_TimeSpan___le__(PyObject *, PyObject *args, PyObject *kwargs) { | |
22506 | PyObject *resultobj; | |
22507 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22508 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
22509 | bool result; | |
22510 | PyObject * obj0 = 0 ; | |
22511 | PyObject * obj1 = 0 ; | |
22512 | char *kwnames[] = { | |
22513 | (char *) "self",(char *) "other", NULL | |
22514 | }; | |
22515 | ||
22516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___le__",kwnames,&obj0,&obj1)) goto fail; | |
22517 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22518 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22519 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22520 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22521 | { | |
22522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22523 | result = (bool)wxTimeSpan___le__(arg1,(wxTimeSpan const *)arg2); | |
22524 | ||
22525 | wxPyEndAllowThreads(__tstate); | |
22526 | if (PyErr_Occurred()) SWIG_fail; | |
22527 | } | |
22528 | { | |
22529 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22530 | } | |
22531 | return resultobj; | |
22532 | fail: | |
22533 | return NULL; | |
22534 | } | |
22535 | ||
22536 | ||
22537 | static PyObject *_wrap_TimeSpan___gt__(PyObject *, PyObject *args, PyObject *kwargs) { | |
22538 | PyObject *resultobj; | |
22539 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22540 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
22541 | bool result; | |
22542 | PyObject * obj0 = 0 ; | |
22543 | PyObject * obj1 = 0 ; | |
22544 | char *kwnames[] = { | |
22545 | (char *) "self",(char *) "other", NULL | |
22546 | }; | |
22547 | ||
22548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___gt__",kwnames,&obj0,&obj1)) goto fail; | |
22549 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22551 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22553 | { | |
22554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22555 | result = (bool)wxTimeSpan___gt__(arg1,(wxTimeSpan const *)arg2); | |
22556 | ||
22557 | wxPyEndAllowThreads(__tstate); | |
22558 | if (PyErr_Occurred()) SWIG_fail; | |
22559 | } | |
22560 | { | |
22561 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22562 | } | |
22563 | return resultobj; | |
22564 | fail: | |
22565 | return NULL; | |
22566 | } | |
22567 | ||
22568 | ||
22569 | static PyObject *_wrap_TimeSpan___ge__(PyObject *, PyObject *args, PyObject *kwargs) { | |
22570 | PyObject *resultobj; | |
22571 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22572 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
22573 | bool result; | |
22574 | PyObject * obj0 = 0 ; | |
22575 | PyObject * obj1 = 0 ; | |
22576 | char *kwnames[] = { | |
22577 | (char *) "self",(char *) "other", NULL | |
22578 | }; | |
22579 | ||
22580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ge__",kwnames,&obj0,&obj1)) goto fail; | |
22581 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22583 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22584 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22585 | { | |
22586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22587 | result = (bool)wxTimeSpan___ge__(arg1,(wxTimeSpan const *)arg2); | |
22588 | ||
22589 | wxPyEndAllowThreads(__tstate); | |
22590 | if (PyErr_Occurred()) SWIG_fail; | |
22591 | } | |
22592 | { | |
22593 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22594 | } | |
22595 | return resultobj; | |
22596 | fail: | |
22597 | return NULL; | |
22598 | } | |
22599 | ||
22600 | ||
22601 | static PyObject *_wrap_TimeSpan___eq__(PyObject *, PyObject *args, PyObject *kwargs) { | |
22602 | PyObject *resultobj; | |
22603 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22604 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
22605 | bool result; | |
22606 | PyObject * obj0 = 0 ; | |
22607 | PyObject * obj1 = 0 ; | |
22608 | char *kwnames[] = { | |
22609 | (char *) "self",(char *) "other", NULL | |
22610 | }; | |
22611 | ||
22612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
22613 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22614 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22615 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22617 | { | |
22618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22619 | result = (bool)wxTimeSpan___eq__(arg1,(wxTimeSpan const *)arg2); | |
22620 | ||
22621 | wxPyEndAllowThreads(__tstate); | |
22622 | if (PyErr_Occurred()) SWIG_fail; | |
22623 | } | |
22624 | { | |
22625 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22626 | } | |
22627 | return resultobj; | |
22628 | fail: | |
22629 | return NULL; | |
22630 | } | |
22631 | ||
22632 | ||
22633 | static PyObject *_wrap_TimeSpan___ne__(PyObject *, PyObject *args, PyObject *kwargs) { | |
22634 | PyObject *resultobj; | |
22635 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22636 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
22637 | bool result; | |
22638 | PyObject * obj0 = 0 ; | |
22639 | PyObject * obj1 = 0 ; | |
22640 | char *kwnames[] = { | |
22641 | (char *) "self",(char *) "other", NULL | |
22642 | }; | |
22643 | ||
22644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
22645 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22646 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22647 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22648 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22649 | { | |
22650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22651 | result = (bool)wxTimeSpan___ne__(arg1,(wxTimeSpan const *)arg2); | |
22652 | ||
22653 | wxPyEndAllowThreads(__tstate); | |
22654 | if (PyErr_Occurred()) SWIG_fail; | |
22655 | } | |
22656 | { | |
22657 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22658 | } | |
22659 | return resultobj; | |
22660 | fail: | |
22661 | return NULL; | |
22662 | } | |
22663 | ||
22664 | ||
22665 | static PyObject *_wrap_TimeSpan_IsNull(PyObject *, PyObject *args, PyObject *kwargs) { | |
22666 | PyObject *resultobj; | |
22667 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22668 | bool result; | |
22669 | PyObject * obj0 = 0 ; | |
22670 | char *kwnames[] = { | |
22671 | (char *) "self", NULL | |
22672 | }; | |
22673 | ||
22674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNull",kwnames,&obj0)) goto fail; | |
22675 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22676 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22677 | { | |
22678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22679 | result = (bool)((wxTimeSpan const *)arg1)->IsNull(); | |
22680 | ||
22681 | wxPyEndAllowThreads(__tstate); | |
22682 | if (PyErr_Occurred()) SWIG_fail; | |
22683 | } | |
22684 | { | |
22685 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22686 | } | |
22687 | return resultobj; | |
22688 | fail: | |
22689 | return NULL; | |
22690 | } | |
22691 | ||
22692 | ||
22693 | static PyObject *_wrap_TimeSpan_IsPositive(PyObject *, PyObject *args, PyObject *kwargs) { | |
22694 | PyObject *resultobj; | |
22695 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22696 | bool result; | |
22697 | PyObject * obj0 = 0 ; | |
22698 | char *kwnames[] = { | |
22699 | (char *) "self", NULL | |
22700 | }; | |
22701 | ||
22702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsPositive",kwnames,&obj0)) goto fail; | |
22703 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22704 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22705 | { | |
22706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22707 | result = (bool)((wxTimeSpan const *)arg1)->IsPositive(); | |
22708 | ||
22709 | wxPyEndAllowThreads(__tstate); | |
22710 | if (PyErr_Occurred()) SWIG_fail; | |
22711 | } | |
22712 | { | |
22713 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22714 | } | |
22715 | return resultobj; | |
22716 | fail: | |
22717 | return NULL; | |
22718 | } | |
22719 | ||
22720 | ||
22721 | static PyObject *_wrap_TimeSpan_IsNegative(PyObject *, PyObject *args, PyObject *kwargs) { | |
22722 | PyObject *resultobj; | |
22723 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22724 | bool result; | |
22725 | PyObject * obj0 = 0 ; | |
22726 | char *kwnames[] = { | |
22727 | (char *) "self", NULL | |
22728 | }; | |
22729 | ||
22730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNegative",kwnames,&obj0)) goto fail; | |
22731 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22732 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22733 | { | |
22734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22735 | result = (bool)((wxTimeSpan const *)arg1)->IsNegative(); | |
22736 | ||
22737 | wxPyEndAllowThreads(__tstate); | |
22738 | if (PyErr_Occurred()) SWIG_fail; | |
22739 | } | |
22740 | { | |
22741 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22742 | } | |
22743 | return resultobj; | |
22744 | fail: | |
22745 | return NULL; | |
22746 | } | |
22747 | ||
22748 | ||
22749 | static PyObject *_wrap_TimeSpan_IsEqualTo(PyObject *, PyObject *args, PyObject *kwargs) { | |
22750 | PyObject *resultobj; | |
22751 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22752 | wxTimeSpan *arg2 = 0 ; | |
22753 | bool result; | |
22754 | PyObject * obj0 = 0 ; | |
22755 | PyObject * obj1 = 0 ; | |
22756 | char *kwnames[] = { | |
22757 | (char *) "self",(char *) "ts", NULL | |
22758 | }; | |
22759 | ||
22760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsEqualTo",kwnames,&obj0,&obj1)) goto fail; | |
22761 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22762 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22763 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22764 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22765 | SWIG_fail; | |
22766 | if (arg2 == NULL) { | |
22767 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22768 | SWIG_fail; | |
22769 | } | |
22770 | { | |
22771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22772 | result = (bool)((wxTimeSpan const *)arg1)->IsEqualTo((wxTimeSpan const &)*arg2); | |
22773 | ||
22774 | wxPyEndAllowThreads(__tstate); | |
22775 | if (PyErr_Occurred()) SWIG_fail; | |
22776 | } | |
22777 | { | |
22778 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22779 | } | |
22780 | return resultobj; | |
22781 | fail: | |
22782 | return NULL; | |
22783 | } | |
22784 | ||
22785 | ||
22786 | static PyObject *_wrap_TimeSpan_IsLongerThan(PyObject *, PyObject *args, PyObject *kwargs) { | |
22787 | PyObject *resultobj; | |
22788 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22789 | wxTimeSpan *arg2 = 0 ; | |
22790 | bool result; | |
22791 | PyObject * obj0 = 0 ; | |
22792 | PyObject * obj1 = 0 ; | |
22793 | char *kwnames[] = { | |
22794 | (char *) "self",(char *) "ts", NULL | |
22795 | }; | |
22796 | ||
22797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsLongerThan",kwnames,&obj0,&obj1)) goto fail; | |
22798 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22799 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22800 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22801 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22802 | SWIG_fail; | |
22803 | if (arg2 == NULL) { | |
22804 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22805 | SWIG_fail; | |
22806 | } | |
22807 | { | |
22808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22809 | result = (bool)((wxTimeSpan const *)arg1)->IsLongerThan((wxTimeSpan const &)*arg2); | |
22810 | ||
22811 | wxPyEndAllowThreads(__tstate); | |
22812 | if (PyErr_Occurred()) SWIG_fail; | |
22813 | } | |
22814 | { | |
22815 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22816 | } | |
22817 | return resultobj; | |
22818 | fail: | |
22819 | return NULL; | |
22820 | } | |
22821 | ||
22822 | ||
22823 | static PyObject *_wrap_TimeSpan_IsShorterThan(PyObject *, PyObject *args, PyObject *kwargs) { | |
22824 | PyObject *resultobj; | |
22825 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22826 | wxTimeSpan *arg2 = 0 ; | |
22827 | bool result; | |
22828 | PyObject * obj0 = 0 ; | |
22829 | PyObject * obj1 = 0 ; | |
22830 | char *kwnames[] = { | |
22831 | (char *) "self",(char *) "t", NULL | |
22832 | }; | |
22833 | ||
22834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsShorterThan",kwnames,&obj0,&obj1)) goto fail; | |
22835 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22836 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22837 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22838 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22839 | SWIG_fail; | |
22840 | if (arg2 == NULL) { | |
22841 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22842 | SWIG_fail; | |
22843 | } | |
22844 | { | |
22845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22846 | result = (bool)((wxTimeSpan const *)arg1)->IsShorterThan((wxTimeSpan const &)*arg2); | |
22847 | ||
22848 | wxPyEndAllowThreads(__tstate); | |
22849 | if (PyErr_Occurred()) SWIG_fail; | |
22850 | } | |
22851 | { | |
22852 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22853 | } | |
22854 | return resultobj; | |
22855 | fail: | |
22856 | return NULL; | |
22857 | } | |
22858 | ||
22859 | ||
22860 | static PyObject *_wrap_TimeSpan_GetWeeks(PyObject *, PyObject *args, PyObject *kwargs) { | |
22861 | PyObject *resultobj; | |
22862 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22863 | int result; | |
22864 | PyObject * obj0 = 0 ; | |
22865 | char *kwnames[] = { | |
22866 | (char *) "self", NULL | |
22867 | }; | |
22868 | ||
22869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetWeeks",kwnames,&obj0)) goto fail; | |
22870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22872 | { | |
22873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22874 | result = (int)((wxTimeSpan const *)arg1)->GetWeeks(); | |
22875 | ||
22876 | wxPyEndAllowThreads(__tstate); | |
22877 | if (PyErr_Occurred()) SWIG_fail; | |
22878 | } | |
22879 | resultobj = SWIG_From_int((int)result); | |
22880 | return resultobj; | |
22881 | fail: | |
22882 | return NULL; | |
22883 | } | |
22884 | ||
22885 | ||
22886 | static PyObject *_wrap_TimeSpan_GetDays(PyObject *, PyObject *args, PyObject *kwargs) { | |
22887 | PyObject *resultobj; | |
22888 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22889 | int result; | |
22890 | PyObject * obj0 = 0 ; | |
22891 | char *kwnames[] = { | |
22892 | (char *) "self", NULL | |
22893 | }; | |
22894 | ||
22895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetDays",kwnames,&obj0)) goto fail; | |
22896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22898 | { | |
22899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22900 | result = (int)((wxTimeSpan const *)arg1)->GetDays(); | |
22901 | ||
22902 | wxPyEndAllowThreads(__tstate); | |
22903 | if (PyErr_Occurred()) SWIG_fail; | |
22904 | } | |
22905 | resultobj = SWIG_From_int((int)result); | |
22906 | return resultobj; | |
22907 | fail: | |
22908 | return NULL; | |
22909 | } | |
22910 | ||
22911 | ||
22912 | static PyObject *_wrap_TimeSpan_GetHours(PyObject *, PyObject *args, PyObject *kwargs) { | |
22913 | PyObject *resultobj; | |
22914 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22915 | int result; | |
22916 | PyObject * obj0 = 0 ; | |
22917 | char *kwnames[] = { | |
22918 | (char *) "self", NULL | |
22919 | }; | |
22920 | ||
22921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetHours",kwnames,&obj0)) goto fail; | |
22922 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22923 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22924 | { | |
22925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22926 | result = (int)((wxTimeSpan const *)arg1)->GetHours(); | |
22927 | ||
22928 | wxPyEndAllowThreads(__tstate); | |
22929 | if (PyErr_Occurred()) SWIG_fail; | |
22930 | } | |
22931 | resultobj = SWIG_From_int((int)result); | |
22932 | return resultobj; | |
22933 | fail: | |
22934 | return NULL; | |
22935 | } | |
22936 | ||
22937 | ||
22938 | static PyObject *_wrap_TimeSpan_GetMinutes(PyObject *, PyObject *args, PyObject *kwargs) { | |
22939 | PyObject *resultobj; | |
22940 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22941 | int result; | |
22942 | PyObject * obj0 = 0 ; | |
22943 | char *kwnames[] = { | |
22944 | (char *) "self", NULL | |
22945 | }; | |
22946 | ||
22947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMinutes",kwnames,&obj0)) goto fail; | |
22948 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22950 | { | |
22951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22952 | result = (int)((wxTimeSpan const *)arg1)->GetMinutes(); | |
22953 | ||
22954 | wxPyEndAllowThreads(__tstate); | |
22955 | if (PyErr_Occurred()) SWIG_fail; | |
22956 | } | |
22957 | resultobj = SWIG_From_int((int)result); | |
22958 | return resultobj; | |
22959 | fail: | |
22960 | return NULL; | |
22961 | } | |
22962 | ||
22963 | ||
22964 | static PyObject *_wrap_TimeSpan_GetSeconds(PyObject *, PyObject *args, PyObject *kwargs) { | |
22965 | PyObject *resultobj; | |
22966 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22967 | wxLongLong result; | |
22968 | PyObject * obj0 = 0 ; | |
22969 | char *kwnames[] = { | |
22970 | (char *) "self", NULL | |
22971 | }; | |
22972 | ||
22973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetSeconds",kwnames,&obj0)) goto fail; | |
22974 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22975 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22976 | { | |
22977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22978 | result = ((wxTimeSpan const *)arg1)->GetSeconds(); | |
22979 | ||
22980 | wxPyEndAllowThreads(__tstate); | |
22981 | if (PyErr_Occurred()) SWIG_fail; | |
22982 | } | |
22983 | { | |
22984 | PyObject *hi, *lo, *shifter, *shifted; | |
22985 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
22986 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
22987 | shifter = PyLong_FromLong(32); | |
22988 | shifted = PyNumber_Lshift(hi, shifter); | |
22989 | resultobj = PyNumber_Or(shifted, lo); | |
22990 | Py_DECREF(hi); | |
22991 | Py_DECREF(lo); | |
22992 | Py_DECREF(shifter); | |
22993 | Py_DECREF(shifted); | |
22994 | } | |
22995 | return resultobj; | |
22996 | fail: | |
22997 | return NULL; | |
22998 | } | |
22999 | ||
23000 | ||
23001 | static PyObject *_wrap_TimeSpan_GetMilliseconds(PyObject *, PyObject *args, PyObject *kwargs) { | |
23002 | PyObject *resultobj; | |
23003 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
23004 | wxLongLong result; | |
23005 | PyObject * obj0 = 0 ; | |
23006 | char *kwnames[] = { | |
23007 | (char *) "self", NULL | |
23008 | }; | |
23009 | ||
23010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMilliseconds",kwnames,&obj0)) goto fail; | |
23011 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
23012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23013 | { | |
23014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23015 | result = ((wxTimeSpan const *)arg1)->GetMilliseconds(); | |
23016 | ||
23017 | wxPyEndAllowThreads(__tstate); | |
23018 | if (PyErr_Occurred()) SWIG_fail; | |
23019 | } | |
23020 | { | |
23021 | PyObject *hi, *lo, *shifter, *shifted; | |
23022 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
23023 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
23024 | shifter = PyLong_FromLong(32); | |
23025 | shifted = PyNumber_Lshift(hi, shifter); | |
23026 | resultobj = PyNumber_Or(shifted, lo); | |
23027 | Py_DECREF(hi); | |
23028 | Py_DECREF(lo); | |
23029 | Py_DECREF(shifter); | |
23030 | Py_DECREF(shifted); | |
23031 | } | |
23032 | return resultobj; | |
23033 | fail: | |
23034 | return NULL; | |
23035 | } | |
23036 | ||
23037 | ||
23038 | static PyObject *_wrap_TimeSpan_Format(PyObject *, PyObject *args, PyObject *kwargs) { | |
23039 | PyObject *resultobj; | |
23040 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
23041 | wxString const &arg2_defvalue = wxPyTimeSpanFormatStr ; | |
23042 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
23043 | wxString result; | |
23044 | bool temp2 = false ; | |
23045 | PyObject * obj0 = 0 ; | |
23046 | PyObject * obj1 = 0 ; | |
23047 | char *kwnames[] = { | |
23048 | (char *) "self",(char *) "format", NULL | |
23049 | }; | |
23050 | ||
23051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TimeSpan_Format",kwnames,&obj0,&obj1)) goto fail; | |
23052 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
23053 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23054 | if (obj1) { | |
23055 | { | |
23056 | arg2 = wxString_in_helper(obj1); | |
23057 | if (arg2 == NULL) SWIG_fail; | |
23058 | temp2 = true; | |
23059 | } | |
23060 | } | |
23061 | { | |
23062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23063 | result = ((wxTimeSpan const *)arg1)->Format((wxString const &)*arg2); | |
23064 | ||
23065 | wxPyEndAllowThreads(__tstate); | |
23066 | if (PyErr_Occurred()) SWIG_fail; | |
23067 | } | |
23068 | { | |
23069 | #if wxUSE_UNICODE | |
23070 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
23071 | #else | |
23072 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
23073 | #endif | |
23074 | } | |
23075 | { | |
23076 | if (temp2) | |
23077 | delete arg2; | |
23078 | } | |
23079 | return resultobj; | |
23080 | fail: | |
23081 | { | |
23082 | if (temp2) | |
23083 | delete arg2; | |
23084 | } | |
23085 | return NULL; | |
23086 | } | |
23087 | ||
23088 | ||
23089 | static PyObject * TimeSpan_swigregister(PyObject *, PyObject *args) { | |
23090 | PyObject *obj; | |
23091 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23092 | SWIG_TypeClientData(SWIGTYPE_p_wxTimeSpan, obj); | |
23093 | Py_INCREF(obj); | |
23094 | return Py_BuildValue((char *)""); | |
23095 | } | |
23096 | static PyObject *_wrap_new_DateSpan(PyObject *, PyObject *args, PyObject *kwargs) { | |
23097 | PyObject *resultobj; | |
23098 | int arg1 = (int) 0 ; | |
23099 | int arg2 = (int) 0 ; | |
23100 | int arg3 = (int) 0 ; | |
23101 | int arg4 = (int) 0 ; | |
23102 | wxDateSpan *result; | |
23103 | PyObject * obj0 = 0 ; | |
23104 | PyObject * obj1 = 0 ; | |
23105 | PyObject * obj2 = 0 ; | |
23106 | PyObject * obj3 = 0 ; | |
23107 | char *kwnames[] = { | |
23108 | (char *) "years",(char *) "months",(char *) "weeks",(char *) "days", NULL | |
23109 | }; | |
23110 | ||
23111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_DateSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
23112 | if (obj0) { | |
23113 | arg1 = (int)SWIG_As_int(obj0); | |
23114 | if (PyErr_Occurred()) SWIG_fail; | |
23115 | } | |
23116 | if (obj1) { | |
23117 | arg2 = (int)SWIG_As_int(obj1); | |
23118 | if (PyErr_Occurred()) SWIG_fail; | |
23119 | } | |
23120 | if (obj2) { | |
23121 | arg3 = (int)SWIG_As_int(obj2); | |
23122 | if (PyErr_Occurred()) SWIG_fail; | |
23123 | } | |
23124 | if (obj3) { | |
23125 | arg4 = (int)SWIG_As_int(obj3); | |
23126 | if (PyErr_Occurred()) SWIG_fail; | |
23127 | } | |
23128 | { | |
23129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23130 | result = (wxDateSpan *)new wxDateSpan(arg1,arg2,arg3,arg4); | |
23131 | ||
23132 | wxPyEndAllowThreads(__tstate); | |
23133 | if (PyErr_Occurred()) SWIG_fail; | |
23134 | } | |
23135 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1); | |
23136 | return resultobj; | |
23137 | fail: | |
23138 | return NULL; | |
23139 | } | |
23140 | ||
23141 | ||
23142 | static PyObject *_wrap_delete_DateSpan(PyObject *, PyObject *args, PyObject *kwargs) { | |
23143 | PyObject *resultobj; | |
23144 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23145 | PyObject * obj0 = 0 ; | |
23146 | char *kwnames[] = { | |
23147 | (char *) "self", NULL | |
23148 | }; | |
23149 | ||
23150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateSpan",kwnames,&obj0)) goto fail; | |
23151 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23152 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23153 | { | |
23154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23155 | delete arg1; | |
23156 | ||
23157 | wxPyEndAllowThreads(__tstate); | |
23158 | if (PyErr_Occurred()) SWIG_fail; | |
23159 | } | |
23160 | Py_INCREF(Py_None); resultobj = Py_None; | |
23161 | return resultobj; | |
23162 | fail: | |
23163 | return NULL; | |
23164 | } | |
23165 | ||
23166 | ||
23167 | static PyObject *_wrap_DateSpan_Days(PyObject *, PyObject *args, PyObject *kwargs) { | |
23168 | PyObject *resultobj; | |
23169 | int arg1 ; | |
23170 | wxDateSpan result; | |
23171 | PyObject * obj0 = 0 ; | |
23172 | char *kwnames[] = { | |
23173 | (char *) "days", NULL | |
23174 | }; | |
23175 | ||
23176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Days",kwnames,&obj0)) goto fail; | |
23177 | arg1 = (int)SWIG_As_int(obj0); | |
23178 | if (PyErr_Occurred()) SWIG_fail; | |
23179 | { | |
23180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23181 | result = wxDateSpan::Days(arg1); | |
23182 | ||
23183 | wxPyEndAllowThreads(__tstate); | |
23184 | if (PyErr_Occurred()) SWIG_fail; | |
23185 | } | |
23186 | { | |
23187 | wxDateSpan * resultptr; | |
23188 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23189 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23190 | } | |
23191 | return resultobj; | |
23192 | fail: | |
23193 | return NULL; | |
23194 | } | |
23195 | ||
23196 | ||
23197 | static PyObject *_wrap_DateSpan_Day(PyObject *, PyObject *args, PyObject *kwargs) { | |
23198 | PyObject *resultobj; | |
23199 | wxDateSpan result; | |
23200 | char *kwnames[] = { | |
23201 | NULL | |
23202 | }; | |
23203 | ||
23204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Day",kwnames)) goto fail; | |
23205 | { | |
23206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23207 | result = wxDateSpan::Day(); | |
23208 | ||
23209 | wxPyEndAllowThreads(__tstate); | |
23210 | if (PyErr_Occurred()) SWIG_fail; | |
23211 | } | |
23212 | { | |
23213 | wxDateSpan * resultptr; | |
23214 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23215 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23216 | } | |
23217 | return resultobj; | |
23218 | fail: | |
23219 | return NULL; | |
23220 | } | |
23221 | ||
23222 | ||
23223 | static PyObject *_wrap_DateSpan_Weeks(PyObject *, PyObject *args, PyObject *kwargs) { | |
23224 | PyObject *resultobj; | |
23225 | int arg1 ; | |
23226 | wxDateSpan result; | |
23227 | PyObject * obj0 = 0 ; | |
23228 | char *kwnames[] = { | |
23229 | (char *) "weeks", NULL | |
23230 | }; | |
23231 | ||
23232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Weeks",kwnames,&obj0)) goto fail; | |
23233 | arg1 = (int)SWIG_As_int(obj0); | |
23234 | if (PyErr_Occurred()) SWIG_fail; | |
23235 | { | |
23236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23237 | result = wxDateSpan::Weeks(arg1); | |
23238 | ||
23239 | wxPyEndAllowThreads(__tstate); | |
23240 | if (PyErr_Occurred()) SWIG_fail; | |
23241 | } | |
23242 | { | |
23243 | wxDateSpan * resultptr; | |
23244 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23245 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23246 | } | |
23247 | return resultobj; | |
23248 | fail: | |
23249 | return NULL; | |
23250 | } | |
23251 | ||
23252 | ||
23253 | static PyObject *_wrap_DateSpan_Week(PyObject *, PyObject *args, PyObject *kwargs) { | |
23254 | PyObject *resultobj; | |
23255 | wxDateSpan result; | |
23256 | char *kwnames[] = { | |
23257 | NULL | |
23258 | }; | |
23259 | ||
23260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Week",kwnames)) goto fail; | |
23261 | { | |
23262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23263 | result = wxDateSpan::Week(); | |
23264 | ||
23265 | wxPyEndAllowThreads(__tstate); | |
23266 | if (PyErr_Occurred()) SWIG_fail; | |
23267 | } | |
23268 | { | |
23269 | wxDateSpan * resultptr; | |
23270 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23271 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23272 | } | |
23273 | return resultobj; | |
23274 | fail: | |
23275 | return NULL; | |
23276 | } | |
23277 | ||
23278 | ||
23279 | static PyObject *_wrap_DateSpan_Months(PyObject *, PyObject *args, PyObject *kwargs) { | |
23280 | PyObject *resultobj; | |
23281 | int arg1 ; | |
23282 | wxDateSpan result; | |
23283 | PyObject * obj0 = 0 ; | |
23284 | char *kwnames[] = { | |
23285 | (char *) "mon", NULL | |
23286 | }; | |
23287 | ||
23288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Months",kwnames,&obj0)) goto fail; | |
23289 | arg1 = (int)SWIG_As_int(obj0); | |
23290 | if (PyErr_Occurred()) SWIG_fail; | |
23291 | { | |
23292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23293 | result = wxDateSpan::Months(arg1); | |
23294 | ||
23295 | wxPyEndAllowThreads(__tstate); | |
23296 | if (PyErr_Occurred()) SWIG_fail; | |
23297 | } | |
23298 | { | |
23299 | wxDateSpan * resultptr; | |
23300 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23301 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23302 | } | |
23303 | return resultobj; | |
23304 | fail: | |
23305 | return NULL; | |
23306 | } | |
23307 | ||
23308 | ||
23309 | static PyObject *_wrap_DateSpan_Month(PyObject *, PyObject *args, PyObject *kwargs) { | |
23310 | PyObject *resultobj; | |
23311 | wxDateSpan result; | |
23312 | char *kwnames[] = { | |
23313 | NULL | |
23314 | }; | |
23315 | ||
23316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Month",kwnames)) goto fail; | |
23317 | { | |
23318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23319 | result = wxDateSpan::Month(); | |
23320 | ||
23321 | wxPyEndAllowThreads(__tstate); | |
23322 | if (PyErr_Occurred()) SWIG_fail; | |
23323 | } | |
23324 | { | |
23325 | wxDateSpan * resultptr; | |
23326 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23327 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23328 | } | |
23329 | return resultobj; | |
23330 | fail: | |
23331 | return NULL; | |
23332 | } | |
23333 | ||
23334 | ||
23335 | static PyObject *_wrap_DateSpan_Years(PyObject *, PyObject *args, PyObject *kwargs) { | |
23336 | PyObject *resultobj; | |
23337 | int arg1 ; | |
23338 | wxDateSpan result; | |
23339 | PyObject * obj0 = 0 ; | |
23340 | char *kwnames[] = { | |
23341 | (char *) "years", NULL | |
23342 | }; | |
23343 | ||
23344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Years",kwnames,&obj0)) goto fail; | |
23345 | arg1 = (int)SWIG_As_int(obj0); | |
23346 | if (PyErr_Occurred()) SWIG_fail; | |
23347 | { | |
23348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23349 | result = wxDateSpan::Years(arg1); | |
23350 | ||
23351 | wxPyEndAllowThreads(__tstate); | |
23352 | if (PyErr_Occurred()) SWIG_fail; | |
23353 | } | |
23354 | { | |
23355 | wxDateSpan * resultptr; | |
23356 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23357 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23358 | } | |
23359 | return resultobj; | |
23360 | fail: | |
23361 | return NULL; | |
23362 | } | |
23363 | ||
23364 | ||
23365 | static PyObject *_wrap_DateSpan_Year(PyObject *, PyObject *args, PyObject *kwargs) { | |
23366 | PyObject *resultobj; | |
23367 | wxDateSpan result; | |
23368 | char *kwnames[] = { | |
23369 | NULL | |
23370 | }; | |
23371 | ||
23372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Year",kwnames)) goto fail; | |
23373 | { | |
23374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23375 | result = wxDateSpan::Year(); | |
23376 | ||
23377 | wxPyEndAllowThreads(__tstate); | |
23378 | if (PyErr_Occurred()) SWIG_fail; | |
23379 | } | |
23380 | { | |
23381 | wxDateSpan * resultptr; | |
23382 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23383 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23384 | } | |
23385 | return resultobj; | |
23386 | fail: | |
23387 | return NULL; | |
23388 | } | |
23389 | ||
23390 | ||
23391 | static PyObject *_wrap_DateSpan_SetYears(PyObject *, PyObject *args, PyObject *kwargs) { | |
23392 | PyObject *resultobj; | |
23393 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23394 | int arg2 ; | |
23395 | wxDateSpan *result; | |
23396 | PyObject * obj0 = 0 ; | |
23397 | PyObject * obj1 = 0 ; | |
23398 | char *kwnames[] = { | |
23399 | (char *) "self",(char *) "n", NULL | |
23400 | }; | |
23401 | ||
23402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetYears",kwnames,&obj0,&obj1)) goto fail; | |
23403 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23405 | arg2 = (int)SWIG_As_int(obj1); | |
23406 | if (PyErr_Occurred()) SWIG_fail; | |
23407 | { | |
23408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23409 | { | |
23410 | wxDateSpan &_result_ref = (arg1)->SetYears(arg2); | |
23411 | result = (wxDateSpan *) &_result_ref; | |
23412 | } | |
23413 | ||
23414 | wxPyEndAllowThreads(__tstate); | |
23415 | if (PyErr_Occurred()) SWIG_fail; | |
23416 | } | |
23417 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23418 | return resultobj; | |
23419 | fail: | |
23420 | return NULL; | |
23421 | } | |
23422 | ||
23423 | ||
23424 | static PyObject *_wrap_DateSpan_SetMonths(PyObject *, PyObject *args, PyObject *kwargs) { | |
23425 | PyObject *resultobj; | |
23426 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23427 | int arg2 ; | |
23428 | wxDateSpan *result; | |
23429 | PyObject * obj0 = 0 ; | |
23430 | PyObject * obj1 = 0 ; | |
23431 | char *kwnames[] = { | |
23432 | (char *) "self",(char *) "n", NULL | |
23433 | }; | |
23434 | ||
23435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetMonths",kwnames,&obj0,&obj1)) goto fail; | |
23436 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23438 | arg2 = (int)SWIG_As_int(obj1); | |
23439 | if (PyErr_Occurred()) SWIG_fail; | |
23440 | { | |
23441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23442 | { | |
23443 | wxDateSpan &_result_ref = (arg1)->SetMonths(arg2); | |
23444 | result = (wxDateSpan *) &_result_ref; | |
23445 | } | |
23446 | ||
23447 | wxPyEndAllowThreads(__tstate); | |
23448 | if (PyErr_Occurred()) SWIG_fail; | |
23449 | } | |
23450 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23451 | return resultobj; | |
23452 | fail: | |
23453 | return NULL; | |
23454 | } | |
23455 | ||
23456 | ||
23457 | static PyObject *_wrap_DateSpan_SetWeeks(PyObject *, PyObject *args, PyObject *kwargs) { | |
23458 | PyObject *resultobj; | |
23459 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23460 | int arg2 ; | |
23461 | wxDateSpan *result; | |
23462 | PyObject * obj0 = 0 ; | |
23463 | PyObject * obj1 = 0 ; | |
23464 | char *kwnames[] = { | |
23465 | (char *) "self",(char *) "n", NULL | |
23466 | }; | |
23467 | ||
23468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetWeeks",kwnames,&obj0,&obj1)) goto fail; | |
23469 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23470 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23471 | arg2 = (int)SWIG_As_int(obj1); | |
23472 | if (PyErr_Occurred()) SWIG_fail; | |
23473 | { | |
23474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23475 | { | |
23476 | wxDateSpan &_result_ref = (arg1)->SetWeeks(arg2); | |
23477 | result = (wxDateSpan *) &_result_ref; | |
23478 | } | |
23479 | ||
23480 | wxPyEndAllowThreads(__tstate); | |
23481 | if (PyErr_Occurred()) SWIG_fail; | |
23482 | } | |
23483 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23484 | return resultobj; | |
23485 | fail: | |
23486 | return NULL; | |
23487 | } | |
23488 | ||
23489 | ||
23490 | static PyObject *_wrap_DateSpan_SetDays(PyObject *, PyObject *args, PyObject *kwargs) { | |
23491 | PyObject *resultobj; | |
23492 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23493 | int arg2 ; | |
23494 | wxDateSpan *result; | |
23495 | PyObject * obj0 = 0 ; | |
23496 | PyObject * obj1 = 0 ; | |
23497 | char *kwnames[] = { | |
23498 | (char *) "self",(char *) "n", NULL | |
23499 | }; | |
23500 | ||
23501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetDays",kwnames,&obj0,&obj1)) goto fail; | |
23502 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23503 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23504 | arg2 = (int)SWIG_As_int(obj1); | |
23505 | if (PyErr_Occurred()) SWIG_fail; | |
23506 | { | |
23507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23508 | { | |
23509 | wxDateSpan &_result_ref = (arg1)->SetDays(arg2); | |
23510 | result = (wxDateSpan *) &_result_ref; | |
23511 | } | |
23512 | ||
23513 | wxPyEndAllowThreads(__tstate); | |
23514 | if (PyErr_Occurred()) SWIG_fail; | |
23515 | } | |
23516 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23517 | return resultobj; | |
23518 | fail: | |
23519 | return NULL; | |
23520 | } | |
23521 | ||
23522 | ||
23523 | static PyObject *_wrap_DateSpan_GetYears(PyObject *, PyObject *args, PyObject *kwargs) { | |
23524 | PyObject *resultobj; | |
23525 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23526 | int result; | |
23527 | PyObject * obj0 = 0 ; | |
23528 | char *kwnames[] = { | |
23529 | (char *) "self", NULL | |
23530 | }; | |
23531 | ||
23532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetYears",kwnames,&obj0)) goto fail; | |
23533 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23534 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23535 | { | |
23536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23537 | result = (int)((wxDateSpan const *)arg1)->GetYears(); | |
23538 | ||
23539 | wxPyEndAllowThreads(__tstate); | |
23540 | if (PyErr_Occurred()) SWIG_fail; | |
23541 | } | |
23542 | resultobj = SWIG_From_int((int)result); | |
23543 | return resultobj; | |
23544 | fail: | |
23545 | return NULL; | |
23546 | } | |
23547 | ||
23548 | ||
23549 | static PyObject *_wrap_DateSpan_GetMonths(PyObject *, PyObject *args, PyObject *kwargs) { | |
23550 | PyObject *resultobj; | |
23551 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23552 | int result; | |
23553 | PyObject * obj0 = 0 ; | |
23554 | char *kwnames[] = { | |
23555 | (char *) "self", NULL | |
23556 | }; | |
23557 | ||
23558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetMonths",kwnames,&obj0)) goto fail; | |
23559 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23561 | { | |
23562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23563 | result = (int)((wxDateSpan const *)arg1)->GetMonths(); | |
23564 | ||
23565 | wxPyEndAllowThreads(__tstate); | |
23566 | if (PyErr_Occurred()) SWIG_fail; | |
23567 | } | |
23568 | resultobj = SWIG_From_int((int)result); | |
23569 | return resultobj; | |
23570 | fail: | |
23571 | return NULL; | |
23572 | } | |
23573 | ||
23574 | ||
23575 | static PyObject *_wrap_DateSpan_GetWeeks(PyObject *, PyObject *args, PyObject *kwargs) { | |
23576 | PyObject *resultobj; | |
23577 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23578 | int result; | |
23579 | PyObject * obj0 = 0 ; | |
23580 | char *kwnames[] = { | |
23581 | (char *) "self", NULL | |
23582 | }; | |
23583 | ||
23584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetWeeks",kwnames,&obj0)) goto fail; | |
23585 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23586 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23587 | { | |
23588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23589 | result = (int)((wxDateSpan const *)arg1)->GetWeeks(); | |
23590 | ||
23591 | wxPyEndAllowThreads(__tstate); | |
23592 | if (PyErr_Occurred()) SWIG_fail; | |
23593 | } | |
23594 | resultobj = SWIG_From_int((int)result); | |
23595 | return resultobj; | |
23596 | fail: | |
23597 | return NULL; | |
23598 | } | |
23599 | ||
23600 | ||
23601 | static PyObject *_wrap_DateSpan_GetDays(PyObject *, PyObject *args, PyObject *kwargs) { | |
23602 | PyObject *resultobj; | |
23603 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23604 | int result; | |
23605 | PyObject * obj0 = 0 ; | |
23606 | char *kwnames[] = { | |
23607 | (char *) "self", NULL | |
23608 | }; | |
23609 | ||
23610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetDays",kwnames,&obj0)) goto fail; | |
23611 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23612 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23613 | { | |
23614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23615 | result = (int)((wxDateSpan const *)arg1)->GetDays(); | |
23616 | ||
23617 | wxPyEndAllowThreads(__tstate); | |
23618 | if (PyErr_Occurred()) SWIG_fail; | |
23619 | } | |
23620 | resultobj = SWIG_From_int((int)result); | |
23621 | return resultobj; | |
23622 | fail: | |
23623 | return NULL; | |
23624 | } | |
23625 | ||
23626 | ||
23627 | static PyObject *_wrap_DateSpan_GetTotalDays(PyObject *, PyObject *args, PyObject *kwargs) { | |
23628 | PyObject *resultobj; | |
23629 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23630 | int result; | |
23631 | PyObject * obj0 = 0 ; | |
23632 | char *kwnames[] = { | |
23633 | (char *) "self", NULL | |
23634 | }; | |
23635 | ||
23636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetTotalDays",kwnames,&obj0)) goto fail; | |
23637 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23638 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23639 | { | |
23640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23641 | result = (int)((wxDateSpan const *)arg1)->GetTotalDays(); | |
23642 | ||
23643 | wxPyEndAllowThreads(__tstate); | |
23644 | if (PyErr_Occurred()) SWIG_fail; | |
23645 | } | |
23646 | resultobj = SWIG_From_int((int)result); | |
23647 | return resultobj; | |
23648 | fail: | |
23649 | return NULL; | |
23650 | } | |
23651 | ||
23652 | ||
23653 | static PyObject *_wrap_DateSpan_Add(PyObject *, PyObject *args, PyObject *kwargs) { | |
23654 | PyObject *resultobj; | |
23655 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23656 | wxDateSpan *arg2 = 0 ; | |
23657 | wxDateSpan *result; | |
23658 | PyObject * obj0 = 0 ; | |
23659 | PyObject * obj1 = 0 ; | |
23660 | char *kwnames[] = { | |
23661 | (char *) "self",(char *) "other", NULL | |
23662 | }; | |
23663 | ||
23664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Add",kwnames,&obj0,&obj1)) goto fail; | |
23665 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23666 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23667 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23668 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23669 | SWIG_fail; | |
23670 | if (arg2 == NULL) { | |
23671 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23672 | SWIG_fail; | |
23673 | } | |
23674 | { | |
23675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23676 | { | |
23677 | wxDateSpan &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2); | |
23678 | result = (wxDateSpan *) &_result_ref; | |
23679 | } | |
23680 | ||
23681 | wxPyEndAllowThreads(__tstate); | |
23682 | if (PyErr_Occurred()) SWIG_fail; | |
23683 | } | |
23684 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23685 | return resultobj; | |
23686 | fail: | |
23687 | return NULL; | |
23688 | } | |
23689 | ||
23690 | ||
23691 | static PyObject *_wrap_DateSpan_Subtract(PyObject *, PyObject *args, PyObject *kwargs) { | |
23692 | PyObject *resultobj; | |
23693 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23694 | wxDateSpan *arg2 = 0 ; | |
23695 | wxDateSpan *result; | |
23696 | PyObject * obj0 = 0 ; | |
23697 | PyObject * obj1 = 0 ; | |
23698 | char *kwnames[] = { | |
23699 | (char *) "self",(char *) "other", NULL | |
23700 | }; | |
23701 | ||
23702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
23703 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23704 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23705 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23706 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23707 | SWIG_fail; | |
23708 | if (arg2 == NULL) { | |
23709 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23710 | SWIG_fail; | |
23711 | } | |
23712 | { | |
23713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23714 | { | |
23715 | wxDateSpan &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2); | |
23716 | result = (wxDateSpan *) &_result_ref; | |
23717 | } | |
23718 | ||
23719 | wxPyEndAllowThreads(__tstate); | |
23720 | if (PyErr_Occurred()) SWIG_fail; | |
23721 | } | |
23722 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23723 | return resultobj; | |
23724 | fail: | |
23725 | return NULL; | |
23726 | } | |
23727 | ||
23728 | ||
23729 | static PyObject *_wrap_DateSpan_Neg(PyObject *, PyObject *args, PyObject *kwargs) { | |
23730 | PyObject *resultobj; | |
23731 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23732 | wxDateSpan *result; | |
23733 | PyObject * obj0 = 0 ; | |
23734 | char *kwnames[] = { | |
23735 | (char *) "self", NULL | |
23736 | }; | |
23737 | ||
23738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Neg",kwnames,&obj0)) goto fail; | |
23739 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23740 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23741 | { | |
23742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23743 | { | |
23744 | wxDateSpan &_result_ref = (arg1)->Neg(); | |
23745 | result = (wxDateSpan *) &_result_ref; | |
23746 | } | |
23747 | ||
23748 | wxPyEndAllowThreads(__tstate); | |
23749 | if (PyErr_Occurred()) SWIG_fail; | |
23750 | } | |
23751 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23752 | return resultobj; | |
23753 | fail: | |
23754 | return NULL; | |
23755 | } | |
23756 | ||
23757 | ||
23758 | static PyObject *_wrap_DateSpan_Multiply(PyObject *, PyObject *args, PyObject *kwargs) { | |
23759 | PyObject *resultobj; | |
23760 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23761 | int arg2 ; | |
23762 | wxDateSpan *result; | |
23763 | PyObject * obj0 = 0 ; | |
23764 | PyObject * obj1 = 0 ; | |
23765 | char *kwnames[] = { | |
23766 | (char *) "self",(char *) "factor", NULL | |
23767 | }; | |
23768 | ||
23769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Multiply",kwnames,&obj0,&obj1)) goto fail; | |
23770 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23771 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23772 | arg2 = (int)SWIG_As_int(obj1); | |
23773 | if (PyErr_Occurred()) SWIG_fail; | |
23774 | { | |
23775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23776 | { | |
23777 | wxDateSpan &_result_ref = (arg1)->Multiply(arg2); | |
23778 | result = (wxDateSpan *) &_result_ref; | |
23779 | } | |
23780 | ||
23781 | wxPyEndAllowThreads(__tstate); | |
23782 | if (PyErr_Occurred()) SWIG_fail; | |
23783 | } | |
23784 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23785 | return resultobj; | |
23786 | fail: | |
23787 | return NULL; | |
23788 | } | |
23789 | ||
23790 | ||
23791 | static PyObject *_wrap_DateSpan___iadd__(PyObject *, PyObject *args, PyObject *kwargs) { | |
23792 | PyObject *resultobj; | |
23793 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23794 | wxDateSpan *arg2 = 0 ; | |
23795 | wxDateSpan *result; | |
23796 | PyObject * obj0 = 0 ; | |
23797 | PyObject * obj1 = 0 ; | |
23798 | char *kwnames[] = { | |
23799 | (char *) "self",(char *) "other", NULL | |
23800 | }; | |
23801 | ||
23802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
23803 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23804 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
23805 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23806 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23807 | SWIG_fail; | |
23808 | if (arg2 == NULL) { | |
23809 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23810 | SWIG_fail; | |
23811 | } | |
23812 | { | |
23813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23814 | { | |
23815 | wxDateSpan &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2); | |
23816 | result = (wxDateSpan *) &_result_ref; | |
23817 | } | |
23818 | ||
23819 | wxPyEndAllowThreads(__tstate); | |
23820 | if (PyErr_Occurred()) SWIG_fail; | |
23821 | } | |
23822 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1); | |
23823 | return resultobj; | |
23824 | fail: | |
23825 | return NULL; | |
23826 | } | |
23827 | ||
23828 | ||
23829 | static PyObject *_wrap_DateSpan___isub__(PyObject *, PyObject *args, PyObject *kwargs) { | |
23830 | PyObject *resultobj; | |
23831 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23832 | wxDateSpan *arg2 = 0 ; | |
23833 | wxDateSpan *result; | |
23834 | PyObject * obj0 = 0 ; | |
23835 | PyObject * obj1 = 0 ; | |
23836 | char *kwnames[] = { | |
23837 | (char *) "self",(char *) "other", NULL | |
23838 | }; | |
23839 | ||
23840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___isub__",kwnames,&obj0,&obj1)) goto fail; | |
23841 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23842 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
23843 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23844 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23845 | SWIG_fail; | |
23846 | if (arg2 == NULL) { | |
23847 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23848 | SWIG_fail; | |
23849 | } | |
23850 | { | |
23851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23852 | { | |
23853 | wxDateSpan &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2); | |
23854 | result = (wxDateSpan *) &_result_ref; | |
23855 | } | |
23856 | ||
23857 | wxPyEndAllowThreads(__tstate); | |
23858 | if (PyErr_Occurred()) SWIG_fail; | |
23859 | } | |
23860 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1); | |
23861 | return resultobj; | |
23862 | fail: | |
23863 | return NULL; | |
23864 | } | |
23865 | ||
23866 | ||
23867 | static PyObject *_wrap_DateSpan___neg__(PyObject *, PyObject *args, PyObject *kwargs) { | |
23868 | PyObject *resultobj; | |
23869 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23870 | wxDateSpan *result; | |
23871 | PyObject * obj0 = 0 ; | |
23872 | char *kwnames[] = { | |
23873 | (char *) "self", NULL | |
23874 | }; | |
23875 | ||
23876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan___neg__",kwnames,&obj0)) goto fail; | |
23877 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23878 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23879 | { | |
23880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23881 | { | |
23882 | wxDateSpan &_result_ref = (arg1)->operator -(); | |
23883 | result = (wxDateSpan *) &_result_ref; | |
23884 | } | |
23885 | ||
23886 | wxPyEndAllowThreads(__tstate); | |
23887 | if (PyErr_Occurred()) SWIG_fail; | |
23888 | } | |
23889 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23890 | return resultobj; | |
23891 | fail: | |
23892 | return NULL; | |
23893 | } | |
23894 | ||
23895 | ||
23896 | static PyObject *_wrap_DateSpan___imul__(PyObject *, PyObject *args, PyObject *kwargs) { | |
23897 | PyObject *resultobj; | |
23898 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23899 | int arg2 ; | |
23900 | wxDateSpan *result; | |
23901 | PyObject * obj0 = 0 ; | |
23902 | PyObject * obj1 = 0 ; | |
23903 | char *kwnames[] = { | |
23904 | (char *) "self",(char *) "factor", NULL | |
23905 | }; | |
23906 | ||
23907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___imul__",kwnames,&obj0,&obj1)) goto fail; | |
23908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23909 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
23910 | arg2 = (int)SWIG_As_int(obj1); | |
23911 | if (PyErr_Occurred()) SWIG_fail; | |
23912 | { | |
23913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23914 | { | |
23915 | wxDateSpan &_result_ref = (arg1)->operator *=(arg2); | |
23916 | result = (wxDateSpan *) &_result_ref; | |
23917 | } | |
23918 | ||
23919 | wxPyEndAllowThreads(__tstate); | |
23920 | if (PyErr_Occurred()) SWIG_fail; | |
23921 | } | |
23922 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1); | |
23923 | return resultobj; | |
23924 | fail: | |
23925 | return NULL; | |
23926 | } | |
23927 | ||
23928 | ||
23929 | static PyObject *_wrap_DateSpan___add__(PyObject *, PyObject *args, PyObject *kwargs) { | |
23930 | PyObject *resultobj; | |
23931 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23932 | wxDateSpan *arg2 = 0 ; | |
23933 | wxDateSpan result; | |
23934 | PyObject * obj0 = 0 ; | |
23935 | PyObject * obj1 = 0 ; | |
23936 | char *kwnames[] = { | |
23937 | (char *) "self",(char *) "other", NULL | |
23938 | }; | |
23939 | ||
23940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___add__",kwnames,&obj0,&obj1)) goto fail; | |
23941 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23942 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23943 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23944 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23945 | SWIG_fail; | |
23946 | if (arg2 == NULL) { | |
23947 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23948 | SWIG_fail; | |
23949 | } | |
23950 | { | |
23951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23952 | result = wxDateSpan___add__(arg1,(wxDateSpan const &)*arg2); | |
23953 | ||
23954 | wxPyEndAllowThreads(__tstate); | |
23955 | if (PyErr_Occurred()) SWIG_fail; | |
23956 | } | |
23957 | { | |
23958 | wxDateSpan * resultptr; | |
23959 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23960 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23961 | } | |
23962 | return resultobj; | |
23963 | fail: | |
23964 | return NULL; | |
23965 | } | |
23966 | ||
23967 | ||
23968 | static PyObject *_wrap_DateSpan___sub__(PyObject *, PyObject *args, PyObject *kwargs) { | |
23969 | PyObject *resultobj; | |
23970 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23971 | wxDateSpan *arg2 = 0 ; | |
23972 | wxDateSpan result; | |
23973 | PyObject * obj0 = 0 ; | |
23974 | PyObject * obj1 = 0 ; | |
23975 | char *kwnames[] = { | |
23976 | (char *) "self",(char *) "other", NULL | |
23977 | }; | |
23978 | ||
23979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___sub__",kwnames,&obj0,&obj1)) goto fail; | |
23980 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23982 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23983 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23984 | SWIG_fail; | |
23985 | if (arg2 == NULL) { | |
23986 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23987 | SWIG_fail; | |
23988 | } | |
23989 | { | |
23990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23991 | result = wxDateSpan___sub__(arg1,(wxDateSpan const &)*arg2); | |
23992 | ||
23993 | wxPyEndAllowThreads(__tstate); | |
23994 | if (PyErr_Occurred()) SWIG_fail; | |
23995 | } | |
23996 | { | |
23997 | wxDateSpan * resultptr; | |
23998 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23999 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
24000 | } | |
24001 | return resultobj; | |
24002 | fail: | |
24003 | return NULL; | |
24004 | } | |
24005 | ||
24006 | ||
24007 | static PyObject *_wrap_DateSpan___mul__(PyObject *, PyObject *args, PyObject *kwargs) { | |
24008 | PyObject *resultobj; | |
24009 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
24010 | int arg2 ; | |
24011 | wxDateSpan result; | |
24012 | PyObject * obj0 = 0 ; | |
24013 | PyObject * obj1 = 0 ; | |
24014 | char *kwnames[] = { | |
24015 | (char *) "self",(char *) "n", NULL | |
24016 | }; | |
24017 | ||
24018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___mul__",kwnames,&obj0,&obj1)) goto fail; | |
24019 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
24020 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24021 | arg2 = (int)SWIG_As_int(obj1); | |
24022 | if (PyErr_Occurred()) SWIG_fail; | |
24023 | { | |
24024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24025 | result = wxDateSpan___mul__(arg1,arg2); | |
24026 | ||
24027 | wxPyEndAllowThreads(__tstate); | |
24028 | if (PyErr_Occurred()) SWIG_fail; | |
24029 | } | |
24030 | { | |
24031 | wxDateSpan * resultptr; | |
24032 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
24033 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
24034 | } | |
24035 | return resultobj; | |
24036 | fail: | |
24037 | return NULL; | |
24038 | } | |
24039 | ||
24040 | ||
24041 | static PyObject *_wrap_DateSpan___rmul__(PyObject *, PyObject *args, PyObject *kwargs) { | |
24042 | PyObject *resultobj; | |
24043 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
24044 | int arg2 ; | |
24045 | wxDateSpan result; | |
24046 | PyObject * obj0 = 0 ; | |
24047 | PyObject * obj1 = 0 ; | |
24048 | char *kwnames[] = { | |
24049 | (char *) "self",(char *) "n", NULL | |
24050 | }; | |
24051 | ||
24052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___rmul__",kwnames,&obj0,&obj1)) goto fail; | |
24053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
24054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24055 | arg2 = (int)SWIG_As_int(obj1); | |
24056 | if (PyErr_Occurred()) SWIG_fail; | |
24057 | { | |
24058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24059 | result = wxDateSpan___rmul__(arg1,arg2); | |
24060 | ||
24061 | wxPyEndAllowThreads(__tstate); | |
24062 | if (PyErr_Occurred()) SWIG_fail; | |
24063 | } | |
24064 | { | |
24065 | wxDateSpan * resultptr; | |
24066 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
24067 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
24068 | } | |
24069 | return resultobj; | |
24070 | fail: | |
24071 | return NULL; | |
24072 | } | |
24073 | ||
24074 | ||
24075 | static PyObject *_wrap_DateSpan___eq__(PyObject *, PyObject *args, PyObject *kwargs) { | |
24076 | PyObject *resultobj; | |
24077 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
24078 | wxDateSpan *arg2 = (wxDateSpan *) 0 ; | |
24079 | bool result; | |
24080 | PyObject * obj0 = 0 ; | |
24081 | PyObject * obj1 = 0 ; | |
24082 | char *kwnames[] = { | |
24083 | (char *) "self",(char *) "other", NULL | |
24084 | }; | |
24085 | ||
24086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
24087 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
24088 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24089 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
24090 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24091 | { | |
24092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24093 | result = (bool)wxDateSpan___eq__(arg1,(wxDateSpan const *)arg2); | |
24094 | ||
24095 | wxPyEndAllowThreads(__tstate); | |
24096 | if (PyErr_Occurred()) SWIG_fail; | |
24097 | } | |
24098 | { | |
24099 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24100 | } | |
24101 | return resultobj; | |
24102 | fail: | |
24103 | return NULL; | |
24104 | } | |
24105 | ||
24106 | ||
24107 | static PyObject *_wrap_DateSpan___ne__(PyObject *, PyObject *args, PyObject *kwargs) { | |
24108 | PyObject *resultobj; | |
24109 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
24110 | wxDateSpan *arg2 = (wxDateSpan *) 0 ; | |
24111 | bool result; | |
24112 | PyObject * obj0 = 0 ; | |
24113 | PyObject * obj1 = 0 ; | |
24114 | char *kwnames[] = { | |
24115 | (char *) "self",(char *) "other", NULL | |
24116 | }; | |
24117 | ||
24118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
24119 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
24120 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24121 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
24122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24123 | { | |
24124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24125 | result = (bool)wxDateSpan___ne__(arg1,(wxDateSpan const *)arg2); | |
24126 | ||
24127 | wxPyEndAllowThreads(__tstate); | |
24128 | if (PyErr_Occurred()) SWIG_fail; | |
24129 | } | |
24130 | { | |
24131 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24132 | } | |
24133 | return resultobj; | |
24134 | fail: | |
24135 | return NULL; | |
24136 | } | |
24137 | ||
24138 | ||
24139 | static PyObject * DateSpan_swigregister(PyObject *, PyObject *args) { | |
24140 | PyObject *obj; | |
24141 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24142 | SWIG_TypeClientData(SWIGTYPE_p_wxDateSpan, obj); | |
24143 | Py_INCREF(obj); | |
24144 | return Py_BuildValue((char *)""); | |
24145 | } | |
24146 | static PyObject *_wrap_GetLocalTime(PyObject *, PyObject *args, PyObject *kwargs) { | |
24147 | PyObject *resultobj; | |
24148 | long result; | |
24149 | char *kwnames[] = { | |
24150 | NULL | |
24151 | }; | |
24152 | ||
24153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTime",kwnames)) goto fail; | |
24154 | { | |
24155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24156 | result = (long)wxGetLocalTime(); | |
24157 | ||
24158 | wxPyEndAllowThreads(__tstate); | |
24159 | if (PyErr_Occurred()) SWIG_fail; | |
24160 | } | |
24161 | resultobj = SWIG_From_long((long)result); | |
24162 | return resultobj; | |
24163 | fail: | |
24164 | return NULL; | |
24165 | } | |
24166 | ||
24167 | ||
24168 | static PyObject *_wrap_GetUTCTime(PyObject *, PyObject *args, PyObject *kwargs) { | |
24169 | PyObject *resultobj; | |
24170 | long result; | |
24171 | char *kwnames[] = { | |
24172 | NULL | |
24173 | }; | |
24174 | ||
24175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUTCTime",kwnames)) goto fail; | |
24176 | { | |
24177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24178 | result = (long)wxGetUTCTime(); | |
24179 | ||
24180 | wxPyEndAllowThreads(__tstate); | |
24181 | if (PyErr_Occurred()) SWIG_fail; | |
24182 | } | |
24183 | resultobj = SWIG_From_long((long)result); | |
24184 | return resultobj; | |
24185 | fail: | |
24186 | return NULL; | |
24187 | } | |
24188 | ||
24189 | ||
24190 | static PyObject *_wrap_GetCurrentTime(PyObject *, PyObject *args, PyObject *kwargs) { | |
24191 | PyObject *resultobj; | |
24192 | long result; | |
24193 | char *kwnames[] = { | |
24194 | NULL | |
24195 | }; | |
24196 | ||
24197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentTime",kwnames)) goto fail; | |
24198 | { | |
24199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24200 | result = (long)wxGetCurrentTime(); | |
24201 | ||
24202 | wxPyEndAllowThreads(__tstate); | |
24203 | if (PyErr_Occurred()) SWIG_fail; | |
24204 | } | |
24205 | resultobj = SWIG_From_long((long)result); | |
24206 | return resultobj; | |
24207 | fail: | |
24208 | return NULL; | |
24209 | } | |
24210 | ||
24211 | ||
24212 | static PyObject *_wrap_GetLocalTimeMillis(PyObject *, PyObject *args, PyObject *kwargs) { | |
24213 | PyObject *resultobj; | |
24214 | wxLongLong result; | |
24215 | char *kwnames[] = { | |
24216 | NULL | |
24217 | }; | |
24218 | ||
24219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTimeMillis",kwnames)) goto fail; | |
24220 | { | |
24221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24222 | result = wxGetLocalTimeMillis(); | |
24223 | ||
24224 | wxPyEndAllowThreads(__tstate); | |
24225 | if (PyErr_Occurred()) SWIG_fail; | |
24226 | } | |
24227 | { | |
24228 | PyObject *hi, *lo, *shifter, *shifted; | |
24229 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
24230 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
24231 | shifter = PyLong_FromLong(32); | |
24232 | shifted = PyNumber_Lshift(hi, shifter); | |
24233 | resultobj = PyNumber_Or(shifted, lo); | |
24234 | Py_DECREF(hi); | |
24235 | Py_DECREF(lo); | |
24236 | Py_DECREF(shifter); | |
24237 | Py_DECREF(shifted); | |
24238 | } | |
24239 | return resultobj; | |
24240 | fail: | |
24241 | return NULL; | |
24242 | } | |
24243 | ||
24244 | ||
24245 | static int _wrap_DefaultDateTime_set(PyObject *) { | |
24246 | PyErr_SetString(PyExc_TypeError,"Variable DefaultDateTime is read-only."); | |
24247 | return 1; | |
24248 | } | |
24249 | ||
24250 | ||
24251 | static PyObject *_wrap_DefaultDateTime_get() { | |
24252 | PyObject *pyobj; | |
24253 | ||
24254 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultDateTime), SWIGTYPE_p_wxDateTime, 0); | |
24255 | return pyobj; | |
24256 | } | |
24257 | ||
24258 | ||
24259 | static PyObject *_wrap_new_DataFormat(PyObject *, PyObject *args, PyObject *kwargs) { | |
24260 | PyObject *resultobj; | |
24261 | int arg1 ; | |
24262 | wxDataFormat *result; | |
24263 | PyObject * obj0 = 0 ; | |
24264 | char *kwnames[] = { | |
24265 | (char *) "type", NULL | |
24266 | }; | |
24267 | ||
24268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DataFormat",kwnames,&obj0)) goto fail; | |
24269 | arg1 = (int)SWIG_As_int(obj0); | |
24270 | if (PyErr_Occurred()) SWIG_fail; | |
24271 | { | |
24272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24273 | result = (wxDataFormat *)new wxDataFormat((wxDataFormatId )arg1); | |
24274 | ||
24275 | wxPyEndAllowThreads(__tstate); | |
24276 | if (PyErr_Occurred()) SWIG_fail; | |
24277 | } | |
24278 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1); | |
24279 | return resultobj; | |
24280 | fail: | |
24281 | return NULL; | |
24282 | } | |
24283 | ||
24284 | ||
24285 | static PyObject *_wrap_new_CustomDataFormat(PyObject *, PyObject *args, PyObject *kwargs) { | |
24286 | PyObject *resultobj; | |
24287 | wxString *arg1 = 0 ; | |
24288 | wxDataFormat *result; | |
24289 | bool temp1 = false ; | |
24290 | PyObject * obj0 = 0 ; | |
24291 | char *kwnames[] = { | |
24292 | (char *) "format", NULL | |
24293 | }; | |
24294 | ||
24295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CustomDataFormat",kwnames,&obj0)) goto fail; | |
24296 | { | |
24297 | arg1 = wxString_in_helper(obj0); | |
24298 | if (arg1 == NULL) SWIG_fail; | |
24299 | temp1 = true; | |
24300 | } | |
24301 | { | |
24302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24303 | result = (wxDataFormat *)new wxDataFormat((wxString const &)*arg1); | |
24304 | ||
24305 | wxPyEndAllowThreads(__tstate); | |
24306 | if (PyErr_Occurred()) SWIG_fail; | |
24307 | } | |
24308 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1); | |
24309 | { | |
24310 | if (temp1) | |
24311 | delete arg1; | |
24312 | } | |
24313 | return resultobj; | |
24314 | fail: | |
24315 | { | |
24316 | if (temp1) | |
24317 | delete arg1; | |
24318 | } | |
24319 | return NULL; | |
24320 | } | |
24321 | ||
24322 | ||
24323 | static PyObject *_wrap_delete_DataFormat(PyObject *, PyObject *args, PyObject *kwargs) { | |
24324 | PyObject *resultobj; | |
24325 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24326 | PyObject * obj0 = 0 ; | |
24327 | char *kwnames[] = { | |
24328 | (char *) "self", NULL | |
24329 | }; | |
24330 | ||
24331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataFormat",kwnames,&obj0)) goto fail; | |
24332 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24333 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24334 | { | |
24335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24336 | delete arg1; | |
24337 | ||
24338 | wxPyEndAllowThreads(__tstate); | |
24339 | if (PyErr_Occurred()) SWIG_fail; | |
24340 | } | |
24341 | Py_INCREF(Py_None); resultobj = Py_None; | |
24342 | return resultobj; | |
24343 | fail: | |
24344 | return NULL; | |
24345 | } | |
24346 | ||
24347 | ||
24348 | static PyObject *_wrap_DataFormat___eq____SWIG_0(PyObject *, PyObject *args) { | |
24349 | PyObject *resultobj; | |
24350 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24351 | int arg2 ; | |
24352 | bool result; | |
24353 | PyObject * obj0 = 0 ; | |
24354 | PyObject * obj1 = 0 ; | |
24355 | ||
24356 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail; | |
24357 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24358 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24359 | arg2 = (int)SWIG_As_int(obj1); | |
24360 | if (PyErr_Occurred()) SWIG_fail; | |
24361 | { | |
24362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24363 | result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormatId )arg2); | |
24364 | ||
24365 | wxPyEndAllowThreads(__tstate); | |
24366 | if (PyErr_Occurred()) SWIG_fail; | |
24367 | } | |
24368 | { | |
24369 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24370 | } | |
24371 | return resultobj; | |
24372 | fail: | |
24373 | return NULL; | |
24374 | } | |
24375 | ||
24376 | ||
24377 | static PyObject *_wrap_DataFormat___ne____SWIG_0(PyObject *, PyObject *args) { | |
24378 | PyObject *resultobj; | |
24379 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24380 | int arg2 ; | |
24381 | bool result; | |
24382 | PyObject * obj0 = 0 ; | |
24383 | PyObject * obj1 = 0 ; | |
24384 | ||
24385 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail; | |
24386 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24387 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24388 | arg2 = (int)SWIG_As_int(obj1); | |
24389 | if (PyErr_Occurred()) SWIG_fail; | |
24390 | { | |
24391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24392 | result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormatId )arg2); | |
24393 | ||
24394 | wxPyEndAllowThreads(__tstate); | |
24395 | if (PyErr_Occurred()) SWIG_fail; | |
24396 | } | |
24397 | { | |
24398 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24399 | } | |
24400 | return resultobj; | |
24401 | fail: | |
24402 | return NULL; | |
24403 | } | |
24404 | ||
24405 | ||
24406 | static PyObject *_wrap_DataFormat___eq____SWIG_1(PyObject *, PyObject *args) { | |
24407 | PyObject *resultobj; | |
24408 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24409 | wxDataFormat *arg2 = 0 ; | |
24410 | bool result; | |
24411 | PyObject * obj0 = 0 ; | |
24412 | PyObject * obj1 = 0 ; | |
24413 | ||
24414 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail; | |
24415 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24416 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24417 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24418 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24419 | SWIG_fail; | |
24420 | if (arg2 == NULL) { | |
24421 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24422 | SWIG_fail; | |
24423 | } | |
24424 | { | |
24425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24426 | result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormat const &)*arg2); | |
24427 | ||
24428 | wxPyEndAllowThreads(__tstate); | |
24429 | if (PyErr_Occurred()) SWIG_fail; | |
24430 | } | |
24431 | { | |
24432 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24433 | } | |
24434 | return resultobj; | |
24435 | fail: | |
24436 | return NULL; | |
24437 | } | |
24438 | ||
24439 | ||
24440 | static PyObject *_wrap_DataFormat___eq__(PyObject *self, PyObject *args) { | |
24441 | int argc; | |
24442 | PyObject *argv[3]; | |
24443 | int ii; | |
24444 | ||
24445 | argc = PyObject_Length(args); | |
24446 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
24447 | argv[ii] = PyTuple_GetItem(args,ii); | |
24448 | } | |
24449 | if (argc == 2) { | |
24450 | int _v; | |
24451 | { | |
24452 | void *ptr; | |
24453 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
24454 | _v = 0; | |
24455 | PyErr_Clear(); | |
24456 | } else { | |
24457 | _v = 1; | |
24458 | } | |
24459 | } | |
24460 | if (_v) { | |
24461 | { | |
24462 | void *ptr; | |
24463 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
24464 | _v = 0; | |
24465 | PyErr_Clear(); | |
24466 | } else { | |
24467 | _v = 1; | |
24468 | } | |
24469 | } | |
24470 | if (_v) { | |
24471 | return _wrap_DataFormat___eq____SWIG_1(self,args); | |
24472 | } | |
24473 | } | |
24474 | } | |
24475 | if (argc == 2) { | |
24476 | int _v; | |
24477 | { | |
24478 | void *ptr; | |
24479 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
24480 | _v = 0; | |
24481 | PyErr_Clear(); | |
24482 | } else { | |
24483 | _v = 1; | |
24484 | } | |
24485 | } | |
24486 | if (_v) { | |
24487 | _v = SWIG_Check_int(argv[1]); | |
24488 | if (_v) { | |
24489 | return _wrap_DataFormat___eq____SWIG_0(self,args); | |
24490 | } | |
24491 | } | |
24492 | } | |
24493 | ||
24494 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___eq__'"); | |
24495 | return NULL; | |
24496 | } | |
24497 | ||
24498 | ||
24499 | static PyObject *_wrap_DataFormat___ne____SWIG_1(PyObject *, PyObject *args) { | |
24500 | PyObject *resultobj; | |
24501 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24502 | wxDataFormat *arg2 = 0 ; | |
24503 | bool result; | |
24504 | PyObject * obj0 = 0 ; | |
24505 | PyObject * obj1 = 0 ; | |
24506 | ||
24507 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail; | |
24508 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24510 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24511 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24512 | SWIG_fail; | |
24513 | if (arg2 == NULL) { | |
24514 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24515 | SWIG_fail; | |
24516 | } | |
24517 | { | |
24518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24519 | result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormat const &)*arg2); | |
24520 | ||
24521 | wxPyEndAllowThreads(__tstate); | |
24522 | if (PyErr_Occurred()) SWIG_fail; | |
24523 | } | |
24524 | { | |
24525 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24526 | } | |
24527 | return resultobj; | |
24528 | fail: | |
24529 | return NULL; | |
24530 | } | |
24531 | ||
24532 | ||
24533 | static PyObject *_wrap_DataFormat___ne__(PyObject *self, PyObject *args) { | |
24534 | int argc; | |
24535 | PyObject *argv[3]; | |
24536 | int ii; | |
24537 | ||
24538 | argc = PyObject_Length(args); | |
24539 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
24540 | argv[ii] = PyTuple_GetItem(args,ii); | |
24541 | } | |
24542 | if (argc == 2) { | |
24543 | int _v; | |
24544 | { | |
24545 | void *ptr; | |
24546 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
24547 | _v = 0; | |
24548 | PyErr_Clear(); | |
24549 | } else { | |
24550 | _v = 1; | |
24551 | } | |
24552 | } | |
24553 | if (_v) { | |
24554 | { | |
24555 | void *ptr; | |
24556 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
24557 | _v = 0; | |
24558 | PyErr_Clear(); | |
24559 | } else { | |
24560 | _v = 1; | |
24561 | } | |
24562 | } | |
24563 | if (_v) { | |
24564 | return _wrap_DataFormat___ne____SWIG_1(self,args); | |
24565 | } | |
24566 | } | |
24567 | } | |
24568 | if (argc == 2) { | |
24569 | int _v; | |
24570 | { | |
24571 | void *ptr; | |
24572 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
24573 | _v = 0; | |
24574 | PyErr_Clear(); | |
24575 | } else { | |
24576 | _v = 1; | |
24577 | } | |
24578 | } | |
24579 | if (_v) { | |
24580 | _v = SWIG_Check_int(argv[1]); | |
24581 | if (_v) { | |
24582 | return _wrap_DataFormat___ne____SWIG_0(self,args); | |
24583 | } | |
24584 | } | |
24585 | } | |
24586 | ||
24587 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___ne__'"); | |
24588 | return NULL; | |
24589 | } | |
24590 | ||
24591 | ||
24592 | static PyObject *_wrap_DataFormat_SetType(PyObject *, PyObject *args, PyObject *kwargs) { | |
24593 | PyObject *resultobj; | |
24594 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24595 | int arg2 ; | |
24596 | PyObject * obj0 = 0 ; | |
24597 | PyObject * obj1 = 0 ; | |
24598 | char *kwnames[] = { | |
24599 | (char *) "self",(char *) "format", NULL | |
24600 | }; | |
24601 | ||
24602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetType",kwnames,&obj0,&obj1)) goto fail; | |
24603 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24604 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24605 | arg2 = (int)SWIG_As_int(obj1); | |
24606 | if (PyErr_Occurred()) SWIG_fail; | |
24607 | { | |
24608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24609 | (arg1)->SetType((wxDataFormatId )arg2); | |
24610 | ||
24611 | wxPyEndAllowThreads(__tstate); | |
24612 | if (PyErr_Occurred()) SWIG_fail; | |
24613 | } | |
24614 | Py_INCREF(Py_None); resultobj = Py_None; | |
24615 | return resultobj; | |
24616 | fail: | |
24617 | return NULL; | |
24618 | } | |
24619 | ||
24620 | ||
24621 | static PyObject *_wrap_DataFormat_GetType(PyObject *, PyObject *args, PyObject *kwargs) { | |
24622 | PyObject *resultobj; | |
24623 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24624 | int result; | |
24625 | PyObject * obj0 = 0 ; | |
24626 | char *kwnames[] = { | |
24627 | (char *) "self", NULL | |
24628 | }; | |
24629 | ||
24630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetType",kwnames,&obj0)) goto fail; | |
24631 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24632 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24633 | { | |
24634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24635 | result = (int)((wxDataFormat const *)arg1)->GetType(); | |
24636 | ||
24637 | wxPyEndAllowThreads(__tstate); | |
24638 | if (PyErr_Occurred()) SWIG_fail; | |
24639 | } | |
24640 | resultobj = SWIG_From_int((int)result); | |
24641 | return resultobj; | |
24642 | fail: | |
24643 | return NULL; | |
24644 | } | |
24645 | ||
24646 | ||
24647 | static PyObject *_wrap_DataFormat_GetId(PyObject *, PyObject *args, PyObject *kwargs) { | |
24648 | PyObject *resultobj; | |
24649 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24650 | wxString result; | |
24651 | PyObject * obj0 = 0 ; | |
24652 | char *kwnames[] = { | |
24653 | (char *) "self", NULL | |
24654 | }; | |
24655 | ||
24656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetId",kwnames,&obj0)) goto fail; | |
24657 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24659 | { | |
24660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24661 | result = ((wxDataFormat const *)arg1)->GetId(); | |
24662 | ||
24663 | wxPyEndAllowThreads(__tstate); | |
24664 | if (PyErr_Occurred()) SWIG_fail; | |
24665 | } | |
24666 | { | |
24667 | #if wxUSE_UNICODE | |
24668 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24669 | #else | |
24670 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24671 | #endif | |
24672 | } | |
24673 | return resultobj; | |
24674 | fail: | |
24675 | return NULL; | |
24676 | } | |
24677 | ||
24678 | ||
24679 | static PyObject *_wrap_DataFormat_SetId(PyObject *, PyObject *args, PyObject *kwargs) { | |
24680 | PyObject *resultobj; | |
24681 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24682 | wxString *arg2 = 0 ; | |
24683 | bool temp2 = false ; | |
24684 | PyObject * obj0 = 0 ; | |
24685 | PyObject * obj1 = 0 ; | |
24686 | char *kwnames[] = { | |
24687 | (char *) "self",(char *) "format", NULL | |
24688 | }; | |
24689 | ||
24690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetId",kwnames,&obj0,&obj1)) goto fail; | |
24691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24693 | { | |
24694 | arg2 = wxString_in_helper(obj1); | |
24695 | if (arg2 == NULL) SWIG_fail; | |
24696 | temp2 = true; | |
24697 | } | |
24698 | { | |
24699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24700 | (arg1)->SetId((wxString const &)*arg2); | |
24701 | ||
24702 | wxPyEndAllowThreads(__tstate); | |
24703 | if (PyErr_Occurred()) SWIG_fail; | |
24704 | } | |
24705 | Py_INCREF(Py_None); resultobj = Py_None; | |
24706 | { | |
24707 | if (temp2) | |
24708 | delete arg2; | |
24709 | } | |
24710 | return resultobj; | |
24711 | fail: | |
24712 | { | |
24713 | if (temp2) | |
24714 | delete arg2; | |
24715 | } | |
24716 | return NULL; | |
24717 | } | |
24718 | ||
24719 | ||
24720 | static PyObject * DataFormat_swigregister(PyObject *, PyObject *args) { | |
24721 | PyObject *obj; | |
24722 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24723 | SWIG_TypeClientData(SWIGTYPE_p_wxDataFormat, obj); | |
24724 | Py_INCREF(obj); | |
24725 | return Py_BuildValue((char *)""); | |
24726 | } | |
24727 | static int _wrap_FormatInvalid_set(PyObject *) { | |
24728 | PyErr_SetString(PyExc_TypeError,"Variable FormatInvalid is read-only."); | |
24729 | return 1; | |
24730 | } | |
24731 | ||
24732 | ||
24733 | static PyObject *_wrap_FormatInvalid_get() { | |
24734 | PyObject *pyobj; | |
24735 | ||
24736 | pyobj = SWIG_NewPointerObj((void *)(&wxFormatInvalid), SWIGTYPE_p_wxDataFormat, 0); | |
24737 | return pyobj; | |
24738 | } | |
24739 | ||
24740 | ||
24741 | static PyObject *_wrap_delete_DataObject(PyObject *, PyObject *args, PyObject *kwargs) { | |
24742 | PyObject *resultobj; | |
24743 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24744 | PyObject * obj0 = 0 ; | |
24745 | char *kwnames[] = { | |
24746 | (char *) "self", NULL | |
24747 | }; | |
24748 | ||
24749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataObject",kwnames,&obj0)) goto fail; | |
24750 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
24751 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24752 | { | |
24753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24754 | delete arg1; | |
24755 | ||
24756 | wxPyEndAllowThreads(__tstate); | |
24757 | if (PyErr_Occurred()) SWIG_fail; | |
24758 | } | |
24759 | Py_INCREF(Py_None); resultobj = Py_None; | |
24760 | return resultobj; | |
24761 | fail: | |
24762 | return NULL; | |
24763 | } | |
24764 | ||
24765 | ||
24766 | static PyObject *_wrap_DataObject_GetPreferredFormat(PyObject *, PyObject *args, PyObject *kwargs) { | |
24767 | PyObject *resultobj; | |
24768 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24769 | int arg2 = (int) wxDataObject::Get ; | |
24770 | SwigValueWrapper< wxDataFormat > result; | |
24771 | PyObject * obj0 = 0 ; | |
24772 | PyObject * obj1 = 0 ; | |
24773 | char *kwnames[] = { | |
24774 | (char *) "self",(char *) "dir", NULL | |
24775 | }; | |
24776 | ||
24777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetPreferredFormat",kwnames,&obj0,&obj1)) goto fail; | |
24778 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
24779 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24780 | if (obj1) { | |
24781 | arg2 = (int)SWIG_As_int(obj1); | |
24782 | if (PyErr_Occurred()) SWIG_fail; | |
24783 | } | |
24784 | { | |
24785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24786 | result = ((wxDataObject const *)arg1)->GetPreferredFormat((wxDataObject::Direction )arg2); | |
24787 | ||
24788 | wxPyEndAllowThreads(__tstate); | |
24789 | if (PyErr_Occurred()) SWIG_fail; | |
24790 | } | |
24791 | { | |
24792 | wxDataFormat * resultptr; | |
24793 | resultptr = new wxDataFormat((wxDataFormat &) result); | |
24794 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDataFormat, 1); | |
24795 | } | |
24796 | return resultobj; | |
24797 | fail: | |
24798 | return NULL; | |
24799 | } | |
24800 | ||
24801 | ||
24802 | static PyObject *_wrap_DataObject_GetFormatCount(PyObject *, PyObject *args, PyObject *kwargs) { | |
24803 | PyObject *resultobj; | |
24804 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24805 | int arg2 = (int) wxDataObject::Get ; | |
24806 | size_t result; | |
24807 | PyObject * obj0 = 0 ; | |
24808 | PyObject * obj1 = 0 ; | |
24809 | char *kwnames[] = { | |
24810 | (char *) "self",(char *) "dir", NULL | |
24811 | }; | |
24812 | ||
24813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetFormatCount",kwnames,&obj0,&obj1)) goto fail; | |
24814 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
24815 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24816 | if (obj1) { | |
24817 | arg2 = (int)SWIG_As_int(obj1); | |
24818 | if (PyErr_Occurred()) SWIG_fail; | |
24819 | } | |
24820 | { | |
24821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24822 | result = (size_t)((wxDataObject const *)arg1)->GetFormatCount((wxDataObject::Direction )arg2); | |
24823 | ||
24824 | wxPyEndAllowThreads(__tstate); | |
24825 | if (PyErr_Occurred()) SWIG_fail; | |
24826 | } | |
24827 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); | |
24828 | return resultobj; | |
24829 | fail: | |
24830 | return NULL; | |
24831 | } | |
24832 | ||
24833 | ||
24834 | static PyObject *_wrap_DataObject_IsSupported(PyObject *, PyObject *args, PyObject *kwargs) { | |
24835 | PyObject *resultobj; | |
24836 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24837 | wxDataFormat *arg2 = 0 ; | |
24838 | int arg3 = (int) wxDataObject::Get ; | |
24839 | bool result; | |
24840 | PyObject * obj0 = 0 ; | |
24841 | PyObject * obj1 = 0 ; | |
24842 | PyObject * obj2 = 0 ; | |
24843 | char *kwnames[] = { | |
24844 | (char *) "self",(char *) "format",(char *) "dir", NULL | |
24845 | }; | |
24846 | ||
24847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_IsSupported",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24848 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
24849 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24850 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24851 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24852 | SWIG_fail; | |
24853 | if (arg2 == NULL) { | |
24854 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24855 | SWIG_fail; | |
24856 | } | |
24857 | if (obj2) { | |
24858 | arg3 = (int)SWIG_As_int(obj2); | |
24859 | if (PyErr_Occurred()) SWIG_fail; | |
24860 | } | |
24861 | { | |
24862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24863 | result = (bool)((wxDataObject const *)arg1)->IsSupported((wxDataFormat const &)*arg2,(wxDataObject::Direction )arg3); | |
24864 | ||
24865 | wxPyEndAllowThreads(__tstate); | |
24866 | if (PyErr_Occurred()) SWIG_fail; | |
24867 | } | |
24868 | { | |
24869 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24870 | } | |
24871 | return resultobj; | |
24872 | fail: | |
24873 | return NULL; | |
24874 | } | |
24875 | ||
24876 | ||
24877 | static PyObject *_wrap_DataObject_GetDataSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
24878 | PyObject *resultobj; | |
24879 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24880 | wxDataFormat *arg2 = 0 ; | |
24881 | size_t result; | |
24882 | PyObject * obj0 = 0 ; | |
24883 | PyObject * obj1 = 0 ; | |
24884 | char *kwnames[] = { | |
24885 | (char *) "self",(char *) "format", NULL | |
24886 | }; | |
24887 | ||
24888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataSize",kwnames,&obj0,&obj1)) goto fail; | |
24889 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
24890 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24891 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24892 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24893 | SWIG_fail; | |
24894 | if (arg2 == NULL) { | |
24895 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24896 | SWIG_fail; | |
24897 | } | |
24898 | { | |
24899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24900 | result = (size_t)((wxDataObject const *)arg1)->GetDataSize((wxDataFormat const &)*arg2); | |
24901 | ||
24902 | wxPyEndAllowThreads(__tstate); | |
24903 | if (PyErr_Occurred()) SWIG_fail; | |
24904 | } | |
24905 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); | |
24906 | return resultobj; | |
24907 | fail: | |
24908 | return NULL; | |
24909 | } | |
24910 | ||
24911 | ||
24912 | static PyObject *_wrap_DataObject_GetAllFormats(PyObject *, PyObject *args, PyObject *kwargs) { | |
24913 | PyObject *resultobj; | |
24914 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24915 | int arg2 = (int) wxDataObject::Get ; | |
24916 | PyObject *result; | |
24917 | PyObject * obj0 = 0 ; | |
24918 | PyObject * obj1 = 0 ; | |
24919 | char *kwnames[] = { | |
24920 | (char *) "self",(char *) "dir", NULL | |
24921 | }; | |
24922 | ||
24923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetAllFormats",kwnames,&obj0,&obj1)) goto fail; | |
24924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
24925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24926 | if (obj1) { | |
24927 | arg2 = (int)SWIG_As_int(obj1); | |
24928 | if (PyErr_Occurred()) SWIG_fail; | |
24929 | } | |
24930 | { | |
24931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24932 | result = (PyObject *)wxDataObject_GetAllFormats(arg1,(wxDataObject::Direction )arg2); | |
24933 | ||
24934 | wxPyEndAllowThreads(__tstate); | |
24935 | if (PyErr_Occurred()) SWIG_fail; | |
24936 | } | |
24937 | resultobj = result; | |
24938 | return resultobj; | |
24939 | fail: | |
24940 | return NULL; | |
24941 | } | |
24942 | ||
24943 | ||
24944 | static PyObject *_wrap_DataObject_GetDataHere(PyObject *, PyObject *args, PyObject *kwargs) { | |
24945 | PyObject *resultobj; | |
24946 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24947 | wxDataFormat *arg2 = 0 ; | |
24948 | PyObject *result; | |
24949 | PyObject * obj0 = 0 ; | |
24950 | PyObject * obj1 = 0 ; | |
24951 | char *kwnames[] = { | |
24952 | (char *) "self",(char *) "format", NULL | |
24953 | }; | |
24954 | ||
24955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataHere",kwnames,&obj0,&obj1)) goto fail; | |
24956 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
24957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24958 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24959 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24960 | SWIG_fail; | |
24961 | if (arg2 == NULL) { | |
24962 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24963 | SWIG_fail; | |
24964 | } | |
24965 | { | |
24966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24967 | result = (PyObject *)wxDataObject_GetDataHere(arg1,(wxDataFormat const &)*arg2); | |
24968 | ||
24969 | wxPyEndAllowThreads(__tstate); | |
24970 | if (PyErr_Occurred()) SWIG_fail; | |
24971 | } | |
24972 | resultobj = result; | |
24973 | return resultobj; | |
24974 | fail: | |
24975 | return NULL; | |
24976 | } | |
24977 | ||
24978 | ||
24979 | static PyObject *_wrap_DataObject_SetData(PyObject *, PyObject *args, PyObject *kwargs) { | |
24980 | PyObject *resultobj; | |
24981 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24982 | wxDataFormat *arg2 = 0 ; | |
24983 | PyObject *arg3 = (PyObject *) 0 ; | |
24984 | bool result; | |
24985 | PyObject * obj0 = 0 ; | |
24986 | PyObject * obj1 = 0 ; | |
24987 | PyObject * obj2 = 0 ; | |
24988 | char *kwnames[] = { | |
24989 | (char *) "self",(char *) "format",(char *) "data", NULL | |
24990 | }; | |
24991 | ||
24992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DataObject_SetData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24993 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
24994 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24995 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24996 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24997 | SWIG_fail; | |
24998 | if (arg2 == NULL) { | |
24999 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25000 | SWIG_fail; | |
25001 | } | |
25002 | arg3 = obj2; | |
25003 | { | |
25004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25005 | result = (bool)wxDataObject_SetData(arg1,(wxDataFormat const &)*arg2,arg3); | |
25006 | ||
25007 | wxPyEndAllowThreads(__tstate); | |
25008 | if (PyErr_Occurred()) SWIG_fail; | |
25009 | } | |
25010 | { | |
25011 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25012 | } | |
25013 | return resultobj; | |
25014 | fail: | |
25015 | return NULL; | |
25016 | } | |
25017 | ||
25018 | ||
25019 | static PyObject * DataObject_swigregister(PyObject *, PyObject *args) { | |
25020 | PyObject *obj; | |
25021 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25022 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObject, obj); | |
25023 | Py_INCREF(obj); | |
25024 | return Py_BuildValue((char *)""); | |
25025 | } | |
25026 | static PyObject *_wrap_new_DataObjectSimple(PyObject *, PyObject *args, PyObject *kwargs) { | |
25027 | PyObject *resultobj; | |
25028 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
25029 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
25030 | wxDataObjectSimple *result; | |
25031 | PyObject * obj0 = 0 ; | |
25032 | char *kwnames[] = { | |
25033 | (char *) "format", NULL | |
25034 | }; | |
25035 | ||
25036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DataObjectSimple",kwnames,&obj0)) goto fail; | |
25037 | if (obj0) { | |
25038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
25039 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25040 | SWIG_fail; | |
25041 | if (arg1 == NULL) { | |
25042 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25043 | SWIG_fail; | |
25044 | } | |
25045 | } | |
25046 | { | |
25047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25048 | result = (wxDataObjectSimple *)new wxDataObjectSimple((wxDataFormat const &)*arg1); | |
25049 | ||
25050 | wxPyEndAllowThreads(__tstate); | |
25051 | if (PyErr_Occurred()) SWIG_fail; | |
25052 | } | |
25053 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectSimple, 1); | |
25054 | return resultobj; | |
25055 | fail: | |
25056 | return NULL; | |
25057 | } | |
25058 | ||
25059 | ||
25060 | static PyObject *_wrap_DataObjectSimple_GetFormat(PyObject *, PyObject *args, PyObject *kwargs) { | |
25061 | PyObject *resultobj; | |
25062 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
25063 | wxDataFormat *result; | |
25064 | PyObject * obj0 = 0 ; | |
25065 | char *kwnames[] = { | |
25066 | (char *) "self", NULL | |
25067 | }; | |
25068 | ||
25069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetFormat",kwnames,&obj0)) goto fail; | |
25070 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, | |
25071 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25072 | { | |
25073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25074 | { | |
25075 | wxDataFormat const &_result_ref = (arg1)->GetFormat(); | |
25076 | result = (wxDataFormat *) &_result_ref; | |
25077 | } | |
25078 | ||
25079 | wxPyEndAllowThreads(__tstate); | |
25080 | if (PyErr_Occurred()) SWIG_fail; | |
25081 | } | |
25082 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 0); | |
25083 | return resultobj; | |
25084 | fail: | |
25085 | return NULL; | |
25086 | } | |
25087 | ||
25088 | ||
25089 | static PyObject *_wrap_DataObjectSimple_SetFormat(PyObject *, PyObject *args, PyObject *kwargs) { | |
25090 | PyObject *resultobj; | |
25091 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
25092 | wxDataFormat *arg2 = 0 ; | |
25093 | PyObject * obj0 = 0 ; | |
25094 | PyObject * obj1 = 0 ; | |
25095 | char *kwnames[] = { | |
25096 | (char *) "self",(char *) "format", NULL | |
25097 | }; | |
25098 | ||
25099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetFormat",kwnames,&obj0,&obj1)) goto fail; | |
25100 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, | |
25101 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25102 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
25103 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25104 | SWIG_fail; | |
25105 | if (arg2 == NULL) { | |
25106 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25107 | SWIG_fail; | |
25108 | } | |
25109 | { | |
25110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25111 | (arg1)->SetFormat((wxDataFormat const &)*arg2); | |
25112 | ||
25113 | wxPyEndAllowThreads(__tstate); | |
25114 | if (PyErr_Occurred()) SWIG_fail; | |
25115 | } | |
25116 | Py_INCREF(Py_None); resultobj = Py_None; | |
25117 | return resultobj; | |
25118 | fail: | |
25119 | return NULL; | |
25120 | } | |
25121 | ||
25122 | ||
25123 | static PyObject *_wrap_DataObjectSimple_GetDataSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
25124 | PyObject *resultobj; | |
25125 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
25126 | size_t result; | |
25127 | PyObject * obj0 = 0 ; | |
25128 | char *kwnames[] = { | |
25129 | (char *) "self", NULL | |
25130 | }; | |
25131 | ||
25132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataSize",kwnames,&obj0)) goto fail; | |
25133 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, | |
25134 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25135 | { | |
25136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25137 | result = (size_t)((wxDataObjectSimple const *)arg1)->GetDataSize(); | |
25138 | ||
25139 | wxPyEndAllowThreads(__tstate); | |
25140 | if (PyErr_Occurred()) SWIG_fail; | |
25141 | } | |
25142 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); | |
25143 | return resultobj; | |
25144 | fail: | |
25145 | return NULL; | |
25146 | } | |
25147 | ||
25148 | ||
25149 | static PyObject *_wrap_DataObjectSimple_GetDataHere(PyObject *, PyObject *args, PyObject *kwargs) { | |
25150 | PyObject *resultobj; | |
25151 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
25152 | PyObject *result; | |
25153 | PyObject * obj0 = 0 ; | |
25154 | char *kwnames[] = { | |
25155 | (char *) "self", NULL | |
25156 | }; | |
25157 | ||
25158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataHere",kwnames,&obj0)) goto fail; | |
25159 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, | |
25160 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25161 | { | |
25162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25163 | result = (PyObject *)wxDataObjectSimple_GetDataHere(arg1); | |
25164 | ||
25165 | wxPyEndAllowThreads(__tstate); | |
25166 | if (PyErr_Occurred()) SWIG_fail; | |
25167 | } | |
25168 | resultobj = result; | |
25169 | return resultobj; | |
25170 | fail: | |
25171 | return NULL; | |
25172 | } | |
25173 | ||
25174 | ||
25175 | static PyObject *_wrap_DataObjectSimple_SetData(PyObject *, PyObject *args, PyObject *kwargs) { | |
25176 | PyObject *resultobj; | |
25177 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
25178 | PyObject *arg2 = (PyObject *) 0 ; | |
25179 | bool result; | |
25180 | PyObject * obj0 = 0 ; | |
25181 | PyObject * obj1 = 0 ; | |
25182 | char *kwnames[] = { | |
25183 | (char *) "self",(char *) "data", NULL | |
25184 | }; | |
25185 | ||
25186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetData",kwnames,&obj0,&obj1)) goto fail; | |
25187 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, | |
25188 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25189 | arg2 = obj1; | |
25190 | { | |
25191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25192 | result = (bool)wxDataObjectSimple_SetData(arg1,arg2); | |
25193 | ||
25194 | wxPyEndAllowThreads(__tstate); | |
25195 | if (PyErr_Occurred()) SWIG_fail; | |
25196 | } | |
25197 | { | |
25198 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25199 | } | |
25200 | return resultobj; | |
25201 | fail: | |
25202 | return NULL; | |
25203 | } | |
25204 | ||
25205 | ||
25206 | static PyObject * DataObjectSimple_swigregister(PyObject *, PyObject *args) { | |
25207 | PyObject *obj; | |
25208 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25209 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectSimple, obj); | |
25210 | Py_INCREF(obj); | |
25211 | return Py_BuildValue((char *)""); | |
25212 | } | |
25213 | static PyObject *_wrap_new_PyDataObjectSimple(PyObject *, PyObject *args, PyObject *kwargs) { | |
25214 | PyObject *resultobj; | |
25215 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
25216 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
25217 | wxPyDataObjectSimple *result; | |
25218 | PyObject * obj0 = 0 ; | |
25219 | char *kwnames[] = { | |
25220 | (char *) "format", NULL | |
25221 | }; | |
25222 | ||
25223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDataObjectSimple",kwnames,&obj0)) goto fail; | |
25224 | if (obj0) { | |
25225 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
25226 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25227 | SWIG_fail; | |
25228 | if (arg1 == NULL) { | |
25229 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25230 | SWIG_fail; | |
25231 | } | |
25232 | } | |
25233 | { | |
25234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25235 | result = (wxPyDataObjectSimple *)new wxPyDataObjectSimple((wxDataFormat const &)*arg1); | |
25236 | ||
25237 | wxPyEndAllowThreads(__tstate); | |
25238 | if (PyErr_Occurred()) SWIG_fail; | |
25239 | } | |
25240 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDataObjectSimple, 1); | |
25241 | return resultobj; | |
25242 | fail: | |
25243 | return NULL; | |
25244 | } | |
25245 | ||
25246 | ||
25247 | static PyObject *_wrap_PyDataObjectSimple__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
25248 | PyObject *resultobj; | |
25249 | wxPyDataObjectSimple *arg1 = (wxPyDataObjectSimple *) 0 ; | |
25250 | PyObject *arg2 = (PyObject *) 0 ; | |
25251 | PyObject *arg3 = (PyObject *) 0 ; | |
25252 | PyObject * obj0 = 0 ; | |
25253 | PyObject * obj1 = 0 ; | |
25254 | PyObject * obj2 = 0 ; | |
25255 | char *kwnames[] = { | |
25256 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25257 | }; | |
25258 | ||
25259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDataObjectSimple__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25260 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDataObjectSimple, | |
25261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25262 | arg2 = obj1; | |
25263 | arg3 = obj2; | |
25264 | { | |
25265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25266 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25267 | ||
25268 | wxPyEndAllowThreads(__tstate); | |
25269 | if (PyErr_Occurred()) SWIG_fail; | |
25270 | } | |
25271 | Py_INCREF(Py_None); resultobj = Py_None; | |
25272 | return resultobj; | |
25273 | fail: | |
25274 | return NULL; | |
25275 | } | |
25276 | ||
25277 | ||
25278 | static PyObject * PyDataObjectSimple_swigregister(PyObject *, PyObject *args) { | |
25279 | PyObject *obj; | |
25280 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25281 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDataObjectSimple, obj); | |
25282 | Py_INCREF(obj); | |
25283 | return Py_BuildValue((char *)""); | |
25284 | } | |
25285 | static PyObject *_wrap_new_DataObjectComposite(PyObject *, PyObject *args, PyObject *kwargs) { | |
25286 | PyObject *resultobj; | |
25287 | wxDataObjectComposite *result; | |
25288 | char *kwnames[] = { | |
25289 | NULL | |
25290 | }; | |
25291 | ||
25292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DataObjectComposite",kwnames)) goto fail; | |
25293 | { | |
25294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25295 | result = (wxDataObjectComposite *)new wxDataObjectComposite(); | |
25296 | ||
25297 | wxPyEndAllowThreads(__tstate); | |
25298 | if (PyErr_Occurred()) SWIG_fail; | |
25299 | } | |
25300 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectComposite, 1); | |
25301 | return resultobj; | |
25302 | fail: | |
25303 | return NULL; | |
25304 | } | |
25305 | ||
25306 | ||
25307 | static PyObject *_wrap_DataObjectComposite_Add(PyObject *, PyObject *args, PyObject *kwargs) { | |
25308 | PyObject *resultobj; | |
25309 | wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ; | |
25310 | wxDataObjectSimple *arg2 = (wxDataObjectSimple *) 0 ; | |
25311 | bool arg3 = (bool) false ; | |
25312 | PyObject * obj0 = 0 ; | |
25313 | PyObject * obj1 = 0 ; | |
25314 | PyObject * obj2 = 0 ; | |
25315 | char *kwnames[] = { | |
25316 | (char *) "self",(char *) "dataObject",(char *) "preferred", NULL | |
25317 | }; | |
25318 | ||
25319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObjectComposite_Add",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25320 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectComposite, | |
25321 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25322 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObjectSimple, | |
25323 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
25324 | if (obj2) { | |
25325 | arg3 = (bool)SWIG_As_bool(obj2); | |
25326 | if (PyErr_Occurred()) SWIG_fail; | |
25327 | } | |
25328 | { | |
25329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25330 | (arg1)->Add(arg2,arg3); | |
25331 | ||
25332 | wxPyEndAllowThreads(__tstate); | |
25333 | if (PyErr_Occurred()) SWIG_fail; | |
25334 | } | |
25335 | Py_INCREF(Py_None); resultobj = Py_None; | |
25336 | return resultobj; | |
25337 | fail: | |
25338 | return NULL; | |
25339 | } | |
25340 | ||
25341 | ||
25342 | static PyObject * DataObjectComposite_swigregister(PyObject *, PyObject *args) { | |
25343 | PyObject *obj; | |
25344 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25345 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectComposite, obj); | |
25346 | Py_INCREF(obj); | |
25347 | return Py_BuildValue((char *)""); | |
25348 | } | |
25349 | static PyObject *_wrap_new_TextDataObject(PyObject *, PyObject *args, PyObject *kwargs) { | |
25350 | PyObject *resultobj; | |
25351 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
25352 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
25353 | wxTextDataObject *result; | |
25354 | bool temp1 = false ; | |
25355 | PyObject * obj0 = 0 ; | |
25356 | char *kwnames[] = { | |
25357 | (char *) "text", NULL | |
25358 | }; | |
25359 | ||
25360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TextDataObject",kwnames,&obj0)) goto fail; | |
25361 | if (obj0) { | |
25362 | { | |
25363 | arg1 = wxString_in_helper(obj0); | |
25364 | if (arg1 == NULL) SWIG_fail; | |
25365 | temp1 = true; | |
25366 | } | |
25367 | } | |
25368 | { | |
25369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25370 | result = (wxTextDataObject *)new wxTextDataObject((wxString const &)*arg1); | |
25371 | ||
25372 | wxPyEndAllowThreads(__tstate); | |
25373 | if (PyErr_Occurred()) SWIG_fail; | |
25374 | } | |
25375 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextDataObject, 1); | |
25376 | { | |
25377 | if (temp1) | |
25378 | delete arg1; | |
25379 | } | |
25380 | return resultobj; | |
25381 | fail: | |
25382 | { | |
25383 | if (temp1) | |
25384 | delete arg1; | |
25385 | } | |
25386 | return NULL; | |
25387 | } | |
25388 | ||
25389 | ||
25390 | static PyObject *_wrap_TextDataObject_GetTextLength(PyObject *, PyObject *args, PyObject *kwargs) { | |
25391 | PyObject *resultobj; | |
25392 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
25393 | size_t result; | |
25394 | PyObject * obj0 = 0 ; | |
25395 | char *kwnames[] = { | |
25396 | (char *) "self", NULL | |
25397 | }; | |
25398 | ||
25399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetTextLength",kwnames,&obj0)) goto fail; | |
25400 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject, | |
25401 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25402 | { | |
25403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25404 | result = (size_t)(arg1)->GetTextLength(); | |
25405 | ||
25406 | wxPyEndAllowThreads(__tstate); | |
25407 | if (PyErr_Occurred()) SWIG_fail; | |
25408 | } | |
25409 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); | |
25410 | return resultobj; | |
25411 | fail: | |
25412 | return NULL; | |
25413 | } | |
25414 | ||
25415 | ||
25416 | static PyObject *_wrap_TextDataObject_GetText(PyObject *, PyObject *args, PyObject *kwargs) { | |
25417 | PyObject *resultobj; | |
25418 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
25419 | wxString result; | |
25420 | PyObject * obj0 = 0 ; | |
25421 | char *kwnames[] = { | |
25422 | (char *) "self", NULL | |
25423 | }; | |
25424 | ||
25425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetText",kwnames,&obj0)) goto fail; | |
25426 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject, | |
25427 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25428 | { | |
25429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25430 | result = (arg1)->GetText(); | |
25431 | ||
25432 | wxPyEndAllowThreads(__tstate); | |
25433 | if (PyErr_Occurred()) SWIG_fail; | |
25434 | } | |
25435 | { | |
25436 | #if wxUSE_UNICODE | |
25437 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
25438 | #else | |
25439 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
25440 | #endif | |
25441 | } | |
25442 | return resultobj; | |
25443 | fail: | |
25444 | return NULL; | |
25445 | } | |
25446 | ||
25447 | ||
25448 | static PyObject *_wrap_TextDataObject_SetText(PyObject *, PyObject *args, PyObject *kwargs) { | |
25449 | PyObject *resultobj; | |
25450 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
25451 | wxString *arg2 = 0 ; | |
25452 | bool temp2 = false ; | |
25453 | PyObject * obj0 = 0 ; | |
25454 | PyObject * obj1 = 0 ; | |
25455 | char *kwnames[] = { | |
25456 | (char *) "self",(char *) "text", NULL | |
25457 | }; | |
25458 | ||
25459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextDataObject_SetText",kwnames,&obj0,&obj1)) goto fail; | |
25460 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject, | |
25461 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25462 | { | |
25463 | arg2 = wxString_in_helper(obj1); | |
25464 | if (arg2 == NULL) SWIG_fail; | |
25465 | temp2 = true; | |
25466 | } | |
25467 | { | |
25468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25469 | (arg1)->SetText((wxString const &)*arg2); | |
25470 | ||
25471 | wxPyEndAllowThreads(__tstate); | |
25472 | if (PyErr_Occurred()) SWIG_fail; | |
25473 | } | |
25474 | Py_INCREF(Py_None); resultobj = Py_None; | |
25475 | { | |
25476 | if (temp2) | |
25477 | delete arg2; | |
25478 | } | |
25479 | return resultobj; | |
25480 | fail: | |
25481 | { | |
25482 | if (temp2) | |
25483 | delete arg2; | |
25484 | } | |
25485 | return NULL; | |
25486 | } | |
25487 | ||
25488 | ||
25489 | static PyObject * TextDataObject_swigregister(PyObject *, PyObject *args) { | |
25490 | PyObject *obj; | |
25491 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25492 | SWIG_TypeClientData(SWIGTYPE_p_wxTextDataObject, obj); | |
25493 | Py_INCREF(obj); | |
25494 | return Py_BuildValue((char *)""); | |
25495 | } | |
25496 | static PyObject *_wrap_new_PyTextDataObject(PyObject *, PyObject *args, PyObject *kwargs) { | |
25497 | PyObject *resultobj; | |
25498 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
25499 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
25500 | wxPyTextDataObject *result; | |
25501 | bool temp1 = false ; | |
25502 | PyObject * obj0 = 0 ; | |
25503 | char *kwnames[] = { | |
25504 | (char *) "text", NULL | |
25505 | }; | |
25506 | ||
25507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyTextDataObject",kwnames,&obj0)) goto fail; | |
25508 | if (obj0) { | |
25509 | { | |
25510 | arg1 = wxString_in_helper(obj0); | |
25511 | if (arg1 == NULL) SWIG_fail; | |
25512 | temp1 = true; | |
25513 | } | |
25514 | } | |
25515 | { | |
25516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25517 | result = (wxPyTextDataObject *)new wxPyTextDataObject((wxString const &)*arg1); | |
25518 | ||
25519 | wxPyEndAllowThreads(__tstate); | |
25520 | if (PyErr_Occurred()) SWIG_fail; | |
25521 | } | |
25522 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDataObject, 1); | |
25523 | { | |
25524 | if (temp1) | |
25525 | delete arg1; | |
25526 | } | |
25527 | return resultobj; | |
25528 | fail: | |
25529 | { | |
25530 | if (temp1) | |
25531 | delete arg1; | |
25532 | } | |
25533 | return NULL; | |
25534 | } | |
25535 | ||
25536 | ||
25537 | static PyObject *_wrap_PyTextDataObject__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
25538 | PyObject *resultobj; | |
25539 | wxPyTextDataObject *arg1 = (wxPyTextDataObject *) 0 ; | |
25540 | PyObject *arg2 = (PyObject *) 0 ; | |
25541 | PyObject *arg3 = (PyObject *) 0 ; | |
25542 | PyObject * obj0 = 0 ; | |
25543 | PyObject * obj1 = 0 ; | |
25544 | PyObject * obj2 = 0 ; | |
25545 | char *kwnames[] = { | |
25546 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25547 | }; | |
25548 | ||
25549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25550 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDataObject, | |
25551 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25552 | arg2 = obj1; | |
25553 | arg3 = obj2; | |
25554 | { | |
25555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25556 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25557 | ||
25558 | wxPyEndAllowThreads(__tstate); | |
25559 | if (PyErr_Occurred()) SWIG_fail; | |
25560 | } | |
25561 | Py_INCREF(Py_None); resultobj = Py_None; | |
25562 | return resultobj; | |
25563 | fail: | |
25564 | return NULL; | |
25565 | } | |
25566 | ||
25567 | ||
25568 | static PyObject * PyTextDataObject_swigregister(PyObject *, PyObject *args) { | |
25569 | PyObject *obj; | |
25570 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25571 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDataObject, obj); | |
25572 | Py_INCREF(obj); | |
25573 | return Py_BuildValue((char *)""); | |
25574 | } | |
25575 | static PyObject *_wrap_new_BitmapDataObject(PyObject *, PyObject *args, PyObject *kwargs) { | |
25576 | PyObject *resultobj; | |
25577 | wxBitmap const &arg1_defvalue = wxNullBitmap ; | |
25578 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
25579 | wxBitmapDataObject *result; | |
25580 | PyObject * obj0 = 0 ; | |
25581 | char *kwnames[] = { | |
25582 | (char *) "bitmap", NULL | |
25583 | }; | |
25584 | ||
25585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BitmapDataObject",kwnames,&obj0)) goto fail; | |
25586 | if (obj0) { | |
25587 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
25588 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25589 | SWIG_fail; | |
25590 | if (arg1 == NULL) { | |
25591 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25592 | SWIG_fail; | |
25593 | } | |
25594 | } | |
25595 | { | |
25596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25597 | result = (wxBitmapDataObject *)new wxBitmapDataObject((wxBitmap const &)*arg1); | |
25598 | ||
25599 | wxPyEndAllowThreads(__tstate); | |
25600 | if (PyErr_Occurred()) SWIG_fail; | |
25601 | } | |
25602 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapDataObject, 1); | |
25603 | return resultobj; | |
25604 | fail: | |
25605 | return NULL; | |
25606 | } | |
25607 | ||
25608 | ||
25609 | static PyObject *_wrap_BitmapDataObject_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { | |
25610 | PyObject *resultobj; | |
25611 | wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ; | |
25612 | wxBitmap result; | |
25613 | PyObject * obj0 = 0 ; | |
25614 | char *kwnames[] = { | |
25615 | (char *) "self", NULL | |
25616 | }; | |
25617 | ||
25618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapDataObject_GetBitmap",kwnames,&obj0)) goto fail; | |
25619 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject, | |
25620 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25621 | { | |
25622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25623 | result = ((wxBitmapDataObject const *)arg1)->GetBitmap(); | |
25624 | ||
25625 | wxPyEndAllowThreads(__tstate); | |
25626 | if (PyErr_Occurred()) SWIG_fail; | |
25627 | } | |
25628 | { | |
25629 | wxBitmap * resultptr; | |
25630 | resultptr = new wxBitmap((wxBitmap &) result); | |
25631 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
25632 | } | |
25633 | return resultobj; | |
25634 | fail: | |
25635 | return NULL; | |
25636 | } | |
25637 | ||
25638 | ||
25639 | static PyObject *_wrap_BitmapDataObject_SetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { | |
25640 | PyObject *resultobj; | |
25641 | wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ; | |
25642 | wxBitmap *arg2 = 0 ; | |
25643 | PyObject * obj0 = 0 ; | |
25644 | PyObject * obj1 = 0 ; | |
25645 | char *kwnames[] = { | |
25646 | (char *) "self",(char *) "bitmap", NULL | |
25647 | }; | |
25648 | ||
25649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapDataObject_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
25650 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject, | |
25651 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25652 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
25653 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25654 | SWIG_fail; | |
25655 | if (arg2 == NULL) { | |
25656 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25657 | SWIG_fail; | |
25658 | } | |
25659 | { | |
25660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25661 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
25662 | ||
25663 | wxPyEndAllowThreads(__tstate); | |
25664 | if (PyErr_Occurred()) SWIG_fail; | |
25665 | } | |
25666 | Py_INCREF(Py_None); resultobj = Py_None; | |
25667 | return resultobj; | |
25668 | fail: | |
25669 | return NULL; | |
25670 | } | |
25671 | ||
25672 | ||
25673 | static PyObject * BitmapDataObject_swigregister(PyObject *, PyObject *args) { | |
25674 | PyObject *obj; | |
25675 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25676 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmapDataObject, obj); | |
25677 | Py_INCREF(obj); | |
25678 | return Py_BuildValue((char *)""); | |
25679 | } | |
25680 | static PyObject *_wrap_new_PyBitmapDataObject(PyObject *, PyObject *args, PyObject *kwargs) { | |
25681 | PyObject *resultobj; | |
25682 | wxBitmap const &arg1_defvalue = wxNullBitmap ; | |
25683 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
25684 | wxPyBitmapDataObject *result; | |
25685 | PyObject * obj0 = 0 ; | |
25686 | char *kwnames[] = { | |
25687 | (char *) "bitmap", NULL | |
25688 | }; | |
25689 | ||
25690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyBitmapDataObject",kwnames,&obj0)) goto fail; | |
25691 | if (obj0) { | |
25692 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
25693 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25694 | SWIG_fail; | |
25695 | if (arg1 == NULL) { | |
25696 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25697 | SWIG_fail; | |
25698 | } | |
25699 | } | |
25700 | { | |
25701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25702 | result = (wxPyBitmapDataObject *)new wxPyBitmapDataObject((wxBitmap const &)*arg1); | |
25703 | ||
25704 | wxPyEndAllowThreads(__tstate); | |
25705 | if (PyErr_Occurred()) SWIG_fail; | |
25706 | } | |
25707 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyBitmapDataObject, 1); | |
25708 | return resultobj; | |
25709 | fail: | |
25710 | return NULL; | |
25711 | } | |
25712 | ||
25713 | ||
25714 | static PyObject *_wrap_PyBitmapDataObject__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
25715 | PyObject *resultobj; | |
25716 | wxPyBitmapDataObject *arg1 = (wxPyBitmapDataObject *) 0 ; | |
25717 | PyObject *arg2 = (PyObject *) 0 ; | |
25718 | PyObject *arg3 = (PyObject *) 0 ; | |
25719 | PyObject * obj0 = 0 ; | |
25720 | PyObject * obj1 = 0 ; | |
25721 | PyObject * obj2 = 0 ; | |
25722 | char *kwnames[] = { | |
25723 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25724 | }; | |
25725 | ||
25726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25727 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapDataObject, | |
25728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25729 | arg2 = obj1; | |
25730 | arg3 = obj2; | |
25731 | { | |
25732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25733 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25734 | ||
25735 | wxPyEndAllowThreads(__tstate); | |
25736 | if (PyErr_Occurred()) SWIG_fail; | |
25737 | } | |
25738 | Py_INCREF(Py_None); resultobj = Py_None; | |
25739 | return resultobj; | |
25740 | fail: | |
25741 | return NULL; | |
25742 | } | |
25743 | ||
25744 | ||
25745 | static PyObject * PyBitmapDataObject_swigregister(PyObject *, PyObject *args) { | |
25746 | PyObject *obj; | |
25747 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25748 | SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapDataObject, obj); | |
25749 | Py_INCREF(obj); | |
25750 | return Py_BuildValue((char *)""); | |
25751 | } | |
25752 | static PyObject *_wrap_new_FileDataObject(PyObject *, PyObject *args, PyObject *kwargs) { | |
25753 | PyObject *resultobj; | |
25754 | wxFileDataObject *result; | |
25755 | char *kwnames[] = { | |
25756 | NULL | |
25757 | }; | |
25758 | ||
25759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDataObject",kwnames)) goto fail; | |
25760 | { | |
25761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25762 | result = (wxFileDataObject *)new wxFileDataObject(); | |
25763 | ||
25764 | wxPyEndAllowThreads(__tstate); | |
25765 | if (PyErr_Occurred()) SWIG_fail; | |
25766 | } | |
25767 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileDataObject, 1); | |
25768 | return resultobj; | |
25769 | fail: | |
25770 | return NULL; | |
25771 | } | |
25772 | ||
25773 | ||
25774 | static PyObject *_wrap_FileDataObject_GetFilenames(PyObject *, PyObject *args, PyObject *kwargs) { | |
25775 | PyObject *resultobj; | |
25776 | wxFileDataObject *arg1 = (wxFileDataObject *) 0 ; | |
25777 | wxArrayString *result; | |
25778 | PyObject * obj0 = 0 ; | |
25779 | char *kwnames[] = { | |
25780 | (char *) "self", NULL | |
25781 | }; | |
25782 | ||
25783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDataObject_GetFilenames",kwnames,&obj0)) goto fail; | |
25784 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject, | |
25785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25786 | { | |
25787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25788 | { | |
25789 | wxArrayString const &_result_ref = (arg1)->GetFilenames(); | |
25790 | result = (wxArrayString *) &_result_ref; | |
25791 | } | |
25792 | ||
25793 | wxPyEndAllowThreads(__tstate); | |
25794 | if (PyErr_Occurred()) SWIG_fail; | |
25795 | } | |
25796 | { | |
25797 | resultobj = wxArrayString2PyList_helper(*result); | |
25798 | } | |
25799 | return resultobj; | |
25800 | fail: | |
25801 | return NULL; | |
25802 | } | |
25803 | ||
25804 | ||
25805 | static PyObject *_wrap_FileDataObject_AddFile(PyObject *, PyObject *args, PyObject *kwargs) { | |
25806 | PyObject *resultobj; | |
25807 | wxFileDataObject *arg1 = (wxFileDataObject *) 0 ; | |
25808 | wxString *arg2 = 0 ; | |
25809 | bool temp2 = false ; | |
25810 | PyObject * obj0 = 0 ; | |
25811 | PyObject * obj1 = 0 ; | |
25812 | char *kwnames[] = { | |
25813 | (char *) "self",(char *) "filename", NULL | |
25814 | }; | |
25815 | ||
25816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDataObject_AddFile",kwnames,&obj0,&obj1)) goto fail; | |
25817 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject, | |
25818 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25819 | { | |
25820 | arg2 = wxString_in_helper(obj1); | |
25821 | if (arg2 == NULL) SWIG_fail; | |
25822 | temp2 = true; | |
25823 | } | |
25824 | { | |
25825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25826 | (arg1)->AddFile((wxString const &)*arg2); | |
25827 | ||
25828 | wxPyEndAllowThreads(__tstate); | |
25829 | if (PyErr_Occurred()) SWIG_fail; | |
25830 | } | |
25831 | Py_INCREF(Py_None); resultobj = Py_None; | |
25832 | { | |
25833 | if (temp2) | |
25834 | delete arg2; | |
25835 | } | |
25836 | return resultobj; | |
25837 | fail: | |
25838 | { | |
25839 | if (temp2) | |
25840 | delete arg2; | |
25841 | } | |
25842 | return NULL; | |
25843 | } | |
25844 | ||
25845 | ||
25846 | static PyObject * FileDataObject_swigregister(PyObject *, PyObject *args) { | |
25847 | PyObject *obj; | |
25848 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25849 | SWIG_TypeClientData(SWIGTYPE_p_wxFileDataObject, obj); | |
25850 | Py_INCREF(obj); | |
25851 | return Py_BuildValue((char *)""); | |
25852 | } | |
25853 | static PyObject *_wrap_new_CustomDataObject(PyObject *, PyObject *args, PyObject *kwargs) { | |
25854 | PyObject *resultobj; | |
25855 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
25856 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
25857 | wxCustomDataObject *result; | |
25858 | PyObject * obj0 = 0 ; | |
25859 | char *kwnames[] = { | |
25860 | (char *) "format", NULL | |
25861 | }; | |
25862 | ||
25863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CustomDataObject",kwnames,&obj0)) goto fail; | |
25864 | if (obj0) { | |
25865 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
25866 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25867 | SWIG_fail; | |
25868 | if (arg1 == NULL) { | |
25869 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25870 | SWIG_fail; | |
25871 | } | |
25872 | } | |
25873 | { | |
25874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25875 | result = (wxCustomDataObject *)new wxCustomDataObject((wxDataFormat const &)*arg1); | |
25876 | ||
25877 | wxPyEndAllowThreads(__tstate); | |
25878 | if (PyErr_Occurred()) SWIG_fail; | |
25879 | } | |
25880 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCustomDataObject, 1); | |
25881 | return resultobj; | |
25882 | fail: | |
25883 | return NULL; | |
25884 | } | |
25885 | ||
25886 | ||
25887 | static PyObject *_wrap_CustomDataObject_SetData(PyObject *, PyObject *args, PyObject *kwargs) { | |
25888 | PyObject *resultobj; | |
25889 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
25890 | PyObject *arg2 = (PyObject *) 0 ; | |
25891 | bool result; | |
25892 | PyObject * obj0 = 0 ; | |
25893 | PyObject * obj1 = 0 ; | |
25894 | char *kwnames[] = { | |
25895 | (char *) "self",(char *) "data", NULL | |
25896 | }; | |
25897 | ||
25898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_SetData",kwnames,&obj0,&obj1)) goto fail; | |
25899 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, | |
25900 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25901 | arg2 = obj1; | |
25902 | { | |
25903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25904 | result = (bool)wxCustomDataObject_SetData(arg1,arg2); | |
25905 | ||
25906 | wxPyEndAllowThreads(__tstate); | |
25907 | if (PyErr_Occurred()) SWIG_fail; | |
25908 | } | |
25909 | { | |
25910 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25911 | } | |
25912 | return resultobj; | |
25913 | fail: | |
25914 | return NULL; | |
25915 | } | |
25916 | ||
25917 | ||
25918 | static PyObject *_wrap_CustomDataObject_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
25919 | PyObject *resultobj; | |
25920 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
25921 | size_t result; | |
25922 | PyObject * obj0 = 0 ; | |
25923 | char *kwnames[] = { | |
25924 | (char *) "self", NULL | |
25925 | }; | |
25926 | ||
25927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetSize",kwnames,&obj0)) goto fail; | |
25928 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, | |
25929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25930 | { | |
25931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25932 | result = (size_t)(arg1)->GetSize(); | |
25933 | ||
25934 | wxPyEndAllowThreads(__tstate); | |
25935 | if (PyErr_Occurred()) SWIG_fail; | |
25936 | } | |
25937 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); | |
25938 | return resultobj; | |
25939 | fail: | |
25940 | return NULL; | |
25941 | } | |
25942 | ||
25943 | ||
25944 | static PyObject *_wrap_CustomDataObject_GetData(PyObject *, PyObject *args, PyObject *kwargs) { | |
25945 | PyObject *resultobj; | |
25946 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
25947 | PyObject *result; | |
25948 | PyObject * obj0 = 0 ; | |
25949 | char *kwnames[] = { | |
25950 | (char *) "self", NULL | |
25951 | }; | |
25952 | ||
25953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetData",kwnames,&obj0)) goto fail; | |
25954 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, | |
25955 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25956 | { | |
25957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25958 | result = (PyObject *)wxCustomDataObject_GetData(arg1); | |
25959 | ||
25960 | wxPyEndAllowThreads(__tstate); | |
25961 | if (PyErr_Occurred()) SWIG_fail; | |
25962 | } | |
25963 | resultobj = result; | |
25964 | return resultobj; | |
25965 | fail: | |
25966 | return NULL; | |
25967 | } | |
25968 | ||
25969 | ||
25970 | static PyObject * CustomDataObject_swigregister(PyObject *, PyObject *args) { | |
25971 | PyObject *obj; | |
25972 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25973 | SWIG_TypeClientData(SWIGTYPE_p_wxCustomDataObject, obj); | |
25974 | Py_INCREF(obj); | |
25975 | return Py_BuildValue((char *)""); | |
25976 | } | |
25977 | static PyObject *_wrap_new_URLDataObject(PyObject *, PyObject *args, PyObject *kwargs) { | |
25978 | PyObject *resultobj; | |
25979 | wxURLDataObject *result; | |
25980 | char *kwnames[] = { | |
25981 | NULL | |
25982 | }; | |
25983 | ||
25984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_URLDataObject",kwnames)) goto fail; | |
25985 | { | |
25986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25987 | result = (wxURLDataObject *)new wxURLDataObject(); | |
25988 | ||
25989 | wxPyEndAllowThreads(__tstate); | |
25990 | if (PyErr_Occurred()) SWIG_fail; | |
25991 | } | |
25992 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxURLDataObject, 1); | |
25993 | return resultobj; | |
25994 | fail: | |
25995 | return NULL; | |
25996 | } | |
25997 | ||
25998 | ||
25999 | static PyObject *_wrap_URLDataObject_GetURL(PyObject *, PyObject *args, PyObject *kwargs) { | |
26000 | PyObject *resultobj; | |
26001 | wxURLDataObject *arg1 = (wxURLDataObject *) 0 ; | |
26002 | wxString result; | |
26003 | PyObject * obj0 = 0 ; | |
26004 | char *kwnames[] = { | |
26005 | (char *) "self", NULL | |
26006 | }; | |
26007 | ||
26008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:URLDataObject_GetURL",kwnames,&obj0)) goto fail; | |
26009 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject, | |
26010 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26011 | { | |
26012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26013 | result = (arg1)->GetURL(); | |
26014 | ||
26015 | wxPyEndAllowThreads(__tstate); | |
26016 | if (PyErr_Occurred()) SWIG_fail; | |
26017 | } | |
26018 | { | |
26019 | #if wxUSE_UNICODE | |
26020 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
26021 | #else | |
26022 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
26023 | #endif | |
26024 | } | |
26025 | return resultobj; | |
26026 | fail: | |
26027 | return NULL; | |
26028 | } | |
26029 | ||
26030 | ||
26031 | static PyObject *_wrap_URLDataObject_SetURL(PyObject *, PyObject *args, PyObject *kwargs) { | |
26032 | PyObject *resultobj; | |
26033 | wxURLDataObject *arg1 = (wxURLDataObject *) 0 ; | |
26034 | wxString *arg2 = 0 ; | |
26035 | bool temp2 = false ; | |
26036 | PyObject * obj0 = 0 ; | |
26037 | PyObject * obj1 = 0 ; | |
26038 | char *kwnames[] = { | |
26039 | (char *) "self",(char *) "url", NULL | |
26040 | }; | |
26041 | ||
26042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:URLDataObject_SetURL",kwnames,&obj0,&obj1)) goto fail; | |
26043 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject, | |
26044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26045 | { | |
26046 | arg2 = wxString_in_helper(obj1); | |
26047 | if (arg2 == NULL) SWIG_fail; | |
26048 | temp2 = true; | |
26049 | } | |
26050 | { | |
26051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26052 | (arg1)->SetURL((wxString const &)*arg2); | |
26053 | ||
26054 | wxPyEndAllowThreads(__tstate); | |
26055 | if (PyErr_Occurred()) SWIG_fail; | |
26056 | } | |
26057 | Py_INCREF(Py_None); resultobj = Py_None; | |
26058 | { | |
26059 | if (temp2) | |
26060 | delete arg2; | |
26061 | } | |
26062 | return resultobj; | |
26063 | fail: | |
26064 | { | |
26065 | if (temp2) | |
26066 | delete arg2; | |
26067 | } | |
26068 | return NULL; | |
26069 | } | |
26070 | ||
26071 | ||
26072 | static PyObject * URLDataObject_swigregister(PyObject *, PyObject *args) { | |
26073 | PyObject *obj; | |
26074 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26075 | SWIG_TypeClientData(SWIGTYPE_p_wxURLDataObject, obj); | |
26076 | Py_INCREF(obj); | |
26077 | return Py_BuildValue((char *)""); | |
26078 | } | |
26079 | static PyObject *_wrap_new_MetafileDataObject(PyObject *, PyObject *args, PyObject *kwargs) { | |
26080 | PyObject *resultobj; | |
26081 | wxMetafileDataObject *result; | |
26082 | char *kwnames[] = { | |
26083 | NULL | |
26084 | }; | |
26085 | ||
26086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MetafileDataObject",kwnames)) goto fail; | |
26087 | { | |
26088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26089 | result = (wxMetafileDataObject *)new wxMetafileDataObject(); | |
26090 | ||
26091 | wxPyEndAllowThreads(__tstate); | |
26092 | if (PyErr_Occurred()) SWIG_fail; | |
26093 | } | |
26094 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetafileDataObject, 1); | |
26095 | return resultobj; | |
26096 | fail: | |
26097 | return NULL; | |
26098 | } | |
26099 | ||
26100 | ||
26101 | static PyObject * MetafileDataObject_swigregister(PyObject *, PyObject *args) { | |
26102 | PyObject *obj; | |
26103 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26104 | SWIG_TypeClientData(SWIGTYPE_p_wxMetafileDataObject, obj); | |
26105 | Py_INCREF(obj); | |
26106 | return Py_BuildValue((char *)""); | |
26107 | } | |
26108 | static PyObject *_wrap_IsDragResultOk(PyObject *, PyObject *args, PyObject *kwargs) { | |
26109 | PyObject *resultobj; | |
26110 | int arg1 ; | |
26111 | bool result; | |
26112 | PyObject * obj0 = 0 ; | |
26113 | char *kwnames[] = { | |
26114 | (char *) "res", NULL | |
26115 | }; | |
26116 | ||
26117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsDragResultOk",kwnames,&obj0)) goto fail; | |
26118 | arg1 = (int)SWIG_As_int(obj0); | |
26119 | if (PyErr_Occurred()) SWIG_fail; | |
26120 | { | |
26121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26122 | result = (bool)wxIsDragResultOk((wxDragResult )arg1); | |
26123 | ||
26124 | wxPyEndAllowThreads(__tstate); | |
26125 | if (PyErr_Occurred()) SWIG_fail; | |
26126 | } | |
26127 | { | |
26128 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26129 | } | |
26130 | return resultobj; | |
26131 | fail: | |
26132 | return NULL; | |
26133 | } | |
26134 | ||
26135 | ||
26136 | static PyObject *_wrap_new_DropSource(PyObject *, PyObject *args, PyObject *kwargs) { | |
26137 | PyObject *resultobj; | |
26138 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26139 | wxIcon const &arg2_defvalue = wxNullIcon ; | |
26140 | wxIcon *arg2 = (wxIcon *) &arg2_defvalue ; | |
26141 | wxIcon const &arg3_defvalue = wxNullIcon ; | |
26142 | wxIcon *arg3 = (wxIcon *) &arg3_defvalue ; | |
26143 | wxIcon const &arg4_defvalue = wxNullIcon ; | |
26144 | wxIcon *arg4 = (wxIcon *) &arg4_defvalue ; | |
26145 | wxPyDropSource *result; | |
26146 | PyObject * obj0 = 0 ; | |
26147 | PyObject * obj1 = 0 ; | |
26148 | PyObject * obj2 = 0 ; | |
26149 | PyObject * obj3 = 0 ; | |
26150 | char *kwnames[] = { | |
26151 | (char *) "win",(char *) "copy",(char *) "move",(char *) "none", NULL | |
26152 | }; | |
26153 | ||
26154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DropSource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26157 | if (obj1) { | |
26158 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
26159 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26160 | SWIG_fail; | |
26161 | if (arg2 == NULL) { | |
26162 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26163 | SWIG_fail; | |
26164 | } | |
26165 | } | |
26166 | if (obj2) { | |
26167 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxIcon, | |
26168 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26169 | SWIG_fail; | |
26170 | if (arg3 == NULL) { | |
26171 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26172 | SWIG_fail; | |
26173 | } | |
26174 | } | |
26175 | if (obj3) { | |
26176 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxIcon, | |
26177 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26178 | SWIG_fail; | |
26179 | if (arg4 == NULL) { | |
26180 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26181 | SWIG_fail; | |
26182 | } | |
26183 | } | |
26184 | { | |
26185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26186 | result = (wxPyDropSource *)new wxPyDropSource(arg1,(wxIcon const &)*arg2,(wxIcon const &)*arg3,(wxIcon const &)*arg4); | |
26187 | ||
26188 | wxPyEndAllowThreads(__tstate); | |
26189 | if (PyErr_Occurred()) SWIG_fail; | |
26190 | } | |
26191 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropSource, 1); | |
26192 | return resultobj; | |
26193 | fail: | |
26194 | return NULL; | |
26195 | } | |
26196 | ||
26197 | ||
26198 | static PyObject *_wrap_DropSource__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
26199 | PyObject *resultobj; | |
26200 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
26201 | PyObject *arg2 = (PyObject *) 0 ; | |
26202 | PyObject *arg3 = (PyObject *) 0 ; | |
26203 | int arg4 ; | |
26204 | PyObject * obj0 = 0 ; | |
26205 | PyObject * obj1 = 0 ; | |
26206 | PyObject * obj2 = 0 ; | |
26207 | PyObject * obj3 = 0 ; | |
26208 | char *kwnames[] = { | |
26209 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
26210 | }; | |
26211 | ||
26212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropSource__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26213 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
26214 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26215 | arg2 = obj1; | |
26216 | arg3 = obj2; | |
26217 | arg4 = (int)SWIG_As_int(obj3); | |
26218 | if (PyErr_Occurred()) SWIG_fail; | |
26219 | { | |
26220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26221 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
26222 | ||
26223 | wxPyEndAllowThreads(__tstate); | |
26224 | if (PyErr_Occurred()) SWIG_fail; | |
26225 | } | |
26226 | Py_INCREF(Py_None); resultobj = Py_None; | |
26227 | return resultobj; | |
26228 | fail: | |
26229 | return NULL; | |
26230 | } | |
26231 | ||
26232 | ||
26233 | static PyObject *_wrap_delete_DropSource(PyObject *, PyObject *args, PyObject *kwargs) { | |
26234 | PyObject *resultobj; | |
26235 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
26236 | PyObject * obj0 = 0 ; | |
26237 | char *kwnames[] = { | |
26238 | (char *) "self", NULL | |
26239 | }; | |
26240 | ||
26241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropSource",kwnames,&obj0)) goto fail; | |
26242 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
26243 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26244 | { | |
26245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26246 | delete arg1; | |
26247 | ||
26248 | wxPyEndAllowThreads(__tstate); | |
26249 | if (PyErr_Occurred()) SWIG_fail; | |
26250 | } | |
26251 | Py_INCREF(Py_None); resultobj = Py_None; | |
26252 | return resultobj; | |
26253 | fail: | |
26254 | return NULL; | |
26255 | } | |
26256 | ||
26257 | ||
26258 | static PyObject *_wrap_DropSource_SetData(PyObject *, PyObject *args, PyObject *kwargs) { | |
26259 | PyObject *resultobj; | |
26260 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
26261 | wxDataObject *arg2 = 0 ; | |
26262 | PyObject * obj0 = 0 ; | |
26263 | PyObject * obj1 = 0 ; | |
26264 | char *kwnames[] = { | |
26265 | (char *) "self",(char *) "data", NULL | |
26266 | }; | |
26267 | ||
26268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_SetData",kwnames,&obj0,&obj1)) goto fail; | |
26269 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
26270 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26271 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
26272 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26273 | SWIG_fail; | |
26274 | if (arg2 == NULL) { | |
26275 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26276 | SWIG_fail; | |
26277 | } | |
26278 | { | |
26279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26280 | (arg1)->SetData(*arg2); | |
26281 | ||
26282 | wxPyEndAllowThreads(__tstate); | |
26283 | if (PyErr_Occurred()) SWIG_fail; | |
26284 | } | |
26285 | Py_INCREF(Py_None); resultobj = Py_None; | |
26286 | return resultobj; | |
26287 | fail: | |
26288 | return NULL; | |
26289 | } | |
26290 | ||
26291 | ||
26292 | static PyObject *_wrap_DropSource_GetDataObject(PyObject *, PyObject *args, PyObject *kwargs) { | |
26293 | PyObject *resultobj; | |
26294 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
26295 | wxDataObject *result; | |
26296 | PyObject * obj0 = 0 ; | |
26297 | char *kwnames[] = { | |
26298 | (char *) "self", NULL | |
26299 | }; | |
26300 | ||
26301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropSource_GetDataObject",kwnames,&obj0)) goto fail; | |
26302 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
26303 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26304 | { | |
26305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26306 | result = (wxDataObject *)(arg1)->GetDataObject(); | |
26307 | ||
26308 | wxPyEndAllowThreads(__tstate); | |
26309 | if (PyErr_Occurred()) SWIG_fail; | |
26310 | } | |
26311 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0); | |
26312 | return resultobj; | |
26313 | fail: | |
26314 | return NULL; | |
26315 | } | |
26316 | ||
26317 | ||
26318 | static PyObject *_wrap_DropSource_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) { | |
26319 | PyObject *resultobj; | |
26320 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
26321 | int arg2 ; | |
26322 | wxCursor *arg3 = 0 ; | |
26323 | PyObject * obj0 = 0 ; | |
26324 | PyObject * obj1 = 0 ; | |
26325 | PyObject * obj2 = 0 ; | |
26326 | char *kwnames[] = { | |
26327 | (char *) "self",(char *) "res",(char *) "cursor", NULL | |
26328 | }; | |
26329 | ||
26330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropSource_SetCursor",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26331 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
26332 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26333 | arg2 = (int)SWIG_As_int(obj1); | |
26334 | if (PyErr_Occurred()) SWIG_fail; | |
26335 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor, | |
26336 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26337 | SWIG_fail; | |
26338 | if (arg3 == NULL) { | |
26339 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26340 | SWIG_fail; | |
26341 | } | |
26342 | { | |
26343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26344 | (arg1)->SetCursor((wxDragResult )arg2,(wxCursor const &)*arg3); | |
26345 | ||
26346 | wxPyEndAllowThreads(__tstate); | |
26347 | if (PyErr_Occurred()) SWIG_fail; | |
26348 | } | |
26349 | Py_INCREF(Py_None); resultobj = Py_None; | |
26350 | return resultobj; | |
26351 | fail: | |
26352 | return NULL; | |
26353 | } | |
26354 | ||
26355 | ||
26356 | static PyObject *_wrap_DropSource_DoDragDrop(PyObject *, PyObject *args, PyObject *kwargs) { | |
26357 | PyObject *resultobj; | |
26358 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
26359 | int arg2 = (int) wxDrag_CopyOnly ; | |
26360 | int result; | |
26361 | PyObject * obj0 = 0 ; | |
26362 | PyObject * obj1 = 0 ; | |
26363 | char *kwnames[] = { | |
26364 | (char *) "self",(char *) "flags", NULL | |
26365 | }; | |
26366 | ||
26367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DropSource_DoDragDrop",kwnames,&obj0,&obj1)) goto fail; | |
26368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
26369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26370 | if (obj1) { | |
26371 | arg2 = (int)SWIG_As_int(obj1); | |
26372 | if (PyErr_Occurred()) SWIG_fail; | |
26373 | } | |
26374 | { | |
26375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26376 | result = (int)(arg1)->DoDragDrop(arg2); | |
26377 | ||
26378 | wxPyEndAllowThreads(__tstate); | |
26379 | if (PyErr_Occurred()) SWIG_fail; | |
26380 | } | |
26381 | resultobj = SWIG_From_int((int)result); | |
26382 | return resultobj; | |
26383 | fail: | |
26384 | return NULL; | |
26385 | } | |
26386 | ||
26387 | ||
26388 | static PyObject *_wrap_DropSource_base_GiveFeedback(PyObject *, PyObject *args, PyObject *kwargs) { | |
26389 | PyObject *resultobj; | |
26390 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
26391 | int arg2 ; | |
26392 | bool result; | |
26393 | PyObject * obj0 = 0 ; | |
26394 | PyObject * obj1 = 0 ; | |
26395 | char *kwnames[] = { | |
26396 | (char *) "self",(char *) "effect", NULL | |
26397 | }; | |
26398 | ||
26399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_base_GiveFeedback",kwnames,&obj0,&obj1)) goto fail; | |
26400 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
26401 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26402 | arg2 = (int)SWIG_As_int(obj1); | |
26403 | if (PyErr_Occurred()) SWIG_fail; | |
26404 | { | |
26405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26406 | result = (bool)(arg1)->base_GiveFeedback((wxDragResult )arg2); | |
26407 | ||
26408 | wxPyEndAllowThreads(__tstate); | |
26409 | if (PyErr_Occurred()) SWIG_fail; | |
26410 | } | |
26411 | { | |
26412 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26413 | } | |
26414 | return resultobj; | |
26415 | fail: | |
26416 | return NULL; | |
26417 | } | |
26418 | ||
26419 | ||
26420 | static PyObject * DropSource_swigregister(PyObject *, PyObject *args) { | |
26421 | PyObject *obj; | |
26422 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26423 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDropSource, obj); | |
26424 | Py_INCREF(obj); | |
26425 | return Py_BuildValue((char *)""); | |
26426 | } | |
26427 | static PyObject *_wrap_new_DropTarget(PyObject *, PyObject *args, PyObject *kwargs) { | |
26428 | PyObject *resultobj; | |
26429 | wxDataObject *arg1 = (wxDataObject *) NULL ; | |
26430 | wxPyDropTarget *result; | |
26431 | PyObject * obj0 = 0 ; | |
26432 | char *kwnames[] = { | |
26433 | (char *) "dataObject", NULL | |
26434 | }; | |
26435 | ||
26436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DropTarget",kwnames,&obj0)) goto fail; | |
26437 | if (obj0) { | |
26438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
26439 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
26440 | } | |
26441 | { | |
26442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26443 | result = (wxPyDropTarget *)new wxPyDropTarget(arg1); | |
26444 | ||
26445 | wxPyEndAllowThreads(__tstate); | |
26446 | if (PyErr_Occurred()) SWIG_fail; | |
26447 | } | |
26448 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 1); | |
26449 | return resultobj; | |
26450 | fail: | |
26451 | return NULL; | |
26452 | } | |
26453 | ||
26454 | ||
26455 | static PyObject *_wrap_DropTarget__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
26456 | PyObject *resultobj; | |
26457 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26458 | PyObject *arg2 = (PyObject *) 0 ; | |
26459 | PyObject *arg3 = (PyObject *) 0 ; | |
26460 | PyObject * obj0 = 0 ; | |
26461 | PyObject * obj1 = 0 ; | |
26462 | PyObject * obj2 = 0 ; | |
26463 | char *kwnames[] = { | |
26464 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
26465 | }; | |
26466 | ||
26467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26470 | arg2 = obj1; | |
26471 | arg3 = obj2; | |
26472 | { | |
26473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26474 | (arg1)->_setCallbackInfo(arg2,arg3); | |
26475 | ||
26476 | wxPyEndAllowThreads(__tstate); | |
26477 | if (PyErr_Occurred()) SWIG_fail; | |
26478 | } | |
26479 | Py_INCREF(Py_None); resultobj = Py_None; | |
26480 | return resultobj; | |
26481 | fail: | |
26482 | return NULL; | |
26483 | } | |
26484 | ||
26485 | ||
26486 | static PyObject *_wrap_delete_DropTarget(PyObject *, PyObject *args, PyObject *kwargs) { | |
26487 | PyObject *resultobj; | |
26488 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26489 | PyObject * obj0 = 0 ; | |
26490 | char *kwnames[] = { | |
26491 | (char *) "self", NULL | |
26492 | }; | |
26493 | ||
26494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropTarget",kwnames,&obj0)) goto fail; | |
26495 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26496 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26497 | { | |
26498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26499 | delete arg1; | |
26500 | ||
26501 | wxPyEndAllowThreads(__tstate); | |
26502 | if (PyErr_Occurred()) SWIG_fail; | |
26503 | } | |
26504 | Py_INCREF(Py_None); resultobj = Py_None; | |
26505 | return resultobj; | |
26506 | fail: | |
26507 | return NULL; | |
26508 | } | |
26509 | ||
26510 | ||
26511 | static PyObject *_wrap_DropTarget_GetDataObject(PyObject *, PyObject *args, PyObject *kwargs) { | |
26512 | PyObject *resultobj; | |
26513 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26514 | wxDataObject *result; | |
26515 | PyObject * obj0 = 0 ; | |
26516 | char *kwnames[] = { | |
26517 | (char *) "self", NULL | |
26518 | }; | |
26519 | ||
26520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDataObject",kwnames,&obj0)) goto fail; | |
26521 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26522 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26523 | { | |
26524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26525 | result = (wxDataObject *)(arg1)->GetDataObject(); | |
26526 | ||
26527 | wxPyEndAllowThreads(__tstate); | |
26528 | if (PyErr_Occurred()) SWIG_fail; | |
26529 | } | |
26530 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0); | |
26531 | return resultobj; | |
26532 | fail: | |
26533 | return NULL; | |
26534 | } | |
26535 | ||
26536 | ||
26537 | static PyObject *_wrap_DropTarget_SetDataObject(PyObject *, PyObject *args, PyObject *kwargs) { | |
26538 | PyObject *resultobj; | |
26539 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26540 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
26541 | PyObject * obj0 = 0 ; | |
26542 | PyObject * obj1 = 0 ; | |
26543 | char *kwnames[] = { | |
26544 | (char *) "self",(char *) "dataObject", NULL | |
26545 | }; | |
26546 | ||
26547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDataObject",kwnames,&obj0,&obj1)) goto fail; | |
26548 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26549 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26550 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
26551 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
26552 | { | |
26553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26554 | (arg1)->SetDataObject(arg2); | |
26555 | ||
26556 | wxPyEndAllowThreads(__tstate); | |
26557 | if (PyErr_Occurred()) SWIG_fail; | |
26558 | } | |
26559 | Py_INCREF(Py_None); resultobj = Py_None; | |
26560 | return resultobj; | |
26561 | fail: | |
26562 | return NULL; | |
26563 | } | |
26564 | ||
26565 | ||
26566 | static PyObject *_wrap_DropTarget_base_OnEnter(PyObject *, PyObject *args, PyObject *kwargs) { | |
26567 | PyObject *resultobj; | |
26568 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26569 | int arg2 ; | |
26570 | int arg3 ; | |
26571 | int arg4 ; | |
26572 | int result; | |
26573 | PyObject * obj0 = 0 ; | |
26574 | PyObject * obj1 = 0 ; | |
26575 | PyObject * obj2 = 0 ; | |
26576 | PyObject * obj3 = 0 ; | |
26577 | char *kwnames[] = { | |
26578 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26579 | }; | |
26580 | ||
26581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26582 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26583 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26584 | arg2 = (int)SWIG_As_int(obj1); | |
26585 | if (PyErr_Occurred()) SWIG_fail; | |
26586 | arg3 = (int)SWIG_As_int(obj2); | |
26587 | if (PyErr_Occurred()) SWIG_fail; | |
26588 | arg4 = (int)SWIG_As_int(obj3); | |
26589 | if (PyErr_Occurred()) SWIG_fail; | |
26590 | { | |
26591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26592 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
26593 | ||
26594 | wxPyEndAllowThreads(__tstate); | |
26595 | if (PyErr_Occurred()) SWIG_fail; | |
26596 | } | |
26597 | resultobj = SWIG_From_int((int)result); | |
26598 | return resultobj; | |
26599 | fail: | |
26600 | return NULL; | |
26601 | } | |
26602 | ||
26603 | ||
26604 | static PyObject *_wrap_DropTarget_base_OnDragOver(PyObject *, PyObject *args, PyObject *kwargs) { | |
26605 | PyObject *resultobj; | |
26606 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26607 | int arg2 ; | |
26608 | int arg3 ; | |
26609 | int arg4 ; | |
26610 | int result; | |
26611 | PyObject * obj0 = 0 ; | |
26612 | PyObject * obj1 = 0 ; | |
26613 | PyObject * obj2 = 0 ; | |
26614 | PyObject * obj3 = 0 ; | |
26615 | char *kwnames[] = { | |
26616 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26617 | }; | |
26618 | ||
26619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26620 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26621 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26622 | arg2 = (int)SWIG_As_int(obj1); | |
26623 | if (PyErr_Occurred()) SWIG_fail; | |
26624 | arg3 = (int)SWIG_As_int(obj2); | |
26625 | if (PyErr_Occurred()) SWIG_fail; | |
26626 | arg4 = (int)SWIG_As_int(obj3); | |
26627 | if (PyErr_Occurred()) SWIG_fail; | |
26628 | { | |
26629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26630 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
26631 | ||
26632 | wxPyEndAllowThreads(__tstate); | |
26633 | if (PyErr_Occurred()) SWIG_fail; | |
26634 | } | |
26635 | resultobj = SWIG_From_int((int)result); | |
26636 | return resultobj; | |
26637 | fail: | |
26638 | return NULL; | |
26639 | } | |
26640 | ||
26641 | ||
26642 | static PyObject *_wrap_DropTarget_base_OnLeave(PyObject *, PyObject *args, PyObject *kwargs) { | |
26643 | PyObject *resultobj; | |
26644 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26645 | PyObject * obj0 = 0 ; | |
26646 | char *kwnames[] = { | |
26647 | (char *) "self", NULL | |
26648 | }; | |
26649 | ||
26650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
26651 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26652 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26653 | { | |
26654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26655 | (arg1)->base_OnLeave(); | |
26656 | ||
26657 | wxPyEndAllowThreads(__tstate); | |
26658 | if (PyErr_Occurred()) SWIG_fail; | |
26659 | } | |
26660 | Py_INCREF(Py_None); resultobj = Py_None; | |
26661 | return resultobj; | |
26662 | fail: | |
26663 | return NULL; | |
26664 | } | |
26665 | ||
26666 | ||
26667 | static PyObject *_wrap_DropTarget_base_OnDrop(PyObject *, PyObject *args, PyObject *kwargs) { | |
26668 | PyObject *resultobj; | |
26669 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26670 | int arg2 ; | |
26671 | int arg3 ; | |
26672 | bool result; | |
26673 | PyObject * obj0 = 0 ; | |
26674 | PyObject * obj1 = 0 ; | |
26675 | PyObject * obj2 = 0 ; | |
26676 | char *kwnames[] = { | |
26677 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26678 | }; | |
26679 | ||
26680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26683 | arg2 = (int)SWIG_As_int(obj1); | |
26684 | if (PyErr_Occurred()) SWIG_fail; | |
26685 | arg3 = (int)SWIG_As_int(obj2); | |
26686 | if (PyErr_Occurred()) SWIG_fail; | |
26687 | { | |
26688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26689 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
26690 | ||
26691 | wxPyEndAllowThreads(__tstate); | |
26692 | if (PyErr_Occurred()) SWIG_fail; | |
26693 | } | |
26694 | { | |
26695 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26696 | } | |
26697 | return resultobj; | |
26698 | fail: | |
26699 | return NULL; | |
26700 | } | |
26701 | ||
26702 | ||
26703 | static PyObject *_wrap_DropTarget_GetData(PyObject *, PyObject *args, PyObject *kwargs) { | |
26704 | PyObject *resultobj; | |
26705 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26706 | bool result; | |
26707 | PyObject * obj0 = 0 ; | |
26708 | char *kwnames[] = { | |
26709 | (char *) "self", NULL | |
26710 | }; | |
26711 | ||
26712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetData",kwnames,&obj0)) goto fail; | |
26713 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26714 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26715 | { | |
26716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26717 | result = (bool)(arg1)->GetData(); | |
26718 | ||
26719 | wxPyEndAllowThreads(__tstate); | |
26720 | if (PyErr_Occurred()) SWIG_fail; | |
26721 | } | |
26722 | { | |
26723 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26724 | } | |
26725 | return resultobj; | |
26726 | fail: | |
26727 | return NULL; | |
26728 | } | |
26729 | ||
26730 | ||
26731 | static PyObject * DropTarget_swigregister(PyObject *, PyObject *args) { | |
26732 | PyObject *obj; | |
26733 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26734 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDropTarget, obj); | |
26735 | Py_INCREF(obj); | |
26736 | return Py_BuildValue((char *)""); | |
26737 | } | |
26738 | static PyObject *_wrap_new_TextDropTarget(PyObject *, PyObject *args, PyObject *kwargs) { | |
26739 | PyObject *resultobj; | |
26740 | wxPyTextDropTarget *result; | |
26741 | char *kwnames[] = { | |
26742 | NULL | |
26743 | }; | |
26744 | ||
26745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TextDropTarget",kwnames)) goto fail; | |
26746 | { | |
26747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26748 | result = (wxPyTextDropTarget *)new wxPyTextDropTarget(); | |
26749 | ||
26750 | wxPyEndAllowThreads(__tstate); | |
26751 | if (PyErr_Occurred()) SWIG_fail; | |
26752 | } | |
26753 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDropTarget, 1); | |
26754 | return resultobj; | |
26755 | fail: | |
26756 | return NULL; | |
26757 | } | |
26758 | ||
26759 | ||
26760 | static PyObject *_wrap_TextDropTarget__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
26761 | PyObject *resultobj; | |
26762 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26763 | PyObject *arg2 = (PyObject *) 0 ; | |
26764 | PyObject *arg3 = (PyObject *) 0 ; | |
26765 | PyObject * obj0 = 0 ; | |
26766 | PyObject * obj1 = 0 ; | |
26767 | PyObject * obj2 = 0 ; | |
26768 | char *kwnames[] = { | |
26769 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
26770 | }; | |
26771 | ||
26772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26773 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, | |
26774 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26775 | arg2 = obj1; | |
26776 | arg3 = obj2; | |
26777 | { | |
26778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26779 | (arg1)->_setCallbackInfo(arg2,arg3); | |
26780 | ||
26781 | wxPyEndAllowThreads(__tstate); | |
26782 | if (PyErr_Occurred()) SWIG_fail; | |
26783 | } | |
26784 | Py_INCREF(Py_None); resultobj = Py_None; | |
26785 | return resultobj; | |
26786 | fail: | |
26787 | return NULL; | |
26788 | } | |
26789 | ||
26790 | ||
26791 | static PyObject *_wrap_TextDropTarget_base_OnEnter(PyObject *, PyObject *args, PyObject *kwargs) { | |
26792 | PyObject *resultobj; | |
26793 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26794 | int arg2 ; | |
26795 | int arg3 ; | |
26796 | int arg4 ; | |
26797 | int result; | |
26798 | PyObject * obj0 = 0 ; | |
26799 | PyObject * obj1 = 0 ; | |
26800 | PyObject * obj2 = 0 ; | |
26801 | PyObject * obj3 = 0 ; | |
26802 | char *kwnames[] = { | |
26803 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26804 | }; | |
26805 | ||
26806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26807 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, | |
26808 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26809 | arg2 = (int)SWIG_As_int(obj1); | |
26810 | if (PyErr_Occurred()) SWIG_fail; | |
26811 | arg3 = (int)SWIG_As_int(obj2); | |
26812 | if (PyErr_Occurred()) SWIG_fail; | |
26813 | arg4 = (int)SWIG_As_int(obj3); | |
26814 | if (PyErr_Occurred()) SWIG_fail; | |
26815 | { | |
26816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26817 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
26818 | ||
26819 | wxPyEndAllowThreads(__tstate); | |
26820 | if (PyErr_Occurred()) SWIG_fail; | |
26821 | } | |
26822 | resultobj = SWIG_From_int((int)result); | |
26823 | return resultobj; | |
26824 | fail: | |
26825 | return NULL; | |
26826 | } | |
26827 | ||
26828 | ||
26829 | static PyObject *_wrap_TextDropTarget_base_OnDragOver(PyObject *, PyObject *args, PyObject *kwargs) { | |
26830 | PyObject *resultobj; | |
26831 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26832 | int arg2 ; | |
26833 | int arg3 ; | |
26834 | int arg4 ; | |
26835 | int result; | |
26836 | PyObject * obj0 = 0 ; | |
26837 | PyObject * obj1 = 0 ; | |
26838 | PyObject * obj2 = 0 ; | |
26839 | PyObject * obj3 = 0 ; | |
26840 | char *kwnames[] = { | |
26841 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26842 | }; | |
26843 | ||
26844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26845 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, | |
26846 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26847 | arg2 = (int)SWIG_As_int(obj1); | |
26848 | if (PyErr_Occurred()) SWIG_fail; | |
26849 | arg3 = (int)SWIG_As_int(obj2); | |
26850 | if (PyErr_Occurred()) SWIG_fail; | |
26851 | arg4 = (int)SWIG_As_int(obj3); | |
26852 | if (PyErr_Occurred()) SWIG_fail; | |
26853 | { | |
26854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26855 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
26856 | ||
26857 | wxPyEndAllowThreads(__tstate); | |
26858 | if (PyErr_Occurred()) SWIG_fail; | |
26859 | } | |
26860 | resultobj = SWIG_From_int((int)result); | |
26861 | return resultobj; | |
26862 | fail: | |
26863 | return NULL; | |
26864 | } | |
26865 | ||
26866 | ||
26867 | static PyObject *_wrap_TextDropTarget_base_OnLeave(PyObject *, PyObject *args, PyObject *kwargs) { | |
26868 | PyObject *resultobj; | |
26869 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26870 | PyObject * obj0 = 0 ; | |
26871 | char *kwnames[] = { | |
26872 | (char *) "self", NULL | |
26873 | }; | |
26874 | ||
26875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
26876 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, | |
26877 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26878 | { | |
26879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26880 | (arg1)->base_OnLeave(); | |
26881 | ||
26882 | wxPyEndAllowThreads(__tstate); | |
26883 | if (PyErr_Occurred()) SWIG_fail; | |
26884 | } | |
26885 | Py_INCREF(Py_None); resultobj = Py_None; | |
26886 | return resultobj; | |
26887 | fail: | |
26888 | return NULL; | |
26889 | } | |
26890 | ||
26891 | ||
26892 | static PyObject *_wrap_TextDropTarget_base_OnDrop(PyObject *, PyObject *args, PyObject *kwargs) { | |
26893 | PyObject *resultobj; | |
26894 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26895 | int arg2 ; | |
26896 | int arg3 ; | |
26897 | bool result; | |
26898 | PyObject * obj0 = 0 ; | |
26899 | PyObject * obj1 = 0 ; | |
26900 | PyObject * obj2 = 0 ; | |
26901 | char *kwnames[] = { | |
26902 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26903 | }; | |
26904 | ||
26905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26906 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, | |
26907 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26908 | arg2 = (int)SWIG_As_int(obj1); | |
26909 | if (PyErr_Occurred()) SWIG_fail; | |
26910 | arg3 = (int)SWIG_As_int(obj2); | |
26911 | if (PyErr_Occurred()) SWIG_fail; | |
26912 | { | |
26913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26914 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
26915 | ||
26916 | wxPyEndAllowThreads(__tstate); | |
26917 | if (PyErr_Occurred()) SWIG_fail; | |
26918 | } | |
26919 | { | |
26920 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26921 | } | |
26922 | return resultobj; | |
26923 | fail: | |
26924 | return NULL; | |
26925 | } | |
26926 | ||
26927 | ||
26928 | static PyObject *_wrap_TextDropTarget_base_OnData(PyObject *, PyObject *args, PyObject *kwargs) { | |
26929 | PyObject *resultobj; | |
26930 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26931 | int arg2 ; | |
26932 | int arg3 ; | |
26933 | int arg4 ; | |
26934 | int result; | |
26935 | PyObject * obj0 = 0 ; | |
26936 | PyObject * obj1 = 0 ; | |
26937 | PyObject * obj2 = 0 ; | |
26938 | PyObject * obj3 = 0 ; | |
26939 | char *kwnames[] = { | |
26940 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26941 | }; | |
26942 | ||
26943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26944 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, | |
26945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26946 | arg2 = (int)SWIG_As_int(obj1); | |
26947 | if (PyErr_Occurred()) SWIG_fail; | |
26948 | arg3 = (int)SWIG_As_int(obj2); | |
26949 | if (PyErr_Occurred()) SWIG_fail; | |
26950 | arg4 = (int)SWIG_As_int(obj3); | |
26951 | if (PyErr_Occurred()) SWIG_fail; | |
26952 | { | |
26953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26954 | result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4); | |
26955 | ||
26956 | wxPyEndAllowThreads(__tstate); | |
26957 | if (PyErr_Occurred()) SWIG_fail; | |
26958 | } | |
26959 | resultobj = SWIG_From_int((int)result); | |
26960 | return resultobj; | |
26961 | fail: | |
26962 | return NULL; | |
26963 | } | |
26964 | ||
26965 | ||
26966 | static PyObject * TextDropTarget_swigregister(PyObject *, PyObject *args) { | |
26967 | PyObject *obj; | |
26968 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26969 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDropTarget, obj); | |
26970 | Py_INCREF(obj); | |
26971 | return Py_BuildValue((char *)""); | |
26972 | } | |
26973 | static PyObject *_wrap_new_FileDropTarget(PyObject *, PyObject *args, PyObject *kwargs) { | |
26974 | PyObject *resultobj; | |
26975 | wxPyFileDropTarget *result; | |
26976 | char *kwnames[] = { | |
26977 | NULL | |
26978 | }; | |
26979 | ||
26980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDropTarget",kwnames)) goto fail; | |
26981 | { | |
26982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26983 | result = (wxPyFileDropTarget *)new wxPyFileDropTarget(); | |
26984 | ||
26985 | wxPyEndAllowThreads(__tstate); | |
26986 | if (PyErr_Occurred()) SWIG_fail; | |
26987 | } | |
26988 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileDropTarget, 1); | |
26989 | return resultobj; | |
26990 | fail: | |
26991 | return NULL; | |
26992 | } | |
26993 | ||
26994 | ||
26995 | static PyObject *_wrap_FileDropTarget__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
26996 | PyObject *resultobj; | |
26997 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
26998 | PyObject *arg2 = (PyObject *) 0 ; | |
26999 | PyObject *arg3 = (PyObject *) 0 ; | |
27000 | PyObject * obj0 = 0 ; | |
27001 | PyObject * obj1 = 0 ; | |
27002 | PyObject * obj2 = 0 ; | |
27003 | char *kwnames[] = { | |
27004 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
27005 | }; | |
27006 | ||
27007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27008 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, | |
27009 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27010 | arg2 = obj1; | |
27011 | arg3 = obj2; | |
27012 | { | |
27013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27014 | (arg1)->_setCallbackInfo(arg2,arg3); | |
27015 | ||
27016 | wxPyEndAllowThreads(__tstate); | |
27017 | if (PyErr_Occurred()) SWIG_fail; | |
27018 | } | |
27019 | Py_INCREF(Py_None); resultobj = Py_None; | |
27020 | return resultobj; | |
27021 | fail: | |
27022 | return NULL; | |
27023 | } | |
27024 | ||
27025 | ||
27026 | static PyObject *_wrap_FileDropTarget_base_OnEnter(PyObject *, PyObject *args, PyObject *kwargs) { | |
27027 | PyObject *resultobj; | |
27028 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
27029 | int arg2 ; | |
27030 | int arg3 ; | |
27031 | int arg4 ; | |
27032 | int result; | |
27033 | PyObject * obj0 = 0 ; | |
27034 | PyObject * obj1 = 0 ; | |
27035 | PyObject * obj2 = 0 ; | |
27036 | PyObject * obj3 = 0 ; | |
27037 | char *kwnames[] = { | |
27038 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
27039 | }; | |
27040 | ||
27041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
27042 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, | |
27043 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27044 | arg2 = (int)SWIG_As_int(obj1); | |
27045 | if (PyErr_Occurred()) SWIG_fail; | |
27046 | arg3 = (int)SWIG_As_int(obj2); | |
27047 | if (PyErr_Occurred()) SWIG_fail; | |
27048 | arg4 = (int)SWIG_As_int(obj3); | |
27049 | if (PyErr_Occurred()) SWIG_fail; | |
27050 | { | |
27051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27052 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
27053 | ||
27054 | wxPyEndAllowThreads(__tstate); | |
27055 | if (PyErr_Occurred()) SWIG_fail; | |
27056 | } | |
27057 | resultobj = SWIG_From_int((int)result); | |
27058 | return resultobj; | |
27059 | fail: | |
27060 | return NULL; | |
27061 | } | |
27062 | ||
27063 | ||
27064 | static PyObject *_wrap_FileDropTarget_base_OnDragOver(PyObject *, PyObject *args, PyObject *kwargs) { | |
27065 | PyObject *resultobj; | |
27066 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
27067 | int arg2 ; | |
27068 | int arg3 ; | |
27069 | int arg4 ; | |
27070 | int result; | |
27071 | PyObject * obj0 = 0 ; | |
27072 | PyObject * obj1 = 0 ; | |
27073 | PyObject * obj2 = 0 ; | |
27074 | PyObject * obj3 = 0 ; | |
27075 | char *kwnames[] = { | |
27076 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
27077 | }; | |
27078 | ||
27079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
27080 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, | |
27081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27082 | arg2 = (int)SWIG_As_int(obj1); | |
27083 | if (PyErr_Occurred()) SWIG_fail; | |
27084 | arg3 = (int)SWIG_As_int(obj2); | |
27085 | if (PyErr_Occurred()) SWIG_fail; | |
27086 | arg4 = (int)SWIG_As_int(obj3); | |
27087 | if (PyErr_Occurred()) SWIG_fail; | |
27088 | { | |
27089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27090 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
27091 | ||
27092 | wxPyEndAllowThreads(__tstate); | |
27093 | if (PyErr_Occurred()) SWIG_fail; | |
27094 | } | |
27095 | resultobj = SWIG_From_int((int)result); | |
27096 | return resultobj; | |
27097 | fail: | |
27098 | return NULL; | |
27099 | } | |
27100 | ||
27101 | ||
27102 | static PyObject *_wrap_FileDropTarget_base_OnLeave(PyObject *, PyObject *args, PyObject *kwargs) { | |
27103 | PyObject *resultobj; | |
27104 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
27105 | PyObject * obj0 = 0 ; | |
27106 | char *kwnames[] = { | |
27107 | (char *) "self", NULL | |
27108 | }; | |
27109 | ||
27110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
27111 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, | |
27112 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27113 | { | |
27114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27115 | (arg1)->base_OnLeave(); | |
27116 | ||
27117 | wxPyEndAllowThreads(__tstate); | |
27118 | if (PyErr_Occurred()) SWIG_fail; | |
27119 | } | |
27120 | Py_INCREF(Py_None); resultobj = Py_None; | |
27121 | return resultobj; | |
27122 | fail: | |
27123 | return NULL; | |
27124 | } | |
27125 | ||
27126 | ||
27127 | static PyObject *_wrap_FileDropTarget_base_OnDrop(PyObject *, PyObject *args, PyObject *kwargs) { | |
27128 | PyObject *resultobj; | |
27129 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
27130 | int arg2 ; | |
27131 | int arg3 ; | |
27132 | bool result; | |
27133 | PyObject * obj0 = 0 ; | |
27134 | PyObject * obj1 = 0 ; | |
27135 | PyObject * obj2 = 0 ; | |
27136 | char *kwnames[] = { | |
27137 | (char *) "self",(char *) "x",(char *) "y", NULL | |
27138 | }; | |
27139 | ||
27140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27141 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, | |
27142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27143 | arg2 = (int)SWIG_As_int(obj1); | |
27144 | if (PyErr_Occurred()) SWIG_fail; | |
27145 | arg3 = (int)SWIG_As_int(obj2); | |
27146 | if (PyErr_Occurred()) SWIG_fail; | |
27147 | { | |
27148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27149 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
27150 | ||
27151 | wxPyEndAllowThreads(__tstate); | |
27152 | if (PyErr_Occurred()) SWIG_fail; | |
27153 | } | |
27154 | { | |
27155 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27156 | } | |
27157 | return resultobj; | |
27158 | fail: | |
27159 | return NULL; | |
27160 | } | |
27161 | ||
27162 | ||
27163 | static PyObject *_wrap_FileDropTarget_base_OnData(PyObject *, PyObject *args, PyObject *kwargs) { | |
27164 | PyObject *resultobj; | |
27165 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
27166 | int arg2 ; | |
27167 | int arg3 ; | |
27168 | int arg4 ; | |
27169 | int result; | |
27170 | PyObject * obj0 = 0 ; | |
27171 | PyObject * obj1 = 0 ; | |
27172 | PyObject * obj2 = 0 ; | |
27173 | PyObject * obj3 = 0 ; | |
27174 | char *kwnames[] = { | |
27175 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
27176 | }; | |
27177 | ||
27178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
27179 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, | |
27180 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27181 | arg2 = (int)SWIG_As_int(obj1); | |
27182 | if (PyErr_Occurred()) SWIG_fail; | |
27183 | arg3 = (int)SWIG_As_int(obj2); | |
27184 | if (PyErr_Occurred()) SWIG_fail; | |
27185 | arg4 = (int)SWIG_As_int(obj3); | |
27186 | if (PyErr_Occurred()) SWIG_fail; | |
27187 | { | |
27188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27189 | result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4); | |
27190 | ||
27191 | wxPyEndAllowThreads(__tstate); | |
27192 | if (PyErr_Occurred()) SWIG_fail; | |
27193 | } | |
27194 | resultobj = SWIG_From_int((int)result); | |
27195 | return resultobj; | |
27196 | fail: | |
27197 | return NULL; | |
27198 | } | |
27199 | ||
27200 | ||
27201 | static PyObject * FileDropTarget_swigregister(PyObject *, PyObject *args) { | |
27202 | PyObject *obj; | |
27203 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27204 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFileDropTarget, obj); | |
27205 | Py_INCREF(obj); | |
27206 | return Py_BuildValue((char *)""); | |
27207 | } | |
27208 | static PyObject *_wrap_new_Clipboard(PyObject *, PyObject *args, PyObject *kwargs) { | |
27209 | PyObject *resultobj; | |
27210 | wxClipboard *result; | |
27211 | char *kwnames[] = { | |
27212 | NULL | |
27213 | }; | |
27214 | ||
27215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Clipboard",kwnames)) goto fail; | |
27216 | { | |
27217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27218 | result = (wxClipboard *)new wxClipboard(); | |
27219 | ||
27220 | wxPyEndAllowThreads(__tstate); | |
27221 | if (PyErr_Occurred()) SWIG_fail; | |
27222 | } | |
27223 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 1); | |
27224 | return resultobj; | |
27225 | fail: | |
27226 | return NULL; | |
27227 | } | |
27228 | ||
27229 | ||
27230 | static PyObject *_wrap_delete_Clipboard(PyObject *, PyObject *args, PyObject *kwargs) { | |
27231 | PyObject *resultobj; | |
27232 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27233 | PyObject * obj0 = 0 ; | |
27234 | char *kwnames[] = { | |
27235 | (char *) "self", NULL | |
27236 | }; | |
27237 | ||
27238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Clipboard",kwnames,&obj0)) goto fail; | |
27239 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27240 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27241 | { | |
27242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27243 | delete arg1; | |
27244 | ||
27245 | wxPyEndAllowThreads(__tstate); | |
27246 | if (PyErr_Occurred()) SWIG_fail; | |
27247 | } | |
27248 | Py_INCREF(Py_None); resultobj = Py_None; | |
27249 | return resultobj; | |
27250 | fail: | |
27251 | return NULL; | |
27252 | } | |
27253 | ||
27254 | ||
27255 | static PyObject *_wrap_Clipboard_Open(PyObject *, PyObject *args, PyObject *kwargs) { | |
27256 | PyObject *resultobj; | |
27257 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27258 | bool result; | |
27259 | PyObject * obj0 = 0 ; | |
27260 | char *kwnames[] = { | |
27261 | (char *) "self", NULL | |
27262 | }; | |
27263 | ||
27264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Open",kwnames,&obj0)) goto fail; | |
27265 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27266 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27267 | { | |
27268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27269 | result = (bool)(arg1)->Open(); | |
27270 | ||
27271 | wxPyEndAllowThreads(__tstate); | |
27272 | if (PyErr_Occurred()) SWIG_fail; | |
27273 | } | |
27274 | { | |
27275 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27276 | } | |
27277 | return resultobj; | |
27278 | fail: | |
27279 | return NULL; | |
27280 | } | |
27281 | ||
27282 | ||
27283 | static PyObject *_wrap_Clipboard_Close(PyObject *, PyObject *args, PyObject *kwargs) { | |
27284 | PyObject *resultobj; | |
27285 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27286 | PyObject * obj0 = 0 ; | |
27287 | char *kwnames[] = { | |
27288 | (char *) "self", NULL | |
27289 | }; | |
27290 | ||
27291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Close",kwnames,&obj0)) goto fail; | |
27292 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27293 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27294 | { | |
27295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27296 | (arg1)->Close(); | |
27297 | ||
27298 | wxPyEndAllowThreads(__tstate); | |
27299 | if (PyErr_Occurred()) SWIG_fail; | |
27300 | } | |
27301 | Py_INCREF(Py_None); resultobj = Py_None; | |
27302 | return resultobj; | |
27303 | fail: | |
27304 | return NULL; | |
27305 | } | |
27306 | ||
27307 | ||
27308 | static PyObject *_wrap_Clipboard_IsOpened(PyObject *, PyObject *args, PyObject *kwargs) { | |
27309 | PyObject *resultobj; | |
27310 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27311 | bool result; | |
27312 | PyObject * obj0 = 0 ; | |
27313 | char *kwnames[] = { | |
27314 | (char *) "self", NULL | |
27315 | }; | |
27316 | ||
27317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_IsOpened",kwnames,&obj0)) goto fail; | |
27318 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27319 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27320 | { | |
27321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27322 | result = (bool)((wxClipboard const *)arg1)->IsOpened(); | |
27323 | ||
27324 | wxPyEndAllowThreads(__tstate); | |
27325 | if (PyErr_Occurred()) SWIG_fail; | |
27326 | } | |
27327 | { | |
27328 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27329 | } | |
27330 | return resultobj; | |
27331 | fail: | |
27332 | return NULL; | |
27333 | } | |
27334 | ||
27335 | ||
27336 | static PyObject *_wrap_Clipboard_AddData(PyObject *, PyObject *args, PyObject *kwargs) { | |
27337 | PyObject *resultobj; | |
27338 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27339 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
27340 | bool result; | |
27341 | PyObject * obj0 = 0 ; | |
27342 | PyObject * obj1 = 0 ; | |
27343 | char *kwnames[] = { | |
27344 | (char *) "self",(char *) "data", NULL | |
27345 | }; | |
27346 | ||
27347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_AddData",kwnames,&obj0,&obj1)) goto fail; | |
27348 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27350 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
27351 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
27352 | { | |
27353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27354 | result = (bool)(arg1)->AddData(arg2); | |
27355 | ||
27356 | wxPyEndAllowThreads(__tstate); | |
27357 | if (PyErr_Occurred()) SWIG_fail; | |
27358 | } | |
27359 | { | |
27360 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27361 | } | |
27362 | return resultobj; | |
27363 | fail: | |
27364 | return NULL; | |
27365 | } | |
27366 | ||
27367 | ||
27368 | static PyObject *_wrap_Clipboard_SetData(PyObject *, PyObject *args, PyObject *kwargs) { | |
27369 | PyObject *resultobj; | |
27370 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27371 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
27372 | bool result; | |
27373 | PyObject * obj0 = 0 ; | |
27374 | PyObject * obj1 = 0 ; | |
27375 | char *kwnames[] = { | |
27376 | (char *) "self",(char *) "data", NULL | |
27377 | }; | |
27378 | ||
27379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_SetData",kwnames,&obj0,&obj1)) goto fail; | |
27380 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27381 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27382 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
27383 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
27384 | { | |
27385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27386 | result = (bool)(arg1)->SetData(arg2); | |
27387 | ||
27388 | wxPyEndAllowThreads(__tstate); | |
27389 | if (PyErr_Occurred()) SWIG_fail; | |
27390 | } | |
27391 | { | |
27392 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27393 | } | |
27394 | return resultobj; | |
27395 | fail: | |
27396 | return NULL; | |
27397 | } | |
27398 | ||
27399 | ||
27400 | static PyObject *_wrap_Clipboard_IsSupported(PyObject *, PyObject *args, PyObject *kwargs) { | |
27401 | PyObject *resultobj; | |
27402 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27403 | wxDataFormat *arg2 = 0 ; | |
27404 | bool result; | |
27405 | PyObject * obj0 = 0 ; | |
27406 | PyObject * obj1 = 0 ; | |
27407 | char *kwnames[] = { | |
27408 | (char *) "self",(char *) "format", NULL | |
27409 | }; | |
27410 | ||
27411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_IsSupported",kwnames,&obj0,&obj1)) goto fail; | |
27412 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27413 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27414 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
27415 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27416 | SWIG_fail; | |
27417 | if (arg2 == NULL) { | |
27418 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27419 | SWIG_fail; | |
27420 | } | |
27421 | { | |
27422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27423 | result = (bool)(arg1)->IsSupported((wxDataFormat const &)*arg2); | |
27424 | ||
27425 | wxPyEndAllowThreads(__tstate); | |
27426 | if (PyErr_Occurred()) SWIG_fail; | |
27427 | } | |
27428 | { | |
27429 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27430 | } | |
27431 | return resultobj; | |
27432 | fail: | |
27433 | return NULL; | |
27434 | } | |
27435 | ||
27436 | ||
27437 | static PyObject *_wrap_Clipboard_GetData(PyObject *, PyObject *args, PyObject *kwargs) { | |
27438 | PyObject *resultobj; | |
27439 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27440 | wxDataObject *arg2 = 0 ; | |
27441 | bool result; | |
27442 | PyObject * obj0 = 0 ; | |
27443 | PyObject * obj1 = 0 ; | |
27444 | char *kwnames[] = { | |
27445 | (char *) "self",(char *) "data", NULL | |
27446 | }; | |
27447 | ||
27448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_GetData",kwnames,&obj0,&obj1)) goto fail; | |
27449 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27450 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27451 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
27452 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27453 | SWIG_fail; | |
27454 | if (arg2 == NULL) { | |
27455 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27456 | SWIG_fail; | |
27457 | } | |
27458 | { | |
27459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27460 | result = (bool)(arg1)->GetData(*arg2); | |
27461 | ||
27462 | wxPyEndAllowThreads(__tstate); | |
27463 | if (PyErr_Occurred()) SWIG_fail; | |
27464 | } | |
27465 | { | |
27466 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27467 | } | |
27468 | return resultobj; | |
27469 | fail: | |
27470 | return NULL; | |
27471 | } | |
27472 | ||
27473 | ||
27474 | static PyObject *_wrap_Clipboard_Clear(PyObject *, PyObject *args, PyObject *kwargs) { | |
27475 | PyObject *resultobj; | |
27476 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27477 | PyObject * obj0 = 0 ; | |
27478 | char *kwnames[] = { | |
27479 | (char *) "self", NULL | |
27480 | }; | |
27481 | ||
27482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Clear",kwnames,&obj0)) goto fail; | |
27483 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27484 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27485 | { | |
27486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27487 | (arg1)->Clear(); | |
27488 | ||
27489 | wxPyEndAllowThreads(__tstate); | |
27490 | if (PyErr_Occurred()) SWIG_fail; | |
27491 | } | |
27492 | Py_INCREF(Py_None); resultobj = Py_None; | |
27493 | return resultobj; | |
27494 | fail: | |
27495 | return NULL; | |
27496 | } | |
27497 | ||
27498 | ||
27499 | static PyObject *_wrap_Clipboard_Flush(PyObject *, PyObject *args, PyObject *kwargs) { | |
27500 | PyObject *resultobj; | |
27501 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27502 | bool result; | |
27503 | PyObject * obj0 = 0 ; | |
27504 | char *kwnames[] = { | |
27505 | (char *) "self", NULL | |
27506 | }; | |
27507 | ||
27508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Flush",kwnames,&obj0)) goto fail; | |
27509 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27510 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27511 | { | |
27512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27513 | result = (bool)(arg1)->Flush(); | |
27514 | ||
27515 | wxPyEndAllowThreads(__tstate); | |
27516 | if (PyErr_Occurred()) SWIG_fail; | |
27517 | } | |
27518 | { | |
27519 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27520 | } | |
27521 | return resultobj; | |
27522 | fail: | |
27523 | return NULL; | |
27524 | } | |
27525 | ||
27526 | ||
27527 | static PyObject *_wrap_Clipboard_UsePrimarySelection(PyObject *, PyObject *args, PyObject *kwargs) { | |
27528 | PyObject *resultobj; | |
27529 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27530 | bool arg2 = (bool) true ; | |
27531 | PyObject * obj0 = 0 ; | |
27532 | PyObject * obj1 = 0 ; | |
27533 | char *kwnames[] = { | |
27534 | (char *) "self",(char *) "primary", NULL | |
27535 | }; | |
27536 | ||
27537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Clipboard_UsePrimarySelection",kwnames,&obj0,&obj1)) goto fail; | |
27538 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27540 | if (obj1) { | |
27541 | arg2 = (bool)SWIG_As_bool(obj1); | |
27542 | if (PyErr_Occurred()) SWIG_fail; | |
27543 | } | |
27544 | { | |
27545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27546 | (arg1)->UsePrimarySelection(arg2); | |
27547 | ||
27548 | wxPyEndAllowThreads(__tstate); | |
27549 | if (PyErr_Occurred()) SWIG_fail; | |
27550 | } | |
27551 | Py_INCREF(Py_None); resultobj = Py_None; | |
27552 | return resultobj; | |
27553 | fail: | |
27554 | return NULL; | |
27555 | } | |
27556 | ||
27557 | ||
27558 | static PyObject *_wrap_Clipboard_Get(PyObject *, PyObject *args, PyObject *kwargs) { | |
27559 | PyObject *resultobj; | |
27560 | wxClipboard *result; | |
27561 | char *kwnames[] = { | |
27562 | NULL | |
27563 | }; | |
27564 | ||
27565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Clipboard_Get",kwnames)) goto fail; | |
27566 | { | |
27567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27568 | result = (wxClipboard *)wxClipboard::Get(); | |
27569 | ||
27570 | wxPyEndAllowThreads(__tstate); | |
27571 | if (PyErr_Occurred()) SWIG_fail; | |
27572 | } | |
27573 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 0); | |
27574 | return resultobj; | |
27575 | fail: | |
27576 | return NULL; | |
27577 | } | |
27578 | ||
27579 | ||
27580 | static PyObject * Clipboard_swigregister(PyObject *, PyObject *args) { | |
27581 | PyObject *obj; | |
27582 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27583 | SWIG_TypeClientData(SWIGTYPE_p_wxClipboard, obj); | |
27584 | Py_INCREF(obj); | |
27585 | return Py_BuildValue((char *)""); | |
27586 | } | |
27587 | static PyObject *_wrap_new_ClipboardLocker(PyObject *, PyObject *args, PyObject *kwargs) { | |
27588 | PyObject *resultobj; | |
27589 | wxClipboard *arg1 = (wxClipboard *) NULL ; | |
27590 | wxClipboardLocker *result; | |
27591 | PyObject * obj0 = 0 ; | |
27592 | char *kwnames[] = { | |
27593 | (char *) "clipboard", NULL | |
27594 | }; | |
27595 | ||
27596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ClipboardLocker",kwnames,&obj0)) goto fail; | |
27597 | if (obj0) { | |
27598 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27599 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27600 | } | |
27601 | { | |
27602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27603 | result = (wxClipboardLocker *)new wxClipboardLocker(arg1); | |
27604 | ||
27605 | wxPyEndAllowThreads(__tstate); | |
27606 | if (PyErr_Occurred()) SWIG_fail; | |
27607 | } | |
27608 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboardLocker, 1); | |
27609 | return resultobj; | |
27610 | fail: | |
27611 | return NULL; | |
27612 | } | |
27613 | ||
27614 | ||
27615 | static PyObject *_wrap_delete_ClipboardLocker(PyObject *, PyObject *args, PyObject *kwargs) { | |
27616 | PyObject *resultobj; | |
27617 | wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ; | |
27618 | PyObject * obj0 = 0 ; | |
27619 | char *kwnames[] = { | |
27620 | (char *) "self", NULL | |
27621 | }; | |
27622 | ||
27623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ClipboardLocker",kwnames,&obj0)) goto fail; | |
27624 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker, | |
27625 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27626 | { | |
27627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27628 | delete arg1; | |
27629 | ||
27630 | wxPyEndAllowThreads(__tstate); | |
27631 | if (PyErr_Occurred()) SWIG_fail; | |
27632 | } | |
27633 | Py_INCREF(Py_None); resultobj = Py_None; | |
27634 | return resultobj; | |
27635 | fail: | |
27636 | return NULL; | |
27637 | } | |
27638 | ||
27639 | ||
27640 | static PyObject *_wrap_ClipboardLocker___nonzero__(PyObject *, PyObject *args, PyObject *kwargs) { | |
27641 | PyObject *resultobj; | |
27642 | wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ; | |
27643 | bool result; | |
27644 | PyObject * obj0 = 0 ; | |
27645 | char *kwnames[] = { | |
27646 | (char *) "self", NULL | |
27647 | }; | |
27648 | ||
27649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ClipboardLocker___nonzero__",kwnames,&obj0)) goto fail; | |
27650 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker, | |
27651 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27652 | { | |
27653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27654 | result = (bool)wxClipboardLocker___nonzero__(arg1); | |
27655 | ||
27656 | wxPyEndAllowThreads(__tstate); | |
27657 | if (PyErr_Occurred()) SWIG_fail; | |
27658 | } | |
27659 | { | |
27660 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27661 | } | |
27662 | return resultobj; | |
27663 | fail: | |
27664 | return NULL; | |
27665 | } | |
27666 | ||
27667 | ||
27668 | static PyObject * ClipboardLocker_swigregister(PyObject *, PyObject *args) { | |
27669 | PyObject *obj; | |
27670 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27671 | SWIG_TypeClientData(SWIGTYPE_p_wxClipboardLocker, obj); | |
27672 | Py_INCREF(obj); | |
27673 | return Py_BuildValue((char *)""); | |
27674 | } | |
27675 | static PyObject *_wrap_new_VideoMode(PyObject *, PyObject *args, PyObject *kwargs) { | |
27676 | PyObject *resultobj; | |
27677 | int arg1 = (int) 0 ; | |
27678 | int arg2 = (int) 0 ; | |
27679 | int arg3 = (int) 0 ; | |
27680 | int arg4 = (int) 0 ; | |
27681 | wxVideoMode *result; | |
27682 | PyObject * obj0 = 0 ; | |
27683 | PyObject * obj1 = 0 ; | |
27684 | PyObject * obj2 = 0 ; | |
27685 | PyObject * obj3 = 0 ; | |
27686 | char *kwnames[] = { | |
27687 | (char *) "width",(char *) "height",(char *) "depth",(char *) "freq", NULL | |
27688 | }; | |
27689 | ||
27690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_VideoMode",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
27691 | if (obj0) { | |
27692 | arg1 = (int)SWIG_As_int(obj0); | |
27693 | if (PyErr_Occurred()) SWIG_fail; | |
27694 | } | |
27695 | if (obj1) { | |
27696 | arg2 = (int)SWIG_As_int(obj1); | |
27697 | if (PyErr_Occurred()) SWIG_fail; | |
27698 | } | |
27699 | if (obj2) { | |
27700 | arg3 = (int)SWIG_As_int(obj2); | |
27701 | if (PyErr_Occurred()) SWIG_fail; | |
27702 | } | |
27703 | if (obj3) { | |
27704 | arg4 = (int)SWIG_As_int(obj3); | |
27705 | if (PyErr_Occurred()) SWIG_fail; | |
27706 | } | |
27707 | { | |
27708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27709 | result = (wxVideoMode *)new wxVideoMode(arg1,arg2,arg3,arg4); | |
27710 | ||
27711 | wxPyEndAllowThreads(__tstate); | |
27712 | if (PyErr_Occurred()) SWIG_fail; | |
27713 | } | |
27714 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVideoMode, 1); | |
27715 | return resultobj; | |
27716 | fail: | |
27717 | return NULL; | |
27718 | } | |
27719 | ||
27720 | ||
27721 | static PyObject *_wrap_delete_VideoMode(PyObject *, PyObject *args, PyObject *kwargs) { | |
27722 | PyObject *resultobj; | |
27723 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27724 | PyObject * obj0 = 0 ; | |
27725 | char *kwnames[] = { | |
27726 | (char *) "self", NULL | |
27727 | }; | |
27728 | ||
27729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VideoMode",kwnames,&obj0)) goto fail; | |
27730 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27731 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27732 | { | |
27733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27734 | delete arg1; | |
27735 | ||
27736 | wxPyEndAllowThreads(__tstate); | |
27737 | if (PyErr_Occurred()) SWIG_fail; | |
27738 | } | |
27739 | Py_INCREF(Py_None); resultobj = Py_None; | |
27740 | return resultobj; | |
27741 | fail: | |
27742 | return NULL; | |
27743 | } | |
27744 | ||
27745 | ||
27746 | static PyObject *_wrap_VideoMode_Matches(PyObject *, PyObject *args, PyObject *kwargs) { | |
27747 | PyObject *resultobj; | |
27748 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27749 | wxVideoMode *arg2 = 0 ; | |
27750 | bool result; | |
27751 | PyObject * obj0 = 0 ; | |
27752 | PyObject * obj1 = 0 ; | |
27753 | char *kwnames[] = { | |
27754 | (char *) "self",(char *) "other", NULL | |
27755 | }; | |
27756 | ||
27757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_Matches",kwnames,&obj0,&obj1)) goto fail; | |
27758 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27759 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27760 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
27761 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27762 | SWIG_fail; | |
27763 | if (arg2 == NULL) { | |
27764 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27765 | SWIG_fail; | |
27766 | } | |
27767 | { | |
27768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27769 | result = (bool)((wxVideoMode const *)arg1)->Matches((wxVideoMode const &)*arg2); | |
27770 | ||
27771 | wxPyEndAllowThreads(__tstate); | |
27772 | if (PyErr_Occurred()) SWIG_fail; | |
27773 | } | |
27774 | { | |
27775 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27776 | } | |
27777 | return resultobj; | |
27778 | fail: | |
27779 | return NULL; | |
27780 | } | |
27781 | ||
27782 | ||
27783 | static PyObject *_wrap_VideoMode_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { | |
27784 | PyObject *resultobj; | |
27785 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27786 | int result; | |
27787 | PyObject * obj0 = 0 ; | |
27788 | char *kwnames[] = { | |
27789 | (char *) "self", NULL | |
27790 | }; | |
27791 | ||
27792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetWidth",kwnames,&obj0)) goto fail; | |
27793 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27794 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27795 | { | |
27796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27797 | result = (int)((wxVideoMode const *)arg1)->GetWidth(); | |
27798 | ||
27799 | wxPyEndAllowThreads(__tstate); | |
27800 | if (PyErr_Occurred()) SWIG_fail; | |
27801 | } | |
27802 | resultobj = SWIG_From_int((int)result); | |
27803 | return resultobj; | |
27804 | fail: | |
27805 | return NULL; | |
27806 | } | |
27807 | ||
27808 | ||
27809 | static PyObject *_wrap_VideoMode_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { | |
27810 | PyObject *resultobj; | |
27811 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27812 | int result; | |
27813 | PyObject * obj0 = 0 ; | |
27814 | char *kwnames[] = { | |
27815 | (char *) "self", NULL | |
27816 | }; | |
27817 | ||
27818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetHeight",kwnames,&obj0)) goto fail; | |
27819 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27820 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27821 | { | |
27822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27823 | result = (int)((wxVideoMode const *)arg1)->GetHeight(); | |
27824 | ||
27825 | wxPyEndAllowThreads(__tstate); | |
27826 | if (PyErr_Occurred()) SWIG_fail; | |
27827 | } | |
27828 | resultobj = SWIG_From_int((int)result); | |
27829 | return resultobj; | |
27830 | fail: | |
27831 | return NULL; | |
27832 | } | |
27833 | ||
27834 | ||
27835 | static PyObject *_wrap_VideoMode_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) { | |
27836 | PyObject *resultobj; | |
27837 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27838 | int result; | |
27839 | PyObject * obj0 = 0 ; | |
27840 | char *kwnames[] = { | |
27841 | (char *) "self", NULL | |
27842 | }; | |
27843 | ||
27844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetDepth",kwnames,&obj0)) goto fail; | |
27845 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27846 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27847 | { | |
27848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27849 | result = (int)((wxVideoMode const *)arg1)->GetDepth(); | |
27850 | ||
27851 | wxPyEndAllowThreads(__tstate); | |
27852 | if (PyErr_Occurred()) SWIG_fail; | |
27853 | } | |
27854 | resultobj = SWIG_From_int((int)result); | |
27855 | return resultobj; | |
27856 | fail: | |
27857 | return NULL; | |
27858 | } | |
27859 | ||
27860 | ||
27861 | static PyObject *_wrap_VideoMode_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { | |
27862 | PyObject *resultobj; | |
27863 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27864 | bool result; | |
27865 | PyObject * obj0 = 0 ; | |
27866 | char *kwnames[] = { | |
27867 | (char *) "self", NULL | |
27868 | }; | |
27869 | ||
27870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_IsOk",kwnames,&obj0)) goto fail; | |
27871 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27872 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27873 | { | |
27874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27875 | result = (bool)((wxVideoMode const *)arg1)->IsOk(); | |
27876 | ||
27877 | wxPyEndAllowThreads(__tstate); | |
27878 | if (PyErr_Occurred()) SWIG_fail; | |
27879 | } | |
27880 | { | |
27881 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27882 | } | |
27883 | return resultobj; | |
27884 | fail: | |
27885 | return NULL; | |
27886 | } | |
27887 | ||
27888 | ||
27889 | static PyObject *_wrap_VideoMode___eq__(PyObject *, PyObject *args, PyObject *kwargs) { | |
27890 | PyObject *resultobj; | |
27891 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27892 | wxVideoMode *arg2 = (wxVideoMode *) 0 ; | |
27893 | bool result; | |
27894 | PyObject * obj0 = 0 ; | |
27895 | PyObject * obj1 = 0 ; | |
27896 | char *kwnames[] = { | |
27897 | (char *) "self",(char *) "other", NULL | |
27898 | }; | |
27899 | ||
27900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___eq__",kwnames,&obj0,&obj1)) goto fail; | |
27901 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27902 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27903 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
27904 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27905 | { | |
27906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27907 | result = (bool)wxVideoMode___eq__(arg1,(wxVideoMode const *)arg2); | |
27908 | ||
27909 | wxPyEndAllowThreads(__tstate); | |
27910 | if (PyErr_Occurred()) SWIG_fail; | |
27911 | } | |
27912 | { | |
27913 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27914 | } | |
27915 | return resultobj; | |
27916 | fail: | |
27917 | return NULL; | |
27918 | } | |
27919 | ||
27920 | ||
27921 | static PyObject *_wrap_VideoMode___ne__(PyObject *, PyObject *args, PyObject *kwargs) { | |
27922 | PyObject *resultobj; | |
27923 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27924 | wxVideoMode *arg2 = (wxVideoMode *) 0 ; | |
27925 | bool result; | |
27926 | PyObject * obj0 = 0 ; | |
27927 | PyObject * obj1 = 0 ; | |
27928 | char *kwnames[] = { | |
27929 | (char *) "self",(char *) "other", NULL | |
27930 | }; | |
27931 | ||
27932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___ne__",kwnames,&obj0,&obj1)) goto fail; | |
27933 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27934 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27935 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
27936 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27937 | { | |
27938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27939 | result = (bool)wxVideoMode___ne__(arg1,(wxVideoMode const *)arg2); | |
27940 | ||
27941 | wxPyEndAllowThreads(__tstate); | |
27942 | if (PyErr_Occurred()) SWIG_fail; | |
27943 | } | |
27944 | { | |
27945 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27946 | } | |
27947 | return resultobj; | |
27948 | fail: | |
27949 | return NULL; | |
27950 | } | |
27951 | ||
27952 | ||
27953 | static PyObject *_wrap_VideoMode_w_set(PyObject *, PyObject *args, PyObject *kwargs) { | |
27954 | PyObject *resultobj; | |
27955 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27956 | int arg2 ; | |
27957 | PyObject * obj0 = 0 ; | |
27958 | PyObject * obj1 = 0 ; | |
27959 | char *kwnames[] = { | |
27960 | (char *) "self",(char *) "w", NULL | |
27961 | }; | |
27962 | ||
27963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_w_set",kwnames,&obj0,&obj1)) goto fail; | |
27964 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27965 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27966 | arg2 = (int)SWIG_As_int(obj1); | |
27967 | if (PyErr_Occurred()) SWIG_fail; | |
27968 | if (arg1) (arg1)->w = arg2; | |
27969 | ||
27970 | Py_INCREF(Py_None); resultobj = Py_None; | |
27971 | return resultobj; | |
27972 | fail: | |
27973 | return NULL; | |
27974 | } | |
27975 | ||
27976 | ||
27977 | static PyObject *_wrap_VideoMode_w_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
27978 | PyObject *resultobj; | |
27979 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27980 | int result; | |
27981 | PyObject * obj0 = 0 ; | |
27982 | char *kwnames[] = { | |
27983 | (char *) "self", NULL | |
27984 | }; | |
27985 | ||
27986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_w_get",kwnames,&obj0)) goto fail; | |
27987 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27988 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27989 | result = (int) ((arg1)->w); | |
27990 | ||
27991 | resultobj = SWIG_From_int((int)result); | |
27992 | return resultobj; | |
27993 | fail: | |
27994 | return NULL; | |
27995 | } | |
27996 | ||
27997 | ||
27998 | static PyObject *_wrap_VideoMode_h_set(PyObject *, PyObject *args, PyObject *kwargs) { | |
27999 | PyObject *resultobj; | |
28000 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
28001 | int arg2 ; | |
28002 | PyObject * obj0 = 0 ; | |
28003 | PyObject * obj1 = 0 ; | |
28004 | char *kwnames[] = { | |
28005 | (char *) "self",(char *) "h", NULL | |
28006 | }; | |
28007 | ||
28008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_h_set",kwnames,&obj0,&obj1)) goto fail; | |
28009 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
28010 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28011 | arg2 = (int)SWIG_As_int(obj1); | |
28012 | if (PyErr_Occurred()) SWIG_fail; | |
28013 | if (arg1) (arg1)->h = arg2; | |
28014 | ||
28015 | Py_INCREF(Py_None); resultobj = Py_None; | |
28016 | return resultobj; | |
28017 | fail: | |
28018 | return NULL; | |
28019 | } | |
28020 | ||
28021 | ||
28022 | static PyObject *_wrap_VideoMode_h_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
28023 | PyObject *resultobj; | |
28024 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
28025 | int result; | |
28026 | PyObject * obj0 = 0 ; | |
28027 | char *kwnames[] = { | |
28028 | (char *) "self", NULL | |
28029 | }; | |
28030 | ||
28031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_h_get",kwnames,&obj0)) goto fail; | |
28032 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
28033 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28034 | result = (int) ((arg1)->h); | |
28035 | ||
28036 | resultobj = SWIG_From_int((int)result); | |
28037 | return resultobj; | |
28038 | fail: | |
28039 | return NULL; | |
28040 | } | |
28041 | ||
28042 | ||
28043 | static PyObject *_wrap_VideoMode_bpp_set(PyObject *, PyObject *args, PyObject *kwargs) { | |
28044 | PyObject *resultobj; | |
28045 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
28046 | int arg2 ; | |
28047 | PyObject * obj0 = 0 ; | |
28048 | PyObject * obj1 = 0 ; | |
28049 | char *kwnames[] = { | |
28050 | (char *) "self",(char *) "bpp", NULL | |
28051 | }; | |
28052 | ||
28053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_bpp_set",kwnames,&obj0,&obj1)) goto fail; | |
28054 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
28055 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28056 | arg2 = (int)SWIG_As_int(obj1); | |
28057 | if (PyErr_Occurred()) SWIG_fail; | |
28058 | if (arg1) (arg1)->bpp = arg2; | |
28059 | ||
28060 | Py_INCREF(Py_None); resultobj = Py_None; | |
28061 | return resultobj; | |
28062 | fail: | |
28063 | return NULL; | |
28064 | } | |
28065 | ||
28066 | ||
28067 | static PyObject *_wrap_VideoMode_bpp_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
28068 | PyObject *resultobj; | |
28069 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
28070 | int result; | |
28071 | PyObject * obj0 = 0 ; | |
28072 | char *kwnames[] = { | |
28073 | (char *) "self", NULL | |
28074 | }; | |
28075 | ||
28076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_bpp_get",kwnames,&obj0)) goto fail; | |
28077 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
28078 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28079 | result = (int) ((arg1)->bpp); | |
28080 | ||
28081 | resultobj = SWIG_From_int((int)result); | |
28082 | return resultobj; | |
28083 | fail: | |
28084 | return NULL; | |
28085 | } | |
28086 | ||
28087 | ||
28088 | static PyObject *_wrap_VideoMode_refresh_set(PyObject *, PyObject *args, PyObject *kwargs) { | |
28089 | PyObject *resultobj; | |
28090 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
28091 | int arg2 ; | |
28092 | PyObject * obj0 = 0 ; | |
28093 | PyObject * obj1 = 0 ; | |
28094 | char *kwnames[] = { | |
28095 | (char *) "self",(char *) "refresh", NULL | |
28096 | }; | |
28097 | ||
28098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_refresh_set",kwnames,&obj0,&obj1)) goto fail; | |
28099 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
28100 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28101 | arg2 = (int)SWIG_As_int(obj1); | |
28102 | if (PyErr_Occurred()) SWIG_fail; | |
28103 | if (arg1) (arg1)->refresh = arg2; | |
28104 | ||
28105 | Py_INCREF(Py_None); resultobj = Py_None; | |
28106 | return resultobj; | |
28107 | fail: | |
28108 | return NULL; | |
28109 | } | |
28110 | ||
28111 | ||
28112 | static PyObject *_wrap_VideoMode_refresh_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
28113 | PyObject *resultobj; | |
28114 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
28115 | int result; | |
28116 | PyObject * obj0 = 0 ; | |
28117 | char *kwnames[] = { | |
28118 | (char *) "self", NULL | |
28119 | }; | |
28120 | ||
28121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_refresh_get",kwnames,&obj0)) goto fail; | |
28122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
28123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28124 | result = (int) ((arg1)->refresh); | |
28125 | ||
28126 | resultobj = SWIG_From_int((int)result); | |
28127 | return resultobj; | |
28128 | fail: | |
28129 | return NULL; | |
28130 | } | |
28131 | ||
28132 | ||
28133 | static PyObject * VideoMode_swigregister(PyObject *, PyObject *args) { | |
28134 | PyObject *obj; | |
28135 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28136 | SWIG_TypeClientData(SWIGTYPE_p_wxVideoMode, obj); | |
28137 | Py_INCREF(obj); | |
28138 | return Py_BuildValue((char *)""); | |
28139 | } | |
28140 | static int _wrap_DefaultVideoMode_set(PyObject *) { | |
28141 | PyErr_SetString(PyExc_TypeError,"Variable DefaultVideoMode is read-only."); | |
28142 | return 1; | |
28143 | } | |
28144 | ||
28145 | ||
28146 | static PyObject *_wrap_DefaultVideoMode_get() { | |
28147 | PyObject *pyobj; | |
28148 | ||
28149 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultVideoMode), SWIGTYPE_p_wxVideoMode, 0); | |
28150 | return pyobj; | |
28151 | } | |
28152 | ||
28153 | ||
28154 | static PyObject *_wrap_new_Display(PyObject *, PyObject *args, PyObject *kwargs) { | |
28155 | PyObject *resultobj; | |
28156 | size_t arg1 = (size_t) 0 ; | |
28157 | wxDisplay *result; | |
28158 | PyObject * obj0 = 0 ; | |
28159 | char *kwnames[] = { | |
28160 | (char *) "index", NULL | |
28161 | }; | |
28162 | ||
28163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Display",kwnames,&obj0)) goto fail; | |
28164 | if (obj0) { | |
28165 | arg1 = (size_t)SWIG_As_unsigned_SS_long(obj0); | |
28166 | if (PyErr_Occurred()) SWIG_fail; | |
28167 | } | |
28168 | { | |
28169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28170 | result = (wxDisplay *)new wxDisplay(arg1); | |
28171 | ||
28172 | wxPyEndAllowThreads(__tstate); | |
28173 | if (PyErr_Occurred()) SWIG_fail; | |
28174 | } | |
28175 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplay, 1); | |
28176 | return resultobj; | |
28177 | fail: | |
28178 | return NULL; | |
28179 | } | |
28180 | ||
28181 | ||
28182 | static PyObject *_wrap_delete_Display(PyObject *, PyObject *args, PyObject *kwargs) { | |
28183 | PyObject *resultobj; | |
28184 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28185 | PyObject * obj0 = 0 ; | |
28186 | char *kwnames[] = { | |
28187 | (char *) "self", NULL | |
28188 | }; | |
28189 | ||
28190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Display",kwnames,&obj0)) goto fail; | |
28191 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28192 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28193 | { | |
28194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28195 | delete arg1; | |
28196 | ||
28197 | wxPyEndAllowThreads(__tstate); | |
28198 | if (PyErr_Occurred()) SWIG_fail; | |
28199 | } | |
28200 | Py_INCREF(Py_None); resultobj = Py_None; | |
28201 | return resultobj; | |
28202 | fail: | |
28203 | return NULL; | |
28204 | } | |
28205 | ||
28206 | ||
28207 | static PyObject *_wrap_Display_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { | |
28208 | PyObject *resultobj; | |
28209 | size_t result; | |
28210 | char *kwnames[] = { | |
28211 | NULL | |
28212 | }; | |
28213 | ||
28214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Display_GetCount",kwnames)) goto fail; | |
28215 | { | |
28216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28217 | result = (size_t)wxDisplay::GetCount(); | |
28218 | ||
28219 | wxPyEndAllowThreads(__tstate); | |
28220 | if (PyErr_Occurred()) SWIG_fail; | |
28221 | } | |
28222 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); | |
28223 | return resultobj; | |
28224 | fail: | |
28225 | return NULL; | |
28226 | } | |
28227 | ||
28228 | ||
28229 | static PyObject *_wrap_Display_GetFromPoint(PyObject *, PyObject *args, PyObject *kwargs) { | |
28230 | PyObject *resultobj; | |
28231 | wxPoint *arg1 = 0 ; | |
28232 | int result; | |
28233 | wxPoint temp1 ; | |
28234 | PyObject * obj0 = 0 ; | |
28235 | char *kwnames[] = { | |
28236 | (char *) "pt", NULL | |
28237 | }; | |
28238 | ||
28239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromPoint",kwnames,&obj0)) goto fail; | |
28240 | { | |
28241 | arg1 = &temp1; | |
28242 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
28243 | } | |
28244 | { | |
28245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28246 | result = (int)wxDisplay::GetFromPoint((wxPoint const &)*arg1); | |
28247 | ||
28248 | wxPyEndAllowThreads(__tstate); | |
28249 | if (PyErr_Occurred()) SWIG_fail; | |
28250 | } | |
28251 | resultobj = SWIG_From_int((int)result); | |
28252 | return resultobj; | |
28253 | fail: | |
28254 | return NULL; | |
28255 | } | |
28256 | ||
28257 | ||
28258 | static PyObject *_wrap_Display_GetFromWindow(PyObject *, PyObject *args, PyObject *kwargs) { | |
28259 | PyObject *resultobj; | |
28260 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28261 | int result; | |
28262 | PyObject * obj0 = 0 ; | |
28263 | char *kwnames[] = { | |
28264 | (char *) "window", NULL | |
28265 | }; | |
28266 | ||
28267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromWindow",kwnames,&obj0)) goto fail; | |
28268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28270 | { | |
28271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28272 | result = (int)Display_GetFromWindow(arg1); | |
28273 | ||
28274 | wxPyEndAllowThreads(__tstate); | |
28275 | if (PyErr_Occurred()) SWIG_fail; | |
28276 | } | |
28277 | resultobj = SWIG_From_int((int)result); | |
28278 | return resultobj; | |
28279 | fail: | |
28280 | return NULL; | |
28281 | } | |
28282 | ||
28283 | ||
28284 | static PyObject *_wrap_Display_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { | |
28285 | PyObject *resultobj; | |
28286 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28287 | bool result; | |
28288 | PyObject * obj0 = 0 ; | |
28289 | char *kwnames[] = { | |
28290 | (char *) "self", NULL | |
28291 | }; | |
28292 | ||
28293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsOk",kwnames,&obj0)) goto fail; | |
28294 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28295 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28296 | { | |
28297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28298 | result = (bool)((wxDisplay const *)arg1)->IsOk(); | |
28299 | ||
28300 | wxPyEndAllowThreads(__tstate); | |
28301 | if (PyErr_Occurred()) SWIG_fail; | |
28302 | } | |
28303 | { | |
28304 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28305 | } | |
28306 | return resultobj; | |
28307 | fail: | |
28308 | return NULL; | |
28309 | } | |
28310 | ||
28311 | ||
28312 | static PyObject *_wrap_Display_GetGeometry(PyObject *, PyObject *args, PyObject *kwargs) { | |
28313 | PyObject *resultobj; | |
28314 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28315 | wxRect result; | |
28316 | PyObject * obj0 = 0 ; | |
28317 | char *kwnames[] = { | |
28318 | (char *) "self", NULL | |
28319 | }; | |
28320 | ||
28321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetGeometry",kwnames,&obj0)) goto fail; | |
28322 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28323 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28324 | { | |
28325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28326 | result = ((wxDisplay const *)arg1)->GetGeometry(); | |
28327 | ||
28328 | wxPyEndAllowThreads(__tstate); | |
28329 | if (PyErr_Occurred()) SWIG_fail; | |
28330 | } | |
28331 | { | |
28332 | wxRect * resultptr; | |
28333 | resultptr = new wxRect((wxRect &) result); | |
28334 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
28335 | } | |
28336 | return resultobj; | |
28337 | fail: | |
28338 | return NULL; | |
28339 | } | |
28340 | ||
28341 | ||
28342 | static PyObject *_wrap_Display_GetName(PyObject *, PyObject *args, PyObject *kwargs) { | |
28343 | PyObject *resultobj; | |
28344 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28345 | wxString result; | |
28346 | PyObject * obj0 = 0 ; | |
28347 | char *kwnames[] = { | |
28348 | (char *) "self", NULL | |
28349 | }; | |
28350 | ||
28351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetName",kwnames,&obj0)) goto fail; | |
28352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28354 | { | |
28355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28356 | result = ((wxDisplay const *)arg1)->GetName(); | |
28357 | ||
28358 | wxPyEndAllowThreads(__tstate); | |
28359 | if (PyErr_Occurred()) SWIG_fail; | |
28360 | } | |
28361 | { | |
28362 | #if wxUSE_UNICODE | |
28363 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28364 | #else | |
28365 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28366 | #endif | |
28367 | } | |
28368 | return resultobj; | |
28369 | fail: | |
28370 | return NULL; | |
28371 | } | |
28372 | ||
28373 | ||
28374 | static PyObject *_wrap_Display_IsPrimary(PyObject *, PyObject *args, PyObject *kwargs) { | |
28375 | PyObject *resultobj; | |
28376 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28377 | bool result; | |
28378 | PyObject * obj0 = 0 ; | |
28379 | char *kwnames[] = { | |
28380 | (char *) "self", NULL | |
28381 | }; | |
28382 | ||
28383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsPrimary",kwnames,&obj0)) goto fail; | |
28384 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28386 | { | |
28387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28388 | result = (bool)((wxDisplay const *)arg1)->IsPrimary(); | |
28389 | ||
28390 | wxPyEndAllowThreads(__tstate); | |
28391 | if (PyErr_Occurred()) SWIG_fail; | |
28392 | } | |
28393 | { | |
28394 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28395 | } | |
28396 | return resultobj; | |
28397 | fail: | |
28398 | return NULL; | |
28399 | } | |
28400 | ||
28401 | ||
28402 | static PyObject *_wrap_Display_GetModes(PyObject *, PyObject *args, PyObject *kwargs) { | |
28403 | PyObject *resultobj; | |
28404 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28405 | wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ; | |
28406 | wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ; | |
28407 | PyObject *result; | |
28408 | PyObject * obj0 = 0 ; | |
28409 | PyObject * obj1 = 0 ; | |
28410 | char *kwnames[] = { | |
28411 | (char *) "self",(char *) "mode", NULL | |
28412 | }; | |
28413 | ||
28414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_GetModes",kwnames,&obj0,&obj1)) goto fail; | |
28415 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28416 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28417 | if (obj1) { | |
28418 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
28419 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28420 | SWIG_fail; | |
28421 | if (arg2 == NULL) { | |
28422 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
28423 | SWIG_fail; | |
28424 | } | |
28425 | } | |
28426 | { | |
28427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28428 | result = (PyObject *)wxDisplay_GetModes(arg1,(wxVideoMode const &)*arg2); | |
28429 | ||
28430 | wxPyEndAllowThreads(__tstate); | |
28431 | if (PyErr_Occurred()) SWIG_fail; | |
28432 | } | |
28433 | resultobj = result; | |
28434 | return resultobj; | |
28435 | fail: | |
28436 | return NULL; | |
28437 | } | |
28438 | ||
28439 | ||
28440 | static PyObject *_wrap_Display_GetCurrentMode(PyObject *, PyObject *args, PyObject *kwargs) { | |
28441 | PyObject *resultobj; | |
28442 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28443 | wxVideoMode result; | |
28444 | PyObject * obj0 = 0 ; | |
28445 | char *kwnames[] = { | |
28446 | (char *) "self", NULL | |
28447 | }; | |
28448 | ||
28449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetCurrentMode",kwnames,&obj0)) goto fail; | |
28450 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28452 | { | |
28453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28454 | result = ((wxDisplay const *)arg1)->GetCurrentMode(); | |
28455 | ||
28456 | wxPyEndAllowThreads(__tstate); | |
28457 | if (PyErr_Occurred()) SWIG_fail; | |
28458 | } | |
28459 | { | |
28460 | wxVideoMode * resultptr; | |
28461 | resultptr = new wxVideoMode((wxVideoMode &) result); | |
28462 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVideoMode, 1); | |
28463 | } | |
28464 | return resultobj; | |
28465 | fail: | |
28466 | return NULL; | |
28467 | } | |
28468 | ||
28469 | ||
28470 | static PyObject *_wrap_Display_ChangeMode(PyObject *, PyObject *args, PyObject *kwargs) { | |
28471 | PyObject *resultobj; | |
28472 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28473 | wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ; | |
28474 | wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ; | |
28475 | bool result; | |
28476 | PyObject * obj0 = 0 ; | |
28477 | PyObject * obj1 = 0 ; | |
28478 | char *kwnames[] = { | |
28479 | (char *) "self",(char *) "mode", NULL | |
28480 | }; | |
28481 | ||
28482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_ChangeMode",kwnames,&obj0,&obj1)) goto fail; | |
28483 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28484 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28485 | if (obj1) { | |
28486 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
28487 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28488 | SWIG_fail; | |
28489 | if (arg2 == NULL) { | |
28490 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
28491 | SWIG_fail; | |
28492 | } | |
28493 | } | |
28494 | { | |
28495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28496 | result = (bool)(arg1)->ChangeMode((wxVideoMode const &)*arg2); | |
28497 | ||
28498 | wxPyEndAllowThreads(__tstate); | |
28499 | if (PyErr_Occurred()) SWIG_fail; | |
28500 | } | |
28501 | { | |
28502 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28503 | } | |
28504 | return resultobj; | |
28505 | fail: | |
28506 | return NULL; | |
28507 | } | |
28508 | ||
28509 | ||
28510 | static PyObject *_wrap_Display_ResetMode(PyObject *, PyObject *args, PyObject *kwargs) { | |
28511 | PyObject *resultobj; | |
28512 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28513 | PyObject * obj0 = 0 ; | |
28514 | char *kwnames[] = { | |
28515 | (char *) "self", NULL | |
28516 | }; | |
28517 | ||
28518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_ResetMode",kwnames,&obj0)) goto fail; | |
28519 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28520 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28521 | { | |
28522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28523 | (arg1)->ResetMode(); | |
28524 | ||
28525 | wxPyEndAllowThreads(__tstate); | |
28526 | if (PyErr_Occurred()) SWIG_fail; | |
28527 | } | |
28528 | Py_INCREF(Py_None); resultobj = Py_None; | |
28529 | return resultobj; | |
28530 | fail: | |
28531 | return NULL; | |
28532 | } | |
28533 | ||
28534 | ||
28535 | static PyObject * Display_swigregister(PyObject *, PyObject *args) { | |
28536 | PyObject *obj; | |
28537 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28538 | SWIG_TypeClientData(SWIGTYPE_p_wxDisplay, obj); | |
28539 | Py_INCREF(obj); | |
28540 | return Py_BuildValue((char *)""); | |
28541 | } | |
28542 | static PyObject *_wrap_StandardPaths_Get(PyObject *, PyObject *args, PyObject *kwargs) { | |
28543 | PyObject *resultobj; | |
28544 | wxStandardPaths *result; | |
28545 | char *kwnames[] = { | |
28546 | NULL | |
28547 | }; | |
28548 | ||
28549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StandardPaths_Get",kwnames)) goto fail; | |
28550 | { | |
28551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28552 | result = (wxStandardPaths *)StandardPaths_Get(); | |
28553 | ||
28554 | wxPyEndAllowThreads(__tstate); | |
28555 | if (PyErr_Occurred()) SWIG_fail; | |
28556 | } | |
28557 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStandardPaths, 0); | |
28558 | return resultobj; | |
28559 | fail: | |
28560 | return NULL; | |
28561 | } | |
28562 | ||
28563 | ||
28564 | static PyObject *_wrap_StandardPaths_GetConfigDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
28565 | PyObject *resultobj; | |
28566 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; | |
28567 | wxString result; | |
28568 | PyObject * obj0 = 0 ; | |
28569 | char *kwnames[] = { | |
28570 | (char *) "self", NULL | |
28571 | }; | |
28572 | ||
28573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetConfigDir",kwnames,&obj0)) goto fail; | |
28574 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths, | |
28575 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28576 | { | |
28577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28578 | result = ((wxStandardPaths const *)arg1)->GetConfigDir(); | |
28579 | ||
28580 | wxPyEndAllowThreads(__tstate); | |
28581 | if (PyErr_Occurred()) SWIG_fail; | |
28582 | } | |
28583 | { | |
28584 | #if wxUSE_UNICODE | |
28585 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28586 | #else | |
28587 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28588 | #endif | |
28589 | } | |
28590 | return resultobj; | |
28591 | fail: | |
28592 | return NULL; | |
28593 | } | |
28594 | ||
28595 | ||
28596 | static PyObject *_wrap_StandardPaths_GetUserConfigDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
28597 | PyObject *resultobj; | |
28598 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; | |
28599 | wxString result; | |
28600 | PyObject * obj0 = 0 ; | |
28601 | char *kwnames[] = { | |
28602 | (char *) "self", NULL | |
28603 | }; | |
28604 | ||
28605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetUserConfigDir",kwnames,&obj0)) goto fail; | |
28606 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths, | |
28607 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28608 | { | |
28609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28610 | result = ((wxStandardPaths const *)arg1)->GetUserConfigDir(); | |
28611 | ||
28612 | wxPyEndAllowThreads(__tstate); | |
28613 | if (PyErr_Occurred()) SWIG_fail; | |
28614 | } | |
28615 | { | |
28616 | #if wxUSE_UNICODE | |
28617 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28618 | #else | |
28619 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28620 | #endif | |
28621 | } | |
28622 | return resultobj; | |
28623 | fail: | |
28624 | return NULL; | |
28625 | } | |
28626 | ||
28627 | ||
28628 | static PyObject *_wrap_StandardPaths_GetDataDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
28629 | PyObject *resultobj; | |
28630 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; | |
28631 | wxString result; | |
28632 | PyObject * obj0 = 0 ; | |
28633 | char *kwnames[] = { | |
28634 | (char *) "self", NULL | |
28635 | }; | |
28636 | ||
28637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetDataDir",kwnames,&obj0)) goto fail; | |
28638 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths, | |
28639 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28640 | { | |
28641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28642 | result = ((wxStandardPaths const *)arg1)->GetDataDir(); | |
28643 | ||
28644 | wxPyEndAllowThreads(__tstate); | |
28645 | if (PyErr_Occurred()) SWIG_fail; | |
28646 | } | |
28647 | { | |
28648 | #if wxUSE_UNICODE | |
28649 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28650 | #else | |
28651 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28652 | #endif | |
28653 | } | |
28654 | return resultobj; | |
28655 | fail: | |
28656 | return NULL; | |
28657 | } | |
28658 | ||
28659 | ||
28660 | static PyObject *_wrap_StandardPaths_GetLocalDataDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
28661 | PyObject *resultobj; | |
28662 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; | |
28663 | wxString result; | |
28664 | PyObject * obj0 = 0 ; | |
28665 | char *kwnames[] = { | |
28666 | (char *) "self", NULL | |
28667 | }; | |
28668 | ||
28669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetLocalDataDir",kwnames,&obj0)) goto fail; | |
28670 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths, | |
28671 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28672 | { | |
28673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28674 | result = ((wxStandardPaths const *)arg1)->GetLocalDataDir(); | |
28675 | ||
28676 | wxPyEndAllowThreads(__tstate); | |
28677 | if (PyErr_Occurred()) SWIG_fail; | |
28678 | } | |
28679 | { | |
28680 | #if wxUSE_UNICODE | |
28681 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28682 | #else | |
28683 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28684 | #endif | |
28685 | } | |
28686 | return resultobj; | |
28687 | fail: | |
28688 | return NULL; | |
28689 | } | |
28690 | ||
28691 | ||
28692 | static PyObject *_wrap_StandardPaths_GetUserDataDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
28693 | PyObject *resultobj; | |
28694 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; | |
28695 | wxString result; | |
28696 | PyObject * obj0 = 0 ; | |
28697 | char *kwnames[] = { | |
28698 | (char *) "self", NULL | |
28699 | }; | |
28700 | ||
28701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetUserDataDir",kwnames,&obj0)) goto fail; | |
28702 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths, | |
28703 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28704 | { | |
28705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28706 | result = ((wxStandardPaths const *)arg1)->GetUserDataDir(); | |
28707 | ||
28708 | wxPyEndAllowThreads(__tstate); | |
28709 | if (PyErr_Occurred()) SWIG_fail; | |
28710 | } | |
28711 | { | |
28712 | #if wxUSE_UNICODE | |
28713 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28714 | #else | |
28715 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28716 | #endif | |
28717 | } | |
28718 | return resultobj; | |
28719 | fail: | |
28720 | return NULL; | |
28721 | } | |
28722 | ||
28723 | ||
28724 | static PyObject *_wrap_StandardPaths_GetUserLocalDataDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
28725 | PyObject *resultobj; | |
28726 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; | |
28727 | wxString result; | |
28728 | PyObject * obj0 = 0 ; | |
28729 | char *kwnames[] = { | |
28730 | (char *) "self", NULL | |
28731 | }; | |
28732 | ||
28733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetUserLocalDataDir",kwnames,&obj0)) goto fail; | |
28734 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths, | |
28735 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28736 | { | |
28737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28738 | result = ((wxStandardPaths const *)arg1)->GetUserLocalDataDir(); | |
28739 | ||
28740 | wxPyEndAllowThreads(__tstate); | |
28741 | if (PyErr_Occurred()) SWIG_fail; | |
28742 | } | |
28743 | { | |
28744 | #if wxUSE_UNICODE | |
28745 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28746 | #else | |
28747 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28748 | #endif | |
28749 | } | |
28750 | return resultobj; | |
28751 | fail: | |
28752 | return NULL; | |
28753 | } | |
28754 | ||
28755 | ||
28756 | static PyObject *_wrap_StandardPaths_GetPluginsDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
28757 | PyObject *resultobj; | |
28758 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; | |
28759 | wxString result; | |
28760 | PyObject * obj0 = 0 ; | |
28761 | char *kwnames[] = { | |
28762 | (char *) "self", NULL | |
28763 | }; | |
28764 | ||
28765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetPluginsDir",kwnames,&obj0)) goto fail; | |
28766 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths, | |
28767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28768 | { | |
28769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28770 | result = ((wxStandardPaths const *)arg1)->GetPluginsDir(); | |
28771 | ||
28772 | wxPyEndAllowThreads(__tstate); | |
28773 | if (PyErr_Occurred()) SWIG_fail; | |
28774 | } | |
28775 | { | |
28776 | #if wxUSE_UNICODE | |
28777 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28778 | #else | |
28779 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28780 | #endif | |
28781 | } | |
28782 | return resultobj; | |
28783 | fail: | |
28784 | return NULL; | |
28785 | } | |
28786 | ||
28787 | ||
28788 | static PyObject *_wrap_StandardPaths_SetInstallPrefix(PyObject *, PyObject *args, PyObject *kwargs) { | |
28789 | PyObject *resultobj; | |
28790 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; | |
28791 | wxString *arg2 = 0 ; | |
28792 | bool temp2 = false ; | |
28793 | PyObject * obj0 = 0 ; | |
28794 | PyObject * obj1 = 0 ; | |
28795 | char *kwnames[] = { | |
28796 | (char *) "self",(char *) "prefix", NULL | |
28797 | }; | |
28798 | ||
28799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StandardPaths_SetInstallPrefix",kwnames,&obj0,&obj1)) goto fail; | |
28800 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths, | |
28801 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28802 | { | |
28803 | arg2 = wxString_in_helper(obj1); | |
28804 | if (arg2 == NULL) SWIG_fail; | |
28805 | temp2 = true; | |
28806 | } | |
28807 | { | |
28808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28809 | (arg1)->SetInstallPrefix((wxString const &)*arg2); | |
28810 | ||
28811 | wxPyEndAllowThreads(__tstate); | |
28812 | if (PyErr_Occurred()) SWIG_fail; | |
28813 | } | |
28814 | Py_INCREF(Py_None); resultobj = Py_None; | |
28815 | { | |
28816 | if (temp2) | |
28817 | delete arg2; | |
28818 | } | |
28819 | return resultobj; | |
28820 | fail: | |
28821 | { | |
28822 | if (temp2) | |
28823 | delete arg2; | |
28824 | } | |
28825 | return NULL; | |
28826 | } | |
28827 | ||
28828 | ||
28829 | static PyObject *_wrap_StandardPaths_GetInstallPrefix(PyObject *, PyObject *args, PyObject *kwargs) { | |
28830 | PyObject *resultobj; | |
28831 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; | |
28832 | wxString result; | |
28833 | PyObject * obj0 = 0 ; | |
28834 | char *kwnames[] = { | |
28835 | (char *) "self", NULL | |
28836 | }; | |
28837 | ||
28838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetInstallPrefix",kwnames,&obj0)) goto fail; | |
28839 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths, | |
28840 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28841 | { | |
28842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28843 | result = ((wxStandardPaths const *)arg1)->GetInstallPrefix(); | |
28844 | ||
28845 | wxPyEndAllowThreads(__tstate); | |
28846 | if (PyErr_Occurred()) SWIG_fail; | |
28847 | } | |
28848 | { | |
28849 | #if wxUSE_UNICODE | |
28850 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28851 | #else | |
28852 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28853 | #endif | |
28854 | } | |
28855 | return resultobj; | |
28856 | fail: | |
28857 | return NULL; | |
28858 | } | |
28859 | ||
28860 | ||
28861 | static PyObject * StandardPaths_swigregister(PyObject *, PyObject *args) { | |
28862 | PyObject *obj; | |
28863 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28864 | SWIG_TypeClientData(SWIGTYPE_p_wxStandardPaths, obj); | |
28865 | Py_INCREF(obj); | |
28866 | return Py_BuildValue((char *)""); | |
28867 | } | |
28868 | static PyMethodDef SwigMethods[] = { | |
28869 | { (char *)"SystemSettings_GetColour", (PyCFunction) _wrap_SystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28870 | { (char *)"SystemSettings_GetFont", (PyCFunction) _wrap_SystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28871 | { (char *)"SystemSettings_GetMetric", (PyCFunction) _wrap_SystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28872 | { (char *)"SystemSettings_HasFeature", (PyCFunction) _wrap_SystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28873 | { (char *)"SystemSettings_GetScreenType", (PyCFunction) _wrap_SystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28874 | { (char *)"SystemSettings_SetScreenType", (PyCFunction) _wrap_SystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28875 | { (char *)"SystemSettings_swigregister", SystemSettings_swigregister, METH_VARARGS, NULL }, | |
28876 | { (char *)"new_SystemOptions", (PyCFunction) _wrap_new_SystemOptions, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28877 | { (char *)"SystemOptions_SetOption", (PyCFunction) _wrap_SystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28878 | { (char *)"SystemOptions_SetOptionInt", (PyCFunction) _wrap_SystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28879 | { (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28880 | { (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28881 | { (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28882 | { (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS, NULL }, | |
28883 | { (char *)"NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28884 | { (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28885 | { (char *)"GetCurrentId", (PyCFunction) _wrap_GetCurrentId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28886 | { (char *)"IsStockID", (PyCFunction) _wrap_IsStockID, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28887 | { (char *)"IsStockLabel", (PyCFunction) _wrap_IsStockLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28888 | { (char *)"GetStockLabel", (PyCFunction) _wrap_GetStockLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28889 | { (char *)"Bell", (PyCFunction) _wrap_Bell, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28890 | { (char *)"EndBusyCursor", (PyCFunction) _wrap_EndBusyCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28891 | { (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28892 | { (char *)"GetMousePosition", (PyCFunction) _wrap_GetMousePosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28893 | { (char *)"IsBusy", (PyCFunction) _wrap_IsBusy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28894 | { (char *)"Now", (PyCFunction) _wrap_Now, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28895 | { (char *)"Shell", (PyCFunction) _wrap_Shell, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28896 | { (char *)"StartTimer", (PyCFunction) _wrap_StartTimer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28897 | { (char *)"GetOsVersion", (PyCFunction) _wrap_GetOsVersion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28898 | { (char *)"GetOsDescription", (PyCFunction) _wrap_GetOsDescription, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28899 | { (char *)"GetFreeMemory", (PyCFunction) _wrap_GetFreeMemory, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28900 | { (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28901 | { (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28902 | { (char *)"MilliSleep", (PyCFunction) _wrap_MilliSleep, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28903 | { (char *)"MicroSleep", (PyCFunction) _wrap_MicroSleep, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28904 | { (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28905 | { (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28906 | { (char *)"GetEmailAddress", (PyCFunction) _wrap_GetEmailAddress, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28907 | { (char *)"GetHostName", (PyCFunction) _wrap_GetHostName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28908 | { (char *)"GetFullHostName", (PyCFunction) _wrap_GetFullHostName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28909 | { (char *)"GetUserId", (PyCFunction) _wrap_GetUserId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28910 | { (char *)"GetUserName", (PyCFunction) _wrap_GetUserName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28911 | { (char *)"GetHomeDir", (PyCFunction) _wrap_GetHomeDir, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28912 | { (char *)"GetUserHome", (PyCFunction) _wrap_GetUserHome, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28913 | { (char *)"GetProcessId", (PyCFunction) _wrap_GetProcessId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28914 | { (char *)"Trap", (PyCFunction) _wrap_Trap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28915 | { (char *)"FileSelector", (PyCFunction) _wrap_FileSelector, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28916 | { (char *)"LoadFileSelector", (PyCFunction) _wrap_LoadFileSelector, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28917 | { (char *)"SaveFileSelector", (PyCFunction) _wrap_SaveFileSelector, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28918 | { (char *)"DirSelector", (PyCFunction) _wrap_DirSelector, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28919 | { (char *)"GetTextFromUser", (PyCFunction) _wrap_GetTextFromUser, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28920 | { (char *)"GetPasswordFromUser", (PyCFunction) _wrap_GetPasswordFromUser, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28921 | { (char *)"GetSingleChoice", (PyCFunction) _wrap_GetSingleChoice, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28922 | { (char *)"GetSingleChoiceIndex", (PyCFunction) _wrap_GetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28923 | { (char *)"MessageBox", (PyCFunction) _wrap_MessageBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28924 | { (char *)"GetNumberFromUser", (PyCFunction) _wrap_GetNumberFromUser, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28925 | { (char *)"ColourDisplay", (PyCFunction) _wrap_ColourDisplay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28926 | { (char *)"DisplayDepth", (PyCFunction) _wrap_DisplayDepth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28927 | { (char *)"GetDisplayDepth", (PyCFunction) _wrap_GetDisplayDepth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28928 | { (char *)"DisplaySize", (PyCFunction) _wrap_DisplaySize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28929 | { (char *)"GetDisplaySize", (PyCFunction) _wrap_GetDisplaySize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28930 | { (char *)"DisplaySizeMM", (PyCFunction) _wrap_DisplaySizeMM, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28931 | { (char *)"GetDisplaySizeMM", (PyCFunction) _wrap_GetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28932 | { (char *)"ClientDisplayRect", (PyCFunction) _wrap_ClientDisplayRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28933 | { (char *)"GetClientDisplayRect", (PyCFunction) _wrap_GetClientDisplayRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28934 | { (char *)"SetCursor", (PyCFunction) _wrap_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28935 | { (char *)"BeginBusyCursor", (PyCFunction) _wrap_BeginBusyCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28936 | { (char *)"GetActiveWindow", (PyCFunction) _wrap_GetActiveWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28937 | { (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28938 | { (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28939 | { (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28940 | { (char *)"GetKeyState", (PyCFunction) _wrap_GetKeyState, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28941 | { (char *)"WakeUpMainThread", (PyCFunction) _wrap_WakeUpMainThread, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28942 | { (char *)"MutexGuiEnter", (PyCFunction) _wrap_MutexGuiEnter, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28943 | { (char *)"MutexGuiLeave", (PyCFunction) _wrap_MutexGuiLeave, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28944 | { (char *)"new_MutexGuiLocker", (PyCFunction) _wrap_new_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28945 | { (char *)"delete_MutexGuiLocker", (PyCFunction) _wrap_delete_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28946 | { (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS, NULL }, | |
28947 | { (char *)"Thread_IsMain", (PyCFunction) _wrap_Thread_IsMain, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28948 | { (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28949 | { (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28950 | { (char *)"ToolTip_GetTip", (PyCFunction) _wrap_ToolTip_GetTip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28951 | { (char *)"ToolTip_GetWindow", (PyCFunction) _wrap_ToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28952 | { (char *)"ToolTip_Enable", (PyCFunction) _wrap_ToolTip_Enable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28953 | { (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28954 | { (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS, NULL }, | |
28955 | { (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28956 | { (char *)"delete_Caret", (PyCFunction) _wrap_delete_Caret, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28957 | { (char *)"Caret_IsOk", (PyCFunction) _wrap_Caret_IsOk, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28958 | { (char *)"Caret_IsVisible", (PyCFunction) _wrap_Caret_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28959 | { (char *)"Caret_GetPosition", (PyCFunction) _wrap_Caret_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28960 | { (char *)"Caret_GetPositionTuple", (PyCFunction) _wrap_Caret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28961 | { (char *)"Caret_GetSize", (PyCFunction) _wrap_Caret_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28962 | { (char *)"Caret_GetSizeTuple", (PyCFunction) _wrap_Caret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28963 | { (char *)"Caret_GetWindow", (PyCFunction) _wrap_Caret_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28964 | { (char *)"Caret_MoveXY", (PyCFunction) _wrap_Caret_MoveXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28965 | { (char *)"Caret_Move", (PyCFunction) _wrap_Caret_Move, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28966 | { (char *)"Caret_SetSizeWH", (PyCFunction) _wrap_Caret_SetSizeWH, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28967 | { (char *)"Caret_SetSize", (PyCFunction) _wrap_Caret_SetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28968 | { (char *)"Caret_Show", (PyCFunction) _wrap_Caret_Show, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28969 | { (char *)"Caret_Hide", (PyCFunction) _wrap_Caret_Hide, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28970 | { (char *)"Caret_swigregister", Caret_swigregister, METH_VARARGS, NULL }, | |
28971 | { (char *)"Caret_GetBlinkTime", (PyCFunction) _wrap_Caret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28972 | { (char *)"Caret_SetBlinkTime", (PyCFunction) _wrap_Caret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28973 | { (char *)"new_BusyCursor", (PyCFunction) _wrap_new_BusyCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28974 | { (char *)"delete_BusyCursor", (PyCFunction) _wrap_delete_BusyCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28975 | { (char *)"BusyCursor_swigregister", BusyCursor_swigregister, METH_VARARGS, NULL }, | |
28976 | { (char *)"new_WindowDisabler", (PyCFunction) _wrap_new_WindowDisabler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28977 | { (char *)"delete_WindowDisabler", (PyCFunction) _wrap_delete_WindowDisabler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28978 | { (char *)"WindowDisabler_swigregister", WindowDisabler_swigregister, METH_VARARGS, NULL }, | |
28979 | { (char *)"new_BusyInfo", (PyCFunction) _wrap_new_BusyInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28980 | { (char *)"delete_BusyInfo", (PyCFunction) _wrap_delete_BusyInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28981 | { (char *)"BusyInfo_swigregister", BusyInfo_swigregister, METH_VARARGS, NULL }, | |
28982 | { (char *)"new_StopWatch", (PyCFunction) _wrap_new_StopWatch, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28983 | { (char *)"StopWatch_Start", (PyCFunction) _wrap_StopWatch_Start, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28984 | { (char *)"StopWatch_Pause", (PyCFunction) _wrap_StopWatch_Pause, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28985 | { (char *)"StopWatch_Resume", (PyCFunction) _wrap_StopWatch_Resume, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28986 | { (char *)"StopWatch_Time", (PyCFunction) _wrap_StopWatch_Time, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28987 | { (char *)"StopWatch_swigregister", StopWatch_swigregister, METH_VARARGS, NULL }, | |
28988 | { (char *)"new_FileHistory", (PyCFunction) _wrap_new_FileHistory, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28989 | { (char *)"delete_FileHistory", (PyCFunction) _wrap_delete_FileHistory, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28990 | { (char *)"FileHistory_AddFileToHistory", (PyCFunction) _wrap_FileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28991 | { (char *)"FileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_FileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28992 | { (char *)"FileHistory_GetMaxFiles", (PyCFunction) _wrap_FileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28993 | { (char *)"FileHistory_UseMenu", (PyCFunction) _wrap_FileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28994 | { (char *)"FileHistory_RemoveMenu", (PyCFunction) _wrap_FileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28995 | { (char *)"FileHistory_Load", (PyCFunction) _wrap_FileHistory_Load, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28996 | { (char *)"FileHistory_Save", (PyCFunction) _wrap_FileHistory_Save, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28997 | { (char *)"FileHistory_AddFilesToMenu", (PyCFunction) _wrap_FileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28998 | { (char *)"FileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_FileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28999 | { (char *)"FileHistory_GetHistoryFile", (PyCFunction) _wrap_FileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29000 | { (char *)"FileHistory_GetCount", (PyCFunction) _wrap_FileHistory_GetCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29001 | { (char *)"FileHistory_swigregister", FileHistory_swigregister, METH_VARARGS, NULL }, | |
29002 | { (char *)"new_SingleInstanceChecker", (PyCFunction) _wrap_new_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29003 | { (char *)"new_PreSingleInstanceChecker", (PyCFunction) _wrap_new_PreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29004 | { (char *)"delete_SingleInstanceChecker", (PyCFunction) _wrap_delete_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29005 | { (char *)"SingleInstanceChecker_Create", (PyCFunction) _wrap_SingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29006 | { (char *)"SingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_SingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29007 | { (char *)"SingleInstanceChecker_swigregister", SingleInstanceChecker_swigregister, METH_VARARGS, NULL }, | |
29008 | { (char *)"DrawWindowOnDC", (PyCFunction) _wrap_DrawWindowOnDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29009 | { (char *)"delete_TipProvider", (PyCFunction) _wrap_delete_TipProvider, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29010 | { (char *)"TipProvider_GetTip", (PyCFunction) _wrap_TipProvider_GetTip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29011 | { (char *)"TipProvider_GetCurrentTip", (PyCFunction) _wrap_TipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29012 | { (char *)"TipProvider_PreprocessTip", (PyCFunction) _wrap_TipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29013 | { (char *)"TipProvider_swigregister", TipProvider_swigregister, METH_VARARGS, NULL }, | |
29014 | { (char *)"new_PyTipProvider", (PyCFunction) _wrap_new_PyTipProvider, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29015 | { (char *)"PyTipProvider__setCallbackInfo", (PyCFunction) _wrap_PyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29016 | { (char *)"PyTipProvider_swigregister", PyTipProvider_swigregister, METH_VARARGS, NULL }, | |
29017 | { (char *)"ShowTip", (PyCFunction) _wrap_ShowTip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29018 | { (char *)"CreateFileTipProvider", (PyCFunction) _wrap_CreateFileTipProvider, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29019 | { (char *)"new_Timer", (PyCFunction) _wrap_new_Timer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29020 | { (char *)"delete_Timer", (PyCFunction) _wrap_delete_Timer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29021 | { (char *)"Timer__setCallbackInfo", (PyCFunction) _wrap_Timer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29022 | { (char *)"Timer_SetOwner", (PyCFunction) _wrap_Timer_SetOwner, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29023 | { (char *)"Timer_GetOwner", (PyCFunction) _wrap_Timer_GetOwner, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29024 | { (char *)"Timer_Start", (PyCFunction) _wrap_Timer_Start, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29025 | { (char *)"Timer_Stop", (PyCFunction) _wrap_Timer_Stop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29026 | { (char *)"Timer_IsRunning", (PyCFunction) _wrap_Timer_IsRunning, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29027 | { (char *)"Timer_GetInterval", (PyCFunction) _wrap_Timer_GetInterval, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29028 | { (char *)"Timer_IsOneShot", (PyCFunction) _wrap_Timer_IsOneShot, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29029 | { (char *)"Timer_GetId", (PyCFunction) _wrap_Timer_GetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29030 | { (char *)"Timer_swigregister", Timer_swigregister, METH_VARARGS, NULL }, | |
29031 | { (char *)"new_TimerEvent", (PyCFunction) _wrap_new_TimerEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29032 | { (char *)"TimerEvent_GetInterval", (PyCFunction) _wrap_TimerEvent_GetInterval, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29033 | { (char *)"TimerEvent_swigregister", TimerEvent_swigregister, METH_VARARGS, NULL }, | |
29034 | { (char *)"new_TimerRunner", _wrap_new_TimerRunner, METH_VARARGS, NULL }, | |
29035 | { (char *)"delete_TimerRunner", (PyCFunction) _wrap_delete_TimerRunner, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29036 | { (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29037 | { (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS, NULL }, | |
29038 | { (char *)"new_Log", (PyCFunction) _wrap_new_Log, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29039 | { (char *)"Log_IsEnabled", (PyCFunction) _wrap_Log_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29040 | { (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29041 | { (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29042 | { (char *)"Log_Flush", (PyCFunction) _wrap_Log_Flush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29043 | { (char *)"Log_FlushActive", (PyCFunction) _wrap_Log_FlushActive, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29044 | { (char *)"Log_GetActiveTarget", (PyCFunction) _wrap_Log_GetActiveTarget, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29045 | { (char *)"Log_SetActiveTarget", (PyCFunction) _wrap_Log_SetActiveTarget, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29046 | { (char *)"Log_Suspend", (PyCFunction) _wrap_Log_Suspend, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29047 | { (char *)"Log_Resume", (PyCFunction) _wrap_Log_Resume, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29048 | { (char *)"Log_SetVerbose", (PyCFunction) _wrap_Log_SetVerbose, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29049 | { (char *)"Log_SetLogLevel", (PyCFunction) _wrap_Log_SetLogLevel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29050 | { (char *)"Log_DontCreateOnDemand", (PyCFunction) _wrap_Log_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29051 | { (char *)"Log_SetTraceMask", (PyCFunction) _wrap_Log_SetTraceMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29052 | { (char *)"Log_AddTraceMask", (PyCFunction) _wrap_Log_AddTraceMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29053 | { (char *)"Log_RemoveTraceMask", (PyCFunction) _wrap_Log_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29054 | { (char *)"Log_ClearTraceMasks", (PyCFunction) _wrap_Log_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29055 | { (char *)"Log_GetTraceMasks", (PyCFunction) _wrap_Log_GetTraceMasks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29056 | { (char *)"Log_SetTimestamp", (PyCFunction) _wrap_Log_SetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29057 | { (char *)"Log_GetVerbose", (PyCFunction) _wrap_Log_GetVerbose, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29058 | { (char *)"Log_GetTraceMask", (PyCFunction) _wrap_Log_GetTraceMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29059 | { (char *)"Log_IsAllowedTraceMask", (PyCFunction) _wrap_Log_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29060 | { (char *)"Log_GetLogLevel", (PyCFunction) _wrap_Log_GetLogLevel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29061 | { (char *)"Log_GetTimestamp", (PyCFunction) _wrap_Log_GetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29062 | { (char *)"Log_TimeStamp", (PyCFunction) _wrap_Log_TimeStamp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29063 | { (char *)"Log_Destroy", (PyCFunction) _wrap_Log_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29064 | { (char *)"Log_swigregister", Log_swigregister, METH_VARARGS, NULL }, | |
29065 | { (char *)"new_LogStderr", (PyCFunction) _wrap_new_LogStderr, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29066 | { (char *)"LogStderr_swigregister", LogStderr_swigregister, METH_VARARGS, NULL }, | |
29067 | { (char *)"new_LogTextCtrl", (PyCFunction) _wrap_new_LogTextCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29068 | { (char *)"LogTextCtrl_swigregister", LogTextCtrl_swigregister, METH_VARARGS, NULL }, | |
29069 | { (char *)"new_LogGui", (PyCFunction) _wrap_new_LogGui, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29070 | { (char *)"LogGui_swigregister", LogGui_swigregister, METH_VARARGS, NULL }, | |
29071 | { (char *)"new_LogWindow", (PyCFunction) _wrap_new_LogWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29072 | { (char *)"LogWindow_Show", (PyCFunction) _wrap_LogWindow_Show, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29073 | { (char *)"LogWindow_GetFrame", (PyCFunction) _wrap_LogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29074 | { (char *)"LogWindow_GetOldLog", (PyCFunction) _wrap_LogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29075 | { (char *)"LogWindow_IsPassingMessages", (PyCFunction) _wrap_LogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29076 | { (char *)"LogWindow_PassMessages", (PyCFunction) _wrap_LogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29077 | { (char *)"LogWindow_swigregister", LogWindow_swigregister, METH_VARARGS, NULL }, | |
29078 | { (char *)"new_LogChain", (PyCFunction) _wrap_new_LogChain, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29079 | { (char *)"LogChain_SetLog", (PyCFunction) _wrap_LogChain_SetLog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29080 | { (char *)"LogChain_PassMessages", (PyCFunction) _wrap_LogChain_PassMessages, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29081 | { (char *)"LogChain_IsPassingMessages", (PyCFunction) _wrap_LogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29082 | { (char *)"LogChain_GetOldLog", (PyCFunction) _wrap_LogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29083 | { (char *)"LogChain_swigregister", LogChain_swigregister, METH_VARARGS, NULL }, | |
29084 | { (char *)"SysErrorCode", (PyCFunction) _wrap_SysErrorCode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29085 | { (char *)"SysErrorMsg", (PyCFunction) _wrap_SysErrorMsg, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29086 | { (char *)"LogFatalError", (PyCFunction) _wrap_LogFatalError, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29087 | { (char *)"LogError", (PyCFunction) _wrap_LogError, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29088 | { (char *)"LogWarning", (PyCFunction) _wrap_LogWarning, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29089 | { (char *)"LogMessage", (PyCFunction) _wrap_LogMessage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29090 | { (char *)"LogInfo", (PyCFunction) _wrap_LogInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29091 | { (char *)"LogDebug", (PyCFunction) _wrap_LogDebug, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29092 | { (char *)"LogVerbose", (PyCFunction) _wrap_LogVerbose, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29093 | { (char *)"LogStatus", (PyCFunction) _wrap_LogStatus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29094 | { (char *)"LogStatusFrame", (PyCFunction) _wrap_LogStatusFrame, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29095 | { (char *)"LogSysError", (PyCFunction) _wrap_LogSysError, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29096 | { (char *)"LogTrace", _wrap_LogTrace, METH_VARARGS, NULL }, | |
29097 | { (char *)"LogGeneric", (PyCFunction) _wrap_LogGeneric, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29098 | { (char *)"SafeShowMessage", (PyCFunction) _wrap_SafeShowMessage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29099 | { (char *)"new_LogNull", (PyCFunction) _wrap_new_LogNull, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29100 | { (char *)"delete_LogNull", (PyCFunction) _wrap_delete_LogNull, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29101 | { (char *)"LogNull_swigregister", LogNull_swigregister, METH_VARARGS, NULL }, | |
29102 | { (char *)"new_PyLog", (PyCFunction) _wrap_new_PyLog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29103 | { (char *)"PyLog__setCallbackInfo", (PyCFunction) _wrap_PyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29104 | { (char *)"PyLog_swigregister", PyLog_swigregister, METH_VARARGS, NULL }, | |
29105 | { (char *)"Process_Kill", (PyCFunction) _wrap_Process_Kill, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29106 | { (char *)"Process_Exists", (PyCFunction) _wrap_Process_Exists, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29107 | { (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29108 | { (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29109 | { (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29110 | { (char *)"Process_base_OnTerminate", (PyCFunction) _wrap_Process_base_OnTerminate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29111 | { (char *)"Process_Redirect", (PyCFunction) _wrap_Process_Redirect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29112 | { (char *)"Process_IsRedirected", (PyCFunction) _wrap_Process_IsRedirected, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29113 | { (char *)"Process_Detach", (PyCFunction) _wrap_Process_Detach, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29114 | { (char *)"Process_GetInputStream", (PyCFunction) _wrap_Process_GetInputStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29115 | { (char *)"Process_GetErrorStream", (PyCFunction) _wrap_Process_GetErrorStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29116 | { (char *)"Process_GetOutputStream", (PyCFunction) _wrap_Process_GetOutputStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29117 | { (char *)"Process_CloseOutput", (PyCFunction) _wrap_Process_CloseOutput, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29118 | { (char *)"Process_IsInputOpened", (PyCFunction) _wrap_Process_IsInputOpened, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29119 | { (char *)"Process_IsInputAvailable", (PyCFunction) _wrap_Process_IsInputAvailable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29120 | { (char *)"Process_IsErrorAvailable", (PyCFunction) _wrap_Process_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29121 | { (char *)"Process_swigregister", Process_swigregister, METH_VARARGS, NULL }, | |
29122 | { (char *)"new_ProcessEvent", (PyCFunction) _wrap_new_ProcessEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29123 | { (char *)"ProcessEvent_GetPid", (PyCFunction) _wrap_ProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29124 | { (char *)"ProcessEvent_GetExitCode", (PyCFunction) _wrap_ProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29125 | { (char *)"ProcessEvent_m_pid_set", (PyCFunction) _wrap_ProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29126 | { (char *)"ProcessEvent_m_pid_get", (PyCFunction) _wrap_ProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29127 | { (char *)"ProcessEvent_m_exitcode_set", (PyCFunction) _wrap_ProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29128 | { (char *)"ProcessEvent_m_exitcode_get", (PyCFunction) _wrap_ProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29129 | { (char *)"ProcessEvent_swigregister", ProcessEvent_swigregister, METH_VARARGS, NULL }, | |
29130 | { (char *)"Execute", (PyCFunction) _wrap_Execute, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29131 | { (char *)"new_Joystick", (PyCFunction) _wrap_new_Joystick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29132 | { (char *)"delete_Joystick", (PyCFunction) _wrap_delete_Joystick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29133 | { (char *)"Joystick_GetPosition", (PyCFunction) _wrap_Joystick_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29134 | { (char *)"Joystick_GetZPosition", (PyCFunction) _wrap_Joystick_GetZPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29135 | { (char *)"Joystick_GetButtonState", (PyCFunction) _wrap_Joystick_GetButtonState, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29136 | { (char *)"Joystick_GetPOVPosition", (PyCFunction) _wrap_Joystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29137 | { (char *)"Joystick_GetPOVCTSPosition", (PyCFunction) _wrap_Joystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29138 | { (char *)"Joystick_GetRudderPosition", (PyCFunction) _wrap_Joystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29139 | { (char *)"Joystick_GetUPosition", (PyCFunction) _wrap_Joystick_GetUPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29140 | { (char *)"Joystick_GetVPosition", (PyCFunction) _wrap_Joystick_GetVPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29141 | { (char *)"Joystick_GetMovementThreshold", (PyCFunction) _wrap_Joystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29142 | { (char *)"Joystick_SetMovementThreshold", (PyCFunction) _wrap_Joystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29143 | { (char *)"Joystick_IsOk", (PyCFunction) _wrap_Joystick_IsOk, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29144 | { (char *)"Joystick_GetNumberJoysticks", (PyCFunction) _wrap_Joystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29145 | { (char *)"Joystick_GetManufacturerId", (PyCFunction) _wrap_Joystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29146 | { (char *)"Joystick_GetProductId", (PyCFunction) _wrap_Joystick_GetProductId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29147 | { (char *)"Joystick_GetProductName", (PyCFunction) _wrap_Joystick_GetProductName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29148 | { (char *)"Joystick_GetXMin", (PyCFunction) _wrap_Joystick_GetXMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29149 | { (char *)"Joystick_GetYMin", (PyCFunction) _wrap_Joystick_GetYMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29150 | { (char *)"Joystick_GetZMin", (PyCFunction) _wrap_Joystick_GetZMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29151 | { (char *)"Joystick_GetXMax", (PyCFunction) _wrap_Joystick_GetXMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29152 | { (char *)"Joystick_GetYMax", (PyCFunction) _wrap_Joystick_GetYMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29153 | { (char *)"Joystick_GetZMax", (PyCFunction) _wrap_Joystick_GetZMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29154 | { (char *)"Joystick_GetNumberButtons", (PyCFunction) _wrap_Joystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29155 | { (char *)"Joystick_GetNumberAxes", (PyCFunction) _wrap_Joystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29156 | { (char *)"Joystick_GetMaxButtons", (PyCFunction) _wrap_Joystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29157 | { (char *)"Joystick_GetMaxAxes", (PyCFunction) _wrap_Joystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29158 | { (char *)"Joystick_GetPollingMin", (PyCFunction) _wrap_Joystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29159 | { (char *)"Joystick_GetPollingMax", (PyCFunction) _wrap_Joystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29160 | { (char *)"Joystick_GetRudderMin", (PyCFunction) _wrap_Joystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29161 | { (char *)"Joystick_GetRudderMax", (PyCFunction) _wrap_Joystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29162 | { (char *)"Joystick_GetUMin", (PyCFunction) _wrap_Joystick_GetUMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29163 | { (char *)"Joystick_GetUMax", (PyCFunction) _wrap_Joystick_GetUMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29164 | { (char *)"Joystick_GetVMin", (PyCFunction) _wrap_Joystick_GetVMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29165 | { (char *)"Joystick_GetVMax", (PyCFunction) _wrap_Joystick_GetVMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29166 | { (char *)"Joystick_HasRudder", (PyCFunction) _wrap_Joystick_HasRudder, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29167 | { (char *)"Joystick_HasZ", (PyCFunction) _wrap_Joystick_HasZ, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29168 | { (char *)"Joystick_HasU", (PyCFunction) _wrap_Joystick_HasU, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29169 | { (char *)"Joystick_HasV", (PyCFunction) _wrap_Joystick_HasV, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29170 | { (char *)"Joystick_HasPOV", (PyCFunction) _wrap_Joystick_HasPOV, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29171 | { (char *)"Joystick_HasPOV4Dir", (PyCFunction) _wrap_Joystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29172 | { (char *)"Joystick_HasPOVCTS", (PyCFunction) _wrap_Joystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29173 | { (char *)"Joystick_SetCapture", (PyCFunction) _wrap_Joystick_SetCapture, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29174 | { (char *)"Joystick_ReleaseCapture", (PyCFunction) _wrap_Joystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29175 | { (char *)"Joystick_swigregister", Joystick_swigregister, METH_VARARGS, NULL }, | |
29176 | { (char *)"JoystickEvent_m_pos_set", (PyCFunction) _wrap_JoystickEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29177 | { (char *)"JoystickEvent_m_pos_get", (PyCFunction) _wrap_JoystickEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29178 | { (char *)"JoystickEvent_m_zPosition_set", (PyCFunction) _wrap_JoystickEvent_m_zPosition_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29179 | { (char *)"JoystickEvent_m_zPosition_get", (PyCFunction) _wrap_JoystickEvent_m_zPosition_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29180 | { (char *)"JoystickEvent_m_buttonChange_set", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29181 | { (char *)"JoystickEvent_m_buttonChange_get", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29182 | { (char *)"JoystickEvent_m_buttonState_set", (PyCFunction) _wrap_JoystickEvent_m_buttonState_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29183 | { (char *)"JoystickEvent_m_buttonState_get", (PyCFunction) _wrap_JoystickEvent_m_buttonState_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29184 | { (char *)"JoystickEvent_m_joyStick_set", (PyCFunction) _wrap_JoystickEvent_m_joyStick_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29185 | { (char *)"JoystickEvent_m_joyStick_get", (PyCFunction) _wrap_JoystickEvent_m_joyStick_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29186 | { (char *)"new_JoystickEvent", (PyCFunction) _wrap_new_JoystickEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29187 | { (char *)"JoystickEvent_GetPosition", (PyCFunction) _wrap_JoystickEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29188 | { (char *)"JoystickEvent_GetZPosition", (PyCFunction) _wrap_JoystickEvent_GetZPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29189 | { (char *)"JoystickEvent_GetButtonState", (PyCFunction) _wrap_JoystickEvent_GetButtonState, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29190 | { (char *)"JoystickEvent_GetButtonChange", (PyCFunction) _wrap_JoystickEvent_GetButtonChange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29191 | { (char *)"JoystickEvent_GetJoystick", (PyCFunction) _wrap_JoystickEvent_GetJoystick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29192 | { (char *)"JoystickEvent_SetJoystick", (PyCFunction) _wrap_JoystickEvent_SetJoystick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29193 | { (char *)"JoystickEvent_SetButtonState", (PyCFunction) _wrap_JoystickEvent_SetButtonState, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29194 | { (char *)"JoystickEvent_SetButtonChange", (PyCFunction) _wrap_JoystickEvent_SetButtonChange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29195 | { (char *)"JoystickEvent_SetPosition", (PyCFunction) _wrap_JoystickEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29196 | { (char *)"JoystickEvent_SetZPosition", (PyCFunction) _wrap_JoystickEvent_SetZPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29197 | { (char *)"JoystickEvent_IsButton", (PyCFunction) _wrap_JoystickEvent_IsButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29198 | { (char *)"JoystickEvent_IsMove", (PyCFunction) _wrap_JoystickEvent_IsMove, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29199 | { (char *)"JoystickEvent_IsZMove", (PyCFunction) _wrap_JoystickEvent_IsZMove, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29200 | { (char *)"JoystickEvent_ButtonDown", (PyCFunction) _wrap_JoystickEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29201 | { (char *)"JoystickEvent_ButtonUp", (PyCFunction) _wrap_JoystickEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29202 | { (char *)"JoystickEvent_ButtonIsDown", (PyCFunction) _wrap_JoystickEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29203 | { (char *)"JoystickEvent_swigregister", JoystickEvent_swigregister, METH_VARARGS, NULL }, | |
29204 | { (char *)"new_Sound", (PyCFunction) _wrap_new_Sound, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29205 | { (char *)"new_SoundFromData", (PyCFunction) _wrap_new_SoundFromData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29206 | { (char *)"delete_Sound", (PyCFunction) _wrap_delete_Sound, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29207 | { (char *)"Sound_Create", (PyCFunction) _wrap_Sound_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29208 | { (char *)"Sound_CreateFromData", (PyCFunction) _wrap_Sound_CreateFromData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29209 | { (char *)"Sound_IsOk", (PyCFunction) _wrap_Sound_IsOk, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29210 | { (char *)"Sound_Play", (PyCFunction) _wrap_Sound_Play, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29211 | { (char *)"Sound_PlaySound", (PyCFunction) _wrap_Sound_PlaySound, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29212 | { (char *)"Sound_Stop", (PyCFunction) _wrap_Sound_Stop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29213 | { (char *)"Sound_swigregister", Sound_swigregister, METH_VARARGS, NULL }, | |
29214 | { (char *)"new_FileTypeInfo", (PyCFunction) _wrap_new_FileTypeInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29215 | { (char *)"new_FileTypeInfoSequence", (PyCFunction) _wrap_new_FileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29216 | { (char *)"new_NullFileTypeInfo", (PyCFunction) _wrap_new_NullFileTypeInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29217 | { (char *)"FileTypeInfo_IsValid", (PyCFunction) _wrap_FileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29218 | { (char *)"FileTypeInfo_SetIcon", (PyCFunction) _wrap_FileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29219 | { (char *)"FileTypeInfo_SetShortDesc", (PyCFunction) _wrap_FileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29220 | { (char *)"FileTypeInfo_GetMimeType", (PyCFunction) _wrap_FileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29221 | { (char *)"FileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_FileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29222 | { (char *)"FileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_FileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29223 | { (char *)"FileTypeInfo_GetShortDesc", (PyCFunction) _wrap_FileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29224 | { (char *)"FileTypeInfo_GetDescription", (PyCFunction) _wrap_FileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29225 | { (char *)"FileTypeInfo_GetExtensions", (PyCFunction) _wrap_FileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29226 | { (char *)"FileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_FileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29227 | { (char *)"FileTypeInfo_GetIconFile", (PyCFunction) _wrap_FileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29228 | { (char *)"FileTypeInfo_GetIconIndex", (PyCFunction) _wrap_FileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29229 | { (char *)"FileTypeInfo_swigregister", FileTypeInfo_swigregister, METH_VARARGS, NULL }, | |
29230 | { (char *)"new_FileType", (PyCFunction) _wrap_new_FileType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29231 | { (char *)"delete_FileType", (PyCFunction) _wrap_delete_FileType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29232 | { (char *)"FileType_GetMimeType", (PyCFunction) _wrap_FileType_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29233 | { (char *)"FileType_GetMimeTypes", (PyCFunction) _wrap_FileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29234 | { (char *)"FileType_GetExtensions", (PyCFunction) _wrap_FileType_GetExtensions, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29235 | { (char *)"FileType_GetIcon", (PyCFunction) _wrap_FileType_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29236 | { (char *)"FileType_GetIconInfo", (PyCFunction) _wrap_FileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29237 | { (char *)"FileType_GetDescription", (PyCFunction) _wrap_FileType_GetDescription, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29238 | { (char *)"FileType_GetOpenCommand", (PyCFunction) _wrap_FileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29239 | { (char *)"FileType_GetPrintCommand", (PyCFunction) _wrap_FileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29240 | { (char *)"FileType_GetAllCommands", (PyCFunction) _wrap_FileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29241 | { (char *)"FileType_SetCommand", (PyCFunction) _wrap_FileType_SetCommand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29242 | { (char *)"FileType_SetDefaultIcon", (PyCFunction) _wrap_FileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29243 | { (char *)"FileType_Unassociate", (PyCFunction) _wrap_FileType_Unassociate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29244 | { (char *)"FileType_ExpandCommand", (PyCFunction) _wrap_FileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29245 | { (char *)"FileType_swigregister", FileType_swigregister, METH_VARARGS, NULL }, | |
29246 | { (char *)"MimeTypesManager_IsOfType", (PyCFunction) _wrap_MimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29247 | { (char *)"new_MimeTypesManager", (PyCFunction) _wrap_new_MimeTypesManager, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29248 | { (char *)"MimeTypesManager_Initialize", (PyCFunction) _wrap_MimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29249 | { (char *)"MimeTypesManager_ClearData", (PyCFunction) _wrap_MimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29250 | { (char *)"MimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29251 | { (char *)"MimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29252 | { (char *)"MimeTypesManager_ReadMailcap", (PyCFunction) _wrap_MimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29253 | { (char *)"MimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_MimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29254 | { (char *)"MimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_MimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29255 | { (char *)"MimeTypesManager_AddFallback", (PyCFunction) _wrap_MimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29256 | { (char *)"MimeTypesManager_Associate", (PyCFunction) _wrap_MimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29257 | { (char *)"MimeTypesManager_Unassociate", (PyCFunction) _wrap_MimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29258 | { (char *)"delete_MimeTypesManager", (PyCFunction) _wrap_delete_MimeTypesManager, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29259 | { (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS, NULL }, | |
29260 | { (char *)"new_ArtProvider", (PyCFunction) _wrap_new_ArtProvider, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29261 | { (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29262 | { (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29263 | { (char *)"ArtProvider_PopProvider", (PyCFunction) _wrap_ArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29264 | { (char *)"ArtProvider_RemoveProvider", (PyCFunction) _wrap_ArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29265 | { (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29266 | { (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29267 | { (char *)"ArtProvider_Destroy", (PyCFunction) _wrap_ArtProvider_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29268 | { (char *)"ArtProvider_swigregister", ArtProvider_swigregister, METH_VARARGS, NULL }, | |
29269 | { (char *)"delete_ConfigBase", (PyCFunction) _wrap_delete_ConfigBase, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29270 | { (char *)"ConfigBase_Set", (PyCFunction) _wrap_ConfigBase_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29271 | { (char *)"ConfigBase_Get", (PyCFunction) _wrap_ConfigBase_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29272 | { (char *)"ConfigBase_Create", (PyCFunction) _wrap_ConfigBase_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29273 | { (char *)"ConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_ConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29274 | { (char *)"ConfigBase_SetPath", (PyCFunction) _wrap_ConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29275 | { (char *)"ConfigBase_GetPath", (PyCFunction) _wrap_ConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29276 | { (char *)"ConfigBase_GetFirstGroup", (PyCFunction) _wrap_ConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29277 | { (char *)"ConfigBase_GetNextGroup", (PyCFunction) _wrap_ConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29278 | { (char *)"ConfigBase_GetFirstEntry", (PyCFunction) _wrap_ConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29279 | { (char *)"ConfigBase_GetNextEntry", (PyCFunction) _wrap_ConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29280 | { (char *)"ConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_ConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29281 | { (char *)"ConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_ConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29282 | { (char *)"ConfigBase_HasGroup", (PyCFunction) _wrap_ConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29283 | { (char *)"ConfigBase_HasEntry", (PyCFunction) _wrap_ConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29284 | { (char *)"ConfigBase_Exists", (PyCFunction) _wrap_ConfigBase_Exists, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29285 | { (char *)"ConfigBase_GetEntryType", (PyCFunction) _wrap_ConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29286 | { (char *)"ConfigBase_Read", (PyCFunction) _wrap_ConfigBase_Read, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29287 | { (char *)"ConfigBase_ReadInt", (PyCFunction) _wrap_ConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29288 | { (char *)"ConfigBase_ReadFloat", (PyCFunction) _wrap_ConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29289 | { (char *)"ConfigBase_ReadBool", (PyCFunction) _wrap_ConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29290 | { (char *)"ConfigBase_Write", (PyCFunction) _wrap_ConfigBase_Write, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29291 | { (char *)"ConfigBase_WriteInt", (PyCFunction) _wrap_ConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29292 | { (char *)"ConfigBase_WriteFloat", (PyCFunction) _wrap_ConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29293 | { (char *)"ConfigBase_WriteBool", (PyCFunction) _wrap_ConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29294 | { (char *)"ConfigBase_Flush", (PyCFunction) _wrap_ConfigBase_Flush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29295 | { (char *)"ConfigBase_RenameEntry", (PyCFunction) _wrap_ConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29296 | { (char *)"ConfigBase_RenameGroup", (PyCFunction) _wrap_ConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29297 | { (char *)"ConfigBase_DeleteEntry", (PyCFunction) _wrap_ConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29298 | { (char *)"ConfigBase_DeleteGroup", (PyCFunction) _wrap_ConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29299 | { (char *)"ConfigBase_DeleteAll", (PyCFunction) _wrap_ConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29300 | { (char *)"ConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_ConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29301 | { (char *)"ConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_ConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29302 | { (char *)"ConfigBase_SetRecordDefaults", (PyCFunction) _wrap_ConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29303 | { (char *)"ConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_ConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29304 | { (char *)"ConfigBase_ExpandEnvVars", (PyCFunction) _wrap_ConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29305 | { (char *)"ConfigBase_GetAppName", (PyCFunction) _wrap_ConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29306 | { (char *)"ConfigBase_GetVendorName", (PyCFunction) _wrap_ConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29307 | { (char *)"ConfigBase_SetAppName", (PyCFunction) _wrap_ConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29308 | { (char *)"ConfigBase_SetVendorName", (PyCFunction) _wrap_ConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29309 | { (char *)"ConfigBase_SetStyle", (PyCFunction) _wrap_ConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29310 | { (char *)"ConfigBase_GetStyle", (PyCFunction) _wrap_ConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29311 | { (char *)"ConfigBase_swigregister", ConfigBase_swigregister, METH_VARARGS, NULL }, | |
29312 | { (char *)"new_Config", (PyCFunction) _wrap_new_Config, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29313 | { (char *)"delete_Config", (PyCFunction) _wrap_delete_Config, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29314 | { (char *)"Config_swigregister", Config_swigregister, METH_VARARGS, NULL }, | |
29315 | { (char *)"new_FileConfig", (PyCFunction) _wrap_new_FileConfig, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29316 | { (char *)"delete_FileConfig", (PyCFunction) _wrap_delete_FileConfig, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29317 | { (char *)"FileConfig_swigregister", FileConfig_swigregister, METH_VARARGS, NULL }, | |
29318 | { (char *)"new_ConfigPathChanger", (PyCFunction) _wrap_new_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29319 | { (char *)"delete_ConfigPathChanger", (PyCFunction) _wrap_delete_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29320 | { (char *)"ConfigPathChanger_Name", (PyCFunction) _wrap_ConfigPathChanger_Name, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29321 | { (char *)"ConfigPathChanger_swigregister", ConfigPathChanger_swigregister, METH_VARARGS, NULL }, | |
29322 | { (char *)"ExpandEnvVars", (PyCFunction) _wrap_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29323 | { (char *)"DateTime_SetCountry", (PyCFunction) _wrap_DateTime_SetCountry, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29324 | { (char *)"DateTime_GetCountry", (PyCFunction) _wrap_DateTime_GetCountry, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29325 | { (char *)"DateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_DateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29326 | { (char *)"DateTime_GetCurrentYear", (PyCFunction) _wrap_DateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29327 | { (char *)"DateTime_ConvertYearToBC", (PyCFunction) _wrap_DateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29328 | { (char *)"DateTime_GetCurrentMonth", (PyCFunction) _wrap_DateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29329 | { (char *)"DateTime_IsLeapYear", (PyCFunction) _wrap_DateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29330 | { (char *)"DateTime_GetCentury", (PyCFunction) _wrap_DateTime_GetCentury, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29331 | { (char *)"DateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_DateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29332 | { (char *)"DateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_DateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29333 | { (char *)"DateTime_GetMonthName", (PyCFunction) _wrap_DateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29334 | { (char *)"DateTime_GetWeekDayName", (PyCFunction) _wrap_DateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29335 | { (char *)"DateTime_GetAmPmStrings", (PyCFunction) _wrap_DateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29336 | { (char *)"DateTime_IsDSTApplicable", (PyCFunction) _wrap_DateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29337 | { (char *)"DateTime_GetBeginDST", (PyCFunction) _wrap_DateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29338 | { (char *)"DateTime_GetEndDST", (PyCFunction) _wrap_DateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29339 | { (char *)"DateTime_Now", (PyCFunction) _wrap_DateTime_Now, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29340 | { (char *)"DateTime_UNow", (PyCFunction) _wrap_DateTime_UNow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29341 | { (char *)"DateTime_Today", (PyCFunction) _wrap_DateTime_Today, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29342 | { (char *)"new_DateTime", (PyCFunction) _wrap_new_DateTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29343 | { (char *)"new_DateTimeFromTimeT", (PyCFunction) _wrap_new_DateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29344 | { (char *)"new_DateTimeFromJDN", (PyCFunction) _wrap_new_DateTimeFromJDN, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29345 | { (char *)"new_DateTimeFromHMS", (PyCFunction) _wrap_new_DateTimeFromHMS, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29346 | { (char *)"new_DateTimeFromDMY", (PyCFunction) _wrap_new_DateTimeFromDMY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29347 | { (char *)"delete_DateTime", (PyCFunction) _wrap_delete_DateTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29348 | { (char *)"DateTime_SetToCurrent", (PyCFunction) _wrap_DateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29349 | { (char *)"DateTime_SetTimeT", (PyCFunction) _wrap_DateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29350 | { (char *)"DateTime_SetJDN", (PyCFunction) _wrap_DateTime_SetJDN, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29351 | { (char *)"DateTime_SetHMS", (PyCFunction) _wrap_DateTime_SetHMS, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29352 | { (char *)"DateTime_Set", (PyCFunction) _wrap_DateTime_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29353 | { (char *)"DateTime_ResetTime", (PyCFunction) _wrap_DateTime_ResetTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29354 | { (char *)"DateTime_SetYear", (PyCFunction) _wrap_DateTime_SetYear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29355 | { (char *)"DateTime_SetMonth", (PyCFunction) _wrap_DateTime_SetMonth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29356 | { (char *)"DateTime_SetDay", (PyCFunction) _wrap_DateTime_SetDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29357 | { (char *)"DateTime_SetHour", (PyCFunction) _wrap_DateTime_SetHour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29358 | { (char *)"DateTime_SetMinute", (PyCFunction) _wrap_DateTime_SetMinute, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29359 | { (char *)"DateTime_SetSecond", (PyCFunction) _wrap_DateTime_SetSecond, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29360 | { (char *)"DateTime_SetMillisecond", (PyCFunction) _wrap_DateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29361 | { (char *)"DateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29362 | { (char *)"DateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29363 | { (char *)"DateTime_SetToNextWeekDay", (PyCFunction) _wrap_DateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29364 | { (char *)"DateTime_GetNextWeekDay", (PyCFunction) _wrap_DateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29365 | { (char *)"DateTime_SetToPrevWeekDay", (PyCFunction) _wrap_DateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29366 | { (char *)"DateTime_GetPrevWeekDay", (PyCFunction) _wrap_DateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29367 | { (char *)"DateTime_SetToWeekDay", (PyCFunction) _wrap_DateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29368 | { (char *)"DateTime_SetToLastWeekDay", (PyCFunction) _wrap_DateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29369 | { (char *)"DateTime_GetLastWeekDay", (PyCFunction) _wrap_DateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29370 | { (char *)"DateTime_SetToTheWeek", (PyCFunction) _wrap_DateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29371 | { (char *)"DateTime_GetWeek", (PyCFunction) _wrap_DateTime_GetWeek, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29372 | { (char *)"DateTime_SetToWeekOfYear", (PyCFunction) _wrap_DateTime_SetToWeekOfYear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29373 | { (char *)"DateTime_SetToLastMonthDay", (PyCFunction) _wrap_DateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29374 | { (char *)"DateTime_GetLastMonthDay", (PyCFunction) _wrap_DateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29375 | { (char *)"DateTime_SetToYearDay", (PyCFunction) _wrap_DateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29376 | { (char *)"DateTime_GetYearDay", (PyCFunction) _wrap_DateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29377 | { (char *)"DateTime_GetJulianDayNumber", (PyCFunction) _wrap_DateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29378 | { (char *)"DateTime_GetJDN", (PyCFunction) _wrap_DateTime_GetJDN, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29379 | { (char *)"DateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_DateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29380 | { (char *)"DateTime_GetMJD", (PyCFunction) _wrap_DateTime_GetMJD, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29381 | { (char *)"DateTime_GetRataDie", (PyCFunction) _wrap_DateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29382 | { (char *)"DateTime_ToTimezone", (PyCFunction) _wrap_DateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29383 | { (char *)"DateTime_MakeTimezone", (PyCFunction) _wrap_DateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29384 | { (char *)"DateTime_ToGMT", (PyCFunction) _wrap_DateTime_ToGMT, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29385 | { (char *)"DateTime_MakeGMT", (PyCFunction) _wrap_DateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29386 | { (char *)"DateTime_IsDST", (PyCFunction) _wrap_DateTime_IsDST, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29387 | { (char *)"DateTime_IsValid", (PyCFunction) _wrap_DateTime_IsValid, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29388 | { (char *)"DateTime_GetTicks", (PyCFunction) _wrap_DateTime_GetTicks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29389 | { (char *)"DateTime_GetYear", (PyCFunction) _wrap_DateTime_GetYear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29390 | { (char *)"DateTime_GetMonth", (PyCFunction) _wrap_DateTime_GetMonth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29391 | { (char *)"DateTime_GetDay", (PyCFunction) _wrap_DateTime_GetDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29392 | { (char *)"DateTime_GetWeekDay", (PyCFunction) _wrap_DateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29393 | { (char *)"DateTime_GetHour", (PyCFunction) _wrap_DateTime_GetHour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29394 | { (char *)"DateTime_GetMinute", (PyCFunction) _wrap_DateTime_GetMinute, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29395 | { (char *)"DateTime_GetSecond", (PyCFunction) _wrap_DateTime_GetSecond, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29396 | { (char *)"DateTime_GetMillisecond", (PyCFunction) _wrap_DateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29397 | { (char *)"DateTime_GetDayOfYear", (PyCFunction) _wrap_DateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29398 | { (char *)"DateTime_GetWeekOfYear", (PyCFunction) _wrap_DateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29399 | { (char *)"DateTime_GetWeekOfMonth", (PyCFunction) _wrap_DateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29400 | { (char *)"DateTime_IsWorkDay", (PyCFunction) _wrap_DateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29401 | { (char *)"DateTime_IsEqualTo", (PyCFunction) _wrap_DateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29402 | { (char *)"DateTime_IsEarlierThan", (PyCFunction) _wrap_DateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29403 | { (char *)"DateTime_IsLaterThan", (PyCFunction) _wrap_DateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29404 | { (char *)"DateTime_IsStrictlyBetween", (PyCFunction) _wrap_DateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29405 | { (char *)"DateTime_IsBetween", (PyCFunction) _wrap_DateTime_IsBetween, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29406 | { (char *)"DateTime_IsSameDate", (PyCFunction) _wrap_DateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29407 | { (char *)"DateTime_IsSameTime", (PyCFunction) _wrap_DateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29408 | { (char *)"DateTime_IsEqualUpTo", (PyCFunction) _wrap_DateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29409 | { (char *)"DateTime_AddTS", (PyCFunction) _wrap_DateTime_AddTS, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29410 | { (char *)"DateTime_AddDS", (PyCFunction) _wrap_DateTime_AddDS, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29411 | { (char *)"DateTime_SubtractTS", (PyCFunction) _wrap_DateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29412 | { (char *)"DateTime_SubtractDS", (PyCFunction) _wrap_DateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29413 | { (char *)"DateTime_Subtract", (PyCFunction) _wrap_DateTime_Subtract, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29414 | { (char *)"DateTime___iadd__", _wrap_DateTime___iadd__, METH_VARARGS, NULL }, | |
29415 | { (char *)"DateTime___isub__", _wrap_DateTime___isub__, METH_VARARGS, NULL }, | |
29416 | { (char *)"DateTime___add__", _wrap_DateTime___add__, METH_VARARGS, NULL }, | |
29417 | { (char *)"DateTime___sub__", _wrap_DateTime___sub__, METH_VARARGS, NULL }, | |
29418 | { (char *)"DateTime___lt__", _wrap_DateTime___lt__, METH_VARARGS, NULL }, | |
29419 | { (char *)"DateTime___le__", _wrap_DateTime___le__, METH_VARARGS, NULL }, | |
29420 | { (char *)"DateTime___gt__", _wrap_DateTime___gt__, METH_VARARGS, NULL }, | |
29421 | { (char *)"DateTime___ge__", _wrap_DateTime___ge__, METH_VARARGS, NULL }, | |
29422 | { (char *)"DateTime___eq__", _wrap_DateTime___eq__, METH_VARARGS, NULL }, | |
29423 | { (char *)"DateTime___ne__", _wrap_DateTime___ne__, METH_VARARGS, NULL }, | |
29424 | { (char *)"DateTime_ParseRfc822Date", (PyCFunction) _wrap_DateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29425 | { (char *)"DateTime_ParseFormat", (PyCFunction) _wrap_DateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29426 | { (char *)"DateTime_ParseDateTime", (PyCFunction) _wrap_DateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29427 | { (char *)"DateTime_ParseDate", (PyCFunction) _wrap_DateTime_ParseDate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29428 | { (char *)"DateTime_ParseTime", (PyCFunction) _wrap_DateTime_ParseTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29429 | { (char *)"DateTime_Format", (PyCFunction) _wrap_DateTime_Format, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29430 | { (char *)"DateTime_FormatDate", (PyCFunction) _wrap_DateTime_FormatDate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29431 | { (char *)"DateTime_FormatTime", (PyCFunction) _wrap_DateTime_FormatTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29432 | { (char *)"DateTime_FormatISODate", (PyCFunction) _wrap_DateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29433 | { (char *)"DateTime_FormatISOTime", (PyCFunction) _wrap_DateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29434 | { (char *)"DateTime_swigregister", DateTime_swigregister, METH_VARARGS, NULL }, | |
29435 | { (char *)"TimeSpan_Seconds", (PyCFunction) _wrap_TimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29436 | { (char *)"TimeSpan_Second", (PyCFunction) _wrap_TimeSpan_Second, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29437 | { (char *)"TimeSpan_Minutes", (PyCFunction) _wrap_TimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29438 | { (char *)"TimeSpan_Minute", (PyCFunction) _wrap_TimeSpan_Minute, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29439 | { (char *)"TimeSpan_Hours", (PyCFunction) _wrap_TimeSpan_Hours, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29440 | { (char *)"TimeSpan_Hour", (PyCFunction) _wrap_TimeSpan_Hour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29441 | { (char *)"TimeSpan_Days", (PyCFunction) _wrap_TimeSpan_Days, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29442 | { (char *)"TimeSpan_Day", (PyCFunction) _wrap_TimeSpan_Day, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29443 | { (char *)"TimeSpan_Weeks", (PyCFunction) _wrap_TimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29444 | { (char *)"TimeSpan_Week", (PyCFunction) _wrap_TimeSpan_Week, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29445 | { (char *)"new_TimeSpan", (PyCFunction) _wrap_new_TimeSpan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29446 | { (char *)"delete_TimeSpan", (PyCFunction) _wrap_delete_TimeSpan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29447 | { (char *)"TimeSpan_Add", (PyCFunction) _wrap_TimeSpan_Add, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29448 | { (char *)"TimeSpan_Subtract", (PyCFunction) _wrap_TimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29449 | { (char *)"TimeSpan_Multiply", (PyCFunction) _wrap_TimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29450 | { (char *)"TimeSpan_Neg", (PyCFunction) _wrap_TimeSpan_Neg, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29451 | { (char *)"TimeSpan_Abs", (PyCFunction) _wrap_TimeSpan_Abs, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29452 | { (char *)"TimeSpan___iadd__", (PyCFunction) _wrap_TimeSpan___iadd__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29453 | { (char *)"TimeSpan___isub__", (PyCFunction) _wrap_TimeSpan___isub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29454 | { (char *)"TimeSpan___imul__", (PyCFunction) _wrap_TimeSpan___imul__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29455 | { (char *)"TimeSpan___neg__", (PyCFunction) _wrap_TimeSpan___neg__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29456 | { (char *)"TimeSpan___add__", (PyCFunction) _wrap_TimeSpan___add__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29457 | { (char *)"TimeSpan___sub__", (PyCFunction) _wrap_TimeSpan___sub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29458 | { (char *)"TimeSpan___mul__", (PyCFunction) _wrap_TimeSpan___mul__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29459 | { (char *)"TimeSpan___rmul__", (PyCFunction) _wrap_TimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29460 | { (char *)"TimeSpan___lt__", (PyCFunction) _wrap_TimeSpan___lt__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29461 | { (char *)"TimeSpan___le__", (PyCFunction) _wrap_TimeSpan___le__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29462 | { (char *)"TimeSpan___gt__", (PyCFunction) _wrap_TimeSpan___gt__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29463 | { (char *)"TimeSpan___ge__", (PyCFunction) _wrap_TimeSpan___ge__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29464 | { (char *)"TimeSpan___eq__", (PyCFunction) _wrap_TimeSpan___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29465 | { (char *)"TimeSpan___ne__", (PyCFunction) _wrap_TimeSpan___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29466 | { (char *)"TimeSpan_IsNull", (PyCFunction) _wrap_TimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29467 | { (char *)"TimeSpan_IsPositive", (PyCFunction) _wrap_TimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29468 | { (char *)"TimeSpan_IsNegative", (PyCFunction) _wrap_TimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29469 | { (char *)"TimeSpan_IsEqualTo", (PyCFunction) _wrap_TimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29470 | { (char *)"TimeSpan_IsLongerThan", (PyCFunction) _wrap_TimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29471 | { (char *)"TimeSpan_IsShorterThan", (PyCFunction) _wrap_TimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29472 | { (char *)"TimeSpan_GetWeeks", (PyCFunction) _wrap_TimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29473 | { (char *)"TimeSpan_GetDays", (PyCFunction) _wrap_TimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29474 | { (char *)"TimeSpan_GetHours", (PyCFunction) _wrap_TimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29475 | { (char *)"TimeSpan_GetMinutes", (PyCFunction) _wrap_TimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29476 | { (char *)"TimeSpan_GetSeconds", (PyCFunction) _wrap_TimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29477 | { (char *)"TimeSpan_GetMilliseconds", (PyCFunction) _wrap_TimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29478 | { (char *)"TimeSpan_Format", (PyCFunction) _wrap_TimeSpan_Format, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29479 | { (char *)"TimeSpan_swigregister", TimeSpan_swigregister, METH_VARARGS, NULL }, | |
29480 | { (char *)"new_DateSpan", (PyCFunction) _wrap_new_DateSpan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29481 | { (char *)"delete_DateSpan", (PyCFunction) _wrap_delete_DateSpan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29482 | { (char *)"DateSpan_Days", (PyCFunction) _wrap_DateSpan_Days, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29483 | { (char *)"DateSpan_Day", (PyCFunction) _wrap_DateSpan_Day, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29484 | { (char *)"DateSpan_Weeks", (PyCFunction) _wrap_DateSpan_Weeks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29485 | { (char *)"DateSpan_Week", (PyCFunction) _wrap_DateSpan_Week, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29486 | { (char *)"DateSpan_Months", (PyCFunction) _wrap_DateSpan_Months, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29487 | { (char *)"DateSpan_Month", (PyCFunction) _wrap_DateSpan_Month, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29488 | { (char *)"DateSpan_Years", (PyCFunction) _wrap_DateSpan_Years, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29489 | { (char *)"DateSpan_Year", (PyCFunction) _wrap_DateSpan_Year, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29490 | { (char *)"DateSpan_SetYears", (PyCFunction) _wrap_DateSpan_SetYears, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29491 | { (char *)"DateSpan_SetMonths", (PyCFunction) _wrap_DateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29492 | { (char *)"DateSpan_SetWeeks", (PyCFunction) _wrap_DateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29493 | { (char *)"DateSpan_SetDays", (PyCFunction) _wrap_DateSpan_SetDays, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29494 | { (char *)"DateSpan_GetYears", (PyCFunction) _wrap_DateSpan_GetYears, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29495 | { (char *)"DateSpan_GetMonths", (PyCFunction) _wrap_DateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29496 | { (char *)"DateSpan_GetWeeks", (PyCFunction) _wrap_DateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29497 | { (char *)"DateSpan_GetDays", (PyCFunction) _wrap_DateSpan_GetDays, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29498 | { (char *)"DateSpan_GetTotalDays", (PyCFunction) _wrap_DateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29499 | { (char *)"DateSpan_Add", (PyCFunction) _wrap_DateSpan_Add, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29500 | { (char *)"DateSpan_Subtract", (PyCFunction) _wrap_DateSpan_Subtract, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29501 | { (char *)"DateSpan_Neg", (PyCFunction) _wrap_DateSpan_Neg, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29502 | { (char *)"DateSpan_Multiply", (PyCFunction) _wrap_DateSpan_Multiply, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29503 | { (char *)"DateSpan___iadd__", (PyCFunction) _wrap_DateSpan___iadd__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29504 | { (char *)"DateSpan___isub__", (PyCFunction) _wrap_DateSpan___isub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29505 | { (char *)"DateSpan___neg__", (PyCFunction) _wrap_DateSpan___neg__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29506 | { (char *)"DateSpan___imul__", (PyCFunction) _wrap_DateSpan___imul__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29507 | { (char *)"DateSpan___add__", (PyCFunction) _wrap_DateSpan___add__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29508 | { (char *)"DateSpan___sub__", (PyCFunction) _wrap_DateSpan___sub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29509 | { (char *)"DateSpan___mul__", (PyCFunction) _wrap_DateSpan___mul__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29510 | { (char *)"DateSpan___rmul__", (PyCFunction) _wrap_DateSpan___rmul__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29511 | { (char *)"DateSpan___eq__", (PyCFunction) _wrap_DateSpan___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29512 | { (char *)"DateSpan___ne__", (PyCFunction) _wrap_DateSpan___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29513 | { (char *)"DateSpan_swigregister", DateSpan_swigregister, METH_VARARGS, NULL }, | |
29514 | { (char *)"GetLocalTime", (PyCFunction) _wrap_GetLocalTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29515 | { (char *)"GetUTCTime", (PyCFunction) _wrap_GetUTCTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29516 | { (char *)"GetCurrentTime", (PyCFunction) _wrap_GetCurrentTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29517 | { (char *)"GetLocalTimeMillis", (PyCFunction) _wrap_GetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29518 | { (char *)"new_DataFormat", (PyCFunction) _wrap_new_DataFormat, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29519 | { (char *)"new_CustomDataFormat", (PyCFunction) _wrap_new_CustomDataFormat, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29520 | { (char *)"delete_DataFormat", (PyCFunction) _wrap_delete_DataFormat, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29521 | { (char *)"DataFormat___eq__", _wrap_DataFormat___eq__, METH_VARARGS, NULL }, | |
29522 | { (char *)"DataFormat___ne__", _wrap_DataFormat___ne__, METH_VARARGS, NULL }, | |
29523 | { (char *)"DataFormat_SetType", (PyCFunction) _wrap_DataFormat_SetType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29524 | { (char *)"DataFormat_GetType", (PyCFunction) _wrap_DataFormat_GetType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29525 | { (char *)"DataFormat_GetId", (PyCFunction) _wrap_DataFormat_GetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29526 | { (char *)"DataFormat_SetId", (PyCFunction) _wrap_DataFormat_SetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29527 | { (char *)"DataFormat_swigregister", DataFormat_swigregister, METH_VARARGS, NULL }, | |
29528 | { (char *)"delete_DataObject", (PyCFunction) _wrap_delete_DataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29529 | { (char *)"DataObject_GetPreferredFormat", (PyCFunction) _wrap_DataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29530 | { (char *)"DataObject_GetFormatCount", (PyCFunction) _wrap_DataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29531 | { (char *)"DataObject_IsSupported", (PyCFunction) _wrap_DataObject_IsSupported, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29532 | { (char *)"DataObject_GetDataSize", (PyCFunction) _wrap_DataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29533 | { (char *)"DataObject_GetAllFormats", (PyCFunction) _wrap_DataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29534 | { (char *)"DataObject_GetDataHere", (PyCFunction) _wrap_DataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29535 | { (char *)"DataObject_SetData", (PyCFunction) _wrap_DataObject_SetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29536 | { (char *)"DataObject_swigregister", DataObject_swigregister, METH_VARARGS, NULL }, | |
29537 | { (char *)"new_DataObjectSimple", (PyCFunction) _wrap_new_DataObjectSimple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29538 | { (char *)"DataObjectSimple_GetFormat", (PyCFunction) _wrap_DataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29539 | { (char *)"DataObjectSimple_SetFormat", (PyCFunction) _wrap_DataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29540 | { (char *)"DataObjectSimple_GetDataSize", (PyCFunction) _wrap_DataObjectSimple_GetDataSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29541 | { (char *)"DataObjectSimple_GetDataHere", (PyCFunction) _wrap_DataObjectSimple_GetDataHere, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29542 | { (char *)"DataObjectSimple_SetData", (PyCFunction) _wrap_DataObjectSimple_SetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29543 | { (char *)"DataObjectSimple_swigregister", DataObjectSimple_swigregister, METH_VARARGS, NULL }, | |
29544 | { (char *)"new_PyDataObjectSimple", (PyCFunction) _wrap_new_PyDataObjectSimple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29545 | { (char *)"PyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_PyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29546 | { (char *)"PyDataObjectSimple_swigregister", PyDataObjectSimple_swigregister, METH_VARARGS, NULL }, | |
29547 | { (char *)"new_DataObjectComposite", (PyCFunction) _wrap_new_DataObjectComposite, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29548 | { (char *)"DataObjectComposite_Add", (PyCFunction) _wrap_DataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29549 | { (char *)"DataObjectComposite_swigregister", DataObjectComposite_swigregister, METH_VARARGS, NULL }, | |
29550 | { (char *)"new_TextDataObject", (PyCFunction) _wrap_new_TextDataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29551 | { (char *)"TextDataObject_GetTextLength", (PyCFunction) _wrap_TextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29552 | { (char *)"TextDataObject_GetText", (PyCFunction) _wrap_TextDataObject_GetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29553 | { (char *)"TextDataObject_SetText", (PyCFunction) _wrap_TextDataObject_SetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29554 | { (char *)"TextDataObject_swigregister", TextDataObject_swigregister, METH_VARARGS, NULL }, | |
29555 | { (char *)"new_PyTextDataObject", (PyCFunction) _wrap_new_PyTextDataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29556 | { (char *)"PyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_PyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29557 | { (char *)"PyTextDataObject_swigregister", PyTextDataObject_swigregister, METH_VARARGS, NULL }, | |
29558 | { (char *)"new_BitmapDataObject", (PyCFunction) _wrap_new_BitmapDataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29559 | { (char *)"BitmapDataObject_GetBitmap", (PyCFunction) _wrap_BitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29560 | { (char *)"BitmapDataObject_SetBitmap", (PyCFunction) _wrap_BitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29561 | { (char *)"BitmapDataObject_swigregister", BitmapDataObject_swigregister, METH_VARARGS, NULL }, | |
29562 | { (char *)"new_PyBitmapDataObject", (PyCFunction) _wrap_new_PyBitmapDataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29563 | { (char *)"PyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_PyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29564 | { (char *)"PyBitmapDataObject_swigregister", PyBitmapDataObject_swigregister, METH_VARARGS, NULL }, | |
29565 | { (char *)"new_FileDataObject", (PyCFunction) _wrap_new_FileDataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29566 | { (char *)"FileDataObject_GetFilenames", (PyCFunction) _wrap_FileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29567 | { (char *)"FileDataObject_AddFile", (PyCFunction) _wrap_FileDataObject_AddFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29568 | { (char *)"FileDataObject_swigregister", FileDataObject_swigregister, METH_VARARGS, NULL }, | |
29569 | { (char *)"new_CustomDataObject", (PyCFunction) _wrap_new_CustomDataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29570 | { (char *)"CustomDataObject_SetData", (PyCFunction) _wrap_CustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29571 | { (char *)"CustomDataObject_GetSize", (PyCFunction) _wrap_CustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29572 | { (char *)"CustomDataObject_GetData", (PyCFunction) _wrap_CustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29573 | { (char *)"CustomDataObject_swigregister", CustomDataObject_swigregister, METH_VARARGS, NULL }, | |
29574 | { (char *)"new_URLDataObject", (PyCFunction) _wrap_new_URLDataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29575 | { (char *)"URLDataObject_GetURL", (PyCFunction) _wrap_URLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29576 | { (char *)"URLDataObject_SetURL", (PyCFunction) _wrap_URLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29577 | { (char *)"URLDataObject_swigregister", URLDataObject_swigregister, METH_VARARGS, NULL }, | |
29578 | { (char *)"new_MetafileDataObject", (PyCFunction) _wrap_new_MetafileDataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29579 | { (char *)"MetafileDataObject_swigregister", MetafileDataObject_swigregister, METH_VARARGS, NULL }, | |
29580 | { (char *)"IsDragResultOk", (PyCFunction) _wrap_IsDragResultOk, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29581 | { (char *)"new_DropSource", (PyCFunction) _wrap_new_DropSource, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29582 | { (char *)"DropSource__setCallbackInfo", (PyCFunction) _wrap_DropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29583 | { (char *)"delete_DropSource", (PyCFunction) _wrap_delete_DropSource, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29584 | { (char *)"DropSource_SetData", (PyCFunction) _wrap_DropSource_SetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29585 | { (char *)"DropSource_GetDataObject", (PyCFunction) _wrap_DropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29586 | { (char *)"DropSource_SetCursor", (PyCFunction) _wrap_DropSource_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29587 | { (char *)"DropSource_DoDragDrop", (PyCFunction) _wrap_DropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29588 | { (char *)"DropSource_base_GiveFeedback", (PyCFunction) _wrap_DropSource_base_GiveFeedback, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29589 | { (char *)"DropSource_swigregister", DropSource_swigregister, METH_VARARGS, NULL }, | |
29590 | { (char *)"new_DropTarget", (PyCFunction) _wrap_new_DropTarget, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29591 | { (char *)"DropTarget__setCallbackInfo", (PyCFunction) _wrap_DropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29592 | { (char *)"delete_DropTarget", (PyCFunction) _wrap_delete_DropTarget, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29593 | { (char *)"DropTarget_GetDataObject", (PyCFunction) _wrap_DropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29594 | { (char *)"DropTarget_SetDataObject", (PyCFunction) _wrap_DropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29595 | { (char *)"DropTarget_base_OnEnter", (PyCFunction) _wrap_DropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29596 | { (char *)"DropTarget_base_OnDragOver", (PyCFunction) _wrap_DropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29597 | { (char *)"DropTarget_base_OnLeave", (PyCFunction) _wrap_DropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29598 | { (char *)"DropTarget_base_OnDrop", (PyCFunction) _wrap_DropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29599 | { (char *)"DropTarget_GetData", (PyCFunction) _wrap_DropTarget_GetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29600 | { (char *)"DropTarget_swigregister", DropTarget_swigregister, METH_VARARGS, NULL }, | |
29601 | { (char *)"new_TextDropTarget", (PyCFunction) _wrap_new_TextDropTarget, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29602 | { (char *)"TextDropTarget__setCallbackInfo", (PyCFunction) _wrap_TextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29603 | { (char *)"TextDropTarget_base_OnEnter", (PyCFunction) _wrap_TextDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29604 | { (char *)"TextDropTarget_base_OnDragOver", (PyCFunction) _wrap_TextDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29605 | { (char *)"TextDropTarget_base_OnLeave", (PyCFunction) _wrap_TextDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29606 | { (char *)"TextDropTarget_base_OnDrop", (PyCFunction) _wrap_TextDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29607 | { (char *)"TextDropTarget_base_OnData", (PyCFunction) _wrap_TextDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29608 | { (char *)"TextDropTarget_swigregister", TextDropTarget_swigregister, METH_VARARGS, NULL }, | |
29609 | { (char *)"new_FileDropTarget", (PyCFunction) _wrap_new_FileDropTarget, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29610 | { (char *)"FileDropTarget__setCallbackInfo", (PyCFunction) _wrap_FileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29611 | { (char *)"FileDropTarget_base_OnEnter", (PyCFunction) _wrap_FileDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29612 | { (char *)"FileDropTarget_base_OnDragOver", (PyCFunction) _wrap_FileDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29613 | { (char *)"FileDropTarget_base_OnLeave", (PyCFunction) _wrap_FileDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29614 | { (char *)"FileDropTarget_base_OnDrop", (PyCFunction) _wrap_FileDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29615 | { (char *)"FileDropTarget_base_OnData", (PyCFunction) _wrap_FileDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29616 | { (char *)"FileDropTarget_swigregister", FileDropTarget_swigregister, METH_VARARGS, NULL }, | |
29617 | { (char *)"new_Clipboard", (PyCFunction) _wrap_new_Clipboard, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29618 | { (char *)"delete_Clipboard", (PyCFunction) _wrap_delete_Clipboard, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29619 | { (char *)"Clipboard_Open", (PyCFunction) _wrap_Clipboard_Open, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29620 | { (char *)"Clipboard_Close", (PyCFunction) _wrap_Clipboard_Close, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29621 | { (char *)"Clipboard_IsOpened", (PyCFunction) _wrap_Clipboard_IsOpened, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29622 | { (char *)"Clipboard_AddData", (PyCFunction) _wrap_Clipboard_AddData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29623 | { (char *)"Clipboard_SetData", (PyCFunction) _wrap_Clipboard_SetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29624 | { (char *)"Clipboard_IsSupported", (PyCFunction) _wrap_Clipboard_IsSupported, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29625 | { (char *)"Clipboard_GetData", (PyCFunction) _wrap_Clipboard_GetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29626 | { (char *)"Clipboard_Clear", (PyCFunction) _wrap_Clipboard_Clear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29627 | { (char *)"Clipboard_Flush", (PyCFunction) _wrap_Clipboard_Flush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29628 | { (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29629 | { (char *)"Clipboard_Get", (PyCFunction) _wrap_Clipboard_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29630 | { (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS, NULL }, | |
29631 | { (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29632 | { (char *)"delete_ClipboardLocker", (PyCFunction) _wrap_delete_ClipboardLocker, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29633 | { (char *)"ClipboardLocker___nonzero__", (PyCFunction) _wrap_ClipboardLocker___nonzero__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29634 | { (char *)"ClipboardLocker_swigregister", ClipboardLocker_swigregister, METH_VARARGS, NULL }, | |
29635 | { (char *)"new_VideoMode", (PyCFunction) _wrap_new_VideoMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29636 | { (char *)"delete_VideoMode", (PyCFunction) _wrap_delete_VideoMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29637 | { (char *)"VideoMode_Matches", (PyCFunction) _wrap_VideoMode_Matches, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29638 | { (char *)"VideoMode_GetWidth", (PyCFunction) _wrap_VideoMode_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29639 | { (char *)"VideoMode_GetHeight", (PyCFunction) _wrap_VideoMode_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29640 | { (char *)"VideoMode_GetDepth", (PyCFunction) _wrap_VideoMode_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29641 | { (char *)"VideoMode_IsOk", (PyCFunction) _wrap_VideoMode_IsOk, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29642 | { (char *)"VideoMode___eq__", (PyCFunction) _wrap_VideoMode___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29643 | { (char *)"VideoMode___ne__", (PyCFunction) _wrap_VideoMode___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29644 | { (char *)"VideoMode_w_set", (PyCFunction) _wrap_VideoMode_w_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29645 | { (char *)"VideoMode_w_get", (PyCFunction) _wrap_VideoMode_w_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29646 | { (char *)"VideoMode_h_set", (PyCFunction) _wrap_VideoMode_h_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29647 | { (char *)"VideoMode_h_get", (PyCFunction) _wrap_VideoMode_h_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29648 | { (char *)"VideoMode_bpp_set", (PyCFunction) _wrap_VideoMode_bpp_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29649 | { (char *)"VideoMode_bpp_get", (PyCFunction) _wrap_VideoMode_bpp_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29650 | { (char *)"VideoMode_refresh_set", (PyCFunction) _wrap_VideoMode_refresh_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29651 | { (char *)"VideoMode_refresh_get", (PyCFunction) _wrap_VideoMode_refresh_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29652 | { (char *)"VideoMode_swigregister", VideoMode_swigregister, METH_VARARGS, NULL }, | |
29653 | { (char *)"new_Display", (PyCFunction) _wrap_new_Display, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29654 | { (char *)"delete_Display", (PyCFunction) _wrap_delete_Display, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29655 | { (char *)"Display_GetCount", (PyCFunction) _wrap_Display_GetCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29656 | { (char *)"Display_GetFromPoint", (PyCFunction) _wrap_Display_GetFromPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29657 | { (char *)"Display_GetFromWindow", (PyCFunction) _wrap_Display_GetFromWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29658 | { (char *)"Display_IsOk", (PyCFunction) _wrap_Display_IsOk, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29659 | { (char *)"Display_GetGeometry", (PyCFunction) _wrap_Display_GetGeometry, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29660 | { (char *)"Display_GetName", (PyCFunction) _wrap_Display_GetName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29661 | { (char *)"Display_IsPrimary", (PyCFunction) _wrap_Display_IsPrimary, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29662 | { (char *)"Display_GetModes", (PyCFunction) _wrap_Display_GetModes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29663 | { (char *)"Display_GetCurrentMode", (PyCFunction) _wrap_Display_GetCurrentMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29664 | { (char *)"Display_ChangeMode", (PyCFunction) _wrap_Display_ChangeMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29665 | { (char *)"Display_ResetMode", (PyCFunction) _wrap_Display_ResetMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29666 | { (char *)"Display_swigregister", Display_swigregister, METH_VARARGS, NULL }, | |
29667 | { (char *)"StandardPaths_Get", (PyCFunction) _wrap_StandardPaths_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29668 | { (char *)"StandardPaths_GetConfigDir", (PyCFunction) _wrap_StandardPaths_GetConfigDir, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29669 | { (char *)"StandardPaths_GetUserConfigDir", (PyCFunction) _wrap_StandardPaths_GetUserConfigDir, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29670 | { (char *)"StandardPaths_GetDataDir", (PyCFunction) _wrap_StandardPaths_GetDataDir, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29671 | { (char *)"StandardPaths_GetLocalDataDir", (PyCFunction) _wrap_StandardPaths_GetLocalDataDir, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29672 | { (char *)"StandardPaths_GetUserDataDir", (PyCFunction) _wrap_StandardPaths_GetUserDataDir, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29673 | { (char *)"StandardPaths_GetUserLocalDataDir", (PyCFunction) _wrap_StandardPaths_GetUserLocalDataDir, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29674 | { (char *)"StandardPaths_GetPluginsDir", (PyCFunction) _wrap_StandardPaths_GetPluginsDir, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29675 | { (char *)"StandardPaths_SetInstallPrefix", (PyCFunction) _wrap_StandardPaths_SetInstallPrefix, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29676 | { (char *)"StandardPaths_GetInstallPrefix", (PyCFunction) _wrap_StandardPaths_GetInstallPrefix, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29677 | { (char *)"StandardPaths_swigregister", StandardPaths_swigregister, METH_VARARGS, NULL }, | |
29678 | { NULL, NULL, 0, NULL } | |
29679 | }; | |
29680 | ||
29681 | ||
29682 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
29683 | ||
29684 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
29685 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
29686 | } | |
29687 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
29688 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
29689 | } | |
29690 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
29691 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
29692 | } | |
29693 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
29694 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
29695 | } | |
29696 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
29697 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
29698 | } | |
29699 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
29700 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
29701 | } | |
29702 | static void *_p_wxTimerEventTo_p_wxEvent(void *x) { | |
29703 | return (void *)((wxEvent *) ((wxTimerEvent *) x)); | |
29704 | } | |
29705 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
29706 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
29707 | } | |
29708 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
29709 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
29710 | } | |
29711 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
29712 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
29713 | } | |
29714 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
29715 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
29716 | } | |
29717 | static void *_p_wxJoystickEventTo_p_wxEvent(void *x) { | |
29718 | return (void *)((wxEvent *) ((wxJoystickEvent *) x)); | |
29719 | } | |
29720 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
29721 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
29722 | } | |
29723 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
29724 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
29725 | } | |
29726 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
29727 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
29728 | } | |
29729 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
29730 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
29731 | } | |
29732 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
29733 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
29734 | } | |
29735 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
29736 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
29737 | } | |
29738 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
29739 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
29740 | } | |
29741 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
29742 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
29743 | } | |
29744 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
29745 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
29746 | } | |
29747 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
29748 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
29749 | } | |
29750 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
29751 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
29752 | } | |
29753 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
29754 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
29755 | } | |
29756 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
29757 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
29758 | } | |
29759 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
29760 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
29761 | } | |
29762 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
29763 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
29764 | } | |
29765 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
29766 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
29767 | } | |
29768 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
29769 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
29770 | } | |
29771 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
29772 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
29773 | } | |
29774 | static void *_p_wxProcessEventTo_p_wxEvent(void *x) { | |
29775 | return (void *)((wxEvent *) ((wxProcessEvent *) x)); | |
29776 | } | |
29777 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
29778 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
29779 | } | |
29780 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
29781 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
29782 | } | |
29783 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
29784 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
29785 | } | |
29786 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
29787 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
29788 | } | |
29789 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
29790 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
29791 | } | |
29792 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
29793 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
29794 | } | |
29795 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
29796 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
29797 | } | |
29798 | static void *_p_wxFileConfigTo_p_wxConfigBase(void *x) { | |
29799 | return (void *)((wxConfigBase *) ((wxFileConfig *) x)); | |
29800 | } | |
29801 | static void *_p_wxConfigTo_p_wxConfigBase(void *x) { | |
29802 | return (void *)((wxConfigBase *) ((wxConfig *) x)); | |
29803 | } | |
29804 | static void *_p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject(void *x) { | |
29805 | return (void *)((wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
29806 | } | |
29807 | static void *_p_wxPyTextDataObjectTo_p_wxTextDataObject(void *x) { | |
29808 | return (void *)((wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
29809 | } | |
29810 | static void *_p_wxDataObjectSimpleTo_p_wxDataObject(void *x) { | |
29811 | return (void *)((wxDataObject *) ((wxDataObjectSimple *) x)); | |
29812 | } | |
29813 | static void *_p_wxPyDataObjectSimpleTo_p_wxDataObject(void *x) { | |
29814 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxPyDataObjectSimple *) x)); | |
29815 | } | |
29816 | static void *_p_wxDataObjectCompositeTo_p_wxDataObject(void *x) { | |
29817 | return (void *)((wxDataObject *) ((wxDataObjectComposite *) x)); | |
29818 | } | |
29819 | static void *_p_wxTextDataObjectTo_p_wxDataObject(void *x) { | |
29820 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxTextDataObject *) x)); | |
29821 | } | |
29822 | static void *_p_wxPyTextDataObjectTo_p_wxDataObject(void *x) { | |
29823 | return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
29824 | } | |
29825 | static void *_p_wxBitmapDataObjectTo_p_wxDataObject(void *x) { | |
29826 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxBitmapDataObject *) x)); | |
29827 | } | |
29828 | static void *_p_wxPyBitmapDataObjectTo_p_wxDataObject(void *x) { | |
29829 | return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
29830 | } | |
29831 | static void *_p_wxFileDataObjectTo_p_wxDataObject(void *x) { | |
29832 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxFileDataObject *) x)); | |
29833 | } | |
29834 | static void *_p_wxCustomDataObjectTo_p_wxDataObject(void *x) { | |
29835 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxCustomDataObject *) x)); | |
29836 | } | |
29837 | static void *_p_wxURLDataObjectTo_p_wxDataObject(void *x) { | |
29838 | return (void *)((wxDataObject *) (wxDataObjectComposite *) ((wxURLDataObject *) x)); | |
29839 | } | |
29840 | static void *_p_wxMetafileDataObjectTo_p_wxDataObject(void *x) { | |
29841 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxMetafileDataObject *) x)); | |
29842 | } | |
29843 | static void *_p_wxURLDataObjectTo_p_wxDataObjectComposite(void *x) { | |
29844 | return (void *)((wxDataObjectComposite *) ((wxURLDataObject *) x)); | |
29845 | } | |
29846 | static void *_p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple(void *x) { | |
29847 | return (void *)((wxDataObjectSimple *) ((wxPyDataObjectSimple *) x)); | |
29848 | } | |
29849 | static void *_p_wxTextDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29850 | return (void *)((wxDataObjectSimple *) ((wxTextDataObject *) x)); | |
29851 | } | |
29852 | static void *_p_wxPyTextDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29853 | return (void *)((wxDataObjectSimple *) (wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
29854 | } | |
29855 | static void *_p_wxBitmapDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29856 | return (void *)((wxDataObjectSimple *) ((wxBitmapDataObject *) x)); | |
29857 | } | |
29858 | static void *_p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29859 | return (void *)((wxDataObjectSimple *) (wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
29860 | } | |
29861 | static void *_p_wxFileDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29862 | return (void *)((wxDataObjectSimple *) ((wxFileDataObject *) x)); | |
29863 | } | |
29864 | static void *_p_wxCustomDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29865 | return (void *)((wxDataObjectSimple *) ((wxCustomDataObject *) x)); | |
29866 | } | |
29867 | static void *_p_wxMetafileDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29868 | return (void *)((wxDataObjectSimple *) ((wxMetafileDataObject *) x)); | |
29869 | } | |
29870 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
29871 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
29872 | } | |
29873 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
29874 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
29875 | } | |
29876 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
29877 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
29878 | } | |
29879 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
29880 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
29881 | } | |
29882 | static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) { | |
29883 | return (void *)((wxEvtHandler *) ((wxPyTimer *) x)); | |
29884 | } | |
29885 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
29886 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
29887 | } | |
29888 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
29889 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
29890 | } | |
29891 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
29892 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
29893 | } | |
29894 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
29895 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
29896 | } | |
29897 | static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) { | |
29898 | return (void *)((wxEvtHandler *) ((wxPyProcess *) x)); | |
29899 | } | |
29900 | static void *_p_wxPyTipProviderTo_p_wxTipProvider(void *x) { | |
29901 | return (void *)((wxTipProvider *) ((wxPyTipProvider *) x)); | |
29902 | } | |
29903 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
29904 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
29905 | } | |
29906 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
29907 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
29908 | } | |
29909 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
29910 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
29911 | } | |
29912 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
29913 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
29914 | } | |
29915 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
29916 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
29917 | } | |
29918 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
29919 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
29920 | } | |
29921 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
29922 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
29923 | } | |
29924 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
29925 | return (void *)((wxObject *) ((wxSizer *) x)); | |
29926 | } | |
29927 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
29928 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
29929 | } | |
29930 | static void *_p_wxFileHistoryTo_p_wxObject(void *x) { | |
29931 | return (void *)((wxObject *) ((wxFileHistory *) x)); | |
29932 | } | |
29933 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
29934 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
29935 | } | |
29936 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
29937 | return (void *)((wxObject *) ((wxEvent *) x)); | |
29938 | } | |
29939 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
29940 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
29941 | } | |
29942 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
29943 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
29944 | } | |
29945 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
29946 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
29947 | } | |
29948 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
29949 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
29950 | } | |
29951 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
29952 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
29953 | } | |
29954 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
29955 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
29956 | } | |
29957 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
29958 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
29959 | } | |
29960 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
29961 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
29962 | } | |
29963 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
29964 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
29965 | } | |
29966 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
29967 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
29968 | } | |
29969 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
29970 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
29971 | } | |
29972 | static void *_p_wxTimerEventTo_p_wxObject(void *x) { | |
29973 | return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x)); | |
29974 | } | |
29975 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
29976 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
29977 | } | |
29978 | static void *_p_wxClipboardTo_p_wxObject(void *x) { | |
29979 | return (void *)((wxObject *) ((wxClipboard *) x)); | |
29980 | } | |
29981 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
29982 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
29983 | } | |
29984 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
29985 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
29986 | } | |
29987 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
29988 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
29989 | } | |
29990 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
29991 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
29992 | } | |
29993 | static void *_p_wxToolTipTo_p_wxObject(void *x) { | |
29994 | return (void *)((wxObject *) ((wxToolTip *) x)); | |
29995 | } | |
29996 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
29997 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
29998 | } | |
29999 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
30000 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
30001 | } | |
30002 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
30003 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
30004 | } | |
30005 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
30006 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
30007 | } | |
30008 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
30009 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
30010 | } | |
30011 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
30012 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
30013 | } | |
30014 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
30015 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
30016 | } | |
30017 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
30018 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
30019 | } | |
30020 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
30021 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
30022 | } | |
30023 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
30024 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
30025 | } | |
30026 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
30027 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
30028 | } | |
30029 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
30030 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
30031 | } | |
30032 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
30033 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
30034 | } | |
30035 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
30036 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
30037 | } | |
30038 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
30039 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
30040 | } | |
30041 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
30042 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
30043 | } | |
30044 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
30045 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
30046 | } | |
30047 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
30048 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
30049 | } | |
30050 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
30051 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
30052 | } | |
30053 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
30054 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
30055 | } | |
30056 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
30057 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
30058 | } | |
30059 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
30060 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
30061 | } | |
30062 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
30063 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
30064 | } | |
30065 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
30066 | return (void *)((wxObject *) ((wxImage *) x)); | |
30067 | } | |
30068 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
30069 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
30070 | } | |
30071 | static void *_p_wxSystemOptionsTo_p_wxObject(void *x) { | |
30072 | return (void *)((wxObject *) ((wxSystemOptions *) x)); | |
30073 | } | |
30074 | static void *_p_wxJoystickEventTo_p_wxObject(void *x) { | |
30075 | return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x)); | |
30076 | } | |
30077 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
30078 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
30079 | } | |
30080 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
30081 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
30082 | } | |
30083 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
30084 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
30085 | } | |
30086 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
30087 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
30088 | } | |
30089 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
30090 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
30091 | } | |
30092 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
30093 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
30094 | } | |
30095 | static void *_p_wxPyProcessTo_p_wxObject(void *x) { | |
30096 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x)); | |
30097 | } | |
30098 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
30099 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
30100 | } | |
30101 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
30102 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
30103 | } | |
30104 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
30105 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
30106 | } | |
30107 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
30108 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
30109 | } | |
30110 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
30111 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
30112 | } | |
30113 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
30114 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
30115 | } | |
30116 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
30117 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
30118 | } | |
30119 | static void *_p_wxBusyInfoTo_p_wxObject(void *x) { | |
30120 | return (void *)((wxObject *) ((wxBusyInfo *) x)); | |
30121 | } | |
30122 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
30123 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
30124 | } | |
30125 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
30126 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
30127 | } | |
30128 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
30129 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
30130 | } | |
30131 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
30132 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
30133 | } | |
30134 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
30135 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
30136 | } | |
30137 | static void *_p_wxProcessEventTo_p_wxObject(void *x) { | |
30138 | return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x)); | |
30139 | } | |
30140 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
30141 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
30142 | } | |
30143 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
30144 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
30145 | } | |
30146 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
30147 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
30148 | } | |
30149 | static void *_p_wxPyTimerTo_p_wxObject(void *x) { | |
30150 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x)); | |
30151 | } | |
30152 | static void *_p_wxLogStderrTo_p_wxLog(void *x) { | |
30153 | return (void *)((wxLog *) ((wxLogStderr *) x)); | |
30154 | } | |
30155 | static void *_p_wxLogTextCtrlTo_p_wxLog(void *x) { | |
30156 | return (void *)((wxLog *) ((wxLogTextCtrl *) x)); | |
30157 | } | |
30158 | static void *_p_wxLogWindowTo_p_wxLog(void *x) { | |
30159 | return (void *)((wxLog *) ((wxLogWindow *) x)); | |
30160 | } | |
30161 | static void *_p_wxLogChainTo_p_wxLog(void *x) { | |
30162 | return (void *)((wxLog *) ((wxLogChain *) x)); | |
30163 | } | |
30164 | static void *_p_wxLogGuiTo_p_wxLog(void *x) { | |
30165 | return (void *)((wxLog *) ((wxLogGui *) x)); | |
30166 | } | |
30167 | static void *_p_wxPyLogTo_p_wxLog(void *x) { | |
30168 | return (void *)((wxLog *) ((wxPyLog *) x)); | |
30169 | } | |
30170 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
30171 | return (void *)((wxWindow *) ((wxControl *) x)); | |
30172 | } | |
30173 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
30174 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
30175 | } | |
30176 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
30177 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
30178 | } | |
30179 | static void *_p_wxPyTextDropTargetTo_p_wxPyDropTarget(void *x) { | |
30180 | return (void *)((wxPyDropTarget *) ((wxPyTextDropTarget *) x)); | |
30181 | } | |
30182 | static void *_p_wxPyFileDropTargetTo_p_wxPyDropTarget(void *x) { | |
30183 | return (void *)((wxPyDropTarget *) ((wxPyFileDropTarget *) x)); | |
30184 | } | |
30185 | 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}}; | |
30186 | 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}}; | |
30187 | 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}}; | |
30188 | 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}}; | |
30189 | 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}}; | |
30190 | 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}}; | |
30191 | 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}}; | |
30192 | 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}}; | |
30193 | 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}}; | |
30194 | 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}}; | |
30195 | 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}}; | |
30196 | 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}}; | |
30197 | 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}}; | |
30198 | 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}}; | |
30199 | 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}}; | |
30200 | 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}}; | |
30201 | 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}}; | |
30202 | 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}}; | |
30203 | 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}}; | |
30204 | 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}}; | |
30205 | 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}}; | |
30206 | 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}}; | |
30207 | 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}}; | |
30208 | 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}}; | |
30209 | 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}}; | |
30210 | 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}}; | |
30211 | 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}}; | |
30212 | 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}}; | |
30213 | 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}}; | |
30214 | 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}}; | |
30215 | 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}}; | |
30216 | 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}}; | |
30217 | 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}}; | |
30218 | 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}}; | |
30219 | 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}}; | |
30220 | 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}}; | |
30221 | 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}}; | |
30222 | 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}}; | |
30223 | 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}}; | |
30224 | 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}}; | |
30225 | 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}}; | |
30226 | 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}}; | |
30227 | 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}}; | |
30228 | 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}}; | |
30229 | 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}}; | |
30230 | 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}}; | |
30231 | 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}}; | |
30232 | 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}}; | |
30233 | 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}}; | |
30234 | 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}}; | |
30235 | 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}}; | |
30236 | 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}}; | |
30237 | static swig_type_info _swigt__p_wxStandardPaths[] = {{"_p_wxStandardPaths", 0, "wxStandardPaths *", 0, 0, 0, 0},{"_p_wxStandardPaths", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
30238 | 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}}; | |
30239 | 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}}; | |
30240 | 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}}; | |
30241 | 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}}; | |
30242 | 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}}; | |
30243 | 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}}; | |
30244 | 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}}; | |
30245 | 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}}; | |
30246 | 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}}; | |
30247 | 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}}; | |
30248 | 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}}; | |
30249 | 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}}; | |
30250 | 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}}; | |
30251 | 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}}; | |
30252 | 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}}; | |
30253 | 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}}; | |
30254 | 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}}; | |
30255 | 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}}; | |
30256 | 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}}; | |
30257 | 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}}; | |
30258 | 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}}; | |
30259 | 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}}; | |
30260 | 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}}; | |
30261 | 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}}; | |
30262 | 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}}; | |
30263 | 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}}; | |
30264 | 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}}; | |
30265 | 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}}; | |
30266 | 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}}; | |
30267 | 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}}; | |
30268 | 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}}; | |
30269 | 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}}; | |
30270 | 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}}; | |
30271 | ||
30272 | static swig_type_info *swig_types_initial[] = { | |
30273 | _swigt__p_wxLogChain, | |
30274 | _swigt__p_wxMutexGuiLocker, | |
30275 | _swigt__p_wxFileHistory, | |
30276 | _swigt__p_wxLog, | |
30277 | _swigt__p_wxDateTime__TimeZone, | |
30278 | _swigt__p_wxMenu, | |
30279 | _swigt__p_wxEvent, | |
30280 | _swigt__p_wxConfigBase, | |
30281 | _swigt__p_wxDisplay, | |
30282 | _swigt__p_wxFileType, | |
30283 | _swigt__p_wxLogGui, | |
30284 | _swigt__p_wxFont, | |
30285 | _swigt__p_wxDataFormat, | |
30286 | _swigt__p_wxTimerEvent, | |
30287 | _swigt__p_wxCaret, | |
30288 | _swigt__p_int, | |
30289 | _swigt__p_wxSize, | |
30290 | _swigt__p_wxClipboard, | |
30291 | _swigt__p_wxStopWatch, | |
30292 | _swigt__p_wxDC, | |
30293 | _swigt__p_wxClipboardLocker, | |
30294 | _swigt__p_wxIcon, | |
30295 | _swigt__p_wxLogStderr, | |
30296 | _swigt__p_wxLogTextCtrl, | |
30297 | _swigt__p_wxTextCtrl, | |
30298 | _swigt__p_wxBusyCursor, | |
30299 | _swigt__p_wxPyBitmapDataObject, | |
30300 | _swigt__p_wxPyTextDataObject, | |
30301 | _swigt__p_wxBitmapDataObject, | |
30302 | _swigt__p_wxTextDataObject, | |
30303 | _swigt__p_wxDataObject, | |
30304 | _swigt__p_wxFileDataObject, | |
30305 | _swigt__p_wxCustomDataObject, | |
30306 | _swigt__p_wxURLDataObject, | |
30307 | _swigt__p_wxMetafileDataObject, | |
30308 | _swigt__p_wxSound, | |
30309 | _swigt__p_wxTimerRunner, | |
30310 | _swigt__p_wxLogWindow, | |
30311 | _swigt__p_wxTimeSpan, | |
30312 | _swigt__p_wxArrayString, | |
30313 | _swigt__p_wxWindowDisabler, | |
30314 | _swigt__p_wxToolTip, | |
30315 | _swigt__p_wxDataObjectComposite, | |
30316 | _swigt__p_wxFileConfig, | |
30317 | _swigt__p_wxSystemSettings, | |
30318 | _swigt__p_wxVideoMode, | |
30319 | _swigt__p_wxPyDataObjectSimple, | |
30320 | _swigt__p_wxDataObjectSimple, | |
30321 | _swigt__p_wxEvtHandler, | |
30322 | _swigt__p_wxRect, | |
30323 | _swigt__p_char, | |
30324 | _swigt__p_wxSingleInstanceChecker, | |
30325 | _swigt__p_wxStandardPaths, | |
30326 | _swigt__p_wxFileTypeInfo, | |
30327 | _swigt__p_wxFrame, | |
30328 | _swigt__p_wxTimer, | |
30329 | _swigt__p_wxMimeTypesManager, | |
30330 | _swigt__p_wxPyArtProvider, | |
30331 | _swigt__p_wxPyTipProvider, | |
30332 | _swigt__p_wxTipProvider, | |
30333 | _swigt__p_wxJoystick, | |
30334 | _swigt__p_wxSystemOptions, | |
30335 | _swigt__p_wxPoint, | |
30336 | _swigt__p_wxJoystickEvent, | |
30337 | _swigt__p_wxCursor, | |
30338 | _swigt__p_wxObject, | |
30339 | _swigt__p_wxOutputStream, | |
30340 | _swigt__p_wxDateTime, | |
30341 | _swigt__p_wxPyDropSource, | |
30342 | _swigt__p_wxWindow, | |
30343 | _swigt__p_wxString, | |
30344 | _swigt__p_wxPyProcess, | |
30345 | _swigt__p_wxBitmap, | |
30346 | _swigt__p_wxConfig, | |
30347 | _swigt__p_wxChar, | |
30348 | _swigt__p_wxBusyInfo, | |
30349 | _swigt__p_wxPyDropTarget, | |
30350 | _swigt__p_wxPyTextDropTarget, | |
30351 | _swigt__p_wxPyFileDropTarget, | |
30352 | _swigt__p_wxProcessEvent, | |
30353 | _swigt__p_wxPyLog, | |
30354 | _swigt__p_wxLogNull, | |
30355 | _swigt__p_wxColour, | |
30356 | _swigt__p_wxConfigPathChanger, | |
30357 | _swigt__p_wxPyTimer, | |
30358 | _swigt__p_wxDateSpan, | |
30359 | 0 | |
30360 | }; | |
30361 | ||
30362 | ||
30363 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
30364 | ||
30365 | static swig_const_info swig_const_table[] = { | |
30366 | { SWIG_PY_POINTER, (char*)"TRACE_MemAlloc", 0, 0, (void *)"memalloc", &SWIGTYPE_p_char}, | |
30367 | { SWIG_PY_POINTER, (char*)"TRACE_Messages", 0, 0, (void *)"messages", &SWIGTYPE_p_char}, | |
30368 | { SWIG_PY_POINTER, (char*)"TRACE_ResAlloc", 0, 0, (void *)"resalloc", &SWIGTYPE_p_char}, | |
30369 | { SWIG_PY_POINTER, (char*)"TRACE_RefCount", 0, 0, (void *)"refcount", &SWIGTYPE_p_char}, | |
30370 | { SWIG_PY_POINTER, (char*)"TRACE_OleCalls", 0, 0, (void *)"ole", &SWIGTYPE_p_char}, | |
30371 | {0, 0, 0, 0.0, 0, 0}}; | |
30372 | ||
30373 | #ifdef __cplusplus | |
30374 | } | |
30375 | #endif | |
30376 | ||
30377 | #ifdef __cplusplus | |
30378 | extern "C" | |
30379 | #endif | |
30380 | SWIGEXPORT(void) SWIG_init(void) { | |
30381 | static PyObject *SWIG_globals = 0; | |
30382 | static int typeinit = 0; | |
30383 | PyObject *m, *d; | |
30384 | int i; | |
30385 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
30386 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
30387 | d = PyModule_GetDict(m); | |
30388 | ||
30389 | if (!typeinit) { | |
30390 | for (i = 0; swig_types_initial[i]; i++) { | |
30391 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
30392 | } | |
30393 | typeinit = 1; | |
30394 | } | |
30395 | SWIG_InstallConstants(d,swig_const_table); | |
30396 | ||
30397 | PyDict_SetItemString(d,"SYS_OEM_FIXED_FONT", SWIG_From_int((int)wxSYS_OEM_FIXED_FONT)); | |
30398 | PyDict_SetItemString(d,"SYS_ANSI_FIXED_FONT", SWIG_From_int((int)wxSYS_ANSI_FIXED_FONT)); | |
30399 | PyDict_SetItemString(d,"SYS_ANSI_VAR_FONT", SWIG_From_int((int)wxSYS_ANSI_VAR_FONT)); | |
30400 | PyDict_SetItemString(d,"SYS_SYSTEM_FONT", SWIG_From_int((int)wxSYS_SYSTEM_FONT)); | |
30401 | PyDict_SetItemString(d,"SYS_DEVICE_DEFAULT_FONT", SWIG_From_int((int)wxSYS_DEVICE_DEFAULT_FONT)); | |
30402 | PyDict_SetItemString(d,"SYS_DEFAULT_PALETTE", SWIG_From_int((int)wxSYS_DEFAULT_PALETTE)); | |
30403 | PyDict_SetItemString(d,"SYS_SYSTEM_FIXED_FONT", SWIG_From_int((int)wxSYS_SYSTEM_FIXED_FONT)); | |
30404 | PyDict_SetItemString(d,"SYS_DEFAULT_GUI_FONT", SWIG_From_int((int)wxSYS_DEFAULT_GUI_FONT)); | |
30405 | PyDict_SetItemString(d,"SYS_ICONTITLE_FONT", SWIG_From_int((int)wxSYS_ICONTITLE_FONT)); | |
30406 | PyDict_SetItemString(d,"SYS_COLOUR_SCROLLBAR", SWIG_From_int((int)wxSYS_COLOUR_SCROLLBAR)); | |
30407 | PyDict_SetItemString(d,"SYS_COLOUR_BACKGROUND", SWIG_From_int((int)wxSYS_COLOUR_BACKGROUND)); | |
30408 | PyDict_SetItemString(d,"SYS_COLOUR_DESKTOP", SWIG_From_int((int)wxSYS_COLOUR_DESKTOP)); | |
30409 | PyDict_SetItemString(d,"SYS_COLOUR_ACTIVECAPTION", SWIG_From_int((int)wxSYS_COLOUR_ACTIVECAPTION)); | |
30410 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTION", SWIG_From_int((int)wxSYS_COLOUR_INACTIVECAPTION)); | |
30411 | PyDict_SetItemString(d,"SYS_COLOUR_MENU", SWIG_From_int((int)wxSYS_COLOUR_MENU)); | |
30412 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOW", SWIG_From_int((int)wxSYS_COLOUR_WINDOW)); | |
30413 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOWFRAME", SWIG_From_int((int)wxSYS_COLOUR_WINDOWFRAME)); | |
30414 | PyDict_SetItemString(d,"SYS_COLOUR_MENUTEXT", SWIG_From_int((int)wxSYS_COLOUR_MENUTEXT)); | |
30415 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOWTEXT", SWIG_From_int((int)wxSYS_COLOUR_WINDOWTEXT)); | |
30416 | PyDict_SetItemString(d,"SYS_COLOUR_CAPTIONTEXT", SWIG_From_int((int)wxSYS_COLOUR_CAPTIONTEXT)); | |
30417 | PyDict_SetItemString(d,"SYS_COLOUR_ACTIVEBORDER", SWIG_From_int((int)wxSYS_COLOUR_ACTIVEBORDER)); | |
30418 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVEBORDER", SWIG_From_int((int)wxSYS_COLOUR_INACTIVEBORDER)); | |
30419 | PyDict_SetItemString(d,"SYS_COLOUR_APPWORKSPACE", SWIG_From_int((int)wxSYS_COLOUR_APPWORKSPACE)); | |
30420 | PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHT", SWIG_From_int((int)wxSYS_COLOUR_HIGHLIGHT)); | |
30421 | PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHTTEXT", SWIG_From_int((int)wxSYS_COLOUR_HIGHLIGHTTEXT)); | |
30422 | PyDict_SetItemString(d,"SYS_COLOUR_BTNFACE", SWIG_From_int((int)wxSYS_COLOUR_BTNFACE)); | |
30423 | PyDict_SetItemString(d,"SYS_COLOUR_3DFACE", SWIG_From_int((int)wxSYS_COLOUR_3DFACE)); | |
30424 | PyDict_SetItemString(d,"SYS_COLOUR_BTNSHADOW", SWIG_From_int((int)wxSYS_COLOUR_BTNSHADOW)); | |
30425 | PyDict_SetItemString(d,"SYS_COLOUR_3DSHADOW", SWIG_From_int((int)wxSYS_COLOUR_3DSHADOW)); | |
30426 | PyDict_SetItemString(d,"SYS_COLOUR_GRAYTEXT", SWIG_From_int((int)wxSYS_COLOUR_GRAYTEXT)); | |
30427 | PyDict_SetItemString(d,"SYS_COLOUR_BTNTEXT", SWIG_From_int((int)wxSYS_COLOUR_BTNTEXT)); | |
30428 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTIONTEXT", SWIG_From_int((int)wxSYS_COLOUR_INACTIVECAPTIONTEXT)); | |
30429 | PyDict_SetItemString(d,"SYS_COLOUR_BTNHIGHLIGHT", SWIG_From_int((int)wxSYS_COLOUR_BTNHIGHLIGHT)); | |
30430 | PyDict_SetItemString(d,"SYS_COLOUR_BTNHILIGHT", SWIG_From_int((int)wxSYS_COLOUR_BTNHILIGHT)); | |
30431 | PyDict_SetItemString(d,"SYS_COLOUR_3DHIGHLIGHT", SWIG_From_int((int)wxSYS_COLOUR_3DHIGHLIGHT)); | |
30432 | PyDict_SetItemString(d,"SYS_COLOUR_3DHILIGHT", SWIG_From_int((int)wxSYS_COLOUR_3DHILIGHT)); | |
30433 | PyDict_SetItemString(d,"SYS_COLOUR_3DDKSHADOW", SWIG_From_int((int)wxSYS_COLOUR_3DDKSHADOW)); | |
30434 | PyDict_SetItemString(d,"SYS_COLOUR_3DLIGHT", SWIG_From_int((int)wxSYS_COLOUR_3DLIGHT)); | |
30435 | PyDict_SetItemString(d,"SYS_COLOUR_INFOTEXT", SWIG_From_int((int)wxSYS_COLOUR_INFOTEXT)); | |
30436 | PyDict_SetItemString(d,"SYS_COLOUR_INFOBK", SWIG_From_int((int)wxSYS_COLOUR_INFOBK)); | |
30437 | PyDict_SetItemString(d,"SYS_COLOUR_LISTBOX", SWIG_From_int((int)wxSYS_COLOUR_LISTBOX)); | |
30438 | PyDict_SetItemString(d,"SYS_COLOUR_HOTLIGHT", SWIG_From_int((int)wxSYS_COLOUR_HOTLIGHT)); | |
30439 | PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTACTIVECAPTION", SWIG_From_int((int)wxSYS_COLOUR_GRADIENTACTIVECAPTION)); | |
30440 | PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTINACTIVECAPTION", SWIG_From_int((int)wxSYS_COLOUR_GRADIENTINACTIVECAPTION)); | |
30441 | PyDict_SetItemString(d,"SYS_COLOUR_MENUHILIGHT", SWIG_From_int((int)wxSYS_COLOUR_MENUHILIGHT)); | |
30442 | PyDict_SetItemString(d,"SYS_COLOUR_MENUBAR", SWIG_From_int((int)wxSYS_COLOUR_MENUBAR)); | |
30443 | PyDict_SetItemString(d,"SYS_COLOUR_MAX", SWIG_From_int((int)wxSYS_COLOUR_MAX)); | |
30444 | PyDict_SetItemString(d,"SYS_MOUSE_BUTTONS", SWIG_From_int((int)wxSYS_MOUSE_BUTTONS)); | |
30445 | PyDict_SetItemString(d,"SYS_BORDER_X", SWIG_From_int((int)wxSYS_BORDER_X)); | |
30446 | PyDict_SetItemString(d,"SYS_BORDER_Y", SWIG_From_int((int)wxSYS_BORDER_Y)); | |
30447 | PyDict_SetItemString(d,"SYS_CURSOR_X", SWIG_From_int((int)wxSYS_CURSOR_X)); | |
30448 | PyDict_SetItemString(d,"SYS_CURSOR_Y", SWIG_From_int((int)wxSYS_CURSOR_Y)); | |
30449 | PyDict_SetItemString(d,"SYS_DCLICK_X", SWIG_From_int((int)wxSYS_DCLICK_X)); | |
30450 | PyDict_SetItemString(d,"SYS_DCLICK_Y", SWIG_From_int((int)wxSYS_DCLICK_Y)); | |
30451 | PyDict_SetItemString(d,"SYS_DRAG_X", SWIG_From_int((int)wxSYS_DRAG_X)); | |
30452 | PyDict_SetItemString(d,"SYS_DRAG_Y", SWIG_From_int((int)wxSYS_DRAG_Y)); | |
30453 | PyDict_SetItemString(d,"SYS_EDGE_X", SWIG_From_int((int)wxSYS_EDGE_X)); | |
30454 | PyDict_SetItemString(d,"SYS_EDGE_Y", SWIG_From_int((int)wxSYS_EDGE_Y)); | |
30455 | PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_X", SWIG_From_int((int)wxSYS_HSCROLL_ARROW_X)); | |
30456 | PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_Y", SWIG_From_int((int)wxSYS_HSCROLL_ARROW_Y)); | |
30457 | PyDict_SetItemString(d,"SYS_HTHUMB_X", SWIG_From_int((int)wxSYS_HTHUMB_X)); | |
30458 | PyDict_SetItemString(d,"SYS_ICON_X", SWIG_From_int((int)wxSYS_ICON_X)); | |
30459 | PyDict_SetItemString(d,"SYS_ICON_Y", SWIG_From_int((int)wxSYS_ICON_Y)); | |
30460 | PyDict_SetItemString(d,"SYS_ICONSPACING_X", SWIG_From_int((int)wxSYS_ICONSPACING_X)); | |
30461 | PyDict_SetItemString(d,"SYS_ICONSPACING_Y", SWIG_From_int((int)wxSYS_ICONSPACING_Y)); | |
30462 | PyDict_SetItemString(d,"SYS_WINDOWMIN_X", SWIG_From_int((int)wxSYS_WINDOWMIN_X)); | |
30463 | PyDict_SetItemString(d,"SYS_WINDOWMIN_Y", SWIG_From_int((int)wxSYS_WINDOWMIN_Y)); | |
30464 | PyDict_SetItemString(d,"SYS_SCREEN_X", SWIG_From_int((int)wxSYS_SCREEN_X)); | |
30465 | PyDict_SetItemString(d,"SYS_SCREEN_Y", SWIG_From_int((int)wxSYS_SCREEN_Y)); | |
30466 | PyDict_SetItemString(d,"SYS_FRAMESIZE_X", SWIG_From_int((int)wxSYS_FRAMESIZE_X)); | |
30467 | PyDict_SetItemString(d,"SYS_FRAMESIZE_Y", SWIG_From_int((int)wxSYS_FRAMESIZE_Y)); | |
30468 | PyDict_SetItemString(d,"SYS_SMALLICON_X", SWIG_From_int((int)wxSYS_SMALLICON_X)); | |
30469 | PyDict_SetItemString(d,"SYS_SMALLICON_Y", SWIG_From_int((int)wxSYS_SMALLICON_Y)); | |
30470 | PyDict_SetItemString(d,"SYS_HSCROLL_Y", SWIG_From_int((int)wxSYS_HSCROLL_Y)); | |
30471 | PyDict_SetItemString(d,"SYS_VSCROLL_X", SWIG_From_int((int)wxSYS_VSCROLL_X)); | |
30472 | PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_X", SWIG_From_int((int)wxSYS_VSCROLL_ARROW_X)); | |
30473 | PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_Y", SWIG_From_int((int)wxSYS_VSCROLL_ARROW_Y)); | |
30474 | PyDict_SetItemString(d,"SYS_VTHUMB_Y", SWIG_From_int((int)wxSYS_VTHUMB_Y)); | |
30475 | PyDict_SetItemString(d,"SYS_CAPTION_Y", SWIG_From_int((int)wxSYS_CAPTION_Y)); | |
30476 | PyDict_SetItemString(d,"SYS_MENU_Y", SWIG_From_int((int)wxSYS_MENU_Y)); | |
30477 | PyDict_SetItemString(d,"SYS_NETWORK_PRESENT", SWIG_From_int((int)wxSYS_NETWORK_PRESENT)); | |
30478 | PyDict_SetItemString(d,"SYS_PENWINDOWS_PRESENT", SWIG_From_int((int)wxSYS_PENWINDOWS_PRESENT)); | |
30479 | PyDict_SetItemString(d,"SYS_SHOW_SOUNDS", SWIG_From_int((int)wxSYS_SHOW_SOUNDS)); | |
30480 | PyDict_SetItemString(d,"SYS_SWAP_BUTTONS", SWIG_From_int((int)wxSYS_SWAP_BUTTONS)); | |
30481 | PyDict_SetItemString(d,"SYS_CAN_DRAW_FRAME_DECORATIONS", SWIG_From_int((int)wxSYS_CAN_DRAW_FRAME_DECORATIONS)); | |
30482 | PyDict_SetItemString(d,"SYS_CAN_ICONIZE_FRAME", SWIG_From_int((int)wxSYS_CAN_ICONIZE_FRAME)); | |
30483 | PyDict_SetItemString(d,"SYS_SCREEN_NONE", SWIG_From_int((int)wxSYS_SCREEN_NONE)); | |
30484 | PyDict_SetItemString(d,"SYS_SCREEN_TINY", SWIG_From_int((int)wxSYS_SCREEN_TINY)); | |
30485 | PyDict_SetItemString(d,"SYS_SCREEN_PDA", SWIG_From_int((int)wxSYS_SCREEN_PDA)); | |
30486 | PyDict_SetItemString(d,"SYS_SCREEN_SMALL", SWIG_From_int((int)wxSYS_SCREEN_SMALL)); | |
30487 | PyDict_SetItemString(d,"SYS_SCREEN_DESKTOP", SWIG_From_int((int)wxSYS_SCREEN_DESKTOP)); | |
30488 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); | |
30489 | SWIG_addvarlink(SWIG_globals,(char*)"WINDOW_DEFAULT_VARIANT",_wrap_WINDOW_DEFAULT_VARIANT_get, _wrap_WINDOW_DEFAULT_VARIANT_set); | |
30490 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set); | |
30491 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set); | |
30492 | SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set); | |
30493 | PyDict_SetItemString(d,"SHUTDOWN_POWEROFF", SWIG_From_int((int)wxSHUTDOWN_POWEROFF)); | |
30494 | PyDict_SetItemString(d,"SHUTDOWN_REBOOT", SWIG_From_int((int)wxSHUTDOWN_REBOOT)); | |
30495 | PyDict_SetItemString(d,"TIMER_CONTINUOUS", SWIG_From_int((int)wxTIMER_CONTINUOUS)); | |
30496 | PyDict_SetItemString(d,"TIMER_ONE_SHOT", SWIG_From_int((int)wxTIMER_ONE_SHOT)); | |
30497 | PyDict_SetItemString(d, "wxEVT_TIMER", PyInt_FromLong(wxEVT_TIMER)); | |
30498 | ||
30499 | wxPyPtrTypeMap_Add("wxTimer", "wxPyTimer"); | |
30500 | ||
30501 | PyDict_SetItemString(d,"LOG_FatalError", SWIG_From_int((int)wxLOG_FatalError)); | |
30502 | PyDict_SetItemString(d,"LOG_Error", SWIG_From_int((int)wxLOG_Error)); | |
30503 | PyDict_SetItemString(d,"LOG_Warning", SWIG_From_int((int)wxLOG_Warning)); | |
30504 | PyDict_SetItemString(d,"LOG_Message", SWIG_From_int((int)wxLOG_Message)); | |
30505 | PyDict_SetItemString(d,"LOG_Status", SWIG_From_int((int)wxLOG_Status)); | |
30506 | PyDict_SetItemString(d,"LOG_Info", SWIG_From_int((int)wxLOG_Info)); | |
30507 | PyDict_SetItemString(d,"LOG_Debug", SWIG_From_int((int)wxLOG_Debug)); | |
30508 | PyDict_SetItemString(d,"LOG_Trace", SWIG_From_int((int)wxLOG_Trace)); | |
30509 | PyDict_SetItemString(d,"LOG_Progress", SWIG_From_int((int)wxLOG_Progress)); | |
30510 | PyDict_SetItemString(d,"LOG_User", SWIG_From_int((int)wxLOG_User)); | |
30511 | PyDict_SetItemString(d,"LOG_Max", SWIG_From_int((int)wxLOG_Max)); | |
30512 | PyDict_SetItemString(d,"TRACE_MemAlloc", SWIG_FromCharPtr("memalloc")); | |
30513 | PyDict_SetItemString(d,"TRACE_Messages", SWIG_FromCharPtr("messages")); | |
30514 | PyDict_SetItemString(d,"TRACE_ResAlloc", SWIG_FromCharPtr("resalloc")); | |
30515 | PyDict_SetItemString(d,"TRACE_RefCount", SWIG_FromCharPtr("refcount")); | |
30516 | PyDict_SetItemString(d,"TRACE_OleCalls", SWIG_FromCharPtr("ole")); | |
30517 | PyDict_SetItemString(d,"TraceMemAlloc", SWIG_From_int((int)0x0001)); | |
30518 | PyDict_SetItemString(d,"TraceMessages", SWIG_From_int((int)0x0002)); | |
30519 | PyDict_SetItemString(d,"TraceResAlloc", SWIG_From_int((int)0x0004)); | |
30520 | PyDict_SetItemString(d,"TraceRefCount", SWIG_From_int((int)0x0008)); | |
30521 | PyDict_SetItemString(d,"TraceOleCalls", SWIG_From_int((int)0x0100)); | |
30522 | PyDict_SetItemString(d,"PROCESS_DEFAULT", SWIG_From_int((int)wxPROCESS_DEFAULT)); | |
30523 | PyDict_SetItemString(d,"PROCESS_REDIRECT", SWIG_From_int((int)wxPROCESS_REDIRECT)); | |
30524 | PyDict_SetItemString(d,"KILL_OK", SWIG_From_int((int)wxKILL_OK)); | |
30525 | PyDict_SetItemString(d,"KILL_BAD_SIGNAL", SWIG_From_int((int)wxKILL_BAD_SIGNAL)); | |
30526 | PyDict_SetItemString(d,"KILL_ACCESS_DENIED", SWIG_From_int((int)wxKILL_ACCESS_DENIED)); | |
30527 | PyDict_SetItemString(d,"KILL_NO_PROCESS", SWIG_From_int((int)wxKILL_NO_PROCESS)); | |
30528 | PyDict_SetItemString(d,"KILL_ERROR", SWIG_From_int((int)wxKILL_ERROR)); | |
30529 | PyDict_SetItemString(d,"SIGNONE", SWIG_From_int((int)wxSIGNONE)); | |
30530 | PyDict_SetItemString(d,"SIGHUP", SWIG_From_int((int)wxSIGHUP)); | |
30531 | PyDict_SetItemString(d,"SIGINT", SWIG_From_int((int)wxSIGINT)); | |
30532 | PyDict_SetItemString(d,"SIGQUIT", SWIG_From_int((int)wxSIGQUIT)); | |
30533 | PyDict_SetItemString(d,"SIGILL", SWIG_From_int((int)wxSIGILL)); | |
30534 | PyDict_SetItemString(d,"SIGTRAP", SWIG_From_int((int)wxSIGTRAP)); | |
30535 | PyDict_SetItemString(d,"SIGABRT", SWIG_From_int((int)wxSIGABRT)); | |
30536 | PyDict_SetItemString(d,"SIGIOT", SWIG_From_int((int)wxSIGIOT)); | |
30537 | PyDict_SetItemString(d,"SIGEMT", SWIG_From_int((int)wxSIGEMT)); | |
30538 | PyDict_SetItemString(d,"SIGFPE", SWIG_From_int((int)wxSIGFPE)); | |
30539 | PyDict_SetItemString(d,"SIGKILL", SWIG_From_int((int)wxSIGKILL)); | |
30540 | PyDict_SetItemString(d,"SIGBUS", SWIG_From_int((int)wxSIGBUS)); | |
30541 | PyDict_SetItemString(d,"SIGSEGV", SWIG_From_int((int)wxSIGSEGV)); | |
30542 | PyDict_SetItemString(d,"SIGSYS", SWIG_From_int((int)wxSIGSYS)); | |
30543 | PyDict_SetItemString(d,"SIGPIPE", SWIG_From_int((int)wxSIGPIPE)); | |
30544 | PyDict_SetItemString(d,"SIGALRM", SWIG_From_int((int)wxSIGALRM)); | |
30545 | PyDict_SetItemString(d,"SIGTERM", SWIG_From_int((int)wxSIGTERM)); | |
30546 | PyDict_SetItemString(d, "wxEVT_END_PROCESS", PyInt_FromLong(wxEVT_END_PROCESS)); | |
30547 | PyDict_SetItemString(d,"EXEC_ASYNC", SWIG_From_int((int)wxEXEC_ASYNC)); | |
30548 | PyDict_SetItemString(d,"EXEC_SYNC", SWIG_From_int((int)wxEXEC_SYNC)); | |
30549 | PyDict_SetItemString(d,"EXEC_NOHIDE", SWIG_From_int((int)wxEXEC_NOHIDE)); | |
30550 | PyDict_SetItemString(d,"EXEC_MAKE_GROUP_LEADER", SWIG_From_int((int)wxEXEC_MAKE_GROUP_LEADER)); | |
30551 | ||
30552 | wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess"); | |
30553 | ||
30554 | PyDict_SetItemString(d,"JOYSTICK1", SWIG_From_int((int)wxJOYSTICK1)); | |
30555 | PyDict_SetItemString(d,"JOYSTICK2", SWIG_From_int((int)wxJOYSTICK2)); | |
30556 | PyDict_SetItemString(d,"JOY_BUTTON_ANY", SWIG_From_int((int)wxJOY_BUTTON_ANY)); | |
30557 | PyDict_SetItemString(d,"JOY_BUTTON1", SWIG_From_int((int)wxJOY_BUTTON1)); | |
30558 | PyDict_SetItemString(d,"JOY_BUTTON2", SWIG_From_int((int)wxJOY_BUTTON2)); | |
30559 | PyDict_SetItemString(d,"JOY_BUTTON3", SWIG_From_int((int)wxJOY_BUTTON3)); | |
30560 | PyDict_SetItemString(d,"JOY_BUTTON4", SWIG_From_int((int)wxJOY_BUTTON4)); | |
30561 | PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong(wxEVT_JOY_BUTTON_DOWN)); | |
30562 | PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_UP", PyInt_FromLong(wxEVT_JOY_BUTTON_UP)); | |
30563 | PyDict_SetItemString(d, "wxEVT_JOY_MOVE", PyInt_FromLong(wxEVT_JOY_MOVE)); | |
30564 | PyDict_SetItemString(d, "wxEVT_JOY_ZMOVE", PyInt_FromLong(wxEVT_JOY_ZMOVE)); | |
30565 | PyDict_SetItemString(d,"SOUND_SYNC", SWIG_From_int((int)wxSOUND_SYNC)); | |
30566 | PyDict_SetItemString(d,"SOUND_ASYNC", SWIG_From_int((int)wxSOUND_ASYNC)); | |
30567 | PyDict_SetItemString(d,"SOUND_LOOP", SWIG_From_int((int)wxSOUND_LOOP)); | |
30568 | PyDict_SetItemString(d,"MAILCAP_STANDARD", SWIG_From_int((int)wxMAILCAP_STANDARD)); | |
30569 | PyDict_SetItemString(d,"MAILCAP_NETSCAPE", SWIG_From_int((int)wxMAILCAP_NETSCAPE)); | |
30570 | PyDict_SetItemString(d,"MAILCAP_KDE", SWIG_From_int((int)wxMAILCAP_KDE)); | |
30571 | PyDict_SetItemString(d,"MAILCAP_GNOME", SWIG_From_int((int)wxMAILCAP_GNOME)); | |
30572 | PyDict_SetItemString(d,"MAILCAP_ALL", SWIG_From_int((int)wxMAILCAP_ALL)); | |
30573 | SWIG_addvarlink(SWIG_globals,(char*)"TheMimeTypesManager",_wrap_TheMimeTypesManager_get, _wrap_TheMimeTypesManager_set); | |
30574 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TOOLBAR",_wrap_ART_TOOLBAR_get, _wrap_ART_TOOLBAR_set); | |
30575 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MENU",_wrap_ART_MENU_get, _wrap_ART_MENU_set); | |
30576 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FRAME_ICON",_wrap_ART_FRAME_ICON_get, _wrap_ART_FRAME_ICON_set); | |
30577 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CMN_DIALOG",_wrap_ART_CMN_DIALOG_get, _wrap_ART_CMN_DIALOG_set); | |
30578 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BROWSER",_wrap_ART_HELP_BROWSER_get, _wrap_ART_HELP_BROWSER_set); | |
30579 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MESSAGE_BOX",_wrap_ART_MESSAGE_BOX_get, _wrap_ART_MESSAGE_BOX_set); | |
30580 | SWIG_addvarlink(SWIG_globals,(char*)"ART_BUTTON",_wrap_ART_BUTTON_get, _wrap_ART_BUTTON_set); | |
30581 | SWIG_addvarlink(SWIG_globals,(char*)"ART_OTHER",_wrap_ART_OTHER_get, _wrap_ART_OTHER_set); | |
30582 | SWIG_addvarlink(SWIG_globals,(char*)"ART_ADD_BOOKMARK",_wrap_ART_ADD_BOOKMARK_get, _wrap_ART_ADD_BOOKMARK_set); | |
30583 | SWIG_addvarlink(SWIG_globals,(char*)"ART_DEL_BOOKMARK",_wrap_ART_DEL_BOOKMARK_get, _wrap_ART_DEL_BOOKMARK_set); | |
30584 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SIDE_PANEL",_wrap_ART_HELP_SIDE_PANEL_get, _wrap_ART_HELP_SIDE_PANEL_set); | |
30585 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SETTINGS",_wrap_ART_HELP_SETTINGS_get, _wrap_ART_HELP_SETTINGS_set); | |
30586 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BOOK",_wrap_ART_HELP_BOOK_get, _wrap_ART_HELP_BOOK_set); | |
30587 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_FOLDER",_wrap_ART_HELP_FOLDER_get, _wrap_ART_HELP_FOLDER_set); | |
30588 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_PAGE",_wrap_ART_HELP_PAGE_get, _wrap_ART_HELP_PAGE_set); | |
30589 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_BACK",_wrap_ART_GO_BACK_get, _wrap_ART_GO_BACK_set); | |
30590 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_FORWARD",_wrap_ART_GO_FORWARD_get, _wrap_ART_GO_FORWARD_set); | |
30591 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_UP",_wrap_ART_GO_UP_get, _wrap_ART_GO_UP_set); | |
30592 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DOWN",_wrap_ART_GO_DOWN_get, _wrap_ART_GO_DOWN_set); | |
30593 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_TO_PARENT",_wrap_ART_GO_TO_PARENT_get, _wrap_ART_GO_TO_PARENT_set); | |
30594 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_HOME",_wrap_ART_GO_HOME_get, _wrap_ART_GO_HOME_set); | |
30595 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_OPEN",_wrap_ART_FILE_OPEN_get, _wrap_ART_FILE_OPEN_set); | |
30596 | SWIG_addvarlink(SWIG_globals,(char*)"ART_PRINT",_wrap_ART_PRINT_get, _wrap_ART_PRINT_set); | |
30597 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP",_wrap_ART_HELP_get, _wrap_ART_HELP_set); | |
30598 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TIP",_wrap_ART_TIP_get, _wrap_ART_TIP_set); | |
30599 | SWIG_addvarlink(SWIG_globals,(char*)"ART_REPORT_VIEW",_wrap_ART_REPORT_VIEW_get, _wrap_ART_REPORT_VIEW_set); | |
30600 | SWIG_addvarlink(SWIG_globals,(char*)"ART_LIST_VIEW",_wrap_ART_LIST_VIEW_get, _wrap_ART_LIST_VIEW_set); | |
30601 | SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW_DIR",_wrap_ART_NEW_DIR_get, _wrap_ART_NEW_DIR_set); | |
30602 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER",_wrap_ART_FOLDER_get, _wrap_ART_FOLDER_set); | |
30603 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DIR_UP",_wrap_ART_GO_DIR_UP_get, _wrap_ART_GO_DIR_UP_set); | |
30604 | SWIG_addvarlink(SWIG_globals,(char*)"ART_EXECUTABLE_FILE",_wrap_ART_EXECUTABLE_FILE_get, _wrap_ART_EXECUTABLE_FILE_set); | |
30605 | SWIG_addvarlink(SWIG_globals,(char*)"ART_NORMAL_FILE",_wrap_ART_NORMAL_FILE_get, _wrap_ART_NORMAL_FILE_set); | |
30606 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TICK_MARK",_wrap_ART_TICK_MARK_get, _wrap_ART_TICK_MARK_set); | |
30607 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CROSS_MARK",_wrap_ART_CROSS_MARK_get, _wrap_ART_CROSS_MARK_set); | |
30608 | SWIG_addvarlink(SWIG_globals,(char*)"ART_ERROR",_wrap_ART_ERROR_get, _wrap_ART_ERROR_set); | |
30609 | SWIG_addvarlink(SWIG_globals,(char*)"ART_QUESTION",_wrap_ART_QUESTION_get, _wrap_ART_QUESTION_set); | |
30610 | SWIG_addvarlink(SWIG_globals,(char*)"ART_WARNING",_wrap_ART_WARNING_get, _wrap_ART_WARNING_set); | |
30611 | SWIG_addvarlink(SWIG_globals,(char*)"ART_INFORMATION",_wrap_ART_INFORMATION_get, _wrap_ART_INFORMATION_set); | |
30612 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MISSING_IMAGE",_wrap_ART_MISSING_IMAGE_get, _wrap_ART_MISSING_IMAGE_set); | |
30613 | ||
30614 | wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider"); | |
30615 | ||
30616 | PyDict_SetItemString(d,"CONFIG_USE_LOCAL_FILE", SWIG_From_int((int)wxCONFIG_USE_LOCAL_FILE)); | |
30617 | PyDict_SetItemString(d,"CONFIG_USE_GLOBAL_FILE", SWIG_From_int((int)wxCONFIG_USE_GLOBAL_FILE)); | |
30618 | PyDict_SetItemString(d,"CONFIG_USE_RELATIVE_PATH", SWIG_From_int((int)wxCONFIG_USE_RELATIVE_PATH)); | |
30619 | PyDict_SetItemString(d,"CONFIG_USE_NO_ESCAPE_CHARACTERS", SWIG_From_int((int)wxCONFIG_USE_NO_ESCAPE_CHARACTERS)); | |
30620 | PyDict_SetItemString(d,"ConfigBase_Type_Unknown", SWIG_From_int((int)wxConfigBase::Type_Unknown)); | |
30621 | PyDict_SetItemString(d,"ConfigBase_Type_String", SWIG_From_int((int)wxConfigBase::Type_String)); | |
30622 | PyDict_SetItemString(d,"ConfigBase_Type_Boolean", SWIG_From_int((int)wxConfigBase::Type_Boolean)); | |
30623 | PyDict_SetItemString(d,"ConfigBase_Type_Integer", SWIG_From_int((int)wxConfigBase::Type_Integer)); | |
30624 | PyDict_SetItemString(d,"ConfigBase_Type_Float", SWIG_From_int((int)wxConfigBase::Type_Float)); | |
30625 | SWIG_addvarlink(SWIG_globals,(char*)"DateFormatStr",_wrap_DateFormatStr_get, _wrap_DateFormatStr_set); | |
30626 | SWIG_addvarlink(SWIG_globals,(char*)"TimeSpanFormatStr",_wrap_TimeSpanFormatStr_get, _wrap_TimeSpanFormatStr_set); | |
30627 | PyDict_SetItemString(d,"DateTime_Local", SWIG_From_int((int)wxDateTime::Local)); | |
30628 | PyDict_SetItemString(d,"DateTime_GMT_12", SWIG_From_int((int)wxDateTime::GMT_12)); | |
30629 | PyDict_SetItemString(d,"DateTime_GMT_11", SWIG_From_int((int)wxDateTime::GMT_11)); | |
30630 | PyDict_SetItemString(d,"DateTime_GMT_10", SWIG_From_int((int)wxDateTime::GMT_10)); | |
30631 | PyDict_SetItemString(d,"DateTime_GMT_9", SWIG_From_int((int)wxDateTime::GMT_9)); | |
30632 | PyDict_SetItemString(d,"DateTime_GMT_8", SWIG_From_int((int)wxDateTime::GMT_8)); | |
30633 | PyDict_SetItemString(d,"DateTime_GMT_7", SWIG_From_int((int)wxDateTime::GMT_7)); | |
30634 | PyDict_SetItemString(d,"DateTime_GMT_6", SWIG_From_int((int)wxDateTime::GMT_6)); | |
30635 | PyDict_SetItemString(d,"DateTime_GMT_5", SWIG_From_int((int)wxDateTime::GMT_5)); | |
30636 | PyDict_SetItemString(d,"DateTime_GMT_4", SWIG_From_int((int)wxDateTime::GMT_4)); | |
30637 | PyDict_SetItemString(d,"DateTime_GMT_3", SWIG_From_int((int)wxDateTime::GMT_3)); | |
30638 | PyDict_SetItemString(d,"DateTime_GMT_2", SWIG_From_int((int)wxDateTime::GMT_2)); | |
30639 | PyDict_SetItemString(d,"DateTime_GMT_1", SWIG_From_int((int)wxDateTime::GMT_1)); | |
30640 | PyDict_SetItemString(d,"DateTime_GMT0", SWIG_From_int((int)wxDateTime::GMT0)); | |
30641 | PyDict_SetItemString(d,"DateTime_GMT1", SWIG_From_int((int)wxDateTime::GMT1)); | |
30642 | PyDict_SetItemString(d,"DateTime_GMT2", SWIG_From_int((int)wxDateTime::GMT2)); | |
30643 | PyDict_SetItemString(d,"DateTime_GMT3", SWIG_From_int((int)wxDateTime::GMT3)); | |
30644 | PyDict_SetItemString(d,"DateTime_GMT4", SWIG_From_int((int)wxDateTime::GMT4)); | |
30645 | PyDict_SetItemString(d,"DateTime_GMT5", SWIG_From_int((int)wxDateTime::GMT5)); | |
30646 | PyDict_SetItemString(d,"DateTime_GMT6", SWIG_From_int((int)wxDateTime::GMT6)); | |
30647 | PyDict_SetItemString(d,"DateTime_GMT7", SWIG_From_int((int)wxDateTime::GMT7)); | |
30648 | PyDict_SetItemString(d,"DateTime_GMT8", SWIG_From_int((int)wxDateTime::GMT8)); | |
30649 | PyDict_SetItemString(d,"DateTime_GMT9", SWIG_From_int((int)wxDateTime::GMT9)); | |
30650 | PyDict_SetItemString(d,"DateTime_GMT10", SWIG_From_int((int)wxDateTime::GMT10)); | |
30651 | PyDict_SetItemString(d,"DateTime_GMT11", SWIG_From_int((int)wxDateTime::GMT11)); | |
30652 | PyDict_SetItemString(d,"DateTime_GMT12", SWIG_From_int((int)wxDateTime::GMT12)); | |
30653 | PyDict_SetItemString(d,"DateTime_WET", SWIG_From_int((int)wxDateTime::WET)); | |
30654 | PyDict_SetItemString(d,"DateTime_WEST", SWIG_From_int((int)wxDateTime::WEST)); | |
30655 | PyDict_SetItemString(d,"DateTime_CET", SWIG_From_int((int)wxDateTime::CET)); | |
30656 | PyDict_SetItemString(d,"DateTime_CEST", SWIG_From_int((int)wxDateTime::CEST)); | |
30657 | PyDict_SetItemString(d,"DateTime_EET", SWIG_From_int((int)wxDateTime::EET)); | |
30658 | PyDict_SetItemString(d,"DateTime_EEST", SWIG_From_int((int)wxDateTime::EEST)); | |
30659 | PyDict_SetItemString(d,"DateTime_MSK", SWIG_From_int((int)wxDateTime::MSK)); | |
30660 | PyDict_SetItemString(d,"DateTime_MSD", SWIG_From_int((int)wxDateTime::MSD)); | |
30661 | PyDict_SetItemString(d,"DateTime_AST", SWIG_From_int((int)wxDateTime::AST)); | |
30662 | PyDict_SetItemString(d,"DateTime_ADT", SWIG_From_int((int)wxDateTime::ADT)); | |
30663 | PyDict_SetItemString(d,"DateTime_EST", SWIG_From_int((int)wxDateTime::EST)); | |
30664 | PyDict_SetItemString(d,"DateTime_EDT", SWIG_From_int((int)wxDateTime::EDT)); | |
30665 | PyDict_SetItemString(d,"DateTime_CST", SWIG_From_int((int)wxDateTime::CST)); | |
30666 | PyDict_SetItemString(d,"DateTime_CDT", SWIG_From_int((int)wxDateTime::CDT)); | |
30667 | PyDict_SetItemString(d,"DateTime_MST", SWIG_From_int((int)wxDateTime::MST)); | |
30668 | PyDict_SetItemString(d,"DateTime_MDT", SWIG_From_int((int)wxDateTime::MDT)); | |
30669 | PyDict_SetItemString(d,"DateTime_PST", SWIG_From_int((int)wxDateTime::PST)); | |
30670 | PyDict_SetItemString(d,"DateTime_PDT", SWIG_From_int((int)wxDateTime::PDT)); | |
30671 | PyDict_SetItemString(d,"DateTime_HST", SWIG_From_int((int)wxDateTime::HST)); | |
30672 | PyDict_SetItemString(d,"DateTime_AKST", SWIG_From_int((int)wxDateTime::AKST)); | |
30673 | PyDict_SetItemString(d,"DateTime_AKDT", SWIG_From_int((int)wxDateTime::AKDT)); | |
30674 | PyDict_SetItemString(d,"DateTime_A_WST", SWIG_From_int((int)wxDateTime::A_WST)); | |
30675 | PyDict_SetItemString(d,"DateTime_A_CST", SWIG_From_int((int)wxDateTime::A_CST)); | |
30676 | PyDict_SetItemString(d,"DateTime_A_EST", SWIG_From_int((int)wxDateTime::A_EST)); | |
30677 | PyDict_SetItemString(d,"DateTime_A_ESST", SWIG_From_int((int)wxDateTime::A_ESST)); | |
30678 | PyDict_SetItemString(d,"DateTime_UTC", SWIG_From_int((int)wxDateTime::UTC)); | |
30679 | PyDict_SetItemString(d,"DateTime_Gregorian", SWIG_From_int((int)wxDateTime::Gregorian)); | |
30680 | PyDict_SetItemString(d,"DateTime_Julian", SWIG_From_int((int)wxDateTime::Julian)); | |
30681 | PyDict_SetItemString(d,"DateTime_Gr_Unknown", SWIG_From_int((int)wxDateTime::Gr_Unknown)); | |
30682 | PyDict_SetItemString(d,"DateTime_Gr_Standard", SWIG_From_int((int)wxDateTime::Gr_Standard)); | |
30683 | PyDict_SetItemString(d,"DateTime_Gr_Alaska", SWIG_From_int((int)wxDateTime::Gr_Alaska)); | |
30684 | PyDict_SetItemString(d,"DateTime_Gr_Albania", SWIG_From_int((int)wxDateTime::Gr_Albania)); | |
30685 | PyDict_SetItemString(d,"DateTime_Gr_Austria", SWIG_From_int((int)wxDateTime::Gr_Austria)); | |
30686 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Brixen", SWIG_From_int((int)wxDateTime::Gr_Austria_Brixen)); | |
30687 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Salzburg", SWIG_From_int((int)wxDateTime::Gr_Austria_Salzburg)); | |
30688 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Tyrol", SWIG_From_int((int)wxDateTime::Gr_Austria_Tyrol)); | |
30689 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Carinthia", SWIG_From_int((int)wxDateTime::Gr_Austria_Carinthia)); | |
30690 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Styria", SWIG_From_int((int)wxDateTime::Gr_Austria_Styria)); | |
30691 | PyDict_SetItemString(d,"DateTime_Gr_Belgium", SWIG_From_int((int)wxDateTime::Gr_Belgium)); | |
30692 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria", SWIG_From_int((int)wxDateTime::Gr_Bulgaria)); | |
30693 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_1", SWIG_From_int((int)wxDateTime::Gr_Bulgaria_1)); | |
30694 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_2", SWIG_From_int((int)wxDateTime::Gr_Bulgaria_2)); | |
30695 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_3", SWIG_From_int((int)wxDateTime::Gr_Bulgaria_3)); | |
30696 | PyDict_SetItemString(d,"DateTime_Gr_Canada", SWIG_From_int((int)wxDateTime::Gr_Canada)); | |
30697 | PyDict_SetItemString(d,"DateTime_Gr_China", SWIG_From_int((int)wxDateTime::Gr_China)); | |
30698 | PyDict_SetItemString(d,"DateTime_Gr_China_1", SWIG_From_int((int)wxDateTime::Gr_China_1)); | |
30699 | PyDict_SetItemString(d,"DateTime_Gr_China_2", SWIG_From_int((int)wxDateTime::Gr_China_2)); | |
30700 | PyDict_SetItemString(d,"DateTime_Gr_Czechoslovakia", SWIG_From_int((int)wxDateTime::Gr_Czechoslovakia)); | |
30701 | PyDict_SetItemString(d,"DateTime_Gr_Denmark", SWIG_From_int((int)wxDateTime::Gr_Denmark)); | |
30702 | PyDict_SetItemString(d,"DateTime_Gr_Egypt", SWIG_From_int((int)wxDateTime::Gr_Egypt)); | |
30703 | PyDict_SetItemString(d,"DateTime_Gr_Estonia", SWIG_From_int((int)wxDateTime::Gr_Estonia)); | |
30704 | PyDict_SetItemString(d,"DateTime_Gr_Finland", SWIG_From_int((int)wxDateTime::Gr_Finland)); | |
30705 | PyDict_SetItemString(d,"DateTime_Gr_France", SWIG_From_int((int)wxDateTime::Gr_France)); | |
30706 | PyDict_SetItemString(d,"DateTime_Gr_France_Alsace", SWIG_From_int((int)wxDateTime::Gr_France_Alsace)); | |
30707 | PyDict_SetItemString(d,"DateTime_Gr_France_Lorraine", SWIG_From_int((int)wxDateTime::Gr_France_Lorraine)); | |
30708 | PyDict_SetItemString(d,"DateTime_Gr_France_Strasbourg", SWIG_From_int((int)wxDateTime::Gr_France_Strasbourg)); | |
30709 | PyDict_SetItemString(d,"DateTime_Gr_Germany", SWIG_From_int((int)wxDateTime::Gr_Germany)); | |
30710 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Catholic", SWIG_From_int((int)wxDateTime::Gr_Germany_Catholic)); | |
30711 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Prussia", SWIG_From_int((int)wxDateTime::Gr_Germany_Prussia)); | |
30712 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Protestant", SWIG_From_int((int)wxDateTime::Gr_Germany_Protestant)); | |
30713 | PyDict_SetItemString(d,"DateTime_Gr_GreatBritain", SWIG_From_int((int)wxDateTime::Gr_GreatBritain)); | |
30714 | PyDict_SetItemString(d,"DateTime_Gr_Greece", SWIG_From_int((int)wxDateTime::Gr_Greece)); | |
30715 | PyDict_SetItemString(d,"DateTime_Gr_Hungary", SWIG_From_int((int)wxDateTime::Gr_Hungary)); | |
30716 | PyDict_SetItemString(d,"DateTime_Gr_Ireland", SWIG_From_int((int)wxDateTime::Gr_Ireland)); | |
30717 | PyDict_SetItemString(d,"DateTime_Gr_Italy", SWIG_From_int((int)wxDateTime::Gr_Italy)); | |
30718 | PyDict_SetItemString(d,"DateTime_Gr_Japan", SWIG_From_int((int)wxDateTime::Gr_Japan)); | |
30719 | PyDict_SetItemString(d,"DateTime_Gr_Japan_1", SWIG_From_int((int)wxDateTime::Gr_Japan_1)); | |
30720 | PyDict_SetItemString(d,"DateTime_Gr_Japan_2", SWIG_From_int((int)wxDateTime::Gr_Japan_2)); | |
30721 | PyDict_SetItemString(d,"DateTime_Gr_Japan_3", SWIG_From_int((int)wxDateTime::Gr_Japan_3)); | |
30722 | PyDict_SetItemString(d,"DateTime_Gr_Latvia", SWIG_From_int((int)wxDateTime::Gr_Latvia)); | |
30723 | PyDict_SetItemString(d,"DateTime_Gr_Lithuania", SWIG_From_int((int)wxDateTime::Gr_Lithuania)); | |
30724 | PyDict_SetItemString(d,"DateTime_Gr_Luxemburg", SWIG_From_int((int)wxDateTime::Gr_Luxemburg)); | |
30725 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands", SWIG_From_int((int)wxDateTime::Gr_Netherlands)); | |
30726 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Groningen", SWIG_From_int((int)wxDateTime::Gr_Netherlands_Groningen)); | |
30727 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Gelderland", SWIG_From_int((int)wxDateTime::Gr_Netherlands_Gelderland)); | |
30728 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Utrecht", SWIG_From_int((int)wxDateTime::Gr_Netherlands_Utrecht)); | |
30729 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Friesland", SWIG_From_int((int)wxDateTime::Gr_Netherlands_Friesland)); | |
30730 | PyDict_SetItemString(d,"DateTime_Gr_Norway", SWIG_From_int((int)wxDateTime::Gr_Norway)); | |
30731 | PyDict_SetItemString(d,"DateTime_Gr_Poland", SWIG_From_int((int)wxDateTime::Gr_Poland)); | |
30732 | PyDict_SetItemString(d,"DateTime_Gr_Portugal", SWIG_From_int((int)wxDateTime::Gr_Portugal)); | |
30733 | PyDict_SetItemString(d,"DateTime_Gr_Romania", SWIG_From_int((int)wxDateTime::Gr_Romania)); | |
30734 | PyDict_SetItemString(d,"DateTime_Gr_Russia", SWIG_From_int((int)wxDateTime::Gr_Russia)); | |
30735 | PyDict_SetItemString(d,"DateTime_Gr_Scotland", SWIG_From_int((int)wxDateTime::Gr_Scotland)); | |
30736 | PyDict_SetItemString(d,"DateTime_Gr_Spain", SWIG_From_int((int)wxDateTime::Gr_Spain)); | |
30737 | PyDict_SetItemString(d,"DateTime_Gr_Sweden", SWIG_From_int((int)wxDateTime::Gr_Sweden)); | |
30738 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland", SWIG_From_int((int)wxDateTime::Gr_Switzerland)); | |
30739 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Catholic", SWIG_From_int((int)wxDateTime::Gr_Switzerland_Catholic)); | |
30740 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Protestant", SWIG_From_int((int)wxDateTime::Gr_Switzerland_Protestant)); | |
30741 | PyDict_SetItemString(d,"DateTime_Gr_Turkey", SWIG_From_int((int)wxDateTime::Gr_Turkey)); | |
30742 | PyDict_SetItemString(d,"DateTime_Gr_USA", SWIG_From_int((int)wxDateTime::Gr_USA)); | |
30743 | PyDict_SetItemString(d,"DateTime_Gr_Wales", SWIG_From_int((int)wxDateTime::Gr_Wales)); | |
30744 | PyDict_SetItemString(d,"DateTime_Gr_Yugoslavia", SWIG_From_int((int)wxDateTime::Gr_Yugoslavia)); | |
30745 | PyDict_SetItemString(d,"DateTime_Country_Unknown", SWIG_From_int((int)wxDateTime::Country_Unknown)); | |
30746 | PyDict_SetItemString(d,"DateTime_Country_Default", SWIG_From_int((int)wxDateTime::Country_Default)); | |
30747 | PyDict_SetItemString(d,"DateTime_Country_WesternEurope_Start", SWIG_From_int((int)wxDateTime::Country_WesternEurope_Start)); | |
30748 | PyDict_SetItemString(d,"DateTime_Country_EEC", SWIG_From_int((int)wxDateTime::Country_EEC)); | |
30749 | PyDict_SetItemString(d,"DateTime_France", SWIG_From_int((int)wxDateTime::France)); | |
30750 | PyDict_SetItemString(d,"DateTime_Germany", SWIG_From_int((int)wxDateTime::Germany)); | |
30751 | PyDict_SetItemString(d,"DateTime_UK", SWIG_From_int((int)wxDateTime::UK)); | |
30752 | PyDict_SetItemString(d,"DateTime_Country_WesternEurope_End", SWIG_From_int((int)wxDateTime::Country_WesternEurope_End)); | |
30753 | PyDict_SetItemString(d,"DateTime_Russia", SWIG_From_int((int)wxDateTime::Russia)); | |
30754 | PyDict_SetItemString(d,"DateTime_USA", SWIG_From_int((int)wxDateTime::USA)); | |
30755 | PyDict_SetItemString(d,"DateTime_Jan", SWIG_From_int((int)wxDateTime::Jan)); | |
30756 | PyDict_SetItemString(d,"DateTime_Feb", SWIG_From_int((int)wxDateTime::Feb)); | |
30757 | PyDict_SetItemString(d,"DateTime_Mar", SWIG_From_int((int)wxDateTime::Mar)); | |
30758 | PyDict_SetItemString(d,"DateTime_Apr", SWIG_From_int((int)wxDateTime::Apr)); | |
30759 | PyDict_SetItemString(d,"DateTime_May", SWIG_From_int((int)wxDateTime::May)); | |
30760 | PyDict_SetItemString(d,"DateTime_Jun", SWIG_From_int((int)wxDateTime::Jun)); | |
30761 | PyDict_SetItemString(d,"DateTime_Jul", SWIG_From_int((int)wxDateTime::Jul)); | |
30762 | PyDict_SetItemString(d,"DateTime_Aug", SWIG_From_int((int)wxDateTime::Aug)); | |
30763 | PyDict_SetItemString(d,"DateTime_Sep", SWIG_From_int((int)wxDateTime::Sep)); | |
30764 | PyDict_SetItemString(d,"DateTime_Oct", SWIG_From_int((int)wxDateTime::Oct)); | |
30765 | PyDict_SetItemString(d,"DateTime_Nov", SWIG_From_int((int)wxDateTime::Nov)); | |
30766 | PyDict_SetItemString(d,"DateTime_Dec", SWIG_From_int((int)wxDateTime::Dec)); | |
30767 | PyDict_SetItemString(d,"DateTime_Inv_Month", SWIG_From_int((int)wxDateTime::Inv_Month)); | |
30768 | PyDict_SetItemString(d,"DateTime_Sun", SWIG_From_int((int)wxDateTime::Sun)); | |
30769 | PyDict_SetItemString(d,"DateTime_Mon", SWIG_From_int((int)wxDateTime::Mon)); | |
30770 | PyDict_SetItemString(d,"DateTime_Tue", SWIG_From_int((int)wxDateTime::Tue)); | |
30771 | PyDict_SetItemString(d,"DateTime_Wed", SWIG_From_int((int)wxDateTime::Wed)); | |
30772 | PyDict_SetItemString(d,"DateTime_Thu", SWIG_From_int((int)wxDateTime::Thu)); | |
30773 | PyDict_SetItemString(d,"DateTime_Fri", SWIG_From_int((int)wxDateTime::Fri)); | |
30774 | PyDict_SetItemString(d,"DateTime_Sat", SWIG_From_int((int)wxDateTime::Sat)); | |
30775 | PyDict_SetItemString(d,"DateTime_Inv_WeekDay", SWIG_From_int((int)wxDateTime::Inv_WeekDay)); | |
30776 | PyDict_SetItemString(d,"DateTime_Inv_Year", SWIG_From_int((int)wxDateTime::Inv_Year)); | |
30777 | PyDict_SetItemString(d,"DateTime_Name_Full", SWIG_From_int((int)wxDateTime::Name_Full)); | |
30778 | PyDict_SetItemString(d,"DateTime_Name_Abbr", SWIG_From_int((int)wxDateTime::Name_Abbr)); | |
30779 | PyDict_SetItemString(d,"DateTime_Default_First", SWIG_From_int((int)wxDateTime::Default_First)); | |
30780 | PyDict_SetItemString(d,"DateTime_Monday_First", SWIG_From_int((int)wxDateTime::Monday_First)); | |
30781 | PyDict_SetItemString(d,"DateTime_Sunday_First", SWIG_From_int((int)wxDateTime::Sunday_First)); | |
30782 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultDateTime",_wrap_DefaultDateTime_get, _wrap_DefaultDateTime_set); | |
30783 | PyDict_SetItemString(d,"DF_INVALID", SWIG_From_int((int)wxDF_INVALID)); | |
30784 | PyDict_SetItemString(d,"DF_TEXT", SWIG_From_int((int)wxDF_TEXT)); | |
30785 | PyDict_SetItemString(d,"DF_BITMAP", SWIG_From_int((int)wxDF_BITMAP)); | |
30786 | PyDict_SetItemString(d,"DF_METAFILE", SWIG_From_int((int)wxDF_METAFILE)); | |
30787 | PyDict_SetItemString(d,"DF_SYLK", SWIG_From_int((int)wxDF_SYLK)); | |
30788 | PyDict_SetItemString(d,"DF_DIF", SWIG_From_int((int)wxDF_DIF)); | |
30789 | PyDict_SetItemString(d,"DF_TIFF", SWIG_From_int((int)wxDF_TIFF)); | |
30790 | PyDict_SetItemString(d,"DF_OEMTEXT", SWIG_From_int((int)wxDF_OEMTEXT)); | |
30791 | PyDict_SetItemString(d,"DF_DIB", SWIG_From_int((int)wxDF_DIB)); | |
30792 | PyDict_SetItemString(d,"DF_PALETTE", SWIG_From_int((int)wxDF_PALETTE)); | |
30793 | PyDict_SetItemString(d,"DF_PENDATA", SWIG_From_int((int)wxDF_PENDATA)); | |
30794 | PyDict_SetItemString(d,"DF_RIFF", SWIG_From_int((int)wxDF_RIFF)); | |
30795 | PyDict_SetItemString(d,"DF_WAVE", SWIG_From_int((int)wxDF_WAVE)); | |
30796 | PyDict_SetItemString(d,"DF_UNICODETEXT", SWIG_From_int((int)wxDF_UNICODETEXT)); | |
30797 | PyDict_SetItemString(d,"DF_ENHMETAFILE", SWIG_From_int((int)wxDF_ENHMETAFILE)); | |
30798 | PyDict_SetItemString(d,"DF_FILENAME", SWIG_From_int((int)wxDF_FILENAME)); | |
30799 | PyDict_SetItemString(d,"DF_LOCALE", SWIG_From_int((int)wxDF_LOCALE)); | |
30800 | PyDict_SetItemString(d,"DF_PRIVATE", SWIG_From_int((int)wxDF_PRIVATE)); | |
30801 | PyDict_SetItemString(d,"DF_HTML", SWIG_From_int((int)wxDF_HTML)); | |
30802 | PyDict_SetItemString(d,"DF_MAX", SWIG_From_int((int)wxDF_MAX)); | |
30803 | SWIG_addvarlink(SWIG_globals,(char*)"FormatInvalid",_wrap_FormatInvalid_get, _wrap_FormatInvalid_set); | |
30804 | PyDict_SetItemString(d,"DataObject_Get", SWIG_From_int((int)wxDataObject::Get)); | |
30805 | PyDict_SetItemString(d,"DataObject_Set", SWIG_From_int((int)wxDataObject::Set)); | |
30806 | PyDict_SetItemString(d,"DataObject_Both", SWIG_From_int((int)wxDataObject::Both)); | |
30807 | PyDict_SetItemString(d,"Drag_CopyOnly", SWIG_From_int((int)wxDrag_CopyOnly)); | |
30808 | PyDict_SetItemString(d,"Drag_AllowMove", SWIG_From_int((int)wxDrag_AllowMove)); | |
30809 | PyDict_SetItemString(d,"Drag_DefaultMove", SWIG_From_int((int)wxDrag_DefaultMove)); | |
30810 | PyDict_SetItemString(d,"DragError", SWIG_From_int((int)wxDragError)); | |
30811 | PyDict_SetItemString(d,"DragNone", SWIG_From_int((int)wxDragNone)); | |
30812 | PyDict_SetItemString(d,"DragCopy", SWIG_From_int((int)wxDragCopy)); | |
30813 | PyDict_SetItemString(d,"DragMove", SWIG_From_int((int)wxDragMove)); | |
30814 | PyDict_SetItemString(d,"DragLink", SWIG_From_int((int)wxDragLink)); | |
30815 | PyDict_SetItemString(d,"DragCancel", SWIG_From_int((int)wxDragCancel)); | |
30816 | ||
30817 | wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource"); | |
30818 | wxPyPtrTypeMap_Add("wxDropTarget", "wxPyDropTarget"); | |
30819 | wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget"); | |
30820 | wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget"); | |
30821 | ||
30822 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultVideoMode",_wrap_DefaultVideoMode_get, _wrap_DefaultVideoMode_set); | |
30823 | } | |
30824 |