]>
Commit | Line | Data |
---|---|---|
d55e5bfc RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
3 | * Version 1.3.22 | |
4 | * | |
5 | * This file is not intended to be easily readable and contains a number of | |
6 | * coding conventions designed to improve portability and efficiency. Do not make | |
7 | * changes to this file unless you know what you are doing--modify the SWIG | |
8 | * interface file instead. | |
9 | * ----------------------------------------------------------------------------- */ | |
10 | ||
11 | #define SWIGPYTHON | |
12 | #define SWIG_NOINCLUDE | |
13 | ||
14 | #ifdef __cplusplus | |
15 | template<class T> class SwigValueWrapper { | |
16 | T *tt; | |
17 | public: | |
18 | SwigValueWrapper() : tt(0) { } | |
19 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
20 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
21 | ~SwigValueWrapper() { delete tt; } | |
22 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
23 | operator T&() const { return *tt; } | |
24 | T *operator&() { return tt; } | |
25 | private: | |
26 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
27 | }; | |
28 | #endif | |
29 | ||
30 | ||
31 | #include "Python.h" | |
32 | ||
33 | /*************************************************************** -*- c -*- | |
34 | * python/precommon.swg | |
35 | * | |
36 | * Rename all exported symbols from common.swg, to avoid symbol | |
37 | * clashes if multiple interpreters are included | |
38 | * | |
39 | ************************************************************************/ | |
40 | ||
41 | #define SWIG_TypeRegister SWIG_Python_TypeRegister | |
42 | #define SWIG_TypeCheck SWIG_Python_TypeCheck | |
43 | #define SWIG_TypeCast SWIG_Python_TypeCast | |
44 | #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast | |
45 | #define SWIG_TypeName SWIG_Python_TypeName | |
c370783e | 46 | #define SWIG_TypePrettyName SWIG_Python_TypePrettyName |
d55e5bfc RD |
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 *); | |
c370783e | 117 | SWIGIMPORT(const char *) SWIG_TypePrettyName(const swig_type_info *); |
d55e5bfc RD |
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 | ||
c370783e | 128 | |
d55e5bfc RD |
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 | ||
d55e5bfc RD |
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 | ||
c370783e | 208 | |
d55e5bfc RD |
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_wxMetafile swig_types[2] | |
214 | #define SWIGTYPE_p_wxFileHistory swig_types[3] | |
215 | #define SWIGTYPE_p_wxLog swig_types[4] | |
216 | #define SWIGTYPE_p_wxDateTime__TimeZone swig_types[5] | |
217 | #define SWIGTYPE_p_wxMenu swig_types[6] | |
218 | #define SWIGTYPE_p_wxEvent swig_types[7] | |
219 | #define SWIGTYPE_p_wxConfigBase swig_types[8] | |
220 | #define SWIGTYPE_p_wxDisplay swig_types[9] | |
221 | #define SWIGTYPE_p_wxFileType swig_types[10] | |
222 | #define SWIGTYPE_p_wxLogGui swig_types[11] | |
223 | #define SWIGTYPE_p_wxFont swig_types[12] | |
224 | #define SWIGTYPE_p_wxDataFormat swig_types[13] | |
225 | #define SWIGTYPE_p_wxTimerEvent swig_types[14] | |
226 | #define SWIGTYPE_p_wxCaret swig_types[15] | |
227 | #define SWIGTYPE_p_int swig_types[16] | |
228 | #define SWIGTYPE_p_wxSize swig_types[17] | |
229 | #define SWIGTYPE_p_wxClipboard swig_types[18] | |
230 | #define SWIGTYPE_p_wxStopWatch swig_types[19] | |
231 | #define SWIGTYPE_p_wxDC swig_types[20] | |
232 | #define SWIGTYPE_p_wxClipboardLocker swig_types[21] | |
233 | #define SWIGTYPE_p_wxIcon swig_types[22] | |
234 | #define SWIGTYPE_p_wxLogStderr swig_types[23] | |
235 | #define SWIGTYPE_p_wxLogTextCtrl swig_types[24] | |
236 | #define SWIGTYPE_p_wxTextCtrl swig_types[25] | |
237 | #define SWIGTYPE_p_wxBusyCursor swig_types[26] | |
03e46024 RD |
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_wxPyBitmapDataObject swig_types[31] | |
d55e5bfc RD |
243 | #define SWIGTYPE_p_wxFileDataObject swig_types[32] |
244 | #define SWIGTYPE_p_wxCustomDataObject swig_types[33] | |
245 | #define SWIGTYPE_p_wxURLDataObject swig_types[34] | |
246 | #define SWIGTYPE_p_wxMetafileDataObject swig_types[35] | |
247 | #define SWIGTYPE_p_wxSound swig_types[36] | |
248 | #define SWIGTYPE_p_wxTimerRunner swig_types[37] | |
249 | #define SWIGTYPE_p_wxLogWindow swig_types[38] | |
250 | #define SWIGTYPE_p_wxTimeSpan swig_types[39] | |
251 | #define SWIGTYPE_p_wxArrayString swig_types[40] | |
252 | #define SWIGTYPE_p_wxWindowDisabler swig_types[41] | |
253 | #define SWIGTYPE_p_wxToolTip swig_types[42] | |
254 | #define SWIGTYPE_p_wxDataObjectComposite swig_types[43] | |
255 | #define SWIGTYPE_p_wxFileConfig swig_types[44] | |
256 | #define SWIGTYPE_p_wxSystemSettings swig_types[45] | |
257 | #define SWIGTYPE_p_wxVideoMode swig_types[46] | |
258 | #define SWIGTYPE_p_wxPyDataObjectSimple swig_types[47] | |
259 | #define SWIGTYPE_p_wxDataObjectSimple swig_types[48] | |
260 | #define SWIGTYPE_p_wxEvtHandler swig_types[49] | |
261 | #define SWIGTYPE_p_wxRect swig_types[50] | |
262 | #define SWIGTYPE_p_char swig_types[51] | |
263 | #define SWIGTYPE_p_wxSingleInstanceChecker swig_types[52] | |
070c48b4 RD |
264 | #define SWIGTYPE_p_wxStandardPaths swig_types[53] |
265 | #define SWIGTYPE_p_wxFileTypeInfo swig_types[54] | |
266 | #define SWIGTYPE_p_wxFrame swig_types[55] | |
267 | #define SWIGTYPE_p_wxTimer swig_types[56] | |
268 | #define SWIGTYPE_p_wxMimeTypesManager swig_types[57] | |
269 | #define SWIGTYPE_p_wxPyArtProvider swig_types[58] | |
270 | #define SWIGTYPE_p_wxPyTipProvider swig_types[59] | |
271 | #define SWIGTYPE_p_wxTipProvider swig_types[60] | |
272 | #define SWIGTYPE_p_wxJoystick swig_types[61] | |
273 | #define SWIGTYPE_p_wxSystemOptions swig_types[62] | |
274 | #define SWIGTYPE_p_wxPoint swig_types[63] | |
275 | #define SWIGTYPE_p_wxJoystickEvent swig_types[64] | |
276 | #define SWIGTYPE_p_wxCursor swig_types[65] | |
277 | #define SWIGTYPE_p_wxObject swig_types[66] | |
278 | #define SWIGTYPE_p_wxOutputStream swig_types[67] | |
279 | #define SWIGTYPE_p_wxDateTime swig_types[68] | |
280 | #define SWIGTYPE_p_wxPyDropSource swig_types[69] | |
03e46024 RD |
281 | #define SWIGTYPE_p_wxKillError swig_types[70] |
282 | #define SWIGTYPE_p_wxWindow swig_types[71] | |
283 | #define SWIGTYPE_p_wxString swig_types[72] | |
284 | #define SWIGTYPE_p_wxPyProcess swig_types[73] | |
285 | #define SWIGTYPE_p_wxBitmap swig_types[74] | |
286 | #define SWIGTYPE_p_wxConfig swig_types[75] | |
287 | #define SWIGTYPE_p_wxChar swig_types[76] | |
288 | #define SWIGTYPE_p_wxBusyInfo swig_types[77] | |
289 | #define SWIGTYPE_p_wxPyDropTarget swig_types[78] | |
290 | #define SWIGTYPE_p_wxPyTextDropTarget swig_types[79] | |
291 | #define SWIGTYPE_p_wxPyFileDropTarget swig_types[80] | |
292 | #define SWIGTYPE_p_wxProcessEvent swig_types[81] | |
293 | #define SWIGTYPE_p_wxPyLog swig_types[82] | |
294 | #define SWIGTYPE_p_wxLogNull swig_types[83] | |
295 | #define SWIGTYPE_p_wxColour swig_types[84] | |
296 | #define SWIGTYPE_p_wxConfigPathChanger swig_types[85] | |
297 | #define SWIGTYPE_p_wxPyTimer swig_types[86] | |
298 | #define SWIGTYPE_p_wxDateSpan swig_types[87] | |
299 | static swig_type_info *swig_types[89]; | |
d55e5bfc RD |
300 | |
301 | /* -------- TYPES TABLE (END) -------- */ | |
302 | ||
303 | ||
304 | /*----------------------------------------------- | |
305 | @(target):= _misc_.so | |
306 | ------------------------------------------------*/ | |
307 | #define SWIG_init init_misc_ | |
308 | ||
309 | #define SWIG_name "_misc_" | |
310 | ||
c370783e RD |
311 | /* Auxiliar swig macros that appear in the header */ |
312 | ||
313 | #define SWIG_OLDOBJ 1 | |
314 | #define SWIG_NEWOBJ SWIG_OLDOBJ + 1 | |
315 | #define SWIG_PYSTR SWIG_NEWOBJ + 1 | |
d55e5bfc RD |
316 | |
317 | #ifdef __cplusplus | |
318 | #define SWIGSTATICINLINE(a) static inline a | |
319 | #define SWIGSTATIC(a) static a | |
c370783e RD |
320 | #define swig_new_array(size,Type) (new Type[(size)]) |
321 | #define swig_delete(cptr) delete cptr | |
d55e5bfc | 322 | #define swig_delete_array(cptr) delete[] cptr |
c370783e RD |
323 | #define swig_const_cast(a,Type) const_cast<Type >(a) |
324 | #define swig_static_cast(a,Type) static_cast<Type >(a) | |
325 | #define swig_reinterpret_cast(a,Type) reinterpret_cast<Type >(a) | |
326 | #define swig_new_copy(ptr,Type) (new Type(*ptr)) | |
327 | #define swig_numeric_cast(a,Type) static_cast<Type >(a) | |
d55e5bfc RD |
328 | |
329 | #else /* C case */ | |
330 | ||
331 | #define SWIGSTATICINLINE(a) static a | |
332 | #define SWIGSTATIC(a) static a | |
c370783e RD |
333 | #define swig_new_array(size,Type) ((Type*) malloc((size)*sizeof(Type))) |
334 | #define swig_delete(cptr) free((char*)cptr) | |
d55e5bfc | 335 | #define swig_delete_array(cptr) free((char*)cptr) |
c370783e RD |
336 | #define swig_const_cast(a,Type) (Type)(a) |
337 | #define swig_static_cast(a,Type) (Type)(a) | |
338 | #define swig_reinterpret_cast(a,Type) (Type)(a) | |
339 | #define swig_numeric_cast(a,Type) (Type)(a) | |
340 | #define swig_new_copy(ptr,Type) ((Type*)memcpy(malloc(sizeof(Type)),ptr,sizeof(Type))) | |
d55e5bfc RD |
341 | |
342 | #endif /* __cplusplus */ | |
343 | ||
344 | ||
c370783e RD |
345 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ |
346 | #define SWIG_From_signed_SS_char PyInt_FromLong | |
347 | /*@@*/ | |
348 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
349 | #define SWIG_From_unsigned_SS_char PyInt_FromLong | |
350 | /*@@*/ | |
351 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
352 | #define SWIG_From_short PyInt_FromLong | |
353 | /*@@*/ | |
354 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
355 | #define SWIG_From_unsigned_SS_short PyInt_FromLong | |
356 | /*@@*/ | |
357 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
358 | #define SWIG_From_int PyInt_FromLong | |
359 | /*@@*/ | |
360 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
361 | #define SWIG_From_long PyInt_FromLong | |
362 | /*@@*/ | |
363 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
364 | #define SWIG_From_float PyFloat_FromDouble | |
365 | /*@@*/ | |
366 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
367 | #define SWIG_From_double PyFloat_FromDouble | |
368 | /*@@*/ | |
d55e5bfc RD |
369 | |
370 | ||
371 | #include "wx/wxPython/wxPython.h" | |
372 | #include "wx/wxPython/pyclasses.h" | |
0439c23b | 373 | #include "wx/wxPython/pyistream.h" |
d55e5bfc RD |
374 | |
375 | static const wxString wxPyEmptyString(wxEmptyString); | |
376 | ||
377 | ||
378 | ||
379 | #include <limits.h> | |
380 | ||
381 | ||
c370783e RD |
382 | SWIGSTATICINLINE(int) |
383 | SWIG_CheckLongInRange(long value, long min_value, long max_value, | |
384 | const char *errmsg) | |
d55e5bfc | 385 | { |
c370783e RD |
386 | if (value < min_value) { |
387 | if (errmsg) { | |
388 | PyErr_Format(PyExc_OverflowError, | |
389 | "value %ld is less than '%s' minimum %ld", | |
390 | value, errmsg, min_value); | |
391 | } | |
392 | return 0; | |
393 | } else if (value > max_value) { | |
394 | if (errmsg) { | |
395 | PyErr_Format(PyExc_OverflowError, | |
396 | "value %ld is greater than '%s' maximum %ld", | |
397 | value, errmsg, max_value); | |
d55e5bfc | 398 | } |
c370783e | 399 | return 0; |
d55e5bfc | 400 | } |
c370783e | 401 | return 1; |
d55e5bfc RD |
402 | } |
403 | ||
404 | ||
c370783e RD |
405 | // See my_fragments.i |
406 | SWIGSTATICINLINE(int) | |
407 | SWIG_AsVal_long(PyObject* obj, long* val) | |
d55e5bfc | 408 | { |
c370783e RD |
409 | if (PyNumber_Check(obj)) { |
410 | if (val) *val = PyInt_AsLong(obj); | |
411 | return 1; | |
412 | } | |
d55e5bfc RD |
413 | else { |
414 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
415 | obj->ob_type->tp_name); | |
416 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
417 | Py_DECREF(errmsg); | |
d55e5bfc | 418 | } |
c370783e | 419 | return 0; |
d55e5bfc RD |
420 | } |
421 | ||
422 | ||
423 | #if INT_MAX != LONG_MAX | |
424 | SWIGSTATICINLINE(int) | |
c370783e | 425 | SWIG_AsVal_int(PyObject *obj, int *val) |
d55e5bfc | 426 | { |
c370783e RD |
427 | const char* errmsg = val ? "int" : 0; |
428 | long v; | |
429 | if (SWIG_AsVal_long(obj, &v)) { | |
430 | if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) { | |
431 | if (val) *val = swig_numeric_cast(v, int); | |
432 | return 1; | |
433 | } else { | |
434 | return 0; | |
435 | } | |
436 | } else { | |
437 | PyErr_Clear(); | |
438 | } | |
439 | if (val) { | |
440 | PyErr_SetString(PyExc_TypeError, "an int is expected"); | |
441 | } | |
442 | return 0; | |
d55e5bfc RD |
443 | } |
444 | #else | |
c370783e RD |
445 | SWIGSTATICINLINE(int) |
446 | SWIG_AsVal_int(PyObject *obj, int *val) | |
447 | { | |
448 | return SWIG_AsVal_long(obj,(long*)val); | |
449 | } | |
d55e5bfc RD |
450 | #endif |
451 | ||
452 | ||
453 | SWIGSTATICINLINE(int) | |
c370783e | 454 | SWIG_As_int(PyObject* obj) |
d55e5bfc | 455 | { |
c370783e RD |
456 | int v; |
457 | if (!SWIG_AsVal_int(obj, &v)) { | |
458 | /* | |
459 | this is needed to make valgrind/purify happier. the other | |
460 | solution is throw an exception, but since this code should work | |
461 | with plain C .... | |
462 | */ | |
463 | memset((void*)&v, 0, sizeof(int)); | |
d55e5bfc | 464 | } |
c370783e RD |
465 | return v; |
466 | } | |
467 | ||
468 | ||
469 | SWIGSTATICINLINE(int) | |
470 | SWIG_Check_int(PyObject* obj) | |
471 | { | |
472 | return SWIG_AsVal_int(obj, (int*)0); | |
d55e5bfc RD |
473 | } |
474 | ||
629e65c2 | 475 | static const wxString wxPyWINDOW_DEFAULT_VARIANT(wxWINDOW_DEFAULT_VARIANT); |
01ac03ba RD |
476 | |
477 | #include <wx/stockitem.h> | |
478 | ||
d55e5bfc RD |
479 | static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr); |
480 | static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr); | |
481 | static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr); | |
482 | ||
c370783e RD |
483 | SWIGSTATICINLINE(long) |
484 | SWIG_As_long(PyObject* obj) | |
485 | { | |
486 | long v; | |
487 | if (!SWIG_AsVal_long(obj, &v)) { | |
488 | /* | |
489 | this is needed to make valgrind/purify happier. the other | |
490 | solution is throw an exception, but since this code should work | |
491 | with plain C .... | |
492 | */ | |
493 | memset((void*)&v, 0, sizeof(long)); | |
494 | } | |
495 | return v; | |
496 | } | |
497 | ||
498 | ||
d55e5bfc | 499 | SWIGSTATICINLINE(int) |
c370783e | 500 | SWIG_Check_long(PyObject* obj) |
d55e5bfc | 501 | { |
c370783e RD |
502 | return SWIG_AsVal_long(obj, (long*)0); |
503 | } | |
504 | ||
505 | ||
506 | SWIGSTATICINLINE(int) | |
507 | SWIG_AsVal_bool(PyObject *obj, bool *val) | |
508 | { | |
509 | /* if (val) *val = PyObject_IsTrue(obj); return 1; */ | |
510 | if (obj == Py_True) { | |
511 | if (val) *val = true; | |
512 | return 1; | |
513 | } | |
514 | if (obj == Py_False) { | |
515 | if (val) *val = false; | |
d55e5bfc RD |
516 | return 1; |
517 | } | |
c370783e RD |
518 | int res = 0; |
519 | if (SWIG_AsVal_int(obj, &res)) { | |
520 | if (val) *val = (bool)res; | |
521 | return 1; | |
522 | } | |
523 | if (val) { | |
524 | PyErr_SetString(PyExc_TypeError, "a bool is expected"); | |
525 | } | |
526 | return 0; | |
d55e5bfc RD |
527 | } |
528 | ||
529 | ||
530 | SWIGSTATICINLINE(bool) | |
c370783e | 531 | SWIG_As_bool(PyObject* obj) |
d55e5bfc | 532 | { |
c370783e RD |
533 | bool v; |
534 | if (!SWIG_AsVal_bool(obj, &v)) { | |
535 | /* | |
536 | this is needed to make valgrind/purify happier. the other | |
537 | solution is throw an exception, but since this code should work | |
538 | with plain C .... | |
539 | */ | |
540 | memset((void*)&v, 0, sizeof(bool)); | |
541 | } | |
542 | return v; | |
d55e5bfc RD |
543 | } |
544 | ||
c370783e | 545 | |
d55e5bfc | 546 | SWIGSTATICINLINE(int) |
c370783e | 547 | SWIG_Check_bool(PyObject* obj) |
d55e5bfc | 548 | { |
c370783e | 549 | return SWIG_AsVal_bool(obj, (bool*)0); |
d55e5bfc RD |
550 | } |
551 | ||
552 | ||
c370783e | 553 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { |
d55e5bfc RD |
554 | PyObject* o2; |
555 | PyObject* o3; | |
c370783e | 556 | |
d55e5bfc RD |
557 | if (!target) { |
558 | target = o; | |
559 | } else if (target == Py_None) { | |
560 | Py_DECREF(Py_None); | |
561 | target = o; | |
629e65c2 RD |
562 | } else { |
563 | if (!PyTuple_Check(target)) { | |
564 | o2 = target; | |
565 | target = PyTuple_New(1); | |
566 | PyTuple_SetItem(target, 0, o2); | |
567 | } | |
d55e5bfc RD |
568 | o3 = PyTuple_New(1); |
569 | PyTuple_SetItem(o3, 0, o); | |
570 | ||
571 | o2 = target; | |
572 | target = PySequence_Concat(o2, o3); | |
573 | Py_DECREF(o2); | |
574 | Py_DECREF(o3); | |
575 | } | |
576 | return target; | |
629e65c2 | 577 | } |
d55e5bfc RD |
578 | |
579 | ||
c370783e RD |
580 | |
581 | // See my_fragments.i | |
582 | SWIGSTATICINLINE(int) | |
583 | SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val) | |
d55e5bfc | 584 | { |
c370783e RD |
585 | long v = 0; |
586 | if (SWIG_AsVal_long(obj, &v) && v < 0) { | |
587 | PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type"); | |
588 | return 0; | |
d55e5bfc | 589 | } |
c370783e RD |
590 | else if (val) |
591 | *val = (unsigned long)v; | |
592 | return 1; | |
d55e5bfc RD |
593 | } |
594 | ||
595 | ||
c370783e RD |
596 | SWIGSTATICINLINE(unsigned long) |
597 | SWIG_As_unsigned_SS_long(PyObject* obj) | |
d55e5bfc | 598 | { |
c370783e RD |
599 | unsigned long v; |
600 | if (!SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
601 | /* | |
602 | this is needed to make valgrind/purify happier. the other | |
603 | solution is throw an exception, but since this code should work | |
604 | with plain C .... | |
605 | */ | |
606 | memset((void*)&v, 0, sizeof(unsigned long)); | |
d55e5bfc | 607 | } |
c370783e RD |
608 | return v; |
609 | } | |
610 | ||
611 | ||
612 | SWIGSTATICINLINE(int) | |
613 | SWIG_Check_unsigned_SS_long(PyObject* obj) | |
614 | { | |
615 | return SWIG_AsVal_unsigned_SS_long(obj, (unsigned long*)0); | |
d55e5bfc RD |
616 | } |
617 | ||
618 | ||
619 | SWIGSTATICINLINE(PyObject* ) | |
c370783e | 620 | SWIG_From_unsigned_SS_long(unsigned long value) |
d55e5bfc RD |
621 | { |
622 | return (value > LONG_MAX) ? | |
623 | PyLong_FromUnsignedLong(value) | |
c370783e | 624 | : PyInt_FromLong(swig_numeric_cast(value,long)); |
d55e5bfc RD |
625 | } |
626 | ||
627 | ||
628 | bool wxThread_IsMain() { | |
629 | #ifdef WXP_WITH_THREAD | |
630 | return wxThread::IsMain(); | |
631 | #else | |
b411df4a | 632 | return true; |
d55e5bfc RD |
633 | #endif |
634 | } | |
635 | ||
636 | ||
637 | int wxCaret_GetBlinkTime() { | |
638 | return wxCaret::GetBlinkTime(); | |
639 | } | |
640 | ||
641 | void wxCaret_SetBlinkTime(int milliseconds) { | |
642 | wxCaret::SetBlinkTime(milliseconds); | |
643 | } | |
644 | ||
645 | ||
646 | #include <wx/snglinst.h> | |
647 | ||
648 | ||
649 | #ifdef __WXMSW__ | |
650 | #include <wx/msw/private.h> | |
651 | #include <wx/dynload.h> | |
652 | #endif | |
653 | ||
654 | ||
655 | ||
656 | void wxDrawWindowOnDC(wxWindow* window, const wxDC& dc, int method) | |
657 | { | |
658 | #ifdef __WXMSW__ | |
659 | ||
660 | switch (method) | |
661 | { | |
662 | case 1: | |
663 | // This one only partially works. Appears to be an undocumented | |
664 | // "standard" convention that not all widgets adhear to. For | |
665 | // example, for some widgets backgrounds or non-client areas may | |
666 | // not be painted. | |
667 | ::SendMessage(GetHwndOf(window), WM_PAINT, (long)GetHdcOf(dc), 0); | |
668 | break; | |
669 | ||
670 | case 2: | |
671 | // This one works much better, except for on XP. On Win2k nearly | |
672 | // all widgets and their children are captured correctly[**]. On | |
673 | // XP with Themes activated most native widgets draw only | |
674 | // partially, if at all. Without themes it works just like on | |
675 | // Win2k. | |
676 | // | |
677 | // ** For example the radio buttons in a wxRadioBox are not its | |
678 | // children by default, but you can capture it via the panel | |
679 | // instead, or change RADIOBTN_PARENT_IS_RADIOBOX in radiobox.cpp. | |
680 | ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc), | |
681 | PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | | |
682 | PRF_ERASEBKGND | PRF_OWNED ); | |
683 | break; | |
684 | ||
685 | case 3: | |
686 | // This one is only defined in the latest SDK and is only | |
687 | // available on XP. MSDN says it is similar to sending WM_PRINT | |
688 | // so I expect that it will work similar to the above. Since it | |
689 | // is avaialble only on XP, it can't be compiled like this and | |
690 | // will have to be loaded dynamically. | |
691 | // //::PrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); //break; | |
692 | ||
693 | // fall through | |
694 | ||
695 | case 4: | |
696 | // Use PrintWindow if available, or fallback to WM_PRINT | |
697 | // otherwise. Unfortunately using PrintWindow is even worse than | |
698 | // WM_PRINT. For most native widgets nothing is drawn to the dc | |
699 | // at all, with or without Themes. | |
700 | typedef BOOL (WINAPI *PrintWindow_t)(HWND, HDC, UINT); | |
b411df4a | 701 | static bool s_triedToLoad = false; |
d55e5bfc RD |
702 | static PrintWindow_t pfnPrintWindow = NULL; |
703 | if ( !s_triedToLoad ) | |
704 | { | |
705 | ||
b411df4a | 706 | s_triedToLoad = true; |
d55e5bfc RD |
707 | wxDynamicLibrary dllUser32(_T("user32.dll")); |
708 | if ( dllUser32.IsLoaded() ) | |
709 | { | |
710 | wxLogNull nolog; // Don't report errors here | |
711 | pfnPrintWindow = (PrintWindow_t)dllUser32.GetSymbol(_T("PrintWindow")); | |
712 | } | |
713 | } | |
714 | if (pfnPrintWindow) | |
715 | { | |
716 | printf("Using PrintWindow\n"); | |
717 | pfnPrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); | |
718 | } | |
719 | else | |
720 | { | |
721 | printf("Using WM_PRINT\n"); | |
722 | ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc), | |
723 | PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | PRF_ERASEBKGND | PRF_OWNED ); | |
724 | } | |
725 | } | |
726 | #endif | |
727 | } | |
728 | ||
729 | ||
730 | ||
731 | #include <wx/tipdlg.h> | |
732 | ||
733 | ||
734 | class wxPyTipProvider : public wxTipProvider { | |
735 | public: | |
736 | wxPyTipProvider(size_t currentTip) | |
737 | : wxTipProvider(currentTip) {} | |
738 | ||
739 | DEC_PYCALLBACK_STRING__pure(GetTip); | |
740 | DEC_PYCALLBACK_STRING_STRING(PreprocessTip); | |
741 | PYPRIVATE; | |
742 | }; | |
743 | ||
744 | IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip); | |
745 | IMP_PYCALLBACK_STRING_STRING(wxPyTipProvider, wxTipProvider, PreprocessTip); | |
746 | ||
747 | ||
748 | //IMP_PYCALLBACK__(wxPyTimer, wxTimer, Notify); | |
749 | ||
1a6bba1e RD |
750 | IMPLEMENT_ABSTRACT_CLASS(wxPyTimer, wxTimer); |
751 | ||
d55e5bfc RD |
752 | void wxPyTimer::Notify() { |
753 | bool found; | |
754 | bool blocked = wxPyBeginBlockThreads(); | |
755 | if ((found = wxPyCBH_findCallback(m_myInst, "Notify"))) | |
756 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("()")); | |
757 | wxPyEndBlockThreads(blocked); | |
758 | if (! found) | |
759 | wxTimer::Notify(); | |
760 | } | |
761 | void wxPyTimer::base_Notify() { | |
762 | wxTimer::Notify(); | |
763 | } | |
764 | ||
765 | ||
766 | ||
767 | SWIGSTATICINLINE(PyObject *) | |
768 | SWIG_FromCharPtr(const char* cptr) | |
769 | { | |
d55e5bfc | 770 | if (cptr) { |
c370783e | 771 | size_t size = strlen(cptr); |
d55e5bfc | 772 | if (size > INT_MAX) { |
c370783e | 773 | return SWIG_NewPointerObj(swig_const_cast(cptr,char*), |
d55e5bfc RD |
774 | SWIG_TypeQuery("char *"), 0); |
775 | } else { | |
c370783e RD |
776 | if (size != 0) { |
777 | return PyString_FromStringAndSize(cptr, size); | |
778 | } else { | |
779 | return PyString_FromString(cptr); | |
780 | } | |
d55e5bfc | 781 | } |
d55e5bfc | 782 | } |
c370783e RD |
783 | Py_INCREF(Py_None); |
784 | return Py_None; | |
d55e5bfc RD |
785 | } |
786 | ||
787 | ||
c370783e RD |
788 | SWIGSTATICINLINE(int) |
789 | SWIG_CheckUnsignedLongInRange(unsigned long value, | |
790 | unsigned long max_value, | |
791 | const char *errmsg) | |
d55e5bfc | 792 | { |
c370783e RD |
793 | if (value > max_value) { |
794 | if (errmsg) { | |
795 | PyErr_Format(PyExc_OverflowError, | |
796 | "value %ld is greater than '%s' minimum %ld", | |
797 | value, errmsg, max_value); | |
d55e5bfc | 798 | } |
c370783e | 799 | return 0; |
d55e5bfc | 800 | } |
c370783e RD |
801 | return 1; |
802 | } | |
d55e5bfc RD |
803 | |
804 | ||
805 | #if UINT_MAX != ULONG_MAX | |
c370783e RD |
806 | SWIGSTATICINLINE(int) |
807 | SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val) | |
d55e5bfc | 808 | { |
c370783e RD |
809 | const char* errmsg = val ? "unsigned int" : 0; |
810 | unsigned long v; | |
811 | if (SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
812 | if (SWIG_CheckUnsignedLongInRange(v, INT_MAX, errmsg)) { | |
813 | if (val) *val = swig_numeric_cast(v, unsigned int); | |
814 | return 1; | |
815 | } | |
816 | } else { | |
817 | PyErr_Clear(); | |
818 | } | |
819 | if (val) { | |
820 | PyErr_SetString(PyExc_TypeError, "an unsigned int is expected"); | |
821 | } | |
822 | return 0; | |
d55e5bfc RD |
823 | } |
824 | #else | |
c370783e RD |
825 | SWIGSTATICINLINE(unsigned int) |
826 | SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val) | |
827 | { | |
828 | return SWIG_AsVal_unsigned_SS_long(obj,(unsigned long *)val); | |
829 | } | |
d55e5bfc RD |
830 | #endif |
831 | ||
832 | ||
c370783e RD |
833 | SWIGSTATICINLINE(unsigned int) |
834 | SWIG_As_unsigned_SS_int(PyObject* obj) | |
d55e5bfc | 835 | { |
c370783e RD |
836 | unsigned int v; |
837 | if (!SWIG_AsVal_unsigned_SS_int(obj, &v)) { | |
838 | /* | |
839 | this is needed to make valgrind/purify happier. the other | |
840 | solution is throw an exception, but since this code should work | |
841 | with plain C .... | |
842 | */ | |
843 | memset((void*)&v, 0, sizeof(unsigned int)); | |
d55e5bfc | 844 | } |
c370783e RD |
845 | return v; |
846 | } | |
847 | ||
848 | ||
849 | SWIGSTATICINLINE(int) | |
850 | SWIG_Check_unsigned_SS_int(PyObject* obj) | |
851 | { | |
852 | return SWIG_AsVal_unsigned_SS_int(obj, (unsigned int*)0); | |
d55e5bfc RD |
853 | } |
854 | ||
855 | wxString Log_TimeStamp(){ | |
856 | wxString msg; | |
857 | wxLog::TimeStamp(&msg); | |
858 | return msg; | |
859 | } | |
860 | void wxLog_Destroy(wxLog *self){ delete self; } | |
f78cc896 RD |
861 | // Make somce wrappers that double any % signs so they are 'escaped' |
862 | void wxPyLogFatalError(const wxString& msg) | |
863 | { | |
864 | wxString m(msg); | |
865 | m.Replace(wxT("%"), wxT("%%")); | |
866 | wxLogFatalError(m); | |
867 | } | |
868 | ||
869 | void wxPyLogError(const wxString& msg) | |
870 | { | |
871 | wxString m(msg); | |
872 | m.Replace(wxT("%"), wxT("%%")); | |
873 | wxLogError(m); | |
874 | } | |
875 | ||
876 | void wxPyLogWarning(const wxString& msg) | |
877 | { | |
878 | wxString m(msg); | |
879 | m.Replace(wxT("%"), wxT("%%")); | |
880 | wxLogWarning(m); | |
881 | } | |
882 | ||
883 | void wxPyLogMessage(const wxString& msg) | |
884 | { | |
885 | wxString m(msg); | |
886 | m.Replace(wxT("%"), wxT("%%")); | |
887 | wxLogMessage(m); | |
888 | } | |
889 | ||
890 | void wxPyLogInfo(const wxString& msg) | |
891 | { | |
892 | wxString m(msg); | |
893 | m.Replace(wxT("%"), wxT("%%")); | |
894 | wxLogInfo(m); | |
895 | } | |
896 | ||
897 | void wxPyLogDebug(const wxString& msg) | |
898 | { | |
899 | wxString m(msg); | |
900 | m.Replace(wxT("%"), wxT("%%")); | |
901 | wxLogDebug(m); | |
902 | } | |
903 | ||
904 | void wxPyLogVerbose(const wxString& msg) | |
905 | { | |
906 | wxString m(msg); | |
907 | m.Replace(wxT("%"), wxT("%%")); | |
908 | wxLogVerbose(m); | |
909 | } | |
910 | ||
911 | void wxPyLogStatus(const wxString& msg) | |
912 | { | |
913 | wxString m(msg); | |
914 | m.Replace(wxT("%"), wxT("%%")); | |
915 | wxLogStatus(m); | |
916 | } | |
917 | ||
918 | void wxPyLogStatusFrame(wxFrame *pFrame, const wxString& msg) | |
919 | { | |
920 | wxString m(msg); | |
921 | m.Replace(wxT("%"), wxT("%%")); | |
922 | wxLogStatus(pFrame, m); | |
923 | } | |
924 | ||
925 | void wxPyLogSysError(const wxString& msg) | |
926 | { | |
927 | wxString m(msg); | |
928 | m.Replace(wxT("%"), wxT("%%")); | |
929 | wxLogSysError(m); | |
930 | } | |
931 | ||
932 | void wxPyLogGeneric(unsigned long level, const wxString& msg) | |
933 | { | |
934 | wxString m(msg); | |
935 | m.Replace(wxT("%"), wxT("%%")); | |
936 | wxLogGeneric(level, m); | |
937 | } | |
938 | ||
939 | void wxPyLogTrace(unsigned long mask, const wxString& msg) | |
940 | { | |
941 | wxString m(msg); | |
942 | m.Replace(wxT("%"), wxT("%%")); | |
943 | wxLogTrace(mask, m); | |
944 | } | |
945 | ||
946 | void wxPyLogTrace(const wxString& mask, const wxString& msg) | |
947 | { | |
948 | wxString m(msg); | |
949 | m.Replace(wxT("%"), wxT("%%")); | |
950 | wxLogTrace(mask, m); | |
951 | } | |
952 | ||
953 | ||
d55e5bfc RD |
954 | |
955 | // A wxLog class that can be derived from in wxPython | |
956 | class wxPyLog : public wxLog { | |
957 | public: | |
958 | wxPyLog() : wxLog() {} | |
959 | ||
960 | virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) { | |
961 | bool found; | |
962 | bool blocked = wxPyBeginBlockThreads(); | |
963 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) { | |
964 | PyObject* s = wx2PyString(szString); | |
965 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t)); | |
966 | Py_DECREF(s); | |
967 | } | |
968 | wxPyEndBlockThreads(blocked); | |
969 | if (! found) | |
970 | wxLog::DoLog(level, szString, t); | |
971 | } | |
972 | ||
973 | virtual void DoLogString(const wxChar *szString, time_t t) { | |
974 | bool found; | |
975 | bool blocked = wxPyBeginBlockThreads(); | |
976 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) { | |
977 | PyObject* s = wx2PyString(szString); | |
978 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t)); | |
979 | Py_DECREF(s); | |
980 | } | |
981 | wxPyEndBlockThreads(blocked); | |
982 | if (! found) | |
983 | wxLog::DoLogString(szString, t); | |
984 | } | |
985 | ||
986 | PYPRIVATE; | |
987 | }; | |
988 | ||
989 | ||
990 | ||
991 | ||
992 | IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate); | |
993 | ||
994 | ||
995 | #include <wx/joystick.h> | |
996 | ||
997 | ||
998 | #if !wxUSE_JOYSTICK && !defined(__WXMSW__) | |
999 | // A C++ stub class for wxJoystick for platforms that don't have it. | |
1000 | class wxJoystick : public wxObject { | |
1001 | public: | |
1002 | wxJoystick(int joystick = wxJOYSTICK1) { | |
1003 | bool blocked = wxPyBeginBlockThreads(); | |
1004 | PyErr_SetString(PyExc_NotImplementedError, | |
1005 | "wxJoystick is not available on this platform."); | |
1006 | wxPyEndBlockThreads(blocked); | |
1007 | } | |
1008 | wxPoint GetPosition() { return wxPoint(-1,-1); } | |
1009 | int GetZPosition() { return -1; } | |
1010 | int GetButtonState() { return -1; } | |
1011 | int GetPOVPosition() { return -1; } | |
1012 | int GetPOVCTSPosition() { return -1; } | |
1013 | int GetRudderPosition() { return -1; } | |
1014 | int GetUPosition() { return -1; } | |
1015 | int GetVPosition() { return -1; } | |
1016 | int GetMovementThreshold() { return -1; } | |
1017 | void SetMovementThreshold(int threshold) {} | |
1018 | ||
b411df4a | 1019 | bool IsOk(void) { return false; } |
d55e5bfc RD |
1020 | int GetNumberJoysticks() { return -1; } |
1021 | int GetManufacturerId() { return -1; } | |
1022 | int GetProductId() { return -1; } | |
15817c7e | 1023 | wxString GetProductName() { return wxEmptyString; } |
d55e5bfc RD |
1024 | int GetXMin() { return -1; } |
1025 | int GetYMin() { return -1; } | |
1026 | int GetZMin() { return -1; } | |
1027 | int GetXMax() { return -1; } | |
1028 | int GetYMax() { return -1; } | |
1029 | int GetZMax() { return -1; } | |
1030 | int GetNumberButtons() { return -1; } | |
1031 | int GetNumberAxes() { return -1; } | |
1032 | int GetMaxButtons() { return -1; } | |
1033 | int GetMaxAxes() { return -1; } | |
1034 | int GetPollingMin() { return -1; } | |
1035 | int GetPollingMax() { return -1; } | |
1036 | int GetRudderMin() { return -1; } | |
1037 | int GetRudderMax() { return -1; } | |
1038 | int GetUMin() { return -1; } | |
1039 | int GetUMax() { return -1; } | |
1040 | int GetVMin() { return -1; } | |
1041 | int GetVMax() { return -1; } | |
1042 | ||
b411df4a RD |
1043 | bool HasRudder() { return false; } |
1044 | bool HasZ() { return false; } | |
1045 | bool HasU() { return false; } | |
1046 | bool HasV() { return false; } | |
1047 | bool HasPOV() { return false; } | |
1048 | bool HasPOV4Dir() { return false; } | |
1049 | bool HasPOVCTS() { return false; } | |
d55e5bfc | 1050 | |
b411df4a RD |
1051 | bool SetCapture(wxWindow* win, int pollingFreq = 0) { return false; } |
1052 | bool ReleaseCapture() { return false; } | |
d55e5bfc RD |
1053 | }; |
1054 | #endif | |
1055 | ||
1056 | ||
1057 | #include <wx/sound.h> | |
1058 | ||
1059 | ||
1060 | #if !wxUSE_SOUND | |
1061 | // A C++ stub class for wxWave for platforms that don't have it. | |
1062 | class wxSound : public wxObject | |
1063 | { | |
1064 | public: | |
1065 | wxSound() { | |
1066 | bool blocked = wxPyBeginBlockThreads(); | |
1067 | PyErr_SetString(PyExc_NotImplementedError, | |
1068 | "wxSound is not available on this platform."); | |
1069 | wxPyEndBlockThreads(blocked); | |
1070 | } | |
0346c964 | 1071 | wxSound(const wxString&/*, bool*/) { |
d55e5bfc RD |
1072 | bool blocked = wxPyBeginBlockThreads(); |
1073 | PyErr_SetString(PyExc_NotImplementedError, | |
1074 | "wxSound is not available on this platform."); | |
1075 | wxPyEndBlockThreads(blocked); | |
1076 | } | |
1077 | wxSound(int, const wxByte*) { | |
1078 | bool blocked = wxPyBeginBlockThreads(); | |
1079 | PyErr_SetString(PyExc_NotImplementedError, | |
1080 | "wxSound is not available on this platform."); | |
1081 | wxPyEndBlockThreads(blocked); | |
1082 | } | |
1083 | ||
1084 | ~wxSound() {}; | |
1085 | ||
0346c964 | 1086 | bool Create(const wxString&/*, bool*/) { return false; } |
d55e5bfc RD |
1087 | bool Create(int, const wxByte*) { return false; }; |
1088 | bool IsOk() { return false; }; | |
1089 | bool Play(unsigned) const { return false; } | |
1090 | static bool Play(const wxString&, unsigned) { return false; } | |
1091 | static void Stop() {} | |
1092 | }; | |
1093 | ||
1094 | #endif | |
1095 | ||
0346c964 RD |
1096 | wxSound *new_wxSound(wxString const &fileName){ |
1097 | if (fileName.Length() == 0) | |
1098 | return new wxSound; | |
1099 | else | |
1100 | return new wxSound(fileName); | |
1101 | } | |
1102 | wxSound *new_wxSound(PyObject *data){ | |
1103 | unsigned char* buffer; int size; | |
1104 | wxSound *sound = NULL; | |
1105 | ||
d55e5bfc | 1106 | bool blocked = wxPyBeginBlockThreads(); |
0346c964 RD |
1107 | if (!PyArg_Parse(data, "t#", &buffer, &size)) |
1108 | goto done; | |
1109 | sound = new wxSound(size, buffer); | |
1110 | done: | |
d55e5bfc | 1111 | wxPyEndBlockThreads(blocked); |
0346c964 RD |
1112 | return sound; |
1113 | } | |
1114 | bool wxSound_CreateFromData(wxSound *self,PyObject *data){ | |
1115 | #ifndef __WXMAC__ | |
1116 | unsigned char* buffer; | |
1117 | int size; | |
b411df4a | 1118 | bool rv = false; |
0346c964 RD |
1119 | |
1120 | bool blocked = wxPyBeginBlockThreads(); | |
1121 | if (!PyArg_Parse(data, "t#", &buffer, &size)) | |
1122 | goto done; | |
1123 | rv = self->Create(size, buffer); | |
1124 | done: | |
1125 | wxPyEndBlockThreads(blocked); | |
1126 | return rv; | |
1127 | #else | |
1128 | bool blocked = wxPyBeginBlockThreads(); | |
1129 | PyErr_SetString(PyExc_NotImplementedError, | |
1130 | "Create from data is not available on this platform."); | |
1131 | wxPyEndBlockThreads(blocked); | |
b411df4a | 1132 | return false; |
0346c964 | 1133 | #endif |
d55e5bfc RD |
1134 | } |
1135 | void Sound_Stop(){ wxPyRaiseNotImplemented(); } | |
1136 | ||
1137 | #include <wx/mimetype.h> | |
1138 | ||
1139 | PyObject *wxFileType_GetMimeType(wxFileType *self){ | |
1140 | wxString str; | |
1141 | if (self->GetMimeType(&str)) | |
1142 | return wx2PyString(str); | |
1143 | else | |
1144 | RETURN_NONE(); | |
1145 | } | |
1146 | PyObject *wxFileType_GetMimeTypes(wxFileType *self){ | |
1147 | wxArrayString arr; | |
1148 | if (self->GetMimeTypes(arr)) | |
1149 | return wxArrayString2PyList_helper(arr); | |
1150 | else | |
1151 | RETURN_NONE(); | |
1152 | } | |
1153 | PyObject *wxFileType_GetExtensions(wxFileType *self){ | |
1154 | wxArrayString arr; | |
1155 | if (self->GetExtensions(arr)) | |
1156 | return wxArrayString2PyList_helper(arr); | |
1157 | else | |
1158 | RETURN_NONE(); | |
1159 | } | |
1160 | wxIcon *wxFileType_GetIcon(wxFileType *self){ | |
1161 | wxIconLocation loc; | |
1162 | if (self->GetIcon(&loc)) | |
1163 | return new wxIcon(loc); | |
1164 | else | |
1165 | return NULL; | |
1166 | } | |
1167 | PyObject *wxFileType_GetIconInfo(wxFileType *self){ | |
1168 | wxIconLocation loc; | |
1169 | if (self->GetIcon(&loc)) { | |
1170 | wxString iconFile = loc.GetFileName(); | |
1171 | int iconIndex = -1; | |
1172 | ||
1173 | ||
1174 | ||
1175 | // Make a tuple and put the values in it | |
1176 | bool blocked = wxPyBeginBlockThreads(); | |
1177 | PyObject* tuple = PyTuple_New(3); | |
1178 | PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(loc), | |
b411df4a | 1179 | wxT("wxIcon"), true)); |
d55e5bfc RD |
1180 | PyTuple_SetItem(tuple, 1, wx2PyString(iconFile)); |
1181 | PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex)); | |
1182 | wxPyEndBlockThreads(blocked); | |
1183 | return tuple; | |
1184 | } | |
1185 | else | |
1186 | RETURN_NONE(); | |
1187 | } | |
1188 | PyObject *wxFileType_GetDescription(wxFileType *self){ | |
1189 | wxString str; | |
1190 | if (self->GetDescription(&str)) | |
1191 | return wx2PyString(str); | |
1192 | else | |
1193 | RETURN_NONE(); | |
1194 | } | |
1195 | PyObject *wxFileType_GetOpenCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
1196 | wxString str; | |
1197 | if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype))) | |
1198 | return wx2PyString(str); | |
1199 | else | |
1200 | RETURN_NONE(); | |
1201 | } | |
1202 | PyObject *wxFileType_GetPrintCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
1203 | wxString str; | |
1204 | if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype))) | |
1205 | return wx2PyString(str); | |
1206 | else | |
1207 | RETURN_NONE(); | |
1208 | } | |
1209 | PyObject *wxFileType_GetAllCommands(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
1210 | wxArrayString verbs; | |
1211 | wxArrayString commands; | |
1212 | if (self->GetAllCommands(&verbs, &commands, | |
1213 | wxFileType::MessageParameters(filename, mimetype))) { | |
1214 | bool blocked = wxPyBeginBlockThreads(); | |
1215 | PyObject* tuple = PyTuple_New(2); | |
1216 | PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs)); | |
1217 | PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands)); | |
1218 | wxPyEndBlockThreads(blocked); | |
1219 | return tuple; | |
1220 | } | |
1221 | else | |
1222 | RETURN_NONE(); | |
1223 | } | |
1224 | wxString FileType_ExpandCommand(wxString const &command,wxString const &filename,wxString const &mimetype){ | |
1225 | return wxFileType::ExpandCommand(command, | |
1226 | wxFileType::MessageParameters(filename, mimetype)); | |
1227 | } | |
1228 | PyObject *wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self){ | |
1229 | wxArrayString arr; | |
1230 | self->EnumAllFileTypes(arr); | |
1231 | return wxArrayString2PyList_helper(arr); | |
1232 | } | |
1233 | ||
1234 | #include <wx/artprov.h> | |
1235 | ||
1236 | static const wxString wxPyART_TOOLBAR(wxART_TOOLBAR); | |
1237 | static const wxString wxPyART_MENU(wxART_MENU); | |
1238 | static const wxString wxPyART_FRAME_ICON(wxART_FRAME_ICON); | |
1239 | static const wxString wxPyART_CMN_DIALOG(wxART_CMN_DIALOG); | |
1240 | static const wxString wxPyART_HELP_BROWSER(wxART_HELP_BROWSER); | |
1241 | static const wxString wxPyART_MESSAGE_BOX(wxART_MESSAGE_BOX); | |
4cf4100f | 1242 | static const wxString wxPyART_BUTTON(wxART_BUTTON); |
d55e5bfc RD |
1243 | static const wxString wxPyART_OTHER(wxART_OTHER); |
1244 | static const wxString wxPyART_ADD_BOOKMARK(wxART_ADD_BOOKMARK); | |
1245 | static const wxString wxPyART_DEL_BOOKMARK(wxART_DEL_BOOKMARK); | |
1246 | static const wxString wxPyART_HELP_SIDE_PANEL(wxART_HELP_SIDE_PANEL); | |
1247 | static const wxString wxPyART_HELP_SETTINGS(wxART_HELP_SETTINGS); | |
1248 | static const wxString wxPyART_HELP_BOOK(wxART_HELP_BOOK); | |
1249 | static const wxString wxPyART_HELP_FOLDER(wxART_HELP_FOLDER); | |
1250 | static const wxString wxPyART_HELP_PAGE(wxART_HELP_PAGE); | |
1251 | static const wxString wxPyART_GO_BACK(wxART_GO_BACK); | |
1252 | static const wxString wxPyART_GO_FORWARD(wxART_GO_FORWARD); | |
1253 | static const wxString wxPyART_GO_UP(wxART_GO_UP); | |
1254 | static const wxString wxPyART_GO_DOWN(wxART_GO_DOWN); | |
1255 | static const wxString wxPyART_GO_TO_PARENT(wxART_GO_TO_PARENT); | |
1256 | static const wxString wxPyART_GO_HOME(wxART_GO_HOME); | |
1257 | static const wxString wxPyART_FILE_OPEN(wxART_FILE_OPEN); | |
1258 | static const wxString wxPyART_PRINT(wxART_PRINT); | |
1259 | static const wxString wxPyART_HELP(wxART_HELP); | |
1260 | static const wxString wxPyART_TIP(wxART_TIP); | |
1261 | static const wxString wxPyART_REPORT_VIEW(wxART_REPORT_VIEW); | |
1262 | static const wxString wxPyART_LIST_VIEW(wxART_LIST_VIEW); | |
1263 | static const wxString wxPyART_NEW_DIR(wxART_NEW_DIR); | |
f78cc896 RD |
1264 | static const wxString wxPyART_HARDDISK(wxART_HARDDISK); |
1265 | static const wxString wxPyART_FLOPPY(wxART_FLOPPY); | |
1266 | static const wxString wxPyART_CDROM(wxART_CDROM); | |
1267 | static const wxString wxPyART_REMOVABLE(wxART_REMOVABLE); | |
d55e5bfc | 1268 | static const wxString wxPyART_FOLDER(wxART_FOLDER); |
f78cc896 | 1269 | static const wxString wxPyART_FOLDER_OPEN(wxART_FOLDER_OPEN); |
d55e5bfc RD |
1270 | static const wxString wxPyART_GO_DIR_UP(wxART_GO_DIR_UP); |
1271 | static const wxString wxPyART_EXECUTABLE_FILE(wxART_EXECUTABLE_FILE); | |
1272 | static const wxString wxPyART_NORMAL_FILE(wxART_NORMAL_FILE); | |
1273 | static const wxString wxPyART_TICK_MARK(wxART_TICK_MARK); | |
1274 | static const wxString wxPyART_CROSS_MARK(wxART_CROSS_MARK); | |
1275 | static const wxString wxPyART_ERROR(wxART_ERROR); | |
1276 | static const wxString wxPyART_QUESTION(wxART_QUESTION); | |
1277 | static const wxString wxPyART_WARNING(wxART_WARNING); | |
1278 | static const wxString wxPyART_INFORMATION(wxART_INFORMATION); | |
1279 | static const wxString wxPyART_MISSING_IMAGE(wxART_MISSING_IMAGE); | |
1280 | // Python aware wxArtProvider | |
1281 | class wxPyArtProvider : public wxArtProvider { | |
1282 | public: | |
1283 | ||
1284 | virtual wxBitmap CreateBitmap(const wxArtID& id, | |
1285 | const wxArtClient& client, | |
1286 | const wxSize& size) { | |
1287 | wxBitmap rval = wxNullBitmap; | |
1288 | bool blocked = wxPyBeginBlockThreads(); | |
1289 | if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) { | |
1290 | PyObject* so = wxPyConstructObject((void*)&size, wxT("wxSize"), 0); | |
1291 | PyObject* ro; | |
1292 | wxBitmap* ptr; | |
1293 | PyObject* s1, *s2; | |
1294 | s1 = wx2PyString(id); | |
1295 | s2 = wx2PyString(client); | |
1296 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so)); | |
1297 | Py_DECREF(so); | |
1298 | Py_DECREF(s1); | |
1299 | Py_DECREF(s2); | |
1300 | if (ro) { | |
1301 | if (wxPyConvertSwigPtr(ro, (void**)&ptr, wxT("wxBitmap"))) | |
1302 | rval = *ptr; | |
1303 | Py_DECREF(ro); | |
1304 | } | |
1305 | } | |
1306 | wxPyEndBlockThreads(blocked); | |
1307 | return rval; | |
1308 | } | |
1309 | ||
1310 | PYPRIVATE; | |
1311 | }; | |
1312 | ||
1313 | void wxPyArtProvider_Destroy(wxPyArtProvider *self){ delete self; } | |
1314 | ||
1315 | ||
1316 | ||
1317 | static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) { | |
1318 | PyObject* ret = PyTuple_New(3); | |
1319 | if (ret) { | |
1320 | PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag)); | |
1321 | PyTuple_SET_ITEM(ret, 1, wx2PyString(str)); | |
1322 | PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index)); | |
1323 | } | |
1324 | return ret; | |
1325 | } | |
1326 | ||
1327 | PyObject *wxConfigBase_GetFirstGroup(wxConfigBase *self){ | |
1328 | bool cont; | |
1329 | long index = 0; | |
1330 | wxString value; | |
1331 | ||
1332 | cont = self->GetFirstGroup(value, index); | |
1333 | return __EnumerationHelper(cont, value, index); | |
1334 | } | |
1335 | PyObject *wxConfigBase_GetNextGroup(wxConfigBase *self,long index){ | |
1336 | bool cont; | |
1337 | wxString value; | |
1338 | ||
1339 | cont = self->GetNextGroup(value, index); | |
1340 | return __EnumerationHelper(cont, value, index); | |
1341 | } | |
1342 | PyObject *wxConfigBase_GetFirstEntry(wxConfigBase *self){ | |
1343 | bool cont; | |
1344 | long index = 0; | |
1345 | wxString value; | |
1346 | ||
1347 | cont = self->GetFirstEntry(value, index); | |
1348 | return __EnumerationHelper(cont, value, index); | |
1349 | } | |
1350 | PyObject *wxConfigBase_GetNextEntry(wxConfigBase *self,long index){ | |
1351 | bool cont; | |
1352 | wxString value; | |
1353 | ||
1354 | cont = self->GetNextEntry(value, index); | |
1355 | return __EnumerationHelper(cont, value, index); | |
1356 | } | |
1357 | long wxConfigBase_ReadInt(wxConfigBase *self,wxString const &key,long defaultVal){ | |
1358 | long rv; | |
1359 | self->Read(key, &rv, defaultVal); | |
1360 | return rv; | |
1361 | } | |
1362 | ||
c370783e RD |
1363 | // See my_fragments.i |
1364 | SWIGSTATICINLINE(int) | |
1365 | SWIG_AsVal_double(PyObject *obj, double* val) | |
d55e5bfc | 1366 | { |
c370783e RD |
1367 | if (PyNumber_Check(obj)) { |
1368 | if (val) *val = PyFloat_AsDouble(obj); | |
1369 | return 1; | |
1370 | } | |
d55e5bfc RD |
1371 | else { |
1372 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
1373 | obj->ob_type->tp_name); | |
1374 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
1375 | Py_DECREF(errmsg); | |
d55e5bfc | 1376 | } |
c370783e | 1377 | return 0; |
d55e5bfc RD |
1378 | } |
1379 | ||
1380 | ||
c370783e RD |
1381 | SWIGSTATICINLINE(double) |
1382 | SWIG_As_double(PyObject* obj) | |
d55e5bfc | 1383 | { |
c370783e RD |
1384 | double v; |
1385 | if (!SWIG_AsVal_double(obj, &v)) { | |
1386 | /* | |
1387 | this is needed to make valgrind/purify happier. the other | |
1388 | solution is throw an exception, but since this code should work | |
1389 | with plain C .... | |
1390 | */ | |
1391 | memset((void*)&v, 0, sizeof(double)); | |
d55e5bfc | 1392 | } |
c370783e RD |
1393 | return v; |
1394 | } | |
1395 | ||
1396 | ||
1397 | SWIGSTATICINLINE(int) | |
1398 | SWIG_Check_double(PyObject* obj) | |
1399 | { | |
1400 | return SWIG_AsVal_double(obj, (double*)0); | |
d55e5bfc RD |
1401 | } |
1402 | ||
1403 | double wxConfigBase_ReadFloat(wxConfigBase *self,wxString const &key,double defaultVal){ | |
1404 | double rv; | |
1405 | self->Read(key, &rv, defaultVal); | |
1406 | return rv; | |
1407 | } | |
1408 | bool wxConfigBase_ReadBool(wxConfigBase *self,wxString const &key,bool defaultVal){ | |
1409 | bool rv; | |
1410 | self->Read(key, &rv, defaultVal); | |
1411 | return rv; | |
1412 | } | |
1413 | ||
1414 | #include <wx/datetime.h> | |
1415 | ||
1416 | ||
1417 | static const wxString wxPyDateFormatStr(wxT("%c")); | |
1418 | static const wxString wxPyTimeSpanFormatStr(wxT("%H:%M:%S")); | |
1419 | ||
1420 | #define LOCAL_TZ wxDateTime::Local | |
1421 | ||
1422 | ||
1423 | #if UINT_MAX < LONG_MAX | |
c370783e RD |
1424 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ |
1425 | #define SWIG_From_unsigned_SS_int SWIG_From_long | |
1426 | /*@@*/ | |
d55e5bfc | 1427 | #else |
c370783e RD |
1428 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ |
1429 | #define SWIG_From_unsigned_SS_int SWIG_From_unsigned_SS_long | |
1430 | /*@@*/ | |
d55e5bfc RD |
1431 | #endif |
1432 | ||
1433 | wxDateTime wxDateTime___add____SWIG_0(wxDateTime *self,wxTimeSpan const &other){ return *self + other; } | |
1434 | wxDateTime wxDateTime___add____SWIG_1(wxDateTime *self,wxDateSpan const &other){ return *self + other; } | |
1435 | wxTimeSpan wxDateTime___sub____SWIG_0(wxDateTime *self,wxDateTime const &other){ return *self - other; } | |
1436 | wxDateTime wxDateTime___sub____SWIG_1(wxDateTime *self,wxTimeSpan const &other){ return *self - other; } | |
1437 | wxDateTime wxDateTime___sub____SWIG_2(wxDateTime *self,wxDateSpan const &other){ return *self - other; } | |
1438 | bool wxDateTime___lt__(wxDateTime *self,wxDateTime const *other){ | |
1439 | if (!other || !self->IsValid() || !other->IsValid()) return self < other; | |
1440 | return (*self < *other); | |
1441 | } | |
1442 | bool wxDateTime___le__(wxDateTime *self,wxDateTime const *other){ | |
1443 | if (!other || !self->IsValid() || !other->IsValid()) return self <= other; | |
1444 | return (*self <= *other); | |
1445 | } | |
1446 | bool wxDateTime___gt__(wxDateTime *self,wxDateTime const *other){ | |
1447 | if (!other || !self->IsValid() || !other->IsValid()) return self > other; | |
1448 | return (*self > *other); | |
1449 | } | |
1450 | bool wxDateTime___ge__(wxDateTime *self,wxDateTime const *other){ | |
1451 | if (!other || !self->IsValid() || !other->IsValid()) return self >= other; | |
1452 | return (*self >= *other); | |
1453 | } | |
1454 | bool wxDateTime___eq__(wxDateTime *self,wxDateTime const *other){ | |
1455 | if (!other || !self->IsValid() || !other->IsValid()) return self == other; | |
1456 | return (*self == *other); | |
1457 | } | |
1458 | bool wxDateTime___ne__(wxDateTime *self,wxDateTime const *other){ | |
1459 | if (!other || !self->IsValid() || !other->IsValid()) return self != other; | |
1460 | return (*self != *other); | |
1461 | } | |
1462 | int wxDateTime_ParseRfc822Date(wxDateTime *self,wxString const &date){ | |
1463 | const wxChar* rv; | |
1464 | const wxChar* _date = date; | |
1465 | rv = self->ParseRfc822Date(_date); | |
1466 | if (rv == NULL) return -1; | |
1467 | return rv - _date; | |
1468 | } | |
1469 | int wxDateTime_ParseFormat(wxDateTime *self,wxString const &date,wxString const &format,wxDateTime const &dateDef){ | |
1470 | const wxChar* rv; | |
1471 | const wxChar* _date = date; | |
1472 | rv = self->ParseFormat(_date, format, dateDef); | |
1473 | if (rv == NULL) return -1; | |
1474 | return rv - _date; | |
1475 | } | |
1476 | int wxDateTime_ParseDateTime(wxDateTime *self,wxString const &datetime){ | |
1477 | const wxChar* rv; | |
1478 | const wxChar* _datetime = datetime; | |
1479 | rv = self->ParseDateTime(_datetime); | |
1480 | if (rv == NULL) return -1; | |
1481 | return rv - _datetime; | |
1482 | } | |
1483 | int wxDateTime_ParseDate(wxDateTime *self,wxString const &date){ | |
1484 | const wxChar* rv; | |
1485 | const wxChar* _date = date; | |
1486 | rv = self->ParseDate(_date); | |
1487 | if (rv == NULL) return -1; | |
1488 | return rv - _date; | |
1489 | } | |
1490 | int wxDateTime_ParseTime(wxDateTime *self,wxString const &time){ | |
1491 | const wxChar* rv; | |
1492 | const wxChar* _time = time; | |
1493 | rv = self->ParseTime(_time); | |
1494 | if (rv == NULL) return -1; | |
1495 | return rv - _time; | |
1496 | } | |
1497 | wxTimeSpan wxTimeSpan___add__(wxTimeSpan *self,wxTimeSpan const &other){ return *self + other; } | |
1498 | wxTimeSpan wxTimeSpan___sub__(wxTimeSpan *self,wxTimeSpan const &other){ return *self - other; } | |
1499 | wxTimeSpan wxTimeSpan___mul__(wxTimeSpan *self,int n){ return *self * n; } | |
1500 | wxTimeSpan wxTimeSpan___rmul__(wxTimeSpan *self,int n){ return n * *self; } | |
b411df4a RD |
1501 | bool wxTimeSpan___lt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self < *other) : false; } |
1502 | bool wxTimeSpan___le__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self <= *other) : false; } | |
1503 | bool wxTimeSpan___gt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self > *other) : true; } | |
1504 | bool wxTimeSpan___ge__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self >= *other) : true; } | |
1505 | bool wxTimeSpan___eq__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self == *other) : false; } | |
1506 | bool wxTimeSpan___ne__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self != *other) : true; } | |
d55e5bfc RD |
1507 | wxDateSpan wxDateSpan___add__(wxDateSpan *self,wxDateSpan const &other){ return *self + other; } |
1508 | wxDateSpan wxDateSpan___sub__(wxDateSpan *self,wxDateSpan const &other){ return *self - other; } | |
1509 | wxDateSpan wxDateSpan___mul__(wxDateSpan *self,int n){ return *self * n; } | |
1510 | wxDateSpan wxDateSpan___rmul__(wxDateSpan *self,int n){ return n * *self; } | |
b411df4a RD |
1511 | bool wxDateSpan___eq__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self == *other) : false; } |
1512 | bool wxDateSpan___ne__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self != *other) : true; } | |
d55e5bfc RD |
1513 | |
1514 | #include <wx/dataobj.h> | |
1515 | ||
68e533f8 RD |
1516 | PyObject *wxDataObject_GetAllFormats(wxDataObject *self,wxDataObject::Direction dir){ |
1517 | size_t count = self->GetFormatCount(dir); | |
1518 | wxDataFormat* formats = new wxDataFormat[count]; | |
1519 | self->GetAllFormats(formats, dir); | |
1520 | ||
1521 | bool blocked = wxPyBeginBlockThreads(); | |
1522 | PyObject* list = PyList_New(count); | |
1523 | for (size_t i=0; i<count; i++) { | |
1524 | wxDataFormat* format = new wxDataFormat(formats[i]); | |
b411df4a | 1525 | PyObject* obj = wxPyConstructObject((void*)format, wxT("wxDataFormat"), true); |
68e533f8 RD |
1526 | PyList_Append(list, obj); |
1527 | Py_DECREF(obj); | |
1528 | } | |
1529 | wxPyEndBlockThreads(blocked); | |
1530 | delete [] formats; | |
1531 | return list; | |
1532 | } | |
1533 | PyObject *wxDataObject_GetDataHere(wxDataObject *self,wxDataFormat const &format){ | |
1534 | PyObject* rval = NULL; | |
1535 | size_t size = self->GetDataSize(format); | |
1536 | bool blocked = wxPyBeginBlockThreads(); | |
1537 | if (size) { | |
1538 | char* buf = new char[size]; | |
1539 | if (self->GetDataHere(format, buf)) | |
1540 | rval = PyString_FromStringAndSize(buf, size); | |
1541 | delete [] buf; | |
1542 | } | |
1543 | if (! rval) { | |
1544 | rval = Py_None; | |
1545 | Py_INCREF(rval); | |
1546 | } | |
1547 | wxPyEndBlockThreads(blocked); | |
1548 | return rval; | |
1549 | } | |
1550 | bool wxDataObject_SetData(wxDataObject *self,wxDataFormat const &format,PyObject *data){ | |
1551 | bool rval; | |
1552 | bool blocked = wxPyBeginBlockThreads(); | |
1553 | if (PyString_Check(data)) { | |
1554 | rval = self->SetData(format, PyString_Size(data), PyString_AsString(data)); | |
1555 | } | |
1556 | else { | |
1557 | // raise a TypeError if not a string | |
1558 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
b411df4a | 1559 | rval = false; |
68e533f8 RD |
1560 | } |
1561 | wxPyEndBlockThreads(blocked); | |
1562 | return rval; | |
1563 | } | |
1564 | PyObject *wxDataObjectSimple_GetDataHere(wxDataObjectSimple *self){ | |
1565 | PyObject* rval = NULL; | |
1566 | size_t size = self->GetDataSize(); | |
1567 | bool blocked = wxPyBeginBlockThreads(); | |
1568 | if (size) { | |
1569 | char* buf = new char[size]; | |
1570 | if (self->GetDataHere(buf)) | |
1571 | rval = PyString_FromStringAndSize(buf, size); | |
1572 | delete [] buf; | |
1573 | } | |
1574 | if (! rval) { | |
1575 | rval = Py_None; | |
1576 | Py_INCREF(rval); | |
1577 | } | |
1578 | wxPyEndBlockThreads(blocked); | |
1579 | return rval; | |
1580 | } | |
1581 | bool wxDataObjectSimple_SetData(wxDataObjectSimple *self,PyObject *data){ | |
1582 | bool rval; | |
1583 | bool blocked = wxPyBeginBlockThreads(); | |
1584 | if (PyString_Check(data)) { | |
1585 | rval = self->SetData(PyString_Size(data), PyString_AsString(data)); | |
1586 | } | |
1587 | else { | |
1588 | // raise a TypeError if not a string | |
1589 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
b411df4a | 1590 | rval = false; |
68e533f8 RD |
1591 | } |
1592 | wxPyEndBlockThreads(blocked); | |
1593 | return rval; | |
1594 | } | |
d55e5bfc RD |
1595 | // Create a new class for wxPython to use |
1596 | class wxPyDataObjectSimple : public wxDataObjectSimple { | |
1597 | public: | |
1598 | wxPyDataObjectSimple(const wxDataFormat& format = wxFormatInvalid) | |
1599 | : wxDataObjectSimple(format) {} | |
1600 | ||
1601 | DEC_PYCALLBACK_SIZET__const(GetDataSize); | |
1602 | bool GetDataHere(void *buf) const; | |
1603 | bool SetData(size_t len, const void *buf) const; | |
1604 | PYPRIVATE; | |
1605 | }; | |
1606 | ||
1607 | IMP_PYCALLBACK_SIZET__const(wxPyDataObjectSimple, wxDataObjectSimple, GetDataSize); | |
1608 | ||
1609 | bool wxPyDataObjectSimple::GetDataHere(void *buf) const { | |
1610 | // We need to get the data for this object and write it to buf. I think | |
1611 | // the best way to do this for wxPython is to have the Python method | |
1612 | // return either a string or None and then act appropriately with the | |
1613 | // C++ version. | |
1614 | ||
b411df4a | 1615 | bool rval = false; |
d55e5bfc RD |
1616 | bool blocked = wxPyBeginBlockThreads(); |
1617 | if (wxPyCBH_findCallback(m_myInst, "GetDataHere")) { | |
1618 | PyObject* ro; | |
1619 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
1620 | if (ro) { | |
1621 | rval = (ro != Py_None && PyString_Check(ro)); | |
1622 | if (rval) | |
1623 | memcpy(buf, PyString_AsString(ro), PyString_Size(ro)); | |
1624 | Py_DECREF(ro); | |
1625 | } | |
1626 | } | |
1627 | wxPyEndBlockThreads(blocked); | |
1628 | return rval; | |
1629 | } | |
1630 | ||
1631 | bool wxPyDataObjectSimple::SetData(size_t len, const void *buf) const{ | |
1632 | // For this one we simply need to make a string from buf and len | |
1633 | // and send it to the Python method. | |
b411df4a | 1634 | bool rval = false; |
d55e5bfc RD |
1635 | bool blocked = wxPyBeginBlockThreads(); |
1636 | if (wxPyCBH_findCallback(m_myInst, "SetData")) { | |
1637 | PyObject* data = PyString_FromStringAndSize((char*)buf, len); | |
1638 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", data)); | |
1639 | Py_DECREF(data); | |
1640 | } | |
1641 | wxPyEndBlockThreads(blocked); | |
1642 | return rval; | |
1643 | } | |
1644 | ||
1645 | // Create a new class for wxPython to use | |
1646 | class wxPyTextDataObject : public wxTextDataObject { | |
1647 | public: | |
1648 | wxPyTextDataObject(const wxString& text = wxPyEmptyString) | |
1649 | : wxTextDataObject(text) {} | |
1650 | ||
1651 | DEC_PYCALLBACK_SIZET__const(GetTextLength); | |
1652 | DEC_PYCALLBACK_STRING__const(GetText); | |
1653 | DEC_PYCALLBACK__STRING(SetText); | |
1654 | PYPRIVATE; | |
1655 | }; | |
1656 | ||
1657 | IMP_PYCALLBACK_SIZET__const(wxPyTextDataObject, wxTextDataObject, GetTextLength); | |
1658 | IMP_PYCALLBACK_STRING__const(wxPyTextDataObject, wxTextDataObject, GetText); | |
1659 | IMP_PYCALLBACK__STRING(wxPyTextDataObject, wxTextDataObject, SetText); | |
1660 | ||
1661 | ||
1662 | // Create a new class for wxPython to use | |
1663 | class wxPyBitmapDataObject : public wxBitmapDataObject { | |
1664 | public: | |
1665 | wxPyBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap) | |
1666 | : wxBitmapDataObject(bitmap) {} | |
1667 | ||
1668 | wxBitmap GetBitmap() const; | |
1669 | void SetBitmap(const wxBitmap& bitmap); | |
1670 | PYPRIVATE; | |
1671 | }; | |
1672 | ||
1673 | wxBitmap wxPyBitmapDataObject::GetBitmap() const { | |
1674 | wxBitmap* rval = &wxNullBitmap; | |
1675 | bool blocked = wxPyBeginBlockThreads(); | |
1676 | if (wxPyCBH_findCallback(m_myInst, "GetBitmap")) { | |
1677 | PyObject* ro; | |
1678 | wxBitmap* ptr; | |
1679 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
1680 | if (ro) { | |
1681 | if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxBitmap"))) | |
1682 | rval = ptr; | |
1683 | Py_DECREF(ro); | |
1684 | } | |
1685 | } | |
1686 | wxPyEndBlockThreads(blocked); | |
1687 | return *rval; | |
1688 | } | |
68e533f8 | 1689 | |
d55e5bfc RD |
1690 | void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) { |
1691 | bool blocked = wxPyBeginBlockThreads(); | |
1692 | if (wxPyCBH_findCallback(m_myInst, "SetBitmap")) { | |
b411df4a | 1693 | PyObject* bo = wxPyConstructObject((void*)&bitmap, wxT("wxBitmap"), false); |
d55e5bfc RD |
1694 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", bo)); |
1695 | Py_DECREF(bo); | |
1696 | } | |
1697 | wxPyEndBlockThreads(blocked); | |
1698 | } | |
1699 | ||
d55e5bfc | 1700 | bool wxCustomDataObject_SetData(wxCustomDataObject *self,PyObject *data){ |
68e533f8 RD |
1701 | bool rval; |
1702 | bool blocked = wxPyBeginBlockThreads(); | |
d55e5bfc | 1703 | if (PyString_Check(data)) { |
68e533f8 | 1704 | rval = self->SetData(PyString_Size(data), PyString_AsString(data)); |
d55e5bfc RD |
1705 | } |
1706 | else { | |
1707 | // raise a TypeError if not a string | |
1708 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
b411df4a | 1709 | rval = false; |
d55e5bfc | 1710 | } |
68e533f8 RD |
1711 | wxPyEndBlockThreads(blocked); |
1712 | return rval; | |
d55e5bfc RD |
1713 | } |
1714 | PyObject *wxCustomDataObject_GetData(wxCustomDataObject *self){ | |
68e533f8 RD |
1715 | PyObject* obj; |
1716 | bool blocked = wxPyBeginBlockThreads(); | |
1717 | obj = PyString_FromStringAndSize((char*)self->GetData(), self->GetSize()); | |
a07a67e6 RD |
1718 | wxPyEndBlockThreads(blocked); |
1719 | return obj; | |
d55e5bfc RD |
1720 | } |
1721 | ||
1722 | #include <wx/metafile.h> | |
1723 | ||
1724 | ||
1725 | IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback); | |
1726 | ||
1727 | ||
1728 | IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave); | |
1729 | IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter); | |
1730 | IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver); | |
1731 | IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData); | |
1732 | IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop); | |
1733 | ||
1734 | ||
1735 | class wxPyTextDropTarget : public wxTextDropTarget { | |
1736 | public: | |
1737 | wxPyTextDropTarget() {} | |
1738 | ||
1739 | DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText); | |
1740 | ||
1741 | DEC_PYCALLBACK__(OnLeave); | |
1742 | DEC_PYCALLBACK_DR_2WXCDR(OnEnter); | |
1743 | DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); | |
1744 | DEC_PYCALLBACK_DR_2WXCDR(OnData); | |
1745 | DEC_PYCALLBACK_BOOL_INTINT(OnDrop); | |
1746 | ||
1747 | PYPRIVATE; | |
1748 | }; | |
1749 | ||
1750 | IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText); | |
1751 | IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave); | |
1752 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter); | |
1753 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver); | |
1754 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData); | |
1755 | IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop); | |
1756 | ||
1757 | ||
1758 | ||
1759 | class wxPyFileDropTarget : public wxFileDropTarget { | |
1760 | public: | |
1761 | wxPyFileDropTarget() {} | |
1762 | ||
1763 | virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames); | |
1764 | ||
1765 | DEC_PYCALLBACK__(OnLeave); | |
1766 | DEC_PYCALLBACK_DR_2WXCDR(OnEnter); | |
1767 | DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); | |
1768 | DEC_PYCALLBACK_DR_2WXCDR(OnData); | |
1769 | DEC_PYCALLBACK_BOOL_INTINT(OnDrop); | |
1770 | ||
1771 | PYPRIVATE; | |
1772 | }; | |
1773 | ||
1774 | bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y, | |
1775 | const wxArrayString& filenames) { | |
b411df4a | 1776 | bool rval = false; |
d55e5bfc RD |
1777 | bool blocked = wxPyBeginBlockThreads(); |
1778 | if (wxPyCBH_findCallback(m_myInst, "OnDropFiles")) { | |
1779 | PyObject* list = wxArrayString2PyList_helper(filenames); | |
1780 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",x,y,list)); | |
1781 | Py_DECREF(list); | |
1782 | } | |
1783 | wxPyEndBlockThreads(blocked); | |
1784 | return rval; | |
1785 | } | |
1786 | ||
1787 | ||
1788 | ||
1789 | IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave); | |
1790 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter); | |
1791 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver); | |
1792 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData); | |
1793 | IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop); | |
1794 | ||
1795 | ||
1796 | ||
1797 | ||
1798 | bool wxClipboardLocker___nonzero__(wxClipboardLocker *self){ return !!(*self); } | |
1799 | ||
6923d0a9 | 1800 | #include <wx/display.h> |
d55e5bfc | 1801 | |
b411df4a RD |
1802 | bool wxVideoMode___eq__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self == *other) : false; } |
1803 | bool wxVideoMode___ne__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self != *other) : true; } | |
6923d0a9 RD |
1804 | |
1805 | // dummy version of wxDisplay for when it is not enabled in the wxWidgets build | |
1806 | #if !wxUSE_DISPLAY | |
1807 | #include <wx/dynarray.h> | |
1808 | #include <wx/vidmode.h> | |
1809 | ||
1810 | WX_DECLARE_OBJARRAY(wxVideoMode, wxArrayVideoModes); | |
1811 | #include "wx/arrimpl.cpp" | |
1812 | WX_DEFINE_OBJARRAY(wxArrayVideoModes); | |
1813 | const wxVideoMode wxDefaultVideoMode; | |
1814 | ||
1815 | class wxDisplay | |
1816 | { | |
1817 | public: | |
1818 | wxDisplay(size_t index = 0) { wxPyRaiseNotImplemented(); } | |
1819 | ~wxDisplay() {} | |
1820 | ||
1821 | static size_t GetCount() | |
1822 | { wxPyRaiseNotImplemented(); return 0; } | |
1823 | ||
1824 | static int GetFromPoint(const wxPoint& pt) | |
1825 | { wxPyRaiseNotImplemented(); return wxNOT_FOUND; } | |
1826 | static int GetFromWindow(wxWindow *window) | |
1827 | { wxPyRaiseNotImplemented(); return wxNOT_FOUND; } | |
1828 | ||
1829 | virtual bool IsOk() const { return false; } | |
1830 | virtual wxRect GetGeometry() const { wxRect r; return r; } | |
1831 | virtual wxString GetName() const { return wxEmptyString; } | |
1832 | bool IsPrimary() const { return false; } | |
1833 | ||
1834 | wxArrayVideoModes GetModes(const wxVideoMode& mode = wxDefaultVideoMode) | |
1835 | { wxArrayVideoModes a; return a; } | |
1836 | ||
1837 | virtual wxVideoMode GetCurrentMode() const | |
1838 | { return wxDefaultVideoMode; } | |
1839 | ||
1840 | virtual bool ChangeMode(const wxVideoMode& mode = wxDefaultVideoMode) | |
1841 | { return false; } | |
1842 | ||
1843 | void ResetMode() {} | |
1844 | }; | |
1845 | #endif | |
1846 | ||
d55e5bfc RD |
1847 | int Display_GetFromWindow(wxWindow *window){ wxPyRaiseNotImplemented(); return wxNOT_FOUND; } |
1848 | PyObject *wxDisplay_GetModes(wxDisplay *self,wxVideoMode const &mode){ | |
1849 | PyObject* pyList = NULL; | |
1850 | wxArrayVideoModes arr = self->GetModes(mode); | |
1851 | bool blocked = wxPyBeginBlockThreads(); | |
1852 | pyList = PyList_New(0); | |
1853 | for (int i=0; i < arr.GetCount(); i++) { | |
1854 | wxVideoMode* m = new wxVideoMode(arr.Item(i)); | |
1855 | PyObject* pyObj = wxPyConstructObject(m, wxT("wxVideoMode"), true); | |
1856 | PyList_Append(pyList, pyObj); | |
68e533f8 | 1857 | Py_DECREF(pyObj); |
d55e5bfc RD |
1858 | } |
1859 | wxPyEndBlockThreads(blocked); | |
1860 | return pyList; | |
1861 | } | |
070c48b4 RD |
1862 | |
1863 | #include <wx/stdpaths.h> | |
1864 | ||
8fb0e70a RD |
1865 | wxStandardPaths *StandardPaths_Get(){ |
1866 | return (wxStandardPaths*) &wxStandardPaths::Get(); | |
1867 | } | |
070c48b4 RD |
1868 | void wxStandardPaths_SetInstallPrefix(wxStandardPaths *self,wxString const &prefix){} |
1869 | wxString wxStandardPaths_GetInstallPrefix(wxStandardPaths *self){ return wxEmptyString; } | |
d55e5bfc RD |
1870 | #ifdef __cplusplus |
1871 | extern "C" { | |
1872 | #endif | |
c370783e | 1873 | static PyObject *_wrap_SystemSettings_GetColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1874 | PyObject *resultobj; |
1875 | int arg1 ; | |
1876 | wxColour result; | |
1877 | PyObject * obj0 = 0 ; | |
1878 | char *kwnames[] = { | |
1879 | (char *) "index", NULL | |
1880 | }; | |
1881 | ||
1882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetColour",kwnames,&obj0)) goto fail; | |
c370783e | 1883 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
1884 | if (PyErr_Occurred()) SWIG_fail; |
1885 | { | |
0439c23b | 1886 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1888 | result = wxSystemSettings::GetColour((wxSystemColour )arg1); | |
1889 | ||
1890 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1891 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
1892 | } |
1893 | { | |
1894 | wxColour * resultptr; | |
1895 | resultptr = new wxColour((wxColour &) result); | |
1896 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
1897 | } | |
1898 | return resultobj; | |
1899 | fail: | |
1900 | return NULL; | |
1901 | } | |
1902 | ||
1903 | ||
c370783e | 1904 | static PyObject *_wrap_SystemSettings_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1905 | PyObject *resultobj; |
1906 | int arg1 ; | |
1907 | wxFont result; | |
1908 | PyObject * obj0 = 0 ; | |
1909 | char *kwnames[] = { | |
1910 | (char *) "index", NULL | |
1911 | }; | |
1912 | ||
1913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetFont",kwnames,&obj0)) goto fail; | |
c370783e | 1914 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
1915 | if (PyErr_Occurred()) SWIG_fail; |
1916 | { | |
0439c23b | 1917 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1919 | result = wxSystemSettings::GetFont((wxSystemFont )arg1); | |
1920 | ||
1921 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1922 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
1923 | } |
1924 | { | |
1925 | wxFont * resultptr; | |
1926 | resultptr = new wxFont((wxFont &) result); | |
1927 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
1928 | } | |
1929 | return resultobj; | |
1930 | fail: | |
1931 | return NULL; | |
1932 | } | |
1933 | ||
1934 | ||
c370783e | 1935 | static PyObject *_wrap_SystemSettings_GetMetric(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1936 | PyObject *resultobj; |
1937 | int arg1 ; | |
1938 | int result; | |
1939 | PyObject * obj0 = 0 ; | |
1940 | char *kwnames[] = { | |
1941 | (char *) "index", NULL | |
1942 | }; | |
1943 | ||
1944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetMetric",kwnames,&obj0)) goto fail; | |
c370783e | 1945 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
1946 | if (PyErr_Occurred()) SWIG_fail; |
1947 | { | |
0439c23b | 1948 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1950 | result = (int)wxSystemSettings::GetMetric((wxSystemMetric )arg1); | |
1951 | ||
1952 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1953 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 1954 | } |
c370783e | 1955 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
1956 | return resultobj; |
1957 | fail: | |
1958 | return NULL; | |
1959 | } | |
1960 | ||
1961 | ||
c370783e | 1962 | static PyObject *_wrap_SystemSettings_HasFeature(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1963 | PyObject *resultobj; |
1964 | int arg1 ; | |
1965 | bool result; | |
1966 | PyObject * obj0 = 0 ; | |
1967 | char *kwnames[] = { | |
1968 | (char *) "index", NULL | |
1969 | }; | |
1970 | ||
1971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_HasFeature",kwnames,&obj0)) goto fail; | |
c370783e | 1972 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
1973 | if (PyErr_Occurred()) SWIG_fail; |
1974 | { | |
0439c23b | 1975 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1977 | result = (bool)wxSystemSettings::HasFeature((wxSystemFeature )arg1); | |
1978 | ||
1979 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1980 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
1981 | } |
1982 | { | |
1983 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1984 | } | |
1985 | return resultobj; | |
1986 | fail: | |
1987 | return NULL; | |
1988 | } | |
1989 | ||
1990 | ||
c370783e | 1991 | static PyObject *_wrap_SystemSettings_GetScreenType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1992 | PyObject *resultobj; |
1993 | int result; | |
1994 | char *kwnames[] = { | |
1995 | NULL | |
1996 | }; | |
1997 | ||
1998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SystemSettings_GetScreenType",kwnames)) goto fail; | |
1999 | { | |
0439c23b | 2000 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2002 | result = (int)wxSystemSettings::GetScreenType(); | |
2003 | ||
2004 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2005 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 2006 | } |
c370783e | 2007 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
2008 | return resultobj; |
2009 | fail: | |
2010 | return NULL; | |
2011 | } | |
2012 | ||
2013 | ||
c370783e | 2014 | static PyObject *_wrap_SystemSettings_SetScreenType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2015 | PyObject *resultobj; |
2016 | int arg1 ; | |
2017 | PyObject * obj0 = 0 ; | |
2018 | char *kwnames[] = { | |
2019 | (char *) "screen", NULL | |
2020 | }; | |
2021 | ||
2022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_SetScreenType",kwnames,&obj0)) goto fail; | |
c370783e | 2023 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
2024 | if (PyErr_Occurred()) SWIG_fail; |
2025 | { | |
0439c23b | 2026 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2028 | wxSystemSettings::SetScreenType((wxSystemScreenType )arg1); | |
2029 | ||
2030 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2031 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2032 | } |
2033 | Py_INCREF(Py_None); resultobj = Py_None; | |
2034 | return resultobj; | |
2035 | fail: | |
2036 | return NULL; | |
2037 | } | |
2038 | ||
2039 | ||
c370783e | 2040 | static PyObject * SystemSettings_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
2041 | PyObject *obj; |
2042 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2043 | SWIG_TypeClientData(SWIGTYPE_p_wxSystemSettings, obj); | |
2044 | Py_INCREF(obj); | |
2045 | return Py_BuildValue((char *)""); | |
2046 | } | |
629e65c2 RD |
2047 | static int _wrap_WINDOW_DEFAULT_VARIANT_set(PyObject *) { |
2048 | PyErr_SetString(PyExc_TypeError,"Variable WINDOW_DEFAULT_VARIANT is read-only."); | |
2049 | return 1; | |
2050 | } | |
2051 | ||
2052 | ||
2053 | static PyObject *_wrap_WINDOW_DEFAULT_VARIANT_get() { | |
2054 | PyObject *pyobj; | |
2055 | ||
2056 | { | |
2057 | #if wxUSE_UNICODE | |
2058 | pyobj = PyUnicode_FromWideChar((&wxPyWINDOW_DEFAULT_VARIANT)->c_str(), (&wxPyWINDOW_DEFAULT_VARIANT)->Len()); | |
2059 | #else | |
2060 | pyobj = PyString_FromStringAndSize((&wxPyWINDOW_DEFAULT_VARIANT)->c_str(), (&wxPyWINDOW_DEFAULT_VARIANT)->Len()); | |
2061 | #endif | |
2062 | } | |
2063 | return pyobj; | |
2064 | } | |
2065 | ||
2066 | ||
c370783e | 2067 | static PyObject *_wrap_new_SystemOptions(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2068 | PyObject *resultobj; |
2069 | wxSystemOptions *result; | |
2070 | char *kwnames[] = { | |
2071 | NULL | |
2072 | }; | |
2073 | ||
2074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SystemOptions",kwnames)) goto fail; | |
2075 | { | |
2076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2077 | result = (wxSystemOptions *)new wxSystemOptions(); | |
2078 | ||
2079 | wxPyEndAllowThreads(__tstate); | |
2080 | if (PyErr_Occurred()) SWIG_fail; | |
2081 | } | |
2082 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSystemOptions, 1); | |
2083 | return resultobj; | |
2084 | fail: | |
2085 | return NULL; | |
2086 | } | |
2087 | ||
2088 | ||
c370783e | 2089 | static PyObject *_wrap_SystemOptions_SetOption(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2090 | PyObject *resultobj; |
2091 | wxString *arg1 = 0 ; | |
2092 | wxString *arg2 = 0 ; | |
b411df4a RD |
2093 | bool temp1 = false ; |
2094 | bool temp2 = false ; | |
d55e5bfc RD |
2095 | PyObject * obj0 = 0 ; |
2096 | PyObject * obj1 = 0 ; | |
2097 | char *kwnames[] = { | |
2098 | (char *) "name",(char *) "value", NULL | |
2099 | }; | |
2100 | ||
2101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOption",kwnames,&obj0,&obj1)) goto fail; | |
2102 | { | |
2103 | arg1 = wxString_in_helper(obj0); | |
2104 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 2105 | temp1 = true; |
d55e5bfc RD |
2106 | } |
2107 | { | |
2108 | arg2 = wxString_in_helper(obj1); | |
2109 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 2110 | temp2 = true; |
d55e5bfc RD |
2111 | } |
2112 | { | |
2113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2114 | wxSystemOptions::SetOption((wxString const &)*arg1,(wxString const &)*arg2); | |
2115 | ||
2116 | wxPyEndAllowThreads(__tstate); | |
2117 | if (PyErr_Occurred()) SWIG_fail; | |
2118 | } | |
2119 | Py_INCREF(Py_None); resultobj = Py_None; | |
2120 | { | |
2121 | if (temp1) | |
2122 | delete arg1; | |
2123 | } | |
2124 | { | |
2125 | if (temp2) | |
2126 | delete arg2; | |
2127 | } | |
2128 | return resultobj; | |
2129 | fail: | |
2130 | { | |
2131 | if (temp1) | |
2132 | delete arg1; | |
2133 | } | |
2134 | { | |
2135 | if (temp2) | |
2136 | delete arg2; | |
2137 | } | |
2138 | return NULL; | |
2139 | } | |
2140 | ||
2141 | ||
c370783e | 2142 | static PyObject *_wrap_SystemOptions_SetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2143 | PyObject *resultobj; |
2144 | wxString *arg1 = 0 ; | |
2145 | int arg2 ; | |
b411df4a | 2146 | bool temp1 = false ; |
d55e5bfc RD |
2147 | PyObject * obj0 = 0 ; |
2148 | PyObject * obj1 = 0 ; | |
2149 | char *kwnames[] = { | |
2150 | (char *) "name",(char *) "value", NULL | |
2151 | }; | |
2152 | ||
2153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOptionInt",kwnames,&obj0,&obj1)) goto fail; | |
2154 | { | |
2155 | arg1 = wxString_in_helper(obj0); | |
2156 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 2157 | temp1 = true; |
d55e5bfc | 2158 | } |
c370783e | 2159 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
2160 | if (PyErr_Occurred()) SWIG_fail; |
2161 | { | |
2162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2163 | wxSystemOptions::SetOption((wxString const &)*arg1,arg2); | |
2164 | ||
2165 | wxPyEndAllowThreads(__tstate); | |
2166 | if (PyErr_Occurred()) SWIG_fail; | |
2167 | } | |
2168 | Py_INCREF(Py_None); resultobj = Py_None; | |
2169 | { | |
2170 | if (temp1) | |
2171 | delete arg1; | |
2172 | } | |
2173 | return resultobj; | |
2174 | fail: | |
2175 | { | |
2176 | if (temp1) | |
2177 | delete arg1; | |
2178 | } | |
2179 | return NULL; | |
2180 | } | |
2181 | ||
2182 | ||
c370783e | 2183 | static PyObject *_wrap_SystemOptions_GetOption(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2184 | PyObject *resultobj; |
2185 | wxString *arg1 = 0 ; | |
2186 | wxString result; | |
b411df4a | 2187 | bool temp1 = false ; |
d55e5bfc RD |
2188 | PyObject * obj0 = 0 ; |
2189 | char *kwnames[] = { | |
2190 | (char *) "name", NULL | |
2191 | }; | |
2192 | ||
2193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOption",kwnames,&obj0)) goto fail; | |
2194 | { | |
2195 | arg1 = wxString_in_helper(obj0); | |
2196 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 2197 | temp1 = true; |
d55e5bfc RD |
2198 | } |
2199 | { | |
2200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2201 | result = wxSystemOptions::GetOption((wxString const &)*arg1); | |
2202 | ||
2203 | wxPyEndAllowThreads(__tstate); | |
2204 | if (PyErr_Occurred()) SWIG_fail; | |
2205 | } | |
2206 | { | |
2207 | #if wxUSE_UNICODE | |
2208 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2209 | #else | |
2210 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2211 | #endif | |
2212 | } | |
2213 | { | |
2214 | if (temp1) | |
2215 | delete arg1; | |
2216 | } | |
2217 | return resultobj; | |
2218 | fail: | |
2219 | { | |
2220 | if (temp1) | |
2221 | delete arg1; | |
2222 | } | |
2223 | return NULL; | |
2224 | } | |
2225 | ||
2226 | ||
c370783e | 2227 | static PyObject *_wrap_SystemOptions_GetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2228 | PyObject *resultobj; |
2229 | wxString *arg1 = 0 ; | |
2230 | int result; | |
b411df4a | 2231 | bool temp1 = false ; |
d55e5bfc RD |
2232 | PyObject * obj0 = 0 ; |
2233 | char *kwnames[] = { | |
2234 | (char *) "name", NULL | |
2235 | }; | |
2236 | ||
2237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOptionInt",kwnames,&obj0)) goto fail; | |
2238 | { | |
2239 | arg1 = wxString_in_helper(obj0); | |
2240 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 2241 | temp1 = true; |
d55e5bfc RD |
2242 | } |
2243 | { | |
2244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2245 | result = (int)wxSystemOptions::GetOptionInt((wxString const &)*arg1); | |
2246 | ||
2247 | wxPyEndAllowThreads(__tstate); | |
2248 | if (PyErr_Occurred()) SWIG_fail; | |
2249 | } | |
c370783e | 2250 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
2251 | { |
2252 | if (temp1) | |
2253 | delete arg1; | |
2254 | } | |
2255 | return resultobj; | |
2256 | fail: | |
2257 | { | |
2258 | if (temp1) | |
2259 | delete arg1; | |
2260 | } | |
2261 | return NULL; | |
2262 | } | |
2263 | ||
2264 | ||
c370783e | 2265 | static PyObject *_wrap_SystemOptions_HasOption(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2266 | PyObject *resultobj; |
2267 | wxString *arg1 = 0 ; | |
2268 | bool result; | |
b411df4a | 2269 | bool temp1 = false ; |
d55e5bfc RD |
2270 | PyObject * obj0 = 0 ; |
2271 | char *kwnames[] = { | |
2272 | (char *) "name", NULL | |
2273 | }; | |
2274 | ||
2275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_HasOption",kwnames,&obj0)) goto fail; | |
2276 | { | |
2277 | arg1 = wxString_in_helper(obj0); | |
2278 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 2279 | temp1 = true; |
d55e5bfc RD |
2280 | } |
2281 | { | |
2282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2283 | result = (bool)wxSystemOptions::HasOption((wxString const &)*arg1); | |
2284 | ||
2285 | wxPyEndAllowThreads(__tstate); | |
2286 | if (PyErr_Occurred()) SWIG_fail; | |
2287 | } | |
2288 | { | |
2289 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2290 | } | |
2291 | { | |
2292 | if (temp1) | |
2293 | delete arg1; | |
2294 | } | |
2295 | return resultobj; | |
2296 | fail: | |
2297 | { | |
2298 | if (temp1) | |
2299 | delete arg1; | |
2300 | } | |
2301 | return NULL; | |
2302 | } | |
2303 | ||
2304 | ||
c370783e | 2305 | static PyObject * SystemOptions_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
2306 | PyObject *obj; |
2307 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2308 | SWIG_TypeClientData(SWIGTYPE_p_wxSystemOptions, obj); | |
2309 | Py_INCREF(obj); | |
2310 | return Py_BuildValue((char *)""); | |
2311 | } | |
c370783e | 2312 | static int _wrap_FileSelectorPromptStr_set(PyObject *) { |
d55e5bfc RD |
2313 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only."); |
2314 | return 1; | |
2315 | } | |
2316 | ||
2317 | ||
2318 | static PyObject *_wrap_FileSelectorPromptStr_get() { | |
2319 | PyObject *pyobj; | |
2320 | ||
2321 | { | |
2322 | #if wxUSE_UNICODE | |
2323 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
2324 | #else | |
2325 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
2326 | #endif | |
2327 | } | |
2328 | return pyobj; | |
2329 | } | |
2330 | ||
2331 | ||
c370783e | 2332 | static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *) { |
d55e5bfc RD |
2333 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only."); |
2334 | return 1; | |
2335 | } | |
2336 | ||
2337 | ||
2338 | static PyObject *_wrap_FileSelectorDefaultWildcardStr_get() { | |
2339 | PyObject *pyobj; | |
2340 | ||
2341 | { | |
2342 | #if wxUSE_UNICODE | |
2343 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
2344 | #else | |
2345 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
2346 | #endif | |
2347 | } | |
2348 | return pyobj; | |
2349 | } | |
2350 | ||
2351 | ||
c370783e | 2352 | static int _wrap_DirSelectorPromptStr_set(PyObject *) { |
d55e5bfc RD |
2353 | PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only."); |
2354 | return 1; | |
2355 | } | |
2356 | ||
2357 | ||
2358 | static PyObject *_wrap_DirSelectorPromptStr_get() { | |
2359 | PyObject *pyobj; | |
2360 | ||
2361 | { | |
2362 | #if wxUSE_UNICODE | |
2363 | pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
2364 | #else | |
2365 | pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
2366 | #endif | |
2367 | } | |
2368 | return pyobj; | |
2369 | } | |
2370 | ||
2371 | ||
c370783e | 2372 | static PyObject *_wrap_NewId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2373 | PyObject *resultobj; |
2374 | long result; | |
2375 | char *kwnames[] = { | |
2376 | NULL | |
2377 | }; | |
2378 | ||
2379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewId",kwnames)) goto fail; | |
2380 | { | |
2381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2382 | result = (long)wxNewId(); | |
2383 | ||
2384 | wxPyEndAllowThreads(__tstate); | |
2385 | if (PyErr_Occurred()) SWIG_fail; | |
2386 | } | |
c370783e | 2387 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
2388 | return resultobj; |
2389 | fail: | |
2390 | return NULL; | |
2391 | } | |
2392 | ||
2393 | ||
c370783e | 2394 | static PyObject *_wrap_RegisterId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2395 | PyObject *resultobj; |
2396 | long arg1 ; | |
2397 | PyObject * obj0 = 0 ; | |
2398 | char *kwnames[] = { | |
2399 | (char *) "id", NULL | |
2400 | }; | |
2401 | ||
2402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegisterId",kwnames,&obj0)) goto fail; | |
c370783e | 2403 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
2404 | if (PyErr_Occurred()) SWIG_fail; |
2405 | { | |
2406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2407 | wxRegisterId(arg1); | |
2408 | ||
2409 | wxPyEndAllowThreads(__tstate); | |
2410 | if (PyErr_Occurred()) SWIG_fail; | |
2411 | } | |
2412 | Py_INCREF(Py_None); resultobj = Py_None; | |
2413 | return resultobj; | |
2414 | fail: | |
2415 | return NULL; | |
2416 | } | |
2417 | ||
2418 | ||
c370783e | 2419 | static PyObject *_wrap_GetCurrentId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2420 | PyObject *resultobj; |
2421 | long result; | |
2422 | char *kwnames[] = { | |
2423 | NULL | |
2424 | }; | |
2425 | ||
2426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentId",kwnames)) goto fail; | |
2427 | { | |
2428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2429 | result = (long)wxGetCurrentId(); | |
2430 | ||
2431 | wxPyEndAllowThreads(__tstate); | |
2432 | if (PyErr_Occurred()) SWIG_fail; | |
2433 | } | |
c370783e | 2434 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
2435 | return resultobj; |
2436 | fail: | |
2437 | return NULL; | |
2438 | } | |
2439 | ||
2440 | ||
c370783e | 2441 | static PyObject *_wrap_IsStockID(PyObject *, PyObject *args, PyObject *kwargs) { |
01ac03ba RD |
2442 | PyObject *resultobj; |
2443 | int arg1 ; | |
2444 | bool result; | |
2445 | PyObject * obj0 = 0 ; | |
2446 | char *kwnames[] = { | |
2447 | (char *) "id", NULL | |
2448 | }; | |
2449 | ||
a8d99e09 | 2450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsStockID",kwnames,&obj0)) goto fail; |
c370783e | 2451 | arg1 = (int)SWIG_As_int(obj0); |
01ac03ba RD |
2452 | if (PyErr_Occurred()) SWIG_fail; |
2453 | { | |
2454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2455 | result = (bool)wxIsStockID(arg1); | |
2456 | ||
2457 | wxPyEndAllowThreads(__tstate); | |
2458 | if (PyErr_Occurred()) SWIG_fail; | |
2459 | } | |
2460 | { | |
2461 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2462 | } | |
2463 | return resultobj; | |
2464 | fail: | |
2465 | return NULL; | |
2466 | } | |
2467 | ||
2468 | ||
c370783e | 2469 | static PyObject *_wrap_IsStockLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
01ac03ba RD |
2470 | PyObject *resultobj; |
2471 | int arg1 ; | |
2472 | wxString *arg2 = 0 ; | |
2473 | bool result; | |
b411df4a | 2474 | bool temp2 = false ; |
01ac03ba RD |
2475 | PyObject * obj0 = 0 ; |
2476 | PyObject * obj1 = 0 ; | |
2477 | char *kwnames[] = { | |
2478 | (char *) "id",(char *) "label", NULL | |
2479 | }; | |
2480 | ||
a8d99e09 | 2481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IsStockLabel",kwnames,&obj0,&obj1)) goto fail; |
c370783e | 2482 | arg1 = (int)SWIG_As_int(obj0); |
01ac03ba RD |
2483 | if (PyErr_Occurred()) SWIG_fail; |
2484 | { | |
2485 | arg2 = wxString_in_helper(obj1); | |
2486 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 2487 | temp2 = true; |
01ac03ba RD |
2488 | } |
2489 | { | |
2490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2491 | result = (bool)wxIsStockLabel(arg1,(wxString const &)*arg2); | |
2492 | ||
2493 | wxPyEndAllowThreads(__tstate); | |
2494 | if (PyErr_Occurred()) SWIG_fail; | |
2495 | } | |
2496 | { | |
2497 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2498 | } | |
2499 | { | |
2500 | if (temp2) | |
2501 | delete arg2; | |
2502 | } | |
2503 | return resultobj; | |
2504 | fail: | |
2505 | { | |
2506 | if (temp2) | |
2507 | delete arg2; | |
2508 | } | |
2509 | return NULL; | |
2510 | } | |
2511 | ||
2512 | ||
c370783e | 2513 | static PyObject *_wrap_GetStockLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
01ac03ba RD |
2514 | PyObject *resultobj; |
2515 | int arg1 ; | |
2516 | wxString result; | |
2517 | PyObject * obj0 = 0 ; | |
2518 | char *kwnames[] = { | |
2519 | (char *) "id", NULL | |
2520 | }; | |
2521 | ||
a8d99e09 | 2522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetStockLabel",kwnames,&obj0)) goto fail; |
c370783e | 2523 | arg1 = (int)SWIG_As_int(obj0); |
01ac03ba RD |
2524 | if (PyErr_Occurred()) SWIG_fail; |
2525 | { | |
2526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2527 | result = wxGetStockLabel(arg1); | |
2528 | ||
2529 | wxPyEndAllowThreads(__tstate); | |
2530 | if (PyErr_Occurred()) SWIG_fail; | |
2531 | } | |
2532 | { | |
2533 | #if wxUSE_UNICODE | |
2534 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2535 | #else | |
2536 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2537 | #endif | |
2538 | } | |
2539 | return resultobj; | |
2540 | fail: | |
2541 | return NULL; | |
2542 | } | |
2543 | ||
2544 | ||
c370783e | 2545 | static PyObject *_wrap_Bell(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2546 | PyObject *resultobj; |
2547 | char *kwnames[] = { | |
2548 | NULL | |
2549 | }; | |
2550 | ||
2551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Bell",kwnames)) goto fail; | |
2552 | { | |
0439c23b | 2553 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2555 | wxBell(); | |
2556 | ||
2557 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2558 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2559 | } |
2560 | Py_INCREF(Py_None); resultobj = Py_None; | |
2561 | return resultobj; | |
2562 | fail: | |
2563 | return NULL; | |
2564 | } | |
2565 | ||
2566 | ||
c370783e | 2567 | static PyObject *_wrap_EndBusyCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2568 | PyObject *resultobj; |
2569 | char *kwnames[] = { | |
2570 | NULL | |
2571 | }; | |
2572 | ||
2573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EndBusyCursor",kwnames)) goto fail; | |
2574 | { | |
0439c23b | 2575 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2577 | wxEndBusyCursor(); | |
2578 | ||
2579 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2580 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2581 | } |
2582 | Py_INCREF(Py_None); resultobj = Py_None; | |
2583 | return resultobj; | |
2584 | fail: | |
2585 | return NULL; | |
2586 | } | |
2587 | ||
2588 | ||
c370783e | 2589 | static PyObject *_wrap_GetElapsedTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 2590 | PyObject *resultobj; |
b411df4a | 2591 | bool arg1 = (bool) true ; |
d55e5bfc RD |
2592 | long result; |
2593 | PyObject * obj0 = 0 ; | |
2594 | char *kwnames[] = { | |
2595 | (char *) "resetTimer", NULL | |
2596 | }; | |
2597 | ||
2598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetElapsedTime",kwnames,&obj0)) goto fail; | |
2599 | if (obj0) { | |
c370783e | 2600 | arg1 = (bool)SWIG_As_bool(obj0); |
d55e5bfc RD |
2601 | if (PyErr_Occurred()) SWIG_fail; |
2602 | } | |
2603 | { | |
2604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2605 | result = (long)wxGetElapsedTime(arg1); | |
2606 | ||
2607 | wxPyEndAllowThreads(__tstate); | |
2608 | if (PyErr_Occurred()) SWIG_fail; | |
2609 | } | |
c370783e | 2610 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
2611 | return resultobj; |
2612 | fail: | |
2613 | return NULL; | |
2614 | } | |
2615 | ||
2616 | ||
c370783e | 2617 | static PyObject *_wrap_GetMousePosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2618 | PyObject *resultobj; |
2619 | int *arg1 = (int *) 0 ; | |
2620 | int *arg2 = (int *) 0 ; | |
2621 | int temp1 ; | |
c370783e | 2622 | int res1 = 0 ; |
d55e5bfc | 2623 | int temp2 ; |
c370783e | 2624 | int res2 = 0 ; |
d55e5bfc RD |
2625 | char *kwnames[] = { |
2626 | NULL | |
2627 | }; | |
2628 | ||
c370783e RD |
2629 | arg1 = &temp1; res1 = SWIG_NEWOBJ; |
2630 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
d55e5bfc RD |
2631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMousePosition",kwnames)) goto fail; |
2632 | { | |
0439c23b | 2633 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2635 | wxGetMousePosition(arg1,arg2); | |
2636 | ||
2637 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2638 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2639 | } |
2640 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
2641 | resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ? |
2642 | SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0))); | |
2643 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
2644 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
2645 | return resultobj; |
2646 | fail: | |
2647 | return NULL; | |
2648 | } | |
2649 | ||
2650 | ||
c370783e | 2651 | static PyObject *_wrap_IsBusy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2652 | PyObject *resultobj; |
2653 | bool result; | |
2654 | char *kwnames[] = { | |
2655 | NULL | |
2656 | }; | |
2657 | ||
2658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IsBusy",kwnames)) goto fail; | |
2659 | { | |
2660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2661 | result = (bool)wxIsBusy(); | |
2662 | ||
2663 | wxPyEndAllowThreads(__tstate); | |
2664 | if (PyErr_Occurred()) SWIG_fail; | |
2665 | } | |
2666 | { | |
2667 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2668 | } | |
2669 | return resultobj; | |
2670 | fail: | |
2671 | return NULL; | |
2672 | } | |
2673 | ||
2674 | ||
c370783e | 2675 | static PyObject *_wrap_Now(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2676 | PyObject *resultobj; |
2677 | wxString result; | |
2678 | char *kwnames[] = { | |
2679 | NULL | |
2680 | }; | |
2681 | ||
2682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Now",kwnames)) goto fail; | |
2683 | { | |
2684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2685 | result = wxNow(); | |
2686 | ||
2687 | wxPyEndAllowThreads(__tstate); | |
2688 | if (PyErr_Occurred()) SWIG_fail; | |
2689 | } | |
2690 | { | |
2691 | #if wxUSE_UNICODE | |
2692 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2693 | #else | |
2694 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2695 | #endif | |
2696 | } | |
2697 | return resultobj; | |
2698 | fail: | |
2699 | return NULL; | |
2700 | } | |
2701 | ||
2702 | ||
c370783e | 2703 | static PyObject *_wrap_Shell(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2704 | PyObject *resultobj; |
2705 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
2706 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2707 | bool result; | |
b411df4a | 2708 | bool temp1 = false ; |
d55e5bfc RD |
2709 | PyObject * obj0 = 0 ; |
2710 | char *kwnames[] = { | |
2711 | (char *) "command", NULL | |
2712 | }; | |
2713 | ||
2714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Shell",kwnames,&obj0)) goto fail; | |
2715 | if (obj0) { | |
2716 | { | |
2717 | arg1 = wxString_in_helper(obj0); | |
2718 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 2719 | temp1 = true; |
d55e5bfc RD |
2720 | } |
2721 | } | |
2722 | { | |
2723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2724 | result = (bool)wxShell((wxString const &)*arg1); | |
2725 | ||
2726 | wxPyEndAllowThreads(__tstate); | |
2727 | if (PyErr_Occurred()) SWIG_fail; | |
2728 | } | |
2729 | { | |
2730 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2731 | } | |
2732 | { | |
2733 | if (temp1) | |
2734 | delete arg1; | |
2735 | } | |
2736 | return resultobj; | |
2737 | fail: | |
2738 | { | |
2739 | if (temp1) | |
2740 | delete arg1; | |
2741 | } | |
2742 | return NULL; | |
2743 | } | |
2744 | ||
2745 | ||
c370783e | 2746 | static PyObject *_wrap_StartTimer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2747 | PyObject *resultobj; |
2748 | char *kwnames[] = { | |
2749 | NULL | |
2750 | }; | |
2751 | ||
2752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StartTimer",kwnames)) goto fail; | |
2753 | { | |
2754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2755 | wxStartTimer(); | |
2756 | ||
2757 | wxPyEndAllowThreads(__tstate); | |
2758 | if (PyErr_Occurred()) SWIG_fail; | |
2759 | } | |
2760 | Py_INCREF(Py_None); resultobj = Py_None; | |
2761 | return resultobj; | |
2762 | fail: | |
2763 | return NULL; | |
2764 | } | |
2765 | ||
2766 | ||
c370783e | 2767 | static PyObject *_wrap_GetOsVersion(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2768 | PyObject *resultobj; |
2769 | int *arg1 = (int *) 0 ; | |
2770 | int *arg2 = (int *) 0 ; | |
2771 | int result; | |
2772 | int temp1 ; | |
c370783e | 2773 | int res1 = 0 ; |
d55e5bfc | 2774 | int temp2 ; |
c370783e | 2775 | int res2 = 0 ; |
d55e5bfc RD |
2776 | char *kwnames[] = { |
2777 | NULL | |
2778 | }; | |
2779 | ||
c370783e RD |
2780 | arg1 = &temp1; res1 = SWIG_NEWOBJ; |
2781 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
d55e5bfc RD |
2782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsVersion",kwnames)) goto fail; |
2783 | { | |
2784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2785 | result = (int)wxGetOsVersion(arg1,arg2); | |
2786 | ||
2787 | wxPyEndAllowThreads(__tstate); | |
2788 | if (PyErr_Occurred()) SWIG_fail; | |
2789 | } | |
c370783e RD |
2790 | resultobj = SWIG_From_int((int)result); |
2791 | resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ? | |
2792 | SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0))); | |
2793 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
2794 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
2795 | return resultobj; |
2796 | fail: | |
2797 | return NULL; | |
2798 | } | |
2799 | ||
2800 | ||
c370783e | 2801 | static PyObject *_wrap_GetOsDescription(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2802 | PyObject *resultobj; |
2803 | wxString result; | |
2804 | char *kwnames[] = { | |
2805 | NULL | |
2806 | }; | |
2807 | ||
2808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsDescription",kwnames)) goto fail; | |
2809 | { | |
2810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2811 | result = wxGetOsDescription(); | |
2812 | ||
2813 | wxPyEndAllowThreads(__tstate); | |
2814 | if (PyErr_Occurred()) SWIG_fail; | |
2815 | } | |
2816 | { | |
2817 | #if wxUSE_UNICODE | |
2818 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2819 | #else | |
2820 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2821 | #endif | |
2822 | } | |
2823 | return resultobj; | |
2824 | fail: | |
2825 | return NULL; | |
2826 | } | |
2827 | ||
2828 | ||
c370783e | 2829 | static PyObject *_wrap_GetFreeMemory(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2830 | PyObject *resultobj; |
2831 | long result; | |
2832 | char *kwnames[] = { | |
2833 | NULL | |
2834 | }; | |
2835 | ||
2836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFreeMemory",kwnames)) goto fail; | |
2837 | { | |
2838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2839 | result = (long)wxGetFreeMemory(); | |
2840 | ||
2841 | wxPyEndAllowThreads(__tstate); | |
2842 | if (PyErr_Occurred()) SWIG_fail; | |
2843 | } | |
c370783e | 2844 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
2845 | return resultobj; |
2846 | fail: | |
2847 | return NULL; | |
2848 | } | |
2849 | ||
2850 | ||
c370783e | 2851 | static PyObject *_wrap_Shutdown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2852 | PyObject *resultobj; |
2853 | int arg1 ; | |
2854 | bool result; | |
2855 | PyObject * obj0 = 0 ; | |
2856 | char *kwnames[] = { | |
2857 | (char *) "wFlags", NULL | |
2858 | }; | |
2859 | ||
2860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Shutdown",kwnames,&obj0)) goto fail; | |
c370783e | 2861 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
2862 | if (PyErr_Occurred()) SWIG_fail; |
2863 | { | |
0439c23b | 2864 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2866 | result = (bool)wxShutdown((wxShutdownFlags )arg1); | |
2867 | ||
2868 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2869 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2870 | } |
2871 | { | |
2872 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2873 | } | |
2874 | return resultobj; | |
2875 | fail: | |
2876 | return NULL; | |
2877 | } | |
2878 | ||
2879 | ||
c370783e | 2880 | static PyObject *_wrap_Sleep(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2881 | PyObject *resultobj; |
2882 | int arg1 ; | |
2883 | PyObject * obj0 = 0 ; | |
2884 | char *kwnames[] = { | |
2885 | (char *) "secs", NULL | |
2886 | }; | |
2887 | ||
2888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sleep",kwnames,&obj0)) goto fail; | |
c370783e | 2889 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
2890 | if (PyErr_Occurred()) SWIG_fail; |
2891 | { | |
2892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2893 | wxSleep(arg1); | |
2894 | ||
2895 | wxPyEndAllowThreads(__tstate); | |
2896 | if (PyErr_Occurred()) SWIG_fail; | |
2897 | } | |
2898 | Py_INCREF(Py_None); resultobj = Py_None; | |
2899 | return resultobj; | |
2900 | fail: | |
2901 | return NULL; | |
2902 | } | |
2903 | ||
2904 | ||
c370783e | 2905 | static PyObject *_wrap_MilliSleep(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2906 | PyObject *resultobj; |
2907 | unsigned long arg1 ; | |
2908 | PyObject * obj0 = 0 ; | |
2909 | char *kwnames[] = { | |
2910 | (char *) "milliseconds", NULL | |
2911 | }; | |
2912 | ||
bf26d883 | 2913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MilliSleep",kwnames,&obj0)) goto fail; |
c370783e | 2914 | arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0); |
d55e5bfc RD |
2915 | if (PyErr_Occurred()) SWIG_fail; |
2916 | { | |
2917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
bf26d883 RD |
2918 | wxMilliSleep(arg1); |
2919 | ||
2920 | wxPyEndAllowThreads(__tstate); | |
2921 | if (PyErr_Occurred()) SWIG_fail; | |
2922 | } | |
2923 | Py_INCREF(Py_None); resultobj = Py_None; | |
2924 | return resultobj; | |
2925 | fail: | |
2926 | return NULL; | |
2927 | } | |
2928 | ||
2929 | ||
c370783e | 2930 | static PyObject *_wrap_MicroSleep(PyObject *, PyObject *args, PyObject *kwargs) { |
bf26d883 RD |
2931 | PyObject *resultobj; |
2932 | unsigned long arg1 ; | |
2933 | PyObject * obj0 = 0 ; | |
2934 | char *kwnames[] = { | |
2935 | (char *) "microseconds", NULL | |
2936 | }; | |
2937 | ||
2938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MicroSleep",kwnames,&obj0)) goto fail; | |
c370783e | 2939 | arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0); |
bf26d883 RD |
2940 | if (PyErr_Occurred()) SWIG_fail; |
2941 | { | |
2942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2943 | wxMicroSleep(arg1); | |
d55e5bfc RD |
2944 | |
2945 | wxPyEndAllowThreads(__tstate); | |
2946 | if (PyErr_Occurred()) SWIG_fail; | |
2947 | } | |
2948 | Py_INCREF(Py_None); resultobj = Py_None; | |
2949 | return resultobj; | |
2950 | fail: | |
2951 | return NULL; | |
2952 | } | |
2953 | ||
2954 | ||
c370783e | 2955 | static PyObject *_wrap_EnableTopLevelWindows(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2956 | PyObject *resultobj; |
2957 | bool arg1 ; | |
2958 | PyObject * obj0 = 0 ; | |
2959 | char *kwnames[] = { | |
2960 | (char *) "enable", NULL | |
2961 | }; | |
2962 | ||
2963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EnableTopLevelWindows",kwnames,&obj0)) goto fail; | |
c370783e | 2964 | arg1 = (bool)SWIG_As_bool(obj0); |
d55e5bfc RD |
2965 | if (PyErr_Occurred()) SWIG_fail; |
2966 | { | |
2967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2968 | wxEnableTopLevelWindows(arg1); | |
2969 | ||
2970 | wxPyEndAllowThreads(__tstate); | |
2971 | if (PyErr_Occurred()) SWIG_fail; | |
2972 | } | |
2973 | Py_INCREF(Py_None); resultobj = Py_None; | |
2974 | return resultobj; | |
2975 | fail: | |
2976 | return NULL; | |
2977 | } | |
2978 | ||
2979 | ||
c370783e | 2980 | static PyObject *_wrap_StripMenuCodes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2981 | PyObject *resultobj; |
2982 | wxString *arg1 = 0 ; | |
2983 | wxString result; | |
b411df4a | 2984 | bool temp1 = false ; |
d55e5bfc RD |
2985 | PyObject * obj0 = 0 ; |
2986 | char *kwnames[] = { | |
2987 | (char *) "in", NULL | |
2988 | }; | |
2989 | ||
2990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StripMenuCodes",kwnames,&obj0)) goto fail; | |
2991 | { | |
2992 | arg1 = wxString_in_helper(obj0); | |
2993 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 2994 | temp1 = true; |
d55e5bfc RD |
2995 | } |
2996 | { | |
2997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2998 | result = wxStripMenuCodes((wxString const &)*arg1); | |
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 | { | |
3011 | if (temp1) | |
3012 | delete arg1; | |
3013 | } | |
3014 | return resultobj; | |
3015 | fail: | |
3016 | { | |
3017 | if (temp1) | |
3018 | delete arg1; | |
3019 | } | |
3020 | return NULL; | |
3021 | } | |
3022 | ||
3023 | ||
c370783e | 3024 | static PyObject *_wrap_GetEmailAddress(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3025 | PyObject *resultobj; |
3026 | wxString result; | |
3027 | char *kwnames[] = { | |
3028 | NULL | |
3029 | }; | |
3030 | ||
3031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetEmailAddress",kwnames)) goto fail; | |
3032 | { | |
3033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3034 | result = wxGetEmailAddress(); | |
3035 | ||
3036 | wxPyEndAllowThreads(__tstate); | |
3037 | if (PyErr_Occurred()) SWIG_fail; | |
3038 | } | |
3039 | { | |
3040 | #if wxUSE_UNICODE | |
3041 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3042 | #else | |
3043 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3044 | #endif | |
3045 | } | |
3046 | return resultobj; | |
3047 | fail: | |
3048 | return NULL; | |
3049 | } | |
3050 | ||
3051 | ||
c370783e | 3052 | static PyObject *_wrap_GetHostName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3053 | PyObject *resultobj; |
3054 | wxString result; | |
3055 | char *kwnames[] = { | |
3056 | NULL | |
3057 | }; | |
3058 | ||
3059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHostName",kwnames)) goto fail; | |
3060 | { | |
3061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3062 | result = wxGetHostName(); | |
3063 | ||
3064 | wxPyEndAllowThreads(__tstate); | |
3065 | if (PyErr_Occurred()) SWIG_fail; | |
3066 | } | |
3067 | { | |
3068 | #if wxUSE_UNICODE | |
3069 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3070 | #else | |
3071 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3072 | #endif | |
3073 | } | |
3074 | return resultobj; | |
3075 | fail: | |
3076 | return NULL; | |
3077 | } | |
3078 | ||
3079 | ||
c370783e | 3080 | static PyObject *_wrap_GetFullHostName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3081 | PyObject *resultobj; |
3082 | wxString result; | |
3083 | char *kwnames[] = { | |
3084 | NULL | |
3085 | }; | |
3086 | ||
3087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFullHostName",kwnames)) goto fail; | |
3088 | { | |
3089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3090 | result = wxGetFullHostName(); | |
3091 | ||
3092 | wxPyEndAllowThreads(__tstate); | |
3093 | if (PyErr_Occurred()) SWIG_fail; | |
3094 | } | |
3095 | { | |
3096 | #if wxUSE_UNICODE | |
3097 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3098 | #else | |
3099 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3100 | #endif | |
3101 | } | |
3102 | return resultobj; | |
3103 | fail: | |
3104 | return NULL; | |
3105 | } | |
3106 | ||
3107 | ||
c370783e | 3108 | static PyObject *_wrap_GetUserId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3109 | PyObject *resultobj; |
3110 | wxString result; | |
3111 | char *kwnames[] = { | |
3112 | NULL | |
3113 | }; | |
3114 | ||
3115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserId",kwnames)) goto fail; | |
3116 | { | |
3117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3118 | result = wxGetUserId(); | |
3119 | ||
3120 | wxPyEndAllowThreads(__tstate); | |
3121 | if (PyErr_Occurred()) SWIG_fail; | |
3122 | } | |
3123 | { | |
3124 | #if wxUSE_UNICODE | |
3125 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3126 | #else | |
3127 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3128 | #endif | |
3129 | } | |
3130 | return resultobj; | |
3131 | fail: | |
3132 | return NULL; | |
3133 | } | |
3134 | ||
3135 | ||
c370783e | 3136 | static PyObject *_wrap_GetUserName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3137 | PyObject *resultobj; |
3138 | wxString result; | |
3139 | char *kwnames[] = { | |
3140 | NULL | |
3141 | }; | |
3142 | ||
3143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserName",kwnames)) goto fail; | |
3144 | { | |
3145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3146 | result = wxGetUserName(); | |
3147 | ||
3148 | wxPyEndAllowThreads(__tstate); | |
3149 | if (PyErr_Occurred()) SWIG_fail; | |
3150 | } | |
3151 | { | |
3152 | #if wxUSE_UNICODE | |
3153 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3154 | #else | |
3155 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3156 | #endif | |
3157 | } | |
3158 | return resultobj; | |
3159 | fail: | |
3160 | return NULL; | |
3161 | } | |
3162 | ||
3163 | ||
c370783e | 3164 | static PyObject *_wrap_GetHomeDir(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3165 | PyObject *resultobj; |
3166 | wxString result; | |
3167 | char *kwnames[] = { | |
3168 | NULL | |
3169 | }; | |
3170 | ||
3171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHomeDir",kwnames)) goto fail; | |
3172 | { | |
3173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3174 | result = wxGetHomeDir(); | |
3175 | ||
3176 | wxPyEndAllowThreads(__tstate); | |
3177 | if (PyErr_Occurred()) SWIG_fail; | |
3178 | } | |
3179 | { | |
3180 | #if wxUSE_UNICODE | |
3181 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3182 | #else | |
3183 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3184 | #endif | |
3185 | } | |
3186 | return resultobj; | |
3187 | fail: | |
3188 | return NULL; | |
3189 | } | |
3190 | ||
3191 | ||
c370783e | 3192 | static PyObject *_wrap_GetUserHome(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3193 | PyObject *resultobj; |
3194 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
3195 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
3196 | wxString result; | |
b411df4a | 3197 | bool temp1 = false ; |
d55e5bfc RD |
3198 | PyObject * obj0 = 0 ; |
3199 | char *kwnames[] = { | |
3200 | (char *) "user", NULL | |
3201 | }; | |
3202 | ||
3203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetUserHome",kwnames,&obj0)) goto fail; | |
3204 | if (obj0) { | |
3205 | { | |
3206 | arg1 = wxString_in_helper(obj0); | |
3207 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 3208 | temp1 = true; |
d55e5bfc RD |
3209 | } |
3210 | } | |
3211 | { | |
3212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3213 | result = wxGetUserHome((wxString const &)*arg1); | |
3214 | ||
3215 | wxPyEndAllowThreads(__tstate); | |
3216 | if (PyErr_Occurred()) SWIG_fail; | |
3217 | } | |
3218 | { | |
3219 | #if wxUSE_UNICODE | |
3220 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3221 | #else | |
3222 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3223 | #endif | |
3224 | } | |
3225 | { | |
3226 | if (temp1) | |
3227 | delete arg1; | |
3228 | } | |
3229 | return resultobj; | |
3230 | fail: | |
3231 | { | |
3232 | if (temp1) | |
3233 | delete arg1; | |
3234 | } | |
3235 | return NULL; | |
3236 | } | |
3237 | ||
3238 | ||
c370783e | 3239 | static PyObject *_wrap_GetProcessId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3240 | PyObject *resultobj; |
3241 | unsigned long result; | |
3242 | char *kwnames[] = { | |
3243 | NULL | |
3244 | }; | |
3245 | ||
3246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetProcessId",kwnames)) goto fail; | |
3247 | { | |
3248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3249 | result = (unsigned long)wxGetProcessId(); | |
3250 | ||
3251 | wxPyEndAllowThreads(__tstate); | |
3252 | if (PyErr_Occurred()) SWIG_fail; | |
3253 | } | |
c370783e | 3254 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
3255 | return resultobj; |
3256 | fail: | |
3257 | return NULL; | |
3258 | } | |
3259 | ||
3260 | ||
c370783e | 3261 | static PyObject *_wrap_Trap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3262 | PyObject *resultobj; |
3263 | char *kwnames[] = { | |
3264 | NULL | |
3265 | }; | |
3266 | ||
3267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Trap",kwnames)) goto fail; | |
3268 | { | |
3269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3270 | wxTrap(); | |
3271 | ||
3272 | wxPyEndAllowThreads(__tstate); | |
3273 | if (PyErr_Occurred()) SWIG_fail; | |
3274 | } | |
3275 | Py_INCREF(Py_None); resultobj = Py_None; | |
3276 | return resultobj; | |
3277 | fail: | |
3278 | return NULL; | |
3279 | } | |
3280 | ||
3281 | ||
c370783e | 3282 | static PyObject *_wrap_FileSelector(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3283 | PyObject *resultobj; |
3284 | wxString const &arg1_defvalue = wxPyFileSelectorPromptStr ; | |
3285 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
3286 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3287 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3288 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3289 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3290 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
3291 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
3292 | wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ; | |
3293 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
3294 | int arg6 = (int) 0 ; | |
3295 | wxWindow *arg7 = (wxWindow *) NULL ; | |
3296 | int arg8 = (int) -1 ; | |
3297 | int arg9 = (int) -1 ; | |
3298 | wxString result; | |
b411df4a RD |
3299 | bool temp1 = false ; |
3300 | bool temp2 = false ; | |
3301 | bool temp3 = false ; | |
3302 | bool temp4 = false ; | |
3303 | bool temp5 = false ; | |
d55e5bfc RD |
3304 | PyObject * obj0 = 0 ; |
3305 | PyObject * obj1 = 0 ; | |
3306 | PyObject * obj2 = 0 ; | |
3307 | PyObject * obj3 = 0 ; | |
3308 | PyObject * obj4 = 0 ; | |
3309 | PyObject * obj5 = 0 ; | |
3310 | PyObject * obj6 = 0 ; | |
3311 | PyObject * obj7 = 0 ; | |
3312 | PyObject * obj8 = 0 ; | |
3313 | char *kwnames[] = { | |
3314 | (char *) "message",(char *) "default_path",(char *) "default_filename",(char *) "default_extension",(char *) "wildcard",(char *) "flags",(char *) "parent",(char *) "x",(char *) "y", NULL | |
3315 | }; | |
3316 | ||
3317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOOOOO:FileSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
3318 | if (obj0) { | |
3319 | { | |
3320 | arg1 = wxString_in_helper(obj0); | |
3321 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 3322 | temp1 = true; |
d55e5bfc RD |
3323 | } |
3324 | } | |
3325 | if (obj1) { | |
3326 | { | |
3327 | arg2 = wxString_in_helper(obj1); | |
3328 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 3329 | temp2 = true; |
d55e5bfc RD |
3330 | } |
3331 | } | |
3332 | if (obj2) { | |
3333 | { | |
3334 | arg3 = wxString_in_helper(obj2); | |
3335 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 3336 | temp3 = true; |
d55e5bfc RD |
3337 | } |
3338 | } | |
3339 | if (obj3) { | |
3340 | { | |
3341 | arg4 = wxString_in_helper(obj3); | |
3342 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 3343 | temp4 = true; |
d55e5bfc RD |
3344 | } |
3345 | } | |
3346 | if (obj4) { | |
3347 | { | |
3348 | arg5 = wxString_in_helper(obj4); | |
3349 | if (arg5 == NULL) SWIG_fail; | |
b411df4a | 3350 | temp5 = true; |
d55e5bfc RD |
3351 | } |
3352 | } | |
3353 | if (obj5) { | |
c370783e | 3354 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
3355 | if (PyErr_Occurred()) SWIG_fail; |
3356 | } | |
3357 | if (obj6) { | |
3358 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow, | |
3359 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3360 | } | |
3361 | if (obj7) { | |
c370783e | 3362 | arg8 = (int)SWIG_As_int(obj7); |
d55e5bfc RD |
3363 | if (PyErr_Occurred()) SWIG_fail; |
3364 | } | |
3365 | if (obj8) { | |
c370783e | 3366 | arg9 = (int)SWIG_As_int(obj8); |
d55e5bfc RD |
3367 | if (PyErr_Occurred()) SWIG_fail; |
3368 | } | |
3369 | { | |
0439c23b | 3370 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3372 | result = wxFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,arg7,arg8,arg9); | |
3373 | ||
3374 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3375 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3376 | } |
3377 | { | |
3378 | #if wxUSE_UNICODE | |
3379 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3380 | #else | |
3381 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3382 | #endif | |
3383 | } | |
3384 | { | |
3385 | if (temp1) | |
3386 | delete arg1; | |
3387 | } | |
3388 | { | |
3389 | if (temp2) | |
3390 | delete arg2; | |
3391 | } | |
3392 | { | |
3393 | if (temp3) | |
3394 | delete arg3; | |
3395 | } | |
3396 | { | |
3397 | if (temp4) | |
3398 | delete arg4; | |
3399 | } | |
3400 | { | |
3401 | if (temp5) | |
3402 | delete arg5; | |
3403 | } | |
3404 | return resultobj; | |
3405 | fail: | |
3406 | { | |
3407 | if (temp1) | |
3408 | delete arg1; | |
3409 | } | |
3410 | { | |
3411 | if (temp2) | |
3412 | delete arg2; | |
3413 | } | |
3414 | { | |
3415 | if (temp3) | |
3416 | delete arg3; | |
3417 | } | |
3418 | { | |
3419 | if (temp4) | |
3420 | delete arg4; | |
3421 | } | |
3422 | { | |
3423 | if (temp5) | |
3424 | delete arg5; | |
3425 | } | |
3426 | return NULL; | |
3427 | } | |
3428 | ||
3429 | ||
c370783e | 3430 | static PyObject *_wrap_LoadFileSelector(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3431 | PyObject *resultobj; |
3432 | wxString *arg1 = 0 ; | |
3433 | wxString *arg2 = 0 ; | |
3434 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3435 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3436 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3437 | wxString result; | |
b411df4a RD |
3438 | bool temp1 = false ; |
3439 | bool temp2 = false ; | |
3440 | bool temp3 = false ; | |
d55e5bfc RD |
3441 | PyObject * obj0 = 0 ; |
3442 | PyObject * obj1 = 0 ; | |
3443 | PyObject * obj2 = 0 ; | |
3444 | PyObject * obj3 = 0 ; | |
3445 | char *kwnames[] = { | |
3446 | (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL | |
3447 | }; | |
3448 | ||
3449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:LoadFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3450 | { | |
3451 | arg1 = wxString_in_helper(obj0); | |
3452 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 3453 | temp1 = true; |
d55e5bfc RD |
3454 | } |
3455 | { | |
3456 | arg2 = wxString_in_helper(obj1); | |
3457 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 3458 | temp2 = true; |
d55e5bfc RD |
3459 | } |
3460 | if (obj2) { | |
3461 | { | |
3462 | arg3 = wxString_in_helper(obj2); | |
3463 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 3464 | temp3 = true; |
d55e5bfc RD |
3465 | } |
3466 | } | |
3467 | if (obj3) { | |
3468 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
3469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3470 | } | |
3471 | { | |
0439c23b | 3472 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3474 | result = wxLoadFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
3475 | ||
3476 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3477 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3478 | } |
3479 | { | |
3480 | #if wxUSE_UNICODE | |
3481 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3482 | #else | |
3483 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3484 | #endif | |
3485 | } | |
3486 | { | |
3487 | if (temp1) | |
3488 | delete arg1; | |
3489 | } | |
3490 | { | |
3491 | if (temp2) | |
3492 | delete arg2; | |
3493 | } | |
3494 | { | |
3495 | if (temp3) | |
3496 | delete arg3; | |
3497 | } | |
3498 | return resultobj; | |
3499 | fail: | |
3500 | { | |
3501 | if (temp1) | |
3502 | delete arg1; | |
3503 | } | |
3504 | { | |
3505 | if (temp2) | |
3506 | delete arg2; | |
3507 | } | |
3508 | { | |
3509 | if (temp3) | |
3510 | delete arg3; | |
3511 | } | |
3512 | return NULL; | |
3513 | } | |
3514 | ||
3515 | ||
c370783e | 3516 | static PyObject *_wrap_SaveFileSelector(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3517 | PyObject *resultobj; |
3518 | wxString *arg1 = 0 ; | |
3519 | wxString *arg2 = 0 ; | |
3520 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3521 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3522 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3523 | wxString result; | |
b411df4a RD |
3524 | bool temp1 = false ; |
3525 | bool temp2 = false ; | |
3526 | bool temp3 = false ; | |
d55e5bfc RD |
3527 | PyObject * obj0 = 0 ; |
3528 | PyObject * obj1 = 0 ; | |
3529 | PyObject * obj2 = 0 ; | |
3530 | PyObject * obj3 = 0 ; | |
3531 | char *kwnames[] = { | |
3532 | (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL | |
3533 | }; | |
3534 | ||
3535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:SaveFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3536 | { | |
3537 | arg1 = wxString_in_helper(obj0); | |
3538 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 3539 | temp1 = true; |
d55e5bfc RD |
3540 | } |
3541 | { | |
3542 | arg2 = wxString_in_helper(obj1); | |
3543 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 3544 | temp2 = true; |
d55e5bfc RD |
3545 | } |
3546 | if (obj2) { | |
3547 | { | |
3548 | arg3 = wxString_in_helper(obj2); | |
3549 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 3550 | temp3 = true; |
d55e5bfc RD |
3551 | } |
3552 | } | |
3553 | if (obj3) { | |
3554 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
3555 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3556 | } | |
3557 | { | |
0439c23b | 3558 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3560 | result = wxSaveFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
3561 | ||
3562 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3563 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3564 | } |
3565 | { | |
3566 | #if wxUSE_UNICODE | |
3567 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3568 | #else | |
3569 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3570 | #endif | |
3571 | } | |
3572 | { | |
3573 | if (temp1) | |
3574 | delete arg1; | |
3575 | } | |
3576 | { | |
3577 | if (temp2) | |
3578 | delete arg2; | |
3579 | } | |
3580 | { | |
3581 | if (temp3) | |
3582 | delete arg3; | |
3583 | } | |
3584 | return resultobj; | |
3585 | fail: | |
3586 | { | |
3587 | if (temp1) | |
3588 | delete arg1; | |
3589 | } | |
3590 | { | |
3591 | if (temp2) | |
3592 | delete arg2; | |
3593 | } | |
3594 | { | |
3595 | if (temp3) | |
3596 | delete arg3; | |
3597 | } | |
3598 | return NULL; | |
3599 | } | |
3600 | ||
3601 | ||
c370783e | 3602 | static PyObject *_wrap_DirSelector(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3603 | PyObject *resultobj; |
3604 | wxString const &arg1_defvalue = wxPyDirSelectorPromptStr ; | |
3605 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
3606 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3607 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3608 | long arg3 = (long) wxDD_DEFAULT_STYLE ; | |
3609 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3610 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3611 | wxWindow *arg5 = (wxWindow *) NULL ; | |
3612 | wxString result; | |
b411df4a RD |
3613 | bool temp1 = false ; |
3614 | bool temp2 = false ; | |
d55e5bfc RD |
3615 | wxPoint temp4 ; |
3616 | PyObject * obj0 = 0 ; | |
3617 | PyObject * obj1 = 0 ; | |
3618 | PyObject * obj2 = 0 ; | |
3619 | PyObject * obj3 = 0 ; | |
3620 | PyObject * obj4 = 0 ; | |
3621 | char *kwnames[] = { | |
3622 | (char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "parent", NULL | |
3623 | }; | |
3624 | ||
3625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:DirSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
3626 | if (obj0) { | |
3627 | { | |
3628 | arg1 = wxString_in_helper(obj0); | |
3629 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 3630 | temp1 = true; |
d55e5bfc RD |
3631 | } |
3632 | } | |
3633 | if (obj1) { | |
3634 | { | |
3635 | arg2 = wxString_in_helper(obj1); | |
3636 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 3637 | temp2 = true; |
d55e5bfc RD |
3638 | } |
3639 | } | |
3640 | if (obj2) { | |
c370783e | 3641 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
3642 | if (PyErr_Occurred()) SWIG_fail; |
3643 | } | |
3644 | if (obj3) { | |
3645 | { | |
3646 | arg4 = &temp4; | |
3647 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3648 | } | |
3649 | } | |
3650 | if (obj4) { | |
3651 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxWindow, | |
3652 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3653 | } | |
3654 | { | |
0439c23b | 3655 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3657 | result = wxDirSelector((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxPoint const &)*arg4,arg5); | |
3658 | ||
3659 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3660 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3661 | } |
3662 | { | |
3663 | #if wxUSE_UNICODE | |
3664 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3665 | #else | |
3666 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3667 | #endif | |
3668 | } | |
3669 | { | |
3670 | if (temp1) | |
3671 | delete arg1; | |
3672 | } | |
3673 | { | |
3674 | if (temp2) | |
3675 | delete arg2; | |
3676 | } | |
3677 | return resultobj; | |
3678 | fail: | |
3679 | { | |
3680 | if (temp1) | |
3681 | delete arg1; | |
3682 | } | |
3683 | { | |
3684 | if (temp2) | |
3685 | delete arg2; | |
3686 | } | |
3687 | return NULL; | |
3688 | } | |
3689 | ||
3690 | ||
c370783e | 3691 | static PyObject *_wrap_GetTextFromUser(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3692 | PyObject *resultobj; |
3693 | wxString *arg1 = 0 ; | |
3694 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3695 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3696 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3697 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3698 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3699 | int arg5 = (int) -1 ; | |
3700 | int arg6 = (int) -1 ; | |
b411df4a | 3701 | bool arg7 = (bool) true ; |
d55e5bfc | 3702 | wxString result; |
b411df4a RD |
3703 | bool temp1 = false ; |
3704 | bool temp2 = false ; | |
3705 | bool temp3 = false ; | |
d55e5bfc RD |
3706 | PyObject * obj0 = 0 ; |
3707 | PyObject * obj1 = 0 ; | |
3708 | PyObject * obj2 = 0 ; | |
3709 | PyObject * obj3 = 0 ; | |
3710 | PyObject * obj4 = 0 ; | |
3711 | PyObject * obj5 = 0 ; | |
3712 | PyObject * obj6 = 0 ; | |
3713 | char *kwnames[] = { | |
3714 | (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre", NULL | |
3715 | }; | |
3716 | ||
3717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GetTextFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
3718 | { | |
3719 | arg1 = wxString_in_helper(obj0); | |
3720 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 3721 | temp1 = true; |
d55e5bfc RD |
3722 | } |
3723 | if (obj1) { | |
3724 | { | |
3725 | arg2 = wxString_in_helper(obj1); | |
3726 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 3727 | temp2 = true; |
d55e5bfc RD |
3728 | } |
3729 | } | |
3730 | if (obj2) { | |
3731 | { | |
3732 | arg3 = wxString_in_helper(obj2); | |
3733 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 3734 | temp3 = true; |
d55e5bfc RD |
3735 | } |
3736 | } | |
3737 | if (obj3) { | |
3738 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
3739 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3740 | } | |
3741 | if (obj4) { | |
c370783e | 3742 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
3743 | if (PyErr_Occurred()) SWIG_fail; |
3744 | } | |
3745 | if (obj5) { | |
c370783e | 3746 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
3747 | if (PyErr_Occurred()) SWIG_fail; |
3748 | } | |
3749 | if (obj6) { | |
c370783e | 3750 | arg7 = (bool)SWIG_As_bool(obj6); |
d55e5bfc RD |
3751 | if (PyErr_Occurred()) SWIG_fail; |
3752 | } | |
3753 | { | |
0439c23b | 3754 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3756 | result = wxGetTextFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7); | |
3757 | ||
3758 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3759 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3760 | } |
3761 | { | |
3762 | #if wxUSE_UNICODE | |
3763 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3764 | #else | |
3765 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3766 | #endif | |
3767 | } | |
3768 | { | |
3769 | if (temp1) | |
3770 | delete arg1; | |
3771 | } | |
3772 | { | |
3773 | if (temp2) | |
3774 | delete arg2; | |
3775 | } | |
3776 | { | |
3777 | if (temp3) | |
3778 | delete arg3; | |
3779 | } | |
3780 | return resultobj; | |
3781 | fail: | |
3782 | { | |
3783 | if (temp1) | |
3784 | delete arg1; | |
3785 | } | |
3786 | { | |
3787 | if (temp2) | |
3788 | delete arg2; | |
3789 | } | |
3790 | { | |
3791 | if (temp3) | |
3792 | delete arg3; | |
3793 | } | |
3794 | return NULL; | |
3795 | } | |
3796 | ||
3797 | ||
c370783e | 3798 | static PyObject *_wrap_GetPasswordFromUser(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3799 | PyObject *resultobj; |
3800 | wxString *arg1 = 0 ; | |
3801 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3802 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3803 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3804 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3805 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3806 | wxString result; | |
b411df4a RD |
3807 | bool temp1 = false ; |
3808 | bool temp2 = false ; | |
3809 | bool temp3 = false ; | |
d55e5bfc RD |
3810 | PyObject * obj0 = 0 ; |
3811 | PyObject * obj1 = 0 ; | |
3812 | PyObject * obj2 = 0 ; | |
3813 | PyObject * obj3 = 0 ; | |
3814 | char *kwnames[] = { | |
3815 | (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent", NULL | |
3816 | }; | |
3817 | ||
3818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:GetPasswordFromUser",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3819 | { | |
3820 | arg1 = wxString_in_helper(obj0); | |
3821 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 3822 | temp1 = true; |
d55e5bfc RD |
3823 | } |
3824 | if (obj1) { | |
3825 | { | |
3826 | arg2 = wxString_in_helper(obj1); | |
3827 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 3828 | temp2 = true; |
d55e5bfc RD |
3829 | } |
3830 | } | |
3831 | if (obj2) { | |
3832 | { | |
3833 | arg3 = wxString_in_helper(obj2); | |
3834 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 3835 | temp3 = true; |
d55e5bfc RD |
3836 | } |
3837 | } | |
3838 | if (obj3) { | |
3839 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
3840 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3841 | } | |
3842 | { | |
0439c23b | 3843 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3845 | result = wxGetPasswordFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
3846 | ||
3847 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3848 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3849 | } |
3850 | { | |
3851 | #if wxUSE_UNICODE | |
3852 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3853 | #else | |
3854 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3855 | #endif | |
3856 | } | |
3857 | { | |
3858 | if (temp1) | |
3859 | delete arg1; | |
3860 | } | |
3861 | { | |
3862 | if (temp2) | |
3863 | delete arg2; | |
3864 | } | |
3865 | { | |
3866 | if (temp3) | |
3867 | delete arg3; | |
3868 | } | |
3869 | return resultobj; | |
3870 | fail: | |
3871 | { | |
3872 | if (temp1) | |
3873 | delete arg1; | |
3874 | } | |
3875 | { | |
3876 | if (temp2) | |
3877 | delete arg2; | |
3878 | } | |
3879 | { | |
3880 | if (temp3) | |
3881 | delete arg3; | |
3882 | } | |
3883 | return NULL; | |
3884 | } | |
3885 | ||
3886 | ||
c370783e | 3887 | static PyObject *_wrap_GetSingleChoice(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3888 | PyObject *resultobj; |
3889 | wxString *arg1 = 0 ; | |
3890 | wxString *arg2 = 0 ; | |
3891 | int arg3 ; | |
3892 | wxString *arg4 = (wxString *) 0 ; | |
3893 | wxWindow *arg5 = (wxWindow *) NULL ; | |
3894 | int arg6 = (int) -1 ; | |
3895 | int arg7 = (int) -1 ; | |
b411df4a | 3896 | bool arg8 = (bool) true ; |
d55e5bfc RD |
3897 | int arg9 = (int) 150 ; |
3898 | int arg10 = (int) 200 ; | |
3899 | wxString result; | |
b411df4a RD |
3900 | bool temp1 = false ; |
3901 | bool temp2 = false ; | |
d55e5bfc RD |
3902 | PyObject * obj0 = 0 ; |
3903 | PyObject * obj1 = 0 ; | |
3904 | PyObject * obj2 = 0 ; | |
3905 | PyObject * obj3 = 0 ; | |
3906 | PyObject * obj4 = 0 ; | |
3907 | PyObject * obj5 = 0 ; | |
3908 | PyObject * obj6 = 0 ; | |
3909 | PyObject * obj7 = 0 ; | |
3910 | PyObject * obj8 = 0 ; | |
3911 | char *kwnames[] = { | |
3912 | (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL | |
3913 | }; | |
3914 | ||
3915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
3916 | { | |
3917 | arg1 = wxString_in_helper(obj0); | |
3918 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 3919 | temp1 = true; |
d55e5bfc RD |
3920 | } |
3921 | { | |
3922 | arg2 = wxString_in_helper(obj1); | |
3923 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 3924 | temp2 = true; |
d55e5bfc RD |
3925 | } |
3926 | { | |
3927 | arg3 = PyList_Size(obj2); | |
3928 | arg4 = wxString_LIST_helper(obj2); | |
3929 | if (arg4 == NULL) SWIG_fail; | |
3930 | } | |
3931 | if (obj3) { | |
3932 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow, | |
3933 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3934 | } | |
3935 | if (obj4) { | |
c370783e | 3936 | arg6 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
3937 | if (PyErr_Occurred()) SWIG_fail; |
3938 | } | |
3939 | if (obj5) { | |
c370783e | 3940 | arg7 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
3941 | if (PyErr_Occurred()) SWIG_fail; |
3942 | } | |
3943 | if (obj6) { | |
c370783e | 3944 | arg8 = (bool)SWIG_As_bool(obj6); |
d55e5bfc RD |
3945 | if (PyErr_Occurred()) SWIG_fail; |
3946 | } | |
3947 | if (obj7) { | |
c370783e | 3948 | arg9 = (int)SWIG_As_int(obj7); |
d55e5bfc RD |
3949 | if (PyErr_Occurred()) SWIG_fail; |
3950 | } | |
3951 | if (obj8) { | |
c370783e | 3952 | arg10 = (int)SWIG_As_int(obj8); |
d55e5bfc RD |
3953 | if (PyErr_Occurred()) SWIG_fail; |
3954 | } | |
3955 | { | |
0439c23b | 3956 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3958 | result = wxGetSingleChoice((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); | |
3959 | ||
3960 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3961 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3962 | } |
3963 | { | |
3964 | #if wxUSE_UNICODE | |
3965 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3966 | #else | |
3967 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3968 | #endif | |
3969 | } | |
3970 | { | |
3971 | if (temp1) | |
3972 | delete arg1; | |
3973 | } | |
3974 | { | |
3975 | if (temp2) | |
3976 | delete arg2; | |
3977 | } | |
3978 | { | |
3979 | if (arg4) delete [] arg4; | |
3980 | } | |
3981 | return resultobj; | |
3982 | fail: | |
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 NULL; | |
3995 | } | |
3996 | ||
3997 | ||
c370783e | 3998 | static PyObject *_wrap_GetSingleChoiceIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3999 | PyObject *resultobj; |
4000 | wxString *arg1 = 0 ; | |
4001 | wxString *arg2 = 0 ; | |
4002 | int arg3 ; | |
4003 | wxString *arg4 = (wxString *) 0 ; | |
4004 | wxWindow *arg5 = (wxWindow *) NULL ; | |
4005 | int arg6 = (int) -1 ; | |
4006 | int arg7 = (int) -1 ; | |
b411df4a | 4007 | bool arg8 = (bool) true ; |
d55e5bfc RD |
4008 | int arg9 = (int) 150 ; |
4009 | int arg10 = (int) 200 ; | |
4010 | int result; | |
b411df4a RD |
4011 | bool temp1 = false ; |
4012 | bool temp2 = false ; | |
d55e5bfc RD |
4013 | PyObject * obj0 = 0 ; |
4014 | PyObject * obj1 = 0 ; | |
4015 | PyObject * obj2 = 0 ; | |
4016 | PyObject * obj3 = 0 ; | |
4017 | PyObject * obj4 = 0 ; | |
4018 | PyObject * obj5 = 0 ; | |
4019 | PyObject * obj6 = 0 ; | |
4020 | PyObject * obj7 = 0 ; | |
4021 | PyObject * obj8 = 0 ; | |
4022 | char *kwnames[] = { | |
4023 | (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL | |
4024 | }; | |
4025 | ||
4026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoiceIndex",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
4027 | { | |
4028 | arg1 = wxString_in_helper(obj0); | |
4029 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 4030 | temp1 = true; |
d55e5bfc RD |
4031 | } |
4032 | { | |
4033 | arg2 = wxString_in_helper(obj1); | |
4034 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 4035 | temp2 = true; |
d55e5bfc RD |
4036 | } |
4037 | { | |
4038 | arg3 = PyList_Size(obj2); | |
4039 | arg4 = wxString_LIST_helper(obj2); | |
4040 | if (arg4 == NULL) SWIG_fail; | |
4041 | } | |
4042 | if (obj3) { | |
4043 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow, | |
4044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4045 | } | |
4046 | if (obj4) { | |
c370783e | 4047 | arg6 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
4048 | if (PyErr_Occurred()) SWIG_fail; |
4049 | } | |
4050 | if (obj5) { | |
c370783e | 4051 | arg7 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
4052 | if (PyErr_Occurred()) SWIG_fail; |
4053 | } | |
4054 | if (obj6) { | |
c370783e | 4055 | arg8 = (bool)SWIG_As_bool(obj6); |
d55e5bfc RD |
4056 | if (PyErr_Occurred()) SWIG_fail; |
4057 | } | |
4058 | if (obj7) { | |
c370783e | 4059 | arg9 = (int)SWIG_As_int(obj7); |
d55e5bfc RD |
4060 | if (PyErr_Occurred()) SWIG_fail; |
4061 | } | |
4062 | if (obj8) { | |
c370783e | 4063 | arg10 = (int)SWIG_As_int(obj8); |
d55e5bfc RD |
4064 | if (PyErr_Occurred()) SWIG_fail; |
4065 | } | |
4066 | { | |
0439c23b | 4067 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4069 | result = (int)wxGetSingleChoiceIndex((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); | |
4070 | ||
4071 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4072 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 4073 | } |
c370783e | 4074 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4075 | { |
4076 | if (temp1) | |
4077 | delete arg1; | |
4078 | } | |
4079 | { | |
4080 | if (temp2) | |
4081 | delete arg2; | |
4082 | } | |
4083 | { | |
4084 | if (arg4) delete [] arg4; | |
4085 | } | |
4086 | return resultobj; | |
4087 | fail: | |
4088 | { | |
4089 | if (temp1) | |
4090 | delete arg1; | |
4091 | } | |
4092 | { | |
4093 | if (temp2) | |
4094 | delete arg2; | |
4095 | } | |
4096 | { | |
4097 | if (arg4) delete [] arg4; | |
4098 | } | |
4099 | return NULL; | |
4100 | } | |
4101 | ||
4102 | ||
c370783e | 4103 | static PyObject *_wrap_MessageBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4104 | PyObject *resultobj; |
4105 | wxString *arg1 = 0 ; | |
4106 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
4107 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
4108 | int arg3 = (int) wxOK|wxCENTRE ; | |
4109 | wxWindow *arg4 = (wxWindow *) NULL ; | |
4110 | int arg5 = (int) -1 ; | |
4111 | int arg6 = (int) -1 ; | |
4112 | int result; | |
b411df4a RD |
4113 | bool temp1 = false ; |
4114 | bool temp2 = false ; | |
d55e5bfc RD |
4115 | PyObject * obj0 = 0 ; |
4116 | PyObject * obj1 = 0 ; | |
4117 | PyObject * obj2 = 0 ; | |
4118 | PyObject * obj3 = 0 ; | |
4119 | PyObject * obj4 = 0 ; | |
4120 | PyObject * obj5 = 0 ; | |
4121 | char *kwnames[] = { | |
4122 | (char *) "message",(char *) "caption",(char *) "style",(char *) "parent",(char *) "x",(char *) "y", NULL | |
4123 | }; | |
4124 | ||
4125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:MessageBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
4126 | { | |
4127 | arg1 = wxString_in_helper(obj0); | |
4128 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 4129 | temp1 = true; |
d55e5bfc RD |
4130 | } |
4131 | if (obj1) { | |
4132 | { | |
4133 | arg2 = wxString_in_helper(obj1); | |
4134 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 4135 | temp2 = true; |
d55e5bfc RD |
4136 | } |
4137 | } | |
4138 | if (obj2) { | |
c370783e | 4139 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
4140 | if (PyErr_Occurred()) SWIG_fail; |
4141 | } | |
4142 | if (obj3) { | |
4143 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
4144 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4145 | } | |
4146 | if (obj4) { | |
c370783e | 4147 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
4148 | if (PyErr_Occurred()) SWIG_fail; |
4149 | } | |
4150 | if (obj5) { | |
c370783e | 4151 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
4152 | if (PyErr_Occurred()) SWIG_fail; |
4153 | } | |
4154 | { | |
0439c23b | 4155 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4157 | result = (int)wxMessageBox((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
4158 | ||
4159 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4160 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 4161 | } |
c370783e | 4162 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4163 | { |
4164 | if (temp1) | |
4165 | delete arg1; | |
4166 | } | |
4167 | { | |
4168 | if (temp2) | |
4169 | delete arg2; | |
4170 | } | |
4171 | return resultobj; | |
4172 | fail: | |
4173 | { | |
4174 | if (temp1) | |
4175 | delete arg1; | |
4176 | } | |
4177 | { | |
4178 | if (temp2) | |
4179 | delete arg2; | |
4180 | } | |
4181 | return NULL; | |
4182 | } | |
4183 | ||
4184 | ||
c370783e | 4185 | static PyObject *_wrap_GetNumberFromUser(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4186 | PyObject *resultobj; |
4187 | wxString *arg1 = 0 ; | |
4188 | wxString *arg2 = 0 ; | |
4189 | wxString *arg3 = 0 ; | |
4190 | long arg4 ; | |
4191 | long arg5 = (long) 0 ; | |
4192 | long arg6 = (long) 100 ; | |
4193 | wxWindow *arg7 = (wxWindow *) NULL ; | |
4194 | wxPoint const &arg8_defvalue = wxDefaultPosition ; | |
4195 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
4196 | long result; | |
b411df4a RD |
4197 | bool temp1 = false ; |
4198 | bool temp2 = false ; | |
4199 | bool temp3 = false ; | |
d55e5bfc RD |
4200 | wxPoint temp8 ; |
4201 | PyObject * obj0 = 0 ; | |
4202 | PyObject * obj1 = 0 ; | |
4203 | PyObject * obj2 = 0 ; | |
4204 | PyObject * obj3 = 0 ; | |
4205 | PyObject * obj4 = 0 ; | |
4206 | PyObject * obj5 = 0 ; | |
4207 | PyObject * obj6 = 0 ; | |
4208 | PyObject * obj7 = 0 ; | |
4209 | char *kwnames[] = { | |
4210 | (char *) "message",(char *) "prompt",(char *) "caption",(char *) "value",(char *) "min",(char *) "max",(char *) "parent",(char *) "pos", NULL | |
4211 | }; | |
4212 | ||
4213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:GetNumberFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
4214 | { | |
4215 | arg1 = wxString_in_helper(obj0); | |
4216 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 4217 | temp1 = true; |
d55e5bfc RD |
4218 | } |
4219 | { | |
4220 | arg2 = wxString_in_helper(obj1); | |
4221 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 4222 | temp2 = true; |
d55e5bfc RD |
4223 | } |
4224 | { | |
4225 | arg3 = wxString_in_helper(obj2); | |
4226 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 4227 | temp3 = true; |
d55e5bfc | 4228 | } |
c370783e | 4229 | arg4 = (long)SWIG_As_long(obj3); |
d55e5bfc RD |
4230 | if (PyErr_Occurred()) SWIG_fail; |
4231 | if (obj4) { | |
c370783e | 4232 | arg5 = (long)SWIG_As_long(obj4); |
d55e5bfc RD |
4233 | if (PyErr_Occurred()) SWIG_fail; |
4234 | } | |
4235 | if (obj5) { | |
c370783e | 4236 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
4237 | if (PyErr_Occurred()) SWIG_fail; |
4238 | } | |
4239 | if (obj6) { | |
4240 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow, | |
4241 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4242 | } | |
4243 | if (obj7) { | |
4244 | { | |
4245 | arg8 = &temp8; | |
4246 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
4247 | } | |
4248 | } | |
4249 | { | |
0439c23b | 4250 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4252 | result = (long)wxGetNumberFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7,(wxPoint const &)*arg8); | |
4253 | ||
4254 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4255 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 4256 | } |
c370783e | 4257 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
4258 | { |
4259 | if (temp1) | |
4260 | delete arg1; | |
4261 | } | |
4262 | { | |
4263 | if (temp2) | |
4264 | delete arg2; | |
4265 | } | |
4266 | { | |
4267 | if (temp3) | |
4268 | delete arg3; | |
4269 | } | |
4270 | return resultobj; | |
4271 | fail: | |
4272 | { | |
4273 | if (temp1) | |
4274 | delete arg1; | |
4275 | } | |
4276 | { | |
4277 | if (temp2) | |
4278 | delete arg2; | |
4279 | } | |
4280 | { | |
4281 | if (temp3) | |
4282 | delete arg3; | |
4283 | } | |
4284 | return NULL; | |
4285 | } | |
4286 | ||
4287 | ||
c370783e | 4288 | static PyObject *_wrap_ColourDisplay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4289 | PyObject *resultobj; |
4290 | bool result; | |
4291 | char *kwnames[] = { | |
4292 | NULL | |
4293 | }; | |
4294 | ||
4295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ColourDisplay",kwnames)) goto fail; | |
4296 | { | |
0439c23b | 4297 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4299 | result = (bool)wxColourDisplay(); | |
4300 | ||
4301 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4302 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4303 | } |
4304 | { | |
4305 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4306 | } | |
4307 | return resultobj; | |
4308 | fail: | |
4309 | return NULL; | |
4310 | } | |
4311 | ||
4312 | ||
c370783e | 4313 | static PyObject *_wrap_DisplayDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4314 | PyObject *resultobj; |
4315 | int result; | |
4316 | char *kwnames[] = { | |
4317 | NULL | |
4318 | }; | |
4319 | ||
4320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplayDepth",kwnames)) goto fail; | |
4321 | { | |
0439c23b | 4322 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4324 | result = (int)wxDisplayDepth(); | |
4325 | ||
4326 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4327 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 4328 | } |
c370783e | 4329 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4330 | return resultobj; |
4331 | fail: | |
4332 | return NULL; | |
4333 | } | |
4334 | ||
4335 | ||
c370783e | 4336 | static PyObject *_wrap_GetDisplayDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4337 | PyObject *resultobj; |
4338 | int result; | |
4339 | char *kwnames[] = { | |
4340 | NULL | |
4341 | }; | |
4342 | ||
4343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplayDepth",kwnames)) goto fail; | |
4344 | { | |
0439c23b | 4345 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4347 | result = (int)wxGetDisplayDepth(); | |
4348 | ||
4349 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4350 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 4351 | } |
c370783e | 4352 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4353 | return resultobj; |
4354 | fail: | |
4355 | return NULL; | |
4356 | } | |
4357 | ||
4358 | ||
c370783e | 4359 | static PyObject *_wrap_DisplaySize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4360 | PyObject *resultobj; |
4361 | int *arg1 = (int *) 0 ; | |
4362 | int *arg2 = (int *) 0 ; | |
4363 | int temp1 ; | |
c370783e | 4364 | int res1 = 0 ; |
d55e5bfc | 4365 | int temp2 ; |
c370783e | 4366 | int res2 = 0 ; |
d55e5bfc RD |
4367 | char *kwnames[] = { |
4368 | NULL | |
4369 | }; | |
4370 | ||
c370783e RD |
4371 | arg1 = &temp1; res1 = SWIG_NEWOBJ; |
4372 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
d55e5bfc RD |
4373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySize",kwnames)) goto fail; |
4374 | { | |
0439c23b | 4375 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4377 | wxDisplaySize(arg1,arg2); | |
4378 | ||
4379 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4380 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4381 | } |
4382 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
4383 | resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ? |
4384 | SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0))); | |
4385 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
4386 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
4387 | return resultobj; |
4388 | fail: | |
4389 | return NULL; | |
4390 | } | |
4391 | ||
4392 | ||
c370783e | 4393 | static PyObject *_wrap_GetDisplaySize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4394 | PyObject *resultobj; |
4395 | wxSize result; | |
4396 | char *kwnames[] = { | |
4397 | NULL | |
4398 | }; | |
4399 | ||
4400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySize",kwnames)) goto fail; | |
4401 | { | |
0439c23b | 4402 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4404 | result = wxGetDisplaySize(); | |
4405 | ||
4406 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4407 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4408 | } |
4409 | { | |
4410 | wxSize * resultptr; | |
4411 | resultptr = new wxSize((wxSize &) result); | |
4412 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
4413 | } | |
4414 | return resultobj; | |
4415 | fail: | |
4416 | return NULL; | |
4417 | } | |
4418 | ||
4419 | ||
c370783e | 4420 | static PyObject *_wrap_DisplaySizeMM(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4421 | PyObject *resultobj; |
4422 | int *arg1 = (int *) 0 ; | |
4423 | int *arg2 = (int *) 0 ; | |
4424 | int temp1 ; | |
c370783e | 4425 | int res1 = 0 ; |
d55e5bfc | 4426 | int temp2 ; |
c370783e | 4427 | int res2 = 0 ; |
d55e5bfc RD |
4428 | char *kwnames[] = { |
4429 | NULL | |
4430 | }; | |
4431 | ||
c370783e RD |
4432 | arg1 = &temp1; res1 = SWIG_NEWOBJ; |
4433 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
d55e5bfc RD |
4434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySizeMM",kwnames)) goto fail; |
4435 | { | |
0439c23b | 4436 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4438 | wxDisplaySizeMM(arg1,arg2); | |
4439 | ||
4440 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4441 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4442 | } |
4443 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
4444 | resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ? |
4445 | SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0))); | |
4446 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
4447 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
4448 | return resultobj; |
4449 | fail: | |
4450 | return NULL; | |
4451 | } | |
4452 | ||
4453 | ||
c370783e | 4454 | static PyObject *_wrap_GetDisplaySizeMM(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4455 | PyObject *resultobj; |
4456 | wxSize result; | |
4457 | char *kwnames[] = { | |
4458 | NULL | |
4459 | }; | |
4460 | ||
4461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySizeMM",kwnames)) goto fail; | |
4462 | { | |
0439c23b | 4463 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4465 | result = wxGetDisplaySizeMM(); | |
4466 | ||
4467 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4468 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4469 | } |
4470 | { | |
4471 | wxSize * resultptr; | |
4472 | resultptr = new wxSize((wxSize &) result); | |
4473 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
4474 | } | |
4475 | return resultobj; | |
4476 | fail: | |
4477 | return NULL; | |
4478 | } | |
4479 | ||
4480 | ||
c370783e | 4481 | static PyObject *_wrap_ClientDisplayRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4482 | PyObject *resultobj; |
4483 | int *arg1 = (int *) 0 ; | |
4484 | int *arg2 = (int *) 0 ; | |
4485 | int *arg3 = (int *) 0 ; | |
4486 | int *arg4 = (int *) 0 ; | |
4487 | int temp1 ; | |
c370783e | 4488 | int res1 = 0 ; |
d55e5bfc | 4489 | int temp2 ; |
c370783e | 4490 | int res2 = 0 ; |
d55e5bfc | 4491 | int temp3 ; |
c370783e | 4492 | int res3 = 0 ; |
d55e5bfc | 4493 | int temp4 ; |
c370783e | 4494 | int res4 = 0 ; |
d55e5bfc RD |
4495 | char *kwnames[] = { |
4496 | NULL | |
4497 | }; | |
4498 | ||
c370783e RD |
4499 | arg1 = &temp1; res1 = SWIG_NEWOBJ; |
4500 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
4501 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
4502 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
d55e5bfc RD |
4503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ClientDisplayRect",kwnames)) goto fail; |
4504 | { | |
0439c23b | 4505 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4507 | wxClientDisplayRect(arg1,arg2,arg3,arg4); | |
4508 | ||
4509 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4510 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4511 | } |
4512 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
4513 | resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ? |
4514 | SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0))); | |
4515 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
4516 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
4517 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
4518 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
4519 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
4520 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
4521 | return resultobj; |
4522 | fail: | |
4523 | return NULL; | |
4524 | } | |
4525 | ||
4526 | ||
c370783e | 4527 | static PyObject *_wrap_GetClientDisplayRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4528 | PyObject *resultobj; |
4529 | wxRect result; | |
4530 | char *kwnames[] = { | |
4531 | NULL | |
4532 | }; | |
4533 | ||
4534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetClientDisplayRect",kwnames)) goto fail; | |
4535 | { | |
0439c23b | 4536 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4538 | result = wxGetClientDisplayRect(); | |
4539 | ||
4540 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4541 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4542 | } |
4543 | { | |
4544 | wxRect * resultptr; | |
4545 | resultptr = new wxRect((wxRect &) result); | |
4546 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
4547 | } | |
4548 | return resultobj; | |
4549 | fail: | |
4550 | return NULL; | |
4551 | } | |
4552 | ||
4553 | ||
c370783e | 4554 | static PyObject *_wrap_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4555 | PyObject *resultobj; |
4556 | wxCursor *arg1 = 0 ; | |
4557 | PyObject * obj0 = 0 ; | |
4558 | char *kwnames[] = { | |
4559 | (char *) "cursor", NULL | |
4560 | }; | |
4561 | ||
4562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursor",kwnames,&obj0)) goto fail; | |
4563 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
4564 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4565 | SWIG_fail; | |
4566 | if (arg1 == NULL) { | |
4567 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4568 | SWIG_fail; | |
4569 | } | |
4570 | { | |
0439c23b | 4571 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4573 | wxSetCursor(*arg1); | |
4574 | ||
4575 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4576 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4577 | } |
4578 | Py_INCREF(Py_None); resultobj = Py_None; | |
4579 | return resultobj; | |
4580 | fail: | |
4581 | return NULL; | |
4582 | } | |
4583 | ||
4584 | ||
c370783e | 4585 | static PyObject *_wrap_BeginBusyCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4586 | PyObject *resultobj; |
4587 | wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ; | |
4588 | PyObject * obj0 = 0 ; | |
4589 | char *kwnames[] = { | |
4590 | (char *) "cursor", NULL | |
4591 | }; | |
4592 | ||
4593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BeginBusyCursor",kwnames,&obj0)) goto fail; | |
4594 | if (obj0) { | |
4595 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
4596 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4597 | } | |
4598 | { | |
0439c23b | 4599 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4601 | wxBeginBusyCursor(arg1); | |
4602 | ||
4603 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4604 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4605 | } |
4606 | Py_INCREF(Py_None); resultobj = Py_None; | |
4607 | return resultobj; | |
4608 | fail: | |
4609 | return NULL; | |
4610 | } | |
4611 | ||
4612 | ||
c370783e | 4613 | static PyObject *_wrap_GetActiveWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4614 | PyObject *resultobj; |
4615 | wxWindow *result; | |
4616 | char *kwnames[] = { | |
4617 | NULL | |
4618 | }; | |
4619 | ||
4620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetActiveWindow",kwnames)) goto fail; | |
4621 | { | |
0439c23b | 4622 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4624 | result = (wxWindow *)wxGetActiveWindow(); | |
4625 | ||
4626 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4627 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4628 | } |
4629 | { | |
412d302d | 4630 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
4631 | } |
4632 | return resultobj; | |
4633 | fail: | |
4634 | return NULL; | |
4635 | } | |
4636 | ||
4637 | ||
c370783e | 4638 | static PyObject *_wrap_GenericFindWindowAtPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4639 | PyObject *resultobj; |
4640 | wxPoint *arg1 = 0 ; | |
4641 | wxWindow *result; | |
4642 | wxPoint temp1 ; | |
4643 | PyObject * obj0 = 0 ; | |
4644 | char *kwnames[] = { | |
4645 | (char *) "pt", NULL | |
4646 | }; | |
4647 | ||
4648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericFindWindowAtPoint",kwnames,&obj0)) goto fail; | |
4649 | { | |
4650 | arg1 = &temp1; | |
4651 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
4652 | } | |
4653 | { | |
0439c23b | 4654 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4656 | result = (wxWindow *)wxGenericFindWindowAtPoint((wxPoint const &)*arg1); | |
4657 | ||
4658 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4659 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4660 | } |
4661 | { | |
412d302d | 4662 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
4663 | } |
4664 | return resultobj; | |
4665 | fail: | |
4666 | return NULL; | |
4667 | } | |
4668 | ||
4669 | ||
c370783e | 4670 | static PyObject *_wrap_FindWindowAtPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4671 | PyObject *resultobj; |
4672 | wxPoint *arg1 = 0 ; | |
4673 | wxWindow *result; | |
4674 | wxPoint temp1 ; | |
4675 | PyObject * obj0 = 0 ; | |
4676 | char *kwnames[] = { | |
4677 | (char *) "pt", NULL | |
4678 | }; | |
4679 | ||
4680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindWindowAtPoint",kwnames,&obj0)) goto fail; | |
4681 | { | |
4682 | arg1 = &temp1; | |
4683 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
4684 | } | |
4685 | { | |
0439c23b | 4686 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4688 | result = (wxWindow *)wxFindWindowAtPoint((wxPoint const &)*arg1); | |
4689 | ||
4690 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4691 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4692 | } |
4693 | { | |
412d302d | 4694 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
4695 | } |
4696 | return resultobj; | |
4697 | fail: | |
4698 | return NULL; | |
4699 | } | |
4700 | ||
4701 | ||
c370783e | 4702 | static PyObject *_wrap_GetTopLevelParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4703 | PyObject *resultobj; |
4704 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4705 | wxWindow *result; | |
4706 | PyObject * obj0 = 0 ; | |
4707 | char *kwnames[] = { | |
4708 | (char *) "win", NULL | |
4709 | }; | |
4710 | ||
4711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetTopLevelParent",kwnames,&obj0)) goto fail; | |
4712 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
4713 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4714 | { | |
0439c23b | 4715 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4717 | result = (wxWindow *)wxGetTopLevelParent(arg1); | |
4718 | ||
4719 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4720 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4721 | } |
4722 | { | |
412d302d | 4723 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
4724 | } |
4725 | return resultobj; | |
4726 | fail: | |
4727 | return NULL; | |
4728 | } | |
4729 | ||
4730 | ||
c370783e | 4731 | static PyObject *_wrap_GetKeyState(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4732 | PyObject *resultobj; |
4733 | int arg1 ; | |
4734 | bool result; | |
4735 | PyObject * obj0 = 0 ; | |
4736 | char *kwnames[] = { | |
4737 | (char *) "key", NULL | |
4738 | }; | |
4739 | ||
4740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetKeyState",kwnames,&obj0)) goto fail; | |
c370783e | 4741 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
4742 | if (PyErr_Occurred()) SWIG_fail; |
4743 | { | |
0439c23b | 4744 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4746 | result = (bool)wxGetKeyState((wxKeyCode )arg1); | |
4747 | ||
4748 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4749 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4750 | } |
4751 | { | |
4752 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4753 | } | |
4754 | return resultobj; | |
4755 | fail: | |
4756 | return NULL; | |
4757 | } | |
4758 | ||
4759 | ||
c370783e | 4760 | static PyObject *_wrap_WakeUpMainThread(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4761 | PyObject *resultobj; |
4762 | char *kwnames[] = { | |
4763 | NULL | |
4764 | }; | |
4765 | ||
4766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpMainThread",kwnames)) goto fail; | |
4767 | { | |
0439c23b | 4768 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4770 | wxWakeUpMainThread(); | |
4771 | ||
4772 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4773 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4774 | } |
4775 | Py_INCREF(Py_None); resultobj = Py_None; | |
4776 | return resultobj; | |
4777 | fail: | |
4778 | return NULL; | |
4779 | } | |
4780 | ||
4781 | ||
c370783e | 4782 | static PyObject *_wrap_MutexGuiEnter(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4783 | PyObject *resultobj; |
4784 | char *kwnames[] = { | |
4785 | NULL | |
4786 | }; | |
4787 | ||
4788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiEnter",kwnames)) goto fail; | |
4789 | { | |
0439c23b | 4790 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4792 | wxMutexGuiEnter(); | |
4793 | ||
4794 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4795 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4796 | } |
4797 | Py_INCREF(Py_None); resultobj = Py_None; | |
4798 | return resultobj; | |
4799 | fail: | |
4800 | return NULL; | |
4801 | } | |
4802 | ||
4803 | ||
c370783e | 4804 | static PyObject *_wrap_MutexGuiLeave(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4805 | PyObject *resultobj; |
4806 | char *kwnames[] = { | |
4807 | NULL | |
4808 | }; | |
4809 | ||
4810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiLeave",kwnames)) goto fail; | |
4811 | { | |
0439c23b | 4812 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4814 | wxMutexGuiLeave(); | |
4815 | ||
4816 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4817 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4818 | } |
4819 | Py_INCREF(Py_None); resultobj = Py_None; | |
4820 | return resultobj; | |
4821 | fail: | |
4822 | return NULL; | |
4823 | } | |
4824 | ||
4825 | ||
c370783e | 4826 | static PyObject *_wrap_new_MutexGuiLocker(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4827 | PyObject *resultobj; |
4828 | wxMutexGuiLocker *result; | |
4829 | char *kwnames[] = { | |
4830 | NULL | |
4831 | }; | |
4832 | ||
4833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MutexGuiLocker",kwnames)) goto fail; | |
4834 | { | |
0439c23b | 4835 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4837 | result = (wxMutexGuiLocker *)new wxMutexGuiLocker(); | |
4838 | ||
4839 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4840 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4841 | } |
4842 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMutexGuiLocker, 1); | |
4843 | return resultobj; | |
4844 | fail: | |
4845 | return NULL; | |
4846 | } | |
4847 | ||
4848 | ||
c370783e | 4849 | static PyObject *_wrap_delete_MutexGuiLocker(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4850 | PyObject *resultobj; |
4851 | wxMutexGuiLocker *arg1 = (wxMutexGuiLocker *) 0 ; | |
4852 | PyObject * obj0 = 0 ; | |
4853 | char *kwnames[] = { | |
4854 | (char *) "self", NULL | |
4855 | }; | |
4856 | ||
4857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MutexGuiLocker",kwnames,&obj0)) goto fail; | |
4858 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMutexGuiLocker, | |
4859 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4860 | { | |
4861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4862 | delete arg1; | |
4863 | ||
4864 | wxPyEndAllowThreads(__tstate); | |
4865 | if (PyErr_Occurred()) SWIG_fail; | |
4866 | } | |
4867 | Py_INCREF(Py_None); resultobj = Py_None; | |
4868 | return resultobj; | |
4869 | fail: | |
4870 | return NULL; | |
4871 | } | |
4872 | ||
4873 | ||
c370783e | 4874 | static PyObject * MutexGuiLocker_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
4875 | PyObject *obj; |
4876 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4877 | SWIG_TypeClientData(SWIGTYPE_p_wxMutexGuiLocker, obj); | |
4878 | Py_INCREF(obj); | |
4879 | return Py_BuildValue((char *)""); | |
4880 | } | |
c370783e | 4881 | static PyObject *_wrap_Thread_IsMain(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4882 | PyObject *resultobj; |
4883 | bool result; | |
4884 | char *kwnames[] = { | |
4885 | NULL | |
4886 | }; | |
4887 | ||
4888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Thread_IsMain",kwnames)) goto fail; | |
4889 | { | |
4890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4891 | result = (bool)wxThread_IsMain(); | |
4892 | ||
4893 | wxPyEndAllowThreads(__tstate); | |
4894 | if (PyErr_Occurred()) SWIG_fail; | |
4895 | } | |
4896 | { | |
4897 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4898 | } | |
4899 | return resultobj; | |
4900 | fail: | |
4901 | return NULL; | |
4902 | } | |
4903 | ||
4904 | ||
c370783e | 4905 | static PyObject *_wrap_new_ToolTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4906 | PyObject *resultobj; |
4907 | wxString *arg1 = 0 ; | |
4908 | wxToolTip *result; | |
b411df4a | 4909 | bool temp1 = false ; |
d55e5bfc RD |
4910 | PyObject * obj0 = 0 ; |
4911 | char *kwnames[] = { | |
4912 | (char *) "tip", NULL | |
4913 | }; | |
4914 | ||
4915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ToolTip",kwnames,&obj0)) goto fail; | |
4916 | { | |
4917 | arg1 = wxString_in_helper(obj0); | |
4918 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 4919 | temp1 = true; |
d55e5bfc RD |
4920 | } |
4921 | { | |
0439c23b | 4922 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4924 | result = (wxToolTip *)new wxToolTip((wxString const &)*arg1); | |
4925 | ||
4926 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4927 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4928 | } |
4929 | { | |
412d302d | 4930 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
4931 | } |
4932 | { | |
4933 | if (temp1) | |
4934 | delete arg1; | |
4935 | } | |
4936 | return resultobj; | |
4937 | fail: | |
4938 | { | |
4939 | if (temp1) | |
4940 | delete arg1; | |
4941 | } | |
4942 | return NULL; | |
4943 | } | |
4944 | ||
4945 | ||
c370783e | 4946 | static PyObject *_wrap_ToolTip_SetTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4947 | PyObject *resultobj; |
4948 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
4949 | wxString *arg2 = 0 ; | |
b411df4a | 4950 | bool temp2 = false ; |
d55e5bfc RD |
4951 | PyObject * obj0 = 0 ; |
4952 | PyObject * obj1 = 0 ; | |
4953 | char *kwnames[] = { | |
4954 | (char *) "self",(char *) "tip", NULL | |
4955 | }; | |
4956 | ||
4957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolTip_SetTip",kwnames,&obj0,&obj1)) goto fail; | |
4958 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip, | |
4959 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4960 | { | |
4961 | arg2 = wxString_in_helper(obj1); | |
4962 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 4963 | temp2 = true; |
d55e5bfc RD |
4964 | } |
4965 | { | |
4966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4967 | (arg1)->SetTip((wxString const &)*arg2); | |
4968 | ||
4969 | wxPyEndAllowThreads(__tstate); | |
4970 | if (PyErr_Occurred()) SWIG_fail; | |
4971 | } | |
4972 | Py_INCREF(Py_None); resultobj = Py_None; | |
4973 | { | |
4974 | if (temp2) | |
4975 | delete arg2; | |
4976 | } | |
4977 | return resultobj; | |
4978 | fail: | |
4979 | { | |
4980 | if (temp2) | |
4981 | delete arg2; | |
4982 | } | |
4983 | return NULL; | |
4984 | } | |
4985 | ||
4986 | ||
c370783e | 4987 | static PyObject *_wrap_ToolTip_GetTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4988 | PyObject *resultobj; |
4989 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
4990 | wxString result; | |
4991 | PyObject * obj0 = 0 ; | |
4992 | char *kwnames[] = { | |
4993 | (char *) "self", NULL | |
4994 | }; | |
4995 | ||
4996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetTip",kwnames,&obj0)) goto fail; | |
4997 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip, | |
4998 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4999 | { | |
5000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5001 | result = (arg1)->GetTip(); | |
5002 | ||
5003 | wxPyEndAllowThreads(__tstate); | |
5004 | if (PyErr_Occurred()) SWIG_fail; | |
5005 | } | |
5006 | { | |
5007 | #if wxUSE_UNICODE | |
5008 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5009 | #else | |
5010 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5011 | #endif | |
5012 | } | |
5013 | return resultobj; | |
5014 | fail: | |
5015 | return NULL; | |
5016 | } | |
5017 | ||
5018 | ||
c370783e | 5019 | static PyObject *_wrap_ToolTip_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5020 | PyObject *resultobj; |
5021 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
5022 | wxWindow *result; | |
5023 | PyObject * obj0 = 0 ; | |
5024 | char *kwnames[] = { | |
5025 | (char *) "self", NULL | |
5026 | }; | |
5027 | ||
5028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetWindow",kwnames,&obj0)) goto fail; | |
5029 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip, | |
5030 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5031 | { | |
5032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5033 | result = (wxWindow *)(arg1)->GetWindow(); | |
5034 | ||
5035 | wxPyEndAllowThreads(__tstate); | |
5036 | if (PyErr_Occurred()) SWIG_fail; | |
5037 | } | |
5038 | { | |
412d302d | 5039 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
5040 | } |
5041 | return resultobj; | |
5042 | fail: | |
5043 | return NULL; | |
5044 | } | |
5045 | ||
5046 | ||
c370783e | 5047 | static PyObject *_wrap_ToolTip_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5048 | PyObject *resultobj; |
5049 | bool arg1 ; | |
5050 | PyObject * obj0 = 0 ; | |
5051 | char *kwnames[] = { | |
5052 | (char *) "flag", NULL | |
5053 | }; | |
5054 | ||
5055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_Enable",kwnames,&obj0)) goto fail; | |
c370783e | 5056 | arg1 = (bool)SWIG_As_bool(obj0); |
d55e5bfc RD |
5057 | if (PyErr_Occurred()) SWIG_fail; |
5058 | { | |
5059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5060 | wxToolTip::Enable(arg1); | |
5061 | ||
5062 | wxPyEndAllowThreads(__tstate); | |
5063 | if (PyErr_Occurred()) SWIG_fail; | |
5064 | } | |
5065 | Py_INCREF(Py_None); resultobj = Py_None; | |
5066 | return resultobj; | |
5067 | fail: | |
5068 | return NULL; | |
5069 | } | |
5070 | ||
5071 | ||
c370783e | 5072 | static PyObject *_wrap_ToolTip_SetDelay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5073 | PyObject *resultobj; |
5074 | long arg1 ; | |
5075 | PyObject * obj0 = 0 ; | |
5076 | char *kwnames[] = { | |
5077 | (char *) "milliseconds", NULL | |
5078 | }; | |
5079 | ||
5080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_SetDelay",kwnames,&obj0)) goto fail; | |
c370783e | 5081 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
5082 | if (PyErr_Occurred()) SWIG_fail; |
5083 | { | |
5084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5085 | wxToolTip::SetDelay(arg1); | |
5086 | ||
5087 | wxPyEndAllowThreads(__tstate); | |
5088 | if (PyErr_Occurred()) SWIG_fail; | |
5089 | } | |
5090 | Py_INCREF(Py_None); resultobj = Py_None; | |
5091 | return resultobj; | |
5092 | fail: | |
5093 | return NULL; | |
5094 | } | |
5095 | ||
5096 | ||
c370783e | 5097 | static PyObject * ToolTip_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
5098 | PyObject *obj; |
5099 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5100 | SWIG_TypeClientData(SWIGTYPE_p_wxToolTip, obj); | |
5101 | Py_INCREF(obj); | |
5102 | return Py_BuildValue((char *)""); | |
5103 | } | |
c370783e | 5104 | static PyObject *_wrap_new_Caret(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5105 | PyObject *resultobj; |
5106 | wxWindow *arg1 = (wxWindow *) 0 ; | |
5107 | wxSize *arg2 = 0 ; | |
5108 | wxCaret *result; | |
5109 | wxSize temp2 ; | |
5110 | PyObject * obj0 = 0 ; | |
5111 | PyObject * obj1 = 0 ; | |
5112 | char *kwnames[] = { | |
5113 | (char *) "window",(char *) "size", NULL | |
5114 | }; | |
5115 | ||
5116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_Caret",kwnames,&obj0,&obj1)) goto fail; | |
5117 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
5118 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5119 | { | |
5120 | arg2 = &temp2; | |
5121 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
5122 | } | |
5123 | { | |
0439c23b | 5124 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5126 | result = (wxCaret *)new wxCaret(arg1,(wxSize const &)*arg2); | |
5127 | ||
5128 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5129 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5130 | } |
5131 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 1); | |
5132 | return resultobj; | |
5133 | fail: | |
5134 | return NULL; | |
5135 | } | |
5136 | ||
5137 | ||
c370783e | 5138 | static PyObject *_wrap_delete_Caret(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5139 | PyObject *resultobj; |
5140 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5141 | PyObject * obj0 = 0 ; | |
5142 | char *kwnames[] = { | |
5143 | (char *) "self", NULL | |
5144 | }; | |
5145 | ||
5146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Caret",kwnames,&obj0)) goto fail; | |
5147 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5148 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5149 | { | |
5150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5151 | delete arg1; | |
5152 | ||
5153 | wxPyEndAllowThreads(__tstate); | |
5154 | if (PyErr_Occurred()) SWIG_fail; | |
5155 | } | |
5156 | Py_INCREF(Py_None); resultobj = Py_None; | |
5157 | return resultobj; | |
5158 | fail: | |
5159 | return NULL; | |
5160 | } | |
5161 | ||
5162 | ||
c370783e | 5163 | static PyObject *_wrap_Caret_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5164 | PyObject *resultobj; |
5165 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5166 | bool result; | |
5167 | PyObject * obj0 = 0 ; | |
5168 | char *kwnames[] = { | |
5169 | (char *) "self", NULL | |
5170 | }; | |
5171 | ||
5172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsOk",kwnames,&obj0)) goto fail; | |
5173 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5174 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5175 | { | |
5176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5177 | result = (bool)(arg1)->IsOk(); | |
5178 | ||
5179 | wxPyEndAllowThreads(__tstate); | |
5180 | if (PyErr_Occurred()) SWIG_fail; | |
5181 | } | |
5182 | { | |
5183 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5184 | } | |
5185 | return resultobj; | |
5186 | fail: | |
5187 | return NULL; | |
5188 | } | |
5189 | ||
5190 | ||
c370783e | 5191 | static PyObject *_wrap_Caret_IsVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5192 | PyObject *resultobj; |
5193 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5194 | bool result; | |
5195 | PyObject * obj0 = 0 ; | |
5196 | char *kwnames[] = { | |
5197 | (char *) "self", NULL | |
5198 | }; | |
5199 | ||
5200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsVisible",kwnames,&obj0)) goto fail; | |
5201 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5202 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5203 | { | |
5204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5205 | result = (bool)(arg1)->IsVisible(); | |
5206 | ||
5207 | wxPyEndAllowThreads(__tstate); | |
5208 | if (PyErr_Occurred()) SWIG_fail; | |
5209 | } | |
5210 | { | |
5211 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5212 | } | |
5213 | return resultobj; | |
5214 | fail: | |
5215 | return NULL; | |
5216 | } | |
5217 | ||
5218 | ||
c370783e | 5219 | static PyObject *_wrap_Caret_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5220 | PyObject *resultobj; |
5221 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5222 | wxPoint result; | |
5223 | PyObject * obj0 = 0 ; | |
5224 | char *kwnames[] = { | |
5225 | (char *) "self", NULL | |
5226 | }; | |
5227 | ||
5228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPosition",kwnames,&obj0)) goto fail; | |
5229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5231 | { | |
5232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5233 | result = (arg1)->GetPosition(); | |
5234 | ||
5235 | wxPyEndAllowThreads(__tstate); | |
5236 | if (PyErr_Occurred()) SWIG_fail; | |
5237 | } | |
5238 | { | |
5239 | wxPoint * resultptr; | |
5240 | resultptr = new wxPoint((wxPoint &) result); | |
5241 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
5242 | } | |
5243 | return resultobj; | |
5244 | fail: | |
5245 | return NULL; | |
5246 | } | |
5247 | ||
5248 | ||
c370783e | 5249 | static PyObject *_wrap_Caret_GetPositionTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5250 | PyObject *resultobj; |
5251 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5252 | int *arg2 = (int *) 0 ; | |
5253 | int *arg3 = (int *) 0 ; | |
5254 | int temp2 ; | |
c370783e | 5255 | int res2 = 0 ; |
d55e5bfc | 5256 | int temp3 ; |
c370783e | 5257 | int res3 = 0 ; |
d55e5bfc RD |
5258 | PyObject * obj0 = 0 ; |
5259 | char *kwnames[] = { | |
5260 | (char *) "self", NULL | |
5261 | }; | |
5262 | ||
c370783e RD |
5263 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
5264 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
5265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPositionTuple",kwnames,&obj0)) goto fail; |
5266 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5267 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5268 | { | |
5269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5270 | (arg1)->GetPosition(arg2,arg3); | |
5271 | ||
5272 | wxPyEndAllowThreads(__tstate); | |
5273 | if (PyErr_Occurred()) SWIG_fail; | |
5274 | } | |
5275 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
5276 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
5277 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
5278 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
5279 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
5280 | return resultobj; |
5281 | fail: | |
5282 | return NULL; | |
5283 | } | |
5284 | ||
5285 | ||
c370783e | 5286 | static PyObject *_wrap_Caret_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5287 | PyObject *resultobj; |
5288 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5289 | wxSize result; | |
5290 | PyObject * obj0 = 0 ; | |
5291 | char *kwnames[] = { | |
5292 | (char *) "self", NULL | |
5293 | }; | |
5294 | ||
5295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSize",kwnames,&obj0)) goto fail; | |
5296 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5297 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5298 | { | |
5299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5300 | result = (arg1)->GetSize(); | |
5301 | ||
5302 | wxPyEndAllowThreads(__tstate); | |
5303 | if (PyErr_Occurred()) SWIG_fail; | |
5304 | } | |
5305 | { | |
5306 | wxSize * resultptr; | |
5307 | resultptr = new wxSize((wxSize &) result); | |
5308 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
5309 | } | |
5310 | return resultobj; | |
5311 | fail: | |
5312 | return NULL; | |
5313 | } | |
5314 | ||
5315 | ||
c370783e | 5316 | static PyObject *_wrap_Caret_GetSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5317 | PyObject *resultobj; |
5318 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5319 | int *arg2 = (int *) 0 ; | |
5320 | int *arg3 = (int *) 0 ; | |
5321 | int temp2 ; | |
c370783e | 5322 | int res2 = 0 ; |
d55e5bfc | 5323 | int temp3 ; |
c370783e | 5324 | int res3 = 0 ; |
d55e5bfc RD |
5325 | PyObject * obj0 = 0 ; |
5326 | char *kwnames[] = { | |
5327 | (char *) "self", NULL | |
5328 | }; | |
5329 | ||
c370783e RD |
5330 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
5331 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
5332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSizeTuple",kwnames,&obj0)) goto fail; |
5333 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5334 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5335 | { | |
5336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5337 | (arg1)->GetSize(arg2,arg3); | |
5338 | ||
5339 | wxPyEndAllowThreads(__tstate); | |
5340 | if (PyErr_Occurred()) SWIG_fail; | |
5341 | } | |
5342 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
5343 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
5344 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
5345 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
5346 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
5347 | return resultobj; |
5348 | fail: | |
5349 | return NULL; | |
5350 | } | |
5351 | ||
5352 | ||
c370783e | 5353 | static PyObject *_wrap_Caret_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5354 | PyObject *resultobj; |
5355 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5356 | wxWindow *result; | |
5357 | PyObject * obj0 = 0 ; | |
5358 | char *kwnames[] = { | |
5359 | (char *) "self", NULL | |
5360 | }; | |
5361 | ||
5362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetWindow",kwnames,&obj0)) goto fail; | |
5363 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5364 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5365 | { | |
5366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5367 | result = (wxWindow *)(arg1)->GetWindow(); | |
5368 | ||
5369 | wxPyEndAllowThreads(__tstate); | |
5370 | if (PyErr_Occurred()) SWIG_fail; | |
5371 | } | |
5372 | { | |
412d302d | 5373 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
5374 | } |
5375 | return resultobj; | |
5376 | fail: | |
5377 | return NULL; | |
5378 | } | |
5379 | ||
5380 | ||
c370783e | 5381 | static PyObject *_wrap_Caret_MoveXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5382 | PyObject *resultobj; |
5383 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5384 | int arg2 ; | |
5385 | int arg3 ; | |
5386 | PyObject * obj0 = 0 ; | |
5387 | PyObject * obj1 = 0 ; | |
5388 | PyObject * obj2 = 0 ; | |
5389 | char *kwnames[] = { | |
5390 | (char *) "self",(char *) "x",(char *) "y", NULL | |
5391 | }; | |
5392 | ||
5393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_MoveXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 5396 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 5397 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 5398 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
5399 | if (PyErr_Occurred()) SWIG_fail; |
5400 | { | |
5401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5402 | (arg1)->Move(arg2,arg3); | |
5403 | ||
5404 | wxPyEndAllowThreads(__tstate); | |
5405 | if (PyErr_Occurred()) SWIG_fail; | |
5406 | } | |
5407 | Py_INCREF(Py_None); resultobj = Py_None; | |
5408 | return resultobj; | |
5409 | fail: | |
5410 | return NULL; | |
5411 | } | |
5412 | ||
5413 | ||
c370783e | 5414 | static PyObject *_wrap_Caret_Move(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5415 | PyObject *resultobj; |
5416 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5417 | wxPoint *arg2 = 0 ; | |
5418 | wxPoint temp2 ; | |
5419 | PyObject * obj0 = 0 ; | |
5420 | PyObject * obj1 = 0 ; | |
5421 | char *kwnames[] = { | |
5422 | (char *) "self",(char *) "pt", NULL | |
5423 | }; | |
5424 | ||
5425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_Move",kwnames,&obj0,&obj1)) goto fail; | |
5426 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5427 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5428 | { | |
5429 | arg2 = &temp2; | |
5430 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
5431 | } | |
5432 | { | |
5433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5434 | (arg1)->Move((wxPoint const &)*arg2); | |
5435 | ||
5436 | wxPyEndAllowThreads(__tstate); | |
5437 | if (PyErr_Occurred()) SWIG_fail; | |
5438 | } | |
5439 | Py_INCREF(Py_None); resultobj = Py_None; | |
5440 | return resultobj; | |
5441 | fail: | |
5442 | return NULL; | |
5443 | } | |
5444 | ||
5445 | ||
c370783e | 5446 | static PyObject *_wrap_Caret_SetSizeWH(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5447 | PyObject *resultobj; |
5448 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5449 | int arg2 ; | |
5450 | int arg3 ; | |
5451 | PyObject * obj0 = 0 ; | |
5452 | PyObject * obj1 = 0 ; | |
5453 | PyObject * obj2 = 0 ; | |
5454 | char *kwnames[] = { | |
5455 | (char *) "self",(char *) "width",(char *) "height", NULL | |
5456 | }; | |
5457 | ||
5458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5459 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5460 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 5461 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 5462 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 5463 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
5464 | if (PyErr_Occurred()) SWIG_fail; |
5465 | { | |
5466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5467 | (arg1)->SetSize(arg2,arg3); | |
5468 | ||
5469 | wxPyEndAllowThreads(__tstate); | |
5470 | if (PyErr_Occurred()) SWIG_fail; | |
5471 | } | |
5472 | Py_INCREF(Py_None); resultobj = Py_None; | |
5473 | return resultobj; | |
5474 | fail: | |
5475 | return NULL; | |
5476 | } | |
5477 | ||
5478 | ||
c370783e | 5479 | static PyObject *_wrap_Caret_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5480 | PyObject *resultobj; |
5481 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5482 | wxSize *arg2 = 0 ; | |
5483 | wxSize temp2 ; | |
5484 | PyObject * obj0 = 0 ; | |
5485 | PyObject * obj1 = 0 ; | |
5486 | char *kwnames[] = { | |
5487 | (char *) "self",(char *) "size", NULL | |
5488 | }; | |
5489 | ||
5490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
5491 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5492 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5493 | { | |
5494 | arg2 = &temp2; | |
5495 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
5496 | } | |
5497 | { | |
5498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5499 | (arg1)->SetSize((wxSize const &)*arg2); | |
5500 | ||
5501 | wxPyEndAllowThreads(__tstate); | |
5502 | if (PyErr_Occurred()) SWIG_fail; | |
5503 | } | |
5504 | Py_INCREF(Py_None); resultobj = Py_None; | |
5505 | return resultobj; | |
5506 | fail: | |
5507 | return NULL; | |
5508 | } | |
5509 | ||
5510 | ||
c370783e | 5511 | static PyObject *_wrap_Caret_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5512 | PyObject *resultobj; |
5513 | wxCaret *arg1 = (wxCaret *) 0 ; | |
b411df4a | 5514 | int arg2 = (int) true ; |
d55e5bfc RD |
5515 | PyObject * obj0 = 0 ; |
5516 | PyObject * obj1 = 0 ; | |
5517 | char *kwnames[] = { | |
5518 | (char *) "self",(char *) "show", NULL | |
5519 | }; | |
5520 | ||
5521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Caret_Show",kwnames,&obj0,&obj1)) goto fail; | |
5522 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5523 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5524 | if (obj1) { | |
c370783e | 5525 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
5526 | if (PyErr_Occurred()) SWIG_fail; |
5527 | } | |
5528 | { | |
5529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5530 | (arg1)->Show(arg2); | |
5531 | ||
5532 | wxPyEndAllowThreads(__tstate); | |
5533 | if (PyErr_Occurred()) SWIG_fail; | |
5534 | } | |
5535 | Py_INCREF(Py_None); resultobj = Py_None; | |
5536 | return resultobj; | |
5537 | fail: | |
5538 | return NULL; | |
5539 | } | |
5540 | ||
5541 | ||
c370783e | 5542 | static PyObject *_wrap_Caret_Hide(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5543 | PyObject *resultobj; |
5544 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5545 | PyObject * obj0 = 0 ; | |
5546 | char *kwnames[] = { | |
5547 | (char *) "self", NULL | |
5548 | }; | |
5549 | ||
5550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Hide",kwnames,&obj0)) goto fail; | |
5551 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5553 | { | |
5554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5555 | (arg1)->Hide(); | |
5556 | ||
5557 | wxPyEndAllowThreads(__tstate); | |
5558 | if (PyErr_Occurred()) SWIG_fail; | |
5559 | } | |
5560 | Py_INCREF(Py_None); resultobj = Py_None; | |
5561 | return resultobj; | |
5562 | fail: | |
5563 | return NULL; | |
5564 | } | |
5565 | ||
5566 | ||
c370783e | 5567 | static PyObject * Caret_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
5568 | PyObject *obj; |
5569 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5570 | SWIG_TypeClientData(SWIGTYPE_p_wxCaret, obj); | |
5571 | Py_INCREF(obj); | |
5572 | return Py_BuildValue((char *)""); | |
5573 | } | |
c370783e | 5574 | static PyObject *_wrap_Caret_GetBlinkTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5575 | PyObject *resultobj; |
5576 | int result; | |
5577 | char *kwnames[] = { | |
5578 | NULL | |
5579 | }; | |
5580 | ||
5581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Caret_GetBlinkTime",kwnames)) goto fail; | |
5582 | { | |
5583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5584 | result = (int)wxCaret_GetBlinkTime(); | |
5585 | ||
5586 | wxPyEndAllowThreads(__tstate); | |
5587 | if (PyErr_Occurred()) SWIG_fail; | |
5588 | } | |
c370783e | 5589 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
5590 | return resultobj; |
5591 | fail: | |
5592 | return NULL; | |
5593 | } | |
5594 | ||
5595 | ||
c370783e | 5596 | static PyObject *_wrap_Caret_SetBlinkTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5597 | PyObject *resultobj; |
5598 | int arg1 ; | |
5599 | PyObject * obj0 = 0 ; | |
5600 | char *kwnames[] = { | |
5601 | (char *) "milliseconds", NULL | |
5602 | }; | |
5603 | ||
5604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_SetBlinkTime",kwnames,&obj0)) goto fail; | |
c370783e | 5605 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
5606 | if (PyErr_Occurred()) SWIG_fail; |
5607 | { | |
5608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5609 | wxCaret_SetBlinkTime(arg1); | |
5610 | ||
5611 | wxPyEndAllowThreads(__tstate); | |
5612 | if (PyErr_Occurred()) SWIG_fail; | |
5613 | } | |
5614 | Py_INCREF(Py_None); resultobj = Py_None; | |
5615 | return resultobj; | |
5616 | fail: | |
5617 | return NULL; | |
5618 | } | |
5619 | ||
5620 | ||
c370783e | 5621 | static PyObject *_wrap_new_BusyCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5622 | PyObject *resultobj; |
5623 | wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ; | |
5624 | wxBusyCursor *result; | |
5625 | PyObject * obj0 = 0 ; | |
5626 | char *kwnames[] = { | |
5627 | (char *) "cursor", NULL | |
5628 | }; | |
5629 | ||
5630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BusyCursor",kwnames,&obj0)) goto fail; | |
5631 | if (obj0) { | |
5632 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
5633 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5634 | } | |
5635 | { | |
0439c23b | 5636 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5638 | result = (wxBusyCursor *)new wxBusyCursor(arg1); | |
5639 | ||
5640 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5641 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5642 | } |
5643 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyCursor, 1); | |
5644 | return resultobj; | |
5645 | fail: | |
5646 | return NULL; | |
5647 | } | |
5648 | ||
5649 | ||
c370783e | 5650 | static PyObject *_wrap_delete_BusyCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5651 | PyObject *resultobj; |
5652 | wxBusyCursor *arg1 = (wxBusyCursor *) 0 ; | |
5653 | PyObject * obj0 = 0 ; | |
5654 | char *kwnames[] = { | |
5655 | (char *) "self", NULL | |
5656 | }; | |
5657 | ||
5658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyCursor",kwnames,&obj0)) goto fail; | |
5659 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyCursor, | |
5660 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5661 | { | |
5662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5663 | delete arg1; | |
5664 | ||
5665 | wxPyEndAllowThreads(__tstate); | |
5666 | if (PyErr_Occurred()) SWIG_fail; | |
5667 | } | |
5668 | Py_INCREF(Py_None); resultobj = Py_None; | |
5669 | return resultobj; | |
5670 | fail: | |
5671 | return NULL; | |
5672 | } | |
5673 | ||
5674 | ||
c370783e | 5675 | static PyObject * BusyCursor_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
5676 | PyObject *obj; |
5677 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5678 | SWIG_TypeClientData(SWIGTYPE_p_wxBusyCursor, obj); | |
5679 | Py_INCREF(obj); | |
5680 | return Py_BuildValue((char *)""); | |
5681 | } | |
c370783e | 5682 | static PyObject *_wrap_new_WindowDisabler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5683 | PyObject *resultobj; |
5684 | wxWindow *arg1 = (wxWindow *) NULL ; | |
5685 | wxWindowDisabler *result; | |
5686 | PyObject * obj0 = 0 ; | |
5687 | char *kwnames[] = { | |
5688 | (char *) "winToSkip", NULL | |
5689 | }; | |
5690 | ||
5691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDisabler",kwnames,&obj0)) goto fail; | |
5692 | if (obj0) { | |
5693 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
5694 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5695 | } | |
5696 | { | |
0439c23b | 5697 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5699 | result = (wxWindowDisabler *)new wxWindowDisabler(arg1); | |
5700 | ||
5701 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5702 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5703 | } |
5704 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDisabler, 1); | |
5705 | return resultobj; | |
5706 | fail: | |
5707 | return NULL; | |
5708 | } | |
5709 | ||
5710 | ||
c370783e | 5711 | static PyObject *_wrap_delete_WindowDisabler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5712 | PyObject *resultobj; |
5713 | wxWindowDisabler *arg1 = (wxWindowDisabler *) 0 ; | |
5714 | PyObject * obj0 = 0 ; | |
5715 | char *kwnames[] = { | |
5716 | (char *) "self", NULL | |
5717 | }; | |
5718 | ||
5719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_WindowDisabler",kwnames,&obj0)) goto fail; | |
5720 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDisabler, | |
5721 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5722 | { | |
5723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5724 | delete arg1; | |
5725 | ||
5726 | wxPyEndAllowThreads(__tstate); | |
5727 | if (PyErr_Occurred()) SWIG_fail; | |
5728 | } | |
5729 | Py_INCREF(Py_None); resultobj = Py_None; | |
5730 | return resultobj; | |
5731 | fail: | |
5732 | return NULL; | |
5733 | } | |
5734 | ||
5735 | ||
c370783e | 5736 | static PyObject * WindowDisabler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
5737 | PyObject *obj; |
5738 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5739 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDisabler, obj); | |
5740 | Py_INCREF(obj); | |
5741 | return Py_BuildValue((char *)""); | |
5742 | } | |
c370783e | 5743 | static PyObject *_wrap_new_BusyInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5744 | PyObject *resultobj; |
5745 | wxString *arg1 = 0 ; | |
5746 | wxBusyInfo *result; | |
b411df4a | 5747 | bool temp1 = false ; |
d55e5bfc RD |
5748 | PyObject * obj0 = 0 ; |
5749 | char *kwnames[] = { | |
5750 | (char *) "message", NULL | |
5751 | }; | |
5752 | ||
5753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BusyInfo",kwnames,&obj0)) goto fail; | |
5754 | { | |
5755 | arg1 = wxString_in_helper(obj0); | |
5756 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 5757 | temp1 = true; |
d55e5bfc RD |
5758 | } |
5759 | { | |
0439c23b | 5760 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5762 | result = (wxBusyInfo *)new wxBusyInfo((wxString const &)*arg1); | |
5763 | ||
5764 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5765 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5766 | } |
5767 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyInfo, 1); | |
5768 | { | |
5769 | if (temp1) | |
5770 | delete arg1; | |
5771 | } | |
5772 | return resultobj; | |
5773 | fail: | |
5774 | { | |
5775 | if (temp1) | |
5776 | delete arg1; | |
5777 | } | |
5778 | return NULL; | |
5779 | } | |
5780 | ||
5781 | ||
c370783e | 5782 | static PyObject *_wrap_delete_BusyInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5783 | PyObject *resultobj; |
5784 | wxBusyInfo *arg1 = (wxBusyInfo *) 0 ; | |
5785 | PyObject * obj0 = 0 ; | |
5786 | char *kwnames[] = { | |
5787 | (char *) "self", NULL | |
5788 | }; | |
5789 | ||
5790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyInfo",kwnames,&obj0)) goto fail; | |
5791 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyInfo, | |
5792 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5793 | { | |
5794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5795 | delete arg1; | |
5796 | ||
5797 | wxPyEndAllowThreads(__tstate); | |
5798 | if (PyErr_Occurred()) SWIG_fail; | |
5799 | } | |
5800 | Py_INCREF(Py_None); resultobj = Py_None; | |
5801 | return resultobj; | |
5802 | fail: | |
5803 | return NULL; | |
5804 | } | |
5805 | ||
5806 | ||
c370783e | 5807 | static PyObject * BusyInfo_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
5808 | PyObject *obj; |
5809 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5810 | SWIG_TypeClientData(SWIGTYPE_p_wxBusyInfo, obj); | |
5811 | Py_INCREF(obj); | |
5812 | return Py_BuildValue((char *)""); | |
5813 | } | |
c370783e | 5814 | static PyObject *_wrap_new_StopWatch(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5815 | PyObject *resultobj; |
5816 | wxStopWatch *result; | |
5817 | char *kwnames[] = { | |
5818 | NULL | |
5819 | }; | |
5820 | ||
5821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StopWatch",kwnames)) goto fail; | |
5822 | { | |
5823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5824 | result = (wxStopWatch *)new wxStopWatch(); | |
5825 | ||
5826 | wxPyEndAllowThreads(__tstate); | |
5827 | if (PyErr_Occurred()) SWIG_fail; | |
5828 | } | |
5829 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStopWatch, 1); | |
5830 | return resultobj; | |
5831 | fail: | |
5832 | return NULL; | |
5833 | } | |
5834 | ||
5835 | ||
c370783e | 5836 | static PyObject *_wrap_StopWatch_Start(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5837 | PyObject *resultobj; |
5838 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5839 | long arg2 = (long) 0 ; | |
5840 | PyObject * obj0 = 0 ; | |
5841 | PyObject * obj1 = 0 ; | |
5842 | char *kwnames[] = { | |
5843 | (char *) "self",(char *) "t0", NULL | |
5844 | }; | |
5845 | ||
5846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StopWatch_Start",kwnames,&obj0,&obj1)) goto fail; | |
5847 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, | |
5848 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5849 | if (obj1) { | |
c370783e | 5850 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
5851 | if (PyErr_Occurred()) SWIG_fail; |
5852 | } | |
5853 | { | |
5854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5855 | (arg1)->Start(arg2); | |
5856 | ||
5857 | wxPyEndAllowThreads(__tstate); | |
5858 | if (PyErr_Occurred()) SWIG_fail; | |
5859 | } | |
5860 | Py_INCREF(Py_None); resultobj = Py_None; | |
5861 | return resultobj; | |
5862 | fail: | |
5863 | return NULL; | |
5864 | } | |
5865 | ||
5866 | ||
c370783e | 5867 | static PyObject *_wrap_StopWatch_Pause(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5868 | PyObject *resultobj; |
5869 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5870 | PyObject * obj0 = 0 ; | |
5871 | char *kwnames[] = { | |
5872 | (char *) "self", NULL | |
5873 | }; | |
5874 | ||
5875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Pause",kwnames,&obj0)) goto fail; | |
5876 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, | |
5877 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5878 | { | |
5879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5880 | (arg1)->Pause(); | |
5881 | ||
5882 | wxPyEndAllowThreads(__tstate); | |
5883 | if (PyErr_Occurred()) SWIG_fail; | |
5884 | } | |
5885 | Py_INCREF(Py_None); resultobj = Py_None; | |
5886 | return resultobj; | |
5887 | fail: | |
5888 | return NULL; | |
5889 | } | |
5890 | ||
5891 | ||
c370783e | 5892 | static PyObject *_wrap_StopWatch_Resume(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5893 | PyObject *resultobj; |
5894 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5895 | PyObject * obj0 = 0 ; | |
5896 | char *kwnames[] = { | |
5897 | (char *) "self", NULL | |
5898 | }; | |
5899 | ||
5900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Resume",kwnames,&obj0)) goto fail; | |
5901 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, | |
5902 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5903 | { | |
5904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5905 | (arg1)->Resume(); | |
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 | ||
c370783e | 5917 | static PyObject *_wrap_StopWatch_Time(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5918 | PyObject *resultobj; |
5919 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5920 | long result; | |
5921 | PyObject * obj0 = 0 ; | |
5922 | char *kwnames[] = { | |
5923 | (char *) "self", NULL | |
5924 | }; | |
5925 | ||
5926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Time",kwnames,&obj0)) goto fail; | |
5927 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, | |
5928 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5929 | { | |
5930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5931 | result = (long)((wxStopWatch const *)arg1)->Time(); | |
5932 | ||
5933 | wxPyEndAllowThreads(__tstate); | |
5934 | if (PyErr_Occurred()) SWIG_fail; | |
5935 | } | |
c370783e | 5936 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
5937 | return resultobj; |
5938 | fail: | |
5939 | return NULL; | |
5940 | } | |
5941 | ||
5942 | ||
c370783e | 5943 | static PyObject * StopWatch_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
5944 | PyObject *obj; |
5945 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5946 | SWIG_TypeClientData(SWIGTYPE_p_wxStopWatch, obj); | |
5947 | Py_INCREF(obj); | |
5948 | return Py_BuildValue((char *)""); | |
5949 | } | |
c370783e | 5950 | static PyObject *_wrap_new_FileHistory(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5951 | PyObject *resultobj; |
5952 | int arg1 = (int) 9 ; | |
4cf4100f | 5953 | int arg2 = (int) wxID_FILE1 ; |
d55e5bfc RD |
5954 | wxFileHistory *result; |
5955 | PyObject * obj0 = 0 ; | |
4cf4100f | 5956 | PyObject * obj1 = 0 ; |
d55e5bfc | 5957 | char *kwnames[] = { |
4cf4100f | 5958 | (char *) "maxFiles",(char *) "idBase", NULL |
d55e5bfc RD |
5959 | }; |
5960 | ||
4cf4100f | 5961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FileHistory",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc | 5962 | if (obj0) { |
c370783e | 5963 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
5964 | if (PyErr_Occurred()) SWIG_fail; |
5965 | } | |
4cf4100f | 5966 | if (obj1) { |
c370783e | 5967 | arg2 = (int)SWIG_As_int(obj1); |
4cf4100f RD |
5968 | if (PyErr_Occurred()) SWIG_fail; |
5969 | } | |
d55e5bfc RD |
5970 | { |
5971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4cf4100f | 5972 | result = (wxFileHistory *)new wxFileHistory(arg1,arg2); |
d55e5bfc RD |
5973 | |
5974 | wxPyEndAllowThreads(__tstate); | |
5975 | if (PyErr_Occurred()) SWIG_fail; | |
5976 | } | |
5977 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileHistory, 1); | |
5978 | return resultobj; | |
5979 | fail: | |
5980 | return NULL; | |
5981 | } | |
5982 | ||
5983 | ||
c370783e | 5984 | static PyObject *_wrap_delete_FileHistory(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5985 | PyObject *resultobj; |
5986 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5987 | PyObject * obj0 = 0 ; | |
5988 | char *kwnames[] = { | |
5989 | (char *) "self", NULL | |
5990 | }; | |
5991 | ||
5992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileHistory",kwnames,&obj0)) goto fail; | |
5993 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5994 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5995 | { | |
5996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5997 | delete arg1; | |
5998 | ||
5999 | wxPyEndAllowThreads(__tstate); | |
6000 | if (PyErr_Occurred()) SWIG_fail; | |
6001 | } | |
6002 | Py_INCREF(Py_None); resultobj = Py_None; | |
6003 | return resultobj; | |
6004 | fail: | |
6005 | return NULL; | |
6006 | } | |
6007 | ||
6008 | ||
c370783e | 6009 | static PyObject *_wrap_FileHistory_AddFileToHistory(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6010 | PyObject *resultobj; |
6011 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
6012 | wxString *arg2 = 0 ; | |
b411df4a | 6013 | bool temp2 = false ; |
d55e5bfc RD |
6014 | PyObject * obj0 = 0 ; |
6015 | PyObject * obj1 = 0 ; | |
6016 | char *kwnames[] = { | |
6017 | (char *) "self",(char *) "file", NULL | |
6018 | }; | |
6019 | ||
6020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFileToHistory",kwnames,&obj0,&obj1)) goto fail; | |
6021 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
6022 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6023 | { | |
6024 | arg2 = wxString_in_helper(obj1); | |
6025 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 6026 | temp2 = true; |
d55e5bfc RD |
6027 | } |
6028 | { | |
6029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6030 | (arg1)->AddFileToHistory((wxString const &)*arg2); | |
6031 | ||
6032 | wxPyEndAllowThreads(__tstate); | |
6033 | if (PyErr_Occurred()) SWIG_fail; | |
6034 | } | |
6035 | Py_INCREF(Py_None); resultobj = Py_None; | |
6036 | { | |
6037 | if (temp2) | |
6038 | delete arg2; | |
6039 | } | |
6040 | return resultobj; | |
6041 | fail: | |
6042 | { | |
6043 | if (temp2) | |
6044 | delete arg2; | |
6045 | } | |
6046 | return NULL; | |
6047 | } | |
6048 | ||
6049 | ||
c370783e | 6050 | static PyObject *_wrap_FileHistory_RemoveFileFromHistory(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6051 | PyObject *resultobj; |
6052 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
6053 | int arg2 ; | |
6054 | PyObject * obj0 = 0 ; | |
6055 | PyObject * obj1 = 0 ; | |
6056 | char *kwnames[] = { | |
6057 | (char *) "self",(char *) "i", NULL | |
6058 | }; | |
6059 | ||
6060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveFileFromHistory",kwnames,&obj0,&obj1)) goto fail; | |
6061 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
6062 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 6063 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
6064 | if (PyErr_Occurred()) SWIG_fail; |
6065 | { | |
6066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6067 | (arg1)->RemoveFileFromHistory(arg2); | |
6068 | ||
6069 | wxPyEndAllowThreads(__tstate); | |
6070 | if (PyErr_Occurred()) SWIG_fail; | |
6071 | } | |
6072 | Py_INCREF(Py_None); resultobj = Py_None; | |
6073 | return resultobj; | |
6074 | fail: | |
6075 | return NULL; | |
6076 | } | |
6077 | ||
6078 | ||
c370783e | 6079 | static PyObject *_wrap_FileHistory_GetMaxFiles(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6080 | PyObject *resultobj; |
6081 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
6082 | int result; | |
6083 | PyObject * obj0 = 0 ; | |
6084 | char *kwnames[] = { | |
6085 | (char *) "self", NULL | |
6086 | }; | |
6087 | ||
6088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetMaxFiles",kwnames,&obj0)) goto fail; | |
6089 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
6090 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6091 | { | |
6092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6093 | result = (int)((wxFileHistory const *)arg1)->GetMaxFiles(); | |
6094 | ||
6095 | wxPyEndAllowThreads(__tstate); | |
6096 | if (PyErr_Occurred()) SWIG_fail; | |
6097 | } | |
c370783e | 6098 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
6099 | return resultobj; |
6100 | fail: | |
6101 | return NULL; | |
6102 | } | |
6103 | ||
6104 | ||
c370783e | 6105 | static PyObject *_wrap_FileHistory_UseMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6106 | PyObject *resultobj; |
6107 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
6108 | wxMenu *arg2 = (wxMenu *) 0 ; | |
6109 | PyObject * obj0 = 0 ; | |
6110 | PyObject * obj1 = 0 ; | |
6111 | char *kwnames[] = { | |
6112 | (char *) "self",(char *) "menu", NULL | |
6113 | }; | |
6114 | ||
6115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_UseMenu",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_wxMenu, | |
6119 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6120 | { | |
6121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6122 | (arg1)->UseMenu(arg2); | |
6123 | ||
6124 | wxPyEndAllowThreads(__tstate); | |
6125 | if (PyErr_Occurred()) SWIG_fail; | |
6126 | } | |
6127 | Py_INCREF(Py_None); resultobj = Py_None; | |
6128 | return resultobj; | |
6129 | fail: | |
6130 | return NULL; | |
6131 | } | |
6132 | ||
6133 | ||
c370783e | 6134 | static PyObject *_wrap_FileHistory_RemoveMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6135 | PyObject *resultobj; |
6136 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
6137 | wxMenu *arg2 = (wxMenu *) 0 ; | |
6138 | PyObject * obj0 = 0 ; | |
6139 | PyObject * obj1 = 0 ; | |
6140 | char *kwnames[] = { | |
6141 | (char *) "self",(char *) "menu", NULL | |
6142 | }; | |
6143 | ||
6144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveMenu",kwnames,&obj0,&obj1)) goto fail; | |
6145 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
6146 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6147 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
6148 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6149 | { | |
6150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6151 | (arg1)->RemoveMenu(arg2); | |
6152 | ||
6153 | wxPyEndAllowThreads(__tstate); | |
6154 | if (PyErr_Occurred()) SWIG_fail; | |
6155 | } | |
6156 | Py_INCREF(Py_None); resultobj = Py_None; | |
6157 | return resultobj; | |
6158 | fail: | |
6159 | return NULL; | |
6160 | } | |
6161 | ||
6162 | ||
c370783e | 6163 | static PyObject *_wrap_FileHistory_Load(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6164 | PyObject *resultobj; |
6165 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
6166 | wxConfigBase *arg2 = 0 ; | |
6167 | PyObject * obj0 = 0 ; | |
6168 | PyObject * obj1 = 0 ; | |
6169 | char *kwnames[] = { | |
6170 | (char *) "self",(char *) "config", NULL | |
6171 | }; | |
6172 | ||
6173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Load",kwnames,&obj0,&obj1)) goto fail; | |
6174 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
6175 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6176 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase, | |
6177 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6178 | SWIG_fail; | |
6179 | if (arg2 == NULL) { | |
6180 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6181 | SWIG_fail; | |
6182 | } | |
6183 | { | |
6184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6185 | (arg1)->Load(*arg2); | |
6186 | ||
6187 | wxPyEndAllowThreads(__tstate); | |
6188 | if (PyErr_Occurred()) SWIG_fail; | |
6189 | } | |
6190 | Py_INCREF(Py_None); resultobj = Py_None; | |
6191 | return resultobj; | |
6192 | fail: | |
6193 | return NULL; | |
6194 | } | |
6195 | ||
6196 | ||
c370783e | 6197 | static PyObject *_wrap_FileHistory_Save(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6198 | PyObject *resultobj; |
6199 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
6200 | wxConfigBase *arg2 = 0 ; | |
6201 | PyObject * obj0 = 0 ; | |
6202 | PyObject * obj1 = 0 ; | |
6203 | char *kwnames[] = { | |
6204 | (char *) "self",(char *) "config", NULL | |
6205 | }; | |
6206 | ||
6207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Save",kwnames,&obj0,&obj1)) goto fail; | |
6208 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
6209 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6210 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase, | |
6211 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6212 | SWIG_fail; | |
6213 | if (arg2 == NULL) { | |
6214 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6215 | SWIG_fail; | |
6216 | } | |
6217 | { | |
6218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6219 | (arg1)->Save(*arg2); | |
6220 | ||
6221 | wxPyEndAllowThreads(__tstate); | |
6222 | if (PyErr_Occurred()) SWIG_fail; | |
6223 | } | |
6224 | Py_INCREF(Py_None); resultobj = Py_None; | |
6225 | return resultobj; | |
6226 | fail: | |
6227 | return NULL; | |
6228 | } | |
6229 | ||
6230 | ||
c370783e | 6231 | static PyObject *_wrap_FileHistory_AddFilesToMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6232 | PyObject *resultobj; |
6233 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
6234 | PyObject * obj0 = 0 ; | |
6235 | char *kwnames[] = { | |
6236 | (char *) "self", NULL | |
6237 | }; | |
6238 | ||
6239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_AddFilesToMenu",kwnames,&obj0)) goto fail; | |
6240 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
6241 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6242 | { | |
6243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6244 | (arg1)->AddFilesToMenu(); | |
6245 | ||
6246 | wxPyEndAllowThreads(__tstate); | |
6247 | if (PyErr_Occurred()) SWIG_fail; | |
6248 | } | |
6249 | Py_INCREF(Py_None); resultobj = Py_None; | |
6250 | return resultobj; | |
6251 | fail: | |
6252 | return NULL; | |
6253 | } | |
6254 | ||
6255 | ||
c370783e | 6256 | static PyObject *_wrap_FileHistory_AddFilesToThisMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6257 | PyObject *resultobj; |
6258 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
6259 | wxMenu *arg2 = (wxMenu *) 0 ; | |
6260 | PyObject * obj0 = 0 ; | |
6261 | PyObject * obj1 = 0 ; | |
6262 | char *kwnames[] = { | |
6263 | (char *) "self",(char *) "menu", NULL | |
6264 | }; | |
6265 | ||
6266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFilesToThisMenu",kwnames,&obj0,&obj1)) goto fail; | |
6267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
6268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6269 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
6270 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6271 | { | |
6272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6273 | (arg1)->AddFilesToMenu(arg2); | |
6274 | ||
6275 | wxPyEndAllowThreads(__tstate); | |
6276 | if (PyErr_Occurred()) SWIG_fail; | |
6277 | } | |
6278 | Py_INCREF(Py_None); resultobj = Py_None; | |
6279 | return resultobj; | |
6280 | fail: | |
6281 | return NULL; | |
6282 | } | |
6283 | ||
6284 | ||
c370783e | 6285 | static PyObject *_wrap_FileHistory_GetHistoryFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6286 | PyObject *resultobj; |
6287 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
6288 | int arg2 ; | |
6289 | wxString result; | |
6290 | PyObject * obj0 = 0 ; | |
6291 | PyObject * obj1 = 0 ; | |
6292 | char *kwnames[] = { | |
6293 | (char *) "self",(char *) "i", NULL | |
6294 | }; | |
6295 | ||
6296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_GetHistoryFile",kwnames,&obj0,&obj1)) goto fail; | |
6297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
6298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 6299 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
6300 | if (PyErr_Occurred()) SWIG_fail; |
6301 | { | |
6302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6303 | result = ((wxFileHistory const *)arg1)->GetHistoryFile(arg2); | |
6304 | ||
6305 | wxPyEndAllowThreads(__tstate); | |
6306 | if (PyErr_Occurred()) SWIG_fail; | |
6307 | } | |
6308 | { | |
6309 | #if wxUSE_UNICODE | |
6310 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6311 | #else | |
6312 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6313 | #endif | |
6314 | } | |
6315 | return resultobj; | |
6316 | fail: | |
6317 | return NULL; | |
6318 | } | |
6319 | ||
6320 | ||
c370783e | 6321 | static PyObject *_wrap_FileHistory_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6322 | PyObject *resultobj; |
6323 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
6324 | int result; | |
6325 | PyObject * obj0 = 0 ; | |
6326 | char *kwnames[] = { | |
6327 | (char *) "self", NULL | |
6328 | }; | |
6329 | ||
6330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetCount",kwnames,&obj0)) goto fail; | |
6331 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
6332 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6333 | { | |
6334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6335 | result = (int)((wxFileHistory const *)arg1)->GetCount(); | |
6336 | ||
6337 | wxPyEndAllowThreads(__tstate); | |
6338 | if (PyErr_Occurred()) SWIG_fail; | |
6339 | } | |
c370783e | 6340 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
6341 | return resultobj; |
6342 | fail: | |
6343 | return NULL; | |
6344 | } | |
6345 | ||
6346 | ||
c370783e | 6347 | static PyObject * FileHistory_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6348 | PyObject *obj; |
6349 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6350 | SWIG_TypeClientData(SWIGTYPE_p_wxFileHistory, obj); | |
6351 | Py_INCREF(obj); | |
6352 | return Py_BuildValue((char *)""); | |
6353 | } | |
c370783e | 6354 | static PyObject *_wrap_new_SingleInstanceChecker(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6355 | PyObject *resultobj; |
6356 | wxString *arg1 = 0 ; | |
6357 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
6358 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
6359 | wxSingleInstanceChecker *result; | |
b411df4a RD |
6360 | bool temp1 = false ; |
6361 | bool temp2 = false ; | |
d55e5bfc RD |
6362 | PyObject * obj0 = 0 ; |
6363 | PyObject * obj1 = 0 ; | |
6364 | char *kwnames[] = { | |
6365 | (char *) "name",(char *) "path", NULL | |
6366 | }; | |
6367 | ||
6368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_SingleInstanceChecker",kwnames,&obj0,&obj1)) goto fail; | |
6369 | { | |
6370 | arg1 = wxString_in_helper(obj0); | |
6371 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 6372 | temp1 = true; |
d55e5bfc RD |
6373 | } |
6374 | if (obj1) { | |
6375 | { | |
6376 | arg2 = wxString_in_helper(obj1); | |
6377 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 6378 | temp2 = true; |
d55e5bfc RD |
6379 | } |
6380 | } | |
6381 | { | |
6382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6383 | result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker((wxString const &)*arg1,(wxString const &)*arg2); | |
6384 | ||
6385 | wxPyEndAllowThreads(__tstate); | |
6386 | if (PyErr_Occurred()) SWIG_fail; | |
6387 | } | |
6388 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1); | |
6389 | { | |
6390 | if (temp1) | |
6391 | delete arg1; | |
6392 | } | |
6393 | { | |
6394 | if (temp2) | |
6395 | delete arg2; | |
6396 | } | |
6397 | return resultobj; | |
6398 | fail: | |
6399 | { | |
6400 | if (temp1) | |
6401 | delete arg1; | |
6402 | } | |
6403 | { | |
6404 | if (temp2) | |
6405 | delete arg2; | |
6406 | } | |
6407 | return NULL; | |
6408 | } | |
6409 | ||
6410 | ||
c370783e | 6411 | static PyObject *_wrap_new_PreSingleInstanceChecker(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6412 | PyObject *resultobj; |
6413 | wxSingleInstanceChecker *result; | |
6414 | char *kwnames[] = { | |
6415 | NULL | |
6416 | }; | |
6417 | ||
6418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSingleInstanceChecker",kwnames)) goto fail; | |
6419 | { | |
6420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6421 | result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker(); | |
6422 | ||
6423 | wxPyEndAllowThreads(__tstate); | |
6424 | if (PyErr_Occurred()) SWIG_fail; | |
6425 | } | |
6426 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1); | |
6427 | return resultobj; | |
6428 | fail: | |
6429 | return NULL; | |
6430 | } | |
6431 | ||
6432 | ||
c370783e | 6433 | static PyObject *_wrap_delete_SingleInstanceChecker(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6434 | PyObject *resultobj; |
6435 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
6436 | PyObject * obj0 = 0 ; | |
6437 | char *kwnames[] = { | |
6438 | (char *) "self", NULL | |
6439 | }; | |
6440 | ||
6441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SingleInstanceChecker",kwnames,&obj0)) goto fail; | |
6442 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker, | |
6443 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6444 | { | |
6445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6446 | delete arg1; | |
6447 | ||
6448 | wxPyEndAllowThreads(__tstate); | |
6449 | if (PyErr_Occurred()) SWIG_fail; | |
6450 | } | |
6451 | Py_INCREF(Py_None); resultobj = Py_None; | |
6452 | return resultobj; | |
6453 | fail: | |
6454 | return NULL; | |
6455 | } | |
6456 | ||
6457 | ||
c370783e | 6458 | static PyObject *_wrap_SingleInstanceChecker_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6459 | PyObject *resultobj; |
6460 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
6461 | wxString *arg2 = 0 ; | |
6462 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
6463 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
6464 | bool result; | |
b411df4a RD |
6465 | bool temp2 = false ; |
6466 | bool temp3 = false ; | |
d55e5bfc RD |
6467 | PyObject * obj0 = 0 ; |
6468 | PyObject * obj1 = 0 ; | |
6469 | PyObject * obj2 = 0 ; | |
6470 | char *kwnames[] = { | |
6471 | (char *) "self",(char *) "name",(char *) "path", NULL | |
6472 | }; | |
6473 | ||
6474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SingleInstanceChecker_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6475 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker, | |
6476 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6477 | { | |
6478 | arg2 = wxString_in_helper(obj1); | |
6479 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 6480 | temp2 = true; |
d55e5bfc RD |
6481 | } |
6482 | if (obj2) { | |
6483 | { | |
6484 | arg3 = wxString_in_helper(obj2); | |
6485 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 6486 | temp3 = true; |
d55e5bfc RD |
6487 | } |
6488 | } | |
6489 | { | |
6490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6491 | result = (bool)(arg1)->Create((wxString const &)*arg2,(wxString const &)*arg3); | |
6492 | ||
6493 | wxPyEndAllowThreads(__tstate); | |
6494 | if (PyErr_Occurred()) SWIG_fail; | |
6495 | } | |
6496 | { | |
6497 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6498 | } | |
6499 | { | |
6500 | if (temp2) | |
6501 | delete arg2; | |
6502 | } | |
6503 | { | |
6504 | if (temp3) | |
6505 | delete arg3; | |
6506 | } | |
6507 | return resultobj; | |
6508 | fail: | |
6509 | { | |
6510 | if (temp2) | |
6511 | delete arg2; | |
6512 | } | |
6513 | { | |
6514 | if (temp3) | |
6515 | delete arg3; | |
6516 | } | |
6517 | return NULL; | |
6518 | } | |
6519 | ||
6520 | ||
c370783e | 6521 | static PyObject *_wrap_SingleInstanceChecker_IsAnotherRunning(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6522 | PyObject *resultobj; |
6523 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
6524 | bool result; | |
6525 | PyObject * obj0 = 0 ; | |
6526 | char *kwnames[] = { | |
6527 | (char *) "self", NULL | |
6528 | }; | |
6529 | ||
6530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleInstanceChecker_IsAnotherRunning",kwnames,&obj0)) goto fail; | |
6531 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker, | |
6532 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6533 | { | |
6534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6535 | result = (bool)((wxSingleInstanceChecker const *)arg1)->IsAnotherRunning(); | |
6536 | ||
6537 | wxPyEndAllowThreads(__tstate); | |
6538 | if (PyErr_Occurred()) SWIG_fail; | |
6539 | } | |
6540 | { | |
6541 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6542 | } | |
6543 | return resultobj; | |
6544 | fail: | |
6545 | return NULL; | |
6546 | } | |
6547 | ||
6548 | ||
c370783e | 6549 | static PyObject * SingleInstanceChecker_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6550 | PyObject *obj; |
6551 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6552 | SWIG_TypeClientData(SWIGTYPE_p_wxSingleInstanceChecker, obj); | |
6553 | Py_INCREF(obj); | |
6554 | return Py_BuildValue((char *)""); | |
6555 | } | |
c370783e | 6556 | static PyObject *_wrap_DrawWindowOnDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6557 | PyObject *resultobj; |
6558 | wxWindow *arg1 = (wxWindow *) 0 ; | |
6559 | wxDC *arg2 = 0 ; | |
6560 | int arg3 ; | |
6561 | PyObject * obj0 = 0 ; | |
6562 | PyObject * obj1 = 0 ; | |
6563 | PyObject * obj2 = 0 ; | |
6564 | char *kwnames[] = { | |
6565 | (char *) "window",(char *) "dc",(char *) "method", NULL | |
6566 | }; | |
6567 | ||
6568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DrawWindowOnDC",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6569 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
6570 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6571 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
6572 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6573 | SWIG_fail; | |
6574 | if (arg2 == NULL) { | |
6575 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6576 | SWIG_fail; | |
6577 | } | |
c370783e | 6578 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
6579 | if (PyErr_Occurred()) SWIG_fail; |
6580 | { | |
6581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6582 | wxDrawWindowOnDC(arg1,(wxDC const &)*arg2,arg3); | |
6583 | ||
6584 | wxPyEndAllowThreads(__tstate); | |
6585 | if (PyErr_Occurred()) SWIG_fail; | |
6586 | } | |
6587 | Py_INCREF(Py_None); resultobj = Py_None; | |
6588 | return resultobj; | |
6589 | fail: | |
6590 | return NULL; | |
6591 | } | |
6592 | ||
6593 | ||
c370783e | 6594 | static PyObject *_wrap_delete_TipProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6595 | PyObject *resultobj; |
6596 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6597 | PyObject * obj0 = 0 ; | |
6598 | char *kwnames[] = { | |
6599 | (char *) "self", NULL | |
6600 | }; | |
6601 | ||
6602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TipProvider",kwnames,&obj0)) goto fail; | |
6603 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, | |
6604 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6605 | { | |
6606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6607 | delete arg1; | |
6608 | ||
6609 | wxPyEndAllowThreads(__tstate); | |
6610 | if (PyErr_Occurred()) SWIG_fail; | |
6611 | } | |
6612 | Py_INCREF(Py_None); resultobj = Py_None; | |
6613 | return resultobj; | |
6614 | fail: | |
6615 | return NULL; | |
6616 | } | |
6617 | ||
6618 | ||
c370783e | 6619 | static PyObject *_wrap_TipProvider_GetTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6620 | PyObject *resultobj; |
6621 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6622 | wxString result; | |
6623 | PyObject * obj0 = 0 ; | |
6624 | char *kwnames[] = { | |
6625 | (char *) "self", NULL | |
6626 | }; | |
6627 | ||
6628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetTip",kwnames,&obj0)) goto fail; | |
6629 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, | |
6630 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6631 | { | |
6632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6633 | result = (arg1)->GetTip(); | |
6634 | ||
6635 | wxPyEndAllowThreads(__tstate); | |
6636 | if (PyErr_Occurred()) SWIG_fail; | |
6637 | } | |
6638 | { | |
6639 | #if wxUSE_UNICODE | |
6640 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6641 | #else | |
6642 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6643 | #endif | |
6644 | } | |
6645 | return resultobj; | |
6646 | fail: | |
6647 | return NULL; | |
6648 | } | |
6649 | ||
6650 | ||
c370783e | 6651 | static PyObject *_wrap_TipProvider_GetCurrentTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6652 | PyObject *resultobj; |
6653 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6654 | size_t result; | |
6655 | PyObject * obj0 = 0 ; | |
6656 | char *kwnames[] = { | |
6657 | (char *) "self", NULL | |
6658 | }; | |
6659 | ||
6660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetCurrentTip",kwnames,&obj0)) goto fail; | |
6661 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, | |
6662 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6663 | { | |
6664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6665 | result = (size_t)(arg1)->GetCurrentTip(); | |
6666 | ||
6667 | wxPyEndAllowThreads(__tstate); | |
6668 | if (PyErr_Occurred()) SWIG_fail; | |
6669 | } | |
c370783e | 6670 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
6671 | return resultobj; |
6672 | fail: | |
6673 | return NULL; | |
6674 | } | |
6675 | ||
6676 | ||
c370783e | 6677 | static PyObject *_wrap_TipProvider_PreprocessTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6678 | PyObject *resultobj; |
6679 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6680 | wxString *arg2 = 0 ; | |
6681 | wxString result; | |
b411df4a | 6682 | bool temp2 = false ; |
d55e5bfc RD |
6683 | PyObject * obj0 = 0 ; |
6684 | PyObject * obj1 = 0 ; | |
6685 | char *kwnames[] = { | |
6686 | (char *) "self",(char *) "tip", NULL | |
6687 | }; | |
6688 | ||
6689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipProvider_PreprocessTip",kwnames,&obj0,&obj1)) goto fail; | |
6690 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, | |
6691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6692 | { | |
6693 | arg2 = wxString_in_helper(obj1); | |
6694 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 6695 | temp2 = true; |
d55e5bfc RD |
6696 | } |
6697 | { | |
6698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6699 | result = (arg1)->PreprocessTip((wxString const &)*arg2); | |
6700 | ||
6701 | wxPyEndAllowThreads(__tstate); | |
6702 | if (PyErr_Occurred()) SWIG_fail; | |
6703 | } | |
6704 | { | |
6705 | #if wxUSE_UNICODE | |
6706 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6707 | #else | |
6708 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6709 | #endif | |
6710 | } | |
6711 | { | |
6712 | if (temp2) | |
6713 | delete arg2; | |
6714 | } | |
6715 | return resultobj; | |
6716 | fail: | |
6717 | { | |
6718 | if (temp2) | |
6719 | delete arg2; | |
6720 | } | |
6721 | return NULL; | |
6722 | } | |
6723 | ||
6724 | ||
c370783e | 6725 | static PyObject * TipProvider_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6726 | PyObject *obj; |
6727 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6728 | SWIG_TypeClientData(SWIGTYPE_p_wxTipProvider, obj); | |
6729 | Py_INCREF(obj); | |
6730 | return Py_BuildValue((char *)""); | |
6731 | } | |
c370783e | 6732 | static PyObject *_wrap_new_PyTipProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6733 | PyObject *resultobj; |
6734 | size_t arg1 ; | |
6735 | wxPyTipProvider *result; | |
6736 | PyObject * obj0 = 0 ; | |
6737 | char *kwnames[] = { | |
6738 | (char *) "currentTip", NULL | |
6739 | }; | |
6740 | ||
6741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PyTipProvider",kwnames,&obj0)) goto fail; | |
c370783e | 6742 | arg1 = (size_t)SWIG_As_unsigned_SS_long(obj0); |
d55e5bfc RD |
6743 | if (PyErr_Occurred()) SWIG_fail; |
6744 | { | |
6745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6746 | result = (wxPyTipProvider *)new wxPyTipProvider(arg1); | |
6747 | ||
6748 | wxPyEndAllowThreads(__tstate); | |
6749 | if (PyErr_Occurred()) SWIG_fail; | |
6750 | } | |
6751 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTipProvider, 1); | |
6752 | return resultobj; | |
6753 | fail: | |
6754 | return NULL; | |
6755 | } | |
6756 | ||
6757 | ||
c370783e | 6758 | static PyObject *_wrap_PyTipProvider__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6759 | PyObject *resultobj; |
6760 | wxPyTipProvider *arg1 = (wxPyTipProvider *) 0 ; | |
6761 | PyObject *arg2 = (PyObject *) 0 ; | |
6762 | PyObject *arg3 = (PyObject *) 0 ; | |
6763 | PyObject * obj0 = 0 ; | |
6764 | PyObject * obj1 = 0 ; | |
6765 | PyObject * obj2 = 0 ; | |
6766 | char *kwnames[] = { | |
6767 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
6768 | }; | |
6769 | ||
6770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTipProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6771 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTipProvider, | |
6772 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6773 | arg2 = obj1; | |
6774 | arg3 = obj2; | |
6775 | { | |
6776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6777 | (arg1)->_setCallbackInfo(arg2,arg3); | |
6778 | ||
6779 | wxPyEndAllowThreads(__tstate); | |
6780 | if (PyErr_Occurred()) SWIG_fail; | |
6781 | } | |
6782 | Py_INCREF(Py_None); resultobj = Py_None; | |
6783 | return resultobj; | |
6784 | fail: | |
6785 | return NULL; | |
6786 | } | |
6787 | ||
6788 | ||
c370783e | 6789 | static PyObject * PyTipProvider_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6790 | PyObject *obj; |
6791 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6792 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTipProvider, obj); | |
6793 | Py_INCREF(obj); | |
6794 | return Py_BuildValue((char *)""); | |
6795 | } | |
c370783e | 6796 | static PyObject *_wrap_ShowTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6797 | PyObject *resultobj; |
6798 | wxWindow *arg1 = (wxWindow *) 0 ; | |
6799 | wxTipProvider *arg2 = (wxTipProvider *) 0 ; | |
b411df4a | 6800 | bool arg3 = (bool) true ; |
d55e5bfc RD |
6801 | bool result; |
6802 | PyObject * obj0 = 0 ; | |
6803 | PyObject * obj1 = 0 ; | |
6804 | PyObject * obj2 = 0 ; | |
6805 | char *kwnames[] = { | |
6806 | (char *) "parent",(char *) "tipProvider",(char *) "showAtStartup", NULL | |
6807 | }; | |
6808 | ||
6809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ShowTip",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6810 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
6811 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6812 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTipProvider, | |
6813 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6814 | if (obj2) { | |
c370783e | 6815 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
6816 | if (PyErr_Occurred()) SWIG_fail; |
6817 | } | |
6818 | { | |
0439c23b | 6819 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6821 | result = (bool)wxShowTip(arg1,arg2,arg3); | |
6822 | ||
6823 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6824 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6825 | } |
6826 | { | |
6827 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6828 | } | |
6829 | return resultobj; | |
6830 | fail: | |
6831 | return NULL; | |
6832 | } | |
6833 | ||
6834 | ||
c370783e | 6835 | static PyObject *_wrap_CreateFileTipProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6836 | PyObject *resultobj; |
6837 | wxString *arg1 = 0 ; | |
6838 | size_t arg2 ; | |
6839 | wxTipProvider *result; | |
b411df4a | 6840 | bool temp1 = false ; |
d55e5bfc RD |
6841 | PyObject * obj0 = 0 ; |
6842 | PyObject * obj1 = 0 ; | |
6843 | char *kwnames[] = { | |
6844 | (char *) "filename",(char *) "currentTip", NULL | |
6845 | }; | |
6846 | ||
6847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CreateFileTipProvider",kwnames,&obj0,&obj1)) goto fail; | |
6848 | { | |
6849 | arg1 = wxString_in_helper(obj0); | |
6850 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 6851 | temp1 = true; |
d55e5bfc | 6852 | } |
c370783e | 6853 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
6854 | if (PyErr_Occurred()) SWIG_fail; |
6855 | { | |
0439c23b | 6856 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6858 | result = (wxTipProvider *)wxCreateFileTipProvider((wxString const &)*arg1,arg2); | |
6859 | ||
6860 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6861 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6862 | } |
6863 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTipProvider, 1); | |
6864 | { | |
6865 | if (temp1) | |
6866 | delete arg1; | |
6867 | } | |
6868 | return resultobj; | |
6869 | fail: | |
6870 | { | |
6871 | if (temp1) | |
6872 | delete arg1; | |
6873 | } | |
6874 | return NULL; | |
6875 | } | |
6876 | ||
6877 | ||
c370783e | 6878 | static PyObject *_wrap_new_Timer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6879 | PyObject *resultobj; |
6880 | wxEvtHandler *arg1 = (wxEvtHandler *) NULL ; | |
6881 | int arg2 = (int) -1 ; | |
6882 | wxPyTimer *result; | |
6883 | PyObject * obj0 = 0 ; | |
6884 | PyObject * obj1 = 0 ; | |
6885 | char *kwnames[] = { | |
6886 | (char *) "owner",(char *) "id", NULL | |
6887 | }; | |
6888 | ||
6889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Timer",kwnames,&obj0,&obj1)) goto fail; | |
6890 | if (obj0) { | |
6891 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
6892 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6893 | } | |
6894 | if (obj1) { | |
c370783e | 6895 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
6896 | if (PyErr_Occurred()) SWIG_fail; |
6897 | } | |
6898 | { | |
0439c23b | 6899 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6901 | result = (wxPyTimer *)new wxPyTimer(arg1,arg2); | |
6902 | ||
6903 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6904 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6905 | } |
6906 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTimer, 1); | |
6907 | return resultobj; | |
6908 | fail: | |
6909 | return NULL; | |
6910 | } | |
6911 | ||
6912 | ||
c370783e | 6913 | static PyObject *_wrap_delete_Timer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6914 | PyObject *resultobj; |
6915 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6916 | PyObject * obj0 = 0 ; | |
6917 | char *kwnames[] = { | |
6918 | (char *) "self", NULL | |
6919 | }; | |
6920 | ||
6921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Timer",kwnames,&obj0)) goto fail; | |
6922 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6923 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6924 | { | |
6925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6926 | delete arg1; | |
6927 | ||
6928 | wxPyEndAllowThreads(__tstate); | |
6929 | if (PyErr_Occurred()) SWIG_fail; | |
6930 | } | |
6931 | Py_INCREF(Py_None); resultobj = Py_None; | |
6932 | return resultobj; | |
6933 | fail: | |
6934 | return NULL; | |
6935 | } | |
6936 | ||
6937 | ||
c370783e | 6938 | static PyObject *_wrap_Timer__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6939 | PyObject *resultobj; |
6940 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6941 | PyObject *arg2 = (PyObject *) 0 ; | |
6942 | PyObject *arg3 = (PyObject *) 0 ; | |
6943 | int arg4 = (int) 1 ; | |
6944 | PyObject * obj0 = 0 ; | |
6945 | PyObject * obj1 = 0 ; | |
6946 | PyObject * obj2 = 0 ; | |
6947 | PyObject * obj3 = 0 ; | |
6948 | char *kwnames[] = { | |
6949 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
6950 | }; | |
6951 | ||
6952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Timer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
6953 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6954 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6955 | arg2 = obj1; | |
6956 | arg3 = obj2; | |
6957 | if (obj3) { | |
c370783e | 6958 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
6959 | if (PyErr_Occurred()) SWIG_fail; |
6960 | } | |
6961 | { | |
6962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6963 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
6964 | ||
6965 | wxPyEndAllowThreads(__tstate); | |
6966 | if (PyErr_Occurred()) SWIG_fail; | |
6967 | } | |
6968 | Py_INCREF(Py_None); resultobj = Py_None; | |
6969 | return resultobj; | |
6970 | fail: | |
6971 | return NULL; | |
6972 | } | |
6973 | ||
6974 | ||
c370783e | 6975 | static PyObject *_wrap_Timer_SetOwner(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6976 | PyObject *resultobj; |
6977 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6978 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
6979 | int arg3 = (int) -1 ; | |
6980 | PyObject * obj0 = 0 ; | |
6981 | PyObject * obj1 = 0 ; | |
6982 | PyObject * obj2 = 0 ; | |
6983 | char *kwnames[] = { | |
6984 | (char *) "self",(char *) "owner",(char *) "id", NULL | |
6985 | }; | |
6986 | ||
6987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Timer_SetOwner",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6988 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6989 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6990 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
6991 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6992 | if (obj2) { | |
c370783e | 6993 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
6994 | if (PyErr_Occurred()) SWIG_fail; |
6995 | } | |
6996 | { | |
6997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6998 | (arg1)->SetOwner(arg2,arg3); | |
6999 | ||
7000 | wxPyEndAllowThreads(__tstate); | |
7001 | if (PyErr_Occurred()) SWIG_fail; | |
7002 | } | |
7003 | Py_INCREF(Py_None); resultobj = Py_None; | |
7004 | return resultobj; | |
7005 | fail: | |
7006 | return NULL; | |
7007 | } | |
7008 | ||
7009 | ||
c370783e | 7010 | static PyObject *_wrap_Timer_GetOwner(PyObject *, PyObject *args, PyObject *kwargs) { |
1a6bba1e RD |
7011 | PyObject *resultobj; |
7012 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
7013 | wxEvtHandler *result; | |
7014 | PyObject * obj0 = 0 ; | |
7015 | char *kwnames[] = { | |
7016 | (char *) "self", NULL | |
7017 | }; | |
7018 | ||
7019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetOwner",kwnames,&obj0)) goto fail; | |
7020 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
7021 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7022 | { | |
7023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7024 | result = (wxEvtHandler *)(arg1)->GetOwner(); | |
7025 | ||
7026 | wxPyEndAllowThreads(__tstate); | |
7027 | if (PyErr_Occurred()) SWIG_fail; | |
7028 | } | |
7029 | { | |
412d302d | 7030 | resultobj = wxPyMake_wxObject(result, 0); |
1a6bba1e RD |
7031 | } |
7032 | return resultobj; | |
7033 | fail: | |
7034 | return NULL; | |
7035 | } | |
7036 | ||
7037 | ||
c370783e | 7038 | static PyObject *_wrap_Timer_Start(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7039 | PyObject *resultobj; |
7040 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
7041 | int arg2 = (int) -1 ; | |
b411df4a | 7042 | bool arg3 = (bool) false ; |
d55e5bfc RD |
7043 | bool result; |
7044 | PyObject * obj0 = 0 ; | |
7045 | PyObject * obj1 = 0 ; | |
7046 | PyObject * obj2 = 0 ; | |
7047 | char *kwnames[] = { | |
7048 | (char *) "self",(char *) "milliseconds",(char *) "oneShot", NULL | |
7049 | }; | |
7050 | ||
7051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Timer_Start",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7052 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
7053 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7054 | if (obj1) { | |
c370783e | 7055 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
7056 | if (PyErr_Occurred()) SWIG_fail; |
7057 | } | |
7058 | if (obj2) { | |
c370783e | 7059 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
7060 | if (PyErr_Occurred()) SWIG_fail; |
7061 | } | |
7062 | { | |
7063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7064 | result = (bool)(arg1)->Start(arg2,arg3); | |
7065 | ||
7066 | wxPyEndAllowThreads(__tstate); | |
7067 | if (PyErr_Occurred()) SWIG_fail; | |
7068 | } | |
7069 | { | |
7070 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7071 | } | |
7072 | return resultobj; | |
7073 | fail: | |
7074 | return NULL; | |
7075 | } | |
7076 | ||
7077 | ||
c370783e | 7078 | static PyObject *_wrap_Timer_Stop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7079 | PyObject *resultobj; |
7080 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
7081 | PyObject * obj0 = 0 ; | |
7082 | char *kwnames[] = { | |
7083 | (char *) "self", NULL | |
7084 | }; | |
7085 | ||
7086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Stop",kwnames,&obj0)) goto fail; | |
7087 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
7088 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7089 | { | |
7090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7091 | (arg1)->Stop(); | |
7092 | ||
7093 | wxPyEndAllowThreads(__tstate); | |
7094 | if (PyErr_Occurred()) SWIG_fail; | |
7095 | } | |
7096 | Py_INCREF(Py_None); resultobj = Py_None; | |
7097 | return resultobj; | |
7098 | fail: | |
7099 | return NULL; | |
7100 | } | |
7101 | ||
7102 | ||
c370783e | 7103 | static PyObject *_wrap_Timer_IsRunning(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7104 | PyObject *resultobj; |
7105 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
7106 | bool result; | |
7107 | PyObject * obj0 = 0 ; | |
7108 | char *kwnames[] = { | |
7109 | (char *) "self", NULL | |
7110 | }; | |
7111 | ||
7112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsRunning",kwnames,&obj0)) goto fail; | |
7113 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
7114 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7115 | { | |
7116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7117 | result = (bool)((wxPyTimer const *)arg1)->IsRunning(); | |
7118 | ||
7119 | wxPyEndAllowThreads(__tstate); | |
7120 | if (PyErr_Occurred()) SWIG_fail; | |
7121 | } | |
7122 | { | |
7123 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7124 | } | |
7125 | return resultobj; | |
7126 | fail: | |
7127 | return NULL; | |
7128 | } | |
7129 | ||
7130 | ||
c370783e | 7131 | static PyObject *_wrap_Timer_GetInterval(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7132 | PyObject *resultobj; |
7133 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
7134 | int result; | |
7135 | PyObject * obj0 = 0 ; | |
7136 | char *kwnames[] = { | |
7137 | (char *) "self", NULL | |
7138 | }; | |
7139 | ||
7140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetInterval",kwnames,&obj0)) goto fail; | |
7141 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
7142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7143 | { | |
7144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7145 | result = (int)((wxPyTimer const *)arg1)->GetInterval(); | |
7146 | ||
7147 | wxPyEndAllowThreads(__tstate); | |
7148 | if (PyErr_Occurred()) SWIG_fail; | |
7149 | } | |
c370783e | 7150 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
7151 | return resultobj; |
7152 | fail: | |
7153 | return NULL; | |
7154 | } | |
7155 | ||
7156 | ||
c370783e | 7157 | static PyObject *_wrap_Timer_IsOneShot(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7158 | PyObject *resultobj; |
7159 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
7160 | bool result; | |
7161 | PyObject * obj0 = 0 ; | |
7162 | char *kwnames[] = { | |
7163 | (char *) "self", NULL | |
7164 | }; | |
7165 | ||
7166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsOneShot",kwnames,&obj0)) goto fail; | |
7167 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
7168 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7169 | { | |
7170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7171 | result = (bool)((wxPyTimer const *)arg1)->IsOneShot(); | |
7172 | ||
7173 | wxPyEndAllowThreads(__tstate); | |
7174 | if (PyErr_Occurred()) SWIG_fail; | |
7175 | } | |
7176 | { | |
7177 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7178 | } | |
7179 | return resultobj; | |
7180 | fail: | |
7181 | return NULL; | |
7182 | } | |
7183 | ||
7184 | ||
c370783e | 7185 | static PyObject *_wrap_Timer_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7186 | PyObject *resultobj; |
7187 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
7188 | int result; | |
7189 | PyObject * obj0 = 0 ; | |
7190 | char *kwnames[] = { | |
7191 | (char *) "self", NULL | |
7192 | }; | |
7193 | ||
7194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetId",kwnames,&obj0)) goto fail; | |
7195 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
7196 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7197 | { | |
7198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7199 | result = (int)((wxPyTimer const *)arg1)->GetId(); | |
7200 | ||
7201 | wxPyEndAllowThreads(__tstate); | |
7202 | if (PyErr_Occurred()) SWIG_fail; | |
7203 | } | |
c370783e | 7204 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
7205 | return resultobj; |
7206 | fail: | |
7207 | return NULL; | |
7208 | } | |
7209 | ||
7210 | ||
c370783e | 7211 | static PyObject * Timer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
7212 | PyObject *obj; |
7213 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7214 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTimer, obj); | |
7215 | Py_INCREF(obj); | |
7216 | return Py_BuildValue((char *)""); | |
7217 | } | |
c370783e | 7218 | static PyObject *_wrap_new_TimerEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7219 | PyObject *resultobj; |
7220 | int arg1 = (int) 0 ; | |
7221 | int arg2 = (int) 0 ; | |
7222 | wxTimerEvent *result; | |
7223 | PyObject * obj0 = 0 ; | |
7224 | PyObject * obj1 = 0 ; | |
7225 | char *kwnames[] = { | |
7226 | (char *) "timerid",(char *) "interval", NULL | |
7227 | }; | |
7228 | ||
7229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TimerEvent",kwnames,&obj0,&obj1)) goto fail; | |
7230 | if (obj0) { | |
c370783e | 7231 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
7232 | if (PyErr_Occurred()) SWIG_fail; |
7233 | } | |
7234 | if (obj1) { | |
c370783e | 7235 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
7236 | if (PyErr_Occurred()) SWIG_fail; |
7237 | } | |
7238 | { | |
7239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7240 | result = (wxTimerEvent *)new wxTimerEvent(arg1,arg2); | |
7241 | ||
7242 | wxPyEndAllowThreads(__tstate); | |
7243 | if (PyErr_Occurred()) SWIG_fail; | |
7244 | } | |
7245 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerEvent, 1); | |
7246 | return resultobj; | |
7247 | fail: | |
7248 | return NULL; | |
7249 | } | |
7250 | ||
7251 | ||
c370783e | 7252 | static PyObject *_wrap_TimerEvent_GetInterval(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7253 | PyObject *resultobj; |
7254 | wxTimerEvent *arg1 = (wxTimerEvent *) 0 ; | |
7255 | int result; | |
7256 | PyObject * obj0 = 0 ; | |
7257 | char *kwnames[] = { | |
7258 | (char *) "self", NULL | |
7259 | }; | |
7260 | ||
7261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimerEvent_GetInterval",kwnames,&obj0)) goto fail; | |
7262 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerEvent, | |
7263 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7264 | { | |
7265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7266 | result = (int)((wxTimerEvent const *)arg1)->GetInterval(); | |
7267 | ||
7268 | wxPyEndAllowThreads(__tstate); | |
7269 | if (PyErr_Occurred()) SWIG_fail; | |
7270 | } | |
c370783e | 7271 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
7272 | return resultobj; |
7273 | fail: | |
7274 | return NULL; | |
7275 | } | |
7276 | ||
7277 | ||
c370783e | 7278 | static PyObject * TimerEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
7279 | PyObject *obj; |
7280 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7281 | SWIG_TypeClientData(SWIGTYPE_p_wxTimerEvent, obj); | |
7282 | Py_INCREF(obj); | |
7283 | return Py_BuildValue((char *)""); | |
7284 | } | |
c370783e | 7285 | static PyObject *_wrap_new_TimerRunner__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
7286 | PyObject *resultobj; |
7287 | wxTimer *arg1 = 0 ; | |
7288 | wxTimerRunner *result; | |
7289 | PyObject * obj0 = 0 ; | |
7290 | ||
7291 | if(!PyArg_ParseTuple(args,(char *)"O:new_TimerRunner",&obj0)) goto fail; | |
7292 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer, | |
7293 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7294 | SWIG_fail; | |
7295 | if (arg1 == NULL) { | |
7296 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7297 | SWIG_fail; | |
7298 | } | |
7299 | { | |
0439c23b | 7300 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
7301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7302 | result = (wxTimerRunner *)new wxTimerRunner(*arg1); | |
7303 | ||
7304 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 7305 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
7306 | } |
7307 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1); | |
7308 | return resultobj; | |
7309 | fail: | |
7310 | return NULL; | |
7311 | } | |
7312 | ||
7313 | ||
c370783e | 7314 | static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
7315 | PyObject *resultobj; |
7316 | wxTimer *arg1 = 0 ; | |
7317 | int arg2 ; | |
b411df4a | 7318 | bool arg3 = (bool) false ; |
d55e5bfc RD |
7319 | wxTimerRunner *result; |
7320 | PyObject * obj0 = 0 ; | |
7321 | PyObject * obj1 = 0 ; | |
7322 | PyObject * obj2 = 0 ; | |
7323 | ||
7324 | if(!PyArg_ParseTuple(args,(char *)"OO|O:new_TimerRunner",&obj0,&obj1,&obj2)) goto fail; | |
7325 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer, | |
7326 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7327 | SWIG_fail; | |
7328 | if (arg1 == NULL) { | |
7329 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7330 | SWIG_fail; | |
7331 | } | |
c370783e | 7332 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
7333 | if (PyErr_Occurred()) SWIG_fail; |
7334 | if (obj2) { | |
c370783e | 7335 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
7336 | if (PyErr_Occurred()) SWIG_fail; |
7337 | } | |
7338 | { | |
0439c23b | 7339 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
7340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7341 | result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2,arg3); | |
7342 | ||
7343 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 7344 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
7345 | } |
7346 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1); | |
7347 | return resultobj; | |
7348 | fail: | |
7349 | return NULL; | |
7350 | } | |
7351 | ||
7352 | ||
7353 | static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) { | |
7354 | int argc; | |
7355 | PyObject *argv[4]; | |
7356 | int ii; | |
7357 | ||
7358 | argc = PyObject_Length(args); | |
7359 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
7360 | argv[ii] = PyTuple_GetItem(args,ii); | |
7361 | } | |
7362 | if (argc == 1) { | |
7363 | int _v; | |
7364 | { | |
7365 | void *ptr; | |
7366 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) { | |
7367 | _v = 0; | |
7368 | PyErr_Clear(); | |
7369 | } else { | |
7370 | _v = 1; | |
7371 | } | |
7372 | } | |
7373 | if (_v) { | |
7374 | return _wrap_new_TimerRunner__SWIG_0(self,args); | |
7375 | } | |
7376 | } | |
7377 | if ((argc >= 2) && (argc <= 3)) { | |
7378 | int _v; | |
7379 | { | |
7380 | void *ptr; | |
7381 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) { | |
7382 | _v = 0; | |
7383 | PyErr_Clear(); | |
7384 | } else { | |
7385 | _v = 1; | |
7386 | } | |
7387 | } | |
7388 | if (_v) { | |
c370783e | 7389 | _v = SWIG_Check_int(argv[1]); |
d55e5bfc RD |
7390 | if (_v) { |
7391 | if (argc <= 2) { | |
7392 | return _wrap_new_TimerRunner__SWIG_1(self,args); | |
7393 | } | |
c370783e | 7394 | _v = SWIG_Check_bool(argv[2]); |
d55e5bfc RD |
7395 | if (_v) { |
7396 | return _wrap_new_TimerRunner__SWIG_1(self,args); | |
7397 | } | |
7398 | } | |
7399 | } | |
7400 | } | |
7401 | ||
7402 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TimerRunner'"); | |
7403 | return NULL; | |
7404 | } | |
7405 | ||
7406 | ||
c370783e | 7407 | static PyObject *_wrap_delete_TimerRunner(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7408 | PyObject *resultobj; |
7409 | wxTimerRunner *arg1 = (wxTimerRunner *) 0 ; | |
7410 | PyObject * obj0 = 0 ; | |
7411 | char *kwnames[] = { | |
7412 | (char *) "self", NULL | |
7413 | }; | |
7414 | ||
7415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimerRunner",kwnames,&obj0)) goto fail; | |
7416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner, | |
7417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7418 | { | |
7419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7420 | delete arg1; | |
7421 | ||
7422 | wxPyEndAllowThreads(__tstate); | |
7423 | if (PyErr_Occurred()) SWIG_fail; | |
7424 | } | |
7425 | Py_INCREF(Py_None); resultobj = Py_None; | |
7426 | return resultobj; | |
7427 | fail: | |
7428 | return NULL; | |
7429 | } | |
7430 | ||
7431 | ||
c370783e | 7432 | static PyObject *_wrap_TimerRunner_Start(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7433 | PyObject *resultobj; |
7434 | wxTimerRunner *arg1 = (wxTimerRunner *) 0 ; | |
7435 | int arg2 ; | |
b411df4a | 7436 | bool arg3 = (bool) false ; |
d55e5bfc RD |
7437 | PyObject * obj0 = 0 ; |
7438 | PyObject * obj1 = 0 ; | |
7439 | PyObject * obj2 = 0 ; | |
7440 | char *kwnames[] = { | |
7441 | (char *) "self",(char *) "milli",(char *) "oneShot", NULL | |
7442 | }; | |
7443 | ||
7444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TimerRunner_Start",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7445 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner, | |
7446 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 7447 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
7448 | if (PyErr_Occurred()) SWIG_fail; |
7449 | if (obj2) { | |
c370783e | 7450 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
7451 | if (PyErr_Occurred()) SWIG_fail; |
7452 | } | |
7453 | { | |
7454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7455 | (arg1)->Start(arg2,arg3); | |
7456 | ||
7457 | wxPyEndAllowThreads(__tstate); | |
7458 | if (PyErr_Occurred()) SWIG_fail; | |
7459 | } | |
7460 | Py_INCREF(Py_None); resultobj = Py_None; | |
7461 | return resultobj; | |
7462 | fail: | |
7463 | return NULL; | |
7464 | } | |
7465 | ||
7466 | ||
c370783e | 7467 | static PyObject * TimerRunner_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
7468 | PyObject *obj; |
7469 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7470 | SWIG_TypeClientData(SWIGTYPE_p_wxTimerRunner, obj); | |
7471 | Py_INCREF(obj); | |
7472 | return Py_BuildValue((char *)""); | |
7473 | } | |
c370783e | 7474 | static PyObject *_wrap_new_Log(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7475 | PyObject *resultobj; |
7476 | wxLog *result; | |
7477 | char *kwnames[] = { | |
7478 | NULL | |
7479 | }; | |
7480 | ||
7481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Log",kwnames)) goto fail; | |
7482 | { | |
7483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7484 | result = (wxLog *)new wxLog(); | |
7485 | ||
7486 | wxPyEndAllowThreads(__tstate); | |
7487 | if (PyErr_Occurred()) SWIG_fail; | |
7488 | } | |
7489 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 1); | |
7490 | return resultobj; | |
7491 | fail: | |
7492 | return NULL; | |
7493 | } | |
7494 | ||
7495 | ||
c370783e | 7496 | static PyObject *_wrap_Log_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7497 | PyObject *resultobj; |
7498 | bool result; | |
7499 | char *kwnames[] = { | |
7500 | NULL | |
7501 | }; | |
7502 | ||
7503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_IsEnabled",kwnames)) goto fail; | |
7504 | { | |
7505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7506 | result = (bool)wxLog::IsEnabled(); | |
7507 | ||
7508 | wxPyEndAllowThreads(__tstate); | |
7509 | if (PyErr_Occurred()) SWIG_fail; | |
7510 | } | |
7511 | { | |
7512 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7513 | } | |
7514 | return resultobj; | |
7515 | fail: | |
7516 | return NULL; | |
7517 | } | |
7518 | ||
7519 | ||
c370783e | 7520 | static PyObject *_wrap_Log_EnableLogging(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 7521 | PyObject *resultobj; |
b411df4a | 7522 | bool arg1 = (bool) true ; |
d55e5bfc RD |
7523 | bool result; |
7524 | PyObject * obj0 = 0 ; | |
7525 | char *kwnames[] = { | |
7526 | (char *) "doIt", NULL | |
7527 | }; | |
7528 | ||
7529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_EnableLogging",kwnames,&obj0)) goto fail; | |
7530 | if (obj0) { | |
c370783e | 7531 | arg1 = (bool)SWIG_As_bool(obj0); |
d55e5bfc RD |
7532 | if (PyErr_Occurred()) SWIG_fail; |
7533 | } | |
7534 | { | |
7535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7536 | result = (bool)wxLog::EnableLogging(arg1); | |
7537 | ||
7538 | wxPyEndAllowThreads(__tstate); | |
7539 | if (PyErr_Occurred()) SWIG_fail; | |
7540 | } | |
7541 | { | |
7542 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7543 | } | |
7544 | return resultobj; | |
7545 | fail: | |
7546 | return NULL; | |
7547 | } | |
7548 | ||
7549 | ||
c370783e | 7550 | static PyObject *_wrap_Log_OnLog(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7551 | PyObject *resultobj; |
7552 | wxLogLevel arg1 ; | |
7553 | wxChar *arg2 = (wxChar *) 0 ; | |
7554 | time_t arg3 ; | |
7555 | PyObject * obj0 = 0 ; | |
7556 | PyObject * obj1 = 0 ; | |
7557 | PyObject * obj2 = 0 ; | |
7558 | char *kwnames[] = { | |
7559 | (char *) "level",(char *) "szString",(char *) "t", NULL | |
7560 | }; | |
7561 | ||
7562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Log_OnLog",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
c370783e | 7563 | arg1 = (wxLogLevel)SWIG_As_unsigned_SS_long(obj0); |
d55e5bfc RD |
7564 | if (PyErr_Occurred()) SWIG_fail; |
7565 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxChar, | |
7566 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 7567 | arg3 = (time_t)SWIG_As_unsigned_SS_int(obj2); |
d55e5bfc RD |
7568 | if (PyErr_Occurred()) SWIG_fail; |
7569 | { | |
7570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7571 | wxLog::OnLog(arg1,(wxChar const *)arg2,arg3); | |
7572 | ||
7573 | wxPyEndAllowThreads(__tstate); | |
7574 | if (PyErr_Occurred()) SWIG_fail; | |
7575 | } | |
7576 | Py_INCREF(Py_None); resultobj = Py_None; | |
7577 | return resultobj; | |
7578 | fail: | |
7579 | return NULL; | |
7580 | } | |
7581 | ||
7582 | ||
c370783e | 7583 | static PyObject *_wrap_Log_Flush(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7584 | PyObject *resultobj; |
7585 | wxLog *arg1 = (wxLog *) 0 ; | |
7586 | PyObject * obj0 = 0 ; | |
7587 | char *kwnames[] = { | |
7588 | (char *) "self", NULL | |
7589 | }; | |
7590 | ||
7591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Flush",kwnames,&obj0)) goto fail; | |
7592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, | |
7593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7594 | { | |
7595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7596 | (arg1)->Flush(); | |
7597 | ||
7598 | wxPyEndAllowThreads(__tstate); | |
7599 | if (PyErr_Occurred()) SWIG_fail; | |
7600 | } | |
7601 | Py_INCREF(Py_None); resultobj = Py_None; | |
7602 | return resultobj; | |
7603 | fail: | |
7604 | return NULL; | |
7605 | } | |
7606 | ||
7607 | ||
c370783e | 7608 | static PyObject *_wrap_Log_FlushActive(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7609 | PyObject *resultobj; |
7610 | char *kwnames[] = { | |
7611 | NULL | |
7612 | }; | |
7613 | ||
7614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_FlushActive",kwnames)) goto fail; | |
7615 | { | |
7616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7617 | wxLog::FlushActive(); | |
7618 | ||
7619 | wxPyEndAllowThreads(__tstate); | |
7620 | if (PyErr_Occurred()) SWIG_fail; | |
7621 | } | |
7622 | Py_INCREF(Py_None); resultobj = Py_None; | |
7623 | return resultobj; | |
7624 | fail: | |
7625 | return NULL; | |
7626 | } | |
7627 | ||
7628 | ||
c370783e | 7629 | static PyObject *_wrap_Log_GetActiveTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7630 | PyObject *resultobj; |
7631 | wxLog *result; | |
7632 | char *kwnames[] = { | |
7633 | NULL | |
7634 | }; | |
7635 | ||
7636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetActiveTarget",kwnames)) goto fail; | |
7637 | { | |
7638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7639 | result = (wxLog *)wxLog::GetActiveTarget(); | |
7640 | ||
7641 | wxPyEndAllowThreads(__tstate); | |
7642 | if (PyErr_Occurred()) SWIG_fail; | |
7643 | } | |
7644 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); | |
7645 | return resultobj; | |
7646 | fail: | |
7647 | return NULL; | |
7648 | } | |
7649 | ||
7650 | ||
c370783e | 7651 | static PyObject *_wrap_Log_SetActiveTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7652 | PyObject *resultobj; |
7653 | wxLog *arg1 = (wxLog *) 0 ; | |
7654 | wxLog *result; | |
7655 | PyObject * obj0 = 0 ; | |
7656 | char *kwnames[] = { | |
7657 | (char *) "pLogger", NULL | |
7658 | }; | |
7659 | ||
7660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) goto fail; | |
7661 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, | |
7662 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7663 | { | |
7664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7665 | result = (wxLog *)wxLog::SetActiveTarget(arg1); | |
7666 | ||
7667 | wxPyEndAllowThreads(__tstate); | |
7668 | if (PyErr_Occurred()) SWIG_fail; | |
7669 | } | |
7670 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); | |
7671 | return resultobj; | |
7672 | fail: | |
7673 | return NULL; | |
7674 | } | |
7675 | ||
7676 | ||
c370783e | 7677 | static PyObject *_wrap_Log_Suspend(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7678 | PyObject *resultobj; |
7679 | char *kwnames[] = { | |
7680 | NULL | |
7681 | }; | |
7682 | ||
7683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Suspend",kwnames)) goto fail; | |
7684 | { | |
7685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7686 | wxLog::Suspend(); | |
7687 | ||
7688 | wxPyEndAllowThreads(__tstate); | |
7689 | if (PyErr_Occurred()) SWIG_fail; | |
7690 | } | |
7691 | Py_INCREF(Py_None); resultobj = Py_None; | |
7692 | return resultobj; | |
7693 | fail: | |
7694 | return NULL; | |
7695 | } | |
7696 | ||
7697 | ||
c370783e | 7698 | static PyObject *_wrap_Log_Resume(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7699 | PyObject *resultobj; |
7700 | char *kwnames[] = { | |
7701 | NULL | |
7702 | }; | |
7703 | ||
7704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Resume",kwnames)) goto fail; | |
7705 | { | |
7706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7707 | wxLog::Resume(); | |
7708 | ||
7709 | wxPyEndAllowThreads(__tstate); | |
7710 | if (PyErr_Occurred()) SWIG_fail; | |
7711 | } | |
7712 | Py_INCREF(Py_None); resultobj = Py_None; | |
7713 | return resultobj; | |
7714 | fail: | |
7715 | return NULL; | |
7716 | } | |
7717 | ||
7718 | ||
c370783e | 7719 | static PyObject *_wrap_Log_SetVerbose(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 7720 | PyObject *resultobj; |
b411df4a | 7721 | bool arg1 = (bool) true ; |
d55e5bfc RD |
7722 | PyObject * obj0 = 0 ; |
7723 | char *kwnames[] = { | |
7724 | (char *) "bVerbose", NULL | |
7725 | }; | |
7726 | ||
7727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetVerbose",kwnames,&obj0)) goto fail; | |
7728 | if (obj0) { | |
c370783e | 7729 | arg1 = (bool)SWIG_As_bool(obj0); |
d55e5bfc RD |
7730 | if (PyErr_Occurred()) SWIG_fail; |
7731 | } | |
7732 | { | |
7733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7734 | wxLog::SetVerbose(arg1); | |
7735 | ||
7736 | wxPyEndAllowThreads(__tstate); | |
7737 | if (PyErr_Occurred()) SWIG_fail; | |
7738 | } | |
7739 | Py_INCREF(Py_None); resultobj = Py_None; | |
7740 | return resultobj; | |
7741 | fail: | |
7742 | return NULL; | |
7743 | } | |
7744 | ||
7745 | ||
c370783e | 7746 | static PyObject *_wrap_Log_SetLogLevel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7747 | PyObject *resultobj; |
7748 | wxLogLevel arg1 ; | |
7749 | PyObject * obj0 = 0 ; | |
7750 | char *kwnames[] = { | |
7751 | (char *) "logLevel", NULL | |
7752 | }; | |
7753 | ||
7754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetLogLevel",kwnames,&obj0)) goto fail; | |
c370783e | 7755 | arg1 = (wxLogLevel)SWIG_As_unsigned_SS_long(obj0); |
d55e5bfc RD |
7756 | if (PyErr_Occurred()) SWIG_fail; |
7757 | { | |
7758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7759 | wxLog::SetLogLevel(arg1); | |
7760 | ||
7761 | wxPyEndAllowThreads(__tstate); | |
7762 | if (PyErr_Occurred()) SWIG_fail; | |
7763 | } | |
7764 | Py_INCREF(Py_None); resultobj = Py_None; | |
7765 | return resultobj; | |
7766 | fail: | |
7767 | return NULL; | |
7768 | } | |
7769 | ||
7770 | ||
c370783e | 7771 | static PyObject *_wrap_Log_DontCreateOnDemand(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7772 | PyObject *resultobj; |
7773 | char *kwnames[] = { | |
7774 | NULL | |
7775 | }; | |
7776 | ||
7777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_DontCreateOnDemand",kwnames)) goto fail; | |
7778 | { | |
7779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7780 | wxLog::DontCreateOnDemand(); | |
7781 | ||
7782 | wxPyEndAllowThreads(__tstate); | |
7783 | if (PyErr_Occurred()) SWIG_fail; | |
7784 | } | |
7785 | Py_INCREF(Py_None); resultobj = Py_None; | |
7786 | return resultobj; | |
7787 | fail: | |
7788 | return NULL; | |
7789 | } | |
7790 | ||
7791 | ||
c370783e | 7792 | static PyObject *_wrap_Log_SetTraceMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7793 | PyObject *resultobj; |
7794 | wxTraceMask arg1 ; | |
7795 | PyObject * obj0 = 0 ; | |
7796 | char *kwnames[] = { | |
7797 | (char *) "ulMask", NULL | |
7798 | }; | |
7799 | ||
7800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTraceMask",kwnames,&obj0)) goto fail; | |
c370783e | 7801 | arg1 = (wxTraceMask)SWIG_As_unsigned_SS_long(obj0); |
d55e5bfc RD |
7802 | if (PyErr_Occurred()) SWIG_fail; |
7803 | { | |
7804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7805 | wxLog::SetTraceMask(arg1); | |
7806 | ||
7807 | wxPyEndAllowThreads(__tstate); | |
7808 | if (PyErr_Occurred()) SWIG_fail; | |
7809 | } | |
7810 | Py_INCREF(Py_None); resultobj = Py_None; | |
7811 | return resultobj; | |
7812 | fail: | |
7813 | return NULL; | |
7814 | } | |
7815 | ||
7816 | ||
c370783e | 7817 | static PyObject *_wrap_Log_AddTraceMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7818 | PyObject *resultobj; |
7819 | wxString *arg1 = 0 ; | |
b411df4a | 7820 | bool temp1 = false ; |
d55e5bfc RD |
7821 | PyObject * obj0 = 0 ; |
7822 | char *kwnames[] = { | |
7823 | (char *) "str", NULL | |
7824 | }; | |
7825 | ||
7826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_AddTraceMask",kwnames,&obj0)) goto fail; | |
7827 | { | |
7828 | arg1 = wxString_in_helper(obj0); | |
7829 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 7830 | temp1 = true; |
d55e5bfc RD |
7831 | } |
7832 | { | |
7833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7834 | wxLog::AddTraceMask((wxString const &)*arg1); | |
7835 | ||
7836 | wxPyEndAllowThreads(__tstate); | |
7837 | if (PyErr_Occurred()) SWIG_fail; | |
7838 | } | |
7839 | Py_INCREF(Py_None); resultobj = Py_None; | |
7840 | { | |
7841 | if (temp1) | |
7842 | delete arg1; | |
7843 | } | |
7844 | return resultobj; | |
7845 | fail: | |
7846 | { | |
7847 | if (temp1) | |
7848 | delete arg1; | |
7849 | } | |
7850 | return NULL; | |
7851 | } | |
7852 | ||
7853 | ||
c370783e | 7854 | static PyObject *_wrap_Log_RemoveTraceMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7855 | PyObject *resultobj; |
7856 | wxString *arg1 = 0 ; | |
b411df4a | 7857 | bool temp1 = false ; |
d55e5bfc RD |
7858 | PyObject * obj0 = 0 ; |
7859 | char *kwnames[] = { | |
7860 | (char *) "str", NULL | |
7861 | }; | |
7862 | ||
7863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_RemoveTraceMask",kwnames,&obj0)) goto fail; | |
7864 | { | |
7865 | arg1 = wxString_in_helper(obj0); | |
7866 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 7867 | temp1 = true; |
d55e5bfc RD |
7868 | } |
7869 | { | |
7870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7871 | wxLog::RemoveTraceMask((wxString const &)*arg1); | |
7872 | ||
7873 | wxPyEndAllowThreads(__tstate); | |
7874 | if (PyErr_Occurred()) SWIG_fail; | |
7875 | } | |
7876 | Py_INCREF(Py_None); resultobj = Py_None; | |
7877 | { | |
7878 | if (temp1) | |
7879 | delete arg1; | |
7880 | } | |
7881 | return resultobj; | |
7882 | fail: | |
7883 | { | |
7884 | if (temp1) | |
7885 | delete arg1; | |
7886 | } | |
7887 | return NULL; | |
7888 | } | |
7889 | ||
7890 | ||
c370783e | 7891 | static PyObject *_wrap_Log_ClearTraceMasks(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7892 | PyObject *resultobj; |
7893 | char *kwnames[] = { | |
7894 | NULL | |
7895 | }; | |
7896 | ||
7897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_ClearTraceMasks",kwnames)) goto fail; | |
7898 | { | |
7899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7900 | wxLog::ClearTraceMasks(); | |
7901 | ||
7902 | wxPyEndAllowThreads(__tstate); | |
7903 | if (PyErr_Occurred()) SWIG_fail; | |
7904 | } | |
7905 | Py_INCREF(Py_None); resultobj = Py_None; | |
7906 | return resultobj; | |
7907 | fail: | |
7908 | return NULL; | |
7909 | } | |
7910 | ||
7911 | ||
c370783e | 7912 | static PyObject *_wrap_Log_GetTraceMasks(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7913 | PyObject *resultobj; |
7914 | wxArrayString *result; | |
7915 | char *kwnames[] = { | |
7916 | NULL | |
7917 | }; | |
7918 | ||
7919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMasks",kwnames)) goto fail; | |
7920 | { | |
7921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7922 | { | |
7923 | wxArrayString const &_result_ref = wxLog::GetTraceMasks(); | |
7924 | result = (wxArrayString *) &_result_ref; | |
7925 | } | |
7926 | ||
7927 | wxPyEndAllowThreads(__tstate); | |
7928 | if (PyErr_Occurred()) SWIG_fail; | |
7929 | } | |
7930 | { | |
7931 | resultobj = wxArrayString2PyList_helper(*result); | |
7932 | } | |
7933 | return resultobj; | |
7934 | fail: | |
7935 | return NULL; | |
7936 | } | |
7937 | ||
7938 | ||
c370783e | 7939 | static PyObject *_wrap_Log_SetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7940 | PyObject *resultobj; |
7941 | wxChar *arg1 = (wxChar *) 0 ; | |
7942 | PyObject * obj0 = 0 ; | |
7943 | char *kwnames[] = { | |
7944 | (char *) "ts", NULL | |
7945 | }; | |
7946 | ||
7947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTimestamp",kwnames,&obj0)) goto fail; | |
7948 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar, | |
7949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7950 | { | |
7951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7952 | wxLog::SetTimestamp((wxChar const *)arg1); | |
7953 | ||
7954 | wxPyEndAllowThreads(__tstate); | |
7955 | if (PyErr_Occurred()) SWIG_fail; | |
7956 | } | |
7957 | Py_INCREF(Py_None); resultobj = Py_None; | |
7958 | return resultobj; | |
7959 | fail: | |
7960 | return NULL; | |
7961 | } | |
7962 | ||
7963 | ||
c370783e | 7964 | static PyObject *_wrap_Log_GetVerbose(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7965 | PyObject *resultobj; |
7966 | bool result; | |
7967 | char *kwnames[] = { | |
7968 | NULL | |
7969 | }; | |
7970 | ||
7971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetVerbose",kwnames)) goto fail; | |
7972 | { | |
7973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7974 | result = (bool)wxLog::GetVerbose(); | |
7975 | ||
7976 | wxPyEndAllowThreads(__tstate); | |
7977 | if (PyErr_Occurred()) SWIG_fail; | |
7978 | } | |
7979 | { | |
7980 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7981 | } | |
7982 | return resultobj; | |
7983 | fail: | |
7984 | return NULL; | |
7985 | } | |
7986 | ||
7987 | ||
c370783e | 7988 | static PyObject *_wrap_Log_GetTraceMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7989 | PyObject *resultobj; |
7990 | wxTraceMask result; | |
7991 | char *kwnames[] = { | |
7992 | NULL | |
7993 | }; | |
7994 | ||
7995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMask",kwnames)) goto fail; | |
7996 | { | |
7997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7998 | result = (wxTraceMask)wxLog::GetTraceMask(); | |
7999 | ||
8000 | wxPyEndAllowThreads(__tstate); | |
8001 | if (PyErr_Occurred()) SWIG_fail; | |
8002 | } | |
c370783e | 8003 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
8004 | return resultobj; |
8005 | fail: | |
8006 | return NULL; | |
8007 | } | |
8008 | ||
8009 | ||
c370783e | 8010 | static PyObject *_wrap_Log_IsAllowedTraceMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8011 | PyObject *resultobj; |
8012 | wxChar *arg1 = (wxChar *) 0 ; | |
8013 | bool result; | |
8014 | PyObject * obj0 = 0 ; | |
8015 | char *kwnames[] = { | |
8016 | (char *) "mask", NULL | |
8017 | }; | |
8018 | ||
8019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_IsAllowedTraceMask",kwnames,&obj0)) goto fail; | |
8020 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar, | |
8021 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8022 | { | |
8023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8024 | result = (bool)wxLog::IsAllowedTraceMask((wxChar const *)arg1); | |
8025 | ||
8026 | wxPyEndAllowThreads(__tstate); | |
8027 | if (PyErr_Occurred()) SWIG_fail; | |
8028 | } | |
8029 | { | |
8030 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8031 | } | |
8032 | return resultobj; | |
8033 | fail: | |
8034 | return NULL; | |
8035 | } | |
8036 | ||
8037 | ||
c370783e | 8038 | static PyObject *_wrap_Log_GetLogLevel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8039 | PyObject *resultobj; |
8040 | wxLogLevel result; | |
8041 | char *kwnames[] = { | |
8042 | NULL | |
8043 | }; | |
8044 | ||
8045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetLogLevel",kwnames)) goto fail; | |
8046 | { | |
8047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8048 | result = (wxLogLevel)wxLog::GetLogLevel(); | |
8049 | ||
8050 | wxPyEndAllowThreads(__tstate); | |
8051 | if (PyErr_Occurred()) SWIG_fail; | |
8052 | } | |
c370783e | 8053 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
8054 | return resultobj; |
8055 | fail: | |
8056 | return NULL; | |
8057 | } | |
8058 | ||
8059 | ||
c370783e | 8060 | static PyObject *_wrap_Log_GetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8061 | PyObject *resultobj; |
8062 | wxChar *result; | |
8063 | char *kwnames[] = { | |
8064 | NULL | |
8065 | }; | |
8066 | ||
8067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTimestamp",kwnames)) goto fail; | |
8068 | { | |
8069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8070 | result = (wxChar *)wxLog::GetTimestamp(); | |
8071 | ||
8072 | wxPyEndAllowThreads(__tstate); | |
8073 | if (PyErr_Occurred()) SWIG_fail; | |
8074 | } | |
8075 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChar, 0); | |
8076 | return resultobj; | |
8077 | fail: | |
8078 | return NULL; | |
8079 | } | |
8080 | ||
8081 | ||
c370783e | 8082 | static PyObject *_wrap_Log_TimeStamp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8083 | PyObject *resultobj; |
8084 | wxString result; | |
8085 | char *kwnames[] = { | |
8086 | NULL | |
8087 | }; | |
8088 | ||
8089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_TimeStamp",kwnames)) goto fail; | |
8090 | { | |
8091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8092 | result = Log_TimeStamp(); | |
8093 | ||
8094 | wxPyEndAllowThreads(__tstate); | |
8095 | if (PyErr_Occurred()) SWIG_fail; | |
8096 | } | |
8097 | { | |
8098 | #if wxUSE_UNICODE | |
8099 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8100 | #else | |
8101 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8102 | #endif | |
8103 | } | |
8104 | return resultobj; | |
8105 | fail: | |
8106 | return NULL; | |
8107 | } | |
8108 | ||
8109 | ||
c370783e | 8110 | static PyObject *_wrap_Log_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8111 | PyObject *resultobj; |
8112 | wxLog *arg1 = (wxLog *) 0 ; | |
8113 | PyObject * obj0 = 0 ; | |
8114 | char *kwnames[] = { | |
8115 | (char *) "self", NULL | |
8116 | }; | |
8117 | ||
8118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Destroy",kwnames,&obj0)) goto fail; | |
8119 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, | |
8120 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8121 | { | |
8122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8123 | wxLog_Destroy(arg1); | |
8124 | ||
8125 | wxPyEndAllowThreads(__tstate); | |
8126 | if (PyErr_Occurred()) SWIG_fail; | |
8127 | } | |
8128 | Py_INCREF(Py_None); resultobj = Py_None; | |
8129 | return resultobj; | |
8130 | fail: | |
8131 | return NULL; | |
8132 | } | |
8133 | ||
8134 | ||
c370783e | 8135 | static PyObject * Log_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8136 | PyObject *obj; |
8137 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8138 | SWIG_TypeClientData(SWIGTYPE_p_wxLog, obj); | |
8139 | Py_INCREF(obj); | |
8140 | return Py_BuildValue((char *)""); | |
8141 | } | |
c370783e | 8142 | static PyObject *_wrap_new_LogStderr(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8143 | PyObject *resultobj; |
8144 | wxLogStderr *result; | |
8145 | char *kwnames[] = { | |
8146 | NULL | |
8147 | }; | |
8148 | ||
8149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogStderr",kwnames)) goto fail; | |
8150 | { | |
8151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8152 | result = (wxLogStderr *)new wxLogStderr(); | |
8153 | ||
8154 | wxPyEndAllowThreads(__tstate); | |
8155 | if (PyErr_Occurred()) SWIG_fail; | |
8156 | } | |
8157 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogStderr, 1); | |
8158 | return resultobj; | |
8159 | fail: | |
8160 | return NULL; | |
8161 | } | |
8162 | ||
8163 | ||
c370783e | 8164 | static PyObject * LogStderr_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8165 | PyObject *obj; |
8166 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8167 | SWIG_TypeClientData(SWIGTYPE_p_wxLogStderr, obj); | |
8168 | Py_INCREF(obj); | |
8169 | return Py_BuildValue((char *)""); | |
8170 | } | |
c370783e | 8171 | static PyObject *_wrap_new_LogTextCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8172 | PyObject *resultobj; |
8173 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8174 | wxLogTextCtrl *result; | |
8175 | PyObject * obj0 = 0 ; | |
8176 | char *kwnames[] = { | |
8177 | (char *) "pTextCtrl", NULL | |
8178 | }; | |
8179 | ||
8180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogTextCtrl",kwnames,&obj0)) goto fail; | |
8181 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8183 | { | |
8184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8185 | result = (wxLogTextCtrl *)new wxLogTextCtrl(arg1); | |
8186 | ||
8187 | wxPyEndAllowThreads(__tstate); | |
8188 | if (PyErr_Occurred()) SWIG_fail; | |
8189 | } | |
8190 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogTextCtrl, 1); | |
8191 | return resultobj; | |
8192 | fail: | |
8193 | return NULL; | |
8194 | } | |
8195 | ||
8196 | ||
c370783e | 8197 | static PyObject * LogTextCtrl_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8198 | PyObject *obj; |
8199 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8200 | SWIG_TypeClientData(SWIGTYPE_p_wxLogTextCtrl, obj); | |
8201 | Py_INCREF(obj); | |
8202 | return Py_BuildValue((char *)""); | |
8203 | } | |
c370783e | 8204 | static PyObject *_wrap_new_LogGui(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8205 | PyObject *resultobj; |
8206 | wxLogGui *result; | |
8207 | char *kwnames[] = { | |
8208 | NULL | |
8209 | }; | |
8210 | ||
8211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogGui",kwnames)) goto fail; | |
8212 | { | |
8213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8214 | result = (wxLogGui *)new wxLogGui(); | |
8215 | ||
8216 | wxPyEndAllowThreads(__tstate); | |
8217 | if (PyErr_Occurred()) SWIG_fail; | |
8218 | } | |
8219 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogGui, 1); | |
8220 | return resultobj; | |
8221 | fail: | |
8222 | return NULL; | |
8223 | } | |
8224 | ||
8225 | ||
c370783e | 8226 | static PyObject * LogGui_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8227 | PyObject *obj; |
8228 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8229 | SWIG_TypeClientData(SWIGTYPE_p_wxLogGui, obj); | |
8230 | Py_INCREF(obj); | |
8231 | return Py_BuildValue((char *)""); | |
8232 | } | |
c370783e | 8233 | static PyObject *_wrap_new_LogWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8234 | PyObject *resultobj; |
8235 | wxFrame *arg1 = (wxFrame *) 0 ; | |
8236 | wxString *arg2 = 0 ; | |
b411df4a RD |
8237 | bool arg3 = (bool) true ; |
8238 | bool arg4 = (bool) true ; | |
d55e5bfc | 8239 | wxLogWindow *result; |
b411df4a | 8240 | bool temp2 = false ; |
d55e5bfc RD |
8241 | PyObject * obj0 = 0 ; |
8242 | PyObject * obj1 = 0 ; | |
8243 | PyObject * obj2 = 0 ; | |
8244 | PyObject * obj3 = 0 ; | |
8245 | char *kwnames[] = { | |
8246 | (char *) "pParent",(char *) "szTitle",(char *) "bShow",(char *) "bPassToOld", NULL | |
8247 | }; | |
8248 | ||
8249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_LogWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
8250 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
8251 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8252 | { | |
8253 | arg2 = wxString_in_helper(obj1); | |
8254 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 8255 | temp2 = true; |
d55e5bfc RD |
8256 | } |
8257 | if (obj2) { | |
c370783e | 8258 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
8259 | if (PyErr_Occurred()) SWIG_fail; |
8260 | } | |
8261 | if (obj3) { | |
c370783e | 8262 | arg4 = (bool)SWIG_As_bool(obj3); |
d55e5bfc RD |
8263 | if (PyErr_Occurred()) SWIG_fail; |
8264 | } | |
8265 | { | |
8266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8267 | result = (wxLogWindow *)new wxLogWindow(arg1,(wxString const &)*arg2,arg3,arg4); | |
8268 | ||
8269 | wxPyEndAllowThreads(__tstate); | |
8270 | if (PyErr_Occurred()) SWIG_fail; | |
8271 | } | |
8272 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogWindow, 1); | |
8273 | { | |
8274 | if (temp2) | |
8275 | delete arg2; | |
8276 | } | |
8277 | return resultobj; | |
8278 | fail: | |
8279 | { | |
8280 | if (temp2) | |
8281 | delete arg2; | |
8282 | } | |
8283 | return NULL; | |
8284 | } | |
8285 | ||
8286 | ||
c370783e | 8287 | static PyObject *_wrap_LogWindow_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8288 | PyObject *resultobj; |
8289 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
b411df4a | 8290 | bool arg2 = (bool) true ; |
d55e5bfc RD |
8291 | PyObject * obj0 = 0 ; |
8292 | PyObject * obj1 = 0 ; | |
8293 | char *kwnames[] = { | |
8294 | (char *) "self",(char *) "bShow", NULL | |
8295 | }; | |
8296 | ||
8297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:LogWindow_Show",kwnames,&obj0,&obj1)) goto fail; | |
8298 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, | |
8299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8300 | if (obj1) { | |
c370783e | 8301 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
8302 | if (PyErr_Occurred()) SWIG_fail; |
8303 | } | |
8304 | { | |
8305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8306 | (arg1)->Show(arg2); | |
8307 | ||
8308 | wxPyEndAllowThreads(__tstate); | |
8309 | if (PyErr_Occurred()) SWIG_fail; | |
8310 | } | |
8311 | Py_INCREF(Py_None); resultobj = Py_None; | |
8312 | return resultobj; | |
8313 | fail: | |
8314 | return NULL; | |
8315 | } | |
8316 | ||
8317 | ||
c370783e | 8318 | static PyObject *_wrap_LogWindow_GetFrame(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8319 | PyObject *resultobj; |
8320 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
8321 | wxFrame *result; | |
8322 | PyObject * obj0 = 0 ; | |
8323 | char *kwnames[] = { | |
8324 | (char *) "self", NULL | |
8325 | }; | |
8326 | ||
8327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetFrame",kwnames,&obj0)) goto fail; | |
8328 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, | |
8329 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8330 | { | |
8331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8332 | result = (wxFrame *)((wxLogWindow const *)arg1)->GetFrame(); | |
8333 | ||
8334 | wxPyEndAllowThreads(__tstate); | |
8335 | if (PyErr_Occurred()) SWIG_fail; | |
8336 | } | |
8337 | { | |
412d302d | 8338 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
8339 | } |
8340 | return resultobj; | |
8341 | fail: | |
8342 | return NULL; | |
8343 | } | |
8344 | ||
8345 | ||
c370783e | 8346 | static PyObject *_wrap_LogWindow_GetOldLog(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8347 | PyObject *resultobj; |
8348 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
8349 | wxLog *result; | |
8350 | PyObject * obj0 = 0 ; | |
8351 | char *kwnames[] = { | |
8352 | (char *) "self", NULL | |
8353 | }; | |
8354 | ||
8355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetOldLog",kwnames,&obj0)) goto fail; | |
8356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, | |
8357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8358 | { | |
8359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8360 | result = (wxLog *)((wxLogWindow const *)arg1)->GetOldLog(); | |
8361 | ||
8362 | wxPyEndAllowThreads(__tstate); | |
8363 | if (PyErr_Occurred()) SWIG_fail; | |
8364 | } | |
8365 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); | |
8366 | return resultobj; | |
8367 | fail: | |
8368 | return NULL; | |
8369 | } | |
8370 | ||
8371 | ||
c370783e | 8372 | static PyObject *_wrap_LogWindow_IsPassingMessages(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8373 | PyObject *resultobj; |
8374 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
8375 | bool result; | |
8376 | PyObject * obj0 = 0 ; | |
8377 | char *kwnames[] = { | |
8378 | (char *) "self", NULL | |
8379 | }; | |
8380 | ||
8381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_IsPassingMessages",kwnames,&obj0)) goto fail; | |
8382 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, | |
8383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8384 | { | |
8385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8386 | result = (bool)((wxLogWindow const *)arg1)->IsPassingMessages(); | |
8387 | ||
8388 | wxPyEndAllowThreads(__tstate); | |
8389 | if (PyErr_Occurred()) SWIG_fail; | |
8390 | } | |
8391 | { | |
8392 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8393 | } | |
8394 | return resultobj; | |
8395 | fail: | |
8396 | return NULL; | |
8397 | } | |
8398 | ||
8399 | ||
c370783e | 8400 | static PyObject *_wrap_LogWindow_PassMessages(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8401 | PyObject *resultobj; |
8402 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
8403 | bool arg2 ; | |
8404 | PyObject * obj0 = 0 ; | |
8405 | PyObject * obj1 = 0 ; | |
8406 | char *kwnames[] = { | |
8407 | (char *) "self",(char *) "bDoPass", NULL | |
8408 | }; | |
8409 | ||
8410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogWindow_PassMessages",kwnames,&obj0,&obj1)) goto fail; | |
8411 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, | |
8412 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 8413 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
8414 | if (PyErr_Occurred()) SWIG_fail; |
8415 | { | |
8416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8417 | (arg1)->PassMessages(arg2); | |
8418 | ||
8419 | wxPyEndAllowThreads(__tstate); | |
8420 | if (PyErr_Occurred()) SWIG_fail; | |
8421 | } | |
8422 | Py_INCREF(Py_None); resultobj = Py_None; | |
8423 | return resultobj; | |
8424 | fail: | |
8425 | return NULL; | |
8426 | } | |
8427 | ||
8428 | ||
c370783e | 8429 | static PyObject * LogWindow_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8430 | PyObject *obj; |
8431 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8432 | SWIG_TypeClientData(SWIGTYPE_p_wxLogWindow, obj); | |
8433 | Py_INCREF(obj); | |
8434 | return Py_BuildValue((char *)""); | |
8435 | } | |
c370783e | 8436 | static PyObject *_wrap_new_LogChain(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8437 | PyObject *resultobj; |
8438 | wxLog *arg1 = (wxLog *) 0 ; | |
8439 | wxLogChain *result; | |
8440 | PyObject * obj0 = 0 ; | |
8441 | char *kwnames[] = { | |
8442 | (char *) "logger", NULL | |
8443 | }; | |
8444 | ||
8445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogChain",kwnames,&obj0)) goto fail; | |
8446 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, | |
8447 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8448 | { | |
8449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8450 | result = (wxLogChain *)new wxLogChain(arg1); | |
8451 | ||
8452 | wxPyEndAllowThreads(__tstate); | |
8453 | if (PyErr_Occurred()) SWIG_fail; | |
8454 | } | |
8455 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogChain, 1); | |
8456 | return resultobj; | |
8457 | fail: | |
8458 | return NULL; | |
8459 | } | |
8460 | ||
8461 | ||
c370783e | 8462 | static PyObject *_wrap_LogChain_SetLog(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8463 | PyObject *resultobj; |
8464 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
8465 | wxLog *arg2 = (wxLog *) 0 ; | |
8466 | PyObject * obj0 = 0 ; | |
8467 | PyObject * obj1 = 0 ; | |
8468 | char *kwnames[] = { | |
8469 | (char *) "self",(char *) "logger", NULL | |
8470 | }; | |
8471 | ||
8472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_SetLog",kwnames,&obj0,&obj1)) goto fail; | |
8473 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, | |
8474 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8475 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLog, | |
8476 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8477 | { | |
8478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8479 | (arg1)->SetLog(arg2); | |
8480 | ||
8481 | wxPyEndAllowThreads(__tstate); | |
8482 | if (PyErr_Occurred()) SWIG_fail; | |
8483 | } | |
8484 | Py_INCREF(Py_None); resultobj = Py_None; | |
8485 | return resultobj; | |
8486 | fail: | |
8487 | return NULL; | |
8488 | } | |
8489 | ||
8490 | ||
c370783e | 8491 | static PyObject *_wrap_LogChain_PassMessages(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8492 | PyObject *resultobj; |
8493 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
8494 | bool arg2 ; | |
8495 | PyObject * obj0 = 0 ; | |
8496 | PyObject * obj1 = 0 ; | |
8497 | char *kwnames[] = { | |
8498 | (char *) "self",(char *) "bDoPass", NULL | |
8499 | }; | |
8500 | ||
8501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_PassMessages",kwnames,&obj0,&obj1)) goto fail; | |
8502 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, | |
8503 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 8504 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
8505 | if (PyErr_Occurred()) SWIG_fail; |
8506 | { | |
8507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8508 | (arg1)->PassMessages(arg2); | |
8509 | ||
8510 | wxPyEndAllowThreads(__tstate); | |
8511 | if (PyErr_Occurred()) SWIG_fail; | |
8512 | } | |
8513 | Py_INCREF(Py_None); resultobj = Py_None; | |
8514 | return resultobj; | |
8515 | fail: | |
8516 | return NULL; | |
8517 | } | |
8518 | ||
8519 | ||
c370783e | 8520 | static PyObject *_wrap_LogChain_IsPassingMessages(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8521 | PyObject *resultobj; |
8522 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
8523 | bool result; | |
8524 | PyObject * obj0 = 0 ; | |
8525 | char *kwnames[] = { | |
8526 | (char *) "self", NULL | |
8527 | }; | |
8528 | ||
8529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_IsPassingMessages",kwnames,&obj0)) goto fail; | |
8530 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, | |
8531 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8532 | { | |
8533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8534 | result = (bool)(arg1)->IsPassingMessages(); | |
8535 | ||
8536 | wxPyEndAllowThreads(__tstate); | |
8537 | if (PyErr_Occurred()) SWIG_fail; | |
8538 | } | |
8539 | { | |
8540 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8541 | } | |
8542 | return resultobj; | |
8543 | fail: | |
8544 | return NULL; | |
8545 | } | |
8546 | ||
8547 | ||
c370783e | 8548 | static PyObject *_wrap_LogChain_GetOldLog(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8549 | PyObject *resultobj; |
8550 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
8551 | wxLog *result; | |
8552 | PyObject * obj0 = 0 ; | |
8553 | char *kwnames[] = { | |
8554 | (char *) "self", NULL | |
8555 | }; | |
8556 | ||
8557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_GetOldLog",kwnames,&obj0)) goto fail; | |
8558 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, | |
8559 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8560 | { | |
8561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8562 | result = (wxLog *)(arg1)->GetOldLog(); | |
8563 | ||
8564 | wxPyEndAllowThreads(__tstate); | |
8565 | if (PyErr_Occurred()) SWIG_fail; | |
8566 | } | |
8567 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); | |
8568 | return resultobj; | |
8569 | fail: | |
8570 | return NULL; | |
8571 | } | |
8572 | ||
8573 | ||
c370783e | 8574 | static PyObject * LogChain_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8575 | PyObject *obj; |
8576 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8577 | SWIG_TypeClientData(SWIGTYPE_p_wxLogChain, obj); | |
8578 | Py_INCREF(obj); | |
8579 | return Py_BuildValue((char *)""); | |
8580 | } | |
c370783e | 8581 | static PyObject *_wrap_SysErrorCode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8582 | PyObject *resultobj; |
8583 | unsigned long result; | |
8584 | char *kwnames[] = { | |
8585 | NULL | |
8586 | }; | |
8587 | ||
8588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SysErrorCode",kwnames)) goto fail; | |
8589 | { | |
8590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8591 | result = (unsigned long)wxSysErrorCode(); | |
8592 | ||
8593 | wxPyEndAllowThreads(__tstate); | |
8594 | if (PyErr_Occurred()) SWIG_fail; | |
8595 | } | |
c370783e | 8596 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
8597 | return resultobj; |
8598 | fail: | |
8599 | return NULL; | |
8600 | } | |
8601 | ||
8602 | ||
c370783e | 8603 | static PyObject *_wrap_SysErrorMsg(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8604 | PyObject *resultobj; |
8605 | unsigned long arg1 = (unsigned long) 0 ; | |
8606 | wxString result; | |
8607 | PyObject * obj0 = 0 ; | |
8608 | char *kwnames[] = { | |
8609 | (char *) "nErrCode", NULL | |
8610 | }; | |
8611 | ||
8612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SysErrorMsg",kwnames,&obj0)) goto fail; | |
8613 | if (obj0) { | |
c370783e | 8614 | arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0); |
d55e5bfc RD |
8615 | if (PyErr_Occurred()) SWIG_fail; |
8616 | } | |
8617 | { | |
8618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8619 | result = wxSysErrorMsg(arg1); | |
8620 | ||
8621 | wxPyEndAllowThreads(__tstate); | |
8622 | if (PyErr_Occurred()) SWIG_fail; | |
8623 | } | |
8624 | { | |
8625 | #if wxUSE_UNICODE | |
8626 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8627 | #else | |
8628 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8629 | #endif | |
8630 | } | |
8631 | return resultobj; | |
8632 | fail: | |
8633 | return NULL; | |
8634 | } | |
8635 | ||
8636 | ||
c370783e | 8637 | static PyObject *_wrap_LogFatalError(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8638 | PyObject *resultobj; |
8639 | wxString *arg1 = 0 ; | |
b411df4a | 8640 | bool temp1 = false ; |
d55e5bfc RD |
8641 | PyObject * obj0 = 0 ; |
8642 | char *kwnames[] = { | |
8643 | (char *) "msg", NULL | |
8644 | }; | |
8645 | ||
8646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogFatalError",kwnames,&obj0)) goto fail; | |
8647 | { | |
8648 | arg1 = wxString_in_helper(obj0); | |
8649 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 8650 | temp1 = true; |
d55e5bfc RD |
8651 | } |
8652 | { | |
8653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 8654 | wxPyLogFatalError((wxString const &)*arg1); |
d55e5bfc RD |
8655 | |
8656 | wxPyEndAllowThreads(__tstate); | |
8657 | if (PyErr_Occurred()) SWIG_fail; | |
8658 | } | |
8659 | Py_INCREF(Py_None); resultobj = Py_None; | |
8660 | { | |
8661 | if (temp1) | |
8662 | delete arg1; | |
8663 | } | |
8664 | return resultobj; | |
8665 | fail: | |
8666 | { | |
8667 | if (temp1) | |
8668 | delete arg1; | |
8669 | } | |
8670 | return NULL; | |
8671 | } | |
8672 | ||
8673 | ||
c370783e | 8674 | static PyObject *_wrap_LogError(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8675 | PyObject *resultobj; |
8676 | wxString *arg1 = 0 ; | |
b411df4a | 8677 | bool temp1 = false ; |
d55e5bfc RD |
8678 | PyObject * obj0 = 0 ; |
8679 | char *kwnames[] = { | |
8680 | (char *) "msg", NULL | |
8681 | }; | |
8682 | ||
8683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogError",kwnames,&obj0)) goto fail; | |
8684 | { | |
8685 | arg1 = wxString_in_helper(obj0); | |
8686 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 8687 | temp1 = true; |
d55e5bfc RD |
8688 | } |
8689 | { | |
8690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 8691 | wxPyLogError((wxString const &)*arg1); |
d55e5bfc RD |
8692 | |
8693 | wxPyEndAllowThreads(__tstate); | |
8694 | if (PyErr_Occurred()) SWIG_fail; | |
8695 | } | |
8696 | Py_INCREF(Py_None); resultobj = Py_None; | |
8697 | { | |
8698 | if (temp1) | |
8699 | delete arg1; | |
8700 | } | |
8701 | return resultobj; | |
8702 | fail: | |
8703 | { | |
8704 | if (temp1) | |
8705 | delete arg1; | |
8706 | } | |
8707 | return NULL; | |
8708 | } | |
8709 | ||
8710 | ||
c370783e | 8711 | static PyObject *_wrap_LogWarning(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8712 | PyObject *resultobj; |
8713 | wxString *arg1 = 0 ; | |
b411df4a | 8714 | bool temp1 = false ; |
d55e5bfc RD |
8715 | PyObject * obj0 = 0 ; |
8716 | char *kwnames[] = { | |
8717 | (char *) "msg", NULL | |
8718 | }; | |
8719 | ||
8720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWarning",kwnames,&obj0)) goto fail; | |
8721 | { | |
8722 | arg1 = wxString_in_helper(obj0); | |
8723 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 8724 | temp1 = true; |
d55e5bfc RD |
8725 | } |
8726 | { | |
8727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 8728 | wxPyLogWarning((wxString const &)*arg1); |
d55e5bfc RD |
8729 | |
8730 | wxPyEndAllowThreads(__tstate); | |
8731 | if (PyErr_Occurred()) SWIG_fail; | |
8732 | } | |
8733 | Py_INCREF(Py_None); resultobj = Py_None; | |
8734 | { | |
8735 | if (temp1) | |
8736 | delete arg1; | |
8737 | } | |
8738 | return resultobj; | |
8739 | fail: | |
8740 | { | |
8741 | if (temp1) | |
8742 | delete arg1; | |
8743 | } | |
8744 | return NULL; | |
8745 | } | |
8746 | ||
8747 | ||
c370783e | 8748 | static PyObject *_wrap_LogMessage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8749 | PyObject *resultobj; |
8750 | wxString *arg1 = 0 ; | |
b411df4a | 8751 | bool temp1 = false ; |
d55e5bfc RD |
8752 | PyObject * obj0 = 0 ; |
8753 | char *kwnames[] = { | |
8754 | (char *) "msg", NULL | |
8755 | }; | |
8756 | ||
8757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogMessage",kwnames,&obj0)) goto fail; | |
8758 | { | |
8759 | arg1 = wxString_in_helper(obj0); | |
8760 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 8761 | temp1 = true; |
d55e5bfc RD |
8762 | } |
8763 | { | |
8764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 8765 | wxPyLogMessage((wxString const &)*arg1); |
d55e5bfc RD |
8766 | |
8767 | wxPyEndAllowThreads(__tstate); | |
8768 | if (PyErr_Occurred()) SWIG_fail; | |
8769 | } | |
8770 | Py_INCREF(Py_None); resultobj = Py_None; | |
8771 | { | |
8772 | if (temp1) | |
8773 | delete arg1; | |
8774 | } | |
8775 | return resultobj; | |
8776 | fail: | |
8777 | { | |
8778 | if (temp1) | |
8779 | delete arg1; | |
8780 | } | |
8781 | return NULL; | |
8782 | } | |
8783 | ||
8784 | ||
c370783e | 8785 | static PyObject *_wrap_LogInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8786 | PyObject *resultobj; |
8787 | wxString *arg1 = 0 ; | |
b411df4a | 8788 | bool temp1 = false ; |
d55e5bfc RD |
8789 | PyObject * obj0 = 0 ; |
8790 | char *kwnames[] = { | |
8791 | (char *) "msg", NULL | |
8792 | }; | |
8793 | ||
8794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogInfo",kwnames,&obj0)) goto fail; | |
8795 | { | |
8796 | arg1 = wxString_in_helper(obj0); | |
8797 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 8798 | temp1 = true; |
d55e5bfc RD |
8799 | } |
8800 | { | |
8801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 8802 | wxPyLogInfo((wxString const &)*arg1); |
d55e5bfc RD |
8803 | |
8804 | wxPyEndAllowThreads(__tstate); | |
8805 | if (PyErr_Occurred()) SWIG_fail; | |
8806 | } | |
8807 | Py_INCREF(Py_None); resultobj = Py_None; | |
8808 | { | |
8809 | if (temp1) | |
8810 | delete arg1; | |
8811 | } | |
8812 | return resultobj; | |
8813 | fail: | |
8814 | { | |
8815 | if (temp1) | |
8816 | delete arg1; | |
8817 | } | |
8818 | return NULL; | |
8819 | } | |
8820 | ||
8821 | ||
c370783e | 8822 | static PyObject *_wrap_LogDebug(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8823 | PyObject *resultobj; |
8824 | wxString *arg1 = 0 ; | |
b411df4a | 8825 | bool temp1 = false ; |
d55e5bfc RD |
8826 | PyObject * obj0 = 0 ; |
8827 | char *kwnames[] = { | |
8828 | (char *) "msg", NULL | |
8829 | }; | |
8830 | ||
8831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogDebug",kwnames,&obj0)) goto fail; | |
8832 | { | |
8833 | arg1 = wxString_in_helper(obj0); | |
8834 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 8835 | temp1 = true; |
d55e5bfc RD |
8836 | } |
8837 | { | |
8838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 8839 | wxPyLogDebug((wxString const &)*arg1); |
d55e5bfc RD |
8840 | |
8841 | wxPyEndAllowThreads(__tstate); | |
8842 | if (PyErr_Occurred()) SWIG_fail; | |
8843 | } | |
8844 | Py_INCREF(Py_None); resultobj = Py_None; | |
8845 | { | |
8846 | if (temp1) | |
8847 | delete arg1; | |
8848 | } | |
8849 | return resultobj; | |
8850 | fail: | |
8851 | { | |
8852 | if (temp1) | |
8853 | delete arg1; | |
8854 | } | |
8855 | return NULL; | |
8856 | } | |
8857 | ||
8858 | ||
c370783e | 8859 | static PyObject *_wrap_LogVerbose(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8860 | PyObject *resultobj; |
8861 | wxString *arg1 = 0 ; | |
b411df4a | 8862 | bool temp1 = false ; |
d55e5bfc RD |
8863 | PyObject * obj0 = 0 ; |
8864 | char *kwnames[] = { | |
8865 | (char *) "msg", NULL | |
8866 | }; | |
8867 | ||
8868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogVerbose",kwnames,&obj0)) goto fail; | |
8869 | { | |
8870 | arg1 = wxString_in_helper(obj0); | |
8871 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 8872 | temp1 = true; |
d55e5bfc RD |
8873 | } |
8874 | { | |
8875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 8876 | wxPyLogVerbose((wxString const &)*arg1); |
d55e5bfc RD |
8877 | |
8878 | wxPyEndAllowThreads(__tstate); | |
8879 | if (PyErr_Occurred()) SWIG_fail; | |
8880 | } | |
8881 | Py_INCREF(Py_None); resultobj = Py_None; | |
8882 | { | |
8883 | if (temp1) | |
8884 | delete arg1; | |
8885 | } | |
8886 | return resultobj; | |
8887 | fail: | |
8888 | { | |
8889 | if (temp1) | |
8890 | delete arg1; | |
8891 | } | |
8892 | return NULL; | |
8893 | } | |
8894 | ||
8895 | ||
c370783e | 8896 | static PyObject *_wrap_LogStatus(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8897 | PyObject *resultobj; |
8898 | wxString *arg1 = 0 ; | |
b411df4a | 8899 | bool temp1 = false ; |
d55e5bfc RD |
8900 | PyObject * obj0 = 0 ; |
8901 | char *kwnames[] = { | |
8902 | (char *) "msg", NULL | |
8903 | }; | |
8904 | ||
8905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogStatus",kwnames,&obj0)) goto fail; | |
8906 | { | |
8907 | arg1 = wxString_in_helper(obj0); | |
8908 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 8909 | temp1 = true; |
d55e5bfc RD |
8910 | } |
8911 | { | |
8912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 8913 | wxPyLogStatus((wxString const &)*arg1); |
d55e5bfc RD |
8914 | |
8915 | wxPyEndAllowThreads(__tstate); | |
8916 | if (PyErr_Occurred()) SWIG_fail; | |
8917 | } | |
8918 | Py_INCREF(Py_None); resultobj = Py_None; | |
8919 | { | |
8920 | if (temp1) | |
8921 | delete arg1; | |
8922 | } | |
8923 | return resultobj; | |
8924 | fail: | |
8925 | { | |
8926 | if (temp1) | |
8927 | delete arg1; | |
8928 | } | |
8929 | return NULL; | |
8930 | } | |
8931 | ||
8932 | ||
c370783e | 8933 | static PyObject *_wrap_LogStatusFrame(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8934 | PyObject *resultobj; |
8935 | wxFrame *arg1 = (wxFrame *) 0 ; | |
8936 | wxString *arg2 = 0 ; | |
b411df4a | 8937 | bool temp2 = false ; |
d55e5bfc RD |
8938 | PyObject * obj0 = 0 ; |
8939 | PyObject * obj1 = 0 ; | |
8940 | char *kwnames[] = { | |
8941 | (char *) "pFrame",(char *) "msg", NULL | |
8942 | }; | |
8943 | ||
8944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogStatusFrame",kwnames,&obj0,&obj1)) goto fail; | |
8945 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
8946 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8947 | { | |
8948 | arg2 = wxString_in_helper(obj1); | |
8949 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 8950 | temp2 = true; |
d55e5bfc RD |
8951 | } |
8952 | { | |
8953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 8954 | wxPyLogStatusFrame(arg1,(wxString const &)*arg2); |
d55e5bfc RD |
8955 | |
8956 | wxPyEndAllowThreads(__tstate); | |
8957 | if (PyErr_Occurred()) SWIG_fail; | |
8958 | } | |
8959 | Py_INCREF(Py_None); resultobj = Py_None; | |
8960 | { | |
8961 | if (temp2) | |
8962 | delete arg2; | |
8963 | } | |
8964 | return resultobj; | |
8965 | fail: | |
8966 | { | |
8967 | if (temp2) | |
8968 | delete arg2; | |
8969 | } | |
8970 | return NULL; | |
8971 | } | |
8972 | ||
8973 | ||
c370783e | 8974 | static PyObject *_wrap_LogSysError(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8975 | PyObject *resultobj; |
8976 | wxString *arg1 = 0 ; | |
b411df4a | 8977 | bool temp1 = false ; |
d55e5bfc RD |
8978 | PyObject * obj0 = 0 ; |
8979 | char *kwnames[] = { | |
8980 | (char *) "msg", NULL | |
8981 | }; | |
8982 | ||
8983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogSysError",kwnames,&obj0)) goto fail; | |
8984 | { | |
8985 | arg1 = wxString_in_helper(obj0); | |
8986 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 8987 | temp1 = true; |
d55e5bfc RD |
8988 | } |
8989 | { | |
8990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 8991 | wxPyLogSysError((wxString const &)*arg1); |
d55e5bfc RD |
8992 | |
8993 | wxPyEndAllowThreads(__tstate); | |
8994 | if (PyErr_Occurred()) SWIG_fail; | |
8995 | } | |
8996 | Py_INCREF(Py_None); resultobj = Py_None; | |
8997 | { | |
8998 | if (temp1) | |
8999 | delete arg1; | |
9000 | } | |
9001 | return resultobj; | |
9002 | fail: | |
9003 | { | |
9004 | if (temp1) | |
9005 | delete arg1; | |
9006 | } | |
9007 | return NULL; | |
9008 | } | |
9009 | ||
9010 | ||
f78cc896 RD |
9011 | static PyObject *_wrap_LogGeneric(PyObject *, PyObject *args, PyObject *kwargs) { |
9012 | PyObject *resultobj; | |
9013 | unsigned long arg1 ; | |
9014 | wxString *arg2 = 0 ; | |
9015 | bool temp2 = false ; | |
9016 | PyObject * obj0 = 0 ; | |
9017 | PyObject * obj1 = 0 ; | |
9018 | char *kwnames[] = { | |
9019 | (char *) "level",(char *) "msg", NULL | |
9020 | }; | |
9021 | ||
9022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogGeneric",kwnames,&obj0,&obj1)) goto fail; | |
9023 | arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0); | |
9024 | if (PyErr_Occurred()) SWIG_fail; | |
9025 | { | |
9026 | arg2 = wxString_in_helper(obj1); | |
9027 | if (arg2 == NULL) SWIG_fail; | |
9028 | temp2 = true; | |
9029 | } | |
9030 | { | |
9031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9032 | wxPyLogGeneric(arg1,(wxString const &)*arg2); | |
9033 | ||
9034 | wxPyEndAllowThreads(__tstate); | |
9035 | if (PyErr_Occurred()) SWIG_fail; | |
9036 | } | |
9037 | Py_INCREF(Py_None); resultobj = Py_None; | |
9038 | { | |
9039 | if (temp2) | |
9040 | delete arg2; | |
9041 | } | |
9042 | return resultobj; | |
9043 | fail: | |
9044 | { | |
9045 | if (temp2) | |
9046 | delete arg2; | |
9047 | } | |
9048 | return NULL; | |
9049 | } | |
9050 | ||
9051 | ||
c370783e | 9052 | static PyObject *_wrap_LogTrace__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
9053 | PyObject *resultobj; |
9054 | unsigned long arg1 ; | |
9055 | wxString *arg2 = 0 ; | |
b411df4a | 9056 | bool temp2 = false ; |
d55e5bfc RD |
9057 | PyObject * obj0 = 0 ; |
9058 | PyObject * obj1 = 0 ; | |
9059 | ||
9060 | if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail; | |
c370783e | 9061 | arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0); |
d55e5bfc RD |
9062 | if (PyErr_Occurred()) SWIG_fail; |
9063 | { | |
9064 | arg2 = wxString_in_helper(obj1); | |
9065 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 9066 | temp2 = true; |
d55e5bfc RD |
9067 | } |
9068 | { | |
9069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 9070 | wxPyLogTrace(arg1,(wxString const &)*arg2); |
d55e5bfc RD |
9071 | |
9072 | wxPyEndAllowThreads(__tstate); | |
9073 | if (PyErr_Occurred()) SWIG_fail; | |
9074 | } | |
9075 | Py_INCREF(Py_None); resultobj = Py_None; | |
9076 | { | |
9077 | if (temp2) | |
9078 | delete arg2; | |
9079 | } | |
9080 | return resultobj; | |
9081 | fail: | |
9082 | { | |
9083 | if (temp2) | |
9084 | delete arg2; | |
9085 | } | |
9086 | return NULL; | |
9087 | } | |
9088 | ||
9089 | ||
c370783e | 9090 | static PyObject *_wrap_LogTrace__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
9091 | PyObject *resultobj; |
9092 | wxString *arg1 = 0 ; | |
9093 | wxString *arg2 = 0 ; | |
b411df4a RD |
9094 | bool temp1 = false ; |
9095 | bool temp2 = false ; | |
d55e5bfc RD |
9096 | PyObject * obj0 = 0 ; |
9097 | PyObject * obj1 = 0 ; | |
9098 | ||
9099 | if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail; | |
9100 | { | |
9101 | arg1 = wxString_in_helper(obj0); | |
9102 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 9103 | temp1 = true; |
d55e5bfc RD |
9104 | } |
9105 | { | |
9106 | arg2 = wxString_in_helper(obj1); | |
9107 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 9108 | temp2 = true; |
d55e5bfc RD |
9109 | } |
9110 | { | |
9111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 9112 | wxPyLogTrace((wxString const &)*arg1,(wxString const &)*arg2); |
d55e5bfc RD |
9113 | |
9114 | wxPyEndAllowThreads(__tstate); | |
9115 | if (PyErr_Occurred()) SWIG_fail; | |
9116 | } | |
9117 | Py_INCREF(Py_None); resultobj = Py_None; | |
9118 | { | |
9119 | if (temp1) | |
9120 | delete arg1; | |
9121 | } | |
9122 | { | |
9123 | if (temp2) | |
9124 | delete arg2; | |
9125 | } | |
9126 | return resultobj; | |
9127 | fail: | |
9128 | { | |
9129 | if (temp1) | |
9130 | delete arg1; | |
9131 | } | |
9132 | { | |
9133 | if (temp2) | |
9134 | delete arg2; | |
9135 | } | |
9136 | return NULL; | |
9137 | } | |
9138 | ||
9139 | ||
9140 | static PyObject *_wrap_LogTrace(PyObject *self, PyObject *args) { | |
9141 | int argc; | |
9142 | PyObject *argv[3]; | |
9143 | int ii; | |
9144 | ||
9145 | argc = PyObject_Length(args); | |
9146 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
9147 | argv[ii] = PyTuple_GetItem(args,ii); | |
9148 | } | |
9149 | if (argc == 2) { | |
9150 | int _v; | |
9151 | { | |
9152 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); | |
9153 | } | |
9154 | if (_v) { | |
9155 | { | |
9156 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); | |
9157 | } | |
9158 | if (_v) { | |
9159 | return _wrap_LogTrace__SWIG_1(self,args); | |
9160 | } | |
9161 | } | |
9162 | } | |
9163 | if (argc == 2) { | |
9164 | int _v; | |
c370783e | 9165 | _v = SWIG_Check_unsigned_SS_long(argv[0]); |
d55e5bfc RD |
9166 | if (_v) { |
9167 | { | |
9168 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); | |
9169 | } | |
9170 | if (_v) { | |
9171 | return _wrap_LogTrace__SWIG_0(self,args); | |
9172 | } | |
9173 | } | |
9174 | } | |
9175 | ||
9176 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'LogTrace'"); | |
9177 | return NULL; | |
9178 | } | |
9179 | ||
9180 | ||
c370783e | 9181 | static PyObject *_wrap_SafeShowMessage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9182 | PyObject *resultobj; |
9183 | wxString *arg1 = 0 ; | |
9184 | wxString *arg2 = 0 ; | |
b411df4a RD |
9185 | bool temp1 = false ; |
9186 | bool temp2 = false ; | |
d55e5bfc RD |
9187 | PyObject * obj0 = 0 ; |
9188 | PyObject * obj1 = 0 ; | |
9189 | char *kwnames[] = { | |
9190 | (char *) "title",(char *) "text", NULL | |
9191 | }; | |
9192 | ||
9193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SafeShowMessage",kwnames,&obj0,&obj1)) goto fail; | |
9194 | { | |
9195 | arg1 = wxString_in_helper(obj0); | |
9196 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 9197 | temp1 = true; |
d55e5bfc RD |
9198 | } |
9199 | { | |
9200 | arg2 = wxString_in_helper(obj1); | |
9201 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 9202 | temp2 = true; |
d55e5bfc RD |
9203 | } |
9204 | { | |
9205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9206 | wxSafeShowMessage((wxString const &)*arg1,(wxString const &)*arg2); | |
9207 | ||
9208 | wxPyEndAllowThreads(__tstate); | |
9209 | if (PyErr_Occurred()) SWIG_fail; | |
9210 | } | |
9211 | Py_INCREF(Py_None); resultobj = Py_None; | |
9212 | { | |
9213 | if (temp1) | |
9214 | delete arg1; | |
9215 | } | |
9216 | { | |
9217 | if (temp2) | |
9218 | delete arg2; | |
9219 | } | |
9220 | return resultobj; | |
9221 | fail: | |
9222 | { | |
9223 | if (temp1) | |
9224 | delete arg1; | |
9225 | } | |
9226 | { | |
9227 | if (temp2) | |
9228 | delete arg2; | |
9229 | } | |
9230 | return NULL; | |
9231 | } | |
9232 | ||
9233 | ||
c370783e | 9234 | static PyObject *_wrap_new_LogNull(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9235 | PyObject *resultobj; |
9236 | wxLogNull *result; | |
9237 | char *kwnames[] = { | |
9238 | NULL | |
9239 | }; | |
9240 | ||
9241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogNull",kwnames)) goto fail; | |
9242 | { | |
9243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9244 | result = (wxLogNull *)new wxLogNull(); | |
9245 | ||
9246 | wxPyEndAllowThreads(__tstate); | |
9247 | if (PyErr_Occurred()) SWIG_fail; | |
9248 | } | |
9249 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogNull, 1); | |
9250 | return resultobj; | |
9251 | fail: | |
9252 | return NULL; | |
9253 | } | |
9254 | ||
9255 | ||
c370783e | 9256 | static PyObject *_wrap_delete_LogNull(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9257 | PyObject *resultobj; |
9258 | wxLogNull *arg1 = (wxLogNull *) 0 ; | |
9259 | PyObject * obj0 = 0 ; | |
9260 | char *kwnames[] = { | |
9261 | (char *) "self", NULL | |
9262 | }; | |
9263 | ||
9264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LogNull",kwnames,&obj0)) goto fail; | |
9265 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogNull, | |
9266 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9267 | { | |
9268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9269 | delete arg1; | |
9270 | ||
9271 | wxPyEndAllowThreads(__tstate); | |
9272 | if (PyErr_Occurred()) SWIG_fail; | |
9273 | } | |
9274 | Py_INCREF(Py_None); resultobj = Py_None; | |
9275 | return resultobj; | |
9276 | fail: | |
9277 | return NULL; | |
9278 | } | |
9279 | ||
9280 | ||
c370783e | 9281 | static PyObject * LogNull_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
9282 | PyObject *obj; |
9283 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9284 | SWIG_TypeClientData(SWIGTYPE_p_wxLogNull, obj); | |
9285 | Py_INCREF(obj); | |
9286 | return Py_BuildValue((char *)""); | |
9287 | } | |
c370783e | 9288 | static PyObject *_wrap_new_PyLog(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9289 | PyObject *resultobj; |
9290 | wxPyLog *result; | |
9291 | char *kwnames[] = { | |
9292 | NULL | |
9293 | }; | |
9294 | ||
9295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLog",kwnames)) goto fail; | |
9296 | { | |
9297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9298 | result = (wxPyLog *)new wxPyLog(); | |
9299 | ||
9300 | wxPyEndAllowThreads(__tstate); | |
9301 | if (PyErr_Occurred()) SWIG_fail; | |
9302 | } | |
9303 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyLog, 1); | |
9304 | return resultobj; | |
9305 | fail: | |
9306 | return NULL; | |
9307 | } | |
9308 | ||
9309 | ||
c370783e | 9310 | static PyObject *_wrap_PyLog__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9311 | PyObject *resultobj; |
9312 | wxPyLog *arg1 = (wxPyLog *) 0 ; | |
9313 | PyObject *arg2 = (PyObject *) 0 ; | |
9314 | PyObject *arg3 = (PyObject *) 0 ; | |
9315 | PyObject * obj0 = 0 ; | |
9316 | PyObject * obj1 = 0 ; | |
9317 | PyObject * obj2 = 0 ; | |
9318 | char *kwnames[] = { | |
9319 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
9320 | }; | |
9321 | ||
9322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLog__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9323 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLog, | |
9324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9325 | arg2 = obj1; | |
9326 | arg3 = obj2; | |
9327 | { | |
9328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9329 | (arg1)->_setCallbackInfo(arg2,arg3); | |
9330 | ||
9331 | wxPyEndAllowThreads(__tstate); | |
9332 | if (PyErr_Occurred()) SWIG_fail; | |
9333 | } | |
9334 | Py_INCREF(Py_None); resultobj = Py_None; | |
9335 | return resultobj; | |
9336 | fail: | |
9337 | return NULL; | |
9338 | } | |
9339 | ||
9340 | ||
c370783e | 9341 | static PyObject * PyLog_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
9342 | PyObject *obj; |
9343 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9344 | SWIG_TypeClientData(SWIGTYPE_p_wxPyLog, obj); | |
9345 | Py_INCREF(obj); | |
9346 | return Py_BuildValue((char *)""); | |
9347 | } | |
c370783e | 9348 | static PyObject *_wrap_Process_Kill(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9349 | PyObject *resultobj; |
9350 | int arg1 ; | |
9351 | int arg2 = (int) wxSIGTERM ; | |
03e46024 | 9352 | int arg3 = (int) wxKILL_NOCHILDREN ; |
d55e5bfc RD |
9353 | int result; |
9354 | PyObject * obj0 = 0 ; | |
9355 | PyObject * obj1 = 0 ; | |
03e46024 | 9356 | PyObject * obj2 = 0 ; |
d55e5bfc | 9357 | char *kwnames[] = { |
03e46024 | 9358 | (char *) "pid",(char *) "sig",(char *) "flags", NULL |
d55e5bfc RD |
9359 | }; |
9360 | ||
03e46024 | 9361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Process_Kill",kwnames,&obj0,&obj1,&obj2)) goto fail; |
c370783e | 9362 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
9363 | if (PyErr_Occurred()) SWIG_fail; |
9364 | if (obj1) { | |
c370783e | 9365 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
9366 | if (PyErr_Occurred()) SWIG_fail; |
9367 | } | |
03e46024 RD |
9368 | if (obj2) { |
9369 | arg3 = (int)SWIG_As_int(obj2); | |
9370 | if (PyErr_Occurred()) SWIG_fail; | |
9371 | } | |
d55e5bfc RD |
9372 | { |
9373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
03e46024 | 9374 | result = (int)wxPyProcess::Kill(arg1,(wxSignal )arg2,arg3); |
d55e5bfc RD |
9375 | |
9376 | wxPyEndAllowThreads(__tstate); | |
9377 | if (PyErr_Occurred()) SWIG_fail; | |
9378 | } | |
c370783e | 9379 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
9380 | return resultobj; |
9381 | fail: | |
9382 | return NULL; | |
9383 | } | |
9384 | ||
9385 | ||
c370783e | 9386 | static PyObject *_wrap_Process_Exists(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9387 | PyObject *resultobj; |
9388 | int arg1 ; | |
9389 | bool result; | |
9390 | PyObject * obj0 = 0 ; | |
9391 | char *kwnames[] = { | |
9392 | (char *) "pid", NULL | |
9393 | }; | |
9394 | ||
9395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Exists",kwnames,&obj0)) goto fail; | |
c370783e | 9396 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
9397 | if (PyErr_Occurred()) SWIG_fail; |
9398 | { | |
9399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9400 | result = (bool)wxPyProcess::Exists(arg1); | |
9401 | ||
9402 | wxPyEndAllowThreads(__tstate); | |
9403 | if (PyErr_Occurred()) SWIG_fail; | |
9404 | } | |
9405 | { | |
9406 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9407 | } | |
9408 | return resultobj; | |
9409 | fail: | |
9410 | return NULL; | |
9411 | } | |
9412 | ||
9413 | ||
c370783e | 9414 | static PyObject *_wrap_Process_Open(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9415 | PyObject *resultobj; |
9416 | wxString *arg1 = 0 ; | |
9417 | int arg2 = (int) wxEXEC_ASYNC ; | |
9418 | wxPyProcess *result; | |
b411df4a | 9419 | bool temp1 = false ; |
d55e5bfc RD |
9420 | PyObject * obj0 = 0 ; |
9421 | PyObject * obj1 = 0 ; | |
9422 | char *kwnames[] = { | |
9423 | (char *) "cmd",(char *) "flags", NULL | |
9424 | }; | |
9425 | ||
9426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Open",kwnames,&obj0,&obj1)) goto fail; | |
9427 | { | |
9428 | arg1 = wxString_in_helper(obj0); | |
9429 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 9430 | temp1 = true; |
d55e5bfc RD |
9431 | } |
9432 | if (obj1) { | |
c370783e | 9433 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
9434 | if (PyErr_Occurred()) SWIG_fail; |
9435 | } | |
9436 | { | |
9437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9438 | result = (wxPyProcess *)wxPyProcess::Open((wxString const &)*arg1,arg2); | |
9439 | ||
9440 | wxPyEndAllowThreads(__tstate); | |
9441 | if (PyErr_Occurred()) SWIG_fail; | |
9442 | } | |
9443 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 0); | |
9444 | { | |
9445 | if (temp1) | |
9446 | delete arg1; | |
9447 | } | |
9448 | return resultobj; | |
9449 | fail: | |
9450 | { | |
9451 | if (temp1) | |
9452 | delete arg1; | |
9453 | } | |
9454 | return NULL; | |
9455 | } | |
9456 | ||
9457 | ||
c370783e | 9458 | static PyObject *_wrap_new_Process(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9459 | PyObject *resultobj; |
9460 | wxEvtHandler *arg1 = (wxEvtHandler *) NULL ; | |
9461 | int arg2 = (int) -1 ; | |
9462 | wxPyProcess *result; | |
9463 | PyObject * obj0 = 0 ; | |
9464 | PyObject * obj1 = 0 ; | |
9465 | char *kwnames[] = { | |
9466 | (char *) "parent",(char *) "id", NULL | |
9467 | }; | |
9468 | ||
9469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Process",kwnames,&obj0,&obj1)) goto fail; | |
9470 | if (obj0) { | |
9471 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
9472 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9473 | } | |
9474 | if (obj1) { | |
c370783e | 9475 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
9476 | if (PyErr_Occurred()) SWIG_fail; |
9477 | } | |
9478 | { | |
9479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9480 | result = (wxPyProcess *)new wxPyProcess(arg1,arg2); | |
9481 | ||
9482 | wxPyEndAllowThreads(__tstate); | |
9483 | if (PyErr_Occurred()) SWIG_fail; | |
9484 | } | |
9485 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 1); | |
9486 | return resultobj; | |
9487 | fail: | |
9488 | return NULL; | |
9489 | } | |
9490 | ||
9491 | ||
c370783e | 9492 | static PyObject *_wrap_Process__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9493 | PyObject *resultobj; |
9494 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9495 | PyObject *arg2 = (PyObject *) 0 ; | |
9496 | PyObject *arg3 = (PyObject *) 0 ; | |
9497 | PyObject * obj0 = 0 ; | |
9498 | PyObject * obj1 = 0 ; | |
9499 | PyObject * obj2 = 0 ; | |
9500 | char *kwnames[] = { | |
9501 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
9502 | }; | |
9503 | ||
9504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9507 | arg2 = obj1; | |
9508 | arg3 = obj2; | |
9509 | { | |
9510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9511 | (arg1)->_setCallbackInfo(arg2,arg3); | |
9512 | ||
9513 | wxPyEndAllowThreads(__tstate); | |
9514 | if (PyErr_Occurred()) SWIG_fail; | |
9515 | } | |
9516 | Py_INCREF(Py_None); resultobj = Py_None; | |
9517 | return resultobj; | |
9518 | fail: | |
9519 | return NULL; | |
9520 | } | |
9521 | ||
9522 | ||
c370783e | 9523 | static PyObject *_wrap_Process_base_OnTerminate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9524 | PyObject *resultobj; |
9525 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9526 | int arg2 ; | |
9527 | int arg3 ; | |
9528 | PyObject * obj0 = 0 ; | |
9529 | PyObject * obj1 = 0 ; | |
9530 | PyObject * obj2 = 0 ; | |
9531 | char *kwnames[] = { | |
9532 | (char *) "self",(char *) "pid",(char *) "status", NULL | |
9533 | }; | |
9534 | ||
9535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process_base_OnTerminate",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 9538 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 9539 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 9540 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9541 | if (PyErr_Occurred()) SWIG_fail; |
9542 | { | |
9543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9544 | (arg1)->base_OnTerminate(arg2,arg3); | |
9545 | ||
9546 | wxPyEndAllowThreads(__tstate); | |
9547 | if (PyErr_Occurred()) SWIG_fail; | |
9548 | } | |
9549 | Py_INCREF(Py_None); resultobj = Py_None; | |
9550 | return resultobj; | |
9551 | fail: | |
9552 | return NULL; | |
9553 | } | |
9554 | ||
9555 | ||
c370783e | 9556 | static PyObject *_wrap_Process_Redirect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9557 | PyObject *resultobj; |
9558 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9559 | PyObject * obj0 = 0 ; | |
9560 | char *kwnames[] = { | |
9561 | (char *) "self", NULL | |
9562 | }; | |
9563 | ||
9564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Redirect",kwnames,&obj0)) goto fail; | |
9565 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9566 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9567 | { | |
9568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9569 | (arg1)->Redirect(); | |
9570 | ||
9571 | wxPyEndAllowThreads(__tstate); | |
9572 | if (PyErr_Occurred()) SWIG_fail; | |
9573 | } | |
9574 | Py_INCREF(Py_None); resultobj = Py_None; | |
9575 | return resultobj; | |
9576 | fail: | |
9577 | return NULL; | |
9578 | } | |
9579 | ||
9580 | ||
c370783e | 9581 | static PyObject *_wrap_Process_IsRedirected(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9582 | PyObject *resultobj; |
9583 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9584 | bool result; | |
9585 | PyObject * obj0 = 0 ; | |
9586 | char *kwnames[] = { | |
9587 | (char *) "self", NULL | |
9588 | }; | |
9589 | ||
9590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsRedirected",kwnames,&obj0)) goto fail; | |
9591 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9593 | { | |
9594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9595 | result = (bool)(arg1)->IsRedirected(); | |
9596 | ||
9597 | wxPyEndAllowThreads(__tstate); | |
9598 | if (PyErr_Occurred()) SWIG_fail; | |
9599 | } | |
9600 | { | |
9601 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9602 | } | |
9603 | return resultobj; | |
9604 | fail: | |
9605 | return NULL; | |
9606 | } | |
9607 | ||
9608 | ||
c370783e | 9609 | static PyObject *_wrap_Process_Detach(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9610 | PyObject *resultobj; |
9611 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9612 | PyObject * obj0 = 0 ; | |
9613 | char *kwnames[] = { | |
9614 | (char *) "self", NULL | |
9615 | }; | |
9616 | ||
9617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Detach",kwnames,&obj0)) goto fail; | |
9618 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9619 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9620 | { | |
9621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9622 | (arg1)->Detach(); | |
9623 | ||
9624 | wxPyEndAllowThreads(__tstate); | |
9625 | if (PyErr_Occurred()) SWIG_fail; | |
9626 | } | |
9627 | Py_INCREF(Py_None); resultobj = Py_None; | |
9628 | return resultobj; | |
9629 | fail: | |
9630 | return NULL; | |
9631 | } | |
9632 | ||
9633 | ||
c370783e | 9634 | static PyObject *_wrap_Process_GetInputStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9635 | PyObject *resultobj; |
9636 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9637 | wxInputStream *result; | |
9638 | PyObject * obj0 = 0 ; | |
9639 | char *kwnames[] = { | |
9640 | (char *) "self", NULL | |
9641 | }; | |
9642 | ||
9643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetInputStream",kwnames,&obj0)) goto fail; | |
9644 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9645 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9646 | { | |
9647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9648 | result = (wxInputStream *)(arg1)->GetInputStream(); | |
9649 | ||
9650 | wxPyEndAllowThreads(__tstate); | |
9651 | if (PyErr_Occurred()) SWIG_fail; | |
9652 | } | |
9653 | { | |
9654 | wxPyInputStream * _ptr = NULL; | |
9655 | ||
9656 | if (result) { | |
9657 | _ptr = new wxPyInputStream(result); | |
9658 | } | |
fc71d09b | 9659 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), 0); |
d55e5bfc RD |
9660 | } |
9661 | return resultobj; | |
9662 | fail: | |
9663 | return NULL; | |
9664 | } | |
9665 | ||
9666 | ||
c370783e | 9667 | static PyObject *_wrap_Process_GetErrorStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9668 | PyObject *resultobj; |
9669 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9670 | wxInputStream *result; | |
9671 | PyObject * obj0 = 0 ; | |
9672 | char *kwnames[] = { | |
9673 | (char *) "self", NULL | |
9674 | }; | |
9675 | ||
9676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetErrorStream",kwnames,&obj0)) goto fail; | |
9677 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9679 | { | |
9680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9681 | result = (wxInputStream *)(arg1)->GetErrorStream(); | |
9682 | ||
9683 | wxPyEndAllowThreads(__tstate); | |
9684 | if (PyErr_Occurred()) SWIG_fail; | |
9685 | } | |
9686 | { | |
9687 | wxPyInputStream * _ptr = NULL; | |
9688 | ||
9689 | if (result) { | |
9690 | _ptr = new wxPyInputStream(result); | |
9691 | } | |
fc71d09b | 9692 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), 0); |
d55e5bfc RD |
9693 | } |
9694 | return resultobj; | |
9695 | fail: | |
9696 | return NULL; | |
9697 | } | |
9698 | ||
9699 | ||
c370783e | 9700 | static PyObject *_wrap_Process_GetOutputStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9701 | PyObject *resultobj; |
9702 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9703 | wxOutputStream *result; | |
9704 | PyObject * obj0 = 0 ; | |
9705 | char *kwnames[] = { | |
9706 | (char *) "self", NULL | |
9707 | }; | |
9708 | ||
9709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetOutputStream",kwnames,&obj0)) goto fail; | |
9710 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9711 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9712 | { | |
9713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9714 | result = (wxOutputStream *)(arg1)->GetOutputStream(); | |
9715 | ||
9716 | wxPyEndAllowThreads(__tstate); | |
9717 | if (PyErr_Occurred()) SWIG_fail; | |
9718 | } | |
9719 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxOutputStream, 0); | |
9720 | return resultobj; | |
9721 | fail: | |
9722 | return NULL; | |
9723 | } | |
9724 | ||
9725 | ||
c370783e | 9726 | static PyObject *_wrap_Process_CloseOutput(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9727 | PyObject *resultobj; |
9728 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9729 | PyObject * obj0 = 0 ; | |
9730 | char *kwnames[] = { | |
9731 | (char *) "self", NULL | |
9732 | }; | |
9733 | ||
9734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_CloseOutput",kwnames,&obj0)) goto fail; | |
9735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9737 | { | |
9738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9739 | (arg1)->CloseOutput(); | |
9740 | ||
9741 | wxPyEndAllowThreads(__tstate); | |
9742 | if (PyErr_Occurred()) SWIG_fail; | |
9743 | } | |
9744 | Py_INCREF(Py_None); resultobj = Py_None; | |
9745 | return resultobj; | |
9746 | fail: | |
9747 | return NULL; | |
9748 | } | |
9749 | ||
9750 | ||
c370783e | 9751 | static PyObject *_wrap_Process_IsInputOpened(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9752 | PyObject *resultobj; |
9753 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9754 | bool result; | |
9755 | PyObject * obj0 = 0 ; | |
9756 | char *kwnames[] = { | |
9757 | (char *) "self", NULL | |
9758 | }; | |
9759 | ||
9760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputOpened",kwnames,&obj0)) goto fail; | |
9761 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9762 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9763 | { | |
9764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9765 | result = (bool)((wxPyProcess const *)arg1)->IsInputOpened(); | |
9766 | ||
9767 | wxPyEndAllowThreads(__tstate); | |
9768 | if (PyErr_Occurred()) SWIG_fail; | |
9769 | } | |
9770 | { | |
9771 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9772 | } | |
9773 | return resultobj; | |
9774 | fail: | |
9775 | return NULL; | |
9776 | } | |
9777 | ||
9778 | ||
c370783e | 9779 | static PyObject *_wrap_Process_IsInputAvailable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9780 | PyObject *resultobj; |
9781 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9782 | bool result; | |
9783 | PyObject * obj0 = 0 ; | |
9784 | char *kwnames[] = { | |
9785 | (char *) "self", NULL | |
9786 | }; | |
9787 | ||
9788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputAvailable",kwnames,&obj0)) goto fail; | |
9789 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9790 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9791 | { | |
9792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9793 | result = (bool)((wxPyProcess const *)arg1)->IsInputAvailable(); | |
9794 | ||
9795 | wxPyEndAllowThreads(__tstate); | |
9796 | if (PyErr_Occurred()) SWIG_fail; | |
9797 | } | |
9798 | { | |
9799 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9800 | } | |
9801 | return resultobj; | |
9802 | fail: | |
9803 | return NULL; | |
9804 | } | |
9805 | ||
9806 | ||
c370783e | 9807 | static PyObject *_wrap_Process_IsErrorAvailable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9808 | PyObject *resultobj; |
9809 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9810 | bool result; | |
9811 | PyObject * obj0 = 0 ; | |
9812 | char *kwnames[] = { | |
9813 | (char *) "self", NULL | |
9814 | }; | |
9815 | ||
9816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsErrorAvailable",kwnames,&obj0)) goto fail; | |
9817 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9818 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9819 | { | |
9820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9821 | result = (bool)((wxPyProcess const *)arg1)->IsErrorAvailable(); | |
9822 | ||
9823 | wxPyEndAllowThreads(__tstate); | |
9824 | if (PyErr_Occurred()) SWIG_fail; | |
9825 | } | |
9826 | { | |
9827 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9828 | } | |
9829 | return resultobj; | |
9830 | fail: | |
9831 | return NULL; | |
9832 | } | |
9833 | ||
9834 | ||
c370783e | 9835 | static PyObject * Process_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
9836 | PyObject *obj; |
9837 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9838 | SWIG_TypeClientData(SWIGTYPE_p_wxPyProcess, obj); | |
9839 | Py_INCREF(obj); | |
9840 | return Py_BuildValue((char *)""); | |
9841 | } | |
c370783e | 9842 | static PyObject *_wrap_new_ProcessEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9843 | PyObject *resultobj; |
9844 | int arg1 = (int) 0 ; | |
9845 | int arg2 = (int) 0 ; | |
9846 | int arg3 = (int) 0 ; | |
9847 | wxProcessEvent *result; | |
9848 | PyObject * obj0 = 0 ; | |
9849 | PyObject * obj1 = 0 ; | |
9850 | PyObject * obj2 = 0 ; | |
9851 | char *kwnames[] = { | |
9852 | (char *) "id",(char *) "pid",(char *) "exitcode", NULL | |
9853 | }; | |
9854 | ||
9855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ProcessEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9856 | if (obj0) { | |
c370783e | 9857 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
9858 | if (PyErr_Occurred()) SWIG_fail; |
9859 | } | |
9860 | if (obj1) { | |
c370783e | 9861 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
9862 | if (PyErr_Occurred()) SWIG_fail; |
9863 | } | |
9864 | if (obj2) { | |
c370783e | 9865 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9866 | if (PyErr_Occurred()) SWIG_fail; |
9867 | } | |
9868 | { | |
9869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9870 | result = (wxProcessEvent *)new wxProcessEvent(arg1,arg2,arg3); | |
9871 | ||
9872 | wxPyEndAllowThreads(__tstate); | |
9873 | if (PyErr_Occurred()) SWIG_fail; | |
9874 | } | |
9875 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxProcessEvent, 1); | |
9876 | return resultobj; | |
9877 | fail: | |
9878 | return NULL; | |
9879 | } | |
9880 | ||
9881 | ||
c370783e | 9882 | static PyObject *_wrap_ProcessEvent_GetPid(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9883 | PyObject *resultobj; |
9884 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9885 | int result; | |
9886 | PyObject * obj0 = 0 ; | |
9887 | char *kwnames[] = { | |
9888 | (char *) "self", NULL | |
9889 | }; | |
9890 | ||
9891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetPid",kwnames,&obj0)) goto fail; | |
9892 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, | |
9893 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9894 | { | |
9895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9896 | result = (int)(arg1)->GetPid(); | |
9897 | ||
9898 | wxPyEndAllowThreads(__tstate); | |
9899 | if (PyErr_Occurred()) SWIG_fail; | |
9900 | } | |
c370783e | 9901 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
9902 | return resultobj; |
9903 | fail: | |
9904 | return NULL; | |
9905 | } | |
9906 | ||
9907 | ||
c370783e | 9908 | static PyObject *_wrap_ProcessEvent_GetExitCode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9909 | PyObject *resultobj; |
9910 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9911 | int result; | |
9912 | PyObject * obj0 = 0 ; | |
9913 | char *kwnames[] = { | |
9914 | (char *) "self", NULL | |
9915 | }; | |
9916 | ||
9917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetExitCode",kwnames,&obj0)) goto fail; | |
9918 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, | |
9919 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9920 | { | |
9921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9922 | result = (int)(arg1)->GetExitCode(); | |
9923 | ||
9924 | wxPyEndAllowThreads(__tstate); | |
9925 | if (PyErr_Occurred()) SWIG_fail; | |
9926 | } | |
c370783e | 9927 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
9928 | return resultobj; |
9929 | fail: | |
9930 | return NULL; | |
9931 | } | |
9932 | ||
9933 | ||
c370783e | 9934 | static PyObject *_wrap_ProcessEvent_m_pid_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9935 | PyObject *resultobj; |
9936 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9937 | int arg2 ; | |
9938 | PyObject * obj0 = 0 ; | |
9939 | PyObject * obj1 = 0 ; | |
9940 | char *kwnames[] = { | |
9941 | (char *) "self",(char *) "m_pid", NULL | |
9942 | }; | |
9943 | ||
9944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_pid_set",kwnames,&obj0,&obj1)) goto fail; | |
9945 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, | |
9946 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 9947 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
9948 | if (PyErr_Occurred()) SWIG_fail; |
9949 | if (arg1) (arg1)->m_pid = arg2; | |
9950 | ||
9951 | Py_INCREF(Py_None); resultobj = Py_None; | |
9952 | return resultobj; | |
9953 | fail: | |
9954 | return NULL; | |
9955 | } | |
9956 | ||
9957 | ||
c370783e | 9958 | static PyObject *_wrap_ProcessEvent_m_pid_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9959 | PyObject *resultobj; |
9960 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9961 | int result; | |
9962 | PyObject * obj0 = 0 ; | |
9963 | char *kwnames[] = { | |
9964 | (char *) "self", NULL | |
9965 | }; | |
9966 | ||
9967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_pid_get",kwnames,&obj0)) goto fail; | |
9968 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, | |
9969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9970 | result = (int) ((arg1)->m_pid); | |
9971 | ||
c370783e | 9972 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
9973 | return resultobj; |
9974 | fail: | |
9975 | return NULL; | |
9976 | } | |
9977 | ||
9978 | ||
c370783e | 9979 | static PyObject *_wrap_ProcessEvent_m_exitcode_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9980 | PyObject *resultobj; |
9981 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9982 | int arg2 ; | |
9983 | PyObject * obj0 = 0 ; | |
9984 | PyObject * obj1 = 0 ; | |
9985 | char *kwnames[] = { | |
9986 | (char *) "self",(char *) "m_exitcode", NULL | |
9987 | }; | |
9988 | ||
9989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_exitcode_set",kwnames,&obj0,&obj1)) goto fail; | |
9990 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, | |
9991 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 9992 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
9993 | if (PyErr_Occurred()) SWIG_fail; |
9994 | if (arg1) (arg1)->m_exitcode = arg2; | |
9995 | ||
9996 | Py_INCREF(Py_None); resultobj = Py_None; | |
9997 | return resultobj; | |
9998 | fail: | |
9999 | return NULL; | |
10000 | } | |
10001 | ||
10002 | ||
c370783e | 10003 | static PyObject *_wrap_ProcessEvent_m_exitcode_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10004 | PyObject *resultobj; |
10005 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
10006 | int result; | |
10007 | PyObject * obj0 = 0 ; | |
10008 | char *kwnames[] = { | |
10009 | (char *) "self", NULL | |
10010 | }; | |
10011 | ||
10012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_exitcode_get",kwnames,&obj0)) goto fail; | |
10013 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, | |
10014 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10015 | result = (int) ((arg1)->m_exitcode); | |
10016 | ||
c370783e | 10017 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10018 | return resultobj; |
10019 | fail: | |
10020 | return NULL; | |
10021 | } | |
10022 | ||
10023 | ||
c370783e | 10024 | static PyObject * ProcessEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
10025 | PyObject *obj; |
10026 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10027 | SWIG_TypeClientData(SWIGTYPE_p_wxProcessEvent, obj); | |
10028 | Py_INCREF(obj); | |
10029 | return Py_BuildValue((char *)""); | |
10030 | } | |
c370783e | 10031 | static PyObject *_wrap_Execute(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10032 | PyObject *resultobj; |
10033 | wxString *arg1 = 0 ; | |
10034 | int arg2 = (int) wxEXEC_ASYNC ; | |
10035 | wxPyProcess *arg3 = (wxPyProcess *) NULL ; | |
10036 | long result; | |
b411df4a | 10037 | bool temp1 = false ; |
d55e5bfc RD |
10038 | PyObject * obj0 = 0 ; |
10039 | PyObject * obj1 = 0 ; | |
10040 | PyObject * obj2 = 0 ; | |
10041 | char *kwnames[] = { | |
10042 | (char *) "command",(char *) "flags",(char *) "process", NULL | |
10043 | }; | |
10044 | ||
10045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Execute",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10046 | { | |
10047 | arg1 = wxString_in_helper(obj0); | |
10048 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 10049 | temp1 = true; |
d55e5bfc RD |
10050 | } |
10051 | if (obj1) { | |
c370783e | 10052 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
10053 | if (PyErr_Occurred()) SWIG_fail; |
10054 | } | |
10055 | if (obj2) { | |
10056 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyProcess, | |
10057 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10058 | } | |
10059 | { | |
0439c23b | 10060 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
10061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10062 | result = (long)wxExecute((wxString const &)*arg1,arg2,arg3); | |
10063 | ||
10064 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 10065 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 10066 | } |
c370783e | 10067 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
10068 | { |
10069 | if (temp1) | |
10070 | delete arg1; | |
10071 | } | |
10072 | return resultobj; | |
10073 | fail: | |
10074 | { | |
10075 | if (temp1) | |
10076 | delete arg1; | |
10077 | } | |
10078 | return NULL; | |
10079 | } | |
10080 | ||
10081 | ||
03e46024 RD |
10082 | static PyObject *_wrap_Kill(PyObject *, PyObject *args, PyObject *kwargs) { |
10083 | PyObject *resultobj; | |
10084 | long arg1 ; | |
10085 | int arg2 = (int) wxSIGTERM ; | |
10086 | wxKillError *arg3 = (wxKillError *) 0 ; | |
10087 | int arg4 = (int) wxKILL_NOCHILDREN ; | |
10088 | int result; | |
10089 | wxKillError temp3 ; | |
10090 | PyObject * obj0 = 0 ; | |
10091 | PyObject * obj1 = 0 ; | |
10092 | PyObject * obj2 = 0 ; | |
10093 | char *kwnames[] = { | |
10094 | (char *) "pid",(char *) "sig",(char *) "flags", NULL | |
10095 | }; | |
10096 | ||
10097 | { | |
10098 | arg3 = &temp3; | |
10099 | } | |
10100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Kill",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10101 | arg1 = (long)SWIG_As_long(obj0); | |
10102 | if (PyErr_Occurred()) SWIG_fail; | |
10103 | if (obj1) { | |
10104 | arg2 = (int)SWIG_As_int(obj1); | |
10105 | if (PyErr_Occurred()) SWIG_fail; | |
10106 | } | |
10107 | if (obj2) { | |
10108 | arg4 = (int)SWIG_As_int(obj2); | |
10109 | if (PyErr_Occurred()) SWIG_fail; | |
10110 | } | |
10111 | { | |
10112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10113 | result = (int)wxKill(arg1,(wxSignal )arg2,arg3,arg4); | |
10114 | ||
10115 | wxPyEndAllowThreads(__tstate); | |
10116 | if (PyErr_Occurred()) SWIG_fail; | |
10117 | } | |
10118 | resultobj = SWIG_From_int((int)result); | |
10119 | { | |
10120 | PyObject* o; | |
10121 | o = PyInt_FromLong((long) (*arg3)); | |
10122 | resultobj = t_output_helper(resultobj, o); | |
10123 | } | |
10124 | return resultobj; | |
10125 | fail: | |
10126 | return NULL; | |
10127 | } | |
10128 | ||
10129 | ||
c370783e | 10130 | static PyObject *_wrap_new_Joystick(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10131 | PyObject *resultobj; |
10132 | int arg1 = (int) wxJOYSTICK1 ; | |
10133 | wxJoystick *result; | |
10134 | PyObject * obj0 = 0 ; | |
10135 | char *kwnames[] = { | |
10136 | (char *) "joystick", NULL | |
10137 | }; | |
10138 | ||
10139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Joystick",kwnames,&obj0)) goto fail; | |
10140 | if (obj0) { | |
c370783e | 10141 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
10142 | if (PyErr_Occurred()) SWIG_fail; |
10143 | } | |
10144 | { | |
0439c23b | 10145 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
10146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10147 | result = (wxJoystick *)new wxJoystick(arg1); | |
10148 | ||
10149 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 10150 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
10151 | } |
10152 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystick, 1); | |
10153 | return resultobj; | |
10154 | fail: | |
10155 | return NULL; | |
10156 | } | |
10157 | ||
10158 | ||
c370783e | 10159 | static PyObject *_wrap_delete_Joystick(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10160 | PyObject *resultobj; |
10161 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10162 | PyObject * obj0 = 0 ; | |
10163 | char *kwnames[] = { | |
10164 | (char *) "self", NULL | |
10165 | }; | |
10166 | ||
10167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Joystick",kwnames,&obj0)) goto fail; | |
10168 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10169 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10170 | { | |
10171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10172 | delete arg1; | |
10173 | ||
10174 | wxPyEndAllowThreads(__tstate); | |
10175 | if (PyErr_Occurred()) SWIG_fail; | |
10176 | } | |
10177 | Py_INCREF(Py_None); resultobj = Py_None; | |
10178 | return resultobj; | |
10179 | fail: | |
10180 | return NULL; | |
10181 | } | |
10182 | ||
10183 | ||
c370783e | 10184 | static PyObject *_wrap_Joystick_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10185 | PyObject *resultobj; |
10186 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10187 | wxPoint result; | |
10188 | PyObject * obj0 = 0 ; | |
10189 | char *kwnames[] = { | |
10190 | (char *) "self", NULL | |
10191 | }; | |
10192 | ||
10193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPosition",kwnames,&obj0)) goto fail; | |
10194 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10195 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10196 | { | |
10197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10198 | result = (arg1)->GetPosition(); | |
10199 | ||
10200 | wxPyEndAllowThreads(__tstate); | |
10201 | if (PyErr_Occurred()) SWIG_fail; | |
10202 | } | |
10203 | { | |
10204 | wxPoint * resultptr; | |
10205 | resultptr = new wxPoint((wxPoint &) result); | |
10206 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
10207 | } | |
10208 | return resultobj; | |
10209 | fail: | |
10210 | return NULL; | |
10211 | } | |
10212 | ||
10213 | ||
c370783e | 10214 | static PyObject *_wrap_Joystick_GetZPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10215 | PyObject *resultobj; |
10216 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10217 | int result; | |
10218 | PyObject * obj0 = 0 ; | |
10219 | char *kwnames[] = { | |
10220 | (char *) "self", NULL | |
10221 | }; | |
10222 | ||
10223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZPosition",kwnames,&obj0)) goto fail; | |
10224 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10225 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10226 | { | |
10227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10228 | result = (int)(arg1)->GetZPosition(); | |
10229 | ||
10230 | wxPyEndAllowThreads(__tstate); | |
10231 | if (PyErr_Occurred()) SWIG_fail; | |
10232 | } | |
c370783e | 10233 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10234 | return resultobj; |
10235 | fail: | |
10236 | return NULL; | |
10237 | } | |
10238 | ||
10239 | ||
c370783e | 10240 | static PyObject *_wrap_Joystick_GetButtonState(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10241 | PyObject *resultobj; |
10242 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10243 | int result; | |
10244 | PyObject * obj0 = 0 ; | |
10245 | char *kwnames[] = { | |
10246 | (char *) "self", NULL | |
10247 | }; | |
10248 | ||
10249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetButtonState",kwnames,&obj0)) goto fail; | |
10250 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10251 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10252 | { | |
10253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10254 | result = (int)(arg1)->GetButtonState(); | |
10255 | ||
10256 | wxPyEndAllowThreads(__tstate); | |
10257 | if (PyErr_Occurred()) SWIG_fail; | |
10258 | } | |
c370783e | 10259 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10260 | return resultobj; |
10261 | fail: | |
10262 | return NULL; | |
10263 | } | |
10264 | ||
10265 | ||
c370783e | 10266 | static PyObject *_wrap_Joystick_GetPOVPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10267 | PyObject *resultobj; |
10268 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10269 | int result; | |
10270 | PyObject * obj0 = 0 ; | |
10271 | char *kwnames[] = { | |
10272 | (char *) "self", NULL | |
10273 | }; | |
10274 | ||
10275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVPosition",kwnames,&obj0)) goto fail; | |
10276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10278 | { | |
10279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10280 | result = (int)(arg1)->GetPOVPosition(); | |
10281 | ||
10282 | wxPyEndAllowThreads(__tstate); | |
10283 | if (PyErr_Occurred()) SWIG_fail; | |
10284 | } | |
c370783e | 10285 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10286 | return resultobj; |
10287 | fail: | |
10288 | return NULL; | |
10289 | } | |
10290 | ||
10291 | ||
c370783e | 10292 | static PyObject *_wrap_Joystick_GetPOVCTSPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10293 | PyObject *resultobj; |
10294 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10295 | int result; | |
10296 | PyObject * obj0 = 0 ; | |
10297 | char *kwnames[] = { | |
10298 | (char *) "self", NULL | |
10299 | }; | |
10300 | ||
10301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVCTSPosition",kwnames,&obj0)) goto fail; | |
10302 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10303 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10304 | { | |
10305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10306 | result = (int)(arg1)->GetPOVCTSPosition(); | |
10307 | ||
10308 | wxPyEndAllowThreads(__tstate); | |
10309 | if (PyErr_Occurred()) SWIG_fail; | |
10310 | } | |
c370783e | 10311 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10312 | return resultobj; |
10313 | fail: | |
10314 | return NULL; | |
10315 | } | |
10316 | ||
10317 | ||
c370783e | 10318 | static PyObject *_wrap_Joystick_GetRudderPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10319 | PyObject *resultobj; |
10320 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10321 | int result; | |
10322 | PyObject * obj0 = 0 ; | |
10323 | char *kwnames[] = { | |
10324 | (char *) "self", NULL | |
10325 | }; | |
10326 | ||
10327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderPosition",kwnames,&obj0)) goto fail; | |
10328 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10329 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10330 | { | |
10331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10332 | result = (int)(arg1)->GetRudderPosition(); | |
10333 | ||
10334 | wxPyEndAllowThreads(__tstate); | |
10335 | if (PyErr_Occurred()) SWIG_fail; | |
10336 | } | |
c370783e | 10337 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10338 | return resultobj; |
10339 | fail: | |
10340 | return NULL; | |
10341 | } | |
10342 | ||
10343 | ||
c370783e | 10344 | static PyObject *_wrap_Joystick_GetUPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10345 | PyObject *resultobj; |
10346 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10347 | int result; | |
10348 | PyObject * obj0 = 0 ; | |
10349 | char *kwnames[] = { | |
10350 | (char *) "self", NULL | |
10351 | }; | |
10352 | ||
10353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUPosition",kwnames,&obj0)) goto fail; | |
10354 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10355 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10356 | { | |
10357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10358 | result = (int)(arg1)->GetUPosition(); | |
10359 | ||
10360 | wxPyEndAllowThreads(__tstate); | |
10361 | if (PyErr_Occurred()) SWIG_fail; | |
10362 | } | |
c370783e | 10363 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10364 | return resultobj; |
10365 | fail: | |
10366 | return NULL; | |
10367 | } | |
10368 | ||
10369 | ||
c370783e | 10370 | static PyObject *_wrap_Joystick_GetVPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10371 | PyObject *resultobj; |
10372 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10373 | int result; | |
10374 | PyObject * obj0 = 0 ; | |
10375 | char *kwnames[] = { | |
10376 | (char *) "self", NULL | |
10377 | }; | |
10378 | ||
10379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVPosition",kwnames,&obj0)) goto fail; | |
10380 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10381 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10382 | { | |
10383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10384 | result = (int)(arg1)->GetVPosition(); | |
10385 | ||
10386 | wxPyEndAllowThreads(__tstate); | |
10387 | if (PyErr_Occurred()) SWIG_fail; | |
10388 | } | |
c370783e | 10389 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10390 | return resultobj; |
10391 | fail: | |
10392 | return NULL; | |
10393 | } | |
10394 | ||
10395 | ||
c370783e | 10396 | static PyObject *_wrap_Joystick_GetMovementThreshold(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10397 | PyObject *resultobj; |
10398 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10399 | int result; | |
10400 | PyObject * obj0 = 0 ; | |
10401 | char *kwnames[] = { | |
10402 | (char *) "self", NULL | |
10403 | }; | |
10404 | ||
10405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMovementThreshold",kwnames,&obj0)) goto fail; | |
10406 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10407 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10408 | { | |
10409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10410 | result = (int)(arg1)->GetMovementThreshold(); | |
10411 | ||
10412 | wxPyEndAllowThreads(__tstate); | |
10413 | if (PyErr_Occurred()) SWIG_fail; | |
10414 | } | |
c370783e | 10415 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10416 | return resultobj; |
10417 | fail: | |
10418 | return NULL; | |
10419 | } | |
10420 | ||
10421 | ||
c370783e | 10422 | static PyObject *_wrap_Joystick_SetMovementThreshold(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10423 | PyObject *resultobj; |
10424 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10425 | int arg2 ; | |
10426 | PyObject * obj0 = 0 ; | |
10427 | PyObject * obj1 = 0 ; | |
10428 | char *kwnames[] = { | |
10429 | (char *) "self",(char *) "threshold", NULL | |
10430 | }; | |
10431 | ||
10432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Joystick_SetMovementThreshold",kwnames,&obj0,&obj1)) goto fail; | |
10433 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10434 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 10435 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
10436 | if (PyErr_Occurred()) SWIG_fail; |
10437 | { | |
10438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10439 | (arg1)->SetMovementThreshold(arg2); | |
10440 | ||
10441 | wxPyEndAllowThreads(__tstate); | |
10442 | if (PyErr_Occurred()) SWIG_fail; | |
10443 | } | |
10444 | Py_INCREF(Py_None); resultobj = Py_None; | |
10445 | return resultobj; | |
10446 | fail: | |
10447 | return NULL; | |
10448 | } | |
10449 | ||
10450 | ||
c370783e | 10451 | static PyObject *_wrap_Joystick_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10452 | PyObject *resultobj; |
10453 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10454 | bool result; | |
10455 | PyObject * obj0 = 0 ; | |
10456 | char *kwnames[] = { | |
10457 | (char *) "self", NULL | |
10458 | }; | |
10459 | ||
10460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_IsOk",kwnames,&obj0)) goto fail; | |
10461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10463 | { | |
10464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10465 | result = (bool)(arg1)->IsOk(); | |
10466 | ||
10467 | wxPyEndAllowThreads(__tstate); | |
10468 | if (PyErr_Occurred()) SWIG_fail; | |
10469 | } | |
10470 | { | |
10471 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10472 | } | |
10473 | return resultobj; | |
10474 | fail: | |
10475 | return NULL; | |
10476 | } | |
10477 | ||
10478 | ||
c370783e | 10479 | static PyObject *_wrap_Joystick_GetNumberJoysticks(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10480 | PyObject *resultobj; |
10481 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10482 | int result; | |
10483 | PyObject * obj0 = 0 ; | |
10484 | char *kwnames[] = { | |
10485 | (char *) "self", NULL | |
10486 | }; | |
10487 | ||
10488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberJoysticks",kwnames,&obj0)) goto fail; | |
10489 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10490 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10491 | { | |
10492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10493 | result = (int)(arg1)->GetNumberJoysticks(); | |
10494 | ||
10495 | wxPyEndAllowThreads(__tstate); | |
10496 | if (PyErr_Occurred()) SWIG_fail; | |
10497 | } | |
c370783e | 10498 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10499 | return resultobj; |
10500 | fail: | |
10501 | return NULL; | |
10502 | } | |
10503 | ||
10504 | ||
c370783e | 10505 | static PyObject *_wrap_Joystick_GetManufacturerId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10506 | PyObject *resultobj; |
10507 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10508 | int result; | |
10509 | PyObject * obj0 = 0 ; | |
10510 | char *kwnames[] = { | |
10511 | (char *) "self", NULL | |
10512 | }; | |
10513 | ||
10514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetManufacturerId",kwnames,&obj0)) goto fail; | |
10515 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10516 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10517 | { | |
10518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10519 | result = (int)(arg1)->GetManufacturerId(); | |
10520 | ||
10521 | wxPyEndAllowThreads(__tstate); | |
10522 | if (PyErr_Occurred()) SWIG_fail; | |
10523 | } | |
c370783e | 10524 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10525 | return resultobj; |
10526 | fail: | |
10527 | return NULL; | |
10528 | } | |
10529 | ||
10530 | ||
c370783e | 10531 | static PyObject *_wrap_Joystick_GetProductId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10532 | PyObject *resultobj; |
10533 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10534 | int result; | |
10535 | PyObject * obj0 = 0 ; | |
10536 | char *kwnames[] = { | |
10537 | (char *) "self", NULL | |
10538 | }; | |
10539 | ||
10540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductId",kwnames,&obj0)) goto fail; | |
10541 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10543 | { | |
10544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10545 | result = (int)(arg1)->GetProductId(); | |
10546 | ||
10547 | wxPyEndAllowThreads(__tstate); | |
10548 | if (PyErr_Occurred()) SWIG_fail; | |
10549 | } | |
c370783e | 10550 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10551 | return resultobj; |
10552 | fail: | |
10553 | return NULL; | |
10554 | } | |
10555 | ||
10556 | ||
c370783e | 10557 | static PyObject *_wrap_Joystick_GetProductName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10558 | PyObject *resultobj; |
10559 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10560 | wxString result; | |
10561 | PyObject * obj0 = 0 ; | |
10562 | char *kwnames[] = { | |
10563 | (char *) "self", NULL | |
10564 | }; | |
10565 | ||
10566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductName",kwnames,&obj0)) goto fail; | |
10567 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10568 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10569 | { | |
10570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10571 | result = (arg1)->GetProductName(); | |
10572 | ||
10573 | wxPyEndAllowThreads(__tstate); | |
10574 | if (PyErr_Occurred()) SWIG_fail; | |
10575 | } | |
10576 | { | |
10577 | #if wxUSE_UNICODE | |
10578 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10579 | #else | |
10580 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10581 | #endif | |
10582 | } | |
10583 | return resultobj; | |
10584 | fail: | |
10585 | return NULL; | |
10586 | } | |
10587 | ||
10588 | ||
c370783e | 10589 | static PyObject *_wrap_Joystick_GetXMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10590 | PyObject *resultobj; |
10591 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10592 | int result; | |
10593 | PyObject * obj0 = 0 ; | |
10594 | char *kwnames[] = { | |
10595 | (char *) "self", NULL | |
10596 | }; | |
10597 | ||
10598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMin",kwnames,&obj0)) goto fail; | |
10599 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10600 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10601 | { | |
10602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10603 | result = (int)(arg1)->GetXMin(); | |
10604 | ||
10605 | wxPyEndAllowThreads(__tstate); | |
10606 | if (PyErr_Occurred()) SWIG_fail; | |
10607 | } | |
c370783e | 10608 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10609 | return resultobj; |
10610 | fail: | |
10611 | return NULL; | |
10612 | } | |
10613 | ||
10614 | ||
c370783e | 10615 | static PyObject *_wrap_Joystick_GetYMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10616 | PyObject *resultobj; |
10617 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10618 | int result; | |
10619 | PyObject * obj0 = 0 ; | |
10620 | char *kwnames[] = { | |
10621 | (char *) "self", NULL | |
10622 | }; | |
10623 | ||
10624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMin",kwnames,&obj0)) goto fail; | |
10625 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10627 | { | |
10628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10629 | result = (int)(arg1)->GetYMin(); | |
10630 | ||
10631 | wxPyEndAllowThreads(__tstate); | |
10632 | if (PyErr_Occurred()) SWIG_fail; | |
10633 | } | |
c370783e | 10634 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10635 | return resultobj; |
10636 | fail: | |
10637 | return NULL; | |
10638 | } | |
10639 | ||
10640 | ||
c370783e | 10641 | static PyObject *_wrap_Joystick_GetZMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10642 | PyObject *resultobj; |
10643 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10644 | int result; | |
10645 | PyObject * obj0 = 0 ; | |
10646 | char *kwnames[] = { | |
10647 | (char *) "self", NULL | |
10648 | }; | |
10649 | ||
10650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMin",kwnames,&obj0)) goto fail; | |
10651 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10652 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10653 | { | |
10654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10655 | result = (int)(arg1)->GetZMin(); | |
10656 | ||
10657 | wxPyEndAllowThreads(__tstate); | |
10658 | if (PyErr_Occurred()) SWIG_fail; | |
10659 | } | |
c370783e | 10660 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10661 | return resultobj; |
10662 | fail: | |
10663 | return NULL; | |
10664 | } | |
10665 | ||
10666 | ||
c370783e | 10667 | static PyObject *_wrap_Joystick_GetXMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10668 | PyObject *resultobj; |
10669 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10670 | int result; | |
10671 | PyObject * obj0 = 0 ; | |
10672 | char *kwnames[] = { | |
10673 | (char *) "self", NULL | |
10674 | }; | |
10675 | ||
10676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMax",kwnames,&obj0)) goto fail; | |
10677 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10679 | { | |
10680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10681 | result = (int)(arg1)->GetXMax(); | |
10682 | ||
10683 | wxPyEndAllowThreads(__tstate); | |
10684 | if (PyErr_Occurred()) SWIG_fail; | |
10685 | } | |
c370783e | 10686 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10687 | return resultobj; |
10688 | fail: | |
10689 | return NULL; | |
10690 | } | |
10691 | ||
10692 | ||
c370783e | 10693 | static PyObject *_wrap_Joystick_GetYMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10694 | PyObject *resultobj; |
10695 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10696 | int result; | |
10697 | PyObject * obj0 = 0 ; | |
10698 | char *kwnames[] = { | |
10699 | (char *) "self", NULL | |
10700 | }; | |
10701 | ||
10702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMax",kwnames,&obj0)) goto fail; | |
10703 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10704 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10705 | { | |
10706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10707 | result = (int)(arg1)->GetYMax(); | |
10708 | ||
10709 | wxPyEndAllowThreads(__tstate); | |
10710 | if (PyErr_Occurred()) SWIG_fail; | |
10711 | } | |
c370783e | 10712 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10713 | return resultobj; |
10714 | fail: | |
10715 | return NULL; | |
10716 | } | |
10717 | ||
10718 | ||
c370783e | 10719 | static PyObject *_wrap_Joystick_GetZMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10720 | PyObject *resultobj; |
10721 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10722 | int result; | |
10723 | PyObject * obj0 = 0 ; | |
10724 | char *kwnames[] = { | |
10725 | (char *) "self", NULL | |
10726 | }; | |
10727 | ||
10728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMax",kwnames,&obj0)) goto fail; | |
10729 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10730 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10731 | { | |
10732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10733 | result = (int)(arg1)->GetZMax(); | |
10734 | ||
10735 | wxPyEndAllowThreads(__tstate); | |
10736 | if (PyErr_Occurred()) SWIG_fail; | |
10737 | } | |
c370783e | 10738 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10739 | return resultobj; |
10740 | fail: | |
10741 | return NULL; | |
10742 | } | |
10743 | ||
10744 | ||
c370783e | 10745 | static PyObject *_wrap_Joystick_GetNumberButtons(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10746 | PyObject *resultobj; |
10747 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10748 | int result; | |
10749 | PyObject * obj0 = 0 ; | |
10750 | char *kwnames[] = { | |
10751 | (char *) "self", NULL | |
10752 | }; | |
10753 | ||
10754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberButtons",kwnames,&obj0)) goto fail; | |
10755 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10756 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10757 | { | |
10758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10759 | result = (int)(arg1)->GetNumberButtons(); | |
10760 | ||
10761 | wxPyEndAllowThreads(__tstate); | |
10762 | if (PyErr_Occurred()) SWIG_fail; | |
10763 | } | |
c370783e | 10764 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10765 | return resultobj; |
10766 | fail: | |
10767 | return NULL; | |
10768 | } | |
10769 | ||
10770 | ||
c370783e | 10771 | static PyObject *_wrap_Joystick_GetNumberAxes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10772 | PyObject *resultobj; |
10773 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10774 | int result; | |
10775 | PyObject * obj0 = 0 ; | |
10776 | char *kwnames[] = { | |
10777 | (char *) "self", NULL | |
10778 | }; | |
10779 | ||
10780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberAxes",kwnames,&obj0)) goto fail; | |
10781 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10782 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10783 | { | |
10784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10785 | result = (int)(arg1)->GetNumberAxes(); | |
10786 | ||
10787 | wxPyEndAllowThreads(__tstate); | |
10788 | if (PyErr_Occurred()) SWIG_fail; | |
10789 | } | |
c370783e | 10790 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10791 | return resultobj; |
10792 | fail: | |
10793 | return NULL; | |
10794 | } | |
10795 | ||
10796 | ||
c370783e | 10797 | static PyObject *_wrap_Joystick_GetMaxButtons(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10798 | PyObject *resultobj; |
10799 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10800 | int result; | |
10801 | PyObject * obj0 = 0 ; | |
10802 | char *kwnames[] = { | |
10803 | (char *) "self", NULL | |
10804 | }; | |
10805 | ||
10806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxButtons",kwnames,&obj0)) goto fail; | |
10807 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10808 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10809 | { | |
10810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10811 | result = (int)(arg1)->GetMaxButtons(); | |
10812 | ||
10813 | wxPyEndAllowThreads(__tstate); | |
10814 | if (PyErr_Occurred()) SWIG_fail; | |
10815 | } | |
c370783e | 10816 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10817 | return resultobj; |
10818 | fail: | |
10819 | return NULL; | |
10820 | } | |
10821 | ||
10822 | ||
c370783e | 10823 | static PyObject *_wrap_Joystick_GetMaxAxes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10824 | PyObject *resultobj; |
10825 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10826 | int result; | |
10827 | PyObject * obj0 = 0 ; | |
10828 | char *kwnames[] = { | |
10829 | (char *) "self", NULL | |
10830 | }; | |
10831 | ||
10832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxAxes",kwnames,&obj0)) goto fail; | |
10833 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10834 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10835 | { | |
10836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10837 | result = (int)(arg1)->GetMaxAxes(); | |
10838 | ||
10839 | wxPyEndAllowThreads(__tstate); | |
10840 | if (PyErr_Occurred()) SWIG_fail; | |
10841 | } | |
c370783e | 10842 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10843 | return resultobj; |
10844 | fail: | |
10845 | return NULL; | |
10846 | } | |
10847 | ||
10848 | ||
c370783e | 10849 | static PyObject *_wrap_Joystick_GetPollingMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10850 | PyObject *resultobj; |
10851 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10852 | int result; | |
10853 | PyObject * obj0 = 0 ; | |
10854 | char *kwnames[] = { | |
10855 | (char *) "self", NULL | |
10856 | }; | |
10857 | ||
10858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMin",kwnames,&obj0)) goto fail; | |
10859 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10860 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10861 | { | |
10862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10863 | result = (int)(arg1)->GetPollingMin(); | |
10864 | ||
10865 | wxPyEndAllowThreads(__tstate); | |
10866 | if (PyErr_Occurred()) SWIG_fail; | |
10867 | } | |
c370783e | 10868 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10869 | return resultobj; |
10870 | fail: | |
10871 | return NULL; | |
10872 | } | |
10873 | ||
10874 | ||
c370783e | 10875 | static PyObject *_wrap_Joystick_GetPollingMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10876 | PyObject *resultobj; |
10877 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10878 | int result; | |
10879 | PyObject * obj0 = 0 ; | |
10880 | char *kwnames[] = { | |
10881 | (char *) "self", NULL | |
10882 | }; | |
10883 | ||
10884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMax",kwnames,&obj0)) goto fail; | |
10885 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10886 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10887 | { | |
10888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10889 | result = (int)(arg1)->GetPollingMax(); | |
10890 | ||
10891 | wxPyEndAllowThreads(__tstate); | |
10892 | if (PyErr_Occurred()) SWIG_fail; | |
10893 | } | |
c370783e | 10894 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10895 | return resultobj; |
10896 | fail: | |
10897 | return NULL; | |
10898 | } | |
10899 | ||
10900 | ||
c370783e | 10901 | static PyObject *_wrap_Joystick_GetRudderMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10902 | PyObject *resultobj; |
10903 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10904 | int result; | |
10905 | PyObject * obj0 = 0 ; | |
10906 | char *kwnames[] = { | |
10907 | (char *) "self", NULL | |
10908 | }; | |
10909 | ||
10910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMin",kwnames,&obj0)) goto fail; | |
10911 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10912 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10913 | { | |
10914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10915 | result = (int)(arg1)->GetRudderMin(); | |
10916 | ||
10917 | wxPyEndAllowThreads(__tstate); | |
10918 | if (PyErr_Occurred()) SWIG_fail; | |
10919 | } | |
c370783e | 10920 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10921 | return resultobj; |
10922 | fail: | |
10923 | return NULL; | |
10924 | } | |
10925 | ||
10926 | ||
c370783e | 10927 | static PyObject *_wrap_Joystick_GetRudderMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10928 | PyObject *resultobj; |
10929 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10930 | int result; | |
10931 | PyObject * obj0 = 0 ; | |
10932 | char *kwnames[] = { | |
10933 | (char *) "self", NULL | |
10934 | }; | |
10935 | ||
10936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMax",kwnames,&obj0)) goto fail; | |
10937 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10938 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10939 | { | |
10940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10941 | result = (int)(arg1)->GetRudderMax(); | |
10942 | ||
10943 | wxPyEndAllowThreads(__tstate); | |
10944 | if (PyErr_Occurred()) SWIG_fail; | |
10945 | } | |
c370783e | 10946 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10947 | return resultobj; |
10948 | fail: | |
10949 | return NULL; | |
10950 | } | |
10951 | ||
10952 | ||
c370783e | 10953 | static PyObject *_wrap_Joystick_GetUMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10954 | PyObject *resultobj; |
10955 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10956 | int result; | |
10957 | PyObject * obj0 = 0 ; | |
10958 | char *kwnames[] = { | |
10959 | (char *) "self", NULL | |
10960 | }; | |
10961 | ||
10962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMin",kwnames,&obj0)) goto fail; | |
10963 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10964 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10965 | { | |
10966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10967 | result = (int)(arg1)->GetUMin(); | |
10968 | ||
10969 | wxPyEndAllowThreads(__tstate); | |
10970 | if (PyErr_Occurred()) SWIG_fail; | |
10971 | } | |
c370783e | 10972 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10973 | return resultobj; |
10974 | fail: | |
10975 | return NULL; | |
10976 | } | |
10977 | ||
10978 | ||
c370783e | 10979 | static PyObject *_wrap_Joystick_GetUMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10980 | PyObject *resultobj; |
10981 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10982 | int result; | |
10983 | PyObject * obj0 = 0 ; | |
10984 | char *kwnames[] = { | |
10985 | (char *) "self", NULL | |
10986 | }; | |
10987 | ||
10988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMax",kwnames,&obj0)) goto fail; | |
10989 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10990 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10991 | { | |
10992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10993 | result = (int)(arg1)->GetUMax(); | |
10994 | ||
10995 | wxPyEndAllowThreads(__tstate); | |
10996 | if (PyErr_Occurred()) SWIG_fail; | |
10997 | } | |
c370783e | 10998 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10999 | return resultobj; |
11000 | fail: | |
11001 | return NULL; | |
11002 | } | |
11003 | ||
11004 | ||
c370783e | 11005 | static PyObject *_wrap_Joystick_GetVMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11006 | PyObject *resultobj; |
11007 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11008 | int result; | |
11009 | PyObject * obj0 = 0 ; | |
11010 | char *kwnames[] = { | |
11011 | (char *) "self", NULL | |
11012 | }; | |
11013 | ||
11014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMin",kwnames,&obj0)) goto fail; | |
11015 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
11016 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11017 | { | |
11018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11019 | result = (int)(arg1)->GetVMin(); | |
11020 | ||
11021 | wxPyEndAllowThreads(__tstate); | |
11022 | if (PyErr_Occurred()) SWIG_fail; | |
11023 | } | |
c370783e | 11024 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
11025 | return resultobj; |
11026 | fail: | |
11027 | return NULL; | |
11028 | } | |
11029 | ||
11030 | ||
c370783e | 11031 | static PyObject *_wrap_Joystick_GetVMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11032 | PyObject *resultobj; |
11033 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11034 | int result; | |
11035 | PyObject * obj0 = 0 ; | |
11036 | char *kwnames[] = { | |
11037 | (char *) "self", NULL | |
11038 | }; | |
11039 | ||
11040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMax",kwnames,&obj0)) goto fail; | |
11041 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
11042 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11043 | { | |
11044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11045 | result = (int)(arg1)->GetVMax(); | |
11046 | ||
11047 | wxPyEndAllowThreads(__tstate); | |
11048 | if (PyErr_Occurred()) SWIG_fail; | |
11049 | } | |
c370783e | 11050 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
11051 | return resultobj; |
11052 | fail: | |
11053 | return NULL; | |
11054 | } | |
11055 | ||
11056 | ||
c370783e | 11057 | static PyObject *_wrap_Joystick_HasRudder(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11058 | PyObject *resultobj; |
11059 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11060 | bool result; | |
11061 | PyObject * obj0 = 0 ; | |
11062 | char *kwnames[] = { | |
11063 | (char *) "self", NULL | |
11064 | }; | |
11065 | ||
11066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasRudder",kwnames,&obj0)) goto fail; | |
11067 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
11068 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11069 | { | |
11070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11071 | result = (bool)(arg1)->HasRudder(); | |
11072 | ||
11073 | wxPyEndAllowThreads(__tstate); | |
11074 | if (PyErr_Occurred()) SWIG_fail; | |
11075 | } | |
11076 | { | |
11077 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11078 | } | |
11079 | return resultobj; | |
11080 | fail: | |
11081 | return NULL; | |
11082 | } | |
11083 | ||
11084 | ||
c370783e | 11085 | static PyObject *_wrap_Joystick_HasZ(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11086 | PyObject *resultobj; |
11087 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11088 | bool result; | |
11089 | PyObject * obj0 = 0 ; | |
11090 | char *kwnames[] = { | |
11091 | (char *) "self", NULL | |
11092 | }; | |
11093 | ||
11094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasZ",kwnames,&obj0)) goto fail; | |
11095 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
11096 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11097 | { | |
11098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11099 | result = (bool)(arg1)->HasZ(); | |
11100 | ||
11101 | wxPyEndAllowThreads(__tstate); | |
11102 | if (PyErr_Occurred()) SWIG_fail; | |
11103 | } | |
11104 | { | |
11105 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11106 | } | |
11107 | return resultobj; | |
11108 | fail: | |
11109 | return NULL; | |
11110 | } | |
11111 | ||
11112 | ||
c370783e | 11113 | static PyObject *_wrap_Joystick_HasU(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11114 | PyObject *resultobj; |
11115 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11116 | bool result; | |
11117 | PyObject * obj0 = 0 ; | |
11118 | char *kwnames[] = { | |
11119 | (char *) "self", NULL | |
11120 | }; | |
11121 | ||
11122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasU",kwnames,&obj0)) goto fail; | |
11123 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
11124 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11125 | { | |
11126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11127 | result = (bool)(arg1)->HasU(); | |
11128 | ||
11129 | wxPyEndAllowThreads(__tstate); | |
11130 | if (PyErr_Occurred()) SWIG_fail; | |
11131 | } | |
11132 | { | |
11133 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11134 | } | |
11135 | return resultobj; | |
11136 | fail: | |
11137 | return NULL; | |
11138 | } | |
11139 | ||
11140 | ||
c370783e | 11141 | static PyObject *_wrap_Joystick_HasV(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11142 | PyObject *resultobj; |
11143 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11144 | bool result; | |
11145 | PyObject * obj0 = 0 ; | |
11146 | char *kwnames[] = { | |
11147 | (char *) "self", NULL | |
11148 | }; | |
11149 | ||
11150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasV",kwnames,&obj0)) goto fail; | |
11151 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
11152 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11153 | { | |
11154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11155 | result = (bool)(arg1)->HasV(); | |
11156 | ||
11157 | wxPyEndAllowThreads(__tstate); | |
11158 | if (PyErr_Occurred()) SWIG_fail; | |
11159 | } | |
11160 | { | |
11161 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11162 | } | |
11163 | return resultobj; | |
11164 | fail: | |
11165 | return NULL; | |
11166 | } | |
11167 | ||
11168 | ||
c370783e | 11169 | static PyObject *_wrap_Joystick_HasPOV(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11170 | PyObject *resultobj; |
11171 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11172 | bool result; | |
11173 | PyObject * obj0 = 0 ; | |
11174 | char *kwnames[] = { | |
11175 | (char *) "self", NULL | |
11176 | }; | |
11177 | ||
11178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV",kwnames,&obj0)) goto fail; | |
11179 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
11180 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11181 | { | |
11182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11183 | result = (bool)(arg1)->HasPOV(); | |
11184 | ||
11185 | wxPyEndAllowThreads(__tstate); | |
11186 | if (PyErr_Occurred()) SWIG_fail; | |
11187 | } | |
11188 | { | |
11189 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11190 | } | |
11191 | return resultobj; | |
11192 | fail: | |
11193 | return NULL; | |
11194 | } | |
11195 | ||
11196 | ||
c370783e | 11197 | static PyObject *_wrap_Joystick_HasPOV4Dir(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11198 | PyObject *resultobj; |
11199 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11200 | bool result; | |
11201 | PyObject * obj0 = 0 ; | |
11202 | char *kwnames[] = { | |
11203 | (char *) "self", NULL | |
11204 | }; | |
11205 | ||
11206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV4Dir",kwnames,&obj0)) goto fail; | |
11207 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
11208 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11209 | { | |
11210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11211 | result = (bool)(arg1)->HasPOV4Dir(); | |
11212 | ||
11213 | wxPyEndAllowThreads(__tstate); | |
11214 | if (PyErr_Occurred()) SWIG_fail; | |
11215 | } | |
11216 | { | |
11217 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11218 | } | |
11219 | return resultobj; | |
11220 | fail: | |
11221 | return NULL; | |
11222 | } | |
11223 | ||
11224 | ||
c370783e | 11225 | static PyObject *_wrap_Joystick_HasPOVCTS(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11226 | PyObject *resultobj; |
11227 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11228 | bool result; | |
11229 | PyObject * obj0 = 0 ; | |
11230 | char *kwnames[] = { | |
11231 | (char *) "self", NULL | |
11232 | }; | |
11233 | ||
11234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOVCTS",kwnames,&obj0)) goto fail; | |
11235 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
11236 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11237 | { | |
11238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11239 | result = (bool)(arg1)->HasPOVCTS(); | |
11240 | ||
11241 | wxPyEndAllowThreads(__tstate); | |
11242 | if (PyErr_Occurred()) SWIG_fail; | |
11243 | } | |
11244 | { | |
11245 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11246 | } | |
11247 | return resultobj; | |
11248 | fail: | |
11249 | return NULL; | |
11250 | } | |
11251 | ||
11252 | ||
c370783e | 11253 | static PyObject *_wrap_Joystick_SetCapture(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11254 | PyObject *resultobj; |
11255 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11256 | wxWindow *arg2 = (wxWindow *) 0 ; | |
11257 | int arg3 = (int) 0 ; | |
11258 | bool result; | |
11259 | PyObject * obj0 = 0 ; | |
11260 | PyObject * obj1 = 0 ; | |
11261 | PyObject * obj2 = 0 ; | |
11262 | char *kwnames[] = { | |
11263 | (char *) "self",(char *) "win",(char *) "pollingFreq", NULL | |
11264 | }; | |
11265 | ||
11266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Joystick_SetCapture",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
11268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11269 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
11270 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11271 | if (obj2) { | |
c370783e | 11272 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
11273 | if (PyErr_Occurred()) SWIG_fail; |
11274 | } | |
11275 | { | |
11276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11277 | result = (bool)(arg1)->SetCapture(arg2,arg3); | |
11278 | ||
11279 | wxPyEndAllowThreads(__tstate); | |
11280 | if (PyErr_Occurred()) SWIG_fail; | |
11281 | } | |
11282 | { | |
11283 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11284 | } | |
11285 | return resultobj; | |
11286 | fail: | |
11287 | return NULL; | |
11288 | } | |
11289 | ||
11290 | ||
c370783e | 11291 | static PyObject *_wrap_Joystick_ReleaseCapture(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11292 | PyObject *resultobj; |
11293 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11294 | bool result; | |
11295 | PyObject * obj0 = 0 ; | |
11296 | char *kwnames[] = { | |
11297 | (char *) "self", NULL | |
11298 | }; | |
11299 | ||
11300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_ReleaseCapture",kwnames,&obj0)) goto fail; | |
11301 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
11302 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11303 | { | |
11304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11305 | result = (bool)(arg1)->ReleaseCapture(); | |
11306 | ||
11307 | wxPyEndAllowThreads(__tstate); | |
11308 | if (PyErr_Occurred()) SWIG_fail; | |
11309 | } | |
11310 | { | |
11311 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11312 | } | |
11313 | return resultobj; | |
11314 | fail: | |
11315 | return NULL; | |
11316 | } | |
11317 | ||
11318 | ||
c370783e | 11319 | static PyObject * Joystick_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
11320 | PyObject *obj; |
11321 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11322 | SWIG_TypeClientData(SWIGTYPE_p_wxJoystick, obj); | |
11323 | Py_INCREF(obj); | |
11324 | return Py_BuildValue((char *)""); | |
11325 | } | |
c370783e | 11326 | static PyObject *_wrap_JoystickEvent_m_pos_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11327 | PyObject *resultobj; |
11328 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11329 | wxPoint *arg2 = (wxPoint *) 0 ; | |
11330 | PyObject * obj0 = 0 ; | |
11331 | PyObject * obj1 = 0 ; | |
11332 | char *kwnames[] = { | |
11333 | (char *) "self",(char *) "m_pos", NULL | |
11334 | }; | |
11335 | ||
11336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail; | |
11337 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11338 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11339 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint, | |
11340 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11341 | if (arg1) (arg1)->m_pos = *arg2; | |
11342 | ||
11343 | Py_INCREF(Py_None); resultobj = Py_None; | |
11344 | return resultobj; | |
11345 | fail: | |
11346 | return NULL; | |
11347 | } | |
11348 | ||
11349 | ||
c370783e | 11350 | static PyObject *_wrap_JoystickEvent_m_pos_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11351 | PyObject *resultobj; |
11352 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11353 | wxPoint *result; | |
11354 | PyObject * obj0 = 0 ; | |
11355 | char *kwnames[] = { | |
11356 | (char *) "self", NULL | |
11357 | }; | |
11358 | ||
11359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_pos_get",kwnames,&obj0)) goto fail; | |
11360 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11361 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11362 | result = (wxPoint *)& ((arg1)->m_pos); | |
11363 | ||
11364 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); | |
11365 | return resultobj; | |
11366 | fail: | |
11367 | return NULL; | |
11368 | } | |
11369 | ||
11370 | ||
c370783e | 11371 | static PyObject *_wrap_JoystickEvent_m_zPosition_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11372 | PyObject *resultobj; |
11373 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11374 | int arg2 ; | |
11375 | PyObject * obj0 = 0 ; | |
11376 | PyObject * obj1 = 0 ; | |
11377 | char *kwnames[] = { | |
11378 | (char *) "self",(char *) "m_zPosition", NULL | |
11379 | }; | |
11380 | ||
11381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_zPosition_set",kwnames,&obj0,&obj1)) goto fail; | |
11382 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 11384 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11385 | if (PyErr_Occurred()) SWIG_fail; |
11386 | if (arg1) (arg1)->m_zPosition = arg2; | |
11387 | ||
11388 | Py_INCREF(Py_None); resultobj = Py_None; | |
11389 | return resultobj; | |
11390 | fail: | |
11391 | return NULL; | |
11392 | } | |
11393 | ||
11394 | ||
c370783e | 11395 | static PyObject *_wrap_JoystickEvent_m_zPosition_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11396 | PyObject *resultobj; |
11397 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11398 | int result; | |
11399 | PyObject * obj0 = 0 ; | |
11400 | char *kwnames[] = { | |
11401 | (char *) "self", NULL | |
11402 | }; | |
11403 | ||
11404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_zPosition_get",kwnames,&obj0)) goto fail; | |
11405 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11406 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11407 | result = (int) ((arg1)->m_zPosition); | |
11408 | ||
c370783e | 11409 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
11410 | return resultobj; |
11411 | fail: | |
11412 | return NULL; | |
11413 | } | |
11414 | ||
11415 | ||
c370783e | 11416 | static PyObject *_wrap_JoystickEvent_m_buttonChange_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11417 | PyObject *resultobj; |
11418 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11419 | int arg2 ; | |
11420 | PyObject * obj0 = 0 ; | |
11421 | PyObject * obj1 = 0 ; | |
11422 | char *kwnames[] = { | |
11423 | (char *) "self",(char *) "m_buttonChange", NULL | |
11424 | }; | |
11425 | ||
11426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonChange_set",kwnames,&obj0,&obj1)) goto fail; | |
11427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 11429 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11430 | if (PyErr_Occurred()) SWIG_fail; |
11431 | if (arg1) (arg1)->m_buttonChange = arg2; | |
11432 | ||
11433 | Py_INCREF(Py_None); resultobj = Py_None; | |
11434 | return resultobj; | |
11435 | fail: | |
11436 | return NULL; | |
11437 | } | |
11438 | ||
11439 | ||
c370783e | 11440 | static PyObject *_wrap_JoystickEvent_m_buttonChange_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11441 | PyObject *resultobj; |
11442 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11443 | int result; | |
11444 | PyObject * obj0 = 0 ; | |
11445 | char *kwnames[] = { | |
11446 | (char *) "self", NULL | |
11447 | }; | |
11448 | ||
11449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonChange_get",kwnames,&obj0)) goto fail; | |
11450 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11452 | result = (int) ((arg1)->m_buttonChange); | |
11453 | ||
c370783e | 11454 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
11455 | return resultobj; |
11456 | fail: | |
11457 | return NULL; | |
11458 | } | |
11459 | ||
11460 | ||
c370783e | 11461 | static PyObject *_wrap_JoystickEvent_m_buttonState_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11462 | PyObject *resultobj; |
11463 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11464 | int arg2 ; | |
11465 | PyObject * obj0 = 0 ; | |
11466 | PyObject * obj1 = 0 ; | |
11467 | char *kwnames[] = { | |
11468 | (char *) "self",(char *) "m_buttonState", NULL | |
11469 | }; | |
11470 | ||
11471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonState_set",kwnames,&obj0,&obj1)) goto fail; | |
11472 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 11474 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11475 | if (PyErr_Occurred()) SWIG_fail; |
11476 | if (arg1) (arg1)->m_buttonState = arg2; | |
11477 | ||
11478 | Py_INCREF(Py_None); resultobj = Py_None; | |
11479 | return resultobj; | |
11480 | fail: | |
11481 | return NULL; | |
11482 | } | |
11483 | ||
11484 | ||
c370783e | 11485 | static PyObject *_wrap_JoystickEvent_m_buttonState_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11486 | PyObject *resultobj; |
11487 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11488 | int result; | |
11489 | PyObject * obj0 = 0 ; | |
11490 | char *kwnames[] = { | |
11491 | (char *) "self", NULL | |
11492 | }; | |
11493 | ||
11494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonState_get",kwnames,&obj0)) goto fail; | |
11495 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11496 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11497 | result = (int) ((arg1)->m_buttonState); | |
11498 | ||
c370783e | 11499 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
11500 | return resultobj; |
11501 | fail: | |
11502 | return NULL; | |
11503 | } | |
11504 | ||
11505 | ||
c370783e | 11506 | static PyObject *_wrap_JoystickEvent_m_joyStick_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11507 | PyObject *resultobj; |
11508 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11509 | int arg2 ; | |
11510 | PyObject * obj0 = 0 ; | |
11511 | PyObject * obj1 = 0 ; | |
11512 | char *kwnames[] = { | |
11513 | (char *) "self",(char *) "m_joyStick", NULL | |
11514 | }; | |
11515 | ||
11516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_joyStick_set",kwnames,&obj0,&obj1)) goto fail; | |
11517 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11518 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 11519 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11520 | if (PyErr_Occurred()) SWIG_fail; |
11521 | if (arg1) (arg1)->m_joyStick = arg2; | |
11522 | ||
11523 | Py_INCREF(Py_None); resultobj = Py_None; | |
11524 | return resultobj; | |
11525 | fail: | |
11526 | return NULL; | |
11527 | } | |
11528 | ||
11529 | ||
c370783e | 11530 | static PyObject *_wrap_JoystickEvent_m_joyStick_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11531 | PyObject *resultobj; |
11532 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11533 | int result; | |
11534 | PyObject * obj0 = 0 ; | |
11535 | char *kwnames[] = { | |
11536 | (char *) "self", NULL | |
11537 | }; | |
11538 | ||
11539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_joyStick_get",kwnames,&obj0)) goto fail; | |
11540 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11541 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11542 | result = (int) ((arg1)->m_joyStick); | |
11543 | ||
c370783e | 11544 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
11545 | return resultobj; |
11546 | fail: | |
11547 | return NULL; | |
11548 | } | |
11549 | ||
11550 | ||
c370783e | 11551 | static PyObject *_wrap_new_JoystickEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11552 | PyObject *resultobj; |
11553 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
11554 | int arg2 = (int) 0 ; | |
11555 | int arg3 = (int) wxJOYSTICK1 ; | |
11556 | int arg4 = (int) 0 ; | |
11557 | wxJoystickEvent *result; | |
11558 | PyObject * obj0 = 0 ; | |
11559 | PyObject * obj1 = 0 ; | |
11560 | PyObject * obj2 = 0 ; | |
11561 | PyObject * obj3 = 0 ; | |
11562 | char *kwnames[] = { | |
11563 | (char *) "type",(char *) "state",(char *) "joystick",(char *) "change", NULL | |
11564 | }; | |
11565 | ||
11566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_JoystickEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
11567 | if (obj0) { | |
c370783e | 11568 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
11569 | if (PyErr_Occurred()) SWIG_fail; |
11570 | } | |
11571 | if (obj1) { | |
c370783e | 11572 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11573 | if (PyErr_Occurred()) SWIG_fail; |
11574 | } | |
11575 | if (obj2) { | |
c370783e | 11576 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
11577 | if (PyErr_Occurred()) SWIG_fail; |
11578 | } | |
11579 | if (obj3) { | |
c370783e | 11580 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
11581 | if (PyErr_Occurred()) SWIG_fail; |
11582 | } | |
11583 | { | |
11584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11585 | result = (wxJoystickEvent *)new wxJoystickEvent(arg1,arg2,arg3,arg4); | |
11586 | ||
11587 | wxPyEndAllowThreads(__tstate); | |
11588 | if (PyErr_Occurred()) SWIG_fail; | |
11589 | } | |
11590 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystickEvent, 1); | |
11591 | return resultobj; | |
11592 | fail: | |
11593 | return NULL; | |
11594 | } | |
11595 | ||
11596 | ||
c370783e | 11597 | static PyObject *_wrap_JoystickEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11598 | PyObject *resultobj; |
11599 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11600 | wxPoint result; | |
11601 | PyObject * obj0 = 0 ; | |
11602 | char *kwnames[] = { | |
11603 | (char *) "self", NULL | |
11604 | }; | |
11605 | ||
11606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetPosition",kwnames,&obj0)) goto fail; | |
11607 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11608 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11609 | { | |
11610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11611 | result = ((wxJoystickEvent const *)arg1)->GetPosition(); | |
11612 | ||
11613 | wxPyEndAllowThreads(__tstate); | |
11614 | if (PyErr_Occurred()) SWIG_fail; | |
11615 | } | |
11616 | { | |
11617 | wxPoint * resultptr; | |
11618 | resultptr = new wxPoint((wxPoint &) result); | |
11619 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
11620 | } | |
11621 | return resultobj; | |
11622 | fail: | |
11623 | return NULL; | |
11624 | } | |
11625 | ||
11626 | ||
c370783e | 11627 | static PyObject *_wrap_JoystickEvent_GetZPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11628 | PyObject *resultobj; |
11629 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11630 | int result; | |
11631 | PyObject * obj0 = 0 ; | |
11632 | char *kwnames[] = { | |
11633 | (char *) "self", NULL | |
11634 | }; | |
11635 | ||
11636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetZPosition",kwnames,&obj0)) goto fail; | |
11637 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11638 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11639 | { | |
11640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11641 | result = (int)((wxJoystickEvent const *)arg1)->GetZPosition(); | |
11642 | ||
11643 | wxPyEndAllowThreads(__tstate); | |
11644 | if (PyErr_Occurred()) SWIG_fail; | |
11645 | } | |
c370783e | 11646 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
11647 | return resultobj; |
11648 | fail: | |
11649 | return NULL; | |
11650 | } | |
11651 | ||
11652 | ||
c370783e | 11653 | static PyObject *_wrap_JoystickEvent_GetButtonState(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11654 | PyObject *resultobj; |
11655 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11656 | int result; | |
11657 | PyObject * obj0 = 0 ; | |
11658 | char *kwnames[] = { | |
11659 | (char *) "self", NULL | |
11660 | }; | |
11661 | ||
11662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonState",kwnames,&obj0)) goto fail; | |
11663 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11665 | { | |
11666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11667 | result = (int)((wxJoystickEvent const *)arg1)->GetButtonState(); | |
11668 | ||
11669 | wxPyEndAllowThreads(__tstate); | |
11670 | if (PyErr_Occurred()) SWIG_fail; | |
11671 | } | |
c370783e | 11672 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
11673 | return resultobj; |
11674 | fail: | |
11675 | return NULL; | |
11676 | } | |
11677 | ||
11678 | ||
c370783e | 11679 | static PyObject *_wrap_JoystickEvent_GetButtonChange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11680 | PyObject *resultobj; |
11681 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11682 | int result; | |
11683 | PyObject * obj0 = 0 ; | |
11684 | char *kwnames[] = { | |
11685 | (char *) "self", NULL | |
11686 | }; | |
11687 | ||
11688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonChange",kwnames,&obj0)) goto fail; | |
11689 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11690 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11691 | { | |
11692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11693 | result = (int)((wxJoystickEvent const *)arg1)->GetButtonChange(); | |
11694 | ||
11695 | wxPyEndAllowThreads(__tstate); | |
11696 | if (PyErr_Occurred()) SWIG_fail; | |
11697 | } | |
c370783e | 11698 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
11699 | return resultobj; |
11700 | fail: | |
11701 | return NULL; | |
11702 | } | |
11703 | ||
11704 | ||
c370783e | 11705 | static PyObject *_wrap_JoystickEvent_GetJoystick(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11706 | PyObject *resultobj; |
11707 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11708 | int result; | |
11709 | PyObject * obj0 = 0 ; | |
11710 | char *kwnames[] = { | |
11711 | (char *) "self", NULL | |
11712 | }; | |
11713 | ||
11714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetJoystick",kwnames,&obj0)) goto fail; | |
11715 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11716 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11717 | { | |
11718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11719 | result = (int)((wxJoystickEvent const *)arg1)->GetJoystick(); | |
11720 | ||
11721 | wxPyEndAllowThreads(__tstate); | |
11722 | if (PyErr_Occurred()) SWIG_fail; | |
11723 | } | |
c370783e | 11724 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
11725 | return resultobj; |
11726 | fail: | |
11727 | return NULL; | |
11728 | } | |
11729 | ||
11730 | ||
c370783e | 11731 | static PyObject *_wrap_JoystickEvent_SetJoystick(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11732 | PyObject *resultobj; |
11733 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11734 | int arg2 ; | |
11735 | PyObject * obj0 = 0 ; | |
11736 | PyObject * obj1 = 0 ; | |
11737 | char *kwnames[] = { | |
11738 | (char *) "self",(char *) "stick", NULL | |
11739 | }; | |
11740 | ||
11741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetJoystick",kwnames,&obj0,&obj1)) goto fail; | |
11742 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11743 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 11744 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11745 | if (PyErr_Occurred()) SWIG_fail; |
11746 | { | |
11747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11748 | (arg1)->SetJoystick(arg2); | |
11749 | ||
11750 | wxPyEndAllowThreads(__tstate); | |
11751 | if (PyErr_Occurred()) SWIG_fail; | |
11752 | } | |
11753 | Py_INCREF(Py_None); resultobj = Py_None; | |
11754 | return resultobj; | |
11755 | fail: | |
11756 | return NULL; | |
11757 | } | |
11758 | ||
11759 | ||
c370783e | 11760 | static PyObject *_wrap_JoystickEvent_SetButtonState(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11761 | PyObject *resultobj; |
11762 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11763 | int arg2 ; | |
11764 | PyObject * obj0 = 0 ; | |
11765 | PyObject * obj1 = 0 ; | |
11766 | char *kwnames[] = { | |
11767 | (char *) "self",(char *) "state", NULL | |
11768 | }; | |
11769 | ||
11770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonState",kwnames,&obj0,&obj1)) goto fail; | |
11771 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11772 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 11773 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11774 | if (PyErr_Occurred()) SWIG_fail; |
11775 | { | |
11776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11777 | (arg1)->SetButtonState(arg2); | |
11778 | ||
11779 | wxPyEndAllowThreads(__tstate); | |
11780 | if (PyErr_Occurred()) SWIG_fail; | |
11781 | } | |
11782 | Py_INCREF(Py_None); resultobj = Py_None; | |
11783 | return resultobj; | |
11784 | fail: | |
11785 | return NULL; | |
11786 | } | |
11787 | ||
11788 | ||
c370783e | 11789 | static PyObject *_wrap_JoystickEvent_SetButtonChange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11790 | PyObject *resultobj; |
11791 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11792 | int arg2 ; | |
11793 | PyObject * obj0 = 0 ; | |
11794 | PyObject * obj1 = 0 ; | |
11795 | char *kwnames[] = { | |
11796 | (char *) "self",(char *) "change", NULL | |
11797 | }; | |
11798 | ||
11799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonChange",kwnames,&obj0,&obj1)) goto fail; | |
11800 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11801 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 11802 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11803 | if (PyErr_Occurred()) SWIG_fail; |
11804 | { | |
11805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11806 | (arg1)->SetButtonChange(arg2); | |
11807 | ||
11808 | wxPyEndAllowThreads(__tstate); | |
11809 | if (PyErr_Occurred()) SWIG_fail; | |
11810 | } | |
11811 | Py_INCREF(Py_None); resultobj = Py_None; | |
11812 | return resultobj; | |
11813 | fail: | |
11814 | return NULL; | |
11815 | } | |
11816 | ||
11817 | ||
c370783e | 11818 | static PyObject *_wrap_JoystickEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11819 | PyObject *resultobj; |
11820 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11821 | wxPoint *arg2 = 0 ; | |
11822 | wxPoint temp2 ; | |
11823 | PyObject * obj0 = 0 ; | |
11824 | PyObject * obj1 = 0 ; | |
11825 | char *kwnames[] = { | |
11826 | (char *) "self",(char *) "pos", NULL | |
11827 | }; | |
11828 | ||
11829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
11830 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11832 | { | |
11833 | arg2 = &temp2; | |
11834 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11835 | } | |
11836 | { | |
11837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11838 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
11839 | ||
11840 | wxPyEndAllowThreads(__tstate); | |
11841 | if (PyErr_Occurred()) SWIG_fail; | |
11842 | } | |
11843 | Py_INCREF(Py_None); resultobj = Py_None; | |
11844 | return resultobj; | |
11845 | fail: | |
11846 | return NULL; | |
11847 | } | |
11848 | ||
11849 | ||
c370783e | 11850 | static PyObject *_wrap_JoystickEvent_SetZPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11851 | PyObject *resultobj; |
11852 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11853 | int arg2 ; | |
11854 | PyObject * obj0 = 0 ; | |
11855 | PyObject * obj1 = 0 ; | |
11856 | char *kwnames[] = { | |
11857 | (char *) "self",(char *) "zPos", NULL | |
11858 | }; | |
11859 | ||
11860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetZPosition",kwnames,&obj0,&obj1)) goto fail; | |
11861 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11862 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 11863 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11864 | if (PyErr_Occurred()) SWIG_fail; |
11865 | { | |
11866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11867 | (arg1)->SetZPosition(arg2); | |
11868 | ||
11869 | wxPyEndAllowThreads(__tstate); | |
11870 | if (PyErr_Occurred()) SWIG_fail; | |
11871 | } | |
11872 | Py_INCREF(Py_None); resultobj = Py_None; | |
11873 | return resultobj; | |
11874 | fail: | |
11875 | return NULL; | |
11876 | } | |
11877 | ||
11878 | ||
c370783e | 11879 | static PyObject *_wrap_JoystickEvent_IsButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11880 | PyObject *resultobj; |
11881 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11882 | bool result; | |
11883 | PyObject * obj0 = 0 ; | |
11884 | char *kwnames[] = { | |
11885 | (char *) "self", NULL | |
11886 | }; | |
11887 | ||
11888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsButton",kwnames,&obj0)) goto fail; | |
11889 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11890 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11891 | { | |
11892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11893 | result = (bool)((wxJoystickEvent const *)arg1)->IsButton(); | |
11894 | ||
11895 | wxPyEndAllowThreads(__tstate); | |
11896 | if (PyErr_Occurred()) SWIG_fail; | |
11897 | } | |
11898 | { | |
11899 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11900 | } | |
11901 | return resultobj; | |
11902 | fail: | |
11903 | return NULL; | |
11904 | } | |
11905 | ||
11906 | ||
c370783e | 11907 | static PyObject *_wrap_JoystickEvent_IsMove(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11908 | PyObject *resultobj; |
11909 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11910 | bool result; | |
11911 | PyObject * obj0 = 0 ; | |
11912 | char *kwnames[] = { | |
11913 | (char *) "self", NULL | |
11914 | }; | |
11915 | ||
11916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsMove",kwnames,&obj0)) goto fail; | |
11917 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11919 | { | |
11920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11921 | result = (bool)((wxJoystickEvent const *)arg1)->IsMove(); | |
11922 | ||
11923 | wxPyEndAllowThreads(__tstate); | |
11924 | if (PyErr_Occurred()) SWIG_fail; | |
11925 | } | |
11926 | { | |
11927 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11928 | } | |
11929 | return resultobj; | |
11930 | fail: | |
11931 | return NULL; | |
11932 | } | |
11933 | ||
11934 | ||
c370783e | 11935 | static PyObject *_wrap_JoystickEvent_IsZMove(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11936 | PyObject *resultobj; |
11937 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11938 | bool result; | |
11939 | PyObject * obj0 = 0 ; | |
11940 | char *kwnames[] = { | |
11941 | (char *) "self", NULL | |
11942 | }; | |
11943 | ||
11944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsZMove",kwnames,&obj0)) goto fail; | |
11945 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11946 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11947 | { | |
11948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11949 | result = (bool)((wxJoystickEvent const *)arg1)->IsZMove(); | |
11950 | ||
11951 | wxPyEndAllowThreads(__tstate); | |
11952 | if (PyErr_Occurred()) SWIG_fail; | |
11953 | } | |
11954 | { | |
11955 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11956 | } | |
11957 | return resultobj; | |
11958 | fail: | |
11959 | return NULL; | |
11960 | } | |
11961 | ||
11962 | ||
c370783e | 11963 | static PyObject *_wrap_JoystickEvent_ButtonDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11964 | PyObject *resultobj; |
11965 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11966 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
11967 | bool result; | |
11968 | PyObject * obj0 = 0 ; | |
11969 | PyObject * obj1 = 0 ; | |
11970 | char *kwnames[] = { | |
11971 | (char *) "self",(char *) "but", NULL | |
11972 | }; | |
11973 | ||
11974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail; | |
11975 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11976 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11977 | if (obj1) { | |
c370783e | 11978 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11979 | if (PyErr_Occurred()) SWIG_fail; |
11980 | } | |
11981 | { | |
11982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11983 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonDown(arg2); | |
11984 | ||
11985 | wxPyEndAllowThreads(__tstate); | |
11986 | if (PyErr_Occurred()) SWIG_fail; | |
11987 | } | |
11988 | { | |
11989 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11990 | } | |
11991 | return resultobj; | |
11992 | fail: | |
11993 | return NULL; | |
11994 | } | |
11995 | ||
11996 | ||
c370783e | 11997 | static PyObject *_wrap_JoystickEvent_ButtonUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11998 | PyObject *resultobj; |
11999 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
12000 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
12001 | bool result; | |
12002 | PyObject * obj0 = 0 ; | |
12003 | PyObject * obj1 = 0 ; | |
12004 | char *kwnames[] = { | |
12005 | (char *) "self",(char *) "but", NULL | |
12006 | }; | |
12007 | ||
12008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail; | |
12009 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
12010 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12011 | if (obj1) { | |
c370783e | 12012 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
12013 | if (PyErr_Occurred()) SWIG_fail; |
12014 | } | |
12015 | { | |
12016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12017 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonUp(arg2); | |
12018 | ||
12019 | wxPyEndAllowThreads(__tstate); | |
12020 | if (PyErr_Occurred()) SWIG_fail; | |
12021 | } | |
12022 | { | |
12023 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12024 | } | |
12025 | return resultobj; | |
12026 | fail: | |
12027 | return NULL; | |
12028 | } | |
12029 | ||
12030 | ||
c370783e | 12031 | static PyObject *_wrap_JoystickEvent_ButtonIsDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12032 | PyObject *resultobj; |
12033 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
12034 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
12035 | bool result; | |
12036 | PyObject * obj0 = 0 ; | |
12037 | PyObject * obj1 = 0 ; | |
12038 | char *kwnames[] = { | |
12039 | (char *) "self",(char *) "but", NULL | |
12040 | }; | |
12041 | ||
12042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail; | |
12043 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
12044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12045 | if (obj1) { | |
c370783e | 12046 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
12047 | if (PyErr_Occurred()) SWIG_fail; |
12048 | } | |
12049 | { | |
12050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12051 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonIsDown(arg2); | |
12052 | ||
12053 | wxPyEndAllowThreads(__tstate); | |
12054 | if (PyErr_Occurred()) SWIG_fail; | |
12055 | } | |
12056 | { | |
12057 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12058 | } | |
12059 | return resultobj; | |
12060 | fail: | |
12061 | return NULL; | |
12062 | } | |
12063 | ||
12064 | ||
c370783e | 12065 | static PyObject * JoystickEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
12066 | PyObject *obj; |
12067 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12068 | SWIG_TypeClientData(SWIGTYPE_p_wxJoystickEvent, obj); | |
12069 | Py_INCREF(obj); | |
12070 | return Py_BuildValue((char *)""); | |
12071 | } | |
c370783e | 12072 | static PyObject *_wrap_new_Sound(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 12073 | PyObject *resultobj; |
0346c964 RD |
12074 | wxString const &arg1_defvalue = wxPyEmptyString ; |
12075 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
d55e5bfc | 12076 | wxSound *result; |
b411df4a | 12077 | bool temp1 = false ; |
d55e5bfc | 12078 | PyObject * obj0 = 0 ; |
0346c964 RD |
12079 | char *kwnames[] = { |
12080 | (char *) "fileName", NULL | |
12081 | }; | |
d55e5bfc | 12082 | |
0346c964 RD |
12083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Sound",kwnames,&obj0)) goto fail; |
12084 | if (obj0) { | |
12085 | { | |
12086 | arg1 = wxString_in_helper(obj0); | |
12087 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 12088 | temp1 = true; |
0346c964 | 12089 | } |
d55e5bfc RD |
12090 | } |
12091 | { | |
0439c23b | 12092 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 12093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0346c964 | 12094 | result = (wxSound *)new_wxSound((wxString const &)*arg1); |
d55e5bfc RD |
12095 | |
12096 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12097 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
12098 | } |
12099 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1); | |
12100 | { | |
12101 | if (temp1) | |
12102 | delete arg1; | |
12103 | } | |
12104 | return resultobj; | |
12105 | fail: | |
12106 | { | |
12107 | if (temp1) | |
12108 | delete arg1; | |
12109 | } | |
12110 | return NULL; | |
12111 | } | |
12112 | ||
12113 | ||
c370783e | 12114 | static PyObject *_wrap_new_SoundFromData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 12115 | PyObject *resultobj; |
0346c964 | 12116 | PyObject *arg1 = (PyObject *) 0 ; |
d55e5bfc RD |
12117 | wxSound *result; |
12118 | PyObject * obj0 = 0 ; | |
0346c964 RD |
12119 | char *kwnames[] = { |
12120 | (char *) "data", NULL | |
12121 | }; | |
d55e5bfc | 12122 | |
0346c964 RD |
12123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_SoundFromData",kwnames,&obj0)) goto fail; |
12124 | arg1 = obj0; | |
d55e5bfc | 12125 | { |
0439c23b | 12126 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 12127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0346c964 | 12128 | result = (wxSound *)new_wxSound(arg1); |
d55e5bfc RD |
12129 | |
12130 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12131 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
12132 | } |
12133 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1); | |
12134 | return resultobj; | |
12135 | fail: | |
12136 | return NULL; | |
12137 | } | |
12138 | ||
12139 | ||
c370783e | 12140 | static PyObject *_wrap_delete_Sound(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12141 | PyObject *resultobj; |
12142 | wxSound *arg1 = (wxSound *) 0 ; | |
12143 | PyObject * obj0 = 0 ; | |
12144 | char *kwnames[] = { | |
12145 | (char *) "self", NULL | |
12146 | }; | |
12147 | ||
12148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Sound",kwnames,&obj0)) goto fail; | |
12149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, | |
12150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12151 | { | |
12152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12153 | delete arg1; | |
12154 | ||
12155 | wxPyEndAllowThreads(__tstate); | |
12156 | if (PyErr_Occurred()) SWIG_fail; | |
12157 | } | |
12158 | Py_INCREF(Py_None); resultobj = Py_None; | |
12159 | return resultobj; | |
12160 | fail: | |
12161 | return NULL; | |
12162 | } | |
12163 | ||
12164 | ||
c370783e | 12165 | static PyObject *_wrap_Sound_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12166 | PyObject *resultobj; |
12167 | wxSound *arg1 = (wxSound *) 0 ; | |
12168 | wxString *arg2 = 0 ; | |
d55e5bfc | 12169 | bool result; |
b411df4a | 12170 | bool temp2 = false ; |
d55e5bfc RD |
12171 | PyObject * obj0 = 0 ; |
12172 | PyObject * obj1 = 0 ; | |
0346c964 RD |
12173 | char *kwnames[] = { |
12174 | (char *) "self",(char *) "fileName", NULL | |
12175 | }; | |
d55e5bfc | 12176 | |
0346c964 | 12177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_Create",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
12178 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, |
12179 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12180 | { | |
12181 | arg2 = wxString_in_helper(obj1); | |
12182 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 12183 | temp2 = true; |
d55e5bfc | 12184 | } |
d55e5bfc RD |
12185 | { |
12186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
0346c964 | 12187 | result = (bool)(arg1)->Create((wxString const &)*arg2); |
d55e5bfc RD |
12188 | |
12189 | wxPyEndAllowThreads(__tstate); | |
12190 | if (PyErr_Occurred()) SWIG_fail; | |
12191 | } | |
12192 | { | |
12193 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12194 | } | |
12195 | { | |
12196 | if (temp2) | |
12197 | delete arg2; | |
12198 | } | |
12199 | return resultobj; | |
12200 | fail: | |
12201 | { | |
12202 | if (temp2) | |
12203 | delete arg2; | |
12204 | } | |
12205 | return NULL; | |
12206 | } | |
12207 | ||
12208 | ||
c370783e | 12209 | static PyObject *_wrap_Sound_CreateFromData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12210 | PyObject *resultobj; |
12211 | wxSound *arg1 = (wxSound *) 0 ; | |
0346c964 | 12212 | PyObject *arg2 = (PyObject *) 0 ; |
d55e5bfc RD |
12213 | bool result; |
12214 | PyObject * obj0 = 0 ; | |
12215 | PyObject * obj1 = 0 ; | |
0346c964 RD |
12216 | char *kwnames[] = { |
12217 | (char *) "self",(char *) "data", NULL | |
12218 | }; | |
d55e5bfc | 12219 | |
0346c964 | 12220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_CreateFromData",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
12221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, |
12222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
0346c964 | 12223 | arg2 = obj1; |
d55e5bfc RD |
12224 | { |
12225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
0346c964 | 12226 | result = (bool)wxSound_CreateFromData(arg1,arg2); |
d55e5bfc RD |
12227 | |
12228 | wxPyEndAllowThreads(__tstate); | |
12229 | if (PyErr_Occurred()) SWIG_fail; | |
12230 | } | |
12231 | { | |
12232 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12233 | } | |
12234 | return resultobj; | |
12235 | fail: | |
12236 | return NULL; | |
12237 | } | |
12238 | ||
12239 | ||
c370783e | 12240 | static PyObject *_wrap_Sound_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12241 | PyObject *resultobj; |
12242 | wxSound *arg1 = (wxSound *) 0 ; | |
12243 | bool result; | |
12244 | PyObject * obj0 = 0 ; | |
12245 | char *kwnames[] = { | |
12246 | (char *) "self", NULL | |
12247 | }; | |
12248 | ||
12249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sound_IsOk",kwnames,&obj0)) goto fail; | |
12250 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, | |
12251 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12252 | { | |
12253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12254 | result = (bool)(arg1)->IsOk(); | |
12255 | ||
12256 | wxPyEndAllowThreads(__tstate); | |
12257 | if (PyErr_Occurred()) SWIG_fail; | |
12258 | } | |
12259 | { | |
12260 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12261 | } | |
12262 | return resultobj; | |
12263 | fail: | |
12264 | return NULL; | |
12265 | } | |
12266 | ||
12267 | ||
c370783e | 12268 | static PyObject *_wrap_Sound_Play(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12269 | PyObject *resultobj; |
12270 | wxSound *arg1 = (wxSound *) 0 ; | |
12271 | unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ; | |
12272 | bool result; | |
12273 | PyObject * obj0 = 0 ; | |
12274 | PyObject * obj1 = 0 ; | |
0346c964 RD |
12275 | char *kwnames[] = { |
12276 | (char *) "self",(char *) "flags", NULL | |
12277 | }; | |
d55e5bfc | 12278 | |
0346c964 | 12279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_Play",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
12280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, |
12281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12282 | if (obj1) { | |
c370783e | 12283 | arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1); |
d55e5bfc RD |
12284 | if (PyErr_Occurred()) SWIG_fail; |
12285 | } | |
12286 | { | |
0439c23b | 12287 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
12288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12289 | result = (bool)((wxSound const *)arg1)->Play(arg2); | |
12290 | ||
12291 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12292 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
12293 | } |
12294 | { | |
12295 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12296 | } | |
12297 | return resultobj; | |
12298 | fail: | |
12299 | return NULL; | |
12300 | } | |
12301 | ||
12302 | ||
c370783e | 12303 | static PyObject *_wrap_Sound_PlaySound(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12304 | PyObject *resultobj; |
12305 | wxString *arg1 = 0 ; | |
12306 | unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ; | |
12307 | bool result; | |
b411df4a | 12308 | bool temp1 = false ; |
d55e5bfc RD |
12309 | PyObject * obj0 = 0 ; |
12310 | PyObject * obj1 = 0 ; | |
0346c964 RD |
12311 | char *kwnames[] = { |
12312 | (char *) "filename",(char *) "flags", NULL | |
12313 | }; | |
d55e5bfc | 12314 | |
0346c964 | 12315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_PlaySound",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
12316 | { |
12317 | arg1 = wxString_in_helper(obj0); | |
12318 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 12319 | temp1 = true; |
d55e5bfc RD |
12320 | } |
12321 | if (obj1) { | |
c370783e | 12322 | arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1); |
d55e5bfc RD |
12323 | if (PyErr_Occurred()) SWIG_fail; |
12324 | } | |
12325 | { | |
0439c23b | 12326 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
12327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12328 | result = (bool)wxSound::Play((wxString const &)*arg1,arg2); | |
12329 | ||
12330 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12331 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
12332 | } |
12333 | { | |
12334 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12335 | } | |
12336 | { | |
12337 | if (temp1) | |
12338 | delete arg1; | |
12339 | } | |
12340 | return resultobj; | |
12341 | fail: | |
12342 | { | |
12343 | if (temp1) | |
12344 | delete arg1; | |
12345 | } | |
12346 | return NULL; | |
12347 | } | |
12348 | ||
12349 | ||
c370783e | 12350 | static PyObject *_wrap_Sound_Stop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12351 | PyObject *resultobj; |
12352 | char *kwnames[] = { | |
12353 | NULL | |
12354 | }; | |
12355 | ||
12356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Sound_Stop",kwnames)) goto fail; | |
12357 | { | |
0439c23b | 12358 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
12359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12360 | Sound_Stop(); | |
12361 | ||
12362 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12363 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
12364 | } |
12365 | Py_INCREF(Py_None); resultobj = Py_None; | |
12366 | return resultobj; | |
12367 | fail: | |
12368 | return NULL; | |
12369 | } | |
12370 | ||
12371 | ||
c370783e | 12372 | static PyObject * Sound_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
12373 | PyObject *obj; |
12374 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12375 | SWIG_TypeClientData(SWIGTYPE_p_wxSound, obj); | |
12376 | Py_INCREF(obj); | |
12377 | return Py_BuildValue((char *)""); | |
12378 | } | |
c370783e | 12379 | static PyObject *_wrap_new_FileTypeInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12380 | PyObject *resultobj; |
12381 | wxString *arg1 = 0 ; | |
12382 | wxString *arg2 = 0 ; | |
12383 | wxString *arg3 = 0 ; | |
12384 | wxString *arg4 = 0 ; | |
12385 | wxFileTypeInfo *result; | |
b411df4a RD |
12386 | bool temp1 = false ; |
12387 | bool temp2 = false ; | |
12388 | bool temp3 = false ; | |
12389 | bool temp4 = false ; | |
d55e5bfc RD |
12390 | PyObject * obj0 = 0 ; |
12391 | PyObject * obj1 = 0 ; | |
12392 | PyObject * obj2 = 0 ; | |
12393 | PyObject * obj3 = 0 ; | |
12394 | char *kwnames[] = { | |
12395 | (char *) "mimeType",(char *) "openCmd",(char *) "printCmd",(char *) "desc", NULL | |
12396 | }; | |
12397 | ||
12398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileTypeInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
12399 | { | |
12400 | arg1 = wxString_in_helper(obj0); | |
12401 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 12402 | temp1 = true; |
d55e5bfc RD |
12403 | } |
12404 | { | |
12405 | arg2 = wxString_in_helper(obj1); | |
12406 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 12407 | temp2 = true; |
d55e5bfc RD |
12408 | } |
12409 | { | |
12410 | arg3 = wxString_in_helper(obj2); | |
12411 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 12412 | temp3 = true; |
d55e5bfc RD |
12413 | } |
12414 | { | |
12415 | arg4 = wxString_in_helper(obj3); | |
12416 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 12417 | temp4 = true; |
d55e5bfc RD |
12418 | } |
12419 | { | |
12420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12421 | result = (wxFileTypeInfo *)new wxFileTypeInfo((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
12422 | ||
12423 | wxPyEndAllowThreads(__tstate); | |
12424 | if (PyErr_Occurred()) SWIG_fail; | |
12425 | } | |
12426 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); | |
12427 | { | |
12428 | if (temp1) | |
12429 | delete arg1; | |
12430 | } | |
12431 | { | |
12432 | if (temp2) | |
12433 | delete arg2; | |
12434 | } | |
12435 | { | |
12436 | if (temp3) | |
12437 | delete arg3; | |
12438 | } | |
12439 | { | |
12440 | if (temp4) | |
12441 | delete arg4; | |
12442 | } | |
12443 | return resultobj; | |
12444 | fail: | |
12445 | { | |
12446 | if (temp1) | |
12447 | delete arg1; | |
12448 | } | |
12449 | { | |
12450 | if (temp2) | |
12451 | delete arg2; | |
12452 | } | |
12453 | { | |
12454 | if (temp3) | |
12455 | delete arg3; | |
12456 | } | |
12457 | { | |
12458 | if (temp4) | |
12459 | delete arg4; | |
12460 | } | |
12461 | return NULL; | |
12462 | } | |
12463 | ||
12464 | ||
c370783e | 12465 | static PyObject *_wrap_new_FileTypeInfoSequence(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12466 | PyObject *resultobj; |
12467 | wxArrayString *arg1 = 0 ; | |
12468 | wxFileTypeInfo *result; | |
b411df4a | 12469 | bool temp1 = false ; |
d55e5bfc RD |
12470 | PyObject * obj0 = 0 ; |
12471 | char *kwnames[] = { | |
12472 | (char *) "sArray", NULL | |
12473 | }; | |
12474 | ||
12475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileTypeInfoSequence",kwnames,&obj0)) goto fail; | |
12476 | { | |
12477 | if (! PySequence_Check(obj0)) { | |
12478 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
12479 | SWIG_fail; | |
12480 | } | |
12481 | arg1 = new wxArrayString; | |
b411df4a | 12482 | temp1 = true; |
d55e5bfc RD |
12483 | int i, len=PySequence_Length(obj0); |
12484 | for (i=0; i<len; i++) { | |
12485 | PyObject* item = PySequence_GetItem(obj0, i); | |
12486 | #if wxUSE_UNICODE | |
12487 | PyObject* str = PyObject_Unicode(item); | |
12488 | #else | |
12489 | PyObject* str = PyObject_Str(item); | |
12490 | #endif | |
12491 | if (PyErr_Occurred()) SWIG_fail; | |
12492 | arg1->Add(Py2wxString(str)); | |
12493 | Py_DECREF(item); | |
12494 | Py_DECREF(str); | |
12495 | } | |
12496 | } | |
12497 | { | |
12498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12499 | result = (wxFileTypeInfo *)new wxFileTypeInfo((wxArrayString const &)*arg1); | |
12500 | ||
12501 | wxPyEndAllowThreads(__tstate); | |
12502 | if (PyErr_Occurred()) SWIG_fail; | |
12503 | } | |
12504 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); | |
12505 | { | |
12506 | if (temp1) delete arg1; | |
12507 | } | |
12508 | return resultobj; | |
12509 | fail: | |
12510 | { | |
12511 | if (temp1) delete arg1; | |
12512 | } | |
12513 | return NULL; | |
12514 | } | |
12515 | ||
12516 | ||
c370783e | 12517 | static PyObject *_wrap_new_NullFileTypeInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12518 | PyObject *resultobj; |
12519 | wxFileTypeInfo *result; | |
12520 | char *kwnames[] = { | |
12521 | NULL | |
12522 | }; | |
12523 | ||
12524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NullFileTypeInfo",kwnames)) goto fail; | |
12525 | { | |
12526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12527 | result = (wxFileTypeInfo *)new wxFileTypeInfo(); | |
12528 | ||
12529 | wxPyEndAllowThreads(__tstate); | |
12530 | if (PyErr_Occurred()) SWIG_fail; | |
12531 | } | |
12532 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); | |
12533 | return resultobj; | |
12534 | fail: | |
12535 | return NULL; | |
12536 | } | |
12537 | ||
12538 | ||
c370783e | 12539 | static PyObject *_wrap_FileTypeInfo_IsValid(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12540 | PyObject *resultobj; |
12541 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12542 | bool result; | |
12543 | PyObject * obj0 = 0 ; | |
12544 | char *kwnames[] = { | |
12545 | (char *) "self", NULL | |
12546 | }; | |
12547 | ||
12548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_IsValid",kwnames,&obj0)) goto fail; | |
12549 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12551 | { | |
12552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12553 | result = (bool)((wxFileTypeInfo const *)arg1)->IsValid(); | |
12554 | ||
12555 | wxPyEndAllowThreads(__tstate); | |
12556 | if (PyErr_Occurred()) SWIG_fail; | |
12557 | } | |
12558 | { | |
12559 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12560 | } | |
12561 | return resultobj; | |
12562 | fail: | |
12563 | return NULL; | |
12564 | } | |
12565 | ||
12566 | ||
c370783e | 12567 | static PyObject *_wrap_FileTypeInfo_SetIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12568 | PyObject *resultobj; |
12569 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12570 | wxString *arg2 = 0 ; | |
12571 | int arg3 = (int) 0 ; | |
b411df4a | 12572 | bool temp2 = false ; |
d55e5bfc RD |
12573 | PyObject * obj0 = 0 ; |
12574 | PyObject * obj1 = 0 ; | |
12575 | PyObject * obj2 = 0 ; | |
12576 | char *kwnames[] = { | |
12577 | (char *) "self",(char *) "iconFile",(char *) "iconIndex", NULL | |
12578 | }; | |
12579 | ||
12580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileTypeInfo_SetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12581 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12583 | { | |
12584 | arg2 = wxString_in_helper(obj1); | |
12585 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 12586 | temp2 = true; |
d55e5bfc RD |
12587 | } |
12588 | if (obj2) { | |
c370783e | 12589 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
12590 | if (PyErr_Occurred()) SWIG_fail; |
12591 | } | |
12592 | { | |
12593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12594 | (arg1)->SetIcon((wxString const &)*arg2,arg3); | |
12595 | ||
12596 | wxPyEndAllowThreads(__tstate); | |
12597 | if (PyErr_Occurred()) SWIG_fail; | |
12598 | } | |
12599 | Py_INCREF(Py_None); resultobj = Py_None; | |
12600 | { | |
12601 | if (temp2) | |
12602 | delete arg2; | |
12603 | } | |
12604 | return resultobj; | |
12605 | fail: | |
12606 | { | |
12607 | if (temp2) | |
12608 | delete arg2; | |
12609 | } | |
12610 | return NULL; | |
12611 | } | |
12612 | ||
12613 | ||
c370783e | 12614 | static PyObject *_wrap_FileTypeInfo_SetShortDesc(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12615 | PyObject *resultobj; |
12616 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12617 | wxString *arg2 = 0 ; | |
b411df4a | 12618 | bool temp2 = false ; |
d55e5bfc RD |
12619 | PyObject * obj0 = 0 ; |
12620 | PyObject * obj1 = 0 ; | |
12621 | char *kwnames[] = { | |
12622 | (char *) "self",(char *) "shortDesc", NULL | |
12623 | }; | |
12624 | ||
12625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileTypeInfo_SetShortDesc",kwnames,&obj0,&obj1)) goto fail; | |
12626 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12627 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12628 | { | |
12629 | arg2 = wxString_in_helper(obj1); | |
12630 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 12631 | temp2 = true; |
d55e5bfc RD |
12632 | } |
12633 | { | |
12634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12635 | (arg1)->SetShortDesc((wxString const &)*arg2); | |
12636 | ||
12637 | wxPyEndAllowThreads(__tstate); | |
12638 | if (PyErr_Occurred()) SWIG_fail; | |
12639 | } | |
12640 | Py_INCREF(Py_None); resultobj = Py_None; | |
12641 | { | |
12642 | if (temp2) | |
12643 | delete arg2; | |
12644 | } | |
12645 | return resultobj; | |
12646 | fail: | |
12647 | { | |
12648 | if (temp2) | |
12649 | delete arg2; | |
12650 | } | |
12651 | return NULL; | |
12652 | } | |
12653 | ||
12654 | ||
c370783e | 12655 | static PyObject *_wrap_FileTypeInfo_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12656 | PyObject *resultobj; |
12657 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12658 | wxString *result; | |
12659 | PyObject * obj0 = 0 ; | |
12660 | char *kwnames[] = { | |
12661 | (char *) "self", NULL | |
12662 | }; | |
12663 | ||
12664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetMimeType",kwnames,&obj0)) goto fail; | |
12665 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12666 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12667 | { | |
12668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12669 | { | |
12670 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetMimeType(); | |
12671 | result = (wxString *) &_result_ref; | |
12672 | } | |
12673 | ||
12674 | wxPyEndAllowThreads(__tstate); | |
12675 | if (PyErr_Occurred()) SWIG_fail; | |
12676 | } | |
12677 | { | |
12678 | #if wxUSE_UNICODE | |
12679 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12680 | #else | |
12681 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12682 | #endif | |
12683 | } | |
12684 | return resultobj; | |
12685 | fail: | |
12686 | return NULL; | |
12687 | } | |
12688 | ||
12689 | ||
c370783e | 12690 | static PyObject *_wrap_FileTypeInfo_GetOpenCommand(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12691 | PyObject *resultobj; |
12692 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12693 | wxString *result; | |
12694 | PyObject * obj0 = 0 ; | |
12695 | char *kwnames[] = { | |
12696 | (char *) "self", NULL | |
12697 | }; | |
12698 | ||
12699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetOpenCommand",kwnames,&obj0)) goto fail; | |
12700 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12701 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12702 | { | |
12703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12704 | { | |
12705 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetOpenCommand(); | |
12706 | result = (wxString *) &_result_ref; | |
12707 | } | |
12708 | ||
12709 | wxPyEndAllowThreads(__tstate); | |
12710 | if (PyErr_Occurred()) SWIG_fail; | |
12711 | } | |
12712 | { | |
12713 | #if wxUSE_UNICODE | |
12714 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12715 | #else | |
12716 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12717 | #endif | |
12718 | } | |
12719 | return resultobj; | |
12720 | fail: | |
12721 | return NULL; | |
12722 | } | |
12723 | ||
12724 | ||
c370783e | 12725 | static PyObject *_wrap_FileTypeInfo_GetPrintCommand(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12726 | PyObject *resultobj; |
12727 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12728 | wxString *result; | |
12729 | PyObject * obj0 = 0 ; | |
12730 | char *kwnames[] = { | |
12731 | (char *) "self", NULL | |
12732 | }; | |
12733 | ||
12734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetPrintCommand",kwnames,&obj0)) goto fail; | |
12735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12737 | { | |
12738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12739 | { | |
12740 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetPrintCommand(); | |
12741 | result = (wxString *) &_result_ref; | |
12742 | } | |
12743 | ||
12744 | wxPyEndAllowThreads(__tstate); | |
12745 | if (PyErr_Occurred()) SWIG_fail; | |
12746 | } | |
12747 | { | |
12748 | #if wxUSE_UNICODE | |
12749 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12750 | #else | |
12751 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12752 | #endif | |
12753 | } | |
12754 | return resultobj; | |
12755 | fail: | |
12756 | return NULL; | |
12757 | } | |
12758 | ||
12759 | ||
c370783e | 12760 | static PyObject *_wrap_FileTypeInfo_GetShortDesc(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12761 | PyObject *resultobj; |
12762 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12763 | wxString *result; | |
12764 | PyObject * obj0 = 0 ; | |
12765 | char *kwnames[] = { | |
12766 | (char *) "self", NULL | |
12767 | }; | |
12768 | ||
12769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetShortDesc",kwnames,&obj0)) goto fail; | |
12770 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12771 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12772 | { | |
12773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12774 | { | |
12775 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetShortDesc(); | |
12776 | result = (wxString *) &_result_ref; | |
12777 | } | |
12778 | ||
12779 | wxPyEndAllowThreads(__tstate); | |
12780 | if (PyErr_Occurred()) SWIG_fail; | |
12781 | } | |
12782 | { | |
12783 | #if wxUSE_UNICODE | |
12784 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12785 | #else | |
12786 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12787 | #endif | |
12788 | } | |
12789 | return resultobj; | |
12790 | fail: | |
12791 | return NULL; | |
12792 | } | |
12793 | ||
12794 | ||
c370783e | 12795 | static PyObject *_wrap_FileTypeInfo_GetDescription(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12796 | PyObject *resultobj; |
12797 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12798 | wxString *result; | |
12799 | PyObject * obj0 = 0 ; | |
12800 | char *kwnames[] = { | |
12801 | (char *) "self", NULL | |
12802 | }; | |
12803 | ||
12804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetDescription",kwnames,&obj0)) goto fail; | |
12805 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12806 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12807 | { | |
12808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12809 | { | |
12810 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetDescription(); | |
12811 | result = (wxString *) &_result_ref; | |
12812 | } | |
12813 | ||
12814 | wxPyEndAllowThreads(__tstate); | |
12815 | if (PyErr_Occurred()) SWIG_fail; | |
12816 | } | |
12817 | { | |
12818 | #if wxUSE_UNICODE | |
12819 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12820 | #else | |
12821 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12822 | #endif | |
12823 | } | |
12824 | return resultobj; | |
12825 | fail: | |
12826 | return NULL; | |
12827 | } | |
12828 | ||
12829 | ||
c370783e | 12830 | static PyObject *_wrap_FileTypeInfo_GetExtensions(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12831 | PyObject *resultobj; |
12832 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12833 | wxArrayString *result; | |
12834 | PyObject * obj0 = 0 ; | |
12835 | char *kwnames[] = { | |
12836 | (char *) "self", NULL | |
12837 | }; | |
12838 | ||
12839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensions",kwnames,&obj0)) goto fail; | |
12840 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12841 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12842 | { | |
12843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12844 | { | |
12845 | wxArrayString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetExtensions(); | |
12846 | result = (wxArrayString *) &_result_ref; | |
12847 | } | |
12848 | ||
12849 | wxPyEndAllowThreads(__tstate); | |
12850 | if (PyErr_Occurred()) SWIG_fail; | |
12851 | } | |
12852 | { | |
12853 | resultobj = wxArrayString2PyList_helper(*result); | |
12854 | } | |
12855 | return resultobj; | |
12856 | fail: | |
12857 | return NULL; | |
12858 | } | |
12859 | ||
12860 | ||
c370783e | 12861 | static PyObject *_wrap_FileTypeInfo_GetExtensionsCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12862 | PyObject *resultobj; |
12863 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12864 | int result; | |
12865 | PyObject * obj0 = 0 ; | |
12866 | char *kwnames[] = { | |
12867 | (char *) "self", NULL | |
12868 | }; | |
12869 | ||
12870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensionsCount",kwnames,&obj0)) goto fail; | |
12871 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12872 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12873 | { | |
12874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12875 | result = (int)((wxFileTypeInfo const *)arg1)->GetExtensionsCount(); | |
12876 | ||
12877 | wxPyEndAllowThreads(__tstate); | |
12878 | if (PyErr_Occurred()) SWIG_fail; | |
12879 | } | |
c370783e | 12880 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
12881 | return resultobj; |
12882 | fail: | |
12883 | return NULL; | |
12884 | } | |
12885 | ||
12886 | ||
c370783e | 12887 | static PyObject *_wrap_FileTypeInfo_GetIconFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12888 | PyObject *resultobj; |
12889 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12890 | wxString *result; | |
12891 | PyObject * obj0 = 0 ; | |
12892 | char *kwnames[] = { | |
12893 | (char *) "self", NULL | |
12894 | }; | |
12895 | ||
12896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconFile",kwnames,&obj0)) goto fail; | |
12897 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12898 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12899 | { | |
12900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12901 | { | |
12902 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetIconFile(); | |
12903 | result = (wxString *) &_result_ref; | |
12904 | } | |
12905 | ||
12906 | wxPyEndAllowThreads(__tstate); | |
12907 | if (PyErr_Occurred()) SWIG_fail; | |
12908 | } | |
12909 | { | |
12910 | #if wxUSE_UNICODE | |
12911 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12912 | #else | |
12913 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12914 | #endif | |
12915 | } | |
12916 | return resultobj; | |
12917 | fail: | |
12918 | return NULL; | |
12919 | } | |
12920 | ||
12921 | ||
c370783e | 12922 | static PyObject *_wrap_FileTypeInfo_GetIconIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12923 | PyObject *resultobj; |
12924 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12925 | int result; | |
12926 | PyObject * obj0 = 0 ; | |
12927 | char *kwnames[] = { | |
12928 | (char *) "self", NULL | |
12929 | }; | |
12930 | ||
12931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconIndex",kwnames,&obj0)) goto fail; | |
12932 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12933 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12934 | { | |
12935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12936 | result = (int)((wxFileTypeInfo const *)arg1)->GetIconIndex(); | |
12937 | ||
12938 | wxPyEndAllowThreads(__tstate); | |
12939 | if (PyErr_Occurred()) SWIG_fail; | |
12940 | } | |
c370783e | 12941 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
12942 | return resultobj; |
12943 | fail: | |
12944 | return NULL; | |
12945 | } | |
12946 | ||
12947 | ||
c370783e | 12948 | static PyObject * FileTypeInfo_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
12949 | PyObject *obj; |
12950 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12951 | SWIG_TypeClientData(SWIGTYPE_p_wxFileTypeInfo, obj); | |
12952 | Py_INCREF(obj); | |
12953 | return Py_BuildValue((char *)""); | |
12954 | } | |
c370783e | 12955 | static PyObject *_wrap_new_FileType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12956 | PyObject *resultobj; |
12957 | wxFileTypeInfo *arg1 = 0 ; | |
12958 | wxFileType *result; | |
12959 | PyObject * obj0 = 0 ; | |
12960 | char *kwnames[] = { | |
12961 | (char *) "ftInfo", NULL | |
12962 | }; | |
12963 | ||
12964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileType",kwnames,&obj0)) goto fail; | |
12965 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12966 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12967 | SWIG_fail; | |
12968 | if (arg1 == NULL) { | |
12969 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12970 | SWIG_fail; | |
12971 | } | |
12972 | { | |
12973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12974 | result = (wxFileType *)new wxFileType((wxFileTypeInfo const &)*arg1); | |
12975 | ||
12976 | wxPyEndAllowThreads(__tstate); | |
12977 | if (PyErr_Occurred()) SWIG_fail; | |
12978 | } | |
12979 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); | |
12980 | return resultobj; | |
12981 | fail: | |
12982 | return NULL; | |
12983 | } | |
12984 | ||
12985 | ||
c370783e | 12986 | static PyObject *_wrap_delete_FileType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12987 | PyObject *resultobj; |
12988 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12989 | PyObject * obj0 = 0 ; | |
12990 | char *kwnames[] = { | |
12991 | (char *) "self", NULL | |
12992 | }; | |
12993 | ||
12994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileType",kwnames,&obj0)) goto fail; | |
12995 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12996 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12997 | { | |
12998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12999 | delete arg1; | |
13000 | ||
13001 | wxPyEndAllowThreads(__tstate); | |
13002 | if (PyErr_Occurred()) SWIG_fail; | |
13003 | } | |
13004 | Py_INCREF(Py_None); resultobj = Py_None; | |
13005 | return resultobj; | |
13006 | fail: | |
13007 | return NULL; | |
13008 | } | |
13009 | ||
13010 | ||
c370783e | 13011 | static PyObject *_wrap_FileType_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13012 | PyObject *resultobj; |
13013 | wxFileType *arg1 = (wxFileType *) 0 ; | |
13014 | PyObject *result; | |
13015 | PyObject * obj0 = 0 ; | |
13016 | char *kwnames[] = { | |
13017 | (char *) "self", NULL | |
13018 | }; | |
13019 | ||
13020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeType",kwnames,&obj0)) goto fail; | |
13021 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
13022 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13023 | { | |
13024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13025 | result = (PyObject *)wxFileType_GetMimeType(arg1); | |
13026 | ||
13027 | wxPyEndAllowThreads(__tstate); | |
13028 | if (PyErr_Occurred()) SWIG_fail; | |
13029 | } | |
13030 | resultobj = result; | |
13031 | return resultobj; | |
13032 | fail: | |
13033 | return NULL; | |
13034 | } | |
13035 | ||
13036 | ||
c370783e | 13037 | static PyObject *_wrap_FileType_GetMimeTypes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13038 | PyObject *resultobj; |
13039 | wxFileType *arg1 = (wxFileType *) 0 ; | |
13040 | PyObject *result; | |
13041 | PyObject * obj0 = 0 ; | |
13042 | char *kwnames[] = { | |
13043 | (char *) "self", NULL | |
13044 | }; | |
13045 | ||
13046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeTypes",kwnames,&obj0)) goto fail; | |
13047 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
13048 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13049 | { | |
13050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13051 | result = (PyObject *)wxFileType_GetMimeTypes(arg1); | |
13052 | ||
13053 | wxPyEndAllowThreads(__tstate); | |
13054 | if (PyErr_Occurred()) SWIG_fail; | |
13055 | } | |
13056 | resultobj = result; | |
13057 | return resultobj; | |
13058 | fail: | |
13059 | return NULL; | |
13060 | } | |
13061 | ||
13062 | ||
c370783e | 13063 | static PyObject *_wrap_FileType_GetExtensions(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13064 | PyObject *resultobj; |
13065 | wxFileType *arg1 = (wxFileType *) 0 ; | |
13066 | PyObject *result; | |
13067 | PyObject * obj0 = 0 ; | |
13068 | char *kwnames[] = { | |
13069 | (char *) "self", NULL | |
13070 | }; | |
13071 | ||
13072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetExtensions",kwnames,&obj0)) goto fail; | |
13073 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
13074 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13075 | { | |
13076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13077 | result = (PyObject *)wxFileType_GetExtensions(arg1); | |
13078 | ||
13079 | wxPyEndAllowThreads(__tstate); | |
13080 | if (PyErr_Occurred()) SWIG_fail; | |
13081 | } | |
13082 | resultobj = result; | |
13083 | return resultobj; | |
13084 | fail: | |
13085 | return NULL; | |
13086 | } | |
13087 | ||
13088 | ||
c370783e | 13089 | static PyObject *_wrap_FileType_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13090 | PyObject *resultobj; |
13091 | wxFileType *arg1 = (wxFileType *) 0 ; | |
13092 | wxIcon *result; | |
13093 | PyObject * obj0 = 0 ; | |
13094 | char *kwnames[] = { | |
13095 | (char *) "self", NULL | |
13096 | }; | |
13097 | ||
13098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIcon",kwnames,&obj0)) goto fail; | |
13099 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
13100 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13101 | { | |
13102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13103 | result = (wxIcon *)wxFileType_GetIcon(arg1); | |
13104 | ||
13105 | wxPyEndAllowThreads(__tstate); | |
13106 | if (PyErr_Occurred()) SWIG_fail; | |
13107 | } | |
13108 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); | |
13109 | return resultobj; | |
13110 | fail: | |
13111 | return NULL; | |
13112 | } | |
13113 | ||
13114 | ||
c370783e | 13115 | static PyObject *_wrap_FileType_GetIconInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13116 | PyObject *resultobj; |
13117 | wxFileType *arg1 = (wxFileType *) 0 ; | |
13118 | PyObject *result; | |
13119 | PyObject * obj0 = 0 ; | |
13120 | char *kwnames[] = { | |
13121 | (char *) "self", NULL | |
13122 | }; | |
13123 | ||
13124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIconInfo",kwnames,&obj0)) goto fail; | |
13125 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
13126 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13127 | { | |
13128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13129 | result = (PyObject *)wxFileType_GetIconInfo(arg1); | |
13130 | ||
13131 | wxPyEndAllowThreads(__tstate); | |
13132 | if (PyErr_Occurred()) SWIG_fail; | |
13133 | } | |
13134 | resultobj = result; | |
13135 | return resultobj; | |
13136 | fail: | |
13137 | return NULL; | |
13138 | } | |
13139 | ||
13140 | ||
c370783e | 13141 | static PyObject *_wrap_FileType_GetDescription(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13142 | PyObject *resultobj; |
13143 | wxFileType *arg1 = (wxFileType *) 0 ; | |
13144 | PyObject *result; | |
13145 | PyObject * obj0 = 0 ; | |
13146 | char *kwnames[] = { | |
13147 | (char *) "self", NULL | |
13148 | }; | |
13149 | ||
13150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetDescription",kwnames,&obj0)) goto fail; | |
13151 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
13152 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13153 | { | |
13154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13155 | result = (PyObject *)wxFileType_GetDescription(arg1); | |
13156 | ||
13157 | wxPyEndAllowThreads(__tstate); | |
13158 | if (PyErr_Occurred()) SWIG_fail; | |
13159 | } | |
13160 | resultobj = result; | |
13161 | return resultobj; | |
13162 | fail: | |
13163 | return NULL; | |
13164 | } | |
13165 | ||
13166 | ||
c370783e | 13167 | static PyObject *_wrap_FileType_GetOpenCommand(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13168 | PyObject *resultobj; |
13169 | wxFileType *arg1 = (wxFileType *) 0 ; | |
13170 | wxString *arg2 = 0 ; | |
13171 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13172 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13173 | PyObject *result; | |
b411df4a RD |
13174 | bool temp2 = false ; |
13175 | bool temp3 = false ; | |
d55e5bfc RD |
13176 | PyObject * obj0 = 0 ; |
13177 | PyObject * obj1 = 0 ; | |
13178 | PyObject * obj2 = 0 ; | |
13179 | char *kwnames[] = { | |
13180 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
13181 | }; | |
13182 | ||
13183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetOpenCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13184 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
13185 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13186 | { | |
13187 | arg2 = wxString_in_helper(obj1); | |
13188 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 13189 | temp2 = true; |
d55e5bfc RD |
13190 | } |
13191 | if (obj2) { | |
13192 | { | |
13193 | arg3 = wxString_in_helper(obj2); | |
13194 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 13195 | temp3 = true; |
d55e5bfc RD |
13196 | } |
13197 | } | |
13198 | { | |
13199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13200 | result = (PyObject *)wxFileType_GetOpenCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
13201 | ||
13202 | wxPyEndAllowThreads(__tstate); | |
13203 | if (PyErr_Occurred()) SWIG_fail; | |
13204 | } | |
13205 | resultobj = result; | |
13206 | { | |
13207 | if (temp2) | |
13208 | delete arg2; | |
13209 | } | |
13210 | { | |
13211 | if (temp3) | |
13212 | delete arg3; | |
13213 | } | |
13214 | return resultobj; | |
13215 | fail: | |
13216 | { | |
13217 | if (temp2) | |
13218 | delete arg2; | |
13219 | } | |
13220 | { | |
13221 | if (temp3) | |
13222 | delete arg3; | |
13223 | } | |
13224 | return NULL; | |
13225 | } | |
13226 | ||
13227 | ||
c370783e | 13228 | static PyObject *_wrap_FileType_GetPrintCommand(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13229 | PyObject *resultobj; |
13230 | wxFileType *arg1 = (wxFileType *) 0 ; | |
13231 | wxString *arg2 = 0 ; | |
13232 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13233 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13234 | PyObject *result; | |
b411df4a RD |
13235 | bool temp2 = false ; |
13236 | bool temp3 = false ; | |
d55e5bfc RD |
13237 | PyObject * obj0 = 0 ; |
13238 | PyObject * obj1 = 0 ; | |
13239 | PyObject * obj2 = 0 ; | |
13240 | char *kwnames[] = { | |
13241 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
13242 | }; | |
13243 | ||
13244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetPrintCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13245 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
13246 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13247 | { | |
13248 | arg2 = wxString_in_helper(obj1); | |
13249 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 13250 | temp2 = true; |
d55e5bfc RD |
13251 | } |
13252 | if (obj2) { | |
13253 | { | |
13254 | arg3 = wxString_in_helper(obj2); | |
13255 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 13256 | temp3 = true; |
d55e5bfc RD |
13257 | } |
13258 | } | |
13259 | { | |
13260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13261 | result = (PyObject *)wxFileType_GetPrintCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
13262 | ||
13263 | wxPyEndAllowThreads(__tstate); | |
13264 | if (PyErr_Occurred()) SWIG_fail; | |
13265 | } | |
13266 | resultobj = result; | |
13267 | { | |
13268 | if (temp2) | |
13269 | delete arg2; | |
13270 | } | |
13271 | { | |
13272 | if (temp3) | |
13273 | delete arg3; | |
13274 | } | |
13275 | return resultobj; | |
13276 | fail: | |
13277 | { | |
13278 | if (temp2) | |
13279 | delete arg2; | |
13280 | } | |
13281 | { | |
13282 | if (temp3) | |
13283 | delete arg3; | |
13284 | } | |
13285 | return NULL; | |
13286 | } | |
13287 | ||
13288 | ||
c370783e | 13289 | static PyObject *_wrap_FileType_GetAllCommands(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13290 | PyObject *resultobj; |
13291 | wxFileType *arg1 = (wxFileType *) 0 ; | |
13292 | wxString *arg2 = 0 ; | |
13293 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13294 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13295 | PyObject *result; | |
b411df4a RD |
13296 | bool temp2 = false ; |
13297 | bool temp3 = false ; | |
d55e5bfc RD |
13298 | PyObject * obj0 = 0 ; |
13299 | PyObject * obj1 = 0 ; | |
13300 | PyObject * obj2 = 0 ; | |
13301 | char *kwnames[] = { | |
13302 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
13303 | }; | |
13304 | ||
13305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetAllCommands",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13306 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
13307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13308 | { | |
13309 | arg2 = wxString_in_helper(obj1); | |
13310 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 13311 | temp2 = true; |
d55e5bfc RD |
13312 | } |
13313 | if (obj2) { | |
13314 | { | |
13315 | arg3 = wxString_in_helper(obj2); | |
13316 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 13317 | temp3 = true; |
d55e5bfc RD |
13318 | } |
13319 | } | |
13320 | { | |
13321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13322 | result = (PyObject *)wxFileType_GetAllCommands(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
13323 | ||
13324 | wxPyEndAllowThreads(__tstate); | |
13325 | if (PyErr_Occurred()) SWIG_fail; | |
13326 | } | |
13327 | resultobj = result; | |
13328 | { | |
13329 | if (temp2) | |
13330 | delete arg2; | |
13331 | } | |
13332 | { | |
13333 | if (temp3) | |
13334 | delete arg3; | |
13335 | } | |
13336 | return resultobj; | |
13337 | fail: | |
13338 | { | |
13339 | if (temp2) | |
13340 | delete arg2; | |
13341 | } | |
13342 | { | |
13343 | if (temp3) | |
13344 | delete arg3; | |
13345 | } | |
13346 | return NULL; | |
13347 | } | |
13348 | ||
13349 | ||
c370783e | 13350 | static PyObject *_wrap_FileType_SetCommand(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13351 | PyObject *resultobj; |
13352 | wxFileType *arg1 = (wxFileType *) 0 ; | |
13353 | wxString *arg2 = 0 ; | |
13354 | wxString *arg3 = 0 ; | |
b411df4a | 13355 | bool arg4 = (bool) true ; |
d55e5bfc | 13356 | bool result; |
b411df4a RD |
13357 | bool temp2 = false ; |
13358 | bool temp3 = false ; | |
d55e5bfc RD |
13359 | PyObject * obj0 = 0 ; |
13360 | PyObject * obj1 = 0 ; | |
13361 | PyObject * obj2 = 0 ; | |
13362 | PyObject * obj3 = 0 ; | |
13363 | char *kwnames[] = { | |
13364 | (char *) "self",(char *) "cmd",(char *) "verb",(char *) "overwriteprompt", NULL | |
13365 | }; | |
13366 | ||
13367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FileType_SetCommand",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
13368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
13369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13370 | { | |
13371 | arg2 = wxString_in_helper(obj1); | |
13372 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 13373 | temp2 = true; |
d55e5bfc RD |
13374 | } |
13375 | { | |
13376 | arg3 = wxString_in_helper(obj2); | |
13377 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 13378 | temp3 = true; |
d55e5bfc RD |
13379 | } |
13380 | if (obj3) { | |
c370783e | 13381 | arg4 = (bool)SWIG_As_bool(obj3); |
d55e5bfc RD |
13382 | if (PyErr_Occurred()) SWIG_fail; |
13383 | } | |
13384 | { | |
13385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13386 | result = (bool)(arg1)->SetCommand((wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
13387 | ||
13388 | wxPyEndAllowThreads(__tstate); | |
13389 | if (PyErr_Occurred()) SWIG_fail; | |
13390 | } | |
13391 | { | |
13392 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13393 | } | |
13394 | { | |
13395 | if (temp2) | |
13396 | delete arg2; | |
13397 | } | |
13398 | { | |
13399 | if (temp3) | |
13400 | delete arg3; | |
13401 | } | |
13402 | return resultobj; | |
13403 | fail: | |
13404 | { | |
13405 | if (temp2) | |
13406 | delete arg2; | |
13407 | } | |
13408 | { | |
13409 | if (temp3) | |
13410 | delete arg3; | |
13411 | } | |
13412 | return NULL; | |
13413 | } | |
13414 | ||
13415 | ||
c370783e | 13416 | static PyObject *_wrap_FileType_SetDefaultIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13417 | PyObject *resultobj; |
13418 | wxFileType *arg1 = (wxFileType *) 0 ; | |
13419 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
13420 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
13421 | int arg3 = (int) 0 ; | |
13422 | bool result; | |
b411df4a | 13423 | bool temp2 = false ; |
d55e5bfc RD |
13424 | PyObject * obj0 = 0 ; |
13425 | PyObject * obj1 = 0 ; | |
13426 | PyObject * obj2 = 0 ; | |
13427 | char *kwnames[] = { | |
13428 | (char *) "self",(char *) "cmd",(char *) "index", NULL | |
13429 | }; | |
13430 | ||
13431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FileType_SetDefaultIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13432 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
13433 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13434 | if (obj1) { | |
13435 | { | |
13436 | arg2 = wxString_in_helper(obj1); | |
13437 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 13438 | temp2 = true; |
d55e5bfc RD |
13439 | } |
13440 | } | |
13441 | if (obj2) { | |
c370783e | 13442 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
13443 | if (PyErr_Occurred()) SWIG_fail; |
13444 | } | |
13445 | { | |
13446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13447 | result = (bool)(arg1)->SetDefaultIcon((wxString const &)*arg2,arg3); | |
13448 | ||
13449 | wxPyEndAllowThreads(__tstate); | |
13450 | if (PyErr_Occurred()) SWIG_fail; | |
13451 | } | |
13452 | { | |
13453 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13454 | } | |
13455 | { | |
13456 | if (temp2) | |
13457 | delete arg2; | |
13458 | } | |
13459 | return resultobj; | |
13460 | fail: | |
13461 | { | |
13462 | if (temp2) | |
13463 | delete arg2; | |
13464 | } | |
13465 | return NULL; | |
13466 | } | |
13467 | ||
13468 | ||
c370783e | 13469 | static PyObject *_wrap_FileType_Unassociate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13470 | PyObject *resultobj; |
13471 | wxFileType *arg1 = (wxFileType *) 0 ; | |
13472 | bool result; | |
13473 | PyObject * obj0 = 0 ; | |
13474 | char *kwnames[] = { | |
13475 | (char *) "self", NULL | |
13476 | }; | |
13477 | ||
13478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_Unassociate",kwnames,&obj0)) goto fail; | |
13479 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
13480 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13481 | { | |
13482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13483 | result = (bool)(arg1)->Unassociate(); | |
13484 | ||
13485 | wxPyEndAllowThreads(__tstate); | |
13486 | if (PyErr_Occurred()) SWIG_fail; | |
13487 | } | |
13488 | { | |
13489 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13490 | } | |
13491 | return resultobj; | |
13492 | fail: | |
13493 | return NULL; | |
13494 | } | |
13495 | ||
13496 | ||
c370783e | 13497 | static PyObject *_wrap_FileType_ExpandCommand(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13498 | PyObject *resultobj; |
13499 | wxString *arg1 = 0 ; | |
13500 | wxString *arg2 = 0 ; | |
13501 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13502 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13503 | wxString result; | |
b411df4a RD |
13504 | bool temp1 = false ; |
13505 | bool temp2 = false ; | |
13506 | bool temp3 = false ; | |
d55e5bfc RD |
13507 | PyObject * obj0 = 0 ; |
13508 | PyObject * obj1 = 0 ; | |
13509 | PyObject * obj2 = 0 ; | |
13510 | char *kwnames[] = { | |
13511 | (char *) "command",(char *) "filename",(char *) "mimetype", NULL | |
13512 | }; | |
13513 | ||
13514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_ExpandCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13515 | { | |
13516 | arg1 = wxString_in_helper(obj0); | |
13517 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 13518 | temp1 = true; |
d55e5bfc RD |
13519 | } |
13520 | { | |
13521 | arg2 = wxString_in_helper(obj1); | |
13522 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 13523 | temp2 = true; |
d55e5bfc RD |
13524 | } |
13525 | if (obj2) { | |
13526 | { | |
13527 | arg3 = wxString_in_helper(obj2); | |
13528 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 13529 | temp3 = true; |
d55e5bfc RD |
13530 | } |
13531 | } | |
13532 | { | |
13533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13534 | result = FileType_ExpandCommand((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
13535 | ||
13536 | wxPyEndAllowThreads(__tstate); | |
13537 | if (PyErr_Occurred()) SWIG_fail; | |
13538 | } | |
13539 | { | |
13540 | #if wxUSE_UNICODE | |
13541 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13542 | #else | |
13543 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13544 | #endif | |
13545 | } | |
13546 | { | |
13547 | if (temp1) | |
13548 | delete arg1; | |
13549 | } | |
13550 | { | |
13551 | if (temp2) | |
13552 | delete arg2; | |
13553 | } | |
13554 | { | |
13555 | if (temp3) | |
13556 | delete arg3; | |
13557 | } | |
13558 | return resultobj; | |
13559 | fail: | |
13560 | { | |
13561 | if (temp1) | |
13562 | delete arg1; | |
13563 | } | |
13564 | { | |
13565 | if (temp2) | |
13566 | delete arg2; | |
13567 | } | |
13568 | { | |
13569 | if (temp3) | |
13570 | delete arg3; | |
13571 | } | |
13572 | return NULL; | |
13573 | } | |
13574 | ||
13575 | ||
c370783e | 13576 | static PyObject * FileType_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13577 | PyObject *obj; |
13578 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13579 | SWIG_TypeClientData(SWIGTYPE_p_wxFileType, obj); | |
13580 | Py_INCREF(obj); | |
13581 | return Py_BuildValue((char *)""); | |
13582 | } | |
c370783e | 13583 | static int _wrap_TheMimeTypesManager_set(PyObject *) { |
d55e5bfc RD |
13584 | PyErr_SetString(PyExc_TypeError,"Variable TheMimeTypesManager is read-only."); |
13585 | return 1; | |
13586 | } | |
13587 | ||
13588 | ||
13589 | static PyObject *_wrap_TheMimeTypesManager_get() { | |
13590 | PyObject *pyobj; | |
13591 | ||
13592 | pyobj = SWIG_NewPointerObj((void *)(wxTheMimeTypesManager), SWIGTYPE_p_wxMimeTypesManager, 0); | |
13593 | return pyobj; | |
13594 | } | |
13595 | ||
13596 | ||
c370783e | 13597 | static PyObject *_wrap_MimeTypesManager_IsOfType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13598 | PyObject *resultobj; |
13599 | wxString *arg1 = 0 ; | |
13600 | wxString *arg2 = 0 ; | |
13601 | bool result; | |
b411df4a RD |
13602 | bool temp1 = false ; |
13603 | bool temp2 = false ; | |
d55e5bfc RD |
13604 | PyObject * obj0 = 0 ; |
13605 | PyObject * obj1 = 0 ; | |
13606 | char *kwnames[] = { | |
13607 | (char *) "mimeType",(char *) "wildcard", NULL | |
13608 | }; | |
13609 | ||
13610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_IsOfType",kwnames,&obj0,&obj1)) goto fail; | |
13611 | { | |
13612 | arg1 = wxString_in_helper(obj0); | |
13613 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 13614 | temp1 = true; |
d55e5bfc RD |
13615 | } |
13616 | { | |
13617 | arg2 = wxString_in_helper(obj1); | |
13618 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 13619 | temp2 = true; |
d55e5bfc RD |
13620 | } |
13621 | { | |
13622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13623 | result = (bool)wxMimeTypesManager::IsOfType((wxString const &)*arg1,(wxString const &)*arg2); | |
13624 | ||
13625 | wxPyEndAllowThreads(__tstate); | |
13626 | if (PyErr_Occurred()) SWIG_fail; | |
13627 | } | |
13628 | { | |
13629 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13630 | } | |
13631 | { | |
13632 | if (temp1) | |
13633 | delete arg1; | |
13634 | } | |
13635 | { | |
13636 | if (temp2) | |
13637 | delete arg2; | |
13638 | } | |
13639 | return resultobj; | |
13640 | fail: | |
13641 | { | |
13642 | if (temp1) | |
13643 | delete arg1; | |
13644 | } | |
13645 | { | |
13646 | if (temp2) | |
13647 | delete arg2; | |
13648 | } | |
13649 | return NULL; | |
13650 | } | |
13651 | ||
13652 | ||
c370783e | 13653 | static PyObject *_wrap_new_MimeTypesManager(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13654 | PyObject *resultobj; |
13655 | wxMimeTypesManager *result; | |
13656 | char *kwnames[] = { | |
13657 | NULL | |
13658 | }; | |
13659 | ||
13660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MimeTypesManager",kwnames)) goto fail; | |
13661 | { | |
13662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13663 | result = (wxMimeTypesManager *)new wxMimeTypesManager(); | |
13664 | ||
13665 | wxPyEndAllowThreads(__tstate); | |
13666 | if (PyErr_Occurred()) SWIG_fail; | |
13667 | } | |
13668 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMimeTypesManager, 1); | |
13669 | return resultobj; | |
13670 | fail: | |
13671 | return NULL; | |
13672 | } | |
13673 | ||
13674 | ||
c370783e | 13675 | static PyObject *_wrap_MimeTypesManager_Initialize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13676 | PyObject *resultobj; |
13677 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13678 | int arg2 = (int) wxMAILCAP_ALL ; | |
13679 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13680 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
b411df4a | 13681 | bool temp3 = false ; |
d55e5bfc RD |
13682 | PyObject * obj0 = 0 ; |
13683 | PyObject * obj1 = 0 ; | |
13684 | PyObject * obj2 = 0 ; | |
13685 | char *kwnames[] = { | |
13686 | (char *) "self",(char *) "mailcapStyle",(char *) "extraDir", NULL | |
13687 | }; | |
13688 | ||
13689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MimeTypesManager_Initialize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13690 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13692 | if (obj1) { | |
c370783e | 13693 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13694 | if (PyErr_Occurred()) SWIG_fail; |
13695 | } | |
13696 | if (obj2) { | |
13697 | { | |
13698 | arg3 = wxString_in_helper(obj2); | |
13699 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 13700 | temp3 = true; |
d55e5bfc RD |
13701 | } |
13702 | } | |
13703 | { | |
13704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13705 | (arg1)->Initialize(arg2,(wxString const &)*arg3); | |
13706 | ||
13707 | wxPyEndAllowThreads(__tstate); | |
13708 | if (PyErr_Occurred()) SWIG_fail; | |
13709 | } | |
13710 | Py_INCREF(Py_None); resultobj = Py_None; | |
13711 | { | |
13712 | if (temp3) | |
13713 | delete arg3; | |
13714 | } | |
13715 | return resultobj; | |
13716 | fail: | |
13717 | { | |
13718 | if (temp3) | |
13719 | delete arg3; | |
13720 | } | |
13721 | return NULL; | |
13722 | } | |
13723 | ||
13724 | ||
c370783e | 13725 | static PyObject *_wrap_MimeTypesManager_ClearData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13726 | PyObject *resultobj; |
13727 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13728 | PyObject * obj0 = 0 ; | |
13729 | char *kwnames[] = { | |
13730 | (char *) "self", NULL | |
13731 | }; | |
13732 | ||
13733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_ClearData",kwnames,&obj0)) goto fail; | |
13734 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13735 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13736 | { | |
13737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13738 | (arg1)->ClearData(); | |
13739 | ||
13740 | wxPyEndAllowThreads(__tstate); | |
13741 | if (PyErr_Occurred()) SWIG_fail; | |
13742 | } | |
13743 | Py_INCREF(Py_None); resultobj = Py_None; | |
13744 | return resultobj; | |
13745 | fail: | |
13746 | return NULL; | |
13747 | } | |
13748 | ||
13749 | ||
c370783e | 13750 | static PyObject *_wrap_MimeTypesManager_GetFileTypeFromExtension(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13751 | PyObject *resultobj; |
13752 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13753 | wxString *arg2 = 0 ; | |
13754 | wxFileType *result; | |
b411df4a | 13755 | bool temp2 = false ; |
d55e5bfc RD |
13756 | PyObject * obj0 = 0 ; |
13757 | PyObject * obj1 = 0 ; | |
13758 | char *kwnames[] = { | |
13759 | (char *) "self",(char *) "ext", NULL | |
13760 | }; | |
13761 | ||
13762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromExtension",kwnames,&obj0,&obj1)) goto fail; | |
13763 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13764 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13765 | { | |
13766 | arg2 = wxString_in_helper(obj1); | |
13767 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 13768 | temp2 = true; |
d55e5bfc RD |
13769 | } |
13770 | { | |
13771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13772 | result = (wxFileType *)(arg1)->GetFileTypeFromExtension((wxString const &)*arg2); | |
13773 | ||
13774 | wxPyEndAllowThreads(__tstate); | |
13775 | if (PyErr_Occurred()) SWIG_fail; | |
13776 | } | |
13777 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); | |
13778 | { | |
13779 | if (temp2) | |
13780 | delete arg2; | |
13781 | } | |
13782 | return resultobj; | |
13783 | fail: | |
13784 | { | |
13785 | if (temp2) | |
13786 | delete arg2; | |
13787 | } | |
13788 | return NULL; | |
13789 | } | |
13790 | ||
13791 | ||
c370783e | 13792 | static PyObject *_wrap_MimeTypesManager_GetFileTypeFromMimeType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13793 | PyObject *resultobj; |
13794 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13795 | wxString *arg2 = 0 ; | |
13796 | wxFileType *result; | |
b411df4a | 13797 | bool temp2 = false ; |
d55e5bfc RD |
13798 | PyObject * obj0 = 0 ; |
13799 | PyObject * obj1 = 0 ; | |
13800 | char *kwnames[] = { | |
13801 | (char *) "self",(char *) "mimeType", NULL | |
13802 | }; | |
13803 | ||
13804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromMimeType",kwnames,&obj0,&obj1)) goto fail; | |
13805 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13806 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13807 | { | |
13808 | arg2 = wxString_in_helper(obj1); | |
13809 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 13810 | temp2 = true; |
d55e5bfc RD |
13811 | } |
13812 | { | |
13813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13814 | result = (wxFileType *)(arg1)->GetFileTypeFromMimeType((wxString const &)*arg2); | |
13815 | ||
13816 | wxPyEndAllowThreads(__tstate); | |
13817 | if (PyErr_Occurred()) SWIG_fail; | |
13818 | } | |
13819 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); | |
13820 | { | |
13821 | if (temp2) | |
13822 | delete arg2; | |
13823 | } | |
13824 | return resultobj; | |
13825 | fail: | |
13826 | { | |
13827 | if (temp2) | |
13828 | delete arg2; | |
13829 | } | |
13830 | return NULL; | |
13831 | } | |
13832 | ||
13833 | ||
c370783e | 13834 | static PyObject *_wrap_MimeTypesManager_ReadMailcap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13835 | PyObject *resultobj; |
13836 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13837 | wxString *arg2 = 0 ; | |
b411df4a | 13838 | bool arg3 = (bool) false ; |
d55e5bfc | 13839 | bool result; |
b411df4a | 13840 | bool temp2 = false ; |
d55e5bfc RD |
13841 | PyObject * obj0 = 0 ; |
13842 | PyObject * obj1 = 0 ; | |
13843 | PyObject * obj2 = 0 ; | |
13844 | char *kwnames[] = { | |
13845 | (char *) "self",(char *) "filename",(char *) "fallback", NULL | |
13846 | }; | |
13847 | ||
13848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MimeTypesManager_ReadMailcap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13849 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13850 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13851 | { | |
13852 | arg2 = wxString_in_helper(obj1); | |
13853 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 13854 | temp2 = true; |
d55e5bfc RD |
13855 | } |
13856 | if (obj2) { | |
c370783e | 13857 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
13858 | if (PyErr_Occurred()) SWIG_fail; |
13859 | } | |
13860 | { | |
13861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13862 | result = (bool)(arg1)->ReadMailcap((wxString const &)*arg2,arg3); | |
13863 | ||
13864 | wxPyEndAllowThreads(__tstate); | |
13865 | if (PyErr_Occurred()) SWIG_fail; | |
13866 | } | |
13867 | { | |
13868 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13869 | } | |
13870 | { | |
13871 | if (temp2) | |
13872 | delete arg2; | |
13873 | } | |
13874 | return resultobj; | |
13875 | fail: | |
13876 | { | |
13877 | if (temp2) | |
13878 | delete arg2; | |
13879 | } | |
13880 | return NULL; | |
13881 | } | |
13882 | ||
13883 | ||
c370783e | 13884 | static PyObject *_wrap_MimeTypesManager_ReadMimeTypes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13885 | PyObject *resultobj; |
13886 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13887 | wxString *arg2 = 0 ; | |
13888 | bool result; | |
b411df4a | 13889 | bool temp2 = false ; |
d55e5bfc RD |
13890 | PyObject * obj0 = 0 ; |
13891 | PyObject * obj1 = 0 ; | |
13892 | char *kwnames[] = { | |
13893 | (char *) "self",(char *) "filename", NULL | |
13894 | }; | |
13895 | ||
13896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_ReadMimeTypes",kwnames,&obj0,&obj1)) goto fail; | |
13897 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13898 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13899 | { | |
13900 | arg2 = wxString_in_helper(obj1); | |
13901 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 13902 | temp2 = true; |
d55e5bfc RD |
13903 | } |
13904 | { | |
13905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13906 | result = (bool)(arg1)->ReadMimeTypes((wxString const &)*arg2); | |
13907 | ||
13908 | wxPyEndAllowThreads(__tstate); | |
13909 | if (PyErr_Occurred()) SWIG_fail; | |
13910 | } | |
13911 | { | |
13912 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13913 | } | |
13914 | { | |
13915 | if (temp2) | |
13916 | delete arg2; | |
13917 | } | |
13918 | return resultobj; | |
13919 | fail: | |
13920 | { | |
13921 | if (temp2) | |
13922 | delete arg2; | |
13923 | } | |
13924 | return NULL; | |
13925 | } | |
13926 | ||
13927 | ||
c370783e | 13928 | static PyObject *_wrap_MimeTypesManager_EnumAllFileTypes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13929 | PyObject *resultobj; |
13930 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13931 | PyObject *result; | |
13932 | PyObject * obj0 = 0 ; | |
13933 | char *kwnames[] = { | |
13934 | (char *) "self", NULL | |
13935 | }; | |
13936 | ||
13937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_EnumAllFileTypes",kwnames,&obj0)) goto fail; | |
13938 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13939 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13940 | { | |
13941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13942 | result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(arg1); | |
13943 | ||
13944 | wxPyEndAllowThreads(__tstate); | |
13945 | if (PyErr_Occurred()) SWIG_fail; | |
13946 | } | |
13947 | resultobj = result; | |
13948 | return resultobj; | |
13949 | fail: | |
13950 | return NULL; | |
13951 | } | |
13952 | ||
13953 | ||
c370783e | 13954 | static PyObject *_wrap_MimeTypesManager_AddFallback(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13955 | PyObject *resultobj; |
13956 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13957 | wxFileTypeInfo *arg2 = 0 ; | |
13958 | PyObject * obj0 = 0 ; | |
13959 | PyObject * obj1 = 0 ; | |
13960 | char *kwnames[] = { | |
13961 | (char *) "self",(char *) "ft", NULL | |
13962 | }; | |
13963 | ||
13964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_AddFallback",kwnames,&obj0,&obj1)) goto fail; | |
13965 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13966 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13967 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo, | |
13968 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13969 | SWIG_fail; | |
13970 | if (arg2 == NULL) { | |
13971 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13972 | SWIG_fail; | |
13973 | } | |
13974 | { | |
13975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13976 | (arg1)->AddFallback((wxFileTypeInfo const &)*arg2); | |
13977 | ||
13978 | wxPyEndAllowThreads(__tstate); | |
13979 | if (PyErr_Occurred()) SWIG_fail; | |
13980 | } | |
13981 | Py_INCREF(Py_None); resultobj = Py_None; | |
13982 | return resultobj; | |
13983 | fail: | |
13984 | return NULL; | |
13985 | } | |
13986 | ||
13987 | ||
c370783e | 13988 | static PyObject *_wrap_MimeTypesManager_Associate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13989 | PyObject *resultobj; |
13990 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13991 | wxFileTypeInfo *arg2 = 0 ; | |
13992 | wxFileType *result; | |
13993 | PyObject * obj0 = 0 ; | |
13994 | PyObject * obj1 = 0 ; | |
13995 | char *kwnames[] = { | |
13996 | (char *) "self",(char *) "ftInfo", NULL | |
13997 | }; | |
13998 | ||
13999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Associate",kwnames,&obj0,&obj1)) goto fail; | |
14000 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
14001 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14002 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo, | |
14003 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
14004 | SWIG_fail; | |
14005 | if (arg2 == NULL) { | |
14006 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
14007 | SWIG_fail; | |
14008 | } | |
14009 | { | |
14010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14011 | result = (wxFileType *)(arg1)->Associate((wxFileTypeInfo const &)*arg2); | |
14012 | ||
14013 | wxPyEndAllowThreads(__tstate); | |
14014 | if (PyErr_Occurred()) SWIG_fail; | |
14015 | } | |
14016 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); | |
14017 | return resultobj; | |
14018 | fail: | |
14019 | return NULL; | |
14020 | } | |
14021 | ||
14022 | ||
c370783e | 14023 | static PyObject *_wrap_MimeTypesManager_Unassociate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14024 | PyObject *resultobj; |
14025 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
14026 | wxFileType *arg2 = (wxFileType *) 0 ; | |
14027 | bool result; | |
14028 | PyObject * obj0 = 0 ; | |
14029 | PyObject * obj1 = 0 ; | |
14030 | char *kwnames[] = { | |
14031 | (char *) "self",(char *) "ft", NULL | |
14032 | }; | |
14033 | ||
14034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Unassociate",kwnames,&obj0,&obj1)) goto fail; | |
14035 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
14036 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14037 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileType, | |
14038 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14039 | { | |
14040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14041 | result = (bool)(arg1)->Unassociate(arg2); | |
14042 | ||
14043 | wxPyEndAllowThreads(__tstate); | |
14044 | if (PyErr_Occurred()) SWIG_fail; | |
14045 | } | |
14046 | { | |
14047 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14048 | } | |
14049 | return resultobj; | |
14050 | fail: | |
14051 | return NULL; | |
14052 | } | |
14053 | ||
14054 | ||
c370783e | 14055 | static PyObject *_wrap_delete_MimeTypesManager(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14056 | PyObject *resultobj; |
14057 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
14058 | PyObject * obj0 = 0 ; | |
14059 | char *kwnames[] = { | |
14060 | (char *) "self", NULL | |
14061 | }; | |
14062 | ||
14063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MimeTypesManager",kwnames,&obj0)) goto fail; | |
14064 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
14065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14066 | { | |
14067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14068 | delete arg1; | |
14069 | ||
14070 | wxPyEndAllowThreads(__tstate); | |
14071 | if (PyErr_Occurred()) SWIG_fail; | |
14072 | } | |
14073 | Py_INCREF(Py_None); resultobj = Py_None; | |
14074 | return resultobj; | |
14075 | fail: | |
14076 | return NULL; | |
14077 | } | |
14078 | ||
14079 | ||
c370783e | 14080 | static PyObject * MimeTypesManager_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
14081 | PyObject *obj; |
14082 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14083 | SWIG_TypeClientData(SWIGTYPE_p_wxMimeTypesManager, obj); | |
14084 | Py_INCREF(obj); | |
14085 | return Py_BuildValue((char *)""); | |
14086 | } | |
c370783e | 14087 | static int _wrap_ART_TOOLBAR_set(PyObject *) { |
d55e5bfc RD |
14088 | PyErr_SetString(PyExc_TypeError,"Variable ART_TOOLBAR is read-only."); |
14089 | return 1; | |
14090 | } | |
14091 | ||
14092 | ||
14093 | static PyObject *_wrap_ART_TOOLBAR_get() { | |
14094 | PyObject *pyobj; | |
14095 | ||
14096 | { | |
14097 | #if wxUSE_UNICODE | |
14098 | pyobj = PyUnicode_FromWideChar((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len()); | |
14099 | #else | |
14100 | pyobj = PyString_FromStringAndSize((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len()); | |
14101 | #endif | |
14102 | } | |
14103 | return pyobj; | |
14104 | } | |
14105 | ||
14106 | ||
c370783e | 14107 | static int _wrap_ART_MENU_set(PyObject *) { |
d55e5bfc RD |
14108 | PyErr_SetString(PyExc_TypeError,"Variable ART_MENU is read-only."); |
14109 | return 1; | |
14110 | } | |
14111 | ||
14112 | ||
14113 | static PyObject *_wrap_ART_MENU_get() { | |
14114 | PyObject *pyobj; | |
14115 | ||
14116 | { | |
14117 | #if wxUSE_UNICODE | |
14118 | pyobj = PyUnicode_FromWideChar((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len()); | |
14119 | #else | |
14120 | pyobj = PyString_FromStringAndSize((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len()); | |
14121 | #endif | |
14122 | } | |
14123 | return pyobj; | |
14124 | } | |
14125 | ||
14126 | ||
c370783e | 14127 | static int _wrap_ART_FRAME_ICON_set(PyObject *) { |
d55e5bfc RD |
14128 | PyErr_SetString(PyExc_TypeError,"Variable ART_FRAME_ICON is read-only."); |
14129 | return 1; | |
14130 | } | |
14131 | ||
14132 | ||
14133 | static PyObject *_wrap_ART_FRAME_ICON_get() { | |
14134 | PyObject *pyobj; | |
14135 | ||
14136 | { | |
14137 | #if wxUSE_UNICODE | |
14138 | pyobj = PyUnicode_FromWideChar((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len()); | |
14139 | #else | |
14140 | pyobj = PyString_FromStringAndSize((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len()); | |
14141 | #endif | |
14142 | } | |
14143 | return pyobj; | |
14144 | } | |
14145 | ||
14146 | ||
c370783e | 14147 | static int _wrap_ART_CMN_DIALOG_set(PyObject *) { |
d55e5bfc RD |
14148 | PyErr_SetString(PyExc_TypeError,"Variable ART_CMN_DIALOG is read-only."); |
14149 | return 1; | |
14150 | } | |
14151 | ||
14152 | ||
14153 | static PyObject *_wrap_ART_CMN_DIALOG_get() { | |
14154 | PyObject *pyobj; | |
14155 | ||
14156 | { | |
14157 | #if wxUSE_UNICODE | |
14158 | pyobj = PyUnicode_FromWideChar((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len()); | |
14159 | #else | |
14160 | pyobj = PyString_FromStringAndSize((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len()); | |
14161 | #endif | |
14162 | } | |
14163 | return pyobj; | |
14164 | } | |
14165 | ||
14166 | ||
c370783e | 14167 | static int _wrap_ART_HELP_BROWSER_set(PyObject *) { |
d55e5bfc RD |
14168 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BROWSER is read-only."); |
14169 | return 1; | |
14170 | } | |
14171 | ||
14172 | ||
14173 | static PyObject *_wrap_ART_HELP_BROWSER_get() { | |
14174 | PyObject *pyobj; | |
14175 | ||
14176 | { | |
14177 | #if wxUSE_UNICODE | |
14178 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len()); | |
14179 | #else | |
14180 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len()); | |
14181 | #endif | |
14182 | } | |
14183 | return pyobj; | |
14184 | } | |
14185 | ||
14186 | ||
c370783e | 14187 | static int _wrap_ART_MESSAGE_BOX_set(PyObject *) { |
d55e5bfc RD |
14188 | PyErr_SetString(PyExc_TypeError,"Variable ART_MESSAGE_BOX is read-only."); |
14189 | return 1; | |
14190 | } | |
14191 | ||
14192 | ||
14193 | static PyObject *_wrap_ART_MESSAGE_BOX_get() { | |
14194 | PyObject *pyobj; | |
14195 | ||
14196 | { | |
14197 | #if wxUSE_UNICODE | |
14198 | pyobj = PyUnicode_FromWideChar((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len()); | |
14199 | #else | |
14200 | pyobj = PyString_FromStringAndSize((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len()); | |
14201 | #endif | |
14202 | } | |
14203 | return pyobj; | |
14204 | } | |
14205 | ||
14206 | ||
c370783e | 14207 | static int _wrap_ART_BUTTON_set(PyObject *) { |
4cf4100f RD |
14208 | PyErr_SetString(PyExc_TypeError,"Variable ART_BUTTON is read-only."); |
14209 | return 1; | |
14210 | } | |
14211 | ||
14212 | ||
14213 | static PyObject *_wrap_ART_BUTTON_get() { | |
14214 | PyObject *pyobj; | |
14215 | ||
14216 | { | |
14217 | #if wxUSE_UNICODE | |
14218 | pyobj = PyUnicode_FromWideChar((&wxPyART_BUTTON)->c_str(), (&wxPyART_BUTTON)->Len()); | |
14219 | #else | |
14220 | pyobj = PyString_FromStringAndSize((&wxPyART_BUTTON)->c_str(), (&wxPyART_BUTTON)->Len()); | |
14221 | #endif | |
14222 | } | |
14223 | return pyobj; | |
14224 | } | |
14225 | ||
14226 | ||
c370783e | 14227 | static int _wrap_ART_OTHER_set(PyObject *) { |
d55e5bfc RD |
14228 | PyErr_SetString(PyExc_TypeError,"Variable ART_OTHER is read-only."); |
14229 | return 1; | |
14230 | } | |
14231 | ||
14232 | ||
14233 | static PyObject *_wrap_ART_OTHER_get() { | |
14234 | PyObject *pyobj; | |
14235 | ||
14236 | { | |
14237 | #if wxUSE_UNICODE | |
14238 | pyobj = PyUnicode_FromWideChar((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len()); | |
14239 | #else | |
14240 | pyobj = PyString_FromStringAndSize((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len()); | |
14241 | #endif | |
14242 | } | |
14243 | return pyobj; | |
14244 | } | |
14245 | ||
14246 | ||
c370783e | 14247 | static int _wrap_ART_ADD_BOOKMARK_set(PyObject *) { |
d55e5bfc RD |
14248 | PyErr_SetString(PyExc_TypeError,"Variable ART_ADD_BOOKMARK is read-only."); |
14249 | return 1; | |
14250 | } | |
14251 | ||
14252 | ||
14253 | static PyObject *_wrap_ART_ADD_BOOKMARK_get() { | |
14254 | PyObject *pyobj; | |
14255 | ||
14256 | { | |
14257 | #if wxUSE_UNICODE | |
14258 | pyobj = PyUnicode_FromWideChar((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len()); | |
14259 | #else | |
14260 | pyobj = PyString_FromStringAndSize((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len()); | |
14261 | #endif | |
14262 | } | |
14263 | return pyobj; | |
14264 | } | |
14265 | ||
14266 | ||
c370783e | 14267 | static int _wrap_ART_DEL_BOOKMARK_set(PyObject *) { |
d55e5bfc RD |
14268 | PyErr_SetString(PyExc_TypeError,"Variable ART_DEL_BOOKMARK is read-only."); |
14269 | return 1; | |
14270 | } | |
14271 | ||
14272 | ||
14273 | static PyObject *_wrap_ART_DEL_BOOKMARK_get() { | |
14274 | PyObject *pyobj; | |
14275 | ||
14276 | { | |
14277 | #if wxUSE_UNICODE | |
14278 | pyobj = PyUnicode_FromWideChar((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len()); | |
14279 | #else | |
14280 | pyobj = PyString_FromStringAndSize((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len()); | |
14281 | #endif | |
14282 | } | |
14283 | return pyobj; | |
14284 | } | |
14285 | ||
14286 | ||
c370783e | 14287 | static int _wrap_ART_HELP_SIDE_PANEL_set(PyObject *) { |
d55e5bfc RD |
14288 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SIDE_PANEL is read-only."); |
14289 | return 1; | |
14290 | } | |
14291 | ||
14292 | ||
14293 | static PyObject *_wrap_ART_HELP_SIDE_PANEL_get() { | |
14294 | PyObject *pyobj; | |
14295 | ||
14296 | { | |
14297 | #if wxUSE_UNICODE | |
14298 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len()); | |
14299 | #else | |
14300 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len()); | |
14301 | #endif | |
14302 | } | |
14303 | return pyobj; | |
14304 | } | |
14305 | ||
14306 | ||
c370783e | 14307 | static int _wrap_ART_HELP_SETTINGS_set(PyObject *) { |
d55e5bfc RD |
14308 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SETTINGS is read-only."); |
14309 | return 1; | |
14310 | } | |
14311 | ||
14312 | ||
14313 | static PyObject *_wrap_ART_HELP_SETTINGS_get() { | |
14314 | PyObject *pyobj; | |
14315 | ||
14316 | { | |
14317 | #if wxUSE_UNICODE | |
14318 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len()); | |
14319 | #else | |
14320 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len()); | |
14321 | #endif | |
14322 | } | |
14323 | return pyobj; | |
14324 | } | |
14325 | ||
14326 | ||
c370783e | 14327 | static int _wrap_ART_HELP_BOOK_set(PyObject *) { |
d55e5bfc RD |
14328 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BOOK is read-only."); |
14329 | return 1; | |
14330 | } | |
14331 | ||
14332 | ||
14333 | static PyObject *_wrap_ART_HELP_BOOK_get() { | |
14334 | PyObject *pyobj; | |
14335 | ||
14336 | { | |
14337 | #if wxUSE_UNICODE | |
14338 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len()); | |
14339 | #else | |
14340 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len()); | |
14341 | #endif | |
14342 | } | |
14343 | return pyobj; | |
14344 | } | |
14345 | ||
14346 | ||
c370783e | 14347 | static int _wrap_ART_HELP_FOLDER_set(PyObject *) { |
d55e5bfc RD |
14348 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_FOLDER is read-only."); |
14349 | return 1; | |
14350 | } | |
14351 | ||
14352 | ||
14353 | static PyObject *_wrap_ART_HELP_FOLDER_get() { | |
14354 | PyObject *pyobj; | |
14355 | ||
14356 | { | |
14357 | #if wxUSE_UNICODE | |
14358 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len()); | |
14359 | #else | |
14360 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len()); | |
14361 | #endif | |
14362 | } | |
14363 | return pyobj; | |
14364 | } | |
14365 | ||
14366 | ||
c370783e | 14367 | static int _wrap_ART_HELP_PAGE_set(PyObject *) { |
d55e5bfc RD |
14368 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_PAGE is read-only."); |
14369 | return 1; | |
14370 | } | |
14371 | ||
14372 | ||
14373 | static PyObject *_wrap_ART_HELP_PAGE_get() { | |
14374 | PyObject *pyobj; | |
14375 | ||
14376 | { | |
14377 | #if wxUSE_UNICODE | |
14378 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len()); | |
14379 | #else | |
14380 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len()); | |
14381 | #endif | |
14382 | } | |
14383 | return pyobj; | |
14384 | } | |
14385 | ||
14386 | ||
c370783e | 14387 | static int _wrap_ART_GO_BACK_set(PyObject *) { |
d55e5bfc RD |
14388 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_BACK is read-only."); |
14389 | return 1; | |
14390 | } | |
14391 | ||
14392 | ||
14393 | static PyObject *_wrap_ART_GO_BACK_get() { | |
14394 | PyObject *pyobj; | |
14395 | ||
14396 | { | |
14397 | #if wxUSE_UNICODE | |
14398 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len()); | |
14399 | #else | |
14400 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len()); | |
14401 | #endif | |
14402 | } | |
14403 | return pyobj; | |
14404 | } | |
14405 | ||
14406 | ||
c370783e | 14407 | static int _wrap_ART_GO_FORWARD_set(PyObject *) { |
d55e5bfc RD |
14408 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_FORWARD is read-only."); |
14409 | return 1; | |
14410 | } | |
14411 | ||
14412 | ||
14413 | static PyObject *_wrap_ART_GO_FORWARD_get() { | |
14414 | PyObject *pyobj; | |
14415 | ||
14416 | { | |
14417 | #if wxUSE_UNICODE | |
14418 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len()); | |
14419 | #else | |
14420 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len()); | |
14421 | #endif | |
14422 | } | |
14423 | return pyobj; | |
14424 | } | |
14425 | ||
14426 | ||
c370783e | 14427 | static int _wrap_ART_GO_UP_set(PyObject *) { |
d55e5bfc RD |
14428 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_UP is read-only."); |
14429 | return 1; | |
14430 | } | |
14431 | ||
14432 | ||
14433 | static PyObject *_wrap_ART_GO_UP_get() { | |
14434 | PyObject *pyobj; | |
14435 | ||
14436 | { | |
14437 | #if wxUSE_UNICODE | |
14438 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len()); | |
14439 | #else | |
14440 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len()); | |
14441 | #endif | |
14442 | } | |
14443 | return pyobj; | |
14444 | } | |
14445 | ||
14446 | ||
c370783e | 14447 | static int _wrap_ART_GO_DOWN_set(PyObject *) { |
d55e5bfc RD |
14448 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DOWN is read-only."); |
14449 | return 1; | |
14450 | } | |
14451 | ||
14452 | ||
14453 | static PyObject *_wrap_ART_GO_DOWN_get() { | |
14454 | PyObject *pyobj; | |
14455 | ||
14456 | { | |
14457 | #if wxUSE_UNICODE | |
14458 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len()); | |
14459 | #else | |
14460 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len()); | |
14461 | #endif | |
14462 | } | |
14463 | return pyobj; | |
14464 | } | |
14465 | ||
14466 | ||
c370783e | 14467 | static int _wrap_ART_GO_TO_PARENT_set(PyObject *) { |
d55e5bfc RD |
14468 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_TO_PARENT is read-only."); |
14469 | return 1; | |
14470 | } | |
14471 | ||
14472 | ||
14473 | static PyObject *_wrap_ART_GO_TO_PARENT_get() { | |
14474 | PyObject *pyobj; | |
14475 | ||
14476 | { | |
14477 | #if wxUSE_UNICODE | |
14478 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len()); | |
14479 | #else | |
14480 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len()); | |
14481 | #endif | |
14482 | } | |
14483 | return pyobj; | |
14484 | } | |
14485 | ||
14486 | ||
c370783e | 14487 | static int _wrap_ART_GO_HOME_set(PyObject *) { |
d55e5bfc RD |
14488 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_HOME is read-only."); |
14489 | return 1; | |
14490 | } | |
14491 | ||
14492 | ||
14493 | static PyObject *_wrap_ART_GO_HOME_get() { | |
14494 | PyObject *pyobj; | |
14495 | ||
14496 | { | |
14497 | #if wxUSE_UNICODE | |
14498 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len()); | |
14499 | #else | |
14500 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len()); | |
14501 | #endif | |
14502 | } | |
14503 | return pyobj; | |
14504 | } | |
14505 | ||
14506 | ||
c370783e | 14507 | static int _wrap_ART_FILE_OPEN_set(PyObject *) { |
d55e5bfc RD |
14508 | PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_OPEN is read-only."); |
14509 | return 1; | |
14510 | } | |
14511 | ||
14512 | ||
14513 | static PyObject *_wrap_ART_FILE_OPEN_get() { | |
14514 | PyObject *pyobj; | |
14515 | ||
14516 | { | |
14517 | #if wxUSE_UNICODE | |
14518 | pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len()); | |
14519 | #else | |
14520 | pyobj = PyString_FromStringAndSize((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len()); | |
14521 | #endif | |
14522 | } | |
14523 | return pyobj; | |
14524 | } | |
14525 | ||
14526 | ||
c370783e | 14527 | static int _wrap_ART_PRINT_set(PyObject *) { |
d55e5bfc RD |
14528 | PyErr_SetString(PyExc_TypeError,"Variable ART_PRINT is read-only."); |
14529 | return 1; | |
14530 | } | |
14531 | ||
14532 | ||
14533 | static PyObject *_wrap_ART_PRINT_get() { | |
14534 | PyObject *pyobj; | |
14535 | ||
14536 | { | |
14537 | #if wxUSE_UNICODE | |
14538 | pyobj = PyUnicode_FromWideChar((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len()); | |
14539 | #else | |
14540 | pyobj = PyString_FromStringAndSize((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len()); | |
14541 | #endif | |
14542 | } | |
14543 | return pyobj; | |
14544 | } | |
14545 | ||
14546 | ||
c370783e | 14547 | static int _wrap_ART_HELP_set(PyObject *) { |
d55e5bfc RD |
14548 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP is read-only."); |
14549 | return 1; | |
14550 | } | |
14551 | ||
14552 | ||
14553 | static PyObject *_wrap_ART_HELP_get() { | |
14554 | PyObject *pyobj; | |
14555 | ||
14556 | { | |
14557 | #if wxUSE_UNICODE | |
14558 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len()); | |
14559 | #else | |
14560 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len()); | |
14561 | #endif | |
14562 | } | |
14563 | return pyobj; | |
14564 | } | |
14565 | ||
14566 | ||
c370783e | 14567 | static int _wrap_ART_TIP_set(PyObject *) { |
d55e5bfc RD |
14568 | PyErr_SetString(PyExc_TypeError,"Variable ART_TIP is read-only."); |
14569 | return 1; | |
14570 | } | |
14571 | ||
14572 | ||
14573 | static PyObject *_wrap_ART_TIP_get() { | |
14574 | PyObject *pyobj; | |
14575 | ||
14576 | { | |
14577 | #if wxUSE_UNICODE | |
14578 | pyobj = PyUnicode_FromWideChar((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len()); | |
14579 | #else | |
14580 | pyobj = PyString_FromStringAndSize((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len()); | |
14581 | #endif | |
14582 | } | |
14583 | return pyobj; | |
14584 | } | |
14585 | ||
14586 | ||
c370783e | 14587 | static int _wrap_ART_REPORT_VIEW_set(PyObject *) { |
d55e5bfc RD |
14588 | PyErr_SetString(PyExc_TypeError,"Variable ART_REPORT_VIEW is read-only."); |
14589 | return 1; | |
14590 | } | |
14591 | ||
14592 | ||
14593 | static PyObject *_wrap_ART_REPORT_VIEW_get() { | |
14594 | PyObject *pyobj; | |
14595 | ||
14596 | { | |
14597 | #if wxUSE_UNICODE | |
14598 | pyobj = PyUnicode_FromWideChar((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len()); | |
14599 | #else | |
14600 | pyobj = PyString_FromStringAndSize((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len()); | |
14601 | #endif | |
14602 | } | |
14603 | return pyobj; | |
14604 | } | |
14605 | ||
14606 | ||
c370783e | 14607 | static int _wrap_ART_LIST_VIEW_set(PyObject *) { |
d55e5bfc RD |
14608 | PyErr_SetString(PyExc_TypeError,"Variable ART_LIST_VIEW is read-only."); |
14609 | return 1; | |
14610 | } | |
14611 | ||
14612 | ||
14613 | static PyObject *_wrap_ART_LIST_VIEW_get() { | |
14614 | PyObject *pyobj; | |
14615 | ||
14616 | { | |
14617 | #if wxUSE_UNICODE | |
14618 | pyobj = PyUnicode_FromWideChar((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len()); | |
14619 | #else | |
14620 | pyobj = PyString_FromStringAndSize((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len()); | |
14621 | #endif | |
14622 | } | |
14623 | return pyobj; | |
14624 | } | |
14625 | ||
14626 | ||
c370783e | 14627 | static int _wrap_ART_NEW_DIR_set(PyObject *) { |
d55e5bfc RD |
14628 | PyErr_SetString(PyExc_TypeError,"Variable ART_NEW_DIR is read-only."); |
14629 | return 1; | |
14630 | } | |
14631 | ||
14632 | ||
14633 | static PyObject *_wrap_ART_NEW_DIR_get() { | |
14634 | PyObject *pyobj; | |
14635 | ||
14636 | { | |
14637 | #if wxUSE_UNICODE | |
14638 | pyobj = PyUnicode_FromWideChar((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len()); | |
14639 | #else | |
14640 | pyobj = PyString_FromStringAndSize((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len()); | |
14641 | #endif | |
14642 | } | |
14643 | return pyobj; | |
14644 | } | |
14645 | ||
14646 | ||
f78cc896 RD |
14647 | static int _wrap_ART_HARDDISK_set(PyObject *) { |
14648 | PyErr_SetString(PyExc_TypeError,"Variable ART_HARDDISK is read-only."); | |
14649 | return 1; | |
14650 | } | |
14651 | ||
14652 | ||
14653 | static PyObject *_wrap_ART_HARDDISK_get() { | |
14654 | PyObject *pyobj; | |
14655 | ||
14656 | { | |
14657 | #if wxUSE_UNICODE | |
14658 | pyobj = PyUnicode_FromWideChar((&wxPyART_HARDDISK)->c_str(), (&wxPyART_HARDDISK)->Len()); | |
14659 | #else | |
14660 | pyobj = PyString_FromStringAndSize((&wxPyART_HARDDISK)->c_str(), (&wxPyART_HARDDISK)->Len()); | |
14661 | #endif | |
14662 | } | |
14663 | return pyobj; | |
14664 | } | |
14665 | ||
14666 | ||
14667 | static int _wrap_ART_FLOPPY_set(PyObject *) { | |
14668 | PyErr_SetString(PyExc_TypeError,"Variable ART_FLOPPY is read-only."); | |
14669 | return 1; | |
14670 | } | |
14671 | ||
14672 | ||
14673 | static PyObject *_wrap_ART_FLOPPY_get() { | |
14674 | PyObject *pyobj; | |
14675 | ||
14676 | { | |
14677 | #if wxUSE_UNICODE | |
14678 | pyobj = PyUnicode_FromWideChar((&wxPyART_FLOPPY)->c_str(), (&wxPyART_FLOPPY)->Len()); | |
14679 | #else | |
14680 | pyobj = PyString_FromStringAndSize((&wxPyART_FLOPPY)->c_str(), (&wxPyART_FLOPPY)->Len()); | |
14681 | #endif | |
14682 | } | |
14683 | return pyobj; | |
14684 | } | |
14685 | ||
14686 | ||
14687 | static int _wrap_ART_CDROM_set(PyObject *) { | |
14688 | PyErr_SetString(PyExc_TypeError,"Variable ART_CDROM is read-only."); | |
14689 | return 1; | |
14690 | } | |
14691 | ||
14692 | ||
14693 | static PyObject *_wrap_ART_CDROM_get() { | |
14694 | PyObject *pyobj; | |
14695 | ||
14696 | { | |
14697 | #if wxUSE_UNICODE | |
14698 | pyobj = PyUnicode_FromWideChar((&wxPyART_CDROM)->c_str(), (&wxPyART_CDROM)->Len()); | |
14699 | #else | |
14700 | pyobj = PyString_FromStringAndSize((&wxPyART_CDROM)->c_str(), (&wxPyART_CDROM)->Len()); | |
14701 | #endif | |
14702 | } | |
14703 | return pyobj; | |
14704 | } | |
14705 | ||
14706 | ||
14707 | static int _wrap_ART_REMOVABLE_set(PyObject *) { | |
14708 | PyErr_SetString(PyExc_TypeError,"Variable ART_REMOVABLE is read-only."); | |
14709 | return 1; | |
14710 | } | |
14711 | ||
14712 | ||
14713 | static PyObject *_wrap_ART_REMOVABLE_get() { | |
14714 | PyObject *pyobj; | |
14715 | ||
14716 | { | |
14717 | #if wxUSE_UNICODE | |
14718 | pyobj = PyUnicode_FromWideChar((&wxPyART_REMOVABLE)->c_str(), (&wxPyART_REMOVABLE)->Len()); | |
14719 | #else | |
14720 | pyobj = PyString_FromStringAndSize((&wxPyART_REMOVABLE)->c_str(), (&wxPyART_REMOVABLE)->Len()); | |
14721 | #endif | |
14722 | } | |
14723 | return pyobj; | |
14724 | } | |
14725 | ||
14726 | ||
c370783e | 14727 | static int _wrap_ART_FOLDER_set(PyObject *) { |
d55e5bfc RD |
14728 | PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER is read-only."); |
14729 | return 1; | |
14730 | } | |
14731 | ||
14732 | ||
14733 | static PyObject *_wrap_ART_FOLDER_get() { | |
14734 | PyObject *pyobj; | |
14735 | ||
14736 | { | |
14737 | #if wxUSE_UNICODE | |
14738 | pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len()); | |
14739 | #else | |
14740 | pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len()); | |
14741 | #endif | |
14742 | } | |
14743 | return pyobj; | |
14744 | } | |
14745 | ||
14746 | ||
f78cc896 RD |
14747 | static int _wrap_ART_FOLDER_OPEN_set(PyObject *) { |
14748 | PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER_OPEN is read-only."); | |
14749 | return 1; | |
14750 | } | |
14751 | ||
14752 | ||
14753 | static PyObject *_wrap_ART_FOLDER_OPEN_get() { | |
14754 | PyObject *pyobj; | |
14755 | ||
14756 | { | |
14757 | #if wxUSE_UNICODE | |
14758 | pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER_OPEN)->c_str(), (&wxPyART_FOLDER_OPEN)->Len()); | |
14759 | #else | |
14760 | pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER_OPEN)->c_str(), (&wxPyART_FOLDER_OPEN)->Len()); | |
14761 | #endif | |
14762 | } | |
14763 | return pyobj; | |
14764 | } | |
14765 | ||
14766 | ||
c370783e | 14767 | static int _wrap_ART_GO_DIR_UP_set(PyObject *) { |
d55e5bfc RD |
14768 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DIR_UP is read-only."); |
14769 | return 1; | |
14770 | } | |
14771 | ||
14772 | ||
14773 | static PyObject *_wrap_ART_GO_DIR_UP_get() { | |
14774 | PyObject *pyobj; | |
14775 | ||
14776 | { | |
14777 | #if wxUSE_UNICODE | |
14778 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len()); | |
14779 | #else | |
14780 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len()); | |
14781 | #endif | |
14782 | } | |
14783 | return pyobj; | |
14784 | } | |
14785 | ||
14786 | ||
c370783e | 14787 | static int _wrap_ART_EXECUTABLE_FILE_set(PyObject *) { |
d55e5bfc RD |
14788 | PyErr_SetString(PyExc_TypeError,"Variable ART_EXECUTABLE_FILE is read-only."); |
14789 | return 1; | |
14790 | } | |
14791 | ||
14792 | ||
14793 | static PyObject *_wrap_ART_EXECUTABLE_FILE_get() { | |
14794 | PyObject *pyobj; | |
14795 | ||
14796 | { | |
14797 | #if wxUSE_UNICODE | |
14798 | pyobj = PyUnicode_FromWideChar((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len()); | |
14799 | #else | |
14800 | pyobj = PyString_FromStringAndSize((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len()); | |
14801 | #endif | |
14802 | } | |
14803 | return pyobj; | |
14804 | } | |
14805 | ||
14806 | ||
c370783e | 14807 | static int _wrap_ART_NORMAL_FILE_set(PyObject *) { |
d55e5bfc RD |
14808 | PyErr_SetString(PyExc_TypeError,"Variable ART_NORMAL_FILE is read-only."); |
14809 | return 1; | |
14810 | } | |
14811 | ||
14812 | ||
14813 | static PyObject *_wrap_ART_NORMAL_FILE_get() { | |
14814 | PyObject *pyobj; | |
14815 | ||
14816 | { | |
14817 | #if wxUSE_UNICODE | |
14818 | pyobj = PyUnicode_FromWideChar((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len()); | |
14819 | #else | |
14820 | pyobj = PyString_FromStringAndSize((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len()); | |
14821 | #endif | |
14822 | } | |
14823 | return pyobj; | |
14824 | } | |
14825 | ||
14826 | ||
c370783e | 14827 | static int _wrap_ART_TICK_MARK_set(PyObject *) { |
d55e5bfc RD |
14828 | PyErr_SetString(PyExc_TypeError,"Variable ART_TICK_MARK is read-only."); |
14829 | return 1; | |
14830 | } | |
14831 | ||
14832 | ||
14833 | static PyObject *_wrap_ART_TICK_MARK_get() { | |
14834 | PyObject *pyobj; | |
14835 | ||
14836 | { | |
14837 | #if wxUSE_UNICODE | |
14838 | pyobj = PyUnicode_FromWideChar((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len()); | |
14839 | #else | |
14840 | pyobj = PyString_FromStringAndSize((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len()); | |
14841 | #endif | |
14842 | } | |
14843 | return pyobj; | |
14844 | } | |
14845 | ||
14846 | ||
c370783e | 14847 | static int _wrap_ART_CROSS_MARK_set(PyObject *) { |
d55e5bfc RD |
14848 | PyErr_SetString(PyExc_TypeError,"Variable ART_CROSS_MARK is read-only."); |
14849 | return 1; | |
14850 | } | |
14851 | ||
14852 | ||
14853 | static PyObject *_wrap_ART_CROSS_MARK_get() { | |
14854 | PyObject *pyobj; | |
14855 | ||
14856 | { | |
14857 | #if wxUSE_UNICODE | |
14858 | pyobj = PyUnicode_FromWideChar((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len()); | |
14859 | #else | |
14860 | pyobj = PyString_FromStringAndSize((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len()); | |
14861 | #endif | |
14862 | } | |
14863 | return pyobj; | |
14864 | } | |
14865 | ||
14866 | ||
c370783e | 14867 | static int _wrap_ART_ERROR_set(PyObject *) { |
d55e5bfc RD |
14868 | PyErr_SetString(PyExc_TypeError,"Variable ART_ERROR is read-only."); |
14869 | return 1; | |
14870 | } | |
14871 | ||
14872 | ||
14873 | static PyObject *_wrap_ART_ERROR_get() { | |
14874 | PyObject *pyobj; | |
14875 | ||
14876 | { | |
14877 | #if wxUSE_UNICODE | |
14878 | pyobj = PyUnicode_FromWideChar((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len()); | |
14879 | #else | |
14880 | pyobj = PyString_FromStringAndSize((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len()); | |
14881 | #endif | |
14882 | } | |
14883 | return pyobj; | |
14884 | } | |
14885 | ||
14886 | ||
c370783e | 14887 | static int _wrap_ART_QUESTION_set(PyObject *) { |
d55e5bfc RD |
14888 | PyErr_SetString(PyExc_TypeError,"Variable ART_QUESTION is read-only."); |
14889 | return 1; | |
14890 | } | |
14891 | ||
14892 | ||
14893 | static PyObject *_wrap_ART_QUESTION_get() { | |
14894 | PyObject *pyobj; | |
14895 | ||
14896 | { | |
14897 | #if wxUSE_UNICODE | |
14898 | pyobj = PyUnicode_FromWideChar((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len()); | |
14899 | #else | |
14900 | pyobj = PyString_FromStringAndSize((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len()); | |
14901 | #endif | |
14902 | } | |
14903 | return pyobj; | |
14904 | } | |
14905 | ||
14906 | ||
c370783e | 14907 | static int _wrap_ART_WARNING_set(PyObject *) { |
d55e5bfc RD |
14908 | PyErr_SetString(PyExc_TypeError,"Variable ART_WARNING is read-only."); |
14909 | return 1; | |
14910 | } | |
14911 | ||
14912 | ||
14913 | static PyObject *_wrap_ART_WARNING_get() { | |
14914 | PyObject *pyobj; | |
14915 | ||
14916 | { | |
14917 | #if wxUSE_UNICODE | |
14918 | pyobj = PyUnicode_FromWideChar((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len()); | |
14919 | #else | |
14920 | pyobj = PyString_FromStringAndSize((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len()); | |
14921 | #endif | |
14922 | } | |
14923 | return pyobj; | |
14924 | } | |
14925 | ||
14926 | ||
c370783e | 14927 | static int _wrap_ART_INFORMATION_set(PyObject *) { |
d55e5bfc RD |
14928 | PyErr_SetString(PyExc_TypeError,"Variable ART_INFORMATION is read-only."); |
14929 | return 1; | |
14930 | } | |
14931 | ||
14932 | ||
14933 | static PyObject *_wrap_ART_INFORMATION_get() { | |
14934 | PyObject *pyobj; | |
14935 | ||
14936 | { | |
14937 | #if wxUSE_UNICODE | |
14938 | pyobj = PyUnicode_FromWideChar((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len()); | |
14939 | #else | |
14940 | pyobj = PyString_FromStringAndSize((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len()); | |
14941 | #endif | |
14942 | } | |
14943 | return pyobj; | |
14944 | } | |
14945 | ||
14946 | ||
c370783e | 14947 | static int _wrap_ART_MISSING_IMAGE_set(PyObject *) { |
d55e5bfc RD |
14948 | PyErr_SetString(PyExc_TypeError,"Variable ART_MISSING_IMAGE is read-only."); |
14949 | return 1; | |
14950 | } | |
14951 | ||
14952 | ||
14953 | static PyObject *_wrap_ART_MISSING_IMAGE_get() { | |
14954 | PyObject *pyobj; | |
14955 | ||
14956 | { | |
14957 | #if wxUSE_UNICODE | |
14958 | pyobj = PyUnicode_FromWideChar((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len()); | |
14959 | #else | |
14960 | pyobj = PyString_FromStringAndSize((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len()); | |
14961 | #endif | |
14962 | } | |
14963 | return pyobj; | |
14964 | } | |
14965 | ||
14966 | ||
c370783e | 14967 | static PyObject *_wrap_new_ArtProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14968 | PyObject *resultobj; |
14969 | wxPyArtProvider *result; | |
14970 | char *kwnames[] = { | |
14971 | NULL | |
14972 | }; | |
14973 | ||
14974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ArtProvider",kwnames)) goto fail; | |
14975 | { | |
0439c23b | 14976 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
14977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14978 | result = (wxPyArtProvider *)new wxPyArtProvider(); | |
14979 | ||
14980 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14981 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
14982 | } |
14983 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyArtProvider, 1); | |
14984 | return resultobj; | |
14985 | fail: | |
14986 | return NULL; | |
14987 | } | |
14988 | ||
14989 | ||
c370783e | 14990 | static PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14991 | PyObject *resultobj; |
14992 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14993 | PyObject *arg2 = (PyObject *) 0 ; | |
14994 | PyObject *arg3 = (PyObject *) 0 ; | |
14995 | PyObject * obj0 = 0 ; | |
14996 | PyObject * obj1 = 0 ; | |
14997 | PyObject * obj2 = 0 ; | |
14998 | char *kwnames[] = { | |
14999 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
15000 | }; | |
15001 | ||
15002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ArtProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15003 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, | |
15004 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15005 | arg2 = obj1; | |
15006 | arg3 = obj2; | |
15007 | { | |
15008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15009 | (arg1)->_setCallbackInfo(arg2,arg3); | |
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 | ||
c370783e | 15021 | static PyObject *_wrap_ArtProvider_PushProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15022 | PyObject *resultobj; |
15023 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
15024 | PyObject * obj0 = 0 ; | |
15025 | char *kwnames[] = { | |
15026 | (char *) "provider", NULL | |
15027 | }; | |
15028 | ||
15029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) goto fail; | |
15030 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, | |
15031 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15032 | { | |
15033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15034 | wxPyArtProvider::PushProvider(arg1); | |
15035 | ||
15036 | wxPyEndAllowThreads(__tstate); | |
15037 | if (PyErr_Occurred()) SWIG_fail; | |
15038 | } | |
15039 | Py_INCREF(Py_None); resultobj = Py_None; | |
15040 | return resultobj; | |
15041 | fail: | |
15042 | return NULL; | |
15043 | } | |
15044 | ||
15045 | ||
c370783e | 15046 | static PyObject *_wrap_ArtProvider_PopProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15047 | PyObject *resultobj; |
15048 | bool result; | |
15049 | char *kwnames[] = { | |
15050 | NULL | |
15051 | }; | |
15052 | ||
15053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ArtProvider_PopProvider",kwnames)) goto fail; | |
15054 | { | |
15055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15056 | result = (bool)wxPyArtProvider::PopProvider(); | |
15057 | ||
15058 | wxPyEndAllowThreads(__tstate); | |
15059 | if (PyErr_Occurred()) SWIG_fail; | |
15060 | } | |
15061 | { | |
15062 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15063 | } | |
15064 | return resultobj; | |
15065 | fail: | |
15066 | return NULL; | |
15067 | } | |
15068 | ||
15069 | ||
c370783e | 15070 | static PyObject *_wrap_ArtProvider_RemoveProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15071 | PyObject *resultobj; |
15072 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
15073 | bool result; | |
15074 | PyObject * obj0 = 0 ; | |
15075 | char *kwnames[] = { | |
15076 | (char *) "provider", NULL | |
15077 | }; | |
15078 | ||
15079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_RemoveProvider",kwnames,&obj0)) goto fail; | |
15080 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, | |
15081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15082 | { | |
15083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15084 | result = (bool)wxPyArtProvider::RemoveProvider(arg1); | |
15085 | ||
15086 | wxPyEndAllowThreads(__tstate); | |
15087 | if (PyErr_Occurred()) SWIG_fail; | |
15088 | } | |
15089 | { | |
15090 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15091 | } | |
15092 | return resultobj; | |
15093 | fail: | |
15094 | return NULL; | |
15095 | } | |
15096 | ||
15097 | ||
c370783e | 15098 | static PyObject *_wrap_ArtProvider_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15099 | PyObject *resultobj; |
15100 | wxString *arg1 = 0 ; | |
15101 | wxString const &arg2_defvalue = wxPyART_OTHER ; | |
15102 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
15103 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
15104 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
15105 | wxBitmap result; | |
b411df4a RD |
15106 | bool temp1 = false ; |
15107 | bool temp2 = false ; | |
d55e5bfc RD |
15108 | wxSize temp3 ; |
15109 | PyObject * obj0 = 0 ; | |
15110 | PyObject * obj1 = 0 ; | |
15111 | PyObject * obj2 = 0 ; | |
15112 | char *kwnames[] = { | |
15113 | (char *) "id",(char *) "client",(char *) "size", NULL | |
15114 | }; | |
15115 | ||
15116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15117 | { | |
15118 | arg1 = wxString_in_helper(obj0); | |
15119 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 15120 | temp1 = true; |
d55e5bfc RD |
15121 | } |
15122 | if (obj1) { | |
15123 | { | |
15124 | arg2 = wxString_in_helper(obj1); | |
15125 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 15126 | temp2 = true; |
d55e5bfc RD |
15127 | } |
15128 | } | |
15129 | if (obj2) { | |
15130 | { | |
15131 | arg3 = &temp3; | |
15132 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
15133 | } | |
15134 | } | |
15135 | { | |
0439c23b | 15136 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15138 | result = wxPyArtProvider::GetBitmap((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3); | |
15139 | ||
15140 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15141 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
15142 | } |
15143 | { | |
15144 | wxBitmap * resultptr; | |
15145 | resultptr = new wxBitmap((wxBitmap &) result); | |
15146 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
15147 | } | |
15148 | { | |
15149 | if (temp1) | |
15150 | delete arg1; | |
15151 | } | |
15152 | { | |
15153 | if (temp2) | |
15154 | delete arg2; | |
15155 | } | |
15156 | return resultobj; | |
15157 | fail: | |
15158 | { | |
15159 | if (temp1) | |
15160 | delete arg1; | |
15161 | } | |
15162 | { | |
15163 | if (temp2) | |
15164 | delete arg2; | |
15165 | } | |
15166 | return NULL; | |
15167 | } | |
15168 | ||
15169 | ||
c370783e | 15170 | static PyObject *_wrap_ArtProvider_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15171 | PyObject *resultobj; |
15172 | wxString *arg1 = 0 ; | |
15173 | wxString const &arg2_defvalue = wxPyART_OTHER ; | |
15174 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
15175 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
15176 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
15177 | wxIcon result; | |
b411df4a RD |
15178 | bool temp1 = false ; |
15179 | bool temp2 = false ; | |
d55e5bfc RD |
15180 | wxSize temp3 ; |
15181 | PyObject * obj0 = 0 ; | |
15182 | PyObject * obj1 = 0 ; | |
15183 | PyObject * obj2 = 0 ; | |
15184 | char *kwnames[] = { | |
15185 | (char *) "id",(char *) "client",(char *) "size", NULL | |
15186 | }; | |
15187 | ||
15188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15189 | { | |
15190 | arg1 = wxString_in_helper(obj0); | |
15191 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 15192 | temp1 = true; |
d55e5bfc RD |
15193 | } |
15194 | if (obj1) { | |
15195 | { | |
15196 | arg2 = wxString_in_helper(obj1); | |
15197 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 15198 | temp2 = true; |
d55e5bfc RD |
15199 | } |
15200 | } | |
15201 | if (obj2) { | |
15202 | { | |
15203 | arg3 = &temp3; | |
15204 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
15205 | } | |
15206 | } | |
15207 | { | |
0439c23b | 15208 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15210 | result = wxPyArtProvider::GetIcon((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3); | |
15211 | ||
15212 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15213 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
15214 | } |
15215 | { | |
15216 | wxIcon * resultptr; | |
15217 | resultptr = new wxIcon((wxIcon &) result); | |
15218 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1); | |
15219 | } | |
15220 | { | |
15221 | if (temp1) | |
15222 | delete arg1; | |
15223 | } | |
15224 | { | |
15225 | if (temp2) | |
15226 | delete arg2; | |
15227 | } | |
15228 | return resultobj; | |
15229 | fail: | |
15230 | { | |
15231 | if (temp1) | |
15232 | delete arg1; | |
15233 | } | |
15234 | { | |
15235 | if (temp2) | |
15236 | delete arg2; | |
15237 | } | |
15238 | return NULL; | |
15239 | } | |
15240 | ||
15241 | ||
c370783e | 15242 | static PyObject *_wrap_ArtProvider_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15243 | PyObject *resultobj; |
15244 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
15245 | PyObject * obj0 = 0 ; | |
15246 | char *kwnames[] = { | |
15247 | (char *) "self", NULL | |
15248 | }; | |
15249 | ||
15250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Destroy",kwnames,&obj0)) goto fail; | |
15251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, | |
15252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15253 | { | |
15254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15255 | wxPyArtProvider_Destroy(arg1); | |
15256 | ||
15257 | wxPyEndAllowThreads(__tstate); | |
15258 | if (PyErr_Occurred()) SWIG_fail; | |
15259 | } | |
15260 | Py_INCREF(Py_None); resultobj = Py_None; | |
15261 | return resultobj; | |
15262 | fail: | |
15263 | return NULL; | |
15264 | } | |
15265 | ||
15266 | ||
c370783e | 15267 | static PyObject * ArtProvider_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
15268 | PyObject *obj; |
15269 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15270 | SWIG_TypeClientData(SWIGTYPE_p_wxPyArtProvider, obj); | |
15271 | Py_INCREF(obj); | |
15272 | return Py_BuildValue((char *)""); | |
15273 | } | |
c370783e | 15274 | static PyObject *_wrap_delete_ConfigBase(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15275 | PyObject *resultobj; |
15276 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15277 | PyObject * obj0 = 0 ; | |
15278 | char *kwnames[] = { | |
15279 | (char *) "self", NULL | |
15280 | }; | |
15281 | ||
15282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigBase",kwnames,&obj0)) goto fail; | |
15283 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15284 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15285 | { | |
15286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15287 | delete arg1; | |
15288 | ||
15289 | wxPyEndAllowThreads(__tstate); | |
15290 | if (PyErr_Occurred()) SWIG_fail; | |
15291 | } | |
15292 | Py_INCREF(Py_None); resultobj = Py_None; | |
15293 | return resultobj; | |
15294 | fail: | |
15295 | return NULL; | |
15296 | } | |
15297 | ||
15298 | ||
c370783e | 15299 | static PyObject *_wrap_ConfigBase_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15300 | PyObject *resultobj; |
15301 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15302 | wxConfigBase *result; | |
15303 | PyObject * obj0 = 0 ; | |
15304 | char *kwnames[] = { | |
15305 | (char *) "config", NULL | |
15306 | }; | |
15307 | ||
15308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_Set",kwnames,&obj0)) goto fail; | |
15309 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15310 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15311 | { | |
15312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15313 | result = (wxConfigBase *)wxConfigBase::Set(arg1); | |
15314 | ||
15315 | wxPyEndAllowThreads(__tstate); | |
15316 | if (PyErr_Occurred()) SWIG_fail; | |
15317 | } | |
15318 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); | |
15319 | return resultobj; | |
15320 | fail: | |
15321 | return NULL; | |
15322 | } | |
15323 | ||
15324 | ||
c370783e | 15325 | static PyObject *_wrap_ConfigBase_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 15326 | PyObject *resultobj; |
b411df4a | 15327 | bool arg1 = (bool) true ; |
d55e5bfc RD |
15328 | wxConfigBase *result; |
15329 | PyObject * obj0 = 0 ; | |
15330 | char *kwnames[] = { | |
15331 | (char *) "createOnDemand", NULL | |
15332 | }; | |
15333 | ||
15334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ConfigBase_Get",kwnames,&obj0)) goto fail; | |
15335 | if (obj0) { | |
c370783e | 15336 | arg1 = (bool)SWIG_As_bool(obj0); |
d55e5bfc RD |
15337 | if (PyErr_Occurred()) SWIG_fail; |
15338 | } | |
15339 | { | |
15340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15341 | result = (wxConfigBase *)wxConfigBase::Get(arg1); | |
15342 | ||
15343 | wxPyEndAllowThreads(__tstate); | |
15344 | if (PyErr_Occurred()) SWIG_fail; | |
15345 | } | |
15346 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); | |
15347 | return resultobj; | |
15348 | fail: | |
15349 | return NULL; | |
15350 | } | |
15351 | ||
15352 | ||
c370783e | 15353 | static PyObject *_wrap_ConfigBase_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15354 | PyObject *resultobj; |
15355 | wxConfigBase *result; | |
15356 | char *kwnames[] = { | |
15357 | NULL | |
15358 | }; | |
15359 | ||
15360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_Create",kwnames)) goto fail; | |
15361 | { | |
15362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15363 | result = (wxConfigBase *)wxConfigBase::Create(); | |
15364 | ||
15365 | wxPyEndAllowThreads(__tstate); | |
15366 | if (PyErr_Occurred()) SWIG_fail; | |
15367 | } | |
15368 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); | |
15369 | return resultobj; | |
15370 | fail: | |
15371 | return NULL; | |
15372 | } | |
15373 | ||
15374 | ||
c370783e | 15375 | static PyObject *_wrap_ConfigBase_DontCreateOnDemand(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15376 | PyObject *resultobj; |
15377 | char *kwnames[] = { | |
15378 | NULL | |
15379 | }; | |
15380 | ||
15381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_DontCreateOnDemand",kwnames)) goto fail; | |
15382 | { | |
15383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15384 | wxConfigBase::DontCreateOnDemand(); | |
15385 | ||
15386 | wxPyEndAllowThreads(__tstate); | |
15387 | if (PyErr_Occurred()) SWIG_fail; | |
15388 | } | |
15389 | Py_INCREF(Py_None); resultobj = Py_None; | |
15390 | return resultobj; | |
15391 | fail: | |
15392 | return NULL; | |
15393 | } | |
15394 | ||
15395 | ||
c370783e | 15396 | static PyObject *_wrap_ConfigBase_SetPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15397 | PyObject *resultobj; |
15398 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15399 | wxString *arg2 = 0 ; | |
b411df4a | 15400 | bool temp2 = false ; |
d55e5bfc RD |
15401 | PyObject * obj0 = 0 ; |
15402 | PyObject * obj1 = 0 ; | |
15403 | char *kwnames[] = { | |
15404 | (char *) "self",(char *) "path", NULL | |
15405 | }; | |
15406 | ||
15407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
15408 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15409 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15410 | { | |
15411 | arg2 = wxString_in_helper(obj1); | |
15412 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 15413 | temp2 = true; |
d55e5bfc RD |
15414 | } |
15415 | { | |
15416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15417 | (arg1)->SetPath((wxString const &)*arg2); | |
15418 | ||
15419 | wxPyEndAllowThreads(__tstate); | |
15420 | if (PyErr_Occurred()) SWIG_fail; | |
15421 | } | |
15422 | Py_INCREF(Py_None); resultobj = Py_None; | |
15423 | { | |
15424 | if (temp2) | |
15425 | delete arg2; | |
15426 | } | |
15427 | return resultobj; | |
15428 | fail: | |
15429 | { | |
15430 | if (temp2) | |
15431 | delete arg2; | |
15432 | } | |
15433 | return NULL; | |
15434 | } | |
15435 | ||
15436 | ||
c370783e | 15437 | static PyObject *_wrap_ConfigBase_GetPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15438 | PyObject *resultobj; |
15439 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15440 | wxString *result; | |
15441 | PyObject * obj0 = 0 ; | |
15442 | char *kwnames[] = { | |
15443 | (char *) "self", NULL | |
15444 | }; | |
15445 | ||
15446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetPath",kwnames,&obj0)) goto fail; | |
15447 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15448 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15449 | { | |
15450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15451 | { | |
15452 | wxString const &_result_ref = ((wxConfigBase const *)arg1)->GetPath(); | |
15453 | result = (wxString *) &_result_ref; | |
15454 | } | |
15455 | ||
15456 | wxPyEndAllowThreads(__tstate); | |
15457 | if (PyErr_Occurred()) SWIG_fail; | |
15458 | } | |
15459 | { | |
15460 | #if wxUSE_UNICODE | |
15461 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
15462 | #else | |
15463 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
15464 | #endif | |
15465 | } | |
15466 | return resultobj; | |
15467 | fail: | |
15468 | return NULL; | |
15469 | } | |
15470 | ||
15471 | ||
c370783e | 15472 | static PyObject *_wrap_ConfigBase_GetFirstGroup(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15473 | PyObject *resultobj; |
15474 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15475 | PyObject *result; | |
15476 | PyObject * obj0 = 0 ; | |
15477 | char *kwnames[] = { | |
15478 | (char *) "self", NULL | |
15479 | }; | |
15480 | ||
15481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstGroup",kwnames,&obj0)) goto fail; | |
15482 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15483 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15484 | { | |
15485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15486 | result = (PyObject *)wxConfigBase_GetFirstGroup(arg1); | |
15487 | ||
15488 | wxPyEndAllowThreads(__tstate); | |
15489 | if (PyErr_Occurred()) SWIG_fail; | |
15490 | } | |
15491 | resultobj = result; | |
15492 | return resultobj; | |
15493 | fail: | |
15494 | return NULL; | |
15495 | } | |
15496 | ||
15497 | ||
c370783e | 15498 | static PyObject *_wrap_ConfigBase_GetNextGroup(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15499 | PyObject *resultobj; |
15500 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15501 | long arg2 ; | |
15502 | PyObject *result; | |
15503 | PyObject * obj0 = 0 ; | |
15504 | PyObject * obj1 = 0 ; | |
15505 | char *kwnames[] = { | |
15506 | (char *) "self",(char *) "index", NULL | |
15507 | }; | |
15508 | ||
15509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextGroup",kwnames,&obj0,&obj1)) goto fail; | |
15510 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15511 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 15512 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
15513 | if (PyErr_Occurred()) SWIG_fail; |
15514 | { | |
15515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15516 | result = (PyObject *)wxConfigBase_GetNextGroup(arg1,arg2); | |
15517 | ||
15518 | wxPyEndAllowThreads(__tstate); | |
15519 | if (PyErr_Occurred()) SWIG_fail; | |
15520 | } | |
15521 | resultobj = result; | |
15522 | return resultobj; | |
15523 | fail: | |
15524 | return NULL; | |
15525 | } | |
15526 | ||
15527 | ||
c370783e | 15528 | static PyObject *_wrap_ConfigBase_GetFirstEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15529 | PyObject *resultobj; |
15530 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15531 | PyObject *result; | |
15532 | PyObject * obj0 = 0 ; | |
15533 | char *kwnames[] = { | |
15534 | (char *) "self", NULL | |
15535 | }; | |
15536 | ||
15537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstEntry",kwnames,&obj0)) goto fail; | |
15538 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15540 | { | |
15541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15542 | result = (PyObject *)wxConfigBase_GetFirstEntry(arg1); | |
15543 | ||
15544 | wxPyEndAllowThreads(__tstate); | |
15545 | if (PyErr_Occurred()) SWIG_fail; | |
15546 | } | |
15547 | resultobj = result; | |
15548 | return resultobj; | |
15549 | fail: | |
15550 | return NULL; | |
15551 | } | |
15552 | ||
15553 | ||
c370783e | 15554 | static PyObject *_wrap_ConfigBase_GetNextEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15555 | PyObject *resultobj; |
15556 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15557 | long arg2 ; | |
15558 | PyObject *result; | |
15559 | PyObject * obj0 = 0 ; | |
15560 | PyObject * obj1 = 0 ; | |
15561 | char *kwnames[] = { | |
15562 | (char *) "self",(char *) "index", NULL | |
15563 | }; | |
15564 | ||
15565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextEntry",kwnames,&obj0,&obj1)) goto fail; | |
15566 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15567 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 15568 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
15569 | if (PyErr_Occurred()) SWIG_fail; |
15570 | { | |
15571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15572 | result = (PyObject *)wxConfigBase_GetNextEntry(arg1,arg2); | |
15573 | ||
15574 | wxPyEndAllowThreads(__tstate); | |
15575 | if (PyErr_Occurred()) SWIG_fail; | |
15576 | } | |
15577 | resultobj = result; | |
15578 | return resultobj; | |
15579 | fail: | |
15580 | return NULL; | |
15581 | } | |
15582 | ||
15583 | ||
c370783e | 15584 | static PyObject *_wrap_ConfigBase_GetNumberOfEntries(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15585 | PyObject *resultobj; |
15586 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
b411df4a | 15587 | bool arg2 = (bool) false ; |
d55e5bfc RD |
15588 | size_t result; |
15589 | PyObject * obj0 = 0 ; | |
15590 | PyObject * obj1 = 0 ; | |
15591 | char *kwnames[] = { | |
15592 | (char *) "self",(char *) "recursive", NULL | |
15593 | }; | |
15594 | ||
15595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfEntries",kwnames,&obj0,&obj1)) goto fail; | |
15596 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15598 | if (obj1) { | |
c370783e | 15599 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
15600 | if (PyErr_Occurred()) SWIG_fail; |
15601 | } | |
15602 | { | |
15603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15604 | result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfEntries(arg2); | |
15605 | ||
15606 | wxPyEndAllowThreads(__tstate); | |
15607 | if (PyErr_Occurred()) SWIG_fail; | |
15608 | } | |
c370783e | 15609 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
15610 | return resultobj; |
15611 | fail: | |
15612 | return NULL; | |
15613 | } | |
15614 | ||
15615 | ||
c370783e | 15616 | static PyObject *_wrap_ConfigBase_GetNumberOfGroups(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15617 | PyObject *resultobj; |
15618 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
b411df4a | 15619 | bool arg2 = (bool) false ; |
d55e5bfc RD |
15620 | size_t result; |
15621 | PyObject * obj0 = 0 ; | |
15622 | PyObject * obj1 = 0 ; | |
15623 | char *kwnames[] = { | |
15624 | (char *) "self",(char *) "recursive", NULL | |
15625 | }; | |
15626 | ||
15627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfGroups",kwnames,&obj0,&obj1)) goto fail; | |
15628 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15629 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15630 | if (obj1) { | |
c370783e | 15631 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
15632 | if (PyErr_Occurred()) SWIG_fail; |
15633 | } | |
15634 | { | |
15635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15636 | result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfGroups(arg2); | |
15637 | ||
15638 | wxPyEndAllowThreads(__tstate); | |
15639 | if (PyErr_Occurred()) SWIG_fail; | |
15640 | } | |
c370783e | 15641 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
15642 | return resultobj; |
15643 | fail: | |
15644 | return NULL; | |
15645 | } | |
15646 | ||
15647 | ||
c370783e | 15648 | static PyObject *_wrap_ConfigBase_HasGroup(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15649 | PyObject *resultobj; |
15650 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15651 | wxString *arg2 = 0 ; | |
15652 | bool result; | |
b411df4a | 15653 | bool temp2 = false ; |
d55e5bfc RD |
15654 | PyObject * obj0 = 0 ; |
15655 | PyObject * obj1 = 0 ; | |
15656 | char *kwnames[] = { | |
15657 | (char *) "self",(char *) "name", NULL | |
15658 | }; | |
15659 | ||
15660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasGroup",kwnames,&obj0,&obj1)) goto fail; | |
15661 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15662 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15663 | { | |
15664 | arg2 = wxString_in_helper(obj1); | |
15665 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 15666 | temp2 = true; |
d55e5bfc RD |
15667 | } |
15668 | { | |
15669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15670 | result = (bool)((wxConfigBase const *)arg1)->HasGroup((wxString const &)*arg2); | |
15671 | ||
15672 | wxPyEndAllowThreads(__tstate); | |
15673 | if (PyErr_Occurred()) SWIG_fail; | |
15674 | } | |
15675 | { | |
15676 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15677 | } | |
15678 | { | |
15679 | if (temp2) | |
15680 | delete arg2; | |
15681 | } | |
15682 | return resultobj; | |
15683 | fail: | |
15684 | { | |
15685 | if (temp2) | |
15686 | delete arg2; | |
15687 | } | |
15688 | return NULL; | |
15689 | } | |
15690 | ||
15691 | ||
c370783e | 15692 | static PyObject *_wrap_ConfigBase_HasEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15693 | PyObject *resultobj; |
15694 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15695 | wxString *arg2 = 0 ; | |
15696 | bool result; | |
b411df4a | 15697 | bool temp2 = false ; |
d55e5bfc RD |
15698 | PyObject * obj0 = 0 ; |
15699 | PyObject * obj1 = 0 ; | |
15700 | char *kwnames[] = { | |
15701 | (char *) "self",(char *) "name", NULL | |
15702 | }; | |
15703 | ||
15704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasEntry",kwnames,&obj0,&obj1)) goto fail; | |
15705 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15706 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15707 | { | |
15708 | arg2 = wxString_in_helper(obj1); | |
15709 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 15710 | temp2 = true; |
d55e5bfc RD |
15711 | } |
15712 | { | |
15713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15714 | result = (bool)((wxConfigBase const *)arg1)->HasEntry((wxString const &)*arg2); | |
15715 | ||
15716 | wxPyEndAllowThreads(__tstate); | |
15717 | if (PyErr_Occurred()) SWIG_fail; | |
15718 | } | |
15719 | { | |
15720 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15721 | } | |
15722 | { | |
15723 | if (temp2) | |
15724 | delete arg2; | |
15725 | } | |
15726 | return resultobj; | |
15727 | fail: | |
15728 | { | |
15729 | if (temp2) | |
15730 | delete arg2; | |
15731 | } | |
15732 | return NULL; | |
15733 | } | |
15734 | ||
15735 | ||
c370783e | 15736 | static PyObject *_wrap_ConfigBase_Exists(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15737 | PyObject *resultobj; |
15738 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15739 | wxString *arg2 = 0 ; | |
15740 | bool result; | |
b411df4a | 15741 | bool temp2 = false ; |
d55e5bfc RD |
15742 | PyObject * obj0 = 0 ; |
15743 | PyObject * obj1 = 0 ; | |
15744 | char *kwnames[] = { | |
15745 | (char *) "self",(char *) "name", NULL | |
15746 | }; | |
15747 | ||
15748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_Exists",kwnames,&obj0,&obj1)) goto fail; | |
15749 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15750 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15751 | { | |
15752 | arg2 = wxString_in_helper(obj1); | |
15753 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 15754 | temp2 = true; |
d55e5bfc RD |
15755 | } |
15756 | { | |
15757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15758 | result = (bool)((wxConfigBase const *)arg1)->Exists((wxString const &)*arg2); | |
15759 | ||
15760 | wxPyEndAllowThreads(__tstate); | |
15761 | if (PyErr_Occurred()) SWIG_fail; | |
15762 | } | |
15763 | { | |
15764 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15765 | } | |
15766 | { | |
15767 | if (temp2) | |
15768 | delete arg2; | |
15769 | } | |
15770 | return resultobj; | |
15771 | fail: | |
15772 | { | |
15773 | if (temp2) | |
15774 | delete arg2; | |
15775 | } | |
15776 | return NULL; | |
15777 | } | |
15778 | ||
15779 | ||
c370783e | 15780 | static PyObject *_wrap_ConfigBase_GetEntryType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15781 | PyObject *resultobj; |
15782 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15783 | wxString *arg2 = 0 ; | |
15784 | int result; | |
b411df4a | 15785 | bool temp2 = false ; |
d55e5bfc RD |
15786 | PyObject * obj0 = 0 ; |
15787 | PyObject * obj1 = 0 ; | |
15788 | char *kwnames[] = { | |
15789 | (char *) "self",(char *) "name", NULL | |
15790 | }; | |
15791 | ||
15792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetEntryType",kwnames,&obj0,&obj1)) goto fail; | |
15793 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15794 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15795 | { | |
15796 | arg2 = wxString_in_helper(obj1); | |
15797 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 15798 | temp2 = true; |
d55e5bfc RD |
15799 | } |
15800 | { | |
15801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15802 | result = (int)((wxConfigBase const *)arg1)->GetEntryType((wxString const &)*arg2); | |
15803 | ||
15804 | wxPyEndAllowThreads(__tstate); | |
15805 | if (PyErr_Occurred()) SWIG_fail; | |
15806 | } | |
c370783e | 15807 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15808 | { |
15809 | if (temp2) | |
15810 | delete arg2; | |
15811 | } | |
15812 | return resultobj; | |
15813 | fail: | |
15814 | { | |
15815 | if (temp2) | |
15816 | delete arg2; | |
15817 | } | |
15818 | return NULL; | |
15819 | } | |
15820 | ||
15821 | ||
c370783e | 15822 | static PyObject *_wrap_ConfigBase_Read(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15823 | PyObject *resultobj; |
15824 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15825 | wxString *arg2 = 0 ; | |
15826 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
15827 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
15828 | wxString result; | |
b411df4a RD |
15829 | bool temp2 = false ; |
15830 | bool temp3 = false ; | |
d55e5bfc RD |
15831 | PyObject * obj0 = 0 ; |
15832 | PyObject * obj1 = 0 ; | |
15833 | PyObject * obj2 = 0 ; | |
15834 | char *kwnames[] = { | |
15835 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15836 | }; | |
15837 | ||
15838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_Read",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15839 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15840 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15841 | { | |
15842 | arg2 = wxString_in_helper(obj1); | |
15843 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 15844 | temp2 = true; |
d55e5bfc RD |
15845 | } |
15846 | if (obj2) { | |
15847 | { | |
15848 | arg3 = wxString_in_helper(obj2); | |
15849 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 15850 | temp3 = true; |
d55e5bfc RD |
15851 | } |
15852 | } | |
15853 | { | |
15854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15855 | result = (arg1)->Read((wxString const &)*arg2,(wxString const &)*arg3); | |
15856 | ||
15857 | wxPyEndAllowThreads(__tstate); | |
15858 | if (PyErr_Occurred()) SWIG_fail; | |
15859 | } | |
15860 | { | |
15861 | #if wxUSE_UNICODE | |
15862 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15863 | #else | |
15864 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15865 | #endif | |
15866 | } | |
15867 | { | |
15868 | if (temp2) | |
15869 | delete arg2; | |
15870 | } | |
15871 | { | |
15872 | if (temp3) | |
15873 | delete arg3; | |
15874 | } | |
15875 | return resultobj; | |
15876 | fail: | |
15877 | { | |
15878 | if (temp2) | |
15879 | delete arg2; | |
15880 | } | |
15881 | { | |
15882 | if (temp3) | |
15883 | delete arg3; | |
15884 | } | |
15885 | return NULL; | |
15886 | } | |
15887 | ||
15888 | ||
c370783e | 15889 | static PyObject *_wrap_ConfigBase_ReadInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15890 | PyObject *resultobj; |
15891 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15892 | wxString *arg2 = 0 ; | |
15893 | long arg3 = (long) 0 ; | |
15894 | long result; | |
b411df4a | 15895 | bool temp2 = false ; |
d55e5bfc RD |
15896 | PyObject * obj0 = 0 ; |
15897 | PyObject * obj1 = 0 ; | |
15898 | PyObject * obj2 = 0 ; | |
15899 | char *kwnames[] = { | |
15900 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15901 | }; | |
15902 | ||
15903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadInt",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15904 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15905 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15906 | { | |
15907 | arg2 = wxString_in_helper(obj1); | |
15908 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 15909 | temp2 = true; |
d55e5bfc RD |
15910 | } |
15911 | if (obj2) { | |
c370783e | 15912 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
15913 | if (PyErr_Occurred()) SWIG_fail; |
15914 | } | |
15915 | { | |
15916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15917 | result = (long)wxConfigBase_ReadInt(arg1,(wxString const &)*arg2,arg3); | |
15918 | ||
15919 | wxPyEndAllowThreads(__tstate); | |
15920 | if (PyErr_Occurred()) SWIG_fail; | |
15921 | } | |
c370783e | 15922 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
15923 | { |
15924 | if (temp2) | |
15925 | delete arg2; | |
15926 | } | |
15927 | return resultobj; | |
15928 | fail: | |
15929 | { | |
15930 | if (temp2) | |
15931 | delete arg2; | |
15932 | } | |
15933 | return NULL; | |
15934 | } | |
15935 | ||
15936 | ||
c370783e | 15937 | static PyObject *_wrap_ConfigBase_ReadFloat(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15938 | PyObject *resultobj; |
15939 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15940 | wxString *arg2 = 0 ; | |
15941 | double arg3 = (double) 0.0 ; | |
15942 | double result; | |
b411df4a | 15943 | bool temp2 = false ; |
d55e5bfc RD |
15944 | PyObject * obj0 = 0 ; |
15945 | PyObject * obj1 = 0 ; | |
15946 | PyObject * obj2 = 0 ; | |
15947 | char *kwnames[] = { | |
15948 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15949 | }; | |
15950 | ||
15951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadFloat",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15954 | { | |
15955 | arg2 = wxString_in_helper(obj1); | |
15956 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 15957 | temp2 = true; |
d55e5bfc RD |
15958 | } |
15959 | if (obj2) { | |
c370783e | 15960 | arg3 = (double)SWIG_As_double(obj2); |
d55e5bfc RD |
15961 | if (PyErr_Occurred()) SWIG_fail; |
15962 | } | |
15963 | { | |
15964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15965 | result = (double)wxConfigBase_ReadFloat(arg1,(wxString const &)*arg2,arg3); | |
15966 | ||
15967 | wxPyEndAllowThreads(__tstate); | |
15968 | if (PyErr_Occurred()) SWIG_fail; | |
15969 | } | |
c370783e | 15970 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
15971 | { |
15972 | if (temp2) | |
15973 | delete arg2; | |
15974 | } | |
15975 | return resultobj; | |
15976 | fail: | |
15977 | { | |
15978 | if (temp2) | |
15979 | delete arg2; | |
15980 | } | |
15981 | return NULL; | |
15982 | } | |
15983 | ||
15984 | ||
c370783e | 15985 | static PyObject *_wrap_ConfigBase_ReadBool(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15986 | PyObject *resultobj; |
15987 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15988 | wxString *arg2 = 0 ; | |
b411df4a | 15989 | bool arg3 = (bool) false ; |
d55e5bfc | 15990 | bool result; |
b411df4a | 15991 | bool temp2 = false ; |
d55e5bfc RD |
15992 | PyObject * obj0 = 0 ; |
15993 | PyObject * obj1 = 0 ; | |
15994 | PyObject * obj2 = 0 ; | |
15995 | char *kwnames[] = { | |
15996 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15997 | }; | |
15998 | ||
15999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadBool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16000 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16001 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16002 | { | |
16003 | arg2 = wxString_in_helper(obj1); | |
16004 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 16005 | temp2 = true; |
d55e5bfc RD |
16006 | } |
16007 | if (obj2) { | |
c370783e | 16008 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
16009 | if (PyErr_Occurred()) SWIG_fail; |
16010 | } | |
16011 | { | |
16012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16013 | result = (bool)wxConfigBase_ReadBool(arg1,(wxString const &)*arg2,arg3); | |
16014 | ||
16015 | wxPyEndAllowThreads(__tstate); | |
16016 | if (PyErr_Occurred()) SWIG_fail; | |
16017 | } | |
16018 | { | |
16019 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16020 | } | |
16021 | { | |
16022 | if (temp2) | |
16023 | delete arg2; | |
16024 | } | |
16025 | return resultobj; | |
16026 | fail: | |
16027 | { | |
16028 | if (temp2) | |
16029 | delete arg2; | |
16030 | } | |
16031 | return NULL; | |
16032 | } | |
16033 | ||
16034 | ||
c370783e | 16035 | static PyObject *_wrap_ConfigBase_Write(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16036 | PyObject *resultobj; |
16037 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16038 | wxString *arg2 = 0 ; | |
16039 | wxString *arg3 = 0 ; | |
16040 | bool result; | |
b411df4a RD |
16041 | bool temp2 = false ; |
16042 | bool temp3 = false ; | |
d55e5bfc RD |
16043 | PyObject * obj0 = 0 ; |
16044 | PyObject * obj1 = 0 ; | |
16045 | PyObject * obj2 = 0 ; | |
16046 | char *kwnames[] = { | |
16047 | (char *) "self",(char *) "key",(char *) "value", NULL | |
16048 | }; | |
16049 | ||
16050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_Write",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16051 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16052 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16053 | { | |
16054 | arg2 = wxString_in_helper(obj1); | |
16055 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 16056 | temp2 = true; |
d55e5bfc RD |
16057 | } |
16058 | { | |
16059 | arg3 = wxString_in_helper(obj2); | |
16060 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 16061 | temp3 = true; |
d55e5bfc RD |
16062 | } |
16063 | { | |
16064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16065 | result = (bool)(arg1)->Write((wxString const &)*arg2,(wxString const &)*arg3); | |
16066 | ||
16067 | wxPyEndAllowThreads(__tstate); | |
16068 | if (PyErr_Occurred()) SWIG_fail; | |
16069 | } | |
16070 | { | |
16071 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16072 | } | |
16073 | { | |
16074 | if (temp2) | |
16075 | delete arg2; | |
16076 | } | |
16077 | { | |
16078 | if (temp3) | |
16079 | delete arg3; | |
16080 | } | |
16081 | return resultobj; | |
16082 | fail: | |
16083 | { | |
16084 | if (temp2) | |
16085 | delete arg2; | |
16086 | } | |
16087 | { | |
16088 | if (temp3) | |
16089 | delete arg3; | |
16090 | } | |
16091 | return NULL; | |
16092 | } | |
16093 | ||
16094 | ||
c370783e | 16095 | static PyObject *_wrap_ConfigBase_WriteInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16096 | PyObject *resultobj; |
16097 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16098 | wxString *arg2 = 0 ; | |
16099 | long arg3 ; | |
16100 | bool result; | |
b411df4a | 16101 | bool temp2 = false ; |
d55e5bfc RD |
16102 | PyObject * obj0 = 0 ; |
16103 | PyObject * obj1 = 0 ; | |
16104 | PyObject * obj2 = 0 ; | |
16105 | char *kwnames[] = { | |
16106 | (char *) "self",(char *) "key",(char *) "value", NULL | |
16107 | }; | |
16108 | ||
16109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteInt",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16110 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16112 | { | |
16113 | arg2 = wxString_in_helper(obj1); | |
16114 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 16115 | temp2 = true; |
d55e5bfc | 16116 | } |
c370783e | 16117 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
16118 | if (PyErr_Occurred()) SWIG_fail; |
16119 | { | |
16120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16121 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
16122 | ||
16123 | wxPyEndAllowThreads(__tstate); | |
16124 | if (PyErr_Occurred()) SWIG_fail; | |
16125 | } | |
16126 | { | |
16127 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16128 | } | |
16129 | { | |
16130 | if (temp2) | |
16131 | delete arg2; | |
16132 | } | |
16133 | return resultobj; | |
16134 | fail: | |
16135 | { | |
16136 | if (temp2) | |
16137 | delete arg2; | |
16138 | } | |
16139 | return NULL; | |
16140 | } | |
16141 | ||
16142 | ||
c370783e | 16143 | static PyObject *_wrap_ConfigBase_WriteFloat(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16144 | PyObject *resultobj; |
16145 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16146 | wxString *arg2 = 0 ; | |
16147 | double arg3 ; | |
16148 | bool result; | |
b411df4a | 16149 | bool temp2 = false ; |
d55e5bfc RD |
16150 | PyObject * obj0 = 0 ; |
16151 | PyObject * obj1 = 0 ; | |
16152 | PyObject * obj2 = 0 ; | |
16153 | char *kwnames[] = { | |
16154 | (char *) "self",(char *) "key",(char *) "value", NULL | |
16155 | }; | |
16156 | ||
16157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteFloat",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16158 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16159 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16160 | { | |
16161 | arg2 = wxString_in_helper(obj1); | |
16162 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 16163 | temp2 = true; |
d55e5bfc | 16164 | } |
c370783e | 16165 | arg3 = (double)SWIG_As_double(obj2); |
d55e5bfc RD |
16166 | if (PyErr_Occurred()) SWIG_fail; |
16167 | { | |
16168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16169 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
16170 | ||
16171 | wxPyEndAllowThreads(__tstate); | |
16172 | if (PyErr_Occurred()) SWIG_fail; | |
16173 | } | |
16174 | { | |
16175 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16176 | } | |
16177 | { | |
16178 | if (temp2) | |
16179 | delete arg2; | |
16180 | } | |
16181 | return resultobj; | |
16182 | fail: | |
16183 | { | |
16184 | if (temp2) | |
16185 | delete arg2; | |
16186 | } | |
16187 | return NULL; | |
16188 | } | |
16189 | ||
16190 | ||
c370783e | 16191 | static PyObject *_wrap_ConfigBase_WriteBool(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16192 | PyObject *resultobj; |
16193 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16194 | wxString *arg2 = 0 ; | |
16195 | bool arg3 ; | |
16196 | bool result; | |
b411df4a | 16197 | bool temp2 = false ; |
d55e5bfc RD |
16198 | PyObject * obj0 = 0 ; |
16199 | PyObject * obj1 = 0 ; | |
16200 | PyObject * obj2 = 0 ; | |
16201 | char *kwnames[] = { | |
16202 | (char *) "self",(char *) "key",(char *) "value", NULL | |
16203 | }; | |
16204 | ||
16205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteBool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16206 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16207 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16208 | { | |
16209 | arg2 = wxString_in_helper(obj1); | |
16210 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 16211 | temp2 = true; |
d55e5bfc | 16212 | } |
c370783e | 16213 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
16214 | if (PyErr_Occurred()) SWIG_fail; |
16215 | { | |
16216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16217 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
16218 | ||
16219 | wxPyEndAllowThreads(__tstate); | |
16220 | if (PyErr_Occurred()) SWIG_fail; | |
16221 | } | |
16222 | { | |
16223 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16224 | } | |
16225 | { | |
16226 | if (temp2) | |
16227 | delete arg2; | |
16228 | } | |
16229 | return resultobj; | |
16230 | fail: | |
16231 | { | |
16232 | if (temp2) | |
16233 | delete arg2; | |
16234 | } | |
16235 | return NULL; | |
16236 | } | |
16237 | ||
16238 | ||
c370783e | 16239 | static PyObject *_wrap_ConfigBase_Flush(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16240 | PyObject *resultobj; |
16241 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
b411df4a | 16242 | bool arg2 = (bool) false ; |
d55e5bfc RD |
16243 | bool result; |
16244 | PyObject * obj0 = 0 ; | |
16245 | PyObject * obj1 = 0 ; | |
16246 | char *kwnames[] = { | |
16247 | (char *) "self",(char *) "currentOnly", NULL | |
16248 | }; | |
16249 | ||
16250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_Flush",kwnames,&obj0,&obj1)) goto fail; | |
16251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16253 | if (obj1) { | |
c370783e | 16254 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
16255 | if (PyErr_Occurred()) SWIG_fail; |
16256 | } | |
16257 | { | |
16258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16259 | result = (bool)(arg1)->Flush(arg2); | |
16260 | ||
16261 | wxPyEndAllowThreads(__tstate); | |
16262 | if (PyErr_Occurred()) SWIG_fail; | |
16263 | } | |
16264 | { | |
16265 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16266 | } | |
16267 | return resultobj; | |
16268 | fail: | |
16269 | return NULL; | |
16270 | } | |
16271 | ||
16272 | ||
c370783e | 16273 | static PyObject *_wrap_ConfigBase_RenameEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16274 | PyObject *resultobj; |
16275 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16276 | wxString *arg2 = 0 ; | |
16277 | wxString *arg3 = 0 ; | |
16278 | bool result; | |
b411df4a RD |
16279 | bool temp2 = false ; |
16280 | bool temp3 = false ; | |
d55e5bfc RD |
16281 | PyObject * obj0 = 0 ; |
16282 | PyObject * obj1 = 0 ; | |
16283 | PyObject * obj2 = 0 ; | |
16284 | char *kwnames[] = { | |
16285 | (char *) "self",(char *) "oldName",(char *) "newName", NULL | |
16286 | }; | |
16287 | ||
16288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16289 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16290 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16291 | { | |
16292 | arg2 = wxString_in_helper(obj1); | |
16293 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 16294 | temp2 = true; |
d55e5bfc RD |
16295 | } |
16296 | { | |
16297 | arg3 = wxString_in_helper(obj2); | |
16298 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 16299 | temp3 = true; |
d55e5bfc RD |
16300 | } |
16301 | { | |
16302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16303 | result = (bool)(arg1)->RenameEntry((wxString const &)*arg2,(wxString const &)*arg3); | |
16304 | ||
16305 | wxPyEndAllowThreads(__tstate); | |
16306 | if (PyErr_Occurred()) SWIG_fail; | |
16307 | } | |
16308 | { | |
16309 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16310 | } | |
16311 | { | |
16312 | if (temp2) | |
16313 | delete arg2; | |
16314 | } | |
16315 | { | |
16316 | if (temp3) | |
16317 | delete arg3; | |
16318 | } | |
16319 | return resultobj; | |
16320 | fail: | |
16321 | { | |
16322 | if (temp2) | |
16323 | delete arg2; | |
16324 | } | |
16325 | { | |
16326 | if (temp3) | |
16327 | delete arg3; | |
16328 | } | |
16329 | return NULL; | |
16330 | } | |
16331 | ||
16332 | ||
c370783e | 16333 | static PyObject *_wrap_ConfigBase_RenameGroup(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16334 | PyObject *resultobj; |
16335 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16336 | wxString *arg2 = 0 ; | |
16337 | wxString *arg3 = 0 ; | |
16338 | bool result; | |
b411df4a RD |
16339 | bool temp2 = false ; |
16340 | bool temp3 = false ; | |
d55e5bfc RD |
16341 | PyObject * obj0 = 0 ; |
16342 | PyObject * obj1 = 0 ; | |
16343 | PyObject * obj2 = 0 ; | |
16344 | char *kwnames[] = { | |
16345 | (char *) "self",(char *) "oldName",(char *) "newName", NULL | |
16346 | }; | |
16347 | ||
16348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameGroup",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16349 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16351 | { | |
16352 | arg2 = wxString_in_helper(obj1); | |
16353 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 16354 | temp2 = true; |
d55e5bfc RD |
16355 | } |
16356 | { | |
16357 | arg3 = wxString_in_helper(obj2); | |
16358 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 16359 | temp3 = true; |
d55e5bfc RD |
16360 | } |
16361 | { | |
16362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16363 | result = (bool)(arg1)->RenameGroup((wxString const &)*arg2,(wxString const &)*arg3); | |
16364 | ||
16365 | wxPyEndAllowThreads(__tstate); | |
16366 | if (PyErr_Occurred()) SWIG_fail; | |
16367 | } | |
16368 | { | |
16369 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16370 | } | |
16371 | { | |
16372 | if (temp2) | |
16373 | delete arg2; | |
16374 | } | |
16375 | { | |
16376 | if (temp3) | |
16377 | delete arg3; | |
16378 | } | |
16379 | return resultobj; | |
16380 | fail: | |
16381 | { | |
16382 | if (temp2) | |
16383 | delete arg2; | |
16384 | } | |
16385 | { | |
16386 | if (temp3) | |
16387 | delete arg3; | |
16388 | } | |
16389 | return NULL; | |
16390 | } | |
16391 | ||
16392 | ||
c370783e | 16393 | static PyObject *_wrap_ConfigBase_DeleteEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16394 | PyObject *resultobj; |
16395 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16396 | wxString *arg2 = 0 ; | |
b411df4a | 16397 | bool arg3 = (bool) true ; |
d55e5bfc | 16398 | bool result; |
b411df4a | 16399 | bool temp2 = false ; |
d55e5bfc RD |
16400 | PyObject * obj0 = 0 ; |
16401 | PyObject * obj1 = 0 ; | |
16402 | PyObject * obj2 = 0 ; | |
16403 | char *kwnames[] = { | |
16404 | (char *) "self",(char *) "key",(char *) "deleteGroupIfEmpty", NULL | |
16405 | }; | |
16406 | ||
16407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_DeleteEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16408 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16409 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16410 | { | |
16411 | arg2 = wxString_in_helper(obj1); | |
16412 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 16413 | temp2 = true; |
d55e5bfc RD |
16414 | } |
16415 | if (obj2) { | |
c370783e | 16416 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
16417 | if (PyErr_Occurred()) SWIG_fail; |
16418 | } | |
16419 | { | |
16420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16421 | result = (bool)(arg1)->DeleteEntry((wxString const &)*arg2,arg3); | |
16422 | ||
16423 | wxPyEndAllowThreads(__tstate); | |
16424 | if (PyErr_Occurred()) SWIG_fail; | |
16425 | } | |
16426 | { | |
16427 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16428 | } | |
16429 | { | |
16430 | if (temp2) | |
16431 | delete arg2; | |
16432 | } | |
16433 | return resultobj; | |
16434 | fail: | |
16435 | { | |
16436 | if (temp2) | |
16437 | delete arg2; | |
16438 | } | |
16439 | return NULL; | |
16440 | } | |
16441 | ||
16442 | ||
c370783e | 16443 | static PyObject *_wrap_ConfigBase_DeleteGroup(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16444 | PyObject *resultobj; |
16445 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16446 | wxString *arg2 = 0 ; | |
16447 | bool result; | |
b411df4a | 16448 | bool temp2 = false ; |
d55e5bfc RD |
16449 | PyObject * obj0 = 0 ; |
16450 | PyObject * obj1 = 0 ; | |
16451 | char *kwnames[] = { | |
16452 | (char *) "self",(char *) "key", NULL | |
16453 | }; | |
16454 | ||
16455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_DeleteGroup",kwnames,&obj0,&obj1)) goto fail; | |
16456 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16457 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16458 | { | |
16459 | arg2 = wxString_in_helper(obj1); | |
16460 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 16461 | temp2 = true; |
d55e5bfc RD |
16462 | } |
16463 | { | |
16464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16465 | result = (bool)(arg1)->DeleteGroup((wxString const &)*arg2); | |
16466 | ||
16467 | wxPyEndAllowThreads(__tstate); | |
16468 | if (PyErr_Occurred()) SWIG_fail; | |
16469 | } | |
16470 | { | |
16471 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16472 | } | |
16473 | { | |
16474 | if (temp2) | |
16475 | delete arg2; | |
16476 | } | |
16477 | return resultobj; | |
16478 | fail: | |
16479 | { | |
16480 | if (temp2) | |
16481 | delete arg2; | |
16482 | } | |
16483 | return NULL; | |
16484 | } | |
16485 | ||
16486 | ||
c370783e | 16487 | static PyObject *_wrap_ConfigBase_DeleteAll(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16488 | PyObject *resultobj; |
16489 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16490 | bool result; | |
16491 | PyObject * obj0 = 0 ; | |
16492 | char *kwnames[] = { | |
16493 | (char *) "self", NULL | |
16494 | }; | |
16495 | ||
16496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_DeleteAll",kwnames,&obj0)) goto fail; | |
16497 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16498 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16499 | { | |
16500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16501 | result = (bool)(arg1)->DeleteAll(); | |
16502 | ||
16503 | wxPyEndAllowThreads(__tstate); | |
16504 | if (PyErr_Occurred()) SWIG_fail; | |
16505 | } | |
16506 | { | |
16507 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16508 | } | |
16509 | return resultobj; | |
16510 | fail: | |
16511 | return NULL; | |
16512 | } | |
16513 | ||
16514 | ||
c370783e | 16515 | static PyObject *_wrap_ConfigBase_SetExpandEnvVars(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16516 | PyObject *resultobj; |
16517 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
b411df4a | 16518 | bool arg2 = (bool) true ; |
d55e5bfc RD |
16519 | PyObject * obj0 = 0 ; |
16520 | PyObject * obj1 = 0 ; | |
16521 | char *kwnames[] = { | |
16522 | (char *) "self",(char *) "doIt", NULL | |
16523 | }; | |
16524 | ||
16525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetExpandEnvVars",kwnames,&obj0,&obj1)) goto fail; | |
16526 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16527 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16528 | if (obj1) { | |
c370783e | 16529 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
16530 | if (PyErr_Occurred()) SWIG_fail; |
16531 | } | |
16532 | { | |
16533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16534 | (arg1)->SetExpandEnvVars(arg2); | |
16535 | ||
16536 | wxPyEndAllowThreads(__tstate); | |
16537 | if (PyErr_Occurred()) SWIG_fail; | |
16538 | } | |
16539 | Py_INCREF(Py_None); resultobj = Py_None; | |
16540 | return resultobj; | |
16541 | fail: | |
16542 | return NULL; | |
16543 | } | |
16544 | ||
16545 | ||
c370783e | 16546 | static PyObject *_wrap_ConfigBase_IsExpandingEnvVars(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16547 | PyObject *resultobj; |
16548 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16549 | bool result; | |
16550 | PyObject * obj0 = 0 ; | |
16551 | char *kwnames[] = { | |
16552 | (char *) "self", NULL | |
16553 | }; | |
16554 | ||
16555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsExpandingEnvVars",kwnames,&obj0)) goto fail; | |
16556 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16557 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16558 | { | |
16559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16560 | result = (bool)((wxConfigBase const *)arg1)->IsExpandingEnvVars(); | |
16561 | ||
16562 | wxPyEndAllowThreads(__tstate); | |
16563 | if (PyErr_Occurred()) SWIG_fail; | |
16564 | } | |
16565 | { | |
16566 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16567 | } | |
16568 | return resultobj; | |
16569 | fail: | |
16570 | return NULL; | |
16571 | } | |
16572 | ||
16573 | ||
c370783e | 16574 | static PyObject *_wrap_ConfigBase_SetRecordDefaults(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16575 | PyObject *resultobj; |
16576 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
b411df4a | 16577 | bool arg2 = (bool) true ; |
d55e5bfc RD |
16578 | PyObject * obj0 = 0 ; |
16579 | PyObject * obj1 = 0 ; | |
16580 | char *kwnames[] = { | |
16581 | (char *) "self",(char *) "doIt", NULL | |
16582 | }; | |
16583 | ||
16584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetRecordDefaults",kwnames,&obj0,&obj1)) goto fail; | |
16585 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16586 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16587 | if (obj1) { | |
c370783e | 16588 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
16589 | if (PyErr_Occurred()) SWIG_fail; |
16590 | } | |
16591 | { | |
16592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16593 | (arg1)->SetRecordDefaults(arg2); | |
16594 | ||
16595 | wxPyEndAllowThreads(__tstate); | |
16596 | if (PyErr_Occurred()) SWIG_fail; | |
16597 | } | |
16598 | Py_INCREF(Py_None); resultobj = Py_None; | |
16599 | return resultobj; | |
16600 | fail: | |
16601 | return NULL; | |
16602 | } | |
16603 | ||
16604 | ||
c370783e | 16605 | static PyObject *_wrap_ConfigBase_IsRecordingDefaults(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16606 | PyObject *resultobj; |
16607 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16608 | bool result; | |
16609 | PyObject * obj0 = 0 ; | |
16610 | char *kwnames[] = { | |
16611 | (char *) "self", NULL | |
16612 | }; | |
16613 | ||
16614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsRecordingDefaults",kwnames,&obj0)) goto fail; | |
16615 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16617 | { | |
16618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16619 | result = (bool)((wxConfigBase const *)arg1)->IsRecordingDefaults(); | |
16620 | ||
16621 | wxPyEndAllowThreads(__tstate); | |
16622 | if (PyErr_Occurred()) SWIG_fail; | |
16623 | } | |
16624 | { | |
16625 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16626 | } | |
16627 | return resultobj; | |
16628 | fail: | |
16629 | return NULL; | |
16630 | } | |
16631 | ||
16632 | ||
c370783e | 16633 | static PyObject *_wrap_ConfigBase_ExpandEnvVars(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16634 | PyObject *resultobj; |
16635 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16636 | wxString *arg2 = 0 ; | |
16637 | wxString result; | |
b411df4a | 16638 | bool temp2 = false ; |
d55e5bfc RD |
16639 | PyObject * obj0 = 0 ; |
16640 | PyObject * obj1 = 0 ; | |
16641 | char *kwnames[] = { | |
16642 | (char *) "self",(char *) "str", NULL | |
16643 | }; | |
16644 | ||
16645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_ExpandEnvVars",kwnames,&obj0,&obj1)) goto fail; | |
16646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16648 | { | |
16649 | arg2 = wxString_in_helper(obj1); | |
16650 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 16651 | temp2 = true; |
d55e5bfc RD |
16652 | } |
16653 | { | |
16654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16655 | result = ((wxConfigBase const *)arg1)->ExpandEnvVars((wxString const &)*arg2); | |
16656 | ||
16657 | wxPyEndAllowThreads(__tstate); | |
16658 | if (PyErr_Occurred()) SWIG_fail; | |
16659 | } | |
16660 | { | |
16661 | #if wxUSE_UNICODE | |
16662 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16663 | #else | |
16664 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16665 | #endif | |
16666 | } | |
16667 | { | |
16668 | if (temp2) | |
16669 | delete arg2; | |
16670 | } | |
16671 | return resultobj; | |
16672 | fail: | |
16673 | { | |
16674 | if (temp2) | |
16675 | delete arg2; | |
16676 | } | |
16677 | return NULL; | |
16678 | } | |
16679 | ||
16680 | ||
c370783e | 16681 | static PyObject *_wrap_ConfigBase_GetAppName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16682 | PyObject *resultobj; |
16683 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16684 | wxString result; | |
16685 | PyObject * obj0 = 0 ; | |
16686 | char *kwnames[] = { | |
16687 | (char *) "self", NULL | |
16688 | }; | |
16689 | ||
16690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetAppName",kwnames,&obj0)) goto fail; | |
16691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16693 | { | |
16694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16695 | result = ((wxConfigBase const *)arg1)->GetAppName(); | |
16696 | ||
16697 | wxPyEndAllowThreads(__tstate); | |
16698 | if (PyErr_Occurred()) SWIG_fail; | |
16699 | } | |
16700 | { | |
16701 | #if wxUSE_UNICODE | |
16702 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16703 | #else | |
16704 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16705 | #endif | |
16706 | } | |
16707 | return resultobj; | |
16708 | fail: | |
16709 | return NULL; | |
16710 | } | |
16711 | ||
16712 | ||
c370783e | 16713 | static PyObject *_wrap_ConfigBase_GetVendorName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16714 | PyObject *resultobj; |
16715 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16716 | wxString result; | |
16717 | PyObject * obj0 = 0 ; | |
16718 | char *kwnames[] = { | |
16719 | (char *) "self", NULL | |
16720 | }; | |
16721 | ||
16722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetVendorName",kwnames,&obj0)) goto fail; | |
16723 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16724 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16725 | { | |
16726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16727 | result = ((wxConfigBase const *)arg1)->GetVendorName(); | |
16728 | ||
16729 | wxPyEndAllowThreads(__tstate); | |
16730 | if (PyErr_Occurred()) SWIG_fail; | |
16731 | } | |
16732 | { | |
16733 | #if wxUSE_UNICODE | |
16734 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16735 | #else | |
16736 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16737 | #endif | |
16738 | } | |
16739 | return resultobj; | |
16740 | fail: | |
16741 | return NULL; | |
16742 | } | |
16743 | ||
16744 | ||
c370783e | 16745 | static PyObject *_wrap_ConfigBase_SetAppName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16746 | PyObject *resultobj; |
16747 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16748 | wxString *arg2 = 0 ; | |
b411df4a | 16749 | bool temp2 = false ; |
d55e5bfc RD |
16750 | PyObject * obj0 = 0 ; |
16751 | PyObject * obj1 = 0 ; | |
16752 | char *kwnames[] = { | |
16753 | (char *) "self",(char *) "appName", NULL | |
16754 | }; | |
16755 | ||
16756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetAppName",kwnames,&obj0,&obj1)) goto fail; | |
16757 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16758 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16759 | { | |
16760 | arg2 = wxString_in_helper(obj1); | |
16761 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 16762 | temp2 = true; |
d55e5bfc RD |
16763 | } |
16764 | { | |
16765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16766 | (arg1)->SetAppName((wxString const &)*arg2); | |
16767 | ||
16768 | wxPyEndAllowThreads(__tstate); | |
16769 | if (PyErr_Occurred()) SWIG_fail; | |
16770 | } | |
16771 | Py_INCREF(Py_None); resultobj = Py_None; | |
16772 | { | |
16773 | if (temp2) | |
16774 | delete arg2; | |
16775 | } | |
16776 | return resultobj; | |
16777 | fail: | |
16778 | { | |
16779 | if (temp2) | |
16780 | delete arg2; | |
16781 | } | |
16782 | return NULL; | |
16783 | } | |
16784 | ||
16785 | ||
c370783e | 16786 | static PyObject *_wrap_ConfigBase_SetVendorName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16787 | PyObject *resultobj; |
16788 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16789 | wxString *arg2 = 0 ; | |
b411df4a | 16790 | bool temp2 = false ; |
d55e5bfc RD |
16791 | PyObject * obj0 = 0 ; |
16792 | PyObject * obj1 = 0 ; | |
16793 | char *kwnames[] = { | |
16794 | (char *) "self",(char *) "vendorName", NULL | |
16795 | }; | |
16796 | ||
16797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetVendorName",kwnames,&obj0,&obj1)) goto fail; | |
16798 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16799 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16800 | { | |
16801 | arg2 = wxString_in_helper(obj1); | |
16802 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 16803 | temp2 = true; |
d55e5bfc RD |
16804 | } |
16805 | { | |
16806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16807 | (arg1)->SetVendorName((wxString const &)*arg2); | |
16808 | ||
16809 | wxPyEndAllowThreads(__tstate); | |
16810 | if (PyErr_Occurred()) SWIG_fail; | |
16811 | } | |
16812 | Py_INCREF(Py_None); resultobj = Py_None; | |
16813 | { | |
16814 | if (temp2) | |
16815 | delete arg2; | |
16816 | } | |
16817 | return resultobj; | |
16818 | fail: | |
16819 | { | |
16820 | if (temp2) | |
16821 | delete arg2; | |
16822 | } | |
16823 | return NULL; | |
16824 | } | |
16825 | ||
16826 | ||
c370783e | 16827 | static PyObject *_wrap_ConfigBase_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16828 | PyObject *resultobj; |
16829 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16830 | long arg2 ; | |
16831 | PyObject * obj0 = 0 ; | |
16832 | PyObject * obj1 = 0 ; | |
16833 | char *kwnames[] = { | |
16834 | (char *) "self",(char *) "style", NULL | |
16835 | }; | |
16836 | ||
16837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetStyle",kwnames,&obj0,&obj1)) goto fail; | |
16838 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16839 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 16840 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
16841 | if (PyErr_Occurred()) SWIG_fail; |
16842 | { | |
16843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16844 | (arg1)->SetStyle(arg2); | |
16845 | ||
16846 | wxPyEndAllowThreads(__tstate); | |
16847 | if (PyErr_Occurred()) SWIG_fail; | |
16848 | } | |
16849 | Py_INCREF(Py_None); resultobj = Py_None; | |
16850 | return resultobj; | |
16851 | fail: | |
16852 | return NULL; | |
16853 | } | |
16854 | ||
16855 | ||
c370783e | 16856 | static PyObject *_wrap_ConfigBase_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16857 | PyObject *resultobj; |
16858 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16859 | long result; | |
16860 | PyObject * obj0 = 0 ; | |
16861 | char *kwnames[] = { | |
16862 | (char *) "self", NULL | |
16863 | }; | |
16864 | ||
16865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetStyle",kwnames,&obj0)) goto fail; | |
16866 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16867 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16868 | { | |
16869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16870 | result = (long)((wxConfigBase const *)arg1)->GetStyle(); | |
16871 | ||
16872 | wxPyEndAllowThreads(__tstate); | |
16873 | if (PyErr_Occurred()) SWIG_fail; | |
16874 | } | |
c370783e | 16875 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
16876 | return resultobj; |
16877 | fail: | |
16878 | return NULL; | |
16879 | } | |
16880 | ||
16881 | ||
c370783e | 16882 | static PyObject * ConfigBase_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
16883 | PyObject *obj; |
16884 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16885 | SWIG_TypeClientData(SWIGTYPE_p_wxConfigBase, obj); | |
16886 | Py_INCREF(obj); | |
16887 | return Py_BuildValue((char *)""); | |
16888 | } | |
c370783e | 16889 | static PyObject *_wrap_new_Config(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16890 | PyObject *resultobj; |
16891 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
16892 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
16893 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
16894 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
16895 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16896 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16897 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
16898 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
16899 | long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ; | |
16900 | wxConfig *result; | |
b411df4a RD |
16901 | bool temp1 = false ; |
16902 | bool temp2 = false ; | |
16903 | bool temp3 = false ; | |
16904 | bool temp4 = false ; | |
d55e5bfc RD |
16905 | PyObject * obj0 = 0 ; |
16906 | PyObject * obj1 = 0 ; | |
16907 | PyObject * obj2 = 0 ; | |
16908 | PyObject * obj3 = 0 ; | |
16909 | PyObject * obj4 = 0 ; | |
16910 | char *kwnames[] = { | |
16911 | (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL | |
16912 | }; | |
16913 | ||
16914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_Config",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
16915 | if (obj0) { | |
16916 | { | |
16917 | arg1 = wxString_in_helper(obj0); | |
16918 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 16919 | temp1 = true; |
d55e5bfc RD |
16920 | } |
16921 | } | |
16922 | if (obj1) { | |
16923 | { | |
16924 | arg2 = wxString_in_helper(obj1); | |
16925 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 16926 | temp2 = true; |
d55e5bfc RD |
16927 | } |
16928 | } | |
16929 | if (obj2) { | |
16930 | { | |
16931 | arg3 = wxString_in_helper(obj2); | |
16932 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 16933 | temp3 = true; |
d55e5bfc RD |
16934 | } |
16935 | } | |
16936 | if (obj3) { | |
16937 | { | |
16938 | arg4 = wxString_in_helper(obj3); | |
16939 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 16940 | temp4 = true; |
d55e5bfc RD |
16941 | } |
16942 | } | |
16943 | if (obj4) { | |
c370783e | 16944 | arg5 = (long)SWIG_As_long(obj4); |
d55e5bfc RD |
16945 | if (PyErr_Occurred()) SWIG_fail; |
16946 | } | |
16947 | { | |
16948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16949 | result = (wxConfig *)new wxConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
16950 | ||
16951 | wxPyEndAllowThreads(__tstate); | |
16952 | if (PyErr_Occurred()) SWIG_fail; | |
16953 | } | |
16954 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfig, 1); | |
16955 | { | |
16956 | if (temp1) | |
16957 | delete arg1; | |
16958 | } | |
16959 | { | |
16960 | if (temp2) | |
16961 | delete arg2; | |
16962 | } | |
16963 | { | |
16964 | if (temp3) | |
16965 | delete arg3; | |
16966 | } | |
16967 | { | |
16968 | if (temp4) | |
16969 | delete arg4; | |
16970 | } | |
16971 | return resultobj; | |
16972 | fail: | |
16973 | { | |
16974 | if (temp1) | |
16975 | delete arg1; | |
16976 | } | |
16977 | { | |
16978 | if (temp2) | |
16979 | delete arg2; | |
16980 | } | |
16981 | { | |
16982 | if (temp3) | |
16983 | delete arg3; | |
16984 | } | |
16985 | { | |
16986 | if (temp4) | |
16987 | delete arg4; | |
16988 | } | |
16989 | return NULL; | |
16990 | } | |
16991 | ||
16992 | ||
c370783e | 16993 | static PyObject *_wrap_delete_Config(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16994 | PyObject *resultobj; |
16995 | wxConfig *arg1 = (wxConfig *) 0 ; | |
16996 | PyObject * obj0 = 0 ; | |
16997 | char *kwnames[] = { | |
16998 | (char *) "self", NULL | |
16999 | }; | |
17000 | ||
17001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Config",kwnames,&obj0)) goto fail; | |
17002 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfig, | |
17003 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17004 | { | |
17005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17006 | delete arg1; | |
17007 | ||
17008 | wxPyEndAllowThreads(__tstate); | |
17009 | if (PyErr_Occurred()) SWIG_fail; | |
17010 | } | |
17011 | Py_INCREF(Py_None); resultobj = Py_None; | |
17012 | return resultobj; | |
17013 | fail: | |
17014 | return NULL; | |
17015 | } | |
17016 | ||
17017 | ||
c370783e | 17018 | static PyObject * Config_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17019 | PyObject *obj; |
17020 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17021 | SWIG_TypeClientData(SWIGTYPE_p_wxConfig, obj); | |
17022 | Py_INCREF(obj); | |
17023 | return Py_BuildValue((char *)""); | |
17024 | } | |
c370783e | 17025 | static PyObject *_wrap_new_FileConfig(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17026 | PyObject *resultobj; |
17027 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
17028 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
17029 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
17030 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
17031 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
17032 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
17033 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
17034 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
17035 | long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ; | |
17036 | wxFileConfig *result; | |
b411df4a RD |
17037 | bool temp1 = false ; |
17038 | bool temp2 = false ; | |
17039 | bool temp3 = false ; | |
17040 | bool temp4 = false ; | |
d55e5bfc RD |
17041 | PyObject * obj0 = 0 ; |
17042 | PyObject * obj1 = 0 ; | |
17043 | PyObject * obj2 = 0 ; | |
17044 | PyObject * obj3 = 0 ; | |
17045 | PyObject * obj4 = 0 ; | |
17046 | char *kwnames[] = { | |
17047 | (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL | |
17048 | }; | |
17049 | ||
17050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_FileConfig",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
17051 | if (obj0) { | |
17052 | { | |
17053 | arg1 = wxString_in_helper(obj0); | |
17054 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 17055 | temp1 = true; |
d55e5bfc RD |
17056 | } |
17057 | } | |
17058 | if (obj1) { | |
17059 | { | |
17060 | arg2 = wxString_in_helper(obj1); | |
17061 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 17062 | temp2 = true; |
d55e5bfc RD |
17063 | } |
17064 | } | |
17065 | if (obj2) { | |
17066 | { | |
17067 | arg3 = wxString_in_helper(obj2); | |
17068 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 17069 | temp3 = true; |
d55e5bfc RD |
17070 | } |
17071 | } | |
17072 | if (obj3) { | |
17073 | { | |
17074 | arg4 = wxString_in_helper(obj3); | |
17075 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 17076 | temp4 = true; |
d55e5bfc RD |
17077 | } |
17078 | } | |
17079 | if (obj4) { | |
c370783e | 17080 | arg5 = (long)SWIG_As_long(obj4); |
d55e5bfc RD |
17081 | if (PyErr_Occurred()) SWIG_fail; |
17082 | } | |
17083 | { | |
17084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17085 | result = (wxFileConfig *)new wxFileConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
17086 | ||
17087 | wxPyEndAllowThreads(__tstate); | |
17088 | if (PyErr_Occurred()) SWIG_fail; | |
17089 | } | |
17090 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileConfig, 1); | |
17091 | { | |
17092 | if (temp1) | |
17093 | delete arg1; | |
17094 | } | |
17095 | { | |
17096 | if (temp2) | |
17097 | delete arg2; | |
17098 | } | |
17099 | { | |
17100 | if (temp3) | |
17101 | delete arg3; | |
17102 | } | |
17103 | { | |
17104 | if (temp4) | |
17105 | delete arg4; | |
17106 | } | |
17107 | return resultobj; | |
17108 | fail: | |
17109 | { | |
17110 | if (temp1) | |
17111 | delete arg1; | |
17112 | } | |
17113 | { | |
17114 | if (temp2) | |
17115 | delete arg2; | |
17116 | } | |
17117 | { | |
17118 | if (temp3) | |
17119 | delete arg3; | |
17120 | } | |
17121 | { | |
17122 | if (temp4) | |
17123 | delete arg4; | |
17124 | } | |
17125 | return NULL; | |
17126 | } | |
17127 | ||
17128 | ||
c370783e | 17129 | static PyObject *_wrap_delete_FileConfig(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17130 | PyObject *resultobj; |
17131 | wxFileConfig *arg1 = (wxFileConfig *) 0 ; | |
17132 | PyObject * obj0 = 0 ; | |
17133 | char *kwnames[] = { | |
17134 | (char *) "self", NULL | |
17135 | }; | |
17136 | ||
17137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileConfig",kwnames,&obj0)) goto fail; | |
17138 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileConfig, | |
17139 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17140 | { | |
17141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17142 | delete arg1; | |
17143 | ||
17144 | wxPyEndAllowThreads(__tstate); | |
17145 | if (PyErr_Occurred()) SWIG_fail; | |
17146 | } | |
17147 | Py_INCREF(Py_None); resultobj = Py_None; | |
17148 | return resultobj; | |
17149 | fail: | |
17150 | return NULL; | |
17151 | } | |
17152 | ||
17153 | ||
c370783e | 17154 | static PyObject * FileConfig_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17155 | PyObject *obj; |
17156 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17157 | SWIG_TypeClientData(SWIGTYPE_p_wxFileConfig, obj); | |
17158 | Py_INCREF(obj); | |
17159 | return Py_BuildValue((char *)""); | |
17160 | } | |
c370783e | 17161 | static PyObject *_wrap_new_ConfigPathChanger(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17162 | PyObject *resultobj; |
17163 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
17164 | wxString *arg2 = 0 ; | |
17165 | wxConfigPathChanger *result; | |
b411df4a | 17166 | bool temp2 = false ; |
d55e5bfc RD |
17167 | PyObject * obj0 = 0 ; |
17168 | PyObject * obj1 = 0 ; | |
17169 | char *kwnames[] = { | |
17170 | (char *) "config",(char *) "entry", NULL | |
17171 | }; | |
17172 | ||
17173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_ConfigPathChanger",kwnames,&obj0,&obj1)) goto fail; | |
17174 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
17175 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17176 | { | |
17177 | arg2 = wxString_in_helper(obj1); | |
17178 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 17179 | temp2 = true; |
d55e5bfc RD |
17180 | } |
17181 | { | |
17182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17183 | result = (wxConfigPathChanger *)new wxConfigPathChanger((wxConfigBase const *)arg1,(wxString const &)*arg2); | |
17184 | ||
17185 | wxPyEndAllowThreads(__tstate); | |
17186 | if (PyErr_Occurred()) SWIG_fail; | |
17187 | } | |
17188 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigPathChanger, 1); | |
17189 | { | |
17190 | if (temp2) | |
17191 | delete arg2; | |
17192 | } | |
17193 | return resultobj; | |
17194 | fail: | |
17195 | { | |
17196 | if (temp2) | |
17197 | delete arg2; | |
17198 | } | |
17199 | return NULL; | |
17200 | } | |
17201 | ||
17202 | ||
c370783e | 17203 | static PyObject *_wrap_delete_ConfigPathChanger(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17204 | PyObject *resultobj; |
17205 | wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ; | |
17206 | PyObject * obj0 = 0 ; | |
17207 | char *kwnames[] = { | |
17208 | (char *) "self", NULL | |
17209 | }; | |
17210 | ||
17211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigPathChanger",kwnames,&obj0)) goto fail; | |
17212 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger, | |
17213 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17214 | { | |
17215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17216 | delete arg1; | |
17217 | ||
17218 | wxPyEndAllowThreads(__tstate); | |
17219 | if (PyErr_Occurred()) SWIG_fail; | |
17220 | } | |
17221 | Py_INCREF(Py_None); resultobj = Py_None; | |
17222 | return resultobj; | |
17223 | fail: | |
17224 | return NULL; | |
17225 | } | |
17226 | ||
17227 | ||
c370783e | 17228 | static PyObject *_wrap_ConfigPathChanger_Name(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17229 | PyObject *resultobj; |
17230 | wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ; | |
17231 | wxString *result; | |
17232 | PyObject * obj0 = 0 ; | |
17233 | char *kwnames[] = { | |
17234 | (char *) "self", NULL | |
17235 | }; | |
17236 | ||
17237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigPathChanger_Name",kwnames,&obj0)) goto fail; | |
17238 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger, | |
17239 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17240 | { | |
17241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17242 | { | |
17243 | wxString const &_result_ref = ((wxConfigPathChanger const *)arg1)->Name(); | |
17244 | result = (wxString *) &_result_ref; | |
17245 | } | |
17246 | ||
17247 | wxPyEndAllowThreads(__tstate); | |
17248 | if (PyErr_Occurred()) SWIG_fail; | |
17249 | } | |
17250 | { | |
17251 | #if wxUSE_UNICODE | |
17252 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
17253 | #else | |
17254 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
17255 | #endif | |
17256 | } | |
17257 | return resultobj; | |
17258 | fail: | |
17259 | return NULL; | |
17260 | } | |
17261 | ||
17262 | ||
c370783e | 17263 | static PyObject * ConfigPathChanger_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17264 | PyObject *obj; |
17265 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17266 | SWIG_TypeClientData(SWIGTYPE_p_wxConfigPathChanger, obj); | |
17267 | Py_INCREF(obj); | |
17268 | return Py_BuildValue((char *)""); | |
17269 | } | |
c370783e | 17270 | static PyObject *_wrap_ExpandEnvVars(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17271 | PyObject *resultobj; |
17272 | wxString *arg1 = 0 ; | |
17273 | wxString result; | |
b411df4a | 17274 | bool temp1 = false ; |
d55e5bfc RD |
17275 | PyObject * obj0 = 0 ; |
17276 | char *kwnames[] = { | |
17277 | (char *) "sz", NULL | |
17278 | }; | |
17279 | ||
17280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ExpandEnvVars",kwnames,&obj0)) goto fail; | |
17281 | { | |
17282 | arg1 = wxString_in_helper(obj0); | |
17283 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 17284 | temp1 = true; |
d55e5bfc RD |
17285 | } |
17286 | { | |
17287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17288 | result = wxExpandEnvVars((wxString const &)*arg1); | |
17289 | ||
17290 | wxPyEndAllowThreads(__tstate); | |
17291 | if (PyErr_Occurred()) SWIG_fail; | |
17292 | } | |
17293 | { | |
17294 | #if wxUSE_UNICODE | |
17295 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17296 | #else | |
17297 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17298 | #endif | |
17299 | } | |
17300 | { | |
17301 | if (temp1) | |
17302 | delete arg1; | |
17303 | } | |
17304 | return resultobj; | |
17305 | fail: | |
17306 | { | |
17307 | if (temp1) | |
17308 | delete arg1; | |
17309 | } | |
17310 | return NULL; | |
17311 | } | |
17312 | ||
17313 | ||
c370783e | 17314 | static int _wrap_DateFormatStr_set(PyObject *) { |
d55e5bfc RD |
17315 | PyErr_SetString(PyExc_TypeError,"Variable DateFormatStr is read-only."); |
17316 | return 1; | |
17317 | } | |
17318 | ||
17319 | ||
17320 | static PyObject *_wrap_DateFormatStr_get() { | |
17321 | PyObject *pyobj; | |
17322 | ||
17323 | { | |
17324 | #if wxUSE_UNICODE | |
17325 | pyobj = PyUnicode_FromWideChar((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len()); | |
17326 | #else | |
17327 | pyobj = PyString_FromStringAndSize((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len()); | |
17328 | #endif | |
17329 | } | |
17330 | return pyobj; | |
17331 | } | |
17332 | ||
17333 | ||
c370783e | 17334 | static int _wrap_TimeSpanFormatStr_set(PyObject *) { |
d55e5bfc RD |
17335 | PyErr_SetString(PyExc_TypeError,"Variable TimeSpanFormatStr is read-only."); |
17336 | return 1; | |
17337 | } | |
17338 | ||
17339 | ||
17340 | static PyObject *_wrap_TimeSpanFormatStr_get() { | |
17341 | PyObject *pyobj; | |
17342 | ||
17343 | { | |
17344 | #if wxUSE_UNICODE | |
17345 | pyobj = PyUnicode_FromWideChar((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len()); | |
17346 | #else | |
17347 | pyobj = PyString_FromStringAndSize((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len()); | |
17348 | #endif | |
17349 | } | |
17350 | return pyobj; | |
17351 | } | |
17352 | ||
17353 | ||
c370783e | 17354 | static PyObject *_wrap_DateTime_SetCountry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17355 | PyObject *resultobj; |
17356 | int arg1 ; | |
17357 | PyObject * obj0 = 0 ; | |
17358 | char *kwnames[] = { | |
17359 | (char *) "country", NULL | |
17360 | }; | |
17361 | ||
17362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetCountry",kwnames,&obj0)) goto fail; | |
c370783e | 17363 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17364 | if (PyErr_Occurred()) SWIG_fail; |
17365 | { | |
17366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17367 | wxDateTime::SetCountry((wxDateTime::Country )arg1); | |
17368 | ||
17369 | wxPyEndAllowThreads(__tstate); | |
17370 | if (PyErr_Occurred()) SWIG_fail; | |
17371 | } | |
17372 | Py_INCREF(Py_None); resultobj = Py_None; | |
17373 | return resultobj; | |
17374 | fail: | |
17375 | return NULL; | |
17376 | } | |
17377 | ||
17378 | ||
c370783e | 17379 | static PyObject *_wrap_DateTime_GetCountry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17380 | PyObject *resultobj; |
17381 | int result; | |
17382 | char *kwnames[] = { | |
17383 | NULL | |
17384 | }; | |
17385 | ||
17386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetCountry",kwnames)) goto fail; | |
17387 | { | |
17388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17389 | result = (int)wxDateTime::GetCountry(); | |
17390 | ||
17391 | wxPyEndAllowThreads(__tstate); | |
17392 | if (PyErr_Occurred()) SWIG_fail; | |
17393 | } | |
c370783e | 17394 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
17395 | return resultobj; |
17396 | fail: | |
17397 | return NULL; | |
17398 | } | |
17399 | ||
17400 | ||
c370783e | 17401 | static PyObject *_wrap_DateTime_IsWestEuropeanCountry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17402 | PyObject *resultobj; |
17403 | int arg1 = (int) wxDateTime::Country_Default ; | |
17404 | bool result; | |
17405 | PyObject * obj0 = 0 ; | |
17406 | char *kwnames[] = { | |
17407 | (char *) "country", NULL | |
17408 | }; | |
17409 | ||
17410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_IsWestEuropeanCountry",kwnames,&obj0)) goto fail; | |
17411 | if (obj0) { | |
c370783e | 17412 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17413 | if (PyErr_Occurred()) SWIG_fail; |
17414 | } | |
17415 | { | |
17416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17417 | result = (bool)wxDateTime::IsWestEuropeanCountry((wxDateTime::Country )arg1); | |
17418 | ||
17419 | wxPyEndAllowThreads(__tstate); | |
17420 | if (PyErr_Occurred()) SWIG_fail; | |
17421 | } | |
17422 | { | |
17423 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17424 | } | |
17425 | return resultobj; | |
17426 | fail: | |
17427 | return NULL; | |
17428 | } | |
17429 | ||
17430 | ||
c370783e | 17431 | static PyObject *_wrap_DateTime_GetCurrentYear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17432 | PyObject *resultobj; |
17433 | int arg1 = (int) wxDateTime::Gregorian ; | |
17434 | int result; | |
17435 | PyObject * obj0 = 0 ; | |
17436 | char *kwnames[] = { | |
17437 | (char *) "cal", NULL | |
17438 | }; | |
17439 | ||
17440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentYear",kwnames,&obj0)) goto fail; | |
17441 | if (obj0) { | |
c370783e | 17442 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17443 | if (PyErr_Occurred()) SWIG_fail; |
17444 | } | |
17445 | { | |
17446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17447 | result = (int)wxDateTime::GetCurrentYear((wxDateTime::Calendar )arg1); | |
17448 | ||
17449 | wxPyEndAllowThreads(__tstate); | |
17450 | if (PyErr_Occurred()) SWIG_fail; | |
17451 | } | |
c370783e | 17452 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
17453 | return resultobj; |
17454 | fail: | |
17455 | return NULL; | |
17456 | } | |
17457 | ||
17458 | ||
c370783e | 17459 | static PyObject *_wrap_DateTime_ConvertYearToBC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17460 | PyObject *resultobj; |
17461 | int arg1 ; | |
17462 | int result; | |
17463 | PyObject * obj0 = 0 ; | |
17464 | char *kwnames[] = { | |
17465 | (char *) "year", NULL | |
17466 | }; | |
17467 | ||
17468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ConvertYearToBC",kwnames,&obj0)) goto fail; | |
c370783e | 17469 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17470 | if (PyErr_Occurred()) SWIG_fail; |
17471 | { | |
17472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17473 | result = (int)wxDateTime::ConvertYearToBC(arg1); | |
17474 | ||
17475 | wxPyEndAllowThreads(__tstate); | |
17476 | if (PyErr_Occurred()) SWIG_fail; | |
17477 | } | |
c370783e | 17478 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
17479 | return resultobj; |
17480 | fail: | |
17481 | return NULL; | |
17482 | } | |
17483 | ||
17484 | ||
c370783e | 17485 | static PyObject *_wrap_DateTime_GetCurrentMonth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17486 | PyObject *resultobj; |
17487 | int arg1 = (int) wxDateTime::Gregorian ; | |
17488 | int result; | |
17489 | PyObject * obj0 = 0 ; | |
17490 | char *kwnames[] = { | |
17491 | (char *) "cal", NULL | |
17492 | }; | |
17493 | ||
17494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentMonth",kwnames,&obj0)) goto fail; | |
17495 | if (obj0) { | |
c370783e | 17496 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17497 | if (PyErr_Occurred()) SWIG_fail; |
17498 | } | |
17499 | { | |
17500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17501 | result = (int)wxDateTime::GetCurrentMonth((wxDateTime::Calendar )arg1); | |
17502 | ||
17503 | wxPyEndAllowThreads(__tstate); | |
17504 | if (PyErr_Occurred()) SWIG_fail; | |
17505 | } | |
c370783e | 17506 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
17507 | return resultobj; |
17508 | fail: | |
17509 | return NULL; | |
17510 | } | |
17511 | ||
17512 | ||
c370783e | 17513 | static PyObject *_wrap_DateTime_IsLeapYear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17514 | PyObject *resultobj; |
17515 | int arg1 = (int) wxDateTime::Inv_Year ; | |
17516 | int arg2 = (int) wxDateTime::Gregorian ; | |
17517 | bool result; | |
17518 | PyObject * obj0 = 0 ; | |
17519 | PyObject * obj1 = 0 ; | |
17520 | char *kwnames[] = { | |
17521 | (char *) "year",(char *) "cal", NULL | |
17522 | }; | |
17523 | ||
17524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsLeapYear",kwnames,&obj0,&obj1)) goto fail; | |
17525 | if (obj0) { | |
c370783e | 17526 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17527 | if (PyErr_Occurred()) SWIG_fail; |
17528 | } | |
17529 | if (obj1) { | |
c370783e | 17530 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17531 | if (PyErr_Occurred()) SWIG_fail; |
17532 | } | |
17533 | { | |
17534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17535 | result = (bool)wxDateTime::IsLeapYear(arg1,(wxDateTime::Calendar )arg2); | |
17536 | ||
17537 | wxPyEndAllowThreads(__tstate); | |
17538 | if (PyErr_Occurred()) SWIG_fail; | |
17539 | } | |
17540 | { | |
17541 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17542 | } | |
17543 | return resultobj; | |
17544 | fail: | |
17545 | return NULL; | |
17546 | } | |
17547 | ||
17548 | ||
c370783e | 17549 | static PyObject *_wrap_DateTime_GetCentury(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17550 | PyObject *resultobj; |
17551 | int arg1 = (int) wxDateTime::Inv_Year ; | |
17552 | int result; | |
17553 | PyObject * obj0 = 0 ; | |
17554 | char *kwnames[] = { | |
17555 | (char *) "year", NULL | |
17556 | }; | |
17557 | ||
17558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCentury",kwnames,&obj0)) goto fail; | |
17559 | if (obj0) { | |
c370783e | 17560 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17561 | if (PyErr_Occurred()) SWIG_fail; |
17562 | } | |
17563 | { | |
17564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17565 | result = (int)wxDateTime::GetCentury(arg1); | |
17566 | ||
17567 | wxPyEndAllowThreads(__tstate); | |
17568 | if (PyErr_Occurred()) SWIG_fail; | |
17569 | } | |
c370783e | 17570 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
17571 | return resultobj; |
17572 | fail: | |
17573 | return NULL; | |
17574 | } | |
17575 | ||
17576 | ||
c370783e | 17577 | static PyObject *_wrap_DateTime_GetNumberOfDaysinYear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17578 | PyObject *resultobj; |
17579 | int arg1 ; | |
17580 | int arg2 = (int) wxDateTime::Gregorian ; | |
17581 | int result; | |
17582 | PyObject * obj0 = 0 ; | |
17583 | PyObject * obj1 = 0 ; | |
17584 | char *kwnames[] = { | |
17585 | (char *) "year",(char *) "cal", NULL | |
17586 | }; | |
17587 | ||
17588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetNumberOfDaysinYear",kwnames,&obj0,&obj1)) goto fail; | |
c370783e | 17589 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17590 | if (PyErr_Occurred()) SWIG_fail; |
17591 | if (obj1) { | |
c370783e | 17592 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17593 | if (PyErr_Occurred()) SWIG_fail; |
17594 | } | |
17595 | { | |
17596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17597 | result = (int)wxDateTime::GetNumberOfDays(arg1,(wxDateTime::Calendar )arg2); | |
17598 | ||
17599 | wxPyEndAllowThreads(__tstate); | |
17600 | if (PyErr_Occurred()) SWIG_fail; | |
17601 | } | |
c370783e | 17602 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
17603 | return resultobj; |
17604 | fail: | |
17605 | return NULL; | |
17606 | } | |
17607 | ||
17608 | ||
c370783e | 17609 | static PyObject *_wrap_DateTime_GetNumberOfDaysInMonth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17610 | PyObject *resultobj; |
17611 | int arg1 ; | |
17612 | int arg2 = (int) wxDateTime::Inv_Year ; | |
17613 | int arg3 = (int) wxDateTime::Gregorian ; | |
17614 | int result; | |
17615 | PyObject * obj0 = 0 ; | |
17616 | PyObject * obj1 = 0 ; | |
17617 | PyObject * obj2 = 0 ; | |
17618 | char *kwnames[] = { | |
17619 | (char *) "month",(char *) "year",(char *) "cal", NULL | |
17620 | }; | |
17621 | ||
17622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetNumberOfDaysInMonth",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
c370783e | 17623 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17624 | if (PyErr_Occurred()) SWIG_fail; |
17625 | if (obj1) { | |
c370783e | 17626 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17627 | if (PyErr_Occurred()) SWIG_fail; |
17628 | } | |
17629 | if (obj2) { | |
c370783e | 17630 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
17631 | if (PyErr_Occurred()) SWIG_fail; |
17632 | } | |
17633 | { | |
17634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17635 | result = (int)wxDateTime::GetNumberOfDays((wxDateTime::Month )arg1,arg2,(wxDateTime::Calendar )arg3); | |
17636 | ||
17637 | wxPyEndAllowThreads(__tstate); | |
17638 | if (PyErr_Occurred()) SWIG_fail; | |
17639 | } | |
c370783e | 17640 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
17641 | return resultobj; |
17642 | fail: | |
17643 | return NULL; | |
17644 | } | |
17645 | ||
17646 | ||
c370783e | 17647 | static PyObject *_wrap_DateTime_GetMonthName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17648 | PyObject *resultobj; |
17649 | int arg1 ; | |
17650 | int arg2 = (int) wxDateTime::Name_Full ; | |
17651 | wxString result; | |
17652 | PyObject * obj0 = 0 ; | |
17653 | PyObject * obj1 = 0 ; | |
17654 | char *kwnames[] = { | |
17655 | (char *) "month",(char *) "flags", NULL | |
17656 | }; | |
17657 | ||
17658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonthName",kwnames,&obj0,&obj1)) goto fail; | |
c370783e | 17659 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17660 | if (PyErr_Occurred()) SWIG_fail; |
17661 | if (obj1) { | |
c370783e | 17662 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17663 | if (PyErr_Occurred()) SWIG_fail; |
17664 | } | |
17665 | { | |
17666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17667 | result = wxDateTime::GetMonthName((wxDateTime::Month )arg1,(wxDateTime::NameFlags )arg2); | |
17668 | ||
17669 | wxPyEndAllowThreads(__tstate); | |
17670 | if (PyErr_Occurred()) SWIG_fail; | |
17671 | } | |
17672 | { | |
17673 | #if wxUSE_UNICODE | |
17674 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17675 | #else | |
17676 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17677 | #endif | |
17678 | } | |
17679 | return resultobj; | |
17680 | fail: | |
17681 | return NULL; | |
17682 | } | |
17683 | ||
17684 | ||
c370783e | 17685 | static PyObject *_wrap_DateTime_GetWeekDayName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17686 | PyObject *resultobj; |
17687 | int arg1 ; | |
17688 | int arg2 = (int) wxDateTime::Name_Full ; | |
17689 | wxString result; | |
17690 | PyObject * obj0 = 0 ; | |
17691 | PyObject * obj1 = 0 ; | |
17692 | char *kwnames[] = { | |
17693 | (char *) "weekday",(char *) "flags", NULL | |
17694 | }; | |
17695 | ||
17696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDayName",kwnames,&obj0,&obj1)) goto fail; | |
c370783e | 17697 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17698 | if (PyErr_Occurred()) SWIG_fail; |
17699 | if (obj1) { | |
c370783e | 17700 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17701 | if (PyErr_Occurred()) SWIG_fail; |
17702 | } | |
17703 | { | |
17704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17705 | result = wxDateTime::GetWeekDayName((wxDateTime::WeekDay )arg1,(wxDateTime::NameFlags )arg2); | |
17706 | ||
17707 | wxPyEndAllowThreads(__tstate); | |
17708 | if (PyErr_Occurred()) SWIG_fail; | |
17709 | } | |
17710 | { | |
17711 | #if wxUSE_UNICODE | |
17712 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17713 | #else | |
17714 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17715 | #endif | |
17716 | } | |
17717 | return resultobj; | |
17718 | fail: | |
17719 | return NULL; | |
17720 | } | |
17721 | ||
17722 | ||
c370783e | 17723 | static PyObject *_wrap_DateTime_GetAmPmStrings(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17724 | PyObject *resultobj; |
17725 | wxString *arg1 = (wxString *) 0 ; | |
17726 | wxString *arg2 = (wxString *) 0 ; | |
b411df4a RD |
17727 | bool temp1 = false ; |
17728 | bool temp2 = false ; | |
d55e5bfc RD |
17729 | PyObject * obj0 = 0 ; |
17730 | PyObject * obj1 = 0 ; | |
17731 | char *kwnames[] = { | |
17732 | (char *) "OUTPUT",(char *) "OUTPUT", NULL | |
17733 | }; | |
17734 | ||
17735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetAmPmStrings",kwnames,&obj0,&obj1)) goto fail; | |
17736 | { | |
17737 | arg1 = wxString_in_helper(obj0); | |
17738 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 17739 | temp1 = true; |
d55e5bfc RD |
17740 | } |
17741 | { | |
17742 | arg2 = wxString_in_helper(obj1); | |
17743 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 17744 | temp2 = true; |
d55e5bfc RD |
17745 | } |
17746 | { | |
17747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17748 | wxDateTime::GetAmPmStrings(arg1,arg2); | |
17749 | ||
17750 | wxPyEndAllowThreads(__tstate); | |
17751 | if (PyErr_Occurred()) SWIG_fail; | |
17752 | } | |
17753 | Py_INCREF(Py_None); resultobj = Py_None; | |
17754 | { | |
17755 | if (temp1) | |
17756 | delete arg1; | |
17757 | } | |
17758 | { | |
17759 | if (temp2) | |
17760 | delete arg2; | |
17761 | } | |
17762 | return resultobj; | |
17763 | fail: | |
17764 | { | |
17765 | if (temp1) | |
17766 | delete arg1; | |
17767 | } | |
17768 | { | |
17769 | if (temp2) | |
17770 | delete arg2; | |
17771 | } | |
17772 | return NULL; | |
17773 | } | |
17774 | ||
17775 | ||
c370783e | 17776 | static PyObject *_wrap_DateTime_IsDSTApplicable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17777 | PyObject *resultobj; |
17778 | int arg1 = (int) wxDateTime::Inv_Year ; | |
17779 | int arg2 = (int) wxDateTime::Country_Default ; | |
17780 | bool result; | |
17781 | PyObject * obj0 = 0 ; | |
17782 | PyObject * obj1 = 0 ; | |
17783 | char *kwnames[] = { | |
17784 | (char *) "year",(char *) "country", NULL | |
17785 | }; | |
17786 | ||
17787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsDSTApplicable",kwnames,&obj0,&obj1)) goto fail; | |
17788 | if (obj0) { | |
c370783e | 17789 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17790 | if (PyErr_Occurred()) SWIG_fail; |
17791 | } | |
17792 | if (obj1) { | |
c370783e | 17793 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17794 | if (PyErr_Occurred()) SWIG_fail; |
17795 | } | |
17796 | { | |
17797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17798 | result = (bool)wxDateTime::IsDSTApplicable(arg1,(wxDateTime::Country )arg2); | |
17799 | ||
17800 | wxPyEndAllowThreads(__tstate); | |
17801 | if (PyErr_Occurred()) SWIG_fail; | |
17802 | } | |
17803 | { | |
17804 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17805 | } | |
17806 | return resultobj; | |
17807 | fail: | |
17808 | return NULL; | |
17809 | } | |
17810 | ||
17811 | ||
c370783e | 17812 | static PyObject *_wrap_DateTime_GetBeginDST(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17813 | PyObject *resultobj; |
17814 | int arg1 = (int) wxDateTime::Inv_Year ; | |
17815 | int arg2 = (int) wxDateTime::Country_Default ; | |
17816 | wxDateTime result; | |
17817 | PyObject * obj0 = 0 ; | |
17818 | PyObject * obj1 = 0 ; | |
17819 | char *kwnames[] = { | |
17820 | (char *) "year",(char *) "country", NULL | |
17821 | }; | |
17822 | ||
17823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetBeginDST",kwnames,&obj0,&obj1)) goto fail; | |
17824 | if (obj0) { | |
c370783e | 17825 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17826 | if (PyErr_Occurred()) SWIG_fail; |
17827 | } | |
17828 | if (obj1) { | |
c370783e | 17829 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17830 | if (PyErr_Occurred()) SWIG_fail; |
17831 | } | |
17832 | { | |
17833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17834 | result = wxDateTime::GetBeginDST(arg1,(wxDateTime::Country )arg2); | |
17835 | ||
17836 | wxPyEndAllowThreads(__tstate); | |
17837 | if (PyErr_Occurred()) SWIG_fail; | |
17838 | } | |
17839 | { | |
17840 | wxDateTime * resultptr; | |
17841 | resultptr = new wxDateTime((wxDateTime &) result); | |
17842 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
17843 | } | |
17844 | return resultobj; | |
17845 | fail: | |
17846 | return NULL; | |
17847 | } | |
17848 | ||
17849 | ||
c370783e | 17850 | static PyObject *_wrap_DateTime_GetEndDST(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17851 | PyObject *resultobj; |
17852 | int arg1 = (int) wxDateTime::Inv_Year ; | |
17853 | int arg2 = (int) wxDateTime::Country_Default ; | |
17854 | wxDateTime result; | |
17855 | PyObject * obj0 = 0 ; | |
17856 | PyObject * obj1 = 0 ; | |
17857 | char *kwnames[] = { | |
17858 | (char *) "year",(char *) "country", NULL | |
17859 | }; | |
17860 | ||
17861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetEndDST",kwnames,&obj0,&obj1)) goto fail; | |
17862 | if (obj0) { | |
c370783e | 17863 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17864 | if (PyErr_Occurred()) SWIG_fail; |
17865 | } | |
17866 | if (obj1) { | |
c370783e | 17867 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17868 | if (PyErr_Occurred()) SWIG_fail; |
17869 | } | |
17870 | { | |
17871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17872 | result = wxDateTime::GetEndDST(arg1,(wxDateTime::Country )arg2); | |
17873 | ||
17874 | wxPyEndAllowThreads(__tstate); | |
17875 | if (PyErr_Occurred()) SWIG_fail; | |
17876 | } | |
17877 | { | |
17878 | wxDateTime * resultptr; | |
17879 | resultptr = new wxDateTime((wxDateTime &) result); | |
17880 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
17881 | } | |
17882 | return resultobj; | |
17883 | fail: | |
17884 | return NULL; | |
17885 | } | |
17886 | ||
17887 | ||
c370783e | 17888 | static PyObject *_wrap_DateTime_Now(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17889 | PyObject *resultobj; |
17890 | wxDateTime result; | |
17891 | char *kwnames[] = { | |
17892 | NULL | |
17893 | }; | |
17894 | ||
17895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Now",kwnames)) goto fail; | |
17896 | { | |
17897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17898 | result = wxDateTime::Now(); | |
17899 | ||
17900 | wxPyEndAllowThreads(__tstate); | |
17901 | if (PyErr_Occurred()) SWIG_fail; | |
17902 | } | |
17903 | { | |
17904 | wxDateTime * resultptr; | |
17905 | resultptr = new wxDateTime((wxDateTime &) result); | |
17906 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
17907 | } | |
17908 | return resultobj; | |
17909 | fail: | |
17910 | return NULL; | |
17911 | } | |
17912 | ||
17913 | ||
c370783e | 17914 | static PyObject *_wrap_DateTime_UNow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17915 | PyObject *resultobj; |
17916 | wxDateTime result; | |
17917 | char *kwnames[] = { | |
17918 | NULL | |
17919 | }; | |
17920 | ||
17921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_UNow",kwnames)) goto fail; | |
17922 | { | |
17923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17924 | result = wxDateTime::UNow(); | |
17925 | ||
17926 | wxPyEndAllowThreads(__tstate); | |
17927 | if (PyErr_Occurred()) SWIG_fail; | |
17928 | } | |
17929 | { | |
17930 | wxDateTime * resultptr; | |
17931 | resultptr = new wxDateTime((wxDateTime &) result); | |
17932 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
17933 | } | |
17934 | return resultobj; | |
17935 | fail: | |
17936 | return NULL; | |
17937 | } | |
17938 | ||
17939 | ||
c370783e | 17940 | static PyObject *_wrap_DateTime_Today(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17941 | PyObject *resultobj; |
17942 | wxDateTime result; | |
17943 | char *kwnames[] = { | |
17944 | NULL | |
17945 | }; | |
17946 | ||
17947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Today",kwnames)) goto fail; | |
17948 | { | |
17949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17950 | result = wxDateTime::Today(); | |
17951 | ||
17952 | wxPyEndAllowThreads(__tstate); | |
17953 | if (PyErr_Occurred()) SWIG_fail; | |
17954 | } | |
17955 | { | |
17956 | wxDateTime * resultptr; | |
17957 | resultptr = new wxDateTime((wxDateTime &) result); | |
17958 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
17959 | } | |
17960 | return resultobj; | |
17961 | fail: | |
17962 | return NULL; | |
17963 | } | |
17964 | ||
17965 | ||
c370783e | 17966 | static PyObject *_wrap_new_DateTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17967 | PyObject *resultobj; |
17968 | wxDateTime *result; | |
17969 | char *kwnames[] = { | |
17970 | NULL | |
17971 | }; | |
17972 | ||
17973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DateTime",kwnames)) goto fail; | |
17974 | { | |
17975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17976 | result = (wxDateTime *)new wxDateTime(); | |
17977 | ||
17978 | wxPyEndAllowThreads(__tstate); | |
17979 | if (PyErr_Occurred()) SWIG_fail; | |
17980 | } | |
17981 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
17982 | return resultobj; | |
17983 | fail: | |
17984 | return NULL; | |
17985 | } | |
17986 | ||
17987 | ||
c370783e | 17988 | static PyObject *_wrap_new_DateTimeFromTimeT(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17989 | PyObject *resultobj; |
17990 | time_t arg1 ; | |
17991 | wxDateTime *result; | |
17992 | PyObject * obj0 = 0 ; | |
17993 | char *kwnames[] = { | |
17994 | (char *) "timet", NULL | |
17995 | }; | |
17996 | ||
17997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromTimeT",kwnames,&obj0)) goto fail; | |
c370783e | 17998 | arg1 = (time_t)SWIG_As_unsigned_SS_int(obj0); |
d55e5bfc RD |
17999 | if (PyErr_Occurred()) SWIG_fail; |
18000 | { | |
18001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18002 | result = (wxDateTime *)new wxDateTime(arg1); | |
18003 | ||
18004 | wxPyEndAllowThreads(__tstate); | |
18005 | if (PyErr_Occurred()) SWIG_fail; | |
18006 | } | |
18007 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
18008 | return resultobj; | |
18009 | fail: | |
18010 | return NULL; | |
18011 | } | |
18012 | ||
18013 | ||
c370783e | 18014 | static PyObject *_wrap_new_DateTimeFromJDN(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18015 | PyObject *resultobj; |
18016 | double arg1 ; | |
18017 | wxDateTime *result; | |
18018 | PyObject * obj0 = 0 ; | |
18019 | char *kwnames[] = { | |
18020 | (char *) "jdn", NULL | |
18021 | }; | |
18022 | ||
18023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromJDN",kwnames,&obj0)) goto fail; | |
c370783e | 18024 | arg1 = (double)SWIG_As_double(obj0); |
d55e5bfc RD |
18025 | if (PyErr_Occurred()) SWIG_fail; |
18026 | { | |
18027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18028 | result = (wxDateTime *)new wxDateTime(arg1); | |
18029 | ||
18030 | wxPyEndAllowThreads(__tstate); | |
18031 | if (PyErr_Occurred()) SWIG_fail; | |
18032 | } | |
18033 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
18034 | return resultobj; | |
18035 | fail: | |
18036 | return NULL; | |
18037 | } | |
18038 | ||
18039 | ||
c370783e | 18040 | static PyObject *_wrap_new_DateTimeFromHMS(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18041 | PyObject *resultobj; |
18042 | int arg1 ; | |
18043 | int arg2 = (int) 0 ; | |
18044 | int arg3 = (int) 0 ; | |
18045 | int arg4 = (int) 0 ; | |
18046 | wxDateTime *result; | |
18047 | PyObject * obj0 = 0 ; | |
18048 | PyObject * obj1 = 0 ; | |
18049 | PyObject * obj2 = 0 ; | |
18050 | PyObject * obj3 = 0 ; | |
18051 | char *kwnames[] = { | |
18052 | (char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
18053 | }; | |
18054 | ||
18055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DateTimeFromHMS",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
c370783e | 18056 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
18057 | if (PyErr_Occurred()) SWIG_fail; |
18058 | if (obj1) { | |
c370783e | 18059 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18060 | if (PyErr_Occurred()) SWIG_fail; |
18061 | } | |
18062 | if (obj2) { | |
c370783e | 18063 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
18064 | if (PyErr_Occurred()) SWIG_fail; |
18065 | } | |
18066 | if (obj3) { | |
c370783e | 18067 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
18068 | if (PyErr_Occurred()) SWIG_fail; |
18069 | } | |
18070 | { | |
18071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18072 | result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4); | |
18073 | ||
18074 | wxPyEndAllowThreads(__tstate); | |
18075 | if (PyErr_Occurred()) SWIG_fail; | |
18076 | } | |
18077 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
18078 | return resultobj; | |
18079 | fail: | |
18080 | return NULL; | |
18081 | } | |
18082 | ||
18083 | ||
c370783e | 18084 | static PyObject *_wrap_new_DateTimeFromDMY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18085 | PyObject *resultobj; |
18086 | int arg1 ; | |
18087 | int arg2 = (int) wxDateTime::Inv_Month ; | |
18088 | int arg3 = (int) wxDateTime::Inv_Year ; | |
18089 | int arg4 = (int) 0 ; | |
18090 | int arg5 = (int) 0 ; | |
18091 | int arg6 = (int) 0 ; | |
18092 | int arg7 = (int) 0 ; | |
18093 | wxDateTime *result; | |
18094 | PyObject * obj0 = 0 ; | |
18095 | PyObject * obj1 = 0 ; | |
18096 | PyObject * obj2 = 0 ; | |
18097 | PyObject * obj3 = 0 ; | |
18098 | PyObject * obj4 = 0 ; | |
18099 | PyObject * obj5 = 0 ; | |
18100 | PyObject * obj6 = 0 ; | |
18101 | char *kwnames[] = { | |
18102 | (char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
18103 | }; | |
18104 | ||
18105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DateTimeFromDMY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
c370783e | 18106 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
18107 | if (PyErr_Occurred()) SWIG_fail; |
18108 | if (obj1) { | |
c370783e | 18109 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18110 | if (PyErr_Occurred()) SWIG_fail; |
18111 | } | |
18112 | if (obj2) { | |
c370783e | 18113 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
18114 | if (PyErr_Occurred()) SWIG_fail; |
18115 | } | |
18116 | if (obj3) { | |
c370783e | 18117 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
18118 | if (PyErr_Occurred()) SWIG_fail; |
18119 | } | |
18120 | if (obj4) { | |
c370783e | 18121 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
18122 | if (PyErr_Occurred()) SWIG_fail; |
18123 | } | |
18124 | if (obj5) { | |
c370783e | 18125 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
18126 | if (PyErr_Occurred()) SWIG_fail; |
18127 | } | |
18128 | if (obj6) { | |
c370783e | 18129 | arg7 = (int)SWIG_As_int(obj6); |
d55e5bfc RD |
18130 | if (PyErr_Occurred()) SWIG_fail; |
18131 | } | |
18132 | { | |
18133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18134 | result = (wxDateTime *)new wxDateTime(arg1,(wxDateTime::Month )arg2,arg3,arg4,arg5,arg6,arg7); | |
18135 | ||
18136 | wxPyEndAllowThreads(__tstate); | |
18137 | if (PyErr_Occurred()) SWIG_fail; | |
18138 | } | |
18139 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
18140 | return resultobj; | |
18141 | fail: | |
18142 | return NULL; | |
18143 | } | |
18144 | ||
18145 | ||
c370783e | 18146 | static PyObject *_wrap_delete_DateTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18147 | PyObject *resultobj; |
18148 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18149 | PyObject * obj0 = 0 ; | |
18150 | char *kwnames[] = { | |
18151 | (char *) "self", NULL | |
18152 | }; | |
18153 | ||
18154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateTime",kwnames,&obj0)) goto fail; | |
18155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18157 | { | |
18158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18159 | delete arg1; | |
18160 | ||
18161 | wxPyEndAllowThreads(__tstate); | |
18162 | if (PyErr_Occurred()) SWIG_fail; | |
18163 | } | |
18164 | Py_INCREF(Py_None); resultobj = Py_None; | |
18165 | return resultobj; | |
18166 | fail: | |
18167 | return NULL; | |
18168 | } | |
18169 | ||
18170 | ||
c370783e | 18171 | static PyObject *_wrap_DateTime_SetToCurrent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18172 | PyObject *resultobj; |
18173 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18174 | wxDateTime *result; | |
18175 | PyObject * obj0 = 0 ; | |
18176 | char *kwnames[] = { | |
18177 | (char *) "self", NULL | |
18178 | }; | |
18179 | ||
18180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetToCurrent",kwnames,&obj0)) goto fail; | |
18181 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18183 | { | |
18184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18185 | { | |
18186 | wxDateTime &_result_ref = (arg1)->SetToCurrent(); | |
18187 | result = (wxDateTime *) &_result_ref; | |
18188 | } | |
18189 | ||
18190 | wxPyEndAllowThreads(__tstate); | |
18191 | if (PyErr_Occurred()) SWIG_fail; | |
18192 | } | |
18193 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18194 | return resultobj; | |
18195 | fail: | |
18196 | return NULL; | |
18197 | } | |
18198 | ||
18199 | ||
c370783e | 18200 | static PyObject *_wrap_DateTime_SetTimeT(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18201 | PyObject *resultobj; |
18202 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18203 | time_t arg2 ; | |
18204 | wxDateTime *result; | |
18205 | PyObject * obj0 = 0 ; | |
18206 | PyObject * obj1 = 0 ; | |
18207 | char *kwnames[] = { | |
18208 | (char *) "self",(char *) "timet", NULL | |
18209 | }; | |
18210 | ||
18211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetTimeT",kwnames,&obj0,&obj1)) goto fail; | |
18212 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18213 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18214 | arg2 = (time_t)SWIG_As_unsigned_SS_int(obj1); |
d55e5bfc RD |
18215 | if (PyErr_Occurred()) SWIG_fail; |
18216 | { | |
18217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18218 | { | |
18219 | wxDateTime &_result_ref = (arg1)->Set(arg2); | |
18220 | result = (wxDateTime *) &_result_ref; | |
18221 | } | |
18222 | ||
18223 | wxPyEndAllowThreads(__tstate); | |
18224 | if (PyErr_Occurred()) SWIG_fail; | |
18225 | } | |
18226 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18227 | return resultobj; | |
18228 | fail: | |
18229 | return NULL; | |
18230 | } | |
18231 | ||
18232 | ||
c370783e | 18233 | static PyObject *_wrap_DateTime_SetJDN(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18234 | PyObject *resultobj; |
18235 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18236 | double arg2 ; | |
18237 | wxDateTime *result; | |
18238 | PyObject * obj0 = 0 ; | |
18239 | PyObject * obj1 = 0 ; | |
18240 | char *kwnames[] = { | |
18241 | (char *) "self",(char *) "jdn", NULL | |
18242 | }; | |
18243 | ||
18244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetJDN",kwnames,&obj0,&obj1)) goto fail; | |
18245 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18246 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18247 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc RD |
18248 | if (PyErr_Occurred()) SWIG_fail; |
18249 | { | |
18250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18251 | { | |
18252 | wxDateTime &_result_ref = (arg1)->Set(arg2); | |
18253 | result = (wxDateTime *) &_result_ref; | |
18254 | } | |
18255 | ||
18256 | wxPyEndAllowThreads(__tstate); | |
18257 | if (PyErr_Occurred()) SWIG_fail; | |
18258 | } | |
18259 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18260 | return resultobj; | |
18261 | fail: | |
18262 | return NULL; | |
18263 | } | |
18264 | ||
18265 | ||
c370783e | 18266 | static PyObject *_wrap_DateTime_SetHMS(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18267 | PyObject *resultobj; |
18268 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18269 | int arg2 ; | |
18270 | int arg3 = (int) 0 ; | |
18271 | int arg4 = (int) 0 ; | |
18272 | int arg5 = (int) 0 ; | |
18273 | wxDateTime *result; | |
18274 | PyObject * obj0 = 0 ; | |
18275 | PyObject * obj1 = 0 ; | |
18276 | PyObject * obj2 = 0 ; | |
18277 | PyObject * obj3 = 0 ; | |
18278 | PyObject * obj4 = 0 ; | |
18279 | char *kwnames[] = { | |
18280 | (char *) "self",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
18281 | }; | |
18282 | ||
18283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetHMS",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
18284 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18285 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18286 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18287 | if (PyErr_Occurred()) SWIG_fail; |
18288 | if (obj2) { | |
c370783e | 18289 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
18290 | if (PyErr_Occurred()) SWIG_fail; |
18291 | } | |
18292 | if (obj3) { | |
c370783e | 18293 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
18294 | if (PyErr_Occurred()) SWIG_fail; |
18295 | } | |
18296 | if (obj4) { | |
c370783e | 18297 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
18298 | if (PyErr_Occurred()) SWIG_fail; |
18299 | } | |
18300 | { | |
18301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18302 | { | |
18303 | wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5); | |
18304 | result = (wxDateTime *) &_result_ref; | |
18305 | } | |
18306 | ||
18307 | wxPyEndAllowThreads(__tstate); | |
18308 | if (PyErr_Occurred()) SWIG_fail; | |
18309 | } | |
18310 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18311 | return resultobj; | |
18312 | fail: | |
18313 | return NULL; | |
18314 | } | |
18315 | ||
18316 | ||
c370783e | 18317 | static PyObject *_wrap_DateTime_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18318 | PyObject *resultobj; |
18319 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18320 | int arg2 ; | |
18321 | int arg3 = (int) wxDateTime::Inv_Month ; | |
18322 | int arg4 = (int) wxDateTime::Inv_Year ; | |
18323 | int arg5 = (int) 0 ; | |
18324 | int arg6 = (int) 0 ; | |
18325 | int arg7 = (int) 0 ; | |
18326 | int arg8 = (int) 0 ; | |
18327 | wxDateTime *result; | |
18328 | PyObject * obj0 = 0 ; | |
18329 | PyObject * obj1 = 0 ; | |
18330 | PyObject * obj2 = 0 ; | |
18331 | PyObject * obj3 = 0 ; | |
18332 | PyObject * obj4 = 0 ; | |
18333 | PyObject * obj5 = 0 ; | |
18334 | PyObject * obj6 = 0 ; | |
18335 | PyObject * obj7 = 0 ; | |
18336 | char *kwnames[] = { | |
18337 | (char *) "self",(char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
18338 | }; | |
18339 | ||
18340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:DateTime_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
18341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18343 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18344 | if (PyErr_Occurred()) SWIG_fail; |
18345 | if (obj2) { | |
c370783e | 18346 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
18347 | if (PyErr_Occurred()) SWIG_fail; |
18348 | } | |
18349 | if (obj3) { | |
c370783e | 18350 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
18351 | if (PyErr_Occurred()) SWIG_fail; |
18352 | } | |
18353 | if (obj4) { | |
c370783e | 18354 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
18355 | if (PyErr_Occurred()) SWIG_fail; |
18356 | } | |
18357 | if (obj5) { | |
c370783e | 18358 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
18359 | if (PyErr_Occurred()) SWIG_fail; |
18360 | } | |
18361 | if (obj6) { | |
c370783e | 18362 | arg7 = (int)SWIG_As_int(obj6); |
d55e5bfc RD |
18363 | if (PyErr_Occurred()) SWIG_fail; |
18364 | } | |
18365 | if (obj7) { | |
c370783e | 18366 | arg8 = (int)SWIG_As_int(obj7); |
d55e5bfc RD |
18367 | if (PyErr_Occurred()) SWIG_fail; |
18368 | } | |
18369 | { | |
18370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18371 | { | |
18372 | wxDateTime &_result_ref = (arg1)->Set(arg2,(wxDateTime::Month )arg3,arg4,arg5,arg6,arg7,arg8); | |
18373 | result = (wxDateTime *) &_result_ref; | |
18374 | } | |
18375 | ||
18376 | wxPyEndAllowThreads(__tstate); | |
18377 | if (PyErr_Occurred()) SWIG_fail; | |
18378 | } | |
18379 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18380 | return resultobj; | |
18381 | fail: | |
18382 | return NULL; | |
18383 | } | |
18384 | ||
18385 | ||
c370783e | 18386 | static PyObject *_wrap_DateTime_ResetTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18387 | PyObject *resultobj; |
18388 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18389 | wxDateTime *result; | |
18390 | PyObject * obj0 = 0 ; | |
18391 | char *kwnames[] = { | |
18392 | (char *) "self", NULL | |
18393 | }; | |
18394 | ||
18395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ResetTime",kwnames,&obj0)) goto fail; | |
18396 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18397 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18398 | { | |
18399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18400 | { | |
18401 | wxDateTime &_result_ref = (arg1)->ResetTime(); | |
18402 | result = (wxDateTime *) &_result_ref; | |
18403 | } | |
18404 | ||
18405 | wxPyEndAllowThreads(__tstate); | |
18406 | if (PyErr_Occurred()) SWIG_fail; | |
18407 | } | |
18408 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18409 | return resultobj; | |
18410 | fail: | |
18411 | return NULL; | |
18412 | } | |
18413 | ||
18414 | ||
c370783e | 18415 | static PyObject *_wrap_DateTime_SetYear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18416 | PyObject *resultobj; |
18417 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18418 | int arg2 ; | |
18419 | wxDateTime *result; | |
18420 | PyObject * obj0 = 0 ; | |
18421 | PyObject * obj1 = 0 ; | |
18422 | char *kwnames[] = { | |
18423 | (char *) "self",(char *) "year", NULL | |
18424 | }; | |
18425 | ||
18426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetYear",kwnames,&obj0,&obj1)) goto fail; | |
18427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18429 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18430 | if (PyErr_Occurred()) SWIG_fail; |
18431 | { | |
18432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18433 | { | |
18434 | wxDateTime &_result_ref = (arg1)->SetYear(arg2); | |
18435 | result = (wxDateTime *) &_result_ref; | |
18436 | } | |
18437 | ||
18438 | wxPyEndAllowThreads(__tstate); | |
18439 | if (PyErr_Occurred()) SWIG_fail; | |
18440 | } | |
18441 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18442 | return resultobj; | |
18443 | fail: | |
18444 | return NULL; | |
18445 | } | |
18446 | ||
18447 | ||
c370783e | 18448 | static PyObject *_wrap_DateTime_SetMonth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18449 | PyObject *resultobj; |
18450 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18451 | int arg2 ; | |
18452 | wxDateTime *result; | |
18453 | PyObject * obj0 = 0 ; | |
18454 | PyObject * obj1 = 0 ; | |
18455 | char *kwnames[] = { | |
18456 | (char *) "self",(char *) "month", NULL | |
18457 | }; | |
18458 | ||
18459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMonth",kwnames,&obj0,&obj1)) goto fail; | |
18460 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18461 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18462 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18463 | if (PyErr_Occurred()) SWIG_fail; |
18464 | { | |
18465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18466 | { | |
18467 | wxDateTime &_result_ref = (arg1)->SetMonth((wxDateTime::Month )arg2); | |
18468 | result = (wxDateTime *) &_result_ref; | |
18469 | } | |
18470 | ||
18471 | wxPyEndAllowThreads(__tstate); | |
18472 | if (PyErr_Occurred()) SWIG_fail; | |
18473 | } | |
18474 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18475 | return resultobj; | |
18476 | fail: | |
18477 | return NULL; | |
18478 | } | |
18479 | ||
18480 | ||
c370783e | 18481 | static PyObject *_wrap_DateTime_SetDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18482 | PyObject *resultobj; |
18483 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18484 | int arg2 ; | |
18485 | wxDateTime *result; | |
18486 | PyObject * obj0 = 0 ; | |
18487 | PyObject * obj1 = 0 ; | |
18488 | char *kwnames[] = { | |
18489 | (char *) "self",(char *) "day", NULL | |
18490 | }; | |
18491 | ||
18492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetDay",kwnames,&obj0,&obj1)) goto fail; | |
18493 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18494 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18495 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18496 | if (PyErr_Occurred()) SWIG_fail; |
18497 | { | |
18498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18499 | { | |
18500 | wxDateTime &_result_ref = (arg1)->SetDay(arg2); | |
18501 | result = (wxDateTime *) &_result_ref; | |
18502 | } | |
18503 | ||
18504 | wxPyEndAllowThreads(__tstate); | |
18505 | if (PyErr_Occurred()) SWIG_fail; | |
18506 | } | |
18507 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18508 | return resultobj; | |
18509 | fail: | |
18510 | return NULL; | |
18511 | } | |
18512 | ||
18513 | ||
c370783e | 18514 | static PyObject *_wrap_DateTime_SetHour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18515 | PyObject *resultobj; |
18516 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18517 | int arg2 ; | |
18518 | wxDateTime *result; | |
18519 | PyObject * obj0 = 0 ; | |
18520 | PyObject * obj1 = 0 ; | |
18521 | char *kwnames[] = { | |
18522 | (char *) "self",(char *) "hour", NULL | |
18523 | }; | |
18524 | ||
18525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetHour",kwnames,&obj0,&obj1)) goto fail; | |
18526 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18527 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18528 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18529 | if (PyErr_Occurred()) SWIG_fail; |
18530 | { | |
18531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18532 | { | |
18533 | wxDateTime &_result_ref = (arg1)->SetHour(arg2); | |
18534 | result = (wxDateTime *) &_result_ref; | |
18535 | } | |
18536 | ||
18537 | wxPyEndAllowThreads(__tstate); | |
18538 | if (PyErr_Occurred()) SWIG_fail; | |
18539 | } | |
18540 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18541 | return resultobj; | |
18542 | fail: | |
18543 | return NULL; | |
18544 | } | |
18545 | ||
18546 | ||
c370783e | 18547 | static PyObject *_wrap_DateTime_SetMinute(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18548 | PyObject *resultobj; |
18549 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18550 | int arg2 ; | |
18551 | wxDateTime *result; | |
18552 | PyObject * obj0 = 0 ; | |
18553 | PyObject * obj1 = 0 ; | |
18554 | char *kwnames[] = { | |
18555 | (char *) "self",(char *) "minute", NULL | |
18556 | }; | |
18557 | ||
18558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMinute",kwnames,&obj0,&obj1)) goto fail; | |
18559 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18561 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18562 | if (PyErr_Occurred()) SWIG_fail; |
18563 | { | |
18564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18565 | { | |
18566 | wxDateTime &_result_ref = (arg1)->SetMinute(arg2); | |
18567 | result = (wxDateTime *) &_result_ref; | |
18568 | } | |
18569 | ||
18570 | wxPyEndAllowThreads(__tstate); | |
18571 | if (PyErr_Occurred()) SWIG_fail; | |
18572 | } | |
18573 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18574 | return resultobj; | |
18575 | fail: | |
18576 | return NULL; | |
18577 | } | |
18578 | ||
18579 | ||
c370783e | 18580 | static PyObject *_wrap_DateTime_SetSecond(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18581 | PyObject *resultobj; |
18582 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18583 | int arg2 ; | |
18584 | wxDateTime *result; | |
18585 | PyObject * obj0 = 0 ; | |
18586 | PyObject * obj1 = 0 ; | |
18587 | char *kwnames[] = { | |
18588 | (char *) "self",(char *) "second", NULL | |
18589 | }; | |
18590 | ||
18591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetSecond",kwnames,&obj0,&obj1)) goto fail; | |
18592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18594 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18595 | if (PyErr_Occurred()) SWIG_fail; |
18596 | { | |
18597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18598 | { | |
18599 | wxDateTime &_result_ref = (arg1)->SetSecond(arg2); | |
18600 | result = (wxDateTime *) &_result_ref; | |
18601 | } | |
18602 | ||
18603 | wxPyEndAllowThreads(__tstate); | |
18604 | if (PyErr_Occurred()) SWIG_fail; | |
18605 | } | |
18606 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18607 | return resultobj; | |
18608 | fail: | |
18609 | return NULL; | |
18610 | } | |
18611 | ||
18612 | ||
c370783e | 18613 | static PyObject *_wrap_DateTime_SetMillisecond(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18614 | PyObject *resultobj; |
18615 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18616 | int arg2 ; | |
18617 | wxDateTime *result; | |
18618 | PyObject * obj0 = 0 ; | |
18619 | PyObject * obj1 = 0 ; | |
18620 | char *kwnames[] = { | |
18621 | (char *) "self",(char *) "millisecond", NULL | |
18622 | }; | |
18623 | ||
18624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMillisecond",kwnames,&obj0,&obj1)) goto fail; | |
18625 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18627 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18628 | if (PyErr_Occurred()) SWIG_fail; |
18629 | { | |
18630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18631 | { | |
18632 | wxDateTime &_result_ref = (arg1)->SetMillisecond(arg2); | |
18633 | result = (wxDateTime *) &_result_ref; | |
18634 | } | |
18635 | ||
18636 | wxPyEndAllowThreads(__tstate); | |
18637 | if (PyErr_Occurred()) SWIG_fail; | |
18638 | } | |
18639 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18640 | return resultobj; | |
18641 | fail: | |
18642 | return NULL; | |
18643 | } | |
18644 | ||
18645 | ||
c370783e | 18646 | static PyObject *_wrap_DateTime_SetToWeekDayInSameWeek(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18647 | PyObject *resultobj; |
18648 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18649 | int arg2 ; | |
18650 | int arg3 = (int) wxDateTime::Monday_First ; | |
18651 | wxDateTime *result; | |
18652 | PyObject * obj0 = 0 ; | |
18653 | PyObject * obj1 = 0 ; | |
18654 | PyObject * obj2 = 0 ; | |
18655 | char *kwnames[] = { | |
18656 | (char *) "self",(char *) "weekday",(char *) "flags", NULL | |
18657 | }; | |
18658 | ||
18659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18660 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18661 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18662 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18663 | if (PyErr_Occurred()) SWIG_fail; |
18664 | if (obj2) { | |
c370783e | 18665 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
18666 | if (PyErr_Occurred()) SWIG_fail; |
18667 | } | |
18668 | { | |
18669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18670 | { | |
18671 | wxDateTime &_result_ref = (arg1)->SetToWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3); | |
18672 | result = (wxDateTime *) &_result_ref; | |
18673 | } | |
18674 | ||
18675 | wxPyEndAllowThreads(__tstate); | |
18676 | if (PyErr_Occurred()) SWIG_fail; | |
18677 | } | |
18678 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18679 | return resultobj; | |
18680 | fail: | |
18681 | return NULL; | |
18682 | } | |
18683 | ||
18684 | ||
c370783e | 18685 | static PyObject *_wrap_DateTime_GetWeekDayInSameWeek(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18686 | PyObject *resultobj; |
18687 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18688 | int arg2 ; | |
18689 | int arg3 = (int) wxDateTime::Monday_First ; | |
18690 | wxDateTime result; | |
18691 | PyObject * obj0 = 0 ; | |
18692 | PyObject * obj1 = 0 ; | |
18693 | PyObject * obj2 = 0 ; | |
18694 | char *kwnames[] = { | |
18695 | (char *) "self",(char *) "weekday",(char *) "flags", NULL | |
18696 | }; | |
18697 | ||
18698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_GetWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18699 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18700 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18701 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18702 | if (PyErr_Occurred()) SWIG_fail; |
18703 | if (obj2) { | |
c370783e | 18704 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
18705 | if (PyErr_Occurred()) SWIG_fail; |
18706 | } | |
18707 | { | |
18708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18709 | result = (arg1)->GetWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3); | |
18710 | ||
18711 | wxPyEndAllowThreads(__tstate); | |
18712 | if (PyErr_Occurred()) SWIG_fail; | |
18713 | } | |
18714 | { | |
18715 | wxDateTime * resultptr; | |
18716 | resultptr = new wxDateTime((wxDateTime &) result); | |
18717 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18718 | } | |
18719 | return resultobj; | |
18720 | fail: | |
18721 | return NULL; | |
18722 | } | |
18723 | ||
18724 | ||
c370783e | 18725 | static PyObject *_wrap_DateTime_SetToNextWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18726 | PyObject *resultobj; |
18727 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18728 | int arg2 ; | |
18729 | wxDateTime *result; | |
18730 | PyObject * obj0 = 0 ; | |
18731 | PyObject * obj1 = 0 ; | |
18732 | char *kwnames[] = { | |
18733 | (char *) "self",(char *) "weekday", NULL | |
18734 | }; | |
18735 | ||
18736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToNextWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
18737 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18738 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18739 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18740 | if (PyErr_Occurred()) SWIG_fail; |
18741 | { | |
18742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18743 | { | |
18744 | wxDateTime &_result_ref = (arg1)->SetToNextWeekDay((wxDateTime::WeekDay )arg2); | |
18745 | result = (wxDateTime *) &_result_ref; | |
18746 | } | |
18747 | ||
18748 | wxPyEndAllowThreads(__tstate); | |
18749 | if (PyErr_Occurred()) SWIG_fail; | |
18750 | } | |
18751 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18752 | return resultobj; | |
18753 | fail: | |
18754 | return NULL; | |
18755 | } | |
18756 | ||
18757 | ||
c370783e | 18758 | static PyObject *_wrap_DateTime_GetNextWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18759 | PyObject *resultobj; |
18760 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18761 | int arg2 ; | |
18762 | wxDateTime result; | |
18763 | PyObject * obj0 = 0 ; | |
18764 | PyObject * obj1 = 0 ; | |
18765 | char *kwnames[] = { | |
18766 | (char *) "self",(char *) "weekday", NULL | |
18767 | }; | |
18768 | ||
18769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetNextWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
18770 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18771 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18772 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18773 | if (PyErr_Occurred()) SWIG_fail; |
18774 | { | |
18775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18776 | result = (arg1)->GetNextWeekDay((wxDateTime::WeekDay )arg2); | |
18777 | ||
18778 | wxPyEndAllowThreads(__tstate); | |
18779 | if (PyErr_Occurred()) SWIG_fail; | |
18780 | } | |
18781 | { | |
18782 | wxDateTime * resultptr; | |
18783 | resultptr = new wxDateTime((wxDateTime &) result); | |
18784 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18785 | } | |
18786 | return resultobj; | |
18787 | fail: | |
18788 | return NULL; | |
18789 | } | |
18790 | ||
18791 | ||
c370783e | 18792 | static PyObject *_wrap_DateTime_SetToPrevWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18793 | PyObject *resultobj; |
18794 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18795 | int arg2 ; | |
18796 | wxDateTime *result; | |
18797 | PyObject * obj0 = 0 ; | |
18798 | PyObject * obj1 = 0 ; | |
18799 | char *kwnames[] = { | |
18800 | (char *) "self",(char *) "weekday", NULL | |
18801 | }; | |
18802 | ||
18803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToPrevWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
18804 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18805 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18806 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18807 | if (PyErr_Occurred()) SWIG_fail; |
18808 | { | |
18809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18810 | { | |
18811 | wxDateTime &_result_ref = (arg1)->SetToPrevWeekDay((wxDateTime::WeekDay )arg2); | |
18812 | result = (wxDateTime *) &_result_ref; | |
18813 | } | |
18814 | ||
18815 | wxPyEndAllowThreads(__tstate); | |
18816 | if (PyErr_Occurred()) SWIG_fail; | |
18817 | } | |
18818 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18819 | return resultobj; | |
18820 | fail: | |
18821 | return NULL; | |
18822 | } | |
18823 | ||
18824 | ||
c370783e | 18825 | static PyObject *_wrap_DateTime_GetPrevWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18826 | PyObject *resultobj; |
18827 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18828 | int arg2 ; | |
18829 | wxDateTime result; | |
18830 | PyObject * obj0 = 0 ; | |
18831 | PyObject * obj1 = 0 ; | |
18832 | char *kwnames[] = { | |
18833 | (char *) "self",(char *) "weekday", NULL | |
18834 | }; | |
18835 | ||
18836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetPrevWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
18837 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18838 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18839 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18840 | if (PyErr_Occurred()) SWIG_fail; |
18841 | { | |
18842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18843 | result = (arg1)->GetPrevWeekDay((wxDateTime::WeekDay )arg2); | |
18844 | ||
18845 | wxPyEndAllowThreads(__tstate); | |
18846 | if (PyErr_Occurred()) SWIG_fail; | |
18847 | } | |
18848 | { | |
18849 | wxDateTime * resultptr; | |
18850 | resultptr = new wxDateTime((wxDateTime &) result); | |
18851 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18852 | } | |
18853 | return resultobj; | |
18854 | fail: | |
18855 | return NULL; | |
18856 | } | |
18857 | ||
18858 | ||
c370783e | 18859 | static PyObject *_wrap_DateTime_SetToWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18860 | PyObject *resultobj; |
18861 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18862 | int arg2 ; | |
18863 | int arg3 = (int) 1 ; | |
18864 | int arg4 = (int) wxDateTime::Inv_Month ; | |
18865 | int arg5 = (int) wxDateTime::Inv_Year ; | |
18866 | bool result; | |
18867 | PyObject * obj0 = 0 ; | |
18868 | PyObject * obj1 = 0 ; | |
18869 | PyObject * obj2 = 0 ; | |
18870 | PyObject * obj3 = 0 ; | |
18871 | PyObject * obj4 = 0 ; | |
18872 | char *kwnames[] = { | |
18873 | (char *) "self",(char *) "weekday",(char *) "n",(char *) "month",(char *) "year", NULL | |
18874 | }; | |
18875 | ||
18876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetToWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
18877 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18878 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18879 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18880 | if (PyErr_Occurred()) SWIG_fail; |
18881 | if (obj2) { | |
c370783e | 18882 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
18883 | if (PyErr_Occurred()) SWIG_fail; |
18884 | } | |
18885 | if (obj3) { | |
c370783e | 18886 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
18887 | if (PyErr_Occurred()) SWIG_fail; |
18888 | } | |
18889 | if (obj4) { | |
c370783e | 18890 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
18891 | if (PyErr_Occurred()) SWIG_fail; |
18892 | } | |
18893 | { | |
18894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18895 | result = (bool)(arg1)->SetToWeekDay((wxDateTime::WeekDay )arg2,arg3,(wxDateTime::Month )arg4,arg5); | |
18896 | ||
18897 | wxPyEndAllowThreads(__tstate); | |
18898 | if (PyErr_Occurred()) SWIG_fail; | |
18899 | } | |
18900 | { | |
18901 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18902 | } | |
18903 | return resultobj; | |
18904 | fail: | |
18905 | return NULL; | |
18906 | } | |
18907 | ||
18908 | ||
c370783e | 18909 | static PyObject *_wrap_DateTime_SetToLastWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18910 | PyObject *resultobj; |
18911 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18912 | int arg2 ; | |
18913 | int arg3 = (int) wxDateTime::Inv_Month ; | |
18914 | int arg4 = (int) wxDateTime::Inv_Year ; | |
18915 | bool result; | |
18916 | PyObject * obj0 = 0 ; | |
18917 | PyObject * obj1 = 0 ; | |
18918 | PyObject * obj2 = 0 ; | |
18919 | PyObject * obj3 = 0 ; | |
18920 | char *kwnames[] = { | |
18921 | (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL | |
18922 | }; | |
18923 | ||
18924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
18925 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18927 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18928 | if (PyErr_Occurred()) SWIG_fail; |
18929 | if (obj2) { | |
c370783e | 18930 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
18931 | if (PyErr_Occurred()) SWIG_fail; |
18932 | } | |
18933 | if (obj3) { | |
c370783e | 18934 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
18935 | if (PyErr_Occurred()) SWIG_fail; |
18936 | } | |
18937 | { | |
18938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18939 | result = (bool)(arg1)->SetToLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4); | |
18940 | ||
18941 | wxPyEndAllowThreads(__tstate); | |
18942 | if (PyErr_Occurred()) SWIG_fail; | |
18943 | } | |
18944 | { | |
18945 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18946 | } | |
18947 | return resultobj; | |
18948 | fail: | |
18949 | return NULL; | |
18950 | } | |
18951 | ||
18952 | ||
c370783e | 18953 | static PyObject *_wrap_DateTime_GetLastWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18954 | PyObject *resultobj; |
18955 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18956 | int arg2 ; | |
18957 | int arg3 = (int) wxDateTime::Inv_Month ; | |
18958 | int arg4 = (int) wxDateTime::Inv_Year ; | |
18959 | wxDateTime result; | |
18960 | PyObject * obj0 = 0 ; | |
18961 | PyObject * obj1 = 0 ; | |
18962 | PyObject * obj2 = 0 ; | |
18963 | PyObject * obj3 = 0 ; | |
18964 | char *kwnames[] = { | |
18965 | (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL | |
18966 | }; | |
18967 | ||
18968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
18969 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18970 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18971 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18972 | if (PyErr_Occurred()) SWIG_fail; |
18973 | if (obj2) { | |
c370783e | 18974 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
18975 | if (PyErr_Occurred()) SWIG_fail; |
18976 | } | |
18977 | if (obj3) { | |
c370783e | 18978 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
18979 | if (PyErr_Occurred()) SWIG_fail; |
18980 | } | |
18981 | { | |
18982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18983 | result = (arg1)->GetLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4); | |
18984 | ||
18985 | wxPyEndAllowThreads(__tstate); | |
18986 | if (PyErr_Occurred()) SWIG_fail; | |
18987 | } | |
18988 | { | |
18989 | wxDateTime * resultptr; | |
18990 | resultptr = new wxDateTime((wxDateTime &) result); | |
18991 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18992 | } | |
18993 | return resultobj; | |
18994 | fail: | |
18995 | return NULL; | |
18996 | } | |
18997 | ||
18998 | ||
c370783e | 18999 | static PyObject *_wrap_DateTime_SetToTheWeek(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19000 | PyObject *resultobj; |
19001 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19002 | int arg2 ; | |
19003 | int arg3 = (int) wxDateTime::Mon ; | |
19004 | int arg4 = (int) wxDateTime::Monday_First ; | |
19005 | bool result; | |
19006 | PyObject * obj0 = 0 ; | |
19007 | PyObject * obj1 = 0 ; | |
19008 | PyObject * obj2 = 0 ; | |
19009 | PyObject * obj3 = 0 ; | |
19010 | char *kwnames[] = { | |
19011 | (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL | |
19012 | }; | |
19013 | ||
19014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToTheWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
19015 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19016 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 19017 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
19018 | if (PyErr_Occurred()) SWIG_fail; |
19019 | if (obj2) { | |
c370783e | 19020 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
19021 | if (PyErr_Occurred()) SWIG_fail; |
19022 | } | |
19023 | if (obj3) { | |
c370783e | 19024 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
19025 | if (PyErr_Occurred()) SWIG_fail; |
19026 | } | |
19027 | { | |
19028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19029 | result = (bool)(arg1)->SetToTheWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4); | |
19030 | ||
19031 | wxPyEndAllowThreads(__tstate); | |
19032 | if (PyErr_Occurred()) SWIG_fail; | |
19033 | } | |
19034 | { | |
19035 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19036 | } | |
19037 | return resultobj; | |
19038 | fail: | |
19039 | return NULL; | |
19040 | } | |
19041 | ||
19042 | ||
c370783e | 19043 | static PyObject *_wrap_DateTime_GetWeek(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19044 | PyObject *resultobj; |
19045 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19046 | int arg2 ; | |
19047 | int arg3 = (int) wxDateTime::Mon ; | |
19048 | int arg4 = (int) wxDateTime::Monday_First ; | |
19049 | wxDateTime result; | |
19050 | PyObject * obj0 = 0 ; | |
19051 | PyObject * obj1 = 0 ; | |
19052 | PyObject * obj2 = 0 ; | |
19053 | PyObject * obj3 = 0 ; | |
19054 | char *kwnames[] = { | |
19055 | (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL | |
19056 | }; | |
19057 | ||
19058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
19059 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19060 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 19061 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
19062 | if (PyErr_Occurred()) SWIG_fail; |
19063 | if (obj2) { | |
c370783e | 19064 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
19065 | if (PyErr_Occurred()) SWIG_fail; |
19066 | } | |
19067 | if (obj3) { | |
c370783e | 19068 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
19069 | if (PyErr_Occurred()) SWIG_fail; |
19070 | } | |
19071 | { | |
19072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19073 | result = (arg1)->GetWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4); | |
19074 | ||
19075 | wxPyEndAllowThreads(__tstate); | |
19076 | if (PyErr_Occurred()) SWIG_fail; | |
19077 | } | |
19078 | { | |
19079 | wxDateTime * resultptr; | |
19080 | resultptr = new wxDateTime((wxDateTime &) result); | |
19081 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
19082 | } | |
19083 | return resultobj; | |
19084 | fail: | |
19085 | return NULL; | |
19086 | } | |
19087 | ||
19088 | ||
629e65c2 RD |
19089 | static PyObject *_wrap_DateTime_SetToWeekOfYear(PyObject *, PyObject *args, PyObject *kwargs) { |
19090 | PyObject *resultobj; | |
19091 | int arg1 ; | |
19092 | int arg2 ; | |
19093 | int arg3 = (int) wxDateTime::Mon ; | |
19094 | wxDateTime result; | |
19095 | PyObject * obj0 = 0 ; | |
19096 | PyObject * obj1 = 0 ; | |
19097 | PyObject * obj2 = 0 ; | |
19098 | char *kwnames[] = { | |
19099 | (char *) "year",(char *) "numWeek",(char *) "weekday", NULL | |
19100 | }; | |
19101 | ||
19102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19103 | arg1 = (int)SWIG_As_int(obj0); | |
19104 | if (PyErr_Occurred()) SWIG_fail; | |
19105 | arg2 = (int)SWIG_As_int(obj1); | |
19106 | if (PyErr_Occurred()) SWIG_fail; | |
19107 | if (obj2) { | |
19108 | arg3 = (int)SWIG_As_int(obj2); | |
19109 | if (PyErr_Occurred()) SWIG_fail; | |
19110 | } | |
19111 | { | |
19112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19113 | result = wxDateTime::SetToWeekOfYear(arg1,arg2,(wxDateTime::WeekDay )arg3); | |
19114 | ||
19115 | wxPyEndAllowThreads(__tstate); | |
19116 | if (PyErr_Occurred()) SWIG_fail; | |
19117 | } | |
19118 | { | |
19119 | wxDateTime * resultptr; | |
19120 | resultptr = new wxDateTime((wxDateTime &) result); | |
19121 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
19122 | } | |
19123 | return resultobj; | |
19124 | fail: | |
19125 | return NULL; | |
19126 | } | |
19127 | ||
19128 | ||
c370783e | 19129 | static PyObject *_wrap_DateTime_SetToLastMonthDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19130 | PyObject *resultobj; |
19131 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19132 | int arg2 = (int) wxDateTime::Inv_Month ; | |
19133 | int arg3 = (int) wxDateTime::Inv_Year ; | |
19134 | wxDateTime *result; | |
19135 | PyObject * obj0 = 0 ; | |
19136 | PyObject * obj1 = 0 ; | |
19137 | PyObject * obj2 = 0 ; | |
19138 | char *kwnames[] = { | |
19139 | (char *) "self",(char *) "month",(char *) "year", NULL | |
19140 | }; | |
19141 | ||
19142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_SetToLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19143 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19144 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19145 | if (obj1) { | |
c370783e | 19146 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
19147 | if (PyErr_Occurred()) SWIG_fail; |
19148 | } | |
19149 | if (obj2) { | |
c370783e | 19150 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
19151 | if (PyErr_Occurred()) SWIG_fail; |
19152 | } | |
19153 | { | |
19154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19155 | { | |
19156 | wxDateTime &_result_ref = (arg1)->SetToLastMonthDay((wxDateTime::Month )arg2,arg3); | |
19157 | result = (wxDateTime *) &_result_ref; | |
19158 | } | |
19159 | ||
19160 | wxPyEndAllowThreads(__tstate); | |
19161 | if (PyErr_Occurred()) SWIG_fail; | |
19162 | } | |
19163 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
19164 | return resultobj; | |
19165 | fail: | |
19166 | return NULL; | |
19167 | } | |
19168 | ||
19169 | ||
c370783e | 19170 | static PyObject *_wrap_DateTime_GetLastMonthDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19171 | PyObject *resultobj; |
19172 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19173 | int arg2 = (int) wxDateTime::Inv_Month ; | |
19174 | int arg3 = (int) wxDateTime::Inv_Year ; | |
19175 | wxDateTime result; | |
19176 | PyObject * obj0 = 0 ; | |
19177 | PyObject * obj1 = 0 ; | |
19178 | PyObject * obj2 = 0 ; | |
19179 | char *kwnames[] = { | |
19180 | (char *) "self",(char *) "month",(char *) "year", NULL | |
19181 | }; | |
19182 | ||
19183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19184 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19185 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19186 | if (obj1) { | |
c370783e | 19187 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
19188 | if (PyErr_Occurred()) SWIG_fail; |
19189 | } | |
19190 | if (obj2) { | |
c370783e | 19191 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
19192 | if (PyErr_Occurred()) SWIG_fail; |
19193 | } | |
19194 | { | |
19195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19196 | result = (arg1)->GetLastMonthDay((wxDateTime::Month )arg2,arg3); | |
19197 | ||
19198 | wxPyEndAllowThreads(__tstate); | |
19199 | if (PyErr_Occurred()) SWIG_fail; | |
19200 | } | |
19201 | { | |
19202 | wxDateTime * resultptr; | |
19203 | resultptr = new wxDateTime((wxDateTime &) result); | |
19204 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
19205 | } | |
19206 | return resultobj; | |
19207 | fail: | |
19208 | return NULL; | |
19209 | } | |
19210 | ||
19211 | ||
c370783e | 19212 | static PyObject *_wrap_DateTime_SetToYearDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19213 | PyObject *resultobj; |
19214 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19215 | int arg2 ; | |
19216 | wxDateTime *result; | |
19217 | PyObject * obj0 = 0 ; | |
19218 | PyObject * obj1 = 0 ; | |
19219 | char *kwnames[] = { | |
19220 | (char *) "self",(char *) "yday", NULL | |
19221 | }; | |
19222 | ||
19223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToYearDay",kwnames,&obj0,&obj1)) goto fail; | |
19224 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19225 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 19226 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
19227 | if (PyErr_Occurred()) SWIG_fail; |
19228 | { | |
19229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19230 | { | |
19231 | wxDateTime &_result_ref = (arg1)->SetToYearDay(arg2); | |
19232 | result = (wxDateTime *) &_result_ref; | |
19233 | } | |
19234 | ||
19235 | wxPyEndAllowThreads(__tstate); | |
19236 | if (PyErr_Occurred()) SWIG_fail; | |
19237 | } | |
19238 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
19239 | return resultobj; | |
19240 | fail: | |
19241 | return NULL; | |
19242 | } | |
19243 | ||
19244 | ||
c370783e | 19245 | static PyObject *_wrap_DateTime_GetYearDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19246 | PyObject *resultobj; |
19247 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19248 | int arg2 ; | |
19249 | wxDateTime result; | |
19250 | PyObject * obj0 = 0 ; | |
19251 | PyObject * obj1 = 0 ; | |
19252 | char *kwnames[] = { | |
19253 | (char *) "self",(char *) "yday", NULL | |
19254 | }; | |
19255 | ||
19256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetYearDay",kwnames,&obj0,&obj1)) goto fail; | |
19257 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19258 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 19259 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
19260 | if (PyErr_Occurred()) SWIG_fail; |
19261 | { | |
19262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19263 | result = (arg1)->GetYearDay(arg2); | |
19264 | ||
19265 | wxPyEndAllowThreads(__tstate); | |
19266 | if (PyErr_Occurred()) SWIG_fail; | |
19267 | } | |
19268 | { | |
19269 | wxDateTime * resultptr; | |
19270 | resultptr = new wxDateTime((wxDateTime &) result); | |
19271 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
19272 | } | |
19273 | return resultobj; | |
19274 | fail: | |
19275 | return NULL; | |
19276 | } | |
19277 | ||
19278 | ||
c370783e | 19279 | static PyObject *_wrap_DateTime_GetJulianDayNumber(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19280 | PyObject *resultobj; |
19281 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19282 | double result; | |
19283 | PyObject * obj0 = 0 ; | |
19284 | char *kwnames[] = { | |
19285 | (char *) "self", NULL | |
19286 | }; | |
19287 | ||
19288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJulianDayNumber",kwnames,&obj0)) goto fail; | |
19289 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19290 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19291 | { | |
19292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19293 | result = (double)(arg1)->GetJulianDayNumber(); | |
19294 | ||
19295 | wxPyEndAllowThreads(__tstate); | |
19296 | if (PyErr_Occurred()) SWIG_fail; | |
19297 | } | |
c370783e | 19298 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
19299 | return resultobj; |
19300 | fail: | |
19301 | return NULL; | |
19302 | } | |
19303 | ||
19304 | ||
c370783e | 19305 | static PyObject *_wrap_DateTime_GetJDN(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19306 | PyObject *resultobj; |
19307 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19308 | double result; | |
19309 | PyObject * obj0 = 0 ; | |
19310 | char *kwnames[] = { | |
19311 | (char *) "self", NULL | |
19312 | }; | |
19313 | ||
19314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJDN",kwnames,&obj0)) goto fail; | |
19315 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19317 | { | |
19318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19319 | result = (double)(arg1)->GetJDN(); | |
19320 | ||
19321 | wxPyEndAllowThreads(__tstate); | |
19322 | if (PyErr_Occurred()) SWIG_fail; | |
19323 | } | |
c370783e | 19324 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
19325 | return resultobj; |
19326 | fail: | |
19327 | return NULL; | |
19328 | } | |
19329 | ||
19330 | ||
c370783e | 19331 | static PyObject *_wrap_DateTime_GetModifiedJulianDayNumber(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19332 | PyObject *resultobj; |
19333 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19334 | double result; | |
19335 | PyObject * obj0 = 0 ; | |
19336 | char *kwnames[] = { | |
19337 | (char *) "self", NULL | |
19338 | }; | |
19339 | ||
19340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetModifiedJulianDayNumber",kwnames,&obj0)) goto fail; | |
19341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19343 | { | |
19344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19345 | result = (double)((wxDateTime const *)arg1)->GetModifiedJulianDayNumber(); | |
19346 | ||
19347 | wxPyEndAllowThreads(__tstate); | |
19348 | if (PyErr_Occurred()) SWIG_fail; | |
19349 | } | |
c370783e | 19350 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
19351 | return resultobj; |
19352 | fail: | |
19353 | return NULL; | |
19354 | } | |
19355 | ||
19356 | ||
c370783e | 19357 | static PyObject *_wrap_DateTime_GetMJD(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19358 | PyObject *resultobj; |
19359 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19360 | double result; | |
19361 | PyObject * obj0 = 0 ; | |
19362 | char *kwnames[] = { | |
19363 | (char *) "self", NULL | |
19364 | }; | |
19365 | ||
19366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetMJD",kwnames,&obj0)) goto fail; | |
19367 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19369 | { | |
19370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19371 | result = (double)(arg1)->GetMJD(); | |
19372 | ||
19373 | wxPyEndAllowThreads(__tstate); | |
19374 | if (PyErr_Occurred()) SWIG_fail; | |
19375 | } | |
c370783e | 19376 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
19377 | return resultobj; |
19378 | fail: | |
19379 | return NULL; | |
19380 | } | |
19381 | ||
19382 | ||
c370783e | 19383 | static PyObject *_wrap_DateTime_GetRataDie(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19384 | PyObject *resultobj; |
19385 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19386 | double result; | |
19387 | PyObject * obj0 = 0 ; | |
19388 | char *kwnames[] = { | |
19389 | (char *) "self", NULL | |
19390 | }; | |
19391 | ||
19392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetRataDie",kwnames,&obj0)) goto fail; | |
19393 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19394 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19395 | { | |
19396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19397 | result = (double)(arg1)->GetRataDie(); | |
19398 | ||
19399 | wxPyEndAllowThreads(__tstate); | |
19400 | if (PyErr_Occurred()) SWIG_fail; | |
19401 | } | |
c370783e | 19402 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
19403 | return resultobj; |
19404 | fail: | |
19405 | return NULL; | |
19406 | } | |
19407 | ||
19408 | ||
c370783e | 19409 | static PyObject *_wrap_DateTime_ToTimezone(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19410 | PyObject *resultobj; |
19411 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19412 | wxDateTime::TimeZone *arg2 = 0 ; | |
b411df4a | 19413 | bool arg3 = (bool) false ; |
d55e5bfc | 19414 | wxDateTime result; |
b411df4a | 19415 | bool temp2 = false ; |
d55e5bfc RD |
19416 | PyObject * obj0 = 0 ; |
19417 | PyObject * obj1 = 0 ; | |
19418 | PyObject * obj2 = 0 ; | |
19419 | char *kwnames[] = { | |
19420 | (char *) "self",(char *) "tz",(char *) "noDST", NULL | |
19421 | }; | |
19422 | ||
19423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_ToTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19424 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19426 | { | |
19427 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
b411df4a | 19428 | temp2 = true; |
d55e5bfc RD |
19429 | } |
19430 | if (obj2) { | |
c370783e | 19431 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
19432 | if (PyErr_Occurred()) SWIG_fail; |
19433 | } | |
19434 | { | |
19435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19436 | result = (arg1)->ToTimezone((wxDateTime::TimeZone const &)*arg2,arg3); | |
19437 | ||
19438 | wxPyEndAllowThreads(__tstate); | |
19439 | if (PyErr_Occurred()) SWIG_fail; | |
19440 | } | |
19441 | { | |
19442 | wxDateTime * resultptr; | |
19443 | resultptr = new wxDateTime((wxDateTime &) result); | |
19444 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
19445 | } | |
19446 | { | |
19447 | if (temp2) delete arg2; | |
19448 | } | |
19449 | return resultobj; | |
19450 | fail: | |
19451 | { | |
19452 | if (temp2) delete arg2; | |
19453 | } | |
19454 | return NULL; | |
19455 | } | |
19456 | ||
19457 | ||
c370783e | 19458 | static PyObject *_wrap_DateTime_MakeTimezone(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19459 | PyObject *resultobj; |
19460 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19461 | wxDateTime::TimeZone *arg2 = 0 ; | |
b411df4a | 19462 | bool arg3 = (bool) false ; |
d55e5bfc | 19463 | wxDateTime *result; |
b411df4a | 19464 | bool temp2 = false ; |
d55e5bfc RD |
19465 | PyObject * obj0 = 0 ; |
19466 | PyObject * obj1 = 0 ; | |
19467 | PyObject * obj2 = 0 ; | |
19468 | char *kwnames[] = { | |
19469 | (char *) "self",(char *) "tz",(char *) "noDST", NULL | |
19470 | }; | |
19471 | ||
19472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19473 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19474 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19475 | { | |
19476 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
b411df4a | 19477 | temp2 = true; |
d55e5bfc RD |
19478 | } |
19479 | if (obj2) { | |
c370783e | 19480 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
19481 | if (PyErr_Occurred()) SWIG_fail; |
19482 | } | |
19483 | { | |
19484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19485 | { | |
19486 | wxDateTime &_result_ref = (arg1)->MakeTimezone((wxDateTime::TimeZone const &)*arg2,arg3); | |
19487 | result = (wxDateTime *) &_result_ref; | |
19488 | } | |
19489 | ||
19490 | wxPyEndAllowThreads(__tstate); | |
19491 | if (PyErr_Occurred()) SWIG_fail; | |
19492 | } | |
19493 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
19494 | { | |
19495 | if (temp2) delete arg2; | |
19496 | } | |
19497 | return resultobj; | |
19498 | fail: | |
19499 | { | |
19500 | if (temp2) delete arg2; | |
19501 | } | |
19502 | return NULL; | |
19503 | } | |
19504 | ||
19505 | ||
c370783e | 19506 | static PyObject *_wrap_DateTime_ToGMT(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19507 | PyObject *resultobj; |
19508 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
b411df4a | 19509 | bool arg2 = (bool) false ; |
d55e5bfc RD |
19510 | wxDateTime result; |
19511 | PyObject * obj0 = 0 ; | |
19512 | PyObject * obj1 = 0 ; | |
19513 | char *kwnames[] = { | |
19514 | (char *) "self",(char *) "noDST", NULL | |
19515 | }; | |
19516 | ||
19517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToGMT",kwnames,&obj0,&obj1)) goto fail; | |
19518 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19519 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19520 | if (obj1) { | |
c370783e | 19521 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
19522 | if (PyErr_Occurred()) SWIG_fail; |
19523 | } | |
19524 | { | |
19525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19526 | result = (arg1)->ToGMT(arg2); | |
19527 | ||
19528 | wxPyEndAllowThreads(__tstate); | |
19529 | if (PyErr_Occurred()) SWIG_fail; | |
19530 | } | |
19531 | { | |
19532 | wxDateTime * resultptr; | |
19533 | resultptr = new wxDateTime((wxDateTime &) result); | |
19534 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
19535 | } | |
19536 | return resultobj; | |
19537 | fail: | |
19538 | return NULL; | |
19539 | } | |
19540 | ||
19541 | ||
c370783e | 19542 | static PyObject *_wrap_DateTime_MakeGMT(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19543 | PyObject *resultobj; |
19544 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
b411df4a | 19545 | bool arg2 = (bool) false ; |
d55e5bfc RD |
19546 | wxDateTime *result; |
19547 | PyObject * obj0 = 0 ; | |
19548 | PyObject * obj1 = 0 ; | |
19549 | char *kwnames[] = { | |
19550 | (char *) "self",(char *) "noDST", NULL | |
19551 | }; | |
19552 | ||
19553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeGMT",kwnames,&obj0,&obj1)) goto fail; | |
19554 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19555 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19556 | if (obj1) { | |
c370783e | 19557 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
19558 | if (PyErr_Occurred()) SWIG_fail; |
19559 | } | |
19560 | { | |
19561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19562 | { | |
19563 | wxDateTime &_result_ref = (arg1)->MakeGMT(arg2); | |
19564 | result = (wxDateTime *) &_result_ref; | |
19565 | } | |
19566 | ||
19567 | wxPyEndAllowThreads(__tstate); | |
19568 | if (PyErr_Occurred()) SWIG_fail; | |
19569 | } | |
19570 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
19571 | return resultobj; | |
19572 | fail: | |
19573 | return NULL; | |
19574 | } | |
19575 | ||
19576 | ||
c370783e | 19577 | static PyObject *_wrap_DateTime_IsDST(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19578 | PyObject *resultobj; |
19579 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19580 | int arg2 = (int) wxDateTime::Country_Default ; | |
19581 | int result; | |
19582 | PyObject * obj0 = 0 ; | |
19583 | PyObject * obj1 = 0 ; | |
19584 | char *kwnames[] = { | |
19585 | (char *) "self",(char *) "country", NULL | |
19586 | }; | |
19587 | ||
19588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsDST",kwnames,&obj0,&obj1)) goto fail; | |
19589 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19591 | if (obj1) { | |
c370783e | 19592 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
19593 | if (PyErr_Occurred()) SWIG_fail; |
19594 | } | |
19595 | { | |
19596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19597 | result = (int)(arg1)->IsDST((wxDateTime::Country )arg2); | |
19598 | ||
19599 | wxPyEndAllowThreads(__tstate); | |
19600 | if (PyErr_Occurred()) SWIG_fail; | |
19601 | } | |
c370783e | 19602 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
19603 | return resultobj; |
19604 | fail: | |
19605 | return NULL; | |
19606 | } | |
19607 | ||
19608 | ||
c370783e | 19609 | static PyObject *_wrap_DateTime_IsValid(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19610 | PyObject *resultobj; |
19611 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19612 | bool result; | |
19613 | PyObject * obj0 = 0 ; | |
19614 | char *kwnames[] = { | |
19615 | (char *) "self", NULL | |
19616 | }; | |
19617 | ||
19618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_IsValid",kwnames,&obj0)) goto fail; | |
19619 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19620 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19621 | { | |
19622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19623 | result = (bool)((wxDateTime const *)arg1)->IsValid(); | |
19624 | ||
19625 | wxPyEndAllowThreads(__tstate); | |
19626 | if (PyErr_Occurred()) SWIG_fail; | |
19627 | } | |
19628 | { | |
19629 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19630 | } | |
19631 | return resultobj; | |
19632 | fail: | |
19633 | return NULL; | |
19634 | } | |
19635 | ||
19636 | ||
c370783e | 19637 | static PyObject *_wrap_DateTime_GetTicks(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19638 | PyObject *resultobj; |
19639 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19640 | time_t result; | |
19641 | PyObject * obj0 = 0 ; | |
19642 | char *kwnames[] = { | |
19643 | (char *) "self", NULL | |
19644 | }; | |
19645 | ||
19646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetTicks",kwnames,&obj0)) goto fail; | |
19647 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19648 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19649 | { | |
19650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19651 | result = (time_t)((wxDateTime const *)arg1)->GetTicks(); | |
19652 | ||
19653 | wxPyEndAllowThreads(__tstate); | |
19654 | if (PyErr_Occurred()) SWIG_fail; | |
19655 | } | |
c370783e | 19656 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)result); |
d55e5bfc RD |
19657 | return resultobj; |
19658 | fail: | |
19659 | return NULL; | |
19660 | } | |
19661 | ||
19662 | ||
c370783e | 19663 | static PyObject *_wrap_DateTime_GetYear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19664 | PyObject *resultobj; |
19665 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19666 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19667 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19668 | int result; | |
b411df4a | 19669 | bool temp2 = false ; |
d55e5bfc RD |
19670 | PyObject * obj0 = 0 ; |
19671 | PyObject * obj1 = 0 ; | |
19672 | char *kwnames[] = { | |
19673 | (char *) "self",(char *) "tz", NULL | |
19674 | }; | |
19675 | ||
19676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetYear",kwnames,&obj0,&obj1)) goto fail; | |
19677 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19679 | if (obj1) { | |
19680 | { | |
19681 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
b411df4a | 19682 | temp2 = true; |
d55e5bfc RD |
19683 | } |
19684 | } | |
19685 | { | |
19686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19687 | result = (int)((wxDateTime const *)arg1)->GetYear((wxDateTime::TimeZone const &)*arg2); | |
19688 | ||
19689 | wxPyEndAllowThreads(__tstate); | |
19690 | if (PyErr_Occurred()) SWIG_fail; | |
19691 | } | |
c370783e | 19692 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
19693 | { |
19694 | if (temp2) delete arg2; | |
19695 | } | |
19696 | return resultobj; | |
19697 | fail: | |
19698 | { | |
19699 | if (temp2) delete arg2; | |
19700 | } | |
19701 | return NULL; | |
19702 | } | |
19703 | ||
19704 | ||
c370783e | 19705 | static PyObject *_wrap_DateTime_GetMonth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19706 | PyObject *resultobj; |
19707 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19708 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19709 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19710 | int result; | |
b411df4a | 19711 | bool temp2 = false ; |
d55e5bfc RD |
19712 | PyObject * obj0 = 0 ; |
19713 | PyObject * obj1 = 0 ; | |
19714 | char *kwnames[] = { | |
19715 | (char *) "self",(char *) "tz", NULL | |
19716 | }; | |
19717 | ||
19718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonth",kwnames,&obj0,&obj1)) goto fail; | |
19719 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19720 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19721 | if (obj1) { | |
19722 | { | |
19723 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
b411df4a | 19724 | temp2 = true; |
d55e5bfc RD |
19725 | } |
19726 | } | |
19727 | { | |
19728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19729 | result = (int)((wxDateTime const *)arg1)->GetMonth((wxDateTime::TimeZone const &)*arg2); | |
19730 | ||
19731 | wxPyEndAllowThreads(__tstate); | |
19732 | if (PyErr_Occurred()) SWIG_fail; | |
19733 | } | |
c370783e | 19734 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
19735 | { |
19736 | if (temp2) delete arg2; | |
19737 | } | |
19738 | return resultobj; | |
19739 | fail: | |
19740 | { | |
19741 | if (temp2) delete arg2; | |
19742 | } | |
19743 | return NULL; | |
19744 | } | |
19745 | ||
19746 | ||
c370783e | 19747 | static PyObject *_wrap_DateTime_GetDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19748 | PyObject *resultobj; |
19749 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19750 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19751 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19752 | int result; | |
b411df4a | 19753 | bool temp2 = false ; |
d55e5bfc RD |
19754 | PyObject * obj0 = 0 ; |
19755 | PyObject * obj1 = 0 ; | |
19756 | char *kwnames[] = { | |
19757 | (char *) "self",(char *) "tz", NULL | |
19758 | }; | |
19759 | ||
19760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDay",kwnames,&obj0,&obj1)) goto fail; | |
19761 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19762 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19763 | if (obj1) { | |
19764 | { | |
19765 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
b411df4a | 19766 | temp2 = true; |
d55e5bfc RD |
19767 | } |
19768 | } | |
19769 | { | |
19770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19771 | result = (int)((wxDateTime const *)arg1)->GetDay((wxDateTime::TimeZone const &)*arg2); | |
19772 | ||
19773 | wxPyEndAllowThreads(__tstate); | |
19774 | if (PyErr_Occurred()) SWIG_fail; | |
19775 | } | |
c370783e | 19776 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
19777 | { |
19778 | if (temp2) delete arg2; | |
19779 | } | |
19780 | return resultobj; | |
19781 | fail: | |
19782 | { | |
19783 | if (temp2) delete arg2; | |
19784 | } | |
19785 | return NULL; | |
19786 | } | |
19787 | ||
19788 | ||
c370783e | 19789 | static PyObject *_wrap_DateTime_GetWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19790 | PyObject *resultobj; |
19791 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19792 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19793 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19794 | int result; | |
b411df4a | 19795 | bool temp2 = false ; |
d55e5bfc RD |
19796 | PyObject * obj0 = 0 ; |
19797 | PyObject * obj1 = 0 ; | |
19798 | char *kwnames[] = { | |
19799 | (char *) "self",(char *) "tz", NULL | |
19800 | }; | |
19801 | ||
19802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
19803 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19804 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19805 | if (obj1) { | |
19806 | { | |
19807 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
b411df4a | 19808 | temp2 = true; |
d55e5bfc RD |
19809 | } |
19810 | } | |
19811 | { | |
19812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19813 | result = (int)((wxDateTime const *)arg1)->GetWeekDay((wxDateTime::TimeZone const &)*arg2); | |
19814 | ||
19815 | wxPyEndAllowThreads(__tstate); | |
19816 | if (PyErr_Occurred()) SWIG_fail; | |
19817 | } | |
c370783e | 19818 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
19819 | { |
19820 | if (temp2) delete arg2; | |
19821 | } | |
19822 | return resultobj; | |
19823 | fail: | |
19824 | { | |
19825 | if (temp2) delete arg2; | |
19826 | } | |
19827 | return NULL; | |
19828 | } | |
19829 | ||
19830 | ||
c370783e | 19831 | static PyObject *_wrap_DateTime_GetHour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19832 | PyObject *resultobj; |
19833 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19834 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19835 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19836 | int result; | |
b411df4a | 19837 | bool temp2 = false ; |
d55e5bfc RD |
19838 | PyObject * obj0 = 0 ; |
19839 | PyObject * obj1 = 0 ; | |
19840 | char *kwnames[] = { | |
19841 | (char *) "self",(char *) "tz", NULL | |
19842 | }; | |
19843 | ||
19844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetHour",kwnames,&obj0,&obj1)) goto fail; | |
19845 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19846 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19847 | if (obj1) { | |
19848 | { | |
19849 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
b411df4a | 19850 | temp2 = true; |
d55e5bfc RD |
19851 | } |
19852 | } | |
19853 | { | |
19854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19855 | result = (int)((wxDateTime const *)arg1)->GetHour((wxDateTime::TimeZone const &)*arg2); | |
19856 | ||
19857 | wxPyEndAllowThreads(__tstate); | |
19858 | if (PyErr_Occurred()) SWIG_fail; | |
19859 | } | |
c370783e | 19860 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
19861 | { |
19862 | if (temp2) delete arg2; | |
19863 | } | |
19864 | return resultobj; | |
19865 | fail: | |
19866 | { | |
19867 | if (temp2) delete arg2; | |
19868 | } | |
19869 | return NULL; | |
19870 | } | |
19871 | ||
19872 | ||
c370783e | 19873 | static PyObject *_wrap_DateTime_GetMinute(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19874 | PyObject *resultobj; |
19875 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19876 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19877 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19878 | int result; | |
b411df4a | 19879 | bool temp2 = false ; |
d55e5bfc RD |
19880 | PyObject * obj0 = 0 ; |
19881 | PyObject * obj1 = 0 ; | |
19882 | char *kwnames[] = { | |
19883 | (char *) "self",(char *) "tz", NULL | |
19884 | }; | |
19885 | ||
19886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMinute",kwnames,&obj0,&obj1)) goto fail; | |
19887 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19888 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19889 | if (obj1) { | |
19890 | { | |
19891 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
b411df4a | 19892 | temp2 = true; |
d55e5bfc RD |
19893 | } |
19894 | } | |
19895 | { | |
19896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19897 | result = (int)((wxDateTime const *)arg1)->GetMinute((wxDateTime::TimeZone const &)*arg2); | |
19898 | ||
19899 | wxPyEndAllowThreads(__tstate); | |
19900 | if (PyErr_Occurred()) SWIG_fail; | |
19901 | } | |
c370783e | 19902 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
19903 | { |
19904 | if (temp2) delete arg2; | |
19905 | } | |
19906 | return resultobj; | |
19907 | fail: | |
19908 | { | |
19909 | if (temp2) delete arg2; | |
19910 | } | |
19911 | return NULL; | |
19912 | } | |
19913 | ||
19914 | ||
c370783e | 19915 | static PyObject *_wrap_DateTime_GetSecond(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19916 | PyObject *resultobj; |
19917 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19918 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19919 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19920 | int result; | |
b411df4a | 19921 | bool temp2 = false ; |
d55e5bfc RD |
19922 | PyObject * obj0 = 0 ; |
19923 | PyObject * obj1 = 0 ; | |
19924 | char *kwnames[] = { | |
19925 | (char *) "self",(char *) "tz", NULL | |
19926 | }; | |
19927 | ||
19928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetSecond",kwnames,&obj0,&obj1)) goto fail; | |
19929 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19930 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19931 | if (obj1) { | |
19932 | { | |
19933 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
b411df4a | 19934 | temp2 = true; |
d55e5bfc RD |
19935 | } |
19936 | } | |
19937 | { | |
19938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19939 | result = (int)((wxDateTime const *)arg1)->GetSecond((wxDateTime::TimeZone const &)*arg2); | |
19940 | ||
19941 | wxPyEndAllowThreads(__tstate); | |
19942 | if (PyErr_Occurred()) SWIG_fail; | |
19943 | } | |
c370783e | 19944 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
19945 | { |
19946 | if (temp2) delete arg2; | |
19947 | } | |
19948 | return resultobj; | |
19949 | fail: | |
19950 | { | |
19951 | if (temp2) delete arg2; | |
19952 | } | |
19953 | return NULL; | |
19954 | } | |
19955 | ||
19956 | ||
c370783e | 19957 | static PyObject *_wrap_DateTime_GetMillisecond(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19958 | PyObject *resultobj; |
19959 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19960 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19961 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19962 | int result; | |
b411df4a | 19963 | bool temp2 = false ; |
d55e5bfc RD |
19964 | PyObject * obj0 = 0 ; |
19965 | PyObject * obj1 = 0 ; | |
19966 | char *kwnames[] = { | |
19967 | (char *) "self",(char *) "tz", NULL | |
19968 | }; | |
19969 | ||
19970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMillisecond",kwnames,&obj0,&obj1)) goto fail; | |
19971 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19972 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19973 | if (obj1) { | |
19974 | { | |
19975 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
b411df4a | 19976 | temp2 = true; |
d55e5bfc RD |
19977 | } |
19978 | } | |
19979 | { | |
19980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19981 | result = (int)((wxDateTime const *)arg1)->GetMillisecond((wxDateTime::TimeZone const &)*arg2); | |
19982 | ||
19983 | wxPyEndAllowThreads(__tstate); | |
19984 | if (PyErr_Occurred()) SWIG_fail; | |
19985 | } | |
c370783e | 19986 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
19987 | { |
19988 | if (temp2) delete arg2; | |
19989 | } | |
19990 | return resultobj; | |
19991 | fail: | |
19992 | { | |
19993 | if (temp2) delete arg2; | |
19994 | } | |
19995 | return NULL; | |
19996 | } | |
19997 | ||
19998 | ||
c370783e | 19999 | static PyObject *_wrap_DateTime_GetDayOfYear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20000 | PyObject *resultobj; |
20001 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20002 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
20003 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
20004 | int result; | |
b411df4a | 20005 | bool temp2 = false ; |
d55e5bfc RD |
20006 | PyObject * obj0 = 0 ; |
20007 | PyObject * obj1 = 0 ; | |
20008 | char *kwnames[] = { | |
20009 | (char *) "self",(char *) "tz", NULL | |
20010 | }; | |
20011 | ||
20012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDayOfYear",kwnames,&obj0,&obj1)) goto fail; | |
20013 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20014 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20015 | if (obj1) { | |
20016 | { | |
20017 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
b411df4a | 20018 | temp2 = true; |
d55e5bfc RD |
20019 | } |
20020 | } | |
20021 | { | |
20022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20023 | result = (int)((wxDateTime const *)arg1)->GetDayOfYear((wxDateTime::TimeZone const &)*arg2); | |
20024 | ||
20025 | wxPyEndAllowThreads(__tstate); | |
20026 | if (PyErr_Occurred()) SWIG_fail; | |
20027 | } | |
c370783e | 20028 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
20029 | { |
20030 | if (temp2) delete arg2; | |
20031 | } | |
20032 | return resultobj; | |
20033 | fail: | |
20034 | { | |
20035 | if (temp2) delete arg2; | |
20036 | } | |
20037 | return NULL; | |
20038 | } | |
20039 | ||
20040 | ||
c370783e | 20041 | static PyObject *_wrap_DateTime_GetWeekOfYear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20042 | PyObject *resultobj; |
20043 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20044 | int arg2 = (int) wxDateTime::Monday_First ; | |
20045 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
20046 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
20047 | int result; | |
b411df4a | 20048 | bool temp3 = false ; |
d55e5bfc RD |
20049 | PyObject * obj0 = 0 ; |
20050 | PyObject * obj1 = 0 ; | |
20051 | PyObject * obj2 = 0 ; | |
20052 | char *kwnames[] = { | |
20053 | (char *) "self",(char *) "flags",(char *) "tz", NULL | |
20054 | }; | |
20055 | ||
20056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20057 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20058 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20059 | if (obj1) { | |
c370783e | 20060 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
20061 | if (PyErr_Occurred()) SWIG_fail; |
20062 | } | |
20063 | if (obj2) { | |
20064 | { | |
20065 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
b411df4a | 20066 | temp3 = true; |
d55e5bfc RD |
20067 | } |
20068 | } | |
20069 | { | |
20070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20071 | result = (int)((wxDateTime const *)arg1)->GetWeekOfYear((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3); | |
20072 | ||
20073 | wxPyEndAllowThreads(__tstate); | |
20074 | if (PyErr_Occurred()) SWIG_fail; | |
20075 | } | |
c370783e | 20076 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
20077 | { |
20078 | if (temp3) delete arg3; | |
20079 | } | |
20080 | return resultobj; | |
20081 | fail: | |
20082 | { | |
20083 | if (temp3) delete arg3; | |
20084 | } | |
20085 | return NULL; | |
20086 | } | |
20087 | ||
20088 | ||
c370783e | 20089 | static PyObject *_wrap_DateTime_GetWeekOfMonth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20090 | PyObject *resultobj; |
20091 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20092 | int arg2 = (int) wxDateTime::Monday_First ; | |
20093 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
20094 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
20095 | int result; | |
b411df4a | 20096 | bool temp3 = false ; |
d55e5bfc RD |
20097 | PyObject * obj0 = 0 ; |
20098 | PyObject * obj1 = 0 ; | |
20099 | PyObject * obj2 = 0 ; | |
20100 | char *kwnames[] = { | |
20101 | (char *) "self",(char *) "flags",(char *) "tz", NULL | |
20102 | }; | |
20103 | ||
20104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfMonth",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20105 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20106 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20107 | if (obj1) { | |
c370783e | 20108 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
20109 | if (PyErr_Occurred()) SWIG_fail; |
20110 | } | |
20111 | if (obj2) { | |
20112 | { | |
20113 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
b411df4a | 20114 | temp3 = true; |
d55e5bfc RD |
20115 | } |
20116 | } | |
20117 | { | |
20118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20119 | result = (int)((wxDateTime const *)arg1)->GetWeekOfMonth((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3); | |
20120 | ||
20121 | wxPyEndAllowThreads(__tstate); | |
20122 | if (PyErr_Occurred()) SWIG_fail; | |
20123 | } | |
c370783e | 20124 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
20125 | { |
20126 | if (temp3) delete arg3; | |
20127 | } | |
20128 | return resultobj; | |
20129 | fail: | |
20130 | { | |
20131 | if (temp3) delete arg3; | |
20132 | } | |
20133 | return NULL; | |
20134 | } | |
20135 | ||
20136 | ||
c370783e | 20137 | static PyObject *_wrap_DateTime_IsWorkDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20138 | PyObject *resultobj; |
20139 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20140 | int arg2 = (int) wxDateTime::Country_Default ; | |
20141 | bool result; | |
20142 | PyObject * obj0 = 0 ; | |
20143 | PyObject * obj1 = 0 ; | |
20144 | char *kwnames[] = { | |
20145 | (char *) "self",(char *) "country", NULL | |
20146 | }; | |
20147 | ||
20148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsWorkDay",kwnames,&obj0,&obj1)) goto fail; | |
20149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20151 | if (obj1) { | |
c370783e | 20152 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
20153 | if (PyErr_Occurred()) SWIG_fail; |
20154 | } | |
20155 | { | |
20156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20157 | result = (bool)((wxDateTime const *)arg1)->IsWorkDay((wxDateTime::Country )arg2); | |
20158 | ||
20159 | wxPyEndAllowThreads(__tstate); | |
20160 | if (PyErr_Occurred()) SWIG_fail; | |
20161 | } | |
20162 | { | |
20163 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20164 | } | |
20165 | return resultobj; | |
20166 | fail: | |
20167 | return NULL; | |
20168 | } | |
20169 | ||
20170 | ||
c370783e | 20171 | static PyObject *_wrap_DateTime_IsEqualTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20172 | PyObject *resultobj; |
20173 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20174 | wxDateTime *arg2 = 0 ; | |
20175 | bool result; | |
20176 | PyObject * obj0 = 0 ; | |
20177 | PyObject * obj1 = 0 ; | |
20178 | char *kwnames[] = { | |
20179 | (char *) "self",(char *) "datetime", NULL | |
20180 | }; | |
20181 | ||
20182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEqualTo",kwnames,&obj0,&obj1)) goto fail; | |
20183 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20184 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20185 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20186 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20187 | SWIG_fail; | |
20188 | if (arg2 == NULL) { | |
20189 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20190 | SWIG_fail; | |
20191 | } | |
20192 | { | |
20193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20194 | result = (bool)((wxDateTime const *)arg1)->IsEqualTo((wxDateTime const &)*arg2); | |
20195 | ||
20196 | wxPyEndAllowThreads(__tstate); | |
20197 | if (PyErr_Occurred()) SWIG_fail; | |
20198 | } | |
20199 | { | |
20200 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20201 | } | |
20202 | return resultobj; | |
20203 | fail: | |
20204 | return NULL; | |
20205 | } | |
20206 | ||
20207 | ||
c370783e | 20208 | static PyObject *_wrap_DateTime_IsEarlierThan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20209 | PyObject *resultobj; |
20210 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20211 | wxDateTime *arg2 = 0 ; | |
20212 | bool result; | |
20213 | PyObject * obj0 = 0 ; | |
20214 | PyObject * obj1 = 0 ; | |
20215 | char *kwnames[] = { | |
20216 | (char *) "self",(char *) "datetime", NULL | |
20217 | }; | |
20218 | ||
20219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEarlierThan",kwnames,&obj0,&obj1)) goto fail; | |
20220 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20221 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20222 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20223 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20224 | SWIG_fail; | |
20225 | if (arg2 == NULL) { | |
20226 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20227 | SWIG_fail; | |
20228 | } | |
20229 | { | |
20230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20231 | result = (bool)((wxDateTime const *)arg1)->IsEarlierThan((wxDateTime const &)*arg2); | |
20232 | ||
20233 | wxPyEndAllowThreads(__tstate); | |
20234 | if (PyErr_Occurred()) SWIG_fail; | |
20235 | } | |
20236 | { | |
20237 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20238 | } | |
20239 | return resultobj; | |
20240 | fail: | |
20241 | return NULL; | |
20242 | } | |
20243 | ||
20244 | ||
c370783e | 20245 | static PyObject *_wrap_DateTime_IsLaterThan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20246 | PyObject *resultobj; |
20247 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20248 | wxDateTime *arg2 = 0 ; | |
20249 | bool result; | |
20250 | PyObject * obj0 = 0 ; | |
20251 | PyObject * obj1 = 0 ; | |
20252 | char *kwnames[] = { | |
20253 | (char *) "self",(char *) "datetime", NULL | |
20254 | }; | |
20255 | ||
20256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsLaterThan",kwnames,&obj0,&obj1)) goto fail; | |
20257 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20258 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20259 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20260 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20261 | SWIG_fail; | |
20262 | if (arg2 == NULL) { | |
20263 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20264 | SWIG_fail; | |
20265 | } | |
20266 | { | |
20267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20268 | result = (bool)((wxDateTime const *)arg1)->IsLaterThan((wxDateTime const &)*arg2); | |
20269 | ||
20270 | wxPyEndAllowThreads(__tstate); | |
20271 | if (PyErr_Occurred()) SWIG_fail; | |
20272 | } | |
20273 | { | |
20274 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20275 | } | |
20276 | return resultobj; | |
20277 | fail: | |
20278 | return NULL; | |
20279 | } | |
20280 | ||
20281 | ||
c370783e | 20282 | static PyObject *_wrap_DateTime_IsStrictlyBetween(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20283 | PyObject *resultobj; |
20284 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20285 | wxDateTime *arg2 = 0 ; | |
20286 | wxDateTime *arg3 = 0 ; | |
20287 | bool result; | |
20288 | PyObject * obj0 = 0 ; | |
20289 | PyObject * obj1 = 0 ; | |
20290 | PyObject * obj2 = 0 ; | |
20291 | char *kwnames[] = { | |
20292 | (char *) "self",(char *) "t1",(char *) "t2", NULL | |
20293 | }; | |
20294 | ||
20295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsStrictlyBetween",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20296 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20297 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20298 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20299 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20300 | SWIG_fail; | |
20301 | if (arg2 == NULL) { | |
20302 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20303 | SWIG_fail; | |
20304 | } | |
20305 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime, | |
20306 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20307 | SWIG_fail; | |
20308 | if (arg3 == NULL) { | |
20309 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20310 | SWIG_fail; | |
20311 | } | |
20312 | { | |
20313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20314 | result = (bool)((wxDateTime const *)arg1)->IsStrictlyBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
20315 | ||
20316 | wxPyEndAllowThreads(__tstate); | |
20317 | if (PyErr_Occurred()) SWIG_fail; | |
20318 | } | |
20319 | { | |
20320 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20321 | } | |
20322 | return resultobj; | |
20323 | fail: | |
20324 | return NULL; | |
20325 | } | |
20326 | ||
20327 | ||
c370783e | 20328 | static PyObject *_wrap_DateTime_IsBetween(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20329 | PyObject *resultobj; |
20330 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20331 | wxDateTime *arg2 = 0 ; | |
20332 | wxDateTime *arg3 = 0 ; | |
20333 | bool result; | |
20334 | PyObject * obj0 = 0 ; | |
20335 | PyObject * obj1 = 0 ; | |
20336 | PyObject * obj2 = 0 ; | |
20337 | char *kwnames[] = { | |
20338 | (char *) "self",(char *) "t1",(char *) "t2", NULL | |
20339 | }; | |
20340 | ||
20341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsBetween",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20342 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20343 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20344 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20345 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20346 | SWIG_fail; | |
20347 | if (arg2 == NULL) { | |
20348 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20349 | SWIG_fail; | |
20350 | } | |
20351 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime, | |
20352 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20353 | SWIG_fail; | |
20354 | if (arg3 == NULL) { | |
20355 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20356 | SWIG_fail; | |
20357 | } | |
20358 | { | |
20359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20360 | result = (bool)((wxDateTime const *)arg1)->IsBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
20361 | ||
20362 | wxPyEndAllowThreads(__tstate); | |
20363 | if (PyErr_Occurred()) SWIG_fail; | |
20364 | } | |
20365 | { | |
20366 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20367 | } | |
20368 | return resultobj; | |
20369 | fail: | |
20370 | return NULL; | |
20371 | } | |
20372 | ||
20373 | ||
c370783e | 20374 | static PyObject *_wrap_DateTime_IsSameDate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20375 | PyObject *resultobj; |
20376 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20377 | wxDateTime *arg2 = 0 ; | |
20378 | bool result; | |
20379 | PyObject * obj0 = 0 ; | |
20380 | PyObject * obj1 = 0 ; | |
20381 | char *kwnames[] = { | |
20382 | (char *) "self",(char *) "dt", NULL | |
20383 | }; | |
20384 | ||
20385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameDate",kwnames,&obj0,&obj1)) goto fail; | |
20386 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20387 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20388 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20389 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20390 | SWIG_fail; | |
20391 | if (arg2 == NULL) { | |
20392 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20393 | SWIG_fail; | |
20394 | } | |
20395 | { | |
20396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20397 | result = (bool)((wxDateTime const *)arg1)->IsSameDate((wxDateTime const &)*arg2); | |
20398 | ||
20399 | wxPyEndAllowThreads(__tstate); | |
20400 | if (PyErr_Occurred()) SWIG_fail; | |
20401 | } | |
20402 | { | |
20403 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20404 | } | |
20405 | return resultobj; | |
20406 | fail: | |
20407 | return NULL; | |
20408 | } | |
20409 | ||
20410 | ||
c370783e | 20411 | static PyObject *_wrap_DateTime_IsSameTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20412 | PyObject *resultobj; |
20413 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20414 | wxDateTime *arg2 = 0 ; | |
20415 | bool result; | |
20416 | PyObject * obj0 = 0 ; | |
20417 | PyObject * obj1 = 0 ; | |
20418 | char *kwnames[] = { | |
20419 | (char *) "self",(char *) "dt", NULL | |
20420 | }; | |
20421 | ||
20422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameTime",kwnames,&obj0,&obj1)) goto fail; | |
20423 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20424 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20425 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20426 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20427 | SWIG_fail; | |
20428 | if (arg2 == NULL) { | |
20429 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20430 | SWIG_fail; | |
20431 | } | |
20432 | { | |
20433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20434 | result = (bool)((wxDateTime const *)arg1)->IsSameTime((wxDateTime const &)*arg2); | |
20435 | ||
20436 | wxPyEndAllowThreads(__tstate); | |
20437 | if (PyErr_Occurred()) SWIG_fail; | |
20438 | } | |
20439 | { | |
20440 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20441 | } | |
20442 | return resultobj; | |
20443 | fail: | |
20444 | return NULL; | |
20445 | } | |
20446 | ||
20447 | ||
c370783e | 20448 | static PyObject *_wrap_DateTime_IsEqualUpTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20449 | PyObject *resultobj; |
20450 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20451 | wxDateTime *arg2 = 0 ; | |
20452 | wxTimeSpan *arg3 = 0 ; | |
20453 | bool result; | |
20454 | PyObject * obj0 = 0 ; | |
20455 | PyObject * obj1 = 0 ; | |
20456 | PyObject * obj2 = 0 ; | |
20457 | char *kwnames[] = { | |
20458 | (char *) "self",(char *) "dt",(char *) "ts", NULL | |
20459 | }; | |
20460 | ||
20461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsEqualUpTo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20462 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20463 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20464 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20465 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20466 | SWIG_fail; | |
20467 | if (arg2 == NULL) { | |
20468 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20469 | SWIG_fail; | |
20470 | } | |
20471 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTimeSpan, | |
20472 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20473 | SWIG_fail; | |
20474 | if (arg3 == NULL) { | |
20475 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20476 | SWIG_fail; | |
20477 | } | |
20478 | { | |
20479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20480 | result = (bool)((wxDateTime const *)arg1)->IsEqualUpTo((wxDateTime const &)*arg2,(wxTimeSpan const &)*arg3); | |
20481 | ||
20482 | wxPyEndAllowThreads(__tstate); | |
20483 | if (PyErr_Occurred()) SWIG_fail; | |
20484 | } | |
20485 | { | |
20486 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20487 | } | |
20488 | return resultobj; | |
20489 | fail: | |
20490 | return NULL; | |
20491 | } | |
20492 | ||
20493 | ||
c370783e | 20494 | static PyObject *_wrap_DateTime_AddTS(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20495 | PyObject *resultobj; |
20496 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20497 | wxTimeSpan *arg2 = 0 ; | |
20498 | wxDateTime *result; | |
20499 | PyObject * obj0 = 0 ; | |
20500 | PyObject * obj1 = 0 ; | |
20501 | char *kwnames[] = { | |
20502 | (char *) "self",(char *) "diff", NULL | |
20503 | }; | |
20504 | ||
20505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddTS",kwnames,&obj0,&obj1)) goto fail; | |
20506 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20507 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20508 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
20509 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20510 | SWIG_fail; | |
20511 | if (arg2 == NULL) { | |
20512 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20513 | SWIG_fail; | |
20514 | } | |
20515 | { | |
20516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20517 | { | |
20518 | wxDateTime &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2); | |
20519 | result = (wxDateTime *) &_result_ref; | |
20520 | } | |
20521 | ||
20522 | wxPyEndAllowThreads(__tstate); | |
20523 | if (PyErr_Occurred()) SWIG_fail; | |
20524 | } | |
20525 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
20526 | return resultobj; | |
20527 | fail: | |
20528 | return NULL; | |
20529 | } | |
20530 | ||
20531 | ||
c370783e | 20532 | static PyObject *_wrap_DateTime_AddDS(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20533 | PyObject *resultobj; |
20534 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20535 | wxDateSpan *arg2 = 0 ; | |
20536 | wxDateTime *result; | |
20537 | PyObject * obj0 = 0 ; | |
20538 | PyObject * obj1 = 0 ; | |
20539 | char *kwnames[] = { | |
20540 | (char *) "self",(char *) "diff", NULL | |
20541 | }; | |
20542 | ||
20543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddDS",kwnames,&obj0,&obj1)) goto fail; | |
20544 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20545 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20546 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
20547 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20548 | SWIG_fail; | |
20549 | if (arg2 == NULL) { | |
20550 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20551 | SWIG_fail; | |
20552 | } | |
20553 | { | |
20554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20555 | { | |
20556 | wxDateTime &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2); | |
20557 | result = (wxDateTime *) &_result_ref; | |
20558 | } | |
20559 | ||
20560 | wxPyEndAllowThreads(__tstate); | |
20561 | if (PyErr_Occurred()) SWIG_fail; | |
20562 | } | |
20563 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
20564 | return resultobj; | |
20565 | fail: | |
20566 | return NULL; | |
20567 | } | |
20568 | ||
20569 | ||
c370783e | 20570 | static PyObject *_wrap_DateTime_SubtractTS(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20571 | PyObject *resultobj; |
20572 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20573 | wxTimeSpan *arg2 = 0 ; | |
20574 | wxDateTime *result; | |
20575 | PyObject * obj0 = 0 ; | |
20576 | PyObject * obj1 = 0 ; | |
20577 | char *kwnames[] = { | |
20578 | (char *) "self",(char *) "diff", NULL | |
20579 | }; | |
20580 | ||
20581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractTS",kwnames,&obj0,&obj1)) goto fail; | |
20582 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20583 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20584 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
20585 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20586 | SWIG_fail; | |
20587 | if (arg2 == NULL) { | |
20588 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20589 | SWIG_fail; | |
20590 | } | |
20591 | { | |
20592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20593 | { | |
20594 | wxDateTime &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2); | |
20595 | result = (wxDateTime *) &_result_ref; | |
20596 | } | |
20597 | ||
20598 | wxPyEndAllowThreads(__tstate); | |
20599 | if (PyErr_Occurred()) SWIG_fail; | |
20600 | } | |
20601 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
20602 | return resultobj; | |
20603 | fail: | |
20604 | return NULL; | |
20605 | } | |
20606 | ||
20607 | ||
c370783e | 20608 | static PyObject *_wrap_DateTime_SubtractDS(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20609 | PyObject *resultobj; |
20610 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20611 | wxDateSpan *arg2 = 0 ; | |
20612 | wxDateTime *result; | |
20613 | PyObject * obj0 = 0 ; | |
20614 | PyObject * obj1 = 0 ; | |
20615 | char *kwnames[] = { | |
20616 | (char *) "self",(char *) "diff", NULL | |
20617 | }; | |
20618 | ||
20619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractDS",kwnames,&obj0,&obj1)) goto fail; | |
20620 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20621 | SWIG_POINTER_EXCEPTION | 0)) == -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)->Subtract((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, 0); | |
20640 | return resultobj; | |
20641 | fail: | |
20642 | return NULL; | |
20643 | } | |
20644 | ||
20645 | ||
c370783e | 20646 | static PyObject *_wrap_DateTime_Subtract(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20647 | PyObject *resultobj; |
20648 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20649 | wxDateTime *arg2 = 0 ; | |
20650 | wxTimeSpan result; | |
20651 | PyObject * obj0 = 0 ; | |
20652 | PyObject * obj1 = 0 ; | |
20653 | char *kwnames[] = { | |
20654 | (char *) "self",(char *) "dt", NULL | |
20655 | }; | |
20656 | ||
20657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
20658 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20659 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20660 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20661 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20662 | SWIG_fail; | |
20663 | if (arg2 == NULL) { | |
20664 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20665 | SWIG_fail; | |
20666 | } | |
20667 | { | |
20668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20669 | result = ((wxDateTime const *)arg1)->Subtract((wxDateTime const &)*arg2); | |
20670 | ||
20671 | wxPyEndAllowThreads(__tstate); | |
20672 | if (PyErr_Occurred()) SWIG_fail; | |
20673 | } | |
20674 | { | |
20675 | wxTimeSpan * resultptr; | |
20676 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
20677 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
20678 | } | |
20679 | return resultobj; | |
20680 | fail: | |
20681 | return NULL; | |
20682 | } | |
20683 | ||
20684 | ||
c370783e | 20685 | static PyObject *_wrap_DateTime___iadd____SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
20686 | PyObject *resultobj; |
20687 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20688 | wxTimeSpan *arg2 = 0 ; | |
20689 | wxDateTime *result; | |
20690 | PyObject * obj0 = 0 ; | |
20691 | PyObject * obj1 = 0 ; | |
20692 | ||
20693 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail; | |
20694 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
c370783e | 20695 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
20696 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, |
20697 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20698 | SWIG_fail; | |
20699 | if (arg2 == NULL) { | |
20700 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20701 | SWIG_fail; | |
20702 | } | |
20703 | { | |
20704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20705 | { | |
20706 | wxDateTime &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2); | |
20707 | result = (wxDateTime *) &_result_ref; | |
20708 | } | |
20709 | ||
20710 | wxPyEndAllowThreads(__tstate); | |
20711 | if (PyErr_Occurred()) SWIG_fail; | |
20712 | } | |
c370783e | 20713 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d55e5bfc RD |
20714 | return resultobj; |
20715 | fail: | |
20716 | return NULL; | |
20717 | } | |
20718 | ||
20719 | ||
c370783e | 20720 | static PyObject *_wrap_DateTime___iadd____SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
20721 | PyObject *resultobj; |
20722 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20723 | wxDateSpan *arg2 = 0 ; | |
20724 | wxDateTime *result; | |
20725 | PyObject * obj0 = 0 ; | |
20726 | PyObject * obj1 = 0 ; | |
20727 | ||
20728 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail; | |
20729 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
c370783e | 20730 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
20731 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, |
20732 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20733 | SWIG_fail; | |
20734 | if (arg2 == NULL) { | |
20735 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20736 | SWIG_fail; | |
20737 | } | |
20738 | { | |
20739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20740 | { | |
20741 | wxDateTime &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2); | |
20742 | result = (wxDateTime *) &_result_ref; | |
20743 | } | |
20744 | ||
20745 | wxPyEndAllowThreads(__tstate); | |
20746 | if (PyErr_Occurred()) SWIG_fail; | |
20747 | } | |
c370783e | 20748 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d55e5bfc RD |
20749 | return resultobj; |
20750 | fail: | |
20751 | return NULL; | |
20752 | } | |
20753 | ||
20754 | ||
20755 | static PyObject *_wrap_DateTime___iadd__(PyObject *self, PyObject *args) { | |
20756 | int argc; | |
20757 | PyObject *argv[3]; | |
20758 | int ii; | |
20759 | ||
20760 | argc = PyObject_Length(args); | |
20761 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
20762 | argv[ii] = PyTuple_GetItem(args,ii); | |
20763 | } | |
20764 | if (argc == 2) { | |
20765 | int _v; | |
20766 | { | |
20767 | void *ptr; | |
20768 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20769 | _v = 0; | |
20770 | PyErr_Clear(); | |
20771 | } else { | |
20772 | _v = 1; | |
20773 | } | |
20774 | } | |
20775 | if (_v) { | |
20776 | { | |
20777 | void *ptr; | |
20778 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
20779 | _v = 0; | |
20780 | PyErr_Clear(); | |
20781 | } else { | |
20782 | _v = 1; | |
20783 | } | |
20784 | } | |
20785 | if (_v) { | |
20786 | return _wrap_DateTime___iadd____SWIG_0(self,args); | |
20787 | } | |
20788 | } | |
20789 | } | |
20790 | if (argc == 2) { | |
20791 | int _v; | |
20792 | { | |
20793 | void *ptr; | |
20794 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20795 | _v = 0; | |
20796 | PyErr_Clear(); | |
20797 | } else { | |
20798 | _v = 1; | |
20799 | } | |
20800 | } | |
20801 | if (_v) { | |
20802 | { | |
20803 | void *ptr; | |
20804 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
20805 | _v = 0; | |
20806 | PyErr_Clear(); | |
20807 | } else { | |
20808 | _v = 1; | |
20809 | } | |
20810 | } | |
20811 | if (_v) { | |
20812 | return _wrap_DateTime___iadd____SWIG_1(self,args); | |
20813 | } | |
20814 | } | |
20815 | } | |
20816 | ||
20817 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___iadd__'"); | |
20818 | return NULL; | |
20819 | } | |
20820 | ||
20821 | ||
c370783e | 20822 | static PyObject *_wrap_DateTime___isub____SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
20823 | PyObject *resultobj; |
20824 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20825 | wxTimeSpan *arg2 = 0 ; | |
20826 | wxDateTime *result; | |
20827 | PyObject * obj0 = 0 ; | |
20828 | PyObject * obj1 = 0 ; | |
20829 | ||
20830 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail; | |
20831 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
c370783e | 20832 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
20833 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, |
20834 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20835 | SWIG_fail; | |
20836 | if (arg2 == NULL) { | |
20837 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20838 | SWIG_fail; | |
20839 | } | |
20840 | { | |
20841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20842 | { | |
20843 | wxDateTime &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2); | |
20844 | result = (wxDateTime *) &_result_ref; | |
20845 | } | |
20846 | ||
20847 | wxPyEndAllowThreads(__tstate); | |
20848 | if (PyErr_Occurred()) SWIG_fail; | |
20849 | } | |
c370783e | 20850 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d55e5bfc RD |
20851 | return resultobj; |
20852 | fail: | |
20853 | return NULL; | |
20854 | } | |
20855 | ||
20856 | ||
c370783e | 20857 | static PyObject *_wrap_DateTime___isub____SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
20858 | PyObject *resultobj; |
20859 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20860 | wxDateSpan *arg2 = 0 ; | |
20861 | wxDateTime *result; | |
20862 | PyObject * obj0 = 0 ; | |
20863 | PyObject * obj1 = 0 ; | |
20864 | ||
20865 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail; | |
20866 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
c370783e | 20867 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
20868 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, |
20869 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20870 | SWIG_fail; | |
20871 | if (arg2 == NULL) { | |
20872 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20873 | SWIG_fail; | |
20874 | } | |
20875 | { | |
20876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20877 | { | |
20878 | wxDateTime &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2); | |
20879 | result = (wxDateTime *) &_result_ref; | |
20880 | } | |
20881 | ||
20882 | wxPyEndAllowThreads(__tstate); | |
20883 | if (PyErr_Occurred()) SWIG_fail; | |
20884 | } | |
c370783e | 20885 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d55e5bfc RD |
20886 | return resultobj; |
20887 | fail: | |
20888 | return NULL; | |
20889 | } | |
20890 | ||
20891 | ||
20892 | static PyObject *_wrap_DateTime___isub__(PyObject *self, PyObject *args) { | |
20893 | int argc; | |
20894 | PyObject *argv[3]; | |
20895 | int ii; | |
20896 | ||
20897 | argc = PyObject_Length(args); | |
20898 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
20899 | argv[ii] = PyTuple_GetItem(args,ii); | |
20900 | } | |
20901 | if (argc == 2) { | |
20902 | int _v; | |
20903 | { | |
20904 | void *ptr; | |
20905 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20906 | _v = 0; | |
20907 | PyErr_Clear(); | |
20908 | } else { | |
20909 | _v = 1; | |
20910 | } | |
20911 | } | |
20912 | if (_v) { | |
20913 | { | |
20914 | void *ptr; | |
20915 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
20916 | _v = 0; | |
20917 | PyErr_Clear(); | |
20918 | } else { | |
20919 | _v = 1; | |
20920 | } | |
20921 | } | |
20922 | if (_v) { | |
20923 | return _wrap_DateTime___isub____SWIG_0(self,args); | |
20924 | } | |
20925 | } | |
20926 | } | |
20927 | if (argc == 2) { | |
20928 | int _v; | |
20929 | { | |
20930 | void *ptr; | |
20931 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20932 | _v = 0; | |
20933 | PyErr_Clear(); | |
20934 | } else { | |
20935 | _v = 1; | |
20936 | } | |
20937 | } | |
20938 | if (_v) { | |
20939 | { | |
20940 | void *ptr; | |
20941 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
20942 | _v = 0; | |
20943 | PyErr_Clear(); | |
20944 | } else { | |
20945 | _v = 1; | |
20946 | } | |
20947 | } | |
20948 | if (_v) { | |
20949 | return _wrap_DateTime___isub____SWIG_1(self,args); | |
20950 | } | |
20951 | } | |
20952 | } | |
20953 | ||
20954 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___isub__'"); | |
20955 | return NULL; | |
20956 | } | |
20957 | ||
20958 | ||
c370783e | 20959 | static PyObject *_wrap_DateTime___add____SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
20960 | PyObject *resultobj; |
20961 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20962 | wxTimeSpan *arg2 = 0 ; | |
20963 | wxDateTime result; | |
20964 | PyObject * obj0 = 0 ; | |
20965 | PyObject * obj1 = 0 ; | |
20966 | ||
20967 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail; | |
20968 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20970 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
20971 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20972 | SWIG_fail; | |
20973 | if (arg2 == NULL) { | |
20974 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20975 | SWIG_fail; | |
20976 | } | |
20977 | { | |
20978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20979 | result = wxDateTime___add____SWIG_0(arg1,(wxTimeSpan const &)*arg2); | |
20980 | ||
20981 | wxPyEndAllowThreads(__tstate); | |
20982 | if (PyErr_Occurred()) SWIG_fail; | |
20983 | } | |
20984 | { | |
20985 | wxDateTime * resultptr; | |
20986 | resultptr = new wxDateTime((wxDateTime &) result); | |
20987 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
20988 | } | |
20989 | return resultobj; | |
20990 | fail: | |
20991 | return NULL; | |
20992 | } | |
20993 | ||
20994 | ||
c370783e | 20995 | static PyObject *_wrap_DateTime___add____SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
20996 | PyObject *resultobj; |
20997 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20998 | wxDateSpan *arg2 = 0 ; | |
20999 | wxDateTime result; | |
21000 | PyObject * obj0 = 0 ; | |
21001 | PyObject * obj1 = 0 ; | |
21002 | ||
21003 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail; | |
21004 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21005 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21006 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
21007 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21008 | SWIG_fail; | |
21009 | if (arg2 == NULL) { | |
21010 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21011 | SWIG_fail; | |
21012 | } | |
21013 | { | |
21014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21015 | result = wxDateTime___add____SWIG_1(arg1,(wxDateSpan const &)*arg2); | |
21016 | ||
21017 | wxPyEndAllowThreads(__tstate); | |
21018 | if (PyErr_Occurred()) SWIG_fail; | |
21019 | } | |
21020 | { | |
21021 | wxDateTime * resultptr; | |
21022 | resultptr = new wxDateTime((wxDateTime &) result); | |
21023 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
21024 | } | |
21025 | return resultobj; | |
21026 | fail: | |
21027 | return NULL; | |
21028 | } | |
21029 | ||
21030 | ||
21031 | static PyObject *_wrap_DateTime___add__(PyObject *self, PyObject *args) { | |
21032 | int argc; | |
21033 | PyObject *argv[3]; | |
21034 | int ii; | |
21035 | ||
21036 | argc = PyObject_Length(args); | |
21037 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
21038 | argv[ii] = PyTuple_GetItem(args,ii); | |
21039 | } | |
21040 | if (argc == 2) { | |
21041 | int _v; | |
21042 | { | |
21043 | void *ptr; | |
21044 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
21045 | _v = 0; | |
21046 | PyErr_Clear(); | |
21047 | } else { | |
21048 | _v = 1; | |
21049 | } | |
21050 | } | |
21051 | if (_v) { | |
21052 | { | |
21053 | void *ptr; | |
21054 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
21055 | _v = 0; | |
21056 | PyErr_Clear(); | |
21057 | } else { | |
21058 | _v = 1; | |
21059 | } | |
21060 | } | |
21061 | if (_v) { | |
21062 | return _wrap_DateTime___add____SWIG_0(self,args); | |
21063 | } | |
21064 | } | |
21065 | } | |
21066 | if (argc == 2) { | |
21067 | int _v; | |
21068 | { | |
21069 | void *ptr; | |
21070 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
21071 | _v = 0; | |
21072 | PyErr_Clear(); | |
21073 | } else { | |
21074 | _v = 1; | |
21075 | } | |
21076 | } | |
21077 | if (_v) { | |
21078 | { | |
21079 | void *ptr; | |
21080 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
21081 | _v = 0; | |
21082 | PyErr_Clear(); | |
21083 | } else { | |
21084 | _v = 1; | |
21085 | } | |
21086 | } | |
21087 | if (_v) { | |
21088 | return _wrap_DateTime___add____SWIG_1(self,args); | |
21089 | } | |
21090 | } | |
21091 | } | |
21092 | ||
21093 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___add__'"); | |
21094 | return NULL; | |
21095 | } | |
21096 | ||
21097 | ||
c370783e | 21098 | static PyObject *_wrap_DateTime___sub____SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
21099 | PyObject *resultobj; |
21100 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21101 | wxDateTime *arg2 = 0 ; | |
21102 | wxTimeSpan result; | |
21103 | PyObject * obj0 = 0 ; | |
21104 | PyObject * obj1 = 0 ; | |
21105 | ||
21106 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
21107 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21108 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21109 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
21110 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21111 | SWIG_fail; | |
21112 | if (arg2 == NULL) { | |
21113 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21114 | SWIG_fail; | |
21115 | } | |
21116 | { | |
21117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21118 | result = wxDateTime___sub____SWIG_0(arg1,(wxDateTime const &)*arg2); | |
21119 | ||
21120 | wxPyEndAllowThreads(__tstate); | |
21121 | if (PyErr_Occurred()) SWIG_fail; | |
21122 | } | |
21123 | { | |
21124 | wxTimeSpan * resultptr; | |
21125 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21126 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21127 | } | |
21128 | return resultobj; | |
21129 | fail: | |
21130 | return NULL; | |
21131 | } | |
21132 | ||
21133 | ||
c370783e | 21134 | static PyObject *_wrap_DateTime___sub____SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
21135 | PyObject *resultobj; |
21136 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21137 | wxTimeSpan *arg2 = 0 ; | |
21138 | wxDateTime result; | |
21139 | PyObject * obj0 = 0 ; | |
21140 | PyObject * obj1 = 0 ; | |
21141 | ||
21142 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
21143 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21144 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21145 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21146 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21147 | SWIG_fail; | |
21148 | if (arg2 == NULL) { | |
21149 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21150 | SWIG_fail; | |
21151 | } | |
21152 | { | |
21153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21154 | result = wxDateTime___sub____SWIG_1(arg1,(wxTimeSpan const &)*arg2); | |
21155 | ||
21156 | wxPyEndAllowThreads(__tstate); | |
21157 | if (PyErr_Occurred()) SWIG_fail; | |
21158 | } | |
21159 | { | |
21160 | wxDateTime * resultptr; | |
21161 | resultptr = new wxDateTime((wxDateTime &) result); | |
21162 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
21163 | } | |
21164 | return resultobj; | |
21165 | fail: | |
21166 | return NULL; | |
21167 | } | |
21168 | ||
21169 | ||
c370783e | 21170 | static PyObject *_wrap_DateTime___sub____SWIG_2(PyObject *, PyObject *args) { |
d55e5bfc RD |
21171 | PyObject *resultobj; |
21172 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21173 | wxDateSpan *arg2 = 0 ; | |
21174 | wxDateTime result; | |
21175 | PyObject * obj0 = 0 ; | |
21176 | PyObject * obj1 = 0 ; | |
21177 | ||
21178 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
21179 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21180 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21181 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
21182 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21183 | SWIG_fail; | |
21184 | if (arg2 == NULL) { | |
21185 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21186 | SWIG_fail; | |
21187 | } | |
21188 | { | |
21189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21190 | result = wxDateTime___sub____SWIG_2(arg1,(wxDateSpan const &)*arg2); | |
21191 | ||
21192 | wxPyEndAllowThreads(__tstate); | |
21193 | if (PyErr_Occurred()) SWIG_fail; | |
21194 | } | |
21195 | { | |
21196 | wxDateTime * resultptr; | |
21197 | resultptr = new wxDateTime((wxDateTime &) result); | |
21198 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
21199 | } | |
21200 | return resultobj; | |
21201 | fail: | |
21202 | return NULL; | |
21203 | } | |
21204 | ||
21205 | ||
21206 | static PyObject *_wrap_DateTime___sub__(PyObject *self, PyObject *args) { | |
21207 | int argc; | |
21208 | PyObject *argv[3]; | |
21209 | int ii; | |
21210 | ||
21211 | argc = PyObject_Length(args); | |
21212 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
21213 | argv[ii] = PyTuple_GetItem(args,ii); | |
21214 | } | |
21215 | if (argc == 2) { | |
21216 | int _v; | |
21217 | { | |
21218 | void *ptr; | |
21219 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
21220 | _v = 0; | |
21221 | PyErr_Clear(); | |
21222 | } else { | |
21223 | _v = 1; | |
21224 | } | |
21225 | } | |
21226 | if (_v) { | |
21227 | { | |
21228 | void *ptr; | |
21229 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
21230 | _v = 0; | |
21231 | PyErr_Clear(); | |
21232 | } else { | |
21233 | _v = 1; | |
21234 | } | |
21235 | } | |
21236 | if (_v) { | |
21237 | return _wrap_DateTime___sub____SWIG_0(self,args); | |
21238 | } | |
21239 | } | |
21240 | } | |
21241 | if (argc == 2) { | |
21242 | int _v; | |
21243 | { | |
21244 | void *ptr; | |
21245 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
21246 | _v = 0; | |
21247 | PyErr_Clear(); | |
21248 | } else { | |
21249 | _v = 1; | |
21250 | } | |
21251 | } | |
21252 | if (_v) { | |
21253 | { | |
21254 | void *ptr; | |
21255 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
21256 | _v = 0; | |
21257 | PyErr_Clear(); | |
21258 | } else { | |
21259 | _v = 1; | |
21260 | } | |
21261 | } | |
21262 | if (_v) { | |
21263 | return _wrap_DateTime___sub____SWIG_1(self,args); | |
21264 | } | |
21265 | } | |
21266 | } | |
21267 | if (argc == 2) { | |
21268 | int _v; | |
21269 | { | |
21270 | void *ptr; | |
21271 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
21272 | _v = 0; | |
21273 | PyErr_Clear(); | |
21274 | } else { | |
21275 | _v = 1; | |
21276 | } | |
21277 | } | |
21278 | if (_v) { | |
21279 | { | |
21280 | void *ptr; | |
21281 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
21282 | _v = 0; | |
21283 | PyErr_Clear(); | |
21284 | } else { | |
21285 | _v = 1; | |
21286 | } | |
21287 | } | |
21288 | if (_v) { | |
21289 | return _wrap_DateTime___sub____SWIG_2(self,args); | |
21290 | } | |
21291 | } | |
21292 | } | |
21293 | ||
21294 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___sub__'"); | |
21295 | return NULL; | |
21296 | } | |
21297 | ||
21298 | ||
c370783e | 21299 | static PyObject *_wrap_DateTime___lt__(PyObject *, PyObject *args) { |
d55e5bfc RD |
21300 | PyObject *resultobj; |
21301 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21302 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
21303 | bool result; | |
21304 | PyObject * obj0 = 0 ; | |
21305 | PyObject * obj1 = 0 ; | |
21306 | ||
21307 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___lt__",&obj0,&obj1)) goto fail; | |
21308 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21309 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21310 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
21311 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21312 | { | |
21313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21314 | result = (bool)wxDateTime___lt__(arg1,(wxDateTime const *)arg2); | |
21315 | ||
21316 | wxPyEndAllowThreads(__tstate); | |
21317 | if (PyErr_Occurred()) SWIG_fail; | |
21318 | } | |
21319 | { | |
21320 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21321 | } | |
21322 | return resultobj; | |
21323 | fail: | |
21324 | return NULL; | |
21325 | } | |
21326 | ||
21327 | ||
c370783e | 21328 | static PyObject *_wrap_DateTime___le__(PyObject *, PyObject *args) { |
d55e5bfc RD |
21329 | PyObject *resultobj; |
21330 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21331 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
21332 | bool result; | |
21333 | PyObject * obj0 = 0 ; | |
21334 | PyObject * obj1 = 0 ; | |
21335 | ||
21336 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___le__",&obj0,&obj1)) goto fail; | |
21337 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21338 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21339 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
21340 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21341 | { | |
21342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21343 | result = (bool)wxDateTime___le__(arg1,(wxDateTime const *)arg2); | |
21344 | ||
21345 | wxPyEndAllowThreads(__tstate); | |
21346 | if (PyErr_Occurred()) SWIG_fail; | |
21347 | } | |
21348 | { | |
21349 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21350 | } | |
21351 | return resultobj; | |
21352 | fail: | |
21353 | return NULL; | |
21354 | } | |
21355 | ||
21356 | ||
c370783e | 21357 | static PyObject *_wrap_DateTime___gt__(PyObject *, PyObject *args) { |
d55e5bfc RD |
21358 | PyObject *resultobj; |
21359 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21360 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
21361 | bool result; | |
21362 | PyObject * obj0 = 0 ; | |
21363 | PyObject * obj1 = 0 ; | |
21364 | ||
21365 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___gt__",&obj0,&obj1)) goto fail; | |
21366 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21367 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21368 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
21369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21370 | { | |
21371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21372 | result = (bool)wxDateTime___gt__(arg1,(wxDateTime const *)arg2); | |
21373 | ||
21374 | wxPyEndAllowThreads(__tstate); | |
21375 | if (PyErr_Occurred()) SWIG_fail; | |
21376 | } | |
21377 | { | |
21378 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21379 | } | |
21380 | return resultobj; | |
21381 | fail: | |
21382 | return NULL; | |
21383 | } | |
21384 | ||
21385 | ||
c370783e | 21386 | static PyObject *_wrap_DateTime___ge__(PyObject *, PyObject *args) { |
d55e5bfc RD |
21387 | PyObject *resultobj; |
21388 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21389 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
21390 | bool result; | |
21391 | PyObject * obj0 = 0 ; | |
21392 | PyObject * obj1 = 0 ; | |
21393 | ||
21394 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ge__",&obj0,&obj1)) goto fail; | |
21395 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21396 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21397 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
21398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21399 | { | |
21400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21401 | result = (bool)wxDateTime___ge__(arg1,(wxDateTime const *)arg2); | |
21402 | ||
21403 | wxPyEndAllowThreads(__tstate); | |
21404 | if (PyErr_Occurred()) SWIG_fail; | |
21405 | } | |
21406 | { | |
21407 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21408 | } | |
21409 | return resultobj; | |
21410 | fail: | |
21411 | return NULL; | |
21412 | } | |
21413 | ||
21414 | ||
c370783e | 21415 | static PyObject *_wrap_DateTime___eq__(PyObject *, PyObject *args) { |
d55e5bfc RD |
21416 | PyObject *resultobj; |
21417 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21418 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
21419 | bool result; | |
21420 | PyObject * obj0 = 0 ; | |
21421 | PyObject * obj1 = 0 ; | |
21422 | ||
21423 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___eq__",&obj0,&obj1)) goto fail; | |
21424 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21426 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
21427 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21428 | { | |
21429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21430 | result = (bool)wxDateTime___eq__(arg1,(wxDateTime const *)arg2); | |
21431 | ||
21432 | wxPyEndAllowThreads(__tstate); | |
21433 | if (PyErr_Occurred()) SWIG_fail; | |
21434 | } | |
21435 | { | |
21436 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21437 | } | |
21438 | return resultobj; | |
21439 | fail: | |
21440 | return NULL; | |
21441 | } | |
21442 | ||
21443 | ||
c370783e | 21444 | static PyObject *_wrap_DateTime___ne__(PyObject *, PyObject *args) { |
d55e5bfc RD |
21445 | PyObject *resultobj; |
21446 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21447 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
21448 | bool result; | |
21449 | PyObject * obj0 = 0 ; | |
21450 | PyObject * obj1 = 0 ; | |
21451 | ||
21452 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ne__",&obj0,&obj1)) goto fail; | |
21453 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21454 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21455 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
21456 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21457 | { | |
21458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21459 | result = (bool)wxDateTime___ne__(arg1,(wxDateTime const *)arg2); | |
21460 | ||
21461 | wxPyEndAllowThreads(__tstate); | |
21462 | if (PyErr_Occurred()) SWIG_fail; | |
21463 | } | |
21464 | { | |
21465 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21466 | } | |
21467 | return resultobj; | |
21468 | fail: | |
21469 | return NULL; | |
21470 | } | |
21471 | ||
21472 | ||
c370783e | 21473 | static PyObject *_wrap_DateTime_ParseRfc822Date(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21474 | PyObject *resultobj; |
21475 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21476 | wxString *arg2 = 0 ; | |
21477 | int result; | |
b411df4a | 21478 | bool temp2 = false ; |
d55e5bfc RD |
21479 | PyObject * obj0 = 0 ; |
21480 | PyObject * obj1 = 0 ; | |
21481 | char *kwnames[] = { | |
21482 | (char *) "self",(char *) "date", NULL | |
21483 | }; | |
21484 | ||
21485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseRfc822Date",kwnames,&obj0,&obj1)) goto fail; | |
21486 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21488 | { | |
21489 | arg2 = wxString_in_helper(obj1); | |
21490 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 21491 | temp2 = true; |
d55e5bfc RD |
21492 | } |
21493 | { | |
21494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21495 | result = (int)wxDateTime_ParseRfc822Date(arg1,(wxString const &)*arg2); | |
21496 | ||
21497 | wxPyEndAllowThreads(__tstate); | |
21498 | if (PyErr_Occurred()) SWIG_fail; | |
21499 | } | |
c370783e | 21500 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
21501 | { |
21502 | if (temp2) | |
21503 | delete arg2; | |
21504 | } | |
21505 | return resultobj; | |
21506 | fail: | |
21507 | { | |
21508 | if (temp2) | |
21509 | delete arg2; | |
21510 | } | |
21511 | return NULL; | |
21512 | } | |
21513 | ||
21514 | ||
c370783e | 21515 | static PyObject *_wrap_DateTime_ParseFormat(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21516 | PyObject *resultobj; |
21517 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21518 | wxString *arg2 = 0 ; | |
21519 | wxString const &arg3_defvalue = wxPyDateFormatStr ; | |
21520 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
21521 | wxDateTime const &arg4_defvalue = wxDefaultDateTime ; | |
21522 | wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ; | |
21523 | int result; | |
b411df4a RD |
21524 | bool temp2 = false ; |
21525 | bool temp3 = false ; | |
d55e5bfc RD |
21526 | PyObject * obj0 = 0 ; |
21527 | PyObject * obj1 = 0 ; | |
21528 | PyObject * obj2 = 0 ; | |
21529 | PyObject * obj3 = 0 ; | |
21530 | char *kwnames[] = { | |
21531 | (char *) "self",(char *) "date",(char *) "format",(char *) "dateDef", NULL | |
21532 | }; | |
21533 | ||
21534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_ParseFormat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
21535 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21536 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21537 | { | |
21538 | arg2 = wxString_in_helper(obj1); | |
21539 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 21540 | temp2 = true; |
d55e5bfc RD |
21541 | } |
21542 | if (obj2) { | |
21543 | { | |
21544 | arg3 = wxString_in_helper(obj2); | |
21545 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 21546 | temp3 = true; |
d55e5bfc RD |
21547 | } |
21548 | } | |
21549 | if (obj3) { | |
21550 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDateTime, | |
21551 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21552 | SWIG_fail; | |
21553 | if (arg4 == NULL) { | |
21554 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21555 | SWIG_fail; | |
21556 | } | |
21557 | } | |
21558 | { | |
21559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21560 | result = (int)wxDateTime_ParseFormat(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxDateTime const &)*arg4); | |
21561 | ||
21562 | wxPyEndAllowThreads(__tstate); | |
21563 | if (PyErr_Occurred()) SWIG_fail; | |
21564 | } | |
c370783e | 21565 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
21566 | { |
21567 | if (temp2) | |
21568 | delete arg2; | |
21569 | } | |
21570 | { | |
21571 | if (temp3) | |
21572 | delete arg3; | |
21573 | } | |
21574 | return resultobj; | |
21575 | fail: | |
21576 | { | |
21577 | if (temp2) | |
21578 | delete arg2; | |
21579 | } | |
21580 | { | |
21581 | if (temp3) | |
21582 | delete arg3; | |
21583 | } | |
21584 | return NULL; | |
21585 | } | |
21586 | ||
21587 | ||
c370783e | 21588 | static PyObject *_wrap_DateTime_ParseDateTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21589 | PyObject *resultobj; |
21590 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21591 | wxString *arg2 = 0 ; | |
21592 | int result; | |
b411df4a | 21593 | bool temp2 = false ; |
d55e5bfc RD |
21594 | PyObject * obj0 = 0 ; |
21595 | PyObject * obj1 = 0 ; | |
21596 | char *kwnames[] = { | |
21597 | (char *) "self",(char *) "datetime", NULL | |
21598 | }; | |
21599 | ||
21600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDateTime",kwnames,&obj0,&obj1)) goto fail; | |
21601 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21602 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21603 | { | |
21604 | arg2 = wxString_in_helper(obj1); | |
21605 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 21606 | temp2 = true; |
d55e5bfc RD |
21607 | } |
21608 | { | |
21609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21610 | result = (int)wxDateTime_ParseDateTime(arg1,(wxString const &)*arg2); | |
21611 | ||
21612 | wxPyEndAllowThreads(__tstate); | |
21613 | if (PyErr_Occurred()) SWIG_fail; | |
21614 | } | |
c370783e | 21615 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
21616 | { |
21617 | if (temp2) | |
21618 | delete arg2; | |
21619 | } | |
21620 | return resultobj; | |
21621 | fail: | |
21622 | { | |
21623 | if (temp2) | |
21624 | delete arg2; | |
21625 | } | |
21626 | return NULL; | |
21627 | } | |
21628 | ||
21629 | ||
c370783e | 21630 | static PyObject *_wrap_DateTime_ParseDate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21631 | PyObject *resultobj; |
21632 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21633 | wxString *arg2 = 0 ; | |
21634 | int result; | |
b411df4a | 21635 | bool temp2 = false ; |
d55e5bfc RD |
21636 | PyObject * obj0 = 0 ; |
21637 | PyObject * obj1 = 0 ; | |
21638 | char *kwnames[] = { | |
21639 | (char *) "self",(char *) "date", NULL | |
21640 | }; | |
21641 | ||
21642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDate",kwnames,&obj0,&obj1)) goto fail; | |
21643 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21644 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21645 | { | |
21646 | arg2 = wxString_in_helper(obj1); | |
21647 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 21648 | temp2 = true; |
d55e5bfc RD |
21649 | } |
21650 | { | |
21651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21652 | result = (int)wxDateTime_ParseDate(arg1,(wxString const &)*arg2); | |
21653 | ||
21654 | wxPyEndAllowThreads(__tstate); | |
21655 | if (PyErr_Occurred()) SWIG_fail; | |
21656 | } | |
c370783e | 21657 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
21658 | { |
21659 | if (temp2) | |
21660 | delete arg2; | |
21661 | } | |
21662 | return resultobj; | |
21663 | fail: | |
21664 | { | |
21665 | if (temp2) | |
21666 | delete arg2; | |
21667 | } | |
21668 | return NULL; | |
21669 | } | |
21670 | ||
21671 | ||
c370783e | 21672 | static PyObject *_wrap_DateTime_ParseTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21673 | PyObject *resultobj; |
21674 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21675 | wxString *arg2 = 0 ; | |
21676 | int result; | |
b411df4a | 21677 | bool temp2 = false ; |
d55e5bfc RD |
21678 | PyObject * obj0 = 0 ; |
21679 | PyObject * obj1 = 0 ; | |
21680 | char *kwnames[] = { | |
21681 | (char *) "self",(char *) "time", NULL | |
21682 | }; | |
21683 | ||
21684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseTime",kwnames,&obj0,&obj1)) goto fail; | |
21685 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21686 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21687 | { | |
21688 | arg2 = wxString_in_helper(obj1); | |
21689 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 21690 | temp2 = true; |
d55e5bfc RD |
21691 | } |
21692 | { | |
21693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21694 | result = (int)wxDateTime_ParseTime(arg1,(wxString const &)*arg2); | |
21695 | ||
21696 | wxPyEndAllowThreads(__tstate); | |
21697 | if (PyErr_Occurred()) SWIG_fail; | |
21698 | } | |
c370783e | 21699 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
21700 | { |
21701 | if (temp2) | |
21702 | delete arg2; | |
21703 | } | |
21704 | return resultobj; | |
21705 | fail: | |
21706 | { | |
21707 | if (temp2) | |
21708 | delete arg2; | |
21709 | } | |
21710 | return NULL; | |
21711 | } | |
21712 | ||
21713 | ||
c370783e | 21714 | static PyObject *_wrap_DateTime_Format(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21715 | PyObject *resultobj; |
21716 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21717 | wxString const &arg2_defvalue = wxPyDateFormatStr ; | |
21718 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
21719 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
21720 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
21721 | wxString result; | |
b411df4a RD |
21722 | bool temp2 = false ; |
21723 | bool temp3 = false ; | |
d55e5bfc RD |
21724 | PyObject * obj0 = 0 ; |
21725 | PyObject * obj1 = 0 ; | |
21726 | PyObject * obj2 = 0 ; | |
21727 | char *kwnames[] = { | |
21728 | (char *) "self",(char *) "format",(char *) "tz", NULL | |
21729 | }; | |
21730 | ||
21731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_Format",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21734 | if (obj1) { | |
21735 | { | |
21736 | arg2 = wxString_in_helper(obj1); | |
21737 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 21738 | temp2 = true; |
d55e5bfc RD |
21739 | } |
21740 | } | |
21741 | if (obj2) { | |
21742 | { | |
21743 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
b411df4a | 21744 | temp3 = true; |
d55e5bfc RD |
21745 | } |
21746 | } | |
21747 | { | |
21748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21749 | result = ((wxDateTime const *)arg1)->Format((wxString const &)*arg2,(wxDateTime::TimeZone const &)*arg3); | |
21750 | ||
21751 | wxPyEndAllowThreads(__tstate); | |
21752 | if (PyErr_Occurred()) SWIG_fail; | |
21753 | } | |
21754 | { | |
21755 | #if wxUSE_UNICODE | |
21756 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21757 | #else | |
21758 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21759 | #endif | |
21760 | } | |
21761 | { | |
21762 | if (temp2) | |
21763 | delete arg2; | |
21764 | } | |
21765 | { | |
21766 | if (temp3) delete arg3; | |
21767 | } | |
21768 | return resultobj; | |
21769 | fail: | |
21770 | { | |
21771 | if (temp2) | |
21772 | delete arg2; | |
21773 | } | |
21774 | { | |
21775 | if (temp3) delete arg3; | |
21776 | } | |
21777 | return NULL; | |
21778 | } | |
21779 | ||
21780 | ||
c370783e | 21781 | static PyObject *_wrap_DateTime_FormatDate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21782 | PyObject *resultobj; |
21783 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21784 | wxString result; | |
21785 | PyObject * obj0 = 0 ; | |
21786 | char *kwnames[] = { | |
21787 | (char *) "self", NULL | |
21788 | }; | |
21789 | ||
21790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatDate",kwnames,&obj0)) goto fail; | |
21791 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21792 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21793 | { | |
21794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21795 | result = ((wxDateTime const *)arg1)->FormatDate(); | |
21796 | ||
21797 | wxPyEndAllowThreads(__tstate); | |
21798 | if (PyErr_Occurred()) SWIG_fail; | |
21799 | } | |
21800 | { | |
21801 | #if wxUSE_UNICODE | |
21802 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21803 | #else | |
21804 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21805 | #endif | |
21806 | } | |
21807 | return resultobj; | |
21808 | fail: | |
21809 | return NULL; | |
21810 | } | |
21811 | ||
21812 | ||
c370783e | 21813 | static PyObject *_wrap_DateTime_FormatTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21814 | PyObject *resultobj; |
21815 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21816 | wxString result; | |
21817 | PyObject * obj0 = 0 ; | |
21818 | char *kwnames[] = { | |
21819 | (char *) "self", NULL | |
21820 | }; | |
21821 | ||
21822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatTime",kwnames,&obj0)) goto fail; | |
21823 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21824 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21825 | { | |
21826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21827 | result = ((wxDateTime const *)arg1)->FormatTime(); | |
21828 | ||
21829 | wxPyEndAllowThreads(__tstate); | |
21830 | if (PyErr_Occurred()) SWIG_fail; | |
21831 | } | |
21832 | { | |
21833 | #if wxUSE_UNICODE | |
21834 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21835 | #else | |
21836 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21837 | #endif | |
21838 | } | |
21839 | return resultobj; | |
21840 | fail: | |
21841 | return NULL; | |
21842 | } | |
21843 | ||
21844 | ||
c370783e | 21845 | static PyObject *_wrap_DateTime_FormatISODate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21846 | PyObject *resultobj; |
21847 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21848 | wxString result; | |
21849 | PyObject * obj0 = 0 ; | |
21850 | char *kwnames[] = { | |
21851 | (char *) "self", NULL | |
21852 | }; | |
21853 | ||
21854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISODate",kwnames,&obj0)) goto fail; | |
21855 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21856 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21857 | { | |
21858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21859 | result = ((wxDateTime const *)arg1)->FormatISODate(); | |
21860 | ||
21861 | wxPyEndAllowThreads(__tstate); | |
21862 | if (PyErr_Occurred()) SWIG_fail; | |
21863 | } | |
21864 | { | |
21865 | #if wxUSE_UNICODE | |
21866 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21867 | #else | |
21868 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21869 | #endif | |
21870 | } | |
21871 | return resultobj; | |
21872 | fail: | |
21873 | return NULL; | |
21874 | } | |
21875 | ||
21876 | ||
c370783e | 21877 | static PyObject *_wrap_DateTime_FormatISOTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21878 | PyObject *resultobj; |
21879 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21880 | wxString result; | |
21881 | PyObject * obj0 = 0 ; | |
21882 | char *kwnames[] = { | |
21883 | (char *) "self", NULL | |
21884 | }; | |
21885 | ||
21886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISOTime",kwnames,&obj0)) goto fail; | |
21887 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21888 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21889 | { | |
21890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21891 | result = ((wxDateTime const *)arg1)->FormatISOTime(); | |
21892 | ||
21893 | wxPyEndAllowThreads(__tstate); | |
21894 | if (PyErr_Occurred()) SWIG_fail; | |
21895 | } | |
21896 | { | |
21897 | #if wxUSE_UNICODE | |
21898 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21899 | #else | |
21900 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21901 | #endif | |
21902 | } | |
21903 | return resultobj; | |
21904 | fail: | |
21905 | return NULL; | |
21906 | } | |
21907 | ||
21908 | ||
c370783e | 21909 | static PyObject * DateTime_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
21910 | PyObject *obj; |
21911 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21912 | SWIG_TypeClientData(SWIGTYPE_p_wxDateTime, obj); | |
21913 | Py_INCREF(obj); | |
21914 | return Py_BuildValue((char *)""); | |
21915 | } | |
c370783e | 21916 | static PyObject *_wrap_TimeSpan_Seconds(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21917 | PyObject *resultobj; |
21918 | long arg1 ; | |
21919 | wxTimeSpan result; | |
21920 | PyObject * obj0 = 0 ; | |
21921 | char *kwnames[] = { | |
21922 | (char *) "sec", NULL | |
21923 | }; | |
21924 | ||
21925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Seconds",kwnames,&obj0)) goto fail; | |
c370783e | 21926 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
21927 | if (PyErr_Occurred()) SWIG_fail; |
21928 | { | |
21929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21930 | result = wxTimeSpan::Seconds(arg1); | |
21931 | ||
21932 | wxPyEndAllowThreads(__tstate); | |
21933 | if (PyErr_Occurred()) SWIG_fail; | |
21934 | } | |
21935 | { | |
21936 | wxTimeSpan * resultptr; | |
21937 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21938 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21939 | } | |
21940 | return resultobj; | |
21941 | fail: | |
21942 | return NULL; | |
21943 | } | |
21944 | ||
21945 | ||
c370783e | 21946 | static PyObject *_wrap_TimeSpan_Second(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21947 | PyObject *resultobj; |
21948 | wxTimeSpan result; | |
21949 | char *kwnames[] = { | |
21950 | NULL | |
21951 | }; | |
21952 | ||
21953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Second",kwnames)) goto fail; | |
21954 | { | |
21955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21956 | result = wxTimeSpan::Second(); | |
21957 | ||
21958 | wxPyEndAllowThreads(__tstate); | |
21959 | if (PyErr_Occurred()) SWIG_fail; | |
21960 | } | |
21961 | { | |
21962 | wxTimeSpan * resultptr; | |
21963 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21964 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21965 | } | |
21966 | return resultobj; | |
21967 | fail: | |
21968 | return NULL; | |
21969 | } | |
21970 | ||
21971 | ||
c370783e | 21972 | static PyObject *_wrap_TimeSpan_Minutes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21973 | PyObject *resultobj; |
21974 | long arg1 ; | |
21975 | wxTimeSpan result; | |
21976 | PyObject * obj0 = 0 ; | |
21977 | char *kwnames[] = { | |
21978 | (char *) "min", NULL | |
21979 | }; | |
21980 | ||
21981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Minutes",kwnames,&obj0)) goto fail; | |
c370783e | 21982 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
21983 | if (PyErr_Occurred()) SWIG_fail; |
21984 | { | |
21985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21986 | result = wxTimeSpan::Minutes(arg1); | |
21987 | ||
21988 | wxPyEndAllowThreads(__tstate); | |
21989 | if (PyErr_Occurred()) SWIG_fail; | |
21990 | } | |
21991 | { | |
21992 | wxTimeSpan * resultptr; | |
21993 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21994 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21995 | } | |
21996 | return resultobj; | |
21997 | fail: | |
21998 | return NULL; | |
21999 | } | |
22000 | ||
22001 | ||
c370783e | 22002 | static PyObject *_wrap_TimeSpan_Minute(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22003 | PyObject *resultobj; |
22004 | wxTimeSpan result; | |
22005 | char *kwnames[] = { | |
22006 | NULL | |
22007 | }; | |
22008 | ||
22009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Minute",kwnames)) goto fail; | |
22010 | { | |
22011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22012 | result = wxTimeSpan::Minute(); | |
22013 | ||
22014 | wxPyEndAllowThreads(__tstate); | |
22015 | if (PyErr_Occurred()) SWIG_fail; | |
22016 | } | |
22017 | { | |
22018 | wxTimeSpan * resultptr; | |
22019 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
22020 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
22021 | } | |
22022 | return resultobj; | |
22023 | fail: | |
22024 | return NULL; | |
22025 | } | |
22026 | ||
22027 | ||
c370783e | 22028 | static PyObject *_wrap_TimeSpan_Hours(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22029 | PyObject *resultobj; |
22030 | long arg1 ; | |
22031 | wxTimeSpan result; | |
22032 | PyObject * obj0 = 0 ; | |
22033 | char *kwnames[] = { | |
22034 | (char *) "hours", NULL | |
22035 | }; | |
22036 | ||
22037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Hours",kwnames,&obj0)) goto fail; | |
c370783e | 22038 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
22039 | if (PyErr_Occurred()) SWIG_fail; |
22040 | { | |
22041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22042 | result = wxTimeSpan::Hours(arg1); | |
22043 | ||
22044 | wxPyEndAllowThreads(__tstate); | |
22045 | if (PyErr_Occurred()) SWIG_fail; | |
22046 | } | |
22047 | { | |
22048 | wxTimeSpan * resultptr; | |
22049 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
22050 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
22051 | } | |
22052 | return resultobj; | |
22053 | fail: | |
22054 | return NULL; | |
22055 | } | |
22056 | ||
22057 | ||
c370783e | 22058 | static PyObject *_wrap_TimeSpan_Hour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22059 | PyObject *resultobj; |
22060 | wxTimeSpan result; | |
22061 | char *kwnames[] = { | |
22062 | NULL | |
22063 | }; | |
22064 | ||
22065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Hour",kwnames)) goto fail; | |
22066 | { | |
22067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22068 | result = wxTimeSpan::Hour(); | |
22069 | ||
22070 | wxPyEndAllowThreads(__tstate); | |
22071 | if (PyErr_Occurred()) SWIG_fail; | |
22072 | } | |
22073 | { | |
22074 | wxTimeSpan * resultptr; | |
22075 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
22076 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
22077 | } | |
22078 | return resultobj; | |
22079 | fail: | |
22080 | return NULL; | |
22081 | } | |
22082 | ||
22083 | ||
c370783e | 22084 | static PyObject *_wrap_TimeSpan_Days(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22085 | PyObject *resultobj; |
22086 | long arg1 ; | |
22087 | wxTimeSpan result; | |
22088 | PyObject * obj0 = 0 ; | |
22089 | char *kwnames[] = { | |
22090 | (char *) "days", NULL | |
22091 | }; | |
22092 | ||
22093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Days",kwnames,&obj0)) goto fail; | |
c370783e | 22094 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
22095 | if (PyErr_Occurred()) SWIG_fail; |
22096 | { | |
22097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22098 | result = wxTimeSpan::Days(arg1); | |
22099 | ||
22100 | wxPyEndAllowThreads(__tstate); | |
22101 | if (PyErr_Occurred()) SWIG_fail; | |
22102 | } | |
22103 | { | |
22104 | wxTimeSpan * resultptr; | |
22105 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
22106 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
22107 | } | |
22108 | return resultobj; | |
22109 | fail: | |
22110 | return NULL; | |
22111 | } | |
22112 | ||
22113 | ||
c370783e | 22114 | static PyObject *_wrap_TimeSpan_Day(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22115 | PyObject *resultobj; |
22116 | wxTimeSpan result; | |
22117 | char *kwnames[] = { | |
22118 | NULL | |
22119 | }; | |
22120 | ||
22121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Day",kwnames)) goto fail; | |
22122 | { | |
22123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22124 | result = wxTimeSpan::Day(); | |
22125 | ||
22126 | wxPyEndAllowThreads(__tstate); | |
22127 | if (PyErr_Occurred()) SWIG_fail; | |
22128 | } | |
22129 | { | |
22130 | wxTimeSpan * resultptr; | |
22131 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
22132 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
22133 | } | |
22134 | return resultobj; | |
22135 | fail: | |
22136 | return NULL; | |
22137 | } | |
22138 | ||
22139 | ||
c370783e | 22140 | static PyObject *_wrap_TimeSpan_Weeks(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22141 | PyObject *resultobj; |
22142 | long arg1 ; | |
22143 | wxTimeSpan result; | |
22144 | PyObject * obj0 = 0 ; | |
22145 | char *kwnames[] = { | |
22146 | (char *) "days", NULL | |
22147 | }; | |
22148 | ||
22149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Weeks",kwnames,&obj0)) goto fail; | |
c370783e | 22150 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
22151 | if (PyErr_Occurred()) SWIG_fail; |
22152 | { | |
22153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22154 | result = wxTimeSpan::Weeks(arg1); | |
22155 | ||
22156 | wxPyEndAllowThreads(__tstate); | |
22157 | if (PyErr_Occurred()) SWIG_fail; | |
22158 | } | |
22159 | { | |
22160 | wxTimeSpan * resultptr; | |
22161 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
22162 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
22163 | } | |
22164 | return resultobj; | |
22165 | fail: | |
22166 | return NULL; | |
22167 | } | |
22168 | ||
22169 | ||
c370783e | 22170 | static PyObject *_wrap_TimeSpan_Week(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22171 | PyObject *resultobj; |
22172 | wxTimeSpan result; | |
22173 | char *kwnames[] = { | |
22174 | NULL | |
22175 | }; | |
22176 | ||
22177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Week",kwnames)) goto fail; | |
22178 | { | |
22179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22180 | result = wxTimeSpan::Week(); | |
22181 | ||
22182 | wxPyEndAllowThreads(__tstate); | |
22183 | if (PyErr_Occurred()) SWIG_fail; | |
22184 | } | |
22185 | { | |
22186 | wxTimeSpan * resultptr; | |
22187 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
22188 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
22189 | } | |
22190 | return resultobj; | |
22191 | fail: | |
22192 | return NULL; | |
22193 | } | |
22194 | ||
22195 | ||
c370783e | 22196 | static PyObject *_wrap_new_TimeSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22197 | PyObject *resultobj; |
22198 | long arg1 = (long) 0 ; | |
22199 | long arg2 = (long) 0 ; | |
22200 | long arg3 = (long) 0 ; | |
22201 | long arg4 = (long) 0 ; | |
22202 | wxTimeSpan *result; | |
22203 | PyObject * obj0 = 0 ; | |
22204 | PyObject * obj1 = 0 ; | |
22205 | PyObject * obj2 = 0 ; | |
22206 | PyObject * obj3 = 0 ; | |
22207 | char *kwnames[] = { | |
22208 | (char *) "hours",(char *) "minutes",(char *) "seconds",(char *) "milliseconds", NULL | |
22209 | }; | |
22210 | ||
22211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TimeSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
22212 | if (obj0) { | |
c370783e | 22213 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
22214 | if (PyErr_Occurred()) SWIG_fail; |
22215 | } | |
22216 | if (obj1) { | |
c370783e | 22217 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
22218 | if (PyErr_Occurred()) SWIG_fail; |
22219 | } | |
22220 | if (obj2) { | |
c370783e | 22221 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
22222 | if (PyErr_Occurred()) SWIG_fail; |
22223 | } | |
22224 | if (obj3) { | |
c370783e | 22225 | arg4 = (long)SWIG_As_long(obj3); |
d55e5bfc RD |
22226 | if (PyErr_Occurred()) SWIG_fail; |
22227 | } | |
22228 | { | |
22229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22230 | result = (wxTimeSpan *)new wxTimeSpan(arg1,arg2,arg3,arg4); | |
22231 | ||
22232 | wxPyEndAllowThreads(__tstate); | |
22233 | if (PyErr_Occurred()) SWIG_fail; | |
22234 | } | |
22235 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1); | |
22236 | return resultobj; | |
22237 | fail: | |
22238 | return NULL; | |
22239 | } | |
22240 | ||
22241 | ||
c370783e | 22242 | static PyObject *_wrap_delete_TimeSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22243 | PyObject *resultobj; |
22244 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22245 | PyObject * obj0 = 0 ; | |
22246 | char *kwnames[] = { | |
22247 | (char *) "self", NULL | |
22248 | }; | |
22249 | ||
22250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimeSpan",kwnames,&obj0)) goto fail; | |
22251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22253 | { | |
22254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22255 | delete arg1; | |
22256 | ||
22257 | wxPyEndAllowThreads(__tstate); | |
22258 | if (PyErr_Occurred()) SWIG_fail; | |
22259 | } | |
22260 | Py_INCREF(Py_None); resultobj = Py_None; | |
22261 | return resultobj; | |
22262 | fail: | |
22263 | return NULL; | |
22264 | } | |
22265 | ||
22266 | ||
c370783e | 22267 | static PyObject *_wrap_TimeSpan_Add(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22268 | PyObject *resultobj; |
22269 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22270 | wxTimeSpan *arg2 = 0 ; | |
22271 | wxTimeSpan *result; | |
22272 | PyObject * obj0 = 0 ; | |
22273 | PyObject * obj1 = 0 ; | |
22274 | char *kwnames[] = { | |
22275 | (char *) "self",(char *) "diff", NULL | |
22276 | }; | |
22277 | ||
22278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Add",kwnames,&obj0,&obj1)) goto fail; | |
22279 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22280 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22281 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22282 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22283 | SWIG_fail; | |
22284 | if (arg2 == NULL) { | |
22285 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22286 | SWIG_fail; | |
22287 | } | |
22288 | { | |
22289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22290 | { | |
22291 | wxTimeSpan &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2); | |
22292 | result = (wxTimeSpan *) &_result_ref; | |
22293 | } | |
22294 | ||
22295 | wxPyEndAllowThreads(__tstate); | |
22296 | if (PyErr_Occurred()) SWIG_fail; | |
22297 | } | |
22298 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
22299 | return resultobj; | |
22300 | fail: | |
22301 | return NULL; | |
22302 | } | |
22303 | ||
22304 | ||
c370783e | 22305 | static PyObject *_wrap_TimeSpan_Subtract(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22306 | PyObject *resultobj; |
22307 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22308 | wxTimeSpan *arg2 = 0 ; | |
22309 | wxTimeSpan *result; | |
22310 | PyObject * obj0 = 0 ; | |
22311 | PyObject * obj1 = 0 ; | |
22312 | char *kwnames[] = { | |
22313 | (char *) "self",(char *) "diff", NULL | |
22314 | }; | |
22315 | ||
22316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
22317 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22318 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22319 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22320 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22321 | SWIG_fail; | |
22322 | if (arg2 == NULL) { | |
22323 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22324 | SWIG_fail; | |
22325 | } | |
22326 | { | |
22327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22328 | { | |
22329 | wxTimeSpan &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2); | |
22330 | result = (wxTimeSpan *) &_result_ref; | |
22331 | } | |
22332 | ||
22333 | wxPyEndAllowThreads(__tstate); | |
22334 | if (PyErr_Occurred()) SWIG_fail; | |
22335 | } | |
22336 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
22337 | return resultobj; | |
22338 | fail: | |
22339 | return NULL; | |
22340 | } | |
22341 | ||
22342 | ||
c370783e | 22343 | static PyObject *_wrap_TimeSpan_Multiply(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22344 | PyObject *resultobj; |
22345 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22346 | int arg2 ; | |
22347 | wxTimeSpan *result; | |
22348 | PyObject * obj0 = 0 ; | |
22349 | PyObject * obj1 = 0 ; | |
22350 | char *kwnames[] = { | |
22351 | (char *) "self",(char *) "n", NULL | |
22352 | }; | |
22353 | ||
22354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Multiply",kwnames,&obj0,&obj1)) goto fail; | |
22355 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22356 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 22357 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
22358 | if (PyErr_Occurred()) SWIG_fail; |
22359 | { | |
22360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22361 | { | |
22362 | wxTimeSpan &_result_ref = (arg1)->Multiply(arg2); | |
22363 | result = (wxTimeSpan *) &_result_ref; | |
22364 | } | |
22365 | ||
22366 | wxPyEndAllowThreads(__tstate); | |
22367 | if (PyErr_Occurred()) SWIG_fail; | |
22368 | } | |
22369 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
22370 | return resultobj; | |
22371 | fail: | |
22372 | return NULL; | |
22373 | } | |
22374 | ||
22375 | ||
c370783e | 22376 | static PyObject *_wrap_TimeSpan_Neg(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22377 | PyObject *resultobj; |
22378 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22379 | wxTimeSpan *result; | |
22380 | PyObject * obj0 = 0 ; | |
22381 | char *kwnames[] = { | |
22382 | (char *) "self", NULL | |
22383 | }; | |
22384 | ||
22385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Neg",kwnames,&obj0)) goto fail; | |
22386 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22387 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22388 | { | |
22389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22390 | { | |
22391 | wxTimeSpan &_result_ref = (arg1)->Neg(); | |
22392 | result = (wxTimeSpan *) &_result_ref; | |
22393 | } | |
22394 | ||
22395 | wxPyEndAllowThreads(__tstate); | |
22396 | if (PyErr_Occurred()) SWIG_fail; | |
22397 | } | |
22398 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
22399 | return resultobj; | |
22400 | fail: | |
22401 | return NULL; | |
22402 | } | |
22403 | ||
22404 | ||
c370783e | 22405 | static PyObject *_wrap_TimeSpan_Abs(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22406 | PyObject *resultobj; |
22407 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22408 | wxTimeSpan result; | |
22409 | PyObject * obj0 = 0 ; | |
22410 | char *kwnames[] = { | |
22411 | (char *) "self", NULL | |
22412 | }; | |
22413 | ||
22414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Abs",kwnames,&obj0)) goto fail; | |
22415 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22416 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22417 | { | |
22418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22419 | result = ((wxTimeSpan const *)arg1)->Abs(); | |
22420 | ||
22421 | wxPyEndAllowThreads(__tstate); | |
22422 | if (PyErr_Occurred()) SWIG_fail; | |
22423 | } | |
22424 | { | |
22425 | wxTimeSpan * resultptr; | |
22426 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
22427 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
22428 | } | |
22429 | return resultobj; | |
22430 | fail: | |
22431 | return NULL; | |
22432 | } | |
22433 | ||
22434 | ||
c370783e | 22435 | static PyObject *_wrap_TimeSpan___iadd__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22436 | PyObject *resultobj; |
22437 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22438 | wxTimeSpan *arg2 = 0 ; | |
22439 | wxTimeSpan *result; | |
22440 | PyObject * obj0 = 0 ; | |
22441 | PyObject * obj1 = 0 ; | |
22442 | char *kwnames[] = { | |
22443 | (char *) "self",(char *) "diff", NULL | |
22444 | }; | |
22445 | ||
22446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
22447 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
c370783e | 22448 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
22449 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, |
22450 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22451 | SWIG_fail; | |
22452 | if (arg2 == NULL) { | |
22453 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22454 | SWIG_fail; | |
22455 | } | |
22456 | { | |
22457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22458 | { | |
22459 | wxTimeSpan &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2); | |
22460 | result = (wxTimeSpan *) &_result_ref; | |
22461 | } | |
22462 | ||
22463 | wxPyEndAllowThreads(__tstate); | |
22464 | if (PyErr_Occurred()) SWIG_fail; | |
22465 | } | |
c370783e | 22466 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1); |
d55e5bfc RD |
22467 | return resultobj; |
22468 | fail: | |
22469 | return NULL; | |
22470 | } | |
22471 | ||
22472 | ||
c370783e | 22473 | static PyObject *_wrap_TimeSpan___isub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22474 | PyObject *resultobj; |
22475 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22476 | wxTimeSpan *arg2 = 0 ; | |
22477 | wxTimeSpan *result; | |
22478 | PyObject * obj0 = 0 ; | |
22479 | PyObject * obj1 = 0 ; | |
22480 | char *kwnames[] = { | |
22481 | (char *) "self",(char *) "diff", NULL | |
22482 | }; | |
22483 | ||
22484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___isub__",kwnames,&obj0,&obj1)) goto fail; | |
22485 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
c370783e | 22486 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
22487 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, |
22488 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22489 | SWIG_fail; | |
22490 | if (arg2 == NULL) { | |
22491 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22492 | SWIG_fail; | |
22493 | } | |
22494 | { | |
22495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22496 | { | |
22497 | wxTimeSpan &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2); | |
22498 | result = (wxTimeSpan *) &_result_ref; | |
22499 | } | |
22500 | ||
22501 | wxPyEndAllowThreads(__tstate); | |
22502 | if (PyErr_Occurred()) SWIG_fail; | |
22503 | } | |
c370783e | 22504 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1); |
d55e5bfc RD |
22505 | return resultobj; |
22506 | fail: | |
22507 | return NULL; | |
22508 | } | |
22509 | ||
22510 | ||
c370783e | 22511 | static PyObject *_wrap_TimeSpan___imul__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22512 | PyObject *resultobj; |
22513 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22514 | int arg2 ; | |
22515 | wxTimeSpan *result; | |
22516 | PyObject * obj0 = 0 ; | |
22517 | PyObject * obj1 = 0 ; | |
22518 | char *kwnames[] = { | |
22519 | (char *) "self",(char *) "n", NULL | |
22520 | }; | |
22521 | ||
22522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___imul__",kwnames,&obj0,&obj1)) goto fail; | |
22523 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
c370783e RD |
22524 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
22525 | arg2 = (int)SWIG_As_int(obj1); | |
d55e5bfc RD |
22526 | if (PyErr_Occurred()) SWIG_fail; |
22527 | { | |
22528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22529 | { | |
22530 | wxTimeSpan &_result_ref = (arg1)->operator *=(arg2); | |
22531 | result = (wxTimeSpan *) &_result_ref; | |
22532 | } | |
22533 | ||
22534 | wxPyEndAllowThreads(__tstate); | |
22535 | if (PyErr_Occurred()) SWIG_fail; | |
22536 | } | |
c370783e | 22537 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1); |
d55e5bfc RD |
22538 | return resultobj; |
22539 | fail: | |
22540 | return NULL; | |
22541 | } | |
22542 | ||
22543 | ||
c370783e | 22544 | static PyObject *_wrap_TimeSpan___neg__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22545 | PyObject *resultobj; |
22546 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22547 | wxTimeSpan *result; | |
22548 | PyObject * obj0 = 0 ; | |
22549 | char *kwnames[] = { | |
22550 | (char *) "self", NULL | |
22551 | }; | |
22552 | ||
22553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan___neg__",kwnames,&obj0)) goto fail; | |
22554 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22555 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22556 | { | |
22557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22558 | { | |
22559 | wxTimeSpan &_result_ref = (arg1)->operator -(); | |
22560 | result = (wxTimeSpan *) &_result_ref; | |
22561 | } | |
22562 | ||
22563 | wxPyEndAllowThreads(__tstate); | |
22564 | if (PyErr_Occurred()) SWIG_fail; | |
22565 | } | |
22566 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
22567 | return resultobj; | |
22568 | fail: | |
22569 | return NULL; | |
22570 | } | |
22571 | ||
22572 | ||
c370783e | 22573 | static PyObject *_wrap_TimeSpan___add__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22574 | PyObject *resultobj; |
22575 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22576 | wxTimeSpan *arg2 = 0 ; | |
22577 | wxTimeSpan result; | |
22578 | PyObject * obj0 = 0 ; | |
22579 | PyObject * obj1 = 0 ; | |
22580 | char *kwnames[] = { | |
22581 | (char *) "self",(char *) "other", NULL | |
22582 | }; | |
22583 | ||
22584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___add__",kwnames,&obj0,&obj1)) goto fail; | |
22585 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22586 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22587 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22588 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22589 | SWIG_fail; | |
22590 | if (arg2 == NULL) { | |
22591 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22592 | SWIG_fail; | |
22593 | } | |
22594 | { | |
22595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22596 | result = wxTimeSpan___add__(arg1,(wxTimeSpan const &)*arg2); | |
22597 | ||
22598 | wxPyEndAllowThreads(__tstate); | |
22599 | if (PyErr_Occurred()) SWIG_fail; | |
22600 | } | |
22601 | { | |
22602 | wxTimeSpan * resultptr; | |
22603 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
22604 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
22605 | } | |
22606 | return resultobj; | |
22607 | fail: | |
22608 | return NULL; | |
22609 | } | |
22610 | ||
22611 | ||
c370783e | 22612 | static PyObject *_wrap_TimeSpan___sub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22613 | PyObject *resultobj; |
22614 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22615 | wxTimeSpan *arg2 = 0 ; | |
22616 | wxTimeSpan result; | |
22617 | PyObject * obj0 = 0 ; | |
22618 | PyObject * obj1 = 0 ; | |
22619 | char *kwnames[] = { | |
22620 | (char *) "self",(char *) "other", NULL | |
22621 | }; | |
22622 | ||
22623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___sub__",kwnames,&obj0,&obj1)) goto fail; | |
22624 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22625 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22626 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22627 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22628 | SWIG_fail; | |
22629 | if (arg2 == NULL) { | |
22630 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22631 | SWIG_fail; | |
22632 | } | |
22633 | { | |
22634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22635 | result = wxTimeSpan___sub__(arg1,(wxTimeSpan const &)*arg2); | |
22636 | ||
22637 | wxPyEndAllowThreads(__tstate); | |
22638 | if (PyErr_Occurred()) SWIG_fail; | |
22639 | } | |
22640 | { | |
22641 | wxTimeSpan * resultptr; | |
22642 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
22643 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
22644 | } | |
22645 | return resultobj; | |
22646 | fail: | |
22647 | return NULL; | |
22648 | } | |
22649 | ||
22650 | ||
c370783e | 22651 | static PyObject *_wrap_TimeSpan___mul__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22652 | PyObject *resultobj; |
22653 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22654 | int arg2 ; | |
22655 | wxTimeSpan result; | |
22656 | PyObject * obj0 = 0 ; | |
22657 | PyObject * obj1 = 0 ; | |
22658 | char *kwnames[] = { | |
22659 | (char *) "self",(char *) "n", NULL | |
22660 | }; | |
22661 | ||
22662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___mul__",kwnames,&obj0,&obj1)) goto fail; | |
22663 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 22665 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
22666 | if (PyErr_Occurred()) SWIG_fail; |
22667 | { | |
22668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22669 | result = wxTimeSpan___mul__(arg1,arg2); | |
22670 | ||
22671 | wxPyEndAllowThreads(__tstate); | |
22672 | if (PyErr_Occurred()) SWIG_fail; | |
22673 | } | |
22674 | { | |
22675 | wxTimeSpan * resultptr; | |
22676 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
22677 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
22678 | } | |
22679 | return resultobj; | |
22680 | fail: | |
22681 | return NULL; | |
22682 | } | |
22683 | ||
22684 | ||
c370783e | 22685 | static PyObject *_wrap_TimeSpan___rmul__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22686 | PyObject *resultobj; |
22687 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22688 | int arg2 ; | |
22689 | wxTimeSpan result; | |
22690 | PyObject * obj0 = 0 ; | |
22691 | PyObject * obj1 = 0 ; | |
22692 | char *kwnames[] = { | |
22693 | (char *) "self",(char *) "n", NULL | |
22694 | }; | |
22695 | ||
22696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___rmul__",kwnames,&obj0,&obj1)) goto fail; | |
22697 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22698 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 22699 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
22700 | if (PyErr_Occurred()) SWIG_fail; |
22701 | { | |
22702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22703 | result = wxTimeSpan___rmul__(arg1,arg2); | |
22704 | ||
22705 | wxPyEndAllowThreads(__tstate); | |
22706 | if (PyErr_Occurred()) SWIG_fail; | |
22707 | } | |
22708 | { | |
22709 | wxTimeSpan * resultptr; | |
22710 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
22711 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
22712 | } | |
22713 | return resultobj; | |
22714 | fail: | |
22715 | return NULL; | |
22716 | } | |
22717 | ||
22718 | ||
c370783e | 22719 | static PyObject *_wrap_TimeSpan___lt__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22720 | PyObject *resultobj; |
22721 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22722 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
22723 | bool result; | |
22724 | PyObject * obj0 = 0 ; | |
22725 | PyObject * obj1 = 0 ; | |
22726 | char *kwnames[] = { | |
22727 | (char *) "self",(char *) "other", NULL | |
22728 | }; | |
22729 | ||
22730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___lt__",kwnames,&obj0,&obj1)) goto fail; | |
22731 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22732 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22733 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22734 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22735 | { | |
22736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22737 | result = (bool)wxTimeSpan___lt__(arg1,(wxTimeSpan const *)arg2); | |
22738 | ||
22739 | wxPyEndAllowThreads(__tstate); | |
22740 | if (PyErr_Occurred()) SWIG_fail; | |
22741 | } | |
22742 | { | |
22743 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22744 | } | |
22745 | return resultobj; | |
22746 | fail: | |
22747 | return NULL; | |
22748 | } | |
22749 | ||
22750 | ||
c370783e | 22751 | static PyObject *_wrap_TimeSpan___le__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22752 | PyObject *resultobj; |
22753 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22754 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
22755 | bool result; | |
22756 | PyObject * obj0 = 0 ; | |
22757 | PyObject * obj1 = 0 ; | |
22758 | char *kwnames[] = { | |
22759 | (char *) "self",(char *) "other", NULL | |
22760 | }; | |
22761 | ||
22762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___le__",kwnames,&obj0,&obj1)) goto fail; | |
22763 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22764 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22765 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22767 | { | |
22768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22769 | result = (bool)wxTimeSpan___le__(arg1,(wxTimeSpan const *)arg2); | |
22770 | ||
22771 | wxPyEndAllowThreads(__tstate); | |
22772 | if (PyErr_Occurred()) SWIG_fail; | |
22773 | } | |
22774 | { | |
22775 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22776 | } | |
22777 | return resultobj; | |
22778 | fail: | |
22779 | return NULL; | |
22780 | } | |
22781 | ||
22782 | ||
c370783e | 22783 | static PyObject *_wrap_TimeSpan___gt__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22784 | PyObject *resultobj; |
22785 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22786 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
22787 | bool result; | |
22788 | PyObject * obj0 = 0 ; | |
22789 | PyObject * obj1 = 0 ; | |
22790 | char *kwnames[] = { | |
22791 | (char *) "self",(char *) "other", NULL | |
22792 | }; | |
22793 | ||
22794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___gt__",kwnames,&obj0,&obj1)) goto fail; | |
22795 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22796 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22797 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22798 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22799 | { | |
22800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22801 | result = (bool)wxTimeSpan___gt__(arg1,(wxTimeSpan const *)arg2); | |
22802 | ||
22803 | wxPyEndAllowThreads(__tstate); | |
22804 | if (PyErr_Occurred()) SWIG_fail; | |
22805 | } | |
22806 | { | |
22807 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22808 | } | |
22809 | return resultobj; | |
22810 | fail: | |
22811 | return NULL; | |
22812 | } | |
22813 | ||
22814 | ||
c370783e | 22815 | static PyObject *_wrap_TimeSpan___ge__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22816 | PyObject *resultobj; |
22817 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22818 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
22819 | bool result; | |
22820 | PyObject * obj0 = 0 ; | |
22821 | PyObject * obj1 = 0 ; | |
22822 | char *kwnames[] = { | |
22823 | (char *) "self",(char *) "other", NULL | |
22824 | }; | |
22825 | ||
22826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ge__",kwnames,&obj0,&obj1)) goto fail; | |
22827 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22829 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22830 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22831 | { | |
22832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22833 | result = (bool)wxTimeSpan___ge__(arg1,(wxTimeSpan const *)arg2); | |
22834 | ||
22835 | wxPyEndAllowThreads(__tstate); | |
22836 | if (PyErr_Occurred()) SWIG_fail; | |
22837 | } | |
22838 | { | |
22839 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22840 | } | |
22841 | return resultobj; | |
22842 | fail: | |
22843 | return NULL; | |
22844 | } | |
22845 | ||
22846 | ||
c370783e | 22847 | static PyObject *_wrap_TimeSpan___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22848 | PyObject *resultobj; |
22849 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22850 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
22851 | bool result; | |
22852 | PyObject * obj0 = 0 ; | |
22853 | PyObject * obj1 = 0 ; | |
22854 | char *kwnames[] = { | |
22855 | (char *) "self",(char *) "other", NULL | |
22856 | }; | |
22857 | ||
22858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
22859 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22860 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22861 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22862 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22863 | { | |
22864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22865 | result = (bool)wxTimeSpan___eq__(arg1,(wxTimeSpan const *)arg2); | |
22866 | ||
22867 | wxPyEndAllowThreads(__tstate); | |
22868 | if (PyErr_Occurred()) SWIG_fail; | |
22869 | } | |
22870 | { | |
22871 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22872 | } | |
22873 | return resultobj; | |
22874 | fail: | |
22875 | return NULL; | |
22876 | } | |
22877 | ||
22878 | ||
c370783e | 22879 | static PyObject *_wrap_TimeSpan___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22880 | PyObject *resultobj; |
22881 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22882 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
22883 | bool result; | |
22884 | PyObject * obj0 = 0 ; | |
22885 | PyObject * obj1 = 0 ; | |
22886 | char *kwnames[] = { | |
22887 | (char *) "self",(char *) "other", NULL | |
22888 | }; | |
22889 | ||
22890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
22891 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22892 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22893 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22894 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22895 | { | |
22896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22897 | result = (bool)wxTimeSpan___ne__(arg1,(wxTimeSpan const *)arg2); | |
22898 | ||
22899 | wxPyEndAllowThreads(__tstate); | |
22900 | if (PyErr_Occurred()) SWIG_fail; | |
22901 | } | |
22902 | { | |
22903 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22904 | } | |
22905 | return resultobj; | |
22906 | fail: | |
22907 | return NULL; | |
22908 | } | |
22909 | ||
22910 | ||
c370783e | 22911 | static PyObject *_wrap_TimeSpan_IsNull(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22912 | PyObject *resultobj; |
22913 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22914 | bool result; | |
22915 | PyObject * obj0 = 0 ; | |
22916 | char *kwnames[] = { | |
22917 | (char *) "self", NULL | |
22918 | }; | |
22919 | ||
22920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNull",kwnames,&obj0)) goto fail; | |
22921 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22923 | { | |
22924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22925 | result = (bool)((wxTimeSpan const *)arg1)->IsNull(); | |
22926 | ||
22927 | wxPyEndAllowThreads(__tstate); | |
22928 | if (PyErr_Occurred()) SWIG_fail; | |
22929 | } | |
22930 | { | |
22931 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22932 | } | |
22933 | return resultobj; | |
22934 | fail: | |
22935 | return NULL; | |
22936 | } | |
22937 | ||
22938 | ||
c370783e | 22939 | static PyObject *_wrap_TimeSpan_IsPositive(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22940 | PyObject *resultobj; |
22941 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22942 | bool result; | |
22943 | PyObject * obj0 = 0 ; | |
22944 | char *kwnames[] = { | |
22945 | (char *) "self", NULL | |
22946 | }; | |
22947 | ||
22948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsPositive",kwnames,&obj0)) goto fail; | |
22949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22951 | { | |
22952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22953 | result = (bool)((wxTimeSpan const *)arg1)->IsPositive(); | |
22954 | ||
22955 | wxPyEndAllowThreads(__tstate); | |
22956 | if (PyErr_Occurred()) SWIG_fail; | |
22957 | } | |
22958 | { | |
22959 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22960 | } | |
22961 | return resultobj; | |
22962 | fail: | |
22963 | return NULL; | |
22964 | } | |
22965 | ||
22966 | ||
c370783e | 22967 | static PyObject *_wrap_TimeSpan_IsNegative(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22968 | PyObject *resultobj; |
22969 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22970 | bool result; | |
22971 | PyObject * obj0 = 0 ; | |
22972 | char *kwnames[] = { | |
22973 | (char *) "self", NULL | |
22974 | }; | |
22975 | ||
22976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNegative",kwnames,&obj0)) goto fail; | |
22977 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22978 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22979 | { | |
22980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22981 | result = (bool)((wxTimeSpan const *)arg1)->IsNegative(); | |
22982 | ||
22983 | wxPyEndAllowThreads(__tstate); | |
22984 | if (PyErr_Occurred()) SWIG_fail; | |
22985 | } | |
22986 | { | |
22987 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22988 | } | |
22989 | return resultobj; | |
22990 | fail: | |
22991 | return NULL; | |
22992 | } | |
22993 | ||
22994 | ||
c370783e | 22995 | static PyObject *_wrap_TimeSpan_IsEqualTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22996 | PyObject *resultobj; |
22997 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22998 | wxTimeSpan *arg2 = 0 ; | |
22999 | bool result; | |
23000 | PyObject * obj0 = 0 ; | |
23001 | PyObject * obj1 = 0 ; | |
23002 | char *kwnames[] = { | |
23003 | (char *) "self",(char *) "ts", NULL | |
23004 | }; | |
23005 | ||
23006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsEqualTo",kwnames,&obj0,&obj1)) goto fail; | |
23007 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
23008 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23009 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
23010 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23011 | SWIG_fail; | |
23012 | if (arg2 == NULL) { | |
23013 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23014 | SWIG_fail; | |
23015 | } | |
23016 | { | |
23017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23018 | result = (bool)((wxTimeSpan const *)arg1)->IsEqualTo((wxTimeSpan const &)*arg2); | |
23019 | ||
23020 | wxPyEndAllowThreads(__tstate); | |
23021 | if (PyErr_Occurred()) SWIG_fail; | |
23022 | } | |
23023 | { | |
23024 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23025 | } | |
23026 | return resultobj; | |
23027 | fail: | |
23028 | return NULL; | |
23029 | } | |
23030 | ||
23031 | ||
c370783e | 23032 | static PyObject *_wrap_TimeSpan_IsLongerThan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23033 | PyObject *resultobj; |
23034 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
23035 | wxTimeSpan *arg2 = 0 ; | |
23036 | bool result; | |
23037 | PyObject * obj0 = 0 ; | |
23038 | PyObject * obj1 = 0 ; | |
23039 | char *kwnames[] = { | |
23040 | (char *) "self",(char *) "ts", NULL | |
23041 | }; | |
23042 | ||
23043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsLongerThan",kwnames,&obj0,&obj1)) goto fail; | |
23044 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
23045 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23046 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
23047 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23048 | SWIG_fail; | |
23049 | if (arg2 == NULL) { | |
23050 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23051 | SWIG_fail; | |
23052 | } | |
23053 | { | |
23054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23055 | result = (bool)((wxTimeSpan const *)arg1)->IsLongerThan((wxTimeSpan const &)*arg2); | |
23056 | ||
23057 | wxPyEndAllowThreads(__tstate); | |
23058 | if (PyErr_Occurred()) SWIG_fail; | |
23059 | } | |
23060 | { | |
23061 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23062 | } | |
23063 | return resultobj; | |
23064 | fail: | |
23065 | return NULL; | |
23066 | } | |
23067 | ||
23068 | ||
c370783e | 23069 | static PyObject *_wrap_TimeSpan_IsShorterThan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23070 | PyObject *resultobj; |
23071 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
23072 | wxTimeSpan *arg2 = 0 ; | |
23073 | bool result; | |
23074 | PyObject * obj0 = 0 ; | |
23075 | PyObject * obj1 = 0 ; | |
23076 | char *kwnames[] = { | |
23077 | (char *) "self",(char *) "t", NULL | |
23078 | }; | |
23079 | ||
23080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsShorterThan",kwnames,&obj0,&obj1)) goto fail; | |
23081 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
23082 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23083 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
23084 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23085 | SWIG_fail; | |
23086 | if (arg2 == NULL) { | |
23087 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23088 | SWIG_fail; | |
23089 | } | |
23090 | { | |
23091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23092 | result = (bool)((wxTimeSpan const *)arg1)->IsShorterThan((wxTimeSpan const &)*arg2); | |
23093 | ||
23094 | wxPyEndAllowThreads(__tstate); | |
23095 | if (PyErr_Occurred()) SWIG_fail; | |
23096 | } | |
23097 | { | |
23098 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23099 | } | |
23100 | return resultobj; | |
23101 | fail: | |
23102 | return NULL; | |
23103 | } | |
23104 | ||
23105 | ||
c370783e | 23106 | static PyObject *_wrap_TimeSpan_GetWeeks(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23107 | PyObject *resultobj; |
23108 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
23109 | int result; | |
23110 | PyObject * obj0 = 0 ; | |
23111 | char *kwnames[] = { | |
23112 | (char *) "self", NULL | |
23113 | }; | |
23114 | ||
23115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetWeeks",kwnames,&obj0)) goto fail; | |
23116 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
23117 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23118 | { | |
23119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23120 | result = (int)((wxTimeSpan const *)arg1)->GetWeeks(); | |
23121 | ||
23122 | wxPyEndAllowThreads(__tstate); | |
23123 | if (PyErr_Occurred()) SWIG_fail; | |
23124 | } | |
c370783e | 23125 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
23126 | return resultobj; |
23127 | fail: | |
23128 | return NULL; | |
23129 | } | |
23130 | ||
23131 | ||
c370783e | 23132 | static PyObject *_wrap_TimeSpan_GetDays(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23133 | PyObject *resultobj; |
23134 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
23135 | int result; | |
23136 | PyObject * obj0 = 0 ; | |
23137 | char *kwnames[] = { | |
23138 | (char *) "self", NULL | |
23139 | }; | |
23140 | ||
23141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetDays",kwnames,&obj0)) goto fail; | |
23142 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
23143 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23144 | { | |
23145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23146 | result = (int)((wxTimeSpan const *)arg1)->GetDays(); | |
23147 | ||
23148 | wxPyEndAllowThreads(__tstate); | |
23149 | if (PyErr_Occurred()) SWIG_fail; | |
23150 | } | |
c370783e | 23151 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
23152 | return resultobj; |
23153 | fail: | |
23154 | return NULL; | |
23155 | } | |
23156 | ||
23157 | ||
c370783e | 23158 | static PyObject *_wrap_TimeSpan_GetHours(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23159 | PyObject *resultobj; |
23160 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
23161 | int result; | |
23162 | PyObject * obj0 = 0 ; | |
23163 | char *kwnames[] = { | |
23164 | (char *) "self", NULL | |
23165 | }; | |
23166 | ||
23167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetHours",kwnames,&obj0)) goto fail; | |
23168 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
23169 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23170 | { | |
23171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23172 | result = (int)((wxTimeSpan const *)arg1)->GetHours(); | |
23173 | ||
23174 | wxPyEndAllowThreads(__tstate); | |
23175 | if (PyErr_Occurred()) SWIG_fail; | |
23176 | } | |
c370783e | 23177 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
23178 | return resultobj; |
23179 | fail: | |
23180 | return NULL; | |
23181 | } | |
23182 | ||
23183 | ||
c370783e | 23184 | static PyObject *_wrap_TimeSpan_GetMinutes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23185 | PyObject *resultobj; |
23186 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
23187 | int result; | |
23188 | PyObject * obj0 = 0 ; | |
23189 | char *kwnames[] = { | |
23190 | (char *) "self", NULL | |
23191 | }; | |
23192 | ||
23193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMinutes",kwnames,&obj0)) goto fail; | |
23194 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
23195 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23196 | { | |
23197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23198 | result = (int)((wxTimeSpan const *)arg1)->GetMinutes(); | |
23199 | ||
23200 | wxPyEndAllowThreads(__tstate); | |
23201 | if (PyErr_Occurred()) SWIG_fail; | |
23202 | } | |
c370783e | 23203 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
23204 | return resultobj; |
23205 | fail: | |
23206 | return NULL; | |
23207 | } | |
23208 | ||
23209 | ||
c370783e | 23210 | static PyObject *_wrap_TimeSpan_GetSeconds(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23211 | PyObject *resultobj; |
23212 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
23213 | wxLongLong result; | |
23214 | PyObject * obj0 = 0 ; | |
23215 | char *kwnames[] = { | |
23216 | (char *) "self", NULL | |
23217 | }; | |
23218 | ||
23219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetSeconds",kwnames,&obj0)) goto fail; | |
23220 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
23221 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23222 | { | |
23223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23224 | result = ((wxTimeSpan const *)arg1)->GetSeconds(); | |
23225 | ||
23226 | wxPyEndAllowThreads(__tstate); | |
23227 | if (PyErr_Occurred()) SWIG_fail; | |
23228 | } | |
23229 | { | |
23230 | PyObject *hi, *lo, *shifter, *shifted; | |
23231 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
23232 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
23233 | shifter = PyLong_FromLong(32); | |
23234 | shifted = PyNumber_Lshift(hi, shifter); | |
23235 | resultobj = PyNumber_Or(shifted, lo); | |
23236 | Py_DECREF(hi); | |
23237 | Py_DECREF(lo); | |
23238 | Py_DECREF(shifter); | |
23239 | Py_DECREF(shifted); | |
23240 | } | |
23241 | return resultobj; | |
23242 | fail: | |
23243 | return NULL; | |
23244 | } | |
23245 | ||
23246 | ||
c370783e | 23247 | static PyObject *_wrap_TimeSpan_GetMilliseconds(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23248 | PyObject *resultobj; |
23249 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
23250 | wxLongLong result; | |
23251 | PyObject * obj0 = 0 ; | |
23252 | char *kwnames[] = { | |
23253 | (char *) "self", NULL | |
23254 | }; | |
23255 | ||
23256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMilliseconds",kwnames,&obj0)) goto fail; | |
23257 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
23258 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23259 | { | |
23260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23261 | result = ((wxTimeSpan const *)arg1)->GetMilliseconds(); | |
23262 | ||
23263 | wxPyEndAllowThreads(__tstate); | |
23264 | if (PyErr_Occurred()) SWIG_fail; | |
23265 | } | |
23266 | { | |
23267 | PyObject *hi, *lo, *shifter, *shifted; | |
23268 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
23269 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
23270 | shifter = PyLong_FromLong(32); | |
23271 | shifted = PyNumber_Lshift(hi, shifter); | |
23272 | resultobj = PyNumber_Or(shifted, lo); | |
23273 | Py_DECREF(hi); | |
23274 | Py_DECREF(lo); | |
23275 | Py_DECREF(shifter); | |
23276 | Py_DECREF(shifted); | |
23277 | } | |
23278 | return resultobj; | |
23279 | fail: | |
23280 | return NULL; | |
23281 | } | |
23282 | ||
23283 | ||
c370783e | 23284 | static PyObject *_wrap_TimeSpan_Format(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23285 | PyObject *resultobj; |
23286 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
23287 | wxString const &arg2_defvalue = wxPyTimeSpanFormatStr ; | |
23288 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
23289 | wxString result; | |
b411df4a | 23290 | bool temp2 = false ; |
d55e5bfc RD |
23291 | PyObject * obj0 = 0 ; |
23292 | PyObject * obj1 = 0 ; | |
23293 | char *kwnames[] = { | |
23294 | (char *) "self",(char *) "format", NULL | |
23295 | }; | |
23296 | ||
23297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TimeSpan_Format",kwnames,&obj0,&obj1)) goto fail; | |
23298 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
23299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23300 | if (obj1) { | |
23301 | { | |
23302 | arg2 = wxString_in_helper(obj1); | |
23303 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 23304 | temp2 = true; |
d55e5bfc RD |
23305 | } |
23306 | } | |
23307 | { | |
23308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23309 | result = ((wxTimeSpan const *)arg1)->Format((wxString const &)*arg2); | |
23310 | ||
23311 | wxPyEndAllowThreads(__tstate); | |
23312 | if (PyErr_Occurred()) SWIG_fail; | |
23313 | } | |
23314 | { | |
23315 | #if wxUSE_UNICODE | |
23316 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
23317 | #else | |
23318 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
23319 | #endif | |
23320 | } | |
23321 | { | |
23322 | if (temp2) | |
23323 | delete arg2; | |
23324 | } | |
23325 | return resultobj; | |
23326 | fail: | |
23327 | { | |
23328 | if (temp2) | |
23329 | delete arg2; | |
23330 | } | |
23331 | return NULL; | |
23332 | } | |
23333 | ||
23334 | ||
c370783e | 23335 | static PyObject * TimeSpan_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
23336 | PyObject *obj; |
23337 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23338 | SWIG_TypeClientData(SWIGTYPE_p_wxTimeSpan, obj); | |
23339 | Py_INCREF(obj); | |
23340 | return Py_BuildValue((char *)""); | |
23341 | } | |
c370783e | 23342 | static PyObject *_wrap_new_DateSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23343 | PyObject *resultobj; |
23344 | int arg1 = (int) 0 ; | |
23345 | int arg2 = (int) 0 ; | |
23346 | int arg3 = (int) 0 ; | |
23347 | int arg4 = (int) 0 ; | |
23348 | wxDateSpan *result; | |
23349 | PyObject * obj0 = 0 ; | |
23350 | PyObject * obj1 = 0 ; | |
23351 | PyObject * obj2 = 0 ; | |
23352 | PyObject * obj3 = 0 ; | |
23353 | char *kwnames[] = { | |
23354 | (char *) "years",(char *) "months",(char *) "weeks",(char *) "days", NULL | |
23355 | }; | |
23356 | ||
23357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_DateSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
23358 | if (obj0) { | |
c370783e | 23359 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
23360 | if (PyErr_Occurred()) SWIG_fail; |
23361 | } | |
23362 | if (obj1) { | |
c370783e | 23363 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
23364 | if (PyErr_Occurred()) SWIG_fail; |
23365 | } | |
23366 | if (obj2) { | |
c370783e | 23367 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
23368 | if (PyErr_Occurred()) SWIG_fail; |
23369 | } | |
23370 | if (obj3) { | |
c370783e | 23371 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
23372 | if (PyErr_Occurred()) SWIG_fail; |
23373 | } | |
23374 | { | |
23375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23376 | result = (wxDateSpan *)new wxDateSpan(arg1,arg2,arg3,arg4); | |
23377 | ||
23378 | wxPyEndAllowThreads(__tstate); | |
23379 | if (PyErr_Occurred()) SWIG_fail; | |
23380 | } | |
23381 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1); | |
23382 | return resultobj; | |
23383 | fail: | |
23384 | return NULL; | |
23385 | } | |
23386 | ||
23387 | ||
c370783e | 23388 | static PyObject *_wrap_delete_DateSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23389 | PyObject *resultobj; |
23390 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23391 | PyObject * obj0 = 0 ; | |
23392 | char *kwnames[] = { | |
23393 | (char *) "self", NULL | |
23394 | }; | |
23395 | ||
23396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateSpan",kwnames,&obj0)) goto fail; | |
23397 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23399 | { | |
23400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23401 | delete arg1; | |
23402 | ||
23403 | wxPyEndAllowThreads(__tstate); | |
23404 | if (PyErr_Occurred()) SWIG_fail; | |
23405 | } | |
23406 | Py_INCREF(Py_None); resultobj = Py_None; | |
23407 | return resultobj; | |
23408 | fail: | |
23409 | return NULL; | |
23410 | } | |
23411 | ||
23412 | ||
c370783e | 23413 | static PyObject *_wrap_DateSpan_Days(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23414 | PyObject *resultobj; |
23415 | int arg1 ; | |
23416 | wxDateSpan result; | |
23417 | PyObject * obj0 = 0 ; | |
23418 | char *kwnames[] = { | |
23419 | (char *) "days", NULL | |
23420 | }; | |
23421 | ||
23422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Days",kwnames,&obj0)) goto fail; | |
c370783e | 23423 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
23424 | if (PyErr_Occurred()) SWIG_fail; |
23425 | { | |
23426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23427 | result = wxDateSpan::Days(arg1); | |
23428 | ||
23429 | wxPyEndAllowThreads(__tstate); | |
23430 | if (PyErr_Occurred()) SWIG_fail; | |
23431 | } | |
23432 | { | |
23433 | wxDateSpan * resultptr; | |
23434 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23435 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23436 | } | |
23437 | return resultobj; | |
23438 | fail: | |
23439 | return NULL; | |
23440 | } | |
23441 | ||
23442 | ||
c370783e | 23443 | static PyObject *_wrap_DateSpan_Day(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23444 | PyObject *resultobj; |
23445 | wxDateSpan result; | |
23446 | char *kwnames[] = { | |
23447 | NULL | |
23448 | }; | |
23449 | ||
23450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Day",kwnames)) goto fail; | |
23451 | { | |
23452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23453 | result = wxDateSpan::Day(); | |
23454 | ||
23455 | wxPyEndAllowThreads(__tstate); | |
23456 | if (PyErr_Occurred()) SWIG_fail; | |
23457 | } | |
23458 | { | |
23459 | wxDateSpan * resultptr; | |
23460 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23461 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23462 | } | |
23463 | return resultobj; | |
23464 | fail: | |
23465 | return NULL; | |
23466 | } | |
23467 | ||
23468 | ||
c370783e | 23469 | static PyObject *_wrap_DateSpan_Weeks(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23470 | PyObject *resultobj; |
23471 | int arg1 ; | |
23472 | wxDateSpan result; | |
23473 | PyObject * obj0 = 0 ; | |
23474 | char *kwnames[] = { | |
23475 | (char *) "weeks", NULL | |
23476 | }; | |
23477 | ||
23478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Weeks",kwnames,&obj0)) goto fail; | |
c370783e | 23479 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
23480 | if (PyErr_Occurred()) SWIG_fail; |
23481 | { | |
23482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23483 | result = wxDateSpan::Weeks(arg1); | |
23484 | ||
23485 | wxPyEndAllowThreads(__tstate); | |
23486 | if (PyErr_Occurred()) SWIG_fail; | |
23487 | } | |
23488 | { | |
23489 | wxDateSpan * resultptr; | |
23490 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23491 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23492 | } | |
23493 | return resultobj; | |
23494 | fail: | |
23495 | return NULL; | |
23496 | } | |
23497 | ||
23498 | ||
c370783e | 23499 | static PyObject *_wrap_DateSpan_Week(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23500 | PyObject *resultobj; |
23501 | wxDateSpan result; | |
23502 | char *kwnames[] = { | |
23503 | NULL | |
23504 | }; | |
23505 | ||
23506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Week",kwnames)) goto fail; | |
23507 | { | |
23508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23509 | result = wxDateSpan::Week(); | |
23510 | ||
23511 | wxPyEndAllowThreads(__tstate); | |
23512 | if (PyErr_Occurred()) SWIG_fail; | |
23513 | } | |
23514 | { | |
23515 | wxDateSpan * resultptr; | |
23516 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23517 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23518 | } | |
23519 | return resultobj; | |
23520 | fail: | |
23521 | return NULL; | |
23522 | } | |
23523 | ||
23524 | ||
c370783e | 23525 | static PyObject *_wrap_DateSpan_Months(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23526 | PyObject *resultobj; |
23527 | int arg1 ; | |
23528 | wxDateSpan result; | |
23529 | PyObject * obj0 = 0 ; | |
23530 | char *kwnames[] = { | |
23531 | (char *) "mon", NULL | |
23532 | }; | |
23533 | ||
23534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Months",kwnames,&obj0)) goto fail; | |
c370783e | 23535 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
23536 | if (PyErr_Occurred()) SWIG_fail; |
23537 | { | |
23538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23539 | result = wxDateSpan::Months(arg1); | |
23540 | ||
23541 | wxPyEndAllowThreads(__tstate); | |
23542 | if (PyErr_Occurred()) SWIG_fail; | |
23543 | } | |
23544 | { | |
23545 | wxDateSpan * resultptr; | |
23546 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23547 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23548 | } | |
23549 | return resultobj; | |
23550 | fail: | |
23551 | return NULL; | |
23552 | } | |
23553 | ||
23554 | ||
c370783e | 23555 | static PyObject *_wrap_DateSpan_Month(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23556 | PyObject *resultobj; |
23557 | wxDateSpan result; | |
23558 | char *kwnames[] = { | |
23559 | NULL | |
23560 | }; | |
23561 | ||
23562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Month",kwnames)) goto fail; | |
23563 | { | |
23564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23565 | result = wxDateSpan::Month(); | |
23566 | ||
23567 | wxPyEndAllowThreads(__tstate); | |
23568 | if (PyErr_Occurred()) SWIG_fail; | |
23569 | } | |
23570 | { | |
23571 | wxDateSpan * resultptr; | |
23572 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23573 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23574 | } | |
23575 | return resultobj; | |
23576 | fail: | |
23577 | return NULL; | |
23578 | } | |
23579 | ||
23580 | ||
c370783e | 23581 | static PyObject *_wrap_DateSpan_Years(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23582 | PyObject *resultobj; |
23583 | int arg1 ; | |
23584 | wxDateSpan result; | |
23585 | PyObject * obj0 = 0 ; | |
23586 | char *kwnames[] = { | |
23587 | (char *) "years", NULL | |
23588 | }; | |
23589 | ||
23590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Years",kwnames,&obj0)) goto fail; | |
c370783e | 23591 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
23592 | if (PyErr_Occurred()) SWIG_fail; |
23593 | { | |
23594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23595 | result = wxDateSpan::Years(arg1); | |
23596 | ||
23597 | wxPyEndAllowThreads(__tstate); | |
23598 | if (PyErr_Occurred()) SWIG_fail; | |
23599 | } | |
23600 | { | |
23601 | wxDateSpan * resultptr; | |
23602 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23603 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23604 | } | |
23605 | return resultobj; | |
23606 | fail: | |
23607 | return NULL; | |
23608 | } | |
23609 | ||
23610 | ||
c370783e | 23611 | static PyObject *_wrap_DateSpan_Year(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23612 | PyObject *resultobj; |
23613 | wxDateSpan result; | |
23614 | char *kwnames[] = { | |
23615 | NULL | |
23616 | }; | |
23617 | ||
23618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Year",kwnames)) goto fail; | |
23619 | { | |
23620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23621 | result = wxDateSpan::Year(); | |
23622 | ||
23623 | wxPyEndAllowThreads(__tstate); | |
23624 | if (PyErr_Occurred()) SWIG_fail; | |
23625 | } | |
23626 | { | |
23627 | wxDateSpan * resultptr; | |
23628 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23629 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23630 | } | |
23631 | return resultobj; | |
23632 | fail: | |
23633 | return NULL; | |
23634 | } | |
23635 | ||
23636 | ||
c370783e | 23637 | static PyObject *_wrap_DateSpan_SetYears(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23638 | PyObject *resultobj; |
23639 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23640 | int arg2 ; | |
23641 | wxDateSpan *result; | |
23642 | PyObject * obj0 = 0 ; | |
23643 | PyObject * obj1 = 0 ; | |
23644 | char *kwnames[] = { | |
23645 | (char *) "self",(char *) "n", NULL | |
23646 | }; | |
23647 | ||
23648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetYears",kwnames,&obj0,&obj1)) goto fail; | |
23649 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23650 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 23651 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
23652 | if (PyErr_Occurred()) SWIG_fail; |
23653 | { | |
23654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23655 | { | |
23656 | wxDateSpan &_result_ref = (arg1)->SetYears(arg2); | |
23657 | result = (wxDateSpan *) &_result_ref; | |
23658 | } | |
23659 | ||
23660 | wxPyEndAllowThreads(__tstate); | |
23661 | if (PyErr_Occurred()) SWIG_fail; | |
23662 | } | |
23663 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23664 | return resultobj; | |
23665 | fail: | |
23666 | return NULL; | |
23667 | } | |
23668 | ||
23669 | ||
c370783e | 23670 | static PyObject *_wrap_DateSpan_SetMonths(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23671 | PyObject *resultobj; |
23672 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23673 | int arg2 ; | |
23674 | wxDateSpan *result; | |
23675 | PyObject * obj0 = 0 ; | |
23676 | PyObject * obj1 = 0 ; | |
23677 | char *kwnames[] = { | |
23678 | (char *) "self",(char *) "n", NULL | |
23679 | }; | |
23680 | ||
23681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetMonths",kwnames,&obj0,&obj1)) goto fail; | |
23682 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23683 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 23684 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
23685 | if (PyErr_Occurred()) SWIG_fail; |
23686 | { | |
23687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23688 | { | |
23689 | wxDateSpan &_result_ref = (arg1)->SetMonths(arg2); | |
23690 | result = (wxDateSpan *) &_result_ref; | |
23691 | } | |
23692 | ||
23693 | wxPyEndAllowThreads(__tstate); | |
23694 | if (PyErr_Occurred()) SWIG_fail; | |
23695 | } | |
23696 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23697 | return resultobj; | |
23698 | fail: | |
23699 | return NULL; | |
23700 | } | |
23701 | ||
23702 | ||
c370783e | 23703 | static PyObject *_wrap_DateSpan_SetWeeks(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23704 | PyObject *resultobj; |
23705 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23706 | int arg2 ; | |
23707 | wxDateSpan *result; | |
23708 | PyObject * obj0 = 0 ; | |
23709 | PyObject * obj1 = 0 ; | |
23710 | char *kwnames[] = { | |
23711 | (char *) "self",(char *) "n", NULL | |
23712 | }; | |
23713 | ||
23714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetWeeks",kwnames,&obj0,&obj1)) goto fail; | |
23715 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23716 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 23717 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
23718 | if (PyErr_Occurred()) SWIG_fail; |
23719 | { | |
23720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23721 | { | |
23722 | wxDateSpan &_result_ref = (arg1)->SetWeeks(arg2); | |
23723 | result = (wxDateSpan *) &_result_ref; | |
23724 | } | |
23725 | ||
23726 | wxPyEndAllowThreads(__tstate); | |
23727 | if (PyErr_Occurred()) SWIG_fail; | |
23728 | } | |
23729 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23730 | return resultobj; | |
23731 | fail: | |
23732 | return NULL; | |
23733 | } | |
23734 | ||
23735 | ||
c370783e | 23736 | static PyObject *_wrap_DateSpan_SetDays(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23737 | PyObject *resultobj; |
23738 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23739 | int arg2 ; | |
23740 | wxDateSpan *result; | |
23741 | PyObject * obj0 = 0 ; | |
23742 | PyObject * obj1 = 0 ; | |
23743 | char *kwnames[] = { | |
23744 | (char *) "self",(char *) "n", NULL | |
23745 | }; | |
23746 | ||
23747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetDays",kwnames,&obj0,&obj1)) goto fail; | |
23748 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23749 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 23750 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
23751 | if (PyErr_Occurred()) SWIG_fail; |
23752 | { | |
23753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23754 | { | |
23755 | wxDateSpan &_result_ref = (arg1)->SetDays(arg2); | |
23756 | result = (wxDateSpan *) &_result_ref; | |
23757 | } | |
23758 | ||
23759 | wxPyEndAllowThreads(__tstate); | |
23760 | if (PyErr_Occurred()) SWIG_fail; | |
23761 | } | |
23762 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23763 | return resultobj; | |
23764 | fail: | |
23765 | return NULL; | |
23766 | } | |
23767 | ||
23768 | ||
c370783e | 23769 | static PyObject *_wrap_DateSpan_GetYears(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23770 | PyObject *resultobj; |
23771 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23772 | int result; | |
23773 | PyObject * obj0 = 0 ; | |
23774 | char *kwnames[] = { | |
23775 | (char *) "self", NULL | |
23776 | }; | |
23777 | ||
23778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetYears",kwnames,&obj0)) goto fail; | |
23779 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23780 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23781 | { | |
23782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23783 | result = (int)((wxDateSpan const *)arg1)->GetYears(); | |
23784 | ||
23785 | wxPyEndAllowThreads(__tstate); | |
23786 | if (PyErr_Occurred()) SWIG_fail; | |
23787 | } | |
c370783e | 23788 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
23789 | return resultobj; |
23790 | fail: | |
23791 | return NULL; | |
23792 | } | |
23793 | ||
23794 | ||
c370783e | 23795 | static PyObject *_wrap_DateSpan_GetMonths(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23796 | PyObject *resultobj; |
23797 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23798 | int result; | |
23799 | PyObject * obj0 = 0 ; | |
23800 | char *kwnames[] = { | |
23801 | (char *) "self", NULL | |
23802 | }; | |
23803 | ||
23804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetMonths",kwnames,&obj0)) goto fail; | |
23805 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23806 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23807 | { | |
23808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23809 | result = (int)((wxDateSpan const *)arg1)->GetMonths(); | |
23810 | ||
23811 | wxPyEndAllowThreads(__tstate); | |
23812 | if (PyErr_Occurred()) SWIG_fail; | |
23813 | } | |
c370783e | 23814 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
23815 | return resultobj; |
23816 | fail: | |
23817 | return NULL; | |
23818 | } | |
23819 | ||
23820 | ||
c370783e | 23821 | static PyObject *_wrap_DateSpan_GetWeeks(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23822 | PyObject *resultobj; |
23823 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23824 | int result; | |
23825 | PyObject * obj0 = 0 ; | |
23826 | char *kwnames[] = { | |
23827 | (char *) "self", NULL | |
23828 | }; | |
23829 | ||
23830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetWeeks",kwnames,&obj0)) goto fail; | |
23831 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23832 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23833 | { | |
23834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23835 | result = (int)((wxDateSpan const *)arg1)->GetWeeks(); | |
23836 | ||
23837 | wxPyEndAllowThreads(__tstate); | |
23838 | if (PyErr_Occurred()) SWIG_fail; | |
23839 | } | |
c370783e | 23840 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
23841 | return resultobj; |
23842 | fail: | |
23843 | return NULL; | |
23844 | } | |
23845 | ||
23846 | ||
c370783e | 23847 | static PyObject *_wrap_DateSpan_GetDays(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23848 | PyObject *resultobj; |
23849 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23850 | int result; | |
23851 | PyObject * obj0 = 0 ; | |
23852 | char *kwnames[] = { | |
23853 | (char *) "self", NULL | |
23854 | }; | |
23855 | ||
23856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetDays",kwnames,&obj0)) goto fail; | |
23857 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23858 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23859 | { | |
23860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23861 | result = (int)((wxDateSpan const *)arg1)->GetDays(); | |
23862 | ||
23863 | wxPyEndAllowThreads(__tstate); | |
23864 | if (PyErr_Occurred()) SWIG_fail; | |
23865 | } | |
c370783e | 23866 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
23867 | return resultobj; |
23868 | fail: | |
23869 | return NULL; | |
23870 | } | |
23871 | ||
23872 | ||
c370783e | 23873 | static PyObject *_wrap_DateSpan_GetTotalDays(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23874 | PyObject *resultobj; |
23875 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23876 | int result; | |
23877 | PyObject * obj0 = 0 ; | |
23878 | char *kwnames[] = { | |
23879 | (char *) "self", NULL | |
23880 | }; | |
23881 | ||
23882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetTotalDays",kwnames,&obj0)) goto fail; | |
23883 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23885 | { | |
23886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23887 | result = (int)((wxDateSpan const *)arg1)->GetTotalDays(); | |
23888 | ||
23889 | wxPyEndAllowThreads(__tstate); | |
23890 | if (PyErr_Occurred()) SWIG_fail; | |
23891 | } | |
c370783e | 23892 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
23893 | return resultobj; |
23894 | fail: | |
23895 | return NULL; | |
23896 | } | |
23897 | ||
23898 | ||
c370783e | 23899 | static PyObject *_wrap_DateSpan_Add(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23900 | PyObject *resultobj; |
23901 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23902 | wxDateSpan *arg2 = 0 ; | |
23903 | wxDateSpan *result; | |
23904 | PyObject * obj0 = 0 ; | |
23905 | PyObject * obj1 = 0 ; | |
23906 | char *kwnames[] = { | |
23907 | (char *) "self",(char *) "other", NULL | |
23908 | }; | |
23909 | ||
23910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Add",kwnames,&obj0,&obj1)) goto fail; | |
23911 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23912 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23913 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23914 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23915 | SWIG_fail; | |
23916 | if (arg2 == NULL) { | |
23917 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23918 | SWIG_fail; | |
23919 | } | |
23920 | { | |
23921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23922 | { | |
23923 | wxDateSpan &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2); | |
23924 | result = (wxDateSpan *) &_result_ref; | |
23925 | } | |
23926 | ||
23927 | wxPyEndAllowThreads(__tstate); | |
23928 | if (PyErr_Occurred()) SWIG_fail; | |
23929 | } | |
23930 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23931 | return resultobj; | |
23932 | fail: | |
23933 | return NULL; | |
23934 | } | |
23935 | ||
23936 | ||
c370783e | 23937 | static PyObject *_wrap_DateSpan_Subtract(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23938 | PyObject *resultobj; |
23939 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23940 | wxDateSpan *arg2 = 0 ; | |
23941 | wxDateSpan *result; | |
23942 | PyObject * obj0 = 0 ; | |
23943 | PyObject * obj1 = 0 ; | |
23944 | char *kwnames[] = { | |
23945 | (char *) "self",(char *) "other", NULL | |
23946 | }; | |
23947 | ||
23948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
23949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23951 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23952 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23953 | SWIG_fail; | |
23954 | if (arg2 == NULL) { | |
23955 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23956 | SWIG_fail; | |
23957 | } | |
23958 | { | |
23959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23960 | { | |
23961 | wxDateSpan &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2); | |
23962 | result = (wxDateSpan *) &_result_ref; | |
23963 | } | |
23964 | ||
23965 | wxPyEndAllowThreads(__tstate); | |
23966 | if (PyErr_Occurred()) SWIG_fail; | |
23967 | } | |
23968 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23969 | return resultobj; | |
23970 | fail: | |
23971 | return NULL; | |
23972 | } | |
23973 | ||
23974 | ||
c370783e | 23975 | static PyObject *_wrap_DateSpan_Neg(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23976 | PyObject *resultobj; |
23977 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23978 | wxDateSpan *result; | |
23979 | PyObject * obj0 = 0 ; | |
23980 | char *kwnames[] = { | |
23981 | (char *) "self", NULL | |
23982 | }; | |
23983 | ||
23984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Neg",kwnames,&obj0)) goto fail; | |
23985 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23986 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23987 | { | |
23988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23989 | { | |
23990 | wxDateSpan &_result_ref = (arg1)->Neg(); | |
23991 | result = (wxDateSpan *) &_result_ref; | |
23992 | } | |
23993 | ||
23994 | wxPyEndAllowThreads(__tstate); | |
23995 | if (PyErr_Occurred()) SWIG_fail; | |
23996 | } | |
23997 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23998 | return resultobj; | |
23999 | fail: | |
24000 | return NULL; | |
24001 | } | |
24002 | ||
24003 | ||
c370783e | 24004 | static PyObject *_wrap_DateSpan_Multiply(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24005 | PyObject *resultobj; |
24006 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
24007 | int arg2 ; | |
24008 | wxDateSpan *result; | |
24009 | PyObject * obj0 = 0 ; | |
24010 | PyObject * obj1 = 0 ; | |
24011 | char *kwnames[] = { | |
24012 | (char *) "self",(char *) "factor", NULL | |
24013 | }; | |
24014 | ||
24015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Multiply",kwnames,&obj0,&obj1)) goto fail; | |
24016 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
24017 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 24018 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
24019 | if (PyErr_Occurred()) SWIG_fail; |
24020 | { | |
24021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24022 | { | |
24023 | wxDateSpan &_result_ref = (arg1)->Multiply(arg2); | |
24024 | result = (wxDateSpan *) &_result_ref; | |
24025 | } | |
24026 | ||
24027 | wxPyEndAllowThreads(__tstate); | |
24028 | if (PyErr_Occurred()) SWIG_fail; | |
24029 | } | |
24030 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
24031 | return resultobj; | |
24032 | fail: | |
24033 | return NULL; | |
24034 | } | |
24035 | ||
24036 | ||
c370783e | 24037 | static PyObject *_wrap_DateSpan___iadd__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24038 | PyObject *resultobj; |
24039 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
24040 | wxDateSpan *arg2 = 0 ; | |
24041 | wxDateSpan *result; | |
24042 | PyObject * obj0 = 0 ; | |
24043 | PyObject * obj1 = 0 ; | |
24044 | char *kwnames[] = { | |
24045 | (char *) "self",(char *) "other", NULL | |
24046 | }; | |
24047 | ||
24048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
24049 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
c370783e | 24050 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
24051 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, |
24052 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24053 | SWIG_fail; | |
24054 | if (arg2 == NULL) { | |
24055 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24056 | SWIG_fail; | |
24057 | } | |
24058 | { | |
24059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24060 | { | |
24061 | wxDateSpan &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2); | |
24062 | result = (wxDateSpan *) &_result_ref; | |
24063 | } | |
24064 | ||
24065 | wxPyEndAllowThreads(__tstate); | |
24066 | if (PyErr_Occurred()) SWIG_fail; | |
24067 | } | |
c370783e | 24068 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1); |
d55e5bfc RD |
24069 | return resultobj; |
24070 | fail: | |
24071 | return NULL; | |
24072 | } | |
24073 | ||
24074 | ||
c370783e | 24075 | static PyObject *_wrap_DateSpan___isub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24076 | PyObject *resultobj; |
24077 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
24078 | wxDateSpan *arg2 = 0 ; | |
24079 | wxDateSpan *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___isub__",kwnames,&obj0,&obj1)) goto fail; | |
24087 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
c370783e | 24088 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
24089 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, |
24090 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24091 | SWIG_fail; | |
24092 | if (arg2 == NULL) { | |
24093 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24094 | SWIG_fail; | |
24095 | } | |
24096 | { | |
24097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24098 | { | |
24099 | wxDateSpan &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2); | |
24100 | result = (wxDateSpan *) &_result_ref; | |
24101 | } | |
24102 | ||
24103 | wxPyEndAllowThreads(__tstate); | |
24104 | if (PyErr_Occurred()) SWIG_fail; | |
24105 | } | |
c370783e | 24106 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1); |
d55e5bfc RD |
24107 | return resultobj; |
24108 | fail: | |
24109 | return NULL; | |
24110 | } | |
24111 | ||
24112 | ||
c370783e | 24113 | static PyObject *_wrap_DateSpan___neg__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24114 | PyObject *resultobj; |
24115 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
24116 | wxDateSpan *result; | |
24117 | PyObject * obj0 = 0 ; | |
24118 | char *kwnames[] = { | |
24119 | (char *) "self", NULL | |
24120 | }; | |
24121 | ||
24122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan___neg__",kwnames,&obj0)) goto fail; | |
24123 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
24124 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24125 | { | |
24126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24127 | { | |
24128 | wxDateSpan &_result_ref = (arg1)->operator -(); | |
24129 | result = (wxDateSpan *) &_result_ref; | |
24130 | } | |
24131 | ||
24132 | wxPyEndAllowThreads(__tstate); | |
24133 | if (PyErr_Occurred()) SWIG_fail; | |
24134 | } | |
24135 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
24136 | return resultobj; | |
24137 | fail: | |
24138 | return NULL; | |
24139 | } | |
24140 | ||
24141 | ||
c370783e | 24142 | static PyObject *_wrap_DateSpan___imul__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24143 | PyObject *resultobj; |
24144 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
24145 | int arg2 ; | |
24146 | wxDateSpan *result; | |
24147 | PyObject * obj0 = 0 ; | |
24148 | PyObject * obj1 = 0 ; | |
24149 | char *kwnames[] = { | |
24150 | (char *) "self",(char *) "factor", NULL | |
24151 | }; | |
24152 | ||
24153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___imul__",kwnames,&obj0,&obj1)) goto fail; | |
24154 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
c370783e RD |
24155 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
24156 | arg2 = (int)SWIG_As_int(obj1); | |
d55e5bfc RD |
24157 | if (PyErr_Occurred()) SWIG_fail; |
24158 | { | |
24159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24160 | { | |
24161 | wxDateSpan &_result_ref = (arg1)->operator *=(arg2); | |
24162 | result = (wxDateSpan *) &_result_ref; | |
24163 | } | |
24164 | ||
24165 | wxPyEndAllowThreads(__tstate); | |
24166 | if (PyErr_Occurred()) SWIG_fail; | |
24167 | } | |
c370783e | 24168 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1); |
d55e5bfc RD |
24169 | return resultobj; |
24170 | fail: | |
24171 | return NULL; | |
24172 | } | |
24173 | ||
24174 | ||
c370783e | 24175 | static PyObject *_wrap_DateSpan___add__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24176 | PyObject *resultobj; |
24177 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
24178 | wxDateSpan *arg2 = 0 ; | |
24179 | wxDateSpan result; | |
24180 | PyObject * obj0 = 0 ; | |
24181 | PyObject * obj1 = 0 ; | |
24182 | char *kwnames[] = { | |
24183 | (char *) "self",(char *) "other", NULL | |
24184 | }; | |
24185 | ||
24186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___add__",kwnames,&obj0,&obj1)) goto fail; | |
24187 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
24188 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24189 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
24190 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24191 | SWIG_fail; | |
24192 | if (arg2 == NULL) { | |
24193 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24194 | SWIG_fail; | |
24195 | } | |
24196 | { | |
24197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24198 | result = wxDateSpan___add__(arg1,(wxDateSpan const &)*arg2); | |
24199 | ||
24200 | wxPyEndAllowThreads(__tstate); | |
24201 | if (PyErr_Occurred()) SWIG_fail; | |
24202 | } | |
24203 | { | |
24204 | wxDateSpan * resultptr; | |
24205 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
24206 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
24207 | } | |
24208 | return resultobj; | |
24209 | fail: | |
24210 | return NULL; | |
24211 | } | |
24212 | ||
24213 | ||
c370783e | 24214 | static PyObject *_wrap_DateSpan___sub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24215 | PyObject *resultobj; |
24216 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
24217 | wxDateSpan *arg2 = 0 ; | |
24218 | wxDateSpan result; | |
24219 | PyObject * obj0 = 0 ; | |
24220 | PyObject * obj1 = 0 ; | |
24221 | char *kwnames[] = { | |
24222 | (char *) "self",(char *) "other", NULL | |
24223 | }; | |
24224 | ||
24225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___sub__",kwnames,&obj0,&obj1)) goto fail; | |
24226 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
24227 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24228 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
24229 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24230 | SWIG_fail; | |
24231 | if (arg2 == NULL) { | |
24232 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24233 | SWIG_fail; | |
24234 | } | |
24235 | { | |
24236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24237 | result = wxDateSpan___sub__(arg1,(wxDateSpan const &)*arg2); | |
24238 | ||
24239 | wxPyEndAllowThreads(__tstate); | |
24240 | if (PyErr_Occurred()) SWIG_fail; | |
24241 | } | |
24242 | { | |
24243 | wxDateSpan * resultptr; | |
24244 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
24245 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
24246 | } | |
24247 | return resultobj; | |
24248 | fail: | |
24249 | return NULL; | |
24250 | } | |
24251 | ||
24252 | ||
c370783e | 24253 | static PyObject *_wrap_DateSpan___mul__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24254 | PyObject *resultobj; |
24255 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
24256 | int arg2 ; | |
24257 | wxDateSpan result; | |
24258 | PyObject * obj0 = 0 ; | |
24259 | PyObject * obj1 = 0 ; | |
24260 | char *kwnames[] = { | |
24261 | (char *) "self",(char *) "n", NULL | |
24262 | }; | |
24263 | ||
24264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___mul__",kwnames,&obj0,&obj1)) goto fail; | |
24265 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
24266 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 24267 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
24268 | if (PyErr_Occurred()) SWIG_fail; |
24269 | { | |
24270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24271 | result = wxDateSpan___mul__(arg1,arg2); | |
24272 | ||
24273 | wxPyEndAllowThreads(__tstate); | |
24274 | if (PyErr_Occurred()) SWIG_fail; | |
24275 | } | |
24276 | { | |
24277 | wxDateSpan * resultptr; | |
24278 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
24279 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
24280 | } | |
24281 | return resultobj; | |
24282 | fail: | |
24283 | return NULL; | |
24284 | } | |
24285 | ||
24286 | ||
c370783e | 24287 | static PyObject *_wrap_DateSpan___rmul__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24288 | PyObject *resultobj; |
24289 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
24290 | int arg2 ; | |
24291 | wxDateSpan result; | |
24292 | PyObject * obj0 = 0 ; | |
24293 | PyObject * obj1 = 0 ; | |
24294 | char *kwnames[] = { | |
24295 | (char *) "self",(char *) "n", NULL | |
24296 | }; | |
24297 | ||
24298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___rmul__",kwnames,&obj0,&obj1)) goto fail; | |
24299 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
24300 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 24301 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
24302 | if (PyErr_Occurred()) SWIG_fail; |
24303 | { | |
24304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24305 | result = wxDateSpan___rmul__(arg1,arg2); | |
24306 | ||
24307 | wxPyEndAllowThreads(__tstate); | |
24308 | if (PyErr_Occurred()) SWIG_fail; | |
24309 | } | |
24310 | { | |
24311 | wxDateSpan * resultptr; | |
24312 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
24313 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
24314 | } | |
24315 | return resultobj; | |
24316 | fail: | |
24317 | return NULL; | |
24318 | } | |
24319 | ||
24320 | ||
c370783e | 24321 | static PyObject *_wrap_DateSpan___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24322 | PyObject *resultobj; |
24323 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
24324 | wxDateSpan *arg2 = (wxDateSpan *) 0 ; | |
24325 | bool result; | |
24326 | PyObject * obj0 = 0 ; | |
24327 | PyObject * obj1 = 0 ; | |
24328 | char *kwnames[] = { | |
24329 | (char *) "self",(char *) "other", NULL | |
24330 | }; | |
24331 | ||
24332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
24333 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
24334 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24335 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
24336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24337 | { | |
24338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24339 | result = (bool)wxDateSpan___eq__(arg1,(wxDateSpan const *)arg2); | |
24340 | ||
24341 | wxPyEndAllowThreads(__tstate); | |
24342 | if (PyErr_Occurred()) SWIG_fail; | |
24343 | } | |
24344 | { | |
24345 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24346 | } | |
24347 | return resultobj; | |
24348 | fail: | |
24349 | return NULL; | |
24350 | } | |
24351 | ||
24352 | ||
c370783e | 24353 | static PyObject *_wrap_DateSpan___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24354 | PyObject *resultobj; |
24355 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
24356 | wxDateSpan *arg2 = (wxDateSpan *) 0 ; | |
24357 | bool result; | |
24358 | PyObject * obj0 = 0 ; | |
24359 | PyObject * obj1 = 0 ; | |
24360 | char *kwnames[] = { | |
24361 | (char *) "self",(char *) "other", NULL | |
24362 | }; | |
24363 | ||
24364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
24365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
24366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24367 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
24368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24369 | { | |
24370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24371 | result = (bool)wxDateSpan___ne__(arg1,(wxDateSpan const *)arg2); | |
24372 | ||
24373 | wxPyEndAllowThreads(__tstate); | |
24374 | if (PyErr_Occurred()) SWIG_fail; | |
24375 | } | |
24376 | { | |
24377 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24378 | } | |
24379 | return resultobj; | |
24380 | fail: | |
24381 | return NULL; | |
24382 | } | |
24383 | ||
24384 | ||
c370783e | 24385 | static PyObject * DateSpan_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
24386 | PyObject *obj; |
24387 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24388 | SWIG_TypeClientData(SWIGTYPE_p_wxDateSpan, obj); | |
24389 | Py_INCREF(obj); | |
24390 | return Py_BuildValue((char *)""); | |
24391 | } | |
c370783e | 24392 | static PyObject *_wrap_GetLocalTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24393 | PyObject *resultobj; |
24394 | long result; | |
24395 | char *kwnames[] = { | |
24396 | NULL | |
24397 | }; | |
24398 | ||
24399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTime",kwnames)) goto fail; | |
24400 | { | |
24401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24402 | result = (long)wxGetLocalTime(); | |
24403 | ||
24404 | wxPyEndAllowThreads(__tstate); | |
24405 | if (PyErr_Occurred()) SWIG_fail; | |
24406 | } | |
c370783e | 24407 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
24408 | return resultobj; |
24409 | fail: | |
24410 | return NULL; | |
24411 | } | |
24412 | ||
24413 | ||
c370783e | 24414 | static PyObject *_wrap_GetUTCTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24415 | PyObject *resultobj; |
24416 | long result; | |
24417 | char *kwnames[] = { | |
24418 | NULL | |
24419 | }; | |
24420 | ||
24421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUTCTime",kwnames)) goto fail; | |
24422 | { | |
24423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24424 | result = (long)wxGetUTCTime(); | |
24425 | ||
24426 | wxPyEndAllowThreads(__tstate); | |
24427 | if (PyErr_Occurred()) SWIG_fail; | |
24428 | } | |
c370783e | 24429 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
24430 | return resultobj; |
24431 | fail: | |
24432 | return NULL; | |
24433 | } | |
24434 | ||
24435 | ||
c370783e | 24436 | static PyObject *_wrap_GetCurrentTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24437 | PyObject *resultobj; |
24438 | long result; | |
24439 | char *kwnames[] = { | |
24440 | NULL | |
24441 | }; | |
24442 | ||
24443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentTime",kwnames)) goto fail; | |
24444 | { | |
24445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24446 | result = (long)wxGetCurrentTime(); | |
24447 | ||
24448 | wxPyEndAllowThreads(__tstate); | |
24449 | if (PyErr_Occurred()) SWIG_fail; | |
24450 | } | |
c370783e | 24451 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
24452 | return resultobj; |
24453 | fail: | |
24454 | return NULL; | |
24455 | } | |
24456 | ||
24457 | ||
c370783e | 24458 | static PyObject *_wrap_GetLocalTimeMillis(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24459 | PyObject *resultobj; |
24460 | wxLongLong result; | |
24461 | char *kwnames[] = { | |
24462 | NULL | |
24463 | }; | |
24464 | ||
24465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTimeMillis",kwnames)) goto fail; | |
24466 | { | |
24467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24468 | result = wxGetLocalTimeMillis(); | |
24469 | ||
24470 | wxPyEndAllowThreads(__tstate); | |
24471 | if (PyErr_Occurred()) SWIG_fail; | |
24472 | } | |
24473 | { | |
24474 | PyObject *hi, *lo, *shifter, *shifted; | |
24475 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
24476 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
24477 | shifter = PyLong_FromLong(32); | |
24478 | shifted = PyNumber_Lshift(hi, shifter); | |
24479 | resultobj = PyNumber_Or(shifted, lo); | |
24480 | Py_DECREF(hi); | |
24481 | Py_DECREF(lo); | |
24482 | Py_DECREF(shifter); | |
24483 | Py_DECREF(shifted); | |
24484 | } | |
24485 | return resultobj; | |
24486 | fail: | |
24487 | return NULL; | |
24488 | } | |
24489 | ||
24490 | ||
c370783e | 24491 | static int _wrap_DefaultDateTime_set(PyObject *) { |
d55e5bfc RD |
24492 | PyErr_SetString(PyExc_TypeError,"Variable DefaultDateTime is read-only."); |
24493 | return 1; | |
24494 | } | |
24495 | ||
24496 | ||
24497 | static PyObject *_wrap_DefaultDateTime_get() { | |
24498 | PyObject *pyobj; | |
24499 | ||
24500 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultDateTime), SWIGTYPE_p_wxDateTime, 0); | |
24501 | return pyobj; | |
24502 | } | |
24503 | ||
24504 | ||
c370783e | 24505 | static PyObject *_wrap_new_DataFormat(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24506 | PyObject *resultobj; |
24507 | int arg1 ; | |
24508 | wxDataFormat *result; | |
24509 | PyObject * obj0 = 0 ; | |
24510 | char *kwnames[] = { | |
24511 | (char *) "type", NULL | |
24512 | }; | |
24513 | ||
24514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DataFormat",kwnames,&obj0)) goto fail; | |
c370783e | 24515 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
24516 | if (PyErr_Occurred()) SWIG_fail; |
24517 | { | |
24518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24519 | result = (wxDataFormat *)new wxDataFormat((wxDataFormatId )arg1); | |
24520 | ||
24521 | wxPyEndAllowThreads(__tstate); | |
24522 | if (PyErr_Occurred()) SWIG_fail; | |
24523 | } | |
24524 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1); | |
24525 | return resultobj; | |
24526 | fail: | |
24527 | return NULL; | |
24528 | } | |
24529 | ||
24530 | ||
c370783e | 24531 | static PyObject *_wrap_new_CustomDataFormat(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24532 | PyObject *resultobj; |
24533 | wxString *arg1 = 0 ; | |
24534 | wxDataFormat *result; | |
b411df4a | 24535 | bool temp1 = false ; |
d55e5bfc RD |
24536 | PyObject * obj0 = 0 ; |
24537 | char *kwnames[] = { | |
24538 | (char *) "format", NULL | |
24539 | }; | |
24540 | ||
24541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CustomDataFormat",kwnames,&obj0)) goto fail; | |
24542 | { | |
24543 | arg1 = wxString_in_helper(obj0); | |
24544 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 24545 | temp1 = true; |
d55e5bfc RD |
24546 | } |
24547 | { | |
24548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24549 | result = (wxDataFormat *)new wxDataFormat((wxString const &)*arg1); | |
24550 | ||
24551 | wxPyEndAllowThreads(__tstate); | |
24552 | if (PyErr_Occurred()) SWIG_fail; | |
24553 | } | |
24554 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1); | |
24555 | { | |
24556 | if (temp1) | |
24557 | delete arg1; | |
24558 | } | |
24559 | return resultobj; | |
24560 | fail: | |
24561 | { | |
24562 | if (temp1) | |
24563 | delete arg1; | |
24564 | } | |
24565 | return NULL; | |
24566 | } | |
24567 | ||
24568 | ||
c370783e | 24569 | static PyObject *_wrap_delete_DataFormat(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24570 | PyObject *resultobj; |
24571 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24572 | PyObject * obj0 = 0 ; | |
24573 | char *kwnames[] = { | |
24574 | (char *) "self", NULL | |
24575 | }; | |
24576 | ||
24577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataFormat",kwnames,&obj0)) goto fail; | |
24578 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24579 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24580 | { | |
24581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24582 | delete arg1; | |
24583 | ||
24584 | wxPyEndAllowThreads(__tstate); | |
24585 | if (PyErr_Occurred()) SWIG_fail; | |
24586 | } | |
24587 | Py_INCREF(Py_None); resultobj = Py_None; | |
24588 | return resultobj; | |
24589 | fail: | |
24590 | return NULL; | |
24591 | } | |
24592 | ||
24593 | ||
c370783e | 24594 | static PyObject *_wrap_DataFormat___eq____SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
24595 | PyObject *resultobj; |
24596 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24597 | int arg2 ; | |
24598 | bool result; | |
24599 | PyObject * obj0 = 0 ; | |
24600 | PyObject * obj1 = 0 ; | |
24601 | ||
24602 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail; | |
24603 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24604 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 24605 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
24606 | if (PyErr_Occurred()) SWIG_fail; |
24607 | { | |
24608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24609 | result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormatId )arg2); | |
24610 | ||
24611 | wxPyEndAllowThreads(__tstate); | |
24612 | if (PyErr_Occurred()) SWIG_fail; | |
24613 | } | |
24614 | { | |
24615 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24616 | } | |
24617 | return resultobj; | |
24618 | fail: | |
24619 | return NULL; | |
24620 | } | |
24621 | ||
24622 | ||
c370783e | 24623 | static PyObject *_wrap_DataFormat___ne____SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
24624 | PyObject *resultobj; |
24625 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24626 | int arg2 ; | |
24627 | bool result; | |
24628 | PyObject * obj0 = 0 ; | |
24629 | PyObject * obj1 = 0 ; | |
24630 | ||
24631 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail; | |
24632 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24633 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 24634 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
24635 | if (PyErr_Occurred()) SWIG_fail; |
24636 | { | |
24637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24638 | result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormatId )arg2); | |
24639 | ||
24640 | wxPyEndAllowThreads(__tstate); | |
24641 | if (PyErr_Occurred()) SWIG_fail; | |
24642 | } | |
24643 | { | |
24644 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24645 | } | |
24646 | return resultobj; | |
24647 | fail: | |
24648 | return NULL; | |
24649 | } | |
24650 | ||
24651 | ||
c370783e | 24652 | static PyObject *_wrap_DataFormat___eq____SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
24653 | PyObject *resultobj; |
24654 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24655 | wxDataFormat *arg2 = 0 ; | |
24656 | bool result; | |
24657 | PyObject * obj0 = 0 ; | |
24658 | PyObject * obj1 = 0 ; | |
24659 | ||
24660 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail; | |
24661 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24662 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24663 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24664 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24665 | SWIG_fail; | |
24666 | if (arg2 == NULL) { | |
24667 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24668 | SWIG_fail; | |
24669 | } | |
24670 | { | |
24671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24672 | result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormat const &)*arg2); | |
24673 | ||
24674 | wxPyEndAllowThreads(__tstate); | |
24675 | if (PyErr_Occurred()) SWIG_fail; | |
24676 | } | |
24677 | { | |
24678 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24679 | } | |
24680 | return resultobj; | |
24681 | fail: | |
24682 | return NULL; | |
24683 | } | |
24684 | ||
24685 | ||
24686 | static PyObject *_wrap_DataFormat___eq__(PyObject *self, PyObject *args) { | |
24687 | int argc; | |
24688 | PyObject *argv[3]; | |
24689 | int ii; | |
24690 | ||
24691 | argc = PyObject_Length(args); | |
24692 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
24693 | argv[ii] = PyTuple_GetItem(args,ii); | |
24694 | } | |
24695 | if (argc == 2) { | |
24696 | int _v; | |
24697 | { | |
24698 | void *ptr; | |
24699 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
24700 | _v = 0; | |
24701 | PyErr_Clear(); | |
24702 | } else { | |
24703 | _v = 1; | |
24704 | } | |
24705 | } | |
24706 | if (_v) { | |
24707 | { | |
24708 | void *ptr; | |
24709 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
24710 | _v = 0; | |
24711 | PyErr_Clear(); | |
24712 | } else { | |
24713 | _v = 1; | |
24714 | } | |
24715 | } | |
24716 | if (_v) { | |
24717 | return _wrap_DataFormat___eq____SWIG_1(self,args); | |
24718 | } | |
24719 | } | |
24720 | } | |
24721 | if (argc == 2) { | |
24722 | int _v; | |
24723 | { | |
24724 | void *ptr; | |
24725 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
24726 | _v = 0; | |
24727 | PyErr_Clear(); | |
24728 | } else { | |
24729 | _v = 1; | |
24730 | } | |
24731 | } | |
24732 | if (_v) { | |
c370783e | 24733 | _v = SWIG_Check_int(argv[1]); |
d55e5bfc RD |
24734 | if (_v) { |
24735 | return _wrap_DataFormat___eq____SWIG_0(self,args); | |
24736 | } | |
24737 | } | |
24738 | } | |
24739 | ||
24740 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___eq__'"); | |
24741 | return NULL; | |
24742 | } | |
24743 | ||
24744 | ||
c370783e | 24745 | static PyObject *_wrap_DataFormat___ne____SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
24746 | PyObject *resultobj; |
24747 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24748 | wxDataFormat *arg2 = 0 ; | |
24749 | bool result; | |
24750 | PyObject * obj0 = 0 ; | |
24751 | PyObject * obj1 = 0 ; | |
24752 | ||
24753 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail; | |
24754 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24755 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24756 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24757 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24758 | SWIG_fail; | |
24759 | if (arg2 == NULL) { | |
24760 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24761 | SWIG_fail; | |
24762 | } | |
24763 | { | |
24764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24765 | result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormat const &)*arg2); | |
24766 | ||
24767 | wxPyEndAllowThreads(__tstate); | |
24768 | if (PyErr_Occurred()) SWIG_fail; | |
24769 | } | |
24770 | { | |
24771 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24772 | } | |
24773 | return resultobj; | |
24774 | fail: | |
24775 | return NULL; | |
24776 | } | |
24777 | ||
24778 | ||
24779 | static PyObject *_wrap_DataFormat___ne__(PyObject *self, PyObject *args) { | |
24780 | int argc; | |
24781 | PyObject *argv[3]; | |
24782 | int ii; | |
24783 | ||
24784 | argc = PyObject_Length(args); | |
24785 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
24786 | argv[ii] = PyTuple_GetItem(args,ii); | |
24787 | } | |
24788 | if (argc == 2) { | |
24789 | int _v; | |
24790 | { | |
24791 | void *ptr; | |
24792 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
24793 | _v = 0; | |
24794 | PyErr_Clear(); | |
24795 | } else { | |
24796 | _v = 1; | |
24797 | } | |
24798 | } | |
24799 | if (_v) { | |
24800 | { | |
24801 | void *ptr; | |
24802 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
24803 | _v = 0; | |
24804 | PyErr_Clear(); | |
24805 | } else { | |
24806 | _v = 1; | |
24807 | } | |
24808 | } | |
24809 | if (_v) { | |
24810 | return _wrap_DataFormat___ne____SWIG_1(self,args); | |
24811 | } | |
24812 | } | |
24813 | } | |
24814 | if (argc == 2) { | |
24815 | int _v; | |
24816 | { | |
24817 | void *ptr; | |
24818 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
24819 | _v = 0; | |
24820 | PyErr_Clear(); | |
24821 | } else { | |
24822 | _v = 1; | |
24823 | } | |
24824 | } | |
24825 | if (_v) { | |
c370783e | 24826 | _v = SWIG_Check_int(argv[1]); |
d55e5bfc RD |
24827 | if (_v) { |
24828 | return _wrap_DataFormat___ne____SWIG_0(self,args); | |
24829 | } | |
24830 | } | |
24831 | } | |
24832 | ||
24833 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___ne__'"); | |
24834 | return NULL; | |
24835 | } | |
24836 | ||
24837 | ||
c370783e | 24838 | static PyObject *_wrap_DataFormat_SetType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24839 | PyObject *resultobj; |
24840 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24841 | int arg2 ; | |
24842 | PyObject * obj0 = 0 ; | |
24843 | PyObject * obj1 = 0 ; | |
24844 | char *kwnames[] = { | |
24845 | (char *) "self",(char *) "format", NULL | |
24846 | }; | |
24847 | ||
24848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetType",kwnames,&obj0,&obj1)) goto fail; | |
24849 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24850 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 24851 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
24852 | if (PyErr_Occurred()) SWIG_fail; |
24853 | { | |
24854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24855 | (arg1)->SetType((wxDataFormatId )arg2); | |
24856 | ||
24857 | wxPyEndAllowThreads(__tstate); | |
24858 | if (PyErr_Occurred()) SWIG_fail; | |
24859 | } | |
24860 | Py_INCREF(Py_None); resultobj = Py_None; | |
24861 | return resultobj; | |
24862 | fail: | |
24863 | return NULL; | |
24864 | } | |
24865 | ||
24866 | ||
c370783e | 24867 | static PyObject *_wrap_DataFormat_GetType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24868 | PyObject *resultobj; |
24869 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24870 | int result; | |
24871 | PyObject * obj0 = 0 ; | |
24872 | char *kwnames[] = { | |
24873 | (char *) "self", NULL | |
24874 | }; | |
24875 | ||
24876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetType",kwnames,&obj0)) goto fail; | |
24877 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24878 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24879 | { | |
24880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24881 | result = (int)((wxDataFormat const *)arg1)->GetType(); | |
24882 | ||
24883 | wxPyEndAllowThreads(__tstate); | |
24884 | if (PyErr_Occurred()) SWIG_fail; | |
24885 | } | |
c370783e | 24886 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
24887 | return resultobj; |
24888 | fail: | |
24889 | return NULL; | |
24890 | } | |
24891 | ||
24892 | ||
c370783e | 24893 | static PyObject *_wrap_DataFormat_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24894 | PyObject *resultobj; |
24895 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24896 | wxString result; | |
24897 | PyObject * obj0 = 0 ; | |
24898 | char *kwnames[] = { | |
24899 | (char *) "self", NULL | |
24900 | }; | |
24901 | ||
24902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetId",kwnames,&obj0)) goto fail; | |
24903 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24904 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24905 | { | |
24906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24907 | result = ((wxDataFormat const *)arg1)->GetId(); | |
24908 | ||
24909 | wxPyEndAllowThreads(__tstate); | |
24910 | if (PyErr_Occurred()) SWIG_fail; | |
24911 | } | |
24912 | { | |
24913 | #if wxUSE_UNICODE | |
24914 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24915 | #else | |
24916 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24917 | #endif | |
24918 | } | |
24919 | return resultobj; | |
24920 | fail: | |
24921 | return NULL; | |
24922 | } | |
24923 | ||
24924 | ||
c370783e | 24925 | static PyObject *_wrap_DataFormat_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24926 | PyObject *resultobj; |
24927 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24928 | wxString *arg2 = 0 ; | |
b411df4a | 24929 | bool temp2 = false ; |
d55e5bfc RD |
24930 | PyObject * obj0 = 0 ; |
24931 | PyObject * obj1 = 0 ; | |
24932 | char *kwnames[] = { | |
24933 | (char *) "self",(char *) "format", NULL | |
24934 | }; | |
24935 | ||
24936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetId",kwnames,&obj0,&obj1)) goto fail; | |
24937 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24938 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24939 | { | |
24940 | arg2 = wxString_in_helper(obj1); | |
24941 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 24942 | temp2 = true; |
d55e5bfc RD |
24943 | } |
24944 | { | |
24945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24946 | (arg1)->SetId((wxString const &)*arg2); | |
24947 | ||
24948 | wxPyEndAllowThreads(__tstate); | |
24949 | if (PyErr_Occurred()) SWIG_fail; | |
24950 | } | |
24951 | Py_INCREF(Py_None); resultobj = Py_None; | |
24952 | { | |
24953 | if (temp2) | |
24954 | delete arg2; | |
24955 | } | |
24956 | return resultobj; | |
24957 | fail: | |
24958 | { | |
24959 | if (temp2) | |
24960 | delete arg2; | |
24961 | } | |
24962 | return NULL; | |
24963 | } | |
24964 | ||
24965 | ||
c370783e | 24966 | static PyObject * DataFormat_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
24967 | PyObject *obj; |
24968 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24969 | SWIG_TypeClientData(SWIGTYPE_p_wxDataFormat, obj); | |
24970 | Py_INCREF(obj); | |
24971 | return Py_BuildValue((char *)""); | |
24972 | } | |
c370783e | 24973 | static int _wrap_FormatInvalid_set(PyObject *) { |
d55e5bfc RD |
24974 | PyErr_SetString(PyExc_TypeError,"Variable FormatInvalid is read-only."); |
24975 | return 1; | |
24976 | } | |
24977 | ||
24978 | ||
24979 | static PyObject *_wrap_FormatInvalid_get() { | |
24980 | PyObject *pyobj; | |
24981 | ||
24982 | pyobj = SWIG_NewPointerObj((void *)(&wxFormatInvalid), SWIGTYPE_p_wxDataFormat, 0); | |
24983 | return pyobj; | |
24984 | } | |
24985 | ||
24986 | ||
c370783e | 24987 | static PyObject *_wrap_delete_DataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24988 | PyObject *resultobj; |
24989 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24990 | PyObject * obj0 = 0 ; | |
24991 | char *kwnames[] = { | |
24992 | (char *) "self", NULL | |
24993 | }; | |
24994 | ||
24995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataObject",kwnames,&obj0)) goto fail; | |
24996 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
24997 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24998 | { | |
24999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25000 | delete arg1; | |
25001 | ||
25002 | wxPyEndAllowThreads(__tstate); | |
25003 | if (PyErr_Occurred()) SWIG_fail; | |
25004 | } | |
25005 | Py_INCREF(Py_None); resultobj = Py_None; | |
25006 | return resultobj; | |
25007 | fail: | |
25008 | return NULL; | |
25009 | } | |
25010 | ||
25011 | ||
c370783e | 25012 | static PyObject *_wrap_DataObject_GetPreferredFormat(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25013 | PyObject *resultobj; |
25014 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
25015 | int arg2 = (int) wxDataObject::Get ; | |
25016 | SwigValueWrapper< wxDataFormat > result; | |
25017 | PyObject * obj0 = 0 ; | |
25018 | PyObject * obj1 = 0 ; | |
25019 | char *kwnames[] = { | |
25020 | (char *) "self",(char *) "dir", NULL | |
25021 | }; | |
25022 | ||
25023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetPreferredFormat",kwnames,&obj0,&obj1)) goto fail; | |
25024 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
25025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25026 | if (obj1) { | |
c370783e | 25027 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
25028 | if (PyErr_Occurred()) SWIG_fail; |
25029 | } | |
25030 | { | |
25031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25032 | result = ((wxDataObject const *)arg1)->GetPreferredFormat((wxDataObject::Direction )arg2); | |
25033 | ||
25034 | wxPyEndAllowThreads(__tstate); | |
25035 | if (PyErr_Occurred()) SWIG_fail; | |
25036 | } | |
25037 | { | |
25038 | wxDataFormat * resultptr; | |
25039 | resultptr = new wxDataFormat((wxDataFormat &) result); | |
25040 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDataFormat, 1); | |
25041 | } | |
25042 | return resultobj; | |
25043 | fail: | |
25044 | return NULL; | |
25045 | } | |
25046 | ||
25047 | ||
c370783e | 25048 | static PyObject *_wrap_DataObject_GetFormatCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25049 | PyObject *resultobj; |
25050 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
25051 | int arg2 = (int) wxDataObject::Get ; | |
25052 | size_t result; | |
25053 | PyObject * obj0 = 0 ; | |
25054 | PyObject * obj1 = 0 ; | |
25055 | char *kwnames[] = { | |
25056 | (char *) "self",(char *) "dir", NULL | |
25057 | }; | |
25058 | ||
25059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetFormatCount",kwnames,&obj0,&obj1)) goto fail; | |
25060 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
25061 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25062 | if (obj1) { | |
c370783e | 25063 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
25064 | if (PyErr_Occurred()) SWIG_fail; |
25065 | } | |
25066 | { | |
25067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25068 | result = (size_t)((wxDataObject const *)arg1)->GetFormatCount((wxDataObject::Direction )arg2); | |
25069 | ||
25070 | wxPyEndAllowThreads(__tstate); | |
25071 | if (PyErr_Occurred()) SWIG_fail; | |
25072 | } | |
c370783e | 25073 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
25074 | return resultobj; |
25075 | fail: | |
25076 | return NULL; | |
25077 | } | |
25078 | ||
25079 | ||
c370783e | 25080 | static PyObject *_wrap_DataObject_IsSupported(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25081 | PyObject *resultobj; |
25082 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
25083 | wxDataFormat *arg2 = 0 ; | |
25084 | int arg3 = (int) wxDataObject::Get ; | |
25085 | bool result; | |
25086 | PyObject * obj0 = 0 ; | |
25087 | PyObject * obj1 = 0 ; | |
25088 | PyObject * obj2 = 0 ; | |
25089 | char *kwnames[] = { | |
25090 | (char *) "self",(char *) "format",(char *) "dir", NULL | |
25091 | }; | |
25092 | ||
25093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_IsSupported",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25094 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
25095 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25096 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
25097 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25098 | SWIG_fail; | |
25099 | if (arg2 == NULL) { | |
25100 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25101 | SWIG_fail; | |
25102 | } | |
25103 | if (obj2) { | |
c370783e | 25104 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
25105 | if (PyErr_Occurred()) SWIG_fail; |
25106 | } | |
25107 | { | |
25108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25109 | result = (bool)((wxDataObject const *)arg1)->IsSupported((wxDataFormat const &)*arg2,(wxDataObject::Direction )arg3); | |
25110 | ||
25111 | wxPyEndAllowThreads(__tstate); | |
25112 | if (PyErr_Occurred()) SWIG_fail; | |
25113 | } | |
25114 | { | |
25115 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25116 | } | |
25117 | return resultobj; | |
25118 | fail: | |
25119 | return NULL; | |
25120 | } | |
25121 | ||
25122 | ||
c370783e | 25123 | static PyObject *_wrap_DataObject_GetDataSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25124 | PyObject *resultobj; |
25125 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
25126 | wxDataFormat *arg2 = 0 ; | |
25127 | size_t result; | |
25128 | PyObject * obj0 = 0 ; | |
25129 | PyObject * obj1 = 0 ; | |
25130 | char *kwnames[] = { | |
25131 | (char *) "self",(char *) "format", NULL | |
25132 | }; | |
25133 | ||
25134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataSize",kwnames,&obj0,&obj1)) goto fail; | |
25135 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
25136 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25137 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
25138 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25139 | SWIG_fail; | |
25140 | if (arg2 == NULL) { | |
25141 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25142 | SWIG_fail; | |
25143 | } | |
25144 | { | |
25145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25146 | result = (size_t)((wxDataObject const *)arg1)->GetDataSize((wxDataFormat const &)*arg2); | |
25147 | ||
25148 | wxPyEndAllowThreads(__tstate); | |
25149 | if (PyErr_Occurred()) SWIG_fail; | |
25150 | } | |
c370783e | 25151 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
25152 | return resultobj; |
25153 | fail: | |
25154 | return NULL; | |
25155 | } | |
25156 | ||
25157 | ||
c370783e | 25158 | static PyObject *_wrap_DataObject_GetAllFormats(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25159 | PyObject *resultobj; |
25160 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
68e533f8 RD |
25161 | int arg2 = (int) wxDataObject::Get ; |
25162 | PyObject *result; | |
d55e5bfc RD |
25163 | PyObject * obj0 = 0 ; |
25164 | PyObject * obj1 = 0 ; | |
d55e5bfc | 25165 | char *kwnames[] = { |
68e533f8 | 25166 | (char *) "self",(char *) "dir", NULL |
d55e5bfc RD |
25167 | }; |
25168 | ||
68e533f8 | 25169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetAllFormats",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
25170 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
25171 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
68e533f8 | 25172 | if (obj1) { |
c370783e | 25173 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
25174 | if (PyErr_Occurred()) SWIG_fail; |
25175 | } | |
25176 | { | |
25177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
68e533f8 | 25178 | result = (PyObject *)wxDataObject_GetAllFormats(arg1,(wxDataObject::Direction )arg2); |
d55e5bfc RD |
25179 | |
25180 | wxPyEndAllowThreads(__tstate); | |
25181 | if (PyErr_Occurred()) SWIG_fail; | |
25182 | } | |
68e533f8 | 25183 | resultobj = result; |
d55e5bfc RD |
25184 | return resultobj; |
25185 | fail: | |
25186 | return NULL; | |
25187 | } | |
25188 | ||
25189 | ||
c370783e | 25190 | static PyObject *_wrap_DataObject_GetDataHere(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25191 | PyObject *resultobj; |
25192 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
25193 | wxDataFormat *arg2 = 0 ; | |
68e533f8 | 25194 | PyObject *result; |
d55e5bfc RD |
25195 | PyObject * obj0 = 0 ; |
25196 | PyObject * obj1 = 0 ; | |
d55e5bfc | 25197 | char *kwnames[] = { |
68e533f8 | 25198 | (char *) "self",(char *) "format", NULL |
d55e5bfc RD |
25199 | }; |
25200 | ||
68e533f8 | 25201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataHere",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
25202 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
25203 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25204 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
25205 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25206 | SWIG_fail; | |
25207 | if (arg2 == NULL) { | |
25208 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25209 | SWIG_fail; | |
25210 | } | |
d55e5bfc RD |
25211 | { |
25212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
68e533f8 | 25213 | result = (PyObject *)wxDataObject_GetDataHere(arg1,(wxDataFormat const &)*arg2); |
d55e5bfc RD |
25214 | |
25215 | wxPyEndAllowThreads(__tstate); | |
25216 | if (PyErr_Occurred()) SWIG_fail; | |
25217 | } | |
68e533f8 | 25218 | resultobj = result; |
d55e5bfc RD |
25219 | return resultobj; |
25220 | fail: | |
25221 | return NULL; | |
25222 | } | |
25223 | ||
25224 | ||
c370783e | 25225 | static PyObject *_wrap_DataObject_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25226 | PyObject *resultobj; |
25227 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
25228 | wxDataFormat *arg2 = 0 ; | |
68e533f8 | 25229 | PyObject *arg3 = (PyObject *) 0 ; |
d55e5bfc RD |
25230 | bool result; |
25231 | PyObject * obj0 = 0 ; | |
25232 | PyObject * obj1 = 0 ; | |
25233 | PyObject * obj2 = 0 ; | |
d55e5bfc | 25234 | char *kwnames[] = { |
68e533f8 | 25235 | (char *) "self",(char *) "format",(char *) "data", NULL |
d55e5bfc RD |
25236 | }; |
25237 | ||
68e533f8 | 25238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DataObject_SetData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
25239 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
25240 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25241 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
25242 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25243 | SWIG_fail; | |
25244 | if (arg2 == NULL) { | |
25245 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25246 | SWIG_fail; | |
25247 | } | |
68e533f8 | 25248 | arg3 = obj2; |
d55e5bfc RD |
25249 | { |
25250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
68e533f8 | 25251 | result = (bool)wxDataObject_SetData(arg1,(wxDataFormat const &)*arg2,arg3); |
d55e5bfc RD |
25252 | |
25253 | wxPyEndAllowThreads(__tstate); | |
25254 | if (PyErr_Occurred()) SWIG_fail; | |
25255 | } | |
25256 | { | |
25257 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25258 | } | |
25259 | return resultobj; | |
25260 | fail: | |
25261 | return NULL; | |
25262 | } | |
25263 | ||
25264 | ||
c370783e | 25265 | static PyObject * DataObject_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
25266 | PyObject *obj; |
25267 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25268 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObject, obj); | |
25269 | Py_INCREF(obj); | |
25270 | return Py_BuildValue((char *)""); | |
25271 | } | |
c370783e | 25272 | static PyObject *_wrap_new_DataObjectSimple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25273 | PyObject *resultobj; |
25274 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
25275 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
25276 | wxDataObjectSimple *result; | |
25277 | PyObject * obj0 = 0 ; | |
25278 | char *kwnames[] = { | |
25279 | (char *) "format", NULL | |
25280 | }; | |
25281 | ||
25282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DataObjectSimple",kwnames,&obj0)) goto fail; | |
25283 | if (obj0) { | |
25284 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
25285 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25286 | SWIG_fail; | |
25287 | if (arg1 == NULL) { | |
25288 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25289 | SWIG_fail; | |
25290 | } | |
25291 | } | |
25292 | { | |
25293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25294 | result = (wxDataObjectSimple *)new wxDataObjectSimple((wxDataFormat const &)*arg1); | |
25295 | ||
25296 | wxPyEndAllowThreads(__tstate); | |
25297 | if (PyErr_Occurred()) SWIG_fail; | |
25298 | } | |
25299 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectSimple, 1); | |
25300 | return resultobj; | |
25301 | fail: | |
25302 | return NULL; | |
25303 | } | |
25304 | ||
25305 | ||
c370783e | 25306 | static PyObject *_wrap_DataObjectSimple_GetFormat(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25307 | PyObject *resultobj; |
25308 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
25309 | wxDataFormat *result; | |
25310 | PyObject * obj0 = 0 ; | |
25311 | char *kwnames[] = { | |
25312 | (char *) "self", NULL | |
25313 | }; | |
25314 | ||
25315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetFormat",kwnames,&obj0)) goto fail; | |
25316 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, | |
25317 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25318 | { | |
25319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25320 | { | |
25321 | wxDataFormat const &_result_ref = (arg1)->GetFormat(); | |
25322 | result = (wxDataFormat *) &_result_ref; | |
25323 | } | |
25324 | ||
25325 | wxPyEndAllowThreads(__tstate); | |
25326 | if (PyErr_Occurred()) SWIG_fail; | |
25327 | } | |
25328 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 0); | |
25329 | return resultobj; | |
25330 | fail: | |
25331 | return NULL; | |
25332 | } | |
25333 | ||
25334 | ||
c370783e | 25335 | static PyObject *_wrap_DataObjectSimple_SetFormat(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25336 | PyObject *resultobj; |
25337 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
25338 | wxDataFormat *arg2 = 0 ; | |
25339 | PyObject * obj0 = 0 ; | |
25340 | PyObject * obj1 = 0 ; | |
25341 | char *kwnames[] = { | |
25342 | (char *) "self",(char *) "format", NULL | |
25343 | }; | |
25344 | ||
25345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetFormat",kwnames,&obj0,&obj1)) goto fail; | |
25346 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, | |
25347 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25348 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
25349 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25350 | SWIG_fail; | |
25351 | if (arg2 == NULL) { | |
25352 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25353 | SWIG_fail; | |
25354 | } | |
25355 | { | |
25356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25357 | (arg1)->SetFormat((wxDataFormat const &)*arg2); | |
25358 | ||
25359 | wxPyEndAllowThreads(__tstate); | |
25360 | if (PyErr_Occurred()) SWIG_fail; | |
25361 | } | |
25362 | Py_INCREF(Py_None); resultobj = Py_None; | |
25363 | return resultobj; | |
25364 | fail: | |
25365 | return NULL; | |
25366 | } | |
25367 | ||
25368 | ||
c370783e | 25369 | static PyObject *_wrap_DataObjectSimple_GetDataSize(PyObject *, PyObject *args, PyObject *kwargs) { |
68e533f8 RD |
25370 | PyObject *resultobj; |
25371 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
25372 | size_t result; | |
25373 | PyObject * obj0 = 0 ; | |
25374 | char *kwnames[] = { | |
25375 | (char *) "self", NULL | |
25376 | }; | |
25377 | ||
25378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataSize",kwnames,&obj0)) goto fail; | |
25379 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, | |
25380 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25381 | { | |
25382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25383 | result = (size_t)((wxDataObjectSimple const *)arg1)->GetDataSize(); | |
25384 | ||
25385 | wxPyEndAllowThreads(__tstate); | |
25386 | if (PyErr_Occurred()) SWIG_fail; | |
25387 | } | |
c370783e | 25388 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
68e533f8 RD |
25389 | return resultobj; |
25390 | fail: | |
25391 | return NULL; | |
25392 | } | |
25393 | ||
25394 | ||
c370783e | 25395 | static PyObject *_wrap_DataObjectSimple_GetDataHere(PyObject *, PyObject *args, PyObject *kwargs) { |
68e533f8 RD |
25396 | PyObject *resultobj; |
25397 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
25398 | PyObject *result; | |
25399 | PyObject * obj0 = 0 ; | |
25400 | char *kwnames[] = { | |
25401 | (char *) "self", NULL | |
25402 | }; | |
25403 | ||
25404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataHere",kwnames,&obj0)) goto fail; | |
25405 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, | |
25406 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25407 | { | |
25408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25409 | result = (PyObject *)wxDataObjectSimple_GetDataHere(arg1); | |
25410 | ||
25411 | wxPyEndAllowThreads(__tstate); | |
25412 | if (PyErr_Occurred()) SWIG_fail; | |
25413 | } | |
25414 | resultobj = result; | |
25415 | return resultobj; | |
25416 | fail: | |
25417 | return NULL; | |
25418 | } | |
25419 | ||
25420 | ||
c370783e | 25421 | static PyObject *_wrap_DataObjectSimple_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
68e533f8 RD |
25422 | PyObject *resultobj; |
25423 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
25424 | PyObject *arg2 = (PyObject *) 0 ; | |
25425 | bool result; | |
25426 | PyObject * obj0 = 0 ; | |
25427 | PyObject * obj1 = 0 ; | |
25428 | char *kwnames[] = { | |
25429 | (char *) "self",(char *) "data", NULL | |
25430 | }; | |
25431 | ||
25432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetData",kwnames,&obj0,&obj1)) goto fail; | |
25433 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, | |
25434 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25435 | arg2 = obj1; | |
25436 | { | |
25437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25438 | result = (bool)wxDataObjectSimple_SetData(arg1,arg2); | |
25439 | ||
25440 | wxPyEndAllowThreads(__tstate); | |
25441 | if (PyErr_Occurred()) SWIG_fail; | |
25442 | } | |
25443 | { | |
25444 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25445 | } | |
25446 | return resultobj; | |
25447 | fail: | |
25448 | return NULL; | |
25449 | } | |
25450 | ||
25451 | ||
c370783e | 25452 | static PyObject * DataObjectSimple_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
25453 | PyObject *obj; |
25454 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25455 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectSimple, obj); | |
25456 | Py_INCREF(obj); | |
25457 | return Py_BuildValue((char *)""); | |
25458 | } | |
c370783e | 25459 | static PyObject *_wrap_new_PyDataObjectSimple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25460 | PyObject *resultobj; |
25461 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
25462 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
25463 | wxPyDataObjectSimple *result; | |
25464 | PyObject * obj0 = 0 ; | |
25465 | char *kwnames[] = { | |
25466 | (char *) "format", NULL | |
25467 | }; | |
25468 | ||
25469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDataObjectSimple",kwnames,&obj0)) goto fail; | |
25470 | if (obj0) { | |
25471 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
25472 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25473 | SWIG_fail; | |
25474 | if (arg1 == NULL) { | |
25475 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25476 | SWIG_fail; | |
25477 | } | |
25478 | } | |
25479 | { | |
25480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25481 | result = (wxPyDataObjectSimple *)new wxPyDataObjectSimple((wxDataFormat const &)*arg1); | |
25482 | ||
25483 | wxPyEndAllowThreads(__tstate); | |
25484 | if (PyErr_Occurred()) SWIG_fail; | |
25485 | } | |
25486 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDataObjectSimple, 1); | |
25487 | return resultobj; | |
25488 | fail: | |
25489 | return NULL; | |
25490 | } | |
25491 | ||
25492 | ||
c370783e | 25493 | static PyObject *_wrap_PyDataObjectSimple__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25494 | PyObject *resultobj; |
25495 | wxPyDataObjectSimple *arg1 = (wxPyDataObjectSimple *) 0 ; | |
25496 | PyObject *arg2 = (PyObject *) 0 ; | |
25497 | PyObject *arg3 = (PyObject *) 0 ; | |
25498 | PyObject * obj0 = 0 ; | |
25499 | PyObject * obj1 = 0 ; | |
25500 | PyObject * obj2 = 0 ; | |
25501 | char *kwnames[] = { | |
25502 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25503 | }; | |
25504 | ||
25505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDataObjectSimple__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25506 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDataObjectSimple, | |
25507 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25508 | arg2 = obj1; | |
25509 | arg3 = obj2; | |
25510 | { | |
25511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25512 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25513 | ||
25514 | wxPyEndAllowThreads(__tstate); | |
25515 | if (PyErr_Occurred()) SWIG_fail; | |
25516 | } | |
25517 | Py_INCREF(Py_None); resultobj = Py_None; | |
25518 | return resultobj; | |
25519 | fail: | |
25520 | return NULL; | |
25521 | } | |
25522 | ||
25523 | ||
c370783e | 25524 | static PyObject * PyDataObjectSimple_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
25525 | PyObject *obj; |
25526 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25527 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDataObjectSimple, obj); | |
25528 | Py_INCREF(obj); | |
25529 | return Py_BuildValue((char *)""); | |
25530 | } | |
c370783e | 25531 | static PyObject *_wrap_new_DataObjectComposite(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25532 | PyObject *resultobj; |
25533 | wxDataObjectComposite *result; | |
25534 | char *kwnames[] = { | |
25535 | NULL | |
25536 | }; | |
25537 | ||
25538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DataObjectComposite",kwnames)) goto fail; | |
25539 | { | |
25540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25541 | result = (wxDataObjectComposite *)new wxDataObjectComposite(); | |
25542 | ||
25543 | wxPyEndAllowThreads(__tstate); | |
25544 | if (PyErr_Occurred()) SWIG_fail; | |
25545 | } | |
25546 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectComposite, 1); | |
25547 | return resultobj; | |
25548 | fail: | |
25549 | return NULL; | |
25550 | } | |
25551 | ||
25552 | ||
c370783e | 25553 | static PyObject *_wrap_DataObjectComposite_Add(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25554 | PyObject *resultobj; |
25555 | wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ; | |
25556 | wxDataObjectSimple *arg2 = (wxDataObjectSimple *) 0 ; | |
b411df4a | 25557 | bool arg3 = (bool) false ; |
d55e5bfc RD |
25558 | PyObject * obj0 = 0 ; |
25559 | PyObject * obj1 = 0 ; | |
25560 | PyObject * obj2 = 0 ; | |
25561 | char *kwnames[] = { | |
25562 | (char *) "self",(char *) "dataObject",(char *) "preferred", NULL | |
25563 | }; | |
25564 | ||
25565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObjectComposite_Add",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25566 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectComposite, | |
25567 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25568 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObjectSimple, | |
25569 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
25570 | if (obj2) { | |
c370783e | 25571 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
25572 | if (PyErr_Occurred()) SWIG_fail; |
25573 | } | |
25574 | { | |
25575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25576 | (arg1)->Add(arg2,arg3); | |
25577 | ||
25578 | wxPyEndAllowThreads(__tstate); | |
25579 | if (PyErr_Occurred()) SWIG_fail; | |
25580 | } | |
25581 | Py_INCREF(Py_None); resultobj = Py_None; | |
25582 | return resultobj; | |
25583 | fail: | |
25584 | return NULL; | |
25585 | } | |
25586 | ||
25587 | ||
c370783e | 25588 | static PyObject * DataObjectComposite_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
25589 | PyObject *obj; |
25590 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25591 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectComposite, obj); | |
25592 | Py_INCREF(obj); | |
25593 | return Py_BuildValue((char *)""); | |
25594 | } | |
c370783e | 25595 | static PyObject *_wrap_new_TextDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25596 | PyObject *resultobj; |
25597 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
25598 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
25599 | wxTextDataObject *result; | |
b411df4a | 25600 | bool temp1 = false ; |
d55e5bfc RD |
25601 | PyObject * obj0 = 0 ; |
25602 | char *kwnames[] = { | |
25603 | (char *) "text", NULL | |
25604 | }; | |
25605 | ||
25606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TextDataObject",kwnames,&obj0)) goto fail; | |
25607 | if (obj0) { | |
25608 | { | |
25609 | arg1 = wxString_in_helper(obj0); | |
25610 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 25611 | temp1 = true; |
d55e5bfc RD |
25612 | } |
25613 | } | |
25614 | { | |
25615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25616 | result = (wxTextDataObject *)new wxTextDataObject((wxString const &)*arg1); | |
25617 | ||
25618 | wxPyEndAllowThreads(__tstate); | |
25619 | if (PyErr_Occurred()) SWIG_fail; | |
25620 | } | |
25621 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextDataObject, 1); | |
25622 | { | |
25623 | if (temp1) | |
25624 | delete arg1; | |
25625 | } | |
25626 | return resultobj; | |
25627 | fail: | |
25628 | { | |
25629 | if (temp1) | |
25630 | delete arg1; | |
25631 | } | |
25632 | return NULL; | |
25633 | } | |
25634 | ||
25635 | ||
c370783e | 25636 | static PyObject *_wrap_TextDataObject_GetTextLength(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25637 | PyObject *resultobj; |
25638 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
25639 | size_t result; | |
25640 | PyObject * obj0 = 0 ; | |
25641 | char *kwnames[] = { | |
25642 | (char *) "self", NULL | |
25643 | }; | |
25644 | ||
25645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetTextLength",kwnames,&obj0)) goto fail; | |
25646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject, | |
25647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25648 | { | |
25649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25650 | result = (size_t)(arg1)->GetTextLength(); | |
25651 | ||
25652 | wxPyEndAllowThreads(__tstate); | |
25653 | if (PyErr_Occurred()) SWIG_fail; | |
25654 | } | |
c370783e | 25655 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
25656 | return resultobj; |
25657 | fail: | |
25658 | return NULL; | |
25659 | } | |
25660 | ||
25661 | ||
c370783e | 25662 | static PyObject *_wrap_TextDataObject_GetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25663 | PyObject *resultobj; |
25664 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
25665 | wxString result; | |
25666 | PyObject * obj0 = 0 ; | |
25667 | char *kwnames[] = { | |
25668 | (char *) "self", NULL | |
25669 | }; | |
25670 | ||
25671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetText",kwnames,&obj0)) goto fail; | |
25672 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject, | |
25673 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25674 | { | |
25675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25676 | result = (arg1)->GetText(); | |
25677 | ||
25678 | wxPyEndAllowThreads(__tstate); | |
25679 | if (PyErr_Occurred()) SWIG_fail; | |
25680 | } | |
25681 | { | |
25682 | #if wxUSE_UNICODE | |
25683 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
25684 | #else | |
25685 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
25686 | #endif | |
25687 | } | |
25688 | return resultobj; | |
25689 | fail: | |
25690 | return NULL; | |
25691 | } | |
25692 | ||
25693 | ||
c370783e | 25694 | static PyObject *_wrap_TextDataObject_SetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25695 | PyObject *resultobj; |
25696 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
25697 | wxString *arg2 = 0 ; | |
b411df4a | 25698 | bool temp2 = false ; |
d55e5bfc RD |
25699 | PyObject * obj0 = 0 ; |
25700 | PyObject * obj1 = 0 ; | |
25701 | char *kwnames[] = { | |
25702 | (char *) "self",(char *) "text", NULL | |
25703 | }; | |
25704 | ||
25705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextDataObject_SetText",kwnames,&obj0,&obj1)) goto fail; | |
25706 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject, | |
25707 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25708 | { | |
25709 | arg2 = wxString_in_helper(obj1); | |
25710 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 25711 | temp2 = true; |
d55e5bfc RD |
25712 | } |
25713 | { | |
25714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25715 | (arg1)->SetText((wxString const &)*arg2); | |
25716 | ||
25717 | wxPyEndAllowThreads(__tstate); | |
25718 | if (PyErr_Occurred()) SWIG_fail; | |
25719 | } | |
25720 | Py_INCREF(Py_None); resultobj = Py_None; | |
25721 | { | |
25722 | if (temp2) | |
25723 | delete arg2; | |
25724 | } | |
25725 | return resultobj; | |
25726 | fail: | |
25727 | { | |
25728 | if (temp2) | |
25729 | delete arg2; | |
25730 | } | |
25731 | return NULL; | |
25732 | } | |
25733 | ||
25734 | ||
c370783e | 25735 | static PyObject * TextDataObject_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
25736 | PyObject *obj; |
25737 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25738 | SWIG_TypeClientData(SWIGTYPE_p_wxTextDataObject, obj); | |
25739 | Py_INCREF(obj); | |
25740 | return Py_BuildValue((char *)""); | |
25741 | } | |
c370783e | 25742 | static PyObject *_wrap_new_PyTextDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25743 | PyObject *resultobj; |
25744 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
25745 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
25746 | wxPyTextDataObject *result; | |
b411df4a | 25747 | bool temp1 = false ; |
d55e5bfc RD |
25748 | PyObject * obj0 = 0 ; |
25749 | char *kwnames[] = { | |
25750 | (char *) "text", NULL | |
25751 | }; | |
25752 | ||
25753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyTextDataObject",kwnames,&obj0)) goto fail; | |
25754 | if (obj0) { | |
25755 | { | |
25756 | arg1 = wxString_in_helper(obj0); | |
25757 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 25758 | temp1 = true; |
d55e5bfc RD |
25759 | } |
25760 | } | |
25761 | { | |
25762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25763 | result = (wxPyTextDataObject *)new wxPyTextDataObject((wxString const &)*arg1); | |
25764 | ||
25765 | wxPyEndAllowThreads(__tstate); | |
25766 | if (PyErr_Occurred()) SWIG_fail; | |
25767 | } | |
25768 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDataObject, 1); | |
25769 | { | |
25770 | if (temp1) | |
25771 | delete arg1; | |
25772 | } | |
25773 | return resultobj; | |
25774 | fail: | |
25775 | { | |
25776 | if (temp1) | |
25777 | delete arg1; | |
25778 | } | |
25779 | return NULL; | |
25780 | } | |
25781 | ||
25782 | ||
c370783e | 25783 | static PyObject *_wrap_PyTextDataObject__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25784 | PyObject *resultobj; |
25785 | wxPyTextDataObject *arg1 = (wxPyTextDataObject *) 0 ; | |
25786 | PyObject *arg2 = (PyObject *) 0 ; | |
25787 | PyObject *arg3 = (PyObject *) 0 ; | |
25788 | PyObject * obj0 = 0 ; | |
25789 | PyObject * obj1 = 0 ; | |
25790 | PyObject * obj2 = 0 ; | |
25791 | char *kwnames[] = { | |
25792 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25793 | }; | |
25794 | ||
25795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25796 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDataObject, | |
25797 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25798 | arg2 = obj1; | |
25799 | arg3 = obj2; | |
25800 | { | |
25801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25802 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25803 | ||
25804 | wxPyEndAllowThreads(__tstate); | |
25805 | if (PyErr_Occurred()) SWIG_fail; | |
25806 | } | |
25807 | Py_INCREF(Py_None); resultobj = Py_None; | |
25808 | return resultobj; | |
25809 | fail: | |
25810 | return NULL; | |
25811 | } | |
25812 | ||
25813 | ||
c370783e | 25814 | static PyObject * PyTextDataObject_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
25815 | PyObject *obj; |
25816 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25817 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDataObject, obj); | |
25818 | Py_INCREF(obj); | |
25819 | return Py_BuildValue((char *)""); | |
25820 | } | |
c370783e | 25821 | static PyObject *_wrap_new_BitmapDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25822 | PyObject *resultobj; |
25823 | wxBitmap const &arg1_defvalue = wxNullBitmap ; | |
25824 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
25825 | wxBitmapDataObject *result; | |
25826 | PyObject * obj0 = 0 ; | |
25827 | char *kwnames[] = { | |
25828 | (char *) "bitmap", NULL | |
25829 | }; | |
25830 | ||
25831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BitmapDataObject",kwnames,&obj0)) goto fail; | |
25832 | if (obj0) { | |
25833 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
25834 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25835 | SWIG_fail; | |
25836 | if (arg1 == NULL) { | |
25837 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25838 | SWIG_fail; | |
25839 | } | |
25840 | } | |
25841 | { | |
25842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25843 | result = (wxBitmapDataObject *)new wxBitmapDataObject((wxBitmap const &)*arg1); | |
25844 | ||
25845 | wxPyEndAllowThreads(__tstate); | |
25846 | if (PyErr_Occurred()) SWIG_fail; | |
25847 | } | |
25848 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapDataObject, 1); | |
25849 | return resultobj; | |
25850 | fail: | |
25851 | return NULL; | |
25852 | } | |
25853 | ||
25854 | ||
c370783e | 25855 | static PyObject *_wrap_BitmapDataObject_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25856 | PyObject *resultobj; |
25857 | wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ; | |
25858 | wxBitmap result; | |
25859 | PyObject * obj0 = 0 ; | |
25860 | char *kwnames[] = { | |
25861 | (char *) "self", NULL | |
25862 | }; | |
25863 | ||
25864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapDataObject_GetBitmap",kwnames,&obj0)) goto fail; | |
25865 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject, | |
25866 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25867 | { | |
25868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25869 | result = ((wxBitmapDataObject const *)arg1)->GetBitmap(); | |
25870 | ||
25871 | wxPyEndAllowThreads(__tstate); | |
25872 | if (PyErr_Occurred()) SWIG_fail; | |
25873 | } | |
25874 | { | |
25875 | wxBitmap * resultptr; | |
25876 | resultptr = new wxBitmap((wxBitmap &) result); | |
25877 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
25878 | } | |
25879 | return resultobj; | |
25880 | fail: | |
25881 | return NULL; | |
25882 | } | |
25883 | ||
25884 | ||
c370783e | 25885 | static PyObject *_wrap_BitmapDataObject_SetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25886 | PyObject *resultobj; |
25887 | wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ; | |
25888 | wxBitmap *arg2 = 0 ; | |
25889 | PyObject * obj0 = 0 ; | |
25890 | PyObject * obj1 = 0 ; | |
25891 | char *kwnames[] = { | |
25892 | (char *) "self",(char *) "bitmap", NULL | |
25893 | }; | |
25894 | ||
25895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapDataObject_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
25896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject, | |
25897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25898 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
25899 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25900 | SWIG_fail; | |
25901 | if (arg2 == NULL) { | |
25902 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25903 | SWIG_fail; | |
25904 | } | |
25905 | { | |
25906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25907 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
25908 | ||
25909 | wxPyEndAllowThreads(__tstate); | |
25910 | if (PyErr_Occurred()) SWIG_fail; | |
25911 | } | |
25912 | Py_INCREF(Py_None); resultobj = Py_None; | |
25913 | return resultobj; | |
25914 | fail: | |
25915 | return NULL; | |
25916 | } | |
25917 | ||
25918 | ||
c370783e | 25919 | static PyObject * BitmapDataObject_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
25920 | PyObject *obj; |
25921 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25922 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmapDataObject, obj); | |
25923 | Py_INCREF(obj); | |
25924 | return Py_BuildValue((char *)""); | |
25925 | } | |
c370783e | 25926 | static PyObject *_wrap_new_PyBitmapDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25927 | PyObject *resultobj; |
25928 | wxBitmap const &arg1_defvalue = wxNullBitmap ; | |
25929 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
25930 | wxPyBitmapDataObject *result; | |
25931 | PyObject * obj0 = 0 ; | |
25932 | char *kwnames[] = { | |
25933 | (char *) "bitmap", NULL | |
25934 | }; | |
25935 | ||
25936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyBitmapDataObject",kwnames,&obj0)) goto fail; | |
25937 | if (obj0) { | |
25938 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
25939 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25940 | SWIG_fail; | |
25941 | if (arg1 == NULL) { | |
25942 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25943 | SWIG_fail; | |
25944 | } | |
25945 | } | |
25946 | { | |
25947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25948 | result = (wxPyBitmapDataObject *)new wxPyBitmapDataObject((wxBitmap const &)*arg1); | |
25949 | ||
25950 | wxPyEndAllowThreads(__tstate); | |
25951 | if (PyErr_Occurred()) SWIG_fail; | |
25952 | } | |
25953 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyBitmapDataObject, 1); | |
25954 | return resultobj; | |
25955 | fail: | |
25956 | return NULL; | |
25957 | } | |
25958 | ||
25959 | ||
c370783e | 25960 | static PyObject *_wrap_PyBitmapDataObject__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25961 | PyObject *resultobj; |
25962 | wxPyBitmapDataObject *arg1 = (wxPyBitmapDataObject *) 0 ; | |
25963 | PyObject *arg2 = (PyObject *) 0 ; | |
25964 | PyObject *arg3 = (PyObject *) 0 ; | |
25965 | PyObject * obj0 = 0 ; | |
25966 | PyObject * obj1 = 0 ; | |
25967 | PyObject * obj2 = 0 ; | |
25968 | char *kwnames[] = { | |
25969 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25970 | }; | |
25971 | ||
25972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapDataObject, | |
25974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25975 | arg2 = obj1; | |
25976 | arg3 = obj2; | |
25977 | { | |
25978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25979 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25980 | ||
25981 | wxPyEndAllowThreads(__tstate); | |
25982 | if (PyErr_Occurred()) SWIG_fail; | |
25983 | } | |
25984 | Py_INCREF(Py_None); resultobj = Py_None; | |
25985 | return resultobj; | |
25986 | fail: | |
25987 | return NULL; | |
25988 | } | |
25989 | ||
25990 | ||
c370783e | 25991 | static PyObject * PyBitmapDataObject_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
25992 | PyObject *obj; |
25993 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25994 | SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapDataObject, obj); | |
25995 | Py_INCREF(obj); | |
25996 | return Py_BuildValue((char *)""); | |
25997 | } | |
c370783e | 25998 | static PyObject *_wrap_new_FileDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25999 | PyObject *resultobj; |
26000 | wxFileDataObject *result; | |
26001 | char *kwnames[] = { | |
26002 | NULL | |
26003 | }; | |
26004 | ||
26005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDataObject",kwnames)) goto fail; | |
26006 | { | |
26007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26008 | result = (wxFileDataObject *)new wxFileDataObject(); | |
26009 | ||
26010 | wxPyEndAllowThreads(__tstate); | |
26011 | if (PyErr_Occurred()) SWIG_fail; | |
26012 | } | |
26013 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileDataObject, 1); | |
26014 | return resultobj; | |
26015 | fail: | |
26016 | return NULL; | |
26017 | } | |
26018 | ||
26019 | ||
c370783e | 26020 | static PyObject *_wrap_FileDataObject_GetFilenames(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26021 | PyObject *resultobj; |
26022 | wxFileDataObject *arg1 = (wxFileDataObject *) 0 ; | |
26023 | wxArrayString *result; | |
26024 | PyObject * obj0 = 0 ; | |
26025 | char *kwnames[] = { | |
26026 | (char *) "self", NULL | |
26027 | }; | |
26028 | ||
26029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDataObject_GetFilenames",kwnames,&obj0)) goto fail; | |
26030 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject, | |
26031 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26032 | { | |
26033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26034 | { | |
26035 | wxArrayString const &_result_ref = (arg1)->GetFilenames(); | |
26036 | result = (wxArrayString *) &_result_ref; | |
26037 | } | |
26038 | ||
26039 | wxPyEndAllowThreads(__tstate); | |
26040 | if (PyErr_Occurred()) SWIG_fail; | |
26041 | } | |
26042 | { | |
26043 | resultobj = wxArrayString2PyList_helper(*result); | |
26044 | } | |
26045 | return resultobj; | |
26046 | fail: | |
26047 | return NULL; | |
26048 | } | |
26049 | ||
26050 | ||
c370783e | 26051 | static PyObject *_wrap_FileDataObject_AddFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26052 | PyObject *resultobj; |
26053 | wxFileDataObject *arg1 = (wxFileDataObject *) 0 ; | |
26054 | wxString *arg2 = 0 ; | |
b411df4a | 26055 | bool temp2 = false ; |
d55e5bfc RD |
26056 | PyObject * obj0 = 0 ; |
26057 | PyObject * obj1 = 0 ; | |
26058 | char *kwnames[] = { | |
26059 | (char *) "self",(char *) "filename", NULL | |
26060 | }; | |
26061 | ||
26062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDataObject_AddFile",kwnames,&obj0,&obj1)) goto fail; | |
26063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject, | |
26064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26065 | { | |
26066 | arg2 = wxString_in_helper(obj1); | |
26067 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 26068 | temp2 = true; |
d55e5bfc RD |
26069 | } |
26070 | { | |
26071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26072 | (arg1)->AddFile((wxString const &)*arg2); | |
26073 | ||
26074 | wxPyEndAllowThreads(__tstate); | |
26075 | if (PyErr_Occurred()) SWIG_fail; | |
26076 | } | |
26077 | Py_INCREF(Py_None); resultobj = Py_None; | |
26078 | { | |
26079 | if (temp2) | |
26080 | delete arg2; | |
26081 | } | |
26082 | return resultobj; | |
26083 | fail: | |
26084 | { | |
26085 | if (temp2) | |
26086 | delete arg2; | |
26087 | } | |
26088 | return NULL; | |
26089 | } | |
26090 | ||
26091 | ||
c370783e | 26092 | static PyObject * FileDataObject_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
26093 | PyObject *obj; |
26094 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26095 | SWIG_TypeClientData(SWIGTYPE_p_wxFileDataObject, obj); | |
26096 | Py_INCREF(obj); | |
26097 | return Py_BuildValue((char *)""); | |
26098 | } | |
c370783e | 26099 | static PyObject *_wrap_new_CustomDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26100 | PyObject *resultobj; |
26101 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
26102 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
26103 | wxCustomDataObject *result; | |
26104 | PyObject * obj0 = 0 ; | |
26105 | char *kwnames[] = { | |
26106 | (char *) "format", NULL | |
26107 | }; | |
26108 | ||
26109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CustomDataObject",kwnames,&obj0)) goto fail; | |
26110 | if (obj0) { | |
26111 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
26112 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26113 | SWIG_fail; | |
26114 | if (arg1 == NULL) { | |
26115 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26116 | SWIG_fail; | |
26117 | } | |
26118 | } | |
26119 | { | |
26120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26121 | result = (wxCustomDataObject *)new wxCustomDataObject((wxDataFormat const &)*arg1); | |
26122 | ||
26123 | wxPyEndAllowThreads(__tstate); | |
26124 | if (PyErr_Occurred()) SWIG_fail; | |
26125 | } | |
26126 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCustomDataObject, 1); | |
26127 | return resultobj; | |
26128 | fail: | |
26129 | return NULL; | |
26130 | } | |
26131 | ||
26132 | ||
c370783e | 26133 | static PyObject *_wrap_CustomDataObject_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26134 | PyObject *resultobj; |
26135 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
26136 | PyObject *arg2 = (PyObject *) 0 ; | |
26137 | bool result; | |
26138 | PyObject * obj0 = 0 ; | |
26139 | PyObject * obj1 = 0 ; | |
26140 | char *kwnames[] = { | |
26141 | (char *) "self",(char *) "data", NULL | |
26142 | }; | |
26143 | ||
26144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_SetData",kwnames,&obj0,&obj1)) goto fail; | |
26145 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, | |
26146 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26147 | arg2 = obj1; | |
26148 | { | |
26149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26150 | result = (bool)wxCustomDataObject_SetData(arg1,arg2); | |
26151 | ||
26152 | wxPyEndAllowThreads(__tstate); | |
26153 | if (PyErr_Occurred()) SWIG_fail; | |
26154 | } | |
26155 | { | |
26156 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26157 | } | |
26158 | return resultobj; | |
26159 | fail: | |
26160 | return NULL; | |
26161 | } | |
26162 | ||
26163 | ||
c370783e | 26164 | static PyObject *_wrap_CustomDataObject_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26165 | PyObject *resultobj; |
26166 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
26167 | size_t result; | |
26168 | PyObject * obj0 = 0 ; | |
26169 | char *kwnames[] = { | |
26170 | (char *) "self", NULL | |
26171 | }; | |
26172 | ||
26173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetSize",kwnames,&obj0)) goto fail; | |
26174 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, | |
26175 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26176 | { | |
26177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26178 | result = (size_t)(arg1)->GetSize(); | |
26179 | ||
26180 | wxPyEndAllowThreads(__tstate); | |
26181 | if (PyErr_Occurred()) SWIG_fail; | |
26182 | } | |
c370783e | 26183 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
26184 | return resultobj; |
26185 | fail: | |
26186 | return NULL; | |
26187 | } | |
26188 | ||
26189 | ||
c370783e | 26190 | static PyObject *_wrap_CustomDataObject_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26191 | PyObject *resultobj; |
26192 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
26193 | PyObject *result; | |
26194 | PyObject * obj0 = 0 ; | |
26195 | char *kwnames[] = { | |
26196 | (char *) "self", NULL | |
26197 | }; | |
26198 | ||
26199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetData",kwnames,&obj0)) goto fail; | |
26200 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, | |
26201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26202 | { | |
26203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26204 | result = (PyObject *)wxCustomDataObject_GetData(arg1); | |
26205 | ||
26206 | wxPyEndAllowThreads(__tstate); | |
26207 | if (PyErr_Occurred()) SWIG_fail; | |
26208 | } | |
26209 | resultobj = result; | |
26210 | return resultobj; | |
26211 | fail: | |
26212 | return NULL; | |
26213 | } | |
26214 | ||
26215 | ||
c370783e | 26216 | static PyObject * CustomDataObject_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
26217 | PyObject *obj; |
26218 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26219 | SWIG_TypeClientData(SWIGTYPE_p_wxCustomDataObject, obj); | |
26220 | Py_INCREF(obj); | |
26221 | return Py_BuildValue((char *)""); | |
26222 | } | |
c370783e | 26223 | static PyObject *_wrap_new_URLDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26224 | PyObject *resultobj; |
26225 | wxURLDataObject *result; | |
26226 | char *kwnames[] = { | |
26227 | NULL | |
26228 | }; | |
26229 | ||
26230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_URLDataObject",kwnames)) goto fail; | |
26231 | { | |
26232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26233 | result = (wxURLDataObject *)new wxURLDataObject(); | |
26234 | ||
26235 | wxPyEndAllowThreads(__tstate); | |
26236 | if (PyErr_Occurred()) SWIG_fail; | |
26237 | } | |
26238 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxURLDataObject, 1); | |
26239 | return resultobj; | |
26240 | fail: | |
26241 | return NULL; | |
26242 | } | |
26243 | ||
26244 | ||
c370783e | 26245 | static PyObject *_wrap_URLDataObject_GetURL(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26246 | PyObject *resultobj; |
26247 | wxURLDataObject *arg1 = (wxURLDataObject *) 0 ; | |
26248 | wxString result; | |
26249 | PyObject * obj0 = 0 ; | |
26250 | char *kwnames[] = { | |
26251 | (char *) "self", NULL | |
26252 | }; | |
26253 | ||
26254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:URLDataObject_GetURL",kwnames,&obj0)) goto fail; | |
26255 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject, | |
26256 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26257 | { | |
26258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26259 | result = (arg1)->GetURL(); | |
26260 | ||
26261 | wxPyEndAllowThreads(__tstate); | |
26262 | if (PyErr_Occurred()) SWIG_fail; | |
26263 | } | |
26264 | { | |
26265 | #if wxUSE_UNICODE | |
26266 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
26267 | #else | |
26268 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
26269 | #endif | |
26270 | } | |
26271 | return resultobj; | |
26272 | fail: | |
26273 | return NULL; | |
26274 | } | |
26275 | ||
26276 | ||
c370783e | 26277 | static PyObject *_wrap_URLDataObject_SetURL(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26278 | PyObject *resultobj; |
26279 | wxURLDataObject *arg1 = (wxURLDataObject *) 0 ; | |
26280 | wxString *arg2 = 0 ; | |
b411df4a | 26281 | bool temp2 = false ; |
d55e5bfc RD |
26282 | PyObject * obj0 = 0 ; |
26283 | PyObject * obj1 = 0 ; | |
26284 | char *kwnames[] = { | |
26285 | (char *) "self",(char *) "url", NULL | |
26286 | }; | |
26287 | ||
26288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:URLDataObject_SetURL",kwnames,&obj0,&obj1)) goto fail; | |
26289 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject, | |
26290 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26291 | { | |
26292 | arg2 = wxString_in_helper(obj1); | |
26293 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 26294 | temp2 = true; |
d55e5bfc RD |
26295 | } |
26296 | { | |
26297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26298 | (arg1)->SetURL((wxString const &)*arg2); | |
26299 | ||
26300 | wxPyEndAllowThreads(__tstate); | |
26301 | if (PyErr_Occurred()) SWIG_fail; | |
26302 | } | |
26303 | Py_INCREF(Py_None); resultobj = Py_None; | |
26304 | { | |
26305 | if (temp2) | |
26306 | delete arg2; | |
26307 | } | |
26308 | return resultobj; | |
26309 | fail: | |
26310 | { | |
26311 | if (temp2) | |
26312 | delete arg2; | |
26313 | } | |
26314 | return NULL; | |
26315 | } | |
26316 | ||
26317 | ||
c370783e | 26318 | static PyObject * URLDataObject_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
26319 | PyObject *obj; |
26320 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26321 | SWIG_TypeClientData(SWIGTYPE_p_wxURLDataObject, obj); | |
26322 | Py_INCREF(obj); | |
26323 | return Py_BuildValue((char *)""); | |
26324 | } | |
c370783e | 26325 | static PyObject *_wrap_new_MetafileDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26326 | PyObject *resultobj; |
26327 | wxMetafileDataObject *result; | |
26328 | char *kwnames[] = { | |
26329 | NULL | |
26330 | }; | |
26331 | ||
26332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MetafileDataObject",kwnames)) goto fail; | |
26333 | { | |
26334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26335 | result = (wxMetafileDataObject *)new wxMetafileDataObject(); | |
26336 | ||
26337 | wxPyEndAllowThreads(__tstate); | |
26338 | if (PyErr_Occurred()) SWIG_fail; | |
26339 | } | |
26340 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetafileDataObject, 1); | |
26341 | return resultobj; | |
26342 | fail: | |
26343 | return NULL; | |
26344 | } | |
26345 | ||
26346 | ||
c370783e | 26347 | static PyObject *_wrap_MetafileDataObject_SetMetafile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26348 | PyObject *resultobj; |
26349 | wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ; | |
26350 | wxMetafile *arg2 = 0 ; | |
26351 | PyObject * obj0 = 0 ; | |
26352 | PyObject * obj1 = 0 ; | |
26353 | char *kwnames[] = { | |
26354 | (char *) "self",(char *) "metafile", NULL | |
26355 | }; | |
26356 | ||
26357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MetafileDataObject_SetMetafile",kwnames,&obj0,&obj1)) goto fail; | |
26358 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetafileDataObject, | |
26359 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26360 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMetafile, | |
26361 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26362 | SWIG_fail; | |
26363 | if (arg2 == NULL) { | |
26364 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26365 | SWIG_fail; | |
26366 | } | |
26367 | { | |
26368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26369 | (arg1)->SetMetafile((wxMetafile const &)*arg2); | |
26370 | ||
26371 | wxPyEndAllowThreads(__tstate); | |
26372 | if (PyErr_Occurred()) SWIG_fail; | |
26373 | } | |
26374 | Py_INCREF(Py_None); resultobj = Py_None; | |
26375 | return resultobj; | |
26376 | fail: | |
26377 | return NULL; | |
26378 | } | |
26379 | ||
26380 | ||
c370783e | 26381 | static PyObject *_wrap_MetafileDataObject_GetMetafile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26382 | PyObject *resultobj; |
26383 | wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ; | |
26384 | wxMetafile result; | |
26385 | PyObject * obj0 = 0 ; | |
26386 | char *kwnames[] = { | |
26387 | (char *) "self", NULL | |
26388 | }; | |
26389 | ||
26390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetafileDataObject_GetMetafile",kwnames,&obj0)) goto fail; | |
26391 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetafileDataObject, | |
26392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26393 | { | |
26394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26395 | result = ((wxMetafileDataObject const *)arg1)->GetMetafile(); | |
26396 | ||
26397 | wxPyEndAllowThreads(__tstate); | |
26398 | if (PyErr_Occurred()) SWIG_fail; | |
26399 | } | |
26400 | { | |
26401 | wxMetafile * resultptr; | |
26402 | resultptr = new wxMetafile((wxMetafile &) result); | |
26403 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxMetafile, 1); | |
26404 | } | |
26405 | return resultobj; | |
26406 | fail: | |
26407 | return NULL; | |
26408 | } | |
26409 | ||
26410 | ||
c370783e | 26411 | static PyObject * MetafileDataObject_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
26412 | PyObject *obj; |
26413 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26414 | SWIG_TypeClientData(SWIGTYPE_p_wxMetafileDataObject, obj); | |
26415 | Py_INCREF(obj); | |
26416 | return Py_BuildValue((char *)""); | |
26417 | } | |
c370783e | 26418 | static PyObject *_wrap_IsDragResultOk(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26419 | PyObject *resultobj; |
26420 | int arg1 ; | |
26421 | bool result; | |
26422 | PyObject * obj0 = 0 ; | |
26423 | char *kwnames[] = { | |
26424 | (char *) "res", NULL | |
26425 | }; | |
26426 | ||
26427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsDragResultOk",kwnames,&obj0)) goto fail; | |
c370783e | 26428 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
26429 | if (PyErr_Occurred()) SWIG_fail; |
26430 | { | |
26431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26432 | result = (bool)wxIsDragResultOk((wxDragResult )arg1); | |
26433 | ||
26434 | wxPyEndAllowThreads(__tstate); | |
26435 | if (PyErr_Occurred()) SWIG_fail; | |
26436 | } | |
26437 | { | |
26438 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26439 | } | |
26440 | return resultobj; | |
26441 | fail: | |
26442 | return NULL; | |
26443 | } | |
26444 | ||
26445 | ||
c370783e | 26446 | static PyObject *_wrap_new_DropSource(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26447 | PyObject *resultobj; |
26448 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26449 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
26450 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
26451 | wxCursor const &arg3_defvalue = wxNullCursor ; | |
26452 | wxCursor *arg3 = (wxCursor *) &arg3_defvalue ; | |
26453 | wxCursor const &arg4_defvalue = wxNullCursor ; | |
26454 | wxCursor *arg4 = (wxCursor *) &arg4_defvalue ; | |
26455 | wxPyDropSource *result; | |
26456 | PyObject * obj0 = 0 ; | |
26457 | PyObject * obj1 = 0 ; | |
26458 | PyObject * obj2 = 0 ; | |
26459 | PyObject * obj3 = 0 ; | |
26460 | char *kwnames[] = { | |
26461 | (char *) "win",(char *) "copy",(char *) "move",(char *) "none", NULL | |
26462 | }; | |
26463 | ||
26464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DropSource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26465 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26466 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26467 | if (obj1) { | |
26468 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
26469 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26470 | SWIG_fail; | |
26471 | if (arg2 == NULL) { | |
26472 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26473 | SWIG_fail; | |
26474 | } | |
26475 | } | |
26476 | if (obj2) { | |
26477 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor, | |
26478 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26479 | SWIG_fail; | |
26480 | if (arg3 == NULL) { | |
26481 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26482 | SWIG_fail; | |
26483 | } | |
26484 | } | |
26485 | if (obj3) { | |
26486 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxCursor, | |
26487 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26488 | SWIG_fail; | |
26489 | if (arg4 == NULL) { | |
26490 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26491 | SWIG_fail; | |
26492 | } | |
26493 | } | |
26494 | { | |
26495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26496 | result = (wxPyDropSource *)new wxPyDropSource(arg1,(wxCursor const &)*arg2,(wxCursor const &)*arg3,(wxCursor const &)*arg4); | |
26497 | ||
26498 | wxPyEndAllowThreads(__tstate); | |
26499 | if (PyErr_Occurred()) SWIG_fail; | |
26500 | } | |
26501 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropSource, 1); | |
26502 | return resultobj; | |
26503 | fail: | |
26504 | return NULL; | |
26505 | } | |
26506 | ||
26507 | ||
c370783e | 26508 | static PyObject *_wrap_DropSource__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26509 | PyObject *resultobj; |
26510 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
26511 | PyObject *arg2 = (PyObject *) 0 ; | |
26512 | PyObject *arg3 = (PyObject *) 0 ; | |
26513 | int arg4 ; | |
26514 | PyObject * obj0 = 0 ; | |
26515 | PyObject * obj1 = 0 ; | |
26516 | PyObject * obj2 = 0 ; | |
26517 | PyObject * obj3 = 0 ; | |
26518 | char *kwnames[] = { | |
26519 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
26520 | }; | |
26521 | ||
26522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropSource__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26523 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
26524 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26525 | arg2 = obj1; | |
26526 | arg3 = obj2; | |
c370783e | 26527 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
26528 | if (PyErr_Occurred()) SWIG_fail; |
26529 | { | |
26530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26531 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
26532 | ||
26533 | wxPyEndAllowThreads(__tstate); | |
26534 | if (PyErr_Occurred()) SWIG_fail; | |
26535 | } | |
26536 | Py_INCREF(Py_None); resultobj = Py_None; | |
26537 | return resultobj; | |
26538 | fail: | |
26539 | return NULL; | |
26540 | } | |
26541 | ||
26542 | ||
c370783e | 26543 | static PyObject *_wrap_delete_DropSource(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26544 | PyObject *resultobj; |
26545 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
26546 | PyObject * obj0 = 0 ; | |
26547 | char *kwnames[] = { | |
26548 | (char *) "self", NULL | |
26549 | }; | |
26550 | ||
26551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropSource",kwnames,&obj0)) goto fail; | |
26552 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
26553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26554 | { | |
26555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26556 | delete arg1; | |
26557 | ||
26558 | wxPyEndAllowThreads(__tstate); | |
26559 | if (PyErr_Occurred()) SWIG_fail; | |
26560 | } | |
26561 | Py_INCREF(Py_None); resultobj = Py_None; | |
26562 | return resultobj; | |
26563 | fail: | |
26564 | return NULL; | |
26565 | } | |
26566 | ||
26567 | ||
c370783e | 26568 | static PyObject *_wrap_DropSource_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26569 | PyObject *resultobj; |
26570 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
26571 | wxDataObject *arg2 = 0 ; | |
26572 | PyObject * obj0 = 0 ; | |
26573 | PyObject * obj1 = 0 ; | |
26574 | char *kwnames[] = { | |
26575 | (char *) "self",(char *) "data", NULL | |
26576 | }; | |
26577 | ||
26578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_SetData",kwnames,&obj0,&obj1)) goto fail; | |
26579 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
26580 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26581 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
26582 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26583 | SWIG_fail; | |
26584 | if (arg2 == NULL) { | |
26585 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26586 | SWIG_fail; | |
26587 | } | |
26588 | { | |
26589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26590 | (arg1)->SetData(*arg2); | |
26591 | ||
26592 | wxPyEndAllowThreads(__tstate); | |
26593 | if (PyErr_Occurred()) SWIG_fail; | |
26594 | } | |
26595 | Py_INCREF(Py_None); resultobj = Py_None; | |
26596 | return resultobj; | |
26597 | fail: | |
26598 | return NULL; | |
26599 | } | |
26600 | ||
26601 | ||
c370783e | 26602 | static PyObject *_wrap_DropSource_GetDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26603 | PyObject *resultobj; |
26604 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
26605 | wxDataObject *result; | |
26606 | PyObject * obj0 = 0 ; | |
26607 | char *kwnames[] = { | |
26608 | (char *) "self", NULL | |
26609 | }; | |
26610 | ||
26611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropSource_GetDataObject",kwnames,&obj0)) goto fail; | |
26612 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
26613 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26614 | { | |
26615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26616 | result = (wxDataObject *)(arg1)->GetDataObject(); | |
26617 | ||
26618 | wxPyEndAllowThreads(__tstate); | |
26619 | if (PyErr_Occurred()) SWIG_fail; | |
26620 | } | |
26621 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0); | |
26622 | return resultobj; | |
26623 | fail: | |
26624 | return NULL; | |
26625 | } | |
26626 | ||
26627 | ||
c370783e | 26628 | static PyObject *_wrap_DropSource_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26629 | PyObject *resultobj; |
26630 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
26631 | int arg2 ; | |
26632 | wxCursor *arg3 = 0 ; | |
26633 | PyObject * obj0 = 0 ; | |
26634 | PyObject * obj1 = 0 ; | |
26635 | PyObject * obj2 = 0 ; | |
26636 | char *kwnames[] = { | |
26637 | (char *) "self",(char *) "res",(char *) "cursor", NULL | |
26638 | }; | |
26639 | ||
26640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropSource_SetCursor",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26641 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
26642 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 26643 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
26644 | if (PyErr_Occurred()) SWIG_fail; |
26645 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor, | |
26646 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26647 | SWIG_fail; | |
26648 | if (arg3 == NULL) { | |
26649 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26650 | SWIG_fail; | |
26651 | } | |
26652 | { | |
26653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26654 | (arg1)->SetCursor((wxDragResult )arg2,(wxCursor const &)*arg3); | |
26655 | ||
26656 | wxPyEndAllowThreads(__tstate); | |
26657 | if (PyErr_Occurred()) SWIG_fail; | |
26658 | } | |
26659 | Py_INCREF(Py_None); resultobj = Py_None; | |
26660 | return resultobj; | |
26661 | fail: | |
26662 | return NULL; | |
26663 | } | |
26664 | ||
26665 | ||
c370783e | 26666 | static PyObject *_wrap_DropSource_DoDragDrop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26667 | PyObject *resultobj; |
26668 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
26669 | int arg2 = (int) wxDrag_CopyOnly ; | |
26670 | int result; | |
26671 | PyObject * obj0 = 0 ; | |
26672 | PyObject * obj1 = 0 ; | |
26673 | char *kwnames[] = { | |
26674 | (char *) "self",(char *) "flags", NULL | |
26675 | }; | |
26676 | ||
26677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DropSource_DoDragDrop",kwnames,&obj0,&obj1)) goto fail; | |
26678 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
26679 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26680 | if (obj1) { | |
c370783e | 26681 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
26682 | if (PyErr_Occurred()) SWIG_fail; |
26683 | } | |
26684 | { | |
26685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26686 | result = (int)(arg1)->DoDragDrop(arg2); | |
26687 | ||
26688 | wxPyEndAllowThreads(__tstate); | |
26689 | if (PyErr_Occurred()) SWIG_fail; | |
26690 | } | |
c370783e | 26691 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
26692 | return resultobj; |
26693 | fail: | |
26694 | return NULL; | |
26695 | } | |
26696 | ||
26697 | ||
c370783e | 26698 | static PyObject *_wrap_DropSource_base_GiveFeedback(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26699 | PyObject *resultobj; |
26700 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
26701 | int arg2 ; | |
26702 | bool result; | |
26703 | PyObject * obj0 = 0 ; | |
26704 | PyObject * obj1 = 0 ; | |
26705 | char *kwnames[] = { | |
26706 | (char *) "self",(char *) "effect", NULL | |
26707 | }; | |
26708 | ||
26709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_base_GiveFeedback",kwnames,&obj0,&obj1)) goto fail; | |
26710 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
26711 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 26712 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
26713 | if (PyErr_Occurred()) SWIG_fail; |
26714 | { | |
26715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26716 | result = (bool)(arg1)->base_GiveFeedback((wxDragResult )arg2); | |
26717 | ||
26718 | wxPyEndAllowThreads(__tstate); | |
26719 | if (PyErr_Occurred()) SWIG_fail; | |
26720 | } | |
26721 | { | |
26722 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26723 | } | |
26724 | return resultobj; | |
26725 | fail: | |
26726 | return NULL; | |
26727 | } | |
26728 | ||
26729 | ||
c370783e | 26730 | static PyObject * DropSource_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
26731 | PyObject *obj; |
26732 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26733 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDropSource, obj); | |
26734 | Py_INCREF(obj); | |
26735 | return Py_BuildValue((char *)""); | |
26736 | } | |
c370783e | 26737 | static PyObject *_wrap_new_DropTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26738 | PyObject *resultobj; |
26739 | wxDataObject *arg1 = (wxDataObject *) NULL ; | |
26740 | wxPyDropTarget *result; | |
26741 | PyObject * obj0 = 0 ; | |
26742 | char *kwnames[] = { | |
26743 | (char *) "dataObject", NULL | |
26744 | }; | |
26745 | ||
26746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DropTarget",kwnames,&obj0)) goto fail; | |
26747 | if (obj0) { | |
26748 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
26749 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
26750 | } | |
26751 | { | |
26752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26753 | result = (wxPyDropTarget *)new wxPyDropTarget(arg1); | |
26754 | ||
26755 | wxPyEndAllowThreads(__tstate); | |
26756 | if (PyErr_Occurred()) SWIG_fail; | |
26757 | } | |
26758 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 1); | |
26759 | return resultobj; | |
26760 | fail: | |
26761 | return NULL; | |
26762 | } | |
26763 | ||
26764 | ||
c370783e | 26765 | static PyObject *_wrap_DropTarget__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26766 | PyObject *resultobj; |
26767 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26768 | PyObject *arg2 = (PyObject *) 0 ; | |
26769 | PyObject *arg3 = (PyObject *) 0 ; | |
26770 | PyObject * obj0 = 0 ; | |
26771 | PyObject * obj1 = 0 ; | |
26772 | PyObject * obj2 = 0 ; | |
26773 | char *kwnames[] = { | |
26774 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
26775 | }; | |
26776 | ||
26777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26778 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26779 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26780 | arg2 = obj1; | |
26781 | arg3 = obj2; | |
26782 | { | |
26783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26784 | (arg1)->_setCallbackInfo(arg2,arg3); | |
26785 | ||
26786 | wxPyEndAllowThreads(__tstate); | |
26787 | if (PyErr_Occurred()) SWIG_fail; | |
26788 | } | |
26789 | Py_INCREF(Py_None); resultobj = Py_None; | |
26790 | return resultobj; | |
26791 | fail: | |
26792 | return NULL; | |
26793 | } | |
26794 | ||
26795 | ||
c370783e | 26796 | static PyObject *_wrap_delete_DropTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26797 | PyObject *resultobj; |
26798 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26799 | PyObject * obj0 = 0 ; | |
26800 | char *kwnames[] = { | |
26801 | (char *) "self", NULL | |
26802 | }; | |
26803 | ||
26804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropTarget",kwnames,&obj0)) goto fail; | |
26805 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26806 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26807 | { | |
26808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26809 | delete arg1; | |
26810 | ||
26811 | wxPyEndAllowThreads(__tstate); | |
26812 | if (PyErr_Occurred()) SWIG_fail; | |
26813 | } | |
26814 | Py_INCREF(Py_None); resultobj = Py_None; | |
26815 | return resultobj; | |
26816 | fail: | |
26817 | return NULL; | |
26818 | } | |
26819 | ||
26820 | ||
c370783e | 26821 | static PyObject *_wrap_DropTarget_GetDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26822 | PyObject *resultobj; |
26823 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26824 | wxDataObject *result; | |
26825 | PyObject * obj0 = 0 ; | |
26826 | char *kwnames[] = { | |
26827 | (char *) "self", NULL | |
26828 | }; | |
26829 | ||
26830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDataObject",kwnames,&obj0)) goto fail; | |
26831 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26832 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26833 | { | |
26834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26835 | result = (wxDataObject *)(arg1)->GetDataObject(); | |
26836 | ||
26837 | wxPyEndAllowThreads(__tstate); | |
26838 | if (PyErr_Occurred()) SWIG_fail; | |
26839 | } | |
26840 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0); | |
26841 | return resultobj; | |
26842 | fail: | |
26843 | return NULL; | |
26844 | } | |
26845 | ||
26846 | ||
c370783e | 26847 | static PyObject *_wrap_DropTarget_SetDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26848 | PyObject *resultobj; |
26849 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26850 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
26851 | PyObject * obj0 = 0 ; | |
26852 | PyObject * obj1 = 0 ; | |
26853 | char *kwnames[] = { | |
26854 | (char *) "self",(char *) "dataObject", NULL | |
26855 | }; | |
26856 | ||
26857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDataObject",kwnames,&obj0,&obj1)) goto fail; | |
26858 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26859 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26860 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
26861 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
26862 | { | |
26863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26864 | (arg1)->SetDataObject(arg2); | |
26865 | ||
26866 | wxPyEndAllowThreads(__tstate); | |
26867 | if (PyErr_Occurred()) SWIG_fail; | |
26868 | } | |
26869 | Py_INCREF(Py_None); resultobj = Py_None; | |
26870 | return resultobj; | |
26871 | fail: | |
26872 | return NULL; | |
26873 | } | |
26874 | ||
26875 | ||
c370783e | 26876 | static PyObject *_wrap_DropTarget_base_OnEnter(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26877 | PyObject *resultobj; |
26878 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26879 | int arg2 ; | |
26880 | int arg3 ; | |
26881 | int arg4 ; | |
26882 | int result; | |
26883 | PyObject * obj0 = 0 ; | |
26884 | PyObject * obj1 = 0 ; | |
26885 | PyObject * obj2 = 0 ; | |
26886 | PyObject * obj3 = 0 ; | |
26887 | char *kwnames[] = { | |
26888 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26889 | }; | |
26890 | ||
26891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26892 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26893 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 26894 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 26895 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 26896 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 26897 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 26898 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
26899 | if (PyErr_Occurred()) SWIG_fail; |
26900 | { | |
26901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26902 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
26903 | ||
26904 | wxPyEndAllowThreads(__tstate); | |
26905 | if (PyErr_Occurred()) SWIG_fail; | |
26906 | } | |
c370783e | 26907 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
26908 | return resultobj; |
26909 | fail: | |
26910 | return NULL; | |
26911 | } | |
26912 | ||
26913 | ||
c370783e | 26914 | static PyObject *_wrap_DropTarget_base_OnDragOver(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26915 | PyObject *resultobj; |
26916 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26917 | int arg2 ; | |
26918 | int arg3 ; | |
26919 | int arg4 ; | |
26920 | int result; | |
26921 | PyObject * obj0 = 0 ; | |
26922 | PyObject * obj1 = 0 ; | |
26923 | PyObject * obj2 = 0 ; | |
26924 | PyObject * obj3 = 0 ; | |
26925 | char *kwnames[] = { | |
26926 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26927 | }; | |
26928 | ||
26929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26930 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26931 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 26932 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 26933 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 26934 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 26935 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 26936 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
26937 | if (PyErr_Occurred()) SWIG_fail; |
26938 | { | |
26939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26940 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
26941 | ||
26942 | wxPyEndAllowThreads(__tstate); | |
26943 | if (PyErr_Occurred()) SWIG_fail; | |
26944 | } | |
c370783e | 26945 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
26946 | return resultobj; |
26947 | fail: | |
26948 | return NULL; | |
26949 | } | |
26950 | ||
26951 | ||
c370783e | 26952 | static PyObject *_wrap_DropTarget_base_OnLeave(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26953 | PyObject *resultobj; |
26954 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26955 | PyObject * obj0 = 0 ; | |
26956 | char *kwnames[] = { | |
26957 | (char *) "self", NULL | |
26958 | }; | |
26959 | ||
26960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
26961 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26962 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26963 | { | |
26964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26965 | (arg1)->base_OnLeave(); | |
26966 | ||
26967 | wxPyEndAllowThreads(__tstate); | |
26968 | if (PyErr_Occurred()) SWIG_fail; | |
26969 | } | |
26970 | Py_INCREF(Py_None); resultobj = Py_None; | |
26971 | return resultobj; | |
26972 | fail: | |
26973 | return NULL; | |
26974 | } | |
26975 | ||
26976 | ||
c370783e | 26977 | static PyObject *_wrap_DropTarget_base_OnDrop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26978 | PyObject *resultobj; |
26979 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26980 | int arg2 ; | |
26981 | int arg3 ; | |
26982 | bool result; | |
26983 | PyObject * obj0 = 0 ; | |
26984 | PyObject * obj1 = 0 ; | |
26985 | PyObject * obj2 = 0 ; | |
26986 | char *kwnames[] = { | |
26987 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26988 | }; | |
26989 | ||
26990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26991 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 26993 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 26994 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 26995 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
26996 | if (PyErr_Occurred()) SWIG_fail; |
26997 | { | |
26998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26999 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
27000 | ||
27001 | wxPyEndAllowThreads(__tstate); | |
27002 | if (PyErr_Occurred()) SWIG_fail; | |
27003 | } | |
27004 | { | |
27005 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27006 | } | |
27007 | return resultobj; | |
27008 | fail: | |
27009 | return NULL; | |
27010 | } | |
27011 | ||
27012 | ||
c370783e | 27013 | static PyObject *_wrap_DropTarget_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27014 | PyObject *resultobj; |
27015 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
27016 | bool result; | |
27017 | PyObject * obj0 = 0 ; | |
27018 | char *kwnames[] = { | |
27019 | (char *) "self", NULL | |
27020 | }; | |
27021 | ||
27022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetData",kwnames,&obj0)) goto fail; | |
27023 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
27024 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27025 | { | |
27026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27027 | result = (bool)(arg1)->GetData(); | |
27028 | ||
27029 | wxPyEndAllowThreads(__tstate); | |
27030 | if (PyErr_Occurred()) SWIG_fail; | |
27031 | } | |
27032 | { | |
27033 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27034 | } | |
27035 | return resultobj; | |
27036 | fail: | |
27037 | return NULL; | |
27038 | } | |
27039 | ||
27040 | ||
c370783e | 27041 | static PyObject * DropTarget_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
27042 | PyObject *obj; |
27043 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27044 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDropTarget, obj); | |
27045 | Py_INCREF(obj); | |
27046 | return Py_BuildValue((char *)""); | |
27047 | } | |
c370783e | 27048 | static PyObject *_wrap_new_TextDropTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27049 | PyObject *resultobj; |
27050 | wxPyTextDropTarget *result; | |
27051 | char *kwnames[] = { | |
27052 | NULL | |
27053 | }; | |
27054 | ||
27055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TextDropTarget",kwnames)) goto fail; | |
27056 | { | |
27057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27058 | result = (wxPyTextDropTarget *)new wxPyTextDropTarget(); | |
27059 | ||
27060 | wxPyEndAllowThreads(__tstate); | |
27061 | if (PyErr_Occurred()) SWIG_fail; | |
27062 | } | |
27063 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDropTarget, 1); | |
27064 | return resultobj; | |
27065 | fail: | |
27066 | return NULL; | |
27067 | } | |
27068 | ||
27069 | ||
c370783e | 27070 | static PyObject *_wrap_TextDropTarget__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27071 | PyObject *resultobj; |
27072 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
27073 | PyObject *arg2 = (PyObject *) 0 ; | |
27074 | PyObject *arg3 = (PyObject *) 0 ; | |
27075 | PyObject * obj0 = 0 ; | |
27076 | PyObject * obj1 = 0 ; | |
27077 | PyObject * obj2 = 0 ; | |
27078 | char *kwnames[] = { | |
27079 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
27080 | }; | |
27081 | ||
27082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27083 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, | |
27084 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27085 | arg2 = obj1; | |
27086 | arg3 = obj2; | |
27087 | { | |
27088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27089 | (arg1)->_setCallbackInfo(arg2,arg3); | |
27090 | ||
27091 | wxPyEndAllowThreads(__tstate); | |
27092 | if (PyErr_Occurred()) SWIG_fail; | |
27093 | } | |
27094 | Py_INCREF(Py_None); resultobj = Py_None; | |
27095 | return resultobj; | |
27096 | fail: | |
27097 | return NULL; | |
27098 | } | |
27099 | ||
27100 | ||
c370783e | 27101 | static PyObject *_wrap_TextDropTarget_base_OnEnter(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27102 | PyObject *resultobj; |
27103 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
27104 | int arg2 ; | |
27105 | int arg3 ; | |
27106 | int arg4 ; | |
27107 | int result; | |
27108 | PyObject * obj0 = 0 ; | |
27109 | PyObject * obj1 = 0 ; | |
27110 | PyObject * obj2 = 0 ; | |
27111 | PyObject * obj3 = 0 ; | |
27112 | char *kwnames[] = { | |
27113 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
27114 | }; | |
27115 | ||
27116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
27117 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, | |
27118 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 27119 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 27120 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 27121 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 27122 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 27123 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
27124 | if (PyErr_Occurred()) SWIG_fail; |
27125 | { | |
27126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27127 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
27128 | ||
27129 | wxPyEndAllowThreads(__tstate); | |
27130 | if (PyErr_Occurred()) SWIG_fail; | |
27131 | } | |
c370783e | 27132 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27133 | return resultobj; |
27134 | fail: | |
27135 | return NULL; | |
27136 | } | |
27137 | ||
27138 | ||
c370783e | 27139 | static PyObject *_wrap_TextDropTarget_base_OnDragOver(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27140 | PyObject *resultobj; |
27141 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
27142 | int arg2 ; | |
27143 | int arg3 ; | |
27144 | int arg4 ; | |
27145 | int result; | |
27146 | PyObject * obj0 = 0 ; | |
27147 | PyObject * obj1 = 0 ; | |
27148 | PyObject * obj2 = 0 ; | |
27149 | PyObject * obj3 = 0 ; | |
27150 | char *kwnames[] = { | |
27151 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
27152 | }; | |
27153 | ||
27154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
27155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, | |
27156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 27157 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 27158 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 27159 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 27160 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 27161 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
27162 | if (PyErr_Occurred()) SWIG_fail; |
27163 | { | |
27164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27165 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
27166 | ||
27167 | wxPyEndAllowThreads(__tstate); | |
27168 | if (PyErr_Occurred()) SWIG_fail; | |
27169 | } | |
c370783e | 27170 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27171 | return resultobj; |
27172 | fail: | |
27173 | return NULL; | |
27174 | } | |
27175 | ||
27176 | ||
c370783e | 27177 | static PyObject *_wrap_TextDropTarget_base_OnLeave(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27178 | PyObject *resultobj; |
27179 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
27180 | PyObject * obj0 = 0 ; | |
27181 | char *kwnames[] = { | |
27182 | (char *) "self", NULL | |
27183 | }; | |
27184 | ||
27185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
27186 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, | |
27187 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27188 | { | |
27189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27190 | (arg1)->base_OnLeave(); | |
27191 | ||
27192 | wxPyEndAllowThreads(__tstate); | |
27193 | if (PyErr_Occurred()) SWIG_fail; | |
27194 | } | |
27195 | Py_INCREF(Py_None); resultobj = Py_None; | |
27196 | return resultobj; | |
27197 | fail: | |
27198 | return NULL; | |
27199 | } | |
27200 | ||
27201 | ||
c370783e | 27202 | static PyObject *_wrap_TextDropTarget_base_OnDrop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27203 | PyObject *resultobj; |
27204 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
27205 | int arg2 ; | |
27206 | int arg3 ; | |
27207 | bool result; | |
27208 | PyObject * obj0 = 0 ; | |
27209 | PyObject * obj1 = 0 ; | |
27210 | PyObject * obj2 = 0 ; | |
27211 | char *kwnames[] = { | |
27212 | (char *) "self",(char *) "x",(char *) "y", NULL | |
27213 | }; | |
27214 | ||
27215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27216 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, | |
27217 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 27218 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 27219 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 27220 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
27221 | if (PyErr_Occurred()) SWIG_fail; |
27222 | { | |
27223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27224 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
27225 | ||
27226 | wxPyEndAllowThreads(__tstate); | |
27227 | if (PyErr_Occurred()) SWIG_fail; | |
27228 | } | |
27229 | { | |
27230 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27231 | } | |
27232 | return resultobj; | |
27233 | fail: | |
27234 | return NULL; | |
27235 | } | |
27236 | ||
27237 | ||
c370783e | 27238 | static PyObject *_wrap_TextDropTarget_base_OnData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27239 | PyObject *resultobj; |
27240 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
27241 | int arg2 ; | |
27242 | int arg3 ; | |
27243 | int arg4 ; | |
27244 | int result; | |
27245 | PyObject * obj0 = 0 ; | |
27246 | PyObject * obj1 = 0 ; | |
27247 | PyObject * obj2 = 0 ; | |
27248 | PyObject * obj3 = 0 ; | |
27249 | char *kwnames[] = { | |
27250 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
27251 | }; | |
27252 | ||
27253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
27254 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, | |
27255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 27256 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 27257 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 27258 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 27259 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 27260 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
27261 | if (PyErr_Occurred()) SWIG_fail; |
27262 | { | |
27263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27264 | result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4); | |
27265 | ||
27266 | wxPyEndAllowThreads(__tstate); | |
27267 | if (PyErr_Occurred()) SWIG_fail; | |
27268 | } | |
c370783e | 27269 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27270 | return resultobj; |
27271 | fail: | |
27272 | return NULL; | |
27273 | } | |
27274 | ||
27275 | ||
c370783e | 27276 | static PyObject * TextDropTarget_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
27277 | PyObject *obj; |
27278 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27279 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDropTarget, obj); | |
27280 | Py_INCREF(obj); | |
27281 | return Py_BuildValue((char *)""); | |
27282 | } | |
c370783e | 27283 | static PyObject *_wrap_new_FileDropTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27284 | PyObject *resultobj; |
27285 | wxPyFileDropTarget *result; | |
27286 | char *kwnames[] = { | |
27287 | NULL | |
27288 | }; | |
27289 | ||
27290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDropTarget",kwnames)) goto fail; | |
27291 | { | |
27292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27293 | result = (wxPyFileDropTarget *)new wxPyFileDropTarget(); | |
27294 | ||
27295 | wxPyEndAllowThreads(__tstate); | |
27296 | if (PyErr_Occurred()) SWIG_fail; | |
27297 | } | |
27298 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileDropTarget, 1); | |
27299 | return resultobj; | |
27300 | fail: | |
27301 | return NULL; | |
27302 | } | |
27303 | ||
27304 | ||
c370783e | 27305 | static PyObject *_wrap_FileDropTarget__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27306 | PyObject *resultobj; |
27307 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
27308 | PyObject *arg2 = (PyObject *) 0 ; | |
27309 | PyObject *arg3 = (PyObject *) 0 ; | |
27310 | PyObject * obj0 = 0 ; | |
27311 | PyObject * obj1 = 0 ; | |
27312 | PyObject * obj2 = 0 ; | |
27313 | char *kwnames[] = { | |
27314 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
27315 | }; | |
27316 | ||
27317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27318 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, | |
27319 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27320 | arg2 = obj1; | |
27321 | arg3 = obj2; | |
27322 | { | |
27323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27324 | (arg1)->_setCallbackInfo(arg2,arg3); | |
27325 | ||
27326 | wxPyEndAllowThreads(__tstate); | |
27327 | if (PyErr_Occurred()) SWIG_fail; | |
27328 | } | |
27329 | Py_INCREF(Py_None); resultobj = Py_None; | |
27330 | return resultobj; | |
27331 | fail: | |
27332 | return NULL; | |
27333 | } | |
27334 | ||
27335 | ||
c370783e | 27336 | static PyObject *_wrap_FileDropTarget_base_OnEnter(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27337 | PyObject *resultobj; |
27338 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
27339 | int arg2 ; | |
27340 | int arg3 ; | |
27341 | int arg4 ; | |
27342 | int result; | |
27343 | PyObject * obj0 = 0 ; | |
27344 | PyObject * obj1 = 0 ; | |
27345 | PyObject * obj2 = 0 ; | |
27346 | PyObject * obj3 = 0 ; | |
27347 | char *kwnames[] = { | |
27348 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
27349 | }; | |
27350 | ||
27351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
27352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, | |
27353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 27354 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 27355 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 27356 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 27357 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 27358 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
27359 | if (PyErr_Occurred()) SWIG_fail; |
27360 | { | |
27361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27362 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
27363 | ||
27364 | wxPyEndAllowThreads(__tstate); | |
27365 | if (PyErr_Occurred()) SWIG_fail; | |
27366 | } | |
c370783e | 27367 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27368 | return resultobj; |
27369 | fail: | |
27370 | return NULL; | |
27371 | } | |
27372 | ||
27373 | ||
c370783e | 27374 | static PyObject *_wrap_FileDropTarget_base_OnDragOver(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27375 | PyObject *resultobj; |
27376 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
27377 | int arg2 ; | |
27378 | int arg3 ; | |
27379 | int arg4 ; | |
27380 | int result; | |
27381 | PyObject * obj0 = 0 ; | |
27382 | PyObject * obj1 = 0 ; | |
27383 | PyObject * obj2 = 0 ; | |
27384 | PyObject * obj3 = 0 ; | |
27385 | char *kwnames[] = { | |
27386 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
27387 | }; | |
27388 | ||
27389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
27390 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, | |
27391 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 27392 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 27393 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 27394 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 27395 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 27396 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
27397 | if (PyErr_Occurred()) SWIG_fail; |
27398 | { | |
27399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27400 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
27401 | ||
27402 | wxPyEndAllowThreads(__tstate); | |
27403 | if (PyErr_Occurred()) SWIG_fail; | |
27404 | } | |
c370783e | 27405 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27406 | return resultobj; |
27407 | fail: | |
27408 | return NULL; | |
27409 | } | |
27410 | ||
27411 | ||
c370783e | 27412 | static PyObject *_wrap_FileDropTarget_base_OnLeave(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27413 | PyObject *resultobj; |
27414 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
27415 | PyObject * obj0 = 0 ; | |
27416 | char *kwnames[] = { | |
27417 | (char *) "self", NULL | |
27418 | }; | |
27419 | ||
27420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
27421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, | |
27422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27423 | { | |
27424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27425 | (arg1)->base_OnLeave(); | |
27426 | ||
27427 | wxPyEndAllowThreads(__tstate); | |
27428 | if (PyErr_Occurred()) SWIG_fail; | |
27429 | } | |
27430 | Py_INCREF(Py_None); resultobj = Py_None; | |
27431 | return resultobj; | |
27432 | fail: | |
27433 | return NULL; | |
27434 | } | |
27435 | ||
27436 | ||
c370783e | 27437 | static PyObject *_wrap_FileDropTarget_base_OnDrop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27438 | PyObject *resultobj; |
27439 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
27440 | int arg2 ; | |
27441 | int arg3 ; | |
27442 | bool result; | |
27443 | PyObject * obj0 = 0 ; | |
27444 | PyObject * obj1 = 0 ; | |
27445 | PyObject * obj2 = 0 ; | |
27446 | char *kwnames[] = { | |
27447 | (char *) "self",(char *) "x",(char *) "y", NULL | |
27448 | }; | |
27449 | ||
27450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27451 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, | |
27452 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 27453 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 27454 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 27455 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
27456 | if (PyErr_Occurred()) SWIG_fail; |
27457 | { | |
27458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27459 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
27460 | ||
27461 | wxPyEndAllowThreads(__tstate); | |
27462 | if (PyErr_Occurred()) SWIG_fail; | |
27463 | } | |
27464 | { | |
27465 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27466 | } | |
27467 | return resultobj; | |
27468 | fail: | |
27469 | return NULL; | |
27470 | } | |
27471 | ||
27472 | ||
c370783e | 27473 | static PyObject *_wrap_FileDropTarget_base_OnData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27474 | PyObject *resultobj; |
27475 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
27476 | int arg2 ; | |
27477 | int arg3 ; | |
27478 | int arg4 ; | |
27479 | int result; | |
27480 | PyObject * obj0 = 0 ; | |
27481 | PyObject * obj1 = 0 ; | |
27482 | PyObject * obj2 = 0 ; | |
27483 | PyObject * obj3 = 0 ; | |
27484 | char *kwnames[] = { | |
27485 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
27486 | }; | |
27487 | ||
27488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
27489 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, | |
27490 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 27491 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 27492 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 27493 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 27494 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 27495 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
27496 | if (PyErr_Occurred()) SWIG_fail; |
27497 | { | |
27498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27499 | result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4); | |
27500 | ||
27501 | wxPyEndAllowThreads(__tstate); | |
27502 | if (PyErr_Occurred()) SWIG_fail; | |
27503 | } | |
c370783e | 27504 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27505 | return resultobj; |
27506 | fail: | |
27507 | return NULL; | |
27508 | } | |
27509 | ||
27510 | ||
c370783e | 27511 | static PyObject * FileDropTarget_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
27512 | PyObject *obj; |
27513 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27514 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFileDropTarget, obj); | |
27515 | Py_INCREF(obj); | |
27516 | return Py_BuildValue((char *)""); | |
27517 | } | |
c370783e | 27518 | static PyObject *_wrap_new_Clipboard(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27519 | PyObject *resultobj; |
27520 | wxClipboard *result; | |
27521 | char *kwnames[] = { | |
27522 | NULL | |
27523 | }; | |
27524 | ||
27525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Clipboard",kwnames)) goto fail; | |
27526 | { | |
27527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27528 | result = (wxClipboard *)new wxClipboard(); | |
27529 | ||
27530 | wxPyEndAllowThreads(__tstate); | |
27531 | if (PyErr_Occurred()) SWIG_fail; | |
27532 | } | |
27533 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 1); | |
27534 | return resultobj; | |
27535 | fail: | |
27536 | return NULL; | |
27537 | } | |
27538 | ||
27539 | ||
c370783e | 27540 | static PyObject *_wrap_delete_Clipboard(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27541 | PyObject *resultobj; |
27542 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27543 | PyObject * obj0 = 0 ; | |
27544 | char *kwnames[] = { | |
27545 | (char *) "self", NULL | |
27546 | }; | |
27547 | ||
27548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Clipboard",kwnames,&obj0)) goto fail; | |
27549 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27551 | { | |
27552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27553 | delete arg1; | |
27554 | ||
27555 | wxPyEndAllowThreads(__tstate); | |
27556 | if (PyErr_Occurred()) SWIG_fail; | |
27557 | } | |
27558 | Py_INCREF(Py_None); resultobj = Py_None; | |
27559 | return resultobj; | |
27560 | fail: | |
27561 | return NULL; | |
27562 | } | |
27563 | ||
27564 | ||
c370783e | 27565 | static PyObject *_wrap_Clipboard_Open(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27566 | PyObject *resultobj; |
27567 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27568 | bool result; | |
27569 | PyObject * obj0 = 0 ; | |
27570 | char *kwnames[] = { | |
27571 | (char *) "self", NULL | |
27572 | }; | |
27573 | ||
27574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Open",kwnames,&obj0)) goto fail; | |
27575 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27576 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27577 | { | |
27578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27579 | result = (bool)(arg1)->Open(); | |
27580 | ||
27581 | wxPyEndAllowThreads(__tstate); | |
27582 | if (PyErr_Occurred()) SWIG_fail; | |
27583 | } | |
27584 | { | |
27585 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27586 | } | |
27587 | return resultobj; | |
27588 | fail: | |
27589 | return NULL; | |
27590 | } | |
27591 | ||
27592 | ||
c370783e | 27593 | static PyObject *_wrap_Clipboard_Close(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27594 | PyObject *resultobj; |
27595 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27596 | PyObject * obj0 = 0 ; | |
27597 | char *kwnames[] = { | |
27598 | (char *) "self", NULL | |
27599 | }; | |
27600 | ||
27601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Close",kwnames,&obj0)) goto fail; | |
27602 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27603 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27604 | { | |
27605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27606 | (arg1)->Close(); | |
27607 | ||
27608 | wxPyEndAllowThreads(__tstate); | |
27609 | if (PyErr_Occurred()) SWIG_fail; | |
27610 | } | |
27611 | Py_INCREF(Py_None); resultobj = Py_None; | |
27612 | return resultobj; | |
27613 | fail: | |
27614 | return NULL; | |
27615 | } | |
27616 | ||
27617 | ||
c370783e | 27618 | static PyObject *_wrap_Clipboard_IsOpened(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27619 | PyObject *resultobj; |
27620 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27621 | bool result; | |
27622 | PyObject * obj0 = 0 ; | |
27623 | char *kwnames[] = { | |
27624 | (char *) "self", NULL | |
27625 | }; | |
27626 | ||
27627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_IsOpened",kwnames,&obj0)) goto fail; | |
27628 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27629 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27630 | { | |
27631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27632 | result = (bool)((wxClipboard const *)arg1)->IsOpened(); | |
27633 | ||
27634 | wxPyEndAllowThreads(__tstate); | |
27635 | if (PyErr_Occurred()) SWIG_fail; | |
27636 | } | |
27637 | { | |
27638 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27639 | } | |
27640 | return resultobj; | |
27641 | fail: | |
27642 | return NULL; | |
27643 | } | |
27644 | ||
27645 | ||
c370783e | 27646 | static PyObject *_wrap_Clipboard_AddData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27647 | PyObject *resultobj; |
27648 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27649 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
27650 | bool result; | |
27651 | PyObject * obj0 = 0 ; | |
27652 | PyObject * obj1 = 0 ; | |
27653 | char *kwnames[] = { | |
27654 | (char *) "self",(char *) "data", NULL | |
27655 | }; | |
27656 | ||
27657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_AddData",kwnames,&obj0,&obj1)) goto fail; | |
27658 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27659 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27660 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
27661 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
27662 | { | |
27663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27664 | result = (bool)(arg1)->AddData(arg2); | |
27665 | ||
27666 | wxPyEndAllowThreads(__tstate); | |
27667 | if (PyErr_Occurred()) SWIG_fail; | |
27668 | } | |
27669 | { | |
27670 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27671 | } | |
27672 | return resultobj; | |
27673 | fail: | |
27674 | return NULL; | |
27675 | } | |
27676 | ||
27677 | ||
c370783e | 27678 | static PyObject *_wrap_Clipboard_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27679 | PyObject *resultobj; |
27680 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27681 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
27682 | bool result; | |
27683 | PyObject * obj0 = 0 ; | |
27684 | PyObject * obj1 = 0 ; | |
27685 | char *kwnames[] = { | |
27686 | (char *) "self",(char *) "data", NULL | |
27687 | }; | |
27688 | ||
27689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_SetData",kwnames,&obj0,&obj1)) goto fail; | |
27690 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27692 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
27693 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
27694 | { | |
27695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27696 | result = (bool)(arg1)->SetData(arg2); | |
27697 | ||
27698 | wxPyEndAllowThreads(__tstate); | |
27699 | if (PyErr_Occurred()) SWIG_fail; | |
27700 | } | |
27701 | { | |
27702 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27703 | } | |
27704 | return resultobj; | |
27705 | fail: | |
27706 | return NULL; | |
27707 | } | |
27708 | ||
27709 | ||
c370783e | 27710 | static PyObject *_wrap_Clipboard_IsSupported(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27711 | PyObject *resultobj; |
27712 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27713 | wxDataFormat *arg2 = 0 ; | |
27714 | bool result; | |
27715 | PyObject * obj0 = 0 ; | |
27716 | PyObject * obj1 = 0 ; | |
27717 | char *kwnames[] = { | |
27718 | (char *) "self",(char *) "format", NULL | |
27719 | }; | |
27720 | ||
27721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_IsSupported",kwnames,&obj0,&obj1)) goto fail; | |
27722 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27724 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
27725 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27726 | SWIG_fail; | |
27727 | if (arg2 == NULL) { | |
27728 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27729 | SWIG_fail; | |
27730 | } | |
27731 | { | |
27732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27733 | result = (bool)(arg1)->IsSupported((wxDataFormat const &)*arg2); | |
27734 | ||
27735 | wxPyEndAllowThreads(__tstate); | |
27736 | if (PyErr_Occurred()) SWIG_fail; | |
27737 | } | |
27738 | { | |
27739 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27740 | } | |
27741 | return resultobj; | |
27742 | fail: | |
27743 | return NULL; | |
27744 | } | |
27745 | ||
27746 | ||
c370783e | 27747 | static PyObject *_wrap_Clipboard_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27748 | PyObject *resultobj; |
27749 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27750 | wxDataObject *arg2 = 0 ; | |
27751 | bool result; | |
27752 | PyObject * obj0 = 0 ; | |
27753 | PyObject * obj1 = 0 ; | |
27754 | char *kwnames[] = { | |
27755 | (char *) "self",(char *) "data", NULL | |
27756 | }; | |
27757 | ||
27758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_GetData",kwnames,&obj0,&obj1)) goto fail; | |
27759 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27760 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27761 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
27762 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27763 | SWIG_fail; | |
27764 | if (arg2 == NULL) { | |
27765 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27766 | SWIG_fail; | |
27767 | } | |
27768 | { | |
27769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27770 | result = (bool)(arg1)->GetData(*arg2); | |
27771 | ||
27772 | wxPyEndAllowThreads(__tstate); | |
27773 | if (PyErr_Occurred()) SWIG_fail; | |
27774 | } | |
27775 | { | |
27776 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27777 | } | |
27778 | return resultobj; | |
27779 | fail: | |
27780 | return NULL; | |
27781 | } | |
27782 | ||
27783 | ||
c370783e | 27784 | static PyObject *_wrap_Clipboard_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27785 | PyObject *resultobj; |
27786 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27787 | PyObject * obj0 = 0 ; | |
27788 | char *kwnames[] = { | |
27789 | (char *) "self", NULL | |
27790 | }; | |
27791 | ||
27792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Clear",kwnames,&obj0)) goto fail; | |
27793 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27794 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27795 | { | |
27796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27797 | (arg1)->Clear(); | |
27798 | ||
27799 | wxPyEndAllowThreads(__tstate); | |
27800 | if (PyErr_Occurred()) SWIG_fail; | |
27801 | } | |
27802 | Py_INCREF(Py_None); resultobj = Py_None; | |
27803 | return resultobj; | |
27804 | fail: | |
27805 | return NULL; | |
27806 | } | |
27807 | ||
27808 | ||
c370783e | 27809 | static PyObject *_wrap_Clipboard_Flush(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27810 | PyObject *resultobj; |
27811 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27812 | bool result; | |
27813 | PyObject * obj0 = 0 ; | |
27814 | char *kwnames[] = { | |
27815 | (char *) "self", NULL | |
27816 | }; | |
27817 | ||
27818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Flush",kwnames,&obj0)) goto fail; | |
27819 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27820 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27821 | { | |
27822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27823 | result = (bool)(arg1)->Flush(); | |
27824 | ||
27825 | wxPyEndAllowThreads(__tstate); | |
27826 | if (PyErr_Occurred()) SWIG_fail; | |
27827 | } | |
27828 | { | |
27829 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27830 | } | |
27831 | return resultobj; | |
27832 | fail: | |
27833 | return NULL; | |
27834 | } | |
27835 | ||
27836 | ||
c370783e | 27837 | static PyObject *_wrap_Clipboard_UsePrimarySelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27838 | PyObject *resultobj; |
27839 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
b411df4a | 27840 | bool arg2 = (bool) true ; |
d55e5bfc RD |
27841 | PyObject * obj0 = 0 ; |
27842 | PyObject * obj1 = 0 ; | |
27843 | char *kwnames[] = { | |
27844 | (char *) "self",(char *) "primary", NULL | |
27845 | }; | |
27846 | ||
27847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Clipboard_UsePrimarySelection",kwnames,&obj0,&obj1)) goto fail; | |
27848 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27849 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27850 | if (obj1) { | |
c370783e | 27851 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
27852 | if (PyErr_Occurred()) SWIG_fail; |
27853 | } | |
27854 | { | |
27855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27856 | (arg1)->UsePrimarySelection(arg2); | |
27857 | ||
27858 | wxPyEndAllowThreads(__tstate); | |
27859 | if (PyErr_Occurred()) SWIG_fail; | |
27860 | } | |
27861 | Py_INCREF(Py_None); resultobj = Py_None; | |
27862 | return resultobj; | |
27863 | fail: | |
27864 | return NULL; | |
27865 | } | |
27866 | ||
27867 | ||
c370783e | 27868 | static PyObject *_wrap_Clipboard_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
a001823c RD |
27869 | PyObject *resultobj; |
27870 | wxClipboard *result; | |
27871 | char *kwnames[] = { | |
27872 | NULL | |
27873 | }; | |
27874 | ||
27875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Clipboard_Get",kwnames)) goto fail; | |
27876 | { | |
27877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27878 | result = (wxClipboard *)wxClipboard::Get(); | |
27879 | ||
27880 | wxPyEndAllowThreads(__tstate); | |
27881 | if (PyErr_Occurred()) SWIG_fail; | |
27882 | } | |
27883 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 0); | |
27884 | return resultobj; | |
27885 | fail: | |
27886 | return NULL; | |
27887 | } | |
27888 | ||
27889 | ||
c370783e | 27890 | static PyObject * Clipboard_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
27891 | PyObject *obj; |
27892 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27893 | SWIG_TypeClientData(SWIGTYPE_p_wxClipboard, obj); | |
27894 | Py_INCREF(obj); | |
27895 | return Py_BuildValue((char *)""); | |
27896 | } | |
c370783e | 27897 | static PyObject *_wrap_new_ClipboardLocker(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27898 | PyObject *resultobj; |
27899 | wxClipboard *arg1 = (wxClipboard *) NULL ; | |
27900 | wxClipboardLocker *result; | |
27901 | PyObject * obj0 = 0 ; | |
27902 | char *kwnames[] = { | |
27903 | (char *) "clipboard", NULL | |
27904 | }; | |
27905 | ||
27906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ClipboardLocker",kwnames,&obj0)) goto fail; | |
27907 | if (obj0) { | |
27908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27910 | } | |
27911 | { | |
27912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27913 | result = (wxClipboardLocker *)new wxClipboardLocker(arg1); | |
27914 | ||
27915 | wxPyEndAllowThreads(__tstate); | |
27916 | if (PyErr_Occurred()) SWIG_fail; | |
27917 | } | |
27918 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboardLocker, 1); | |
27919 | return resultobj; | |
27920 | fail: | |
27921 | return NULL; | |
27922 | } | |
27923 | ||
27924 | ||
c370783e | 27925 | static PyObject *_wrap_delete_ClipboardLocker(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27926 | PyObject *resultobj; |
27927 | wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ; | |
27928 | PyObject * obj0 = 0 ; | |
27929 | char *kwnames[] = { | |
27930 | (char *) "self", NULL | |
27931 | }; | |
27932 | ||
27933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ClipboardLocker",kwnames,&obj0)) goto fail; | |
27934 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker, | |
27935 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27936 | { | |
27937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27938 | delete arg1; | |
27939 | ||
27940 | wxPyEndAllowThreads(__tstate); | |
27941 | if (PyErr_Occurred()) SWIG_fail; | |
27942 | } | |
27943 | Py_INCREF(Py_None); resultobj = Py_None; | |
27944 | return resultobj; | |
27945 | fail: | |
27946 | return NULL; | |
27947 | } | |
27948 | ||
27949 | ||
c370783e | 27950 | static PyObject *_wrap_ClipboardLocker___nonzero__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27951 | PyObject *resultobj; |
27952 | wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ; | |
27953 | bool result; | |
27954 | PyObject * obj0 = 0 ; | |
27955 | char *kwnames[] = { | |
27956 | (char *) "self", NULL | |
27957 | }; | |
27958 | ||
27959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ClipboardLocker___nonzero__",kwnames,&obj0)) goto fail; | |
27960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker, | |
27961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27962 | { | |
27963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27964 | result = (bool)wxClipboardLocker___nonzero__(arg1); | |
27965 | ||
27966 | wxPyEndAllowThreads(__tstate); | |
27967 | if (PyErr_Occurred()) SWIG_fail; | |
27968 | } | |
27969 | { | |
27970 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27971 | } | |
27972 | return resultobj; | |
27973 | fail: | |
27974 | return NULL; | |
27975 | } | |
27976 | ||
27977 | ||
c370783e | 27978 | static PyObject * ClipboardLocker_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
27979 | PyObject *obj; |
27980 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27981 | SWIG_TypeClientData(SWIGTYPE_p_wxClipboardLocker, obj); | |
27982 | Py_INCREF(obj); | |
27983 | return Py_BuildValue((char *)""); | |
27984 | } | |
c370783e | 27985 | static PyObject *_wrap_new_VideoMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27986 | PyObject *resultobj; |
27987 | int arg1 = (int) 0 ; | |
27988 | int arg2 = (int) 0 ; | |
27989 | int arg3 = (int) 0 ; | |
27990 | int arg4 = (int) 0 ; | |
27991 | wxVideoMode *result; | |
27992 | PyObject * obj0 = 0 ; | |
27993 | PyObject * obj1 = 0 ; | |
27994 | PyObject * obj2 = 0 ; | |
27995 | PyObject * obj3 = 0 ; | |
27996 | char *kwnames[] = { | |
27997 | (char *) "width",(char *) "height",(char *) "depth",(char *) "freq", NULL | |
27998 | }; | |
27999 | ||
28000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_VideoMode",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
28001 | if (obj0) { | |
c370783e | 28002 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
28003 | if (PyErr_Occurred()) SWIG_fail; |
28004 | } | |
28005 | if (obj1) { | |
c370783e | 28006 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
28007 | if (PyErr_Occurred()) SWIG_fail; |
28008 | } | |
28009 | if (obj2) { | |
c370783e | 28010 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
28011 | if (PyErr_Occurred()) SWIG_fail; |
28012 | } | |
28013 | if (obj3) { | |
c370783e | 28014 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
28015 | if (PyErr_Occurred()) SWIG_fail; |
28016 | } | |
28017 | { | |
28018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28019 | result = (wxVideoMode *)new wxVideoMode(arg1,arg2,arg3,arg4); | |
28020 | ||
28021 | wxPyEndAllowThreads(__tstate); | |
28022 | if (PyErr_Occurred()) SWIG_fail; | |
28023 | } | |
28024 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVideoMode, 1); | |
28025 | return resultobj; | |
28026 | fail: | |
28027 | return NULL; | |
28028 | } | |
28029 | ||
28030 | ||
c370783e | 28031 | static PyObject *_wrap_delete_VideoMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28032 | PyObject *resultobj; |
28033 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
28034 | PyObject * obj0 = 0 ; | |
28035 | char *kwnames[] = { | |
28036 | (char *) "self", NULL | |
28037 | }; | |
28038 | ||
28039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VideoMode",kwnames,&obj0)) goto fail; | |
28040 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
28041 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28042 | { | |
28043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28044 | delete arg1; | |
28045 | ||
28046 | wxPyEndAllowThreads(__tstate); | |
28047 | if (PyErr_Occurred()) SWIG_fail; | |
28048 | } | |
28049 | Py_INCREF(Py_None); resultobj = Py_None; | |
28050 | return resultobj; | |
28051 | fail: | |
28052 | return NULL; | |
28053 | } | |
28054 | ||
28055 | ||
c370783e | 28056 | static PyObject *_wrap_VideoMode_Matches(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28057 | PyObject *resultobj; |
28058 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
28059 | wxVideoMode *arg2 = 0 ; | |
28060 | bool result; | |
28061 | PyObject * obj0 = 0 ; | |
28062 | PyObject * obj1 = 0 ; | |
28063 | char *kwnames[] = { | |
28064 | (char *) "self",(char *) "other", NULL | |
28065 | }; | |
28066 | ||
28067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_Matches",kwnames,&obj0,&obj1)) goto fail; | |
28068 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
28069 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28070 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
28071 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28072 | SWIG_fail; | |
28073 | if (arg2 == NULL) { | |
28074 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
28075 | SWIG_fail; | |
28076 | } | |
28077 | { | |
28078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28079 | result = (bool)((wxVideoMode const *)arg1)->Matches((wxVideoMode const &)*arg2); | |
28080 | ||
28081 | wxPyEndAllowThreads(__tstate); | |
28082 | if (PyErr_Occurred()) SWIG_fail; | |
28083 | } | |
28084 | { | |
28085 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28086 | } | |
28087 | return resultobj; | |
28088 | fail: | |
28089 | return NULL; | |
28090 | } | |
28091 | ||
28092 | ||
c370783e | 28093 | static PyObject *_wrap_VideoMode_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28094 | PyObject *resultobj; |
28095 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
28096 | int result; | |
28097 | PyObject * obj0 = 0 ; | |
28098 | char *kwnames[] = { | |
28099 | (char *) "self", NULL | |
28100 | }; | |
28101 | ||
28102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetWidth",kwnames,&obj0)) goto fail; | |
28103 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
28104 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28105 | { | |
28106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28107 | result = (int)((wxVideoMode const *)arg1)->GetWidth(); | |
28108 | ||
28109 | wxPyEndAllowThreads(__tstate); | |
28110 | if (PyErr_Occurred()) SWIG_fail; | |
28111 | } | |
c370783e | 28112 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
28113 | return resultobj; |
28114 | fail: | |
28115 | return NULL; | |
28116 | } | |
28117 | ||
28118 | ||
c370783e | 28119 | static PyObject *_wrap_VideoMode_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28120 | PyObject *resultobj; |
28121 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
28122 | int result; | |
28123 | PyObject * obj0 = 0 ; | |
28124 | char *kwnames[] = { | |
28125 | (char *) "self", NULL | |
28126 | }; | |
28127 | ||
28128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetHeight",kwnames,&obj0)) goto fail; | |
28129 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
28130 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28131 | { | |
28132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28133 | result = (int)((wxVideoMode const *)arg1)->GetHeight(); | |
28134 | ||
28135 | wxPyEndAllowThreads(__tstate); | |
28136 | if (PyErr_Occurred()) SWIG_fail; | |
28137 | } | |
c370783e | 28138 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
28139 | return resultobj; |
28140 | fail: | |
28141 | return NULL; | |
28142 | } | |
28143 | ||
28144 | ||
c370783e | 28145 | static PyObject *_wrap_VideoMode_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28146 | PyObject *resultobj; |
28147 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
28148 | int result; | |
28149 | PyObject * obj0 = 0 ; | |
28150 | char *kwnames[] = { | |
28151 | (char *) "self", NULL | |
28152 | }; | |
28153 | ||
28154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetDepth",kwnames,&obj0)) goto fail; | |
28155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
28156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28157 | { | |
28158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28159 | result = (int)((wxVideoMode const *)arg1)->GetDepth(); | |
28160 | ||
28161 | wxPyEndAllowThreads(__tstate); | |
28162 | if (PyErr_Occurred()) SWIG_fail; | |
28163 | } | |
c370783e | 28164 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
28165 | return resultobj; |
28166 | fail: | |
28167 | return NULL; | |
28168 | } | |
28169 | ||
28170 | ||
c370783e | 28171 | static PyObject *_wrap_VideoMode_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28172 | PyObject *resultobj; |
28173 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
28174 | bool result; | |
28175 | PyObject * obj0 = 0 ; | |
28176 | char *kwnames[] = { | |
28177 | (char *) "self", NULL | |
28178 | }; | |
28179 | ||
28180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_IsOk",kwnames,&obj0)) goto fail; | |
28181 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
28182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28183 | { | |
28184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28185 | result = (bool)((wxVideoMode const *)arg1)->IsOk(); | |
28186 | ||
28187 | wxPyEndAllowThreads(__tstate); | |
28188 | if (PyErr_Occurred()) SWIG_fail; | |
28189 | } | |
28190 | { | |
28191 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28192 | } | |
28193 | return resultobj; | |
28194 | fail: | |
28195 | return NULL; | |
28196 | } | |
28197 | ||
28198 | ||
c370783e | 28199 | static PyObject *_wrap_VideoMode___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28200 | PyObject *resultobj; |
28201 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
28202 | wxVideoMode *arg2 = (wxVideoMode *) 0 ; | |
28203 | bool result; | |
28204 | PyObject * obj0 = 0 ; | |
28205 | PyObject * obj1 = 0 ; | |
28206 | char *kwnames[] = { | |
28207 | (char *) "self",(char *) "other", NULL | |
28208 | }; | |
28209 | ||
28210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___eq__",kwnames,&obj0,&obj1)) goto fail; | |
28211 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
28212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28213 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
28214 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28215 | { | |
28216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28217 | result = (bool)wxVideoMode___eq__(arg1,(wxVideoMode const *)arg2); | |
28218 | ||
28219 | wxPyEndAllowThreads(__tstate); | |
28220 | if (PyErr_Occurred()) SWIG_fail; | |
28221 | } | |
28222 | { | |
28223 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28224 | } | |
28225 | return resultobj; | |
28226 | fail: | |
28227 | return NULL; | |
28228 | } | |
28229 | ||
28230 | ||
c370783e | 28231 | static PyObject *_wrap_VideoMode___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28232 | PyObject *resultobj; |
28233 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
28234 | wxVideoMode *arg2 = (wxVideoMode *) 0 ; | |
28235 | bool result; | |
28236 | PyObject * obj0 = 0 ; | |
28237 | PyObject * obj1 = 0 ; | |
28238 | char *kwnames[] = { | |
28239 | (char *) "self",(char *) "other", NULL | |
28240 | }; | |
28241 | ||
28242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___ne__",kwnames,&obj0,&obj1)) goto fail; | |
28243 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
28244 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28245 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
28246 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28247 | { | |
28248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28249 | result = (bool)wxVideoMode___ne__(arg1,(wxVideoMode const *)arg2); | |
28250 | ||
28251 | wxPyEndAllowThreads(__tstate); | |
28252 | if (PyErr_Occurred()) SWIG_fail; | |
28253 | } | |
28254 | { | |
28255 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28256 | } | |
28257 | return resultobj; | |
28258 | fail: | |
28259 | return NULL; | |
28260 | } | |
28261 | ||
28262 | ||
c370783e | 28263 | static PyObject *_wrap_VideoMode_w_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28264 | PyObject *resultobj; |
28265 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
28266 | int arg2 ; | |
28267 | PyObject * obj0 = 0 ; | |
28268 | PyObject * obj1 = 0 ; | |
28269 | char *kwnames[] = { | |
28270 | (char *) "self",(char *) "w", NULL | |
28271 | }; | |
28272 | ||
28273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_w_set",kwnames,&obj0,&obj1)) goto fail; | |
28274 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
28275 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 28276 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
28277 | if (PyErr_Occurred()) SWIG_fail; |
28278 | if (arg1) (arg1)->w = arg2; | |
28279 | ||
28280 | Py_INCREF(Py_None); resultobj = Py_None; | |
28281 | return resultobj; | |
28282 | fail: | |
28283 | return NULL; | |
28284 | } | |
28285 | ||
28286 | ||
c370783e | 28287 | static PyObject *_wrap_VideoMode_w_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28288 | PyObject *resultobj; |
28289 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
28290 | int result; | |
28291 | PyObject * obj0 = 0 ; | |
28292 | char *kwnames[] = { | |
28293 | (char *) "self", NULL | |
28294 | }; | |
28295 | ||
28296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_w_get",kwnames,&obj0)) goto fail; | |
28297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
28298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28299 | result = (int) ((arg1)->w); | |
28300 | ||
c370783e | 28301 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
28302 | return resultobj; |
28303 | fail: | |
28304 | return NULL; | |
28305 | } | |
28306 | ||
28307 | ||
c370783e | 28308 | static PyObject *_wrap_VideoMode_h_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28309 | PyObject *resultobj; |
28310 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
28311 | int arg2 ; | |
28312 | PyObject * obj0 = 0 ; | |
28313 | PyObject * obj1 = 0 ; | |
28314 | char *kwnames[] = { | |
28315 | (char *) "self",(char *) "h", NULL | |
28316 | }; | |
28317 | ||
28318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_h_set",kwnames,&obj0,&obj1)) goto fail; | |
28319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
28320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 28321 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
28322 | if (PyErr_Occurred()) SWIG_fail; |
28323 | if (arg1) (arg1)->h = arg2; | |
28324 | ||
28325 | Py_INCREF(Py_None); resultobj = Py_None; | |
28326 | return resultobj; | |
28327 | fail: | |
28328 | return NULL; | |
28329 | } | |
28330 | ||
28331 | ||
c370783e | 28332 | static PyObject *_wrap_VideoMode_h_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28333 | PyObject *resultobj; |
28334 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
28335 | int result; | |
28336 | PyObject * obj0 = 0 ; | |
28337 | char *kwnames[] = { | |
28338 | (char *) "self", NULL | |
28339 | }; | |
28340 | ||
28341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_h_get",kwnames,&obj0)) goto fail; | |
28342 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
28343 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28344 | result = (int) ((arg1)->h); | |
28345 | ||
c370783e | 28346 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
28347 | return resultobj; |
28348 | fail: | |
28349 | return NULL; | |
28350 | } | |
28351 | ||
28352 | ||
c370783e | 28353 | static PyObject *_wrap_VideoMode_bpp_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28354 | PyObject *resultobj; |
28355 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
28356 | int arg2 ; | |
28357 | PyObject * obj0 = 0 ; | |
28358 | PyObject * obj1 = 0 ; | |
28359 | char *kwnames[] = { | |
28360 | (char *) "self",(char *) "bpp", NULL | |
28361 | }; | |
28362 | ||
28363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_bpp_set",kwnames,&obj0,&obj1)) goto fail; | |
28364 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
28365 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 28366 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
28367 | if (PyErr_Occurred()) SWIG_fail; |
28368 | if (arg1) (arg1)->bpp = arg2; | |
28369 | ||
28370 | Py_INCREF(Py_None); resultobj = Py_None; | |
28371 | return resultobj; | |
28372 | fail: | |
28373 | return NULL; | |
28374 | } | |
28375 | ||
28376 | ||
c370783e | 28377 | static PyObject *_wrap_VideoMode_bpp_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28378 | PyObject *resultobj; |
28379 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
28380 | int result; | |
28381 | PyObject * obj0 = 0 ; | |
28382 | char *kwnames[] = { | |
28383 | (char *) "self", NULL | |
28384 | }; | |
28385 | ||
28386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_bpp_get",kwnames,&obj0)) goto fail; | |
28387 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
28388 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28389 | result = (int) ((arg1)->bpp); | |
28390 | ||
c370783e | 28391 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
28392 | return resultobj; |
28393 | fail: | |
28394 | return NULL; | |
28395 | } | |
28396 | ||
28397 | ||
c370783e | 28398 | static PyObject *_wrap_VideoMode_refresh_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28399 | PyObject *resultobj; |
28400 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
28401 | int arg2 ; | |
28402 | PyObject * obj0 = 0 ; | |
28403 | PyObject * obj1 = 0 ; | |
28404 | char *kwnames[] = { | |
28405 | (char *) "self",(char *) "refresh", NULL | |
28406 | }; | |
28407 | ||
28408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_refresh_set",kwnames,&obj0,&obj1)) goto fail; | |
28409 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
28410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 28411 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
28412 | if (PyErr_Occurred()) SWIG_fail; |
28413 | if (arg1) (arg1)->refresh = arg2; | |
28414 | ||
28415 | Py_INCREF(Py_None); resultobj = Py_None; | |
28416 | return resultobj; | |
28417 | fail: | |
28418 | return NULL; | |
28419 | } | |
28420 | ||
28421 | ||
c370783e | 28422 | static PyObject *_wrap_VideoMode_refresh_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28423 | PyObject *resultobj; |
28424 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
28425 | int result; | |
28426 | PyObject * obj0 = 0 ; | |
28427 | char *kwnames[] = { | |
28428 | (char *) "self", NULL | |
28429 | }; | |
28430 | ||
28431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_refresh_get",kwnames,&obj0)) goto fail; | |
28432 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
28433 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28434 | result = (int) ((arg1)->refresh); | |
28435 | ||
c370783e | 28436 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
28437 | return resultobj; |
28438 | fail: | |
28439 | return NULL; | |
28440 | } | |
28441 | ||
28442 | ||
c370783e | 28443 | static PyObject * VideoMode_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
28444 | PyObject *obj; |
28445 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28446 | SWIG_TypeClientData(SWIGTYPE_p_wxVideoMode, obj); | |
28447 | Py_INCREF(obj); | |
28448 | return Py_BuildValue((char *)""); | |
28449 | } | |
c370783e | 28450 | static int _wrap_DefaultVideoMode_set(PyObject *) { |
d55e5bfc RD |
28451 | PyErr_SetString(PyExc_TypeError,"Variable DefaultVideoMode is read-only."); |
28452 | return 1; | |
28453 | } | |
28454 | ||
28455 | ||
28456 | static PyObject *_wrap_DefaultVideoMode_get() { | |
28457 | PyObject *pyobj; | |
28458 | ||
28459 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultVideoMode), SWIGTYPE_p_wxVideoMode, 0); | |
28460 | return pyobj; | |
28461 | } | |
28462 | ||
28463 | ||
c370783e | 28464 | static PyObject *_wrap_new_Display(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28465 | PyObject *resultobj; |
28466 | size_t arg1 = (size_t) 0 ; | |
28467 | wxDisplay *result; | |
28468 | PyObject * obj0 = 0 ; | |
28469 | char *kwnames[] = { | |
28470 | (char *) "index", NULL | |
28471 | }; | |
28472 | ||
28473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Display",kwnames,&obj0)) goto fail; | |
28474 | if (obj0) { | |
c370783e | 28475 | arg1 = (size_t)SWIG_As_unsigned_SS_long(obj0); |
d55e5bfc RD |
28476 | if (PyErr_Occurred()) SWIG_fail; |
28477 | } | |
28478 | { | |
28479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28480 | result = (wxDisplay *)new wxDisplay(arg1); | |
28481 | ||
28482 | wxPyEndAllowThreads(__tstate); | |
28483 | if (PyErr_Occurred()) SWIG_fail; | |
28484 | } | |
28485 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplay, 1); | |
28486 | return resultobj; | |
28487 | fail: | |
28488 | return NULL; | |
28489 | } | |
28490 | ||
28491 | ||
c370783e | 28492 | static PyObject *_wrap_delete_Display(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28493 | PyObject *resultobj; |
28494 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28495 | PyObject * obj0 = 0 ; | |
28496 | char *kwnames[] = { | |
28497 | (char *) "self", NULL | |
28498 | }; | |
28499 | ||
28500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Display",kwnames,&obj0)) goto fail; | |
28501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28503 | { | |
28504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28505 | delete arg1; | |
28506 | ||
28507 | wxPyEndAllowThreads(__tstate); | |
28508 | if (PyErr_Occurred()) SWIG_fail; | |
28509 | } | |
28510 | Py_INCREF(Py_None); resultobj = Py_None; | |
28511 | return resultobj; | |
28512 | fail: | |
28513 | return NULL; | |
28514 | } | |
28515 | ||
28516 | ||
c370783e | 28517 | static PyObject *_wrap_Display_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28518 | PyObject *resultobj; |
28519 | size_t result; | |
28520 | char *kwnames[] = { | |
28521 | NULL | |
28522 | }; | |
28523 | ||
28524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Display_GetCount",kwnames)) goto fail; | |
28525 | { | |
28526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28527 | result = (size_t)wxDisplay::GetCount(); | |
28528 | ||
28529 | wxPyEndAllowThreads(__tstate); | |
28530 | if (PyErr_Occurred()) SWIG_fail; | |
28531 | } | |
c370783e | 28532 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
28533 | return resultobj; |
28534 | fail: | |
28535 | return NULL; | |
28536 | } | |
28537 | ||
28538 | ||
c370783e | 28539 | static PyObject *_wrap_Display_GetFromPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28540 | PyObject *resultobj; |
28541 | wxPoint *arg1 = 0 ; | |
28542 | int result; | |
28543 | wxPoint temp1 ; | |
28544 | PyObject * obj0 = 0 ; | |
28545 | char *kwnames[] = { | |
28546 | (char *) "pt", NULL | |
28547 | }; | |
28548 | ||
28549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromPoint",kwnames,&obj0)) goto fail; | |
28550 | { | |
28551 | arg1 = &temp1; | |
28552 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
28553 | } | |
28554 | { | |
28555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28556 | result = (int)wxDisplay::GetFromPoint((wxPoint const &)*arg1); | |
28557 | ||
28558 | wxPyEndAllowThreads(__tstate); | |
28559 | if (PyErr_Occurred()) SWIG_fail; | |
28560 | } | |
c370783e | 28561 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
28562 | return resultobj; |
28563 | fail: | |
28564 | return NULL; | |
28565 | } | |
28566 | ||
28567 | ||
c370783e | 28568 | static PyObject *_wrap_Display_GetFromWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28569 | PyObject *resultobj; |
28570 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28571 | int result; | |
28572 | PyObject * obj0 = 0 ; | |
28573 | char *kwnames[] = { | |
28574 | (char *) "window", NULL | |
28575 | }; | |
28576 | ||
28577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromWindow",kwnames,&obj0)) goto fail; | |
28578 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28579 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28580 | { | |
28581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28582 | result = (int)Display_GetFromWindow(arg1); | |
28583 | ||
28584 | wxPyEndAllowThreads(__tstate); | |
28585 | if (PyErr_Occurred()) SWIG_fail; | |
28586 | } | |
c370783e | 28587 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
28588 | return resultobj; |
28589 | fail: | |
28590 | return NULL; | |
28591 | } | |
28592 | ||
28593 | ||
c370783e | 28594 | static PyObject *_wrap_Display_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28595 | PyObject *resultobj; |
28596 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28597 | bool result; | |
28598 | PyObject * obj0 = 0 ; | |
28599 | char *kwnames[] = { | |
28600 | (char *) "self", NULL | |
28601 | }; | |
28602 | ||
28603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsOk",kwnames,&obj0)) goto fail; | |
28604 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28606 | { | |
28607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28608 | result = (bool)((wxDisplay const *)arg1)->IsOk(); | |
28609 | ||
28610 | wxPyEndAllowThreads(__tstate); | |
28611 | if (PyErr_Occurred()) SWIG_fail; | |
28612 | } | |
28613 | { | |
28614 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28615 | } | |
28616 | return resultobj; | |
28617 | fail: | |
28618 | return NULL; | |
28619 | } | |
28620 | ||
28621 | ||
c370783e | 28622 | static PyObject *_wrap_Display_GetGeometry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28623 | PyObject *resultobj; |
28624 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28625 | wxRect result; | |
28626 | PyObject * obj0 = 0 ; | |
28627 | char *kwnames[] = { | |
28628 | (char *) "self", NULL | |
28629 | }; | |
28630 | ||
28631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetGeometry",kwnames,&obj0)) goto fail; | |
28632 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28633 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28634 | { | |
28635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28636 | result = ((wxDisplay const *)arg1)->GetGeometry(); | |
28637 | ||
28638 | wxPyEndAllowThreads(__tstate); | |
28639 | if (PyErr_Occurred()) SWIG_fail; | |
28640 | } | |
28641 | { | |
28642 | wxRect * resultptr; | |
28643 | resultptr = new wxRect((wxRect &) result); | |
28644 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
28645 | } | |
28646 | return resultobj; | |
28647 | fail: | |
28648 | return NULL; | |
28649 | } | |
28650 | ||
28651 | ||
c370783e | 28652 | static PyObject *_wrap_Display_GetName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28653 | PyObject *resultobj; |
28654 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28655 | wxString result; | |
28656 | PyObject * obj0 = 0 ; | |
28657 | char *kwnames[] = { | |
28658 | (char *) "self", NULL | |
28659 | }; | |
28660 | ||
28661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetName",kwnames,&obj0)) goto fail; | |
28662 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28663 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28664 | { | |
28665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28666 | result = ((wxDisplay const *)arg1)->GetName(); | |
28667 | ||
28668 | wxPyEndAllowThreads(__tstate); | |
28669 | if (PyErr_Occurred()) SWIG_fail; | |
28670 | } | |
28671 | { | |
28672 | #if wxUSE_UNICODE | |
28673 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28674 | #else | |
28675 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28676 | #endif | |
28677 | } | |
28678 | return resultobj; | |
28679 | fail: | |
28680 | return NULL; | |
28681 | } | |
28682 | ||
28683 | ||
c370783e | 28684 | static PyObject *_wrap_Display_IsPrimary(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28685 | PyObject *resultobj; |
28686 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28687 | bool result; | |
28688 | PyObject * obj0 = 0 ; | |
28689 | char *kwnames[] = { | |
28690 | (char *) "self", NULL | |
28691 | }; | |
28692 | ||
28693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsPrimary",kwnames,&obj0)) goto fail; | |
28694 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28695 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28696 | { | |
28697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28698 | result = (bool)((wxDisplay const *)arg1)->IsPrimary(); | |
28699 | ||
28700 | wxPyEndAllowThreads(__tstate); | |
28701 | if (PyErr_Occurred()) SWIG_fail; | |
28702 | } | |
28703 | { | |
28704 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28705 | } | |
28706 | return resultobj; | |
28707 | fail: | |
28708 | return NULL; | |
28709 | } | |
28710 | ||
28711 | ||
c370783e | 28712 | static PyObject *_wrap_Display_GetModes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28713 | PyObject *resultobj; |
28714 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28715 | wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ; | |
28716 | wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ; | |
28717 | PyObject *result; | |
28718 | PyObject * obj0 = 0 ; | |
28719 | PyObject * obj1 = 0 ; | |
28720 | char *kwnames[] = { | |
28721 | (char *) "self",(char *) "mode", NULL | |
28722 | }; | |
28723 | ||
28724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_GetModes",kwnames,&obj0,&obj1)) goto fail; | |
28725 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28727 | if (obj1) { | |
28728 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
28729 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28730 | SWIG_fail; | |
28731 | if (arg2 == NULL) { | |
28732 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
28733 | SWIG_fail; | |
28734 | } | |
28735 | } | |
28736 | { | |
28737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28738 | result = (PyObject *)wxDisplay_GetModes(arg1,(wxVideoMode const &)*arg2); | |
28739 | ||
28740 | wxPyEndAllowThreads(__tstate); | |
28741 | if (PyErr_Occurred()) SWIG_fail; | |
28742 | } | |
28743 | resultobj = result; | |
28744 | return resultobj; | |
28745 | fail: | |
28746 | return NULL; | |
28747 | } | |
28748 | ||
28749 | ||
c370783e | 28750 | static PyObject *_wrap_Display_GetCurrentMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28751 | PyObject *resultobj; |
28752 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28753 | wxVideoMode result; | |
28754 | PyObject * obj0 = 0 ; | |
28755 | char *kwnames[] = { | |
28756 | (char *) "self", NULL | |
28757 | }; | |
28758 | ||
28759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetCurrentMode",kwnames,&obj0)) goto fail; | |
28760 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28761 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28762 | { | |
28763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28764 | result = ((wxDisplay const *)arg1)->GetCurrentMode(); | |
28765 | ||
28766 | wxPyEndAllowThreads(__tstate); | |
28767 | if (PyErr_Occurred()) SWIG_fail; | |
28768 | } | |
28769 | { | |
28770 | wxVideoMode * resultptr; | |
28771 | resultptr = new wxVideoMode((wxVideoMode &) result); | |
28772 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVideoMode, 1); | |
28773 | } | |
28774 | return resultobj; | |
28775 | fail: | |
28776 | return NULL; | |
28777 | } | |
28778 | ||
28779 | ||
c370783e | 28780 | static PyObject *_wrap_Display_ChangeMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28781 | PyObject *resultobj; |
28782 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28783 | wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ; | |
28784 | wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ; | |
28785 | bool result; | |
28786 | PyObject * obj0 = 0 ; | |
28787 | PyObject * obj1 = 0 ; | |
28788 | char *kwnames[] = { | |
28789 | (char *) "self",(char *) "mode", NULL | |
28790 | }; | |
28791 | ||
28792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_ChangeMode",kwnames,&obj0,&obj1)) goto fail; | |
28793 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28794 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28795 | if (obj1) { | |
28796 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
28797 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28798 | SWIG_fail; | |
28799 | if (arg2 == NULL) { | |
28800 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
28801 | SWIG_fail; | |
28802 | } | |
28803 | } | |
28804 | { | |
28805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28806 | result = (bool)(arg1)->ChangeMode((wxVideoMode const &)*arg2); | |
28807 | ||
28808 | wxPyEndAllowThreads(__tstate); | |
28809 | if (PyErr_Occurred()) SWIG_fail; | |
28810 | } | |
28811 | { | |
28812 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28813 | } | |
28814 | return resultobj; | |
28815 | fail: | |
28816 | return NULL; | |
28817 | } | |
28818 | ||
28819 | ||
c370783e | 28820 | static PyObject *_wrap_Display_ResetMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28821 | PyObject *resultobj; |
28822 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28823 | PyObject * obj0 = 0 ; | |
28824 | char *kwnames[] = { | |
28825 | (char *) "self", NULL | |
28826 | }; | |
28827 | ||
28828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_ResetMode",kwnames,&obj0)) goto fail; | |
28829 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28830 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28831 | { | |
28832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28833 | (arg1)->ResetMode(); | |
28834 | ||
28835 | wxPyEndAllowThreads(__tstate); | |
28836 | if (PyErr_Occurred()) SWIG_fail; | |
28837 | } | |
28838 | Py_INCREF(Py_None); resultobj = Py_None; | |
28839 | return resultobj; | |
28840 | fail: | |
28841 | return NULL; | |
28842 | } | |
28843 | ||
28844 | ||
c370783e | 28845 | static PyObject * Display_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
28846 | PyObject *obj; |
28847 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28848 | SWIG_TypeClientData(SWIGTYPE_p_wxDisplay, obj); | |
28849 | Py_INCREF(obj); | |
28850 | return Py_BuildValue((char *)""); | |
28851 | } | |
070c48b4 RD |
28852 | static PyObject *_wrap_StandardPaths_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
28853 | PyObject *resultobj; | |
28854 | wxStandardPaths *result; | |
28855 | char *kwnames[] = { | |
28856 | NULL | |
28857 | }; | |
28858 | ||
28859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StandardPaths_Get",kwnames)) goto fail; | |
28860 | { | |
28861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8fb0e70a | 28862 | result = (wxStandardPaths *)StandardPaths_Get(); |
070c48b4 RD |
28863 | |
28864 | wxPyEndAllowThreads(__tstate); | |
28865 | if (PyErr_Occurred()) SWIG_fail; | |
28866 | } | |
28867 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStandardPaths, 0); | |
28868 | return resultobj; | |
28869 | fail: | |
28870 | return NULL; | |
28871 | } | |
28872 | ||
28873 | ||
28874 | static PyObject *_wrap_StandardPaths_GetConfigDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
28875 | PyObject *resultobj; | |
28876 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; | |
28877 | wxString result; | |
28878 | PyObject * obj0 = 0 ; | |
28879 | char *kwnames[] = { | |
28880 | (char *) "self", NULL | |
28881 | }; | |
28882 | ||
28883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetConfigDir",kwnames,&obj0)) goto fail; | |
28884 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths, | |
28885 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28886 | { | |
28887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28888 | result = ((wxStandardPaths const *)arg1)->GetConfigDir(); | |
28889 | ||
28890 | wxPyEndAllowThreads(__tstate); | |
28891 | if (PyErr_Occurred()) SWIG_fail; | |
28892 | } | |
28893 | { | |
28894 | #if wxUSE_UNICODE | |
28895 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28896 | #else | |
28897 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28898 | #endif | |
28899 | } | |
28900 | return resultobj; | |
28901 | fail: | |
28902 | return NULL; | |
28903 | } | |
28904 | ||
28905 | ||
28906 | static PyObject *_wrap_StandardPaths_GetUserConfigDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
28907 | PyObject *resultobj; | |
28908 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; | |
28909 | wxString result; | |
28910 | PyObject * obj0 = 0 ; | |
28911 | char *kwnames[] = { | |
28912 | (char *) "self", NULL | |
28913 | }; | |
28914 | ||
28915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetUserConfigDir",kwnames,&obj0)) goto fail; | |
28916 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths, | |
28917 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28918 | { | |
28919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28920 | result = ((wxStandardPaths const *)arg1)->GetUserConfigDir(); | |
28921 | ||
28922 | wxPyEndAllowThreads(__tstate); | |
28923 | if (PyErr_Occurred()) SWIG_fail; | |
28924 | } | |
28925 | { | |
28926 | #if wxUSE_UNICODE | |
28927 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28928 | #else | |
28929 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28930 | #endif | |
28931 | } | |
28932 | return resultobj; | |
28933 | fail: | |
28934 | return NULL; | |
28935 | } | |
28936 | ||
28937 | ||
28938 | static PyObject *_wrap_StandardPaths_GetDataDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
28939 | PyObject *resultobj; | |
28940 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; | |
28941 | wxString result; | |
28942 | PyObject * obj0 = 0 ; | |
28943 | char *kwnames[] = { | |
28944 | (char *) "self", NULL | |
28945 | }; | |
28946 | ||
28947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetDataDir",kwnames,&obj0)) goto fail; | |
28948 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths, | |
28949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28950 | { | |
28951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28952 | result = ((wxStandardPaths const *)arg1)->GetDataDir(); | |
28953 | ||
28954 | wxPyEndAllowThreads(__tstate); | |
28955 | if (PyErr_Occurred()) SWIG_fail; | |
28956 | } | |
28957 | { | |
28958 | #if wxUSE_UNICODE | |
28959 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28960 | #else | |
28961 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28962 | #endif | |
28963 | } | |
28964 | return resultobj; | |
28965 | fail: | |
28966 | return NULL; | |
28967 | } | |
28968 | ||
28969 | ||
28970 | static PyObject *_wrap_StandardPaths_GetLocalDataDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
28971 | PyObject *resultobj; | |
28972 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; | |
28973 | wxString result; | |
28974 | PyObject * obj0 = 0 ; | |
28975 | char *kwnames[] = { | |
28976 | (char *) "self", NULL | |
28977 | }; | |
28978 | ||
28979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetLocalDataDir",kwnames,&obj0)) goto fail; | |
28980 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths, | |
28981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28982 | { | |
28983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28984 | result = ((wxStandardPaths const *)arg1)->GetLocalDataDir(); | |
28985 | ||
28986 | wxPyEndAllowThreads(__tstate); | |
28987 | if (PyErr_Occurred()) SWIG_fail; | |
28988 | } | |
28989 | { | |
28990 | #if wxUSE_UNICODE | |
28991 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28992 | #else | |
28993 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28994 | #endif | |
28995 | } | |
28996 | return resultobj; | |
28997 | fail: | |
28998 | return NULL; | |
28999 | } | |
29000 | ||
29001 | ||
29002 | static PyObject *_wrap_StandardPaths_GetUserDataDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
29003 | PyObject *resultobj; | |
29004 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; | |
29005 | wxString result; | |
29006 | PyObject * obj0 = 0 ; | |
29007 | char *kwnames[] = { | |
29008 | (char *) "self", NULL | |
29009 | }; | |
29010 | ||
29011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetUserDataDir",kwnames,&obj0)) goto fail; | |
29012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths, | |
29013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29014 | { | |
29015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29016 | result = ((wxStandardPaths const *)arg1)->GetUserDataDir(); | |
29017 | ||
29018 | wxPyEndAllowThreads(__tstate); | |
29019 | if (PyErr_Occurred()) SWIG_fail; | |
29020 | } | |
29021 | { | |
29022 | #if wxUSE_UNICODE | |
29023 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
29024 | #else | |
29025 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
29026 | #endif | |
29027 | } | |
29028 | return resultobj; | |
29029 | fail: | |
29030 | return NULL; | |
29031 | } | |
29032 | ||
29033 | ||
29034 | static PyObject *_wrap_StandardPaths_GetUserLocalDataDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
29035 | PyObject *resultobj; | |
29036 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; | |
29037 | wxString result; | |
29038 | PyObject * obj0 = 0 ; | |
29039 | char *kwnames[] = { | |
29040 | (char *) "self", NULL | |
29041 | }; | |
29042 | ||
29043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetUserLocalDataDir",kwnames,&obj0)) goto fail; | |
29044 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths, | |
29045 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29046 | { | |
29047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29048 | result = ((wxStandardPaths const *)arg1)->GetUserLocalDataDir(); | |
29049 | ||
29050 | wxPyEndAllowThreads(__tstate); | |
29051 | if (PyErr_Occurred()) SWIG_fail; | |
29052 | } | |
29053 | { | |
29054 | #if wxUSE_UNICODE | |
29055 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
29056 | #else | |
29057 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
29058 | #endif | |
29059 | } | |
29060 | return resultobj; | |
29061 | fail: | |
29062 | return NULL; | |
29063 | } | |
29064 | ||
29065 | ||
29066 | static PyObject *_wrap_StandardPaths_GetPluginsDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
29067 | PyObject *resultobj; | |
29068 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; | |
29069 | wxString result; | |
29070 | PyObject * obj0 = 0 ; | |
29071 | char *kwnames[] = { | |
29072 | (char *) "self", NULL | |
29073 | }; | |
29074 | ||
29075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetPluginsDir",kwnames,&obj0)) goto fail; | |
29076 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths, | |
29077 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29078 | { | |
29079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29080 | result = ((wxStandardPaths const *)arg1)->GetPluginsDir(); | |
29081 | ||
29082 | wxPyEndAllowThreads(__tstate); | |
29083 | if (PyErr_Occurred()) SWIG_fail; | |
29084 | } | |
29085 | { | |
29086 | #if wxUSE_UNICODE | |
29087 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
29088 | #else | |
29089 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
29090 | #endif | |
29091 | } | |
29092 | return resultobj; | |
29093 | fail: | |
29094 | return NULL; | |
29095 | } | |
29096 | ||
29097 | ||
29098 | static PyObject *_wrap_StandardPaths_SetInstallPrefix(PyObject *, PyObject *args, PyObject *kwargs) { | |
29099 | PyObject *resultobj; | |
29100 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; | |
29101 | wxString *arg2 = 0 ; | |
29102 | bool temp2 = false ; | |
29103 | PyObject * obj0 = 0 ; | |
29104 | PyObject * obj1 = 0 ; | |
29105 | char *kwnames[] = { | |
29106 | (char *) "self",(char *) "prefix", NULL | |
29107 | }; | |
29108 | ||
29109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StandardPaths_SetInstallPrefix",kwnames,&obj0,&obj1)) goto fail; | |
29110 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths, | |
29111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29112 | { | |
29113 | arg2 = wxString_in_helper(obj1); | |
29114 | if (arg2 == NULL) SWIG_fail; | |
29115 | temp2 = true; | |
29116 | } | |
29117 | { | |
29118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29119 | wxStandardPaths_SetInstallPrefix(arg1,(wxString const &)*arg2); | |
29120 | ||
29121 | wxPyEndAllowThreads(__tstate); | |
29122 | if (PyErr_Occurred()) SWIG_fail; | |
29123 | } | |
29124 | Py_INCREF(Py_None); resultobj = Py_None; | |
29125 | { | |
29126 | if (temp2) | |
29127 | delete arg2; | |
29128 | } | |
29129 | return resultobj; | |
29130 | fail: | |
29131 | { | |
29132 | if (temp2) | |
29133 | delete arg2; | |
29134 | } | |
29135 | return NULL; | |
29136 | } | |
29137 | ||
29138 | ||
29139 | static PyObject *_wrap_StandardPaths_GetInstallPrefix(PyObject *, PyObject *args, PyObject *kwargs) { | |
29140 | PyObject *resultobj; | |
29141 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; | |
29142 | wxString result; | |
29143 | PyObject * obj0 = 0 ; | |
29144 | char *kwnames[] = { | |
29145 | (char *) "self", NULL | |
29146 | }; | |
29147 | ||
29148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetInstallPrefix",kwnames,&obj0)) goto fail; | |
29149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths, | |
29150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29151 | { | |
29152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29153 | result = wxStandardPaths_GetInstallPrefix(arg1); | |
29154 | ||
29155 | wxPyEndAllowThreads(__tstate); | |
29156 | if (PyErr_Occurred()) SWIG_fail; | |
29157 | } | |
29158 | { | |
29159 | #if wxUSE_UNICODE | |
29160 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
29161 | #else | |
29162 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
29163 | #endif | |
29164 | } | |
29165 | return resultobj; | |
29166 | fail: | |
29167 | return NULL; | |
29168 | } | |
29169 | ||
29170 | ||
29171 | static PyObject * StandardPaths_swigregister(PyObject *, PyObject *args) { | |
29172 | PyObject *obj; | |
29173 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29174 | SWIG_TypeClientData(SWIGTYPE_p_wxStandardPaths, obj); | |
29175 | Py_INCREF(obj); | |
29176 | return Py_BuildValue((char *)""); | |
29177 | } | |
d55e5bfc | 29178 | static PyMethodDef SwigMethods[] = { |
c370783e RD |
29179 | { (char *)"SystemSettings_GetColour", (PyCFunction) _wrap_SystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS, NULL }, |
29180 | { (char *)"SystemSettings_GetFont", (PyCFunction) _wrap_SystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29181 | { (char *)"SystemSettings_GetMetric", (PyCFunction) _wrap_SystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29182 | { (char *)"SystemSettings_HasFeature", (PyCFunction) _wrap_SystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29183 | { (char *)"SystemSettings_GetScreenType", (PyCFunction) _wrap_SystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29184 | { (char *)"SystemSettings_SetScreenType", (PyCFunction) _wrap_SystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29185 | { (char *)"SystemSettings_swigregister", SystemSettings_swigregister, METH_VARARGS, NULL }, | |
29186 | { (char *)"new_SystemOptions", (PyCFunction) _wrap_new_SystemOptions, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29187 | { (char *)"SystemOptions_SetOption", (PyCFunction) _wrap_SystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29188 | { (char *)"SystemOptions_SetOptionInt", (PyCFunction) _wrap_SystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29189 | { (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29190 | { (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29191 | { (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29192 | { (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS, NULL }, | |
29193 | { (char *)"NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29194 | { (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29195 | { (char *)"GetCurrentId", (PyCFunction) _wrap_GetCurrentId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29196 | { (char *)"IsStockID", (PyCFunction) _wrap_IsStockID, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29197 | { (char *)"IsStockLabel", (PyCFunction) _wrap_IsStockLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29198 | { (char *)"GetStockLabel", (PyCFunction) _wrap_GetStockLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29199 | { (char *)"Bell", (PyCFunction) _wrap_Bell, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29200 | { (char *)"EndBusyCursor", (PyCFunction) _wrap_EndBusyCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29201 | { (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29202 | { (char *)"GetMousePosition", (PyCFunction) _wrap_GetMousePosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29203 | { (char *)"IsBusy", (PyCFunction) _wrap_IsBusy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29204 | { (char *)"Now", (PyCFunction) _wrap_Now, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29205 | { (char *)"Shell", (PyCFunction) _wrap_Shell, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29206 | { (char *)"StartTimer", (PyCFunction) _wrap_StartTimer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29207 | { (char *)"GetOsVersion", (PyCFunction) _wrap_GetOsVersion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29208 | { (char *)"GetOsDescription", (PyCFunction) _wrap_GetOsDescription, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29209 | { (char *)"GetFreeMemory", (PyCFunction) _wrap_GetFreeMemory, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29210 | { (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29211 | { (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29212 | { (char *)"MilliSleep", (PyCFunction) _wrap_MilliSleep, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29213 | { (char *)"MicroSleep", (PyCFunction) _wrap_MicroSleep, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29214 | { (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29215 | { (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29216 | { (char *)"GetEmailAddress", (PyCFunction) _wrap_GetEmailAddress, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29217 | { (char *)"GetHostName", (PyCFunction) _wrap_GetHostName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29218 | { (char *)"GetFullHostName", (PyCFunction) _wrap_GetFullHostName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29219 | { (char *)"GetUserId", (PyCFunction) _wrap_GetUserId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29220 | { (char *)"GetUserName", (PyCFunction) _wrap_GetUserName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29221 | { (char *)"GetHomeDir", (PyCFunction) _wrap_GetHomeDir, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29222 | { (char *)"GetUserHome", (PyCFunction) _wrap_GetUserHome, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29223 | { (char *)"GetProcessId", (PyCFunction) _wrap_GetProcessId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29224 | { (char *)"Trap", (PyCFunction) _wrap_Trap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29225 | { (char *)"FileSelector", (PyCFunction) _wrap_FileSelector, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29226 | { (char *)"LoadFileSelector", (PyCFunction) _wrap_LoadFileSelector, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29227 | { (char *)"SaveFileSelector", (PyCFunction) _wrap_SaveFileSelector, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29228 | { (char *)"DirSelector", (PyCFunction) _wrap_DirSelector, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29229 | { (char *)"GetTextFromUser", (PyCFunction) _wrap_GetTextFromUser, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29230 | { (char *)"GetPasswordFromUser", (PyCFunction) _wrap_GetPasswordFromUser, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29231 | { (char *)"GetSingleChoice", (PyCFunction) _wrap_GetSingleChoice, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29232 | { (char *)"GetSingleChoiceIndex", (PyCFunction) _wrap_GetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29233 | { (char *)"MessageBox", (PyCFunction) _wrap_MessageBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29234 | { (char *)"GetNumberFromUser", (PyCFunction) _wrap_GetNumberFromUser, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29235 | { (char *)"ColourDisplay", (PyCFunction) _wrap_ColourDisplay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29236 | { (char *)"DisplayDepth", (PyCFunction) _wrap_DisplayDepth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29237 | { (char *)"GetDisplayDepth", (PyCFunction) _wrap_GetDisplayDepth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29238 | { (char *)"DisplaySize", (PyCFunction) _wrap_DisplaySize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29239 | { (char *)"GetDisplaySize", (PyCFunction) _wrap_GetDisplaySize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29240 | { (char *)"DisplaySizeMM", (PyCFunction) _wrap_DisplaySizeMM, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29241 | { (char *)"GetDisplaySizeMM", (PyCFunction) _wrap_GetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29242 | { (char *)"ClientDisplayRect", (PyCFunction) _wrap_ClientDisplayRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29243 | { (char *)"GetClientDisplayRect", (PyCFunction) _wrap_GetClientDisplayRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29244 | { (char *)"SetCursor", (PyCFunction) _wrap_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29245 | { (char *)"BeginBusyCursor", (PyCFunction) _wrap_BeginBusyCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29246 | { (char *)"GetActiveWindow", (PyCFunction) _wrap_GetActiveWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29247 | { (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29248 | { (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29249 | { (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29250 | { (char *)"GetKeyState", (PyCFunction) _wrap_GetKeyState, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29251 | { (char *)"WakeUpMainThread", (PyCFunction) _wrap_WakeUpMainThread, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29252 | { (char *)"MutexGuiEnter", (PyCFunction) _wrap_MutexGuiEnter, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29253 | { (char *)"MutexGuiLeave", (PyCFunction) _wrap_MutexGuiLeave, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29254 | { (char *)"new_MutexGuiLocker", (PyCFunction) _wrap_new_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29255 | { (char *)"delete_MutexGuiLocker", (PyCFunction) _wrap_delete_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29256 | { (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS, NULL }, | |
29257 | { (char *)"Thread_IsMain", (PyCFunction) _wrap_Thread_IsMain, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29258 | { (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29259 | { (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29260 | { (char *)"ToolTip_GetTip", (PyCFunction) _wrap_ToolTip_GetTip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29261 | { (char *)"ToolTip_GetWindow", (PyCFunction) _wrap_ToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29262 | { (char *)"ToolTip_Enable", (PyCFunction) _wrap_ToolTip_Enable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29263 | { (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29264 | { (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS, NULL }, | |
29265 | { (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29266 | { (char *)"delete_Caret", (PyCFunction) _wrap_delete_Caret, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29267 | { (char *)"Caret_IsOk", (PyCFunction) _wrap_Caret_IsOk, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29268 | { (char *)"Caret_IsVisible", (PyCFunction) _wrap_Caret_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29269 | { (char *)"Caret_GetPosition", (PyCFunction) _wrap_Caret_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29270 | { (char *)"Caret_GetPositionTuple", (PyCFunction) _wrap_Caret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29271 | { (char *)"Caret_GetSize", (PyCFunction) _wrap_Caret_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29272 | { (char *)"Caret_GetSizeTuple", (PyCFunction) _wrap_Caret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29273 | { (char *)"Caret_GetWindow", (PyCFunction) _wrap_Caret_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29274 | { (char *)"Caret_MoveXY", (PyCFunction) _wrap_Caret_MoveXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29275 | { (char *)"Caret_Move", (PyCFunction) _wrap_Caret_Move, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29276 | { (char *)"Caret_SetSizeWH", (PyCFunction) _wrap_Caret_SetSizeWH, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29277 | { (char *)"Caret_SetSize", (PyCFunction) _wrap_Caret_SetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29278 | { (char *)"Caret_Show", (PyCFunction) _wrap_Caret_Show, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29279 | { (char *)"Caret_Hide", (PyCFunction) _wrap_Caret_Hide, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29280 | { (char *)"Caret_swigregister", Caret_swigregister, METH_VARARGS, NULL }, | |
29281 | { (char *)"Caret_GetBlinkTime", (PyCFunction) _wrap_Caret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29282 | { (char *)"Caret_SetBlinkTime", (PyCFunction) _wrap_Caret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29283 | { (char *)"new_BusyCursor", (PyCFunction) _wrap_new_BusyCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29284 | { (char *)"delete_BusyCursor", (PyCFunction) _wrap_delete_BusyCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29285 | { (char *)"BusyCursor_swigregister", BusyCursor_swigregister, METH_VARARGS, NULL }, | |
29286 | { (char *)"new_WindowDisabler", (PyCFunction) _wrap_new_WindowDisabler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29287 | { (char *)"delete_WindowDisabler", (PyCFunction) _wrap_delete_WindowDisabler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29288 | { (char *)"WindowDisabler_swigregister", WindowDisabler_swigregister, METH_VARARGS, NULL }, | |
29289 | { (char *)"new_BusyInfo", (PyCFunction) _wrap_new_BusyInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29290 | { (char *)"delete_BusyInfo", (PyCFunction) _wrap_delete_BusyInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29291 | { (char *)"BusyInfo_swigregister", BusyInfo_swigregister, METH_VARARGS, NULL }, | |
29292 | { (char *)"new_StopWatch", (PyCFunction) _wrap_new_StopWatch, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29293 | { (char *)"StopWatch_Start", (PyCFunction) _wrap_StopWatch_Start, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29294 | { (char *)"StopWatch_Pause", (PyCFunction) _wrap_StopWatch_Pause, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29295 | { (char *)"StopWatch_Resume", (PyCFunction) _wrap_StopWatch_Resume, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29296 | { (char *)"StopWatch_Time", (PyCFunction) _wrap_StopWatch_Time, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29297 | { (char *)"StopWatch_swigregister", StopWatch_swigregister, METH_VARARGS, NULL }, | |
29298 | { (char *)"new_FileHistory", (PyCFunction) _wrap_new_FileHistory, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29299 | { (char *)"delete_FileHistory", (PyCFunction) _wrap_delete_FileHistory, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29300 | { (char *)"FileHistory_AddFileToHistory", (PyCFunction) _wrap_FileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29301 | { (char *)"FileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_FileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29302 | { (char *)"FileHistory_GetMaxFiles", (PyCFunction) _wrap_FileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29303 | { (char *)"FileHistory_UseMenu", (PyCFunction) _wrap_FileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29304 | { (char *)"FileHistory_RemoveMenu", (PyCFunction) _wrap_FileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29305 | { (char *)"FileHistory_Load", (PyCFunction) _wrap_FileHistory_Load, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29306 | { (char *)"FileHistory_Save", (PyCFunction) _wrap_FileHistory_Save, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29307 | { (char *)"FileHistory_AddFilesToMenu", (PyCFunction) _wrap_FileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29308 | { (char *)"FileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_FileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29309 | { (char *)"FileHistory_GetHistoryFile", (PyCFunction) _wrap_FileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29310 | { (char *)"FileHistory_GetCount", (PyCFunction) _wrap_FileHistory_GetCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29311 | { (char *)"FileHistory_swigregister", FileHistory_swigregister, METH_VARARGS, NULL }, | |
29312 | { (char *)"new_SingleInstanceChecker", (PyCFunction) _wrap_new_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29313 | { (char *)"new_PreSingleInstanceChecker", (PyCFunction) _wrap_new_PreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29314 | { (char *)"delete_SingleInstanceChecker", (PyCFunction) _wrap_delete_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29315 | { (char *)"SingleInstanceChecker_Create", (PyCFunction) _wrap_SingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29316 | { (char *)"SingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_SingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29317 | { (char *)"SingleInstanceChecker_swigregister", SingleInstanceChecker_swigregister, METH_VARARGS, NULL }, | |
29318 | { (char *)"DrawWindowOnDC", (PyCFunction) _wrap_DrawWindowOnDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29319 | { (char *)"delete_TipProvider", (PyCFunction) _wrap_delete_TipProvider, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29320 | { (char *)"TipProvider_GetTip", (PyCFunction) _wrap_TipProvider_GetTip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29321 | { (char *)"TipProvider_GetCurrentTip", (PyCFunction) _wrap_TipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29322 | { (char *)"TipProvider_PreprocessTip", (PyCFunction) _wrap_TipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29323 | { (char *)"TipProvider_swigregister", TipProvider_swigregister, METH_VARARGS, NULL }, | |
29324 | { (char *)"new_PyTipProvider", (PyCFunction) _wrap_new_PyTipProvider, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29325 | { (char *)"PyTipProvider__setCallbackInfo", (PyCFunction) _wrap_PyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29326 | { (char *)"PyTipProvider_swigregister", PyTipProvider_swigregister, METH_VARARGS, NULL }, | |
29327 | { (char *)"ShowTip", (PyCFunction) _wrap_ShowTip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29328 | { (char *)"CreateFileTipProvider", (PyCFunction) _wrap_CreateFileTipProvider, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29329 | { (char *)"new_Timer", (PyCFunction) _wrap_new_Timer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29330 | { (char *)"delete_Timer", (PyCFunction) _wrap_delete_Timer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29331 | { (char *)"Timer__setCallbackInfo", (PyCFunction) _wrap_Timer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29332 | { (char *)"Timer_SetOwner", (PyCFunction) _wrap_Timer_SetOwner, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29333 | { (char *)"Timer_GetOwner", (PyCFunction) _wrap_Timer_GetOwner, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29334 | { (char *)"Timer_Start", (PyCFunction) _wrap_Timer_Start, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29335 | { (char *)"Timer_Stop", (PyCFunction) _wrap_Timer_Stop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29336 | { (char *)"Timer_IsRunning", (PyCFunction) _wrap_Timer_IsRunning, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29337 | { (char *)"Timer_GetInterval", (PyCFunction) _wrap_Timer_GetInterval, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29338 | { (char *)"Timer_IsOneShot", (PyCFunction) _wrap_Timer_IsOneShot, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29339 | { (char *)"Timer_GetId", (PyCFunction) _wrap_Timer_GetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29340 | { (char *)"Timer_swigregister", Timer_swigregister, METH_VARARGS, NULL }, | |
29341 | { (char *)"new_TimerEvent", (PyCFunction) _wrap_new_TimerEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29342 | { (char *)"TimerEvent_GetInterval", (PyCFunction) _wrap_TimerEvent_GetInterval, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29343 | { (char *)"TimerEvent_swigregister", TimerEvent_swigregister, METH_VARARGS, NULL }, | |
29344 | { (char *)"new_TimerRunner", _wrap_new_TimerRunner, METH_VARARGS, NULL }, | |
29345 | { (char *)"delete_TimerRunner", (PyCFunction) _wrap_delete_TimerRunner, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29346 | { (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29347 | { (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS, NULL }, | |
29348 | { (char *)"new_Log", (PyCFunction) _wrap_new_Log, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29349 | { (char *)"Log_IsEnabled", (PyCFunction) _wrap_Log_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29350 | { (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29351 | { (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29352 | { (char *)"Log_Flush", (PyCFunction) _wrap_Log_Flush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29353 | { (char *)"Log_FlushActive", (PyCFunction) _wrap_Log_FlushActive, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29354 | { (char *)"Log_GetActiveTarget", (PyCFunction) _wrap_Log_GetActiveTarget, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29355 | { (char *)"Log_SetActiveTarget", (PyCFunction) _wrap_Log_SetActiveTarget, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29356 | { (char *)"Log_Suspend", (PyCFunction) _wrap_Log_Suspend, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29357 | { (char *)"Log_Resume", (PyCFunction) _wrap_Log_Resume, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29358 | { (char *)"Log_SetVerbose", (PyCFunction) _wrap_Log_SetVerbose, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29359 | { (char *)"Log_SetLogLevel", (PyCFunction) _wrap_Log_SetLogLevel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29360 | { (char *)"Log_DontCreateOnDemand", (PyCFunction) _wrap_Log_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29361 | { (char *)"Log_SetTraceMask", (PyCFunction) _wrap_Log_SetTraceMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29362 | { (char *)"Log_AddTraceMask", (PyCFunction) _wrap_Log_AddTraceMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29363 | { (char *)"Log_RemoveTraceMask", (PyCFunction) _wrap_Log_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29364 | { (char *)"Log_ClearTraceMasks", (PyCFunction) _wrap_Log_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29365 | { (char *)"Log_GetTraceMasks", (PyCFunction) _wrap_Log_GetTraceMasks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29366 | { (char *)"Log_SetTimestamp", (PyCFunction) _wrap_Log_SetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29367 | { (char *)"Log_GetVerbose", (PyCFunction) _wrap_Log_GetVerbose, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29368 | { (char *)"Log_GetTraceMask", (PyCFunction) _wrap_Log_GetTraceMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29369 | { (char *)"Log_IsAllowedTraceMask", (PyCFunction) _wrap_Log_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29370 | { (char *)"Log_GetLogLevel", (PyCFunction) _wrap_Log_GetLogLevel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29371 | { (char *)"Log_GetTimestamp", (PyCFunction) _wrap_Log_GetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29372 | { (char *)"Log_TimeStamp", (PyCFunction) _wrap_Log_TimeStamp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29373 | { (char *)"Log_Destroy", (PyCFunction) _wrap_Log_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29374 | { (char *)"Log_swigregister", Log_swigregister, METH_VARARGS, NULL }, | |
29375 | { (char *)"new_LogStderr", (PyCFunction) _wrap_new_LogStderr, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29376 | { (char *)"LogStderr_swigregister", LogStderr_swigregister, METH_VARARGS, NULL }, | |
29377 | { (char *)"new_LogTextCtrl", (PyCFunction) _wrap_new_LogTextCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29378 | { (char *)"LogTextCtrl_swigregister", LogTextCtrl_swigregister, METH_VARARGS, NULL }, | |
29379 | { (char *)"new_LogGui", (PyCFunction) _wrap_new_LogGui, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29380 | { (char *)"LogGui_swigregister", LogGui_swigregister, METH_VARARGS, NULL }, | |
29381 | { (char *)"new_LogWindow", (PyCFunction) _wrap_new_LogWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29382 | { (char *)"LogWindow_Show", (PyCFunction) _wrap_LogWindow_Show, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29383 | { (char *)"LogWindow_GetFrame", (PyCFunction) _wrap_LogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29384 | { (char *)"LogWindow_GetOldLog", (PyCFunction) _wrap_LogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29385 | { (char *)"LogWindow_IsPassingMessages", (PyCFunction) _wrap_LogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29386 | { (char *)"LogWindow_PassMessages", (PyCFunction) _wrap_LogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29387 | { (char *)"LogWindow_swigregister", LogWindow_swigregister, METH_VARARGS, NULL }, | |
29388 | { (char *)"new_LogChain", (PyCFunction) _wrap_new_LogChain, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29389 | { (char *)"LogChain_SetLog", (PyCFunction) _wrap_LogChain_SetLog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29390 | { (char *)"LogChain_PassMessages", (PyCFunction) _wrap_LogChain_PassMessages, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29391 | { (char *)"LogChain_IsPassingMessages", (PyCFunction) _wrap_LogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29392 | { (char *)"LogChain_GetOldLog", (PyCFunction) _wrap_LogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29393 | { (char *)"LogChain_swigregister", LogChain_swigregister, METH_VARARGS, NULL }, | |
29394 | { (char *)"SysErrorCode", (PyCFunction) _wrap_SysErrorCode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29395 | { (char *)"SysErrorMsg", (PyCFunction) _wrap_SysErrorMsg, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29396 | { (char *)"LogFatalError", (PyCFunction) _wrap_LogFatalError, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29397 | { (char *)"LogError", (PyCFunction) _wrap_LogError, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29398 | { (char *)"LogWarning", (PyCFunction) _wrap_LogWarning, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29399 | { (char *)"LogMessage", (PyCFunction) _wrap_LogMessage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29400 | { (char *)"LogInfo", (PyCFunction) _wrap_LogInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29401 | { (char *)"LogDebug", (PyCFunction) _wrap_LogDebug, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29402 | { (char *)"LogVerbose", (PyCFunction) _wrap_LogVerbose, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29403 | { (char *)"LogStatus", (PyCFunction) _wrap_LogStatus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29404 | { (char *)"LogStatusFrame", (PyCFunction) _wrap_LogStatusFrame, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29405 | { (char *)"LogSysError", (PyCFunction) _wrap_LogSysError, METH_VARARGS | METH_KEYWORDS, NULL }, | |
c370783e | 29406 | { (char *)"LogGeneric", (PyCFunction) _wrap_LogGeneric, METH_VARARGS | METH_KEYWORDS, NULL }, |
f78cc896 | 29407 | { (char *)"LogTrace", _wrap_LogTrace, METH_VARARGS, NULL }, |
c370783e RD |
29408 | { (char *)"SafeShowMessage", (PyCFunction) _wrap_SafeShowMessage, METH_VARARGS | METH_KEYWORDS, NULL }, |
29409 | { (char *)"new_LogNull", (PyCFunction) _wrap_new_LogNull, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29410 | { (char *)"delete_LogNull", (PyCFunction) _wrap_delete_LogNull, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29411 | { (char *)"LogNull_swigregister", LogNull_swigregister, METH_VARARGS, NULL }, | |
29412 | { (char *)"new_PyLog", (PyCFunction) _wrap_new_PyLog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29413 | { (char *)"PyLog__setCallbackInfo", (PyCFunction) _wrap_PyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29414 | { (char *)"PyLog_swigregister", PyLog_swigregister, METH_VARARGS, NULL }, | |
29415 | { (char *)"Process_Kill", (PyCFunction) _wrap_Process_Kill, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29416 | { (char *)"Process_Exists", (PyCFunction) _wrap_Process_Exists, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29417 | { (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29418 | { (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29419 | { (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29420 | { (char *)"Process_base_OnTerminate", (PyCFunction) _wrap_Process_base_OnTerminate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29421 | { (char *)"Process_Redirect", (PyCFunction) _wrap_Process_Redirect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29422 | { (char *)"Process_IsRedirected", (PyCFunction) _wrap_Process_IsRedirected, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29423 | { (char *)"Process_Detach", (PyCFunction) _wrap_Process_Detach, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29424 | { (char *)"Process_GetInputStream", (PyCFunction) _wrap_Process_GetInputStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29425 | { (char *)"Process_GetErrorStream", (PyCFunction) _wrap_Process_GetErrorStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29426 | { (char *)"Process_GetOutputStream", (PyCFunction) _wrap_Process_GetOutputStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29427 | { (char *)"Process_CloseOutput", (PyCFunction) _wrap_Process_CloseOutput, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29428 | { (char *)"Process_IsInputOpened", (PyCFunction) _wrap_Process_IsInputOpened, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29429 | { (char *)"Process_IsInputAvailable", (PyCFunction) _wrap_Process_IsInputAvailable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29430 | { (char *)"Process_IsErrorAvailable", (PyCFunction) _wrap_Process_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29431 | { (char *)"Process_swigregister", Process_swigregister, METH_VARARGS, NULL }, | |
29432 | { (char *)"new_ProcessEvent", (PyCFunction) _wrap_new_ProcessEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29433 | { (char *)"ProcessEvent_GetPid", (PyCFunction) _wrap_ProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29434 | { (char *)"ProcessEvent_GetExitCode", (PyCFunction) _wrap_ProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29435 | { (char *)"ProcessEvent_m_pid_set", (PyCFunction) _wrap_ProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29436 | { (char *)"ProcessEvent_m_pid_get", (PyCFunction) _wrap_ProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29437 | { (char *)"ProcessEvent_m_exitcode_set", (PyCFunction) _wrap_ProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29438 | { (char *)"ProcessEvent_m_exitcode_get", (PyCFunction) _wrap_ProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29439 | { (char *)"ProcessEvent_swigregister", ProcessEvent_swigregister, METH_VARARGS, NULL }, | |
29440 | { (char *)"Execute", (PyCFunction) _wrap_Execute, METH_VARARGS | METH_KEYWORDS, NULL }, | |
03e46024 | 29441 | { (char *)"Kill", (PyCFunction) _wrap_Kill, METH_VARARGS | METH_KEYWORDS, NULL }, |
c370783e RD |
29442 | { (char *)"new_Joystick", (PyCFunction) _wrap_new_Joystick, METH_VARARGS | METH_KEYWORDS, NULL }, |
29443 | { (char *)"delete_Joystick", (PyCFunction) _wrap_delete_Joystick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29444 | { (char *)"Joystick_GetPosition", (PyCFunction) _wrap_Joystick_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29445 | { (char *)"Joystick_GetZPosition", (PyCFunction) _wrap_Joystick_GetZPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29446 | { (char *)"Joystick_GetButtonState", (PyCFunction) _wrap_Joystick_GetButtonState, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29447 | { (char *)"Joystick_GetPOVPosition", (PyCFunction) _wrap_Joystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29448 | { (char *)"Joystick_GetPOVCTSPosition", (PyCFunction) _wrap_Joystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29449 | { (char *)"Joystick_GetRudderPosition", (PyCFunction) _wrap_Joystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29450 | { (char *)"Joystick_GetUPosition", (PyCFunction) _wrap_Joystick_GetUPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29451 | { (char *)"Joystick_GetVPosition", (PyCFunction) _wrap_Joystick_GetVPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29452 | { (char *)"Joystick_GetMovementThreshold", (PyCFunction) _wrap_Joystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29453 | { (char *)"Joystick_SetMovementThreshold", (PyCFunction) _wrap_Joystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29454 | { (char *)"Joystick_IsOk", (PyCFunction) _wrap_Joystick_IsOk, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29455 | { (char *)"Joystick_GetNumberJoysticks", (PyCFunction) _wrap_Joystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29456 | { (char *)"Joystick_GetManufacturerId", (PyCFunction) _wrap_Joystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29457 | { (char *)"Joystick_GetProductId", (PyCFunction) _wrap_Joystick_GetProductId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29458 | { (char *)"Joystick_GetProductName", (PyCFunction) _wrap_Joystick_GetProductName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29459 | { (char *)"Joystick_GetXMin", (PyCFunction) _wrap_Joystick_GetXMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29460 | { (char *)"Joystick_GetYMin", (PyCFunction) _wrap_Joystick_GetYMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29461 | { (char *)"Joystick_GetZMin", (PyCFunction) _wrap_Joystick_GetZMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29462 | { (char *)"Joystick_GetXMax", (PyCFunction) _wrap_Joystick_GetXMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29463 | { (char *)"Joystick_GetYMax", (PyCFunction) _wrap_Joystick_GetYMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29464 | { (char *)"Joystick_GetZMax", (PyCFunction) _wrap_Joystick_GetZMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29465 | { (char *)"Joystick_GetNumberButtons", (PyCFunction) _wrap_Joystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29466 | { (char *)"Joystick_GetNumberAxes", (PyCFunction) _wrap_Joystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29467 | { (char *)"Joystick_GetMaxButtons", (PyCFunction) _wrap_Joystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29468 | { (char *)"Joystick_GetMaxAxes", (PyCFunction) _wrap_Joystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29469 | { (char *)"Joystick_GetPollingMin", (PyCFunction) _wrap_Joystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29470 | { (char *)"Joystick_GetPollingMax", (PyCFunction) _wrap_Joystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29471 | { (char *)"Joystick_GetRudderMin", (PyCFunction) _wrap_Joystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29472 | { (char *)"Joystick_GetRudderMax", (PyCFunction) _wrap_Joystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29473 | { (char *)"Joystick_GetUMin", (PyCFunction) _wrap_Joystick_GetUMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29474 | { (char *)"Joystick_GetUMax", (PyCFunction) _wrap_Joystick_GetUMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29475 | { (char *)"Joystick_GetVMin", (PyCFunction) _wrap_Joystick_GetVMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29476 | { (char *)"Joystick_GetVMax", (PyCFunction) _wrap_Joystick_GetVMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29477 | { (char *)"Joystick_HasRudder", (PyCFunction) _wrap_Joystick_HasRudder, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29478 | { (char *)"Joystick_HasZ", (PyCFunction) _wrap_Joystick_HasZ, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29479 | { (char *)"Joystick_HasU", (PyCFunction) _wrap_Joystick_HasU, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29480 | { (char *)"Joystick_HasV", (PyCFunction) _wrap_Joystick_HasV, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29481 | { (char *)"Joystick_HasPOV", (PyCFunction) _wrap_Joystick_HasPOV, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29482 | { (char *)"Joystick_HasPOV4Dir", (PyCFunction) _wrap_Joystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29483 | { (char *)"Joystick_HasPOVCTS", (PyCFunction) _wrap_Joystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29484 | { (char *)"Joystick_SetCapture", (PyCFunction) _wrap_Joystick_SetCapture, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29485 | { (char *)"Joystick_ReleaseCapture", (PyCFunction) _wrap_Joystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29486 | { (char *)"Joystick_swigregister", Joystick_swigregister, METH_VARARGS, NULL }, | |
29487 | { (char *)"JoystickEvent_m_pos_set", (PyCFunction) _wrap_JoystickEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29488 | { (char *)"JoystickEvent_m_pos_get", (PyCFunction) _wrap_JoystickEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29489 | { (char *)"JoystickEvent_m_zPosition_set", (PyCFunction) _wrap_JoystickEvent_m_zPosition_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29490 | { (char *)"JoystickEvent_m_zPosition_get", (PyCFunction) _wrap_JoystickEvent_m_zPosition_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29491 | { (char *)"JoystickEvent_m_buttonChange_set", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29492 | { (char *)"JoystickEvent_m_buttonChange_get", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29493 | { (char *)"JoystickEvent_m_buttonState_set", (PyCFunction) _wrap_JoystickEvent_m_buttonState_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29494 | { (char *)"JoystickEvent_m_buttonState_get", (PyCFunction) _wrap_JoystickEvent_m_buttonState_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29495 | { (char *)"JoystickEvent_m_joyStick_set", (PyCFunction) _wrap_JoystickEvent_m_joyStick_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29496 | { (char *)"JoystickEvent_m_joyStick_get", (PyCFunction) _wrap_JoystickEvent_m_joyStick_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29497 | { (char *)"new_JoystickEvent", (PyCFunction) _wrap_new_JoystickEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29498 | { (char *)"JoystickEvent_GetPosition", (PyCFunction) _wrap_JoystickEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29499 | { (char *)"JoystickEvent_GetZPosition", (PyCFunction) _wrap_JoystickEvent_GetZPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29500 | { (char *)"JoystickEvent_GetButtonState", (PyCFunction) _wrap_JoystickEvent_GetButtonState, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29501 | { (char *)"JoystickEvent_GetButtonChange", (PyCFunction) _wrap_JoystickEvent_GetButtonChange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29502 | { (char *)"JoystickEvent_GetJoystick", (PyCFunction) _wrap_JoystickEvent_GetJoystick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29503 | { (char *)"JoystickEvent_SetJoystick", (PyCFunction) _wrap_JoystickEvent_SetJoystick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29504 | { (char *)"JoystickEvent_SetButtonState", (PyCFunction) _wrap_JoystickEvent_SetButtonState, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29505 | { (char *)"JoystickEvent_SetButtonChange", (PyCFunction) _wrap_JoystickEvent_SetButtonChange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29506 | { (char *)"JoystickEvent_SetPosition", (PyCFunction) _wrap_JoystickEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29507 | { (char *)"JoystickEvent_SetZPosition", (PyCFunction) _wrap_JoystickEvent_SetZPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29508 | { (char *)"JoystickEvent_IsButton", (PyCFunction) _wrap_JoystickEvent_IsButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29509 | { (char *)"JoystickEvent_IsMove", (PyCFunction) _wrap_JoystickEvent_IsMove, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29510 | { (char *)"JoystickEvent_IsZMove", (PyCFunction) _wrap_JoystickEvent_IsZMove, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29511 | { (char *)"JoystickEvent_ButtonDown", (PyCFunction) _wrap_JoystickEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29512 | { (char *)"JoystickEvent_ButtonUp", (PyCFunction) _wrap_JoystickEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29513 | { (char *)"JoystickEvent_ButtonIsDown", (PyCFunction) _wrap_JoystickEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29514 | { (char *)"JoystickEvent_swigregister", JoystickEvent_swigregister, METH_VARARGS, NULL }, | |
29515 | { (char *)"new_Sound", (PyCFunction) _wrap_new_Sound, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29516 | { (char *)"new_SoundFromData", (PyCFunction) _wrap_new_SoundFromData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29517 | { (char *)"delete_Sound", (PyCFunction) _wrap_delete_Sound, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29518 | { (char *)"Sound_Create", (PyCFunction) _wrap_Sound_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29519 | { (char *)"Sound_CreateFromData", (PyCFunction) _wrap_Sound_CreateFromData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29520 | { (char *)"Sound_IsOk", (PyCFunction) _wrap_Sound_IsOk, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29521 | { (char *)"Sound_Play", (PyCFunction) _wrap_Sound_Play, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29522 | { (char *)"Sound_PlaySound", (PyCFunction) _wrap_Sound_PlaySound, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29523 | { (char *)"Sound_Stop", (PyCFunction) _wrap_Sound_Stop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29524 | { (char *)"Sound_swigregister", Sound_swigregister, METH_VARARGS, NULL }, | |
29525 | { (char *)"new_FileTypeInfo", (PyCFunction) _wrap_new_FileTypeInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29526 | { (char *)"new_FileTypeInfoSequence", (PyCFunction) _wrap_new_FileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29527 | { (char *)"new_NullFileTypeInfo", (PyCFunction) _wrap_new_NullFileTypeInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29528 | { (char *)"FileTypeInfo_IsValid", (PyCFunction) _wrap_FileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29529 | { (char *)"FileTypeInfo_SetIcon", (PyCFunction) _wrap_FileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29530 | { (char *)"FileTypeInfo_SetShortDesc", (PyCFunction) _wrap_FileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29531 | { (char *)"FileTypeInfo_GetMimeType", (PyCFunction) _wrap_FileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29532 | { (char *)"FileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_FileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29533 | { (char *)"FileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_FileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29534 | { (char *)"FileTypeInfo_GetShortDesc", (PyCFunction) _wrap_FileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29535 | { (char *)"FileTypeInfo_GetDescription", (PyCFunction) _wrap_FileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29536 | { (char *)"FileTypeInfo_GetExtensions", (PyCFunction) _wrap_FileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29537 | { (char *)"FileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_FileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29538 | { (char *)"FileTypeInfo_GetIconFile", (PyCFunction) _wrap_FileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29539 | { (char *)"FileTypeInfo_GetIconIndex", (PyCFunction) _wrap_FileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29540 | { (char *)"FileTypeInfo_swigregister", FileTypeInfo_swigregister, METH_VARARGS, NULL }, | |
29541 | { (char *)"new_FileType", (PyCFunction) _wrap_new_FileType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29542 | { (char *)"delete_FileType", (PyCFunction) _wrap_delete_FileType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29543 | { (char *)"FileType_GetMimeType", (PyCFunction) _wrap_FileType_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29544 | { (char *)"FileType_GetMimeTypes", (PyCFunction) _wrap_FileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29545 | { (char *)"FileType_GetExtensions", (PyCFunction) _wrap_FileType_GetExtensions, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29546 | { (char *)"FileType_GetIcon", (PyCFunction) _wrap_FileType_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29547 | { (char *)"FileType_GetIconInfo", (PyCFunction) _wrap_FileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29548 | { (char *)"FileType_GetDescription", (PyCFunction) _wrap_FileType_GetDescription, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29549 | { (char *)"FileType_GetOpenCommand", (PyCFunction) _wrap_FileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29550 | { (char *)"FileType_GetPrintCommand", (PyCFunction) _wrap_FileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29551 | { (char *)"FileType_GetAllCommands", (PyCFunction) _wrap_FileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29552 | { (char *)"FileType_SetCommand", (PyCFunction) _wrap_FileType_SetCommand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29553 | { (char *)"FileType_SetDefaultIcon", (PyCFunction) _wrap_FileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29554 | { (char *)"FileType_Unassociate", (PyCFunction) _wrap_FileType_Unassociate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29555 | { (char *)"FileType_ExpandCommand", (PyCFunction) _wrap_FileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29556 | { (char *)"FileType_swigregister", FileType_swigregister, METH_VARARGS, NULL }, | |
29557 | { (char *)"MimeTypesManager_IsOfType", (PyCFunction) _wrap_MimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29558 | { (char *)"new_MimeTypesManager", (PyCFunction) _wrap_new_MimeTypesManager, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29559 | { (char *)"MimeTypesManager_Initialize", (PyCFunction) _wrap_MimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29560 | { (char *)"MimeTypesManager_ClearData", (PyCFunction) _wrap_MimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29561 | { (char *)"MimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29562 | { (char *)"MimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29563 | { (char *)"MimeTypesManager_ReadMailcap", (PyCFunction) _wrap_MimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29564 | { (char *)"MimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_MimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29565 | { (char *)"MimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_MimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29566 | { (char *)"MimeTypesManager_AddFallback", (PyCFunction) _wrap_MimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29567 | { (char *)"MimeTypesManager_Associate", (PyCFunction) _wrap_MimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29568 | { (char *)"MimeTypesManager_Unassociate", (PyCFunction) _wrap_MimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29569 | { (char *)"delete_MimeTypesManager", (PyCFunction) _wrap_delete_MimeTypesManager, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29570 | { (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS, NULL }, | |
29571 | { (char *)"new_ArtProvider", (PyCFunction) _wrap_new_ArtProvider, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29572 | { (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29573 | { (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29574 | { (char *)"ArtProvider_PopProvider", (PyCFunction) _wrap_ArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29575 | { (char *)"ArtProvider_RemoveProvider", (PyCFunction) _wrap_ArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29576 | { (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29577 | { (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29578 | { (char *)"ArtProvider_Destroy", (PyCFunction) _wrap_ArtProvider_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29579 | { (char *)"ArtProvider_swigregister", ArtProvider_swigregister, METH_VARARGS, NULL }, | |
29580 | { (char *)"delete_ConfigBase", (PyCFunction) _wrap_delete_ConfigBase, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29581 | { (char *)"ConfigBase_Set", (PyCFunction) _wrap_ConfigBase_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29582 | { (char *)"ConfigBase_Get", (PyCFunction) _wrap_ConfigBase_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29583 | { (char *)"ConfigBase_Create", (PyCFunction) _wrap_ConfigBase_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29584 | { (char *)"ConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_ConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29585 | { (char *)"ConfigBase_SetPath", (PyCFunction) _wrap_ConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29586 | { (char *)"ConfigBase_GetPath", (PyCFunction) _wrap_ConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29587 | { (char *)"ConfigBase_GetFirstGroup", (PyCFunction) _wrap_ConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29588 | { (char *)"ConfigBase_GetNextGroup", (PyCFunction) _wrap_ConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29589 | { (char *)"ConfigBase_GetFirstEntry", (PyCFunction) _wrap_ConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29590 | { (char *)"ConfigBase_GetNextEntry", (PyCFunction) _wrap_ConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29591 | { (char *)"ConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_ConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29592 | { (char *)"ConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_ConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29593 | { (char *)"ConfigBase_HasGroup", (PyCFunction) _wrap_ConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29594 | { (char *)"ConfigBase_HasEntry", (PyCFunction) _wrap_ConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29595 | { (char *)"ConfigBase_Exists", (PyCFunction) _wrap_ConfigBase_Exists, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29596 | { (char *)"ConfigBase_GetEntryType", (PyCFunction) _wrap_ConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29597 | { (char *)"ConfigBase_Read", (PyCFunction) _wrap_ConfigBase_Read, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29598 | { (char *)"ConfigBase_ReadInt", (PyCFunction) _wrap_ConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29599 | { (char *)"ConfigBase_ReadFloat", (PyCFunction) _wrap_ConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29600 | { (char *)"ConfigBase_ReadBool", (PyCFunction) _wrap_ConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29601 | { (char *)"ConfigBase_Write", (PyCFunction) _wrap_ConfigBase_Write, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29602 | { (char *)"ConfigBase_WriteInt", (PyCFunction) _wrap_ConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29603 | { (char *)"ConfigBase_WriteFloat", (PyCFunction) _wrap_ConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29604 | { (char *)"ConfigBase_WriteBool", (PyCFunction) _wrap_ConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29605 | { (char *)"ConfigBase_Flush", (PyCFunction) _wrap_ConfigBase_Flush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29606 | { (char *)"ConfigBase_RenameEntry", (PyCFunction) _wrap_ConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29607 | { (char *)"ConfigBase_RenameGroup", (PyCFunction) _wrap_ConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29608 | { (char *)"ConfigBase_DeleteEntry", (PyCFunction) _wrap_ConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29609 | { (char *)"ConfigBase_DeleteGroup", (PyCFunction) _wrap_ConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29610 | { (char *)"ConfigBase_DeleteAll", (PyCFunction) _wrap_ConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29611 | { (char *)"ConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_ConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29612 | { (char *)"ConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_ConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29613 | { (char *)"ConfigBase_SetRecordDefaults", (PyCFunction) _wrap_ConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29614 | { (char *)"ConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_ConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29615 | { (char *)"ConfigBase_ExpandEnvVars", (PyCFunction) _wrap_ConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29616 | { (char *)"ConfigBase_GetAppName", (PyCFunction) _wrap_ConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29617 | { (char *)"ConfigBase_GetVendorName", (PyCFunction) _wrap_ConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29618 | { (char *)"ConfigBase_SetAppName", (PyCFunction) _wrap_ConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29619 | { (char *)"ConfigBase_SetVendorName", (PyCFunction) _wrap_ConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29620 | { (char *)"ConfigBase_SetStyle", (PyCFunction) _wrap_ConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29621 | { (char *)"ConfigBase_GetStyle", (PyCFunction) _wrap_ConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29622 | { (char *)"ConfigBase_swigregister", ConfigBase_swigregister, METH_VARARGS, NULL }, | |
29623 | { (char *)"new_Config", (PyCFunction) _wrap_new_Config, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29624 | { (char *)"delete_Config", (PyCFunction) _wrap_delete_Config, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29625 | { (char *)"Config_swigregister", Config_swigregister, METH_VARARGS, NULL }, | |
29626 | { (char *)"new_FileConfig", (PyCFunction) _wrap_new_FileConfig, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29627 | { (char *)"delete_FileConfig", (PyCFunction) _wrap_delete_FileConfig, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29628 | { (char *)"FileConfig_swigregister", FileConfig_swigregister, METH_VARARGS, NULL }, | |
29629 | { (char *)"new_ConfigPathChanger", (PyCFunction) _wrap_new_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29630 | { (char *)"delete_ConfigPathChanger", (PyCFunction) _wrap_delete_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29631 | { (char *)"ConfigPathChanger_Name", (PyCFunction) _wrap_ConfigPathChanger_Name, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29632 | { (char *)"ConfigPathChanger_swigregister", ConfigPathChanger_swigregister, METH_VARARGS, NULL }, | |
29633 | { (char *)"ExpandEnvVars", (PyCFunction) _wrap_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29634 | { (char *)"DateTime_SetCountry", (PyCFunction) _wrap_DateTime_SetCountry, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29635 | { (char *)"DateTime_GetCountry", (PyCFunction) _wrap_DateTime_GetCountry, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29636 | { (char *)"DateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_DateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29637 | { (char *)"DateTime_GetCurrentYear", (PyCFunction) _wrap_DateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29638 | { (char *)"DateTime_ConvertYearToBC", (PyCFunction) _wrap_DateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29639 | { (char *)"DateTime_GetCurrentMonth", (PyCFunction) _wrap_DateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29640 | { (char *)"DateTime_IsLeapYear", (PyCFunction) _wrap_DateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29641 | { (char *)"DateTime_GetCentury", (PyCFunction) _wrap_DateTime_GetCentury, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29642 | { (char *)"DateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_DateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29643 | { (char *)"DateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_DateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29644 | { (char *)"DateTime_GetMonthName", (PyCFunction) _wrap_DateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29645 | { (char *)"DateTime_GetWeekDayName", (PyCFunction) _wrap_DateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29646 | { (char *)"DateTime_GetAmPmStrings", (PyCFunction) _wrap_DateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29647 | { (char *)"DateTime_IsDSTApplicable", (PyCFunction) _wrap_DateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29648 | { (char *)"DateTime_GetBeginDST", (PyCFunction) _wrap_DateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29649 | { (char *)"DateTime_GetEndDST", (PyCFunction) _wrap_DateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29650 | { (char *)"DateTime_Now", (PyCFunction) _wrap_DateTime_Now, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29651 | { (char *)"DateTime_UNow", (PyCFunction) _wrap_DateTime_UNow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29652 | { (char *)"DateTime_Today", (PyCFunction) _wrap_DateTime_Today, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29653 | { (char *)"new_DateTime", (PyCFunction) _wrap_new_DateTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29654 | { (char *)"new_DateTimeFromTimeT", (PyCFunction) _wrap_new_DateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29655 | { (char *)"new_DateTimeFromJDN", (PyCFunction) _wrap_new_DateTimeFromJDN, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29656 | { (char *)"new_DateTimeFromHMS", (PyCFunction) _wrap_new_DateTimeFromHMS, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29657 | { (char *)"new_DateTimeFromDMY", (PyCFunction) _wrap_new_DateTimeFromDMY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29658 | { (char *)"delete_DateTime", (PyCFunction) _wrap_delete_DateTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29659 | { (char *)"DateTime_SetToCurrent", (PyCFunction) _wrap_DateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29660 | { (char *)"DateTime_SetTimeT", (PyCFunction) _wrap_DateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29661 | { (char *)"DateTime_SetJDN", (PyCFunction) _wrap_DateTime_SetJDN, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29662 | { (char *)"DateTime_SetHMS", (PyCFunction) _wrap_DateTime_SetHMS, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29663 | { (char *)"DateTime_Set", (PyCFunction) _wrap_DateTime_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29664 | { (char *)"DateTime_ResetTime", (PyCFunction) _wrap_DateTime_ResetTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29665 | { (char *)"DateTime_SetYear", (PyCFunction) _wrap_DateTime_SetYear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29666 | { (char *)"DateTime_SetMonth", (PyCFunction) _wrap_DateTime_SetMonth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29667 | { (char *)"DateTime_SetDay", (PyCFunction) _wrap_DateTime_SetDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29668 | { (char *)"DateTime_SetHour", (PyCFunction) _wrap_DateTime_SetHour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29669 | { (char *)"DateTime_SetMinute", (PyCFunction) _wrap_DateTime_SetMinute, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29670 | { (char *)"DateTime_SetSecond", (PyCFunction) _wrap_DateTime_SetSecond, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29671 | { (char *)"DateTime_SetMillisecond", (PyCFunction) _wrap_DateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29672 | { (char *)"DateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29673 | { (char *)"DateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29674 | { (char *)"DateTime_SetToNextWeekDay", (PyCFunction) _wrap_DateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29675 | { (char *)"DateTime_GetNextWeekDay", (PyCFunction) _wrap_DateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29676 | { (char *)"DateTime_SetToPrevWeekDay", (PyCFunction) _wrap_DateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29677 | { (char *)"DateTime_GetPrevWeekDay", (PyCFunction) _wrap_DateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29678 | { (char *)"DateTime_SetToWeekDay", (PyCFunction) _wrap_DateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29679 | { (char *)"DateTime_SetToLastWeekDay", (PyCFunction) _wrap_DateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29680 | { (char *)"DateTime_GetLastWeekDay", (PyCFunction) _wrap_DateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29681 | { (char *)"DateTime_SetToTheWeek", (PyCFunction) _wrap_DateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29682 | { (char *)"DateTime_GetWeek", (PyCFunction) _wrap_DateTime_GetWeek, METH_VARARGS | METH_KEYWORDS, NULL }, | |
629e65c2 | 29683 | { (char *)"DateTime_SetToWeekOfYear", (PyCFunction) _wrap_DateTime_SetToWeekOfYear, METH_VARARGS | METH_KEYWORDS, NULL }, |
c370783e RD |
29684 | { (char *)"DateTime_SetToLastMonthDay", (PyCFunction) _wrap_DateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS, NULL }, |
29685 | { (char *)"DateTime_GetLastMonthDay", (PyCFunction) _wrap_DateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29686 | { (char *)"DateTime_SetToYearDay", (PyCFunction) _wrap_DateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29687 | { (char *)"DateTime_GetYearDay", (PyCFunction) _wrap_DateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29688 | { (char *)"DateTime_GetJulianDayNumber", (PyCFunction) _wrap_DateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29689 | { (char *)"DateTime_GetJDN", (PyCFunction) _wrap_DateTime_GetJDN, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29690 | { (char *)"DateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_DateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29691 | { (char *)"DateTime_GetMJD", (PyCFunction) _wrap_DateTime_GetMJD, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29692 | { (char *)"DateTime_GetRataDie", (PyCFunction) _wrap_DateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29693 | { (char *)"DateTime_ToTimezone", (PyCFunction) _wrap_DateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29694 | { (char *)"DateTime_MakeTimezone", (PyCFunction) _wrap_DateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29695 | { (char *)"DateTime_ToGMT", (PyCFunction) _wrap_DateTime_ToGMT, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29696 | { (char *)"DateTime_MakeGMT", (PyCFunction) _wrap_DateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29697 | { (char *)"DateTime_IsDST", (PyCFunction) _wrap_DateTime_IsDST, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29698 | { (char *)"DateTime_IsValid", (PyCFunction) _wrap_DateTime_IsValid, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29699 | { (char *)"DateTime_GetTicks", (PyCFunction) _wrap_DateTime_GetTicks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29700 | { (char *)"DateTime_GetYear", (PyCFunction) _wrap_DateTime_GetYear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29701 | { (char *)"DateTime_GetMonth", (PyCFunction) _wrap_DateTime_GetMonth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29702 | { (char *)"DateTime_GetDay", (PyCFunction) _wrap_DateTime_GetDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29703 | { (char *)"DateTime_GetWeekDay", (PyCFunction) _wrap_DateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29704 | { (char *)"DateTime_GetHour", (PyCFunction) _wrap_DateTime_GetHour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29705 | { (char *)"DateTime_GetMinute", (PyCFunction) _wrap_DateTime_GetMinute, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29706 | { (char *)"DateTime_GetSecond", (PyCFunction) _wrap_DateTime_GetSecond, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29707 | { (char *)"DateTime_GetMillisecond", (PyCFunction) _wrap_DateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29708 | { (char *)"DateTime_GetDayOfYear", (PyCFunction) _wrap_DateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29709 | { (char *)"DateTime_GetWeekOfYear", (PyCFunction) _wrap_DateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29710 | { (char *)"DateTime_GetWeekOfMonth", (PyCFunction) _wrap_DateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29711 | { (char *)"DateTime_IsWorkDay", (PyCFunction) _wrap_DateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29712 | { (char *)"DateTime_IsEqualTo", (PyCFunction) _wrap_DateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29713 | { (char *)"DateTime_IsEarlierThan", (PyCFunction) _wrap_DateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29714 | { (char *)"DateTime_IsLaterThan", (PyCFunction) _wrap_DateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29715 | { (char *)"DateTime_IsStrictlyBetween", (PyCFunction) _wrap_DateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29716 | { (char *)"DateTime_IsBetween", (PyCFunction) _wrap_DateTime_IsBetween, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29717 | { (char *)"DateTime_IsSameDate", (PyCFunction) _wrap_DateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29718 | { (char *)"DateTime_IsSameTime", (PyCFunction) _wrap_DateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29719 | { (char *)"DateTime_IsEqualUpTo", (PyCFunction) _wrap_DateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29720 | { (char *)"DateTime_AddTS", (PyCFunction) _wrap_DateTime_AddTS, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29721 | { (char *)"DateTime_AddDS", (PyCFunction) _wrap_DateTime_AddDS, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29722 | { (char *)"DateTime_SubtractTS", (PyCFunction) _wrap_DateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29723 | { (char *)"DateTime_SubtractDS", (PyCFunction) _wrap_DateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29724 | { (char *)"DateTime_Subtract", (PyCFunction) _wrap_DateTime_Subtract, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29725 | { (char *)"DateTime___iadd__", _wrap_DateTime___iadd__, METH_VARARGS, NULL }, | |
29726 | { (char *)"DateTime___isub__", _wrap_DateTime___isub__, METH_VARARGS, NULL }, | |
29727 | { (char *)"DateTime___add__", _wrap_DateTime___add__, METH_VARARGS, NULL }, | |
29728 | { (char *)"DateTime___sub__", _wrap_DateTime___sub__, METH_VARARGS, NULL }, | |
29729 | { (char *)"DateTime___lt__", _wrap_DateTime___lt__, METH_VARARGS, NULL }, | |
29730 | { (char *)"DateTime___le__", _wrap_DateTime___le__, METH_VARARGS, NULL }, | |
29731 | { (char *)"DateTime___gt__", _wrap_DateTime___gt__, METH_VARARGS, NULL }, | |
29732 | { (char *)"DateTime___ge__", _wrap_DateTime___ge__, METH_VARARGS, NULL }, | |
29733 | { (char *)"DateTime___eq__", _wrap_DateTime___eq__, METH_VARARGS, NULL }, | |
29734 | { (char *)"DateTime___ne__", _wrap_DateTime___ne__, METH_VARARGS, NULL }, | |
29735 | { (char *)"DateTime_ParseRfc822Date", (PyCFunction) _wrap_DateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29736 | { (char *)"DateTime_ParseFormat", (PyCFunction) _wrap_DateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29737 | { (char *)"DateTime_ParseDateTime", (PyCFunction) _wrap_DateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29738 | { (char *)"DateTime_ParseDate", (PyCFunction) _wrap_DateTime_ParseDate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29739 | { (char *)"DateTime_ParseTime", (PyCFunction) _wrap_DateTime_ParseTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29740 | { (char *)"DateTime_Format", (PyCFunction) _wrap_DateTime_Format, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29741 | { (char *)"DateTime_FormatDate", (PyCFunction) _wrap_DateTime_FormatDate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29742 | { (char *)"DateTime_FormatTime", (PyCFunction) _wrap_DateTime_FormatTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29743 | { (char *)"DateTime_FormatISODate", (PyCFunction) _wrap_DateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29744 | { (char *)"DateTime_FormatISOTime", (PyCFunction) _wrap_DateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29745 | { (char *)"DateTime_swigregister", DateTime_swigregister, METH_VARARGS, NULL }, | |
29746 | { (char *)"TimeSpan_Seconds", (PyCFunction) _wrap_TimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29747 | { (char *)"TimeSpan_Second", (PyCFunction) _wrap_TimeSpan_Second, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29748 | { (char *)"TimeSpan_Minutes", (PyCFunction) _wrap_TimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29749 | { (char *)"TimeSpan_Minute", (PyCFunction) _wrap_TimeSpan_Minute, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29750 | { (char *)"TimeSpan_Hours", (PyCFunction) _wrap_TimeSpan_Hours, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29751 | { (char *)"TimeSpan_Hour", (PyCFunction) _wrap_TimeSpan_Hour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29752 | { (char *)"TimeSpan_Days", (PyCFunction) _wrap_TimeSpan_Days, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29753 | { (char *)"TimeSpan_Day", (PyCFunction) _wrap_TimeSpan_Day, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29754 | { (char *)"TimeSpan_Weeks", (PyCFunction) _wrap_TimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29755 | { (char *)"TimeSpan_Week", (PyCFunction) _wrap_TimeSpan_Week, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29756 | { (char *)"new_TimeSpan", (PyCFunction) _wrap_new_TimeSpan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29757 | { (char *)"delete_TimeSpan", (PyCFunction) _wrap_delete_TimeSpan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29758 | { (char *)"TimeSpan_Add", (PyCFunction) _wrap_TimeSpan_Add, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29759 | { (char *)"TimeSpan_Subtract", (PyCFunction) _wrap_TimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29760 | { (char *)"TimeSpan_Multiply", (PyCFunction) _wrap_TimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29761 | { (char *)"TimeSpan_Neg", (PyCFunction) _wrap_TimeSpan_Neg, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29762 | { (char *)"TimeSpan_Abs", (PyCFunction) _wrap_TimeSpan_Abs, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29763 | { (char *)"TimeSpan___iadd__", (PyCFunction) _wrap_TimeSpan___iadd__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29764 | { (char *)"TimeSpan___isub__", (PyCFunction) _wrap_TimeSpan___isub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29765 | { (char *)"TimeSpan___imul__", (PyCFunction) _wrap_TimeSpan___imul__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29766 | { (char *)"TimeSpan___neg__", (PyCFunction) _wrap_TimeSpan___neg__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29767 | { (char *)"TimeSpan___add__", (PyCFunction) _wrap_TimeSpan___add__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29768 | { (char *)"TimeSpan___sub__", (PyCFunction) _wrap_TimeSpan___sub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29769 | { (char *)"TimeSpan___mul__", (PyCFunction) _wrap_TimeSpan___mul__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29770 | { (char *)"TimeSpan___rmul__", (PyCFunction) _wrap_TimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29771 | { (char *)"TimeSpan___lt__", (PyCFunction) _wrap_TimeSpan___lt__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29772 | { (char *)"TimeSpan___le__", (PyCFunction) _wrap_TimeSpan___le__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29773 | { (char *)"TimeSpan___gt__", (PyCFunction) _wrap_TimeSpan___gt__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29774 | { (char *)"TimeSpan___ge__", (PyCFunction) _wrap_TimeSpan___ge__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29775 | { (char *)"TimeSpan___eq__", (PyCFunction) _wrap_TimeSpan___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29776 | { (char *)"TimeSpan___ne__", (PyCFunction) _wrap_TimeSpan___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29777 | { (char *)"TimeSpan_IsNull", (PyCFunction) _wrap_TimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29778 | { (char *)"TimeSpan_IsPositive", (PyCFunction) _wrap_TimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29779 | { (char *)"TimeSpan_IsNegative", (PyCFunction) _wrap_TimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29780 | { (char *)"TimeSpan_IsEqualTo", (PyCFunction) _wrap_TimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29781 | { (char *)"TimeSpan_IsLongerThan", (PyCFunction) _wrap_TimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29782 | { (char *)"TimeSpan_IsShorterThan", (PyCFunction) _wrap_TimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29783 | { (char *)"TimeSpan_GetWeeks", (PyCFunction) _wrap_TimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29784 | { (char *)"TimeSpan_GetDays", (PyCFunction) _wrap_TimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29785 | { (char *)"TimeSpan_GetHours", (PyCFunction) _wrap_TimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29786 | { (char *)"TimeSpan_GetMinutes", (PyCFunction) _wrap_TimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29787 | { (char *)"TimeSpan_GetSeconds", (PyCFunction) _wrap_TimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29788 | { (char *)"TimeSpan_GetMilliseconds", (PyCFunction) _wrap_TimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29789 | { (char *)"TimeSpan_Format", (PyCFunction) _wrap_TimeSpan_Format, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29790 | { (char *)"TimeSpan_swigregister", TimeSpan_swigregister, METH_VARARGS, NULL }, | |
29791 | { (char *)"new_DateSpan", (PyCFunction) _wrap_new_DateSpan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29792 | { (char *)"delete_DateSpan", (PyCFunction) _wrap_delete_DateSpan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29793 | { (char *)"DateSpan_Days", (PyCFunction) _wrap_DateSpan_Days, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29794 | { (char *)"DateSpan_Day", (PyCFunction) _wrap_DateSpan_Day, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29795 | { (char *)"DateSpan_Weeks", (PyCFunction) _wrap_DateSpan_Weeks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29796 | { (char *)"DateSpan_Week", (PyCFunction) _wrap_DateSpan_Week, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29797 | { (char *)"DateSpan_Months", (PyCFunction) _wrap_DateSpan_Months, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29798 | { (char *)"DateSpan_Month", (PyCFunction) _wrap_DateSpan_Month, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29799 | { (char *)"DateSpan_Years", (PyCFunction) _wrap_DateSpan_Years, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29800 | { (char *)"DateSpan_Year", (PyCFunction) _wrap_DateSpan_Year, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29801 | { (char *)"DateSpan_SetYears", (PyCFunction) _wrap_DateSpan_SetYears, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29802 | { (char *)"DateSpan_SetMonths", (PyCFunction) _wrap_DateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29803 | { (char *)"DateSpan_SetWeeks", (PyCFunction) _wrap_DateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29804 | { (char *)"DateSpan_SetDays", (PyCFunction) _wrap_DateSpan_SetDays, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29805 | { (char *)"DateSpan_GetYears", (PyCFunction) _wrap_DateSpan_GetYears, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29806 | { (char *)"DateSpan_GetMonths", (PyCFunction) _wrap_DateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29807 | { (char *)"DateSpan_GetWeeks", (PyCFunction) _wrap_DateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29808 | { (char *)"DateSpan_GetDays", (PyCFunction) _wrap_DateSpan_GetDays, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29809 | { (char *)"DateSpan_GetTotalDays", (PyCFunction) _wrap_DateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29810 | { (char *)"DateSpan_Add", (PyCFunction) _wrap_DateSpan_Add, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29811 | { (char *)"DateSpan_Subtract", (PyCFunction) _wrap_DateSpan_Subtract, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29812 | { (char *)"DateSpan_Neg", (PyCFunction) _wrap_DateSpan_Neg, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29813 | { (char *)"DateSpan_Multiply", (PyCFunction) _wrap_DateSpan_Multiply, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29814 | { (char *)"DateSpan___iadd__", (PyCFunction) _wrap_DateSpan___iadd__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29815 | { (char *)"DateSpan___isub__", (PyCFunction) _wrap_DateSpan___isub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29816 | { (char *)"DateSpan___neg__", (PyCFunction) _wrap_DateSpan___neg__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29817 | { (char *)"DateSpan___imul__", (PyCFunction) _wrap_DateSpan___imul__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29818 | { (char *)"DateSpan___add__", (PyCFunction) _wrap_DateSpan___add__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29819 | { (char *)"DateSpan___sub__", (PyCFunction) _wrap_DateSpan___sub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29820 | { (char *)"DateSpan___mul__", (PyCFunction) _wrap_DateSpan___mul__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29821 | { (char *)"DateSpan___rmul__", (PyCFunction) _wrap_DateSpan___rmul__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29822 | { (char *)"DateSpan___eq__", (PyCFunction) _wrap_DateSpan___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29823 | { (char *)"DateSpan___ne__", (PyCFunction) _wrap_DateSpan___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29824 | { (char *)"DateSpan_swigregister", DateSpan_swigregister, METH_VARARGS, NULL }, | |
29825 | { (char *)"GetLocalTime", (PyCFunction) _wrap_GetLocalTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29826 | { (char *)"GetUTCTime", (PyCFunction) _wrap_GetUTCTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29827 | { (char *)"GetCurrentTime", (PyCFunction) _wrap_GetCurrentTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29828 | { (char *)"GetLocalTimeMillis", (PyCFunction) _wrap_GetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29829 | { (char *)"new_DataFormat", (PyCFunction) _wrap_new_DataFormat, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29830 | { (char *)"new_CustomDataFormat", (PyCFunction) _wrap_new_CustomDataFormat, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29831 | { (char *)"delete_DataFormat", (PyCFunction) _wrap_delete_DataFormat, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29832 | { (char *)"DataFormat___eq__", _wrap_DataFormat___eq__, METH_VARARGS, NULL }, | |
29833 | { (char *)"DataFormat___ne__", _wrap_DataFormat___ne__, METH_VARARGS, NULL }, | |
29834 | { (char *)"DataFormat_SetType", (PyCFunction) _wrap_DataFormat_SetType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29835 | { (char *)"DataFormat_GetType", (PyCFunction) _wrap_DataFormat_GetType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29836 | { (char *)"DataFormat_GetId", (PyCFunction) _wrap_DataFormat_GetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29837 | { (char *)"DataFormat_SetId", (PyCFunction) _wrap_DataFormat_SetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29838 | { (char *)"DataFormat_swigregister", DataFormat_swigregister, METH_VARARGS, NULL }, | |
29839 | { (char *)"delete_DataObject", (PyCFunction) _wrap_delete_DataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29840 | { (char *)"DataObject_GetPreferredFormat", (PyCFunction) _wrap_DataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29841 | { (char *)"DataObject_GetFormatCount", (PyCFunction) _wrap_DataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29842 | { (char *)"DataObject_IsSupported", (PyCFunction) _wrap_DataObject_IsSupported, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29843 | { (char *)"DataObject_GetDataSize", (PyCFunction) _wrap_DataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29844 | { (char *)"DataObject_GetAllFormats", (PyCFunction) _wrap_DataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29845 | { (char *)"DataObject_GetDataHere", (PyCFunction) _wrap_DataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29846 | { (char *)"DataObject_SetData", (PyCFunction) _wrap_DataObject_SetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29847 | { (char *)"DataObject_swigregister", DataObject_swigregister, METH_VARARGS, NULL }, | |
29848 | { (char *)"new_DataObjectSimple", (PyCFunction) _wrap_new_DataObjectSimple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29849 | { (char *)"DataObjectSimple_GetFormat", (PyCFunction) _wrap_DataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29850 | { (char *)"DataObjectSimple_SetFormat", (PyCFunction) _wrap_DataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29851 | { (char *)"DataObjectSimple_GetDataSize", (PyCFunction) _wrap_DataObjectSimple_GetDataSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29852 | { (char *)"DataObjectSimple_GetDataHere", (PyCFunction) _wrap_DataObjectSimple_GetDataHere, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29853 | { (char *)"DataObjectSimple_SetData", (PyCFunction) _wrap_DataObjectSimple_SetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29854 | { (char *)"DataObjectSimple_swigregister", DataObjectSimple_swigregister, METH_VARARGS, NULL }, | |
29855 | { (char *)"new_PyDataObjectSimple", (PyCFunction) _wrap_new_PyDataObjectSimple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29856 | { (char *)"PyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_PyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29857 | { (char *)"PyDataObjectSimple_swigregister", PyDataObjectSimple_swigregister, METH_VARARGS, NULL }, | |
29858 | { (char *)"new_DataObjectComposite", (PyCFunction) _wrap_new_DataObjectComposite, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29859 | { (char *)"DataObjectComposite_Add", (PyCFunction) _wrap_DataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29860 | { (char *)"DataObjectComposite_swigregister", DataObjectComposite_swigregister, METH_VARARGS, NULL }, | |
29861 | { (char *)"new_TextDataObject", (PyCFunction) _wrap_new_TextDataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29862 | { (char *)"TextDataObject_GetTextLength", (PyCFunction) _wrap_TextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29863 | { (char *)"TextDataObject_GetText", (PyCFunction) _wrap_TextDataObject_GetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29864 | { (char *)"TextDataObject_SetText", (PyCFunction) _wrap_TextDataObject_SetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29865 | { (char *)"TextDataObject_swigregister", TextDataObject_swigregister, METH_VARARGS, NULL }, | |
29866 | { (char *)"new_PyTextDataObject", (PyCFunction) _wrap_new_PyTextDataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29867 | { (char *)"PyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_PyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29868 | { (char *)"PyTextDataObject_swigregister", PyTextDataObject_swigregister, METH_VARARGS, NULL }, | |
29869 | { (char *)"new_BitmapDataObject", (PyCFunction) _wrap_new_BitmapDataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29870 | { (char *)"BitmapDataObject_GetBitmap", (PyCFunction) _wrap_BitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29871 | { (char *)"BitmapDataObject_SetBitmap", (PyCFunction) _wrap_BitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29872 | { (char *)"BitmapDataObject_swigregister", BitmapDataObject_swigregister, METH_VARARGS, NULL }, | |
29873 | { (char *)"new_PyBitmapDataObject", (PyCFunction) _wrap_new_PyBitmapDataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29874 | { (char *)"PyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_PyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29875 | { (char *)"PyBitmapDataObject_swigregister", PyBitmapDataObject_swigregister, METH_VARARGS, NULL }, | |
29876 | { (char *)"new_FileDataObject", (PyCFunction) _wrap_new_FileDataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29877 | { (char *)"FileDataObject_GetFilenames", (PyCFunction) _wrap_FileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29878 | { (char *)"FileDataObject_AddFile", (PyCFunction) _wrap_FileDataObject_AddFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29879 | { (char *)"FileDataObject_swigregister", FileDataObject_swigregister, METH_VARARGS, NULL }, | |
29880 | { (char *)"new_CustomDataObject", (PyCFunction) _wrap_new_CustomDataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29881 | { (char *)"CustomDataObject_SetData", (PyCFunction) _wrap_CustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29882 | { (char *)"CustomDataObject_GetSize", (PyCFunction) _wrap_CustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29883 | { (char *)"CustomDataObject_GetData", (PyCFunction) _wrap_CustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29884 | { (char *)"CustomDataObject_swigregister", CustomDataObject_swigregister, METH_VARARGS, NULL }, | |
29885 | { (char *)"new_URLDataObject", (PyCFunction) _wrap_new_URLDataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29886 | { (char *)"URLDataObject_GetURL", (PyCFunction) _wrap_URLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29887 | { (char *)"URLDataObject_SetURL", (PyCFunction) _wrap_URLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29888 | { (char *)"URLDataObject_swigregister", URLDataObject_swigregister, METH_VARARGS, NULL }, | |
29889 | { (char *)"new_MetafileDataObject", (PyCFunction) _wrap_new_MetafileDataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29890 | { (char *)"MetafileDataObject_SetMetafile", (PyCFunction) _wrap_MetafileDataObject_SetMetafile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29891 | { (char *)"MetafileDataObject_GetMetafile", (PyCFunction) _wrap_MetafileDataObject_GetMetafile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29892 | { (char *)"MetafileDataObject_swigregister", MetafileDataObject_swigregister, METH_VARARGS, NULL }, | |
29893 | { (char *)"IsDragResultOk", (PyCFunction) _wrap_IsDragResultOk, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29894 | { (char *)"new_DropSource", (PyCFunction) _wrap_new_DropSource, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29895 | { (char *)"DropSource__setCallbackInfo", (PyCFunction) _wrap_DropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29896 | { (char *)"delete_DropSource", (PyCFunction) _wrap_delete_DropSource, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29897 | { (char *)"DropSource_SetData", (PyCFunction) _wrap_DropSource_SetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29898 | { (char *)"DropSource_GetDataObject", (PyCFunction) _wrap_DropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29899 | { (char *)"DropSource_SetCursor", (PyCFunction) _wrap_DropSource_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29900 | { (char *)"DropSource_DoDragDrop", (PyCFunction) _wrap_DropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29901 | { (char *)"DropSource_base_GiveFeedback", (PyCFunction) _wrap_DropSource_base_GiveFeedback, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29902 | { (char *)"DropSource_swigregister", DropSource_swigregister, METH_VARARGS, NULL }, | |
29903 | { (char *)"new_DropTarget", (PyCFunction) _wrap_new_DropTarget, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29904 | { (char *)"DropTarget__setCallbackInfo", (PyCFunction) _wrap_DropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29905 | { (char *)"delete_DropTarget", (PyCFunction) _wrap_delete_DropTarget, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29906 | { (char *)"DropTarget_GetDataObject", (PyCFunction) _wrap_DropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29907 | { (char *)"DropTarget_SetDataObject", (PyCFunction) _wrap_DropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29908 | { (char *)"DropTarget_base_OnEnter", (PyCFunction) _wrap_DropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29909 | { (char *)"DropTarget_base_OnDragOver", (PyCFunction) _wrap_DropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29910 | { (char *)"DropTarget_base_OnLeave", (PyCFunction) _wrap_DropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29911 | { (char *)"DropTarget_base_OnDrop", (PyCFunction) _wrap_DropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29912 | { (char *)"DropTarget_GetData", (PyCFunction) _wrap_DropTarget_GetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29913 | { (char *)"DropTarget_swigregister", DropTarget_swigregister, METH_VARARGS, NULL }, | |
29914 | { (char *)"new_TextDropTarget", (PyCFunction) _wrap_new_TextDropTarget, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29915 | { (char *)"TextDropTarget__setCallbackInfo", (PyCFunction) _wrap_TextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29916 | { (char *)"TextDropTarget_base_OnEnter", (PyCFunction) _wrap_TextDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29917 | { (char *)"TextDropTarget_base_OnDragOver", (PyCFunction) _wrap_TextDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29918 | { (char *)"TextDropTarget_base_OnLeave", (PyCFunction) _wrap_TextDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29919 | { (char *)"TextDropTarget_base_OnDrop", (PyCFunction) _wrap_TextDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29920 | { (char *)"TextDropTarget_base_OnData", (PyCFunction) _wrap_TextDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29921 | { (char *)"TextDropTarget_swigregister", TextDropTarget_swigregister, METH_VARARGS, NULL }, | |
29922 | { (char *)"new_FileDropTarget", (PyCFunction) _wrap_new_FileDropTarget, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29923 | { (char *)"FileDropTarget__setCallbackInfo", (PyCFunction) _wrap_FileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29924 | { (char *)"FileDropTarget_base_OnEnter", (PyCFunction) _wrap_FileDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29925 | { (char *)"FileDropTarget_base_OnDragOver", (PyCFunction) _wrap_FileDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29926 | { (char *)"FileDropTarget_base_OnLeave", (PyCFunction) _wrap_FileDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29927 | { (char *)"FileDropTarget_base_OnDrop", (PyCFunction) _wrap_FileDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29928 | { (char *)"FileDropTarget_base_OnData", (PyCFunction) _wrap_FileDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29929 | { (char *)"FileDropTarget_swigregister", FileDropTarget_swigregister, METH_VARARGS, NULL }, | |
29930 | { (char *)"new_Clipboard", (PyCFunction) _wrap_new_Clipboard, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29931 | { (char *)"delete_Clipboard", (PyCFunction) _wrap_delete_Clipboard, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29932 | { (char *)"Clipboard_Open", (PyCFunction) _wrap_Clipboard_Open, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29933 | { (char *)"Clipboard_Close", (PyCFunction) _wrap_Clipboard_Close, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29934 | { (char *)"Clipboard_IsOpened", (PyCFunction) _wrap_Clipboard_IsOpened, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29935 | { (char *)"Clipboard_AddData", (PyCFunction) _wrap_Clipboard_AddData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29936 | { (char *)"Clipboard_SetData", (PyCFunction) _wrap_Clipboard_SetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29937 | { (char *)"Clipboard_IsSupported", (PyCFunction) _wrap_Clipboard_IsSupported, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29938 | { (char *)"Clipboard_GetData", (PyCFunction) _wrap_Clipboard_GetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29939 | { (char *)"Clipboard_Clear", (PyCFunction) _wrap_Clipboard_Clear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29940 | { (char *)"Clipboard_Flush", (PyCFunction) _wrap_Clipboard_Flush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29941 | { (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29942 | { (char *)"Clipboard_Get", (PyCFunction) _wrap_Clipboard_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29943 | { (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS, NULL }, | |
29944 | { (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29945 | { (char *)"delete_ClipboardLocker", (PyCFunction) _wrap_delete_ClipboardLocker, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29946 | { (char *)"ClipboardLocker___nonzero__", (PyCFunction) _wrap_ClipboardLocker___nonzero__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29947 | { (char *)"ClipboardLocker_swigregister", ClipboardLocker_swigregister, METH_VARARGS, NULL }, | |
29948 | { (char *)"new_VideoMode", (PyCFunction) _wrap_new_VideoMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29949 | { (char *)"delete_VideoMode", (PyCFunction) _wrap_delete_VideoMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29950 | { (char *)"VideoMode_Matches", (PyCFunction) _wrap_VideoMode_Matches, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29951 | { (char *)"VideoMode_GetWidth", (PyCFunction) _wrap_VideoMode_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29952 | { (char *)"VideoMode_GetHeight", (PyCFunction) _wrap_VideoMode_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29953 | { (char *)"VideoMode_GetDepth", (PyCFunction) _wrap_VideoMode_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29954 | { (char *)"VideoMode_IsOk", (PyCFunction) _wrap_VideoMode_IsOk, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29955 | { (char *)"VideoMode___eq__", (PyCFunction) _wrap_VideoMode___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29956 | { (char *)"VideoMode___ne__", (PyCFunction) _wrap_VideoMode___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29957 | { (char *)"VideoMode_w_set", (PyCFunction) _wrap_VideoMode_w_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29958 | { (char *)"VideoMode_w_get", (PyCFunction) _wrap_VideoMode_w_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29959 | { (char *)"VideoMode_h_set", (PyCFunction) _wrap_VideoMode_h_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29960 | { (char *)"VideoMode_h_get", (PyCFunction) _wrap_VideoMode_h_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29961 | { (char *)"VideoMode_bpp_set", (PyCFunction) _wrap_VideoMode_bpp_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29962 | { (char *)"VideoMode_bpp_get", (PyCFunction) _wrap_VideoMode_bpp_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29963 | { (char *)"VideoMode_refresh_set", (PyCFunction) _wrap_VideoMode_refresh_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29964 | { (char *)"VideoMode_refresh_get", (PyCFunction) _wrap_VideoMode_refresh_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29965 | { (char *)"VideoMode_swigregister", VideoMode_swigregister, METH_VARARGS, NULL }, | |
29966 | { (char *)"new_Display", (PyCFunction) _wrap_new_Display, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29967 | { (char *)"delete_Display", (PyCFunction) _wrap_delete_Display, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29968 | { (char *)"Display_GetCount", (PyCFunction) _wrap_Display_GetCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29969 | { (char *)"Display_GetFromPoint", (PyCFunction) _wrap_Display_GetFromPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29970 | { (char *)"Display_GetFromWindow", (PyCFunction) _wrap_Display_GetFromWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29971 | { (char *)"Display_IsOk", (PyCFunction) _wrap_Display_IsOk, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29972 | { (char *)"Display_GetGeometry", (PyCFunction) _wrap_Display_GetGeometry, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29973 | { (char *)"Display_GetName", (PyCFunction) _wrap_Display_GetName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29974 | { (char *)"Display_IsPrimary", (PyCFunction) _wrap_Display_IsPrimary, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29975 | { (char *)"Display_GetModes", (PyCFunction) _wrap_Display_GetModes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29976 | { (char *)"Display_GetCurrentMode", (PyCFunction) _wrap_Display_GetCurrentMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29977 | { (char *)"Display_ChangeMode", (PyCFunction) _wrap_Display_ChangeMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29978 | { (char *)"Display_ResetMode", (PyCFunction) _wrap_Display_ResetMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29979 | { (char *)"Display_swigregister", Display_swigregister, METH_VARARGS, NULL }, | |
070c48b4 RD |
29980 | { (char *)"StandardPaths_Get", (PyCFunction) _wrap_StandardPaths_Get, METH_VARARGS | METH_KEYWORDS, NULL }, |
29981 | { (char *)"StandardPaths_GetConfigDir", (PyCFunction) _wrap_StandardPaths_GetConfigDir, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29982 | { (char *)"StandardPaths_GetUserConfigDir", (PyCFunction) _wrap_StandardPaths_GetUserConfigDir, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29983 | { (char *)"StandardPaths_GetDataDir", (PyCFunction) _wrap_StandardPaths_GetDataDir, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29984 | { (char *)"StandardPaths_GetLocalDataDir", (PyCFunction) _wrap_StandardPaths_GetLocalDataDir, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29985 | { (char *)"StandardPaths_GetUserDataDir", (PyCFunction) _wrap_StandardPaths_GetUserDataDir, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29986 | { (char *)"StandardPaths_GetUserLocalDataDir", (PyCFunction) _wrap_StandardPaths_GetUserLocalDataDir, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29987 | { (char *)"StandardPaths_GetPluginsDir", (PyCFunction) _wrap_StandardPaths_GetPluginsDir, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29988 | { (char *)"StandardPaths_SetInstallPrefix", (PyCFunction) _wrap_StandardPaths_SetInstallPrefix, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29989 | { (char *)"StandardPaths_GetInstallPrefix", (PyCFunction) _wrap_StandardPaths_GetInstallPrefix, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29990 | { (char *)"StandardPaths_swigregister", StandardPaths_swigregister, METH_VARARGS, NULL }, | |
c370783e | 29991 | { NULL, NULL, 0, NULL } |
d55e5bfc RD |
29992 | }; |
29993 | ||
29994 | ||
29995 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
29996 | ||
29997 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
29998 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
29999 | } | |
30000 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
30001 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
30002 | } | |
30003 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
30004 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
30005 | } | |
30006 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
30007 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
30008 | } | |
30009 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
30010 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
30011 | } | |
30012 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
30013 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
30014 | } | |
30015 | static void *_p_wxTimerEventTo_p_wxEvent(void *x) { | |
30016 | return (void *)((wxEvent *) ((wxTimerEvent *) x)); | |
30017 | } | |
30018 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
30019 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
30020 | } | |
30021 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
30022 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
30023 | } | |
30024 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
30025 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
30026 | } | |
30027 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
30028 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
30029 | } | |
30030 | static void *_p_wxJoystickEventTo_p_wxEvent(void *x) { | |
30031 | return (void *)((wxEvent *) ((wxJoystickEvent *) x)); | |
30032 | } | |
30033 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
30034 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
30035 | } | |
30036 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
30037 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
30038 | } | |
30039 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
30040 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
30041 | } | |
30042 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
30043 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
30044 | } | |
30045 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
30046 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
30047 | } | |
30048 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
30049 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
30050 | } | |
30051 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
30052 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
30053 | } | |
30054 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
30055 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
30056 | } | |
30057 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
30058 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
30059 | } | |
30060 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
30061 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
30062 | } | |
30063 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
30064 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
30065 | } | |
30066 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
30067 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
30068 | } | |
30069 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
30070 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
30071 | } | |
30072 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
30073 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
30074 | } | |
30075 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
30076 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
30077 | } | |
30078 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
30079 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
30080 | } | |
30081 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
30082 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
30083 | } | |
30084 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
30085 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
30086 | } | |
30087 | static void *_p_wxProcessEventTo_p_wxEvent(void *x) { | |
30088 | return (void *)((wxEvent *) ((wxProcessEvent *) x)); | |
30089 | } | |
30090 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
30091 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
30092 | } | |
30093 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
30094 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
30095 | } | |
30096 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
30097 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
30098 | } | |
30099 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
30100 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
30101 | } | |
30102 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
30103 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
30104 | } | |
30105 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
30106 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
30107 | } | |
30108 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
30109 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
30110 | } | |
30111 | static void *_p_wxFileConfigTo_p_wxConfigBase(void *x) { | |
30112 | return (void *)((wxConfigBase *) ((wxFileConfig *) x)); | |
30113 | } | |
30114 | static void *_p_wxConfigTo_p_wxConfigBase(void *x) { | |
30115 | return (void *)((wxConfigBase *) ((wxConfig *) x)); | |
30116 | } | |
30117 | static void *_p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject(void *x) { | |
30118 | return (void *)((wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
30119 | } | |
30120 | static void *_p_wxPyTextDataObjectTo_p_wxTextDataObject(void *x) { | |
30121 | return (void *)((wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
30122 | } | |
30123 | static void *_p_wxDataObjectSimpleTo_p_wxDataObject(void *x) { | |
30124 | return (void *)((wxDataObject *) ((wxDataObjectSimple *) x)); | |
30125 | } | |
30126 | static void *_p_wxPyDataObjectSimpleTo_p_wxDataObject(void *x) { | |
30127 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxPyDataObjectSimple *) x)); | |
30128 | } | |
30129 | static void *_p_wxDataObjectCompositeTo_p_wxDataObject(void *x) { | |
30130 | return (void *)((wxDataObject *) ((wxDataObjectComposite *) x)); | |
30131 | } | |
30132 | static void *_p_wxTextDataObjectTo_p_wxDataObject(void *x) { | |
30133 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxTextDataObject *) x)); | |
30134 | } | |
30135 | static void *_p_wxPyTextDataObjectTo_p_wxDataObject(void *x) { | |
30136 | return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
30137 | } | |
30138 | static void *_p_wxBitmapDataObjectTo_p_wxDataObject(void *x) { | |
30139 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxBitmapDataObject *) x)); | |
30140 | } | |
30141 | static void *_p_wxPyBitmapDataObjectTo_p_wxDataObject(void *x) { | |
30142 | return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
30143 | } | |
30144 | static void *_p_wxFileDataObjectTo_p_wxDataObject(void *x) { | |
30145 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxFileDataObject *) x)); | |
30146 | } | |
30147 | static void *_p_wxCustomDataObjectTo_p_wxDataObject(void *x) { | |
30148 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxCustomDataObject *) x)); | |
30149 | } | |
30150 | static void *_p_wxURLDataObjectTo_p_wxDataObject(void *x) { | |
30151 | return (void *)((wxDataObject *) (wxDataObjectComposite *) ((wxURLDataObject *) x)); | |
30152 | } | |
30153 | static void *_p_wxMetafileDataObjectTo_p_wxDataObject(void *x) { | |
30154 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxMetafileDataObject *) x)); | |
30155 | } | |
30156 | static void *_p_wxURLDataObjectTo_p_wxDataObjectComposite(void *x) { | |
30157 | return (void *)((wxDataObjectComposite *) ((wxURLDataObject *) x)); | |
30158 | } | |
30159 | static void *_p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple(void *x) { | |
30160 | return (void *)((wxDataObjectSimple *) ((wxPyDataObjectSimple *) x)); | |
30161 | } | |
30162 | static void *_p_wxTextDataObjectTo_p_wxDataObjectSimple(void *x) { | |
30163 | return (void *)((wxDataObjectSimple *) ((wxTextDataObject *) x)); | |
30164 | } | |
30165 | static void *_p_wxPyTextDataObjectTo_p_wxDataObjectSimple(void *x) { | |
30166 | return (void *)((wxDataObjectSimple *) (wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
30167 | } | |
30168 | static void *_p_wxBitmapDataObjectTo_p_wxDataObjectSimple(void *x) { | |
30169 | return (void *)((wxDataObjectSimple *) ((wxBitmapDataObject *) x)); | |
30170 | } | |
30171 | static void *_p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple(void *x) { | |
30172 | return (void *)((wxDataObjectSimple *) (wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
30173 | } | |
30174 | static void *_p_wxFileDataObjectTo_p_wxDataObjectSimple(void *x) { | |
30175 | return (void *)((wxDataObjectSimple *) ((wxFileDataObject *) x)); | |
30176 | } | |
30177 | static void *_p_wxCustomDataObjectTo_p_wxDataObjectSimple(void *x) { | |
30178 | return (void *)((wxDataObjectSimple *) ((wxCustomDataObject *) x)); | |
30179 | } | |
30180 | static void *_p_wxMetafileDataObjectTo_p_wxDataObjectSimple(void *x) { | |
30181 | return (void *)((wxDataObjectSimple *) ((wxMetafileDataObject *) x)); | |
30182 | } | |
30183 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
30184 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
30185 | } | |
30186 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
30187 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
30188 | } | |
30189 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
30190 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
30191 | } | |
30192 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
30193 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
30194 | } | |
30195 | static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) { | |
30196 | return (void *)((wxEvtHandler *) ((wxPyTimer *) x)); | |
30197 | } | |
30198 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
30199 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
30200 | } | |
30201 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
30202 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
30203 | } | |
30204 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
30205 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
30206 | } | |
30207 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
30208 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
30209 | } | |
30210 | static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) { | |
30211 | return (void *)((wxEvtHandler *) ((wxPyProcess *) x)); | |
30212 | } | |
30213 | static void *_p_wxPyTipProviderTo_p_wxTipProvider(void *x) { | |
30214 | return (void *)((wxTipProvider *) ((wxPyTipProvider *) x)); | |
30215 | } | |
30216 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
30217 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
30218 | } | |
30219 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
30220 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
30221 | } | |
30222 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
30223 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
30224 | } | |
30225 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
30226 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
30227 | } | |
30228 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
30229 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
30230 | } | |
30231 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
30232 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
30233 | } | |
30234 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
30235 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
30236 | } | |
30237 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
30238 | return (void *)((wxObject *) ((wxSizer *) x)); | |
30239 | } | |
30240 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
30241 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
30242 | } | |
30243 | static void *_p_wxFileHistoryTo_p_wxObject(void *x) { | |
30244 | return (void *)((wxObject *) ((wxFileHistory *) x)); | |
30245 | } | |
30246 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
30247 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
30248 | } | |
30249 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
30250 | return (void *)((wxObject *) ((wxEvent *) x)); | |
30251 | } | |
30252 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
30253 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
30254 | } | |
30255 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
30256 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
30257 | } | |
30258 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
30259 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
30260 | } | |
30261 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
30262 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
30263 | } | |
30264 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
30265 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
30266 | } | |
30267 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
30268 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
30269 | } | |
30270 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
30271 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
30272 | } | |
30273 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
30274 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
30275 | } | |
30276 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
30277 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
30278 | } | |
30279 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
30280 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
30281 | } | |
30282 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
30283 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
30284 | } | |
30285 | static void *_p_wxTimerEventTo_p_wxObject(void *x) { | |
30286 | return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x)); | |
30287 | } | |
30288 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
30289 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
30290 | } | |
30291 | static void *_p_wxClipboardTo_p_wxObject(void *x) { | |
30292 | return (void *)((wxObject *) ((wxClipboard *) x)); | |
30293 | } | |
30294 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
30295 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
30296 | } | |
30297 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
30298 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
30299 | } | |
30300 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
30301 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
30302 | } | |
30303 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
30304 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
30305 | } | |
30306 | static void *_p_wxToolTipTo_p_wxObject(void *x) { | |
30307 | return (void *)((wxObject *) ((wxToolTip *) x)); | |
30308 | } | |
30309 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
30310 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
30311 | } | |
30312 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
30313 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
30314 | } | |
30315 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
30316 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
30317 | } | |
30318 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
30319 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
30320 | } | |
30321 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
30322 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
30323 | } | |
30324 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
30325 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
30326 | } | |
30327 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
30328 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
30329 | } | |
30330 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
30331 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
30332 | } | |
30333 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
30334 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
30335 | } | |
30336 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
30337 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
30338 | } | |
30339 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
30340 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
30341 | } | |
30342 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
30343 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
30344 | } | |
30345 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
30346 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
30347 | } | |
30348 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
30349 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
30350 | } | |
30351 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
30352 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
30353 | } | |
30354 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
30355 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
30356 | } | |
30357 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
30358 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
30359 | } | |
30360 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
30361 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
30362 | } | |
30363 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
30364 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
30365 | } | |
30366 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
30367 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
30368 | } | |
30369 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
30370 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
30371 | } | |
30372 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
30373 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
30374 | } | |
30375 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
30376 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
30377 | } | |
30378 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
30379 | return (void *)((wxObject *) ((wxImage *) x)); | |
30380 | } | |
30381 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
30382 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
30383 | } | |
30384 | static void *_p_wxSystemOptionsTo_p_wxObject(void *x) { | |
30385 | return (void *)((wxObject *) ((wxSystemOptions *) x)); | |
30386 | } | |
30387 | static void *_p_wxJoystickEventTo_p_wxObject(void *x) { | |
30388 | return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x)); | |
30389 | } | |
30390 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
30391 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
30392 | } | |
30393 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
30394 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
30395 | } | |
30396 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
30397 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
30398 | } | |
30399 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
30400 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
30401 | } | |
30402 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
30403 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
30404 | } | |
30405 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
30406 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
30407 | } | |
30408 | static void *_p_wxPyProcessTo_p_wxObject(void *x) { | |
30409 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x)); | |
30410 | } | |
30411 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
30412 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
30413 | } | |
30414 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
30415 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
30416 | } | |
30417 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
30418 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
30419 | } | |
30420 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
30421 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
30422 | } | |
30423 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
30424 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
30425 | } | |
30426 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
30427 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
30428 | } | |
30429 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
30430 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
30431 | } | |
30432 | static void *_p_wxBusyInfoTo_p_wxObject(void *x) { | |
30433 | return (void *)((wxObject *) ((wxBusyInfo *) x)); | |
30434 | } | |
30435 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
30436 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
30437 | } | |
30438 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
30439 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
30440 | } | |
30441 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
30442 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
30443 | } | |
30444 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
30445 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
30446 | } | |
30447 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
30448 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
30449 | } | |
30450 | static void *_p_wxProcessEventTo_p_wxObject(void *x) { | |
30451 | return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x)); | |
30452 | } | |
30453 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
30454 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
30455 | } | |
30456 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
30457 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
30458 | } | |
30459 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
30460 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
30461 | } | |
30462 | static void *_p_wxPyTimerTo_p_wxObject(void *x) { | |
30463 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x)); | |
30464 | } | |
30465 | static void *_p_wxLogStderrTo_p_wxLog(void *x) { | |
30466 | return (void *)((wxLog *) ((wxLogStderr *) x)); | |
30467 | } | |
30468 | static void *_p_wxLogTextCtrlTo_p_wxLog(void *x) { | |
30469 | return (void *)((wxLog *) ((wxLogTextCtrl *) x)); | |
30470 | } | |
30471 | static void *_p_wxLogWindowTo_p_wxLog(void *x) { | |
30472 | return (void *)((wxLog *) ((wxLogWindow *) x)); | |
30473 | } | |
30474 | static void *_p_wxLogChainTo_p_wxLog(void *x) { | |
30475 | return (void *)((wxLog *) ((wxLogChain *) x)); | |
30476 | } | |
30477 | static void *_p_wxLogGuiTo_p_wxLog(void *x) { | |
30478 | return (void *)((wxLog *) ((wxLogGui *) x)); | |
30479 | } | |
30480 | static void *_p_wxPyLogTo_p_wxLog(void *x) { | |
30481 | return (void *)((wxLog *) ((wxPyLog *) x)); | |
30482 | } | |
30483 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
30484 | return (void *)((wxWindow *) ((wxControl *) x)); | |
30485 | } | |
30486 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
30487 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
30488 | } | |
30489 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
30490 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
30491 | } | |
30492 | static void *_p_wxPyTextDropTargetTo_p_wxPyDropTarget(void *x) { | |
30493 | return (void *)((wxPyDropTarget *) ((wxPyTextDropTarget *) x)); | |
30494 | } | |
30495 | static void *_p_wxPyFileDropTargetTo_p_wxPyDropTarget(void *x) { | |
30496 | return (void *)((wxPyDropTarget *) ((wxPyFileDropTarget *) x)); | |
30497 | } | |
30498 | 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}}; | |
30499 | 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}}; | |
30500 | static swig_type_info _swigt__p_wxMetafile[] = {{"_p_wxMetafile", 0, "wxMetafile *", 0, 0, 0, 0},{"_p_wxMetafile", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
30501 | 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}}; | |
30502 | 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}}; | |
30503 | 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}}; | |
30504 | 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}}; | |
30505 | 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}}; | |
30506 | 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}}; | |
30507 | 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}}; | |
30508 | 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}}; | |
30509 | 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}}; | |
30510 | 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}}; | |
30511 | 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}}; | |
30512 | 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}}; | |
30513 | 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}}; | |
30514 | 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}}; | |
30515 | 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}}; | |
30516 | 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}}; | |
30517 | 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}}; | |
30518 | 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}}; | |
30519 | 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}}; | |
30520 | 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}}; | |
30521 | 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}}; | |
30522 | 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}}; | |
30523 | 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}}; | |
30524 | 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}}; | |
30525 | 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}}; | |
30526 | 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}}; | |
30527 | 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}}; | |
30528 | 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}}; | |
03e46024 | 30529 | static swig_type_info _swigt__p_wxPyBitmapDataObject[] = {{"_p_wxPyBitmapDataObject", 0, "wxPyBitmapDataObject *", 0, 0, 0, 0},{"_p_wxPyBitmapDataObject", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
d55e5bfc RD |
30530 | 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}}; |
30531 | 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}}; | |
30532 | 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}}; | |
30533 | 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}}; | |
30534 | 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}}; | |
30535 | 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}}; | |
30536 | 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}}; | |
30537 | 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}}; | |
30538 | 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}}; | |
30539 | 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}}; | |
30540 | 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}}; | |
30541 | 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}}; | |
30542 | 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}}; | |
30543 | 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}}; | |
30544 | 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}}; | |
30545 | 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}}; | |
30546 | 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}}; | |
30547 | 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}}; | |
30548 | 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}}; | |
30549 | 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}}; | |
30550 | 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}}; | |
070c48b4 | 30551 | 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}}; |
d55e5bfc RD |
30552 | 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}}; |
30553 | 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}}; | |
30554 | 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}}; | |
30555 | 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}}; | |
30556 | 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}}; | |
30557 | 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}}; | |
30558 | 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}}; | |
30559 | 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}}; | |
30560 | 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}}; | |
30561 | 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}}; | |
30562 | 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}}; | |
30563 | 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}}; | |
30564 | 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}}; | |
30565 | 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}}; | |
30566 | 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}}; | |
30567 | 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}}; | |
03e46024 | 30568 | static swig_type_info _swigt__p_wxKillError[] = {{"_p_wxKillError", 0, "enum wxKillError *|wxKillError *", 0, 0, 0, 0},{"_p_wxKillError", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
d55e5bfc RD |
30569 | 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}}; |
30570 | 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}}; | |
30571 | 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}}; | |
30572 | 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}}; | |
30573 | 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}}; | |
30574 | 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}}; | |
30575 | 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}}; | |
30576 | 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}}; | |
30577 | 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}}; | |
30578 | 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}}; | |
30579 | 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}}; | |
30580 | 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}}; | |
30581 | 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}}; | |
30582 | static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0, 0, 0, 0},{"_p_wxColour", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
d55e5bfc RD |
30583 | 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}}; |
30584 | 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}}; | |
30585 | 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}}; | |
30586 | ||
30587 | static swig_type_info *swig_types_initial[] = { | |
30588 | _swigt__p_wxLogChain, | |
30589 | _swigt__p_wxMutexGuiLocker, | |
30590 | _swigt__p_wxMetafile, | |
30591 | _swigt__p_wxFileHistory, | |
30592 | _swigt__p_wxLog, | |
30593 | _swigt__p_wxDateTime__TimeZone, | |
30594 | _swigt__p_wxMenu, | |
30595 | _swigt__p_wxEvent, | |
30596 | _swigt__p_wxConfigBase, | |
30597 | _swigt__p_wxDisplay, | |
30598 | _swigt__p_wxFileType, | |
30599 | _swigt__p_wxLogGui, | |
30600 | _swigt__p_wxFont, | |
30601 | _swigt__p_wxDataFormat, | |
30602 | _swigt__p_wxTimerEvent, | |
30603 | _swigt__p_wxCaret, | |
30604 | _swigt__p_int, | |
30605 | _swigt__p_wxSize, | |
30606 | _swigt__p_wxClipboard, | |
30607 | _swigt__p_wxStopWatch, | |
30608 | _swigt__p_wxDC, | |
30609 | _swigt__p_wxClipboardLocker, | |
30610 | _swigt__p_wxIcon, | |
30611 | _swigt__p_wxLogStderr, | |
30612 | _swigt__p_wxLogTextCtrl, | |
30613 | _swigt__p_wxTextCtrl, | |
30614 | _swigt__p_wxBusyCursor, | |
30615 | _swigt__p_wxPyTextDataObject, | |
30616 | _swigt__p_wxBitmapDataObject, | |
30617 | _swigt__p_wxTextDataObject, | |
30618 | _swigt__p_wxDataObject, | |
03e46024 | 30619 | _swigt__p_wxPyBitmapDataObject, |
d55e5bfc RD |
30620 | _swigt__p_wxFileDataObject, |
30621 | _swigt__p_wxCustomDataObject, | |
30622 | _swigt__p_wxURLDataObject, | |
30623 | _swigt__p_wxMetafileDataObject, | |
30624 | _swigt__p_wxSound, | |
30625 | _swigt__p_wxTimerRunner, | |
30626 | _swigt__p_wxLogWindow, | |
30627 | _swigt__p_wxTimeSpan, | |
30628 | _swigt__p_wxArrayString, | |
30629 | _swigt__p_wxWindowDisabler, | |
30630 | _swigt__p_wxToolTip, | |
30631 | _swigt__p_wxDataObjectComposite, | |
30632 | _swigt__p_wxFileConfig, | |
30633 | _swigt__p_wxSystemSettings, | |
30634 | _swigt__p_wxVideoMode, | |
30635 | _swigt__p_wxPyDataObjectSimple, | |
30636 | _swigt__p_wxDataObjectSimple, | |
30637 | _swigt__p_wxEvtHandler, | |
30638 | _swigt__p_wxRect, | |
30639 | _swigt__p_char, | |
30640 | _swigt__p_wxSingleInstanceChecker, | |
070c48b4 | 30641 | _swigt__p_wxStandardPaths, |
d55e5bfc RD |
30642 | _swigt__p_wxFileTypeInfo, |
30643 | _swigt__p_wxFrame, | |
30644 | _swigt__p_wxTimer, | |
30645 | _swigt__p_wxMimeTypesManager, | |
30646 | _swigt__p_wxPyArtProvider, | |
30647 | _swigt__p_wxPyTipProvider, | |
30648 | _swigt__p_wxTipProvider, | |
30649 | _swigt__p_wxJoystick, | |
30650 | _swigt__p_wxSystemOptions, | |
30651 | _swigt__p_wxPoint, | |
30652 | _swigt__p_wxJoystickEvent, | |
30653 | _swigt__p_wxCursor, | |
30654 | _swigt__p_wxObject, | |
30655 | _swigt__p_wxOutputStream, | |
30656 | _swigt__p_wxDateTime, | |
30657 | _swigt__p_wxPyDropSource, | |
03e46024 | 30658 | _swigt__p_wxKillError, |
d55e5bfc RD |
30659 | _swigt__p_wxWindow, |
30660 | _swigt__p_wxString, | |
30661 | _swigt__p_wxPyProcess, | |
30662 | _swigt__p_wxBitmap, | |
30663 | _swigt__p_wxConfig, | |
30664 | _swigt__p_wxChar, | |
30665 | _swigt__p_wxBusyInfo, | |
30666 | _swigt__p_wxPyDropTarget, | |
30667 | _swigt__p_wxPyTextDropTarget, | |
30668 | _swigt__p_wxPyFileDropTarget, | |
30669 | _swigt__p_wxProcessEvent, | |
30670 | _swigt__p_wxPyLog, | |
30671 | _swigt__p_wxLogNull, | |
30672 | _swigt__p_wxColour, | |
d55e5bfc RD |
30673 | _swigt__p_wxConfigPathChanger, |
30674 | _swigt__p_wxPyTimer, | |
30675 | _swigt__p_wxDateSpan, | |
30676 | 0 | |
30677 | }; | |
30678 | ||
30679 | ||
30680 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
30681 | ||
30682 | static swig_const_info swig_const_table[] = { | |
30683 | { SWIG_PY_POINTER, (char*)"TRACE_MemAlloc", 0, 0, (void *)"memalloc", &SWIGTYPE_p_char}, | |
30684 | { SWIG_PY_POINTER, (char*)"TRACE_Messages", 0, 0, (void *)"messages", &SWIGTYPE_p_char}, | |
30685 | { SWIG_PY_POINTER, (char*)"TRACE_ResAlloc", 0, 0, (void *)"resalloc", &SWIGTYPE_p_char}, | |
30686 | { SWIG_PY_POINTER, (char*)"TRACE_RefCount", 0, 0, (void *)"refcount", &SWIGTYPE_p_char}, | |
30687 | { SWIG_PY_POINTER, (char*)"TRACE_OleCalls", 0, 0, (void *)"ole", &SWIGTYPE_p_char}, | |
c370783e | 30688 | {0, 0, 0, 0.0, 0, 0}}; |
d55e5bfc RD |
30689 | |
30690 | #ifdef __cplusplus | |
30691 | } | |
30692 | #endif | |
30693 | ||
30694 | #ifdef __cplusplus | |
30695 | extern "C" | |
30696 | #endif | |
30697 | SWIGEXPORT(void) SWIG_init(void) { | |
30698 | static PyObject *SWIG_globals = 0; | |
30699 | static int typeinit = 0; | |
30700 | PyObject *m, *d; | |
30701 | int i; | |
30702 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
30703 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
30704 | d = PyModule_GetDict(m); | |
30705 | ||
30706 | if (!typeinit) { | |
30707 | for (i = 0; swig_types_initial[i]; i++) { | |
30708 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
30709 | } | |
30710 | typeinit = 1; | |
30711 | } | |
30712 | SWIG_InstallConstants(d,swig_const_table); | |
30713 | ||
c370783e RD |
30714 | PyDict_SetItemString(d,"SYS_OEM_FIXED_FONT", SWIG_From_int((int)wxSYS_OEM_FIXED_FONT)); |
30715 | PyDict_SetItemString(d,"SYS_ANSI_FIXED_FONT", SWIG_From_int((int)wxSYS_ANSI_FIXED_FONT)); | |
30716 | PyDict_SetItemString(d,"SYS_ANSI_VAR_FONT", SWIG_From_int((int)wxSYS_ANSI_VAR_FONT)); | |
30717 | PyDict_SetItemString(d,"SYS_SYSTEM_FONT", SWIG_From_int((int)wxSYS_SYSTEM_FONT)); | |
30718 | PyDict_SetItemString(d,"SYS_DEVICE_DEFAULT_FONT", SWIG_From_int((int)wxSYS_DEVICE_DEFAULT_FONT)); | |
30719 | PyDict_SetItemString(d,"SYS_DEFAULT_PALETTE", SWIG_From_int((int)wxSYS_DEFAULT_PALETTE)); | |
30720 | PyDict_SetItemString(d,"SYS_SYSTEM_FIXED_FONT", SWIG_From_int((int)wxSYS_SYSTEM_FIXED_FONT)); | |
30721 | PyDict_SetItemString(d,"SYS_DEFAULT_GUI_FONT", SWIG_From_int((int)wxSYS_DEFAULT_GUI_FONT)); | |
30722 | PyDict_SetItemString(d,"SYS_ICONTITLE_FONT", SWIG_From_int((int)wxSYS_ICONTITLE_FONT)); | |
30723 | PyDict_SetItemString(d,"SYS_COLOUR_SCROLLBAR", SWIG_From_int((int)wxSYS_COLOUR_SCROLLBAR)); | |
30724 | PyDict_SetItemString(d,"SYS_COLOUR_BACKGROUND", SWIG_From_int((int)wxSYS_COLOUR_BACKGROUND)); | |
30725 | PyDict_SetItemString(d,"SYS_COLOUR_DESKTOP", SWIG_From_int((int)wxSYS_COLOUR_DESKTOP)); | |
30726 | PyDict_SetItemString(d,"SYS_COLOUR_ACTIVECAPTION", SWIG_From_int((int)wxSYS_COLOUR_ACTIVECAPTION)); | |
30727 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTION", SWIG_From_int((int)wxSYS_COLOUR_INACTIVECAPTION)); | |
30728 | PyDict_SetItemString(d,"SYS_COLOUR_MENU", SWIG_From_int((int)wxSYS_COLOUR_MENU)); | |
30729 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOW", SWIG_From_int((int)wxSYS_COLOUR_WINDOW)); | |
30730 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOWFRAME", SWIG_From_int((int)wxSYS_COLOUR_WINDOWFRAME)); | |
30731 | PyDict_SetItemString(d,"SYS_COLOUR_MENUTEXT", SWIG_From_int((int)wxSYS_COLOUR_MENUTEXT)); | |
30732 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOWTEXT", SWIG_From_int((int)wxSYS_COLOUR_WINDOWTEXT)); | |
30733 | PyDict_SetItemString(d,"SYS_COLOUR_CAPTIONTEXT", SWIG_From_int((int)wxSYS_COLOUR_CAPTIONTEXT)); | |
30734 | PyDict_SetItemString(d,"SYS_COLOUR_ACTIVEBORDER", SWIG_From_int((int)wxSYS_COLOUR_ACTIVEBORDER)); | |
30735 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVEBORDER", SWIG_From_int((int)wxSYS_COLOUR_INACTIVEBORDER)); | |
30736 | PyDict_SetItemString(d,"SYS_COLOUR_APPWORKSPACE", SWIG_From_int((int)wxSYS_COLOUR_APPWORKSPACE)); | |
30737 | PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHT", SWIG_From_int((int)wxSYS_COLOUR_HIGHLIGHT)); | |
30738 | PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHTTEXT", SWIG_From_int((int)wxSYS_COLOUR_HIGHLIGHTTEXT)); | |
30739 | PyDict_SetItemString(d,"SYS_COLOUR_BTNFACE", SWIG_From_int((int)wxSYS_COLOUR_BTNFACE)); | |
30740 | PyDict_SetItemString(d,"SYS_COLOUR_3DFACE", SWIG_From_int((int)wxSYS_COLOUR_3DFACE)); | |
30741 | PyDict_SetItemString(d,"SYS_COLOUR_BTNSHADOW", SWIG_From_int((int)wxSYS_COLOUR_BTNSHADOW)); | |
30742 | PyDict_SetItemString(d,"SYS_COLOUR_3DSHADOW", SWIG_From_int((int)wxSYS_COLOUR_3DSHADOW)); | |
30743 | PyDict_SetItemString(d,"SYS_COLOUR_GRAYTEXT", SWIG_From_int((int)wxSYS_COLOUR_GRAYTEXT)); | |
30744 | PyDict_SetItemString(d,"SYS_COLOUR_BTNTEXT", SWIG_From_int((int)wxSYS_COLOUR_BTNTEXT)); | |
30745 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTIONTEXT", SWIG_From_int((int)wxSYS_COLOUR_INACTIVECAPTIONTEXT)); | |
30746 | PyDict_SetItemString(d,"SYS_COLOUR_BTNHIGHLIGHT", SWIG_From_int((int)wxSYS_COLOUR_BTNHIGHLIGHT)); | |
30747 | PyDict_SetItemString(d,"SYS_COLOUR_BTNHILIGHT", SWIG_From_int((int)wxSYS_COLOUR_BTNHILIGHT)); | |
30748 | PyDict_SetItemString(d,"SYS_COLOUR_3DHIGHLIGHT", SWIG_From_int((int)wxSYS_COLOUR_3DHIGHLIGHT)); | |
30749 | PyDict_SetItemString(d,"SYS_COLOUR_3DHILIGHT", SWIG_From_int((int)wxSYS_COLOUR_3DHILIGHT)); | |
30750 | PyDict_SetItemString(d,"SYS_COLOUR_3DDKSHADOW", SWIG_From_int((int)wxSYS_COLOUR_3DDKSHADOW)); | |
30751 | PyDict_SetItemString(d,"SYS_COLOUR_3DLIGHT", SWIG_From_int((int)wxSYS_COLOUR_3DLIGHT)); | |
30752 | PyDict_SetItemString(d,"SYS_COLOUR_INFOTEXT", SWIG_From_int((int)wxSYS_COLOUR_INFOTEXT)); | |
30753 | PyDict_SetItemString(d,"SYS_COLOUR_INFOBK", SWIG_From_int((int)wxSYS_COLOUR_INFOBK)); | |
30754 | PyDict_SetItemString(d,"SYS_COLOUR_LISTBOX", SWIG_From_int((int)wxSYS_COLOUR_LISTBOX)); | |
30755 | PyDict_SetItemString(d,"SYS_COLOUR_HOTLIGHT", SWIG_From_int((int)wxSYS_COLOUR_HOTLIGHT)); | |
30756 | PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTACTIVECAPTION", SWIG_From_int((int)wxSYS_COLOUR_GRADIENTACTIVECAPTION)); | |
30757 | PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTINACTIVECAPTION", SWIG_From_int((int)wxSYS_COLOUR_GRADIENTINACTIVECAPTION)); | |
30758 | PyDict_SetItemString(d,"SYS_COLOUR_MENUHILIGHT", SWIG_From_int((int)wxSYS_COLOUR_MENUHILIGHT)); | |
30759 | PyDict_SetItemString(d,"SYS_COLOUR_MENUBAR", SWIG_From_int((int)wxSYS_COLOUR_MENUBAR)); | |
30760 | PyDict_SetItemString(d,"SYS_COLOUR_MAX", SWIG_From_int((int)wxSYS_COLOUR_MAX)); | |
30761 | PyDict_SetItemString(d,"SYS_MOUSE_BUTTONS", SWIG_From_int((int)wxSYS_MOUSE_BUTTONS)); | |
30762 | PyDict_SetItemString(d,"SYS_BORDER_X", SWIG_From_int((int)wxSYS_BORDER_X)); | |
30763 | PyDict_SetItemString(d,"SYS_BORDER_Y", SWIG_From_int((int)wxSYS_BORDER_Y)); | |
30764 | PyDict_SetItemString(d,"SYS_CURSOR_X", SWIG_From_int((int)wxSYS_CURSOR_X)); | |
30765 | PyDict_SetItemString(d,"SYS_CURSOR_Y", SWIG_From_int((int)wxSYS_CURSOR_Y)); | |
30766 | PyDict_SetItemString(d,"SYS_DCLICK_X", SWIG_From_int((int)wxSYS_DCLICK_X)); | |
30767 | PyDict_SetItemString(d,"SYS_DCLICK_Y", SWIG_From_int((int)wxSYS_DCLICK_Y)); | |
30768 | PyDict_SetItemString(d,"SYS_DRAG_X", SWIG_From_int((int)wxSYS_DRAG_X)); | |
30769 | PyDict_SetItemString(d,"SYS_DRAG_Y", SWIG_From_int((int)wxSYS_DRAG_Y)); | |
30770 | PyDict_SetItemString(d,"SYS_EDGE_X", SWIG_From_int((int)wxSYS_EDGE_X)); | |
30771 | PyDict_SetItemString(d,"SYS_EDGE_Y", SWIG_From_int((int)wxSYS_EDGE_Y)); | |
30772 | PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_X", SWIG_From_int((int)wxSYS_HSCROLL_ARROW_X)); | |
30773 | PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_Y", SWIG_From_int((int)wxSYS_HSCROLL_ARROW_Y)); | |
30774 | PyDict_SetItemString(d,"SYS_HTHUMB_X", SWIG_From_int((int)wxSYS_HTHUMB_X)); | |
30775 | PyDict_SetItemString(d,"SYS_ICON_X", SWIG_From_int((int)wxSYS_ICON_X)); | |
30776 | PyDict_SetItemString(d,"SYS_ICON_Y", SWIG_From_int((int)wxSYS_ICON_Y)); | |
30777 | PyDict_SetItemString(d,"SYS_ICONSPACING_X", SWIG_From_int((int)wxSYS_ICONSPACING_X)); | |
30778 | PyDict_SetItemString(d,"SYS_ICONSPACING_Y", SWIG_From_int((int)wxSYS_ICONSPACING_Y)); | |
30779 | PyDict_SetItemString(d,"SYS_WINDOWMIN_X", SWIG_From_int((int)wxSYS_WINDOWMIN_X)); | |
30780 | PyDict_SetItemString(d,"SYS_WINDOWMIN_Y", SWIG_From_int((int)wxSYS_WINDOWMIN_Y)); | |
30781 | PyDict_SetItemString(d,"SYS_SCREEN_X", SWIG_From_int((int)wxSYS_SCREEN_X)); | |
30782 | PyDict_SetItemString(d,"SYS_SCREEN_Y", SWIG_From_int((int)wxSYS_SCREEN_Y)); | |
30783 | PyDict_SetItemString(d,"SYS_FRAMESIZE_X", SWIG_From_int((int)wxSYS_FRAMESIZE_X)); | |
30784 | PyDict_SetItemString(d,"SYS_FRAMESIZE_Y", SWIG_From_int((int)wxSYS_FRAMESIZE_Y)); | |
30785 | PyDict_SetItemString(d,"SYS_SMALLICON_X", SWIG_From_int((int)wxSYS_SMALLICON_X)); | |
30786 | PyDict_SetItemString(d,"SYS_SMALLICON_Y", SWIG_From_int((int)wxSYS_SMALLICON_Y)); | |
30787 | PyDict_SetItemString(d,"SYS_HSCROLL_Y", SWIG_From_int((int)wxSYS_HSCROLL_Y)); | |
30788 | PyDict_SetItemString(d,"SYS_VSCROLL_X", SWIG_From_int((int)wxSYS_VSCROLL_X)); | |
30789 | PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_X", SWIG_From_int((int)wxSYS_VSCROLL_ARROW_X)); | |
30790 | PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_Y", SWIG_From_int((int)wxSYS_VSCROLL_ARROW_Y)); | |
30791 | PyDict_SetItemString(d,"SYS_VTHUMB_Y", SWIG_From_int((int)wxSYS_VTHUMB_Y)); | |
30792 | PyDict_SetItemString(d,"SYS_CAPTION_Y", SWIG_From_int((int)wxSYS_CAPTION_Y)); | |
30793 | PyDict_SetItemString(d,"SYS_MENU_Y", SWIG_From_int((int)wxSYS_MENU_Y)); | |
30794 | PyDict_SetItemString(d,"SYS_NETWORK_PRESENT", SWIG_From_int((int)wxSYS_NETWORK_PRESENT)); | |
30795 | PyDict_SetItemString(d,"SYS_PENWINDOWS_PRESENT", SWIG_From_int((int)wxSYS_PENWINDOWS_PRESENT)); | |
30796 | PyDict_SetItemString(d,"SYS_SHOW_SOUNDS", SWIG_From_int((int)wxSYS_SHOW_SOUNDS)); | |
30797 | PyDict_SetItemString(d,"SYS_SWAP_BUTTONS", SWIG_From_int((int)wxSYS_SWAP_BUTTONS)); | |
30798 | PyDict_SetItemString(d,"SYS_CAN_DRAW_FRAME_DECORATIONS", SWIG_From_int((int)wxSYS_CAN_DRAW_FRAME_DECORATIONS)); | |
30799 | PyDict_SetItemString(d,"SYS_CAN_ICONIZE_FRAME", SWIG_From_int((int)wxSYS_CAN_ICONIZE_FRAME)); | |
30800 | PyDict_SetItemString(d,"SYS_SCREEN_NONE", SWIG_From_int((int)wxSYS_SCREEN_NONE)); | |
30801 | PyDict_SetItemString(d,"SYS_SCREEN_TINY", SWIG_From_int((int)wxSYS_SCREEN_TINY)); | |
30802 | PyDict_SetItemString(d,"SYS_SCREEN_PDA", SWIG_From_int((int)wxSYS_SCREEN_PDA)); | |
30803 | PyDict_SetItemString(d,"SYS_SCREEN_SMALL", SWIG_From_int((int)wxSYS_SCREEN_SMALL)); | |
30804 | PyDict_SetItemString(d,"SYS_SCREEN_DESKTOP", SWIG_From_int((int)wxSYS_SCREEN_DESKTOP)); | |
d55e5bfc | 30805 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
629e65c2 | 30806 | SWIG_addvarlink(SWIG_globals,(char*)"WINDOW_DEFAULT_VARIANT",_wrap_WINDOW_DEFAULT_VARIANT_get, _wrap_WINDOW_DEFAULT_VARIANT_set); |
d55e5bfc RD |
30807 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set); |
30808 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set); | |
30809 | SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set); | |
c370783e RD |
30810 | PyDict_SetItemString(d,"SHUTDOWN_POWEROFF", SWIG_From_int((int)wxSHUTDOWN_POWEROFF)); |
30811 | PyDict_SetItemString(d,"SHUTDOWN_REBOOT", SWIG_From_int((int)wxSHUTDOWN_REBOOT)); | |
30812 | PyDict_SetItemString(d,"TIMER_CONTINUOUS", SWIG_From_int((int)wxTIMER_CONTINUOUS)); | |
30813 | PyDict_SetItemString(d,"TIMER_ONE_SHOT", SWIG_From_int((int)wxTIMER_ONE_SHOT)); | |
d55e5bfc | 30814 | PyDict_SetItemString(d, "wxEVT_TIMER", PyInt_FromLong(wxEVT_TIMER)); |
1a6bba1e RD |
30815 | |
30816 | wxPyPtrTypeMap_Add("wxTimer", "wxPyTimer"); | |
30817 | ||
c370783e RD |
30818 | PyDict_SetItemString(d,"LOG_FatalError", SWIG_From_int((int)wxLOG_FatalError)); |
30819 | PyDict_SetItemString(d,"LOG_Error", SWIG_From_int((int)wxLOG_Error)); | |
30820 | PyDict_SetItemString(d,"LOG_Warning", SWIG_From_int((int)wxLOG_Warning)); | |
30821 | PyDict_SetItemString(d,"LOG_Message", SWIG_From_int((int)wxLOG_Message)); | |
30822 | PyDict_SetItemString(d,"LOG_Status", SWIG_From_int((int)wxLOG_Status)); | |
30823 | PyDict_SetItemString(d,"LOG_Info", SWIG_From_int((int)wxLOG_Info)); | |
30824 | PyDict_SetItemString(d,"LOG_Debug", SWIG_From_int((int)wxLOG_Debug)); | |
30825 | PyDict_SetItemString(d,"LOG_Trace", SWIG_From_int((int)wxLOG_Trace)); | |
30826 | PyDict_SetItemString(d,"LOG_Progress", SWIG_From_int((int)wxLOG_Progress)); | |
30827 | PyDict_SetItemString(d,"LOG_User", SWIG_From_int((int)wxLOG_User)); | |
30828 | PyDict_SetItemString(d,"LOG_Max", SWIG_From_int((int)wxLOG_Max)); | |
d55e5bfc RD |
30829 | PyDict_SetItemString(d,"TRACE_MemAlloc", SWIG_FromCharPtr("memalloc")); |
30830 | PyDict_SetItemString(d,"TRACE_Messages", SWIG_FromCharPtr("messages")); | |
30831 | PyDict_SetItemString(d,"TRACE_ResAlloc", SWIG_FromCharPtr("resalloc")); | |
30832 | PyDict_SetItemString(d,"TRACE_RefCount", SWIG_FromCharPtr("refcount")); | |
30833 | PyDict_SetItemString(d,"TRACE_OleCalls", SWIG_FromCharPtr("ole")); | |
c370783e RD |
30834 | PyDict_SetItemString(d,"TraceMemAlloc", SWIG_From_int((int)0x0001)); |
30835 | PyDict_SetItemString(d,"TraceMessages", SWIG_From_int((int)0x0002)); | |
30836 | PyDict_SetItemString(d,"TraceResAlloc", SWIG_From_int((int)0x0004)); | |
30837 | PyDict_SetItemString(d,"TraceRefCount", SWIG_From_int((int)0x0008)); | |
30838 | PyDict_SetItemString(d,"TraceOleCalls", SWIG_From_int((int)0x0100)); | |
30839 | PyDict_SetItemString(d,"PROCESS_DEFAULT", SWIG_From_int((int)wxPROCESS_DEFAULT)); | |
30840 | PyDict_SetItemString(d,"PROCESS_REDIRECT", SWIG_From_int((int)wxPROCESS_REDIRECT)); | |
30841 | PyDict_SetItemString(d,"KILL_OK", SWIG_From_int((int)wxKILL_OK)); | |
30842 | PyDict_SetItemString(d,"KILL_BAD_SIGNAL", SWIG_From_int((int)wxKILL_BAD_SIGNAL)); | |
30843 | PyDict_SetItemString(d,"KILL_ACCESS_DENIED", SWIG_From_int((int)wxKILL_ACCESS_DENIED)); | |
30844 | PyDict_SetItemString(d,"KILL_NO_PROCESS", SWIG_From_int((int)wxKILL_NO_PROCESS)); | |
30845 | PyDict_SetItemString(d,"KILL_ERROR", SWIG_From_int((int)wxKILL_ERROR)); | |
03e46024 RD |
30846 | PyDict_SetItemString(d,"KILL_NOCHILDREN", SWIG_From_int((int)wxKILL_NOCHILDREN)); |
30847 | PyDict_SetItemString(d,"KILL_CHILDREN", SWIG_From_int((int)wxKILL_CHILDREN)); | |
c370783e RD |
30848 | PyDict_SetItemString(d,"SIGNONE", SWIG_From_int((int)wxSIGNONE)); |
30849 | PyDict_SetItemString(d,"SIGHUP", SWIG_From_int((int)wxSIGHUP)); | |
30850 | PyDict_SetItemString(d,"SIGINT", SWIG_From_int((int)wxSIGINT)); | |
30851 | PyDict_SetItemString(d,"SIGQUIT", SWIG_From_int((int)wxSIGQUIT)); | |
30852 | PyDict_SetItemString(d,"SIGILL", SWIG_From_int((int)wxSIGILL)); | |
30853 | PyDict_SetItemString(d,"SIGTRAP", SWIG_From_int((int)wxSIGTRAP)); | |
30854 | PyDict_SetItemString(d,"SIGABRT", SWIG_From_int((int)wxSIGABRT)); | |
30855 | PyDict_SetItemString(d,"SIGIOT", SWIG_From_int((int)wxSIGIOT)); | |
30856 | PyDict_SetItemString(d,"SIGEMT", SWIG_From_int((int)wxSIGEMT)); | |
30857 | PyDict_SetItemString(d,"SIGFPE", SWIG_From_int((int)wxSIGFPE)); | |
30858 | PyDict_SetItemString(d,"SIGKILL", SWIG_From_int((int)wxSIGKILL)); | |
30859 | PyDict_SetItemString(d,"SIGBUS", SWIG_From_int((int)wxSIGBUS)); | |
30860 | PyDict_SetItemString(d,"SIGSEGV", SWIG_From_int((int)wxSIGSEGV)); | |
30861 | PyDict_SetItemString(d,"SIGSYS", SWIG_From_int((int)wxSIGSYS)); | |
30862 | PyDict_SetItemString(d,"SIGPIPE", SWIG_From_int((int)wxSIGPIPE)); | |
30863 | PyDict_SetItemString(d,"SIGALRM", SWIG_From_int((int)wxSIGALRM)); | |
30864 | PyDict_SetItemString(d,"SIGTERM", SWIG_From_int((int)wxSIGTERM)); | |
d55e5bfc | 30865 | PyDict_SetItemString(d, "wxEVT_END_PROCESS", PyInt_FromLong(wxEVT_END_PROCESS)); |
c370783e RD |
30866 | PyDict_SetItemString(d,"EXEC_ASYNC", SWIG_From_int((int)wxEXEC_ASYNC)); |
30867 | PyDict_SetItemString(d,"EXEC_SYNC", SWIG_From_int((int)wxEXEC_SYNC)); | |
30868 | PyDict_SetItemString(d,"EXEC_NOHIDE", SWIG_From_int((int)wxEXEC_NOHIDE)); | |
30869 | PyDict_SetItemString(d,"EXEC_MAKE_GROUP_LEADER", SWIG_From_int((int)wxEXEC_MAKE_GROUP_LEADER)); | |
d55e5bfc RD |
30870 | |
30871 | wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess"); | |
30872 | ||
c370783e RD |
30873 | PyDict_SetItemString(d,"JOYSTICK1", SWIG_From_int((int)wxJOYSTICK1)); |
30874 | PyDict_SetItemString(d,"JOYSTICK2", SWIG_From_int((int)wxJOYSTICK2)); | |
30875 | PyDict_SetItemString(d,"JOY_BUTTON_ANY", SWIG_From_int((int)wxJOY_BUTTON_ANY)); | |
30876 | PyDict_SetItemString(d,"JOY_BUTTON1", SWIG_From_int((int)wxJOY_BUTTON1)); | |
30877 | PyDict_SetItemString(d,"JOY_BUTTON2", SWIG_From_int((int)wxJOY_BUTTON2)); | |
30878 | PyDict_SetItemString(d,"JOY_BUTTON3", SWIG_From_int((int)wxJOY_BUTTON3)); | |
30879 | PyDict_SetItemString(d,"JOY_BUTTON4", SWIG_From_int((int)wxJOY_BUTTON4)); | |
d55e5bfc RD |
30880 | PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong(wxEVT_JOY_BUTTON_DOWN)); |
30881 | PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_UP", PyInt_FromLong(wxEVT_JOY_BUTTON_UP)); | |
30882 | PyDict_SetItemString(d, "wxEVT_JOY_MOVE", PyInt_FromLong(wxEVT_JOY_MOVE)); | |
30883 | PyDict_SetItemString(d, "wxEVT_JOY_ZMOVE", PyInt_FromLong(wxEVT_JOY_ZMOVE)); | |
c370783e RD |
30884 | PyDict_SetItemString(d,"SOUND_SYNC", SWIG_From_int((int)wxSOUND_SYNC)); |
30885 | PyDict_SetItemString(d,"SOUND_ASYNC", SWIG_From_int((int)wxSOUND_ASYNC)); | |
30886 | PyDict_SetItemString(d,"SOUND_LOOP", SWIG_From_int((int)wxSOUND_LOOP)); | |
30887 | PyDict_SetItemString(d,"MAILCAP_STANDARD", SWIG_From_int((int)wxMAILCAP_STANDARD)); | |
30888 | PyDict_SetItemString(d,"MAILCAP_NETSCAPE", SWIG_From_int((int)wxMAILCAP_NETSCAPE)); | |
30889 | PyDict_SetItemString(d,"MAILCAP_KDE", SWIG_From_int((int)wxMAILCAP_KDE)); | |
30890 | PyDict_SetItemString(d,"MAILCAP_GNOME", SWIG_From_int((int)wxMAILCAP_GNOME)); | |
30891 | PyDict_SetItemString(d,"MAILCAP_ALL", SWIG_From_int((int)wxMAILCAP_ALL)); | |
d55e5bfc RD |
30892 | SWIG_addvarlink(SWIG_globals,(char*)"TheMimeTypesManager",_wrap_TheMimeTypesManager_get, _wrap_TheMimeTypesManager_set); |
30893 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TOOLBAR",_wrap_ART_TOOLBAR_get, _wrap_ART_TOOLBAR_set); | |
30894 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MENU",_wrap_ART_MENU_get, _wrap_ART_MENU_set); | |
30895 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FRAME_ICON",_wrap_ART_FRAME_ICON_get, _wrap_ART_FRAME_ICON_set); | |
30896 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CMN_DIALOG",_wrap_ART_CMN_DIALOG_get, _wrap_ART_CMN_DIALOG_set); | |
30897 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BROWSER",_wrap_ART_HELP_BROWSER_get, _wrap_ART_HELP_BROWSER_set); | |
30898 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MESSAGE_BOX",_wrap_ART_MESSAGE_BOX_get, _wrap_ART_MESSAGE_BOX_set); | |
4cf4100f | 30899 | SWIG_addvarlink(SWIG_globals,(char*)"ART_BUTTON",_wrap_ART_BUTTON_get, _wrap_ART_BUTTON_set); |
d55e5bfc RD |
30900 | SWIG_addvarlink(SWIG_globals,(char*)"ART_OTHER",_wrap_ART_OTHER_get, _wrap_ART_OTHER_set); |
30901 | SWIG_addvarlink(SWIG_globals,(char*)"ART_ADD_BOOKMARK",_wrap_ART_ADD_BOOKMARK_get, _wrap_ART_ADD_BOOKMARK_set); | |
30902 | SWIG_addvarlink(SWIG_globals,(char*)"ART_DEL_BOOKMARK",_wrap_ART_DEL_BOOKMARK_get, _wrap_ART_DEL_BOOKMARK_set); | |
30903 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SIDE_PANEL",_wrap_ART_HELP_SIDE_PANEL_get, _wrap_ART_HELP_SIDE_PANEL_set); | |
30904 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SETTINGS",_wrap_ART_HELP_SETTINGS_get, _wrap_ART_HELP_SETTINGS_set); | |
30905 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BOOK",_wrap_ART_HELP_BOOK_get, _wrap_ART_HELP_BOOK_set); | |
30906 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_FOLDER",_wrap_ART_HELP_FOLDER_get, _wrap_ART_HELP_FOLDER_set); | |
30907 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_PAGE",_wrap_ART_HELP_PAGE_get, _wrap_ART_HELP_PAGE_set); | |
30908 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_BACK",_wrap_ART_GO_BACK_get, _wrap_ART_GO_BACK_set); | |
30909 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_FORWARD",_wrap_ART_GO_FORWARD_get, _wrap_ART_GO_FORWARD_set); | |
30910 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_UP",_wrap_ART_GO_UP_get, _wrap_ART_GO_UP_set); | |
30911 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DOWN",_wrap_ART_GO_DOWN_get, _wrap_ART_GO_DOWN_set); | |
30912 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_TO_PARENT",_wrap_ART_GO_TO_PARENT_get, _wrap_ART_GO_TO_PARENT_set); | |
30913 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_HOME",_wrap_ART_GO_HOME_get, _wrap_ART_GO_HOME_set); | |
30914 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_OPEN",_wrap_ART_FILE_OPEN_get, _wrap_ART_FILE_OPEN_set); | |
30915 | SWIG_addvarlink(SWIG_globals,(char*)"ART_PRINT",_wrap_ART_PRINT_get, _wrap_ART_PRINT_set); | |
30916 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP",_wrap_ART_HELP_get, _wrap_ART_HELP_set); | |
30917 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TIP",_wrap_ART_TIP_get, _wrap_ART_TIP_set); | |
30918 | SWIG_addvarlink(SWIG_globals,(char*)"ART_REPORT_VIEW",_wrap_ART_REPORT_VIEW_get, _wrap_ART_REPORT_VIEW_set); | |
30919 | SWIG_addvarlink(SWIG_globals,(char*)"ART_LIST_VIEW",_wrap_ART_LIST_VIEW_get, _wrap_ART_LIST_VIEW_set); | |
30920 | SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW_DIR",_wrap_ART_NEW_DIR_get, _wrap_ART_NEW_DIR_set); | |
f78cc896 RD |
30921 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HARDDISK",_wrap_ART_HARDDISK_get, _wrap_ART_HARDDISK_set); |
30922 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FLOPPY",_wrap_ART_FLOPPY_get, _wrap_ART_FLOPPY_set); | |
30923 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CDROM",_wrap_ART_CDROM_get, _wrap_ART_CDROM_set); | |
30924 | SWIG_addvarlink(SWIG_globals,(char*)"ART_REMOVABLE",_wrap_ART_REMOVABLE_get, _wrap_ART_REMOVABLE_set); | |
d55e5bfc | 30925 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER",_wrap_ART_FOLDER_get, _wrap_ART_FOLDER_set); |
f78cc896 | 30926 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER_OPEN",_wrap_ART_FOLDER_OPEN_get, _wrap_ART_FOLDER_OPEN_set); |
d55e5bfc RD |
30927 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DIR_UP",_wrap_ART_GO_DIR_UP_get, _wrap_ART_GO_DIR_UP_set); |
30928 | SWIG_addvarlink(SWIG_globals,(char*)"ART_EXECUTABLE_FILE",_wrap_ART_EXECUTABLE_FILE_get, _wrap_ART_EXECUTABLE_FILE_set); | |
30929 | SWIG_addvarlink(SWIG_globals,(char*)"ART_NORMAL_FILE",_wrap_ART_NORMAL_FILE_get, _wrap_ART_NORMAL_FILE_set); | |
30930 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TICK_MARK",_wrap_ART_TICK_MARK_get, _wrap_ART_TICK_MARK_set); | |
30931 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CROSS_MARK",_wrap_ART_CROSS_MARK_get, _wrap_ART_CROSS_MARK_set); | |
30932 | SWIG_addvarlink(SWIG_globals,(char*)"ART_ERROR",_wrap_ART_ERROR_get, _wrap_ART_ERROR_set); | |
30933 | SWIG_addvarlink(SWIG_globals,(char*)"ART_QUESTION",_wrap_ART_QUESTION_get, _wrap_ART_QUESTION_set); | |
30934 | SWIG_addvarlink(SWIG_globals,(char*)"ART_WARNING",_wrap_ART_WARNING_get, _wrap_ART_WARNING_set); | |
30935 | SWIG_addvarlink(SWIG_globals,(char*)"ART_INFORMATION",_wrap_ART_INFORMATION_get, _wrap_ART_INFORMATION_set); | |
30936 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MISSING_IMAGE",_wrap_ART_MISSING_IMAGE_get, _wrap_ART_MISSING_IMAGE_set); | |
30937 | ||
30938 | wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider"); | |
30939 | ||
c370783e RD |
30940 | PyDict_SetItemString(d,"CONFIG_USE_LOCAL_FILE", SWIG_From_int((int)wxCONFIG_USE_LOCAL_FILE)); |
30941 | PyDict_SetItemString(d,"CONFIG_USE_GLOBAL_FILE", SWIG_From_int((int)wxCONFIG_USE_GLOBAL_FILE)); | |
30942 | PyDict_SetItemString(d,"CONFIG_USE_RELATIVE_PATH", SWIG_From_int((int)wxCONFIG_USE_RELATIVE_PATH)); | |
30943 | PyDict_SetItemString(d,"CONFIG_USE_NO_ESCAPE_CHARACTERS", SWIG_From_int((int)wxCONFIG_USE_NO_ESCAPE_CHARACTERS)); | |
30944 | PyDict_SetItemString(d,"ConfigBase_Type_Unknown", SWIG_From_int((int)wxConfigBase::Type_Unknown)); | |
30945 | PyDict_SetItemString(d,"ConfigBase_Type_String", SWIG_From_int((int)wxConfigBase::Type_String)); | |
30946 | PyDict_SetItemString(d,"ConfigBase_Type_Boolean", SWIG_From_int((int)wxConfigBase::Type_Boolean)); | |
30947 | PyDict_SetItemString(d,"ConfigBase_Type_Integer", SWIG_From_int((int)wxConfigBase::Type_Integer)); | |
30948 | PyDict_SetItemString(d,"ConfigBase_Type_Float", SWIG_From_int((int)wxConfigBase::Type_Float)); | |
d55e5bfc RD |
30949 | SWIG_addvarlink(SWIG_globals,(char*)"DateFormatStr",_wrap_DateFormatStr_get, _wrap_DateFormatStr_set); |
30950 | SWIG_addvarlink(SWIG_globals,(char*)"TimeSpanFormatStr",_wrap_TimeSpanFormatStr_get, _wrap_TimeSpanFormatStr_set); | |
c370783e RD |
30951 | PyDict_SetItemString(d,"DateTime_Local", SWIG_From_int((int)wxDateTime::Local)); |
30952 | PyDict_SetItemString(d,"DateTime_GMT_12", SWIG_From_int((int)wxDateTime::GMT_12)); | |
30953 | PyDict_SetItemString(d,"DateTime_GMT_11", SWIG_From_int((int)wxDateTime::GMT_11)); | |
30954 | PyDict_SetItemString(d,"DateTime_GMT_10", SWIG_From_int((int)wxDateTime::GMT_10)); | |
30955 | PyDict_SetItemString(d,"DateTime_GMT_9", SWIG_From_int((int)wxDateTime::GMT_9)); | |
30956 | PyDict_SetItemString(d,"DateTime_GMT_8", SWIG_From_int((int)wxDateTime::GMT_8)); | |
30957 | PyDict_SetItemString(d,"DateTime_GMT_7", SWIG_From_int((int)wxDateTime::GMT_7)); | |
30958 | PyDict_SetItemString(d,"DateTime_GMT_6", SWIG_From_int((int)wxDateTime::GMT_6)); | |
30959 | PyDict_SetItemString(d,"DateTime_GMT_5", SWIG_From_int((int)wxDateTime::GMT_5)); | |
30960 | PyDict_SetItemString(d,"DateTime_GMT_4", SWIG_From_int((int)wxDateTime::GMT_4)); | |
30961 | PyDict_SetItemString(d,"DateTime_GMT_3", SWIG_From_int((int)wxDateTime::GMT_3)); | |
30962 | PyDict_SetItemString(d,"DateTime_GMT_2", SWIG_From_int((int)wxDateTime::GMT_2)); | |
30963 | PyDict_SetItemString(d,"DateTime_GMT_1", SWIG_From_int((int)wxDateTime::GMT_1)); | |
30964 | PyDict_SetItemString(d,"DateTime_GMT0", SWIG_From_int((int)wxDateTime::GMT0)); | |
30965 | PyDict_SetItemString(d,"DateTime_GMT1", SWIG_From_int((int)wxDateTime::GMT1)); | |
30966 | PyDict_SetItemString(d,"DateTime_GMT2", SWIG_From_int((int)wxDateTime::GMT2)); | |
30967 | PyDict_SetItemString(d,"DateTime_GMT3", SWIG_From_int((int)wxDateTime::GMT3)); | |
30968 | PyDict_SetItemString(d,"DateTime_GMT4", SWIG_From_int((int)wxDateTime::GMT4)); | |
30969 | PyDict_SetItemString(d,"DateTime_GMT5", SWIG_From_int((int)wxDateTime::GMT5)); | |
30970 | PyDict_SetItemString(d,"DateTime_GMT6", SWIG_From_int((int)wxDateTime::GMT6)); | |
30971 | PyDict_SetItemString(d,"DateTime_GMT7", SWIG_From_int((int)wxDateTime::GMT7)); | |
30972 | PyDict_SetItemString(d,"DateTime_GMT8", SWIG_From_int((int)wxDateTime::GMT8)); | |
30973 | PyDict_SetItemString(d,"DateTime_GMT9", SWIG_From_int((int)wxDateTime::GMT9)); | |
30974 | PyDict_SetItemString(d,"DateTime_GMT10", SWIG_From_int((int)wxDateTime::GMT10)); | |
30975 | PyDict_SetItemString(d,"DateTime_GMT11", SWIG_From_int((int)wxDateTime::GMT11)); | |
30976 | PyDict_SetItemString(d,"DateTime_GMT12", SWIG_From_int((int)wxDateTime::GMT12)); | |
30977 | PyDict_SetItemString(d,"DateTime_WET", SWIG_From_int((int)wxDateTime::WET)); | |
30978 | PyDict_SetItemString(d,"DateTime_WEST", SWIG_From_int((int)wxDateTime::WEST)); | |
30979 | PyDict_SetItemString(d,"DateTime_CET", SWIG_From_int((int)wxDateTime::CET)); | |
30980 | PyDict_SetItemString(d,"DateTime_CEST", SWIG_From_int((int)wxDateTime::CEST)); | |
30981 | PyDict_SetItemString(d,"DateTime_EET", SWIG_From_int((int)wxDateTime::EET)); | |
30982 | PyDict_SetItemString(d,"DateTime_EEST", SWIG_From_int((int)wxDateTime::EEST)); | |
30983 | PyDict_SetItemString(d,"DateTime_MSK", SWIG_From_int((int)wxDateTime::MSK)); | |
30984 | PyDict_SetItemString(d,"DateTime_MSD", SWIG_From_int((int)wxDateTime::MSD)); | |
30985 | PyDict_SetItemString(d,"DateTime_AST", SWIG_From_int((int)wxDateTime::AST)); | |
30986 | PyDict_SetItemString(d,"DateTime_ADT", SWIG_From_int((int)wxDateTime::ADT)); | |
30987 | PyDict_SetItemString(d,"DateTime_EST", SWIG_From_int((int)wxDateTime::EST)); | |
30988 | PyDict_SetItemString(d,"DateTime_EDT", SWIG_From_int((int)wxDateTime::EDT)); | |
30989 | PyDict_SetItemString(d,"DateTime_CST", SWIG_From_int((int)wxDateTime::CST)); | |
30990 | PyDict_SetItemString(d,"DateTime_CDT", SWIG_From_int((int)wxDateTime::CDT)); | |
30991 | PyDict_SetItemString(d,"DateTime_MST", SWIG_From_int((int)wxDateTime::MST)); | |
30992 | PyDict_SetItemString(d,"DateTime_MDT", SWIG_From_int((int)wxDateTime::MDT)); | |
30993 | PyDict_SetItemString(d,"DateTime_PST", SWIG_From_int((int)wxDateTime::PST)); | |
30994 | PyDict_SetItemString(d,"DateTime_PDT", SWIG_From_int((int)wxDateTime::PDT)); | |
30995 | PyDict_SetItemString(d,"DateTime_HST", SWIG_From_int((int)wxDateTime::HST)); | |
30996 | PyDict_SetItemString(d,"DateTime_AKST", SWIG_From_int((int)wxDateTime::AKST)); | |
30997 | PyDict_SetItemString(d,"DateTime_AKDT", SWIG_From_int((int)wxDateTime::AKDT)); | |
30998 | PyDict_SetItemString(d,"DateTime_A_WST", SWIG_From_int((int)wxDateTime::A_WST)); | |
30999 | PyDict_SetItemString(d,"DateTime_A_CST", SWIG_From_int((int)wxDateTime::A_CST)); | |
31000 | PyDict_SetItemString(d,"DateTime_A_EST", SWIG_From_int((int)wxDateTime::A_EST)); | |
31001 | PyDict_SetItemString(d,"DateTime_A_ESST", SWIG_From_int((int)wxDateTime::A_ESST)); | |
31002 | PyDict_SetItemString(d,"DateTime_UTC", SWIG_From_int((int)wxDateTime::UTC)); | |
31003 | PyDict_SetItemString(d,"DateTime_Gregorian", SWIG_From_int((int)wxDateTime::Gregorian)); | |
31004 | PyDict_SetItemString(d,"DateTime_Julian", SWIG_From_int((int)wxDateTime::Julian)); | |
31005 | PyDict_SetItemString(d,"DateTime_Gr_Unknown", SWIG_From_int((int)wxDateTime::Gr_Unknown)); | |
31006 | PyDict_SetItemString(d,"DateTime_Gr_Standard", SWIG_From_int((int)wxDateTime::Gr_Standard)); | |
31007 | PyDict_SetItemString(d,"DateTime_Gr_Alaska", SWIG_From_int((int)wxDateTime::Gr_Alaska)); | |
31008 | PyDict_SetItemString(d,"DateTime_Gr_Albania", SWIG_From_int((int)wxDateTime::Gr_Albania)); | |
31009 | PyDict_SetItemString(d,"DateTime_Gr_Austria", SWIG_From_int((int)wxDateTime::Gr_Austria)); | |
31010 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Brixen", SWIG_From_int((int)wxDateTime::Gr_Austria_Brixen)); | |
31011 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Salzburg", SWIG_From_int((int)wxDateTime::Gr_Austria_Salzburg)); | |
31012 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Tyrol", SWIG_From_int((int)wxDateTime::Gr_Austria_Tyrol)); | |
31013 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Carinthia", SWIG_From_int((int)wxDateTime::Gr_Austria_Carinthia)); | |
31014 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Styria", SWIG_From_int((int)wxDateTime::Gr_Austria_Styria)); | |
31015 | PyDict_SetItemString(d,"DateTime_Gr_Belgium", SWIG_From_int((int)wxDateTime::Gr_Belgium)); | |
31016 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria", SWIG_From_int((int)wxDateTime::Gr_Bulgaria)); | |
31017 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_1", SWIG_From_int((int)wxDateTime::Gr_Bulgaria_1)); | |
31018 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_2", SWIG_From_int((int)wxDateTime::Gr_Bulgaria_2)); | |
31019 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_3", SWIG_From_int((int)wxDateTime::Gr_Bulgaria_3)); | |
31020 | PyDict_SetItemString(d,"DateTime_Gr_Canada", SWIG_From_int((int)wxDateTime::Gr_Canada)); | |
31021 | PyDict_SetItemString(d,"DateTime_Gr_China", SWIG_From_int((int)wxDateTime::Gr_China)); | |
31022 | PyDict_SetItemString(d,"DateTime_Gr_China_1", SWIG_From_int((int)wxDateTime::Gr_China_1)); | |
31023 | PyDict_SetItemString(d,"DateTime_Gr_China_2", SWIG_From_int((int)wxDateTime::Gr_China_2)); | |
31024 | PyDict_SetItemString(d,"DateTime_Gr_Czechoslovakia", SWIG_From_int((int)wxDateTime::Gr_Czechoslovakia)); | |
31025 | PyDict_SetItemString(d,"DateTime_Gr_Denmark", SWIG_From_int((int)wxDateTime::Gr_Denmark)); | |
31026 | PyDict_SetItemString(d,"DateTime_Gr_Egypt", SWIG_From_int((int)wxDateTime::Gr_Egypt)); | |
31027 | PyDict_SetItemString(d,"DateTime_Gr_Estonia", SWIG_From_int((int)wxDateTime::Gr_Estonia)); | |
31028 | PyDict_SetItemString(d,"DateTime_Gr_Finland", SWIG_From_int((int)wxDateTime::Gr_Finland)); | |
31029 | PyDict_SetItemString(d,"DateTime_Gr_France", SWIG_From_int((int)wxDateTime::Gr_France)); | |
31030 | PyDict_SetItemString(d,"DateTime_Gr_France_Alsace", SWIG_From_int((int)wxDateTime::Gr_France_Alsace)); | |
31031 | PyDict_SetItemString(d,"DateTime_Gr_France_Lorraine", SWIG_From_int((int)wxDateTime::Gr_France_Lorraine)); | |
31032 | PyDict_SetItemString(d,"DateTime_Gr_France_Strasbourg", SWIG_From_int((int)wxDateTime::Gr_France_Strasbourg)); | |
31033 | PyDict_SetItemString(d,"DateTime_Gr_Germany", SWIG_From_int((int)wxDateTime::Gr_Germany)); | |
31034 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Catholic", SWIG_From_int((int)wxDateTime::Gr_Germany_Catholic)); | |
31035 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Prussia", SWIG_From_int((int)wxDateTime::Gr_Germany_Prussia)); | |
31036 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Protestant", SWIG_From_int((int)wxDateTime::Gr_Germany_Protestant)); | |
31037 | PyDict_SetItemString(d,"DateTime_Gr_GreatBritain", SWIG_From_int((int)wxDateTime::Gr_GreatBritain)); | |
31038 | PyDict_SetItemString(d,"DateTime_Gr_Greece", SWIG_From_int((int)wxDateTime::Gr_Greece)); | |
31039 | PyDict_SetItemString(d,"DateTime_Gr_Hungary", SWIG_From_int((int)wxDateTime::Gr_Hungary)); | |
31040 | PyDict_SetItemString(d,"DateTime_Gr_Ireland", SWIG_From_int((int)wxDateTime::Gr_Ireland)); | |
31041 | PyDict_SetItemString(d,"DateTime_Gr_Italy", SWIG_From_int((int)wxDateTime::Gr_Italy)); | |
31042 | PyDict_SetItemString(d,"DateTime_Gr_Japan", SWIG_From_int((int)wxDateTime::Gr_Japan)); | |
31043 | PyDict_SetItemString(d,"DateTime_Gr_Japan_1", SWIG_From_int((int)wxDateTime::Gr_Japan_1)); | |
31044 | PyDict_SetItemString(d,"DateTime_Gr_Japan_2", SWIG_From_int((int)wxDateTime::Gr_Japan_2)); | |
31045 | PyDict_SetItemString(d,"DateTime_Gr_Japan_3", SWIG_From_int((int)wxDateTime::Gr_Japan_3)); | |
31046 | PyDict_SetItemString(d,"DateTime_Gr_Latvia", SWIG_From_int((int)wxDateTime::Gr_Latvia)); | |
31047 | PyDict_SetItemString(d,"DateTime_Gr_Lithuania", SWIG_From_int((int)wxDateTime::Gr_Lithuania)); | |
31048 | PyDict_SetItemString(d,"DateTime_Gr_Luxemburg", SWIG_From_int((int)wxDateTime::Gr_Luxemburg)); | |
31049 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands", SWIG_From_int((int)wxDateTime::Gr_Netherlands)); | |
31050 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Groningen", SWIG_From_int((int)wxDateTime::Gr_Netherlands_Groningen)); | |
31051 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Gelderland", SWIG_From_int((int)wxDateTime::Gr_Netherlands_Gelderland)); | |
31052 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Utrecht", SWIG_From_int((int)wxDateTime::Gr_Netherlands_Utrecht)); | |
31053 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Friesland", SWIG_From_int((int)wxDateTime::Gr_Netherlands_Friesland)); | |
31054 | PyDict_SetItemString(d,"DateTime_Gr_Norway", SWIG_From_int((int)wxDateTime::Gr_Norway)); | |
31055 | PyDict_SetItemString(d,"DateTime_Gr_Poland", SWIG_From_int((int)wxDateTime::Gr_Poland)); | |
31056 | PyDict_SetItemString(d,"DateTime_Gr_Portugal", SWIG_From_int((int)wxDateTime::Gr_Portugal)); | |
31057 | PyDict_SetItemString(d,"DateTime_Gr_Romania", SWIG_From_int((int)wxDateTime::Gr_Romania)); | |
31058 | PyDict_SetItemString(d,"DateTime_Gr_Russia", SWIG_From_int((int)wxDateTime::Gr_Russia)); | |
31059 | PyDict_SetItemString(d,"DateTime_Gr_Scotland", SWIG_From_int((int)wxDateTime::Gr_Scotland)); | |
31060 | PyDict_SetItemString(d,"DateTime_Gr_Spain", SWIG_From_int((int)wxDateTime::Gr_Spain)); | |
31061 | PyDict_SetItemString(d,"DateTime_Gr_Sweden", SWIG_From_int((int)wxDateTime::Gr_Sweden)); | |
31062 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland", SWIG_From_int((int)wxDateTime::Gr_Switzerland)); | |
31063 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Catholic", SWIG_From_int((int)wxDateTime::Gr_Switzerland_Catholic)); | |
31064 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Protestant", SWIG_From_int((int)wxDateTime::Gr_Switzerland_Protestant)); | |
31065 | PyDict_SetItemString(d,"DateTime_Gr_Turkey", SWIG_From_int((int)wxDateTime::Gr_Turkey)); | |
31066 | PyDict_SetItemString(d,"DateTime_Gr_USA", SWIG_From_int((int)wxDateTime::Gr_USA)); | |
31067 | PyDict_SetItemString(d,"DateTime_Gr_Wales", SWIG_From_int((int)wxDateTime::Gr_Wales)); | |
31068 | PyDict_SetItemString(d,"DateTime_Gr_Yugoslavia", SWIG_From_int((int)wxDateTime::Gr_Yugoslavia)); | |
31069 | PyDict_SetItemString(d,"DateTime_Country_Unknown", SWIG_From_int((int)wxDateTime::Country_Unknown)); | |
31070 | PyDict_SetItemString(d,"DateTime_Country_Default", SWIG_From_int((int)wxDateTime::Country_Default)); | |
31071 | PyDict_SetItemString(d,"DateTime_Country_WesternEurope_Start", SWIG_From_int((int)wxDateTime::Country_WesternEurope_Start)); | |
31072 | PyDict_SetItemString(d,"DateTime_Country_EEC", SWIG_From_int((int)wxDateTime::Country_EEC)); | |
31073 | PyDict_SetItemString(d,"DateTime_France", SWIG_From_int((int)wxDateTime::France)); | |
31074 | PyDict_SetItemString(d,"DateTime_Germany", SWIG_From_int((int)wxDateTime::Germany)); | |
31075 | PyDict_SetItemString(d,"DateTime_UK", SWIG_From_int((int)wxDateTime::UK)); | |
31076 | PyDict_SetItemString(d,"DateTime_Country_WesternEurope_End", SWIG_From_int((int)wxDateTime::Country_WesternEurope_End)); | |
31077 | PyDict_SetItemString(d,"DateTime_Russia", SWIG_From_int((int)wxDateTime::Russia)); | |
31078 | PyDict_SetItemString(d,"DateTime_USA", SWIG_From_int((int)wxDateTime::USA)); | |
31079 | PyDict_SetItemString(d,"DateTime_Jan", SWIG_From_int((int)wxDateTime::Jan)); | |
31080 | PyDict_SetItemString(d,"DateTime_Feb", SWIG_From_int((int)wxDateTime::Feb)); | |
31081 | PyDict_SetItemString(d,"DateTime_Mar", SWIG_From_int((int)wxDateTime::Mar)); | |
31082 | PyDict_SetItemString(d,"DateTime_Apr", SWIG_From_int((int)wxDateTime::Apr)); | |
31083 | PyDict_SetItemString(d,"DateTime_May", SWIG_From_int((int)wxDateTime::May)); | |
31084 | PyDict_SetItemString(d,"DateTime_Jun", SWIG_From_int((int)wxDateTime::Jun)); | |
31085 | PyDict_SetItemString(d,"DateTime_Jul", SWIG_From_int((int)wxDateTime::Jul)); | |
31086 | PyDict_SetItemString(d,"DateTime_Aug", SWIG_From_int((int)wxDateTime::Aug)); | |
31087 | PyDict_SetItemString(d,"DateTime_Sep", SWIG_From_int((int)wxDateTime::Sep)); | |
31088 | PyDict_SetItemString(d,"DateTime_Oct", SWIG_From_int((int)wxDateTime::Oct)); | |
31089 | PyDict_SetItemString(d,"DateTime_Nov", SWIG_From_int((int)wxDateTime::Nov)); | |
31090 | PyDict_SetItemString(d,"DateTime_Dec", SWIG_From_int((int)wxDateTime::Dec)); | |
31091 | PyDict_SetItemString(d,"DateTime_Inv_Month", SWIG_From_int((int)wxDateTime::Inv_Month)); | |
31092 | PyDict_SetItemString(d,"DateTime_Sun", SWIG_From_int((int)wxDateTime::Sun)); | |
31093 | PyDict_SetItemString(d,"DateTime_Mon", SWIG_From_int((int)wxDateTime::Mon)); | |
31094 | PyDict_SetItemString(d,"DateTime_Tue", SWIG_From_int((int)wxDateTime::Tue)); | |
31095 | PyDict_SetItemString(d,"DateTime_Wed", SWIG_From_int((int)wxDateTime::Wed)); | |
31096 | PyDict_SetItemString(d,"DateTime_Thu", SWIG_From_int((int)wxDateTime::Thu)); | |
31097 | PyDict_SetItemString(d,"DateTime_Fri", SWIG_From_int((int)wxDateTime::Fri)); | |
31098 | PyDict_SetItemString(d,"DateTime_Sat", SWIG_From_int((int)wxDateTime::Sat)); | |
31099 | PyDict_SetItemString(d,"DateTime_Inv_WeekDay", SWIG_From_int((int)wxDateTime::Inv_WeekDay)); | |
31100 | PyDict_SetItemString(d,"DateTime_Inv_Year", SWIG_From_int((int)wxDateTime::Inv_Year)); | |
31101 | PyDict_SetItemString(d,"DateTime_Name_Full", SWIG_From_int((int)wxDateTime::Name_Full)); | |
31102 | PyDict_SetItemString(d,"DateTime_Name_Abbr", SWIG_From_int((int)wxDateTime::Name_Abbr)); | |
31103 | PyDict_SetItemString(d,"DateTime_Default_First", SWIG_From_int((int)wxDateTime::Default_First)); | |
31104 | PyDict_SetItemString(d,"DateTime_Monday_First", SWIG_From_int((int)wxDateTime::Monday_First)); | |
31105 | PyDict_SetItemString(d,"DateTime_Sunday_First", SWIG_From_int((int)wxDateTime::Sunday_First)); | |
d55e5bfc | 31106 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultDateTime",_wrap_DefaultDateTime_get, _wrap_DefaultDateTime_set); |
c370783e RD |
31107 | PyDict_SetItemString(d,"DF_INVALID", SWIG_From_int((int)wxDF_INVALID)); |
31108 | PyDict_SetItemString(d,"DF_TEXT", SWIG_From_int((int)wxDF_TEXT)); | |
31109 | PyDict_SetItemString(d,"DF_BITMAP", SWIG_From_int((int)wxDF_BITMAP)); | |
31110 | PyDict_SetItemString(d,"DF_METAFILE", SWIG_From_int((int)wxDF_METAFILE)); | |
31111 | PyDict_SetItemString(d,"DF_SYLK", SWIG_From_int((int)wxDF_SYLK)); | |
31112 | PyDict_SetItemString(d,"DF_DIF", SWIG_From_int((int)wxDF_DIF)); | |
31113 | PyDict_SetItemString(d,"DF_TIFF", SWIG_From_int((int)wxDF_TIFF)); | |
31114 | PyDict_SetItemString(d,"DF_OEMTEXT", SWIG_From_int((int)wxDF_OEMTEXT)); | |
31115 | PyDict_SetItemString(d,"DF_DIB", SWIG_From_int((int)wxDF_DIB)); | |
31116 | PyDict_SetItemString(d,"DF_PALETTE", SWIG_From_int((int)wxDF_PALETTE)); | |
31117 | PyDict_SetItemString(d,"DF_PENDATA", SWIG_From_int((int)wxDF_PENDATA)); | |
31118 | PyDict_SetItemString(d,"DF_RIFF", SWIG_From_int((int)wxDF_RIFF)); | |
31119 | PyDict_SetItemString(d,"DF_WAVE", SWIG_From_int((int)wxDF_WAVE)); | |
31120 | PyDict_SetItemString(d,"DF_UNICODETEXT", SWIG_From_int((int)wxDF_UNICODETEXT)); | |
31121 | PyDict_SetItemString(d,"DF_ENHMETAFILE", SWIG_From_int((int)wxDF_ENHMETAFILE)); | |
31122 | PyDict_SetItemString(d,"DF_FILENAME", SWIG_From_int((int)wxDF_FILENAME)); | |
31123 | PyDict_SetItemString(d,"DF_LOCALE", SWIG_From_int((int)wxDF_LOCALE)); | |
31124 | PyDict_SetItemString(d,"DF_PRIVATE", SWIG_From_int((int)wxDF_PRIVATE)); | |
31125 | PyDict_SetItemString(d,"DF_HTML", SWIG_From_int((int)wxDF_HTML)); | |
31126 | PyDict_SetItemString(d,"DF_MAX", SWIG_From_int((int)wxDF_MAX)); | |
d55e5bfc | 31127 | SWIG_addvarlink(SWIG_globals,(char*)"FormatInvalid",_wrap_FormatInvalid_get, _wrap_FormatInvalid_set); |
c370783e RD |
31128 | PyDict_SetItemString(d,"DataObject_Get", SWIG_From_int((int)wxDataObject::Get)); |
31129 | PyDict_SetItemString(d,"DataObject_Set", SWIG_From_int((int)wxDataObject::Set)); | |
31130 | PyDict_SetItemString(d,"DataObject_Both", SWIG_From_int((int)wxDataObject::Both)); | |
31131 | PyDict_SetItemString(d,"Drag_CopyOnly", SWIG_From_int((int)wxDrag_CopyOnly)); | |
31132 | PyDict_SetItemString(d,"Drag_AllowMove", SWIG_From_int((int)wxDrag_AllowMove)); | |
31133 | PyDict_SetItemString(d,"Drag_DefaultMove", SWIG_From_int((int)wxDrag_DefaultMove)); | |
31134 | PyDict_SetItemString(d,"DragError", SWIG_From_int((int)wxDragError)); | |
31135 | PyDict_SetItemString(d,"DragNone", SWIG_From_int((int)wxDragNone)); | |
31136 | PyDict_SetItemString(d,"DragCopy", SWIG_From_int((int)wxDragCopy)); | |
31137 | PyDict_SetItemString(d,"DragMove", SWIG_From_int((int)wxDragMove)); | |
31138 | PyDict_SetItemString(d,"DragLink", SWIG_From_int((int)wxDragLink)); | |
31139 | PyDict_SetItemString(d,"DragCancel", SWIG_From_int((int)wxDragCancel)); | |
d55e5bfc RD |
31140 | |
31141 | wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource"); | |
31142 | wxPyPtrTypeMap_Add("wxDropTarget", "wxPyDropTarget"); | |
31143 | wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget"); | |
31144 | wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget"); | |
31145 | ||
d55e5bfc RD |
31146 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultVideoMode",_wrap_DefaultVideoMode_get, _wrap_DefaultVideoMode_set); |
31147 | } | |
31148 |