]>
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] | |
0346c964 RD |
238 | #define SWIGTYPE_p_wxPyBitmapDataObject swig_types[27] |
239 | #define SWIGTYPE_p_wxPyTextDataObject swig_types[28] | |
240 | #define SWIGTYPE_p_wxBitmapDataObject swig_types[29] | |
241 | #define SWIGTYPE_p_wxTextDataObject swig_types[30] | |
242 | #define SWIGTYPE_p_wxDataObject 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] | |
281 | #define SWIGTYPE_p_wxWindow swig_types[70] | |
282 | #define SWIGTYPE_p_wxString swig_types[71] | |
283 | #define SWIGTYPE_p_wxPyProcess swig_types[72] | |
284 | #define SWIGTYPE_p_wxBitmap swig_types[73] | |
285 | #define SWIGTYPE_p_wxConfig swig_types[74] | |
286 | #define SWIGTYPE_p_wxChar swig_types[75] | |
287 | #define SWIGTYPE_p_wxBusyInfo swig_types[76] | |
288 | #define SWIGTYPE_p_wxPyDropTarget swig_types[77] | |
289 | #define SWIGTYPE_p_wxPyTextDropTarget swig_types[78] | |
290 | #define SWIGTYPE_p_wxPyFileDropTarget swig_types[79] | |
291 | #define SWIGTYPE_p_wxProcessEvent swig_types[80] | |
292 | #define SWIGTYPE_p_wxPyLog swig_types[81] | |
293 | #define SWIGTYPE_p_wxLogNull swig_types[82] | |
294 | #define SWIGTYPE_p_wxColour swig_types[83] | |
295 | #define SWIGTYPE_p_wxConfigPathChanger swig_types[84] | |
296 | #define SWIGTYPE_p_wxPyTimer swig_types[85] | |
297 | #define SWIGTYPE_p_wxDateSpan swig_types[86] | |
298 | static swig_type_info *swig_types[88]; | |
d55e5bfc RD |
299 | |
300 | /* -------- TYPES TABLE (END) -------- */ | |
301 | ||
302 | ||
303 | /*----------------------------------------------- | |
304 | @(target):= _misc_.so | |
305 | ------------------------------------------------*/ | |
306 | #define SWIG_init init_misc_ | |
307 | ||
308 | #define SWIG_name "_misc_" | |
309 | ||
c370783e RD |
310 | /* Auxiliar swig macros that appear in the header */ |
311 | ||
312 | #define SWIG_OLDOBJ 1 | |
313 | #define SWIG_NEWOBJ SWIG_OLDOBJ + 1 | |
314 | #define SWIG_PYSTR SWIG_NEWOBJ + 1 | |
d55e5bfc RD |
315 | |
316 | #ifdef __cplusplus | |
317 | #define SWIGSTATICINLINE(a) static inline a | |
318 | #define SWIGSTATIC(a) static a | |
c370783e RD |
319 | #define swig_new_array(size,Type) (new Type[(size)]) |
320 | #define swig_delete(cptr) delete cptr | |
d55e5bfc | 321 | #define swig_delete_array(cptr) delete[] cptr |
c370783e RD |
322 | #define swig_const_cast(a,Type) const_cast<Type >(a) |
323 | #define swig_static_cast(a,Type) static_cast<Type >(a) | |
324 | #define swig_reinterpret_cast(a,Type) reinterpret_cast<Type >(a) | |
325 | #define swig_new_copy(ptr,Type) (new Type(*ptr)) | |
326 | #define swig_numeric_cast(a,Type) static_cast<Type >(a) | |
d55e5bfc RD |
327 | |
328 | #else /* C case */ | |
329 | ||
330 | #define SWIGSTATICINLINE(a) static a | |
331 | #define SWIGSTATIC(a) static a | |
c370783e RD |
332 | #define swig_new_array(size,Type) ((Type*) malloc((size)*sizeof(Type))) |
333 | #define swig_delete(cptr) free((char*)cptr) | |
d55e5bfc | 334 | #define swig_delete_array(cptr) free((char*)cptr) |
c370783e RD |
335 | #define swig_const_cast(a,Type) (Type)(a) |
336 | #define swig_static_cast(a,Type) (Type)(a) | |
337 | #define swig_reinterpret_cast(a,Type) (Type)(a) | |
338 | #define swig_numeric_cast(a,Type) (Type)(a) | |
339 | #define swig_new_copy(ptr,Type) ((Type*)memcpy(malloc(sizeof(Type)),ptr,sizeof(Type))) | |
d55e5bfc RD |
340 | |
341 | #endif /* __cplusplus */ | |
342 | ||
343 | ||
c370783e RD |
344 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ |
345 | #define SWIG_From_signed_SS_char PyInt_FromLong | |
346 | /*@@*/ | |
347 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
348 | #define SWIG_From_unsigned_SS_char PyInt_FromLong | |
349 | /*@@*/ | |
350 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
351 | #define SWIG_From_short PyInt_FromLong | |
352 | /*@@*/ | |
353 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
354 | #define SWIG_From_unsigned_SS_short PyInt_FromLong | |
355 | /*@@*/ | |
356 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
357 | #define SWIG_From_int PyInt_FromLong | |
358 | /*@@*/ | |
359 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
360 | #define SWIG_From_long PyInt_FromLong | |
361 | /*@@*/ | |
362 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
363 | #define SWIG_From_float PyFloat_FromDouble | |
364 | /*@@*/ | |
365 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
366 | #define SWIG_From_double PyFloat_FromDouble | |
367 | /*@@*/ | |
d55e5bfc RD |
368 | |
369 | ||
370 | #include "wx/wxPython/wxPython.h" | |
371 | #include "wx/wxPython/pyclasses.h" | |
0439c23b | 372 | #include "wx/wxPython/pyistream.h" |
d55e5bfc RD |
373 | |
374 | static const wxString wxPyEmptyString(wxEmptyString); | |
375 | ||
376 | ||
377 | ||
378 | #include <limits.h> | |
379 | ||
380 | ||
c370783e RD |
381 | SWIGSTATICINLINE(int) |
382 | SWIG_CheckLongInRange(long value, long min_value, long max_value, | |
383 | const char *errmsg) | |
d55e5bfc | 384 | { |
c370783e RD |
385 | if (value < min_value) { |
386 | if (errmsg) { | |
387 | PyErr_Format(PyExc_OverflowError, | |
388 | "value %ld is less than '%s' minimum %ld", | |
389 | value, errmsg, min_value); | |
390 | } | |
391 | return 0; | |
392 | } else if (value > max_value) { | |
393 | if (errmsg) { | |
394 | PyErr_Format(PyExc_OverflowError, | |
395 | "value %ld is greater than '%s' maximum %ld", | |
396 | value, errmsg, max_value); | |
d55e5bfc | 397 | } |
c370783e | 398 | return 0; |
d55e5bfc | 399 | } |
c370783e | 400 | return 1; |
d55e5bfc RD |
401 | } |
402 | ||
403 | ||
c370783e RD |
404 | // See my_fragments.i |
405 | SWIGSTATICINLINE(int) | |
406 | SWIG_AsVal_long(PyObject* obj, long* val) | |
d55e5bfc | 407 | { |
c370783e RD |
408 | if (PyNumber_Check(obj)) { |
409 | if (val) *val = PyInt_AsLong(obj); | |
410 | return 1; | |
411 | } | |
d55e5bfc RD |
412 | else { |
413 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
414 | obj->ob_type->tp_name); | |
415 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
416 | Py_DECREF(errmsg); | |
d55e5bfc | 417 | } |
c370783e | 418 | return 0; |
d55e5bfc RD |
419 | } |
420 | ||
421 | ||
422 | #if INT_MAX != LONG_MAX | |
423 | SWIGSTATICINLINE(int) | |
c370783e | 424 | SWIG_AsVal_int(PyObject *obj, int *val) |
d55e5bfc | 425 | { |
c370783e RD |
426 | const char* errmsg = val ? "int" : 0; |
427 | long v; | |
428 | if (SWIG_AsVal_long(obj, &v)) { | |
429 | if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) { | |
430 | if (val) *val = swig_numeric_cast(v, int); | |
431 | return 1; | |
432 | } else { | |
433 | return 0; | |
434 | } | |
435 | } else { | |
436 | PyErr_Clear(); | |
437 | } | |
438 | if (val) { | |
439 | PyErr_SetString(PyExc_TypeError, "an int is expected"); | |
440 | } | |
441 | return 0; | |
d55e5bfc RD |
442 | } |
443 | #else | |
c370783e RD |
444 | SWIGSTATICINLINE(int) |
445 | SWIG_AsVal_int(PyObject *obj, int *val) | |
446 | { | |
447 | return SWIG_AsVal_long(obj,(long*)val); | |
448 | } | |
d55e5bfc RD |
449 | #endif |
450 | ||
451 | ||
452 | SWIGSTATICINLINE(int) | |
c370783e | 453 | SWIG_As_int(PyObject* obj) |
d55e5bfc | 454 | { |
c370783e RD |
455 | int v; |
456 | if (!SWIG_AsVal_int(obj, &v)) { | |
457 | /* | |
458 | this is needed to make valgrind/purify happier. the other | |
459 | solution is throw an exception, but since this code should work | |
460 | with plain C .... | |
461 | */ | |
462 | memset((void*)&v, 0, sizeof(int)); | |
d55e5bfc | 463 | } |
c370783e RD |
464 | return v; |
465 | } | |
466 | ||
467 | ||
468 | SWIGSTATICINLINE(int) | |
469 | SWIG_Check_int(PyObject* obj) | |
470 | { | |
471 | return SWIG_AsVal_int(obj, (int*)0); | |
d55e5bfc RD |
472 | } |
473 | ||
629e65c2 | 474 | static const wxString wxPyWINDOW_DEFAULT_VARIANT(wxWINDOW_DEFAULT_VARIANT); |
01ac03ba RD |
475 | |
476 | #include <wx/stockitem.h> | |
477 | ||
d55e5bfc RD |
478 | static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr); |
479 | static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr); | |
480 | static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr); | |
481 | ||
c370783e RD |
482 | SWIGSTATICINLINE(long) |
483 | SWIG_As_long(PyObject* obj) | |
484 | { | |
485 | long v; | |
486 | if (!SWIG_AsVal_long(obj, &v)) { | |
487 | /* | |
488 | this is needed to make valgrind/purify happier. the other | |
489 | solution is throw an exception, but since this code should work | |
490 | with plain C .... | |
491 | */ | |
492 | memset((void*)&v, 0, sizeof(long)); | |
493 | } | |
494 | return v; | |
495 | } | |
496 | ||
497 | ||
d55e5bfc | 498 | SWIGSTATICINLINE(int) |
c370783e | 499 | SWIG_Check_long(PyObject* obj) |
d55e5bfc | 500 | { |
c370783e RD |
501 | return SWIG_AsVal_long(obj, (long*)0); |
502 | } | |
503 | ||
504 | ||
505 | SWIGSTATICINLINE(int) | |
506 | SWIG_AsVal_bool(PyObject *obj, bool *val) | |
507 | { | |
508 | /* if (val) *val = PyObject_IsTrue(obj); return 1; */ | |
509 | if (obj == Py_True) { | |
510 | if (val) *val = true; | |
511 | return 1; | |
512 | } | |
513 | if (obj == Py_False) { | |
514 | if (val) *val = false; | |
d55e5bfc RD |
515 | return 1; |
516 | } | |
c370783e RD |
517 | int res = 0; |
518 | if (SWIG_AsVal_int(obj, &res)) { | |
519 | if (val) *val = (bool)res; | |
520 | return 1; | |
521 | } | |
522 | if (val) { | |
523 | PyErr_SetString(PyExc_TypeError, "a bool is expected"); | |
524 | } | |
525 | return 0; | |
d55e5bfc RD |
526 | } |
527 | ||
528 | ||
529 | SWIGSTATICINLINE(bool) | |
c370783e | 530 | SWIG_As_bool(PyObject* obj) |
d55e5bfc | 531 | { |
c370783e RD |
532 | bool v; |
533 | if (!SWIG_AsVal_bool(obj, &v)) { | |
534 | /* | |
535 | this is needed to make valgrind/purify happier. the other | |
536 | solution is throw an exception, but since this code should work | |
537 | with plain C .... | |
538 | */ | |
539 | memset((void*)&v, 0, sizeof(bool)); | |
540 | } | |
541 | return v; | |
d55e5bfc RD |
542 | } |
543 | ||
c370783e | 544 | |
d55e5bfc | 545 | SWIGSTATICINLINE(int) |
c370783e | 546 | SWIG_Check_bool(PyObject* obj) |
d55e5bfc | 547 | { |
c370783e | 548 | return SWIG_AsVal_bool(obj, (bool*)0); |
d55e5bfc RD |
549 | } |
550 | ||
551 | ||
c370783e | 552 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { |
d55e5bfc RD |
553 | PyObject* o2; |
554 | PyObject* o3; | |
c370783e | 555 | |
d55e5bfc RD |
556 | if (!target) { |
557 | target = o; | |
558 | } else if (target == Py_None) { | |
559 | Py_DECREF(Py_None); | |
560 | target = o; | |
629e65c2 RD |
561 | } else { |
562 | if (!PyTuple_Check(target)) { | |
563 | o2 = target; | |
564 | target = PyTuple_New(1); | |
565 | PyTuple_SetItem(target, 0, o2); | |
566 | } | |
d55e5bfc RD |
567 | o3 = PyTuple_New(1); |
568 | PyTuple_SetItem(o3, 0, o); | |
569 | ||
570 | o2 = target; | |
571 | target = PySequence_Concat(o2, o3); | |
572 | Py_DECREF(o2); | |
573 | Py_DECREF(o3); | |
574 | } | |
575 | return target; | |
629e65c2 | 576 | } |
d55e5bfc RD |
577 | |
578 | ||
c370783e RD |
579 | |
580 | // See my_fragments.i | |
581 | SWIGSTATICINLINE(int) | |
582 | SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val) | |
d55e5bfc | 583 | { |
c370783e RD |
584 | long v = 0; |
585 | if (SWIG_AsVal_long(obj, &v) && v < 0) { | |
586 | PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type"); | |
587 | return 0; | |
d55e5bfc | 588 | } |
c370783e RD |
589 | else if (val) |
590 | *val = (unsigned long)v; | |
591 | return 1; | |
d55e5bfc RD |
592 | } |
593 | ||
594 | ||
c370783e RD |
595 | SWIGSTATICINLINE(unsigned long) |
596 | SWIG_As_unsigned_SS_long(PyObject* obj) | |
d55e5bfc | 597 | { |
c370783e RD |
598 | unsigned long v; |
599 | if (!SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
600 | /* | |
601 | this is needed to make valgrind/purify happier. the other | |
602 | solution is throw an exception, but since this code should work | |
603 | with plain C .... | |
604 | */ | |
605 | memset((void*)&v, 0, sizeof(unsigned long)); | |
d55e5bfc | 606 | } |
c370783e RD |
607 | return v; |
608 | } | |
609 | ||
610 | ||
611 | SWIGSTATICINLINE(int) | |
612 | SWIG_Check_unsigned_SS_long(PyObject* obj) | |
613 | { | |
614 | return SWIG_AsVal_unsigned_SS_long(obj, (unsigned long*)0); | |
d55e5bfc RD |
615 | } |
616 | ||
617 | ||
618 | SWIGSTATICINLINE(PyObject* ) | |
c370783e | 619 | SWIG_From_unsigned_SS_long(unsigned long value) |
d55e5bfc RD |
620 | { |
621 | return (value > LONG_MAX) ? | |
622 | PyLong_FromUnsignedLong(value) | |
c370783e | 623 | : PyInt_FromLong(swig_numeric_cast(value,long)); |
d55e5bfc RD |
624 | } |
625 | ||
626 | ||
627 | bool wxThread_IsMain() { | |
628 | #ifdef WXP_WITH_THREAD | |
629 | return wxThread::IsMain(); | |
630 | #else | |
b411df4a | 631 | return true; |
d55e5bfc RD |
632 | #endif |
633 | } | |
634 | ||
635 | ||
636 | int wxCaret_GetBlinkTime() { | |
637 | return wxCaret::GetBlinkTime(); | |
638 | } | |
639 | ||
640 | void wxCaret_SetBlinkTime(int milliseconds) { | |
641 | wxCaret::SetBlinkTime(milliseconds); | |
642 | } | |
643 | ||
644 | ||
645 | #include <wx/snglinst.h> | |
646 | ||
647 | ||
648 | #ifdef __WXMSW__ | |
649 | #include <wx/msw/private.h> | |
650 | #include <wx/dynload.h> | |
651 | #endif | |
652 | ||
653 | ||
654 | ||
655 | void wxDrawWindowOnDC(wxWindow* window, const wxDC& dc, int method) | |
656 | { | |
657 | #ifdef __WXMSW__ | |
658 | ||
659 | switch (method) | |
660 | { | |
661 | case 1: | |
662 | // This one only partially works. Appears to be an undocumented | |
663 | // "standard" convention that not all widgets adhear to. For | |
664 | // example, for some widgets backgrounds or non-client areas may | |
665 | // not be painted. | |
666 | ::SendMessage(GetHwndOf(window), WM_PAINT, (long)GetHdcOf(dc), 0); | |
667 | break; | |
668 | ||
669 | case 2: | |
670 | // This one works much better, except for on XP. On Win2k nearly | |
671 | // all widgets and their children are captured correctly[**]. On | |
672 | // XP with Themes activated most native widgets draw only | |
673 | // partially, if at all. Without themes it works just like on | |
674 | // Win2k. | |
675 | // | |
676 | // ** For example the radio buttons in a wxRadioBox are not its | |
677 | // children by default, but you can capture it via the panel | |
678 | // instead, or change RADIOBTN_PARENT_IS_RADIOBOX in radiobox.cpp. | |
679 | ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc), | |
680 | PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | | |
681 | PRF_ERASEBKGND | PRF_OWNED ); | |
682 | break; | |
683 | ||
684 | case 3: | |
685 | // This one is only defined in the latest SDK and is only | |
686 | // available on XP. MSDN says it is similar to sending WM_PRINT | |
687 | // so I expect that it will work similar to the above. Since it | |
688 | // is avaialble only on XP, it can't be compiled like this and | |
689 | // will have to be loaded dynamically. | |
690 | // //::PrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); //break; | |
691 | ||
692 | // fall through | |
693 | ||
694 | case 4: | |
695 | // Use PrintWindow if available, or fallback to WM_PRINT | |
696 | // otherwise. Unfortunately using PrintWindow is even worse than | |
697 | // WM_PRINT. For most native widgets nothing is drawn to the dc | |
698 | // at all, with or without Themes. | |
699 | typedef BOOL (WINAPI *PrintWindow_t)(HWND, HDC, UINT); | |
b411df4a | 700 | static bool s_triedToLoad = false; |
d55e5bfc RD |
701 | static PrintWindow_t pfnPrintWindow = NULL; |
702 | if ( !s_triedToLoad ) | |
703 | { | |
704 | ||
b411df4a | 705 | s_triedToLoad = true; |
d55e5bfc RD |
706 | wxDynamicLibrary dllUser32(_T("user32.dll")); |
707 | if ( dllUser32.IsLoaded() ) | |
708 | { | |
709 | wxLogNull nolog; // Don't report errors here | |
710 | pfnPrintWindow = (PrintWindow_t)dllUser32.GetSymbol(_T("PrintWindow")); | |
711 | } | |
712 | } | |
713 | if (pfnPrintWindow) | |
714 | { | |
715 | printf("Using PrintWindow\n"); | |
716 | pfnPrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); | |
717 | } | |
718 | else | |
719 | { | |
720 | printf("Using WM_PRINT\n"); | |
721 | ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc), | |
722 | PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | PRF_ERASEBKGND | PRF_OWNED ); | |
723 | } | |
724 | } | |
725 | #endif | |
726 | } | |
727 | ||
728 | ||
729 | ||
730 | #include <wx/tipdlg.h> | |
731 | ||
732 | ||
733 | class wxPyTipProvider : public wxTipProvider { | |
734 | public: | |
735 | wxPyTipProvider(size_t currentTip) | |
736 | : wxTipProvider(currentTip) {} | |
737 | ||
738 | DEC_PYCALLBACK_STRING__pure(GetTip); | |
739 | DEC_PYCALLBACK_STRING_STRING(PreprocessTip); | |
740 | PYPRIVATE; | |
741 | }; | |
742 | ||
743 | IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip); | |
744 | IMP_PYCALLBACK_STRING_STRING(wxPyTipProvider, wxTipProvider, PreprocessTip); | |
745 | ||
746 | ||
747 | //IMP_PYCALLBACK__(wxPyTimer, wxTimer, Notify); | |
748 | ||
1a6bba1e RD |
749 | IMPLEMENT_ABSTRACT_CLASS(wxPyTimer, wxTimer); |
750 | ||
d55e5bfc RD |
751 | void wxPyTimer::Notify() { |
752 | bool found; | |
753 | bool blocked = wxPyBeginBlockThreads(); | |
754 | if ((found = wxPyCBH_findCallback(m_myInst, "Notify"))) | |
755 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("()")); | |
756 | wxPyEndBlockThreads(blocked); | |
757 | if (! found) | |
758 | wxTimer::Notify(); | |
759 | } | |
760 | void wxPyTimer::base_Notify() { | |
761 | wxTimer::Notify(); | |
762 | } | |
763 | ||
764 | ||
765 | ||
766 | SWIGSTATICINLINE(PyObject *) | |
767 | SWIG_FromCharPtr(const char* cptr) | |
768 | { | |
d55e5bfc | 769 | if (cptr) { |
c370783e | 770 | size_t size = strlen(cptr); |
d55e5bfc | 771 | if (size > INT_MAX) { |
c370783e | 772 | return SWIG_NewPointerObj(swig_const_cast(cptr,char*), |
d55e5bfc RD |
773 | SWIG_TypeQuery("char *"), 0); |
774 | } else { | |
c370783e RD |
775 | if (size != 0) { |
776 | return PyString_FromStringAndSize(cptr, size); | |
777 | } else { | |
778 | return PyString_FromString(cptr); | |
779 | } | |
d55e5bfc | 780 | } |
d55e5bfc | 781 | } |
c370783e RD |
782 | Py_INCREF(Py_None); |
783 | return Py_None; | |
d55e5bfc RD |
784 | } |
785 | ||
786 | ||
c370783e RD |
787 | SWIGSTATICINLINE(int) |
788 | SWIG_CheckUnsignedLongInRange(unsigned long value, | |
789 | unsigned long max_value, | |
790 | const char *errmsg) | |
d55e5bfc | 791 | { |
c370783e RD |
792 | if (value > max_value) { |
793 | if (errmsg) { | |
794 | PyErr_Format(PyExc_OverflowError, | |
795 | "value %ld is greater than '%s' minimum %ld", | |
796 | value, errmsg, max_value); | |
d55e5bfc | 797 | } |
c370783e | 798 | return 0; |
d55e5bfc | 799 | } |
c370783e RD |
800 | return 1; |
801 | } | |
d55e5bfc RD |
802 | |
803 | ||
804 | #if UINT_MAX != ULONG_MAX | |
c370783e RD |
805 | SWIGSTATICINLINE(int) |
806 | SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val) | |
d55e5bfc | 807 | { |
c370783e RD |
808 | const char* errmsg = val ? "unsigned int" : 0; |
809 | unsigned long v; | |
810 | if (SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
811 | if (SWIG_CheckUnsignedLongInRange(v, INT_MAX, errmsg)) { | |
812 | if (val) *val = swig_numeric_cast(v, unsigned int); | |
813 | return 1; | |
814 | } | |
815 | } else { | |
816 | PyErr_Clear(); | |
817 | } | |
818 | if (val) { | |
819 | PyErr_SetString(PyExc_TypeError, "an unsigned int is expected"); | |
820 | } | |
821 | return 0; | |
d55e5bfc RD |
822 | } |
823 | #else | |
c370783e RD |
824 | SWIGSTATICINLINE(unsigned int) |
825 | SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val) | |
826 | { | |
827 | return SWIG_AsVal_unsigned_SS_long(obj,(unsigned long *)val); | |
828 | } | |
d55e5bfc RD |
829 | #endif |
830 | ||
831 | ||
c370783e RD |
832 | SWIGSTATICINLINE(unsigned int) |
833 | SWIG_As_unsigned_SS_int(PyObject* obj) | |
d55e5bfc | 834 | { |
c370783e RD |
835 | unsigned int v; |
836 | if (!SWIG_AsVal_unsigned_SS_int(obj, &v)) { | |
837 | /* | |
838 | this is needed to make valgrind/purify happier. the other | |
839 | solution is throw an exception, but since this code should work | |
840 | with plain C .... | |
841 | */ | |
842 | memset((void*)&v, 0, sizeof(unsigned int)); | |
d55e5bfc | 843 | } |
c370783e RD |
844 | return v; |
845 | } | |
846 | ||
847 | ||
848 | SWIGSTATICINLINE(int) | |
849 | SWIG_Check_unsigned_SS_int(PyObject* obj) | |
850 | { | |
851 | return SWIG_AsVal_unsigned_SS_int(obj, (unsigned int*)0); | |
d55e5bfc RD |
852 | } |
853 | ||
854 | wxString Log_TimeStamp(){ | |
855 | wxString msg; | |
856 | wxLog::TimeStamp(&msg); | |
857 | return msg; | |
858 | } | |
859 | void wxLog_Destroy(wxLog *self){ delete self; } | |
860 | ||
861 | // A wxLog class that can be derived from in wxPython | |
862 | class wxPyLog : public wxLog { | |
863 | public: | |
864 | wxPyLog() : wxLog() {} | |
865 | ||
866 | virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) { | |
867 | bool found; | |
868 | bool blocked = wxPyBeginBlockThreads(); | |
869 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) { | |
870 | PyObject* s = wx2PyString(szString); | |
871 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t)); | |
872 | Py_DECREF(s); | |
873 | } | |
874 | wxPyEndBlockThreads(blocked); | |
875 | if (! found) | |
876 | wxLog::DoLog(level, szString, t); | |
877 | } | |
878 | ||
879 | virtual void DoLogString(const wxChar *szString, time_t t) { | |
880 | bool found; | |
881 | bool blocked = wxPyBeginBlockThreads(); | |
882 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) { | |
883 | PyObject* s = wx2PyString(szString); | |
884 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t)); | |
885 | Py_DECREF(s); | |
886 | } | |
887 | wxPyEndBlockThreads(blocked); | |
888 | if (! found) | |
889 | wxLog::DoLogString(szString, t); | |
890 | } | |
891 | ||
892 | PYPRIVATE; | |
893 | }; | |
894 | ||
895 | ||
896 | ||
897 | ||
898 | IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate); | |
899 | ||
900 | ||
901 | #include <wx/joystick.h> | |
902 | ||
903 | ||
904 | #if !wxUSE_JOYSTICK && !defined(__WXMSW__) | |
905 | // A C++ stub class for wxJoystick for platforms that don't have it. | |
906 | class wxJoystick : public wxObject { | |
907 | public: | |
908 | wxJoystick(int joystick = wxJOYSTICK1) { | |
909 | bool blocked = wxPyBeginBlockThreads(); | |
910 | PyErr_SetString(PyExc_NotImplementedError, | |
911 | "wxJoystick is not available on this platform."); | |
912 | wxPyEndBlockThreads(blocked); | |
913 | } | |
914 | wxPoint GetPosition() { return wxPoint(-1,-1); } | |
915 | int GetZPosition() { return -1; } | |
916 | int GetButtonState() { return -1; } | |
917 | int GetPOVPosition() { return -1; } | |
918 | int GetPOVCTSPosition() { return -1; } | |
919 | int GetRudderPosition() { return -1; } | |
920 | int GetUPosition() { return -1; } | |
921 | int GetVPosition() { return -1; } | |
922 | int GetMovementThreshold() { return -1; } | |
923 | void SetMovementThreshold(int threshold) {} | |
924 | ||
b411df4a | 925 | bool IsOk(void) { return false; } |
d55e5bfc RD |
926 | int GetNumberJoysticks() { return -1; } |
927 | int GetManufacturerId() { return -1; } | |
928 | int GetProductId() { return -1; } | |
15817c7e | 929 | wxString GetProductName() { return wxEmptyString; } |
d55e5bfc RD |
930 | int GetXMin() { return -1; } |
931 | int GetYMin() { return -1; } | |
932 | int GetZMin() { return -1; } | |
933 | int GetXMax() { return -1; } | |
934 | int GetYMax() { return -1; } | |
935 | int GetZMax() { return -1; } | |
936 | int GetNumberButtons() { return -1; } | |
937 | int GetNumberAxes() { return -1; } | |
938 | int GetMaxButtons() { return -1; } | |
939 | int GetMaxAxes() { return -1; } | |
940 | int GetPollingMin() { return -1; } | |
941 | int GetPollingMax() { return -1; } | |
942 | int GetRudderMin() { return -1; } | |
943 | int GetRudderMax() { return -1; } | |
944 | int GetUMin() { return -1; } | |
945 | int GetUMax() { return -1; } | |
946 | int GetVMin() { return -1; } | |
947 | int GetVMax() { return -1; } | |
948 | ||
b411df4a RD |
949 | bool HasRudder() { return false; } |
950 | bool HasZ() { return false; } | |
951 | bool HasU() { return false; } | |
952 | bool HasV() { return false; } | |
953 | bool HasPOV() { return false; } | |
954 | bool HasPOV4Dir() { return false; } | |
955 | bool HasPOVCTS() { return false; } | |
d55e5bfc | 956 | |
b411df4a RD |
957 | bool SetCapture(wxWindow* win, int pollingFreq = 0) { return false; } |
958 | bool ReleaseCapture() { return false; } | |
d55e5bfc RD |
959 | }; |
960 | #endif | |
961 | ||
962 | ||
963 | #include <wx/sound.h> | |
964 | ||
965 | ||
966 | #if !wxUSE_SOUND | |
967 | // A C++ stub class for wxWave for platforms that don't have it. | |
968 | class wxSound : public wxObject | |
969 | { | |
970 | public: | |
971 | wxSound() { | |
972 | bool blocked = wxPyBeginBlockThreads(); | |
973 | PyErr_SetString(PyExc_NotImplementedError, | |
974 | "wxSound is not available on this platform."); | |
975 | wxPyEndBlockThreads(blocked); | |
976 | } | |
0346c964 | 977 | wxSound(const wxString&/*, bool*/) { |
d55e5bfc RD |
978 | bool blocked = wxPyBeginBlockThreads(); |
979 | PyErr_SetString(PyExc_NotImplementedError, | |
980 | "wxSound is not available on this platform."); | |
981 | wxPyEndBlockThreads(blocked); | |
982 | } | |
983 | wxSound(int, const wxByte*) { | |
984 | bool blocked = wxPyBeginBlockThreads(); | |
985 | PyErr_SetString(PyExc_NotImplementedError, | |
986 | "wxSound is not available on this platform."); | |
987 | wxPyEndBlockThreads(blocked); | |
988 | } | |
989 | ||
990 | ~wxSound() {}; | |
991 | ||
0346c964 | 992 | bool Create(const wxString&/*, bool*/) { return false; } |
d55e5bfc RD |
993 | bool Create(int, const wxByte*) { return false; }; |
994 | bool IsOk() { return false; }; | |
995 | bool Play(unsigned) const { return false; } | |
996 | static bool Play(const wxString&, unsigned) { return false; } | |
997 | static void Stop() {} | |
998 | }; | |
999 | ||
1000 | #endif | |
1001 | ||
0346c964 RD |
1002 | wxSound *new_wxSound(wxString const &fileName){ |
1003 | if (fileName.Length() == 0) | |
1004 | return new wxSound; | |
1005 | else | |
1006 | return new wxSound(fileName); | |
1007 | } | |
1008 | wxSound *new_wxSound(PyObject *data){ | |
1009 | unsigned char* buffer; int size; | |
1010 | wxSound *sound = NULL; | |
1011 | ||
d55e5bfc | 1012 | bool blocked = wxPyBeginBlockThreads(); |
0346c964 RD |
1013 | if (!PyArg_Parse(data, "t#", &buffer, &size)) |
1014 | goto done; | |
1015 | sound = new wxSound(size, buffer); | |
1016 | done: | |
d55e5bfc | 1017 | wxPyEndBlockThreads(blocked); |
0346c964 RD |
1018 | return sound; |
1019 | } | |
1020 | bool wxSound_CreateFromData(wxSound *self,PyObject *data){ | |
1021 | #ifndef __WXMAC__ | |
1022 | unsigned char* buffer; | |
1023 | int size; | |
b411df4a | 1024 | bool rv = false; |
0346c964 RD |
1025 | |
1026 | bool blocked = wxPyBeginBlockThreads(); | |
1027 | if (!PyArg_Parse(data, "t#", &buffer, &size)) | |
1028 | goto done; | |
1029 | rv = self->Create(size, buffer); | |
1030 | done: | |
1031 | wxPyEndBlockThreads(blocked); | |
1032 | return rv; | |
1033 | #else | |
1034 | bool blocked = wxPyBeginBlockThreads(); | |
1035 | PyErr_SetString(PyExc_NotImplementedError, | |
1036 | "Create from data is not available on this platform."); | |
1037 | wxPyEndBlockThreads(blocked); | |
b411df4a | 1038 | return false; |
0346c964 | 1039 | #endif |
d55e5bfc RD |
1040 | } |
1041 | void Sound_Stop(){ wxPyRaiseNotImplemented(); } | |
1042 | ||
1043 | #include <wx/mimetype.h> | |
1044 | ||
1045 | PyObject *wxFileType_GetMimeType(wxFileType *self){ | |
1046 | wxString str; | |
1047 | if (self->GetMimeType(&str)) | |
1048 | return wx2PyString(str); | |
1049 | else | |
1050 | RETURN_NONE(); | |
1051 | } | |
1052 | PyObject *wxFileType_GetMimeTypes(wxFileType *self){ | |
1053 | wxArrayString arr; | |
1054 | if (self->GetMimeTypes(arr)) | |
1055 | return wxArrayString2PyList_helper(arr); | |
1056 | else | |
1057 | RETURN_NONE(); | |
1058 | } | |
1059 | PyObject *wxFileType_GetExtensions(wxFileType *self){ | |
1060 | wxArrayString arr; | |
1061 | if (self->GetExtensions(arr)) | |
1062 | return wxArrayString2PyList_helper(arr); | |
1063 | else | |
1064 | RETURN_NONE(); | |
1065 | } | |
1066 | wxIcon *wxFileType_GetIcon(wxFileType *self){ | |
1067 | wxIconLocation loc; | |
1068 | if (self->GetIcon(&loc)) | |
1069 | return new wxIcon(loc); | |
1070 | else | |
1071 | return NULL; | |
1072 | } | |
1073 | PyObject *wxFileType_GetIconInfo(wxFileType *self){ | |
1074 | wxIconLocation loc; | |
1075 | if (self->GetIcon(&loc)) { | |
1076 | wxString iconFile = loc.GetFileName(); | |
1077 | int iconIndex = -1; | |
1078 | ||
1079 | ||
1080 | ||
1081 | // Make a tuple and put the values in it | |
1082 | bool blocked = wxPyBeginBlockThreads(); | |
1083 | PyObject* tuple = PyTuple_New(3); | |
1084 | PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(loc), | |
b411df4a | 1085 | wxT("wxIcon"), true)); |
d55e5bfc RD |
1086 | PyTuple_SetItem(tuple, 1, wx2PyString(iconFile)); |
1087 | PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex)); | |
1088 | wxPyEndBlockThreads(blocked); | |
1089 | return tuple; | |
1090 | } | |
1091 | else | |
1092 | RETURN_NONE(); | |
1093 | } | |
1094 | PyObject *wxFileType_GetDescription(wxFileType *self){ | |
1095 | wxString str; | |
1096 | if (self->GetDescription(&str)) | |
1097 | return wx2PyString(str); | |
1098 | else | |
1099 | RETURN_NONE(); | |
1100 | } | |
1101 | PyObject *wxFileType_GetOpenCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
1102 | wxString str; | |
1103 | if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype))) | |
1104 | return wx2PyString(str); | |
1105 | else | |
1106 | RETURN_NONE(); | |
1107 | } | |
1108 | PyObject *wxFileType_GetPrintCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
1109 | wxString str; | |
1110 | if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype))) | |
1111 | return wx2PyString(str); | |
1112 | else | |
1113 | RETURN_NONE(); | |
1114 | } | |
1115 | PyObject *wxFileType_GetAllCommands(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
1116 | wxArrayString verbs; | |
1117 | wxArrayString commands; | |
1118 | if (self->GetAllCommands(&verbs, &commands, | |
1119 | wxFileType::MessageParameters(filename, mimetype))) { | |
1120 | bool blocked = wxPyBeginBlockThreads(); | |
1121 | PyObject* tuple = PyTuple_New(2); | |
1122 | PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs)); | |
1123 | PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands)); | |
1124 | wxPyEndBlockThreads(blocked); | |
1125 | return tuple; | |
1126 | } | |
1127 | else | |
1128 | RETURN_NONE(); | |
1129 | } | |
1130 | wxString FileType_ExpandCommand(wxString const &command,wxString const &filename,wxString const &mimetype){ | |
1131 | return wxFileType::ExpandCommand(command, | |
1132 | wxFileType::MessageParameters(filename, mimetype)); | |
1133 | } | |
1134 | PyObject *wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self){ | |
1135 | wxArrayString arr; | |
1136 | self->EnumAllFileTypes(arr); | |
1137 | return wxArrayString2PyList_helper(arr); | |
1138 | } | |
1139 | ||
1140 | #include <wx/artprov.h> | |
1141 | ||
1142 | static const wxString wxPyART_TOOLBAR(wxART_TOOLBAR); | |
1143 | static const wxString wxPyART_MENU(wxART_MENU); | |
1144 | static const wxString wxPyART_FRAME_ICON(wxART_FRAME_ICON); | |
1145 | static const wxString wxPyART_CMN_DIALOG(wxART_CMN_DIALOG); | |
1146 | static const wxString wxPyART_HELP_BROWSER(wxART_HELP_BROWSER); | |
1147 | static const wxString wxPyART_MESSAGE_BOX(wxART_MESSAGE_BOX); | |
4cf4100f | 1148 | static const wxString wxPyART_BUTTON(wxART_BUTTON); |
d55e5bfc RD |
1149 | static const wxString wxPyART_OTHER(wxART_OTHER); |
1150 | static const wxString wxPyART_ADD_BOOKMARK(wxART_ADD_BOOKMARK); | |
1151 | static const wxString wxPyART_DEL_BOOKMARK(wxART_DEL_BOOKMARK); | |
1152 | static const wxString wxPyART_HELP_SIDE_PANEL(wxART_HELP_SIDE_PANEL); | |
1153 | static const wxString wxPyART_HELP_SETTINGS(wxART_HELP_SETTINGS); | |
1154 | static const wxString wxPyART_HELP_BOOK(wxART_HELP_BOOK); | |
1155 | static const wxString wxPyART_HELP_FOLDER(wxART_HELP_FOLDER); | |
1156 | static const wxString wxPyART_HELP_PAGE(wxART_HELP_PAGE); | |
1157 | static const wxString wxPyART_GO_BACK(wxART_GO_BACK); | |
1158 | static const wxString wxPyART_GO_FORWARD(wxART_GO_FORWARD); | |
1159 | static const wxString wxPyART_GO_UP(wxART_GO_UP); | |
1160 | static const wxString wxPyART_GO_DOWN(wxART_GO_DOWN); | |
1161 | static const wxString wxPyART_GO_TO_PARENT(wxART_GO_TO_PARENT); | |
1162 | static const wxString wxPyART_GO_HOME(wxART_GO_HOME); | |
1163 | static const wxString wxPyART_FILE_OPEN(wxART_FILE_OPEN); | |
1164 | static const wxString wxPyART_PRINT(wxART_PRINT); | |
1165 | static const wxString wxPyART_HELP(wxART_HELP); | |
1166 | static const wxString wxPyART_TIP(wxART_TIP); | |
1167 | static const wxString wxPyART_REPORT_VIEW(wxART_REPORT_VIEW); | |
1168 | static const wxString wxPyART_LIST_VIEW(wxART_LIST_VIEW); | |
1169 | static const wxString wxPyART_NEW_DIR(wxART_NEW_DIR); | |
1170 | static const wxString wxPyART_FOLDER(wxART_FOLDER); | |
1171 | static const wxString wxPyART_GO_DIR_UP(wxART_GO_DIR_UP); | |
1172 | static const wxString wxPyART_EXECUTABLE_FILE(wxART_EXECUTABLE_FILE); | |
1173 | static const wxString wxPyART_NORMAL_FILE(wxART_NORMAL_FILE); | |
1174 | static const wxString wxPyART_TICK_MARK(wxART_TICK_MARK); | |
1175 | static const wxString wxPyART_CROSS_MARK(wxART_CROSS_MARK); | |
1176 | static const wxString wxPyART_ERROR(wxART_ERROR); | |
1177 | static const wxString wxPyART_QUESTION(wxART_QUESTION); | |
1178 | static const wxString wxPyART_WARNING(wxART_WARNING); | |
1179 | static const wxString wxPyART_INFORMATION(wxART_INFORMATION); | |
1180 | static const wxString wxPyART_MISSING_IMAGE(wxART_MISSING_IMAGE); | |
1181 | // Python aware wxArtProvider | |
1182 | class wxPyArtProvider : public wxArtProvider { | |
1183 | public: | |
1184 | ||
1185 | virtual wxBitmap CreateBitmap(const wxArtID& id, | |
1186 | const wxArtClient& client, | |
1187 | const wxSize& size) { | |
1188 | wxBitmap rval = wxNullBitmap; | |
1189 | bool blocked = wxPyBeginBlockThreads(); | |
1190 | if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) { | |
1191 | PyObject* so = wxPyConstructObject((void*)&size, wxT("wxSize"), 0); | |
1192 | PyObject* ro; | |
1193 | wxBitmap* ptr; | |
1194 | PyObject* s1, *s2; | |
1195 | s1 = wx2PyString(id); | |
1196 | s2 = wx2PyString(client); | |
1197 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so)); | |
1198 | Py_DECREF(so); | |
1199 | Py_DECREF(s1); | |
1200 | Py_DECREF(s2); | |
1201 | if (ro) { | |
1202 | if (wxPyConvertSwigPtr(ro, (void**)&ptr, wxT("wxBitmap"))) | |
1203 | rval = *ptr; | |
1204 | Py_DECREF(ro); | |
1205 | } | |
1206 | } | |
1207 | wxPyEndBlockThreads(blocked); | |
1208 | return rval; | |
1209 | } | |
1210 | ||
1211 | PYPRIVATE; | |
1212 | }; | |
1213 | ||
1214 | void wxPyArtProvider_Destroy(wxPyArtProvider *self){ delete self; } | |
1215 | ||
1216 | ||
1217 | ||
1218 | static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) { | |
1219 | PyObject* ret = PyTuple_New(3); | |
1220 | if (ret) { | |
1221 | PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag)); | |
1222 | PyTuple_SET_ITEM(ret, 1, wx2PyString(str)); | |
1223 | PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index)); | |
1224 | } | |
1225 | return ret; | |
1226 | } | |
1227 | ||
1228 | PyObject *wxConfigBase_GetFirstGroup(wxConfigBase *self){ | |
1229 | bool cont; | |
1230 | long index = 0; | |
1231 | wxString value; | |
1232 | ||
1233 | cont = self->GetFirstGroup(value, index); | |
1234 | return __EnumerationHelper(cont, value, index); | |
1235 | } | |
1236 | PyObject *wxConfigBase_GetNextGroup(wxConfigBase *self,long index){ | |
1237 | bool cont; | |
1238 | wxString value; | |
1239 | ||
1240 | cont = self->GetNextGroup(value, index); | |
1241 | return __EnumerationHelper(cont, value, index); | |
1242 | } | |
1243 | PyObject *wxConfigBase_GetFirstEntry(wxConfigBase *self){ | |
1244 | bool cont; | |
1245 | long index = 0; | |
1246 | wxString value; | |
1247 | ||
1248 | cont = self->GetFirstEntry(value, index); | |
1249 | return __EnumerationHelper(cont, value, index); | |
1250 | } | |
1251 | PyObject *wxConfigBase_GetNextEntry(wxConfigBase *self,long index){ | |
1252 | bool cont; | |
1253 | wxString value; | |
1254 | ||
1255 | cont = self->GetNextEntry(value, index); | |
1256 | return __EnumerationHelper(cont, value, index); | |
1257 | } | |
1258 | long wxConfigBase_ReadInt(wxConfigBase *self,wxString const &key,long defaultVal){ | |
1259 | long rv; | |
1260 | self->Read(key, &rv, defaultVal); | |
1261 | return rv; | |
1262 | } | |
1263 | ||
c370783e RD |
1264 | // See my_fragments.i |
1265 | SWIGSTATICINLINE(int) | |
1266 | SWIG_AsVal_double(PyObject *obj, double* val) | |
d55e5bfc | 1267 | { |
c370783e RD |
1268 | if (PyNumber_Check(obj)) { |
1269 | if (val) *val = PyFloat_AsDouble(obj); | |
1270 | return 1; | |
1271 | } | |
d55e5bfc RD |
1272 | else { |
1273 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
1274 | obj->ob_type->tp_name); | |
1275 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
1276 | Py_DECREF(errmsg); | |
d55e5bfc | 1277 | } |
c370783e | 1278 | return 0; |
d55e5bfc RD |
1279 | } |
1280 | ||
1281 | ||
c370783e RD |
1282 | SWIGSTATICINLINE(double) |
1283 | SWIG_As_double(PyObject* obj) | |
d55e5bfc | 1284 | { |
c370783e RD |
1285 | double v; |
1286 | if (!SWIG_AsVal_double(obj, &v)) { | |
1287 | /* | |
1288 | this is needed to make valgrind/purify happier. the other | |
1289 | solution is throw an exception, but since this code should work | |
1290 | with plain C .... | |
1291 | */ | |
1292 | memset((void*)&v, 0, sizeof(double)); | |
d55e5bfc | 1293 | } |
c370783e RD |
1294 | return v; |
1295 | } | |
1296 | ||
1297 | ||
1298 | SWIGSTATICINLINE(int) | |
1299 | SWIG_Check_double(PyObject* obj) | |
1300 | { | |
1301 | return SWIG_AsVal_double(obj, (double*)0); | |
d55e5bfc RD |
1302 | } |
1303 | ||
1304 | double wxConfigBase_ReadFloat(wxConfigBase *self,wxString const &key,double defaultVal){ | |
1305 | double rv; | |
1306 | self->Read(key, &rv, defaultVal); | |
1307 | return rv; | |
1308 | } | |
1309 | bool wxConfigBase_ReadBool(wxConfigBase *self,wxString const &key,bool defaultVal){ | |
1310 | bool rv; | |
1311 | self->Read(key, &rv, defaultVal); | |
1312 | return rv; | |
1313 | } | |
1314 | ||
1315 | #include <wx/datetime.h> | |
1316 | ||
1317 | ||
1318 | static const wxString wxPyDateFormatStr(wxT("%c")); | |
1319 | static const wxString wxPyTimeSpanFormatStr(wxT("%H:%M:%S")); | |
1320 | ||
1321 | #define LOCAL_TZ wxDateTime::Local | |
1322 | ||
1323 | ||
1324 | #if UINT_MAX < LONG_MAX | |
c370783e RD |
1325 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ |
1326 | #define SWIG_From_unsigned_SS_int SWIG_From_long | |
1327 | /*@@*/ | |
d55e5bfc | 1328 | #else |
c370783e RD |
1329 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ |
1330 | #define SWIG_From_unsigned_SS_int SWIG_From_unsigned_SS_long | |
1331 | /*@@*/ | |
d55e5bfc RD |
1332 | #endif |
1333 | ||
1334 | wxDateTime wxDateTime___add____SWIG_0(wxDateTime *self,wxTimeSpan const &other){ return *self + other; } | |
1335 | wxDateTime wxDateTime___add____SWIG_1(wxDateTime *self,wxDateSpan const &other){ return *self + other; } | |
1336 | wxTimeSpan wxDateTime___sub____SWIG_0(wxDateTime *self,wxDateTime const &other){ return *self - other; } | |
1337 | wxDateTime wxDateTime___sub____SWIG_1(wxDateTime *self,wxTimeSpan const &other){ return *self - other; } | |
1338 | wxDateTime wxDateTime___sub____SWIG_2(wxDateTime *self,wxDateSpan const &other){ return *self - other; } | |
1339 | bool wxDateTime___lt__(wxDateTime *self,wxDateTime const *other){ | |
1340 | if (!other || !self->IsValid() || !other->IsValid()) return self < other; | |
1341 | return (*self < *other); | |
1342 | } | |
1343 | bool wxDateTime___le__(wxDateTime *self,wxDateTime const *other){ | |
1344 | if (!other || !self->IsValid() || !other->IsValid()) return self <= other; | |
1345 | return (*self <= *other); | |
1346 | } | |
1347 | bool wxDateTime___gt__(wxDateTime *self,wxDateTime const *other){ | |
1348 | if (!other || !self->IsValid() || !other->IsValid()) return self > other; | |
1349 | return (*self > *other); | |
1350 | } | |
1351 | bool wxDateTime___ge__(wxDateTime *self,wxDateTime const *other){ | |
1352 | if (!other || !self->IsValid() || !other->IsValid()) return self >= other; | |
1353 | return (*self >= *other); | |
1354 | } | |
1355 | bool wxDateTime___eq__(wxDateTime *self,wxDateTime const *other){ | |
1356 | if (!other || !self->IsValid() || !other->IsValid()) return self == other; | |
1357 | return (*self == *other); | |
1358 | } | |
1359 | bool wxDateTime___ne__(wxDateTime *self,wxDateTime const *other){ | |
1360 | if (!other || !self->IsValid() || !other->IsValid()) return self != other; | |
1361 | return (*self != *other); | |
1362 | } | |
1363 | int wxDateTime_ParseRfc822Date(wxDateTime *self,wxString const &date){ | |
1364 | const wxChar* rv; | |
1365 | const wxChar* _date = date; | |
1366 | rv = self->ParseRfc822Date(_date); | |
1367 | if (rv == NULL) return -1; | |
1368 | return rv - _date; | |
1369 | } | |
1370 | int wxDateTime_ParseFormat(wxDateTime *self,wxString const &date,wxString const &format,wxDateTime const &dateDef){ | |
1371 | const wxChar* rv; | |
1372 | const wxChar* _date = date; | |
1373 | rv = self->ParseFormat(_date, format, dateDef); | |
1374 | if (rv == NULL) return -1; | |
1375 | return rv - _date; | |
1376 | } | |
1377 | int wxDateTime_ParseDateTime(wxDateTime *self,wxString const &datetime){ | |
1378 | const wxChar* rv; | |
1379 | const wxChar* _datetime = datetime; | |
1380 | rv = self->ParseDateTime(_datetime); | |
1381 | if (rv == NULL) return -1; | |
1382 | return rv - _datetime; | |
1383 | } | |
1384 | int wxDateTime_ParseDate(wxDateTime *self,wxString const &date){ | |
1385 | const wxChar* rv; | |
1386 | const wxChar* _date = date; | |
1387 | rv = self->ParseDate(_date); | |
1388 | if (rv == NULL) return -1; | |
1389 | return rv - _date; | |
1390 | } | |
1391 | int wxDateTime_ParseTime(wxDateTime *self,wxString const &time){ | |
1392 | const wxChar* rv; | |
1393 | const wxChar* _time = time; | |
1394 | rv = self->ParseTime(_time); | |
1395 | if (rv == NULL) return -1; | |
1396 | return rv - _time; | |
1397 | } | |
1398 | wxTimeSpan wxTimeSpan___add__(wxTimeSpan *self,wxTimeSpan const &other){ return *self + other; } | |
1399 | wxTimeSpan wxTimeSpan___sub__(wxTimeSpan *self,wxTimeSpan const &other){ return *self - other; } | |
1400 | wxTimeSpan wxTimeSpan___mul__(wxTimeSpan *self,int n){ return *self * n; } | |
1401 | wxTimeSpan wxTimeSpan___rmul__(wxTimeSpan *self,int n){ return n * *self; } | |
b411df4a RD |
1402 | bool wxTimeSpan___lt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self < *other) : false; } |
1403 | bool wxTimeSpan___le__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self <= *other) : false; } | |
1404 | bool wxTimeSpan___gt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self > *other) : true; } | |
1405 | bool wxTimeSpan___ge__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self >= *other) : true; } | |
1406 | bool wxTimeSpan___eq__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self == *other) : false; } | |
1407 | bool wxTimeSpan___ne__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self != *other) : true; } | |
d55e5bfc RD |
1408 | wxDateSpan wxDateSpan___add__(wxDateSpan *self,wxDateSpan const &other){ return *self + other; } |
1409 | wxDateSpan wxDateSpan___sub__(wxDateSpan *self,wxDateSpan const &other){ return *self - other; } | |
1410 | wxDateSpan wxDateSpan___mul__(wxDateSpan *self,int n){ return *self * n; } | |
1411 | wxDateSpan wxDateSpan___rmul__(wxDateSpan *self,int n){ return n * *self; } | |
b411df4a RD |
1412 | bool wxDateSpan___eq__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self == *other) : false; } |
1413 | bool wxDateSpan___ne__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self != *other) : true; } | |
d55e5bfc RD |
1414 | |
1415 | #include <wx/dataobj.h> | |
1416 | ||
68e533f8 RD |
1417 | PyObject *wxDataObject_GetAllFormats(wxDataObject *self,wxDataObject::Direction dir){ |
1418 | size_t count = self->GetFormatCount(dir); | |
1419 | wxDataFormat* formats = new wxDataFormat[count]; | |
1420 | self->GetAllFormats(formats, dir); | |
1421 | ||
1422 | bool blocked = wxPyBeginBlockThreads(); | |
1423 | PyObject* list = PyList_New(count); | |
1424 | for (size_t i=0; i<count; i++) { | |
1425 | wxDataFormat* format = new wxDataFormat(formats[i]); | |
b411df4a | 1426 | PyObject* obj = wxPyConstructObject((void*)format, wxT("wxDataFormat"), true); |
68e533f8 RD |
1427 | PyList_Append(list, obj); |
1428 | Py_DECREF(obj); | |
1429 | } | |
1430 | wxPyEndBlockThreads(blocked); | |
1431 | delete [] formats; | |
1432 | return list; | |
1433 | } | |
1434 | PyObject *wxDataObject_GetDataHere(wxDataObject *self,wxDataFormat const &format){ | |
1435 | PyObject* rval = NULL; | |
1436 | size_t size = self->GetDataSize(format); | |
1437 | bool blocked = wxPyBeginBlockThreads(); | |
1438 | if (size) { | |
1439 | char* buf = new char[size]; | |
1440 | if (self->GetDataHere(format, buf)) | |
1441 | rval = PyString_FromStringAndSize(buf, size); | |
1442 | delete [] buf; | |
1443 | } | |
1444 | if (! rval) { | |
1445 | rval = Py_None; | |
1446 | Py_INCREF(rval); | |
1447 | } | |
1448 | wxPyEndBlockThreads(blocked); | |
1449 | return rval; | |
1450 | } | |
1451 | bool wxDataObject_SetData(wxDataObject *self,wxDataFormat const &format,PyObject *data){ | |
1452 | bool rval; | |
1453 | bool blocked = wxPyBeginBlockThreads(); | |
1454 | if (PyString_Check(data)) { | |
1455 | rval = self->SetData(format, PyString_Size(data), PyString_AsString(data)); | |
1456 | } | |
1457 | else { | |
1458 | // raise a TypeError if not a string | |
1459 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
b411df4a | 1460 | rval = false; |
68e533f8 RD |
1461 | } |
1462 | wxPyEndBlockThreads(blocked); | |
1463 | return rval; | |
1464 | } | |
1465 | PyObject *wxDataObjectSimple_GetDataHere(wxDataObjectSimple *self){ | |
1466 | PyObject* rval = NULL; | |
1467 | size_t size = self->GetDataSize(); | |
1468 | bool blocked = wxPyBeginBlockThreads(); | |
1469 | if (size) { | |
1470 | char* buf = new char[size]; | |
1471 | if (self->GetDataHere(buf)) | |
1472 | rval = PyString_FromStringAndSize(buf, size); | |
1473 | delete [] buf; | |
1474 | } | |
1475 | if (! rval) { | |
1476 | rval = Py_None; | |
1477 | Py_INCREF(rval); | |
1478 | } | |
1479 | wxPyEndBlockThreads(blocked); | |
1480 | return rval; | |
1481 | } | |
1482 | bool wxDataObjectSimple_SetData(wxDataObjectSimple *self,PyObject *data){ | |
1483 | bool rval; | |
1484 | bool blocked = wxPyBeginBlockThreads(); | |
1485 | if (PyString_Check(data)) { | |
1486 | rval = self->SetData(PyString_Size(data), PyString_AsString(data)); | |
1487 | } | |
1488 | else { | |
1489 | // raise a TypeError if not a string | |
1490 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
b411df4a | 1491 | rval = false; |
68e533f8 RD |
1492 | } |
1493 | wxPyEndBlockThreads(blocked); | |
1494 | return rval; | |
1495 | } | |
d55e5bfc RD |
1496 | // Create a new class for wxPython to use |
1497 | class wxPyDataObjectSimple : public wxDataObjectSimple { | |
1498 | public: | |
1499 | wxPyDataObjectSimple(const wxDataFormat& format = wxFormatInvalid) | |
1500 | : wxDataObjectSimple(format) {} | |
1501 | ||
1502 | DEC_PYCALLBACK_SIZET__const(GetDataSize); | |
1503 | bool GetDataHere(void *buf) const; | |
1504 | bool SetData(size_t len, const void *buf) const; | |
1505 | PYPRIVATE; | |
1506 | }; | |
1507 | ||
1508 | IMP_PYCALLBACK_SIZET__const(wxPyDataObjectSimple, wxDataObjectSimple, GetDataSize); | |
1509 | ||
1510 | bool wxPyDataObjectSimple::GetDataHere(void *buf) const { | |
1511 | // We need to get the data for this object and write it to buf. I think | |
1512 | // the best way to do this for wxPython is to have the Python method | |
1513 | // return either a string or None and then act appropriately with the | |
1514 | // C++ version. | |
1515 | ||
b411df4a | 1516 | bool rval = false; |
d55e5bfc RD |
1517 | bool blocked = wxPyBeginBlockThreads(); |
1518 | if (wxPyCBH_findCallback(m_myInst, "GetDataHere")) { | |
1519 | PyObject* ro; | |
1520 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
1521 | if (ro) { | |
1522 | rval = (ro != Py_None && PyString_Check(ro)); | |
1523 | if (rval) | |
1524 | memcpy(buf, PyString_AsString(ro), PyString_Size(ro)); | |
1525 | Py_DECREF(ro); | |
1526 | } | |
1527 | } | |
1528 | wxPyEndBlockThreads(blocked); | |
1529 | return rval; | |
1530 | } | |
1531 | ||
1532 | bool wxPyDataObjectSimple::SetData(size_t len, const void *buf) const{ | |
1533 | // For this one we simply need to make a string from buf and len | |
1534 | // and send it to the Python method. | |
b411df4a | 1535 | bool rval = false; |
d55e5bfc RD |
1536 | bool blocked = wxPyBeginBlockThreads(); |
1537 | if (wxPyCBH_findCallback(m_myInst, "SetData")) { | |
1538 | PyObject* data = PyString_FromStringAndSize((char*)buf, len); | |
1539 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", data)); | |
1540 | Py_DECREF(data); | |
1541 | } | |
1542 | wxPyEndBlockThreads(blocked); | |
1543 | return rval; | |
1544 | } | |
1545 | ||
1546 | // Create a new class for wxPython to use | |
1547 | class wxPyTextDataObject : public wxTextDataObject { | |
1548 | public: | |
1549 | wxPyTextDataObject(const wxString& text = wxPyEmptyString) | |
1550 | : wxTextDataObject(text) {} | |
1551 | ||
1552 | DEC_PYCALLBACK_SIZET__const(GetTextLength); | |
1553 | DEC_PYCALLBACK_STRING__const(GetText); | |
1554 | DEC_PYCALLBACK__STRING(SetText); | |
1555 | PYPRIVATE; | |
1556 | }; | |
1557 | ||
1558 | IMP_PYCALLBACK_SIZET__const(wxPyTextDataObject, wxTextDataObject, GetTextLength); | |
1559 | IMP_PYCALLBACK_STRING__const(wxPyTextDataObject, wxTextDataObject, GetText); | |
1560 | IMP_PYCALLBACK__STRING(wxPyTextDataObject, wxTextDataObject, SetText); | |
1561 | ||
1562 | ||
1563 | // Create a new class for wxPython to use | |
1564 | class wxPyBitmapDataObject : public wxBitmapDataObject { | |
1565 | public: | |
1566 | wxPyBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap) | |
1567 | : wxBitmapDataObject(bitmap) {} | |
1568 | ||
1569 | wxBitmap GetBitmap() const; | |
1570 | void SetBitmap(const wxBitmap& bitmap); | |
1571 | PYPRIVATE; | |
1572 | }; | |
1573 | ||
1574 | wxBitmap wxPyBitmapDataObject::GetBitmap() const { | |
1575 | wxBitmap* rval = &wxNullBitmap; | |
1576 | bool blocked = wxPyBeginBlockThreads(); | |
1577 | if (wxPyCBH_findCallback(m_myInst, "GetBitmap")) { | |
1578 | PyObject* ro; | |
1579 | wxBitmap* ptr; | |
1580 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
1581 | if (ro) { | |
1582 | if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxBitmap"))) | |
1583 | rval = ptr; | |
1584 | Py_DECREF(ro); | |
1585 | } | |
1586 | } | |
1587 | wxPyEndBlockThreads(blocked); | |
1588 | return *rval; | |
1589 | } | |
68e533f8 | 1590 | |
d55e5bfc RD |
1591 | void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) { |
1592 | bool blocked = wxPyBeginBlockThreads(); | |
1593 | if (wxPyCBH_findCallback(m_myInst, "SetBitmap")) { | |
b411df4a | 1594 | PyObject* bo = wxPyConstructObject((void*)&bitmap, wxT("wxBitmap"), false); |
d55e5bfc RD |
1595 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", bo)); |
1596 | Py_DECREF(bo); | |
1597 | } | |
1598 | wxPyEndBlockThreads(blocked); | |
1599 | } | |
1600 | ||
d55e5bfc | 1601 | bool wxCustomDataObject_SetData(wxCustomDataObject *self,PyObject *data){ |
68e533f8 RD |
1602 | bool rval; |
1603 | bool blocked = wxPyBeginBlockThreads(); | |
d55e5bfc | 1604 | if (PyString_Check(data)) { |
68e533f8 | 1605 | rval = self->SetData(PyString_Size(data), PyString_AsString(data)); |
d55e5bfc RD |
1606 | } |
1607 | else { | |
1608 | // raise a TypeError if not a string | |
1609 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
b411df4a | 1610 | rval = false; |
d55e5bfc | 1611 | } |
68e533f8 RD |
1612 | wxPyEndBlockThreads(blocked); |
1613 | return rval; | |
d55e5bfc RD |
1614 | } |
1615 | PyObject *wxCustomDataObject_GetData(wxCustomDataObject *self){ | |
68e533f8 RD |
1616 | PyObject* obj; |
1617 | bool blocked = wxPyBeginBlockThreads(); | |
1618 | obj = PyString_FromStringAndSize((char*)self->GetData(), self->GetSize()); | |
a07a67e6 RD |
1619 | wxPyEndBlockThreads(blocked); |
1620 | return obj; | |
d55e5bfc RD |
1621 | } |
1622 | ||
1623 | #include <wx/metafile.h> | |
1624 | ||
1625 | ||
1626 | IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback); | |
1627 | ||
1628 | ||
1629 | IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave); | |
1630 | IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter); | |
1631 | IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver); | |
1632 | IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData); | |
1633 | IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop); | |
1634 | ||
1635 | ||
1636 | class wxPyTextDropTarget : public wxTextDropTarget { | |
1637 | public: | |
1638 | wxPyTextDropTarget() {} | |
1639 | ||
1640 | DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText); | |
1641 | ||
1642 | DEC_PYCALLBACK__(OnLeave); | |
1643 | DEC_PYCALLBACK_DR_2WXCDR(OnEnter); | |
1644 | DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); | |
1645 | DEC_PYCALLBACK_DR_2WXCDR(OnData); | |
1646 | DEC_PYCALLBACK_BOOL_INTINT(OnDrop); | |
1647 | ||
1648 | PYPRIVATE; | |
1649 | }; | |
1650 | ||
1651 | IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText); | |
1652 | IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave); | |
1653 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter); | |
1654 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver); | |
1655 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData); | |
1656 | IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop); | |
1657 | ||
1658 | ||
1659 | ||
1660 | class wxPyFileDropTarget : public wxFileDropTarget { | |
1661 | public: | |
1662 | wxPyFileDropTarget() {} | |
1663 | ||
1664 | virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames); | |
1665 | ||
1666 | DEC_PYCALLBACK__(OnLeave); | |
1667 | DEC_PYCALLBACK_DR_2WXCDR(OnEnter); | |
1668 | DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); | |
1669 | DEC_PYCALLBACK_DR_2WXCDR(OnData); | |
1670 | DEC_PYCALLBACK_BOOL_INTINT(OnDrop); | |
1671 | ||
1672 | PYPRIVATE; | |
1673 | }; | |
1674 | ||
1675 | bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y, | |
1676 | const wxArrayString& filenames) { | |
b411df4a | 1677 | bool rval = false; |
d55e5bfc RD |
1678 | bool blocked = wxPyBeginBlockThreads(); |
1679 | if (wxPyCBH_findCallback(m_myInst, "OnDropFiles")) { | |
1680 | PyObject* list = wxArrayString2PyList_helper(filenames); | |
1681 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",x,y,list)); | |
1682 | Py_DECREF(list); | |
1683 | } | |
1684 | wxPyEndBlockThreads(blocked); | |
1685 | return rval; | |
1686 | } | |
1687 | ||
1688 | ||
1689 | ||
1690 | IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave); | |
1691 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter); | |
1692 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver); | |
1693 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData); | |
1694 | IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop); | |
1695 | ||
1696 | ||
1697 | ||
1698 | ||
1699 | bool wxClipboardLocker___nonzero__(wxClipboardLocker *self){ return !!(*self); } | |
1700 | ||
6923d0a9 | 1701 | #include <wx/display.h> |
d55e5bfc | 1702 | |
b411df4a RD |
1703 | bool wxVideoMode___eq__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self == *other) : false; } |
1704 | bool wxVideoMode___ne__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self != *other) : true; } | |
6923d0a9 RD |
1705 | |
1706 | // dummy version of wxDisplay for when it is not enabled in the wxWidgets build | |
1707 | #if !wxUSE_DISPLAY | |
1708 | #include <wx/dynarray.h> | |
1709 | #include <wx/vidmode.h> | |
1710 | ||
1711 | WX_DECLARE_OBJARRAY(wxVideoMode, wxArrayVideoModes); | |
1712 | #include "wx/arrimpl.cpp" | |
1713 | WX_DEFINE_OBJARRAY(wxArrayVideoModes); | |
1714 | const wxVideoMode wxDefaultVideoMode; | |
1715 | ||
1716 | class wxDisplay | |
1717 | { | |
1718 | public: | |
1719 | wxDisplay(size_t index = 0) { wxPyRaiseNotImplemented(); } | |
1720 | ~wxDisplay() {} | |
1721 | ||
1722 | static size_t GetCount() | |
1723 | { wxPyRaiseNotImplemented(); return 0; } | |
1724 | ||
1725 | static int GetFromPoint(const wxPoint& pt) | |
1726 | { wxPyRaiseNotImplemented(); return wxNOT_FOUND; } | |
1727 | static int GetFromWindow(wxWindow *window) | |
1728 | { wxPyRaiseNotImplemented(); return wxNOT_FOUND; } | |
1729 | ||
1730 | virtual bool IsOk() const { return false; } | |
1731 | virtual wxRect GetGeometry() const { wxRect r; return r; } | |
1732 | virtual wxString GetName() const { return wxEmptyString; } | |
1733 | bool IsPrimary() const { return false; } | |
1734 | ||
1735 | wxArrayVideoModes GetModes(const wxVideoMode& mode = wxDefaultVideoMode) | |
1736 | { wxArrayVideoModes a; return a; } | |
1737 | ||
1738 | virtual wxVideoMode GetCurrentMode() const | |
1739 | { return wxDefaultVideoMode; } | |
1740 | ||
1741 | virtual bool ChangeMode(const wxVideoMode& mode = wxDefaultVideoMode) | |
1742 | { return false; } | |
1743 | ||
1744 | void ResetMode() {} | |
1745 | }; | |
1746 | #endif | |
1747 | ||
d55e5bfc RD |
1748 | int Display_GetFromWindow(wxWindow *window){ wxPyRaiseNotImplemented(); return wxNOT_FOUND; } |
1749 | PyObject *wxDisplay_GetModes(wxDisplay *self,wxVideoMode const &mode){ | |
1750 | PyObject* pyList = NULL; | |
1751 | wxArrayVideoModes arr = self->GetModes(mode); | |
1752 | bool blocked = wxPyBeginBlockThreads(); | |
1753 | pyList = PyList_New(0); | |
1754 | for (int i=0; i < arr.GetCount(); i++) { | |
1755 | wxVideoMode* m = new wxVideoMode(arr.Item(i)); | |
1756 | PyObject* pyObj = wxPyConstructObject(m, wxT("wxVideoMode"), true); | |
1757 | PyList_Append(pyList, pyObj); | |
68e533f8 | 1758 | Py_DECREF(pyObj); |
d55e5bfc RD |
1759 | } |
1760 | wxPyEndBlockThreads(blocked); | |
1761 | return pyList; | |
1762 | } | |
070c48b4 RD |
1763 | |
1764 | #include <wx/stdpaths.h> | |
1765 | ||
1766 | void wxStandardPaths_SetInstallPrefix(wxStandardPaths *self,wxString const &prefix){} | |
1767 | wxString wxStandardPaths_GetInstallPrefix(wxStandardPaths *self){ return wxEmptyString; } | |
d55e5bfc RD |
1768 | #ifdef __cplusplus |
1769 | extern "C" { | |
1770 | #endif | |
c370783e | 1771 | static PyObject *_wrap_SystemSettings_GetColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1772 | PyObject *resultobj; |
1773 | int arg1 ; | |
1774 | wxColour result; | |
1775 | PyObject * obj0 = 0 ; | |
1776 | char *kwnames[] = { | |
1777 | (char *) "index", NULL | |
1778 | }; | |
1779 | ||
1780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetColour",kwnames,&obj0)) goto fail; | |
c370783e | 1781 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
1782 | if (PyErr_Occurred()) SWIG_fail; |
1783 | { | |
0439c23b | 1784 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1786 | result = wxSystemSettings::GetColour((wxSystemColour )arg1); | |
1787 | ||
1788 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1789 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
1790 | } |
1791 | { | |
1792 | wxColour * resultptr; | |
1793 | resultptr = new wxColour((wxColour &) result); | |
1794 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
1795 | } | |
1796 | return resultobj; | |
1797 | fail: | |
1798 | return NULL; | |
1799 | } | |
1800 | ||
1801 | ||
c370783e | 1802 | static PyObject *_wrap_SystemSettings_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1803 | PyObject *resultobj; |
1804 | int arg1 ; | |
1805 | wxFont result; | |
1806 | PyObject * obj0 = 0 ; | |
1807 | char *kwnames[] = { | |
1808 | (char *) "index", NULL | |
1809 | }; | |
1810 | ||
1811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetFont",kwnames,&obj0)) goto fail; | |
c370783e | 1812 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
1813 | if (PyErr_Occurred()) SWIG_fail; |
1814 | { | |
0439c23b | 1815 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1817 | result = wxSystemSettings::GetFont((wxSystemFont )arg1); | |
1818 | ||
1819 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1820 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
1821 | } |
1822 | { | |
1823 | wxFont * resultptr; | |
1824 | resultptr = new wxFont((wxFont &) result); | |
1825 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
1826 | } | |
1827 | return resultobj; | |
1828 | fail: | |
1829 | return NULL; | |
1830 | } | |
1831 | ||
1832 | ||
c370783e | 1833 | static PyObject *_wrap_SystemSettings_GetMetric(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1834 | PyObject *resultobj; |
1835 | int arg1 ; | |
1836 | int result; | |
1837 | PyObject * obj0 = 0 ; | |
1838 | char *kwnames[] = { | |
1839 | (char *) "index", NULL | |
1840 | }; | |
1841 | ||
1842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetMetric",kwnames,&obj0)) goto fail; | |
c370783e | 1843 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
1844 | if (PyErr_Occurred()) SWIG_fail; |
1845 | { | |
0439c23b | 1846 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1848 | result = (int)wxSystemSettings::GetMetric((wxSystemMetric )arg1); | |
1849 | ||
1850 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1851 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 1852 | } |
c370783e | 1853 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
1854 | return resultobj; |
1855 | fail: | |
1856 | return NULL; | |
1857 | } | |
1858 | ||
1859 | ||
c370783e | 1860 | static PyObject *_wrap_SystemSettings_HasFeature(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1861 | PyObject *resultobj; |
1862 | int arg1 ; | |
1863 | bool result; | |
1864 | PyObject * obj0 = 0 ; | |
1865 | char *kwnames[] = { | |
1866 | (char *) "index", NULL | |
1867 | }; | |
1868 | ||
1869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_HasFeature",kwnames,&obj0)) goto fail; | |
c370783e | 1870 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
1871 | if (PyErr_Occurred()) SWIG_fail; |
1872 | { | |
0439c23b | 1873 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1875 | result = (bool)wxSystemSettings::HasFeature((wxSystemFeature )arg1); | |
1876 | ||
1877 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1878 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
1879 | } |
1880 | { | |
1881 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1882 | } | |
1883 | return resultobj; | |
1884 | fail: | |
1885 | return NULL; | |
1886 | } | |
1887 | ||
1888 | ||
c370783e | 1889 | static PyObject *_wrap_SystemSettings_GetScreenType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1890 | PyObject *resultobj; |
1891 | int result; | |
1892 | char *kwnames[] = { | |
1893 | NULL | |
1894 | }; | |
1895 | ||
1896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SystemSettings_GetScreenType",kwnames)) goto fail; | |
1897 | { | |
0439c23b | 1898 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1900 | result = (int)wxSystemSettings::GetScreenType(); | |
1901 | ||
1902 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1903 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 1904 | } |
c370783e | 1905 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
1906 | return resultobj; |
1907 | fail: | |
1908 | return NULL; | |
1909 | } | |
1910 | ||
1911 | ||
c370783e | 1912 | static PyObject *_wrap_SystemSettings_SetScreenType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1913 | PyObject *resultobj; |
1914 | int arg1 ; | |
1915 | PyObject * obj0 = 0 ; | |
1916 | char *kwnames[] = { | |
1917 | (char *) "screen", NULL | |
1918 | }; | |
1919 | ||
1920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_SetScreenType",kwnames,&obj0)) goto fail; | |
c370783e | 1921 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
1922 | if (PyErr_Occurred()) SWIG_fail; |
1923 | { | |
0439c23b | 1924 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1926 | wxSystemSettings::SetScreenType((wxSystemScreenType )arg1); | |
1927 | ||
1928 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1929 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
1930 | } |
1931 | Py_INCREF(Py_None); resultobj = Py_None; | |
1932 | return resultobj; | |
1933 | fail: | |
1934 | return NULL; | |
1935 | } | |
1936 | ||
1937 | ||
c370783e | 1938 | static PyObject * SystemSettings_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
1939 | PyObject *obj; |
1940 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1941 | SWIG_TypeClientData(SWIGTYPE_p_wxSystemSettings, obj); | |
1942 | Py_INCREF(obj); | |
1943 | return Py_BuildValue((char *)""); | |
1944 | } | |
629e65c2 RD |
1945 | static int _wrap_WINDOW_DEFAULT_VARIANT_set(PyObject *) { |
1946 | PyErr_SetString(PyExc_TypeError,"Variable WINDOW_DEFAULT_VARIANT is read-only."); | |
1947 | return 1; | |
1948 | } | |
1949 | ||
1950 | ||
1951 | static PyObject *_wrap_WINDOW_DEFAULT_VARIANT_get() { | |
1952 | PyObject *pyobj; | |
1953 | ||
1954 | { | |
1955 | #if wxUSE_UNICODE | |
1956 | pyobj = PyUnicode_FromWideChar((&wxPyWINDOW_DEFAULT_VARIANT)->c_str(), (&wxPyWINDOW_DEFAULT_VARIANT)->Len()); | |
1957 | #else | |
1958 | pyobj = PyString_FromStringAndSize((&wxPyWINDOW_DEFAULT_VARIANT)->c_str(), (&wxPyWINDOW_DEFAULT_VARIANT)->Len()); | |
1959 | #endif | |
1960 | } | |
1961 | return pyobj; | |
1962 | } | |
1963 | ||
1964 | ||
c370783e | 1965 | static PyObject *_wrap_new_SystemOptions(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1966 | PyObject *resultobj; |
1967 | wxSystemOptions *result; | |
1968 | char *kwnames[] = { | |
1969 | NULL | |
1970 | }; | |
1971 | ||
1972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SystemOptions",kwnames)) goto fail; | |
1973 | { | |
1974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1975 | result = (wxSystemOptions *)new wxSystemOptions(); | |
1976 | ||
1977 | wxPyEndAllowThreads(__tstate); | |
1978 | if (PyErr_Occurred()) SWIG_fail; | |
1979 | } | |
1980 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSystemOptions, 1); | |
1981 | return resultobj; | |
1982 | fail: | |
1983 | return NULL; | |
1984 | } | |
1985 | ||
1986 | ||
c370783e | 1987 | static PyObject *_wrap_SystemOptions_SetOption(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1988 | PyObject *resultobj; |
1989 | wxString *arg1 = 0 ; | |
1990 | wxString *arg2 = 0 ; | |
b411df4a RD |
1991 | bool temp1 = false ; |
1992 | bool temp2 = false ; | |
d55e5bfc RD |
1993 | PyObject * obj0 = 0 ; |
1994 | PyObject * obj1 = 0 ; | |
1995 | char *kwnames[] = { | |
1996 | (char *) "name",(char *) "value", NULL | |
1997 | }; | |
1998 | ||
1999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOption",kwnames,&obj0,&obj1)) goto fail; | |
2000 | { | |
2001 | arg1 = wxString_in_helper(obj0); | |
2002 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 2003 | temp1 = true; |
d55e5bfc RD |
2004 | } |
2005 | { | |
2006 | arg2 = wxString_in_helper(obj1); | |
2007 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 2008 | temp2 = true; |
d55e5bfc RD |
2009 | } |
2010 | { | |
2011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2012 | wxSystemOptions::SetOption((wxString const &)*arg1,(wxString const &)*arg2); | |
2013 | ||
2014 | wxPyEndAllowThreads(__tstate); | |
2015 | if (PyErr_Occurred()) SWIG_fail; | |
2016 | } | |
2017 | Py_INCREF(Py_None); resultobj = Py_None; | |
2018 | { | |
2019 | if (temp1) | |
2020 | delete arg1; | |
2021 | } | |
2022 | { | |
2023 | if (temp2) | |
2024 | delete arg2; | |
2025 | } | |
2026 | return resultobj; | |
2027 | fail: | |
2028 | { | |
2029 | if (temp1) | |
2030 | delete arg1; | |
2031 | } | |
2032 | { | |
2033 | if (temp2) | |
2034 | delete arg2; | |
2035 | } | |
2036 | return NULL; | |
2037 | } | |
2038 | ||
2039 | ||
c370783e | 2040 | static PyObject *_wrap_SystemOptions_SetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2041 | PyObject *resultobj; |
2042 | wxString *arg1 = 0 ; | |
2043 | int arg2 ; | |
b411df4a | 2044 | bool temp1 = false ; |
d55e5bfc RD |
2045 | PyObject * obj0 = 0 ; |
2046 | PyObject * obj1 = 0 ; | |
2047 | char *kwnames[] = { | |
2048 | (char *) "name",(char *) "value", NULL | |
2049 | }; | |
2050 | ||
2051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOptionInt",kwnames,&obj0,&obj1)) goto fail; | |
2052 | { | |
2053 | arg1 = wxString_in_helper(obj0); | |
2054 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 2055 | temp1 = true; |
d55e5bfc | 2056 | } |
c370783e | 2057 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
2058 | if (PyErr_Occurred()) SWIG_fail; |
2059 | { | |
2060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2061 | wxSystemOptions::SetOption((wxString const &)*arg1,arg2); | |
2062 | ||
2063 | wxPyEndAllowThreads(__tstate); | |
2064 | if (PyErr_Occurred()) SWIG_fail; | |
2065 | } | |
2066 | Py_INCREF(Py_None); resultobj = Py_None; | |
2067 | { | |
2068 | if (temp1) | |
2069 | delete arg1; | |
2070 | } | |
2071 | return resultobj; | |
2072 | fail: | |
2073 | { | |
2074 | if (temp1) | |
2075 | delete arg1; | |
2076 | } | |
2077 | return NULL; | |
2078 | } | |
2079 | ||
2080 | ||
c370783e | 2081 | static PyObject *_wrap_SystemOptions_GetOption(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2082 | PyObject *resultobj; |
2083 | wxString *arg1 = 0 ; | |
2084 | wxString result; | |
b411df4a | 2085 | bool temp1 = false ; |
d55e5bfc RD |
2086 | PyObject * obj0 = 0 ; |
2087 | char *kwnames[] = { | |
2088 | (char *) "name", NULL | |
2089 | }; | |
2090 | ||
2091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOption",kwnames,&obj0)) goto fail; | |
2092 | { | |
2093 | arg1 = wxString_in_helper(obj0); | |
2094 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 2095 | temp1 = true; |
d55e5bfc RD |
2096 | } |
2097 | { | |
2098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2099 | result = wxSystemOptions::GetOption((wxString const &)*arg1); | |
2100 | ||
2101 | wxPyEndAllowThreads(__tstate); | |
2102 | if (PyErr_Occurred()) SWIG_fail; | |
2103 | } | |
2104 | { | |
2105 | #if wxUSE_UNICODE | |
2106 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2107 | #else | |
2108 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2109 | #endif | |
2110 | } | |
2111 | { | |
2112 | if (temp1) | |
2113 | delete arg1; | |
2114 | } | |
2115 | return resultobj; | |
2116 | fail: | |
2117 | { | |
2118 | if (temp1) | |
2119 | delete arg1; | |
2120 | } | |
2121 | return NULL; | |
2122 | } | |
2123 | ||
2124 | ||
c370783e | 2125 | static PyObject *_wrap_SystemOptions_GetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2126 | PyObject *resultobj; |
2127 | wxString *arg1 = 0 ; | |
2128 | int result; | |
b411df4a | 2129 | bool temp1 = false ; |
d55e5bfc RD |
2130 | PyObject * obj0 = 0 ; |
2131 | char *kwnames[] = { | |
2132 | (char *) "name", NULL | |
2133 | }; | |
2134 | ||
2135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOptionInt",kwnames,&obj0)) goto fail; | |
2136 | { | |
2137 | arg1 = wxString_in_helper(obj0); | |
2138 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 2139 | temp1 = true; |
d55e5bfc RD |
2140 | } |
2141 | { | |
2142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2143 | result = (int)wxSystemOptions::GetOptionInt((wxString const &)*arg1); | |
2144 | ||
2145 | wxPyEndAllowThreads(__tstate); | |
2146 | if (PyErr_Occurred()) SWIG_fail; | |
2147 | } | |
c370783e | 2148 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
2149 | { |
2150 | if (temp1) | |
2151 | delete arg1; | |
2152 | } | |
2153 | return resultobj; | |
2154 | fail: | |
2155 | { | |
2156 | if (temp1) | |
2157 | delete arg1; | |
2158 | } | |
2159 | return NULL; | |
2160 | } | |
2161 | ||
2162 | ||
c370783e | 2163 | static PyObject *_wrap_SystemOptions_HasOption(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2164 | PyObject *resultobj; |
2165 | wxString *arg1 = 0 ; | |
2166 | bool result; | |
b411df4a | 2167 | bool temp1 = false ; |
d55e5bfc RD |
2168 | PyObject * obj0 = 0 ; |
2169 | char *kwnames[] = { | |
2170 | (char *) "name", NULL | |
2171 | }; | |
2172 | ||
2173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_HasOption",kwnames,&obj0)) goto fail; | |
2174 | { | |
2175 | arg1 = wxString_in_helper(obj0); | |
2176 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 2177 | temp1 = true; |
d55e5bfc RD |
2178 | } |
2179 | { | |
2180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2181 | result = (bool)wxSystemOptions::HasOption((wxString const &)*arg1); | |
2182 | ||
2183 | wxPyEndAllowThreads(__tstate); | |
2184 | if (PyErr_Occurred()) SWIG_fail; | |
2185 | } | |
2186 | { | |
2187 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2188 | } | |
2189 | { | |
2190 | if (temp1) | |
2191 | delete arg1; | |
2192 | } | |
2193 | return resultobj; | |
2194 | fail: | |
2195 | { | |
2196 | if (temp1) | |
2197 | delete arg1; | |
2198 | } | |
2199 | return NULL; | |
2200 | } | |
2201 | ||
2202 | ||
c370783e | 2203 | static PyObject * SystemOptions_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
2204 | PyObject *obj; |
2205 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2206 | SWIG_TypeClientData(SWIGTYPE_p_wxSystemOptions, obj); | |
2207 | Py_INCREF(obj); | |
2208 | return Py_BuildValue((char *)""); | |
2209 | } | |
c370783e | 2210 | static int _wrap_FileSelectorPromptStr_set(PyObject *) { |
d55e5bfc RD |
2211 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only."); |
2212 | return 1; | |
2213 | } | |
2214 | ||
2215 | ||
2216 | static PyObject *_wrap_FileSelectorPromptStr_get() { | |
2217 | PyObject *pyobj; | |
2218 | ||
2219 | { | |
2220 | #if wxUSE_UNICODE | |
2221 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
2222 | #else | |
2223 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
2224 | #endif | |
2225 | } | |
2226 | return pyobj; | |
2227 | } | |
2228 | ||
2229 | ||
c370783e | 2230 | static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *) { |
d55e5bfc RD |
2231 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only."); |
2232 | return 1; | |
2233 | } | |
2234 | ||
2235 | ||
2236 | static PyObject *_wrap_FileSelectorDefaultWildcardStr_get() { | |
2237 | PyObject *pyobj; | |
2238 | ||
2239 | { | |
2240 | #if wxUSE_UNICODE | |
2241 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
2242 | #else | |
2243 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
2244 | #endif | |
2245 | } | |
2246 | return pyobj; | |
2247 | } | |
2248 | ||
2249 | ||
c370783e | 2250 | static int _wrap_DirSelectorPromptStr_set(PyObject *) { |
d55e5bfc RD |
2251 | PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only."); |
2252 | return 1; | |
2253 | } | |
2254 | ||
2255 | ||
2256 | static PyObject *_wrap_DirSelectorPromptStr_get() { | |
2257 | PyObject *pyobj; | |
2258 | ||
2259 | { | |
2260 | #if wxUSE_UNICODE | |
2261 | pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
2262 | #else | |
2263 | pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
2264 | #endif | |
2265 | } | |
2266 | return pyobj; | |
2267 | } | |
2268 | ||
2269 | ||
c370783e | 2270 | static PyObject *_wrap_NewId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2271 | PyObject *resultobj; |
2272 | long result; | |
2273 | char *kwnames[] = { | |
2274 | NULL | |
2275 | }; | |
2276 | ||
2277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewId",kwnames)) goto fail; | |
2278 | { | |
2279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2280 | result = (long)wxNewId(); | |
2281 | ||
2282 | wxPyEndAllowThreads(__tstate); | |
2283 | if (PyErr_Occurred()) SWIG_fail; | |
2284 | } | |
c370783e | 2285 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
2286 | return resultobj; |
2287 | fail: | |
2288 | return NULL; | |
2289 | } | |
2290 | ||
2291 | ||
c370783e | 2292 | static PyObject *_wrap_RegisterId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2293 | PyObject *resultobj; |
2294 | long arg1 ; | |
2295 | PyObject * obj0 = 0 ; | |
2296 | char *kwnames[] = { | |
2297 | (char *) "id", NULL | |
2298 | }; | |
2299 | ||
2300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegisterId",kwnames,&obj0)) goto fail; | |
c370783e | 2301 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
2302 | if (PyErr_Occurred()) SWIG_fail; |
2303 | { | |
2304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2305 | wxRegisterId(arg1); | |
2306 | ||
2307 | wxPyEndAllowThreads(__tstate); | |
2308 | if (PyErr_Occurred()) SWIG_fail; | |
2309 | } | |
2310 | Py_INCREF(Py_None); resultobj = Py_None; | |
2311 | return resultobj; | |
2312 | fail: | |
2313 | return NULL; | |
2314 | } | |
2315 | ||
2316 | ||
c370783e | 2317 | static PyObject *_wrap_GetCurrentId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2318 | PyObject *resultobj; |
2319 | long result; | |
2320 | char *kwnames[] = { | |
2321 | NULL | |
2322 | }; | |
2323 | ||
2324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentId",kwnames)) goto fail; | |
2325 | { | |
2326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2327 | result = (long)wxGetCurrentId(); | |
2328 | ||
2329 | wxPyEndAllowThreads(__tstate); | |
2330 | if (PyErr_Occurred()) SWIG_fail; | |
2331 | } | |
c370783e | 2332 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
2333 | return resultobj; |
2334 | fail: | |
2335 | return NULL; | |
2336 | } | |
2337 | ||
2338 | ||
c370783e | 2339 | static PyObject *_wrap_IsStockID(PyObject *, PyObject *args, PyObject *kwargs) { |
01ac03ba RD |
2340 | PyObject *resultobj; |
2341 | int arg1 ; | |
2342 | bool result; | |
2343 | PyObject * obj0 = 0 ; | |
2344 | char *kwnames[] = { | |
2345 | (char *) "id", NULL | |
2346 | }; | |
2347 | ||
a8d99e09 | 2348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsStockID",kwnames,&obj0)) goto fail; |
c370783e | 2349 | arg1 = (int)SWIG_As_int(obj0); |
01ac03ba RD |
2350 | if (PyErr_Occurred()) SWIG_fail; |
2351 | { | |
2352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2353 | result = (bool)wxIsStockID(arg1); | |
2354 | ||
2355 | wxPyEndAllowThreads(__tstate); | |
2356 | if (PyErr_Occurred()) SWIG_fail; | |
2357 | } | |
2358 | { | |
2359 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2360 | } | |
2361 | return resultobj; | |
2362 | fail: | |
2363 | return NULL; | |
2364 | } | |
2365 | ||
2366 | ||
c370783e | 2367 | static PyObject *_wrap_IsStockLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
01ac03ba RD |
2368 | PyObject *resultobj; |
2369 | int arg1 ; | |
2370 | wxString *arg2 = 0 ; | |
2371 | bool result; | |
b411df4a | 2372 | bool temp2 = false ; |
01ac03ba RD |
2373 | PyObject * obj0 = 0 ; |
2374 | PyObject * obj1 = 0 ; | |
2375 | char *kwnames[] = { | |
2376 | (char *) "id",(char *) "label", NULL | |
2377 | }; | |
2378 | ||
a8d99e09 | 2379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IsStockLabel",kwnames,&obj0,&obj1)) goto fail; |
c370783e | 2380 | arg1 = (int)SWIG_As_int(obj0); |
01ac03ba RD |
2381 | if (PyErr_Occurred()) SWIG_fail; |
2382 | { | |
2383 | arg2 = wxString_in_helper(obj1); | |
2384 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 2385 | temp2 = true; |
01ac03ba RD |
2386 | } |
2387 | { | |
2388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2389 | result = (bool)wxIsStockLabel(arg1,(wxString const &)*arg2); | |
2390 | ||
2391 | wxPyEndAllowThreads(__tstate); | |
2392 | if (PyErr_Occurred()) SWIG_fail; | |
2393 | } | |
2394 | { | |
2395 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2396 | } | |
2397 | { | |
2398 | if (temp2) | |
2399 | delete arg2; | |
2400 | } | |
2401 | return resultobj; | |
2402 | fail: | |
2403 | { | |
2404 | if (temp2) | |
2405 | delete arg2; | |
2406 | } | |
2407 | return NULL; | |
2408 | } | |
2409 | ||
2410 | ||
c370783e | 2411 | static PyObject *_wrap_GetStockLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
01ac03ba RD |
2412 | PyObject *resultobj; |
2413 | int arg1 ; | |
2414 | wxString result; | |
2415 | PyObject * obj0 = 0 ; | |
2416 | char *kwnames[] = { | |
2417 | (char *) "id", NULL | |
2418 | }; | |
2419 | ||
a8d99e09 | 2420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetStockLabel",kwnames,&obj0)) goto fail; |
c370783e | 2421 | arg1 = (int)SWIG_As_int(obj0); |
01ac03ba RD |
2422 | if (PyErr_Occurred()) SWIG_fail; |
2423 | { | |
2424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2425 | result = wxGetStockLabel(arg1); | |
2426 | ||
2427 | wxPyEndAllowThreads(__tstate); | |
2428 | if (PyErr_Occurred()) SWIG_fail; | |
2429 | } | |
2430 | { | |
2431 | #if wxUSE_UNICODE | |
2432 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2433 | #else | |
2434 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2435 | #endif | |
2436 | } | |
2437 | return resultobj; | |
2438 | fail: | |
2439 | return NULL; | |
2440 | } | |
2441 | ||
2442 | ||
c370783e | 2443 | static PyObject *_wrap_Bell(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2444 | PyObject *resultobj; |
2445 | char *kwnames[] = { | |
2446 | NULL | |
2447 | }; | |
2448 | ||
2449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Bell",kwnames)) goto fail; | |
2450 | { | |
0439c23b | 2451 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2453 | wxBell(); | |
2454 | ||
2455 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2456 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2457 | } |
2458 | Py_INCREF(Py_None); resultobj = Py_None; | |
2459 | return resultobj; | |
2460 | fail: | |
2461 | return NULL; | |
2462 | } | |
2463 | ||
2464 | ||
c370783e | 2465 | static PyObject *_wrap_EndBusyCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2466 | PyObject *resultobj; |
2467 | char *kwnames[] = { | |
2468 | NULL | |
2469 | }; | |
2470 | ||
2471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EndBusyCursor",kwnames)) goto fail; | |
2472 | { | |
0439c23b | 2473 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2475 | wxEndBusyCursor(); | |
2476 | ||
2477 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2478 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2479 | } |
2480 | Py_INCREF(Py_None); resultobj = Py_None; | |
2481 | return resultobj; | |
2482 | fail: | |
2483 | return NULL; | |
2484 | } | |
2485 | ||
2486 | ||
c370783e | 2487 | static PyObject *_wrap_GetElapsedTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 2488 | PyObject *resultobj; |
b411df4a | 2489 | bool arg1 = (bool) true ; |
d55e5bfc RD |
2490 | long result; |
2491 | PyObject * obj0 = 0 ; | |
2492 | char *kwnames[] = { | |
2493 | (char *) "resetTimer", NULL | |
2494 | }; | |
2495 | ||
2496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetElapsedTime",kwnames,&obj0)) goto fail; | |
2497 | if (obj0) { | |
c370783e | 2498 | arg1 = (bool)SWIG_As_bool(obj0); |
d55e5bfc RD |
2499 | if (PyErr_Occurred()) SWIG_fail; |
2500 | } | |
2501 | { | |
2502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2503 | result = (long)wxGetElapsedTime(arg1); | |
2504 | ||
2505 | wxPyEndAllowThreads(__tstate); | |
2506 | if (PyErr_Occurred()) SWIG_fail; | |
2507 | } | |
c370783e | 2508 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
2509 | return resultobj; |
2510 | fail: | |
2511 | return NULL; | |
2512 | } | |
2513 | ||
2514 | ||
c370783e | 2515 | static PyObject *_wrap_GetMousePosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2516 | PyObject *resultobj; |
2517 | int *arg1 = (int *) 0 ; | |
2518 | int *arg2 = (int *) 0 ; | |
2519 | int temp1 ; | |
c370783e | 2520 | int res1 = 0 ; |
d55e5bfc | 2521 | int temp2 ; |
c370783e | 2522 | int res2 = 0 ; |
d55e5bfc RD |
2523 | char *kwnames[] = { |
2524 | NULL | |
2525 | }; | |
2526 | ||
c370783e RD |
2527 | arg1 = &temp1; res1 = SWIG_NEWOBJ; |
2528 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
d55e5bfc RD |
2529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMousePosition",kwnames)) goto fail; |
2530 | { | |
0439c23b | 2531 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2533 | wxGetMousePosition(arg1,arg2); | |
2534 | ||
2535 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2536 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2537 | } |
2538 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
2539 | resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ? |
2540 | SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0))); | |
2541 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
2542 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
2543 | return resultobj; |
2544 | fail: | |
2545 | return NULL; | |
2546 | } | |
2547 | ||
2548 | ||
c370783e | 2549 | static PyObject *_wrap_IsBusy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2550 | PyObject *resultobj; |
2551 | bool result; | |
2552 | char *kwnames[] = { | |
2553 | NULL | |
2554 | }; | |
2555 | ||
2556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IsBusy",kwnames)) goto fail; | |
2557 | { | |
2558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2559 | result = (bool)wxIsBusy(); | |
2560 | ||
2561 | wxPyEndAllowThreads(__tstate); | |
2562 | if (PyErr_Occurred()) SWIG_fail; | |
2563 | } | |
2564 | { | |
2565 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2566 | } | |
2567 | return resultobj; | |
2568 | fail: | |
2569 | return NULL; | |
2570 | } | |
2571 | ||
2572 | ||
c370783e | 2573 | static PyObject *_wrap_Now(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2574 | PyObject *resultobj; |
2575 | wxString result; | |
2576 | char *kwnames[] = { | |
2577 | NULL | |
2578 | }; | |
2579 | ||
2580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Now",kwnames)) goto fail; | |
2581 | { | |
2582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2583 | result = wxNow(); | |
2584 | ||
2585 | wxPyEndAllowThreads(__tstate); | |
2586 | if (PyErr_Occurred()) SWIG_fail; | |
2587 | } | |
2588 | { | |
2589 | #if wxUSE_UNICODE | |
2590 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2591 | #else | |
2592 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2593 | #endif | |
2594 | } | |
2595 | return resultobj; | |
2596 | fail: | |
2597 | return NULL; | |
2598 | } | |
2599 | ||
2600 | ||
c370783e | 2601 | static PyObject *_wrap_Shell(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2602 | PyObject *resultobj; |
2603 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
2604 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2605 | bool result; | |
b411df4a | 2606 | bool temp1 = false ; |
d55e5bfc RD |
2607 | PyObject * obj0 = 0 ; |
2608 | char *kwnames[] = { | |
2609 | (char *) "command", NULL | |
2610 | }; | |
2611 | ||
2612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Shell",kwnames,&obj0)) goto fail; | |
2613 | if (obj0) { | |
2614 | { | |
2615 | arg1 = wxString_in_helper(obj0); | |
2616 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 2617 | temp1 = true; |
d55e5bfc RD |
2618 | } |
2619 | } | |
2620 | { | |
2621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2622 | result = (bool)wxShell((wxString const &)*arg1); | |
2623 | ||
2624 | wxPyEndAllowThreads(__tstate); | |
2625 | if (PyErr_Occurred()) SWIG_fail; | |
2626 | } | |
2627 | { | |
2628 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2629 | } | |
2630 | { | |
2631 | if (temp1) | |
2632 | delete arg1; | |
2633 | } | |
2634 | return resultobj; | |
2635 | fail: | |
2636 | { | |
2637 | if (temp1) | |
2638 | delete arg1; | |
2639 | } | |
2640 | return NULL; | |
2641 | } | |
2642 | ||
2643 | ||
c370783e | 2644 | static PyObject *_wrap_StartTimer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2645 | PyObject *resultobj; |
2646 | char *kwnames[] = { | |
2647 | NULL | |
2648 | }; | |
2649 | ||
2650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StartTimer",kwnames)) goto fail; | |
2651 | { | |
2652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2653 | wxStartTimer(); | |
2654 | ||
2655 | wxPyEndAllowThreads(__tstate); | |
2656 | if (PyErr_Occurred()) SWIG_fail; | |
2657 | } | |
2658 | Py_INCREF(Py_None); resultobj = Py_None; | |
2659 | return resultobj; | |
2660 | fail: | |
2661 | return NULL; | |
2662 | } | |
2663 | ||
2664 | ||
c370783e | 2665 | static PyObject *_wrap_GetOsVersion(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2666 | PyObject *resultobj; |
2667 | int *arg1 = (int *) 0 ; | |
2668 | int *arg2 = (int *) 0 ; | |
2669 | int result; | |
2670 | int temp1 ; | |
c370783e | 2671 | int res1 = 0 ; |
d55e5bfc | 2672 | int temp2 ; |
c370783e | 2673 | int res2 = 0 ; |
d55e5bfc RD |
2674 | char *kwnames[] = { |
2675 | NULL | |
2676 | }; | |
2677 | ||
c370783e RD |
2678 | arg1 = &temp1; res1 = SWIG_NEWOBJ; |
2679 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
d55e5bfc RD |
2680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsVersion",kwnames)) goto fail; |
2681 | { | |
2682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2683 | result = (int)wxGetOsVersion(arg1,arg2); | |
2684 | ||
2685 | wxPyEndAllowThreads(__tstate); | |
2686 | if (PyErr_Occurred()) SWIG_fail; | |
2687 | } | |
c370783e RD |
2688 | resultobj = SWIG_From_int((int)result); |
2689 | resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ? | |
2690 | SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0))); | |
2691 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
2692 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
2693 | return resultobj; |
2694 | fail: | |
2695 | return NULL; | |
2696 | } | |
2697 | ||
2698 | ||
c370783e | 2699 | static PyObject *_wrap_GetOsDescription(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2700 | PyObject *resultobj; |
2701 | wxString result; | |
2702 | char *kwnames[] = { | |
2703 | NULL | |
2704 | }; | |
2705 | ||
2706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsDescription",kwnames)) goto fail; | |
2707 | { | |
2708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2709 | result = wxGetOsDescription(); | |
2710 | ||
2711 | wxPyEndAllowThreads(__tstate); | |
2712 | if (PyErr_Occurred()) SWIG_fail; | |
2713 | } | |
2714 | { | |
2715 | #if wxUSE_UNICODE | |
2716 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2717 | #else | |
2718 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2719 | #endif | |
2720 | } | |
2721 | return resultobj; | |
2722 | fail: | |
2723 | return NULL; | |
2724 | } | |
2725 | ||
2726 | ||
c370783e | 2727 | static PyObject *_wrap_GetFreeMemory(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2728 | PyObject *resultobj; |
2729 | long result; | |
2730 | char *kwnames[] = { | |
2731 | NULL | |
2732 | }; | |
2733 | ||
2734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFreeMemory",kwnames)) goto fail; | |
2735 | { | |
2736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2737 | result = (long)wxGetFreeMemory(); | |
2738 | ||
2739 | wxPyEndAllowThreads(__tstate); | |
2740 | if (PyErr_Occurred()) SWIG_fail; | |
2741 | } | |
c370783e | 2742 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
2743 | return resultobj; |
2744 | fail: | |
2745 | return NULL; | |
2746 | } | |
2747 | ||
2748 | ||
c370783e | 2749 | static PyObject *_wrap_Shutdown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2750 | PyObject *resultobj; |
2751 | int arg1 ; | |
2752 | bool result; | |
2753 | PyObject * obj0 = 0 ; | |
2754 | char *kwnames[] = { | |
2755 | (char *) "wFlags", NULL | |
2756 | }; | |
2757 | ||
2758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Shutdown",kwnames,&obj0)) goto fail; | |
c370783e | 2759 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
2760 | if (PyErr_Occurred()) SWIG_fail; |
2761 | { | |
0439c23b | 2762 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2764 | result = (bool)wxShutdown((wxShutdownFlags )arg1); | |
2765 | ||
2766 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2767 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2768 | } |
2769 | { | |
2770 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2771 | } | |
2772 | return resultobj; | |
2773 | fail: | |
2774 | return NULL; | |
2775 | } | |
2776 | ||
2777 | ||
c370783e | 2778 | static PyObject *_wrap_Sleep(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2779 | PyObject *resultobj; |
2780 | int arg1 ; | |
2781 | PyObject * obj0 = 0 ; | |
2782 | char *kwnames[] = { | |
2783 | (char *) "secs", NULL | |
2784 | }; | |
2785 | ||
2786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sleep",kwnames,&obj0)) goto fail; | |
c370783e | 2787 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
2788 | if (PyErr_Occurred()) SWIG_fail; |
2789 | { | |
2790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2791 | wxSleep(arg1); | |
2792 | ||
2793 | wxPyEndAllowThreads(__tstate); | |
2794 | if (PyErr_Occurred()) SWIG_fail; | |
2795 | } | |
2796 | Py_INCREF(Py_None); resultobj = Py_None; | |
2797 | return resultobj; | |
2798 | fail: | |
2799 | return NULL; | |
2800 | } | |
2801 | ||
2802 | ||
c370783e | 2803 | static PyObject *_wrap_MilliSleep(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2804 | PyObject *resultobj; |
2805 | unsigned long arg1 ; | |
2806 | PyObject * obj0 = 0 ; | |
2807 | char *kwnames[] = { | |
2808 | (char *) "milliseconds", NULL | |
2809 | }; | |
2810 | ||
bf26d883 | 2811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MilliSleep",kwnames,&obj0)) goto fail; |
c370783e | 2812 | arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0); |
d55e5bfc RD |
2813 | if (PyErr_Occurred()) SWIG_fail; |
2814 | { | |
2815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
bf26d883 RD |
2816 | wxMilliSleep(arg1); |
2817 | ||
2818 | wxPyEndAllowThreads(__tstate); | |
2819 | if (PyErr_Occurred()) SWIG_fail; | |
2820 | } | |
2821 | Py_INCREF(Py_None); resultobj = Py_None; | |
2822 | return resultobj; | |
2823 | fail: | |
2824 | return NULL; | |
2825 | } | |
2826 | ||
2827 | ||
c370783e | 2828 | static PyObject *_wrap_MicroSleep(PyObject *, PyObject *args, PyObject *kwargs) { |
bf26d883 RD |
2829 | PyObject *resultobj; |
2830 | unsigned long arg1 ; | |
2831 | PyObject * obj0 = 0 ; | |
2832 | char *kwnames[] = { | |
2833 | (char *) "microseconds", NULL | |
2834 | }; | |
2835 | ||
2836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MicroSleep",kwnames,&obj0)) goto fail; | |
c370783e | 2837 | arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0); |
bf26d883 RD |
2838 | if (PyErr_Occurred()) SWIG_fail; |
2839 | { | |
2840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2841 | wxMicroSleep(arg1); | |
d55e5bfc RD |
2842 | |
2843 | wxPyEndAllowThreads(__tstate); | |
2844 | if (PyErr_Occurred()) SWIG_fail; | |
2845 | } | |
2846 | Py_INCREF(Py_None); resultobj = Py_None; | |
2847 | return resultobj; | |
2848 | fail: | |
2849 | return NULL; | |
2850 | } | |
2851 | ||
2852 | ||
c370783e | 2853 | static PyObject *_wrap_EnableTopLevelWindows(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2854 | PyObject *resultobj; |
2855 | bool arg1 ; | |
2856 | PyObject * obj0 = 0 ; | |
2857 | char *kwnames[] = { | |
2858 | (char *) "enable", NULL | |
2859 | }; | |
2860 | ||
2861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EnableTopLevelWindows",kwnames,&obj0)) goto fail; | |
c370783e | 2862 | arg1 = (bool)SWIG_As_bool(obj0); |
d55e5bfc RD |
2863 | if (PyErr_Occurred()) SWIG_fail; |
2864 | { | |
2865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2866 | wxEnableTopLevelWindows(arg1); | |
2867 | ||
2868 | wxPyEndAllowThreads(__tstate); | |
2869 | if (PyErr_Occurred()) SWIG_fail; | |
2870 | } | |
2871 | Py_INCREF(Py_None); resultobj = Py_None; | |
2872 | return resultobj; | |
2873 | fail: | |
2874 | return NULL; | |
2875 | } | |
2876 | ||
2877 | ||
c370783e | 2878 | static PyObject *_wrap_StripMenuCodes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2879 | PyObject *resultobj; |
2880 | wxString *arg1 = 0 ; | |
2881 | wxString result; | |
b411df4a | 2882 | bool temp1 = false ; |
d55e5bfc RD |
2883 | PyObject * obj0 = 0 ; |
2884 | char *kwnames[] = { | |
2885 | (char *) "in", NULL | |
2886 | }; | |
2887 | ||
2888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StripMenuCodes",kwnames,&obj0)) goto fail; | |
2889 | { | |
2890 | arg1 = wxString_in_helper(obj0); | |
2891 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 2892 | temp1 = true; |
d55e5bfc RD |
2893 | } |
2894 | { | |
2895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2896 | result = wxStripMenuCodes((wxString const &)*arg1); | |
2897 | ||
2898 | wxPyEndAllowThreads(__tstate); | |
2899 | if (PyErr_Occurred()) SWIG_fail; | |
2900 | } | |
2901 | { | |
2902 | #if wxUSE_UNICODE | |
2903 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2904 | #else | |
2905 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2906 | #endif | |
2907 | } | |
2908 | { | |
2909 | if (temp1) | |
2910 | delete arg1; | |
2911 | } | |
2912 | return resultobj; | |
2913 | fail: | |
2914 | { | |
2915 | if (temp1) | |
2916 | delete arg1; | |
2917 | } | |
2918 | return NULL; | |
2919 | } | |
2920 | ||
2921 | ||
c370783e | 2922 | static PyObject *_wrap_GetEmailAddress(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2923 | PyObject *resultobj; |
2924 | wxString result; | |
2925 | char *kwnames[] = { | |
2926 | NULL | |
2927 | }; | |
2928 | ||
2929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetEmailAddress",kwnames)) goto fail; | |
2930 | { | |
2931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2932 | result = wxGetEmailAddress(); | |
2933 | ||
2934 | wxPyEndAllowThreads(__tstate); | |
2935 | if (PyErr_Occurred()) SWIG_fail; | |
2936 | } | |
2937 | { | |
2938 | #if wxUSE_UNICODE | |
2939 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2940 | #else | |
2941 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2942 | #endif | |
2943 | } | |
2944 | return resultobj; | |
2945 | fail: | |
2946 | return NULL; | |
2947 | } | |
2948 | ||
2949 | ||
c370783e | 2950 | static PyObject *_wrap_GetHostName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2951 | PyObject *resultobj; |
2952 | wxString result; | |
2953 | char *kwnames[] = { | |
2954 | NULL | |
2955 | }; | |
2956 | ||
2957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHostName",kwnames)) goto fail; | |
2958 | { | |
2959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2960 | result = wxGetHostName(); | |
2961 | ||
2962 | wxPyEndAllowThreads(__tstate); | |
2963 | if (PyErr_Occurred()) SWIG_fail; | |
2964 | } | |
2965 | { | |
2966 | #if wxUSE_UNICODE | |
2967 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2968 | #else | |
2969 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2970 | #endif | |
2971 | } | |
2972 | return resultobj; | |
2973 | fail: | |
2974 | return NULL; | |
2975 | } | |
2976 | ||
2977 | ||
c370783e | 2978 | static PyObject *_wrap_GetFullHostName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2979 | PyObject *resultobj; |
2980 | wxString result; | |
2981 | char *kwnames[] = { | |
2982 | NULL | |
2983 | }; | |
2984 | ||
2985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFullHostName",kwnames)) goto fail; | |
2986 | { | |
2987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2988 | result = wxGetFullHostName(); | |
2989 | ||
2990 | wxPyEndAllowThreads(__tstate); | |
2991 | if (PyErr_Occurred()) SWIG_fail; | |
2992 | } | |
2993 | { | |
2994 | #if wxUSE_UNICODE | |
2995 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2996 | #else | |
2997 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2998 | #endif | |
2999 | } | |
3000 | return resultobj; | |
3001 | fail: | |
3002 | return NULL; | |
3003 | } | |
3004 | ||
3005 | ||
c370783e | 3006 | static PyObject *_wrap_GetUserId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3007 | PyObject *resultobj; |
3008 | wxString result; | |
3009 | char *kwnames[] = { | |
3010 | NULL | |
3011 | }; | |
3012 | ||
3013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserId",kwnames)) goto fail; | |
3014 | { | |
3015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3016 | result = wxGetUserId(); | |
3017 | ||
3018 | wxPyEndAllowThreads(__tstate); | |
3019 | if (PyErr_Occurred()) SWIG_fail; | |
3020 | } | |
3021 | { | |
3022 | #if wxUSE_UNICODE | |
3023 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3024 | #else | |
3025 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3026 | #endif | |
3027 | } | |
3028 | return resultobj; | |
3029 | fail: | |
3030 | return NULL; | |
3031 | } | |
3032 | ||
3033 | ||
c370783e | 3034 | static PyObject *_wrap_GetUserName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3035 | PyObject *resultobj; |
3036 | wxString result; | |
3037 | char *kwnames[] = { | |
3038 | NULL | |
3039 | }; | |
3040 | ||
3041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserName",kwnames)) goto fail; | |
3042 | { | |
3043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3044 | result = wxGetUserName(); | |
3045 | ||
3046 | wxPyEndAllowThreads(__tstate); | |
3047 | if (PyErr_Occurred()) SWIG_fail; | |
3048 | } | |
3049 | { | |
3050 | #if wxUSE_UNICODE | |
3051 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3052 | #else | |
3053 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3054 | #endif | |
3055 | } | |
3056 | return resultobj; | |
3057 | fail: | |
3058 | return NULL; | |
3059 | } | |
3060 | ||
3061 | ||
c370783e | 3062 | static PyObject *_wrap_GetHomeDir(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3063 | PyObject *resultobj; |
3064 | wxString result; | |
3065 | char *kwnames[] = { | |
3066 | NULL | |
3067 | }; | |
3068 | ||
3069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHomeDir",kwnames)) goto fail; | |
3070 | { | |
3071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3072 | result = wxGetHomeDir(); | |
3073 | ||
3074 | wxPyEndAllowThreads(__tstate); | |
3075 | if (PyErr_Occurred()) SWIG_fail; | |
3076 | } | |
3077 | { | |
3078 | #if wxUSE_UNICODE | |
3079 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3080 | #else | |
3081 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3082 | #endif | |
3083 | } | |
3084 | return resultobj; | |
3085 | fail: | |
3086 | return NULL; | |
3087 | } | |
3088 | ||
3089 | ||
c370783e | 3090 | static PyObject *_wrap_GetUserHome(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3091 | PyObject *resultobj; |
3092 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
3093 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
3094 | wxString result; | |
b411df4a | 3095 | bool temp1 = false ; |
d55e5bfc RD |
3096 | PyObject * obj0 = 0 ; |
3097 | char *kwnames[] = { | |
3098 | (char *) "user", NULL | |
3099 | }; | |
3100 | ||
3101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetUserHome",kwnames,&obj0)) goto fail; | |
3102 | if (obj0) { | |
3103 | { | |
3104 | arg1 = wxString_in_helper(obj0); | |
3105 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 3106 | temp1 = true; |
d55e5bfc RD |
3107 | } |
3108 | } | |
3109 | { | |
3110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3111 | result = wxGetUserHome((wxString const &)*arg1); | |
3112 | ||
3113 | wxPyEndAllowThreads(__tstate); | |
3114 | if (PyErr_Occurred()) SWIG_fail; | |
3115 | } | |
3116 | { | |
3117 | #if wxUSE_UNICODE | |
3118 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3119 | #else | |
3120 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3121 | #endif | |
3122 | } | |
3123 | { | |
3124 | if (temp1) | |
3125 | delete arg1; | |
3126 | } | |
3127 | return resultobj; | |
3128 | fail: | |
3129 | { | |
3130 | if (temp1) | |
3131 | delete arg1; | |
3132 | } | |
3133 | return NULL; | |
3134 | } | |
3135 | ||
3136 | ||
c370783e | 3137 | static PyObject *_wrap_GetProcessId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3138 | PyObject *resultobj; |
3139 | unsigned long result; | |
3140 | char *kwnames[] = { | |
3141 | NULL | |
3142 | }; | |
3143 | ||
3144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetProcessId",kwnames)) goto fail; | |
3145 | { | |
3146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3147 | result = (unsigned long)wxGetProcessId(); | |
3148 | ||
3149 | wxPyEndAllowThreads(__tstate); | |
3150 | if (PyErr_Occurred()) SWIG_fail; | |
3151 | } | |
c370783e | 3152 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
3153 | return resultobj; |
3154 | fail: | |
3155 | return NULL; | |
3156 | } | |
3157 | ||
3158 | ||
c370783e | 3159 | static PyObject *_wrap_Trap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3160 | PyObject *resultobj; |
3161 | char *kwnames[] = { | |
3162 | NULL | |
3163 | }; | |
3164 | ||
3165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Trap",kwnames)) goto fail; | |
3166 | { | |
3167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3168 | wxTrap(); | |
3169 | ||
3170 | wxPyEndAllowThreads(__tstate); | |
3171 | if (PyErr_Occurred()) SWIG_fail; | |
3172 | } | |
3173 | Py_INCREF(Py_None); resultobj = Py_None; | |
3174 | return resultobj; | |
3175 | fail: | |
3176 | return NULL; | |
3177 | } | |
3178 | ||
3179 | ||
c370783e | 3180 | static PyObject *_wrap_FileSelector(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3181 | PyObject *resultobj; |
3182 | wxString const &arg1_defvalue = wxPyFileSelectorPromptStr ; | |
3183 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
3184 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3185 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3186 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3187 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3188 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
3189 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
3190 | wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ; | |
3191 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
3192 | int arg6 = (int) 0 ; | |
3193 | wxWindow *arg7 = (wxWindow *) NULL ; | |
3194 | int arg8 = (int) -1 ; | |
3195 | int arg9 = (int) -1 ; | |
3196 | wxString result; | |
b411df4a RD |
3197 | bool temp1 = false ; |
3198 | bool temp2 = false ; | |
3199 | bool temp3 = false ; | |
3200 | bool temp4 = false ; | |
3201 | bool temp5 = false ; | |
d55e5bfc RD |
3202 | PyObject * obj0 = 0 ; |
3203 | PyObject * obj1 = 0 ; | |
3204 | PyObject * obj2 = 0 ; | |
3205 | PyObject * obj3 = 0 ; | |
3206 | PyObject * obj4 = 0 ; | |
3207 | PyObject * obj5 = 0 ; | |
3208 | PyObject * obj6 = 0 ; | |
3209 | PyObject * obj7 = 0 ; | |
3210 | PyObject * obj8 = 0 ; | |
3211 | char *kwnames[] = { | |
3212 | (char *) "message",(char *) "default_path",(char *) "default_filename",(char *) "default_extension",(char *) "wildcard",(char *) "flags",(char *) "parent",(char *) "x",(char *) "y", NULL | |
3213 | }; | |
3214 | ||
3215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOOOOO:FileSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
3216 | if (obj0) { | |
3217 | { | |
3218 | arg1 = wxString_in_helper(obj0); | |
3219 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 3220 | temp1 = true; |
d55e5bfc RD |
3221 | } |
3222 | } | |
3223 | if (obj1) { | |
3224 | { | |
3225 | arg2 = wxString_in_helper(obj1); | |
3226 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 3227 | temp2 = true; |
d55e5bfc RD |
3228 | } |
3229 | } | |
3230 | if (obj2) { | |
3231 | { | |
3232 | arg3 = wxString_in_helper(obj2); | |
3233 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 3234 | temp3 = true; |
d55e5bfc RD |
3235 | } |
3236 | } | |
3237 | if (obj3) { | |
3238 | { | |
3239 | arg4 = wxString_in_helper(obj3); | |
3240 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 3241 | temp4 = true; |
d55e5bfc RD |
3242 | } |
3243 | } | |
3244 | if (obj4) { | |
3245 | { | |
3246 | arg5 = wxString_in_helper(obj4); | |
3247 | if (arg5 == NULL) SWIG_fail; | |
b411df4a | 3248 | temp5 = true; |
d55e5bfc RD |
3249 | } |
3250 | } | |
3251 | if (obj5) { | |
c370783e | 3252 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
3253 | if (PyErr_Occurred()) SWIG_fail; |
3254 | } | |
3255 | if (obj6) { | |
3256 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow, | |
3257 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3258 | } | |
3259 | if (obj7) { | |
c370783e | 3260 | arg8 = (int)SWIG_As_int(obj7); |
d55e5bfc RD |
3261 | if (PyErr_Occurred()) SWIG_fail; |
3262 | } | |
3263 | if (obj8) { | |
c370783e | 3264 | arg9 = (int)SWIG_As_int(obj8); |
d55e5bfc RD |
3265 | if (PyErr_Occurred()) SWIG_fail; |
3266 | } | |
3267 | { | |
0439c23b | 3268 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3270 | result = wxFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,arg7,arg8,arg9); | |
3271 | ||
3272 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3273 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3274 | } |
3275 | { | |
3276 | #if wxUSE_UNICODE | |
3277 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3278 | #else | |
3279 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3280 | #endif | |
3281 | } | |
3282 | { | |
3283 | if (temp1) | |
3284 | delete arg1; | |
3285 | } | |
3286 | { | |
3287 | if (temp2) | |
3288 | delete arg2; | |
3289 | } | |
3290 | { | |
3291 | if (temp3) | |
3292 | delete arg3; | |
3293 | } | |
3294 | { | |
3295 | if (temp4) | |
3296 | delete arg4; | |
3297 | } | |
3298 | { | |
3299 | if (temp5) | |
3300 | delete arg5; | |
3301 | } | |
3302 | return resultobj; | |
3303 | fail: | |
3304 | { | |
3305 | if (temp1) | |
3306 | delete arg1; | |
3307 | } | |
3308 | { | |
3309 | if (temp2) | |
3310 | delete arg2; | |
3311 | } | |
3312 | { | |
3313 | if (temp3) | |
3314 | delete arg3; | |
3315 | } | |
3316 | { | |
3317 | if (temp4) | |
3318 | delete arg4; | |
3319 | } | |
3320 | { | |
3321 | if (temp5) | |
3322 | delete arg5; | |
3323 | } | |
3324 | return NULL; | |
3325 | } | |
3326 | ||
3327 | ||
c370783e | 3328 | static PyObject *_wrap_LoadFileSelector(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3329 | PyObject *resultobj; |
3330 | wxString *arg1 = 0 ; | |
3331 | wxString *arg2 = 0 ; | |
3332 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3333 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3334 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3335 | wxString result; | |
b411df4a RD |
3336 | bool temp1 = false ; |
3337 | bool temp2 = false ; | |
3338 | bool temp3 = false ; | |
d55e5bfc RD |
3339 | PyObject * obj0 = 0 ; |
3340 | PyObject * obj1 = 0 ; | |
3341 | PyObject * obj2 = 0 ; | |
3342 | PyObject * obj3 = 0 ; | |
3343 | char *kwnames[] = { | |
3344 | (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL | |
3345 | }; | |
3346 | ||
3347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:LoadFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3348 | { | |
3349 | arg1 = wxString_in_helper(obj0); | |
3350 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 3351 | temp1 = true; |
d55e5bfc RD |
3352 | } |
3353 | { | |
3354 | arg2 = wxString_in_helper(obj1); | |
3355 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 3356 | temp2 = true; |
d55e5bfc RD |
3357 | } |
3358 | if (obj2) { | |
3359 | { | |
3360 | arg3 = wxString_in_helper(obj2); | |
3361 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 3362 | temp3 = true; |
d55e5bfc RD |
3363 | } |
3364 | } | |
3365 | if (obj3) { | |
3366 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
3367 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3368 | } | |
3369 | { | |
0439c23b | 3370 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3372 | result = wxLoadFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
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 | return resultobj; | |
3397 | fail: | |
3398 | { | |
3399 | if (temp1) | |
3400 | delete arg1; | |
3401 | } | |
3402 | { | |
3403 | if (temp2) | |
3404 | delete arg2; | |
3405 | } | |
3406 | { | |
3407 | if (temp3) | |
3408 | delete arg3; | |
3409 | } | |
3410 | return NULL; | |
3411 | } | |
3412 | ||
3413 | ||
c370783e | 3414 | static PyObject *_wrap_SaveFileSelector(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3415 | PyObject *resultobj; |
3416 | wxString *arg1 = 0 ; | |
3417 | wxString *arg2 = 0 ; | |
3418 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3419 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3420 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3421 | wxString result; | |
b411df4a RD |
3422 | bool temp1 = false ; |
3423 | bool temp2 = false ; | |
3424 | bool temp3 = false ; | |
d55e5bfc RD |
3425 | PyObject * obj0 = 0 ; |
3426 | PyObject * obj1 = 0 ; | |
3427 | PyObject * obj2 = 0 ; | |
3428 | PyObject * obj3 = 0 ; | |
3429 | char *kwnames[] = { | |
3430 | (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL | |
3431 | }; | |
3432 | ||
3433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:SaveFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3434 | { | |
3435 | arg1 = wxString_in_helper(obj0); | |
3436 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 3437 | temp1 = true; |
d55e5bfc RD |
3438 | } |
3439 | { | |
3440 | arg2 = wxString_in_helper(obj1); | |
3441 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 3442 | temp2 = true; |
d55e5bfc RD |
3443 | } |
3444 | if (obj2) { | |
3445 | { | |
3446 | arg3 = wxString_in_helper(obj2); | |
3447 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 3448 | temp3 = true; |
d55e5bfc RD |
3449 | } |
3450 | } | |
3451 | if (obj3) { | |
3452 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
3453 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3454 | } | |
3455 | { | |
0439c23b | 3456 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3458 | result = wxSaveFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
3459 | ||
3460 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3461 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3462 | } |
3463 | { | |
3464 | #if wxUSE_UNICODE | |
3465 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3466 | #else | |
3467 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3468 | #endif | |
3469 | } | |
3470 | { | |
3471 | if (temp1) | |
3472 | delete arg1; | |
3473 | } | |
3474 | { | |
3475 | if (temp2) | |
3476 | delete arg2; | |
3477 | } | |
3478 | { | |
3479 | if (temp3) | |
3480 | delete arg3; | |
3481 | } | |
3482 | return resultobj; | |
3483 | fail: | |
3484 | { | |
3485 | if (temp1) | |
3486 | delete arg1; | |
3487 | } | |
3488 | { | |
3489 | if (temp2) | |
3490 | delete arg2; | |
3491 | } | |
3492 | { | |
3493 | if (temp3) | |
3494 | delete arg3; | |
3495 | } | |
3496 | return NULL; | |
3497 | } | |
3498 | ||
3499 | ||
c370783e | 3500 | static PyObject *_wrap_DirSelector(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3501 | PyObject *resultobj; |
3502 | wxString const &arg1_defvalue = wxPyDirSelectorPromptStr ; | |
3503 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
3504 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3505 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3506 | long arg3 = (long) wxDD_DEFAULT_STYLE ; | |
3507 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3508 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3509 | wxWindow *arg5 = (wxWindow *) NULL ; | |
3510 | wxString result; | |
b411df4a RD |
3511 | bool temp1 = false ; |
3512 | bool temp2 = false ; | |
d55e5bfc RD |
3513 | wxPoint temp4 ; |
3514 | PyObject * obj0 = 0 ; | |
3515 | PyObject * obj1 = 0 ; | |
3516 | PyObject * obj2 = 0 ; | |
3517 | PyObject * obj3 = 0 ; | |
3518 | PyObject * obj4 = 0 ; | |
3519 | char *kwnames[] = { | |
3520 | (char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "parent", NULL | |
3521 | }; | |
3522 | ||
3523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:DirSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
3524 | if (obj0) { | |
3525 | { | |
3526 | arg1 = wxString_in_helper(obj0); | |
3527 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 3528 | temp1 = true; |
d55e5bfc RD |
3529 | } |
3530 | } | |
3531 | if (obj1) { | |
3532 | { | |
3533 | arg2 = wxString_in_helper(obj1); | |
3534 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 3535 | temp2 = true; |
d55e5bfc RD |
3536 | } |
3537 | } | |
3538 | if (obj2) { | |
c370783e | 3539 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
3540 | if (PyErr_Occurred()) SWIG_fail; |
3541 | } | |
3542 | if (obj3) { | |
3543 | { | |
3544 | arg4 = &temp4; | |
3545 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3546 | } | |
3547 | } | |
3548 | if (obj4) { | |
3549 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxWindow, | |
3550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3551 | } | |
3552 | { | |
0439c23b | 3553 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3555 | result = wxDirSelector((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxPoint const &)*arg4,arg5); | |
3556 | ||
3557 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3558 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3559 | } |
3560 | { | |
3561 | #if wxUSE_UNICODE | |
3562 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3563 | #else | |
3564 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3565 | #endif | |
3566 | } | |
3567 | { | |
3568 | if (temp1) | |
3569 | delete arg1; | |
3570 | } | |
3571 | { | |
3572 | if (temp2) | |
3573 | delete arg2; | |
3574 | } | |
3575 | return resultobj; | |
3576 | fail: | |
3577 | { | |
3578 | if (temp1) | |
3579 | delete arg1; | |
3580 | } | |
3581 | { | |
3582 | if (temp2) | |
3583 | delete arg2; | |
3584 | } | |
3585 | return NULL; | |
3586 | } | |
3587 | ||
3588 | ||
c370783e | 3589 | static PyObject *_wrap_GetTextFromUser(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3590 | PyObject *resultobj; |
3591 | wxString *arg1 = 0 ; | |
3592 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3593 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3594 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3595 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3596 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3597 | int arg5 = (int) -1 ; | |
3598 | int arg6 = (int) -1 ; | |
b411df4a | 3599 | bool arg7 = (bool) true ; |
d55e5bfc | 3600 | wxString result; |
b411df4a RD |
3601 | bool temp1 = false ; |
3602 | bool temp2 = false ; | |
3603 | bool temp3 = false ; | |
d55e5bfc RD |
3604 | PyObject * obj0 = 0 ; |
3605 | PyObject * obj1 = 0 ; | |
3606 | PyObject * obj2 = 0 ; | |
3607 | PyObject * obj3 = 0 ; | |
3608 | PyObject * obj4 = 0 ; | |
3609 | PyObject * obj5 = 0 ; | |
3610 | PyObject * obj6 = 0 ; | |
3611 | char *kwnames[] = { | |
3612 | (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre", NULL | |
3613 | }; | |
3614 | ||
3615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GetTextFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
3616 | { | |
3617 | arg1 = wxString_in_helper(obj0); | |
3618 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 3619 | temp1 = true; |
d55e5bfc RD |
3620 | } |
3621 | if (obj1) { | |
3622 | { | |
3623 | arg2 = wxString_in_helper(obj1); | |
3624 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 3625 | temp2 = true; |
d55e5bfc RD |
3626 | } |
3627 | } | |
3628 | if (obj2) { | |
3629 | { | |
3630 | arg3 = wxString_in_helper(obj2); | |
3631 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 3632 | temp3 = true; |
d55e5bfc RD |
3633 | } |
3634 | } | |
3635 | if (obj3) { | |
3636 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
3637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3638 | } | |
3639 | if (obj4) { | |
c370783e | 3640 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
3641 | if (PyErr_Occurred()) SWIG_fail; |
3642 | } | |
3643 | if (obj5) { | |
c370783e | 3644 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
3645 | if (PyErr_Occurred()) SWIG_fail; |
3646 | } | |
3647 | if (obj6) { | |
c370783e | 3648 | arg7 = (bool)SWIG_As_bool(obj6); |
d55e5bfc RD |
3649 | if (PyErr_Occurred()) SWIG_fail; |
3650 | } | |
3651 | { | |
0439c23b | 3652 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3654 | result = wxGetTextFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7); | |
3655 | ||
3656 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3657 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3658 | } |
3659 | { | |
3660 | #if wxUSE_UNICODE | |
3661 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3662 | #else | |
3663 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3664 | #endif | |
3665 | } | |
3666 | { | |
3667 | if (temp1) | |
3668 | delete arg1; | |
3669 | } | |
3670 | { | |
3671 | if (temp2) | |
3672 | delete arg2; | |
3673 | } | |
3674 | { | |
3675 | if (temp3) | |
3676 | delete arg3; | |
3677 | } | |
3678 | return resultobj; | |
3679 | fail: | |
3680 | { | |
3681 | if (temp1) | |
3682 | delete arg1; | |
3683 | } | |
3684 | { | |
3685 | if (temp2) | |
3686 | delete arg2; | |
3687 | } | |
3688 | { | |
3689 | if (temp3) | |
3690 | delete arg3; | |
3691 | } | |
3692 | return NULL; | |
3693 | } | |
3694 | ||
3695 | ||
c370783e | 3696 | static PyObject *_wrap_GetPasswordFromUser(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3697 | PyObject *resultobj; |
3698 | wxString *arg1 = 0 ; | |
3699 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3700 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3701 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3702 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3703 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3704 | wxString result; | |
b411df4a RD |
3705 | bool temp1 = false ; |
3706 | bool temp2 = false ; | |
3707 | bool temp3 = false ; | |
d55e5bfc RD |
3708 | PyObject * obj0 = 0 ; |
3709 | PyObject * obj1 = 0 ; | |
3710 | PyObject * obj2 = 0 ; | |
3711 | PyObject * obj3 = 0 ; | |
3712 | char *kwnames[] = { | |
3713 | (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent", NULL | |
3714 | }; | |
3715 | ||
3716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:GetPasswordFromUser",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3717 | { | |
3718 | arg1 = wxString_in_helper(obj0); | |
3719 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 3720 | temp1 = true; |
d55e5bfc RD |
3721 | } |
3722 | if (obj1) { | |
3723 | { | |
3724 | arg2 = wxString_in_helper(obj1); | |
3725 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 3726 | temp2 = true; |
d55e5bfc RD |
3727 | } |
3728 | } | |
3729 | if (obj2) { | |
3730 | { | |
3731 | arg3 = wxString_in_helper(obj2); | |
3732 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 3733 | temp3 = true; |
d55e5bfc RD |
3734 | } |
3735 | } | |
3736 | if (obj3) { | |
3737 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
3738 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3739 | } | |
3740 | { | |
0439c23b | 3741 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3743 | result = wxGetPasswordFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
3744 | ||
3745 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3746 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3747 | } |
3748 | { | |
3749 | #if wxUSE_UNICODE | |
3750 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3751 | #else | |
3752 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3753 | #endif | |
3754 | } | |
3755 | { | |
3756 | if (temp1) | |
3757 | delete arg1; | |
3758 | } | |
3759 | { | |
3760 | if (temp2) | |
3761 | delete arg2; | |
3762 | } | |
3763 | { | |
3764 | if (temp3) | |
3765 | delete arg3; | |
3766 | } | |
3767 | return resultobj; | |
3768 | fail: | |
3769 | { | |
3770 | if (temp1) | |
3771 | delete arg1; | |
3772 | } | |
3773 | { | |
3774 | if (temp2) | |
3775 | delete arg2; | |
3776 | } | |
3777 | { | |
3778 | if (temp3) | |
3779 | delete arg3; | |
3780 | } | |
3781 | return NULL; | |
3782 | } | |
3783 | ||
3784 | ||
c370783e | 3785 | static PyObject *_wrap_GetSingleChoice(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3786 | PyObject *resultobj; |
3787 | wxString *arg1 = 0 ; | |
3788 | wxString *arg2 = 0 ; | |
3789 | int arg3 ; | |
3790 | wxString *arg4 = (wxString *) 0 ; | |
3791 | wxWindow *arg5 = (wxWindow *) NULL ; | |
3792 | int arg6 = (int) -1 ; | |
3793 | int arg7 = (int) -1 ; | |
b411df4a | 3794 | bool arg8 = (bool) true ; |
d55e5bfc RD |
3795 | int arg9 = (int) 150 ; |
3796 | int arg10 = (int) 200 ; | |
3797 | wxString result; | |
b411df4a RD |
3798 | bool temp1 = false ; |
3799 | bool temp2 = false ; | |
d55e5bfc RD |
3800 | PyObject * obj0 = 0 ; |
3801 | PyObject * obj1 = 0 ; | |
3802 | PyObject * obj2 = 0 ; | |
3803 | PyObject * obj3 = 0 ; | |
3804 | PyObject * obj4 = 0 ; | |
3805 | PyObject * obj5 = 0 ; | |
3806 | PyObject * obj6 = 0 ; | |
3807 | PyObject * obj7 = 0 ; | |
3808 | PyObject * obj8 = 0 ; | |
3809 | char *kwnames[] = { | |
3810 | (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL | |
3811 | }; | |
3812 | ||
3813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
3814 | { | |
3815 | arg1 = wxString_in_helper(obj0); | |
3816 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 3817 | temp1 = true; |
d55e5bfc RD |
3818 | } |
3819 | { | |
3820 | arg2 = wxString_in_helper(obj1); | |
3821 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 3822 | temp2 = true; |
d55e5bfc RD |
3823 | } |
3824 | { | |
3825 | arg3 = PyList_Size(obj2); | |
3826 | arg4 = wxString_LIST_helper(obj2); | |
3827 | if (arg4 == NULL) SWIG_fail; | |
3828 | } | |
3829 | if (obj3) { | |
3830 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow, | |
3831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3832 | } | |
3833 | if (obj4) { | |
c370783e | 3834 | arg6 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
3835 | if (PyErr_Occurred()) SWIG_fail; |
3836 | } | |
3837 | if (obj5) { | |
c370783e | 3838 | arg7 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
3839 | if (PyErr_Occurred()) SWIG_fail; |
3840 | } | |
3841 | if (obj6) { | |
c370783e | 3842 | arg8 = (bool)SWIG_As_bool(obj6); |
d55e5bfc RD |
3843 | if (PyErr_Occurred()) SWIG_fail; |
3844 | } | |
3845 | if (obj7) { | |
c370783e | 3846 | arg9 = (int)SWIG_As_int(obj7); |
d55e5bfc RD |
3847 | if (PyErr_Occurred()) SWIG_fail; |
3848 | } | |
3849 | if (obj8) { | |
c370783e | 3850 | arg10 = (int)SWIG_As_int(obj8); |
d55e5bfc RD |
3851 | if (PyErr_Occurred()) SWIG_fail; |
3852 | } | |
3853 | { | |
0439c23b | 3854 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3856 | result = wxGetSingleChoice((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); | |
3857 | ||
3858 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3859 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3860 | } |
3861 | { | |
3862 | #if wxUSE_UNICODE | |
3863 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3864 | #else | |
3865 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3866 | #endif | |
3867 | } | |
3868 | { | |
3869 | if (temp1) | |
3870 | delete arg1; | |
3871 | } | |
3872 | { | |
3873 | if (temp2) | |
3874 | delete arg2; | |
3875 | } | |
3876 | { | |
3877 | if (arg4) delete [] arg4; | |
3878 | } | |
3879 | return resultobj; | |
3880 | fail: | |
3881 | { | |
3882 | if (temp1) | |
3883 | delete arg1; | |
3884 | } | |
3885 | { | |
3886 | if (temp2) | |
3887 | delete arg2; | |
3888 | } | |
3889 | { | |
3890 | if (arg4) delete [] arg4; | |
3891 | } | |
3892 | return NULL; | |
3893 | } | |
3894 | ||
3895 | ||
c370783e | 3896 | static PyObject *_wrap_GetSingleChoiceIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3897 | PyObject *resultobj; |
3898 | wxString *arg1 = 0 ; | |
3899 | wxString *arg2 = 0 ; | |
3900 | int arg3 ; | |
3901 | wxString *arg4 = (wxString *) 0 ; | |
3902 | wxWindow *arg5 = (wxWindow *) NULL ; | |
3903 | int arg6 = (int) -1 ; | |
3904 | int arg7 = (int) -1 ; | |
b411df4a | 3905 | bool arg8 = (bool) true ; |
d55e5bfc RD |
3906 | int arg9 = (int) 150 ; |
3907 | int arg10 = (int) 200 ; | |
3908 | int result; | |
b411df4a RD |
3909 | bool temp1 = false ; |
3910 | bool temp2 = false ; | |
d55e5bfc RD |
3911 | PyObject * obj0 = 0 ; |
3912 | PyObject * obj1 = 0 ; | |
3913 | PyObject * obj2 = 0 ; | |
3914 | PyObject * obj3 = 0 ; | |
3915 | PyObject * obj4 = 0 ; | |
3916 | PyObject * obj5 = 0 ; | |
3917 | PyObject * obj6 = 0 ; | |
3918 | PyObject * obj7 = 0 ; | |
3919 | PyObject * obj8 = 0 ; | |
3920 | char *kwnames[] = { | |
3921 | (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL | |
3922 | }; | |
3923 | ||
3924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoiceIndex",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
3925 | { | |
3926 | arg1 = wxString_in_helper(obj0); | |
3927 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 3928 | temp1 = true; |
d55e5bfc RD |
3929 | } |
3930 | { | |
3931 | arg2 = wxString_in_helper(obj1); | |
3932 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 3933 | temp2 = true; |
d55e5bfc RD |
3934 | } |
3935 | { | |
3936 | arg3 = PyList_Size(obj2); | |
3937 | arg4 = wxString_LIST_helper(obj2); | |
3938 | if (arg4 == NULL) SWIG_fail; | |
3939 | } | |
3940 | if (obj3) { | |
3941 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow, | |
3942 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3943 | } | |
3944 | if (obj4) { | |
c370783e | 3945 | arg6 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
3946 | if (PyErr_Occurred()) SWIG_fail; |
3947 | } | |
3948 | if (obj5) { | |
c370783e | 3949 | arg7 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
3950 | if (PyErr_Occurred()) SWIG_fail; |
3951 | } | |
3952 | if (obj6) { | |
c370783e | 3953 | arg8 = (bool)SWIG_As_bool(obj6); |
d55e5bfc RD |
3954 | if (PyErr_Occurred()) SWIG_fail; |
3955 | } | |
3956 | if (obj7) { | |
c370783e | 3957 | arg9 = (int)SWIG_As_int(obj7); |
d55e5bfc RD |
3958 | if (PyErr_Occurred()) SWIG_fail; |
3959 | } | |
3960 | if (obj8) { | |
c370783e | 3961 | arg10 = (int)SWIG_As_int(obj8); |
d55e5bfc RD |
3962 | if (PyErr_Occurred()) SWIG_fail; |
3963 | } | |
3964 | { | |
0439c23b | 3965 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3967 | result = (int)wxGetSingleChoiceIndex((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); | |
3968 | ||
3969 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3970 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 3971 | } |
c370783e | 3972 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
3973 | { |
3974 | if (temp1) | |
3975 | delete arg1; | |
3976 | } | |
3977 | { | |
3978 | if (temp2) | |
3979 | delete arg2; | |
3980 | } | |
3981 | { | |
3982 | if (arg4) delete [] arg4; | |
3983 | } | |
3984 | return resultobj; | |
3985 | fail: | |
3986 | { | |
3987 | if (temp1) | |
3988 | delete arg1; | |
3989 | } | |
3990 | { | |
3991 | if (temp2) | |
3992 | delete arg2; | |
3993 | } | |
3994 | { | |
3995 | if (arg4) delete [] arg4; | |
3996 | } | |
3997 | return NULL; | |
3998 | } | |
3999 | ||
4000 | ||
c370783e | 4001 | static PyObject *_wrap_MessageBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4002 | PyObject *resultobj; |
4003 | wxString *arg1 = 0 ; | |
4004 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
4005 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
4006 | int arg3 = (int) wxOK|wxCENTRE ; | |
4007 | wxWindow *arg4 = (wxWindow *) NULL ; | |
4008 | int arg5 = (int) -1 ; | |
4009 | int arg6 = (int) -1 ; | |
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 | char *kwnames[] = { | |
4020 | (char *) "message",(char *) "caption",(char *) "style",(char *) "parent",(char *) "x",(char *) "y", NULL | |
4021 | }; | |
4022 | ||
4023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:MessageBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
4024 | { | |
4025 | arg1 = wxString_in_helper(obj0); | |
4026 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 4027 | temp1 = true; |
d55e5bfc RD |
4028 | } |
4029 | if (obj1) { | |
4030 | { | |
4031 | arg2 = wxString_in_helper(obj1); | |
4032 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 4033 | temp2 = true; |
d55e5bfc RD |
4034 | } |
4035 | } | |
4036 | if (obj2) { | |
c370783e | 4037 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
4038 | if (PyErr_Occurred()) SWIG_fail; |
4039 | } | |
4040 | if (obj3) { | |
4041 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
4042 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4043 | } | |
4044 | if (obj4) { | |
c370783e | 4045 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
4046 | if (PyErr_Occurred()) SWIG_fail; |
4047 | } | |
4048 | if (obj5) { | |
c370783e | 4049 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
4050 | if (PyErr_Occurred()) SWIG_fail; |
4051 | } | |
4052 | { | |
0439c23b | 4053 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4055 | result = (int)wxMessageBox((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
4056 | ||
4057 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4058 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 4059 | } |
c370783e | 4060 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4061 | { |
4062 | if (temp1) | |
4063 | delete arg1; | |
4064 | } | |
4065 | { | |
4066 | if (temp2) | |
4067 | delete arg2; | |
4068 | } | |
4069 | return resultobj; | |
4070 | fail: | |
4071 | { | |
4072 | if (temp1) | |
4073 | delete arg1; | |
4074 | } | |
4075 | { | |
4076 | if (temp2) | |
4077 | delete arg2; | |
4078 | } | |
4079 | return NULL; | |
4080 | } | |
4081 | ||
4082 | ||
c370783e | 4083 | static PyObject *_wrap_GetNumberFromUser(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4084 | PyObject *resultobj; |
4085 | wxString *arg1 = 0 ; | |
4086 | wxString *arg2 = 0 ; | |
4087 | wxString *arg3 = 0 ; | |
4088 | long arg4 ; | |
4089 | long arg5 = (long) 0 ; | |
4090 | long arg6 = (long) 100 ; | |
4091 | wxWindow *arg7 = (wxWindow *) NULL ; | |
4092 | wxPoint const &arg8_defvalue = wxDefaultPosition ; | |
4093 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
4094 | long result; | |
b411df4a RD |
4095 | bool temp1 = false ; |
4096 | bool temp2 = false ; | |
4097 | bool temp3 = false ; | |
d55e5bfc RD |
4098 | wxPoint temp8 ; |
4099 | PyObject * obj0 = 0 ; | |
4100 | PyObject * obj1 = 0 ; | |
4101 | PyObject * obj2 = 0 ; | |
4102 | PyObject * obj3 = 0 ; | |
4103 | PyObject * obj4 = 0 ; | |
4104 | PyObject * obj5 = 0 ; | |
4105 | PyObject * obj6 = 0 ; | |
4106 | PyObject * obj7 = 0 ; | |
4107 | char *kwnames[] = { | |
4108 | (char *) "message",(char *) "prompt",(char *) "caption",(char *) "value",(char *) "min",(char *) "max",(char *) "parent",(char *) "pos", NULL | |
4109 | }; | |
4110 | ||
4111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:GetNumberFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
4112 | { | |
4113 | arg1 = wxString_in_helper(obj0); | |
4114 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 4115 | temp1 = true; |
d55e5bfc RD |
4116 | } |
4117 | { | |
4118 | arg2 = wxString_in_helper(obj1); | |
4119 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 4120 | temp2 = true; |
d55e5bfc RD |
4121 | } |
4122 | { | |
4123 | arg3 = wxString_in_helper(obj2); | |
4124 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 4125 | temp3 = true; |
d55e5bfc | 4126 | } |
c370783e | 4127 | arg4 = (long)SWIG_As_long(obj3); |
d55e5bfc RD |
4128 | if (PyErr_Occurred()) SWIG_fail; |
4129 | if (obj4) { | |
c370783e | 4130 | arg5 = (long)SWIG_As_long(obj4); |
d55e5bfc RD |
4131 | if (PyErr_Occurred()) SWIG_fail; |
4132 | } | |
4133 | if (obj5) { | |
c370783e | 4134 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
4135 | if (PyErr_Occurred()) SWIG_fail; |
4136 | } | |
4137 | if (obj6) { | |
4138 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow, | |
4139 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4140 | } | |
4141 | if (obj7) { | |
4142 | { | |
4143 | arg8 = &temp8; | |
4144 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
4145 | } | |
4146 | } | |
4147 | { | |
0439c23b | 4148 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4150 | result = (long)wxGetNumberFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7,(wxPoint const &)*arg8); | |
4151 | ||
4152 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4153 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 4154 | } |
c370783e | 4155 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
4156 | { |
4157 | if (temp1) | |
4158 | delete arg1; | |
4159 | } | |
4160 | { | |
4161 | if (temp2) | |
4162 | delete arg2; | |
4163 | } | |
4164 | { | |
4165 | if (temp3) | |
4166 | delete arg3; | |
4167 | } | |
4168 | return resultobj; | |
4169 | fail: | |
4170 | { | |
4171 | if (temp1) | |
4172 | delete arg1; | |
4173 | } | |
4174 | { | |
4175 | if (temp2) | |
4176 | delete arg2; | |
4177 | } | |
4178 | { | |
4179 | if (temp3) | |
4180 | delete arg3; | |
4181 | } | |
4182 | return NULL; | |
4183 | } | |
4184 | ||
4185 | ||
c370783e | 4186 | static PyObject *_wrap_ColourDisplay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4187 | PyObject *resultobj; |
4188 | bool result; | |
4189 | char *kwnames[] = { | |
4190 | NULL | |
4191 | }; | |
4192 | ||
4193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ColourDisplay",kwnames)) goto fail; | |
4194 | { | |
0439c23b | 4195 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4197 | result = (bool)wxColourDisplay(); | |
4198 | ||
4199 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4200 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4201 | } |
4202 | { | |
4203 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4204 | } | |
4205 | return resultobj; | |
4206 | fail: | |
4207 | return NULL; | |
4208 | } | |
4209 | ||
4210 | ||
c370783e | 4211 | static PyObject *_wrap_DisplayDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4212 | PyObject *resultobj; |
4213 | int result; | |
4214 | char *kwnames[] = { | |
4215 | NULL | |
4216 | }; | |
4217 | ||
4218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplayDepth",kwnames)) goto fail; | |
4219 | { | |
0439c23b | 4220 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4222 | result = (int)wxDisplayDepth(); | |
4223 | ||
4224 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4225 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 4226 | } |
c370783e | 4227 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4228 | return resultobj; |
4229 | fail: | |
4230 | return NULL; | |
4231 | } | |
4232 | ||
4233 | ||
c370783e | 4234 | static PyObject *_wrap_GetDisplayDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4235 | PyObject *resultobj; |
4236 | int result; | |
4237 | char *kwnames[] = { | |
4238 | NULL | |
4239 | }; | |
4240 | ||
4241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplayDepth",kwnames)) goto fail; | |
4242 | { | |
0439c23b | 4243 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4245 | result = (int)wxGetDisplayDepth(); | |
4246 | ||
4247 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4248 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 4249 | } |
c370783e | 4250 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4251 | return resultobj; |
4252 | fail: | |
4253 | return NULL; | |
4254 | } | |
4255 | ||
4256 | ||
c370783e | 4257 | static PyObject *_wrap_DisplaySize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4258 | PyObject *resultobj; |
4259 | int *arg1 = (int *) 0 ; | |
4260 | int *arg2 = (int *) 0 ; | |
4261 | int temp1 ; | |
c370783e | 4262 | int res1 = 0 ; |
d55e5bfc | 4263 | int temp2 ; |
c370783e | 4264 | int res2 = 0 ; |
d55e5bfc RD |
4265 | char *kwnames[] = { |
4266 | NULL | |
4267 | }; | |
4268 | ||
c370783e RD |
4269 | arg1 = &temp1; res1 = SWIG_NEWOBJ; |
4270 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
d55e5bfc RD |
4271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySize",kwnames)) goto fail; |
4272 | { | |
0439c23b | 4273 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4275 | wxDisplaySize(arg1,arg2); | |
4276 | ||
4277 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4278 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4279 | } |
4280 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
4281 | resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ? |
4282 | SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0))); | |
4283 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
4284 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
4285 | return resultobj; |
4286 | fail: | |
4287 | return NULL; | |
4288 | } | |
4289 | ||
4290 | ||
c370783e | 4291 | static PyObject *_wrap_GetDisplaySize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4292 | PyObject *resultobj; |
4293 | wxSize result; | |
4294 | char *kwnames[] = { | |
4295 | NULL | |
4296 | }; | |
4297 | ||
4298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySize",kwnames)) goto fail; | |
4299 | { | |
0439c23b | 4300 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4302 | result = wxGetDisplaySize(); | |
4303 | ||
4304 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4305 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4306 | } |
4307 | { | |
4308 | wxSize * resultptr; | |
4309 | resultptr = new wxSize((wxSize &) result); | |
4310 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
4311 | } | |
4312 | return resultobj; | |
4313 | fail: | |
4314 | return NULL; | |
4315 | } | |
4316 | ||
4317 | ||
c370783e | 4318 | static PyObject *_wrap_DisplaySizeMM(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4319 | PyObject *resultobj; |
4320 | int *arg1 = (int *) 0 ; | |
4321 | int *arg2 = (int *) 0 ; | |
4322 | int temp1 ; | |
c370783e | 4323 | int res1 = 0 ; |
d55e5bfc | 4324 | int temp2 ; |
c370783e | 4325 | int res2 = 0 ; |
d55e5bfc RD |
4326 | char *kwnames[] = { |
4327 | NULL | |
4328 | }; | |
4329 | ||
c370783e RD |
4330 | arg1 = &temp1; res1 = SWIG_NEWOBJ; |
4331 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
d55e5bfc RD |
4332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySizeMM",kwnames)) goto fail; |
4333 | { | |
0439c23b | 4334 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4336 | wxDisplaySizeMM(arg1,arg2); | |
4337 | ||
4338 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4339 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4340 | } |
4341 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
4342 | resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ? |
4343 | SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0))); | |
4344 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
4345 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
4346 | return resultobj; |
4347 | fail: | |
4348 | return NULL; | |
4349 | } | |
4350 | ||
4351 | ||
c370783e | 4352 | static PyObject *_wrap_GetDisplaySizeMM(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4353 | PyObject *resultobj; |
4354 | wxSize result; | |
4355 | char *kwnames[] = { | |
4356 | NULL | |
4357 | }; | |
4358 | ||
4359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySizeMM",kwnames)) goto fail; | |
4360 | { | |
0439c23b | 4361 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4363 | result = wxGetDisplaySizeMM(); | |
4364 | ||
4365 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4366 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4367 | } |
4368 | { | |
4369 | wxSize * resultptr; | |
4370 | resultptr = new wxSize((wxSize &) result); | |
4371 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
4372 | } | |
4373 | return resultobj; | |
4374 | fail: | |
4375 | return NULL; | |
4376 | } | |
4377 | ||
4378 | ||
c370783e | 4379 | static PyObject *_wrap_ClientDisplayRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4380 | PyObject *resultobj; |
4381 | int *arg1 = (int *) 0 ; | |
4382 | int *arg2 = (int *) 0 ; | |
4383 | int *arg3 = (int *) 0 ; | |
4384 | int *arg4 = (int *) 0 ; | |
4385 | int temp1 ; | |
c370783e | 4386 | int res1 = 0 ; |
d55e5bfc | 4387 | int temp2 ; |
c370783e | 4388 | int res2 = 0 ; |
d55e5bfc | 4389 | int temp3 ; |
c370783e | 4390 | int res3 = 0 ; |
d55e5bfc | 4391 | int temp4 ; |
c370783e | 4392 | int res4 = 0 ; |
d55e5bfc RD |
4393 | char *kwnames[] = { |
4394 | NULL | |
4395 | }; | |
4396 | ||
c370783e RD |
4397 | arg1 = &temp1; res1 = SWIG_NEWOBJ; |
4398 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
4399 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
4400 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
d55e5bfc RD |
4401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ClientDisplayRect",kwnames)) goto fail; |
4402 | { | |
0439c23b | 4403 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4405 | wxClientDisplayRect(arg1,arg2,arg3,arg4); | |
4406 | ||
4407 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4408 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4409 | } |
4410 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
4411 | resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ? |
4412 | SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0))); | |
4413 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
4414 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
4415 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
4416 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
4417 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
4418 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
4419 | return resultobj; |
4420 | fail: | |
4421 | return NULL; | |
4422 | } | |
4423 | ||
4424 | ||
c370783e | 4425 | static PyObject *_wrap_GetClientDisplayRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4426 | PyObject *resultobj; |
4427 | wxRect result; | |
4428 | char *kwnames[] = { | |
4429 | NULL | |
4430 | }; | |
4431 | ||
4432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetClientDisplayRect",kwnames)) goto fail; | |
4433 | { | |
0439c23b | 4434 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4436 | result = wxGetClientDisplayRect(); | |
4437 | ||
4438 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4439 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4440 | } |
4441 | { | |
4442 | wxRect * resultptr; | |
4443 | resultptr = new wxRect((wxRect &) result); | |
4444 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
4445 | } | |
4446 | return resultobj; | |
4447 | fail: | |
4448 | return NULL; | |
4449 | } | |
4450 | ||
4451 | ||
c370783e | 4452 | static PyObject *_wrap_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4453 | PyObject *resultobj; |
4454 | wxCursor *arg1 = 0 ; | |
4455 | PyObject * obj0 = 0 ; | |
4456 | char *kwnames[] = { | |
4457 | (char *) "cursor", NULL | |
4458 | }; | |
4459 | ||
4460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursor",kwnames,&obj0)) goto fail; | |
4461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
4462 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4463 | SWIG_fail; | |
4464 | if (arg1 == NULL) { | |
4465 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4466 | SWIG_fail; | |
4467 | } | |
4468 | { | |
0439c23b | 4469 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4471 | wxSetCursor(*arg1); | |
4472 | ||
4473 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4474 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4475 | } |
4476 | Py_INCREF(Py_None); resultobj = Py_None; | |
4477 | return resultobj; | |
4478 | fail: | |
4479 | return NULL; | |
4480 | } | |
4481 | ||
4482 | ||
c370783e | 4483 | static PyObject *_wrap_BeginBusyCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4484 | PyObject *resultobj; |
4485 | wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ; | |
4486 | PyObject * obj0 = 0 ; | |
4487 | char *kwnames[] = { | |
4488 | (char *) "cursor", NULL | |
4489 | }; | |
4490 | ||
4491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BeginBusyCursor",kwnames,&obj0)) goto fail; | |
4492 | if (obj0) { | |
4493 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
4494 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4495 | } | |
4496 | { | |
0439c23b | 4497 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4499 | wxBeginBusyCursor(arg1); | |
4500 | ||
4501 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4502 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4503 | } |
4504 | Py_INCREF(Py_None); resultobj = Py_None; | |
4505 | return resultobj; | |
4506 | fail: | |
4507 | return NULL; | |
4508 | } | |
4509 | ||
4510 | ||
c370783e | 4511 | static PyObject *_wrap_GetActiveWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4512 | PyObject *resultobj; |
4513 | wxWindow *result; | |
4514 | char *kwnames[] = { | |
4515 | NULL | |
4516 | }; | |
4517 | ||
4518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetActiveWindow",kwnames)) goto fail; | |
4519 | { | |
0439c23b | 4520 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4522 | result = (wxWindow *)wxGetActiveWindow(); | |
4523 | ||
4524 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4525 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4526 | } |
4527 | { | |
412d302d | 4528 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
4529 | } |
4530 | return resultobj; | |
4531 | fail: | |
4532 | return NULL; | |
4533 | } | |
4534 | ||
4535 | ||
c370783e | 4536 | static PyObject *_wrap_GenericFindWindowAtPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4537 | PyObject *resultobj; |
4538 | wxPoint *arg1 = 0 ; | |
4539 | wxWindow *result; | |
4540 | wxPoint temp1 ; | |
4541 | PyObject * obj0 = 0 ; | |
4542 | char *kwnames[] = { | |
4543 | (char *) "pt", NULL | |
4544 | }; | |
4545 | ||
4546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericFindWindowAtPoint",kwnames,&obj0)) goto fail; | |
4547 | { | |
4548 | arg1 = &temp1; | |
4549 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
4550 | } | |
4551 | { | |
0439c23b | 4552 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4554 | result = (wxWindow *)wxGenericFindWindowAtPoint((wxPoint const &)*arg1); | |
4555 | ||
4556 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4557 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4558 | } |
4559 | { | |
412d302d | 4560 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
4561 | } |
4562 | return resultobj; | |
4563 | fail: | |
4564 | return NULL; | |
4565 | } | |
4566 | ||
4567 | ||
c370783e | 4568 | static PyObject *_wrap_FindWindowAtPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4569 | PyObject *resultobj; |
4570 | wxPoint *arg1 = 0 ; | |
4571 | wxWindow *result; | |
4572 | wxPoint temp1 ; | |
4573 | PyObject * obj0 = 0 ; | |
4574 | char *kwnames[] = { | |
4575 | (char *) "pt", NULL | |
4576 | }; | |
4577 | ||
4578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindWindowAtPoint",kwnames,&obj0)) goto fail; | |
4579 | { | |
4580 | arg1 = &temp1; | |
4581 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
4582 | } | |
4583 | { | |
0439c23b | 4584 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4586 | result = (wxWindow *)wxFindWindowAtPoint((wxPoint const &)*arg1); | |
4587 | ||
4588 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4589 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4590 | } |
4591 | { | |
412d302d | 4592 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
4593 | } |
4594 | return resultobj; | |
4595 | fail: | |
4596 | return NULL; | |
4597 | } | |
4598 | ||
4599 | ||
c370783e | 4600 | static PyObject *_wrap_GetTopLevelParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4601 | PyObject *resultobj; |
4602 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4603 | wxWindow *result; | |
4604 | PyObject * obj0 = 0 ; | |
4605 | char *kwnames[] = { | |
4606 | (char *) "win", NULL | |
4607 | }; | |
4608 | ||
4609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetTopLevelParent",kwnames,&obj0)) goto fail; | |
4610 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
4611 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4612 | { | |
0439c23b | 4613 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4615 | result = (wxWindow *)wxGetTopLevelParent(arg1); | |
4616 | ||
4617 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4618 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4619 | } |
4620 | { | |
412d302d | 4621 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
4622 | } |
4623 | return resultobj; | |
4624 | fail: | |
4625 | return NULL; | |
4626 | } | |
4627 | ||
4628 | ||
c370783e | 4629 | static PyObject *_wrap_GetKeyState(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4630 | PyObject *resultobj; |
4631 | int arg1 ; | |
4632 | bool result; | |
4633 | PyObject * obj0 = 0 ; | |
4634 | char *kwnames[] = { | |
4635 | (char *) "key", NULL | |
4636 | }; | |
4637 | ||
4638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetKeyState",kwnames,&obj0)) goto fail; | |
c370783e | 4639 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
4640 | if (PyErr_Occurred()) SWIG_fail; |
4641 | { | |
0439c23b | 4642 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4644 | result = (bool)wxGetKeyState((wxKeyCode )arg1); | |
4645 | ||
4646 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4647 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4648 | } |
4649 | { | |
4650 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4651 | } | |
4652 | return resultobj; | |
4653 | fail: | |
4654 | return NULL; | |
4655 | } | |
4656 | ||
4657 | ||
c370783e | 4658 | static PyObject *_wrap_WakeUpMainThread(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4659 | PyObject *resultobj; |
4660 | char *kwnames[] = { | |
4661 | NULL | |
4662 | }; | |
4663 | ||
4664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpMainThread",kwnames)) goto fail; | |
4665 | { | |
0439c23b | 4666 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4668 | wxWakeUpMainThread(); | |
4669 | ||
4670 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4671 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4672 | } |
4673 | Py_INCREF(Py_None); resultobj = Py_None; | |
4674 | return resultobj; | |
4675 | fail: | |
4676 | return NULL; | |
4677 | } | |
4678 | ||
4679 | ||
c370783e | 4680 | static PyObject *_wrap_MutexGuiEnter(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4681 | PyObject *resultobj; |
4682 | char *kwnames[] = { | |
4683 | NULL | |
4684 | }; | |
4685 | ||
4686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiEnter",kwnames)) goto fail; | |
4687 | { | |
0439c23b | 4688 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4690 | wxMutexGuiEnter(); | |
4691 | ||
4692 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4693 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4694 | } |
4695 | Py_INCREF(Py_None); resultobj = Py_None; | |
4696 | return resultobj; | |
4697 | fail: | |
4698 | return NULL; | |
4699 | } | |
4700 | ||
4701 | ||
c370783e | 4702 | static PyObject *_wrap_MutexGuiLeave(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4703 | PyObject *resultobj; |
4704 | char *kwnames[] = { | |
4705 | NULL | |
4706 | }; | |
4707 | ||
4708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiLeave",kwnames)) goto fail; | |
4709 | { | |
0439c23b | 4710 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4712 | wxMutexGuiLeave(); | |
4713 | ||
4714 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4715 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4716 | } |
4717 | Py_INCREF(Py_None); resultobj = Py_None; | |
4718 | return resultobj; | |
4719 | fail: | |
4720 | return NULL; | |
4721 | } | |
4722 | ||
4723 | ||
c370783e | 4724 | static PyObject *_wrap_new_MutexGuiLocker(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4725 | PyObject *resultobj; |
4726 | wxMutexGuiLocker *result; | |
4727 | char *kwnames[] = { | |
4728 | NULL | |
4729 | }; | |
4730 | ||
4731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MutexGuiLocker",kwnames)) goto fail; | |
4732 | { | |
0439c23b | 4733 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4735 | result = (wxMutexGuiLocker *)new wxMutexGuiLocker(); | |
4736 | ||
4737 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4738 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4739 | } |
4740 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMutexGuiLocker, 1); | |
4741 | return resultobj; | |
4742 | fail: | |
4743 | return NULL; | |
4744 | } | |
4745 | ||
4746 | ||
c370783e | 4747 | static PyObject *_wrap_delete_MutexGuiLocker(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4748 | PyObject *resultobj; |
4749 | wxMutexGuiLocker *arg1 = (wxMutexGuiLocker *) 0 ; | |
4750 | PyObject * obj0 = 0 ; | |
4751 | char *kwnames[] = { | |
4752 | (char *) "self", NULL | |
4753 | }; | |
4754 | ||
4755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MutexGuiLocker",kwnames,&obj0)) goto fail; | |
4756 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMutexGuiLocker, | |
4757 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4758 | { | |
4759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4760 | delete arg1; | |
4761 | ||
4762 | wxPyEndAllowThreads(__tstate); | |
4763 | if (PyErr_Occurred()) SWIG_fail; | |
4764 | } | |
4765 | Py_INCREF(Py_None); resultobj = Py_None; | |
4766 | return resultobj; | |
4767 | fail: | |
4768 | return NULL; | |
4769 | } | |
4770 | ||
4771 | ||
c370783e | 4772 | static PyObject * MutexGuiLocker_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
4773 | PyObject *obj; |
4774 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4775 | SWIG_TypeClientData(SWIGTYPE_p_wxMutexGuiLocker, obj); | |
4776 | Py_INCREF(obj); | |
4777 | return Py_BuildValue((char *)""); | |
4778 | } | |
c370783e | 4779 | static PyObject *_wrap_Thread_IsMain(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4780 | PyObject *resultobj; |
4781 | bool result; | |
4782 | char *kwnames[] = { | |
4783 | NULL | |
4784 | }; | |
4785 | ||
4786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Thread_IsMain",kwnames)) goto fail; | |
4787 | { | |
4788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4789 | result = (bool)wxThread_IsMain(); | |
4790 | ||
4791 | wxPyEndAllowThreads(__tstate); | |
4792 | if (PyErr_Occurred()) SWIG_fail; | |
4793 | } | |
4794 | { | |
4795 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4796 | } | |
4797 | return resultobj; | |
4798 | fail: | |
4799 | return NULL; | |
4800 | } | |
4801 | ||
4802 | ||
c370783e | 4803 | static PyObject *_wrap_new_ToolTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4804 | PyObject *resultobj; |
4805 | wxString *arg1 = 0 ; | |
4806 | wxToolTip *result; | |
b411df4a | 4807 | bool temp1 = false ; |
d55e5bfc RD |
4808 | PyObject * obj0 = 0 ; |
4809 | char *kwnames[] = { | |
4810 | (char *) "tip", NULL | |
4811 | }; | |
4812 | ||
4813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ToolTip",kwnames,&obj0)) goto fail; | |
4814 | { | |
4815 | arg1 = wxString_in_helper(obj0); | |
4816 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 4817 | temp1 = true; |
d55e5bfc RD |
4818 | } |
4819 | { | |
0439c23b | 4820 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4822 | result = (wxToolTip *)new wxToolTip((wxString const &)*arg1); | |
4823 | ||
4824 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4825 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4826 | } |
4827 | { | |
412d302d | 4828 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
4829 | } |
4830 | { | |
4831 | if (temp1) | |
4832 | delete arg1; | |
4833 | } | |
4834 | return resultobj; | |
4835 | fail: | |
4836 | { | |
4837 | if (temp1) | |
4838 | delete arg1; | |
4839 | } | |
4840 | return NULL; | |
4841 | } | |
4842 | ||
4843 | ||
c370783e | 4844 | static PyObject *_wrap_ToolTip_SetTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4845 | PyObject *resultobj; |
4846 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
4847 | wxString *arg2 = 0 ; | |
b411df4a | 4848 | bool temp2 = false ; |
d55e5bfc RD |
4849 | PyObject * obj0 = 0 ; |
4850 | PyObject * obj1 = 0 ; | |
4851 | char *kwnames[] = { | |
4852 | (char *) "self",(char *) "tip", NULL | |
4853 | }; | |
4854 | ||
4855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolTip_SetTip",kwnames,&obj0,&obj1)) goto fail; | |
4856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip, | |
4857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4858 | { | |
4859 | arg2 = wxString_in_helper(obj1); | |
4860 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 4861 | temp2 = true; |
d55e5bfc RD |
4862 | } |
4863 | { | |
4864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4865 | (arg1)->SetTip((wxString const &)*arg2); | |
4866 | ||
4867 | wxPyEndAllowThreads(__tstate); | |
4868 | if (PyErr_Occurred()) SWIG_fail; | |
4869 | } | |
4870 | Py_INCREF(Py_None); resultobj = Py_None; | |
4871 | { | |
4872 | if (temp2) | |
4873 | delete arg2; | |
4874 | } | |
4875 | return resultobj; | |
4876 | fail: | |
4877 | { | |
4878 | if (temp2) | |
4879 | delete arg2; | |
4880 | } | |
4881 | return NULL; | |
4882 | } | |
4883 | ||
4884 | ||
c370783e | 4885 | static PyObject *_wrap_ToolTip_GetTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4886 | PyObject *resultobj; |
4887 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
4888 | wxString result; | |
4889 | PyObject * obj0 = 0 ; | |
4890 | char *kwnames[] = { | |
4891 | (char *) "self", NULL | |
4892 | }; | |
4893 | ||
4894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetTip",kwnames,&obj0)) goto fail; | |
4895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip, | |
4896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4897 | { | |
4898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4899 | result = (arg1)->GetTip(); | |
4900 | ||
4901 | wxPyEndAllowThreads(__tstate); | |
4902 | if (PyErr_Occurred()) SWIG_fail; | |
4903 | } | |
4904 | { | |
4905 | #if wxUSE_UNICODE | |
4906 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4907 | #else | |
4908 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4909 | #endif | |
4910 | } | |
4911 | return resultobj; | |
4912 | fail: | |
4913 | return NULL; | |
4914 | } | |
4915 | ||
4916 | ||
c370783e | 4917 | static PyObject *_wrap_ToolTip_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4918 | PyObject *resultobj; |
4919 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
4920 | wxWindow *result; | |
4921 | PyObject * obj0 = 0 ; | |
4922 | char *kwnames[] = { | |
4923 | (char *) "self", NULL | |
4924 | }; | |
4925 | ||
4926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetWindow",kwnames,&obj0)) goto fail; | |
4927 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip, | |
4928 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4929 | { | |
4930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4931 | result = (wxWindow *)(arg1)->GetWindow(); | |
4932 | ||
4933 | wxPyEndAllowThreads(__tstate); | |
4934 | if (PyErr_Occurred()) SWIG_fail; | |
4935 | } | |
4936 | { | |
412d302d | 4937 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
4938 | } |
4939 | return resultobj; | |
4940 | fail: | |
4941 | return NULL; | |
4942 | } | |
4943 | ||
4944 | ||
c370783e | 4945 | static PyObject *_wrap_ToolTip_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4946 | PyObject *resultobj; |
4947 | bool arg1 ; | |
4948 | PyObject * obj0 = 0 ; | |
4949 | char *kwnames[] = { | |
4950 | (char *) "flag", NULL | |
4951 | }; | |
4952 | ||
4953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_Enable",kwnames,&obj0)) goto fail; | |
c370783e | 4954 | arg1 = (bool)SWIG_As_bool(obj0); |
d55e5bfc RD |
4955 | if (PyErr_Occurred()) SWIG_fail; |
4956 | { | |
4957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4958 | wxToolTip::Enable(arg1); | |
4959 | ||
4960 | wxPyEndAllowThreads(__tstate); | |
4961 | if (PyErr_Occurred()) SWIG_fail; | |
4962 | } | |
4963 | Py_INCREF(Py_None); resultobj = Py_None; | |
4964 | return resultobj; | |
4965 | fail: | |
4966 | return NULL; | |
4967 | } | |
4968 | ||
4969 | ||
c370783e | 4970 | static PyObject *_wrap_ToolTip_SetDelay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4971 | PyObject *resultobj; |
4972 | long arg1 ; | |
4973 | PyObject * obj0 = 0 ; | |
4974 | char *kwnames[] = { | |
4975 | (char *) "milliseconds", NULL | |
4976 | }; | |
4977 | ||
4978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_SetDelay",kwnames,&obj0)) goto fail; | |
c370783e | 4979 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
4980 | if (PyErr_Occurred()) SWIG_fail; |
4981 | { | |
4982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4983 | wxToolTip::SetDelay(arg1); | |
4984 | ||
4985 | wxPyEndAllowThreads(__tstate); | |
4986 | if (PyErr_Occurred()) SWIG_fail; | |
4987 | } | |
4988 | Py_INCREF(Py_None); resultobj = Py_None; | |
4989 | return resultobj; | |
4990 | fail: | |
4991 | return NULL; | |
4992 | } | |
4993 | ||
4994 | ||
c370783e | 4995 | static PyObject * ToolTip_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
4996 | PyObject *obj; |
4997 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4998 | SWIG_TypeClientData(SWIGTYPE_p_wxToolTip, obj); | |
4999 | Py_INCREF(obj); | |
5000 | return Py_BuildValue((char *)""); | |
5001 | } | |
c370783e | 5002 | static PyObject *_wrap_new_Caret(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5003 | PyObject *resultobj; |
5004 | wxWindow *arg1 = (wxWindow *) 0 ; | |
5005 | wxSize *arg2 = 0 ; | |
5006 | wxCaret *result; | |
5007 | wxSize temp2 ; | |
5008 | PyObject * obj0 = 0 ; | |
5009 | PyObject * obj1 = 0 ; | |
5010 | char *kwnames[] = { | |
5011 | (char *) "window",(char *) "size", NULL | |
5012 | }; | |
5013 | ||
5014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_Caret",kwnames,&obj0,&obj1)) goto fail; | |
5015 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
5016 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5017 | { | |
5018 | arg2 = &temp2; | |
5019 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
5020 | } | |
5021 | { | |
0439c23b | 5022 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5024 | result = (wxCaret *)new wxCaret(arg1,(wxSize const &)*arg2); | |
5025 | ||
5026 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5027 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5028 | } |
5029 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 1); | |
5030 | return resultobj; | |
5031 | fail: | |
5032 | return NULL; | |
5033 | } | |
5034 | ||
5035 | ||
c370783e | 5036 | static PyObject *_wrap_delete_Caret(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5037 | PyObject *resultobj; |
5038 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5039 | PyObject * obj0 = 0 ; | |
5040 | char *kwnames[] = { | |
5041 | (char *) "self", NULL | |
5042 | }; | |
5043 | ||
5044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Caret",kwnames,&obj0)) goto fail; | |
5045 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5046 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5047 | { | |
5048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5049 | delete arg1; | |
5050 | ||
5051 | wxPyEndAllowThreads(__tstate); | |
5052 | if (PyErr_Occurred()) SWIG_fail; | |
5053 | } | |
5054 | Py_INCREF(Py_None); resultobj = Py_None; | |
5055 | return resultobj; | |
5056 | fail: | |
5057 | return NULL; | |
5058 | } | |
5059 | ||
5060 | ||
c370783e | 5061 | static PyObject *_wrap_Caret_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5062 | PyObject *resultobj; |
5063 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5064 | bool result; | |
5065 | PyObject * obj0 = 0 ; | |
5066 | char *kwnames[] = { | |
5067 | (char *) "self", NULL | |
5068 | }; | |
5069 | ||
5070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsOk",kwnames,&obj0)) goto fail; | |
5071 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5072 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5073 | { | |
5074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5075 | result = (bool)(arg1)->IsOk(); | |
5076 | ||
5077 | wxPyEndAllowThreads(__tstate); | |
5078 | if (PyErr_Occurred()) SWIG_fail; | |
5079 | } | |
5080 | { | |
5081 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5082 | } | |
5083 | return resultobj; | |
5084 | fail: | |
5085 | return NULL; | |
5086 | } | |
5087 | ||
5088 | ||
c370783e | 5089 | static PyObject *_wrap_Caret_IsVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5090 | PyObject *resultobj; |
5091 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5092 | bool result; | |
5093 | PyObject * obj0 = 0 ; | |
5094 | char *kwnames[] = { | |
5095 | (char *) "self", NULL | |
5096 | }; | |
5097 | ||
5098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsVisible",kwnames,&obj0)) goto fail; | |
5099 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5100 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5101 | { | |
5102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5103 | result = (bool)(arg1)->IsVisible(); | |
5104 | ||
5105 | wxPyEndAllowThreads(__tstate); | |
5106 | if (PyErr_Occurred()) SWIG_fail; | |
5107 | } | |
5108 | { | |
5109 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5110 | } | |
5111 | return resultobj; | |
5112 | fail: | |
5113 | return NULL; | |
5114 | } | |
5115 | ||
5116 | ||
c370783e | 5117 | static PyObject *_wrap_Caret_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5118 | PyObject *resultobj; |
5119 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5120 | wxPoint result; | |
5121 | PyObject * obj0 = 0 ; | |
5122 | char *kwnames[] = { | |
5123 | (char *) "self", NULL | |
5124 | }; | |
5125 | ||
5126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPosition",kwnames,&obj0)) goto fail; | |
5127 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5129 | { | |
5130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5131 | result = (arg1)->GetPosition(); | |
5132 | ||
5133 | wxPyEndAllowThreads(__tstate); | |
5134 | if (PyErr_Occurred()) SWIG_fail; | |
5135 | } | |
5136 | { | |
5137 | wxPoint * resultptr; | |
5138 | resultptr = new wxPoint((wxPoint &) result); | |
5139 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
5140 | } | |
5141 | return resultobj; | |
5142 | fail: | |
5143 | return NULL; | |
5144 | } | |
5145 | ||
5146 | ||
c370783e | 5147 | static PyObject *_wrap_Caret_GetPositionTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5148 | PyObject *resultobj; |
5149 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5150 | int *arg2 = (int *) 0 ; | |
5151 | int *arg3 = (int *) 0 ; | |
5152 | int temp2 ; | |
c370783e | 5153 | int res2 = 0 ; |
d55e5bfc | 5154 | int temp3 ; |
c370783e | 5155 | int res3 = 0 ; |
d55e5bfc RD |
5156 | PyObject * obj0 = 0 ; |
5157 | char *kwnames[] = { | |
5158 | (char *) "self", NULL | |
5159 | }; | |
5160 | ||
c370783e RD |
5161 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
5162 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
5163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPositionTuple",kwnames,&obj0)) goto fail; |
5164 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5165 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5166 | { | |
5167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5168 | (arg1)->GetPosition(arg2,arg3); | |
5169 | ||
5170 | wxPyEndAllowThreads(__tstate); | |
5171 | if (PyErr_Occurred()) SWIG_fail; | |
5172 | } | |
5173 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
5174 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
5175 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
5176 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
5177 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
5178 | return resultobj; |
5179 | fail: | |
5180 | return NULL; | |
5181 | } | |
5182 | ||
5183 | ||
c370783e | 5184 | static PyObject *_wrap_Caret_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5185 | PyObject *resultobj; |
5186 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5187 | wxSize result; | |
5188 | PyObject * obj0 = 0 ; | |
5189 | char *kwnames[] = { | |
5190 | (char *) "self", NULL | |
5191 | }; | |
5192 | ||
5193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSize",kwnames,&obj0)) goto fail; | |
5194 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5195 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5196 | { | |
5197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5198 | result = (arg1)->GetSize(); | |
5199 | ||
5200 | wxPyEndAllowThreads(__tstate); | |
5201 | if (PyErr_Occurred()) SWIG_fail; | |
5202 | } | |
5203 | { | |
5204 | wxSize * resultptr; | |
5205 | resultptr = new wxSize((wxSize &) result); | |
5206 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
5207 | } | |
5208 | return resultobj; | |
5209 | fail: | |
5210 | return NULL; | |
5211 | } | |
5212 | ||
5213 | ||
c370783e | 5214 | static PyObject *_wrap_Caret_GetSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5215 | PyObject *resultobj; |
5216 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5217 | int *arg2 = (int *) 0 ; | |
5218 | int *arg3 = (int *) 0 ; | |
5219 | int temp2 ; | |
c370783e | 5220 | int res2 = 0 ; |
d55e5bfc | 5221 | int temp3 ; |
c370783e | 5222 | int res3 = 0 ; |
d55e5bfc RD |
5223 | PyObject * obj0 = 0 ; |
5224 | char *kwnames[] = { | |
5225 | (char *) "self", NULL | |
5226 | }; | |
5227 | ||
c370783e RD |
5228 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
5229 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
5230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSizeTuple",kwnames,&obj0)) goto fail; |
5231 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5232 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5233 | { | |
5234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5235 | (arg1)->GetSize(arg2,arg3); | |
5236 | ||
5237 | wxPyEndAllowThreads(__tstate); | |
5238 | if (PyErr_Occurred()) SWIG_fail; | |
5239 | } | |
5240 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
5241 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
5242 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
5243 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
5244 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
5245 | return resultobj; |
5246 | fail: | |
5247 | return NULL; | |
5248 | } | |
5249 | ||
5250 | ||
c370783e | 5251 | static PyObject *_wrap_Caret_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5252 | PyObject *resultobj; |
5253 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5254 | wxWindow *result; | |
5255 | PyObject * obj0 = 0 ; | |
5256 | char *kwnames[] = { | |
5257 | (char *) "self", NULL | |
5258 | }; | |
5259 | ||
5260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetWindow",kwnames,&obj0)) goto fail; | |
5261 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5262 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5263 | { | |
5264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5265 | result = (wxWindow *)(arg1)->GetWindow(); | |
5266 | ||
5267 | wxPyEndAllowThreads(__tstate); | |
5268 | if (PyErr_Occurred()) SWIG_fail; | |
5269 | } | |
5270 | { | |
412d302d | 5271 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
5272 | } |
5273 | return resultobj; | |
5274 | fail: | |
5275 | return NULL; | |
5276 | } | |
5277 | ||
5278 | ||
c370783e | 5279 | static PyObject *_wrap_Caret_MoveXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5280 | PyObject *resultobj; |
5281 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5282 | int arg2 ; | |
5283 | int arg3 ; | |
5284 | PyObject * obj0 = 0 ; | |
5285 | PyObject * obj1 = 0 ; | |
5286 | PyObject * obj2 = 0 ; | |
5287 | char *kwnames[] = { | |
5288 | (char *) "self",(char *) "x",(char *) "y", NULL | |
5289 | }; | |
5290 | ||
5291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_MoveXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5292 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5293 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 5294 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 5295 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 5296 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
5297 | if (PyErr_Occurred()) SWIG_fail; |
5298 | { | |
5299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5300 | (arg1)->Move(arg2,arg3); | |
5301 | ||
5302 | wxPyEndAllowThreads(__tstate); | |
5303 | if (PyErr_Occurred()) SWIG_fail; | |
5304 | } | |
5305 | Py_INCREF(Py_None); resultobj = Py_None; | |
5306 | return resultobj; | |
5307 | fail: | |
5308 | return NULL; | |
5309 | } | |
5310 | ||
5311 | ||
c370783e | 5312 | static PyObject *_wrap_Caret_Move(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5313 | PyObject *resultobj; |
5314 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5315 | wxPoint *arg2 = 0 ; | |
5316 | wxPoint temp2 ; | |
5317 | PyObject * obj0 = 0 ; | |
5318 | PyObject * obj1 = 0 ; | |
5319 | char *kwnames[] = { | |
5320 | (char *) "self",(char *) "pt", NULL | |
5321 | }; | |
5322 | ||
5323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_Move",kwnames,&obj0,&obj1)) goto fail; | |
5324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5326 | { | |
5327 | arg2 = &temp2; | |
5328 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
5329 | } | |
5330 | { | |
5331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5332 | (arg1)->Move((wxPoint const &)*arg2); | |
5333 | ||
5334 | wxPyEndAllowThreads(__tstate); | |
5335 | if (PyErr_Occurred()) SWIG_fail; | |
5336 | } | |
5337 | Py_INCREF(Py_None); resultobj = Py_None; | |
5338 | return resultobj; | |
5339 | fail: | |
5340 | return NULL; | |
5341 | } | |
5342 | ||
5343 | ||
c370783e | 5344 | static PyObject *_wrap_Caret_SetSizeWH(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5345 | PyObject *resultobj; |
5346 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5347 | int arg2 ; | |
5348 | int arg3 ; | |
5349 | PyObject * obj0 = 0 ; | |
5350 | PyObject * obj1 = 0 ; | |
5351 | PyObject * obj2 = 0 ; | |
5352 | char *kwnames[] = { | |
5353 | (char *) "self",(char *) "width",(char *) "height", NULL | |
5354 | }; | |
5355 | ||
5356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5357 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5358 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 5359 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 5360 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 5361 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
5362 | if (PyErr_Occurred()) SWIG_fail; |
5363 | { | |
5364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5365 | (arg1)->SetSize(arg2,arg3); | |
5366 | ||
5367 | wxPyEndAllowThreads(__tstate); | |
5368 | if (PyErr_Occurred()) SWIG_fail; | |
5369 | } | |
5370 | Py_INCREF(Py_None); resultobj = Py_None; | |
5371 | return resultobj; | |
5372 | fail: | |
5373 | return NULL; | |
5374 | } | |
5375 | ||
5376 | ||
c370783e | 5377 | static PyObject *_wrap_Caret_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5378 | PyObject *resultobj; |
5379 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5380 | wxSize *arg2 = 0 ; | |
5381 | wxSize temp2 ; | |
5382 | PyObject * obj0 = 0 ; | |
5383 | PyObject * obj1 = 0 ; | |
5384 | char *kwnames[] = { | |
5385 | (char *) "self",(char *) "size", NULL | |
5386 | }; | |
5387 | ||
5388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
5389 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5391 | { | |
5392 | arg2 = &temp2; | |
5393 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
5394 | } | |
5395 | { | |
5396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5397 | (arg1)->SetSize((wxSize const &)*arg2); | |
5398 | ||
5399 | wxPyEndAllowThreads(__tstate); | |
5400 | if (PyErr_Occurred()) SWIG_fail; | |
5401 | } | |
5402 | Py_INCREF(Py_None); resultobj = Py_None; | |
5403 | return resultobj; | |
5404 | fail: | |
5405 | return NULL; | |
5406 | } | |
5407 | ||
5408 | ||
c370783e | 5409 | static PyObject *_wrap_Caret_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5410 | PyObject *resultobj; |
5411 | wxCaret *arg1 = (wxCaret *) 0 ; | |
b411df4a | 5412 | int arg2 = (int) true ; |
d55e5bfc RD |
5413 | PyObject * obj0 = 0 ; |
5414 | PyObject * obj1 = 0 ; | |
5415 | char *kwnames[] = { | |
5416 | (char *) "self",(char *) "show", NULL | |
5417 | }; | |
5418 | ||
5419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Caret_Show",kwnames,&obj0,&obj1)) goto fail; | |
5420 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5421 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5422 | if (obj1) { | |
c370783e | 5423 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
5424 | if (PyErr_Occurred()) SWIG_fail; |
5425 | } | |
5426 | { | |
5427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5428 | (arg1)->Show(arg2); | |
5429 | ||
5430 | wxPyEndAllowThreads(__tstate); | |
5431 | if (PyErr_Occurred()) SWIG_fail; | |
5432 | } | |
5433 | Py_INCREF(Py_None); resultobj = Py_None; | |
5434 | return resultobj; | |
5435 | fail: | |
5436 | return NULL; | |
5437 | } | |
5438 | ||
5439 | ||
c370783e | 5440 | static PyObject *_wrap_Caret_Hide(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5441 | PyObject *resultobj; |
5442 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5443 | PyObject * obj0 = 0 ; | |
5444 | char *kwnames[] = { | |
5445 | (char *) "self", NULL | |
5446 | }; | |
5447 | ||
5448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Hide",kwnames,&obj0)) goto fail; | |
5449 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5450 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5451 | { | |
5452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5453 | (arg1)->Hide(); | |
5454 | ||
5455 | wxPyEndAllowThreads(__tstate); | |
5456 | if (PyErr_Occurred()) SWIG_fail; | |
5457 | } | |
5458 | Py_INCREF(Py_None); resultobj = Py_None; | |
5459 | return resultobj; | |
5460 | fail: | |
5461 | return NULL; | |
5462 | } | |
5463 | ||
5464 | ||
c370783e | 5465 | static PyObject * Caret_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
5466 | PyObject *obj; |
5467 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5468 | SWIG_TypeClientData(SWIGTYPE_p_wxCaret, obj); | |
5469 | Py_INCREF(obj); | |
5470 | return Py_BuildValue((char *)""); | |
5471 | } | |
c370783e | 5472 | static PyObject *_wrap_Caret_GetBlinkTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5473 | PyObject *resultobj; |
5474 | int result; | |
5475 | char *kwnames[] = { | |
5476 | NULL | |
5477 | }; | |
5478 | ||
5479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Caret_GetBlinkTime",kwnames)) goto fail; | |
5480 | { | |
5481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5482 | result = (int)wxCaret_GetBlinkTime(); | |
5483 | ||
5484 | wxPyEndAllowThreads(__tstate); | |
5485 | if (PyErr_Occurred()) SWIG_fail; | |
5486 | } | |
c370783e | 5487 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
5488 | return resultobj; |
5489 | fail: | |
5490 | return NULL; | |
5491 | } | |
5492 | ||
5493 | ||
c370783e | 5494 | static PyObject *_wrap_Caret_SetBlinkTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5495 | PyObject *resultobj; |
5496 | int arg1 ; | |
5497 | PyObject * obj0 = 0 ; | |
5498 | char *kwnames[] = { | |
5499 | (char *) "milliseconds", NULL | |
5500 | }; | |
5501 | ||
5502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_SetBlinkTime",kwnames,&obj0)) goto fail; | |
c370783e | 5503 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
5504 | if (PyErr_Occurred()) SWIG_fail; |
5505 | { | |
5506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5507 | wxCaret_SetBlinkTime(arg1); | |
5508 | ||
5509 | wxPyEndAllowThreads(__tstate); | |
5510 | if (PyErr_Occurred()) SWIG_fail; | |
5511 | } | |
5512 | Py_INCREF(Py_None); resultobj = Py_None; | |
5513 | return resultobj; | |
5514 | fail: | |
5515 | return NULL; | |
5516 | } | |
5517 | ||
5518 | ||
c370783e | 5519 | static PyObject *_wrap_new_BusyCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5520 | PyObject *resultobj; |
5521 | wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ; | |
5522 | wxBusyCursor *result; | |
5523 | PyObject * obj0 = 0 ; | |
5524 | char *kwnames[] = { | |
5525 | (char *) "cursor", NULL | |
5526 | }; | |
5527 | ||
5528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BusyCursor",kwnames,&obj0)) goto fail; | |
5529 | if (obj0) { | |
5530 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
5531 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5532 | } | |
5533 | { | |
0439c23b | 5534 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5536 | result = (wxBusyCursor *)new wxBusyCursor(arg1); | |
5537 | ||
5538 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5539 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5540 | } |
5541 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyCursor, 1); | |
5542 | return resultobj; | |
5543 | fail: | |
5544 | return NULL; | |
5545 | } | |
5546 | ||
5547 | ||
c370783e | 5548 | static PyObject *_wrap_delete_BusyCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5549 | PyObject *resultobj; |
5550 | wxBusyCursor *arg1 = (wxBusyCursor *) 0 ; | |
5551 | PyObject * obj0 = 0 ; | |
5552 | char *kwnames[] = { | |
5553 | (char *) "self", NULL | |
5554 | }; | |
5555 | ||
5556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyCursor",kwnames,&obj0)) goto fail; | |
5557 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyCursor, | |
5558 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5559 | { | |
5560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5561 | delete arg1; | |
5562 | ||
5563 | wxPyEndAllowThreads(__tstate); | |
5564 | if (PyErr_Occurred()) SWIG_fail; | |
5565 | } | |
5566 | Py_INCREF(Py_None); resultobj = Py_None; | |
5567 | return resultobj; | |
5568 | fail: | |
5569 | return NULL; | |
5570 | } | |
5571 | ||
5572 | ||
c370783e | 5573 | static PyObject * BusyCursor_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
5574 | PyObject *obj; |
5575 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5576 | SWIG_TypeClientData(SWIGTYPE_p_wxBusyCursor, obj); | |
5577 | Py_INCREF(obj); | |
5578 | return Py_BuildValue((char *)""); | |
5579 | } | |
c370783e | 5580 | static PyObject *_wrap_new_WindowDisabler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5581 | PyObject *resultobj; |
5582 | wxWindow *arg1 = (wxWindow *) NULL ; | |
5583 | wxWindowDisabler *result; | |
5584 | PyObject * obj0 = 0 ; | |
5585 | char *kwnames[] = { | |
5586 | (char *) "winToSkip", NULL | |
5587 | }; | |
5588 | ||
5589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDisabler",kwnames,&obj0)) goto fail; | |
5590 | if (obj0) { | |
5591 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
5592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5593 | } | |
5594 | { | |
0439c23b | 5595 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5597 | result = (wxWindowDisabler *)new wxWindowDisabler(arg1); | |
5598 | ||
5599 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5600 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5601 | } |
5602 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDisabler, 1); | |
5603 | return resultobj; | |
5604 | fail: | |
5605 | return NULL; | |
5606 | } | |
5607 | ||
5608 | ||
c370783e | 5609 | static PyObject *_wrap_delete_WindowDisabler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5610 | PyObject *resultobj; |
5611 | wxWindowDisabler *arg1 = (wxWindowDisabler *) 0 ; | |
5612 | PyObject * obj0 = 0 ; | |
5613 | char *kwnames[] = { | |
5614 | (char *) "self", NULL | |
5615 | }; | |
5616 | ||
5617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_WindowDisabler",kwnames,&obj0)) goto fail; | |
5618 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDisabler, | |
5619 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5620 | { | |
5621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5622 | delete arg1; | |
5623 | ||
5624 | wxPyEndAllowThreads(__tstate); | |
5625 | if (PyErr_Occurred()) SWIG_fail; | |
5626 | } | |
5627 | Py_INCREF(Py_None); resultobj = Py_None; | |
5628 | return resultobj; | |
5629 | fail: | |
5630 | return NULL; | |
5631 | } | |
5632 | ||
5633 | ||
c370783e | 5634 | static PyObject * WindowDisabler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
5635 | PyObject *obj; |
5636 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5637 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDisabler, obj); | |
5638 | Py_INCREF(obj); | |
5639 | return Py_BuildValue((char *)""); | |
5640 | } | |
c370783e | 5641 | static PyObject *_wrap_new_BusyInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5642 | PyObject *resultobj; |
5643 | wxString *arg1 = 0 ; | |
5644 | wxBusyInfo *result; | |
b411df4a | 5645 | bool temp1 = false ; |
d55e5bfc RD |
5646 | PyObject * obj0 = 0 ; |
5647 | char *kwnames[] = { | |
5648 | (char *) "message", NULL | |
5649 | }; | |
5650 | ||
5651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BusyInfo",kwnames,&obj0)) goto fail; | |
5652 | { | |
5653 | arg1 = wxString_in_helper(obj0); | |
5654 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 5655 | temp1 = true; |
d55e5bfc RD |
5656 | } |
5657 | { | |
0439c23b | 5658 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5660 | result = (wxBusyInfo *)new wxBusyInfo((wxString const &)*arg1); | |
5661 | ||
5662 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5663 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5664 | } |
5665 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyInfo, 1); | |
5666 | { | |
5667 | if (temp1) | |
5668 | delete arg1; | |
5669 | } | |
5670 | return resultobj; | |
5671 | fail: | |
5672 | { | |
5673 | if (temp1) | |
5674 | delete arg1; | |
5675 | } | |
5676 | return NULL; | |
5677 | } | |
5678 | ||
5679 | ||
c370783e | 5680 | static PyObject *_wrap_delete_BusyInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5681 | PyObject *resultobj; |
5682 | wxBusyInfo *arg1 = (wxBusyInfo *) 0 ; | |
5683 | PyObject * obj0 = 0 ; | |
5684 | char *kwnames[] = { | |
5685 | (char *) "self", NULL | |
5686 | }; | |
5687 | ||
5688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyInfo",kwnames,&obj0)) goto fail; | |
5689 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyInfo, | |
5690 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5691 | { | |
5692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5693 | delete arg1; | |
5694 | ||
5695 | wxPyEndAllowThreads(__tstate); | |
5696 | if (PyErr_Occurred()) SWIG_fail; | |
5697 | } | |
5698 | Py_INCREF(Py_None); resultobj = Py_None; | |
5699 | return resultobj; | |
5700 | fail: | |
5701 | return NULL; | |
5702 | } | |
5703 | ||
5704 | ||
c370783e | 5705 | static PyObject * BusyInfo_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
5706 | PyObject *obj; |
5707 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5708 | SWIG_TypeClientData(SWIGTYPE_p_wxBusyInfo, obj); | |
5709 | Py_INCREF(obj); | |
5710 | return Py_BuildValue((char *)""); | |
5711 | } | |
c370783e | 5712 | static PyObject *_wrap_new_StopWatch(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5713 | PyObject *resultobj; |
5714 | wxStopWatch *result; | |
5715 | char *kwnames[] = { | |
5716 | NULL | |
5717 | }; | |
5718 | ||
5719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StopWatch",kwnames)) goto fail; | |
5720 | { | |
5721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5722 | result = (wxStopWatch *)new wxStopWatch(); | |
5723 | ||
5724 | wxPyEndAllowThreads(__tstate); | |
5725 | if (PyErr_Occurred()) SWIG_fail; | |
5726 | } | |
5727 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStopWatch, 1); | |
5728 | return resultobj; | |
5729 | fail: | |
5730 | return NULL; | |
5731 | } | |
5732 | ||
5733 | ||
c370783e | 5734 | static PyObject *_wrap_StopWatch_Start(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5735 | PyObject *resultobj; |
5736 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5737 | long arg2 = (long) 0 ; | |
5738 | PyObject * obj0 = 0 ; | |
5739 | PyObject * obj1 = 0 ; | |
5740 | char *kwnames[] = { | |
5741 | (char *) "self",(char *) "t0", NULL | |
5742 | }; | |
5743 | ||
5744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StopWatch_Start",kwnames,&obj0,&obj1)) goto fail; | |
5745 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, | |
5746 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5747 | if (obj1) { | |
c370783e | 5748 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
5749 | if (PyErr_Occurred()) SWIG_fail; |
5750 | } | |
5751 | { | |
5752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5753 | (arg1)->Start(arg2); | |
5754 | ||
5755 | wxPyEndAllowThreads(__tstate); | |
5756 | if (PyErr_Occurred()) SWIG_fail; | |
5757 | } | |
5758 | Py_INCREF(Py_None); resultobj = Py_None; | |
5759 | return resultobj; | |
5760 | fail: | |
5761 | return NULL; | |
5762 | } | |
5763 | ||
5764 | ||
c370783e | 5765 | static PyObject *_wrap_StopWatch_Pause(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5766 | PyObject *resultobj; |
5767 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5768 | PyObject * obj0 = 0 ; | |
5769 | char *kwnames[] = { | |
5770 | (char *) "self", NULL | |
5771 | }; | |
5772 | ||
5773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Pause",kwnames,&obj0)) goto fail; | |
5774 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, | |
5775 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5776 | { | |
5777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5778 | (arg1)->Pause(); | |
5779 | ||
5780 | wxPyEndAllowThreads(__tstate); | |
5781 | if (PyErr_Occurred()) SWIG_fail; | |
5782 | } | |
5783 | Py_INCREF(Py_None); resultobj = Py_None; | |
5784 | return resultobj; | |
5785 | fail: | |
5786 | return NULL; | |
5787 | } | |
5788 | ||
5789 | ||
c370783e | 5790 | static PyObject *_wrap_StopWatch_Resume(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5791 | PyObject *resultobj; |
5792 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5793 | PyObject * obj0 = 0 ; | |
5794 | char *kwnames[] = { | |
5795 | (char *) "self", NULL | |
5796 | }; | |
5797 | ||
5798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Resume",kwnames,&obj0)) goto fail; | |
5799 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, | |
5800 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5801 | { | |
5802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5803 | (arg1)->Resume(); | |
5804 | ||
5805 | wxPyEndAllowThreads(__tstate); | |
5806 | if (PyErr_Occurred()) SWIG_fail; | |
5807 | } | |
5808 | Py_INCREF(Py_None); resultobj = Py_None; | |
5809 | return resultobj; | |
5810 | fail: | |
5811 | return NULL; | |
5812 | } | |
5813 | ||
5814 | ||
c370783e | 5815 | static PyObject *_wrap_StopWatch_Time(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5816 | PyObject *resultobj; |
5817 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5818 | long result; | |
5819 | PyObject * obj0 = 0 ; | |
5820 | char *kwnames[] = { | |
5821 | (char *) "self", NULL | |
5822 | }; | |
5823 | ||
5824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Time",kwnames,&obj0)) goto fail; | |
5825 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, | |
5826 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5827 | { | |
5828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5829 | result = (long)((wxStopWatch const *)arg1)->Time(); | |
5830 | ||
5831 | wxPyEndAllowThreads(__tstate); | |
5832 | if (PyErr_Occurred()) SWIG_fail; | |
5833 | } | |
c370783e | 5834 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
5835 | return resultobj; |
5836 | fail: | |
5837 | return NULL; | |
5838 | } | |
5839 | ||
5840 | ||
c370783e | 5841 | static PyObject * StopWatch_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
5842 | PyObject *obj; |
5843 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5844 | SWIG_TypeClientData(SWIGTYPE_p_wxStopWatch, obj); | |
5845 | Py_INCREF(obj); | |
5846 | return Py_BuildValue((char *)""); | |
5847 | } | |
c370783e | 5848 | static PyObject *_wrap_new_FileHistory(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5849 | PyObject *resultobj; |
5850 | int arg1 = (int) 9 ; | |
4cf4100f | 5851 | int arg2 = (int) wxID_FILE1 ; |
d55e5bfc RD |
5852 | wxFileHistory *result; |
5853 | PyObject * obj0 = 0 ; | |
4cf4100f | 5854 | PyObject * obj1 = 0 ; |
d55e5bfc | 5855 | char *kwnames[] = { |
4cf4100f | 5856 | (char *) "maxFiles",(char *) "idBase", NULL |
d55e5bfc RD |
5857 | }; |
5858 | ||
4cf4100f | 5859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FileHistory",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc | 5860 | if (obj0) { |
c370783e | 5861 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
5862 | if (PyErr_Occurred()) SWIG_fail; |
5863 | } | |
4cf4100f | 5864 | if (obj1) { |
c370783e | 5865 | arg2 = (int)SWIG_As_int(obj1); |
4cf4100f RD |
5866 | if (PyErr_Occurred()) SWIG_fail; |
5867 | } | |
d55e5bfc RD |
5868 | { |
5869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4cf4100f | 5870 | result = (wxFileHistory *)new wxFileHistory(arg1,arg2); |
d55e5bfc RD |
5871 | |
5872 | wxPyEndAllowThreads(__tstate); | |
5873 | if (PyErr_Occurred()) SWIG_fail; | |
5874 | } | |
5875 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileHistory, 1); | |
5876 | return resultobj; | |
5877 | fail: | |
5878 | return NULL; | |
5879 | } | |
5880 | ||
5881 | ||
c370783e | 5882 | static PyObject *_wrap_delete_FileHistory(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5883 | PyObject *resultobj; |
5884 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5885 | PyObject * obj0 = 0 ; | |
5886 | char *kwnames[] = { | |
5887 | (char *) "self", NULL | |
5888 | }; | |
5889 | ||
5890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileHistory",kwnames,&obj0)) goto fail; | |
5891 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5892 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5893 | { | |
5894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5895 | delete arg1; | |
5896 | ||
5897 | wxPyEndAllowThreads(__tstate); | |
5898 | if (PyErr_Occurred()) SWIG_fail; | |
5899 | } | |
5900 | Py_INCREF(Py_None); resultobj = Py_None; | |
5901 | return resultobj; | |
5902 | fail: | |
5903 | return NULL; | |
5904 | } | |
5905 | ||
5906 | ||
c370783e | 5907 | static PyObject *_wrap_FileHistory_AddFileToHistory(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5908 | PyObject *resultobj; |
5909 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5910 | wxString *arg2 = 0 ; | |
b411df4a | 5911 | bool temp2 = false ; |
d55e5bfc RD |
5912 | PyObject * obj0 = 0 ; |
5913 | PyObject * obj1 = 0 ; | |
5914 | char *kwnames[] = { | |
5915 | (char *) "self",(char *) "file", NULL | |
5916 | }; | |
5917 | ||
5918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFileToHistory",kwnames,&obj0,&obj1)) goto fail; | |
5919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5921 | { | |
5922 | arg2 = wxString_in_helper(obj1); | |
5923 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 5924 | temp2 = true; |
d55e5bfc RD |
5925 | } |
5926 | { | |
5927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5928 | (arg1)->AddFileToHistory((wxString const &)*arg2); | |
5929 | ||
5930 | wxPyEndAllowThreads(__tstate); | |
5931 | if (PyErr_Occurred()) SWIG_fail; | |
5932 | } | |
5933 | Py_INCREF(Py_None); resultobj = Py_None; | |
5934 | { | |
5935 | if (temp2) | |
5936 | delete arg2; | |
5937 | } | |
5938 | return resultobj; | |
5939 | fail: | |
5940 | { | |
5941 | if (temp2) | |
5942 | delete arg2; | |
5943 | } | |
5944 | return NULL; | |
5945 | } | |
5946 | ||
5947 | ||
c370783e | 5948 | static PyObject *_wrap_FileHistory_RemoveFileFromHistory(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5949 | PyObject *resultobj; |
5950 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5951 | int arg2 ; | |
5952 | PyObject * obj0 = 0 ; | |
5953 | PyObject * obj1 = 0 ; | |
5954 | char *kwnames[] = { | |
5955 | (char *) "self",(char *) "i", NULL | |
5956 | }; | |
5957 | ||
5958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveFileFromHistory",kwnames,&obj0,&obj1)) goto fail; | |
5959 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5960 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 5961 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
5962 | if (PyErr_Occurred()) SWIG_fail; |
5963 | { | |
5964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5965 | (arg1)->RemoveFileFromHistory(arg2); | |
5966 | ||
5967 | wxPyEndAllowThreads(__tstate); | |
5968 | if (PyErr_Occurred()) SWIG_fail; | |
5969 | } | |
5970 | Py_INCREF(Py_None); resultobj = Py_None; | |
5971 | return resultobj; | |
5972 | fail: | |
5973 | return NULL; | |
5974 | } | |
5975 | ||
5976 | ||
c370783e | 5977 | static PyObject *_wrap_FileHistory_GetMaxFiles(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5978 | PyObject *resultobj; |
5979 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5980 | int result; | |
5981 | PyObject * obj0 = 0 ; | |
5982 | char *kwnames[] = { | |
5983 | (char *) "self", NULL | |
5984 | }; | |
5985 | ||
5986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetMaxFiles",kwnames,&obj0)) goto fail; | |
5987 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5988 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5989 | { | |
5990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5991 | result = (int)((wxFileHistory const *)arg1)->GetMaxFiles(); | |
5992 | ||
5993 | wxPyEndAllowThreads(__tstate); | |
5994 | if (PyErr_Occurred()) SWIG_fail; | |
5995 | } | |
c370783e | 5996 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
5997 | return resultobj; |
5998 | fail: | |
5999 | return NULL; | |
6000 | } | |
6001 | ||
6002 | ||
c370783e | 6003 | static PyObject *_wrap_FileHistory_UseMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6004 | PyObject *resultobj; |
6005 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
6006 | wxMenu *arg2 = (wxMenu *) 0 ; | |
6007 | PyObject * obj0 = 0 ; | |
6008 | PyObject * obj1 = 0 ; | |
6009 | char *kwnames[] = { | |
6010 | (char *) "self",(char *) "menu", NULL | |
6011 | }; | |
6012 | ||
6013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_UseMenu",kwnames,&obj0,&obj1)) goto fail; | |
6014 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
6015 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6016 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
6017 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6018 | { | |
6019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6020 | (arg1)->UseMenu(arg2); | |
6021 | ||
6022 | wxPyEndAllowThreads(__tstate); | |
6023 | if (PyErr_Occurred()) SWIG_fail; | |
6024 | } | |
6025 | Py_INCREF(Py_None); resultobj = Py_None; | |
6026 | return resultobj; | |
6027 | fail: | |
6028 | return NULL; | |
6029 | } | |
6030 | ||
6031 | ||
c370783e | 6032 | static PyObject *_wrap_FileHistory_RemoveMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6033 | PyObject *resultobj; |
6034 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
6035 | wxMenu *arg2 = (wxMenu *) 0 ; | |
6036 | PyObject * obj0 = 0 ; | |
6037 | PyObject * obj1 = 0 ; | |
6038 | char *kwnames[] = { | |
6039 | (char *) "self",(char *) "menu", NULL | |
6040 | }; | |
6041 | ||
6042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveMenu",kwnames,&obj0,&obj1)) goto fail; | |
6043 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
6044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6045 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
6046 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6047 | { | |
6048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6049 | (arg1)->RemoveMenu(arg2); | |
6050 | ||
6051 | wxPyEndAllowThreads(__tstate); | |
6052 | if (PyErr_Occurred()) SWIG_fail; | |
6053 | } | |
6054 | Py_INCREF(Py_None); resultobj = Py_None; | |
6055 | return resultobj; | |
6056 | fail: | |
6057 | return NULL; | |
6058 | } | |
6059 | ||
6060 | ||
c370783e | 6061 | static PyObject *_wrap_FileHistory_Load(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6062 | PyObject *resultobj; |
6063 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
6064 | wxConfigBase *arg2 = 0 ; | |
6065 | PyObject * obj0 = 0 ; | |
6066 | PyObject * obj1 = 0 ; | |
6067 | char *kwnames[] = { | |
6068 | (char *) "self",(char *) "config", NULL | |
6069 | }; | |
6070 | ||
6071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Load",kwnames,&obj0,&obj1)) goto fail; | |
6072 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
6073 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6074 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase, | |
6075 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6076 | SWIG_fail; | |
6077 | if (arg2 == NULL) { | |
6078 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6079 | SWIG_fail; | |
6080 | } | |
6081 | { | |
6082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6083 | (arg1)->Load(*arg2); | |
6084 | ||
6085 | wxPyEndAllowThreads(__tstate); | |
6086 | if (PyErr_Occurred()) SWIG_fail; | |
6087 | } | |
6088 | Py_INCREF(Py_None); resultobj = Py_None; | |
6089 | return resultobj; | |
6090 | fail: | |
6091 | return NULL; | |
6092 | } | |
6093 | ||
6094 | ||
c370783e | 6095 | static PyObject *_wrap_FileHistory_Save(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6096 | PyObject *resultobj; |
6097 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
6098 | wxConfigBase *arg2 = 0 ; | |
6099 | PyObject * obj0 = 0 ; | |
6100 | PyObject * obj1 = 0 ; | |
6101 | char *kwnames[] = { | |
6102 | (char *) "self",(char *) "config", NULL | |
6103 | }; | |
6104 | ||
6105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Save",kwnames,&obj0,&obj1)) goto fail; | |
6106 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
6107 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6108 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase, | |
6109 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6110 | SWIG_fail; | |
6111 | if (arg2 == NULL) { | |
6112 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6113 | SWIG_fail; | |
6114 | } | |
6115 | { | |
6116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6117 | (arg1)->Save(*arg2); | |
6118 | ||
6119 | wxPyEndAllowThreads(__tstate); | |
6120 | if (PyErr_Occurred()) SWIG_fail; | |
6121 | } | |
6122 | Py_INCREF(Py_None); resultobj = Py_None; | |
6123 | return resultobj; | |
6124 | fail: | |
6125 | return NULL; | |
6126 | } | |
6127 | ||
6128 | ||
c370783e | 6129 | static PyObject *_wrap_FileHistory_AddFilesToMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6130 | PyObject *resultobj; |
6131 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
6132 | PyObject * obj0 = 0 ; | |
6133 | char *kwnames[] = { | |
6134 | (char *) "self", NULL | |
6135 | }; | |
6136 | ||
6137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_AddFilesToMenu",kwnames,&obj0)) goto fail; | |
6138 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
6139 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6140 | { | |
6141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6142 | (arg1)->AddFilesToMenu(); | |
6143 | ||
6144 | wxPyEndAllowThreads(__tstate); | |
6145 | if (PyErr_Occurred()) SWIG_fail; | |
6146 | } | |
6147 | Py_INCREF(Py_None); resultobj = Py_None; | |
6148 | return resultobj; | |
6149 | fail: | |
6150 | return NULL; | |
6151 | } | |
6152 | ||
6153 | ||
c370783e | 6154 | static PyObject *_wrap_FileHistory_AddFilesToThisMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6155 | PyObject *resultobj; |
6156 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
6157 | wxMenu *arg2 = (wxMenu *) 0 ; | |
6158 | PyObject * obj0 = 0 ; | |
6159 | PyObject * obj1 = 0 ; | |
6160 | char *kwnames[] = { | |
6161 | (char *) "self",(char *) "menu", NULL | |
6162 | }; | |
6163 | ||
6164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFilesToThisMenu",kwnames,&obj0,&obj1)) goto fail; | |
6165 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
6166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6167 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
6168 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6169 | { | |
6170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6171 | (arg1)->AddFilesToMenu(arg2); | |
6172 | ||
6173 | wxPyEndAllowThreads(__tstate); | |
6174 | if (PyErr_Occurred()) SWIG_fail; | |
6175 | } | |
6176 | Py_INCREF(Py_None); resultobj = Py_None; | |
6177 | return resultobj; | |
6178 | fail: | |
6179 | return NULL; | |
6180 | } | |
6181 | ||
6182 | ||
c370783e | 6183 | static PyObject *_wrap_FileHistory_GetHistoryFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6184 | PyObject *resultobj; |
6185 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
6186 | int arg2 ; | |
6187 | wxString result; | |
6188 | PyObject * obj0 = 0 ; | |
6189 | PyObject * obj1 = 0 ; | |
6190 | char *kwnames[] = { | |
6191 | (char *) "self",(char *) "i", NULL | |
6192 | }; | |
6193 | ||
6194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_GetHistoryFile",kwnames,&obj0,&obj1)) goto fail; | |
6195 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
6196 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 6197 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
6198 | if (PyErr_Occurred()) SWIG_fail; |
6199 | { | |
6200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6201 | result = ((wxFileHistory const *)arg1)->GetHistoryFile(arg2); | |
6202 | ||
6203 | wxPyEndAllowThreads(__tstate); | |
6204 | if (PyErr_Occurred()) SWIG_fail; | |
6205 | } | |
6206 | { | |
6207 | #if wxUSE_UNICODE | |
6208 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6209 | #else | |
6210 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6211 | #endif | |
6212 | } | |
6213 | return resultobj; | |
6214 | fail: | |
6215 | return NULL; | |
6216 | } | |
6217 | ||
6218 | ||
c370783e | 6219 | static PyObject *_wrap_FileHistory_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6220 | PyObject *resultobj; |
6221 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
6222 | int result; | |
6223 | PyObject * obj0 = 0 ; | |
6224 | char *kwnames[] = { | |
6225 | (char *) "self", NULL | |
6226 | }; | |
6227 | ||
6228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetCount",kwnames,&obj0)) goto fail; | |
6229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
6230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6231 | { | |
6232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6233 | result = (int)((wxFileHistory const *)arg1)->GetCount(); | |
6234 | ||
6235 | wxPyEndAllowThreads(__tstate); | |
6236 | if (PyErr_Occurred()) SWIG_fail; | |
6237 | } | |
c370783e | 6238 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
6239 | return resultobj; |
6240 | fail: | |
6241 | return NULL; | |
6242 | } | |
6243 | ||
6244 | ||
c370783e | 6245 | static PyObject * FileHistory_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6246 | PyObject *obj; |
6247 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6248 | SWIG_TypeClientData(SWIGTYPE_p_wxFileHistory, obj); | |
6249 | Py_INCREF(obj); | |
6250 | return Py_BuildValue((char *)""); | |
6251 | } | |
c370783e | 6252 | static PyObject *_wrap_new_SingleInstanceChecker(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6253 | PyObject *resultobj; |
6254 | wxString *arg1 = 0 ; | |
6255 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
6256 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
6257 | wxSingleInstanceChecker *result; | |
b411df4a RD |
6258 | bool temp1 = false ; |
6259 | bool temp2 = false ; | |
d55e5bfc RD |
6260 | PyObject * obj0 = 0 ; |
6261 | PyObject * obj1 = 0 ; | |
6262 | char *kwnames[] = { | |
6263 | (char *) "name",(char *) "path", NULL | |
6264 | }; | |
6265 | ||
6266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_SingleInstanceChecker",kwnames,&obj0,&obj1)) goto fail; | |
6267 | { | |
6268 | arg1 = wxString_in_helper(obj0); | |
6269 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 6270 | temp1 = true; |
d55e5bfc RD |
6271 | } |
6272 | if (obj1) { | |
6273 | { | |
6274 | arg2 = wxString_in_helper(obj1); | |
6275 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 6276 | temp2 = true; |
d55e5bfc RD |
6277 | } |
6278 | } | |
6279 | { | |
6280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6281 | result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker((wxString const &)*arg1,(wxString const &)*arg2); | |
6282 | ||
6283 | wxPyEndAllowThreads(__tstate); | |
6284 | if (PyErr_Occurred()) SWIG_fail; | |
6285 | } | |
6286 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1); | |
6287 | { | |
6288 | if (temp1) | |
6289 | delete arg1; | |
6290 | } | |
6291 | { | |
6292 | if (temp2) | |
6293 | delete arg2; | |
6294 | } | |
6295 | return resultobj; | |
6296 | fail: | |
6297 | { | |
6298 | if (temp1) | |
6299 | delete arg1; | |
6300 | } | |
6301 | { | |
6302 | if (temp2) | |
6303 | delete arg2; | |
6304 | } | |
6305 | return NULL; | |
6306 | } | |
6307 | ||
6308 | ||
c370783e | 6309 | static PyObject *_wrap_new_PreSingleInstanceChecker(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6310 | PyObject *resultobj; |
6311 | wxSingleInstanceChecker *result; | |
6312 | char *kwnames[] = { | |
6313 | NULL | |
6314 | }; | |
6315 | ||
6316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSingleInstanceChecker",kwnames)) goto fail; | |
6317 | { | |
6318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6319 | result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker(); | |
6320 | ||
6321 | wxPyEndAllowThreads(__tstate); | |
6322 | if (PyErr_Occurred()) SWIG_fail; | |
6323 | } | |
6324 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1); | |
6325 | return resultobj; | |
6326 | fail: | |
6327 | return NULL; | |
6328 | } | |
6329 | ||
6330 | ||
c370783e | 6331 | static PyObject *_wrap_delete_SingleInstanceChecker(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6332 | PyObject *resultobj; |
6333 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
6334 | PyObject * obj0 = 0 ; | |
6335 | char *kwnames[] = { | |
6336 | (char *) "self", NULL | |
6337 | }; | |
6338 | ||
6339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SingleInstanceChecker",kwnames,&obj0)) goto fail; | |
6340 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker, | |
6341 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6342 | { | |
6343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6344 | delete arg1; | |
6345 | ||
6346 | wxPyEndAllowThreads(__tstate); | |
6347 | if (PyErr_Occurred()) SWIG_fail; | |
6348 | } | |
6349 | Py_INCREF(Py_None); resultobj = Py_None; | |
6350 | return resultobj; | |
6351 | fail: | |
6352 | return NULL; | |
6353 | } | |
6354 | ||
6355 | ||
c370783e | 6356 | static PyObject *_wrap_SingleInstanceChecker_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6357 | PyObject *resultobj; |
6358 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
6359 | wxString *arg2 = 0 ; | |
6360 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
6361 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
6362 | bool result; | |
b411df4a RD |
6363 | bool temp2 = false ; |
6364 | bool temp3 = false ; | |
d55e5bfc RD |
6365 | PyObject * obj0 = 0 ; |
6366 | PyObject * obj1 = 0 ; | |
6367 | PyObject * obj2 = 0 ; | |
6368 | char *kwnames[] = { | |
6369 | (char *) "self",(char *) "name",(char *) "path", NULL | |
6370 | }; | |
6371 | ||
6372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SingleInstanceChecker_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6373 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker, | |
6374 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6375 | { | |
6376 | arg2 = wxString_in_helper(obj1); | |
6377 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 6378 | temp2 = true; |
d55e5bfc RD |
6379 | } |
6380 | if (obj2) { | |
6381 | { | |
6382 | arg3 = wxString_in_helper(obj2); | |
6383 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 6384 | temp3 = true; |
d55e5bfc RD |
6385 | } |
6386 | } | |
6387 | { | |
6388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6389 | result = (bool)(arg1)->Create((wxString const &)*arg2,(wxString const &)*arg3); | |
6390 | ||
6391 | wxPyEndAllowThreads(__tstate); | |
6392 | if (PyErr_Occurred()) SWIG_fail; | |
6393 | } | |
6394 | { | |
6395 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6396 | } | |
6397 | { | |
6398 | if (temp2) | |
6399 | delete arg2; | |
6400 | } | |
6401 | { | |
6402 | if (temp3) | |
6403 | delete arg3; | |
6404 | } | |
6405 | return resultobj; | |
6406 | fail: | |
6407 | { | |
6408 | if (temp2) | |
6409 | delete arg2; | |
6410 | } | |
6411 | { | |
6412 | if (temp3) | |
6413 | delete arg3; | |
6414 | } | |
6415 | return NULL; | |
6416 | } | |
6417 | ||
6418 | ||
c370783e | 6419 | static PyObject *_wrap_SingleInstanceChecker_IsAnotherRunning(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6420 | PyObject *resultobj; |
6421 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
6422 | bool result; | |
6423 | PyObject * obj0 = 0 ; | |
6424 | char *kwnames[] = { | |
6425 | (char *) "self", NULL | |
6426 | }; | |
6427 | ||
6428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleInstanceChecker_IsAnotherRunning",kwnames,&obj0)) goto fail; | |
6429 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker, | |
6430 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6431 | { | |
6432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6433 | result = (bool)((wxSingleInstanceChecker const *)arg1)->IsAnotherRunning(); | |
6434 | ||
6435 | wxPyEndAllowThreads(__tstate); | |
6436 | if (PyErr_Occurred()) SWIG_fail; | |
6437 | } | |
6438 | { | |
6439 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6440 | } | |
6441 | return resultobj; | |
6442 | fail: | |
6443 | return NULL; | |
6444 | } | |
6445 | ||
6446 | ||
c370783e | 6447 | static PyObject * SingleInstanceChecker_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6448 | PyObject *obj; |
6449 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6450 | SWIG_TypeClientData(SWIGTYPE_p_wxSingleInstanceChecker, obj); | |
6451 | Py_INCREF(obj); | |
6452 | return Py_BuildValue((char *)""); | |
6453 | } | |
c370783e | 6454 | static PyObject *_wrap_DrawWindowOnDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6455 | PyObject *resultobj; |
6456 | wxWindow *arg1 = (wxWindow *) 0 ; | |
6457 | wxDC *arg2 = 0 ; | |
6458 | int arg3 ; | |
6459 | PyObject * obj0 = 0 ; | |
6460 | PyObject * obj1 = 0 ; | |
6461 | PyObject * obj2 = 0 ; | |
6462 | char *kwnames[] = { | |
6463 | (char *) "window",(char *) "dc",(char *) "method", NULL | |
6464 | }; | |
6465 | ||
6466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DrawWindowOnDC",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6467 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
6468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6469 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
6470 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6471 | SWIG_fail; | |
6472 | if (arg2 == NULL) { | |
6473 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6474 | SWIG_fail; | |
6475 | } | |
c370783e | 6476 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
6477 | if (PyErr_Occurred()) SWIG_fail; |
6478 | { | |
6479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6480 | wxDrawWindowOnDC(arg1,(wxDC const &)*arg2,arg3); | |
6481 | ||
6482 | wxPyEndAllowThreads(__tstate); | |
6483 | if (PyErr_Occurred()) SWIG_fail; | |
6484 | } | |
6485 | Py_INCREF(Py_None); resultobj = Py_None; | |
6486 | return resultobj; | |
6487 | fail: | |
6488 | return NULL; | |
6489 | } | |
6490 | ||
6491 | ||
c370783e | 6492 | static PyObject *_wrap_delete_TipProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6493 | PyObject *resultobj; |
6494 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6495 | PyObject * obj0 = 0 ; | |
6496 | char *kwnames[] = { | |
6497 | (char *) "self", NULL | |
6498 | }; | |
6499 | ||
6500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TipProvider",kwnames,&obj0)) goto fail; | |
6501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, | |
6502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6503 | { | |
6504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6505 | delete arg1; | |
6506 | ||
6507 | wxPyEndAllowThreads(__tstate); | |
6508 | if (PyErr_Occurred()) SWIG_fail; | |
6509 | } | |
6510 | Py_INCREF(Py_None); resultobj = Py_None; | |
6511 | return resultobj; | |
6512 | fail: | |
6513 | return NULL; | |
6514 | } | |
6515 | ||
6516 | ||
c370783e | 6517 | static PyObject *_wrap_TipProvider_GetTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6518 | PyObject *resultobj; |
6519 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6520 | wxString result; | |
6521 | PyObject * obj0 = 0 ; | |
6522 | char *kwnames[] = { | |
6523 | (char *) "self", NULL | |
6524 | }; | |
6525 | ||
6526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetTip",kwnames,&obj0)) goto fail; | |
6527 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, | |
6528 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6529 | { | |
6530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6531 | result = (arg1)->GetTip(); | |
6532 | ||
6533 | wxPyEndAllowThreads(__tstate); | |
6534 | if (PyErr_Occurred()) SWIG_fail; | |
6535 | } | |
6536 | { | |
6537 | #if wxUSE_UNICODE | |
6538 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6539 | #else | |
6540 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6541 | #endif | |
6542 | } | |
6543 | return resultobj; | |
6544 | fail: | |
6545 | return NULL; | |
6546 | } | |
6547 | ||
6548 | ||
c370783e | 6549 | static PyObject *_wrap_TipProvider_GetCurrentTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6550 | PyObject *resultobj; |
6551 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6552 | size_t result; | |
6553 | PyObject * obj0 = 0 ; | |
6554 | char *kwnames[] = { | |
6555 | (char *) "self", NULL | |
6556 | }; | |
6557 | ||
6558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetCurrentTip",kwnames,&obj0)) goto fail; | |
6559 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, | |
6560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6561 | { | |
6562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6563 | result = (size_t)(arg1)->GetCurrentTip(); | |
6564 | ||
6565 | wxPyEndAllowThreads(__tstate); | |
6566 | if (PyErr_Occurred()) SWIG_fail; | |
6567 | } | |
c370783e | 6568 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
6569 | return resultobj; |
6570 | fail: | |
6571 | return NULL; | |
6572 | } | |
6573 | ||
6574 | ||
c370783e | 6575 | static PyObject *_wrap_TipProvider_PreprocessTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6576 | PyObject *resultobj; |
6577 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6578 | wxString *arg2 = 0 ; | |
6579 | wxString result; | |
b411df4a | 6580 | bool temp2 = false ; |
d55e5bfc RD |
6581 | PyObject * obj0 = 0 ; |
6582 | PyObject * obj1 = 0 ; | |
6583 | char *kwnames[] = { | |
6584 | (char *) "self",(char *) "tip", NULL | |
6585 | }; | |
6586 | ||
6587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipProvider_PreprocessTip",kwnames,&obj0,&obj1)) goto fail; | |
6588 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, | |
6589 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6590 | { | |
6591 | arg2 = wxString_in_helper(obj1); | |
6592 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 6593 | temp2 = true; |
d55e5bfc RD |
6594 | } |
6595 | { | |
6596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6597 | result = (arg1)->PreprocessTip((wxString const &)*arg2); | |
6598 | ||
6599 | wxPyEndAllowThreads(__tstate); | |
6600 | if (PyErr_Occurred()) SWIG_fail; | |
6601 | } | |
6602 | { | |
6603 | #if wxUSE_UNICODE | |
6604 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6605 | #else | |
6606 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6607 | #endif | |
6608 | } | |
6609 | { | |
6610 | if (temp2) | |
6611 | delete arg2; | |
6612 | } | |
6613 | return resultobj; | |
6614 | fail: | |
6615 | { | |
6616 | if (temp2) | |
6617 | delete arg2; | |
6618 | } | |
6619 | return NULL; | |
6620 | } | |
6621 | ||
6622 | ||
c370783e | 6623 | static PyObject * TipProvider_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6624 | PyObject *obj; |
6625 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6626 | SWIG_TypeClientData(SWIGTYPE_p_wxTipProvider, obj); | |
6627 | Py_INCREF(obj); | |
6628 | return Py_BuildValue((char *)""); | |
6629 | } | |
c370783e | 6630 | static PyObject *_wrap_new_PyTipProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6631 | PyObject *resultobj; |
6632 | size_t arg1 ; | |
6633 | wxPyTipProvider *result; | |
6634 | PyObject * obj0 = 0 ; | |
6635 | char *kwnames[] = { | |
6636 | (char *) "currentTip", NULL | |
6637 | }; | |
6638 | ||
6639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PyTipProvider",kwnames,&obj0)) goto fail; | |
c370783e | 6640 | arg1 = (size_t)SWIG_As_unsigned_SS_long(obj0); |
d55e5bfc RD |
6641 | if (PyErr_Occurred()) SWIG_fail; |
6642 | { | |
6643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6644 | result = (wxPyTipProvider *)new wxPyTipProvider(arg1); | |
6645 | ||
6646 | wxPyEndAllowThreads(__tstate); | |
6647 | if (PyErr_Occurred()) SWIG_fail; | |
6648 | } | |
6649 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTipProvider, 1); | |
6650 | return resultobj; | |
6651 | fail: | |
6652 | return NULL; | |
6653 | } | |
6654 | ||
6655 | ||
c370783e | 6656 | static PyObject *_wrap_PyTipProvider__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6657 | PyObject *resultobj; |
6658 | wxPyTipProvider *arg1 = (wxPyTipProvider *) 0 ; | |
6659 | PyObject *arg2 = (PyObject *) 0 ; | |
6660 | PyObject *arg3 = (PyObject *) 0 ; | |
6661 | PyObject * obj0 = 0 ; | |
6662 | PyObject * obj1 = 0 ; | |
6663 | PyObject * obj2 = 0 ; | |
6664 | char *kwnames[] = { | |
6665 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
6666 | }; | |
6667 | ||
6668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTipProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6669 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTipProvider, | |
6670 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6671 | arg2 = obj1; | |
6672 | arg3 = obj2; | |
6673 | { | |
6674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6675 | (arg1)->_setCallbackInfo(arg2,arg3); | |
6676 | ||
6677 | wxPyEndAllowThreads(__tstate); | |
6678 | if (PyErr_Occurred()) SWIG_fail; | |
6679 | } | |
6680 | Py_INCREF(Py_None); resultobj = Py_None; | |
6681 | return resultobj; | |
6682 | fail: | |
6683 | return NULL; | |
6684 | } | |
6685 | ||
6686 | ||
c370783e | 6687 | static PyObject * PyTipProvider_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6688 | PyObject *obj; |
6689 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6690 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTipProvider, obj); | |
6691 | Py_INCREF(obj); | |
6692 | return Py_BuildValue((char *)""); | |
6693 | } | |
c370783e | 6694 | static PyObject *_wrap_ShowTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6695 | PyObject *resultobj; |
6696 | wxWindow *arg1 = (wxWindow *) 0 ; | |
6697 | wxTipProvider *arg2 = (wxTipProvider *) 0 ; | |
b411df4a | 6698 | bool arg3 = (bool) true ; |
d55e5bfc RD |
6699 | bool result; |
6700 | PyObject * obj0 = 0 ; | |
6701 | PyObject * obj1 = 0 ; | |
6702 | PyObject * obj2 = 0 ; | |
6703 | char *kwnames[] = { | |
6704 | (char *) "parent",(char *) "tipProvider",(char *) "showAtStartup", NULL | |
6705 | }; | |
6706 | ||
6707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ShowTip",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6708 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
6709 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6710 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTipProvider, | |
6711 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6712 | if (obj2) { | |
c370783e | 6713 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
6714 | if (PyErr_Occurred()) SWIG_fail; |
6715 | } | |
6716 | { | |
0439c23b | 6717 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6719 | result = (bool)wxShowTip(arg1,arg2,arg3); | |
6720 | ||
6721 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6722 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6723 | } |
6724 | { | |
6725 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6726 | } | |
6727 | return resultobj; | |
6728 | fail: | |
6729 | return NULL; | |
6730 | } | |
6731 | ||
6732 | ||
c370783e | 6733 | static PyObject *_wrap_CreateFileTipProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6734 | PyObject *resultobj; |
6735 | wxString *arg1 = 0 ; | |
6736 | size_t arg2 ; | |
6737 | wxTipProvider *result; | |
b411df4a | 6738 | bool temp1 = false ; |
d55e5bfc RD |
6739 | PyObject * obj0 = 0 ; |
6740 | PyObject * obj1 = 0 ; | |
6741 | char *kwnames[] = { | |
6742 | (char *) "filename",(char *) "currentTip", NULL | |
6743 | }; | |
6744 | ||
6745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CreateFileTipProvider",kwnames,&obj0,&obj1)) goto fail; | |
6746 | { | |
6747 | arg1 = wxString_in_helper(obj0); | |
6748 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 6749 | temp1 = true; |
d55e5bfc | 6750 | } |
c370783e | 6751 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
6752 | if (PyErr_Occurred()) SWIG_fail; |
6753 | { | |
0439c23b | 6754 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6756 | result = (wxTipProvider *)wxCreateFileTipProvider((wxString const &)*arg1,arg2); | |
6757 | ||
6758 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6759 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6760 | } |
6761 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTipProvider, 1); | |
6762 | { | |
6763 | if (temp1) | |
6764 | delete arg1; | |
6765 | } | |
6766 | return resultobj; | |
6767 | fail: | |
6768 | { | |
6769 | if (temp1) | |
6770 | delete arg1; | |
6771 | } | |
6772 | return NULL; | |
6773 | } | |
6774 | ||
6775 | ||
c370783e | 6776 | static PyObject *_wrap_new_Timer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6777 | PyObject *resultobj; |
6778 | wxEvtHandler *arg1 = (wxEvtHandler *) NULL ; | |
6779 | int arg2 = (int) -1 ; | |
6780 | wxPyTimer *result; | |
6781 | PyObject * obj0 = 0 ; | |
6782 | PyObject * obj1 = 0 ; | |
6783 | char *kwnames[] = { | |
6784 | (char *) "owner",(char *) "id", NULL | |
6785 | }; | |
6786 | ||
6787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Timer",kwnames,&obj0,&obj1)) goto fail; | |
6788 | if (obj0) { | |
6789 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
6790 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6791 | } | |
6792 | if (obj1) { | |
c370783e | 6793 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
6794 | if (PyErr_Occurred()) SWIG_fail; |
6795 | } | |
6796 | { | |
0439c23b | 6797 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6799 | result = (wxPyTimer *)new wxPyTimer(arg1,arg2); | |
6800 | ||
6801 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6802 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6803 | } |
6804 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTimer, 1); | |
6805 | return resultobj; | |
6806 | fail: | |
6807 | return NULL; | |
6808 | } | |
6809 | ||
6810 | ||
c370783e | 6811 | static PyObject *_wrap_delete_Timer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6812 | PyObject *resultobj; |
6813 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6814 | PyObject * obj0 = 0 ; | |
6815 | char *kwnames[] = { | |
6816 | (char *) "self", NULL | |
6817 | }; | |
6818 | ||
6819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Timer",kwnames,&obj0)) goto fail; | |
6820 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6821 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6822 | { | |
6823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6824 | delete arg1; | |
6825 | ||
6826 | wxPyEndAllowThreads(__tstate); | |
6827 | if (PyErr_Occurred()) SWIG_fail; | |
6828 | } | |
6829 | Py_INCREF(Py_None); resultobj = Py_None; | |
6830 | return resultobj; | |
6831 | fail: | |
6832 | return NULL; | |
6833 | } | |
6834 | ||
6835 | ||
c370783e | 6836 | static PyObject *_wrap_Timer__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6837 | PyObject *resultobj; |
6838 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6839 | PyObject *arg2 = (PyObject *) 0 ; | |
6840 | PyObject *arg3 = (PyObject *) 0 ; | |
6841 | int arg4 = (int) 1 ; | |
6842 | PyObject * obj0 = 0 ; | |
6843 | PyObject * obj1 = 0 ; | |
6844 | PyObject * obj2 = 0 ; | |
6845 | PyObject * obj3 = 0 ; | |
6846 | char *kwnames[] = { | |
6847 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
6848 | }; | |
6849 | ||
6850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Timer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
6851 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6852 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6853 | arg2 = obj1; | |
6854 | arg3 = obj2; | |
6855 | if (obj3) { | |
c370783e | 6856 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
6857 | if (PyErr_Occurred()) SWIG_fail; |
6858 | } | |
6859 | { | |
6860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6861 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
6862 | ||
6863 | wxPyEndAllowThreads(__tstate); | |
6864 | if (PyErr_Occurred()) SWIG_fail; | |
6865 | } | |
6866 | Py_INCREF(Py_None); resultobj = Py_None; | |
6867 | return resultobj; | |
6868 | fail: | |
6869 | return NULL; | |
6870 | } | |
6871 | ||
6872 | ||
c370783e | 6873 | static PyObject *_wrap_Timer_SetOwner(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6874 | PyObject *resultobj; |
6875 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6876 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
6877 | int arg3 = (int) -1 ; | |
6878 | PyObject * obj0 = 0 ; | |
6879 | PyObject * obj1 = 0 ; | |
6880 | PyObject * obj2 = 0 ; | |
6881 | char *kwnames[] = { | |
6882 | (char *) "self",(char *) "owner",(char *) "id", NULL | |
6883 | }; | |
6884 | ||
6885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Timer_SetOwner",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6886 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6888 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
6889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6890 | if (obj2) { | |
c370783e | 6891 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
6892 | if (PyErr_Occurred()) SWIG_fail; |
6893 | } | |
6894 | { | |
6895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6896 | (arg1)->SetOwner(arg2,arg3); | |
6897 | ||
6898 | wxPyEndAllowThreads(__tstate); | |
6899 | if (PyErr_Occurred()) SWIG_fail; | |
6900 | } | |
6901 | Py_INCREF(Py_None); resultobj = Py_None; | |
6902 | return resultobj; | |
6903 | fail: | |
6904 | return NULL; | |
6905 | } | |
6906 | ||
6907 | ||
c370783e | 6908 | static PyObject *_wrap_Timer_GetOwner(PyObject *, PyObject *args, PyObject *kwargs) { |
1a6bba1e RD |
6909 | PyObject *resultobj; |
6910 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6911 | wxEvtHandler *result; | |
6912 | PyObject * obj0 = 0 ; | |
6913 | char *kwnames[] = { | |
6914 | (char *) "self", NULL | |
6915 | }; | |
6916 | ||
6917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetOwner",kwnames,&obj0)) goto fail; | |
6918 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6919 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6920 | { | |
6921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6922 | result = (wxEvtHandler *)(arg1)->GetOwner(); | |
6923 | ||
6924 | wxPyEndAllowThreads(__tstate); | |
6925 | if (PyErr_Occurred()) SWIG_fail; | |
6926 | } | |
6927 | { | |
412d302d | 6928 | resultobj = wxPyMake_wxObject(result, 0); |
1a6bba1e RD |
6929 | } |
6930 | return resultobj; | |
6931 | fail: | |
6932 | return NULL; | |
6933 | } | |
6934 | ||
6935 | ||
c370783e | 6936 | static PyObject *_wrap_Timer_Start(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6937 | PyObject *resultobj; |
6938 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6939 | int arg2 = (int) -1 ; | |
b411df4a | 6940 | bool arg3 = (bool) false ; |
d55e5bfc RD |
6941 | bool result; |
6942 | PyObject * obj0 = 0 ; | |
6943 | PyObject * obj1 = 0 ; | |
6944 | PyObject * obj2 = 0 ; | |
6945 | char *kwnames[] = { | |
6946 | (char *) "self",(char *) "milliseconds",(char *) "oneShot", NULL | |
6947 | }; | |
6948 | ||
6949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Timer_Start",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6950 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6951 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6952 | if (obj1) { | |
c370783e | 6953 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
6954 | if (PyErr_Occurred()) SWIG_fail; |
6955 | } | |
6956 | if (obj2) { | |
c370783e | 6957 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
6958 | if (PyErr_Occurred()) SWIG_fail; |
6959 | } | |
6960 | { | |
6961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6962 | result = (bool)(arg1)->Start(arg2,arg3); | |
6963 | ||
6964 | wxPyEndAllowThreads(__tstate); | |
6965 | if (PyErr_Occurred()) SWIG_fail; | |
6966 | } | |
6967 | { | |
6968 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6969 | } | |
6970 | return resultobj; | |
6971 | fail: | |
6972 | return NULL; | |
6973 | } | |
6974 | ||
6975 | ||
c370783e | 6976 | static PyObject *_wrap_Timer_Stop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6977 | PyObject *resultobj; |
6978 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6979 | PyObject * obj0 = 0 ; | |
6980 | char *kwnames[] = { | |
6981 | (char *) "self", NULL | |
6982 | }; | |
6983 | ||
6984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Stop",kwnames,&obj0)) goto fail; | |
6985 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6986 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6987 | { | |
6988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6989 | (arg1)->Stop(); | |
6990 | ||
6991 | wxPyEndAllowThreads(__tstate); | |
6992 | if (PyErr_Occurred()) SWIG_fail; | |
6993 | } | |
6994 | Py_INCREF(Py_None); resultobj = Py_None; | |
6995 | return resultobj; | |
6996 | fail: | |
6997 | return NULL; | |
6998 | } | |
6999 | ||
7000 | ||
c370783e | 7001 | static PyObject *_wrap_Timer_IsRunning(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7002 | PyObject *resultobj; |
7003 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
7004 | bool result; | |
7005 | PyObject * obj0 = 0 ; | |
7006 | char *kwnames[] = { | |
7007 | (char *) "self", NULL | |
7008 | }; | |
7009 | ||
7010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsRunning",kwnames,&obj0)) goto fail; | |
7011 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
7012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7013 | { | |
7014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7015 | result = (bool)((wxPyTimer const *)arg1)->IsRunning(); | |
7016 | ||
7017 | wxPyEndAllowThreads(__tstate); | |
7018 | if (PyErr_Occurred()) SWIG_fail; | |
7019 | } | |
7020 | { | |
7021 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7022 | } | |
7023 | return resultobj; | |
7024 | fail: | |
7025 | return NULL; | |
7026 | } | |
7027 | ||
7028 | ||
c370783e | 7029 | static PyObject *_wrap_Timer_GetInterval(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7030 | PyObject *resultobj; |
7031 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
7032 | int result; | |
7033 | PyObject * obj0 = 0 ; | |
7034 | char *kwnames[] = { | |
7035 | (char *) "self", NULL | |
7036 | }; | |
7037 | ||
7038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetInterval",kwnames,&obj0)) goto fail; | |
7039 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
7040 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7041 | { | |
7042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7043 | result = (int)((wxPyTimer const *)arg1)->GetInterval(); | |
7044 | ||
7045 | wxPyEndAllowThreads(__tstate); | |
7046 | if (PyErr_Occurred()) SWIG_fail; | |
7047 | } | |
c370783e | 7048 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
7049 | return resultobj; |
7050 | fail: | |
7051 | return NULL; | |
7052 | } | |
7053 | ||
7054 | ||
c370783e | 7055 | static PyObject *_wrap_Timer_IsOneShot(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7056 | PyObject *resultobj; |
7057 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
7058 | bool result; | |
7059 | PyObject * obj0 = 0 ; | |
7060 | char *kwnames[] = { | |
7061 | (char *) "self", NULL | |
7062 | }; | |
7063 | ||
7064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsOneShot",kwnames,&obj0)) goto fail; | |
7065 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
7066 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7067 | { | |
7068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7069 | result = (bool)((wxPyTimer const *)arg1)->IsOneShot(); | |
7070 | ||
7071 | wxPyEndAllowThreads(__tstate); | |
7072 | if (PyErr_Occurred()) SWIG_fail; | |
7073 | } | |
7074 | { | |
7075 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7076 | } | |
7077 | return resultobj; | |
7078 | fail: | |
7079 | return NULL; | |
7080 | } | |
7081 | ||
7082 | ||
c370783e | 7083 | static PyObject *_wrap_Timer_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7084 | PyObject *resultobj; |
7085 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
7086 | int result; | |
7087 | PyObject * obj0 = 0 ; | |
7088 | char *kwnames[] = { | |
7089 | (char *) "self", NULL | |
7090 | }; | |
7091 | ||
7092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetId",kwnames,&obj0)) goto fail; | |
7093 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
7094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7095 | { | |
7096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7097 | result = (int)((wxPyTimer const *)arg1)->GetId(); | |
7098 | ||
7099 | wxPyEndAllowThreads(__tstate); | |
7100 | if (PyErr_Occurred()) SWIG_fail; | |
7101 | } | |
c370783e | 7102 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
7103 | return resultobj; |
7104 | fail: | |
7105 | return NULL; | |
7106 | } | |
7107 | ||
7108 | ||
c370783e | 7109 | static PyObject * Timer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
7110 | PyObject *obj; |
7111 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7112 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTimer, obj); | |
7113 | Py_INCREF(obj); | |
7114 | return Py_BuildValue((char *)""); | |
7115 | } | |
c370783e | 7116 | static PyObject *_wrap_new_TimerEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7117 | PyObject *resultobj; |
7118 | int arg1 = (int) 0 ; | |
7119 | int arg2 = (int) 0 ; | |
7120 | wxTimerEvent *result; | |
7121 | PyObject * obj0 = 0 ; | |
7122 | PyObject * obj1 = 0 ; | |
7123 | char *kwnames[] = { | |
7124 | (char *) "timerid",(char *) "interval", NULL | |
7125 | }; | |
7126 | ||
7127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TimerEvent",kwnames,&obj0,&obj1)) goto fail; | |
7128 | if (obj0) { | |
c370783e | 7129 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
7130 | if (PyErr_Occurred()) SWIG_fail; |
7131 | } | |
7132 | if (obj1) { | |
c370783e | 7133 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
7134 | if (PyErr_Occurred()) SWIG_fail; |
7135 | } | |
7136 | { | |
7137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7138 | result = (wxTimerEvent *)new wxTimerEvent(arg1,arg2); | |
7139 | ||
7140 | wxPyEndAllowThreads(__tstate); | |
7141 | if (PyErr_Occurred()) SWIG_fail; | |
7142 | } | |
7143 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerEvent, 1); | |
7144 | return resultobj; | |
7145 | fail: | |
7146 | return NULL; | |
7147 | } | |
7148 | ||
7149 | ||
c370783e | 7150 | static PyObject *_wrap_TimerEvent_GetInterval(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7151 | PyObject *resultobj; |
7152 | wxTimerEvent *arg1 = (wxTimerEvent *) 0 ; | |
7153 | int result; | |
7154 | PyObject * obj0 = 0 ; | |
7155 | char *kwnames[] = { | |
7156 | (char *) "self", NULL | |
7157 | }; | |
7158 | ||
7159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimerEvent_GetInterval",kwnames,&obj0)) goto fail; | |
7160 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerEvent, | |
7161 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7162 | { | |
7163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7164 | result = (int)((wxTimerEvent const *)arg1)->GetInterval(); | |
7165 | ||
7166 | wxPyEndAllowThreads(__tstate); | |
7167 | if (PyErr_Occurred()) SWIG_fail; | |
7168 | } | |
c370783e | 7169 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
7170 | return resultobj; |
7171 | fail: | |
7172 | return NULL; | |
7173 | } | |
7174 | ||
7175 | ||
c370783e | 7176 | static PyObject * TimerEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
7177 | PyObject *obj; |
7178 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7179 | SWIG_TypeClientData(SWIGTYPE_p_wxTimerEvent, obj); | |
7180 | Py_INCREF(obj); | |
7181 | return Py_BuildValue((char *)""); | |
7182 | } | |
c370783e | 7183 | static PyObject *_wrap_new_TimerRunner__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
7184 | PyObject *resultobj; |
7185 | wxTimer *arg1 = 0 ; | |
7186 | wxTimerRunner *result; | |
7187 | PyObject * obj0 = 0 ; | |
7188 | ||
7189 | if(!PyArg_ParseTuple(args,(char *)"O:new_TimerRunner",&obj0)) goto fail; | |
7190 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer, | |
7191 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7192 | SWIG_fail; | |
7193 | if (arg1 == NULL) { | |
7194 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7195 | SWIG_fail; | |
7196 | } | |
7197 | { | |
0439c23b | 7198 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
7199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7200 | result = (wxTimerRunner *)new wxTimerRunner(*arg1); | |
7201 | ||
7202 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 7203 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
7204 | } |
7205 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1); | |
7206 | return resultobj; | |
7207 | fail: | |
7208 | return NULL; | |
7209 | } | |
7210 | ||
7211 | ||
c370783e | 7212 | static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
7213 | PyObject *resultobj; |
7214 | wxTimer *arg1 = 0 ; | |
7215 | int arg2 ; | |
b411df4a | 7216 | bool arg3 = (bool) false ; |
d55e5bfc RD |
7217 | wxTimerRunner *result; |
7218 | PyObject * obj0 = 0 ; | |
7219 | PyObject * obj1 = 0 ; | |
7220 | PyObject * obj2 = 0 ; | |
7221 | ||
7222 | if(!PyArg_ParseTuple(args,(char *)"OO|O:new_TimerRunner",&obj0,&obj1,&obj2)) goto fail; | |
7223 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer, | |
7224 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7225 | SWIG_fail; | |
7226 | if (arg1 == NULL) { | |
7227 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7228 | SWIG_fail; | |
7229 | } | |
c370783e | 7230 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
7231 | if (PyErr_Occurred()) SWIG_fail; |
7232 | if (obj2) { | |
c370783e | 7233 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
7234 | if (PyErr_Occurred()) SWIG_fail; |
7235 | } | |
7236 | { | |
0439c23b | 7237 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
7238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7239 | result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2,arg3); | |
7240 | ||
7241 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 7242 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
7243 | } |
7244 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1); | |
7245 | return resultobj; | |
7246 | fail: | |
7247 | return NULL; | |
7248 | } | |
7249 | ||
7250 | ||
7251 | static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) { | |
7252 | int argc; | |
7253 | PyObject *argv[4]; | |
7254 | int ii; | |
7255 | ||
7256 | argc = PyObject_Length(args); | |
7257 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
7258 | argv[ii] = PyTuple_GetItem(args,ii); | |
7259 | } | |
7260 | if (argc == 1) { | |
7261 | int _v; | |
7262 | { | |
7263 | void *ptr; | |
7264 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) { | |
7265 | _v = 0; | |
7266 | PyErr_Clear(); | |
7267 | } else { | |
7268 | _v = 1; | |
7269 | } | |
7270 | } | |
7271 | if (_v) { | |
7272 | return _wrap_new_TimerRunner__SWIG_0(self,args); | |
7273 | } | |
7274 | } | |
7275 | if ((argc >= 2) && (argc <= 3)) { | |
7276 | int _v; | |
7277 | { | |
7278 | void *ptr; | |
7279 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) { | |
7280 | _v = 0; | |
7281 | PyErr_Clear(); | |
7282 | } else { | |
7283 | _v = 1; | |
7284 | } | |
7285 | } | |
7286 | if (_v) { | |
c370783e | 7287 | _v = SWIG_Check_int(argv[1]); |
d55e5bfc RD |
7288 | if (_v) { |
7289 | if (argc <= 2) { | |
7290 | return _wrap_new_TimerRunner__SWIG_1(self,args); | |
7291 | } | |
c370783e | 7292 | _v = SWIG_Check_bool(argv[2]); |
d55e5bfc RD |
7293 | if (_v) { |
7294 | return _wrap_new_TimerRunner__SWIG_1(self,args); | |
7295 | } | |
7296 | } | |
7297 | } | |
7298 | } | |
7299 | ||
7300 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TimerRunner'"); | |
7301 | return NULL; | |
7302 | } | |
7303 | ||
7304 | ||
c370783e | 7305 | static PyObject *_wrap_delete_TimerRunner(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7306 | PyObject *resultobj; |
7307 | wxTimerRunner *arg1 = (wxTimerRunner *) 0 ; | |
7308 | PyObject * obj0 = 0 ; | |
7309 | char *kwnames[] = { | |
7310 | (char *) "self", NULL | |
7311 | }; | |
7312 | ||
7313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimerRunner",kwnames,&obj0)) goto fail; | |
7314 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner, | |
7315 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7316 | { | |
7317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7318 | delete arg1; | |
7319 | ||
7320 | wxPyEndAllowThreads(__tstate); | |
7321 | if (PyErr_Occurred()) SWIG_fail; | |
7322 | } | |
7323 | Py_INCREF(Py_None); resultobj = Py_None; | |
7324 | return resultobj; | |
7325 | fail: | |
7326 | return NULL; | |
7327 | } | |
7328 | ||
7329 | ||
c370783e | 7330 | static PyObject *_wrap_TimerRunner_Start(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7331 | PyObject *resultobj; |
7332 | wxTimerRunner *arg1 = (wxTimerRunner *) 0 ; | |
7333 | int arg2 ; | |
b411df4a | 7334 | bool arg3 = (bool) false ; |
d55e5bfc RD |
7335 | PyObject * obj0 = 0 ; |
7336 | PyObject * obj1 = 0 ; | |
7337 | PyObject * obj2 = 0 ; | |
7338 | char *kwnames[] = { | |
7339 | (char *) "self",(char *) "milli",(char *) "oneShot", NULL | |
7340 | }; | |
7341 | ||
7342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TimerRunner_Start",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7343 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner, | |
7344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 7345 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
7346 | if (PyErr_Occurred()) SWIG_fail; |
7347 | if (obj2) { | |
c370783e | 7348 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
7349 | if (PyErr_Occurred()) SWIG_fail; |
7350 | } | |
7351 | { | |
7352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7353 | (arg1)->Start(arg2,arg3); | |
7354 | ||
7355 | wxPyEndAllowThreads(__tstate); | |
7356 | if (PyErr_Occurred()) SWIG_fail; | |
7357 | } | |
7358 | Py_INCREF(Py_None); resultobj = Py_None; | |
7359 | return resultobj; | |
7360 | fail: | |
7361 | return NULL; | |
7362 | } | |
7363 | ||
7364 | ||
c370783e | 7365 | static PyObject * TimerRunner_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
7366 | PyObject *obj; |
7367 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7368 | SWIG_TypeClientData(SWIGTYPE_p_wxTimerRunner, obj); | |
7369 | Py_INCREF(obj); | |
7370 | return Py_BuildValue((char *)""); | |
7371 | } | |
c370783e | 7372 | static PyObject *_wrap_new_Log(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7373 | PyObject *resultobj; |
7374 | wxLog *result; | |
7375 | char *kwnames[] = { | |
7376 | NULL | |
7377 | }; | |
7378 | ||
7379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Log",kwnames)) goto fail; | |
7380 | { | |
7381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7382 | result = (wxLog *)new wxLog(); | |
7383 | ||
7384 | wxPyEndAllowThreads(__tstate); | |
7385 | if (PyErr_Occurred()) SWIG_fail; | |
7386 | } | |
7387 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 1); | |
7388 | return resultobj; | |
7389 | fail: | |
7390 | return NULL; | |
7391 | } | |
7392 | ||
7393 | ||
c370783e | 7394 | static PyObject *_wrap_Log_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7395 | PyObject *resultobj; |
7396 | bool result; | |
7397 | char *kwnames[] = { | |
7398 | NULL | |
7399 | }; | |
7400 | ||
7401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_IsEnabled",kwnames)) goto fail; | |
7402 | { | |
7403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7404 | result = (bool)wxLog::IsEnabled(); | |
7405 | ||
7406 | wxPyEndAllowThreads(__tstate); | |
7407 | if (PyErr_Occurred()) SWIG_fail; | |
7408 | } | |
7409 | { | |
7410 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7411 | } | |
7412 | return resultobj; | |
7413 | fail: | |
7414 | return NULL; | |
7415 | } | |
7416 | ||
7417 | ||
c370783e | 7418 | static PyObject *_wrap_Log_EnableLogging(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 7419 | PyObject *resultobj; |
b411df4a | 7420 | bool arg1 = (bool) true ; |
d55e5bfc RD |
7421 | bool result; |
7422 | PyObject * obj0 = 0 ; | |
7423 | char *kwnames[] = { | |
7424 | (char *) "doIt", NULL | |
7425 | }; | |
7426 | ||
7427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_EnableLogging",kwnames,&obj0)) goto fail; | |
7428 | if (obj0) { | |
c370783e | 7429 | arg1 = (bool)SWIG_As_bool(obj0); |
d55e5bfc RD |
7430 | if (PyErr_Occurred()) SWIG_fail; |
7431 | } | |
7432 | { | |
7433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7434 | result = (bool)wxLog::EnableLogging(arg1); | |
7435 | ||
7436 | wxPyEndAllowThreads(__tstate); | |
7437 | if (PyErr_Occurred()) SWIG_fail; | |
7438 | } | |
7439 | { | |
7440 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7441 | } | |
7442 | return resultobj; | |
7443 | fail: | |
7444 | return NULL; | |
7445 | } | |
7446 | ||
7447 | ||
c370783e | 7448 | static PyObject *_wrap_Log_OnLog(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7449 | PyObject *resultobj; |
7450 | wxLogLevel arg1 ; | |
7451 | wxChar *arg2 = (wxChar *) 0 ; | |
7452 | time_t arg3 ; | |
7453 | PyObject * obj0 = 0 ; | |
7454 | PyObject * obj1 = 0 ; | |
7455 | PyObject * obj2 = 0 ; | |
7456 | char *kwnames[] = { | |
7457 | (char *) "level",(char *) "szString",(char *) "t", NULL | |
7458 | }; | |
7459 | ||
7460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Log_OnLog",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
c370783e | 7461 | arg1 = (wxLogLevel)SWIG_As_unsigned_SS_long(obj0); |
d55e5bfc RD |
7462 | if (PyErr_Occurred()) SWIG_fail; |
7463 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxChar, | |
7464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 7465 | arg3 = (time_t)SWIG_As_unsigned_SS_int(obj2); |
d55e5bfc RD |
7466 | if (PyErr_Occurred()) SWIG_fail; |
7467 | { | |
7468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7469 | wxLog::OnLog(arg1,(wxChar const *)arg2,arg3); | |
7470 | ||
7471 | wxPyEndAllowThreads(__tstate); | |
7472 | if (PyErr_Occurred()) SWIG_fail; | |
7473 | } | |
7474 | Py_INCREF(Py_None); resultobj = Py_None; | |
7475 | return resultobj; | |
7476 | fail: | |
7477 | return NULL; | |
7478 | } | |
7479 | ||
7480 | ||
c370783e | 7481 | static PyObject *_wrap_Log_Flush(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7482 | PyObject *resultobj; |
7483 | wxLog *arg1 = (wxLog *) 0 ; | |
7484 | PyObject * obj0 = 0 ; | |
7485 | char *kwnames[] = { | |
7486 | (char *) "self", NULL | |
7487 | }; | |
7488 | ||
7489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Flush",kwnames,&obj0)) goto fail; | |
7490 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, | |
7491 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7492 | { | |
7493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7494 | (arg1)->Flush(); | |
7495 | ||
7496 | wxPyEndAllowThreads(__tstate); | |
7497 | if (PyErr_Occurred()) SWIG_fail; | |
7498 | } | |
7499 | Py_INCREF(Py_None); resultobj = Py_None; | |
7500 | return resultobj; | |
7501 | fail: | |
7502 | return NULL; | |
7503 | } | |
7504 | ||
7505 | ||
c370783e | 7506 | static PyObject *_wrap_Log_FlushActive(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7507 | PyObject *resultobj; |
7508 | char *kwnames[] = { | |
7509 | NULL | |
7510 | }; | |
7511 | ||
7512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_FlushActive",kwnames)) goto fail; | |
7513 | { | |
7514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7515 | wxLog::FlushActive(); | |
7516 | ||
7517 | wxPyEndAllowThreads(__tstate); | |
7518 | if (PyErr_Occurred()) SWIG_fail; | |
7519 | } | |
7520 | Py_INCREF(Py_None); resultobj = Py_None; | |
7521 | return resultobj; | |
7522 | fail: | |
7523 | return NULL; | |
7524 | } | |
7525 | ||
7526 | ||
c370783e | 7527 | static PyObject *_wrap_Log_GetActiveTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7528 | PyObject *resultobj; |
7529 | wxLog *result; | |
7530 | char *kwnames[] = { | |
7531 | NULL | |
7532 | }; | |
7533 | ||
7534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetActiveTarget",kwnames)) goto fail; | |
7535 | { | |
7536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7537 | result = (wxLog *)wxLog::GetActiveTarget(); | |
7538 | ||
7539 | wxPyEndAllowThreads(__tstate); | |
7540 | if (PyErr_Occurred()) SWIG_fail; | |
7541 | } | |
7542 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); | |
7543 | return resultobj; | |
7544 | fail: | |
7545 | return NULL; | |
7546 | } | |
7547 | ||
7548 | ||
c370783e | 7549 | static PyObject *_wrap_Log_SetActiveTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7550 | PyObject *resultobj; |
7551 | wxLog *arg1 = (wxLog *) 0 ; | |
7552 | wxLog *result; | |
7553 | PyObject * obj0 = 0 ; | |
7554 | char *kwnames[] = { | |
7555 | (char *) "pLogger", NULL | |
7556 | }; | |
7557 | ||
7558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) goto fail; | |
7559 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, | |
7560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7561 | { | |
7562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7563 | result = (wxLog *)wxLog::SetActiveTarget(arg1); | |
7564 | ||
7565 | wxPyEndAllowThreads(__tstate); | |
7566 | if (PyErr_Occurred()) SWIG_fail; | |
7567 | } | |
7568 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); | |
7569 | return resultobj; | |
7570 | fail: | |
7571 | return NULL; | |
7572 | } | |
7573 | ||
7574 | ||
c370783e | 7575 | static PyObject *_wrap_Log_Suspend(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7576 | PyObject *resultobj; |
7577 | char *kwnames[] = { | |
7578 | NULL | |
7579 | }; | |
7580 | ||
7581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Suspend",kwnames)) goto fail; | |
7582 | { | |
7583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7584 | wxLog::Suspend(); | |
7585 | ||
7586 | wxPyEndAllowThreads(__tstate); | |
7587 | if (PyErr_Occurred()) SWIG_fail; | |
7588 | } | |
7589 | Py_INCREF(Py_None); resultobj = Py_None; | |
7590 | return resultobj; | |
7591 | fail: | |
7592 | return NULL; | |
7593 | } | |
7594 | ||
7595 | ||
c370783e | 7596 | static PyObject *_wrap_Log_Resume(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7597 | PyObject *resultobj; |
7598 | char *kwnames[] = { | |
7599 | NULL | |
7600 | }; | |
7601 | ||
7602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Resume",kwnames)) goto fail; | |
7603 | { | |
7604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7605 | wxLog::Resume(); | |
7606 | ||
7607 | wxPyEndAllowThreads(__tstate); | |
7608 | if (PyErr_Occurred()) SWIG_fail; | |
7609 | } | |
7610 | Py_INCREF(Py_None); resultobj = Py_None; | |
7611 | return resultobj; | |
7612 | fail: | |
7613 | return NULL; | |
7614 | } | |
7615 | ||
7616 | ||
c370783e | 7617 | static PyObject *_wrap_Log_SetVerbose(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 7618 | PyObject *resultobj; |
b411df4a | 7619 | bool arg1 = (bool) true ; |
d55e5bfc RD |
7620 | PyObject * obj0 = 0 ; |
7621 | char *kwnames[] = { | |
7622 | (char *) "bVerbose", NULL | |
7623 | }; | |
7624 | ||
7625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetVerbose",kwnames,&obj0)) goto fail; | |
7626 | if (obj0) { | |
c370783e | 7627 | arg1 = (bool)SWIG_As_bool(obj0); |
d55e5bfc RD |
7628 | if (PyErr_Occurred()) SWIG_fail; |
7629 | } | |
7630 | { | |
7631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7632 | wxLog::SetVerbose(arg1); | |
7633 | ||
7634 | wxPyEndAllowThreads(__tstate); | |
7635 | if (PyErr_Occurred()) SWIG_fail; | |
7636 | } | |
7637 | Py_INCREF(Py_None); resultobj = Py_None; | |
7638 | return resultobj; | |
7639 | fail: | |
7640 | return NULL; | |
7641 | } | |
7642 | ||
7643 | ||
c370783e | 7644 | static PyObject *_wrap_Log_SetLogLevel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7645 | PyObject *resultobj; |
7646 | wxLogLevel arg1 ; | |
7647 | PyObject * obj0 = 0 ; | |
7648 | char *kwnames[] = { | |
7649 | (char *) "logLevel", NULL | |
7650 | }; | |
7651 | ||
7652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetLogLevel",kwnames,&obj0)) goto fail; | |
c370783e | 7653 | arg1 = (wxLogLevel)SWIG_As_unsigned_SS_long(obj0); |
d55e5bfc RD |
7654 | if (PyErr_Occurred()) SWIG_fail; |
7655 | { | |
7656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7657 | wxLog::SetLogLevel(arg1); | |
7658 | ||
7659 | wxPyEndAllowThreads(__tstate); | |
7660 | if (PyErr_Occurred()) SWIG_fail; | |
7661 | } | |
7662 | Py_INCREF(Py_None); resultobj = Py_None; | |
7663 | return resultobj; | |
7664 | fail: | |
7665 | return NULL; | |
7666 | } | |
7667 | ||
7668 | ||
c370783e | 7669 | static PyObject *_wrap_Log_DontCreateOnDemand(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7670 | PyObject *resultobj; |
7671 | char *kwnames[] = { | |
7672 | NULL | |
7673 | }; | |
7674 | ||
7675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_DontCreateOnDemand",kwnames)) goto fail; | |
7676 | { | |
7677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7678 | wxLog::DontCreateOnDemand(); | |
7679 | ||
7680 | wxPyEndAllowThreads(__tstate); | |
7681 | if (PyErr_Occurred()) SWIG_fail; | |
7682 | } | |
7683 | Py_INCREF(Py_None); resultobj = Py_None; | |
7684 | return resultobj; | |
7685 | fail: | |
7686 | return NULL; | |
7687 | } | |
7688 | ||
7689 | ||
c370783e | 7690 | static PyObject *_wrap_Log_SetTraceMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7691 | PyObject *resultobj; |
7692 | wxTraceMask arg1 ; | |
7693 | PyObject * obj0 = 0 ; | |
7694 | char *kwnames[] = { | |
7695 | (char *) "ulMask", NULL | |
7696 | }; | |
7697 | ||
7698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTraceMask",kwnames,&obj0)) goto fail; | |
c370783e | 7699 | arg1 = (wxTraceMask)SWIG_As_unsigned_SS_long(obj0); |
d55e5bfc RD |
7700 | if (PyErr_Occurred()) SWIG_fail; |
7701 | { | |
7702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7703 | wxLog::SetTraceMask(arg1); | |
7704 | ||
7705 | wxPyEndAllowThreads(__tstate); | |
7706 | if (PyErr_Occurred()) SWIG_fail; | |
7707 | } | |
7708 | Py_INCREF(Py_None); resultobj = Py_None; | |
7709 | return resultobj; | |
7710 | fail: | |
7711 | return NULL; | |
7712 | } | |
7713 | ||
7714 | ||
c370783e | 7715 | static PyObject *_wrap_Log_AddTraceMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7716 | PyObject *resultobj; |
7717 | wxString *arg1 = 0 ; | |
b411df4a | 7718 | bool temp1 = false ; |
d55e5bfc RD |
7719 | PyObject * obj0 = 0 ; |
7720 | char *kwnames[] = { | |
7721 | (char *) "str", NULL | |
7722 | }; | |
7723 | ||
7724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_AddTraceMask",kwnames,&obj0)) goto fail; | |
7725 | { | |
7726 | arg1 = wxString_in_helper(obj0); | |
7727 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 7728 | temp1 = true; |
d55e5bfc RD |
7729 | } |
7730 | { | |
7731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7732 | wxLog::AddTraceMask((wxString const &)*arg1); | |
7733 | ||
7734 | wxPyEndAllowThreads(__tstate); | |
7735 | if (PyErr_Occurred()) SWIG_fail; | |
7736 | } | |
7737 | Py_INCREF(Py_None); resultobj = Py_None; | |
7738 | { | |
7739 | if (temp1) | |
7740 | delete arg1; | |
7741 | } | |
7742 | return resultobj; | |
7743 | fail: | |
7744 | { | |
7745 | if (temp1) | |
7746 | delete arg1; | |
7747 | } | |
7748 | return NULL; | |
7749 | } | |
7750 | ||
7751 | ||
c370783e | 7752 | static PyObject *_wrap_Log_RemoveTraceMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7753 | PyObject *resultobj; |
7754 | wxString *arg1 = 0 ; | |
b411df4a | 7755 | bool temp1 = false ; |
d55e5bfc RD |
7756 | PyObject * obj0 = 0 ; |
7757 | char *kwnames[] = { | |
7758 | (char *) "str", NULL | |
7759 | }; | |
7760 | ||
7761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_RemoveTraceMask",kwnames,&obj0)) goto fail; | |
7762 | { | |
7763 | arg1 = wxString_in_helper(obj0); | |
7764 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 7765 | temp1 = true; |
d55e5bfc RD |
7766 | } |
7767 | { | |
7768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7769 | wxLog::RemoveTraceMask((wxString const &)*arg1); | |
7770 | ||
7771 | wxPyEndAllowThreads(__tstate); | |
7772 | if (PyErr_Occurred()) SWIG_fail; | |
7773 | } | |
7774 | Py_INCREF(Py_None); resultobj = Py_None; | |
7775 | { | |
7776 | if (temp1) | |
7777 | delete arg1; | |
7778 | } | |
7779 | return resultobj; | |
7780 | fail: | |
7781 | { | |
7782 | if (temp1) | |
7783 | delete arg1; | |
7784 | } | |
7785 | return NULL; | |
7786 | } | |
7787 | ||
7788 | ||
c370783e | 7789 | static PyObject *_wrap_Log_ClearTraceMasks(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7790 | PyObject *resultobj; |
7791 | char *kwnames[] = { | |
7792 | NULL | |
7793 | }; | |
7794 | ||
7795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_ClearTraceMasks",kwnames)) goto fail; | |
7796 | { | |
7797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7798 | wxLog::ClearTraceMasks(); | |
7799 | ||
7800 | wxPyEndAllowThreads(__tstate); | |
7801 | if (PyErr_Occurred()) SWIG_fail; | |
7802 | } | |
7803 | Py_INCREF(Py_None); resultobj = Py_None; | |
7804 | return resultobj; | |
7805 | fail: | |
7806 | return NULL; | |
7807 | } | |
7808 | ||
7809 | ||
c370783e | 7810 | static PyObject *_wrap_Log_GetTraceMasks(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7811 | PyObject *resultobj; |
7812 | wxArrayString *result; | |
7813 | char *kwnames[] = { | |
7814 | NULL | |
7815 | }; | |
7816 | ||
7817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMasks",kwnames)) goto fail; | |
7818 | { | |
7819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7820 | { | |
7821 | wxArrayString const &_result_ref = wxLog::GetTraceMasks(); | |
7822 | result = (wxArrayString *) &_result_ref; | |
7823 | } | |
7824 | ||
7825 | wxPyEndAllowThreads(__tstate); | |
7826 | if (PyErr_Occurred()) SWIG_fail; | |
7827 | } | |
7828 | { | |
7829 | resultobj = wxArrayString2PyList_helper(*result); | |
7830 | } | |
7831 | return resultobj; | |
7832 | fail: | |
7833 | return NULL; | |
7834 | } | |
7835 | ||
7836 | ||
c370783e | 7837 | static PyObject *_wrap_Log_SetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7838 | PyObject *resultobj; |
7839 | wxChar *arg1 = (wxChar *) 0 ; | |
7840 | PyObject * obj0 = 0 ; | |
7841 | char *kwnames[] = { | |
7842 | (char *) "ts", NULL | |
7843 | }; | |
7844 | ||
7845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTimestamp",kwnames,&obj0)) goto fail; | |
7846 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar, | |
7847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7848 | { | |
7849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7850 | wxLog::SetTimestamp((wxChar const *)arg1); | |
7851 | ||
7852 | wxPyEndAllowThreads(__tstate); | |
7853 | if (PyErr_Occurred()) SWIG_fail; | |
7854 | } | |
7855 | Py_INCREF(Py_None); resultobj = Py_None; | |
7856 | return resultobj; | |
7857 | fail: | |
7858 | return NULL; | |
7859 | } | |
7860 | ||
7861 | ||
c370783e | 7862 | static PyObject *_wrap_Log_GetVerbose(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7863 | PyObject *resultobj; |
7864 | bool result; | |
7865 | char *kwnames[] = { | |
7866 | NULL | |
7867 | }; | |
7868 | ||
7869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetVerbose",kwnames)) goto fail; | |
7870 | { | |
7871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7872 | result = (bool)wxLog::GetVerbose(); | |
7873 | ||
7874 | wxPyEndAllowThreads(__tstate); | |
7875 | if (PyErr_Occurred()) SWIG_fail; | |
7876 | } | |
7877 | { | |
7878 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7879 | } | |
7880 | return resultobj; | |
7881 | fail: | |
7882 | return NULL; | |
7883 | } | |
7884 | ||
7885 | ||
c370783e | 7886 | static PyObject *_wrap_Log_GetTraceMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7887 | PyObject *resultobj; |
7888 | wxTraceMask result; | |
7889 | char *kwnames[] = { | |
7890 | NULL | |
7891 | }; | |
7892 | ||
7893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMask",kwnames)) goto fail; | |
7894 | { | |
7895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7896 | result = (wxTraceMask)wxLog::GetTraceMask(); | |
7897 | ||
7898 | wxPyEndAllowThreads(__tstate); | |
7899 | if (PyErr_Occurred()) SWIG_fail; | |
7900 | } | |
c370783e | 7901 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
7902 | return resultobj; |
7903 | fail: | |
7904 | return NULL; | |
7905 | } | |
7906 | ||
7907 | ||
c370783e | 7908 | static PyObject *_wrap_Log_IsAllowedTraceMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7909 | PyObject *resultobj; |
7910 | wxChar *arg1 = (wxChar *) 0 ; | |
7911 | bool result; | |
7912 | PyObject * obj0 = 0 ; | |
7913 | char *kwnames[] = { | |
7914 | (char *) "mask", NULL | |
7915 | }; | |
7916 | ||
7917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_IsAllowedTraceMask",kwnames,&obj0)) goto fail; | |
7918 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar, | |
7919 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7920 | { | |
7921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7922 | result = (bool)wxLog::IsAllowedTraceMask((wxChar const *)arg1); | |
7923 | ||
7924 | wxPyEndAllowThreads(__tstate); | |
7925 | if (PyErr_Occurred()) SWIG_fail; | |
7926 | } | |
7927 | { | |
7928 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7929 | } | |
7930 | return resultobj; | |
7931 | fail: | |
7932 | return NULL; | |
7933 | } | |
7934 | ||
7935 | ||
c370783e | 7936 | static PyObject *_wrap_Log_GetLogLevel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7937 | PyObject *resultobj; |
7938 | wxLogLevel result; | |
7939 | char *kwnames[] = { | |
7940 | NULL | |
7941 | }; | |
7942 | ||
7943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetLogLevel",kwnames)) goto fail; | |
7944 | { | |
7945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7946 | result = (wxLogLevel)wxLog::GetLogLevel(); | |
7947 | ||
7948 | wxPyEndAllowThreads(__tstate); | |
7949 | if (PyErr_Occurred()) SWIG_fail; | |
7950 | } | |
c370783e | 7951 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
7952 | return resultobj; |
7953 | fail: | |
7954 | return NULL; | |
7955 | } | |
7956 | ||
7957 | ||
c370783e | 7958 | static PyObject *_wrap_Log_GetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7959 | PyObject *resultobj; |
7960 | wxChar *result; | |
7961 | char *kwnames[] = { | |
7962 | NULL | |
7963 | }; | |
7964 | ||
7965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTimestamp",kwnames)) goto fail; | |
7966 | { | |
7967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7968 | result = (wxChar *)wxLog::GetTimestamp(); | |
7969 | ||
7970 | wxPyEndAllowThreads(__tstate); | |
7971 | if (PyErr_Occurred()) SWIG_fail; | |
7972 | } | |
7973 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChar, 0); | |
7974 | return resultobj; | |
7975 | fail: | |
7976 | return NULL; | |
7977 | } | |
7978 | ||
7979 | ||
c370783e | 7980 | static PyObject *_wrap_Log_TimeStamp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7981 | PyObject *resultobj; |
7982 | wxString result; | |
7983 | char *kwnames[] = { | |
7984 | NULL | |
7985 | }; | |
7986 | ||
7987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_TimeStamp",kwnames)) goto fail; | |
7988 | { | |
7989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7990 | result = Log_TimeStamp(); | |
7991 | ||
7992 | wxPyEndAllowThreads(__tstate); | |
7993 | if (PyErr_Occurred()) SWIG_fail; | |
7994 | } | |
7995 | { | |
7996 | #if wxUSE_UNICODE | |
7997 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7998 | #else | |
7999 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8000 | #endif | |
8001 | } | |
8002 | return resultobj; | |
8003 | fail: | |
8004 | return NULL; | |
8005 | } | |
8006 | ||
8007 | ||
c370783e | 8008 | static PyObject *_wrap_Log_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8009 | PyObject *resultobj; |
8010 | wxLog *arg1 = (wxLog *) 0 ; | |
8011 | PyObject * obj0 = 0 ; | |
8012 | char *kwnames[] = { | |
8013 | (char *) "self", NULL | |
8014 | }; | |
8015 | ||
8016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Destroy",kwnames,&obj0)) goto fail; | |
8017 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, | |
8018 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8019 | { | |
8020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8021 | wxLog_Destroy(arg1); | |
8022 | ||
8023 | wxPyEndAllowThreads(__tstate); | |
8024 | if (PyErr_Occurred()) SWIG_fail; | |
8025 | } | |
8026 | Py_INCREF(Py_None); resultobj = Py_None; | |
8027 | return resultobj; | |
8028 | fail: | |
8029 | return NULL; | |
8030 | } | |
8031 | ||
8032 | ||
c370783e | 8033 | static PyObject * Log_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8034 | PyObject *obj; |
8035 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8036 | SWIG_TypeClientData(SWIGTYPE_p_wxLog, obj); | |
8037 | Py_INCREF(obj); | |
8038 | return Py_BuildValue((char *)""); | |
8039 | } | |
c370783e | 8040 | static PyObject *_wrap_new_LogStderr(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8041 | PyObject *resultobj; |
8042 | wxLogStderr *result; | |
8043 | char *kwnames[] = { | |
8044 | NULL | |
8045 | }; | |
8046 | ||
8047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogStderr",kwnames)) goto fail; | |
8048 | { | |
8049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8050 | result = (wxLogStderr *)new wxLogStderr(); | |
8051 | ||
8052 | wxPyEndAllowThreads(__tstate); | |
8053 | if (PyErr_Occurred()) SWIG_fail; | |
8054 | } | |
8055 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogStderr, 1); | |
8056 | return resultobj; | |
8057 | fail: | |
8058 | return NULL; | |
8059 | } | |
8060 | ||
8061 | ||
c370783e | 8062 | static PyObject * LogStderr_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8063 | PyObject *obj; |
8064 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8065 | SWIG_TypeClientData(SWIGTYPE_p_wxLogStderr, obj); | |
8066 | Py_INCREF(obj); | |
8067 | return Py_BuildValue((char *)""); | |
8068 | } | |
c370783e | 8069 | static PyObject *_wrap_new_LogTextCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8070 | PyObject *resultobj; |
8071 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8072 | wxLogTextCtrl *result; | |
8073 | PyObject * obj0 = 0 ; | |
8074 | char *kwnames[] = { | |
8075 | (char *) "pTextCtrl", NULL | |
8076 | }; | |
8077 | ||
8078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogTextCtrl",kwnames,&obj0)) goto fail; | |
8079 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8080 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8081 | { | |
8082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8083 | result = (wxLogTextCtrl *)new wxLogTextCtrl(arg1); | |
8084 | ||
8085 | wxPyEndAllowThreads(__tstate); | |
8086 | if (PyErr_Occurred()) SWIG_fail; | |
8087 | } | |
8088 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogTextCtrl, 1); | |
8089 | return resultobj; | |
8090 | fail: | |
8091 | return NULL; | |
8092 | } | |
8093 | ||
8094 | ||
c370783e | 8095 | static PyObject * LogTextCtrl_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8096 | PyObject *obj; |
8097 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8098 | SWIG_TypeClientData(SWIGTYPE_p_wxLogTextCtrl, obj); | |
8099 | Py_INCREF(obj); | |
8100 | return Py_BuildValue((char *)""); | |
8101 | } | |
c370783e | 8102 | static PyObject *_wrap_new_LogGui(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8103 | PyObject *resultobj; |
8104 | wxLogGui *result; | |
8105 | char *kwnames[] = { | |
8106 | NULL | |
8107 | }; | |
8108 | ||
8109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogGui",kwnames)) goto fail; | |
8110 | { | |
8111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8112 | result = (wxLogGui *)new wxLogGui(); | |
8113 | ||
8114 | wxPyEndAllowThreads(__tstate); | |
8115 | if (PyErr_Occurred()) SWIG_fail; | |
8116 | } | |
8117 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogGui, 1); | |
8118 | return resultobj; | |
8119 | fail: | |
8120 | return NULL; | |
8121 | } | |
8122 | ||
8123 | ||
c370783e | 8124 | static PyObject * LogGui_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8125 | PyObject *obj; |
8126 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8127 | SWIG_TypeClientData(SWIGTYPE_p_wxLogGui, obj); | |
8128 | Py_INCREF(obj); | |
8129 | return Py_BuildValue((char *)""); | |
8130 | } | |
c370783e | 8131 | static PyObject *_wrap_new_LogWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8132 | PyObject *resultobj; |
8133 | wxFrame *arg1 = (wxFrame *) 0 ; | |
8134 | wxString *arg2 = 0 ; | |
b411df4a RD |
8135 | bool arg3 = (bool) true ; |
8136 | bool arg4 = (bool) true ; | |
d55e5bfc | 8137 | wxLogWindow *result; |
b411df4a | 8138 | bool temp2 = false ; |
d55e5bfc RD |
8139 | PyObject * obj0 = 0 ; |
8140 | PyObject * obj1 = 0 ; | |
8141 | PyObject * obj2 = 0 ; | |
8142 | PyObject * obj3 = 0 ; | |
8143 | char *kwnames[] = { | |
8144 | (char *) "pParent",(char *) "szTitle",(char *) "bShow",(char *) "bPassToOld", NULL | |
8145 | }; | |
8146 | ||
8147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_LogWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
8148 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
8149 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8150 | { | |
8151 | arg2 = wxString_in_helper(obj1); | |
8152 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 8153 | temp2 = true; |
d55e5bfc RD |
8154 | } |
8155 | if (obj2) { | |
c370783e | 8156 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
8157 | if (PyErr_Occurred()) SWIG_fail; |
8158 | } | |
8159 | if (obj3) { | |
c370783e | 8160 | arg4 = (bool)SWIG_As_bool(obj3); |
d55e5bfc RD |
8161 | if (PyErr_Occurred()) SWIG_fail; |
8162 | } | |
8163 | { | |
8164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8165 | result = (wxLogWindow *)new wxLogWindow(arg1,(wxString const &)*arg2,arg3,arg4); | |
8166 | ||
8167 | wxPyEndAllowThreads(__tstate); | |
8168 | if (PyErr_Occurred()) SWIG_fail; | |
8169 | } | |
8170 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogWindow, 1); | |
8171 | { | |
8172 | if (temp2) | |
8173 | delete arg2; | |
8174 | } | |
8175 | return resultobj; | |
8176 | fail: | |
8177 | { | |
8178 | if (temp2) | |
8179 | delete arg2; | |
8180 | } | |
8181 | return NULL; | |
8182 | } | |
8183 | ||
8184 | ||
c370783e | 8185 | static PyObject *_wrap_LogWindow_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8186 | PyObject *resultobj; |
8187 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
b411df4a | 8188 | bool arg2 = (bool) true ; |
d55e5bfc RD |
8189 | PyObject * obj0 = 0 ; |
8190 | PyObject * obj1 = 0 ; | |
8191 | char *kwnames[] = { | |
8192 | (char *) "self",(char *) "bShow", NULL | |
8193 | }; | |
8194 | ||
8195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:LogWindow_Show",kwnames,&obj0,&obj1)) goto fail; | |
8196 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, | |
8197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8198 | if (obj1) { | |
c370783e | 8199 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
8200 | if (PyErr_Occurred()) SWIG_fail; |
8201 | } | |
8202 | { | |
8203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8204 | (arg1)->Show(arg2); | |
8205 | ||
8206 | wxPyEndAllowThreads(__tstate); | |
8207 | if (PyErr_Occurred()) SWIG_fail; | |
8208 | } | |
8209 | Py_INCREF(Py_None); resultobj = Py_None; | |
8210 | return resultobj; | |
8211 | fail: | |
8212 | return NULL; | |
8213 | } | |
8214 | ||
8215 | ||
c370783e | 8216 | static PyObject *_wrap_LogWindow_GetFrame(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8217 | PyObject *resultobj; |
8218 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
8219 | wxFrame *result; | |
8220 | PyObject * obj0 = 0 ; | |
8221 | char *kwnames[] = { | |
8222 | (char *) "self", NULL | |
8223 | }; | |
8224 | ||
8225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetFrame",kwnames,&obj0)) goto fail; | |
8226 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, | |
8227 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8228 | { | |
8229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8230 | result = (wxFrame *)((wxLogWindow const *)arg1)->GetFrame(); | |
8231 | ||
8232 | wxPyEndAllowThreads(__tstate); | |
8233 | if (PyErr_Occurred()) SWIG_fail; | |
8234 | } | |
8235 | { | |
412d302d | 8236 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
8237 | } |
8238 | return resultobj; | |
8239 | fail: | |
8240 | return NULL; | |
8241 | } | |
8242 | ||
8243 | ||
c370783e | 8244 | static PyObject *_wrap_LogWindow_GetOldLog(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8245 | PyObject *resultobj; |
8246 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
8247 | wxLog *result; | |
8248 | PyObject * obj0 = 0 ; | |
8249 | char *kwnames[] = { | |
8250 | (char *) "self", NULL | |
8251 | }; | |
8252 | ||
8253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetOldLog",kwnames,&obj0)) goto fail; | |
8254 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, | |
8255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8256 | { | |
8257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8258 | result = (wxLog *)((wxLogWindow const *)arg1)->GetOldLog(); | |
8259 | ||
8260 | wxPyEndAllowThreads(__tstate); | |
8261 | if (PyErr_Occurred()) SWIG_fail; | |
8262 | } | |
8263 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); | |
8264 | return resultobj; | |
8265 | fail: | |
8266 | return NULL; | |
8267 | } | |
8268 | ||
8269 | ||
c370783e | 8270 | static PyObject *_wrap_LogWindow_IsPassingMessages(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8271 | PyObject *resultobj; |
8272 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
8273 | bool result; | |
8274 | PyObject * obj0 = 0 ; | |
8275 | char *kwnames[] = { | |
8276 | (char *) "self", NULL | |
8277 | }; | |
8278 | ||
8279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_IsPassingMessages",kwnames,&obj0)) goto fail; | |
8280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, | |
8281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8282 | { | |
8283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8284 | result = (bool)((wxLogWindow const *)arg1)->IsPassingMessages(); | |
8285 | ||
8286 | wxPyEndAllowThreads(__tstate); | |
8287 | if (PyErr_Occurred()) SWIG_fail; | |
8288 | } | |
8289 | { | |
8290 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8291 | } | |
8292 | return resultobj; | |
8293 | fail: | |
8294 | return NULL; | |
8295 | } | |
8296 | ||
8297 | ||
c370783e | 8298 | static PyObject *_wrap_LogWindow_PassMessages(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8299 | PyObject *resultobj; |
8300 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
8301 | bool arg2 ; | |
8302 | PyObject * obj0 = 0 ; | |
8303 | PyObject * obj1 = 0 ; | |
8304 | char *kwnames[] = { | |
8305 | (char *) "self",(char *) "bDoPass", NULL | |
8306 | }; | |
8307 | ||
8308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogWindow_PassMessages",kwnames,&obj0,&obj1)) goto fail; | |
8309 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, | |
8310 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 8311 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
8312 | if (PyErr_Occurred()) SWIG_fail; |
8313 | { | |
8314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8315 | (arg1)->PassMessages(arg2); | |
8316 | ||
8317 | wxPyEndAllowThreads(__tstate); | |
8318 | if (PyErr_Occurred()) SWIG_fail; | |
8319 | } | |
8320 | Py_INCREF(Py_None); resultobj = Py_None; | |
8321 | return resultobj; | |
8322 | fail: | |
8323 | return NULL; | |
8324 | } | |
8325 | ||
8326 | ||
c370783e | 8327 | static PyObject * LogWindow_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8328 | PyObject *obj; |
8329 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8330 | SWIG_TypeClientData(SWIGTYPE_p_wxLogWindow, obj); | |
8331 | Py_INCREF(obj); | |
8332 | return Py_BuildValue((char *)""); | |
8333 | } | |
c370783e | 8334 | static PyObject *_wrap_new_LogChain(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8335 | PyObject *resultobj; |
8336 | wxLog *arg1 = (wxLog *) 0 ; | |
8337 | wxLogChain *result; | |
8338 | PyObject * obj0 = 0 ; | |
8339 | char *kwnames[] = { | |
8340 | (char *) "logger", NULL | |
8341 | }; | |
8342 | ||
8343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogChain",kwnames,&obj0)) goto fail; | |
8344 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, | |
8345 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8346 | { | |
8347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8348 | result = (wxLogChain *)new wxLogChain(arg1); | |
8349 | ||
8350 | wxPyEndAllowThreads(__tstate); | |
8351 | if (PyErr_Occurred()) SWIG_fail; | |
8352 | } | |
8353 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogChain, 1); | |
8354 | return resultobj; | |
8355 | fail: | |
8356 | return NULL; | |
8357 | } | |
8358 | ||
8359 | ||
c370783e | 8360 | static PyObject *_wrap_LogChain_SetLog(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8361 | PyObject *resultobj; |
8362 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
8363 | wxLog *arg2 = (wxLog *) 0 ; | |
8364 | PyObject * obj0 = 0 ; | |
8365 | PyObject * obj1 = 0 ; | |
8366 | char *kwnames[] = { | |
8367 | (char *) "self",(char *) "logger", NULL | |
8368 | }; | |
8369 | ||
8370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_SetLog",kwnames,&obj0,&obj1)) goto fail; | |
8371 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, | |
8372 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8373 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLog, | |
8374 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8375 | { | |
8376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8377 | (arg1)->SetLog(arg2); | |
8378 | ||
8379 | wxPyEndAllowThreads(__tstate); | |
8380 | if (PyErr_Occurred()) SWIG_fail; | |
8381 | } | |
8382 | Py_INCREF(Py_None); resultobj = Py_None; | |
8383 | return resultobj; | |
8384 | fail: | |
8385 | return NULL; | |
8386 | } | |
8387 | ||
8388 | ||
c370783e | 8389 | static PyObject *_wrap_LogChain_PassMessages(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8390 | PyObject *resultobj; |
8391 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
8392 | bool arg2 ; | |
8393 | PyObject * obj0 = 0 ; | |
8394 | PyObject * obj1 = 0 ; | |
8395 | char *kwnames[] = { | |
8396 | (char *) "self",(char *) "bDoPass", NULL | |
8397 | }; | |
8398 | ||
8399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_PassMessages",kwnames,&obj0,&obj1)) goto fail; | |
8400 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, | |
8401 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 8402 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
8403 | if (PyErr_Occurred()) SWIG_fail; |
8404 | { | |
8405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8406 | (arg1)->PassMessages(arg2); | |
8407 | ||
8408 | wxPyEndAllowThreads(__tstate); | |
8409 | if (PyErr_Occurred()) SWIG_fail; | |
8410 | } | |
8411 | Py_INCREF(Py_None); resultobj = Py_None; | |
8412 | return resultobj; | |
8413 | fail: | |
8414 | return NULL; | |
8415 | } | |
8416 | ||
8417 | ||
c370783e | 8418 | static PyObject *_wrap_LogChain_IsPassingMessages(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8419 | PyObject *resultobj; |
8420 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
8421 | bool result; | |
8422 | PyObject * obj0 = 0 ; | |
8423 | char *kwnames[] = { | |
8424 | (char *) "self", NULL | |
8425 | }; | |
8426 | ||
8427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_IsPassingMessages",kwnames,&obj0)) goto fail; | |
8428 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, | |
8429 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8430 | { | |
8431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8432 | result = (bool)(arg1)->IsPassingMessages(); | |
8433 | ||
8434 | wxPyEndAllowThreads(__tstate); | |
8435 | if (PyErr_Occurred()) SWIG_fail; | |
8436 | } | |
8437 | { | |
8438 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8439 | } | |
8440 | return resultobj; | |
8441 | fail: | |
8442 | return NULL; | |
8443 | } | |
8444 | ||
8445 | ||
c370783e | 8446 | static PyObject *_wrap_LogChain_GetOldLog(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8447 | PyObject *resultobj; |
8448 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
8449 | wxLog *result; | |
8450 | PyObject * obj0 = 0 ; | |
8451 | char *kwnames[] = { | |
8452 | (char *) "self", NULL | |
8453 | }; | |
8454 | ||
8455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_GetOldLog",kwnames,&obj0)) goto fail; | |
8456 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, | |
8457 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8458 | { | |
8459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8460 | result = (wxLog *)(arg1)->GetOldLog(); | |
8461 | ||
8462 | wxPyEndAllowThreads(__tstate); | |
8463 | if (PyErr_Occurred()) SWIG_fail; | |
8464 | } | |
8465 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); | |
8466 | return resultobj; | |
8467 | fail: | |
8468 | return NULL; | |
8469 | } | |
8470 | ||
8471 | ||
c370783e | 8472 | static PyObject * LogChain_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8473 | PyObject *obj; |
8474 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8475 | SWIG_TypeClientData(SWIGTYPE_p_wxLogChain, obj); | |
8476 | Py_INCREF(obj); | |
8477 | return Py_BuildValue((char *)""); | |
8478 | } | |
c370783e | 8479 | static PyObject *_wrap_SysErrorCode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8480 | PyObject *resultobj; |
8481 | unsigned long result; | |
8482 | char *kwnames[] = { | |
8483 | NULL | |
8484 | }; | |
8485 | ||
8486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SysErrorCode",kwnames)) goto fail; | |
8487 | { | |
8488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8489 | result = (unsigned long)wxSysErrorCode(); | |
8490 | ||
8491 | wxPyEndAllowThreads(__tstate); | |
8492 | if (PyErr_Occurred()) SWIG_fail; | |
8493 | } | |
c370783e | 8494 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
8495 | return resultobj; |
8496 | fail: | |
8497 | return NULL; | |
8498 | } | |
8499 | ||
8500 | ||
c370783e | 8501 | static PyObject *_wrap_SysErrorMsg(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8502 | PyObject *resultobj; |
8503 | unsigned long arg1 = (unsigned long) 0 ; | |
8504 | wxString result; | |
8505 | PyObject * obj0 = 0 ; | |
8506 | char *kwnames[] = { | |
8507 | (char *) "nErrCode", NULL | |
8508 | }; | |
8509 | ||
8510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SysErrorMsg",kwnames,&obj0)) goto fail; | |
8511 | if (obj0) { | |
c370783e | 8512 | arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0); |
d55e5bfc RD |
8513 | if (PyErr_Occurred()) SWIG_fail; |
8514 | } | |
8515 | { | |
8516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8517 | result = wxSysErrorMsg(arg1); | |
8518 | ||
8519 | wxPyEndAllowThreads(__tstate); | |
8520 | if (PyErr_Occurred()) SWIG_fail; | |
8521 | } | |
8522 | { | |
8523 | #if wxUSE_UNICODE | |
8524 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8525 | #else | |
8526 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8527 | #endif | |
8528 | } | |
8529 | return resultobj; | |
8530 | fail: | |
8531 | return NULL; | |
8532 | } | |
8533 | ||
8534 | ||
c370783e | 8535 | static PyObject *_wrap_LogFatalError(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8536 | PyObject *resultobj; |
8537 | wxString *arg1 = 0 ; | |
b411df4a | 8538 | bool temp1 = false ; |
d55e5bfc RD |
8539 | PyObject * obj0 = 0 ; |
8540 | char *kwnames[] = { | |
8541 | (char *) "msg", NULL | |
8542 | }; | |
8543 | ||
8544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogFatalError",kwnames,&obj0)) goto fail; | |
8545 | { | |
8546 | arg1 = wxString_in_helper(obj0); | |
8547 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 8548 | temp1 = true; |
d55e5bfc RD |
8549 | } |
8550 | { | |
8551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8552 | wxLogFatalError((wxString const &)*arg1); | |
8553 | ||
8554 | wxPyEndAllowThreads(__tstate); | |
8555 | if (PyErr_Occurred()) SWIG_fail; | |
8556 | } | |
8557 | Py_INCREF(Py_None); resultobj = Py_None; | |
8558 | { | |
8559 | if (temp1) | |
8560 | delete arg1; | |
8561 | } | |
8562 | return resultobj; | |
8563 | fail: | |
8564 | { | |
8565 | if (temp1) | |
8566 | delete arg1; | |
8567 | } | |
8568 | return NULL; | |
8569 | } | |
8570 | ||
8571 | ||
c370783e | 8572 | static PyObject *_wrap_LogError(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8573 | PyObject *resultobj; |
8574 | wxString *arg1 = 0 ; | |
b411df4a | 8575 | bool temp1 = false ; |
d55e5bfc RD |
8576 | PyObject * obj0 = 0 ; |
8577 | char *kwnames[] = { | |
8578 | (char *) "msg", NULL | |
8579 | }; | |
8580 | ||
8581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogError",kwnames,&obj0)) goto fail; | |
8582 | { | |
8583 | arg1 = wxString_in_helper(obj0); | |
8584 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 8585 | temp1 = true; |
d55e5bfc RD |
8586 | } |
8587 | { | |
8588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8589 | wxLogError((wxString const &)*arg1); | |
8590 | ||
8591 | wxPyEndAllowThreads(__tstate); | |
8592 | if (PyErr_Occurred()) SWIG_fail; | |
8593 | } | |
8594 | Py_INCREF(Py_None); resultobj = Py_None; | |
8595 | { | |
8596 | if (temp1) | |
8597 | delete arg1; | |
8598 | } | |
8599 | return resultobj; | |
8600 | fail: | |
8601 | { | |
8602 | if (temp1) | |
8603 | delete arg1; | |
8604 | } | |
8605 | return NULL; | |
8606 | } | |
8607 | ||
8608 | ||
c370783e | 8609 | static PyObject *_wrap_LogWarning(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8610 | PyObject *resultobj; |
8611 | wxString *arg1 = 0 ; | |
b411df4a | 8612 | bool temp1 = false ; |
d55e5bfc RD |
8613 | PyObject * obj0 = 0 ; |
8614 | char *kwnames[] = { | |
8615 | (char *) "msg", NULL | |
8616 | }; | |
8617 | ||
8618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWarning",kwnames,&obj0)) goto fail; | |
8619 | { | |
8620 | arg1 = wxString_in_helper(obj0); | |
8621 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 8622 | temp1 = true; |
d55e5bfc RD |
8623 | } |
8624 | { | |
8625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8626 | wxLogWarning((wxString const &)*arg1); | |
8627 | ||
8628 | wxPyEndAllowThreads(__tstate); | |
8629 | if (PyErr_Occurred()) SWIG_fail; | |
8630 | } | |
8631 | Py_INCREF(Py_None); resultobj = Py_None; | |
8632 | { | |
8633 | if (temp1) | |
8634 | delete arg1; | |
8635 | } | |
8636 | return resultobj; | |
8637 | fail: | |
8638 | { | |
8639 | if (temp1) | |
8640 | delete arg1; | |
8641 | } | |
8642 | return NULL; | |
8643 | } | |
8644 | ||
8645 | ||
c370783e | 8646 | static PyObject *_wrap_LogMessage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8647 | PyObject *resultobj; |
8648 | wxString *arg1 = 0 ; | |
b411df4a | 8649 | bool temp1 = false ; |
d55e5bfc RD |
8650 | PyObject * obj0 = 0 ; |
8651 | char *kwnames[] = { | |
8652 | (char *) "msg", NULL | |
8653 | }; | |
8654 | ||
8655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogMessage",kwnames,&obj0)) goto fail; | |
8656 | { | |
8657 | arg1 = wxString_in_helper(obj0); | |
8658 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 8659 | temp1 = true; |
d55e5bfc RD |
8660 | } |
8661 | { | |
8662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8663 | wxLogMessage((wxString const &)*arg1); | |
8664 | ||
8665 | wxPyEndAllowThreads(__tstate); | |
8666 | if (PyErr_Occurred()) SWIG_fail; | |
8667 | } | |
8668 | Py_INCREF(Py_None); resultobj = Py_None; | |
8669 | { | |
8670 | if (temp1) | |
8671 | delete arg1; | |
8672 | } | |
8673 | return resultobj; | |
8674 | fail: | |
8675 | { | |
8676 | if (temp1) | |
8677 | delete arg1; | |
8678 | } | |
8679 | return NULL; | |
8680 | } | |
8681 | ||
8682 | ||
c370783e | 8683 | static PyObject *_wrap_LogInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8684 | PyObject *resultobj; |
8685 | wxString *arg1 = 0 ; | |
b411df4a | 8686 | bool temp1 = false ; |
d55e5bfc RD |
8687 | PyObject * obj0 = 0 ; |
8688 | char *kwnames[] = { | |
8689 | (char *) "msg", NULL | |
8690 | }; | |
8691 | ||
8692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogInfo",kwnames,&obj0)) goto fail; | |
8693 | { | |
8694 | arg1 = wxString_in_helper(obj0); | |
8695 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 8696 | temp1 = true; |
d55e5bfc RD |
8697 | } |
8698 | { | |
8699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8700 | wxLogInfo((wxString const &)*arg1); | |
8701 | ||
8702 | wxPyEndAllowThreads(__tstate); | |
8703 | if (PyErr_Occurred()) SWIG_fail; | |
8704 | } | |
8705 | Py_INCREF(Py_None); resultobj = Py_None; | |
8706 | { | |
8707 | if (temp1) | |
8708 | delete arg1; | |
8709 | } | |
8710 | return resultobj; | |
8711 | fail: | |
8712 | { | |
8713 | if (temp1) | |
8714 | delete arg1; | |
8715 | } | |
8716 | return NULL; | |
8717 | } | |
8718 | ||
8719 | ||
c370783e | 8720 | static PyObject *_wrap_LogDebug(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8721 | PyObject *resultobj; |
8722 | wxString *arg1 = 0 ; | |
b411df4a | 8723 | bool temp1 = false ; |
d55e5bfc RD |
8724 | PyObject * obj0 = 0 ; |
8725 | char *kwnames[] = { | |
8726 | (char *) "msg", NULL | |
8727 | }; | |
8728 | ||
8729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogDebug",kwnames,&obj0)) goto fail; | |
8730 | { | |
8731 | arg1 = wxString_in_helper(obj0); | |
8732 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 8733 | temp1 = true; |
d55e5bfc RD |
8734 | } |
8735 | { | |
8736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8737 | wxLogDebug((wxString const &)*arg1); | |
8738 | ||
8739 | wxPyEndAllowThreads(__tstate); | |
8740 | if (PyErr_Occurred()) SWIG_fail; | |
8741 | } | |
8742 | Py_INCREF(Py_None); resultobj = Py_None; | |
8743 | { | |
8744 | if (temp1) | |
8745 | delete arg1; | |
8746 | } | |
8747 | return resultobj; | |
8748 | fail: | |
8749 | { | |
8750 | if (temp1) | |
8751 | delete arg1; | |
8752 | } | |
8753 | return NULL; | |
8754 | } | |
8755 | ||
8756 | ||
c370783e | 8757 | static PyObject *_wrap_LogVerbose(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8758 | PyObject *resultobj; |
8759 | wxString *arg1 = 0 ; | |
b411df4a | 8760 | bool temp1 = false ; |
d55e5bfc RD |
8761 | PyObject * obj0 = 0 ; |
8762 | char *kwnames[] = { | |
8763 | (char *) "msg", NULL | |
8764 | }; | |
8765 | ||
8766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogVerbose",kwnames,&obj0)) goto fail; | |
8767 | { | |
8768 | arg1 = wxString_in_helper(obj0); | |
8769 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 8770 | temp1 = true; |
d55e5bfc RD |
8771 | } |
8772 | { | |
8773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8774 | wxLogVerbose((wxString const &)*arg1); | |
8775 | ||
8776 | wxPyEndAllowThreads(__tstate); | |
8777 | if (PyErr_Occurred()) SWIG_fail; | |
8778 | } | |
8779 | Py_INCREF(Py_None); resultobj = Py_None; | |
8780 | { | |
8781 | if (temp1) | |
8782 | delete arg1; | |
8783 | } | |
8784 | return resultobj; | |
8785 | fail: | |
8786 | { | |
8787 | if (temp1) | |
8788 | delete arg1; | |
8789 | } | |
8790 | return NULL; | |
8791 | } | |
8792 | ||
8793 | ||
c370783e | 8794 | static PyObject *_wrap_LogStatus(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8795 | PyObject *resultobj; |
8796 | wxString *arg1 = 0 ; | |
b411df4a | 8797 | bool temp1 = false ; |
d55e5bfc RD |
8798 | PyObject * obj0 = 0 ; |
8799 | char *kwnames[] = { | |
8800 | (char *) "msg", NULL | |
8801 | }; | |
8802 | ||
8803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogStatus",kwnames,&obj0)) goto fail; | |
8804 | { | |
8805 | arg1 = wxString_in_helper(obj0); | |
8806 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 8807 | temp1 = true; |
d55e5bfc RD |
8808 | } |
8809 | { | |
8810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8811 | wxLogStatus((wxString const &)*arg1); | |
8812 | ||
8813 | wxPyEndAllowThreads(__tstate); | |
8814 | if (PyErr_Occurred()) SWIG_fail; | |
8815 | } | |
8816 | Py_INCREF(Py_None); resultobj = Py_None; | |
8817 | { | |
8818 | if (temp1) | |
8819 | delete arg1; | |
8820 | } | |
8821 | return resultobj; | |
8822 | fail: | |
8823 | { | |
8824 | if (temp1) | |
8825 | delete arg1; | |
8826 | } | |
8827 | return NULL; | |
8828 | } | |
8829 | ||
8830 | ||
c370783e | 8831 | static PyObject *_wrap_LogStatusFrame(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8832 | PyObject *resultobj; |
8833 | wxFrame *arg1 = (wxFrame *) 0 ; | |
8834 | wxString *arg2 = 0 ; | |
b411df4a | 8835 | bool temp2 = false ; |
d55e5bfc RD |
8836 | PyObject * obj0 = 0 ; |
8837 | PyObject * obj1 = 0 ; | |
8838 | char *kwnames[] = { | |
8839 | (char *) "pFrame",(char *) "msg", NULL | |
8840 | }; | |
8841 | ||
8842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogStatusFrame",kwnames,&obj0,&obj1)) goto fail; | |
8843 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
8844 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8845 | { | |
8846 | arg2 = wxString_in_helper(obj1); | |
8847 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 8848 | temp2 = true; |
d55e5bfc RD |
8849 | } |
8850 | { | |
8851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8852 | wxLogStatus(arg1,(wxString const &)*arg2); | |
8853 | ||
8854 | wxPyEndAllowThreads(__tstate); | |
8855 | if (PyErr_Occurred()) SWIG_fail; | |
8856 | } | |
8857 | Py_INCREF(Py_None); resultobj = Py_None; | |
8858 | { | |
8859 | if (temp2) | |
8860 | delete arg2; | |
8861 | } | |
8862 | return resultobj; | |
8863 | fail: | |
8864 | { | |
8865 | if (temp2) | |
8866 | delete arg2; | |
8867 | } | |
8868 | return NULL; | |
8869 | } | |
8870 | ||
8871 | ||
c370783e | 8872 | static PyObject *_wrap_LogSysError(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8873 | PyObject *resultobj; |
8874 | wxString *arg1 = 0 ; | |
b411df4a | 8875 | bool temp1 = false ; |
d55e5bfc RD |
8876 | PyObject * obj0 = 0 ; |
8877 | char *kwnames[] = { | |
8878 | (char *) "msg", NULL | |
8879 | }; | |
8880 | ||
8881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogSysError",kwnames,&obj0)) goto fail; | |
8882 | { | |
8883 | arg1 = wxString_in_helper(obj0); | |
8884 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 8885 | temp1 = true; |
d55e5bfc RD |
8886 | } |
8887 | { | |
8888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8889 | wxLogSysError((wxString const &)*arg1); | |
8890 | ||
8891 | wxPyEndAllowThreads(__tstate); | |
8892 | if (PyErr_Occurred()) SWIG_fail; | |
8893 | } | |
8894 | Py_INCREF(Py_None); resultobj = Py_None; | |
8895 | { | |
8896 | if (temp1) | |
8897 | delete arg1; | |
8898 | } | |
8899 | return resultobj; | |
8900 | fail: | |
8901 | { | |
8902 | if (temp1) | |
8903 | delete arg1; | |
8904 | } | |
8905 | return NULL; | |
8906 | } | |
8907 | ||
8908 | ||
c370783e | 8909 | static PyObject *_wrap_LogTrace__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
8910 | PyObject *resultobj; |
8911 | unsigned long arg1 ; | |
8912 | wxString *arg2 = 0 ; | |
b411df4a | 8913 | bool temp2 = false ; |
d55e5bfc RD |
8914 | PyObject * obj0 = 0 ; |
8915 | PyObject * obj1 = 0 ; | |
8916 | ||
8917 | if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail; | |
c370783e | 8918 | arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0); |
d55e5bfc RD |
8919 | if (PyErr_Occurred()) SWIG_fail; |
8920 | { | |
8921 | arg2 = wxString_in_helper(obj1); | |
8922 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 8923 | temp2 = true; |
d55e5bfc RD |
8924 | } |
8925 | { | |
8926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8927 | wxLogTrace(arg1,(wxString const &)*arg2); | |
8928 | ||
8929 | wxPyEndAllowThreads(__tstate); | |
8930 | if (PyErr_Occurred()) SWIG_fail; | |
8931 | } | |
8932 | Py_INCREF(Py_None); resultobj = Py_None; | |
8933 | { | |
8934 | if (temp2) | |
8935 | delete arg2; | |
8936 | } | |
8937 | return resultobj; | |
8938 | fail: | |
8939 | { | |
8940 | if (temp2) | |
8941 | delete arg2; | |
8942 | } | |
8943 | return NULL; | |
8944 | } | |
8945 | ||
8946 | ||
c370783e | 8947 | static PyObject *_wrap_LogTrace__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
8948 | PyObject *resultobj; |
8949 | wxString *arg1 = 0 ; | |
8950 | wxString *arg2 = 0 ; | |
b411df4a RD |
8951 | bool temp1 = false ; |
8952 | bool temp2 = false ; | |
d55e5bfc RD |
8953 | PyObject * obj0 = 0 ; |
8954 | PyObject * obj1 = 0 ; | |
8955 | ||
8956 | if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail; | |
8957 | { | |
8958 | arg1 = wxString_in_helper(obj0); | |
8959 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 8960 | temp1 = true; |
d55e5bfc RD |
8961 | } |
8962 | { | |
8963 | arg2 = wxString_in_helper(obj1); | |
8964 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 8965 | temp2 = true; |
d55e5bfc RD |
8966 | } |
8967 | { | |
8968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8969 | wxLogTrace((wxString const &)*arg1,(wxString const &)*arg2); | |
8970 | ||
8971 | wxPyEndAllowThreads(__tstate); | |
8972 | if (PyErr_Occurred()) SWIG_fail; | |
8973 | } | |
8974 | Py_INCREF(Py_None); resultobj = Py_None; | |
8975 | { | |
8976 | if (temp1) | |
8977 | delete arg1; | |
8978 | } | |
8979 | { | |
8980 | if (temp2) | |
8981 | delete arg2; | |
8982 | } | |
8983 | return resultobj; | |
8984 | fail: | |
8985 | { | |
8986 | if (temp1) | |
8987 | delete arg1; | |
8988 | } | |
8989 | { | |
8990 | if (temp2) | |
8991 | delete arg2; | |
8992 | } | |
8993 | return NULL; | |
8994 | } | |
8995 | ||
8996 | ||
8997 | static PyObject *_wrap_LogTrace(PyObject *self, PyObject *args) { | |
8998 | int argc; | |
8999 | PyObject *argv[3]; | |
9000 | int ii; | |
9001 | ||
9002 | argc = PyObject_Length(args); | |
9003 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
9004 | argv[ii] = PyTuple_GetItem(args,ii); | |
9005 | } | |
9006 | if (argc == 2) { | |
9007 | int _v; | |
9008 | { | |
9009 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); | |
9010 | } | |
9011 | if (_v) { | |
9012 | { | |
9013 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); | |
9014 | } | |
9015 | if (_v) { | |
9016 | return _wrap_LogTrace__SWIG_1(self,args); | |
9017 | } | |
9018 | } | |
9019 | } | |
9020 | if (argc == 2) { | |
9021 | int _v; | |
c370783e | 9022 | _v = SWIG_Check_unsigned_SS_long(argv[0]); |
d55e5bfc RD |
9023 | if (_v) { |
9024 | { | |
9025 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); | |
9026 | } | |
9027 | if (_v) { | |
9028 | return _wrap_LogTrace__SWIG_0(self,args); | |
9029 | } | |
9030 | } | |
9031 | } | |
9032 | ||
9033 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'LogTrace'"); | |
9034 | return NULL; | |
9035 | } | |
9036 | ||
9037 | ||
c370783e | 9038 | static PyObject *_wrap_LogGeneric(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9039 | PyObject *resultobj; |
9040 | unsigned long arg1 ; | |
9041 | wxString *arg2 = 0 ; | |
b411df4a | 9042 | bool temp2 = false ; |
d55e5bfc RD |
9043 | PyObject * obj0 = 0 ; |
9044 | PyObject * obj1 = 0 ; | |
9045 | char *kwnames[] = { | |
9046 | (char *) "level",(char *) "msg", NULL | |
9047 | }; | |
9048 | ||
9049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogGeneric",kwnames,&obj0,&obj1)) goto fail; | |
c370783e | 9050 | arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0); |
d55e5bfc RD |
9051 | if (PyErr_Occurred()) SWIG_fail; |
9052 | { | |
9053 | arg2 = wxString_in_helper(obj1); | |
9054 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 9055 | temp2 = true; |
d55e5bfc RD |
9056 | } |
9057 | { | |
9058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9059 | wxLogGeneric(arg1,(wxString const &)*arg2); | |
9060 | ||
9061 | wxPyEndAllowThreads(__tstate); | |
9062 | if (PyErr_Occurred()) SWIG_fail; | |
9063 | } | |
9064 | Py_INCREF(Py_None); resultobj = Py_None; | |
9065 | { | |
9066 | if (temp2) | |
9067 | delete arg2; | |
9068 | } | |
9069 | return resultobj; | |
9070 | fail: | |
9071 | { | |
9072 | if (temp2) | |
9073 | delete arg2; | |
9074 | } | |
9075 | return NULL; | |
9076 | } | |
9077 | ||
9078 | ||
c370783e | 9079 | static PyObject *_wrap_SafeShowMessage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9080 | PyObject *resultobj; |
9081 | wxString *arg1 = 0 ; | |
9082 | wxString *arg2 = 0 ; | |
b411df4a RD |
9083 | bool temp1 = false ; |
9084 | bool temp2 = false ; | |
d55e5bfc RD |
9085 | PyObject * obj0 = 0 ; |
9086 | PyObject * obj1 = 0 ; | |
9087 | char *kwnames[] = { | |
9088 | (char *) "title",(char *) "text", NULL | |
9089 | }; | |
9090 | ||
9091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SafeShowMessage",kwnames,&obj0,&obj1)) goto fail; | |
9092 | { | |
9093 | arg1 = wxString_in_helper(obj0); | |
9094 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 9095 | temp1 = true; |
d55e5bfc RD |
9096 | } |
9097 | { | |
9098 | arg2 = wxString_in_helper(obj1); | |
9099 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 9100 | temp2 = true; |
d55e5bfc RD |
9101 | } |
9102 | { | |
9103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9104 | wxSafeShowMessage((wxString const &)*arg1,(wxString const &)*arg2); | |
9105 | ||
9106 | wxPyEndAllowThreads(__tstate); | |
9107 | if (PyErr_Occurred()) SWIG_fail; | |
9108 | } | |
9109 | Py_INCREF(Py_None); resultobj = Py_None; | |
9110 | { | |
9111 | if (temp1) | |
9112 | delete arg1; | |
9113 | } | |
9114 | { | |
9115 | if (temp2) | |
9116 | delete arg2; | |
9117 | } | |
9118 | return resultobj; | |
9119 | fail: | |
9120 | { | |
9121 | if (temp1) | |
9122 | delete arg1; | |
9123 | } | |
9124 | { | |
9125 | if (temp2) | |
9126 | delete arg2; | |
9127 | } | |
9128 | return NULL; | |
9129 | } | |
9130 | ||
9131 | ||
c370783e | 9132 | static PyObject *_wrap_new_LogNull(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9133 | PyObject *resultobj; |
9134 | wxLogNull *result; | |
9135 | char *kwnames[] = { | |
9136 | NULL | |
9137 | }; | |
9138 | ||
9139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogNull",kwnames)) goto fail; | |
9140 | { | |
9141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9142 | result = (wxLogNull *)new wxLogNull(); | |
9143 | ||
9144 | wxPyEndAllowThreads(__tstate); | |
9145 | if (PyErr_Occurred()) SWIG_fail; | |
9146 | } | |
9147 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogNull, 1); | |
9148 | return resultobj; | |
9149 | fail: | |
9150 | return NULL; | |
9151 | } | |
9152 | ||
9153 | ||
c370783e | 9154 | static PyObject *_wrap_delete_LogNull(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9155 | PyObject *resultobj; |
9156 | wxLogNull *arg1 = (wxLogNull *) 0 ; | |
9157 | PyObject * obj0 = 0 ; | |
9158 | char *kwnames[] = { | |
9159 | (char *) "self", NULL | |
9160 | }; | |
9161 | ||
9162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LogNull",kwnames,&obj0)) goto fail; | |
9163 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogNull, | |
9164 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9165 | { | |
9166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9167 | delete arg1; | |
9168 | ||
9169 | wxPyEndAllowThreads(__tstate); | |
9170 | if (PyErr_Occurred()) SWIG_fail; | |
9171 | } | |
9172 | Py_INCREF(Py_None); resultobj = Py_None; | |
9173 | return resultobj; | |
9174 | fail: | |
9175 | return NULL; | |
9176 | } | |
9177 | ||
9178 | ||
c370783e | 9179 | static PyObject * LogNull_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
9180 | PyObject *obj; |
9181 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9182 | SWIG_TypeClientData(SWIGTYPE_p_wxLogNull, obj); | |
9183 | Py_INCREF(obj); | |
9184 | return Py_BuildValue((char *)""); | |
9185 | } | |
c370783e | 9186 | static PyObject *_wrap_new_PyLog(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9187 | PyObject *resultobj; |
9188 | wxPyLog *result; | |
9189 | char *kwnames[] = { | |
9190 | NULL | |
9191 | }; | |
9192 | ||
9193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLog",kwnames)) goto fail; | |
9194 | { | |
9195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9196 | result = (wxPyLog *)new wxPyLog(); | |
9197 | ||
9198 | wxPyEndAllowThreads(__tstate); | |
9199 | if (PyErr_Occurred()) SWIG_fail; | |
9200 | } | |
9201 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyLog, 1); | |
9202 | return resultobj; | |
9203 | fail: | |
9204 | return NULL; | |
9205 | } | |
9206 | ||
9207 | ||
c370783e | 9208 | static PyObject *_wrap_PyLog__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9209 | PyObject *resultobj; |
9210 | wxPyLog *arg1 = (wxPyLog *) 0 ; | |
9211 | PyObject *arg2 = (PyObject *) 0 ; | |
9212 | PyObject *arg3 = (PyObject *) 0 ; | |
9213 | PyObject * obj0 = 0 ; | |
9214 | PyObject * obj1 = 0 ; | |
9215 | PyObject * obj2 = 0 ; | |
9216 | char *kwnames[] = { | |
9217 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
9218 | }; | |
9219 | ||
9220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLog__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLog, | |
9222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9223 | arg2 = obj1; | |
9224 | arg3 = obj2; | |
9225 | { | |
9226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9227 | (arg1)->_setCallbackInfo(arg2,arg3); | |
9228 | ||
9229 | wxPyEndAllowThreads(__tstate); | |
9230 | if (PyErr_Occurred()) SWIG_fail; | |
9231 | } | |
9232 | Py_INCREF(Py_None); resultobj = Py_None; | |
9233 | return resultobj; | |
9234 | fail: | |
9235 | return NULL; | |
9236 | } | |
9237 | ||
9238 | ||
c370783e | 9239 | static PyObject * PyLog_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
9240 | PyObject *obj; |
9241 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9242 | SWIG_TypeClientData(SWIGTYPE_p_wxPyLog, obj); | |
9243 | Py_INCREF(obj); | |
9244 | return Py_BuildValue((char *)""); | |
9245 | } | |
c370783e | 9246 | static PyObject *_wrap_Process_Kill(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9247 | PyObject *resultobj; |
9248 | int arg1 ; | |
9249 | int arg2 = (int) wxSIGTERM ; | |
9250 | int result; | |
9251 | PyObject * obj0 = 0 ; | |
9252 | PyObject * obj1 = 0 ; | |
9253 | char *kwnames[] = { | |
9254 | (char *) "pid",(char *) "sig", NULL | |
9255 | }; | |
9256 | ||
9257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Kill",kwnames,&obj0,&obj1)) goto fail; | |
c370783e | 9258 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
9259 | if (PyErr_Occurred()) SWIG_fail; |
9260 | if (obj1) { | |
c370783e | 9261 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
9262 | if (PyErr_Occurred()) SWIG_fail; |
9263 | } | |
9264 | { | |
9265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9266 | result = (int)wxPyProcess::Kill(arg1,(wxSignal )arg2); | |
9267 | ||
9268 | wxPyEndAllowThreads(__tstate); | |
9269 | if (PyErr_Occurred()) SWIG_fail; | |
9270 | } | |
c370783e | 9271 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
9272 | return resultobj; |
9273 | fail: | |
9274 | return NULL; | |
9275 | } | |
9276 | ||
9277 | ||
c370783e | 9278 | static PyObject *_wrap_Process_Exists(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9279 | PyObject *resultobj; |
9280 | int arg1 ; | |
9281 | bool result; | |
9282 | PyObject * obj0 = 0 ; | |
9283 | char *kwnames[] = { | |
9284 | (char *) "pid", NULL | |
9285 | }; | |
9286 | ||
9287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Exists",kwnames,&obj0)) goto fail; | |
c370783e | 9288 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
9289 | if (PyErr_Occurred()) SWIG_fail; |
9290 | { | |
9291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9292 | result = (bool)wxPyProcess::Exists(arg1); | |
9293 | ||
9294 | wxPyEndAllowThreads(__tstate); | |
9295 | if (PyErr_Occurred()) SWIG_fail; | |
9296 | } | |
9297 | { | |
9298 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9299 | } | |
9300 | return resultobj; | |
9301 | fail: | |
9302 | return NULL; | |
9303 | } | |
9304 | ||
9305 | ||
c370783e | 9306 | static PyObject *_wrap_Process_Open(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9307 | PyObject *resultobj; |
9308 | wxString *arg1 = 0 ; | |
9309 | int arg2 = (int) wxEXEC_ASYNC ; | |
9310 | wxPyProcess *result; | |
b411df4a | 9311 | bool temp1 = false ; |
d55e5bfc RD |
9312 | PyObject * obj0 = 0 ; |
9313 | PyObject * obj1 = 0 ; | |
9314 | char *kwnames[] = { | |
9315 | (char *) "cmd",(char *) "flags", NULL | |
9316 | }; | |
9317 | ||
9318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Open",kwnames,&obj0,&obj1)) goto fail; | |
9319 | { | |
9320 | arg1 = wxString_in_helper(obj0); | |
9321 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 9322 | temp1 = true; |
d55e5bfc RD |
9323 | } |
9324 | if (obj1) { | |
c370783e | 9325 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
9326 | if (PyErr_Occurred()) SWIG_fail; |
9327 | } | |
9328 | { | |
9329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9330 | result = (wxPyProcess *)wxPyProcess::Open((wxString const &)*arg1,arg2); | |
9331 | ||
9332 | wxPyEndAllowThreads(__tstate); | |
9333 | if (PyErr_Occurred()) SWIG_fail; | |
9334 | } | |
9335 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 0); | |
9336 | { | |
9337 | if (temp1) | |
9338 | delete arg1; | |
9339 | } | |
9340 | return resultobj; | |
9341 | fail: | |
9342 | { | |
9343 | if (temp1) | |
9344 | delete arg1; | |
9345 | } | |
9346 | return NULL; | |
9347 | } | |
9348 | ||
9349 | ||
c370783e | 9350 | static PyObject *_wrap_new_Process(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9351 | PyObject *resultobj; |
9352 | wxEvtHandler *arg1 = (wxEvtHandler *) NULL ; | |
9353 | int arg2 = (int) -1 ; | |
9354 | wxPyProcess *result; | |
9355 | PyObject * obj0 = 0 ; | |
9356 | PyObject * obj1 = 0 ; | |
9357 | char *kwnames[] = { | |
9358 | (char *) "parent",(char *) "id", NULL | |
9359 | }; | |
9360 | ||
9361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Process",kwnames,&obj0,&obj1)) goto fail; | |
9362 | if (obj0) { | |
9363 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
9364 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9365 | } | |
9366 | if (obj1) { | |
c370783e | 9367 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
9368 | if (PyErr_Occurred()) SWIG_fail; |
9369 | } | |
9370 | { | |
9371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9372 | result = (wxPyProcess *)new wxPyProcess(arg1,arg2); | |
9373 | ||
9374 | wxPyEndAllowThreads(__tstate); | |
9375 | if (PyErr_Occurred()) SWIG_fail; | |
9376 | } | |
9377 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 1); | |
9378 | return resultobj; | |
9379 | fail: | |
9380 | return NULL; | |
9381 | } | |
9382 | ||
9383 | ||
c370783e | 9384 | static PyObject *_wrap_Process__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9385 | PyObject *resultobj; |
9386 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9387 | PyObject *arg2 = (PyObject *) 0 ; | |
9388 | PyObject *arg3 = (PyObject *) 0 ; | |
9389 | PyObject * obj0 = 0 ; | |
9390 | PyObject * obj1 = 0 ; | |
9391 | PyObject * obj2 = 0 ; | |
9392 | char *kwnames[] = { | |
9393 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
9394 | }; | |
9395 | ||
9396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9397 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9399 | arg2 = obj1; | |
9400 | arg3 = obj2; | |
9401 | { | |
9402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9403 | (arg1)->_setCallbackInfo(arg2,arg3); | |
9404 | ||
9405 | wxPyEndAllowThreads(__tstate); | |
9406 | if (PyErr_Occurred()) SWIG_fail; | |
9407 | } | |
9408 | Py_INCREF(Py_None); resultobj = Py_None; | |
9409 | return resultobj; | |
9410 | fail: | |
9411 | return NULL; | |
9412 | } | |
9413 | ||
9414 | ||
c370783e | 9415 | static PyObject *_wrap_Process_base_OnTerminate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9416 | PyObject *resultobj; |
9417 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9418 | int arg2 ; | |
9419 | int arg3 ; | |
9420 | PyObject * obj0 = 0 ; | |
9421 | PyObject * obj1 = 0 ; | |
9422 | PyObject * obj2 = 0 ; | |
9423 | char *kwnames[] = { | |
9424 | (char *) "self",(char *) "pid",(char *) "status", NULL | |
9425 | }; | |
9426 | ||
9427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process_base_OnTerminate",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9428 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9429 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 9430 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 9431 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 9432 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9433 | if (PyErr_Occurred()) SWIG_fail; |
9434 | { | |
9435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9436 | (arg1)->base_OnTerminate(arg2,arg3); | |
9437 | ||
9438 | wxPyEndAllowThreads(__tstate); | |
9439 | if (PyErr_Occurred()) SWIG_fail; | |
9440 | } | |
9441 | Py_INCREF(Py_None); resultobj = Py_None; | |
9442 | return resultobj; | |
9443 | fail: | |
9444 | return NULL; | |
9445 | } | |
9446 | ||
9447 | ||
c370783e | 9448 | static PyObject *_wrap_Process_Redirect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9449 | PyObject *resultobj; |
9450 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9451 | PyObject * obj0 = 0 ; | |
9452 | char *kwnames[] = { | |
9453 | (char *) "self", NULL | |
9454 | }; | |
9455 | ||
9456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Redirect",kwnames,&obj0)) goto fail; | |
9457 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9458 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9459 | { | |
9460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9461 | (arg1)->Redirect(); | |
9462 | ||
9463 | wxPyEndAllowThreads(__tstate); | |
9464 | if (PyErr_Occurred()) SWIG_fail; | |
9465 | } | |
9466 | Py_INCREF(Py_None); resultobj = Py_None; | |
9467 | return resultobj; | |
9468 | fail: | |
9469 | return NULL; | |
9470 | } | |
9471 | ||
9472 | ||
c370783e | 9473 | static PyObject *_wrap_Process_IsRedirected(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9474 | PyObject *resultobj; |
9475 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9476 | bool result; | |
9477 | PyObject * obj0 = 0 ; | |
9478 | char *kwnames[] = { | |
9479 | (char *) "self", NULL | |
9480 | }; | |
9481 | ||
9482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsRedirected",kwnames,&obj0)) goto fail; | |
9483 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9484 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9485 | { | |
9486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9487 | result = (bool)(arg1)->IsRedirected(); | |
9488 | ||
9489 | wxPyEndAllowThreads(__tstate); | |
9490 | if (PyErr_Occurred()) SWIG_fail; | |
9491 | } | |
9492 | { | |
9493 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9494 | } | |
9495 | return resultobj; | |
9496 | fail: | |
9497 | return NULL; | |
9498 | } | |
9499 | ||
9500 | ||
c370783e | 9501 | static PyObject *_wrap_Process_Detach(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9502 | PyObject *resultobj; |
9503 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9504 | PyObject * obj0 = 0 ; | |
9505 | char *kwnames[] = { | |
9506 | (char *) "self", NULL | |
9507 | }; | |
9508 | ||
9509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Detach",kwnames,&obj0)) goto fail; | |
9510 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9511 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9512 | { | |
9513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9514 | (arg1)->Detach(); | |
9515 | ||
9516 | wxPyEndAllowThreads(__tstate); | |
9517 | if (PyErr_Occurred()) SWIG_fail; | |
9518 | } | |
9519 | Py_INCREF(Py_None); resultobj = Py_None; | |
9520 | return resultobj; | |
9521 | fail: | |
9522 | return NULL; | |
9523 | } | |
9524 | ||
9525 | ||
c370783e | 9526 | static PyObject *_wrap_Process_GetInputStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9527 | PyObject *resultobj; |
9528 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9529 | wxInputStream *result; | |
9530 | PyObject * obj0 = 0 ; | |
9531 | char *kwnames[] = { | |
9532 | (char *) "self", NULL | |
9533 | }; | |
9534 | ||
9535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetInputStream",kwnames,&obj0)) goto fail; | |
9536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9538 | { | |
9539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9540 | result = (wxInputStream *)(arg1)->GetInputStream(); | |
9541 | ||
9542 | wxPyEndAllowThreads(__tstate); | |
9543 | if (PyErr_Occurred()) SWIG_fail; | |
9544 | } | |
9545 | { | |
9546 | wxPyInputStream * _ptr = NULL; | |
9547 | ||
9548 | if (result) { | |
9549 | _ptr = new wxPyInputStream(result); | |
9550 | } | |
b411df4a | 9551 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), true); |
d55e5bfc RD |
9552 | } |
9553 | return resultobj; | |
9554 | fail: | |
9555 | return NULL; | |
9556 | } | |
9557 | ||
9558 | ||
c370783e | 9559 | static PyObject *_wrap_Process_GetErrorStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9560 | PyObject *resultobj; |
9561 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9562 | wxInputStream *result; | |
9563 | PyObject * obj0 = 0 ; | |
9564 | char *kwnames[] = { | |
9565 | (char *) "self", NULL | |
9566 | }; | |
9567 | ||
9568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetErrorStream",kwnames,&obj0)) goto fail; | |
9569 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9570 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9571 | { | |
9572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9573 | result = (wxInputStream *)(arg1)->GetErrorStream(); | |
9574 | ||
9575 | wxPyEndAllowThreads(__tstate); | |
9576 | if (PyErr_Occurred()) SWIG_fail; | |
9577 | } | |
9578 | { | |
9579 | wxPyInputStream * _ptr = NULL; | |
9580 | ||
9581 | if (result) { | |
9582 | _ptr = new wxPyInputStream(result); | |
9583 | } | |
b411df4a | 9584 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), true); |
d55e5bfc RD |
9585 | } |
9586 | return resultobj; | |
9587 | fail: | |
9588 | return NULL; | |
9589 | } | |
9590 | ||
9591 | ||
c370783e | 9592 | static PyObject *_wrap_Process_GetOutputStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9593 | PyObject *resultobj; |
9594 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9595 | wxOutputStream *result; | |
9596 | PyObject * obj0 = 0 ; | |
9597 | char *kwnames[] = { | |
9598 | (char *) "self", NULL | |
9599 | }; | |
9600 | ||
9601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetOutputStream",kwnames,&obj0)) goto fail; | |
9602 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9603 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9604 | { | |
9605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9606 | result = (wxOutputStream *)(arg1)->GetOutputStream(); | |
9607 | ||
9608 | wxPyEndAllowThreads(__tstate); | |
9609 | if (PyErr_Occurred()) SWIG_fail; | |
9610 | } | |
9611 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxOutputStream, 0); | |
9612 | return resultobj; | |
9613 | fail: | |
9614 | return NULL; | |
9615 | } | |
9616 | ||
9617 | ||
c370783e | 9618 | static PyObject *_wrap_Process_CloseOutput(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9619 | PyObject *resultobj; |
9620 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9621 | PyObject * obj0 = 0 ; | |
9622 | char *kwnames[] = { | |
9623 | (char *) "self", NULL | |
9624 | }; | |
9625 | ||
9626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_CloseOutput",kwnames,&obj0)) goto fail; | |
9627 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9628 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9629 | { | |
9630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9631 | (arg1)->CloseOutput(); | |
9632 | ||
9633 | wxPyEndAllowThreads(__tstate); | |
9634 | if (PyErr_Occurred()) SWIG_fail; | |
9635 | } | |
9636 | Py_INCREF(Py_None); resultobj = Py_None; | |
9637 | return resultobj; | |
9638 | fail: | |
9639 | return NULL; | |
9640 | } | |
9641 | ||
9642 | ||
c370783e | 9643 | static PyObject *_wrap_Process_IsInputOpened(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9644 | PyObject *resultobj; |
9645 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9646 | bool result; | |
9647 | PyObject * obj0 = 0 ; | |
9648 | char *kwnames[] = { | |
9649 | (char *) "self", NULL | |
9650 | }; | |
9651 | ||
9652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputOpened",kwnames,&obj0)) goto fail; | |
9653 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9654 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9655 | { | |
9656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9657 | result = (bool)((wxPyProcess const *)arg1)->IsInputOpened(); | |
9658 | ||
9659 | wxPyEndAllowThreads(__tstate); | |
9660 | if (PyErr_Occurred()) SWIG_fail; | |
9661 | } | |
9662 | { | |
9663 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9664 | } | |
9665 | return resultobj; | |
9666 | fail: | |
9667 | return NULL; | |
9668 | } | |
9669 | ||
9670 | ||
c370783e | 9671 | static PyObject *_wrap_Process_IsInputAvailable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9672 | PyObject *resultobj; |
9673 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9674 | bool result; | |
9675 | PyObject * obj0 = 0 ; | |
9676 | char *kwnames[] = { | |
9677 | (char *) "self", NULL | |
9678 | }; | |
9679 | ||
9680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputAvailable",kwnames,&obj0)) goto fail; | |
9681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9683 | { | |
9684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9685 | result = (bool)((wxPyProcess const *)arg1)->IsInputAvailable(); | |
9686 | ||
9687 | wxPyEndAllowThreads(__tstate); | |
9688 | if (PyErr_Occurred()) SWIG_fail; | |
9689 | } | |
9690 | { | |
9691 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9692 | } | |
9693 | return resultobj; | |
9694 | fail: | |
9695 | return NULL; | |
9696 | } | |
9697 | ||
9698 | ||
c370783e | 9699 | static PyObject *_wrap_Process_IsErrorAvailable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9700 | PyObject *resultobj; |
9701 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9702 | bool result; | |
9703 | PyObject * obj0 = 0 ; | |
9704 | char *kwnames[] = { | |
9705 | (char *) "self", NULL | |
9706 | }; | |
9707 | ||
9708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsErrorAvailable",kwnames,&obj0)) goto fail; | |
9709 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9710 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9711 | { | |
9712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9713 | result = (bool)((wxPyProcess const *)arg1)->IsErrorAvailable(); | |
9714 | ||
9715 | wxPyEndAllowThreads(__tstate); | |
9716 | if (PyErr_Occurred()) SWIG_fail; | |
9717 | } | |
9718 | { | |
9719 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9720 | } | |
9721 | return resultobj; | |
9722 | fail: | |
9723 | return NULL; | |
9724 | } | |
9725 | ||
9726 | ||
c370783e | 9727 | static PyObject * Process_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
9728 | PyObject *obj; |
9729 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9730 | SWIG_TypeClientData(SWIGTYPE_p_wxPyProcess, obj); | |
9731 | Py_INCREF(obj); | |
9732 | return Py_BuildValue((char *)""); | |
9733 | } | |
c370783e | 9734 | static PyObject *_wrap_new_ProcessEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9735 | PyObject *resultobj; |
9736 | int arg1 = (int) 0 ; | |
9737 | int arg2 = (int) 0 ; | |
9738 | int arg3 = (int) 0 ; | |
9739 | wxProcessEvent *result; | |
9740 | PyObject * obj0 = 0 ; | |
9741 | PyObject * obj1 = 0 ; | |
9742 | PyObject * obj2 = 0 ; | |
9743 | char *kwnames[] = { | |
9744 | (char *) "id",(char *) "pid",(char *) "exitcode", NULL | |
9745 | }; | |
9746 | ||
9747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ProcessEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9748 | if (obj0) { | |
c370783e | 9749 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
9750 | if (PyErr_Occurred()) SWIG_fail; |
9751 | } | |
9752 | if (obj1) { | |
c370783e | 9753 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
9754 | if (PyErr_Occurred()) SWIG_fail; |
9755 | } | |
9756 | if (obj2) { | |
c370783e | 9757 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9758 | if (PyErr_Occurred()) SWIG_fail; |
9759 | } | |
9760 | { | |
9761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9762 | result = (wxProcessEvent *)new wxProcessEvent(arg1,arg2,arg3); | |
9763 | ||
9764 | wxPyEndAllowThreads(__tstate); | |
9765 | if (PyErr_Occurred()) SWIG_fail; | |
9766 | } | |
9767 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxProcessEvent, 1); | |
9768 | return resultobj; | |
9769 | fail: | |
9770 | return NULL; | |
9771 | } | |
9772 | ||
9773 | ||
c370783e | 9774 | static PyObject *_wrap_ProcessEvent_GetPid(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9775 | PyObject *resultobj; |
9776 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9777 | int result; | |
9778 | PyObject * obj0 = 0 ; | |
9779 | char *kwnames[] = { | |
9780 | (char *) "self", NULL | |
9781 | }; | |
9782 | ||
9783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetPid",kwnames,&obj0)) goto fail; | |
9784 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, | |
9785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9786 | { | |
9787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9788 | result = (int)(arg1)->GetPid(); | |
9789 | ||
9790 | wxPyEndAllowThreads(__tstate); | |
9791 | if (PyErr_Occurred()) SWIG_fail; | |
9792 | } | |
c370783e | 9793 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
9794 | return resultobj; |
9795 | fail: | |
9796 | return NULL; | |
9797 | } | |
9798 | ||
9799 | ||
c370783e | 9800 | static PyObject *_wrap_ProcessEvent_GetExitCode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9801 | PyObject *resultobj; |
9802 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9803 | int result; | |
9804 | PyObject * obj0 = 0 ; | |
9805 | char *kwnames[] = { | |
9806 | (char *) "self", NULL | |
9807 | }; | |
9808 | ||
9809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetExitCode",kwnames,&obj0)) goto fail; | |
9810 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, | |
9811 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9812 | { | |
9813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9814 | result = (int)(arg1)->GetExitCode(); | |
9815 | ||
9816 | wxPyEndAllowThreads(__tstate); | |
9817 | if (PyErr_Occurred()) SWIG_fail; | |
9818 | } | |
c370783e | 9819 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
9820 | return resultobj; |
9821 | fail: | |
9822 | return NULL; | |
9823 | } | |
9824 | ||
9825 | ||
c370783e | 9826 | static PyObject *_wrap_ProcessEvent_m_pid_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9827 | PyObject *resultobj; |
9828 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9829 | int arg2 ; | |
9830 | PyObject * obj0 = 0 ; | |
9831 | PyObject * obj1 = 0 ; | |
9832 | char *kwnames[] = { | |
9833 | (char *) "self",(char *) "m_pid", NULL | |
9834 | }; | |
9835 | ||
9836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_pid_set",kwnames,&obj0,&obj1)) goto fail; | |
9837 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, | |
9838 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 9839 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
9840 | if (PyErr_Occurred()) SWIG_fail; |
9841 | if (arg1) (arg1)->m_pid = arg2; | |
9842 | ||
9843 | Py_INCREF(Py_None); resultobj = Py_None; | |
9844 | return resultobj; | |
9845 | fail: | |
9846 | return NULL; | |
9847 | } | |
9848 | ||
9849 | ||
c370783e | 9850 | static PyObject *_wrap_ProcessEvent_m_pid_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9851 | PyObject *resultobj; |
9852 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9853 | int result; | |
9854 | PyObject * obj0 = 0 ; | |
9855 | char *kwnames[] = { | |
9856 | (char *) "self", NULL | |
9857 | }; | |
9858 | ||
9859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_pid_get",kwnames,&obj0)) goto fail; | |
9860 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, | |
9861 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9862 | result = (int) ((arg1)->m_pid); | |
9863 | ||
c370783e | 9864 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
9865 | return resultobj; |
9866 | fail: | |
9867 | return NULL; | |
9868 | } | |
9869 | ||
9870 | ||
c370783e | 9871 | static PyObject *_wrap_ProcessEvent_m_exitcode_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9872 | PyObject *resultobj; |
9873 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9874 | int arg2 ; | |
9875 | PyObject * obj0 = 0 ; | |
9876 | PyObject * obj1 = 0 ; | |
9877 | char *kwnames[] = { | |
9878 | (char *) "self",(char *) "m_exitcode", NULL | |
9879 | }; | |
9880 | ||
9881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_exitcode_set",kwnames,&obj0,&obj1)) goto fail; | |
9882 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, | |
9883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 9884 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
9885 | if (PyErr_Occurred()) SWIG_fail; |
9886 | if (arg1) (arg1)->m_exitcode = arg2; | |
9887 | ||
9888 | Py_INCREF(Py_None); resultobj = Py_None; | |
9889 | return resultobj; | |
9890 | fail: | |
9891 | return NULL; | |
9892 | } | |
9893 | ||
9894 | ||
c370783e | 9895 | static PyObject *_wrap_ProcessEvent_m_exitcode_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9896 | PyObject *resultobj; |
9897 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9898 | int result; | |
9899 | PyObject * obj0 = 0 ; | |
9900 | char *kwnames[] = { | |
9901 | (char *) "self", NULL | |
9902 | }; | |
9903 | ||
9904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_exitcode_get",kwnames,&obj0)) goto fail; | |
9905 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, | |
9906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9907 | result = (int) ((arg1)->m_exitcode); | |
9908 | ||
c370783e | 9909 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
9910 | return resultobj; |
9911 | fail: | |
9912 | return NULL; | |
9913 | } | |
9914 | ||
9915 | ||
c370783e | 9916 | static PyObject * ProcessEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
9917 | PyObject *obj; |
9918 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9919 | SWIG_TypeClientData(SWIGTYPE_p_wxProcessEvent, obj); | |
9920 | Py_INCREF(obj); | |
9921 | return Py_BuildValue((char *)""); | |
9922 | } | |
c370783e | 9923 | static PyObject *_wrap_Execute(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9924 | PyObject *resultobj; |
9925 | wxString *arg1 = 0 ; | |
9926 | int arg2 = (int) wxEXEC_ASYNC ; | |
9927 | wxPyProcess *arg3 = (wxPyProcess *) NULL ; | |
9928 | long result; | |
b411df4a | 9929 | bool temp1 = false ; |
d55e5bfc RD |
9930 | PyObject * obj0 = 0 ; |
9931 | PyObject * obj1 = 0 ; | |
9932 | PyObject * obj2 = 0 ; | |
9933 | char *kwnames[] = { | |
9934 | (char *) "command",(char *) "flags",(char *) "process", NULL | |
9935 | }; | |
9936 | ||
9937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Execute",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9938 | { | |
9939 | arg1 = wxString_in_helper(obj0); | |
9940 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 9941 | temp1 = true; |
d55e5bfc RD |
9942 | } |
9943 | if (obj1) { | |
c370783e | 9944 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
9945 | if (PyErr_Occurred()) SWIG_fail; |
9946 | } | |
9947 | if (obj2) { | |
9948 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyProcess, | |
9949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9950 | } | |
9951 | { | |
0439c23b | 9952 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
9953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9954 | result = (long)wxExecute((wxString const &)*arg1,arg2,arg3); | |
9955 | ||
9956 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9957 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 9958 | } |
c370783e | 9959 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
9960 | { |
9961 | if (temp1) | |
9962 | delete arg1; | |
9963 | } | |
9964 | return resultobj; | |
9965 | fail: | |
9966 | { | |
9967 | if (temp1) | |
9968 | delete arg1; | |
9969 | } | |
9970 | return NULL; | |
9971 | } | |
9972 | ||
9973 | ||
c370783e | 9974 | static PyObject *_wrap_new_Joystick(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9975 | PyObject *resultobj; |
9976 | int arg1 = (int) wxJOYSTICK1 ; | |
9977 | wxJoystick *result; | |
9978 | PyObject * obj0 = 0 ; | |
9979 | char *kwnames[] = { | |
9980 | (char *) "joystick", NULL | |
9981 | }; | |
9982 | ||
9983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Joystick",kwnames,&obj0)) goto fail; | |
9984 | if (obj0) { | |
c370783e | 9985 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
9986 | if (PyErr_Occurred()) SWIG_fail; |
9987 | } | |
9988 | { | |
0439c23b | 9989 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
9990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9991 | result = (wxJoystick *)new wxJoystick(arg1); | |
9992 | ||
9993 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9994 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
9995 | } |
9996 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystick, 1); | |
9997 | return resultobj; | |
9998 | fail: | |
9999 | return NULL; | |
10000 | } | |
10001 | ||
10002 | ||
c370783e | 10003 | static PyObject *_wrap_delete_Joystick(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10004 | PyObject *resultobj; |
10005 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10006 | PyObject * obj0 = 0 ; | |
10007 | char *kwnames[] = { | |
10008 | (char *) "self", NULL | |
10009 | }; | |
10010 | ||
10011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Joystick",kwnames,&obj0)) goto fail; | |
10012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10014 | { | |
10015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10016 | delete arg1; | |
10017 | ||
10018 | wxPyEndAllowThreads(__tstate); | |
10019 | if (PyErr_Occurred()) SWIG_fail; | |
10020 | } | |
10021 | Py_INCREF(Py_None); resultobj = Py_None; | |
10022 | return resultobj; | |
10023 | fail: | |
10024 | return NULL; | |
10025 | } | |
10026 | ||
10027 | ||
c370783e | 10028 | static PyObject *_wrap_Joystick_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10029 | PyObject *resultobj; |
10030 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10031 | wxPoint result; | |
10032 | PyObject * obj0 = 0 ; | |
10033 | char *kwnames[] = { | |
10034 | (char *) "self", NULL | |
10035 | }; | |
10036 | ||
10037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPosition",kwnames,&obj0)) goto fail; | |
10038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10040 | { | |
10041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10042 | result = (arg1)->GetPosition(); | |
10043 | ||
10044 | wxPyEndAllowThreads(__tstate); | |
10045 | if (PyErr_Occurred()) SWIG_fail; | |
10046 | } | |
10047 | { | |
10048 | wxPoint * resultptr; | |
10049 | resultptr = new wxPoint((wxPoint &) result); | |
10050 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
10051 | } | |
10052 | return resultobj; | |
10053 | fail: | |
10054 | return NULL; | |
10055 | } | |
10056 | ||
10057 | ||
c370783e | 10058 | static PyObject *_wrap_Joystick_GetZPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10059 | PyObject *resultobj; |
10060 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10061 | int result; | |
10062 | PyObject * obj0 = 0 ; | |
10063 | char *kwnames[] = { | |
10064 | (char *) "self", NULL | |
10065 | }; | |
10066 | ||
10067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZPosition",kwnames,&obj0)) goto fail; | |
10068 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10069 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10070 | { | |
10071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10072 | result = (int)(arg1)->GetZPosition(); | |
10073 | ||
10074 | wxPyEndAllowThreads(__tstate); | |
10075 | if (PyErr_Occurred()) SWIG_fail; | |
10076 | } | |
c370783e | 10077 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10078 | return resultobj; |
10079 | fail: | |
10080 | return NULL; | |
10081 | } | |
10082 | ||
10083 | ||
c370783e | 10084 | static PyObject *_wrap_Joystick_GetButtonState(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10085 | PyObject *resultobj; |
10086 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10087 | int result; | |
10088 | PyObject * obj0 = 0 ; | |
10089 | char *kwnames[] = { | |
10090 | (char *) "self", NULL | |
10091 | }; | |
10092 | ||
10093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetButtonState",kwnames,&obj0)) goto fail; | |
10094 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10095 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10096 | { | |
10097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10098 | result = (int)(arg1)->GetButtonState(); | |
10099 | ||
10100 | wxPyEndAllowThreads(__tstate); | |
10101 | if (PyErr_Occurred()) SWIG_fail; | |
10102 | } | |
c370783e | 10103 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10104 | return resultobj; |
10105 | fail: | |
10106 | return NULL; | |
10107 | } | |
10108 | ||
10109 | ||
c370783e | 10110 | static PyObject *_wrap_Joystick_GetPOVPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10111 | PyObject *resultobj; |
10112 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10113 | int result; | |
10114 | PyObject * obj0 = 0 ; | |
10115 | char *kwnames[] = { | |
10116 | (char *) "self", NULL | |
10117 | }; | |
10118 | ||
10119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVPosition",kwnames,&obj0)) goto fail; | |
10120 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10121 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10122 | { | |
10123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10124 | result = (int)(arg1)->GetPOVPosition(); | |
10125 | ||
10126 | wxPyEndAllowThreads(__tstate); | |
10127 | if (PyErr_Occurred()) SWIG_fail; | |
10128 | } | |
c370783e | 10129 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10130 | return resultobj; |
10131 | fail: | |
10132 | return NULL; | |
10133 | } | |
10134 | ||
10135 | ||
c370783e | 10136 | static PyObject *_wrap_Joystick_GetPOVCTSPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10137 | PyObject *resultobj; |
10138 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10139 | int result; | |
10140 | PyObject * obj0 = 0 ; | |
10141 | char *kwnames[] = { | |
10142 | (char *) "self", NULL | |
10143 | }; | |
10144 | ||
10145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVCTSPosition",kwnames,&obj0)) goto fail; | |
10146 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10147 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10148 | { | |
10149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10150 | result = (int)(arg1)->GetPOVCTSPosition(); | |
10151 | ||
10152 | wxPyEndAllowThreads(__tstate); | |
10153 | if (PyErr_Occurred()) SWIG_fail; | |
10154 | } | |
c370783e | 10155 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10156 | return resultobj; |
10157 | fail: | |
10158 | return NULL; | |
10159 | } | |
10160 | ||
10161 | ||
c370783e | 10162 | static PyObject *_wrap_Joystick_GetRudderPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10163 | PyObject *resultobj; |
10164 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10165 | int result; | |
10166 | PyObject * obj0 = 0 ; | |
10167 | char *kwnames[] = { | |
10168 | (char *) "self", NULL | |
10169 | }; | |
10170 | ||
10171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderPosition",kwnames,&obj0)) goto fail; | |
10172 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10173 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10174 | { | |
10175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10176 | result = (int)(arg1)->GetRudderPosition(); | |
10177 | ||
10178 | wxPyEndAllowThreads(__tstate); | |
10179 | if (PyErr_Occurred()) SWIG_fail; | |
10180 | } | |
c370783e | 10181 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10182 | return resultobj; |
10183 | fail: | |
10184 | return NULL; | |
10185 | } | |
10186 | ||
10187 | ||
c370783e | 10188 | static PyObject *_wrap_Joystick_GetUPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10189 | PyObject *resultobj; |
10190 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10191 | int result; | |
10192 | PyObject * obj0 = 0 ; | |
10193 | char *kwnames[] = { | |
10194 | (char *) "self", NULL | |
10195 | }; | |
10196 | ||
10197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUPosition",kwnames,&obj0)) goto fail; | |
10198 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10199 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10200 | { | |
10201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10202 | result = (int)(arg1)->GetUPosition(); | |
10203 | ||
10204 | wxPyEndAllowThreads(__tstate); | |
10205 | if (PyErr_Occurred()) SWIG_fail; | |
10206 | } | |
c370783e | 10207 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10208 | return resultobj; |
10209 | fail: | |
10210 | return NULL; | |
10211 | } | |
10212 | ||
10213 | ||
c370783e | 10214 | static PyObject *_wrap_Joystick_GetVPosition(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_GetVPosition",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)->GetVPosition(); | |
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_GetMovementThreshold(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_GetMovementThreshold",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)->GetMovementThreshold(); | |
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_SetMovementThreshold(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10267 | PyObject *resultobj; |
10268 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10269 | int arg2 ; | |
10270 | PyObject * obj0 = 0 ; | |
10271 | PyObject * obj1 = 0 ; | |
10272 | char *kwnames[] = { | |
10273 | (char *) "self",(char *) "threshold", NULL | |
10274 | }; | |
10275 | ||
10276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Joystick_SetMovementThreshold",kwnames,&obj0,&obj1)) goto fail; | |
10277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 10279 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
10280 | if (PyErr_Occurred()) SWIG_fail; |
10281 | { | |
10282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10283 | (arg1)->SetMovementThreshold(arg2); | |
10284 | ||
10285 | wxPyEndAllowThreads(__tstate); | |
10286 | if (PyErr_Occurred()) SWIG_fail; | |
10287 | } | |
10288 | Py_INCREF(Py_None); resultobj = Py_None; | |
10289 | return resultobj; | |
10290 | fail: | |
10291 | return NULL; | |
10292 | } | |
10293 | ||
10294 | ||
c370783e | 10295 | static PyObject *_wrap_Joystick_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10296 | PyObject *resultobj; |
10297 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10298 | bool result; | |
10299 | PyObject * obj0 = 0 ; | |
10300 | char *kwnames[] = { | |
10301 | (char *) "self", NULL | |
10302 | }; | |
10303 | ||
10304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_IsOk",kwnames,&obj0)) goto fail; | |
10305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10307 | { | |
10308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10309 | result = (bool)(arg1)->IsOk(); | |
10310 | ||
10311 | wxPyEndAllowThreads(__tstate); | |
10312 | if (PyErr_Occurred()) SWIG_fail; | |
10313 | } | |
10314 | { | |
10315 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10316 | } | |
10317 | return resultobj; | |
10318 | fail: | |
10319 | return NULL; | |
10320 | } | |
10321 | ||
10322 | ||
c370783e | 10323 | static PyObject *_wrap_Joystick_GetNumberJoysticks(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10324 | PyObject *resultobj; |
10325 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10326 | int result; | |
10327 | PyObject * obj0 = 0 ; | |
10328 | char *kwnames[] = { | |
10329 | (char *) "self", NULL | |
10330 | }; | |
10331 | ||
10332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberJoysticks",kwnames,&obj0)) goto fail; | |
10333 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10334 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10335 | { | |
10336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10337 | result = (int)(arg1)->GetNumberJoysticks(); | |
10338 | ||
10339 | wxPyEndAllowThreads(__tstate); | |
10340 | if (PyErr_Occurred()) SWIG_fail; | |
10341 | } | |
c370783e | 10342 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10343 | return resultobj; |
10344 | fail: | |
10345 | return NULL; | |
10346 | } | |
10347 | ||
10348 | ||
c370783e | 10349 | static PyObject *_wrap_Joystick_GetManufacturerId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10350 | PyObject *resultobj; |
10351 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10352 | int result; | |
10353 | PyObject * obj0 = 0 ; | |
10354 | char *kwnames[] = { | |
10355 | (char *) "self", NULL | |
10356 | }; | |
10357 | ||
10358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetManufacturerId",kwnames,&obj0)) goto fail; | |
10359 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10361 | { | |
10362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10363 | result = (int)(arg1)->GetManufacturerId(); | |
10364 | ||
10365 | wxPyEndAllowThreads(__tstate); | |
10366 | if (PyErr_Occurred()) SWIG_fail; | |
10367 | } | |
c370783e | 10368 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10369 | return resultobj; |
10370 | fail: | |
10371 | return NULL; | |
10372 | } | |
10373 | ||
10374 | ||
c370783e | 10375 | static PyObject *_wrap_Joystick_GetProductId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10376 | PyObject *resultobj; |
10377 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10378 | int result; | |
10379 | PyObject * obj0 = 0 ; | |
10380 | char *kwnames[] = { | |
10381 | (char *) "self", NULL | |
10382 | }; | |
10383 | ||
10384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductId",kwnames,&obj0)) goto fail; | |
10385 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10386 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10387 | { | |
10388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10389 | result = (int)(arg1)->GetProductId(); | |
10390 | ||
10391 | wxPyEndAllowThreads(__tstate); | |
10392 | if (PyErr_Occurred()) SWIG_fail; | |
10393 | } | |
c370783e | 10394 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10395 | return resultobj; |
10396 | fail: | |
10397 | return NULL; | |
10398 | } | |
10399 | ||
10400 | ||
c370783e | 10401 | static PyObject *_wrap_Joystick_GetProductName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10402 | PyObject *resultobj; |
10403 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10404 | wxString result; | |
10405 | PyObject * obj0 = 0 ; | |
10406 | char *kwnames[] = { | |
10407 | (char *) "self", NULL | |
10408 | }; | |
10409 | ||
10410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductName",kwnames,&obj0)) goto fail; | |
10411 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10412 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10413 | { | |
10414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10415 | result = (arg1)->GetProductName(); | |
10416 | ||
10417 | wxPyEndAllowThreads(__tstate); | |
10418 | if (PyErr_Occurred()) SWIG_fail; | |
10419 | } | |
10420 | { | |
10421 | #if wxUSE_UNICODE | |
10422 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10423 | #else | |
10424 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10425 | #endif | |
10426 | } | |
10427 | return resultobj; | |
10428 | fail: | |
10429 | return NULL; | |
10430 | } | |
10431 | ||
10432 | ||
c370783e | 10433 | static PyObject *_wrap_Joystick_GetXMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10434 | PyObject *resultobj; |
10435 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10436 | int result; | |
10437 | PyObject * obj0 = 0 ; | |
10438 | char *kwnames[] = { | |
10439 | (char *) "self", NULL | |
10440 | }; | |
10441 | ||
10442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMin",kwnames,&obj0)) goto fail; | |
10443 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10444 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10445 | { | |
10446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10447 | result = (int)(arg1)->GetXMin(); | |
10448 | ||
10449 | wxPyEndAllowThreads(__tstate); | |
10450 | if (PyErr_Occurred()) SWIG_fail; | |
10451 | } | |
c370783e | 10452 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10453 | return resultobj; |
10454 | fail: | |
10455 | return NULL; | |
10456 | } | |
10457 | ||
10458 | ||
c370783e | 10459 | static PyObject *_wrap_Joystick_GetYMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10460 | PyObject *resultobj; |
10461 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10462 | int result; | |
10463 | PyObject * obj0 = 0 ; | |
10464 | char *kwnames[] = { | |
10465 | (char *) "self", NULL | |
10466 | }; | |
10467 | ||
10468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMin",kwnames,&obj0)) goto fail; | |
10469 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10470 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10471 | { | |
10472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10473 | result = (int)(arg1)->GetYMin(); | |
10474 | ||
10475 | wxPyEndAllowThreads(__tstate); | |
10476 | if (PyErr_Occurred()) SWIG_fail; | |
10477 | } | |
c370783e | 10478 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10479 | return resultobj; |
10480 | fail: | |
10481 | return NULL; | |
10482 | } | |
10483 | ||
10484 | ||
c370783e | 10485 | static PyObject *_wrap_Joystick_GetZMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10486 | PyObject *resultobj; |
10487 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10488 | int result; | |
10489 | PyObject * obj0 = 0 ; | |
10490 | char *kwnames[] = { | |
10491 | (char *) "self", NULL | |
10492 | }; | |
10493 | ||
10494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMin",kwnames,&obj0)) goto fail; | |
10495 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10496 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10497 | { | |
10498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10499 | result = (int)(arg1)->GetZMin(); | |
10500 | ||
10501 | wxPyEndAllowThreads(__tstate); | |
10502 | if (PyErr_Occurred()) SWIG_fail; | |
10503 | } | |
c370783e | 10504 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10505 | return resultobj; |
10506 | fail: | |
10507 | return NULL; | |
10508 | } | |
10509 | ||
10510 | ||
c370783e | 10511 | static PyObject *_wrap_Joystick_GetXMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10512 | PyObject *resultobj; |
10513 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10514 | int result; | |
10515 | PyObject * obj0 = 0 ; | |
10516 | char *kwnames[] = { | |
10517 | (char *) "self", NULL | |
10518 | }; | |
10519 | ||
10520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMax",kwnames,&obj0)) goto fail; | |
10521 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10522 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10523 | { | |
10524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10525 | result = (int)(arg1)->GetXMax(); | |
10526 | ||
10527 | wxPyEndAllowThreads(__tstate); | |
10528 | if (PyErr_Occurred()) SWIG_fail; | |
10529 | } | |
c370783e | 10530 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10531 | return resultobj; |
10532 | fail: | |
10533 | return NULL; | |
10534 | } | |
10535 | ||
10536 | ||
c370783e | 10537 | static PyObject *_wrap_Joystick_GetYMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10538 | PyObject *resultobj; |
10539 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10540 | int result; | |
10541 | PyObject * obj0 = 0 ; | |
10542 | char *kwnames[] = { | |
10543 | (char *) "self", NULL | |
10544 | }; | |
10545 | ||
10546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMax",kwnames,&obj0)) goto fail; | |
10547 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10548 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10549 | { | |
10550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10551 | result = (int)(arg1)->GetYMax(); | |
10552 | ||
10553 | wxPyEndAllowThreads(__tstate); | |
10554 | if (PyErr_Occurred()) SWIG_fail; | |
10555 | } | |
c370783e | 10556 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10557 | return resultobj; |
10558 | fail: | |
10559 | return NULL; | |
10560 | } | |
10561 | ||
10562 | ||
c370783e | 10563 | static PyObject *_wrap_Joystick_GetZMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10564 | PyObject *resultobj; |
10565 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10566 | int result; | |
10567 | PyObject * obj0 = 0 ; | |
10568 | char *kwnames[] = { | |
10569 | (char *) "self", NULL | |
10570 | }; | |
10571 | ||
10572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMax",kwnames,&obj0)) goto fail; | |
10573 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10574 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10575 | { | |
10576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10577 | result = (int)(arg1)->GetZMax(); | |
10578 | ||
10579 | wxPyEndAllowThreads(__tstate); | |
10580 | if (PyErr_Occurred()) SWIG_fail; | |
10581 | } | |
c370783e | 10582 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10583 | return resultobj; |
10584 | fail: | |
10585 | return NULL; | |
10586 | } | |
10587 | ||
10588 | ||
c370783e | 10589 | static PyObject *_wrap_Joystick_GetNumberButtons(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_GetNumberButtons",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)->GetNumberButtons(); | |
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_GetNumberAxes(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_GetNumberAxes",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)->GetNumberAxes(); | |
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_GetMaxButtons(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_GetMaxButtons",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)->GetMaxButtons(); | |
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_GetMaxAxes(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_GetMaxAxes",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)->GetMaxAxes(); | |
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_GetPollingMin(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_GetPollingMin",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)->GetPollingMin(); | |
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_GetPollingMax(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_GetPollingMax",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)->GetPollingMax(); | |
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_GetRudderMin(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_GetRudderMin",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)->GetRudderMin(); | |
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_GetRudderMax(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_GetRudderMax",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)->GetRudderMax(); | |
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_GetUMin(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_GetUMin",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)->GetUMin(); | |
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_GetUMax(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_GetUMax",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)->GetUMax(); | |
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_GetVMin(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_GetVMin",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)->GetVMin(); | |
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_GetVMax(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_GetVMax",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)->GetVMax(); | |
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_HasRudder(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10902 | PyObject *resultobj; |
10903 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10904 | bool result; | |
10905 | PyObject * obj0 = 0 ; | |
10906 | char *kwnames[] = { | |
10907 | (char *) "self", NULL | |
10908 | }; | |
10909 | ||
10910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasRudder",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 = (bool)(arg1)->HasRudder(); | |
10916 | ||
10917 | wxPyEndAllowThreads(__tstate); | |
10918 | if (PyErr_Occurred()) SWIG_fail; | |
10919 | } | |
10920 | { | |
10921 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10922 | } | |
10923 | return resultobj; | |
10924 | fail: | |
10925 | return NULL; | |
10926 | } | |
10927 | ||
10928 | ||
c370783e | 10929 | static PyObject *_wrap_Joystick_HasZ(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10930 | PyObject *resultobj; |
10931 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10932 | bool result; | |
10933 | PyObject * obj0 = 0 ; | |
10934 | char *kwnames[] = { | |
10935 | (char *) "self", NULL | |
10936 | }; | |
10937 | ||
10938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasZ",kwnames,&obj0)) goto fail; | |
10939 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10940 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10941 | { | |
10942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10943 | result = (bool)(arg1)->HasZ(); | |
10944 | ||
10945 | wxPyEndAllowThreads(__tstate); | |
10946 | if (PyErr_Occurred()) SWIG_fail; | |
10947 | } | |
10948 | { | |
10949 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10950 | } | |
10951 | return resultobj; | |
10952 | fail: | |
10953 | return NULL; | |
10954 | } | |
10955 | ||
10956 | ||
c370783e | 10957 | static PyObject *_wrap_Joystick_HasU(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10958 | PyObject *resultobj; |
10959 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10960 | bool result; | |
10961 | PyObject * obj0 = 0 ; | |
10962 | char *kwnames[] = { | |
10963 | (char *) "self", NULL | |
10964 | }; | |
10965 | ||
10966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasU",kwnames,&obj0)) goto fail; | |
10967 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10968 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10969 | { | |
10970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10971 | result = (bool)(arg1)->HasU(); | |
10972 | ||
10973 | wxPyEndAllowThreads(__tstate); | |
10974 | if (PyErr_Occurred()) SWIG_fail; | |
10975 | } | |
10976 | { | |
10977 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10978 | } | |
10979 | return resultobj; | |
10980 | fail: | |
10981 | return NULL; | |
10982 | } | |
10983 | ||
10984 | ||
c370783e | 10985 | static PyObject *_wrap_Joystick_HasV(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10986 | PyObject *resultobj; |
10987 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10988 | bool result; | |
10989 | PyObject * obj0 = 0 ; | |
10990 | char *kwnames[] = { | |
10991 | (char *) "self", NULL | |
10992 | }; | |
10993 | ||
10994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasV",kwnames,&obj0)) goto fail; | |
10995 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10996 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10997 | { | |
10998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10999 | result = (bool)(arg1)->HasV(); | |
11000 | ||
11001 | wxPyEndAllowThreads(__tstate); | |
11002 | if (PyErr_Occurred()) SWIG_fail; | |
11003 | } | |
11004 | { | |
11005 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11006 | } | |
11007 | return resultobj; | |
11008 | fail: | |
11009 | return NULL; | |
11010 | } | |
11011 | ||
11012 | ||
c370783e | 11013 | static PyObject *_wrap_Joystick_HasPOV(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11014 | PyObject *resultobj; |
11015 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11016 | bool result; | |
11017 | PyObject * obj0 = 0 ; | |
11018 | char *kwnames[] = { | |
11019 | (char *) "self", NULL | |
11020 | }; | |
11021 | ||
11022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV",kwnames,&obj0)) goto fail; | |
11023 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
11024 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11025 | { | |
11026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11027 | result = (bool)(arg1)->HasPOV(); | |
11028 | ||
11029 | wxPyEndAllowThreads(__tstate); | |
11030 | if (PyErr_Occurred()) SWIG_fail; | |
11031 | } | |
11032 | { | |
11033 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11034 | } | |
11035 | return resultobj; | |
11036 | fail: | |
11037 | return NULL; | |
11038 | } | |
11039 | ||
11040 | ||
c370783e | 11041 | static PyObject *_wrap_Joystick_HasPOV4Dir(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11042 | PyObject *resultobj; |
11043 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11044 | bool result; | |
11045 | PyObject * obj0 = 0 ; | |
11046 | char *kwnames[] = { | |
11047 | (char *) "self", NULL | |
11048 | }; | |
11049 | ||
11050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV4Dir",kwnames,&obj0)) goto fail; | |
11051 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
11052 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11053 | { | |
11054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11055 | result = (bool)(arg1)->HasPOV4Dir(); | |
11056 | ||
11057 | wxPyEndAllowThreads(__tstate); | |
11058 | if (PyErr_Occurred()) SWIG_fail; | |
11059 | } | |
11060 | { | |
11061 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11062 | } | |
11063 | return resultobj; | |
11064 | fail: | |
11065 | return NULL; | |
11066 | } | |
11067 | ||
11068 | ||
c370783e | 11069 | static PyObject *_wrap_Joystick_HasPOVCTS(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11070 | PyObject *resultobj; |
11071 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11072 | bool result; | |
11073 | PyObject * obj0 = 0 ; | |
11074 | char *kwnames[] = { | |
11075 | (char *) "self", NULL | |
11076 | }; | |
11077 | ||
11078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOVCTS",kwnames,&obj0)) goto fail; | |
11079 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
11080 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11081 | { | |
11082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11083 | result = (bool)(arg1)->HasPOVCTS(); | |
11084 | ||
11085 | wxPyEndAllowThreads(__tstate); | |
11086 | if (PyErr_Occurred()) SWIG_fail; | |
11087 | } | |
11088 | { | |
11089 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11090 | } | |
11091 | return resultobj; | |
11092 | fail: | |
11093 | return NULL; | |
11094 | } | |
11095 | ||
11096 | ||
c370783e | 11097 | static PyObject *_wrap_Joystick_SetCapture(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11098 | PyObject *resultobj; |
11099 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11100 | wxWindow *arg2 = (wxWindow *) 0 ; | |
11101 | int arg3 = (int) 0 ; | |
11102 | bool result; | |
11103 | PyObject * obj0 = 0 ; | |
11104 | PyObject * obj1 = 0 ; | |
11105 | PyObject * obj2 = 0 ; | |
11106 | char *kwnames[] = { | |
11107 | (char *) "self",(char *) "win",(char *) "pollingFreq", NULL | |
11108 | }; | |
11109 | ||
11110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Joystick_SetCapture",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11111 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
11112 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11113 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
11114 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11115 | if (obj2) { | |
c370783e | 11116 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
11117 | if (PyErr_Occurred()) SWIG_fail; |
11118 | } | |
11119 | { | |
11120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11121 | result = (bool)(arg1)->SetCapture(arg2,arg3); | |
11122 | ||
11123 | wxPyEndAllowThreads(__tstate); | |
11124 | if (PyErr_Occurred()) SWIG_fail; | |
11125 | } | |
11126 | { | |
11127 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11128 | } | |
11129 | return resultobj; | |
11130 | fail: | |
11131 | return NULL; | |
11132 | } | |
11133 | ||
11134 | ||
c370783e | 11135 | static PyObject *_wrap_Joystick_ReleaseCapture(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11136 | PyObject *resultobj; |
11137 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11138 | bool result; | |
11139 | PyObject * obj0 = 0 ; | |
11140 | char *kwnames[] = { | |
11141 | (char *) "self", NULL | |
11142 | }; | |
11143 | ||
11144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_ReleaseCapture",kwnames,&obj0)) goto fail; | |
11145 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
11146 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11147 | { | |
11148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11149 | result = (bool)(arg1)->ReleaseCapture(); | |
11150 | ||
11151 | wxPyEndAllowThreads(__tstate); | |
11152 | if (PyErr_Occurred()) SWIG_fail; | |
11153 | } | |
11154 | { | |
11155 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11156 | } | |
11157 | return resultobj; | |
11158 | fail: | |
11159 | return NULL; | |
11160 | } | |
11161 | ||
11162 | ||
c370783e | 11163 | static PyObject * Joystick_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
11164 | PyObject *obj; |
11165 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11166 | SWIG_TypeClientData(SWIGTYPE_p_wxJoystick, obj); | |
11167 | Py_INCREF(obj); | |
11168 | return Py_BuildValue((char *)""); | |
11169 | } | |
c370783e | 11170 | static PyObject *_wrap_JoystickEvent_m_pos_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11171 | PyObject *resultobj; |
11172 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11173 | wxPoint *arg2 = (wxPoint *) 0 ; | |
11174 | PyObject * obj0 = 0 ; | |
11175 | PyObject * obj1 = 0 ; | |
11176 | char *kwnames[] = { | |
11177 | (char *) "self",(char *) "m_pos", NULL | |
11178 | }; | |
11179 | ||
11180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail; | |
11181 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11183 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint, | |
11184 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11185 | if (arg1) (arg1)->m_pos = *arg2; | |
11186 | ||
11187 | Py_INCREF(Py_None); resultobj = Py_None; | |
11188 | return resultobj; | |
11189 | fail: | |
11190 | return NULL; | |
11191 | } | |
11192 | ||
11193 | ||
c370783e | 11194 | static PyObject *_wrap_JoystickEvent_m_pos_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11195 | PyObject *resultobj; |
11196 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11197 | wxPoint *result; | |
11198 | PyObject * obj0 = 0 ; | |
11199 | char *kwnames[] = { | |
11200 | (char *) "self", NULL | |
11201 | }; | |
11202 | ||
11203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_pos_get",kwnames,&obj0)) goto fail; | |
11204 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11205 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11206 | result = (wxPoint *)& ((arg1)->m_pos); | |
11207 | ||
11208 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); | |
11209 | return resultobj; | |
11210 | fail: | |
11211 | return NULL; | |
11212 | } | |
11213 | ||
11214 | ||
c370783e | 11215 | static PyObject *_wrap_JoystickEvent_m_zPosition_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11216 | PyObject *resultobj; |
11217 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11218 | int arg2 ; | |
11219 | PyObject * obj0 = 0 ; | |
11220 | PyObject * obj1 = 0 ; | |
11221 | char *kwnames[] = { | |
11222 | (char *) "self",(char *) "m_zPosition", NULL | |
11223 | }; | |
11224 | ||
11225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_zPosition_set",kwnames,&obj0,&obj1)) goto fail; | |
11226 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11227 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 11228 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11229 | if (PyErr_Occurred()) SWIG_fail; |
11230 | if (arg1) (arg1)->m_zPosition = arg2; | |
11231 | ||
11232 | Py_INCREF(Py_None); resultobj = Py_None; | |
11233 | return resultobj; | |
11234 | fail: | |
11235 | return NULL; | |
11236 | } | |
11237 | ||
11238 | ||
c370783e | 11239 | static PyObject *_wrap_JoystickEvent_m_zPosition_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11240 | PyObject *resultobj; |
11241 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11242 | int result; | |
11243 | PyObject * obj0 = 0 ; | |
11244 | char *kwnames[] = { | |
11245 | (char *) "self", NULL | |
11246 | }; | |
11247 | ||
11248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_zPosition_get",kwnames,&obj0)) goto fail; | |
11249 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11251 | result = (int) ((arg1)->m_zPosition); | |
11252 | ||
c370783e | 11253 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
11254 | return resultobj; |
11255 | fail: | |
11256 | return NULL; | |
11257 | } | |
11258 | ||
11259 | ||
c370783e | 11260 | static PyObject *_wrap_JoystickEvent_m_buttonChange_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11261 | PyObject *resultobj; |
11262 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11263 | int arg2 ; | |
11264 | PyObject * obj0 = 0 ; | |
11265 | PyObject * obj1 = 0 ; | |
11266 | char *kwnames[] = { | |
11267 | (char *) "self",(char *) "m_buttonChange", NULL | |
11268 | }; | |
11269 | ||
11270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonChange_set",kwnames,&obj0,&obj1)) goto fail; | |
11271 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11272 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 11273 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11274 | if (PyErr_Occurred()) SWIG_fail; |
11275 | if (arg1) (arg1)->m_buttonChange = arg2; | |
11276 | ||
11277 | Py_INCREF(Py_None); resultobj = Py_None; | |
11278 | return resultobj; | |
11279 | fail: | |
11280 | return NULL; | |
11281 | } | |
11282 | ||
11283 | ||
c370783e | 11284 | static PyObject *_wrap_JoystickEvent_m_buttonChange_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11285 | PyObject *resultobj; |
11286 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11287 | int result; | |
11288 | PyObject * obj0 = 0 ; | |
11289 | char *kwnames[] = { | |
11290 | (char *) "self", NULL | |
11291 | }; | |
11292 | ||
11293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonChange_get",kwnames,&obj0)) goto fail; | |
11294 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11295 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11296 | result = (int) ((arg1)->m_buttonChange); | |
11297 | ||
c370783e | 11298 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
11299 | return resultobj; |
11300 | fail: | |
11301 | return NULL; | |
11302 | } | |
11303 | ||
11304 | ||
c370783e | 11305 | static PyObject *_wrap_JoystickEvent_m_buttonState_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11306 | PyObject *resultobj; |
11307 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11308 | int arg2 ; | |
11309 | PyObject * obj0 = 0 ; | |
11310 | PyObject * obj1 = 0 ; | |
11311 | char *kwnames[] = { | |
11312 | (char *) "self",(char *) "m_buttonState", NULL | |
11313 | }; | |
11314 | ||
11315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonState_set",kwnames,&obj0,&obj1)) goto fail; | |
11316 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11317 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 11318 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11319 | if (PyErr_Occurred()) SWIG_fail; |
11320 | if (arg1) (arg1)->m_buttonState = arg2; | |
11321 | ||
11322 | Py_INCREF(Py_None); resultobj = Py_None; | |
11323 | return resultobj; | |
11324 | fail: | |
11325 | return NULL; | |
11326 | } | |
11327 | ||
11328 | ||
c370783e | 11329 | static PyObject *_wrap_JoystickEvent_m_buttonState_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11330 | PyObject *resultobj; |
11331 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11332 | int result; | |
11333 | PyObject * obj0 = 0 ; | |
11334 | char *kwnames[] = { | |
11335 | (char *) "self", NULL | |
11336 | }; | |
11337 | ||
11338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonState_get",kwnames,&obj0)) goto fail; | |
11339 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11340 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11341 | result = (int) ((arg1)->m_buttonState); | |
11342 | ||
c370783e | 11343 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
11344 | return resultobj; |
11345 | fail: | |
11346 | return NULL; | |
11347 | } | |
11348 | ||
11349 | ||
c370783e | 11350 | static PyObject *_wrap_JoystickEvent_m_joyStick_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11351 | PyObject *resultobj; |
11352 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11353 | int arg2 ; | |
11354 | PyObject * obj0 = 0 ; | |
11355 | PyObject * obj1 = 0 ; | |
11356 | char *kwnames[] = { | |
11357 | (char *) "self",(char *) "m_joyStick", NULL | |
11358 | }; | |
11359 | ||
11360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_joyStick_set",kwnames,&obj0,&obj1)) goto fail; | |
11361 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11362 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 11363 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11364 | if (PyErr_Occurred()) SWIG_fail; |
11365 | if (arg1) (arg1)->m_joyStick = arg2; | |
11366 | ||
11367 | Py_INCREF(Py_None); resultobj = Py_None; | |
11368 | return resultobj; | |
11369 | fail: | |
11370 | return NULL; | |
11371 | } | |
11372 | ||
11373 | ||
c370783e | 11374 | static PyObject *_wrap_JoystickEvent_m_joyStick_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11375 | PyObject *resultobj; |
11376 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11377 | int result; | |
11378 | PyObject * obj0 = 0 ; | |
11379 | char *kwnames[] = { | |
11380 | (char *) "self", NULL | |
11381 | }; | |
11382 | ||
11383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_joyStick_get",kwnames,&obj0)) goto fail; | |
11384 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11386 | result = (int) ((arg1)->m_joyStick); | |
11387 | ||
c370783e | 11388 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
11389 | return resultobj; |
11390 | fail: | |
11391 | return NULL; | |
11392 | } | |
11393 | ||
11394 | ||
c370783e | 11395 | static PyObject *_wrap_new_JoystickEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11396 | PyObject *resultobj; |
11397 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
11398 | int arg2 = (int) 0 ; | |
11399 | int arg3 = (int) wxJOYSTICK1 ; | |
11400 | int arg4 = (int) 0 ; | |
11401 | wxJoystickEvent *result; | |
11402 | PyObject * obj0 = 0 ; | |
11403 | PyObject * obj1 = 0 ; | |
11404 | PyObject * obj2 = 0 ; | |
11405 | PyObject * obj3 = 0 ; | |
11406 | char *kwnames[] = { | |
11407 | (char *) "type",(char *) "state",(char *) "joystick",(char *) "change", NULL | |
11408 | }; | |
11409 | ||
11410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_JoystickEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
11411 | if (obj0) { | |
c370783e | 11412 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
11413 | if (PyErr_Occurred()) SWIG_fail; |
11414 | } | |
11415 | if (obj1) { | |
c370783e | 11416 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11417 | if (PyErr_Occurred()) SWIG_fail; |
11418 | } | |
11419 | if (obj2) { | |
c370783e | 11420 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
11421 | if (PyErr_Occurred()) SWIG_fail; |
11422 | } | |
11423 | if (obj3) { | |
c370783e | 11424 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
11425 | if (PyErr_Occurred()) SWIG_fail; |
11426 | } | |
11427 | { | |
11428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11429 | result = (wxJoystickEvent *)new wxJoystickEvent(arg1,arg2,arg3,arg4); | |
11430 | ||
11431 | wxPyEndAllowThreads(__tstate); | |
11432 | if (PyErr_Occurred()) SWIG_fail; | |
11433 | } | |
11434 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystickEvent, 1); | |
11435 | return resultobj; | |
11436 | fail: | |
11437 | return NULL; | |
11438 | } | |
11439 | ||
11440 | ||
c370783e | 11441 | static PyObject *_wrap_JoystickEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11442 | PyObject *resultobj; |
11443 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11444 | wxPoint result; | |
11445 | PyObject * obj0 = 0 ; | |
11446 | char *kwnames[] = { | |
11447 | (char *) "self", NULL | |
11448 | }; | |
11449 | ||
11450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetPosition",kwnames,&obj0)) goto fail; | |
11451 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11452 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11453 | { | |
11454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11455 | result = ((wxJoystickEvent const *)arg1)->GetPosition(); | |
11456 | ||
11457 | wxPyEndAllowThreads(__tstate); | |
11458 | if (PyErr_Occurred()) SWIG_fail; | |
11459 | } | |
11460 | { | |
11461 | wxPoint * resultptr; | |
11462 | resultptr = new wxPoint((wxPoint &) result); | |
11463 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
11464 | } | |
11465 | return resultobj; | |
11466 | fail: | |
11467 | return NULL; | |
11468 | } | |
11469 | ||
11470 | ||
c370783e | 11471 | static PyObject *_wrap_JoystickEvent_GetZPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11472 | PyObject *resultobj; |
11473 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11474 | int result; | |
11475 | PyObject * obj0 = 0 ; | |
11476 | char *kwnames[] = { | |
11477 | (char *) "self", NULL | |
11478 | }; | |
11479 | ||
11480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetZPosition",kwnames,&obj0)) goto fail; | |
11481 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11482 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11483 | { | |
11484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11485 | result = (int)((wxJoystickEvent const *)arg1)->GetZPosition(); | |
11486 | ||
11487 | wxPyEndAllowThreads(__tstate); | |
11488 | if (PyErr_Occurred()) SWIG_fail; | |
11489 | } | |
c370783e | 11490 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
11491 | return resultobj; |
11492 | fail: | |
11493 | return NULL; | |
11494 | } | |
11495 | ||
11496 | ||
c370783e | 11497 | static PyObject *_wrap_JoystickEvent_GetButtonState(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11498 | PyObject *resultobj; |
11499 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11500 | int result; | |
11501 | PyObject * obj0 = 0 ; | |
11502 | char *kwnames[] = { | |
11503 | (char *) "self", NULL | |
11504 | }; | |
11505 | ||
11506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonState",kwnames,&obj0)) goto fail; | |
11507 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11508 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11509 | { | |
11510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11511 | result = (int)((wxJoystickEvent const *)arg1)->GetButtonState(); | |
11512 | ||
11513 | wxPyEndAllowThreads(__tstate); | |
11514 | if (PyErr_Occurred()) SWIG_fail; | |
11515 | } | |
c370783e | 11516 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
11517 | return resultobj; |
11518 | fail: | |
11519 | return NULL; | |
11520 | } | |
11521 | ||
11522 | ||
c370783e | 11523 | static PyObject *_wrap_JoystickEvent_GetButtonChange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11524 | PyObject *resultobj; |
11525 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11526 | int result; | |
11527 | PyObject * obj0 = 0 ; | |
11528 | char *kwnames[] = { | |
11529 | (char *) "self", NULL | |
11530 | }; | |
11531 | ||
11532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonChange",kwnames,&obj0)) goto fail; | |
11533 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11534 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11535 | { | |
11536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11537 | result = (int)((wxJoystickEvent const *)arg1)->GetButtonChange(); | |
11538 | ||
11539 | wxPyEndAllowThreads(__tstate); | |
11540 | if (PyErr_Occurred()) SWIG_fail; | |
11541 | } | |
c370783e | 11542 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
11543 | return resultobj; |
11544 | fail: | |
11545 | return NULL; | |
11546 | } | |
11547 | ||
11548 | ||
c370783e | 11549 | static PyObject *_wrap_JoystickEvent_GetJoystick(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11550 | PyObject *resultobj; |
11551 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11552 | int result; | |
11553 | PyObject * obj0 = 0 ; | |
11554 | char *kwnames[] = { | |
11555 | (char *) "self", NULL | |
11556 | }; | |
11557 | ||
11558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetJoystick",kwnames,&obj0)) goto fail; | |
11559 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11561 | { | |
11562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11563 | result = (int)((wxJoystickEvent const *)arg1)->GetJoystick(); | |
11564 | ||
11565 | wxPyEndAllowThreads(__tstate); | |
11566 | if (PyErr_Occurred()) SWIG_fail; | |
11567 | } | |
c370783e | 11568 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
11569 | return resultobj; |
11570 | fail: | |
11571 | return NULL; | |
11572 | } | |
11573 | ||
11574 | ||
c370783e | 11575 | static PyObject *_wrap_JoystickEvent_SetJoystick(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11576 | PyObject *resultobj; |
11577 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11578 | int arg2 ; | |
11579 | PyObject * obj0 = 0 ; | |
11580 | PyObject * obj1 = 0 ; | |
11581 | char *kwnames[] = { | |
11582 | (char *) "self",(char *) "stick", NULL | |
11583 | }; | |
11584 | ||
11585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetJoystick",kwnames,&obj0,&obj1)) goto fail; | |
11586 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11587 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 11588 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11589 | if (PyErr_Occurred()) SWIG_fail; |
11590 | { | |
11591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11592 | (arg1)->SetJoystick(arg2); | |
11593 | ||
11594 | wxPyEndAllowThreads(__tstate); | |
11595 | if (PyErr_Occurred()) SWIG_fail; | |
11596 | } | |
11597 | Py_INCREF(Py_None); resultobj = Py_None; | |
11598 | return resultobj; | |
11599 | fail: | |
11600 | return NULL; | |
11601 | } | |
11602 | ||
11603 | ||
c370783e | 11604 | static PyObject *_wrap_JoystickEvent_SetButtonState(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11605 | PyObject *resultobj; |
11606 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11607 | int arg2 ; | |
11608 | PyObject * obj0 = 0 ; | |
11609 | PyObject * obj1 = 0 ; | |
11610 | char *kwnames[] = { | |
11611 | (char *) "self",(char *) "state", NULL | |
11612 | }; | |
11613 | ||
11614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonState",kwnames,&obj0,&obj1)) goto fail; | |
11615 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 11617 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11618 | if (PyErr_Occurred()) SWIG_fail; |
11619 | { | |
11620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11621 | (arg1)->SetButtonState(arg2); | |
11622 | ||
11623 | wxPyEndAllowThreads(__tstate); | |
11624 | if (PyErr_Occurred()) SWIG_fail; | |
11625 | } | |
11626 | Py_INCREF(Py_None); resultobj = Py_None; | |
11627 | return resultobj; | |
11628 | fail: | |
11629 | return NULL; | |
11630 | } | |
11631 | ||
11632 | ||
c370783e | 11633 | static PyObject *_wrap_JoystickEvent_SetButtonChange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11634 | PyObject *resultobj; |
11635 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11636 | int arg2 ; | |
11637 | PyObject * obj0 = 0 ; | |
11638 | PyObject * obj1 = 0 ; | |
11639 | char *kwnames[] = { | |
11640 | (char *) "self",(char *) "change", NULL | |
11641 | }; | |
11642 | ||
11643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonChange",kwnames,&obj0,&obj1)) goto fail; | |
11644 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11645 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 11646 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11647 | if (PyErr_Occurred()) SWIG_fail; |
11648 | { | |
11649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11650 | (arg1)->SetButtonChange(arg2); | |
11651 | ||
11652 | wxPyEndAllowThreads(__tstate); | |
11653 | if (PyErr_Occurred()) SWIG_fail; | |
11654 | } | |
11655 | Py_INCREF(Py_None); resultobj = Py_None; | |
11656 | return resultobj; | |
11657 | fail: | |
11658 | return NULL; | |
11659 | } | |
11660 | ||
11661 | ||
c370783e | 11662 | static PyObject *_wrap_JoystickEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11663 | PyObject *resultobj; |
11664 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11665 | wxPoint *arg2 = 0 ; | |
11666 | wxPoint temp2 ; | |
11667 | PyObject * obj0 = 0 ; | |
11668 | PyObject * obj1 = 0 ; | |
11669 | char *kwnames[] = { | |
11670 | (char *) "self",(char *) "pos", NULL | |
11671 | }; | |
11672 | ||
11673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
11674 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11675 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11676 | { | |
11677 | arg2 = &temp2; | |
11678 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11679 | } | |
11680 | { | |
11681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11682 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
11683 | ||
11684 | wxPyEndAllowThreads(__tstate); | |
11685 | if (PyErr_Occurred()) SWIG_fail; | |
11686 | } | |
11687 | Py_INCREF(Py_None); resultobj = Py_None; | |
11688 | return resultobj; | |
11689 | fail: | |
11690 | return NULL; | |
11691 | } | |
11692 | ||
11693 | ||
c370783e | 11694 | static PyObject *_wrap_JoystickEvent_SetZPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11695 | PyObject *resultobj; |
11696 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11697 | int arg2 ; | |
11698 | PyObject * obj0 = 0 ; | |
11699 | PyObject * obj1 = 0 ; | |
11700 | char *kwnames[] = { | |
11701 | (char *) "self",(char *) "zPos", NULL | |
11702 | }; | |
11703 | ||
11704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetZPosition",kwnames,&obj0,&obj1)) goto fail; | |
11705 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11706 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 11707 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11708 | if (PyErr_Occurred()) SWIG_fail; |
11709 | { | |
11710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11711 | (arg1)->SetZPosition(arg2); | |
11712 | ||
11713 | wxPyEndAllowThreads(__tstate); | |
11714 | if (PyErr_Occurred()) SWIG_fail; | |
11715 | } | |
11716 | Py_INCREF(Py_None); resultobj = Py_None; | |
11717 | return resultobj; | |
11718 | fail: | |
11719 | return NULL; | |
11720 | } | |
11721 | ||
11722 | ||
c370783e | 11723 | static PyObject *_wrap_JoystickEvent_IsButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11724 | PyObject *resultobj; |
11725 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11726 | bool result; | |
11727 | PyObject * obj0 = 0 ; | |
11728 | char *kwnames[] = { | |
11729 | (char *) "self", NULL | |
11730 | }; | |
11731 | ||
11732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsButton",kwnames,&obj0)) goto fail; | |
11733 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11734 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11735 | { | |
11736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11737 | result = (bool)((wxJoystickEvent const *)arg1)->IsButton(); | |
11738 | ||
11739 | wxPyEndAllowThreads(__tstate); | |
11740 | if (PyErr_Occurred()) SWIG_fail; | |
11741 | } | |
11742 | { | |
11743 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11744 | } | |
11745 | return resultobj; | |
11746 | fail: | |
11747 | return NULL; | |
11748 | } | |
11749 | ||
11750 | ||
c370783e | 11751 | static PyObject *_wrap_JoystickEvent_IsMove(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11752 | PyObject *resultobj; |
11753 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11754 | bool result; | |
11755 | PyObject * obj0 = 0 ; | |
11756 | char *kwnames[] = { | |
11757 | (char *) "self", NULL | |
11758 | }; | |
11759 | ||
11760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsMove",kwnames,&obj0)) goto fail; | |
11761 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11762 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11763 | { | |
11764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11765 | result = (bool)((wxJoystickEvent const *)arg1)->IsMove(); | |
11766 | ||
11767 | wxPyEndAllowThreads(__tstate); | |
11768 | if (PyErr_Occurred()) SWIG_fail; | |
11769 | } | |
11770 | { | |
11771 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11772 | } | |
11773 | return resultobj; | |
11774 | fail: | |
11775 | return NULL; | |
11776 | } | |
11777 | ||
11778 | ||
c370783e | 11779 | static PyObject *_wrap_JoystickEvent_IsZMove(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11780 | PyObject *resultobj; |
11781 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11782 | bool result; | |
11783 | PyObject * obj0 = 0 ; | |
11784 | char *kwnames[] = { | |
11785 | (char *) "self", NULL | |
11786 | }; | |
11787 | ||
11788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsZMove",kwnames,&obj0)) goto fail; | |
11789 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11790 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11791 | { | |
11792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11793 | result = (bool)((wxJoystickEvent const *)arg1)->IsZMove(); | |
11794 | ||
11795 | wxPyEndAllowThreads(__tstate); | |
11796 | if (PyErr_Occurred()) SWIG_fail; | |
11797 | } | |
11798 | { | |
11799 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11800 | } | |
11801 | return resultobj; | |
11802 | fail: | |
11803 | return NULL; | |
11804 | } | |
11805 | ||
11806 | ||
c370783e | 11807 | static PyObject *_wrap_JoystickEvent_ButtonDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11808 | PyObject *resultobj; |
11809 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11810 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
11811 | bool result; | |
11812 | PyObject * obj0 = 0 ; | |
11813 | PyObject * obj1 = 0 ; | |
11814 | char *kwnames[] = { | |
11815 | (char *) "self",(char *) "but", NULL | |
11816 | }; | |
11817 | ||
11818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail; | |
11819 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11820 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11821 | if (obj1) { | |
c370783e | 11822 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11823 | if (PyErr_Occurred()) SWIG_fail; |
11824 | } | |
11825 | { | |
11826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11827 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonDown(arg2); | |
11828 | ||
11829 | wxPyEndAllowThreads(__tstate); | |
11830 | if (PyErr_Occurred()) SWIG_fail; | |
11831 | } | |
11832 | { | |
11833 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11834 | } | |
11835 | return resultobj; | |
11836 | fail: | |
11837 | return NULL; | |
11838 | } | |
11839 | ||
11840 | ||
c370783e | 11841 | static PyObject *_wrap_JoystickEvent_ButtonUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11842 | PyObject *resultobj; |
11843 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11844 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
11845 | bool result; | |
11846 | PyObject * obj0 = 0 ; | |
11847 | PyObject * obj1 = 0 ; | |
11848 | char *kwnames[] = { | |
11849 | (char *) "self",(char *) "but", NULL | |
11850 | }; | |
11851 | ||
11852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail; | |
11853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11855 | if (obj1) { | |
c370783e | 11856 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11857 | if (PyErr_Occurred()) SWIG_fail; |
11858 | } | |
11859 | { | |
11860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11861 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonUp(arg2); | |
11862 | ||
11863 | wxPyEndAllowThreads(__tstate); | |
11864 | if (PyErr_Occurred()) SWIG_fail; | |
11865 | } | |
11866 | { | |
11867 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11868 | } | |
11869 | return resultobj; | |
11870 | fail: | |
11871 | return NULL; | |
11872 | } | |
11873 | ||
11874 | ||
c370783e | 11875 | static PyObject *_wrap_JoystickEvent_ButtonIsDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11876 | PyObject *resultobj; |
11877 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11878 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
11879 | bool result; | |
11880 | PyObject * obj0 = 0 ; | |
11881 | PyObject * obj1 = 0 ; | |
11882 | char *kwnames[] = { | |
11883 | (char *) "self",(char *) "but", NULL | |
11884 | }; | |
11885 | ||
11886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail; | |
11887 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11888 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11889 | if (obj1) { | |
c370783e | 11890 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11891 | if (PyErr_Occurred()) SWIG_fail; |
11892 | } | |
11893 | { | |
11894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11895 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonIsDown(arg2); | |
11896 | ||
11897 | wxPyEndAllowThreads(__tstate); | |
11898 | if (PyErr_Occurred()) SWIG_fail; | |
11899 | } | |
11900 | { | |
11901 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11902 | } | |
11903 | return resultobj; | |
11904 | fail: | |
11905 | return NULL; | |
11906 | } | |
11907 | ||
11908 | ||
c370783e | 11909 | static PyObject * JoystickEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
11910 | PyObject *obj; |
11911 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11912 | SWIG_TypeClientData(SWIGTYPE_p_wxJoystickEvent, obj); | |
11913 | Py_INCREF(obj); | |
11914 | return Py_BuildValue((char *)""); | |
11915 | } | |
c370783e | 11916 | static PyObject *_wrap_new_Sound(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 11917 | PyObject *resultobj; |
0346c964 RD |
11918 | wxString const &arg1_defvalue = wxPyEmptyString ; |
11919 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
d55e5bfc | 11920 | wxSound *result; |
b411df4a | 11921 | bool temp1 = false ; |
d55e5bfc | 11922 | PyObject * obj0 = 0 ; |
0346c964 RD |
11923 | char *kwnames[] = { |
11924 | (char *) "fileName", NULL | |
11925 | }; | |
d55e5bfc | 11926 | |
0346c964 RD |
11927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Sound",kwnames,&obj0)) goto fail; |
11928 | if (obj0) { | |
11929 | { | |
11930 | arg1 = wxString_in_helper(obj0); | |
11931 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 11932 | temp1 = true; |
0346c964 | 11933 | } |
d55e5bfc RD |
11934 | } |
11935 | { | |
0439c23b | 11936 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 11937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0346c964 | 11938 | result = (wxSound *)new_wxSound((wxString const &)*arg1); |
d55e5bfc RD |
11939 | |
11940 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11941 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
11942 | } |
11943 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1); | |
11944 | { | |
11945 | if (temp1) | |
11946 | delete arg1; | |
11947 | } | |
11948 | return resultobj; | |
11949 | fail: | |
11950 | { | |
11951 | if (temp1) | |
11952 | delete arg1; | |
11953 | } | |
11954 | return NULL; | |
11955 | } | |
11956 | ||
11957 | ||
c370783e | 11958 | static PyObject *_wrap_new_SoundFromData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 11959 | PyObject *resultobj; |
0346c964 | 11960 | PyObject *arg1 = (PyObject *) 0 ; |
d55e5bfc RD |
11961 | wxSound *result; |
11962 | PyObject * obj0 = 0 ; | |
0346c964 RD |
11963 | char *kwnames[] = { |
11964 | (char *) "data", NULL | |
11965 | }; | |
d55e5bfc | 11966 | |
0346c964 RD |
11967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_SoundFromData",kwnames,&obj0)) goto fail; |
11968 | arg1 = obj0; | |
d55e5bfc | 11969 | { |
0439c23b | 11970 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 11971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0346c964 | 11972 | result = (wxSound *)new_wxSound(arg1); |
d55e5bfc RD |
11973 | |
11974 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11975 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
11976 | } |
11977 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1); | |
11978 | return resultobj; | |
11979 | fail: | |
11980 | return NULL; | |
11981 | } | |
11982 | ||
11983 | ||
c370783e | 11984 | static PyObject *_wrap_delete_Sound(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11985 | PyObject *resultobj; |
11986 | wxSound *arg1 = (wxSound *) 0 ; | |
11987 | PyObject * obj0 = 0 ; | |
11988 | char *kwnames[] = { | |
11989 | (char *) "self", NULL | |
11990 | }; | |
11991 | ||
11992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Sound",kwnames,&obj0)) goto fail; | |
11993 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, | |
11994 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11995 | { | |
11996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11997 | delete arg1; | |
11998 | ||
11999 | wxPyEndAllowThreads(__tstate); | |
12000 | if (PyErr_Occurred()) SWIG_fail; | |
12001 | } | |
12002 | Py_INCREF(Py_None); resultobj = Py_None; | |
12003 | return resultobj; | |
12004 | fail: | |
12005 | return NULL; | |
12006 | } | |
12007 | ||
12008 | ||
c370783e | 12009 | static PyObject *_wrap_Sound_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12010 | PyObject *resultobj; |
12011 | wxSound *arg1 = (wxSound *) 0 ; | |
12012 | wxString *arg2 = 0 ; | |
d55e5bfc | 12013 | bool result; |
b411df4a | 12014 | bool temp2 = false ; |
d55e5bfc RD |
12015 | PyObject * obj0 = 0 ; |
12016 | PyObject * obj1 = 0 ; | |
0346c964 RD |
12017 | char *kwnames[] = { |
12018 | (char *) "self",(char *) "fileName", NULL | |
12019 | }; | |
d55e5bfc | 12020 | |
0346c964 | 12021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_Create",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
12022 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, |
12023 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12024 | { | |
12025 | arg2 = wxString_in_helper(obj1); | |
12026 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 12027 | temp2 = true; |
d55e5bfc | 12028 | } |
d55e5bfc RD |
12029 | { |
12030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
0346c964 | 12031 | result = (bool)(arg1)->Create((wxString const &)*arg2); |
d55e5bfc RD |
12032 | |
12033 | wxPyEndAllowThreads(__tstate); | |
12034 | if (PyErr_Occurred()) SWIG_fail; | |
12035 | } | |
12036 | { | |
12037 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12038 | } | |
12039 | { | |
12040 | if (temp2) | |
12041 | delete arg2; | |
12042 | } | |
12043 | return resultobj; | |
12044 | fail: | |
12045 | { | |
12046 | if (temp2) | |
12047 | delete arg2; | |
12048 | } | |
12049 | return NULL; | |
12050 | } | |
12051 | ||
12052 | ||
c370783e | 12053 | static PyObject *_wrap_Sound_CreateFromData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12054 | PyObject *resultobj; |
12055 | wxSound *arg1 = (wxSound *) 0 ; | |
0346c964 | 12056 | PyObject *arg2 = (PyObject *) 0 ; |
d55e5bfc RD |
12057 | bool result; |
12058 | PyObject * obj0 = 0 ; | |
12059 | PyObject * obj1 = 0 ; | |
0346c964 RD |
12060 | char *kwnames[] = { |
12061 | (char *) "self",(char *) "data", NULL | |
12062 | }; | |
d55e5bfc | 12063 | |
0346c964 | 12064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_CreateFromData",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
12065 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, |
12066 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
0346c964 | 12067 | arg2 = obj1; |
d55e5bfc RD |
12068 | { |
12069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
0346c964 | 12070 | result = (bool)wxSound_CreateFromData(arg1,arg2); |
d55e5bfc RD |
12071 | |
12072 | wxPyEndAllowThreads(__tstate); | |
12073 | if (PyErr_Occurred()) SWIG_fail; | |
12074 | } | |
12075 | { | |
12076 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12077 | } | |
12078 | return resultobj; | |
12079 | fail: | |
12080 | return NULL; | |
12081 | } | |
12082 | ||
12083 | ||
c370783e | 12084 | static PyObject *_wrap_Sound_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12085 | PyObject *resultobj; |
12086 | wxSound *arg1 = (wxSound *) 0 ; | |
12087 | bool result; | |
12088 | PyObject * obj0 = 0 ; | |
12089 | char *kwnames[] = { | |
12090 | (char *) "self", NULL | |
12091 | }; | |
12092 | ||
12093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sound_IsOk",kwnames,&obj0)) goto fail; | |
12094 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, | |
12095 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12096 | { | |
12097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12098 | result = (bool)(arg1)->IsOk(); | |
12099 | ||
12100 | wxPyEndAllowThreads(__tstate); | |
12101 | if (PyErr_Occurred()) SWIG_fail; | |
12102 | } | |
12103 | { | |
12104 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12105 | } | |
12106 | return resultobj; | |
12107 | fail: | |
12108 | return NULL; | |
12109 | } | |
12110 | ||
12111 | ||
c370783e | 12112 | static PyObject *_wrap_Sound_Play(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12113 | PyObject *resultobj; |
12114 | wxSound *arg1 = (wxSound *) 0 ; | |
12115 | unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ; | |
12116 | bool result; | |
12117 | PyObject * obj0 = 0 ; | |
12118 | PyObject * obj1 = 0 ; | |
0346c964 RD |
12119 | char *kwnames[] = { |
12120 | (char *) "self",(char *) "flags", NULL | |
12121 | }; | |
d55e5bfc | 12122 | |
0346c964 | 12123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_Play",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
12124 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, |
12125 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12126 | if (obj1) { | |
c370783e | 12127 | arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1); |
d55e5bfc RD |
12128 | if (PyErr_Occurred()) SWIG_fail; |
12129 | } | |
12130 | { | |
0439c23b | 12131 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
12132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12133 | result = (bool)((wxSound const *)arg1)->Play(arg2); | |
12134 | ||
12135 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12136 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
12137 | } |
12138 | { | |
12139 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12140 | } | |
12141 | return resultobj; | |
12142 | fail: | |
12143 | return NULL; | |
12144 | } | |
12145 | ||
12146 | ||
c370783e | 12147 | static PyObject *_wrap_Sound_PlaySound(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12148 | PyObject *resultobj; |
12149 | wxString *arg1 = 0 ; | |
12150 | unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ; | |
12151 | bool result; | |
b411df4a | 12152 | bool temp1 = false ; |
d55e5bfc RD |
12153 | PyObject * obj0 = 0 ; |
12154 | PyObject * obj1 = 0 ; | |
0346c964 RD |
12155 | char *kwnames[] = { |
12156 | (char *) "filename",(char *) "flags", NULL | |
12157 | }; | |
d55e5bfc | 12158 | |
0346c964 | 12159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_PlaySound",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
12160 | { |
12161 | arg1 = wxString_in_helper(obj0); | |
12162 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 12163 | temp1 = true; |
d55e5bfc RD |
12164 | } |
12165 | if (obj1) { | |
c370783e | 12166 | arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1); |
d55e5bfc RD |
12167 | if (PyErr_Occurred()) SWIG_fail; |
12168 | } | |
12169 | { | |
0439c23b | 12170 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
12171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12172 | result = (bool)wxSound::Play((wxString const &)*arg1,arg2); | |
12173 | ||
12174 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12175 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
12176 | } |
12177 | { | |
12178 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12179 | } | |
12180 | { | |
12181 | if (temp1) | |
12182 | delete arg1; | |
12183 | } | |
12184 | return resultobj; | |
12185 | fail: | |
12186 | { | |
12187 | if (temp1) | |
12188 | delete arg1; | |
12189 | } | |
12190 | return NULL; | |
12191 | } | |
12192 | ||
12193 | ||
c370783e | 12194 | static PyObject *_wrap_Sound_Stop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12195 | PyObject *resultobj; |
12196 | char *kwnames[] = { | |
12197 | NULL | |
12198 | }; | |
12199 | ||
12200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Sound_Stop",kwnames)) goto fail; | |
12201 | { | |
0439c23b | 12202 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
12203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12204 | Sound_Stop(); | |
12205 | ||
12206 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12207 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
12208 | } |
12209 | Py_INCREF(Py_None); resultobj = Py_None; | |
12210 | return resultobj; | |
12211 | fail: | |
12212 | return NULL; | |
12213 | } | |
12214 | ||
12215 | ||
c370783e | 12216 | static PyObject * Sound_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
12217 | PyObject *obj; |
12218 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12219 | SWIG_TypeClientData(SWIGTYPE_p_wxSound, obj); | |
12220 | Py_INCREF(obj); | |
12221 | return Py_BuildValue((char *)""); | |
12222 | } | |
c370783e | 12223 | static PyObject *_wrap_new_FileTypeInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12224 | PyObject *resultobj; |
12225 | wxString *arg1 = 0 ; | |
12226 | wxString *arg2 = 0 ; | |
12227 | wxString *arg3 = 0 ; | |
12228 | wxString *arg4 = 0 ; | |
12229 | wxFileTypeInfo *result; | |
b411df4a RD |
12230 | bool temp1 = false ; |
12231 | bool temp2 = false ; | |
12232 | bool temp3 = false ; | |
12233 | bool temp4 = false ; | |
d55e5bfc RD |
12234 | PyObject * obj0 = 0 ; |
12235 | PyObject * obj1 = 0 ; | |
12236 | PyObject * obj2 = 0 ; | |
12237 | PyObject * obj3 = 0 ; | |
12238 | char *kwnames[] = { | |
12239 | (char *) "mimeType",(char *) "openCmd",(char *) "printCmd",(char *) "desc", NULL | |
12240 | }; | |
12241 | ||
12242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileTypeInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
12243 | { | |
12244 | arg1 = wxString_in_helper(obj0); | |
12245 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 12246 | temp1 = true; |
d55e5bfc RD |
12247 | } |
12248 | { | |
12249 | arg2 = wxString_in_helper(obj1); | |
12250 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 12251 | temp2 = true; |
d55e5bfc RD |
12252 | } |
12253 | { | |
12254 | arg3 = wxString_in_helper(obj2); | |
12255 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 12256 | temp3 = true; |
d55e5bfc RD |
12257 | } |
12258 | { | |
12259 | arg4 = wxString_in_helper(obj3); | |
12260 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 12261 | temp4 = true; |
d55e5bfc RD |
12262 | } |
12263 | { | |
12264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12265 | result = (wxFileTypeInfo *)new wxFileTypeInfo((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
12266 | ||
12267 | wxPyEndAllowThreads(__tstate); | |
12268 | if (PyErr_Occurred()) SWIG_fail; | |
12269 | } | |
12270 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); | |
12271 | { | |
12272 | if (temp1) | |
12273 | delete arg1; | |
12274 | } | |
12275 | { | |
12276 | if (temp2) | |
12277 | delete arg2; | |
12278 | } | |
12279 | { | |
12280 | if (temp3) | |
12281 | delete arg3; | |
12282 | } | |
12283 | { | |
12284 | if (temp4) | |
12285 | delete arg4; | |
12286 | } | |
12287 | return resultobj; | |
12288 | fail: | |
12289 | { | |
12290 | if (temp1) | |
12291 | delete arg1; | |
12292 | } | |
12293 | { | |
12294 | if (temp2) | |
12295 | delete arg2; | |
12296 | } | |
12297 | { | |
12298 | if (temp3) | |
12299 | delete arg3; | |
12300 | } | |
12301 | { | |
12302 | if (temp4) | |
12303 | delete arg4; | |
12304 | } | |
12305 | return NULL; | |
12306 | } | |
12307 | ||
12308 | ||
c370783e | 12309 | static PyObject *_wrap_new_FileTypeInfoSequence(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12310 | PyObject *resultobj; |
12311 | wxArrayString *arg1 = 0 ; | |
12312 | wxFileTypeInfo *result; | |
b411df4a | 12313 | bool temp1 = false ; |
d55e5bfc RD |
12314 | PyObject * obj0 = 0 ; |
12315 | char *kwnames[] = { | |
12316 | (char *) "sArray", NULL | |
12317 | }; | |
12318 | ||
12319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileTypeInfoSequence",kwnames,&obj0)) goto fail; | |
12320 | { | |
12321 | if (! PySequence_Check(obj0)) { | |
12322 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
12323 | SWIG_fail; | |
12324 | } | |
12325 | arg1 = new wxArrayString; | |
b411df4a | 12326 | temp1 = true; |
d55e5bfc RD |
12327 | int i, len=PySequence_Length(obj0); |
12328 | for (i=0; i<len; i++) { | |
12329 | PyObject* item = PySequence_GetItem(obj0, i); | |
12330 | #if wxUSE_UNICODE | |
12331 | PyObject* str = PyObject_Unicode(item); | |
12332 | #else | |
12333 | PyObject* str = PyObject_Str(item); | |
12334 | #endif | |
12335 | if (PyErr_Occurred()) SWIG_fail; | |
12336 | arg1->Add(Py2wxString(str)); | |
12337 | Py_DECREF(item); | |
12338 | Py_DECREF(str); | |
12339 | } | |
12340 | } | |
12341 | { | |
12342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12343 | result = (wxFileTypeInfo *)new wxFileTypeInfo((wxArrayString const &)*arg1); | |
12344 | ||
12345 | wxPyEndAllowThreads(__tstate); | |
12346 | if (PyErr_Occurred()) SWIG_fail; | |
12347 | } | |
12348 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); | |
12349 | { | |
12350 | if (temp1) delete arg1; | |
12351 | } | |
12352 | return resultobj; | |
12353 | fail: | |
12354 | { | |
12355 | if (temp1) delete arg1; | |
12356 | } | |
12357 | return NULL; | |
12358 | } | |
12359 | ||
12360 | ||
c370783e | 12361 | static PyObject *_wrap_new_NullFileTypeInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12362 | PyObject *resultobj; |
12363 | wxFileTypeInfo *result; | |
12364 | char *kwnames[] = { | |
12365 | NULL | |
12366 | }; | |
12367 | ||
12368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NullFileTypeInfo",kwnames)) goto fail; | |
12369 | { | |
12370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12371 | result = (wxFileTypeInfo *)new wxFileTypeInfo(); | |
12372 | ||
12373 | wxPyEndAllowThreads(__tstate); | |
12374 | if (PyErr_Occurred()) SWIG_fail; | |
12375 | } | |
12376 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); | |
12377 | return resultobj; | |
12378 | fail: | |
12379 | return NULL; | |
12380 | } | |
12381 | ||
12382 | ||
c370783e | 12383 | static PyObject *_wrap_FileTypeInfo_IsValid(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12384 | PyObject *resultobj; |
12385 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12386 | bool result; | |
12387 | PyObject * obj0 = 0 ; | |
12388 | char *kwnames[] = { | |
12389 | (char *) "self", NULL | |
12390 | }; | |
12391 | ||
12392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_IsValid",kwnames,&obj0)) goto fail; | |
12393 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12394 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12395 | { | |
12396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12397 | result = (bool)((wxFileTypeInfo const *)arg1)->IsValid(); | |
12398 | ||
12399 | wxPyEndAllowThreads(__tstate); | |
12400 | if (PyErr_Occurred()) SWIG_fail; | |
12401 | } | |
12402 | { | |
12403 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12404 | } | |
12405 | return resultobj; | |
12406 | fail: | |
12407 | return NULL; | |
12408 | } | |
12409 | ||
12410 | ||
c370783e | 12411 | static PyObject *_wrap_FileTypeInfo_SetIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12412 | PyObject *resultobj; |
12413 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12414 | wxString *arg2 = 0 ; | |
12415 | int arg3 = (int) 0 ; | |
b411df4a | 12416 | bool temp2 = false ; |
d55e5bfc RD |
12417 | PyObject * obj0 = 0 ; |
12418 | PyObject * obj1 = 0 ; | |
12419 | PyObject * obj2 = 0 ; | |
12420 | char *kwnames[] = { | |
12421 | (char *) "self",(char *) "iconFile",(char *) "iconIndex", NULL | |
12422 | }; | |
12423 | ||
12424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileTypeInfo_SetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12425 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12426 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12427 | { | |
12428 | arg2 = wxString_in_helper(obj1); | |
12429 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 12430 | temp2 = true; |
d55e5bfc RD |
12431 | } |
12432 | if (obj2) { | |
c370783e | 12433 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
12434 | if (PyErr_Occurred()) SWIG_fail; |
12435 | } | |
12436 | { | |
12437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12438 | (arg1)->SetIcon((wxString const &)*arg2,arg3); | |
12439 | ||
12440 | wxPyEndAllowThreads(__tstate); | |
12441 | if (PyErr_Occurred()) SWIG_fail; | |
12442 | } | |
12443 | Py_INCREF(Py_None); resultobj = Py_None; | |
12444 | { | |
12445 | if (temp2) | |
12446 | delete arg2; | |
12447 | } | |
12448 | return resultobj; | |
12449 | fail: | |
12450 | { | |
12451 | if (temp2) | |
12452 | delete arg2; | |
12453 | } | |
12454 | return NULL; | |
12455 | } | |
12456 | ||
12457 | ||
c370783e | 12458 | static PyObject *_wrap_FileTypeInfo_SetShortDesc(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12459 | PyObject *resultobj; |
12460 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12461 | wxString *arg2 = 0 ; | |
b411df4a | 12462 | bool temp2 = false ; |
d55e5bfc RD |
12463 | PyObject * obj0 = 0 ; |
12464 | PyObject * obj1 = 0 ; | |
12465 | char *kwnames[] = { | |
12466 | (char *) "self",(char *) "shortDesc", NULL | |
12467 | }; | |
12468 | ||
12469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileTypeInfo_SetShortDesc",kwnames,&obj0,&obj1)) goto fail; | |
12470 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12471 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12472 | { | |
12473 | arg2 = wxString_in_helper(obj1); | |
12474 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 12475 | temp2 = true; |
d55e5bfc RD |
12476 | } |
12477 | { | |
12478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12479 | (arg1)->SetShortDesc((wxString const &)*arg2); | |
12480 | ||
12481 | wxPyEndAllowThreads(__tstate); | |
12482 | if (PyErr_Occurred()) SWIG_fail; | |
12483 | } | |
12484 | Py_INCREF(Py_None); resultobj = Py_None; | |
12485 | { | |
12486 | if (temp2) | |
12487 | delete arg2; | |
12488 | } | |
12489 | return resultobj; | |
12490 | fail: | |
12491 | { | |
12492 | if (temp2) | |
12493 | delete arg2; | |
12494 | } | |
12495 | return NULL; | |
12496 | } | |
12497 | ||
12498 | ||
c370783e | 12499 | static PyObject *_wrap_FileTypeInfo_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12500 | PyObject *resultobj; |
12501 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12502 | wxString *result; | |
12503 | PyObject * obj0 = 0 ; | |
12504 | char *kwnames[] = { | |
12505 | (char *) "self", NULL | |
12506 | }; | |
12507 | ||
12508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetMimeType",kwnames,&obj0)) goto fail; | |
12509 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12510 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12511 | { | |
12512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12513 | { | |
12514 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetMimeType(); | |
12515 | result = (wxString *) &_result_ref; | |
12516 | } | |
12517 | ||
12518 | wxPyEndAllowThreads(__tstate); | |
12519 | if (PyErr_Occurred()) SWIG_fail; | |
12520 | } | |
12521 | { | |
12522 | #if wxUSE_UNICODE | |
12523 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12524 | #else | |
12525 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12526 | #endif | |
12527 | } | |
12528 | return resultobj; | |
12529 | fail: | |
12530 | return NULL; | |
12531 | } | |
12532 | ||
12533 | ||
c370783e | 12534 | static PyObject *_wrap_FileTypeInfo_GetOpenCommand(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12535 | PyObject *resultobj; |
12536 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12537 | wxString *result; | |
12538 | PyObject * obj0 = 0 ; | |
12539 | char *kwnames[] = { | |
12540 | (char *) "self", NULL | |
12541 | }; | |
12542 | ||
12543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetOpenCommand",kwnames,&obj0)) goto fail; | |
12544 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12545 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12546 | { | |
12547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12548 | { | |
12549 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetOpenCommand(); | |
12550 | result = (wxString *) &_result_ref; | |
12551 | } | |
12552 | ||
12553 | wxPyEndAllowThreads(__tstate); | |
12554 | if (PyErr_Occurred()) SWIG_fail; | |
12555 | } | |
12556 | { | |
12557 | #if wxUSE_UNICODE | |
12558 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12559 | #else | |
12560 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12561 | #endif | |
12562 | } | |
12563 | return resultobj; | |
12564 | fail: | |
12565 | return NULL; | |
12566 | } | |
12567 | ||
12568 | ||
c370783e | 12569 | static PyObject *_wrap_FileTypeInfo_GetPrintCommand(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12570 | PyObject *resultobj; |
12571 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12572 | wxString *result; | |
12573 | PyObject * obj0 = 0 ; | |
12574 | char *kwnames[] = { | |
12575 | (char *) "self", NULL | |
12576 | }; | |
12577 | ||
12578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetPrintCommand",kwnames,&obj0)) goto fail; | |
12579 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12580 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12581 | { | |
12582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12583 | { | |
12584 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetPrintCommand(); | |
12585 | result = (wxString *) &_result_ref; | |
12586 | } | |
12587 | ||
12588 | wxPyEndAllowThreads(__tstate); | |
12589 | if (PyErr_Occurred()) SWIG_fail; | |
12590 | } | |
12591 | { | |
12592 | #if wxUSE_UNICODE | |
12593 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12594 | #else | |
12595 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12596 | #endif | |
12597 | } | |
12598 | return resultobj; | |
12599 | fail: | |
12600 | return NULL; | |
12601 | } | |
12602 | ||
12603 | ||
c370783e | 12604 | static PyObject *_wrap_FileTypeInfo_GetShortDesc(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12605 | PyObject *resultobj; |
12606 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12607 | wxString *result; | |
12608 | PyObject * obj0 = 0 ; | |
12609 | char *kwnames[] = { | |
12610 | (char *) "self", NULL | |
12611 | }; | |
12612 | ||
12613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetShortDesc",kwnames,&obj0)) goto fail; | |
12614 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12616 | { | |
12617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12618 | { | |
12619 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetShortDesc(); | |
12620 | result = (wxString *) &_result_ref; | |
12621 | } | |
12622 | ||
12623 | wxPyEndAllowThreads(__tstate); | |
12624 | if (PyErr_Occurred()) SWIG_fail; | |
12625 | } | |
12626 | { | |
12627 | #if wxUSE_UNICODE | |
12628 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12629 | #else | |
12630 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12631 | #endif | |
12632 | } | |
12633 | return resultobj; | |
12634 | fail: | |
12635 | return NULL; | |
12636 | } | |
12637 | ||
12638 | ||
c370783e | 12639 | static PyObject *_wrap_FileTypeInfo_GetDescription(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12640 | PyObject *resultobj; |
12641 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12642 | wxString *result; | |
12643 | PyObject * obj0 = 0 ; | |
12644 | char *kwnames[] = { | |
12645 | (char *) "self", NULL | |
12646 | }; | |
12647 | ||
12648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetDescription",kwnames,&obj0)) goto fail; | |
12649 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12650 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12651 | { | |
12652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12653 | { | |
12654 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetDescription(); | |
12655 | result = (wxString *) &_result_ref; | |
12656 | } | |
12657 | ||
12658 | wxPyEndAllowThreads(__tstate); | |
12659 | if (PyErr_Occurred()) SWIG_fail; | |
12660 | } | |
12661 | { | |
12662 | #if wxUSE_UNICODE | |
12663 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12664 | #else | |
12665 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12666 | #endif | |
12667 | } | |
12668 | return resultobj; | |
12669 | fail: | |
12670 | return NULL; | |
12671 | } | |
12672 | ||
12673 | ||
c370783e | 12674 | static PyObject *_wrap_FileTypeInfo_GetExtensions(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12675 | PyObject *resultobj; |
12676 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12677 | wxArrayString *result; | |
12678 | PyObject * obj0 = 0 ; | |
12679 | char *kwnames[] = { | |
12680 | (char *) "self", NULL | |
12681 | }; | |
12682 | ||
12683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensions",kwnames,&obj0)) goto fail; | |
12684 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12685 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12686 | { | |
12687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12688 | { | |
12689 | wxArrayString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetExtensions(); | |
12690 | result = (wxArrayString *) &_result_ref; | |
12691 | } | |
12692 | ||
12693 | wxPyEndAllowThreads(__tstate); | |
12694 | if (PyErr_Occurred()) SWIG_fail; | |
12695 | } | |
12696 | { | |
12697 | resultobj = wxArrayString2PyList_helper(*result); | |
12698 | } | |
12699 | return resultobj; | |
12700 | fail: | |
12701 | return NULL; | |
12702 | } | |
12703 | ||
12704 | ||
c370783e | 12705 | static PyObject *_wrap_FileTypeInfo_GetExtensionsCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12706 | PyObject *resultobj; |
12707 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12708 | int result; | |
12709 | PyObject * obj0 = 0 ; | |
12710 | char *kwnames[] = { | |
12711 | (char *) "self", NULL | |
12712 | }; | |
12713 | ||
12714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensionsCount",kwnames,&obj0)) goto fail; | |
12715 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12716 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12717 | { | |
12718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12719 | result = (int)((wxFileTypeInfo const *)arg1)->GetExtensionsCount(); | |
12720 | ||
12721 | wxPyEndAllowThreads(__tstate); | |
12722 | if (PyErr_Occurred()) SWIG_fail; | |
12723 | } | |
c370783e | 12724 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
12725 | return resultobj; |
12726 | fail: | |
12727 | return NULL; | |
12728 | } | |
12729 | ||
12730 | ||
c370783e | 12731 | static PyObject *_wrap_FileTypeInfo_GetIconFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12732 | PyObject *resultobj; |
12733 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12734 | wxString *result; | |
12735 | PyObject * obj0 = 0 ; | |
12736 | char *kwnames[] = { | |
12737 | (char *) "self", NULL | |
12738 | }; | |
12739 | ||
12740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconFile",kwnames,&obj0)) goto fail; | |
12741 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12742 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12743 | { | |
12744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12745 | { | |
12746 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetIconFile(); | |
12747 | result = (wxString *) &_result_ref; | |
12748 | } | |
12749 | ||
12750 | wxPyEndAllowThreads(__tstate); | |
12751 | if (PyErr_Occurred()) SWIG_fail; | |
12752 | } | |
12753 | { | |
12754 | #if wxUSE_UNICODE | |
12755 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12756 | #else | |
12757 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12758 | #endif | |
12759 | } | |
12760 | return resultobj; | |
12761 | fail: | |
12762 | return NULL; | |
12763 | } | |
12764 | ||
12765 | ||
c370783e | 12766 | static PyObject *_wrap_FileTypeInfo_GetIconIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12767 | PyObject *resultobj; |
12768 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12769 | int result; | |
12770 | PyObject * obj0 = 0 ; | |
12771 | char *kwnames[] = { | |
12772 | (char *) "self", NULL | |
12773 | }; | |
12774 | ||
12775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconIndex",kwnames,&obj0)) goto fail; | |
12776 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12778 | { | |
12779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12780 | result = (int)((wxFileTypeInfo const *)arg1)->GetIconIndex(); | |
12781 | ||
12782 | wxPyEndAllowThreads(__tstate); | |
12783 | if (PyErr_Occurred()) SWIG_fail; | |
12784 | } | |
c370783e | 12785 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
12786 | return resultobj; |
12787 | fail: | |
12788 | return NULL; | |
12789 | } | |
12790 | ||
12791 | ||
c370783e | 12792 | static PyObject * FileTypeInfo_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
12793 | PyObject *obj; |
12794 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12795 | SWIG_TypeClientData(SWIGTYPE_p_wxFileTypeInfo, obj); | |
12796 | Py_INCREF(obj); | |
12797 | return Py_BuildValue((char *)""); | |
12798 | } | |
c370783e | 12799 | static PyObject *_wrap_new_FileType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12800 | PyObject *resultobj; |
12801 | wxFileTypeInfo *arg1 = 0 ; | |
12802 | wxFileType *result; | |
12803 | PyObject * obj0 = 0 ; | |
12804 | char *kwnames[] = { | |
12805 | (char *) "ftInfo", NULL | |
12806 | }; | |
12807 | ||
12808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileType",kwnames,&obj0)) goto fail; | |
12809 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12810 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12811 | SWIG_fail; | |
12812 | if (arg1 == NULL) { | |
12813 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12814 | SWIG_fail; | |
12815 | } | |
12816 | { | |
12817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12818 | result = (wxFileType *)new wxFileType((wxFileTypeInfo const &)*arg1); | |
12819 | ||
12820 | wxPyEndAllowThreads(__tstate); | |
12821 | if (PyErr_Occurred()) SWIG_fail; | |
12822 | } | |
12823 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); | |
12824 | return resultobj; | |
12825 | fail: | |
12826 | return NULL; | |
12827 | } | |
12828 | ||
12829 | ||
c370783e | 12830 | static PyObject *_wrap_delete_FileType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12831 | PyObject *resultobj; |
12832 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12833 | PyObject * obj0 = 0 ; | |
12834 | char *kwnames[] = { | |
12835 | (char *) "self", NULL | |
12836 | }; | |
12837 | ||
12838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileType",kwnames,&obj0)) goto fail; | |
12839 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12840 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12841 | { | |
12842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12843 | delete arg1; | |
12844 | ||
12845 | wxPyEndAllowThreads(__tstate); | |
12846 | if (PyErr_Occurred()) SWIG_fail; | |
12847 | } | |
12848 | Py_INCREF(Py_None); resultobj = Py_None; | |
12849 | return resultobj; | |
12850 | fail: | |
12851 | return NULL; | |
12852 | } | |
12853 | ||
12854 | ||
c370783e | 12855 | static PyObject *_wrap_FileType_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12856 | PyObject *resultobj; |
12857 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12858 | PyObject *result; | |
12859 | PyObject * obj0 = 0 ; | |
12860 | char *kwnames[] = { | |
12861 | (char *) "self", NULL | |
12862 | }; | |
12863 | ||
12864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeType",kwnames,&obj0)) goto fail; | |
12865 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12866 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12867 | { | |
12868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12869 | result = (PyObject *)wxFileType_GetMimeType(arg1); | |
12870 | ||
12871 | wxPyEndAllowThreads(__tstate); | |
12872 | if (PyErr_Occurred()) SWIG_fail; | |
12873 | } | |
12874 | resultobj = result; | |
12875 | return resultobj; | |
12876 | fail: | |
12877 | return NULL; | |
12878 | } | |
12879 | ||
12880 | ||
c370783e | 12881 | static PyObject *_wrap_FileType_GetMimeTypes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12882 | PyObject *resultobj; |
12883 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12884 | PyObject *result; | |
12885 | PyObject * obj0 = 0 ; | |
12886 | char *kwnames[] = { | |
12887 | (char *) "self", NULL | |
12888 | }; | |
12889 | ||
12890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeTypes",kwnames,&obj0)) goto fail; | |
12891 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12892 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12893 | { | |
12894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12895 | result = (PyObject *)wxFileType_GetMimeTypes(arg1); | |
12896 | ||
12897 | wxPyEndAllowThreads(__tstate); | |
12898 | if (PyErr_Occurred()) SWIG_fail; | |
12899 | } | |
12900 | resultobj = result; | |
12901 | return resultobj; | |
12902 | fail: | |
12903 | return NULL; | |
12904 | } | |
12905 | ||
12906 | ||
c370783e | 12907 | static PyObject *_wrap_FileType_GetExtensions(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12908 | PyObject *resultobj; |
12909 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12910 | PyObject *result; | |
12911 | PyObject * obj0 = 0 ; | |
12912 | char *kwnames[] = { | |
12913 | (char *) "self", NULL | |
12914 | }; | |
12915 | ||
12916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetExtensions",kwnames,&obj0)) goto fail; | |
12917 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12919 | { | |
12920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12921 | result = (PyObject *)wxFileType_GetExtensions(arg1); | |
12922 | ||
12923 | wxPyEndAllowThreads(__tstate); | |
12924 | if (PyErr_Occurred()) SWIG_fail; | |
12925 | } | |
12926 | resultobj = result; | |
12927 | return resultobj; | |
12928 | fail: | |
12929 | return NULL; | |
12930 | } | |
12931 | ||
12932 | ||
c370783e | 12933 | static PyObject *_wrap_FileType_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12934 | PyObject *resultobj; |
12935 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12936 | wxIcon *result; | |
12937 | PyObject * obj0 = 0 ; | |
12938 | char *kwnames[] = { | |
12939 | (char *) "self", NULL | |
12940 | }; | |
12941 | ||
12942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIcon",kwnames,&obj0)) goto fail; | |
12943 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12944 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12945 | { | |
12946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12947 | result = (wxIcon *)wxFileType_GetIcon(arg1); | |
12948 | ||
12949 | wxPyEndAllowThreads(__tstate); | |
12950 | if (PyErr_Occurred()) SWIG_fail; | |
12951 | } | |
12952 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); | |
12953 | return resultobj; | |
12954 | fail: | |
12955 | return NULL; | |
12956 | } | |
12957 | ||
12958 | ||
c370783e | 12959 | static PyObject *_wrap_FileType_GetIconInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12960 | PyObject *resultobj; |
12961 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12962 | PyObject *result; | |
12963 | PyObject * obj0 = 0 ; | |
12964 | char *kwnames[] = { | |
12965 | (char *) "self", NULL | |
12966 | }; | |
12967 | ||
12968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIconInfo",kwnames,&obj0)) goto fail; | |
12969 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12970 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12971 | { | |
12972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12973 | result = (PyObject *)wxFileType_GetIconInfo(arg1); | |
12974 | ||
12975 | wxPyEndAllowThreads(__tstate); | |
12976 | if (PyErr_Occurred()) SWIG_fail; | |
12977 | } | |
12978 | resultobj = result; | |
12979 | return resultobj; | |
12980 | fail: | |
12981 | return NULL; | |
12982 | } | |
12983 | ||
12984 | ||
c370783e | 12985 | static PyObject *_wrap_FileType_GetDescription(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12986 | PyObject *resultobj; |
12987 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12988 | PyObject *result; | |
12989 | PyObject * obj0 = 0 ; | |
12990 | char *kwnames[] = { | |
12991 | (char *) "self", NULL | |
12992 | }; | |
12993 | ||
12994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetDescription",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 | result = (PyObject *)wxFileType_GetDescription(arg1); | |
13000 | ||
13001 | wxPyEndAllowThreads(__tstate); | |
13002 | if (PyErr_Occurred()) SWIG_fail; | |
13003 | } | |
13004 | resultobj = result; | |
13005 | return resultobj; | |
13006 | fail: | |
13007 | return NULL; | |
13008 | } | |
13009 | ||
13010 | ||
c370783e | 13011 | static PyObject *_wrap_FileType_GetOpenCommand(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13012 | PyObject *resultobj; |
13013 | wxFileType *arg1 = (wxFileType *) 0 ; | |
13014 | wxString *arg2 = 0 ; | |
13015 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13016 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13017 | PyObject *result; | |
b411df4a RD |
13018 | bool temp2 = false ; |
13019 | bool temp3 = false ; | |
d55e5bfc RD |
13020 | PyObject * obj0 = 0 ; |
13021 | PyObject * obj1 = 0 ; | |
13022 | PyObject * obj2 = 0 ; | |
13023 | char *kwnames[] = { | |
13024 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
13025 | }; | |
13026 | ||
13027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetOpenCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13028 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
13029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13030 | { | |
13031 | arg2 = wxString_in_helper(obj1); | |
13032 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 13033 | temp2 = true; |
d55e5bfc RD |
13034 | } |
13035 | if (obj2) { | |
13036 | { | |
13037 | arg3 = wxString_in_helper(obj2); | |
13038 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 13039 | temp3 = true; |
d55e5bfc RD |
13040 | } |
13041 | } | |
13042 | { | |
13043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13044 | result = (PyObject *)wxFileType_GetOpenCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
13045 | ||
13046 | wxPyEndAllowThreads(__tstate); | |
13047 | if (PyErr_Occurred()) SWIG_fail; | |
13048 | } | |
13049 | resultobj = result; | |
13050 | { | |
13051 | if (temp2) | |
13052 | delete arg2; | |
13053 | } | |
13054 | { | |
13055 | if (temp3) | |
13056 | delete arg3; | |
13057 | } | |
13058 | return resultobj; | |
13059 | fail: | |
13060 | { | |
13061 | if (temp2) | |
13062 | delete arg2; | |
13063 | } | |
13064 | { | |
13065 | if (temp3) | |
13066 | delete arg3; | |
13067 | } | |
13068 | return NULL; | |
13069 | } | |
13070 | ||
13071 | ||
c370783e | 13072 | static PyObject *_wrap_FileType_GetPrintCommand(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13073 | PyObject *resultobj; |
13074 | wxFileType *arg1 = (wxFileType *) 0 ; | |
13075 | wxString *arg2 = 0 ; | |
13076 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13077 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13078 | PyObject *result; | |
b411df4a RD |
13079 | bool temp2 = false ; |
13080 | bool temp3 = false ; | |
d55e5bfc RD |
13081 | PyObject * obj0 = 0 ; |
13082 | PyObject * obj1 = 0 ; | |
13083 | PyObject * obj2 = 0 ; | |
13084 | char *kwnames[] = { | |
13085 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
13086 | }; | |
13087 | ||
13088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetPrintCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13089 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
13090 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13091 | { | |
13092 | arg2 = wxString_in_helper(obj1); | |
13093 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 13094 | temp2 = true; |
d55e5bfc RD |
13095 | } |
13096 | if (obj2) { | |
13097 | { | |
13098 | arg3 = wxString_in_helper(obj2); | |
13099 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 13100 | temp3 = true; |
d55e5bfc RD |
13101 | } |
13102 | } | |
13103 | { | |
13104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13105 | result = (PyObject *)wxFileType_GetPrintCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
13106 | ||
13107 | wxPyEndAllowThreads(__tstate); | |
13108 | if (PyErr_Occurred()) SWIG_fail; | |
13109 | } | |
13110 | resultobj = result; | |
13111 | { | |
13112 | if (temp2) | |
13113 | delete arg2; | |
13114 | } | |
13115 | { | |
13116 | if (temp3) | |
13117 | delete arg3; | |
13118 | } | |
13119 | return resultobj; | |
13120 | fail: | |
13121 | { | |
13122 | if (temp2) | |
13123 | delete arg2; | |
13124 | } | |
13125 | { | |
13126 | if (temp3) | |
13127 | delete arg3; | |
13128 | } | |
13129 | return NULL; | |
13130 | } | |
13131 | ||
13132 | ||
c370783e | 13133 | static PyObject *_wrap_FileType_GetAllCommands(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13134 | PyObject *resultobj; |
13135 | wxFileType *arg1 = (wxFileType *) 0 ; | |
13136 | wxString *arg2 = 0 ; | |
13137 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13138 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13139 | PyObject *result; | |
b411df4a RD |
13140 | bool temp2 = false ; |
13141 | bool temp3 = false ; | |
d55e5bfc RD |
13142 | PyObject * obj0 = 0 ; |
13143 | PyObject * obj1 = 0 ; | |
13144 | PyObject * obj2 = 0 ; | |
13145 | char *kwnames[] = { | |
13146 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
13147 | }; | |
13148 | ||
13149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetAllCommands",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13150 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
13151 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13152 | { | |
13153 | arg2 = wxString_in_helper(obj1); | |
13154 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 13155 | temp2 = true; |
d55e5bfc RD |
13156 | } |
13157 | if (obj2) { | |
13158 | { | |
13159 | arg3 = wxString_in_helper(obj2); | |
13160 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 13161 | temp3 = true; |
d55e5bfc RD |
13162 | } |
13163 | } | |
13164 | { | |
13165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13166 | result = (PyObject *)wxFileType_GetAllCommands(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
13167 | ||
13168 | wxPyEndAllowThreads(__tstate); | |
13169 | if (PyErr_Occurred()) SWIG_fail; | |
13170 | } | |
13171 | resultobj = result; | |
13172 | { | |
13173 | if (temp2) | |
13174 | delete arg2; | |
13175 | } | |
13176 | { | |
13177 | if (temp3) | |
13178 | delete arg3; | |
13179 | } | |
13180 | return resultobj; | |
13181 | fail: | |
13182 | { | |
13183 | if (temp2) | |
13184 | delete arg2; | |
13185 | } | |
13186 | { | |
13187 | if (temp3) | |
13188 | delete arg3; | |
13189 | } | |
13190 | return NULL; | |
13191 | } | |
13192 | ||
13193 | ||
c370783e | 13194 | static PyObject *_wrap_FileType_SetCommand(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13195 | PyObject *resultobj; |
13196 | wxFileType *arg1 = (wxFileType *) 0 ; | |
13197 | wxString *arg2 = 0 ; | |
13198 | wxString *arg3 = 0 ; | |
b411df4a | 13199 | bool arg4 = (bool) true ; |
d55e5bfc | 13200 | bool result; |
b411df4a RD |
13201 | bool temp2 = false ; |
13202 | bool temp3 = false ; | |
d55e5bfc RD |
13203 | PyObject * obj0 = 0 ; |
13204 | PyObject * obj1 = 0 ; | |
13205 | PyObject * obj2 = 0 ; | |
13206 | PyObject * obj3 = 0 ; | |
13207 | char *kwnames[] = { | |
13208 | (char *) "self",(char *) "cmd",(char *) "verb",(char *) "overwriteprompt", NULL | |
13209 | }; | |
13210 | ||
13211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FileType_SetCommand",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
13212 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
13213 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13214 | { | |
13215 | arg2 = wxString_in_helper(obj1); | |
13216 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 13217 | temp2 = true; |
d55e5bfc RD |
13218 | } |
13219 | { | |
13220 | arg3 = wxString_in_helper(obj2); | |
13221 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 13222 | temp3 = true; |
d55e5bfc RD |
13223 | } |
13224 | if (obj3) { | |
c370783e | 13225 | arg4 = (bool)SWIG_As_bool(obj3); |
d55e5bfc RD |
13226 | if (PyErr_Occurred()) SWIG_fail; |
13227 | } | |
13228 | { | |
13229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13230 | result = (bool)(arg1)->SetCommand((wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
13231 | ||
13232 | wxPyEndAllowThreads(__tstate); | |
13233 | if (PyErr_Occurred()) SWIG_fail; | |
13234 | } | |
13235 | { | |
13236 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13237 | } | |
13238 | { | |
13239 | if (temp2) | |
13240 | delete arg2; | |
13241 | } | |
13242 | { | |
13243 | if (temp3) | |
13244 | delete arg3; | |
13245 | } | |
13246 | return resultobj; | |
13247 | fail: | |
13248 | { | |
13249 | if (temp2) | |
13250 | delete arg2; | |
13251 | } | |
13252 | { | |
13253 | if (temp3) | |
13254 | delete arg3; | |
13255 | } | |
13256 | return NULL; | |
13257 | } | |
13258 | ||
13259 | ||
c370783e | 13260 | static PyObject *_wrap_FileType_SetDefaultIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13261 | PyObject *resultobj; |
13262 | wxFileType *arg1 = (wxFileType *) 0 ; | |
13263 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
13264 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
13265 | int arg3 = (int) 0 ; | |
13266 | bool result; | |
b411df4a | 13267 | bool temp2 = false ; |
d55e5bfc RD |
13268 | PyObject * obj0 = 0 ; |
13269 | PyObject * obj1 = 0 ; | |
13270 | PyObject * obj2 = 0 ; | |
13271 | char *kwnames[] = { | |
13272 | (char *) "self",(char *) "cmd",(char *) "index", NULL | |
13273 | }; | |
13274 | ||
13275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FileType_SetDefaultIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
13277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13278 | if (obj1) { | |
13279 | { | |
13280 | arg2 = wxString_in_helper(obj1); | |
13281 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 13282 | temp2 = true; |
d55e5bfc RD |
13283 | } |
13284 | } | |
13285 | if (obj2) { | |
c370783e | 13286 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
13287 | if (PyErr_Occurred()) SWIG_fail; |
13288 | } | |
13289 | { | |
13290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13291 | result = (bool)(arg1)->SetDefaultIcon((wxString const &)*arg2,arg3); | |
13292 | ||
13293 | wxPyEndAllowThreads(__tstate); | |
13294 | if (PyErr_Occurred()) SWIG_fail; | |
13295 | } | |
13296 | { | |
13297 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13298 | } | |
13299 | { | |
13300 | if (temp2) | |
13301 | delete arg2; | |
13302 | } | |
13303 | return resultobj; | |
13304 | fail: | |
13305 | { | |
13306 | if (temp2) | |
13307 | delete arg2; | |
13308 | } | |
13309 | return NULL; | |
13310 | } | |
13311 | ||
13312 | ||
c370783e | 13313 | static PyObject *_wrap_FileType_Unassociate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13314 | PyObject *resultobj; |
13315 | wxFileType *arg1 = (wxFileType *) 0 ; | |
13316 | bool result; | |
13317 | PyObject * obj0 = 0 ; | |
13318 | char *kwnames[] = { | |
13319 | (char *) "self", NULL | |
13320 | }; | |
13321 | ||
13322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_Unassociate",kwnames,&obj0)) goto fail; | |
13323 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
13324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13325 | { | |
13326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13327 | result = (bool)(arg1)->Unassociate(); | |
13328 | ||
13329 | wxPyEndAllowThreads(__tstate); | |
13330 | if (PyErr_Occurred()) SWIG_fail; | |
13331 | } | |
13332 | { | |
13333 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13334 | } | |
13335 | return resultobj; | |
13336 | fail: | |
13337 | return NULL; | |
13338 | } | |
13339 | ||
13340 | ||
c370783e | 13341 | static PyObject *_wrap_FileType_ExpandCommand(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13342 | PyObject *resultobj; |
13343 | wxString *arg1 = 0 ; | |
13344 | wxString *arg2 = 0 ; | |
13345 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13346 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13347 | wxString result; | |
b411df4a RD |
13348 | bool temp1 = false ; |
13349 | bool temp2 = false ; | |
13350 | bool temp3 = false ; | |
d55e5bfc RD |
13351 | PyObject * obj0 = 0 ; |
13352 | PyObject * obj1 = 0 ; | |
13353 | PyObject * obj2 = 0 ; | |
13354 | char *kwnames[] = { | |
13355 | (char *) "command",(char *) "filename",(char *) "mimetype", NULL | |
13356 | }; | |
13357 | ||
13358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_ExpandCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13359 | { | |
13360 | arg1 = wxString_in_helper(obj0); | |
13361 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 13362 | temp1 = true; |
d55e5bfc RD |
13363 | } |
13364 | { | |
13365 | arg2 = wxString_in_helper(obj1); | |
13366 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 13367 | temp2 = true; |
d55e5bfc RD |
13368 | } |
13369 | if (obj2) { | |
13370 | { | |
13371 | arg3 = wxString_in_helper(obj2); | |
13372 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 13373 | temp3 = true; |
d55e5bfc RD |
13374 | } |
13375 | } | |
13376 | { | |
13377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13378 | result = FileType_ExpandCommand((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
13379 | ||
13380 | wxPyEndAllowThreads(__tstate); | |
13381 | if (PyErr_Occurred()) SWIG_fail; | |
13382 | } | |
13383 | { | |
13384 | #if wxUSE_UNICODE | |
13385 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13386 | #else | |
13387 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13388 | #endif | |
13389 | } | |
13390 | { | |
13391 | if (temp1) | |
13392 | delete arg1; | |
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 (temp1) | |
13406 | delete arg1; | |
13407 | } | |
13408 | { | |
13409 | if (temp2) | |
13410 | delete arg2; | |
13411 | } | |
13412 | { | |
13413 | if (temp3) | |
13414 | delete arg3; | |
13415 | } | |
13416 | return NULL; | |
13417 | } | |
13418 | ||
13419 | ||
c370783e | 13420 | static PyObject * FileType_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13421 | PyObject *obj; |
13422 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13423 | SWIG_TypeClientData(SWIGTYPE_p_wxFileType, obj); | |
13424 | Py_INCREF(obj); | |
13425 | return Py_BuildValue((char *)""); | |
13426 | } | |
c370783e | 13427 | static int _wrap_TheMimeTypesManager_set(PyObject *) { |
d55e5bfc RD |
13428 | PyErr_SetString(PyExc_TypeError,"Variable TheMimeTypesManager is read-only."); |
13429 | return 1; | |
13430 | } | |
13431 | ||
13432 | ||
13433 | static PyObject *_wrap_TheMimeTypesManager_get() { | |
13434 | PyObject *pyobj; | |
13435 | ||
13436 | pyobj = SWIG_NewPointerObj((void *)(wxTheMimeTypesManager), SWIGTYPE_p_wxMimeTypesManager, 0); | |
13437 | return pyobj; | |
13438 | } | |
13439 | ||
13440 | ||
c370783e | 13441 | static PyObject *_wrap_MimeTypesManager_IsOfType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13442 | PyObject *resultobj; |
13443 | wxString *arg1 = 0 ; | |
13444 | wxString *arg2 = 0 ; | |
13445 | bool result; | |
b411df4a RD |
13446 | bool temp1 = false ; |
13447 | bool temp2 = false ; | |
d55e5bfc RD |
13448 | PyObject * obj0 = 0 ; |
13449 | PyObject * obj1 = 0 ; | |
13450 | char *kwnames[] = { | |
13451 | (char *) "mimeType",(char *) "wildcard", NULL | |
13452 | }; | |
13453 | ||
13454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_IsOfType",kwnames,&obj0,&obj1)) goto fail; | |
13455 | { | |
13456 | arg1 = wxString_in_helper(obj0); | |
13457 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 13458 | temp1 = true; |
d55e5bfc RD |
13459 | } |
13460 | { | |
13461 | arg2 = wxString_in_helper(obj1); | |
13462 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 13463 | temp2 = true; |
d55e5bfc RD |
13464 | } |
13465 | { | |
13466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13467 | result = (bool)wxMimeTypesManager::IsOfType((wxString const &)*arg1,(wxString const &)*arg2); | |
13468 | ||
13469 | wxPyEndAllowThreads(__tstate); | |
13470 | if (PyErr_Occurred()) SWIG_fail; | |
13471 | } | |
13472 | { | |
13473 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13474 | } | |
13475 | { | |
13476 | if (temp1) | |
13477 | delete arg1; | |
13478 | } | |
13479 | { | |
13480 | if (temp2) | |
13481 | delete arg2; | |
13482 | } | |
13483 | return resultobj; | |
13484 | fail: | |
13485 | { | |
13486 | if (temp1) | |
13487 | delete arg1; | |
13488 | } | |
13489 | { | |
13490 | if (temp2) | |
13491 | delete arg2; | |
13492 | } | |
13493 | return NULL; | |
13494 | } | |
13495 | ||
13496 | ||
c370783e | 13497 | static PyObject *_wrap_new_MimeTypesManager(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13498 | PyObject *resultobj; |
13499 | wxMimeTypesManager *result; | |
13500 | char *kwnames[] = { | |
13501 | NULL | |
13502 | }; | |
13503 | ||
13504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MimeTypesManager",kwnames)) goto fail; | |
13505 | { | |
13506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13507 | result = (wxMimeTypesManager *)new wxMimeTypesManager(); | |
13508 | ||
13509 | wxPyEndAllowThreads(__tstate); | |
13510 | if (PyErr_Occurred()) SWIG_fail; | |
13511 | } | |
13512 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMimeTypesManager, 1); | |
13513 | return resultobj; | |
13514 | fail: | |
13515 | return NULL; | |
13516 | } | |
13517 | ||
13518 | ||
c370783e | 13519 | static PyObject *_wrap_MimeTypesManager_Initialize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13520 | PyObject *resultobj; |
13521 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13522 | int arg2 = (int) wxMAILCAP_ALL ; | |
13523 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13524 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
b411df4a | 13525 | bool temp3 = false ; |
d55e5bfc RD |
13526 | PyObject * obj0 = 0 ; |
13527 | PyObject * obj1 = 0 ; | |
13528 | PyObject * obj2 = 0 ; | |
13529 | char *kwnames[] = { | |
13530 | (char *) "self",(char *) "mailcapStyle",(char *) "extraDir", NULL | |
13531 | }; | |
13532 | ||
13533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MimeTypesManager_Initialize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13534 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13535 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13536 | if (obj1) { | |
c370783e | 13537 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13538 | if (PyErr_Occurred()) SWIG_fail; |
13539 | } | |
13540 | if (obj2) { | |
13541 | { | |
13542 | arg3 = wxString_in_helper(obj2); | |
13543 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 13544 | temp3 = true; |
d55e5bfc RD |
13545 | } |
13546 | } | |
13547 | { | |
13548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13549 | (arg1)->Initialize(arg2,(wxString const &)*arg3); | |
13550 | ||
13551 | wxPyEndAllowThreads(__tstate); | |
13552 | if (PyErr_Occurred()) SWIG_fail; | |
13553 | } | |
13554 | Py_INCREF(Py_None); resultobj = Py_None; | |
13555 | { | |
13556 | if (temp3) | |
13557 | delete arg3; | |
13558 | } | |
13559 | return resultobj; | |
13560 | fail: | |
13561 | { | |
13562 | if (temp3) | |
13563 | delete arg3; | |
13564 | } | |
13565 | return NULL; | |
13566 | } | |
13567 | ||
13568 | ||
c370783e | 13569 | static PyObject *_wrap_MimeTypesManager_ClearData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13570 | PyObject *resultobj; |
13571 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13572 | PyObject * obj0 = 0 ; | |
13573 | char *kwnames[] = { | |
13574 | (char *) "self", NULL | |
13575 | }; | |
13576 | ||
13577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_ClearData",kwnames,&obj0)) goto fail; | |
13578 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13579 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13580 | { | |
13581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13582 | (arg1)->ClearData(); | |
13583 | ||
13584 | wxPyEndAllowThreads(__tstate); | |
13585 | if (PyErr_Occurred()) SWIG_fail; | |
13586 | } | |
13587 | Py_INCREF(Py_None); resultobj = Py_None; | |
13588 | return resultobj; | |
13589 | fail: | |
13590 | return NULL; | |
13591 | } | |
13592 | ||
13593 | ||
c370783e | 13594 | static PyObject *_wrap_MimeTypesManager_GetFileTypeFromExtension(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13595 | PyObject *resultobj; |
13596 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13597 | wxString *arg2 = 0 ; | |
13598 | wxFileType *result; | |
b411df4a | 13599 | bool temp2 = false ; |
d55e5bfc RD |
13600 | PyObject * obj0 = 0 ; |
13601 | PyObject * obj1 = 0 ; | |
13602 | char *kwnames[] = { | |
13603 | (char *) "self",(char *) "ext", NULL | |
13604 | }; | |
13605 | ||
13606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromExtension",kwnames,&obj0,&obj1)) goto fail; | |
13607 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13608 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13609 | { | |
13610 | arg2 = wxString_in_helper(obj1); | |
13611 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 13612 | temp2 = true; |
d55e5bfc RD |
13613 | } |
13614 | { | |
13615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13616 | result = (wxFileType *)(arg1)->GetFileTypeFromExtension((wxString const &)*arg2); | |
13617 | ||
13618 | wxPyEndAllowThreads(__tstate); | |
13619 | if (PyErr_Occurred()) SWIG_fail; | |
13620 | } | |
13621 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); | |
13622 | { | |
13623 | if (temp2) | |
13624 | delete arg2; | |
13625 | } | |
13626 | return resultobj; | |
13627 | fail: | |
13628 | { | |
13629 | if (temp2) | |
13630 | delete arg2; | |
13631 | } | |
13632 | return NULL; | |
13633 | } | |
13634 | ||
13635 | ||
c370783e | 13636 | static PyObject *_wrap_MimeTypesManager_GetFileTypeFromMimeType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13637 | PyObject *resultobj; |
13638 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13639 | wxString *arg2 = 0 ; | |
13640 | wxFileType *result; | |
b411df4a | 13641 | bool temp2 = false ; |
d55e5bfc RD |
13642 | PyObject * obj0 = 0 ; |
13643 | PyObject * obj1 = 0 ; | |
13644 | char *kwnames[] = { | |
13645 | (char *) "self",(char *) "mimeType", NULL | |
13646 | }; | |
13647 | ||
13648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromMimeType",kwnames,&obj0,&obj1)) goto fail; | |
13649 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13650 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13651 | { | |
13652 | arg2 = wxString_in_helper(obj1); | |
13653 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 13654 | temp2 = true; |
d55e5bfc RD |
13655 | } |
13656 | { | |
13657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13658 | result = (wxFileType *)(arg1)->GetFileTypeFromMimeType((wxString const &)*arg2); | |
13659 | ||
13660 | wxPyEndAllowThreads(__tstate); | |
13661 | if (PyErr_Occurred()) SWIG_fail; | |
13662 | } | |
13663 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); | |
13664 | { | |
13665 | if (temp2) | |
13666 | delete arg2; | |
13667 | } | |
13668 | return resultobj; | |
13669 | fail: | |
13670 | { | |
13671 | if (temp2) | |
13672 | delete arg2; | |
13673 | } | |
13674 | return NULL; | |
13675 | } | |
13676 | ||
13677 | ||
c370783e | 13678 | static PyObject *_wrap_MimeTypesManager_ReadMailcap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13679 | PyObject *resultobj; |
13680 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13681 | wxString *arg2 = 0 ; | |
b411df4a | 13682 | bool arg3 = (bool) false ; |
d55e5bfc | 13683 | bool result; |
b411df4a | 13684 | bool temp2 = false ; |
d55e5bfc RD |
13685 | PyObject * obj0 = 0 ; |
13686 | PyObject * obj1 = 0 ; | |
13687 | PyObject * obj2 = 0 ; | |
13688 | char *kwnames[] = { | |
13689 | (char *) "self",(char *) "filename",(char *) "fallback", NULL | |
13690 | }; | |
13691 | ||
13692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MimeTypesManager_ReadMailcap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13693 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13694 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13695 | { | |
13696 | arg2 = wxString_in_helper(obj1); | |
13697 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 13698 | temp2 = true; |
d55e5bfc RD |
13699 | } |
13700 | if (obj2) { | |
c370783e | 13701 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
13702 | if (PyErr_Occurred()) SWIG_fail; |
13703 | } | |
13704 | { | |
13705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13706 | result = (bool)(arg1)->ReadMailcap((wxString const &)*arg2,arg3); | |
13707 | ||
13708 | wxPyEndAllowThreads(__tstate); | |
13709 | if (PyErr_Occurred()) SWIG_fail; | |
13710 | } | |
13711 | { | |
13712 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13713 | } | |
13714 | { | |
13715 | if (temp2) | |
13716 | delete arg2; | |
13717 | } | |
13718 | return resultobj; | |
13719 | fail: | |
13720 | { | |
13721 | if (temp2) | |
13722 | delete arg2; | |
13723 | } | |
13724 | return NULL; | |
13725 | } | |
13726 | ||
13727 | ||
c370783e | 13728 | static PyObject *_wrap_MimeTypesManager_ReadMimeTypes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13729 | PyObject *resultobj; |
13730 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13731 | wxString *arg2 = 0 ; | |
13732 | bool result; | |
b411df4a | 13733 | bool temp2 = false ; |
d55e5bfc RD |
13734 | PyObject * obj0 = 0 ; |
13735 | PyObject * obj1 = 0 ; | |
13736 | char *kwnames[] = { | |
13737 | (char *) "self",(char *) "filename", NULL | |
13738 | }; | |
13739 | ||
13740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_ReadMimeTypes",kwnames,&obj0,&obj1)) goto fail; | |
13741 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13742 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13743 | { | |
13744 | arg2 = wxString_in_helper(obj1); | |
13745 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 13746 | temp2 = true; |
d55e5bfc RD |
13747 | } |
13748 | { | |
13749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13750 | result = (bool)(arg1)->ReadMimeTypes((wxString const &)*arg2); | |
13751 | ||
13752 | wxPyEndAllowThreads(__tstate); | |
13753 | if (PyErr_Occurred()) SWIG_fail; | |
13754 | } | |
13755 | { | |
13756 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13757 | } | |
13758 | { | |
13759 | if (temp2) | |
13760 | delete arg2; | |
13761 | } | |
13762 | return resultobj; | |
13763 | fail: | |
13764 | { | |
13765 | if (temp2) | |
13766 | delete arg2; | |
13767 | } | |
13768 | return NULL; | |
13769 | } | |
13770 | ||
13771 | ||
c370783e | 13772 | static PyObject *_wrap_MimeTypesManager_EnumAllFileTypes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13773 | PyObject *resultobj; |
13774 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13775 | PyObject *result; | |
13776 | PyObject * obj0 = 0 ; | |
13777 | char *kwnames[] = { | |
13778 | (char *) "self", NULL | |
13779 | }; | |
13780 | ||
13781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_EnumAllFileTypes",kwnames,&obj0)) goto fail; | |
13782 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13783 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13784 | { | |
13785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13786 | result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(arg1); | |
13787 | ||
13788 | wxPyEndAllowThreads(__tstate); | |
13789 | if (PyErr_Occurred()) SWIG_fail; | |
13790 | } | |
13791 | resultobj = result; | |
13792 | return resultobj; | |
13793 | fail: | |
13794 | return NULL; | |
13795 | } | |
13796 | ||
13797 | ||
c370783e | 13798 | static PyObject *_wrap_MimeTypesManager_AddFallback(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13799 | PyObject *resultobj; |
13800 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13801 | wxFileTypeInfo *arg2 = 0 ; | |
13802 | PyObject * obj0 = 0 ; | |
13803 | PyObject * obj1 = 0 ; | |
13804 | char *kwnames[] = { | |
13805 | (char *) "self",(char *) "ft", NULL | |
13806 | }; | |
13807 | ||
13808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_AddFallback",kwnames,&obj0,&obj1)) goto fail; | |
13809 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13810 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13811 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo, | |
13812 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13813 | SWIG_fail; | |
13814 | if (arg2 == NULL) { | |
13815 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13816 | SWIG_fail; | |
13817 | } | |
13818 | { | |
13819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13820 | (arg1)->AddFallback((wxFileTypeInfo const &)*arg2); | |
13821 | ||
13822 | wxPyEndAllowThreads(__tstate); | |
13823 | if (PyErr_Occurred()) SWIG_fail; | |
13824 | } | |
13825 | Py_INCREF(Py_None); resultobj = Py_None; | |
13826 | return resultobj; | |
13827 | fail: | |
13828 | return NULL; | |
13829 | } | |
13830 | ||
13831 | ||
c370783e | 13832 | static PyObject *_wrap_MimeTypesManager_Associate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13833 | PyObject *resultobj; |
13834 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13835 | wxFileTypeInfo *arg2 = 0 ; | |
13836 | wxFileType *result; | |
13837 | PyObject * obj0 = 0 ; | |
13838 | PyObject * obj1 = 0 ; | |
13839 | char *kwnames[] = { | |
13840 | (char *) "self",(char *) "ftInfo", NULL | |
13841 | }; | |
13842 | ||
13843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Associate",kwnames,&obj0,&obj1)) goto fail; | |
13844 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13846 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo, | |
13847 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13848 | SWIG_fail; | |
13849 | if (arg2 == NULL) { | |
13850 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13851 | SWIG_fail; | |
13852 | } | |
13853 | { | |
13854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13855 | result = (wxFileType *)(arg1)->Associate((wxFileTypeInfo const &)*arg2); | |
13856 | ||
13857 | wxPyEndAllowThreads(__tstate); | |
13858 | if (PyErr_Occurred()) SWIG_fail; | |
13859 | } | |
13860 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); | |
13861 | return resultobj; | |
13862 | fail: | |
13863 | return NULL; | |
13864 | } | |
13865 | ||
13866 | ||
c370783e | 13867 | static PyObject *_wrap_MimeTypesManager_Unassociate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13868 | PyObject *resultobj; |
13869 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13870 | wxFileType *arg2 = (wxFileType *) 0 ; | |
13871 | bool result; | |
13872 | PyObject * obj0 = 0 ; | |
13873 | PyObject * obj1 = 0 ; | |
13874 | char *kwnames[] = { | |
13875 | (char *) "self",(char *) "ft", NULL | |
13876 | }; | |
13877 | ||
13878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Unassociate",kwnames,&obj0,&obj1)) goto fail; | |
13879 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13880 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13881 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileType, | |
13882 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13883 | { | |
13884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13885 | result = (bool)(arg1)->Unassociate(arg2); | |
13886 | ||
13887 | wxPyEndAllowThreads(__tstate); | |
13888 | if (PyErr_Occurred()) SWIG_fail; | |
13889 | } | |
13890 | { | |
13891 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13892 | } | |
13893 | return resultobj; | |
13894 | fail: | |
13895 | return NULL; | |
13896 | } | |
13897 | ||
13898 | ||
c370783e | 13899 | static PyObject *_wrap_delete_MimeTypesManager(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13900 | PyObject *resultobj; |
13901 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13902 | PyObject * obj0 = 0 ; | |
13903 | char *kwnames[] = { | |
13904 | (char *) "self", NULL | |
13905 | }; | |
13906 | ||
13907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MimeTypesManager",kwnames,&obj0)) goto fail; | |
13908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13910 | { | |
13911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13912 | delete arg1; | |
13913 | ||
13914 | wxPyEndAllowThreads(__tstate); | |
13915 | if (PyErr_Occurred()) SWIG_fail; | |
13916 | } | |
13917 | Py_INCREF(Py_None); resultobj = Py_None; | |
13918 | return resultobj; | |
13919 | fail: | |
13920 | return NULL; | |
13921 | } | |
13922 | ||
13923 | ||
c370783e | 13924 | static PyObject * MimeTypesManager_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13925 | PyObject *obj; |
13926 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13927 | SWIG_TypeClientData(SWIGTYPE_p_wxMimeTypesManager, obj); | |
13928 | Py_INCREF(obj); | |
13929 | return Py_BuildValue((char *)""); | |
13930 | } | |
c370783e | 13931 | static int _wrap_ART_TOOLBAR_set(PyObject *) { |
d55e5bfc RD |
13932 | PyErr_SetString(PyExc_TypeError,"Variable ART_TOOLBAR is read-only."); |
13933 | return 1; | |
13934 | } | |
13935 | ||
13936 | ||
13937 | static PyObject *_wrap_ART_TOOLBAR_get() { | |
13938 | PyObject *pyobj; | |
13939 | ||
13940 | { | |
13941 | #if wxUSE_UNICODE | |
13942 | pyobj = PyUnicode_FromWideChar((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len()); | |
13943 | #else | |
13944 | pyobj = PyString_FromStringAndSize((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len()); | |
13945 | #endif | |
13946 | } | |
13947 | return pyobj; | |
13948 | } | |
13949 | ||
13950 | ||
c370783e | 13951 | static int _wrap_ART_MENU_set(PyObject *) { |
d55e5bfc RD |
13952 | PyErr_SetString(PyExc_TypeError,"Variable ART_MENU is read-only."); |
13953 | return 1; | |
13954 | } | |
13955 | ||
13956 | ||
13957 | static PyObject *_wrap_ART_MENU_get() { | |
13958 | PyObject *pyobj; | |
13959 | ||
13960 | { | |
13961 | #if wxUSE_UNICODE | |
13962 | pyobj = PyUnicode_FromWideChar((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len()); | |
13963 | #else | |
13964 | pyobj = PyString_FromStringAndSize((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len()); | |
13965 | #endif | |
13966 | } | |
13967 | return pyobj; | |
13968 | } | |
13969 | ||
13970 | ||
c370783e | 13971 | static int _wrap_ART_FRAME_ICON_set(PyObject *) { |
d55e5bfc RD |
13972 | PyErr_SetString(PyExc_TypeError,"Variable ART_FRAME_ICON is read-only."); |
13973 | return 1; | |
13974 | } | |
13975 | ||
13976 | ||
13977 | static PyObject *_wrap_ART_FRAME_ICON_get() { | |
13978 | PyObject *pyobj; | |
13979 | ||
13980 | { | |
13981 | #if wxUSE_UNICODE | |
13982 | pyobj = PyUnicode_FromWideChar((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len()); | |
13983 | #else | |
13984 | pyobj = PyString_FromStringAndSize((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len()); | |
13985 | #endif | |
13986 | } | |
13987 | return pyobj; | |
13988 | } | |
13989 | ||
13990 | ||
c370783e | 13991 | static int _wrap_ART_CMN_DIALOG_set(PyObject *) { |
d55e5bfc RD |
13992 | PyErr_SetString(PyExc_TypeError,"Variable ART_CMN_DIALOG is read-only."); |
13993 | return 1; | |
13994 | } | |
13995 | ||
13996 | ||
13997 | static PyObject *_wrap_ART_CMN_DIALOG_get() { | |
13998 | PyObject *pyobj; | |
13999 | ||
14000 | { | |
14001 | #if wxUSE_UNICODE | |
14002 | pyobj = PyUnicode_FromWideChar((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len()); | |
14003 | #else | |
14004 | pyobj = PyString_FromStringAndSize((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len()); | |
14005 | #endif | |
14006 | } | |
14007 | return pyobj; | |
14008 | } | |
14009 | ||
14010 | ||
c370783e | 14011 | static int _wrap_ART_HELP_BROWSER_set(PyObject *) { |
d55e5bfc RD |
14012 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BROWSER is read-only."); |
14013 | return 1; | |
14014 | } | |
14015 | ||
14016 | ||
14017 | static PyObject *_wrap_ART_HELP_BROWSER_get() { | |
14018 | PyObject *pyobj; | |
14019 | ||
14020 | { | |
14021 | #if wxUSE_UNICODE | |
14022 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len()); | |
14023 | #else | |
14024 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len()); | |
14025 | #endif | |
14026 | } | |
14027 | return pyobj; | |
14028 | } | |
14029 | ||
14030 | ||
c370783e | 14031 | static int _wrap_ART_MESSAGE_BOX_set(PyObject *) { |
d55e5bfc RD |
14032 | PyErr_SetString(PyExc_TypeError,"Variable ART_MESSAGE_BOX is read-only."); |
14033 | return 1; | |
14034 | } | |
14035 | ||
14036 | ||
14037 | static PyObject *_wrap_ART_MESSAGE_BOX_get() { | |
14038 | PyObject *pyobj; | |
14039 | ||
14040 | { | |
14041 | #if wxUSE_UNICODE | |
14042 | pyobj = PyUnicode_FromWideChar((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len()); | |
14043 | #else | |
14044 | pyobj = PyString_FromStringAndSize((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len()); | |
14045 | #endif | |
14046 | } | |
14047 | return pyobj; | |
14048 | } | |
14049 | ||
14050 | ||
c370783e | 14051 | static int _wrap_ART_BUTTON_set(PyObject *) { |
4cf4100f RD |
14052 | PyErr_SetString(PyExc_TypeError,"Variable ART_BUTTON is read-only."); |
14053 | return 1; | |
14054 | } | |
14055 | ||
14056 | ||
14057 | static PyObject *_wrap_ART_BUTTON_get() { | |
14058 | PyObject *pyobj; | |
14059 | ||
14060 | { | |
14061 | #if wxUSE_UNICODE | |
14062 | pyobj = PyUnicode_FromWideChar((&wxPyART_BUTTON)->c_str(), (&wxPyART_BUTTON)->Len()); | |
14063 | #else | |
14064 | pyobj = PyString_FromStringAndSize((&wxPyART_BUTTON)->c_str(), (&wxPyART_BUTTON)->Len()); | |
14065 | #endif | |
14066 | } | |
14067 | return pyobj; | |
14068 | } | |
14069 | ||
14070 | ||
c370783e | 14071 | static int _wrap_ART_OTHER_set(PyObject *) { |
d55e5bfc RD |
14072 | PyErr_SetString(PyExc_TypeError,"Variable ART_OTHER is read-only."); |
14073 | return 1; | |
14074 | } | |
14075 | ||
14076 | ||
14077 | static PyObject *_wrap_ART_OTHER_get() { | |
14078 | PyObject *pyobj; | |
14079 | ||
14080 | { | |
14081 | #if wxUSE_UNICODE | |
14082 | pyobj = PyUnicode_FromWideChar((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len()); | |
14083 | #else | |
14084 | pyobj = PyString_FromStringAndSize((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len()); | |
14085 | #endif | |
14086 | } | |
14087 | return pyobj; | |
14088 | } | |
14089 | ||
14090 | ||
c370783e | 14091 | static int _wrap_ART_ADD_BOOKMARK_set(PyObject *) { |
d55e5bfc RD |
14092 | PyErr_SetString(PyExc_TypeError,"Variable ART_ADD_BOOKMARK is read-only."); |
14093 | return 1; | |
14094 | } | |
14095 | ||
14096 | ||
14097 | static PyObject *_wrap_ART_ADD_BOOKMARK_get() { | |
14098 | PyObject *pyobj; | |
14099 | ||
14100 | { | |
14101 | #if wxUSE_UNICODE | |
14102 | pyobj = PyUnicode_FromWideChar((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len()); | |
14103 | #else | |
14104 | pyobj = PyString_FromStringAndSize((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len()); | |
14105 | #endif | |
14106 | } | |
14107 | return pyobj; | |
14108 | } | |
14109 | ||
14110 | ||
c370783e | 14111 | static int _wrap_ART_DEL_BOOKMARK_set(PyObject *) { |
d55e5bfc RD |
14112 | PyErr_SetString(PyExc_TypeError,"Variable ART_DEL_BOOKMARK is read-only."); |
14113 | return 1; | |
14114 | } | |
14115 | ||
14116 | ||
14117 | static PyObject *_wrap_ART_DEL_BOOKMARK_get() { | |
14118 | PyObject *pyobj; | |
14119 | ||
14120 | { | |
14121 | #if wxUSE_UNICODE | |
14122 | pyobj = PyUnicode_FromWideChar((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len()); | |
14123 | #else | |
14124 | pyobj = PyString_FromStringAndSize((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len()); | |
14125 | #endif | |
14126 | } | |
14127 | return pyobj; | |
14128 | } | |
14129 | ||
14130 | ||
c370783e | 14131 | static int _wrap_ART_HELP_SIDE_PANEL_set(PyObject *) { |
d55e5bfc RD |
14132 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SIDE_PANEL is read-only."); |
14133 | return 1; | |
14134 | } | |
14135 | ||
14136 | ||
14137 | static PyObject *_wrap_ART_HELP_SIDE_PANEL_get() { | |
14138 | PyObject *pyobj; | |
14139 | ||
14140 | { | |
14141 | #if wxUSE_UNICODE | |
14142 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len()); | |
14143 | #else | |
14144 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len()); | |
14145 | #endif | |
14146 | } | |
14147 | return pyobj; | |
14148 | } | |
14149 | ||
14150 | ||
c370783e | 14151 | static int _wrap_ART_HELP_SETTINGS_set(PyObject *) { |
d55e5bfc RD |
14152 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SETTINGS is read-only."); |
14153 | return 1; | |
14154 | } | |
14155 | ||
14156 | ||
14157 | static PyObject *_wrap_ART_HELP_SETTINGS_get() { | |
14158 | PyObject *pyobj; | |
14159 | ||
14160 | { | |
14161 | #if wxUSE_UNICODE | |
14162 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len()); | |
14163 | #else | |
14164 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len()); | |
14165 | #endif | |
14166 | } | |
14167 | return pyobj; | |
14168 | } | |
14169 | ||
14170 | ||
c370783e | 14171 | static int _wrap_ART_HELP_BOOK_set(PyObject *) { |
d55e5bfc RD |
14172 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BOOK is read-only."); |
14173 | return 1; | |
14174 | } | |
14175 | ||
14176 | ||
14177 | static PyObject *_wrap_ART_HELP_BOOK_get() { | |
14178 | PyObject *pyobj; | |
14179 | ||
14180 | { | |
14181 | #if wxUSE_UNICODE | |
14182 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len()); | |
14183 | #else | |
14184 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len()); | |
14185 | #endif | |
14186 | } | |
14187 | return pyobj; | |
14188 | } | |
14189 | ||
14190 | ||
c370783e | 14191 | static int _wrap_ART_HELP_FOLDER_set(PyObject *) { |
d55e5bfc RD |
14192 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_FOLDER is read-only."); |
14193 | return 1; | |
14194 | } | |
14195 | ||
14196 | ||
14197 | static PyObject *_wrap_ART_HELP_FOLDER_get() { | |
14198 | PyObject *pyobj; | |
14199 | ||
14200 | { | |
14201 | #if wxUSE_UNICODE | |
14202 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len()); | |
14203 | #else | |
14204 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len()); | |
14205 | #endif | |
14206 | } | |
14207 | return pyobj; | |
14208 | } | |
14209 | ||
14210 | ||
c370783e | 14211 | static int _wrap_ART_HELP_PAGE_set(PyObject *) { |
d55e5bfc RD |
14212 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_PAGE is read-only."); |
14213 | return 1; | |
14214 | } | |
14215 | ||
14216 | ||
14217 | static PyObject *_wrap_ART_HELP_PAGE_get() { | |
14218 | PyObject *pyobj; | |
14219 | ||
14220 | { | |
14221 | #if wxUSE_UNICODE | |
14222 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len()); | |
14223 | #else | |
14224 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len()); | |
14225 | #endif | |
14226 | } | |
14227 | return pyobj; | |
14228 | } | |
14229 | ||
14230 | ||
c370783e | 14231 | static int _wrap_ART_GO_BACK_set(PyObject *) { |
d55e5bfc RD |
14232 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_BACK is read-only."); |
14233 | return 1; | |
14234 | } | |
14235 | ||
14236 | ||
14237 | static PyObject *_wrap_ART_GO_BACK_get() { | |
14238 | PyObject *pyobj; | |
14239 | ||
14240 | { | |
14241 | #if wxUSE_UNICODE | |
14242 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len()); | |
14243 | #else | |
14244 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len()); | |
14245 | #endif | |
14246 | } | |
14247 | return pyobj; | |
14248 | } | |
14249 | ||
14250 | ||
c370783e | 14251 | static int _wrap_ART_GO_FORWARD_set(PyObject *) { |
d55e5bfc RD |
14252 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_FORWARD is read-only."); |
14253 | return 1; | |
14254 | } | |
14255 | ||
14256 | ||
14257 | static PyObject *_wrap_ART_GO_FORWARD_get() { | |
14258 | PyObject *pyobj; | |
14259 | ||
14260 | { | |
14261 | #if wxUSE_UNICODE | |
14262 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len()); | |
14263 | #else | |
14264 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len()); | |
14265 | #endif | |
14266 | } | |
14267 | return pyobj; | |
14268 | } | |
14269 | ||
14270 | ||
c370783e | 14271 | static int _wrap_ART_GO_UP_set(PyObject *) { |
d55e5bfc RD |
14272 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_UP is read-only."); |
14273 | return 1; | |
14274 | } | |
14275 | ||
14276 | ||
14277 | static PyObject *_wrap_ART_GO_UP_get() { | |
14278 | PyObject *pyobj; | |
14279 | ||
14280 | { | |
14281 | #if wxUSE_UNICODE | |
14282 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len()); | |
14283 | #else | |
14284 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len()); | |
14285 | #endif | |
14286 | } | |
14287 | return pyobj; | |
14288 | } | |
14289 | ||
14290 | ||
c370783e | 14291 | static int _wrap_ART_GO_DOWN_set(PyObject *) { |
d55e5bfc RD |
14292 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DOWN is read-only."); |
14293 | return 1; | |
14294 | } | |
14295 | ||
14296 | ||
14297 | static PyObject *_wrap_ART_GO_DOWN_get() { | |
14298 | PyObject *pyobj; | |
14299 | ||
14300 | { | |
14301 | #if wxUSE_UNICODE | |
14302 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len()); | |
14303 | #else | |
14304 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len()); | |
14305 | #endif | |
14306 | } | |
14307 | return pyobj; | |
14308 | } | |
14309 | ||
14310 | ||
c370783e | 14311 | static int _wrap_ART_GO_TO_PARENT_set(PyObject *) { |
d55e5bfc RD |
14312 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_TO_PARENT is read-only."); |
14313 | return 1; | |
14314 | } | |
14315 | ||
14316 | ||
14317 | static PyObject *_wrap_ART_GO_TO_PARENT_get() { | |
14318 | PyObject *pyobj; | |
14319 | ||
14320 | { | |
14321 | #if wxUSE_UNICODE | |
14322 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len()); | |
14323 | #else | |
14324 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len()); | |
14325 | #endif | |
14326 | } | |
14327 | return pyobj; | |
14328 | } | |
14329 | ||
14330 | ||
c370783e | 14331 | static int _wrap_ART_GO_HOME_set(PyObject *) { |
d55e5bfc RD |
14332 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_HOME is read-only."); |
14333 | return 1; | |
14334 | } | |
14335 | ||
14336 | ||
14337 | static PyObject *_wrap_ART_GO_HOME_get() { | |
14338 | PyObject *pyobj; | |
14339 | ||
14340 | { | |
14341 | #if wxUSE_UNICODE | |
14342 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len()); | |
14343 | #else | |
14344 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len()); | |
14345 | #endif | |
14346 | } | |
14347 | return pyobj; | |
14348 | } | |
14349 | ||
14350 | ||
c370783e | 14351 | static int _wrap_ART_FILE_OPEN_set(PyObject *) { |
d55e5bfc RD |
14352 | PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_OPEN is read-only."); |
14353 | return 1; | |
14354 | } | |
14355 | ||
14356 | ||
14357 | static PyObject *_wrap_ART_FILE_OPEN_get() { | |
14358 | PyObject *pyobj; | |
14359 | ||
14360 | { | |
14361 | #if wxUSE_UNICODE | |
14362 | pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len()); | |
14363 | #else | |
14364 | pyobj = PyString_FromStringAndSize((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len()); | |
14365 | #endif | |
14366 | } | |
14367 | return pyobj; | |
14368 | } | |
14369 | ||
14370 | ||
c370783e | 14371 | static int _wrap_ART_PRINT_set(PyObject *) { |
d55e5bfc RD |
14372 | PyErr_SetString(PyExc_TypeError,"Variable ART_PRINT is read-only."); |
14373 | return 1; | |
14374 | } | |
14375 | ||
14376 | ||
14377 | static PyObject *_wrap_ART_PRINT_get() { | |
14378 | PyObject *pyobj; | |
14379 | ||
14380 | { | |
14381 | #if wxUSE_UNICODE | |
14382 | pyobj = PyUnicode_FromWideChar((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len()); | |
14383 | #else | |
14384 | pyobj = PyString_FromStringAndSize((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len()); | |
14385 | #endif | |
14386 | } | |
14387 | return pyobj; | |
14388 | } | |
14389 | ||
14390 | ||
c370783e | 14391 | static int _wrap_ART_HELP_set(PyObject *) { |
d55e5bfc RD |
14392 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP is read-only."); |
14393 | return 1; | |
14394 | } | |
14395 | ||
14396 | ||
14397 | static PyObject *_wrap_ART_HELP_get() { | |
14398 | PyObject *pyobj; | |
14399 | ||
14400 | { | |
14401 | #if wxUSE_UNICODE | |
14402 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len()); | |
14403 | #else | |
14404 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len()); | |
14405 | #endif | |
14406 | } | |
14407 | return pyobj; | |
14408 | } | |
14409 | ||
14410 | ||
c370783e | 14411 | static int _wrap_ART_TIP_set(PyObject *) { |
d55e5bfc RD |
14412 | PyErr_SetString(PyExc_TypeError,"Variable ART_TIP is read-only."); |
14413 | return 1; | |
14414 | } | |
14415 | ||
14416 | ||
14417 | static PyObject *_wrap_ART_TIP_get() { | |
14418 | PyObject *pyobj; | |
14419 | ||
14420 | { | |
14421 | #if wxUSE_UNICODE | |
14422 | pyobj = PyUnicode_FromWideChar((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len()); | |
14423 | #else | |
14424 | pyobj = PyString_FromStringAndSize((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len()); | |
14425 | #endif | |
14426 | } | |
14427 | return pyobj; | |
14428 | } | |
14429 | ||
14430 | ||
c370783e | 14431 | static int _wrap_ART_REPORT_VIEW_set(PyObject *) { |
d55e5bfc RD |
14432 | PyErr_SetString(PyExc_TypeError,"Variable ART_REPORT_VIEW is read-only."); |
14433 | return 1; | |
14434 | } | |
14435 | ||
14436 | ||
14437 | static PyObject *_wrap_ART_REPORT_VIEW_get() { | |
14438 | PyObject *pyobj; | |
14439 | ||
14440 | { | |
14441 | #if wxUSE_UNICODE | |
14442 | pyobj = PyUnicode_FromWideChar((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len()); | |
14443 | #else | |
14444 | pyobj = PyString_FromStringAndSize((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len()); | |
14445 | #endif | |
14446 | } | |
14447 | return pyobj; | |
14448 | } | |
14449 | ||
14450 | ||
c370783e | 14451 | static int _wrap_ART_LIST_VIEW_set(PyObject *) { |
d55e5bfc RD |
14452 | PyErr_SetString(PyExc_TypeError,"Variable ART_LIST_VIEW is read-only."); |
14453 | return 1; | |
14454 | } | |
14455 | ||
14456 | ||
14457 | static PyObject *_wrap_ART_LIST_VIEW_get() { | |
14458 | PyObject *pyobj; | |
14459 | ||
14460 | { | |
14461 | #if wxUSE_UNICODE | |
14462 | pyobj = PyUnicode_FromWideChar((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len()); | |
14463 | #else | |
14464 | pyobj = PyString_FromStringAndSize((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len()); | |
14465 | #endif | |
14466 | } | |
14467 | return pyobj; | |
14468 | } | |
14469 | ||
14470 | ||
c370783e | 14471 | static int _wrap_ART_NEW_DIR_set(PyObject *) { |
d55e5bfc RD |
14472 | PyErr_SetString(PyExc_TypeError,"Variable ART_NEW_DIR is read-only."); |
14473 | return 1; | |
14474 | } | |
14475 | ||
14476 | ||
14477 | static PyObject *_wrap_ART_NEW_DIR_get() { | |
14478 | PyObject *pyobj; | |
14479 | ||
14480 | { | |
14481 | #if wxUSE_UNICODE | |
14482 | pyobj = PyUnicode_FromWideChar((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len()); | |
14483 | #else | |
14484 | pyobj = PyString_FromStringAndSize((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len()); | |
14485 | #endif | |
14486 | } | |
14487 | return pyobj; | |
14488 | } | |
14489 | ||
14490 | ||
c370783e | 14491 | static int _wrap_ART_FOLDER_set(PyObject *) { |
d55e5bfc RD |
14492 | PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER is read-only."); |
14493 | return 1; | |
14494 | } | |
14495 | ||
14496 | ||
14497 | static PyObject *_wrap_ART_FOLDER_get() { | |
14498 | PyObject *pyobj; | |
14499 | ||
14500 | { | |
14501 | #if wxUSE_UNICODE | |
14502 | pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len()); | |
14503 | #else | |
14504 | pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len()); | |
14505 | #endif | |
14506 | } | |
14507 | return pyobj; | |
14508 | } | |
14509 | ||
14510 | ||
c370783e | 14511 | static int _wrap_ART_GO_DIR_UP_set(PyObject *) { |
d55e5bfc RD |
14512 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DIR_UP is read-only."); |
14513 | return 1; | |
14514 | } | |
14515 | ||
14516 | ||
14517 | static PyObject *_wrap_ART_GO_DIR_UP_get() { | |
14518 | PyObject *pyobj; | |
14519 | ||
14520 | { | |
14521 | #if wxUSE_UNICODE | |
14522 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len()); | |
14523 | #else | |
14524 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len()); | |
14525 | #endif | |
14526 | } | |
14527 | return pyobj; | |
14528 | } | |
14529 | ||
14530 | ||
c370783e | 14531 | static int _wrap_ART_EXECUTABLE_FILE_set(PyObject *) { |
d55e5bfc RD |
14532 | PyErr_SetString(PyExc_TypeError,"Variable ART_EXECUTABLE_FILE is read-only."); |
14533 | return 1; | |
14534 | } | |
14535 | ||
14536 | ||
14537 | static PyObject *_wrap_ART_EXECUTABLE_FILE_get() { | |
14538 | PyObject *pyobj; | |
14539 | ||
14540 | { | |
14541 | #if wxUSE_UNICODE | |
14542 | pyobj = PyUnicode_FromWideChar((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len()); | |
14543 | #else | |
14544 | pyobj = PyString_FromStringAndSize((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len()); | |
14545 | #endif | |
14546 | } | |
14547 | return pyobj; | |
14548 | } | |
14549 | ||
14550 | ||
c370783e | 14551 | static int _wrap_ART_NORMAL_FILE_set(PyObject *) { |
d55e5bfc RD |
14552 | PyErr_SetString(PyExc_TypeError,"Variable ART_NORMAL_FILE is read-only."); |
14553 | return 1; | |
14554 | } | |
14555 | ||
14556 | ||
14557 | static PyObject *_wrap_ART_NORMAL_FILE_get() { | |
14558 | PyObject *pyobj; | |
14559 | ||
14560 | { | |
14561 | #if wxUSE_UNICODE | |
14562 | pyobj = PyUnicode_FromWideChar((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len()); | |
14563 | #else | |
14564 | pyobj = PyString_FromStringAndSize((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len()); | |
14565 | #endif | |
14566 | } | |
14567 | return pyobj; | |
14568 | } | |
14569 | ||
14570 | ||
c370783e | 14571 | static int _wrap_ART_TICK_MARK_set(PyObject *) { |
d55e5bfc RD |
14572 | PyErr_SetString(PyExc_TypeError,"Variable ART_TICK_MARK is read-only."); |
14573 | return 1; | |
14574 | } | |
14575 | ||
14576 | ||
14577 | static PyObject *_wrap_ART_TICK_MARK_get() { | |
14578 | PyObject *pyobj; | |
14579 | ||
14580 | { | |
14581 | #if wxUSE_UNICODE | |
14582 | pyobj = PyUnicode_FromWideChar((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len()); | |
14583 | #else | |
14584 | pyobj = PyString_FromStringAndSize((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len()); | |
14585 | #endif | |
14586 | } | |
14587 | return pyobj; | |
14588 | } | |
14589 | ||
14590 | ||
c370783e | 14591 | static int _wrap_ART_CROSS_MARK_set(PyObject *) { |
d55e5bfc RD |
14592 | PyErr_SetString(PyExc_TypeError,"Variable ART_CROSS_MARK is read-only."); |
14593 | return 1; | |
14594 | } | |
14595 | ||
14596 | ||
14597 | static PyObject *_wrap_ART_CROSS_MARK_get() { | |
14598 | PyObject *pyobj; | |
14599 | ||
14600 | { | |
14601 | #if wxUSE_UNICODE | |
14602 | pyobj = PyUnicode_FromWideChar((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len()); | |
14603 | #else | |
14604 | pyobj = PyString_FromStringAndSize((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len()); | |
14605 | #endif | |
14606 | } | |
14607 | return pyobj; | |
14608 | } | |
14609 | ||
14610 | ||
c370783e | 14611 | static int _wrap_ART_ERROR_set(PyObject *) { |
d55e5bfc RD |
14612 | PyErr_SetString(PyExc_TypeError,"Variable ART_ERROR is read-only."); |
14613 | return 1; | |
14614 | } | |
14615 | ||
14616 | ||
14617 | static PyObject *_wrap_ART_ERROR_get() { | |
14618 | PyObject *pyobj; | |
14619 | ||
14620 | { | |
14621 | #if wxUSE_UNICODE | |
14622 | pyobj = PyUnicode_FromWideChar((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len()); | |
14623 | #else | |
14624 | pyobj = PyString_FromStringAndSize((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len()); | |
14625 | #endif | |
14626 | } | |
14627 | return pyobj; | |
14628 | } | |
14629 | ||
14630 | ||
c370783e | 14631 | static int _wrap_ART_QUESTION_set(PyObject *) { |
d55e5bfc RD |
14632 | PyErr_SetString(PyExc_TypeError,"Variable ART_QUESTION is read-only."); |
14633 | return 1; | |
14634 | } | |
14635 | ||
14636 | ||
14637 | static PyObject *_wrap_ART_QUESTION_get() { | |
14638 | PyObject *pyobj; | |
14639 | ||
14640 | { | |
14641 | #if wxUSE_UNICODE | |
14642 | pyobj = PyUnicode_FromWideChar((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len()); | |
14643 | #else | |
14644 | pyobj = PyString_FromStringAndSize((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len()); | |
14645 | #endif | |
14646 | } | |
14647 | return pyobj; | |
14648 | } | |
14649 | ||
14650 | ||
c370783e | 14651 | static int _wrap_ART_WARNING_set(PyObject *) { |
d55e5bfc RD |
14652 | PyErr_SetString(PyExc_TypeError,"Variable ART_WARNING is read-only."); |
14653 | return 1; | |
14654 | } | |
14655 | ||
14656 | ||
14657 | static PyObject *_wrap_ART_WARNING_get() { | |
14658 | PyObject *pyobj; | |
14659 | ||
14660 | { | |
14661 | #if wxUSE_UNICODE | |
14662 | pyobj = PyUnicode_FromWideChar((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len()); | |
14663 | #else | |
14664 | pyobj = PyString_FromStringAndSize((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len()); | |
14665 | #endif | |
14666 | } | |
14667 | return pyobj; | |
14668 | } | |
14669 | ||
14670 | ||
c370783e | 14671 | static int _wrap_ART_INFORMATION_set(PyObject *) { |
d55e5bfc RD |
14672 | PyErr_SetString(PyExc_TypeError,"Variable ART_INFORMATION is read-only."); |
14673 | return 1; | |
14674 | } | |
14675 | ||
14676 | ||
14677 | static PyObject *_wrap_ART_INFORMATION_get() { | |
14678 | PyObject *pyobj; | |
14679 | ||
14680 | { | |
14681 | #if wxUSE_UNICODE | |
14682 | pyobj = PyUnicode_FromWideChar((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len()); | |
14683 | #else | |
14684 | pyobj = PyString_FromStringAndSize((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len()); | |
14685 | #endif | |
14686 | } | |
14687 | return pyobj; | |
14688 | } | |
14689 | ||
14690 | ||
c370783e | 14691 | static int _wrap_ART_MISSING_IMAGE_set(PyObject *) { |
d55e5bfc RD |
14692 | PyErr_SetString(PyExc_TypeError,"Variable ART_MISSING_IMAGE is read-only."); |
14693 | return 1; | |
14694 | } | |
14695 | ||
14696 | ||
14697 | static PyObject *_wrap_ART_MISSING_IMAGE_get() { | |
14698 | PyObject *pyobj; | |
14699 | ||
14700 | { | |
14701 | #if wxUSE_UNICODE | |
14702 | pyobj = PyUnicode_FromWideChar((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len()); | |
14703 | #else | |
14704 | pyobj = PyString_FromStringAndSize((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len()); | |
14705 | #endif | |
14706 | } | |
14707 | return pyobj; | |
14708 | } | |
14709 | ||
14710 | ||
c370783e | 14711 | static PyObject *_wrap_new_ArtProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14712 | PyObject *resultobj; |
14713 | wxPyArtProvider *result; | |
14714 | char *kwnames[] = { | |
14715 | NULL | |
14716 | }; | |
14717 | ||
14718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ArtProvider",kwnames)) goto fail; | |
14719 | { | |
0439c23b | 14720 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
14721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14722 | result = (wxPyArtProvider *)new wxPyArtProvider(); | |
14723 | ||
14724 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14725 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
14726 | } |
14727 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyArtProvider, 1); | |
14728 | return resultobj; | |
14729 | fail: | |
14730 | return NULL; | |
14731 | } | |
14732 | ||
14733 | ||
c370783e | 14734 | static PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14735 | PyObject *resultobj; |
14736 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14737 | PyObject *arg2 = (PyObject *) 0 ; | |
14738 | PyObject *arg3 = (PyObject *) 0 ; | |
14739 | PyObject * obj0 = 0 ; | |
14740 | PyObject * obj1 = 0 ; | |
14741 | PyObject * obj2 = 0 ; | |
14742 | char *kwnames[] = { | |
14743 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
14744 | }; | |
14745 | ||
14746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ArtProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14747 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, | |
14748 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14749 | arg2 = obj1; | |
14750 | arg3 = obj2; | |
14751 | { | |
14752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14753 | (arg1)->_setCallbackInfo(arg2,arg3); | |
14754 | ||
14755 | wxPyEndAllowThreads(__tstate); | |
14756 | if (PyErr_Occurred()) SWIG_fail; | |
14757 | } | |
14758 | Py_INCREF(Py_None); resultobj = Py_None; | |
14759 | return resultobj; | |
14760 | fail: | |
14761 | return NULL; | |
14762 | } | |
14763 | ||
14764 | ||
c370783e | 14765 | static PyObject *_wrap_ArtProvider_PushProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14766 | PyObject *resultobj; |
14767 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14768 | PyObject * obj0 = 0 ; | |
14769 | char *kwnames[] = { | |
14770 | (char *) "provider", NULL | |
14771 | }; | |
14772 | ||
14773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) goto fail; | |
14774 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, | |
14775 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14776 | { | |
14777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14778 | wxPyArtProvider::PushProvider(arg1); | |
14779 | ||
14780 | wxPyEndAllowThreads(__tstate); | |
14781 | if (PyErr_Occurred()) SWIG_fail; | |
14782 | } | |
14783 | Py_INCREF(Py_None); resultobj = Py_None; | |
14784 | return resultobj; | |
14785 | fail: | |
14786 | return NULL; | |
14787 | } | |
14788 | ||
14789 | ||
c370783e | 14790 | static PyObject *_wrap_ArtProvider_PopProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14791 | PyObject *resultobj; |
14792 | bool result; | |
14793 | char *kwnames[] = { | |
14794 | NULL | |
14795 | }; | |
14796 | ||
14797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ArtProvider_PopProvider",kwnames)) goto fail; | |
14798 | { | |
14799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14800 | result = (bool)wxPyArtProvider::PopProvider(); | |
14801 | ||
14802 | wxPyEndAllowThreads(__tstate); | |
14803 | if (PyErr_Occurred()) SWIG_fail; | |
14804 | } | |
14805 | { | |
14806 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14807 | } | |
14808 | return resultobj; | |
14809 | fail: | |
14810 | return NULL; | |
14811 | } | |
14812 | ||
14813 | ||
c370783e | 14814 | static PyObject *_wrap_ArtProvider_RemoveProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14815 | PyObject *resultobj; |
14816 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14817 | bool result; | |
14818 | PyObject * obj0 = 0 ; | |
14819 | char *kwnames[] = { | |
14820 | (char *) "provider", NULL | |
14821 | }; | |
14822 | ||
14823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_RemoveProvider",kwnames,&obj0)) goto fail; | |
14824 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, | |
14825 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14826 | { | |
14827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14828 | result = (bool)wxPyArtProvider::RemoveProvider(arg1); | |
14829 | ||
14830 | wxPyEndAllowThreads(__tstate); | |
14831 | if (PyErr_Occurred()) SWIG_fail; | |
14832 | } | |
14833 | { | |
14834 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14835 | } | |
14836 | return resultobj; | |
14837 | fail: | |
14838 | return NULL; | |
14839 | } | |
14840 | ||
14841 | ||
c370783e | 14842 | static PyObject *_wrap_ArtProvider_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14843 | PyObject *resultobj; |
14844 | wxString *arg1 = 0 ; | |
14845 | wxString const &arg2_defvalue = wxPyART_OTHER ; | |
14846 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
14847 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
14848 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
14849 | wxBitmap result; | |
b411df4a RD |
14850 | bool temp1 = false ; |
14851 | bool temp2 = false ; | |
d55e5bfc RD |
14852 | wxSize temp3 ; |
14853 | PyObject * obj0 = 0 ; | |
14854 | PyObject * obj1 = 0 ; | |
14855 | PyObject * obj2 = 0 ; | |
14856 | char *kwnames[] = { | |
14857 | (char *) "id",(char *) "client",(char *) "size", NULL | |
14858 | }; | |
14859 | ||
14860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14861 | { | |
14862 | arg1 = wxString_in_helper(obj0); | |
14863 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 14864 | temp1 = true; |
d55e5bfc RD |
14865 | } |
14866 | if (obj1) { | |
14867 | { | |
14868 | arg2 = wxString_in_helper(obj1); | |
14869 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 14870 | temp2 = true; |
d55e5bfc RD |
14871 | } |
14872 | } | |
14873 | if (obj2) { | |
14874 | { | |
14875 | arg3 = &temp3; | |
14876 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
14877 | } | |
14878 | } | |
14879 | { | |
0439c23b | 14880 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
14881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14882 | result = wxPyArtProvider::GetBitmap((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3); | |
14883 | ||
14884 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14885 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
14886 | } |
14887 | { | |
14888 | wxBitmap * resultptr; | |
14889 | resultptr = new wxBitmap((wxBitmap &) result); | |
14890 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
14891 | } | |
14892 | { | |
14893 | if (temp1) | |
14894 | delete arg1; | |
14895 | } | |
14896 | { | |
14897 | if (temp2) | |
14898 | delete arg2; | |
14899 | } | |
14900 | return resultobj; | |
14901 | fail: | |
14902 | { | |
14903 | if (temp1) | |
14904 | delete arg1; | |
14905 | } | |
14906 | { | |
14907 | if (temp2) | |
14908 | delete arg2; | |
14909 | } | |
14910 | return NULL; | |
14911 | } | |
14912 | ||
14913 | ||
c370783e | 14914 | static PyObject *_wrap_ArtProvider_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14915 | PyObject *resultobj; |
14916 | wxString *arg1 = 0 ; | |
14917 | wxString const &arg2_defvalue = wxPyART_OTHER ; | |
14918 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
14919 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
14920 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
14921 | wxIcon result; | |
b411df4a RD |
14922 | bool temp1 = false ; |
14923 | bool temp2 = false ; | |
d55e5bfc RD |
14924 | wxSize temp3 ; |
14925 | PyObject * obj0 = 0 ; | |
14926 | PyObject * obj1 = 0 ; | |
14927 | PyObject * obj2 = 0 ; | |
14928 | char *kwnames[] = { | |
14929 | (char *) "id",(char *) "client",(char *) "size", NULL | |
14930 | }; | |
14931 | ||
14932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14933 | { | |
14934 | arg1 = wxString_in_helper(obj0); | |
14935 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 14936 | temp1 = true; |
d55e5bfc RD |
14937 | } |
14938 | if (obj1) { | |
14939 | { | |
14940 | arg2 = wxString_in_helper(obj1); | |
14941 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 14942 | temp2 = true; |
d55e5bfc RD |
14943 | } |
14944 | } | |
14945 | if (obj2) { | |
14946 | { | |
14947 | arg3 = &temp3; | |
14948 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
14949 | } | |
14950 | } | |
14951 | { | |
0439c23b | 14952 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
14953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14954 | result = wxPyArtProvider::GetIcon((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3); | |
14955 | ||
14956 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14957 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
14958 | } |
14959 | { | |
14960 | wxIcon * resultptr; | |
14961 | resultptr = new wxIcon((wxIcon &) result); | |
14962 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1); | |
14963 | } | |
14964 | { | |
14965 | if (temp1) | |
14966 | delete arg1; | |
14967 | } | |
14968 | { | |
14969 | if (temp2) | |
14970 | delete arg2; | |
14971 | } | |
14972 | return resultobj; | |
14973 | fail: | |
14974 | { | |
14975 | if (temp1) | |
14976 | delete arg1; | |
14977 | } | |
14978 | { | |
14979 | if (temp2) | |
14980 | delete arg2; | |
14981 | } | |
14982 | return NULL; | |
14983 | } | |
14984 | ||
14985 | ||
c370783e | 14986 | static PyObject *_wrap_ArtProvider_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14987 | PyObject *resultobj; |
14988 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14989 | PyObject * obj0 = 0 ; | |
14990 | char *kwnames[] = { | |
14991 | (char *) "self", NULL | |
14992 | }; | |
14993 | ||
14994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Destroy",kwnames,&obj0)) goto fail; | |
14995 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, | |
14996 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14997 | { | |
14998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14999 | wxPyArtProvider_Destroy(arg1); | |
15000 | ||
15001 | wxPyEndAllowThreads(__tstate); | |
15002 | if (PyErr_Occurred()) SWIG_fail; | |
15003 | } | |
15004 | Py_INCREF(Py_None); resultobj = Py_None; | |
15005 | return resultobj; | |
15006 | fail: | |
15007 | return NULL; | |
15008 | } | |
15009 | ||
15010 | ||
c370783e | 15011 | static PyObject * ArtProvider_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
15012 | PyObject *obj; |
15013 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15014 | SWIG_TypeClientData(SWIGTYPE_p_wxPyArtProvider, obj); | |
15015 | Py_INCREF(obj); | |
15016 | return Py_BuildValue((char *)""); | |
15017 | } | |
c370783e | 15018 | static PyObject *_wrap_delete_ConfigBase(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15019 | PyObject *resultobj; |
15020 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15021 | PyObject * obj0 = 0 ; | |
15022 | char *kwnames[] = { | |
15023 | (char *) "self", NULL | |
15024 | }; | |
15025 | ||
15026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigBase",kwnames,&obj0)) goto fail; | |
15027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15029 | { | |
15030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15031 | delete arg1; | |
15032 | ||
15033 | wxPyEndAllowThreads(__tstate); | |
15034 | if (PyErr_Occurred()) SWIG_fail; | |
15035 | } | |
15036 | Py_INCREF(Py_None); resultobj = Py_None; | |
15037 | return resultobj; | |
15038 | fail: | |
15039 | return NULL; | |
15040 | } | |
15041 | ||
15042 | ||
c370783e | 15043 | static PyObject *_wrap_ConfigBase_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15044 | PyObject *resultobj; |
15045 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15046 | wxConfigBase *result; | |
15047 | PyObject * obj0 = 0 ; | |
15048 | char *kwnames[] = { | |
15049 | (char *) "config", NULL | |
15050 | }; | |
15051 | ||
15052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_Set",kwnames,&obj0)) goto fail; | |
15053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15055 | { | |
15056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15057 | result = (wxConfigBase *)wxConfigBase::Set(arg1); | |
15058 | ||
15059 | wxPyEndAllowThreads(__tstate); | |
15060 | if (PyErr_Occurred()) SWIG_fail; | |
15061 | } | |
15062 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); | |
15063 | return resultobj; | |
15064 | fail: | |
15065 | return NULL; | |
15066 | } | |
15067 | ||
15068 | ||
c370783e | 15069 | static PyObject *_wrap_ConfigBase_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 15070 | PyObject *resultobj; |
b411df4a | 15071 | bool arg1 = (bool) true ; |
d55e5bfc RD |
15072 | wxConfigBase *result; |
15073 | PyObject * obj0 = 0 ; | |
15074 | char *kwnames[] = { | |
15075 | (char *) "createOnDemand", NULL | |
15076 | }; | |
15077 | ||
15078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ConfigBase_Get",kwnames,&obj0)) goto fail; | |
15079 | if (obj0) { | |
c370783e | 15080 | arg1 = (bool)SWIG_As_bool(obj0); |
d55e5bfc RD |
15081 | if (PyErr_Occurred()) SWIG_fail; |
15082 | } | |
15083 | { | |
15084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15085 | result = (wxConfigBase *)wxConfigBase::Get(arg1); | |
15086 | ||
15087 | wxPyEndAllowThreads(__tstate); | |
15088 | if (PyErr_Occurred()) SWIG_fail; | |
15089 | } | |
15090 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); | |
15091 | return resultobj; | |
15092 | fail: | |
15093 | return NULL; | |
15094 | } | |
15095 | ||
15096 | ||
c370783e | 15097 | static PyObject *_wrap_ConfigBase_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15098 | PyObject *resultobj; |
15099 | wxConfigBase *result; | |
15100 | char *kwnames[] = { | |
15101 | NULL | |
15102 | }; | |
15103 | ||
15104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_Create",kwnames)) goto fail; | |
15105 | { | |
15106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15107 | result = (wxConfigBase *)wxConfigBase::Create(); | |
15108 | ||
15109 | wxPyEndAllowThreads(__tstate); | |
15110 | if (PyErr_Occurred()) SWIG_fail; | |
15111 | } | |
15112 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); | |
15113 | return resultobj; | |
15114 | fail: | |
15115 | return NULL; | |
15116 | } | |
15117 | ||
15118 | ||
c370783e | 15119 | static PyObject *_wrap_ConfigBase_DontCreateOnDemand(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15120 | PyObject *resultobj; |
15121 | char *kwnames[] = { | |
15122 | NULL | |
15123 | }; | |
15124 | ||
15125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_DontCreateOnDemand",kwnames)) goto fail; | |
15126 | { | |
15127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15128 | wxConfigBase::DontCreateOnDemand(); | |
15129 | ||
15130 | wxPyEndAllowThreads(__tstate); | |
15131 | if (PyErr_Occurred()) SWIG_fail; | |
15132 | } | |
15133 | Py_INCREF(Py_None); resultobj = Py_None; | |
15134 | return resultobj; | |
15135 | fail: | |
15136 | return NULL; | |
15137 | } | |
15138 | ||
15139 | ||
c370783e | 15140 | static PyObject *_wrap_ConfigBase_SetPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15141 | PyObject *resultobj; |
15142 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15143 | wxString *arg2 = 0 ; | |
b411df4a | 15144 | bool temp2 = false ; |
d55e5bfc RD |
15145 | PyObject * obj0 = 0 ; |
15146 | PyObject * obj1 = 0 ; | |
15147 | char *kwnames[] = { | |
15148 | (char *) "self",(char *) "path", NULL | |
15149 | }; | |
15150 | ||
15151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
15152 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15153 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15154 | { | |
15155 | arg2 = wxString_in_helper(obj1); | |
15156 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 15157 | temp2 = true; |
d55e5bfc RD |
15158 | } |
15159 | { | |
15160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15161 | (arg1)->SetPath((wxString const &)*arg2); | |
15162 | ||
15163 | wxPyEndAllowThreads(__tstate); | |
15164 | if (PyErr_Occurred()) SWIG_fail; | |
15165 | } | |
15166 | Py_INCREF(Py_None); resultobj = Py_None; | |
15167 | { | |
15168 | if (temp2) | |
15169 | delete arg2; | |
15170 | } | |
15171 | return resultobj; | |
15172 | fail: | |
15173 | { | |
15174 | if (temp2) | |
15175 | delete arg2; | |
15176 | } | |
15177 | return NULL; | |
15178 | } | |
15179 | ||
15180 | ||
c370783e | 15181 | static PyObject *_wrap_ConfigBase_GetPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15182 | PyObject *resultobj; |
15183 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15184 | wxString *result; | |
15185 | PyObject * obj0 = 0 ; | |
15186 | char *kwnames[] = { | |
15187 | (char *) "self", NULL | |
15188 | }; | |
15189 | ||
15190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetPath",kwnames,&obj0)) goto fail; | |
15191 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15192 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15193 | { | |
15194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15195 | { | |
15196 | wxString const &_result_ref = ((wxConfigBase const *)arg1)->GetPath(); | |
15197 | result = (wxString *) &_result_ref; | |
15198 | } | |
15199 | ||
15200 | wxPyEndAllowThreads(__tstate); | |
15201 | if (PyErr_Occurred()) SWIG_fail; | |
15202 | } | |
15203 | { | |
15204 | #if wxUSE_UNICODE | |
15205 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
15206 | #else | |
15207 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
15208 | #endif | |
15209 | } | |
15210 | return resultobj; | |
15211 | fail: | |
15212 | return NULL; | |
15213 | } | |
15214 | ||
15215 | ||
c370783e | 15216 | static PyObject *_wrap_ConfigBase_GetFirstGroup(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15217 | PyObject *resultobj; |
15218 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15219 | PyObject *result; | |
15220 | PyObject * obj0 = 0 ; | |
15221 | char *kwnames[] = { | |
15222 | (char *) "self", NULL | |
15223 | }; | |
15224 | ||
15225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstGroup",kwnames,&obj0)) goto fail; | |
15226 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15227 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15228 | { | |
15229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15230 | result = (PyObject *)wxConfigBase_GetFirstGroup(arg1); | |
15231 | ||
15232 | wxPyEndAllowThreads(__tstate); | |
15233 | if (PyErr_Occurred()) SWIG_fail; | |
15234 | } | |
15235 | resultobj = result; | |
15236 | return resultobj; | |
15237 | fail: | |
15238 | return NULL; | |
15239 | } | |
15240 | ||
15241 | ||
c370783e | 15242 | static PyObject *_wrap_ConfigBase_GetNextGroup(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15243 | PyObject *resultobj; |
15244 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15245 | long arg2 ; | |
15246 | PyObject *result; | |
15247 | PyObject * obj0 = 0 ; | |
15248 | PyObject * obj1 = 0 ; | |
15249 | char *kwnames[] = { | |
15250 | (char *) "self",(char *) "index", NULL | |
15251 | }; | |
15252 | ||
15253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextGroup",kwnames,&obj0,&obj1)) goto fail; | |
15254 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 15256 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
15257 | if (PyErr_Occurred()) SWIG_fail; |
15258 | { | |
15259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15260 | result = (PyObject *)wxConfigBase_GetNextGroup(arg1,arg2); | |
15261 | ||
15262 | wxPyEndAllowThreads(__tstate); | |
15263 | if (PyErr_Occurred()) SWIG_fail; | |
15264 | } | |
15265 | resultobj = result; | |
15266 | return resultobj; | |
15267 | fail: | |
15268 | return NULL; | |
15269 | } | |
15270 | ||
15271 | ||
c370783e | 15272 | static PyObject *_wrap_ConfigBase_GetFirstEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15273 | PyObject *resultobj; |
15274 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15275 | PyObject *result; | |
15276 | PyObject * obj0 = 0 ; | |
15277 | char *kwnames[] = { | |
15278 | (char *) "self", NULL | |
15279 | }; | |
15280 | ||
15281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstEntry",kwnames,&obj0)) goto fail; | |
15282 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15283 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15284 | { | |
15285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15286 | result = (PyObject *)wxConfigBase_GetFirstEntry(arg1); | |
15287 | ||
15288 | wxPyEndAllowThreads(__tstate); | |
15289 | if (PyErr_Occurred()) SWIG_fail; | |
15290 | } | |
15291 | resultobj = result; | |
15292 | return resultobj; | |
15293 | fail: | |
15294 | return NULL; | |
15295 | } | |
15296 | ||
15297 | ||
c370783e | 15298 | static PyObject *_wrap_ConfigBase_GetNextEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15299 | PyObject *resultobj; |
15300 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15301 | long arg2 ; | |
15302 | PyObject *result; | |
15303 | PyObject * obj0 = 0 ; | |
15304 | PyObject * obj1 = 0 ; | |
15305 | char *kwnames[] = { | |
15306 | (char *) "self",(char *) "index", NULL | |
15307 | }; | |
15308 | ||
15309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextEntry",kwnames,&obj0,&obj1)) goto fail; | |
15310 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15311 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 15312 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
15313 | if (PyErr_Occurred()) SWIG_fail; |
15314 | { | |
15315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15316 | result = (PyObject *)wxConfigBase_GetNextEntry(arg1,arg2); | |
15317 | ||
15318 | wxPyEndAllowThreads(__tstate); | |
15319 | if (PyErr_Occurred()) SWIG_fail; | |
15320 | } | |
15321 | resultobj = result; | |
15322 | return resultobj; | |
15323 | fail: | |
15324 | return NULL; | |
15325 | } | |
15326 | ||
15327 | ||
c370783e | 15328 | static PyObject *_wrap_ConfigBase_GetNumberOfEntries(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15329 | PyObject *resultobj; |
15330 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
b411df4a | 15331 | bool arg2 = (bool) false ; |
d55e5bfc RD |
15332 | size_t result; |
15333 | PyObject * obj0 = 0 ; | |
15334 | PyObject * obj1 = 0 ; | |
15335 | char *kwnames[] = { | |
15336 | (char *) "self",(char *) "recursive", NULL | |
15337 | }; | |
15338 | ||
15339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfEntries",kwnames,&obj0,&obj1)) goto fail; | |
15340 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15341 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15342 | if (obj1) { | |
c370783e | 15343 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
15344 | if (PyErr_Occurred()) SWIG_fail; |
15345 | } | |
15346 | { | |
15347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15348 | result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfEntries(arg2); | |
15349 | ||
15350 | wxPyEndAllowThreads(__tstate); | |
15351 | if (PyErr_Occurred()) SWIG_fail; | |
15352 | } | |
c370783e | 15353 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
15354 | return resultobj; |
15355 | fail: | |
15356 | return NULL; | |
15357 | } | |
15358 | ||
15359 | ||
c370783e | 15360 | static PyObject *_wrap_ConfigBase_GetNumberOfGroups(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15361 | PyObject *resultobj; |
15362 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
b411df4a | 15363 | bool arg2 = (bool) false ; |
d55e5bfc RD |
15364 | size_t result; |
15365 | PyObject * obj0 = 0 ; | |
15366 | PyObject * obj1 = 0 ; | |
15367 | char *kwnames[] = { | |
15368 | (char *) "self",(char *) "recursive", NULL | |
15369 | }; | |
15370 | ||
15371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfGroups",kwnames,&obj0,&obj1)) goto fail; | |
15372 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15373 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15374 | if (obj1) { | |
c370783e | 15375 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
15376 | if (PyErr_Occurred()) SWIG_fail; |
15377 | } | |
15378 | { | |
15379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15380 | result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfGroups(arg2); | |
15381 | ||
15382 | wxPyEndAllowThreads(__tstate); | |
15383 | if (PyErr_Occurred()) SWIG_fail; | |
15384 | } | |
c370783e | 15385 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
15386 | return resultobj; |
15387 | fail: | |
15388 | return NULL; | |
15389 | } | |
15390 | ||
15391 | ||
c370783e | 15392 | static PyObject *_wrap_ConfigBase_HasGroup(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15393 | PyObject *resultobj; |
15394 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15395 | wxString *arg2 = 0 ; | |
15396 | bool result; | |
b411df4a | 15397 | bool temp2 = false ; |
d55e5bfc RD |
15398 | PyObject * obj0 = 0 ; |
15399 | PyObject * obj1 = 0 ; | |
15400 | char *kwnames[] = { | |
15401 | (char *) "self",(char *) "name", NULL | |
15402 | }; | |
15403 | ||
15404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasGroup",kwnames,&obj0,&obj1)) goto fail; | |
15405 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15406 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15407 | { | |
15408 | arg2 = wxString_in_helper(obj1); | |
15409 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 15410 | temp2 = true; |
d55e5bfc RD |
15411 | } |
15412 | { | |
15413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15414 | result = (bool)((wxConfigBase const *)arg1)->HasGroup((wxString const &)*arg2); | |
15415 | ||
15416 | wxPyEndAllowThreads(__tstate); | |
15417 | if (PyErr_Occurred()) SWIG_fail; | |
15418 | } | |
15419 | { | |
15420 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15421 | } | |
15422 | { | |
15423 | if (temp2) | |
15424 | delete arg2; | |
15425 | } | |
15426 | return resultobj; | |
15427 | fail: | |
15428 | { | |
15429 | if (temp2) | |
15430 | delete arg2; | |
15431 | } | |
15432 | return NULL; | |
15433 | } | |
15434 | ||
15435 | ||
c370783e | 15436 | static PyObject *_wrap_ConfigBase_HasEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15437 | PyObject *resultobj; |
15438 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15439 | wxString *arg2 = 0 ; | |
15440 | bool result; | |
b411df4a | 15441 | bool temp2 = false ; |
d55e5bfc RD |
15442 | PyObject * obj0 = 0 ; |
15443 | PyObject * obj1 = 0 ; | |
15444 | char *kwnames[] = { | |
15445 | (char *) "self",(char *) "name", NULL | |
15446 | }; | |
15447 | ||
15448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasEntry",kwnames,&obj0,&obj1)) goto fail; | |
15449 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15450 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15451 | { | |
15452 | arg2 = wxString_in_helper(obj1); | |
15453 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 15454 | temp2 = true; |
d55e5bfc RD |
15455 | } |
15456 | { | |
15457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15458 | result = (bool)((wxConfigBase const *)arg1)->HasEntry((wxString const &)*arg2); | |
15459 | ||
15460 | wxPyEndAllowThreads(__tstate); | |
15461 | if (PyErr_Occurred()) SWIG_fail; | |
15462 | } | |
15463 | { | |
15464 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15465 | } | |
15466 | { | |
15467 | if (temp2) | |
15468 | delete arg2; | |
15469 | } | |
15470 | return resultobj; | |
15471 | fail: | |
15472 | { | |
15473 | if (temp2) | |
15474 | delete arg2; | |
15475 | } | |
15476 | return NULL; | |
15477 | } | |
15478 | ||
15479 | ||
c370783e | 15480 | static PyObject *_wrap_ConfigBase_Exists(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15481 | PyObject *resultobj; |
15482 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15483 | wxString *arg2 = 0 ; | |
15484 | bool result; | |
b411df4a | 15485 | bool temp2 = false ; |
d55e5bfc RD |
15486 | PyObject * obj0 = 0 ; |
15487 | PyObject * obj1 = 0 ; | |
15488 | char *kwnames[] = { | |
15489 | (char *) "self",(char *) "name", NULL | |
15490 | }; | |
15491 | ||
15492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_Exists",kwnames,&obj0,&obj1)) goto fail; | |
15493 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15494 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15495 | { | |
15496 | arg2 = wxString_in_helper(obj1); | |
15497 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 15498 | temp2 = true; |
d55e5bfc RD |
15499 | } |
15500 | { | |
15501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15502 | result = (bool)((wxConfigBase const *)arg1)->Exists((wxString const &)*arg2); | |
15503 | ||
15504 | wxPyEndAllowThreads(__tstate); | |
15505 | if (PyErr_Occurred()) SWIG_fail; | |
15506 | } | |
15507 | { | |
15508 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15509 | } | |
15510 | { | |
15511 | if (temp2) | |
15512 | delete arg2; | |
15513 | } | |
15514 | return resultobj; | |
15515 | fail: | |
15516 | { | |
15517 | if (temp2) | |
15518 | delete arg2; | |
15519 | } | |
15520 | return NULL; | |
15521 | } | |
15522 | ||
15523 | ||
c370783e | 15524 | static PyObject *_wrap_ConfigBase_GetEntryType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15525 | PyObject *resultobj; |
15526 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15527 | wxString *arg2 = 0 ; | |
15528 | int result; | |
b411df4a | 15529 | bool temp2 = false ; |
d55e5bfc RD |
15530 | PyObject * obj0 = 0 ; |
15531 | PyObject * obj1 = 0 ; | |
15532 | char *kwnames[] = { | |
15533 | (char *) "self",(char *) "name", NULL | |
15534 | }; | |
15535 | ||
15536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetEntryType",kwnames,&obj0,&obj1)) goto fail; | |
15537 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15538 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15539 | { | |
15540 | arg2 = wxString_in_helper(obj1); | |
15541 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 15542 | temp2 = true; |
d55e5bfc RD |
15543 | } |
15544 | { | |
15545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15546 | result = (int)((wxConfigBase const *)arg1)->GetEntryType((wxString const &)*arg2); | |
15547 | ||
15548 | wxPyEndAllowThreads(__tstate); | |
15549 | if (PyErr_Occurred()) SWIG_fail; | |
15550 | } | |
c370783e | 15551 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15552 | { |
15553 | if (temp2) | |
15554 | delete arg2; | |
15555 | } | |
15556 | return resultobj; | |
15557 | fail: | |
15558 | { | |
15559 | if (temp2) | |
15560 | delete arg2; | |
15561 | } | |
15562 | return NULL; | |
15563 | } | |
15564 | ||
15565 | ||
c370783e | 15566 | static PyObject *_wrap_ConfigBase_Read(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15567 | PyObject *resultobj; |
15568 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15569 | wxString *arg2 = 0 ; | |
15570 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
15571 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
15572 | wxString result; | |
b411df4a RD |
15573 | bool temp2 = false ; |
15574 | bool temp3 = false ; | |
d55e5bfc RD |
15575 | PyObject * obj0 = 0 ; |
15576 | PyObject * obj1 = 0 ; | |
15577 | PyObject * obj2 = 0 ; | |
15578 | char *kwnames[] = { | |
15579 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15580 | }; | |
15581 | ||
15582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_Read",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15583 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15584 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15585 | { | |
15586 | arg2 = wxString_in_helper(obj1); | |
15587 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 15588 | temp2 = true; |
d55e5bfc RD |
15589 | } |
15590 | if (obj2) { | |
15591 | { | |
15592 | arg3 = wxString_in_helper(obj2); | |
15593 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 15594 | temp3 = true; |
d55e5bfc RD |
15595 | } |
15596 | } | |
15597 | { | |
15598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15599 | result = (arg1)->Read((wxString const &)*arg2,(wxString const &)*arg3); | |
15600 | ||
15601 | wxPyEndAllowThreads(__tstate); | |
15602 | if (PyErr_Occurred()) SWIG_fail; | |
15603 | } | |
15604 | { | |
15605 | #if wxUSE_UNICODE | |
15606 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15607 | #else | |
15608 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15609 | #endif | |
15610 | } | |
15611 | { | |
15612 | if (temp2) | |
15613 | delete arg2; | |
15614 | } | |
15615 | { | |
15616 | if (temp3) | |
15617 | delete arg3; | |
15618 | } | |
15619 | return resultobj; | |
15620 | fail: | |
15621 | { | |
15622 | if (temp2) | |
15623 | delete arg2; | |
15624 | } | |
15625 | { | |
15626 | if (temp3) | |
15627 | delete arg3; | |
15628 | } | |
15629 | return NULL; | |
15630 | } | |
15631 | ||
15632 | ||
c370783e | 15633 | static PyObject *_wrap_ConfigBase_ReadInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15634 | PyObject *resultobj; |
15635 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15636 | wxString *arg2 = 0 ; | |
15637 | long arg3 = (long) 0 ; | |
15638 | long result; | |
b411df4a | 15639 | bool temp2 = false ; |
d55e5bfc RD |
15640 | PyObject * obj0 = 0 ; |
15641 | PyObject * obj1 = 0 ; | |
15642 | PyObject * obj2 = 0 ; | |
15643 | char *kwnames[] = { | |
15644 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15645 | }; | |
15646 | ||
15647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadInt",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15650 | { | |
15651 | arg2 = wxString_in_helper(obj1); | |
15652 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 15653 | temp2 = true; |
d55e5bfc RD |
15654 | } |
15655 | if (obj2) { | |
c370783e | 15656 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
15657 | if (PyErr_Occurred()) SWIG_fail; |
15658 | } | |
15659 | { | |
15660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15661 | result = (long)wxConfigBase_ReadInt(arg1,(wxString const &)*arg2,arg3); | |
15662 | ||
15663 | wxPyEndAllowThreads(__tstate); | |
15664 | if (PyErr_Occurred()) SWIG_fail; | |
15665 | } | |
c370783e | 15666 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
15667 | { |
15668 | if (temp2) | |
15669 | delete arg2; | |
15670 | } | |
15671 | return resultobj; | |
15672 | fail: | |
15673 | { | |
15674 | if (temp2) | |
15675 | delete arg2; | |
15676 | } | |
15677 | return NULL; | |
15678 | } | |
15679 | ||
15680 | ||
c370783e | 15681 | static PyObject *_wrap_ConfigBase_ReadFloat(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15682 | PyObject *resultobj; |
15683 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15684 | wxString *arg2 = 0 ; | |
15685 | double arg3 = (double) 0.0 ; | |
15686 | double result; | |
b411df4a | 15687 | bool temp2 = false ; |
d55e5bfc RD |
15688 | PyObject * obj0 = 0 ; |
15689 | PyObject * obj1 = 0 ; | |
15690 | PyObject * obj2 = 0 ; | |
15691 | char *kwnames[] = { | |
15692 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15693 | }; | |
15694 | ||
15695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadFloat",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15696 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15697 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15698 | { | |
15699 | arg2 = wxString_in_helper(obj1); | |
15700 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 15701 | temp2 = true; |
d55e5bfc RD |
15702 | } |
15703 | if (obj2) { | |
c370783e | 15704 | arg3 = (double)SWIG_As_double(obj2); |
d55e5bfc RD |
15705 | if (PyErr_Occurred()) SWIG_fail; |
15706 | } | |
15707 | { | |
15708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15709 | result = (double)wxConfigBase_ReadFloat(arg1,(wxString const &)*arg2,arg3); | |
15710 | ||
15711 | wxPyEndAllowThreads(__tstate); | |
15712 | if (PyErr_Occurred()) SWIG_fail; | |
15713 | } | |
c370783e | 15714 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
15715 | { |
15716 | if (temp2) | |
15717 | delete arg2; | |
15718 | } | |
15719 | return resultobj; | |
15720 | fail: | |
15721 | { | |
15722 | if (temp2) | |
15723 | delete arg2; | |
15724 | } | |
15725 | return NULL; | |
15726 | } | |
15727 | ||
15728 | ||
c370783e | 15729 | static PyObject *_wrap_ConfigBase_ReadBool(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15730 | PyObject *resultobj; |
15731 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15732 | wxString *arg2 = 0 ; | |
b411df4a | 15733 | bool arg3 = (bool) false ; |
d55e5bfc | 15734 | bool result; |
b411df4a | 15735 | bool temp2 = false ; |
d55e5bfc RD |
15736 | PyObject * obj0 = 0 ; |
15737 | PyObject * obj1 = 0 ; | |
15738 | PyObject * obj2 = 0 ; | |
15739 | char *kwnames[] = { | |
15740 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15741 | }; | |
15742 | ||
15743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadBool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15744 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15745 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15746 | { | |
15747 | arg2 = wxString_in_helper(obj1); | |
15748 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 15749 | temp2 = true; |
d55e5bfc RD |
15750 | } |
15751 | if (obj2) { | |
c370783e | 15752 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
15753 | if (PyErr_Occurred()) SWIG_fail; |
15754 | } | |
15755 | { | |
15756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15757 | result = (bool)wxConfigBase_ReadBool(arg1,(wxString const &)*arg2,arg3); | |
15758 | ||
15759 | wxPyEndAllowThreads(__tstate); | |
15760 | if (PyErr_Occurred()) SWIG_fail; | |
15761 | } | |
15762 | { | |
15763 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15764 | } | |
15765 | { | |
15766 | if (temp2) | |
15767 | delete arg2; | |
15768 | } | |
15769 | return resultobj; | |
15770 | fail: | |
15771 | { | |
15772 | if (temp2) | |
15773 | delete arg2; | |
15774 | } | |
15775 | return NULL; | |
15776 | } | |
15777 | ||
15778 | ||
c370783e | 15779 | static PyObject *_wrap_ConfigBase_Write(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15780 | PyObject *resultobj; |
15781 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15782 | wxString *arg2 = 0 ; | |
15783 | wxString *arg3 = 0 ; | |
15784 | bool result; | |
b411df4a RD |
15785 | bool temp2 = false ; |
15786 | bool temp3 = false ; | |
d55e5bfc RD |
15787 | PyObject * obj0 = 0 ; |
15788 | PyObject * obj1 = 0 ; | |
15789 | PyObject * obj2 = 0 ; | |
15790 | char *kwnames[] = { | |
15791 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15792 | }; | |
15793 | ||
15794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_Write",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15795 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15796 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15797 | { | |
15798 | arg2 = wxString_in_helper(obj1); | |
15799 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 15800 | temp2 = true; |
d55e5bfc RD |
15801 | } |
15802 | { | |
15803 | arg3 = wxString_in_helper(obj2); | |
15804 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 15805 | temp3 = true; |
d55e5bfc RD |
15806 | } |
15807 | { | |
15808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15809 | result = (bool)(arg1)->Write((wxString const &)*arg2,(wxString const &)*arg3); | |
15810 | ||
15811 | wxPyEndAllowThreads(__tstate); | |
15812 | if (PyErr_Occurred()) SWIG_fail; | |
15813 | } | |
15814 | { | |
15815 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15816 | } | |
15817 | { | |
15818 | if (temp2) | |
15819 | delete arg2; | |
15820 | } | |
15821 | { | |
15822 | if (temp3) | |
15823 | delete arg3; | |
15824 | } | |
15825 | return resultobj; | |
15826 | fail: | |
15827 | { | |
15828 | if (temp2) | |
15829 | delete arg2; | |
15830 | } | |
15831 | { | |
15832 | if (temp3) | |
15833 | delete arg3; | |
15834 | } | |
15835 | return NULL; | |
15836 | } | |
15837 | ||
15838 | ||
c370783e | 15839 | static PyObject *_wrap_ConfigBase_WriteInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15840 | PyObject *resultobj; |
15841 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15842 | wxString *arg2 = 0 ; | |
15843 | long arg3 ; | |
15844 | bool result; | |
b411df4a | 15845 | bool temp2 = false ; |
d55e5bfc RD |
15846 | PyObject * obj0 = 0 ; |
15847 | PyObject * obj1 = 0 ; | |
15848 | PyObject * obj2 = 0 ; | |
15849 | char *kwnames[] = { | |
15850 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15851 | }; | |
15852 | ||
15853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteInt",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15854 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15855 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15856 | { | |
15857 | arg2 = wxString_in_helper(obj1); | |
15858 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 15859 | temp2 = true; |
d55e5bfc | 15860 | } |
c370783e | 15861 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
15862 | if (PyErr_Occurred()) SWIG_fail; |
15863 | { | |
15864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15865 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
15866 | ||
15867 | wxPyEndAllowThreads(__tstate); | |
15868 | if (PyErr_Occurred()) SWIG_fail; | |
15869 | } | |
15870 | { | |
15871 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15872 | } | |
15873 | { | |
15874 | if (temp2) | |
15875 | delete arg2; | |
15876 | } | |
15877 | return resultobj; | |
15878 | fail: | |
15879 | { | |
15880 | if (temp2) | |
15881 | delete arg2; | |
15882 | } | |
15883 | return NULL; | |
15884 | } | |
15885 | ||
15886 | ||
c370783e | 15887 | static PyObject *_wrap_ConfigBase_WriteFloat(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15888 | PyObject *resultobj; |
15889 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15890 | wxString *arg2 = 0 ; | |
15891 | double arg3 ; | |
15892 | bool result; | |
b411df4a | 15893 | bool temp2 = false ; |
d55e5bfc RD |
15894 | PyObject * obj0 = 0 ; |
15895 | PyObject * obj1 = 0 ; | |
15896 | PyObject * obj2 = 0 ; | |
15897 | char *kwnames[] = { | |
15898 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15899 | }; | |
15900 | ||
15901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteFloat",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15902 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15903 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15904 | { | |
15905 | arg2 = wxString_in_helper(obj1); | |
15906 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 15907 | temp2 = true; |
d55e5bfc | 15908 | } |
c370783e | 15909 | arg3 = (double)SWIG_As_double(obj2); |
d55e5bfc RD |
15910 | if (PyErr_Occurred()) SWIG_fail; |
15911 | { | |
15912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15913 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
15914 | ||
15915 | wxPyEndAllowThreads(__tstate); | |
15916 | if (PyErr_Occurred()) SWIG_fail; | |
15917 | } | |
15918 | { | |
15919 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15920 | } | |
15921 | { | |
15922 | if (temp2) | |
15923 | delete arg2; | |
15924 | } | |
15925 | return resultobj; | |
15926 | fail: | |
15927 | { | |
15928 | if (temp2) | |
15929 | delete arg2; | |
15930 | } | |
15931 | return NULL; | |
15932 | } | |
15933 | ||
15934 | ||
c370783e | 15935 | static PyObject *_wrap_ConfigBase_WriteBool(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15936 | PyObject *resultobj; |
15937 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15938 | wxString *arg2 = 0 ; | |
15939 | bool arg3 ; | |
15940 | bool result; | |
b411df4a | 15941 | bool temp2 = false ; |
d55e5bfc RD |
15942 | PyObject * obj0 = 0 ; |
15943 | PyObject * obj1 = 0 ; | |
15944 | PyObject * obj2 = 0 ; | |
15945 | char *kwnames[] = { | |
15946 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15947 | }; | |
15948 | ||
15949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteBool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15950 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15951 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15952 | { | |
15953 | arg2 = wxString_in_helper(obj1); | |
15954 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 15955 | temp2 = true; |
d55e5bfc | 15956 | } |
c370783e | 15957 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
15958 | if (PyErr_Occurred()) SWIG_fail; |
15959 | { | |
15960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15961 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
15962 | ||
15963 | wxPyEndAllowThreads(__tstate); | |
15964 | if (PyErr_Occurred()) SWIG_fail; | |
15965 | } | |
15966 | { | |
15967 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15968 | } | |
15969 | { | |
15970 | if (temp2) | |
15971 | delete arg2; | |
15972 | } | |
15973 | return resultobj; | |
15974 | fail: | |
15975 | { | |
15976 | if (temp2) | |
15977 | delete arg2; | |
15978 | } | |
15979 | return NULL; | |
15980 | } | |
15981 | ||
15982 | ||
c370783e | 15983 | static PyObject *_wrap_ConfigBase_Flush(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15984 | PyObject *resultobj; |
15985 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
b411df4a | 15986 | bool arg2 = (bool) false ; |
d55e5bfc RD |
15987 | bool result; |
15988 | PyObject * obj0 = 0 ; | |
15989 | PyObject * obj1 = 0 ; | |
15990 | char *kwnames[] = { | |
15991 | (char *) "self",(char *) "currentOnly", NULL | |
15992 | }; | |
15993 | ||
15994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_Flush",kwnames,&obj0,&obj1)) goto fail; | |
15995 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15996 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15997 | if (obj1) { | |
c370783e | 15998 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
15999 | if (PyErr_Occurred()) SWIG_fail; |
16000 | } | |
16001 | { | |
16002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16003 | result = (bool)(arg1)->Flush(arg2); | |
16004 | ||
16005 | wxPyEndAllowThreads(__tstate); | |
16006 | if (PyErr_Occurred()) SWIG_fail; | |
16007 | } | |
16008 | { | |
16009 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16010 | } | |
16011 | return resultobj; | |
16012 | fail: | |
16013 | return NULL; | |
16014 | } | |
16015 | ||
16016 | ||
c370783e | 16017 | static PyObject *_wrap_ConfigBase_RenameEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16018 | PyObject *resultobj; |
16019 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16020 | wxString *arg2 = 0 ; | |
16021 | wxString *arg3 = 0 ; | |
16022 | bool result; | |
b411df4a RD |
16023 | bool temp2 = false ; |
16024 | bool temp3 = false ; | |
d55e5bfc RD |
16025 | PyObject * obj0 = 0 ; |
16026 | PyObject * obj1 = 0 ; | |
16027 | PyObject * obj2 = 0 ; | |
16028 | char *kwnames[] = { | |
16029 | (char *) "self",(char *) "oldName",(char *) "newName", NULL | |
16030 | }; | |
16031 | ||
16032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16033 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16034 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16035 | { | |
16036 | arg2 = wxString_in_helper(obj1); | |
16037 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 16038 | temp2 = true; |
d55e5bfc RD |
16039 | } |
16040 | { | |
16041 | arg3 = wxString_in_helper(obj2); | |
16042 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 16043 | temp3 = true; |
d55e5bfc RD |
16044 | } |
16045 | { | |
16046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16047 | result = (bool)(arg1)->RenameEntry((wxString const &)*arg2,(wxString const &)*arg3); | |
16048 | ||
16049 | wxPyEndAllowThreads(__tstate); | |
16050 | if (PyErr_Occurred()) SWIG_fail; | |
16051 | } | |
16052 | { | |
16053 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16054 | } | |
16055 | { | |
16056 | if (temp2) | |
16057 | delete arg2; | |
16058 | } | |
16059 | { | |
16060 | if (temp3) | |
16061 | delete arg3; | |
16062 | } | |
16063 | return resultobj; | |
16064 | fail: | |
16065 | { | |
16066 | if (temp2) | |
16067 | delete arg2; | |
16068 | } | |
16069 | { | |
16070 | if (temp3) | |
16071 | delete arg3; | |
16072 | } | |
16073 | return NULL; | |
16074 | } | |
16075 | ||
16076 | ||
c370783e | 16077 | static PyObject *_wrap_ConfigBase_RenameGroup(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16078 | PyObject *resultobj; |
16079 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16080 | wxString *arg2 = 0 ; | |
16081 | wxString *arg3 = 0 ; | |
16082 | bool result; | |
b411df4a RD |
16083 | bool temp2 = false ; |
16084 | bool temp3 = false ; | |
d55e5bfc RD |
16085 | PyObject * obj0 = 0 ; |
16086 | PyObject * obj1 = 0 ; | |
16087 | PyObject * obj2 = 0 ; | |
16088 | char *kwnames[] = { | |
16089 | (char *) "self",(char *) "oldName",(char *) "newName", NULL | |
16090 | }; | |
16091 | ||
16092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameGroup",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16093 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16095 | { | |
16096 | arg2 = wxString_in_helper(obj1); | |
16097 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 16098 | temp2 = true; |
d55e5bfc RD |
16099 | } |
16100 | { | |
16101 | arg3 = wxString_in_helper(obj2); | |
16102 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 16103 | temp3 = true; |
d55e5bfc RD |
16104 | } |
16105 | { | |
16106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16107 | result = (bool)(arg1)->RenameGroup((wxString const &)*arg2,(wxString const &)*arg3); | |
16108 | ||
16109 | wxPyEndAllowThreads(__tstate); | |
16110 | if (PyErr_Occurred()) SWIG_fail; | |
16111 | } | |
16112 | { | |
16113 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16114 | } | |
16115 | { | |
16116 | if (temp2) | |
16117 | delete arg2; | |
16118 | } | |
16119 | { | |
16120 | if (temp3) | |
16121 | delete arg3; | |
16122 | } | |
16123 | return resultobj; | |
16124 | fail: | |
16125 | { | |
16126 | if (temp2) | |
16127 | delete arg2; | |
16128 | } | |
16129 | { | |
16130 | if (temp3) | |
16131 | delete arg3; | |
16132 | } | |
16133 | return NULL; | |
16134 | } | |
16135 | ||
16136 | ||
c370783e | 16137 | static PyObject *_wrap_ConfigBase_DeleteEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16138 | PyObject *resultobj; |
16139 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16140 | wxString *arg2 = 0 ; | |
b411df4a | 16141 | bool arg3 = (bool) true ; |
d55e5bfc | 16142 | bool result; |
b411df4a | 16143 | bool temp2 = false ; |
d55e5bfc RD |
16144 | PyObject * obj0 = 0 ; |
16145 | PyObject * obj1 = 0 ; | |
16146 | PyObject * obj2 = 0 ; | |
16147 | char *kwnames[] = { | |
16148 | (char *) "self",(char *) "key",(char *) "deleteGroupIfEmpty", NULL | |
16149 | }; | |
16150 | ||
16151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_DeleteEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16152 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16153 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16154 | { | |
16155 | arg2 = wxString_in_helper(obj1); | |
16156 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 16157 | temp2 = true; |
d55e5bfc RD |
16158 | } |
16159 | if (obj2) { | |
c370783e | 16160 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
16161 | if (PyErr_Occurred()) SWIG_fail; |
16162 | } | |
16163 | { | |
16164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16165 | result = (bool)(arg1)->DeleteEntry((wxString const &)*arg2,arg3); | |
16166 | ||
16167 | wxPyEndAllowThreads(__tstate); | |
16168 | if (PyErr_Occurred()) SWIG_fail; | |
16169 | } | |
16170 | { | |
16171 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16172 | } | |
16173 | { | |
16174 | if (temp2) | |
16175 | delete arg2; | |
16176 | } | |
16177 | return resultobj; | |
16178 | fail: | |
16179 | { | |
16180 | if (temp2) | |
16181 | delete arg2; | |
16182 | } | |
16183 | return NULL; | |
16184 | } | |
16185 | ||
16186 | ||
c370783e | 16187 | static PyObject *_wrap_ConfigBase_DeleteGroup(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16188 | PyObject *resultobj; |
16189 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16190 | wxString *arg2 = 0 ; | |
16191 | bool result; | |
b411df4a | 16192 | bool temp2 = false ; |
d55e5bfc RD |
16193 | PyObject * obj0 = 0 ; |
16194 | PyObject * obj1 = 0 ; | |
16195 | char *kwnames[] = { | |
16196 | (char *) "self",(char *) "key", NULL | |
16197 | }; | |
16198 | ||
16199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_DeleteGroup",kwnames,&obj0,&obj1)) goto fail; | |
16200 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16202 | { | |
16203 | arg2 = wxString_in_helper(obj1); | |
16204 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 16205 | temp2 = true; |
d55e5bfc RD |
16206 | } |
16207 | { | |
16208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16209 | result = (bool)(arg1)->DeleteGroup((wxString const &)*arg2); | |
16210 | ||
16211 | wxPyEndAllowThreads(__tstate); | |
16212 | if (PyErr_Occurred()) SWIG_fail; | |
16213 | } | |
16214 | { | |
16215 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16216 | } | |
16217 | { | |
16218 | if (temp2) | |
16219 | delete arg2; | |
16220 | } | |
16221 | return resultobj; | |
16222 | fail: | |
16223 | { | |
16224 | if (temp2) | |
16225 | delete arg2; | |
16226 | } | |
16227 | return NULL; | |
16228 | } | |
16229 | ||
16230 | ||
c370783e | 16231 | static PyObject *_wrap_ConfigBase_DeleteAll(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16232 | PyObject *resultobj; |
16233 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16234 | bool result; | |
16235 | PyObject * obj0 = 0 ; | |
16236 | char *kwnames[] = { | |
16237 | (char *) "self", NULL | |
16238 | }; | |
16239 | ||
16240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_DeleteAll",kwnames,&obj0)) goto fail; | |
16241 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16242 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16243 | { | |
16244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16245 | result = (bool)(arg1)->DeleteAll(); | |
16246 | ||
16247 | wxPyEndAllowThreads(__tstate); | |
16248 | if (PyErr_Occurred()) SWIG_fail; | |
16249 | } | |
16250 | { | |
16251 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16252 | } | |
16253 | return resultobj; | |
16254 | fail: | |
16255 | return NULL; | |
16256 | } | |
16257 | ||
16258 | ||
c370783e | 16259 | static PyObject *_wrap_ConfigBase_SetExpandEnvVars(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16260 | PyObject *resultobj; |
16261 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
b411df4a | 16262 | bool arg2 = (bool) true ; |
d55e5bfc RD |
16263 | PyObject * obj0 = 0 ; |
16264 | PyObject * obj1 = 0 ; | |
16265 | char *kwnames[] = { | |
16266 | (char *) "self",(char *) "doIt", NULL | |
16267 | }; | |
16268 | ||
16269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetExpandEnvVars",kwnames,&obj0,&obj1)) goto fail; | |
16270 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16271 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16272 | if (obj1) { | |
c370783e | 16273 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
16274 | if (PyErr_Occurred()) SWIG_fail; |
16275 | } | |
16276 | { | |
16277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16278 | (arg1)->SetExpandEnvVars(arg2); | |
16279 | ||
16280 | wxPyEndAllowThreads(__tstate); | |
16281 | if (PyErr_Occurred()) SWIG_fail; | |
16282 | } | |
16283 | Py_INCREF(Py_None); resultobj = Py_None; | |
16284 | return resultobj; | |
16285 | fail: | |
16286 | return NULL; | |
16287 | } | |
16288 | ||
16289 | ||
c370783e | 16290 | static PyObject *_wrap_ConfigBase_IsExpandingEnvVars(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16291 | PyObject *resultobj; |
16292 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16293 | bool result; | |
16294 | PyObject * obj0 = 0 ; | |
16295 | char *kwnames[] = { | |
16296 | (char *) "self", NULL | |
16297 | }; | |
16298 | ||
16299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsExpandingEnvVars",kwnames,&obj0)) goto fail; | |
16300 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16301 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16302 | { | |
16303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16304 | result = (bool)((wxConfigBase const *)arg1)->IsExpandingEnvVars(); | |
16305 | ||
16306 | wxPyEndAllowThreads(__tstate); | |
16307 | if (PyErr_Occurred()) SWIG_fail; | |
16308 | } | |
16309 | { | |
16310 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16311 | } | |
16312 | return resultobj; | |
16313 | fail: | |
16314 | return NULL; | |
16315 | } | |
16316 | ||
16317 | ||
c370783e | 16318 | static PyObject *_wrap_ConfigBase_SetRecordDefaults(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16319 | PyObject *resultobj; |
16320 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
b411df4a | 16321 | bool arg2 = (bool) true ; |
d55e5bfc RD |
16322 | PyObject * obj0 = 0 ; |
16323 | PyObject * obj1 = 0 ; | |
16324 | char *kwnames[] = { | |
16325 | (char *) "self",(char *) "doIt", NULL | |
16326 | }; | |
16327 | ||
16328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetRecordDefaults",kwnames,&obj0,&obj1)) goto fail; | |
16329 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16330 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16331 | if (obj1) { | |
c370783e | 16332 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
16333 | if (PyErr_Occurred()) SWIG_fail; |
16334 | } | |
16335 | { | |
16336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16337 | (arg1)->SetRecordDefaults(arg2); | |
16338 | ||
16339 | wxPyEndAllowThreads(__tstate); | |
16340 | if (PyErr_Occurred()) SWIG_fail; | |
16341 | } | |
16342 | Py_INCREF(Py_None); resultobj = Py_None; | |
16343 | return resultobj; | |
16344 | fail: | |
16345 | return NULL; | |
16346 | } | |
16347 | ||
16348 | ||
c370783e | 16349 | static PyObject *_wrap_ConfigBase_IsRecordingDefaults(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16350 | PyObject *resultobj; |
16351 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16352 | bool result; | |
16353 | PyObject * obj0 = 0 ; | |
16354 | char *kwnames[] = { | |
16355 | (char *) "self", NULL | |
16356 | }; | |
16357 | ||
16358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsRecordingDefaults",kwnames,&obj0)) goto fail; | |
16359 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16361 | { | |
16362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16363 | result = (bool)((wxConfigBase const *)arg1)->IsRecordingDefaults(); | |
16364 | ||
16365 | wxPyEndAllowThreads(__tstate); | |
16366 | if (PyErr_Occurred()) SWIG_fail; | |
16367 | } | |
16368 | { | |
16369 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16370 | } | |
16371 | return resultobj; | |
16372 | fail: | |
16373 | return NULL; | |
16374 | } | |
16375 | ||
16376 | ||
c370783e | 16377 | static PyObject *_wrap_ConfigBase_ExpandEnvVars(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16378 | PyObject *resultobj; |
16379 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16380 | wxString *arg2 = 0 ; | |
16381 | wxString result; | |
b411df4a | 16382 | bool temp2 = false ; |
d55e5bfc RD |
16383 | PyObject * obj0 = 0 ; |
16384 | PyObject * obj1 = 0 ; | |
16385 | char *kwnames[] = { | |
16386 | (char *) "self",(char *) "str", NULL | |
16387 | }; | |
16388 | ||
16389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_ExpandEnvVars",kwnames,&obj0,&obj1)) goto fail; | |
16390 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16391 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16392 | { | |
16393 | arg2 = wxString_in_helper(obj1); | |
16394 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 16395 | temp2 = true; |
d55e5bfc RD |
16396 | } |
16397 | { | |
16398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16399 | result = ((wxConfigBase const *)arg1)->ExpandEnvVars((wxString const &)*arg2); | |
16400 | ||
16401 | wxPyEndAllowThreads(__tstate); | |
16402 | if (PyErr_Occurred()) SWIG_fail; | |
16403 | } | |
16404 | { | |
16405 | #if wxUSE_UNICODE | |
16406 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16407 | #else | |
16408 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16409 | #endif | |
16410 | } | |
16411 | { | |
16412 | if (temp2) | |
16413 | delete arg2; | |
16414 | } | |
16415 | return resultobj; | |
16416 | fail: | |
16417 | { | |
16418 | if (temp2) | |
16419 | delete arg2; | |
16420 | } | |
16421 | return NULL; | |
16422 | } | |
16423 | ||
16424 | ||
c370783e | 16425 | static PyObject *_wrap_ConfigBase_GetAppName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16426 | PyObject *resultobj; |
16427 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16428 | wxString result; | |
16429 | PyObject * obj0 = 0 ; | |
16430 | char *kwnames[] = { | |
16431 | (char *) "self", NULL | |
16432 | }; | |
16433 | ||
16434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetAppName",kwnames,&obj0)) goto fail; | |
16435 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16436 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16437 | { | |
16438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16439 | result = ((wxConfigBase const *)arg1)->GetAppName(); | |
16440 | ||
16441 | wxPyEndAllowThreads(__tstate); | |
16442 | if (PyErr_Occurred()) SWIG_fail; | |
16443 | } | |
16444 | { | |
16445 | #if wxUSE_UNICODE | |
16446 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16447 | #else | |
16448 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16449 | #endif | |
16450 | } | |
16451 | return resultobj; | |
16452 | fail: | |
16453 | return NULL; | |
16454 | } | |
16455 | ||
16456 | ||
c370783e | 16457 | static PyObject *_wrap_ConfigBase_GetVendorName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16458 | PyObject *resultobj; |
16459 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16460 | wxString result; | |
16461 | PyObject * obj0 = 0 ; | |
16462 | char *kwnames[] = { | |
16463 | (char *) "self", NULL | |
16464 | }; | |
16465 | ||
16466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetVendorName",kwnames,&obj0)) goto fail; | |
16467 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16469 | { | |
16470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16471 | result = ((wxConfigBase const *)arg1)->GetVendorName(); | |
16472 | ||
16473 | wxPyEndAllowThreads(__tstate); | |
16474 | if (PyErr_Occurred()) SWIG_fail; | |
16475 | } | |
16476 | { | |
16477 | #if wxUSE_UNICODE | |
16478 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16479 | #else | |
16480 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16481 | #endif | |
16482 | } | |
16483 | return resultobj; | |
16484 | fail: | |
16485 | return NULL; | |
16486 | } | |
16487 | ||
16488 | ||
c370783e | 16489 | static PyObject *_wrap_ConfigBase_SetAppName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16490 | PyObject *resultobj; |
16491 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16492 | wxString *arg2 = 0 ; | |
b411df4a | 16493 | bool temp2 = false ; |
d55e5bfc RD |
16494 | PyObject * obj0 = 0 ; |
16495 | PyObject * obj1 = 0 ; | |
16496 | char *kwnames[] = { | |
16497 | (char *) "self",(char *) "appName", NULL | |
16498 | }; | |
16499 | ||
16500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetAppName",kwnames,&obj0,&obj1)) goto fail; | |
16501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16503 | { | |
16504 | arg2 = wxString_in_helper(obj1); | |
16505 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 16506 | temp2 = true; |
d55e5bfc RD |
16507 | } |
16508 | { | |
16509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16510 | (arg1)->SetAppName((wxString const &)*arg2); | |
16511 | ||
16512 | wxPyEndAllowThreads(__tstate); | |
16513 | if (PyErr_Occurred()) SWIG_fail; | |
16514 | } | |
16515 | Py_INCREF(Py_None); resultobj = Py_None; | |
16516 | { | |
16517 | if (temp2) | |
16518 | delete arg2; | |
16519 | } | |
16520 | return resultobj; | |
16521 | fail: | |
16522 | { | |
16523 | if (temp2) | |
16524 | delete arg2; | |
16525 | } | |
16526 | return NULL; | |
16527 | } | |
16528 | ||
16529 | ||
c370783e | 16530 | static PyObject *_wrap_ConfigBase_SetVendorName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16531 | PyObject *resultobj; |
16532 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16533 | wxString *arg2 = 0 ; | |
b411df4a | 16534 | bool temp2 = false ; |
d55e5bfc RD |
16535 | PyObject * obj0 = 0 ; |
16536 | PyObject * obj1 = 0 ; | |
16537 | char *kwnames[] = { | |
16538 | (char *) "self",(char *) "vendorName", NULL | |
16539 | }; | |
16540 | ||
16541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetVendorName",kwnames,&obj0,&obj1)) goto fail; | |
16542 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16543 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16544 | { | |
16545 | arg2 = wxString_in_helper(obj1); | |
16546 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 16547 | temp2 = true; |
d55e5bfc RD |
16548 | } |
16549 | { | |
16550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16551 | (arg1)->SetVendorName((wxString const &)*arg2); | |
16552 | ||
16553 | wxPyEndAllowThreads(__tstate); | |
16554 | if (PyErr_Occurred()) SWIG_fail; | |
16555 | } | |
16556 | Py_INCREF(Py_None); resultobj = Py_None; | |
16557 | { | |
16558 | if (temp2) | |
16559 | delete arg2; | |
16560 | } | |
16561 | return resultobj; | |
16562 | fail: | |
16563 | { | |
16564 | if (temp2) | |
16565 | delete arg2; | |
16566 | } | |
16567 | return NULL; | |
16568 | } | |
16569 | ||
16570 | ||
c370783e | 16571 | static PyObject *_wrap_ConfigBase_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16572 | PyObject *resultobj; |
16573 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16574 | long arg2 ; | |
16575 | PyObject * obj0 = 0 ; | |
16576 | PyObject * obj1 = 0 ; | |
16577 | char *kwnames[] = { | |
16578 | (char *) "self",(char *) "style", NULL | |
16579 | }; | |
16580 | ||
16581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetStyle",kwnames,&obj0,&obj1)) goto fail; | |
16582 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16583 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 16584 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
16585 | if (PyErr_Occurred()) SWIG_fail; |
16586 | { | |
16587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16588 | (arg1)->SetStyle(arg2); | |
16589 | ||
16590 | wxPyEndAllowThreads(__tstate); | |
16591 | if (PyErr_Occurred()) SWIG_fail; | |
16592 | } | |
16593 | Py_INCREF(Py_None); resultobj = Py_None; | |
16594 | return resultobj; | |
16595 | fail: | |
16596 | return NULL; | |
16597 | } | |
16598 | ||
16599 | ||
c370783e | 16600 | static PyObject *_wrap_ConfigBase_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16601 | PyObject *resultobj; |
16602 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16603 | long result; | |
16604 | PyObject * obj0 = 0 ; | |
16605 | char *kwnames[] = { | |
16606 | (char *) "self", NULL | |
16607 | }; | |
16608 | ||
16609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetStyle",kwnames,&obj0)) goto fail; | |
16610 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16611 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16612 | { | |
16613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16614 | result = (long)((wxConfigBase const *)arg1)->GetStyle(); | |
16615 | ||
16616 | wxPyEndAllowThreads(__tstate); | |
16617 | if (PyErr_Occurred()) SWIG_fail; | |
16618 | } | |
c370783e | 16619 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
16620 | return resultobj; |
16621 | fail: | |
16622 | return NULL; | |
16623 | } | |
16624 | ||
16625 | ||
c370783e | 16626 | static PyObject * ConfigBase_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
16627 | PyObject *obj; |
16628 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16629 | SWIG_TypeClientData(SWIGTYPE_p_wxConfigBase, obj); | |
16630 | Py_INCREF(obj); | |
16631 | return Py_BuildValue((char *)""); | |
16632 | } | |
c370783e | 16633 | static PyObject *_wrap_new_Config(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16634 | PyObject *resultobj; |
16635 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
16636 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
16637 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
16638 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
16639 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16640 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16641 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
16642 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
16643 | long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ; | |
16644 | wxConfig *result; | |
b411df4a RD |
16645 | bool temp1 = false ; |
16646 | bool temp2 = false ; | |
16647 | bool temp3 = false ; | |
16648 | bool temp4 = false ; | |
d55e5bfc RD |
16649 | PyObject * obj0 = 0 ; |
16650 | PyObject * obj1 = 0 ; | |
16651 | PyObject * obj2 = 0 ; | |
16652 | PyObject * obj3 = 0 ; | |
16653 | PyObject * obj4 = 0 ; | |
16654 | char *kwnames[] = { | |
16655 | (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL | |
16656 | }; | |
16657 | ||
16658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_Config",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
16659 | if (obj0) { | |
16660 | { | |
16661 | arg1 = wxString_in_helper(obj0); | |
16662 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 16663 | temp1 = true; |
d55e5bfc RD |
16664 | } |
16665 | } | |
16666 | if (obj1) { | |
16667 | { | |
16668 | arg2 = wxString_in_helper(obj1); | |
16669 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 16670 | temp2 = true; |
d55e5bfc RD |
16671 | } |
16672 | } | |
16673 | if (obj2) { | |
16674 | { | |
16675 | arg3 = wxString_in_helper(obj2); | |
16676 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 16677 | temp3 = true; |
d55e5bfc RD |
16678 | } |
16679 | } | |
16680 | if (obj3) { | |
16681 | { | |
16682 | arg4 = wxString_in_helper(obj3); | |
16683 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 16684 | temp4 = true; |
d55e5bfc RD |
16685 | } |
16686 | } | |
16687 | if (obj4) { | |
c370783e | 16688 | arg5 = (long)SWIG_As_long(obj4); |
d55e5bfc RD |
16689 | if (PyErr_Occurred()) SWIG_fail; |
16690 | } | |
16691 | { | |
16692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16693 | result = (wxConfig *)new wxConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
16694 | ||
16695 | wxPyEndAllowThreads(__tstate); | |
16696 | if (PyErr_Occurred()) SWIG_fail; | |
16697 | } | |
16698 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfig, 1); | |
16699 | { | |
16700 | if (temp1) | |
16701 | delete arg1; | |
16702 | } | |
16703 | { | |
16704 | if (temp2) | |
16705 | delete arg2; | |
16706 | } | |
16707 | { | |
16708 | if (temp3) | |
16709 | delete arg3; | |
16710 | } | |
16711 | { | |
16712 | if (temp4) | |
16713 | delete arg4; | |
16714 | } | |
16715 | return resultobj; | |
16716 | fail: | |
16717 | { | |
16718 | if (temp1) | |
16719 | delete arg1; | |
16720 | } | |
16721 | { | |
16722 | if (temp2) | |
16723 | delete arg2; | |
16724 | } | |
16725 | { | |
16726 | if (temp3) | |
16727 | delete arg3; | |
16728 | } | |
16729 | { | |
16730 | if (temp4) | |
16731 | delete arg4; | |
16732 | } | |
16733 | return NULL; | |
16734 | } | |
16735 | ||
16736 | ||
c370783e | 16737 | static PyObject *_wrap_delete_Config(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16738 | PyObject *resultobj; |
16739 | wxConfig *arg1 = (wxConfig *) 0 ; | |
16740 | PyObject * obj0 = 0 ; | |
16741 | char *kwnames[] = { | |
16742 | (char *) "self", NULL | |
16743 | }; | |
16744 | ||
16745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Config",kwnames,&obj0)) goto fail; | |
16746 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfig, | |
16747 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16748 | { | |
16749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16750 | delete arg1; | |
16751 | ||
16752 | wxPyEndAllowThreads(__tstate); | |
16753 | if (PyErr_Occurred()) SWIG_fail; | |
16754 | } | |
16755 | Py_INCREF(Py_None); resultobj = Py_None; | |
16756 | return resultobj; | |
16757 | fail: | |
16758 | return NULL; | |
16759 | } | |
16760 | ||
16761 | ||
c370783e | 16762 | static PyObject * Config_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
16763 | PyObject *obj; |
16764 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16765 | SWIG_TypeClientData(SWIGTYPE_p_wxConfig, obj); | |
16766 | Py_INCREF(obj); | |
16767 | return Py_BuildValue((char *)""); | |
16768 | } | |
c370783e | 16769 | static PyObject *_wrap_new_FileConfig(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16770 | PyObject *resultobj; |
16771 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
16772 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
16773 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
16774 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
16775 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16776 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16777 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
16778 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
16779 | long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ; | |
16780 | wxFileConfig *result; | |
b411df4a RD |
16781 | bool temp1 = false ; |
16782 | bool temp2 = false ; | |
16783 | bool temp3 = false ; | |
16784 | bool temp4 = false ; | |
d55e5bfc RD |
16785 | PyObject * obj0 = 0 ; |
16786 | PyObject * obj1 = 0 ; | |
16787 | PyObject * obj2 = 0 ; | |
16788 | PyObject * obj3 = 0 ; | |
16789 | PyObject * obj4 = 0 ; | |
16790 | char *kwnames[] = { | |
16791 | (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL | |
16792 | }; | |
16793 | ||
16794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_FileConfig",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
16795 | if (obj0) { | |
16796 | { | |
16797 | arg1 = wxString_in_helper(obj0); | |
16798 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 16799 | temp1 = true; |
d55e5bfc RD |
16800 | } |
16801 | } | |
16802 | if (obj1) { | |
16803 | { | |
16804 | arg2 = wxString_in_helper(obj1); | |
16805 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 16806 | temp2 = true; |
d55e5bfc RD |
16807 | } |
16808 | } | |
16809 | if (obj2) { | |
16810 | { | |
16811 | arg3 = wxString_in_helper(obj2); | |
16812 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 16813 | temp3 = true; |
d55e5bfc RD |
16814 | } |
16815 | } | |
16816 | if (obj3) { | |
16817 | { | |
16818 | arg4 = wxString_in_helper(obj3); | |
16819 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 16820 | temp4 = true; |
d55e5bfc RD |
16821 | } |
16822 | } | |
16823 | if (obj4) { | |
c370783e | 16824 | arg5 = (long)SWIG_As_long(obj4); |
d55e5bfc RD |
16825 | if (PyErr_Occurred()) SWIG_fail; |
16826 | } | |
16827 | { | |
16828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16829 | result = (wxFileConfig *)new wxFileConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
16830 | ||
16831 | wxPyEndAllowThreads(__tstate); | |
16832 | if (PyErr_Occurred()) SWIG_fail; | |
16833 | } | |
16834 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileConfig, 1); | |
16835 | { | |
16836 | if (temp1) | |
16837 | delete arg1; | |
16838 | } | |
16839 | { | |
16840 | if (temp2) | |
16841 | delete arg2; | |
16842 | } | |
16843 | { | |
16844 | if (temp3) | |
16845 | delete arg3; | |
16846 | } | |
16847 | { | |
16848 | if (temp4) | |
16849 | delete arg4; | |
16850 | } | |
16851 | return resultobj; | |
16852 | fail: | |
16853 | { | |
16854 | if (temp1) | |
16855 | delete arg1; | |
16856 | } | |
16857 | { | |
16858 | if (temp2) | |
16859 | delete arg2; | |
16860 | } | |
16861 | { | |
16862 | if (temp3) | |
16863 | delete arg3; | |
16864 | } | |
16865 | { | |
16866 | if (temp4) | |
16867 | delete arg4; | |
16868 | } | |
16869 | return NULL; | |
16870 | } | |
16871 | ||
16872 | ||
c370783e | 16873 | static PyObject *_wrap_delete_FileConfig(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16874 | PyObject *resultobj; |
16875 | wxFileConfig *arg1 = (wxFileConfig *) 0 ; | |
16876 | PyObject * obj0 = 0 ; | |
16877 | char *kwnames[] = { | |
16878 | (char *) "self", NULL | |
16879 | }; | |
16880 | ||
16881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileConfig",kwnames,&obj0)) goto fail; | |
16882 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileConfig, | |
16883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16884 | { | |
16885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16886 | delete arg1; | |
16887 | ||
16888 | wxPyEndAllowThreads(__tstate); | |
16889 | if (PyErr_Occurred()) SWIG_fail; | |
16890 | } | |
16891 | Py_INCREF(Py_None); resultobj = Py_None; | |
16892 | return resultobj; | |
16893 | fail: | |
16894 | return NULL; | |
16895 | } | |
16896 | ||
16897 | ||
c370783e | 16898 | static PyObject * FileConfig_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
16899 | PyObject *obj; |
16900 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16901 | SWIG_TypeClientData(SWIGTYPE_p_wxFileConfig, obj); | |
16902 | Py_INCREF(obj); | |
16903 | return Py_BuildValue((char *)""); | |
16904 | } | |
c370783e | 16905 | static PyObject *_wrap_new_ConfigPathChanger(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16906 | PyObject *resultobj; |
16907 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16908 | wxString *arg2 = 0 ; | |
16909 | wxConfigPathChanger *result; | |
b411df4a | 16910 | bool temp2 = false ; |
d55e5bfc RD |
16911 | PyObject * obj0 = 0 ; |
16912 | PyObject * obj1 = 0 ; | |
16913 | char *kwnames[] = { | |
16914 | (char *) "config",(char *) "entry", NULL | |
16915 | }; | |
16916 | ||
16917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_ConfigPathChanger",kwnames,&obj0,&obj1)) goto fail; | |
16918 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16919 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16920 | { | |
16921 | arg2 = wxString_in_helper(obj1); | |
16922 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 16923 | temp2 = true; |
d55e5bfc RD |
16924 | } |
16925 | { | |
16926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16927 | result = (wxConfigPathChanger *)new wxConfigPathChanger((wxConfigBase const *)arg1,(wxString const &)*arg2); | |
16928 | ||
16929 | wxPyEndAllowThreads(__tstate); | |
16930 | if (PyErr_Occurred()) SWIG_fail; | |
16931 | } | |
16932 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigPathChanger, 1); | |
16933 | { | |
16934 | if (temp2) | |
16935 | delete arg2; | |
16936 | } | |
16937 | return resultobj; | |
16938 | fail: | |
16939 | { | |
16940 | if (temp2) | |
16941 | delete arg2; | |
16942 | } | |
16943 | return NULL; | |
16944 | } | |
16945 | ||
16946 | ||
c370783e | 16947 | static PyObject *_wrap_delete_ConfigPathChanger(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16948 | PyObject *resultobj; |
16949 | wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ; | |
16950 | PyObject * obj0 = 0 ; | |
16951 | char *kwnames[] = { | |
16952 | (char *) "self", NULL | |
16953 | }; | |
16954 | ||
16955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigPathChanger",kwnames,&obj0)) goto fail; | |
16956 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger, | |
16957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16958 | { | |
16959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16960 | delete arg1; | |
16961 | ||
16962 | wxPyEndAllowThreads(__tstate); | |
16963 | if (PyErr_Occurred()) SWIG_fail; | |
16964 | } | |
16965 | Py_INCREF(Py_None); resultobj = Py_None; | |
16966 | return resultobj; | |
16967 | fail: | |
16968 | return NULL; | |
16969 | } | |
16970 | ||
16971 | ||
c370783e | 16972 | static PyObject *_wrap_ConfigPathChanger_Name(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16973 | PyObject *resultobj; |
16974 | wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ; | |
16975 | wxString *result; | |
16976 | PyObject * obj0 = 0 ; | |
16977 | char *kwnames[] = { | |
16978 | (char *) "self", NULL | |
16979 | }; | |
16980 | ||
16981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigPathChanger_Name",kwnames,&obj0)) goto fail; | |
16982 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger, | |
16983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16984 | { | |
16985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16986 | { | |
16987 | wxString const &_result_ref = ((wxConfigPathChanger const *)arg1)->Name(); | |
16988 | result = (wxString *) &_result_ref; | |
16989 | } | |
16990 | ||
16991 | wxPyEndAllowThreads(__tstate); | |
16992 | if (PyErr_Occurred()) SWIG_fail; | |
16993 | } | |
16994 | { | |
16995 | #if wxUSE_UNICODE | |
16996 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
16997 | #else | |
16998 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
16999 | #endif | |
17000 | } | |
17001 | return resultobj; | |
17002 | fail: | |
17003 | return NULL; | |
17004 | } | |
17005 | ||
17006 | ||
c370783e | 17007 | static PyObject * ConfigPathChanger_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17008 | PyObject *obj; |
17009 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17010 | SWIG_TypeClientData(SWIGTYPE_p_wxConfigPathChanger, obj); | |
17011 | Py_INCREF(obj); | |
17012 | return Py_BuildValue((char *)""); | |
17013 | } | |
c370783e | 17014 | static PyObject *_wrap_ExpandEnvVars(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17015 | PyObject *resultobj; |
17016 | wxString *arg1 = 0 ; | |
17017 | wxString result; | |
b411df4a | 17018 | bool temp1 = false ; |
d55e5bfc RD |
17019 | PyObject * obj0 = 0 ; |
17020 | char *kwnames[] = { | |
17021 | (char *) "sz", NULL | |
17022 | }; | |
17023 | ||
17024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ExpandEnvVars",kwnames,&obj0)) goto fail; | |
17025 | { | |
17026 | arg1 = wxString_in_helper(obj0); | |
17027 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 17028 | temp1 = true; |
d55e5bfc RD |
17029 | } |
17030 | { | |
17031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17032 | result = wxExpandEnvVars((wxString const &)*arg1); | |
17033 | ||
17034 | wxPyEndAllowThreads(__tstate); | |
17035 | if (PyErr_Occurred()) SWIG_fail; | |
17036 | } | |
17037 | { | |
17038 | #if wxUSE_UNICODE | |
17039 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17040 | #else | |
17041 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17042 | #endif | |
17043 | } | |
17044 | { | |
17045 | if (temp1) | |
17046 | delete arg1; | |
17047 | } | |
17048 | return resultobj; | |
17049 | fail: | |
17050 | { | |
17051 | if (temp1) | |
17052 | delete arg1; | |
17053 | } | |
17054 | return NULL; | |
17055 | } | |
17056 | ||
17057 | ||
c370783e | 17058 | static int _wrap_DateFormatStr_set(PyObject *) { |
d55e5bfc RD |
17059 | PyErr_SetString(PyExc_TypeError,"Variable DateFormatStr is read-only."); |
17060 | return 1; | |
17061 | } | |
17062 | ||
17063 | ||
17064 | static PyObject *_wrap_DateFormatStr_get() { | |
17065 | PyObject *pyobj; | |
17066 | ||
17067 | { | |
17068 | #if wxUSE_UNICODE | |
17069 | pyobj = PyUnicode_FromWideChar((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len()); | |
17070 | #else | |
17071 | pyobj = PyString_FromStringAndSize((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len()); | |
17072 | #endif | |
17073 | } | |
17074 | return pyobj; | |
17075 | } | |
17076 | ||
17077 | ||
c370783e | 17078 | static int _wrap_TimeSpanFormatStr_set(PyObject *) { |
d55e5bfc RD |
17079 | PyErr_SetString(PyExc_TypeError,"Variable TimeSpanFormatStr is read-only."); |
17080 | return 1; | |
17081 | } | |
17082 | ||
17083 | ||
17084 | static PyObject *_wrap_TimeSpanFormatStr_get() { | |
17085 | PyObject *pyobj; | |
17086 | ||
17087 | { | |
17088 | #if wxUSE_UNICODE | |
17089 | pyobj = PyUnicode_FromWideChar((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len()); | |
17090 | #else | |
17091 | pyobj = PyString_FromStringAndSize((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len()); | |
17092 | #endif | |
17093 | } | |
17094 | return pyobj; | |
17095 | } | |
17096 | ||
17097 | ||
c370783e | 17098 | static PyObject *_wrap_DateTime_SetCountry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17099 | PyObject *resultobj; |
17100 | int arg1 ; | |
17101 | PyObject * obj0 = 0 ; | |
17102 | char *kwnames[] = { | |
17103 | (char *) "country", NULL | |
17104 | }; | |
17105 | ||
17106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetCountry",kwnames,&obj0)) goto fail; | |
c370783e | 17107 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17108 | if (PyErr_Occurred()) SWIG_fail; |
17109 | { | |
17110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17111 | wxDateTime::SetCountry((wxDateTime::Country )arg1); | |
17112 | ||
17113 | wxPyEndAllowThreads(__tstate); | |
17114 | if (PyErr_Occurred()) SWIG_fail; | |
17115 | } | |
17116 | Py_INCREF(Py_None); resultobj = Py_None; | |
17117 | return resultobj; | |
17118 | fail: | |
17119 | return NULL; | |
17120 | } | |
17121 | ||
17122 | ||
c370783e | 17123 | static PyObject *_wrap_DateTime_GetCountry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17124 | PyObject *resultobj; |
17125 | int result; | |
17126 | char *kwnames[] = { | |
17127 | NULL | |
17128 | }; | |
17129 | ||
17130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetCountry",kwnames)) goto fail; | |
17131 | { | |
17132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17133 | result = (int)wxDateTime::GetCountry(); | |
17134 | ||
17135 | wxPyEndAllowThreads(__tstate); | |
17136 | if (PyErr_Occurred()) SWIG_fail; | |
17137 | } | |
c370783e | 17138 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
17139 | return resultobj; |
17140 | fail: | |
17141 | return NULL; | |
17142 | } | |
17143 | ||
17144 | ||
c370783e | 17145 | static PyObject *_wrap_DateTime_IsWestEuropeanCountry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17146 | PyObject *resultobj; |
17147 | int arg1 = (int) wxDateTime::Country_Default ; | |
17148 | bool result; | |
17149 | PyObject * obj0 = 0 ; | |
17150 | char *kwnames[] = { | |
17151 | (char *) "country", NULL | |
17152 | }; | |
17153 | ||
17154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_IsWestEuropeanCountry",kwnames,&obj0)) goto fail; | |
17155 | if (obj0) { | |
c370783e | 17156 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17157 | if (PyErr_Occurred()) SWIG_fail; |
17158 | } | |
17159 | { | |
17160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17161 | result = (bool)wxDateTime::IsWestEuropeanCountry((wxDateTime::Country )arg1); | |
17162 | ||
17163 | wxPyEndAllowThreads(__tstate); | |
17164 | if (PyErr_Occurred()) SWIG_fail; | |
17165 | } | |
17166 | { | |
17167 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17168 | } | |
17169 | return resultobj; | |
17170 | fail: | |
17171 | return NULL; | |
17172 | } | |
17173 | ||
17174 | ||
c370783e | 17175 | static PyObject *_wrap_DateTime_GetCurrentYear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17176 | PyObject *resultobj; |
17177 | int arg1 = (int) wxDateTime::Gregorian ; | |
17178 | int result; | |
17179 | PyObject * obj0 = 0 ; | |
17180 | char *kwnames[] = { | |
17181 | (char *) "cal", NULL | |
17182 | }; | |
17183 | ||
17184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentYear",kwnames,&obj0)) goto fail; | |
17185 | if (obj0) { | |
c370783e | 17186 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17187 | if (PyErr_Occurred()) SWIG_fail; |
17188 | } | |
17189 | { | |
17190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17191 | result = (int)wxDateTime::GetCurrentYear((wxDateTime::Calendar )arg1); | |
17192 | ||
17193 | wxPyEndAllowThreads(__tstate); | |
17194 | if (PyErr_Occurred()) SWIG_fail; | |
17195 | } | |
c370783e | 17196 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
17197 | return resultobj; |
17198 | fail: | |
17199 | return NULL; | |
17200 | } | |
17201 | ||
17202 | ||
c370783e | 17203 | static PyObject *_wrap_DateTime_ConvertYearToBC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17204 | PyObject *resultobj; |
17205 | int arg1 ; | |
17206 | int result; | |
17207 | PyObject * obj0 = 0 ; | |
17208 | char *kwnames[] = { | |
17209 | (char *) "year", NULL | |
17210 | }; | |
17211 | ||
17212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ConvertYearToBC",kwnames,&obj0)) goto fail; | |
c370783e | 17213 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17214 | if (PyErr_Occurred()) SWIG_fail; |
17215 | { | |
17216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17217 | result = (int)wxDateTime::ConvertYearToBC(arg1); | |
17218 | ||
17219 | wxPyEndAllowThreads(__tstate); | |
17220 | if (PyErr_Occurred()) SWIG_fail; | |
17221 | } | |
c370783e | 17222 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
17223 | return resultobj; |
17224 | fail: | |
17225 | return NULL; | |
17226 | } | |
17227 | ||
17228 | ||
c370783e | 17229 | static PyObject *_wrap_DateTime_GetCurrentMonth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17230 | PyObject *resultobj; |
17231 | int arg1 = (int) wxDateTime::Gregorian ; | |
17232 | int result; | |
17233 | PyObject * obj0 = 0 ; | |
17234 | char *kwnames[] = { | |
17235 | (char *) "cal", NULL | |
17236 | }; | |
17237 | ||
17238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentMonth",kwnames,&obj0)) goto fail; | |
17239 | if (obj0) { | |
c370783e | 17240 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17241 | if (PyErr_Occurred()) SWIG_fail; |
17242 | } | |
17243 | { | |
17244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17245 | result = (int)wxDateTime::GetCurrentMonth((wxDateTime::Calendar )arg1); | |
17246 | ||
17247 | wxPyEndAllowThreads(__tstate); | |
17248 | if (PyErr_Occurred()) SWIG_fail; | |
17249 | } | |
c370783e | 17250 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
17251 | return resultobj; |
17252 | fail: | |
17253 | return NULL; | |
17254 | } | |
17255 | ||
17256 | ||
c370783e | 17257 | static PyObject *_wrap_DateTime_IsLeapYear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17258 | PyObject *resultobj; |
17259 | int arg1 = (int) wxDateTime::Inv_Year ; | |
17260 | int arg2 = (int) wxDateTime::Gregorian ; | |
17261 | bool result; | |
17262 | PyObject * obj0 = 0 ; | |
17263 | PyObject * obj1 = 0 ; | |
17264 | char *kwnames[] = { | |
17265 | (char *) "year",(char *) "cal", NULL | |
17266 | }; | |
17267 | ||
17268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsLeapYear",kwnames,&obj0,&obj1)) goto fail; | |
17269 | if (obj0) { | |
c370783e | 17270 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17271 | if (PyErr_Occurred()) SWIG_fail; |
17272 | } | |
17273 | if (obj1) { | |
c370783e | 17274 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17275 | if (PyErr_Occurred()) SWIG_fail; |
17276 | } | |
17277 | { | |
17278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17279 | result = (bool)wxDateTime::IsLeapYear(arg1,(wxDateTime::Calendar )arg2); | |
17280 | ||
17281 | wxPyEndAllowThreads(__tstate); | |
17282 | if (PyErr_Occurred()) SWIG_fail; | |
17283 | } | |
17284 | { | |
17285 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17286 | } | |
17287 | return resultobj; | |
17288 | fail: | |
17289 | return NULL; | |
17290 | } | |
17291 | ||
17292 | ||
c370783e | 17293 | static PyObject *_wrap_DateTime_GetCentury(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17294 | PyObject *resultobj; |
17295 | int arg1 = (int) wxDateTime::Inv_Year ; | |
17296 | int result; | |
17297 | PyObject * obj0 = 0 ; | |
17298 | char *kwnames[] = { | |
17299 | (char *) "year", NULL | |
17300 | }; | |
17301 | ||
17302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCentury",kwnames,&obj0)) goto fail; | |
17303 | if (obj0) { | |
c370783e | 17304 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17305 | if (PyErr_Occurred()) SWIG_fail; |
17306 | } | |
17307 | { | |
17308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17309 | result = (int)wxDateTime::GetCentury(arg1); | |
17310 | ||
17311 | wxPyEndAllowThreads(__tstate); | |
17312 | if (PyErr_Occurred()) SWIG_fail; | |
17313 | } | |
c370783e | 17314 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
17315 | return resultobj; |
17316 | fail: | |
17317 | return NULL; | |
17318 | } | |
17319 | ||
17320 | ||
c370783e | 17321 | static PyObject *_wrap_DateTime_GetNumberOfDaysinYear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17322 | PyObject *resultobj; |
17323 | int arg1 ; | |
17324 | int arg2 = (int) wxDateTime::Gregorian ; | |
17325 | int result; | |
17326 | PyObject * obj0 = 0 ; | |
17327 | PyObject * obj1 = 0 ; | |
17328 | char *kwnames[] = { | |
17329 | (char *) "year",(char *) "cal", NULL | |
17330 | }; | |
17331 | ||
17332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetNumberOfDaysinYear",kwnames,&obj0,&obj1)) goto fail; | |
c370783e | 17333 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17334 | if (PyErr_Occurred()) SWIG_fail; |
17335 | if (obj1) { | |
c370783e | 17336 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17337 | if (PyErr_Occurred()) SWIG_fail; |
17338 | } | |
17339 | { | |
17340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17341 | result = (int)wxDateTime::GetNumberOfDays(arg1,(wxDateTime::Calendar )arg2); | |
17342 | ||
17343 | wxPyEndAllowThreads(__tstate); | |
17344 | if (PyErr_Occurred()) SWIG_fail; | |
17345 | } | |
c370783e | 17346 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
17347 | return resultobj; |
17348 | fail: | |
17349 | return NULL; | |
17350 | } | |
17351 | ||
17352 | ||
c370783e | 17353 | static PyObject *_wrap_DateTime_GetNumberOfDaysInMonth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17354 | PyObject *resultobj; |
17355 | int arg1 ; | |
17356 | int arg2 = (int) wxDateTime::Inv_Year ; | |
17357 | int arg3 = (int) wxDateTime::Gregorian ; | |
17358 | int result; | |
17359 | PyObject * obj0 = 0 ; | |
17360 | PyObject * obj1 = 0 ; | |
17361 | PyObject * obj2 = 0 ; | |
17362 | char *kwnames[] = { | |
17363 | (char *) "month",(char *) "year",(char *) "cal", NULL | |
17364 | }; | |
17365 | ||
17366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetNumberOfDaysInMonth",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
c370783e | 17367 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17368 | if (PyErr_Occurred()) SWIG_fail; |
17369 | if (obj1) { | |
c370783e | 17370 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17371 | if (PyErr_Occurred()) SWIG_fail; |
17372 | } | |
17373 | if (obj2) { | |
c370783e | 17374 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
17375 | if (PyErr_Occurred()) SWIG_fail; |
17376 | } | |
17377 | { | |
17378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17379 | result = (int)wxDateTime::GetNumberOfDays((wxDateTime::Month )arg1,arg2,(wxDateTime::Calendar )arg3); | |
17380 | ||
17381 | wxPyEndAllowThreads(__tstate); | |
17382 | if (PyErr_Occurred()) SWIG_fail; | |
17383 | } | |
c370783e | 17384 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
17385 | return resultobj; |
17386 | fail: | |
17387 | return NULL; | |
17388 | } | |
17389 | ||
17390 | ||
c370783e | 17391 | static PyObject *_wrap_DateTime_GetMonthName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17392 | PyObject *resultobj; |
17393 | int arg1 ; | |
17394 | int arg2 = (int) wxDateTime::Name_Full ; | |
17395 | wxString result; | |
17396 | PyObject * obj0 = 0 ; | |
17397 | PyObject * obj1 = 0 ; | |
17398 | char *kwnames[] = { | |
17399 | (char *) "month",(char *) "flags", NULL | |
17400 | }; | |
17401 | ||
17402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonthName",kwnames,&obj0,&obj1)) goto fail; | |
c370783e | 17403 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17404 | if (PyErr_Occurred()) SWIG_fail; |
17405 | if (obj1) { | |
c370783e | 17406 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17407 | if (PyErr_Occurred()) SWIG_fail; |
17408 | } | |
17409 | { | |
17410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17411 | result = wxDateTime::GetMonthName((wxDateTime::Month )arg1,(wxDateTime::NameFlags )arg2); | |
17412 | ||
17413 | wxPyEndAllowThreads(__tstate); | |
17414 | if (PyErr_Occurred()) SWIG_fail; | |
17415 | } | |
17416 | { | |
17417 | #if wxUSE_UNICODE | |
17418 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17419 | #else | |
17420 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17421 | #endif | |
17422 | } | |
17423 | return resultobj; | |
17424 | fail: | |
17425 | return NULL; | |
17426 | } | |
17427 | ||
17428 | ||
c370783e | 17429 | static PyObject *_wrap_DateTime_GetWeekDayName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17430 | PyObject *resultobj; |
17431 | int arg1 ; | |
17432 | int arg2 = (int) wxDateTime::Name_Full ; | |
17433 | wxString result; | |
17434 | PyObject * obj0 = 0 ; | |
17435 | PyObject * obj1 = 0 ; | |
17436 | char *kwnames[] = { | |
17437 | (char *) "weekday",(char *) "flags", NULL | |
17438 | }; | |
17439 | ||
17440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDayName",kwnames,&obj0,&obj1)) goto fail; | |
c370783e | 17441 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17442 | if (PyErr_Occurred()) SWIG_fail; |
17443 | if (obj1) { | |
c370783e | 17444 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17445 | if (PyErr_Occurred()) SWIG_fail; |
17446 | } | |
17447 | { | |
17448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17449 | result = wxDateTime::GetWeekDayName((wxDateTime::WeekDay )arg1,(wxDateTime::NameFlags )arg2); | |
17450 | ||
17451 | wxPyEndAllowThreads(__tstate); | |
17452 | if (PyErr_Occurred()) SWIG_fail; | |
17453 | } | |
17454 | { | |
17455 | #if wxUSE_UNICODE | |
17456 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17457 | #else | |
17458 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17459 | #endif | |
17460 | } | |
17461 | return resultobj; | |
17462 | fail: | |
17463 | return NULL; | |
17464 | } | |
17465 | ||
17466 | ||
c370783e | 17467 | static PyObject *_wrap_DateTime_GetAmPmStrings(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17468 | PyObject *resultobj; |
17469 | wxString *arg1 = (wxString *) 0 ; | |
17470 | wxString *arg2 = (wxString *) 0 ; | |
b411df4a RD |
17471 | bool temp1 = false ; |
17472 | bool temp2 = false ; | |
d55e5bfc RD |
17473 | PyObject * obj0 = 0 ; |
17474 | PyObject * obj1 = 0 ; | |
17475 | char *kwnames[] = { | |
17476 | (char *) "OUTPUT",(char *) "OUTPUT", NULL | |
17477 | }; | |
17478 | ||
17479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetAmPmStrings",kwnames,&obj0,&obj1)) goto fail; | |
17480 | { | |
17481 | arg1 = wxString_in_helper(obj0); | |
17482 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 17483 | temp1 = true; |
d55e5bfc RD |
17484 | } |
17485 | { | |
17486 | arg2 = wxString_in_helper(obj1); | |
17487 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 17488 | temp2 = true; |
d55e5bfc RD |
17489 | } |
17490 | { | |
17491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17492 | wxDateTime::GetAmPmStrings(arg1,arg2); | |
17493 | ||
17494 | wxPyEndAllowThreads(__tstate); | |
17495 | if (PyErr_Occurred()) SWIG_fail; | |
17496 | } | |
17497 | Py_INCREF(Py_None); resultobj = Py_None; | |
17498 | { | |
17499 | if (temp1) | |
17500 | delete arg1; | |
17501 | } | |
17502 | { | |
17503 | if (temp2) | |
17504 | delete arg2; | |
17505 | } | |
17506 | return resultobj; | |
17507 | fail: | |
17508 | { | |
17509 | if (temp1) | |
17510 | delete arg1; | |
17511 | } | |
17512 | { | |
17513 | if (temp2) | |
17514 | delete arg2; | |
17515 | } | |
17516 | return NULL; | |
17517 | } | |
17518 | ||
17519 | ||
c370783e | 17520 | static PyObject *_wrap_DateTime_IsDSTApplicable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17521 | PyObject *resultobj; |
17522 | int arg1 = (int) wxDateTime::Inv_Year ; | |
17523 | int arg2 = (int) wxDateTime::Country_Default ; | |
17524 | bool result; | |
17525 | PyObject * obj0 = 0 ; | |
17526 | PyObject * obj1 = 0 ; | |
17527 | char *kwnames[] = { | |
17528 | (char *) "year",(char *) "country", NULL | |
17529 | }; | |
17530 | ||
17531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsDSTApplicable",kwnames,&obj0,&obj1)) goto fail; | |
17532 | if (obj0) { | |
c370783e | 17533 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17534 | if (PyErr_Occurred()) SWIG_fail; |
17535 | } | |
17536 | if (obj1) { | |
c370783e | 17537 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17538 | if (PyErr_Occurred()) SWIG_fail; |
17539 | } | |
17540 | { | |
17541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17542 | result = (bool)wxDateTime::IsDSTApplicable(arg1,(wxDateTime::Country )arg2); | |
17543 | ||
17544 | wxPyEndAllowThreads(__tstate); | |
17545 | if (PyErr_Occurred()) SWIG_fail; | |
17546 | } | |
17547 | { | |
17548 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17549 | } | |
17550 | return resultobj; | |
17551 | fail: | |
17552 | return NULL; | |
17553 | } | |
17554 | ||
17555 | ||
c370783e | 17556 | static PyObject *_wrap_DateTime_GetBeginDST(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17557 | PyObject *resultobj; |
17558 | int arg1 = (int) wxDateTime::Inv_Year ; | |
17559 | int arg2 = (int) wxDateTime::Country_Default ; | |
17560 | wxDateTime result; | |
17561 | PyObject * obj0 = 0 ; | |
17562 | PyObject * obj1 = 0 ; | |
17563 | char *kwnames[] = { | |
17564 | (char *) "year",(char *) "country", NULL | |
17565 | }; | |
17566 | ||
17567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetBeginDST",kwnames,&obj0,&obj1)) goto fail; | |
17568 | if (obj0) { | |
c370783e | 17569 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17570 | if (PyErr_Occurred()) SWIG_fail; |
17571 | } | |
17572 | if (obj1) { | |
c370783e | 17573 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17574 | if (PyErr_Occurred()) SWIG_fail; |
17575 | } | |
17576 | { | |
17577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17578 | result = wxDateTime::GetBeginDST(arg1,(wxDateTime::Country )arg2); | |
17579 | ||
17580 | wxPyEndAllowThreads(__tstate); | |
17581 | if (PyErr_Occurred()) SWIG_fail; | |
17582 | } | |
17583 | { | |
17584 | wxDateTime * resultptr; | |
17585 | resultptr = new wxDateTime((wxDateTime &) result); | |
17586 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
17587 | } | |
17588 | return resultobj; | |
17589 | fail: | |
17590 | return NULL; | |
17591 | } | |
17592 | ||
17593 | ||
c370783e | 17594 | static PyObject *_wrap_DateTime_GetEndDST(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17595 | PyObject *resultobj; |
17596 | int arg1 = (int) wxDateTime::Inv_Year ; | |
17597 | int arg2 = (int) wxDateTime::Country_Default ; | |
17598 | wxDateTime result; | |
17599 | PyObject * obj0 = 0 ; | |
17600 | PyObject * obj1 = 0 ; | |
17601 | char *kwnames[] = { | |
17602 | (char *) "year",(char *) "country", NULL | |
17603 | }; | |
17604 | ||
17605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetEndDST",kwnames,&obj0,&obj1)) goto fail; | |
17606 | if (obj0) { | |
c370783e | 17607 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17608 | if (PyErr_Occurred()) SWIG_fail; |
17609 | } | |
17610 | if (obj1) { | |
c370783e | 17611 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17612 | if (PyErr_Occurred()) SWIG_fail; |
17613 | } | |
17614 | { | |
17615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17616 | result = wxDateTime::GetEndDST(arg1,(wxDateTime::Country )arg2); | |
17617 | ||
17618 | wxPyEndAllowThreads(__tstate); | |
17619 | if (PyErr_Occurred()) SWIG_fail; | |
17620 | } | |
17621 | { | |
17622 | wxDateTime * resultptr; | |
17623 | resultptr = new wxDateTime((wxDateTime &) result); | |
17624 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
17625 | } | |
17626 | return resultobj; | |
17627 | fail: | |
17628 | return NULL; | |
17629 | } | |
17630 | ||
17631 | ||
c370783e | 17632 | static PyObject *_wrap_DateTime_Now(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17633 | PyObject *resultobj; |
17634 | wxDateTime result; | |
17635 | char *kwnames[] = { | |
17636 | NULL | |
17637 | }; | |
17638 | ||
17639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Now",kwnames)) goto fail; | |
17640 | { | |
17641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17642 | result = wxDateTime::Now(); | |
17643 | ||
17644 | wxPyEndAllowThreads(__tstate); | |
17645 | if (PyErr_Occurred()) SWIG_fail; | |
17646 | } | |
17647 | { | |
17648 | wxDateTime * resultptr; | |
17649 | resultptr = new wxDateTime((wxDateTime &) result); | |
17650 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
17651 | } | |
17652 | return resultobj; | |
17653 | fail: | |
17654 | return NULL; | |
17655 | } | |
17656 | ||
17657 | ||
c370783e | 17658 | static PyObject *_wrap_DateTime_UNow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17659 | PyObject *resultobj; |
17660 | wxDateTime result; | |
17661 | char *kwnames[] = { | |
17662 | NULL | |
17663 | }; | |
17664 | ||
17665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_UNow",kwnames)) goto fail; | |
17666 | { | |
17667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17668 | result = wxDateTime::UNow(); | |
17669 | ||
17670 | wxPyEndAllowThreads(__tstate); | |
17671 | if (PyErr_Occurred()) SWIG_fail; | |
17672 | } | |
17673 | { | |
17674 | wxDateTime * resultptr; | |
17675 | resultptr = new wxDateTime((wxDateTime &) result); | |
17676 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
17677 | } | |
17678 | return resultobj; | |
17679 | fail: | |
17680 | return NULL; | |
17681 | } | |
17682 | ||
17683 | ||
c370783e | 17684 | static PyObject *_wrap_DateTime_Today(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17685 | PyObject *resultobj; |
17686 | wxDateTime result; | |
17687 | char *kwnames[] = { | |
17688 | NULL | |
17689 | }; | |
17690 | ||
17691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Today",kwnames)) goto fail; | |
17692 | { | |
17693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17694 | result = wxDateTime::Today(); | |
17695 | ||
17696 | wxPyEndAllowThreads(__tstate); | |
17697 | if (PyErr_Occurred()) SWIG_fail; | |
17698 | } | |
17699 | { | |
17700 | wxDateTime * resultptr; | |
17701 | resultptr = new wxDateTime((wxDateTime &) result); | |
17702 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
17703 | } | |
17704 | return resultobj; | |
17705 | fail: | |
17706 | return NULL; | |
17707 | } | |
17708 | ||
17709 | ||
c370783e | 17710 | static PyObject *_wrap_new_DateTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17711 | PyObject *resultobj; |
17712 | wxDateTime *result; | |
17713 | char *kwnames[] = { | |
17714 | NULL | |
17715 | }; | |
17716 | ||
17717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DateTime",kwnames)) goto fail; | |
17718 | { | |
17719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17720 | result = (wxDateTime *)new wxDateTime(); | |
17721 | ||
17722 | wxPyEndAllowThreads(__tstate); | |
17723 | if (PyErr_Occurred()) SWIG_fail; | |
17724 | } | |
17725 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
17726 | return resultobj; | |
17727 | fail: | |
17728 | return NULL; | |
17729 | } | |
17730 | ||
17731 | ||
c370783e | 17732 | static PyObject *_wrap_new_DateTimeFromTimeT(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17733 | PyObject *resultobj; |
17734 | time_t arg1 ; | |
17735 | wxDateTime *result; | |
17736 | PyObject * obj0 = 0 ; | |
17737 | char *kwnames[] = { | |
17738 | (char *) "timet", NULL | |
17739 | }; | |
17740 | ||
17741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromTimeT",kwnames,&obj0)) goto fail; | |
c370783e | 17742 | arg1 = (time_t)SWIG_As_unsigned_SS_int(obj0); |
d55e5bfc RD |
17743 | if (PyErr_Occurred()) SWIG_fail; |
17744 | { | |
17745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17746 | result = (wxDateTime *)new wxDateTime(arg1); | |
17747 | ||
17748 | wxPyEndAllowThreads(__tstate); | |
17749 | if (PyErr_Occurred()) SWIG_fail; | |
17750 | } | |
17751 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
17752 | return resultobj; | |
17753 | fail: | |
17754 | return NULL; | |
17755 | } | |
17756 | ||
17757 | ||
c370783e | 17758 | static PyObject *_wrap_new_DateTimeFromJDN(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17759 | PyObject *resultobj; |
17760 | double arg1 ; | |
17761 | wxDateTime *result; | |
17762 | PyObject * obj0 = 0 ; | |
17763 | char *kwnames[] = { | |
17764 | (char *) "jdn", NULL | |
17765 | }; | |
17766 | ||
17767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromJDN",kwnames,&obj0)) goto fail; | |
c370783e | 17768 | arg1 = (double)SWIG_As_double(obj0); |
d55e5bfc RD |
17769 | if (PyErr_Occurred()) SWIG_fail; |
17770 | { | |
17771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17772 | result = (wxDateTime *)new wxDateTime(arg1); | |
17773 | ||
17774 | wxPyEndAllowThreads(__tstate); | |
17775 | if (PyErr_Occurred()) SWIG_fail; | |
17776 | } | |
17777 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
17778 | return resultobj; | |
17779 | fail: | |
17780 | return NULL; | |
17781 | } | |
17782 | ||
17783 | ||
c370783e | 17784 | static PyObject *_wrap_new_DateTimeFromHMS(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17785 | PyObject *resultobj; |
17786 | int arg1 ; | |
17787 | int arg2 = (int) 0 ; | |
17788 | int arg3 = (int) 0 ; | |
17789 | int arg4 = (int) 0 ; | |
17790 | wxDateTime *result; | |
17791 | PyObject * obj0 = 0 ; | |
17792 | PyObject * obj1 = 0 ; | |
17793 | PyObject * obj2 = 0 ; | |
17794 | PyObject * obj3 = 0 ; | |
17795 | char *kwnames[] = { | |
17796 | (char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
17797 | }; | |
17798 | ||
17799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DateTimeFromHMS",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
c370783e | 17800 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17801 | if (PyErr_Occurred()) SWIG_fail; |
17802 | if (obj1) { | |
c370783e | 17803 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17804 | if (PyErr_Occurred()) SWIG_fail; |
17805 | } | |
17806 | if (obj2) { | |
c370783e | 17807 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
17808 | if (PyErr_Occurred()) SWIG_fail; |
17809 | } | |
17810 | if (obj3) { | |
c370783e | 17811 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
17812 | if (PyErr_Occurred()) SWIG_fail; |
17813 | } | |
17814 | { | |
17815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17816 | result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4); | |
17817 | ||
17818 | wxPyEndAllowThreads(__tstate); | |
17819 | if (PyErr_Occurred()) SWIG_fail; | |
17820 | } | |
17821 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
17822 | return resultobj; | |
17823 | fail: | |
17824 | return NULL; | |
17825 | } | |
17826 | ||
17827 | ||
c370783e | 17828 | static PyObject *_wrap_new_DateTimeFromDMY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17829 | PyObject *resultobj; |
17830 | int arg1 ; | |
17831 | int arg2 = (int) wxDateTime::Inv_Month ; | |
17832 | int arg3 = (int) wxDateTime::Inv_Year ; | |
17833 | int arg4 = (int) 0 ; | |
17834 | int arg5 = (int) 0 ; | |
17835 | int arg6 = (int) 0 ; | |
17836 | int arg7 = (int) 0 ; | |
17837 | wxDateTime *result; | |
17838 | PyObject * obj0 = 0 ; | |
17839 | PyObject * obj1 = 0 ; | |
17840 | PyObject * obj2 = 0 ; | |
17841 | PyObject * obj3 = 0 ; | |
17842 | PyObject * obj4 = 0 ; | |
17843 | PyObject * obj5 = 0 ; | |
17844 | PyObject * obj6 = 0 ; | |
17845 | char *kwnames[] = { | |
17846 | (char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
17847 | }; | |
17848 | ||
17849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DateTimeFromDMY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
c370783e | 17850 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17851 | if (PyErr_Occurred()) SWIG_fail; |
17852 | if (obj1) { | |
c370783e | 17853 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17854 | if (PyErr_Occurred()) SWIG_fail; |
17855 | } | |
17856 | if (obj2) { | |
c370783e | 17857 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
17858 | if (PyErr_Occurred()) SWIG_fail; |
17859 | } | |
17860 | if (obj3) { | |
c370783e | 17861 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
17862 | if (PyErr_Occurred()) SWIG_fail; |
17863 | } | |
17864 | if (obj4) { | |
c370783e | 17865 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
17866 | if (PyErr_Occurred()) SWIG_fail; |
17867 | } | |
17868 | if (obj5) { | |
c370783e | 17869 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
17870 | if (PyErr_Occurred()) SWIG_fail; |
17871 | } | |
17872 | if (obj6) { | |
c370783e | 17873 | arg7 = (int)SWIG_As_int(obj6); |
d55e5bfc RD |
17874 | if (PyErr_Occurred()) SWIG_fail; |
17875 | } | |
17876 | { | |
17877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17878 | result = (wxDateTime *)new wxDateTime(arg1,(wxDateTime::Month )arg2,arg3,arg4,arg5,arg6,arg7); | |
17879 | ||
17880 | wxPyEndAllowThreads(__tstate); | |
17881 | if (PyErr_Occurred()) SWIG_fail; | |
17882 | } | |
17883 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
17884 | return resultobj; | |
17885 | fail: | |
17886 | return NULL; | |
17887 | } | |
17888 | ||
17889 | ||
c370783e | 17890 | static PyObject *_wrap_delete_DateTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17891 | PyObject *resultobj; |
17892 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17893 | PyObject * obj0 = 0 ; | |
17894 | char *kwnames[] = { | |
17895 | (char *) "self", NULL | |
17896 | }; | |
17897 | ||
17898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateTime",kwnames,&obj0)) goto fail; | |
17899 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17900 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17901 | { | |
17902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17903 | delete arg1; | |
17904 | ||
17905 | wxPyEndAllowThreads(__tstate); | |
17906 | if (PyErr_Occurred()) SWIG_fail; | |
17907 | } | |
17908 | Py_INCREF(Py_None); resultobj = Py_None; | |
17909 | return resultobj; | |
17910 | fail: | |
17911 | return NULL; | |
17912 | } | |
17913 | ||
17914 | ||
c370783e | 17915 | static PyObject *_wrap_DateTime_SetToCurrent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17916 | PyObject *resultobj; |
17917 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17918 | wxDateTime *result; | |
17919 | PyObject * obj0 = 0 ; | |
17920 | char *kwnames[] = { | |
17921 | (char *) "self", NULL | |
17922 | }; | |
17923 | ||
17924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetToCurrent",kwnames,&obj0)) goto fail; | |
17925 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17927 | { | |
17928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17929 | { | |
17930 | wxDateTime &_result_ref = (arg1)->SetToCurrent(); | |
17931 | result = (wxDateTime *) &_result_ref; | |
17932 | } | |
17933 | ||
17934 | wxPyEndAllowThreads(__tstate); | |
17935 | if (PyErr_Occurred()) SWIG_fail; | |
17936 | } | |
17937 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17938 | return resultobj; | |
17939 | fail: | |
17940 | return NULL; | |
17941 | } | |
17942 | ||
17943 | ||
c370783e | 17944 | static PyObject *_wrap_DateTime_SetTimeT(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17945 | PyObject *resultobj; |
17946 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17947 | time_t arg2 ; | |
17948 | wxDateTime *result; | |
17949 | PyObject * obj0 = 0 ; | |
17950 | PyObject * obj1 = 0 ; | |
17951 | char *kwnames[] = { | |
17952 | (char *) "self",(char *) "timet", NULL | |
17953 | }; | |
17954 | ||
17955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetTimeT",kwnames,&obj0,&obj1)) goto fail; | |
17956 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 17958 | arg2 = (time_t)SWIG_As_unsigned_SS_int(obj1); |
d55e5bfc RD |
17959 | if (PyErr_Occurred()) SWIG_fail; |
17960 | { | |
17961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17962 | { | |
17963 | wxDateTime &_result_ref = (arg1)->Set(arg2); | |
17964 | result = (wxDateTime *) &_result_ref; | |
17965 | } | |
17966 | ||
17967 | wxPyEndAllowThreads(__tstate); | |
17968 | if (PyErr_Occurred()) SWIG_fail; | |
17969 | } | |
17970 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17971 | return resultobj; | |
17972 | fail: | |
17973 | return NULL; | |
17974 | } | |
17975 | ||
17976 | ||
c370783e | 17977 | static PyObject *_wrap_DateTime_SetJDN(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17978 | PyObject *resultobj; |
17979 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17980 | double arg2 ; | |
17981 | wxDateTime *result; | |
17982 | PyObject * obj0 = 0 ; | |
17983 | PyObject * obj1 = 0 ; | |
17984 | char *kwnames[] = { | |
17985 | (char *) "self",(char *) "jdn", NULL | |
17986 | }; | |
17987 | ||
17988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetJDN",kwnames,&obj0,&obj1)) goto fail; | |
17989 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17990 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 17991 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc RD |
17992 | if (PyErr_Occurred()) SWIG_fail; |
17993 | { | |
17994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17995 | { | |
17996 | wxDateTime &_result_ref = (arg1)->Set(arg2); | |
17997 | result = (wxDateTime *) &_result_ref; | |
17998 | } | |
17999 | ||
18000 | wxPyEndAllowThreads(__tstate); | |
18001 | if (PyErr_Occurred()) SWIG_fail; | |
18002 | } | |
18003 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18004 | return resultobj; | |
18005 | fail: | |
18006 | return NULL; | |
18007 | } | |
18008 | ||
18009 | ||
c370783e | 18010 | static PyObject *_wrap_DateTime_SetHMS(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18011 | PyObject *resultobj; |
18012 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18013 | int arg2 ; | |
18014 | int arg3 = (int) 0 ; | |
18015 | int arg4 = (int) 0 ; | |
18016 | int arg5 = (int) 0 ; | |
18017 | wxDateTime *result; | |
18018 | PyObject * obj0 = 0 ; | |
18019 | PyObject * obj1 = 0 ; | |
18020 | PyObject * obj2 = 0 ; | |
18021 | PyObject * obj3 = 0 ; | |
18022 | PyObject * obj4 = 0 ; | |
18023 | char *kwnames[] = { | |
18024 | (char *) "self",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
18025 | }; | |
18026 | ||
18027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetHMS",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
18028 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18030 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18031 | if (PyErr_Occurred()) SWIG_fail; |
18032 | if (obj2) { | |
c370783e | 18033 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
18034 | if (PyErr_Occurred()) SWIG_fail; |
18035 | } | |
18036 | if (obj3) { | |
c370783e | 18037 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
18038 | if (PyErr_Occurred()) SWIG_fail; |
18039 | } | |
18040 | if (obj4) { | |
c370783e | 18041 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
18042 | if (PyErr_Occurred()) SWIG_fail; |
18043 | } | |
18044 | { | |
18045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18046 | { | |
18047 | wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5); | |
18048 | result = (wxDateTime *) &_result_ref; | |
18049 | } | |
18050 | ||
18051 | wxPyEndAllowThreads(__tstate); | |
18052 | if (PyErr_Occurred()) SWIG_fail; | |
18053 | } | |
18054 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18055 | return resultobj; | |
18056 | fail: | |
18057 | return NULL; | |
18058 | } | |
18059 | ||
18060 | ||
c370783e | 18061 | static PyObject *_wrap_DateTime_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18062 | PyObject *resultobj; |
18063 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18064 | int arg2 ; | |
18065 | int arg3 = (int) wxDateTime::Inv_Month ; | |
18066 | int arg4 = (int) wxDateTime::Inv_Year ; | |
18067 | int arg5 = (int) 0 ; | |
18068 | int arg6 = (int) 0 ; | |
18069 | int arg7 = (int) 0 ; | |
18070 | int arg8 = (int) 0 ; | |
18071 | wxDateTime *result; | |
18072 | PyObject * obj0 = 0 ; | |
18073 | PyObject * obj1 = 0 ; | |
18074 | PyObject * obj2 = 0 ; | |
18075 | PyObject * obj3 = 0 ; | |
18076 | PyObject * obj4 = 0 ; | |
18077 | PyObject * obj5 = 0 ; | |
18078 | PyObject * obj6 = 0 ; | |
18079 | PyObject * obj7 = 0 ; | |
18080 | char *kwnames[] = { | |
18081 | (char *) "self",(char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
18082 | }; | |
18083 | ||
18084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:DateTime_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
18085 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18087 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18088 | if (PyErr_Occurred()) SWIG_fail; |
18089 | if (obj2) { | |
c370783e | 18090 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
18091 | if (PyErr_Occurred()) SWIG_fail; |
18092 | } | |
18093 | if (obj3) { | |
c370783e | 18094 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
18095 | if (PyErr_Occurred()) SWIG_fail; |
18096 | } | |
18097 | if (obj4) { | |
c370783e | 18098 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
18099 | if (PyErr_Occurred()) SWIG_fail; |
18100 | } | |
18101 | if (obj5) { | |
c370783e | 18102 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
18103 | if (PyErr_Occurred()) SWIG_fail; |
18104 | } | |
18105 | if (obj6) { | |
c370783e | 18106 | arg7 = (int)SWIG_As_int(obj6); |
d55e5bfc RD |
18107 | if (PyErr_Occurred()) SWIG_fail; |
18108 | } | |
18109 | if (obj7) { | |
c370783e | 18110 | arg8 = (int)SWIG_As_int(obj7); |
d55e5bfc RD |
18111 | if (PyErr_Occurred()) SWIG_fail; |
18112 | } | |
18113 | { | |
18114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18115 | { | |
18116 | wxDateTime &_result_ref = (arg1)->Set(arg2,(wxDateTime::Month )arg3,arg4,arg5,arg6,arg7,arg8); | |
18117 | result = (wxDateTime *) &_result_ref; | |
18118 | } | |
18119 | ||
18120 | wxPyEndAllowThreads(__tstate); | |
18121 | if (PyErr_Occurred()) SWIG_fail; | |
18122 | } | |
18123 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18124 | return resultobj; | |
18125 | fail: | |
18126 | return NULL; | |
18127 | } | |
18128 | ||
18129 | ||
c370783e | 18130 | static PyObject *_wrap_DateTime_ResetTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18131 | PyObject *resultobj; |
18132 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18133 | wxDateTime *result; | |
18134 | PyObject * obj0 = 0 ; | |
18135 | char *kwnames[] = { | |
18136 | (char *) "self", NULL | |
18137 | }; | |
18138 | ||
18139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ResetTime",kwnames,&obj0)) goto fail; | |
18140 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18141 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18142 | { | |
18143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18144 | { | |
18145 | wxDateTime &_result_ref = (arg1)->ResetTime(); | |
18146 | result = (wxDateTime *) &_result_ref; | |
18147 | } | |
18148 | ||
18149 | wxPyEndAllowThreads(__tstate); | |
18150 | if (PyErr_Occurred()) SWIG_fail; | |
18151 | } | |
18152 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18153 | return resultobj; | |
18154 | fail: | |
18155 | return NULL; | |
18156 | } | |
18157 | ||
18158 | ||
c370783e | 18159 | static PyObject *_wrap_DateTime_SetYear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18160 | PyObject *resultobj; |
18161 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18162 | int arg2 ; | |
18163 | wxDateTime *result; | |
18164 | PyObject * obj0 = 0 ; | |
18165 | PyObject * obj1 = 0 ; | |
18166 | char *kwnames[] = { | |
18167 | (char *) "self",(char *) "year", NULL | |
18168 | }; | |
18169 | ||
18170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetYear",kwnames,&obj0,&obj1)) goto fail; | |
18171 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18172 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18173 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18174 | if (PyErr_Occurred()) SWIG_fail; |
18175 | { | |
18176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18177 | { | |
18178 | wxDateTime &_result_ref = (arg1)->SetYear(arg2); | |
18179 | result = (wxDateTime *) &_result_ref; | |
18180 | } | |
18181 | ||
18182 | wxPyEndAllowThreads(__tstate); | |
18183 | if (PyErr_Occurred()) SWIG_fail; | |
18184 | } | |
18185 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18186 | return resultobj; | |
18187 | fail: | |
18188 | return NULL; | |
18189 | } | |
18190 | ||
18191 | ||
c370783e | 18192 | static PyObject *_wrap_DateTime_SetMonth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18193 | PyObject *resultobj; |
18194 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18195 | int arg2 ; | |
18196 | wxDateTime *result; | |
18197 | PyObject * obj0 = 0 ; | |
18198 | PyObject * obj1 = 0 ; | |
18199 | char *kwnames[] = { | |
18200 | (char *) "self",(char *) "month", NULL | |
18201 | }; | |
18202 | ||
18203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMonth",kwnames,&obj0,&obj1)) goto fail; | |
18204 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18205 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18206 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18207 | if (PyErr_Occurred()) SWIG_fail; |
18208 | { | |
18209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18210 | { | |
18211 | wxDateTime &_result_ref = (arg1)->SetMonth((wxDateTime::Month )arg2); | |
18212 | result = (wxDateTime *) &_result_ref; | |
18213 | } | |
18214 | ||
18215 | wxPyEndAllowThreads(__tstate); | |
18216 | if (PyErr_Occurred()) SWIG_fail; | |
18217 | } | |
18218 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18219 | return resultobj; | |
18220 | fail: | |
18221 | return NULL; | |
18222 | } | |
18223 | ||
18224 | ||
c370783e | 18225 | static PyObject *_wrap_DateTime_SetDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18226 | PyObject *resultobj; |
18227 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18228 | int arg2 ; | |
18229 | wxDateTime *result; | |
18230 | PyObject * obj0 = 0 ; | |
18231 | PyObject * obj1 = 0 ; | |
18232 | char *kwnames[] = { | |
18233 | (char *) "self",(char *) "day", NULL | |
18234 | }; | |
18235 | ||
18236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetDay",kwnames,&obj0,&obj1)) goto fail; | |
18237 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18238 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18239 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18240 | if (PyErr_Occurred()) SWIG_fail; |
18241 | { | |
18242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18243 | { | |
18244 | wxDateTime &_result_ref = (arg1)->SetDay(arg2); | |
18245 | result = (wxDateTime *) &_result_ref; | |
18246 | } | |
18247 | ||
18248 | wxPyEndAllowThreads(__tstate); | |
18249 | if (PyErr_Occurred()) SWIG_fail; | |
18250 | } | |
18251 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18252 | return resultobj; | |
18253 | fail: | |
18254 | return NULL; | |
18255 | } | |
18256 | ||
18257 | ||
c370783e | 18258 | static PyObject *_wrap_DateTime_SetHour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18259 | PyObject *resultobj; |
18260 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18261 | int arg2 ; | |
18262 | wxDateTime *result; | |
18263 | PyObject * obj0 = 0 ; | |
18264 | PyObject * obj1 = 0 ; | |
18265 | char *kwnames[] = { | |
18266 | (char *) "self",(char *) "hour", NULL | |
18267 | }; | |
18268 | ||
18269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetHour",kwnames,&obj0,&obj1)) goto fail; | |
18270 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18271 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18272 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18273 | if (PyErr_Occurred()) SWIG_fail; |
18274 | { | |
18275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18276 | { | |
18277 | wxDateTime &_result_ref = (arg1)->SetHour(arg2); | |
18278 | result = (wxDateTime *) &_result_ref; | |
18279 | } | |
18280 | ||
18281 | wxPyEndAllowThreads(__tstate); | |
18282 | if (PyErr_Occurred()) SWIG_fail; | |
18283 | } | |
18284 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18285 | return resultobj; | |
18286 | fail: | |
18287 | return NULL; | |
18288 | } | |
18289 | ||
18290 | ||
c370783e | 18291 | static PyObject *_wrap_DateTime_SetMinute(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18292 | PyObject *resultobj; |
18293 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18294 | int arg2 ; | |
18295 | wxDateTime *result; | |
18296 | PyObject * obj0 = 0 ; | |
18297 | PyObject * obj1 = 0 ; | |
18298 | char *kwnames[] = { | |
18299 | (char *) "self",(char *) "minute", NULL | |
18300 | }; | |
18301 | ||
18302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMinute",kwnames,&obj0,&obj1)) goto fail; | |
18303 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18304 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18305 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18306 | if (PyErr_Occurred()) SWIG_fail; |
18307 | { | |
18308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18309 | { | |
18310 | wxDateTime &_result_ref = (arg1)->SetMinute(arg2); | |
18311 | result = (wxDateTime *) &_result_ref; | |
18312 | } | |
18313 | ||
18314 | wxPyEndAllowThreads(__tstate); | |
18315 | if (PyErr_Occurred()) SWIG_fail; | |
18316 | } | |
18317 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18318 | return resultobj; | |
18319 | fail: | |
18320 | return NULL; | |
18321 | } | |
18322 | ||
18323 | ||
c370783e | 18324 | static PyObject *_wrap_DateTime_SetSecond(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18325 | PyObject *resultobj; |
18326 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18327 | int arg2 ; | |
18328 | wxDateTime *result; | |
18329 | PyObject * obj0 = 0 ; | |
18330 | PyObject * obj1 = 0 ; | |
18331 | char *kwnames[] = { | |
18332 | (char *) "self",(char *) "second", NULL | |
18333 | }; | |
18334 | ||
18335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetSecond",kwnames,&obj0,&obj1)) goto fail; | |
18336 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18337 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18338 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18339 | if (PyErr_Occurred()) SWIG_fail; |
18340 | { | |
18341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18342 | { | |
18343 | wxDateTime &_result_ref = (arg1)->SetSecond(arg2); | |
18344 | result = (wxDateTime *) &_result_ref; | |
18345 | } | |
18346 | ||
18347 | wxPyEndAllowThreads(__tstate); | |
18348 | if (PyErr_Occurred()) SWIG_fail; | |
18349 | } | |
18350 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18351 | return resultobj; | |
18352 | fail: | |
18353 | return NULL; | |
18354 | } | |
18355 | ||
18356 | ||
c370783e | 18357 | static PyObject *_wrap_DateTime_SetMillisecond(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18358 | PyObject *resultobj; |
18359 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18360 | int arg2 ; | |
18361 | wxDateTime *result; | |
18362 | PyObject * obj0 = 0 ; | |
18363 | PyObject * obj1 = 0 ; | |
18364 | char *kwnames[] = { | |
18365 | (char *) "self",(char *) "millisecond", NULL | |
18366 | }; | |
18367 | ||
18368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMillisecond",kwnames,&obj0,&obj1)) goto fail; | |
18369 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18370 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18371 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18372 | if (PyErr_Occurred()) SWIG_fail; |
18373 | { | |
18374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18375 | { | |
18376 | wxDateTime &_result_ref = (arg1)->SetMillisecond(arg2); | |
18377 | result = (wxDateTime *) &_result_ref; | |
18378 | } | |
18379 | ||
18380 | wxPyEndAllowThreads(__tstate); | |
18381 | if (PyErr_Occurred()) SWIG_fail; | |
18382 | } | |
18383 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18384 | return resultobj; | |
18385 | fail: | |
18386 | return NULL; | |
18387 | } | |
18388 | ||
18389 | ||
c370783e | 18390 | static PyObject *_wrap_DateTime_SetToWeekDayInSameWeek(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18391 | PyObject *resultobj; |
18392 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18393 | int arg2 ; | |
18394 | int arg3 = (int) wxDateTime::Monday_First ; | |
18395 | wxDateTime *result; | |
18396 | PyObject * obj0 = 0 ; | |
18397 | PyObject * obj1 = 0 ; | |
18398 | PyObject * obj2 = 0 ; | |
18399 | char *kwnames[] = { | |
18400 | (char *) "self",(char *) "weekday",(char *) "flags", NULL | |
18401 | }; | |
18402 | ||
18403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18404 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18405 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18406 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18407 | if (PyErr_Occurred()) SWIG_fail; |
18408 | if (obj2) { | |
c370783e | 18409 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
18410 | if (PyErr_Occurred()) SWIG_fail; |
18411 | } | |
18412 | { | |
18413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18414 | { | |
18415 | wxDateTime &_result_ref = (arg1)->SetToWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3); | |
18416 | result = (wxDateTime *) &_result_ref; | |
18417 | } | |
18418 | ||
18419 | wxPyEndAllowThreads(__tstate); | |
18420 | if (PyErr_Occurred()) SWIG_fail; | |
18421 | } | |
18422 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18423 | return resultobj; | |
18424 | fail: | |
18425 | return NULL; | |
18426 | } | |
18427 | ||
18428 | ||
c370783e | 18429 | static PyObject *_wrap_DateTime_GetWeekDayInSameWeek(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18430 | PyObject *resultobj; |
18431 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18432 | int arg2 ; | |
18433 | int arg3 = (int) wxDateTime::Monday_First ; | |
18434 | wxDateTime result; | |
18435 | PyObject * obj0 = 0 ; | |
18436 | PyObject * obj1 = 0 ; | |
18437 | PyObject * obj2 = 0 ; | |
18438 | char *kwnames[] = { | |
18439 | (char *) "self",(char *) "weekday",(char *) "flags", NULL | |
18440 | }; | |
18441 | ||
18442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_GetWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18443 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18444 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18445 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18446 | if (PyErr_Occurred()) SWIG_fail; |
18447 | if (obj2) { | |
c370783e | 18448 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
18449 | if (PyErr_Occurred()) SWIG_fail; |
18450 | } | |
18451 | { | |
18452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18453 | result = (arg1)->GetWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3); | |
18454 | ||
18455 | wxPyEndAllowThreads(__tstate); | |
18456 | if (PyErr_Occurred()) SWIG_fail; | |
18457 | } | |
18458 | { | |
18459 | wxDateTime * resultptr; | |
18460 | resultptr = new wxDateTime((wxDateTime &) result); | |
18461 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18462 | } | |
18463 | return resultobj; | |
18464 | fail: | |
18465 | return NULL; | |
18466 | } | |
18467 | ||
18468 | ||
c370783e | 18469 | static PyObject *_wrap_DateTime_SetToNextWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18470 | PyObject *resultobj; |
18471 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18472 | int arg2 ; | |
18473 | wxDateTime *result; | |
18474 | PyObject * obj0 = 0 ; | |
18475 | PyObject * obj1 = 0 ; | |
18476 | char *kwnames[] = { | |
18477 | (char *) "self",(char *) "weekday", NULL | |
18478 | }; | |
18479 | ||
18480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToNextWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
18481 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18482 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18483 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18484 | if (PyErr_Occurred()) SWIG_fail; |
18485 | { | |
18486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18487 | { | |
18488 | wxDateTime &_result_ref = (arg1)->SetToNextWeekDay((wxDateTime::WeekDay )arg2); | |
18489 | result = (wxDateTime *) &_result_ref; | |
18490 | } | |
18491 | ||
18492 | wxPyEndAllowThreads(__tstate); | |
18493 | if (PyErr_Occurred()) SWIG_fail; | |
18494 | } | |
18495 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18496 | return resultobj; | |
18497 | fail: | |
18498 | return NULL; | |
18499 | } | |
18500 | ||
18501 | ||
c370783e | 18502 | static PyObject *_wrap_DateTime_GetNextWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18503 | PyObject *resultobj; |
18504 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18505 | int arg2 ; | |
18506 | wxDateTime result; | |
18507 | PyObject * obj0 = 0 ; | |
18508 | PyObject * obj1 = 0 ; | |
18509 | char *kwnames[] = { | |
18510 | (char *) "self",(char *) "weekday", NULL | |
18511 | }; | |
18512 | ||
18513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetNextWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
18514 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18515 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18516 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18517 | if (PyErr_Occurred()) SWIG_fail; |
18518 | { | |
18519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18520 | result = (arg1)->GetNextWeekDay((wxDateTime::WeekDay )arg2); | |
18521 | ||
18522 | wxPyEndAllowThreads(__tstate); | |
18523 | if (PyErr_Occurred()) SWIG_fail; | |
18524 | } | |
18525 | { | |
18526 | wxDateTime * resultptr; | |
18527 | resultptr = new wxDateTime((wxDateTime &) result); | |
18528 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18529 | } | |
18530 | return resultobj; | |
18531 | fail: | |
18532 | return NULL; | |
18533 | } | |
18534 | ||
18535 | ||
c370783e | 18536 | static PyObject *_wrap_DateTime_SetToPrevWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18537 | PyObject *resultobj; |
18538 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18539 | int arg2 ; | |
18540 | wxDateTime *result; | |
18541 | PyObject * obj0 = 0 ; | |
18542 | PyObject * obj1 = 0 ; | |
18543 | char *kwnames[] = { | |
18544 | (char *) "self",(char *) "weekday", NULL | |
18545 | }; | |
18546 | ||
18547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToPrevWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
18548 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18549 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18550 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18551 | if (PyErr_Occurred()) SWIG_fail; |
18552 | { | |
18553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18554 | { | |
18555 | wxDateTime &_result_ref = (arg1)->SetToPrevWeekDay((wxDateTime::WeekDay )arg2); | |
18556 | result = (wxDateTime *) &_result_ref; | |
18557 | } | |
18558 | ||
18559 | wxPyEndAllowThreads(__tstate); | |
18560 | if (PyErr_Occurred()) SWIG_fail; | |
18561 | } | |
18562 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18563 | return resultobj; | |
18564 | fail: | |
18565 | return NULL; | |
18566 | } | |
18567 | ||
18568 | ||
c370783e | 18569 | static PyObject *_wrap_DateTime_GetPrevWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18570 | PyObject *resultobj; |
18571 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18572 | int arg2 ; | |
18573 | wxDateTime result; | |
18574 | PyObject * obj0 = 0 ; | |
18575 | PyObject * obj1 = 0 ; | |
18576 | char *kwnames[] = { | |
18577 | (char *) "self",(char *) "weekday", NULL | |
18578 | }; | |
18579 | ||
18580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetPrevWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
18581 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18583 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18584 | if (PyErr_Occurred()) SWIG_fail; |
18585 | { | |
18586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18587 | result = (arg1)->GetPrevWeekDay((wxDateTime::WeekDay )arg2); | |
18588 | ||
18589 | wxPyEndAllowThreads(__tstate); | |
18590 | if (PyErr_Occurred()) SWIG_fail; | |
18591 | } | |
18592 | { | |
18593 | wxDateTime * resultptr; | |
18594 | resultptr = new wxDateTime((wxDateTime &) result); | |
18595 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18596 | } | |
18597 | return resultobj; | |
18598 | fail: | |
18599 | return NULL; | |
18600 | } | |
18601 | ||
18602 | ||
c370783e | 18603 | static PyObject *_wrap_DateTime_SetToWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18604 | PyObject *resultobj; |
18605 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18606 | int arg2 ; | |
18607 | int arg3 = (int) 1 ; | |
18608 | int arg4 = (int) wxDateTime::Inv_Month ; | |
18609 | int arg5 = (int) wxDateTime::Inv_Year ; | |
18610 | bool result; | |
18611 | PyObject * obj0 = 0 ; | |
18612 | PyObject * obj1 = 0 ; | |
18613 | PyObject * obj2 = 0 ; | |
18614 | PyObject * obj3 = 0 ; | |
18615 | PyObject * obj4 = 0 ; | |
18616 | char *kwnames[] = { | |
18617 | (char *) "self",(char *) "weekday",(char *) "n",(char *) "month",(char *) "year", NULL | |
18618 | }; | |
18619 | ||
18620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetToWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
18621 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18622 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18623 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18624 | if (PyErr_Occurred()) SWIG_fail; |
18625 | if (obj2) { | |
c370783e | 18626 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
18627 | if (PyErr_Occurred()) SWIG_fail; |
18628 | } | |
18629 | if (obj3) { | |
c370783e | 18630 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
18631 | if (PyErr_Occurred()) SWIG_fail; |
18632 | } | |
18633 | if (obj4) { | |
c370783e | 18634 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
18635 | if (PyErr_Occurred()) SWIG_fail; |
18636 | } | |
18637 | { | |
18638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18639 | result = (bool)(arg1)->SetToWeekDay((wxDateTime::WeekDay )arg2,arg3,(wxDateTime::Month )arg4,arg5); | |
18640 | ||
18641 | wxPyEndAllowThreads(__tstate); | |
18642 | if (PyErr_Occurred()) SWIG_fail; | |
18643 | } | |
18644 | { | |
18645 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18646 | } | |
18647 | return resultobj; | |
18648 | fail: | |
18649 | return NULL; | |
18650 | } | |
18651 | ||
18652 | ||
c370783e | 18653 | static PyObject *_wrap_DateTime_SetToLastWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18654 | PyObject *resultobj; |
18655 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18656 | int arg2 ; | |
18657 | int arg3 = (int) wxDateTime::Inv_Month ; | |
18658 | int arg4 = (int) wxDateTime::Inv_Year ; | |
18659 | bool result; | |
18660 | PyObject * obj0 = 0 ; | |
18661 | PyObject * obj1 = 0 ; | |
18662 | PyObject * obj2 = 0 ; | |
18663 | PyObject * obj3 = 0 ; | |
18664 | char *kwnames[] = { | |
18665 | (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL | |
18666 | }; | |
18667 | ||
18668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
18669 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18670 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18671 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18672 | if (PyErr_Occurred()) SWIG_fail; |
18673 | if (obj2) { | |
c370783e | 18674 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
18675 | if (PyErr_Occurred()) SWIG_fail; |
18676 | } | |
18677 | if (obj3) { | |
c370783e | 18678 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
18679 | if (PyErr_Occurred()) SWIG_fail; |
18680 | } | |
18681 | { | |
18682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18683 | result = (bool)(arg1)->SetToLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4); | |
18684 | ||
18685 | wxPyEndAllowThreads(__tstate); | |
18686 | if (PyErr_Occurred()) SWIG_fail; | |
18687 | } | |
18688 | { | |
18689 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18690 | } | |
18691 | return resultobj; | |
18692 | fail: | |
18693 | return NULL; | |
18694 | } | |
18695 | ||
18696 | ||
c370783e | 18697 | static PyObject *_wrap_DateTime_GetLastWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18698 | PyObject *resultobj; |
18699 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18700 | int arg2 ; | |
18701 | int arg3 = (int) wxDateTime::Inv_Month ; | |
18702 | int arg4 = (int) wxDateTime::Inv_Year ; | |
18703 | wxDateTime result; | |
18704 | PyObject * obj0 = 0 ; | |
18705 | PyObject * obj1 = 0 ; | |
18706 | PyObject * obj2 = 0 ; | |
18707 | PyObject * obj3 = 0 ; | |
18708 | char *kwnames[] = { | |
18709 | (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL | |
18710 | }; | |
18711 | ||
18712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
18713 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18714 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18715 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18716 | if (PyErr_Occurred()) SWIG_fail; |
18717 | if (obj2) { | |
c370783e | 18718 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
18719 | if (PyErr_Occurred()) SWIG_fail; |
18720 | } | |
18721 | if (obj3) { | |
c370783e | 18722 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
18723 | if (PyErr_Occurred()) SWIG_fail; |
18724 | } | |
18725 | { | |
18726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18727 | result = (arg1)->GetLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4); | |
18728 | ||
18729 | wxPyEndAllowThreads(__tstate); | |
18730 | if (PyErr_Occurred()) SWIG_fail; | |
18731 | } | |
18732 | { | |
18733 | wxDateTime * resultptr; | |
18734 | resultptr = new wxDateTime((wxDateTime &) result); | |
18735 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18736 | } | |
18737 | return resultobj; | |
18738 | fail: | |
18739 | return NULL; | |
18740 | } | |
18741 | ||
18742 | ||
c370783e | 18743 | static PyObject *_wrap_DateTime_SetToTheWeek(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18744 | PyObject *resultobj; |
18745 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18746 | int arg2 ; | |
18747 | int arg3 = (int) wxDateTime::Mon ; | |
18748 | int arg4 = (int) wxDateTime::Monday_First ; | |
18749 | bool result; | |
18750 | PyObject * obj0 = 0 ; | |
18751 | PyObject * obj1 = 0 ; | |
18752 | PyObject * obj2 = 0 ; | |
18753 | PyObject * obj3 = 0 ; | |
18754 | char *kwnames[] = { | |
18755 | (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL | |
18756 | }; | |
18757 | ||
18758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToTheWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
18759 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18760 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18761 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18762 | if (PyErr_Occurred()) SWIG_fail; |
18763 | if (obj2) { | |
c370783e | 18764 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
18765 | if (PyErr_Occurred()) SWIG_fail; |
18766 | } | |
18767 | if (obj3) { | |
c370783e | 18768 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
18769 | if (PyErr_Occurred()) SWIG_fail; |
18770 | } | |
18771 | { | |
18772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18773 | result = (bool)(arg1)->SetToTheWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4); | |
18774 | ||
18775 | wxPyEndAllowThreads(__tstate); | |
18776 | if (PyErr_Occurred()) SWIG_fail; | |
18777 | } | |
18778 | { | |
18779 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18780 | } | |
18781 | return resultobj; | |
18782 | fail: | |
18783 | return NULL; | |
18784 | } | |
18785 | ||
18786 | ||
c370783e | 18787 | static PyObject *_wrap_DateTime_GetWeek(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18788 | PyObject *resultobj; |
18789 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18790 | int arg2 ; | |
18791 | int arg3 = (int) wxDateTime::Mon ; | |
18792 | int arg4 = (int) wxDateTime::Monday_First ; | |
18793 | wxDateTime result; | |
18794 | PyObject * obj0 = 0 ; | |
18795 | PyObject * obj1 = 0 ; | |
18796 | PyObject * obj2 = 0 ; | |
18797 | PyObject * obj3 = 0 ; | |
18798 | char *kwnames[] = { | |
18799 | (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL | |
18800 | }; | |
18801 | ||
18802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
18803 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18804 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18805 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18806 | if (PyErr_Occurred()) SWIG_fail; |
18807 | if (obj2) { | |
c370783e | 18808 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
18809 | if (PyErr_Occurred()) SWIG_fail; |
18810 | } | |
18811 | if (obj3) { | |
c370783e | 18812 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
18813 | if (PyErr_Occurred()) SWIG_fail; |
18814 | } | |
18815 | { | |
18816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18817 | result = (arg1)->GetWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4); | |
18818 | ||
18819 | wxPyEndAllowThreads(__tstate); | |
18820 | if (PyErr_Occurred()) SWIG_fail; | |
18821 | } | |
18822 | { | |
18823 | wxDateTime * resultptr; | |
18824 | resultptr = new wxDateTime((wxDateTime &) result); | |
18825 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18826 | } | |
18827 | return resultobj; | |
18828 | fail: | |
18829 | return NULL; | |
18830 | } | |
18831 | ||
18832 | ||
629e65c2 RD |
18833 | static PyObject *_wrap_DateTime_SetToWeekOfYear(PyObject *, PyObject *args, PyObject *kwargs) { |
18834 | PyObject *resultobj; | |
18835 | int arg1 ; | |
18836 | int arg2 ; | |
18837 | int arg3 = (int) wxDateTime::Mon ; | |
18838 | wxDateTime result; | |
18839 | PyObject * obj0 = 0 ; | |
18840 | PyObject * obj1 = 0 ; | |
18841 | PyObject * obj2 = 0 ; | |
18842 | char *kwnames[] = { | |
18843 | (char *) "year",(char *) "numWeek",(char *) "weekday", NULL | |
18844 | }; | |
18845 | ||
18846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18847 | arg1 = (int)SWIG_As_int(obj0); | |
18848 | if (PyErr_Occurred()) SWIG_fail; | |
18849 | arg2 = (int)SWIG_As_int(obj1); | |
18850 | if (PyErr_Occurred()) SWIG_fail; | |
18851 | if (obj2) { | |
18852 | arg3 = (int)SWIG_As_int(obj2); | |
18853 | if (PyErr_Occurred()) SWIG_fail; | |
18854 | } | |
18855 | { | |
18856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18857 | result = wxDateTime::SetToWeekOfYear(arg1,arg2,(wxDateTime::WeekDay )arg3); | |
18858 | ||
18859 | wxPyEndAllowThreads(__tstate); | |
18860 | if (PyErr_Occurred()) SWIG_fail; | |
18861 | } | |
18862 | { | |
18863 | wxDateTime * resultptr; | |
18864 | resultptr = new wxDateTime((wxDateTime &) result); | |
18865 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18866 | } | |
18867 | return resultobj; | |
18868 | fail: | |
18869 | return NULL; | |
18870 | } | |
18871 | ||
18872 | ||
c370783e | 18873 | static PyObject *_wrap_DateTime_SetToLastMonthDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18874 | PyObject *resultobj; |
18875 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18876 | int arg2 = (int) wxDateTime::Inv_Month ; | |
18877 | int arg3 = (int) wxDateTime::Inv_Year ; | |
18878 | wxDateTime *result; | |
18879 | PyObject * obj0 = 0 ; | |
18880 | PyObject * obj1 = 0 ; | |
18881 | PyObject * obj2 = 0 ; | |
18882 | char *kwnames[] = { | |
18883 | (char *) "self",(char *) "month",(char *) "year", NULL | |
18884 | }; | |
18885 | ||
18886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_SetToLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18887 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18888 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18889 | if (obj1) { | |
c370783e | 18890 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18891 | if (PyErr_Occurred()) SWIG_fail; |
18892 | } | |
18893 | if (obj2) { | |
c370783e | 18894 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
18895 | if (PyErr_Occurred()) SWIG_fail; |
18896 | } | |
18897 | { | |
18898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18899 | { | |
18900 | wxDateTime &_result_ref = (arg1)->SetToLastMonthDay((wxDateTime::Month )arg2,arg3); | |
18901 | result = (wxDateTime *) &_result_ref; | |
18902 | } | |
18903 | ||
18904 | wxPyEndAllowThreads(__tstate); | |
18905 | if (PyErr_Occurred()) SWIG_fail; | |
18906 | } | |
18907 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18908 | return resultobj; | |
18909 | fail: | |
18910 | return NULL; | |
18911 | } | |
18912 | ||
18913 | ||
c370783e | 18914 | static PyObject *_wrap_DateTime_GetLastMonthDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18915 | PyObject *resultobj; |
18916 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18917 | int arg2 = (int) wxDateTime::Inv_Month ; | |
18918 | int arg3 = (int) wxDateTime::Inv_Year ; | |
18919 | wxDateTime result; | |
18920 | PyObject * obj0 = 0 ; | |
18921 | PyObject * obj1 = 0 ; | |
18922 | PyObject * obj2 = 0 ; | |
18923 | char *kwnames[] = { | |
18924 | (char *) "self",(char *) "month",(char *) "year", NULL | |
18925 | }; | |
18926 | ||
18927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18928 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18930 | if (obj1) { | |
c370783e | 18931 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18932 | if (PyErr_Occurred()) SWIG_fail; |
18933 | } | |
18934 | if (obj2) { | |
c370783e | 18935 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
18936 | if (PyErr_Occurred()) SWIG_fail; |
18937 | } | |
18938 | { | |
18939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18940 | result = (arg1)->GetLastMonthDay((wxDateTime::Month )arg2,arg3); | |
18941 | ||
18942 | wxPyEndAllowThreads(__tstate); | |
18943 | if (PyErr_Occurred()) SWIG_fail; | |
18944 | } | |
18945 | { | |
18946 | wxDateTime * resultptr; | |
18947 | resultptr = new wxDateTime((wxDateTime &) result); | |
18948 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18949 | } | |
18950 | return resultobj; | |
18951 | fail: | |
18952 | return NULL; | |
18953 | } | |
18954 | ||
18955 | ||
c370783e | 18956 | static PyObject *_wrap_DateTime_SetToYearDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18957 | PyObject *resultobj; |
18958 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18959 | int arg2 ; | |
18960 | wxDateTime *result; | |
18961 | PyObject * obj0 = 0 ; | |
18962 | PyObject * obj1 = 0 ; | |
18963 | char *kwnames[] = { | |
18964 | (char *) "self",(char *) "yday", NULL | |
18965 | }; | |
18966 | ||
18967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToYearDay",kwnames,&obj0,&obj1)) goto fail; | |
18968 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18970 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18971 | if (PyErr_Occurred()) SWIG_fail; |
18972 | { | |
18973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18974 | { | |
18975 | wxDateTime &_result_ref = (arg1)->SetToYearDay(arg2); | |
18976 | result = (wxDateTime *) &_result_ref; | |
18977 | } | |
18978 | ||
18979 | wxPyEndAllowThreads(__tstate); | |
18980 | if (PyErr_Occurred()) SWIG_fail; | |
18981 | } | |
18982 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18983 | return resultobj; | |
18984 | fail: | |
18985 | return NULL; | |
18986 | } | |
18987 | ||
18988 | ||
c370783e | 18989 | static PyObject *_wrap_DateTime_GetYearDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18990 | PyObject *resultobj; |
18991 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18992 | int arg2 ; | |
18993 | wxDateTime result; | |
18994 | PyObject * obj0 = 0 ; | |
18995 | PyObject * obj1 = 0 ; | |
18996 | char *kwnames[] = { | |
18997 | (char *) "self",(char *) "yday", NULL | |
18998 | }; | |
18999 | ||
19000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetYearDay",kwnames,&obj0,&obj1)) goto fail; | |
19001 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 19003 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
19004 | if (PyErr_Occurred()) SWIG_fail; |
19005 | { | |
19006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19007 | result = (arg1)->GetYearDay(arg2); | |
19008 | ||
19009 | wxPyEndAllowThreads(__tstate); | |
19010 | if (PyErr_Occurred()) SWIG_fail; | |
19011 | } | |
19012 | { | |
19013 | wxDateTime * resultptr; | |
19014 | resultptr = new wxDateTime((wxDateTime &) result); | |
19015 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
19016 | } | |
19017 | return resultobj; | |
19018 | fail: | |
19019 | return NULL; | |
19020 | } | |
19021 | ||
19022 | ||
c370783e | 19023 | static PyObject *_wrap_DateTime_GetJulianDayNumber(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19024 | PyObject *resultobj; |
19025 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19026 | double result; | |
19027 | PyObject * obj0 = 0 ; | |
19028 | char *kwnames[] = { | |
19029 | (char *) "self", NULL | |
19030 | }; | |
19031 | ||
19032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJulianDayNumber",kwnames,&obj0)) goto fail; | |
19033 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19034 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19035 | { | |
19036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19037 | result = (double)(arg1)->GetJulianDayNumber(); | |
19038 | ||
19039 | wxPyEndAllowThreads(__tstate); | |
19040 | if (PyErr_Occurred()) SWIG_fail; | |
19041 | } | |
c370783e | 19042 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
19043 | return resultobj; |
19044 | fail: | |
19045 | return NULL; | |
19046 | } | |
19047 | ||
19048 | ||
c370783e | 19049 | static PyObject *_wrap_DateTime_GetJDN(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19050 | PyObject *resultobj; |
19051 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19052 | double result; | |
19053 | PyObject * obj0 = 0 ; | |
19054 | char *kwnames[] = { | |
19055 | (char *) "self", NULL | |
19056 | }; | |
19057 | ||
19058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJDN",kwnames,&obj0)) goto fail; | |
19059 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19060 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19061 | { | |
19062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19063 | result = (double)(arg1)->GetJDN(); | |
19064 | ||
19065 | wxPyEndAllowThreads(__tstate); | |
19066 | if (PyErr_Occurred()) SWIG_fail; | |
19067 | } | |
c370783e | 19068 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
19069 | return resultobj; |
19070 | fail: | |
19071 | return NULL; | |
19072 | } | |
19073 | ||
19074 | ||
c370783e | 19075 | static PyObject *_wrap_DateTime_GetModifiedJulianDayNumber(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19076 | PyObject *resultobj; |
19077 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19078 | double result; | |
19079 | PyObject * obj0 = 0 ; | |
19080 | char *kwnames[] = { | |
19081 | (char *) "self", NULL | |
19082 | }; | |
19083 | ||
19084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetModifiedJulianDayNumber",kwnames,&obj0)) goto fail; | |
19085 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19087 | { | |
19088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19089 | result = (double)((wxDateTime const *)arg1)->GetModifiedJulianDayNumber(); | |
19090 | ||
19091 | wxPyEndAllowThreads(__tstate); | |
19092 | if (PyErr_Occurred()) SWIG_fail; | |
19093 | } | |
c370783e | 19094 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
19095 | return resultobj; |
19096 | fail: | |
19097 | return NULL; | |
19098 | } | |
19099 | ||
19100 | ||
c370783e | 19101 | static PyObject *_wrap_DateTime_GetMJD(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19102 | PyObject *resultobj; |
19103 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19104 | double result; | |
19105 | PyObject * obj0 = 0 ; | |
19106 | char *kwnames[] = { | |
19107 | (char *) "self", NULL | |
19108 | }; | |
19109 | ||
19110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetMJD",kwnames,&obj0)) goto fail; | |
19111 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19112 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19113 | { | |
19114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19115 | result = (double)(arg1)->GetMJD(); | |
19116 | ||
19117 | wxPyEndAllowThreads(__tstate); | |
19118 | if (PyErr_Occurred()) SWIG_fail; | |
19119 | } | |
c370783e | 19120 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
19121 | return resultobj; |
19122 | fail: | |
19123 | return NULL; | |
19124 | } | |
19125 | ||
19126 | ||
c370783e | 19127 | static PyObject *_wrap_DateTime_GetRataDie(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19128 | PyObject *resultobj; |
19129 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19130 | double result; | |
19131 | PyObject * obj0 = 0 ; | |
19132 | char *kwnames[] = { | |
19133 | (char *) "self", NULL | |
19134 | }; | |
19135 | ||
19136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetRataDie",kwnames,&obj0)) goto fail; | |
19137 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19138 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19139 | { | |
19140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19141 | result = (double)(arg1)->GetRataDie(); | |
19142 | ||
19143 | wxPyEndAllowThreads(__tstate); | |
19144 | if (PyErr_Occurred()) SWIG_fail; | |
19145 | } | |
c370783e | 19146 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
19147 | return resultobj; |
19148 | fail: | |
19149 | return NULL; | |
19150 | } | |
19151 | ||
19152 | ||
c370783e | 19153 | static PyObject *_wrap_DateTime_ToTimezone(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19154 | PyObject *resultobj; |
19155 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19156 | wxDateTime::TimeZone *arg2 = 0 ; | |
b411df4a | 19157 | bool arg3 = (bool) false ; |
d55e5bfc | 19158 | wxDateTime result; |
b411df4a | 19159 | bool temp2 = false ; |
d55e5bfc RD |
19160 | PyObject * obj0 = 0 ; |
19161 | PyObject * obj1 = 0 ; | |
19162 | PyObject * obj2 = 0 ; | |
19163 | char *kwnames[] = { | |
19164 | (char *) "self",(char *) "tz",(char *) "noDST", NULL | |
19165 | }; | |
19166 | ||
19167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_ToTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19168 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19169 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19170 | { | |
19171 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
b411df4a | 19172 | temp2 = true; |
d55e5bfc RD |
19173 | } |
19174 | if (obj2) { | |
c370783e | 19175 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
19176 | if (PyErr_Occurred()) SWIG_fail; |
19177 | } | |
19178 | { | |
19179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19180 | result = (arg1)->ToTimezone((wxDateTime::TimeZone const &)*arg2,arg3); | |
19181 | ||
19182 | wxPyEndAllowThreads(__tstate); | |
19183 | if (PyErr_Occurred()) SWIG_fail; | |
19184 | } | |
19185 | { | |
19186 | wxDateTime * resultptr; | |
19187 | resultptr = new wxDateTime((wxDateTime &) result); | |
19188 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
19189 | } | |
19190 | { | |
19191 | if (temp2) delete arg2; | |
19192 | } | |
19193 | return resultobj; | |
19194 | fail: | |
19195 | { | |
19196 | if (temp2) delete arg2; | |
19197 | } | |
19198 | return NULL; | |
19199 | } | |
19200 | ||
19201 | ||
c370783e | 19202 | static PyObject *_wrap_DateTime_MakeTimezone(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19203 | PyObject *resultobj; |
19204 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19205 | wxDateTime::TimeZone *arg2 = 0 ; | |
b411df4a | 19206 | bool arg3 = (bool) false ; |
d55e5bfc | 19207 | wxDateTime *result; |
b411df4a | 19208 | bool temp2 = false ; |
d55e5bfc RD |
19209 | PyObject * obj0 = 0 ; |
19210 | PyObject * obj1 = 0 ; | |
19211 | PyObject * obj2 = 0 ; | |
19212 | char *kwnames[] = { | |
19213 | (char *) "self",(char *) "tz",(char *) "noDST", NULL | |
19214 | }; | |
19215 | ||
19216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19217 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19218 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19219 | { | |
19220 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
b411df4a | 19221 | temp2 = true; |
d55e5bfc RD |
19222 | } |
19223 | if (obj2) { | |
c370783e | 19224 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
19225 | if (PyErr_Occurred()) SWIG_fail; |
19226 | } | |
19227 | { | |
19228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19229 | { | |
19230 | wxDateTime &_result_ref = (arg1)->MakeTimezone((wxDateTime::TimeZone const &)*arg2,arg3); | |
19231 | result = (wxDateTime *) &_result_ref; | |
19232 | } | |
19233 | ||
19234 | wxPyEndAllowThreads(__tstate); | |
19235 | if (PyErr_Occurred()) SWIG_fail; | |
19236 | } | |
19237 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
19238 | { | |
19239 | if (temp2) delete arg2; | |
19240 | } | |
19241 | return resultobj; | |
19242 | fail: | |
19243 | { | |
19244 | if (temp2) delete arg2; | |
19245 | } | |
19246 | return NULL; | |
19247 | } | |
19248 | ||
19249 | ||
c370783e | 19250 | static PyObject *_wrap_DateTime_ToGMT(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19251 | PyObject *resultobj; |
19252 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
b411df4a | 19253 | bool arg2 = (bool) false ; |
d55e5bfc RD |
19254 | wxDateTime result; |
19255 | PyObject * obj0 = 0 ; | |
19256 | PyObject * obj1 = 0 ; | |
19257 | char *kwnames[] = { | |
19258 | (char *) "self",(char *) "noDST", NULL | |
19259 | }; | |
19260 | ||
19261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToGMT",kwnames,&obj0,&obj1)) goto fail; | |
19262 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19263 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19264 | if (obj1) { | |
c370783e | 19265 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
19266 | if (PyErr_Occurred()) SWIG_fail; |
19267 | } | |
19268 | { | |
19269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19270 | result = (arg1)->ToGMT(arg2); | |
19271 | ||
19272 | wxPyEndAllowThreads(__tstate); | |
19273 | if (PyErr_Occurred()) SWIG_fail; | |
19274 | } | |
19275 | { | |
19276 | wxDateTime * resultptr; | |
19277 | resultptr = new wxDateTime((wxDateTime &) result); | |
19278 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
19279 | } | |
19280 | return resultobj; | |
19281 | fail: | |
19282 | return NULL; | |
19283 | } | |
19284 | ||
19285 | ||
c370783e | 19286 | static PyObject *_wrap_DateTime_MakeGMT(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19287 | PyObject *resultobj; |
19288 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
b411df4a | 19289 | bool arg2 = (bool) false ; |
d55e5bfc RD |
19290 | wxDateTime *result; |
19291 | PyObject * obj0 = 0 ; | |
19292 | PyObject * obj1 = 0 ; | |
19293 | char *kwnames[] = { | |
19294 | (char *) "self",(char *) "noDST", NULL | |
19295 | }; | |
19296 | ||
19297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeGMT",kwnames,&obj0,&obj1)) goto fail; | |
19298 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19300 | if (obj1) { | |
c370783e | 19301 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
19302 | if (PyErr_Occurred()) SWIG_fail; |
19303 | } | |
19304 | { | |
19305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19306 | { | |
19307 | wxDateTime &_result_ref = (arg1)->MakeGMT(arg2); | |
19308 | result = (wxDateTime *) &_result_ref; | |
19309 | } | |
19310 | ||
19311 | wxPyEndAllowThreads(__tstate); | |
19312 | if (PyErr_Occurred()) SWIG_fail; | |
19313 | } | |
19314 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
19315 | return resultobj; | |
19316 | fail: | |
19317 | return NULL; | |
19318 | } | |
19319 | ||
19320 | ||
c370783e | 19321 | static PyObject *_wrap_DateTime_IsDST(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19322 | PyObject *resultobj; |
19323 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19324 | int arg2 = (int) wxDateTime::Country_Default ; | |
19325 | int result; | |
19326 | PyObject * obj0 = 0 ; | |
19327 | PyObject * obj1 = 0 ; | |
19328 | char *kwnames[] = { | |
19329 | (char *) "self",(char *) "country", NULL | |
19330 | }; | |
19331 | ||
19332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsDST",kwnames,&obj0,&obj1)) goto fail; | |
19333 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19334 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19335 | if (obj1) { | |
c370783e | 19336 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
19337 | if (PyErr_Occurred()) SWIG_fail; |
19338 | } | |
19339 | { | |
19340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19341 | result = (int)(arg1)->IsDST((wxDateTime::Country )arg2); | |
19342 | ||
19343 | wxPyEndAllowThreads(__tstate); | |
19344 | if (PyErr_Occurred()) SWIG_fail; | |
19345 | } | |
c370783e | 19346 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
19347 | return resultobj; |
19348 | fail: | |
19349 | return NULL; | |
19350 | } | |
19351 | ||
19352 | ||
c370783e | 19353 | static PyObject *_wrap_DateTime_IsValid(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19354 | PyObject *resultobj; |
19355 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19356 | bool result; | |
19357 | PyObject * obj0 = 0 ; | |
19358 | char *kwnames[] = { | |
19359 | (char *) "self", NULL | |
19360 | }; | |
19361 | ||
19362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_IsValid",kwnames,&obj0)) goto fail; | |
19363 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19364 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19365 | { | |
19366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19367 | result = (bool)((wxDateTime const *)arg1)->IsValid(); | |
19368 | ||
19369 | wxPyEndAllowThreads(__tstate); | |
19370 | if (PyErr_Occurred()) SWIG_fail; | |
19371 | } | |
19372 | { | |
19373 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19374 | } | |
19375 | return resultobj; | |
19376 | fail: | |
19377 | return NULL; | |
19378 | } | |
19379 | ||
19380 | ||
c370783e | 19381 | static PyObject *_wrap_DateTime_GetTicks(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19382 | PyObject *resultobj; |
19383 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19384 | time_t result; | |
19385 | PyObject * obj0 = 0 ; | |
19386 | char *kwnames[] = { | |
19387 | (char *) "self", NULL | |
19388 | }; | |
19389 | ||
19390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetTicks",kwnames,&obj0)) goto fail; | |
19391 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19393 | { | |
19394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19395 | result = (time_t)((wxDateTime const *)arg1)->GetTicks(); | |
19396 | ||
19397 | wxPyEndAllowThreads(__tstate); | |
19398 | if (PyErr_Occurred()) SWIG_fail; | |
19399 | } | |
c370783e | 19400 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)result); |
d55e5bfc RD |
19401 | return resultobj; |
19402 | fail: | |
19403 | return NULL; | |
19404 | } | |
19405 | ||
19406 | ||
c370783e | 19407 | static PyObject *_wrap_DateTime_GetYear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19408 | PyObject *resultobj; |
19409 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19410 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19411 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19412 | int result; | |
b411df4a | 19413 | bool temp2 = false ; |
d55e5bfc RD |
19414 | PyObject * obj0 = 0 ; |
19415 | PyObject * obj1 = 0 ; | |
19416 | char *kwnames[] = { | |
19417 | (char *) "self",(char *) "tz", NULL | |
19418 | }; | |
19419 | ||
19420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetYear",kwnames,&obj0,&obj1)) goto fail; | |
19421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19423 | if (obj1) { | |
19424 | { | |
19425 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
b411df4a | 19426 | temp2 = true; |
d55e5bfc RD |
19427 | } |
19428 | } | |
19429 | { | |
19430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19431 | result = (int)((wxDateTime const *)arg1)->GetYear((wxDateTime::TimeZone const &)*arg2); | |
19432 | ||
19433 | wxPyEndAllowThreads(__tstate); | |
19434 | if (PyErr_Occurred()) SWIG_fail; | |
19435 | } | |
c370783e | 19436 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
19437 | { |
19438 | if (temp2) delete arg2; | |
19439 | } | |
19440 | return resultobj; | |
19441 | fail: | |
19442 | { | |
19443 | if (temp2) delete arg2; | |
19444 | } | |
19445 | return NULL; | |
19446 | } | |
19447 | ||
19448 | ||
c370783e | 19449 | static PyObject *_wrap_DateTime_GetMonth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19450 | PyObject *resultobj; |
19451 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19452 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19453 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19454 | int result; | |
b411df4a | 19455 | bool temp2 = false ; |
d55e5bfc RD |
19456 | PyObject * obj0 = 0 ; |
19457 | PyObject * obj1 = 0 ; | |
19458 | char *kwnames[] = { | |
19459 | (char *) "self",(char *) "tz", NULL | |
19460 | }; | |
19461 | ||
19462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonth",kwnames,&obj0,&obj1)) goto fail; | |
19463 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19465 | if (obj1) { | |
19466 | { | |
19467 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
b411df4a | 19468 | temp2 = true; |
d55e5bfc RD |
19469 | } |
19470 | } | |
19471 | { | |
19472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19473 | result = (int)((wxDateTime const *)arg1)->GetMonth((wxDateTime::TimeZone const &)*arg2); | |
19474 | ||
19475 | wxPyEndAllowThreads(__tstate); | |
19476 | if (PyErr_Occurred()) SWIG_fail; | |
19477 | } | |
c370783e | 19478 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
19479 | { |
19480 | if (temp2) delete arg2; | |
19481 | } | |
19482 | return resultobj; | |
19483 | fail: | |
19484 | { | |
19485 | if (temp2) delete arg2; | |
19486 | } | |
19487 | return NULL; | |
19488 | } | |
19489 | ||
19490 | ||
c370783e | 19491 | static PyObject *_wrap_DateTime_GetDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19492 | PyObject *resultobj; |
19493 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19494 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19495 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19496 | int result; | |
b411df4a | 19497 | bool temp2 = false ; |
d55e5bfc RD |
19498 | PyObject * obj0 = 0 ; |
19499 | PyObject * obj1 = 0 ; | |
19500 | char *kwnames[] = { | |
19501 | (char *) "self",(char *) "tz", NULL | |
19502 | }; | |
19503 | ||
19504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDay",kwnames,&obj0,&obj1)) goto fail; | |
19505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19507 | if (obj1) { | |
19508 | { | |
19509 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
b411df4a | 19510 | temp2 = true; |
d55e5bfc RD |
19511 | } |
19512 | } | |
19513 | { | |
19514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19515 | result = (int)((wxDateTime const *)arg1)->GetDay((wxDateTime::TimeZone const &)*arg2); | |
19516 | ||
19517 | wxPyEndAllowThreads(__tstate); | |
19518 | if (PyErr_Occurred()) SWIG_fail; | |
19519 | } | |
c370783e | 19520 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
19521 | { |
19522 | if (temp2) delete arg2; | |
19523 | } | |
19524 | return resultobj; | |
19525 | fail: | |
19526 | { | |
19527 | if (temp2) delete arg2; | |
19528 | } | |
19529 | return NULL; | |
19530 | } | |
19531 | ||
19532 | ||
c370783e | 19533 | static PyObject *_wrap_DateTime_GetWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19534 | PyObject *resultobj; |
19535 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19536 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19537 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19538 | int result; | |
b411df4a | 19539 | bool temp2 = false ; |
d55e5bfc RD |
19540 | PyObject * obj0 = 0 ; |
19541 | PyObject * obj1 = 0 ; | |
19542 | char *kwnames[] = { | |
19543 | (char *) "self",(char *) "tz", NULL | |
19544 | }; | |
19545 | ||
19546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
19547 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19548 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19549 | if (obj1) { | |
19550 | { | |
19551 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
b411df4a | 19552 | temp2 = true; |
d55e5bfc RD |
19553 | } |
19554 | } | |
19555 | { | |
19556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19557 | result = (int)((wxDateTime const *)arg1)->GetWeekDay((wxDateTime::TimeZone const &)*arg2); | |
19558 | ||
19559 | wxPyEndAllowThreads(__tstate); | |
19560 | if (PyErr_Occurred()) SWIG_fail; | |
19561 | } | |
c370783e | 19562 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
19563 | { |
19564 | if (temp2) delete arg2; | |
19565 | } | |
19566 | return resultobj; | |
19567 | fail: | |
19568 | { | |
19569 | if (temp2) delete arg2; | |
19570 | } | |
19571 | return NULL; | |
19572 | } | |
19573 | ||
19574 | ||
c370783e | 19575 | static PyObject *_wrap_DateTime_GetHour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19576 | PyObject *resultobj; |
19577 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19578 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19579 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19580 | int result; | |
b411df4a | 19581 | bool temp2 = false ; |
d55e5bfc RD |
19582 | PyObject * obj0 = 0 ; |
19583 | PyObject * obj1 = 0 ; | |
19584 | char *kwnames[] = { | |
19585 | (char *) "self",(char *) "tz", NULL | |
19586 | }; | |
19587 | ||
19588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetHour",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) { | |
19592 | { | |
19593 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
b411df4a | 19594 | temp2 = true; |
d55e5bfc RD |
19595 | } |
19596 | } | |
19597 | { | |
19598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19599 | result = (int)((wxDateTime const *)arg1)->GetHour((wxDateTime::TimeZone const &)*arg2); | |
19600 | ||
19601 | wxPyEndAllowThreads(__tstate); | |
19602 | if (PyErr_Occurred()) SWIG_fail; | |
19603 | } | |
c370783e | 19604 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
19605 | { |
19606 | if (temp2) delete arg2; | |
19607 | } | |
19608 | return resultobj; | |
19609 | fail: | |
19610 | { | |
19611 | if (temp2) delete arg2; | |
19612 | } | |
19613 | return NULL; | |
19614 | } | |
19615 | ||
19616 | ||
c370783e | 19617 | static PyObject *_wrap_DateTime_GetMinute(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19618 | PyObject *resultobj; |
19619 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19620 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19621 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19622 | int result; | |
b411df4a | 19623 | bool temp2 = false ; |
d55e5bfc RD |
19624 | PyObject * obj0 = 0 ; |
19625 | PyObject * obj1 = 0 ; | |
19626 | char *kwnames[] = { | |
19627 | (char *) "self",(char *) "tz", NULL | |
19628 | }; | |
19629 | ||
19630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMinute",kwnames,&obj0,&obj1)) goto fail; | |
19631 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19632 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19633 | if (obj1) { | |
19634 | { | |
19635 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
b411df4a | 19636 | temp2 = true; |
d55e5bfc RD |
19637 | } |
19638 | } | |
19639 | { | |
19640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19641 | result = (int)((wxDateTime const *)arg1)->GetMinute((wxDateTime::TimeZone const &)*arg2); | |
19642 | ||
19643 | wxPyEndAllowThreads(__tstate); | |
19644 | if (PyErr_Occurred()) SWIG_fail; | |
19645 | } | |
c370783e | 19646 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
19647 | { |
19648 | if (temp2) delete arg2; | |
19649 | } | |
19650 | return resultobj; | |
19651 | fail: | |
19652 | { | |
19653 | if (temp2) delete arg2; | |
19654 | } | |
19655 | return NULL; | |
19656 | } | |
19657 | ||
19658 | ||
c370783e | 19659 | static PyObject *_wrap_DateTime_GetSecond(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19660 | PyObject *resultobj; |
19661 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19662 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19663 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19664 | int result; | |
b411df4a | 19665 | bool temp2 = false ; |
d55e5bfc RD |
19666 | PyObject * obj0 = 0 ; |
19667 | PyObject * obj1 = 0 ; | |
19668 | char *kwnames[] = { | |
19669 | (char *) "self",(char *) "tz", NULL | |
19670 | }; | |
19671 | ||
19672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetSecond",kwnames,&obj0,&obj1)) goto fail; | |
19673 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19674 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19675 | if (obj1) { | |
19676 | { | |
19677 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
b411df4a | 19678 | temp2 = true; |
d55e5bfc RD |
19679 | } |
19680 | } | |
19681 | { | |
19682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19683 | result = (int)((wxDateTime const *)arg1)->GetSecond((wxDateTime::TimeZone const &)*arg2); | |
19684 | ||
19685 | wxPyEndAllowThreads(__tstate); | |
19686 | if (PyErr_Occurred()) SWIG_fail; | |
19687 | } | |
c370783e | 19688 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
19689 | { |
19690 | if (temp2) delete arg2; | |
19691 | } | |
19692 | return resultobj; | |
19693 | fail: | |
19694 | { | |
19695 | if (temp2) delete arg2; | |
19696 | } | |
19697 | return NULL; | |
19698 | } | |
19699 | ||
19700 | ||
c370783e | 19701 | static PyObject *_wrap_DateTime_GetMillisecond(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19702 | PyObject *resultobj; |
19703 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19704 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19705 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19706 | int result; | |
b411df4a | 19707 | bool temp2 = false ; |
d55e5bfc RD |
19708 | PyObject * obj0 = 0 ; |
19709 | PyObject * obj1 = 0 ; | |
19710 | char *kwnames[] = { | |
19711 | (char *) "self",(char *) "tz", NULL | |
19712 | }; | |
19713 | ||
19714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMillisecond",kwnames,&obj0,&obj1)) goto fail; | |
19715 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19716 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19717 | if (obj1) { | |
19718 | { | |
19719 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
b411df4a | 19720 | temp2 = true; |
d55e5bfc RD |
19721 | } |
19722 | } | |
19723 | { | |
19724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19725 | result = (int)((wxDateTime const *)arg1)->GetMillisecond((wxDateTime::TimeZone const &)*arg2); | |
19726 | ||
19727 | wxPyEndAllowThreads(__tstate); | |
19728 | if (PyErr_Occurred()) SWIG_fail; | |
19729 | } | |
c370783e | 19730 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
19731 | { |
19732 | if (temp2) delete arg2; | |
19733 | } | |
19734 | return resultobj; | |
19735 | fail: | |
19736 | { | |
19737 | if (temp2) delete arg2; | |
19738 | } | |
19739 | return NULL; | |
19740 | } | |
19741 | ||
19742 | ||
c370783e | 19743 | static PyObject *_wrap_DateTime_GetDayOfYear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19744 | PyObject *resultobj; |
19745 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19746 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19747 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19748 | int result; | |
b411df4a | 19749 | bool temp2 = false ; |
d55e5bfc RD |
19750 | PyObject * obj0 = 0 ; |
19751 | PyObject * obj1 = 0 ; | |
19752 | char *kwnames[] = { | |
19753 | (char *) "self",(char *) "tz", NULL | |
19754 | }; | |
19755 | ||
19756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDayOfYear",kwnames,&obj0,&obj1)) goto fail; | |
19757 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19758 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19759 | if (obj1) { | |
19760 | { | |
19761 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
b411df4a | 19762 | temp2 = true; |
d55e5bfc RD |
19763 | } |
19764 | } | |
19765 | { | |
19766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19767 | result = (int)((wxDateTime const *)arg1)->GetDayOfYear((wxDateTime::TimeZone const &)*arg2); | |
19768 | ||
19769 | wxPyEndAllowThreads(__tstate); | |
19770 | if (PyErr_Occurred()) SWIG_fail; | |
19771 | } | |
c370783e | 19772 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
19773 | { |
19774 | if (temp2) delete arg2; | |
19775 | } | |
19776 | return resultobj; | |
19777 | fail: | |
19778 | { | |
19779 | if (temp2) delete arg2; | |
19780 | } | |
19781 | return NULL; | |
19782 | } | |
19783 | ||
19784 | ||
c370783e | 19785 | static PyObject *_wrap_DateTime_GetWeekOfYear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19786 | PyObject *resultobj; |
19787 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19788 | int arg2 = (int) wxDateTime::Monday_First ; | |
19789 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
19790 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
19791 | int result; | |
b411df4a | 19792 | bool temp3 = false ; |
d55e5bfc RD |
19793 | PyObject * obj0 = 0 ; |
19794 | PyObject * obj1 = 0 ; | |
19795 | PyObject * obj2 = 0 ; | |
19796 | char *kwnames[] = { | |
19797 | (char *) "self",(char *) "flags",(char *) "tz", NULL | |
19798 | }; | |
19799 | ||
19800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19801 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19803 | if (obj1) { | |
c370783e | 19804 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
19805 | if (PyErr_Occurred()) SWIG_fail; |
19806 | } | |
19807 | if (obj2) { | |
19808 | { | |
19809 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
b411df4a | 19810 | temp3 = true; |
d55e5bfc RD |
19811 | } |
19812 | } | |
19813 | { | |
19814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19815 | result = (int)((wxDateTime const *)arg1)->GetWeekOfYear((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3); | |
19816 | ||
19817 | wxPyEndAllowThreads(__tstate); | |
19818 | if (PyErr_Occurred()) SWIG_fail; | |
19819 | } | |
c370783e | 19820 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
19821 | { |
19822 | if (temp3) delete arg3; | |
19823 | } | |
19824 | return resultobj; | |
19825 | fail: | |
19826 | { | |
19827 | if (temp3) delete arg3; | |
19828 | } | |
19829 | return NULL; | |
19830 | } | |
19831 | ||
19832 | ||
c370783e | 19833 | static PyObject *_wrap_DateTime_GetWeekOfMonth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19834 | PyObject *resultobj; |
19835 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19836 | int arg2 = (int) wxDateTime::Monday_First ; | |
19837 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
19838 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
19839 | int result; | |
b411df4a | 19840 | bool temp3 = false ; |
d55e5bfc RD |
19841 | PyObject * obj0 = 0 ; |
19842 | PyObject * obj1 = 0 ; | |
19843 | PyObject * obj2 = 0 ; | |
19844 | char *kwnames[] = { | |
19845 | (char *) "self",(char *) "flags",(char *) "tz", NULL | |
19846 | }; | |
19847 | ||
19848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfMonth",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19849 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19850 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19851 | if (obj1) { | |
c370783e | 19852 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
19853 | if (PyErr_Occurred()) SWIG_fail; |
19854 | } | |
19855 | if (obj2) { | |
19856 | { | |
19857 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
b411df4a | 19858 | temp3 = true; |
d55e5bfc RD |
19859 | } |
19860 | } | |
19861 | { | |
19862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19863 | result = (int)((wxDateTime const *)arg1)->GetWeekOfMonth((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3); | |
19864 | ||
19865 | wxPyEndAllowThreads(__tstate); | |
19866 | if (PyErr_Occurred()) SWIG_fail; | |
19867 | } | |
c370783e | 19868 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
19869 | { |
19870 | if (temp3) delete arg3; | |
19871 | } | |
19872 | return resultobj; | |
19873 | fail: | |
19874 | { | |
19875 | if (temp3) delete arg3; | |
19876 | } | |
19877 | return NULL; | |
19878 | } | |
19879 | ||
19880 | ||
c370783e | 19881 | static PyObject *_wrap_DateTime_IsWorkDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19882 | PyObject *resultobj; |
19883 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19884 | int arg2 = (int) wxDateTime::Country_Default ; | |
19885 | bool result; | |
19886 | PyObject * obj0 = 0 ; | |
19887 | PyObject * obj1 = 0 ; | |
19888 | char *kwnames[] = { | |
19889 | (char *) "self",(char *) "country", NULL | |
19890 | }; | |
19891 | ||
19892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsWorkDay",kwnames,&obj0,&obj1)) goto fail; | |
19893 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19894 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19895 | if (obj1) { | |
c370783e | 19896 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
19897 | if (PyErr_Occurred()) SWIG_fail; |
19898 | } | |
19899 | { | |
19900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19901 | result = (bool)((wxDateTime const *)arg1)->IsWorkDay((wxDateTime::Country )arg2); | |
19902 | ||
19903 | wxPyEndAllowThreads(__tstate); | |
19904 | if (PyErr_Occurred()) SWIG_fail; | |
19905 | } | |
19906 | { | |
19907 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19908 | } | |
19909 | return resultobj; | |
19910 | fail: | |
19911 | return NULL; | |
19912 | } | |
19913 | ||
19914 | ||
c370783e | 19915 | static PyObject *_wrap_DateTime_IsEqualTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19916 | PyObject *resultobj; |
19917 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19918 | wxDateTime *arg2 = 0 ; | |
19919 | bool result; | |
19920 | PyObject * obj0 = 0 ; | |
19921 | PyObject * obj1 = 0 ; | |
19922 | char *kwnames[] = { | |
19923 | (char *) "self",(char *) "datetime", NULL | |
19924 | }; | |
19925 | ||
19926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEqualTo",kwnames,&obj0,&obj1)) goto fail; | |
19927 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19928 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19929 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19930 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19931 | SWIG_fail; | |
19932 | if (arg2 == NULL) { | |
19933 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19934 | SWIG_fail; | |
19935 | } | |
19936 | { | |
19937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19938 | result = (bool)((wxDateTime const *)arg1)->IsEqualTo((wxDateTime const &)*arg2); | |
19939 | ||
19940 | wxPyEndAllowThreads(__tstate); | |
19941 | if (PyErr_Occurred()) SWIG_fail; | |
19942 | } | |
19943 | { | |
19944 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19945 | } | |
19946 | return resultobj; | |
19947 | fail: | |
19948 | return NULL; | |
19949 | } | |
19950 | ||
19951 | ||
c370783e | 19952 | static PyObject *_wrap_DateTime_IsEarlierThan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19953 | PyObject *resultobj; |
19954 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19955 | wxDateTime *arg2 = 0 ; | |
19956 | bool result; | |
19957 | PyObject * obj0 = 0 ; | |
19958 | PyObject * obj1 = 0 ; | |
19959 | char *kwnames[] = { | |
19960 | (char *) "self",(char *) "datetime", NULL | |
19961 | }; | |
19962 | ||
19963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEarlierThan",kwnames,&obj0,&obj1)) goto fail; | |
19964 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19965 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19966 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19967 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19968 | SWIG_fail; | |
19969 | if (arg2 == NULL) { | |
19970 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19971 | SWIG_fail; | |
19972 | } | |
19973 | { | |
19974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19975 | result = (bool)((wxDateTime const *)arg1)->IsEarlierThan((wxDateTime const &)*arg2); | |
19976 | ||
19977 | wxPyEndAllowThreads(__tstate); | |
19978 | if (PyErr_Occurred()) SWIG_fail; | |
19979 | } | |
19980 | { | |
19981 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19982 | } | |
19983 | return resultobj; | |
19984 | fail: | |
19985 | return NULL; | |
19986 | } | |
19987 | ||
19988 | ||
c370783e | 19989 | static PyObject *_wrap_DateTime_IsLaterThan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19990 | PyObject *resultobj; |
19991 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19992 | wxDateTime *arg2 = 0 ; | |
19993 | bool result; | |
19994 | PyObject * obj0 = 0 ; | |
19995 | PyObject * obj1 = 0 ; | |
19996 | char *kwnames[] = { | |
19997 | (char *) "self",(char *) "datetime", NULL | |
19998 | }; | |
19999 | ||
20000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsLaterThan",kwnames,&obj0,&obj1)) goto fail; | |
20001 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20003 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20004 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20005 | SWIG_fail; | |
20006 | if (arg2 == NULL) { | |
20007 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20008 | SWIG_fail; | |
20009 | } | |
20010 | { | |
20011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20012 | result = (bool)((wxDateTime const *)arg1)->IsLaterThan((wxDateTime const &)*arg2); | |
20013 | ||
20014 | wxPyEndAllowThreads(__tstate); | |
20015 | if (PyErr_Occurred()) SWIG_fail; | |
20016 | } | |
20017 | { | |
20018 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20019 | } | |
20020 | return resultobj; | |
20021 | fail: | |
20022 | return NULL; | |
20023 | } | |
20024 | ||
20025 | ||
c370783e | 20026 | static PyObject *_wrap_DateTime_IsStrictlyBetween(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20027 | PyObject *resultobj; |
20028 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20029 | wxDateTime *arg2 = 0 ; | |
20030 | wxDateTime *arg3 = 0 ; | |
20031 | bool result; | |
20032 | PyObject * obj0 = 0 ; | |
20033 | PyObject * obj1 = 0 ; | |
20034 | PyObject * obj2 = 0 ; | |
20035 | char *kwnames[] = { | |
20036 | (char *) "self",(char *) "t1",(char *) "t2", NULL | |
20037 | }; | |
20038 | ||
20039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsStrictlyBetween",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20040 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20041 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20042 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20043 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20044 | SWIG_fail; | |
20045 | if (arg2 == NULL) { | |
20046 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20047 | SWIG_fail; | |
20048 | } | |
20049 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime, | |
20050 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20051 | SWIG_fail; | |
20052 | if (arg3 == NULL) { | |
20053 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20054 | SWIG_fail; | |
20055 | } | |
20056 | { | |
20057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20058 | result = (bool)((wxDateTime const *)arg1)->IsStrictlyBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
20059 | ||
20060 | wxPyEndAllowThreads(__tstate); | |
20061 | if (PyErr_Occurred()) SWIG_fail; | |
20062 | } | |
20063 | { | |
20064 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20065 | } | |
20066 | return resultobj; | |
20067 | fail: | |
20068 | return NULL; | |
20069 | } | |
20070 | ||
20071 | ||
c370783e | 20072 | static PyObject *_wrap_DateTime_IsBetween(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20073 | PyObject *resultobj; |
20074 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20075 | wxDateTime *arg2 = 0 ; | |
20076 | wxDateTime *arg3 = 0 ; | |
20077 | bool result; | |
20078 | PyObject * obj0 = 0 ; | |
20079 | PyObject * obj1 = 0 ; | |
20080 | PyObject * obj2 = 0 ; | |
20081 | char *kwnames[] = { | |
20082 | (char *) "self",(char *) "t1",(char *) "t2", NULL | |
20083 | }; | |
20084 | ||
20085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsBetween",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20086 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20087 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20088 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20089 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20090 | SWIG_fail; | |
20091 | if (arg2 == NULL) { | |
20092 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20093 | SWIG_fail; | |
20094 | } | |
20095 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime, | |
20096 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20097 | SWIG_fail; | |
20098 | if (arg3 == NULL) { | |
20099 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20100 | SWIG_fail; | |
20101 | } | |
20102 | { | |
20103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20104 | result = (bool)((wxDateTime const *)arg1)->IsBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
20105 | ||
20106 | wxPyEndAllowThreads(__tstate); | |
20107 | if (PyErr_Occurred()) SWIG_fail; | |
20108 | } | |
20109 | { | |
20110 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20111 | } | |
20112 | return resultobj; | |
20113 | fail: | |
20114 | return NULL; | |
20115 | } | |
20116 | ||
20117 | ||
c370783e | 20118 | static PyObject *_wrap_DateTime_IsSameDate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20119 | PyObject *resultobj; |
20120 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20121 | wxDateTime *arg2 = 0 ; | |
20122 | bool result; | |
20123 | PyObject * obj0 = 0 ; | |
20124 | PyObject * obj1 = 0 ; | |
20125 | char *kwnames[] = { | |
20126 | (char *) "self",(char *) "dt", NULL | |
20127 | }; | |
20128 | ||
20129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameDate",kwnames,&obj0,&obj1)) goto fail; | |
20130 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20131 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20132 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20133 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20134 | SWIG_fail; | |
20135 | if (arg2 == NULL) { | |
20136 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20137 | SWIG_fail; | |
20138 | } | |
20139 | { | |
20140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20141 | result = (bool)((wxDateTime const *)arg1)->IsSameDate((wxDateTime const &)*arg2); | |
20142 | ||
20143 | wxPyEndAllowThreads(__tstate); | |
20144 | if (PyErr_Occurred()) SWIG_fail; | |
20145 | } | |
20146 | { | |
20147 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20148 | } | |
20149 | return resultobj; | |
20150 | fail: | |
20151 | return NULL; | |
20152 | } | |
20153 | ||
20154 | ||
c370783e | 20155 | static PyObject *_wrap_DateTime_IsSameTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20156 | PyObject *resultobj; |
20157 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20158 | wxDateTime *arg2 = 0 ; | |
20159 | bool result; | |
20160 | PyObject * obj0 = 0 ; | |
20161 | PyObject * obj1 = 0 ; | |
20162 | char *kwnames[] = { | |
20163 | (char *) "self",(char *) "dt", NULL | |
20164 | }; | |
20165 | ||
20166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameTime",kwnames,&obj0,&obj1)) goto fail; | |
20167 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20168 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20169 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20170 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20171 | SWIG_fail; | |
20172 | if (arg2 == NULL) { | |
20173 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20174 | SWIG_fail; | |
20175 | } | |
20176 | { | |
20177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20178 | result = (bool)((wxDateTime const *)arg1)->IsSameTime((wxDateTime const &)*arg2); | |
20179 | ||
20180 | wxPyEndAllowThreads(__tstate); | |
20181 | if (PyErr_Occurred()) SWIG_fail; | |
20182 | } | |
20183 | { | |
20184 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20185 | } | |
20186 | return resultobj; | |
20187 | fail: | |
20188 | return NULL; | |
20189 | } | |
20190 | ||
20191 | ||
c370783e | 20192 | static PyObject *_wrap_DateTime_IsEqualUpTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20193 | PyObject *resultobj; |
20194 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20195 | wxDateTime *arg2 = 0 ; | |
20196 | wxTimeSpan *arg3 = 0 ; | |
20197 | bool result; | |
20198 | PyObject * obj0 = 0 ; | |
20199 | PyObject * obj1 = 0 ; | |
20200 | PyObject * obj2 = 0 ; | |
20201 | char *kwnames[] = { | |
20202 | (char *) "self",(char *) "dt",(char *) "ts", NULL | |
20203 | }; | |
20204 | ||
20205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsEqualUpTo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20206 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20207 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20208 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20209 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20210 | SWIG_fail; | |
20211 | if (arg2 == NULL) { | |
20212 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20213 | SWIG_fail; | |
20214 | } | |
20215 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTimeSpan, | |
20216 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20217 | SWIG_fail; | |
20218 | if (arg3 == NULL) { | |
20219 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20220 | SWIG_fail; | |
20221 | } | |
20222 | { | |
20223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20224 | result = (bool)((wxDateTime const *)arg1)->IsEqualUpTo((wxDateTime const &)*arg2,(wxTimeSpan const &)*arg3); | |
20225 | ||
20226 | wxPyEndAllowThreads(__tstate); | |
20227 | if (PyErr_Occurred()) SWIG_fail; | |
20228 | } | |
20229 | { | |
20230 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20231 | } | |
20232 | return resultobj; | |
20233 | fail: | |
20234 | return NULL; | |
20235 | } | |
20236 | ||
20237 | ||
c370783e | 20238 | static PyObject *_wrap_DateTime_AddTS(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20239 | PyObject *resultobj; |
20240 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20241 | wxTimeSpan *arg2 = 0 ; | |
20242 | wxDateTime *result; | |
20243 | PyObject * obj0 = 0 ; | |
20244 | PyObject * obj1 = 0 ; | |
20245 | char *kwnames[] = { | |
20246 | (char *) "self",(char *) "diff", NULL | |
20247 | }; | |
20248 | ||
20249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddTS",kwnames,&obj0,&obj1)) goto fail; | |
20250 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20251 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20252 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
20253 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20254 | SWIG_fail; | |
20255 | if (arg2 == NULL) { | |
20256 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20257 | SWIG_fail; | |
20258 | } | |
20259 | { | |
20260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20261 | { | |
20262 | wxDateTime &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2); | |
20263 | result = (wxDateTime *) &_result_ref; | |
20264 | } | |
20265 | ||
20266 | wxPyEndAllowThreads(__tstate); | |
20267 | if (PyErr_Occurred()) SWIG_fail; | |
20268 | } | |
20269 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
20270 | return resultobj; | |
20271 | fail: | |
20272 | return NULL; | |
20273 | } | |
20274 | ||
20275 | ||
c370783e | 20276 | static PyObject *_wrap_DateTime_AddDS(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20277 | PyObject *resultobj; |
20278 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20279 | wxDateSpan *arg2 = 0 ; | |
20280 | wxDateTime *result; | |
20281 | PyObject * obj0 = 0 ; | |
20282 | PyObject * obj1 = 0 ; | |
20283 | char *kwnames[] = { | |
20284 | (char *) "self",(char *) "diff", NULL | |
20285 | }; | |
20286 | ||
20287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddDS",kwnames,&obj0,&obj1)) goto fail; | |
20288 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20289 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20290 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
20291 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20292 | SWIG_fail; | |
20293 | if (arg2 == NULL) { | |
20294 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20295 | SWIG_fail; | |
20296 | } | |
20297 | { | |
20298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20299 | { | |
20300 | wxDateTime &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2); | |
20301 | result = (wxDateTime *) &_result_ref; | |
20302 | } | |
20303 | ||
20304 | wxPyEndAllowThreads(__tstate); | |
20305 | if (PyErr_Occurred()) SWIG_fail; | |
20306 | } | |
20307 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
20308 | return resultobj; | |
20309 | fail: | |
20310 | return NULL; | |
20311 | } | |
20312 | ||
20313 | ||
c370783e | 20314 | static PyObject *_wrap_DateTime_SubtractTS(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20315 | PyObject *resultobj; |
20316 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20317 | wxTimeSpan *arg2 = 0 ; | |
20318 | wxDateTime *result; | |
20319 | PyObject * obj0 = 0 ; | |
20320 | PyObject * obj1 = 0 ; | |
20321 | char *kwnames[] = { | |
20322 | (char *) "self",(char *) "diff", NULL | |
20323 | }; | |
20324 | ||
20325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractTS",kwnames,&obj0,&obj1)) goto fail; | |
20326 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20327 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20328 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
20329 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20330 | SWIG_fail; | |
20331 | if (arg2 == NULL) { | |
20332 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20333 | SWIG_fail; | |
20334 | } | |
20335 | { | |
20336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20337 | { | |
20338 | wxDateTime &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2); | |
20339 | result = (wxDateTime *) &_result_ref; | |
20340 | } | |
20341 | ||
20342 | wxPyEndAllowThreads(__tstate); | |
20343 | if (PyErr_Occurred()) SWIG_fail; | |
20344 | } | |
20345 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
20346 | return resultobj; | |
20347 | fail: | |
20348 | return NULL; | |
20349 | } | |
20350 | ||
20351 | ||
c370783e | 20352 | static PyObject *_wrap_DateTime_SubtractDS(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20353 | PyObject *resultobj; |
20354 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20355 | wxDateSpan *arg2 = 0 ; | |
20356 | wxDateTime *result; | |
20357 | PyObject * obj0 = 0 ; | |
20358 | PyObject * obj1 = 0 ; | |
20359 | char *kwnames[] = { | |
20360 | (char *) "self",(char *) "diff", NULL | |
20361 | }; | |
20362 | ||
20363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractDS",kwnames,&obj0,&obj1)) goto fail; | |
20364 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20365 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20366 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
20367 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20368 | SWIG_fail; | |
20369 | if (arg2 == NULL) { | |
20370 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20371 | SWIG_fail; | |
20372 | } | |
20373 | { | |
20374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20375 | { | |
20376 | wxDateTime &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2); | |
20377 | result = (wxDateTime *) &_result_ref; | |
20378 | } | |
20379 | ||
20380 | wxPyEndAllowThreads(__tstate); | |
20381 | if (PyErr_Occurred()) SWIG_fail; | |
20382 | } | |
20383 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
20384 | return resultobj; | |
20385 | fail: | |
20386 | return NULL; | |
20387 | } | |
20388 | ||
20389 | ||
c370783e | 20390 | static PyObject *_wrap_DateTime_Subtract(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20391 | PyObject *resultobj; |
20392 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20393 | wxDateTime *arg2 = 0 ; | |
20394 | wxTimeSpan result; | |
20395 | PyObject * obj0 = 0 ; | |
20396 | PyObject * obj1 = 0 ; | |
20397 | char *kwnames[] = { | |
20398 | (char *) "self",(char *) "dt", NULL | |
20399 | }; | |
20400 | ||
20401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
20402 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20403 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20404 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20405 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20406 | SWIG_fail; | |
20407 | if (arg2 == NULL) { | |
20408 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20409 | SWIG_fail; | |
20410 | } | |
20411 | { | |
20412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20413 | result = ((wxDateTime const *)arg1)->Subtract((wxDateTime const &)*arg2); | |
20414 | ||
20415 | wxPyEndAllowThreads(__tstate); | |
20416 | if (PyErr_Occurred()) SWIG_fail; | |
20417 | } | |
20418 | { | |
20419 | wxTimeSpan * resultptr; | |
20420 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
20421 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
20422 | } | |
20423 | return resultobj; | |
20424 | fail: | |
20425 | return NULL; | |
20426 | } | |
20427 | ||
20428 | ||
c370783e | 20429 | static PyObject *_wrap_DateTime___iadd____SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
20430 | PyObject *resultobj; |
20431 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20432 | wxTimeSpan *arg2 = 0 ; | |
20433 | wxDateTime *result; | |
20434 | PyObject * obj0 = 0 ; | |
20435 | PyObject * obj1 = 0 ; | |
20436 | ||
20437 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail; | |
20438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
c370783e | 20439 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
20440 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, |
20441 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20442 | SWIG_fail; | |
20443 | if (arg2 == NULL) { | |
20444 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20445 | SWIG_fail; | |
20446 | } | |
20447 | { | |
20448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20449 | { | |
20450 | wxDateTime &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2); | |
20451 | result = (wxDateTime *) &_result_ref; | |
20452 | } | |
20453 | ||
20454 | wxPyEndAllowThreads(__tstate); | |
20455 | if (PyErr_Occurred()) SWIG_fail; | |
20456 | } | |
c370783e | 20457 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d55e5bfc RD |
20458 | return resultobj; |
20459 | fail: | |
20460 | return NULL; | |
20461 | } | |
20462 | ||
20463 | ||
c370783e | 20464 | static PyObject *_wrap_DateTime___iadd____SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
20465 | PyObject *resultobj; |
20466 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20467 | wxDateSpan *arg2 = 0 ; | |
20468 | wxDateTime *result; | |
20469 | PyObject * obj0 = 0 ; | |
20470 | PyObject * obj1 = 0 ; | |
20471 | ||
20472 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail; | |
20473 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
c370783e | 20474 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
20475 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, |
20476 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20477 | SWIG_fail; | |
20478 | if (arg2 == NULL) { | |
20479 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20480 | SWIG_fail; | |
20481 | } | |
20482 | { | |
20483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20484 | { | |
20485 | wxDateTime &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2); | |
20486 | result = (wxDateTime *) &_result_ref; | |
20487 | } | |
20488 | ||
20489 | wxPyEndAllowThreads(__tstate); | |
20490 | if (PyErr_Occurred()) SWIG_fail; | |
20491 | } | |
c370783e | 20492 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d55e5bfc RD |
20493 | return resultobj; |
20494 | fail: | |
20495 | return NULL; | |
20496 | } | |
20497 | ||
20498 | ||
20499 | static PyObject *_wrap_DateTime___iadd__(PyObject *self, PyObject *args) { | |
20500 | int argc; | |
20501 | PyObject *argv[3]; | |
20502 | int ii; | |
20503 | ||
20504 | argc = PyObject_Length(args); | |
20505 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
20506 | argv[ii] = PyTuple_GetItem(args,ii); | |
20507 | } | |
20508 | if (argc == 2) { | |
20509 | int _v; | |
20510 | { | |
20511 | void *ptr; | |
20512 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20513 | _v = 0; | |
20514 | PyErr_Clear(); | |
20515 | } else { | |
20516 | _v = 1; | |
20517 | } | |
20518 | } | |
20519 | if (_v) { | |
20520 | { | |
20521 | void *ptr; | |
20522 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
20523 | _v = 0; | |
20524 | PyErr_Clear(); | |
20525 | } else { | |
20526 | _v = 1; | |
20527 | } | |
20528 | } | |
20529 | if (_v) { | |
20530 | return _wrap_DateTime___iadd____SWIG_0(self,args); | |
20531 | } | |
20532 | } | |
20533 | } | |
20534 | if (argc == 2) { | |
20535 | int _v; | |
20536 | { | |
20537 | void *ptr; | |
20538 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20539 | _v = 0; | |
20540 | PyErr_Clear(); | |
20541 | } else { | |
20542 | _v = 1; | |
20543 | } | |
20544 | } | |
20545 | if (_v) { | |
20546 | { | |
20547 | void *ptr; | |
20548 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
20549 | _v = 0; | |
20550 | PyErr_Clear(); | |
20551 | } else { | |
20552 | _v = 1; | |
20553 | } | |
20554 | } | |
20555 | if (_v) { | |
20556 | return _wrap_DateTime___iadd____SWIG_1(self,args); | |
20557 | } | |
20558 | } | |
20559 | } | |
20560 | ||
20561 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___iadd__'"); | |
20562 | return NULL; | |
20563 | } | |
20564 | ||
20565 | ||
c370783e | 20566 | static PyObject *_wrap_DateTime___isub____SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
20567 | PyObject *resultobj; |
20568 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20569 | wxTimeSpan *arg2 = 0 ; | |
20570 | wxDateTime *result; | |
20571 | PyObject * obj0 = 0 ; | |
20572 | PyObject * obj1 = 0 ; | |
20573 | ||
20574 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail; | |
20575 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
c370783e | 20576 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
20577 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, |
20578 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20579 | SWIG_fail; | |
20580 | if (arg2 == NULL) { | |
20581 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20582 | SWIG_fail; | |
20583 | } | |
20584 | { | |
20585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20586 | { | |
20587 | wxDateTime &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2); | |
20588 | result = (wxDateTime *) &_result_ref; | |
20589 | } | |
20590 | ||
20591 | wxPyEndAllowThreads(__tstate); | |
20592 | if (PyErr_Occurred()) SWIG_fail; | |
20593 | } | |
c370783e | 20594 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d55e5bfc RD |
20595 | return resultobj; |
20596 | fail: | |
20597 | return NULL; | |
20598 | } | |
20599 | ||
20600 | ||
c370783e | 20601 | static PyObject *_wrap_DateTime___isub____SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
20602 | PyObject *resultobj; |
20603 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20604 | wxDateSpan *arg2 = 0 ; | |
20605 | wxDateTime *result; | |
20606 | PyObject * obj0 = 0 ; | |
20607 | PyObject * obj1 = 0 ; | |
20608 | ||
20609 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail; | |
20610 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
c370783e | 20611 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
20612 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, |
20613 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20614 | SWIG_fail; | |
20615 | if (arg2 == NULL) { | |
20616 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20617 | SWIG_fail; | |
20618 | } | |
20619 | { | |
20620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20621 | { | |
20622 | wxDateTime &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2); | |
20623 | result = (wxDateTime *) &_result_ref; | |
20624 | } | |
20625 | ||
20626 | wxPyEndAllowThreads(__tstate); | |
20627 | if (PyErr_Occurred()) SWIG_fail; | |
20628 | } | |
c370783e | 20629 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d55e5bfc RD |
20630 | return resultobj; |
20631 | fail: | |
20632 | return NULL; | |
20633 | } | |
20634 | ||
20635 | ||
20636 | static PyObject *_wrap_DateTime___isub__(PyObject *self, PyObject *args) { | |
20637 | int argc; | |
20638 | PyObject *argv[3]; | |
20639 | int ii; | |
20640 | ||
20641 | argc = PyObject_Length(args); | |
20642 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
20643 | argv[ii] = PyTuple_GetItem(args,ii); | |
20644 | } | |
20645 | if (argc == 2) { | |
20646 | int _v; | |
20647 | { | |
20648 | void *ptr; | |
20649 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20650 | _v = 0; | |
20651 | PyErr_Clear(); | |
20652 | } else { | |
20653 | _v = 1; | |
20654 | } | |
20655 | } | |
20656 | if (_v) { | |
20657 | { | |
20658 | void *ptr; | |
20659 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
20660 | _v = 0; | |
20661 | PyErr_Clear(); | |
20662 | } else { | |
20663 | _v = 1; | |
20664 | } | |
20665 | } | |
20666 | if (_v) { | |
20667 | return _wrap_DateTime___isub____SWIG_0(self,args); | |
20668 | } | |
20669 | } | |
20670 | } | |
20671 | if (argc == 2) { | |
20672 | int _v; | |
20673 | { | |
20674 | void *ptr; | |
20675 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20676 | _v = 0; | |
20677 | PyErr_Clear(); | |
20678 | } else { | |
20679 | _v = 1; | |
20680 | } | |
20681 | } | |
20682 | if (_v) { | |
20683 | { | |
20684 | void *ptr; | |
20685 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
20686 | _v = 0; | |
20687 | PyErr_Clear(); | |
20688 | } else { | |
20689 | _v = 1; | |
20690 | } | |
20691 | } | |
20692 | if (_v) { | |
20693 | return _wrap_DateTime___isub____SWIG_1(self,args); | |
20694 | } | |
20695 | } | |
20696 | } | |
20697 | ||
20698 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___isub__'"); | |
20699 | return NULL; | |
20700 | } | |
20701 | ||
20702 | ||
c370783e | 20703 | static PyObject *_wrap_DateTime___add____SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
20704 | PyObject *resultobj; |
20705 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20706 | wxTimeSpan *arg2 = 0 ; | |
20707 | wxDateTime result; | |
20708 | PyObject * obj0 = 0 ; | |
20709 | PyObject * obj1 = 0 ; | |
20710 | ||
20711 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail; | |
20712 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20713 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20714 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
20715 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20716 | SWIG_fail; | |
20717 | if (arg2 == NULL) { | |
20718 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20719 | SWIG_fail; | |
20720 | } | |
20721 | { | |
20722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20723 | result = wxDateTime___add____SWIG_0(arg1,(wxTimeSpan const &)*arg2); | |
20724 | ||
20725 | wxPyEndAllowThreads(__tstate); | |
20726 | if (PyErr_Occurred()) SWIG_fail; | |
20727 | } | |
20728 | { | |
20729 | wxDateTime * resultptr; | |
20730 | resultptr = new wxDateTime((wxDateTime &) result); | |
20731 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
20732 | } | |
20733 | return resultobj; | |
20734 | fail: | |
20735 | return NULL; | |
20736 | } | |
20737 | ||
20738 | ||
c370783e | 20739 | static PyObject *_wrap_DateTime___add____SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
20740 | PyObject *resultobj; |
20741 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20742 | wxDateSpan *arg2 = 0 ; | |
20743 | wxDateTime result; | |
20744 | PyObject * obj0 = 0 ; | |
20745 | PyObject * obj1 = 0 ; | |
20746 | ||
20747 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail; | |
20748 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20749 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20750 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
20751 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20752 | SWIG_fail; | |
20753 | if (arg2 == NULL) { | |
20754 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20755 | SWIG_fail; | |
20756 | } | |
20757 | { | |
20758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20759 | result = wxDateTime___add____SWIG_1(arg1,(wxDateSpan const &)*arg2); | |
20760 | ||
20761 | wxPyEndAllowThreads(__tstate); | |
20762 | if (PyErr_Occurred()) SWIG_fail; | |
20763 | } | |
20764 | { | |
20765 | wxDateTime * resultptr; | |
20766 | resultptr = new wxDateTime((wxDateTime &) result); | |
20767 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
20768 | } | |
20769 | return resultobj; | |
20770 | fail: | |
20771 | return NULL; | |
20772 | } | |
20773 | ||
20774 | ||
20775 | static PyObject *_wrap_DateTime___add__(PyObject *self, PyObject *args) { | |
20776 | int argc; | |
20777 | PyObject *argv[3]; | |
20778 | int ii; | |
20779 | ||
20780 | argc = PyObject_Length(args); | |
20781 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
20782 | argv[ii] = PyTuple_GetItem(args,ii); | |
20783 | } | |
20784 | if (argc == 2) { | |
20785 | int _v; | |
20786 | { | |
20787 | void *ptr; | |
20788 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20789 | _v = 0; | |
20790 | PyErr_Clear(); | |
20791 | } else { | |
20792 | _v = 1; | |
20793 | } | |
20794 | } | |
20795 | if (_v) { | |
20796 | { | |
20797 | void *ptr; | |
20798 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
20799 | _v = 0; | |
20800 | PyErr_Clear(); | |
20801 | } else { | |
20802 | _v = 1; | |
20803 | } | |
20804 | } | |
20805 | if (_v) { | |
20806 | return _wrap_DateTime___add____SWIG_0(self,args); | |
20807 | } | |
20808 | } | |
20809 | } | |
20810 | if (argc == 2) { | |
20811 | int _v; | |
20812 | { | |
20813 | void *ptr; | |
20814 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20815 | _v = 0; | |
20816 | PyErr_Clear(); | |
20817 | } else { | |
20818 | _v = 1; | |
20819 | } | |
20820 | } | |
20821 | if (_v) { | |
20822 | { | |
20823 | void *ptr; | |
20824 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
20825 | _v = 0; | |
20826 | PyErr_Clear(); | |
20827 | } else { | |
20828 | _v = 1; | |
20829 | } | |
20830 | } | |
20831 | if (_v) { | |
20832 | return _wrap_DateTime___add____SWIG_1(self,args); | |
20833 | } | |
20834 | } | |
20835 | } | |
20836 | ||
20837 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___add__'"); | |
20838 | return NULL; | |
20839 | } | |
20840 | ||
20841 | ||
c370783e | 20842 | static PyObject *_wrap_DateTime___sub____SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
20843 | PyObject *resultobj; |
20844 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20845 | wxDateTime *arg2 = 0 ; | |
20846 | wxTimeSpan result; | |
20847 | PyObject * obj0 = 0 ; | |
20848 | PyObject * obj1 = 0 ; | |
20849 | ||
20850 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
20851 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20852 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20853 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20854 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20855 | SWIG_fail; | |
20856 | if (arg2 == NULL) { | |
20857 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20858 | SWIG_fail; | |
20859 | } | |
20860 | { | |
20861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20862 | result = wxDateTime___sub____SWIG_0(arg1,(wxDateTime const &)*arg2); | |
20863 | ||
20864 | wxPyEndAllowThreads(__tstate); | |
20865 | if (PyErr_Occurred()) SWIG_fail; | |
20866 | } | |
20867 | { | |
20868 | wxTimeSpan * resultptr; | |
20869 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
20870 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
20871 | } | |
20872 | return resultobj; | |
20873 | fail: | |
20874 | return NULL; | |
20875 | } | |
20876 | ||
20877 | ||
c370783e | 20878 | static PyObject *_wrap_DateTime___sub____SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
20879 | PyObject *resultobj; |
20880 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20881 | wxTimeSpan *arg2 = 0 ; | |
20882 | wxDateTime result; | |
20883 | PyObject * obj0 = 0 ; | |
20884 | PyObject * obj1 = 0 ; | |
20885 | ||
20886 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
20887 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20888 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20889 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
20890 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20891 | SWIG_fail; | |
20892 | if (arg2 == NULL) { | |
20893 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20894 | SWIG_fail; | |
20895 | } | |
20896 | { | |
20897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20898 | result = wxDateTime___sub____SWIG_1(arg1,(wxTimeSpan const &)*arg2); | |
20899 | ||
20900 | wxPyEndAllowThreads(__tstate); | |
20901 | if (PyErr_Occurred()) SWIG_fail; | |
20902 | } | |
20903 | { | |
20904 | wxDateTime * resultptr; | |
20905 | resultptr = new wxDateTime((wxDateTime &) result); | |
20906 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
20907 | } | |
20908 | return resultobj; | |
20909 | fail: | |
20910 | return NULL; | |
20911 | } | |
20912 | ||
20913 | ||
c370783e | 20914 | static PyObject *_wrap_DateTime___sub____SWIG_2(PyObject *, PyObject *args) { |
d55e5bfc RD |
20915 | PyObject *resultobj; |
20916 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20917 | wxDateSpan *arg2 = 0 ; | |
20918 | wxDateTime result; | |
20919 | PyObject * obj0 = 0 ; | |
20920 | PyObject * obj1 = 0 ; | |
20921 | ||
20922 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
20923 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20924 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20925 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
20926 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20927 | SWIG_fail; | |
20928 | if (arg2 == NULL) { | |
20929 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20930 | SWIG_fail; | |
20931 | } | |
20932 | { | |
20933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20934 | result = wxDateTime___sub____SWIG_2(arg1,(wxDateSpan const &)*arg2); | |
20935 | ||
20936 | wxPyEndAllowThreads(__tstate); | |
20937 | if (PyErr_Occurred()) SWIG_fail; | |
20938 | } | |
20939 | { | |
20940 | wxDateTime * resultptr; | |
20941 | resultptr = new wxDateTime((wxDateTime &) result); | |
20942 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
20943 | } | |
20944 | return resultobj; | |
20945 | fail: | |
20946 | return NULL; | |
20947 | } | |
20948 | ||
20949 | ||
20950 | static PyObject *_wrap_DateTime___sub__(PyObject *self, PyObject *args) { | |
20951 | int argc; | |
20952 | PyObject *argv[3]; | |
20953 | int ii; | |
20954 | ||
20955 | argc = PyObject_Length(args); | |
20956 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
20957 | argv[ii] = PyTuple_GetItem(args,ii); | |
20958 | } | |
20959 | if (argc == 2) { | |
20960 | int _v; | |
20961 | { | |
20962 | void *ptr; | |
20963 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20964 | _v = 0; | |
20965 | PyErr_Clear(); | |
20966 | } else { | |
20967 | _v = 1; | |
20968 | } | |
20969 | } | |
20970 | if (_v) { | |
20971 | { | |
20972 | void *ptr; | |
20973 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20974 | _v = 0; | |
20975 | PyErr_Clear(); | |
20976 | } else { | |
20977 | _v = 1; | |
20978 | } | |
20979 | } | |
20980 | if (_v) { | |
20981 | return _wrap_DateTime___sub____SWIG_0(self,args); | |
20982 | } | |
20983 | } | |
20984 | } | |
20985 | if (argc == 2) { | |
20986 | int _v; | |
20987 | { | |
20988 | void *ptr; | |
20989 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20990 | _v = 0; | |
20991 | PyErr_Clear(); | |
20992 | } else { | |
20993 | _v = 1; | |
20994 | } | |
20995 | } | |
20996 | if (_v) { | |
20997 | { | |
20998 | void *ptr; | |
20999 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
21000 | _v = 0; | |
21001 | PyErr_Clear(); | |
21002 | } else { | |
21003 | _v = 1; | |
21004 | } | |
21005 | } | |
21006 | if (_v) { | |
21007 | return _wrap_DateTime___sub____SWIG_1(self,args); | |
21008 | } | |
21009 | } | |
21010 | } | |
21011 | if (argc == 2) { | |
21012 | int _v; | |
21013 | { | |
21014 | void *ptr; | |
21015 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
21016 | _v = 0; | |
21017 | PyErr_Clear(); | |
21018 | } else { | |
21019 | _v = 1; | |
21020 | } | |
21021 | } | |
21022 | if (_v) { | |
21023 | { | |
21024 | void *ptr; | |
21025 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
21026 | _v = 0; | |
21027 | PyErr_Clear(); | |
21028 | } else { | |
21029 | _v = 1; | |
21030 | } | |
21031 | } | |
21032 | if (_v) { | |
21033 | return _wrap_DateTime___sub____SWIG_2(self,args); | |
21034 | } | |
21035 | } | |
21036 | } | |
21037 | ||
21038 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___sub__'"); | |
21039 | return NULL; | |
21040 | } | |
21041 | ||
21042 | ||
c370783e | 21043 | static PyObject *_wrap_DateTime___lt__(PyObject *, PyObject *args) { |
d55e5bfc RD |
21044 | PyObject *resultobj; |
21045 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21046 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
21047 | bool result; | |
21048 | PyObject * obj0 = 0 ; | |
21049 | PyObject * obj1 = 0 ; | |
21050 | ||
21051 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___lt__",&obj0,&obj1)) goto fail; | |
21052 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21053 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21054 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
21055 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21056 | { | |
21057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21058 | result = (bool)wxDateTime___lt__(arg1,(wxDateTime const *)arg2); | |
21059 | ||
21060 | wxPyEndAllowThreads(__tstate); | |
21061 | if (PyErr_Occurred()) SWIG_fail; | |
21062 | } | |
21063 | { | |
21064 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21065 | } | |
21066 | return resultobj; | |
21067 | fail: | |
21068 | return NULL; | |
21069 | } | |
21070 | ||
21071 | ||
c370783e | 21072 | static PyObject *_wrap_DateTime___le__(PyObject *, PyObject *args) { |
d55e5bfc RD |
21073 | PyObject *resultobj; |
21074 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21075 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
21076 | bool result; | |
21077 | PyObject * obj0 = 0 ; | |
21078 | PyObject * obj1 = 0 ; | |
21079 | ||
21080 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___le__",&obj0,&obj1)) goto fail; | |
21081 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21082 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21083 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
21084 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21085 | { | |
21086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21087 | result = (bool)wxDateTime___le__(arg1,(wxDateTime const *)arg2); | |
21088 | ||
21089 | wxPyEndAllowThreads(__tstate); | |
21090 | if (PyErr_Occurred()) SWIG_fail; | |
21091 | } | |
21092 | { | |
21093 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21094 | } | |
21095 | return resultobj; | |
21096 | fail: | |
21097 | return NULL; | |
21098 | } | |
21099 | ||
21100 | ||
c370783e | 21101 | static PyObject *_wrap_DateTime___gt__(PyObject *, PyObject *args) { |
d55e5bfc RD |
21102 | PyObject *resultobj; |
21103 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21104 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
21105 | bool result; | |
21106 | PyObject * obj0 = 0 ; | |
21107 | PyObject * obj1 = 0 ; | |
21108 | ||
21109 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___gt__",&obj0,&obj1)) goto fail; | |
21110 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21112 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
21113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21114 | { | |
21115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21116 | result = (bool)wxDateTime___gt__(arg1,(wxDateTime const *)arg2); | |
21117 | ||
21118 | wxPyEndAllowThreads(__tstate); | |
21119 | if (PyErr_Occurred()) SWIG_fail; | |
21120 | } | |
21121 | { | |
21122 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21123 | } | |
21124 | return resultobj; | |
21125 | fail: | |
21126 | return NULL; | |
21127 | } | |
21128 | ||
21129 | ||
c370783e | 21130 | static PyObject *_wrap_DateTime___ge__(PyObject *, PyObject *args) { |
d55e5bfc RD |
21131 | PyObject *resultobj; |
21132 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21133 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
21134 | bool result; | |
21135 | PyObject * obj0 = 0 ; | |
21136 | PyObject * obj1 = 0 ; | |
21137 | ||
21138 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ge__",&obj0,&obj1)) goto fail; | |
21139 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21140 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21141 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
21142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21143 | { | |
21144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21145 | result = (bool)wxDateTime___ge__(arg1,(wxDateTime const *)arg2); | |
21146 | ||
21147 | wxPyEndAllowThreads(__tstate); | |
21148 | if (PyErr_Occurred()) SWIG_fail; | |
21149 | } | |
21150 | { | |
21151 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21152 | } | |
21153 | return resultobj; | |
21154 | fail: | |
21155 | return NULL; | |
21156 | } | |
21157 | ||
21158 | ||
c370783e | 21159 | static PyObject *_wrap_DateTime___eq__(PyObject *, PyObject *args) { |
d55e5bfc RD |
21160 | PyObject *resultobj; |
21161 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21162 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
21163 | bool result; | |
21164 | PyObject * obj0 = 0 ; | |
21165 | PyObject * obj1 = 0 ; | |
21166 | ||
21167 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___eq__",&obj0,&obj1)) goto fail; | |
21168 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21169 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21170 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
21171 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21172 | { | |
21173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21174 | result = (bool)wxDateTime___eq__(arg1,(wxDateTime const *)arg2); | |
21175 | ||
21176 | wxPyEndAllowThreads(__tstate); | |
21177 | if (PyErr_Occurred()) SWIG_fail; | |
21178 | } | |
21179 | { | |
21180 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21181 | } | |
21182 | return resultobj; | |
21183 | fail: | |
21184 | return NULL; | |
21185 | } | |
21186 | ||
21187 | ||
c370783e | 21188 | static PyObject *_wrap_DateTime___ne__(PyObject *, PyObject *args) { |
d55e5bfc RD |
21189 | PyObject *resultobj; |
21190 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21191 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
21192 | bool result; | |
21193 | PyObject * obj0 = 0 ; | |
21194 | PyObject * obj1 = 0 ; | |
21195 | ||
21196 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ne__",&obj0,&obj1)) goto fail; | |
21197 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21198 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21199 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
21200 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21201 | { | |
21202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21203 | result = (bool)wxDateTime___ne__(arg1,(wxDateTime const *)arg2); | |
21204 | ||
21205 | wxPyEndAllowThreads(__tstate); | |
21206 | if (PyErr_Occurred()) SWIG_fail; | |
21207 | } | |
21208 | { | |
21209 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21210 | } | |
21211 | return resultobj; | |
21212 | fail: | |
21213 | return NULL; | |
21214 | } | |
21215 | ||
21216 | ||
c370783e | 21217 | static PyObject *_wrap_DateTime_ParseRfc822Date(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21218 | PyObject *resultobj; |
21219 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21220 | wxString *arg2 = 0 ; | |
21221 | int result; | |
b411df4a | 21222 | bool temp2 = false ; |
d55e5bfc RD |
21223 | PyObject * obj0 = 0 ; |
21224 | PyObject * obj1 = 0 ; | |
21225 | char *kwnames[] = { | |
21226 | (char *) "self",(char *) "date", NULL | |
21227 | }; | |
21228 | ||
21229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseRfc822Date",kwnames,&obj0,&obj1)) goto fail; | |
21230 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21231 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21232 | { | |
21233 | arg2 = wxString_in_helper(obj1); | |
21234 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 21235 | temp2 = true; |
d55e5bfc RD |
21236 | } |
21237 | { | |
21238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21239 | result = (int)wxDateTime_ParseRfc822Date(arg1,(wxString const &)*arg2); | |
21240 | ||
21241 | wxPyEndAllowThreads(__tstate); | |
21242 | if (PyErr_Occurred()) SWIG_fail; | |
21243 | } | |
c370783e | 21244 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
21245 | { |
21246 | if (temp2) | |
21247 | delete arg2; | |
21248 | } | |
21249 | return resultobj; | |
21250 | fail: | |
21251 | { | |
21252 | if (temp2) | |
21253 | delete arg2; | |
21254 | } | |
21255 | return NULL; | |
21256 | } | |
21257 | ||
21258 | ||
c370783e | 21259 | static PyObject *_wrap_DateTime_ParseFormat(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21260 | PyObject *resultobj; |
21261 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21262 | wxString *arg2 = 0 ; | |
21263 | wxString const &arg3_defvalue = wxPyDateFormatStr ; | |
21264 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
21265 | wxDateTime const &arg4_defvalue = wxDefaultDateTime ; | |
21266 | wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ; | |
21267 | int result; | |
b411df4a RD |
21268 | bool temp2 = false ; |
21269 | bool temp3 = false ; | |
d55e5bfc RD |
21270 | PyObject * obj0 = 0 ; |
21271 | PyObject * obj1 = 0 ; | |
21272 | PyObject * obj2 = 0 ; | |
21273 | PyObject * obj3 = 0 ; | |
21274 | char *kwnames[] = { | |
21275 | (char *) "self",(char *) "date",(char *) "format",(char *) "dateDef", NULL | |
21276 | }; | |
21277 | ||
21278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_ParseFormat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
21279 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21280 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21281 | { | |
21282 | arg2 = wxString_in_helper(obj1); | |
21283 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 21284 | temp2 = true; |
d55e5bfc RD |
21285 | } |
21286 | if (obj2) { | |
21287 | { | |
21288 | arg3 = wxString_in_helper(obj2); | |
21289 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 21290 | temp3 = true; |
d55e5bfc RD |
21291 | } |
21292 | } | |
21293 | if (obj3) { | |
21294 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDateTime, | |
21295 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21296 | SWIG_fail; | |
21297 | if (arg4 == NULL) { | |
21298 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21299 | SWIG_fail; | |
21300 | } | |
21301 | } | |
21302 | { | |
21303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21304 | result = (int)wxDateTime_ParseFormat(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxDateTime const &)*arg4); | |
21305 | ||
21306 | wxPyEndAllowThreads(__tstate); | |
21307 | if (PyErr_Occurred()) SWIG_fail; | |
21308 | } | |
c370783e | 21309 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
21310 | { |
21311 | if (temp2) | |
21312 | delete arg2; | |
21313 | } | |
21314 | { | |
21315 | if (temp3) | |
21316 | delete arg3; | |
21317 | } | |
21318 | return resultobj; | |
21319 | fail: | |
21320 | { | |
21321 | if (temp2) | |
21322 | delete arg2; | |
21323 | } | |
21324 | { | |
21325 | if (temp3) | |
21326 | delete arg3; | |
21327 | } | |
21328 | return NULL; | |
21329 | } | |
21330 | ||
21331 | ||
c370783e | 21332 | static PyObject *_wrap_DateTime_ParseDateTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21333 | PyObject *resultobj; |
21334 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21335 | wxString *arg2 = 0 ; | |
21336 | int result; | |
b411df4a | 21337 | bool temp2 = false ; |
d55e5bfc RD |
21338 | PyObject * obj0 = 0 ; |
21339 | PyObject * obj1 = 0 ; | |
21340 | char *kwnames[] = { | |
21341 | (char *) "self",(char *) "datetime", NULL | |
21342 | }; | |
21343 | ||
21344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDateTime",kwnames,&obj0,&obj1)) goto fail; | |
21345 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21346 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21347 | { | |
21348 | arg2 = wxString_in_helper(obj1); | |
21349 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 21350 | temp2 = true; |
d55e5bfc RD |
21351 | } |
21352 | { | |
21353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21354 | result = (int)wxDateTime_ParseDateTime(arg1,(wxString const &)*arg2); | |
21355 | ||
21356 | wxPyEndAllowThreads(__tstate); | |
21357 | if (PyErr_Occurred()) SWIG_fail; | |
21358 | } | |
c370783e | 21359 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
21360 | { |
21361 | if (temp2) | |
21362 | delete arg2; | |
21363 | } | |
21364 | return resultobj; | |
21365 | fail: | |
21366 | { | |
21367 | if (temp2) | |
21368 | delete arg2; | |
21369 | } | |
21370 | return NULL; | |
21371 | } | |
21372 | ||
21373 | ||
c370783e | 21374 | static PyObject *_wrap_DateTime_ParseDate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21375 | PyObject *resultobj; |
21376 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21377 | wxString *arg2 = 0 ; | |
21378 | int result; | |
b411df4a | 21379 | bool temp2 = false ; |
d55e5bfc RD |
21380 | PyObject * obj0 = 0 ; |
21381 | PyObject * obj1 = 0 ; | |
21382 | char *kwnames[] = { | |
21383 | (char *) "self",(char *) "date", NULL | |
21384 | }; | |
21385 | ||
21386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDate",kwnames,&obj0,&obj1)) goto fail; | |
21387 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21388 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21389 | { | |
21390 | arg2 = wxString_in_helper(obj1); | |
21391 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 21392 | temp2 = true; |
d55e5bfc RD |
21393 | } |
21394 | { | |
21395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21396 | result = (int)wxDateTime_ParseDate(arg1,(wxString const &)*arg2); | |
21397 | ||
21398 | wxPyEndAllowThreads(__tstate); | |
21399 | if (PyErr_Occurred()) SWIG_fail; | |
21400 | } | |
c370783e | 21401 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
21402 | { |
21403 | if (temp2) | |
21404 | delete arg2; | |
21405 | } | |
21406 | return resultobj; | |
21407 | fail: | |
21408 | { | |
21409 | if (temp2) | |
21410 | delete arg2; | |
21411 | } | |
21412 | return NULL; | |
21413 | } | |
21414 | ||
21415 | ||
c370783e | 21416 | static PyObject *_wrap_DateTime_ParseTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21417 | PyObject *resultobj; |
21418 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21419 | wxString *arg2 = 0 ; | |
21420 | int result; | |
b411df4a | 21421 | bool temp2 = false ; |
d55e5bfc RD |
21422 | PyObject * obj0 = 0 ; |
21423 | PyObject * obj1 = 0 ; | |
21424 | char *kwnames[] = { | |
21425 | (char *) "self",(char *) "time", NULL | |
21426 | }; | |
21427 | ||
21428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseTime",kwnames,&obj0,&obj1)) goto fail; | |
21429 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21430 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21431 | { | |
21432 | arg2 = wxString_in_helper(obj1); | |
21433 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 21434 | temp2 = true; |
d55e5bfc RD |
21435 | } |
21436 | { | |
21437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21438 | result = (int)wxDateTime_ParseTime(arg1,(wxString const &)*arg2); | |
21439 | ||
21440 | wxPyEndAllowThreads(__tstate); | |
21441 | if (PyErr_Occurred()) SWIG_fail; | |
21442 | } | |
c370783e | 21443 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
21444 | { |
21445 | if (temp2) | |
21446 | delete arg2; | |
21447 | } | |
21448 | return resultobj; | |
21449 | fail: | |
21450 | { | |
21451 | if (temp2) | |
21452 | delete arg2; | |
21453 | } | |
21454 | return NULL; | |
21455 | } | |
21456 | ||
21457 | ||
c370783e | 21458 | static PyObject *_wrap_DateTime_Format(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21459 | PyObject *resultobj; |
21460 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21461 | wxString const &arg2_defvalue = wxPyDateFormatStr ; | |
21462 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
21463 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
21464 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
21465 | wxString result; | |
b411df4a RD |
21466 | bool temp2 = false ; |
21467 | bool temp3 = false ; | |
d55e5bfc RD |
21468 | PyObject * obj0 = 0 ; |
21469 | PyObject * obj1 = 0 ; | |
21470 | PyObject * obj2 = 0 ; | |
21471 | char *kwnames[] = { | |
21472 | (char *) "self",(char *) "format",(char *) "tz", NULL | |
21473 | }; | |
21474 | ||
21475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_Format",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21476 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21477 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21478 | if (obj1) { | |
21479 | { | |
21480 | arg2 = wxString_in_helper(obj1); | |
21481 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 21482 | temp2 = true; |
d55e5bfc RD |
21483 | } |
21484 | } | |
21485 | if (obj2) { | |
21486 | { | |
21487 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
b411df4a | 21488 | temp3 = true; |
d55e5bfc RD |
21489 | } |
21490 | } | |
21491 | { | |
21492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21493 | result = ((wxDateTime const *)arg1)->Format((wxString const &)*arg2,(wxDateTime::TimeZone const &)*arg3); | |
21494 | ||
21495 | wxPyEndAllowThreads(__tstate); | |
21496 | if (PyErr_Occurred()) SWIG_fail; | |
21497 | } | |
21498 | { | |
21499 | #if wxUSE_UNICODE | |
21500 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21501 | #else | |
21502 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21503 | #endif | |
21504 | } | |
21505 | { | |
21506 | if (temp2) | |
21507 | delete arg2; | |
21508 | } | |
21509 | { | |
21510 | if (temp3) delete arg3; | |
21511 | } | |
21512 | return resultobj; | |
21513 | fail: | |
21514 | { | |
21515 | if (temp2) | |
21516 | delete arg2; | |
21517 | } | |
21518 | { | |
21519 | if (temp3) delete arg3; | |
21520 | } | |
21521 | return NULL; | |
21522 | } | |
21523 | ||
21524 | ||
c370783e | 21525 | static PyObject *_wrap_DateTime_FormatDate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21526 | PyObject *resultobj; |
21527 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21528 | wxString result; | |
21529 | PyObject * obj0 = 0 ; | |
21530 | char *kwnames[] = { | |
21531 | (char *) "self", NULL | |
21532 | }; | |
21533 | ||
21534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatDate",kwnames,&obj0)) goto fail; | |
21535 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21536 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21537 | { | |
21538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21539 | result = ((wxDateTime const *)arg1)->FormatDate(); | |
21540 | ||
21541 | wxPyEndAllowThreads(__tstate); | |
21542 | if (PyErr_Occurred()) SWIG_fail; | |
21543 | } | |
21544 | { | |
21545 | #if wxUSE_UNICODE | |
21546 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21547 | #else | |
21548 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21549 | #endif | |
21550 | } | |
21551 | return resultobj; | |
21552 | fail: | |
21553 | return NULL; | |
21554 | } | |
21555 | ||
21556 | ||
c370783e | 21557 | static PyObject *_wrap_DateTime_FormatTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21558 | PyObject *resultobj; |
21559 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21560 | wxString result; | |
21561 | PyObject * obj0 = 0 ; | |
21562 | char *kwnames[] = { | |
21563 | (char *) "self", NULL | |
21564 | }; | |
21565 | ||
21566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatTime",kwnames,&obj0)) goto fail; | |
21567 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21568 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21569 | { | |
21570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21571 | result = ((wxDateTime const *)arg1)->FormatTime(); | |
21572 | ||
21573 | wxPyEndAllowThreads(__tstate); | |
21574 | if (PyErr_Occurred()) SWIG_fail; | |
21575 | } | |
21576 | { | |
21577 | #if wxUSE_UNICODE | |
21578 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21579 | #else | |
21580 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21581 | #endif | |
21582 | } | |
21583 | return resultobj; | |
21584 | fail: | |
21585 | return NULL; | |
21586 | } | |
21587 | ||
21588 | ||
c370783e | 21589 | static PyObject *_wrap_DateTime_FormatISODate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21590 | PyObject *resultobj; |
21591 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21592 | wxString result; | |
21593 | PyObject * obj0 = 0 ; | |
21594 | char *kwnames[] = { | |
21595 | (char *) "self", NULL | |
21596 | }; | |
21597 | ||
21598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISODate",kwnames,&obj0)) goto fail; | |
21599 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21600 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21601 | { | |
21602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21603 | result = ((wxDateTime const *)arg1)->FormatISODate(); | |
21604 | ||
21605 | wxPyEndAllowThreads(__tstate); | |
21606 | if (PyErr_Occurred()) SWIG_fail; | |
21607 | } | |
21608 | { | |
21609 | #if wxUSE_UNICODE | |
21610 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21611 | #else | |
21612 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21613 | #endif | |
21614 | } | |
21615 | return resultobj; | |
21616 | fail: | |
21617 | return NULL; | |
21618 | } | |
21619 | ||
21620 | ||
c370783e | 21621 | static PyObject *_wrap_DateTime_FormatISOTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21622 | PyObject *resultobj; |
21623 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21624 | wxString result; | |
21625 | PyObject * obj0 = 0 ; | |
21626 | char *kwnames[] = { | |
21627 | (char *) "self", NULL | |
21628 | }; | |
21629 | ||
21630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISOTime",kwnames,&obj0)) goto fail; | |
21631 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21632 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21633 | { | |
21634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21635 | result = ((wxDateTime const *)arg1)->FormatISOTime(); | |
21636 | ||
21637 | wxPyEndAllowThreads(__tstate); | |
21638 | if (PyErr_Occurred()) SWIG_fail; | |
21639 | } | |
21640 | { | |
21641 | #if wxUSE_UNICODE | |
21642 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21643 | #else | |
21644 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21645 | #endif | |
21646 | } | |
21647 | return resultobj; | |
21648 | fail: | |
21649 | return NULL; | |
21650 | } | |
21651 | ||
21652 | ||
c370783e | 21653 | static PyObject * DateTime_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
21654 | PyObject *obj; |
21655 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21656 | SWIG_TypeClientData(SWIGTYPE_p_wxDateTime, obj); | |
21657 | Py_INCREF(obj); | |
21658 | return Py_BuildValue((char *)""); | |
21659 | } | |
c370783e | 21660 | static PyObject *_wrap_TimeSpan_Seconds(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21661 | PyObject *resultobj; |
21662 | long arg1 ; | |
21663 | wxTimeSpan result; | |
21664 | PyObject * obj0 = 0 ; | |
21665 | char *kwnames[] = { | |
21666 | (char *) "sec", NULL | |
21667 | }; | |
21668 | ||
21669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Seconds",kwnames,&obj0)) goto fail; | |
c370783e | 21670 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
21671 | if (PyErr_Occurred()) SWIG_fail; |
21672 | { | |
21673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21674 | result = wxTimeSpan::Seconds(arg1); | |
21675 | ||
21676 | wxPyEndAllowThreads(__tstate); | |
21677 | if (PyErr_Occurred()) SWIG_fail; | |
21678 | } | |
21679 | { | |
21680 | wxTimeSpan * resultptr; | |
21681 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21682 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21683 | } | |
21684 | return resultobj; | |
21685 | fail: | |
21686 | return NULL; | |
21687 | } | |
21688 | ||
21689 | ||
c370783e | 21690 | static PyObject *_wrap_TimeSpan_Second(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21691 | PyObject *resultobj; |
21692 | wxTimeSpan result; | |
21693 | char *kwnames[] = { | |
21694 | NULL | |
21695 | }; | |
21696 | ||
21697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Second",kwnames)) goto fail; | |
21698 | { | |
21699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21700 | result = wxTimeSpan::Second(); | |
21701 | ||
21702 | wxPyEndAllowThreads(__tstate); | |
21703 | if (PyErr_Occurred()) SWIG_fail; | |
21704 | } | |
21705 | { | |
21706 | wxTimeSpan * resultptr; | |
21707 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21708 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21709 | } | |
21710 | return resultobj; | |
21711 | fail: | |
21712 | return NULL; | |
21713 | } | |
21714 | ||
21715 | ||
c370783e | 21716 | static PyObject *_wrap_TimeSpan_Minutes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21717 | PyObject *resultobj; |
21718 | long arg1 ; | |
21719 | wxTimeSpan result; | |
21720 | PyObject * obj0 = 0 ; | |
21721 | char *kwnames[] = { | |
21722 | (char *) "min", NULL | |
21723 | }; | |
21724 | ||
21725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Minutes",kwnames,&obj0)) goto fail; | |
c370783e | 21726 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
21727 | if (PyErr_Occurred()) SWIG_fail; |
21728 | { | |
21729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21730 | result = wxTimeSpan::Minutes(arg1); | |
21731 | ||
21732 | wxPyEndAllowThreads(__tstate); | |
21733 | if (PyErr_Occurred()) SWIG_fail; | |
21734 | } | |
21735 | { | |
21736 | wxTimeSpan * resultptr; | |
21737 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21738 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21739 | } | |
21740 | return resultobj; | |
21741 | fail: | |
21742 | return NULL; | |
21743 | } | |
21744 | ||
21745 | ||
c370783e | 21746 | static PyObject *_wrap_TimeSpan_Minute(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21747 | PyObject *resultobj; |
21748 | wxTimeSpan result; | |
21749 | char *kwnames[] = { | |
21750 | NULL | |
21751 | }; | |
21752 | ||
21753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Minute",kwnames)) goto fail; | |
21754 | { | |
21755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21756 | result = wxTimeSpan::Minute(); | |
21757 | ||
21758 | wxPyEndAllowThreads(__tstate); | |
21759 | if (PyErr_Occurred()) SWIG_fail; | |
21760 | } | |
21761 | { | |
21762 | wxTimeSpan * resultptr; | |
21763 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21764 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21765 | } | |
21766 | return resultobj; | |
21767 | fail: | |
21768 | return NULL; | |
21769 | } | |
21770 | ||
21771 | ||
c370783e | 21772 | static PyObject *_wrap_TimeSpan_Hours(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21773 | PyObject *resultobj; |
21774 | long arg1 ; | |
21775 | wxTimeSpan result; | |
21776 | PyObject * obj0 = 0 ; | |
21777 | char *kwnames[] = { | |
21778 | (char *) "hours", NULL | |
21779 | }; | |
21780 | ||
21781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Hours",kwnames,&obj0)) goto fail; | |
c370783e | 21782 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
21783 | if (PyErr_Occurred()) SWIG_fail; |
21784 | { | |
21785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21786 | result = wxTimeSpan::Hours(arg1); | |
21787 | ||
21788 | wxPyEndAllowThreads(__tstate); | |
21789 | if (PyErr_Occurred()) SWIG_fail; | |
21790 | } | |
21791 | { | |
21792 | wxTimeSpan * resultptr; | |
21793 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21794 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21795 | } | |
21796 | return resultobj; | |
21797 | fail: | |
21798 | return NULL; | |
21799 | } | |
21800 | ||
21801 | ||
c370783e | 21802 | static PyObject *_wrap_TimeSpan_Hour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21803 | PyObject *resultobj; |
21804 | wxTimeSpan result; | |
21805 | char *kwnames[] = { | |
21806 | NULL | |
21807 | }; | |
21808 | ||
21809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Hour",kwnames)) goto fail; | |
21810 | { | |
21811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21812 | result = wxTimeSpan::Hour(); | |
21813 | ||
21814 | wxPyEndAllowThreads(__tstate); | |
21815 | if (PyErr_Occurred()) SWIG_fail; | |
21816 | } | |
21817 | { | |
21818 | wxTimeSpan * resultptr; | |
21819 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21820 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21821 | } | |
21822 | return resultobj; | |
21823 | fail: | |
21824 | return NULL; | |
21825 | } | |
21826 | ||
21827 | ||
c370783e | 21828 | static PyObject *_wrap_TimeSpan_Days(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21829 | PyObject *resultobj; |
21830 | long arg1 ; | |
21831 | wxTimeSpan result; | |
21832 | PyObject * obj0 = 0 ; | |
21833 | char *kwnames[] = { | |
21834 | (char *) "days", NULL | |
21835 | }; | |
21836 | ||
21837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Days",kwnames,&obj0)) goto fail; | |
c370783e | 21838 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
21839 | if (PyErr_Occurred()) SWIG_fail; |
21840 | { | |
21841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21842 | result = wxTimeSpan::Days(arg1); | |
21843 | ||
21844 | wxPyEndAllowThreads(__tstate); | |
21845 | if (PyErr_Occurred()) SWIG_fail; | |
21846 | } | |
21847 | { | |
21848 | wxTimeSpan * resultptr; | |
21849 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21850 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21851 | } | |
21852 | return resultobj; | |
21853 | fail: | |
21854 | return NULL; | |
21855 | } | |
21856 | ||
21857 | ||
c370783e | 21858 | static PyObject *_wrap_TimeSpan_Day(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21859 | PyObject *resultobj; |
21860 | wxTimeSpan result; | |
21861 | char *kwnames[] = { | |
21862 | NULL | |
21863 | }; | |
21864 | ||
21865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Day",kwnames)) goto fail; | |
21866 | { | |
21867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21868 | result = wxTimeSpan::Day(); | |
21869 | ||
21870 | wxPyEndAllowThreads(__tstate); | |
21871 | if (PyErr_Occurred()) SWIG_fail; | |
21872 | } | |
21873 | { | |
21874 | wxTimeSpan * resultptr; | |
21875 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21876 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21877 | } | |
21878 | return resultobj; | |
21879 | fail: | |
21880 | return NULL; | |
21881 | } | |
21882 | ||
21883 | ||
c370783e | 21884 | static PyObject *_wrap_TimeSpan_Weeks(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21885 | PyObject *resultobj; |
21886 | long arg1 ; | |
21887 | wxTimeSpan result; | |
21888 | PyObject * obj0 = 0 ; | |
21889 | char *kwnames[] = { | |
21890 | (char *) "days", NULL | |
21891 | }; | |
21892 | ||
21893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Weeks",kwnames,&obj0)) goto fail; | |
c370783e | 21894 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
21895 | if (PyErr_Occurred()) SWIG_fail; |
21896 | { | |
21897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21898 | result = wxTimeSpan::Weeks(arg1); | |
21899 | ||
21900 | wxPyEndAllowThreads(__tstate); | |
21901 | if (PyErr_Occurred()) SWIG_fail; | |
21902 | } | |
21903 | { | |
21904 | wxTimeSpan * resultptr; | |
21905 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21906 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21907 | } | |
21908 | return resultobj; | |
21909 | fail: | |
21910 | return NULL; | |
21911 | } | |
21912 | ||
21913 | ||
c370783e | 21914 | static PyObject *_wrap_TimeSpan_Week(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21915 | PyObject *resultobj; |
21916 | wxTimeSpan result; | |
21917 | char *kwnames[] = { | |
21918 | NULL | |
21919 | }; | |
21920 | ||
21921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Week",kwnames)) goto fail; | |
21922 | { | |
21923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21924 | result = wxTimeSpan::Week(); | |
21925 | ||
21926 | wxPyEndAllowThreads(__tstate); | |
21927 | if (PyErr_Occurred()) SWIG_fail; | |
21928 | } | |
21929 | { | |
21930 | wxTimeSpan * resultptr; | |
21931 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21932 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21933 | } | |
21934 | return resultobj; | |
21935 | fail: | |
21936 | return NULL; | |
21937 | } | |
21938 | ||
21939 | ||
c370783e | 21940 | static PyObject *_wrap_new_TimeSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21941 | PyObject *resultobj; |
21942 | long arg1 = (long) 0 ; | |
21943 | long arg2 = (long) 0 ; | |
21944 | long arg3 = (long) 0 ; | |
21945 | long arg4 = (long) 0 ; | |
21946 | wxTimeSpan *result; | |
21947 | PyObject * obj0 = 0 ; | |
21948 | PyObject * obj1 = 0 ; | |
21949 | PyObject * obj2 = 0 ; | |
21950 | PyObject * obj3 = 0 ; | |
21951 | char *kwnames[] = { | |
21952 | (char *) "hours",(char *) "minutes",(char *) "seconds",(char *) "milliseconds", NULL | |
21953 | }; | |
21954 | ||
21955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TimeSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
21956 | if (obj0) { | |
c370783e | 21957 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
21958 | if (PyErr_Occurred()) SWIG_fail; |
21959 | } | |
21960 | if (obj1) { | |
c370783e | 21961 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
21962 | if (PyErr_Occurred()) SWIG_fail; |
21963 | } | |
21964 | if (obj2) { | |
c370783e | 21965 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
21966 | if (PyErr_Occurred()) SWIG_fail; |
21967 | } | |
21968 | if (obj3) { | |
c370783e | 21969 | arg4 = (long)SWIG_As_long(obj3); |
d55e5bfc RD |
21970 | if (PyErr_Occurred()) SWIG_fail; |
21971 | } | |
21972 | { | |
21973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21974 | result = (wxTimeSpan *)new wxTimeSpan(arg1,arg2,arg3,arg4); | |
21975 | ||
21976 | wxPyEndAllowThreads(__tstate); | |
21977 | if (PyErr_Occurred()) SWIG_fail; | |
21978 | } | |
21979 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1); | |
21980 | return resultobj; | |
21981 | fail: | |
21982 | return NULL; | |
21983 | } | |
21984 | ||
21985 | ||
c370783e | 21986 | static PyObject *_wrap_delete_TimeSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21987 | PyObject *resultobj; |
21988 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21989 | PyObject * obj0 = 0 ; | |
21990 | char *kwnames[] = { | |
21991 | (char *) "self", NULL | |
21992 | }; | |
21993 | ||
21994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimeSpan",kwnames,&obj0)) goto fail; | |
21995 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21996 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21997 | { | |
21998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21999 | delete arg1; | |
22000 | ||
22001 | wxPyEndAllowThreads(__tstate); | |
22002 | if (PyErr_Occurred()) SWIG_fail; | |
22003 | } | |
22004 | Py_INCREF(Py_None); resultobj = Py_None; | |
22005 | return resultobj; | |
22006 | fail: | |
22007 | return NULL; | |
22008 | } | |
22009 | ||
22010 | ||
c370783e | 22011 | static PyObject *_wrap_TimeSpan_Add(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22012 | PyObject *resultobj; |
22013 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22014 | wxTimeSpan *arg2 = 0 ; | |
22015 | wxTimeSpan *result; | |
22016 | PyObject * obj0 = 0 ; | |
22017 | PyObject * obj1 = 0 ; | |
22018 | char *kwnames[] = { | |
22019 | (char *) "self",(char *) "diff", NULL | |
22020 | }; | |
22021 | ||
22022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Add",kwnames,&obj0,&obj1)) goto fail; | |
22023 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22024 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22025 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22026 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22027 | SWIG_fail; | |
22028 | if (arg2 == NULL) { | |
22029 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22030 | SWIG_fail; | |
22031 | } | |
22032 | { | |
22033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22034 | { | |
22035 | wxTimeSpan &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2); | |
22036 | result = (wxTimeSpan *) &_result_ref; | |
22037 | } | |
22038 | ||
22039 | wxPyEndAllowThreads(__tstate); | |
22040 | if (PyErr_Occurred()) SWIG_fail; | |
22041 | } | |
22042 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
22043 | return resultobj; | |
22044 | fail: | |
22045 | return NULL; | |
22046 | } | |
22047 | ||
22048 | ||
c370783e | 22049 | static PyObject *_wrap_TimeSpan_Subtract(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22050 | PyObject *resultobj; |
22051 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22052 | wxTimeSpan *arg2 = 0 ; | |
22053 | wxTimeSpan *result; | |
22054 | PyObject * obj0 = 0 ; | |
22055 | PyObject * obj1 = 0 ; | |
22056 | char *kwnames[] = { | |
22057 | (char *) "self",(char *) "diff", NULL | |
22058 | }; | |
22059 | ||
22060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
22061 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22062 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22063 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22064 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22065 | SWIG_fail; | |
22066 | if (arg2 == NULL) { | |
22067 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22068 | SWIG_fail; | |
22069 | } | |
22070 | { | |
22071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22072 | { | |
22073 | wxTimeSpan &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2); | |
22074 | result = (wxTimeSpan *) &_result_ref; | |
22075 | } | |
22076 | ||
22077 | wxPyEndAllowThreads(__tstate); | |
22078 | if (PyErr_Occurred()) SWIG_fail; | |
22079 | } | |
22080 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
22081 | return resultobj; | |
22082 | fail: | |
22083 | return NULL; | |
22084 | } | |
22085 | ||
22086 | ||
c370783e | 22087 | static PyObject *_wrap_TimeSpan_Multiply(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22088 | PyObject *resultobj; |
22089 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22090 | int arg2 ; | |
22091 | wxTimeSpan *result; | |
22092 | PyObject * obj0 = 0 ; | |
22093 | PyObject * obj1 = 0 ; | |
22094 | char *kwnames[] = { | |
22095 | (char *) "self",(char *) "n", NULL | |
22096 | }; | |
22097 | ||
22098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Multiply",kwnames,&obj0,&obj1)) goto fail; | |
22099 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22100 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 22101 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
22102 | if (PyErr_Occurred()) SWIG_fail; |
22103 | { | |
22104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22105 | { | |
22106 | wxTimeSpan &_result_ref = (arg1)->Multiply(arg2); | |
22107 | result = (wxTimeSpan *) &_result_ref; | |
22108 | } | |
22109 | ||
22110 | wxPyEndAllowThreads(__tstate); | |
22111 | if (PyErr_Occurred()) SWIG_fail; | |
22112 | } | |
22113 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
22114 | return resultobj; | |
22115 | fail: | |
22116 | return NULL; | |
22117 | } | |
22118 | ||
22119 | ||
c370783e | 22120 | static PyObject *_wrap_TimeSpan_Neg(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22121 | PyObject *resultobj; |
22122 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22123 | wxTimeSpan *result; | |
22124 | PyObject * obj0 = 0 ; | |
22125 | char *kwnames[] = { | |
22126 | (char *) "self", NULL | |
22127 | }; | |
22128 | ||
22129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Neg",kwnames,&obj0)) goto fail; | |
22130 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22131 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22132 | { | |
22133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22134 | { | |
22135 | wxTimeSpan &_result_ref = (arg1)->Neg(); | |
22136 | result = (wxTimeSpan *) &_result_ref; | |
22137 | } | |
22138 | ||
22139 | wxPyEndAllowThreads(__tstate); | |
22140 | if (PyErr_Occurred()) SWIG_fail; | |
22141 | } | |
22142 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
22143 | return resultobj; | |
22144 | fail: | |
22145 | return NULL; | |
22146 | } | |
22147 | ||
22148 | ||
c370783e | 22149 | static PyObject *_wrap_TimeSpan_Abs(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22150 | PyObject *resultobj; |
22151 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22152 | wxTimeSpan result; | |
22153 | PyObject * obj0 = 0 ; | |
22154 | char *kwnames[] = { | |
22155 | (char *) "self", NULL | |
22156 | }; | |
22157 | ||
22158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Abs",kwnames,&obj0)) goto fail; | |
22159 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22160 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22161 | { | |
22162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22163 | result = ((wxTimeSpan const *)arg1)->Abs(); | |
22164 | ||
22165 | wxPyEndAllowThreads(__tstate); | |
22166 | if (PyErr_Occurred()) SWIG_fail; | |
22167 | } | |
22168 | { | |
22169 | wxTimeSpan * resultptr; | |
22170 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
22171 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
22172 | } | |
22173 | return resultobj; | |
22174 | fail: | |
22175 | return NULL; | |
22176 | } | |
22177 | ||
22178 | ||
c370783e | 22179 | static PyObject *_wrap_TimeSpan___iadd__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22180 | PyObject *resultobj; |
22181 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22182 | wxTimeSpan *arg2 = 0 ; | |
22183 | wxTimeSpan *result; | |
22184 | PyObject * obj0 = 0 ; | |
22185 | PyObject * obj1 = 0 ; | |
22186 | char *kwnames[] = { | |
22187 | (char *) "self",(char *) "diff", NULL | |
22188 | }; | |
22189 | ||
22190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
22191 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
c370783e | 22192 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
22193 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, |
22194 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22195 | SWIG_fail; | |
22196 | if (arg2 == NULL) { | |
22197 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22198 | SWIG_fail; | |
22199 | } | |
22200 | { | |
22201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22202 | { | |
22203 | wxTimeSpan &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2); | |
22204 | result = (wxTimeSpan *) &_result_ref; | |
22205 | } | |
22206 | ||
22207 | wxPyEndAllowThreads(__tstate); | |
22208 | if (PyErr_Occurred()) SWIG_fail; | |
22209 | } | |
c370783e | 22210 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1); |
d55e5bfc RD |
22211 | return resultobj; |
22212 | fail: | |
22213 | return NULL; | |
22214 | } | |
22215 | ||
22216 | ||
c370783e | 22217 | static PyObject *_wrap_TimeSpan___isub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22218 | PyObject *resultobj; |
22219 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22220 | wxTimeSpan *arg2 = 0 ; | |
22221 | wxTimeSpan *result; | |
22222 | PyObject * obj0 = 0 ; | |
22223 | PyObject * obj1 = 0 ; | |
22224 | char *kwnames[] = { | |
22225 | (char *) "self",(char *) "diff", NULL | |
22226 | }; | |
22227 | ||
22228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___isub__",kwnames,&obj0,&obj1)) goto fail; | |
22229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
c370783e | 22230 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
22231 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, |
22232 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22233 | SWIG_fail; | |
22234 | if (arg2 == NULL) { | |
22235 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22236 | SWIG_fail; | |
22237 | } | |
22238 | { | |
22239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22240 | { | |
22241 | wxTimeSpan &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2); | |
22242 | result = (wxTimeSpan *) &_result_ref; | |
22243 | } | |
22244 | ||
22245 | wxPyEndAllowThreads(__tstate); | |
22246 | if (PyErr_Occurred()) SWIG_fail; | |
22247 | } | |
c370783e | 22248 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1); |
d55e5bfc RD |
22249 | return resultobj; |
22250 | fail: | |
22251 | return NULL; | |
22252 | } | |
22253 | ||
22254 | ||
c370783e | 22255 | static PyObject *_wrap_TimeSpan___imul__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22256 | PyObject *resultobj; |
22257 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22258 | int arg2 ; | |
22259 | wxTimeSpan *result; | |
22260 | PyObject * obj0 = 0 ; | |
22261 | PyObject * obj1 = 0 ; | |
22262 | char *kwnames[] = { | |
22263 | (char *) "self",(char *) "n", NULL | |
22264 | }; | |
22265 | ||
22266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___imul__",kwnames,&obj0,&obj1)) goto fail; | |
22267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
c370783e RD |
22268 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
22269 | arg2 = (int)SWIG_As_int(obj1); | |
d55e5bfc RD |
22270 | if (PyErr_Occurred()) SWIG_fail; |
22271 | { | |
22272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22273 | { | |
22274 | wxTimeSpan &_result_ref = (arg1)->operator *=(arg2); | |
22275 | result = (wxTimeSpan *) &_result_ref; | |
22276 | } | |
22277 | ||
22278 | wxPyEndAllowThreads(__tstate); | |
22279 | if (PyErr_Occurred()) SWIG_fail; | |
22280 | } | |
c370783e | 22281 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1); |
d55e5bfc RD |
22282 | return resultobj; |
22283 | fail: | |
22284 | return NULL; | |
22285 | } | |
22286 | ||
22287 | ||
c370783e | 22288 | static PyObject *_wrap_TimeSpan___neg__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22289 | PyObject *resultobj; |
22290 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22291 | wxTimeSpan *result; | |
22292 | PyObject * obj0 = 0 ; | |
22293 | char *kwnames[] = { | |
22294 | (char *) "self", NULL | |
22295 | }; | |
22296 | ||
22297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan___neg__",kwnames,&obj0)) goto fail; | |
22298 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22300 | { | |
22301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22302 | { | |
22303 | wxTimeSpan &_result_ref = (arg1)->operator -(); | |
22304 | result = (wxTimeSpan *) &_result_ref; | |
22305 | } | |
22306 | ||
22307 | wxPyEndAllowThreads(__tstate); | |
22308 | if (PyErr_Occurred()) SWIG_fail; | |
22309 | } | |
22310 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
22311 | return resultobj; | |
22312 | fail: | |
22313 | return NULL; | |
22314 | } | |
22315 | ||
22316 | ||
c370783e | 22317 | static PyObject *_wrap_TimeSpan___add__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22318 | PyObject *resultobj; |
22319 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22320 | wxTimeSpan *arg2 = 0 ; | |
22321 | wxTimeSpan result; | |
22322 | PyObject * obj0 = 0 ; | |
22323 | PyObject * obj1 = 0 ; | |
22324 | char *kwnames[] = { | |
22325 | (char *) "self",(char *) "other", NULL | |
22326 | }; | |
22327 | ||
22328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___add__",kwnames,&obj0,&obj1)) goto fail; | |
22329 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22330 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22331 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22332 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22333 | SWIG_fail; | |
22334 | if (arg2 == NULL) { | |
22335 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22336 | SWIG_fail; | |
22337 | } | |
22338 | { | |
22339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22340 | result = wxTimeSpan___add__(arg1,(wxTimeSpan const &)*arg2); | |
22341 | ||
22342 | wxPyEndAllowThreads(__tstate); | |
22343 | if (PyErr_Occurred()) SWIG_fail; | |
22344 | } | |
22345 | { | |
22346 | wxTimeSpan * resultptr; | |
22347 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
22348 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
22349 | } | |
22350 | return resultobj; | |
22351 | fail: | |
22352 | return NULL; | |
22353 | } | |
22354 | ||
22355 | ||
c370783e | 22356 | static PyObject *_wrap_TimeSpan___sub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22357 | PyObject *resultobj; |
22358 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22359 | wxTimeSpan *arg2 = 0 ; | |
22360 | wxTimeSpan result; | |
22361 | PyObject * obj0 = 0 ; | |
22362 | PyObject * obj1 = 0 ; | |
22363 | char *kwnames[] = { | |
22364 | (char *) "self",(char *) "other", NULL | |
22365 | }; | |
22366 | ||
22367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___sub__",kwnames,&obj0,&obj1)) goto fail; | |
22368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22370 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22371 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22372 | SWIG_fail; | |
22373 | if (arg2 == NULL) { | |
22374 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22375 | SWIG_fail; | |
22376 | } | |
22377 | { | |
22378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22379 | result = wxTimeSpan___sub__(arg1,(wxTimeSpan const &)*arg2); | |
22380 | ||
22381 | wxPyEndAllowThreads(__tstate); | |
22382 | if (PyErr_Occurred()) SWIG_fail; | |
22383 | } | |
22384 | { | |
22385 | wxTimeSpan * resultptr; | |
22386 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
22387 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
22388 | } | |
22389 | return resultobj; | |
22390 | fail: | |
22391 | return NULL; | |
22392 | } | |
22393 | ||
22394 | ||
c370783e | 22395 | static PyObject *_wrap_TimeSpan___mul__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22396 | PyObject *resultobj; |
22397 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22398 | int arg2 ; | |
22399 | wxTimeSpan result; | |
22400 | PyObject * obj0 = 0 ; | |
22401 | PyObject * obj1 = 0 ; | |
22402 | char *kwnames[] = { | |
22403 | (char *) "self",(char *) "n", NULL | |
22404 | }; | |
22405 | ||
22406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___mul__",kwnames,&obj0,&obj1)) goto fail; | |
22407 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22408 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 22409 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
22410 | if (PyErr_Occurred()) SWIG_fail; |
22411 | { | |
22412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22413 | result = wxTimeSpan___mul__(arg1,arg2); | |
22414 | ||
22415 | wxPyEndAllowThreads(__tstate); | |
22416 | if (PyErr_Occurred()) SWIG_fail; | |
22417 | } | |
22418 | { | |
22419 | wxTimeSpan * resultptr; | |
22420 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
22421 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
22422 | } | |
22423 | return resultobj; | |
22424 | fail: | |
22425 | return NULL; | |
22426 | } | |
22427 | ||
22428 | ||
c370783e | 22429 | static PyObject *_wrap_TimeSpan___rmul__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22430 | PyObject *resultobj; |
22431 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22432 | int arg2 ; | |
22433 | wxTimeSpan result; | |
22434 | PyObject * obj0 = 0 ; | |
22435 | PyObject * obj1 = 0 ; | |
22436 | char *kwnames[] = { | |
22437 | (char *) "self",(char *) "n", NULL | |
22438 | }; | |
22439 | ||
22440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___rmul__",kwnames,&obj0,&obj1)) goto fail; | |
22441 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22442 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 22443 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
22444 | if (PyErr_Occurred()) SWIG_fail; |
22445 | { | |
22446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22447 | result = wxTimeSpan___rmul__(arg1,arg2); | |
22448 | ||
22449 | wxPyEndAllowThreads(__tstate); | |
22450 | if (PyErr_Occurred()) SWIG_fail; | |
22451 | } | |
22452 | { | |
22453 | wxTimeSpan * resultptr; | |
22454 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
22455 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
22456 | } | |
22457 | return resultobj; | |
22458 | fail: | |
22459 | return NULL; | |
22460 | } | |
22461 | ||
22462 | ||
c370783e | 22463 | static PyObject *_wrap_TimeSpan___lt__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22464 | PyObject *resultobj; |
22465 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22466 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
22467 | bool result; | |
22468 | PyObject * obj0 = 0 ; | |
22469 | PyObject * obj1 = 0 ; | |
22470 | char *kwnames[] = { | |
22471 | (char *) "self",(char *) "other", NULL | |
22472 | }; | |
22473 | ||
22474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___lt__",kwnames,&obj0,&obj1)) goto fail; | |
22475 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22476 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22477 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22479 | { | |
22480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22481 | result = (bool)wxTimeSpan___lt__(arg1,(wxTimeSpan const *)arg2); | |
22482 | ||
22483 | wxPyEndAllowThreads(__tstate); | |
22484 | if (PyErr_Occurred()) SWIG_fail; | |
22485 | } | |
22486 | { | |
22487 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22488 | } | |
22489 | return resultobj; | |
22490 | fail: | |
22491 | return NULL; | |
22492 | } | |
22493 | ||
22494 | ||
c370783e | 22495 | static PyObject *_wrap_TimeSpan___le__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22496 | PyObject *resultobj; |
22497 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22498 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
22499 | bool result; | |
22500 | PyObject * obj0 = 0 ; | |
22501 | PyObject * obj1 = 0 ; | |
22502 | char *kwnames[] = { | |
22503 | (char *) "self",(char *) "other", NULL | |
22504 | }; | |
22505 | ||
22506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___le__",kwnames,&obj0,&obj1)) goto fail; | |
22507 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22508 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22509 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22510 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22511 | { | |
22512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22513 | result = (bool)wxTimeSpan___le__(arg1,(wxTimeSpan const *)arg2); | |
22514 | ||
22515 | wxPyEndAllowThreads(__tstate); | |
22516 | if (PyErr_Occurred()) SWIG_fail; | |
22517 | } | |
22518 | { | |
22519 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22520 | } | |
22521 | return resultobj; | |
22522 | fail: | |
22523 | return NULL; | |
22524 | } | |
22525 | ||
22526 | ||
c370783e | 22527 | static PyObject *_wrap_TimeSpan___gt__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22528 | PyObject *resultobj; |
22529 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22530 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
22531 | bool result; | |
22532 | PyObject * obj0 = 0 ; | |
22533 | PyObject * obj1 = 0 ; | |
22534 | char *kwnames[] = { | |
22535 | (char *) "self",(char *) "other", NULL | |
22536 | }; | |
22537 | ||
22538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___gt__",kwnames,&obj0,&obj1)) goto fail; | |
22539 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22540 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22541 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22543 | { | |
22544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22545 | result = (bool)wxTimeSpan___gt__(arg1,(wxTimeSpan const *)arg2); | |
22546 | ||
22547 | wxPyEndAllowThreads(__tstate); | |
22548 | if (PyErr_Occurred()) SWIG_fail; | |
22549 | } | |
22550 | { | |
22551 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22552 | } | |
22553 | return resultobj; | |
22554 | fail: | |
22555 | return NULL; | |
22556 | } | |
22557 | ||
22558 | ||
c370783e | 22559 | static PyObject *_wrap_TimeSpan___ge__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22560 | PyObject *resultobj; |
22561 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22562 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
22563 | bool result; | |
22564 | PyObject * obj0 = 0 ; | |
22565 | PyObject * obj1 = 0 ; | |
22566 | char *kwnames[] = { | |
22567 | (char *) "self",(char *) "other", NULL | |
22568 | }; | |
22569 | ||
22570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ge__",kwnames,&obj0,&obj1)) goto fail; | |
22571 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22572 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22573 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22574 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22575 | { | |
22576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22577 | result = (bool)wxTimeSpan___ge__(arg1,(wxTimeSpan const *)arg2); | |
22578 | ||
22579 | wxPyEndAllowThreads(__tstate); | |
22580 | if (PyErr_Occurred()) SWIG_fail; | |
22581 | } | |
22582 | { | |
22583 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22584 | } | |
22585 | return resultobj; | |
22586 | fail: | |
22587 | return NULL; | |
22588 | } | |
22589 | ||
22590 | ||
c370783e | 22591 | static PyObject *_wrap_TimeSpan___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22592 | PyObject *resultobj; |
22593 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22594 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
22595 | bool result; | |
22596 | PyObject * obj0 = 0 ; | |
22597 | PyObject * obj1 = 0 ; | |
22598 | char *kwnames[] = { | |
22599 | (char *) "self",(char *) "other", NULL | |
22600 | }; | |
22601 | ||
22602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
22603 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22604 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22605 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22606 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22607 | { | |
22608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22609 | result = (bool)wxTimeSpan___eq__(arg1,(wxTimeSpan const *)arg2); | |
22610 | ||
22611 | wxPyEndAllowThreads(__tstate); | |
22612 | if (PyErr_Occurred()) SWIG_fail; | |
22613 | } | |
22614 | { | |
22615 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22616 | } | |
22617 | return resultobj; | |
22618 | fail: | |
22619 | return NULL; | |
22620 | } | |
22621 | ||
22622 | ||
c370783e | 22623 | static PyObject *_wrap_TimeSpan___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22624 | PyObject *resultobj; |
22625 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22626 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
22627 | bool result; | |
22628 | PyObject * obj0 = 0 ; | |
22629 | PyObject * obj1 = 0 ; | |
22630 | char *kwnames[] = { | |
22631 | (char *) "self",(char *) "other", NULL | |
22632 | }; | |
22633 | ||
22634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
22635 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22636 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22637 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22638 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22639 | { | |
22640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22641 | result = (bool)wxTimeSpan___ne__(arg1,(wxTimeSpan const *)arg2); | |
22642 | ||
22643 | wxPyEndAllowThreads(__tstate); | |
22644 | if (PyErr_Occurred()) SWIG_fail; | |
22645 | } | |
22646 | { | |
22647 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22648 | } | |
22649 | return resultobj; | |
22650 | fail: | |
22651 | return NULL; | |
22652 | } | |
22653 | ||
22654 | ||
c370783e | 22655 | static PyObject *_wrap_TimeSpan_IsNull(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22656 | PyObject *resultobj; |
22657 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22658 | bool result; | |
22659 | PyObject * obj0 = 0 ; | |
22660 | char *kwnames[] = { | |
22661 | (char *) "self", NULL | |
22662 | }; | |
22663 | ||
22664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNull",kwnames,&obj0)) goto fail; | |
22665 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22666 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22667 | { | |
22668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22669 | result = (bool)((wxTimeSpan const *)arg1)->IsNull(); | |
22670 | ||
22671 | wxPyEndAllowThreads(__tstate); | |
22672 | if (PyErr_Occurred()) SWIG_fail; | |
22673 | } | |
22674 | { | |
22675 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22676 | } | |
22677 | return resultobj; | |
22678 | fail: | |
22679 | return NULL; | |
22680 | } | |
22681 | ||
22682 | ||
c370783e | 22683 | static PyObject *_wrap_TimeSpan_IsPositive(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22684 | PyObject *resultobj; |
22685 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22686 | bool result; | |
22687 | PyObject * obj0 = 0 ; | |
22688 | char *kwnames[] = { | |
22689 | (char *) "self", NULL | |
22690 | }; | |
22691 | ||
22692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsPositive",kwnames,&obj0)) goto fail; | |
22693 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22694 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22695 | { | |
22696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22697 | result = (bool)((wxTimeSpan const *)arg1)->IsPositive(); | |
22698 | ||
22699 | wxPyEndAllowThreads(__tstate); | |
22700 | if (PyErr_Occurred()) SWIG_fail; | |
22701 | } | |
22702 | { | |
22703 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22704 | } | |
22705 | return resultobj; | |
22706 | fail: | |
22707 | return NULL; | |
22708 | } | |
22709 | ||
22710 | ||
c370783e | 22711 | static PyObject *_wrap_TimeSpan_IsNegative(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22712 | PyObject *resultobj; |
22713 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22714 | bool result; | |
22715 | PyObject * obj0 = 0 ; | |
22716 | char *kwnames[] = { | |
22717 | (char *) "self", NULL | |
22718 | }; | |
22719 | ||
22720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNegative",kwnames,&obj0)) goto fail; | |
22721 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22722 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22723 | { | |
22724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22725 | result = (bool)((wxTimeSpan const *)arg1)->IsNegative(); | |
22726 | ||
22727 | wxPyEndAllowThreads(__tstate); | |
22728 | if (PyErr_Occurred()) SWIG_fail; | |
22729 | } | |
22730 | { | |
22731 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22732 | } | |
22733 | return resultobj; | |
22734 | fail: | |
22735 | return NULL; | |
22736 | } | |
22737 | ||
22738 | ||
c370783e | 22739 | static PyObject *_wrap_TimeSpan_IsEqualTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22740 | PyObject *resultobj; |
22741 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22742 | wxTimeSpan *arg2 = 0 ; | |
22743 | bool result; | |
22744 | PyObject * obj0 = 0 ; | |
22745 | PyObject * obj1 = 0 ; | |
22746 | char *kwnames[] = { | |
22747 | (char *) "self",(char *) "ts", NULL | |
22748 | }; | |
22749 | ||
22750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsEqualTo",kwnames,&obj0,&obj1)) goto fail; | |
22751 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22752 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22753 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22754 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22755 | SWIG_fail; | |
22756 | if (arg2 == NULL) { | |
22757 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22758 | SWIG_fail; | |
22759 | } | |
22760 | { | |
22761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22762 | result = (bool)((wxTimeSpan const *)arg1)->IsEqualTo((wxTimeSpan const &)*arg2); | |
22763 | ||
22764 | wxPyEndAllowThreads(__tstate); | |
22765 | if (PyErr_Occurred()) SWIG_fail; | |
22766 | } | |
22767 | { | |
22768 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22769 | } | |
22770 | return resultobj; | |
22771 | fail: | |
22772 | return NULL; | |
22773 | } | |
22774 | ||
22775 | ||
c370783e | 22776 | static PyObject *_wrap_TimeSpan_IsLongerThan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22777 | PyObject *resultobj; |
22778 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22779 | wxTimeSpan *arg2 = 0 ; | |
22780 | bool result; | |
22781 | PyObject * obj0 = 0 ; | |
22782 | PyObject * obj1 = 0 ; | |
22783 | char *kwnames[] = { | |
22784 | (char *) "self",(char *) "ts", NULL | |
22785 | }; | |
22786 | ||
22787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsLongerThan",kwnames,&obj0,&obj1)) goto fail; | |
22788 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22789 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22790 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22791 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22792 | SWIG_fail; | |
22793 | if (arg2 == NULL) { | |
22794 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22795 | SWIG_fail; | |
22796 | } | |
22797 | { | |
22798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22799 | result = (bool)((wxTimeSpan const *)arg1)->IsLongerThan((wxTimeSpan const &)*arg2); | |
22800 | ||
22801 | wxPyEndAllowThreads(__tstate); | |
22802 | if (PyErr_Occurred()) SWIG_fail; | |
22803 | } | |
22804 | { | |
22805 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22806 | } | |
22807 | return resultobj; | |
22808 | fail: | |
22809 | return NULL; | |
22810 | } | |
22811 | ||
22812 | ||
c370783e | 22813 | static PyObject *_wrap_TimeSpan_IsShorterThan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22814 | PyObject *resultobj; |
22815 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22816 | wxTimeSpan *arg2 = 0 ; | |
22817 | bool result; | |
22818 | PyObject * obj0 = 0 ; | |
22819 | PyObject * obj1 = 0 ; | |
22820 | char *kwnames[] = { | |
22821 | (char *) "self",(char *) "t", NULL | |
22822 | }; | |
22823 | ||
22824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsShorterThan",kwnames,&obj0,&obj1)) goto fail; | |
22825 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22826 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22827 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22828 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22829 | SWIG_fail; | |
22830 | if (arg2 == NULL) { | |
22831 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22832 | SWIG_fail; | |
22833 | } | |
22834 | { | |
22835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22836 | result = (bool)((wxTimeSpan const *)arg1)->IsShorterThan((wxTimeSpan const &)*arg2); | |
22837 | ||
22838 | wxPyEndAllowThreads(__tstate); | |
22839 | if (PyErr_Occurred()) SWIG_fail; | |
22840 | } | |
22841 | { | |
22842 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22843 | } | |
22844 | return resultobj; | |
22845 | fail: | |
22846 | return NULL; | |
22847 | } | |
22848 | ||
22849 | ||
c370783e | 22850 | static PyObject *_wrap_TimeSpan_GetWeeks(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22851 | PyObject *resultobj; |
22852 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22853 | int result; | |
22854 | PyObject * obj0 = 0 ; | |
22855 | char *kwnames[] = { | |
22856 | (char *) "self", NULL | |
22857 | }; | |
22858 | ||
22859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetWeeks",kwnames,&obj0)) goto fail; | |
22860 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22861 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22862 | { | |
22863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22864 | result = (int)((wxTimeSpan const *)arg1)->GetWeeks(); | |
22865 | ||
22866 | wxPyEndAllowThreads(__tstate); | |
22867 | if (PyErr_Occurred()) SWIG_fail; | |
22868 | } | |
c370783e | 22869 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
22870 | return resultobj; |
22871 | fail: | |
22872 | return NULL; | |
22873 | } | |
22874 | ||
22875 | ||
c370783e | 22876 | static PyObject *_wrap_TimeSpan_GetDays(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22877 | PyObject *resultobj; |
22878 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22879 | int result; | |
22880 | PyObject * obj0 = 0 ; | |
22881 | char *kwnames[] = { | |
22882 | (char *) "self", NULL | |
22883 | }; | |
22884 | ||
22885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetDays",kwnames,&obj0)) goto fail; | |
22886 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22888 | { | |
22889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22890 | result = (int)((wxTimeSpan const *)arg1)->GetDays(); | |
22891 | ||
22892 | wxPyEndAllowThreads(__tstate); | |
22893 | if (PyErr_Occurred()) SWIG_fail; | |
22894 | } | |
c370783e | 22895 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
22896 | return resultobj; |
22897 | fail: | |
22898 | return NULL; | |
22899 | } | |
22900 | ||
22901 | ||
c370783e | 22902 | static PyObject *_wrap_TimeSpan_GetHours(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22903 | PyObject *resultobj; |
22904 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22905 | int result; | |
22906 | PyObject * obj0 = 0 ; | |
22907 | char *kwnames[] = { | |
22908 | (char *) "self", NULL | |
22909 | }; | |
22910 | ||
22911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetHours",kwnames,&obj0)) goto fail; | |
22912 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22913 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22914 | { | |
22915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22916 | result = (int)((wxTimeSpan const *)arg1)->GetHours(); | |
22917 | ||
22918 | wxPyEndAllowThreads(__tstate); | |
22919 | if (PyErr_Occurred()) SWIG_fail; | |
22920 | } | |
c370783e | 22921 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
22922 | return resultobj; |
22923 | fail: | |
22924 | return NULL; | |
22925 | } | |
22926 | ||
22927 | ||
c370783e | 22928 | static PyObject *_wrap_TimeSpan_GetMinutes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22929 | PyObject *resultobj; |
22930 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22931 | int result; | |
22932 | PyObject * obj0 = 0 ; | |
22933 | char *kwnames[] = { | |
22934 | (char *) "self", NULL | |
22935 | }; | |
22936 | ||
22937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMinutes",kwnames,&obj0)) goto fail; | |
22938 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22939 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22940 | { | |
22941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22942 | result = (int)((wxTimeSpan const *)arg1)->GetMinutes(); | |
22943 | ||
22944 | wxPyEndAllowThreads(__tstate); | |
22945 | if (PyErr_Occurred()) SWIG_fail; | |
22946 | } | |
c370783e | 22947 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
22948 | return resultobj; |
22949 | fail: | |
22950 | return NULL; | |
22951 | } | |
22952 | ||
22953 | ||
c370783e | 22954 | static PyObject *_wrap_TimeSpan_GetSeconds(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22955 | PyObject *resultobj; |
22956 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22957 | wxLongLong result; | |
22958 | PyObject * obj0 = 0 ; | |
22959 | char *kwnames[] = { | |
22960 | (char *) "self", NULL | |
22961 | }; | |
22962 | ||
22963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetSeconds",kwnames,&obj0)) goto fail; | |
22964 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22965 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22966 | { | |
22967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22968 | result = ((wxTimeSpan const *)arg1)->GetSeconds(); | |
22969 | ||
22970 | wxPyEndAllowThreads(__tstate); | |
22971 | if (PyErr_Occurred()) SWIG_fail; | |
22972 | } | |
22973 | { | |
22974 | PyObject *hi, *lo, *shifter, *shifted; | |
22975 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
22976 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
22977 | shifter = PyLong_FromLong(32); | |
22978 | shifted = PyNumber_Lshift(hi, shifter); | |
22979 | resultobj = PyNumber_Or(shifted, lo); | |
22980 | Py_DECREF(hi); | |
22981 | Py_DECREF(lo); | |
22982 | Py_DECREF(shifter); | |
22983 | Py_DECREF(shifted); | |
22984 | } | |
22985 | return resultobj; | |
22986 | fail: | |
22987 | return NULL; | |
22988 | } | |
22989 | ||
22990 | ||
c370783e | 22991 | static PyObject *_wrap_TimeSpan_GetMilliseconds(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22992 | PyObject *resultobj; |
22993 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22994 | wxLongLong result; | |
22995 | PyObject * obj0 = 0 ; | |
22996 | char *kwnames[] = { | |
22997 | (char *) "self", NULL | |
22998 | }; | |
22999 | ||
23000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMilliseconds",kwnames,&obj0)) goto fail; | |
23001 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
23002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23003 | { | |
23004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23005 | result = ((wxTimeSpan const *)arg1)->GetMilliseconds(); | |
23006 | ||
23007 | wxPyEndAllowThreads(__tstate); | |
23008 | if (PyErr_Occurred()) SWIG_fail; | |
23009 | } | |
23010 | { | |
23011 | PyObject *hi, *lo, *shifter, *shifted; | |
23012 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
23013 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
23014 | shifter = PyLong_FromLong(32); | |
23015 | shifted = PyNumber_Lshift(hi, shifter); | |
23016 | resultobj = PyNumber_Or(shifted, lo); | |
23017 | Py_DECREF(hi); | |
23018 | Py_DECREF(lo); | |
23019 | Py_DECREF(shifter); | |
23020 | Py_DECREF(shifted); | |
23021 | } | |
23022 | return resultobj; | |
23023 | fail: | |
23024 | return NULL; | |
23025 | } | |
23026 | ||
23027 | ||
c370783e | 23028 | static PyObject *_wrap_TimeSpan_Format(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23029 | PyObject *resultobj; |
23030 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
23031 | wxString const &arg2_defvalue = wxPyTimeSpanFormatStr ; | |
23032 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
23033 | wxString result; | |
b411df4a | 23034 | bool temp2 = false ; |
d55e5bfc RD |
23035 | PyObject * obj0 = 0 ; |
23036 | PyObject * obj1 = 0 ; | |
23037 | char *kwnames[] = { | |
23038 | (char *) "self",(char *) "format", NULL | |
23039 | }; | |
23040 | ||
23041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TimeSpan_Format",kwnames,&obj0,&obj1)) goto fail; | |
23042 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
23043 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23044 | if (obj1) { | |
23045 | { | |
23046 | arg2 = wxString_in_helper(obj1); | |
23047 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 23048 | temp2 = true; |
d55e5bfc RD |
23049 | } |
23050 | } | |
23051 | { | |
23052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23053 | result = ((wxTimeSpan const *)arg1)->Format((wxString const &)*arg2); | |
23054 | ||
23055 | wxPyEndAllowThreads(__tstate); | |
23056 | if (PyErr_Occurred()) SWIG_fail; | |
23057 | } | |
23058 | { | |
23059 | #if wxUSE_UNICODE | |
23060 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
23061 | #else | |
23062 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
23063 | #endif | |
23064 | } | |
23065 | { | |
23066 | if (temp2) | |
23067 | delete arg2; | |
23068 | } | |
23069 | return resultobj; | |
23070 | fail: | |
23071 | { | |
23072 | if (temp2) | |
23073 | delete arg2; | |
23074 | } | |
23075 | return NULL; | |
23076 | } | |
23077 | ||
23078 | ||
c370783e | 23079 | static PyObject * TimeSpan_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
23080 | PyObject *obj; |
23081 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23082 | SWIG_TypeClientData(SWIGTYPE_p_wxTimeSpan, obj); | |
23083 | Py_INCREF(obj); | |
23084 | return Py_BuildValue((char *)""); | |
23085 | } | |
c370783e | 23086 | static PyObject *_wrap_new_DateSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23087 | PyObject *resultobj; |
23088 | int arg1 = (int) 0 ; | |
23089 | int arg2 = (int) 0 ; | |
23090 | int arg3 = (int) 0 ; | |
23091 | int arg4 = (int) 0 ; | |
23092 | wxDateSpan *result; | |
23093 | PyObject * obj0 = 0 ; | |
23094 | PyObject * obj1 = 0 ; | |
23095 | PyObject * obj2 = 0 ; | |
23096 | PyObject * obj3 = 0 ; | |
23097 | char *kwnames[] = { | |
23098 | (char *) "years",(char *) "months",(char *) "weeks",(char *) "days", NULL | |
23099 | }; | |
23100 | ||
23101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_DateSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
23102 | if (obj0) { | |
c370783e | 23103 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
23104 | if (PyErr_Occurred()) SWIG_fail; |
23105 | } | |
23106 | if (obj1) { | |
c370783e | 23107 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
23108 | if (PyErr_Occurred()) SWIG_fail; |
23109 | } | |
23110 | if (obj2) { | |
c370783e | 23111 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
23112 | if (PyErr_Occurred()) SWIG_fail; |
23113 | } | |
23114 | if (obj3) { | |
c370783e | 23115 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
23116 | if (PyErr_Occurred()) SWIG_fail; |
23117 | } | |
23118 | { | |
23119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23120 | result = (wxDateSpan *)new wxDateSpan(arg1,arg2,arg3,arg4); | |
23121 | ||
23122 | wxPyEndAllowThreads(__tstate); | |
23123 | if (PyErr_Occurred()) SWIG_fail; | |
23124 | } | |
23125 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1); | |
23126 | return resultobj; | |
23127 | fail: | |
23128 | return NULL; | |
23129 | } | |
23130 | ||
23131 | ||
c370783e | 23132 | static PyObject *_wrap_delete_DateSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23133 | PyObject *resultobj; |
23134 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23135 | PyObject * obj0 = 0 ; | |
23136 | char *kwnames[] = { | |
23137 | (char *) "self", NULL | |
23138 | }; | |
23139 | ||
23140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateSpan",kwnames,&obj0)) goto fail; | |
23141 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23143 | { | |
23144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23145 | delete arg1; | |
23146 | ||
23147 | wxPyEndAllowThreads(__tstate); | |
23148 | if (PyErr_Occurred()) SWIG_fail; | |
23149 | } | |
23150 | Py_INCREF(Py_None); resultobj = Py_None; | |
23151 | return resultobj; | |
23152 | fail: | |
23153 | return NULL; | |
23154 | } | |
23155 | ||
23156 | ||
c370783e | 23157 | static PyObject *_wrap_DateSpan_Days(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23158 | PyObject *resultobj; |
23159 | int arg1 ; | |
23160 | wxDateSpan result; | |
23161 | PyObject * obj0 = 0 ; | |
23162 | char *kwnames[] = { | |
23163 | (char *) "days", NULL | |
23164 | }; | |
23165 | ||
23166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Days",kwnames,&obj0)) goto fail; | |
c370783e | 23167 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
23168 | if (PyErr_Occurred()) SWIG_fail; |
23169 | { | |
23170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23171 | result = wxDateSpan::Days(arg1); | |
23172 | ||
23173 | wxPyEndAllowThreads(__tstate); | |
23174 | if (PyErr_Occurred()) SWIG_fail; | |
23175 | } | |
23176 | { | |
23177 | wxDateSpan * resultptr; | |
23178 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23179 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23180 | } | |
23181 | return resultobj; | |
23182 | fail: | |
23183 | return NULL; | |
23184 | } | |
23185 | ||
23186 | ||
c370783e | 23187 | static PyObject *_wrap_DateSpan_Day(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23188 | PyObject *resultobj; |
23189 | wxDateSpan result; | |
23190 | char *kwnames[] = { | |
23191 | NULL | |
23192 | }; | |
23193 | ||
23194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Day",kwnames)) goto fail; | |
23195 | { | |
23196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23197 | result = wxDateSpan::Day(); | |
23198 | ||
23199 | wxPyEndAllowThreads(__tstate); | |
23200 | if (PyErr_Occurred()) SWIG_fail; | |
23201 | } | |
23202 | { | |
23203 | wxDateSpan * resultptr; | |
23204 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23205 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23206 | } | |
23207 | return resultobj; | |
23208 | fail: | |
23209 | return NULL; | |
23210 | } | |
23211 | ||
23212 | ||
c370783e | 23213 | static PyObject *_wrap_DateSpan_Weeks(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23214 | PyObject *resultobj; |
23215 | int arg1 ; | |
23216 | wxDateSpan result; | |
23217 | PyObject * obj0 = 0 ; | |
23218 | char *kwnames[] = { | |
23219 | (char *) "weeks", NULL | |
23220 | }; | |
23221 | ||
23222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Weeks",kwnames,&obj0)) goto fail; | |
c370783e | 23223 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
23224 | if (PyErr_Occurred()) SWIG_fail; |
23225 | { | |
23226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23227 | result = wxDateSpan::Weeks(arg1); | |
23228 | ||
23229 | wxPyEndAllowThreads(__tstate); | |
23230 | if (PyErr_Occurred()) SWIG_fail; | |
23231 | } | |
23232 | { | |
23233 | wxDateSpan * resultptr; | |
23234 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23235 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23236 | } | |
23237 | return resultobj; | |
23238 | fail: | |
23239 | return NULL; | |
23240 | } | |
23241 | ||
23242 | ||
c370783e | 23243 | static PyObject *_wrap_DateSpan_Week(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23244 | PyObject *resultobj; |
23245 | wxDateSpan result; | |
23246 | char *kwnames[] = { | |
23247 | NULL | |
23248 | }; | |
23249 | ||
23250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Week",kwnames)) goto fail; | |
23251 | { | |
23252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23253 | result = wxDateSpan::Week(); | |
23254 | ||
23255 | wxPyEndAllowThreads(__tstate); | |
23256 | if (PyErr_Occurred()) SWIG_fail; | |
23257 | } | |
23258 | { | |
23259 | wxDateSpan * resultptr; | |
23260 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23261 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23262 | } | |
23263 | return resultobj; | |
23264 | fail: | |
23265 | return NULL; | |
23266 | } | |
23267 | ||
23268 | ||
c370783e | 23269 | static PyObject *_wrap_DateSpan_Months(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23270 | PyObject *resultobj; |
23271 | int arg1 ; | |
23272 | wxDateSpan result; | |
23273 | PyObject * obj0 = 0 ; | |
23274 | char *kwnames[] = { | |
23275 | (char *) "mon", NULL | |
23276 | }; | |
23277 | ||
23278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Months",kwnames,&obj0)) goto fail; | |
c370783e | 23279 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
23280 | if (PyErr_Occurred()) SWIG_fail; |
23281 | { | |
23282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23283 | result = wxDateSpan::Months(arg1); | |
23284 | ||
23285 | wxPyEndAllowThreads(__tstate); | |
23286 | if (PyErr_Occurred()) SWIG_fail; | |
23287 | } | |
23288 | { | |
23289 | wxDateSpan * resultptr; | |
23290 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23291 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23292 | } | |
23293 | return resultobj; | |
23294 | fail: | |
23295 | return NULL; | |
23296 | } | |
23297 | ||
23298 | ||
c370783e | 23299 | static PyObject *_wrap_DateSpan_Month(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23300 | PyObject *resultobj; |
23301 | wxDateSpan result; | |
23302 | char *kwnames[] = { | |
23303 | NULL | |
23304 | }; | |
23305 | ||
23306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Month",kwnames)) goto fail; | |
23307 | { | |
23308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23309 | result = wxDateSpan::Month(); | |
23310 | ||
23311 | wxPyEndAllowThreads(__tstate); | |
23312 | if (PyErr_Occurred()) SWIG_fail; | |
23313 | } | |
23314 | { | |
23315 | wxDateSpan * resultptr; | |
23316 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23317 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23318 | } | |
23319 | return resultobj; | |
23320 | fail: | |
23321 | return NULL; | |
23322 | } | |
23323 | ||
23324 | ||
c370783e | 23325 | static PyObject *_wrap_DateSpan_Years(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23326 | PyObject *resultobj; |
23327 | int arg1 ; | |
23328 | wxDateSpan result; | |
23329 | PyObject * obj0 = 0 ; | |
23330 | char *kwnames[] = { | |
23331 | (char *) "years", NULL | |
23332 | }; | |
23333 | ||
23334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Years",kwnames,&obj0)) goto fail; | |
c370783e | 23335 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
23336 | if (PyErr_Occurred()) SWIG_fail; |
23337 | { | |
23338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23339 | result = wxDateSpan::Years(arg1); | |
23340 | ||
23341 | wxPyEndAllowThreads(__tstate); | |
23342 | if (PyErr_Occurred()) SWIG_fail; | |
23343 | } | |
23344 | { | |
23345 | wxDateSpan * resultptr; | |
23346 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23347 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23348 | } | |
23349 | return resultobj; | |
23350 | fail: | |
23351 | return NULL; | |
23352 | } | |
23353 | ||
23354 | ||
c370783e | 23355 | static PyObject *_wrap_DateSpan_Year(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23356 | PyObject *resultobj; |
23357 | wxDateSpan result; | |
23358 | char *kwnames[] = { | |
23359 | NULL | |
23360 | }; | |
23361 | ||
23362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Year",kwnames)) goto fail; | |
23363 | { | |
23364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23365 | result = wxDateSpan::Year(); | |
23366 | ||
23367 | wxPyEndAllowThreads(__tstate); | |
23368 | if (PyErr_Occurred()) SWIG_fail; | |
23369 | } | |
23370 | { | |
23371 | wxDateSpan * resultptr; | |
23372 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23373 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23374 | } | |
23375 | return resultobj; | |
23376 | fail: | |
23377 | return NULL; | |
23378 | } | |
23379 | ||
23380 | ||
c370783e | 23381 | static PyObject *_wrap_DateSpan_SetYears(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23382 | PyObject *resultobj; |
23383 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23384 | int arg2 ; | |
23385 | wxDateSpan *result; | |
23386 | PyObject * obj0 = 0 ; | |
23387 | PyObject * obj1 = 0 ; | |
23388 | char *kwnames[] = { | |
23389 | (char *) "self",(char *) "n", NULL | |
23390 | }; | |
23391 | ||
23392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetYears",kwnames,&obj0,&obj1)) goto fail; | |
23393 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23394 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 23395 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
23396 | if (PyErr_Occurred()) SWIG_fail; |
23397 | { | |
23398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23399 | { | |
23400 | wxDateSpan &_result_ref = (arg1)->SetYears(arg2); | |
23401 | result = (wxDateSpan *) &_result_ref; | |
23402 | } | |
23403 | ||
23404 | wxPyEndAllowThreads(__tstate); | |
23405 | if (PyErr_Occurred()) SWIG_fail; | |
23406 | } | |
23407 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23408 | return resultobj; | |
23409 | fail: | |
23410 | return NULL; | |
23411 | } | |
23412 | ||
23413 | ||
c370783e | 23414 | static PyObject *_wrap_DateSpan_SetMonths(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23415 | PyObject *resultobj; |
23416 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23417 | int arg2 ; | |
23418 | wxDateSpan *result; | |
23419 | PyObject * obj0 = 0 ; | |
23420 | PyObject * obj1 = 0 ; | |
23421 | char *kwnames[] = { | |
23422 | (char *) "self",(char *) "n", NULL | |
23423 | }; | |
23424 | ||
23425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetMonths",kwnames,&obj0,&obj1)) goto fail; | |
23426 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23427 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 23428 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
23429 | if (PyErr_Occurred()) SWIG_fail; |
23430 | { | |
23431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23432 | { | |
23433 | wxDateSpan &_result_ref = (arg1)->SetMonths(arg2); | |
23434 | result = (wxDateSpan *) &_result_ref; | |
23435 | } | |
23436 | ||
23437 | wxPyEndAllowThreads(__tstate); | |
23438 | if (PyErr_Occurred()) SWIG_fail; | |
23439 | } | |
23440 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23441 | return resultobj; | |
23442 | fail: | |
23443 | return NULL; | |
23444 | } | |
23445 | ||
23446 | ||
c370783e | 23447 | static PyObject *_wrap_DateSpan_SetWeeks(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23448 | PyObject *resultobj; |
23449 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23450 | int arg2 ; | |
23451 | wxDateSpan *result; | |
23452 | PyObject * obj0 = 0 ; | |
23453 | PyObject * obj1 = 0 ; | |
23454 | char *kwnames[] = { | |
23455 | (char *) "self",(char *) "n", NULL | |
23456 | }; | |
23457 | ||
23458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetWeeks",kwnames,&obj0,&obj1)) goto fail; | |
23459 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23460 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 23461 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
23462 | if (PyErr_Occurred()) SWIG_fail; |
23463 | { | |
23464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23465 | { | |
23466 | wxDateSpan &_result_ref = (arg1)->SetWeeks(arg2); | |
23467 | result = (wxDateSpan *) &_result_ref; | |
23468 | } | |
23469 | ||
23470 | wxPyEndAllowThreads(__tstate); | |
23471 | if (PyErr_Occurred()) SWIG_fail; | |
23472 | } | |
23473 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23474 | return resultobj; | |
23475 | fail: | |
23476 | return NULL; | |
23477 | } | |
23478 | ||
23479 | ||
c370783e | 23480 | static PyObject *_wrap_DateSpan_SetDays(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23481 | PyObject *resultobj; |
23482 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23483 | int arg2 ; | |
23484 | wxDateSpan *result; | |
23485 | PyObject * obj0 = 0 ; | |
23486 | PyObject * obj1 = 0 ; | |
23487 | char *kwnames[] = { | |
23488 | (char *) "self",(char *) "n", NULL | |
23489 | }; | |
23490 | ||
23491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetDays",kwnames,&obj0,&obj1)) goto fail; | |
23492 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23493 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 23494 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
23495 | if (PyErr_Occurred()) SWIG_fail; |
23496 | { | |
23497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23498 | { | |
23499 | wxDateSpan &_result_ref = (arg1)->SetDays(arg2); | |
23500 | result = (wxDateSpan *) &_result_ref; | |
23501 | } | |
23502 | ||
23503 | wxPyEndAllowThreads(__tstate); | |
23504 | if (PyErr_Occurred()) SWIG_fail; | |
23505 | } | |
23506 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23507 | return resultobj; | |
23508 | fail: | |
23509 | return NULL; | |
23510 | } | |
23511 | ||
23512 | ||
c370783e | 23513 | static PyObject *_wrap_DateSpan_GetYears(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23514 | PyObject *resultobj; |
23515 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23516 | int result; | |
23517 | PyObject * obj0 = 0 ; | |
23518 | char *kwnames[] = { | |
23519 | (char *) "self", NULL | |
23520 | }; | |
23521 | ||
23522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetYears",kwnames,&obj0)) goto fail; | |
23523 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23524 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23525 | { | |
23526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23527 | result = (int)((wxDateSpan const *)arg1)->GetYears(); | |
23528 | ||
23529 | wxPyEndAllowThreads(__tstate); | |
23530 | if (PyErr_Occurred()) SWIG_fail; | |
23531 | } | |
c370783e | 23532 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
23533 | return resultobj; |
23534 | fail: | |
23535 | return NULL; | |
23536 | } | |
23537 | ||
23538 | ||
c370783e | 23539 | static PyObject *_wrap_DateSpan_GetMonths(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23540 | PyObject *resultobj; |
23541 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23542 | int result; | |
23543 | PyObject * obj0 = 0 ; | |
23544 | char *kwnames[] = { | |
23545 | (char *) "self", NULL | |
23546 | }; | |
23547 | ||
23548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetMonths",kwnames,&obj0)) goto fail; | |
23549 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23551 | { | |
23552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23553 | result = (int)((wxDateSpan const *)arg1)->GetMonths(); | |
23554 | ||
23555 | wxPyEndAllowThreads(__tstate); | |
23556 | if (PyErr_Occurred()) SWIG_fail; | |
23557 | } | |
c370783e | 23558 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
23559 | return resultobj; |
23560 | fail: | |
23561 | return NULL; | |
23562 | } | |
23563 | ||
23564 | ||
c370783e | 23565 | static PyObject *_wrap_DateSpan_GetWeeks(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23566 | PyObject *resultobj; |
23567 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23568 | int result; | |
23569 | PyObject * obj0 = 0 ; | |
23570 | char *kwnames[] = { | |
23571 | (char *) "self", NULL | |
23572 | }; | |
23573 | ||
23574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetWeeks",kwnames,&obj0)) goto fail; | |
23575 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23576 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23577 | { | |
23578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23579 | result = (int)((wxDateSpan const *)arg1)->GetWeeks(); | |
23580 | ||
23581 | wxPyEndAllowThreads(__tstate); | |
23582 | if (PyErr_Occurred()) SWIG_fail; | |
23583 | } | |
c370783e | 23584 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
23585 | return resultobj; |
23586 | fail: | |
23587 | return NULL; | |
23588 | } | |
23589 | ||
23590 | ||
c370783e | 23591 | static PyObject *_wrap_DateSpan_GetDays(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23592 | PyObject *resultobj; |
23593 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23594 | int result; | |
23595 | PyObject * obj0 = 0 ; | |
23596 | char *kwnames[] = { | |
23597 | (char *) "self", NULL | |
23598 | }; | |
23599 | ||
23600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetDays",kwnames,&obj0)) goto fail; | |
23601 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23602 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23603 | { | |
23604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23605 | result = (int)((wxDateSpan const *)arg1)->GetDays(); | |
23606 | ||
23607 | wxPyEndAllowThreads(__tstate); | |
23608 | if (PyErr_Occurred()) SWIG_fail; | |
23609 | } | |
c370783e | 23610 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
23611 | return resultobj; |
23612 | fail: | |
23613 | return NULL; | |
23614 | } | |
23615 | ||
23616 | ||
c370783e | 23617 | static PyObject *_wrap_DateSpan_GetTotalDays(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23618 | PyObject *resultobj; |
23619 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23620 | int result; | |
23621 | PyObject * obj0 = 0 ; | |
23622 | char *kwnames[] = { | |
23623 | (char *) "self", NULL | |
23624 | }; | |
23625 | ||
23626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetTotalDays",kwnames,&obj0)) goto fail; | |
23627 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23628 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23629 | { | |
23630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23631 | result = (int)((wxDateSpan const *)arg1)->GetTotalDays(); | |
23632 | ||
23633 | wxPyEndAllowThreads(__tstate); | |
23634 | if (PyErr_Occurred()) SWIG_fail; | |
23635 | } | |
c370783e | 23636 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
23637 | return resultobj; |
23638 | fail: | |
23639 | return NULL; | |
23640 | } | |
23641 | ||
23642 | ||
c370783e | 23643 | static PyObject *_wrap_DateSpan_Add(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23644 | PyObject *resultobj; |
23645 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23646 | wxDateSpan *arg2 = 0 ; | |
23647 | wxDateSpan *result; | |
23648 | PyObject * obj0 = 0 ; | |
23649 | PyObject * obj1 = 0 ; | |
23650 | char *kwnames[] = { | |
23651 | (char *) "self",(char *) "other", NULL | |
23652 | }; | |
23653 | ||
23654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Add",kwnames,&obj0,&obj1)) goto fail; | |
23655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23657 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23658 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23659 | SWIG_fail; | |
23660 | if (arg2 == NULL) { | |
23661 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23662 | SWIG_fail; | |
23663 | } | |
23664 | { | |
23665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23666 | { | |
23667 | wxDateSpan &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2); | |
23668 | result = (wxDateSpan *) &_result_ref; | |
23669 | } | |
23670 | ||
23671 | wxPyEndAllowThreads(__tstate); | |
23672 | if (PyErr_Occurred()) SWIG_fail; | |
23673 | } | |
23674 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23675 | return resultobj; | |
23676 | fail: | |
23677 | return NULL; | |
23678 | } | |
23679 | ||
23680 | ||
c370783e | 23681 | static PyObject *_wrap_DateSpan_Subtract(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23682 | PyObject *resultobj; |
23683 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23684 | wxDateSpan *arg2 = 0 ; | |
23685 | wxDateSpan *result; | |
23686 | PyObject * obj0 = 0 ; | |
23687 | PyObject * obj1 = 0 ; | |
23688 | char *kwnames[] = { | |
23689 | (char *) "self",(char *) "other", NULL | |
23690 | }; | |
23691 | ||
23692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
23693 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23694 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23695 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23696 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23697 | SWIG_fail; | |
23698 | if (arg2 == NULL) { | |
23699 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23700 | SWIG_fail; | |
23701 | } | |
23702 | { | |
23703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23704 | { | |
23705 | wxDateSpan &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2); | |
23706 | result = (wxDateSpan *) &_result_ref; | |
23707 | } | |
23708 | ||
23709 | wxPyEndAllowThreads(__tstate); | |
23710 | if (PyErr_Occurred()) SWIG_fail; | |
23711 | } | |
23712 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23713 | return resultobj; | |
23714 | fail: | |
23715 | return NULL; | |
23716 | } | |
23717 | ||
23718 | ||
c370783e | 23719 | static PyObject *_wrap_DateSpan_Neg(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23720 | PyObject *resultobj; |
23721 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23722 | wxDateSpan *result; | |
23723 | PyObject * obj0 = 0 ; | |
23724 | char *kwnames[] = { | |
23725 | (char *) "self", NULL | |
23726 | }; | |
23727 | ||
23728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Neg",kwnames,&obj0)) goto fail; | |
23729 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23730 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23731 | { | |
23732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23733 | { | |
23734 | wxDateSpan &_result_ref = (arg1)->Neg(); | |
23735 | result = (wxDateSpan *) &_result_ref; | |
23736 | } | |
23737 | ||
23738 | wxPyEndAllowThreads(__tstate); | |
23739 | if (PyErr_Occurred()) SWIG_fail; | |
23740 | } | |
23741 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23742 | return resultobj; | |
23743 | fail: | |
23744 | return NULL; | |
23745 | } | |
23746 | ||
23747 | ||
c370783e | 23748 | static PyObject *_wrap_DateSpan_Multiply(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23749 | PyObject *resultobj; |
23750 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23751 | int arg2 ; | |
23752 | wxDateSpan *result; | |
23753 | PyObject * obj0 = 0 ; | |
23754 | PyObject * obj1 = 0 ; | |
23755 | char *kwnames[] = { | |
23756 | (char *) "self",(char *) "factor", NULL | |
23757 | }; | |
23758 | ||
23759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Multiply",kwnames,&obj0,&obj1)) goto fail; | |
23760 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23761 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 23762 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
23763 | if (PyErr_Occurred()) SWIG_fail; |
23764 | { | |
23765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23766 | { | |
23767 | wxDateSpan &_result_ref = (arg1)->Multiply(arg2); | |
23768 | result = (wxDateSpan *) &_result_ref; | |
23769 | } | |
23770 | ||
23771 | wxPyEndAllowThreads(__tstate); | |
23772 | if (PyErr_Occurred()) SWIG_fail; | |
23773 | } | |
23774 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23775 | return resultobj; | |
23776 | fail: | |
23777 | return NULL; | |
23778 | } | |
23779 | ||
23780 | ||
c370783e | 23781 | static PyObject *_wrap_DateSpan___iadd__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23782 | PyObject *resultobj; |
23783 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23784 | wxDateSpan *arg2 = 0 ; | |
23785 | wxDateSpan *result; | |
23786 | PyObject * obj0 = 0 ; | |
23787 | PyObject * obj1 = 0 ; | |
23788 | char *kwnames[] = { | |
23789 | (char *) "self",(char *) "other", NULL | |
23790 | }; | |
23791 | ||
23792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
23793 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
c370783e | 23794 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
23795 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, |
23796 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23797 | SWIG_fail; | |
23798 | if (arg2 == NULL) { | |
23799 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23800 | SWIG_fail; | |
23801 | } | |
23802 | { | |
23803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23804 | { | |
23805 | wxDateSpan &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2); | |
23806 | result = (wxDateSpan *) &_result_ref; | |
23807 | } | |
23808 | ||
23809 | wxPyEndAllowThreads(__tstate); | |
23810 | if (PyErr_Occurred()) SWIG_fail; | |
23811 | } | |
c370783e | 23812 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1); |
d55e5bfc RD |
23813 | return resultobj; |
23814 | fail: | |
23815 | return NULL; | |
23816 | } | |
23817 | ||
23818 | ||
c370783e | 23819 | static PyObject *_wrap_DateSpan___isub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23820 | PyObject *resultobj; |
23821 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23822 | wxDateSpan *arg2 = 0 ; | |
23823 | wxDateSpan *result; | |
23824 | PyObject * obj0 = 0 ; | |
23825 | PyObject * obj1 = 0 ; | |
23826 | char *kwnames[] = { | |
23827 | (char *) "self",(char *) "other", NULL | |
23828 | }; | |
23829 | ||
23830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___isub__",kwnames,&obj0,&obj1)) goto fail; | |
23831 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
c370783e | 23832 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
23833 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, |
23834 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23835 | SWIG_fail; | |
23836 | if (arg2 == NULL) { | |
23837 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23838 | SWIG_fail; | |
23839 | } | |
23840 | { | |
23841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23842 | { | |
23843 | wxDateSpan &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2); | |
23844 | result = (wxDateSpan *) &_result_ref; | |
23845 | } | |
23846 | ||
23847 | wxPyEndAllowThreads(__tstate); | |
23848 | if (PyErr_Occurred()) SWIG_fail; | |
23849 | } | |
c370783e | 23850 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1); |
d55e5bfc RD |
23851 | return resultobj; |
23852 | fail: | |
23853 | return NULL; | |
23854 | } | |
23855 | ||
23856 | ||
c370783e | 23857 | static PyObject *_wrap_DateSpan___neg__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23858 | PyObject *resultobj; |
23859 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23860 | wxDateSpan *result; | |
23861 | PyObject * obj0 = 0 ; | |
23862 | char *kwnames[] = { | |
23863 | (char *) "self", NULL | |
23864 | }; | |
23865 | ||
23866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan___neg__",kwnames,&obj0)) goto fail; | |
23867 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23868 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23869 | { | |
23870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23871 | { | |
23872 | wxDateSpan &_result_ref = (arg1)->operator -(); | |
23873 | result = (wxDateSpan *) &_result_ref; | |
23874 | } | |
23875 | ||
23876 | wxPyEndAllowThreads(__tstate); | |
23877 | if (PyErr_Occurred()) SWIG_fail; | |
23878 | } | |
23879 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23880 | return resultobj; | |
23881 | fail: | |
23882 | return NULL; | |
23883 | } | |
23884 | ||
23885 | ||
c370783e | 23886 | static PyObject *_wrap_DateSpan___imul__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23887 | PyObject *resultobj; |
23888 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23889 | int arg2 ; | |
23890 | wxDateSpan *result; | |
23891 | PyObject * obj0 = 0 ; | |
23892 | PyObject * obj1 = 0 ; | |
23893 | char *kwnames[] = { | |
23894 | (char *) "self",(char *) "factor", NULL | |
23895 | }; | |
23896 | ||
23897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___imul__",kwnames,&obj0,&obj1)) goto fail; | |
23898 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
c370783e RD |
23899 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
23900 | arg2 = (int)SWIG_As_int(obj1); | |
d55e5bfc RD |
23901 | if (PyErr_Occurred()) SWIG_fail; |
23902 | { | |
23903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23904 | { | |
23905 | wxDateSpan &_result_ref = (arg1)->operator *=(arg2); | |
23906 | result = (wxDateSpan *) &_result_ref; | |
23907 | } | |
23908 | ||
23909 | wxPyEndAllowThreads(__tstate); | |
23910 | if (PyErr_Occurred()) SWIG_fail; | |
23911 | } | |
c370783e | 23912 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1); |
d55e5bfc RD |
23913 | return resultobj; |
23914 | fail: | |
23915 | return NULL; | |
23916 | } | |
23917 | ||
23918 | ||
c370783e | 23919 | static PyObject *_wrap_DateSpan___add__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23920 | PyObject *resultobj; |
23921 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23922 | wxDateSpan *arg2 = 0 ; | |
23923 | wxDateSpan result; | |
23924 | PyObject * obj0 = 0 ; | |
23925 | PyObject * obj1 = 0 ; | |
23926 | char *kwnames[] = { | |
23927 | (char *) "self",(char *) "other", NULL | |
23928 | }; | |
23929 | ||
23930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___add__",kwnames,&obj0,&obj1)) goto fail; | |
23931 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23932 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23933 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23934 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23935 | SWIG_fail; | |
23936 | if (arg2 == NULL) { | |
23937 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23938 | SWIG_fail; | |
23939 | } | |
23940 | { | |
23941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23942 | result = wxDateSpan___add__(arg1,(wxDateSpan const &)*arg2); | |
23943 | ||
23944 | wxPyEndAllowThreads(__tstate); | |
23945 | if (PyErr_Occurred()) SWIG_fail; | |
23946 | } | |
23947 | { | |
23948 | wxDateSpan * resultptr; | |
23949 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23950 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23951 | } | |
23952 | return resultobj; | |
23953 | fail: | |
23954 | return NULL; | |
23955 | } | |
23956 | ||
23957 | ||
c370783e | 23958 | static PyObject *_wrap_DateSpan___sub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23959 | PyObject *resultobj; |
23960 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23961 | wxDateSpan *arg2 = 0 ; | |
23962 | wxDateSpan result; | |
23963 | PyObject * obj0 = 0 ; | |
23964 | PyObject * obj1 = 0 ; | |
23965 | char *kwnames[] = { | |
23966 | (char *) "self",(char *) "other", NULL | |
23967 | }; | |
23968 | ||
23969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___sub__",kwnames,&obj0,&obj1)) goto fail; | |
23970 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23972 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23973 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23974 | SWIG_fail; | |
23975 | if (arg2 == NULL) { | |
23976 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23977 | SWIG_fail; | |
23978 | } | |
23979 | { | |
23980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23981 | result = wxDateSpan___sub__(arg1,(wxDateSpan const &)*arg2); | |
23982 | ||
23983 | wxPyEndAllowThreads(__tstate); | |
23984 | if (PyErr_Occurred()) SWIG_fail; | |
23985 | } | |
23986 | { | |
23987 | wxDateSpan * resultptr; | |
23988 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23989 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23990 | } | |
23991 | return resultobj; | |
23992 | fail: | |
23993 | return NULL; | |
23994 | } | |
23995 | ||
23996 | ||
c370783e | 23997 | static PyObject *_wrap_DateSpan___mul__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23998 | PyObject *resultobj; |
23999 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
24000 | int arg2 ; | |
24001 | wxDateSpan result; | |
24002 | PyObject * obj0 = 0 ; | |
24003 | PyObject * obj1 = 0 ; | |
24004 | char *kwnames[] = { | |
24005 | (char *) "self",(char *) "n", NULL | |
24006 | }; | |
24007 | ||
24008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___mul__",kwnames,&obj0,&obj1)) goto fail; | |
24009 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
24010 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 24011 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
24012 | if (PyErr_Occurred()) SWIG_fail; |
24013 | { | |
24014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24015 | result = wxDateSpan___mul__(arg1,arg2); | |
24016 | ||
24017 | wxPyEndAllowThreads(__tstate); | |
24018 | if (PyErr_Occurred()) SWIG_fail; | |
24019 | } | |
24020 | { | |
24021 | wxDateSpan * resultptr; | |
24022 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
24023 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
24024 | } | |
24025 | return resultobj; | |
24026 | fail: | |
24027 | return NULL; | |
24028 | } | |
24029 | ||
24030 | ||
c370783e | 24031 | static PyObject *_wrap_DateSpan___rmul__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24032 | PyObject *resultobj; |
24033 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
24034 | int arg2 ; | |
24035 | wxDateSpan result; | |
24036 | PyObject * obj0 = 0 ; | |
24037 | PyObject * obj1 = 0 ; | |
24038 | char *kwnames[] = { | |
24039 | (char *) "self",(char *) "n", NULL | |
24040 | }; | |
24041 | ||
24042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___rmul__",kwnames,&obj0,&obj1)) goto fail; | |
24043 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
24044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 24045 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
24046 | if (PyErr_Occurred()) SWIG_fail; |
24047 | { | |
24048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24049 | result = wxDateSpan___rmul__(arg1,arg2); | |
24050 | ||
24051 | wxPyEndAllowThreads(__tstate); | |
24052 | if (PyErr_Occurred()) SWIG_fail; | |
24053 | } | |
24054 | { | |
24055 | wxDateSpan * resultptr; | |
24056 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
24057 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
24058 | } | |
24059 | return resultobj; | |
24060 | fail: | |
24061 | return NULL; | |
24062 | } | |
24063 | ||
24064 | ||
c370783e | 24065 | static PyObject *_wrap_DateSpan___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24066 | PyObject *resultobj; |
24067 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
24068 | wxDateSpan *arg2 = (wxDateSpan *) 0 ; | |
24069 | bool result; | |
24070 | PyObject * obj0 = 0 ; | |
24071 | PyObject * obj1 = 0 ; | |
24072 | char *kwnames[] = { | |
24073 | (char *) "self",(char *) "other", NULL | |
24074 | }; | |
24075 | ||
24076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
24077 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
24078 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24079 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
24080 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24081 | { | |
24082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24083 | result = (bool)wxDateSpan___eq__(arg1,(wxDateSpan const *)arg2); | |
24084 | ||
24085 | wxPyEndAllowThreads(__tstate); | |
24086 | if (PyErr_Occurred()) SWIG_fail; | |
24087 | } | |
24088 | { | |
24089 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24090 | } | |
24091 | return resultobj; | |
24092 | fail: | |
24093 | return NULL; | |
24094 | } | |
24095 | ||
24096 | ||
c370783e | 24097 | static PyObject *_wrap_DateSpan___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24098 | PyObject *resultobj; |
24099 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
24100 | wxDateSpan *arg2 = (wxDateSpan *) 0 ; | |
24101 | bool result; | |
24102 | PyObject * obj0 = 0 ; | |
24103 | PyObject * obj1 = 0 ; | |
24104 | char *kwnames[] = { | |
24105 | (char *) "self",(char *) "other", NULL | |
24106 | }; | |
24107 | ||
24108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
24109 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
24110 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24111 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
24112 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24113 | { | |
24114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24115 | result = (bool)wxDateSpan___ne__(arg1,(wxDateSpan const *)arg2); | |
24116 | ||
24117 | wxPyEndAllowThreads(__tstate); | |
24118 | if (PyErr_Occurred()) SWIG_fail; | |
24119 | } | |
24120 | { | |
24121 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24122 | } | |
24123 | return resultobj; | |
24124 | fail: | |
24125 | return NULL; | |
24126 | } | |
24127 | ||
24128 | ||
c370783e | 24129 | static PyObject * DateSpan_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
24130 | PyObject *obj; |
24131 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24132 | SWIG_TypeClientData(SWIGTYPE_p_wxDateSpan, obj); | |
24133 | Py_INCREF(obj); | |
24134 | return Py_BuildValue((char *)""); | |
24135 | } | |
c370783e | 24136 | static PyObject *_wrap_GetLocalTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24137 | PyObject *resultobj; |
24138 | long result; | |
24139 | char *kwnames[] = { | |
24140 | NULL | |
24141 | }; | |
24142 | ||
24143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTime",kwnames)) goto fail; | |
24144 | { | |
24145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24146 | result = (long)wxGetLocalTime(); | |
24147 | ||
24148 | wxPyEndAllowThreads(__tstate); | |
24149 | if (PyErr_Occurred()) SWIG_fail; | |
24150 | } | |
c370783e | 24151 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
24152 | return resultobj; |
24153 | fail: | |
24154 | return NULL; | |
24155 | } | |
24156 | ||
24157 | ||
c370783e | 24158 | static PyObject *_wrap_GetUTCTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24159 | PyObject *resultobj; |
24160 | long result; | |
24161 | char *kwnames[] = { | |
24162 | NULL | |
24163 | }; | |
24164 | ||
24165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUTCTime",kwnames)) goto fail; | |
24166 | { | |
24167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24168 | result = (long)wxGetUTCTime(); | |
24169 | ||
24170 | wxPyEndAllowThreads(__tstate); | |
24171 | if (PyErr_Occurred()) SWIG_fail; | |
24172 | } | |
c370783e | 24173 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
24174 | return resultobj; |
24175 | fail: | |
24176 | return NULL; | |
24177 | } | |
24178 | ||
24179 | ||
c370783e | 24180 | static PyObject *_wrap_GetCurrentTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24181 | PyObject *resultobj; |
24182 | long result; | |
24183 | char *kwnames[] = { | |
24184 | NULL | |
24185 | }; | |
24186 | ||
24187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentTime",kwnames)) goto fail; | |
24188 | { | |
24189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24190 | result = (long)wxGetCurrentTime(); | |
24191 | ||
24192 | wxPyEndAllowThreads(__tstate); | |
24193 | if (PyErr_Occurred()) SWIG_fail; | |
24194 | } | |
c370783e | 24195 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
24196 | return resultobj; |
24197 | fail: | |
24198 | return NULL; | |
24199 | } | |
24200 | ||
24201 | ||
c370783e | 24202 | static PyObject *_wrap_GetLocalTimeMillis(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24203 | PyObject *resultobj; |
24204 | wxLongLong result; | |
24205 | char *kwnames[] = { | |
24206 | NULL | |
24207 | }; | |
24208 | ||
24209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTimeMillis",kwnames)) goto fail; | |
24210 | { | |
24211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24212 | result = wxGetLocalTimeMillis(); | |
24213 | ||
24214 | wxPyEndAllowThreads(__tstate); | |
24215 | if (PyErr_Occurred()) SWIG_fail; | |
24216 | } | |
24217 | { | |
24218 | PyObject *hi, *lo, *shifter, *shifted; | |
24219 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
24220 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
24221 | shifter = PyLong_FromLong(32); | |
24222 | shifted = PyNumber_Lshift(hi, shifter); | |
24223 | resultobj = PyNumber_Or(shifted, lo); | |
24224 | Py_DECREF(hi); | |
24225 | Py_DECREF(lo); | |
24226 | Py_DECREF(shifter); | |
24227 | Py_DECREF(shifted); | |
24228 | } | |
24229 | return resultobj; | |
24230 | fail: | |
24231 | return NULL; | |
24232 | } | |
24233 | ||
24234 | ||
c370783e | 24235 | static int _wrap_DefaultDateTime_set(PyObject *) { |
d55e5bfc RD |
24236 | PyErr_SetString(PyExc_TypeError,"Variable DefaultDateTime is read-only."); |
24237 | return 1; | |
24238 | } | |
24239 | ||
24240 | ||
24241 | static PyObject *_wrap_DefaultDateTime_get() { | |
24242 | PyObject *pyobj; | |
24243 | ||
24244 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultDateTime), SWIGTYPE_p_wxDateTime, 0); | |
24245 | return pyobj; | |
24246 | } | |
24247 | ||
24248 | ||
c370783e | 24249 | static PyObject *_wrap_new_DataFormat(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24250 | PyObject *resultobj; |
24251 | int arg1 ; | |
24252 | wxDataFormat *result; | |
24253 | PyObject * obj0 = 0 ; | |
24254 | char *kwnames[] = { | |
24255 | (char *) "type", NULL | |
24256 | }; | |
24257 | ||
24258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DataFormat",kwnames,&obj0)) goto fail; | |
c370783e | 24259 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
24260 | if (PyErr_Occurred()) SWIG_fail; |
24261 | { | |
24262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24263 | result = (wxDataFormat *)new wxDataFormat((wxDataFormatId )arg1); | |
24264 | ||
24265 | wxPyEndAllowThreads(__tstate); | |
24266 | if (PyErr_Occurred()) SWIG_fail; | |
24267 | } | |
24268 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1); | |
24269 | return resultobj; | |
24270 | fail: | |
24271 | return NULL; | |
24272 | } | |
24273 | ||
24274 | ||
c370783e | 24275 | static PyObject *_wrap_new_CustomDataFormat(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24276 | PyObject *resultobj; |
24277 | wxString *arg1 = 0 ; | |
24278 | wxDataFormat *result; | |
b411df4a | 24279 | bool temp1 = false ; |
d55e5bfc RD |
24280 | PyObject * obj0 = 0 ; |
24281 | char *kwnames[] = { | |
24282 | (char *) "format", NULL | |
24283 | }; | |
24284 | ||
24285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CustomDataFormat",kwnames,&obj0)) goto fail; | |
24286 | { | |
24287 | arg1 = wxString_in_helper(obj0); | |
24288 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 24289 | temp1 = true; |
d55e5bfc RD |
24290 | } |
24291 | { | |
24292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24293 | result = (wxDataFormat *)new wxDataFormat((wxString const &)*arg1); | |
24294 | ||
24295 | wxPyEndAllowThreads(__tstate); | |
24296 | if (PyErr_Occurred()) SWIG_fail; | |
24297 | } | |
24298 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1); | |
24299 | { | |
24300 | if (temp1) | |
24301 | delete arg1; | |
24302 | } | |
24303 | return resultobj; | |
24304 | fail: | |
24305 | { | |
24306 | if (temp1) | |
24307 | delete arg1; | |
24308 | } | |
24309 | return NULL; | |
24310 | } | |
24311 | ||
24312 | ||
c370783e | 24313 | static PyObject *_wrap_delete_DataFormat(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24314 | PyObject *resultobj; |
24315 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24316 | PyObject * obj0 = 0 ; | |
24317 | char *kwnames[] = { | |
24318 | (char *) "self", NULL | |
24319 | }; | |
24320 | ||
24321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataFormat",kwnames,&obj0)) goto fail; | |
24322 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24323 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24324 | { | |
24325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24326 | delete arg1; | |
24327 | ||
24328 | wxPyEndAllowThreads(__tstate); | |
24329 | if (PyErr_Occurred()) SWIG_fail; | |
24330 | } | |
24331 | Py_INCREF(Py_None); resultobj = Py_None; | |
24332 | return resultobj; | |
24333 | fail: | |
24334 | return NULL; | |
24335 | } | |
24336 | ||
24337 | ||
c370783e | 24338 | static PyObject *_wrap_DataFormat___eq____SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
24339 | PyObject *resultobj; |
24340 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24341 | int arg2 ; | |
24342 | bool result; | |
24343 | PyObject * obj0 = 0 ; | |
24344 | PyObject * obj1 = 0 ; | |
24345 | ||
24346 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail; | |
24347 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24348 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 24349 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
24350 | if (PyErr_Occurred()) SWIG_fail; |
24351 | { | |
24352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24353 | result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormatId )arg2); | |
24354 | ||
24355 | wxPyEndAllowThreads(__tstate); | |
24356 | if (PyErr_Occurred()) SWIG_fail; | |
24357 | } | |
24358 | { | |
24359 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24360 | } | |
24361 | return resultobj; | |
24362 | fail: | |
24363 | return NULL; | |
24364 | } | |
24365 | ||
24366 | ||
c370783e | 24367 | static PyObject *_wrap_DataFormat___ne____SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
24368 | PyObject *resultobj; |
24369 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24370 | int arg2 ; | |
24371 | bool result; | |
24372 | PyObject * obj0 = 0 ; | |
24373 | PyObject * obj1 = 0 ; | |
24374 | ||
24375 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail; | |
24376 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24377 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 24378 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
24379 | if (PyErr_Occurred()) SWIG_fail; |
24380 | { | |
24381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24382 | result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormatId )arg2); | |
24383 | ||
24384 | wxPyEndAllowThreads(__tstate); | |
24385 | if (PyErr_Occurred()) SWIG_fail; | |
24386 | } | |
24387 | { | |
24388 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24389 | } | |
24390 | return resultobj; | |
24391 | fail: | |
24392 | return NULL; | |
24393 | } | |
24394 | ||
24395 | ||
c370783e | 24396 | static PyObject *_wrap_DataFormat___eq____SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
24397 | PyObject *resultobj; |
24398 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24399 | wxDataFormat *arg2 = 0 ; | |
24400 | bool result; | |
24401 | PyObject * obj0 = 0 ; | |
24402 | PyObject * obj1 = 0 ; | |
24403 | ||
24404 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail; | |
24405 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24406 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24407 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24408 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24409 | SWIG_fail; | |
24410 | if (arg2 == NULL) { | |
24411 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24412 | SWIG_fail; | |
24413 | } | |
24414 | { | |
24415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24416 | result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormat const &)*arg2); | |
24417 | ||
24418 | wxPyEndAllowThreads(__tstate); | |
24419 | if (PyErr_Occurred()) SWIG_fail; | |
24420 | } | |
24421 | { | |
24422 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24423 | } | |
24424 | return resultobj; | |
24425 | fail: | |
24426 | return NULL; | |
24427 | } | |
24428 | ||
24429 | ||
24430 | static PyObject *_wrap_DataFormat___eq__(PyObject *self, PyObject *args) { | |
24431 | int argc; | |
24432 | PyObject *argv[3]; | |
24433 | int ii; | |
24434 | ||
24435 | argc = PyObject_Length(args); | |
24436 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
24437 | argv[ii] = PyTuple_GetItem(args,ii); | |
24438 | } | |
24439 | if (argc == 2) { | |
24440 | int _v; | |
24441 | { | |
24442 | void *ptr; | |
24443 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
24444 | _v = 0; | |
24445 | PyErr_Clear(); | |
24446 | } else { | |
24447 | _v = 1; | |
24448 | } | |
24449 | } | |
24450 | if (_v) { | |
24451 | { | |
24452 | void *ptr; | |
24453 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
24454 | _v = 0; | |
24455 | PyErr_Clear(); | |
24456 | } else { | |
24457 | _v = 1; | |
24458 | } | |
24459 | } | |
24460 | if (_v) { | |
24461 | return _wrap_DataFormat___eq____SWIG_1(self,args); | |
24462 | } | |
24463 | } | |
24464 | } | |
24465 | if (argc == 2) { | |
24466 | int _v; | |
24467 | { | |
24468 | void *ptr; | |
24469 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
24470 | _v = 0; | |
24471 | PyErr_Clear(); | |
24472 | } else { | |
24473 | _v = 1; | |
24474 | } | |
24475 | } | |
24476 | if (_v) { | |
c370783e | 24477 | _v = SWIG_Check_int(argv[1]); |
d55e5bfc RD |
24478 | if (_v) { |
24479 | return _wrap_DataFormat___eq____SWIG_0(self,args); | |
24480 | } | |
24481 | } | |
24482 | } | |
24483 | ||
24484 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___eq__'"); | |
24485 | return NULL; | |
24486 | } | |
24487 | ||
24488 | ||
c370783e | 24489 | static PyObject *_wrap_DataFormat___ne____SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
24490 | PyObject *resultobj; |
24491 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24492 | wxDataFormat *arg2 = 0 ; | |
24493 | bool result; | |
24494 | PyObject * obj0 = 0 ; | |
24495 | PyObject * obj1 = 0 ; | |
24496 | ||
24497 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail; | |
24498 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24499 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24500 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24501 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24502 | SWIG_fail; | |
24503 | if (arg2 == NULL) { | |
24504 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24505 | SWIG_fail; | |
24506 | } | |
24507 | { | |
24508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24509 | result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormat const &)*arg2); | |
24510 | ||
24511 | wxPyEndAllowThreads(__tstate); | |
24512 | if (PyErr_Occurred()) SWIG_fail; | |
24513 | } | |
24514 | { | |
24515 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24516 | } | |
24517 | return resultobj; | |
24518 | fail: | |
24519 | return NULL; | |
24520 | } | |
24521 | ||
24522 | ||
24523 | static PyObject *_wrap_DataFormat___ne__(PyObject *self, PyObject *args) { | |
24524 | int argc; | |
24525 | PyObject *argv[3]; | |
24526 | int ii; | |
24527 | ||
24528 | argc = PyObject_Length(args); | |
24529 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
24530 | argv[ii] = PyTuple_GetItem(args,ii); | |
24531 | } | |
24532 | if (argc == 2) { | |
24533 | int _v; | |
24534 | { | |
24535 | void *ptr; | |
24536 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
24537 | _v = 0; | |
24538 | PyErr_Clear(); | |
24539 | } else { | |
24540 | _v = 1; | |
24541 | } | |
24542 | } | |
24543 | if (_v) { | |
24544 | { | |
24545 | void *ptr; | |
24546 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
24547 | _v = 0; | |
24548 | PyErr_Clear(); | |
24549 | } else { | |
24550 | _v = 1; | |
24551 | } | |
24552 | } | |
24553 | if (_v) { | |
24554 | return _wrap_DataFormat___ne____SWIG_1(self,args); | |
24555 | } | |
24556 | } | |
24557 | } | |
24558 | if (argc == 2) { | |
24559 | int _v; | |
24560 | { | |
24561 | void *ptr; | |
24562 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
24563 | _v = 0; | |
24564 | PyErr_Clear(); | |
24565 | } else { | |
24566 | _v = 1; | |
24567 | } | |
24568 | } | |
24569 | if (_v) { | |
c370783e | 24570 | _v = SWIG_Check_int(argv[1]); |
d55e5bfc RD |
24571 | if (_v) { |
24572 | return _wrap_DataFormat___ne____SWIG_0(self,args); | |
24573 | } | |
24574 | } | |
24575 | } | |
24576 | ||
24577 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___ne__'"); | |
24578 | return NULL; | |
24579 | } | |
24580 | ||
24581 | ||
c370783e | 24582 | static PyObject *_wrap_DataFormat_SetType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24583 | PyObject *resultobj; |
24584 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24585 | int arg2 ; | |
24586 | PyObject * obj0 = 0 ; | |
24587 | PyObject * obj1 = 0 ; | |
24588 | char *kwnames[] = { | |
24589 | (char *) "self",(char *) "format", NULL | |
24590 | }; | |
24591 | ||
24592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetType",kwnames,&obj0,&obj1)) goto fail; | |
24593 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24594 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 24595 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
24596 | if (PyErr_Occurred()) SWIG_fail; |
24597 | { | |
24598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24599 | (arg1)->SetType((wxDataFormatId )arg2); | |
24600 | ||
24601 | wxPyEndAllowThreads(__tstate); | |
24602 | if (PyErr_Occurred()) SWIG_fail; | |
24603 | } | |
24604 | Py_INCREF(Py_None); resultobj = Py_None; | |
24605 | return resultobj; | |
24606 | fail: | |
24607 | return NULL; | |
24608 | } | |
24609 | ||
24610 | ||
c370783e | 24611 | static PyObject *_wrap_DataFormat_GetType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24612 | PyObject *resultobj; |
24613 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24614 | int result; | |
24615 | PyObject * obj0 = 0 ; | |
24616 | char *kwnames[] = { | |
24617 | (char *) "self", NULL | |
24618 | }; | |
24619 | ||
24620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetType",kwnames,&obj0)) goto fail; | |
24621 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24622 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24623 | { | |
24624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24625 | result = (int)((wxDataFormat const *)arg1)->GetType(); | |
24626 | ||
24627 | wxPyEndAllowThreads(__tstate); | |
24628 | if (PyErr_Occurred()) SWIG_fail; | |
24629 | } | |
c370783e | 24630 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
24631 | return resultobj; |
24632 | fail: | |
24633 | return NULL; | |
24634 | } | |
24635 | ||
24636 | ||
c370783e | 24637 | static PyObject *_wrap_DataFormat_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24638 | PyObject *resultobj; |
24639 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24640 | wxString result; | |
24641 | PyObject * obj0 = 0 ; | |
24642 | char *kwnames[] = { | |
24643 | (char *) "self", NULL | |
24644 | }; | |
24645 | ||
24646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetId",kwnames,&obj0)) goto fail; | |
24647 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24648 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24649 | { | |
24650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24651 | result = ((wxDataFormat const *)arg1)->GetId(); | |
24652 | ||
24653 | wxPyEndAllowThreads(__tstate); | |
24654 | if (PyErr_Occurred()) SWIG_fail; | |
24655 | } | |
24656 | { | |
24657 | #if wxUSE_UNICODE | |
24658 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24659 | #else | |
24660 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24661 | #endif | |
24662 | } | |
24663 | return resultobj; | |
24664 | fail: | |
24665 | return NULL; | |
24666 | } | |
24667 | ||
24668 | ||
c370783e | 24669 | static PyObject *_wrap_DataFormat_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24670 | PyObject *resultobj; |
24671 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24672 | wxString *arg2 = 0 ; | |
b411df4a | 24673 | bool temp2 = false ; |
d55e5bfc RD |
24674 | PyObject * obj0 = 0 ; |
24675 | PyObject * obj1 = 0 ; | |
24676 | char *kwnames[] = { | |
24677 | (char *) "self",(char *) "format", NULL | |
24678 | }; | |
24679 | ||
24680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetId",kwnames,&obj0,&obj1)) goto fail; | |
24681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24683 | { | |
24684 | arg2 = wxString_in_helper(obj1); | |
24685 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 24686 | temp2 = true; |
d55e5bfc RD |
24687 | } |
24688 | { | |
24689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24690 | (arg1)->SetId((wxString const &)*arg2); | |
24691 | ||
24692 | wxPyEndAllowThreads(__tstate); | |
24693 | if (PyErr_Occurred()) SWIG_fail; | |
24694 | } | |
24695 | Py_INCREF(Py_None); resultobj = Py_None; | |
24696 | { | |
24697 | if (temp2) | |
24698 | delete arg2; | |
24699 | } | |
24700 | return resultobj; | |
24701 | fail: | |
24702 | { | |
24703 | if (temp2) | |
24704 | delete arg2; | |
24705 | } | |
24706 | return NULL; | |
24707 | } | |
24708 | ||
24709 | ||
c370783e | 24710 | static PyObject * DataFormat_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
24711 | PyObject *obj; |
24712 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24713 | SWIG_TypeClientData(SWIGTYPE_p_wxDataFormat, obj); | |
24714 | Py_INCREF(obj); | |
24715 | return Py_BuildValue((char *)""); | |
24716 | } | |
c370783e | 24717 | static int _wrap_FormatInvalid_set(PyObject *) { |
d55e5bfc RD |
24718 | PyErr_SetString(PyExc_TypeError,"Variable FormatInvalid is read-only."); |
24719 | return 1; | |
24720 | } | |
24721 | ||
24722 | ||
24723 | static PyObject *_wrap_FormatInvalid_get() { | |
24724 | PyObject *pyobj; | |
24725 | ||
24726 | pyobj = SWIG_NewPointerObj((void *)(&wxFormatInvalid), SWIGTYPE_p_wxDataFormat, 0); | |
24727 | return pyobj; | |
24728 | } | |
24729 | ||
24730 | ||
c370783e | 24731 | static PyObject *_wrap_delete_DataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24732 | PyObject *resultobj; |
24733 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24734 | PyObject * obj0 = 0 ; | |
24735 | char *kwnames[] = { | |
24736 | (char *) "self", NULL | |
24737 | }; | |
24738 | ||
24739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataObject",kwnames,&obj0)) goto fail; | |
24740 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
24741 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24742 | { | |
24743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24744 | delete arg1; | |
24745 | ||
24746 | wxPyEndAllowThreads(__tstate); | |
24747 | if (PyErr_Occurred()) SWIG_fail; | |
24748 | } | |
24749 | Py_INCREF(Py_None); resultobj = Py_None; | |
24750 | return resultobj; | |
24751 | fail: | |
24752 | return NULL; | |
24753 | } | |
24754 | ||
24755 | ||
c370783e | 24756 | static PyObject *_wrap_DataObject_GetPreferredFormat(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24757 | PyObject *resultobj; |
24758 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24759 | int arg2 = (int) wxDataObject::Get ; | |
24760 | SwigValueWrapper< wxDataFormat > result; | |
24761 | PyObject * obj0 = 0 ; | |
24762 | PyObject * obj1 = 0 ; | |
24763 | char *kwnames[] = { | |
24764 | (char *) "self",(char *) "dir", NULL | |
24765 | }; | |
24766 | ||
24767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetPreferredFormat",kwnames,&obj0,&obj1)) goto fail; | |
24768 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
24769 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24770 | if (obj1) { | |
c370783e | 24771 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
24772 | if (PyErr_Occurred()) SWIG_fail; |
24773 | } | |
24774 | { | |
24775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24776 | result = ((wxDataObject const *)arg1)->GetPreferredFormat((wxDataObject::Direction )arg2); | |
24777 | ||
24778 | wxPyEndAllowThreads(__tstate); | |
24779 | if (PyErr_Occurred()) SWIG_fail; | |
24780 | } | |
24781 | { | |
24782 | wxDataFormat * resultptr; | |
24783 | resultptr = new wxDataFormat((wxDataFormat &) result); | |
24784 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDataFormat, 1); | |
24785 | } | |
24786 | return resultobj; | |
24787 | fail: | |
24788 | return NULL; | |
24789 | } | |
24790 | ||
24791 | ||
c370783e | 24792 | static PyObject *_wrap_DataObject_GetFormatCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24793 | PyObject *resultobj; |
24794 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24795 | int arg2 = (int) wxDataObject::Get ; | |
24796 | size_t result; | |
24797 | PyObject * obj0 = 0 ; | |
24798 | PyObject * obj1 = 0 ; | |
24799 | char *kwnames[] = { | |
24800 | (char *) "self",(char *) "dir", NULL | |
24801 | }; | |
24802 | ||
24803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetFormatCount",kwnames,&obj0,&obj1)) goto fail; | |
24804 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
24805 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24806 | if (obj1) { | |
c370783e | 24807 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
24808 | if (PyErr_Occurred()) SWIG_fail; |
24809 | } | |
24810 | { | |
24811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24812 | result = (size_t)((wxDataObject const *)arg1)->GetFormatCount((wxDataObject::Direction )arg2); | |
24813 | ||
24814 | wxPyEndAllowThreads(__tstate); | |
24815 | if (PyErr_Occurred()) SWIG_fail; | |
24816 | } | |
c370783e | 24817 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
24818 | return resultobj; |
24819 | fail: | |
24820 | return NULL; | |
24821 | } | |
24822 | ||
24823 | ||
c370783e | 24824 | static PyObject *_wrap_DataObject_IsSupported(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24825 | PyObject *resultobj; |
24826 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24827 | wxDataFormat *arg2 = 0 ; | |
24828 | int arg3 = (int) wxDataObject::Get ; | |
24829 | bool result; | |
24830 | PyObject * obj0 = 0 ; | |
24831 | PyObject * obj1 = 0 ; | |
24832 | PyObject * obj2 = 0 ; | |
24833 | char *kwnames[] = { | |
24834 | (char *) "self",(char *) "format",(char *) "dir", NULL | |
24835 | }; | |
24836 | ||
24837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_IsSupported",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24838 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
24839 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24840 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24841 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24842 | SWIG_fail; | |
24843 | if (arg2 == NULL) { | |
24844 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24845 | SWIG_fail; | |
24846 | } | |
24847 | if (obj2) { | |
c370783e | 24848 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
24849 | if (PyErr_Occurred()) SWIG_fail; |
24850 | } | |
24851 | { | |
24852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24853 | result = (bool)((wxDataObject const *)arg1)->IsSupported((wxDataFormat const &)*arg2,(wxDataObject::Direction )arg3); | |
24854 | ||
24855 | wxPyEndAllowThreads(__tstate); | |
24856 | if (PyErr_Occurred()) SWIG_fail; | |
24857 | } | |
24858 | { | |
24859 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24860 | } | |
24861 | return resultobj; | |
24862 | fail: | |
24863 | return NULL; | |
24864 | } | |
24865 | ||
24866 | ||
c370783e | 24867 | static PyObject *_wrap_DataObject_GetDataSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24868 | PyObject *resultobj; |
24869 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24870 | wxDataFormat *arg2 = 0 ; | |
24871 | size_t result; | |
24872 | PyObject * obj0 = 0 ; | |
24873 | PyObject * obj1 = 0 ; | |
24874 | char *kwnames[] = { | |
24875 | (char *) "self",(char *) "format", NULL | |
24876 | }; | |
24877 | ||
24878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataSize",kwnames,&obj0,&obj1)) goto fail; | |
24879 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
24880 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24881 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24882 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24883 | SWIG_fail; | |
24884 | if (arg2 == NULL) { | |
24885 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24886 | SWIG_fail; | |
24887 | } | |
24888 | { | |
24889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24890 | result = (size_t)((wxDataObject const *)arg1)->GetDataSize((wxDataFormat const &)*arg2); | |
24891 | ||
24892 | wxPyEndAllowThreads(__tstate); | |
24893 | if (PyErr_Occurred()) SWIG_fail; | |
24894 | } | |
c370783e | 24895 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
24896 | return resultobj; |
24897 | fail: | |
24898 | return NULL; | |
24899 | } | |
24900 | ||
24901 | ||
c370783e | 24902 | static PyObject *_wrap_DataObject_GetAllFormats(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24903 | PyObject *resultobj; |
24904 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
68e533f8 RD |
24905 | int arg2 = (int) wxDataObject::Get ; |
24906 | PyObject *result; | |
d55e5bfc RD |
24907 | PyObject * obj0 = 0 ; |
24908 | PyObject * obj1 = 0 ; | |
d55e5bfc | 24909 | char *kwnames[] = { |
68e533f8 | 24910 | (char *) "self",(char *) "dir", NULL |
d55e5bfc RD |
24911 | }; |
24912 | ||
68e533f8 | 24913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetAllFormats",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
24914 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24915 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
68e533f8 | 24916 | if (obj1) { |
c370783e | 24917 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
24918 | if (PyErr_Occurred()) SWIG_fail; |
24919 | } | |
24920 | { | |
24921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
68e533f8 | 24922 | result = (PyObject *)wxDataObject_GetAllFormats(arg1,(wxDataObject::Direction )arg2); |
d55e5bfc RD |
24923 | |
24924 | wxPyEndAllowThreads(__tstate); | |
24925 | if (PyErr_Occurred()) SWIG_fail; | |
24926 | } | |
68e533f8 | 24927 | resultobj = result; |
d55e5bfc RD |
24928 | return resultobj; |
24929 | fail: | |
24930 | return NULL; | |
24931 | } | |
24932 | ||
24933 | ||
c370783e | 24934 | static PyObject *_wrap_DataObject_GetDataHere(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24935 | PyObject *resultobj; |
24936 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24937 | wxDataFormat *arg2 = 0 ; | |
68e533f8 | 24938 | PyObject *result; |
d55e5bfc RD |
24939 | PyObject * obj0 = 0 ; |
24940 | PyObject * obj1 = 0 ; | |
d55e5bfc | 24941 | char *kwnames[] = { |
68e533f8 | 24942 | (char *) "self",(char *) "format", NULL |
d55e5bfc RD |
24943 | }; |
24944 | ||
68e533f8 | 24945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataHere",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
24946 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24947 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24948 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24949 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24950 | SWIG_fail; | |
24951 | if (arg2 == NULL) { | |
24952 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24953 | SWIG_fail; | |
24954 | } | |
d55e5bfc RD |
24955 | { |
24956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
68e533f8 | 24957 | result = (PyObject *)wxDataObject_GetDataHere(arg1,(wxDataFormat const &)*arg2); |
d55e5bfc RD |
24958 | |
24959 | wxPyEndAllowThreads(__tstate); | |
24960 | if (PyErr_Occurred()) SWIG_fail; | |
24961 | } | |
68e533f8 | 24962 | resultobj = result; |
d55e5bfc RD |
24963 | return resultobj; |
24964 | fail: | |
24965 | return NULL; | |
24966 | } | |
24967 | ||
24968 | ||
c370783e | 24969 | static PyObject *_wrap_DataObject_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24970 | PyObject *resultobj; |
24971 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24972 | wxDataFormat *arg2 = 0 ; | |
68e533f8 | 24973 | PyObject *arg3 = (PyObject *) 0 ; |
d55e5bfc RD |
24974 | bool result; |
24975 | PyObject * obj0 = 0 ; | |
24976 | PyObject * obj1 = 0 ; | |
24977 | PyObject * obj2 = 0 ; | |
d55e5bfc | 24978 | char *kwnames[] = { |
68e533f8 | 24979 | (char *) "self",(char *) "format",(char *) "data", NULL |
d55e5bfc RD |
24980 | }; |
24981 | ||
68e533f8 | 24982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DataObject_SetData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
24983 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24984 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24985 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24986 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24987 | SWIG_fail; | |
24988 | if (arg2 == NULL) { | |
24989 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24990 | SWIG_fail; | |
24991 | } | |
68e533f8 | 24992 | arg3 = obj2; |
d55e5bfc RD |
24993 | { |
24994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
68e533f8 | 24995 | result = (bool)wxDataObject_SetData(arg1,(wxDataFormat const &)*arg2,arg3); |
d55e5bfc RD |
24996 | |
24997 | wxPyEndAllowThreads(__tstate); | |
24998 | if (PyErr_Occurred()) SWIG_fail; | |
24999 | } | |
25000 | { | |
25001 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25002 | } | |
25003 | return resultobj; | |
25004 | fail: | |
25005 | return NULL; | |
25006 | } | |
25007 | ||
25008 | ||
c370783e | 25009 | static PyObject * DataObject_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
25010 | PyObject *obj; |
25011 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25012 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObject, obj); | |
25013 | Py_INCREF(obj); | |
25014 | return Py_BuildValue((char *)""); | |
25015 | } | |
c370783e | 25016 | static PyObject *_wrap_new_DataObjectSimple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25017 | PyObject *resultobj; |
25018 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
25019 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
25020 | wxDataObjectSimple *result; | |
25021 | PyObject * obj0 = 0 ; | |
25022 | char *kwnames[] = { | |
25023 | (char *) "format", NULL | |
25024 | }; | |
25025 | ||
25026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DataObjectSimple",kwnames,&obj0)) goto fail; | |
25027 | if (obj0) { | |
25028 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
25029 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25030 | SWIG_fail; | |
25031 | if (arg1 == NULL) { | |
25032 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25033 | SWIG_fail; | |
25034 | } | |
25035 | } | |
25036 | { | |
25037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25038 | result = (wxDataObjectSimple *)new wxDataObjectSimple((wxDataFormat const &)*arg1); | |
25039 | ||
25040 | wxPyEndAllowThreads(__tstate); | |
25041 | if (PyErr_Occurred()) SWIG_fail; | |
25042 | } | |
25043 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectSimple, 1); | |
25044 | return resultobj; | |
25045 | fail: | |
25046 | return NULL; | |
25047 | } | |
25048 | ||
25049 | ||
c370783e | 25050 | static PyObject *_wrap_DataObjectSimple_GetFormat(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25051 | PyObject *resultobj; |
25052 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
25053 | wxDataFormat *result; | |
25054 | PyObject * obj0 = 0 ; | |
25055 | char *kwnames[] = { | |
25056 | (char *) "self", NULL | |
25057 | }; | |
25058 | ||
25059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetFormat",kwnames,&obj0)) goto fail; | |
25060 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, | |
25061 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25062 | { | |
25063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25064 | { | |
25065 | wxDataFormat const &_result_ref = (arg1)->GetFormat(); | |
25066 | result = (wxDataFormat *) &_result_ref; | |
25067 | } | |
25068 | ||
25069 | wxPyEndAllowThreads(__tstate); | |
25070 | if (PyErr_Occurred()) SWIG_fail; | |
25071 | } | |
25072 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 0); | |
25073 | return resultobj; | |
25074 | fail: | |
25075 | return NULL; | |
25076 | } | |
25077 | ||
25078 | ||
c370783e | 25079 | static PyObject *_wrap_DataObjectSimple_SetFormat(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25080 | PyObject *resultobj; |
25081 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
25082 | wxDataFormat *arg2 = 0 ; | |
25083 | PyObject * obj0 = 0 ; | |
25084 | PyObject * obj1 = 0 ; | |
25085 | char *kwnames[] = { | |
25086 | (char *) "self",(char *) "format", NULL | |
25087 | }; | |
25088 | ||
25089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetFormat",kwnames,&obj0,&obj1)) goto fail; | |
25090 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, | |
25091 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25092 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
25093 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25094 | SWIG_fail; | |
25095 | if (arg2 == NULL) { | |
25096 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25097 | SWIG_fail; | |
25098 | } | |
25099 | { | |
25100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25101 | (arg1)->SetFormat((wxDataFormat const &)*arg2); | |
25102 | ||
25103 | wxPyEndAllowThreads(__tstate); | |
25104 | if (PyErr_Occurred()) SWIG_fail; | |
25105 | } | |
25106 | Py_INCREF(Py_None); resultobj = Py_None; | |
25107 | return resultobj; | |
25108 | fail: | |
25109 | return NULL; | |
25110 | } | |
25111 | ||
25112 | ||
c370783e | 25113 | static PyObject *_wrap_DataObjectSimple_GetDataSize(PyObject *, PyObject *args, PyObject *kwargs) { |
68e533f8 RD |
25114 | PyObject *resultobj; |
25115 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
25116 | size_t result; | |
25117 | PyObject * obj0 = 0 ; | |
25118 | char *kwnames[] = { | |
25119 | (char *) "self", NULL | |
25120 | }; | |
25121 | ||
25122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataSize",kwnames,&obj0)) goto fail; | |
25123 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, | |
25124 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25125 | { | |
25126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25127 | result = (size_t)((wxDataObjectSimple const *)arg1)->GetDataSize(); | |
25128 | ||
25129 | wxPyEndAllowThreads(__tstate); | |
25130 | if (PyErr_Occurred()) SWIG_fail; | |
25131 | } | |
c370783e | 25132 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
68e533f8 RD |
25133 | return resultobj; |
25134 | fail: | |
25135 | return NULL; | |
25136 | } | |
25137 | ||
25138 | ||
c370783e | 25139 | static PyObject *_wrap_DataObjectSimple_GetDataHere(PyObject *, PyObject *args, PyObject *kwargs) { |
68e533f8 RD |
25140 | PyObject *resultobj; |
25141 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
25142 | PyObject *result; | |
25143 | PyObject * obj0 = 0 ; | |
25144 | char *kwnames[] = { | |
25145 | (char *) "self", NULL | |
25146 | }; | |
25147 | ||
25148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataHere",kwnames,&obj0)) goto fail; | |
25149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, | |
25150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25151 | { | |
25152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25153 | result = (PyObject *)wxDataObjectSimple_GetDataHere(arg1); | |
25154 | ||
25155 | wxPyEndAllowThreads(__tstate); | |
25156 | if (PyErr_Occurred()) SWIG_fail; | |
25157 | } | |
25158 | resultobj = result; | |
25159 | return resultobj; | |
25160 | fail: | |
25161 | return NULL; | |
25162 | } | |
25163 | ||
25164 | ||
c370783e | 25165 | static PyObject *_wrap_DataObjectSimple_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
68e533f8 RD |
25166 | PyObject *resultobj; |
25167 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
25168 | PyObject *arg2 = (PyObject *) 0 ; | |
25169 | bool result; | |
25170 | PyObject * obj0 = 0 ; | |
25171 | PyObject * obj1 = 0 ; | |
25172 | char *kwnames[] = { | |
25173 | (char *) "self",(char *) "data", NULL | |
25174 | }; | |
25175 | ||
25176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetData",kwnames,&obj0,&obj1)) goto fail; | |
25177 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, | |
25178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25179 | arg2 = obj1; | |
25180 | { | |
25181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25182 | result = (bool)wxDataObjectSimple_SetData(arg1,arg2); | |
25183 | ||
25184 | wxPyEndAllowThreads(__tstate); | |
25185 | if (PyErr_Occurred()) SWIG_fail; | |
25186 | } | |
25187 | { | |
25188 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25189 | } | |
25190 | return resultobj; | |
25191 | fail: | |
25192 | return NULL; | |
25193 | } | |
25194 | ||
25195 | ||
c370783e | 25196 | static PyObject * DataObjectSimple_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
25197 | PyObject *obj; |
25198 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25199 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectSimple, obj); | |
25200 | Py_INCREF(obj); | |
25201 | return Py_BuildValue((char *)""); | |
25202 | } | |
c370783e | 25203 | static PyObject *_wrap_new_PyDataObjectSimple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25204 | PyObject *resultobj; |
25205 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
25206 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
25207 | wxPyDataObjectSimple *result; | |
25208 | PyObject * obj0 = 0 ; | |
25209 | char *kwnames[] = { | |
25210 | (char *) "format", NULL | |
25211 | }; | |
25212 | ||
25213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDataObjectSimple",kwnames,&obj0)) goto fail; | |
25214 | if (obj0) { | |
25215 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
25216 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25217 | SWIG_fail; | |
25218 | if (arg1 == NULL) { | |
25219 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25220 | SWIG_fail; | |
25221 | } | |
25222 | } | |
25223 | { | |
25224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25225 | result = (wxPyDataObjectSimple *)new wxPyDataObjectSimple((wxDataFormat const &)*arg1); | |
25226 | ||
25227 | wxPyEndAllowThreads(__tstate); | |
25228 | if (PyErr_Occurred()) SWIG_fail; | |
25229 | } | |
25230 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDataObjectSimple, 1); | |
25231 | return resultobj; | |
25232 | fail: | |
25233 | return NULL; | |
25234 | } | |
25235 | ||
25236 | ||
c370783e | 25237 | static PyObject *_wrap_PyDataObjectSimple__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25238 | PyObject *resultobj; |
25239 | wxPyDataObjectSimple *arg1 = (wxPyDataObjectSimple *) 0 ; | |
25240 | PyObject *arg2 = (PyObject *) 0 ; | |
25241 | PyObject *arg3 = (PyObject *) 0 ; | |
25242 | PyObject * obj0 = 0 ; | |
25243 | PyObject * obj1 = 0 ; | |
25244 | PyObject * obj2 = 0 ; | |
25245 | char *kwnames[] = { | |
25246 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25247 | }; | |
25248 | ||
25249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDataObjectSimple__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25250 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDataObjectSimple, | |
25251 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25252 | arg2 = obj1; | |
25253 | arg3 = obj2; | |
25254 | { | |
25255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25256 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25257 | ||
25258 | wxPyEndAllowThreads(__tstate); | |
25259 | if (PyErr_Occurred()) SWIG_fail; | |
25260 | } | |
25261 | Py_INCREF(Py_None); resultobj = Py_None; | |
25262 | return resultobj; | |
25263 | fail: | |
25264 | return NULL; | |
25265 | } | |
25266 | ||
25267 | ||
c370783e | 25268 | static PyObject * PyDataObjectSimple_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
25269 | PyObject *obj; |
25270 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25271 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDataObjectSimple, obj); | |
25272 | Py_INCREF(obj); | |
25273 | return Py_BuildValue((char *)""); | |
25274 | } | |
c370783e | 25275 | static PyObject *_wrap_new_DataObjectComposite(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25276 | PyObject *resultobj; |
25277 | wxDataObjectComposite *result; | |
25278 | char *kwnames[] = { | |
25279 | NULL | |
25280 | }; | |
25281 | ||
25282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DataObjectComposite",kwnames)) goto fail; | |
25283 | { | |
25284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25285 | result = (wxDataObjectComposite *)new wxDataObjectComposite(); | |
25286 | ||
25287 | wxPyEndAllowThreads(__tstate); | |
25288 | if (PyErr_Occurred()) SWIG_fail; | |
25289 | } | |
25290 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectComposite, 1); | |
25291 | return resultobj; | |
25292 | fail: | |
25293 | return NULL; | |
25294 | } | |
25295 | ||
25296 | ||
c370783e | 25297 | static PyObject *_wrap_DataObjectComposite_Add(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25298 | PyObject *resultobj; |
25299 | wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ; | |
25300 | wxDataObjectSimple *arg2 = (wxDataObjectSimple *) 0 ; | |
b411df4a | 25301 | bool arg3 = (bool) false ; |
d55e5bfc RD |
25302 | PyObject * obj0 = 0 ; |
25303 | PyObject * obj1 = 0 ; | |
25304 | PyObject * obj2 = 0 ; | |
25305 | char *kwnames[] = { | |
25306 | (char *) "self",(char *) "dataObject",(char *) "preferred", NULL | |
25307 | }; | |
25308 | ||
25309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObjectComposite_Add",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25310 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectComposite, | |
25311 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25312 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObjectSimple, | |
25313 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
25314 | if (obj2) { | |
c370783e | 25315 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
25316 | if (PyErr_Occurred()) SWIG_fail; |
25317 | } | |
25318 | { | |
25319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25320 | (arg1)->Add(arg2,arg3); | |
25321 | ||
25322 | wxPyEndAllowThreads(__tstate); | |
25323 | if (PyErr_Occurred()) SWIG_fail; | |
25324 | } | |
25325 | Py_INCREF(Py_None); resultobj = Py_None; | |
25326 | return resultobj; | |
25327 | fail: | |
25328 | return NULL; | |
25329 | } | |
25330 | ||
25331 | ||
c370783e | 25332 | static PyObject * DataObjectComposite_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
25333 | PyObject *obj; |
25334 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25335 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectComposite, obj); | |
25336 | Py_INCREF(obj); | |
25337 | return Py_BuildValue((char *)""); | |
25338 | } | |
c370783e | 25339 | static PyObject *_wrap_new_TextDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25340 | PyObject *resultobj; |
25341 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
25342 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
25343 | wxTextDataObject *result; | |
b411df4a | 25344 | bool temp1 = false ; |
d55e5bfc RD |
25345 | PyObject * obj0 = 0 ; |
25346 | char *kwnames[] = { | |
25347 | (char *) "text", NULL | |
25348 | }; | |
25349 | ||
25350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TextDataObject",kwnames,&obj0)) goto fail; | |
25351 | if (obj0) { | |
25352 | { | |
25353 | arg1 = wxString_in_helper(obj0); | |
25354 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 25355 | temp1 = true; |
d55e5bfc RD |
25356 | } |
25357 | } | |
25358 | { | |
25359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25360 | result = (wxTextDataObject *)new wxTextDataObject((wxString const &)*arg1); | |
25361 | ||
25362 | wxPyEndAllowThreads(__tstate); | |
25363 | if (PyErr_Occurred()) SWIG_fail; | |
25364 | } | |
25365 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextDataObject, 1); | |
25366 | { | |
25367 | if (temp1) | |
25368 | delete arg1; | |
25369 | } | |
25370 | return resultobj; | |
25371 | fail: | |
25372 | { | |
25373 | if (temp1) | |
25374 | delete arg1; | |
25375 | } | |
25376 | return NULL; | |
25377 | } | |
25378 | ||
25379 | ||
c370783e | 25380 | static PyObject *_wrap_TextDataObject_GetTextLength(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25381 | PyObject *resultobj; |
25382 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
25383 | size_t result; | |
25384 | PyObject * obj0 = 0 ; | |
25385 | char *kwnames[] = { | |
25386 | (char *) "self", NULL | |
25387 | }; | |
25388 | ||
25389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetTextLength",kwnames,&obj0)) goto fail; | |
25390 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject, | |
25391 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25392 | { | |
25393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25394 | result = (size_t)(arg1)->GetTextLength(); | |
25395 | ||
25396 | wxPyEndAllowThreads(__tstate); | |
25397 | if (PyErr_Occurred()) SWIG_fail; | |
25398 | } | |
c370783e | 25399 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
25400 | return resultobj; |
25401 | fail: | |
25402 | return NULL; | |
25403 | } | |
25404 | ||
25405 | ||
c370783e | 25406 | static PyObject *_wrap_TextDataObject_GetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25407 | PyObject *resultobj; |
25408 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
25409 | wxString result; | |
25410 | PyObject * obj0 = 0 ; | |
25411 | char *kwnames[] = { | |
25412 | (char *) "self", NULL | |
25413 | }; | |
25414 | ||
25415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetText",kwnames,&obj0)) goto fail; | |
25416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject, | |
25417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25418 | { | |
25419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25420 | result = (arg1)->GetText(); | |
25421 | ||
25422 | wxPyEndAllowThreads(__tstate); | |
25423 | if (PyErr_Occurred()) SWIG_fail; | |
25424 | } | |
25425 | { | |
25426 | #if wxUSE_UNICODE | |
25427 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
25428 | #else | |
25429 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
25430 | #endif | |
25431 | } | |
25432 | return resultobj; | |
25433 | fail: | |
25434 | return NULL; | |
25435 | } | |
25436 | ||
25437 | ||
c370783e | 25438 | static PyObject *_wrap_TextDataObject_SetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25439 | PyObject *resultobj; |
25440 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
25441 | wxString *arg2 = 0 ; | |
b411df4a | 25442 | bool temp2 = false ; |
d55e5bfc RD |
25443 | PyObject * obj0 = 0 ; |
25444 | PyObject * obj1 = 0 ; | |
25445 | char *kwnames[] = { | |
25446 | (char *) "self",(char *) "text", NULL | |
25447 | }; | |
25448 | ||
25449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextDataObject_SetText",kwnames,&obj0,&obj1)) goto fail; | |
25450 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject, | |
25451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25452 | { | |
25453 | arg2 = wxString_in_helper(obj1); | |
25454 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 25455 | temp2 = true; |
d55e5bfc RD |
25456 | } |
25457 | { | |
25458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25459 | (arg1)->SetText((wxString const &)*arg2); | |
25460 | ||
25461 | wxPyEndAllowThreads(__tstate); | |
25462 | if (PyErr_Occurred()) SWIG_fail; | |
25463 | } | |
25464 | Py_INCREF(Py_None); resultobj = Py_None; | |
25465 | { | |
25466 | if (temp2) | |
25467 | delete arg2; | |
25468 | } | |
25469 | return resultobj; | |
25470 | fail: | |
25471 | { | |
25472 | if (temp2) | |
25473 | delete arg2; | |
25474 | } | |
25475 | return NULL; | |
25476 | } | |
25477 | ||
25478 | ||
c370783e | 25479 | static PyObject * TextDataObject_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
25480 | PyObject *obj; |
25481 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25482 | SWIG_TypeClientData(SWIGTYPE_p_wxTextDataObject, obj); | |
25483 | Py_INCREF(obj); | |
25484 | return Py_BuildValue((char *)""); | |
25485 | } | |
c370783e | 25486 | static PyObject *_wrap_new_PyTextDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25487 | PyObject *resultobj; |
25488 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
25489 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
25490 | wxPyTextDataObject *result; | |
b411df4a | 25491 | bool temp1 = false ; |
d55e5bfc RD |
25492 | PyObject * obj0 = 0 ; |
25493 | char *kwnames[] = { | |
25494 | (char *) "text", NULL | |
25495 | }; | |
25496 | ||
25497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyTextDataObject",kwnames,&obj0)) goto fail; | |
25498 | if (obj0) { | |
25499 | { | |
25500 | arg1 = wxString_in_helper(obj0); | |
25501 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 25502 | temp1 = true; |
d55e5bfc RD |
25503 | } |
25504 | } | |
25505 | { | |
25506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25507 | result = (wxPyTextDataObject *)new wxPyTextDataObject((wxString const &)*arg1); | |
25508 | ||
25509 | wxPyEndAllowThreads(__tstate); | |
25510 | if (PyErr_Occurred()) SWIG_fail; | |
25511 | } | |
25512 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDataObject, 1); | |
25513 | { | |
25514 | if (temp1) | |
25515 | delete arg1; | |
25516 | } | |
25517 | return resultobj; | |
25518 | fail: | |
25519 | { | |
25520 | if (temp1) | |
25521 | delete arg1; | |
25522 | } | |
25523 | return NULL; | |
25524 | } | |
25525 | ||
25526 | ||
c370783e | 25527 | static PyObject *_wrap_PyTextDataObject__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25528 | PyObject *resultobj; |
25529 | wxPyTextDataObject *arg1 = (wxPyTextDataObject *) 0 ; | |
25530 | PyObject *arg2 = (PyObject *) 0 ; | |
25531 | PyObject *arg3 = (PyObject *) 0 ; | |
25532 | PyObject * obj0 = 0 ; | |
25533 | PyObject * obj1 = 0 ; | |
25534 | PyObject * obj2 = 0 ; | |
25535 | char *kwnames[] = { | |
25536 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25537 | }; | |
25538 | ||
25539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25540 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDataObject, | |
25541 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25542 | arg2 = obj1; | |
25543 | arg3 = obj2; | |
25544 | { | |
25545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25546 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25547 | ||
25548 | wxPyEndAllowThreads(__tstate); | |
25549 | if (PyErr_Occurred()) SWIG_fail; | |
25550 | } | |
25551 | Py_INCREF(Py_None); resultobj = Py_None; | |
25552 | return resultobj; | |
25553 | fail: | |
25554 | return NULL; | |
25555 | } | |
25556 | ||
25557 | ||
c370783e | 25558 | static PyObject * PyTextDataObject_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
25559 | PyObject *obj; |
25560 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25561 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDataObject, obj); | |
25562 | Py_INCREF(obj); | |
25563 | return Py_BuildValue((char *)""); | |
25564 | } | |
c370783e | 25565 | static PyObject *_wrap_new_BitmapDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25566 | PyObject *resultobj; |
25567 | wxBitmap const &arg1_defvalue = wxNullBitmap ; | |
25568 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
25569 | wxBitmapDataObject *result; | |
25570 | PyObject * obj0 = 0 ; | |
25571 | char *kwnames[] = { | |
25572 | (char *) "bitmap", NULL | |
25573 | }; | |
25574 | ||
25575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BitmapDataObject",kwnames,&obj0)) goto fail; | |
25576 | if (obj0) { | |
25577 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
25578 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25579 | SWIG_fail; | |
25580 | if (arg1 == NULL) { | |
25581 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25582 | SWIG_fail; | |
25583 | } | |
25584 | } | |
25585 | { | |
25586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25587 | result = (wxBitmapDataObject *)new wxBitmapDataObject((wxBitmap const &)*arg1); | |
25588 | ||
25589 | wxPyEndAllowThreads(__tstate); | |
25590 | if (PyErr_Occurred()) SWIG_fail; | |
25591 | } | |
25592 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapDataObject, 1); | |
25593 | return resultobj; | |
25594 | fail: | |
25595 | return NULL; | |
25596 | } | |
25597 | ||
25598 | ||
c370783e | 25599 | static PyObject *_wrap_BitmapDataObject_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25600 | PyObject *resultobj; |
25601 | wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ; | |
25602 | wxBitmap result; | |
25603 | PyObject * obj0 = 0 ; | |
25604 | char *kwnames[] = { | |
25605 | (char *) "self", NULL | |
25606 | }; | |
25607 | ||
25608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapDataObject_GetBitmap",kwnames,&obj0)) goto fail; | |
25609 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject, | |
25610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25611 | { | |
25612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25613 | result = ((wxBitmapDataObject const *)arg1)->GetBitmap(); | |
25614 | ||
25615 | wxPyEndAllowThreads(__tstate); | |
25616 | if (PyErr_Occurred()) SWIG_fail; | |
25617 | } | |
25618 | { | |
25619 | wxBitmap * resultptr; | |
25620 | resultptr = new wxBitmap((wxBitmap &) result); | |
25621 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
25622 | } | |
25623 | return resultobj; | |
25624 | fail: | |
25625 | return NULL; | |
25626 | } | |
25627 | ||
25628 | ||
c370783e | 25629 | static PyObject *_wrap_BitmapDataObject_SetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25630 | PyObject *resultobj; |
25631 | wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ; | |
25632 | wxBitmap *arg2 = 0 ; | |
25633 | PyObject * obj0 = 0 ; | |
25634 | PyObject * obj1 = 0 ; | |
25635 | char *kwnames[] = { | |
25636 | (char *) "self",(char *) "bitmap", NULL | |
25637 | }; | |
25638 | ||
25639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapDataObject_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
25640 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject, | |
25641 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25642 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
25643 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25644 | SWIG_fail; | |
25645 | if (arg2 == NULL) { | |
25646 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25647 | SWIG_fail; | |
25648 | } | |
25649 | { | |
25650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25651 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
25652 | ||
25653 | wxPyEndAllowThreads(__tstate); | |
25654 | if (PyErr_Occurred()) SWIG_fail; | |
25655 | } | |
25656 | Py_INCREF(Py_None); resultobj = Py_None; | |
25657 | return resultobj; | |
25658 | fail: | |
25659 | return NULL; | |
25660 | } | |
25661 | ||
25662 | ||
c370783e | 25663 | static PyObject * BitmapDataObject_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
25664 | PyObject *obj; |
25665 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25666 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmapDataObject, obj); | |
25667 | Py_INCREF(obj); | |
25668 | return Py_BuildValue((char *)""); | |
25669 | } | |
c370783e | 25670 | static PyObject *_wrap_new_PyBitmapDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25671 | PyObject *resultobj; |
25672 | wxBitmap const &arg1_defvalue = wxNullBitmap ; | |
25673 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
25674 | wxPyBitmapDataObject *result; | |
25675 | PyObject * obj0 = 0 ; | |
25676 | char *kwnames[] = { | |
25677 | (char *) "bitmap", NULL | |
25678 | }; | |
25679 | ||
25680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyBitmapDataObject",kwnames,&obj0)) goto fail; | |
25681 | if (obj0) { | |
25682 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
25683 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25684 | SWIG_fail; | |
25685 | if (arg1 == NULL) { | |
25686 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25687 | SWIG_fail; | |
25688 | } | |
25689 | } | |
25690 | { | |
25691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25692 | result = (wxPyBitmapDataObject *)new wxPyBitmapDataObject((wxBitmap const &)*arg1); | |
25693 | ||
25694 | wxPyEndAllowThreads(__tstate); | |
25695 | if (PyErr_Occurred()) SWIG_fail; | |
25696 | } | |
25697 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyBitmapDataObject, 1); | |
25698 | return resultobj; | |
25699 | fail: | |
25700 | return NULL; | |
25701 | } | |
25702 | ||
25703 | ||
c370783e | 25704 | static PyObject *_wrap_PyBitmapDataObject__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25705 | PyObject *resultobj; |
25706 | wxPyBitmapDataObject *arg1 = (wxPyBitmapDataObject *) 0 ; | |
25707 | PyObject *arg2 = (PyObject *) 0 ; | |
25708 | PyObject *arg3 = (PyObject *) 0 ; | |
25709 | PyObject * obj0 = 0 ; | |
25710 | PyObject * obj1 = 0 ; | |
25711 | PyObject * obj2 = 0 ; | |
25712 | char *kwnames[] = { | |
25713 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25714 | }; | |
25715 | ||
25716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25717 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapDataObject, | |
25718 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25719 | arg2 = obj1; | |
25720 | arg3 = obj2; | |
25721 | { | |
25722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25723 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25724 | ||
25725 | wxPyEndAllowThreads(__tstate); | |
25726 | if (PyErr_Occurred()) SWIG_fail; | |
25727 | } | |
25728 | Py_INCREF(Py_None); resultobj = Py_None; | |
25729 | return resultobj; | |
25730 | fail: | |
25731 | return NULL; | |
25732 | } | |
25733 | ||
25734 | ||
c370783e | 25735 | static PyObject * PyBitmapDataObject_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
25736 | PyObject *obj; |
25737 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25738 | SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapDataObject, obj); | |
25739 | Py_INCREF(obj); | |
25740 | return Py_BuildValue((char *)""); | |
25741 | } | |
c370783e | 25742 | static PyObject *_wrap_new_FileDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25743 | PyObject *resultobj; |
25744 | wxFileDataObject *result; | |
25745 | char *kwnames[] = { | |
25746 | NULL | |
25747 | }; | |
25748 | ||
25749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDataObject",kwnames)) goto fail; | |
25750 | { | |
25751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25752 | result = (wxFileDataObject *)new wxFileDataObject(); | |
25753 | ||
25754 | wxPyEndAllowThreads(__tstate); | |
25755 | if (PyErr_Occurred()) SWIG_fail; | |
25756 | } | |
25757 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileDataObject, 1); | |
25758 | return resultobj; | |
25759 | fail: | |
25760 | return NULL; | |
25761 | } | |
25762 | ||
25763 | ||
c370783e | 25764 | static PyObject *_wrap_FileDataObject_GetFilenames(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25765 | PyObject *resultobj; |
25766 | wxFileDataObject *arg1 = (wxFileDataObject *) 0 ; | |
25767 | wxArrayString *result; | |
25768 | PyObject * obj0 = 0 ; | |
25769 | char *kwnames[] = { | |
25770 | (char *) "self", NULL | |
25771 | }; | |
25772 | ||
25773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDataObject_GetFilenames",kwnames,&obj0)) goto fail; | |
25774 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject, | |
25775 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25776 | { | |
25777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25778 | { | |
25779 | wxArrayString const &_result_ref = (arg1)->GetFilenames(); | |
25780 | result = (wxArrayString *) &_result_ref; | |
25781 | } | |
25782 | ||
25783 | wxPyEndAllowThreads(__tstate); | |
25784 | if (PyErr_Occurred()) SWIG_fail; | |
25785 | } | |
25786 | { | |
25787 | resultobj = wxArrayString2PyList_helper(*result); | |
25788 | } | |
25789 | return resultobj; | |
25790 | fail: | |
25791 | return NULL; | |
25792 | } | |
25793 | ||
25794 | ||
c370783e | 25795 | static PyObject *_wrap_FileDataObject_AddFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25796 | PyObject *resultobj; |
25797 | wxFileDataObject *arg1 = (wxFileDataObject *) 0 ; | |
25798 | wxString *arg2 = 0 ; | |
b411df4a | 25799 | bool temp2 = false ; |
d55e5bfc RD |
25800 | PyObject * obj0 = 0 ; |
25801 | PyObject * obj1 = 0 ; | |
25802 | char *kwnames[] = { | |
25803 | (char *) "self",(char *) "filename", NULL | |
25804 | }; | |
25805 | ||
25806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDataObject_AddFile",kwnames,&obj0,&obj1)) goto fail; | |
25807 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject, | |
25808 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25809 | { | |
25810 | arg2 = wxString_in_helper(obj1); | |
25811 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 25812 | temp2 = true; |
d55e5bfc RD |
25813 | } |
25814 | { | |
25815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25816 | (arg1)->AddFile((wxString const &)*arg2); | |
25817 | ||
25818 | wxPyEndAllowThreads(__tstate); | |
25819 | if (PyErr_Occurred()) SWIG_fail; | |
25820 | } | |
25821 | Py_INCREF(Py_None); resultobj = Py_None; | |
25822 | { | |
25823 | if (temp2) | |
25824 | delete arg2; | |
25825 | } | |
25826 | return resultobj; | |
25827 | fail: | |
25828 | { | |
25829 | if (temp2) | |
25830 | delete arg2; | |
25831 | } | |
25832 | return NULL; | |
25833 | } | |
25834 | ||
25835 | ||
c370783e | 25836 | static PyObject * FileDataObject_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
25837 | PyObject *obj; |
25838 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25839 | SWIG_TypeClientData(SWIGTYPE_p_wxFileDataObject, obj); | |
25840 | Py_INCREF(obj); | |
25841 | return Py_BuildValue((char *)""); | |
25842 | } | |
c370783e | 25843 | static PyObject *_wrap_new_CustomDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25844 | PyObject *resultobj; |
25845 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
25846 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
25847 | wxCustomDataObject *result; | |
25848 | PyObject * obj0 = 0 ; | |
25849 | char *kwnames[] = { | |
25850 | (char *) "format", NULL | |
25851 | }; | |
25852 | ||
25853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CustomDataObject",kwnames,&obj0)) goto fail; | |
25854 | if (obj0) { | |
25855 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
25856 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25857 | SWIG_fail; | |
25858 | if (arg1 == NULL) { | |
25859 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25860 | SWIG_fail; | |
25861 | } | |
25862 | } | |
25863 | { | |
25864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25865 | result = (wxCustomDataObject *)new wxCustomDataObject((wxDataFormat const &)*arg1); | |
25866 | ||
25867 | wxPyEndAllowThreads(__tstate); | |
25868 | if (PyErr_Occurred()) SWIG_fail; | |
25869 | } | |
25870 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCustomDataObject, 1); | |
25871 | return resultobj; | |
25872 | fail: | |
25873 | return NULL; | |
25874 | } | |
25875 | ||
25876 | ||
c370783e | 25877 | static PyObject *_wrap_CustomDataObject_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25878 | PyObject *resultobj; |
25879 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
25880 | PyObject *arg2 = (PyObject *) 0 ; | |
25881 | bool result; | |
25882 | PyObject * obj0 = 0 ; | |
25883 | PyObject * obj1 = 0 ; | |
25884 | char *kwnames[] = { | |
25885 | (char *) "self",(char *) "data", NULL | |
25886 | }; | |
25887 | ||
25888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_SetData",kwnames,&obj0,&obj1)) goto fail; | |
25889 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, | |
25890 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25891 | arg2 = obj1; | |
25892 | { | |
25893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25894 | result = (bool)wxCustomDataObject_SetData(arg1,arg2); | |
25895 | ||
25896 | wxPyEndAllowThreads(__tstate); | |
25897 | if (PyErr_Occurred()) SWIG_fail; | |
25898 | } | |
25899 | { | |
25900 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25901 | } | |
25902 | return resultobj; | |
25903 | fail: | |
25904 | return NULL; | |
25905 | } | |
25906 | ||
25907 | ||
c370783e | 25908 | static PyObject *_wrap_CustomDataObject_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25909 | PyObject *resultobj; |
25910 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
25911 | size_t result; | |
25912 | PyObject * obj0 = 0 ; | |
25913 | char *kwnames[] = { | |
25914 | (char *) "self", NULL | |
25915 | }; | |
25916 | ||
25917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetSize",kwnames,&obj0)) goto fail; | |
25918 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, | |
25919 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25920 | { | |
25921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25922 | result = (size_t)(arg1)->GetSize(); | |
25923 | ||
25924 | wxPyEndAllowThreads(__tstate); | |
25925 | if (PyErr_Occurred()) SWIG_fail; | |
25926 | } | |
c370783e | 25927 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
25928 | return resultobj; |
25929 | fail: | |
25930 | return NULL; | |
25931 | } | |
25932 | ||
25933 | ||
c370783e | 25934 | static PyObject *_wrap_CustomDataObject_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25935 | PyObject *resultobj; |
25936 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
25937 | PyObject *result; | |
25938 | PyObject * obj0 = 0 ; | |
25939 | char *kwnames[] = { | |
25940 | (char *) "self", NULL | |
25941 | }; | |
25942 | ||
25943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetData",kwnames,&obj0)) goto fail; | |
25944 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, | |
25945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25946 | { | |
25947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25948 | result = (PyObject *)wxCustomDataObject_GetData(arg1); | |
25949 | ||
25950 | wxPyEndAllowThreads(__tstate); | |
25951 | if (PyErr_Occurred()) SWIG_fail; | |
25952 | } | |
25953 | resultobj = result; | |
25954 | return resultobj; | |
25955 | fail: | |
25956 | return NULL; | |
25957 | } | |
25958 | ||
25959 | ||
c370783e | 25960 | static PyObject * CustomDataObject_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
25961 | PyObject *obj; |
25962 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25963 | SWIG_TypeClientData(SWIGTYPE_p_wxCustomDataObject, obj); | |
25964 | Py_INCREF(obj); | |
25965 | return Py_BuildValue((char *)""); | |
25966 | } | |
c370783e | 25967 | static PyObject *_wrap_new_URLDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25968 | PyObject *resultobj; |
25969 | wxURLDataObject *result; | |
25970 | char *kwnames[] = { | |
25971 | NULL | |
25972 | }; | |
25973 | ||
25974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_URLDataObject",kwnames)) goto fail; | |
25975 | { | |
25976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25977 | result = (wxURLDataObject *)new wxURLDataObject(); | |
25978 | ||
25979 | wxPyEndAllowThreads(__tstate); | |
25980 | if (PyErr_Occurred()) SWIG_fail; | |
25981 | } | |
25982 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxURLDataObject, 1); | |
25983 | return resultobj; | |
25984 | fail: | |
25985 | return NULL; | |
25986 | } | |
25987 | ||
25988 | ||
c370783e | 25989 | static PyObject *_wrap_URLDataObject_GetURL(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25990 | PyObject *resultobj; |
25991 | wxURLDataObject *arg1 = (wxURLDataObject *) 0 ; | |
25992 | wxString result; | |
25993 | PyObject * obj0 = 0 ; | |
25994 | char *kwnames[] = { | |
25995 | (char *) "self", NULL | |
25996 | }; | |
25997 | ||
25998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:URLDataObject_GetURL",kwnames,&obj0)) goto fail; | |
25999 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject, | |
26000 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26001 | { | |
26002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26003 | result = (arg1)->GetURL(); | |
26004 | ||
26005 | wxPyEndAllowThreads(__tstate); | |
26006 | if (PyErr_Occurred()) SWIG_fail; | |
26007 | } | |
26008 | { | |
26009 | #if wxUSE_UNICODE | |
26010 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
26011 | #else | |
26012 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
26013 | #endif | |
26014 | } | |
26015 | return resultobj; | |
26016 | fail: | |
26017 | return NULL; | |
26018 | } | |
26019 | ||
26020 | ||
c370783e | 26021 | static PyObject *_wrap_URLDataObject_SetURL(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26022 | PyObject *resultobj; |
26023 | wxURLDataObject *arg1 = (wxURLDataObject *) 0 ; | |
26024 | wxString *arg2 = 0 ; | |
b411df4a | 26025 | bool temp2 = false ; |
d55e5bfc RD |
26026 | PyObject * obj0 = 0 ; |
26027 | PyObject * obj1 = 0 ; | |
26028 | char *kwnames[] = { | |
26029 | (char *) "self",(char *) "url", NULL | |
26030 | }; | |
26031 | ||
26032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:URLDataObject_SetURL",kwnames,&obj0,&obj1)) goto fail; | |
26033 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject, | |
26034 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26035 | { | |
26036 | arg2 = wxString_in_helper(obj1); | |
26037 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 26038 | temp2 = true; |
d55e5bfc RD |
26039 | } |
26040 | { | |
26041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26042 | (arg1)->SetURL((wxString const &)*arg2); | |
26043 | ||
26044 | wxPyEndAllowThreads(__tstate); | |
26045 | if (PyErr_Occurred()) SWIG_fail; | |
26046 | } | |
26047 | Py_INCREF(Py_None); resultobj = Py_None; | |
26048 | { | |
26049 | if (temp2) | |
26050 | delete arg2; | |
26051 | } | |
26052 | return resultobj; | |
26053 | fail: | |
26054 | { | |
26055 | if (temp2) | |
26056 | delete arg2; | |
26057 | } | |
26058 | return NULL; | |
26059 | } | |
26060 | ||
26061 | ||
c370783e | 26062 | static PyObject * URLDataObject_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
26063 | PyObject *obj; |
26064 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26065 | SWIG_TypeClientData(SWIGTYPE_p_wxURLDataObject, obj); | |
26066 | Py_INCREF(obj); | |
26067 | return Py_BuildValue((char *)""); | |
26068 | } | |
c370783e | 26069 | static PyObject *_wrap_new_MetafileDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26070 | PyObject *resultobj; |
26071 | wxMetafileDataObject *result; | |
26072 | char *kwnames[] = { | |
26073 | NULL | |
26074 | }; | |
26075 | ||
26076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MetafileDataObject",kwnames)) goto fail; | |
26077 | { | |
26078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26079 | result = (wxMetafileDataObject *)new wxMetafileDataObject(); | |
26080 | ||
26081 | wxPyEndAllowThreads(__tstate); | |
26082 | if (PyErr_Occurred()) SWIG_fail; | |
26083 | } | |
26084 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetafileDataObject, 1); | |
26085 | return resultobj; | |
26086 | fail: | |
26087 | return NULL; | |
26088 | } | |
26089 | ||
26090 | ||
c370783e | 26091 | static PyObject *_wrap_MetafileDataObject_SetMetafile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26092 | PyObject *resultobj; |
26093 | wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ; | |
26094 | wxMetafile *arg2 = 0 ; | |
26095 | PyObject * obj0 = 0 ; | |
26096 | PyObject * obj1 = 0 ; | |
26097 | char *kwnames[] = { | |
26098 | (char *) "self",(char *) "metafile", NULL | |
26099 | }; | |
26100 | ||
26101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MetafileDataObject_SetMetafile",kwnames,&obj0,&obj1)) goto fail; | |
26102 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetafileDataObject, | |
26103 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26104 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMetafile, | |
26105 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26106 | SWIG_fail; | |
26107 | if (arg2 == NULL) { | |
26108 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26109 | SWIG_fail; | |
26110 | } | |
26111 | { | |
26112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26113 | (arg1)->SetMetafile((wxMetafile const &)*arg2); | |
26114 | ||
26115 | wxPyEndAllowThreads(__tstate); | |
26116 | if (PyErr_Occurred()) SWIG_fail; | |
26117 | } | |
26118 | Py_INCREF(Py_None); resultobj = Py_None; | |
26119 | return resultobj; | |
26120 | fail: | |
26121 | return NULL; | |
26122 | } | |
26123 | ||
26124 | ||
c370783e | 26125 | static PyObject *_wrap_MetafileDataObject_GetMetafile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26126 | PyObject *resultobj; |
26127 | wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ; | |
26128 | wxMetafile result; | |
26129 | PyObject * obj0 = 0 ; | |
26130 | char *kwnames[] = { | |
26131 | (char *) "self", NULL | |
26132 | }; | |
26133 | ||
26134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetafileDataObject_GetMetafile",kwnames,&obj0)) goto fail; | |
26135 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetafileDataObject, | |
26136 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26137 | { | |
26138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26139 | result = ((wxMetafileDataObject const *)arg1)->GetMetafile(); | |
26140 | ||
26141 | wxPyEndAllowThreads(__tstate); | |
26142 | if (PyErr_Occurred()) SWIG_fail; | |
26143 | } | |
26144 | { | |
26145 | wxMetafile * resultptr; | |
26146 | resultptr = new wxMetafile((wxMetafile &) result); | |
26147 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxMetafile, 1); | |
26148 | } | |
26149 | return resultobj; | |
26150 | fail: | |
26151 | return NULL; | |
26152 | } | |
26153 | ||
26154 | ||
c370783e | 26155 | static PyObject * MetafileDataObject_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
26156 | PyObject *obj; |
26157 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26158 | SWIG_TypeClientData(SWIGTYPE_p_wxMetafileDataObject, obj); | |
26159 | Py_INCREF(obj); | |
26160 | return Py_BuildValue((char *)""); | |
26161 | } | |
c370783e | 26162 | static PyObject *_wrap_IsDragResultOk(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26163 | PyObject *resultobj; |
26164 | int arg1 ; | |
26165 | bool result; | |
26166 | PyObject * obj0 = 0 ; | |
26167 | char *kwnames[] = { | |
26168 | (char *) "res", NULL | |
26169 | }; | |
26170 | ||
26171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsDragResultOk",kwnames,&obj0)) goto fail; | |
c370783e | 26172 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
26173 | if (PyErr_Occurred()) SWIG_fail; |
26174 | { | |
26175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26176 | result = (bool)wxIsDragResultOk((wxDragResult )arg1); | |
26177 | ||
26178 | wxPyEndAllowThreads(__tstate); | |
26179 | if (PyErr_Occurred()) SWIG_fail; | |
26180 | } | |
26181 | { | |
26182 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26183 | } | |
26184 | return resultobj; | |
26185 | fail: | |
26186 | return NULL; | |
26187 | } | |
26188 | ||
26189 | ||
c370783e | 26190 | static PyObject *_wrap_new_DropSource(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26191 | PyObject *resultobj; |
26192 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26193 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
26194 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
26195 | wxCursor const &arg3_defvalue = wxNullCursor ; | |
26196 | wxCursor *arg3 = (wxCursor *) &arg3_defvalue ; | |
26197 | wxCursor const &arg4_defvalue = wxNullCursor ; | |
26198 | wxCursor *arg4 = (wxCursor *) &arg4_defvalue ; | |
26199 | wxPyDropSource *result; | |
26200 | PyObject * obj0 = 0 ; | |
26201 | PyObject * obj1 = 0 ; | |
26202 | PyObject * obj2 = 0 ; | |
26203 | PyObject * obj3 = 0 ; | |
26204 | char *kwnames[] = { | |
26205 | (char *) "win",(char *) "copy",(char *) "move",(char *) "none", NULL | |
26206 | }; | |
26207 | ||
26208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DropSource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26209 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26210 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26211 | if (obj1) { | |
26212 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
26213 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26214 | SWIG_fail; | |
26215 | if (arg2 == NULL) { | |
26216 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26217 | SWIG_fail; | |
26218 | } | |
26219 | } | |
26220 | if (obj2) { | |
26221 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor, | |
26222 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26223 | SWIG_fail; | |
26224 | if (arg3 == NULL) { | |
26225 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26226 | SWIG_fail; | |
26227 | } | |
26228 | } | |
26229 | if (obj3) { | |
26230 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxCursor, | |
26231 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26232 | SWIG_fail; | |
26233 | if (arg4 == NULL) { | |
26234 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26235 | SWIG_fail; | |
26236 | } | |
26237 | } | |
26238 | { | |
26239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26240 | result = (wxPyDropSource *)new wxPyDropSource(arg1,(wxCursor const &)*arg2,(wxCursor const &)*arg3,(wxCursor const &)*arg4); | |
26241 | ||
26242 | wxPyEndAllowThreads(__tstate); | |
26243 | if (PyErr_Occurred()) SWIG_fail; | |
26244 | } | |
26245 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropSource, 1); | |
26246 | return resultobj; | |
26247 | fail: | |
26248 | return NULL; | |
26249 | } | |
26250 | ||
26251 | ||
c370783e | 26252 | static PyObject *_wrap_DropSource__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26253 | PyObject *resultobj; |
26254 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
26255 | PyObject *arg2 = (PyObject *) 0 ; | |
26256 | PyObject *arg3 = (PyObject *) 0 ; | |
26257 | int arg4 ; | |
26258 | PyObject * obj0 = 0 ; | |
26259 | PyObject * obj1 = 0 ; | |
26260 | PyObject * obj2 = 0 ; | |
26261 | PyObject * obj3 = 0 ; | |
26262 | char *kwnames[] = { | |
26263 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
26264 | }; | |
26265 | ||
26266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropSource__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
26268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26269 | arg2 = obj1; | |
26270 | arg3 = obj2; | |
c370783e | 26271 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
26272 | if (PyErr_Occurred()) SWIG_fail; |
26273 | { | |
26274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26275 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
26276 | ||
26277 | wxPyEndAllowThreads(__tstate); | |
26278 | if (PyErr_Occurred()) SWIG_fail; | |
26279 | } | |
26280 | Py_INCREF(Py_None); resultobj = Py_None; | |
26281 | return resultobj; | |
26282 | fail: | |
26283 | return NULL; | |
26284 | } | |
26285 | ||
26286 | ||
c370783e | 26287 | static PyObject *_wrap_delete_DropSource(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26288 | PyObject *resultobj; |
26289 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
26290 | PyObject * obj0 = 0 ; | |
26291 | char *kwnames[] = { | |
26292 | (char *) "self", NULL | |
26293 | }; | |
26294 | ||
26295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropSource",kwnames,&obj0)) goto fail; | |
26296 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
26297 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26298 | { | |
26299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26300 | delete arg1; | |
26301 | ||
26302 | wxPyEndAllowThreads(__tstate); | |
26303 | if (PyErr_Occurred()) SWIG_fail; | |
26304 | } | |
26305 | Py_INCREF(Py_None); resultobj = Py_None; | |
26306 | return resultobj; | |
26307 | fail: | |
26308 | return NULL; | |
26309 | } | |
26310 | ||
26311 | ||
c370783e | 26312 | static PyObject *_wrap_DropSource_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26313 | PyObject *resultobj; |
26314 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
26315 | wxDataObject *arg2 = 0 ; | |
26316 | PyObject * obj0 = 0 ; | |
26317 | PyObject * obj1 = 0 ; | |
26318 | char *kwnames[] = { | |
26319 | (char *) "self",(char *) "data", NULL | |
26320 | }; | |
26321 | ||
26322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_SetData",kwnames,&obj0,&obj1)) goto fail; | |
26323 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
26324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26325 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
26326 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26327 | SWIG_fail; | |
26328 | if (arg2 == NULL) { | |
26329 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26330 | SWIG_fail; | |
26331 | } | |
26332 | { | |
26333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26334 | (arg1)->SetData(*arg2); | |
26335 | ||
26336 | wxPyEndAllowThreads(__tstate); | |
26337 | if (PyErr_Occurred()) SWIG_fail; | |
26338 | } | |
26339 | Py_INCREF(Py_None); resultobj = Py_None; | |
26340 | return resultobj; | |
26341 | fail: | |
26342 | return NULL; | |
26343 | } | |
26344 | ||
26345 | ||
c370783e | 26346 | static PyObject *_wrap_DropSource_GetDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26347 | PyObject *resultobj; |
26348 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
26349 | wxDataObject *result; | |
26350 | PyObject * obj0 = 0 ; | |
26351 | char *kwnames[] = { | |
26352 | (char *) "self", NULL | |
26353 | }; | |
26354 | ||
26355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropSource_GetDataObject",kwnames,&obj0)) goto fail; | |
26356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
26357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26358 | { | |
26359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26360 | result = (wxDataObject *)(arg1)->GetDataObject(); | |
26361 | ||
26362 | wxPyEndAllowThreads(__tstate); | |
26363 | if (PyErr_Occurred()) SWIG_fail; | |
26364 | } | |
26365 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0); | |
26366 | return resultobj; | |
26367 | fail: | |
26368 | return NULL; | |
26369 | } | |
26370 | ||
26371 | ||
c370783e | 26372 | static PyObject *_wrap_DropSource_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26373 | PyObject *resultobj; |
26374 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
26375 | int arg2 ; | |
26376 | wxCursor *arg3 = 0 ; | |
26377 | PyObject * obj0 = 0 ; | |
26378 | PyObject * obj1 = 0 ; | |
26379 | PyObject * obj2 = 0 ; | |
26380 | char *kwnames[] = { | |
26381 | (char *) "self",(char *) "res",(char *) "cursor", NULL | |
26382 | }; | |
26383 | ||
26384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropSource_SetCursor",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26385 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
26386 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 26387 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
26388 | if (PyErr_Occurred()) SWIG_fail; |
26389 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor, | |
26390 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26391 | SWIG_fail; | |
26392 | if (arg3 == NULL) { | |
26393 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26394 | SWIG_fail; | |
26395 | } | |
26396 | { | |
26397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26398 | (arg1)->SetCursor((wxDragResult )arg2,(wxCursor const &)*arg3); | |
26399 | ||
26400 | wxPyEndAllowThreads(__tstate); | |
26401 | if (PyErr_Occurred()) SWIG_fail; | |
26402 | } | |
26403 | Py_INCREF(Py_None); resultobj = Py_None; | |
26404 | return resultobj; | |
26405 | fail: | |
26406 | return NULL; | |
26407 | } | |
26408 | ||
26409 | ||
c370783e | 26410 | static PyObject *_wrap_DropSource_DoDragDrop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26411 | PyObject *resultobj; |
26412 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
26413 | int arg2 = (int) wxDrag_CopyOnly ; | |
26414 | int result; | |
26415 | PyObject * obj0 = 0 ; | |
26416 | PyObject * obj1 = 0 ; | |
26417 | char *kwnames[] = { | |
26418 | (char *) "self",(char *) "flags", NULL | |
26419 | }; | |
26420 | ||
26421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DropSource_DoDragDrop",kwnames,&obj0,&obj1)) goto fail; | |
26422 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
26423 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26424 | if (obj1) { | |
c370783e | 26425 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
26426 | if (PyErr_Occurred()) SWIG_fail; |
26427 | } | |
26428 | { | |
26429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26430 | result = (int)(arg1)->DoDragDrop(arg2); | |
26431 | ||
26432 | wxPyEndAllowThreads(__tstate); | |
26433 | if (PyErr_Occurred()) SWIG_fail; | |
26434 | } | |
c370783e | 26435 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
26436 | return resultobj; |
26437 | fail: | |
26438 | return NULL; | |
26439 | } | |
26440 | ||
26441 | ||
c370783e | 26442 | static PyObject *_wrap_DropSource_base_GiveFeedback(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26443 | PyObject *resultobj; |
26444 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
26445 | int arg2 ; | |
26446 | bool result; | |
26447 | PyObject * obj0 = 0 ; | |
26448 | PyObject * obj1 = 0 ; | |
26449 | char *kwnames[] = { | |
26450 | (char *) "self",(char *) "effect", NULL | |
26451 | }; | |
26452 | ||
26453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_base_GiveFeedback",kwnames,&obj0,&obj1)) goto fail; | |
26454 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
26455 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 26456 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
26457 | if (PyErr_Occurred()) SWIG_fail; |
26458 | { | |
26459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26460 | result = (bool)(arg1)->base_GiveFeedback((wxDragResult )arg2); | |
26461 | ||
26462 | wxPyEndAllowThreads(__tstate); | |
26463 | if (PyErr_Occurred()) SWIG_fail; | |
26464 | } | |
26465 | { | |
26466 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26467 | } | |
26468 | return resultobj; | |
26469 | fail: | |
26470 | return NULL; | |
26471 | } | |
26472 | ||
26473 | ||
c370783e | 26474 | static PyObject * DropSource_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
26475 | PyObject *obj; |
26476 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26477 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDropSource, obj); | |
26478 | Py_INCREF(obj); | |
26479 | return Py_BuildValue((char *)""); | |
26480 | } | |
c370783e | 26481 | static PyObject *_wrap_new_DropTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26482 | PyObject *resultobj; |
26483 | wxDataObject *arg1 = (wxDataObject *) NULL ; | |
26484 | wxPyDropTarget *result; | |
26485 | PyObject * obj0 = 0 ; | |
26486 | char *kwnames[] = { | |
26487 | (char *) "dataObject", NULL | |
26488 | }; | |
26489 | ||
26490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DropTarget",kwnames,&obj0)) goto fail; | |
26491 | if (obj0) { | |
26492 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
26493 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
26494 | } | |
26495 | { | |
26496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26497 | result = (wxPyDropTarget *)new wxPyDropTarget(arg1); | |
26498 | ||
26499 | wxPyEndAllowThreads(__tstate); | |
26500 | if (PyErr_Occurred()) SWIG_fail; | |
26501 | } | |
26502 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 1); | |
26503 | return resultobj; | |
26504 | fail: | |
26505 | return NULL; | |
26506 | } | |
26507 | ||
26508 | ||
c370783e | 26509 | static PyObject *_wrap_DropTarget__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26510 | PyObject *resultobj; |
26511 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26512 | PyObject *arg2 = (PyObject *) 0 ; | |
26513 | PyObject *arg3 = (PyObject *) 0 ; | |
26514 | PyObject * obj0 = 0 ; | |
26515 | PyObject * obj1 = 0 ; | |
26516 | PyObject * obj2 = 0 ; | |
26517 | char *kwnames[] = { | |
26518 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
26519 | }; | |
26520 | ||
26521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26522 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26523 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26524 | arg2 = obj1; | |
26525 | arg3 = obj2; | |
26526 | { | |
26527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26528 | (arg1)->_setCallbackInfo(arg2,arg3); | |
26529 | ||
26530 | wxPyEndAllowThreads(__tstate); | |
26531 | if (PyErr_Occurred()) SWIG_fail; | |
26532 | } | |
26533 | Py_INCREF(Py_None); resultobj = Py_None; | |
26534 | return resultobj; | |
26535 | fail: | |
26536 | return NULL; | |
26537 | } | |
26538 | ||
26539 | ||
c370783e | 26540 | static PyObject *_wrap_delete_DropTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26541 | PyObject *resultobj; |
26542 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26543 | PyObject * obj0 = 0 ; | |
26544 | char *kwnames[] = { | |
26545 | (char *) "self", NULL | |
26546 | }; | |
26547 | ||
26548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropTarget",kwnames,&obj0)) goto fail; | |
26549 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26551 | { | |
26552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26553 | delete arg1; | |
26554 | ||
26555 | wxPyEndAllowThreads(__tstate); | |
26556 | if (PyErr_Occurred()) SWIG_fail; | |
26557 | } | |
26558 | Py_INCREF(Py_None); resultobj = Py_None; | |
26559 | return resultobj; | |
26560 | fail: | |
26561 | return NULL; | |
26562 | } | |
26563 | ||
26564 | ||
c370783e | 26565 | static PyObject *_wrap_DropTarget_GetDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26566 | PyObject *resultobj; |
26567 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26568 | wxDataObject *result; | |
26569 | PyObject * obj0 = 0 ; | |
26570 | char *kwnames[] = { | |
26571 | (char *) "self", NULL | |
26572 | }; | |
26573 | ||
26574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDataObject",kwnames,&obj0)) goto fail; | |
26575 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26576 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26577 | { | |
26578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26579 | result = (wxDataObject *)(arg1)->GetDataObject(); | |
26580 | ||
26581 | wxPyEndAllowThreads(__tstate); | |
26582 | if (PyErr_Occurred()) SWIG_fail; | |
26583 | } | |
26584 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0); | |
26585 | return resultobj; | |
26586 | fail: | |
26587 | return NULL; | |
26588 | } | |
26589 | ||
26590 | ||
c370783e | 26591 | static PyObject *_wrap_DropTarget_SetDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26592 | PyObject *resultobj; |
26593 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26594 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
26595 | PyObject * obj0 = 0 ; | |
26596 | PyObject * obj1 = 0 ; | |
26597 | char *kwnames[] = { | |
26598 | (char *) "self",(char *) "dataObject", NULL | |
26599 | }; | |
26600 | ||
26601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDataObject",kwnames,&obj0,&obj1)) goto fail; | |
26602 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26603 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26604 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
26605 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
26606 | { | |
26607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26608 | (arg1)->SetDataObject(arg2); | |
26609 | ||
26610 | wxPyEndAllowThreads(__tstate); | |
26611 | if (PyErr_Occurred()) SWIG_fail; | |
26612 | } | |
26613 | Py_INCREF(Py_None); resultobj = Py_None; | |
26614 | return resultobj; | |
26615 | fail: | |
26616 | return NULL; | |
26617 | } | |
26618 | ||
26619 | ||
c370783e | 26620 | static PyObject *_wrap_DropTarget_base_OnEnter(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26621 | PyObject *resultobj; |
26622 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26623 | int arg2 ; | |
26624 | int arg3 ; | |
26625 | int arg4 ; | |
26626 | int result; | |
26627 | PyObject * obj0 = 0 ; | |
26628 | PyObject * obj1 = 0 ; | |
26629 | PyObject * obj2 = 0 ; | |
26630 | PyObject * obj3 = 0 ; | |
26631 | char *kwnames[] = { | |
26632 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26633 | }; | |
26634 | ||
26635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26636 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 26638 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 26639 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 26640 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 26641 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 26642 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
26643 | if (PyErr_Occurred()) SWIG_fail; |
26644 | { | |
26645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26646 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
26647 | ||
26648 | wxPyEndAllowThreads(__tstate); | |
26649 | if (PyErr_Occurred()) SWIG_fail; | |
26650 | } | |
c370783e | 26651 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
26652 | return resultobj; |
26653 | fail: | |
26654 | return NULL; | |
26655 | } | |
26656 | ||
26657 | ||
c370783e | 26658 | static PyObject *_wrap_DropTarget_base_OnDragOver(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26659 | PyObject *resultobj; |
26660 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26661 | int arg2 ; | |
26662 | int arg3 ; | |
26663 | int arg4 ; | |
26664 | int result; | |
26665 | PyObject * obj0 = 0 ; | |
26666 | PyObject * obj1 = 0 ; | |
26667 | PyObject * obj2 = 0 ; | |
26668 | PyObject * obj3 = 0 ; | |
26669 | char *kwnames[] = { | |
26670 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26671 | }; | |
26672 | ||
26673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26674 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26675 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 26676 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 26677 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 26678 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 26679 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 26680 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
26681 | if (PyErr_Occurred()) SWIG_fail; |
26682 | { | |
26683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26684 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
26685 | ||
26686 | wxPyEndAllowThreads(__tstate); | |
26687 | if (PyErr_Occurred()) SWIG_fail; | |
26688 | } | |
c370783e | 26689 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
26690 | return resultobj; |
26691 | fail: | |
26692 | return NULL; | |
26693 | } | |
26694 | ||
26695 | ||
c370783e | 26696 | static PyObject *_wrap_DropTarget_base_OnLeave(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26697 | PyObject *resultobj; |
26698 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26699 | PyObject * obj0 = 0 ; | |
26700 | char *kwnames[] = { | |
26701 | (char *) "self", NULL | |
26702 | }; | |
26703 | ||
26704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
26705 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26706 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26707 | { | |
26708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26709 | (arg1)->base_OnLeave(); | |
26710 | ||
26711 | wxPyEndAllowThreads(__tstate); | |
26712 | if (PyErr_Occurred()) SWIG_fail; | |
26713 | } | |
26714 | Py_INCREF(Py_None); resultobj = Py_None; | |
26715 | return resultobj; | |
26716 | fail: | |
26717 | return NULL; | |
26718 | } | |
26719 | ||
26720 | ||
c370783e | 26721 | static PyObject *_wrap_DropTarget_base_OnDrop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26722 | PyObject *resultobj; |
26723 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26724 | int arg2 ; | |
26725 | int arg3 ; | |
26726 | bool result; | |
26727 | PyObject * obj0 = 0 ; | |
26728 | PyObject * obj1 = 0 ; | |
26729 | PyObject * obj2 = 0 ; | |
26730 | char *kwnames[] = { | |
26731 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26732 | }; | |
26733 | ||
26734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 26737 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 26738 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 26739 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
26740 | if (PyErr_Occurred()) SWIG_fail; |
26741 | { | |
26742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26743 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
26744 | ||
26745 | wxPyEndAllowThreads(__tstate); | |
26746 | if (PyErr_Occurred()) SWIG_fail; | |
26747 | } | |
26748 | { | |
26749 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26750 | } | |
26751 | return resultobj; | |
26752 | fail: | |
26753 | return NULL; | |
26754 | } | |
26755 | ||
26756 | ||
c370783e | 26757 | static PyObject *_wrap_DropTarget_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26758 | PyObject *resultobj; |
26759 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26760 | bool result; | |
26761 | PyObject * obj0 = 0 ; | |
26762 | char *kwnames[] = { | |
26763 | (char *) "self", NULL | |
26764 | }; | |
26765 | ||
26766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetData",kwnames,&obj0)) goto fail; | |
26767 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26768 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26769 | { | |
26770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26771 | result = (bool)(arg1)->GetData(); | |
26772 | ||
26773 | wxPyEndAllowThreads(__tstate); | |
26774 | if (PyErr_Occurred()) SWIG_fail; | |
26775 | } | |
26776 | { | |
26777 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26778 | } | |
26779 | return resultobj; | |
26780 | fail: | |
26781 | return NULL; | |
26782 | } | |
26783 | ||
26784 | ||
c370783e | 26785 | static PyObject * DropTarget_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
26786 | PyObject *obj; |
26787 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26788 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDropTarget, obj); | |
26789 | Py_INCREF(obj); | |
26790 | return Py_BuildValue((char *)""); | |
26791 | } | |
c370783e | 26792 | static PyObject *_wrap_new_TextDropTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26793 | PyObject *resultobj; |
26794 | wxPyTextDropTarget *result; | |
26795 | char *kwnames[] = { | |
26796 | NULL | |
26797 | }; | |
26798 | ||
26799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TextDropTarget",kwnames)) goto fail; | |
26800 | { | |
26801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26802 | result = (wxPyTextDropTarget *)new wxPyTextDropTarget(); | |
26803 | ||
26804 | wxPyEndAllowThreads(__tstate); | |
26805 | if (PyErr_Occurred()) SWIG_fail; | |
26806 | } | |
26807 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDropTarget, 1); | |
26808 | return resultobj; | |
26809 | fail: | |
26810 | return NULL; | |
26811 | } | |
26812 | ||
26813 | ||
c370783e | 26814 | static PyObject *_wrap_TextDropTarget__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26815 | PyObject *resultobj; |
26816 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26817 | PyObject *arg2 = (PyObject *) 0 ; | |
26818 | PyObject *arg3 = (PyObject *) 0 ; | |
26819 | PyObject * obj0 = 0 ; | |
26820 | PyObject * obj1 = 0 ; | |
26821 | PyObject * obj2 = 0 ; | |
26822 | char *kwnames[] = { | |
26823 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
26824 | }; | |
26825 | ||
26826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26827 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, | |
26828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26829 | arg2 = obj1; | |
26830 | arg3 = obj2; | |
26831 | { | |
26832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26833 | (arg1)->_setCallbackInfo(arg2,arg3); | |
26834 | ||
26835 | wxPyEndAllowThreads(__tstate); | |
26836 | if (PyErr_Occurred()) SWIG_fail; | |
26837 | } | |
26838 | Py_INCREF(Py_None); resultobj = Py_None; | |
26839 | return resultobj; | |
26840 | fail: | |
26841 | return NULL; | |
26842 | } | |
26843 | ||
26844 | ||
c370783e | 26845 | static PyObject *_wrap_TextDropTarget_base_OnEnter(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26846 | PyObject *resultobj; |
26847 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26848 | int arg2 ; | |
26849 | int arg3 ; | |
26850 | int arg4 ; | |
26851 | int result; | |
26852 | PyObject * obj0 = 0 ; | |
26853 | PyObject * obj1 = 0 ; | |
26854 | PyObject * obj2 = 0 ; | |
26855 | PyObject * obj3 = 0 ; | |
26856 | char *kwnames[] = { | |
26857 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26858 | }; | |
26859 | ||
26860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26861 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, | |
26862 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 26863 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 26864 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 26865 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 26866 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 26867 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
26868 | if (PyErr_Occurred()) SWIG_fail; |
26869 | { | |
26870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26871 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
26872 | ||
26873 | wxPyEndAllowThreads(__tstate); | |
26874 | if (PyErr_Occurred()) SWIG_fail; | |
26875 | } | |
c370783e | 26876 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
26877 | return resultobj; |
26878 | fail: | |
26879 | return NULL; | |
26880 | } | |
26881 | ||
26882 | ||
c370783e | 26883 | static PyObject *_wrap_TextDropTarget_base_OnDragOver(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26884 | PyObject *resultobj; |
26885 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26886 | int arg2 ; | |
26887 | int arg3 ; | |
26888 | int arg4 ; | |
26889 | int result; | |
26890 | PyObject * obj0 = 0 ; | |
26891 | PyObject * obj1 = 0 ; | |
26892 | PyObject * obj2 = 0 ; | |
26893 | PyObject * obj3 = 0 ; | |
26894 | char *kwnames[] = { | |
26895 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26896 | }; | |
26897 | ||
26898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26899 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, | |
26900 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 26901 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 26902 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 26903 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 26904 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 26905 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
26906 | if (PyErr_Occurred()) SWIG_fail; |
26907 | { | |
26908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26909 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
26910 | ||
26911 | wxPyEndAllowThreads(__tstate); | |
26912 | if (PyErr_Occurred()) SWIG_fail; | |
26913 | } | |
c370783e | 26914 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
26915 | return resultobj; |
26916 | fail: | |
26917 | return NULL; | |
26918 | } | |
26919 | ||
26920 | ||
c370783e | 26921 | static PyObject *_wrap_TextDropTarget_base_OnLeave(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26922 | PyObject *resultobj; |
26923 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26924 | PyObject * obj0 = 0 ; | |
26925 | char *kwnames[] = { | |
26926 | (char *) "self", NULL | |
26927 | }; | |
26928 | ||
26929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
26930 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, | |
26931 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26932 | { | |
26933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26934 | (arg1)->base_OnLeave(); | |
26935 | ||
26936 | wxPyEndAllowThreads(__tstate); | |
26937 | if (PyErr_Occurred()) SWIG_fail; | |
26938 | } | |
26939 | Py_INCREF(Py_None); resultobj = Py_None; | |
26940 | return resultobj; | |
26941 | fail: | |
26942 | return NULL; | |
26943 | } | |
26944 | ||
26945 | ||
c370783e | 26946 | static PyObject *_wrap_TextDropTarget_base_OnDrop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26947 | PyObject *resultobj; |
26948 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26949 | int arg2 ; | |
26950 | int arg3 ; | |
26951 | bool result; | |
26952 | PyObject * obj0 = 0 ; | |
26953 | PyObject * obj1 = 0 ; | |
26954 | PyObject * obj2 = 0 ; | |
26955 | char *kwnames[] = { | |
26956 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26957 | }; | |
26958 | ||
26959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, | |
26961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 26962 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 26963 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 26964 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
26965 | if (PyErr_Occurred()) SWIG_fail; |
26966 | { | |
26967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26968 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
26969 | ||
26970 | wxPyEndAllowThreads(__tstate); | |
26971 | if (PyErr_Occurred()) SWIG_fail; | |
26972 | } | |
26973 | { | |
26974 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26975 | } | |
26976 | return resultobj; | |
26977 | fail: | |
26978 | return NULL; | |
26979 | } | |
26980 | ||
26981 | ||
c370783e | 26982 | static PyObject *_wrap_TextDropTarget_base_OnData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26983 | PyObject *resultobj; |
26984 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26985 | int arg2 ; | |
26986 | int arg3 ; | |
26987 | int arg4 ; | |
26988 | int result; | |
26989 | PyObject * obj0 = 0 ; | |
26990 | PyObject * obj1 = 0 ; | |
26991 | PyObject * obj2 = 0 ; | |
26992 | PyObject * obj3 = 0 ; | |
26993 | char *kwnames[] = { | |
26994 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26995 | }; | |
26996 | ||
26997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26998 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, | |
26999 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 27000 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 27001 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 27002 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 27003 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 27004 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
27005 | if (PyErr_Occurred()) SWIG_fail; |
27006 | { | |
27007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27008 | result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4); | |
27009 | ||
27010 | wxPyEndAllowThreads(__tstate); | |
27011 | if (PyErr_Occurred()) SWIG_fail; | |
27012 | } | |
c370783e | 27013 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27014 | return resultobj; |
27015 | fail: | |
27016 | return NULL; | |
27017 | } | |
27018 | ||
27019 | ||
c370783e | 27020 | static PyObject * TextDropTarget_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
27021 | PyObject *obj; |
27022 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27023 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDropTarget, obj); | |
27024 | Py_INCREF(obj); | |
27025 | return Py_BuildValue((char *)""); | |
27026 | } | |
c370783e | 27027 | static PyObject *_wrap_new_FileDropTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27028 | PyObject *resultobj; |
27029 | wxPyFileDropTarget *result; | |
27030 | char *kwnames[] = { | |
27031 | NULL | |
27032 | }; | |
27033 | ||
27034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDropTarget",kwnames)) goto fail; | |
27035 | { | |
27036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27037 | result = (wxPyFileDropTarget *)new wxPyFileDropTarget(); | |
27038 | ||
27039 | wxPyEndAllowThreads(__tstate); | |
27040 | if (PyErr_Occurred()) SWIG_fail; | |
27041 | } | |
27042 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileDropTarget, 1); | |
27043 | return resultobj; | |
27044 | fail: | |
27045 | return NULL; | |
27046 | } | |
27047 | ||
27048 | ||
c370783e | 27049 | static PyObject *_wrap_FileDropTarget__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27050 | PyObject *resultobj; |
27051 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
27052 | PyObject *arg2 = (PyObject *) 0 ; | |
27053 | PyObject *arg3 = (PyObject *) 0 ; | |
27054 | PyObject * obj0 = 0 ; | |
27055 | PyObject * obj1 = 0 ; | |
27056 | PyObject * obj2 = 0 ; | |
27057 | char *kwnames[] = { | |
27058 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
27059 | }; | |
27060 | ||
27061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27062 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, | |
27063 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27064 | arg2 = obj1; | |
27065 | arg3 = obj2; | |
27066 | { | |
27067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27068 | (arg1)->_setCallbackInfo(arg2,arg3); | |
27069 | ||
27070 | wxPyEndAllowThreads(__tstate); | |
27071 | if (PyErr_Occurred()) SWIG_fail; | |
27072 | } | |
27073 | Py_INCREF(Py_None); resultobj = Py_None; | |
27074 | return resultobj; | |
27075 | fail: | |
27076 | return NULL; | |
27077 | } | |
27078 | ||
27079 | ||
c370783e | 27080 | static PyObject *_wrap_FileDropTarget_base_OnEnter(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27081 | PyObject *resultobj; |
27082 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
27083 | int arg2 ; | |
27084 | int arg3 ; | |
27085 | int arg4 ; | |
27086 | int result; | |
27087 | PyObject * obj0 = 0 ; | |
27088 | PyObject * obj1 = 0 ; | |
27089 | PyObject * obj2 = 0 ; | |
27090 | PyObject * obj3 = 0 ; | |
27091 | char *kwnames[] = { | |
27092 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
27093 | }; | |
27094 | ||
27095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
27096 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, | |
27097 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 27098 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 27099 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 27100 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 27101 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 27102 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
27103 | if (PyErr_Occurred()) SWIG_fail; |
27104 | { | |
27105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27106 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
27107 | ||
27108 | wxPyEndAllowThreads(__tstate); | |
27109 | if (PyErr_Occurred()) SWIG_fail; | |
27110 | } | |
c370783e | 27111 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27112 | return resultobj; |
27113 | fail: | |
27114 | return NULL; | |
27115 | } | |
27116 | ||
27117 | ||
c370783e | 27118 | static PyObject *_wrap_FileDropTarget_base_OnDragOver(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27119 | PyObject *resultobj; |
27120 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
27121 | int arg2 ; | |
27122 | int arg3 ; | |
27123 | int arg4 ; | |
27124 | int result; | |
27125 | PyObject * obj0 = 0 ; | |
27126 | PyObject * obj1 = 0 ; | |
27127 | PyObject * obj2 = 0 ; | |
27128 | PyObject * obj3 = 0 ; | |
27129 | char *kwnames[] = { | |
27130 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
27131 | }; | |
27132 | ||
27133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
27134 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, | |
27135 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 27136 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 27137 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 27138 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 27139 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 27140 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
27141 | if (PyErr_Occurred()) SWIG_fail; |
27142 | { | |
27143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27144 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
27145 | ||
27146 | wxPyEndAllowThreads(__tstate); | |
27147 | if (PyErr_Occurred()) SWIG_fail; | |
27148 | } | |
c370783e | 27149 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27150 | return resultobj; |
27151 | fail: | |
27152 | return NULL; | |
27153 | } | |
27154 | ||
27155 | ||
c370783e | 27156 | static PyObject *_wrap_FileDropTarget_base_OnLeave(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27157 | PyObject *resultobj; |
27158 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
27159 | PyObject * obj0 = 0 ; | |
27160 | char *kwnames[] = { | |
27161 | (char *) "self", NULL | |
27162 | }; | |
27163 | ||
27164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
27165 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, | |
27166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27167 | { | |
27168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27169 | (arg1)->base_OnLeave(); | |
27170 | ||
27171 | wxPyEndAllowThreads(__tstate); | |
27172 | if (PyErr_Occurred()) SWIG_fail; | |
27173 | } | |
27174 | Py_INCREF(Py_None); resultobj = Py_None; | |
27175 | return resultobj; | |
27176 | fail: | |
27177 | return NULL; | |
27178 | } | |
27179 | ||
27180 | ||
c370783e | 27181 | static PyObject *_wrap_FileDropTarget_base_OnDrop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27182 | PyObject *resultobj; |
27183 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
27184 | int arg2 ; | |
27185 | int arg3 ; | |
27186 | bool result; | |
27187 | PyObject * obj0 = 0 ; | |
27188 | PyObject * obj1 = 0 ; | |
27189 | PyObject * obj2 = 0 ; | |
27190 | char *kwnames[] = { | |
27191 | (char *) "self",(char *) "x",(char *) "y", NULL | |
27192 | }; | |
27193 | ||
27194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27195 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, | |
27196 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 27197 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 27198 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 27199 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
27200 | if (PyErr_Occurred()) SWIG_fail; |
27201 | { | |
27202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27203 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
27204 | ||
27205 | wxPyEndAllowThreads(__tstate); | |
27206 | if (PyErr_Occurred()) SWIG_fail; | |
27207 | } | |
27208 | { | |
27209 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27210 | } | |
27211 | return resultobj; | |
27212 | fail: | |
27213 | return NULL; | |
27214 | } | |
27215 | ||
27216 | ||
c370783e | 27217 | static PyObject *_wrap_FileDropTarget_base_OnData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27218 | PyObject *resultobj; |
27219 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
27220 | int arg2 ; | |
27221 | int arg3 ; | |
27222 | int arg4 ; | |
27223 | int result; | |
27224 | PyObject * obj0 = 0 ; | |
27225 | PyObject * obj1 = 0 ; | |
27226 | PyObject * obj2 = 0 ; | |
27227 | PyObject * obj3 = 0 ; | |
27228 | char *kwnames[] = { | |
27229 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
27230 | }; | |
27231 | ||
27232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
27233 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, | |
27234 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 27235 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 27236 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 27237 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 27238 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 27239 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
27240 | if (PyErr_Occurred()) SWIG_fail; |
27241 | { | |
27242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27243 | result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4); | |
27244 | ||
27245 | wxPyEndAllowThreads(__tstate); | |
27246 | if (PyErr_Occurred()) SWIG_fail; | |
27247 | } | |
c370783e | 27248 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27249 | return resultobj; |
27250 | fail: | |
27251 | return NULL; | |
27252 | } | |
27253 | ||
27254 | ||
c370783e | 27255 | static PyObject * FileDropTarget_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
27256 | PyObject *obj; |
27257 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27258 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFileDropTarget, obj); | |
27259 | Py_INCREF(obj); | |
27260 | return Py_BuildValue((char *)""); | |
27261 | } | |
c370783e | 27262 | static PyObject *_wrap_new_Clipboard(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27263 | PyObject *resultobj; |
27264 | wxClipboard *result; | |
27265 | char *kwnames[] = { | |
27266 | NULL | |
27267 | }; | |
27268 | ||
27269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Clipboard",kwnames)) goto fail; | |
27270 | { | |
27271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27272 | result = (wxClipboard *)new wxClipboard(); | |
27273 | ||
27274 | wxPyEndAllowThreads(__tstate); | |
27275 | if (PyErr_Occurred()) SWIG_fail; | |
27276 | } | |
27277 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 1); | |
27278 | return resultobj; | |
27279 | fail: | |
27280 | return NULL; | |
27281 | } | |
27282 | ||
27283 | ||
c370783e | 27284 | static PyObject *_wrap_delete_Clipboard(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27285 | PyObject *resultobj; |
27286 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27287 | PyObject * obj0 = 0 ; | |
27288 | char *kwnames[] = { | |
27289 | (char *) "self", NULL | |
27290 | }; | |
27291 | ||
27292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Clipboard",kwnames,&obj0)) goto fail; | |
27293 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27294 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27295 | { | |
27296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27297 | delete arg1; | |
27298 | ||
27299 | wxPyEndAllowThreads(__tstate); | |
27300 | if (PyErr_Occurred()) SWIG_fail; | |
27301 | } | |
27302 | Py_INCREF(Py_None); resultobj = Py_None; | |
27303 | return resultobj; | |
27304 | fail: | |
27305 | return NULL; | |
27306 | } | |
27307 | ||
27308 | ||
c370783e | 27309 | static PyObject *_wrap_Clipboard_Open(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27310 | PyObject *resultobj; |
27311 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27312 | bool result; | |
27313 | PyObject * obj0 = 0 ; | |
27314 | char *kwnames[] = { | |
27315 | (char *) "self", NULL | |
27316 | }; | |
27317 | ||
27318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Open",kwnames,&obj0)) goto fail; | |
27319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27321 | { | |
27322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27323 | result = (bool)(arg1)->Open(); | |
27324 | ||
27325 | wxPyEndAllowThreads(__tstate); | |
27326 | if (PyErr_Occurred()) SWIG_fail; | |
27327 | } | |
27328 | { | |
27329 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27330 | } | |
27331 | return resultobj; | |
27332 | fail: | |
27333 | return NULL; | |
27334 | } | |
27335 | ||
27336 | ||
c370783e | 27337 | static PyObject *_wrap_Clipboard_Close(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27338 | PyObject *resultobj; |
27339 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27340 | PyObject * obj0 = 0 ; | |
27341 | char *kwnames[] = { | |
27342 | (char *) "self", NULL | |
27343 | }; | |
27344 | ||
27345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Close",kwnames,&obj0)) goto fail; | |
27346 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27347 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27348 | { | |
27349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27350 | (arg1)->Close(); | |
27351 | ||
27352 | wxPyEndAllowThreads(__tstate); | |
27353 | if (PyErr_Occurred()) SWIG_fail; | |
27354 | } | |
27355 | Py_INCREF(Py_None); resultobj = Py_None; | |
27356 | return resultobj; | |
27357 | fail: | |
27358 | return NULL; | |
27359 | } | |
27360 | ||
27361 | ||
c370783e | 27362 | static PyObject *_wrap_Clipboard_IsOpened(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27363 | PyObject *resultobj; |
27364 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27365 | bool result; | |
27366 | PyObject * obj0 = 0 ; | |
27367 | char *kwnames[] = { | |
27368 | (char *) "self", NULL | |
27369 | }; | |
27370 | ||
27371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_IsOpened",kwnames,&obj0)) goto fail; | |
27372 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27373 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27374 | { | |
27375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27376 | result = (bool)((wxClipboard const *)arg1)->IsOpened(); | |
27377 | ||
27378 | wxPyEndAllowThreads(__tstate); | |
27379 | if (PyErr_Occurred()) SWIG_fail; | |
27380 | } | |
27381 | { | |
27382 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27383 | } | |
27384 | return resultobj; | |
27385 | fail: | |
27386 | return NULL; | |
27387 | } | |
27388 | ||
27389 | ||
c370783e | 27390 | static PyObject *_wrap_Clipboard_AddData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27391 | PyObject *resultobj; |
27392 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27393 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
27394 | bool result; | |
27395 | PyObject * obj0 = 0 ; | |
27396 | PyObject * obj1 = 0 ; | |
27397 | char *kwnames[] = { | |
27398 | (char *) "self",(char *) "data", NULL | |
27399 | }; | |
27400 | ||
27401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_AddData",kwnames,&obj0,&obj1)) goto fail; | |
27402 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27403 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27404 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
27405 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
27406 | { | |
27407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27408 | result = (bool)(arg1)->AddData(arg2); | |
27409 | ||
27410 | wxPyEndAllowThreads(__tstate); | |
27411 | if (PyErr_Occurred()) SWIG_fail; | |
27412 | } | |
27413 | { | |
27414 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27415 | } | |
27416 | return resultobj; | |
27417 | fail: | |
27418 | return NULL; | |
27419 | } | |
27420 | ||
27421 | ||
c370783e | 27422 | static PyObject *_wrap_Clipboard_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27423 | PyObject *resultobj; |
27424 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27425 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
27426 | bool result; | |
27427 | PyObject * obj0 = 0 ; | |
27428 | PyObject * obj1 = 0 ; | |
27429 | char *kwnames[] = { | |
27430 | (char *) "self",(char *) "data", NULL | |
27431 | }; | |
27432 | ||
27433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_SetData",kwnames,&obj0,&obj1)) goto fail; | |
27434 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27435 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27436 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
27437 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
27438 | { | |
27439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27440 | result = (bool)(arg1)->SetData(arg2); | |
27441 | ||
27442 | wxPyEndAllowThreads(__tstate); | |
27443 | if (PyErr_Occurred()) SWIG_fail; | |
27444 | } | |
27445 | { | |
27446 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27447 | } | |
27448 | return resultobj; | |
27449 | fail: | |
27450 | return NULL; | |
27451 | } | |
27452 | ||
27453 | ||
c370783e | 27454 | static PyObject *_wrap_Clipboard_IsSupported(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27455 | PyObject *resultobj; |
27456 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27457 | wxDataFormat *arg2 = 0 ; | |
27458 | bool result; | |
27459 | PyObject * obj0 = 0 ; | |
27460 | PyObject * obj1 = 0 ; | |
27461 | char *kwnames[] = { | |
27462 | (char *) "self",(char *) "format", NULL | |
27463 | }; | |
27464 | ||
27465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_IsSupported",kwnames,&obj0,&obj1)) goto fail; | |
27466 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27467 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27468 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
27469 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27470 | SWIG_fail; | |
27471 | if (arg2 == NULL) { | |
27472 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27473 | SWIG_fail; | |
27474 | } | |
27475 | { | |
27476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27477 | result = (bool)(arg1)->IsSupported((wxDataFormat const &)*arg2); | |
27478 | ||
27479 | wxPyEndAllowThreads(__tstate); | |
27480 | if (PyErr_Occurred()) SWIG_fail; | |
27481 | } | |
27482 | { | |
27483 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27484 | } | |
27485 | return resultobj; | |
27486 | fail: | |
27487 | return NULL; | |
27488 | } | |
27489 | ||
27490 | ||
c370783e | 27491 | static PyObject *_wrap_Clipboard_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27492 | PyObject *resultobj; |
27493 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27494 | wxDataObject *arg2 = 0 ; | |
27495 | bool result; | |
27496 | PyObject * obj0 = 0 ; | |
27497 | PyObject * obj1 = 0 ; | |
27498 | char *kwnames[] = { | |
27499 | (char *) "self",(char *) "data", NULL | |
27500 | }; | |
27501 | ||
27502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_GetData",kwnames,&obj0,&obj1)) goto fail; | |
27503 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27504 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27505 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
27506 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27507 | SWIG_fail; | |
27508 | if (arg2 == NULL) { | |
27509 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27510 | SWIG_fail; | |
27511 | } | |
27512 | { | |
27513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27514 | result = (bool)(arg1)->GetData(*arg2); | |
27515 | ||
27516 | wxPyEndAllowThreads(__tstate); | |
27517 | if (PyErr_Occurred()) SWIG_fail; | |
27518 | } | |
27519 | { | |
27520 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27521 | } | |
27522 | return resultobj; | |
27523 | fail: | |
27524 | return NULL; | |
27525 | } | |
27526 | ||
27527 | ||
c370783e | 27528 | static PyObject *_wrap_Clipboard_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27529 | PyObject *resultobj; |
27530 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27531 | PyObject * obj0 = 0 ; | |
27532 | char *kwnames[] = { | |
27533 | (char *) "self", NULL | |
27534 | }; | |
27535 | ||
27536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Clear",kwnames,&obj0)) goto fail; | |
27537 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27538 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27539 | { | |
27540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27541 | (arg1)->Clear(); | |
27542 | ||
27543 | wxPyEndAllowThreads(__tstate); | |
27544 | if (PyErr_Occurred()) SWIG_fail; | |
27545 | } | |
27546 | Py_INCREF(Py_None); resultobj = Py_None; | |
27547 | return resultobj; | |
27548 | fail: | |
27549 | return NULL; | |
27550 | } | |
27551 | ||
27552 | ||
c370783e | 27553 | static PyObject *_wrap_Clipboard_Flush(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27554 | PyObject *resultobj; |
27555 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27556 | bool result; | |
27557 | PyObject * obj0 = 0 ; | |
27558 | char *kwnames[] = { | |
27559 | (char *) "self", NULL | |
27560 | }; | |
27561 | ||
27562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Flush",kwnames,&obj0)) goto fail; | |
27563 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27564 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27565 | { | |
27566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27567 | result = (bool)(arg1)->Flush(); | |
27568 | ||
27569 | wxPyEndAllowThreads(__tstate); | |
27570 | if (PyErr_Occurred()) SWIG_fail; | |
27571 | } | |
27572 | { | |
27573 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27574 | } | |
27575 | return resultobj; | |
27576 | fail: | |
27577 | return NULL; | |
27578 | } | |
27579 | ||
27580 | ||
c370783e | 27581 | static PyObject *_wrap_Clipboard_UsePrimarySelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27582 | PyObject *resultobj; |
27583 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
b411df4a | 27584 | bool arg2 = (bool) true ; |
d55e5bfc RD |
27585 | PyObject * obj0 = 0 ; |
27586 | PyObject * obj1 = 0 ; | |
27587 | char *kwnames[] = { | |
27588 | (char *) "self",(char *) "primary", NULL | |
27589 | }; | |
27590 | ||
27591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Clipboard_UsePrimarySelection",kwnames,&obj0,&obj1)) goto fail; | |
27592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27594 | if (obj1) { | |
c370783e | 27595 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
27596 | if (PyErr_Occurred()) SWIG_fail; |
27597 | } | |
27598 | { | |
27599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27600 | (arg1)->UsePrimarySelection(arg2); | |
27601 | ||
27602 | wxPyEndAllowThreads(__tstate); | |
27603 | if (PyErr_Occurred()) SWIG_fail; | |
27604 | } | |
27605 | Py_INCREF(Py_None); resultobj = Py_None; | |
27606 | return resultobj; | |
27607 | fail: | |
27608 | return NULL; | |
27609 | } | |
27610 | ||
27611 | ||
c370783e | 27612 | static PyObject *_wrap_Clipboard_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
a001823c RD |
27613 | PyObject *resultobj; |
27614 | wxClipboard *result; | |
27615 | char *kwnames[] = { | |
27616 | NULL | |
27617 | }; | |
27618 | ||
27619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Clipboard_Get",kwnames)) goto fail; | |
27620 | { | |
27621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27622 | result = (wxClipboard *)wxClipboard::Get(); | |
27623 | ||
27624 | wxPyEndAllowThreads(__tstate); | |
27625 | if (PyErr_Occurred()) SWIG_fail; | |
27626 | } | |
27627 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 0); | |
27628 | return resultobj; | |
27629 | fail: | |
27630 | return NULL; | |
27631 | } | |
27632 | ||
27633 | ||
c370783e | 27634 | static PyObject * Clipboard_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
27635 | PyObject *obj; |
27636 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27637 | SWIG_TypeClientData(SWIGTYPE_p_wxClipboard, obj); | |
27638 | Py_INCREF(obj); | |
27639 | return Py_BuildValue((char *)""); | |
27640 | } | |
c370783e | 27641 | static PyObject *_wrap_new_ClipboardLocker(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27642 | PyObject *resultobj; |
27643 | wxClipboard *arg1 = (wxClipboard *) NULL ; | |
27644 | wxClipboardLocker *result; | |
27645 | PyObject * obj0 = 0 ; | |
27646 | char *kwnames[] = { | |
27647 | (char *) "clipboard", NULL | |
27648 | }; | |
27649 | ||
27650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ClipboardLocker",kwnames,&obj0)) goto fail; | |
27651 | if (obj0) { | |
27652 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27653 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27654 | } | |
27655 | { | |
27656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27657 | result = (wxClipboardLocker *)new wxClipboardLocker(arg1); | |
27658 | ||
27659 | wxPyEndAllowThreads(__tstate); | |
27660 | if (PyErr_Occurred()) SWIG_fail; | |
27661 | } | |
27662 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboardLocker, 1); | |
27663 | return resultobj; | |
27664 | fail: | |
27665 | return NULL; | |
27666 | } | |
27667 | ||
27668 | ||
c370783e | 27669 | static PyObject *_wrap_delete_ClipboardLocker(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27670 | PyObject *resultobj; |
27671 | wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ; | |
27672 | PyObject * obj0 = 0 ; | |
27673 | char *kwnames[] = { | |
27674 | (char *) "self", NULL | |
27675 | }; | |
27676 | ||
27677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ClipboardLocker",kwnames,&obj0)) goto fail; | |
27678 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker, | |
27679 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27680 | { | |
27681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27682 | delete arg1; | |
27683 | ||
27684 | wxPyEndAllowThreads(__tstate); | |
27685 | if (PyErr_Occurred()) SWIG_fail; | |
27686 | } | |
27687 | Py_INCREF(Py_None); resultobj = Py_None; | |
27688 | return resultobj; | |
27689 | fail: | |
27690 | return NULL; | |
27691 | } | |
27692 | ||
27693 | ||
c370783e | 27694 | static PyObject *_wrap_ClipboardLocker___nonzero__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27695 | PyObject *resultobj; |
27696 | wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ; | |
27697 | bool result; | |
27698 | PyObject * obj0 = 0 ; | |
27699 | char *kwnames[] = { | |
27700 | (char *) "self", NULL | |
27701 | }; | |
27702 | ||
27703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ClipboardLocker___nonzero__",kwnames,&obj0)) goto fail; | |
27704 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker, | |
27705 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27706 | { | |
27707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27708 | result = (bool)wxClipboardLocker___nonzero__(arg1); | |
27709 | ||
27710 | wxPyEndAllowThreads(__tstate); | |
27711 | if (PyErr_Occurred()) SWIG_fail; | |
27712 | } | |
27713 | { | |
27714 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27715 | } | |
27716 | return resultobj; | |
27717 | fail: | |
27718 | return NULL; | |
27719 | } | |
27720 | ||
27721 | ||
c370783e | 27722 | static PyObject * ClipboardLocker_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
27723 | PyObject *obj; |
27724 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27725 | SWIG_TypeClientData(SWIGTYPE_p_wxClipboardLocker, obj); | |
27726 | Py_INCREF(obj); | |
27727 | return Py_BuildValue((char *)""); | |
27728 | } | |
c370783e | 27729 | static PyObject *_wrap_new_VideoMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27730 | PyObject *resultobj; |
27731 | int arg1 = (int) 0 ; | |
27732 | int arg2 = (int) 0 ; | |
27733 | int arg3 = (int) 0 ; | |
27734 | int arg4 = (int) 0 ; | |
27735 | wxVideoMode *result; | |
27736 | PyObject * obj0 = 0 ; | |
27737 | PyObject * obj1 = 0 ; | |
27738 | PyObject * obj2 = 0 ; | |
27739 | PyObject * obj3 = 0 ; | |
27740 | char *kwnames[] = { | |
27741 | (char *) "width",(char *) "height",(char *) "depth",(char *) "freq", NULL | |
27742 | }; | |
27743 | ||
27744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_VideoMode",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
27745 | if (obj0) { | |
c370783e | 27746 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
27747 | if (PyErr_Occurred()) SWIG_fail; |
27748 | } | |
27749 | if (obj1) { | |
c370783e | 27750 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
27751 | if (PyErr_Occurred()) SWIG_fail; |
27752 | } | |
27753 | if (obj2) { | |
c370783e | 27754 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
27755 | if (PyErr_Occurred()) SWIG_fail; |
27756 | } | |
27757 | if (obj3) { | |
c370783e | 27758 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
27759 | if (PyErr_Occurred()) SWIG_fail; |
27760 | } | |
27761 | { | |
27762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27763 | result = (wxVideoMode *)new wxVideoMode(arg1,arg2,arg3,arg4); | |
27764 | ||
27765 | wxPyEndAllowThreads(__tstate); | |
27766 | if (PyErr_Occurred()) SWIG_fail; | |
27767 | } | |
27768 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVideoMode, 1); | |
27769 | return resultobj; | |
27770 | fail: | |
27771 | return NULL; | |
27772 | } | |
27773 | ||
27774 | ||
c370783e | 27775 | static PyObject *_wrap_delete_VideoMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27776 | PyObject *resultobj; |
27777 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27778 | PyObject * obj0 = 0 ; | |
27779 | char *kwnames[] = { | |
27780 | (char *) "self", NULL | |
27781 | }; | |
27782 | ||
27783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VideoMode",kwnames,&obj0)) goto fail; | |
27784 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27786 | { | |
27787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27788 | delete arg1; | |
27789 | ||
27790 | wxPyEndAllowThreads(__tstate); | |
27791 | if (PyErr_Occurred()) SWIG_fail; | |
27792 | } | |
27793 | Py_INCREF(Py_None); resultobj = Py_None; | |
27794 | return resultobj; | |
27795 | fail: | |
27796 | return NULL; | |
27797 | } | |
27798 | ||
27799 | ||
c370783e | 27800 | static PyObject *_wrap_VideoMode_Matches(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27801 | PyObject *resultobj; |
27802 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27803 | wxVideoMode *arg2 = 0 ; | |
27804 | bool result; | |
27805 | PyObject * obj0 = 0 ; | |
27806 | PyObject * obj1 = 0 ; | |
27807 | char *kwnames[] = { | |
27808 | (char *) "self",(char *) "other", NULL | |
27809 | }; | |
27810 | ||
27811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_Matches",kwnames,&obj0,&obj1)) goto fail; | |
27812 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27813 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27814 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
27815 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27816 | SWIG_fail; | |
27817 | if (arg2 == NULL) { | |
27818 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27819 | SWIG_fail; | |
27820 | } | |
27821 | { | |
27822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27823 | result = (bool)((wxVideoMode const *)arg1)->Matches((wxVideoMode const &)*arg2); | |
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_VideoMode_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27838 | PyObject *resultobj; |
27839 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27840 | int result; | |
27841 | PyObject * obj0 = 0 ; | |
27842 | char *kwnames[] = { | |
27843 | (char *) "self", NULL | |
27844 | }; | |
27845 | ||
27846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetWidth",kwnames,&obj0)) goto fail; | |
27847 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27848 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27849 | { | |
27850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27851 | result = (int)((wxVideoMode const *)arg1)->GetWidth(); | |
27852 | ||
27853 | wxPyEndAllowThreads(__tstate); | |
27854 | if (PyErr_Occurred()) SWIG_fail; | |
27855 | } | |
c370783e | 27856 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27857 | return resultobj; |
27858 | fail: | |
27859 | return NULL; | |
27860 | } | |
27861 | ||
27862 | ||
c370783e | 27863 | static PyObject *_wrap_VideoMode_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27864 | PyObject *resultobj; |
27865 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27866 | int result; | |
27867 | PyObject * obj0 = 0 ; | |
27868 | char *kwnames[] = { | |
27869 | (char *) "self", NULL | |
27870 | }; | |
27871 | ||
27872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetHeight",kwnames,&obj0)) goto fail; | |
27873 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27874 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27875 | { | |
27876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27877 | result = (int)((wxVideoMode const *)arg1)->GetHeight(); | |
27878 | ||
27879 | wxPyEndAllowThreads(__tstate); | |
27880 | if (PyErr_Occurred()) SWIG_fail; | |
27881 | } | |
c370783e | 27882 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27883 | return resultobj; |
27884 | fail: | |
27885 | return NULL; | |
27886 | } | |
27887 | ||
27888 | ||
c370783e | 27889 | static PyObject *_wrap_VideoMode_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27890 | PyObject *resultobj; |
27891 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27892 | int result; | |
27893 | PyObject * obj0 = 0 ; | |
27894 | char *kwnames[] = { | |
27895 | (char *) "self", NULL | |
27896 | }; | |
27897 | ||
27898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetDepth",kwnames,&obj0)) goto fail; | |
27899 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27900 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27901 | { | |
27902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27903 | result = (int)((wxVideoMode const *)arg1)->GetDepth(); | |
27904 | ||
27905 | wxPyEndAllowThreads(__tstate); | |
27906 | if (PyErr_Occurred()) SWIG_fail; | |
27907 | } | |
c370783e | 27908 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27909 | return resultobj; |
27910 | fail: | |
27911 | return NULL; | |
27912 | } | |
27913 | ||
27914 | ||
c370783e | 27915 | static PyObject *_wrap_VideoMode_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27916 | PyObject *resultobj; |
27917 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27918 | bool result; | |
27919 | PyObject * obj0 = 0 ; | |
27920 | char *kwnames[] = { | |
27921 | (char *) "self", NULL | |
27922 | }; | |
27923 | ||
27924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_IsOk",kwnames,&obj0)) goto fail; | |
27925 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27927 | { | |
27928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27929 | result = (bool)((wxVideoMode const *)arg1)->IsOk(); | |
27930 | ||
27931 | wxPyEndAllowThreads(__tstate); | |
27932 | if (PyErr_Occurred()) SWIG_fail; | |
27933 | } | |
27934 | { | |
27935 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27936 | } | |
27937 | return resultobj; | |
27938 | fail: | |
27939 | return NULL; | |
27940 | } | |
27941 | ||
27942 | ||
c370783e | 27943 | static PyObject *_wrap_VideoMode___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27944 | PyObject *resultobj; |
27945 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27946 | wxVideoMode *arg2 = (wxVideoMode *) 0 ; | |
27947 | bool result; | |
27948 | PyObject * obj0 = 0 ; | |
27949 | PyObject * obj1 = 0 ; | |
27950 | char *kwnames[] = { | |
27951 | (char *) "self",(char *) "other", NULL | |
27952 | }; | |
27953 | ||
27954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___eq__",kwnames,&obj0,&obj1)) goto fail; | |
27955 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27956 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27957 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
27958 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27959 | { | |
27960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27961 | result = (bool)wxVideoMode___eq__(arg1,(wxVideoMode const *)arg2); | |
27962 | ||
27963 | wxPyEndAllowThreads(__tstate); | |
27964 | if (PyErr_Occurred()) SWIG_fail; | |
27965 | } | |
27966 | { | |
27967 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27968 | } | |
27969 | return resultobj; | |
27970 | fail: | |
27971 | return NULL; | |
27972 | } | |
27973 | ||
27974 | ||
c370783e | 27975 | static PyObject *_wrap_VideoMode___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27976 | PyObject *resultobj; |
27977 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27978 | wxVideoMode *arg2 = (wxVideoMode *) 0 ; | |
27979 | bool result; | |
27980 | PyObject * obj0 = 0 ; | |
27981 | PyObject * obj1 = 0 ; | |
27982 | char *kwnames[] = { | |
27983 | (char *) "self",(char *) "other", NULL | |
27984 | }; | |
27985 | ||
27986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___ne__",kwnames,&obj0,&obj1)) goto fail; | |
27987 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27988 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27989 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
27990 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27991 | { | |
27992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27993 | result = (bool)wxVideoMode___ne__(arg1,(wxVideoMode const *)arg2); | |
27994 | ||
27995 | wxPyEndAllowThreads(__tstate); | |
27996 | if (PyErr_Occurred()) SWIG_fail; | |
27997 | } | |
27998 | { | |
27999 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28000 | } | |
28001 | return resultobj; | |
28002 | fail: | |
28003 | return NULL; | |
28004 | } | |
28005 | ||
28006 | ||
c370783e | 28007 | static PyObject *_wrap_VideoMode_w_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28008 | PyObject *resultobj; |
28009 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
28010 | int arg2 ; | |
28011 | PyObject * obj0 = 0 ; | |
28012 | PyObject * obj1 = 0 ; | |
28013 | char *kwnames[] = { | |
28014 | (char *) "self",(char *) "w", NULL | |
28015 | }; | |
28016 | ||
28017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_w_set",kwnames,&obj0,&obj1)) goto fail; | |
28018 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
28019 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 28020 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
28021 | if (PyErr_Occurred()) SWIG_fail; |
28022 | if (arg1) (arg1)->w = arg2; | |
28023 | ||
28024 | Py_INCREF(Py_None); resultobj = Py_None; | |
28025 | return resultobj; | |
28026 | fail: | |
28027 | return NULL; | |
28028 | } | |
28029 | ||
28030 | ||
c370783e | 28031 | static PyObject *_wrap_VideoMode_w_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28032 | PyObject *resultobj; |
28033 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
28034 | int result; | |
28035 | PyObject * obj0 = 0 ; | |
28036 | char *kwnames[] = { | |
28037 | (char *) "self", NULL | |
28038 | }; | |
28039 | ||
28040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_w_get",kwnames,&obj0)) goto fail; | |
28041 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
28042 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28043 | result = (int) ((arg1)->w); | |
28044 | ||
c370783e | 28045 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
28046 | return resultobj; |
28047 | fail: | |
28048 | return NULL; | |
28049 | } | |
28050 | ||
28051 | ||
c370783e | 28052 | static PyObject *_wrap_VideoMode_h_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28053 | PyObject *resultobj; |
28054 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
28055 | int arg2 ; | |
28056 | PyObject * obj0 = 0 ; | |
28057 | PyObject * obj1 = 0 ; | |
28058 | char *kwnames[] = { | |
28059 | (char *) "self",(char *) "h", NULL | |
28060 | }; | |
28061 | ||
28062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_h_set",kwnames,&obj0,&obj1)) goto fail; | |
28063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
28064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 28065 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
28066 | if (PyErr_Occurred()) SWIG_fail; |
28067 | if (arg1) (arg1)->h = arg2; | |
28068 | ||
28069 | Py_INCREF(Py_None); resultobj = Py_None; | |
28070 | return resultobj; | |
28071 | fail: | |
28072 | return NULL; | |
28073 | } | |
28074 | ||
28075 | ||
c370783e | 28076 | static PyObject *_wrap_VideoMode_h_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28077 | PyObject *resultobj; |
28078 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
28079 | int result; | |
28080 | PyObject * obj0 = 0 ; | |
28081 | char *kwnames[] = { | |
28082 | (char *) "self", NULL | |
28083 | }; | |
28084 | ||
28085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_h_get",kwnames,&obj0)) goto fail; | |
28086 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
28087 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28088 | result = (int) ((arg1)->h); | |
28089 | ||
c370783e | 28090 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
28091 | return resultobj; |
28092 | fail: | |
28093 | return NULL; | |
28094 | } | |
28095 | ||
28096 | ||
c370783e | 28097 | static PyObject *_wrap_VideoMode_bpp_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28098 | PyObject *resultobj; |
28099 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
28100 | int arg2 ; | |
28101 | PyObject * obj0 = 0 ; | |
28102 | PyObject * obj1 = 0 ; | |
28103 | char *kwnames[] = { | |
28104 | (char *) "self",(char *) "bpp", NULL | |
28105 | }; | |
28106 | ||
28107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_bpp_set",kwnames,&obj0,&obj1)) goto fail; | |
28108 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
28109 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 28110 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
28111 | if (PyErr_Occurred()) SWIG_fail; |
28112 | if (arg1) (arg1)->bpp = arg2; | |
28113 | ||
28114 | Py_INCREF(Py_None); resultobj = Py_None; | |
28115 | return resultobj; | |
28116 | fail: | |
28117 | return NULL; | |
28118 | } | |
28119 | ||
28120 | ||
c370783e | 28121 | static PyObject *_wrap_VideoMode_bpp_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28122 | PyObject *resultobj; |
28123 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
28124 | int result; | |
28125 | PyObject * obj0 = 0 ; | |
28126 | char *kwnames[] = { | |
28127 | (char *) "self", NULL | |
28128 | }; | |
28129 | ||
28130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_bpp_get",kwnames,&obj0)) goto fail; | |
28131 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
28132 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28133 | result = (int) ((arg1)->bpp); | |
28134 | ||
c370783e | 28135 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
28136 | return resultobj; |
28137 | fail: | |
28138 | return NULL; | |
28139 | } | |
28140 | ||
28141 | ||
c370783e | 28142 | static PyObject *_wrap_VideoMode_refresh_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28143 | PyObject *resultobj; |
28144 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
28145 | int arg2 ; | |
28146 | PyObject * obj0 = 0 ; | |
28147 | PyObject * obj1 = 0 ; | |
28148 | char *kwnames[] = { | |
28149 | (char *) "self",(char *) "refresh", NULL | |
28150 | }; | |
28151 | ||
28152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_refresh_set",kwnames,&obj0,&obj1)) goto fail; | |
28153 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
28154 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 28155 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
28156 | if (PyErr_Occurred()) SWIG_fail; |
28157 | if (arg1) (arg1)->refresh = arg2; | |
28158 | ||
28159 | Py_INCREF(Py_None); resultobj = Py_None; | |
28160 | return resultobj; | |
28161 | fail: | |
28162 | return NULL; | |
28163 | } | |
28164 | ||
28165 | ||
c370783e | 28166 | static PyObject *_wrap_VideoMode_refresh_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28167 | PyObject *resultobj; |
28168 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
28169 | int result; | |
28170 | PyObject * obj0 = 0 ; | |
28171 | char *kwnames[] = { | |
28172 | (char *) "self", NULL | |
28173 | }; | |
28174 | ||
28175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_refresh_get",kwnames,&obj0)) goto fail; | |
28176 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
28177 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28178 | result = (int) ((arg1)->refresh); | |
28179 | ||
c370783e | 28180 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
28181 | return resultobj; |
28182 | fail: | |
28183 | return NULL; | |
28184 | } | |
28185 | ||
28186 | ||
c370783e | 28187 | static PyObject * VideoMode_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
28188 | PyObject *obj; |
28189 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28190 | SWIG_TypeClientData(SWIGTYPE_p_wxVideoMode, obj); | |
28191 | Py_INCREF(obj); | |
28192 | return Py_BuildValue((char *)""); | |
28193 | } | |
c370783e | 28194 | static int _wrap_DefaultVideoMode_set(PyObject *) { |
d55e5bfc RD |
28195 | PyErr_SetString(PyExc_TypeError,"Variable DefaultVideoMode is read-only."); |
28196 | return 1; | |
28197 | } | |
28198 | ||
28199 | ||
28200 | static PyObject *_wrap_DefaultVideoMode_get() { | |
28201 | PyObject *pyobj; | |
28202 | ||
28203 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultVideoMode), SWIGTYPE_p_wxVideoMode, 0); | |
28204 | return pyobj; | |
28205 | } | |
28206 | ||
28207 | ||
c370783e | 28208 | static PyObject *_wrap_new_Display(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28209 | PyObject *resultobj; |
28210 | size_t arg1 = (size_t) 0 ; | |
28211 | wxDisplay *result; | |
28212 | PyObject * obj0 = 0 ; | |
28213 | char *kwnames[] = { | |
28214 | (char *) "index", NULL | |
28215 | }; | |
28216 | ||
28217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Display",kwnames,&obj0)) goto fail; | |
28218 | if (obj0) { | |
c370783e | 28219 | arg1 = (size_t)SWIG_As_unsigned_SS_long(obj0); |
d55e5bfc RD |
28220 | if (PyErr_Occurred()) SWIG_fail; |
28221 | } | |
28222 | { | |
28223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28224 | result = (wxDisplay *)new wxDisplay(arg1); | |
28225 | ||
28226 | wxPyEndAllowThreads(__tstate); | |
28227 | if (PyErr_Occurred()) SWIG_fail; | |
28228 | } | |
28229 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplay, 1); | |
28230 | return resultobj; | |
28231 | fail: | |
28232 | return NULL; | |
28233 | } | |
28234 | ||
28235 | ||
c370783e | 28236 | static PyObject *_wrap_delete_Display(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28237 | PyObject *resultobj; |
28238 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28239 | PyObject * obj0 = 0 ; | |
28240 | char *kwnames[] = { | |
28241 | (char *) "self", NULL | |
28242 | }; | |
28243 | ||
28244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Display",kwnames,&obj0)) goto fail; | |
28245 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28246 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28247 | { | |
28248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28249 | delete arg1; | |
28250 | ||
28251 | wxPyEndAllowThreads(__tstate); | |
28252 | if (PyErr_Occurred()) SWIG_fail; | |
28253 | } | |
28254 | Py_INCREF(Py_None); resultobj = Py_None; | |
28255 | return resultobj; | |
28256 | fail: | |
28257 | return NULL; | |
28258 | } | |
28259 | ||
28260 | ||
c370783e | 28261 | static PyObject *_wrap_Display_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28262 | PyObject *resultobj; |
28263 | size_t result; | |
28264 | char *kwnames[] = { | |
28265 | NULL | |
28266 | }; | |
28267 | ||
28268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Display_GetCount",kwnames)) goto fail; | |
28269 | { | |
28270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28271 | result = (size_t)wxDisplay::GetCount(); | |
28272 | ||
28273 | wxPyEndAllowThreads(__tstate); | |
28274 | if (PyErr_Occurred()) SWIG_fail; | |
28275 | } | |
c370783e | 28276 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
28277 | return resultobj; |
28278 | fail: | |
28279 | return NULL; | |
28280 | } | |
28281 | ||
28282 | ||
c370783e | 28283 | static PyObject *_wrap_Display_GetFromPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28284 | PyObject *resultobj; |
28285 | wxPoint *arg1 = 0 ; | |
28286 | int result; | |
28287 | wxPoint temp1 ; | |
28288 | PyObject * obj0 = 0 ; | |
28289 | char *kwnames[] = { | |
28290 | (char *) "pt", NULL | |
28291 | }; | |
28292 | ||
28293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromPoint",kwnames,&obj0)) goto fail; | |
28294 | { | |
28295 | arg1 = &temp1; | |
28296 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
28297 | } | |
28298 | { | |
28299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28300 | result = (int)wxDisplay::GetFromPoint((wxPoint const &)*arg1); | |
28301 | ||
28302 | wxPyEndAllowThreads(__tstate); | |
28303 | if (PyErr_Occurred()) SWIG_fail; | |
28304 | } | |
c370783e | 28305 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
28306 | return resultobj; |
28307 | fail: | |
28308 | return NULL; | |
28309 | } | |
28310 | ||
28311 | ||
c370783e | 28312 | static PyObject *_wrap_Display_GetFromWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28313 | PyObject *resultobj; |
28314 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28315 | int result; | |
28316 | PyObject * obj0 = 0 ; | |
28317 | char *kwnames[] = { | |
28318 | (char *) "window", NULL | |
28319 | }; | |
28320 | ||
28321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromWindow",kwnames,&obj0)) goto fail; | |
28322 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28323 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28324 | { | |
28325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28326 | result = (int)Display_GetFromWindow(arg1); | |
28327 | ||
28328 | wxPyEndAllowThreads(__tstate); | |
28329 | if (PyErr_Occurred()) SWIG_fail; | |
28330 | } | |
c370783e | 28331 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
28332 | return resultobj; |
28333 | fail: | |
28334 | return NULL; | |
28335 | } | |
28336 | ||
28337 | ||
c370783e | 28338 | static PyObject *_wrap_Display_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28339 | PyObject *resultobj; |
28340 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28341 | bool result; | |
28342 | PyObject * obj0 = 0 ; | |
28343 | char *kwnames[] = { | |
28344 | (char *) "self", NULL | |
28345 | }; | |
28346 | ||
28347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsOk",kwnames,&obj0)) goto fail; | |
28348 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28350 | { | |
28351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28352 | result = (bool)((wxDisplay const *)arg1)->IsOk(); | |
28353 | ||
28354 | wxPyEndAllowThreads(__tstate); | |
28355 | if (PyErr_Occurred()) SWIG_fail; | |
28356 | } | |
28357 | { | |
28358 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28359 | } | |
28360 | return resultobj; | |
28361 | fail: | |
28362 | return NULL; | |
28363 | } | |
28364 | ||
28365 | ||
c370783e | 28366 | static PyObject *_wrap_Display_GetGeometry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28367 | PyObject *resultobj; |
28368 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28369 | wxRect result; | |
28370 | PyObject * obj0 = 0 ; | |
28371 | char *kwnames[] = { | |
28372 | (char *) "self", NULL | |
28373 | }; | |
28374 | ||
28375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetGeometry",kwnames,&obj0)) goto fail; | |
28376 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28377 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28378 | { | |
28379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28380 | result = ((wxDisplay const *)arg1)->GetGeometry(); | |
28381 | ||
28382 | wxPyEndAllowThreads(__tstate); | |
28383 | if (PyErr_Occurred()) SWIG_fail; | |
28384 | } | |
28385 | { | |
28386 | wxRect * resultptr; | |
28387 | resultptr = new wxRect((wxRect &) result); | |
28388 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
28389 | } | |
28390 | return resultobj; | |
28391 | fail: | |
28392 | return NULL; | |
28393 | } | |
28394 | ||
28395 | ||
c370783e | 28396 | static PyObject *_wrap_Display_GetName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28397 | PyObject *resultobj; |
28398 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28399 | wxString result; | |
28400 | PyObject * obj0 = 0 ; | |
28401 | char *kwnames[] = { | |
28402 | (char *) "self", NULL | |
28403 | }; | |
28404 | ||
28405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetName",kwnames,&obj0)) goto fail; | |
28406 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28407 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28408 | { | |
28409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28410 | result = ((wxDisplay const *)arg1)->GetName(); | |
28411 | ||
28412 | wxPyEndAllowThreads(__tstate); | |
28413 | if (PyErr_Occurred()) SWIG_fail; | |
28414 | } | |
28415 | { | |
28416 | #if wxUSE_UNICODE | |
28417 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28418 | #else | |
28419 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28420 | #endif | |
28421 | } | |
28422 | return resultobj; | |
28423 | fail: | |
28424 | return NULL; | |
28425 | } | |
28426 | ||
28427 | ||
c370783e | 28428 | static PyObject *_wrap_Display_IsPrimary(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28429 | PyObject *resultobj; |
28430 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28431 | bool result; | |
28432 | PyObject * obj0 = 0 ; | |
28433 | char *kwnames[] = { | |
28434 | (char *) "self", NULL | |
28435 | }; | |
28436 | ||
28437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsPrimary",kwnames,&obj0)) goto fail; | |
28438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28440 | { | |
28441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28442 | result = (bool)((wxDisplay const *)arg1)->IsPrimary(); | |
28443 | ||
28444 | wxPyEndAllowThreads(__tstate); | |
28445 | if (PyErr_Occurred()) SWIG_fail; | |
28446 | } | |
28447 | { | |
28448 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28449 | } | |
28450 | return resultobj; | |
28451 | fail: | |
28452 | return NULL; | |
28453 | } | |
28454 | ||
28455 | ||
c370783e | 28456 | static PyObject *_wrap_Display_GetModes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28457 | PyObject *resultobj; |
28458 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28459 | wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ; | |
28460 | wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ; | |
28461 | PyObject *result; | |
28462 | PyObject * obj0 = 0 ; | |
28463 | PyObject * obj1 = 0 ; | |
28464 | char *kwnames[] = { | |
28465 | (char *) "self",(char *) "mode", NULL | |
28466 | }; | |
28467 | ||
28468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_GetModes",kwnames,&obj0,&obj1)) goto fail; | |
28469 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28470 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28471 | if (obj1) { | |
28472 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
28473 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28474 | SWIG_fail; | |
28475 | if (arg2 == NULL) { | |
28476 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
28477 | SWIG_fail; | |
28478 | } | |
28479 | } | |
28480 | { | |
28481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28482 | result = (PyObject *)wxDisplay_GetModes(arg1,(wxVideoMode const &)*arg2); | |
28483 | ||
28484 | wxPyEndAllowThreads(__tstate); | |
28485 | if (PyErr_Occurred()) SWIG_fail; | |
28486 | } | |
28487 | resultobj = result; | |
28488 | return resultobj; | |
28489 | fail: | |
28490 | return NULL; | |
28491 | } | |
28492 | ||
28493 | ||
c370783e | 28494 | static PyObject *_wrap_Display_GetCurrentMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28495 | PyObject *resultobj; |
28496 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28497 | wxVideoMode result; | |
28498 | PyObject * obj0 = 0 ; | |
28499 | char *kwnames[] = { | |
28500 | (char *) "self", NULL | |
28501 | }; | |
28502 | ||
28503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetCurrentMode",kwnames,&obj0)) goto fail; | |
28504 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28505 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28506 | { | |
28507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28508 | result = ((wxDisplay const *)arg1)->GetCurrentMode(); | |
28509 | ||
28510 | wxPyEndAllowThreads(__tstate); | |
28511 | if (PyErr_Occurred()) SWIG_fail; | |
28512 | } | |
28513 | { | |
28514 | wxVideoMode * resultptr; | |
28515 | resultptr = new wxVideoMode((wxVideoMode &) result); | |
28516 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVideoMode, 1); | |
28517 | } | |
28518 | return resultobj; | |
28519 | fail: | |
28520 | return NULL; | |
28521 | } | |
28522 | ||
28523 | ||
c370783e | 28524 | static PyObject *_wrap_Display_ChangeMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28525 | PyObject *resultobj; |
28526 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28527 | wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ; | |
28528 | wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ; | |
28529 | bool result; | |
28530 | PyObject * obj0 = 0 ; | |
28531 | PyObject * obj1 = 0 ; | |
28532 | char *kwnames[] = { | |
28533 | (char *) "self",(char *) "mode", NULL | |
28534 | }; | |
28535 | ||
28536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_ChangeMode",kwnames,&obj0,&obj1)) goto fail; | |
28537 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28538 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28539 | if (obj1) { | |
28540 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
28541 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28542 | SWIG_fail; | |
28543 | if (arg2 == NULL) { | |
28544 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
28545 | SWIG_fail; | |
28546 | } | |
28547 | } | |
28548 | { | |
28549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28550 | result = (bool)(arg1)->ChangeMode((wxVideoMode const &)*arg2); | |
28551 | ||
28552 | wxPyEndAllowThreads(__tstate); | |
28553 | if (PyErr_Occurred()) SWIG_fail; | |
28554 | } | |
28555 | { | |
28556 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28557 | } | |
28558 | return resultobj; | |
28559 | fail: | |
28560 | return NULL; | |
28561 | } | |
28562 | ||
28563 | ||
c370783e | 28564 | static PyObject *_wrap_Display_ResetMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28565 | PyObject *resultobj; |
28566 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28567 | PyObject * obj0 = 0 ; | |
28568 | char *kwnames[] = { | |
28569 | (char *) "self", NULL | |
28570 | }; | |
28571 | ||
28572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_ResetMode",kwnames,&obj0)) goto fail; | |
28573 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28574 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28575 | { | |
28576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28577 | (arg1)->ResetMode(); | |
28578 | ||
28579 | wxPyEndAllowThreads(__tstate); | |
28580 | if (PyErr_Occurred()) SWIG_fail; | |
28581 | } | |
28582 | Py_INCREF(Py_None); resultobj = Py_None; | |
28583 | return resultobj; | |
28584 | fail: | |
28585 | return NULL; | |
28586 | } | |
28587 | ||
28588 | ||
c370783e | 28589 | static PyObject * Display_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
28590 | PyObject *obj; |
28591 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28592 | SWIG_TypeClientData(SWIGTYPE_p_wxDisplay, obj); | |
28593 | Py_INCREF(obj); | |
28594 | return Py_BuildValue((char *)""); | |
28595 | } | |
070c48b4 RD |
28596 | static PyObject *_wrap_StandardPaths_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
28597 | PyObject *resultobj; | |
28598 | wxStandardPaths *result; | |
28599 | char *kwnames[] = { | |
28600 | NULL | |
28601 | }; | |
28602 | ||
28603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StandardPaths_Get",kwnames)) goto fail; | |
28604 | { | |
28605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28606 | { | |
28607 | wxStandardPaths &_result_ref = wxStandardPaths::Get(); | |
28608 | result = (wxStandardPaths *) &_result_ref; | |
28609 | } | |
28610 | ||
28611 | wxPyEndAllowThreads(__tstate); | |
28612 | if (PyErr_Occurred()) SWIG_fail; | |
28613 | } | |
28614 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStandardPaths, 0); | |
28615 | return resultobj; | |
28616 | fail: | |
28617 | return NULL; | |
28618 | } | |
28619 | ||
28620 | ||
28621 | static PyObject *_wrap_StandardPaths_GetConfigDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
28622 | PyObject *resultobj; | |
28623 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; | |
28624 | wxString result; | |
28625 | PyObject * obj0 = 0 ; | |
28626 | char *kwnames[] = { | |
28627 | (char *) "self", NULL | |
28628 | }; | |
28629 | ||
28630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetConfigDir",kwnames,&obj0)) goto fail; | |
28631 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths, | |
28632 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28633 | { | |
28634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28635 | result = ((wxStandardPaths const *)arg1)->GetConfigDir(); | |
28636 | ||
28637 | wxPyEndAllowThreads(__tstate); | |
28638 | if (PyErr_Occurred()) SWIG_fail; | |
28639 | } | |
28640 | { | |
28641 | #if wxUSE_UNICODE | |
28642 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28643 | #else | |
28644 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28645 | #endif | |
28646 | } | |
28647 | return resultobj; | |
28648 | fail: | |
28649 | return NULL; | |
28650 | } | |
28651 | ||
28652 | ||
28653 | static PyObject *_wrap_StandardPaths_GetUserConfigDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
28654 | PyObject *resultobj; | |
28655 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; | |
28656 | wxString result; | |
28657 | PyObject * obj0 = 0 ; | |
28658 | char *kwnames[] = { | |
28659 | (char *) "self", NULL | |
28660 | }; | |
28661 | ||
28662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetUserConfigDir",kwnames,&obj0)) goto fail; | |
28663 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths, | |
28664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28665 | { | |
28666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28667 | result = ((wxStandardPaths const *)arg1)->GetUserConfigDir(); | |
28668 | ||
28669 | wxPyEndAllowThreads(__tstate); | |
28670 | if (PyErr_Occurred()) SWIG_fail; | |
28671 | } | |
28672 | { | |
28673 | #if wxUSE_UNICODE | |
28674 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28675 | #else | |
28676 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28677 | #endif | |
28678 | } | |
28679 | return resultobj; | |
28680 | fail: | |
28681 | return NULL; | |
28682 | } | |
28683 | ||
28684 | ||
28685 | static PyObject *_wrap_StandardPaths_GetDataDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
28686 | PyObject *resultobj; | |
28687 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; | |
28688 | wxString result; | |
28689 | PyObject * obj0 = 0 ; | |
28690 | char *kwnames[] = { | |
28691 | (char *) "self", NULL | |
28692 | }; | |
28693 | ||
28694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetDataDir",kwnames,&obj0)) goto fail; | |
28695 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths, | |
28696 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28697 | { | |
28698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28699 | result = ((wxStandardPaths const *)arg1)->GetDataDir(); | |
28700 | ||
28701 | wxPyEndAllowThreads(__tstate); | |
28702 | if (PyErr_Occurred()) SWIG_fail; | |
28703 | } | |
28704 | { | |
28705 | #if wxUSE_UNICODE | |
28706 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28707 | #else | |
28708 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28709 | #endif | |
28710 | } | |
28711 | return resultobj; | |
28712 | fail: | |
28713 | return NULL; | |
28714 | } | |
28715 | ||
28716 | ||
28717 | static PyObject *_wrap_StandardPaths_GetLocalDataDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
28718 | PyObject *resultobj; | |
28719 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; | |
28720 | wxString result; | |
28721 | PyObject * obj0 = 0 ; | |
28722 | char *kwnames[] = { | |
28723 | (char *) "self", NULL | |
28724 | }; | |
28725 | ||
28726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetLocalDataDir",kwnames,&obj0)) goto fail; | |
28727 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths, | |
28728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28729 | { | |
28730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28731 | result = ((wxStandardPaths const *)arg1)->GetLocalDataDir(); | |
28732 | ||
28733 | wxPyEndAllowThreads(__tstate); | |
28734 | if (PyErr_Occurred()) SWIG_fail; | |
28735 | } | |
28736 | { | |
28737 | #if wxUSE_UNICODE | |
28738 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28739 | #else | |
28740 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28741 | #endif | |
28742 | } | |
28743 | return resultobj; | |
28744 | fail: | |
28745 | return NULL; | |
28746 | } | |
28747 | ||
28748 | ||
28749 | static PyObject *_wrap_StandardPaths_GetUserDataDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
28750 | PyObject *resultobj; | |
28751 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; | |
28752 | wxString result; | |
28753 | PyObject * obj0 = 0 ; | |
28754 | char *kwnames[] = { | |
28755 | (char *) "self", NULL | |
28756 | }; | |
28757 | ||
28758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetUserDataDir",kwnames,&obj0)) goto fail; | |
28759 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths, | |
28760 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28761 | { | |
28762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28763 | result = ((wxStandardPaths const *)arg1)->GetUserDataDir(); | |
28764 | ||
28765 | wxPyEndAllowThreads(__tstate); | |
28766 | if (PyErr_Occurred()) SWIG_fail; | |
28767 | } | |
28768 | { | |
28769 | #if wxUSE_UNICODE | |
28770 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28771 | #else | |
28772 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28773 | #endif | |
28774 | } | |
28775 | return resultobj; | |
28776 | fail: | |
28777 | return NULL; | |
28778 | } | |
28779 | ||
28780 | ||
28781 | static PyObject *_wrap_StandardPaths_GetUserLocalDataDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
28782 | PyObject *resultobj; | |
28783 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; | |
28784 | wxString result; | |
28785 | PyObject * obj0 = 0 ; | |
28786 | char *kwnames[] = { | |
28787 | (char *) "self", NULL | |
28788 | }; | |
28789 | ||
28790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetUserLocalDataDir",kwnames,&obj0)) goto fail; | |
28791 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths, | |
28792 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28793 | { | |
28794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28795 | result = ((wxStandardPaths const *)arg1)->GetUserLocalDataDir(); | |
28796 | ||
28797 | wxPyEndAllowThreads(__tstate); | |
28798 | if (PyErr_Occurred()) SWIG_fail; | |
28799 | } | |
28800 | { | |
28801 | #if wxUSE_UNICODE | |
28802 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28803 | #else | |
28804 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28805 | #endif | |
28806 | } | |
28807 | return resultobj; | |
28808 | fail: | |
28809 | return NULL; | |
28810 | } | |
28811 | ||
28812 | ||
28813 | static PyObject *_wrap_StandardPaths_GetPluginsDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
28814 | PyObject *resultobj; | |
28815 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; | |
28816 | wxString result; | |
28817 | PyObject * obj0 = 0 ; | |
28818 | char *kwnames[] = { | |
28819 | (char *) "self", NULL | |
28820 | }; | |
28821 | ||
28822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetPluginsDir",kwnames,&obj0)) goto fail; | |
28823 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths, | |
28824 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28825 | { | |
28826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28827 | result = ((wxStandardPaths const *)arg1)->GetPluginsDir(); | |
28828 | ||
28829 | wxPyEndAllowThreads(__tstate); | |
28830 | if (PyErr_Occurred()) SWIG_fail; | |
28831 | } | |
28832 | { | |
28833 | #if wxUSE_UNICODE | |
28834 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28835 | #else | |
28836 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28837 | #endif | |
28838 | } | |
28839 | return resultobj; | |
28840 | fail: | |
28841 | return NULL; | |
28842 | } | |
28843 | ||
28844 | ||
28845 | static PyObject *_wrap_StandardPaths_SetInstallPrefix(PyObject *, PyObject *args, PyObject *kwargs) { | |
28846 | PyObject *resultobj; | |
28847 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; | |
28848 | wxString *arg2 = 0 ; | |
28849 | bool temp2 = false ; | |
28850 | PyObject * obj0 = 0 ; | |
28851 | PyObject * obj1 = 0 ; | |
28852 | char *kwnames[] = { | |
28853 | (char *) "self",(char *) "prefix", NULL | |
28854 | }; | |
28855 | ||
28856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StandardPaths_SetInstallPrefix",kwnames,&obj0,&obj1)) goto fail; | |
28857 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths, | |
28858 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28859 | { | |
28860 | arg2 = wxString_in_helper(obj1); | |
28861 | if (arg2 == NULL) SWIG_fail; | |
28862 | temp2 = true; | |
28863 | } | |
28864 | { | |
28865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28866 | wxStandardPaths_SetInstallPrefix(arg1,(wxString const &)*arg2); | |
28867 | ||
28868 | wxPyEndAllowThreads(__tstate); | |
28869 | if (PyErr_Occurred()) SWIG_fail; | |
28870 | } | |
28871 | Py_INCREF(Py_None); resultobj = Py_None; | |
28872 | { | |
28873 | if (temp2) | |
28874 | delete arg2; | |
28875 | } | |
28876 | return resultobj; | |
28877 | fail: | |
28878 | { | |
28879 | if (temp2) | |
28880 | delete arg2; | |
28881 | } | |
28882 | return NULL; | |
28883 | } | |
28884 | ||
28885 | ||
28886 | static PyObject *_wrap_StandardPaths_GetInstallPrefix(PyObject *, PyObject *args, PyObject *kwargs) { | |
28887 | PyObject *resultobj; | |
28888 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; | |
28889 | wxString result; | |
28890 | PyObject * obj0 = 0 ; | |
28891 | char *kwnames[] = { | |
28892 | (char *) "self", NULL | |
28893 | }; | |
28894 | ||
28895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetInstallPrefix",kwnames,&obj0)) goto fail; | |
28896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths, | |
28897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28898 | { | |
28899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28900 | result = wxStandardPaths_GetInstallPrefix(arg1); | |
28901 | ||
28902 | wxPyEndAllowThreads(__tstate); | |
28903 | if (PyErr_Occurred()) SWIG_fail; | |
28904 | } | |
28905 | { | |
28906 | #if wxUSE_UNICODE | |
28907 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28908 | #else | |
28909 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28910 | #endif | |
28911 | } | |
28912 | return resultobj; | |
28913 | fail: | |
28914 | return NULL; | |
28915 | } | |
28916 | ||
28917 | ||
28918 | static PyObject * StandardPaths_swigregister(PyObject *, PyObject *args) { | |
28919 | PyObject *obj; | |
28920 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28921 | SWIG_TypeClientData(SWIGTYPE_p_wxStandardPaths, obj); | |
28922 | Py_INCREF(obj); | |
28923 | return Py_BuildValue((char *)""); | |
28924 | } | |
d55e5bfc | 28925 | static PyMethodDef SwigMethods[] = { |
c370783e RD |
28926 | { (char *)"SystemSettings_GetColour", (PyCFunction) _wrap_SystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS, NULL }, |
28927 | { (char *)"SystemSettings_GetFont", (PyCFunction) _wrap_SystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28928 | { (char *)"SystemSettings_GetMetric", (PyCFunction) _wrap_SystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28929 | { (char *)"SystemSettings_HasFeature", (PyCFunction) _wrap_SystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28930 | { (char *)"SystemSettings_GetScreenType", (PyCFunction) _wrap_SystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28931 | { (char *)"SystemSettings_SetScreenType", (PyCFunction) _wrap_SystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28932 | { (char *)"SystemSettings_swigregister", SystemSettings_swigregister, METH_VARARGS, NULL }, | |
28933 | { (char *)"new_SystemOptions", (PyCFunction) _wrap_new_SystemOptions, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28934 | { (char *)"SystemOptions_SetOption", (PyCFunction) _wrap_SystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28935 | { (char *)"SystemOptions_SetOptionInt", (PyCFunction) _wrap_SystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28936 | { (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28937 | { (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28938 | { (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28939 | { (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS, NULL }, | |
28940 | { (char *)"NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28941 | { (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28942 | { (char *)"GetCurrentId", (PyCFunction) _wrap_GetCurrentId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28943 | { (char *)"IsStockID", (PyCFunction) _wrap_IsStockID, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28944 | { (char *)"IsStockLabel", (PyCFunction) _wrap_IsStockLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28945 | { (char *)"GetStockLabel", (PyCFunction) _wrap_GetStockLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28946 | { (char *)"Bell", (PyCFunction) _wrap_Bell, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28947 | { (char *)"EndBusyCursor", (PyCFunction) _wrap_EndBusyCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28948 | { (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28949 | { (char *)"GetMousePosition", (PyCFunction) _wrap_GetMousePosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28950 | { (char *)"IsBusy", (PyCFunction) _wrap_IsBusy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28951 | { (char *)"Now", (PyCFunction) _wrap_Now, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28952 | { (char *)"Shell", (PyCFunction) _wrap_Shell, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28953 | { (char *)"StartTimer", (PyCFunction) _wrap_StartTimer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28954 | { (char *)"GetOsVersion", (PyCFunction) _wrap_GetOsVersion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28955 | { (char *)"GetOsDescription", (PyCFunction) _wrap_GetOsDescription, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28956 | { (char *)"GetFreeMemory", (PyCFunction) _wrap_GetFreeMemory, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28957 | { (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28958 | { (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28959 | { (char *)"MilliSleep", (PyCFunction) _wrap_MilliSleep, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28960 | { (char *)"MicroSleep", (PyCFunction) _wrap_MicroSleep, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28961 | { (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28962 | { (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28963 | { (char *)"GetEmailAddress", (PyCFunction) _wrap_GetEmailAddress, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28964 | { (char *)"GetHostName", (PyCFunction) _wrap_GetHostName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28965 | { (char *)"GetFullHostName", (PyCFunction) _wrap_GetFullHostName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28966 | { (char *)"GetUserId", (PyCFunction) _wrap_GetUserId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28967 | { (char *)"GetUserName", (PyCFunction) _wrap_GetUserName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28968 | { (char *)"GetHomeDir", (PyCFunction) _wrap_GetHomeDir, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28969 | { (char *)"GetUserHome", (PyCFunction) _wrap_GetUserHome, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28970 | { (char *)"GetProcessId", (PyCFunction) _wrap_GetProcessId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28971 | { (char *)"Trap", (PyCFunction) _wrap_Trap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28972 | { (char *)"FileSelector", (PyCFunction) _wrap_FileSelector, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28973 | { (char *)"LoadFileSelector", (PyCFunction) _wrap_LoadFileSelector, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28974 | { (char *)"SaveFileSelector", (PyCFunction) _wrap_SaveFileSelector, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28975 | { (char *)"DirSelector", (PyCFunction) _wrap_DirSelector, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28976 | { (char *)"GetTextFromUser", (PyCFunction) _wrap_GetTextFromUser, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28977 | { (char *)"GetPasswordFromUser", (PyCFunction) _wrap_GetPasswordFromUser, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28978 | { (char *)"GetSingleChoice", (PyCFunction) _wrap_GetSingleChoice, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28979 | { (char *)"GetSingleChoiceIndex", (PyCFunction) _wrap_GetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28980 | { (char *)"MessageBox", (PyCFunction) _wrap_MessageBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28981 | { (char *)"GetNumberFromUser", (PyCFunction) _wrap_GetNumberFromUser, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28982 | { (char *)"ColourDisplay", (PyCFunction) _wrap_ColourDisplay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28983 | { (char *)"DisplayDepth", (PyCFunction) _wrap_DisplayDepth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28984 | { (char *)"GetDisplayDepth", (PyCFunction) _wrap_GetDisplayDepth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28985 | { (char *)"DisplaySize", (PyCFunction) _wrap_DisplaySize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28986 | { (char *)"GetDisplaySize", (PyCFunction) _wrap_GetDisplaySize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28987 | { (char *)"DisplaySizeMM", (PyCFunction) _wrap_DisplaySizeMM, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28988 | { (char *)"GetDisplaySizeMM", (PyCFunction) _wrap_GetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28989 | { (char *)"ClientDisplayRect", (PyCFunction) _wrap_ClientDisplayRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28990 | { (char *)"GetClientDisplayRect", (PyCFunction) _wrap_GetClientDisplayRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28991 | { (char *)"SetCursor", (PyCFunction) _wrap_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28992 | { (char *)"BeginBusyCursor", (PyCFunction) _wrap_BeginBusyCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28993 | { (char *)"GetActiveWindow", (PyCFunction) _wrap_GetActiveWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28994 | { (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28995 | { (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28996 | { (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28997 | { (char *)"GetKeyState", (PyCFunction) _wrap_GetKeyState, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28998 | { (char *)"WakeUpMainThread", (PyCFunction) _wrap_WakeUpMainThread, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28999 | { (char *)"MutexGuiEnter", (PyCFunction) _wrap_MutexGuiEnter, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29000 | { (char *)"MutexGuiLeave", (PyCFunction) _wrap_MutexGuiLeave, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29001 | { (char *)"new_MutexGuiLocker", (PyCFunction) _wrap_new_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29002 | { (char *)"delete_MutexGuiLocker", (PyCFunction) _wrap_delete_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29003 | { (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS, NULL }, | |
29004 | { (char *)"Thread_IsMain", (PyCFunction) _wrap_Thread_IsMain, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29005 | { (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29006 | { (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29007 | { (char *)"ToolTip_GetTip", (PyCFunction) _wrap_ToolTip_GetTip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29008 | { (char *)"ToolTip_GetWindow", (PyCFunction) _wrap_ToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29009 | { (char *)"ToolTip_Enable", (PyCFunction) _wrap_ToolTip_Enable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29010 | { (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29011 | { (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS, NULL }, | |
29012 | { (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29013 | { (char *)"delete_Caret", (PyCFunction) _wrap_delete_Caret, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29014 | { (char *)"Caret_IsOk", (PyCFunction) _wrap_Caret_IsOk, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29015 | { (char *)"Caret_IsVisible", (PyCFunction) _wrap_Caret_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29016 | { (char *)"Caret_GetPosition", (PyCFunction) _wrap_Caret_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29017 | { (char *)"Caret_GetPositionTuple", (PyCFunction) _wrap_Caret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29018 | { (char *)"Caret_GetSize", (PyCFunction) _wrap_Caret_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29019 | { (char *)"Caret_GetSizeTuple", (PyCFunction) _wrap_Caret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29020 | { (char *)"Caret_GetWindow", (PyCFunction) _wrap_Caret_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29021 | { (char *)"Caret_MoveXY", (PyCFunction) _wrap_Caret_MoveXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29022 | { (char *)"Caret_Move", (PyCFunction) _wrap_Caret_Move, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29023 | { (char *)"Caret_SetSizeWH", (PyCFunction) _wrap_Caret_SetSizeWH, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29024 | { (char *)"Caret_SetSize", (PyCFunction) _wrap_Caret_SetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29025 | { (char *)"Caret_Show", (PyCFunction) _wrap_Caret_Show, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29026 | { (char *)"Caret_Hide", (PyCFunction) _wrap_Caret_Hide, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29027 | { (char *)"Caret_swigregister", Caret_swigregister, METH_VARARGS, NULL }, | |
29028 | { (char *)"Caret_GetBlinkTime", (PyCFunction) _wrap_Caret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29029 | { (char *)"Caret_SetBlinkTime", (PyCFunction) _wrap_Caret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29030 | { (char *)"new_BusyCursor", (PyCFunction) _wrap_new_BusyCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29031 | { (char *)"delete_BusyCursor", (PyCFunction) _wrap_delete_BusyCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29032 | { (char *)"BusyCursor_swigregister", BusyCursor_swigregister, METH_VARARGS, NULL }, | |
29033 | { (char *)"new_WindowDisabler", (PyCFunction) _wrap_new_WindowDisabler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29034 | { (char *)"delete_WindowDisabler", (PyCFunction) _wrap_delete_WindowDisabler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29035 | { (char *)"WindowDisabler_swigregister", WindowDisabler_swigregister, METH_VARARGS, NULL }, | |
29036 | { (char *)"new_BusyInfo", (PyCFunction) _wrap_new_BusyInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29037 | { (char *)"delete_BusyInfo", (PyCFunction) _wrap_delete_BusyInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29038 | { (char *)"BusyInfo_swigregister", BusyInfo_swigregister, METH_VARARGS, NULL }, | |
29039 | { (char *)"new_StopWatch", (PyCFunction) _wrap_new_StopWatch, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29040 | { (char *)"StopWatch_Start", (PyCFunction) _wrap_StopWatch_Start, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29041 | { (char *)"StopWatch_Pause", (PyCFunction) _wrap_StopWatch_Pause, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29042 | { (char *)"StopWatch_Resume", (PyCFunction) _wrap_StopWatch_Resume, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29043 | { (char *)"StopWatch_Time", (PyCFunction) _wrap_StopWatch_Time, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29044 | { (char *)"StopWatch_swigregister", StopWatch_swigregister, METH_VARARGS, NULL }, | |
29045 | { (char *)"new_FileHistory", (PyCFunction) _wrap_new_FileHistory, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29046 | { (char *)"delete_FileHistory", (PyCFunction) _wrap_delete_FileHistory, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29047 | { (char *)"FileHistory_AddFileToHistory", (PyCFunction) _wrap_FileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29048 | { (char *)"FileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_FileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29049 | { (char *)"FileHistory_GetMaxFiles", (PyCFunction) _wrap_FileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29050 | { (char *)"FileHistory_UseMenu", (PyCFunction) _wrap_FileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29051 | { (char *)"FileHistory_RemoveMenu", (PyCFunction) _wrap_FileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29052 | { (char *)"FileHistory_Load", (PyCFunction) _wrap_FileHistory_Load, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29053 | { (char *)"FileHistory_Save", (PyCFunction) _wrap_FileHistory_Save, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29054 | { (char *)"FileHistory_AddFilesToMenu", (PyCFunction) _wrap_FileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29055 | { (char *)"FileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_FileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29056 | { (char *)"FileHistory_GetHistoryFile", (PyCFunction) _wrap_FileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29057 | { (char *)"FileHistory_GetCount", (PyCFunction) _wrap_FileHistory_GetCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29058 | { (char *)"FileHistory_swigregister", FileHistory_swigregister, METH_VARARGS, NULL }, | |
29059 | { (char *)"new_SingleInstanceChecker", (PyCFunction) _wrap_new_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29060 | { (char *)"new_PreSingleInstanceChecker", (PyCFunction) _wrap_new_PreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29061 | { (char *)"delete_SingleInstanceChecker", (PyCFunction) _wrap_delete_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29062 | { (char *)"SingleInstanceChecker_Create", (PyCFunction) _wrap_SingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29063 | { (char *)"SingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_SingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29064 | { (char *)"SingleInstanceChecker_swigregister", SingleInstanceChecker_swigregister, METH_VARARGS, NULL }, | |
29065 | { (char *)"DrawWindowOnDC", (PyCFunction) _wrap_DrawWindowOnDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29066 | { (char *)"delete_TipProvider", (PyCFunction) _wrap_delete_TipProvider, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29067 | { (char *)"TipProvider_GetTip", (PyCFunction) _wrap_TipProvider_GetTip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29068 | { (char *)"TipProvider_GetCurrentTip", (PyCFunction) _wrap_TipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29069 | { (char *)"TipProvider_PreprocessTip", (PyCFunction) _wrap_TipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29070 | { (char *)"TipProvider_swigregister", TipProvider_swigregister, METH_VARARGS, NULL }, | |
29071 | { (char *)"new_PyTipProvider", (PyCFunction) _wrap_new_PyTipProvider, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29072 | { (char *)"PyTipProvider__setCallbackInfo", (PyCFunction) _wrap_PyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29073 | { (char *)"PyTipProvider_swigregister", PyTipProvider_swigregister, METH_VARARGS, NULL }, | |
29074 | { (char *)"ShowTip", (PyCFunction) _wrap_ShowTip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29075 | { (char *)"CreateFileTipProvider", (PyCFunction) _wrap_CreateFileTipProvider, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29076 | { (char *)"new_Timer", (PyCFunction) _wrap_new_Timer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29077 | { (char *)"delete_Timer", (PyCFunction) _wrap_delete_Timer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29078 | { (char *)"Timer__setCallbackInfo", (PyCFunction) _wrap_Timer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29079 | { (char *)"Timer_SetOwner", (PyCFunction) _wrap_Timer_SetOwner, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29080 | { (char *)"Timer_GetOwner", (PyCFunction) _wrap_Timer_GetOwner, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29081 | { (char *)"Timer_Start", (PyCFunction) _wrap_Timer_Start, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29082 | { (char *)"Timer_Stop", (PyCFunction) _wrap_Timer_Stop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29083 | { (char *)"Timer_IsRunning", (PyCFunction) _wrap_Timer_IsRunning, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29084 | { (char *)"Timer_GetInterval", (PyCFunction) _wrap_Timer_GetInterval, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29085 | { (char *)"Timer_IsOneShot", (PyCFunction) _wrap_Timer_IsOneShot, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29086 | { (char *)"Timer_GetId", (PyCFunction) _wrap_Timer_GetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29087 | { (char *)"Timer_swigregister", Timer_swigregister, METH_VARARGS, NULL }, | |
29088 | { (char *)"new_TimerEvent", (PyCFunction) _wrap_new_TimerEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29089 | { (char *)"TimerEvent_GetInterval", (PyCFunction) _wrap_TimerEvent_GetInterval, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29090 | { (char *)"TimerEvent_swigregister", TimerEvent_swigregister, METH_VARARGS, NULL }, | |
29091 | { (char *)"new_TimerRunner", _wrap_new_TimerRunner, METH_VARARGS, NULL }, | |
29092 | { (char *)"delete_TimerRunner", (PyCFunction) _wrap_delete_TimerRunner, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29093 | { (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29094 | { (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS, NULL }, | |
29095 | { (char *)"new_Log", (PyCFunction) _wrap_new_Log, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29096 | { (char *)"Log_IsEnabled", (PyCFunction) _wrap_Log_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29097 | { (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29098 | { (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29099 | { (char *)"Log_Flush", (PyCFunction) _wrap_Log_Flush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29100 | { (char *)"Log_FlushActive", (PyCFunction) _wrap_Log_FlushActive, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29101 | { (char *)"Log_GetActiveTarget", (PyCFunction) _wrap_Log_GetActiveTarget, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29102 | { (char *)"Log_SetActiveTarget", (PyCFunction) _wrap_Log_SetActiveTarget, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29103 | { (char *)"Log_Suspend", (PyCFunction) _wrap_Log_Suspend, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29104 | { (char *)"Log_Resume", (PyCFunction) _wrap_Log_Resume, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29105 | { (char *)"Log_SetVerbose", (PyCFunction) _wrap_Log_SetVerbose, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29106 | { (char *)"Log_SetLogLevel", (PyCFunction) _wrap_Log_SetLogLevel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29107 | { (char *)"Log_DontCreateOnDemand", (PyCFunction) _wrap_Log_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29108 | { (char *)"Log_SetTraceMask", (PyCFunction) _wrap_Log_SetTraceMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29109 | { (char *)"Log_AddTraceMask", (PyCFunction) _wrap_Log_AddTraceMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29110 | { (char *)"Log_RemoveTraceMask", (PyCFunction) _wrap_Log_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29111 | { (char *)"Log_ClearTraceMasks", (PyCFunction) _wrap_Log_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29112 | { (char *)"Log_GetTraceMasks", (PyCFunction) _wrap_Log_GetTraceMasks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29113 | { (char *)"Log_SetTimestamp", (PyCFunction) _wrap_Log_SetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29114 | { (char *)"Log_GetVerbose", (PyCFunction) _wrap_Log_GetVerbose, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29115 | { (char *)"Log_GetTraceMask", (PyCFunction) _wrap_Log_GetTraceMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29116 | { (char *)"Log_IsAllowedTraceMask", (PyCFunction) _wrap_Log_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29117 | { (char *)"Log_GetLogLevel", (PyCFunction) _wrap_Log_GetLogLevel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29118 | { (char *)"Log_GetTimestamp", (PyCFunction) _wrap_Log_GetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29119 | { (char *)"Log_TimeStamp", (PyCFunction) _wrap_Log_TimeStamp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29120 | { (char *)"Log_Destroy", (PyCFunction) _wrap_Log_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29121 | { (char *)"Log_swigregister", Log_swigregister, METH_VARARGS, NULL }, | |
29122 | { (char *)"new_LogStderr", (PyCFunction) _wrap_new_LogStderr, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29123 | { (char *)"LogStderr_swigregister", LogStderr_swigregister, METH_VARARGS, NULL }, | |
29124 | { (char *)"new_LogTextCtrl", (PyCFunction) _wrap_new_LogTextCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29125 | { (char *)"LogTextCtrl_swigregister", LogTextCtrl_swigregister, METH_VARARGS, NULL }, | |
29126 | { (char *)"new_LogGui", (PyCFunction) _wrap_new_LogGui, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29127 | { (char *)"LogGui_swigregister", LogGui_swigregister, METH_VARARGS, NULL }, | |
29128 | { (char *)"new_LogWindow", (PyCFunction) _wrap_new_LogWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29129 | { (char *)"LogWindow_Show", (PyCFunction) _wrap_LogWindow_Show, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29130 | { (char *)"LogWindow_GetFrame", (PyCFunction) _wrap_LogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29131 | { (char *)"LogWindow_GetOldLog", (PyCFunction) _wrap_LogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29132 | { (char *)"LogWindow_IsPassingMessages", (PyCFunction) _wrap_LogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29133 | { (char *)"LogWindow_PassMessages", (PyCFunction) _wrap_LogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29134 | { (char *)"LogWindow_swigregister", LogWindow_swigregister, METH_VARARGS, NULL }, | |
29135 | { (char *)"new_LogChain", (PyCFunction) _wrap_new_LogChain, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29136 | { (char *)"LogChain_SetLog", (PyCFunction) _wrap_LogChain_SetLog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29137 | { (char *)"LogChain_PassMessages", (PyCFunction) _wrap_LogChain_PassMessages, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29138 | { (char *)"LogChain_IsPassingMessages", (PyCFunction) _wrap_LogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29139 | { (char *)"LogChain_GetOldLog", (PyCFunction) _wrap_LogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29140 | { (char *)"LogChain_swigregister", LogChain_swigregister, METH_VARARGS, NULL }, | |
29141 | { (char *)"SysErrorCode", (PyCFunction) _wrap_SysErrorCode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29142 | { (char *)"SysErrorMsg", (PyCFunction) _wrap_SysErrorMsg, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29143 | { (char *)"LogFatalError", (PyCFunction) _wrap_LogFatalError, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29144 | { (char *)"LogError", (PyCFunction) _wrap_LogError, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29145 | { (char *)"LogWarning", (PyCFunction) _wrap_LogWarning, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29146 | { (char *)"LogMessage", (PyCFunction) _wrap_LogMessage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29147 | { (char *)"LogInfo", (PyCFunction) _wrap_LogInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29148 | { (char *)"LogDebug", (PyCFunction) _wrap_LogDebug, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29149 | { (char *)"LogVerbose", (PyCFunction) _wrap_LogVerbose, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29150 | { (char *)"LogStatus", (PyCFunction) _wrap_LogStatus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29151 | { (char *)"LogStatusFrame", (PyCFunction) _wrap_LogStatusFrame, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29152 | { (char *)"LogSysError", (PyCFunction) _wrap_LogSysError, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29153 | { (char *)"LogTrace", _wrap_LogTrace, METH_VARARGS, NULL }, | |
29154 | { (char *)"LogGeneric", (PyCFunction) _wrap_LogGeneric, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29155 | { (char *)"SafeShowMessage", (PyCFunction) _wrap_SafeShowMessage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29156 | { (char *)"new_LogNull", (PyCFunction) _wrap_new_LogNull, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29157 | { (char *)"delete_LogNull", (PyCFunction) _wrap_delete_LogNull, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29158 | { (char *)"LogNull_swigregister", LogNull_swigregister, METH_VARARGS, NULL }, | |
29159 | { (char *)"new_PyLog", (PyCFunction) _wrap_new_PyLog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29160 | { (char *)"PyLog__setCallbackInfo", (PyCFunction) _wrap_PyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29161 | { (char *)"PyLog_swigregister", PyLog_swigregister, METH_VARARGS, NULL }, | |
29162 | { (char *)"Process_Kill", (PyCFunction) _wrap_Process_Kill, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29163 | { (char *)"Process_Exists", (PyCFunction) _wrap_Process_Exists, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29164 | { (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29165 | { (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29166 | { (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29167 | { (char *)"Process_base_OnTerminate", (PyCFunction) _wrap_Process_base_OnTerminate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29168 | { (char *)"Process_Redirect", (PyCFunction) _wrap_Process_Redirect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29169 | { (char *)"Process_IsRedirected", (PyCFunction) _wrap_Process_IsRedirected, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29170 | { (char *)"Process_Detach", (PyCFunction) _wrap_Process_Detach, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29171 | { (char *)"Process_GetInputStream", (PyCFunction) _wrap_Process_GetInputStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29172 | { (char *)"Process_GetErrorStream", (PyCFunction) _wrap_Process_GetErrorStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29173 | { (char *)"Process_GetOutputStream", (PyCFunction) _wrap_Process_GetOutputStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29174 | { (char *)"Process_CloseOutput", (PyCFunction) _wrap_Process_CloseOutput, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29175 | { (char *)"Process_IsInputOpened", (PyCFunction) _wrap_Process_IsInputOpened, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29176 | { (char *)"Process_IsInputAvailable", (PyCFunction) _wrap_Process_IsInputAvailable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29177 | { (char *)"Process_IsErrorAvailable", (PyCFunction) _wrap_Process_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29178 | { (char *)"Process_swigregister", Process_swigregister, METH_VARARGS, NULL }, | |
29179 | { (char *)"new_ProcessEvent", (PyCFunction) _wrap_new_ProcessEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29180 | { (char *)"ProcessEvent_GetPid", (PyCFunction) _wrap_ProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29181 | { (char *)"ProcessEvent_GetExitCode", (PyCFunction) _wrap_ProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29182 | { (char *)"ProcessEvent_m_pid_set", (PyCFunction) _wrap_ProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29183 | { (char *)"ProcessEvent_m_pid_get", (PyCFunction) _wrap_ProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29184 | { (char *)"ProcessEvent_m_exitcode_set", (PyCFunction) _wrap_ProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29185 | { (char *)"ProcessEvent_m_exitcode_get", (PyCFunction) _wrap_ProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29186 | { (char *)"ProcessEvent_swigregister", ProcessEvent_swigregister, METH_VARARGS, NULL }, | |
29187 | { (char *)"Execute", (PyCFunction) _wrap_Execute, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29188 | { (char *)"new_Joystick", (PyCFunction) _wrap_new_Joystick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29189 | { (char *)"delete_Joystick", (PyCFunction) _wrap_delete_Joystick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29190 | { (char *)"Joystick_GetPosition", (PyCFunction) _wrap_Joystick_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29191 | { (char *)"Joystick_GetZPosition", (PyCFunction) _wrap_Joystick_GetZPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29192 | { (char *)"Joystick_GetButtonState", (PyCFunction) _wrap_Joystick_GetButtonState, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29193 | { (char *)"Joystick_GetPOVPosition", (PyCFunction) _wrap_Joystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29194 | { (char *)"Joystick_GetPOVCTSPosition", (PyCFunction) _wrap_Joystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29195 | { (char *)"Joystick_GetRudderPosition", (PyCFunction) _wrap_Joystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29196 | { (char *)"Joystick_GetUPosition", (PyCFunction) _wrap_Joystick_GetUPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29197 | { (char *)"Joystick_GetVPosition", (PyCFunction) _wrap_Joystick_GetVPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29198 | { (char *)"Joystick_GetMovementThreshold", (PyCFunction) _wrap_Joystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29199 | { (char *)"Joystick_SetMovementThreshold", (PyCFunction) _wrap_Joystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29200 | { (char *)"Joystick_IsOk", (PyCFunction) _wrap_Joystick_IsOk, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29201 | { (char *)"Joystick_GetNumberJoysticks", (PyCFunction) _wrap_Joystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29202 | { (char *)"Joystick_GetManufacturerId", (PyCFunction) _wrap_Joystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29203 | { (char *)"Joystick_GetProductId", (PyCFunction) _wrap_Joystick_GetProductId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29204 | { (char *)"Joystick_GetProductName", (PyCFunction) _wrap_Joystick_GetProductName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29205 | { (char *)"Joystick_GetXMin", (PyCFunction) _wrap_Joystick_GetXMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29206 | { (char *)"Joystick_GetYMin", (PyCFunction) _wrap_Joystick_GetYMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29207 | { (char *)"Joystick_GetZMin", (PyCFunction) _wrap_Joystick_GetZMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29208 | { (char *)"Joystick_GetXMax", (PyCFunction) _wrap_Joystick_GetXMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29209 | { (char *)"Joystick_GetYMax", (PyCFunction) _wrap_Joystick_GetYMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29210 | { (char *)"Joystick_GetZMax", (PyCFunction) _wrap_Joystick_GetZMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29211 | { (char *)"Joystick_GetNumberButtons", (PyCFunction) _wrap_Joystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29212 | { (char *)"Joystick_GetNumberAxes", (PyCFunction) _wrap_Joystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29213 | { (char *)"Joystick_GetMaxButtons", (PyCFunction) _wrap_Joystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29214 | { (char *)"Joystick_GetMaxAxes", (PyCFunction) _wrap_Joystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29215 | { (char *)"Joystick_GetPollingMin", (PyCFunction) _wrap_Joystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29216 | { (char *)"Joystick_GetPollingMax", (PyCFunction) _wrap_Joystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29217 | { (char *)"Joystick_GetRudderMin", (PyCFunction) _wrap_Joystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29218 | { (char *)"Joystick_GetRudderMax", (PyCFunction) _wrap_Joystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29219 | { (char *)"Joystick_GetUMin", (PyCFunction) _wrap_Joystick_GetUMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29220 | { (char *)"Joystick_GetUMax", (PyCFunction) _wrap_Joystick_GetUMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29221 | { (char *)"Joystick_GetVMin", (PyCFunction) _wrap_Joystick_GetVMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29222 | { (char *)"Joystick_GetVMax", (PyCFunction) _wrap_Joystick_GetVMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29223 | { (char *)"Joystick_HasRudder", (PyCFunction) _wrap_Joystick_HasRudder, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29224 | { (char *)"Joystick_HasZ", (PyCFunction) _wrap_Joystick_HasZ, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29225 | { (char *)"Joystick_HasU", (PyCFunction) _wrap_Joystick_HasU, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29226 | { (char *)"Joystick_HasV", (PyCFunction) _wrap_Joystick_HasV, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29227 | { (char *)"Joystick_HasPOV", (PyCFunction) _wrap_Joystick_HasPOV, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29228 | { (char *)"Joystick_HasPOV4Dir", (PyCFunction) _wrap_Joystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29229 | { (char *)"Joystick_HasPOVCTS", (PyCFunction) _wrap_Joystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29230 | { (char *)"Joystick_SetCapture", (PyCFunction) _wrap_Joystick_SetCapture, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29231 | { (char *)"Joystick_ReleaseCapture", (PyCFunction) _wrap_Joystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29232 | { (char *)"Joystick_swigregister", Joystick_swigregister, METH_VARARGS, NULL }, | |
29233 | { (char *)"JoystickEvent_m_pos_set", (PyCFunction) _wrap_JoystickEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29234 | { (char *)"JoystickEvent_m_pos_get", (PyCFunction) _wrap_JoystickEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29235 | { (char *)"JoystickEvent_m_zPosition_set", (PyCFunction) _wrap_JoystickEvent_m_zPosition_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29236 | { (char *)"JoystickEvent_m_zPosition_get", (PyCFunction) _wrap_JoystickEvent_m_zPosition_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29237 | { (char *)"JoystickEvent_m_buttonChange_set", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29238 | { (char *)"JoystickEvent_m_buttonChange_get", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29239 | { (char *)"JoystickEvent_m_buttonState_set", (PyCFunction) _wrap_JoystickEvent_m_buttonState_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29240 | { (char *)"JoystickEvent_m_buttonState_get", (PyCFunction) _wrap_JoystickEvent_m_buttonState_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29241 | { (char *)"JoystickEvent_m_joyStick_set", (PyCFunction) _wrap_JoystickEvent_m_joyStick_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29242 | { (char *)"JoystickEvent_m_joyStick_get", (PyCFunction) _wrap_JoystickEvent_m_joyStick_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29243 | { (char *)"new_JoystickEvent", (PyCFunction) _wrap_new_JoystickEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29244 | { (char *)"JoystickEvent_GetPosition", (PyCFunction) _wrap_JoystickEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29245 | { (char *)"JoystickEvent_GetZPosition", (PyCFunction) _wrap_JoystickEvent_GetZPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29246 | { (char *)"JoystickEvent_GetButtonState", (PyCFunction) _wrap_JoystickEvent_GetButtonState, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29247 | { (char *)"JoystickEvent_GetButtonChange", (PyCFunction) _wrap_JoystickEvent_GetButtonChange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29248 | { (char *)"JoystickEvent_GetJoystick", (PyCFunction) _wrap_JoystickEvent_GetJoystick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29249 | { (char *)"JoystickEvent_SetJoystick", (PyCFunction) _wrap_JoystickEvent_SetJoystick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29250 | { (char *)"JoystickEvent_SetButtonState", (PyCFunction) _wrap_JoystickEvent_SetButtonState, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29251 | { (char *)"JoystickEvent_SetButtonChange", (PyCFunction) _wrap_JoystickEvent_SetButtonChange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29252 | { (char *)"JoystickEvent_SetPosition", (PyCFunction) _wrap_JoystickEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29253 | { (char *)"JoystickEvent_SetZPosition", (PyCFunction) _wrap_JoystickEvent_SetZPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29254 | { (char *)"JoystickEvent_IsButton", (PyCFunction) _wrap_JoystickEvent_IsButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29255 | { (char *)"JoystickEvent_IsMove", (PyCFunction) _wrap_JoystickEvent_IsMove, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29256 | { (char *)"JoystickEvent_IsZMove", (PyCFunction) _wrap_JoystickEvent_IsZMove, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29257 | { (char *)"JoystickEvent_ButtonDown", (PyCFunction) _wrap_JoystickEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29258 | { (char *)"JoystickEvent_ButtonUp", (PyCFunction) _wrap_JoystickEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29259 | { (char *)"JoystickEvent_ButtonIsDown", (PyCFunction) _wrap_JoystickEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29260 | { (char *)"JoystickEvent_swigregister", JoystickEvent_swigregister, METH_VARARGS, NULL }, | |
29261 | { (char *)"new_Sound", (PyCFunction) _wrap_new_Sound, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29262 | { (char *)"new_SoundFromData", (PyCFunction) _wrap_new_SoundFromData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29263 | { (char *)"delete_Sound", (PyCFunction) _wrap_delete_Sound, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29264 | { (char *)"Sound_Create", (PyCFunction) _wrap_Sound_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29265 | { (char *)"Sound_CreateFromData", (PyCFunction) _wrap_Sound_CreateFromData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29266 | { (char *)"Sound_IsOk", (PyCFunction) _wrap_Sound_IsOk, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29267 | { (char *)"Sound_Play", (PyCFunction) _wrap_Sound_Play, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29268 | { (char *)"Sound_PlaySound", (PyCFunction) _wrap_Sound_PlaySound, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29269 | { (char *)"Sound_Stop", (PyCFunction) _wrap_Sound_Stop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29270 | { (char *)"Sound_swigregister", Sound_swigregister, METH_VARARGS, NULL }, | |
29271 | { (char *)"new_FileTypeInfo", (PyCFunction) _wrap_new_FileTypeInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29272 | { (char *)"new_FileTypeInfoSequence", (PyCFunction) _wrap_new_FileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29273 | { (char *)"new_NullFileTypeInfo", (PyCFunction) _wrap_new_NullFileTypeInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29274 | { (char *)"FileTypeInfo_IsValid", (PyCFunction) _wrap_FileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29275 | { (char *)"FileTypeInfo_SetIcon", (PyCFunction) _wrap_FileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29276 | { (char *)"FileTypeInfo_SetShortDesc", (PyCFunction) _wrap_FileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29277 | { (char *)"FileTypeInfo_GetMimeType", (PyCFunction) _wrap_FileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29278 | { (char *)"FileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_FileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29279 | { (char *)"FileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_FileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29280 | { (char *)"FileTypeInfo_GetShortDesc", (PyCFunction) _wrap_FileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29281 | { (char *)"FileTypeInfo_GetDescription", (PyCFunction) _wrap_FileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29282 | { (char *)"FileTypeInfo_GetExtensions", (PyCFunction) _wrap_FileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29283 | { (char *)"FileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_FileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29284 | { (char *)"FileTypeInfo_GetIconFile", (PyCFunction) _wrap_FileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29285 | { (char *)"FileTypeInfo_GetIconIndex", (PyCFunction) _wrap_FileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29286 | { (char *)"FileTypeInfo_swigregister", FileTypeInfo_swigregister, METH_VARARGS, NULL }, | |
29287 | { (char *)"new_FileType", (PyCFunction) _wrap_new_FileType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29288 | { (char *)"delete_FileType", (PyCFunction) _wrap_delete_FileType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29289 | { (char *)"FileType_GetMimeType", (PyCFunction) _wrap_FileType_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29290 | { (char *)"FileType_GetMimeTypes", (PyCFunction) _wrap_FileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29291 | { (char *)"FileType_GetExtensions", (PyCFunction) _wrap_FileType_GetExtensions, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29292 | { (char *)"FileType_GetIcon", (PyCFunction) _wrap_FileType_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29293 | { (char *)"FileType_GetIconInfo", (PyCFunction) _wrap_FileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29294 | { (char *)"FileType_GetDescription", (PyCFunction) _wrap_FileType_GetDescription, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29295 | { (char *)"FileType_GetOpenCommand", (PyCFunction) _wrap_FileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29296 | { (char *)"FileType_GetPrintCommand", (PyCFunction) _wrap_FileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29297 | { (char *)"FileType_GetAllCommands", (PyCFunction) _wrap_FileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29298 | { (char *)"FileType_SetCommand", (PyCFunction) _wrap_FileType_SetCommand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29299 | { (char *)"FileType_SetDefaultIcon", (PyCFunction) _wrap_FileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29300 | { (char *)"FileType_Unassociate", (PyCFunction) _wrap_FileType_Unassociate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29301 | { (char *)"FileType_ExpandCommand", (PyCFunction) _wrap_FileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29302 | { (char *)"FileType_swigregister", FileType_swigregister, METH_VARARGS, NULL }, | |
29303 | { (char *)"MimeTypesManager_IsOfType", (PyCFunction) _wrap_MimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29304 | { (char *)"new_MimeTypesManager", (PyCFunction) _wrap_new_MimeTypesManager, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29305 | { (char *)"MimeTypesManager_Initialize", (PyCFunction) _wrap_MimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29306 | { (char *)"MimeTypesManager_ClearData", (PyCFunction) _wrap_MimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29307 | { (char *)"MimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29308 | { (char *)"MimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29309 | { (char *)"MimeTypesManager_ReadMailcap", (PyCFunction) _wrap_MimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29310 | { (char *)"MimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_MimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29311 | { (char *)"MimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_MimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29312 | { (char *)"MimeTypesManager_AddFallback", (PyCFunction) _wrap_MimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29313 | { (char *)"MimeTypesManager_Associate", (PyCFunction) _wrap_MimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29314 | { (char *)"MimeTypesManager_Unassociate", (PyCFunction) _wrap_MimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29315 | { (char *)"delete_MimeTypesManager", (PyCFunction) _wrap_delete_MimeTypesManager, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29316 | { (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS, NULL }, | |
29317 | { (char *)"new_ArtProvider", (PyCFunction) _wrap_new_ArtProvider, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29318 | { (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29319 | { (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29320 | { (char *)"ArtProvider_PopProvider", (PyCFunction) _wrap_ArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29321 | { (char *)"ArtProvider_RemoveProvider", (PyCFunction) _wrap_ArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29322 | { (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29323 | { (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29324 | { (char *)"ArtProvider_Destroy", (PyCFunction) _wrap_ArtProvider_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29325 | { (char *)"ArtProvider_swigregister", ArtProvider_swigregister, METH_VARARGS, NULL }, | |
29326 | { (char *)"delete_ConfigBase", (PyCFunction) _wrap_delete_ConfigBase, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29327 | { (char *)"ConfigBase_Set", (PyCFunction) _wrap_ConfigBase_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29328 | { (char *)"ConfigBase_Get", (PyCFunction) _wrap_ConfigBase_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29329 | { (char *)"ConfigBase_Create", (PyCFunction) _wrap_ConfigBase_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29330 | { (char *)"ConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_ConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29331 | { (char *)"ConfigBase_SetPath", (PyCFunction) _wrap_ConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29332 | { (char *)"ConfigBase_GetPath", (PyCFunction) _wrap_ConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29333 | { (char *)"ConfigBase_GetFirstGroup", (PyCFunction) _wrap_ConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29334 | { (char *)"ConfigBase_GetNextGroup", (PyCFunction) _wrap_ConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29335 | { (char *)"ConfigBase_GetFirstEntry", (PyCFunction) _wrap_ConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29336 | { (char *)"ConfigBase_GetNextEntry", (PyCFunction) _wrap_ConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29337 | { (char *)"ConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_ConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29338 | { (char *)"ConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_ConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29339 | { (char *)"ConfigBase_HasGroup", (PyCFunction) _wrap_ConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29340 | { (char *)"ConfigBase_HasEntry", (PyCFunction) _wrap_ConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29341 | { (char *)"ConfigBase_Exists", (PyCFunction) _wrap_ConfigBase_Exists, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29342 | { (char *)"ConfigBase_GetEntryType", (PyCFunction) _wrap_ConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29343 | { (char *)"ConfigBase_Read", (PyCFunction) _wrap_ConfigBase_Read, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29344 | { (char *)"ConfigBase_ReadInt", (PyCFunction) _wrap_ConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29345 | { (char *)"ConfigBase_ReadFloat", (PyCFunction) _wrap_ConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29346 | { (char *)"ConfigBase_ReadBool", (PyCFunction) _wrap_ConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29347 | { (char *)"ConfigBase_Write", (PyCFunction) _wrap_ConfigBase_Write, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29348 | { (char *)"ConfigBase_WriteInt", (PyCFunction) _wrap_ConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29349 | { (char *)"ConfigBase_WriteFloat", (PyCFunction) _wrap_ConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29350 | { (char *)"ConfigBase_WriteBool", (PyCFunction) _wrap_ConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29351 | { (char *)"ConfigBase_Flush", (PyCFunction) _wrap_ConfigBase_Flush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29352 | { (char *)"ConfigBase_RenameEntry", (PyCFunction) _wrap_ConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29353 | { (char *)"ConfigBase_RenameGroup", (PyCFunction) _wrap_ConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29354 | { (char *)"ConfigBase_DeleteEntry", (PyCFunction) _wrap_ConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29355 | { (char *)"ConfigBase_DeleteGroup", (PyCFunction) _wrap_ConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29356 | { (char *)"ConfigBase_DeleteAll", (PyCFunction) _wrap_ConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29357 | { (char *)"ConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_ConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29358 | { (char *)"ConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_ConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29359 | { (char *)"ConfigBase_SetRecordDefaults", (PyCFunction) _wrap_ConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29360 | { (char *)"ConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_ConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29361 | { (char *)"ConfigBase_ExpandEnvVars", (PyCFunction) _wrap_ConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29362 | { (char *)"ConfigBase_GetAppName", (PyCFunction) _wrap_ConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29363 | { (char *)"ConfigBase_GetVendorName", (PyCFunction) _wrap_ConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29364 | { (char *)"ConfigBase_SetAppName", (PyCFunction) _wrap_ConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29365 | { (char *)"ConfigBase_SetVendorName", (PyCFunction) _wrap_ConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29366 | { (char *)"ConfigBase_SetStyle", (PyCFunction) _wrap_ConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29367 | { (char *)"ConfigBase_GetStyle", (PyCFunction) _wrap_ConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29368 | { (char *)"ConfigBase_swigregister", ConfigBase_swigregister, METH_VARARGS, NULL }, | |
29369 | { (char *)"new_Config", (PyCFunction) _wrap_new_Config, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29370 | { (char *)"delete_Config", (PyCFunction) _wrap_delete_Config, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29371 | { (char *)"Config_swigregister", Config_swigregister, METH_VARARGS, NULL }, | |
29372 | { (char *)"new_FileConfig", (PyCFunction) _wrap_new_FileConfig, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29373 | { (char *)"delete_FileConfig", (PyCFunction) _wrap_delete_FileConfig, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29374 | { (char *)"FileConfig_swigregister", FileConfig_swigregister, METH_VARARGS, NULL }, | |
29375 | { (char *)"new_ConfigPathChanger", (PyCFunction) _wrap_new_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29376 | { (char *)"delete_ConfigPathChanger", (PyCFunction) _wrap_delete_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29377 | { (char *)"ConfigPathChanger_Name", (PyCFunction) _wrap_ConfigPathChanger_Name, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29378 | { (char *)"ConfigPathChanger_swigregister", ConfigPathChanger_swigregister, METH_VARARGS, NULL }, | |
29379 | { (char *)"ExpandEnvVars", (PyCFunction) _wrap_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29380 | { (char *)"DateTime_SetCountry", (PyCFunction) _wrap_DateTime_SetCountry, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29381 | { (char *)"DateTime_GetCountry", (PyCFunction) _wrap_DateTime_GetCountry, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29382 | { (char *)"DateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_DateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29383 | { (char *)"DateTime_GetCurrentYear", (PyCFunction) _wrap_DateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29384 | { (char *)"DateTime_ConvertYearToBC", (PyCFunction) _wrap_DateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29385 | { (char *)"DateTime_GetCurrentMonth", (PyCFunction) _wrap_DateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29386 | { (char *)"DateTime_IsLeapYear", (PyCFunction) _wrap_DateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29387 | { (char *)"DateTime_GetCentury", (PyCFunction) _wrap_DateTime_GetCentury, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29388 | { (char *)"DateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_DateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29389 | { (char *)"DateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_DateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29390 | { (char *)"DateTime_GetMonthName", (PyCFunction) _wrap_DateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29391 | { (char *)"DateTime_GetWeekDayName", (PyCFunction) _wrap_DateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29392 | { (char *)"DateTime_GetAmPmStrings", (PyCFunction) _wrap_DateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29393 | { (char *)"DateTime_IsDSTApplicable", (PyCFunction) _wrap_DateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29394 | { (char *)"DateTime_GetBeginDST", (PyCFunction) _wrap_DateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29395 | { (char *)"DateTime_GetEndDST", (PyCFunction) _wrap_DateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29396 | { (char *)"DateTime_Now", (PyCFunction) _wrap_DateTime_Now, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29397 | { (char *)"DateTime_UNow", (PyCFunction) _wrap_DateTime_UNow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29398 | { (char *)"DateTime_Today", (PyCFunction) _wrap_DateTime_Today, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29399 | { (char *)"new_DateTime", (PyCFunction) _wrap_new_DateTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29400 | { (char *)"new_DateTimeFromTimeT", (PyCFunction) _wrap_new_DateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29401 | { (char *)"new_DateTimeFromJDN", (PyCFunction) _wrap_new_DateTimeFromJDN, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29402 | { (char *)"new_DateTimeFromHMS", (PyCFunction) _wrap_new_DateTimeFromHMS, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29403 | { (char *)"new_DateTimeFromDMY", (PyCFunction) _wrap_new_DateTimeFromDMY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29404 | { (char *)"delete_DateTime", (PyCFunction) _wrap_delete_DateTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29405 | { (char *)"DateTime_SetToCurrent", (PyCFunction) _wrap_DateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29406 | { (char *)"DateTime_SetTimeT", (PyCFunction) _wrap_DateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29407 | { (char *)"DateTime_SetJDN", (PyCFunction) _wrap_DateTime_SetJDN, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29408 | { (char *)"DateTime_SetHMS", (PyCFunction) _wrap_DateTime_SetHMS, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29409 | { (char *)"DateTime_Set", (PyCFunction) _wrap_DateTime_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29410 | { (char *)"DateTime_ResetTime", (PyCFunction) _wrap_DateTime_ResetTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29411 | { (char *)"DateTime_SetYear", (PyCFunction) _wrap_DateTime_SetYear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29412 | { (char *)"DateTime_SetMonth", (PyCFunction) _wrap_DateTime_SetMonth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29413 | { (char *)"DateTime_SetDay", (PyCFunction) _wrap_DateTime_SetDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29414 | { (char *)"DateTime_SetHour", (PyCFunction) _wrap_DateTime_SetHour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29415 | { (char *)"DateTime_SetMinute", (PyCFunction) _wrap_DateTime_SetMinute, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29416 | { (char *)"DateTime_SetSecond", (PyCFunction) _wrap_DateTime_SetSecond, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29417 | { (char *)"DateTime_SetMillisecond", (PyCFunction) _wrap_DateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29418 | { (char *)"DateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29419 | { (char *)"DateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29420 | { (char *)"DateTime_SetToNextWeekDay", (PyCFunction) _wrap_DateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29421 | { (char *)"DateTime_GetNextWeekDay", (PyCFunction) _wrap_DateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29422 | { (char *)"DateTime_SetToPrevWeekDay", (PyCFunction) _wrap_DateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29423 | { (char *)"DateTime_GetPrevWeekDay", (PyCFunction) _wrap_DateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29424 | { (char *)"DateTime_SetToWeekDay", (PyCFunction) _wrap_DateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29425 | { (char *)"DateTime_SetToLastWeekDay", (PyCFunction) _wrap_DateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29426 | { (char *)"DateTime_GetLastWeekDay", (PyCFunction) _wrap_DateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29427 | { (char *)"DateTime_SetToTheWeek", (PyCFunction) _wrap_DateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29428 | { (char *)"DateTime_GetWeek", (PyCFunction) _wrap_DateTime_GetWeek, METH_VARARGS | METH_KEYWORDS, NULL }, | |
629e65c2 | 29429 | { (char *)"DateTime_SetToWeekOfYear", (PyCFunction) _wrap_DateTime_SetToWeekOfYear, METH_VARARGS | METH_KEYWORDS, NULL }, |
c370783e RD |
29430 | { (char *)"DateTime_SetToLastMonthDay", (PyCFunction) _wrap_DateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS, NULL }, |
29431 | { (char *)"DateTime_GetLastMonthDay", (PyCFunction) _wrap_DateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29432 | { (char *)"DateTime_SetToYearDay", (PyCFunction) _wrap_DateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29433 | { (char *)"DateTime_GetYearDay", (PyCFunction) _wrap_DateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29434 | { (char *)"DateTime_GetJulianDayNumber", (PyCFunction) _wrap_DateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29435 | { (char *)"DateTime_GetJDN", (PyCFunction) _wrap_DateTime_GetJDN, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29436 | { (char *)"DateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_DateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29437 | { (char *)"DateTime_GetMJD", (PyCFunction) _wrap_DateTime_GetMJD, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29438 | { (char *)"DateTime_GetRataDie", (PyCFunction) _wrap_DateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29439 | { (char *)"DateTime_ToTimezone", (PyCFunction) _wrap_DateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29440 | { (char *)"DateTime_MakeTimezone", (PyCFunction) _wrap_DateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29441 | { (char *)"DateTime_ToGMT", (PyCFunction) _wrap_DateTime_ToGMT, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29442 | { (char *)"DateTime_MakeGMT", (PyCFunction) _wrap_DateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29443 | { (char *)"DateTime_IsDST", (PyCFunction) _wrap_DateTime_IsDST, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29444 | { (char *)"DateTime_IsValid", (PyCFunction) _wrap_DateTime_IsValid, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29445 | { (char *)"DateTime_GetTicks", (PyCFunction) _wrap_DateTime_GetTicks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29446 | { (char *)"DateTime_GetYear", (PyCFunction) _wrap_DateTime_GetYear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29447 | { (char *)"DateTime_GetMonth", (PyCFunction) _wrap_DateTime_GetMonth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29448 | { (char *)"DateTime_GetDay", (PyCFunction) _wrap_DateTime_GetDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29449 | { (char *)"DateTime_GetWeekDay", (PyCFunction) _wrap_DateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29450 | { (char *)"DateTime_GetHour", (PyCFunction) _wrap_DateTime_GetHour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29451 | { (char *)"DateTime_GetMinute", (PyCFunction) _wrap_DateTime_GetMinute, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29452 | { (char *)"DateTime_GetSecond", (PyCFunction) _wrap_DateTime_GetSecond, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29453 | { (char *)"DateTime_GetMillisecond", (PyCFunction) _wrap_DateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29454 | { (char *)"DateTime_GetDayOfYear", (PyCFunction) _wrap_DateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29455 | { (char *)"DateTime_GetWeekOfYear", (PyCFunction) _wrap_DateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29456 | { (char *)"DateTime_GetWeekOfMonth", (PyCFunction) _wrap_DateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29457 | { (char *)"DateTime_IsWorkDay", (PyCFunction) _wrap_DateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29458 | { (char *)"DateTime_IsEqualTo", (PyCFunction) _wrap_DateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29459 | { (char *)"DateTime_IsEarlierThan", (PyCFunction) _wrap_DateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29460 | { (char *)"DateTime_IsLaterThan", (PyCFunction) _wrap_DateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29461 | { (char *)"DateTime_IsStrictlyBetween", (PyCFunction) _wrap_DateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29462 | { (char *)"DateTime_IsBetween", (PyCFunction) _wrap_DateTime_IsBetween, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29463 | { (char *)"DateTime_IsSameDate", (PyCFunction) _wrap_DateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29464 | { (char *)"DateTime_IsSameTime", (PyCFunction) _wrap_DateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29465 | { (char *)"DateTime_IsEqualUpTo", (PyCFunction) _wrap_DateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29466 | { (char *)"DateTime_AddTS", (PyCFunction) _wrap_DateTime_AddTS, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29467 | { (char *)"DateTime_AddDS", (PyCFunction) _wrap_DateTime_AddDS, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29468 | { (char *)"DateTime_SubtractTS", (PyCFunction) _wrap_DateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29469 | { (char *)"DateTime_SubtractDS", (PyCFunction) _wrap_DateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29470 | { (char *)"DateTime_Subtract", (PyCFunction) _wrap_DateTime_Subtract, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29471 | { (char *)"DateTime___iadd__", _wrap_DateTime___iadd__, METH_VARARGS, NULL }, | |
29472 | { (char *)"DateTime___isub__", _wrap_DateTime___isub__, METH_VARARGS, NULL }, | |
29473 | { (char *)"DateTime___add__", _wrap_DateTime___add__, METH_VARARGS, NULL }, | |
29474 | { (char *)"DateTime___sub__", _wrap_DateTime___sub__, METH_VARARGS, NULL }, | |
29475 | { (char *)"DateTime___lt__", _wrap_DateTime___lt__, METH_VARARGS, NULL }, | |
29476 | { (char *)"DateTime___le__", _wrap_DateTime___le__, METH_VARARGS, NULL }, | |
29477 | { (char *)"DateTime___gt__", _wrap_DateTime___gt__, METH_VARARGS, NULL }, | |
29478 | { (char *)"DateTime___ge__", _wrap_DateTime___ge__, METH_VARARGS, NULL }, | |
29479 | { (char *)"DateTime___eq__", _wrap_DateTime___eq__, METH_VARARGS, NULL }, | |
29480 | { (char *)"DateTime___ne__", _wrap_DateTime___ne__, METH_VARARGS, NULL }, | |
29481 | { (char *)"DateTime_ParseRfc822Date", (PyCFunction) _wrap_DateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29482 | { (char *)"DateTime_ParseFormat", (PyCFunction) _wrap_DateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29483 | { (char *)"DateTime_ParseDateTime", (PyCFunction) _wrap_DateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29484 | { (char *)"DateTime_ParseDate", (PyCFunction) _wrap_DateTime_ParseDate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29485 | { (char *)"DateTime_ParseTime", (PyCFunction) _wrap_DateTime_ParseTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29486 | { (char *)"DateTime_Format", (PyCFunction) _wrap_DateTime_Format, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29487 | { (char *)"DateTime_FormatDate", (PyCFunction) _wrap_DateTime_FormatDate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29488 | { (char *)"DateTime_FormatTime", (PyCFunction) _wrap_DateTime_FormatTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29489 | { (char *)"DateTime_FormatISODate", (PyCFunction) _wrap_DateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29490 | { (char *)"DateTime_FormatISOTime", (PyCFunction) _wrap_DateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29491 | { (char *)"DateTime_swigregister", DateTime_swigregister, METH_VARARGS, NULL }, | |
29492 | { (char *)"TimeSpan_Seconds", (PyCFunction) _wrap_TimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29493 | { (char *)"TimeSpan_Second", (PyCFunction) _wrap_TimeSpan_Second, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29494 | { (char *)"TimeSpan_Minutes", (PyCFunction) _wrap_TimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29495 | { (char *)"TimeSpan_Minute", (PyCFunction) _wrap_TimeSpan_Minute, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29496 | { (char *)"TimeSpan_Hours", (PyCFunction) _wrap_TimeSpan_Hours, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29497 | { (char *)"TimeSpan_Hour", (PyCFunction) _wrap_TimeSpan_Hour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29498 | { (char *)"TimeSpan_Days", (PyCFunction) _wrap_TimeSpan_Days, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29499 | { (char *)"TimeSpan_Day", (PyCFunction) _wrap_TimeSpan_Day, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29500 | { (char *)"TimeSpan_Weeks", (PyCFunction) _wrap_TimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29501 | { (char *)"TimeSpan_Week", (PyCFunction) _wrap_TimeSpan_Week, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29502 | { (char *)"new_TimeSpan", (PyCFunction) _wrap_new_TimeSpan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29503 | { (char *)"delete_TimeSpan", (PyCFunction) _wrap_delete_TimeSpan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29504 | { (char *)"TimeSpan_Add", (PyCFunction) _wrap_TimeSpan_Add, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29505 | { (char *)"TimeSpan_Subtract", (PyCFunction) _wrap_TimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29506 | { (char *)"TimeSpan_Multiply", (PyCFunction) _wrap_TimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29507 | { (char *)"TimeSpan_Neg", (PyCFunction) _wrap_TimeSpan_Neg, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29508 | { (char *)"TimeSpan_Abs", (PyCFunction) _wrap_TimeSpan_Abs, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29509 | { (char *)"TimeSpan___iadd__", (PyCFunction) _wrap_TimeSpan___iadd__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29510 | { (char *)"TimeSpan___isub__", (PyCFunction) _wrap_TimeSpan___isub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29511 | { (char *)"TimeSpan___imul__", (PyCFunction) _wrap_TimeSpan___imul__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29512 | { (char *)"TimeSpan___neg__", (PyCFunction) _wrap_TimeSpan___neg__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29513 | { (char *)"TimeSpan___add__", (PyCFunction) _wrap_TimeSpan___add__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29514 | { (char *)"TimeSpan___sub__", (PyCFunction) _wrap_TimeSpan___sub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29515 | { (char *)"TimeSpan___mul__", (PyCFunction) _wrap_TimeSpan___mul__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29516 | { (char *)"TimeSpan___rmul__", (PyCFunction) _wrap_TimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29517 | { (char *)"TimeSpan___lt__", (PyCFunction) _wrap_TimeSpan___lt__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29518 | { (char *)"TimeSpan___le__", (PyCFunction) _wrap_TimeSpan___le__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29519 | { (char *)"TimeSpan___gt__", (PyCFunction) _wrap_TimeSpan___gt__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29520 | { (char *)"TimeSpan___ge__", (PyCFunction) _wrap_TimeSpan___ge__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29521 | { (char *)"TimeSpan___eq__", (PyCFunction) _wrap_TimeSpan___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29522 | { (char *)"TimeSpan___ne__", (PyCFunction) _wrap_TimeSpan___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29523 | { (char *)"TimeSpan_IsNull", (PyCFunction) _wrap_TimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29524 | { (char *)"TimeSpan_IsPositive", (PyCFunction) _wrap_TimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29525 | { (char *)"TimeSpan_IsNegative", (PyCFunction) _wrap_TimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29526 | { (char *)"TimeSpan_IsEqualTo", (PyCFunction) _wrap_TimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29527 | { (char *)"TimeSpan_IsLongerThan", (PyCFunction) _wrap_TimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29528 | { (char *)"TimeSpan_IsShorterThan", (PyCFunction) _wrap_TimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29529 | { (char *)"TimeSpan_GetWeeks", (PyCFunction) _wrap_TimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29530 | { (char *)"TimeSpan_GetDays", (PyCFunction) _wrap_TimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29531 | { (char *)"TimeSpan_GetHours", (PyCFunction) _wrap_TimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29532 | { (char *)"TimeSpan_GetMinutes", (PyCFunction) _wrap_TimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29533 | { (char *)"TimeSpan_GetSeconds", (PyCFunction) _wrap_TimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29534 | { (char *)"TimeSpan_GetMilliseconds", (PyCFunction) _wrap_TimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29535 | { (char *)"TimeSpan_Format", (PyCFunction) _wrap_TimeSpan_Format, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29536 | { (char *)"TimeSpan_swigregister", TimeSpan_swigregister, METH_VARARGS, NULL }, | |
29537 | { (char *)"new_DateSpan", (PyCFunction) _wrap_new_DateSpan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29538 | { (char *)"delete_DateSpan", (PyCFunction) _wrap_delete_DateSpan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29539 | { (char *)"DateSpan_Days", (PyCFunction) _wrap_DateSpan_Days, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29540 | { (char *)"DateSpan_Day", (PyCFunction) _wrap_DateSpan_Day, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29541 | { (char *)"DateSpan_Weeks", (PyCFunction) _wrap_DateSpan_Weeks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29542 | { (char *)"DateSpan_Week", (PyCFunction) _wrap_DateSpan_Week, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29543 | { (char *)"DateSpan_Months", (PyCFunction) _wrap_DateSpan_Months, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29544 | { (char *)"DateSpan_Month", (PyCFunction) _wrap_DateSpan_Month, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29545 | { (char *)"DateSpan_Years", (PyCFunction) _wrap_DateSpan_Years, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29546 | { (char *)"DateSpan_Year", (PyCFunction) _wrap_DateSpan_Year, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29547 | { (char *)"DateSpan_SetYears", (PyCFunction) _wrap_DateSpan_SetYears, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29548 | { (char *)"DateSpan_SetMonths", (PyCFunction) _wrap_DateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29549 | { (char *)"DateSpan_SetWeeks", (PyCFunction) _wrap_DateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29550 | { (char *)"DateSpan_SetDays", (PyCFunction) _wrap_DateSpan_SetDays, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29551 | { (char *)"DateSpan_GetYears", (PyCFunction) _wrap_DateSpan_GetYears, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29552 | { (char *)"DateSpan_GetMonths", (PyCFunction) _wrap_DateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29553 | { (char *)"DateSpan_GetWeeks", (PyCFunction) _wrap_DateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29554 | { (char *)"DateSpan_GetDays", (PyCFunction) _wrap_DateSpan_GetDays, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29555 | { (char *)"DateSpan_GetTotalDays", (PyCFunction) _wrap_DateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29556 | { (char *)"DateSpan_Add", (PyCFunction) _wrap_DateSpan_Add, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29557 | { (char *)"DateSpan_Subtract", (PyCFunction) _wrap_DateSpan_Subtract, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29558 | { (char *)"DateSpan_Neg", (PyCFunction) _wrap_DateSpan_Neg, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29559 | { (char *)"DateSpan_Multiply", (PyCFunction) _wrap_DateSpan_Multiply, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29560 | { (char *)"DateSpan___iadd__", (PyCFunction) _wrap_DateSpan___iadd__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29561 | { (char *)"DateSpan___isub__", (PyCFunction) _wrap_DateSpan___isub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29562 | { (char *)"DateSpan___neg__", (PyCFunction) _wrap_DateSpan___neg__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29563 | { (char *)"DateSpan___imul__", (PyCFunction) _wrap_DateSpan___imul__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29564 | { (char *)"DateSpan___add__", (PyCFunction) _wrap_DateSpan___add__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29565 | { (char *)"DateSpan___sub__", (PyCFunction) _wrap_DateSpan___sub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29566 | { (char *)"DateSpan___mul__", (PyCFunction) _wrap_DateSpan___mul__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29567 | { (char *)"DateSpan___rmul__", (PyCFunction) _wrap_DateSpan___rmul__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29568 | { (char *)"DateSpan___eq__", (PyCFunction) _wrap_DateSpan___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29569 | { (char *)"DateSpan___ne__", (PyCFunction) _wrap_DateSpan___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29570 | { (char *)"DateSpan_swigregister", DateSpan_swigregister, METH_VARARGS, NULL }, | |
29571 | { (char *)"GetLocalTime", (PyCFunction) _wrap_GetLocalTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29572 | { (char *)"GetUTCTime", (PyCFunction) _wrap_GetUTCTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29573 | { (char *)"GetCurrentTime", (PyCFunction) _wrap_GetCurrentTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29574 | { (char *)"GetLocalTimeMillis", (PyCFunction) _wrap_GetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29575 | { (char *)"new_DataFormat", (PyCFunction) _wrap_new_DataFormat, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29576 | { (char *)"new_CustomDataFormat", (PyCFunction) _wrap_new_CustomDataFormat, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29577 | { (char *)"delete_DataFormat", (PyCFunction) _wrap_delete_DataFormat, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29578 | { (char *)"DataFormat___eq__", _wrap_DataFormat___eq__, METH_VARARGS, NULL }, | |
29579 | { (char *)"DataFormat___ne__", _wrap_DataFormat___ne__, METH_VARARGS, NULL }, | |
29580 | { (char *)"DataFormat_SetType", (PyCFunction) _wrap_DataFormat_SetType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29581 | { (char *)"DataFormat_GetType", (PyCFunction) _wrap_DataFormat_GetType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29582 | { (char *)"DataFormat_GetId", (PyCFunction) _wrap_DataFormat_GetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29583 | { (char *)"DataFormat_SetId", (PyCFunction) _wrap_DataFormat_SetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29584 | { (char *)"DataFormat_swigregister", DataFormat_swigregister, METH_VARARGS, NULL }, | |
29585 | { (char *)"delete_DataObject", (PyCFunction) _wrap_delete_DataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29586 | { (char *)"DataObject_GetPreferredFormat", (PyCFunction) _wrap_DataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29587 | { (char *)"DataObject_GetFormatCount", (PyCFunction) _wrap_DataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29588 | { (char *)"DataObject_IsSupported", (PyCFunction) _wrap_DataObject_IsSupported, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29589 | { (char *)"DataObject_GetDataSize", (PyCFunction) _wrap_DataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29590 | { (char *)"DataObject_GetAllFormats", (PyCFunction) _wrap_DataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29591 | { (char *)"DataObject_GetDataHere", (PyCFunction) _wrap_DataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29592 | { (char *)"DataObject_SetData", (PyCFunction) _wrap_DataObject_SetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29593 | { (char *)"DataObject_swigregister", DataObject_swigregister, METH_VARARGS, NULL }, | |
29594 | { (char *)"new_DataObjectSimple", (PyCFunction) _wrap_new_DataObjectSimple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29595 | { (char *)"DataObjectSimple_GetFormat", (PyCFunction) _wrap_DataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29596 | { (char *)"DataObjectSimple_SetFormat", (PyCFunction) _wrap_DataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29597 | { (char *)"DataObjectSimple_GetDataSize", (PyCFunction) _wrap_DataObjectSimple_GetDataSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29598 | { (char *)"DataObjectSimple_GetDataHere", (PyCFunction) _wrap_DataObjectSimple_GetDataHere, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29599 | { (char *)"DataObjectSimple_SetData", (PyCFunction) _wrap_DataObjectSimple_SetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29600 | { (char *)"DataObjectSimple_swigregister", DataObjectSimple_swigregister, METH_VARARGS, NULL }, | |
29601 | { (char *)"new_PyDataObjectSimple", (PyCFunction) _wrap_new_PyDataObjectSimple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29602 | { (char *)"PyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_PyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29603 | { (char *)"PyDataObjectSimple_swigregister", PyDataObjectSimple_swigregister, METH_VARARGS, NULL }, | |
29604 | { (char *)"new_DataObjectComposite", (PyCFunction) _wrap_new_DataObjectComposite, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29605 | { (char *)"DataObjectComposite_Add", (PyCFunction) _wrap_DataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29606 | { (char *)"DataObjectComposite_swigregister", DataObjectComposite_swigregister, METH_VARARGS, NULL }, | |
29607 | { (char *)"new_TextDataObject", (PyCFunction) _wrap_new_TextDataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29608 | { (char *)"TextDataObject_GetTextLength", (PyCFunction) _wrap_TextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29609 | { (char *)"TextDataObject_GetText", (PyCFunction) _wrap_TextDataObject_GetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29610 | { (char *)"TextDataObject_SetText", (PyCFunction) _wrap_TextDataObject_SetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29611 | { (char *)"TextDataObject_swigregister", TextDataObject_swigregister, METH_VARARGS, NULL }, | |
29612 | { (char *)"new_PyTextDataObject", (PyCFunction) _wrap_new_PyTextDataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29613 | { (char *)"PyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_PyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29614 | { (char *)"PyTextDataObject_swigregister", PyTextDataObject_swigregister, METH_VARARGS, NULL }, | |
29615 | { (char *)"new_BitmapDataObject", (PyCFunction) _wrap_new_BitmapDataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29616 | { (char *)"BitmapDataObject_GetBitmap", (PyCFunction) _wrap_BitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29617 | { (char *)"BitmapDataObject_SetBitmap", (PyCFunction) _wrap_BitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29618 | { (char *)"BitmapDataObject_swigregister", BitmapDataObject_swigregister, METH_VARARGS, NULL }, | |
29619 | { (char *)"new_PyBitmapDataObject", (PyCFunction) _wrap_new_PyBitmapDataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29620 | { (char *)"PyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_PyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29621 | { (char *)"PyBitmapDataObject_swigregister", PyBitmapDataObject_swigregister, METH_VARARGS, NULL }, | |
29622 | { (char *)"new_FileDataObject", (PyCFunction) _wrap_new_FileDataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29623 | { (char *)"FileDataObject_GetFilenames", (PyCFunction) _wrap_FileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29624 | { (char *)"FileDataObject_AddFile", (PyCFunction) _wrap_FileDataObject_AddFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29625 | { (char *)"FileDataObject_swigregister", FileDataObject_swigregister, METH_VARARGS, NULL }, | |
29626 | { (char *)"new_CustomDataObject", (PyCFunction) _wrap_new_CustomDataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29627 | { (char *)"CustomDataObject_SetData", (PyCFunction) _wrap_CustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29628 | { (char *)"CustomDataObject_GetSize", (PyCFunction) _wrap_CustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29629 | { (char *)"CustomDataObject_GetData", (PyCFunction) _wrap_CustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29630 | { (char *)"CustomDataObject_swigregister", CustomDataObject_swigregister, METH_VARARGS, NULL }, | |
29631 | { (char *)"new_URLDataObject", (PyCFunction) _wrap_new_URLDataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29632 | { (char *)"URLDataObject_GetURL", (PyCFunction) _wrap_URLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29633 | { (char *)"URLDataObject_SetURL", (PyCFunction) _wrap_URLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29634 | { (char *)"URLDataObject_swigregister", URLDataObject_swigregister, METH_VARARGS, NULL }, | |
29635 | { (char *)"new_MetafileDataObject", (PyCFunction) _wrap_new_MetafileDataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29636 | { (char *)"MetafileDataObject_SetMetafile", (PyCFunction) _wrap_MetafileDataObject_SetMetafile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29637 | { (char *)"MetafileDataObject_GetMetafile", (PyCFunction) _wrap_MetafileDataObject_GetMetafile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29638 | { (char *)"MetafileDataObject_swigregister", MetafileDataObject_swigregister, METH_VARARGS, NULL }, | |
29639 | { (char *)"IsDragResultOk", (PyCFunction) _wrap_IsDragResultOk, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29640 | { (char *)"new_DropSource", (PyCFunction) _wrap_new_DropSource, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29641 | { (char *)"DropSource__setCallbackInfo", (PyCFunction) _wrap_DropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29642 | { (char *)"delete_DropSource", (PyCFunction) _wrap_delete_DropSource, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29643 | { (char *)"DropSource_SetData", (PyCFunction) _wrap_DropSource_SetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29644 | { (char *)"DropSource_GetDataObject", (PyCFunction) _wrap_DropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29645 | { (char *)"DropSource_SetCursor", (PyCFunction) _wrap_DropSource_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29646 | { (char *)"DropSource_DoDragDrop", (PyCFunction) _wrap_DropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29647 | { (char *)"DropSource_base_GiveFeedback", (PyCFunction) _wrap_DropSource_base_GiveFeedback, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29648 | { (char *)"DropSource_swigregister", DropSource_swigregister, METH_VARARGS, NULL }, | |
29649 | { (char *)"new_DropTarget", (PyCFunction) _wrap_new_DropTarget, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29650 | { (char *)"DropTarget__setCallbackInfo", (PyCFunction) _wrap_DropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29651 | { (char *)"delete_DropTarget", (PyCFunction) _wrap_delete_DropTarget, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29652 | { (char *)"DropTarget_GetDataObject", (PyCFunction) _wrap_DropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29653 | { (char *)"DropTarget_SetDataObject", (PyCFunction) _wrap_DropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29654 | { (char *)"DropTarget_base_OnEnter", (PyCFunction) _wrap_DropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29655 | { (char *)"DropTarget_base_OnDragOver", (PyCFunction) _wrap_DropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29656 | { (char *)"DropTarget_base_OnLeave", (PyCFunction) _wrap_DropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29657 | { (char *)"DropTarget_base_OnDrop", (PyCFunction) _wrap_DropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29658 | { (char *)"DropTarget_GetData", (PyCFunction) _wrap_DropTarget_GetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29659 | { (char *)"DropTarget_swigregister", DropTarget_swigregister, METH_VARARGS, NULL }, | |
29660 | { (char *)"new_TextDropTarget", (PyCFunction) _wrap_new_TextDropTarget, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29661 | { (char *)"TextDropTarget__setCallbackInfo", (PyCFunction) _wrap_TextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29662 | { (char *)"TextDropTarget_base_OnEnter", (PyCFunction) _wrap_TextDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29663 | { (char *)"TextDropTarget_base_OnDragOver", (PyCFunction) _wrap_TextDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29664 | { (char *)"TextDropTarget_base_OnLeave", (PyCFunction) _wrap_TextDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29665 | { (char *)"TextDropTarget_base_OnDrop", (PyCFunction) _wrap_TextDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29666 | { (char *)"TextDropTarget_base_OnData", (PyCFunction) _wrap_TextDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29667 | { (char *)"TextDropTarget_swigregister", TextDropTarget_swigregister, METH_VARARGS, NULL }, | |
29668 | { (char *)"new_FileDropTarget", (PyCFunction) _wrap_new_FileDropTarget, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29669 | { (char *)"FileDropTarget__setCallbackInfo", (PyCFunction) _wrap_FileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29670 | { (char *)"FileDropTarget_base_OnEnter", (PyCFunction) _wrap_FileDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29671 | { (char *)"FileDropTarget_base_OnDragOver", (PyCFunction) _wrap_FileDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29672 | { (char *)"FileDropTarget_base_OnLeave", (PyCFunction) _wrap_FileDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29673 | { (char *)"FileDropTarget_base_OnDrop", (PyCFunction) _wrap_FileDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29674 | { (char *)"FileDropTarget_base_OnData", (PyCFunction) _wrap_FileDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29675 | { (char *)"FileDropTarget_swigregister", FileDropTarget_swigregister, METH_VARARGS, NULL }, | |
29676 | { (char *)"new_Clipboard", (PyCFunction) _wrap_new_Clipboard, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29677 | { (char *)"delete_Clipboard", (PyCFunction) _wrap_delete_Clipboard, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29678 | { (char *)"Clipboard_Open", (PyCFunction) _wrap_Clipboard_Open, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29679 | { (char *)"Clipboard_Close", (PyCFunction) _wrap_Clipboard_Close, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29680 | { (char *)"Clipboard_IsOpened", (PyCFunction) _wrap_Clipboard_IsOpened, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29681 | { (char *)"Clipboard_AddData", (PyCFunction) _wrap_Clipboard_AddData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29682 | { (char *)"Clipboard_SetData", (PyCFunction) _wrap_Clipboard_SetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29683 | { (char *)"Clipboard_IsSupported", (PyCFunction) _wrap_Clipboard_IsSupported, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29684 | { (char *)"Clipboard_GetData", (PyCFunction) _wrap_Clipboard_GetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29685 | { (char *)"Clipboard_Clear", (PyCFunction) _wrap_Clipboard_Clear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29686 | { (char *)"Clipboard_Flush", (PyCFunction) _wrap_Clipboard_Flush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29687 | { (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29688 | { (char *)"Clipboard_Get", (PyCFunction) _wrap_Clipboard_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29689 | { (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS, NULL }, | |
29690 | { (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29691 | { (char *)"delete_ClipboardLocker", (PyCFunction) _wrap_delete_ClipboardLocker, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29692 | { (char *)"ClipboardLocker___nonzero__", (PyCFunction) _wrap_ClipboardLocker___nonzero__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29693 | { (char *)"ClipboardLocker_swigregister", ClipboardLocker_swigregister, METH_VARARGS, NULL }, | |
29694 | { (char *)"new_VideoMode", (PyCFunction) _wrap_new_VideoMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29695 | { (char *)"delete_VideoMode", (PyCFunction) _wrap_delete_VideoMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29696 | { (char *)"VideoMode_Matches", (PyCFunction) _wrap_VideoMode_Matches, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29697 | { (char *)"VideoMode_GetWidth", (PyCFunction) _wrap_VideoMode_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29698 | { (char *)"VideoMode_GetHeight", (PyCFunction) _wrap_VideoMode_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29699 | { (char *)"VideoMode_GetDepth", (PyCFunction) _wrap_VideoMode_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29700 | { (char *)"VideoMode_IsOk", (PyCFunction) _wrap_VideoMode_IsOk, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29701 | { (char *)"VideoMode___eq__", (PyCFunction) _wrap_VideoMode___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29702 | { (char *)"VideoMode___ne__", (PyCFunction) _wrap_VideoMode___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29703 | { (char *)"VideoMode_w_set", (PyCFunction) _wrap_VideoMode_w_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29704 | { (char *)"VideoMode_w_get", (PyCFunction) _wrap_VideoMode_w_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29705 | { (char *)"VideoMode_h_set", (PyCFunction) _wrap_VideoMode_h_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29706 | { (char *)"VideoMode_h_get", (PyCFunction) _wrap_VideoMode_h_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29707 | { (char *)"VideoMode_bpp_set", (PyCFunction) _wrap_VideoMode_bpp_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29708 | { (char *)"VideoMode_bpp_get", (PyCFunction) _wrap_VideoMode_bpp_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29709 | { (char *)"VideoMode_refresh_set", (PyCFunction) _wrap_VideoMode_refresh_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29710 | { (char *)"VideoMode_refresh_get", (PyCFunction) _wrap_VideoMode_refresh_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29711 | { (char *)"VideoMode_swigregister", VideoMode_swigregister, METH_VARARGS, NULL }, | |
29712 | { (char *)"new_Display", (PyCFunction) _wrap_new_Display, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29713 | { (char *)"delete_Display", (PyCFunction) _wrap_delete_Display, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29714 | { (char *)"Display_GetCount", (PyCFunction) _wrap_Display_GetCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29715 | { (char *)"Display_GetFromPoint", (PyCFunction) _wrap_Display_GetFromPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29716 | { (char *)"Display_GetFromWindow", (PyCFunction) _wrap_Display_GetFromWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29717 | { (char *)"Display_IsOk", (PyCFunction) _wrap_Display_IsOk, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29718 | { (char *)"Display_GetGeometry", (PyCFunction) _wrap_Display_GetGeometry, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29719 | { (char *)"Display_GetName", (PyCFunction) _wrap_Display_GetName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29720 | { (char *)"Display_IsPrimary", (PyCFunction) _wrap_Display_IsPrimary, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29721 | { (char *)"Display_GetModes", (PyCFunction) _wrap_Display_GetModes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29722 | { (char *)"Display_GetCurrentMode", (PyCFunction) _wrap_Display_GetCurrentMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29723 | { (char *)"Display_ChangeMode", (PyCFunction) _wrap_Display_ChangeMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29724 | { (char *)"Display_ResetMode", (PyCFunction) _wrap_Display_ResetMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29725 | { (char *)"Display_swigregister", Display_swigregister, METH_VARARGS, NULL }, | |
070c48b4 RD |
29726 | { (char *)"StandardPaths_Get", (PyCFunction) _wrap_StandardPaths_Get, METH_VARARGS | METH_KEYWORDS, NULL }, |
29727 | { (char *)"StandardPaths_GetConfigDir", (PyCFunction) _wrap_StandardPaths_GetConfigDir, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29728 | { (char *)"StandardPaths_GetUserConfigDir", (PyCFunction) _wrap_StandardPaths_GetUserConfigDir, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29729 | { (char *)"StandardPaths_GetDataDir", (PyCFunction) _wrap_StandardPaths_GetDataDir, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29730 | { (char *)"StandardPaths_GetLocalDataDir", (PyCFunction) _wrap_StandardPaths_GetLocalDataDir, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29731 | { (char *)"StandardPaths_GetUserDataDir", (PyCFunction) _wrap_StandardPaths_GetUserDataDir, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29732 | { (char *)"StandardPaths_GetUserLocalDataDir", (PyCFunction) _wrap_StandardPaths_GetUserLocalDataDir, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29733 | { (char *)"StandardPaths_GetPluginsDir", (PyCFunction) _wrap_StandardPaths_GetPluginsDir, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29734 | { (char *)"StandardPaths_SetInstallPrefix", (PyCFunction) _wrap_StandardPaths_SetInstallPrefix, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29735 | { (char *)"StandardPaths_GetInstallPrefix", (PyCFunction) _wrap_StandardPaths_GetInstallPrefix, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29736 | { (char *)"StandardPaths_swigregister", StandardPaths_swigregister, METH_VARARGS, NULL }, | |
c370783e | 29737 | { NULL, NULL, 0, NULL } |
d55e5bfc RD |
29738 | }; |
29739 | ||
29740 | ||
29741 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
29742 | ||
29743 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
29744 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
29745 | } | |
29746 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
29747 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
29748 | } | |
29749 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
29750 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
29751 | } | |
29752 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
29753 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
29754 | } | |
29755 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
29756 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
29757 | } | |
29758 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
29759 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
29760 | } | |
29761 | static void *_p_wxTimerEventTo_p_wxEvent(void *x) { | |
29762 | return (void *)((wxEvent *) ((wxTimerEvent *) x)); | |
29763 | } | |
29764 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
29765 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
29766 | } | |
29767 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
29768 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
29769 | } | |
29770 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
29771 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
29772 | } | |
29773 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
29774 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
29775 | } | |
29776 | static void *_p_wxJoystickEventTo_p_wxEvent(void *x) { | |
29777 | return (void *)((wxEvent *) ((wxJoystickEvent *) x)); | |
29778 | } | |
29779 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
29780 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
29781 | } | |
29782 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
29783 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
29784 | } | |
29785 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
29786 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
29787 | } | |
29788 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
29789 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
29790 | } | |
29791 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
29792 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
29793 | } | |
29794 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
29795 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
29796 | } | |
29797 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
29798 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
29799 | } | |
29800 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
29801 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
29802 | } | |
29803 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
29804 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
29805 | } | |
29806 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
29807 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
29808 | } | |
29809 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
29810 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
29811 | } | |
29812 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
29813 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
29814 | } | |
29815 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
29816 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
29817 | } | |
29818 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
29819 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
29820 | } | |
29821 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
29822 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
29823 | } | |
29824 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
29825 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
29826 | } | |
29827 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
29828 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
29829 | } | |
29830 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
29831 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
29832 | } | |
29833 | static void *_p_wxProcessEventTo_p_wxEvent(void *x) { | |
29834 | return (void *)((wxEvent *) ((wxProcessEvent *) x)); | |
29835 | } | |
29836 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
29837 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
29838 | } | |
29839 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
29840 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
29841 | } | |
29842 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
29843 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
29844 | } | |
29845 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
29846 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
29847 | } | |
29848 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
29849 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
29850 | } | |
29851 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
29852 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
29853 | } | |
29854 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
29855 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
29856 | } | |
29857 | static void *_p_wxFileConfigTo_p_wxConfigBase(void *x) { | |
29858 | return (void *)((wxConfigBase *) ((wxFileConfig *) x)); | |
29859 | } | |
29860 | static void *_p_wxConfigTo_p_wxConfigBase(void *x) { | |
29861 | return (void *)((wxConfigBase *) ((wxConfig *) x)); | |
29862 | } | |
29863 | static void *_p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject(void *x) { | |
29864 | return (void *)((wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
29865 | } | |
29866 | static void *_p_wxPyTextDataObjectTo_p_wxTextDataObject(void *x) { | |
29867 | return (void *)((wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
29868 | } | |
29869 | static void *_p_wxDataObjectSimpleTo_p_wxDataObject(void *x) { | |
29870 | return (void *)((wxDataObject *) ((wxDataObjectSimple *) x)); | |
29871 | } | |
29872 | static void *_p_wxPyDataObjectSimpleTo_p_wxDataObject(void *x) { | |
29873 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxPyDataObjectSimple *) x)); | |
29874 | } | |
29875 | static void *_p_wxDataObjectCompositeTo_p_wxDataObject(void *x) { | |
29876 | return (void *)((wxDataObject *) ((wxDataObjectComposite *) x)); | |
29877 | } | |
29878 | static void *_p_wxTextDataObjectTo_p_wxDataObject(void *x) { | |
29879 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxTextDataObject *) x)); | |
29880 | } | |
29881 | static void *_p_wxPyTextDataObjectTo_p_wxDataObject(void *x) { | |
29882 | return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
29883 | } | |
29884 | static void *_p_wxBitmapDataObjectTo_p_wxDataObject(void *x) { | |
29885 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxBitmapDataObject *) x)); | |
29886 | } | |
29887 | static void *_p_wxPyBitmapDataObjectTo_p_wxDataObject(void *x) { | |
29888 | return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
29889 | } | |
29890 | static void *_p_wxFileDataObjectTo_p_wxDataObject(void *x) { | |
29891 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxFileDataObject *) x)); | |
29892 | } | |
29893 | static void *_p_wxCustomDataObjectTo_p_wxDataObject(void *x) { | |
29894 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxCustomDataObject *) x)); | |
29895 | } | |
29896 | static void *_p_wxURLDataObjectTo_p_wxDataObject(void *x) { | |
29897 | return (void *)((wxDataObject *) (wxDataObjectComposite *) ((wxURLDataObject *) x)); | |
29898 | } | |
29899 | static void *_p_wxMetafileDataObjectTo_p_wxDataObject(void *x) { | |
29900 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxMetafileDataObject *) x)); | |
29901 | } | |
29902 | static void *_p_wxURLDataObjectTo_p_wxDataObjectComposite(void *x) { | |
29903 | return (void *)((wxDataObjectComposite *) ((wxURLDataObject *) x)); | |
29904 | } | |
29905 | static void *_p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple(void *x) { | |
29906 | return (void *)((wxDataObjectSimple *) ((wxPyDataObjectSimple *) x)); | |
29907 | } | |
29908 | static void *_p_wxTextDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29909 | return (void *)((wxDataObjectSimple *) ((wxTextDataObject *) x)); | |
29910 | } | |
29911 | static void *_p_wxPyTextDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29912 | return (void *)((wxDataObjectSimple *) (wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
29913 | } | |
29914 | static void *_p_wxBitmapDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29915 | return (void *)((wxDataObjectSimple *) ((wxBitmapDataObject *) x)); | |
29916 | } | |
29917 | static void *_p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29918 | return (void *)((wxDataObjectSimple *) (wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
29919 | } | |
29920 | static void *_p_wxFileDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29921 | return (void *)((wxDataObjectSimple *) ((wxFileDataObject *) x)); | |
29922 | } | |
29923 | static void *_p_wxCustomDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29924 | return (void *)((wxDataObjectSimple *) ((wxCustomDataObject *) x)); | |
29925 | } | |
29926 | static void *_p_wxMetafileDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29927 | return (void *)((wxDataObjectSimple *) ((wxMetafileDataObject *) x)); | |
29928 | } | |
29929 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
29930 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
29931 | } | |
29932 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
29933 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
29934 | } | |
29935 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
29936 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
29937 | } | |
29938 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
29939 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
29940 | } | |
29941 | static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) { | |
29942 | return (void *)((wxEvtHandler *) ((wxPyTimer *) x)); | |
29943 | } | |
29944 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
29945 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
29946 | } | |
29947 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
29948 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
29949 | } | |
29950 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
29951 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
29952 | } | |
29953 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
29954 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
29955 | } | |
29956 | static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) { | |
29957 | return (void *)((wxEvtHandler *) ((wxPyProcess *) x)); | |
29958 | } | |
29959 | static void *_p_wxPyTipProviderTo_p_wxTipProvider(void *x) { | |
29960 | return (void *)((wxTipProvider *) ((wxPyTipProvider *) x)); | |
29961 | } | |
29962 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
29963 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
29964 | } | |
29965 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
29966 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
29967 | } | |
29968 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
29969 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
29970 | } | |
29971 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
29972 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
29973 | } | |
29974 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
29975 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
29976 | } | |
29977 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
29978 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
29979 | } | |
29980 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
29981 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
29982 | } | |
29983 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
29984 | return (void *)((wxObject *) ((wxSizer *) x)); | |
29985 | } | |
29986 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
29987 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
29988 | } | |
29989 | static void *_p_wxFileHistoryTo_p_wxObject(void *x) { | |
29990 | return (void *)((wxObject *) ((wxFileHistory *) x)); | |
29991 | } | |
29992 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
29993 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
29994 | } | |
29995 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
29996 | return (void *)((wxObject *) ((wxEvent *) x)); | |
29997 | } | |
29998 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
29999 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
30000 | } | |
30001 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
30002 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
30003 | } | |
30004 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
30005 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
30006 | } | |
30007 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
30008 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
30009 | } | |
30010 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
30011 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
30012 | } | |
30013 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
30014 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
30015 | } | |
30016 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
30017 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
30018 | } | |
30019 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
30020 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
30021 | } | |
30022 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
30023 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
30024 | } | |
30025 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
30026 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
30027 | } | |
30028 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
30029 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
30030 | } | |
30031 | static void *_p_wxTimerEventTo_p_wxObject(void *x) { | |
30032 | return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x)); | |
30033 | } | |
30034 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
30035 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
30036 | } | |
30037 | static void *_p_wxClipboardTo_p_wxObject(void *x) { | |
30038 | return (void *)((wxObject *) ((wxClipboard *) x)); | |
30039 | } | |
30040 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
30041 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
30042 | } | |
30043 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
30044 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
30045 | } | |
30046 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
30047 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
30048 | } | |
30049 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
30050 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
30051 | } | |
30052 | static void *_p_wxToolTipTo_p_wxObject(void *x) { | |
30053 | return (void *)((wxObject *) ((wxToolTip *) x)); | |
30054 | } | |
30055 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
30056 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
30057 | } | |
30058 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
30059 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
30060 | } | |
30061 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
30062 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
30063 | } | |
30064 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
30065 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
30066 | } | |
30067 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
30068 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
30069 | } | |
30070 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
30071 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
30072 | } | |
30073 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
30074 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
30075 | } | |
30076 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
30077 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
30078 | } | |
30079 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
30080 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
30081 | } | |
30082 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
30083 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
30084 | } | |
30085 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
30086 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
30087 | } | |
30088 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
30089 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
30090 | } | |
30091 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
30092 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
30093 | } | |
30094 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
30095 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
30096 | } | |
30097 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
30098 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
30099 | } | |
30100 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
30101 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
30102 | } | |
30103 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
30104 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
30105 | } | |
30106 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
30107 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
30108 | } | |
30109 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
30110 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
30111 | } | |
30112 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
30113 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
30114 | } | |
30115 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
30116 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
30117 | } | |
30118 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
30119 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
30120 | } | |
30121 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
30122 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
30123 | } | |
30124 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
30125 | return (void *)((wxObject *) ((wxImage *) x)); | |
30126 | } | |
30127 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
30128 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
30129 | } | |
30130 | static void *_p_wxSystemOptionsTo_p_wxObject(void *x) { | |
30131 | return (void *)((wxObject *) ((wxSystemOptions *) x)); | |
30132 | } | |
30133 | static void *_p_wxJoystickEventTo_p_wxObject(void *x) { | |
30134 | return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x)); | |
30135 | } | |
30136 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
30137 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
30138 | } | |
30139 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
30140 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
30141 | } | |
30142 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
30143 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
30144 | } | |
30145 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
30146 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
30147 | } | |
30148 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
30149 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
30150 | } | |
30151 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
30152 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
30153 | } | |
30154 | static void *_p_wxPyProcessTo_p_wxObject(void *x) { | |
30155 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x)); | |
30156 | } | |
30157 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
30158 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
30159 | } | |
30160 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
30161 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
30162 | } | |
30163 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
30164 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
30165 | } | |
30166 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
30167 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
30168 | } | |
30169 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
30170 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
30171 | } | |
30172 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
30173 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
30174 | } | |
30175 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
30176 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
30177 | } | |
30178 | static void *_p_wxBusyInfoTo_p_wxObject(void *x) { | |
30179 | return (void *)((wxObject *) ((wxBusyInfo *) x)); | |
30180 | } | |
30181 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
30182 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
30183 | } | |
30184 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
30185 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
30186 | } | |
30187 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
30188 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
30189 | } | |
30190 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
30191 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
30192 | } | |
30193 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
30194 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
30195 | } | |
30196 | static void *_p_wxProcessEventTo_p_wxObject(void *x) { | |
30197 | return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x)); | |
30198 | } | |
30199 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
30200 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
30201 | } | |
30202 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
30203 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
30204 | } | |
30205 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
30206 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
30207 | } | |
30208 | static void *_p_wxPyTimerTo_p_wxObject(void *x) { | |
30209 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x)); | |
30210 | } | |
30211 | static void *_p_wxLogStderrTo_p_wxLog(void *x) { | |
30212 | return (void *)((wxLog *) ((wxLogStderr *) x)); | |
30213 | } | |
30214 | static void *_p_wxLogTextCtrlTo_p_wxLog(void *x) { | |
30215 | return (void *)((wxLog *) ((wxLogTextCtrl *) x)); | |
30216 | } | |
30217 | static void *_p_wxLogWindowTo_p_wxLog(void *x) { | |
30218 | return (void *)((wxLog *) ((wxLogWindow *) x)); | |
30219 | } | |
30220 | static void *_p_wxLogChainTo_p_wxLog(void *x) { | |
30221 | return (void *)((wxLog *) ((wxLogChain *) x)); | |
30222 | } | |
30223 | static void *_p_wxLogGuiTo_p_wxLog(void *x) { | |
30224 | return (void *)((wxLog *) ((wxLogGui *) x)); | |
30225 | } | |
30226 | static void *_p_wxPyLogTo_p_wxLog(void *x) { | |
30227 | return (void *)((wxLog *) ((wxPyLog *) x)); | |
30228 | } | |
30229 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
30230 | return (void *)((wxWindow *) ((wxControl *) x)); | |
30231 | } | |
30232 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
30233 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
30234 | } | |
30235 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
30236 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
30237 | } | |
30238 | static void *_p_wxPyTextDropTargetTo_p_wxPyDropTarget(void *x) { | |
30239 | return (void *)((wxPyDropTarget *) ((wxPyTextDropTarget *) x)); | |
30240 | } | |
30241 | static void *_p_wxPyFileDropTargetTo_p_wxPyDropTarget(void *x) { | |
30242 | return (void *)((wxPyDropTarget *) ((wxPyFileDropTarget *) x)); | |
30243 | } | |
30244 | 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}}; | |
30245 | 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}}; | |
30246 | 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}}; | |
30247 | 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}}; | |
30248 | 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}}; | |
30249 | 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}}; | |
30250 | 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}}; | |
30251 | 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}}; | |
30252 | 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}}; | |
30253 | 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}}; | |
30254 | 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}}; | |
30255 | 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}}; | |
30256 | 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}}; | |
30257 | 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}}; | |
30258 | 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}}; | |
30259 | 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}}; | |
30260 | 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}}; | |
30261 | 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}}; | |
30262 | 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}}; | |
30263 | 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}}; | |
30264 | 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}}; | |
30265 | 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}}; | |
30266 | 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}}; | |
30267 | 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}}; | |
30268 | 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}}; | |
30269 | 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}}; | |
30270 | static swig_type_info _swigt__p_wxBusyCursor[] = {{"_p_wxBusyCursor", 0, "wxBusyCursor *", 0, 0, 0, 0},{"_p_wxBusyCursor", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
0346c964 | 30271 | 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 |
30272 | 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}}; |
30273 | 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}}; | |
30274 | 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}}; | |
30275 | static swig_type_info _swigt__p_wxDataObject[] = {{"_p_wxDataObject", 0, "wxDataObject *", 0, 0, 0, 0},{"_p_wxDataObjectSimple", _p_wxDataObjectSimpleTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxPyDataObjectSimple", _p_wxPyDataObjectSimpleTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxDataObjectComposite", _p_wxDataObjectCompositeTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxDataObject", 0, 0, 0, 0, 0, 0},{"_p_wxTextDataObject", _p_wxTextDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxPyTextDataObject", _p_wxPyTextDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxBitmapDataObject", _p_wxBitmapDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxPyBitmapDataObject", _p_wxPyBitmapDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxFileDataObject", _p_wxFileDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxCustomDataObject", _p_wxCustomDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxMetafileDataObject", _p_wxMetafileDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxURLDataObject", _p_wxURLDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
d55e5bfc RD |
30276 | 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}}; |
30277 | 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}}; | |
30278 | 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}}; | |
30279 | 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}}; | |
30280 | 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}}; | |
30281 | 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}}; | |
30282 | 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}}; | |
30283 | 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}}; | |
30284 | 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}}; | |
30285 | 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}}; | |
30286 | 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}}; | |
30287 | 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}}; | |
30288 | 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}}; | |
30289 | 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}}; | |
30290 | 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}}; | |
30291 | 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}}; | |
30292 | 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}}; | |
30293 | 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}}; | |
30294 | 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}}; | |
30295 | 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}}; | |
30296 | 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 | 30297 | 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 |
30298 | 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}}; |
30299 | 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}}; | |
30300 | 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}}; | |
30301 | 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}}; | |
30302 | 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}}; | |
30303 | 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}}; | |
30304 | 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}}; | |
30305 | 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}}; | |
30306 | 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}}; | |
30307 | 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}}; | |
30308 | 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}}; | |
30309 | 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}}; | |
30310 | 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}}; | |
30311 | 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}}; | |
30312 | 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}}; | |
30313 | 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}}; | |
30314 | 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}}; | |
30315 | 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}}; | |
30316 | 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}}; | |
30317 | 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}}; | |
30318 | 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}}; | |
30319 | 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}}; | |
30320 | 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}}; | |
30321 | 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}}; | |
30322 | 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}}; | |
30323 | 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}}; | |
30324 | 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}}; | |
30325 | 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}}; | |
30326 | 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}}; | |
30327 | 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 |
30328 | 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}}; |
30329 | 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}}; | |
30330 | 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}}; | |
30331 | ||
30332 | static swig_type_info *swig_types_initial[] = { | |
30333 | _swigt__p_wxLogChain, | |
30334 | _swigt__p_wxMutexGuiLocker, | |
30335 | _swigt__p_wxMetafile, | |
30336 | _swigt__p_wxFileHistory, | |
30337 | _swigt__p_wxLog, | |
30338 | _swigt__p_wxDateTime__TimeZone, | |
30339 | _swigt__p_wxMenu, | |
30340 | _swigt__p_wxEvent, | |
30341 | _swigt__p_wxConfigBase, | |
30342 | _swigt__p_wxDisplay, | |
30343 | _swigt__p_wxFileType, | |
30344 | _swigt__p_wxLogGui, | |
30345 | _swigt__p_wxFont, | |
30346 | _swigt__p_wxDataFormat, | |
30347 | _swigt__p_wxTimerEvent, | |
30348 | _swigt__p_wxCaret, | |
30349 | _swigt__p_int, | |
30350 | _swigt__p_wxSize, | |
30351 | _swigt__p_wxClipboard, | |
30352 | _swigt__p_wxStopWatch, | |
30353 | _swigt__p_wxDC, | |
30354 | _swigt__p_wxClipboardLocker, | |
30355 | _swigt__p_wxIcon, | |
30356 | _swigt__p_wxLogStderr, | |
30357 | _swigt__p_wxLogTextCtrl, | |
30358 | _swigt__p_wxTextCtrl, | |
30359 | _swigt__p_wxBusyCursor, | |
0346c964 | 30360 | _swigt__p_wxPyBitmapDataObject, |
d55e5bfc RD |
30361 | _swigt__p_wxPyTextDataObject, |
30362 | _swigt__p_wxBitmapDataObject, | |
30363 | _swigt__p_wxTextDataObject, | |
30364 | _swigt__p_wxDataObject, | |
d55e5bfc RD |
30365 | _swigt__p_wxFileDataObject, |
30366 | _swigt__p_wxCustomDataObject, | |
30367 | _swigt__p_wxURLDataObject, | |
30368 | _swigt__p_wxMetafileDataObject, | |
30369 | _swigt__p_wxSound, | |
30370 | _swigt__p_wxTimerRunner, | |
30371 | _swigt__p_wxLogWindow, | |
30372 | _swigt__p_wxTimeSpan, | |
30373 | _swigt__p_wxArrayString, | |
30374 | _swigt__p_wxWindowDisabler, | |
30375 | _swigt__p_wxToolTip, | |
30376 | _swigt__p_wxDataObjectComposite, | |
30377 | _swigt__p_wxFileConfig, | |
30378 | _swigt__p_wxSystemSettings, | |
30379 | _swigt__p_wxVideoMode, | |
30380 | _swigt__p_wxPyDataObjectSimple, | |
30381 | _swigt__p_wxDataObjectSimple, | |
30382 | _swigt__p_wxEvtHandler, | |
30383 | _swigt__p_wxRect, | |
30384 | _swigt__p_char, | |
30385 | _swigt__p_wxSingleInstanceChecker, | |
070c48b4 | 30386 | _swigt__p_wxStandardPaths, |
d55e5bfc RD |
30387 | _swigt__p_wxFileTypeInfo, |
30388 | _swigt__p_wxFrame, | |
30389 | _swigt__p_wxTimer, | |
30390 | _swigt__p_wxMimeTypesManager, | |
30391 | _swigt__p_wxPyArtProvider, | |
30392 | _swigt__p_wxPyTipProvider, | |
30393 | _swigt__p_wxTipProvider, | |
30394 | _swigt__p_wxJoystick, | |
30395 | _swigt__p_wxSystemOptions, | |
30396 | _swigt__p_wxPoint, | |
30397 | _swigt__p_wxJoystickEvent, | |
30398 | _swigt__p_wxCursor, | |
30399 | _swigt__p_wxObject, | |
30400 | _swigt__p_wxOutputStream, | |
30401 | _swigt__p_wxDateTime, | |
30402 | _swigt__p_wxPyDropSource, | |
30403 | _swigt__p_wxWindow, | |
30404 | _swigt__p_wxString, | |
30405 | _swigt__p_wxPyProcess, | |
30406 | _swigt__p_wxBitmap, | |
30407 | _swigt__p_wxConfig, | |
30408 | _swigt__p_wxChar, | |
30409 | _swigt__p_wxBusyInfo, | |
30410 | _swigt__p_wxPyDropTarget, | |
30411 | _swigt__p_wxPyTextDropTarget, | |
30412 | _swigt__p_wxPyFileDropTarget, | |
30413 | _swigt__p_wxProcessEvent, | |
30414 | _swigt__p_wxPyLog, | |
30415 | _swigt__p_wxLogNull, | |
30416 | _swigt__p_wxColour, | |
d55e5bfc RD |
30417 | _swigt__p_wxConfigPathChanger, |
30418 | _swigt__p_wxPyTimer, | |
30419 | _swigt__p_wxDateSpan, | |
30420 | 0 | |
30421 | }; | |
30422 | ||
30423 | ||
30424 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
30425 | ||
30426 | static swig_const_info swig_const_table[] = { | |
30427 | { SWIG_PY_POINTER, (char*)"TRACE_MemAlloc", 0, 0, (void *)"memalloc", &SWIGTYPE_p_char}, | |
30428 | { SWIG_PY_POINTER, (char*)"TRACE_Messages", 0, 0, (void *)"messages", &SWIGTYPE_p_char}, | |
30429 | { SWIG_PY_POINTER, (char*)"TRACE_ResAlloc", 0, 0, (void *)"resalloc", &SWIGTYPE_p_char}, | |
30430 | { SWIG_PY_POINTER, (char*)"TRACE_RefCount", 0, 0, (void *)"refcount", &SWIGTYPE_p_char}, | |
30431 | { SWIG_PY_POINTER, (char*)"TRACE_OleCalls", 0, 0, (void *)"ole", &SWIGTYPE_p_char}, | |
c370783e | 30432 | {0, 0, 0, 0.0, 0, 0}}; |
d55e5bfc RD |
30433 | |
30434 | #ifdef __cplusplus | |
30435 | } | |
30436 | #endif | |
30437 | ||
30438 | #ifdef __cplusplus | |
30439 | extern "C" | |
30440 | #endif | |
30441 | SWIGEXPORT(void) SWIG_init(void) { | |
30442 | static PyObject *SWIG_globals = 0; | |
30443 | static int typeinit = 0; | |
30444 | PyObject *m, *d; | |
30445 | int i; | |
30446 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
30447 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
30448 | d = PyModule_GetDict(m); | |
30449 | ||
30450 | if (!typeinit) { | |
30451 | for (i = 0; swig_types_initial[i]; i++) { | |
30452 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
30453 | } | |
30454 | typeinit = 1; | |
30455 | } | |
30456 | SWIG_InstallConstants(d,swig_const_table); | |
30457 | ||
c370783e RD |
30458 | PyDict_SetItemString(d,"SYS_OEM_FIXED_FONT", SWIG_From_int((int)wxSYS_OEM_FIXED_FONT)); |
30459 | PyDict_SetItemString(d,"SYS_ANSI_FIXED_FONT", SWIG_From_int((int)wxSYS_ANSI_FIXED_FONT)); | |
30460 | PyDict_SetItemString(d,"SYS_ANSI_VAR_FONT", SWIG_From_int((int)wxSYS_ANSI_VAR_FONT)); | |
30461 | PyDict_SetItemString(d,"SYS_SYSTEM_FONT", SWIG_From_int((int)wxSYS_SYSTEM_FONT)); | |
30462 | PyDict_SetItemString(d,"SYS_DEVICE_DEFAULT_FONT", SWIG_From_int((int)wxSYS_DEVICE_DEFAULT_FONT)); | |
30463 | PyDict_SetItemString(d,"SYS_DEFAULT_PALETTE", SWIG_From_int((int)wxSYS_DEFAULT_PALETTE)); | |
30464 | PyDict_SetItemString(d,"SYS_SYSTEM_FIXED_FONT", SWIG_From_int((int)wxSYS_SYSTEM_FIXED_FONT)); | |
30465 | PyDict_SetItemString(d,"SYS_DEFAULT_GUI_FONT", SWIG_From_int((int)wxSYS_DEFAULT_GUI_FONT)); | |
30466 | PyDict_SetItemString(d,"SYS_ICONTITLE_FONT", SWIG_From_int((int)wxSYS_ICONTITLE_FONT)); | |
30467 | PyDict_SetItemString(d,"SYS_COLOUR_SCROLLBAR", SWIG_From_int((int)wxSYS_COLOUR_SCROLLBAR)); | |
30468 | PyDict_SetItemString(d,"SYS_COLOUR_BACKGROUND", SWIG_From_int((int)wxSYS_COLOUR_BACKGROUND)); | |
30469 | PyDict_SetItemString(d,"SYS_COLOUR_DESKTOP", SWIG_From_int((int)wxSYS_COLOUR_DESKTOP)); | |
30470 | PyDict_SetItemString(d,"SYS_COLOUR_ACTIVECAPTION", SWIG_From_int((int)wxSYS_COLOUR_ACTIVECAPTION)); | |
30471 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTION", SWIG_From_int((int)wxSYS_COLOUR_INACTIVECAPTION)); | |
30472 | PyDict_SetItemString(d,"SYS_COLOUR_MENU", SWIG_From_int((int)wxSYS_COLOUR_MENU)); | |
30473 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOW", SWIG_From_int((int)wxSYS_COLOUR_WINDOW)); | |
30474 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOWFRAME", SWIG_From_int((int)wxSYS_COLOUR_WINDOWFRAME)); | |
30475 | PyDict_SetItemString(d,"SYS_COLOUR_MENUTEXT", SWIG_From_int((int)wxSYS_COLOUR_MENUTEXT)); | |
30476 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOWTEXT", SWIG_From_int((int)wxSYS_COLOUR_WINDOWTEXT)); | |
30477 | PyDict_SetItemString(d,"SYS_COLOUR_CAPTIONTEXT", SWIG_From_int((int)wxSYS_COLOUR_CAPTIONTEXT)); | |
30478 | PyDict_SetItemString(d,"SYS_COLOUR_ACTIVEBORDER", SWIG_From_int((int)wxSYS_COLOUR_ACTIVEBORDER)); | |
30479 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVEBORDER", SWIG_From_int((int)wxSYS_COLOUR_INACTIVEBORDER)); | |
30480 | PyDict_SetItemString(d,"SYS_COLOUR_APPWORKSPACE", SWIG_From_int((int)wxSYS_COLOUR_APPWORKSPACE)); | |
30481 | PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHT", SWIG_From_int((int)wxSYS_COLOUR_HIGHLIGHT)); | |
30482 | PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHTTEXT", SWIG_From_int((int)wxSYS_COLOUR_HIGHLIGHTTEXT)); | |
30483 | PyDict_SetItemString(d,"SYS_COLOUR_BTNFACE", SWIG_From_int((int)wxSYS_COLOUR_BTNFACE)); | |
30484 | PyDict_SetItemString(d,"SYS_COLOUR_3DFACE", SWIG_From_int((int)wxSYS_COLOUR_3DFACE)); | |
30485 | PyDict_SetItemString(d,"SYS_COLOUR_BTNSHADOW", SWIG_From_int((int)wxSYS_COLOUR_BTNSHADOW)); | |
30486 | PyDict_SetItemString(d,"SYS_COLOUR_3DSHADOW", SWIG_From_int((int)wxSYS_COLOUR_3DSHADOW)); | |
30487 | PyDict_SetItemString(d,"SYS_COLOUR_GRAYTEXT", SWIG_From_int((int)wxSYS_COLOUR_GRAYTEXT)); | |
30488 | PyDict_SetItemString(d,"SYS_COLOUR_BTNTEXT", SWIG_From_int((int)wxSYS_COLOUR_BTNTEXT)); | |
30489 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTIONTEXT", SWIG_From_int((int)wxSYS_COLOUR_INACTIVECAPTIONTEXT)); | |
30490 | PyDict_SetItemString(d,"SYS_COLOUR_BTNHIGHLIGHT", SWIG_From_int((int)wxSYS_COLOUR_BTNHIGHLIGHT)); | |
30491 | PyDict_SetItemString(d,"SYS_COLOUR_BTNHILIGHT", SWIG_From_int((int)wxSYS_COLOUR_BTNHILIGHT)); | |
30492 | PyDict_SetItemString(d,"SYS_COLOUR_3DHIGHLIGHT", SWIG_From_int((int)wxSYS_COLOUR_3DHIGHLIGHT)); | |
30493 | PyDict_SetItemString(d,"SYS_COLOUR_3DHILIGHT", SWIG_From_int((int)wxSYS_COLOUR_3DHILIGHT)); | |
30494 | PyDict_SetItemString(d,"SYS_COLOUR_3DDKSHADOW", SWIG_From_int((int)wxSYS_COLOUR_3DDKSHADOW)); | |
30495 | PyDict_SetItemString(d,"SYS_COLOUR_3DLIGHT", SWIG_From_int((int)wxSYS_COLOUR_3DLIGHT)); | |
30496 | PyDict_SetItemString(d,"SYS_COLOUR_INFOTEXT", SWIG_From_int((int)wxSYS_COLOUR_INFOTEXT)); | |
30497 | PyDict_SetItemString(d,"SYS_COLOUR_INFOBK", SWIG_From_int((int)wxSYS_COLOUR_INFOBK)); | |
30498 | PyDict_SetItemString(d,"SYS_COLOUR_LISTBOX", SWIG_From_int((int)wxSYS_COLOUR_LISTBOX)); | |
30499 | PyDict_SetItemString(d,"SYS_COLOUR_HOTLIGHT", SWIG_From_int((int)wxSYS_COLOUR_HOTLIGHT)); | |
30500 | PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTACTIVECAPTION", SWIG_From_int((int)wxSYS_COLOUR_GRADIENTACTIVECAPTION)); | |
30501 | PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTINACTIVECAPTION", SWIG_From_int((int)wxSYS_COLOUR_GRADIENTINACTIVECAPTION)); | |
30502 | PyDict_SetItemString(d,"SYS_COLOUR_MENUHILIGHT", SWIG_From_int((int)wxSYS_COLOUR_MENUHILIGHT)); | |
30503 | PyDict_SetItemString(d,"SYS_COLOUR_MENUBAR", SWIG_From_int((int)wxSYS_COLOUR_MENUBAR)); | |
30504 | PyDict_SetItemString(d,"SYS_COLOUR_MAX", SWIG_From_int((int)wxSYS_COLOUR_MAX)); | |
30505 | PyDict_SetItemString(d,"SYS_MOUSE_BUTTONS", SWIG_From_int((int)wxSYS_MOUSE_BUTTONS)); | |
30506 | PyDict_SetItemString(d,"SYS_BORDER_X", SWIG_From_int((int)wxSYS_BORDER_X)); | |
30507 | PyDict_SetItemString(d,"SYS_BORDER_Y", SWIG_From_int((int)wxSYS_BORDER_Y)); | |
30508 | PyDict_SetItemString(d,"SYS_CURSOR_X", SWIG_From_int((int)wxSYS_CURSOR_X)); | |
30509 | PyDict_SetItemString(d,"SYS_CURSOR_Y", SWIG_From_int((int)wxSYS_CURSOR_Y)); | |
30510 | PyDict_SetItemString(d,"SYS_DCLICK_X", SWIG_From_int((int)wxSYS_DCLICK_X)); | |
30511 | PyDict_SetItemString(d,"SYS_DCLICK_Y", SWIG_From_int((int)wxSYS_DCLICK_Y)); | |
30512 | PyDict_SetItemString(d,"SYS_DRAG_X", SWIG_From_int((int)wxSYS_DRAG_X)); | |
30513 | PyDict_SetItemString(d,"SYS_DRAG_Y", SWIG_From_int((int)wxSYS_DRAG_Y)); | |
30514 | PyDict_SetItemString(d,"SYS_EDGE_X", SWIG_From_int((int)wxSYS_EDGE_X)); | |
30515 | PyDict_SetItemString(d,"SYS_EDGE_Y", SWIG_From_int((int)wxSYS_EDGE_Y)); | |
30516 | PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_X", SWIG_From_int((int)wxSYS_HSCROLL_ARROW_X)); | |
30517 | PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_Y", SWIG_From_int((int)wxSYS_HSCROLL_ARROW_Y)); | |
30518 | PyDict_SetItemString(d,"SYS_HTHUMB_X", SWIG_From_int((int)wxSYS_HTHUMB_X)); | |
30519 | PyDict_SetItemString(d,"SYS_ICON_X", SWIG_From_int((int)wxSYS_ICON_X)); | |
30520 | PyDict_SetItemString(d,"SYS_ICON_Y", SWIG_From_int((int)wxSYS_ICON_Y)); | |
30521 | PyDict_SetItemString(d,"SYS_ICONSPACING_X", SWIG_From_int((int)wxSYS_ICONSPACING_X)); | |
30522 | PyDict_SetItemString(d,"SYS_ICONSPACING_Y", SWIG_From_int((int)wxSYS_ICONSPACING_Y)); | |
30523 | PyDict_SetItemString(d,"SYS_WINDOWMIN_X", SWIG_From_int((int)wxSYS_WINDOWMIN_X)); | |
30524 | PyDict_SetItemString(d,"SYS_WINDOWMIN_Y", SWIG_From_int((int)wxSYS_WINDOWMIN_Y)); | |
30525 | PyDict_SetItemString(d,"SYS_SCREEN_X", SWIG_From_int((int)wxSYS_SCREEN_X)); | |
30526 | PyDict_SetItemString(d,"SYS_SCREEN_Y", SWIG_From_int((int)wxSYS_SCREEN_Y)); | |
30527 | PyDict_SetItemString(d,"SYS_FRAMESIZE_X", SWIG_From_int((int)wxSYS_FRAMESIZE_X)); | |
30528 | PyDict_SetItemString(d,"SYS_FRAMESIZE_Y", SWIG_From_int((int)wxSYS_FRAMESIZE_Y)); | |
30529 | PyDict_SetItemString(d,"SYS_SMALLICON_X", SWIG_From_int((int)wxSYS_SMALLICON_X)); | |
30530 | PyDict_SetItemString(d,"SYS_SMALLICON_Y", SWIG_From_int((int)wxSYS_SMALLICON_Y)); | |
30531 | PyDict_SetItemString(d,"SYS_HSCROLL_Y", SWIG_From_int((int)wxSYS_HSCROLL_Y)); | |
30532 | PyDict_SetItemString(d,"SYS_VSCROLL_X", SWIG_From_int((int)wxSYS_VSCROLL_X)); | |
30533 | PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_X", SWIG_From_int((int)wxSYS_VSCROLL_ARROW_X)); | |
30534 | PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_Y", SWIG_From_int((int)wxSYS_VSCROLL_ARROW_Y)); | |
30535 | PyDict_SetItemString(d,"SYS_VTHUMB_Y", SWIG_From_int((int)wxSYS_VTHUMB_Y)); | |
30536 | PyDict_SetItemString(d,"SYS_CAPTION_Y", SWIG_From_int((int)wxSYS_CAPTION_Y)); | |
30537 | PyDict_SetItemString(d,"SYS_MENU_Y", SWIG_From_int((int)wxSYS_MENU_Y)); | |
30538 | PyDict_SetItemString(d,"SYS_NETWORK_PRESENT", SWIG_From_int((int)wxSYS_NETWORK_PRESENT)); | |
30539 | PyDict_SetItemString(d,"SYS_PENWINDOWS_PRESENT", SWIG_From_int((int)wxSYS_PENWINDOWS_PRESENT)); | |
30540 | PyDict_SetItemString(d,"SYS_SHOW_SOUNDS", SWIG_From_int((int)wxSYS_SHOW_SOUNDS)); | |
30541 | PyDict_SetItemString(d,"SYS_SWAP_BUTTONS", SWIG_From_int((int)wxSYS_SWAP_BUTTONS)); | |
30542 | PyDict_SetItemString(d,"SYS_CAN_DRAW_FRAME_DECORATIONS", SWIG_From_int((int)wxSYS_CAN_DRAW_FRAME_DECORATIONS)); | |
30543 | PyDict_SetItemString(d,"SYS_CAN_ICONIZE_FRAME", SWIG_From_int((int)wxSYS_CAN_ICONIZE_FRAME)); | |
30544 | PyDict_SetItemString(d,"SYS_SCREEN_NONE", SWIG_From_int((int)wxSYS_SCREEN_NONE)); | |
30545 | PyDict_SetItemString(d,"SYS_SCREEN_TINY", SWIG_From_int((int)wxSYS_SCREEN_TINY)); | |
30546 | PyDict_SetItemString(d,"SYS_SCREEN_PDA", SWIG_From_int((int)wxSYS_SCREEN_PDA)); | |
30547 | PyDict_SetItemString(d,"SYS_SCREEN_SMALL", SWIG_From_int((int)wxSYS_SCREEN_SMALL)); | |
30548 | PyDict_SetItemString(d,"SYS_SCREEN_DESKTOP", SWIG_From_int((int)wxSYS_SCREEN_DESKTOP)); | |
d55e5bfc | 30549 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
629e65c2 | 30550 | SWIG_addvarlink(SWIG_globals,(char*)"WINDOW_DEFAULT_VARIANT",_wrap_WINDOW_DEFAULT_VARIANT_get, _wrap_WINDOW_DEFAULT_VARIANT_set); |
d55e5bfc RD |
30551 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set); |
30552 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set); | |
30553 | SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set); | |
c370783e RD |
30554 | PyDict_SetItemString(d,"SHUTDOWN_POWEROFF", SWIG_From_int((int)wxSHUTDOWN_POWEROFF)); |
30555 | PyDict_SetItemString(d,"SHUTDOWN_REBOOT", SWIG_From_int((int)wxSHUTDOWN_REBOOT)); | |
30556 | PyDict_SetItemString(d,"TIMER_CONTINUOUS", SWIG_From_int((int)wxTIMER_CONTINUOUS)); | |
30557 | PyDict_SetItemString(d,"TIMER_ONE_SHOT", SWIG_From_int((int)wxTIMER_ONE_SHOT)); | |
d55e5bfc | 30558 | PyDict_SetItemString(d, "wxEVT_TIMER", PyInt_FromLong(wxEVT_TIMER)); |
1a6bba1e RD |
30559 | |
30560 | wxPyPtrTypeMap_Add("wxTimer", "wxPyTimer"); | |
30561 | ||
c370783e RD |
30562 | PyDict_SetItemString(d,"LOG_FatalError", SWIG_From_int((int)wxLOG_FatalError)); |
30563 | PyDict_SetItemString(d,"LOG_Error", SWIG_From_int((int)wxLOG_Error)); | |
30564 | PyDict_SetItemString(d,"LOG_Warning", SWIG_From_int((int)wxLOG_Warning)); | |
30565 | PyDict_SetItemString(d,"LOG_Message", SWIG_From_int((int)wxLOG_Message)); | |
30566 | PyDict_SetItemString(d,"LOG_Status", SWIG_From_int((int)wxLOG_Status)); | |
30567 | PyDict_SetItemString(d,"LOG_Info", SWIG_From_int((int)wxLOG_Info)); | |
30568 | PyDict_SetItemString(d,"LOG_Debug", SWIG_From_int((int)wxLOG_Debug)); | |
30569 | PyDict_SetItemString(d,"LOG_Trace", SWIG_From_int((int)wxLOG_Trace)); | |
30570 | PyDict_SetItemString(d,"LOG_Progress", SWIG_From_int((int)wxLOG_Progress)); | |
30571 | PyDict_SetItemString(d,"LOG_User", SWIG_From_int((int)wxLOG_User)); | |
30572 | PyDict_SetItemString(d,"LOG_Max", SWIG_From_int((int)wxLOG_Max)); | |
d55e5bfc RD |
30573 | PyDict_SetItemString(d,"TRACE_MemAlloc", SWIG_FromCharPtr("memalloc")); |
30574 | PyDict_SetItemString(d,"TRACE_Messages", SWIG_FromCharPtr("messages")); | |
30575 | PyDict_SetItemString(d,"TRACE_ResAlloc", SWIG_FromCharPtr("resalloc")); | |
30576 | PyDict_SetItemString(d,"TRACE_RefCount", SWIG_FromCharPtr("refcount")); | |
30577 | PyDict_SetItemString(d,"TRACE_OleCalls", SWIG_FromCharPtr("ole")); | |
c370783e RD |
30578 | PyDict_SetItemString(d,"TraceMemAlloc", SWIG_From_int((int)0x0001)); |
30579 | PyDict_SetItemString(d,"TraceMessages", SWIG_From_int((int)0x0002)); | |
30580 | PyDict_SetItemString(d,"TraceResAlloc", SWIG_From_int((int)0x0004)); | |
30581 | PyDict_SetItemString(d,"TraceRefCount", SWIG_From_int((int)0x0008)); | |
30582 | PyDict_SetItemString(d,"TraceOleCalls", SWIG_From_int((int)0x0100)); | |
30583 | PyDict_SetItemString(d,"PROCESS_DEFAULT", SWIG_From_int((int)wxPROCESS_DEFAULT)); | |
30584 | PyDict_SetItemString(d,"PROCESS_REDIRECT", SWIG_From_int((int)wxPROCESS_REDIRECT)); | |
30585 | PyDict_SetItemString(d,"KILL_OK", SWIG_From_int((int)wxKILL_OK)); | |
30586 | PyDict_SetItemString(d,"KILL_BAD_SIGNAL", SWIG_From_int((int)wxKILL_BAD_SIGNAL)); | |
30587 | PyDict_SetItemString(d,"KILL_ACCESS_DENIED", SWIG_From_int((int)wxKILL_ACCESS_DENIED)); | |
30588 | PyDict_SetItemString(d,"KILL_NO_PROCESS", SWIG_From_int((int)wxKILL_NO_PROCESS)); | |
30589 | PyDict_SetItemString(d,"KILL_ERROR", SWIG_From_int((int)wxKILL_ERROR)); | |
30590 | PyDict_SetItemString(d,"SIGNONE", SWIG_From_int((int)wxSIGNONE)); | |
30591 | PyDict_SetItemString(d,"SIGHUP", SWIG_From_int((int)wxSIGHUP)); | |
30592 | PyDict_SetItemString(d,"SIGINT", SWIG_From_int((int)wxSIGINT)); | |
30593 | PyDict_SetItemString(d,"SIGQUIT", SWIG_From_int((int)wxSIGQUIT)); | |
30594 | PyDict_SetItemString(d,"SIGILL", SWIG_From_int((int)wxSIGILL)); | |
30595 | PyDict_SetItemString(d,"SIGTRAP", SWIG_From_int((int)wxSIGTRAP)); | |
30596 | PyDict_SetItemString(d,"SIGABRT", SWIG_From_int((int)wxSIGABRT)); | |
30597 | PyDict_SetItemString(d,"SIGIOT", SWIG_From_int((int)wxSIGIOT)); | |
30598 | PyDict_SetItemString(d,"SIGEMT", SWIG_From_int((int)wxSIGEMT)); | |
30599 | PyDict_SetItemString(d,"SIGFPE", SWIG_From_int((int)wxSIGFPE)); | |
30600 | PyDict_SetItemString(d,"SIGKILL", SWIG_From_int((int)wxSIGKILL)); | |
30601 | PyDict_SetItemString(d,"SIGBUS", SWIG_From_int((int)wxSIGBUS)); | |
30602 | PyDict_SetItemString(d,"SIGSEGV", SWIG_From_int((int)wxSIGSEGV)); | |
30603 | PyDict_SetItemString(d,"SIGSYS", SWIG_From_int((int)wxSIGSYS)); | |
30604 | PyDict_SetItemString(d,"SIGPIPE", SWIG_From_int((int)wxSIGPIPE)); | |
30605 | PyDict_SetItemString(d,"SIGALRM", SWIG_From_int((int)wxSIGALRM)); | |
30606 | PyDict_SetItemString(d,"SIGTERM", SWIG_From_int((int)wxSIGTERM)); | |
d55e5bfc | 30607 | PyDict_SetItemString(d, "wxEVT_END_PROCESS", PyInt_FromLong(wxEVT_END_PROCESS)); |
c370783e RD |
30608 | PyDict_SetItemString(d,"EXEC_ASYNC", SWIG_From_int((int)wxEXEC_ASYNC)); |
30609 | PyDict_SetItemString(d,"EXEC_SYNC", SWIG_From_int((int)wxEXEC_SYNC)); | |
30610 | PyDict_SetItemString(d,"EXEC_NOHIDE", SWIG_From_int((int)wxEXEC_NOHIDE)); | |
30611 | PyDict_SetItemString(d,"EXEC_MAKE_GROUP_LEADER", SWIG_From_int((int)wxEXEC_MAKE_GROUP_LEADER)); | |
d55e5bfc RD |
30612 | |
30613 | wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess"); | |
30614 | ||
c370783e RD |
30615 | PyDict_SetItemString(d,"JOYSTICK1", SWIG_From_int((int)wxJOYSTICK1)); |
30616 | PyDict_SetItemString(d,"JOYSTICK2", SWIG_From_int((int)wxJOYSTICK2)); | |
30617 | PyDict_SetItemString(d,"JOY_BUTTON_ANY", SWIG_From_int((int)wxJOY_BUTTON_ANY)); | |
30618 | PyDict_SetItemString(d,"JOY_BUTTON1", SWIG_From_int((int)wxJOY_BUTTON1)); | |
30619 | PyDict_SetItemString(d,"JOY_BUTTON2", SWIG_From_int((int)wxJOY_BUTTON2)); | |
30620 | PyDict_SetItemString(d,"JOY_BUTTON3", SWIG_From_int((int)wxJOY_BUTTON3)); | |
30621 | PyDict_SetItemString(d,"JOY_BUTTON4", SWIG_From_int((int)wxJOY_BUTTON4)); | |
d55e5bfc RD |
30622 | PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong(wxEVT_JOY_BUTTON_DOWN)); |
30623 | PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_UP", PyInt_FromLong(wxEVT_JOY_BUTTON_UP)); | |
30624 | PyDict_SetItemString(d, "wxEVT_JOY_MOVE", PyInt_FromLong(wxEVT_JOY_MOVE)); | |
30625 | PyDict_SetItemString(d, "wxEVT_JOY_ZMOVE", PyInt_FromLong(wxEVT_JOY_ZMOVE)); | |
c370783e RD |
30626 | PyDict_SetItemString(d,"SOUND_SYNC", SWIG_From_int((int)wxSOUND_SYNC)); |
30627 | PyDict_SetItemString(d,"SOUND_ASYNC", SWIG_From_int((int)wxSOUND_ASYNC)); | |
30628 | PyDict_SetItemString(d,"SOUND_LOOP", SWIG_From_int((int)wxSOUND_LOOP)); | |
30629 | PyDict_SetItemString(d,"MAILCAP_STANDARD", SWIG_From_int((int)wxMAILCAP_STANDARD)); | |
30630 | PyDict_SetItemString(d,"MAILCAP_NETSCAPE", SWIG_From_int((int)wxMAILCAP_NETSCAPE)); | |
30631 | PyDict_SetItemString(d,"MAILCAP_KDE", SWIG_From_int((int)wxMAILCAP_KDE)); | |
30632 | PyDict_SetItemString(d,"MAILCAP_GNOME", SWIG_From_int((int)wxMAILCAP_GNOME)); | |
30633 | PyDict_SetItemString(d,"MAILCAP_ALL", SWIG_From_int((int)wxMAILCAP_ALL)); | |
d55e5bfc RD |
30634 | SWIG_addvarlink(SWIG_globals,(char*)"TheMimeTypesManager",_wrap_TheMimeTypesManager_get, _wrap_TheMimeTypesManager_set); |
30635 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TOOLBAR",_wrap_ART_TOOLBAR_get, _wrap_ART_TOOLBAR_set); | |
30636 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MENU",_wrap_ART_MENU_get, _wrap_ART_MENU_set); | |
30637 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FRAME_ICON",_wrap_ART_FRAME_ICON_get, _wrap_ART_FRAME_ICON_set); | |
30638 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CMN_DIALOG",_wrap_ART_CMN_DIALOG_get, _wrap_ART_CMN_DIALOG_set); | |
30639 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BROWSER",_wrap_ART_HELP_BROWSER_get, _wrap_ART_HELP_BROWSER_set); | |
30640 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MESSAGE_BOX",_wrap_ART_MESSAGE_BOX_get, _wrap_ART_MESSAGE_BOX_set); | |
4cf4100f | 30641 | SWIG_addvarlink(SWIG_globals,(char*)"ART_BUTTON",_wrap_ART_BUTTON_get, _wrap_ART_BUTTON_set); |
d55e5bfc RD |
30642 | SWIG_addvarlink(SWIG_globals,(char*)"ART_OTHER",_wrap_ART_OTHER_get, _wrap_ART_OTHER_set); |
30643 | SWIG_addvarlink(SWIG_globals,(char*)"ART_ADD_BOOKMARK",_wrap_ART_ADD_BOOKMARK_get, _wrap_ART_ADD_BOOKMARK_set); | |
30644 | SWIG_addvarlink(SWIG_globals,(char*)"ART_DEL_BOOKMARK",_wrap_ART_DEL_BOOKMARK_get, _wrap_ART_DEL_BOOKMARK_set); | |
30645 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SIDE_PANEL",_wrap_ART_HELP_SIDE_PANEL_get, _wrap_ART_HELP_SIDE_PANEL_set); | |
30646 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SETTINGS",_wrap_ART_HELP_SETTINGS_get, _wrap_ART_HELP_SETTINGS_set); | |
30647 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BOOK",_wrap_ART_HELP_BOOK_get, _wrap_ART_HELP_BOOK_set); | |
30648 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_FOLDER",_wrap_ART_HELP_FOLDER_get, _wrap_ART_HELP_FOLDER_set); | |
30649 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_PAGE",_wrap_ART_HELP_PAGE_get, _wrap_ART_HELP_PAGE_set); | |
30650 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_BACK",_wrap_ART_GO_BACK_get, _wrap_ART_GO_BACK_set); | |
30651 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_FORWARD",_wrap_ART_GO_FORWARD_get, _wrap_ART_GO_FORWARD_set); | |
30652 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_UP",_wrap_ART_GO_UP_get, _wrap_ART_GO_UP_set); | |
30653 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DOWN",_wrap_ART_GO_DOWN_get, _wrap_ART_GO_DOWN_set); | |
30654 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_TO_PARENT",_wrap_ART_GO_TO_PARENT_get, _wrap_ART_GO_TO_PARENT_set); | |
30655 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_HOME",_wrap_ART_GO_HOME_get, _wrap_ART_GO_HOME_set); | |
30656 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_OPEN",_wrap_ART_FILE_OPEN_get, _wrap_ART_FILE_OPEN_set); | |
30657 | SWIG_addvarlink(SWIG_globals,(char*)"ART_PRINT",_wrap_ART_PRINT_get, _wrap_ART_PRINT_set); | |
30658 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP",_wrap_ART_HELP_get, _wrap_ART_HELP_set); | |
30659 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TIP",_wrap_ART_TIP_get, _wrap_ART_TIP_set); | |
30660 | SWIG_addvarlink(SWIG_globals,(char*)"ART_REPORT_VIEW",_wrap_ART_REPORT_VIEW_get, _wrap_ART_REPORT_VIEW_set); | |
30661 | SWIG_addvarlink(SWIG_globals,(char*)"ART_LIST_VIEW",_wrap_ART_LIST_VIEW_get, _wrap_ART_LIST_VIEW_set); | |
30662 | SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW_DIR",_wrap_ART_NEW_DIR_get, _wrap_ART_NEW_DIR_set); | |
30663 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER",_wrap_ART_FOLDER_get, _wrap_ART_FOLDER_set); | |
30664 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DIR_UP",_wrap_ART_GO_DIR_UP_get, _wrap_ART_GO_DIR_UP_set); | |
30665 | SWIG_addvarlink(SWIG_globals,(char*)"ART_EXECUTABLE_FILE",_wrap_ART_EXECUTABLE_FILE_get, _wrap_ART_EXECUTABLE_FILE_set); | |
30666 | SWIG_addvarlink(SWIG_globals,(char*)"ART_NORMAL_FILE",_wrap_ART_NORMAL_FILE_get, _wrap_ART_NORMAL_FILE_set); | |
30667 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TICK_MARK",_wrap_ART_TICK_MARK_get, _wrap_ART_TICK_MARK_set); | |
30668 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CROSS_MARK",_wrap_ART_CROSS_MARK_get, _wrap_ART_CROSS_MARK_set); | |
30669 | SWIG_addvarlink(SWIG_globals,(char*)"ART_ERROR",_wrap_ART_ERROR_get, _wrap_ART_ERROR_set); | |
30670 | SWIG_addvarlink(SWIG_globals,(char*)"ART_QUESTION",_wrap_ART_QUESTION_get, _wrap_ART_QUESTION_set); | |
30671 | SWIG_addvarlink(SWIG_globals,(char*)"ART_WARNING",_wrap_ART_WARNING_get, _wrap_ART_WARNING_set); | |
30672 | SWIG_addvarlink(SWIG_globals,(char*)"ART_INFORMATION",_wrap_ART_INFORMATION_get, _wrap_ART_INFORMATION_set); | |
30673 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MISSING_IMAGE",_wrap_ART_MISSING_IMAGE_get, _wrap_ART_MISSING_IMAGE_set); | |
30674 | ||
30675 | wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider"); | |
30676 | ||
c370783e RD |
30677 | PyDict_SetItemString(d,"CONFIG_USE_LOCAL_FILE", SWIG_From_int((int)wxCONFIG_USE_LOCAL_FILE)); |
30678 | PyDict_SetItemString(d,"CONFIG_USE_GLOBAL_FILE", SWIG_From_int((int)wxCONFIG_USE_GLOBAL_FILE)); | |
30679 | PyDict_SetItemString(d,"CONFIG_USE_RELATIVE_PATH", SWIG_From_int((int)wxCONFIG_USE_RELATIVE_PATH)); | |
30680 | PyDict_SetItemString(d,"CONFIG_USE_NO_ESCAPE_CHARACTERS", SWIG_From_int((int)wxCONFIG_USE_NO_ESCAPE_CHARACTERS)); | |
30681 | PyDict_SetItemString(d,"ConfigBase_Type_Unknown", SWIG_From_int((int)wxConfigBase::Type_Unknown)); | |
30682 | PyDict_SetItemString(d,"ConfigBase_Type_String", SWIG_From_int((int)wxConfigBase::Type_String)); | |
30683 | PyDict_SetItemString(d,"ConfigBase_Type_Boolean", SWIG_From_int((int)wxConfigBase::Type_Boolean)); | |
30684 | PyDict_SetItemString(d,"ConfigBase_Type_Integer", SWIG_From_int((int)wxConfigBase::Type_Integer)); | |
30685 | PyDict_SetItemString(d,"ConfigBase_Type_Float", SWIG_From_int((int)wxConfigBase::Type_Float)); | |
d55e5bfc RD |
30686 | SWIG_addvarlink(SWIG_globals,(char*)"DateFormatStr",_wrap_DateFormatStr_get, _wrap_DateFormatStr_set); |
30687 | SWIG_addvarlink(SWIG_globals,(char*)"TimeSpanFormatStr",_wrap_TimeSpanFormatStr_get, _wrap_TimeSpanFormatStr_set); | |
c370783e RD |
30688 | PyDict_SetItemString(d,"DateTime_Local", SWIG_From_int((int)wxDateTime::Local)); |
30689 | PyDict_SetItemString(d,"DateTime_GMT_12", SWIG_From_int((int)wxDateTime::GMT_12)); | |
30690 | PyDict_SetItemString(d,"DateTime_GMT_11", SWIG_From_int((int)wxDateTime::GMT_11)); | |
30691 | PyDict_SetItemString(d,"DateTime_GMT_10", SWIG_From_int((int)wxDateTime::GMT_10)); | |
30692 | PyDict_SetItemString(d,"DateTime_GMT_9", SWIG_From_int((int)wxDateTime::GMT_9)); | |
30693 | PyDict_SetItemString(d,"DateTime_GMT_8", SWIG_From_int((int)wxDateTime::GMT_8)); | |
30694 | PyDict_SetItemString(d,"DateTime_GMT_7", SWIG_From_int((int)wxDateTime::GMT_7)); | |
30695 | PyDict_SetItemString(d,"DateTime_GMT_6", SWIG_From_int((int)wxDateTime::GMT_6)); | |
30696 | PyDict_SetItemString(d,"DateTime_GMT_5", SWIG_From_int((int)wxDateTime::GMT_5)); | |
30697 | PyDict_SetItemString(d,"DateTime_GMT_4", SWIG_From_int((int)wxDateTime::GMT_4)); | |
30698 | PyDict_SetItemString(d,"DateTime_GMT_3", SWIG_From_int((int)wxDateTime::GMT_3)); | |
30699 | PyDict_SetItemString(d,"DateTime_GMT_2", SWIG_From_int((int)wxDateTime::GMT_2)); | |
30700 | PyDict_SetItemString(d,"DateTime_GMT_1", SWIG_From_int((int)wxDateTime::GMT_1)); | |
30701 | PyDict_SetItemString(d,"DateTime_GMT0", SWIG_From_int((int)wxDateTime::GMT0)); | |
30702 | PyDict_SetItemString(d,"DateTime_GMT1", SWIG_From_int((int)wxDateTime::GMT1)); | |
30703 | PyDict_SetItemString(d,"DateTime_GMT2", SWIG_From_int((int)wxDateTime::GMT2)); | |
30704 | PyDict_SetItemString(d,"DateTime_GMT3", SWIG_From_int((int)wxDateTime::GMT3)); | |
30705 | PyDict_SetItemString(d,"DateTime_GMT4", SWIG_From_int((int)wxDateTime::GMT4)); | |
30706 | PyDict_SetItemString(d,"DateTime_GMT5", SWIG_From_int((int)wxDateTime::GMT5)); | |
30707 | PyDict_SetItemString(d,"DateTime_GMT6", SWIG_From_int((int)wxDateTime::GMT6)); | |
30708 | PyDict_SetItemString(d,"DateTime_GMT7", SWIG_From_int((int)wxDateTime::GMT7)); | |
30709 | PyDict_SetItemString(d,"DateTime_GMT8", SWIG_From_int((int)wxDateTime::GMT8)); | |
30710 | PyDict_SetItemString(d,"DateTime_GMT9", SWIG_From_int((int)wxDateTime::GMT9)); | |
30711 | PyDict_SetItemString(d,"DateTime_GMT10", SWIG_From_int((int)wxDateTime::GMT10)); | |
30712 | PyDict_SetItemString(d,"DateTime_GMT11", SWIG_From_int((int)wxDateTime::GMT11)); | |
30713 | PyDict_SetItemString(d,"DateTime_GMT12", SWIG_From_int((int)wxDateTime::GMT12)); | |
30714 | PyDict_SetItemString(d,"DateTime_WET", SWIG_From_int((int)wxDateTime::WET)); | |
30715 | PyDict_SetItemString(d,"DateTime_WEST", SWIG_From_int((int)wxDateTime::WEST)); | |
30716 | PyDict_SetItemString(d,"DateTime_CET", SWIG_From_int((int)wxDateTime::CET)); | |
30717 | PyDict_SetItemString(d,"DateTime_CEST", SWIG_From_int((int)wxDateTime::CEST)); | |
30718 | PyDict_SetItemString(d,"DateTime_EET", SWIG_From_int((int)wxDateTime::EET)); | |
30719 | PyDict_SetItemString(d,"DateTime_EEST", SWIG_From_int((int)wxDateTime::EEST)); | |
30720 | PyDict_SetItemString(d,"DateTime_MSK", SWIG_From_int((int)wxDateTime::MSK)); | |
30721 | PyDict_SetItemString(d,"DateTime_MSD", SWIG_From_int((int)wxDateTime::MSD)); | |
30722 | PyDict_SetItemString(d,"DateTime_AST", SWIG_From_int((int)wxDateTime::AST)); | |
30723 | PyDict_SetItemString(d,"DateTime_ADT", SWIG_From_int((int)wxDateTime::ADT)); | |
30724 | PyDict_SetItemString(d,"DateTime_EST", SWIG_From_int((int)wxDateTime::EST)); | |
30725 | PyDict_SetItemString(d,"DateTime_EDT", SWIG_From_int((int)wxDateTime::EDT)); | |
30726 | PyDict_SetItemString(d,"DateTime_CST", SWIG_From_int((int)wxDateTime::CST)); | |
30727 | PyDict_SetItemString(d,"DateTime_CDT", SWIG_From_int((int)wxDateTime::CDT)); | |
30728 | PyDict_SetItemString(d,"DateTime_MST", SWIG_From_int((int)wxDateTime::MST)); | |
30729 | PyDict_SetItemString(d,"DateTime_MDT", SWIG_From_int((int)wxDateTime::MDT)); | |
30730 | PyDict_SetItemString(d,"DateTime_PST", SWIG_From_int((int)wxDateTime::PST)); | |
30731 | PyDict_SetItemString(d,"DateTime_PDT", SWIG_From_int((int)wxDateTime::PDT)); | |
30732 | PyDict_SetItemString(d,"DateTime_HST", SWIG_From_int((int)wxDateTime::HST)); | |
30733 | PyDict_SetItemString(d,"DateTime_AKST", SWIG_From_int((int)wxDateTime::AKST)); | |
30734 | PyDict_SetItemString(d,"DateTime_AKDT", SWIG_From_int((int)wxDateTime::AKDT)); | |
30735 | PyDict_SetItemString(d,"DateTime_A_WST", SWIG_From_int((int)wxDateTime::A_WST)); | |
30736 | PyDict_SetItemString(d,"DateTime_A_CST", SWIG_From_int((int)wxDateTime::A_CST)); | |
30737 | PyDict_SetItemString(d,"DateTime_A_EST", SWIG_From_int((int)wxDateTime::A_EST)); | |
30738 | PyDict_SetItemString(d,"DateTime_A_ESST", SWIG_From_int((int)wxDateTime::A_ESST)); | |
30739 | PyDict_SetItemString(d,"DateTime_UTC", SWIG_From_int((int)wxDateTime::UTC)); | |
30740 | PyDict_SetItemString(d,"DateTime_Gregorian", SWIG_From_int((int)wxDateTime::Gregorian)); | |
30741 | PyDict_SetItemString(d,"DateTime_Julian", SWIG_From_int((int)wxDateTime::Julian)); | |
30742 | PyDict_SetItemString(d,"DateTime_Gr_Unknown", SWIG_From_int((int)wxDateTime::Gr_Unknown)); | |
30743 | PyDict_SetItemString(d,"DateTime_Gr_Standard", SWIG_From_int((int)wxDateTime::Gr_Standard)); | |
30744 | PyDict_SetItemString(d,"DateTime_Gr_Alaska", SWIG_From_int((int)wxDateTime::Gr_Alaska)); | |
30745 | PyDict_SetItemString(d,"DateTime_Gr_Albania", SWIG_From_int((int)wxDateTime::Gr_Albania)); | |
30746 | PyDict_SetItemString(d,"DateTime_Gr_Austria", SWIG_From_int((int)wxDateTime::Gr_Austria)); | |
30747 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Brixen", SWIG_From_int((int)wxDateTime::Gr_Austria_Brixen)); | |
30748 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Salzburg", SWIG_From_int((int)wxDateTime::Gr_Austria_Salzburg)); | |
30749 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Tyrol", SWIG_From_int((int)wxDateTime::Gr_Austria_Tyrol)); | |
30750 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Carinthia", SWIG_From_int((int)wxDateTime::Gr_Austria_Carinthia)); | |
30751 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Styria", SWIG_From_int((int)wxDateTime::Gr_Austria_Styria)); | |
30752 | PyDict_SetItemString(d,"DateTime_Gr_Belgium", SWIG_From_int((int)wxDateTime::Gr_Belgium)); | |
30753 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria", SWIG_From_int((int)wxDateTime::Gr_Bulgaria)); | |
30754 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_1", SWIG_From_int((int)wxDateTime::Gr_Bulgaria_1)); | |
30755 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_2", SWIG_From_int((int)wxDateTime::Gr_Bulgaria_2)); | |
30756 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_3", SWIG_From_int((int)wxDateTime::Gr_Bulgaria_3)); | |
30757 | PyDict_SetItemString(d,"DateTime_Gr_Canada", SWIG_From_int((int)wxDateTime::Gr_Canada)); | |
30758 | PyDict_SetItemString(d,"DateTime_Gr_China", SWIG_From_int((int)wxDateTime::Gr_China)); | |
30759 | PyDict_SetItemString(d,"DateTime_Gr_China_1", SWIG_From_int((int)wxDateTime::Gr_China_1)); | |
30760 | PyDict_SetItemString(d,"DateTime_Gr_China_2", SWIG_From_int((int)wxDateTime::Gr_China_2)); | |
30761 | PyDict_SetItemString(d,"DateTime_Gr_Czechoslovakia", SWIG_From_int((int)wxDateTime::Gr_Czechoslovakia)); | |
30762 | PyDict_SetItemString(d,"DateTime_Gr_Denmark", SWIG_From_int((int)wxDateTime::Gr_Denmark)); | |
30763 | PyDict_SetItemString(d,"DateTime_Gr_Egypt", SWIG_From_int((int)wxDateTime::Gr_Egypt)); | |
30764 | PyDict_SetItemString(d,"DateTime_Gr_Estonia", SWIG_From_int((int)wxDateTime::Gr_Estonia)); | |
30765 | PyDict_SetItemString(d,"DateTime_Gr_Finland", SWIG_From_int((int)wxDateTime::Gr_Finland)); | |
30766 | PyDict_SetItemString(d,"DateTime_Gr_France", SWIG_From_int((int)wxDateTime::Gr_France)); | |
30767 | PyDict_SetItemString(d,"DateTime_Gr_France_Alsace", SWIG_From_int((int)wxDateTime::Gr_France_Alsace)); | |
30768 | PyDict_SetItemString(d,"DateTime_Gr_France_Lorraine", SWIG_From_int((int)wxDateTime::Gr_France_Lorraine)); | |
30769 | PyDict_SetItemString(d,"DateTime_Gr_France_Strasbourg", SWIG_From_int((int)wxDateTime::Gr_France_Strasbourg)); | |
30770 | PyDict_SetItemString(d,"DateTime_Gr_Germany", SWIG_From_int((int)wxDateTime::Gr_Germany)); | |
30771 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Catholic", SWIG_From_int((int)wxDateTime::Gr_Germany_Catholic)); | |
30772 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Prussia", SWIG_From_int((int)wxDateTime::Gr_Germany_Prussia)); | |
30773 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Protestant", SWIG_From_int((int)wxDateTime::Gr_Germany_Protestant)); | |
30774 | PyDict_SetItemString(d,"DateTime_Gr_GreatBritain", SWIG_From_int((int)wxDateTime::Gr_GreatBritain)); | |
30775 | PyDict_SetItemString(d,"DateTime_Gr_Greece", SWIG_From_int((int)wxDateTime::Gr_Greece)); | |
30776 | PyDict_SetItemString(d,"DateTime_Gr_Hungary", SWIG_From_int((int)wxDateTime::Gr_Hungary)); | |
30777 | PyDict_SetItemString(d,"DateTime_Gr_Ireland", SWIG_From_int((int)wxDateTime::Gr_Ireland)); | |
30778 | PyDict_SetItemString(d,"DateTime_Gr_Italy", SWIG_From_int((int)wxDateTime::Gr_Italy)); | |
30779 | PyDict_SetItemString(d,"DateTime_Gr_Japan", SWIG_From_int((int)wxDateTime::Gr_Japan)); | |
30780 | PyDict_SetItemString(d,"DateTime_Gr_Japan_1", SWIG_From_int((int)wxDateTime::Gr_Japan_1)); | |
30781 | PyDict_SetItemString(d,"DateTime_Gr_Japan_2", SWIG_From_int((int)wxDateTime::Gr_Japan_2)); | |
30782 | PyDict_SetItemString(d,"DateTime_Gr_Japan_3", SWIG_From_int((int)wxDateTime::Gr_Japan_3)); | |
30783 | PyDict_SetItemString(d,"DateTime_Gr_Latvia", SWIG_From_int((int)wxDateTime::Gr_Latvia)); | |
30784 | PyDict_SetItemString(d,"DateTime_Gr_Lithuania", SWIG_From_int((int)wxDateTime::Gr_Lithuania)); | |
30785 | PyDict_SetItemString(d,"DateTime_Gr_Luxemburg", SWIG_From_int((int)wxDateTime::Gr_Luxemburg)); | |
30786 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands", SWIG_From_int((int)wxDateTime::Gr_Netherlands)); | |
30787 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Groningen", SWIG_From_int((int)wxDateTime::Gr_Netherlands_Groningen)); | |
30788 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Gelderland", SWIG_From_int((int)wxDateTime::Gr_Netherlands_Gelderland)); | |
30789 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Utrecht", SWIG_From_int((int)wxDateTime::Gr_Netherlands_Utrecht)); | |
30790 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Friesland", SWIG_From_int((int)wxDateTime::Gr_Netherlands_Friesland)); | |
30791 | PyDict_SetItemString(d,"DateTime_Gr_Norway", SWIG_From_int((int)wxDateTime::Gr_Norway)); | |
30792 | PyDict_SetItemString(d,"DateTime_Gr_Poland", SWIG_From_int((int)wxDateTime::Gr_Poland)); | |
30793 | PyDict_SetItemString(d,"DateTime_Gr_Portugal", SWIG_From_int((int)wxDateTime::Gr_Portugal)); | |
30794 | PyDict_SetItemString(d,"DateTime_Gr_Romania", SWIG_From_int((int)wxDateTime::Gr_Romania)); | |
30795 | PyDict_SetItemString(d,"DateTime_Gr_Russia", SWIG_From_int((int)wxDateTime::Gr_Russia)); | |
30796 | PyDict_SetItemString(d,"DateTime_Gr_Scotland", SWIG_From_int((int)wxDateTime::Gr_Scotland)); | |
30797 | PyDict_SetItemString(d,"DateTime_Gr_Spain", SWIG_From_int((int)wxDateTime::Gr_Spain)); | |
30798 | PyDict_SetItemString(d,"DateTime_Gr_Sweden", SWIG_From_int((int)wxDateTime::Gr_Sweden)); | |
30799 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland", SWIG_From_int((int)wxDateTime::Gr_Switzerland)); | |
30800 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Catholic", SWIG_From_int((int)wxDateTime::Gr_Switzerland_Catholic)); | |
30801 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Protestant", SWIG_From_int((int)wxDateTime::Gr_Switzerland_Protestant)); | |
30802 | PyDict_SetItemString(d,"DateTime_Gr_Turkey", SWIG_From_int((int)wxDateTime::Gr_Turkey)); | |
30803 | PyDict_SetItemString(d,"DateTime_Gr_USA", SWIG_From_int((int)wxDateTime::Gr_USA)); | |
30804 | PyDict_SetItemString(d,"DateTime_Gr_Wales", SWIG_From_int((int)wxDateTime::Gr_Wales)); | |
30805 | PyDict_SetItemString(d,"DateTime_Gr_Yugoslavia", SWIG_From_int((int)wxDateTime::Gr_Yugoslavia)); | |
30806 | PyDict_SetItemString(d,"DateTime_Country_Unknown", SWIG_From_int((int)wxDateTime::Country_Unknown)); | |
30807 | PyDict_SetItemString(d,"DateTime_Country_Default", SWIG_From_int((int)wxDateTime::Country_Default)); | |
30808 | PyDict_SetItemString(d,"DateTime_Country_WesternEurope_Start", SWIG_From_int((int)wxDateTime::Country_WesternEurope_Start)); | |
30809 | PyDict_SetItemString(d,"DateTime_Country_EEC", SWIG_From_int((int)wxDateTime::Country_EEC)); | |
30810 | PyDict_SetItemString(d,"DateTime_France", SWIG_From_int((int)wxDateTime::France)); | |
30811 | PyDict_SetItemString(d,"DateTime_Germany", SWIG_From_int((int)wxDateTime::Germany)); | |
30812 | PyDict_SetItemString(d,"DateTime_UK", SWIG_From_int((int)wxDateTime::UK)); | |
30813 | PyDict_SetItemString(d,"DateTime_Country_WesternEurope_End", SWIG_From_int((int)wxDateTime::Country_WesternEurope_End)); | |
30814 | PyDict_SetItemString(d,"DateTime_Russia", SWIG_From_int((int)wxDateTime::Russia)); | |
30815 | PyDict_SetItemString(d,"DateTime_USA", SWIG_From_int((int)wxDateTime::USA)); | |
30816 | PyDict_SetItemString(d,"DateTime_Jan", SWIG_From_int((int)wxDateTime::Jan)); | |
30817 | PyDict_SetItemString(d,"DateTime_Feb", SWIG_From_int((int)wxDateTime::Feb)); | |
30818 | PyDict_SetItemString(d,"DateTime_Mar", SWIG_From_int((int)wxDateTime::Mar)); | |
30819 | PyDict_SetItemString(d,"DateTime_Apr", SWIG_From_int((int)wxDateTime::Apr)); | |
30820 | PyDict_SetItemString(d,"DateTime_May", SWIG_From_int((int)wxDateTime::May)); | |
30821 | PyDict_SetItemString(d,"DateTime_Jun", SWIG_From_int((int)wxDateTime::Jun)); | |
30822 | PyDict_SetItemString(d,"DateTime_Jul", SWIG_From_int((int)wxDateTime::Jul)); | |
30823 | PyDict_SetItemString(d,"DateTime_Aug", SWIG_From_int((int)wxDateTime::Aug)); | |
30824 | PyDict_SetItemString(d,"DateTime_Sep", SWIG_From_int((int)wxDateTime::Sep)); | |
30825 | PyDict_SetItemString(d,"DateTime_Oct", SWIG_From_int((int)wxDateTime::Oct)); | |
30826 | PyDict_SetItemString(d,"DateTime_Nov", SWIG_From_int((int)wxDateTime::Nov)); | |
30827 | PyDict_SetItemString(d,"DateTime_Dec", SWIG_From_int((int)wxDateTime::Dec)); | |
30828 | PyDict_SetItemString(d,"DateTime_Inv_Month", SWIG_From_int((int)wxDateTime::Inv_Month)); | |
30829 | PyDict_SetItemString(d,"DateTime_Sun", SWIG_From_int((int)wxDateTime::Sun)); | |
30830 | PyDict_SetItemString(d,"DateTime_Mon", SWIG_From_int((int)wxDateTime::Mon)); | |
30831 | PyDict_SetItemString(d,"DateTime_Tue", SWIG_From_int((int)wxDateTime::Tue)); | |
30832 | PyDict_SetItemString(d,"DateTime_Wed", SWIG_From_int((int)wxDateTime::Wed)); | |
30833 | PyDict_SetItemString(d,"DateTime_Thu", SWIG_From_int((int)wxDateTime::Thu)); | |
30834 | PyDict_SetItemString(d,"DateTime_Fri", SWIG_From_int((int)wxDateTime::Fri)); | |
30835 | PyDict_SetItemString(d,"DateTime_Sat", SWIG_From_int((int)wxDateTime::Sat)); | |
30836 | PyDict_SetItemString(d,"DateTime_Inv_WeekDay", SWIG_From_int((int)wxDateTime::Inv_WeekDay)); | |
30837 | PyDict_SetItemString(d,"DateTime_Inv_Year", SWIG_From_int((int)wxDateTime::Inv_Year)); | |
30838 | PyDict_SetItemString(d,"DateTime_Name_Full", SWIG_From_int((int)wxDateTime::Name_Full)); | |
30839 | PyDict_SetItemString(d,"DateTime_Name_Abbr", SWIG_From_int((int)wxDateTime::Name_Abbr)); | |
30840 | PyDict_SetItemString(d,"DateTime_Default_First", SWIG_From_int((int)wxDateTime::Default_First)); | |
30841 | PyDict_SetItemString(d,"DateTime_Monday_First", SWIG_From_int((int)wxDateTime::Monday_First)); | |
30842 | PyDict_SetItemString(d,"DateTime_Sunday_First", SWIG_From_int((int)wxDateTime::Sunday_First)); | |
d55e5bfc | 30843 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultDateTime",_wrap_DefaultDateTime_get, _wrap_DefaultDateTime_set); |
c370783e RD |
30844 | PyDict_SetItemString(d,"DF_INVALID", SWIG_From_int((int)wxDF_INVALID)); |
30845 | PyDict_SetItemString(d,"DF_TEXT", SWIG_From_int((int)wxDF_TEXT)); | |
30846 | PyDict_SetItemString(d,"DF_BITMAP", SWIG_From_int((int)wxDF_BITMAP)); | |
30847 | PyDict_SetItemString(d,"DF_METAFILE", SWIG_From_int((int)wxDF_METAFILE)); | |
30848 | PyDict_SetItemString(d,"DF_SYLK", SWIG_From_int((int)wxDF_SYLK)); | |
30849 | PyDict_SetItemString(d,"DF_DIF", SWIG_From_int((int)wxDF_DIF)); | |
30850 | PyDict_SetItemString(d,"DF_TIFF", SWIG_From_int((int)wxDF_TIFF)); | |
30851 | PyDict_SetItemString(d,"DF_OEMTEXT", SWIG_From_int((int)wxDF_OEMTEXT)); | |
30852 | PyDict_SetItemString(d,"DF_DIB", SWIG_From_int((int)wxDF_DIB)); | |
30853 | PyDict_SetItemString(d,"DF_PALETTE", SWIG_From_int((int)wxDF_PALETTE)); | |
30854 | PyDict_SetItemString(d,"DF_PENDATA", SWIG_From_int((int)wxDF_PENDATA)); | |
30855 | PyDict_SetItemString(d,"DF_RIFF", SWIG_From_int((int)wxDF_RIFF)); | |
30856 | PyDict_SetItemString(d,"DF_WAVE", SWIG_From_int((int)wxDF_WAVE)); | |
30857 | PyDict_SetItemString(d,"DF_UNICODETEXT", SWIG_From_int((int)wxDF_UNICODETEXT)); | |
30858 | PyDict_SetItemString(d,"DF_ENHMETAFILE", SWIG_From_int((int)wxDF_ENHMETAFILE)); | |
30859 | PyDict_SetItemString(d,"DF_FILENAME", SWIG_From_int((int)wxDF_FILENAME)); | |
30860 | PyDict_SetItemString(d,"DF_LOCALE", SWIG_From_int((int)wxDF_LOCALE)); | |
30861 | PyDict_SetItemString(d,"DF_PRIVATE", SWIG_From_int((int)wxDF_PRIVATE)); | |
30862 | PyDict_SetItemString(d,"DF_HTML", SWIG_From_int((int)wxDF_HTML)); | |
30863 | PyDict_SetItemString(d,"DF_MAX", SWIG_From_int((int)wxDF_MAX)); | |
d55e5bfc | 30864 | SWIG_addvarlink(SWIG_globals,(char*)"FormatInvalid",_wrap_FormatInvalid_get, _wrap_FormatInvalid_set); |
c370783e RD |
30865 | PyDict_SetItemString(d,"DataObject_Get", SWIG_From_int((int)wxDataObject::Get)); |
30866 | PyDict_SetItemString(d,"DataObject_Set", SWIG_From_int((int)wxDataObject::Set)); | |
30867 | PyDict_SetItemString(d,"DataObject_Both", SWIG_From_int((int)wxDataObject::Both)); | |
30868 | PyDict_SetItemString(d,"Drag_CopyOnly", SWIG_From_int((int)wxDrag_CopyOnly)); | |
30869 | PyDict_SetItemString(d,"Drag_AllowMove", SWIG_From_int((int)wxDrag_AllowMove)); | |
30870 | PyDict_SetItemString(d,"Drag_DefaultMove", SWIG_From_int((int)wxDrag_DefaultMove)); | |
30871 | PyDict_SetItemString(d,"DragError", SWIG_From_int((int)wxDragError)); | |
30872 | PyDict_SetItemString(d,"DragNone", SWIG_From_int((int)wxDragNone)); | |
30873 | PyDict_SetItemString(d,"DragCopy", SWIG_From_int((int)wxDragCopy)); | |
30874 | PyDict_SetItemString(d,"DragMove", SWIG_From_int((int)wxDragMove)); | |
30875 | PyDict_SetItemString(d,"DragLink", SWIG_From_int((int)wxDragLink)); | |
30876 | PyDict_SetItemString(d,"DragCancel", SWIG_From_int((int)wxDragCancel)); | |
d55e5bfc RD |
30877 | |
30878 | wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource"); | |
30879 | wxPyPtrTypeMap_Add("wxDropTarget", "wxPyDropTarget"); | |
30880 | wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget"); | |
30881 | wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget"); | |
30882 | ||
d55e5bfc RD |
30883 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultVideoMode",_wrap_DefaultVideoMode_get, _wrap_DefaultVideoMode_set); |
30884 | } | |
30885 |