]>
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 | |
c32bde28 | 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 *); | |
c32bde28 | 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 | ||
c32bde28 | 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 | ||
c32bde28 | 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] | |
b1f29bf7 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] | |
264 | #define SWIGTYPE_p_wxFileTypeInfo swig_types[53] | |
265 | #define SWIGTYPE_p_wxFrame swig_types[54] | |
266 | #define SWIGTYPE_p_wxTimer swig_types[55] | |
267 | #define SWIGTYPE_p_wxMimeTypesManager swig_types[56] | |
268 | #define SWIGTYPE_p_wxPyArtProvider swig_types[57] | |
269 | #define SWIGTYPE_p_wxPyTipProvider swig_types[58] | |
270 | #define SWIGTYPE_p_wxTipProvider swig_types[59] | |
271 | #define SWIGTYPE_p_wxJoystick swig_types[60] | |
272 | #define SWIGTYPE_p_wxSystemOptions swig_types[61] | |
273 | #define SWIGTYPE_p_wxPoint swig_types[62] | |
274 | #define SWIGTYPE_p_wxJoystickEvent swig_types[63] | |
275 | #define SWIGTYPE_p_wxCursor swig_types[64] | |
276 | #define SWIGTYPE_p_wxObject swig_types[65] | |
277 | #define SWIGTYPE_p_wxOutputStream swig_types[66] | |
278 | #define SWIGTYPE_p_wxDateTime swig_types[67] | |
279 | #define SWIGTYPE_p_wxPyDropSource swig_types[68] | |
280 | #define SWIGTYPE_p_wxWindow swig_types[69] | |
281 | #define SWIGTYPE_p_wxString swig_types[70] | |
282 | #define SWIGTYPE_p_wxPyProcess swig_types[71] | |
283 | #define SWIGTYPE_p_wxBitmap swig_types[72] | |
284 | #define SWIGTYPE_p_wxConfig swig_types[73] | |
285 | #define SWIGTYPE_p_wxChar swig_types[74] | |
286 | #define SWIGTYPE_p_wxBusyInfo swig_types[75] | |
287 | #define SWIGTYPE_p_wxPyDropTarget swig_types[76] | |
288 | #define SWIGTYPE_p_wxPyTextDropTarget swig_types[77] | |
289 | #define SWIGTYPE_p_wxPyFileDropTarget swig_types[78] | |
290 | #define SWIGTYPE_p_wxProcessEvent swig_types[79] | |
291 | #define SWIGTYPE_p_wxPyLog swig_types[80] | |
292 | #define SWIGTYPE_p_wxLogNull swig_types[81] | |
293 | #define SWIGTYPE_p_wxColour swig_types[82] | |
b1f29bf7 RD |
294 | #define SWIGTYPE_p_wxConfigPathChanger swig_types[83] |
295 | #define SWIGTYPE_p_wxPyTimer swig_types[84] | |
296 | #define SWIGTYPE_p_wxDateSpan swig_types[85] | |
297 | static swig_type_info *swig_types[87]; | |
d55e5bfc RD |
298 | |
299 | /* -------- TYPES TABLE (END) -------- */ | |
300 | ||
301 | ||
302 | /*----------------------------------------------- | |
303 | @(target):= _misc_.so | |
304 | ------------------------------------------------*/ | |
305 | #define SWIG_init init_misc_ | |
306 | ||
307 | #define SWIG_name "_misc_" | |
308 | ||
c32bde28 RD |
309 | /* Auxiliar swig macros that appear in the header */ |
310 | ||
311 | #define SWIG_OLDOBJ 1 | |
312 | #define SWIG_NEWOBJ SWIG_OLDOBJ + 1 | |
313 | #define SWIG_PYSTR SWIG_NEWOBJ + 1 | |
d55e5bfc RD |
314 | |
315 | #ifdef __cplusplus | |
316 | #define SWIGSTATICINLINE(a) static inline a | |
317 | #define SWIGSTATIC(a) static a | |
c32bde28 RD |
318 | #define swig_new_array(size,Type) (new Type[(size)]) |
319 | #define swig_delete(cptr) delete cptr | |
d55e5bfc | 320 | #define swig_delete_array(cptr) delete[] cptr |
c32bde28 RD |
321 | #define swig_const_cast(a,Type) const_cast<Type >(a) |
322 | #define swig_static_cast(a,Type) static_cast<Type >(a) | |
323 | #define swig_reinterpret_cast(a,Type) reinterpret_cast<Type >(a) | |
324 | #define swig_new_copy(ptr,Type) (new Type(*ptr)) | |
325 | #define swig_numeric_cast(a,Type) static_cast<Type >(a) | |
d55e5bfc RD |
326 | |
327 | #else /* C case */ | |
328 | ||
329 | #define SWIGSTATICINLINE(a) static a | |
330 | #define SWIGSTATIC(a) static a | |
c32bde28 RD |
331 | #define swig_new_array(size,Type) ((Type*) malloc((size)*sizeof(Type))) |
332 | #define swig_delete(cptr) free((char*)cptr) | |
d55e5bfc | 333 | #define swig_delete_array(cptr) free((char*)cptr) |
c32bde28 RD |
334 | #define swig_const_cast(a,Type) (Type)(a) |
335 | #define swig_static_cast(a,Type) (Type)(a) | |
336 | #define swig_reinterpret_cast(a,Type) (Type)(a) | |
337 | #define swig_numeric_cast(a,Type) (Type)(a) | |
338 | #define swig_new_copy(ptr,Type) ((Type*)memcpy(malloc(sizeof(Type)),ptr,sizeof(Type))) | |
d55e5bfc RD |
339 | |
340 | #endif /* __cplusplus */ | |
341 | ||
342 | ||
c32bde28 RD |
343 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ |
344 | #define SWIG_From_signed_SS_char PyInt_FromLong | |
345 | /*@@*/ | |
346 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ | |
347 | #define SWIG_From_unsigned_SS_char PyInt_FromLong | |
348 | /*@@*/ | |
349 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ | |
350 | #define SWIG_From_short PyInt_FromLong | |
351 | /*@@*/ | |
352 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ | |
353 | #define SWIG_From_unsigned_SS_short PyInt_FromLong | |
354 | /*@@*/ | |
355 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ | |
356 | #define SWIG_From_int PyInt_FromLong | |
357 | /*@@*/ | |
358 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ | |
359 | #define SWIG_From_long PyInt_FromLong | |
360 | /*@@*/ | |
361 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ | |
362 | #define SWIG_From_float PyFloat_FromDouble | |
363 | /*@@*/ | |
364 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ | |
365 | #define SWIG_From_double PyFloat_FromDouble | |
366 | /*@@*/ | |
d55e5bfc RD |
367 | |
368 | ||
369 | #include "wx/wxPython/wxPython.h" | |
370 | #include "wx/wxPython/pyclasses.h" | |
0439c23b | 371 | #include "wx/wxPython/pyistream.h" |
d55e5bfc RD |
372 | |
373 | static const wxString wxPyEmptyString(wxEmptyString); | |
374 | ||
375 | ||
376 | ||
377 | #include <limits.h> | |
378 | ||
379 | ||
c32bde28 RD |
380 | SWIGSTATICINLINE(int) |
381 | SWIG_CheckLongInRange(long value, long min_value, long max_value, | |
382 | const char *errmsg) | |
d55e5bfc | 383 | { |
c32bde28 RD |
384 | if (value < min_value) { |
385 | if (errmsg) { | |
386 | PyErr_Format(PyExc_OverflowError, | |
387 | "value %ld is less than '%s' minimum %ld", | |
388 | value, errmsg, min_value); | |
389 | } | |
390 | return 0; | |
391 | } else if (value > max_value) { | |
392 | if (errmsg) { | |
393 | PyErr_Format(PyExc_OverflowError, | |
394 | "value %ld is greater than '%s' maximum %ld", | |
395 | value, errmsg, max_value); | |
d55e5bfc | 396 | } |
c32bde28 | 397 | return 0; |
d55e5bfc | 398 | } |
c32bde28 | 399 | return 1; |
d55e5bfc RD |
400 | } |
401 | ||
402 | ||
c32bde28 RD |
403 | // See my_fragments.i |
404 | SWIGSTATICINLINE(int) | |
405 | SWIG_AsVal_long(PyObject* obj, long* val) | |
d55e5bfc | 406 | { |
c32bde28 RD |
407 | if (PyNumber_Check(obj)) { |
408 | if (val) *val = PyInt_AsLong(obj); | |
409 | return 1; | |
410 | } | |
d55e5bfc RD |
411 | else { |
412 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
413 | obj->ob_type->tp_name); | |
414 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
415 | Py_DECREF(errmsg); | |
d55e5bfc | 416 | } |
c32bde28 | 417 | return 0; |
d55e5bfc RD |
418 | } |
419 | ||
420 | ||
421 | #if INT_MAX != LONG_MAX | |
422 | SWIGSTATICINLINE(int) | |
c32bde28 | 423 | SWIG_AsVal_int(PyObject *obj, int *val) |
d55e5bfc | 424 | { |
c32bde28 RD |
425 | const char* errmsg = val ? "int" : 0; |
426 | long v; | |
427 | if (SWIG_AsVal_long(obj, &v)) { | |
428 | if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) { | |
429 | if (val) *val = swig_numeric_cast(v, int); | |
430 | return 1; | |
431 | } else { | |
432 | return 0; | |
433 | } | |
434 | } else { | |
435 | PyErr_Clear(); | |
436 | } | |
437 | if (val) { | |
438 | PyErr_SetString(PyExc_TypeError, "an int is expected"); | |
439 | } | |
440 | return 0; | |
d55e5bfc RD |
441 | } |
442 | #else | |
c32bde28 RD |
443 | SWIGSTATICINLINE(int) |
444 | SWIG_AsVal_int(PyObject *obj, int *val) | |
445 | { | |
446 | return SWIG_AsVal_long(obj,(long*)val); | |
447 | } | |
d55e5bfc RD |
448 | #endif |
449 | ||
450 | ||
451 | SWIGSTATICINLINE(int) | |
c32bde28 | 452 | SWIG_As_int(PyObject* obj) |
d55e5bfc | 453 | { |
c32bde28 RD |
454 | int v; |
455 | if (!SWIG_AsVal_int(obj, &v)) { | |
456 | /* | |
457 | this is needed to make valgrind/purify happier. the other | |
458 | solution is throw an exception, but since this code should work | |
459 | with plain C .... | |
460 | */ | |
461 | memset((void*)&v, 0, sizeof(int)); | |
d55e5bfc | 462 | } |
c32bde28 RD |
463 | return v; |
464 | } | |
465 | ||
466 | ||
467 | SWIGSTATICINLINE(int) | |
468 | SWIG_Check_int(PyObject* obj) | |
469 | { | |
470 | return SWIG_AsVal_int(obj, (int*)0); | |
d55e5bfc RD |
471 | } |
472 | ||
7e63a440 | 473 | static const wxString wxPyWINDOW_DEFAULT_VARIANT(wxWINDOW_DEFAULT_VARIANT); |
d1f3a348 RD |
474 | |
475 | #include <wx/stockitem.h> | |
476 | ||
d55e5bfc RD |
477 | static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr); |
478 | static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr); | |
479 | static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr); | |
480 | ||
c32bde28 RD |
481 | SWIGSTATICINLINE(long) |
482 | SWIG_As_long(PyObject* obj) | |
483 | { | |
484 | long v; | |
485 | if (!SWIG_AsVal_long(obj, &v)) { | |
486 | /* | |
487 | this is needed to make valgrind/purify happier. the other | |
488 | solution is throw an exception, but since this code should work | |
489 | with plain C .... | |
490 | */ | |
491 | memset((void*)&v, 0, sizeof(long)); | |
492 | } | |
493 | return v; | |
494 | } | |
495 | ||
496 | ||
d55e5bfc | 497 | SWIGSTATICINLINE(int) |
c32bde28 | 498 | SWIG_Check_long(PyObject* obj) |
d55e5bfc | 499 | { |
c32bde28 RD |
500 | return SWIG_AsVal_long(obj, (long*)0); |
501 | } | |
502 | ||
503 | ||
504 | SWIGSTATICINLINE(int) | |
505 | SWIG_AsVal_bool(PyObject *obj, bool *val) | |
506 | { | |
507 | /* if (val) *val = PyObject_IsTrue(obj); return 1; */ | |
508 | if (obj == Py_True) { | |
509 | if (val) *val = true; | |
510 | return 1; | |
511 | } | |
512 | if (obj == Py_False) { | |
513 | if (val) *val = false; | |
d55e5bfc RD |
514 | return 1; |
515 | } | |
c32bde28 RD |
516 | int res = 0; |
517 | if (SWIG_AsVal_int(obj, &res)) { | |
518 | if (val) *val = (bool)res; | |
519 | return 1; | |
520 | } | |
521 | if (val) { | |
522 | PyErr_SetString(PyExc_TypeError, "a bool is expected"); | |
523 | } | |
524 | return 0; | |
d55e5bfc RD |
525 | } |
526 | ||
527 | ||
528 | SWIGSTATICINLINE(bool) | |
c32bde28 | 529 | SWIG_As_bool(PyObject* obj) |
d55e5bfc | 530 | { |
c32bde28 RD |
531 | bool v; |
532 | if (!SWIG_AsVal_bool(obj, &v)) { | |
533 | /* | |
534 | this is needed to make valgrind/purify happier. the other | |
535 | solution is throw an exception, but since this code should work | |
536 | with plain C .... | |
537 | */ | |
538 | memset((void*)&v, 0, sizeof(bool)); | |
539 | } | |
540 | return v; | |
d55e5bfc RD |
541 | } |
542 | ||
c32bde28 | 543 | |
d55e5bfc | 544 | SWIGSTATICINLINE(int) |
c32bde28 | 545 | SWIG_Check_bool(PyObject* obj) |
d55e5bfc | 546 | { |
c32bde28 | 547 | return SWIG_AsVal_bool(obj, (bool*)0); |
d55e5bfc RD |
548 | } |
549 | ||
550 | ||
c32bde28 | 551 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { |
d55e5bfc RD |
552 | PyObject* o2; |
553 | PyObject* o3; | |
c32bde28 | 554 | |
d55e5bfc RD |
555 | if (!target) { |
556 | target = o; | |
557 | } else if (target == Py_None) { | |
558 | Py_DECREF(Py_None); | |
559 | target = o; | |
7e63a440 RD |
560 | } else { |
561 | if (!PyTuple_Check(target)) { | |
562 | o2 = target; | |
563 | target = PyTuple_New(1); | |
564 | PyTuple_SetItem(target, 0, o2); | |
565 | } | |
d55e5bfc RD |
566 | o3 = PyTuple_New(1); |
567 | PyTuple_SetItem(o3, 0, o); | |
568 | ||
569 | o2 = target; | |
570 | target = PySequence_Concat(o2, o3); | |
571 | Py_DECREF(o2); | |
572 | Py_DECREF(o3); | |
573 | } | |
574 | return target; | |
7e63a440 | 575 | } |
d55e5bfc RD |
576 | |
577 | ||
c32bde28 RD |
578 | |
579 | // See my_fragments.i | |
580 | SWIGSTATICINLINE(int) | |
581 | SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val) | |
d55e5bfc | 582 | { |
c32bde28 RD |
583 | long v = 0; |
584 | if (SWIG_AsVal_long(obj, &v) && v < 0) { | |
585 | PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type"); | |
586 | return 0; | |
d55e5bfc | 587 | } |
c32bde28 RD |
588 | else if (val) |
589 | *val = (unsigned long)v; | |
590 | return 1; | |
d55e5bfc RD |
591 | } |
592 | ||
593 | ||
c32bde28 RD |
594 | SWIGSTATICINLINE(unsigned long) |
595 | SWIG_As_unsigned_SS_long(PyObject* obj) | |
d55e5bfc | 596 | { |
c32bde28 RD |
597 | unsigned long v; |
598 | if (!SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
599 | /* | |
600 | this is needed to make valgrind/purify happier. the other | |
601 | solution is throw an exception, but since this code should work | |
602 | with plain C .... | |
603 | */ | |
604 | memset((void*)&v, 0, sizeof(unsigned long)); | |
d55e5bfc | 605 | } |
c32bde28 RD |
606 | return v; |
607 | } | |
608 | ||
609 | ||
610 | SWIGSTATICINLINE(int) | |
611 | SWIG_Check_unsigned_SS_long(PyObject* obj) | |
612 | { | |
613 | return SWIG_AsVal_unsigned_SS_long(obj, (unsigned long*)0); | |
d55e5bfc RD |
614 | } |
615 | ||
616 | ||
617 | SWIGSTATICINLINE(PyObject* ) | |
c32bde28 | 618 | SWIG_From_unsigned_SS_long(unsigned long value) |
d55e5bfc RD |
619 | { |
620 | return (value > LONG_MAX) ? | |
621 | PyLong_FromUnsignedLong(value) | |
c32bde28 | 622 | : PyInt_FromLong(swig_numeric_cast(value,long)); |
d55e5bfc RD |
623 | } |
624 | ||
625 | ||
626 | bool wxThread_IsMain() { | |
627 | #ifdef WXP_WITH_THREAD | |
628 | return wxThread::IsMain(); | |
629 | #else | |
ae8162c8 | 630 | return true; |
d55e5bfc RD |
631 | #endif |
632 | } | |
633 | ||
634 | ||
635 | int wxCaret_GetBlinkTime() { | |
636 | return wxCaret::GetBlinkTime(); | |
637 | } | |
638 | ||
639 | void wxCaret_SetBlinkTime(int milliseconds) { | |
640 | wxCaret::SetBlinkTime(milliseconds); | |
641 | } | |
642 | ||
643 | ||
644 | #include <wx/snglinst.h> | |
645 | ||
646 | ||
647 | #ifdef __WXMSW__ | |
648 | #include <wx/msw/private.h> | |
649 | #include <wx/dynload.h> | |
650 | #endif | |
651 | ||
652 | ||
653 | ||
654 | void wxDrawWindowOnDC(wxWindow* window, const wxDC& dc, int method) | |
655 | { | |
656 | #ifdef __WXMSW__ | |
657 | ||
658 | switch (method) | |
659 | { | |
660 | case 1: | |
661 | // This one only partially works. Appears to be an undocumented | |
662 | // "standard" convention that not all widgets adhear to. For | |
663 | // example, for some widgets backgrounds or non-client areas may | |
664 | // not be painted. | |
665 | ::SendMessage(GetHwndOf(window), WM_PAINT, (long)GetHdcOf(dc), 0); | |
666 | break; | |
667 | ||
668 | case 2: | |
669 | // This one works much better, except for on XP. On Win2k nearly | |
670 | // all widgets and their children are captured correctly[**]. On | |
671 | // XP with Themes activated most native widgets draw only | |
672 | // partially, if at all. Without themes it works just like on | |
673 | // Win2k. | |
674 | // | |
675 | // ** For example the radio buttons in a wxRadioBox are not its | |
676 | // children by default, but you can capture it via the panel | |
677 | // instead, or change RADIOBTN_PARENT_IS_RADIOBOX in radiobox.cpp. | |
678 | ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc), | |
679 | PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | | |
680 | PRF_ERASEBKGND | PRF_OWNED ); | |
681 | break; | |
682 | ||
683 | case 3: | |
684 | // This one is only defined in the latest SDK and is only | |
685 | // available on XP. MSDN says it is similar to sending WM_PRINT | |
686 | // so I expect that it will work similar to the above. Since it | |
687 | // is avaialble only on XP, it can't be compiled like this and | |
688 | // will have to be loaded dynamically. | |
689 | // //::PrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); //break; | |
690 | ||
691 | // fall through | |
692 | ||
693 | case 4: | |
694 | // Use PrintWindow if available, or fallback to WM_PRINT | |
695 | // otherwise. Unfortunately using PrintWindow is even worse than | |
696 | // WM_PRINT. For most native widgets nothing is drawn to the dc | |
697 | // at all, with or without Themes. | |
698 | typedef BOOL (WINAPI *PrintWindow_t)(HWND, HDC, UINT); | |
ae8162c8 | 699 | static bool s_triedToLoad = false; |
d55e5bfc RD |
700 | static PrintWindow_t pfnPrintWindow = NULL; |
701 | if ( !s_triedToLoad ) | |
702 | { | |
703 | ||
ae8162c8 | 704 | s_triedToLoad = true; |
d55e5bfc RD |
705 | wxDynamicLibrary dllUser32(_T("user32.dll")); |
706 | if ( dllUser32.IsLoaded() ) | |
707 | { | |
708 | wxLogNull nolog; // Don't report errors here | |
709 | pfnPrintWindow = (PrintWindow_t)dllUser32.GetSymbol(_T("PrintWindow")); | |
710 | } | |
711 | } | |
712 | if (pfnPrintWindow) | |
713 | { | |
714 | printf("Using PrintWindow\n"); | |
715 | pfnPrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); | |
716 | } | |
717 | else | |
718 | { | |
719 | printf("Using WM_PRINT\n"); | |
720 | ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc), | |
721 | PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | PRF_ERASEBKGND | PRF_OWNED ); | |
722 | } | |
723 | } | |
724 | #endif | |
725 | } | |
726 | ||
727 | ||
728 | ||
729 | #include <wx/tipdlg.h> | |
730 | ||
731 | ||
732 | class wxPyTipProvider : public wxTipProvider { | |
733 | public: | |
734 | wxPyTipProvider(size_t currentTip) | |
735 | : wxTipProvider(currentTip) {} | |
736 | ||
737 | DEC_PYCALLBACK_STRING__pure(GetTip); | |
738 | DEC_PYCALLBACK_STRING_STRING(PreprocessTip); | |
739 | PYPRIVATE; | |
740 | }; | |
741 | ||
742 | IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip); | |
743 | IMP_PYCALLBACK_STRING_STRING(wxPyTipProvider, wxTipProvider, PreprocessTip); | |
744 | ||
745 | ||
746 | //IMP_PYCALLBACK__(wxPyTimer, wxTimer, Notify); | |
747 | ||
1a6bba1e RD |
748 | IMPLEMENT_ABSTRACT_CLASS(wxPyTimer, wxTimer); |
749 | ||
d55e5bfc RD |
750 | void wxPyTimer::Notify() { |
751 | bool found; | |
752 | bool blocked = wxPyBeginBlockThreads(); | |
753 | if ((found = wxPyCBH_findCallback(m_myInst, "Notify"))) | |
754 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("()")); | |
755 | wxPyEndBlockThreads(blocked); | |
756 | if (! found) | |
757 | wxTimer::Notify(); | |
758 | } | |
759 | void wxPyTimer::base_Notify() { | |
760 | wxTimer::Notify(); | |
761 | } | |
762 | ||
763 | ||
764 | ||
765 | SWIGSTATICINLINE(PyObject *) | |
766 | SWIG_FromCharPtr(const char* cptr) | |
767 | { | |
d55e5bfc | 768 | if (cptr) { |
c32bde28 | 769 | size_t size = strlen(cptr); |
d55e5bfc | 770 | if (size > INT_MAX) { |
c32bde28 | 771 | return SWIG_NewPointerObj(swig_const_cast(cptr,char*), |
d55e5bfc RD |
772 | SWIG_TypeQuery("char *"), 0); |
773 | } else { | |
c32bde28 RD |
774 | if (size != 0) { |
775 | return PyString_FromStringAndSize(cptr, size); | |
776 | } else { | |
777 | return PyString_FromString(cptr); | |
778 | } | |
d55e5bfc | 779 | } |
d55e5bfc | 780 | } |
c32bde28 RD |
781 | Py_INCREF(Py_None); |
782 | return Py_None; | |
d55e5bfc RD |
783 | } |
784 | ||
785 | ||
c32bde28 RD |
786 | SWIGSTATICINLINE(int) |
787 | SWIG_CheckUnsignedLongInRange(unsigned long value, | |
788 | unsigned long max_value, | |
789 | const char *errmsg) | |
d55e5bfc | 790 | { |
c32bde28 RD |
791 | if (value > max_value) { |
792 | if (errmsg) { | |
793 | PyErr_Format(PyExc_OverflowError, | |
794 | "value %ld is greater than '%s' minimum %ld", | |
795 | value, errmsg, max_value); | |
d55e5bfc | 796 | } |
c32bde28 | 797 | return 0; |
d55e5bfc | 798 | } |
c32bde28 RD |
799 | return 1; |
800 | } | |
d55e5bfc RD |
801 | |
802 | ||
803 | #if UINT_MAX != ULONG_MAX | |
c32bde28 RD |
804 | SWIGSTATICINLINE(int) |
805 | SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val) | |
d55e5bfc | 806 | { |
c32bde28 RD |
807 | const char* errmsg = val ? "unsigned int" : 0; |
808 | unsigned long v; | |
809 | if (SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
810 | if (SWIG_CheckUnsignedLongInRange(v, INT_MAX, errmsg)) { | |
811 | if (val) *val = swig_numeric_cast(v, unsigned int); | |
812 | return 1; | |
813 | } | |
814 | } else { | |
815 | PyErr_Clear(); | |
816 | } | |
817 | if (val) { | |
818 | PyErr_SetString(PyExc_TypeError, "an unsigned int is expected"); | |
819 | } | |
820 | return 0; | |
d55e5bfc RD |
821 | } |
822 | #else | |
c32bde28 RD |
823 | SWIGSTATICINLINE(unsigned int) |
824 | SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val) | |
825 | { | |
826 | return SWIG_AsVal_unsigned_SS_long(obj,(unsigned long *)val); | |
827 | } | |
d55e5bfc RD |
828 | #endif |
829 | ||
830 | ||
c32bde28 RD |
831 | SWIGSTATICINLINE(unsigned int) |
832 | SWIG_As_unsigned_SS_int(PyObject* obj) | |
d55e5bfc | 833 | { |
c32bde28 RD |
834 | unsigned int v; |
835 | if (!SWIG_AsVal_unsigned_SS_int(obj, &v)) { | |
836 | /* | |
837 | this is needed to make valgrind/purify happier. the other | |
838 | solution is throw an exception, but since this code should work | |
839 | with plain C .... | |
840 | */ | |
841 | memset((void*)&v, 0, sizeof(unsigned int)); | |
d55e5bfc | 842 | } |
c32bde28 RD |
843 | return v; |
844 | } | |
845 | ||
846 | ||
847 | SWIGSTATICINLINE(int) | |
848 | SWIG_Check_unsigned_SS_int(PyObject* obj) | |
849 | { | |
850 | return SWIG_AsVal_unsigned_SS_int(obj, (unsigned int*)0); | |
d55e5bfc RD |
851 | } |
852 | ||
853 | wxString Log_TimeStamp(){ | |
854 | wxString msg; | |
855 | wxLog::TimeStamp(&msg); | |
856 | return msg; | |
857 | } | |
858 | void wxLog_Destroy(wxLog *self){ delete self; } | |
859 | ||
860 | // A wxLog class that can be derived from in wxPython | |
861 | class wxPyLog : public wxLog { | |
862 | public: | |
863 | wxPyLog() : wxLog() {} | |
864 | ||
865 | virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) { | |
866 | bool found; | |
867 | bool blocked = wxPyBeginBlockThreads(); | |
868 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) { | |
869 | PyObject* s = wx2PyString(szString); | |
870 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t)); | |
871 | Py_DECREF(s); | |
872 | } | |
873 | wxPyEndBlockThreads(blocked); | |
874 | if (! found) | |
875 | wxLog::DoLog(level, szString, t); | |
876 | } | |
877 | ||
878 | virtual void DoLogString(const wxChar *szString, time_t t) { | |
879 | bool found; | |
880 | bool blocked = wxPyBeginBlockThreads(); | |
881 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) { | |
882 | PyObject* s = wx2PyString(szString); | |
883 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t)); | |
884 | Py_DECREF(s); | |
885 | } | |
886 | wxPyEndBlockThreads(blocked); | |
887 | if (! found) | |
888 | wxLog::DoLogString(szString, t); | |
889 | } | |
890 | ||
891 | PYPRIVATE; | |
892 | }; | |
893 | ||
894 | ||
895 | ||
896 | ||
897 | IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate); | |
898 | ||
899 | ||
900 | #include <wx/joystick.h> | |
901 | ||
902 | ||
903 | #if !wxUSE_JOYSTICK && !defined(__WXMSW__) | |
904 | // A C++ stub class for wxJoystick for platforms that don't have it. | |
905 | class wxJoystick : public wxObject { | |
906 | public: | |
907 | wxJoystick(int joystick = wxJOYSTICK1) { | |
908 | bool blocked = wxPyBeginBlockThreads(); | |
909 | PyErr_SetString(PyExc_NotImplementedError, | |
910 | "wxJoystick is not available on this platform."); | |
911 | wxPyEndBlockThreads(blocked); | |
912 | } | |
913 | wxPoint GetPosition() { return wxPoint(-1,-1); } | |
914 | int GetZPosition() { return -1; } | |
915 | int GetButtonState() { return -1; } | |
916 | int GetPOVPosition() { return -1; } | |
917 | int GetPOVCTSPosition() { return -1; } | |
918 | int GetRudderPosition() { return -1; } | |
919 | int GetUPosition() { return -1; } | |
920 | int GetVPosition() { return -1; } | |
921 | int GetMovementThreshold() { return -1; } | |
922 | void SetMovementThreshold(int threshold) {} | |
923 | ||
ae8162c8 | 924 | bool IsOk(void) { return false; } |
d55e5bfc RD |
925 | int GetNumberJoysticks() { return -1; } |
926 | int GetManufacturerId() { return -1; } | |
927 | int GetProductId() { return -1; } | |
79fccf9d | 928 | wxString GetProductName() { return wxEmptyString; } |
d55e5bfc RD |
929 | int GetXMin() { return -1; } |
930 | int GetYMin() { return -1; } | |
931 | int GetZMin() { return -1; } | |
932 | int GetXMax() { return -1; } | |
933 | int GetYMax() { return -1; } | |
934 | int GetZMax() { return -1; } | |
935 | int GetNumberButtons() { return -1; } | |
936 | int GetNumberAxes() { return -1; } | |
937 | int GetMaxButtons() { return -1; } | |
938 | int GetMaxAxes() { return -1; } | |
939 | int GetPollingMin() { return -1; } | |
940 | int GetPollingMax() { return -1; } | |
941 | int GetRudderMin() { return -1; } | |
942 | int GetRudderMax() { return -1; } | |
943 | int GetUMin() { return -1; } | |
944 | int GetUMax() { return -1; } | |
945 | int GetVMin() { return -1; } | |
946 | int GetVMax() { return -1; } | |
947 | ||
ae8162c8 RD |
948 | bool HasRudder() { return false; } |
949 | bool HasZ() { return false; } | |
950 | bool HasU() { return false; } | |
951 | bool HasV() { return false; } | |
952 | bool HasPOV() { return false; } | |
953 | bool HasPOV4Dir() { return false; } | |
954 | bool HasPOVCTS() { return false; } | |
d55e5bfc | 955 | |
ae8162c8 RD |
956 | bool SetCapture(wxWindow* win, int pollingFreq = 0) { return false; } |
957 | bool ReleaseCapture() { return false; } | |
d55e5bfc RD |
958 | }; |
959 | #endif | |
960 | ||
961 | ||
962 | #include <wx/sound.h> | |
963 | ||
964 | ||
965 | #if !wxUSE_SOUND | |
966 | // A C++ stub class for wxWave for platforms that don't have it. | |
967 | class wxSound : public wxObject | |
968 | { | |
969 | public: | |
970 | wxSound() { | |
971 | bool blocked = wxPyBeginBlockThreads(); | |
972 | PyErr_SetString(PyExc_NotImplementedError, | |
973 | "wxSound is not available on this platform."); | |
974 | wxPyEndBlockThreads(blocked); | |
975 | } | |
b1f29bf7 | 976 | wxSound(const wxString&/*, bool*/) { |
d55e5bfc RD |
977 | bool blocked = wxPyBeginBlockThreads(); |
978 | PyErr_SetString(PyExc_NotImplementedError, | |
979 | "wxSound is not available on this platform."); | |
980 | wxPyEndBlockThreads(blocked); | |
981 | } | |
982 | wxSound(int, const wxByte*) { | |
983 | bool blocked = wxPyBeginBlockThreads(); | |
984 | PyErr_SetString(PyExc_NotImplementedError, | |
985 | "wxSound is not available on this platform."); | |
986 | wxPyEndBlockThreads(blocked); | |
987 | } | |
988 | ||
989 | ~wxSound() {}; | |
990 | ||
b1f29bf7 | 991 | bool Create(const wxString&/*, bool*/) { return false; } |
d55e5bfc RD |
992 | bool Create(int, const wxByte*) { return false; }; |
993 | bool IsOk() { return false; }; | |
994 | bool Play(unsigned) const { return false; } | |
995 | static bool Play(const wxString&, unsigned) { return false; } | |
996 | static void Stop() {} | |
997 | }; | |
998 | ||
999 | #endif | |
1000 | ||
b1f29bf7 RD |
1001 | wxSound *new_wxSound(wxString const &fileName){ |
1002 | if (fileName.Length() == 0) | |
1003 | return new wxSound; | |
1004 | else | |
1005 | return new wxSound(fileName); | |
1006 | } | |
1007 | wxSound *new_wxSound(PyObject *data){ | |
1008 | unsigned char* buffer; int size; | |
1009 | wxSound *sound = NULL; | |
1010 | ||
1011 | bool blocked = wxPyBeginBlockThreads(); | |
1012 | if (!PyArg_Parse(data, "t#", &buffer, &size)) | |
1013 | goto done; | |
1014 | sound = new wxSound(size, buffer); | |
1015 | done: | |
1016 | wxPyEndBlockThreads(blocked); | |
1017 | return sound; | |
1018 | } | |
1019 | bool wxSound_CreateFromData(wxSound *self,PyObject *data){ | |
1020 | #ifndef __WXMAC__ | |
1021 | unsigned char* buffer; | |
1022 | int size; | |
ae8162c8 | 1023 | bool rv = false; |
b1f29bf7 RD |
1024 | |
1025 | bool blocked = wxPyBeginBlockThreads(); | |
1026 | if (!PyArg_Parse(data, "t#", &buffer, &size)) | |
1027 | goto done; | |
1028 | rv = self->Create(size, buffer); | |
1029 | done: | |
1030 | wxPyEndBlockThreads(blocked); | |
1031 | return rv; | |
1032 | #else | |
1033 | bool blocked = wxPyBeginBlockThreads(); | |
1034 | PyErr_SetString(PyExc_NotImplementedError, | |
1035 | "Create from data is not available on this platform."); | |
1036 | wxPyEndBlockThreads(blocked); | |
ae8162c8 | 1037 | return false; |
b1f29bf7 RD |
1038 | #endif |
1039 | } | |
d55e5bfc RD |
1040 | |
1041 | #include <wx/mimetype.h> | |
1042 | ||
1043 | PyObject *wxFileType_GetMimeType(wxFileType *self){ | |
1044 | wxString str; | |
1045 | if (self->GetMimeType(&str)) | |
1046 | return wx2PyString(str); | |
1047 | else | |
1048 | RETURN_NONE(); | |
1049 | } | |
1050 | PyObject *wxFileType_GetMimeTypes(wxFileType *self){ | |
1051 | wxArrayString arr; | |
1052 | if (self->GetMimeTypes(arr)) | |
1053 | return wxArrayString2PyList_helper(arr); | |
1054 | else | |
1055 | RETURN_NONE(); | |
1056 | } | |
1057 | PyObject *wxFileType_GetExtensions(wxFileType *self){ | |
1058 | wxArrayString arr; | |
1059 | if (self->GetExtensions(arr)) | |
1060 | return wxArrayString2PyList_helper(arr); | |
1061 | else | |
1062 | RETURN_NONE(); | |
1063 | } | |
1064 | wxIcon *wxFileType_GetIcon(wxFileType *self){ | |
1065 | wxIconLocation loc; | |
1066 | if (self->GetIcon(&loc)) | |
1067 | return new wxIcon(loc); | |
1068 | else | |
1069 | return NULL; | |
1070 | } | |
1071 | PyObject *wxFileType_GetIconInfo(wxFileType *self){ | |
1072 | wxIconLocation loc; | |
1073 | if (self->GetIcon(&loc)) { | |
1074 | wxString iconFile = loc.GetFileName(); | |
1075 | int iconIndex = -1; | |
1076 | ||
1077 | iconIndex = loc.GetIndex(); | |
1078 | ||
1079 | // Make a tuple and put the values in it | |
1080 | bool blocked = wxPyBeginBlockThreads(); | |
1081 | PyObject* tuple = PyTuple_New(3); | |
1082 | PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(loc), | |
ae8162c8 | 1083 | wxT("wxIcon"), true)); |
d55e5bfc RD |
1084 | PyTuple_SetItem(tuple, 1, wx2PyString(iconFile)); |
1085 | PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex)); | |
1086 | wxPyEndBlockThreads(blocked); | |
1087 | return tuple; | |
1088 | } | |
1089 | else | |
1090 | RETURN_NONE(); | |
1091 | } | |
1092 | PyObject *wxFileType_GetDescription(wxFileType *self){ | |
1093 | wxString str; | |
1094 | if (self->GetDescription(&str)) | |
1095 | return wx2PyString(str); | |
1096 | else | |
1097 | RETURN_NONE(); | |
1098 | } | |
1099 | PyObject *wxFileType_GetOpenCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
1100 | wxString str; | |
1101 | if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype))) | |
1102 | return wx2PyString(str); | |
1103 | else | |
1104 | RETURN_NONE(); | |
1105 | } | |
1106 | PyObject *wxFileType_GetPrintCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
1107 | wxString str; | |
1108 | if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype))) | |
1109 | return wx2PyString(str); | |
1110 | else | |
1111 | RETURN_NONE(); | |
1112 | } | |
1113 | PyObject *wxFileType_GetAllCommands(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
1114 | wxArrayString verbs; | |
1115 | wxArrayString commands; | |
1116 | if (self->GetAllCommands(&verbs, &commands, | |
1117 | wxFileType::MessageParameters(filename, mimetype))) { | |
1118 | bool blocked = wxPyBeginBlockThreads(); | |
1119 | PyObject* tuple = PyTuple_New(2); | |
1120 | PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs)); | |
1121 | PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands)); | |
1122 | wxPyEndBlockThreads(blocked); | |
1123 | return tuple; | |
1124 | } | |
1125 | else | |
1126 | RETURN_NONE(); | |
1127 | } | |
1128 | wxString FileType_ExpandCommand(wxString const &command,wxString const &filename,wxString const &mimetype){ | |
1129 | return wxFileType::ExpandCommand(command, | |
1130 | wxFileType::MessageParameters(filename, mimetype)); | |
1131 | } | |
1132 | PyObject *wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self){ | |
1133 | wxArrayString arr; | |
1134 | self->EnumAllFileTypes(arr); | |
1135 | return wxArrayString2PyList_helper(arr); | |
1136 | } | |
1137 | ||
1138 | #include <wx/artprov.h> | |
1139 | ||
1140 | static const wxString wxPyART_TOOLBAR(wxART_TOOLBAR); | |
1141 | static const wxString wxPyART_MENU(wxART_MENU); | |
1142 | static const wxString wxPyART_FRAME_ICON(wxART_FRAME_ICON); | |
1143 | static const wxString wxPyART_CMN_DIALOG(wxART_CMN_DIALOG); | |
1144 | static const wxString wxPyART_HELP_BROWSER(wxART_HELP_BROWSER); | |
1145 | static const wxString wxPyART_MESSAGE_BOX(wxART_MESSAGE_BOX); | |
4cf4100f | 1146 | static const wxString wxPyART_BUTTON(wxART_BUTTON); |
d55e5bfc RD |
1147 | static const wxString wxPyART_OTHER(wxART_OTHER); |
1148 | static const wxString wxPyART_ADD_BOOKMARK(wxART_ADD_BOOKMARK); | |
1149 | static const wxString wxPyART_DEL_BOOKMARK(wxART_DEL_BOOKMARK); | |
1150 | static const wxString wxPyART_HELP_SIDE_PANEL(wxART_HELP_SIDE_PANEL); | |
1151 | static const wxString wxPyART_HELP_SETTINGS(wxART_HELP_SETTINGS); | |
1152 | static const wxString wxPyART_HELP_BOOK(wxART_HELP_BOOK); | |
1153 | static const wxString wxPyART_HELP_FOLDER(wxART_HELP_FOLDER); | |
1154 | static const wxString wxPyART_HELP_PAGE(wxART_HELP_PAGE); | |
1155 | static const wxString wxPyART_GO_BACK(wxART_GO_BACK); | |
1156 | static const wxString wxPyART_GO_FORWARD(wxART_GO_FORWARD); | |
1157 | static const wxString wxPyART_GO_UP(wxART_GO_UP); | |
1158 | static const wxString wxPyART_GO_DOWN(wxART_GO_DOWN); | |
1159 | static const wxString wxPyART_GO_TO_PARENT(wxART_GO_TO_PARENT); | |
1160 | static const wxString wxPyART_GO_HOME(wxART_GO_HOME); | |
1161 | static const wxString wxPyART_FILE_OPEN(wxART_FILE_OPEN); | |
1162 | static const wxString wxPyART_PRINT(wxART_PRINT); | |
1163 | static const wxString wxPyART_HELP(wxART_HELP); | |
1164 | static const wxString wxPyART_TIP(wxART_TIP); | |
1165 | static const wxString wxPyART_REPORT_VIEW(wxART_REPORT_VIEW); | |
1166 | static const wxString wxPyART_LIST_VIEW(wxART_LIST_VIEW); | |
1167 | static const wxString wxPyART_NEW_DIR(wxART_NEW_DIR); | |
1168 | static const wxString wxPyART_FOLDER(wxART_FOLDER); | |
1169 | static const wxString wxPyART_GO_DIR_UP(wxART_GO_DIR_UP); | |
1170 | static const wxString wxPyART_EXECUTABLE_FILE(wxART_EXECUTABLE_FILE); | |
1171 | static const wxString wxPyART_NORMAL_FILE(wxART_NORMAL_FILE); | |
1172 | static const wxString wxPyART_TICK_MARK(wxART_TICK_MARK); | |
1173 | static const wxString wxPyART_CROSS_MARK(wxART_CROSS_MARK); | |
1174 | static const wxString wxPyART_ERROR(wxART_ERROR); | |
1175 | static const wxString wxPyART_QUESTION(wxART_QUESTION); | |
1176 | static const wxString wxPyART_WARNING(wxART_WARNING); | |
1177 | static const wxString wxPyART_INFORMATION(wxART_INFORMATION); | |
1178 | static const wxString wxPyART_MISSING_IMAGE(wxART_MISSING_IMAGE); | |
1179 | // Python aware wxArtProvider | |
1180 | class wxPyArtProvider : public wxArtProvider { | |
1181 | public: | |
1182 | ||
1183 | virtual wxBitmap CreateBitmap(const wxArtID& id, | |
1184 | const wxArtClient& client, | |
1185 | const wxSize& size) { | |
1186 | wxBitmap rval = wxNullBitmap; | |
1187 | bool blocked = wxPyBeginBlockThreads(); | |
1188 | if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) { | |
1189 | PyObject* so = wxPyConstructObject((void*)&size, wxT("wxSize"), 0); | |
1190 | PyObject* ro; | |
1191 | wxBitmap* ptr; | |
1192 | PyObject* s1, *s2; | |
1193 | s1 = wx2PyString(id); | |
1194 | s2 = wx2PyString(client); | |
1195 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so)); | |
1196 | Py_DECREF(so); | |
1197 | Py_DECREF(s1); | |
1198 | Py_DECREF(s2); | |
1199 | if (ro) { | |
1200 | if (wxPyConvertSwigPtr(ro, (void**)&ptr, wxT("wxBitmap"))) | |
1201 | rval = *ptr; | |
1202 | Py_DECREF(ro); | |
1203 | } | |
1204 | } | |
1205 | wxPyEndBlockThreads(blocked); | |
1206 | return rval; | |
1207 | } | |
1208 | ||
1209 | PYPRIVATE; | |
1210 | }; | |
1211 | ||
1212 | void wxPyArtProvider_Destroy(wxPyArtProvider *self){ delete self; } | |
1213 | ||
1214 | ||
1215 | ||
1216 | static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) { | |
1217 | PyObject* ret = PyTuple_New(3); | |
1218 | if (ret) { | |
1219 | PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag)); | |
1220 | PyTuple_SET_ITEM(ret, 1, wx2PyString(str)); | |
1221 | PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index)); | |
1222 | } | |
1223 | return ret; | |
1224 | } | |
1225 | ||
1226 | PyObject *wxConfigBase_GetFirstGroup(wxConfigBase *self){ | |
1227 | bool cont; | |
1228 | long index = 0; | |
1229 | wxString value; | |
1230 | ||
1231 | cont = self->GetFirstGroup(value, index); | |
1232 | return __EnumerationHelper(cont, value, index); | |
1233 | } | |
1234 | PyObject *wxConfigBase_GetNextGroup(wxConfigBase *self,long index){ | |
1235 | bool cont; | |
1236 | wxString value; | |
1237 | ||
1238 | cont = self->GetNextGroup(value, index); | |
1239 | return __EnumerationHelper(cont, value, index); | |
1240 | } | |
1241 | PyObject *wxConfigBase_GetFirstEntry(wxConfigBase *self){ | |
1242 | bool cont; | |
1243 | long index = 0; | |
1244 | wxString value; | |
1245 | ||
1246 | cont = self->GetFirstEntry(value, index); | |
1247 | return __EnumerationHelper(cont, value, index); | |
1248 | } | |
1249 | PyObject *wxConfigBase_GetNextEntry(wxConfigBase *self,long index){ | |
1250 | bool cont; | |
1251 | wxString value; | |
1252 | ||
1253 | cont = self->GetNextEntry(value, index); | |
1254 | return __EnumerationHelper(cont, value, index); | |
1255 | } | |
1256 | long wxConfigBase_ReadInt(wxConfigBase *self,wxString const &key,long defaultVal){ | |
1257 | long rv; | |
1258 | self->Read(key, &rv, defaultVal); | |
1259 | return rv; | |
1260 | } | |
1261 | ||
c32bde28 RD |
1262 | // See my_fragments.i |
1263 | SWIGSTATICINLINE(int) | |
1264 | SWIG_AsVal_double(PyObject *obj, double* val) | |
d55e5bfc | 1265 | { |
c32bde28 RD |
1266 | if (PyNumber_Check(obj)) { |
1267 | if (val) *val = PyFloat_AsDouble(obj); | |
1268 | return 1; | |
1269 | } | |
d55e5bfc RD |
1270 | else { |
1271 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
1272 | obj->ob_type->tp_name); | |
1273 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
1274 | Py_DECREF(errmsg); | |
d55e5bfc | 1275 | } |
c32bde28 | 1276 | return 0; |
d55e5bfc RD |
1277 | } |
1278 | ||
1279 | ||
c32bde28 RD |
1280 | SWIGSTATICINLINE(double) |
1281 | SWIG_As_double(PyObject* obj) | |
d55e5bfc | 1282 | { |
c32bde28 RD |
1283 | double v; |
1284 | if (!SWIG_AsVal_double(obj, &v)) { | |
1285 | /* | |
1286 | this is needed to make valgrind/purify happier. the other | |
1287 | solution is throw an exception, but since this code should work | |
1288 | with plain C .... | |
1289 | */ | |
1290 | memset((void*)&v, 0, sizeof(double)); | |
d55e5bfc | 1291 | } |
c32bde28 RD |
1292 | return v; |
1293 | } | |
1294 | ||
1295 | ||
1296 | SWIGSTATICINLINE(int) | |
1297 | SWIG_Check_double(PyObject* obj) | |
1298 | { | |
1299 | return SWIG_AsVal_double(obj, (double*)0); | |
d55e5bfc RD |
1300 | } |
1301 | ||
1302 | double wxConfigBase_ReadFloat(wxConfigBase *self,wxString const &key,double defaultVal){ | |
1303 | double rv; | |
1304 | self->Read(key, &rv, defaultVal); | |
1305 | return rv; | |
1306 | } | |
1307 | bool wxConfigBase_ReadBool(wxConfigBase *self,wxString const &key,bool defaultVal){ | |
1308 | bool rv; | |
1309 | self->Read(key, &rv, defaultVal); | |
1310 | return rv; | |
1311 | } | |
1312 | ||
1313 | #include <wx/datetime.h> | |
1314 | ||
1315 | ||
1316 | static const wxString wxPyDateFormatStr(wxT("%c")); | |
1317 | static const wxString wxPyTimeSpanFormatStr(wxT("%H:%M:%S")); | |
1318 | ||
1319 | #define LOCAL_TZ wxDateTime::Local | |
1320 | ||
1321 | ||
1322 | #if UINT_MAX < LONG_MAX | |
c32bde28 RD |
1323 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ |
1324 | #define SWIG_From_unsigned_SS_int SWIG_From_long | |
1325 | /*@@*/ | |
d55e5bfc | 1326 | #else |
c32bde28 RD |
1327 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ |
1328 | #define SWIG_From_unsigned_SS_int SWIG_From_unsigned_SS_long | |
1329 | /*@@*/ | |
d55e5bfc RD |
1330 | #endif |
1331 | ||
1332 | wxDateTime wxDateTime___add____SWIG_0(wxDateTime *self,wxTimeSpan const &other){ return *self + other; } | |
1333 | wxDateTime wxDateTime___add____SWIG_1(wxDateTime *self,wxDateSpan const &other){ return *self + other; } | |
1334 | wxTimeSpan wxDateTime___sub____SWIG_0(wxDateTime *self,wxDateTime const &other){ return *self - other; } | |
1335 | wxDateTime wxDateTime___sub____SWIG_1(wxDateTime *self,wxTimeSpan const &other){ return *self - other; } | |
1336 | wxDateTime wxDateTime___sub____SWIG_2(wxDateTime *self,wxDateSpan const &other){ return *self - other; } | |
1337 | bool wxDateTime___lt__(wxDateTime *self,wxDateTime const *other){ | |
1338 | if (!other || !self->IsValid() || !other->IsValid()) return self < other; | |
1339 | return (*self < *other); | |
1340 | } | |
1341 | bool wxDateTime___le__(wxDateTime *self,wxDateTime const *other){ | |
1342 | if (!other || !self->IsValid() || !other->IsValid()) return self <= other; | |
1343 | return (*self <= *other); | |
1344 | } | |
1345 | bool wxDateTime___gt__(wxDateTime *self,wxDateTime const *other){ | |
1346 | if (!other || !self->IsValid() || !other->IsValid()) return self > other; | |
1347 | return (*self > *other); | |
1348 | } | |
1349 | bool wxDateTime___ge__(wxDateTime *self,wxDateTime const *other){ | |
1350 | if (!other || !self->IsValid() || !other->IsValid()) return self >= other; | |
1351 | return (*self >= *other); | |
1352 | } | |
1353 | bool wxDateTime___eq__(wxDateTime *self,wxDateTime const *other){ | |
1354 | if (!other || !self->IsValid() || !other->IsValid()) return self == other; | |
1355 | return (*self == *other); | |
1356 | } | |
1357 | bool wxDateTime___ne__(wxDateTime *self,wxDateTime const *other){ | |
1358 | if (!other || !self->IsValid() || !other->IsValid()) return self != other; | |
1359 | return (*self != *other); | |
1360 | } | |
1361 | int wxDateTime_ParseRfc822Date(wxDateTime *self,wxString const &date){ | |
1362 | const wxChar* rv; | |
1363 | const wxChar* _date = date; | |
1364 | rv = self->ParseRfc822Date(_date); | |
1365 | if (rv == NULL) return -1; | |
1366 | return rv - _date; | |
1367 | } | |
1368 | int wxDateTime_ParseFormat(wxDateTime *self,wxString const &date,wxString const &format,wxDateTime const &dateDef){ | |
1369 | const wxChar* rv; | |
1370 | const wxChar* _date = date; | |
1371 | rv = self->ParseFormat(_date, format, dateDef); | |
1372 | if (rv == NULL) return -1; | |
1373 | return rv - _date; | |
1374 | } | |
1375 | int wxDateTime_ParseDateTime(wxDateTime *self,wxString const &datetime){ | |
1376 | const wxChar* rv; | |
1377 | const wxChar* _datetime = datetime; | |
1378 | rv = self->ParseDateTime(_datetime); | |
1379 | if (rv == NULL) return -1; | |
1380 | return rv - _datetime; | |
1381 | } | |
1382 | int wxDateTime_ParseDate(wxDateTime *self,wxString const &date){ | |
1383 | const wxChar* rv; | |
1384 | const wxChar* _date = date; | |
1385 | rv = self->ParseDate(_date); | |
1386 | if (rv == NULL) return -1; | |
1387 | return rv - _date; | |
1388 | } | |
1389 | int wxDateTime_ParseTime(wxDateTime *self,wxString const &time){ | |
1390 | const wxChar* rv; | |
1391 | const wxChar* _time = time; | |
1392 | rv = self->ParseTime(_time); | |
1393 | if (rv == NULL) return -1; | |
1394 | return rv - _time; | |
1395 | } | |
1396 | wxTimeSpan wxTimeSpan___add__(wxTimeSpan *self,wxTimeSpan const &other){ return *self + other; } | |
1397 | wxTimeSpan wxTimeSpan___sub__(wxTimeSpan *self,wxTimeSpan const &other){ return *self - other; } | |
1398 | wxTimeSpan wxTimeSpan___mul__(wxTimeSpan *self,int n){ return *self * n; } | |
1399 | wxTimeSpan wxTimeSpan___rmul__(wxTimeSpan *self,int n){ return n * *self; } | |
ae8162c8 RD |
1400 | bool wxTimeSpan___lt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self < *other) : false; } |
1401 | bool wxTimeSpan___le__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self <= *other) : false; } | |
1402 | bool wxTimeSpan___gt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self > *other) : true; } | |
1403 | bool wxTimeSpan___ge__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self >= *other) : true; } | |
1404 | bool wxTimeSpan___eq__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self == *other) : false; } | |
1405 | bool wxTimeSpan___ne__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self != *other) : true; } | |
d55e5bfc RD |
1406 | wxDateSpan wxDateSpan___add__(wxDateSpan *self,wxDateSpan const &other){ return *self + other; } |
1407 | wxDateSpan wxDateSpan___sub__(wxDateSpan *self,wxDateSpan const &other){ return *self - other; } | |
1408 | wxDateSpan wxDateSpan___mul__(wxDateSpan *self,int n){ return *self * n; } | |
1409 | wxDateSpan wxDateSpan___rmul__(wxDateSpan *self,int n){ return n * *self; } | |
ae8162c8 RD |
1410 | bool wxDateSpan___eq__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self == *other) : false; } |
1411 | bool wxDateSpan___ne__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self != *other) : true; } | |
d55e5bfc RD |
1412 | |
1413 | #include <wx/dataobj.h> | |
1414 | ||
a07a67e6 RD |
1415 | PyObject *wxDataObject_GetAllFormats(wxDataObject *self,wxDataObject::Direction dir){ |
1416 | size_t count = self->GetFormatCount(dir); | |
1417 | wxDataFormat* formats = new wxDataFormat[count]; | |
1418 | self->GetAllFormats(formats, dir); | |
1419 | ||
1420 | bool blocked = wxPyBeginBlockThreads(); | |
1421 | PyObject* list = PyList_New(count); | |
1422 | for (size_t i=0; i<count; i++) { | |
1423 | wxDataFormat* format = new wxDataFormat(formats[i]); | |
ae8162c8 | 1424 | PyObject* obj = wxPyConstructObject((void*)format, wxT("wxDataFormat"), true); |
a07a67e6 RD |
1425 | PyList_Append(list, obj); |
1426 | Py_DECREF(obj); | |
1427 | } | |
1428 | wxPyEndBlockThreads(blocked); | |
1429 | delete [] formats; | |
1430 | return list; | |
1431 | } | |
1432 | PyObject *wxDataObject_GetDataHere(wxDataObject *self,wxDataFormat const &format){ | |
1433 | PyObject* rval = NULL; | |
1434 | size_t size = self->GetDataSize(format); | |
1435 | bool blocked = wxPyBeginBlockThreads(); | |
1436 | if (size) { | |
1437 | char* buf = new char[size]; | |
1438 | if (self->GetDataHere(format, buf)) | |
1439 | rval = PyString_FromStringAndSize(buf, size); | |
1440 | delete [] buf; | |
1441 | } | |
1442 | if (! rval) { | |
1443 | rval = Py_None; | |
1444 | Py_INCREF(rval); | |
1445 | } | |
1446 | wxPyEndBlockThreads(blocked); | |
1447 | return rval; | |
1448 | } | |
1449 | bool wxDataObject_SetData(wxDataObject *self,wxDataFormat const &format,PyObject *data){ | |
1450 | bool rval; | |
1451 | bool blocked = wxPyBeginBlockThreads(); | |
1452 | if (PyString_Check(data)) { | |
1453 | rval = self->SetData(format, PyString_Size(data), PyString_AsString(data)); | |
1454 | } | |
1455 | else { | |
1456 | // raise a TypeError if not a string | |
1457 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
ae8162c8 | 1458 | rval = false; |
a07a67e6 RD |
1459 | } |
1460 | wxPyEndBlockThreads(blocked); | |
1461 | return rval; | |
1462 | } | |
1463 | PyObject *wxDataObjectSimple_GetDataHere(wxDataObjectSimple *self){ | |
1464 | PyObject* rval = NULL; | |
1465 | size_t size = self->GetDataSize(); | |
1466 | bool blocked = wxPyBeginBlockThreads(); | |
1467 | if (size) { | |
1468 | char* buf = new char[size]; | |
1469 | if (self->GetDataHere(buf)) | |
1470 | rval = PyString_FromStringAndSize(buf, size); | |
1471 | delete [] buf; | |
1472 | } | |
1473 | if (! rval) { | |
1474 | rval = Py_None; | |
1475 | Py_INCREF(rval); | |
1476 | } | |
1477 | wxPyEndBlockThreads(blocked); | |
1478 | return rval; | |
1479 | } | |
1480 | bool wxDataObjectSimple_SetData(wxDataObjectSimple *self,PyObject *data){ | |
1481 | bool rval; | |
1482 | bool blocked = wxPyBeginBlockThreads(); | |
1483 | if (PyString_Check(data)) { | |
1484 | rval = self->SetData(PyString_Size(data), PyString_AsString(data)); | |
1485 | } | |
1486 | else { | |
1487 | // raise a TypeError if not a string | |
1488 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
ae8162c8 | 1489 | rval = false; |
a07a67e6 RD |
1490 | } |
1491 | wxPyEndBlockThreads(blocked); | |
1492 | return rval; | |
1493 | } | |
d55e5bfc RD |
1494 | // Create a new class for wxPython to use |
1495 | class wxPyDataObjectSimple : public wxDataObjectSimple { | |
1496 | public: | |
1497 | wxPyDataObjectSimple(const wxDataFormat& format = wxFormatInvalid) | |
1498 | : wxDataObjectSimple(format) {} | |
1499 | ||
1500 | DEC_PYCALLBACK_SIZET__const(GetDataSize); | |
1501 | bool GetDataHere(void *buf) const; | |
1502 | bool SetData(size_t len, const void *buf) const; | |
1503 | PYPRIVATE; | |
1504 | }; | |
1505 | ||
1506 | IMP_PYCALLBACK_SIZET__const(wxPyDataObjectSimple, wxDataObjectSimple, GetDataSize); | |
1507 | ||
1508 | bool wxPyDataObjectSimple::GetDataHere(void *buf) const { | |
1509 | // We need to get the data for this object and write it to buf. I think | |
1510 | // the best way to do this for wxPython is to have the Python method | |
1511 | // return either a string or None and then act appropriately with the | |
1512 | // C++ version. | |
1513 | ||
ae8162c8 | 1514 | bool rval = false; |
d55e5bfc RD |
1515 | bool blocked = wxPyBeginBlockThreads(); |
1516 | if (wxPyCBH_findCallback(m_myInst, "GetDataHere")) { | |
1517 | PyObject* ro; | |
1518 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
1519 | if (ro) { | |
1520 | rval = (ro != Py_None && PyString_Check(ro)); | |
1521 | if (rval) | |
1522 | memcpy(buf, PyString_AsString(ro), PyString_Size(ro)); | |
1523 | Py_DECREF(ro); | |
1524 | } | |
1525 | } | |
1526 | wxPyEndBlockThreads(blocked); | |
1527 | return rval; | |
1528 | } | |
1529 | ||
1530 | bool wxPyDataObjectSimple::SetData(size_t len, const void *buf) const{ | |
1531 | // For this one we simply need to make a string from buf and len | |
1532 | // and send it to the Python method. | |
ae8162c8 | 1533 | bool rval = false; |
d55e5bfc RD |
1534 | bool blocked = wxPyBeginBlockThreads(); |
1535 | if (wxPyCBH_findCallback(m_myInst, "SetData")) { | |
1536 | PyObject* data = PyString_FromStringAndSize((char*)buf, len); | |
1537 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", data)); | |
1538 | Py_DECREF(data); | |
1539 | } | |
1540 | wxPyEndBlockThreads(blocked); | |
1541 | return rval; | |
1542 | } | |
1543 | ||
1544 | // Create a new class for wxPython to use | |
1545 | class wxPyTextDataObject : public wxTextDataObject { | |
1546 | public: | |
1547 | wxPyTextDataObject(const wxString& text = wxPyEmptyString) | |
1548 | : wxTextDataObject(text) {} | |
1549 | ||
1550 | DEC_PYCALLBACK_SIZET__const(GetTextLength); | |
1551 | DEC_PYCALLBACK_STRING__const(GetText); | |
1552 | DEC_PYCALLBACK__STRING(SetText); | |
1553 | PYPRIVATE; | |
1554 | }; | |
1555 | ||
1556 | IMP_PYCALLBACK_SIZET__const(wxPyTextDataObject, wxTextDataObject, GetTextLength); | |
1557 | IMP_PYCALLBACK_STRING__const(wxPyTextDataObject, wxTextDataObject, GetText); | |
1558 | IMP_PYCALLBACK__STRING(wxPyTextDataObject, wxTextDataObject, SetText); | |
1559 | ||
1560 | ||
1561 | // Create a new class for wxPython to use | |
1562 | class wxPyBitmapDataObject : public wxBitmapDataObject { | |
1563 | public: | |
1564 | wxPyBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap) | |
1565 | : wxBitmapDataObject(bitmap) {} | |
1566 | ||
1567 | wxBitmap GetBitmap() const; | |
1568 | void SetBitmap(const wxBitmap& bitmap); | |
1569 | PYPRIVATE; | |
1570 | }; | |
1571 | ||
1572 | wxBitmap wxPyBitmapDataObject::GetBitmap() const { | |
1573 | wxBitmap* rval = &wxNullBitmap; | |
1574 | bool blocked = wxPyBeginBlockThreads(); | |
1575 | if (wxPyCBH_findCallback(m_myInst, "GetBitmap")) { | |
1576 | PyObject* ro; | |
1577 | wxBitmap* ptr; | |
1578 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
1579 | if (ro) { | |
1580 | if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxBitmap"))) | |
1581 | rval = ptr; | |
1582 | Py_DECREF(ro); | |
1583 | } | |
1584 | } | |
1585 | wxPyEndBlockThreads(blocked); | |
1586 | return *rval; | |
1587 | } | |
a07a67e6 | 1588 | |
d55e5bfc RD |
1589 | void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) { |
1590 | bool blocked = wxPyBeginBlockThreads(); | |
1591 | if (wxPyCBH_findCallback(m_myInst, "SetBitmap")) { | |
ae8162c8 | 1592 | PyObject* bo = wxPyConstructObject((void*)&bitmap, wxT("wxBitmap"), false); |
d55e5bfc RD |
1593 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", bo)); |
1594 | Py_DECREF(bo); | |
1595 | } | |
1596 | wxPyEndBlockThreads(blocked); | |
1597 | } | |
1598 | ||
d55e5bfc | 1599 | bool wxCustomDataObject_SetData(wxCustomDataObject *self,PyObject *data){ |
a07a67e6 RD |
1600 | bool rval; |
1601 | bool blocked = wxPyBeginBlockThreads(); | |
d55e5bfc | 1602 | if (PyString_Check(data)) { |
a07a67e6 | 1603 | rval = self->SetData(PyString_Size(data), PyString_AsString(data)); |
d55e5bfc RD |
1604 | } |
1605 | else { | |
1606 | // raise a TypeError if not a string | |
1607 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
ae8162c8 | 1608 | rval = false; |
d55e5bfc | 1609 | } |
a07a67e6 RD |
1610 | wxPyEndBlockThreads(blocked); |
1611 | return rval; | |
d55e5bfc RD |
1612 | } |
1613 | PyObject *wxCustomDataObject_GetData(wxCustomDataObject *self){ | |
a07a67e6 RD |
1614 | PyObject* obj; |
1615 | bool blocked = wxPyBeginBlockThreads(); | |
1616 | obj = PyString_FromStringAndSize((char*)self->GetData(), self->GetSize()); | |
1617 | wxPyEndBlockThreads(blocked); | |
1618 | return obj; | |
d55e5bfc RD |
1619 | } |
1620 | ||
1621 | #include <wx/metafile.h> | |
1622 | ||
1623 | ||
1624 | IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback); | |
1625 | ||
1626 | ||
1627 | IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave); | |
1628 | IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter); | |
1629 | IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver); | |
1630 | IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData); | |
1631 | IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop); | |
1632 | ||
1633 | ||
1634 | class wxPyTextDropTarget : public wxTextDropTarget { | |
1635 | public: | |
1636 | wxPyTextDropTarget() {} | |
1637 | ||
1638 | DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText); | |
1639 | ||
1640 | DEC_PYCALLBACK__(OnLeave); | |
1641 | DEC_PYCALLBACK_DR_2WXCDR(OnEnter); | |
1642 | DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); | |
1643 | DEC_PYCALLBACK_DR_2WXCDR(OnData); | |
1644 | DEC_PYCALLBACK_BOOL_INTINT(OnDrop); | |
1645 | ||
1646 | PYPRIVATE; | |
1647 | }; | |
1648 | ||
1649 | IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText); | |
1650 | IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave); | |
1651 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter); | |
1652 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver); | |
1653 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData); | |
1654 | IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop); | |
1655 | ||
1656 | ||
1657 | ||
1658 | class wxPyFileDropTarget : public wxFileDropTarget { | |
1659 | public: | |
1660 | wxPyFileDropTarget() {} | |
1661 | ||
1662 | virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames); | |
1663 | ||
1664 | DEC_PYCALLBACK__(OnLeave); | |
1665 | DEC_PYCALLBACK_DR_2WXCDR(OnEnter); | |
1666 | DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); | |
1667 | DEC_PYCALLBACK_DR_2WXCDR(OnData); | |
1668 | DEC_PYCALLBACK_BOOL_INTINT(OnDrop); | |
1669 | ||
1670 | PYPRIVATE; | |
1671 | }; | |
1672 | ||
1673 | bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y, | |
1674 | const wxArrayString& filenames) { | |
ae8162c8 | 1675 | bool rval = false; |
d55e5bfc RD |
1676 | bool blocked = wxPyBeginBlockThreads(); |
1677 | if (wxPyCBH_findCallback(m_myInst, "OnDropFiles")) { | |
1678 | PyObject* list = wxArrayString2PyList_helper(filenames); | |
1679 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",x,y,list)); | |
1680 | Py_DECREF(list); | |
1681 | } | |
1682 | wxPyEndBlockThreads(blocked); | |
1683 | return rval; | |
1684 | } | |
1685 | ||
1686 | ||
1687 | ||
1688 | IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave); | |
1689 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter); | |
1690 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver); | |
1691 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData); | |
1692 | IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop); | |
1693 | ||
1694 | ||
1695 | ||
1696 | ||
1697 | bool wxClipboardLocker___nonzero__(wxClipboardLocker *self){ return !!(*self); } | |
1698 | ||
6923d0a9 | 1699 | #include <wx/display.h> |
d55e5bfc | 1700 | |
ae8162c8 RD |
1701 | bool wxVideoMode___eq__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self == *other) : false; } |
1702 | bool wxVideoMode___ne__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self != *other) : true; } | |
6923d0a9 RD |
1703 | |
1704 | // dummy version of wxDisplay for when it is not enabled in the wxWidgets build | |
1705 | #if !wxUSE_DISPLAY | |
1706 | #include <wx/dynarray.h> | |
1707 | #include <wx/vidmode.h> | |
1708 | ||
1709 | WX_DECLARE_OBJARRAY(wxVideoMode, wxArrayVideoModes); | |
1710 | #include "wx/arrimpl.cpp" | |
1711 | WX_DEFINE_OBJARRAY(wxArrayVideoModes); | |
1712 | const wxVideoMode wxDefaultVideoMode; | |
1713 | ||
1714 | class wxDisplay | |
1715 | { | |
1716 | public: | |
1717 | wxDisplay(size_t index = 0) { wxPyRaiseNotImplemented(); } | |
1718 | ~wxDisplay() {} | |
1719 | ||
1720 | static size_t GetCount() | |
1721 | { wxPyRaiseNotImplemented(); return 0; } | |
1722 | ||
1723 | static int GetFromPoint(const wxPoint& pt) | |
1724 | { wxPyRaiseNotImplemented(); return wxNOT_FOUND; } | |
1725 | static int GetFromWindow(wxWindow *window) | |
1726 | { wxPyRaiseNotImplemented(); return wxNOT_FOUND; } | |
1727 | ||
1728 | virtual bool IsOk() const { return false; } | |
1729 | virtual wxRect GetGeometry() const { wxRect r; return r; } | |
1730 | virtual wxString GetName() const { return wxEmptyString; } | |
1731 | bool IsPrimary() const { return false; } | |
1732 | ||
1733 | wxArrayVideoModes GetModes(const wxVideoMode& mode = wxDefaultVideoMode) | |
1734 | { wxArrayVideoModes a; return a; } | |
1735 | ||
1736 | virtual wxVideoMode GetCurrentMode() const | |
1737 | { return wxDefaultVideoMode; } | |
1738 | ||
1739 | virtual bool ChangeMode(const wxVideoMode& mode = wxDefaultVideoMode) | |
1740 | { return false; } | |
1741 | ||
1742 | void ResetMode() {} | |
1743 | }; | |
1744 | #endif | |
1745 | ||
d55e5bfc RD |
1746 | PyObject *wxDisplay_GetModes(wxDisplay *self,wxVideoMode const &mode){ |
1747 | PyObject* pyList = NULL; | |
1748 | wxArrayVideoModes arr = self->GetModes(mode); | |
1749 | bool blocked = wxPyBeginBlockThreads(); | |
1750 | pyList = PyList_New(0); | |
1751 | for (int i=0; i < arr.GetCount(); i++) { | |
1752 | wxVideoMode* m = new wxVideoMode(arr.Item(i)); | |
1753 | PyObject* pyObj = wxPyConstructObject(m, wxT("wxVideoMode"), true); | |
1754 | PyList_Append(pyList, pyObj); | |
a07a67e6 | 1755 | Py_DECREF(pyObj); |
d55e5bfc RD |
1756 | } |
1757 | wxPyEndBlockThreads(blocked); | |
1758 | return pyList; | |
1759 | } | |
1760 | #ifdef __cplusplus | |
1761 | extern "C" { | |
1762 | #endif | |
c32bde28 | 1763 | static PyObject *_wrap_SystemSettings_GetColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1764 | PyObject *resultobj; |
1765 | int arg1 ; | |
1766 | wxColour result; | |
1767 | PyObject * obj0 = 0 ; | |
1768 | char *kwnames[] = { | |
1769 | (char *) "index", NULL | |
1770 | }; | |
1771 | ||
1772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetColour",kwnames,&obj0)) goto fail; | |
c32bde28 | 1773 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
1774 | if (PyErr_Occurred()) SWIG_fail; |
1775 | { | |
0439c23b | 1776 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1778 | result = wxSystemSettings::GetColour((wxSystemColour )arg1); | |
1779 | ||
1780 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1781 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
1782 | } |
1783 | { | |
1784 | wxColour * resultptr; | |
1785 | resultptr = new wxColour((wxColour &) result); | |
1786 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
1787 | } | |
1788 | return resultobj; | |
1789 | fail: | |
1790 | return NULL; | |
1791 | } | |
1792 | ||
1793 | ||
c32bde28 | 1794 | static PyObject *_wrap_SystemSettings_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1795 | PyObject *resultobj; |
1796 | int arg1 ; | |
1797 | wxFont result; | |
1798 | PyObject * obj0 = 0 ; | |
1799 | char *kwnames[] = { | |
1800 | (char *) "index", NULL | |
1801 | }; | |
1802 | ||
1803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetFont",kwnames,&obj0)) goto fail; | |
c32bde28 | 1804 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
1805 | if (PyErr_Occurred()) SWIG_fail; |
1806 | { | |
0439c23b | 1807 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1809 | result = wxSystemSettings::GetFont((wxSystemFont )arg1); | |
1810 | ||
1811 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1812 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
1813 | } |
1814 | { | |
1815 | wxFont * resultptr; | |
1816 | resultptr = new wxFont((wxFont &) result); | |
1817 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
1818 | } | |
1819 | return resultobj; | |
1820 | fail: | |
1821 | return NULL; | |
1822 | } | |
1823 | ||
1824 | ||
c32bde28 | 1825 | static PyObject *_wrap_SystemSettings_GetMetric(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1826 | PyObject *resultobj; |
1827 | int arg1 ; | |
1828 | int result; | |
1829 | PyObject * obj0 = 0 ; | |
1830 | char *kwnames[] = { | |
1831 | (char *) "index", NULL | |
1832 | }; | |
1833 | ||
1834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetMetric",kwnames,&obj0)) goto fail; | |
c32bde28 | 1835 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
1836 | if (PyErr_Occurred()) SWIG_fail; |
1837 | { | |
0439c23b | 1838 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1840 | result = (int)wxSystemSettings::GetMetric((wxSystemMetric )arg1); | |
1841 | ||
1842 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1843 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 1844 | } |
c32bde28 | 1845 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
1846 | return resultobj; |
1847 | fail: | |
1848 | return NULL; | |
1849 | } | |
1850 | ||
1851 | ||
c32bde28 | 1852 | static PyObject *_wrap_SystemSettings_HasFeature(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1853 | PyObject *resultobj; |
1854 | int arg1 ; | |
1855 | bool result; | |
1856 | PyObject * obj0 = 0 ; | |
1857 | char *kwnames[] = { | |
1858 | (char *) "index", NULL | |
1859 | }; | |
1860 | ||
1861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_HasFeature",kwnames,&obj0)) goto fail; | |
c32bde28 | 1862 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
1863 | if (PyErr_Occurred()) SWIG_fail; |
1864 | { | |
0439c23b | 1865 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1867 | result = (bool)wxSystemSettings::HasFeature((wxSystemFeature )arg1); | |
1868 | ||
1869 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1870 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
1871 | } |
1872 | { | |
1873 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1874 | } | |
1875 | return resultobj; | |
1876 | fail: | |
1877 | return NULL; | |
1878 | } | |
1879 | ||
1880 | ||
c32bde28 | 1881 | static PyObject *_wrap_SystemSettings_GetScreenType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1882 | PyObject *resultobj; |
1883 | int result; | |
1884 | char *kwnames[] = { | |
1885 | NULL | |
1886 | }; | |
1887 | ||
1888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SystemSettings_GetScreenType",kwnames)) goto fail; | |
1889 | { | |
0439c23b | 1890 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1892 | result = (int)wxSystemSettings::GetScreenType(); | |
1893 | ||
1894 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1895 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 1896 | } |
c32bde28 | 1897 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
1898 | return resultobj; |
1899 | fail: | |
1900 | return NULL; | |
1901 | } | |
1902 | ||
1903 | ||
c32bde28 | 1904 | static PyObject *_wrap_SystemSettings_SetScreenType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1905 | PyObject *resultobj; |
1906 | int arg1 ; | |
1907 | PyObject * obj0 = 0 ; | |
1908 | char *kwnames[] = { | |
1909 | (char *) "screen", NULL | |
1910 | }; | |
1911 | ||
1912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_SetScreenType",kwnames,&obj0)) goto fail; | |
c32bde28 | 1913 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
1914 | if (PyErr_Occurred()) SWIG_fail; |
1915 | { | |
0439c23b | 1916 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1918 | wxSystemSettings::SetScreenType((wxSystemScreenType )arg1); | |
1919 | ||
1920 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1921 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
1922 | } |
1923 | Py_INCREF(Py_None); resultobj = Py_None; | |
1924 | return resultobj; | |
1925 | fail: | |
1926 | return NULL; | |
1927 | } | |
1928 | ||
1929 | ||
c32bde28 | 1930 | static PyObject * SystemSettings_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
1931 | PyObject *obj; |
1932 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1933 | SWIG_TypeClientData(SWIGTYPE_p_wxSystemSettings, obj); | |
1934 | Py_INCREF(obj); | |
1935 | return Py_BuildValue((char *)""); | |
1936 | } | |
7e63a440 RD |
1937 | static int _wrap_WINDOW_DEFAULT_VARIANT_set(PyObject *) { |
1938 | PyErr_SetString(PyExc_TypeError,"Variable WINDOW_DEFAULT_VARIANT is read-only."); | |
1939 | return 1; | |
1940 | } | |
1941 | ||
1942 | ||
1943 | static PyObject *_wrap_WINDOW_DEFAULT_VARIANT_get() { | |
1944 | PyObject *pyobj; | |
1945 | ||
1946 | { | |
1947 | #if wxUSE_UNICODE | |
1948 | pyobj = PyUnicode_FromWideChar((&wxPyWINDOW_DEFAULT_VARIANT)->c_str(), (&wxPyWINDOW_DEFAULT_VARIANT)->Len()); | |
1949 | #else | |
1950 | pyobj = PyString_FromStringAndSize((&wxPyWINDOW_DEFAULT_VARIANT)->c_str(), (&wxPyWINDOW_DEFAULT_VARIANT)->Len()); | |
1951 | #endif | |
1952 | } | |
1953 | return pyobj; | |
1954 | } | |
1955 | ||
1956 | ||
c32bde28 | 1957 | static PyObject *_wrap_new_SystemOptions(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1958 | PyObject *resultobj; |
1959 | wxSystemOptions *result; | |
1960 | char *kwnames[] = { | |
1961 | NULL | |
1962 | }; | |
1963 | ||
1964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SystemOptions",kwnames)) goto fail; | |
1965 | { | |
1966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1967 | result = (wxSystemOptions *)new wxSystemOptions(); | |
1968 | ||
1969 | wxPyEndAllowThreads(__tstate); | |
1970 | if (PyErr_Occurred()) SWIG_fail; | |
1971 | } | |
1972 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSystemOptions, 1); | |
1973 | return resultobj; | |
1974 | fail: | |
1975 | return NULL; | |
1976 | } | |
1977 | ||
1978 | ||
c32bde28 | 1979 | static PyObject *_wrap_SystemOptions_SetOption(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1980 | PyObject *resultobj; |
1981 | wxString *arg1 = 0 ; | |
1982 | wxString *arg2 = 0 ; | |
ae8162c8 RD |
1983 | bool temp1 = false ; |
1984 | bool temp2 = false ; | |
d55e5bfc RD |
1985 | PyObject * obj0 = 0 ; |
1986 | PyObject * obj1 = 0 ; | |
1987 | char *kwnames[] = { | |
1988 | (char *) "name",(char *) "value", NULL | |
1989 | }; | |
1990 | ||
1991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOption",kwnames,&obj0,&obj1)) goto fail; | |
1992 | { | |
1993 | arg1 = wxString_in_helper(obj0); | |
1994 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 1995 | temp1 = true; |
d55e5bfc RD |
1996 | } |
1997 | { | |
1998 | arg2 = wxString_in_helper(obj1); | |
1999 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 2000 | temp2 = true; |
d55e5bfc RD |
2001 | } |
2002 | { | |
2003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2004 | wxSystemOptions::SetOption((wxString const &)*arg1,(wxString const &)*arg2); | |
2005 | ||
2006 | wxPyEndAllowThreads(__tstate); | |
2007 | if (PyErr_Occurred()) SWIG_fail; | |
2008 | } | |
2009 | Py_INCREF(Py_None); resultobj = Py_None; | |
2010 | { | |
2011 | if (temp1) | |
2012 | delete arg1; | |
2013 | } | |
2014 | { | |
2015 | if (temp2) | |
2016 | delete arg2; | |
2017 | } | |
2018 | return resultobj; | |
2019 | fail: | |
2020 | { | |
2021 | if (temp1) | |
2022 | delete arg1; | |
2023 | } | |
2024 | { | |
2025 | if (temp2) | |
2026 | delete arg2; | |
2027 | } | |
2028 | return NULL; | |
2029 | } | |
2030 | ||
2031 | ||
c32bde28 | 2032 | static PyObject *_wrap_SystemOptions_SetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2033 | PyObject *resultobj; |
2034 | wxString *arg1 = 0 ; | |
2035 | int arg2 ; | |
ae8162c8 | 2036 | bool temp1 = false ; |
d55e5bfc RD |
2037 | PyObject * obj0 = 0 ; |
2038 | PyObject * obj1 = 0 ; | |
2039 | char *kwnames[] = { | |
2040 | (char *) "name",(char *) "value", NULL | |
2041 | }; | |
2042 | ||
2043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOptionInt",kwnames,&obj0,&obj1)) goto fail; | |
2044 | { | |
2045 | arg1 = wxString_in_helper(obj0); | |
2046 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 2047 | temp1 = true; |
d55e5bfc | 2048 | } |
c32bde28 | 2049 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
2050 | if (PyErr_Occurred()) SWIG_fail; |
2051 | { | |
2052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2053 | wxSystemOptions::SetOption((wxString const &)*arg1,arg2); | |
2054 | ||
2055 | wxPyEndAllowThreads(__tstate); | |
2056 | if (PyErr_Occurred()) SWIG_fail; | |
2057 | } | |
2058 | Py_INCREF(Py_None); resultobj = Py_None; | |
2059 | { | |
2060 | if (temp1) | |
2061 | delete arg1; | |
2062 | } | |
2063 | return resultobj; | |
2064 | fail: | |
2065 | { | |
2066 | if (temp1) | |
2067 | delete arg1; | |
2068 | } | |
2069 | return NULL; | |
2070 | } | |
2071 | ||
2072 | ||
c32bde28 | 2073 | static PyObject *_wrap_SystemOptions_GetOption(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2074 | PyObject *resultobj; |
2075 | wxString *arg1 = 0 ; | |
2076 | wxString result; | |
ae8162c8 | 2077 | bool temp1 = false ; |
d55e5bfc RD |
2078 | PyObject * obj0 = 0 ; |
2079 | char *kwnames[] = { | |
2080 | (char *) "name", NULL | |
2081 | }; | |
2082 | ||
2083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOption",kwnames,&obj0)) goto fail; | |
2084 | { | |
2085 | arg1 = wxString_in_helper(obj0); | |
2086 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 2087 | temp1 = true; |
d55e5bfc RD |
2088 | } |
2089 | { | |
2090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2091 | result = wxSystemOptions::GetOption((wxString const &)*arg1); | |
2092 | ||
2093 | wxPyEndAllowThreads(__tstate); | |
2094 | if (PyErr_Occurred()) SWIG_fail; | |
2095 | } | |
2096 | { | |
2097 | #if wxUSE_UNICODE | |
2098 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2099 | #else | |
2100 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2101 | #endif | |
2102 | } | |
2103 | { | |
2104 | if (temp1) | |
2105 | delete arg1; | |
2106 | } | |
2107 | return resultobj; | |
2108 | fail: | |
2109 | { | |
2110 | if (temp1) | |
2111 | delete arg1; | |
2112 | } | |
2113 | return NULL; | |
2114 | } | |
2115 | ||
2116 | ||
c32bde28 | 2117 | static PyObject *_wrap_SystemOptions_GetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2118 | PyObject *resultobj; |
2119 | wxString *arg1 = 0 ; | |
2120 | int result; | |
ae8162c8 | 2121 | bool temp1 = false ; |
d55e5bfc RD |
2122 | PyObject * obj0 = 0 ; |
2123 | char *kwnames[] = { | |
2124 | (char *) "name", NULL | |
2125 | }; | |
2126 | ||
2127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOptionInt",kwnames,&obj0)) goto fail; | |
2128 | { | |
2129 | arg1 = wxString_in_helper(obj0); | |
2130 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 2131 | temp1 = true; |
d55e5bfc RD |
2132 | } |
2133 | { | |
2134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2135 | result = (int)wxSystemOptions::GetOptionInt((wxString const &)*arg1); | |
2136 | ||
2137 | wxPyEndAllowThreads(__tstate); | |
2138 | if (PyErr_Occurred()) SWIG_fail; | |
2139 | } | |
c32bde28 | 2140 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
2141 | { |
2142 | if (temp1) | |
2143 | delete arg1; | |
2144 | } | |
2145 | return resultobj; | |
2146 | fail: | |
2147 | { | |
2148 | if (temp1) | |
2149 | delete arg1; | |
2150 | } | |
2151 | return NULL; | |
2152 | } | |
2153 | ||
2154 | ||
c32bde28 | 2155 | static PyObject *_wrap_SystemOptions_HasOption(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2156 | PyObject *resultobj; |
2157 | wxString *arg1 = 0 ; | |
2158 | bool result; | |
ae8162c8 | 2159 | bool temp1 = false ; |
d55e5bfc RD |
2160 | PyObject * obj0 = 0 ; |
2161 | char *kwnames[] = { | |
2162 | (char *) "name", NULL | |
2163 | }; | |
2164 | ||
2165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_HasOption",kwnames,&obj0)) goto fail; | |
2166 | { | |
2167 | arg1 = wxString_in_helper(obj0); | |
2168 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 2169 | temp1 = true; |
d55e5bfc RD |
2170 | } |
2171 | { | |
2172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2173 | result = (bool)wxSystemOptions::HasOption((wxString const &)*arg1); | |
2174 | ||
2175 | wxPyEndAllowThreads(__tstate); | |
2176 | if (PyErr_Occurred()) SWIG_fail; | |
2177 | } | |
2178 | { | |
2179 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2180 | } | |
2181 | { | |
2182 | if (temp1) | |
2183 | delete arg1; | |
2184 | } | |
2185 | return resultobj; | |
2186 | fail: | |
2187 | { | |
2188 | if (temp1) | |
2189 | delete arg1; | |
2190 | } | |
2191 | return NULL; | |
2192 | } | |
2193 | ||
2194 | ||
c32bde28 | 2195 | static PyObject * SystemOptions_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
2196 | PyObject *obj; |
2197 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2198 | SWIG_TypeClientData(SWIGTYPE_p_wxSystemOptions, obj); | |
2199 | Py_INCREF(obj); | |
2200 | return Py_BuildValue((char *)""); | |
2201 | } | |
c32bde28 | 2202 | static int _wrap_FileSelectorPromptStr_set(PyObject *) { |
d55e5bfc RD |
2203 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only."); |
2204 | return 1; | |
2205 | } | |
2206 | ||
2207 | ||
2208 | static PyObject *_wrap_FileSelectorPromptStr_get() { | |
2209 | PyObject *pyobj; | |
2210 | ||
2211 | { | |
2212 | #if wxUSE_UNICODE | |
2213 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
2214 | #else | |
2215 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
2216 | #endif | |
2217 | } | |
2218 | return pyobj; | |
2219 | } | |
2220 | ||
2221 | ||
c32bde28 | 2222 | static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *) { |
d55e5bfc RD |
2223 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only."); |
2224 | return 1; | |
2225 | } | |
2226 | ||
2227 | ||
2228 | static PyObject *_wrap_FileSelectorDefaultWildcardStr_get() { | |
2229 | PyObject *pyobj; | |
2230 | ||
2231 | { | |
2232 | #if wxUSE_UNICODE | |
2233 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
2234 | #else | |
2235 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
2236 | #endif | |
2237 | } | |
2238 | return pyobj; | |
2239 | } | |
2240 | ||
2241 | ||
c32bde28 | 2242 | static int _wrap_DirSelectorPromptStr_set(PyObject *) { |
d55e5bfc RD |
2243 | PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only."); |
2244 | return 1; | |
2245 | } | |
2246 | ||
2247 | ||
2248 | static PyObject *_wrap_DirSelectorPromptStr_get() { | |
2249 | PyObject *pyobj; | |
2250 | ||
2251 | { | |
2252 | #if wxUSE_UNICODE | |
2253 | pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
2254 | #else | |
2255 | pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
2256 | #endif | |
2257 | } | |
2258 | return pyobj; | |
2259 | } | |
2260 | ||
2261 | ||
c32bde28 | 2262 | static PyObject *_wrap_NewId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2263 | PyObject *resultobj; |
2264 | long result; | |
2265 | char *kwnames[] = { | |
2266 | NULL | |
2267 | }; | |
2268 | ||
2269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewId",kwnames)) goto fail; | |
2270 | { | |
2271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2272 | result = (long)wxNewId(); | |
2273 | ||
2274 | wxPyEndAllowThreads(__tstate); | |
2275 | if (PyErr_Occurred()) SWIG_fail; | |
2276 | } | |
c32bde28 | 2277 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
2278 | return resultobj; |
2279 | fail: | |
2280 | return NULL; | |
2281 | } | |
2282 | ||
2283 | ||
c32bde28 | 2284 | static PyObject *_wrap_RegisterId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2285 | PyObject *resultobj; |
2286 | long arg1 ; | |
2287 | PyObject * obj0 = 0 ; | |
2288 | char *kwnames[] = { | |
2289 | (char *) "id", NULL | |
2290 | }; | |
2291 | ||
2292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegisterId",kwnames,&obj0)) goto fail; | |
c32bde28 | 2293 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
2294 | if (PyErr_Occurred()) SWIG_fail; |
2295 | { | |
2296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2297 | wxRegisterId(arg1); | |
2298 | ||
2299 | wxPyEndAllowThreads(__tstate); | |
2300 | if (PyErr_Occurred()) SWIG_fail; | |
2301 | } | |
2302 | Py_INCREF(Py_None); resultobj = Py_None; | |
2303 | return resultobj; | |
2304 | fail: | |
2305 | return NULL; | |
2306 | } | |
2307 | ||
2308 | ||
c32bde28 | 2309 | static PyObject *_wrap_GetCurrentId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2310 | PyObject *resultobj; |
2311 | long result; | |
2312 | char *kwnames[] = { | |
2313 | NULL | |
2314 | }; | |
2315 | ||
2316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentId",kwnames)) goto fail; | |
2317 | { | |
2318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2319 | result = (long)wxGetCurrentId(); | |
2320 | ||
2321 | wxPyEndAllowThreads(__tstate); | |
2322 | if (PyErr_Occurred()) SWIG_fail; | |
2323 | } | |
c32bde28 | 2324 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
2325 | return resultobj; |
2326 | fail: | |
2327 | return NULL; | |
2328 | } | |
2329 | ||
2330 | ||
c32bde28 | 2331 | static PyObject *_wrap_IsStockID(PyObject *, PyObject *args, PyObject *kwargs) { |
d1f3a348 RD |
2332 | PyObject *resultobj; |
2333 | int arg1 ; | |
2334 | bool result; | |
2335 | PyObject * obj0 = 0 ; | |
2336 | char *kwnames[] = { | |
2337 | (char *) "id", NULL | |
2338 | }; | |
2339 | ||
2340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsStockID",kwnames,&obj0)) goto fail; | |
c32bde28 | 2341 | arg1 = (int)SWIG_As_int(obj0); |
d1f3a348 RD |
2342 | if (PyErr_Occurred()) SWIG_fail; |
2343 | { | |
2344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2345 | result = (bool)wxIsStockID(arg1); | |
2346 | ||
2347 | wxPyEndAllowThreads(__tstate); | |
2348 | if (PyErr_Occurred()) SWIG_fail; | |
2349 | } | |
2350 | { | |
2351 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2352 | } | |
2353 | return resultobj; | |
2354 | fail: | |
2355 | return NULL; | |
2356 | } | |
2357 | ||
2358 | ||
c32bde28 | 2359 | static PyObject *_wrap_IsStockLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d1f3a348 RD |
2360 | PyObject *resultobj; |
2361 | int arg1 ; | |
2362 | wxString *arg2 = 0 ; | |
2363 | bool result; | |
ae8162c8 | 2364 | bool temp2 = false ; |
d1f3a348 RD |
2365 | PyObject * obj0 = 0 ; |
2366 | PyObject * obj1 = 0 ; | |
2367 | char *kwnames[] = { | |
2368 | (char *) "id",(char *) "label", NULL | |
2369 | }; | |
2370 | ||
2371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IsStockLabel",kwnames,&obj0,&obj1)) goto fail; | |
c32bde28 | 2372 | arg1 = (int)SWIG_As_int(obj0); |
d1f3a348 RD |
2373 | if (PyErr_Occurred()) SWIG_fail; |
2374 | { | |
2375 | arg2 = wxString_in_helper(obj1); | |
2376 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 2377 | temp2 = true; |
d1f3a348 RD |
2378 | } |
2379 | { | |
2380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2381 | result = (bool)wxIsStockLabel(arg1,(wxString const &)*arg2); | |
2382 | ||
2383 | wxPyEndAllowThreads(__tstate); | |
2384 | if (PyErr_Occurred()) SWIG_fail; | |
2385 | } | |
2386 | { | |
2387 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2388 | } | |
2389 | { | |
2390 | if (temp2) | |
2391 | delete arg2; | |
2392 | } | |
2393 | return resultobj; | |
2394 | fail: | |
2395 | { | |
2396 | if (temp2) | |
2397 | delete arg2; | |
2398 | } | |
2399 | return NULL; | |
2400 | } | |
2401 | ||
2402 | ||
c32bde28 | 2403 | static PyObject *_wrap_GetStockLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d1f3a348 RD |
2404 | PyObject *resultobj; |
2405 | int arg1 ; | |
2406 | wxString result; | |
2407 | PyObject * obj0 = 0 ; | |
2408 | char *kwnames[] = { | |
2409 | (char *) "id", NULL | |
2410 | }; | |
2411 | ||
2412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetStockLabel",kwnames,&obj0)) goto fail; | |
c32bde28 | 2413 | arg1 = (int)SWIG_As_int(obj0); |
d1f3a348 RD |
2414 | if (PyErr_Occurred()) SWIG_fail; |
2415 | { | |
2416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2417 | result = wxGetStockLabel(arg1); | |
2418 | ||
2419 | wxPyEndAllowThreads(__tstate); | |
2420 | if (PyErr_Occurred()) SWIG_fail; | |
2421 | } | |
2422 | { | |
2423 | #if wxUSE_UNICODE | |
2424 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2425 | #else | |
2426 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2427 | #endif | |
2428 | } | |
2429 | return resultobj; | |
2430 | fail: | |
2431 | return NULL; | |
2432 | } | |
2433 | ||
2434 | ||
c32bde28 | 2435 | static PyObject *_wrap_Bell(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2436 | PyObject *resultobj; |
2437 | char *kwnames[] = { | |
2438 | NULL | |
2439 | }; | |
2440 | ||
2441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Bell",kwnames)) goto fail; | |
2442 | { | |
0439c23b | 2443 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2445 | wxBell(); | |
2446 | ||
2447 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2448 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2449 | } |
2450 | Py_INCREF(Py_None); resultobj = Py_None; | |
2451 | return resultobj; | |
2452 | fail: | |
2453 | return NULL; | |
2454 | } | |
2455 | ||
2456 | ||
c32bde28 | 2457 | static PyObject *_wrap_EndBusyCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2458 | PyObject *resultobj; |
2459 | char *kwnames[] = { | |
2460 | NULL | |
2461 | }; | |
2462 | ||
2463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EndBusyCursor",kwnames)) goto fail; | |
2464 | { | |
0439c23b | 2465 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2467 | wxEndBusyCursor(); | |
2468 | ||
2469 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2470 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2471 | } |
2472 | Py_INCREF(Py_None); resultobj = Py_None; | |
2473 | return resultobj; | |
2474 | fail: | |
2475 | return NULL; | |
2476 | } | |
2477 | ||
2478 | ||
c32bde28 | 2479 | static PyObject *_wrap_GetElapsedTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 2480 | PyObject *resultobj; |
ae8162c8 | 2481 | bool arg1 = (bool) true ; |
d55e5bfc RD |
2482 | long result; |
2483 | PyObject * obj0 = 0 ; | |
2484 | char *kwnames[] = { | |
2485 | (char *) "resetTimer", NULL | |
2486 | }; | |
2487 | ||
2488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetElapsedTime",kwnames,&obj0)) goto fail; | |
2489 | if (obj0) { | |
c32bde28 | 2490 | arg1 = (bool)SWIG_As_bool(obj0); |
d55e5bfc RD |
2491 | if (PyErr_Occurred()) SWIG_fail; |
2492 | } | |
2493 | { | |
2494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2495 | result = (long)wxGetElapsedTime(arg1); | |
2496 | ||
2497 | wxPyEndAllowThreads(__tstate); | |
2498 | if (PyErr_Occurred()) SWIG_fail; | |
2499 | } | |
c32bde28 | 2500 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
2501 | return resultobj; |
2502 | fail: | |
2503 | return NULL; | |
2504 | } | |
2505 | ||
2506 | ||
c32bde28 | 2507 | static PyObject *_wrap_GetMousePosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2508 | PyObject *resultobj; |
2509 | int *arg1 = (int *) 0 ; | |
2510 | int *arg2 = (int *) 0 ; | |
2511 | int temp1 ; | |
c32bde28 | 2512 | int res1 = 0 ; |
d55e5bfc | 2513 | int temp2 ; |
c32bde28 | 2514 | int res2 = 0 ; |
d55e5bfc RD |
2515 | char *kwnames[] = { |
2516 | NULL | |
2517 | }; | |
2518 | ||
c32bde28 RD |
2519 | arg1 = &temp1; res1 = SWIG_NEWOBJ; |
2520 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
d55e5bfc RD |
2521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMousePosition",kwnames)) goto fail; |
2522 | { | |
0439c23b | 2523 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2525 | wxGetMousePosition(arg1,arg2); | |
2526 | ||
2527 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2528 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2529 | } |
2530 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
2531 | resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ? |
2532 | SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0))); | |
2533 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
2534 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
2535 | return resultobj; |
2536 | fail: | |
2537 | return NULL; | |
2538 | } | |
2539 | ||
2540 | ||
c32bde28 | 2541 | static PyObject *_wrap_IsBusy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2542 | PyObject *resultobj; |
2543 | bool result; | |
2544 | char *kwnames[] = { | |
2545 | NULL | |
2546 | }; | |
2547 | ||
2548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IsBusy",kwnames)) goto fail; | |
2549 | { | |
2550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2551 | result = (bool)wxIsBusy(); | |
2552 | ||
2553 | wxPyEndAllowThreads(__tstate); | |
2554 | if (PyErr_Occurred()) SWIG_fail; | |
2555 | } | |
2556 | { | |
2557 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2558 | } | |
2559 | return resultobj; | |
2560 | fail: | |
2561 | return NULL; | |
2562 | } | |
2563 | ||
2564 | ||
c32bde28 | 2565 | static PyObject *_wrap_Now(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2566 | PyObject *resultobj; |
2567 | wxString result; | |
2568 | char *kwnames[] = { | |
2569 | NULL | |
2570 | }; | |
2571 | ||
2572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Now",kwnames)) goto fail; | |
2573 | { | |
2574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2575 | result = wxNow(); | |
2576 | ||
2577 | wxPyEndAllowThreads(__tstate); | |
2578 | if (PyErr_Occurred()) SWIG_fail; | |
2579 | } | |
2580 | { | |
2581 | #if wxUSE_UNICODE | |
2582 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2583 | #else | |
2584 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2585 | #endif | |
2586 | } | |
2587 | return resultobj; | |
2588 | fail: | |
2589 | return NULL; | |
2590 | } | |
2591 | ||
2592 | ||
c32bde28 | 2593 | static PyObject *_wrap_Shell(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2594 | PyObject *resultobj; |
2595 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
2596 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2597 | bool result; | |
ae8162c8 | 2598 | bool temp1 = false ; |
d55e5bfc RD |
2599 | PyObject * obj0 = 0 ; |
2600 | char *kwnames[] = { | |
2601 | (char *) "command", NULL | |
2602 | }; | |
2603 | ||
2604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Shell",kwnames,&obj0)) goto fail; | |
2605 | if (obj0) { | |
2606 | { | |
2607 | arg1 = wxString_in_helper(obj0); | |
2608 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 2609 | temp1 = true; |
d55e5bfc RD |
2610 | } |
2611 | } | |
2612 | { | |
2613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2614 | result = (bool)wxShell((wxString const &)*arg1); | |
2615 | ||
2616 | wxPyEndAllowThreads(__tstate); | |
2617 | if (PyErr_Occurred()) SWIG_fail; | |
2618 | } | |
2619 | { | |
2620 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2621 | } | |
2622 | { | |
2623 | if (temp1) | |
2624 | delete arg1; | |
2625 | } | |
2626 | return resultobj; | |
2627 | fail: | |
2628 | { | |
2629 | if (temp1) | |
2630 | delete arg1; | |
2631 | } | |
2632 | return NULL; | |
2633 | } | |
2634 | ||
2635 | ||
c32bde28 | 2636 | static PyObject *_wrap_StartTimer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2637 | PyObject *resultobj; |
2638 | char *kwnames[] = { | |
2639 | NULL | |
2640 | }; | |
2641 | ||
2642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StartTimer",kwnames)) goto fail; | |
2643 | { | |
2644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2645 | wxStartTimer(); | |
2646 | ||
2647 | wxPyEndAllowThreads(__tstate); | |
2648 | if (PyErr_Occurred()) SWIG_fail; | |
2649 | } | |
2650 | Py_INCREF(Py_None); resultobj = Py_None; | |
2651 | return resultobj; | |
2652 | fail: | |
2653 | return NULL; | |
2654 | } | |
2655 | ||
2656 | ||
c32bde28 | 2657 | static PyObject *_wrap_GetOsVersion(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2658 | PyObject *resultobj; |
2659 | int *arg1 = (int *) 0 ; | |
2660 | int *arg2 = (int *) 0 ; | |
2661 | int result; | |
2662 | int temp1 ; | |
c32bde28 | 2663 | int res1 = 0 ; |
d55e5bfc | 2664 | int temp2 ; |
c32bde28 | 2665 | int res2 = 0 ; |
d55e5bfc RD |
2666 | char *kwnames[] = { |
2667 | NULL | |
2668 | }; | |
2669 | ||
c32bde28 RD |
2670 | arg1 = &temp1; res1 = SWIG_NEWOBJ; |
2671 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
d55e5bfc RD |
2672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsVersion",kwnames)) goto fail; |
2673 | { | |
2674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2675 | result = (int)wxGetOsVersion(arg1,arg2); | |
2676 | ||
2677 | wxPyEndAllowThreads(__tstate); | |
2678 | if (PyErr_Occurred()) SWIG_fail; | |
2679 | } | |
c32bde28 RD |
2680 | resultobj = SWIG_From_int((int)result); |
2681 | resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ? | |
2682 | SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0))); | |
2683 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
2684 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
2685 | return resultobj; |
2686 | fail: | |
2687 | return NULL; | |
2688 | } | |
2689 | ||
2690 | ||
c32bde28 | 2691 | static PyObject *_wrap_GetOsDescription(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2692 | PyObject *resultobj; |
2693 | wxString result; | |
2694 | char *kwnames[] = { | |
2695 | NULL | |
2696 | }; | |
2697 | ||
2698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsDescription",kwnames)) goto fail; | |
2699 | { | |
2700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2701 | result = wxGetOsDescription(); | |
2702 | ||
2703 | wxPyEndAllowThreads(__tstate); | |
2704 | if (PyErr_Occurred()) SWIG_fail; | |
2705 | } | |
2706 | { | |
2707 | #if wxUSE_UNICODE | |
2708 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2709 | #else | |
2710 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2711 | #endif | |
2712 | } | |
2713 | return resultobj; | |
2714 | fail: | |
2715 | return NULL; | |
2716 | } | |
2717 | ||
2718 | ||
c32bde28 | 2719 | static PyObject *_wrap_GetFreeMemory(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2720 | PyObject *resultobj; |
2721 | long result; | |
2722 | char *kwnames[] = { | |
2723 | NULL | |
2724 | }; | |
2725 | ||
2726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFreeMemory",kwnames)) goto fail; | |
2727 | { | |
2728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2729 | result = (long)wxGetFreeMemory(); | |
2730 | ||
2731 | wxPyEndAllowThreads(__tstate); | |
2732 | if (PyErr_Occurred()) SWIG_fail; | |
2733 | } | |
c32bde28 | 2734 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
2735 | return resultobj; |
2736 | fail: | |
2737 | return NULL; | |
2738 | } | |
2739 | ||
2740 | ||
c32bde28 | 2741 | static PyObject *_wrap_Shutdown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2742 | PyObject *resultobj; |
2743 | int arg1 ; | |
2744 | bool result; | |
2745 | PyObject * obj0 = 0 ; | |
2746 | char *kwnames[] = { | |
2747 | (char *) "wFlags", NULL | |
2748 | }; | |
2749 | ||
2750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Shutdown",kwnames,&obj0)) goto fail; | |
c32bde28 | 2751 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
2752 | if (PyErr_Occurred()) SWIG_fail; |
2753 | { | |
0439c23b | 2754 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2756 | result = (bool)wxShutdown((wxShutdownFlags )arg1); | |
2757 | ||
2758 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2759 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2760 | } |
2761 | { | |
2762 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2763 | } | |
2764 | return resultobj; | |
2765 | fail: | |
2766 | return NULL; | |
2767 | } | |
2768 | ||
2769 | ||
c32bde28 | 2770 | static PyObject *_wrap_Sleep(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2771 | PyObject *resultobj; |
2772 | int arg1 ; | |
2773 | PyObject * obj0 = 0 ; | |
2774 | char *kwnames[] = { | |
2775 | (char *) "secs", NULL | |
2776 | }; | |
2777 | ||
2778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sleep",kwnames,&obj0)) goto fail; | |
c32bde28 | 2779 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
2780 | if (PyErr_Occurred()) SWIG_fail; |
2781 | { | |
2782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2783 | wxSleep(arg1); | |
2784 | ||
2785 | wxPyEndAllowThreads(__tstate); | |
2786 | if (PyErr_Occurred()) SWIG_fail; | |
2787 | } | |
2788 | Py_INCREF(Py_None); resultobj = Py_None; | |
2789 | return resultobj; | |
2790 | fail: | |
2791 | return NULL; | |
2792 | } | |
2793 | ||
2794 | ||
c32bde28 | 2795 | static PyObject *_wrap_MilliSleep(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2796 | PyObject *resultobj; |
2797 | unsigned long arg1 ; | |
2798 | PyObject * obj0 = 0 ; | |
2799 | char *kwnames[] = { | |
2800 | (char *) "milliseconds", NULL | |
2801 | }; | |
2802 | ||
bf26d883 | 2803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MilliSleep",kwnames,&obj0)) goto fail; |
c32bde28 | 2804 | arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0); |
d55e5bfc RD |
2805 | if (PyErr_Occurred()) SWIG_fail; |
2806 | { | |
2807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
bf26d883 RD |
2808 | wxMilliSleep(arg1); |
2809 | ||
2810 | wxPyEndAllowThreads(__tstate); | |
2811 | if (PyErr_Occurred()) SWIG_fail; | |
2812 | } | |
2813 | Py_INCREF(Py_None); resultobj = Py_None; | |
2814 | return resultobj; | |
2815 | fail: | |
2816 | return NULL; | |
2817 | } | |
2818 | ||
2819 | ||
c32bde28 | 2820 | static PyObject *_wrap_MicroSleep(PyObject *, PyObject *args, PyObject *kwargs) { |
bf26d883 RD |
2821 | PyObject *resultobj; |
2822 | unsigned long arg1 ; | |
2823 | PyObject * obj0 = 0 ; | |
2824 | char *kwnames[] = { | |
2825 | (char *) "microseconds", NULL | |
2826 | }; | |
2827 | ||
2828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MicroSleep",kwnames,&obj0)) goto fail; | |
c32bde28 | 2829 | arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0); |
bf26d883 RD |
2830 | if (PyErr_Occurred()) SWIG_fail; |
2831 | { | |
2832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2833 | wxMicroSleep(arg1); | |
d55e5bfc RD |
2834 | |
2835 | wxPyEndAllowThreads(__tstate); | |
2836 | if (PyErr_Occurred()) SWIG_fail; | |
2837 | } | |
2838 | Py_INCREF(Py_None); resultobj = Py_None; | |
2839 | return resultobj; | |
2840 | fail: | |
2841 | return NULL; | |
2842 | } | |
2843 | ||
2844 | ||
c32bde28 | 2845 | static PyObject *_wrap_EnableTopLevelWindows(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2846 | PyObject *resultobj; |
2847 | bool arg1 ; | |
2848 | PyObject * obj0 = 0 ; | |
2849 | char *kwnames[] = { | |
2850 | (char *) "enable", NULL | |
2851 | }; | |
2852 | ||
2853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EnableTopLevelWindows",kwnames,&obj0)) goto fail; | |
c32bde28 | 2854 | arg1 = (bool)SWIG_As_bool(obj0); |
d55e5bfc RD |
2855 | if (PyErr_Occurred()) SWIG_fail; |
2856 | { | |
2857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2858 | wxEnableTopLevelWindows(arg1); | |
2859 | ||
2860 | wxPyEndAllowThreads(__tstate); | |
2861 | if (PyErr_Occurred()) SWIG_fail; | |
2862 | } | |
2863 | Py_INCREF(Py_None); resultobj = Py_None; | |
2864 | return resultobj; | |
2865 | fail: | |
2866 | return NULL; | |
2867 | } | |
2868 | ||
2869 | ||
c32bde28 | 2870 | static PyObject *_wrap_StripMenuCodes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2871 | PyObject *resultobj; |
2872 | wxString *arg1 = 0 ; | |
2873 | wxString result; | |
ae8162c8 | 2874 | bool temp1 = false ; |
d55e5bfc RD |
2875 | PyObject * obj0 = 0 ; |
2876 | char *kwnames[] = { | |
2877 | (char *) "in", NULL | |
2878 | }; | |
2879 | ||
2880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StripMenuCodes",kwnames,&obj0)) goto fail; | |
2881 | { | |
2882 | arg1 = wxString_in_helper(obj0); | |
2883 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 2884 | temp1 = true; |
d55e5bfc RD |
2885 | } |
2886 | { | |
2887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2888 | result = wxStripMenuCodes((wxString const &)*arg1); | |
2889 | ||
2890 | wxPyEndAllowThreads(__tstate); | |
2891 | if (PyErr_Occurred()) SWIG_fail; | |
2892 | } | |
2893 | { | |
2894 | #if wxUSE_UNICODE | |
2895 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2896 | #else | |
2897 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2898 | #endif | |
2899 | } | |
2900 | { | |
2901 | if (temp1) | |
2902 | delete arg1; | |
2903 | } | |
2904 | return resultobj; | |
2905 | fail: | |
2906 | { | |
2907 | if (temp1) | |
2908 | delete arg1; | |
2909 | } | |
2910 | return NULL; | |
2911 | } | |
2912 | ||
2913 | ||
c32bde28 | 2914 | static PyObject *_wrap_GetEmailAddress(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2915 | PyObject *resultobj; |
2916 | wxString result; | |
2917 | char *kwnames[] = { | |
2918 | NULL | |
2919 | }; | |
2920 | ||
2921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetEmailAddress",kwnames)) goto fail; | |
2922 | { | |
2923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2924 | result = wxGetEmailAddress(); | |
2925 | ||
2926 | wxPyEndAllowThreads(__tstate); | |
2927 | if (PyErr_Occurred()) SWIG_fail; | |
2928 | } | |
2929 | { | |
2930 | #if wxUSE_UNICODE | |
2931 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2932 | #else | |
2933 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2934 | #endif | |
2935 | } | |
2936 | return resultobj; | |
2937 | fail: | |
2938 | return NULL; | |
2939 | } | |
2940 | ||
2941 | ||
c32bde28 | 2942 | static PyObject *_wrap_GetHostName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2943 | PyObject *resultobj; |
2944 | wxString result; | |
2945 | char *kwnames[] = { | |
2946 | NULL | |
2947 | }; | |
2948 | ||
2949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHostName",kwnames)) goto fail; | |
2950 | { | |
2951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2952 | result = wxGetHostName(); | |
2953 | ||
2954 | wxPyEndAllowThreads(__tstate); | |
2955 | if (PyErr_Occurred()) SWIG_fail; | |
2956 | } | |
2957 | { | |
2958 | #if wxUSE_UNICODE | |
2959 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2960 | #else | |
2961 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2962 | #endif | |
2963 | } | |
2964 | return resultobj; | |
2965 | fail: | |
2966 | return NULL; | |
2967 | } | |
2968 | ||
2969 | ||
c32bde28 | 2970 | static PyObject *_wrap_GetFullHostName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2971 | PyObject *resultobj; |
2972 | wxString result; | |
2973 | char *kwnames[] = { | |
2974 | NULL | |
2975 | }; | |
2976 | ||
2977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFullHostName",kwnames)) goto fail; | |
2978 | { | |
2979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2980 | result = wxGetFullHostName(); | |
2981 | ||
2982 | wxPyEndAllowThreads(__tstate); | |
2983 | if (PyErr_Occurred()) SWIG_fail; | |
2984 | } | |
2985 | { | |
2986 | #if wxUSE_UNICODE | |
2987 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2988 | #else | |
2989 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2990 | #endif | |
2991 | } | |
2992 | return resultobj; | |
2993 | fail: | |
2994 | return NULL; | |
2995 | } | |
2996 | ||
2997 | ||
c32bde28 | 2998 | static PyObject *_wrap_GetUserId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2999 | PyObject *resultobj; |
3000 | wxString result; | |
3001 | char *kwnames[] = { | |
3002 | NULL | |
3003 | }; | |
3004 | ||
3005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserId",kwnames)) goto fail; | |
3006 | { | |
3007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3008 | result = wxGetUserId(); | |
3009 | ||
3010 | wxPyEndAllowThreads(__tstate); | |
3011 | if (PyErr_Occurred()) SWIG_fail; | |
3012 | } | |
3013 | { | |
3014 | #if wxUSE_UNICODE | |
3015 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3016 | #else | |
3017 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3018 | #endif | |
3019 | } | |
3020 | return resultobj; | |
3021 | fail: | |
3022 | return NULL; | |
3023 | } | |
3024 | ||
3025 | ||
c32bde28 | 3026 | static PyObject *_wrap_GetUserName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3027 | PyObject *resultobj; |
3028 | wxString result; | |
3029 | char *kwnames[] = { | |
3030 | NULL | |
3031 | }; | |
3032 | ||
3033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserName",kwnames)) goto fail; | |
3034 | { | |
3035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3036 | result = wxGetUserName(); | |
3037 | ||
3038 | wxPyEndAllowThreads(__tstate); | |
3039 | if (PyErr_Occurred()) SWIG_fail; | |
3040 | } | |
3041 | { | |
3042 | #if wxUSE_UNICODE | |
3043 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3044 | #else | |
3045 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3046 | #endif | |
3047 | } | |
3048 | return resultobj; | |
3049 | fail: | |
3050 | return NULL; | |
3051 | } | |
3052 | ||
3053 | ||
c32bde28 | 3054 | static PyObject *_wrap_GetHomeDir(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3055 | PyObject *resultobj; |
3056 | wxString result; | |
3057 | char *kwnames[] = { | |
3058 | NULL | |
3059 | }; | |
3060 | ||
3061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHomeDir",kwnames)) goto fail; | |
3062 | { | |
3063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3064 | result = wxGetHomeDir(); | |
3065 | ||
3066 | wxPyEndAllowThreads(__tstate); | |
3067 | if (PyErr_Occurred()) SWIG_fail; | |
3068 | } | |
3069 | { | |
3070 | #if wxUSE_UNICODE | |
3071 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3072 | #else | |
3073 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3074 | #endif | |
3075 | } | |
3076 | return resultobj; | |
3077 | fail: | |
3078 | return NULL; | |
3079 | } | |
3080 | ||
3081 | ||
c32bde28 | 3082 | static PyObject *_wrap_GetUserHome(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3083 | PyObject *resultobj; |
3084 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
3085 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
3086 | wxString result; | |
ae8162c8 | 3087 | bool temp1 = false ; |
d55e5bfc RD |
3088 | PyObject * obj0 = 0 ; |
3089 | char *kwnames[] = { | |
3090 | (char *) "user", NULL | |
3091 | }; | |
3092 | ||
3093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetUserHome",kwnames,&obj0)) goto fail; | |
3094 | if (obj0) { | |
3095 | { | |
3096 | arg1 = wxString_in_helper(obj0); | |
3097 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 3098 | temp1 = true; |
d55e5bfc RD |
3099 | } |
3100 | } | |
3101 | { | |
3102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3103 | result = wxGetUserHome((wxString const &)*arg1); | |
3104 | ||
3105 | wxPyEndAllowThreads(__tstate); | |
3106 | if (PyErr_Occurred()) SWIG_fail; | |
3107 | } | |
3108 | { | |
3109 | #if wxUSE_UNICODE | |
3110 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3111 | #else | |
3112 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3113 | #endif | |
3114 | } | |
3115 | { | |
3116 | if (temp1) | |
3117 | delete arg1; | |
3118 | } | |
3119 | return resultobj; | |
3120 | fail: | |
3121 | { | |
3122 | if (temp1) | |
3123 | delete arg1; | |
3124 | } | |
3125 | return NULL; | |
3126 | } | |
3127 | ||
3128 | ||
c32bde28 | 3129 | static PyObject *_wrap_GetProcessId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3130 | PyObject *resultobj; |
3131 | unsigned long result; | |
3132 | char *kwnames[] = { | |
3133 | NULL | |
3134 | }; | |
3135 | ||
3136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetProcessId",kwnames)) goto fail; | |
3137 | { | |
3138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3139 | result = (unsigned long)wxGetProcessId(); | |
3140 | ||
3141 | wxPyEndAllowThreads(__tstate); | |
3142 | if (PyErr_Occurred()) SWIG_fail; | |
3143 | } | |
c32bde28 | 3144 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
3145 | return resultobj; |
3146 | fail: | |
3147 | return NULL; | |
3148 | } | |
3149 | ||
3150 | ||
c32bde28 | 3151 | static PyObject *_wrap_Trap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3152 | PyObject *resultobj; |
3153 | char *kwnames[] = { | |
3154 | NULL | |
3155 | }; | |
3156 | ||
3157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Trap",kwnames)) goto fail; | |
3158 | { | |
3159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3160 | wxTrap(); | |
3161 | ||
3162 | wxPyEndAllowThreads(__tstate); | |
3163 | if (PyErr_Occurred()) SWIG_fail; | |
3164 | } | |
3165 | Py_INCREF(Py_None); resultobj = Py_None; | |
3166 | return resultobj; | |
3167 | fail: | |
3168 | return NULL; | |
3169 | } | |
3170 | ||
3171 | ||
c32bde28 | 3172 | static PyObject *_wrap_FileSelector(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3173 | PyObject *resultobj; |
3174 | wxString const &arg1_defvalue = wxPyFileSelectorPromptStr ; | |
3175 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
3176 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3177 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3178 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3179 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3180 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
3181 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
3182 | wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ; | |
3183 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
3184 | int arg6 = (int) 0 ; | |
3185 | wxWindow *arg7 = (wxWindow *) NULL ; | |
3186 | int arg8 = (int) -1 ; | |
3187 | int arg9 = (int) -1 ; | |
3188 | wxString result; | |
ae8162c8 RD |
3189 | bool temp1 = false ; |
3190 | bool temp2 = false ; | |
3191 | bool temp3 = false ; | |
3192 | bool temp4 = false ; | |
3193 | bool temp5 = false ; | |
d55e5bfc RD |
3194 | PyObject * obj0 = 0 ; |
3195 | PyObject * obj1 = 0 ; | |
3196 | PyObject * obj2 = 0 ; | |
3197 | PyObject * obj3 = 0 ; | |
3198 | PyObject * obj4 = 0 ; | |
3199 | PyObject * obj5 = 0 ; | |
3200 | PyObject * obj6 = 0 ; | |
3201 | PyObject * obj7 = 0 ; | |
3202 | PyObject * obj8 = 0 ; | |
3203 | char *kwnames[] = { | |
3204 | (char *) "message",(char *) "default_path",(char *) "default_filename",(char *) "default_extension",(char *) "wildcard",(char *) "flags",(char *) "parent",(char *) "x",(char *) "y", NULL | |
3205 | }; | |
3206 | ||
3207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOOOOO:FileSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
3208 | if (obj0) { | |
3209 | { | |
3210 | arg1 = wxString_in_helper(obj0); | |
3211 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 3212 | temp1 = true; |
d55e5bfc RD |
3213 | } |
3214 | } | |
3215 | if (obj1) { | |
3216 | { | |
3217 | arg2 = wxString_in_helper(obj1); | |
3218 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 3219 | temp2 = true; |
d55e5bfc RD |
3220 | } |
3221 | } | |
3222 | if (obj2) { | |
3223 | { | |
3224 | arg3 = wxString_in_helper(obj2); | |
3225 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 3226 | temp3 = true; |
d55e5bfc RD |
3227 | } |
3228 | } | |
3229 | if (obj3) { | |
3230 | { | |
3231 | arg4 = wxString_in_helper(obj3); | |
3232 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 3233 | temp4 = true; |
d55e5bfc RD |
3234 | } |
3235 | } | |
3236 | if (obj4) { | |
3237 | { | |
3238 | arg5 = wxString_in_helper(obj4); | |
3239 | if (arg5 == NULL) SWIG_fail; | |
ae8162c8 | 3240 | temp5 = true; |
d55e5bfc RD |
3241 | } |
3242 | } | |
3243 | if (obj5) { | |
c32bde28 | 3244 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
3245 | if (PyErr_Occurred()) SWIG_fail; |
3246 | } | |
3247 | if (obj6) { | |
3248 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow, | |
3249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3250 | } | |
3251 | if (obj7) { | |
c32bde28 | 3252 | arg8 = (int)SWIG_As_int(obj7); |
d55e5bfc RD |
3253 | if (PyErr_Occurred()) SWIG_fail; |
3254 | } | |
3255 | if (obj8) { | |
c32bde28 | 3256 | arg9 = (int)SWIG_As_int(obj8); |
d55e5bfc RD |
3257 | if (PyErr_Occurred()) SWIG_fail; |
3258 | } | |
3259 | { | |
0439c23b | 3260 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3262 | result = wxFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,arg7,arg8,arg9); | |
3263 | ||
3264 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3265 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3266 | } |
3267 | { | |
3268 | #if wxUSE_UNICODE | |
3269 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3270 | #else | |
3271 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3272 | #endif | |
3273 | } | |
3274 | { | |
3275 | if (temp1) | |
3276 | delete arg1; | |
3277 | } | |
3278 | { | |
3279 | if (temp2) | |
3280 | delete arg2; | |
3281 | } | |
3282 | { | |
3283 | if (temp3) | |
3284 | delete arg3; | |
3285 | } | |
3286 | { | |
3287 | if (temp4) | |
3288 | delete arg4; | |
3289 | } | |
3290 | { | |
3291 | if (temp5) | |
3292 | delete arg5; | |
3293 | } | |
3294 | return resultobj; | |
3295 | fail: | |
3296 | { | |
3297 | if (temp1) | |
3298 | delete arg1; | |
3299 | } | |
3300 | { | |
3301 | if (temp2) | |
3302 | delete arg2; | |
3303 | } | |
3304 | { | |
3305 | if (temp3) | |
3306 | delete arg3; | |
3307 | } | |
3308 | { | |
3309 | if (temp4) | |
3310 | delete arg4; | |
3311 | } | |
3312 | { | |
3313 | if (temp5) | |
3314 | delete arg5; | |
3315 | } | |
3316 | return NULL; | |
3317 | } | |
3318 | ||
3319 | ||
c32bde28 | 3320 | static PyObject *_wrap_LoadFileSelector(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3321 | PyObject *resultobj; |
3322 | wxString *arg1 = 0 ; | |
3323 | wxString *arg2 = 0 ; | |
3324 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3325 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3326 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3327 | wxString result; | |
ae8162c8 RD |
3328 | bool temp1 = false ; |
3329 | bool temp2 = false ; | |
3330 | bool temp3 = false ; | |
d55e5bfc RD |
3331 | PyObject * obj0 = 0 ; |
3332 | PyObject * obj1 = 0 ; | |
3333 | PyObject * obj2 = 0 ; | |
3334 | PyObject * obj3 = 0 ; | |
3335 | char *kwnames[] = { | |
3336 | (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL | |
3337 | }; | |
3338 | ||
3339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:LoadFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3340 | { | |
3341 | arg1 = wxString_in_helper(obj0); | |
3342 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 3343 | temp1 = true; |
d55e5bfc RD |
3344 | } |
3345 | { | |
3346 | arg2 = wxString_in_helper(obj1); | |
3347 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 3348 | temp2 = true; |
d55e5bfc RD |
3349 | } |
3350 | if (obj2) { | |
3351 | { | |
3352 | arg3 = wxString_in_helper(obj2); | |
3353 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 3354 | temp3 = true; |
d55e5bfc RD |
3355 | } |
3356 | } | |
3357 | if (obj3) { | |
3358 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
3359 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3360 | } | |
3361 | { | |
0439c23b | 3362 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3364 | result = wxLoadFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
3365 | ||
3366 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3367 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3368 | } |
3369 | { | |
3370 | #if wxUSE_UNICODE | |
3371 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3372 | #else | |
3373 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3374 | #endif | |
3375 | } | |
3376 | { | |
3377 | if (temp1) | |
3378 | delete arg1; | |
3379 | } | |
3380 | { | |
3381 | if (temp2) | |
3382 | delete arg2; | |
3383 | } | |
3384 | { | |
3385 | if (temp3) | |
3386 | delete arg3; | |
3387 | } | |
3388 | return resultobj; | |
3389 | fail: | |
3390 | { | |
3391 | if (temp1) | |
3392 | delete arg1; | |
3393 | } | |
3394 | { | |
3395 | if (temp2) | |
3396 | delete arg2; | |
3397 | } | |
3398 | { | |
3399 | if (temp3) | |
3400 | delete arg3; | |
3401 | } | |
3402 | return NULL; | |
3403 | } | |
3404 | ||
3405 | ||
c32bde28 | 3406 | static PyObject *_wrap_SaveFileSelector(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3407 | PyObject *resultobj; |
3408 | wxString *arg1 = 0 ; | |
3409 | wxString *arg2 = 0 ; | |
3410 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3411 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3412 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3413 | wxString result; | |
ae8162c8 RD |
3414 | bool temp1 = false ; |
3415 | bool temp2 = false ; | |
3416 | bool temp3 = false ; | |
d55e5bfc RD |
3417 | PyObject * obj0 = 0 ; |
3418 | PyObject * obj1 = 0 ; | |
3419 | PyObject * obj2 = 0 ; | |
3420 | PyObject * obj3 = 0 ; | |
3421 | char *kwnames[] = { | |
3422 | (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL | |
3423 | }; | |
3424 | ||
3425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:SaveFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3426 | { | |
3427 | arg1 = wxString_in_helper(obj0); | |
3428 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 3429 | temp1 = true; |
d55e5bfc RD |
3430 | } |
3431 | { | |
3432 | arg2 = wxString_in_helper(obj1); | |
3433 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 3434 | temp2 = true; |
d55e5bfc RD |
3435 | } |
3436 | if (obj2) { | |
3437 | { | |
3438 | arg3 = wxString_in_helper(obj2); | |
3439 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 3440 | temp3 = true; |
d55e5bfc RD |
3441 | } |
3442 | } | |
3443 | if (obj3) { | |
3444 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
3445 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3446 | } | |
3447 | { | |
0439c23b | 3448 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3450 | result = wxSaveFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
3451 | ||
3452 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3453 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3454 | } |
3455 | { | |
3456 | #if wxUSE_UNICODE | |
3457 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3458 | #else | |
3459 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3460 | #endif | |
3461 | } | |
3462 | { | |
3463 | if (temp1) | |
3464 | delete arg1; | |
3465 | } | |
3466 | { | |
3467 | if (temp2) | |
3468 | delete arg2; | |
3469 | } | |
3470 | { | |
3471 | if (temp3) | |
3472 | delete arg3; | |
3473 | } | |
3474 | return resultobj; | |
3475 | fail: | |
3476 | { | |
3477 | if (temp1) | |
3478 | delete arg1; | |
3479 | } | |
3480 | { | |
3481 | if (temp2) | |
3482 | delete arg2; | |
3483 | } | |
3484 | { | |
3485 | if (temp3) | |
3486 | delete arg3; | |
3487 | } | |
3488 | return NULL; | |
3489 | } | |
3490 | ||
3491 | ||
c32bde28 | 3492 | static PyObject *_wrap_DirSelector(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3493 | PyObject *resultobj; |
3494 | wxString const &arg1_defvalue = wxPyDirSelectorPromptStr ; | |
3495 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
3496 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3497 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3498 | long arg3 = (long) wxDD_DEFAULT_STYLE ; | |
3499 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3500 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3501 | wxWindow *arg5 = (wxWindow *) NULL ; | |
3502 | wxString result; | |
ae8162c8 RD |
3503 | bool temp1 = false ; |
3504 | bool temp2 = false ; | |
d55e5bfc RD |
3505 | wxPoint temp4 ; |
3506 | PyObject * obj0 = 0 ; | |
3507 | PyObject * obj1 = 0 ; | |
3508 | PyObject * obj2 = 0 ; | |
3509 | PyObject * obj3 = 0 ; | |
3510 | PyObject * obj4 = 0 ; | |
3511 | char *kwnames[] = { | |
3512 | (char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "parent", NULL | |
3513 | }; | |
3514 | ||
3515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:DirSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
3516 | if (obj0) { | |
3517 | { | |
3518 | arg1 = wxString_in_helper(obj0); | |
3519 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 3520 | temp1 = true; |
d55e5bfc RD |
3521 | } |
3522 | } | |
3523 | if (obj1) { | |
3524 | { | |
3525 | arg2 = wxString_in_helper(obj1); | |
3526 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 3527 | temp2 = true; |
d55e5bfc RD |
3528 | } |
3529 | } | |
3530 | if (obj2) { | |
c32bde28 | 3531 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
3532 | if (PyErr_Occurred()) SWIG_fail; |
3533 | } | |
3534 | if (obj3) { | |
3535 | { | |
3536 | arg4 = &temp4; | |
3537 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3538 | } | |
3539 | } | |
3540 | if (obj4) { | |
3541 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxWindow, | |
3542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3543 | } | |
3544 | { | |
0439c23b | 3545 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3547 | result = wxDirSelector((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxPoint const &)*arg4,arg5); | |
3548 | ||
3549 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3550 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3551 | } |
3552 | { | |
3553 | #if wxUSE_UNICODE | |
3554 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3555 | #else | |
3556 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3557 | #endif | |
3558 | } | |
3559 | { | |
3560 | if (temp1) | |
3561 | delete arg1; | |
3562 | } | |
3563 | { | |
3564 | if (temp2) | |
3565 | delete arg2; | |
3566 | } | |
3567 | return resultobj; | |
3568 | fail: | |
3569 | { | |
3570 | if (temp1) | |
3571 | delete arg1; | |
3572 | } | |
3573 | { | |
3574 | if (temp2) | |
3575 | delete arg2; | |
3576 | } | |
3577 | return NULL; | |
3578 | } | |
3579 | ||
3580 | ||
c32bde28 | 3581 | static PyObject *_wrap_GetTextFromUser(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3582 | PyObject *resultobj; |
3583 | wxString *arg1 = 0 ; | |
3584 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3585 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3586 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3587 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3588 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3589 | int arg5 = (int) -1 ; | |
3590 | int arg6 = (int) -1 ; | |
ae8162c8 | 3591 | bool arg7 = (bool) true ; |
d55e5bfc | 3592 | wxString result; |
ae8162c8 RD |
3593 | bool temp1 = false ; |
3594 | bool temp2 = false ; | |
3595 | bool temp3 = false ; | |
d55e5bfc RD |
3596 | PyObject * obj0 = 0 ; |
3597 | PyObject * obj1 = 0 ; | |
3598 | PyObject * obj2 = 0 ; | |
3599 | PyObject * obj3 = 0 ; | |
3600 | PyObject * obj4 = 0 ; | |
3601 | PyObject * obj5 = 0 ; | |
3602 | PyObject * obj6 = 0 ; | |
3603 | char *kwnames[] = { | |
3604 | (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre", NULL | |
3605 | }; | |
3606 | ||
3607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GetTextFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
3608 | { | |
3609 | arg1 = wxString_in_helper(obj0); | |
3610 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 3611 | temp1 = true; |
d55e5bfc RD |
3612 | } |
3613 | if (obj1) { | |
3614 | { | |
3615 | arg2 = wxString_in_helper(obj1); | |
3616 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 3617 | temp2 = true; |
d55e5bfc RD |
3618 | } |
3619 | } | |
3620 | if (obj2) { | |
3621 | { | |
3622 | arg3 = wxString_in_helper(obj2); | |
3623 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 3624 | temp3 = true; |
d55e5bfc RD |
3625 | } |
3626 | } | |
3627 | if (obj3) { | |
3628 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
3629 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3630 | } | |
3631 | if (obj4) { | |
c32bde28 | 3632 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
3633 | if (PyErr_Occurred()) SWIG_fail; |
3634 | } | |
3635 | if (obj5) { | |
c32bde28 | 3636 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
3637 | if (PyErr_Occurred()) SWIG_fail; |
3638 | } | |
3639 | if (obj6) { | |
c32bde28 | 3640 | arg7 = (bool)SWIG_As_bool(obj6); |
d55e5bfc RD |
3641 | if (PyErr_Occurred()) SWIG_fail; |
3642 | } | |
3643 | { | |
0439c23b | 3644 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3646 | result = wxGetTextFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7); | |
3647 | ||
3648 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3649 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3650 | } |
3651 | { | |
3652 | #if wxUSE_UNICODE | |
3653 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3654 | #else | |
3655 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3656 | #endif | |
3657 | } | |
3658 | { | |
3659 | if (temp1) | |
3660 | delete arg1; | |
3661 | } | |
3662 | { | |
3663 | if (temp2) | |
3664 | delete arg2; | |
3665 | } | |
3666 | { | |
3667 | if (temp3) | |
3668 | delete arg3; | |
3669 | } | |
3670 | return resultobj; | |
3671 | fail: | |
3672 | { | |
3673 | if (temp1) | |
3674 | delete arg1; | |
3675 | } | |
3676 | { | |
3677 | if (temp2) | |
3678 | delete arg2; | |
3679 | } | |
3680 | { | |
3681 | if (temp3) | |
3682 | delete arg3; | |
3683 | } | |
3684 | return NULL; | |
3685 | } | |
3686 | ||
3687 | ||
c32bde28 | 3688 | static PyObject *_wrap_GetPasswordFromUser(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3689 | PyObject *resultobj; |
3690 | wxString *arg1 = 0 ; | |
3691 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3692 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3693 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3694 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3695 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3696 | wxString result; | |
ae8162c8 RD |
3697 | bool temp1 = false ; |
3698 | bool temp2 = false ; | |
3699 | bool temp3 = false ; | |
d55e5bfc RD |
3700 | PyObject * obj0 = 0 ; |
3701 | PyObject * obj1 = 0 ; | |
3702 | PyObject * obj2 = 0 ; | |
3703 | PyObject * obj3 = 0 ; | |
3704 | char *kwnames[] = { | |
3705 | (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent", NULL | |
3706 | }; | |
3707 | ||
3708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:GetPasswordFromUser",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3709 | { | |
3710 | arg1 = wxString_in_helper(obj0); | |
3711 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 3712 | temp1 = true; |
d55e5bfc RD |
3713 | } |
3714 | if (obj1) { | |
3715 | { | |
3716 | arg2 = wxString_in_helper(obj1); | |
3717 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 3718 | temp2 = true; |
d55e5bfc RD |
3719 | } |
3720 | } | |
3721 | if (obj2) { | |
3722 | { | |
3723 | arg3 = wxString_in_helper(obj2); | |
3724 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 3725 | temp3 = true; |
d55e5bfc RD |
3726 | } |
3727 | } | |
3728 | if (obj3) { | |
3729 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
3730 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3731 | } | |
3732 | { | |
0439c23b | 3733 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3735 | result = wxGetPasswordFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
3736 | ||
3737 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3738 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3739 | } |
3740 | { | |
3741 | #if wxUSE_UNICODE | |
3742 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3743 | #else | |
3744 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3745 | #endif | |
3746 | } | |
3747 | { | |
3748 | if (temp1) | |
3749 | delete arg1; | |
3750 | } | |
3751 | { | |
3752 | if (temp2) | |
3753 | delete arg2; | |
3754 | } | |
3755 | { | |
3756 | if (temp3) | |
3757 | delete arg3; | |
3758 | } | |
3759 | return resultobj; | |
3760 | fail: | |
3761 | { | |
3762 | if (temp1) | |
3763 | delete arg1; | |
3764 | } | |
3765 | { | |
3766 | if (temp2) | |
3767 | delete arg2; | |
3768 | } | |
3769 | { | |
3770 | if (temp3) | |
3771 | delete arg3; | |
3772 | } | |
3773 | return NULL; | |
3774 | } | |
3775 | ||
3776 | ||
c32bde28 | 3777 | static PyObject *_wrap_GetSingleChoice(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3778 | PyObject *resultobj; |
3779 | wxString *arg1 = 0 ; | |
3780 | wxString *arg2 = 0 ; | |
3781 | int arg3 ; | |
3782 | wxString *arg4 = (wxString *) 0 ; | |
3783 | wxWindow *arg5 = (wxWindow *) NULL ; | |
3784 | int arg6 = (int) -1 ; | |
3785 | int arg7 = (int) -1 ; | |
ae8162c8 | 3786 | bool arg8 = (bool) true ; |
d55e5bfc RD |
3787 | int arg9 = (int) 150 ; |
3788 | int arg10 = (int) 200 ; | |
3789 | wxString result; | |
ae8162c8 RD |
3790 | bool temp1 = false ; |
3791 | bool temp2 = false ; | |
d55e5bfc RD |
3792 | PyObject * obj0 = 0 ; |
3793 | PyObject * obj1 = 0 ; | |
3794 | PyObject * obj2 = 0 ; | |
3795 | PyObject * obj3 = 0 ; | |
3796 | PyObject * obj4 = 0 ; | |
3797 | PyObject * obj5 = 0 ; | |
3798 | PyObject * obj6 = 0 ; | |
3799 | PyObject * obj7 = 0 ; | |
3800 | PyObject * obj8 = 0 ; | |
3801 | char *kwnames[] = { | |
3802 | (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL | |
3803 | }; | |
3804 | ||
3805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
3806 | { | |
3807 | arg1 = wxString_in_helper(obj0); | |
3808 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 3809 | temp1 = true; |
d55e5bfc RD |
3810 | } |
3811 | { | |
3812 | arg2 = wxString_in_helper(obj1); | |
3813 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 3814 | temp2 = true; |
d55e5bfc RD |
3815 | } |
3816 | { | |
3817 | arg3 = PyList_Size(obj2); | |
3818 | arg4 = wxString_LIST_helper(obj2); | |
3819 | if (arg4 == NULL) SWIG_fail; | |
3820 | } | |
3821 | if (obj3) { | |
3822 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow, | |
3823 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3824 | } | |
3825 | if (obj4) { | |
c32bde28 | 3826 | arg6 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
3827 | if (PyErr_Occurred()) SWIG_fail; |
3828 | } | |
3829 | if (obj5) { | |
c32bde28 | 3830 | arg7 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
3831 | if (PyErr_Occurred()) SWIG_fail; |
3832 | } | |
3833 | if (obj6) { | |
c32bde28 | 3834 | arg8 = (bool)SWIG_As_bool(obj6); |
d55e5bfc RD |
3835 | if (PyErr_Occurred()) SWIG_fail; |
3836 | } | |
3837 | if (obj7) { | |
c32bde28 | 3838 | arg9 = (int)SWIG_As_int(obj7); |
d55e5bfc RD |
3839 | if (PyErr_Occurred()) SWIG_fail; |
3840 | } | |
3841 | if (obj8) { | |
c32bde28 | 3842 | arg10 = (int)SWIG_As_int(obj8); |
d55e5bfc RD |
3843 | if (PyErr_Occurred()) SWIG_fail; |
3844 | } | |
3845 | { | |
0439c23b | 3846 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3848 | result = wxGetSingleChoice((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); | |
3849 | ||
3850 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3851 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3852 | } |
3853 | { | |
3854 | #if wxUSE_UNICODE | |
3855 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3856 | #else | |
3857 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3858 | #endif | |
3859 | } | |
3860 | { | |
3861 | if (temp1) | |
3862 | delete arg1; | |
3863 | } | |
3864 | { | |
3865 | if (temp2) | |
3866 | delete arg2; | |
3867 | } | |
3868 | { | |
3869 | if (arg4) delete [] arg4; | |
3870 | } | |
3871 | return resultobj; | |
3872 | fail: | |
3873 | { | |
3874 | if (temp1) | |
3875 | delete arg1; | |
3876 | } | |
3877 | { | |
3878 | if (temp2) | |
3879 | delete arg2; | |
3880 | } | |
3881 | { | |
3882 | if (arg4) delete [] arg4; | |
3883 | } | |
3884 | return NULL; | |
3885 | } | |
3886 | ||
3887 | ||
c32bde28 | 3888 | static PyObject *_wrap_GetSingleChoiceIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3889 | PyObject *resultobj; |
3890 | wxString *arg1 = 0 ; | |
3891 | wxString *arg2 = 0 ; | |
3892 | int arg3 ; | |
3893 | wxString *arg4 = (wxString *) 0 ; | |
3894 | wxWindow *arg5 = (wxWindow *) NULL ; | |
3895 | int arg6 = (int) -1 ; | |
3896 | int arg7 = (int) -1 ; | |
ae8162c8 | 3897 | bool arg8 = (bool) true ; |
d55e5bfc RD |
3898 | int arg9 = (int) 150 ; |
3899 | int arg10 = (int) 200 ; | |
3900 | int result; | |
ae8162c8 RD |
3901 | bool temp1 = false ; |
3902 | bool temp2 = false ; | |
d55e5bfc RD |
3903 | PyObject * obj0 = 0 ; |
3904 | PyObject * obj1 = 0 ; | |
3905 | PyObject * obj2 = 0 ; | |
3906 | PyObject * obj3 = 0 ; | |
3907 | PyObject * obj4 = 0 ; | |
3908 | PyObject * obj5 = 0 ; | |
3909 | PyObject * obj6 = 0 ; | |
3910 | PyObject * obj7 = 0 ; | |
3911 | PyObject * obj8 = 0 ; | |
3912 | char *kwnames[] = { | |
3913 | (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL | |
3914 | }; | |
3915 | ||
3916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoiceIndex",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
3917 | { | |
3918 | arg1 = wxString_in_helper(obj0); | |
3919 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 3920 | temp1 = true; |
d55e5bfc RD |
3921 | } |
3922 | { | |
3923 | arg2 = wxString_in_helper(obj1); | |
3924 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 3925 | temp2 = true; |
d55e5bfc RD |
3926 | } |
3927 | { | |
3928 | arg3 = PyList_Size(obj2); | |
3929 | arg4 = wxString_LIST_helper(obj2); | |
3930 | if (arg4 == NULL) SWIG_fail; | |
3931 | } | |
3932 | if (obj3) { | |
3933 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow, | |
3934 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3935 | } | |
3936 | if (obj4) { | |
c32bde28 | 3937 | arg6 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
3938 | if (PyErr_Occurred()) SWIG_fail; |
3939 | } | |
3940 | if (obj5) { | |
c32bde28 | 3941 | arg7 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
3942 | if (PyErr_Occurred()) SWIG_fail; |
3943 | } | |
3944 | if (obj6) { | |
c32bde28 | 3945 | arg8 = (bool)SWIG_As_bool(obj6); |
d55e5bfc RD |
3946 | if (PyErr_Occurred()) SWIG_fail; |
3947 | } | |
3948 | if (obj7) { | |
c32bde28 | 3949 | arg9 = (int)SWIG_As_int(obj7); |
d55e5bfc RD |
3950 | if (PyErr_Occurred()) SWIG_fail; |
3951 | } | |
3952 | if (obj8) { | |
c32bde28 | 3953 | arg10 = (int)SWIG_As_int(obj8); |
d55e5bfc RD |
3954 | if (PyErr_Occurred()) SWIG_fail; |
3955 | } | |
3956 | { | |
0439c23b | 3957 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3959 | result = (int)wxGetSingleChoiceIndex((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); | |
3960 | ||
3961 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3962 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 3963 | } |
c32bde28 | 3964 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
3965 | { |
3966 | if (temp1) | |
3967 | delete arg1; | |
3968 | } | |
3969 | { | |
3970 | if (temp2) | |
3971 | delete arg2; | |
3972 | } | |
3973 | { | |
3974 | if (arg4) delete [] arg4; | |
3975 | } | |
3976 | return resultobj; | |
3977 | fail: | |
3978 | { | |
3979 | if (temp1) | |
3980 | delete arg1; | |
3981 | } | |
3982 | { | |
3983 | if (temp2) | |
3984 | delete arg2; | |
3985 | } | |
3986 | { | |
3987 | if (arg4) delete [] arg4; | |
3988 | } | |
3989 | return NULL; | |
3990 | } | |
3991 | ||
3992 | ||
c32bde28 | 3993 | static PyObject *_wrap_MessageBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3994 | PyObject *resultobj; |
3995 | wxString *arg1 = 0 ; | |
3996 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3997 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3998 | int arg3 = (int) wxOK|wxCENTRE ; | |
3999 | wxWindow *arg4 = (wxWindow *) NULL ; | |
4000 | int arg5 = (int) -1 ; | |
4001 | int arg6 = (int) -1 ; | |
4002 | int result; | |
ae8162c8 RD |
4003 | bool temp1 = false ; |
4004 | bool temp2 = false ; | |
d55e5bfc RD |
4005 | PyObject * obj0 = 0 ; |
4006 | PyObject * obj1 = 0 ; | |
4007 | PyObject * obj2 = 0 ; | |
4008 | PyObject * obj3 = 0 ; | |
4009 | PyObject * obj4 = 0 ; | |
4010 | PyObject * obj5 = 0 ; | |
4011 | char *kwnames[] = { | |
4012 | (char *) "message",(char *) "caption",(char *) "style",(char *) "parent",(char *) "x",(char *) "y", NULL | |
4013 | }; | |
4014 | ||
4015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:MessageBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
4016 | { | |
4017 | arg1 = wxString_in_helper(obj0); | |
4018 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 4019 | temp1 = true; |
d55e5bfc RD |
4020 | } |
4021 | if (obj1) { | |
4022 | { | |
4023 | arg2 = wxString_in_helper(obj1); | |
4024 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 4025 | temp2 = true; |
d55e5bfc RD |
4026 | } |
4027 | } | |
4028 | if (obj2) { | |
c32bde28 | 4029 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
4030 | if (PyErr_Occurred()) SWIG_fail; |
4031 | } | |
4032 | if (obj3) { | |
4033 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
4034 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4035 | } | |
4036 | if (obj4) { | |
c32bde28 | 4037 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
4038 | if (PyErr_Occurred()) SWIG_fail; |
4039 | } | |
4040 | if (obj5) { | |
c32bde28 | 4041 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
4042 | if (PyErr_Occurred()) SWIG_fail; |
4043 | } | |
4044 | { | |
0439c23b | 4045 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4047 | result = (int)wxMessageBox((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
4048 | ||
4049 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4050 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 4051 | } |
c32bde28 | 4052 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4053 | { |
4054 | if (temp1) | |
4055 | delete arg1; | |
4056 | } | |
4057 | { | |
4058 | if (temp2) | |
4059 | delete arg2; | |
4060 | } | |
4061 | return resultobj; | |
4062 | fail: | |
4063 | { | |
4064 | if (temp1) | |
4065 | delete arg1; | |
4066 | } | |
4067 | { | |
4068 | if (temp2) | |
4069 | delete arg2; | |
4070 | } | |
4071 | return NULL; | |
4072 | } | |
4073 | ||
4074 | ||
c32bde28 | 4075 | static PyObject *_wrap_GetNumberFromUser(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4076 | PyObject *resultobj; |
4077 | wxString *arg1 = 0 ; | |
4078 | wxString *arg2 = 0 ; | |
4079 | wxString *arg3 = 0 ; | |
4080 | long arg4 ; | |
4081 | long arg5 = (long) 0 ; | |
4082 | long arg6 = (long) 100 ; | |
4083 | wxWindow *arg7 = (wxWindow *) NULL ; | |
4084 | wxPoint const &arg8_defvalue = wxDefaultPosition ; | |
4085 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
4086 | long result; | |
ae8162c8 RD |
4087 | bool temp1 = false ; |
4088 | bool temp2 = false ; | |
4089 | bool temp3 = false ; | |
d55e5bfc RD |
4090 | wxPoint temp8 ; |
4091 | PyObject * obj0 = 0 ; | |
4092 | PyObject * obj1 = 0 ; | |
4093 | PyObject * obj2 = 0 ; | |
4094 | PyObject * obj3 = 0 ; | |
4095 | PyObject * obj4 = 0 ; | |
4096 | PyObject * obj5 = 0 ; | |
4097 | PyObject * obj6 = 0 ; | |
4098 | PyObject * obj7 = 0 ; | |
4099 | char *kwnames[] = { | |
4100 | (char *) "message",(char *) "prompt",(char *) "caption",(char *) "value",(char *) "min",(char *) "max",(char *) "parent",(char *) "pos", NULL | |
4101 | }; | |
4102 | ||
4103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:GetNumberFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
4104 | { | |
4105 | arg1 = wxString_in_helper(obj0); | |
4106 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 4107 | temp1 = true; |
d55e5bfc RD |
4108 | } |
4109 | { | |
4110 | arg2 = wxString_in_helper(obj1); | |
4111 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 4112 | temp2 = true; |
d55e5bfc RD |
4113 | } |
4114 | { | |
4115 | arg3 = wxString_in_helper(obj2); | |
4116 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 4117 | temp3 = true; |
d55e5bfc | 4118 | } |
c32bde28 | 4119 | arg4 = (long)SWIG_As_long(obj3); |
d55e5bfc RD |
4120 | if (PyErr_Occurred()) SWIG_fail; |
4121 | if (obj4) { | |
c32bde28 | 4122 | arg5 = (long)SWIG_As_long(obj4); |
d55e5bfc RD |
4123 | if (PyErr_Occurred()) SWIG_fail; |
4124 | } | |
4125 | if (obj5) { | |
c32bde28 | 4126 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
4127 | if (PyErr_Occurred()) SWIG_fail; |
4128 | } | |
4129 | if (obj6) { | |
4130 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow, | |
4131 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4132 | } | |
4133 | if (obj7) { | |
4134 | { | |
4135 | arg8 = &temp8; | |
4136 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
4137 | } | |
4138 | } | |
4139 | { | |
0439c23b | 4140 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4142 | result = (long)wxGetNumberFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7,(wxPoint const &)*arg8); | |
4143 | ||
4144 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4145 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 4146 | } |
c32bde28 | 4147 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
4148 | { |
4149 | if (temp1) | |
4150 | delete arg1; | |
4151 | } | |
4152 | { | |
4153 | if (temp2) | |
4154 | delete arg2; | |
4155 | } | |
4156 | { | |
4157 | if (temp3) | |
4158 | delete arg3; | |
4159 | } | |
4160 | return resultobj; | |
4161 | fail: | |
4162 | { | |
4163 | if (temp1) | |
4164 | delete arg1; | |
4165 | } | |
4166 | { | |
4167 | if (temp2) | |
4168 | delete arg2; | |
4169 | } | |
4170 | { | |
4171 | if (temp3) | |
4172 | delete arg3; | |
4173 | } | |
4174 | return NULL; | |
4175 | } | |
4176 | ||
4177 | ||
c32bde28 | 4178 | static PyObject *_wrap_ColourDisplay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4179 | PyObject *resultobj; |
4180 | bool result; | |
4181 | char *kwnames[] = { | |
4182 | NULL | |
4183 | }; | |
4184 | ||
4185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ColourDisplay",kwnames)) goto fail; | |
4186 | { | |
0439c23b | 4187 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4189 | result = (bool)wxColourDisplay(); | |
4190 | ||
4191 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4192 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4193 | } |
4194 | { | |
4195 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4196 | } | |
4197 | return resultobj; | |
4198 | fail: | |
4199 | return NULL; | |
4200 | } | |
4201 | ||
4202 | ||
c32bde28 | 4203 | static PyObject *_wrap_DisplayDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4204 | PyObject *resultobj; |
4205 | int result; | |
4206 | char *kwnames[] = { | |
4207 | NULL | |
4208 | }; | |
4209 | ||
4210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplayDepth",kwnames)) goto fail; | |
4211 | { | |
0439c23b | 4212 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4214 | result = (int)wxDisplayDepth(); | |
4215 | ||
4216 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4217 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 4218 | } |
c32bde28 | 4219 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4220 | return resultobj; |
4221 | fail: | |
4222 | return NULL; | |
4223 | } | |
4224 | ||
4225 | ||
c32bde28 | 4226 | static PyObject *_wrap_GetDisplayDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4227 | PyObject *resultobj; |
4228 | int result; | |
4229 | char *kwnames[] = { | |
4230 | NULL | |
4231 | }; | |
4232 | ||
4233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplayDepth",kwnames)) goto fail; | |
4234 | { | |
0439c23b | 4235 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4237 | result = (int)wxGetDisplayDepth(); | |
4238 | ||
4239 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4240 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 4241 | } |
c32bde28 | 4242 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4243 | return resultobj; |
4244 | fail: | |
4245 | return NULL; | |
4246 | } | |
4247 | ||
4248 | ||
c32bde28 | 4249 | static PyObject *_wrap_DisplaySize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4250 | PyObject *resultobj; |
4251 | int *arg1 = (int *) 0 ; | |
4252 | int *arg2 = (int *) 0 ; | |
4253 | int temp1 ; | |
c32bde28 | 4254 | int res1 = 0 ; |
d55e5bfc | 4255 | int temp2 ; |
c32bde28 | 4256 | int res2 = 0 ; |
d55e5bfc RD |
4257 | char *kwnames[] = { |
4258 | NULL | |
4259 | }; | |
4260 | ||
c32bde28 RD |
4261 | arg1 = &temp1; res1 = SWIG_NEWOBJ; |
4262 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
d55e5bfc RD |
4263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySize",kwnames)) goto fail; |
4264 | { | |
0439c23b | 4265 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4267 | wxDisplaySize(arg1,arg2); | |
4268 | ||
4269 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4270 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4271 | } |
4272 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
4273 | resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ? |
4274 | SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0))); | |
4275 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
4276 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
4277 | return resultobj; |
4278 | fail: | |
4279 | return NULL; | |
4280 | } | |
4281 | ||
4282 | ||
c32bde28 | 4283 | static PyObject *_wrap_GetDisplaySize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4284 | PyObject *resultobj; |
4285 | wxSize result; | |
4286 | char *kwnames[] = { | |
4287 | NULL | |
4288 | }; | |
4289 | ||
4290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySize",kwnames)) goto fail; | |
4291 | { | |
0439c23b | 4292 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4294 | result = wxGetDisplaySize(); | |
4295 | ||
4296 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4297 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4298 | } |
4299 | { | |
4300 | wxSize * resultptr; | |
4301 | resultptr = new wxSize((wxSize &) result); | |
4302 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
4303 | } | |
4304 | return resultobj; | |
4305 | fail: | |
4306 | return NULL; | |
4307 | } | |
4308 | ||
4309 | ||
c32bde28 | 4310 | static PyObject *_wrap_DisplaySizeMM(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4311 | PyObject *resultobj; |
4312 | int *arg1 = (int *) 0 ; | |
4313 | int *arg2 = (int *) 0 ; | |
4314 | int temp1 ; | |
c32bde28 | 4315 | int res1 = 0 ; |
d55e5bfc | 4316 | int temp2 ; |
c32bde28 | 4317 | int res2 = 0 ; |
d55e5bfc RD |
4318 | char *kwnames[] = { |
4319 | NULL | |
4320 | }; | |
4321 | ||
c32bde28 RD |
4322 | arg1 = &temp1; res1 = SWIG_NEWOBJ; |
4323 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
d55e5bfc RD |
4324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySizeMM",kwnames)) goto fail; |
4325 | { | |
0439c23b | 4326 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4328 | wxDisplaySizeMM(arg1,arg2); | |
4329 | ||
4330 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4331 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4332 | } |
4333 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
4334 | resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ? |
4335 | SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0))); | |
4336 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
4337 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
4338 | return resultobj; |
4339 | fail: | |
4340 | return NULL; | |
4341 | } | |
4342 | ||
4343 | ||
c32bde28 | 4344 | static PyObject *_wrap_GetDisplaySizeMM(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4345 | PyObject *resultobj; |
4346 | wxSize result; | |
4347 | char *kwnames[] = { | |
4348 | NULL | |
4349 | }; | |
4350 | ||
4351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySizeMM",kwnames)) goto fail; | |
4352 | { | |
0439c23b | 4353 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4355 | result = wxGetDisplaySizeMM(); | |
4356 | ||
4357 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4358 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4359 | } |
4360 | { | |
4361 | wxSize * resultptr; | |
4362 | resultptr = new wxSize((wxSize &) result); | |
4363 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
4364 | } | |
4365 | return resultobj; | |
4366 | fail: | |
4367 | return NULL; | |
4368 | } | |
4369 | ||
4370 | ||
c32bde28 | 4371 | static PyObject *_wrap_ClientDisplayRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4372 | PyObject *resultobj; |
4373 | int *arg1 = (int *) 0 ; | |
4374 | int *arg2 = (int *) 0 ; | |
4375 | int *arg3 = (int *) 0 ; | |
4376 | int *arg4 = (int *) 0 ; | |
4377 | int temp1 ; | |
c32bde28 | 4378 | int res1 = 0 ; |
d55e5bfc | 4379 | int temp2 ; |
c32bde28 | 4380 | int res2 = 0 ; |
d55e5bfc | 4381 | int temp3 ; |
c32bde28 | 4382 | int res3 = 0 ; |
d55e5bfc | 4383 | int temp4 ; |
c32bde28 | 4384 | int res4 = 0 ; |
d55e5bfc RD |
4385 | char *kwnames[] = { |
4386 | NULL | |
4387 | }; | |
4388 | ||
c32bde28 RD |
4389 | arg1 = &temp1; res1 = SWIG_NEWOBJ; |
4390 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
4391 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
4392 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
d55e5bfc RD |
4393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ClientDisplayRect",kwnames)) goto fail; |
4394 | { | |
0439c23b | 4395 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4397 | wxClientDisplayRect(arg1,arg2,arg3,arg4); | |
4398 | ||
4399 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4400 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4401 | } |
4402 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
4403 | resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ? |
4404 | SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0))); | |
4405 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
4406 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
4407 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
4408 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
4409 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
4410 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
4411 | return resultobj; |
4412 | fail: | |
4413 | return NULL; | |
4414 | } | |
4415 | ||
4416 | ||
c32bde28 | 4417 | static PyObject *_wrap_GetClientDisplayRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4418 | PyObject *resultobj; |
4419 | wxRect result; | |
4420 | char *kwnames[] = { | |
4421 | NULL | |
4422 | }; | |
4423 | ||
4424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetClientDisplayRect",kwnames)) goto fail; | |
4425 | { | |
0439c23b | 4426 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4428 | result = wxGetClientDisplayRect(); | |
4429 | ||
4430 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4431 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4432 | } |
4433 | { | |
4434 | wxRect * resultptr; | |
4435 | resultptr = new wxRect((wxRect &) result); | |
4436 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
4437 | } | |
4438 | return resultobj; | |
4439 | fail: | |
4440 | return NULL; | |
4441 | } | |
4442 | ||
4443 | ||
c32bde28 | 4444 | static PyObject *_wrap_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4445 | PyObject *resultobj; |
4446 | wxCursor *arg1 = 0 ; | |
4447 | PyObject * obj0 = 0 ; | |
4448 | char *kwnames[] = { | |
4449 | (char *) "cursor", NULL | |
4450 | }; | |
4451 | ||
4452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursor",kwnames,&obj0)) goto fail; | |
4453 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
4454 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4455 | SWIG_fail; | |
4456 | if (arg1 == NULL) { | |
4457 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4458 | SWIG_fail; | |
4459 | } | |
4460 | { | |
0439c23b | 4461 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4463 | wxSetCursor(*arg1); | |
4464 | ||
4465 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4466 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4467 | } |
4468 | Py_INCREF(Py_None); resultobj = Py_None; | |
4469 | return resultobj; | |
4470 | fail: | |
4471 | return NULL; | |
4472 | } | |
4473 | ||
4474 | ||
c32bde28 | 4475 | static PyObject *_wrap_BeginBusyCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4476 | PyObject *resultobj; |
4477 | wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ; | |
4478 | PyObject * obj0 = 0 ; | |
4479 | char *kwnames[] = { | |
4480 | (char *) "cursor", NULL | |
4481 | }; | |
4482 | ||
4483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BeginBusyCursor",kwnames,&obj0)) goto fail; | |
4484 | if (obj0) { | |
4485 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
4486 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4487 | } | |
4488 | { | |
0439c23b | 4489 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4491 | wxBeginBusyCursor(arg1); | |
4492 | ||
4493 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4494 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4495 | } |
4496 | Py_INCREF(Py_None); resultobj = Py_None; | |
4497 | return resultobj; | |
4498 | fail: | |
4499 | return NULL; | |
4500 | } | |
4501 | ||
4502 | ||
c32bde28 | 4503 | static PyObject *_wrap_GetActiveWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4504 | PyObject *resultobj; |
4505 | wxWindow *result; | |
4506 | char *kwnames[] = { | |
4507 | NULL | |
4508 | }; | |
4509 | ||
4510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetActiveWindow",kwnames)) goto fail; | |
4511 | { | |
0439c23b | 4512 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4514 | result = (wxWindow *)wxGetActiveWindow(); | |
4515 | ||
4516 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4517 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4518 | } |
4519 | { | |
412d302d | 4520 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
4521 | } |
4522 | return resultobj; | |
4523 | fail: | |
4524 | return NULL; | |
4525 | } | |
4526 | ||
4527 | ||
c32bde28 | 4528 | static PyObject *_wrap_GenericFindWindowAtPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4529 | PyObject *resultobj; |
4530 | wxPoint *arg1 = 0 ; | |
4531 | wxWindow *result; | |
4532 | wxPoint temp1 ; | |
4533 | PyObject * obj0 = 0 ; | |
4534 | char *kwnames[] = { | |
4535 | (char *) "pt", NULL | |
4536 | }; | |
4537 | ||
4538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericFindWindowAtPoint",kwnames,&obj0)) goto fail; | |
4539 | { | |
4540 | arg1 = &temp1; | |
4541 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
4542 | } | |
4543 | { | |
0439c23b | 4544 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4546 | result = (wxWindow *)wxGenericFindWindowAtPoint((wxPoint const &)*arg1); | |
4547 | ||
4548 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4549 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4550 | } |
4551 | { | |
412d302d | 4552 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
4553 | } |
4554 | return resultobj; | |
4555 | fail: | |
4556 | return NULL; | |
4557 | } | |
4558 | ||
4559 | ||
c32bde28 | 4560 | static PyObject *_wrap_FindWindowAtPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4561 | PyObject *resultobj; |
4562 | wxPoint *arg1 = 0 ; | |
4563 | wxWindow *result; | |
4564 | wxPoint temp1 ; | |
4565 | PyObject * obj0 = 0 ; | |
4566 | char *kwnames[] = { | |
4567 | (char *) "pt", NULL | |
4568 | }; | |
4569 | ||
4570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindWindowAtPoint",kwnames,&obj0)) goto fail; | |
4571 | { | |
4572 | arg1 = &temp1; | |
4573 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
4574 | } | |
4575 | { | |
0439c23b | 4576 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4578 | result = (wxWindow *)wxFindWindowAtPoint((wxPoint const &)*arg1); | |
4579 | ||
4580 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4581 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4582 | } |
4583 | { | |
412d302d | 4584 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
4585 | } |
4586 | return resultobj; | |
4587 | fail: | |
4588 | return NULL; | |
4589 | } | |
4590 | ||
4591 | ||
c32bde28 | 4592 | static PyObject *_wrap_GetTopLevelParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4593 | PyObject *resultobj; |
4594 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4595 | wxWindow *result; | |
4596 | PyObject * obj0 = 0 ; | |
4597 | char *kwnames[] = { | |
4598 | (char *) "win", NULL | |
4599 | }; | |
4600 | ||
4601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetTopLevelParent",kwnames,&obj0)) goto fail; | |
4602 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
4603 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4604 | { | |
0439c23b | 4605 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4607 | result = (wxWindow *)wxGetTopLevelParent(arg1); | |
4608 | ||
4609 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4610 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4611 | } |
4612 | { | |
412d302d | 4613 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
4614 | } |
4615 | return resultobj; | |
4616 | fail: | |
4617 | return NULL; | |
4618 | } | |
4619 | ||
4620 | ||
c32bde28 | 4621 | static PyObject *_wrap_GetKeyState(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4622 | PyObject *resultobj; |
4623 | int arg1 ; | |
4624 | bool result; | |
4625 | PyObject * obj0 = 0 ; | |
4626 | char *kwnames[] = { | |
4627 | (char *) "key", NULL | |
4628 | }; | |
4629 | ||
4630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetKeyState",kwnames,&obj0)) goto fail; | |
c32bde28 | 4631 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
4632 | if (PyErr_Occurred()) SWIG_fail; |
4633 | { | |
0439c23b | 4634 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4636 | result = (bool)wxGetKeyState((wxKeyCode )arg1); | |
4637 | ||
4638 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4639 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4640 | } |
4641 | { | |
4642 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4643 | } | |
4644 | return resultobj; | |
4645 | fail: | |
4646 | return NULL; | |
4647 | } | |
4648 | ||
4649 | ||
c32bde28 | 4650 | static PyObject *_wrap_WakeUpMainThread(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4651 | PyObject *resultobj; |
4652 | char *kwnames[] = { | |
4653 | NULL | |
4654 | }; | |
4655 | ||
4656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpMainThread",kwnames)) goto fail; | |
4657 | { | |
0439c23b | 4658 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4660 | wxWakeUpMainThread(); | |
4661 | ||
4662 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4663 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4664 | } |
4665 | Py_INCREF(Py_None); resultobj = Py_None; | |
4666 | return resultobj; | |
4667 | fail: | |
4668 | return NULL; | |
4669 | } | |
4670 | ||
4671 | ||
c32bde28 | 4672 | static PyObject *_wrap_MutexGuiEnter(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4673 | PyObject *resultobj; |
4674 | char *kwnames[] = { | |
4675 | NULL | |
4676 | }; | |
4677 | ||
4678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiEnter",kwnames)) goto fail; | |
4679 | { | |
0439c23b | 4680 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4682 | wxMutexGuiEnter(); | |
4683 | ||
4684 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4685 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4686 | } |
4687 | Py_INCREF(Py_None); resultobj = Py_None; | |
4688 | return resultobj; | |
4689 | fail: | |
4690 | return NULL; | |
4691 | } | |
4692 | ||
4693 | ||
c32bde28 | 4694 | static PyObject *_wrap_MutexGuiLeave(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4695 | PyObject *resultobj; |
4696 | char *kwnames[] = { | |
4697 | NULL | |
4698 | }; | |
4699 | ||
4700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiLeave",kwnames)) goto fail; | |
4701 | { | |
0439c23b | 4702 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4704 | wxMutexGuiLeave(); | |
4705 | ||
4706 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4707 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4708 | } |
4709 | Py_INCREF(Py_None); resultobj = Py_None; | |
4710 | return resultobj; | |
4711 | fail: | |
4712 | return NULL; | |
4713 | } | |
4714 | ||
4715 | ||
c32bde28 | 4716 | static PyObject *_wrap_new_MutexGuiLocker(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4717 | PyObject *resultobj; |
4718 | wxMutexGuiLocker *result; | |
4719 | char *kwnames[] = { | |
4720 | NULL | |
4721 | }; | |
4722 | ||
4723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MutexGuiLocker",kwnames)) goto fail; | |
4724 | { | |
0439c23b | 4725 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4727 | result = (wxMutexGuiLocker *)new wxMutexGuiLocker(); | |
4728 | ||
4729 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4730 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4731 | } |
4732 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMutexGuiLocker, 1); | |
4733 | return resultobj; | |
4734 | fail: | |
4735 | return NULL; | |
4736 | } | |
4737 | ||
4738 | ||
c32bde28 | 4739 | static PyObject *_wrap_delete_MutexGuiLocker(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4740 | PyObject *resultobj; |
4741 | wxMutexGuiLocker *arg1 = (wxMutexGuiLocker *) 0 ; | |
4742 | PyObject * obj0 = 0 ; | |
4743 | char *kwnames[] = { | |
4744 | (char *) "self", NULL | |
4745 | }; | |
4746 | ||
4747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MutexGuiLocker",kwnames,&obj0)) goto fail; | |
4748 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMutexGuiLocker, | |
4749 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4750 | { | |
4751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4752 | delete arg1; | |
4753 | ||
4754 | wxPyEndAllowThreads(__tstate); | |
4755 | if (PyErr_Occurred()) SWIG_fail; | |
4756 | } | |
4757 | Py_INCREF(Py_None); resultobj = Py_None; | |
4758 | return resultobj; | |
4759 | fail: | |
4760 | return NULL; | |
4761 | } | |
4762 | ||
4763 | ||
c32bde28 | 4764 | static PyObject * MutexGuiLocker_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
4765 | PyObject *obj; |
4766 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4767 | SWIG_TypeClientData(SWIGTYPE_p_wxMutexGuiLocker, obj); | |
4768 | Py_INCREF(obj); | |
4769 | return Py_BuildValue((char *)""); | |
4770 | } | |
c32bde28 | 4771 | static PyObject *_wrap_Thread_IsMain(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4772 | PyObject *resultobj; |
4773 | bool result; | |
4774 | char *kwnames[] = { | |
4775 | NULL | |
4776 | }; | |
4777 | ||
4778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Thread_IsMain",kwnames)) goto fail; | |
4779 | { | |
4780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4781 | result = (bool)wxThread_IsMain(); | |
4782 | ||
4783 | wxPyEndAllowThreads(__tstate); | |
4784 | if (PyErr_Occurred()) SWIG_fail; | |
4785 | } | |
4786 | { | |
4787 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4788 | } | |
4789 | return resultobj; | |
4790 | fail: | |
4791 | return NULL; | |
4792 | } | |
4793 | ||
4794 | ||
c32bde28 | 4795 | static PyObject *_wrap_new_ToolTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4796 | PyObject *resultobj; |
4797 | wxString *arg1 = 0 ; | |
4798 | wxToolTip *result; | |
ae8162c8 | 4799 | bool temp1 = false ; |
d55e5bfc RD |
4800 | PyObject * obj0 = 0 ; |
4801 | char *kwnames[] = { | |
4802 | (char *) "tip", NULL | |
4803 | }; | |
4804 | ||
4805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ToolTip",kwnames,&obj0)) goto fail; | |
4806 | { | |
4807 | arg1 = wxString_in_helper(obj0); | |
4808 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 4809 | temp1 = true; |
d55e5bfc RD |
4810 | } |
4811 | { | |
0439c23b | 4812 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4814 | result = (wxToolTip *)new wxToolTip((wxString const &)*arg1); | |
4815 | ||
4816 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4817 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4818 | } |
4819 | { | |
412d302d | 4820 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
4821 | } |
4822 | { | |
4823 | if (temp1) | |
4824 | delete arg1; | |
4825 | } | |
4826 | return resultobj; | |
4827 | fail: | |
4828 | { | |
4829 | if (temp1) | |
4830 | delete arg1; | |
4831 | } | |
4832 | return NULL; | |
4833 | } | |
4834 | ||
4835 | ||
c32bde28 | 4836 | static PyObject *_wrap_ToolTip_SetTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4837 | PyObject *resultobj; |
4838 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
4839 | wxString *arg2 = 0 ; | |
ae8162c8 | 4840 | bool temp2 = false ; |
d55e5bfc RD |
4841 | PyObject * obj0 = 0 ; |
4842 | PyObject * obj1 = 0 ; | |
4843 | char *kwnames[] = { | |
4844 | (char *) "self",(char *) "tip", NULL | |
4845 | }; | |
4846 | ||
4847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolTip_SetTip",kwnames,&obj0,&obj1)) goto fail; | |
4848 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip, | |
4849 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4850 | { | |
4851 | arg2 = wxString_in_helper(obj1); | |
4852 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 4853 | temp2 = true; |
d55e5bfc RD |
4854 | } |
4855 | { | |
4856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4857 | (arg1)->SetTip((wxString const &)*arg2); | |
4858 | ||
4859 | wxPyEndAllowThreads(__tstate); | |
4860 | if (PyErr_Occurred()) SWIG_fail; | |
4861 | } | |
4862 | Py_INCREF(Py_None); resultobj = Py_None; | |
4863 | { | |
4864 | if (temp2) | |
4865 | delete arg2; | |
4866 | } | |
4867 | return resultobj; | |
4868 | fail: | |
4869 | { | |
4870 | if (temp2) | |
4871 | delete arg2; | |
4872 | } | |
4873 | return NULL; | |
4874 | } | |
4875 | ||
4876 | ||
c32bde28 | 4877 | static PyObject *_wrap_ToolTip_GetTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4878 | PyObject *resultobj; |
4879 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
4880 | wxString result; | |
4881 | PyObject * obj0 = 0 ; | |
4882 | char *kwnames[] = { | |
4883 | (char *) "self", NULL | |
4884 | }; | |
4885 | ||
4886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetTip",kwnames,&obj0)) goto fail; | |
4887 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip, | |
4888 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4889 | { | |
4890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4891 | result = (arg1)->GetTip(); | |
4892 | ||
4893 | wxPyEndAllowThreads(__tstate); | |
4894 | if (PyErr_Occurred()) SWIG_fail; | |
4895 | } | |
4896 | { | |
4897 | #if wxUSE_UNICODE | |
4898 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4899 | #else | |
4900 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4901 | #endif | |
4902 | } | |
4903 | return resultobj; | |
4904 | fail: | |
4905 | return NULL; | |
4906 | } | |
4907 | ||
4908 | ||
c32bde28 | 4909 | static PyObject *_wrap_ToolTip_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4910 | PyObject *resultobj; |
4911 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
4912 | wxWindow *result; | |
4913 | PyObject * obj0 = 0 ; | |
4914 | char *kwnames[] = { | |
4915 | (char *) "self", NULL | |
4916 | }; | |
4917 | ||
4918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetWindow",kwnames,&obj0)) goto fail; | |
4919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip, | |
4920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4921 | { | |
4922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4923 | result = (wxWindow *)(arg1)->GetWindow(); | |
4924 | ||
4925 | wxPyEndAllowThreads(__tstate); | |
4926 | if (PyErr_Occurred()) SWIG_fail; | |
4927 | } | |
4928 | { | |
412d302d | 4929 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
4930 | } |
4931 | return resultobj; | |
4932 | fail: | |
4933 | return NULL; | |
4934 | } | |
4935 | ||
4936 | ||
c32bde28 | 4937 | static PyObject *_wrap_ToolTip_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4938 | PyObject *resultobj; |
4939 | bool arg1 ; | |
4940 | PyObject * obj0 = 0 ; | |
4941 | char *kwnames[] = { | |
4942 | (char *) "flag", NULL | |
4943 | }; | |
4944 | ||
4945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_Enable",kwnames,&obj0)) goto fail; | |
c32bde28 | 4946 | arg1 = (bool)SWIG_As_bool(obj0); |
d55e5bfc RD |
4947 | if (PyErr_Occurred()) SWIG_fail; |
4948 | { | |
4949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4950 | wxToolTip::Enable(arg1); | |
4951 | ||
4952 | wxPyEndAllowThreads(__tstate); | |
4953 | if (PyErr_Occurred()) SWIG_fail; | |
4954 | } | |
4955 | Py_INCREF(Py_None); resultobj = Py_None; | |
4956 | return resultobj; | |
4957 | fail: | |
4958 | return NULL; | |
4959 | } | |
4960 | ||
4961 | ||
c32bde28 | 4962 | static PyObject *_wrap_ToolTip_SetDelay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4963 | PyObject *resultobj; |
4964 | long arg1 ; | |
4965 | PyObject * obj0 = 0 ; | |
4966 | char *kwnames[] = { | |
4967 | (char *) "milliseconds", NULL | |
4968 | }; | |
4969 | ||
4970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_SetDelay",kwnames,&obj0)) goto fail; | |
c32bde28 | 4971 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
4972 | if (PyErr_Occurred()) SWIG_fail; |
4973 | { | |
4974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4975 | wxToolTip::SetDelay(arg1); | |
4976 | ||
4977 | wxPyEndAllowThreads(__tstate); | |
4978 | if (PyErr_Occurred()) SWIG_fail; | |
4979 | } | |
4980 | Py_INCREF(Py_None); resultobj = Py_None; | |
4981 | return resultobj; | |
4982 | fail: | |
4983 | return NULL; | |
4984 | } | |
4985 | ||
4986 | ||
c32bde28 | 4987 | static PyObject * ToolTip_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
4988 | PyObject *obj; |
4989 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4990 | SWIG_TypeClientData(SWIGTYPE_p_wxToolTip, obj); | |
4991 | Py_INCREF(obj); | |
4992 | return Py_BuildValue((char *)""); | |
4993 | } | |
c32bde28 | 4994 | static PyObject *_wrap_new_Caret(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4995 | PyObject *resultobj; |
4996 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4997 | wxSize *arg2 = 0 ; | |
4998 | wxCaret *result; | |
4999 | wxSize temp2 ; | |
5000 | PyObject * obj0 = 0 ; | |
5001 | PyObject * obj1 = 0 ; | |
5002 | char *kwnames[] = { | |
5003 | (char *) "window",(char *) "size", NULL | |
5004 | }; | |
5005 | ||
5006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_Caret",kwnames,&obj0,&obj1)) goto fail; | |
5007 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
5008 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5009 | { | |
5010 | arg2 = &temp2; | |
5011 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
5012 | } | |
5013 | { | |
0439c23b | 5014 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5016 | result = (wxCaret *)new wxCaret(arg1,(wxSize const &)*arg2); | |
5017 | ||
5018 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5019 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5020 | } |
5021 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 1); | |
5022 | return resultobj; | |
5023 | fail: | |
5024 | return NULL; | |
5025 | } | |
5026 | ||
5027 | ||
c32bde28 | 5028 | static PyObject *_wrap_delete_Caret(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5029 | PyObject *resultobj; |
5030 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5031 | PyObject * obj0 = 0 ; | |
5032 | char *kwnames[] = { | |
5033 | (char *) "self", NULL | |
5034 | }; | |
5035 | ||
5036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Caret",kwnames,&obj0)) goto fail; | |
5037 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5038 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5039 | { | |
5040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5041 | delete arg1; | |
5042 | ||
5043 | wxPyEndAllowThreads(__tstate); | |
5044 | if (PyErr_Occurred()) SWIG_fail; | |
5045 | } | |
5046 | Py_INCREF(Py_None); resultobj = Py_None; | |
5047 | return resultobj; | |
5048 | fail: | |
5049 | return NULL; | |
5050 | } | |
5051 | ||
5052 | ||
c32bde28 | 5053 | static PyObject *_wrap_Caret_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5054 | PyObject *resultobj; |
5055 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5056 | bool result; | |
5057 | PyObject * obj0 = 0 ; | |
5058 | char *kwnames[] = { | |
5059 | (char *) "self", NULL | |
5060 | }; | |
5061 | ||
5062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsOk",kwnames,&obj0)) goto fail; | |
5063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5065 | { | |
5066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5067 | result = (bool)(arg1)->IsOk(); | |
5068 | ||
5069 | wxPyEndAllowThreads(__tstate); | |
5070 | if (PyErr_Occurred()) SWIG_fail; | |
5071 | } | |
5072 | { | |
5073 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5074 | } | |
5075 | return resultobj; | |
5076 | fail: | |
5077 | return NULL; | |
5078 | } | |
5079 | ||
5080 | ||
c32bde28 | 5081 | static PyObject *_wrap_Caret_IsVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5082 | PyObject *resultobj; |
5083 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5084 | bool result; | |
5085 | PyObject * obj0 = 0 ; | |
5086 | char *kwnames[] = { | |
5087 | (char *) "self", NULL | |
5088 | }; | |
5089 | ||
5090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsVisible",kwnames,&obj0)) goto fail; | |
5091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5093 | { | |
5094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5095 | result = (bool)(arg1)->IsVisible(); | |
5096 | ||
5097 | wxPyEndAllowThreads(__tstate); | |
5098 | if (PyErr_Occurred()) SWIG_fail; | |
5099 | } | |
5100 | { | |
5101 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5102 | } | |
5103 | return resultobj; | |
5104 | fail: | |
5105 | return NULL; | |
5106 | } | |
5107 | ||
5108 | ||
c32bde28 | 5109 | static PyObject *_wrap_Caret_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5110 | PyObject *resultobj; |
5111 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5112 | wxPoint result; | |
5113 | PyObject * obj0 = 0 ; | |
5114 | char *kwnames[] = { | |
5115 | (char *) "self", NULL | |
5116 | }; | |
5117 | ||
5118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPosition",kwnames,&obj0)) goto fail; | |
5119 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5120 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5121 | { | |
5122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5123 | result = (arg1)->GetPosition(); | |
5124 | ||
5125 | wxPyEndAllowThreads(__tstate); | |
5126 | if (PyErr_Occurred()) SWIG_fail; | |
5127 | } | |
5128 | { | |
5129 | wxPoint * resultptr; | |
5130 | resultptr = new wxPoint((wxPoint &) result); | |
5131 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
5132 | } | |
5133 | return resultobj; | |
5134 | fail: | |
5135 | return NULL; | |
5136 | } | |
5137 | ||
5138 | ||
c32bde28 | 5139 | static PyObject *_wrap_Caret_GetPositionTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5140 | PyObject *resultobj; |
5141 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5142 | int *arg2 = (int *) 0 ; | |
5143 | int *arg3 = (int *) 0 ; | |
5144 | int temp2 ; | |
c32bde28 | 5145 | int res2 = 0 ; |
d55e5bfc | 5146 | int temp3 ; |
c32bde28 | 5147 | int res3 = 0 ; |
d55e5bfc RD |
5148 | PyObject * obj0 = 0 ; |
5149 | char *kwnames[] = { | |
5150 | (char *) "self", NULL | |
5151 | }; | |
5152 | ||
c32bde28 RD |
5153 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
5154 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
5155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPositionTuple",kwnames,&obj0)) goto fail; |
5156 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5157 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5158 | { | |
5159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5160 | (arg1)->GetPosition(arg2,arg3); | |
5161 | ||
5162 | wxPyEndAllowThreads(__tstate); | |
5163 | if (PyErr_Occurred()) SWIG_fail; | |
5164 | } | |
5165 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
5166 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
5167 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
5168 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
5169 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
5170 | return resultobj; |
5171 | fail: | |
5172 | return NULL; | |
5173 | } | |
5174 | ||
5175 | ||
c32bde28 | 5176 | static PyObject *_wrap_Caret_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5177 | PyObject *resultobj; |
5178 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5179 | wxSize result; | |
5180 | PyObject * obj0 = 0 ; | |
5181 | char *kwnames[] = { | |
5182 | (char *) "self", NULL | |
5183 | }; | |
5184 | ||
5185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSize",kwnames,&obj0)) goto fail; | |
5186 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5187 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5188 | { | |
5189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5190 | result = (arg1)->GetSize(); | |
5191 | ||
5192 | wxPyEndAllowThreads(__tstate); | |
5193 | if (PyErr_Occurred()) SWIG_fail; | |
5194 | } | |
5195 | { | |
5196 | wxSize * resultptr; | |
5197 | resultptr = new wxSize((wxSize &) result); | |
5198 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
5199 | } | |
5200 | return resultobj; | |
5201 | fail: | |
5202 | return NULL; | |
5203 | } | |
5204 | ||
5205 | ||
c32bde28 | 5206 | static PyObject *_wrap_Caret_GetSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5207 | PyObject *resultobj; |
5208 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5209 | int *arg2 = (int *) 0 ; | |
5210 | int *arg3 = (int *) 0 ; | |
5211 | int temp2 ; | |
c32bde28 | 5212 | int res2 = 0 ; |
d55e5bfc | 5213 | int temp3 ; |
c32bde28 | 5214 | int res3 = 0 ; |
d55e5bfc RD |
5215 | PyObject * obj0 = 0 ; |
5216 | char *kwnames[] = { | |
5217 | (char *) "self", NULL | |
5218 | }; | |
5219 | ||
c32bde28 RD |
5220 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
5221 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
5222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSizeTuple",kwnames,&obj0)) goto fail; |
5223 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5224 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5225 | { | |
5226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5227 | (arg1)->GetSize(arg2,arg3); | |
5228 | ||
5229 | wxPyEndAllowThreads(__tstate); | |
5230 | if (PyErr_Occurred()) SWIG_fail; | |
5231 | } | |
5232 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
5233 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
5234 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
5235 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
5236 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
5237 | return resultobj; |
5238 | fail: | |
5239 | return NULL; | |
5240 | } | |
5241 | ||
5242 | ||
c32bde28 | 5243 | static PyObject *_wrap_Caret_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5244 | PyObject *resultobj; |
5245 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5246 | wxWindow *result; | |
5247 | PyObject * obj0 = 0 ; | |
5248 | char *kwnames[] = { | |
5249 | (char *) "self", NULL | |
5250 | }; | |
5251 | ||
5252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetWindow",kwnames,&obj0)) goto fail; | |
5253 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5254 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5255 | { | |
5256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5257 | result = (wxWindow *)(arg1)->GetWindow(); | |
5258 | ||
5259 | wxPyEndAllowThreads(__tstate); | |
5260 | if (PyErr_Occurred()) SWIG_fail; | |
5261 | } | |
5262 | { | |
412d302d | 5263 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
5264 | } |
5265 | return resultobj; | |
5266 | fail: | |
5267 | return NULL; | |
5268 | } | |
5269 | ||
5270 | ||
c32bde28 | 5271 | static PyObject *_wrap_Caret_MoveXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5272 | PyObject *resultobj; |
5273 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5274 | int arg2 ; | |
5275 | int arg3 ; | |
5276 | PyObject * obj0 = 0 ; | |
5277 | PyObject * obj1 = 0 ; | |
5278 | PyObject * obj2 = 0 ; | |
5279 | char *kwnames[] = { | |
5280 | (char *) "self",(char *) "x",(char *) "y", NULL | |
5281 | }; | |
5282 | ||
5283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_MoveXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5284 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5285 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 5286 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 5287 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 5288 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
5289 | if (PyErr_Occurred()) SWIG_fail; |
5290 | { | |
5291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5292 | (arg1)->Move(arg2,arg3); | |
5293 | ||
5294 | wxPyEndAllowThreads(__tstate); | |
5295 | if (PyErr_Occurred()) SWIG_fail; | |
5296 | } | |
5297 | Py_INCREF(Py_None); resultobj = Py_None; | |
5298 | return resultobj; | |
5299 | fail: | |
5300 | return NULL; | |
5301 | } | |
5302 | ||
5303 | ||
c32bde28 | 5304 | static PyObject *_wrap_Caret_Move(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5305 | PyObject *resultobj; |
5306 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5307 | wxPoint *arg2 = 0 ; | |
5308 | wxPoint temp2 ; | |
5309 | PyObject * obj0 = 0 ; | |
5310 | PyObject * obj1 = 0 ; | |
5311 | char *kwnames[] = { | |
5312 | (char *) "self",(char *) "pt", NULL | |
5313 | }; | |
5314 | ||
5315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_Move",kwnames,&obj0,&obj1)) goto fail; | |
5316 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5317 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5318 | { | |
5319 | arg2 = &temp2; | |
5320 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
5321 | } | |
5322 | { | |
5323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5324 | (arg1)->Move((wxPoint const &)*arg2); | |
5325 | ||
5326 | wxPyEndAllowThreads(__tstate); | |
5327 | if (PyErr_Occurred()) SWIG_fail; | |
5328 | } | |
5329 | Py_INCREF(Py_None); resultobj = Py_None; | |
5330 | return resultobj; | |
5331 | fail: | |
5332 | return NULL; | |
5333 | } | |
5334 | ||
5335 | ||
c32bde28 | 5336 | static PyObject *_wrap_Caret_SetSizeWH(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5337 | PyObject *resultobj; |
5338 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5339 | int arg2 ; | |
5340 | int arg3 ; | |
5341 | PyObject * obj0 = 0 ; | |
5342 | PyObject * obj1 = 0 ; | |
5343 | PyObject * obj2 = 0 ; | |
5344 | char *kwnames[] = { | |
5345 | (char *) "self",(char *) "width",(char *) "height", NULL | |
5346 | }; | |
5347 | ||
5348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5349 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 5351 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 5352 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 5353 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
5354 | if (PyErr_Occurred()) SWIG_fail; |
5355 | { | |
5356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5357 | (arg1)->SetSize(arg2,arg3); | |
5358 | ||
5359 | wxPyEndAllowThreads(__tstate); | |
5360 | if (PyErr_Occurred()) SWIG_fail; | |
5361 | } | |
5362 | Py_INCREF(Py_None); resultobj = Py_None; | |
5363 | return resultobj; | |
5364 | fail: | |
5365 | return NULL; | |
5366 | } | |
5367 | ||
5368 | ||
c32bde28 | 5369 | static PyObject *_wrap_Caret_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5370 | PyObject *resultobj; |
5371 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5372 | wxSize *arg2 = 0 ; | |
5373 | wxSize temp2 ; | |
5374 | PyObject * obj0 = 0 ; | |
5375 | PyObject * obj1 = 0 ; | |
5376 | char *kwnames[] = { | |
5377 | (char *) "self",(char *) "size", NULL | |
5378 | }; | |
5379 | ||
5380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
5381 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5382 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5383 | { | |
5384 | arg2 = &temp2; | |
5385 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
5386 | } | |
5387 | { | |
5388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5389 | (arg1)->SetSize((wxSize const &)*arg2); | |
5390 | ||
5391 | wxPyEndAllowThreads(__tstate); | |
5392 | if (PyErr_Occurred()) SWIG_fail; | |
5393 | } | |
5394 | Py_INCREF(Py_None); resultobj = Py_None; | |
5395 | return resultobj; | |
5396 | fail: | |
5397 | return NULL; | |
5398 | } | |
5399 | ||
5400 | ||
c32bde28 | 5401 | static PyObject *_wrap_Caret_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5402 | PyObject *resultobj; |
5403 | wxCaret *arg1 = (wxCaret *) 0 ; | |
ae8162c8 | 5404 | int arg2 = (int) true ; |
d55e5bfc RD |
5405 | PyObject * obj0 = 0 ; |
5406 | PyObject * obj1 = 0 ; | |
5407 | char *kwnames[] = { | |
5408 | (char *) "self",(char *) "show", NULL | |
5409 | }; | |
5410 | ||
5411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Caret_Show",kwnames,&obj0,&obj1)) goto fail; | |
5412 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5413 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5414 | if (obj1) { | |
c32bde28 | 5415 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
5416 | if (PyErr_Occurred()) SWIG_fail; |
5417 | } | |
5418 | { | |
5419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5420 | (arg1)->Show(arg2); | |
5421 | ||
5422 | wxPyEndAllowThreads(__tstate); | |
5423 | if (PyErr_Occurred()) SWIG_fail; | |
5424 | } | |
5425 | Py_INCREF(Py_None); resultobj = Py_None; | |
5426 | return resultobj; | |
5427 | fail: | |
5428 | return NULL; | |
5429 | } | |
5430 | ||
5431 | ||
c32bde28 | 5432 | static PyObject *_wrap_Caret_Hide(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5433 | PyObject *resultobj; |
5434 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5435 | PyObject * obj0 = 0 ; | |
5436 | char *kwnames[] = { | |
5437 | (char *) "self", NULL | |
5438 | }; | |
5439 | ||
5440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Hide",kwnames,&obj0)) goto fail; | |
5441 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5442 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5443 | { | |
5444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5445 | (arg1)->Hide(); | |
5446 | ||
5447 | wxPyEndAllowThreads(__tstate); | |
5448 | if (PyErr_Occurred()) SWIG_fail; | |
5449 | } | |
5450 | Py_INCREF(Py_None); resultobj = Py_None; | |
5451 | return resultobj; | |
5452 | fail: | |
5453 | return NULL; | |
5454 | } | |
5455 | ||
5456 | ||
c32bde28 | 5457 | static PyObject * Caret_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
5458 | PyObject *obj; |
5459 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5460 | SWIG_TypeClientData(SWIGTYPE_p_wxCaret, obj); | |
5461 | Py_INCREF(obj); | |
5462 | return Py_BuildValue((char *)""); | |
5463 | } | |
c32bde28 | 5464 | static PyObject *_wrap_Caret_GetBlinkTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5465 | PyObject *resultobj; |
5466 | int result; | |
5467 | char *kwnames[] = { | |
5468 | NULL | |
5469 | }; | |
5470 | ||
5471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Caret_GetBlinkTime",kwnames)) goto fail; | |
5472 | { | |
5473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5474 | result = (int)wxCaret_GetBlinkTime(); | |
5475 | ||
5476 | wxPyEndAllowThreads(__tstate); | |
5477 | if (PyErr_Occurred()) SWIG_fail; | |
5478 | } | |
c32bde28 | 5479 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
5480 | return resultobj; |
5481 | fail: | |
5482 | return NULL; | |
5483 | } | |
5484 | ||
5485 | ||
c32bde28 | 5486 | static PyObject *_wrap_Caret_SetBlinkTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5487 | PyObject *resultobj; |
5488 | int arg1 ; | |
5489 | PyObject * obj0 = 0 ; | |
5490 | char *kwnames[] = { | |
5491 | (char *) "milliseconds", NULL | |
5492 | }; | |
5493 | ||
5494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_SetBlinkTime",kwnames,&obj0)) goto fail; | |
c32bde28 | 5495 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
5496 | if (PyErr_Occurred()) SWIG_fail; |
5497 | { | |
5498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5499 | wxCaret_SetBlinkTime(arg1); | |
5500 | ||
5501 | wxPyEndAllowThreads(__tstate); | |
5502 | if (PyErr_Occurred()) SWIG_fail; | |
5503 | } | |
5504 | Py_INCREF(Py_None); resultobj = Py_None; | |
5505 | return resultobj; | |
5506 | fail: | |
5507 | return NULL; | |
5508 | } | |
5509 | ||
5510 | ||
c32bde28 | 5511 | static PyObject *_wrap_new_BusyCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5512 | PyObject *resultobj; |
5513 | wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ; | |
5514 | wxBusyCursor *result; | |
5515 | PyObject * obj0 = 0 ; | |
5516 | char *kwnames[] = { | |
5517 | (char *) "cursor", NULL | |
5518 | }; | |
5519 | ||
5520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BusyCursor",kwnames,&obj0)) goto fail; | |
5521 | if (obj0) { | |
5522 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
5523 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5524 | } | |
5525 | { | |
0439c23b | 5526 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5528 | result = (wxBusyCursor *)new wxBusyCursor(arg1); | |
5529 | ||
5530 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5531 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5532 | } |
5533 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyCursor, 1); | |
5534 | return resultobj; | |
5535 | fail: | |
5536 | return NULL; | |
5537 | } | |
5538 | ||
5539 | ||
c32bde28 | 5540 | static PyObject *_wrap_delete_BusyCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5541 | PyObject *resultobj; |
5542 | wxBusyCursor *arg1 = (wxBusyCursor *) 0 ; | |
5543 | PyObject * obj0 = 0 ; | |
5544 | char *kwnames[] = { | |
5545 | (char *) "self", NULL | |
5546 | }; | |
5547 | ||
5548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyCursor",kwnames,&obj0)) goto fail; | |
5549 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyCursor, | |
5550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5551 | { | |
5552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5553 | delete arg1; | |
5554 | ||
5555 | wxPyEndAllowThreads(__tstate); | |
5556 | if (PyErr_Occurred()) SWIG_fail; | |
5557 | } | |
5558 | Py_INCREF(Py_None); resultobj = Py_None; | |
5559 | return resultobj; | |
5560 | fail: | |
5561 | return NULL; | |
5562 | } | |
5563 | ||
5564 | ||
c32bde28 | 5565 | static PyObject * BusyCursor_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
5566 | PyObject *obj; |
5567 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5568 | SWIG_TypeClientData(SWIGTYPE_p_wxBusyCursor, obj); | |
5569 | Py_INCREF(obj); | |
5570 | return Py_BuildValue((char *)""); | |
5571 | } | |
c32bde28 | 5572 | static PyObject *_wrap_new_WindowDisabler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5573 | PyObject *resultobj; |
5574 | wxWindow *arg1 = (wxWindow *) NULL ; | |
5575 | wxWindowDisabler *result; | |
5576 | PyObject * obj0 = 0 ; | |
5577 | char *kwnames[] = { | |
5578 | (char *) "winToSkip", NULL | |
5579 | }; | |
5580 | ||
5581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDisabler",kwnames,&obj0)) goto fail; | |
5582 | if (obj0) { | |
5583 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
5584 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5585 | } | |
5586 | { | |
0439c23b | 5587 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5589 | result = (wxWindowDisabler *)new wxWindowDisabler(arg1); | |
5590 | ||
5591 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5592 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5593 | } |
5594 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDisabler, 1); | |
5595 | return resultobj; | |
5596 | fail: | |
5597 | return NULL; | |
5598 | } | |
5599 | ||
5600 | ||
c32bde28 | 5601 | static PyObject *_wrap_delete_WindowDisabler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5602 | PyObject *resultobj; |
5603 | wxWindowDisabler *arg1 = (wxWindowDisabler *) 0 ; | |
5604 | PyObject * obj0 = 0 ; | |
5605 | char *kwnames[] = { | |
5606 | (char *) "self", NULL | |
5607 | }; | |
5608 | ||
5609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_WindowDisabler",kwnames,&obj0)) goto fail; | |
5610 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDisabler, | |
5611 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5612 | { | |
5613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5614 | delete arg1; | |
5615 | ||
5616 | wxPyEndAllowThreads(__tstate); | |
5617 | if (PyErr_Occurred()) SWIG_fail; | |
5618 | } | |
5619 | Py_INCREF(Py_None); resultobj = Py_None; | |
5620 | return resultobj; | |
5621 | fail: | |
5622 | return NULL; | |
5623 | } | |
5624 | ||
5625 | ||
c32bde28 | 5626 | static PyObject * WindowDisabler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
5627 | PyObject *obj; |
5628 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5629 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDisabler, obj); | |
5630 | Py_INCREF(obj); | |
5631 | return Py_BuildValue((char *)""); | |
5632 | } | |
c32bde28 | 5633 | static PyObject *_wrap_new_BusyInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5634 | PyObject *resultobj; |
5635 | wxString *arg1 = 0 ; | |
5636 | wxBusyInfo *result; | |
ae8162c8 | 5637 | bool temp1 = false ; |
d55e5bfc RD |
5638 | PyObject * obj0 = 0 ; |
5639 | char *kwnames[] = { | |
5640 | (char *) "message", NULL | |
5641 | }; | |
5642 | ||
5643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BusyInfo",kwnames,&obj0)) goto fail; | |
5644 | { | |
5645 | arg1 = wxString_in_helper(obj0); | |
5646 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 5647 | temp1 = true; |
d55e5bfc RD |
5648 | } |
5649 | { | |
0439c23b | 5650 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5652 | result = (wxBusyInfo *)new wxBusyInfo((wxString const &)*arg1); | |
5653 | ||
5654 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5655 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5656 | } |
5657 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyInfo, 1); | |
5658 | { | |
5659 | if (temp1) | |
5660 | delete arg1; | |
5661 | } | |
5662 | return resultobj; | |
5663 | fail: | |
5664 | { | |
5665 | if (temp1) | |
5666 | delete arg1; | |
5667 | } | |
5668 | return NULL; | |
5669 | } | |
5670 | ||
5671 | ||
c32bde28 | 5672 | static PyObject *_wrap_delete_BusyInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5673 | PyObject *resultobj; |
5674 | wxBusyInfo *arg1 = (wxBusyInfo *) 0 ; | |
5675 | PyObject * obj0 = 0 ; | |
5676 | char *kwnames[] = { | |
5677 | (char *) "self", NULL | |
5678 | }; | |
5679 | ||
5680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyInfo",kwnames,&obj0)) goto fail; | |
5681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyInfo, | |
5682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5683 | { | |
5684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5685 | delete arg1; | |
5686 | ||
5687 | wxPyEndAllowThreads(__tstate); | |
5688 | if (PyErr_Occurred()) SWIG_fail; | |
5689 | } | |
5690 | Py_INCREF(Py_None); resultobj = Py_None; | |
5691 | return resultobj; | |
5692 | fail: | |
5693 | return NULL; | |
5694 | } | |
5695 | ||
5696 | ||
c32bde28 | 5697 | static PyObject * BusyInfo_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
5698 | PyObject *obj; |
5699 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5700 | SWIG_TypeClientData(SWIGTYPE_p_wxBusyInfo, obj); | |
5701 | Py_INCREF(obj); | |
5702 | return Py_BuildValue((char *)""); | |
5703 | } | |
c32bde28 | 5704 | static PyObject *_wrap_new_StopWatch(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5705 | PyObject *resultobj; |
5706 | wxStopWatch *result; | |
5707 | char *kwnames[] = { | |
5708 | NULL | |
5709 | }; | |
5710 | ||
5711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StopWatch",kwnames)) goto fail; | |
5712 | { | |
5713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5714 | result = (wxStopWatch *)new wxStopWatch(); | |
5715 | ||
5716 | wxPyEndAllowThreads(__tstate); | |
5717 | if (PyErr_Occurred()) SWIG_fail; | |
5718 | } | |
5719 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStopWatch, 1); | |
5720 | return resultobj; | |
5721 | fail: | |
5722 | return NULL; | |
5723 | } | |
5724 | ||
5725 | ||
c32bde28 | 5726 | static PyObject *_wrap_StopWatch_Start(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5727 | PyObject *resultobj; |
5728 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5729 | long arg2 = (long) 0 ; | |
5730 | PyObject * obj0 = 0 ; | |
5731 | PyObject * obj1 = 0 ; | |
5732 | char *kwnames[] = { | |
5733 | (char *) "self",(char *) "t0", NULL | |
5734 | }; | |
5735 | ||
5736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StopWatch_Start",kwnames,&obj0,&obj1)) goto fail; | |
5737 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, | |
5738 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5739 | if (obj1) { | |
c32bde28 | 5740 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
5741 | if (PyErr_Occurred()) SWIG_fail; |
5742 | } | |
5743 | { | |
5744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5745 | (arg1)->Start(arg2); | |
5746 | ||
5747 | wxPyEndAllowThreads(__tstate); | |
5748 | if (PyErr_Occurred()) SWIG_fail; | |
5749 | } | |
5750 | Py_INCREF(Py_None); resultobj = Py_None; | |
5751 | return resultobj; | |
5752 | fail: | |
5753 | return NULL; | |
5754 | } | |
5755 | ||
5756 | ||
c32bde28 | 5757 | static PyObject *_wrap_StopWatch_Pause(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5758 | PyObject *resultobj; |
5759 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5760 | PyObject * obj0 = 0 ; | |
5761 | char *kwnames[] = { | |
5762 | (char *) "self", NULL | |
5763 | }; | |
5764 | ||
5765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Pause",kwnames,&obj0)) goto fail; | |
5766 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, | |
5767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5768 | { | |
5769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5770 | (arg1)->Pause(); | |
5771 | ||
5772 | wxPyEndAllowThreads(__tstate); | |
5773 | if (PyErr_Occurred()) SWIG_fail; | |
5774 | } | |
5775 | Py_INCREF(Py_None); resultobj = Py_None; | |
5776 | return resultobj; | |
5777 | fail: | |
5778 | return NULL; | |
5779 | } | |
5780 | ||
5781 | ||
c32bde28 | 5782 | static PyObject *_wrap_StopWatch_Resume(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5783 | PyObject *resultobj; |
5784 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5785 | PyObject * obj0 = 0 ; | |
5786 | char *kwnames[] = { | |
5787 | (char *) "self", NULL | |
5788 | }; | |
5789 | ||
5790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Resume",kwnames,&obj0)) goto fail; | |
5791 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, | |
5792 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5793 | { | |
5794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5795 | (arg1)->Resume(); | |
5796 | ||
5797 | wxPyEndAllowThreads(__tstate); | |
5798 | if (PyErr_Occurred()) SWIG_fail; | |
5799 | } | |
5800 | Py_INCREF(Py_None); resultobj = Py_None; | |
5801 | return resultobj; | |
5802 | fail: | |
5803 | return NULL; | |
5804 | } | |
5805 | ||
5806 | ||
c32bde28 | 5807 | static PyObject *_wrap_StopWatch_Time(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5808 | PyObject *resultobj; |
5809 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5810 | long result; | |
5811 | PyObject * obj0 = 0 ; | |
5812 | char *kwnames[] = { | |
5813 | (char *) "self", NULL | |
5814 | }; | |
5815 | ||
5816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Time",kwnames,&obj0)) goto fail; | |
5817 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, | |
5818 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5819 | { | |
5820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5821 | result = (long)((wxStopWatch const *)arg1)->Time(); | |
5822 | ||
5823 | wxPyEndAllowThreads(__tstate); | |
5824 | if (PyErr_Occurred()) SWIG_fail; | |
5825 | } | |
c32bde28 | 5826 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
5827 | return resultobj; |
5828 | fail: | |
5829 | return NULL; | |
5830 | } | |
5831 | ||
5832 | ||
c32bde28 | 5833 | static PyObject * StopWatch_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
5834 | PyObject *obj; |
5835 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5836 | SWIG_TypeClientData(SWIGTYPE_p_wxStopWatch, obj); | |
5837 | Py_INCREF(obj); | |
5838 | return Py_BuildValue((char *)""); | |
5839 | } | |
c32bde28 | 5840 | static PyObject *_wrap_new_FileHistory(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5841 | PyObject *resultobj; |
5842 | int arg1 = (int) 9 ; | |
4cf4100f | 5843 | int arg2 = (int) wxID_FILE1 ; |
d55e5bfc RD |
5844 | wxFileHistory *result; |
5845 | PyObject * obj0 = 0 ; | |
4cf4100f | 5846 | PyObject * obj1 = 0 ; |
d55e5bfc | 5847 | char *kwnames[] = { |
4cf4100f | 5848 | (char *) "maxFiles",(char *) "idBase", NULL |
d55e5bfc RD |
5849 | }; |
5850 | ||
4cf4100f | 5851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FileHistory",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc | 5852 | if (obj0) { |
c32bde28 | 5853 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
5854 | if (PyErr_Occurred()) SWIG_fail; |
5855 | } | |
4cf4100f | 5856 | if (obj1) { |
c32bde28 | 5857 | arg2 = (int)SWIG_As_int(obj1); |
4cf4100f RD |
5858 | if (PyErr_Occurred()) SWIG_fail; |
5859 | } | |
d55e5bfc RD |
5860 | { |
5861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4cf4100f | 5862 | result = (wxFileHistory *)new wxFileHistory(arg1,arg2); |
d55e5bfc RD |
5863 | |
5864 | wxPyEndAllowThreads(__tstate); | |
5865 | if (PyErr_Occurred()) SWIG_fail; | |
5866 | } | |
5867 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileHistory, 1); | |
5868 | return resultobj; | |
5869 | fail: | |
5870 | return NULL; | |
5871 | } | |
5872 | ||
5873 | ||
c32bde28 | 5874 | static PyObject *_wrap_delete_FileHistory(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5875 | PyObject *resultobj; |
5876 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5877 | PyObject * obj0 = 0 ; | |
5878 | char *kwnames[] = { | |
5879 | (char *) "self", NULL | |
5880 | }; | |
5881 | ||
5882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileHistory",kwnames,&obj0)) goto fail; | |
5883 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5885 | { | |
5886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5887 | delete arg1; | |
5888 | ||
5889 | wxPyEndAllowThreads(__tstate); | |
5890 | if (PyErr_Occurred()) SWIG_fail; | |
5891 | } | |
5892 | Py_INCREF(Py_None); resultobj = Py_None; | |
5893 | return resultobj; | |
5894 | fail: | |
5895 | return NULL; | |
5896 | } | |
5897 | ||
5898 | ||
c32bde28 | 5899 | static PyObject *_wrap_FileHistory_AddFileToHistory(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5900 | PyObject *resultobj; |
5901 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5902 | wxString *arg2 = 0 ; | |
ae8162c8 | 5903 | bool temp2 = false ; |
d55e5bfc RD |
5904 | PyObject * obj0 = 0 ; |
5905 | PyObject * obj1 = 0 ; | |
5906 | char *kwnames[] = { | |
5907 | (char *) "self",(char *) "file", NULL | |
5908 | }; | |
5909 | ||
5910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFileToHistory",kwnames,&obj0,&obj1)) goto fail; | |
5911 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5912 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5913 | { | |
5914 | arg2 = wxString_in_helper(obj1); | |
5915 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 5916 | temp2 = true; |
d55e5bfc RD |
5917 | } |
5918 | { | |
5919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5920 | (arg1)->AddFileToHistory((wxString const &)*arg2); | |
5921 | ||
5922 | wxPyEndAllowThreads(__tstate); | |
5923 | if (PyErr_Occurred()) SWIG_fail; | |
5924 | } | |
5925 | Py_INCREF(Py_None); resultobj = Py_None; | |
5926 | { | |
5927 | if (temp2) | |
5928 | delete arg2; | |
5929 | } | |
5930 | return resultobj; | |
5931 | fail: | |
5932 | { | |
5933 | if (temp2) | |
5934 | delete arg2; | |
5935 | } | |
5936 | return NULL; | |
5937 | } | |
5938 | ||
5939 | ||
c32bde28 | 5940 | static PyObject *_wrap_FileHistory_RemoveFileFromHistory(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5941 | PyObject *resultobj; |
5942 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5943 | int arg2 ; | |
5944 | PyObject * obj0 = 0 ; | |
5945 | PyObject * obj1 = 0 ; | |
5946 | char *kwnames[] = { | |
5947 | (char *) "self",(char *) "i", NULL | |
5948 | }; | |
5949 | ||
5950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveFileFromHistory",kwnames,&obj0,&obj1)) goto fail; | |
5951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 5953 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
5954 | if (PyErr_Occurred()) SWIG_fail; |
5955 | { | |
5956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5957 | (arg1)->RemoveFileFromHistory(arg2); | |
5958 | ||
5959 | wxPyEndAllowThreads(__tstate); | |
5960 | if (PyErr_Occurred()) SWIG_fail; | |
5961 | } | |
5962 | Py_INCREF(Py_None); resultobj = Py_None; | |
5963 | return resultobj; | |
5964 | fail: | |
5965 | return NULL; | |
5966 | } | |
5967 | ||
5968 | ||
c32bde28 | 5969 | static PyObject *_wrap_FileHistory_GetMaxFiles(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5970 | PyObject *resultobj; |
5971 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5972 | int result; | |
5973 | PyObject * obj0 = 0 ; | |
5974 | char *kwnames[] = { | |
5975 | (char *) "self", NULL | |
5976 | }; | |
5977 | ||
5978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetMaxFiles",kwnames,&obj0)) goto fail; | |
5979 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5980 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5981 | { | |
5982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5983 | result = (int)((wxFileHistory const *)arg1)->GetMaxFiles(); | |
5984 | ||
5985 | wxPyEndAllowThreads(__tstate); | |
5986 | if (PyErr_Occurred()) SWIG_fail; | |
5987 | } | |
c32bde28 | 5988 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
5989 | return resultobj; |
5990 | fail: | |
5991 | return NULL; | |
5992 | } | |
5993 | ||
5994 | ||
c32bde28 | 5995 | static PyObject *_wrap_FileHistory_UseMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5996 | PyObject *resultobj; |
5997 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5998 | wxMenu *arg2 = (wxMenu *) 0 ; | |
5999 | PyObject * obj0 = 0 ; | |
6000 | PyObject * obj1 = 0 ; | |
6001 | char *kwnames[] = { | |
6002 | (char *) "self",(char *) "menu", NULL | |
6003 | }; | |
6004 | ||
6005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_UseMenu",kwnames,&obj0,&obj1)) goto fail; | |
6006 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
6007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6008 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
6009 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6010 | { | |
6011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6012 | (arg1)->UseMenu(arg2); | |
6013 | ||
6014 | wxPyEndAllowThreads(__tstate); | |
6015 | if (PyErr_Occurred()) SWIG_fail; | |
6016 | } | |
6017 | Py_INCREF(Py_None); resultobj = Py_None; | |
6018 | return resultobj; | |
6019 | fail: | |
6020 | return NULL; | |
6021 | } | |
6022 | ||
6023 | ||
c32bde28 | 6024 | static PyObject *_wrap_FileHistory_RemoveMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6025 | PyObject *resultobj; |
6026 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
6027 | wxMenu *arg2 = (wxMenu *) 0 ; | |
6028 | PyObject * obj0 = 0 ; | |
6029 | PyObject * obj1 = 0 ; | |
6030 | char *kwnames[] = { | |
6031 | (char *) "self",(char *) "menu", NULL | |
6032 | }; | |
6033 | ||
6034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveMenu",kwnames,&obj0,&obj1)) goto fail; | |
6035 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
6036 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6037 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
6038 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6039 | { | |
6040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6041 | (arg1)->RemoveMenu(arg2); | |
6042 | ||
6043 | wxPyEndAllowThreads(__tstate); | |
6044 | if (PyErr_Occurred()) SWIG_fail; | |
6045 | } | |
6046 | Py_INCREF(Py_None); resultobj = Py_None; | |
6047 | return resultobj; | |
6048 | fail: | |
6049 | return NULL; | |
6050 | } | |
6051 | ||
6052 | ||
c32bde28 | 6053 | static PyObject *_wrap_FileHistory_Load(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6054 | PyObject *resultobj; |
6055 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
6056 | wxConfigBase *arg2 = 0 ; | |
6057 | PyObject * obj0 = 0 ; | |
6058 | PyObject * obj1 = 0 ; | |
6059 | char *kwnames[] = { | |
6060 | (char *) "self",(char *) "config", NULL | |
6061 | }; | |
6062 | ||
6063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Load",kwnames,&obj0,&obj1)) goto fail; | |
6064 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
6065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6066 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase, | |
6067 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6068 | SWIG_fail; | |
6069 | if (arg2 == NULL) { | |
6070 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6071 | SWIG_fail; | |
6072 | } | |
6073 | { | |
6074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6075 | (arg1)->Load(*arg2); | |
6076 | ||
6077 | wxPyEndAllowThreads(__tstate); | |
6078 | if (PyErr_Occurred()) SWIG_fail; | |
6079 | } | |
6080 | Py_INCREF(Py_None); resultobj = Py_None; | |
6081 | return resultobj; | |
6082 | fail: | |
6083 | return NULL; | |
6084 | } | |
6085 | ||
6086 | ||
c32bde28 | 6087 | static PyObject *_wrap_FileHistory_Save(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6088 | PyObject *resultobj; |
6089 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
6090 | wxConfigBase *arg2 = 0 ; | |
6091 | PyObject * obj0 = 0 ; | |
6092 | PyObject * obj1 = 0 ; | |
6093 | char *kwnames[] = { | |
6094 | (char *) "self",(char *) "config", NULL | |
6095 | }; | |
6096 | ||
6097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Save",kwnames,&obj0,&obj1)) goto fail; | |
6098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
6099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6100 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase, | |
6101 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6102 | SWIG_fail; | |
6103 | if (arg2 == NULL) { | |
6104 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6105 | SWIG_fail; | |
6106 | } | |
6107 | { | |
6108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6109 | (arg1)->Save(*arg2); | |
6110 | ||
6111 | wxPyEndAllowThreads(__tstate); | |
6112 | if (PyErr_Occurred()) SWIG_fail; | |
6113 | } | |
6114 | Py_INCREF(Py_None); resultobj = Py_None; | |
6115 | return resultobj; | |
6116 | fail: | |
6117 | return NULL; | |
6118 | } | |
6119 | ||
6120 | ||
c32bde28 | 6121 | static PyObject *_wrap_FileHistory_AddFilesToMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6122 | PyObject *resultobj; |
6123 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
6124 | PyObject * obj0 = 0 ; | |
6125 | char *kwnames[] = { | |
6126 | (char *) "self", NULL | |
6127 | }; | |
6128 | ||
6129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_AddFilesToMenu",kwnames,&obj0)) goto fail; | |
6130 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
6131 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6132 | { | |
6133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6134 | (arg1)->AddFilesToMenu(); | |
6135 | ||
6136 | wxPyEndAllowThreads(__tstate); | |
6137 | if (PyErr_Occurred()) SWIG_fail; | |
6138 | } | |
6139 | Py_INCREF(Py_None); resultobj = Py_None; | |
6140 | return resultobj; | |
6141 | fail: | |
6142 | return NULL; | |
6143 | } | |
6144 | ||
6145 | ||
c32bde28 | 6146 | static PyObject *_wrap_FileHistory_AddFilesToThisMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6147 | PyObject *resultobj; |
6148 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
6149 | wxMenu *arg2 = (wxMenu *) 0 ; | |
6150 | PyObject * obj0 = 0 ; | |
6151 | PyObject * obj1 = 0 ; | |
6152 | char *kwnames[] = { | |
6153 | (char *) "self",(char *) "menu", NULL | |
6154 | }; | |
6155 | ||
6156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFilesToThisMenu",kwnames,&obj0,&obj1)) goto fail; | |
6157 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
6158 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6159 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
6160 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6161 | { | |
6162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6163 | (arg1)->AddFilesToMenu(arg2); | |
6164 | ||
6165 | wxPyEndAllowThreads(__tstate); | |
6166 | if (PyErr_Occurred()) SWIG_fail; | |
6167 | } | |
6168 | Py_INCREF(Py_None); resultobj = Py_None; | |
6169 | return resultobj; | |
6170 | fail: | |
6171 | return NULL; | |
6172 | } | |
6173 | ||
6174 | ||
c32bde28 | 6175 | static PyObject *_wrap_FileHistory_GetHistoryFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6176 | PyObject *resultobj; |
6177 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
6178 | int arg2 ; | |
6179 | wxString result; | |
6180 | PyObject * obj0 = 0 ; | |
6181 | PyObject * obj1 = 0 ; | |
6182 | char *kwnames[] = { | |
6183 | (char *) "self",(char *) "i", NULL | |
6184 | }; | |
6185 | ||
6186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_GetHistoryFile",kwnames,&obj0,&obj1)) goto fail; | |
6187 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
6188 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6189 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
6190 | if (PyErr_Occurred()) SWIG_fail; |
6191 | { | |
6192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6193 | result = ((wxFileHistory const *)arg1)->GetHistoryFile(arg2); | |
6194 | ||
6195 | wxPyEndAllowThreads(__tstate); | |
6196 | if (PyErr_Occurred()) SWIG_fail; | |
6197 | } | |
6198 | { | |
6199 | #if wxUSE_UNICODE | |
6200 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6201 | #else | |
6202 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6203 | #endif | |
6204 | } | |
6205 | return resultobj; | |
6206 | fail: | |
6207 | return NULL; | |
6208 | } | |
6209 | ||
6210 | ||
c32bde28 | 6211 | static PyObject *_wrap_FileHistory_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6212 | PyObject *resultobj; |
6213 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
6214 | int result; | |
6215 | PyObject * obj0 = 0 ; | |
6216 | char *kwnames[] = { | |
6217 | (char *) "self", NULL | |
6218 | }; | |
6219 | ||
6220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetCount",kwnames,&obj0)) goto fail; | |
6221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
6222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6223 | { | |
6224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6225 | result = (int)((wxFileHistory const *)arg1)->GetCount(); | |
6226 | ||
6227 | wxPyEndAllowThreads(__tstate); | |
6228 | if (PyErr_Occurred()) SWIG_fail; | |
6229 | } | |
c32bde28 | 6230 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
6231 | return resultobj; |
6232 | fail: | |
6233 | return NULL; | |
6234 | } | |
6235 | ||
6236 | ||
c32bde28 | 6237 | static PyObject * FileHistory_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6238 | PyObject *obj; |
6239 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6240 | SWIG_TypeClientData(SWIGTYPE_p_wxFileHistory, obj); | |
6241 | Py_INCREF(obj); | |
6242 | return Py_BuildValue((char *)""); | |
6243 | } | |
c32bde28 | 6244 | static PyObject *_wrap_new_SingleInstanceChecker(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6245 | PyObject *resultobj; |
6246 | wxString *arg1 = 0 ; | |
6247 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
6248 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
6249 | wxSingleInstanceChecker *result; | |
ae8162c8 RD |
6250 | bool temp1 = false ; |
6251 | bool temp2 = false ; | |
d55e5bfc RD |
6252 | PyObject * obj0 = 0 ; |
6253 | PyObject * obj1 = 0 ; | |
6254 | char *kwnames[] = { | |
6255 | (char *) "name",(char *) "path", NULL | |
6256 | }; | |
6257 | ||
6258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_SingleInstanceChecker",kwnames,&obj0,&obj1)) goto fail; | |
6259 | { | |
6260 | arg1 = wxString_in_helper(obj0); | |
6261 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 6262 | temp1 = true; |
d55e5bfc RD |
6263 | } |
6264 | if (obj1) { | |
6265 | { | |
6266 | arg2 = wxString_in_helper(obj1); | |
6267 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 6268 | temp2 = true; |
d55e5bfc RD |
6269 | } |
6270 | } | |
6271 | { | |
6272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6273 | result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker((wxString const &)*arg1,(wxString const &)*arg2); | |
6274 | ||
6275 | wxPyEndAllowThreads(__tstate); | |
6276 | if (PyErr_Occurred()) SWIG_fail; | |
6277 | } | |
6278 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1); | |
6279 | { | |
6280 | if (temp1) | |
6281 | delete arg1; | |
6282 | } | |
6283 | { | |
6284 | if (temp2) | |
6285 | delete arg2; | |
6286 | } | |
6287 | return resultobj; | |
6288 | fail: | |
6289 | { | |
6290 | if (temp1) | |
6291 | delete arg1; | |
6292 | } | |
6293 | { | |
6294 | if (temp2) | |
6295 | delete arg2; | |
6296 | } | |
6297 | return NULL; | |
6298 | } | |
6299 | ||
6300 | ||
c32bde28 | 6301 | static PyObject *_wrap_new_PreSingleInstanceChecker(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6302 | PyObject *resultobj; |
6303 | wxSingleInstanceChecker *result; | |
6304 | char *kwnames[] = { | |
6305 | NULL | |
6306 | }; | |
6307 | ||
6308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSingleInstanceChecker",kwnames)) goto fail; | |
6309 | { | |
6310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6311 | result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker(); | |
6312 | ||
6313 | wxPyEndAllowThreads(__tstate); | |
6314 | if (PyErr_Occurred()) SWIG_fail; | |
6315 | } | |
6316 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1); | |
6317 | return resultobj; | |
6318 | fail: | |
6319 | return NULL; | |
6320 | } | |
6321 | ||
6322 | ||
c32bde28 | 6323 | static PyObject *_wrap_delete_SingleInstanceChecker(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6324 | PyObject *resultobj; |
6325 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
6326 | PyObject * obj0 = 0 ; | |
6327 | char *kwnames[] = { | |
6328 | (char *) "self", NULL | |
6329 | }; | |
6330 | ||
6331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SingleInstanceChecker",kwnames,&obj0)) goto fail; | |
6332 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker, | |
6333 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6334 | { | |
6335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6336 | delete arg1; | |
6337 | ||
6338 | wxPyEndAllowThreads(__tstate); | |
6339 | if (PyErr_Occurred()) SWIG_fail; | |
6340 | } | |
6341 | Py_INCREF(Py_None); resultobj = Py_None; | |
6342 | return resultobj; | |
6343 | fail: | |
6344 | return NULL; | |
6345 | } | |
6346 | ||
6347 | ||
c32bde28 | 6348 | static PyObject *_wrap_SingleInstanceChecker_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6349 | PyObject *resultobj; |
6350 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
6351 | wxString *arg2 = 0 ; | |
6352 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
6353 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
6354 | bool result; | |
ae8162c8 RD |
6355 | bool temp2 = false ; |
6356 | bool temp3 = false ; | |
d55e5bfc RD |
6357 | PyObject * obj0 = 0 ; |
6358 | PyObject * obj1 = 0 ; | |
6359 | PyObject * obj2 = 0 ; | |
6360 | char *kwnames[] = { | |
6361 | (char *) "self",(char *) "name",(char *) "path", NULL | |
6362 | }; | |
6363 | ||
6364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SingleInstanceChecker_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker, | |
6366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6367 | { | |
6368 | arg2 = wxString_in_helper(obj1); | |
6369 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 6370 | temp2 = true; |
d55e5bfc RD |
6371 | } |
6372 | if (obj2) { | |
6373 | { | |
6374 | arg3 = wxString_in_helper(obj2); | |
6375 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 6376 | temp3 = true; |
d55e5bfc RD |
6377 | } |
6378 | } | |
6379 | { | |
6380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6381 | result = (bool)(arg1)->Create((wxString const &)*arg2,(wxString const &)*arg3); | |
6382 | ||
6383 | wxPyEndAllowThreads(__tstate); | |
6384 | if (PyErr_Occurred()) SWIG_fail; | |
6385 | } | |
6386 | { | |
6387 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6388 | } | |
6389 | { | |
6390 | if (temp2) | |
6391 | delete arg2; | |
6392 | } | |
6393 | { | |
6394 | if (temp3) | |
6395 | delete arg3; | |
6396 | } | |
6397 | return resultobj; | |
6398 | fail: | |
6399 | { | |
6400 | if (temp2) | |
6401 | delete arg2; | |
6402 | } | |
6403 | { | |
6404 | if (temp3) | |
6405 | delete arg3; | |
6406 | } | |
6407 | return NULL; | |
6408 | } | |
6409 | ||
6410 | ||
c32bde28 | 6411 | static PyObject *_wrap_SingleInstanceChecker_IsAnotherRunning(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6412 | PyObject *resultobj; |
6413 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
6414 | bool result; | |
6415 | PyObject * obj0 = 0 ; | |
6416 | char *kwnames[] = { | |
6417 | (char *) "self", NULL | |
6418 | }; | |
6419 | ||
6420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleInstanceChecker_IsAnotherRunning",kwnames,&obj0)) goto fail; | |
6421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker, | |
6422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6423 | { | |
6424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6425 | result = (bool)((wxSingleInstanceChecker const *)arg1)->IsAnotherRunning(); | |
6426 | ||
6427 | wxPyEndAllowThreads(__tstate); | |
6428 | if (PyErr_Occurred()) SWIG_fail; | |
6429 | } | |
6430 | { | |
6431 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6432 | } | |
6433 | return resultobj; | |
6434 | fail: | |
6435 | return NULL; | |
6436 | } | |
6437 | ||
6438 | ||
c32bde28 | 6439 | static PyObject * SingleInstanceChecker_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6440 | PyObject *obj; |
6441 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6442 | SWIG_TypeClientData(SWIGTYPE_p_wxSingleInstanceChecker, obj); | |
6443 | Py_INCREF(obj); | |
6444 | return Py_BuildValue((char *)""); | |
6445 | } | |
c32bde28 | 6446 | static PyObject *_wrap_DrawWindowOnDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6447 | PyObject *resultobj; |
6448 | wxWindow *arg1 = (wxWindow *) 0 ; | |
6449 | wxDC *arg2 = 0 ; | |
6450 | int arg3 ; | |
6451 | PyObject * obj0 = 0 ; | |
6452 | PyObject * obj1 = 0 ; | |
6453 | PyObject * obj2 = 0 ; | |
6454 | char *kwnames[] = { | |
6455 | (char *) "window",(char *) "dc",(char *) "method", NULL | |
6456 | }; | |
6457 | ||
6458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DrawWindowOnDC",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6459 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
6460 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6461 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
6462 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6463 | SWIG_fail; | |
6464 | if (arg2 == NULL) { | |
6465 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6466 | SWIG_fail; | |
6467 | } | |
c32bde28 | 6468 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
6469 | if (PyErr_Occurred()) SWIG_fail; |
6470 | { | |
6471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6472 | wxDrawWindowOnDC(arg1,(wxDC const &)*arg2,arg3); | |
6473 | ||
6474 | wxPyEndAllowThreads(__tstate); | |
6475 | if (PyErr_Occurred()) SWIG_fail; | |
6476 | } | |
6477 | Py_INCREF(Py_None); resultobj = Py_None; | |
6478 | return resultobj; | |
6479 | fail: | |
6480 | return NULL; | |
6481 | } | |
6482 | ||
6483 | ||
c32bde28 | 6484 | static PyObject *_wrap_delete_TipProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6485 | PyObject *resultobj; |
6486 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6487 | PyObject * obj0 = 0 ; | |
6488 | char *kwnames[] = { | |
6489 | (char *) "self", NULL | |
6490 | }; | |
6491 | ||
6492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TipProvider",kwnames,&obj0)) goto fail; | |
6493 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, | |
6494 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6495 | { | |
6496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6497 | delete arg1; | |
6498 | ||
6499 | wxPyEndAllowThreads(__tstate); | |
6500 | if (PyErr_Occurred()) SWIG_fail; | |
6501 | } | |
6502 | Py_INCREF(Py_None); resultobj = Py_None; | |
6503 | return resultobj; | |
6504 | fail: | |
6505 | return NULL; | |
6506 | } | |
6507 | ||
6508 | ||
c32bde28 | 6509 | static PyObject *_wrap_TipProvider_GetTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6510 | PyObject *resultobj; |
6511 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6512 | wxString result; | |
6513 | PyObject * obj0 = 0 ; | |
6514 | char *kwnames[] = { | |
6515 | (char *) "self", NULL | |
6516 | }; | |
6517 | ||
6518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetTip",kwnames,&obj0)) goto fail; | |
6519 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, | |
6520 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6521 | { | |
6522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6523 | result = (arg1)->GetTip(); | |
6524 | ||
6525 | wxPyEndAllowThreads(__tstate); | |
6526 | if (PyErr_Occurred()) SWIG_fail; | |
6527 | } | |
6528 | { | |
6529 | #if wxUSE_UNICODE | |
6530 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6531 | #else | |
6532 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6533 | #endif | |
6534 | } | |
6535 | return resultobj; | |
6536 | fail: | |
6537 | return NULL; | |
6538 | } | |
6539 | ||
6540 | ||
c32bde28 | 6541 | static PyObject *_wrap_TipProvider_GetCurrentTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6542 | PyObject *resultobj; |
6543 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6544 | size_t result; | |
6545 | PyObject * obj0 = 0 ; | |
6546 | char *kwnames[] = { | |
6547 | (char *) "self", NULL | |
6548 | }; | |
6549 | ||
6550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetCurrentTip",kwnames,&obj0)) goto fail; | |
6551 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, | |
6552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6553 | { | |
6554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6555 | result = (size_t)(arg1)->GetCurrentTip(); | |
6556 | ||
6557 | wxPyEndAllowThreads(__tstate); | |
6558 | if (PyErr_Occurred()) SWIG_fail; | |
6559 | } | |
c32bde28 | 6560 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
6561 | return resultobj; |
6562 | fail: | |
6563 | return NULL; | |
6564 | } | |
6565 | ||
6566 | ||
c32bde28 | 6567 | static PyObject *_wrap_TipProvider_PreprocessTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6568 | PyObject *resultobj; |
6569 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6570 | wxString *arg2 = 0 ; | |
6571 | wxString result; | |
ae8162c8 | 6572 | bool temp2 = false ; |
d55e5bfc RD |
6573 | PyObject * obj0 = 0 ; |
6574 | PyObject * obj1 = 0 ; | |
6575 | char *kwnames[] = { | |
6576 | (char *) "self",(char *) "tip", NULL | |
6577 | }; | |
6578 | ||
6579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipProvider_PreprocessTip",kwnames,&obj0,&obj1)) goto fail; | |
6580 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, | |
6581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6582 | { | |
6583 | arg2 = wxString_in_helper(obj1); | |
6584 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 6585 | temp2 = true; |
d55e5bfc RD |
6586 | } |
6587 | { | |
6588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6589 | result = (arg1)->PreprocessTip((wxString const &)*arg2); | |
6590 | ||
6591 | wxPyEndAllowThreads(__tstate); | |
6592 | if (PyErr_Occurred()) SWIG_fail; | |
6593 | } | |
6594 | { | |
6595 | #if wxUSE_UNICODE | |
6596 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6597 | #else | |
6598 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6599 | #endif | |
6600 | } | |
6601 | { | |
6602 | if (temp2) | |
6603 | delete arg2; | |
6604 | } | |
6605 | return resultobj; | |
6606 | fail: | |
6607 | { | |
6608 | if (temp2) | |
6609 | delete arg2; | |
6610 | } | |
6611 | return NULL; | |
6612 | } | |
6613 | ||
6614 | ||
c32bde28 | 6615 | static PyObject * TipProvider_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6616 | PyObject *obj; |
6617 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6618 | SWIG_TypeClientData(SWIGTYPE_p_wxTipProvider, obj); | |
6619 | Py_INCREF(obj); | |
6620 | return Py_BuildValue((char *)""); | |
6621 | } | |
c32bde28 | 6622 | static PyObject *_wrap_new_PyTipProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6623 | PyObject *resultobj; |
6624 | size_t arg1 ; | |
6625 | wxPyTipProvider *result; | |
6626 | PyObject * obj0 = 0 ; | |
6627 | char *kwnames[] = { | |
6628 | (char *) "currentTip", NULL | |
6629 | }; | |
6630 | ||
6631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PyTipProvider",kwnames,&obj0)) goto fail; | |
c32bde28 | 6632 | arg1 = (size_t)SWIG_As_unsigned_SS_long(obj0); |
d55e5bfc RD |
6633 | if (PyErr_Occurred()) SWIG_fail; |
6634 | { | |
6635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6636 | result = (wxPyTipProvider *)new wxPyTipProvider(arg1); | |
6637 | ||
6638 | wxPyEndAllowThreads(__tstate); | |
6639 | if (PyErr_Occurred()) SWIG_fail; | |
6640 | } | |
6641 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTipProvider, 1); | |
6642 | return resultobj; | |
6643 | fail: | |
6644 | return NULL; | |
6645 | } | |
6646 | ||
6647 | ||
c32bde28 | 6648 | static PyObject *_wrap_PyTipProvider__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6649 | PyObject *resultobj; |
6650 | wxPyTipProvider *arg1 = (wxPyTipProvider *) 0 ; | |
6651 | PyObject *arg2 = (PyObject *) 0 ; | |
6652 | PyObject *arg3 = (PyObject *) 0 ; | |
6653 | PyObject * obj0 = 0 ; | |
6654 | PyObject * obj1 = 0 ; | |
6655 | PyObject * obj2 = 0 ; | |
6656 | char *kwnames[] = { | |
6657 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
6658 | }; | |
6659 | ||
6660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTipProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6661 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTipProvider, | |
6662 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6663 | arg2 = obj1; | |
6664 | arg3 = obj2; | |
6665 | { | |
6666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6667 | (arg1)->_setCallbackInfo(arg2,arg3); | |
6668 | ||
6669 | wxPyEndAllowThreads(__tstate); | |
6670 | if (PyErr_Occurred()) SWIG_fail; | |
6671 | } | |
6672 | Py_INCREF(Py_None); resultobj = Py_None; | |
6673 | return resultobj; | |
6674 | fail: | |
6675 | return NULL; | |
6676 | } | |
6677 | ||
6678 | ||
c32bde28 | 6679 | static PyObject * PyTipProvider_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6680 | PyObject *obj; |
6681 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6682 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTipProvider, obj); | |
6683 | Py_INCREF(obj); | |
6684 | return Py_BuildValue((char *)""); | |
6685 | } | |
c32bde28 | 6686 | static PyObject *_wrap_ShowTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6687 | PyObject *resultobj; |
6688 | wxWindow *arg1 = (wxWindow *) 0 ; | |
6689 | wxTipProvider *arg2 = (wxTipProvider *) 0 ; | |
ae8162c8 | 6690 | bool arg3 = (bool) true ; |
d55e5bfc RD |
6691 | bool result; |
6692 | PyObject * obj0 = 0 ; | |
6693 | PyObject * obj1 = 0 ; | |
6694 | PyObject * obj2 = 0 ; | |
6695 | char *kwnames[] = { | |
6696 | (char *) "parent",(char *) "tipProvider",(char *) "showAtStartup", NULL | |
6697 | }; | |
6698 | ||
6699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ShowTip",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6700 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
6701 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6702 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTipProvider, | |
6703 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6704 | if (obj2) { | |
c32bde28 | 6705 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
6706 | if (PyErr_Occurred()) SWIG_fail; |
6707 | } | |
6708 | { | |
0439c23b | 6709 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6711 | result = (bool)wxShowTip(arg1,arg2,arg3); | |
6712 | ||
6713 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6714 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6715 | } |
6716 | { | |
6717 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6718 | } | |
6719 | return resultobj; | |
6720 | fail: | |
6721 | return NULL; | |
6722 | } | |
6723 | ||
6724 | ||
c32bde28 | 6725 | static PyObject *_wrap_CreateFileTipProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6726 | PyObject *resultobj; |
6727 | wxString *arg1 = 0 ; | |
6728 | size_t arg2 ; | |
6729 | wxTipProvider *result; | |
ae8162c8 | 6730 | bool temp1 = false ; |
d55e5bfc RD |
6731 | PyObject * obj0 = 0 ; |
6732 | PyObject * obj1 = 0 ; | |
6733 | char *kwnames[] = { | |
6734 | (char *) "filename",(char *) "currentTip", NULL | |
6735 | }; | |
6736 | ||
6737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CreateFileTipProvider",kwnames,&obj0,&obj1)) goto fail; | |
6738 | { | |
6739 | arg1 = wxString_in_helper(obj0); | |
6740 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 6741 | temp1 = true; |
d55e5bfc | 6742 | } |
c32bde28 | 6743 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
6744 | if (PyErr_Occurred()) SWIG_fail; |
6745 | { | |
0439c23b | 6746 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6748 | result = (wxTipProvider *)wxCreateFileTipProvider((wxString const &)*arg1,arg2); | |
6749 | ||
6750 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6751 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6752 | } |
6753 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTipProvider, 1); | |
6754 | { | |
6755 | if (temp1) | |
6756 | delete arg1; | |
6757 | } | |
6758 | return resultobj; | |
6759 | fail: | |
6760 | { | |
6761 | if (temp1) | |
6762 | delete arg1; | |
6763 | } | |
6764 | return NULL; | |
6765 | } | |
6766 | ||
6767 | ||
c32bde28 | 6768 | static PyObject *_wrap_new_Timer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6769 | PyObject *resultobj; |
6770 | wxEvtHandler *arg1 = (wxEvtHandler *) NULL ; | |
6771 | int arg2 = (int) -1 ; | |
6772 | wxPyTimer *result; | |
6773 | PyObject * obj0 = 0 ; | |
6774 | PyObject * obj1 = 0 ; | |
6775 | char *kwnames[] = { | |
6776 | (char *) "owner",(char *) "id", NULL | |
6777 | }; | |
6778 | ||
6779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Timer",kwnames,&obj0,&obj1)) goto fail; | |
6780 | if (obj0) { | |
6781 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
6782 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6783 | } | |
6784 | if (obj1) { | |
c32bde28 | 6785 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
6786 | if (PyErr_Occurred()) SWIG_fail; |
6787 | } | |
6788 | { | |
0439c23b | 6789 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6791 | result = (wxPyTimer *)new wxPyTimer(arg1,arg2); | |
6792 | ||
6793 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6794 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6795 | } |
6796 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTimer, 1); | |
6797 | return resultobj; | |
6798 | fail: | |
6799 | return NULL; | |
6800 | } | |
6801 | ||
6802 | ||
c32bde28 | 6803 | static PyObject *_wrap_delete_Timer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6804 | PyObject *resultobj; |
6805 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6806 | PyObject * obj0 = 0 ; | |
6807 | char *kwnames[] = { | |
6808 | (char *) "self", NULL | |
6809 | }; | |
6810 | ||
6811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Timer",kwnames,&obj0)) goto fail; | |
6812 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6813 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6814 | { | |
6815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6816 | delete arg1; | |
6817 | ||
6818 | wxPyEndAllowThreads(__tstate); | |
6819 | if (PyErr_Occurred()) SWIG_fail; | |
6820 | } | |
6821 | Py_INCREF(Py_None); resultobj = Py_None; | |
6822 | return resultobj; | |
6823 | fail: | |
6824 | return NULL; | |
6825 | } | |
6826 | ||
6827 | ||
c32bde28 | 6828 | static PyObject *_wrap_Timer__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6829 | PyObject *resultobj; |
6830 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6831 | PyObject *arg2 = (PyObject *) 0 ; | |
6832 | PyObject *arg3 = (PyObject *) 0 ; | |
6833 | int arg4 = (int) 1 ; | |
6834 | PyObject * obj0 = 0 ; | |
6835 | PyObject * obj1 = 0 ; | |
6836 | PyObject * obj2 = 0 ; | |
6837 | PyObject * obj3 = 0 ; | |
6838 | char *kwnames[] = { | |
6839 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
6840 | }; | |
6841 | ||
6842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Timer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
6843 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6844 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6845 | arg2 = obj1; | |
6846 | arg3 = obj2; | |
6847 | if (obj3) { | |
c32bde28 | 6848 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
6849 | if (PyErr_Occurred()) SWIG_fail; |
6850 | } | |
6851 | { | |
6852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6853 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
6854 | ||
6855 | wxPyEndAllowThreads(__tstate); | |
6856 | if (PyErr_Occurred()) SWIG_fail; | |
6857 | } | |
6858 | Py_INCREF(Py_None); resultobj = Py_None; | |
6859 | return resultobj; | |
6860 | fail: | |
6861 | return NULL; | |
6862 | } | |
6863 | ||
6864 | ||
c32bde28 | 6865 | static PyObject *_wrap_Timer_SetOwner(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6866 | PyObject *resultobj; |
6867 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6868 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
6869 | int arg3 = (int) -1 ; | |
6870 | PyObject * obj0 = 0 ; | |
6871 | PyObject * obj1 = 0 ; | |
6872 | PyObject * obj2 = 0 ; | |
6873 | char *kwnames[] = { | |
6874 | (char *) "self",(char *) "owner",(char *) "id", NULL | |
6875 | }; | |
6876 | ||
6877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Timer_SetOwner",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6878 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6880 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
6881 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6882 | if (obj2) { | |
c32bde28 | 6883 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
6884 | if (PyErr_Occurred()) SWIG_fail; |
6885 | } | |
6886 | { | |
6887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6888 | (arg1)->SetOwner(arg2,arg3); | |
6889 | ||
6890 | wxPyEndAllowThreads(__tstate); | |
6891 | if (PyErr_Occurred()) SWIG_fail; | |
6892 | } | |
6893 | Py_INCREF(Py_None); resultobj = Py_None; | |
6894 | return resultobj; | |
6895 | fail: | |
6896 | return NULL; | |
6897 | } | |
6898 | ||
6899 | ||
c32bde28 | 6900 | static PyObject *_wrap_Timer_GetOwner(PyObject *, PyObject *args, PyObject *kwargs) { |
1a6bba1e RD |
6901 | PyObject *resultobj; |
6902 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6903 | wxEvtHandler *result; | |
6904 | PyObject * obj0 = 0 ; | |
6905 | char *kwnames[] = { | |
6906 | (char *) "self", NULL | |
6907 | }; | |
6908 | ||
6909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetOwner",kwnames,&obj0)) goto fail; | |
6910 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6911 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6912 | { | |
6913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6914 | result = (wxEvtHandler *)(arg1)->GetOwner(); | |
6915 | ||
6916 | wxPyEndAllowThreads(__tstate); | |
6917 | if (PyErr_Occurred()) SWIG_fail; | |
6918 | } | |
6919 | { | |
412d302d | 6920 | resultobj = wxPyMake_wxObject(result, 0); |
1a6bba1e RD |
6921 | } |
6922 | return resultobj; | |
6923 | fail: | |
6924 | return NULL; | |
6925 | } | |
6926 | ||
6927 | ||
c32bde28 | 6928 | static PyObject *_wrap_Timer_Start(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6929 | PyObject *resultobj; |
6930 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6931 | int arg2 = (int) -1 ; | |
ae8162c8 | 6932 | bool arg3 = (bool) false ; |
d55e5bfc RD |
6933 | bool result; |
6934 | PyObject * obj0 = 0 ; | |
6935 | PyObject * obj1 = 0 ; | |
6936 | PyObject * obj2 = 0 ; | |
6937 | char *kwnames[] = { | |
6938 | (char *) "self",(char *) "milliseconds",(char *) "oneShot", NULL | |
6939 | }; | |
6940 | ||
6941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Timer_Start",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6942 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6943 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6944 | if (obj1) { | |
c32bde28 | 6945 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
6946 | if (PyErr_Occurred()) SWIG_fail; |
6947 | } | |
6948 | if (obj2) { | |
c32bde28 | 6949 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
6950 | if (PyErr_Occurred()) SWIG_fail; |
6951 | } | |
6952 | { | |
6953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6954 | result = (bool)(arg1)->Start(arg2,arg3); | |
6955 | ||
6956 | wxPyEndAllowThreads(__tstate); | |
6957 | if (PyErr_Occurred()) SWIG_fail; | |
6958 | } | |
6959 | { | |
6960 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6961 | } | |
6962 | return resultobj; | |
6963 | fail: | |
6964 | return NULL; | |
6965 | } | |
6966 | ||
6967 | ||
c32bde28 | 6968 | static PyObject *_wrap_Timer_Stop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6969 | PyObject *resultobj; |
6970 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6971 | PyObject * obj0 = 0 ; | |
6972 | char *kwnames[] = { | |
6973 | (char *) "self", NULL | |
6974 | }; | |
6975 | ||
6976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Stop",kwnames,&obj0)) goto fail; | |
6977 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6978 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6979 | { | |
6980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6981 | (arg1)->Stop(); | |
6982 | ||
6983 | wxPyEndAllowThreads(__tstate); | |
6984 | if (PyErr_Occurred()) SWIG_fail; | |
6985 | } | |
6986 | Py_INCREF(Py_None); resultobj = Py_None; | |
6987 | return resultobj; | |
6988 | fail: | |
6989 | return NULL; | |
6990 | } | |
6991 | ||
6992 | ||
c32bde28 | 6993 | static PyObject *_wrap_Timer_IsRunning(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6994 | PyObject *resultobj; |
6995 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6996 | bool result; | |
6997 | PyObject * obj0 = 0 ; | |
6998 | char *kwnames[] = { | |
6999 | (char *) "self", NULL | |
7000 | }; | |
7001 | ||
7002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsRunning",kwnames,&obj0)) goto fail; | |
7003 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
7004 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7005 | { | |
7006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7007 | result = (bool)((wxPyTimer const *)arg1)->IsRunning(); | |
7008 | ||
7009 | wxPyEndAllowThreads(__tstate); | |
7010 | if (PyErr_Occurred()) SWIG_fail; | |
7011 | } | |
7012 | { | |
7013 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7014 | } | |
7015 | return resultobj; | |
7016 | fail: | |
7017 | return NULL; | |
7018 | } | |
7019 | ||
7020 | ||
c32bde28 | 7021 | static PyObject *_wrap_Timer_GetInterval(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7022 | PyObject *resultobj; |
7023 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
7024 | int result; | |
7025 | PyObject * obj0 = 0 ; | |
7026 | char *kwnames[] = { | |
7027 | (char *) "self", NULL | |
7028 | }; | |
7029 | ||
7030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetInterval",kwnames,&obj0)) goto fail; | |
7031 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
7032 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7033 | { | |
7034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7035 | result = (int)((wxPyTimer const *)arg1)->GetInterval(); | |
7036 | ||
7037 | wxPyEndAllowThreads(__tstate); | |
7038 | if (PyErr_Occurred()) SWIG_fail; | |
7039 | } | |
c32bde28 | 7040 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
7041 | return resultobj; |
7042 | fail: | |
7043 | return NULL; | |
7044 | } | |
7045 | ||
7046 | ||
c32bde28 | 7047 | static PyObject *_wrap_Timer_IsOneShot(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7048 | PyObject *resultobj; |
7049 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
7050 | bool result; | |
7051 | PyObject * obj0 = 0 ; | |
7052 | char *kwnames[] = { | |
7053 | (char *) "self", NULL | |
7054 | }; | |
7055 | ||
7056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsOneShot",kwnames,&obj0)) goto fail; | |
7057 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
7058 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7059 | { | |
7060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7061 | result = (bool)((wxPyTimer const *)arg1)->IsOneShot(); | |
7062 | ||
7063 | wxPyEndAllowThreads(__tstate); | |
7064 | if (PyErr_Occurred()) SWIG_fail; | |
7065 | } | |
7066 | { | |
7067 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7068 | } | |
7069 | return resultobj; | |
7070 | fail: | |
7071 | return NULL; | |
7072 | } | |
7073 | ||
7074 | ||
c32bde28 | 7075 | static PyObject *_wrap_Timer_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7076 | PyObject *resultobj; |
7077 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
7078 | int result; | |
7079 | PyObject * obj0 = 0 ; | |
7080 | char *kwnames[] = { | |
7081 | (char *) "self", NULL | |
7082 | }; | |
7083 | ||
7084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetId",kwnames,&obj0)) goto fail; | |
7085 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
7086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7087 | { | |
7088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7089 | result = (int)((wxPyTimer const *)arg1)->GetId(); | |
7090 | ||
7091 | wxPyEndAllowThreads(__tstate); | |
7092 | if (PyErr_Occurred()) SWIG_fail; | |
7093 | } | |
c32bde28 | 7094 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
7095 | return resultobj; |
7096 | fail: | |
7097 | return NULL; | |
7098 | } | |
7099 | ||
7100 | ||
c32bde28 | 7101 | static PyObject * Timer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
7102 | PyObject *obj; |
7103 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7104 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTimer, obj); | |
7105 | Py_INCREF(obj); | |
7106 | return Py_BuildValue((char *)""); | |
7107 | } | |
c32bde28 | 7108 | static PyObject *_wrap_new_TimerEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7109 | PyObject *resultobj; |
7110 | int arg1 = (int) 0 ; | |
7111 | int arg2 = (int) 0 ; | |
7112 | wxTimerEvent *result; | |
7113 | PyObject * obj0 = 0 ; | |
7114 | PyObject * obj1 = 0 ; | |
7115 | char *kwnames[] = { | |
7116 | (char *) "timerid",(char *) "interval", NULL | |
7117 | }; | |
7118 | ||
7119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TimerEvent",kwnames,&obj0,&obj1)) goto fail; | |
7120 | if (obj0) { | |
c32bde28 | 7121 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
7122 | if (PyErr_Occurred()) SWIG_fail; |
7123 | } | |
7124 | if (obj1) { | |
c32bde28 | 7125 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
7126 | if (PyErr_Occurred()) SWIG_fail; |
7127 | } | |
7128 | { | |
7129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7130 | result = (wxTimerEvent *)new wxTimerEvent(arg1,arg2); | |
7131 | ||
7132 | wxPyEndAllowThreads(__tstate); | |
7133 | if (PyErr_Occurred()) SWIG_fail; | |
7134 | } | |
7135 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerEvent, 1); | |
7136 | return resultobj; | |
7137 | fail: | |
7138 | return NULL; | |
7139 | } | |
7140 | ||
7141 | ||
c32bde28 | 7142 | static PyObject *_wrap_TimerEvent_GetInterval(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7143 | PyObject *resultobj; |
7144 | wxTimerEvent *arg1 = (wxTimerEvent *) 0 ; | |
7145 | int result; | |
7146 | PyObject * obj0 = 0 ; | |
7147 | char *kwnames[] = { | |
7148 | (char *) "self", NULL | |
7149 | }; | |
7150 | ||
7151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimerEvent_GetInterval",kwnames,&obj0)) goto fail; | |
7152 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerEvent, | |
7153 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7154 | { | |
7155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7156 | result = (int)((wxTimerEvent const *)arg1)->GetInterval(); | |
7157 | ||
7158 | wxPyEndAllowThreads(__tstate); | |
7159 | if (PyErr_Occurred()) SWIG_fail; | |
7160 | } | |
c32bde28 | 7161 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
7162 | return resultobj; |
7163 | fail: | |
7164 | return NULL; | |
7165 | } | |
7166 | ||
7167 | ||
c32bde28 | 7168 | static PyObject * TimerEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
7169 | PyObject *obj; |
7170 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7171 | SWIG_TypeClientData(SWIGTYPE_p_wxTimerEvent, obj); | |
7172 | Py_INCREF(obj); | |
7173 | return Py_BuildValue((char *)""); | |
7174 | } | |
c32bde28 | 7175 | static PyObject *_wrap_new_TimerRunner__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
7176 | PyObject *resultobj; |
7177 | wxTimer *arg1 = 0 ; | |
7178 | wxTimerRunner *result; | |
7179 | PyObject * obj0 = 0 ; | |
7180 | ||
7181 | if(!PyArg_ParseTuple(args,(char *)"O:new_TimerRunner",&obj0)) goto fail; | |
7182 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer, | |
7183 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7184 | SWIG_fail; | |
7185 | if (arg1 == NULL) { | |
7186 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7187 | SWIG_fail; | |
7188 | } | |
7189 | { | |
0439c23b | 7190 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
7191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7192 | result = (wxTimerRunner *)new wxTimerRunner(*arg1); | |
7193 | ||
7194 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 7195 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
7196 | } |
7197 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1); | |
7198 | return resultobj; | |
7199 | fail: | |
7200 | return NULL; | |
7201 | } | |
7202 | ||
7203 | ||
c32bde28 | 7204 | static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
7205 | PyObject *resultobj; |
7206 | wxTimer *arg1 = 0 ; | |
7207 | int arg2 ; | |
ae8162c8 | 7208 | bool arg3 = (bool) false ; |
d55e5bfc RD |
7209 | wxTimerRunner *result; |
7210 | PyObject * obj0 = 0 ; | |
7211 | PyObject * obj1 = 0 ; | |
7212 | PyObject * obj2 = 0 ; | |
7213 | ||
7214 | if(!PyArg_ParseTuple(args,(char *)"OO|O:new_TimerRunner",&obj0,&obj1,&obj2)) goto fail; | |
7215 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer, | |
7216 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7217 | SWIG_fail; | |
7218 | if (arg1 == NULL) { | |
7219 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7220 | SWIG_fail; | |
7221 | } | |
c32bde28 | 7222 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
7223 | if (PyErr_Occurred()) SWIG_fail; |
7224 | if (obj2) { | |
c32bde28 | 7225 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
7226 | if (PyErr_Occurred()) SWIG_fail; |
7227 | } | |
7228 | { | |
0439c23b | 7229 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
7230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7231 | result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2,arg3); | |
7232 | ||
7233 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 7234 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
7235 | } |
7236 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1); | |
7237 | return resultobj; | |
7238 | fail: | |
7239 | return NULL; | |
7240 | } | |
7241 | ||
7242 | ||
7243 | static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) { | |
7244 | int argc; | |
7245 | PyObject *argv[4]; | |
7246 | int ii; | |
7247 | ||
7248 | argc = PyObject_Length(args); | |
7249 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
7250 | argv[ii] = PyTuple_GetItem(args,ii); | |
7251 | } | |
7252 | if (argc == 1) { | |
7253 | int _v; | |
7254 | { | |
7255 | void *ptr; | |
7256 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) { | |
7257 | _v = 0; | |
7258 | PyErr_Clear(); | |
7259 | } else { | |
7260 | _v = 1; | |
7261 | } | |
7262 | } | |
7263 | if (_v) { | |
7264 | return _wrap_new_TimerRunner__SWIG_0(self,args); | |
7265 | } | |
7266 | } | |
7267 | if ((argc >= 2) && (argc <= 3)) { | |
7268 | int _v; | |
7269 | { | |
7270 | void *ptr; | |
7271 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) { | |
7272 | _v = 0; | |
7273 | PyErr_Clear(); | |
7274 | } else { | |
7275 | _v = 1; | |
7276 | } | |
7277 | } | |
7278 | if (_v) { | |
c32bde28 | 7279 | _v = SWIG_Check_int(argv[1]); |
d55e5bfc RD |
7280 | if (_v) { |
7281 | if (argc <= 2) { | |
7282 | return _wrap_new_TimerRunner__SWIG_1(self,args); | |
7283 | } | |
c32bde28 | 7284 | _v = SWIG_Check_bool(argv[2]); |
d55e5bfc RD |
7285 | if (_v) { |
7286 | return _wrap_new_TimerRunner__SWIG_1(self,args); | |
7287 | } | |
7288 | } | |
7289 | } | |
7290 | } | |
7291 | ||
7292 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TimerRunner'"); | |
7293 | return NULL; | |
7294 | } | |
7295 | ||
7296 | ||
c32bde28 | 7297 | static PyObject *_wrap_delete_TimerRunner(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7298 | PyObject *resultobj; |
7299 | wxTimerRunner *arg1 = (wxTimerRunner *) 0 ; | |
7300 | PyObject * obj0 = 0 ; | |
7301 | char *kwnames[] = { | |
7302 | (char *) "self", NULL | |
7303 | }; | |
7304 | ||
7305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimerRunner",kwnames,&obj0)) goto fail; | |
7306 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner, | |
7307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7308 | { | |
7309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7310 | delete arg1; | |
7311 | ||
7312 | wxPyEndAllowThreads(__tstate); | |
7313 | if (PyErr_Occurred()) SWIG_fail; | |
7314 | } | |
7315 | Py_INCREF(Py_None); resultobj = Py_None; | |
7316 | return resultobj; | |
7317 | fail: | |
7318 | return NULL; | |
7319 | } | |
7320 | ||
7321 | ||
c32bde28 | 7322 | static PyObject *_wrap_TimerRunner_Start(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7323 | PyObject *resultobj; |
7324 | wxTimerRunner *arg1 = (wxTimerRunner *) 0 ; | |
7325 | int arg2 ; | |
ae8162c8 | 7326 | bool arg3 = (bool) false ; |
d55e5bfc RD |
7327 | PyObject * obj0 = 0 ; |
7328 | PyObject * obj1 = 0 ; | |
7329 | PyObject * obj2 = 0 ; | |
7330 | char *kwnames[] = { | |
7331 | (char *) "self",(char *) "milli",(char *) "oneShot", NULL | |
7332 | }; | |
7333 | ||
7334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TimerRunner_Start",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner, | |
7336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 7337 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
7338 | if (PyErr_Occurred()) SWIG_fail; |
7339 | if (obj2) { | |
c32bde28 | 7340 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
7341 | if (PyErr_Occurred()) SWIG_fail; |
7342 | } | |
7343 | { | |
7344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7345 | (arg1)->Start(arg2,arg3); | |
7346 | ||
7347 | wxPyEndAllowThreads(__tstate); | |
7348 | if (PyErr_Occurred()) SWIG_fail; | |
7349 | } | |
7350 | Py_INCREF(Py_None); resultobj = Py_None; | |
7351 | return resultobj; | |
7352 | fail: | |
7353 | return NULL; | |
7354 | } | |
7355 | ||
7356 | ||
c32bde28 | 7357 | static PyObject * TimerRunner_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
7358 | PyObject *obj; |
7359 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7360 | SWIG_TypeClientData(SWIGTYPE_p_wxTimerRunner, obj); | |
7361 | Py_INCREF(obj); | |
7362 | return Py_BuildValue((char *)""); | |
7363 | } | |
c32bde28 | 7364 | static PyObject *_wrap_new_Log(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7365 | PyObject *resultobj; |
7366 | wxLog *result; | |
7367 | char *kwnames[] = { | |
7368 | NULL | |
7369 | }; | |
7370 | ||
7371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Log",kwnames)) goto fail; | |
7372 | { | |
7373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7374 | result = (wxLog *)new wxLog(); | |
7375 | ||
7376 | wxPyEndAllowThreads(__tstate); | |
7377 | if (PyErr_Occurred()) SWIG_fail; | |
7378 | } | |
7379 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 1); | |
7380 | return resultobj; | |
7381 | fail: | |
7382 | return NULL; | |
7383 | } | |
7384 | ||
7385 | ||
c32bde28 | 7386 | static PyObject *_wrap_Log_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7387 | PyObject *resultobj; |
7388 | bool result; | |
7389 | char *kwnames[] = { | |
7390 | NULL | |
7391 | }; | |
7392 | ||
7393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_IsEnabled",kwnames)) goto fail; | |
7394 | { | |
7395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7396 | result = (bool)wxLog::IsEnabled(); | |
7397 | ||
7398 | wxPyEndAllowThreads(__tstate); | |
7399 | if (PyErr_Occurred()) SWIG_fail; | |
7400 | } | |
7401 | { | |
7402 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7403 | } | |
7404 | return resultobj; | |
7405 | fail: | |
7406 | return NULL; | |
7407 | } | |
7408 | ||
7409 | ||
c32bde28 | 7410 | static PyObject *_wrap_Log_EnableLogging(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 7411 | PyObject *resultobj; |
ae8162c8 | 7412 | bool arg1 = (bool) true ; |
d55e5bfc RD |
7413 | bool result; |
7414 | PyObject * obj0 = 0 ; | |
7415 | char *kwnames[] = { | |
7416 | (char *) "doIt", NULL | |
7417 | }; | |
7418 | ||
7419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_EnableLogging",kwnames,&obj0)) goto fail; | |
7420 | if (obj0) { | |
c32bde28 | 7421 | arg1 = (bool)SWIG_As_bool(obj0); |
d55e5bfc RD |
7422 | if (PyErr_Occurred()) SWIG_fail; |
7423 | } | |
7424 | { | |
7425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7426 | result = (bool)wxLog::EnableLogging(arg1); | |
7427 | ||
7428 | wxPyEndAllowThreads(__tstate); | |
7429 | if (PyErr_Occurred()) SWIG_fail; | |
7430 | } | |
7431 | { | |
7432 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7433 | } | |
7434 | return resultobj; | |
7435 | fail: | |
7436 | return NULL; | |
7437 | } | |
7438 | ||
7439 | ||
c32bde28 | 7440 | static PyObject *_wrap_Log_OnLog(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7441 | PyObject *resultobj; |
7442 | wxLogLevel arg1 ; | |
7443 | wxChar *arg2 = (wxChar *) 0 ; | |
7444 | time_t arg3 ; | |
7445 | PyObject * obj0 = 0 ; | |
7446 | PyObject * obj1 = 0 ; | |
7447 | PyObject * obj2 = 0 ; | |
7448 | char *kwnames[] = { | |
7449 | (char *) "level",(char *) "szString",(char *) "t", NULL | |
7450 | }; | |
7451 | ||
7452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Log_OnLog",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
c32bde28 | 7453 | arg1 = (wxLogLevel)SWIG_As_unsigned_SS_long(obj0); |
d55e5bfc RD |
7454 | if (PyErr_Occurred()) SWIG_fail; |
7455 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxChar, | |
7456 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 7457 | arg3 = (time_t)SWIG_As_unsigned_SS_int(obj2); |
d55e5bfc RD |
7458 | if (PyErr_Occurred()) SWIG_fail; |
7459 | { | |
7460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7461 | wxLog::OnLog(arg1,(wxChar const *)arg2,arg3); | |
7462 | ||
7463 | wxPyEndAllowThreads(__tstate); | |
7464 | if (PyErr_Occurred()) SWIG_fail; | |
7465 | } | |
7466 | Py_INCREF(Py_None); resultobj = Py_None; | |
7467 | return resultobj; | |
7468 | fail: | |
7469 | return NULL; | |
7470 | } | |
7471 | ||
7472 | ||
c32bde28 | 7473 | static PyObject *_wrap_Log_Flush(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7474 | PyObject *resultobj; |
7475 | wxLog *arg1 = (wxLog *) 0 ; | |
7476 | PyObject * obj0 = 0 ; | |
7477 | char *kwnames[] = { | |
7478 | (char *) "self", NULL | |
7479 | }; | |
7480 | ||
7481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Flush",kwnames,&obj0)) goto fail; | |
7482 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, | |
7483 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7484 | { | |
7485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7486 | (arg1)->Flush(); | |
7487 | ||
7488 | wxPyEndAllowThreads(__tstate); | |
7489 | if (PyErr_Occurred()) SWIG_fail; | |
7490 | } | |
7491 | Py_INCREF(Py_None); resultobj = Py_None; | |
7492 | return resultobj; | |
7493 | fail: | |
7494 | return NULL; | |
7495 | } | |
7496 | ||
7497 | ||
c32bde28 | 7498 | static PyObject *_wrap_Log_FlushActive(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7499 | PyObject *resultobj; |
7500 | char *kwnames[] = { | |
7501 | NULL | |
7502 | }; | |
7503 | ||
7504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_FlushActive",kwnames)) goto fail; | |
7505 | { | |
7506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7507 | wxLog::FlushActive(); | |
7508 | ||
7509 | wxPyEndAllowThreads(__tstate); | |
7510 | if (PyErr_Occurred()) SWIG_fail; | |
7511 | } | |
7512 | Py_INCREF(Py_None); resultobj = Py_None; | |
7513 | return resultobj; | |
7514 | fail: | |
7515 | return NULL; | |
7516 | } | |
7517 | ||
7518 | ||
c32bde28 | 7519 | static PyObject *_wrap_Log_GetActiveTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7520 | PyObject *resultobj; |
7521 | wxLog *result; | |
7522 | char *kwnames[] = { | |
7523 | NULL | |
7524 | }; | |
7525 | ||
7526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetActiveTarget",kwnames)) goto fail; | |
7527 | { | |
7528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7529 | result = (wxLog *)wxLog::GetActiveTarget(); | |
7530 | ||
7531 | wxPyEndAllowThreads(__tstate); | |
7532 | if (PyErr_Occurred()) SWIG_fail; | |
7533 | } | |
7534 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); | |
7535 | return resultobj; | |
7536 | fail: | |
7537 | return NULL; | |
7538 | } | |
7539 | ||
7540 | ||
c32bde28 | 7541 | static PyObject *_wrap_Log_SetActiveTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7542 | PyObject *resultobj; |
7543 | wxLog *arg1 = (wxLog *) 0 ; | |
7544 | wxLog *result; | |
7545 | PyObject * obj0 = 0 ; | |
7546 | char *kwnames[] = { | |
7547 | (char *) "pLogger", NULL | |
7548 | }; | |
7549 | ||
7550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) goto fail; | |
7551 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, | |
7552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7553 | { | |
7554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7555 | result = (wxLog *)wxLog::SetActiveTarget(arg1); | |
7556 | ||
7557 | wxPyEndAllowThreads(__tstate); | |
7558 | if (PyErr_Occurred()) SWIG_fail; | |
7559 | } | |
7560 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); | |
7561 | return resultobj; | |
7562 | fail: | |
7563 | return NULL; | |
7564 | } | |
7565 | ||
7566 | ||
c32bde28 | 7567 | static PyObject *_wrap_Log_Suspend(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7568 | PyObject *resultobj; |
7569 | char *kwnames[] = { | |
7570 | NULL | |
7571 | }; | |
7572 | ||
7573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Suspend",kwnames)) goto fail; | |
7574 | { | |
7575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7576 | wxLog::Suspend(); | |
7577 | ||
7578 | wxPyEndAllowThreads(__tstate); | |
7579 | if (PyErr_Occurred()) SWIG_fail; | |
7580 | } | |
7581 | Py_INCREF(Py_None); resultobj = Py_None; | |
7582 | return resultobj; | |
7583 | fail: | |
7584 | return NULL; | |
7585 | } | |
7586 | ||
7587 | ||
c32bde28 | 7588 | static PyObject *_wrap_Log_Resume(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7589 | PyObject *resultobj; |
7590 | char *kwnames[] = { | |
7591 | NULL | |
7592 | }; | |
7593 | ||
7594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Resume",kwnames)) goto fail; | |
7595 | { | |
7596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7597 | wxLog::Resume(); | |
7598 | ||
7599 | wxPyEndAllowThreads(__tstate); | |
7600 | if (PyErr_Occurred()) SWIG_fail; | |
7601 | } | |
7602 | Py_INCREF(Py_None); resultobj = Py_None; | |
7603 | return resultobj; | |
7604 | fail: | |
7605 | return NULL; | |
7606 | } | |
7607 | ||
7608 | ||
c32bde28 | 7609 | static PyObject *_wrap_Log_SetVerbose(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 7610 | PyObject *resultobj; |
ae8162c8 | 7611 | bool arg1 = (bool) true ; |
d55e5bfc RD |
7612 | PyObject * obj0 = 0 ; |
7613 | char *kwnames[] = { | |
7614 | (char *) "bVerbose", NULL | |
7615 | }; | |
7616 | ||
7617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetVerbose",kwnames,&obj0)) goto fail; | |
7618 | if (obj0) { | |
c32bde28 | 7619 | arg1 = (bool)SWIG_As_bool(obj0); |
d55e5bfc RD |
7620 | if (PyErr_Occurred()) SWIG_fail; |
7621 | } | |
7622 | { | |
7623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7624 | wxLog::SetVerbose(arg1); | |
7625 | ||
7626 | wxPyEndAllowThreads(__tstate); | |
7627 | if (PyErr_Occurred()) SWIG_fail; | |
7628 | } | |
7629 | Py_INCREF(Py_None); resultobj = Py_None; | |
7630 | return resultobj; | |
7631 | fail: | |
7632 | return NULL; | |
7633 | } | |
7634 | ||
7635 | ||
c32bde28 | 7636 | static PyObject *_wrap_Log_SetLogLevel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7637 | PyObject *resultobj; |
7638 | wxLogLevel arg1 ; | |
7639 | PyObject * obj0 = 0 ; | |
7640 | char *kwnames[] = { | |
7641 | (char *) "logLevel", NULL | |
7642 | }; | |
7643 | ||
7644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetLogLevel",kwnames,&obj0)) goto fail; | |
c32bde28 | 7645 | arg1 = (wxLogLevel)SWIG_As_unsigned_SS_long(obj0); |
d55e5bfc RD |
7646 | if (PyErr_Occurred()) SWIG_fail; |
7647 | { | |
7648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7649 | wxLog::SetLogLevel(arg1); | |
7650 | ||
7651 | wxPyEndAllowThreads(__tstate); | |
7652 | if (PyErr_Occurred()) SWIG_fail; | |
7653 | } | |
7654 | Py_INCREF(Py_None); resultobj = Py_None; | |
7655 | return resultobj; | |
7656 | fail: | |
7657 | return NULL; | |
7658 | } | |
7659 | ||
7660 | ||
c32bde28 | 7661 | static PyObject *_wrap_Log_DontCreateOnDemand(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7662 | PyObject *resultobj; |
7663 | char *kwnames[] = { | |
7664 | NULL | |
7665 | }; | |
7666 | ||
7667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_DontCreateOnDemand",kwnames)) goto fail; | |
7668 | { | |
7669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7670 | wxLog::DontCreateOnDemand(); | |
7671 | ||
7672 | wxPyEndAllowThreads(__tstate); | |
7673 | if (PyErr_Occurred()) SWIG_fail; | |
7674 | } | |
7675 | Py_INCREF(Py_None); resultobj = Py_None; | |
7676 | return resultobj; | |
7677 | fail: | |
7678 | return NULL; | |
7679 | } | |
7680 | ||
7681 | ||
c32bde28 | 7682 | static PyObject *_wrap_Log_SetTraceMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7683 | PyObject *resultobj; |
7684 | wxTraceMask arg1 ; | |
7685 | PyObject * obj0 = 0 ; | |
7686 | char *kwnames[] = { | |
7687 | (char *) "ulMask", NULL | |
7688 | }; | |
7689 | ||
7690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTraceMask",kwnames,&obj0)) goto fail; | |
c32bde28 | 7691 | arg1 = (wxTraceMask)SWIG_As_unsigned_SS_long(obj0); |
d55e5bfc RD |
7692 | if (PyErr_Occurred()) SWIG_fail; |
7693 | { | |
7694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7695 | wxLog::SetTraceMask(arg1); | |
7696 | ||
7697 | wxPyEndAllowThreads(__tstate); | |
7698 | if (PyErr_Occurred()) SWIG_fail; | |
7699 | } | |
7700 | Py_INCREF(Py_None); resultobj = Py_None; | |
7701 | return resultobj; | |
7702 | fail: | |
7703 | return NULL; | |
7704 | } | |
7705 | ||
7706 | ||
c32bde28 | 7707 | static PyObject *_wrap_Log_AddTraceMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7708 | PyObject *resultobj; |
7709 | wxString *arg1 = 0 ; | |
ae8162c8 | 7710 | bool temp1 = false ; |
d55e5bfc RD |
7711 | PyObject * obj0 = 0 ; |
7712 | char *kwnames[] = { | |
7713 | (char *) "str", NULL | |
7714 | }; | |
7715 | ||
7716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_AddTraceMask",kwnames,&obj0)) goto fail; | |
7717 | { | |
7718 | arg1 = wxString_in_helper(obj0); | |
7719 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 7720 | temp1 = true; |
d55e5bfc RD |
7721 | } |
7722 | { | |
7723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7724 | wxLog::AddTraceMask((wxString const &)*arg1); | |
7725 | ||
7726 | wxPyEndAllowThreads(__tstate); | |
7727 | if (PyErr_Occurred()) SWIG_fail; | |
7728 | } | |
7729 | Py_INCREF(Py_None); resultobj = Py_None; | |
7730 | { | |
7731 | if (temp1) | |
7732 | delete arg1; | |
7733 | } | |
7734 | return resultobj; | |
7735 | fail: | |
7736 | { | |
7737 | if (temp1) | |
7738 | delete arg1; | |
7739 | } | |
7740 | return NULL; | |
7741 | } | |
7742 | ||
7743 | ||
c32bde28 | 7744 | static PyObject *_wrap_Log_RemoveTraceMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7745 | PyObject *resultobj; |
7746 | wxString *arg1 = 0 ; | |
ae8162c8 | 7747 | bool temp1 = false ; |
d55e5bfc RD |
7748 | PyObject * obj0 = 0 ; |
7749 | char *kwnames[] = { | |
7750 | (char *) "str", NULL | |
7751 | }; | |
7752 | ||
7753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_RemoveTraceMask",kwnames,&obj0)) goto fail; | |
7754 | { | |
7755 | arg1 = wxString_in_helper(obj0); | |
7756 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 7757 | temp1 = true; |
d55e5bfc RD |
7758 | } |
7759 | { | |
7760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7761 | wxLog::RemoveTraceMask((wxString const &)*arg1); | |
7762 | ||
7763 | wxPyEndAllowThreads(__tstate); | |
7764 | if (PyErr_Occurred()) SWIG_fail; | |
7765 | } | |
7766 | Py_INCREF(Py_None); resultobj = Py_None; | |
7767 | { | |
7768 | if (temp1) | |
7769 | delete arg1; | |
7770 | } | |
7771 | return resultobj; | |
7772 | fail: | |
7773 | { | |
7774 | if (temp1) | |
7775 | delete arg1; | |
7776 | } | |
7777 | return NULL; | |
7778 | } | |
7779 | ||
7780 | ||
c32bde28 | 7781 | static PyObject *_wrap_Log_ClearTraceMasks(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7782 | PyObject *resultobj; |
7783 | char *kwnames[] = { | |
7784 | NULL | |
7785 | }; | |
7786 | ||
7787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_ClearTraceMasks",kwnames)) goto fail; | |
7788 | { | |
7789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7790 | wxLog::ClearTraceMasks(); | |
7791 | ||
7792 | wxPyEndAllowThreads(__tstate); | |
7793 | if (PyErr_Occurred()) SWIG_fail; | |
7794 | } | |
7795 | Py_INCREF(Py_None); resultobj = Py_None; | |
7796 | return resultobj; | |
7797 | fail: | |
7798 | return NULL; | |
7799 | } | |
7800 | ||
7801 | ||
c32bde28 | 7802 | static PyObject *_wrap_Log_GetTraceMasks(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7803 | PyObject *resultobj; |
7804 | wxArrayString *result; | |
7805 | char *kwnames[] = { | |
7806 | NULL | |
7807 | }; | |
7808 | ||
7809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMasks",kwnames)) goto fail; | |
7810 | { | |
7811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7812 | { | |
7813 | wxArrayString const &_result_ref = wxLog::GetTraceMasks(); | |
7814 | result = (wxArrayString *) &_result_ref; | |
7815 | } | |
7816 | ||
7817 | wxPyEndAllowThreads(__tstate); | |
7818 | if (PyErr_Occurred()) SWIG_fail; | |
7819 | } | |
7820 | { | |
7821 | resultobj = wxArrayString2PyList_helper(*result); | |
7822 | } | |
7823 | return resultobj; | |
7824 | fail: | |
7825 | return NULL; | |
7826 | } | |
7827 | ||
7828 | ||
c32bde28 | 7829 | static PyObject *_wrap_Log_SetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7830 | PyObject *resultobj; |
7831 | wxChar *arg1 = (wxChar *) 0 ; | |
7832 | PyObject * obj0 = 0 ; | |
7833 | char *kwnames[] = { | |
7834 | (char *) "ts", NULL | |
7835 | }; | |
7836 | ||
7837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTimestamp",kwnames,&obj0)) goto fail; | |
7838 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar, | |
7839 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7840 | { | |
7841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7842 | wxLog::SetTimestamp((wxChar const *)arg1); | |
7843 | ||
7844 | wxPyEndAllowThreads(__tstate); | |
7845 | if (PyErr_Occurred()) SWIG_fail; | |
7846 | } | |
7847 | Py_INCREF(Py_None); resultobj = Py_None; | |
7848 | return resultobj; | |
7849 | fail: | |
7850 | return NULL; | |
7851 | } | |
7852 | ||
7853 | ||
c32bde28 | 7854 | static PyObject *_wrap_Log_GetVerbose(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7855 | PyObject *resultobj; |
7856 | bool result; | |
7857 | char *kwnames[] = { | |
7858 | NULL | |
7859 | }; | |
7860 | ||
7861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetVerbose",kwnames)) goto fail; | |
7862 | { | |
7863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7864 | result = (bool)wxLog::GetVerbose(); | |
7865 | ||
7866 | wxPyEndAllowThreads(__tstate); | |
7867 | if (PyErr_Occurred()) SWIG_fail; | |
7868 | } | |
7869 | { | |
7870 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7871 | } | |
7872 | return resultobj; | |
7873 | fail: | |
7874 | return NULL; | |
7875 | } | |
7876 | ||
7877 | ||
c32bde28 | 7878 | static PyObject *_wrap_Log_GetTraceMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7879 | PyObject *resultobj; |
7880 | wxTraceMask result; | |
7881 | char *kwnames[] = { | |
7882 | NULL | |
7883 | }; | |
7884 | ||
7885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMask",kwnames)) goto fail; | |
7886 | { | |
7887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7888 | result = (wxTraceMask)wxLog::GetTraceMask(); | |
7889 | ||
7890 | wxPyEndAllowThreads(__tstate); | |
7891 | if (PyErr_Occurred()) SWIG_fail; | |
7892 | } | |
c32bde28 | 7893 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
7894 | return resultobj; |
7895 | fail: | |
7896 | return NULL; | |
7897 | } | |
7898 | ||
7899 | ||
c32bde28 | 7900 | static PyObject *_wrap_Log_IsAllowedTraceMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7901 | PyObject *resultobj; |
7902 | wxChar *arg1 = (wxChar *) 0 ; | |
7903 | bool result; | |
7904 | PyObject * obj0 = 0 ; | |
7905 | char *kwnames[] = { | |
7906 | (char *) "mask", NULL | |
7907 | }; | |
7908 | ||
7909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_IsAllowedTraceMask",kwnames,&obj0)) goto fail; | |
7910 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar, | |
7911 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7912 | { | |
7913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7914 | result = (bool)wxLog::IsAllowedTraceMask((wxChar const *)arg1); | |
7915 | ||
7916 | wxPyEndAllowThreads(__tstate); | |
7917 | if (PyErr_Occurred()) SWIG_fail; | |
7918 | } | |
7919 | { | |
7920 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7921 | } | |
7922 | return resultobj; | |
7923 | fail: | |
7924 | return NULL; | |
7925 | } | |
7926 | ||
7927 | ||
c32bde28 | 7928 | static PyObject *_wrap_Log_GetLogLevel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7929 | PyObject *resultobj; |
7930 | wxLogLevel result; | |
7931 | char *kwnames[] = { | |
7932 | NULL | |
7933 | }; | |
7934 | ||
7935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetLogLevel",kwnames)) goto fail; | |
7936 | { | |
7937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7938 | result = (wxLogLevel)wxLog::GetLogLevel(); | |
7939 | ||
7940 | wxPyEndAllowThreads(__tstate); | |
7941 | if (PyErr_Occurred()) SWIG_fail; | |
7942 | } | |
c32bde28 | 7943 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
7944 | return resultobj; |
7945 | fail: | |
7946 | return NULL; | |
7947 | } | |
7948 | ||
7949 | ||
c32bde28 | 7950 | static PyObject *_wrap_Log_GetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7951 | PyObject *resultobj; |
7952 | wxChar *result; | |
7953 | char *kwnames[] = { | |
7954 | NULL | |
7955 | }; | |
7956 | ||
7957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTimestamp",kwnames)) goto fail; | |
7958 | { | |
7959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7960 | result = (wxChar *)wxLog::GetTimestamp(); | |
7961 | ||
7962 | wxPyEndAllowThreads(__tstate); | |
7963 | if (PyErr_Occurred()) SWIG_fail; | |
7964 | } | |
7965 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChar, 0); | |
7966 | return resultobj; | |
7967 | fail: | |
7968 | return NULL; | |
7969 | } | |
7970 | ||
7971 | ||
c32bde28 | 7972 | static PyObject *_wrap_Log_TimeStamp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7973 | PyObject *resultobj; |
7974 | wxString result; | |
7975 | char *kwnames[] = { | |
7976 | NULL | |
7977 | }; | |
7978 | ||
7979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_TimeStamp",kwnames)) goto fail; | |
7980 | { | |
7981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7982 | result = Log_TimeStamp(); | |
7983 | ||
7984 | wxPyEndAllowThreads(__tstate); | |
7985 | if (PyErr_Occurred()) SWIG_fail; | |
7986 | } | |
7987 | { | |
7988 | #if wxUSE_UNICODE | |
7989 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7990 | #else | |
7991 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7992 | #endif | |
7993 | } | |
7994 | return resultobj; | |
7995 | fail: | |
7996 | return NULL; | |
7997 | } | |
7998 | ||
7999 | ||
c32bde28 | 8000 | static PyObject *_wrap_Log_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8001 | PyObject *resultobj; |
8002 | wxLog *arg1 = (wxLog *) 0 ; | |
8003 | PyObject * obj0 = 0 ; | |
8004 | char *kwnames[] = { | |
8005 | (char *) "self", NULL | |
8006 | }; | |
8007 | ||
8008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Destroy",kwnames,&obj0)) goto fail; | |
8009 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, | |
8010 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8011 | { | |
8012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8013 | wxLog_Destroy(arg1); | |
8014 | ||
8015 | wxPyEndAllowThreads(__tstate); | |
8016 | if (PyErr_Occurred()) SWIG_fail; | |
8017 | } | |
8018 | Py_INCREF(Py_None); resultobj = Py_None; | |
8019 | return resultobj; | |
8020 | fail: | |
8021 | return NULL; | |
8022 | } | |
8023 | ||
8024 | ||
c32bde28 | 8025 | static PyObject * Log_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8026 | PyObject *obj; |
8027 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8028 | SWIG_TypeClientData(SWIGTYPE_p_wxLog, obj); | |
8029 | Py_INCREF(obj); | |
8030 | return Py_BuildValue((char *)""); | |
8031 | } | |
c32bde28 | 8032 | static PyObject *_wrap_new_LogStderr(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8033 | PyObject *resultobj; |
8034 | wxLogStderr *result; | |
8035 | char *kwnames[] = { | |
8036 | NULL | |
8037 | }; | |
8038 | ||
8039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogStderr",kwnames)) goto fail; | |
8040 | { | |
8041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8042 | result = (wxLogStderr *)new wxLogStderr(); | |
8043 | ||
8044 | wxPyEndAllowThreads(__tstate); | |
8045 | if (PyErr_Occurred()) SWIG_fail; | |
8046 | } | |
8047 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogStderr, 1); | |
8048 | return resultobj; | |
8049 | fail: | |
8050 | return NULL; | |
8051 | } | |
8052 | ||
8053 | ||
c32bde28 | 8054 | static PyObject * LogStderr_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8055 | PyObject *obj; |
8056 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8057 | SWIG_TypeClientData(SWIGTYPE_p_wxLogStderr, obj); | |
8058 | Py_INCREF(obj); | |
8059 | return Py_BuildValue((char *)""); | |
8060 | } | |
c32bde28 | 8061 | static PyObject *_wrap_new_LogTextCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8062 | PyObject *resultobj; |
8063 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8064 | wxLogTextCtrl *result; | |
8065 | PyObject * obj0 = 0 ; | |
8066 | char *kwnames[] = { | |
8067 | (char *) "pTextCtrl", NULL | |
8068 | }; | |
8069 | ||
8070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogTextCtrl",kwnames,&obj0)) goto fail; | |
8071 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8072 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8073 | { | |
8074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8075 | result = (wxLogTextCtrl *)new wxLogTextCtrl(arg1); | |
8076 | ||
8077 | wxPyEndAllowThreads(__tstate); | |
8078 | if (PyErr_Occurred()) SWIG_fail; | |
8079 | } | |
8080 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogTextCtrl, 1); | |
8081 | return resultobj; | |
8082 | fail: | |
8083 | return NULL; | |
8084 | } | |
8085 | ||
8086 | ||
c32bde28 | 8087 | static PyObject * LogTextCtrl_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8088 | PyObject *obj; |
8089 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8090 | SWIG_TypeClientData(SWIGTYPE_p_wxLogTextCtrl, obj); | |
8091 | Py_INCREF(obj); | |
8092 | return Py_BuildValue((char *)""); | |
8093 | } | |
c32bde28 | 8094 | static PyObject *_wrap_new_LogGui(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8095 | PyObject *resultobj; |
8096 | wxLogGui *result; | |
8097 | char *kwnames[] = { | |
8098 | NULL | |
8099 | }; | |
8100 | ||
8101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogGui",kwnames)) goto fail; | |
8102 | { | |
8103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8104 | result = (wxLogGui *)new wxLogGui(); | |
8105 | ||
8106 | wxPyEndAllowThreads(__tstate); | |
8107 | if (PyErr_Occurred()) SWIG_fail; | |
8108 | } | |
8109 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogGui, 1); | |
8110 | return resultobj; | |
8111 | fail: | |
8112 | return NULL; | |
8113 | } | |
8114 | ||
8115 | ||
c32bde28 | 8116 | static PyObject * LogGui_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8117 | PyObject *obj; |
8118 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8119 | SWIG_TypeClientData(SWIGTYPE_p_wxLogGui, obj); | |
8120 | Py_INCREF(obj); | |
8121 | return Py_BuildValue((char *)""); | |
8122 | } | |
c32bde28 | 8123 | static PyObject *_wrap_new_LogWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8124 | PyObject *resultobj; |
8125 | wxFrame *arg1 = (wxFrame *) 0 ; | |
8126 | wxString *arg2 = 0 ; | |
ae8162c8 RD |
8127 | bool arg3 = (bool) true ; |
8128 | bool arg4 = (bool) true ; | |
d55e5bfc | 8129 | wxLogWindow *result; |
ae8162c8 | 8130 | bool temp2 = false ; |
d55e5bfc RD |
8131 | PyObject * obj0 = 0 ; |
8132 | PyObject * obj1 = 0 ; | |
8133 | PyObject * obj2 = 0 ; | |
8134 | PyObject * obj3 = 0 ; | |
8135 | char *kwnames[] = { | |
8136 | (char *) "pParent",(char *) "szTitle",(char *) "bShow",(char *) "bPassToOld", NULL | |
8137 | }; | |
8138 | ||
8139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_LogWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
8140 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
8141 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8142 | { | |
8143 | arg2 = wxString_in_helper(obj1); | |
8144 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8145 | temp2 = true; |
d55e5bfc RD |
8146 | } |
8147 | if (obj2) { | |
c32bde28 | 8148 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
8149 | if (PyErr_Occurred()) SWIG_fail; |
8150 | } | |
8151 | if (obj3) { | |
c32bde28 | 8152 | arg4 = (bool)SWIG_As_bool(obj3); |
d55e5bfc RD |
8153 | if (PyErr_Occurred()) SWIG_fail; |
8154 | } | |
8155 | { | |
8156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8157 | result = (wxLogWindow *)new wxLogWindow(arg1,(wxString const &)*arg2,arg3,arg4); | |
8158 | ||
8159 | wxPyEndAllowThreads(__tstate); | |
8160 | if (PyErr_Occurred()) SWIG_fail; | |
8161 | } | |
8162 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogWindow, 1); | |
8163 | { | |
8164 | if (temp2) | |
8165 | delete arg2; | |
8166 | } | |
8167 | return resultobj; | |
8168 | fail: | |
8169 | { | |
8170 | if (temp2) | |
8171 | delete arg2; | |
8172 | } | |
8173 | return NULL; | |
8174 | } | |
8175 | ||
8176 | ||
c32bde28 | 8177 | static PyObject *_wrap_LogWindow_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8178 | PyObject *resultobj; |
8179 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
ae8162c8 | 8180 | bool arg2 = (bool) true ; |
d55e5bfc RD |
8181 | PyObject * obj0 = 0 ; |
8182 | PyObject * obj1 = 0 ; | |
8183 | char *kwnames[] = { | |
8184 | (char *) "self",(char *) "bShow", NULL | |
8185 | }; | |
8186 | ||
8187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:LogWindow_Show",kwnames,&obj0,&obj1)) goto fail; | |
8188 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, | |
8189 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8190 | if (obj1) { | |
c32bde28 | 8191 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
8192 | if (PyErr_Occurred()) SWIG_fail; |
8193 | } | |
8194 | { | |
8195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8196 | (arg1)->Show(arg2); | |
8197 | ||
8198 | wxPyEndAllowThreads(__tstate); | |
8199 | if (PyErr_Occurred()) SWIG_fail; | |
8200 | } | |
8201 | Py_INCREF(Py_None); resultobj = Py_None; | |
8202 | return resultobj; | |
8203 | fail: | |
8204 | return NULL; | |
8205 | } | |
8206 | ||
8207 | ||
c32bde28 | 8208 | static PyObject *_wrap_LogWindow_GetFrame(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8209 | PyObject *resultobj; |
8210 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
8211 | wxFrame *result; | |
8212 | PyObject * obj0 = 0 ; | |
8213 | char *kwnames[] = { | |
8214 | (char *) "self", NULL | |
8215 | }; | |
8216 | ||
8217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetFrame",kwnames,&obj0)) goto fail; | |
8218 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, | |
8219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8220 | { | |
8221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8222 | result = (wxFrame *)((wxLogWindow const *)arg1)->GetFrame(); | |
8223 | ||
8224 | wxPyEndAllowThreads(__tstate); | |
8225 | if (PyErr_Occurred()) SWIG_fail; | |
8226 | } | |
8227 | { | |
412d302d | 8228 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
8229 | } |
8230 | return resultobj; | |
8231 | fail: | |
8232 | return NULL; | |
8233 | } | |
8234 | ||
8235 | ||
c32bde28 | 8236 | static PyObject *_wrap_LogWindow_GetOldLog(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8237 | PyObject *resultobj; |
8238 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
8239 | wxLog *result; | |
8240 | PyObject * obj0 = 0 ; | |
8241 | char *kwnames[] = { | |
8242 | (char *) "self", NULL | |
8243 | }; | |
8244 | ||
8245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetOldLog",kwnames,&obj0)) goto fail; | |
8246 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, | |
8247 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8248 | { | |
8249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8250 | result = (wxLog *)((wxLogWindow const *)arg1)->GetOldLog(); | |
8251 | ||
8252 | wxPyEndAllowThreads(__tstate); | |
8253 | if (PyErr_Occurred()) SWIG_fail; | |
8254 | } | |
8255 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); | |
8256 | return resultobj; | |
8257 | fail: | |
8258 | return NULL; | |
8259 | } | |
8260 | ||
8261 | ||
c32bde28 | 8262 | static PyObject *_wrap_LogWindow_IsPassingMessages(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8263 | PyObject *resultobj; |
8264 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
8265 | bool result; | |
8266 | PyObject * obj0 = 0 ; | |
8267 | char *kwnames[] = { | |
8268 | (char *) "self", NULL | |
8269 | }; | |
8270 | ||
8271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_IsPassingMessages",kwnames,&obj0)) goto fail; | |
8272 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, | |
8273 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8274 | { | |
8275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8276 | result = (bool)((wxLogWindow const *)arg1)->IsPassingMessages(); | |
8277 | ||
8278 | wxPyEndAllowThreads(__tstate); | |
8279 | if (PyErr_Occurred()) SWIG_fail; | |
8280 | } | |
8281 | { | |
8282 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8283 | } | |
8284 | return resultobj; | |
8285 | fail: | |
8286 | return NULL; | |
8287 | } | |
8288 | ||
8289 | ||
c32bde28 | 8290 | static PyObject *_wrap_LogWindow_PassMessages(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8291 | PyObject *resultobj; |
8292 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
8293 | bool arg2 ; | |
8294 | PyObject * obj0 = 0 ; | |
8295 | PyObject * obj1 = 0 ; | |
8296 | char *kwnames[] = { | |
8297 | (char *) "self",(char *) "bDoPass", NULL | |
8298 | }; | |
8299 | ||
8300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogWindow_PassMessages",kwnames,&obj0,&obj1)) goto fail; | |
8301 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, | |
8302 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 8303 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
8304 | if (PyErr_Occurred()) SWIG_fail; |
8305 | { | |
8306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8307 | (arg1)->PassMessages(arg2); | |
8308 | ||
8309 | wxPyEndAllowThreads(__tstate); | |
8310 | if (PyErr_Occurred()) SWIG_fail; | |
8311 | } | |
8312 | Py_INCREF(Py_None); resultobj = Py_None; | |
8313 | return resultobj; | |
8314 | fail: | |
8315 | return NULL; | |
8316 | } | |
8317 | ||
8318 | ||
c32bde28 | 8319 | static PyObject * LogWindow_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8320 | PyObject *obj; |
8321 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8322 | SWIG_TypeClientData(SWIGTYPE_p_wxLogWindow, obj); | |
8323 | Py_INCREF(obj); | |
8324 | return Py_BuildValue((char *)""); | |
8325 | } | |
c32bde28 | 8326 | static PyObject *_wrap_new_LogChain(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8327 | PyObject *resultobj; |
8328 | wxLog *arg1 = (wxLog *) 0 ; | |
8329 | wxLogChain *result; | |
8330 | PyObject * obj0 = 0 ; | |
8331 | char *kwnames[] = { | |
8332 | (char *) "logger", NULL | |
8333 | }; | |
8334 | ||
8335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogChain",kwnames,&obj0)) goto fail; | |
8336 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, | |
8337 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8338 | { | |
8339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8340 | result = (wxLogChain *)new wxLogChain(arg1); | |
8341 | ||
8342 | wxPyEndAllowThreads(__tstate); | |
8343 | if (PyErr_Occurred()) SWIG_fail; | |
8344 | } | |
8345 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogChain, 1); | |
8346 | return resultobj; | |
8347 | fail: | |
8348 | return NULL; | |
8349 | } | |
8350 | ||
8351 | ||
c32bde28 | 8352 | static PyObject *_wrap_LogChain_SetLog(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8353 | PyObject *resultobj; |
8354 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
8355 | wxLog *arg2 = (wxLog *) 0 ; | |
8356 | PyObject * obj0 = 0 ; | |
8357 | PyObject * obj1 = 0 ; | |
8358 | char *kwnames[] = { | |
8359 | (char *) "self",(char *) "logger", NULL | |
8360 | }; | |
8361 | ||
8362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_SetLog",kwnames,&obj0,&obj1)) goto fail; | |
8363 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, | |
8364 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8365 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLog, | |
8366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8367 | { | |
8368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8369 | (arg1)->SetLog(arg2); | |
8370 | ||
8371 | wxPyEndAllowThreads(__tstate); | |
8372 | if (PyErr_Occurred()) SWIG_fail; | |
8373 | } | |
8374 | Py_INCREF(Py_None); resultobj = Py_None; | |
8375 | return resultobj; | |
8376 | fail: | |
8377 | return NULL; | |
8378 | } | |
8379 | ||
8380 | ||
c32bde28 | 8381 | static PyObject *_wrap_LogChain_PassMessages(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8382 | PyObject *resultobj; |
8383 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
8384 | bool arg2 ; | |
8385 | PyObject * obj0 = 0 ; | |
8386 | PyObject * obj1 = 0 ; | |
8387 | char *kwnames[] = { | |
8388 | (char *) "self",(char *) "bDoPass", NULL | |
8389 | }; | |
8390 | ||
8391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_PassMessages",kwnames,&obj0,&obj1)) goto fail; | |
8392 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, | |
8393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 8394 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
8395 | if (PyErr_Occurred()) SWIG_fail; |
8396 | { | |
8397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8398 | (arg1)->PassMessages(arg2); | |
8399 | ||
8400 | wxPyEndAllowThreads(__tstate); | |
8401 | if (PyErr_Occurred()) SWIG_fail; | |
8402 | } | |
8403 | Py_INCREF(Py_None); resultobj = Py_None; | |
8404 | return resultobj; | |
8405 | fail: | |
8406 | return NULL; | |
8407 | } | |
8408 | ||
8409 | ||
c32bde28 | 8410 | static PyObject *_wrap_LogChain_IsPassingMessages(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8411 | PyObject *resultobj; |
8412 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
8413 | bool result; | |
8414 | PyObject * obj0 = 0 ; | |
8415 | char *kwnames[] = { | |
8416 | (char *) "self", NULL | |
8417 | }; | |
8418 | ||
8419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_IsPassingMessages",kwnames,&obj0)) goto fail; | |
8420 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, | |
8421 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8422 | { | |
8423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8424 | result = (bool)(arg1)->IsPassingMessages(); | |
8425 | ||
8426 | wxPyEndAllowThreads(__tstate); | |
8427 | if (PyErr_Occurred()) SWIG_fail; | |
8428 | } | |
8429 | { | |
8430 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8431 | } | |
8432 | return resultobj; | |
8433 | fail: | |
8434 | return NULL; | |
8435 | } | |
8436 | ||
8437 | ||
c32bde28 | 8438 | static PyObject *_wrap_LogChain_GetOldLog(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8439 | PyObject *resultobj; |
8440 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
8441 | wxLog *result; | |
8442 | PyObject * obj0 = 0 ; | |
8443 | char *kwnames[] = { | |
8444 | (char *) "self", NULL | |
8445 | }; | |
8446 | ||
8447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_GetOldLog",kwnames,&obj0)) goto fail; | |
8448 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, | |
8449 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8450 | { | |
8451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8452 | result = (wxLog *)(arg1)->GetOldLog(); | |
8453 | ||
8454 | wxPyEndAllowThreads(__tstate); | |
8455 | if (PyErr_Occurred()) SWIG_fail; | |
8456 | } | |
8457 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); | |
8458 | return resultobj; | |
8459 | fail: | |
8460 | return NULL; | |
8461 | } | |
8462 | ||
8463 | ||
c32bde28 | 8464 | static PyObject * LogChain_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8465 | PyObject *obj; |
8466 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8467 | SWIG_TypeClientData(SWIGTYPE_p_wxLogChain, obj); | |
8468 | Py_INCREF(obj); | |
8469 | return Py_BuildValue((char *)""); | |
8470 | } | |
c32bde28 | 8471 | static PyObject *_wrap_SysErrorCode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8472 | PyObject *resultobj; |
8473 | unsigned long result; | |
8474 | char *kwnames[] = { | |
8475 | NULL | |
8476 | }; | |
8477 | ||
8478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SysErrorCode",kwnames)) goto fail; | |
8479 | { | |
8480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8481 | result = (unsigned long)wxSysErrorCode(); | |
8482 | ||
8483 | wxPyEndAllowThreads(__tstate); | |
8484 | if (PyErr_Occurred()) SWIG_fail; | |
8485 | } | |
c32bde28 | 8486 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
8487 | return resultobj; |
8488 | fail: | |
8489 | return NULL; | |
8490 | } | |
8491 | ||
8492 | ||
c32bde28 | 8493 | static PyObject *_wrap_SysErrorMsg(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8494 | PyObject *resultobj; |
8495 | unsigned long arg1 = (unsigned long) 0 ; | |
8496 | wxString result; | |
8497 | PyObject * obj0 = 0 ; | |
8498 | char *kwnames[] = { | |
8499 | (char *) "nErrCode", NULL | |
8500 | }; | |
8501 | ||
8502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SysErrorMsg",kwnames,&obj0)) goto fail; | |
8503 | if (obj0) { | |
c32bde28 | 8504 | arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0); |
d55e5bfc RD |
8505 | if (PyErr_Occurred()) SWIG_fail; |
8506 | } | |
8507 | { | |
8508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8509 | result = wxSysErrorMsg(arg1); | |
8510 | ||
8511 | wxPyEndAllowThreads(__tstate); | |
8512 | if (PyErr_Occurred()) SWIG_fail; | |
8513 | } | |
8514 | { | |
8515 | #if wxUSE_UNICODE | |
8516 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8517 | #else | |
8518 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8519 | #endif | |
8520 | } | |
8521 | return resultobj; | |
8522 | fail: | |
8523 | return NULL; | |
8524 | } | |
8525 | ||
8526 | ||
c32bde28 | 8527 | static PyObject *_wrap_LogFatalError(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8528 | PyObject *resultobj; |
8529 | wxString *arg1 = 0 ; | |
ae8162c8 | 8530 | bool temp1 = false ; |
d55e5bfc RD |
8531 | PyObject * obj0 = 0 ; |
8532 | char *kwnames[] = { | |
8533 | (char *) "msg", NULL | |
8534 | }; | |
8535 | ||
8536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogFatalError",kwnames,&obj0)) goto fail; | |
8537 | { | |
8538 | arg1 = wxString_in_helper(obj0); | |
8539 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 8540 | temp1 = true; |
d55e5bfc RD |
8541 | } |
8542 | { | |
8543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8544 | wxLogFatalError((wxString const &)*arg1); | |
8545 | ||
8546 | wxPyEndAllowThreads(__tstate); | |
8547 | if (PyErr_Occurred()) SWIG_fail; | |
8548 | } | |
8549 | Py_INCREF(Py_None); resultobj = Py_None; | |
8550 | { | |
8551 | if (temp1) | |
8552 | delete arg1; | |
8553 | } | |
8554 | return resultobj; | |
8555 | fail: | |
8556 | { | |
8557 | if (temp1) | |
8558 | delete arg1; | |
8559 | } | |
8560 | return NULL; | |
8561 | } | |
8562 | ||
8563 | ||
c32bde28 | 8564 | static PyObject *_wrap_LogError(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8565 | PyObject *resultobj; |
8566 | wxString *arg1 = 0 ; | |
ae8162c8 | 8567 | bool temp1 = false ; |
d55e5bfc RD |
8568 | PyObject * obj0 = 0 ; |
8569 | char *kwnames[] = { | |
8570 | (char *) "msg", NULL | |
8571 | }; | |
8572 | ||
8573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogError",kwnames,&obj0)) goto fail; | |
8574 | { | |
8575 | arg1 = wxString_in_helper(obj0); | |
8576 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 8577 | temp1 = true; |
d55e5bfc RD |
8578 | } |
8579 | { | |
8580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8581 | wxLogError((wxString const &)*arg1); | |
8582 | ||
8583 | wxPyEndAllowThreads(__tstate); | |
8584 | if (PyErr_Occurred()) SWIG_fail; | |
8585 | } | |
8586 | Py_INCREF(Py_None); resultobj = Py_None; | |
8587 | { | |
8588 | if (temp1) | |
8589 | delete arg1; | |
8590 | } | |
8591 | return resultobj; | |
8592 | fail: | |
8593 | { | |
8594 | if (temp1) | |
8595 | delete arg1; | |
8596 | } | |
8597 | return NULL; | |
8598 | } | |
8599 | ||
8600 | ||
c32bde28 | 8601 | static PyObject *_wrap_LogWarning(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8602 | PyObject *resultobj; |
8603 | wxString *arg1 = 0 ; | |
ae8162c8 | 8604 | bool temp1 = false ; |
d55e5bfc RD |
8605 | PyObject * obj0 = 0 ; |
8606 | char *kwnames[] = { | |
8607 | (char *) "msg", NULL | |
8608 | }; | |
8609 | ||
8610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWarning",kwnames,&obj0)) goto fail; | |
8611 | { | |
8612 | arg1 = wxString_in_helper(obj0); | |
8613 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 8614 | temp1 = true; |
d55e5bfc RD |
8615 | } |
8616 | { | |
8617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8618 | wxLogWarning((wxString const &)*arg1); | |
8619 | ||
8620 | wxPyEndAllowThreads(__tstate); | |
8621 | if (PyErr_Occurred()) SWIG_fail; | |
8622 | } | |
8623 | Py_INCREF(Py_None); resultobj = Py_None; | |
8624 | { | |
8625 | if (temp1) | |
8626 | delete arg1; | |
8627 | } | |
8628 | return resultobj; | |
8629 | fail: | |
8630 | { | |
8631 | if (temp1) | |
8632 | delete arg1; | |
8633 | } | |
8634 | return NULL; | |
8635 | } | |
8636 | ||
8637 | ||
c32bde28 | 8638 | static PyObject *_wrap_LogMessage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8639 | PyObject *resultobj; |
8640 | wxString *arg1 = 0 ; | |
ae8162c8 | 8641 | bool temp1 = false ; |
d55e5bfc RD |
8642 | PyObject * obj0 = 0 ; |
8643 | char *kwnames[] = { | |
8644 | (char *) "msg", NULL | |
8645 | }; | |
8646 | ||
8647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogMessage",kwnames,&obj0)) goto fail; | |
8648 | { | |
8649 | arg1 = wxString_in_helper(obj0); | |
8650 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 8651 | temp1 = true; |
d55e5bfc RD |
8652 | } |
8653 | { | |
8654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8655 | wxLogMessage((wxString const &)*arg1); | |
8656 | ||
8657 | wxPyEndAllowThreads(__tstate); | |
8658 | if (PyErr_Occurred()) SWIG_fail; | |
8659 | } | |
8660 | Py_INCREF(Py_None); resultobj = Py_None; | |
8661 | { | |
8662 | if (temp1) | |
8663 | delete arg1; | |
8664 | } | |
8665 | return resultobj; | |
8666 | fail: | |
8667 | { | |
8668 | if (temp1) | |
8669 | delete arg1; | |
8670 | } | |
8671 | return NULL; | |
8672 | } | |
8673 | ||
8674 | ||
c32bde28 | 8675 | static PyObject *_wrap_LogInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8676 | PyObject *resultobj; |
8677 | wxString *arg1 = 0 ; | |
ae8162c8 | 8678 | bool temp1 = false ; |
d55e5bfc RD |
8679 | PyObject * obj0 = 0 ; |
8680 | char *kwnames[] = { | |
8681 | (char *) "msg", NULL | |
8682 | }; | |
8683 | ||
8684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogInfo",kwnames,&obj0)) goto fail; | |
8685 | { | |
8686 | arg1 = wxString_in_helper(obj0); | |
8687 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 8688 | temp1 = true; |
d55e5bfc RD |
8689 | } |
8690 | { | |
8691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8692 | wxLogInfo((wxString const &)*arg1); | |
8693 | ||
8694 | wxPyEndAllowThreads(__tstate); | |
8695 | if (PyErr_Occurred()) SWIG_fail; | |
8696 | } | |
8697 | Py_INCREF(Py_None); resultobj = Py_None; | |
8698 | { | |
8699 | if (temp1) | |
8700 | delete arg1; | |
8701 | } | |
8702 | return resultobj; | |
8703 | fail: | |
8704 | { | |
8705 | if (temp1) | |
8706 | delete arg1; | |
8707 | } | |
8708 | return NULL; | |
8709 | } | |
8710 | ||
8711 | ||
c32bde28 | 8712 | static PyObject *_wrap_LogDebug(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8713 | PyObject *resultobj; |
8714 | wxString *arg1 = 0 ; | |
ae8162c8 | 8715 | bool temp1 = false ; |
d55e5bfc RD |
8716 | PyObject * obj0 = 0 ; |
8717 | char *kwnames[] = { | |
8718 | (char *) "msg", NULL | |
8719 | }; | |
8720 | ||
8721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogDebug",kwnames,&obj0)) goto fail; | |
8722 | { | |
8723 | arg1 = wxString_in_helper(obj0); | |
8724 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 8725 | temp1 = true; |
d55e5bfc RD |
8726 | } |
8727 | { | |
8728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8729 | wxLogDebug((wxString const &)*arg1); | |
8730 | ||
8731 | wxPyEndAllowThreads(__tstate); | |
8732 | if (PyErr_Occurred()) SWIG_fail; | |
8733 | } | |
8734 | Py_INCREF(Py_None); resultobj = Py_None; | |
8735 | { | |
8736 | if (temp1) | |
8737 | delete arg1; | |
8738 | } | |
8739 | return resultobj; | |
8740 | fail: | |
8741 | { | |
8742 | if (temp1) | |
8743 | delete arg1; | |
8744 | } | |
8745 | return NULL; | |
8746 | } | |
8747 | ||
8748 | ||
c32bde28 | 8749 | static PyObject *_wrap_LogVerbose(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8750 | PyObject *resultobj; |
8751 | wxString *arg1 = 0 ; | |
ae8162c8 | 8752 | bool temp1 = false ; |
d55e5bfc RD |
8753 | PyObject * obj0 = 0 ; |
8754 | char *kwnames[] = { | |
8755 | (char *) "msg", NULL | |
8756 | }; | |
8757 | ||
8758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogVerbose",kwnames,&obj0)) goto fail; | |
8759 | { | |
8760 | arg1 = wxString_in_helper(obj0); | |
8761 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 8762 | temp1 = true; |
d55e5bfc RD |
8763 | } |
8764 | { | |
8765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8766 | wxLogVerbose((wxString const &)*arg1); | |
8767 | ||
8768 | wxPyEndAllowThreads(__tstate); | |
8769 | if (PyErr_Occurred()) SWIG_fail; | |
8770 | } | |
8771 | Py_INCREF(Py_None); resultobj = Py_None; | |
8772 | { | |
8773 | if (temp1) | |
8774 | delete arg1; | |
8775 | } | |
8776 | return resultobj; | |
8777 | fail: | |
8778 | { | |
8779 | if (temp1) | |
8780 | delete arg1; | |
8781 | } | |
8782 | return NULL; | |
8783 | } | |
8784 | ||
8785 | ||
c32bde28 | 8786 | static PyObject *_wrap_LogStatus(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8787 | PyObject *resultobj; |
8788 | wxString *arg1 = 0 ; | |
ae8162c8 | 8789 | bool temp1 = false ; |
d55e5bfc RD |
8790 | PyObject * obj0 = 0 ; |
8791 | char *kwnames[] = { | |
8792 | (char *) "msg", NULL | |
8793 | }; | |
8794 | ||
8795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogStatus",kwnames,&obj0)) goto fail; | |
8796 | { | |
8797 | arg1 = wxString_in_helper(obj0); | |
8798 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 8799 | temp1 = true; |
d55e5bfc RD |
8800 | } |
8801 | { | |
8802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8803 | wxLogStatus((wxString const &)*arg1); | |
8804 | ||
8805 | wxPyEndAllowThreads(__tstate); | |
8806 | if (PyErr_Occurred()) SWIG_fail; | |
8807 | } | |
8808 | Py_INCREF(Py_None); resultobj = Py_None; | |
8809 | { | |
8810 | if (temp1) | |
8811 | delete arg1; | |
8812 | } | |
8813 | return resultobj; | |
8814 | fail: | |
8815 | { | |
8816 | if (temp1) | |
8817 | delete arg1; | |
8818 | } | |
8819 | return NULL; | |
8820 | } | |
8821 | ||
8822 | ||
c32bde28 | 8823 | static PyObject *_wrap_LogStatusFrame(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8824 | PyObject *resultobj; |
8825 | wxFrame *arg1 = (wxFrame *) 0 ; | |
8826 | wxString *arg2 = 0 ; | |
ae8162c8 | 8827 | bool temp2 = false ; |
d55e5bfc RD |
8828 | PyObject * obj0 = 0 ; |
8829 | PyObject * obj1 = 0 ; | |
8830 | char *kwnames[] = { | |
8831 | (char *) "pFrame",(char *) "msg", NULL | |
8832 | }; | |
8833 | ||
8834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogStatusFrame",kwnames,&obj0,&obj1)) goto fail; | |
8835 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
8836 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8837 | { | |
8838 | arg2 = wxString_in_helper(obj1); | |
8839 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8840 | temp2 = true; |
d55e5bfc RD |
8841 | } |
8842 | { | |
8843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8844 | wxLogStatus(arg1,(wxString const &)*arg2); | |
8845 | ||
8846 | wxPyEndAllowThreads(__tstate); | |
8847 | if (PyErr_Occurred()) SWIG_fail; | |
8848 | } | |
8849 | Py_INCREF(Py_None); resultobj = Py_None; | |
8850 | { | |
8851 | if (temp2) | |
8852 | delete arg2; | |
8853 | } | |
8854 | return resultobj; | |
8855 | fail: | |
8856 | { | |
8857 | if (temp2) | |
8858 | delete arg2; | |
8859 | } | |
8860 | return NULL; | |
8861 | } | |
8862 | ||
8863 | ||
c32bde28 | 8864 | static PyObject *_wrap_LogSysError(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8865 | PyObject *resultobj; |
8866 | wxString *arg1 = 0 ; | |
ae8162c8 | 8867 | bool temp1 = false ; |
d55e5bfc RD |
8868 | PyObject * obj0 = 0 ; |
8869 | char *kwnames[] = { | |
8870 | (char *) "msg", NULL | |
8871 | }; | |
8872 | ||
8873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogSysError",kwnames,&obj0)) goto fail; | |
8874 | { | |
8875 | arg1 = wxString_in_helper(obj0); | |
8876 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 8877 | temp1 = true; |
d55e5bfc RD |
8878 | } |
8879 | { | |
8880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8881 | wxLogSysError((wxString const &)*arg1); | |
8882 | ||
8883 | wxPyEndAllowThreads(__tstate); | |
8884 | if (PyErr_Occurred()) SWIG_fail; | |
8885 | } | |
8886 | Py_INCREF(Py_None); resultobj = Py_None; | |
8887 | { | |
8888 | if (temp1) | |
8889 | delete arg1; | |
8890 | } | |
8891 | return resultobj; | |
8892 | fail: | |
8893 | { | |
8894 | if (temp1) | |
8895 | delete arg1; | |
8896 | } | |
8897 | return NULL; | |
8898 | } | |
8899 | ||
8900 | ||
c32bde28 | 8901 | static PyObject *_wrap_LogTrace__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
8902 | PyObject *resultobj; |
8903 | unsigned long arg1 ; | |
8904 | wxString *arg2 = 0 ; | |
ae8162c8 | 8905 | bool temp2 = false ; |
d55e5bfc RD |
8906 | PyObject * obj0 = 0 ; |
8907 | PyObject * obj1 = 0 ; | |
8908 | ||
8909 | if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail; | |
c32bde28 | 8910 | arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0); |
d55e5bfc RD |
8911 | if (PyErr_Occurred()) SWIG_fail; |
8912 | { | |
8913 | arg2 = wxString_in_helper(obj1); | |
8914 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8915 | temp2 = true; |
d55e5bfc RD |
8916 | } |
8917 | { | |
8918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8919 | wxLogTrace(arg1,(wxString const &)*arg2); | |
8920 | ||
8921 | wxPyEndAllowThreads(__tstate); | |
8922 | if (PyErr_Occurred()) SWIG_fail; | |
8923 | } | |
8924 | Py_INCREF(Py_None); resultobj = Py_None; | |
8925 | { | |
8926 | if (temp2) | |
8927 | delete arg2; | |
8928 | } | |
8929 | return resultobj; | |
8930 | fail: | |
8931 | { | |
8932 | if (temp2) | |
8933 | delete arg2; | |
8934 | } | |
8935 | return NULL; | |
8936 | } | |
8937 | ||
8938 | ||
c32bde28 | 8939 | static PyObject *_wrap_LogTrace__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
8940 | PyObject *resultobj; |
8941 | wxString *arg1 = 0 ; | |
8942 | wxString *arg2 = 0 ; | |
ae8162c8 RD |
8943 | bool temp1 = false ; |
8944 | bool temp2 = false ; | |
d55e5bfc RD |
8945 | PyObject * obj0 = 0 ; |
8946 | PyObject * obj1 = 0 ; | |
8947 | ||
8948 | if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail; | |
8949 | { | |
8950 | arg1 = wxString_in_helper(obj0); | |
8951 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 8952 | temp1 = true; |
d55e5bfc RD |
8953 | } |
8954 | { | |
8955 | arg2 = wxString_in_helper(obj1); | |
8956 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8957 | temp2 = true; |
d55e5bfc RD |
8958 | } |
8959 | { | |
8960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8961 | wxLogTrace((wxString const &)*arg1,(wxString const &)*arg2); | |
8962 | ||
8963 | wxPyEndAllowThreads(__tstate); | |
8964 | if (PyErr_Occurred()) SWIG_fail; | |
8965 | } | |
8966 | Py_INCREF(Py_None); resultobj = Py_None; | |
8967 | { | |
8968 | if (temp1) | |
8969 | delete arg1; | |
8970 | } | |
8971 | { | |
8972 | if (temp2) | |
8973 | delete arg2; | |
8974 | } | |
8975 | return resultobj; | |
8976 | fail: | |
8977 | { | |
8978 | if (temp1) | |
8979 | delete arg1; | |
8980 | } | |
8981 | { | |
8982 | if (temp2) | |
8983 | delete arg2; | |
8984 | } | |
8985 | return NULL; | |
8986 | } | |
8987 | ||
8988 | ||
8989 | static PyObject *_wrap_LogTrace(PyObject *self, PyObject *args) { | |
8990 | int argc; | |
8991 | PyObject *argv[3]; | |
8992 | int ii; | |
8993 | ||
8994 | argc = PyObject_Length(args); | |
8995 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
8996 | argv[ii] = PyTuple_GetItem(args,ii); | |
8997 | } | |
8998 | if (argc == 2) { | |
8999 | int _v; | |
9000 | { | |
9001 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); | |
9002 | } | |
9003 | if (_v) { | |
9004 | { | |
9005 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); | |
9006 | } | |
9007 | if (_v) { | |
9008 | return _wrap_LogTrace__SWIG_1(self,args); | |
9009 | } | |
9010 | } | |
9011 | } | |
9012 | if (argc == 2) { | |
9013 | int _v; | |
c32bde28 | 9014 | _v = SWIG_Check_unsigned_SS_long(argv[0]); |
d55e5bfc RD |
9015 | if (_v) { |
9016 | { | |
9017 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); | |
9018 | } | |
9019 | if (_v) { | |
9020 | return _wrap_LogTrace__SWIG_0(self,args); | |
9021 | } | |
9022 | } | |
9023 | } | |
9024 | ||
9025 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'LogTrace'"); | |
9026 | return NULL; | |
9027 | } | |
9028 | ||
9029 | ||
c32bde28 | 9030 | static PyObject *_wrap_LogGeneric(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9031 | PyObject *resultobj; |
9032 | unsigned long arg1 ; | |
9033 | wxString *arg2 = 0 ; | |
ae8162c8 | 9034 | bool temp2 = false ; |
d55e5bfc RD |
9035 | PyObject * obj0 = 0 ; |
9036 | PyObject * obj1 = 0 ; | |
9037 | char *kwnames[] = { | |
9038 | (char *) "level",(char *) "msg", NULL | |
9039 | }; | |
9040 | ||
9041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogGeneric",kwnames,&obj0,&obj1)) goto fail; | |
c32bde28 | 9042 | arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0); |
d55e5bfc RD |
9043 | if (PyErr_Occurred()) SWIG_fail; |
9044 | { | |
9045 | arg2 = wxString_in_helper(obj1); | |
9046 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 9047 | temp2 = true; |
d55e5bfc RD |
9048 | } |
9049 | { | |
9050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9051 | wxLogGeneric(arg1,(wxString const &)*arg2); | |
9052 | ||
9053 | wxPyEndAllowThreads(__tstate); | |
9054 | if (PyErr_Occurred()) SWIG_fail; | |
9055 | } | |
9056 | Py_INCREF(Py_None); resultobj = Py_None; | |
9057 | { | |
9058 | if (temp2) | |
9059 | delete arg2; | |
9060 | } | |
9061 | return resultobj; | |
9062 | fail: | |
9063 | { | |
9064 | if (temp2) | |
9065 | delete arg2; | |
9066 | } | |
9067 | return NULL; | |
9068 | } | |
9069 | ||
9070 | ||
c32bde28 | 9071 | static PyObject *_wrap_SafeShowMessage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9072 | PyObject *resultobj; |
9073 | wxString *arg1 = 0 ; | |
9074 | wxString *arg2 = 0 ; | |
ae8162c8 RD |
9075 | bool temp1 = false ; |
9076 | bool temp2 = false ; | |
d55e5bfc RD |
9077 | PyObject * obj0 = 0 ; |
9078 | PyObject * obj1 = 0 ; | |
9079 | char *kwnames[] = { | |
9080 | (char *) "title",(char *) "text", NULL | |
9081 | }; | |
9082 | ||
9083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SafeShowMessage",kwnames,&obj0,&obj1)) goto fail; | |
9084 | { | |
9085 | arg1 = wxString_in_helper(obj0); | |
9086 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 9087 | temp1 = true; |
d55e5bfc RD |
9088 | } |
9089 | { | |
9090 | arg2 = wxString_in_helper(obj1); | |
9091 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 9092 | temp2 = true; |
d55e5bfc RD |
9093 | } |
9094 | { | |
9095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9096 | wxSafeShowMessage((wxString const &)*arg1,(wxString const &)*arg2); | |
9097 | ||
9098 | wxPyEndAllowThreads(__tstate); | |
9099 | if (PyErr_Occurred()) SWIG_fail; | |
9100 | } | |
9101 | Py_INCREF(Py_None); resultobj = Py_None; | |
9102 | { | |
9103 | if (temp1) | |
9104 | delete arg1; | |
9105 | } | |
9106 | { | |
9107 | if (temp2) | |
9108 | delete arg2; | |
9109 | } | |
9110 | return resultobj; | |
9111 | fail: | |
9112 | { | |
9113 | if (temp1) | |
9114 | delete arg1; | |
9115 | } | |
9116 | { | |
9117 | if (temp2) | |
9118 | delete arg2; | |
9119 | } | |
9120 | return NULL; | |
9121 | } | |
9122 | ||
9123 | ||
c32bde28 | 9124 | static PyObject *_wrap_new_LogNull(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9125 | PyObject *resultobj; |
9126 | wxLogNull *result; | |
9127 | char *kwnames[] = { | |
9128 | NULL | |
9129 | }; | |
9130 | ||
9131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogNull",kwnames)) goto fail; | |
9132 | { | |
9133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9134 | result = (wxLogNull *)new wxLogNull(); | |
9135 | ||
9136 | wxPyEndAllowThreads(__tstate); | |
9137 | if (PyErr_Occurred()) SWIG_fail; | |
9138 | } | |
9139 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogNull, 1); | |
9140 | return resultobj; | |
9141 | fail: | |
9142 | return NULL; | |
9143 | } | |
9144 | ||
9145 | ||
c32bde28 | 9146 | static PyObject *_wrap_delete_LogNull(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9147 | PyObject *resultobj; |
9148 | wxLogNull *arg1 = (wxLogNull *) 0 ; | |
9149 | PyObject * obj0 = 0 ; | |
9150 | char *kwnames[] = { | |
9151 | (char *) "self", NULL | |
9152 | }; | |
9153 | ||
9154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LogNull",kwnames,&obj0)) goto fail; | |
9155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogNull, | |
9156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9157 | { | |
9158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9159 | delete arg1; | |
9160 | ||
9161 | wxPyEndAllowThreads(__tstate); | |
9162 | if (PyErr_Occurred()) SWIG_fail; | |
9163 | } | |
9164 | Py_INCREF(Py_None); resultobj = Py_None; | |
9165 | return resultobj; | |
9166 | fail: | |
9167 | return NULL; | |
9168 | } | |
9169 | ||
9170 | ||
c32bde28 | 9171 | static PyObject * LogNull_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
9172 | PyObject *obj; |
9173 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9174 | SWIG_TypeClientData(SWIGTYPE_p_wxLogNull, obj); | |
9175 | Py_INCREF(obj); | |
9176 | return Py_BuildValue((char *)""); | |
9177 | } | |
c32bde28 | 9178 | static PyObject *_wrap_new_PyLog(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9179 | PyObject *resultobj; |
9180 | wxPyLog *result; | |
9181 | char *kwnames[] = { | |
9182 | NULL | |
9183 | }; | |
9184 | ||
9185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLog",kwnames)) goto fail; | |
9186 | { | |
9187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9188 | result = (wxPyLog *)new wxPyLog(); | |
9189 | ||
9190 | wxPyEndAllowThreads(__tstate); | |
9191 | if (PyErr_Occurred()) SWIG_fail; | |
9192 | } | |
9193 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyLog, 1); | |
9194 | return resultobj; | |
9195 | fail: | |
9196 | return NULL; | |
9197 | } | |
9198 | ||
9199 | ||
c32bde28 | 9200 | static PyObject *_wrap_PyLog__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9201 | PyObject *resultobj; |
9202 | wxPyLog *arg1 = (wxPyLog *) 0 ; | |
9203 | PyObject *arg2 = (PyObject *) 0 ; | |
9204 | PyObject *arg3 = (PyObject *) 0 ; | |
9205 | PyObject * obj0 = 0 ; | |
9206 | PyObject * obj1 = 0 ; | |
9207 | PyObject * obj2 = 0 ; | |
9208 | char *kwnames[] = { | |
9209 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
9210 | }; | |
9211 | ||
9212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLog__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9213 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLog, | |
9214 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9215 | arg2 = obj1; | |
9216 | arg3 = obj2; | |
9217 | { | |
9218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9219 | (arg1)->_setCallbackInfo(arg2,arg3); | |
9220 | ||
9221 | wxPyEndAllowThreads(__tstate); | |
9222 | if (PyErr_Occurred()) SWIG_fail; | |
9223 | } | |
9224 | Py_INCREF(Py_None); resultobj = Py_None; | |
9225 | return resultobj; | |
9226 | fail: | |
9227 | return NULL; | |
9228 | } | |
9229 | ||
9230 | ||
c32bde28 | 9231 | static PyObject * PyLog_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
9232 | PyObject *obj; |
9233 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9234 | SWIG_TypeClientData(SWIGTYPE_p_wxPyLog, obj); | |
9235 | Py_INCREF(obj); | |
9236 | return Py_BuildValue((char *)""); | |
9237 | } | |
c32bde28 | 9238 | static PyObject *_wrap_Process_Kill(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9239 | PyObject *resultobj; |
9240 | int arg1 ; | |
9241 | int arg2 = (int) wxSIGTERM ; | |
9242 | int result; | |
9243 | PyObject * obj0 = 0 ; | |
9244 | PyObject * obj1 = 0 ; | |
9245 | char *kwnames[] = { | |
9246 | (char *) "pid",(char *) "sig", NULL | |
9247 | }; | |
9248 | ||
9249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Kill",kwnames,&obj0,&obj1)) goto fail; | |
c32bde28 | 9250 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
9251 | if (PyErr_Occurred()) SWIG_fail; |
9252 | if (obj1) { | |
c32bde28 | 9253 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
9254 | if (PyErr_Occurred()) SWIG_fail; |
9255 | } | |
9256 | { | |
9257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9258 | result = (int)wxPyProcess::Kill(arg1,(wxSignal )arg2); | |
9259 | ||
9260 | wxPyEndAllowThreads(__tstate); | |
9261 | if (PyErr_Occurred()) SWIG_fail; | |
9262 | } | |
c32bde28 | 9263 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
9264 | return resultobj; |
9265 | fail: | |
9266 | return NULL; | |
9267 | } | |
9268 | ||
9269 | ||
c32bde28 | 9270 | static PyObject *_wrap_Process_Exists(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9271 | PyObject *resultobj; |
9272 | int arg1 ; | |
9273 | bool result; | |
9274 | PyObject * obj0 = 0 ; | |
9275 | char *kwnames[] = { | |
9276 | (char *) "pid", NULL | |
9277 | }; | |
9278 | ||
9279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Exists",kwnames,&obj0)) goto fail; | |
c32bde28 | 9280 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
9281 | if (PyErr_Occurred()) SWIG_fail; |
9282 | { | |
9283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9284 | result = (bool)wxPyProcess::Exists(arg1); | |
9285 | ||
9286 | wxPyEndAllowThreads(__tstate); | |
9287 | if (PyErr_Occurred()) SWIG_fail; | |
9288 | } | |
9289 | { | |
9290 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9291 | } | |
9292 | return resultobj; | |
9293 | fail: | |
9294 | return NULL; | |
9295 | } | |
9296 | ||
9297 | ||
c32bde28 | 9298 | static PyObject *_wrap_Process_Open(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9299 | PyObject *resultobj; |
9300 | wxString *arg1 = 0 ; | |
9301 | int arg2 = (int) wxEXEC_ASYNC ; | |
9302 | wxPyProcess *result; | |
ae8162c8 | 9303 | bool temp1 = false ; |
d55e5bfc RD |
9304 | PyObject * obj0 = 0 ; |
9305 | PyObject * obj1 = 0 ; | |
9306 | char *kwnames[] = { | |
9307 | (char *) "cmd",(char *) "flags", NULL | |
9308 | }; | |
9309 | ||
9310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Open",kwnames,&obj0,&obj1)) goto fail; | |
9311 | { | |
9312 | arg1 = wxString_in_helper(obj0); | |
9313 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 9314 | temp1 = true; |
d55e5bfc RD |
9315 | } |
9316 | if (obj1) { | |
c32bde28 | 9317 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
9318 | if (PyErr_Occurred()) SWIG_fail; |
9319 | } | |
9320 | { | |
9321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9322 | result = (wxPyProcess *)wxPyProcess::Open((wxString const &)*arg1,arg2); | |
9323 | ||
9324 | wxPyEndAllowThreads(__tstate); | |
9325 | if (PyErr_Occurred()) SWIG_fail; | |
9326 | } | |
9327 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 0); | |
9328 | { | |
9329 | if (temp1) | |
9330 | delete arg1; | |
9331 | } | |
9332 | return resultobj; | |
9333 | fail: | |
9334 | { | |
9335 | if (temp1) | |
9336 | delete arg1; | |
9337 | } | |
9338 | return NULL; | |
9339 | } | |
9340 | ||
9341 | ||
c32bde28 | 9342 | static PyObject *_wrap_new_Process(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9343 | PyObject *resultobj; |
9344 | wxEvtHandler *arg1 = (wxEvtHandler *) NULL ; | |
9345 | int arg2 = (int) -1 ; | |
9346 | wxPyProcess *result; | |
9347 | PyObject * obj0 = 0 ; | |
9348 | PyObject * obj1 = 0 ; | |
9349 | char *kwnames[] = { | |
9350 | (char *) "parent",(char *) "id", NULL | |
9351 | }; | |
9352 | ||
9353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Process",kwnames,&obj0,&obj1)) goto fail; | |
9354 | if (obj0) { | |
9355 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
9356 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9357 | } | |
9358 | if (obj1) { | |
c32bde28 | 9359 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
9360 | if (PyErr_Occurred()) SWIG_fail; |
9361 | } | |
9362 | { | |
9363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9364 | result = (wxPyProcess *)new wxPyProcess(arg1,arg2); | |
9365 | ||
9366 | wxPyEndAllowThreads(__tstate); | |
9367 | if (PyErr_Occurred()) SWIG_fail; | |
9368 | } | |
9369 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 1); | |
9370 | return resultobj; | |
9371 | fail: | |
9372 | return NULL; | |
9373 | } | |
9374 | ||
9375 | ||
c32bde28 | 9376 | static PyObject *_wrap_Process__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9377 | PyObject *resultobj; |
9378 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9379 | PyObject *arg2 = (PyObject *) 0 ; | |
9380 | PyObject *arg3 = (PyObject *) 0 ; | |
9381 | PyObject * obj0 = 0 ; | |
9382 | PyObject * obj1 = 0 ; | |
9383 | PyObject * obj2 = 0 ; | |
9384 | char *kwnames[] = { | |
9385 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
9386 | }; | |
9387 | ||
9388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9389 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9391 | arg2 = obj1; | |
9392 | arg3 = obj2; | |
9393 | { | |
9394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9395 | (arg1)->_setCallbackInfo(arg2,arg3); | |
9396 | ||
9397 | wxPyEndAllowThreads(__tstate); | |
9398 | if (PyErr_Occurred()) SWIG_fail; | |
9399 | } | |
9400 | Py_INCREF(Py_None); resultobj = Py_None; | |
9401 | return resultobj; | |
9402 | fail: | |
9403 | return NULL; | |
9404 | } | |
9405 | ||
9406 | ||
c32bde28 | 9407 | static PyObject *_wrap_Process_base_OnTerminate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9408 | PyObject *resultobj; |
9409 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9410 | int arg2 ; | |
9411 | int arg3 ; | |
9412 | PyObject * obj0 = 0 ; | |
9413 | PyObject * obj1 = 0 ; | |
9414 | PyObject * obj2 = 0 ; | |
9415 | char *kwnames[] = { | |
9416 | (char *) "self",(char *) "pid",(char *) "status", NULL | |
9417 | }; | |
9418 | ||
9419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process_base_OnTerminate",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9420 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9421 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9422 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 9423 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9424 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9425 | if (PyErr_Occurred()) SWIG_fail; |
9426 | { | |
9427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9428 | (arg1)->base_OnTerminate(arg2,arg3); | |
9429 | ||
9430 | wxPyEndAllowThreads(__tstate); | |
9431 | if (PyErr_Occurred()) SWIG_fail; | |
9432 | } | |
9433 | Py_INCREF(Py_None); resultobj = Py_None; | |
9434 | return resultobj; | |
9435 | fail: | |
9436 | return NULL; | |
9437 | } | |
9438 | ||
9439 | ||
c32bde28 | 9440 | static PyObject *_wrap_Process_Redirect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9441 | PyObject *resultobj; |
9442 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9443 | PyObject * obj0 = 0 ; | |
9444 | char *kwnames[] = { | |
9445 | (char *) "self", NULL | |
9446 | }; | |
9447 | ||
9448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Redirect",kwnames,&obj0)) goto fail; | |
9449 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9450 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9451 | { | |
9452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9453 | (arg1)->Redirect(); | |
9454 | ||
9455 | wxPyEndAllowThreads(__tstate); | |
9456 | if (PyErr_Occurred()) SWIG_fail; | |
9457 | } | |
9458 | Py_INCREF(Py_None); resultobj = Py_None; | |
9459 | return resultobj; | |
9460 | fail: | |
9461 | return NULL; | |
9462 | } | |
9463 | ||
9464 | ||
c32bde28 | 9465 | static PyObject *_wrap_Process_IsRedirected(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9466 | PyObject *resultobj; |
9467 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9468 | bool result; | |
9469 | PyObject * obj0 = 0 ; | |
9470 | char *kwnames[] = { | |
9471 | (char *) "self", NULL | |
9472 | }; | |
9473 | ||
9474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsRedirected",kwnames,&obj0)) goto fail; | |
9475 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9476 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9477 | { | |
9478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9479 | result = (bool)(arg1)->IsRedirected(); | |
9480 | ||
9481 | wxPyEndAllowThreads(__tstate); | |
9482 | if (PyErr_Occurred()) SWIG_fail; | |
9483 | } | |
9484 | { | |
9485 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9486 | } | |
9487 | return resultobj; | |
9488 | fail: | |
9489 | return NULL; | |
9490 | } | |
9491 | ||
9492 | ||
c32bde28 | 9493 | static PyObject *_wrap_Process_Detach(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9494 | PyObject *resultobj; |
9495 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9496 | PyObject * obj0 = 0 ; | |
9497 | char *kwnames[] = { | |
9498 | (char *) "self", NULL | |
9499 | }; | |
9500 | ||
9501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Detach",kwnames,&obj0)) goto fail; | |
9502 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9503 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9504 | { | |
9505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9506 | (arg1)->Detach(); | |
9507 | ||
9508 | wxPyEndAllowThreads(__tstate); | |
9509 | if (PyErr_Occurred()) SWIG_fail; | |
9510 | } | |
9511 | Py_INCREF(Py_None); resultobj = Py_None; | |
9512 | return resultobj; | |
9513 | fail: | |
9514 | return NULL; | |
9515 | } | |
9516 | ||
9517 | ||
c32bde28 | 9518 | static PyObject *_wrap_Process_GetInputStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9519 | PyObject *resultobj; |
9520 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9521 | wxInputStream *result; | |
9522 | PyObject * obj0 = 0 ; | |
9523 | char *kwnames[] = { | |
9524 | (char *) "self", NULL | |
9525 | }; | |
9526 | ||
9527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetInputStream",kwnames,&obj0)) goto fail; | |
9528 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9529 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9530 | { | |
9531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9532 | result = (wxInputStream *)(arg1)->GetInputStream(); | |
9533 | ||
9534 | wxPyEndAllowThreads(__tstate); | |
9535 | if (PyErr_Occurred()) SWIG_fail; | |
9536 | } | |
9537 | { | |
9538 | wxPyInputStream * _ptr = NULL; | |
9539 | ||
9540 | if (result) { | |
9541 | _ptr = new wxPyInputStream(result); | |
9542 | } | |
ae8162c8 | 9543 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), true); |
d55e5bfc RD |
9544 | } |
9545 | return resultobj; | |
9546 | fail: | |
9547 | return NULL; | |
9548 | } | |
9549 | ||
9550 | ||
c32bde28 | 9551 | static PyObject *_wrap_Process_GetErrorStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9552 | PyObject *resultobj; |
9553 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9554 | wxInputStream *result; | |
9555 | PyObject * obj0 = 0 ; | |
9556 | char *kwnames[] = { | |
9557 | (char *) "self", NULL | |
9558 | }; | |
9559 | ||
9560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetErrorStream",kwnames,&obj0)) goto fail; | |
9561 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9562 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9563 | { | |
9564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9565 | result = (wxInputStream *)(arg1)->GetErrorStream(); | |
9566 | ||
9567 | wxPyEndAllowThreads(__tstate); | |
9568 | if (PyErr_Occurred()) SWIG_fail; | |
9569 | } | |
9570 | { | |
9571 | wxPyInputStream * _ptr = NULL; | |
9572 | ||
9573 | if (result) { | |
9574 | _ptr = new wxPyInputStream(result); | |
9575 | } | |
ae8162c8 | 9576 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), true); |
d55e5bfc RD |
9577 | } |
9578 | return resultobj; | |
9579 | fail: | |
9580 | return NULL; | |
9581 | } | |
9582 | ||
9583 | ||
c32bde28 | 9584 | static PyObject *_wrap_Process_GetOutputStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9585 | PyObject *resultobj; |
9586 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9587 | wxOutputStream *result; | |
9588 | PyObject * obj0 = 0 ; | |
9589 | char *kwnames[] = { | |
9590 | (char *) "self", NULL | |
9591 | }; | |
9592 | ||
9593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetOutputStream",kwnames,&obj0)) goto fail; | |
9594 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9595 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9596 | { | |
9597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9598 | result = (wxOutputStream *)(arg1)->GetOutputStream(); | |
9599 | ||
9600 | wxPyEndAllowThreads(__tstate); | |
9601 | if (PyErr_Occurred()) SWIG_fail; | |
9602 | } | |
9603 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxOutputStream, 0); | |
9604 | return resultobj; | |
9605 | fail: | |
9606 | return NULL; | |
9607 | } | |
9608 | ||
9609 | ||
c32bde28 | 9610 | static PyObject *_wrap_Process_CloseOutput(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9611 | PyObject *resultobj; |
9612 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9613 | PyObject * obj0 = 0 ; | |
9614 | char *kwnames[] = { | |
9615 | (char *) "self", NULL | |
9616 | }; | |
9617 | ||
9618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_CloseOutput",kwnames,&obj0)) goto fail; | |
9619 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9620 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9621 | { | |
9622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9623 | (arg1)->CloseOutput(); | |
9624 | ||
9625 | wxPyEndAllowThreads(__tstate); | |
9626 | if (PyErr_Occurred()) SWIG_fail; | |
9627 | } | |
9628 | Py_INCREF(Py_None); resultobj = Py_None; | |
9629 | return resultobj; | |
9630 | fail: | |
9631 | return NULL; | |
9632 | } | |
9633 | ||
9634 | ||
c32bde28 | 9635 | static PyObject *_wrap_Process_IsInputOpened(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9636 | PyObject *resultobj; |
9637 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9638 | bool result; | |
9639 | PyObject * obj0 = 0 ; | |
9640 | char *kwnames[] = { | |
9641 | (char *) "self", NULL | |
9642 | }; | |
9643 | ||
9644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputOpened",kwnames,&obj0)) goto fail; | |
9645 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9646 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9647 | { | |
9648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9649 | result = (bool)((wxPyProcess const *)arg1)->IsInputOpened(); | |
9650 | ||
9651 | wxPyEndAllowThreads(__tstate); | |
9652 | if (PyErr_Occurred()) SWIG_fail; | |
9653 | } | |
9654 | { | |
9655 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9656 | } | |
9657 | return resultobj; | |
9658 | fail: | |
9659 | return NULL; | |
9660 | } | |
9661 | ||
9662 | ||
c32bde28 | 9663 | static PyObject *_wrap_Process_IsInputAvailable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9664 | PyObject *resultobj; |
9665 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9666 | bool result; | |
9667 | PyObject * obj0 = 0 ; | |
9668 | char *kwnames[] = { | |
9669 | (char *) "self", NULL | |
9670 | }; | |
9671 | ||
9672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputAvailable",kwnames,&obj0)) goto fail; | |
9673 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9674 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9675 | { | |
9676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9677 | result = (bool)((wxPyProcess const *)arg1)->IsInputAvailable(); | |
9678 | ||
9679 | wxPyEndAllowThreads(__tstate); | |
9680 | if (PyErr_Occurred()) SWIG_fail; | |
9681 | } | |
9682 | { | |
9683 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9684 | } | |
9685 | return resultobj; | |
9686 | fail: | |
9687 | return NULL; | |
9688 | } | |
9689 | ||
9690 | ||
c32bde28 | 9691 | static PyObject *_wrap_Process_IsErrorAvailable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9692 | PyObject *resultobj; |
9693 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9694 | bool result; | |
9695 | PyObject * obj0 = 0 ; | |
9696 | char *kwnames[] = { | |
9697 | (char *) "self", NULL | |
9698 | }; | |
9699 | ||
9700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsErrorAvailable",kwnames,&obj0)) goto fail; | |
9701 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9702 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9703 | { | |
9704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9705 | result = (bool)((wxPyProcess const *)arg1)->IsErrorAvailable(); | |
9706 | ||
9707 | wxPyEndAllowThreads(__tstate); | |
9708 | if (PyErr_Occurred()) SWIG_fail; | |
9709 | } | |
9710 | { | |
9711 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9712 | } | |
9713 | return resultobj; | |
9714 | fail: | |
9715 | return NULL; | |
9716 | } | |
9717 | ||
9718 | ||
c32bde28 | 9719 | static PyObject * Process_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
9720 | PyObject *obj; |
9721 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9722 | SWIG_TypeClientData(SWIGTYPE_p_wxPyProcess, obj); | |
9723 | Py_INCREF(obj); | |
9724 | return Py_BuildValue((char *)""); | |
9725 | } | |
c32bde28 | 9726 | static PyObject *_wrap_new_ProcessEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9727 | PyObject *resultobj; |
9728 | int arg1 = (int) 0 ; | |
9729 | int arg2 = (int) 0 ; | |
9730 | int arg3 = (int) 0 ; | |
9731 | wxProcessEvent *result; | |
9732 | PyObject * obj0 = 0 ; | |
9733 | PyObject * obj1 = 0 ; | |
9734 | PyObject * obj2 = 0 ; | |
9735 | char *kwnames[] = { | |
9736 | (char *) "id",(char *) "pid",(char *) "exitcode", NULL | |
9737 | }; | |
9738 | ||
9739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ProcessEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9740 | if (obj0) { | |
c32bde28 | 9741 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
9742 | if (PyErr_Occurred()) SWIG_fail; |
9743 | } | |
9744 | if (obj1) { | |
c32bde28 | 9745 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
9746 | if (PyErr_Occurred()) SWIG_fail; |
9747 | } | |
9748 | if (obj2) { | |
c32bde28 | 9749 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9750 | if (PyErr_Occurred()) SWIG_fail; |
9751 | } | |
9752 | { | |
9753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9754 | result = (wxProcessEvent *)new wxProcessEvent(arg1,arg2,arg3); | |
9755 | ||
9756 | wxPyEndAllowThreads(__tstate); | |
9757 | if (PyErr_Occurred()) SWIG_fail; | |
9758 | } | |
9759 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxProcessEvent, 1); | |
9760 | return resultobj; | |
9761 | fail: | |
9762 | return NULL; | |
9763 | } | |
9764 | ||
9765 | ||
c32bde28 | 9766 | static PyObject *_wrap_ProcessEvent_GetPid(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9767 | PyObject *resultobj; |
9768 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9769 | int result; | |
9770 | PyObject * obj0 = 0 ; | |
9771 | char *kwnames[] = { | |
9772 | (char *) "self", NULL | |
9773 | }; | |
9774 | ||
9775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetPid",kwnames,&obj0)) goto fail; | |
9776 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, | |
9777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9778 | { | |
9779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9780 | result = (int)(arg1)->GetPid(); | |
9781 | ||
9782 | wxPyEndAllowThreads(__tstate); | |
9783 | if (PyErr_Occurred()) SWIG_fail; | |
9784 | } | |
c32bde28 | 9785 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
9786 | return resultobj; |
9787 | fail: | |
9788 | return NULL; | |
9789 | } | |
9790 | ||
9791 | ||
c32bde28 | 9792 | static PyObject *_wrap_ProcessEvent_GetExitCode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9793 | PyObject *resultobj; |
9794 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9795 | int result; | |
9796 | PyObject * obj0 = 0 ; | |
9797 | char *kwnames[] = { | |
9798 | (char *) "self", NULL | |
9799 | }; | |
9800 | ||
9801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetExitCode",kwnames,&obj0)) goto fail; | |
9802 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, | |
9803 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9804 | { | |
9805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9806 | result = (int)(arg1)->GetExitCode(); | |
9807 | ||
9808 | wxPyEndAllowThreads(__tstate); | |
9809 | if (PyErr_Occurred()) SWIG_fail; | |
9810 | } | |
c32bde28 | 9811 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
9812 | return resultobj; |
9813 | fail: | |
9814 | return NULL; | |
9815 | } | |
9816 | ||
9817 | ||
c32bde28 | 9818 | static PyObject *_wrap_ProcessEvent_m_pid_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9819 | PyObject *resultobj; |
9820 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9821 | int arg2 ; | |
9822 | PyObject * obj0 = 0 ; | |
9823 | PyObject * obj1 = 0 ; | |
9824 | char *kwnames[] = { | |
9825 | (char *) "self",(char *) "m_pid", NULL | |
9826 | }; | |
9827 | ||
9828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_pid_set",kwnames,&obj0,&obj1)) goto fail; | |
9829 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, | |
9830 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9831 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
9832 | if (PyErr_Occurred()) SWIG_fail; |
9833 | if (arg1) (arg1)->m_pid = arg2; | |
9834 | ||
9835 | Py_INCREF(Py_None); resultobj = Py_None; | |
9836 | return resultobj; | |
9837 | fail: | |
9838 | return NULL; | |
9839 | } | |
9840 | ||
9841 | ||
c32bde28 | 9842 | static PyObject *_wrap_ProcessEvent_m_pid_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9843 | PyObject *resultobj; |
9844 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9845 | int result; | |
9846 | PyObject * obj0 = 0 ; | |
9847 | char *kwnames[] = { | |
9848 | (char *) "self", NULL | |
9849 | }; | |
9850 | ||
9851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_pid_get",kwnames,&obj0)) goto fail; | |
9852 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, | |
9853 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9854 | result = (int) ((arg1)->m_pid); | |
9855 | ||
c32bde28 | 9856 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
9857 | return resultobj; |
9858 | fail: | |
9859 | return NULL; | |
9860 | } | |
9861 | ||
9862 | ||
c32bde28 | 9863 | static PyObject *_wrap_ProcessEvent_m_exitcode_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9864 | PyObject *resultobj; |
9865 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9866 | int arg2 ; | |
9867 | PyObject * obj0 = 0 ; | |
9868 | PyObject * obj1 = 0 ; | |
9869 | char *kwnames[] = { | |
9870 | (char *) "self",(char *) "m_exitcode", NULL | |
9871 | }; | |
9872 | ||
9873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_exitcode_set",kwnames,&obj0,&obj1)) goto fail; | |
9874 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, | |
9875 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9876 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
9877 | if (PyErr_Occurred()) SWIG_fail; |
9878 | if (arg1) (arg1)->m_exitcode = arg2; | |
9879 | ||
9880 | Py_INCREF(Py_None); resultobj = Py_None; | |
9881 | return resultobj; | |
9882 | fail: | |
9883 | return NULL; | |
9884 | } | |
9885 | ||
9886 | ||
c32bde28 | 9887 | static PyObject *_wrap_ProcessEvent_m_exitcode_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9888 | PyObject *resultobj; |
9889 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9890 | int result; | |
9891 | PyObject * obj0 = 0 ; | |
9892 | char *kwnames[] = { | |
9893 | (char *) "self", NULL | |
9894 | }; | |
9895 | ||
9896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_exitcode_get",kwnames,&obj0)) goto fail; | |
9897 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, | |
9898 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9899 | result = (int) ((arg1)->m_exitcode); | |
9900 | ||
c32bde28 | 9901 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
9902 | return resultobj; |
9903 | fail: | |
9904 | return NULL; | |
9905 | } | |
9906 | ||
9907 | ||
c32bde28 | 9908 | static PyObject * ProcessEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
9909 | PyObject *obj; |
9910 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9911 | SWIG_TypeClientData(SWIGTYPE_p_wxProcessEvent, obj); | |
9912 | Py_INCREF(obj); | |
9913 | return Py_BuildValue((char *)""); | |
9914 | } | |
c32bde28 | 9915 | static PyObject *_wrap_Execute(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9916 | PyObject *resultobj; |
9917 | wxString *arg1 = 0 ; | |
9918 | int arg2 = (int) wxEXEC_ASYNC ; | |
9919 | wxPyProcess *arg3 = (wxPyProcess *) NULL ; | |
9920 | long result; | |
ae8162c8 | 9921 | bool temp1 = false ; |
d55e5bfc RD |
9922 | PyObject * obj0 = 0 ; |
9923 | PyObject * obj1 = 0 ; | |
9924 | PyObject * obj2 = 0 ; | |
9925 | char *kwnames[] = { | |
9926 | (char *) "command",(char *) "flags",(char *) "process", NULL | |
9927 | }; | |
9928 | ||
9929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Execute",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9930 | { | |
9931 | arg1 = wxString_in_helper(obj0); | |
9932 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 9933 | temp1 = true; |
d55e5bfc RD |
9934 | } |
9935 | if (obj1) { | |
c32bde28 | 9936 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
9937 | if (PyErr_Occurred()) SWIG_fail; |
9938 | } | |
9939 | if (obj2) { | |
9940 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyProcess, | |
9941 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9942 | } | |
9943 | { | |
0439c23b | 9944 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
9945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9946 | result = (long)wxExecute((wxString const &)*arg1,arg2,arg3); | |
9947 | ||
9948 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9949 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 9950 | } |
c32bde28 | 9951 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
9952 | { |
9953 | if (temp1) | |
9954 | delete arg1; | |
9955 | } | |
9956 | return resultobj; | |
9957 | fail: | |
9958 | { | |
9959 | if (temp1) | |
9960 | delete arg1; | |
9961 | } | |
9962 | return NULL; | |
9963 | } | |
9964 | ||
9965 | ||
c32bde28 | 9966 | static PyObject *_wrap_new_Joystick(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9967 | PyObject *resultobj; |
9968 | int arg1 = (int) wxJOYSTICK1 ; | |
9969 | wxJoystick *result; | |
9970 | PyObject * obj0 = 0 ; | |
9971 | char *kwnames[] = { | |
9972 | (char *) "joystick", NULL | |
9973 | }; | |
9974 | ||
9975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Joystick",kwnames,&obj0)) goto fail; | |
9976 | if (obj0) { | |
c32bde28 | 9977 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
9978 | if (PyErr_Occurred()) SWIG_fail; |
9979 | } | |
9980 | { | |
0439c23b | 9981 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
9982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9983 | result = (wxJoystick *)new wxJoystick(arg1); | |
9984 | ||
9985 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9986 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
9987 | } |
9988 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystick, 1); | |
9989 | return resultobj; | |
9990 | fail: | |
9991 | return NULL; | |
9992 | } | |
9993 | ||
9994 | ||
c32bde28 | 9995 | static PyObject *_wrap_delete_Joystick(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9996 | PyObject *resultobj; |
9997 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9998 | PyObject * obj0 = 0 ; | |
9999 | char *kwnames[] = { | |
10000 | (char *) "self", NULL | |
10001 | }; | |
10002 | ||
10003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Joystick",kwnames,&obj0)) goto fail; | |
10004 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10005 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10006 | { | |
10007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10008 | delete arg1; | |
10009 | ||
10010 | wxPyEndAllowThreads(__tstate); | |
10011 | if (PyErr_Occurred()) SWIG_fail; | |
10012 | } | |
10013 | Py_INCREF(Py_None); resultobj = Py_None; | |
10014 | return resultobj; | |
10015 | fail: | |
10016 | return NULL; | |
10017 | } | |
10018 | ||
10019 | ||
c32bde28 | 10020 | static PyObject *_wrap_Joystick_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10021 | PyObject *resultobj; |
10022 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10023 | wxPoint result; | |
10024 | PyObject * obj0 = 0 ; | |
10025 | char *kwnames[] = { | |
10026 | (char *) "self", NULL | |
10027 | }; | |
10028 | ||
10029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPosition",kwnames,&obj0)) goto fail; | |
10030 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10031 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10032 | { | |
10033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10034 | result = (arg1)->GetPosition(); | |
10035 | ||
10036 | wxPyEndAllowThreads(__tstate); | |
10037 | if (PyErr_Occurred()) SWIG_fail; | |
10038 | } | |
10039 | { | |
10040 | wxPoint * resultptr; | |
10041 | resultptr = new wxPoint((wxPoint &) result); | |
10042 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
10043 | } | |
10044 | return resultobj; | |
10045 | fail: | |
10046 | return NULL; | |
10047 | } | |
10048 | ||
10049 | ||
c32bde28 | 10050 | static PyObject *_wrap_Joystick_GetZPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10051 | PyObject *resultobj; |
10052 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10053 | int result; | |
10054 | PyObject * obj0 = 0 ; | |
10055 | char *kwnames[] = { | |
10056 | (char *) "self", NULL | |
10057 | }; | |
10058 | ||
10059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZPosition",kwnames,&obj0)) goto fail; | |
10060 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10061 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10062 | { | |
10063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10064 | result = (int)(arg1)->GetZPosition(); | |
10065 | ||
10066 | wxPyEndAllowThreads(__tstate); | |
10067 | if (PyErr_Occurred()) SWIG_fail; | |
10068 | } | |
c32bde28 | 10069 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10070 | return resultobj; |
10071 | fail: | |
10072 | return NULL; | |
10073 | } | |
10074 | ||
10075 | ||
c32bde28 | 10076 | static PyObject *_wrap_Joystick_GetButtonState(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10077 | PyObject *resultobj; |
10078 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10079 | int result; | |
10080 | PyObject * obj0 = 0 ; | |
10081 | char *kwnames[] = { | |
10082 | (char *) "self", NULL | |
10083 | }; | |
10084 | ||
10085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetButtonState",kwnames,&obj0)) goto fail; | |
10086 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10087 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10088 | { | |
10089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10090 | result = (int)(arg1)->GetButtonState(); | |
10091 | ||
10092 | wxPyEndAllowThreads(__tstate); | |
10093 | if (PyErr_Occurred()) SWIG_fail; | |
10094 | } | |
c32bde28 | 10095 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10096 | return resultobj; |
10097 | fail: | |
10098 | return NULL; | |
10099 | } | |
10100 | ||
10101 | ||
c32bde28 | 10102 | static PyObject *_wrap_Joystick_GetPOVPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10103 | PyObject *resultobj; |
10104 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10105 | int result; | |
10106 | PyObject * obj0 = 0 ; | |
10107 | char *kwnames[] = { | |
10108 | (char *) "self", NULL | |
10109 | }; | |
10110 | ||
10111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVPosition",kwnames,&obj0)) goto fail; | |
10112 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10114 | { | |
10115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10116 | result = (int)(arg1)->GetPOVPosition(); | |
10117 | ||
10118 | wxPyEndAllowThreads(__tstate); | |
10119 | if (PyErr_Occurred()) SWIG_fail; | |
10120 | } | |
c32bde28 | 10121 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10122 | return resultobj; |
10123 | fail: | |
10124 | return NULL; | |
10125 | } | |
10126 | ||
10127 | ||
c32bde28 | 10128 | static PyObject *_wrap_Joystick_GetPOVCTSPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10129 | PyObject *resultobj; |
10130 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10131 | int result; | |
10132 | PyObject * obj0 = 0 ; | |
10133 | char *kwnames[] = { | |
10134 | (char *) "self", NULL | |
10135 | }; | |
10136 | ||
10137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVCTSPosition",kwnames,&obj0)) goto fail; | |
10138 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10139 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10140 | { | |
10141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10142 | result = (int)(arg1)->GetPOVCTSPosition(); | |
10143 | ||
10144 | wxPyEndAllowThreads(__tstate); | |
10145 | if (PyErr_Occurred()) SWIG_fail; | |
10146 | } | |
c32bde28 | 10147 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10148 | return resultobj; |
10149 | fail: | |
10150 | return NULL; | |
10151 | } | |
10152 | ||
10153 | ||
c32bde28 | 10154 | static PyObject *_wrap_Joystick_GetRudderPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10155 | PyObject *resultobj; |
10156 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10157 | int result; | |
10158 | PyObject * obj0 = 0 ; | |
10159 | char *kwnames[] = { | |
10160 | (char *) "self", NULL | |
10161 | }; | |
10162 | ||
10163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderPosition",kwnames,&obj0)) goto fail; | |
10164 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10165 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10166 | { | |
10167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10168 | result = (int)(arg1)->GetRudderPosition(); | |
10169 | ||
10170 | wxPyEndAllowThreads(__tstate); | |
10171 | if (PyErr_Occurred()) SWIG_fail; | |
10172 | } | |
c32bde28 | 10173 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10174 | return resultobj; |
10175 | fail: | |
10176 | return NULL; | |
10177 | } | |
10178 | ||
10179 | ||
c32bde28 | 10180 | static PyObject *_wrap_Joystick_GetUPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10181 | PyObject *resultobj; |
10182 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10183 | int result; | |
10184 | PyObject * obj0 = 0 ; | |
10185 | char *kwnames[] = { | |
10186 | (char *) "self", NULL | |
10187 | }; | |
10188 | ||
10189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUPosition",kwnames,&obj0)) goto fail; | |
10190 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10191 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10192 | { | |
10193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10194 | result = (int)(arg1)->GetUPosition(); | |
10195 | ||
10196 | wxPyEndAllowThreads(__tstate); | |
10197 | if (PyErr_Occurred()) SWIG_fail; | |
10198 | } | |
c32bde28 | 10199 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10200 | return resultobj; |
10201 | fail: | |
10202 | return NULL; | |
10203 | } | |
10204 | ||
10205 | ||
c32bde28 | 10206 | static PyObject *_wrap_Joystick_GetVPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10207 | PyObject *resultobj; |
10208 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10209 | int result; | |
10210 | PyObject * obj0 = 0 ; | |
10211 | char *kwnames[] = { | |
10212 | (char *) "self", NULL | |
10213 | }; | |
10214 | ||
10215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVPosition",kwnames,&obj0)) goto fail; | |
10216 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10217 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10218 | { | |
10219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10220 | result = (int)(arg1)->GetVPosition(); | |
10221 | ||
10222 | wxPyEndAllowThreads(__tstate); | |
10223 | if (PyErr_Occurred()) SWIG_fail; | |
10224 | } | |
c32bde28 | 10225 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10226 | return resultobj; |
10227 | fail: | |
10228 | return NULL; | |
10229 | } | |
10230 | ||
10231 | ||
c32bde28 | 10232 | static PyObject *_wrap_Joystick_GetMovementThreshold(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10233 | PyObject *resultobj; |
10234 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10235 | int result; | |
10236 | PyObject * obj0 = 0 ; | |
10237 | char *kwnames[] = { | |
10238 | (char *) "self", NULL | |
10239 | }; | |
10240 | ||
10241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMovementThreshold",kwnames,&obj0)) goto fail; | |
10242 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10243 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10244 | { | |
10245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10246 | result = (int)(arg1)->GetMovementThreshold(); | |
10247 | ||
10248 | wxPyEndAllowThreads(__tstate); | |
10249 | if (PyErr_Occurred()) SWIG_fail; | |
10250 | } | |
c32bde28 | 10251 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10252 | return resultobj; |
10253 | fail: | |
10254 | return NULL; | |
10255 | } | |
10256 | ||
10257 | ||
c32bde28 | 10258 | static PyObject *_wrap_Joystick_SetMovementThreshold(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10259 | PyObject *resultobj; |
10260 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10261 | int arg2 ; | |
10262 | PyObject * obj0 = 0 ; | |
10263 | PyObject * obj1 = 0 ; | |
10264 | char *kwnames[] = { | |
10265 | (char *) "self",(char *) "threshold", NULL | |
10266 | }; | |
10267 | ||
10268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Joystick_SetMovementThreshold",kwnames,&obj0,&obj1)) goto fail; | |
10269 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10270 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 10271 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
10272 | if (PyErr_Occurred()) SWIG_fail; |
10273 | { | |
10274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10275 | (arg1)->SetMovementThreshold(arg2); | |
10276 | ||
10277 | wxPyEndAllowThreads(__tstate); | |
10278 | if (PyErr_Occurred()) SWIG_fail; | |
10279 | } | |
10280 | Py_INCREF(Py_None); resultobj = Py_None; | |
10281 | return resultobj; | |
10282 | fail: | |
10283 | return NULL; | |
10284 | } | |
10285 | ||
10286 | ||
c32bde28 | 10287 | static PyObject *_wrap_Joystick_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10288 | PyObject *resultobj; |
10289 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10290 | bool result; | |
10291 | PyObject * obj0 = 0 ; | |
10292 | char *kwnames[] = { | |
10293 | (char *) "self", NULL | |
10294 | }; | |
10295 | ||
10296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_IsOk",kwnames,&obj0)) goto fail; | |
10297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10299 | { | |
10300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10301 | result = (bool)(arg1)->IsOk(); | |
10302 | ||
10303 | wxPyEndAllowThreads(__tstate); | |
10304 | if (PyErr_Occurred()) SWIG_fail; | |
10305 | } | |
10306 | { | |
10307 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10308 | } | |
10309 | return resultobj; | |
10310 | fail: | |
10311 | return NULL; | |
10312 | } | |
10313 | ||
10314 | ||
c32bde28 | 10315 | static PyObject *_wrap_Joystick_GetNumberJoysticks(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10316 | PyObject *resultobj; |
10317 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10318 | int result; | |
10319 | PyObject * obj0 = 0 ; | |
10320 | char *kwnames[] = { | |
10321 | (char *) "self", NULL | |
10322 | }; | |
10323 | ||
10324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberJoysticks",kwnames,&obj0)) goto fail; | |
10325 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10326 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10327 | { | |
10328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10329 | result = (int)(arg1)->GetNumberJoysticks(); | |
10330 | ||
10331 | wxPyEndAllowThreads(__tstate); | |
10332 | if (PyErr_Occurred()) SWIG_fail; | |
10333 | } | |
c32bde28 | 10334 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10335 | return resultobj; |
10336 | fail: | |
10337 | return NULL; | |
10338 | } | |
10339 | ||
10340 | ||
c32bde28 | 10341 | static PyObject *_wrap_Joystick_GetManufacturerId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10342 | PyObject *resultobj; |
10343 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10344 | int result; | |
10345 | PyObject * obj0 = 0 ; | |
10346 | char *kwnames[] = { | |
10347 | (char *) "self", NULL | |
10348 | }; | |
10349 | ||
10350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetManufacturerId",kwnames,&obj0)) goto fail; | |
10351 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10352 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10353 | { | |
10354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10355 | result = (int)(arg1)->GetManufacturerId(); | |
10356 | ||
10357 | wxPyEndAllowThreads(__tstate); | |
10358 | if (PyErr_Occurred()) SWIG_fail; | |
10359 | } | |
c32bde28 | 10360 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10361 | return resultobj; |
10362 | fail: | |
10363 | return NULL; | |
10364 | } | |
10365 | ||
10366 | ||
c32bde28 | 10367 | static PyObject *_wrap_Joystick_GetProductId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10368 | PyObject *resultobj; |
10369 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10370 | int result; | |
10371 | PyObject * obj0 = 0 ; | |
10372 | char *kwnames[] = { | |
10373 | (char *) "self", NULL | |
10374 | }; | |
10375 | ||
10376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductId",kwnames,&obj0)) goto fail; | |
10377 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10378 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10379 | { | |
10380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10381 | result = (int)(arg1)->GetProductId(); | |
10382 | ||
10383 | wxPyEndAllowThreads(__tstate); | |
10384 | if (PyErr_Occurred()) SWIG_fail; | |
10385 | } | |
c32bde28 | 10386 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10387 | return resultobj; |
10388 | fail: | |
10389 | return NULL; | |
10390 | } | |
10391 | ||
10392 | ||
c32bde28 | 10393 | static PyObject *_wrap_Joystick_GetProductName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10394 | PyObject *resultobj; |
10395 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10396 | wxString result; | |
10397 | PyObject * obj0 = 0 ; | |
10398 | char *kwnames[] = { | |
10399 | (char *) "self", NULL | |
10400 | }; | |
10401 | ||
10402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductName",kwnames,&obj0)) goto fail; | |
10403 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10405 | { | |
10406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10407 | result = (arg1)->GetProductName(); | |
10408 | ||
10409 | wxPyEndAllowThreads(__tstate); | |
10410 | if (PyErr_Occurred()) SWIG_fail; | |
10411 | } | |
10412 | { | |
10413 | #if wxUSE_UNICODE | |
10414 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10415 | #else | |
10416 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10417 | #endif | |
10418 | } | |
10419 | return resultobj; | |
10420 | fail: | |
10421 | return NULL; | |
10422 | } | |
10423 | ||
10424 | ||
c32bde28 | 10425 | static PyObject *_wrap_Joystick_GetXMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10426 | PyObject *resultobj; |
10427 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10428 | int result; | |
10429 | PyObject * obj0 = 0 ; | |
10430 | char *kwnames[] = { | |
10431 | (char *) "self", NULL | |
10432 | }; | |
10433 | ||
10434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMin",kwnames,&obj0)) goto fail; | |
10435 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10436 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10437 | { | |
10438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10439 | result = (int)(arg1)->GetXMin(); | |
10440 | ||
10441 | wxPyEndAllowThreads(__tstate); | |
10442 | if (PyErr_Occurred()) SWIG_fail; | |
10443 | } | |
c32bde28 | 10444 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10445 | return resultobj; |
10446 | fail: | |
10447 | return NULL; | |
10448 | } | |
10449 | ||
10450 | ||
c32bde28 | 10451 | static PyObject *_wrap_Joystick_GetYMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10452 | PyObject *resultobj; |
10453 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10454 | int result; | |
10455 | PyObject * obj0 = 0 ; | |
10456 | char *kwnames[] = { | |
10457 | (char *) "self", NULL | |
10458 | }; | |
10459 | ||
10460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMin",kwnames,&obj0)) goto fail; | |
10461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10463 | { | |
10464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10465 | result = (int)(arg1)->GetYMin(); | |
10466 | ||
10467 | wxPyEndAllowThreads(__tstate); | |
10468 | if (PyErr_Occurred()) SWIG_fail; | |
10469 | } | |
c32bde28 | 10470 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10471 | return resultobj; |
10472 | fail: | |
10473 | return NULL; | |
10474 | } | |
10475 | ||
10476 | ||
c32bde28 | 10477 | static PyObject *_wrap_Joystick_GetZMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10478 | PyObject *resultobj; |
10479 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10480 | int result; | |
10481 | PyObject * obj0 = 0 ; | |
10482 | char *kwnames[] = { | |
10483 | (char *) "self", NULL | |
10484 | }; | |
10485 | ||
10486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMin",kwnames,&obj0)) goto fail; | |
10487 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10488 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10489 | { | |
10490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10491 | result = (int)(arg1)->GetZMin(); | |
10492 | ||
10493 | wxPyEndAllowThreads(__tstate); | |
10494 | if (PyErr_Occurred()) SWIG_fail; | |
10495 | } | |
c32bde28 | 10496 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10497 | return resultobj; |
10498 | fail: | |
10499 | return NULL; | |
10500 | } | |
10501 | ||
10502 | ||
c32bde28 | 10503 | static PyObject *_wrap_Joystick_GetXMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10504 | PyObject *resultobj; |
10505 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10506 | int result; | |
10507 | PyObject * obj0 = 0 ; | |
10508 | char *kwnames[] = { | |
10509 | (char *) "self", NULL | |
10510 | }; | |
10511 | ||
10512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMax",kwnames,&obj0)) goto fail; | |
10513 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10514 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10515 | { | |
10516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10517 | result = (int)(arg1)->GetXMax(); | |
10518 | ||
10519 | wxPyEndAllowThreads(__tstate); | |
10520 | if (PyErr_Occurred()) SWIG_fail; | |
10521 | } | |
c32bde28 | 10522 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10523 | return resultobj; |
10524 | fail: | |
10525 | return NULL; | |
10526 | } | |
10527 | ||
10528 | ||
c32bde28 | 10529 | static PyObject *_wrap_Joystick_GetYMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10530 | PyObject *resultobj; |
10531 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10532 | int result; | |
10533 | PyObject * obj0 = 0 ; | |
10534 | char *kwnames[] = { | |
10535 | (char *) "self", NULL | |
10536 | }; | |
10537 | ||
10538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMax",kwnames,&obj0)) goto fail; | |
10539 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10540 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10541 | { | |
10542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10543 | result = (int)(arg1)->GetYMax(); | |
10544 | ||
10545 | wxPyEndAllowThreads(__tstate); | |
10546 | if (PyErr_Occurred()) SWIG_fail; | |
10547 | } | |
c32bde28 | 10548 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10549 | return resultobj; |
10550 | fail: | |
10551 | return NULL; | |
10552 | } | |
10553 | ||
10554 | ||
c32bde28 | 10555 | static PyObject *_wrap_Joystick_GetZMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10556 | PyObject *resultobj; |
10557 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10558 | int result; | |
10559 | PyObject * obj0 = 0 ; | |
10560 | char *kwnames[] = { | |
10561 | (char *) "self", NULL | |
10562 | }; | |
10563 | ||
10564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMax",kwnames,&obj0)) goto fail; | |
10565 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10566 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10567 | { | |
10568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10569 | result = (int)(arg1)->GetZMax(); | |
10570 | ||
10571 | wxPyEndAllowThreads(__tstate); | |
10572 | if (PyErr_Occurred()) SWIG_fail; | |
10573 | } | |
c32bde28 | 10574 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10575 | return resultobj; |
10576 | fail: | |
10577 | return NULL; | |
10578 | } | |
10579 | ||
10580 | ||
c32bde28 | 10581 | static PyObject *_wrap_Joystick_GetNumberButtons(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10582 | PyObject *resultobj; |
10583 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10584 | int result; | |
10585 | PyObject * obj0 = 0 ; | |
10586 | char *kwnames[] = { | |
10587 | (char *) "self", NULL | |
10588 | }; | |
10589 | ||
10590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberButtons",kwnames,&obj0)) goto fail; | |
10591 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10593 | { | |
10594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10595 | result = (int)(arg1)->GetNumberButtons(); | |
10596 | ||
10597 | wxPyEndAllowThreads(__tstate); | |
10598 | if (PyErr_Occurred()) SWIG_fail; | |
10599 | } | |
c32bde28 | 10600 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10601 | return resultobj; |
10602 | fail: | |
10603 | return NULL; | |
10604 | } | |
10605 | ||
10606 | ||
c32bde28 | 10607 | static PyObject *_wrap_Joystick_GetNumberAxes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10608 | PyObject *resultobj; |
10609 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10610 | int result; | |
10611 | PyObject * obj0 = 0 ; | |
10612 | char *kwnames[] = { | |
10613 | (char *) "self", NULL | |
10614 | }; | |
10615 | ||
10616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberAxes",kwnames,&obj0)) goto fail; | |
10617 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10618 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10619 | { | |
10620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10621 | result = (int)(arg1)->GetNumberAxes(); | |
10622 | ||
10623 | wxPyEndAllowThreads(__tstate); | |
10624 | if (PyErr_Occurred()) SWIG_fail; | |
10625 | } | |
c32bde28 | 10626 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10627 | return resultobj; |
10628 | fail: | |
10629 | return NULL; | |
10630 | } | |
10631 | ||
10632 | ||
c32bde28 | 10633 | static PyObject *_wrap_Joystick_GetMaxButtons(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10634 | PyObject *resultobj; |
10635 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10636 | int result; | |
10637 | PyObject * obj0 = 0 ; | |
10638 | char *kwnames[] = { | |
10639 | (char *) "self", NULL | |
10640 | }; | |
10641 | ||
10642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxButtons",kwnames,&obj0)) goto fail; | |
10643 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10644 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10645 | { | |
10646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10647 | result = (int)(arg1)->GetMaxButtons(); | |
10648 | ||
10649 | wxPyEndAllowThreads(__tstate); | |
10650 | if (PyErr_Occurred()) SWIG_fail; | |
10651 | } | |
c32bde28 | 10652 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10653 | return resultobj; |
10654 | fail: | |
10655 | return NULL; | |
10656 | } | |
10657 | ||
10658 | ||
c32bde28 | 10659 | static PyObject *_wrap_Joystick_GetMaxAxes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10660 | PyObject *resultobj; |
10661 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10662 | int result; | |
10663 | PyObject * obj0 = 0 ; | |
10664 | char *kwnames[] = { | |
10665 | (char *) "self", NULL | |
10666 | }; | |
10667 | ||
10668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxAxes",kwnames,&obj0)) goto fail; | |
10669 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10670 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10671 | { | |
10672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10673 | result = (int)(arg1)->GetMaxAxes(); | |
10674 | ||
10675 | wxPyEndAllowThreads(__tstate); | |
10676 | if (PyErr_Occurred()) SWIG_fail; | |
10677 | } | |
c32bde28 | 10678 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10679 | return resultobj; |
10680 | fail: | |
10681 | return NULL; | |
10682 | } | |
10683 | ||
10684 | ||
c32bde28 | 10685 | static PyObject *_wrap_Joystick_GetPollingMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10686 | PyObject *resultobj; |
10687 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10688 | int result; | |
10689 | PyObject * obj0 = 0 ; | |
10690 | char *kwnames[] = { | |
10691 | (char *) "self", NULL | |
10692 | }; | |
10693 | ||
10694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMin",kwnames,&obj0)) goto fail; | |
10695 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10696 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10697 | { | |
10698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10699 | result = (int)(arg1)->GetPollingMin(); | |
10700 | ||
10701 | wxPyEndAllowThreads(__tstate); | |
10702 | if (PyErr_Occurred()) SWIG_fail; | |
10703 | } | |
c32bde28 | 10704 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10705 | return resultobj; |
10706 | fail: | |
10707 | return NULL; | |
10708 | } | |
10709 | ||
10710 | ||
c32bde28 | 10711 | static PyObject *_wrap_Joystick_GetPollingMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10712 | PyObject *resultobj; |
10713 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10714 | int result; | |
10715 | PyObject * obj0 = 0 ; | |
10716 | char *kwnames[] = { | |
10717 | (char *) "self", NULL | |
10718 | }; | |
10719 | ||
10720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMax",kwnames,&obj0)) goto fail; | |
10721 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10722 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10723 | { | |
10724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10725 | result = (int)(arg1)->GetPollingMax(); | |
10726 | ||
10727 | wxPyEndAllowThreads(__tstate); | |
10728 | if (PyErr_Occurred()) SWIG_fail; | |
10729 | } | |
c32bde28 | 10730 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10731 | return resultobj; |
10732 | fail: | |
10733 | return NULL; | |
10734 | } | |
10735 | ||
10736 | ||
c32bde28 | 10737 | static PyObject *_wrap_Joystick_GetRudderMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10738 | PyObject *resultobj; |
10739 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10740 | int result; | |
10741 | PyObject * obj0 = 0 ; | |
10742 | char *kwnames[] = { | |
10743 | (char *) "self", NULL | |
10744 | }; | |
10745 | ||
10746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMin",kwnames,&obj0)) goto fail; | |
10747 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10748 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10749 | { | |
10750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10751 | result = (int)(arg1)->GetRudderMin(); | |
10752 | ||
10753 | wxPyEndAllowThreads(__tstate); | |
10754 | if (PyErr_Occurred()) SWIG_fail; | |
10755 | } | |
c32bde28 | 10756 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10757 | return resultobj; |
10758 | fail: | |
10759 | return NULL; | |
10760 | } | |
10761 | ||
10762 | ||
c32bde28 | 10763 | static PyObject *_wrap_Joystick_GetRudderMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10764 | PyObject *resultobj; |
10765 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10766 | int result; | |
10767 | PyObject * obj0 = 0 ; | |
10768 | char *kwnames[] = { | |
10769 | (char *) "self", NULL | |
10770 | }; | |
10771 | ||
10772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMax",kwnames,&obj0)) goto fail; | |
10773 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10774 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10775 | { | |
10776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10777 | result = (int)(arg1)->GetRudderMax(); | |
10778 | ||
10779 | wxPyEndAllowThreads(__tstate); | |
10780 | if (PyErr_Occurred()) SWIG_fail; | |
10781 | } | |
c32bde28 | 10782 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10783 | return resultobj; |
10784 | fail: | |
10785 | return NULL; | |
10786 | } | |
10787 | ||
10788 | ||
c32bde28 | 10789 | static PyObject *_wrap_Joystick_GetUMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10790 | PyObject *resultobj; |
10791 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10792 | int result; | |
10793 | PyObject * obj0 = 0 ; | |
10794 | char *kwnames[] = { | |
10795 | (char *) "self", NULL | |
10796 | }; | |
10797 | ||
10798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMin",kwnames,&obj0)) goto fail; | |
10799 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10800 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10801 | { | |
10802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10803 | result = (int)(arg1)->GetUMin(); | |
10804 | ||
10805 | wxPyEndAllowThreads(__tstate); | |
10806 | if (PyErr_Occurred()) SWIG_fail; | |
10807 | } | |
c32bde28 | 10808 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10809 | return resultobj; |
10810 | fail: | |
10811 | return NULL; | |
10812 | } | |
10813 | ||
10814 | ||
c32bde28 | 10815 | static PyObject *_wrap_Joystick_GetUMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10816 | PyObject *resultobj; |
10817 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10818 | int result; | |
10819 | PyObject * obj0 = 0 ; | |
10820 | char *kwnames[] = { | |
10821 | (char *) "self", NULL | |
10822 | }; | |
10823 | ||
10824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMax",kwnames,&obj0)) goto fail; | |
10825 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10826 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10827 | { | |
10828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10829 | result = (int)(arg1)->GetUMax(); | |
10830 | ||
10831 | wxPyEndAllowThreads(__tstate); | |
10832 | if (PyErr_Occurred()) SWIG_fail; | |
10833 | } | |
c32bde28 | 10834 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10835 | return resultobj; |
10836 | fail: | |
10837 | return NULL; | |
10838 | } | |
10839 | ||
10840 | ||
c32bde28 | 10841 | static PyObject *_wrap_Joystick_GetVMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10842 | PyObject *resultobj; |
10843 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10844 | int result; | |
10845 | PyObject * obj0 = 0 ; | |
10846 | char *kwnames[] = { | |
10847 | (char *) "self", NULL | |
10848 | }; | |
10849 | ||
10850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMin",kwnames,&obj0)) goto fail; | |
10851 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10852 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10853 | { | |
10854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10855 | result = (int)(arg1)->GetVMin(); | |
10856 | ||
10857 | wxPyEndAllowThreads(__tstate); | |
10858 | if (PyErr_Occurred()) SWIG_fail; | |
10859 | } | |
c32bde28 | 10860 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10861 | return resultobj; |
10862 | fail: | |
10863 | return NULL; | |
10864 | } | |
10865 | ||
10866 | ||
c32bde28 | 10867 | static PyObject *_wrap_Joystick_GetVMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10868 | PyObject *resultobj; |
10869 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10870 | int result; | |
10871 | PyObject * obj0 = 0 ; | |
10872 | char *kwnames[] = { | |
10873 | (char *) "self", NULL | |
10874 | }; | |
10875 | ||
10876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMax",kwnames,&obj0)) goto fail; | |
10877 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10878 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10879 | { | |
10880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10881 | result = (int)(arg1)->GetVMax(); | |
10882 | ||
10883 | wxPyEndAllowThreads(__tstate); | |
10884 | if (PyErr_Occurred()) SWIG_fail; | |
10885 | } | |
c32bde28 | 10886 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10887 | return resultobj; |
10888 | fail: | |
10889 | return NULL; | |
10890 | } | |
10891 | ||
10892 | ||
c32bde28 | 10893 | static PyObject *_wrap_Joystick_HasRudder(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10894 | PyObject *resultobj; |
10895 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10896 | bool result; | |
10897 | PyObject * obj0 = 0 ; | |
10898 | char *kwnames[] = { | |
10899 | (char *) "self", NULL | |
10900 | }; | |
10901 | ||
10902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasRudder",kwnames,&obj0)) goto fail; | |
10903 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10904 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10905 | { | |
10906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10907 | result = (bool)(arg1)->HasRudder(); | |
10908 | ||
10909 | wxPyEndAllowThreads(__tstate); | |
10910 | if (PyErr_Occurred()) SWIG_fail; | |
10911 | } | |
10912 | { | |
10913 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10914 | } | |
10915 | return resultobj; | |
10916 | fail: | |
10917 | return NULL; | |
10918 | } | |
10919 | ||
10920 | ||
c32bde28 | 10921 | static PyObject *_wrap_Joystick_HasZ(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10922 | PyObject *resultobj; |
10923 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10924 | bool result; | |
10925 | PyObject * obj0 = 0 ; | |
10926 | char *kwnames[] = { | |
10927 | (char *) "self", NULL | |
10928 | }; | |
10929 | ||
10930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasZ",kwnames,&obj0)) goto fail; | |
10931 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10932 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10933 | { | |
10934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10935 | result = (bool)(arg1)->HasZ(); | |
10936 | ||
10937 | wxPyEndAllowThreads(__tstate); | |
10938 | if (PyErr_Occurred()) SWIG_fail; | |
10939 | } | |
10940 | { | |
10941 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10942 | } | |
10943 | return resultobj; | |
10944 | fail: | |
10945 | return NULL; | |
10946 | } | |
10947 | ||
10948 | ||
c32bde28 | 10949 | static PyObject *_wrap_Joystick_HasU(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10950 | PyObject *resultobj; |
10951 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10952 | bool result; | |
10953 | PyObject * obj0 = 0 ; | |
10954 | char *kwnames[] = { | |
10955 | (char *) "self", NULL | |
10956 | }; | |
10957 | ||
10958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasU",kwnames,&obj0)) goto fail; | |
10959 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10960 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10961 | { | |
10962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10963 | result = (bool)(arg1)->HasU(); | |
10964 | ||
10965 | wxPyEndAllowThreads(__tstate); | |
10966 | if (PyErr_Occurred()) SWIG_fail; | |
10967 | } | |
10968 | { | |
10969 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10970 | } | |
10971 | return resultobj; | |
10972 | fail: | |
10973 | return NULL; | |
10974 | } | |
10975 | ||
10976 | ||
c32bde28 | 10977 | static PyObject *_wrap_Joystick_HasV(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10978 | PyObject *resultobj; |
10979 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10980 | bool result; | |
10981 | PyObject * obj0 = 0 ; | |
10982 | char *kwnames[] = { | |
10983 | (char *) "self", NULL | |
10984 | }; | |
10985 | ||
10986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasV",kwnames,&obj0)) goto fail; | |
10987 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10988 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10989 | { | |
10990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10991 | result = (bool)(arg1)->HasV(); | |
10992 | ||
10993 | wxPyEndAllowThreads(__tstate); | |
10994 | if (PyErr_Occurred()) SWIG_fail; | |
10995 | } | |
10996 | { | |
10997 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10998 | } | |
10999 | return resultobj; | |
11000 | fail: | |
11001 | return NULL; | |
11002 | } | |
11003 | ||
11004 | ||
c32bde28 | 11005 | static PyObject *_wrap_Joystick_HasPOV(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11006 | PyObject *resultobj; |
11007 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11008 | bool result; | |
11009 | PyObject * obj0 = 0 ; | |
11010 | char *kwnames[] = { | |
11011 | (char *) "self", NULL | |
11012 | }; | |
11013 | ||
11014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV",kwnames,&obj0)) goto fail; | |
11015 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
11016 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11017 | { | |
11018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11019 | result = (bool)(arg1)->HasPOV(); | |
11020 | ||
11021 | wxPyEndAllowThreads(__tstate); | |
11022 | if (PyErr_Occurred()) SWIG_fail; | |
11023 | } | |
11024 | { | |
11025 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11026 | } | |
11027 | return resultobj; | |
11028 | fail: | |
11029 | return NULL; | |
11030 | } | |
11031 | ||
11032 | ||
c32bde28 | 11033 | static PyObject *_wrap_Joystick_HasPOV4Dir(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11034 | PyObject *resultobj; |
11035 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11036 | bool result; | |
11037 | PyObject * obj0 = 0 ; | |
11038 | char *kwnames[] = { | |
11039 | (char *) "self", NULL | |
11040 | }; | |
11041 | ||
11042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV4Dir",kwnames,&obj0)) goto fail; | |
11043 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
11044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11045 | { | |
11046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11047 | result = (bool)(arg1)->HasPOV4Dir(); | |
11048 | ||
11049 | wxPyEndAllowThreads(__tstate); | |
11050 | if (PyErr_Occurred()) SWIG_fail; | |
11051 | } | |
11052 | { | |
11053 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11054 | } | |
11055 | return resultobj; | |
11056 | fail: | |
11057 | return NULL; | |
11058 | } | |
11059 | ||
11060 | ||
c32bde28 | 11061 | static PyObject *_wrap_Joystick_HasPOVCTS(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11062 | PyObject *resultobj; |
11063 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11064 | bool result; | |
11065 | PyObject * obj0 = 0 ; | |
11066 | char *kwnames[] = { | |
11067 | (char *) "self", NULL | |
11068 | }; | |
11069 | ||
11070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOVCTS",kwnames,&obj0)) goto fail; | |
11071 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
11072 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11073 | { | |
11074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11075 | result = (bool)(arg1)->HasPOVCTS(); | |
11076 | ||
11077 | wxPyEndAllowThreads(__tstate); | |
11078 | if (PyErr_Occurred()) SWIG_fail; | |
11079 | } | |
11080 | { | |
11081 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11082 | } | |
11083 | return resultobj; | |
11084 | fail: | |
11085 | return NULL; | |
11086 | } | |
11087 | ||
11088 | ||
c32bde28 | 11089 | static PyObject *_wrap_Joystick_SetCapture(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11090 | PyObject *resultobj; |
11091 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11092 | wxWindow *arg2 = (wxWindow *) 0 ; | |
11093 | int arg3 = (int) 0 ; | |
11094 | bool result; | |
11095 | PyObject * obj0 = 0 ; | |
11096 | PyObject * obj1 = 0 ; | |
11097 | PyObject * obj2 = 0 ; | |
11098 | char *kwnames[] = { | |
11099 | (char *) "self",(char *) "win",(char *) "pollingFreq", NULL | |
11100 | }; | |
11101 | ||
11102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Joystick_SetCapture",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11103 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
11104 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11105 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
11106 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11107 | if (obj2) { | |
c32bde28 | 11108 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
11109 | if (PyErr_Occurred()) SWIG_fail; |
11110 | } | |
11111 | { | |
11112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11113 | result = (bool)(arg1)->SetCapture(arg2,arg3); | |
11114 | ||
11115 | wxPyEndAllowThreads(__tstate); | |
11116 | if (PyErr_Occurred()) SWIG_fail; | |
11117 | } | |
11118 | { | |
11119 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11120 | } | |
11121 | return resultobj; | |
11122 | fail: | |
11123 | return NULL; | |
11124 | } | |
11125 | ||
11126 | ||
c32bde28 | 11127 | static PyObject *_wrap_Joystick_ReleaseCapture(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11128 | PyObject *resultobj; |
11129 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11130 | bool result; | |
11131 | PyObject * obj0 = 0 ; | |
11132 | char *kwnames[] = { | |
11133 | (char *) "self", NULL | |
11134 | }; | |
11135 | ||
11136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_ReleaseCapture",kwnames,&obj0)) goto fail; | |
11137 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
11138 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11139 | { | |
11140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11141 | result = (bool)(arg1)->ReleaseCapture(); | |
11142 | ||
11143 | wxPyEndAllowThreads(__tstate); | |
11144 | if (PyErr_Occurred()) SWIG_fail; | |
11145 | } | |
11146 | { | |
11147 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11148 | } | |
11149 | return resultobj; | |
11150 | fail: | |
11151 | return NULL; | |
11152 | } | |
11153 | ||
11154 | ||
c32bde28 | 11155 | static PyObject * Joystick_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
11156 | PyObject *obj; |
11157 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11158 | SWIG_TypeClientData(SWIGTYPE_p_wxJoystick, obj); | |
11159 | Py_INCREF(obj); | |
11160 | return Py_BuildValue((char *)""); | |
11161 | } | |
c32bde28 | 11162 | static PyObject *_wrap_JoystickEvent_m_pos_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11163 | PyObject *resultobj; |
11164 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11165 | wxPoint *arg2 = (wxPoint *) 0 ; | |
11166 | PyObject * obj0 = 0 ; | |
11167 | PyObject * obj1 = 0 ; | |
11168 | char *kwnames[] = { | |
11169 | (char *) "self",(char *) "m_pos", NULL | |
11170 | }; | |
11171 | ||
11172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail; | |
11173 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11174 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11175 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint, | |
11176 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11177 | if (arg1) (arg1)->m_pos = *arg2; | |
11178 | ||
11179 | Py_INCREF(Py_None); resultobj = Py_None; | |
11180 | return resultobj; | |
11181 | fail: | |
11182 | return NULL; | |
11183 | } | |
11184 | ||
11185 | ||
c32bde28 | 11186 | static PyObject *_wrap_JoystickEvent_m_pos_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11187 | PyObject *resultobj; |
11188 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11189 | wxPoint *result; | |
11190 | PyObject * obj0 = 0 ; | |
11191 | char *kwnames[] = { | |
11192 | (char *) "self", NULL | |
11193 | }; | |
11194 | ||
11195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_pos_get",kwnames,&obj0)) goto fail; | |
11196 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11198 | result = (wxPoint *)& ((arg1)->m_pos); | |
11199 | ||
11200 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); | |
11201 | return resultobj; | |
11202 | fail: | |
11203 | return NULL; | |
11204 | } | |
11205 | ||
11206 | ||
c32bde28 | 11207 | static PyObject *_wrap_JoystickEvent_m_zPosition_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11208 | PyObject *resultobj; |
11209 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11210 | int arg2 ; | |
11211 | PyObject * obj0 = 0 ; | |
11212 | PyObject * obj1 = 0 ; | |
11213 | char *kwnames[] = { | |
11214 | (char *) "self",(char *) "m_zPosition", NULL | |
11215 | }; | |
11216 | ||
11217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_zPosition_set",kwnames,&obj0,&obj1)) goto fail; | |
11218 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11220 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11221 | if (PyErr_Occurred()) SWIG_fail; |
11222 | if (arg1) (arg1)->m_zPosition = arg2; | |
11223 | ||
11224 | Py_INCREF(Py_None); resultobj = Py_None; | |
11225 | return resultobj; | |
11226 | fail: | |
11227 | return NULL; | |
11228 | } | |
11229 | ||
11230 | ||
c32bde28 | 11231 | static PyObject *_wrap_JoystickEvent_m_zPosition_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11232 | PyObject *resultobj; |
11233 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11234 | int result; | |
11235 | PyObject * obj0 = 0 ; | |
11236 | char *kwnames[] = { | |
11237 | (char *) "self", NULL | |
11238 | }; | |
11239 | ||
11240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_zPosition_get",kwnames,&obj0)) goto fail; | |
11241 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11242 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11243 | result = (int) ((arg1)->m_zPosition); | |
11244 | ||
c32bde28 | 11245 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
11246 | return resultobj; |
11247 | fail: | |
11248 | return NULL; | |
11249 | } | |
11250 | ||
11251 | ||
c32bde28 | 11252 | static PyObject *_wrap_JoystickEvent_m_buttonChange_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11253 | PyObject *resultobj; |
11254 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11255 | int arg2 ; | |
11256 | PyObject * obj0 = 0 ; | |
11257 | PyObject * obj1 = 0 ; | |
11258 | char *kwnames[] = { | |
11259 | (char *) "self",(char *) "m_buttonChange", NULL | |
11260 | }; | |
11261 | ||
11262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonChange_set",kwnames,&obj0,&obj1)) goto fail; | |
11263 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11264 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11265 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11266 | if (PyErr_Occurred()) SWIG_fail; |
11267 | if (arg1) (arg1)->m_buttonChange = arg2; | |
11268 | ||
11269 | Py_INCREF(Py_None); resultobj = Py_None; | |
11270 | return resultobj; | |
11271 | fail: | |
11272 | return NULL; | |
11273 | } | |
11274 | ||
11275 | ||
c32bde28 | 11276 | static PyObject *_wrap_JoystickEvent_m_buttonChange_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11277 | PyObject *resultobj; |
11278 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11279 | int result; | |
11280 | PyObject * obj0 = 0 ; | |
11281 | char *kwnames[] = { | |
11282 | (char *) "self", NULL | |
11283 | }; | |
11284 | ||
11285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonChange_get",kwnames,&obj0)) goto fail; | |
11286 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11287 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11288 | result = (int) ((arg1)->m_buttonChange); | |
11289 | ||
c32bde28 | 11290 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
11291 | return resultobj; |
11292 | fail: | |
11293 | return NULL; | |
11294 | } | |
11295 | ||
11296 | ||
c32bde28 | 11297 | static PyObject *_wrap_JoystickEvent_m_buttonState_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11298 | PyObject *resultobj; |
11299 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11300 | int arg2 ; | |
11301 | PyObject * obj0 = 0 ; | |
11302 | PyObject * obj1 = 0 ; | |
11303 | char *kwnames[] = { | |
11304 | (char *) "self",(char *) "m_buttonState", NULL | |
11305 | }; | |
11306 | ||
11307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonState_set",kwnames,&obj0,&obj1)) goto fail; | |
11308 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11309 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11310 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11311 | if (PyErr_Occurred()) SWIG_fail; |
11312 | if (arg1) (arg1)->m_buttonState = arg2; | |
11313 | ||
11314 | Py_INCREF(Py_None); resultobj = Py_None; | |
11315 | return resultobj; | |
11316 | fail: | |
11317 | return NULL; | |
11318 | } | |
11319 | ||
11320 | ||
c32bde28 | 11321 | static PyObject *_wrap_JoystickEvent_m_buttonState_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11322 | PyObject *resultobj; |
11323 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11324 | int result; | |
11325 | PyObject * obj0 = 0 ; | |
11326 | char *kwnames[] = { | |
11327 | (char *) "self", NULL | |
11328 | }; | |
11329 | ||
11330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonState_get",kwnames,&obj0)) goto fail; | |
11331 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11332 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11333 | result = (int) ((arg1)->m_buttonState); | |
11334 | ||
c32bde28 | 11335 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
11336 | return resultobj; |
11337 | fail: | |
11338 | return NULL; | |
11339 | } | |
11340 | ||
11341 | ||
c32bde28 | 11342 | static PyObject *_wrap_JoystickEvent_m_joyStick_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11343 | PyObject *resultobj; |
11344 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11345 | int arg2 ; | |
11346 | PyObject * obj0 = 0 ; | |
11347 | PyObject * obj1 = 0 ; | |
11348 | char *kwnames[] = { | |
11349 | (char *) "self",(char *) "m_joyStick", NULL | |
11350 | }; | |
11351 | ||
11352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_joyStick_set",kwnames,&obj0,&obj1)) goto fail; | |
11353 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11354 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11355 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11356 | if (PyErr_Occurred()) SWIG_fail; |
11357 | if (arg1) (arg1)->m_joyStick = arg2; | |
11358 | ||
11359 | Py_INCREF(Py_None); resultobj = Py_None; | |
11360 | return resultobj; | |
11361 | fail: | |
11362 | return NULL; | |
11363 | } | |
11364 | ||
11365 | ||
c32bde28 | 11366 | static PyObject *_wrap_JoystickEvent_m_joyStick_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11367 | PyObject *resultobj; |
11368 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11369 | int result; | |
11370 | PyObject * obj0 = 0 ; | |
11371 | char *kwnames[] = { | |
11372 | (char *) "self", NULL | |
11373 | }; | |
11374 | ||
11375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_joyStick_get",kwnames,&obj0)) goto fail; | |
11376 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11377 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11378 | result = (int) ((arg1)->m_joyStick); | |
11379 | ||
c32bde28 | 11380 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
11381 | return resultobj; |
11382 | fail: | |
11383 | return NULL; | |
11384 | } | |
11385 | ||
11386 | ||
c32bde28 | 11387 | static PyObject *_wrap_new_JoystickEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11388 | PyObject *resultobj; |
11389 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
11390 | int arg2 = (int) 0 ; | |
11391 | int arg3 = (int) wxJOYSTICK1 ; | |
11392 | int arg4 = (int) 0 ; | |
11393 | wxJoystickEvent *result; | |
11394 | PyObject * obj0 = 0 ; | |
11395 | PyObject * obj1 = 0 ; | |
11396 | PyObject * obj2 = 0 ; | |
11397 | PyObject * obj3 = 0 ; | |
11398 | char *kwnames[] = { | |
11399 | (char *) "type",(char *) "state",(char *) "joystick",(char *) "change", NULL | |
11400 | }; | |
11401 | ||
11402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_JoystickEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
11403 | if (obj0) { | |
c32bde28 | 11404 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
11405 | if (PyErr_Occurred()) SWIG_fail; |
11406 | } | |
11407 | if (obj1) { | |
c32bde28 | 11408 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11409 | if (PyErr_Occurred()) SWIG_fail; |
11410 | } | |
11411 | if (obj2) { | |
c32bde28 | 11412 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
11413 | if (PyErr_Occurred()) SWIG_fail; |
11414 | } | |
11415 | if (obj3) { | |
c32bde28 | 11416 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
11417 | if (PyErr_Occurred()) SWIG_fail; |
11418 | } | |
11419 | { | |
11420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11421 | result = (wxJoystickEvent *)new wxJoystickEvent(arg1,arg2,arg3,arg4); | |
11422 | ||
11423 | wxPyEndAllowThreads(__tstate); | |
11424 | if (PyErr_Occurred()) SWIG_fail; | |
11425 | } | |
11426 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystickEvent, 1); | |
11427 | return resultobj; | |
11428 | fail: | |
11429 | return NULL; | |
11430 | } | |
11431 | ||
11432 | ||
c32bde28 | 11433 | static PyObject *_wrap_JoystickEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11434 | PyObject *resultobj; |
11435 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11436 | wxPoint result; | |
11437 | PyObject * obj0 = 0 ; | |
11438 | char *kwnames[] = { | |
11439 | (char *) "self", NULL | |
11440 | }; | |
11441 | ||
11442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetPosition",kwnames,&obj0)) goto fail; | |
11443 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11444 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11445 | { | |
11446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11447 | result = ((wxJoystickEvent const *)arg1)->GetPosition(); | |
11448 | ||
11449 | wxPyEndAllowThreads(__tstate); | |
11450 | if (PyErr_Occurred()) SWIG_fail; | |
11451 | } | |
11452 | { | |
11453 | wxPoint * resultptr; | |
11454 | resultptr = new wxPoint((wxPoint &) result); | |
11455 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
11456 | } | |
11457 | return resultobj; | |
11458 | fail: | |
11459 | return NULL; | |
11460 | } | |
11461 | ||
11462 | ||
c32bde28 | 11463 | static PyObject *_wrap_JoystickEvent_GetZPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11464 | PyObject *resultobj; |
11465 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11466 | int result; | |
11467 | PyObject * obj0 = 0 ; | |
11468 | char *kwnames[] = { | |
11469 | (char *) "self", NULL | |
11470 | }; | |
11471 | ||
11472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetZPosition",kwnames,&obj0)) goto fail; | |
11473 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11474 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11475 | { | |
11476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11477 | result = (int)((wxJoystickEvent const *)arg1)->GetZPosition(); | |
11478 | ||
11479 | wxPyEndAllowThreads(__tstate); | |
11480 | if (PyErr_Occurred()) SWIG_fail; | |
11481 | } | |
c32bde28 | 11482 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
11483 | return resultobj; |
11484 | fail: | |
11485 | return NULL; | |
11486 | } | |
11487 | ||
11488 | ||
c32bde28 | 11489 | static PyObject *_wrap_JoystickEvent_GetButtonState(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11490 | PyObject *resultobj; |
11491 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11492 | int result; | |
11493 | PyObject * obj0 = 0 ; | |
11494 | char *kwnames[] = { | |
11495 | (char *) "self", NULL | |
11496 | }; | |
11497 | ||
11498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonState",kwnames,&obj0)) goto fail; | |
11499 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11500 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11501 | { | |
11502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11503 | result = (int)((wxJoystickEvent const *)arg1)->GetButtonState(); | |
11504 | ||
11505 | wxPyEndAllowThreads(__tstate); | |
11506 | if (PyErr_Occurred()) SWIG_fail; | |
11507 | } | |
c32bde28 | 11508 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
11509 | return resultobj; |
11510 | fail: | |
11511 | return NULL; | |
11512 | } | |
11513 | ||
11514 | ||
c32bde28 | 11515 | static PyObject *_wrap_JoystickEvent_GetButtonChange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11516 | PyObject *resultobj; |
11517 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11518 | int result; | |
11519 | PyObject * obj0 = 0 ; | |
11520 | char *kwnames[] = { | |
11521 | (char *) "self", NULL | |
11522 | }; | |
11523 | ||
11524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonChange",kwnames,&obj0)) goto fail; | |
11525 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11526 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11527 | { | |
11528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11529 | result = (int)((wxJoystickEvent const *)arg1)->GetButtonChange(); | |
11530 | ||
11531 | wxPyEndAllowThreads(__tstate); | |
11532 | if (PyErr_Occurred()) SWIG_fail; | |
11533 | } | |
c32bde28 | 11534 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
11535 | return resultobj; |
11536 | fail: | |
11537 | return NULL; | |
11538 | } | |
11539 | ||
11540 | ||
c32bde28 | 11541 | static PyObject *_wrap_JoystickEvent_GetJoystick(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11542 | PyObject *resultobj; |
11543 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11544 | int result; | |
11545 | PyObject * obj0 = 0 ; | |
11546 | char *kwnames[] = { | |
11547 | (char *) "self", NULL | |
11548 | }; | |
11549 | ||
11550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetJoystick",kwnames,&obj0)) goto fail; | |
11551 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11553 | { | |
11554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11555 | result = (int)((wxJoystickEvent const *)arg1)->GetJoystick(); | |
11556 | ||
11557 | wxPyEndAllowThreads(__tstate); | |
11558 | if (PyErr_Occurred()) SWIG_fail; | |
11559 | } | |
c32bde28 | 11560 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
11561 | return resultobj; |
11562 | fail: | |
11563 | return NULL; | |
11564 | } | |
11565 | ||
11566 | ||
c32bde28 | 11567 | static PyObject *_wrap_JoystickEvent_SetJoystick(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11568 | PyObject *resultobj; |
11569 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11570 | int arg2 ; | |
11571 | PyObject * obj0 = 0 ; | |
11572 | PyObject * obj1 = 0 ; | |
11573 | char *kwnames[] = { | |
11574 | (char *) "self",(char *) "stick", NULL | |
11575 | }; | |
11576 | ||
11577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetJoystick",kwnames,&obj0,&obj1)) goto fail; | |
11578 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11579 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11580 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11581 | if (PyErr_Occurred()) SWIG_fail; |
11582 | { | |
11583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11584 | (arg1)->SetJoystick(arg2); | |
11585 | ||
11586 | wxPyEndAllowThreads(__tstate); | |
11587 | if (PyErr_Occurred()) SWIG_fail; | |
11588 | } | |
11589 | Py_INCREF(Py_None); resultobj = Py_None; | |
11590 | return resultobj; | |
11591 | fail: | |
11592 | return NULL; | |
11593 | } | |
11594 | ||
11595 | ||
c32bde28 | 11596 | static PyObject *_wrap_JoystickEvent_SetButtonState(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11597 | PyObject *resultobj; |
11598 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11599 | int arg2 ; | |
11600 | PyObject * obj0 = 0 ; | |
11601 | PyObject * obj1 = 0 ; | |
11602 | char *kwnames[] = { | |
11603 | (char *) "self",(char *) "state", NULL | |
11604 | }; | |
11605 | ||
11606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonState",kwnames,&obj0,&obj1)) goto fail; | |
11607 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11608 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11609 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11610 | if (PyErr_Occurred()) SWIG_fail; |
11611 | { | |
11612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11613 | (arg1)->SetButtonState(arg2); | |
11614 | ||
11615 | wxPyEndAllowThreads(__tstate); | |
11616 | if (PyErr_Occurred()) SWIG_fail; | |
11617 | } | |
11618 | Py_INCREF(Py_None); resultobj = Py_None; | |
11619 | return resultobj; | |
11620 | fail: | |
11621 | return NULL; | |
11622 | } | |
11623 | ||
11624 | ||
c32bde28 | 11625 | static PyObject *_wrap_JoystickEvent_SetButtonChange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11626 | PyObject *resultobj; |
11627 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11628 | int arg2 ; | |
11629 | PyObject * obj0 = 0 ; | |
11630 | PyObject * obj1 = 0 ; | |
11631 | char *kwnames[] = { | |
11632 | (char *) "self",(char *) "change", NULL | |
11633 | }; | |
11634 | ||
11635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonChange",kwnames,&obj0,&obj1)) goto fail; | |
11636 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11638 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11639 | if (PyErr_Occurred()) SWIG_fail; |
11640 | { | |
11641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11642 | (arg1)->SetButtonChange(arg2); | |
11643 | ||
11644 | wxPyEndAllowThreads(__tstate); | |
11645 | if (PyErr_Occurred()) SWIG_fail; | |
11646 | } | |
11647 | Py_INCREF(Py_None); resultobj = Py_None; | |
11648 | return resultobj; | |
11649 | fail: | |
11650 | return NULL; | |
11651 | } | |
11652 | ||
11653 | ||
c32bde28 | 11654 | static PyObject *_wrap_JoystickEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11655 | PyObject *resultobj; |
11656 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11657 | wxPoint *arg2 = 0 ; | |
11658 | wxPoint temp2 ; | |
11659 | PyObject * obj0 = 0 ; | |
11660 | PyObject * obj1 = 0 ; | |
11661 | char *kwnames[] = { | |
11662 | (char *) "self",(char *) "pos", NULL | |
11663 | }; | |
11664 | ||
11665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
11666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11668 | { | |
11669 | arg2 = &temp2; | |
11670 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11671 | } | |
11672 | { | |
11673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11674 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
11675 | ||
11676 | wxPyEndAllowThreads(__tstate); | |
11677 | if (PyErr_Occurred()) SWIG_fail; | |
11678 | } | |
11679 | Py_INCREF(Py_None); resultobj = Py_None; | |
11680 | return resultobj; | |
11681 | fail: | |
11682 | return NULL; | |
11683 | } | |
11684 | ||
11685 | ||
c32bde28 | 11686 | static PyObject *_wrap_JoystickEvent_SetZPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11687 | PyObject *resultobj; |
11688 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11689 | int arg2 ; | |
11690 | PyObject * obj0 = 0 ; | |
11691 | PyObject * obj1 = 0 ; | |
11692 | char *kwnames[] = { | |
11693 | (char *) "self",(char *) "zPos", NULL | |
11694 | }; | |
11695 | ||
11696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetZPosition",kwnames,&obj0,&obj1)) goto fail; | |
11697 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11698 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11699 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11700 | if (PyErr_Occurred()) SWIG_fail; |
11701 | { | |
11702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11703 | (arg1)->SetZPosition(arg2); | |
11704 | ||
11705 | wxPyEndAllowThreads(__tstate); | |
11706 | if (PyErr_Occurred()) SWIG_fail; | |
11707 | } | |
11708 | Py_INCREF(Py_None); resultobj = Py_None; | |
11709 | return resultobj; | |
11710 | fail: | |
11711 | return NULL; | |
11712 | } | |
11713 | ||
11714 | ||
c32bde28 | 11715 | static PyObject *_wrap_JoystickEvent_IsButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11716 | PyObject *resultobj; |
11717 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11718 | bool result; | |
11719 | PyObject * obj0 = 0 ; | |
11720 | char *kwnames[] = { | |
11721 | (char *) "self", NULL | |
11722 | }; | |
11723 | ||
11724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsButton",kwnames,&obj0)) goto fail; | |
11725 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11727 | { | |
11728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11729 | result = (bool)((wxJoystickEvent const *)arg1)->IsButton(); | |
11730 | ||
11731 | wxPyEndAllowThreads(__tstate); | |
11732 | if (PyErr_Occurred()) SWIG_fail; | |
11733 | } | |
11734 | { | |
11735 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11736 | } | |
11737 | return resultobj; | |
11738 | fail: | |
11739 | return NULL; | |
11740 | } | |
11741 | ||
11742 | ||
c32bde28 | 11743 | static PyObject *_wrap_JoystickEvent_IsMove(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11744 | PyObject *resultobj; |
11745 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11746 | bool result; | |
11747 | PyObject * obj0 = 0 ; | |
11748 | char *kwnames[] = { | |
11749 | (char *) "self", NULL | |
11750 | }; | |
11751 | ||
11752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsMove",kwnames,&obj0)) goto fail; | |
11753 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11755 | { | |
11756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11757 | result = (bool)((wxJoystickEvent const *)arg1)->IsMove(); | |
11758 | ||
11759 | wxPyEndAllowThreads(__tstate); | |
11760 | if (PyErr_Occurred()) SWIG_fail; | |
11761 | } | |
11762 | { | |
11763 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11764 | } | |
11765 | return resultobj; | |
11766 | fail: | |
11767 | return NULL; | |
11768 | } | |
11769 | ||
11770 | ||
c32bde28 | 11771 | static PyObject *_wrap_JoystickEvent_IsZMove(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11772 | PyObject *resultobj; |
11773 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11774 | bool result; | |
11775 | PyObject * obj0 = 0 ; | |
11776 | char *kwnames[] = { | |
11777 | (char *) "self", NULL | |
11778 | }; | |
11779 | ||
11780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsZMove",kwnames,&obj0)) goto fail; | |
11781 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11782 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11783 | { | |
11784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11785 | result = (bool)((wxJoystickEvent const *)arg1)->IsZMove(); | |
11786 | ||
11787 | wxPyEndAllowThreads(__tstate); | |
11788 | if (PyErr_Occurred()) SWIG_fail; | |
11789 | } | |
11790 | { | |
11791 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11792 | } | |
11793 | return resultobj; | |
11794 | fail: | |
11795 | return NULL; | |
11796 | } | |
11797 | ||
11798 | ||
c32bde28 | 11799 | static PyObject *_wrap_JoystickEvent_ButtonDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11800 | PyObject *resultobj; |
11801 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11802 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
11803 | bool result; | |
11804 | PyObject * obj0 = 0 ; | |
11805 | PyObject * obj1 = 0 ; | |
11806 | char *kwnames[] = { | |
11807 | (char *) "self",(char *) "but", NULL | |
11808 | }; | |
11809 | ||
11810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail; | |
11811 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11812 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11813 | if (obj1) { | |
c32bde28 | 11814 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11815 | if (PyErr_Occurred()) SWIG_fail; |
11816 | } | |
11817 | { | |
11818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11819 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonDown(arg2); | |
11820 | ||
11821 | wxPyEndAllowThreads(__tstate); | |
11822 | if (PyErr_Occurred()) SWIG_fail; | |
11823 | } | |
11824 | { | |
11825 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11826 | } | |
11827 | return resultobj; | |
11828 | fail: | |
11829 | return NULL; | |
11830 | } | |
11831 | ||
11832 | ||
c32bde28 | 11833 | static PyObject *_wrap_JoystickEvent_ButtonUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11834 | PyObject *resultobj; |
11835 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11836 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
11837 | bool result; | |
11838 | PyObject * obj0 = 0 ; | |
11839 | PyObject * obj1 = 0 ; | |
11840 | char *kwnames[] = { | |
11841 | (char *) "self",(char *) "but", NULL | |
11842 | }; | |
11843 | ||
11844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail; | |
11845 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11846 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11847 | if (obj1) { | |
c32bde28 | 11848 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11849 | if (PyErr_Occurred()) SWIG_fail; |
11850 | } | |
11851 | { | |
11852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11853 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonUp(arg2); | |
11854 | ||
11855 | wxPyEndAllowThreads(__tstate); | |
11856 | if (PyErr_Occurred()) SWIG_fail; | |
11857 | } | |
11858 | { | |
11859 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11860 | } | |
11861 | return resultobj; | |
11862 | fail: | |
11863 | return NULL; | |
11864 | } | |
11865 | ||
11866 | ||
c32bde28 | 11867 | static PyObject *_wrap_JoystickEvent_ButtonIsDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11868 | PyObject *resultobj; |
11869 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11870 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
11871 | bool result; | |
11872 | PyObject * obj0 = 0 ; | |
11873 | PyObject * obj1 = 0 ; | |
11874 | char *kwnames[] = { | |
11875 | (char *) "self",(char *) "but", NULL | |
11876 | }; | |
11877 | ||
11878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail; | |
11879 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11880 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11881 | if (obj1) { | |
c32bde28 | 11882 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11883 | if (PyErr_Occurred()) SWIG_fail; |
11884 | } | |
11885 | { | |
11886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11887 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonIsDown(arg2); | |
11888 | ||
11889 | wxPyEndAllowThreads(__tstate); | |
11890 | if (PyErr_Occurred()) SWIG_fail; | |
11891 | } | |
11892 | { | |
11893 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11894 | } | |
11895 | return resultobj; | |
11896 | fail: | |
11897 | return NULL; | |
11898 | } | |
11899 | ||
11900 | ||
c32bde28 | 11901 | static PyObject * JoystickEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
11902 | PyObject *obj; |
11903 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11904 | SWIG_TypeClientData(SWIGTYPE_p_wxJoystickEvent, obj); | |
11905 | Py_INCREF(obj); | |
11906 | return Py_BuildValue((char *)""); | |
11907 | } | |
c32bde28 | 11908 | static PyObject *_wrap_new_Sound(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 11909 | PyObject *resultobj; |
b1f29bf7 RD |
11910 | wxString const &arg1_defvalue = wxPyEmptyString ; |
11911 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
d55e5bfc | 11912 | wxSound *result; |
ae8162c8 | 11913 | bool temp1 = false ; |
d55e5bfc | 11914 | PyObject * obj0 = 0 ; |
b1f29bf7 RD |
11915 | char *kwnames[] = { |
11916 | (char *) "fileName", NULL | |
11917 | }; | |
d55e5bfc | 11918 | |
b1f29bf7 RD |
11919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Sound",kwnames,&obj0)) goto fail; |
11920 | if (obj0) { | |
11921 | { | |
11922 | arg1 = wxString_in_helper(obj0); | |
11923 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 11924 | temp1 = true; |
b1f29bf7 | 11925 | } |
d55e5bfc RD |
11926 | } |
11927 | { | |
0439c23b | 11928 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 11929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1f29bf7 | 11930 | result = (wxSound *)new_wxSound((wxString const &)*arg1); |
d55e5bfc RD |
11931 | |
11932 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11933 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
11934 | } |
11935 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1); | |
11936 | { | |
11937 | if (temp1) | |
11938 | delete arg1; | |
11939 | } | |
11940 | return resultobj; | |
11941 | fail: | |
11942 | { | |
11943 | if (temp1) | |
11944 | delete arg1; | |
11945 | } | |
11946 | return NULL; | |
11947 | } | |
11948 | ||
11949 | ||
c32bde28 | 11950 | static PyObject *_wrap_new_SoundFromData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 11951 | PyObject *resultobj; |
b1f29bf7 | 11952 | PyObject *arg1 = (PyObject *) 0 ; |
d55e5bfc RD |
11953 | wxSound *result; |
11954 | PyObject * obj0 = 0 ; | |
b1f29bf7 RD |
11955 | char *kwnames[] = { |
11956 | (char *) "data", NULL | |
11957 | }; | |
d55e5bfc | 11958 | |
b1f29bf7 RD |
11959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_SoundFromData",kwnames,&obj0)) goto fail; |
11960 | arg1 = obj0; | |
d55e5bfc | 11961 | { |
0439c23b | 11962 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 11963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1f29bf7 | 11964 | result = (wxSound *)new_wxSound(arg1); |
d55e5bfc RD |
11965 | |
11966 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11967 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
11968 | } |
11969 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1); | |
11970 | return resultobj; | |
11971 | fail: | |
11972 | return NULL; | |
11973 | } | |
11974 | ||
11975 | ||
c32bde28 | 11976 | static PyObject *_wrap_delete_Sound(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11977 | PyObject *resultobj; |
11978 | wxSound *arg1 = (wxSound *) 0 ; | |
11979 | PyObject * obj0 = 0 ; | |
11980 | char *kwnames[] = { | |
11981 | (char *) "self", NULL | |
11982 | }; | |
11983 | ||
11984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Sound",kwnames,&obj0)) goto fail; | |
11985 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, | |
11986 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11987 | { | |
11988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11989 | delete arg1; | |
11990 | ||
11991 | wxPyEndAllowThreads(__tstate); | |
11992 | if (PyErr_Occurred()) SWIG_fail; | |
11993 | } | |
11994 | Py_INCREF(Py_None); resultobj = Py_None; | |
11995 | return resultobj; | |
11996 | fail: | |
11997 | return NULL; | |
11998 | } | |
11999 | ||
12000 | ||
c32bde28 | 12001 | static PyObject *_wrap_Sound_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12002 | PyObject *resultobj; |
12003 | wxSound *arg1 = (wxSound *) 0 ; | |
12004 | wxString *arg2 = 0 ; | |
d55e5bfc | 12005 | bool result; |
ae8162c8 | 12006 | bool temp2 = false ; |
d55e5bfc RD |
12007 | PyObject * obj0 = 0 ; |
12008 | PyObject * obj1 = 0 ; | |
b1f29bf7 RD |
12009 | char *kwnames[] = { |
12010 | (char *) "self",(char *) "fileName", NULL | |
12011 | }; | |
d55e5bfc | 12012 | |
b1f29bf7 | 12013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_Create",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
12014 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, |
12015 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12016 | { | |
12017 | arg2 = wxString_in_helper(obj1); | |
12018 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 12019 | temp2 = true; |
d55e5bfc | 12020 | } |
d55e5bfc RD |
12021 | { |
12022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b1f29bf7 | 12023 | result = (bool)(arg1)->Create((wxString const &)*arg2); |
d55e5bfc RD |
12024 | |
12025 | wxPyEndAllowThreads(__tstate); | |
12026 | if (PyErr_Occurred()) SWIG_fail; | |
12027 | } | |
12028 | { | |
12029 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12030 | } | |
12031 | { | |
12032 | if (temp2) | |
12033 | delete arg2; | |
12034 | } | |
12035 | return resultobj; | |
12036 | fail: | |
12037 | { | |
12038 | if (temp2) | |
12039 | delete arg2; | |
12040 | } | |
12041 | return NULL; | |
12042 | } | |
12043 | ||
12044 | ||
c32bde28 | 12045 | static PyObject *_wrap_Sound_CreateFromData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12046 | PyObject *resultobj; |
12047 | wxSound *arg1 = (wxSound *) 0 ; | |
b1f29bf7 | 12048 | PyObject *arg2 = (PyObject *) 0 ; |
d55e5bfc RD |
12049 | bool result; |
12050 | PyObject * obj0 = 0 ; | |
12051 | PyObject * obj1 = 0 ; | |
b1f29bf7 RD |
12052 | char *kwnames[] = { |
12053 | (char *) "self",(char *) "data", NULL | |
12054 | }; | |
d55e5bfc | 12055 | |
b1f29bf7 | 12056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_CreateFromData",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
12057 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, |
12058 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
b1f29bf7 | 12059 | arg2 = obj1; |
d55e5bfc RD |
12060 | { |
12061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b1f29bf7 | 12062 | result = (bool)wxSound_CreateFromData(arg1,arg2); |
d55e5bfc RD |
12063 | |
12064 | wxPyEndAllowThreads(__tstate); | |
12065 | if (PyErr_Occurred()) SWIG_fail; | |
12066 | } | |
12067 | { | |
12068 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12069 | } | |
12070 | return resultobj; | |
12071 | fail: | |
12072 | return NULL; | |
12073 | } | |
12074 | ||
12075 | ||
c32bde28 | 12076 | static PyObject *_wrap_Sound_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12077 | PyObject *resultobj; |
12078 | wxSound *arg1 = (wxSound *) 0 ; | |
12079 | bool result; | |
12080 | PyObject * obj0 = 0 ; | |
12081 | char *kwnames[] = { | |
12082 | (char *) "self", NULL | |
12083 | }; | |
12084 | ||
12085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sound_IsOk",kwnames,&obj0)) goto fail; | |
12086 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, | |
12087 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12088 | { | |
12089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12090 | result = (bool)(arg1)->IsOk(); | |
12091 | ||
12092 | wxPyEndAllowThreads(__tstate); | |
12093 | if (PyErr_Occurred()) SWIG_fail; | |
12094 | } | |
12095 | { | |
12096 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12097 | } | |
12098 | return resultobj; | |
12099 | fail: | |
12100 | return NULL; | |
12101 | } | |
12102 | ||
12103 | ||
c32bde28 | 12104 | static PyObject *_wrap_Sound_Play(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12105 | PyObject *resultobj; |
12106 | wxSound *arg1 = (wxSound *) 0 ; | |
12107 | unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ; | |
12108 | bool result; | |
12109 | PyObject * obj0 = 0 ; | |
12110 | PyObject * obj1 = 0 ; | |
b1f29bf7 RD |
12111 | char *kwnames[] = { |
12112 | (char *) "self",(char *) "flags", NULL | |
12113 | }; | |
d55e5bfc | 12114 | |
b1f29bf7 | 12115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_Play",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
12116 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, |
12117 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12118 | if (obj1) { | |
c32bde28 | 12119 | arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1); |
d55e5bfc RD |
12120 | if (PyErr_Occurred()) SWIG_fail; |
12121 | } | |
12122 | { | |
0439c23b | 12123 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
12124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12125 | result = (bool)((wxSound const *)arg1)->Play(arg2); | |
12126 | ||
12127 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12128 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
12129 | } |
12130 | { | |
12131 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12132 | } | |
12133 | return resultobj; | |
12134 | fail: | |
12135 | return NULL; | |
12136 | } | |
12137 | ||
12138 | ||
c32bde28 | 12139 | static PyObject *_wrap_Sound_PlaySound(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12140 | PyObject *resultobj; |
12141 | wxString *arg1 = 0 ; | |
12142 | unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ; | |
12143 | bool result; | |
ae8162c8 | 12144 | bool temp1 = false ; |
d55e5bfc RD |
12145 | PyObject * obj0 = 0 ; |
12146 | PyObject * obj1 = 0 ; | |
b1f29bf7 RD |
12147 | char *kwnames[] = { |
12148 | (char *) "filename",(char *) "flags", NULL | |
12149 | }; | |
d55e5bfc | 12150 | |
b1f29bf7 | 12151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_PlaySound",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
12152 | { |
12153 | arg1 = wxString_in_helper(obj0); | |
12154 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 12155 | temp1 = true; |
d55e5bfc RD |
12156 | } |
12157 | if (obj1) { | |
c32bde28 | 12158 | arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1); |
d55e5bfc RD |
12159 | if (PyErr_Occurred()) SWIG_fail; |
12160 | } | |
12161 | { | |
0439c23b | 12162 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
12163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12164 | result = (bool)wxSound::Play((wxString const &)*arg1,arg2); | |
12165 | ||
12166 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12167 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
12168 | } |
12169 | { | |
12170 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12171 | } | |
12172 | { | |
12173 | if (temp1) | |
12174 | delete arg1; | |
12175 | } | |
12176 | return resultobj; | |
12177 | fail: | |
12178 | { | |
12179 | if (temp1) | |
12180 | delete arg1; | |
12181 | } | |
12182 | return NULL; | |
12183 | } | |
12184 | ||
12185 | ||
c32bde28 | 12186 | static PyObject *_wrap_Sound_Stop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12187 | PyObject *resultobj; |
12188 | char *kwnames[] = { | |
12189 | NULL | |
12190 | }; | |
12191 | ||
12192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Sound_Stop",kwnames)) goto fail; | |
12193 | { | |
0439c23b | 12194 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
12195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12196 | wxSound::Stop(); | |
12197 | ||
12198 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12199 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
12200 | } |
12201 | Py_INCREF(Py_None); resultobj = Py_None; | |
12202 | return resultobj; | |
12203 | fail: | |
12204 | return NULL; | |
12205 | } | |
12206 | ||
12207 | ||
c32bde28 | 12208 | static PyObject * Sound_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
12209 | PyObject *obj; |
12210 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12211 | SWIG_TypeClientData(SWIGTYPE_p_wxSound, obj); | |
12212 | Py_INCREF(obj); | |
12213 | return Py_BuildValue((char *)""); | |
12214 | } | |
c32bde28 | 12215 | static PyObject *_wrap_new_FileTypeInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12216 | PyObject *resultobj; |
12217 | wxString *arg1 = 0 ; | |
12218 | wxString *arg2 = 0 ; | |
12219 | wxString *arg3 = 0 ; | |
12220 | wxString *arg4 = 0 ; | |
12221 | wxFileTypeInfo *result; | |
ae8162c8 RD |
12222 | bool temp1 = false ; |
12223 | bool temp2 = false ; | |
12224 | bool temp3 = false ; | |
12225 | bool temp4 = false ; | |
d55e5bfc RD |
12226 | PyObject * obj0 = 0 ; |
12227 | PyObject * obj1 = 0 ; | |
12228 | PyObject * obj2 = 0 ; | |
12229 | PyObject * obj3 = 0 ; | |
12230 | char *kwnames[] = { | |
12231 | (char *) "mimeType",(char *) "openCmd",(char *) "printCmd",(char *) "desc", NULL | |
12232 | }; | |
12233 | ||
12234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileTypeInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
12235 | { | |
12236 | arg1 = wxString_in_helper(obj0); | |
12237 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 12238 | temp1 = true; |
d55e5bfc RD |
12239 | } |
12240 | { | |
12241 | arg2 = wxString_in_helper(obj1); | |
12242 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 12243 | temp2 = true; |
d55e5bfc RD |
12244 | } |
12245 | { | |
12246 | arg3 = wxString_in_helper(obj2); | |
12247 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 12248 | temp3 = true; |
d55e5bfc RD |
12249 | } |
12250 | { | |
12251 | arg4 = wxString_in_helper(obj3); | |
12252 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 12253 | temp4 = true; |
d55e5bfc RD |
12254 | } |
12255 | { | |
12256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12257 | result = (wxFileTypeInfo *)new wxFileTypeInfo((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
12258 | ||
12259 | wxPyEndAllowThreads(__tstate); | |
12260 | if (PyErr_Occurred()) SWIG_fail; | |
12261 | } | |
12262 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); | |
12263 | { | |
12264 | if (temp1) | |
12265 | delete arg1; | |
12266 | } | |
12267 | { | |
12268 | if (temp2) | |
12269 | delete arg2; | |
12270 | } | |
12271 | { | |
12272 | if (temp3) | |
12273 | delete arg3; | |
12274 | } | |
12275 | { | |
12276 | if (temp4) | |
12277 | delete arg4; | |
12278 | } | |
12279 | return resultobj; | |
12280 | fail: | |
12281 | { | |
12282 | if (temp1) | |
12283 | delete arg1; | |
12284 | } | |
12285 | { | |
12286 | if (temp2) | |
12287 | delete arg2; | |
12288 | } | |
12289 | { | |
12290 | if (temp3) | |
12291 | delete arg3; | |
12292 | } | |
12293 | { | |
12294 | if (temp4) | |
12295 | delete arg4; | |
12296 | } | |
12297 | return NULL; | |
12298 | } | |
12299 | ||
12300 | ||
c32bde28 | 12301 | static PyObject *_wrap_new_FileTypeInfoSequence(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12302 | PyObject *resultobj; |
12303 | wxArrayString *arg1 = 0 ; | |
12304 | wxFileTypeInfo *result; | |
ae8162c8 | 12305 | bool temp1 = false ; |
d55e5bfc RD |
12306 | PyObject * obj0 = 0 ; |
12307 | char *kwnames[] = { | |
12308 | (char *) "sArray", NULL | |
12309 | }; | |
12310 | ||
12311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileTypeInfoSequence",kwnames,&obj0)) goto fail; | |
12312 | { | |
12313 | if (! PySequence_Check(obj0)) { | |
12314 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
12315 | SWIG_fail; | |
12316 | } | |
12317 | arg1 = new wxArrayString; | |
ae8162c8 | 12318 | temp1 = true; |
d55e5bfc RD |
12319 | int i, len=PySequence_Length(obj0); |
12320 | for (i=0; i<len; i++) { | |
12321 | PyObject* item = PySequence_GetItem(obj0, i); | |
12322 | #if wxUSE_UNICODE | |
12323 | PyObject* str = PyObject_Unicode(item); | |
12324 | #else | |
12325 | PyObject* str = PyObject_Str(item); | |
12326 | #endif | |
12327 | if (PyErr_Occurred()) SWIG_fail; | |
12328 | arg1->Add(Py2wxString(str)); | |
12329 | Py_DECREF(item); | |
12330 | Py_DECREF(str); | |
12331 | } | |
12332 | } | |
12333 | { | |
12334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12335 | result = (wxFileTypeInfo *)new wxFileTypeInfo((wxArrayString const &)*arg1); | |
12336 | ||
12337 | wxPyEndAllowThreads(__tstate); | |
12338 | if (PyErr_Occurred()) SWIG_fail; | |
12339 | } | |
12340 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); | |
12341 | { | |
12342 | if (temp1) delete arg1; | |
12343 | } | |
12344 | return resultobj; | |
12345 | fail: | |
12346 | { | |
12347 | if (temp1) delete arg1; | |
12348 | } | |
12349 | return NULL; | |
12350 | } | |
12351 | ||
12352 | ||
c32bde28 | 12353 | static PyObject *_wrap_new_NullFileTypeInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12354 | PyObject *resultobj; |
12355 | wxFileTypeInfo *result; | |
12356 | char *kwnames[] = { | |
12357 | NULL | |
12358 | }; | |
12359 | ||
12360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NullFileTypeInfo",kwnames)) goto fail; | |
12361 | { | |
12362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12363 | result = (wxFileTypeInfo *)new wxFileTypeInfo(); | |
12364 | ||
12365 | wxPyEndAllowThreads(__tstate); | |
12366 | if (PyErr_Occurred()) SWIG_fail; | |
12367 | } | |
12368 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); | |
12369 | return resultobj; | |
12370 | fail: | |
12371 | return NULL; | |
12372 | } | |
12373 | ||
12374 | ||
c32bde28 | 12375 | static PyObject *_wrap_FileTypeInfo_IsValid(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12376 | PyObject *resultobj; |
12377 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12378 | bool result; | |
12379 | PyObject * obj0 = 0 ; | |
12380 | char *kwnames[] = { | |
12381 | (char *) "self", NULL | |
12382 | }; | |
12383 | ||
12384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_IsValid",kwnames,&obj0)) goto fail; | |
12385 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12386 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12387 | { | |
12388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12389 | result = (bool)((wxFileTypeInfo const *)arg1)->IsValid(); | |
12390 | ||
12391 | wxPyEndAllowThreads(__tstate); | |
12392 | if (PyErr_Occurred()) SWIG_fail; | |
12393 | } | |
12394 | { | |
12395 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12396 | } | |
12397 | return resultobj; | |
12398 | fail: | |
12399 | return NULL; | |
12400 | } | |
12401 | ||
12402 | ||
c32bde28 | 12403 | static PyObject *_wrap_FileTypeInfo_SetIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12404 | PyObject *resultobj; |
12405 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12406 | wxString *arg2 = 0 ; | |
12407 | int arg3 = (int) 0 ; | |
ae8162c8 | 12408 | bool temp2 = false ; |
d55e5bfc RD |
12409 | PyObject * obj0 = 0 ; |
12410 | PyObject * obj1 = 0 ; | |
12411 | PyObject * obj2 = 0 ; | |
12412 | char *kwnames[] = { | |
12413 | (char *) "self",(char *) "iconFile",(char *) "iconIndex", NULL | |
12414 | }; | |
12415 | ||
12416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileTypeInfo_SetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12417 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12418 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12419 | { | |
12420 | arg2 = wxString_in_helper(obj1); | |
12421 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 12422 | temp2 = true; |
d55e5bfc RD |
12423 | } |
12424 | if (obj2) { | |
c32bde28 | 12425 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
12426 | if (PyErr_Occurred()) SWIG_fail; |
12427 | } | |
12428 | { | |
12429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12430 | (arg1)->SetIcon((wxString const &)*arg2,arg3); | |
12431 | ||
12432 | wxPyEndAllowThreads(__tstate); | |
12433 | if (PyErr_Occurred()) SWIG_fail; | |
12434 | } | |
12435 | Py_INCREF(Py_None); resultobj = Py_None; | |
12436 | { | |
12437 | if (temp2) | |
12438 | delete arg2; | |
12439 | } | |
12440 | return resultobj; | |
12441 | fail: | |
12442 | { | |
12443 | if (temp2) | |
12444 | delete arg2; | |
12445 | } | |
12446 | return NULL; | |
12447 | } | |
12448 | ||
12449 | ||
c32bde28 | 12450 | static PyObject *_wrap_FileTypeInfo_SetShortDesc(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12451 | PyObject *resultobj; |
12452 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12453 | wxString *arg2 = 0 ; | |
ae8162c8 | 12454 | bool temp2 = false ; |
d55e5bfc RD |
12455 | PyObject * obj0 = 0 ; |
12456 | PyObject * obj1 = 0 ; | |
12457 | char *kwnames[] = { | |
12458 | (char *) "self",(char *) "shortDesc", NULL | |
12459 | }; | |
12460 | ||
12461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileTypeInfo_SetShortDesc",kwnames,&obj0,&obj1)) goto fail; | |
12462 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12463 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12464 | { | |
12465 | arg2 = wxString_in_helper(obj1); | |
12466 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 12467 | temp2 = true; |
d55e5bfc RD |
12468 | } |
12469 | { | |
12470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12471 | (arg1)->SetShortDesc((wxString const &)*arg2); | |
12472 | ||
12473 | wxPyEndAllowThreads(__tstate); | |
12474 | if (PyErr_Occurred()) SWIG_fail; | |
12475 | } | |
12476 | Py_INCREF(Py_None); resultobj = Py_None; | |
12477 | { | |
12478 | if (temp2) | |
12479 | delete arg2; | |
12480 | } | |
12481 | return resultobj; | |
12482 | fail: | |
12483 | { | |
12484 | if (temp2) | |
12485 | delete arg2; | |
12486 | } | |
12487 | return NULL; | |
12488 | } | |
12489 | ||
12490 | ||
c32bde28 | 12491 | static PyObject *_wrap_FileTypeInfo_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12492 | PyObject *resultobj; |
12493 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12494 | wxString *result; | |
12495 | PyObject * obj0 = 0 ; | |
12496 | char *kwnames[] = { | |
12497 | (char *) "self", NULL | |
12498 | }; | |
12499 | ||
12500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetMimeType",kwnames,&obj0)) goto fail; | |
12501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12503 | { | |
12504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12505 | { | |
12506 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetMimeType(); | |
12507 | result = (wxString *) &_result_ref; | |
12508 | } | |
12509 | ||
12510 | wxPyEndAllowThreads(__tstate); | |
12511 | if (PyErr_Occurred()) SWIG_fail; | |
12512 | } | |
12513 | { | |
12514 | #if wxUSE_UNICODE | |
12515 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12516 | #else | |
12517 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12518 | #endif | |
12519 | } | |
12520 | return resultobj; | |
12521 | fail: | |
12522 | return NULL; | |
12523 | } | |
12524 | ||
12525 | ||
c32bde28 | 12526 | static PyObject *_wrap_FileTypeInfo_GetOpenCommand(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12527 | PyObject *resultobj; |
12528 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12529 | wxString *result; | |
12530 | PyObject * obj0 = 0 ; | |
12531 | char *kwnames[] = { | |
12532 | (char *) "self", NULL | |
12533 | }; | |
12534 | ||
12535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetOpenCommand",kwnames,&obj0)) goto fail; | |
12536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12538 | { | |
12539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12540 | { | |
12541 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetOpenCommand(); | |
12542 | result = (wxString *) &_result_ref; | |
12543 | } | |
12544 | ||
12545 | wxPyEndAllowThreads(__tstate); | |
12546 | if (PyErr_Occurred()) SWIG_fail; | |
12547 | } | |
12548 | { | |
12549 | #if wxUSE_UNICODE | |
12550 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12551 | #else | |
12552 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12553 | #endif | |
12554 | } | |
12555 | return resultobj; | |
12556 | fail: | |
12557 | return NULL; | |
12558 | } | |
12559 | ||
12560 | ||
c32bde28 | 12561 | static PyObject *_wrap_FileTypeInfo_GetPrintCommand(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12562 | PyObject *resultobj; |
12563 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12564 | wxString *result; | |
12565 | PyObject * obj0 = 0 ; | |
12566 | char *kwnames[] = { | |
12567 | (char *) "self", NULL | |
12568 | }; | |
12569 | ||
12570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetPrintCommand",kwnames,&obj0)) goto fail; | |
12571 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12572 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12573 | { | |
12574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12575 | { | |
12576 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetPrintCommand(); | |
12577 | result = (wxString *) &_result_ref; | |
12578 | } | |
12579 | ||
12580 | wxPyEndAllowThreads(__tstate); | |
12581 | if (PyErr_Occurred()) SWIG_fail; | |
12582 | } | |
12583 | { | |
12584 | #if wxUSE_UNICODE | |
12585 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12586 | #else | |
12587 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12588 | #endif | |
12589 | } | |
12590 | return resultobj; | |
12591 | fail: | |
12592 | return NULL; | |
12593 | } | |
12594 | ||
12595 | ||
c32bde28 | 12596 | static PyObject *_wrap_FileTypeInfo_GetShortDesc(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12597 | PyObject *resultobj; |
12598 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12599 | wxString *result; | |
12600 | PyObject * obj0 = 0 ; | |
12601 | char *kwnames[] = { | |
12602 | (char *) "self", NULL | |
12603 | }; | |
12604 | ||
12605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetShortDesc",kwnames,&obj0)) goto fail; | |
12606 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12607 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12608 | { | |
12609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12610 | { | |
12611 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetShortDesc(); | |
12612 | result = (wxString *) &_result_ref; | |
12613 | } | |
12614 | ||
12615 | wxPyEndAllowThreads(__tstate); | |
12616 | if (PyErr_Occurred()) SWIG_fail; | |
12617 | } | |
12618 | { | |
12619 | #if wxUSE_UNICODE | |
12620 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12621 | #else | |
12622 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12623 | #endif | |
12624 | } | |
12625 | return resultobj; | |
12626 | fail: | |
12627 | return NULL; | |
12628 | } | |
12629 | ||
12630 | ||
c32bde28 | 12631 | static PyObject *_wrap_FileTypeInfo_GetDescription(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12632 | PyObject *resultobj; |
12633 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12634 | wxString *result; | |
12635 | PyObject * obj0 = 0 ; | |
12636 | char *kwnames[] = { | |
12637 | (char *) "self", NULL | |
12638 | }; | |
12639 | ||
12640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetDescription",kwnames,&obj0)) goto fail; | |
12641 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12642 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12643 | { | |
12644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12645 | { | |
12646 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetDescription(); | |
12647 | result = (wxString *) &_result_ref; | |
12648 | } | |
12649 | ||
12650 | wxPyEndAllowThreads(__tstate); | |
12651 | if (PyErr_Occurred()) SWIG_fail; | |
12652 | } | |
12653 | { | |
12654 | #if wxUSE_UNICODE | |
12655 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12656 | #else | |
12657 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12658 | #endif | |
12659 | } | |
12660 | return resultobj; | |
12661 | fail: | |
12662 | return NULL; | |
12663 | } | |
12664 | ||
12665 | ||
c32bde28 | 12666 | static PyObject *_wrap_FileTypeInfo_GetExtensions(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12667 | PyObject *resultobj; |
12668 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12669 | wxArrayString *result; | |
12670 | PyObject * obj0 = 0 ; | |
12671 | char *kwnames[] = { | |
12672 | (char *) "self", NULL | |
12673 | }; | |
12674 | ||
12675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensions",kwnames,&obj0)) goto fail; | |
12676 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12677 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12678 | { | |
12679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12680 | { | |
12681 | wxArrayString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetExtensions(); | |
12682 | result = (wxArrayString *) &_result_ref; | |
12683 | } | |
12684 | ||
12685 | wxPyEndAllowThreads(__tstate); | |
12686 | if (PyErr_Occurred()) SWIG_fail; | |
12687 | } | |
12688 | { | |
12689 | resultobj = wxArrayString2PyList_helper(*result); | |
12690 | } | |
12691 | return resultobj; | |
12692 | fail: | |
12693 | return NULL; | |
12694 | } | |
12695 | ||
12696 | ||
c32bde28 | 12697 | static PyObject *_wrap_FileTypeInfo_GetExtensionsCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12698 | PyObject *resultobj; |
12699 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12700 | int result; | |
12701 | PyObject * obj0 = 0 ; | |
12702 | char *kwnames[] = { | |
12703 | (char *) "self", NULL | |
12704 | }; | |
12705 | ||
12706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensionsCount",kwnames,&obj0)) goto fail; | |
12707 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12708 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12709 | { | |
12710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12711 | result = (int)((wxFileTypeInfo const *)arg1)->GetExtensionsCount(); | |
12712 | ||
12713 | wxPyEndAllowThreads(__tstate); | |
12714 | if (PyErr_Occurred()) SWIG_fail; | |
12715 | } | |
c32bde28 | 12716 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
12717 | return resultobj; |
12718 | fail: | |
12719 | return NULL; | |
12720 | } | |
12721 | ||
12722 | ||
c32bde28 | 12723 | static PyObject *_wrap_FileTypeInfo_GetIconFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12724 | PyObject *resultobj; |
12725 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12726 | wxString *result; | |
12727 | PyObject * obj0 = 0 ; | |
12728 | char *kwnames[] = { | |
12729 | (char *) "self", NULL | |
12730 | }; | |
12731 | ||
12732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconFile",kwnames,&obj0)) goto fail; | |
12733 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12734 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12735 | { | |
12736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12737 | { | |
12738 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetIconFile(); | |
12739 | result = (wxString *) &_result_ref; | |
12740 | } | |
12741 | ||
12742 | wxPyEndAllowThreads(__tstate); | |
12743 | if (PyErr_Occurred()) SWIG_fail; | |
12744 | } | |
12745 | { | |
12746 | #if wxUSE_UNICODE | |
12747 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12748 | #else | |
12749 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12750 | #endif | |
12751 | } | |
12752 | return resultobj; | |
12753 | fail: | |
12754 | return NULL; | |
12755 | } | |
12756 | ||
12757 | ||
c32bde28 | 12758 | static PyObject *_wrap_FileTypeInfo_GetIconIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12759 | PyObject *resultobj; |
12760 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12761 | int result; | |
12762 | PyObject * obj0 = 0 ; | |
12763 | char *kwnames[] = { | |
12764 | (char *) "self", NULL | |
12765 | }; | |
12766 | ||
12767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconIndex",kwnames,&obj0)) goto fail; | |
12768 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12769 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12770 | { | |
12771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12772 | result = (int)((wxFileTypeInfo const *)arg1)->GetIconIndex(); | |
12773 | ||
12774 | wxPyEndAllowThreads(__tstate); | |
12775 | if (PyErr_Occurred()) SWIG_fail; | |
12776 | } | |
c32bde28 | 12777 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
12778 | return resultobj; |
12779 | fail: | |
12780 | return NULL; | |
12781 | } | |
12782 | ||
12783 | ||
c32bde28 | 12784 | static PyObject * FileTypeInfo_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
12785 | PyObject *obj; |
12786 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12787 | SWIG_TypeClientData(SWIGTYPE_p_wxFileTypeInfo, obj); | |
12788 | Py_INCREF(obj); | |
12789 | return Py_BuildValue((char *)""); | |
12790 | } | |
c32bde28 | 12791 | static PyObject *_wrap_new_FileType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12792 | PyObject *resultobj; |
12793 | wxFileTypeInfo *arg1 = 0 ; | |
12794 | wxFileType *result; | |
12795 | PyObject * obj0 = 0 ; | |
12796 | char *kwnames[] = { | |
12797 | (char *) "ftInfo", NULL | |
12798 | }; | |
12799 | ||
12800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileType",kwnames,&obj0)) goto fail; | |
12801 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12802 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12803 | SWIG_fail; | |
12804 | if (arg1 == NULL) { | |
12805 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12806 | SWIG_fail; | |
12807 | } | |
12808 | { | |
12809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12810 | result = (wxFileType *)new wxFileType((wxFileTypeInfo const &)*arg1); | |
12811 | ||
12812 | wxPyEndAllowThreads(__tstate); | |
12813 | if (PyErr_Occurred()) SWIG_fail; | |
12814 | } | |
12815 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); | |
12816 | return resultobj; | |
12817 | fail: | |
12818 | return NULL; | |
12819 | } | |
12820 | ||
12821 | ||
c32bde28 | 12822 | static PyObject *_wrap_delete_FileType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12823 | PyObject *resultobj; |
12824 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12825 | PyObject * obj0 = 0 ; | |
12826 | char *kwnames[] = { | |
12827 | (char *) "self", NULL | |
12828 | }; | |
12829 | ||
12830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileType",kwnames,&obj0)) goto fail; | |
12831 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12832 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12833 | { | |
12834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12835 | delete arg1; | |
12836 | ||
12837 | wxPyEndAllowThreads(__tstate); | |
12838 | if (PyErr_Occurred()) SWIG_fail; | |
12839 | } | |
12840 | Py_INCREF(Py_None); resultobj = Py_None; | |
12841 | return resultobj; | |
12842 | fail: | |
12843 | return NULL; | |
12844 | } | |
12845 | ||
12846 | ||
c32bde28 | 12847 | static PyObject *_wrap_FileType_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12848 | PyObject *resultobj; |
12849 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12850 | PyObject *result; | |
12851 | PyObject * obj0 = 0 ; | |
12852 | char *kwnames[] = { | |
12853 | (char *) "self", NULL | |
12854 | }; | |
12855 | ||
12856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeType",kwnames,&obj0)) goto fail; | |
12857 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12858 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12859 | { | |
12860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12861 | result = (PyObject *)wxFileType_GetMimeType(arg1); | |
12862 | ||
12863 | wxPyEndAllowThreads(__tstate); | |
12864 | if (PyErr_Occurred()) SWIG_fail; | |
12865 | } | |
12866 | resultobj = result; | |
12867 | return resultobj; | |
12868 | fail: | |
12869 | return NULL; | |
12870 | } | |
12871 | ||
12872 | ||
c32bde28 | 12873 | static PyObject *_wrap_FileType_GetMimeTypes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12874 | PyObject *resultobj; |
12875 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12876 | PyObject *result; | |
12877 | PyObject * obj0 = 0 ; | |
12878 | char *kwnames[] = { | |
12879 | (char *) "self", NULL | |
12880 | }; | |
12881 | ||
12882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeTypes",kwnames,&obj0)) goto fail; | |
12883 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12885 | { | |
12886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12887 | result = (PyObject *)wxFileType_GetMimeTypes(arg1); | |
12888 | ||
12889 | wxPyEndAllowThreads(__tstate); | |
12890 | if (PyErr_Occurred()) SWIG_fail; | |
12891 | } | |
12892 | resultobj = result; | |
12893 | return resultobj; | |
12894 | fail: | |
12895 | return NULL; | |
12896 | } | |
12897 | ||
12898 | ||
c32bde28 | 12899 | static PyObject *_wrap_FileType_GetExtensions(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12900 | PyObject *resultobj; |
12901 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12902 | PyObject *result; | |
12903 | PyObject * obj0 = 0 ; | |
12904 | char *kwnames[] = { | |
12905 | (char *) "self", NULL | |
12906 | }; | |
12907 | ||
12908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetExtensions",kwnames,&obj0)) goto fail; | |
12909 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12910 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12911 | { | |
12912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12913 | result = (PyObject *)wxFileType_GetExtensions(arg1); | |
12914 | ||
12915 | wxPyEndAllowThreads(__tstate); | |
12916 | if (PyErr_Occurred()) SWIG_fail; | |
12917 | } | |
12918 | resultobj = result; | |
12919 | return resultobj; | |
12920 | fail: | |
12921 | return NULL; | |
12922 | } | |
12923 | ||
12924 | ||
c32bde28 | 12925 | static PyObject *_wrap_FileType_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12926 | PyObject *resultobj; |
12927 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12928 | wxIcon *result; | |
12929 | PyObject * obj0 = 0 ; | |
12930 | char *kwnames[] = { | |
12931 | (char *) "self", NULL | |
12932 | }; | |
12933 | ||
12934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIcon",kwnames,&obj0)) goto fail; | |
12935 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12936 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12937 | { | |
12938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12939 | result = (wxIcon *)wxFileType_GetIcon(arg1); | |
12940 | ||
12941 | wxPyEndAllowThreads(__tstate); | |
12942 | if (PyErr_Occurred()) SWIG_fail; | |
12943 | } | |
12944 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); | |
12945 | return resultobj; | |
12946 | fail: | |
12947 | return NULL; | |
12948 | } | |
12949 | ||
12950 | ||
c32bde28 | 12951 | static PyObject *_wrap_FileType_GetIconInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12952 | PyObject *resultobj; |
12953 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12954 | PyObject *result; | |
12955 | PyObject * obj0 = 0 ; | |
12956 | char *kwnames[] = { | |
12957 | (char *) "self", NULL | |
12958 | }; | |
12959 | ||
12960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIconInfo",kwnames,&obj0)) goto fail; | |
12961 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12962 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12963 | { | |
12964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12965 | result = (PyObject *)wxFileType_GetIconInfo(arg1); | |
12966 | ||
12967 | wxPyEndAllowThreads(__tstate); | |
12968 | if (PyErr_Occurred()) SWIG_fail; | |
12969 | } | |
12970 | resultobj = result; | |
12971 | return resultobj; | |
12972 | fail: | |
12973 | return NULL; | |
12974 | } | |
12975 | ||
12976 | ||
c32bde28 | 12977 | static PyObject *_wrap_FileType_GetDescription(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12978 | PyObject *resultobj; |
12979 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12980 | PyObject *result; | |
12981 | PyObject * obj0 = 0 ; | |
12982 | char *kwnames[] = { | |
12983 | (char *) "self", NULL | |
12984 | }; | |
12985 | ||
12986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetDescription",kwnames,&obj0)) goto fail; | |
12987 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12988 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12989 | { | |
12990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12991 | result = (PyObject *)wxFileType_GetDescription(arg1); | |
12992 | ||
12993 | wxPyEndAllowThreads(__tstate); | |
12994 | if (PyErr_Occurred()) SWIG_fail; | |
12995 | } | |
12996 | resultobj = result; | |
12997 | return resultobj; | |
12998 | fail: | |
12999 | return NULL; | |
13000 | } | |
13001 | ||
13002 | ||
c32bde28 | 13003 | static PyObject *_wrap_FileType_GetOpenCommand(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13004 | PyObject *resultobj; |
13005 | wxFileType *arg1 = (wxFileType *) 0 ; | |
13006 | wxString *arg2 = 0 ; | |
13007 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13008 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13009 | PyObject *result; | |
ae8162c8 RD |
13010 | bool temp2 = false ; |
13011 | bool temp3 = false ; | |
d55e5bfc RD |
13012 | PyObject * obj0 = 0 ; |
13013 | PyObject * obj1 = 0 ; | |
13014 | PyObject * obj2 = 0 ; | |
13015 | char *kwnames[] = { | |
13016 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
13017 | }; | |
13018 | ||
13019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetOpenCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13020 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
13021 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13022 | { | |
13023 | arg2 = wxString_in_helper(obj1); | |
13024 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13025 | temp2 = true; |
d55e5bfc RD |
13026 | } |
13027 | if (obj2) { | |
13028 | { | |
13029 | arg3 = wxString_in_helper(obj2); | |
13030 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 13031 | temp3 = true; |
d55e5bfc RD |
13032 | } |
13033 | } | |
13034 | { | |
13035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13036 | result = (PyObject *)wxFileType_GetOpenCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
13037 | ||
13038 | wxPyEndAllowThreads(__tstate); | |
13039 | if (PyErr_Occurred()) SWIG_fail; | |
13040 | } | |
13041 | resultobj = result; | |
13042 | { | |
13043 | if (temp2) | |
13044 | delete arg2; | |
13045 | } | |
13046 | { | |
13047 | if (temp3) | |
13048 | delete arg3; | |
13049 | } | |
13050 | return resultobj; | |
13051 | fail: | |
13052 | { | |
13053 | if (temp2) | |
13054 | delete arg2; | |
13055 | } | |
13056 | { | |
13057 | if (temp3) | |
13058 | delete arg3; | |
13059 | } | |
13060 | return NULL; | |
13061 | } | |
13062 | ||
13063 | ||
c32bde28 | 13064 | static PyObject *_wrap_FileType_GetPrintCommand(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13065 | PyObject *resultobj; |
13066 | wxFileType *arg1 = (wxFileType *) 0 ; | |
13067 | wxString *arg2 = 0 ; | |
13068 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13069 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13070 | PyObject *result; | |
ae8162c8 RD |
13071 | bool temp2 = false ; |
13072 | bool temp3 = false ; | |
d55e5bfc RD |
13073 | PyObject * obj0 = 0 ; |
13074 | PyObject * obj1 = 0 ; | |
13075 | PyObject * obj2 = 0 ; | |
13076 | char *kwnames[] = { | |
13077 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
13078 | }; | |
13079 | ||
13080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetPrintCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13081 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
13082 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13083 | { | |
13084 | arg2 = wxString_in_helper(obj1); | |
13085 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13086 | temp2 = true; |
d55e5bfc RD |
13087 | } |
13088 | if (obj2) { | |
13089 | { | |
13090 | arg3 = wxString_in_helper(obj2); | |
13091 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 13092 | temp3 = true; |
d55e5bfc RD |
13093 | } |
13094 | } | |
13095 | { | |
13096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13097 | result = (PyObject *)wxFileType_GetPrintCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
13098 | ||
13099 | wxPyEndAllowThreads(__tstate); | |
13100 | if (PyErr_Occurred()) SWIG_fail; | |
13101 | } | |
13102 | resultobj = result; | |
13103 | { | |
13104 | if (temp2) | |
13105 | delete arg2; | |
13106 | } | |
13107 | { | |
13108 | if (temp3) | |
13109 | delete arg3; | |
13110 | } | |
13111 | return resultobj; | |
13112 | fail: | |
13113 | { | |
13114 | if (temp2) | |
13115 | delete arg2; | |
13116 | } | |
13117 | { | |
13118 | if (temp3) | |
13119 | delete arg3; | |
13120 | } | |
13121 | return NULL; | |
13122 | } | |
13123 | ||
13124 | ||
c32bde28 | 13125 | static PyObject *_wrap_FileType_GetAllCommands(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13126 | PyObject *resultobj; |
13127 | wxFileType *arg1 = (wxFileType *) 0 ; | |
13128 | wxString *arg2 = 0 ; | |
13129 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13130 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13131 | PyObject *result; | |
ae8162c8 RD |
13132 | bool temp2 = false ; |
13133 | bool temp3 = false ; | |
d55e5bfc RD |
13134 | PyObject * obj0 = 0 ; |
13135 | PyObject * obj1 = 0 ; | |
13136 | PyObject * obj2 = 0 ; | |
13137 | char *kwnames[] = { | |
13138 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
13139 | }; | |
13140 | ||
13141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetAllCommands",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13142 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
13143 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13144 | { | |
13145 | arg2 = wxString_in_helper(obj1); | |
13146 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13147 | temp2 = true; |
d55e5bfc RD |
13148 | } |
13149 | if (obj2) { | |
13150 | { | |
13151 | arg3 = wxString_in_helper(obj2); | |
13152 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 13153 | temp3 = true; |
d55e5bfc RD |
13154 | } |
13155 | } | |
13156 | { | |
13157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13158 | result = (PyObject *)wxFileType_GetAllCommands(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
13159 | ||
13160 | wxPyEndAllowThreads(__tstate); | |
13161 | if (PyErr_Occurred()) SWIG_fail; | |
13162 | } | |
13163 | resultobj = result; | |
13164 | { | |
13165 | if (temp2) | |
13166 | delete arg2; | |
13167 | } | |
13168 | { | |
13169 | if (temp3) | |
13170 | delete arg3; | |
13171 | } | |
13172 | return resultobj; | |
13173 | fail: | |
13174 | { | |
13175 | if (temp2) | |
13176 | delete arg2; | |
13177 | } | |
13178 | { | |
13179 | if (temp3) | |
13180 | delete arg3; | |
13181 | } | |
13182 | return NULL; | |
13183 | } | |
13184 | ||
13185 | ||
c32bde28 | 13186 | static PyObject *_wrap_FileType_SetCommand(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13187 | PyObject *resultobj; |
13188 | wxFileType *arg1 = (wxFileType *) 0 ; | |
13189 | wxString *arg2 = 0 ; | |
13190 | wxString *arg3 = 0 ; | |
ae8162c8 | 13191 | bool arg4 = (bool) true ; |
d55e5bfc | 13192 | bool result; |
ae8162c8 RD |
13193 | bool temp2 = false ; |
13194 | bool temp3 = false ; | |
d55e5bfc RD |
13195 | PyObject * obj0 = 0 ; |
13196 | PyObject * obj1 = 0 ; | |
13197 | PyObject * obj2 = 0 ; | |
13198 | PyObject * obj3 = 0 ; | |
13199 | char *kwnames[] = { | |
13200 | (char *) "self",(char *) "cmd",(char *) "verb",(char *) "overwriteprompt", NULL | |
13201 | }; | |
13202 | ||
13203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FileType_SetCommand",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
13204 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
13205 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13206 | { | |
13207 | arg2 = wxString_in_helper(obj1); | |
13208 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13209 | temp2 = true; |
d55e5bfc RD |
13210 | } |
13211 | { | |
13212 | arg3 = wxString_in_helper(obj2); | |
13213 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 13214 | temp3 = true; |
d55e5bfc RD |
13215 | } |
13216 | if (obj3) { | |
c32bde28 | 13217 | arg4 = (bool)SWIG_As_bool(obj3); |
d55e5bfc RD |
13218 | if (PyErr_Occurred()) SWIG_fail; |
13219 | } | |
13220 | { | |
13221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13222 | result = (bool)(arg1)->SetCommand((wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
13223 | ||
13224 | wxPyEndAllowThreads(__tstate); | |
13225 | if (PyErr_Occurred()) SWIG_fail; | |
13226 | } | |
13227 | { | |
13228 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13229 | } | |
13230 | { | |
13231 | if (temp2) | |
13232 | delete arg2; | |
13233 | } | |
13234 | { | |
13235 | if (temp3) | |
13236 | delete arg3; | |
13237 | } | |
13238 | return resultobj; | |
13239 | fail: | |
13240 | { | |
13241 | if (temp2) | |
13242 | delete arg2; | |
13243 | } | |
13244 | { | |
13245 | if (temp3) | |
13246 | delete arg3; | |
13247 | } | |
13248 | return NULL; | |
13249 | } | |
13250 | ||
13251 | ||
c32bde28 | 13252 | static PyObject *_wrap_FileType_SetDefaultIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13253 | PyObject *resultobj; |
13254 | wxFileType *arg1 = (wxFileType *) 0 ; | |
13255 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
13256 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
13257 | int arg3 = (int) 0 ; | |
13258 | bool result; | |
ae8162c8 | 13259 | bool temp2 = false ; |
d55e5bfc RD |
13260 | PyObject * obj0 = 0 ; |
13261 | PyObject * obj1 = 0 ; | |
13262 | PyObject * obj2 = 0 ; | |
13263 | char *kwnames[] = { | |
13264 | (char *) "self",(char *) "cmd",(char *) "index", NULL | |
13265 | }; | |
13266 | ||
13267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FileType_SetDefaultIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
13269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13270 | if (obj1) { | |
13271 | { | |
13272 | arg2 = wxString_in_helper(obj1); | |
13273 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13274 | temp2 = true; |
d55e5bfc RD |
13275 | } |
13276 | } | |
13277 | if (obj2) { | |
c32bde28 | 13278 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
13279 | if (PyErr_Occurred()) SWIG_fail; |
13280 | } | |
13281 | { | |
13282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13283 | result = (bool)(arg1)->SetDefaultIcon((wxString const &)*arg2,arg3); | |
13284 | ||
13285 | wxPyEndAllowThreads(__tstate); | |
13286 | if (PyErr_Occurred()) SWIG_fail; | |
13287 | } | |
13288 | { | |
13289 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13290 | } | |
13291 | { | |
13292 | if (temp2) | |
13293 | delete arg2; | |
13294 | } | |
13295 | return resultobj; | |
13296 | fail: | |
13297 | { | |
13298 | if (temp2) | |
13299 | delete arg2; | |
13300 | } | |
13301 | return NULL; | |
13302 | } | |
13303 | ||
13304 | ||
c32bde28 | 13305 | static PyObject *_wrap_FileType_Unassociate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13306 | PyObject *resultobj; |
13307 | wxFileType *arg1 = (wxFileType *) 0 ; | |
13308 | bool result; | |
13309 | PyObject * obj0 = 0 ; | |
13310 | char *kwnames[] = { | |
13311 | (char *) "self", NULL | |
13312 | }; | |
13313 | ||
13314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_Unassociate",kwnames,&obj0)) goto fail; | |
13315 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
13316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13317 | { | |
13318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13319 | result = (bool)(arg1)->Unassociate(); | |
13320 | ||
13321 | wxPyEndAllowThreads(__tstate); | |
13322 | if (PyErr_Occurred()) SWIG_fail; | |
13323 | } | |
13324 | { | |
13325 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13326 | } | |
13327 | return resultobj; | |
13328 | fail: | |
13329 | return NULL; | |
13330 | } | |
13331 | ||
13332 | ||
c32bde28 | 13333 | static PyObject *_wrap_FileType_ExpandCommand(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13334 | PyObject *resultobj; |
13335 | wxString *arg1 = 0 ; | |
13336 | wxString *arg2 = 0 ; | |
13337 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13338 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13339 | wxString result; | |
ae8162c8 RD |
13340 | bool temp1 = false ; |
13341 | bool temp2 = false ; | |
13342 | bool temp3 = false ; | |
d55e5bfc RD |
13343 | PyObject * obj0 = 0 ; |
13344 | PyObject * obj1 = 0 ; | |
13345 | PyObject * obj2 = 0 ; | |
13346 | char *kwnames[] = { | |
13347 | (char *) "command",(char *) "filename",(char *) "mimetype", NULL | |
13348 | }; | |
13349 | ||
13350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_ExpandCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13351 | { | |
13352 | arg1 = wxString_in_helper(obj0); | |
13353 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 13354 | temp1 = true; |
d55e5bfc RD |
13355 | } |
13356 | { | |
13357 | arg2 = wxString_in_helper(obj1); | |
13358 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13359 | temp2 = true; |
d55e5bfc RD |
13360 | } |
13361 | if (obj2) { | |
13362 | { | |
13363 | arg3 = wxString_in_helper(obj2); | |
13364 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 13365 | temp3 = true; |
d55e5bfc RD |
13366 | } |
13367 | } | |
13368 | { | |
13369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13370 | result = FileType_ExpandCommand((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
13371 | ||
13372 | wxPyEndAllowThreads(__tstate); | |
13373 | if (PyErr_Occurred()) SWIG_fail; | |
13374 | } | |
13375 | { | |
13376 | #if wxUSE_UNICODE | |
13377 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13378 | #else | |
13379 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13380 | #endif | |
13381 | } | |
13382 | { | |
13383 | if (temp1) | |
13384 | delete arg1; | |
13385 | } | |
13386 | { | |
13387 | if (temp2) | |
13388 | delete arg2; | |
13389 | } | |
13390 | { | |
13391 | if (temp3) | |
13392 | delete arg3; | |
13393 | } | |
13394 | return resultobj; | |
13395 | fail: | |
13396 | { | |
13397 | if (temp1) | |
13398 | delete arg1; | |
13399 | } | |
13400 | { | |
13401 | if (temp2) | |
13402 | delete arg2; | |
13403 | } | |
13404 | { | |
13405 | if (temp3) | |
13406 | delete arg3; | |
13407 | } | |
13408 | return NULL; | |
13409 | } | |
13410 | ||
13411 | ||
c32bde28 | 13412 | static PyObject * FileType_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13413 | PyObject *obj; |
13414 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13415 | SWIG_TypeClientData(SWIGTYPE_p_wxFileType, obj); | |
13416 | Py_INCREF(obj); | |
13417 | return Py_BuildValue((char *)""); | |
13418 | } | |
c32bde28 | 13419 | static int _wrap_TheMimeTypesManager_set(PyObject *) { |
d55e5bfc RD |
13420 | PyErr_SetString(PyExc_TypeError,"Variable TheMimeTypesManager is read-only."); |
13421 | return 1; | |
13422 | } | |
13423 | ||
13424 | ||
13425 | static PyObject *_wrap_TheMimeTypesManager_get() { | |
13426 | PyObject *pyobj; | |
13427 | ||
13428 | pyobj = SWIG_NewPointerObj((void *)(wxTheMimeTypesManager), SWIGTYPE_p_wxMimeTypesManager, 0); | |
13429 | return pyobj; | |
13430 | } | |
13431 | ||
13432 | ||
c32bde28 | 13433 | static PyObject *_wrap_MimeTypesManager_IsOfType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13434 | PyObject *resultobj; |
13435 | wxString *arg1 = 0 ; | |
13436 | wxString *arg2 = 0 ; | |
13437 | bool result; | |
ae8162c8 RD |
13438 | bool temp1 = false ; |
13439 | bool temp2 = false ; | |
d55e5bfc RD |
13440 | PyObject * obj0 = 0 ; |
13441 | PyObject * obj1 = 0 ; | |
13442 | char *kwnames[] = { | |
13443 | (char *) "mimeType",(char *) "wildcard", NULL | |
13444 | }; | |
13445 | ||
13446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_IsOfType",kwnames,&obj0,&obj1)) goto fail; | |
13447 | { | |
13448 | arg1 = wxString_in_helper(obj0); | |
13449 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 13450 | temp1 = true; |
d55e5bfc RD |
13451 | } |
13452 | { | |
13453 | arg2 = wxString_in_helper(obj1); | |
13454 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13455 | temp2 = true; |
d55e5bfc RD |
13456 | } |
13457 | { | |
13458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13459 | result = (bool)wxMimeTypesManager::IsOfType((wxString const &)*arg1,(wxString const &)*arg2); | |
13460 | ||
13461 | wxPyEndAllowThreads(__tstate); | |
13462 | if (PyErr_Occurred()) SWIG_fail; | |
13463 | } | |
13464 | { | |
13465 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13466 | } | |
13467 | { | |
13468 | if (temp1) | |
13469 | delete arg1; | |
13470 | } | |
13471 | { | |
13472 | if (temp2) | |
13473 | delete arg2; | |
13474 | } | |
13475 | return resultobj; | |
13476 | fail: | |
13477 | { | |
13478 | if (temp1) | |
13479 | delete arg1; | |
13480 | } | |
13481 | { | |
13482 | if (temp2) | |
13483 | delete arg2; | |
13484 | } | |
13485 | return NULL; | |
13486 | } | |
13487 | ||
13488 | ||
c32bde28 | 13489 | static PyObject *_wrap_new_MimeTypesManager(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13490 | PyObject *resultobj; |
13491 | wxMimeTypesManager *result; | |
13492 | char *kwnames[] = { | |
13493 | NULL | |
13494 | }; | |
13495 | ||
13496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MimeTypesManager",kwnames)) goto fail; | |
13497 | { | |
13498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13499 | result = (wxMimeTypesManager *)new wxMimeTypesManager(); | |
13500 | ||
13501 | wxPyEndAllowThreads(__tstate); | |
13502 | if (PyErr_Occurred()) SWIG_fail; | |
13503 | } | |
13504 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMimeTypesManager, 1); | |
13505 | return resultobj; | |
13506 | fail: | |
13507 | return NULL; | |
13508 | } | |
13509 | ||
13510 | ||
c32bde28 | 13511 | static PyObject *_wrap_MimeTypesManager_Initialize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13512 | PyObject *resultobj; |
13513 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13514 | int arg2 = (int) wxMAILCAP_ALL ; | |
13515 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13516 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
ae8162c8 | 13517 | bool temp3 = false ; |
d55e5bfc RD |
13518 | PyObject * obj0 = 0 ; |
13519 | PyObject * obj1 = 0 ; | |
13520 | PyObject * obj2 = 0 ; | |
13521 | char *kwnames[] = { | |
13522 | (char *) "self",(char *) "mailcapStyle",(char *) "extraDir", NULL | |
13523 | }; | |
13524 | ||
13525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MimeTypesManager_Initialize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13526 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13527 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13528 | if (obj1) { | |
c32bde28 | 13529 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13530 | if (PyErr_Occurred()) SWIG_fail; |
13531 | } | |
13532 | if (obj2) { | |
13533 | { | |
13534 | arg3 = wxString_in_helper(obj2); | |
13535 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 13536 | temp3 = true; |
d55e5bfc RD |
13537 | } |
13538 | } | |
13539 | { | |
13540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13541 | (arg1)->Initialize(arg2,(wxString const &)*arg3); | |
13542 | ||
13543 | wxPyEndAllowThreads(__tstate); | |
13544 | if (PyErr_Occurred()) SWIG_fail; | |
13545 | } | |
13546 | Py_INCREF(Py_None); resultobj = Py_None; | |
13547 | { | |
13548 | if (temp3) | |
13549 | delete arg3; | |
13550 | } | |
13551 | return resultobj; | |
13552 | fail: | |
13553 | { | |
13554 | if (temp3) | |
13555 | delete arg3; | |
13556 | } | |
13557 | return NULL; | |
13558 | } | |
13559 | ||
13560 | ||
c32bde28 | 13561 | static PyObject *_wrap_MimeTypesManager_ClearData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13562 | PyObject *resultobj; |
13563 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13564 | PyObject * obj0 = 0 ; | |
13565 | char *kwnames[] = { | |
13566 | (char *) "self", NULL | |
13567 | }; | |
13568 | ||
13569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_ClearData",kwnames,&obj0)) goto fail; | |
13570 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13571 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13572 | { | |
13573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13574 | (arg1)->ClearData(); | |
13575 | ||
13576 | wxPyEndAllowThreads(__tstate); | |
13577 | if (PyErr_Occurred()) SWIG_fail; | |
13578 | } | |
13579 | Py_INCREF(Py_None); resultobj = Py_None; | |
13580 | return resultobj; | |
13581 | fail: | |
13582 | return NULL; | |
13583 | } | |
13584 | ||
13585 | ||
c32bde28 | 13586 | static PyObject *_wrap_MimeTypesManager_GetFileTypeFromExtension(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13587 | PyObject *resultobj; |
13588 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13589 | wxString *arg2 = 0 ; | |
13590 | wxFileType *result; | |
ae8162c8 | 13591 | bool temp2 = false ; |
d55e5bfc RD |
13592 | PyObject * obj0 = 0 ; |
13593 | PyObject * obj1 = 0 ; | |
13594 | char *kwnames[] = { | |
13595 | (char *) "self",(char *) "ext", NULL | |
13596 | }; | |
13597 | ||
13598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromExtension",kwnames,&obj0,&obj1)) goto fail; | |
13599 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13600 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13601 | { | |
13602 | arg2 = wxString_in_helper(obj1); | |
13603 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13604 | temp2 = true; |
d55e5bfc RD |
13605 | } |
13606 | { | |
13607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13608 | result = (wxFileType *)(arg1)->GetFileTypeFromExtension((wxString const &)*arg2); | |
13609 | ||
13610 | wxPyEndAllowThreads(__tstate); | |
13611 | if (PyErr_Occurred()) SWIG_fail; | |
13612 | } | |
13613 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); | |
13614 | { | |
13615 | if (temp2) | |
13616 | delete arg2; | |
13617 | } | |
13618 | return resultobj; | |
13619 | fail: | |
13620 | { | |
13621 | if (temp2) | |
13622 | delete arg2; | |
13623 | } | |
13624 | return NULL; | |
13625 | } | |
13626 | ||
13627 | ||
c32bde28 | 13628 | static PyObject *_wrap_MimeTypesManager_GetFileTypeFromMimeType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13629 | PyObject *resultobj; |
13630 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13631 | wxString *arg2 = 0 ; | |
13632 | wxFileType *result; | |
ae8162c8 | 13633 | bool temp2 = false ; |
d55e5bfc RD |
13634 | PyObject * obj0 = 0 ; |
13635 | PyObject * obj1 = 0 ; | |
13636 | char *kwnames[] = { | |
13637 | (char *) "self",(char *) "mimeType", NULL | |
13638 | }; | |
13639 | ||
13640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromMimeType",kwnames,&obj0,&obj1)) goto fail; | |
13641 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13642 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13643 | { | |
13644 | arg2 = wxString_in_helper(obj1); | |
13645 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13646 | temp2 = true; |
d55e5bfc RD |
13647 | } |
13648 | { | |
13649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13650 | result = (wxFileType *)(arg1)->GetFileTypeFromMimeType((wxString const &)*arg2); | |
13651 | ||
13652 | wxPyEndAllowThreads(__tstate); | |
13653 | if (PyErr_Occurred()) SWIG_fail; | |
13654 | } | |
13655 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); | |
13656 | { | |
13657 | if (temp2) | |
13658 | delete arg2; | |
13659 | } | |
13660 | return resultobj; | |
13661 | fail: | |
13662 | { | |
13663 | if (temp2) | |
13664 | delete arg2; | |
13665 | } | |
13666 | return NULL; | |
13667 | } | |
13668 | ||
13669 | ||
c32bde28 | 13670 | static PyObject *_wrap_MimeTypesManager_ReadMailcap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13671 | PyObject *resultobj; |
13672 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13673 | wxString *arg2 = 0 ; | |
ae8162c8 | 13674 | bool arg3 = (bool) false ; |
d55e5bfc | 13675 | bool result; |
ae8162c8 | 13676 | bool temp2 = false ; |
d55e5bfc RD |
13677 | PyObject * obj0 = 0 ; |
13678 | PyObject * obj1 = 0 ; | |
13679 | PyObject * obj2 = 0 ; | |
13680 | char *kwnames[] = { | |
13681 | (char *) "self",(char *) "filename",(char *) "fallback", NULL | |
13682 | }; | |
13683 | ||
13684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MimeTypesManager_ReadMailcap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13685 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13686 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13687 | { | |
13688 | arg2 = wxString_in_helper(obj1); | |
13689 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13690 | temp2 = true; |
d55e5bfc RD |
13691 | } |
13692 | if (obj2) { | |
c32bde28 | 13693 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
13694 | if (PyErr_Occurred()) SWIG_fail; |
13695 | } | |
13696 | { | |
13697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13698 | result = (bool)(arg1)->ReadMailcap((wxString const &)*arg2,arg3); | |
13699 | ||
13700 | wxPyEndAllowThreads(__tstate); | |
13701 | if (PyErr_Occurred()) SWIG_fail; | |
13702 | } | |
13703 | { | |
13704 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13705 | } | |
13706 | { | |
13707 | if (temp2) | |
13708 | delete arg2; | |
13709 | } | |
13710 | return resultobj; | |
13711 | fail: | |
13712 | { | |
13713 | if (temp2) | |
13714 | delete arg2; | |
13715 | } | |
13716 | return NULL; | |
13717 | } | |
13718 | ||
13719 | ||
c32bde28 | 13720 | static PyObject *_wrap_MimeTypesManager_ReadMimeTypes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13721 | PyObject *resultobj; |
13722 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13723 | wxString *arg2 = 0 ; | |
13724 | bool result; | |
ae8162c8 | 13725 | bool temp2 = false ; |
d55e5bfc RD |
13726 | PyObject * obj0 = 0 ; |
13727 | PyObject * obj1 = 0 ; | |
13728 | char *kwnames[] = { | |
13729 | (char *) "self",(char *) "filename", NULL | |
13730 | }; | |
13731 | ||
13732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_ReadMimeTypes",kwnames,&obj0,&obj1)) goto fail; | |
13733 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13734 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13735 | { | |
13736 | arg2 = wxString_in_helper(obj1); | |
13737 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13738 | temp2 = true; |
d55e5bfc RD |
13739 | } |
13740 | { | |
13741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13742 | result = (bool)(arg1)->ReadMimeTypes((wxString const &)*arg2); | |
13743 | ||
13744 | wxPyEndAllowThreads(__tstate); | |
13745 | if (PyErr_Occurred()) SWIG_fail; | |
13746 | } | |
13747 | { | |
13748 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13749 | } | |
13750 | { | |
13751 | if (temp2) | |
13752 | delete arg2; | |
13753 | } | |
13754 | return resultobj; | |
13755 | fail: | |
13756 | { | |
13757 | if (temp2) | |
13758 | delete arg2; | |
13759 | } | |
13760 | return NULL; | |
13761 | } | |
13762 | ||
13763 | ||
c32bde28 | 13764 | static PyObject *_wrap_MimeTypesManager_EnumAllFileTypes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13765 | PyObject *resultobj; |
13766 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13767 | PyObject *result; | |
13768 | PyObject * obj0 = 0 ; | |
13769 | char *kwnames[] = { | |
13770 | (char *) "self", NULL | |
13771 | }; | |
13772 | ||
13773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_EnumAllFileTypes",kwnames,&obj0)) goto fail; | |
13774 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13775 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13776 | { | |
13777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13778 | result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(arg1); | |
13779 | ||
13780 | wxPyEndAllowThreads(__tstate); | |
13781 | if (PyErr_Occurred()) SWIG_fail; | |
13782 | } | |
13783 | resultobj = result; | |
13784 | return resultobj; | |
13785 | fail: | |
13786 | return NULL; | |
13787 | } | |
13788 | ||
13789 | ||
c32bde28 | 13790 | static PyObject *_wrap_MimeTypesManager_AddFallback(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13791 | PyObject *resultobj; |
13792 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13793 | wxFileTypeInfo *arg2 = 0 ; | |
13794 | PyObject * obj0 = 0 ; | |
13795 | PyObject * obj1 = 0 ; | |
13796 | char *kwnames[] = { | |
13797 | (char *) "self",(char *) "ft", NULL | |
13798 | }; | |
13799 | ||
13800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_AddFallback",kwnames,&obj0,&obj1)) goto fail; | |
13801 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13803 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo, | |
13804 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13805 | SWIG_fail; | |
13806 | if (arg2 == NULL) { | |
13807 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13808 | SWIG_fail; | |
13809 | } | |
13810 | { | |
13811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13812 | (arg1)->AddFallback((wxFileTypeInfo const &)*arg2); | |
13813 | ||
13814 | wxPyEndAllowThreads(__tstate); | |
13815 | if (PyErr_Occurred()) SWIG_fail; | |
13816 | } | |
13817 | Py_INCREF(Py_None); resultobj = Py_None; | |
13818 | return resultobj; | |
13819 | fail: | |
13820 | return NULL; | |
13821 | } | |
13822 | ||
13823 | ||
c32bde28 | 13824 | static PyObject *_wrap_MimeTypesManager_Associate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13825 | PyObject *resultobj; |
13826 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13827 | wxFileTypeInfo *arg2 = 0 ; | |
13828 | wxFileType *result; | |
13829 | PyObject * obj0 = 0 ; | |
13830 | PyObject * obj1 = 0 ; | |
13831 | char *kwnames[] = { | |
13832 | (char *) "self",(char *) "ftInfo", NULL | |
13833 | }; | |
13834 | ||
13835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Associate",kwnames,&obj0,&obj1)) goto fail; | |
13836 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13837 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13838 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo, | |
13839 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13840 | SWIG_fail; | |
13841 | if (arg2 == NULL) { | |
13842 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13843 | SWIG_fail; | |
13844 | } | |
13845 | { | |
13846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13847 | result = (wxFileType *)(arg1)->Associate((wxFileTypeInfo const &)*arg2); | |
13848 | ||
13849 | wxPyEndAllowThreads(__tstate); | |
13850 | if (PyErr_Occurred()) SWIG_fail; | |
13851 | } | |
13852 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); | |
13853 | return resultobj; | |
13854 | fail: | |
13855 | return NULL; | |
13856 | } | |
13857 | ||
13858 | ||
c32bde28 | 13859 | static PyObject *_wrap_MimeTypesManager_Unassociate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13860 | PyObject *resultobj; |
13861 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13862 | wxFileType *arg2 = (wxFileType *) 0 ; | |
13863 | bool result; | |
13864 | PyObject * obj0 = 0 ; | |
13865 | PyObject * obj1 = 0 ; | |
13866 | char *kwnames[] = { | |
13867 | (char *) "self",(char *) "ft", NULL | |
13868 | }; | |
13869 | ||
13870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Unassociate",kwnames,&obj0,&obj1)) goto fail; | |
13871 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13872 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13873 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileType, | |
13874 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13875 | { | |
13876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13877 | result = (bool)(arg1)->Unassociate(arg2); | |
13878 | ||
13879 | wxPyEndAllowThreads(__tstate); | |
13880 | if (PyErr_Occurred()) SWIG_fail; | |
13881 | } | |
13882 | { | |
13883 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13884 | } | |
13885 | return resultobj; | |
13886 | fail: | |
13887 | return NULL; | |
13888 | } | |
13889 | ||
13890 | ||
c32bde28 | 13891 | static PyObject *_wrap_delete_MimeTypesManager(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13892 | PyObject *resultobj; |
13893 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13894 | PyObject * obj0 = 0 ; | |
13895 | char *kwnames[] = { | |
13896 | (char *) "self", NULL | |
13897 | }; | |
13898 | ||
13899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MimeTypesManager",kwnames,&obj0)) goto fail; | |
13900 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13901 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13902 | { | |
13903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13904 | delete arg1; | |
13905 | ||
13906 | wxPyEndAllowThreads(__tstate); | |
13907 | if (PyErr_Occurred()) SWIG_fail; | |
13908 | } | |
13909 | Py_INCREF(Py_None); resultobj = Py_None; | |
13910 | return resultobj; | |
13911 | fail: | |
13912 | return NULL; | |
13913 | } | |
13914 | ||
13915 | ||
c32bde28 | 13916 | static PyObject * MimeTypesManager_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13917 | PyObject *obj; |
13918 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13919 | SWIG_TypeClientData(SWIGTYPE_p_wxMimeTypesManager, obj); | |
13920 | Py_INCREF(obj); | |
13921 | return Py_BuildValue((char *)""); | |
13922 | } | |
c32bde28 | 13923 | static int _wrap_ART_TOOLBAR_set(PyObject *) { |
d55e5bfc RD |
13924 | PyErr_SetString(PyExc_TypeError,"Variable ART_TOOLBAR is read-only."); |
13925 | return 1; | |
13926 | } | |
13927 | ||
13928 | ||
13929 | static PyObject *_wrap_ART_TOOLBAR_get() { | |
13930 | PyObject *pyobj; | |
13931 | ||
13932 | { | |
13933 | #if wxUSE_UNICODE | |
13934 | pyobj = PyUnicode_FromWideChar((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len()); | |
13935 | #else | |
13936 | pyobj = PyString_FromStringAndSize((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len()); | |
13937 | #endif | |
13938 | } | |
13939 | return pyobj; | |
13940 | } | |
13941 | ||
13942 | ||
c32bde28 | 13943 | static int _wrap_ART_MENU_set(PyObject *) { |
d55e5bfc RD |
13944 | PyErr_SetString(PyExc_TypeError,"Variable ART_MENU is read-only."); |
13945 | return 1; | |
13946 | } | |
13947 | ||
13948 | ||
13949 | static PyObject *_wrap_ART_MENU_get() { | |
13950 | PyObject *pyobj; | |
13951 | ||
13952 | { | |
13953 | #if wxUSE_UNICODE | |
13954 | pyobj = PyUnicode_FromWideChar((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len()); | |
13955 | #else | |
13956 | pyobj = PyString_FromStringAndSize((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len()); | |
13957 | #endif | |
13958 | } | |
13959 | return pyobj; | |
13960 | } | |
13961 | ||
13962 | ||
c32bde28 | 13963 | static int _wrap_ART_FRAME_ICON_set(PyObject *) { |
d55e5bfc RD |
13964 | PyErr_SetString(PyExc_TypeError,"Variable ART_FRAME_ICON is read-only."); |
13965 | return 1; | |
13966 | } | |
13967 | ||
13968 | ||
13969 | static PyObject *_wrap_ART_FRAME_ICON_get() { | |
13970 | PyObject *pyobj; | |
13971 | ||
13972 | { | |
13973 | #if wxUSE_UNICODE | |
13974 | pyobj = PyUnicode_FromWideChar((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len()); | |
13975 | #else | |
13976 | pyobj = PyString_FromStringAndSize((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len()); | |
13977 | #endif | |
13978 | } | |
13979 | return pyobj; | |
13980 | } | |
13981 | ||
13982 | ||
c32bde28 | 13983 | static int _wrap_ART_CMN_DIALOG_set(PyObject *) { |
d55e5bfc RD |
13984 | PyErr_SetString(PyExc_TypeError,"Variable ART_CMN_DIALOG is read-only."); |
13985 | return 1; | |
13986 | } | |
13987 | ||
13988 | ||
13989 | static PyObject *_wrap_ART_CMN_DIALOG_get() { | |
13990 | PyObject *pyobj; | |
13991 | ||
13992 | { | |
13993 | #if wxUSE_UNICODE | |
13994 | pyobj = PyUnicode_FromWideChar((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len()); | |
13995 | #else | |
13996 | pyobj = PyString_FromStringAndSize((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len()); | |
13997 | #endif | |
13998 | } | |
13999 | return pyobj; | |
14000 | } | |
14001 | ||
14002 | ||
c32bde28 | 14003 | static int _wrap_ART_HELP_BROWSER_set(PyObject *) { |
d55e5bfc RD |
14004 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BROWSER is read-only."); |
14005 | return 1; | |
14006 | } | |
14007 | ||
14008 | ||
14009 | static PyObject *_wrap_ART_HELP_BROWSER_get() { | |
14010 | PyObject *pyobj; | |
14011 | ||
14012 | { | |
14013 | #if wxUSE_UNICODE | |
14014 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len()); | |
14015 | #else | |
14016 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len()); | |
14017 | #endif | |
14018 | } | |
14019 | return pyobj; | |
14020 | } | |
14021 | ||
14022 | ||
c32bde28 | 14023 | static int _wrap_ART_MESSAGE_BOX_set(PyObject *) { |
d55e5bfc RD |
14024 | PyErr_SetString(PyExc_TypeError,"Variable ART_MESSAGE_BOX is read-only."); |
14025 | return 1; | |
14026 | } | |
14027 | ||
14028 | ||
14029 | static PyObject *_wrap_ART_MESSAGE_BOX_get() { | |
14030 | PyObject *pyobj; | |
14031 | ||
14032 | { | |
14033 | #if wxUSE_UNICODE | |
14034 | pyobj = PyUnicode_FromWideChar((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len()); | |
14035 | #else | |
14036 | pyobj = PyString_FromStringAndSize((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len()); | |
14037 | #endif | |
14038 | } | |
14039 | return pyobj; | |
14040 | } | |
14041 | ||
14042 | ||
c32bde28 | 14043 | static int _wrap_ART_BUTTON_set(PyObject *) { |
4cf4100f RD |
14044 | PyErr_SetString(PyExc_TypeError,"Variable ART_BUTTON is read-only."); |
14045 | return 1; | |
14046 | } | |
14047 | ||
14048 | ||
14049 | static PyObject *_wrap_ART_BUTTON_get() { | |
14050 | PyObject *pyobj; | |
14051 | ||
14052 | { | |
14053 | #if wxUSE_UNICODE | |
14054 | pyobj = PyUnicode_FromWideChar((&wxPyART_BUTTON)->c_str(), (&wxPyART_BUTTON)->Len()); | |
14055 | #else | |
14056 | pyobj = PyString_FromStringAndSize((&wxPyART_BUTTON)->c_str(), (&wxPyART_BUTTON)->Len()); | |
14057 | #endif | |
14058 | } | |
14059 | return pyobj; | |
14060 | } | |
14061 | ||
14062 | ||
c32bde28 | 14063 | static int _wrap_ART_OTHER_set(PyObject *) { |
d55e5bfc RD |
14064 | PyErr_SetString(PyExc_TypeError,"Variable ART_OTHER is read-only."); |
14065 | return 1; | |
14066 | } | |
14067 | ||
14068 | ||
14069 | static PyObject *_wrap_ART_OTHER_get() { | |
14070 | PyObject *pyobj; | |
14071 | ||
14072 | { | |
14073 | #if wxUSE_UNICODE | |
14074 | pyobj = PyUnicode_FromWideChar((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len()); | |
14075 | #else | |
14076 | pyobj = PyString_FromStringAndSize((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len()); | |
14077 | #endif | |
14078 | } | |
14079 | return pyobj; | |
14080 | } | |
14081 | ||
14082 | ||
c32bde28 | 14083 | static int _wrap_ART_ADD_BOOKMARK_set(PyObject *) { |
d55e5bfc RD |
14084 | PyErr_SetString(PyExc_TypeError,"Variable ART_ADD_BOOKMARK is read-only."); |
14085 | return 1; | |
14086 | } | |
14087 | ||
14088 | ||
14089 | static PyObject *_wrap_ART_ADD_BOOKMARK_get() { | |
14090 | PyObject *pyobj; | |
14091 | ||
14092 | { | |
14093 | #if wxUSE_UNICODE | |
14094 | pyobj = PyUnicode_FromWideChar((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len()); | |
14095 | #else | |
14096 | pyobj = PyString_FromStringAndSize((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len()); | |
14097 | #endif | |
14098 | } | |
14099 | return pyobj; | |
14100 | } | |
14101 | ||
14102 | ||
c32bde28 | 14103 | static int _wrap_ART_DEL_BOOKMARK_set(PyObject *) { |
d55e5bfc RD |
14104 | PyErr_SetString(PyExc_TypeError,"Variable ART_DEL_BOOKMARK is read-only."); |
14105 | return 1; | |
14106 | } | |
14107 | ||
14108 | ||
14109 | static PyObject *_wrap_ART_DEL_BOOKMARK_get() { | |
14110 | PyObject *pyobj; | |
14111 | ||
14112 | { | |
14113 | #if wxUSE_UNICODE | |
14114 | pyobj = PyUnicode_FromWideChar((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len()); | |
14115 | #else | |
14116 | pyobj = PyString_FromStringAndSize((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len()); | |
14117 | #endif | |
14118 | } | |
14119 | return pyobj; | |
14120 | } | |
14121 | ||
14122 | ||
c32bde28 | 14123 | static int _wrap_ART_HELP_SIDE_PANEL_set(PyObject *) { |
d55e5bfc RD |
14124 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SIDE_PANEL is read-only."); |
14125 | return 1; | |
14126 | } | |
14127 | ||
14128 | ||
14129 | static PyObject *_wrap_ART_HELP_SIDE_PANEL_get() { | |
14130 | PyObject *pyobj; | |
14131 | ||
14132 | { | |
14133 | #if wxUSE_UNICODE | |
14134 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len()); | |
14135 | #else | |
14136 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len()); | |
14137 | #endif | |
14138 | } | |
14139 | return pyobj; | |
14140 | } | |
14141 | ||
14142 | ||
c32bde28 | 14143 | static int _wrap_ART_HELP_SETTINGS_set(PyObject *) { |
d55e5bfc RD |
14144 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SETTINGS is read-only."); |
14145 | return 1; | |
14146 | } | |
14147 | ||
14148 | ||
14149 | static PyObject *_wrap_ART_HELP_SETTINGS_get() { | |
14150 | PyObject *pyobj; | |
14151 | ||
14152 | { | |
14153 | #if wxUSE_UNICODE | |
14154 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len()); | |
14155 | #else | |
14156 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len()); | |
14157 | #endif | |
14158 | } | |
14159 | return pyobj; | |
14160 | } | |
14161 | ||
14162 | ||
c32bde28 | 14163 | static int _wrap_ART_HELP_BOOK_set(PyObject *) { |
d55e5bfc RD |
14164 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BOOK is read-only."); |
14165 | return 1; | |
14166 | } | |
14167 | ||
14168 | ||
14169 | static PyObject *_wrap_ART_HELP_BOOK_get() { | |
14170 | PyObject *pyobj; | |
14171 | ||
14172 | { | |
14173 | #if wxUSE_UNICODE | |
14174 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len()); | |
14175 | #else | |
14176 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len()); | |
14177 | #endif | |
14178 | } | |
14179 | return pyobj; | |
14180 | } | |
14181 | ||
14182 | ||
c32bde28 | 14183 | static int _wrap_ART_HELP_FOLDER_set(PyObject *) { |
d55e5bfc RD |
14184 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_FOLDER is read-only."); |
14185 | return 1; | |
14186 | } | |
14187 | ||
14188 | ||
14189 | static PyObject *_wrap_ART_HELP_FOLDER_get() { | |
14190 | PyObject *pyobj; | |
14191 | ||
14192 | { | |
14193 | #if wxUSE_UNICODE | |
14194 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len()); | |
14195 | #else | |
14196 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len()); | |
14197 | #endif | |
14198 | } | |
14199 | return pyobj; | |
14200 | } | |
14201 | ||
14202 | ||
c32bde28 | 14203 | static int _wrap_ART_HELP_PAGE_set(PyObject *) { |
d55e5bfc RD |
14204 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_PAGE is read-only."); |
14205 | return 1; | |
14206 | } | |
14207 | ||
14208 | ||
14209 | static PyObject *_wrap_ART_HELP_PAGE_get() { | |
14210 | PyObject *pyobj; | |
14211 | ||
14212 | { | |
14213 | #if wxUSE_UNICODE | |
14214 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len()); | |
14215 | #else | |
14216 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len()); | |
14217 | #endif | |
14218 | } | |
14219 | return pyobj; | |
14220 | } | |
14221 | ||
14222 | ||
c32bde28 | 14223 | static int _wrap_ART_GO_BACK_set(PyObject *) { |
d55e5bfc RD |
14224 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_BACK is read-only."); |
14225 | return 1; | |
14226 | } | |
14227 | ||
14228 | ||
14229 | static PyObject *_wrap_ART_GO_BACK_get() { | |
14230 | PyObject *pyobj; | |
14231 | ||
14232 | { | |
14233 | #if wxUSE_UNICODE | |
14234 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len()); | |
14235 | #else | |
14236 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len()); | |
14237 | #endif | |
14238 | } | |
14239 | return pyobj; | |
14240 | } | |
14241 | ||
14242 | ||
c32bde28 | 14243 | static int _wrap_ART_GO_FORWARD_set(PyObject *) { |
d55e5bfc RD |
14244 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_FORWARD is read-only."); |
14245 | return 1; | |
14246 | } | |
14247 | ||
14248 | ||
14249 | static PyObject *_wrap_ART_GO_FORWARD_get() { | |
14250 | PyObject *pyobj; | |
14251 | ||
14252 | { | |
14253 | #if wxUSE_UNICODE | |
14254 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len()); | |
14255 | #else | |
14256 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len()); | |
14257 | #endif | |
14258 | } | |
14259 | return pyobj; | |
14260 | } | |
14261 | ||
14262 | ||
c32bde28 | 14263 | static int _wrap_ART_GO_UP_set(PyObject *) { |
d55e5bfc RD |
14264 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_UP is read-only."); |
14265 | return 1; | |
14266 | } | |
14267 | ||
14268 | ||
14269 | static PyObject *_wrap_ART_GO_UP_get() { | |
14270 | PyObject *pyobj; | |
14271 | ||
14272 | { | |
14273 | #if wxUSE_UNICODE | |
14274 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len()); | |
14275 | #else | |
14276 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len()); | |
14277 | #endif | |
14278 | } | |
14279 | return pyobj; | |
14280 | } | |
14281 | ||
14282 | ||
c32bde28 | 14283 | static int _wrap_ART_GO_DOWN_set(PyObject *) { |
d55e5bfc RD |
14284 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DOWN is read-only."); |
14285 | return 1; | |
14286 | } | |
14287 | ||
14288 | ||
14289 | static PyObject *_wrap_ART_GO_DOWN_get() { | |
14290 | PyObject *pyobj; | |
14291 | ||
14292 | { | |
14293 | #if wxUSE_UNICODE | |
14294 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len()); | |
14295 | #else | |
14296 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len()); | |
14297 | #endif | |
14298 | } | |
14299 | return pyobj; | |
14300 | } | |
14301 | ||
14302 | ||
c32bde28 | 14303 | static int _wrap_ART_GO_TO_PARENT_set(PyObject *) { |
d55e5bfc RD |
14304 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_TO_PARENT is read-only."); |
14305 | return 1; | |
14306 | } | |
14307 | ||
14308 | ||
14309 | static PyObject *_wrap_ART_GO_TO_PARENT_get() { | |
14310 | PyObject *pyobj; | |
14311 | ||
14312 | { | |
14313 | #if wxUSE_UNICODE | |
14314 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len()); | |
14315 | #else | |
14316 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len()); | |
14317 | #endif | |
14318 | } | |
14319 | return pyobj; | |
14320 | } | |
14321 | ||
14322 | ||
c32bde28 | 14323 | static int _wrap_ART_GO_HOME_set(PyObject *) { |
d55e5bfc RD |
14324 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_HOME is read-only."); |
14325 | return 1; | |
14326 | } | |
14327 | ||
14328 | ||
14329 | static PyObject *_wrap_ART_GO_HOME_get() { | |
14330 | PyObject *pyobj; | |
14331 | ||
14332 | { | |
14333 | #if wxUSE_UNICODE | |
14334 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len()); | |
14335 | #else | |
14336 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len()); | |
14337 | #endif | |
14338 | } | |
14339 | return pyobj; | |
14340 | } | |
14341 | ||
14342 | ||
c32bde28 | 14343 | static int _wrap_ART_FILE_OPEN_set(PyObject *) { |
d55e5bfc RD |
14344 | PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_OPEN is read-only."); |
14345 | return 1; | |
14346 | } | |
14347 | ||
14348 | ||
14349 | static PyObject *_wrap_ART_FILE_OPEN_get() { | |
14350 | PyObject *pyobj; | |
14351 | ||
14352 | { | |
14353 | #if wxUSE_UNICODE | |
14354 | pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len()); | |
14355 | #else | |
14356 | pyobj = PyString_FromStringAndSize((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len()); | |
14357 | #endif | |
14358 | } | |
14359 | return pyobj; | |
14360 | } | |
14361 | ||
14362 | ||
c32bde28 | 14363 | static int _wrap_ART_PRINT_set(PyObject *) { |
d55e5bfc RD |
14364 | PyErr_SetString(PyExc_TypeError,"Variable ART_PRINT is read-only."); |
14365 | return 1; | |
14366 | } | |
14367 | ||
14368 | ||
14369 | static PyObject *_wrap_ART_PRINT_get() { | |
14370 | PyObject *pyobj; | |
14371 | ||
14372 | { | |
14373 | #if wxUSE_UNICODE | |
14374 | pyobj = PyUnicode_FromWideChar((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len()); | |
14375 | #else | |
14376 | pyobj = PyString_FromStringAndSize((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len()); | |
14377 | #endif | |
14378 | } | |
14379 | return pyobj; | |
14380 | } | |
14381 | ||
14382 | ||
c32bde28 | 14383 | static int _wrap_ART_HELP_set(PyObject *) { |
d55e5bfc RD |
14384 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP is read-only."); |
14385 | return 1; | |
14386 | } | |
14387 | ||
14388 | ||
14389 | static PyObject *_wrap_ART_HELP_get() { | |
14390 | PyObject *pyobj; | |
14391 | ||
14392 | { | |
14393 | #if wxUSE_UNICODE | |
14394 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len()); | |
14395 | #else | |
14396 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len()); | |
14397 | #endif | |
14398 | } | |
14399 | return pyobj; | |
14400 | } | |
14401 | ||
14402 | ||
c32bde28 | 14403 | static int _wrap_ART_TIP_set(PyObject *) { |
d55e5bfc RD |
14404 | PyErr_SetString(PyExc_TypeError,"Variable ART_TIP is read-only."); |
14405 | return 1; | |
14406 | } | |
14407 | ||
14408 | ||
14409 | static PyObject *_wrap_ART_TIP_get() { | |
14410 | PyObject *pyobj; | |
14411 | ||
14412 | { | |
14413 | #if wxUSE_UNICODE | |
14414 | pyobj = PyUnicode_FromWideChar((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len()); | |
14415 | #else | |
14416 | pyobj = PyString_FromStringAndSize((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len()); | |
14417 | #endif | |
14418 | } | |
14419 | return pyobj; | |
14420 | } | |
14421 | ||
14422 | ||
c32bde28 | 14423 | static int _wrap_ART_REPORT_VIEW_set(PyObject *) { |
d55e5bfc RD |
14424 | PyErr_SetString(PyExc_TypeError,"Variable ART_REPORT_VIEW is read-only."); |
14425 | return 1; | |
14426 | } | |
14427 | ||
14428 | ||
14429 | static PyObject *_wrap_ART_REPORT_VIEW_get() { | |
14430 | PyObject *pyobj; | |
14431 | ||
14432 | { | |
14433 | #if wxUSE_UNICODE | |
14434 | pyobj = PyUnicode_FromWideChar((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len()); | |
14435 | #else | |
14436 | pyobj = PyString_FromStringAndSize((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len()); | |
14437 | #endif | |
14438 | } | |
14439 | return pyobj; | |
14440 | } | |
14441 | ||
14442 | ||
c32bde28 | 14443 | static int _wrap_ART_LIST_VIEW_set(PyObject *) { |
d55e5bfc RD |
14444 | PyErr_SetString(PyExc_TypeError,"Variable ART_LIST_VIEW is read-only."); |
14445 | return 1; | |
14446 | } | |
14447 | ||
14448 | ||
14449 | static PyObject *_wrap_ART_LIST_VIEW_get() { | |
14450 | PyObject *pyobj; | |
14451 | ||
14452 | { | |
14453 | #if wxUSE_UNICODE | |
14454 | pyobj = PyUnicode_FromWideChar((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len()); | |
14455 | #else | |
14456 | pyobj = PyString_FromStringAndSize((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len()); | |
14457 | #endif | |
14458 | } | |
14459 | return pyobj; | |
14460 | } | |
14461 | ||
14462 | ||
c32bde28 | 14463 | static int _wrap_ART_NEW_DIR_set(PyObject *) { |
d55e5bfc RD |
14464 | PyErr_SetString(PyExc_TypeError,"Variable ART_NEW_DIR is read-only."); |
14465 | return 1; | |
14466 | } | |
14467 | ||
14468 | ||
14469 | static PyObject *_wrap_ART_NEW_DIR_get() { | |
14470 | PyObject *pyobj; | |
14471 | ||
14472 | { | |
14473 | #if wxUSE_UNICODE | |
14474 | pyobj = PyUnicode_FromWideChar((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len()); | |
14475 | #else | |
14476 | pyobj = PyString_FromStringAndSize((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len()); | |
14477 | #endif | |
14478 | } | |
14479 | return pyobj; | |
14480 | } | |
14481 | ||
14482 | ||
c32bde28 | 14483 | static int _wrap_ART_FOLDER_set(PyObject *) { |
d55e5bfc RD |
14484 | PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER is read-only."); |
14485 | return 1; | |
14486 | } | |
14487 | ||
14488 | ||
14489 | static PyObject *_wrap_ART_FOLDER_get() { | |
14490 | PyObject *pyobj; | |
14491 | ||
14492 | { | |
14493 | #if wxUSE_UNICODE | |
14494 | pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len()); | |
14495 | #else | |
14496 | pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len()); | |
14497 | #endif | |
14498 | } | |
14499 | return pyobj; | |
14500 | } | |
14501 | ||
14502 | ||
c32bde28 | 14503 | static int _wrap_ART_GO_DIR_UP_set(PyObject *) { |
d55e5bfc RD |
14504 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DIR_UP is read-only."); |
14505 | return 1; | |
14506 | } | |
14507 | ||
14508 | ||
14509 | static PyObject *_wrap_ART_GO_DIR_UP_get() { | |
14510 | PyObject *pyobj; | |
14511 | ||
14512 | { | |
14513 | #if wxUSE_UNICODE | |
14514 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len()); | |
14515 | #else | |
14516 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len()); | |
14517 | #endif | |
14518 | } | |
14519 | return pyobj; | |
14520 | } | |
14521 | ||
14522 | ||
c32bde28 | 14523 | static int _wrap_ART_EXECUTABLE_FILE_set(PyObject *) { |
d55e5bfc RD |
14524 | PyErr_SetString(PyExc_TypeError,"Variable ART_EXECUTABLE_FILE is read-only."); |
14525 | return 1; | |
14526 | } | |
14527 | ||
14528 | ||
14529 | static PyObject *_wrap_ART_EXECUTABLE_FILE_get() { | |
14530 | PyObject *pyobj; | |
14531 | ||
14532 | { | |
14533 | #if wxUSE_UNICODE | |
14534 | pyobj = PyUnicode_FromWideChar((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len()); | |
14535 | #else | |
14536 | pyobj = PyString_FromStringAndSize((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len()); | |
14537 | #endif | |
14538 | } | |
14539 | return pyobj; | |
14540 | } | |
14541 | ||
14542 | ||
c32bde28 | 14543 | static int _wrap_ART_NORMAL_FILE_set(PyObject *) { |
d55e5bfc RD |
14544 | PyErr_SetString(PyExc_TypeError,"Variable ART_NORMAL_FILE is read-only."); |
14545 | return 1; | |
14546 | } | |
14547 | ||
14548 | ||
14549 | static PyObject *_wrap_ART_NORMAL_FILE_get() { | |
14550 | PyObject *pyobj; | |
14551 | ||
14552 | { | |
14553 | #if wxUSE_UNICODE | |
14554 | pyobj = PyUnicode_FromWideChar((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len()); | |
14555 | #else | |
14556 | pyobj = PyString_FromStringAndSize((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len()); | |
14557 | #endif | |
14558 | } | |
14559 | return pyobj; | |
14560 | } | |
14561 | ||
14562 | ||
c32bde28 | 14563 | static int _wrap_ART_TICK_MARK_set(PyObject *) { |
d55e5bfc RD |
14564 | PyErr_SetString(PyExc_TypeError,"Variable ART_TICK_MARK is read-only."); |
14565 | return 1; | |
14566 | } | |
14567 | ||
14568 | ||
14569 | static PyObject *_wrap_ART_TICK_MARK_get() { | |
14570 | PyObject *pyobj; | |
14571 | ||
14572 | { | |
14573 | #if wxUSE_UNICODE | |
14574 | pyobj = PyUnicode_FromWideChar((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len()); | |
14575 | #else | |
14576 | pyobj = PyString_FromStringAndSize((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len()); | |
14577 | #endif | |
14578 | } | |
14579 | return pyobj; | |
14580 | } | |
14581 | ||
14582 | ||
c32bde28 | 14583 | static int _wrap_ART_CROSS_MARK_set(PyObject *) { |
d55e5bfc RD |
14584 | PyErr_SetString(PyExc_TypeError,"Variable ART_CROSS_MARK is read-only."); |
14585 | return 1; | |
14586 | } | |
14587 | ||
14588 | ||
14589 | static PyObject *_wrap_ART_CROSS_MARK_get() { | |
14590 | PyObject *pyobj; | |
14591 | ||
14592 | { | |
14593 | #if wxUSE_UNICODE | |
14594 | pyobj = PyUnicode_FromWideChar((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len()); | |
14595 | #else | |
14596 | pyobj = PyString_FromStringAndSize((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len()); | |
14597 | #endif | |
14598 | } | |
14599 | return pyobj; | |
14600 | } | |
14601 | ||
14602 | ||
c32bde28 | 14603 | static int _wrap_ART_ERROR_set(PyObject *) { |
d55e5bfc RD |
14604 | PyErr_SetString(PyExc_TypeError,"Variable ART_ERROR is read-only."); |
14605 | return 1; | |
14606 | } | |
14607 | ||
14608 | ||
14609 | static PyObject *_wrap_ART_ERROR_get() { | |
14610 | PyObject *pyobj; | |
14611 | ||
14612 | { | |
14613 | #if wxUSE_UNICODE | |
14614 | pyobj = PyUnicode_FromWideChar((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len()); | |
14615 | #else | |
14616 | pyobj = PyString_FromStringAndSize((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len()); | |
14617 | #endif | |
14618 | } | |
14619 | return pyobj; | |
14620 | } | |
14621 | ||
14622 | ||
c32bde28 | 14623 | static int _wrap_ART_QUESTION_set(PyObject *) { |
d55e5bfc RD |
14624 | PyErr_SetString(PyExc_TypeError,"Variable ART_QUESTION is read-only."); |
14625 | return 1; | |
14626 | } | |
14627 | ||
14628 | ||
14629 | static PyObject *_wrap_ART_QUESTION_get() { | |
14630 | PyObject *pyobj; | |
14631 | ||
14632 | { | |
14633 | #if wxUSE_UNICODE | |
14634 | pyobj = PyUnicode_FromWideChar((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len()); | |
14635 | #else | |
14636 | pyobj = PyString_FromStringAndSize((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len()); | |
14637 | #endif | |
14638 | } | |
14639 | return pyobj; | |
14640 | } | |
14641 | ||
14642 | ||
c32bde28 | 14643 | static int _wrap_ART_WARNING_set(PyObject *) { |
d55e5bfc RD |
14644 | PyErr_SetString(PyExc_TypeError,"Variable ART_WARNING is read-only."); |
14645 | return 1; | |
14646 | } | |
14647 | ||
14648 | ||
14649 | static PyObject *_wrap_ART_WARNING_get() { | |
14650 | PyObject *pyobj; | |
14651 | ||
14652 | { | |
14653 | #if wxUSE_UNICODE | |
14654 | pyobj = PyUnicode_FromWideChar((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len()); | |
14655 | #else | |
14656 | pyobj = PyString_FromStringAndSize((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len()); | |
14657 | #endif | |
14658 | } | |
14659 | return pyobj; | |
14660 | } | |
14661 | ||
14662 | ||
c32bde28 | 14663 | static int _wrap_ART_INFORMATION_set(PyObject *) { |
d55e5bfc RD |
14664 | PyErr_SetString(PyExc_TypeError,"Variable ART_INFORMATION is read-only."); |
14665 | return 1; | |
14666 | } | |
14667 | ||
14668 | ||
14669 | static PyObject *_wrap_ART_INFORMATION_get() { | |
14670 | PyObject *pyobj; | |
14671 | ||
14672 | { | |
14673 | #if wxUSE_UNICODE | |
14674 | pyobj = PyUnicode_FromWideChar((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len()); | |
14675 | #else | |
14676 | pyobj = PyString_FromStringAndSize((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len()); | |
14677 | #endif | |
14678 | } | |
14679 | return pyobj; | |
14680 | } | |
14681 | ||
14682 | ||
c32bde28 | 14683 | static int _wrap_ART_MISSING_IMAGE_set(PyObject *) { |
d55e5bfc RD |
14684 | PyErr_SetString(PyExc_TypeError,"Variable ART_MISSING_IMAGE is read-only."); |
14685 | return 1; | |
14686 | } | |
14687 | ||
14688 | ||
14689 | static PyObject *_wrap_ART_MISSING_IMAGE_get() { | |
14690 | PyObject *pyobj; | |
14691 | ||
14692 | { | |
14693 | #if wxUSE_UNICODE | |
14694 | pyobj = PyUnicode_FromWideChar((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len()); | |
14695 | #else | |
14696 | pyobj = PyString_FromStringAndSize((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len()); | |
14697 | #endif | |
14698 | } | |
14699 | return pyobj; | |
14700 | } | |
14701 | ||
14702 | ||
c32bde28 | 14703 | static PyObject *_wrap_new_ArtProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14704 | PyObject *resultobj; |
14705 | wxPyArtProvider *result; | |
14706 | char *kwnames[] = { | |
14707 | NULL | |
14708 | }; | |
14709 | ||
14710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ArtProvider",kwnames)) goto fail; | |
14711 | { | |
0439c23b | 14712 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
14713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14714 | result = (wxPyArtProvider *)new wxPyArtProvider(); | |
14715 | ||
14716 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14717 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
14718 | } |
14719 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyArtProvider, 1); | |
14720 | return resultobj; | |
14721 | fail: | |
14722 | return NULL; | |
14723 | } | |
14724 | ||
14725 | ||
c32bde28 | 14726 | static PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14727 | PyObject *resultobj; |
14728 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14729 | PyObject *arg2 = (PyObject *) 0 ; | |
14730 | PyObject *arg3 = (PyObject *) 0 ; | |
14731 | PyObject * obj0 = 0 ; | |
14732 | PyObject * obj1 = 0 ; | |
14733 | PyObject * obj2 = 0 ; | |
14734 | char *kwnames[] = { | |
14735 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
14736 | }; | |
14737 | ||
14738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ArtProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14739 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, | |
14740 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14741 | arg2 = obj1; | |
14742 | arg3 = obj2; | |
14743 | { | |
14744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14745 | (arg1)->_setCallbackInfo(arg2,arg3); | |
14746 | ||
14747 | wxPyEndAllowThreads(__tstate); | |
14748 | if (PyErr_Occurred()) SWIG_fail; | |
14749 | } | |
14750 | Py_INCREF(Py_None); resultobj = Py_None; | |
14751 | return resultobj; | |
14752 | fail: | |
14753 | return NULL; | |
14754 | } | |
14755 | ||
14756 | ||
c32bde28 | 14757 | static PyObject *_wrap_ArtProvider_PushProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14758 | PyObject *resultobj; |
14759 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14760 | PyObject * obj0 = 0 ; | |
14761 | char *kwnames[] = { | |
14762 | (char *) "provider", NULL | |
14763 | }; | |
14764 | ||
14765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) goto fail; | |
14766 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, | |
14767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14768 | { | |
14769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14770 | wxPyArtProvider::PushProvider(arg1); | |
14771 | ||
14772 | wxPyEndAllowThreads(__tstate); | |
14773 | if (PyErr_Occurred()) SWIG_fail; | |
14774 | } | |
14775 | Py_INCREF(Py_None); resultobj = Py_None; | |
14776 | return resultobj; | |
14777 | fail: | |
14778 | return NULL; | |
14779 | } | |
14780 | ||
14781 | ||
c32bde28 | 14782 | static PyObject *_wrap_ArtProvider_PopProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14783 | PyObject *resultobj; |
14784 | bool result; | |
14785 | char *kwnames[] = { | |
14786 | NULL | |
14787 | }; | |
14788 | ||
14789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ArtProvider_PopProvider",kwnames)) goto fail; | |
14790 | { | |
14791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14792 | result = (bool)wxPyArtProvider::PopProvider(); | |
14793 | ||
14794 | wxPyEndAllowThreads(__tstate); | |
14795 | if (PyErr_Occurred()) SWIG_fail; | |
14796 | } | |
14797 | { | |
14798 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14799 | } | |
14800 | return resultobj; | |
14801 | fail: | |
14802 | return NULL; | |
14803 | } | |
14804 | ||
14805 | ||
c32bde28 | 14806 | static PyObject *_wrap_ArtProvider_RemoveProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14807 | PyObject *resultobj; |
14808 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14809 | bool result; | |
14810 | PyObject * obj0 = 0 ; | |
14811 | char *kwnames[] = { | |
14812 | (char *) "provider", NULL | |
14813 | }; | |
14814 | ||
14815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_RemoveProvider",kwnames,&obj0)) goto fail; | |
14816 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, | |
14817 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14818 | { | |
14819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14820 | result = (bool)wxPyArtProvider::RemoveProvider(arg1); | |
14821 | ||
14822 | wxPyEndAllowThreads(__tstate); | |
14823 | if (PyErr_Occurred()) SWIG_fail; | |
14824 | } | |
14825 | { | |
14826 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14827 | } | |
14828 | return resultobj; | |
14829 | fail: | |
14830 | return NULL; | |
14831 | } | |
14832 | ||
14833 | ||
c32bde28 | 14834 | static PyObject *_wrap_ArtProvider_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14835 | PyObject *resultobj; |
14836 | wxString *arg1 = 0 ; | |
14837 | wxString const &arg2_defvalue = wxPyART_OTHER ; | |
14838 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
14839 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
14840 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
14841 | wxBitmap result; | |
ae8162c8 RD |
14842 | bool temp1 = false ; |
14843 | bool temp2 = false ; | |
d55e5bfc RD |
14844 | wxSize temp3 ; |
14845 | PyObject * obj0 = 0 ; | |
14846 | PyObject * obj1 = 0 ; | |
14847 | PyObject * obj2 = 0 ; | |
14848 | char *kwnames[] = { | |
14849 | (char *) "id",(char *) "client",(char *) "size", NULL | |
14850 | }; | |
14851 | ||
14852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14853 | { | |
14854 | arg1 = wxString_in_helper(obj0); | |
14855 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 14856 | temp1 = true; |
d55e5bfc RD |
14857 | } |
14858 | if (obj1) { | |
14859 | { | |
14860 | arg2 = wxString_in_helper(obj1); | |
14861 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 14862 | temp2 = true; |
d55e5bfc RD |
14863 | } |
14864 | } | |
14865 | if (obj2) { | |
14866 | { | |
14867 | arg3 = &temp3; | |
14868 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
14869 | } | |
14870 | } | |
14871 | { | |
0439c23b | 14872 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
14873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14874 | result = wxPyArtProvider::GetBitmap((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3); | |
14875 | ||
14876 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14877 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
14878 | } |
14879 | { | |
14880 | wxBitmap * resultptr; | |
14881 | resultptr = new wxBitmap((wxBitmap &) result); | |
14882 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
14883 | } | |
14884 | { | |
14885 | if (temp1) | |
14886 | delete arg1; | |
14887 | } | |
14888 | { | |
14889 | if (temp2) | |
14890 | delete arg2; | |
14891 | } | |
14892 | return resultobj; | |
14893 | fail: | |
14894 | { | |
14895 | if (temp1) | |
14896 | delete arg1; | |
14897 | } | |
14898 | { | |
14899 | if (temp2) | |
14900 | delete arg2; | |
14901 | } | |
14902 | return NULL; | |
14903 | } | |
14904 | ||
14905 | ||
c32bde28 | 14906 | static PyObject *_wrap_ArtProvider_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14907 | PyObject *resultobj; |
14908 | wxString *arg1 = 0 ; | |
14909 | wxString const &arg2_defvalue = wxPyART_OTHER ; | |
14910 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
14911 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
14912 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
14913 | wxIcon result; | |
ae8162c8 RD |
14914 | bool temp1 = false ; |
14915 | bool temp2 = false ; | |
d55e5bfc RD |
14916 | wxSize temp3 ; |
14917 | PyObject * obj0 = 0 ; | |
14918 | PyObject * obj1 = 0 ; | |
14919 | PyObject * obj2 = 0 ; | |
14920 | char *kwnames[] = { | |
14921 | (char *) "id",(char *) "client",(char *) "size", NULL | |
14922 | }; | |
14923 | ||
14924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14925 | { | |
14926 | arg1 = wxString_in_helper(obj0); | |
14927 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 14928 | temp1 = true; |
d55e5bfc RD |
14929 | } |
14930 | if (obj1) { | |
14931 | { | |
14932 | arg2 = wxString_in_helper(obj1); | |
14933 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 14934 | temp2 = true; |
d55e5bfc RD |
14935 | } |
14936 | } | |
14937 | if (obj2) { | |
14938 | { | |
14939 | arg3 = &temp3; | |
14940 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
14941 | } | |
14942 | } | |
14943 | { | |
0439c23b | 14944 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
14945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14946 | result = wxPyArtProvider::GetIcon((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3); | |
14947 | ||
14948 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14949 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
14950 | } |
14951 | { | |
14952 | wxIcon * resultptr; | |
14953 | resultptr = new wxIcon((wxIcon &) result); | |
14954 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1); | |
14955 | } | |
14956 | { | |
14957 | if (temp1) | |
14958 | delete arg1; | |
14959 | } | |
14960 | { | |
14961 | if (temp2) | |
14962 | delete arg2; | |
14963 | } | |
14964 | return resultobj; | |
14965 | fail: | |
14966 | { | |
14967 | if (temp1) | |
14968 | delete arg1; | |
14969 | } | |
14970 | { | |
14971 | if (temp2) | |
14972 | delete arg2; | |
14973 | } | |
14974 | return NULL; | |
14975 | } | |
14976 | ||
14977 | ||
c32bde28 | 14978 | static PyObject *_wrap_ArtProvider_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14979 | PyObject *resultobj; |
14980 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14981 | PyObject * obj0 = 0 ; | |
14982 | char *kwnames[] = { | |
14983 | (char *) "self", NULL | |
14984 | }; | |
14985 | ||
14986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Destroy",kwnames,&obj0)) goto fail; | |
14987 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, | |
14988 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14989 | { | |
14990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14991 | wxPyArtProvider_Destroy(arg1); | |
14992 | ||
14993 | wxPyEndAllowThreads(__tstate); | |
14994 | if (PyErr_Occurred()) SWIG_fail; | |
14995 | } | |
14996 | Py_INCREF(Py_None); resultobj = Py_None; | |
14997 | return resultobj; | |
14998 | fail: | |
14999 | return NULL; | |
15000 | } | |
15001 | ||
15002 | ||
c32bde28 | 15003 | static PyObject * ArtProvider_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
15004 | PyObject *obj; |
15005 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15006 | SWIG_TypeClientData(SWIGTYPE_p_wxPyArtProvider, obj); | |
15007 | Py_INCREF(obj); | |
15008 | return Py_BuildValue((char *)""); | |
15009 | } | |
c32bde28 | 15010 | static PyObject *_wrap_delete_ConfigBase(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15011 | PyObject *resultobj; |
15012 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15013 | PyObject * obj0 = 0 ; | |
15014 | char *kwnames[] = { | |
15015 | (char *) "self", NULL | |
15016 | }; | |
15017 | ||
15018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigBase",kwnames,&obj0)) goto fail; | |
15019 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15020 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15021 | { | |
15022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15023 | delete arg1; | |
15024 | ||
15025 | wxPyEndAllowThreads(__tstate); | |
15026 | if (PyErr_Occurred()) SWIG_fail; | |
15027 | } | |
15028 | Py_INCREF(Py_None); resultobj = Py_None; | |
15029 | return resultobj; | |
15030 | fail: | |
15031 | return NULL; | |
15032 | } | |
15033 | ||
15034 | ||
c32bde28 | 15035 | static PyObject *_wrap_ConfigBase_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15036 | PyObject *resultobj; |
15037 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15038 | wxConfigBase *result; | |
15039 | PyObject * obj0 = 0 ; | |
15040 | char *kwnames[] = { | |
15041 | (char *) "config", NULL | |
15042 | }; | |
15043 | ||
15044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_Set",kwnames,&obj0)) goto fail; | |
15045 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15046 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15047 | { | |
15048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15049 | result = (wxConfigBase *)wxConfigBase::Set(arg1); | |
15050 | ||
15051 | wxPyEndAllowThreads(__tstate); | |
15052 | if (PyErr_Occurred()) SWIG_fail; | |
15053 | } | |
15054 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); | |
15055 | return resultobj; | |
15056 | fail: | |
15057 | return NULL; | |
15058 | } | |
15059 | ||
15060 | ||
c32bde28 | 15061 | static PyObject *_wrap_ConfigBase_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 15062 | PyObject *resultobj; |
ae8162c8 | 15063 | bool arg1 = (bool) true ; |
d55e5bfc RD |
15064 | wxConfigBase *result; |
15065 | PyObject * obj0 = 0 ; | |
15066 | char *kwnames[] = { | |
15067 | (char *) "createOnDemand", NULL | |
15068 | }; | |
15069 | ||
15070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ConfigBase_Get",kwnames,&obj0)) goto fail; | |
15071 | if (obj0) { | |
c32bde28 | 15072 | arg1 = (bool)SWIG_As_bool(obj0); |
d55e5bfc RD |
15073 | if (PyErr_Occurred()) SWIG_fail; |
15074 | } | |
15075 | { | |
15076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15077 | result = (wxConfigBase *)wxConfigBase::Get(arg1); | |
15078 | ||
15079 | wxPyEndAllowThreads(__tstate); | |
15080 | if (PyErr_Occurred()) SWIG_fail; | |
15081 | } | |
15082 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); | |
15083 | return resultobj; | |
15084 | fail: | |
15085 | return NULL; | |
15086 | } | |
15087 | ||
15088 | ||
c32bde28 | 15089 | static PyObject *_wrap_ConfigBase_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15090 | PyObject *resultobj; |
15091 | wxConfigBase *result; | |
15092 | char *kwnames[] = { | |
15093 | NULL | |
15094 | }; | |
15095 | ||
15096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_Create",kwnames)) goto fail; | |
15097 | { | |
15098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15099 | result = (wxConfigBase *)wxConfigBase::Create(); | |
15100 | ||
15101 | wxPyEndAllowThreads(__tstate); | |
15102 | if (PyErr_Occurred()) SWIG_fail; | |
15103 | } | |
15104 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); | |
15105 | return resultobj; | |
15106 | fail: | |
15107 | return NULL; | |
15108 | } | |
15109 | ||
15110 | ||
c32bde28 | 15111 | static PyObject *_wrap_ConfigBase_DontCreateOnDemand(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15112 | PyObject *resultobj; |
15113 | char *kwnames[] = { | |
15114 | NULL | |
15115 | }; | |
15116 | ||
15117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_DontCreateOnDemand",kwnames)) goto fail; | |
15118 | { | |
15119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15120 | wxConfigBase::DontCreateOnDemand(); | |
15121 | ||
15122 | wxPyEndAllowThreads(__tstate); | |
15123 | if (PyErr_Occurred()) SWIG_fail; | |
15124 | } | |
15125 | Py_INCREF(Py_None); resultobj = Py_None; | |
15126 | return resultobj; | |
15127 | fail: | |
15128 | return NULL; | |
15129 | } | |
15130 | ||
15131 | ||
c32bde28 | 15132 | static PyObject *_wrap_ConfigBase_SetPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15133 | PyObject *resultobj; |
15134 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15135 | wxString *arg2 = 0 ; | |
ae8162c8 | 15136 | bool temp2 = false ; |
d55e5bfc RD |
15137 | PyObject * obj0 = 0 ; |
15138 | PyObject * obj1 = 0 ; | |
15139 | char *kwnames[] = { | |
15140 | (char *) "self",(char *) "path", NULL | |
15141 | }; | |
15142 | ||
15143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
15144 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15145 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15146 | { | |
15147 | arg2 = wxString_in_helper(obj1); | |
15148 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 15149 | temp2 = true; |
d55e5bfc RD |
15150 | } |
15151 | { | |
15152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15153 | (arg1)->SetPath((wxString const &)*arg2); | |
15154 | ||
15155 | wxPyEndAllowThreads(__tstate); | |
15156 | if (PyErr_Occurred()) SWIG_fail; | |
15157 | } | |
15158 | Py_INCREF(Py_None); resultobj = Py_None; | |
15159 | { | |
15160 | if (temp2) | |
15161 | delete arg2; | |
15162 | } | |
15163 | return resultobj; | |
15164 | fail: | |
15165 | { | |
15166 | if (temp2) | |
15167 | delete arg2; | |
15168 | } | |
15169 | return NULL; | |
15170 | } | |
15171 | ||
15172 | ||
c32bde28 | 15173 | static PyObject *_wrap_ConfigBase_GetPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15174 | PyObject *resultobj; |
15175 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15176 | wxString *result; | |
15177 | PyObject * obj0 = 0 ; | |
15178 | char *kwnames[] = { | |
15179 | (char *) "self", NULL | |
15180 | }; | |
15181 | ||
15182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetPath",kwnames,&obj0)) goto fail; | |
15183 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15184 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15185 | { | |
15186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15187 | { | |
15188 | wxString const &_result_ref = ((wxConfigBase const *)arg1)->GetPath(); | |
15189 | result = (wxString *) &_result_ref; | |
15190 | } | |
15191 | ||
15192 | wxPyEndAllowThreads(__tstate); | |
15193 | if (PyErr_Occurred()) SWIG_fail; | |
15194 | } | |
15195 | { | |
15196 | #if wxUSE_UNICODE | |
15197 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
15198 | #else | |
15199 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
15200 | #endif | |
15201 | } | |
15202 | return resultobj; | |
15203 | fail: | |
15204 | return NULL; | |
15205 | } | |
15206 | ||
15207 | ||
c32bde28 | 15208 | static PyObject *_wrap_ConfigBase_GetFirstGroup(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15209 | PyObject *resultobj; |
15210 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15211 | PyObject *result; | |
15212 | PyObject * obj0 = 0 ; | |
15213 | char *kwnames[] = { | |
15214 | (char *) "self", NULL | |
15215 | }; | |
15216 | ||
15217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstGroup",kwnames,&obj0)) goto fail; | |
15218 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15220 | { | |
15221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15222 | result = (PyObject *)wxConfigBase_GetFirstGroup(arg1); | |
15223 | ||
15224 | wxPyEndAllowThreads(__tstate); | |
15225 | if (PyErr_Occurred()) SWIG_fail; | |
15226 | } | |
15227 | resultobj = result; | |
15228 | return resultobj; | |
15229 | fail: | |
15230 | return NULL; | |
15231 | } | |
15232 | ||
15233 | ||
c32bde28 | 15234 | static PyObject *_wrap_ConfigBase_GetNextGroup(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15235 | PyObject *resultobj; |
15236 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15237 | long arg2 ; | |
15238 | PyObject *result; | |
15239 | PyObject * obj0 = 0 ; | |
15240 | PyObject * obj1 = 0 ; | |
15241 | char *kwnames[] = { | |
15242 | (char *) "self",(char *) "index", NULL | |
15243 | }; | |
15244 | ||
15245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextGroup",kwnames,&obj0,&obj1)) goto fail; | |
15246 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15247 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15248 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
15249 | if (PyErr_Occurred()) SWIG_fail; |
15250 | { | |
15251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15252 | result = (PyObject *)wxConfigBase_GetNextGroup(arg1,arg2); | |
15253 | ||
15254 | wxPyEndAllowThreads(__tstate); | |
15255 | if (PyErr_Occurred()) SWIG_fail; | |
15256 | } | |
15257 | resultobj = result; | |
15258 | return resultobj; | |
15259 | fail: | |
15260 | return NULL; | |
15261 | } | |
15262 | ||
15263 | ||
c32bde28 | 15264 | static PyObject *_wrap_ConfigBase_GetFirstEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15265 | PyObject *resultobj; |
15266 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15267 | PyObject *result; | |
15268 | PyObject * obj0 = 0 ; | |
15269 | char *kwnames[] = { | |
15270 | (char *) "self", NULL | |
15271 | }; | |
15272 | ||
15273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstEntry",kwnames,&obj0)) goto fail; | |
15274 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15275 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15276 | { | |
15277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15278 | result = (PyObject *)wxConfigBase_GetFirstEntry(arg1); | |
15279 | ||
15280 | wxPyEndAllowThreads(__tstate); | |
15281 | if (PyErr_Occurred()) SWIG_fail; | |
15282 | } | |
15283 | resultobj = result; | |
15284 | return resultobj; | |
15285 | fail: | |
15286 | return NULL; | |
15287 | } | |
15288 | ||
15289 | ||
c32bde28 | 15290 | static PyObject *_wrap_ConfigBase_GetNextEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15291 | PyObject *resultobj; |
15292 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15293 | long arg2 ; | |
15294 | PyObject *result; | |
15295 | PyObject * obj0 = 0 ; | |
15296 | PyObject * obj1 = 0 ; | |
15297 | char *kwnames[] = { | |
15298 | (char *) "self",(char *) "index", NULL | |
15299 | }; | |
15300 | ||
15301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextEntry",kwnames,&obj0,&obj1)) goto fail; | |
15302 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15303 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15304 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
15305 | if (PyErr_Occurred()) SWIG_fail; |
15306 | { | |
15307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15308 | result = (PyObject *)wxConfigBase_GetNextEntry(arg1,arg2); | |
15309 | ||
15310 | wxPyEndAllowThreads(__tstate); | |
15311 | if (PyErr_Occurred()) SWIG_fail; | |
15312 | } | |
15313 | resultobj = result; | |
15314 | return resultobj; | |
15315 | fail: | |
15316 | return NULL; | |
15317 | } | |
15318 | ||
15319 | ||
c32bde28 | 15320 | static PyObject *_wrap_ConfigBase_GetNumberOfEntries(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15321 | PyObject *resultobj; |
15322 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
ae8162c8 | 15323 | bool arg2 = (bool) false ; |
d55e5bfc RD |
15324 | size_t result; |
15325 | PyObject * obj0 = 0 ; | |
15326 | PyObject * obj1 = 0 ; | |
15327 | char *kwnames[] = { | |
15328 | (char *) "self",(char *) "recursive", NULL | |
15329 | }; | |
15330 | ||
15331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfEntries",kwnames,&obj0,&obj1)) goto fail; | |
15332 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15333 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15334 | if (obj1) { | |
c32bde28 | 15335 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
15336 | if (PyErr_Occurred()) SWIG_fail; |
15337 | } | |
15338 | { | |
15339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15340 | result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfEntries(arg2); | |
15341 | ||
15342 | wxPyEndAllowThreads(__tstate); | |
15343 | if (PyErr_Occurred()) SWIG_fail; | |
15344 | } | |
c32bde28 | 15345 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
15346 | return resultobj; |
15347 | fail: | |
15348 | return NULL; | |
15349 | } | |
15350 | ||
15351 | ||
c32bde28 | 15352 | static PyObject *_wrap_ConfigBase_GetNumberOfGroups(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15353 | PyObject *resultobj; |
15354 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
ae8162c8 | 15355 | bool arg2 = (bool) false ; |
d55e5bfc RD |
15356 | size_t result; |
15357 | PyObject * obj0 = 0 ; | |
15358 | PyObject * obj1 = 0 ; | |
15359 | char *kwnames[] = { | |
15360 | (char *) "self",(char *) "recursive", NULL | |
15361 | }; | |
15362 | ||
15363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfGroups",kwnames,&obj0,&obj1)) goto fail; | |
15364 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15365 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15366 | if (obj1) { | |
c32bde28 | 15367 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
15368 | if (PyErr_Occurred()) SWIG_fail; |
15369 | } | |
15370 | { | |
15371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15372 | result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfGroups(arg2); | |
15373 | ||
15374 | wxPyEndAllowThreads(__tstate); | |
15375 | if (PyErr_Occurred()) SWIG_fail; | |
15376 | } | |
c32bde28 | 15377 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
15378 | return resultobj; |
15379 | fail: | |
15380 | return NULL; | |
15381 | } | |
15382 | ||
15383 | ||
c32bde28 | 15384 | static PyObject *_wrap_ConfigBase_HasGroup(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15385 | PyObject *resultobj; |
15386 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15387 | wxString *arg2 = 0 ; | |
15388 | bool result; | |
ae8162c8 | 15389 | bool temp2 = false ; |
d55e5bfc RD |
15390 | PyObject * obj0 = 0 ; |
15391 | PyObject * obj1 = 0 ; | |
15392 | char *kwnames[] = { | |
15393 | (char *) "self",(char *) "name", NULL | |
15394 | }; | |
15395 | ||
15396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasGroup",kwnames,&obj0,&obj1)) goto fail; | |
15397 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15399 | { | |
15400 | arg2 = wxString_in_helper(obj1); | |
15401 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 15402 | temp2 = true; |
d55e5bfc RD |
15403 | } |
15404 | { | |
15405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15406 | result = (bool)((wxConfigBase const *)arg1)->HasGroup((wxString const &)*arg2); | |
15407 | ||
15408 | wxPyEndAllowThreads(__tstate); | |
15409 | if (PyErr_Occurred()) SWIG_fail; | |
15410 | } | |
15411 | { | |
15412 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15413 | } | |
15414 | { | |
15415 | if (temp2) | |
15416 | delete arg2; | |
15417 | } | |
15418 | return resultobj; | |
15419 | fail: | |
15420 | { | |
15421 | if (temp2) | |
15422 | delete arg2; | |
15423 | } | |
15424 | return NULL; | |
15425 | } | |
15426 | ||
15427 | ||
c32bde28 | 15428 | static PyObject *_wrap_ConfigBase_HasEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15429 | PyObject *resultobj; |
15430 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15431 | wxString *arg2 = 0 ; | |
15432 | bool result; | |
ae8162c8 | 15433 | bool temp2 = false ; |
d55e5bfc RD |
15434 | PyObject * obj0 = 0 ; |
15435 | PyObject * obj1 = 0 ; | |
15436 | char *kwnames[] = { | |
15437 | (char *) "self",(char *) "name", NULL | |
15438 | }; | |
15439 | ||
15440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasEntry",kwnames,&obj0,&obj1)) goto fail; | |
15441 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15442 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15443 | { | |
15444 | arg2 = wxString_in_helper(obj1); | |
15445 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 15446 | temp2 = true; |
d55e5bfc RD |
15447 | } |
15448 | { | |
15449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15450 | result = (bool)((wxConfigBase const *)arg1)->HasEntry((wxString const &)*arg2); | |
15451 | ||
15452 | wxPyEndAllowThreads(__tstate); | |
15453 | if (PyErr_Occurred()) SWIG_fail; | |
15454 | } | |
15455 | { | |
15456 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15457 | } | |
15458 | { | |
15459 | if (temp2) | |
15460 | delete arg2; | |
15461 | } | |
15462 | return resultobj; | |
15463 | fail: | |
15464 | { | |
15465 | if (temp2) | |
15466 | delete arg2; | |
15467 | } | |
15468 | return NULL; | |
15469 | } | |
15470 | ||
15471 | ||
c32bde28 | 15472 | static PyObject *_wrap_ConfigBase_Exists(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15473 | PyObject *resultobj; |
15474 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15475 | wxString *arg2 = 0 ; | |
15476 | bool result; | |
ae8162c8 | 15477 | bool temp2 = false ; |
d55e5bfc RD |
15478 | PyObject * obj0 = 0 ; |
15479 | PyObject * obj1 = 0 ; | |
15480 | char *kwnames[] = { | |
15481 | (char *) "self",(char *) "name", NULL | |
15482 | }; | |
15483 | ||
15484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_Exists",kwnames,&obj0,&obj1)) goto fail; | |
15485 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15486 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15487 | { | |
15488 | arg2 = wxString_in_helper(obj1); | |
15489 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 15490 | temp2 = true; |
d55e5bfc RD |
15491 | } |
15492 | { | |
15493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15494 | result = (bool)((wxConfigBase const *)arg1)->Exists((wxString const &)*arg2); | |
15495 | ||
15496 | wxPyEndAllowThreads(__tstate); | |
15497 | if (PyErr_Occurred()) SWIG_fail; | |
15498 | } | |
15499 | { | |
15500 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15501 | } | |
15502 | { | |
15503 | if (temp2) | |
15504 | delete arg2; | |
15505 | } | |
15506 | return resultobj; | |
15507 | fail: | |
15508 | { | |
15509 | if (temp2) | |
15510 | delete arg2; | |
15511 | } | |
15512 | return NULL; | |
15513 | } | |
15514 | ||
15515 | ||
c32bde28 | 15516 | static PyObject *_wrap_ConfigBase_GetEntryType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15517 | PyObject *resultobj; |
15518 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15519 | wxString *arg2 = 0 ; | |
15520 | int result; | |
ae8162c8 | 15521 | bool temp2 = false ; |
d55e5bfc RD |
15522 | PyObject * obj0 = 0 ; |
15523 | PyObject * obj1 = 0 ; | |
15524 | char *kwnames[] = { | |
15525 | (char *) "self",(char *) "name", NULL | |
15526 | }; | |
15527 | ||
15528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetEntryType",kwnames,&obj0,&obj1)) goto fail; | |
15529 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15531 | { | |
15532 | arg2 = wxString_in_helper(obj1); | |
15533 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 15534 | temp2 = true; |
d55e5bfc RD |
15535 | } |
15536 | { | |
15537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15538 | result = (int)((wxConfigBase const *)arg1)->GetEntryType((wxString const &)*arg2); | |
15539 | ||
15540 | wxPyEndAllowThreads(__tstate); | |
15541 | if (PyErr_Occurred()) SWIG_fail; | |
15542 | } | |
c32bde28 | 15543 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15544 | { |
15545 | if (temp2) | |
15546 | delete arg2; | |
15547 | } | |
15548 | return resultobj; | |
15549 | fail: | |
15550 | { | |
15551 | if (temp2) | |
15552 | delete arg2; | |
15553 | } | |
15554 | return NULL; | |
15555 | } | |
15556 | ||
15557 | ||
c32bde28 | 15558 | static PyObject *_wrap_ConfigBase_Read(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15559 | PyObject *resultobj; |
15560 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15561 | wxString *arg2 = 0 ; | |
15562 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
15563 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
15564 | wxString result; | |
ae8162c8 RD |
15565 | bool temp2 = false ; |
15566 | bool temp3 = false ; | |
d55e5bfc RD |
15567 | PyObject * obj0 = 0 ; |
15568 | PyObject * obj1 = 0 ; | |
15569 | PyObject * obj2 = 0 ; | |
15570 | char *kwnames[] = { | |
15571 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15572 | }; | |
15573 | ||
15574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_Read",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15575 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15576 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15577 | { | |
15578 | arg2 = wxString_in_helper(obj1); | |
15579 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 15580 | temp2 = true; |
d55e5bfc RD |
15581 | } |
15582 | if (obj2) { | |
15583 | { | |
15584 | arg3 = wxString_in_helper(obj2); | |
15585 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 15586 | temp3 = true; |
d55e5bfc RD |
15587 | } |
15588 | } | |
15589 | { | |
15590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15591 | result = (arg1)->Read((wxString const &)*arg2,(wxString const &)*arg3); | |
15592 | ||
15593 | wxPyEndAllowThreads(__tstate); | |
15594 | if (PyErr_Occurred()) SWIG_fail; | |
15595 | } | |
15596 | { | |
15597 | #if wxUSE_UNICODE | |
15598 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15599 | #else | |
15600 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15601 | #endif | |
15602 | } | |
15603 | { | |
15604 | if (temp2) | |
15605 | delete arg2; | |
15606 | } | |
15607 | { | |
15608 | if (temp3) | |
15609 | delete arg3; | |
15610 | } | |
15611 | return resultobj; | |
15612 | fail: | |
15613 | { | |
15614 | if (temp2) | |
15615 | delete arg2; | |
15616 | } | |
15617 | { | |
15618 | if (temp3) | |
15619 | delete arg3; | |
15620 | } | |
15621 | return NULL; | |
15622 | } | |
15623 | ||
15624 | ||
c32bde28 | 15625 | static PyObject *_wrap_ConfigBase_ReadInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15626 | PyObject *resultobj; |
15627 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15628 | wxString *arg2 = 0 ; | |
15629 | long arg3 = (long) 0 ; | |
15630 | long result; | |
ae8162c8 | 15631 | bool temp2 = false ; |
d55e5bfc RD |
15632 | PyObject * obj0 = 0 ; |
15633 | PyObject * obj1 = 0 ; | |
15634 | PyObject * obj2 = 0 ; | |
15635 | char *kwnames[] = { | |
15636 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15637 | }; | |
15638 | ||
15639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadInt",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15640 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15641 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15642 | { | |
15643 | arg2 = wxString_in_helper(obj1); | |
15644 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 15645 | temp2 = true; |
d55e5bfc RD |
15646 | } |
15647 | if (obj2) { | |
c32bde28 | 15648 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
15649 | if (PyErr_Occurred()) SWIG_fail; |
15650 | } | |
15651 | { | |
15652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15653 | result = (long)wxConfigBase_ReadInt(arg1,(wxString const &)*arg2,arg3); | |
15654 | ||
15655 | wxPyEndAllowThreads(__tstate); | |
15656 | if (PyErr_Occurred()) SWIG_fail; | |
15657 | } | |
c32bde28 | 15658 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
15659 | { |
15660 | if (temp2) | |
15661 | delete arg2; | |
15662 | } | |
15663 | return resultobj; | |
15664 | fail: | |
15665 | { | |
15666 | if (temp2) | |
15667 | delete arg2; | |
15668 | } | |
15669 | return NULL; | |
15670 | } | |
15671 | ||
15672 | ||
c32bde28 | 15673 | static PyObject *_wrap_ConfigBase_ReadFloat(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15674 | PyObject *resultobj; |
15675 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15676 | wxString *arg2 = 0 ; | |
15677 | double arg3 = (double) 0.0 ; | |
15678 | double result; | |
ae8162c8 | 15679 | bool temp2 = false ; |
d55e5bfc RD |
15680 | PyObject * obj0 = 0 ; |
15681 | PyObject * obj1 = 0 ; | |
15682 | PyObject * obj2 = 0 ; | |
15683 | char *kwnames[] = { | |
15684 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15685 | }; | |
15686 | ||
15687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadFloat",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15688 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15689 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15690 | { | |
15691 | arg2 = wxString_in_helper(obj1); | |
15692 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 15693 | temp2 = true; |
d55e5bfc RD |
15694 | } |
15695 | if (obj2) { | |
c32bde28 | 15696 | arg3 = (double)SWIG_As_double(obj2); |
d55e5bfc RD |
15697 | if (PyErr_Occurred()) SWIG_fail; |
15698 | } | |
15699 | { | |
15700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15701 | result = (double)wxConfigBase_ReadFloat(arg1,(wxString const &)*arg2,arg3); | |
15702 | ||
15703 | wxPyEndAllowThreads(__tstate); | |
15704 | if (PyErr_Occurred()) SWIG_fail; | |
15705 | } | |
c32bde28 | 15706 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
15707 | { |
15708 | if (temp2) | |
15709 | delete arg2; | |
15710 | } | |
15711 | return resultobj; | |
15712 | fail: | |
15713 | { | |
15714 | if (temp2) | |
15715 | delete arg2; | |
15716 | } | |
15717 | return NULL; | |
15718 | } | |
15719 | ||
15720 | ||
c32bde28 | 15721 | static PyObject *_wrap_ConfigBase_ReadBool(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15722 | PyObject *resultobj; |
15723 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15724 | wxString *arg2 = 0 ; | |
ae8162c8 | 15725 | bool arg3 = (bool) false ; |
d55e5bfc | 15726 | bool result; |
ae8162c8 | 15727 | bool temp2 = false ; |
d55e5bfc RD |
15728 | PyObject * obj0 = 0 ; |
15729 | PyObject * obj1 = 0 ; | |
15730 | PyObject * obj2 = 0 ; | |
15731 | char *kwnames[] = { | |
15732 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15733 | }; | |
15734 | ||
15735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadBool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15736 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15737 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15738 | { | |
15739 | arg2 = wxString_in_helper(obj1); | |
15740 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 15741 | temp2 = true; |
d55e5bfc RD |
15742 | } |
15743 | if (obj2) { | |
c32bde28 | 15744 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
15745 | if (PyErr_Occurred()) SWIG_fail; |
15746 | } | |
15747 | { | |
15748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15749 | result = (bool)wxConfigBase_ReadBool(arg1,(wxString const &)*arg2,arg3); | |
15750 | ||
15751 | wxPyEndAllowThreads(__tstate); | |
15752 | if (PyErr_Occurred()) SWIG_fail; | |
15753 | } | |
15754 | { | |
15755 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15756 | } | |
15757 | { | |
15758 | if (temp2) | |
15759 | delete arg2; | |
15760 | } | |
15761 | return resultobj; | |
15762 | fail: | |
15763 | { | |
15764 | if (temp2) | |
15765 | delete arg2; | |
15766 | } | |
15767 | return NULL; | |
15768 | } | |
15769 | ||
15770 | ||
c32bde28 | 15771 | static PyObject *_wrap_ConfigBase_Write(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15772 | PyObject *resultobj; |
15773 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15774 | wxString *arg2 = 0 ; | |
15775 | wxString *arg3 = 0 ; | |
15776 | bool result; | |
ae8162c8 RD |
15777 | bool temp2 = false ; |
15778 | bool temp3 = false ; | |
d55e5bfc RD |
15779 | PyObject * obj0 = 0 ; |
15780 | PyObject * obj1 = 0 ; | |
15781 | PyObject * obj2 = 0 ; | |
15782 | char *kwnames[] = { | |
15783 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15784 | }; | |
15785 | ||
15786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_Write",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15787 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15788 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15789 | { | |
15790 | arg2 = wxString_in_helper(obj1); | |
15791 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 15792 | temp2 = true; |
d55e5bfc RD |
15793 | } |
15794 | { | |
15795 | arg3 = wxString_in_helper(obj2); | |
15796 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 15797 | temp3 = true; |
d55e5bfc RD |
15798 | } |
15799 | { | |
15800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15801 | result = (bool)(arg1)->Write((wxString const &)*arg2,(wxString const &)*arg3); | |
15802 | ||
15803 | wxPyEndAllowThreads(__tstate); | |
15804 | if (PyErr_Occurred()) SWIG_fail; | |
15805 | } | |
15806 | { | |
15807 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15808 | } | |
15809 | { | |
15810 | if (temp2) | |
15811 | delete arg2; | |
15812 | } | |
15813 | { | |
15814 | if (temp3) | |
15815 | delete arg3; | |
15816 | } | |
15817 | return resultobj; | |
15818 | fail: | |
15819 | { | |
15820 | if (temp2) | |
15821 | delete arg2; | |
15822 | } | |
15823 | { | |
15824 | if (temp3) | |
15825 | delete arg3; | |
15826 | } | |
15827 | return NULL; | |
15828 | } | |
15829 | ||
15830 | ||
c32bde28 | 15831 | static PyObject *_wrap_ConfigBase_WriteInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15832 | PyObject *resultobj; |
15833 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15834 | wxString *arg2 = 0 ; | |
15835 | long arg3 ; | |
15836 | bool result; | |
ae8162c8 | 15837 | bool temp2 = false ; |
d55e5bfc RD |
15838 | PyObject * obj0 = 0 ; |
15839 | PyObject * obj1 = 0 ; | |
15840 | PyObject * obj2 = 0 ; | |
15841 | char *kwnames[] = { | |
15842 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15843 | }; | |
15844 | ||
15845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteInt",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15846 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15848 | { | |
15849 | arg2 = wxString_in_helper(obj1); | |
15850 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 15851 | temp2 = true; |
d55e5bfc | 15852 | } |
c32bde28 | 15853 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
15854 | if (PyErr_Occurred()) SWIG_fail; |
15855 | { | |
15856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15857 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
15858 | ||
15859 | wxPyEndAllowThreads(__tstate); | |
15860 | if (PyErr_Occurred()) SWIG_fail; | |
15861 | } | |
15862 | { | |
15863 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15864 | } | |
15865 | { | |
15866 | if (temp2) | |
15867 | delete arg2; | |
15868 | } | |
15869 | return resultobj; | |
15870 | fail: | |
15871 | { | |
15872 | if (temp2) | |
15873 | delete arg2; | |
15874 | } | |
15875 | return NULL; | |
15876 | } | |
15877 | ||
15878 | ||
c32bde28 | 15879 | static PyObject *_wrap_ConfigBase_WriteFloat(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15880 | PyObject *resultobj; |
15881 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15882 | wxString *arg2 = 0 ; | |
15883 | double arg3 ; | |
15884 | bool result; | |
ae8162c8 | 15885 | bool temp2 = false ; |
d55e5bfc RD |
15886 | PyObject * obj0 = 0 ; |
15887 | PyObject * obj1 = 0 ; | |
15888 | PyObject * obj2 = 0 ; | |
15889 | char *kwnames[] = { | |
15890 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15891 | }; | |
15892 | ||
15893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteFloat",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15896 | { | |
15897 | arg2 = wxString_in_helper(obj1); | |
15898 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 15899 | temp2 = true; |
d55e5bfc | 15900 | } |
c32bde28 | 15901 | arg3 = (double)SWIG_As_double(obj2); |
d55e5bfc RD |
15902 | if (PyErr_Occurred()) SWIG_fail; |
15903 | { | |
15904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15905 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
15906 | ||
15907 | wxPyEndAllowThreads(__tstate); | |
15908 | if (PyErr_Occurred()) SWIG_fail; | |
15909 | } | |
15910 | { | |
15911 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15912 | } | |
15913 | { | |
15914 | if (temp2) | |
15915 | delete arg2; | |
15916 | } | |
15917 | return resultobj; | |
15918 | fail: | |
15919 | { | |
15920 | if (temp2) | |
15921 | delete arg2; | |
15922 | } | |
15923 | return NULL; | |
15924 | } | |
15925 | ||
15926 | ||
c32bde28 | 15927 | static PyObject *_wrap_ConfigBase_WriteBool(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15928 | PyObject *resultobj; |
15929 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15930 | wxString *arg2 = 0 ; | |
15931 | bool arg3 ; | |
15932 | bool result; | |
ae8162c8 | 15933 | bool temp2 = false ; |
d55e5bfc RD |
15934 | PyObject * obj0 = 0 ; |
15935 | PyObject * obj1 = 0 ; | |
15936 | PyObject * obj2 = 0 ; | |
15937 | char *kwnames[] = { | |
15938 | (char *) "self",(char *) "key",(char *) "value", NULL | |
15939 | }; | |
15940 | ||
15941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteBool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15942 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15943 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15944 | { | |
15945 | arg2 = wxString_in_helper(obj1); | |
15946 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 15947 | temp2 = true; |
d55e5bfc | 15948 | } |
c32bde28 | 15949 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
15950 | if (PyErr_Occurred()) SWIG_fail; |
15951 | { | |
15952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15953 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
15954 | ||
15955 | wxPyEndAllowThreads(__tstate); | |
15956 | if (PyErr_Occurred()) SWIG_fail; | |
15957 | } | |
15958 | { | |
15959 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15960 | } | |
15961 | { | |
15962 | if (temp2) | |
15963 | delete arg2; | |
15964 | } | |
15965 | return resultobj; | |
15966 | fail: | |
15967 | { | |
15968 | if (temp2) | |
15969 | delete arg2; | |
15970 | } | |
15971 | return NULL; | |
15972 | } | |
15973 | ||
15974 | ||
c32bde28 | 15975 | static PyObject *_wrap_ConfigBase_Flush(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15976 | PyObject *resultobj; |
15977 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
ae8162c8 | 15978 | bool arg2 = (bool) false ; |
d55e5bfc RD |
15979 | bool result; |
15980 | PyObject * obj0 = 0 ; | |
15981 | PyObject * obj1 = 0 ; | |
15982 | char *kwnames[] = { | |
15983 | (char *) "self",(char *) "currentOnly", NULL | |
15984 | }; | |
15985 | ||
15986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_Flush",kwnames,&obj0,&obj1)) goto fail; | |
15987 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15988 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15989 | if (obj1) { | |
c32bde28 | 15990 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
15991 | if (PyErr_Occurred()) SWIG_fail; |
15992 | } | |
15993 | { | |
15994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15995 | result = (bool)(arg1)->Flush(arg2); | |
15996 | ||
15997 | wxPyEndAllowThreads(__tstate); | |
15998 | if (PyErr_Occurred()) SWIG_fail; | |
15999 | } | |
16000 | { | |
16001 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16002 | } | |
16003 | return resultobj; | |
16004 | fail: | |
16005 | return NULL; | |
16006 | } | |
16007 | ||
16008 | ||
c32bde28 | 16009 | static PyObject *_wrap_ConfigBase_RenameEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16010 | PyObject *resultobj; |
16011 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16012 | wxString *arg2 = 0 ; | |
16013 | wxString *arg3 = 0 ; | |
16014 | bool result; | |
ae8162c8 RD |
16015 | bool temp2 = false ; |
16016 | bool temp3 = false ; | |
d55e5bfc RD |
16017 | PyObject * obj0 = 0 ; |
16018 | PyObject * obj1 = 0 ; | |
16019 | PyObject * obj2 = 0 ; | |
16020 | char *kwnames[] = { | |
16021 | (char *) "self",(char *) "oldName",(char *) "newName", NULL | |
16022 | }; | |
16023 | ||
16024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16025 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16026 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16027 | { | |
16028 | arg2 = wxString_in_helper(obj1); | |
16029 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 16030 | temp2 = true; |
d55e5bfc RD |
16031 | } |
16032 | { | |
16033 | arg3 = wxString_in_helper(obj2); | |
16034 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 16035 | temp3 = true; |
d55e5bfc RD |
16036 | } |
16037 | { | |
16038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16039 | result = (bool)(arg1)->RenameEntry((wxString const &)*arg2,(wxString const &)*arg3); | |
16040 | ||
16041 | wxPyEndAllowThreads(__tstate); | |
16042 | if (PyErr_Occurred()) SWIG_fail; | |
16043 | } | |
16044 | { | |
16045 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16046 | } | |
16047 | { | |
16048 | if (temp2) | |
16049 | delete arg2; | |
16050 | } | |
16051 | { | |
16052 | if (temp3) | |
16053 | delete arg3; | |
16054 | } | |
16055 | return resultobj; | |
16056 | fail: | |
16057 | { | |
16058 | if (temp2) | |
16059 | delete arg2; | |
16060 | } | |
16061 | { | |
16062 | if (temp3) | |
16063 | delete arg3; | |
16064 | } | |
16065 | return NULL; | |
16066 | } | |
16067 | ||
16068 | ||
c32bde28 | 16069 | static PyObject *_wrap_ConfigBase_RenameGroup(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16070 | PyObject *resultobj; |
16071 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16072 | wxString *arg2 = 0 ; | |
16073 | wxString *arg3 = 0 ; | |
16074 | bool result; | |
ae8162c8 RD |
16075 | bool temp2 = false ; |
16076 | bool temp3 = false ; | |
d55e5bfc RD |
16077 | PyObject * obj0 = 0 ; |
16078 | PyObject * obj1 = 0 ; | |
16079 | PyObject * obj2 = 0 ; | |
16080 | char *kwnames[] = { | |
16081 | (char *) "self",(char *) "oldName",(char *) "newName", NULL | |
16082 | }; | |
16083 | ||
16084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameGroup",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16085 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16087 | { | |
16088 | arg2 = wxString_in_helper(obj1); | |
16089 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 16090 | temp2 = true; |
d55e5bfc RD |
16091 | } |
16092 | { | |
16093 | arg3 = wxString_in_helper(obj2); | |
16094 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 16095 | temp3 = true; |
d55e5bfc RD |
16096 | } |
16097 | { | |
16098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16099 | result = (bool)(arg1)->RenameGroup((wxString const &)*arg2,(wxString const &)*arg3); | |
16100 | ||
16101 | wxPyEndAllowThreads(__tstate); | |
16102 | if (PyErr_Occurred()) SWIG_fail; | |
16103 | } | |
16104 | { | |
16105 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16106 | } | |
16107 | { | |
16108 | if (temp2) | |
16109 | delete arg2; | |
16110 | } | |
16111 | { | |
16112 | if (temp3) | |
16113 | delete arg3; | |
16114 | } | |
16115 | return resultobj; | |
16116 | fail: | |
16117 | { | |
16118 | if (temp2) | |
16119 | delete arg2; | |
16120 | } | |
16121 | { | |
16122 | if (temp3) | |
16123 | delete arg3; | |
16124 | } | |
16125 | return NULL; | |
16126 | } | |
16127 | ||
16128 | ||
c32bde28 | 16129 | static PyObject *_wrap_ConfigBase_DeleteEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16130 | PyObject *resultobj; |
16131 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16132 | wxString *arg2 = 0 ; | |
ae8162c8 | 16133 | bool arg3 = (bool) true ; |
d55e5bfc | 16134 | bool result; |
ae8162c8 | 16135 | bool temp2 = false ; |
d55e5bfc RD |
16136 | PyObject * obj0 = 0 ; |
16137 | PyObject * obj1 = 0 ; | |
16138 | PyObject * obj2 = 0 ; | |
16139 | char *kwnames[] = { | |
16140 | (char *) "self",(char *) "key",(char *) "deleteGroupIfEmpty", NULL | |
16141 | }; | |
16142 | ||
16143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_DeleteEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16144 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16145 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16146 | { | |
16147 | arg2 = wxString_in_helper(obj1); | |
16148 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 16149 | temp2 = true; |
d55e5bfc RD |
16150 | } |
16151 | if (obj2) { | |
c32bde28 | 16152 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
16153 | if (PyErr_Occurred()) SWIG_fail; |
16154 | } | |
16155 | { | |
16156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16157 | result = (bool)(arg1)->DeleteEntry((wxString const &)*arg2,arg3); | |
16158 | ||
16159 | wxPyEndAllowThreads(__tstate); | |
16160 | if (PyErr_Occurred()) SWIG_fail; | |
16161 | } | |
16162 | { | |
16163 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16164 | } | |
16165 | { | |
16166 | if (temp2) | |
16167 | delete arg2; | |
16168 | } | |
16169 | return resultobj; | |
16170 | fail: | |
16171 | { | |
16172 | if (temp2) | |
16173 | delete arg2; | |
16174 | } | |
16175 | return NULL; | |
16176 | } | |
16177 | ||
16178 | ||
c32bde28 | 16179 | static PyObject *_wrap_ConfigBase_DeleteGroup(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16180 | PyObject *resultobj; |
16181 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16182 | wxString *arg2 = 0 ; | |
16183 | bool result; | |
ae8162c8 | 16184 | bool temp2 = false ; |
d55e5bfc RD |
16185 | PyObject * obj0 = 0 ; |
16186 | PyObject * obj1 = 0 ; | |
16187 | char *kwnames[] = { | |
16188 | (char *) "self",(char *) "key", NULL | |
16189 | }; | |
16190 | ||
16191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_DeleteGroup",kwnames,&obj0,&obj1)) goto fail; | |
16192 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16194 | { | |
16195 | arg2 = wxString_in_helper(obj1); | |
16196 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 16197 | temp2 = true; |
d55e5bfc RD |
16198 | } |
16199 | { | |
16200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16201 | result = (bool)(arg1)->DeleteGroup((wxString const &)*arg2); | |
16202 | ||
16203 | wxPyEndAllowThreads(__tstate); | |
16204 | if (PyErr_Occurred()) SWIG_fail; | |
16205 | } | |
16206 | { | |
16207 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16208 | } | |
16209 | { | |
16210 | if (temp2) | |
16211 | delete arg2; | |
16212 | } | |
16213 | return resultobj; | |
16214 | fail: | |
16215 | { | |
16216 | if (temp2) | |
16217 | delete arg2; | |
16218 | } | |
16219 | return NULL; | |
16220 | } | |
16221 | ||
16222 | ||
c32bde28 | 16223 | static PyObject *_wrap_ConfigBase_DeleteAll(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16224 | PyObject *resultobj; |
16225 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16226 | bool result; | |
16227 | PyObject * obj0 = 0 ; | |
16228 | char *kwnames[] = { | |
16229 | (char *) "self", NULL | |
16230 | }; | |
16231 | ||
16232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_DeleteAll",kwnames,&obj0)) goto fail; | |
16233 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16234 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16235 | { | |
16236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16237 | result = (bool)(arg1)->DeleteAll(); | |
16238 | ||
16239 | wxPyEndAllowThreads(__tstate); | |
16240 | if (PyErr_Occurred()) SWIG_fail; | |
16241 | } | |
16242 | { | |
16243 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16244 | } | |
16245 | return resultobj; | |
16246 | fail: | |
16247 | return NULL; | |
16248 | } | |
16249 | ||
16250 | ||
c32bde28 | 16251 | static PyObject *_wrap_ConfigBase_SetExpandEnvVars(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16252 | PyObject *resultobj; |
16253 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
ae8162c8 | 16254 | bool arg2 = (bool) true ; |
d55e5bfc RD |
16255 | PyObject * obj0 = 0 ; |
16256 | PyObject * obj1 = 0 ; | |
16257 | char *kwnames[] = { | |
16258 | (char *) "self",(char *) "doIt", NULL | |
16259 | }; | |
16260 | ||
16261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetExpandEnvVars",kwnames,&obj0,&obj1)) goto fail; | |
16262 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16263 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16264 | if (obj1) { | |
c32bde28 | 16265 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
16266 | if (PyErr_Occurred()) SWIG_fail; |
16267 | } | |
16268 | { | |
16269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16270 | (arg1)->SetExpandEnvVars(arg2); | |
16271 | ||
16272 | wxPyEndAllowThreads(__tstate); | |
16273 | if (PyErr_Occurred()) SWIG_fail; | |
16274 | } | |
16275 | Py_INCREF(Py_None); resultobj = Py_None; | |
16276 | return resultobj; | |
16277 | fail: | |
16278 | return NULL; | |
16279 | } | |
16280 | ||
16281 | ||
c32bde28 | 16282 | static PyObject *_wrap_ConfigBase_IsExpandingEnvVars(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16283 | PyObject *resultobj; |
16284 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16285 | bool result; | |
16286 | PyObject * obj0 = 0 ; | |
16287 | char *kwnames[] = { | |
16288 | (char *) "self", NULL | |
16289 | }; | |
16290 | ||
16291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsExpandingEnvVars",kwnames,&obj0)) goto fail; | |
16292 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16293 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16294 | { | |
16295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16296 | result = (bool)((wxConfigBase const *)arg1)->IsExpandingEnvVars(); | |
16297 | ||
16298 | wxPyEndAllowThreads(__tstate); | |
16299 | if (PyErr_Occurred()) SWIG_fail; | |
16300 | } | |
16301 | { | |
16302 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16303 | } | |
16304 | return resultobj; | |
16305 | fail: | |
16306 | return NULL; | |
16307 | } | |
16308 | ||
16309 | ||
c32bde28 | 16310 | static PyObject *_wrap_ConfigBase_SetRecordDefaults(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16311 | PyObject *resultobj; |
16312 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
ae8162c8 | 16313 | bool arg2 = (bool) true ; |
d55e5bfc RD |
16314 | PyObject * obj0 = 0 ; |
16315 | PyObject * obj1 = 0 ; | |
16316 | char *kwnames[] = { | |
16317 | (char *) "self",(char *) "doIt", NULL | |
16318 | }; | |
16319 | ||
16320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetRecordDefaults",kwnames,&obj0,&obj1)) goto fail; | |
16321 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16322 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16323 | if (obj1) { | |
c32bde28 | 16324 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
16325 | if (PyErr_Occurred()) SWIG_fail; |
16326 | } | |
16327 | { | |
16328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16329 | (arg1)->SetRecordDefaults(arg2); | |
16330 | ||
16331 | wxPyEndAllowThreads(__tstate); | |
16332 | if (PyErr_Occurred()) SWIG_fail; | |
16333 | } | |
16334 | Py_INCREF(Py_None); resultobj = Py_None; | |
16335 | return resultobj; | |
16336 | fail: | |
16337 | return NULL; | |
16338 | } | |
16339 | ||
16340 | ||
c32bde28 | 16341 | static PyObject *_wrap_ConfigBase_IsRecordingDefaults(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16342 | PyObject *resultobj; |
16343 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16344 | bool result; | |
16345 | PyObject * obj0 = 0 ; | |
16346 | char *kwnames[] = { | |
16347 | (char *) "self", NULL | |
16348 | }; | |
16349 | ||
16350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsRecordingDefaults",kwnames,&obj0)) goto fail; | |
16351 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16352 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16353 | { | |
16354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16355 | result = (bool)((wxConfigBase const *)arg1)->IsRecordingDefaults(); | |
16356 | ||
16357 | wxPyEndAllowThreads(__tstate); | |
16358 | if (PyErr_Occurred()) SWIG_fail; | |
16359 | } | |
16360 | { | |
16361 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16362 | } | |
16363 | return resultobj; | |
16364 | fail: | |
16365 | return NULL; | |
16366 | } | |
16367 | ||
16368 | ||
c32bde28 | 16369 | static PyObject *_wrap_ConfigBase_ExpandEnvVars(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16370 | PyObject *resultobj; |
16371 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16372 | wxString *arg2 = 0 ; | |
16373 | wxString result; | |
ae8162c8 | 16374 | bool temp2 = false ; |
d55e5bfc RD |
16375 | PyObject * obj0 = 0 ; |
16376 | PyObject * obj1 = 0 ; | |
16377 | char *kwnames[] = { | |
16378 | (char *) "self",(char *) "str", NULL | |
16379 | }; | |
16380 | ||
16381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_ExpandEnvVars",kwnames,&obj0,&obj1)) goto fail; | |
16382 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16384 | { | |
16385 | arg2 = wxString_in_helper(obj1); | |
16386 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 16387 | temp2 = true; |
d55e5bfc RD |
16388 | } |
16389 | { | |
16390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16391 | result = ((wxConfigBase const *)arg1)->ExpandEnvVars((wxString const &)*arg2); | |
16392 | ||
16393 | wxPyEndAllowThreads(__tstate); | |
16394 | if (PyErr_Occurred()) SWIG_fail; | |
16395 | } | |
16396 | { | |
16397 | #if wxUSE_UNICODE | |
16398 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16399 | #else | |
16400 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16401 | #endif | |
16402 | } | |
16403 | { | |
16404 | if (temp2) | |
16405 | delete arg2; | |
16406 | } | |
16407 | return resultobj; | |
16408 | fail: | |
16409 | { | |
16410 | if (temp2) | |
16411 | delete arg2; | |
16412 | } | |
16413 | return NULL; | |
16414 | } | |
16415 | ||
16416 | ||
c32bde28 | 16417 | static PyObject *_wrap_ConfigBase_GetAppName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16418 | PyObject *resultobj; |
16419 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16420 | wxString result; | |
16421 | PyObject * obj0 = 0 ; | |
16422 | char *kwnames[] = { | |
16423 | (char *) "self", NULL | |
16424 | }; | |
16425 | ||
16426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetAppName",kwnames,&obj0)) goto fail; | |
16427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16429 | { | |
16430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16431 | result = ((wxConfigBase const *)arg1)->GetAppName(); | |
16432 | ||
16433 | wxPyEndAllowThreads(__tstate); | |
16434 | if (PyErr_Occurred()) SWIG_fail; | |
16435 | } | |
16436 | { | |
16437 | #if wxUSE_UNICODE | |
16438 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16439 | #else | |
16440 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16441 | #endif | |
16442 | } | |
16443 | return resultobj; | |
16444 | fail: | |
16445 | return NULL; | |
16446 | } | |
16447 | ||
16448 | ||
c32bde28 | 16449 | static PyObject *_wrap_ConfigBase_GetVendorName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16450 | PyObject *resultobj; |
16451 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16452 | wxString result; | |
16453 | PyObject * obj0 = 0 ; | |
16454 | char *kwnames[] = { | |
16455 | (char *) "self", NULL | |
16456 | }; | |
16457 | ||
16458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetVendorName",kwnames,&obj0)) goto fail; | |
16459 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16460 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16461 | { | |
16462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16463 | result = ((wxConfigBase const *)arg1)->GetVendorName(); | |
16464 | ||
16465 | wxPyEndAllowThreads(__tstate); | |
16466 | if (PyErr_Occurred()) SWIG_fail; | |
16467 | } | |
16468 | { | |
16469 | #if wxUSE_UNICODE | |
16470 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16471 | #else | |
16472 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16473 | #endif | |
16474 | } | |
16475 | return resultobj; | |
16476 | fail: | |
16477 | return NULL; | |
16478 | } | |
16479 | ||
16480 | ||
c32bde28 | 16481 | static PyObject *_wrap_ConfigBase_SetAppName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16482 | PyObject *resultobj; |
16483 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16484 | wxString *arg2 = 0 ; | |
ae8162c8 | 16485 | bool temp2 = false ; |
d55e5bfc RD |
16486 | PyObject * obj0 = 0 ; |
16487 | PyObject * obj1 = 0 ; | |
16488 | char *kwnames[] = { | |
16489 | (char *) "self",(char *) "appName", NULL | |
16490 | }; | |
16491 | ||
16492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetAppName",kwnames,&obj0,&obj1)) goto fail; | |
16493 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16494 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16495 | { | |
16496 | arg2 = wxString_in_helper(obj1); | |
16497 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 16498 | temp2 = true; |
d55e5bfc RD |
16499 | } |
16500 | { | |
16501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16502 | (arg1)->SetAppName((wxString const &)*arg2); | |
16503 | ||
16504 | wxPyEndAllowThreads(__tstate); | |
16505 | if (PyErr_Occurred()) SWIG_fail; | |
16506 | } | |
16507 | Py_INCREF(Py_None); resultobj = Py_None; | |
16508 | { | |
16509 | if (temp2) | |
16510 | delete arg2; | |
16511 | } | |
16512 | return resultobj; | |
16513 | fail: | |
16514 | { | |
16515 | if (temp2) | |
16516 | delete arg2; | |
16517 | } | |
16518 | return NULL; | |
16519 | } | |
16520 | ||
16521 | ||
c32bde28 | 16522 | static PyObject *_wrap_ConfigBase_SetVendorName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16523 | PyObject *resultobj; |
16524 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16525 | wxString *arg2 = 0 ; | |
ae8162c8 | 16526 | bool temp2 = false ; |
d55e5bfc RD |
16527 | PyObject * obj0 = 0 ; |
16528 | PyObject * obj1 = 0 ; | |
16529 | char *kwnames[] = { | |
16530 | (char *) "self",(char *) "vendorName", NULL | |
16531 | }; | |
16532 | ||
16533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetVendorName",kwnames,&obj0,&obj1)) goto fail; | |
16534 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16535 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16536 | { | |
16537 | arg2 = wxString_in_helper(obj1); | |
16538 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 16539 | temp2 = true; |
d55e5bfc RD |
16540 | } |
16541 | { | |
16542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16543 | (arg1)->SetVendorName((wxString const &)*arg2); | |
16544 | ||
16545 | wxPyEndAllowThreads(__tstate); | |
16546 | if (PyErr_Occurred()) SWIG_fail; | |
16547 | } | |
16548 | Py_INCREF(Py_None); resultobj = Py_None; | |
16549 | { | |
16550 | if (temp2) | |
16551 | delete arg2; | |
16552 | } | |
16553 | return resultobj; | |
16554 | fail: | |
16555 | { | |
16556 | if (temp2) | |
16557 | delete arg2; | |
16558 | } | |
16559 | return NULL; | |
16560 | } | |
16561 | ||
16562 | ||
c32bde28 | 16563 | static PyObject *_wrap_ConfigBase_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16564 | PyObject *resultobj; |
16565 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16566 | long arg2 ; | |
16567 | PyObject * obj0 = 0 ; | |
16568 | PyObject * obj1 = 0 ; | |
16569 | char *kwnames[] = { | |
16570 | (char *) "self",(char *) "style", NULL | |
16571 | }; | |
16572 | ||
16573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetStyle",kwnames,&obj0,&obj1)) goto fail; | |
16574 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16575 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 16576 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
16577 | if (PyErr_Occurred()) SWIG_fail; |
16578 | { | |
16579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16580 | (arg1)->SetStyle(arg2); | |
16581 | ||
16582 | wxPyEndAllowThreads(__tstate); | |
16583 | if (PyErr_Occurred()) SWIG_fail; | |
16584 | } | |
16585 | Py_INCREF(Py_None); resultobj = Py_None; | |
16586 | return resultobj; | |
16587 | fail: | |
16588 | return NULL; | |
16589 | } | |
16590 | ||
16591 | ||
c32bde28 | 16592 | static PyObject *_wrap_ConfigBase_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16593 | PyObject *resultobj; |
16594 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16595 | long result; | |
16596 | PyObject * obj0 = 0 ; | |
16597 | char *kwnames[] = { | |
16598 | (char *) "self", NULL | |
16599 | }; | |
16600 | ||
16601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetStyle",kwnames,&obj0)) goto fail; | |
16602 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16603 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16604 | { | |
16605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16606 | result = (long)((wxConfigBase const *)arg1)->GetStyle(); | |
16607 | ||
16608 | wxPyEndAllowThreads(__tstate); | |
16609 | if (PyErr_Occurred()) SWIG_fail; | |
16610 | } | |
c32bde28 | 16611 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
16612 | return resultobj; |
16613 | fail: | |
16614 | return NULL; | |
16615 | } | |
16616 | ||
16617 | ||
c32bde28 | 16618 | static PyObject * ConfigBase_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
16619 | PyObject *obj; |
16620 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16621 | SWIG_TypeClientData(SWIGTYPE_p_wxConfigBase, obj); | |
16622 | Py_INCREF(obj); | |
16623 | return Py_BuildValue((char *)""); | |
16624 | } | |
c32bde28 | 16625 | static PyObject *_wrap_new_Config(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16626 | PyObject *resultobj; |
16627 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
16628 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
16629 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
16630 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
16631 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16632 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16633 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
16634 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
16635 | long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ; | |
16636 | wxConfig *result; | |
ae8162c8 RD |
16637 | bool temp1 = false ; |
16638 | bool temp2 = false ; | |
16639 | bool temp3 = false ; | |
16640 | bool temp4 = false ; | |
d55e5bfc RD |
16641 | PyObject * obj0 = 0 ; |
16642 | PyObject * obj1 = 0 ; | |
16643 | PyObject * obj2 = 0 ; | |
16644 | PyObject * obj3 = 0 ; | |
16645 | PyObject * obj4 = 0 ; | |
16646 | char *kwnames[] = { | |
16647 | (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL | |
16648 | }; | |
16649 | ||
16650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_Config",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
16651 | if (obj0) { | |
16652 | { | |
16653 | arg1 = wxString_in_helper(obj0); | |
16654 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 16655 | temp1 = true; |
d55e5bfc RD |
16656 | } |
16657 | } | |
16658 | if (obj1) { | |
16659 | { | |
16660 | arg2 = wxString_in_helper(obj1); | |
16661 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 16662 | temp2 = true; |
d55e5bfc RD |
16663 | } |
16664 | } | |
16665 | if (obj2) { | |
16666 | { | |
16667 | arg3 = wxString_in_helper(obj2); | |
16668 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 16669 | temp3 = true; |
d55e5bfc RD |
16670 | } |
16671 | } | |
16672 | if (obj3) { | |
16673 | { | |
16674 | arg4 = wxString_in_helper(obj3); | |
16675 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 16676 | temp4 = true; |
d55e5bfc RD |
16677 | } |
16678 | } | |
16679 | if (obj4) { | |
c32bde28 | 16680 | arg5 = (long)SWIG_As_long(obj4); |
d55e5bfc RD |
16681 | if (PyErr_Occurred()) SWIG_fail; |
16682 | } | |
16683 | { | |
16684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16685 | result = (wxConfig *)new wxConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
16686 | ||
16687 | wxPyEndAllowThreads(__tstate); | |
16688 | if (PyErr_Occurred()) SWIG_fail; | |
16689 | } | |
16690 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfig, 1); | |
16691 | { | |
16692 | if (temp1) | |
16693 | delete arg1; | |
16694 | } | |
16695 | { | |
16696 | if (temp2) | |
16697 | delete arg2; | |
16698 | } | |
16699 | { | |
16700 | if (temp3) | |
16701 | delete arg3; | |
16702 | } | |
16703 | { | |
16704 | if (temp4) | |
16705 | delete arg4; | |
16706 | } | |
16707 | return resultobj; | |
16708 | fail: | |
16709 | { | |
16710 | if (temp1) | |
16711 | delete arg1; | |
16712 | } | |
16713 | { | |
16714 | if (temp2) | |
16715 | delete arg2; | |
16716 | } | |
16717 | { | |
16718 | if (temp3) | |
16719 | delete arg3; | |
16720 | } | |
16721 | { | |
16722 | if (temp4) | |
16723 | delete arg4; | |
16724 | } | |
16725 | return NULL; | |
16726 | } | |
16727 | ||
16728 | ||
c32bde28 | 16729 | static PyObject *_wrap_delete_Config(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16730 | PyObject *resultobj; |
16731 | wxConfig *arg1 = (wxConfig *) 0 ; | |
16732 | PyObject * obj0 = 0 ; | |
16733 | char *kwnames[] = { | |
16734 | (char *) "self", NULL | |
16735 | }; | |
16736 | ||
16737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Config",kwnames,&obj0)) goto fail; | |
16738 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfig, | |
16739 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16740 | { | |
16741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16742 | delete arg1; | |
16743 | ||
16744 | wxPyEndAllowThreads(__tstate); | |
16745 | if (PyErr_Occurred()) SWIG_fail; | |
16746 | } | |
16747 | Py_INCREF(Py_None); resultobj = Py_None; | |
16748 | return resultobj; | |
16749 | fail: | |
16750 | return NULL; | |
16751 | } | |
16752 | ||
16753 | ||
c32bde28 | 16754 | static PyObject * Config_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
16755 | PyObject *obj; |
16756 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16757 | SWIG_TypeClientData(SWIGTYPE_p_wxConfig, obj); | |
16758 | Py_INCREF(obj); | |
16759 | return Py_BuildValue((char *)""); | |
16760 | } | |
c32bde28 | 16761 | static PyObject *_wrap_new_FileConfig(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16762 | PyObject *resultobj; |
16763 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
16764 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
16765 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
16766 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
16767 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16768 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16769 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
16770 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
16771 | long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ; | |
16772 | wxFileConfig *result; | |
ae8162c8 RD |
16773 | bool temp1 = false ; |
16774 | bool temp2 = false ; | |
16775 | bool temp3 = false ; | |
16776 | bool temp4 = false ; | |
d55e5bfc RD |
16777 | PyObject * obj0 = 0 ; |
16778 | PyObject * obj1 = 0 ; | |
16779 | PyObject * obj2 = 0 ; | |
16780 | PyObject * obj3 = 0 ; | |
16781 | PyObject * obj4 = 0 ; | |
16782 | char *kwnames[] = { | |
16783 | (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL | |
16784 | }; | |
16785 | ||
16786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_FileConfig",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
16787 | if (obj0) { | |
16788 | { | |
16789 | arg1 = wxString_in_helper(obj0); | |
16790 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 16791 | temp1 = true; |
d55e5bfc RD |
16792 | } |
16793 | } | |
16794 | if (obj1) { | |
16795 | { | |
16796 | arg2 = wxString_in_helper(obj1); | |
16797 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 16798 | temp2 = true; |
d55e5bfc RD |
16799 | } |
16800 | } | |
16801 | if (obj2) { | |
16802 | { | |
16803 | arg3 = wxString_in_helper(obj2); | |
16804 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 16805 | temp3 = true; |
d55e5bfc RD |
16806 | } |
16807 | } | |
16808 | if (obj3) { | |
16809 | { | |
16810 | arg4 = wxString_in_helper(obj3); | |
16811 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 16812 | temp4 = true; |
d55e5bfc RD |
16813 | } |
16814 | } | |
16815 | if (obj4) { | |
c32bde28 | 16816 | arg5 = (long)SWIG_As_long(obj4); |
d55e5bfc RD |
16817 | if (PyErr_Occurred()) SWIG_fail; |
16818 | } | |
16819 | { | |
16820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16821 | result = (wxFileConfig *)new wxFileConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
16822 | ||
16823 | wxPyEndAllowThreads(__tstate); | |
16824 | if (PyErr_Occurred()) SWIG_fail; | |
16825 | } | |
16826 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileConfig, 1); | |
16827 | { | |
16828 | if (temp1) | |
16829 | delete arg1; | |
16830 | } | |
16831 | { | |
16832 | if (temp2) | |
16833 | delete arg2; | |
16834 | } | |
16835 | { | |
16836 | if (temp3) | |
16837 | delete arg3; | |
16838 | } | |
16839 | { | |
16840 | if (temp4) | |
16841 | delete arg4; | |
16842 | } | |
16843 | return resultobj; | |
16844 | fail: | |
16845 | { | |
16846 | if (temp1) | |
16847 | delete arg1; | |
16848 | } | |
16849 | { | |
16850 | if (temp2) | |
16851 | delete arg2; | |
16852 | } | |
16853 | { | |
16854 | if (temp3) | |
16855 | delete arg3; | |
16856 | } | |
16857 | { | |
16858 | if (temp4) | |
16859 | delete arg4; | |
16860 | } | |
16861 | return NULL; | |
16862 | } | |
16863 | ||
16864 | ||
c32bde28 | 16865 | static PyObject *_wrap_delete_FileConfig(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16866 | PyObject *resultobj; |
16867 | wxFileConfig *arg1 = (wxFileConfig *) 0 ; | |
16868 | PyObject * obj0 = 0 ; | |
16869 | char *kwnames[] = { | |
16870 | (char *) "self", NULL | |
16871 | }; | |
16872 | ||
16873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileConfig",kwnames,&obj0)) goto fail; | |
16874 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileConfig, | |
16875 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16876 | { | |
16877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16878 | delete arg1; | |
16879 | ||
16880 | wxPyEndAllowThreads(__tstate); | |
16881 | if (PyErr_Occurred()) SWIG_fail; | |
16882 | } | |
16883 | Py_INCREF(Py_None); resultobj = Py_None; | |
16884 | return resultobj; | |
16885 | fail: | |
16886 | return NULL; | |
16887 | } | |
16888 | ||
16889 | ||
c32bde28 | 16890 | static PyObject * FileConfig_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
16891 | PyObject *obj; |
16892 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16893 | SWIG_TypeClientData(SWIGTYPE_p_wxFileConfig, obj); | |
16894 | Py_INCREF(obj); | |
16895 | return Py_BuildValue((char *)""); | |
16896 | } | |
c32bde28 | 16897 | static PyObject *_wrap_new_ConfigPathChanger(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16898 | PyObject *resultobj; |
16899 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16900 | wxString *arg2 = 0 ; | |
16901 | wxConfigPathChanger *result; | |
ae8162c8 | 16902 | bool temp2 = false ; |
d55e5bfc RD |
16903 | PyObject * obj0 = 0 ; |
16904 | PyObject * obj1 = 0 ; | |
16905 | char *kwnames[] = { | |
16906 | (char *) "config",(char *) "entry", NULL | |
16907 | }; | |
16908 | ||
16909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_ConfigPathChanger",kwnames,&obj0,&obj1)) goto fail; | |
16910 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16911 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16912 | { | |
16913 | arg2 = wxString_in_helper(obj1); | |
16914 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 16915 | temp2 = true; |
d55e5bfc RD |
16916 | } |
16917 | { | |
16918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16919 | result = (wxConfigPathChanger *)new wxConfigPathChanger((wxConfigBase const *)arg1,(wxString const &)*arg2); | |
16920 | ||
16921 | wxPyEndAllowThreads(__tstate); | |
16922 | if (PyErr_Occurred()) SWIG_fail; | |
16923 | } | |
16924 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigPathChanger, 1); | |
16925 | { | |
16926 | if (temp2) | |
16927 | delete arg2; | |
16928 | } | |
16929 | return resultobj; | |
16930 | fail: | |
16931 | { | |
16932 | if (temp2) | |
16933 | delete arg2; | |
16934 | } | |
16935 | return NULL; | |
16936 | } | |
16937 | ||
16938 | ||
c32bde28 | 16939 | static PyObject *_wrap_delete_ConfigPathChanger(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16940 | PyObject *resultobj; |
16941 | wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ; | |
16942 | PyObject * obj0 = 0 ; | |
16943 | char *kwnames[] = { | |
16944 | (char *) "self", NULL | |
16945 | }; | |
16946 | ||
16947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigPathChanger",kwnames,&obj0)) goto fail; | |
16948 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger, | |
16949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16950 | { | |
16951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16952 | delete arg1; | |
16953 | ||
16954 | wxPyEndAllowThreads(__tstate); | |
16955 | if (PyErr_Occurred()) SWIG_fail; | |
16956 | } | |
16957 | Py_INCREF(Py_None); resultobj = Py_None; | |
16958 | return resultobj; | |
16959 | fail: | |
16960 | return NULL; | |
16961 | } | |
16962 | ||
16963 | ||
c32bde28 | 16964 | static PyObject *_wrap_ConfigPathChanger_Name(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16965 | PyObject *resultobj; |
16966 | wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ; | |
16967 | wxString *result; | |
16968 | PyObject * obj0 = 0 ; | |
16969 | char *kwnames[] = { | |
16970 | (char *) "self", NULL | |
16971 | }; | |
16972 | ||
16973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigPathChanger_Name",kwnames,&obj0)) goto fail; | |
16974 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger, | |
16975 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16976 | { | |
16977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16978 | { | |
16979 | wxString const &_result_ref = ((wxConfigPathChanger const *)arg1)->Name(); | |
16980 | result = (wxString *) &_result_ref; | |
16981 | } | |
16982 | ||
16983 | wxPyEndAllowThreads(__tstate); | |
16984 | if (PyErr_Occurred()) SWIG_fail; | |
16985 | } | |
16986 | { | |
16987 | #if wxUSE_UNICODE | |
16988 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
16989 | #else | |
16990 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
16991 | #endif | |
16992 | } | |
16993 | return resultobj; | |
16994 | fail: | |
16995 | return NULL; | |
16996 | } | |
16997 | ||
16998 | ||
c32bde28 | 16999 | static PyObject * ConfigPathChanger_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17000 | PyObject *obj; |
17001 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17002 | SWIG_TypeClientData(SWIGTYPE_p_wxConfigPathChanger, obj); | |
17003 | Py_INCREF(obj); | |
17004 | return Py_BuildValue((char *)""); | |
17005 | } | |
c32bde28 | 17006 | static PyObject *_wrap_ExpandEnvVars(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17007 | PyObject *resultobj; |
17008 | wxString *arg1 = 0 ; | |
17009 | wxString result; | |
ae8162c8 | 17010 | bool temp1 = false ; |
d55e5bfc RD |
17011 | PyObject * obj0 = 0 ; |
17012 | char *kwnames[] = { | |
17013 | (char *) "sz", NULL | |
17014 | }; | |
17015 | ||
17016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ExpandEnvVars",kwnames,&obj0)) goto fail; | |
17017 | { | |
17018 | arg1 = wxString_in_helper(obj0); | |
17019 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 17020 | temp1 = true; |
d55e5bfc RD |
17021 | } |
17022 | { | |
17023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17024 | result = wxExpandEnvVars((wxString const &)*arg1); | |
17025 | ||
17026 | wxPyEndAllowThreads(__tstate); | |
17027 | if (PyErr_Occurred()) SWIG_fail; | |
17028 | } | |
17029 | { | |
17030 | #if wxUSE_UNICODE | |
17031 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17032 | #else | |
17033 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17034 | #endif | |
17035 | } | |
17036 | { | |
17037 | if (temp1) | |
17038 | delete arg1; | |
17039 | } | |
17040 | return resultobj; | |
17041 | fail: | |
17042 | { | |
17043 | if (temp1) | |
17044 | delete arg1; | |
17045 | } | |
17046 | return NULL; | |
17047 | } | |
17048 | ||
17049 | ||
c32bde28 | 17050 | static int _wrap_DateFormatStr_set(PyObject *) { |
d55e5bfc RD |
17051 | PyErr_SetString(PyExc_TypeError,"Variable DateFormatStr is read-only."); |
17052 | return 1; | |
17053 | } | |
17054 | ||
17055 | ||
17056 | static PyObject *_wrap_DateFormatStr_get() { | |
17057 | PyObject *pyobj; | |
17058 | ||
17059 | { | |
17060 | #if wxUSE_UNICODE | |
17061 | pyobj = PyUnicode_FromWideChar((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len()); | |
17062 | #else | |
17063 | pyobj = PyString_FromStringAndSize((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len()); | |
17064 | #endif | |
17065 | } | |
17066 | return pyobj; | |
17067 | } | |
17068 | ||
17069 | ||
c32bde28 | 17070 | static int _wrap_TimeSpanFormatStr_set(PyObject *) { |
d55e5bfc RD |
17071 | PyErr_SetString(PyExc_TypeError,"Variable TimeSpanFormatStr is read-only."); |
17072 | return 1; | |
17073 | } | |
17074 | ||
17075 | ||
17076 | static PyObject *_wrap_TimeSpanFormatStr_get() { | |
17077 | PyObject *pyobj; | |
17078 | ||
17079 | { | |
17080 | #if wxUSE_UNICODE | |
17081 | pyobj = PyUnicode_FromWideChar((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len()); | |
17082 | #else | |
17083 | pyobj = PyString_FromStringAndSize((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len()); | |
17084 | #endif | |
17085 | } | |
17086 | return pyobj; | |
17087 | } | |
17088 | ||
17089 | ||
c32bde28 | 17090 | static PyObject *_wrap_DateTime_SetCountry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17091 | PyObject *resultobj; |
17092 | int arg1 ; | |
17093 | PyObject * obj0 = 0 ; | |
17094 | char *kwnames[] = { | |
17095 | (char *) "country", NULL | |
17096 | }; | |
17097 | ||
17098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetCountry",kwnames,&obj0)) goto fail; | |
c32bde28 | 17099 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17100 | if (PyErr_Occurred()) SWIG_fail; |
17101 | { | |
17102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17103 | wxDateTime::SetCountry((wxDateTime::Country )arg1); | |
17104 | ||
17105 | wxPyEndAllowThreads(__tstate); | |
17106 | if (PyErr_Occurred()) SWIG_fail; | |
17107 | } | |
17108 | Py_INCREF(Py_None); resultobj = Py_None; | |
17109 | return resultobj; | |
17110 | fail: | |
17111 | return NULL; | |
17112 | } | |
17113 | ||
17114 | ||
c32bde28 | 17115 | static PyObject *_wrap_DateTime_GetCountry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17116 | PyObject *resultobj; |
17117 | int result; | |
17118 | char *kwnames[] = { | |
17119 | NULL | |
17120 | }; | |
17121 | ||
17122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetCountry",kwnames)) goto fail; | |
17123 | { | |
17124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17125 | result = (int)wxDateTime::GetCountry(); | |
17126 | ||
17127 | wxPyEndAllowThreads(__tstate); | |
17128 | if (PyErr_Occurred()) SWIG_fail; | |
17129 | } | |
c32bde28 | 17130 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
17131 | return resultobj; |
17132 | fail: | |
17133 | return NULL; | |
17134 | } | |
17135 | ||
17136 | ||
c32bde28 | 17137 | static PyObject *_wrap_DateTime_IsWestEuropeanCountry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17138 | PyObject *resultobj; |
17139 | int arg1 = (int) wxDateTime::Country_Default ; | |
17140 | bool result; | |
17141 | PyObject * obj0 = 0 ; | |
17142 | char *kwnames[] = { | |
17143 | (char *) "country", NULL | |
17144 | }; | |
17145 | ||
17146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_IsWestEuropeanCountry",kwnames,&obj0)) goto fail; | |
17147 | if (obj0) { | |
c32bde28 | 17148 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17149 | if (PyErr_Occurred()) SWIG_fail; |
17150 | } | |
17151 | { | |
17152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17153 | result = (bool)wxDateTime::IsWestEuropeanCountry((wxDateTime::Country )arg1); | |
17154 | ||
17155 | wxPyEndAllowThreads(__tstate); | |
17156 | if (PyErr_Occurred()) SWIG_fail; | |
17157 | } | |
17158 | { | |
17159 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17160 | } | |
17161 | return resultobj; | |
17162 | fail: | |
17163 | return NULL; | |
17164 | } | |
17165 | ||
17166 | ||
c32bde28 | 17167 | static PyObject *_wrap_DateTime_GetCurrentYear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17168 | PyObject *resultobj; |
17169 | int arg1 = (int) wxDateTime::Gregorian ; | |
17170 | int result; | |
17171 | PyObject * obj0 = 0 ; | |
17172 | char *kwnames[] = { | |
17173 | (char *) "cal", NULL | |
17174 | }; | |
17175 | ||
17176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentYear",kwnames,&obj0)) goto fail; | |
17177 | if (obj0) { | |
c32bde28 | 17178 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17179 | if (PyErr_Occurred()) SWIG_fail; |
17180 | } | |
17181 | { | |
17182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17183 | result = (int)wxDateTime::GetCurrentYear((wxDateTime::Calendar )arg1); | |
17184 | ||
17185 | wxPyEndAllowThreads(__tstate); | |
17186 | if (PyErr_Occurred()) SWIG_fail; | |
17187 | } | |
c32bde28 | 17188 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
17189 | return resultobj; |
17190 | fail: | |
17191 | return NULL; | |
17192 | } | |
17193 | ||
17194 | ||
c32bde28 | 17195 | static PyObject *_wrap_DateTime_ConvertYearToBC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17196 | PyObject *resultobj; |
17197 | int arg1 ; | |
17198 | int result; | |
17199 | PyObject * obj0 = 0 ; | |
17200 | char *kwnames[] = { | |
17201 | (char *) "year", NULL | |
17202 | }; | |
17203 | ||
17204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ConvertYearToBC",kwnames,&obj0)) goto fail; | |
c32bde28 | 17205 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17206 | if (PyErr_Occurred()) SWIG_fail; |
17207 | { | |
17208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17209 | result = (int)wxDateTime::ConvertYearToBC(arg1); | |
17210 | ||
17211 | wxPyEndAllowThreads(__tstate); | |
17212 | if (PyErr_Occurred()) SWIG_fail; | |
17213 | } | |
c32bde28 | 17214 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
17215 | return resultobj; |
17216 | fail: | |
17217 | return NULL; | |
17218 | } | |
17219 | ||
17220 | ||
c32bde28 | 17221 | static PyObject *_wrap_DateTime_GetCurrentMonth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17222 | PyObject *resultobj; |
17223 | int arg1 = (int) wxDateTime::Gregorian ; | |
17224 | int result; | |
17225 | PyObject * obj0 = 0 ; | |
17226 | char *kwnames[] = { | |
17227 | (char *) "cal", NULL | |
17228 | }; | |
17229 | ||
17230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentMonth",kwnames,&obj0)) goto fail; | |
17231 | if (obj0) { | |
c32bde28 | 17232 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17233 | if (PyErr_Occurred()) SWIG_fail; |
17234 | } | |
17235 | { | |
17236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17237 | result = (int)wxDateTime::GetCurrentMonth((wxDateTime::Calendar )arg1); | |
17238 | ||
17239 | wxPyEndAllowThreads(__tstate); | |
17240 | if (PyErr_Occurred()) SWIG_fail; | |
17241 | } | |
c32bde28 | 17242 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
17243 | return resultobj; |
17244 | fail: | |
17245 | return NULL; | |
17246 | } | |
17247 | ||
17248 | ||
c32bde28 | 17249 | static PyObject *_wrap_DateTime_IsLeapYear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17250 | PyObject *resultobj; |
17251 | int arg1 = (int) wxDateTime::Inv_Year ; | |
17252 | int arg2 = (int) wxDateTime::Gregorian ; | |
17253 | bool result; | |
17254 | PyObject * obj0 = 0 ; | |
17255 | PyObject * obj1 = 0 ; | |
17256 | char *kwnames[] = { | |
17257 | (char *) "year",(char *) "cal", NULL | |
17258 | }; | |
17259 | ||
17260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsLeapYear",kwnames,&obj0,&obj1)) goto fail; | |
17261 | if (obj0) { | |
c32bde28 | 17262 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17263 | if (PyErr_Occurred()) SWIG_fail; |
17264 | } | |
17265 | if (obj1) { | |
c32bde28 | 17266 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17267 | if (PyErr_Occurred()) SWIG_fail; |
17268 | } | |
17269 | { | |
17270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17271 | result = (bool)wxDateTime::IsLeapYear(arg1,(wxDateTime::Calendar )arg2); | |
17272 | ||
17273 | wxPyEndAllowThreads(__tstate); | |
17274 | if (PyErr_Occurred()) SWIG_fail; | |
17275 | } | |
17276 | { | |
17277 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17278 | } | |
17279 | return resultobj; | |
17280 | fail: | |
17281 | return NULL; | |
17282 | } | |
17283 | ||
17284 | ||
c32bde28 | 17285 | static PyObject *_wrap_DateTime_GetCentury(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17286 | PyObject *resultobj; |
17287 | int arg1 = (int) wxDateTime::Inv_Year ; | |
17288 | int result; | |
17289 | PyObject * obj0 = 0 ; | |
17290 | char *kwnames[] = { | |
17291 | (char *) "year", NULL | |
17292 | }; | |
17293 | ||
17294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCentury",kwnames,&obj0)) goto fail; | |
17295 | if (obj0) { | |
c32bde28 | 17296 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17297 | if (PyErr_Occurred()) SWIG_fail; |
17298 | } | |
17299 | { | |
17300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17301 | result = (int)wxDateTime::GetCentury(arg1); | |
17302 | ||
17303 | wxPyEndAllowThreads(__tstate); | |
17304 | if (PyErr_Occurred()) SWIG_fail; | |
17305 | } | |
c32bde28 | 17306 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
17307 | return resultobj; |
17308 | fail: | |
17309 | return NULL; | |
17310 | } | |
17311 | ||
17312 | ||
c32bde28 | 17313 | static PyObject *_wrap_DateTime_GetNumberOfDaysinYear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17314 | PyObject *resultobj; |
17315 | int arg1 ; | |
17316 | int arg2 = (int) wxDateTime::Gregorian ; | |
17317 | int result; | |
17318 | PyObject * obj0 = 0 ; | |
17319 | PyObject * obj1 = 0 ; | |
17320 | char *kwnames[] = { | |
17321 | (char *) "year",(char *) "cal", NULL | |
17322 | }; | |
17323 | ||
17324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetNumberOfDaysinYear",kwnames,&obj0,&obj1)) goto fail; | |
c32bde28 | 17325 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17326 | if (PyErr_Occurred()) SWIG_fail; |
17327 | if (obj1) { | |
c32bde28 | 17328 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17329 | if (PyErr_Occurred()) SWIG_fail; |
17330 | } | |
17331 | { | |
17332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17333 | result = (int)wxDateTime::GetNumberOfDays(arg1,(wxDateTime::Calendar )arg2); | |
17334 | ||
17335 | wxPyEndAllowThreads(__tstate); | |
17336 | if (PyErr_Occurred()) SWIG_fail; | |
17337 | } | |
c32bde28 | 17338 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
17339 | return resultobj; |
17340 | fail: | |
17341 | return NULL; | |
17342 | } | |
17343 | ||
17344 | ||
c32bde28 | 17345 | static PyObject *_wrap_DateTime_GetNumberOfDaysInMonth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17346 | PyObject *resultobj; |
17347 | int arg1 ; | |
17348 | int arg2 = (int) wxDateTime::Inv_Year ; | |
17349 | int arg3 = (int) wxDateTime::Gregorian ; | |
17350 | int result; | |
17351 | PyObject * obj0 = 0 ; | |
17352 | PyObject * obj1 = 0 ; | |
17353 | PyObject * obj2 = 0 ; | |
17354 | char *kwnames[] = { | |
17355 | (char *) "month",(char *) "year",(char *) "cal", NULL | |
17356 | }; | |
17357 | ||
17358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetNumberOfDaysInMonth",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
c32bde28 | 17359 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17360 | if (PyErr_Occurred()) SWIG_fail; |
17361 | if (obj1) { | |
c32bde28 | 17362 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17363 | if (PyErr_Occurred()) SWIG_fail; |
17364 | } | |
17365 | if (obj2) { | |
c32bde28 | 17366 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
17367 | if (PyErr_Occurred()) SWIG_fail; |
17368 | } | |
17369 | { | |
17370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17371 | result = (int)wxDateTime::GetNumberOfDays((wxDateTime::Month )arg1,arg2,(wxDateTime::Calendar )arg3); | |
17372 | ||
17373 | wxPyEndAllowThreads(__tstate); | |
17374 | if (PyErr_Occurred()) SWIG_fail; | |
17375 | } | |
c32bde28 | 17376 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
17377 | return resultobj; |
17378 | fail: | |
17379 | return NULL; | |
17380 | } | |
17381 | ||
17382 | ||
c32bde28 | 17383 | static PyObject *_wrap_DateTime_GetMonthName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17384 | PyObject *resultobj; |
17385 | int arg1 ; | |
17386 | int arg2 = (int) wxDateTime::Name_Full ; | |
17387 | wxString result; | |
17388 | PyObject * obj0 = 0 ; | |
17389 | PyObject * obj1 = 0 ; | |
17390 | char *kwnames[] = { | |
17391 | (char *) "month",(char *) "flags", NULL | |
17392 | }; | |
17393 | ||
17394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonthName",kwnames,&obj0,&obj1)) goto fail; | |
c32bde28 | 17395 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17396 | if (PyErr_Occurred()) SWIG_fail; |
17397 | if (obj1) { | |
c32bde28 | 17398 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17399 | if (PyErr_Occurred()) SWIG_fail; |
17400 | } | |
17401 | { | |
17402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17403 | result = wxDateTime::GetMonthName((wxDateTime::Month )arg1,(wxDateTime::NameFlags )arg2); | |
17404 | ||
17405 | wxPyEndAllowThreads(__tstate); | |
17406 | if (PyErr_Occurred()) SWIG_fail; | |
17407 | } | |
17408 | { | |
17409 | #if wxUSE_UNICODE | |
17410 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17411 | #else | |
17412 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17413 | #endif | |
17414 | } | |
17415 | return resultobj; | |
17416 | fail: | |
17417 | return NULL; | |
17418 | } | |
17419 | ||
17420 | ||
c32bde28 | 17421 | static PyObject *_wrap_DateTime_GetWeekDayName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17422 | PyObject *resultobj; |
17423 | int arg1 ; | |
17424 | int arg2 = (int) wxDateTime::Name_Full ; | |
17425 | wxString result; | |
17426 | PyObject * obj0 = 0 ; | |
17427 | PyObject * obj1 = 0 ; | |
17428 | char *kwnames[] = { | |
17429 | (char *) "weekday",(char *) "flags", NULL | |
17430 | }; | |
17431 | ||
17432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDayName",kwnames,&obj0,&obj1)) goto fail; | |
c32bde28 | 17433 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17434 | if (PyErr_Occurred()) SWIG_fail; |
17435 | if (obj1) { | |
c32bde28 | 17436 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17437 | if (PyErr_Occurred()) SWIG_fail; |
17438 | } | |
17439 | { | |
17440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17441 | result = wxDateTime::GetWeekDayName((wxDateTime::WeekDay )arg1,(wxDateTime::NameFlags )arg2); | |
17442 | ||
17443 | wxPyEndAllowThreads(__tstate); | |
17444 | if (PyErr_Occurred()) SWIG_fail; | |
17445 | } | |
17446 | { | |
17447 | #if wxUSE_UNICODE | |
17448 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17449 | #else | |
17450 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17451 | #endif | |
17452 | } | |
17453 | return resultobj; | |
17454 | fail: | |
17455 | return NULL; | |
17456 | } | |
17457 | ||
17458 | ||
c32bde28 | 17459 | static PyObject *_wrap_DateTime_GetAmPmStrings(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17460 | PyObject *resultobj; |
17461 | wxString *arg1 = (wxString *) 0 ; | |
17462 | wxString *arg2 = (wxString *) 0 ; | |
ae8162c8 RD |
17463 | bool temp1 = false ; |
17464 | bool temp2 = false ; | |
d55e5bfc RD |
17465 | PyObject * obj0 = 0 ; |
17466 | PyObject * obj1 = 0 ; | |
17467 | char *kwnames[] = { | |
17468 | (char *) "OUTPUT",(char *) "OUTPUT", NULL | |
17469 | }; | |
17470 | ||
17471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetAmPmStrings",kwnames,&obj0,&obj1)) goto fail; | |
17472 | { | |
17473 | arg1 = wxString_in_helper(obj0); | |
17474 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 17475 | temp1 = true; |
d55e5bfc RD |
17476 | } |
17477 | { | |
17478 | arg2 = wxString_in_helper(obj1); | |
17479 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 17480 | temp2 = true; |
d55e5bfc RD |
17481 | } |
17482 | { | |
17483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17484 | wxDateTime::GetAmPmStrings(arg1,arg2); | |
17485 | ||
17486 | wxPyEndAllowThreads(__tstate); | |
17487 | if (PyErr_Occurred()) SWIG_fail; | |
17488 | } | |
17489 | Py_INCREF(Py_None); resultobj = Py_None; | |
17490 | { | |
17491 | if (temp1) | |
17492 | delete arg1; | |
17493 | } | |
17494 | { | |
17495 | if (temp2) | |
17496 | delete arg2; | |
17497 | } | |
17498 | return resultobj; | |
17499 | fail: | |
17500 | { | |
17501 | if (temp1) | |
17502 | delete arg1; | |
17503 | } | |
17504 | { | |
17505 | if (temp2) | |
17506 | delete arg2; | |
17507 | } | |
17508 | return NULL; | |
17509 | } | |
17510 | ||
17511 | ||
c32bde28 | 17512 | static PyObject *_wrap_DateTime_IsDSTApplicable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17513 | PyObject *resultobj; |
17514 | int arg1 = (int) wxDateTime::Inv_Year ; | |
17515 | int arg2 = (int) wxDateTime::Country_Default ; | |
17516 | bool result; | |
17517 | PyObject * obj0 = 0 ; | |
17518 | PyObject * obj1 = 0 ; | |
17519 | char *kwnames[] = { | |
17520 | (char *) "year",(char *) "country", NULL | |
17521 | }; | |
17522 | ||
17523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsDSTApplicable",kwnames,&obj0,&obj1)) goto fail; | |
17524 | if (obj0) { | |
c32bde28 | 17525 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17526 | if (PyErr_Occurred()) SWIG_fail; |
17527 | } | |
17528 | if (obj1) { | |
c32bde28 | 17529 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17530 | if (PyErr_Occurred()) SWIG_fail; |
17531 | } | |
17532 | { | |
17533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17534 | result = (bool)wxDateTime::IsDSTApplicable(arg1,(wxDateTime::Country )arg2); | |
17535 | ||
17536 | wxPyEndAllowThreads(__tstate); | |
17537 | if (PyErr_Occurred()) SWIG_fail; | |
17538 | } | |
17539 | { | |
17540 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17541 | } | |
17542 | return resultobj; | |
17543 | fail: | |
17544 | return NULL; | |
17545 | } | |
17546 | ||
17547 | ||
c32bde28 | 17548 | static PyObject *_wrap_DateTime_GetBeginDST(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17549 | PyObject *resultobj; |
17550 | int arg1 = (int) wxDateTime::Inv_Year ; | |
17551 | int arg2 = (int) wxDateTime::Country_Default ; | |
17552 | wxDateTime result; | |
17553 | PyObject * obj0 = 0 ; | |
17554 | PyObject * obj1 = 0 ; | |
17555 | char *kwnames[] = { | |
17556 | (char *) "year",(char *) "country", NULL | |
17557 | }; | |
17558 | ||
17559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetBeginDST",kwnames,&obj0,&obj1)) goto fail; | |
17560 | if (obj0) { | |
c32bde28 | 17561 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17562 | if (PyErr_Occurred()) SWIG_fail; |
17563 | } | |
17564 | if (obj1) { | |
c32bde28 | 17565 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17566 | if (PyErr_Occurred()) SWIG_fail; |
17567 | } | |
17568 | { | |
17569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17570 | result = wxDateTime::GetBeginDST(arg1,(wxDateTime::Country )arg2); | |
17571 | ||
17572 | wxPyEndAllowThreads(__tstate); | |
17573 | if (PyErr_Occurred()) SWIG_fail; | |
17574 | } | |
17575 | { | |
17576 | wxDateTime * resultptr; | |
17577 | resultptr = new wxDateTime((wxDateTime &) result); | |
17578 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
17579 | } | |
17580 | return resultobj; | |
17581 | fail: | |
17582 | return NULL; | |
17583 | } | |
17584 | ||
17585 | ||
c32bde28 | 17586 | static PyObject *_wrap_DateTime_GetEndDST(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17587 | PyObject *resultobj; |
17588 | int arg1 = (int) wxDateTime::Inv_Year ; | |
17589 | int arg2 = (int) wxDateTime::Country_Default ; | |
17590 | wxDateTime result; | |
17591 | PyObject * obj0 = 0 ; | |
17592 | PyObject * obj1 = 0 ; | |
17593 | char *kwnames[] = { | |
17594 | (char *) "year",(char *) "country", NULL | |
17595 | }; | |
17596 | ||
17597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetEndDST",kwnames,&obj0,&obj1)) goto fail; | |
17598 | if (obj0) { | |
c32bde28 | 17599 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17600 | if (PyErr_Occurred()) SWIG_fail; |
17601 | } | |
17602 | if (obj1) { | |
c32bde28 | 17603 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17604 | if (PyErr_Occurred()) SWIG_fail; |
17605 | } | |
17606 | { | |
17607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17608 | result = wxDateTime::GetEndDST(arg1,(wxDateTime::Country )arg2); | |
17609 | ||
17610 | wxPyEndAllowThreads(__tstate); | |
17611 | if (PyErr_Occurred()) SWIG_fail; | |
17612 | } | |
17613 | { | |
17614 | wxDateTime * resultptr; | |
17615 | resultptr = new wxDateTime((wxDateTime &) result); | |
17616 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
17617 | } | |
17618 | return resultobj; | |
17619 | fail: | |
17620 | return NULL; | |
17621 | } | |
17622 | ||
17623 | ||
c32bde28 | 17624 | static PyObject *_wrap_DateTime_Now(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17625 | PyObject *resultobj; |
17626 | wxDateTime result; | |
17627 | char *kwnames[] = { | |
17628 | NULL | |
17629 | }; | |
17630 | ||
17631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Now",kwnames)) goto fail; | |
17632 | { | |
17633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17634 | result = wxDateTime::Now(); | |
17635 | ||
17636 | wxPyEndAllowThreads(__tstate); | |
17637 | if (PyErr_Occurred()) SWIG_fail; | |
17638 | } | |
17639 | { | |
17640 | wxDateTime * resultptr; | |
17641 | resultptr = new wxDateTime((wxDateTime &) result); | |
17642 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
17643 | } | |
17644 | return resultobj; | |
17645 | fail: | |
17646 | return NULL; | |
17647 | } | |
17648 | ||
17649 | ||
c32bde28 | 17650 | static PyObject *_wrap_DateTime_UNow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17651 | PyObject *resultobj; |
17652 | wxDateTime result; | |
17653 | char *kwnames[] = { | |
17654 | NULL | |
17655 | }; | |
17656 | ||
17657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_UNow",kwnames)) goto fail; | |
17658 | { | |
17659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17660 | result = wxDateTime::UNow(); | |
17661 | ||
17662 | wxPyEndAllowThreads(__tstate); | |
17663 | if (PyErr_Occurred()) SWIG_fail; | |
17664 | } | |
17665 | { | |
17666 | wxDateTime * resultptr; | |
17667 | resultptr = new wxDateTime((wxDateTime &) result); | |
17668 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
17669 | } | |
17670 | return resultobj; | |
17671 | fail: | |
17672 | return NULL; | |
17673 | } | |
17674 | ||
17675 | ||
c32bde28 | 17676 | static PyObject *_wrap_DateTime_Today(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17677 | PyObject *resultobj; |
17678 | wxDateTime result; | |
17679 | char *kwnames[] = { | |
17680 | NULL | |
17681 | }; | |
17682 | ||
17683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Today",kwnames)) goto fail; | |
17684 | { | |
17685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17686 | result = wxDateTime::Today(); | |
17687 | ||
17688 | wxPyEndAllowThreads(__tstate); | |
17689 | if (PyErr_Occurred()) SWIG_fail; | |
17690 | } | |
17691 | { | |
17692 | wxDateTime * resultptr; | |
17693 | resultptr = new wxDateTime((wxDateTime &) result); | |
17694 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
17695 | } | |
17696 | return resultobj; | |
17697 | fail: | |
17698 | return NULL; | |
17699 | } | |
17700 | ||
17701 | ||
c32bde28 | 17702 | static PyObject *_wrap_new_DateTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17703 | PyObject *resultobj; |
17704 | wxDateTime *result; | |
17705 | char *kwnames[] = { | |
17706 | NULL | |
17707 | }; | |
17708 | ||
17709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DateTime",kwnames)) goto fail; | |
17710 | { | |
17711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17712 | result = (wxDateTime *)new wxDateTime(); | |
17713 | ||
17714 | wxPyEndAllowThreads(__tstate); | |
17715 | if (PyErr_Occurred()) SWIG_fail; | |
17716 | } | |
17717 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
17718 | return resultobj; | |
17719 | fail: | |
17720 | return NULL; | |
17721 | } | |
17722 | ||
17723 | ||
c32bde28 | 17724 | static PyObject *_wrap_new_DateTimeFromTimeT(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17725 | PyObject *resultobj; |
17726 | time_t arg1 ; | |
17727 | wxDateTime *result; | |
17728 | PyObject * obj0 = 0 ; | |
17729 | char *kwnames[] = { | |
17730 | (char *) "timet", NULL | |
17731 | }; | |
17732 | ||
17733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromTimeT",kwnames,&obj0)) goto fail; | |
c32bde28 | 17734 | arg1 = (time_t)SWIG_As_unsigned_SS_int(obj0); |
d55e5bfc RD |
17735 | if (PyErr_Occurred()) SWIG_fail; |
17736 | { | |
17737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17738 | result = (wxDateTime *)new wxDateTime(arg1); | |
17739 | ||
17740 | wxPyEndAllowThreads(__tstate); | |
17741 | if (PyErr_Occurred()) SWIG_fail; | |
17742 | } | |
17743 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
17744 | return resultobj; | |
17745 | fail: | |
17746 | return NULL; | |
17747 | } | |
17748 | ||
17749 | ||
c32bde28 | 17750 | static PyObject *_wrap_new_DateTimeFromJDN(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17751 | PyObject *resultobj; |
17752 | double arg1 ; | |
17753 | wxDateTime *result; | |
17754 | PyObject * obj0 = 0 ; | |
17755 | char *kwnames[] = { | |
17756 | (char *) "jdn", NULL | |
17757 | }; | |
17758 | ||
17759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromJDN",kwnames,&obj0)) goto fail; | |
c32bde28 | 17760 | arg1 = (double)SWIG_As_double(obj0); |
d55e5bfc RD |
17761 | if (PyErr_Occurred()) SWIG_fail; |
17762 | { | |
17763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17764 | result = (wxDateTime *)new wxDateTime(arg1); | |
17765 | ||
17766 | wxPyEndAllowThreads(__tstate); | |
17767 | if (PyErr_Occurred()) SWIG_fail; | |
17768 | } | |
17769 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
17770 | return resultobj; | |
17771 | fail: | |
17772 | return NULL; | |
17773 | } | |
17774 | ||
17775 | ||
c32bde28 | 17776 | static PyObject *_wrap_new_DateTimeFromHMS(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17777 | PyObject *resultobj; |
17778 | int arg1 ; | |
17779 | int arg2 = (int) 0 ; | |
17780 | int arg3 = (int) 0 ; | |
17781 | int arg4 = (int) 0 ; | |
17782 | wxDateTime *result; | |
17783 | PyObject * obj0 = 0 ; | |
17784 | PyObject * obj1 = 0 ; | |
17785 | PyObject * obj2 = 0 ; | |
17786 | PyObject * obj3 = 0 ; | |
17787 | char *kwnames[] = { | |
17788 | (char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
17789 | }; | |
17790 | ||
17791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DateTimeFromHMS",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
c32bde28 | 17792 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17793 | if (PyErr_Occurred()) SWIG_fail; |
17794 | if (obj1) { | |
c32bde28 | 17795 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17796 | if (PyErr_Occurred()) SWIG_fail; |
17797 | } | |
17798 | if (obj2) { | |
c32bde28 | 17799 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
17800 | if (PyErr_Occurred()) SWIG_fail; |
17801 | } | |
17802 | if (obj3) { | |
c32bde28 | 17803 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
17804 | if (PyErr_Occurred()) SWIG_fail; |
17805 | } | |
17806 | { | |
17807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17808 | result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4); | |
17809 | ||
17810 | wxPyEndAllowThreads(__tstate); | |
17811 | if (PyErr_Occurred()) SWIG_fail; | |
17812 | } | |
17813 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
17814 | return resultobj; | |
17815 | fail: | |
17816 | return NULL; | |
17817 | } | |
17818 | ||
17819 | ||
c32bde28 | 17820 | static PyObject *_wrap_new_DateTimeFromDMY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17821 | PyObject *resultobj; |
17822 | int arg1 ; | |
17823 | int arg2 = (int) wxDateTime::Inv_Month ; | |
17824 | int arg3 = (int) wxDateTime::Inv_Year ; | |
17825 | int arg4 = (int) 0 ; | |
17826 | int arg5 = (int) 0 ; | |
17827 | int arg6 = (int) 0 ; | |
17828 | int arg7 = (int) 0 ; | |
17829 | wxDateTime *result; | |
17830 | PyObject * obj0 = 0 ; | |
17831 | PyObject * obj1 = 0 ; | |
17832 | PyObject * obj2 = 0 ; | |
17833 | PyObject * obj3 = 0 ; | |
17834 | PyObject * obj4 = 0 ; | |
17835 | PyObject * obj5 = 0 ; | |
17836 | PyObject * obj6 = 0 ; | |
17837 | char *kwnames[] = { | |
17838 | (char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
17839 | }; | |
17840 | ||
17841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DateTimeFromDMY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
c32bde28 | 17842 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17843 | if (PyErr_Occurred()) SWIG_fail; |
17844 | if (obj1) { | |
c32bde28 | 17845 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17846 | if (PyErr_Occurred()) SWIG_fail; |
17847 | } | |
17848 | if (obj2) { | |
c32bde28 | 17849 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
17850 | if (PyErr_Occurred()) SWIG_fail; |
17851 | } | |
17852 | if (obj3) { | |
c32bde28 | 17853 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
17854 | if (PyErr_Occurred()) SWIG_fail; |
17855 | } | |
17856 | if (obj4) { | |
c32bde28 | 17857 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
17858 | if (PyErr_Occurred()) SWIG_fail; |
17859 | } | |
17860 | if (obj5) { | |
c32bde28 | 17861 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
17862 | if (PyErr_Occurred()) SWIG_fail; |
17863 | } | |
17864 | if (obj6) { | |
c32bde28 | 17865 | arg7 = (int)SWIG_As_int(obj6); |
d55e5bfc RD |
17866 | if (PyErr_Occurred()) SWIG_fail; |
17867 | } | |
17868 | { | |
17869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17870 | result = (wxDateTime *)new wxDateTime(arg1,(wxDateTime::Month )arg2,arg3,arg4,arg5,arg6,arg7); | |
17871 | ||
17872 | wxPyEndAllowThreads(__tstate); | |
17873 | if (PyErr_Occurred()) SWIG_fail; | |
17874 | } | |
17875 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
17876 | return resultobj; | |
17877 | fail: | |
17878 | return NULL; | |
17879 | } | |
17880 | ||
17881 | ||
c32bde28 | 17882 | static PyObject *_wrap_delete_DateTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17883 | PyObject *resultobj; |
17884 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17885 | PyObject * obj0 = 0 ; | |
17886 | char *kwnames[] = { | |
17887 | (char *) "self", NULL | |
17888 | }; | |
17889 | ||
17890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateTime",kwnames,&obj0)) goto fail; | |
17891 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17892 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17893 | { | |
17894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17895 | delete arg1; | |
17896 | ||
17897 | wxPyEndAllowThreads(__tstate); | |
17898 | if (PyErr_Occurred()) SWIG_fail; | |
17899 | } | |
17900 | Py_INCREF(Py_None); resultobj = Py_None; | |
17901 | return resultobj; | |
17902 | fail: | |
17903 | return NULL; | |
17904 | } | |
17905 | ||
17906 | ||
c32bde28 | 17907 | static PyObject *_wrap_DateTime_SetToCurrent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17908 | PyObject *resultobj; |
17909 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17910 | wxDateTime *result; | |
17911 | PyObject * obj0 = 0 ; | |
17912 | char *kwnames[] = { | |
17913 | (char *) "self", NULL | |
17914 | }; | |
17915 | ||
17916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetToCurrent",kwnames,&obj0)) goto fail; | |
17917 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17919 | { | |
17920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17921 | { | |
17922 | wxDateTime &_result_ref = (arg1)->SetToCurrent(); | |
17923 | result = (wxDateTime *) &_result_ref; | |
17924 | } | |
17925 | ||
17926 | wxPyEndAllowThreads(__tstate); | |
17927 | if (PyErr_Occurred()) SWIG_fail; | |
17928 | } | |
17929 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17930 | return resultobj; | |
17931 | fail: | |
17932 | return NULL; | |
17933 | } | |
17934 | ||
17935 | ||
c32bde28 | 17936 | static PyObject *_wrap_DateTime_SetTimeT(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17937 | PyObject *resultobj; |
17938 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17939 | time_t arg2 ; | |
17940 | wxDateTime *result; | |
17941 | PyObject * obj0 = 0 ; | |
17942 | PyObject * obj1 = 0 ; | |
17943 | char *kwnames[] = { | |
17944 | (char *) "self",(char *) "timet", NULL | |
17945 | }; | |
17946 | ||
17947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetTimeT",kwnames,&obj0,&obj1)) goto fail; | |
17948 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17950 | arg2 = (time_t)SWIG_As_unsigned_SS_int(obj1); |
d55e5bfc RD |
17951 | if (PyErr_Occurred()) SWIG_fail; |
17952 | { | |
17953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17954 | { | |
17955 | wxDateTime &_result_ref = (arg1)->Set(arg2); | |
17956 | result = (wxDateTime *) &_result_ref; | |
17957 | } | |
17958 | ||
17959 | wxPyEndAllowThreads(__tstate); | |
17960 | if (PyErr_Occurred()) SWIG_fail; | |
17961 | } | |
17962 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17963 | return resultobj; | |
17964 | fail: | |
17965 | return NULL; | |
17966 | } | |
17967 | ||
17968 | ||
c32bde28 | 17969 | static PyObject *_wrap_DateTime_SetJDN(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17970 | PyObject *resultobj; |
17971 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17972 | double arg2 ; | |
17973 | wxDateTime *result; | |
17974 | PyObject * obj0 = 0 ; | |
17975 | PyObject * obj1 = 0 ; | |
17976 | char *kwnames[] = { | |
17977 | (char *) "self",(char *) "jdn", NULL | |
17978 | }; | |
17979 | ||
17980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetJDN",kwnames,&obj0,&obj1)) goto fail; | |
17981 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
17982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 17983 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc RD |
17984 | if (PyErr_Occurred()) SWIG_fail; |
17985 | { | |
17986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17987 | { | |
17988 | wxDateTime &_result_ref = (arg1)->Set(arg2); | |
17989 | result = (wxDateTime *) &_result_ref; | |
17990 | } | |
17991 | ||
17992 | wxPyEndAllowThreads(__tstate); | |
17993 | if (PyErr_Occurred()) SWIG_fail; | |
17994 | } | |
17995 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
17996 | return resultobj; | |
17997 | fail: | |
17998 | return NULL; | |
17999 | } | |
18000 | ||
18001 | ||
c32bde28 | 18002 | static PyObject *_wrap_DateTime_SetHMS(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18003 | PyObject *resultobj; |
18004 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18005 | int arg2 ; | |
18006 | int arg3 = (int) 0 ; | |
18007 | int arg4 = (int) 0 ; | |
18008 | int arg5 = (int) 0 ; | |
18009 | wxDateTime *result; | |
18010 | PyObject * obj0 = 0 ; | |
18011 | PyObject * obj1 = 0 ; | |
18012 | PyObject * obj2 = 0 ; | |
18013 | PyObject * obj3 = 0 ; | |
18014 | PyObject * obj4 = 0 ; | |
18015 | char *kwnames[] = { | |
18016 | (char *) "self",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
18017 | }; | |
18018 | ||
18019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetHMS",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
18020 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18021 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18022 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18023 | if (PyErr_Occurred()) SWIG_fail; |
18024 | if (obj2) { | |
c32bde28 | 18025 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
18026 | if (PyErr_Occurred()) SWIG_fail; |
18027 | } | |
18028 | if (obj3) { | |
c32bde28 | 18029 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
18030 | if (PyErr_Occurred()) SWIG_fail; |
18031 | } | |
18032 | if (obj4) { | |
c32bde28 | 18033 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
18034 | if (PyErr_Occurred()) SWIG_fail; |
18035 | } | |
18036 | { | |
18037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18038 | { | |
18039 | wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5); | |
18040 | result = (wxDateTime *) &_result_ref; | |
18041 | } | |
18042 | ||
18043 | wxPyEndAllowThreads(__tstate); | |
18044 | if (PyErr_Occurred()) SWIG_fail; | |
18045 | } | |
18046 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18047 | return resultobj; | |
18048 | fail: | |
18049 | return NULL; | |
18050 | } | |
18051 | ||
18052 | ||
c32bde28 | 18053 | static PyObject *_wrap_DateTime_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18054 | PyObject *resultobj; |
18055 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18056 | int arg2 ; | |
18057 | int arg3 = (int) wxDateTime::Inv_Month ; | |
18058 | int arg4 = (int) wxDateTime::Inv_Year ; | |
18059 | int arg5 = (int) 0 ; | |
18060 | int arg6 = (int) 0 ; | |
18061 | int arg7 = (int) 0 ; | |
18062 | int arg8 = (int) 0 ; | |
18063 | wxDateTime *result; | |
18064 | PyObject * obj0 = 0 ; | |
18065 | PyObject * obj1 = 0 ; | |
18066 | PyObject * obj2 = 0 ; | |
18067 | PyObject * obj3 = 0 ; | |
18068 | PyObject * obj4 = 0 ; | |
18069 | PyObject * obj5 = 0 ; | |
18070 | PyObject * obj6 = 0 ; | |
18071 | PyObject * obj7 = 0 ; | |
18072 | char *kwnames[] = { | |
18073 | (char *) "self",(char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
18074 | }; | |
18075 | ||
18076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:DateTime_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
18077 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18078 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18079 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18080 | if (PyErr_Occurred()) SWIG_fail; |
18081 | if (obj2) { | |
c32bde28 | 18082 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
18083 | if (PyErr_Occurred()) SWIG_fail; |
18084 | } | |
18085 | if (obj3) { | |
c32bde28 | 18086 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
18087 | if (PyErr_Occurred()) SWIG_fail; |
18088 | } | |
18089 | if (obj4) { | |
c32bde28 | 18090 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
18091 | if (PyErr_Occurred()) SWIG_fail; |
18092 | } | |
18093 | if (obj5) { | |
c32bde28 | 18094 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
18095 | if (PyErr_Occurred()) SWIG_fail; |
18096 | } | |
18097 | if (obj6) { | |
c32bde28 | 18098 | arg7 = (int)SWIG_As_int(obj6); |
d55e5bfc RD |
18099 | if (PyErr_Occurred()) SWIG_fail; |
18100 | } | |
18101 | if (obj7) { | |
c32bde28 | 18102 | arg8 = (int)SWIG_As_int(obj7); |
d55e5bfc RD |
18103 | if (PyErr_Occurred()) SWIG_fail; |
18104 | } | |
18105 | { | |
18106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18107 | { | |
18108 | wxDateTime &_result_ref = (arg1)->Set(arg2,(wxDateTime::Month )arg3,arg4,arg5,arg6,arg7,arg8); | |
18109 | result = (wxDateTime *) &_result_ref; | |
18110 | } | |
18111 | ||
18112 | wxPyEndAllowThreads(__tstate); | |
18113 | if (PyErr_Occurred()) SWIG_fail; | |
18114 | } | |
18115 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18116 | return resultobj; | |
18117 | fail: | |
18118 | return NULL; | |
18119 | } | |
18120 | ||
18121 | ||
c32bde28 | 18122 | static PyObject *_wrap_DateTime_ResetTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18123 | PyObject *resultobj; |
18124 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18125 | wxDateTime *result; | |
18126 | PyObject * obj0 = 0 ; | |
18127 | char *kwnames[] = { | |
18128 | (char *) "self", NULL | |
18129 | }; | |
18130 | ||
18131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ResetTime",kwnames,&obj0)) goto fail; | |
18132 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18133 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18134 | { | |
18135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18136 | { | |
18137 | wxDateTime &_result_ref = (arg1)->ResetTime(); | |
18138 | result = (wxDateTime *) &_result_ref; | |
18139 | } | |
18140 | ||
18141 | wxPyEndAllowThreads(__tstate); | |
18142 | if (PyErr_Occurred()) SWIG_fail; | |
18143 | } | |
18144 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18145 | return resultobj; | |
18146 | fail: | |
18147 | return NULL; | |
18148 | } | |
18149 | ||
18150 | ||
c32bde28 | 18151 | static PyObject *_wrap_DateTime_SetYear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18152 | PyObject *resultobj; |
18153 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18154 | int arg2 ; | |
18155 | wxDateTime *result; | |
18156 | PyObject * obj0 = 0 ; | |
18157 | PyObject * obj1 = 0 ; | |
18158 | char *kwnames[] = { | |
18159 | (char *) "self",(char *) "year", NULL | |
18160 | }; | |
18161 | ||
18162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetYear",kwnames,&obj0,&obj1)) goto fail; | |
18163 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18164 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18165 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18166 | if (PyErr_Occurred()) SWIG_fail; |
18167 | { | |
18168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18169 | { | |
18170 | wxDateTime &_result_ref = (arg1)->SetYear(arg2); | |
18171 | result = (wxDateTime *) &_result_ref; | |
18172 | } | |
18173 | ||
18174 | wxPyEndAllowThreads(__tstate); | |
18175 | if (PyErr_Occurred()) SWIG_fail; | |
18176 | } | |
18177 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18178 | return resultobj; | |
18179 | fail: | |
18180 | return NULL; | |
18181 | } | |
18182 | ||
18183 | ||
c32bde28 | 18184 | static PyObject *_wrap_DateTime_SetMonth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18185 | PyObject *resultobj; |
18186 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18187 | int arg2 ; | |
18188 | wxDateTime *result; | |
18189 | PyObject * obj0 = 0 ; | |
18190 | PyObject * obj1 = 0 ; | |
18191 | char *kwnames[] = { | |
18192 | (char *) "self",(char *) "month", NULL | |
18193 | }; | |
18194 | ||
18195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMonth",kwnames,&obj0,&obj1)) goto fail; | |
18196 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18198 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18199 | if (PyErr_Occurred()) SWIG_fail; |
18200 | { | |
18201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18202 | { | |
18203 | wxDateTime &_result_ref = (arg1)->SetMonth((wxDateTime::Month )arg2); | |
18204 | result = (wxDateTime *) &_result_ref; | |
18205 | } | |
18206 | ||
18207 | wxPyEndAllowThreads(__tstate); | |
18208 | if (PyErr_Occurred()) SWIG_fail; | |
18209 | } | |
18210 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18211 | return resultobj; | |
18212 | fail: | |
18213 | return NULL; | |
18214 | } | |
18215 | ||
18216 | ||
c32bde28 | 18217 | static PyObject *_wrap_DateTime_SetDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18218 | PyObject *resultobj; |
18219 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18220 | int arg2 ; | |
18221 | wxDateTime *result; | |
18222 | PyObject * obj0 = 0 ; | |
18223 | PyObject * obj1 = 0 ; | |
18224 | char *kwnames[] = { | |
18225 | (char *) "self",(char *) "day", NULL | |
18226 | }; | |
18227 | ||
18228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetDay",kwnames,&obj0,&obj1)) goto fail; | |
18229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18231 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18232 | if (PyErr_Occurred()) SWIG_fail; |
18233 | { | |
18234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18235 | { | |
18236 | wxDateTime &_result_ref = (arg1)->SetDay(arg2); | |
18237 | result = (wxDateTime *) &_result_ref; | |
18238 | } | |
18239 | ||
18240 | wxPyEndAllowThreads(__tstate); | |
18241 | if (PyErr_Occurred()) SWIG_fail; | |
18242 | } | |
18243 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18244 | return resultobj; | |
18245 | fail: | |
18246 | return NULL; | |
18247 | } | |
18248 | ||
18249 | ||
c32bde28 | 18250 | static PyObject *_wrap_DateTime_SetHour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18251 | PyObject *resultobj; |
18252 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18253 | int arg2 ; | |
18254 | wxDateTime *result; | |
18255 | PyObject * obj0 = 0 ; | |
18256 | PyObject * obj1 = 0 ; | |
18257 | char *kwnames[] = { | |
18258 | (char *) "self",(char *) "hour", NULL | |
18259 | }; | |
18260 | ||
18261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetHour",kwnames,&obj0,&obj1)) goto fail; | |
18262 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18263 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18264 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18265 | if (PyErr_Occurred()) SWIG_fail; |
18266 | { | |
18267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18268 | { | |
18269 | wxDateTime &_result_ref = (arg1)->SetHour(arg2); | |
18270 | result = (wxDateTime *) &_result_ref; | |
18271 | } | |
18272 | ||
18273 | wxPyEndAllowThreads(__tstate); | |
18274 | if (PyErr_Occurred()) SWIG_fail; | |
18275 | } | |
18276 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18277 | return resultobj; | |
18278 | fail: | |
18279 | return NULL; | |
18280 | } | |
18281 | ||
18282 | ||
c32bde28 | 18283 | static PyObject *_wrap_DateTime_SetMinute(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18284 | PyObject *resultobj; |
18285 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18286 | int arg2 ; | |
18287 | wxDateTime *result; | |
18288 | PyObject * obj0 = 0 ; | |
18289 | PyObject * obj1 = 0 ; | |
18290 | char *kwnames[] = { | |
18291 | (char *) "self",(char *) "minute", NULL | |
18292 | }; | |
18293 | ||
18294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMinute",kwnames,&obj0,&obj1)) goto fail; | |
18295 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18296 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18297 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18298 | if (PyErr_Occurred()) SWIG_fail; |
18299 | { | |
18300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18301 | { | |
18302 | wxDateTime &_result_ref = (arg1)->SetMinute(arg2); | |
18303 | result = (wxDateTime *) &_result_ref; | |
18304 | } | |
18305 | ||
18306 | wxPyEndAllowThreads(__tstate); | |
18307 | if (PyErr_Occurred()) SWIG_fail; | |
18308 | } | |
18309 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18310 | return resultobj; | |
18311 | fail: | |
18312 | return NULL; | |
18313 | } | |
18314 | ||
18315 | ||
c32bde28 | 18316 | static PyObject *_wrap_DateTime_SetSecond(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18317 | PyObject *resultobj; |
18318 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18319 | int arg2 ; | |
18320 | wxDateTime *result; | |
18321 | PyObject * obj0 = 0 ; | |
18322 | PyObject * obj1 = 0 ; | |
18323 | char *kwnames[] = { | |
18324 | (char *) "self",(char *) "second", NULL | |
18325 | }; | |
18326 | ||
18327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetSecond",kwnames,&obj0,&obj1)) goto fail; | |
18328 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18329 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18330 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18331 | if (PyErr_Occurred()) SWIG_fail; |
18332 | { | |
18333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18334 | { | |
18335 | wxDateTime &_result_ref = (arg1)->SetSecond(arg2); | |
18336 | result = (wxDateTime *) &_result_ref; | |
18337 | } | |
18338 | ||
18339 | wxPyEndAllowThreads(__tstate); | |
18340 | if (PyErr_Occurred()) SWIG_fail; | |
18341 | } | |
18342 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18343 | return resultobj; | |
18344 | fail: | |
18345 | return NULL; | |
18346 | } | |
18347 | ||
18348 | ||
c32bde28 | 18349 | static PyObject *_wrap_DateTime_SetMillisecond(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18350 | PyObject *resultobj; |
18351 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18352 | int arg2 ; | |
18353 | wxDateTime *result; | |
18354 | PyObject * obj0 = 0 ; | |
18355 | PyObject * obj1 = 0 ; | |
18356 | char *kwnames[] = { | |
18357 | (char *) "self",(char *) "millisecond", NULL | |
18358 | }; | |
18359 | ||
18360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMillisecond",kwnames,&obj0,&obj1)) goto fail; | |
18361 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18362 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18363 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18364 | if (PyErr_Occurred()) SWIG_fail; |
18365 | { | |
18366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18367 | { | |
18368 | wxDateTime &_result_ref = (arg1)->SetMillisecond(arg2); | |
18369 | result = (wxDateTime *) &_result_ref; | |
18370 | } | |
18371 | ||
18372 | wxPyEndAllowThreads(__tstate); | |
18373 | if (PyErr_Occurred()) SWIG_fail; | |
18374 | } | |
18375 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18376 | return resultobj; | |
18377 | fail: | |
18378 | return NULL; | |
18379 | } | |
18380 | ||
18381 | ||
c32bde28 | 18382 | static PyObject *_wrap_DateTime_SetToWeekDayInSameWeek(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18383 | PyObject *resultobj; |
18384 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18385 | int arg2 ; | |
18386 | int arg3 = (int) wxDateTime::Monday_First ; | |
18387 | wxDateTime *result; | |
18388 | PyObject * obj0 = 0 ; | |
18389 | PyObject * obj1 = 0 ; | |
18390 | PyObject * obj2 = 0 ; | |
18391 | char *kwnames[] = { | |
18392 | (char *) "self",(char *) "weekday",(char *) "flags", NULL | |
18393 | }; | |
18394 | ||
18395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18396 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18397 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18398 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18399 | if (PyErr_Occurred()) SWIG_fail; |
18400 | if (obj2) { | |
c32bde28 | 18401 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
18402 | if (PyErr_Occurred()) SWIG_fail; |
18403 | } | |
18404 | { | |
18405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18406 | { | |
18407 | wxDateTime &_result_ref = (arg1)->SetToWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3); | |
18408 | result = (wxDateTime *) &_result_ref; | |
18409 | } | |
18410 | ||
18411 | wxPyEndAllowThreads(__tstate); | |
18412 | if (PyErr_Occurred()) SWIG_fail; | |
18413 | } | |
18414 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18415 | return resultobj; | |
18416 | fail: | |
18417 | return NULL; | |
18418 | } | |
18419 | ||
18420 | ||
c32bde28 | 18421 | static PyObject *_wrap_DateTime_GetWeekDayInSameWeek(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18422 | PyObject *resultobj; |
18423 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18424 | int arg2 ; | |
18425 | int arg3 = (int) wxDateTime::Monday_First ; | |
18426 | wxDateTime result; | |
18427 | PyObject * obj0 = 0 ; | |
18428 | PyObject * obj1 = 0 ; | |
18429 | PyObject * obj2 = 0 ; | |
18430 | char *kwnames[] = { | |
18431 | (char *) "self",(char *) "weekday",(char *) "flags", NULL | |
18432 | }; | |
18433 | ||
18434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_GetWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18435 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18436 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18437 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18438 | if (PyErr_Occurred()) SWIG_fail; |
18439 | if (obj2) { | |
c32bde28 | 18440 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
18441 | if (PyErr_Occurred()) SWIG_fail; |
18442 | } | |
18443 | { | |
18444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18445 | result = (arg1)->GetWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3); | |
18446 | ||
18447 | wxPyEndAllowThreads(__tstate); | |
18448 | if (PyErr_Occurred()) SWIG_fail; | |
18449 | } | |
18450 | { | |
18451 | wxDateTime * resultptr; | |
18452 | resultptr = new wxDateTime((wxDateTime &) result); | |
18453 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18454 | } | |
18455 | return resultobj; | |
18456 | fail: | |
18457 | return NULL; | |
18458 | } | |
18459 | ||
18460 | ||
c32bde28 | 18461 | static PyObject *_wrap_DateTime_SetToNextWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18462 | PyObject *resultobj; |
18463 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18464 | int arg2 ; | |
18465 | wxDateTime *result; | |
18466 | PyObject * obj0 = 0 ; | |
18467 | PyObject * obj1 = 0 ; | |
18468 | char *kwnames[] = { | |
18469 | (char *) "self",(char *) "weekday", NULL | |
18470 | }; | |
18471 | ||
18472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToNextWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
18473 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18474 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18475 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18476 | if (PyErr_Occurred()) SWIG_fail; |
18477 | { | |
18478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18479 | { | |
18480 | wxDateTime &_result_ref = (arg1)->SetToNextWeekDay((wxDateTime::WeekDay )arg2); | |
18481 | result = (wxDateTime *) &_result_ref; | |
18482 | } | |
18483 | ||
18484 | wxPyEndAllowThreads(__tstate); | |
18485 | if (PyErr_Occurred()) SWIG_fail; | |
18486 | } | |
18487 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18488 | return resultobj; | |
18489 | fail: | |
18490 | return NULL; | |
18491 | } | |
18492 | ||
18493 | ||
c32bde28 | 18494 | static PyObject *_wrap_DateTime_GetNextWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18495 | PyObject *resultobj; |
18496 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18497 | int arg2 ; | |
18498 | wxDateTime result; | |
18499 | PyObject * obj0 = 0 ; | |
18500 | PyObject * obj1 = 0 ; | |
18501 | char *kwnames[] = { | |
18502 | (char *) "self",(char *) "weekday", NULL | |
18503 | }; | |
18504 | ||
18505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetNextWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
18506 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18507 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18508 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18509 | if (PyErr_Occurred()) SWIG_fail; |
18510 | { | |
18511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18512 | result = (arg1)->GetNextWeekDay((wxDateTime::WeekDay )arg2); | |
18513 | ||
18514 | wxPyEndAllowThreads(__tstate); | |
18515 | if (PyErr_Occurred()) SWIG_fail; | |
18516 | } | |
18517 | { | |
18518 | wxDateTime * resultptr; | |
18519 | resultptr = new wxDateTime((wxDateTime &) result); | |
18520 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18521 | } | |
18522 | return resultobj; | |
18523 | fail: | |
18524 | return NULL; | |
18525 | } | |
18526 | ||
18527 | ||
c32bde28 | 18528 | static PyObject *_wrap_DateTime_SetToPrevWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18529 | PyObject *resultobj; |
18530 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18531 | int arg2 ; | |
18532 | wxDateTime *result; | |
18533 | PyObject * obj0 = 0 ; | |
18534 | PyObject * obj1 = 0 ; | |
18535 | char *kwnames[] = { | |
18536 | (char *) "self",(char *) "weekday", NULL | |
18537 | }; | |
18538 | ||
18539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToPrevWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
18540 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18541 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18542 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18543 | if (PyErr_Occurred()) SWIG_fail; |
18544 | { | |
18545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18546 | { | |
18547 | wxDateTime &_result_ref = (arg1)->SetToPrevWeekDay((wxDateTime::WeekDay )arg2); | |
18548 | result = (wxDateTime *) &_result_ref; | |
18549 | } | |
18550 | ||
18551 | wxPyEndAllowThreads(__tstate); | |
18552 | if (PyErr_Occurred()) SWIG_fail; | |
18553 | } | |
18554 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18555 | return resultobj; | |
18556 | fail: | |
18557 | return NULL; | |
18558 | } | |
18559 | ||
18560 | ||
c32bde28 | 18561 | static PyObject *_wrap_DateTime_GetPrevWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18562 | PyObject *resultobj; |
18563 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18564 | int arg2 ; | |
18565 | wxDateTime result; | |
18566 | PyObject * obj0 = 0 ; | |
18567 | PyObject * obj1 = 0 ; | |
18568 | char *kwnames[] = { | |
18569 | (char *) "self",(char *) "weekday", NULL | |
18570 | }; | |
18571 | ||
18572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetPrevWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
18573 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18574 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18575 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18576 | if (PyErr_Occurred()) SWIG_fail; |
18577 | { | |
18578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18579 | result = (arg1)->GetPrevWeekDay((wxDateTime::WeekDay )arg2); | |
18580 | ||
18581 | wxPyEndAllowThreads(__tstate); | |
18582 | if (PyErr_Occurred()) SWIG_fail; | |
18583 | } | |
18584 | { | |
18585 | wxDateTime * resultptr; | |
18586 | resultptr = new wxDateTime((wxDateTime &) result); | |
18587 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18588 | } | |
18589 | return resultobj; | |
18590 | fail: | |
18591 | return NULL; | |
18592 | } | |
18593 | ||
18594 | ||
c32bde28 | 18595 | static PyObject *_wrap_DateTime_SetToWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18596 | PyObject *resultobj; |
18597 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18598 | int arg2 ; | |
18599 | int arg3 = (int) 1 ; | |
18600 | int arg4 = (int) wxDateTime::Inv_Month ; | |
18601 | int arg5 = (int) wxDateTime::Inv_Year ; | |
18602 | bool result; | |
18603 | PyObject * obj0 = 0 ; | |
18604 | PyObject * obj1 = 0 ; | |
18605 | PyObject * obj2 = 0 ; | |
18606 | PyObject * obj3 = 0 ; | |
18607 | PyObject * obj4 = 0 ; | |
18608 | char *kwnames[] = { | |
18609 | (char *) "self",(char *) "weekday",(char *) "n",(char *) "month",(char *) "year", NULL | |
18610 | }; | |
18611 | ||
18612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetToWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
18613 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18614 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18615 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18616 | if (PyErr_Occurred()) SWIG_fail; |
18617 | if (obj2) { | |
c32bde28 | 18618 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
18619 | if (PyErr_Occurred()) SWIG_fail; |
18620 | } | |
18621 | if (obj3) { | |
c32bde28 | 18622 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
18623 | if (PyErr_Occurred()) SWIG_fail; |
18624 | } | |
18625 | if (obj4) { | |
c32bde28 | 18626 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
18627 | if (PyErr_Occurred()) SWIG_fail; |
18628 | } | |
18629 | { | |
18630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18631 | result = (bool)(arg1)->SetToWeekDay((wxDateTime::WeekDay )arg2,arg3,(wxDateTime::Month )arg4,arg5); | |
18632 | ||
18633 | wxPyEndAllowThreads(__tstate); | |
18634 | if (PyErr_Occurred()) SWIG_fail; | |
18635 | } | |
18636 | { | |
18637 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18638 | } | |
18639 | return resultobj; | |
18640 | fail: | |
18641 | return NULL; | |
18642 | } | |
18643 | ||
18644 | ||
c32bde28 | 18645 | static PyObject *_wrap_DateTime_SetToLastWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18646 | PyObject *resultobj; |
18647 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18648 | int arg2 ; | |
18649 | int arg3 = (int) wxDateTime::Inv_Month ; | |
18650 | int arg4 = (int) wxDateTime::Inv_Year ; | |
18651 | bool result; | |
18652 | PyObject * obj0 = 0 ; | |
18653 | PyObject * obj1 = 0 ; | |
18654 | PyObject * obj2 = 0 ; | |
18655 | PyObject * obj3 = 0 ; | |
18656 | char *kwnames[] = { | |
18657 | (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL | |
18658 | }; | |
18659 | ||
18660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
18661 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18662 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18663 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18664 | if (PyErr_Occurred()) SWIG_fail; |
18665 | if (obj2) { | |
c32bde28 | 18666 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
18667 | if (PyErr_Occurred()) SWIG_fail; |
18668 | } | |
18669 | if (obj3) { | |
c32bde28 | 18670 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
18671 | if (PyErr_Occurred()) SWIG_fail; |
18672 | } | |
18673 | { | |
18674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18675 | result = (bool)(arg1)->SetToLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4); | |
18676 | ||
18677 | wxPyEndAllowThreads(__tstate); | |
18678 | if (PyErr_Occurred()) SWIG_fail; | |
18679 | } | |
18680 | { | |
18681 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18682 | } | |
18683 | return resultobj; | |
18684 | fail: | |
18685 | return NULL; | |
18686 | } | |
18687 | ||
18688 | ||
c32bde28 | 18689 | static PyObject *_wrap_DateTime_GetLastWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18690 | PyObject *resultobj; |
18691 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18692 | int arg2 ; | |
18693 | int arg3 = (int) wxDateTime::Inv_Month ; | |
18694 | int arg4 = (int) wxDateTime::Inv_Year ; | |
18695 | wxDateTime result; | |
18696 | PyObject * obj0 = 0 ; | |
18697 | PyObject * obj1 = 0 ; | |
18698 | PyObject * obj2 = 0 ; | |
18699 | PyObject * obj3 = 0 ; | |
18700 | char *kwnames[] = { | |
18701 | (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL | |
18702 | }; | |
18703 | ||
18704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
18705 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18706 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18707 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18708 | if (PyErr_Occurred()) SWIG_fail; |
18709 | if (obj2) { | |
c32bde28 | 18710 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
18711 | if (PyErr_Occurred()) SWIG_fail; |
18712 | } | |
18713 | if (obj3) { | |
c32bde28 | 18714 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
18715 | if (PyErr_Occurred()) SWIG_fail; |
18716 | } | |
18717 | { | |
18718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18719 | result = (arg1)->GetLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4); | |
18720 | ||
18721 | wxPyEndAllowThreads(__tstate); | |
18722 | if (PyErr_Occurred()) SWIG_fail; | |
18723 | } | |
18724 | { | |
18725 | wxDateTime * resultptr; | |
18726 | resultptr = new wxDateTime((wxDateTime &) result); | |
18727 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18728 | } | |
18729 | return resultobj; | |
18730 | fail: | |
18731 | return NULL; | |
18732 | } | |
18733 | ||
18734 | ||
c32bde28 | 18735 | static PyObject *_wrap_DateTime_SetToTheWeek(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18736 | PyObject *resultobj; |
18737 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18738 | int arg2 ; | |
18739 | int arg3 = (int) wxDateTime::Mon ; | |
18740 | int arg4 = (int) wxDateTime::Monday_First ; | |
18741 | bool result; | |
18742 | PyObject * obj0 = 0 ; | |
18743 | PyObject * obj1 = 0 ; | |
18744 | PyObject * obj2 = 0 ; | |
18745 | PyObject * obj3 = 0 ; | |
18746 | char *kwnames[] = { | |
18747 | (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL | |
18748 | }; | |
18749 | ||
18750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToTheWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
18751 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18752 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18753 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18754 | if (PyErr_Occurred()) SWIG_fail; |
18755 | if (obj2) { | |
c32bde28 | 18756 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
18757 | if (PyErr_Occurred()) SWIG_fail; |
18758 | } | |
18759 | if (obj3) { | |
c32bde28 | 18760 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
18761 | if (PyErr_Occurred()) SWIG_fail; |
18762 | } | |
18763 | { | |
18764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18765 | result = (bool)(arg1)->SetToTheWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4); | |
18766 | ||
18767 | wxPyEndAllowThreads(__tstate); | |
18768 | if (PyErr_Occurred()) SWIG_fail; | |
18769 | } | |
18770 | { | |
18771 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18772 | } | |
18773 | return resultobj; | |
18774 | fail: | |
18775 | return NULL; | |
18776 | } | |
18777 | ||
18778 | ||
c32bde28 | 18779 | static PyObject *_wrap_DateTime_GetWeek(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18780 | PyObject *resultobj; |
18781 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18782 | int arg2 ; | |
18783 | int arg3 = (int) wxDateTime::Mon ; | |
18784 | int arg4 = (int) wxDateTime::Monday_First ; | |
18785 | wxDateTime result; | |
18786 | PyObject * obj0 = 0 ; | |
18787 | PyObject * obj1 = 0 ; | |
18788 | PyObject * obj2 = 0 ; | |
18789 | PyObject * obj3 = 0 ; | |
18790 | char *kwnames[] = { | |
18791 | (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL | |
18792 | }; | |
18793 | ||
18794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
18795 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18796 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18797 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18798 | if (PyErr_Occurred()) SWIG_fail; |
18799 | if (obj2) { | |
c32bde28 | 18800 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
18801 | if (PyErr_Occurred()) SWIG_fail; |
18802 | } | |
18803 | if (obj3) { | |
c32bde28 | 18804 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
18805 | if (PyErr_Occurred()) SWIG_fail; |
18806 | } | |
18807 | { | |
18808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18809 | result = (arg1)->GetWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4); | |
18810 | ||
18811 | wxPyEndAllowThreads(__tstate); | |
18812 | if (PyErr_Occurred()) SWIG_fail; | |
18813 | } | |
18814 | { | |
18815 | wxDateTime * resultptr; | |
18816 | resultptr = new wxDateTime((wxDateTime &) result); | |
18817 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18818 | } | |
18819 | return resultobj; | |
18820 | fail: | |
18821 | return NULL; | |
18822 | } | |
18823 | ||
18824 | ||
7e63a440 RD |
18825 | static PyObject *_wrap_DateTime_SetToWeekOfYear(PyObject *, PyObject *args, PyObject *kwargs) { |
18826 | PyObject *resultobj; | |
18827 | int arg1 ; | |
18828 | int arg2 ; | |
18829 | int arg3 = (int) wxDateTime::Mon ; | |
18830 | wxDateTime result; | |
18831 | PyObject * obj0 = 0 ; | |
18832 | PyObject * obj1 = 0 ; | |
18833 | PyObject * obj2 = 0 ; | |
18834 | char *kwnames[] = { | |
18835 | (char *) "year",(char *) "numWeek",(char *) "weekday", NULL | |
18836 | }; | |
18837 | ||
18838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18839 | arg1 = (int)SWIG_As_int(obj0); | |
18840 | if (PyErr_Occurred()) SWIG_fail; | |
18841 | arg2 = (int)SWIG_As_int(obj1); | |
18842 | if (PyErr_Occurred()) SWIG_fail; | |
18843 | if (obj2) { | |
18844 | arg3 = (int)SWIG_As_int(obj2); | |
18845 | if (PyErr_Occurred()) SWIG_fail; | |
18846 | } | |
18847 | { | |
18848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18849 | result = wxDateTime::SetToWeekOfYear(arg1,arg2,(wxDateTime::WeekDay )arg3); | |
18850 | ||
18851 | wxPyEndAllowThreads(__tstate); | |
18852 | if (PyErr_Occurred()) SWIG_fail; | |
18853 | } | |
18854 | { | |
18855 | wxDateTime * resultptr; | |
18856 | resultptr = new wxDateTime((wxDateTime &) result); | |
18857 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18858 | } | |
18859 | return resultobj; | |
18860 | fail: | |
18861 | return NULL; | |
18862 | } | |
18863 | ||
18864 | ||
c32bde28 | 18865 | static PyObject *_wrap_DateTime_SetToLastMonthDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18866 | PyObject *resultobj; |
18867 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18868 | int arg2 = (int) wxDateTime::Inv_Month ; | |
18869 | int arg3 = (int) wxDateTime::Inv_Year ; | |
18870 | wxDateTime *result; | |
18871 | PyObject * obj0 = 0 ; | |
18872 | PyObject * obj1 = 0 ; | |
18873 | PyObject * obj2 = 0 ; | |
18874 | char *kwnames[] = { | |
18875 | (char *) "self",(char *) "month",(char *) "year", NULL | |
18876 | }; | |
18877 | ||
18878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_SetToLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18879 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18880 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18881 | if (obj1) { | |
c32bde28 | 18882 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18883 | if (PyErr_Occurred()) SWIG_fail; |
18884 | } | |
18885 | if (obj2) { | |
c32bde28 | 18886 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
18887 | if (PyErr_Occurred()) SWIG_fail; |
18888 | } | |
18889 | { | |
18890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18891 | { | |
18892 | wxDateTime &_result_ref = (arg1)->SetToLastMonthDay((wxDateTime::Month )arg2,arg3); | |
18893 | result = (wxDateTime *) &_result_ref; | |
18894 | } | |
18895 | ||
18896 | wxPyEndAllowThreads(__tstate); | |
18897 | if (PyErr_Occurred()) SWIG_fail; | |
18898 | } | |
18899 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18900 | return resultobj; | |
18901 | fail: | |
18902 | return NULL; | |
18903 | } | |
18904 | ||
18905 | ||
c32bde28 | 18906 | static PyObject *_wrap_DateTime_GetLastMonthDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18907 | PyObject *resultobj; |
18908 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18909 | int arg2 = (int) wxDateTime::Inv_Month ; | |
18910 | int arg3 = (int) wxDateTime::Inv_Year ; | |
18911 | wxDateTime result; | |
18912 | PyObject * obj0 = 0 ; | |
18913 | PyObject * obj1 = 0 ; | |
18914 | PyObject * obj2 = 0 ; | |
18915 | char *kwnames[] = { | |
18916 | (char *) "self",(char *) "month",(char *) "year", NULL | |
18917 | }; | |
18918 | ||
18919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18920 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18921 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18922 | if (obj1) { | |
c32bde28 | 18923 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18924 | if (PyErr_Occurred()) SWIG_fail; |
18925 | } | |
18926 | if (obj2) { | |
c32bde28 | 18927 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
18928 | if (PyErr_Occurred()) SWIG_fail; |
18929 | } | |
18930 | { | |
18931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18932 | result = (arg1)->GetLastMonthDay((wxDateTime::Month )arg2,arg3); | |
18933 | ||
18934 | wxPyEndAllowThreads(__tstate); | |
18935 | if (PyErr_Occurred()) SWIG_fail; | |
18936 | } | |
18937 | { | |
18938 | wxDateTime * resultptr; | |
18939 | resultptr = new wxDateTime((wxDateTime &) result); | |
18940 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18941 | } | |
18942 | return resultobj; | |
18943 | fail: | |
18944 | return NULL; | |
18945 | } | |
18946 | ||
18947 | ||
c32bde28 | 18948 | static PyObject *_wrap_DateTime_SetToYearDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18949 | PyObject *resultobj; |
18950 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18951 | int arg2 ; | |
18952 | wxDateTime *result; | |
18953 | PyObject * obj0 = 0 ; | |
18954 | PyObject * obj1 = 0 ; | |
18955 | char *kwnames[] = { | |
18956 | (char *) "self",(char *) "yday", NULL | |
18957 | }; | |
18958 | ||
18959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToYearDay",kwnames,&obj0,&obj1)) goto fail; | |
18960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18962 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18963 | if (PyErr_Occurred()) SWIG_fail; |
18964 | { | |
18965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18966 | { | |
18967 | wxDateTime &_result_ref = (arg1)->SetToYearDay(arg2); | |
18968 | result = (wxDateTime *) &_result_ref; | |
18969 | } | |
18970 | ||
18971 | wxPyEndAllowThreads(__tstate); | |
18972 | if (PyErr_Occurred()) SWIG_fail; | |
18973 | } | |
18974 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18975 | return resultobj; | |
18976 | fail: | |
18977 | return NULL; | |
18978 | } | |
18979 | ||
18980 | ||
c32bde28 | 18981 | static PyObject *_wrap_DateTime_GetYearDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18982 | PyObject *resultobj; |
18983 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18984 | int arg2 ; | |
18985 | wxDateTime result; | |
18986 | PyObject * obj0 = 0 ; | |
18987 | PyObject * obj1 = 0 ; | |
18988 | char *kwnames[] = { | |
18989 | (char *) "self",(char *) "yday", NULL | |
18990 | }; | |
18991 | ||
18992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetYearDay",kwnames,&obj0,&obj1)) goto fail; | |
18993 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18994 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18995 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18996 | if (PyErr_Occurred()) SWIG_fail; |
18997 | { | |
18998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18999 | result = (arg1)->GetYearDay(arg2); | |
19000 | ||
19001 | wxPyEndAllowThreads(__tstate); | |
19002 | if (PyErr_Occurred()) SWIG_fail; | |
19003 | } | |
19004 | { | |
19005 | wxDateTime * resultptr; | |
19006 | resultptr = new wxDateTime((wxDateTime &) result); | |
19007 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
19008 | } | |
19009 | return resultobj; | |
19010 | fail: | |
19011 | return NULL; | |
19012 | } | |
19013 | ||
19014 | ||
c32bde28 | 19015 | static PyObject *_wrap_DateTime_GetJulianDayNumber(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19016 | PyObject *resultobj; |
19017 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19018 | double result; | |
19019 | PyObject * obj0 = 0 ; | |
19020 | char *kwnames[] = { | |
19021 | (char *) "self", NULL | |
19022 | }; | |
19023 | ||
19024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJulianDayNumber",kwnames,&obj0)) goto fail; | |
19025 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19026 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19027 | { | |
19028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19029 | result = (double)(arg1)->GetJulianDayNumber(); | |
19030 | ||
19031 | wxPyEndAllowThreads(__tstate); | |
19032 | if (PyErr_Occurred()) SWIG_fail; | |
19033 | } | |
c32bde28 | 19034 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
19035 | return resultobj; |
19036 | fail: | |
19037 | return NULL; | |
19038 | } | |
19039 | ||
19040 | ||
c32bde28 | 19041 | static PyObject *_wrap_DateTime_GetJDN(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19042 | PyObject *resultobj; |
19043 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19044 | double result; | |
19045 | PyObject * obj0 = 0 ; | |
19046 | char *kwnames[] = { | |
19047 | (char *) "self", NULL | |
19048 | }; | |
19049 | ||
19050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJDN",kwnames,&obj0)) goto fail; | |
19051 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19052 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19053 | { | |
19054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19055 | result = (double)(arg1)->GetJDN(); | |
19056 | ||
19057 | wxPyEndAllowThreads(__tstate); | |
19058 | if (PyErr_Occurred()) SWIG_fail; | |
19059 | } | |
c32bde28 | 19060 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
19061 | return resultobj; |
19062 | fail: | |
19063 | return NULL; | |
19064 | } | |
19065 | ||
19066 | ||
c32bde28 | 19067 | static PyObject *_wrap_DateTime_GetModifiedJulianDayNumber(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19068 | PyObject *resultobj; |
19069 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19070 | double result; | |
19071 | PyObject * obj0 = 0 ; | |
19072 | char *kwnames[] = { | |
19073 | (char *) "self", NULL | |
19074 | }; | |
19075 | ||
19076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetModifiedJulianDayNumber",kwnames,&obj0)) goto fail; | |
19077 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19078 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19079 | { | |
19080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19081 | result = (double)((wxDateTime const *)arg1)->GetModifiedJulianDayNumber(); | |
19082 | ||
19083 | wxPyEndAllowThreads(__tstate); | |
19084 | if (PyErr_Occurred()) SWIG_fail; | |
19085 | } | |
c32bde28 | 19086 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
19087 | return resultobj; |
19088 | fail: | |
19089 | return NULL; | |
19090 | } | |
19091 | ||
19092 | ||
c32bde28 | 19093 | static PyObject *_wrap_DateTime_GetMJD(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19094 | PyObject *resultobj; |
19095 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19096 | double result; | |
19097 | PyObject * obj0 = 0 ; | |
19098 | char *kwnames[] = { | |
19099 | (char *) "self", NULL | |
19100 | }; | |
19101 | ||
19102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetMJD",kwnames,&obj0)) goto fail; | |
19103 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19104 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19105 | { | |
19106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19107 | result = (double)(arg1)->GetMJD(); | |
19108 | ||
19109 | wxPyEndAllowThreads(__tstate); | |
19110 | if (PyErr_Occurred()) SWIG_fail; | |
19111 | } | |
c32bde28 | 19112 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
19113 | return resultobj; |
19114 | fail: | |
19115 | return NULL; | |
19116 | } | |
19117 | ||
19118 | ||
c32bde28 | 19119 | static PyObject *_wrap_DateTime_GetRataDie(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19120 | PyObject *resultobj; |
19121 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19122 | double result; | |
19123 | PyObject * obj0 = 0 ; | |
19124 | char *kwnames[] = { | |
19125 | (char *) "self", NULL | |
19126 | }; | |
19127 | ||
19128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetRataDie",kwnames,&obj0)) goto fail; | |
19129 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19130 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19131 | { | |
19132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19133 | result = (double)(arg1)->GetRataDie(); | |
19134 | ||
19135 | wxPyEndAllowThreads(__tstate); | |
19136 | if (PyErr_Occurred()) SWIG_fail; | |
19137 | } | |
c32bde28 | 19138 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
19139 | return resultobj; |
19140 | fail: | |
19141 | return NULL; | |
19142 | } | |
19143 | ||
19144 | ||
c32bde28 | 19145 | static PyObject *_wrap_DateTime_ToTimezone(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19146 | PyObject *resultobj; |
19147 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19148 | wxDateTime::TimeZone *arg2 = 0 ; | |
ae8162c8 | 19149 | bool arg3 = (bool) false ; |
d55e5bfc | 19150 | wxDateTime result; |
ae8162c8 | 19151 | bool temp2 = false ; |
d55e5bfc RD |
19152 | PyObject * obj0 = 0 ; |
19153 | PyObject * obj1 = 0 ; | |
19154 | PyObject * obj2 = 0 ; | |
19155 | char *kwnames[] = { | |
19156 | (char *) "self",(char *) "tz",(char *) "noDST", NULL | |
19157 | }; | |
19158 | ||
19159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_ToTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19160 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19161 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19162 | { | |
19163 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
ae8162c8 | 19164 | temp2 = true; |
d55e5bfc RD |
19165 | } |
19166 | if (obj2) { | |
c32bde28 | 19167 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
19168 | if (PyErr_Occurred()) SWIG_fail; |
19169 | } | |
19170 | { | |
19171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19172 | result = (arg1)->ToTimezone((wxDateTime::TimeZone const &)*arg2,arg3); | |
19173 | ||
19174 | wxPyEndAllowThreads(__tstate); | |
19175 | if (PyErr_Occurred()) SWIG_fail; | |
19176 | } | |
19177 | { | |
19178 | wxDateTime * resultptr; | |
19179 | resultptr = new wxDateTime((wxDateTime &) result); | |
19180 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
19181 | } | |
19182 | { | |
19183 | if (temp2) delete arg2; | |
19184 | } | |
19185 | return resultobj; | |
19186 | fail: | |
19187 | { | |
19188 | if (temp2) delete arg2; | |
19189 | } | |
19190 | return NULL; | |
19191 | } | |
19192 | ||
19193 | ||
c32bde28 | 19194 | static PyObject *_wrap_DateTime_MakeTimezone(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19195 | PyObject *resultobj; |
19196 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19197 | wxDateTime::TimeZone *arg2 = 0 ; | |
ae8162c8 | 19198 | bool arg3 = (bool) false ; |
d55e5bfc | 19199 | wxDateTime *result; |
ae8162c8 | 19200 | bool temp2 = false ; |
d55e5bfc RD |
19201 | PyObject * obj0 = 0 ; |
19202 | PyObject * obj1 = 0 ; | |
19203 | PyObject * obj2 = 0 ; | |
19204 | char *kwnames[] = { | |
19205 | (char *) "self",(char *) "tz",(char *) "noDST", NULL | |
19206 | }; | |
19207 | ||
19208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19209 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19210 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19211 | { | |
19212 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
ae8162c8 | 19213 | temp2 = true; |
d55e5bfc RD |
19214 | } |
19215 | if (obj2) { | |
c32bde28 | 19216 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
19217 | if (PyErr_Occurred()) SWIG_fail; |
19218 | } | |
19219 | { | |
19220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19221 | { | |
19222 | wxDateTime &_result_ref = (arg1)->MakeTimezone((wxDateTime::TimeZone const &)*arg2,arg3); | |
19223 | result = (wxDateTime *) &_result_ref; | |
19224 | } | |
19225 | ||
19226 | wxPyEndAllowThreads(__tstate); | |
19227 | if (PyErr_Occurred()) SWIG_fail; | |
19228 | } | |
19229 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
19230 | { | |
19231 | if (temp2) delete arg2; | |
19232 | } | |
19233 | return resultobj; | |
19234 | fail: | |
19235 | { | |
19236 | if (temp2) delete arg2; | |
19237 | } | |
19238 | return NULL; | |
19239 | } | |
19240 | ||
19241 | ||
c32bde28 | 19242 | static PyObject *_wrap_DateTime_ToGMT(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19243 | PyObject *resultobj; |
19244 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
ae8162c8 | 19245 | bool arg2 = (bool) false ; |
d55e5bfc RD |
19246 | wxDateTime result; |
19247 | PyObject * obj0 = 0 ; | |
19248 | PyObject * obj1 = 0 ; | |
19249 | char *kwnames[] = { | |
19250 | (char *) "self",(char *) "noDST", NULL | |
19251 | }; | |
19252 | ||
19253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToGMT",kwnames,&obj0,&obj1)) goto fail; | |
19254 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19256 | if (obj1) { | |
c32bde28 | 19257 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
19258 | if (PyErr_Occurred()) SWIG_fail; |
19259 | } | |
19260 | { | |
19261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19262 | result = (arg1)->ToGMT(arg2); | |
19263 | ||
19264 | wxPyEndAllowThreads(__tstate); | |
19265 | if (PyErr_Occurred()) SWIG_fail; | |
19266 | } | |
19267 | { | |
19268 | wxDateTime * resultptr; | |
19269 | resultptr = new wxDateTime((wxDateTime &) result); | |
19270 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
19271 | } | |
19272 | return resultobj; | |
19273 | fail: | |
19274 | return NULL; | |
19275 | } | |
19276 | ||
19277 | ||
c32bde28 | 19278 | static PyObject *_wrap_DateTime_MakeGMT(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19279 | PyObject *resultobj; |
19280 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
ae8162c8 | 19281 | bool arg2 = (bool) false ; |
d55e5bfc RD |
19282 | wxDateTime *result; |
19283 | PyObject * obj0 = 0 ; | |
19284 | PyObject * obj1 = 0 ; | |
19285 | char *kwnames[] = { | |
19286 | (char *) "self",(char *) "noDST", NULL | |
19287 | }; | |
19288 | ||
19289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeGMT",kwnames,&obj0,&obj1)) goto fail; | |
19290 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19292 | if (obj1) { | |
c32bde28 | 19293 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
19294 | if (PyErr_Occurred()) SWIG_fail; |
19295 | } | |
19296 | { | |
19297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19298 | { | |
19299 | wxDateTime &_result_ref = (arg1)->MakeGMT(arg2); | |
19300 | result = (wxDateTime *) &_result_ref; | |
19301 | } | |
19302 | ||
19303 | wxPyEndAllowThreads(__tstate); | |
19304 | if (PyErr_Occurred()) SWIG_fail; | |
19305 | } | |
19306 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
19307 | return resultobj; | |
19308 | fail: | |
19309 | return NULL; | |
19310 | } | |
19311 | ||
19312 | ||
c32bde28 | 19313 | static PyObject *_wrap_DateTime_IsDST(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19314 | PyObject *resultobj; |
19315 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19316 | int arg2 = (int) wxDateTime::Country_Default ; | |
19317 | int result; | |
19318 | PyObject * obj0 = 0 ; | |
19319 | PyObject * obj1 = 0 ; | |
19320 | char *kwnames[] = { | |
19321 | (char *) "self",(char *) "country", NULL | |
19322 | }; | |
19323 | ||
19324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsDST",kwnames,&obj0,&obj1)) goto fail; | |
19325 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19326 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19327 | if (obj1) { | |
c32bde28 | 19328 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
19329 | if (PyErr_Occurred()) SWIG_fail; |
19330 | } | |
19331 | { | |
19332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19333 | result = (int)(arg1)->IsDST((wxDateTime::Country )arg2); | |
19334 | ||
19335 | wxPyEndAllowThreads(__tstate); | |
19336 | if (PyErr_Occurred()) SWIG_fail; | |
19337 | } | |
c32bde28 | 19338 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
19339 | return resultobj; |
19340 | fail: | |
19341 | return NULL; | |
19342 | } | |
19343 | ||
19344 | ||
c32bde28 | 19345 | static PyObject *_wrap_DateTime_IsValid(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19346 | PyObject *resultobj; |
19347 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19348 | bool result; | |
19349 | PyObject * obj0 = 0 ; | |
19350 | char *kwnames[] = { | |
19351 | (char *) "self", NULL | |
19352 | }; | |
19353 | ||
19354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_IsValid",kwnames,&obj0)) goto fail; | |
19355 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19356 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19357 | { | |
19358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19359 | result = (bool)((wxDateTime const *)arg1)->IsValid(); | |
19360 | ||
19361 | wxPyEndAllowThreads(__tstate); | |
19362 | if (PyErr_Occurred()) SWIG_fail; | |
19363 | } | |
19364 | { | |
19365 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19366 | } | |
19367 | return resultobj; | |
19368 | fail: | |
19369 | return NULL; | |
19370 | } | |
19371 | ||
19372 | ||
c32bde28 | 19373 | static PyObject *_wrap_DateTime_GetTicks(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19374 | PyObject *resultobj; |
19375 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19376 | time_t result; | |
19377 | PyObject * obj0 = 0 ; | |
19378 | char *kwnames[] = { | |
19379 | (char *) "self", NULL | |
19380 | }; | |
19381 | ||
19382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetTicks",kwnames,&obj0)) goto fail; | |
19383 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19384 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19385 | { | |
19386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19387 | result = (time_t)((wxDateTime const *)arg1)->GetTicks(); | |
19388 | ||
19389 | wxPyEndAllowThreads(__tstate); | |
19390 | if (PyErr_Occurred()) SWIG_fail; | |
19391 | } | |
c32bde28 | 19392 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)result); |
d55e5bfc RD |
19393 | return resultobj; |
19394 | fail: | |
19395 | return NULL; | |
19396 | } | |
19397 | ||
19398 | ||
c32bde28 | 19399 | static PyObject *_wrap_DateTime_GetYear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19400 | PyObject *resultobj; |
19401 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19402 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19403 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19404 | int result; | |
ae8162c8 | 19405 | bool temp2 = false ; |
d55e5bfc RD |
19406 | PyObject * obj0 = 0 ; |
19407 | PyObject * obj1 = 0 ; | |
19408 | char *kwnames[] = { | |
19409 | (char *) "self",(char *) "tz", NULL | |
19410 | }; | |
19411 | ||
19412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetYear",kwnames,&obj0,&obj1)) goto fail; | |
19413 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19415 | if (obj1) { | |
19416 | { | |
19417 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
ae8162c8 | 19418 | temp2 = true; |
d55e5bfc RD |
19419 | } |
19420 | } | |
19421 | { | |
19422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19423 | result = (int)((wxDateTime const *)arg1)->GetYear((wxDateTime::TimeZone const &)*arg2); | |
19424 | ||
19425 | wxPyEndAllowThreads(__tstate); | |
19426 | if (PyErr_Occurred()) SWIG_fail; | |
19427 | } | |
c32bde28 | 19428 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
19429 | { |
19430 | if (temp2) delete arg2; | |
19431 | } | |
19432 | return resultobj; | |
19433 | fail: | |
19434 | { | |
19435 | if (temp2) delete arg2; | |
19436 | } | |
19437 | return NULL; | |
19438 | } | |
19439 | ||
19440 | ||
c32bde28 | 19441 | static PyObject *_wrap_DateTime_GetMonth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19442 | PyObject *resultobj; |
19443 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19444 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19445 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19446 | int result; | |
ae8162c8 | 19447 | bool temp2 = false ; |
d55e5bfc RD |
19448 | PyObject * obj0 = 0 ; |
19449 | PyObject * obj1 = 0 ; | |
19450 | char *kwnames[] = { | |
19451 | (char *) "self",(char *) "tz", NULL | |
19452 | }; | |
19453 | ||
19454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonth",kwnames,&obj0,&obj1)) goto fail; | |
19455 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19456 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19457 | if (obj1) { | |
19458 | { | |
19459 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
ae8162c8 | 19460 | temp2 = true; |
d55e5bfc RD |
19461 | } |
19462 | } | |
19463 | { | |
19464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19465 | result = (int)((wxDateTime const *)arg1)->GetMonth((wxDateTime::TimeZone const &)*arg2); | |
19466 | ||
19467 | wxPyEndAllowThreads(__tstate); | |
19468 | if (PyErr_Occurred()) SWIG_fail; | |
19469 | } | |
c32bde28 | 19470 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
19471 | { |
19472 | if (temp2) delete arg2; | |
19473 | } | |
19474 | return resultobj; | |
19475 | fail: | |
19476 | { | |
19477 | if (temp2) delete arg2; | |
19478 | } | |
19479 | return NULL; | |
19480 | } | |
19481 | ||
19482 | ||
c32bde28 | 19483 | static PyObject *_wrap_DateTime_GetDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19484 | PyObject *resultobj; |
19485 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19486 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19487 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19488 | int result; | |
ae8162c8 | 19489 | bool temp2 = false ; |
d55e5bfc RD |
19490 | PyObject * obj0 = 0 ; |
19491 | PyObject * obj1 = 0 ; | |
19492 | char *kwnames[] = { | |
19493 | (char *) "self",(char *) "tz", NULL | |
19494 | }; | |
19495 | ||
19496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDay",kwnames,&obj0,&obj1)) goto fail; | |
19497 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19498 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19499 | if (obj1) { | |
19500 | { | |
19501 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
ae8162c8 | 19502 | temp2 = true; |
d55e5bfc RD |
19503 | } |
19504 | } | |
19505 | { | |
19506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19507 | result = (int)((wxDateTime const *)arg1)->GetDay((wxDateTime::TimeZone const &)*arg2); | |
19508 | ||
19509 | wxPyEndAllowThreads(__tstate); | |
19510 | if (PyErr_Occurred()) SWIG_fail; | |
19511 | } | |
c32bde28 | 19512 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
19513 | { |
19514 | if (temp2) delete arg2; | |
19515 | } | |
19516 | return resultobj; | |
19517 | fail: | |
19518 | { | |
19519 | if (temp2) delete arg2; | |
19520 | } | |
19521 | return NULL; | |
19522 | } | |
19523 | ||
19524 | ||
c32bde28 | 19525 | static PyObject *_wrap_DateTime_GetWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19526 | PyObject *resultobj; |
19527 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19528 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19529 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19530 | int result; | |
ae8162c8 | 19531 | bool temp2 = false ; |
d55e5bfc RD |
19532 | PyObject * obj0 = 0 ; |
19533 | PyObject * obj1 = 0 ; | |
19534 | char *kwnames[] = { | |
19535 | (char *) "self",(char *) "tz", NULL | |
19536 | }; | |
19537 | ||
19538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
19539 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19540 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19541 | if (obj1) { | |
19542 | { | |
19543 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
ae8162c8 | 19544 | temp2 = true; |
d55e5bfc RD |
19545 | } |
19546 | } | |
19547 | { | |
19548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19549 | result = (int)((wxDateTime const *)arg1)->GetWeekDay((wxDateTime::TimeZone const &)*arg2); | |
19550 | ||
19551 | wxPyEndAllowThreads(__tstate); | |
19552 | if (PyErr_Occurred()) SWIG_fail; | |
19553 | } | |
c32bde28 | 19554 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
19555 | { |
19556 | if (temp2) delete arg2; | |
19557 | } | |
19558 | return resultobj; | |
19559 | fail: | |
19560 | { | |
19561 | if (temp2) delete arg2; | |
19562 | } | |
19563 | return NULL; | |
19564 | } | |
19565 | ||
19566 | ||
c32bde28 | 19567 | static PyObject *_wrap_DateTime_GetHour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19568 | PyObject *resultobj; |
19569 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19570 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19571 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19572 | int result; | |
ae8162c8 | 19573 | bool temp2 = false ; |
d55e5bfc RD |
19574 | PyObject * obj0 = 0 ; |
19575 | PyObject * obj1 = 0 ; | |
19576 | char *kwnames[] = { | |
19577 | (char *) "self",(char *) "tz", NULL | |
19578 | }; | |
19579 | ||
19580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetHour",kwnames,&obj0,&obj1)) goto fail; | |
19581 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19583 | if (obj1) { | |
19584 | { | |
19585 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
ae8162c8 | 19586 | temp2 = true; |
d55e5bfc RD |
19587 | } |
19588 | } | |
19589 | { | |
19590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19591 | result = (int)((wxDateTime const *)arg1)->GetHour((wxDateTime::TimeZone const &)*arg2); | |
19592 | ||
19593 | wxPyEndAllowThreads(__tstate); | |
19594 | if (PyErr_Occurred()) SWIG_fail; | |
19595 | } | |
c32bde28 | 19596 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
19597 | { |
19598 | if (temp2) delete arg2; | |
19599 | } | |
19600 | return resultobj; | |
19601 | fail: | |
19602 | { | |
19603 | if (temp2) delete arg2; | |
19604 | } | |
19605 | return NULL; | |
19606 | } | |
19607 | ||
19608 | ||
c32bde28 | 19609 | static PyObject *_wrap_DateTime_GetMinute(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19610 | PyObject *resultobj; |
19611 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19612 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19613 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19614 | int result; | |
ae8162c8 | 19615 | bool temp2 = false ; |
d55e5bfc RD |
19616 | PyObject * obj0 = 0 ; |
19617 | PyObject * obj1 = 0 ; | |
19618 | char *kwnames[] = { | |
19619 | (char *) "self",(char *) "tz", NULL | |
19620 | }; | |
19621 | ||
19622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMinute",kwnames,&obj0,&obj1)) goto fail; | |
19623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19625 | if (obj1) { | |
19626 | { | |
19627 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
ae8162c8 | 19628 | temp2 = true; |
d55e5bfc RD |
19629 | } |
19630 | } | |
19631 | { | |
19632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19633 | result = (int)((wxDateTime const *)arg1)->GetMinute((wxDateTime::TimeZone const &)*arg2); | |
19634 | ||
19635 | wxPyEndAllowThreads(__tstate); | |
19636 | if (PyErr_Occurred()) SWIG_fail; | |
19637 | } | |
c32bde28 | 19638 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
19639 | { |
19640 | if (temp2) delete arg2; | |
19641 | } | |
19642 | return resultobj; | |
19643 | fail: | |
19644 | { | |
19645 | if (temp2) delete arg2; | |
19646 | } | |
19647 | return NULL; | |
19648 | } | |
19649 | ||
19650 | ||
c32bde28 | 19651 | static PyObject *_wrap_DateTime_GetSecond(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19652 | PyObject *resultobj; |
19653 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19654 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19655 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19656 | int result; | |
ae8162c8 | 19657 | bool temp2 = false ; |
d55e5bfc RD |
19658 | PyObject * obj0 = 0 ; |
19659 | PyObject * obj1 = 0 ; | |
19660 | char *kwnames[] = { | |
19661 | (char *) "self",(char *) "tz", NULL | |
19662 | }; | |
19663 | ||
19664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetSecond",kwnames,&obj0,&obj1)) goto fail; | |
19665 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19666 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19667 | if (obj1) { | |
19668 | { | |
19669 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
ae8162c8 | 19670 | temp2 = true; |
d55e5bfc RD |
19671 | } |
19672 | } | |
19673 | { | |
19674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19675 | result = (int)((wxDateTime const *)arg1)->GetSecond((wxDateTime::TimeZone const &)*arg2); | |
19676 | ||
19677 | wxPyEndAllowThreads(__tstate); | |
19678 | if (PyErr_Occurred()) SWIG_fail; | |
19679 | } | |
c32bde28 | 19680 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
19681 | { |
19682 | if (temp2) delete arg2; | |
19683 | } | |
19684 | return resultobj; | |
19685 | fail: | |
19686 | { | |
19687 | if (temp2) delete arg2; | |
19688 | } | |
19689 | return NULL; | |
19690 | } | |
19691 | ||
19692 | ||
c32bde28 | 19693 | static PyObject *_wrap_DateTime_GetMillisecond(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19694 | PyObject *resultobj; |
19695 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19696 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19697 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19698 | int result; | |
ae8162c8 | 19699 | bool temp2 = false ; |
d55e5bfc RD |
19700 | PyObject * obj0 = 0 ; |
19701 | PyObject * obj1 = 0 ; | |
19702 | char *kwnames[] = { | |
19703 | (char *) "self",(char *) "tz", NULL | |
19704 | }; | |
19705 | ||
19706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMillisecond",kwnames,&obj0,&obj1)) goto fail; | |
19707 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19708 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19709 | if (obj1) { | |
19710 | { | |
19711 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
ae8162c8 | 19712 | temp2 = true; |
d55e5bfc RD |
19713 | } |
19714 | } | |
19715 | { | |
19716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19717 | result = (int)((wxDateTime const *)arg1)->GetMillisecond((wxDateTime::TimeZone const &)*arg2); | |
19718 | ||
19719 | wxPyEndAllowThreads(__tstate); | |
19720 | if (PyErr_Occurred()) SWIG_fail; | |
19721 | } | |
c32bde28 | 19722 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
19723 | { |
19724 | if (temp2) delete arg2; | |
19725 | } | |
19726 | return resultobj; | |
19727 | fail: | |
19728 | { | |
19729 | if (temp2) delete arg2; | |
19730 | } | |
19731 | return NULL; | |
19732 | } | |
19733 | ||
19734 | ||
c32bde28 | 19735 | static PyObject *_wrap_DateTime_GetDayOfYear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19736 | PyObject *resultobj; |
19737 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19738 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19739 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19740 | int result; | |
ae8162c8 | 19741 | bool temp2 = false ; |
d55e5bfc RD |
19742 | PyObject * obj0 = 0 ; |
19743 | PyObject * obj1 = 0 ; | |
19744 | char *kwnames[] = { | |
19745 | (char *) "self",(char *) "tz", NULL | |
19746 | }; | |
19747 | ||
19748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDayOfYear",kwnames,&obj0,&obj1)) goto fail; | |
19749 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19750 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19751 | if (obj1) { | |
19752 | { | |
19753 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
ae8162c8 | 19754 | temp2 = true; |
d55e5bfc RD |
19755 | } |
19756 | } | |
19757 | { | |
19758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19759 | result = (int)((wxDateTime const *)arg1)->GetDayOfYear((wxDateTime::TimeZone const &)*arg2); | |
19760 | ||
19761 | wxPyEndAllowThreads(__tstate); | |
19762 | if (PyErr_Occurred()) SWIG_fail; | |
19763 | } | |
c32bde28 | 19764 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
19765 | { |
19766 | if (temp2) delete arg2; | |
19767 | } | |
19768 | return resultobj; | |
19769 | fail: | |
19770 | { | |
19771 | if (temp2) delete arg2; | |
19772 | } | |
19773 | return NULL; | |
19774 | } | |
19775 | ||
19776 | ||
c32bde28 | 19777 | static PyObject *_wrap_DateTime_GetWeekOfYear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19778 | PyObject *resultobj; |
19779 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19780 | int arg2 = (int) wxDateTime::Monday_First ; | |
19781 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
19782 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
19783 | int result; | |
ae8162c8 | 19784 | bool temp3 = false ; |
d55e5bfc RD |
19785 | PyObject * obj0 = 0 ; |
19786 | PyObject * obj1 = 0 ; | |
19787 | PyObject * obj2 = 0 ; | |
19788 | char *kwnames[] = { | |
19789 | (char *) "self",(char *) "flags",(char *) "tz", NULL | |
19790 | }; | |
19791 | ||
19792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19793 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19794 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19795 | if (obj1) { | |
c32bde28 | 19796 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
19797 | if (PyErr_Occurred()) SWIG_fail; |
19798 | } | |
19799 | if (obj2) { | |
19800 | { | |
19801 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
ae8162c8 | 19802 | temp3 = true; |
d55e5bfc RD |
19803 | } |
19804 | } | |
19805 | { | |
19806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19807 | result = (int)((wxDateTime const *)arg1)->GetWeekOfYear((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3); | |
19808 | ||
19809 | wxPyEndAllowThreads(__tstate); | |
19810 | if (PyErr_Occurred()) SWIG_fail; | |
19811 | } | |
c32bde28 | 19812 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
19813 | { |
19814 | if (temp3) delete arg3; | |
19815 | } | |
19816 | return resultobj; | |
19817 | fail: | |
19818 | { | |
19819 | if (temp3) delete arg3; | |
19820 | } | |
19821 | return NULL; | |
19822 | } | |
19823 | ||
19824 | ||
c32bde28 | 19825 | static PyObject *_wrap_DateTime_GetWeekOfMonth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19826 | PyObject *resultobj; |
19827 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19828 | int arg2 = (int) wxDateTime::Monday_First ; | |
19829 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
19830 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
19831 | int result; | |
ae8162c8 | 19832 | bool temp3 = false ; |
d55e5bfc RD |
19833 | PyObject * obj0 = 0 ; |
19834 | PyObject * obj1 = 0 ; | |
19835 | PyObject * obj2 = 0 ; | |
19836 | char *kwnames[] = { | |
19837 | (char *) "self",(char *) "flags",(char *) "tz", NULL | |
19838 | }; | |
19839 | ||
19840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfMonth",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19841 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19842 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19843 | if (obj1) { | |
c32bde28 | 19844 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
19845 | if (PyErr_Occurred()) SWIG_fail; |
19846 | } | |
19847 | if (obj2) { | |
19848 | { | |
19849 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
ae8162c8 | 19850 | temp3 = true; |
d55e5bfc RD |
19851 | } |
19852 | } | |
19853 | { | |
19854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19855 | result = (int)((wxDateTime const *)arg1)->GetWeekOfMonth((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3); | |
19856 | ||
19857 | wxPyEndAllowThreads(__tstate); | |
19858 | if (PyErr_Occurred()) SWIG_fail; | |
19859 | } | |
c32bde28 | 19860 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
19861 | { |
19862 | if (temp3) delete arg3; | |
19863 | } | |
19864 | return resultobj; | |
19865 | fail: | |
19866 | { | |
19867 | if (temp3) delete arg3; | |
19868 | } | |
19869 | return NULL; | |
19870 | } | |
19871 | ||
19872 | ||
c32bde28 | 19873 | static PyObject *_wrap_DateTime_IsWorkDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19874 | PyObject *resultobj; |
19875 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19876 | int arg2 = (int) wxDateTime::Country_Default ; | |
19877 | bool result; | |
19878 | PyObject * obj0 = 0 ; | |
19879 | PyObject * obj1 = 0 ; | |
19880 | char *kwnames[] = { | |
19881 | (char *) "self",(char *) "country", NULL | |
19882 | }; | |
19883 | ||
19884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsWorkDay",kwnames,&obj0,&obj1)) goto fail; | |
19885 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19886 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19887 | if (obj1) { | |
c32bde28 | 19888 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
19889 | if (PyErr_Occurred()) SWIG_fail; |
19890 | } | |
19891 | { | |
19892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19893 | result = (bool)((wxDateTime const *)arg1)->IsWorkDay((wxDateTime::Country )arg2); | |
19894 | ||
19895 | wxPyEndAllowThreads(__tstate); | |
19896 | if (PyErr_Occurred()) SWIG_fail; | |
19897 | } | |
19898 | { | |
19899 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19900 | } | |
19901 | return resultobj; | |
19902 | fail: | |
19903 | return NULL; | |
19904 | } | |
19905 | ||
19906 | ||
c32bde28 | 19907 | static PyObject *_wrap_DateTime_IsEqualTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19908 | PyObject *resultobj; |
19909 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19910 | wxDateTime *arg2 = 0 ; | |
19911 | bool result; | |
19912 | PyObject * obj0 = 0 ; | |
19913 | PyObject * obj1 = 0 ; | |
19914 | char *kwnames[] = { | |
19915 | (char *) "self",(char *) "datetime", NULL | |
19916 | }; | |
19917 | ||
19918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEqualTo",kwnames,&obj0,&obj1)) goto fail; | |
19919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19921 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19922 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19923 | SWIG_fail; | |
19924 | if (arg2 == NULL) { | |
19925 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19926 | SWIG_fail; | |
19927 | } | |
19928 | { | |
19929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19930 | result = (bool)((wxDateTime const *)arg1)->IsEqualTo((wxDateTime const &)*arg2); | |
19931 | ||
19932 | wxPyEndAllowThreads(__tstate); | |
19933 | if (PyErr_Occurred()) SWIG_fail; | |
19934 | } | |
19935 | { | |
19936 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19937 | } | |
19938 | return resultobj; | |
19939 | fail: | |
19940 | return NULL; | |
19941 | } | |
19942 | ||
19943 | ||
c32bde28 | 19944 | static PyObject *_wrap_DateTime_IsEarlierThan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19945 | PyObject *resultobj; |
19946 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19947 | wxDateTime *arg2 = 0 ; | |
19948 | bool result; | |
19949 | PyObject * obj0 = 0 ; | |
19950 | PyObject * obj1 = 0 ; | |
19951 | char *kwnames[] = { | |
19952 | (char *) "self",(char *) "datetime", NULL | |
19953 | }; | |
19954 | ||
19955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEarlierThan",kwnames,&obj0,&obj1)) goto fail; | |
19956 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19958 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19959 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19960 | SWIG_fail; | |
19961 | if (arg2 == NULL) { | |
19962 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19963 | SWIG_fail; | |
19964 | } | |
19965 | { | |
19966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19967 | result = (bool)((wxDateTime const *)arg1)->IsEarlierThan((wxDateTime const &)*arg2); | |
19968 | ||
19969 | wxPyEndAllowThreads(__tstate); | |
19970 | if (PyErr_Occurred()) SWIG_fail; | |
19971 | } | |
19972 | { | |
19973 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19974 | } | |
19975 | return resultobj; | |
19976 | fail: | |
19977 | return NULL; | |
19978 | } | |
19979 | ||
19980 | ||
c32bde28 | 19981 | static PyObject *_wrap_DateTime_IsLaterThan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19982 | PyObject *resultobj; |
19983 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19984 | wxDateTime *arg2 = 0 ; | |
19985 | bool result; | |
19986 | PyObject * obj0 = 0 ; | |
19987 | PyObject * obj1 = 0 ; | |
19988 | char *kwnames[] = { | |
19989 | (char *) "self",(char *) "datetime", NULL | |
19990 | }; | |
19991 | ||
19992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsLaterThan",kwnames,&obj0,&obj1)) goto fail; | |
19993 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19994 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19995 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
19996 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19997 | SWIG_fail; | |
19998 | if (arg2 == NULL) { | |
19999 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20000 | SWIG_fail; | |
20001 | } | |
20002 | { | |
20003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20004 | result = (bool)((wxDateTime const *)arg1)->IsLaterThan((wxDateTime const &)*arg2); | |
20005 | ||
20006 | wxPyEndAllowThreads(__tstate); | |
20007 | if (PyErr_Occurred()) SWIG_fail; | |
20008 | } | |
20009 | { | |
20010 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20011 | } | |
20012 | return resultobj; | |
20013 | fail: | |
20014 | return NULL; | |
20015 | } | |
20016 | ||
20017 | ||
c32bde28 | 20018 | static PyObject *_wrap_DateTime_IsStrictlyBetween(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20019 | PyObject *resultobj; |
20020 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20021 | wxDateTime *arg2 = 0 ; | |
20022 | wxDateTime *arg3 = 0 ; | |
20023 | bool result; | |
20024 | PyObject * obj0 = 0 ; | |
20025 | PyObject * obj1 = 0 ; | |
20026 | PyObject * obj2 = 0 ; | |
20027 | char *kwnames[] = { | |
20028 | (char *) "self",(char *) "t1",(char *) "t2", NULL | |
20029 | }; | |
20030 | ||
20031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsStrictlyBetween",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20032 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20033 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20034 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20035 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20036 | SWIG_fail; | |
20037 | if (arg2 == NULL) { | |
20038 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20039 | SWIG_fail; | |
20040 | } | |
20041 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime, | |
20042 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20043 | SWIG_fail; | |
20044 | if (arg3 == NULL) { | |
20045 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20046 | SWIG_fail; | |
20047 | } | |
20048 | { | |
20049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20050 | result = (bool)((wxDateTime const *)arg1)->IsStrictlyBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
20051 | ||
20052 | wxPyEndAllowThreads(__tstate); | |
20053 | if (PyErr_Occurred()) SWIG_fail; | |
20054 | } | |
20055 | { | |
20056 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20057 | } | |
20058 | return resultobj; | |
20059 | fail: | |
20060 | return NULL; | |
20061 | } | |
20062 | ||
20063 | ||
c32bde28 | 20064 | static PyObject *_wrap_DateTime_IsBetween(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20065 | PyObject *resultobj; |
20066 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20067 | wxDateTime *arg2 = 0 ; | |
20068 | wxDateTime *arg3 = 0 ; | |
20069 | bool result; | |
20070 | PyObject * obj0 = 0 ; | |
20071 | PyObject * obj1 = 0 ; | |
20072 | PyObject * obj2 = 0 ; | |
20073 | char *kwnames[] = { | |
20074 | (char *) "self",(char *) "t1",(char *) "t2", NULL | |
20075 | }; | |
20076 | ||
20077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsBetween",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20078 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20079 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20080 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20081 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20082 | SWIG_fail; | |
20083 | if (arg2 == NULL) { | |
20084 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20085 | SWIG_fail; | |
20086 | } | |
20087 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime, | |
20088 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20089 | SWIG_fail; | |
20090 | if (arg3 == NULL) { | |
20091 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20092 | SWIG_fail; | |
20093 | } | |
20094 | { | |
20095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20096 | result = (bool)((wxDateTime const *)arg1)->IsBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
20097 | ||
20098 | wxPyEndAllowThreads(__tstate); | |
20099 | if (PyErr_Occurred()) SWIG_fail; | |
20100 | } | |
20101 | { | |
20102 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20103 | } | |
20104 | return resultobj; | |
20105 | fail: | |
20106 | return NULL; | |
20107 | } | |
20108 | ||
20109 | ||
c32bde28 | 20110 | static PyObject *_wrap_DateTime_IsSameDate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20111 | PyObject *resultobj; |
20112 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20113 | wxDateTime *arg2 = 0 ; | |
20114 | bool result; | |
20115 | PyObject * obj0 = 0 ; | |
20116 | PyObject * obj1 = 0 ; | |
20117 | char *kwnames[] = { | |
20118 | (char *) "self",(char *) "dt", NULL | |
20119 | }; | |
20120 | ||
20121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameDate",kwnames,&obj0,&obj1)) goto fail; | |
20122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20124 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20125 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20126 | SWIG_fail; | |
20127 | if (arg2 == NULL) { | |
20128 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20129 | SWIG_fail; | |
20130 | } | |
20131 | { | |
20132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20133 | result = (bool)((wxDateTime const *)arg1)->IsSameDate((wxDateTime const &)*arg2); | |
20134 | ||
20135 | wxPyEndAllowThreads(__tstate); | |
20136 | if (PyErr_Occurred()) SWIG_fail; | |
20137 | } | |
20138 | { | |
20139 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20140 | } | |
20141 | return resultobj; | |
20142 | fail: | |
20143 | return NULL; | |
20144 | } | |
20145 | ||
20146 | ||
c32bde28 | 20147 | static PyObject *_wrap_DateTime_IsSameTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20148 | PyObject *resultobj; |
20149 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20150 | wxDateTime *arg2 = 0 ; | |
20151 | bool result; | |
20152 | PyObject * obj0 = 0 ; | |
20153 | PyObject * obj1 = 0 ; | |
20154 | char *kwnames[] = { | |
20155 | (char *) "self",(char *) "dt", NULL | |
20156 | }; | |
20157 | ||
20158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameTime",kwnames,&obj0,&obj1)) goto fail; | |
20159 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20160 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20161 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20162 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20163 | SWIG_fail; | |
20164 | if (arg2 == NULL) { | |
20165 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20166 | SWIG_fail; | |
20167 | } | |
20168 | { | |
20169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20170 | result = (bool)((wxDateTime const *)arg1)->IsSameTime((wxDateTime const &)*arg2); | |
20171 | ||
20172 | wxPyEndAllowThreads(__tstate); | |
20173 | if (PyErr_Occurred()) SWIG_fail; | |
20174 | } | |
20175 | { | |
20176 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20177 | } | |
20178 | return resultobj; | |
20179 | fail: | |
20180 | return NULL; | |
20181 | } | |
20182 | ||
20183 | ||
c32bde28 | 20184 | static PyObject *_wrap_DateTime_IsEqualUpTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20185 | PyObject *resultobj; |
20186 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20187 | wxDateTime *arg2 = 0 ; | |
20188 | wxTimeSpan *arg3 = 0 ; | |
20189 | bool result; | |
20190 | PyObject * obj0 = 0 ; | |
20191 | PyObject * obj1 = 0 ; | |
20192 | PyObject * obj2 = 0 ; | |
20193 | char *kwnames[] = { | |
20194 | (char *) "self",(char *) "dt",(char *) "ts", NULL | |
20195 | }; | |
20196 | ||
20197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsEqualUpTo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20198 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20199 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20200 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20201 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20202 | SWIG_fail; | |
20203 | if (arg2 == NULL) { | |
20204 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20205 | SWIG_fail; | |
20206 | } | |
20207 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTimeSpan, | |
20208 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20209 | SWIG_fail; | |
20210 | if (arg3 == NULL) { | |
20211 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20212 | SWIG_fail; | |
20213 | } | |
20214 | { | |
20215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20216 | result = (bool)((wxDateTime const *)arg1)->IsEqualUpTo((wxDateTime const &)*arg2,(wxTimeSpan const &)*arg3); | |
20217 | ||
20218 | wxPyEndAllowThreads(__tstate); | |
20219 | if (PyErr_Occurred()) SWIG_fail; | |
20220 | } | |
20221 | { | |
20222 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20223 | } | |
20224 | return resultobj; | |
20225 | fail: | |
20226 | return NULL; | |
20227 | } | |
20228 | ||
20229 | ||
c32bde28 | 20230 | static PyObject *_wrap_DateTime_AddTS(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20231 | PyObject *resultobj; |
20232 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20233 | wxTimeSpan *arg2 = 0 ; | |
20234 | wxDateTime *result; | |
20235 | PyObject * obj0 = 0 ; | |
20236 | PyObject * obj1 = 0 ; | |
20237 | char *kwnames[] = { | |
20238 | (char *) "self",(char *) "diff", NULL | |
20239 | }; | |
20240 | ||
20241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddTS",kwnames,&obj0,&obj1)) goto fail; | |
20242 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20243 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20244 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
20245 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20246 | SWIG_fail; | |
20247 | if (arg2 == NULL) { | |
20248 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20249 | SWIG_fail; | |
20250 | } | |
20251 | { | |
20252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20253 | { | |
20254 | wxDateTime &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2); | |
20255 | result = (wxDateTime *) &_result_ref; | |
20256 | } | |
20257 | ||
20258 | wxPyEndAllowThreads(__tstate); | |
20259 | if (PyErr_Occurred()) SWIG_fail; | |
20260 | } | |
20261 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
20262 | return resultobj; | |
20263 | fail: | |
20264 | return NULL; | |
20265 | } | |
20266 | ||
20267 | ||
c32bde28 | 20268 | static PyObject *_wrap_DateTime_AddDS(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20269 | PyObject *resultobj; |
20270 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20271 | wxDateSpan *arg2 = 0 ; | |
20272 | wxDateTime *result; | |
20273 | PyObject * obj0 = 0 ; | |
20274 | PyObject * obj1 = 0 ; | |
20275 | char *kwnames[] = { | |
20276 | (char *) "self",(char *) "diff", NULL | |
20277 | }; | |
20278 | ||
20279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddDS",kwnames,&obj0,&obj1)) goto fail; | |
20280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20282 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
20283 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20284 | SWIG_fail; | |
20285 | if (arg2 == NULL) { | |
20286 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20287 | SWIG_fail; | |
20288 | } | |
20289 | { | |
20290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20291 | { | |
20292 | wxDateTime &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2); | |
20293 | result = (wxDateTime *) &_result_ref; | |
20294 | } | |
20295 | ||
20296 | wxPyEndAllowThreads(__tstate); | |
20297 | if (PyErr_Occurred()) SWIG_fail; | |
20298 | } | |
20299 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
20300 | return resultobj; | |
20301 | fail: | |
20302 | return NULL; | |
20303 | } | |
20304 | ||
20305 | ||
c32bde28 | 20306 | static PyObject *_wrap_DateTime_SubtractTS(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20307 | PyObject *resultobj; |
20308 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20309 | wxTimeSpan *arg2 = 0 ; | |
20310 | wxDateTime *result; | |
20311 | PyObject * obj0 = 0 ; | |
20312 | PyObject * obj1 = 0 ; | |
20313 | char *kwnames[] = { | |
20314 | (char *) "self",(char *) "diff", NULL | |
20315 | }; | |
20316 | ||
20317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractTS",kwnames,&obj0,&obj1)) goto fail; | |
20318 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20319 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20320 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
20321 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20322 | SWIG_fail; | |
20323 | if (arg2 == NULL) { | |
20324 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20325 | SWIG_fail; | |
20326 | } | |
20327 | { | |
20328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20329 | { | |
20330 | wxDateTime &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2); | |
20331 | result = (wxDateTime *) &_result_ref; | |
20332 | } | |
20333 | ||
20334 | wxPyEndAllowThreads(__tstate); | |
20335 | if (PyErr_Occurred()) SWIG_fail; | |
20336 | } | |
20337 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
20338 | return resultobj; | |
20339 | fail: | |
20340 | return NULL; | |
20341 | } | |
20342 | ||
20343 | ||
c32bde28 | 20344 | static PyObject *_wrap_DateTime_SubtractDS(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20345 | PyObject *resultobj; |
20346 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20347 | wxDateSpan *arg2 = 0 ; | |
20348 | wxDateTime *result; | |
20349 | PyObject * obj0 = 0 ; | |
20350 | PyObject * obj1 = 0 ; | |
20351 | char *kwnames[] = { | |
20352 | (char *) "self",(char *) "diff", NULL | |
20353 | }; | |
20354 | ||
20355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractDS",kwnames,&obj0,&obj1)) goto fail; | |
20356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20358 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
20359 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20360 | SWIG_fail; | |
20361 | if (arg2 == NULL) { | |
20362 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20363 | SWIG_fail; | |
20364 | } | |
20365 | { | |
20366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20367 | { | |
20368 | wxDateTime &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2); | |
20369 | result = (wxDateTime *) &_result_ref; | |
20370 | } | |
20371 | ||
20372 | wxPyEndAllowThreads(__tstate); | |
20373 | if (PyErr_Occurred()) SWIG_fail; | |
20374 | } | |
20375 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
20376 | return resultobj; | |
20377 | fail: | |
20378 | return NULL; | |
20379 | } | |
20380 | ||
20381 | ||
c32bde28 | 20382 | static PyObject *_wrap_DateTime_Subtract(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20383 | PyObject *resultobj; |
20384 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20385 | wxDateTime *arg2 = 0 ; | |
20386 | wxTimeSpan result; | |
20387 | PyObject * obj0 = 0 ; | |
20388 | PyObject * obj1 = 0 ; | |
20389 | char *kwnames[] = { | |
20390 | (char *) "self",(char *) "dt", NULL | |
20391 | }; | |
20392 | ||
20393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
20394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20396 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20397 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20398 | SWIG_fail; | |
20399 | if (arg2 == NULL) { | |
20400 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20401 | SWIG_fail; | |
20402 | } | |
20403 | { | |
20404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20405 | result = ((wxDateTime const *)arg1)->Subtract((wxDateTime const &)*arg2); | |
20406 | ||
20407 | wxPyEndAllowThreads(__tstate); | |
20408 | if (PyErr_Occurred()) SWIG_fail; | |
20409 | } | |
20410 | { | |
20411 | wxTimeSpan * resultptr; | |
20412 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
20413 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
20414 | } | |
20415 | return resultobj; | |
20416 | fail: | |
20417 | return NULL; | |
20418 | } | |
20419 | ||
20420 | ||
c32bde28 | 20421 | static PyObject *_wrap_DateTime___iadd____SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
20422 | PyObject *resultobj; |
20423 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20424 | wxTimeSpan *arg2 = 0 ; | |
20425 | wxDateTime *result; | |
20426 | PyObject * obj0 = 0 ; | |
20427 | PyObject * obj1 = 0 ; | |
20428 | ||
20429 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail; | |
20430 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
c32bde28 | 20431 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
20432 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, |
20433 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20434 | SWIG_fail; | |
20435 | if (arg2 == NULL) { | |
20436 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20437 | SWIG_fail; | |
20438 | } | |
20439 | { | |
20440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20441 | { | |
20442 | wxDateTime &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2); | |
20443 | result = (wxDateTime *) &_result_ref; | |
20444 | } | |
20445 | ||
20446 | wxPyEndAllowThreads(__tstate); | |
20447 | if (PyErr_Occurred()) SWIG_fail; | |
20448 | } | |
c32bde28 | 20449 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d55e5bfc RD |
20450 | return resultobj; |
20451 | fail: | |
20452 | return NULL; | |
20453 | } | |
20454 | ||
20455 | ||
c32bde28 | 20456 | static PyObject *_wrap_DateTime___iadd____SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
20457 | PyObject *resultobj; |
20458 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20459 | wxDateSpan *arg2 = 0 ; | |
20460 | wxDateTime *result; | |
20461 | PyObject * obj0 = 0 ; | |
20462 | PyObject * obj1 = 0 ; | |
20463 | ||
20464 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail; | |
20465 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
c32bde28 | 20466 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
20467 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, |
20468 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20469 | SWIG_fail; | |
20470 | if (arg2 == NULL) { | |
20471 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20472 | SWIG_fail; | |
20473 | } | |
20474 | { | |
20475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20476 | { | |
20477 | wxDateTime &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2); | |
20478 | result = (wxDateTime *) &_result_ref; | |
20479 | } | |
20480 | ||
20481 | wxPyEndAllowThreads(__tstate); | |
20482 | if (PyErr_Occurred()) SWIG_fail; | |
20483 | } | |
c32bde28 | 20484 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d55e5bfc RD |
20485 | return resultobj; |
20486 | fail: | |
20487 | return NULL; | |
20488 | } | |
20489 | ||
20490 | ||
20491 | static PyObject *_wrap_DateTime___iadd__(PyObject *self, PyObject *args) { | |
20492 | int argc; | |
20493 | PyObject *argv[3]; | |
20494 | int ii; | |
20495 | ||
20496 | argc = PyObject_Length(args); | |
20497 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
20498 | argv[ii] = PyTuple_GetItem(args,ii); | |
20499 | } | |
20500 | if (argc == 2) { | |
20501 | int _v; | |
20502 | { | |
20503 | void *ptr; | |
20504 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20505 | _v = 0; | |
20506 | PyErr_Clear(); | |
20507 | } else { | |
20508 | _v = 1; | |
20509 | } | |
20510 | } | |
20511 | if (_v) { | |
20512 | { | |
20513 | void *ptr; | |
20514 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
20515 | _v = 0; | |
20516 | PyErr_Clear(); | |
20517 | } else { | |
20518 | _v = 1; | |
20519 | } | |
20520 | } | |
20521 | if (_v) { | |
20522 | return _wrap_DateTime___iadd____SWIG_0(self,args); | |
20523 | } | |
20524 | } | |
20525 | } | |
20526 | if (argc == 2) { | |
20527 | int _v; | |
20528 | { | |
20529 | void *ptr; | |
20530 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20531 | _v = 0; | |
20532 | PyErr_Clear(); | |
20533 | } else { | |
20534 | _v = 1; | |
20535 | } | |
20536 | } | |
20537 | if (_v) { | |
20538 | { | |
20539 | void *ptr; | |
20540 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
20541 | _v = 0; | |
20542 | PyErr_Clear(); | |
20543 | } else { | |
20544 | _v = 1; | |
20545 | } | |
20546 | } | |
20547 | if (_v) { | |
20548 | return _wrap_DateTime___iadd____SWIG_1(self,args); | |
20549 | } | |
20550 | } | |
20551 | } | |
20552 | ||
20553 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___iadd__'"); | |
20554 | return NULL; | |
20555 | } | |
20556 | ||
20557 | ||
c32bde28 | 20558 | static PyObject *_wrap_DateTime___isub____SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
20559 | PyObject *resultobj; |
20560 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20561 | wxTimeSpan *arg2 = 0 ; | |
20562 | wxDateTime *result; | |
20563 | PyObject * obj0 = 0 ; | |
20564 | PyObject * obj1 = 0 ; | |
20565 | ||
20566 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail; | |
20567 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
c32bde28 | 20568 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
20569 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, |
20570 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20571 | SWIG_fail; | |
20572 | if (arg2 == NULL) { | |
20573 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20574 | SWIG_fail; | |
20575 | } | |
20576 | { | |
20577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20578 | { | |
20579 | wxDateTime &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2); | |
20580 | result = (wxDateTime *) &_result_ref; | |
20581 | } | |
20582 | ||
20583 | wxPyEndAllowThreads(__tstate); | |
20584 | if (PyErr_Occurred()) SWIG_fail; | |
20585 | } | |
c32bde28 | 20586 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d55e5bfc RD |
20587 | return resultobj; |
20588 | fail: | |
20589 | return NULL; | |
20590 | } | |
20591 | ||
20592 | ||
c32bde28 | 20593 | static PyObject *_wrap_DateTime___isub____SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
20594 | PyObject *resultobj; |
20595 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20596 | wxDateSpan *arg2 = 0 ; | |
20597 | wxDateTime *result; | |
20598 | PyObject * obj0 = 0 ; | |
20599 | PyObject * obj1 = 0 ; | |
20600 | ||
20601 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail; | |
20602 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
c32bde28 | 20603 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
20604 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, |
20605 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20606 | SWIG_fail; | |
20607 | if (arg2 == NULL) { | |
20608 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20609 | SWIG_fail; | |
20610 | } | |
20611 | { | |
20612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20613 | { | |
20614 | wxDateTime &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2); | |
20615 | result = (wxDateTime *) &_result_ref; | |
20616 | } | |
20617 | ||
20618 | wxPyEndAllowThreads(__tstate); | |
20619 | if (PyErr_Occurred()) SWIG_fail; | |
20620 | } | |
c32bde28 | 20621 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d55e5bfc RD |
20622 | return resultobj; |
20623 | fail: | |
20624 | return NULL; | |
20625 | } | |
20626 | ||
20627 | ||
20628 | static PyObject *_wrap_DateTime___isub__(PyObject *self, PyObject *args) { | |
20629 | int argc; | |
20630 | PyObject *argv[3]; | |
20631 | int ii; | |
20632 | ||
20633 | argc = PyObject_Length(args); | |
20634 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
20635 | argv[ii] = PyTuple_GetItem(args,ii); | |
20636 | } | |
20637 | if (argc == 2) { | |
20638 | int _v; | |
20639 | { | |
20640 | void *ptr; | |
20641 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20642 | _v = 0; | |
20643 | PyErr_Clear(); | |
20644 | } else { | |
20645 | _v = 1; | |
20646 | } | |
20647 | } | |
20648 | if (_v) { | |
20649 | { | |
20650 | void *ptr; | |
20651 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
20652 | _v = 0; | |
20653 | PyErr_Clear(); | |
20654 | } else { | |
20655 | _v = 1; | |
20656 | } | |
20657 | } | |
20658 | if (_v) { | |
20659 | return _wrap_DateTime___isub____SWIG_0(self,args); | |
20660 | } | |
20661 | } | |
20662 | } | |
20663 | if (argc == 2) { | |
20664 | int _v; | |
20665 | { | |
20666 | void *ptr; | |
20667 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20668 | _v = 0; | |
20669 | PyErr_Clear(); | |
20670 | } else { | |
20671 | _v = 1; | |
20672 | } | |
20673 | } | |
20674 | if (_v) { | |
20675 | { | |
20676 | void *ptr; | |
20677 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
20678 | _v = 0; | |
20679 | PyErr_Clear(); | |
20680 | } else { | |
20681 | _v = 1; | |
20682 | } | |
20683 | } | |
20684 | if (_v) { | |
20685 | return _wrap_DateTime___isub____SWIG_1(self,args); | |
20686 | } | |
20687 | } | |
20688 | } | |
20689 | ||
20690 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___isub__'"); | |
20691 | return NULL; | |
20692 | } | |
20693 | ||
20694 | ||
c32bde28 | 20695 | static PyObject *_wrap_DateTime___add____SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
20696 | PyObject *resultobj; |
20697 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20698 | wxTimeSpan *arg2 = 0 ; | |
20699 | wxDateTime result; | |
20700 | PyObject * obj0 = 0 ; | |
20701 | PyObject * obj1 = 0 ; | |
20702 | ||
20703 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail; | |
20704 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20705 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20706 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
20707 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20708 | SWIG_fail; | |
20709 | if (arg2 == NULL) { | |
20710 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20711 | SWIG_fail; | |
20712 | } | |
20713 | { | |
20714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20715 | result = wxDateTime___add____SWIG_0(arg1,(wxTimeSpan const &)*arg2); | |
20716 | ||
20717 | wxPyEndAllowThreads(__tstate); | |
20718 | if (PyErr_Occurred()) SWIG_fail; | |
20719 | } | |
20720 | { | |
20721 | wxDateTime * resultptr; | |
20722 | resultptr = new wxDateTime((wxDateTime &) result); | |
20723 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
20724 | } | |
20725 | return resultobj; | |
20726 | fail: | |
20727 | return NULL; | |
20728 | } | |
20729 | ||
20730 | ||
c32bde28 | 20731 | static PyObject *_wrap_DateTime___add____SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
20732 | PyObject *resultobj; |
20733 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20734 | wxDateSpan *arg2 = 0 ; | |
20735 | wxDateTime result; | |
20736 | PyObject * obj0 = 0 ; | |
20737 | PyObject * obj1 = 0 ; | |
20738 | ||
20739 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail; | |
20740 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20741 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20742 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
20743 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20744 | SWIG_fail; | |
20745 | if (arg2 == NULL) { | |
20746 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20747 | SWIG_fail; | |
20748 | } | |
20749 | { | |
20750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20751 | result = wxDateTime___add____SWIG_1(arg1,(wxDateSpan const &)*arg2); | |
20752 | ||
20753 | wxPyEndAllowThreads(__tstate); | |
20754 | if (PyErr_Occurred()) SWIG_fail; | |
20755 | } | |
20756 | { | |
20757 | wxDateTime * resultptr; | |
20758 | resultptr = new wxDateTime((wxDateTime &) result); | |
20759 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
20760 | } | |
20761 | return resultobj; | |
20762 | fail: | |
20763 | return NULL; | |
20764 | } | |
20765 | ||
20766 | ||
20767 | static PyObject *_wrap_DateTime___add__(PyObject *self, PyObject *args) { | |
20768 | int argc; | |
20769 | PyObject *argv[3]; | |
20770 | int ii; | |
20771 | ||
20772 | argc = PyObject_Length(args); | |
20773 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
20774 | argv[ii] = PyTuple_GetItem(args,ii); | |
20775 | } | |
20776 | if (argc == 2) { | |
20777 | int _v; | |
20778 | { | |
20779 | void *ptr; | |
20780 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20781 | _v = 0; | |
20782 | PyErr_Clear(); | |
20783 | } else { | |
20784 | _v = 1; | |
20785 | } | |
20786 | } | |
20787 | if (_v) { | |
20788 | { | |
20789 | void *ptr; | |
20790 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
20791 | _v = 0; | |
20792 | PyErr_Clear(); | |
20793 | } else { | |
20794 | _v = 1; | |
20795 | } | |
20796 | } | |
20797 | if (_v) { | |
20798 | return _wrap_DateTime___add____SWIG_0(self,args); | |
20799 | } | |
20800 | } | |
20801 | } | |
20802 | if (argc == 2) { | |
20803 | int _v; | |
20804 | { | |
20805 | void *ptr; | |
20806 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20807 | _v = 0; | |
20808 | PyErr_Clear(); | |
20809 | } else { | |
20810 | _v = 1; | |
20811 | } | |
20812 | } | |
20813 | if (_v) { | |
20814 | { | |
20815 | void *ptr; | |
20816 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
20817 | _v = 0; | |
20818 | PyErr_Clear(); | |
20819 | } else { | |
20820 | _v = 1; | |
20821 | } | |
20822 | } | |
20823 | if (_v) { | |
20824 | return _wrap_DateTime___add____SWIG_1(self,args); | |
20825 | } | |
20826 | } | |
20827 | } | |
20828 | ||
20829 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___add__'"); | |
20830 | return NULL; | |
20831 | } | |
20832 | ||
20833 | ||
c32bde28 | 20834 | static PyObject *_wrap_DateTime___sub____SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
20835 | PyObject *resultobj; |
20836 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20837 | wxDateTime *arg2 = 0 ; | |
20838 | wxTimeSpan result; | |
20839 | PyObject * obj0 = 0 ; | |
20840 | PyObject * obj1 = 0 ; | |
20841 | ||
20842 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
20843 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20844 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20845 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20846 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20847 | SWIG_fail; | |
20848 | if (arg2 == NULL) { | |
20849 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20850 | SWIG_fail; | |
20851 | } | |
20852 | { | |
20853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20854 | result = wxDateTime___sub____SWIG_0(arg1,(wxDateTime const &)*arg2); | |
20855 | ||
20856 | wxPyEndAllowThreads(__tstate); | |
20857 | if (PyErr_Occurred()) SWIG_fail; | |
20858 | } | |
20859 | { | |
20860 | wxTimeSpan * resultptr; | |
20861 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
20862 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
20863 | } | |
20864 | return resultobj; | |
20865 | fail: | |
20866 | return NULL; | |
20867 | } | |
20868 | ||
20869 | ||
c32bde28 | 20870 | static PyObject *_wrap_DateTime___sub____SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
20871 | PyObject *resultobj; |
20872 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20873 | wxTimeSpan *arg2 = 0 ; | |
20874 | wxDateTime result; | |
20875 | PyObject * obj0 = 0 ; | |
20876 | PyObject * obj1 = 0 ; | |
20877 | ||
20878 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
20879 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20880 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20881 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
20882 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20883 | SWIG_fail; | |
20884 | if (arg2 == NULL) { | |
20885 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20886 | SWIG_fail; | |
20887 | } | |
20888 | { | |
20889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20890 | result = wxDateTime___sub____SWIG_1(arg1,(wxTimeSpan const &)*arg2); | |
20891 | ||
20892 | wxPyEndAllowThreads(__tstate); | |
20893 | if (PyErr_Occurred()) SWIG_fail; | |
20894 | } | |
20895 | { | |
20896 | wxDateTime * resultptr; | |
20897 | resultptr = new wxDateTime((wxDateTime &) result); | |
20898 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
20899 | } | |
20900 | return resultobj; | |
20901 | fail: | |
20902 | return NULL; | |
20903 | } | |
20904 | ||
20905 | ||
c32bde28 | 20906 | static PyObject *_wrap_DateTime___sub____SWIG_2(PyObject *, PyObject *args) { |
d55e5bfc RD |
20907 | PyObject *resultobj; |
20908 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20909 | wxDateSpan *arg2 = 0 ; | |
20910 | wxDateTime result; | |
20911 | PyObject * obj0 = 0 ; | |
20912 | PyObject * obj1 = 0 ; | |
20913 | ||
20914 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
20915 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20916 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20917 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
20918 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20919 | SWIG_fail; | |
20920 | if (arg2 == NULL) { | |
20921 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20922 | SWIG_fail; | |
20923 | } | |
20924 | { | |
20925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20926 | result = wxDateTime___sub____SWIG_2(arg1,(wxDateSpan const &)*arg2); | |
20927 | ||
20928 | wxPyEndAllowThreads(__tstate); | |
20929 | if (PyErr_Occurred()) SWIG_fail; | |
20930 | } | |
20931 | { | |
20932 | wxDateTime * resultptr; | |
20933 | resultptr = new wxDateTime((wxDateTime &) result); | |
20934 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
20935 | } | |
20936 | return resultobj; | |
20937 | fail: | |
20938 | return NULL; | |
20939 | } | |
20940 | ||
20941 | ||
20942 | static PyObject *_wrap_DateTime___sub__(PyObject *self, PyObject *args) { | |
20943 | int argc; | |
20944 | PyObject *argv[3]; | |
20945 | int ii; | |
20946 | ||
20947 | argc = PyObject_Length(args); | |
20948 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
20949 | argv[ii] = PyTuple_GetItem(args,ii); | |
20950 | } | |
20951 | if (argc == 2) { | |
20952 | int _v; | |
20953 | { | |
20954 | void *ptr; | |
20955 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20956 | _v = 0; | |
20957 | PyErr_Clear(); | |
20958 | } else { | |
20959 | _v = 1; | |
20960 | } | |
20961 | } | |
20962 | if (_v) { | |
20963 | { | |
20964 | void *ptr; | |
20965 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20966 | _v = 0; | |
20967 | PyErr_Clear(); | |
20968 | } else { | |
20969 | _v = 1; | |
20970 | } | |
20971 | } | |
20972 | if (_v) { | |
20973 | return _wrap_DateTime___sub____SWIG_0(self,args); | |
20974 | } | |
20975 | } | |
20976 | } | |
20977 | if (argc == 2) { | |
20978 | int _v; | |
20979 | { | |
20980 | void *ptr; | |
20981 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20982 | _v = 0; | |
20983 | PyErr_Clear(); | |
20984 | } else { | |
20985 | _v = 1; | |
20986 | } | |
20987 | } | |
20988 | if (_v) { | |
20989 | { | |
20990 | void *ptr; | |
20991 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
20992 | _v = 0; | |
20993 | PyErr_Clear(); | |
20994 | } else { | |
20995 | _v = 1; | |
20996 | } | |
20997 | } | |
20998 | if (_v) { | |
20999 | return _wrap_DateTime___sub____SWIG_1(self,args); | |
21000 | } | |
21001 | } | |
21002 | } | |
21003 | if (argc == 2) { | |
21004 | int _v; | |
21005 | { | |
21006 | void *ptr; | |
21007 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
21008 | _v = 0; | |
21009 | PyErr_Clear(); | |
21010 | } else { | |
21011 | _v = 1; | |
21012 | } | |
21013 | } | |
21014 | if (_v) { | |
21015 | { | |
21016 | void *ptr; | |
21017 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
21018 | _v = 0; | |
21019 | PyErr_Clear(); | |
21020 | } else { | |
21021 | _v = 1; | |
21022 | } | |
21023 | } | |
21024 | if (_v) { | |
21025 | return _wrap_DateTime___sub____SWIG_2(self,args); | |
21026 | } | |
21027 | } | |
21028 | } | |
21029 | ||
21030 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___sub__'"); | |
21031 | return NULL; | |
21032 | } | |
21033 | ||
21034 | ||
c32bde28 | 21035 | static PyObject *_wrap_DateTime___lt__(PyObject *, PyObject *args) { |
d55e5bfc RD |
21036 | PyObject *resultobj; |
21037 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21038 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
21039 | bool result; | |
21040 | PyObject * obj0 = 0 ; | |
21041 | PyObject * obj1 = 0 ; | |
21042 | ||
21043 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___lt__",&obj0,&obj1)) goto fail; | |
21044 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21045 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21046 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
21047 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21048 | { | |
21049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21050 | result = (bool)wxDateTime___lt__(arg1,(wxDateTime const *)arg2); | |
21051 | ||
21052 | wxPyEndAllowThreads(__tstate); | |
21053 | if (PyErr_Occurred()) SWIG_fail; | |
21054 | } | |
21055 | { | |
21056 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21057 | } | |
21058 | return resultobj; | |
21059 | fail: | |
21060 | return NULL; | |
21061 | } | |
21062 | ||
21063 | ||
c32bde28 | 21064 | static PyObject *_wrap_DateTime___le__(PyObject *, PyObject *args) { |
d55e5bfc RD |
21065 | PyObject *resultobj; |
21066 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21067 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
21068 | bool result; | |
21069 | PyObject * obj0 = 0 ; | |
21070 | PyObject * obj1 = 0 ; | |
21071 | ||
21072 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___le__",&obj0,&obj1)) goto fail; | |
21073 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21074 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21075 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
21076 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21077 | { | |
21078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21079 | result = (bool)wxDateTime___le__(arg1,(wxDateTime const *)arg2); | |
21080 | ||
21081 | wxPyEndAllowThreads(__tstate); | |
21082 | if (PyErr_Occurred()) SWIG_fail; | |
21083 | } | |
21084 | { | |
21085 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21086 | } | |
21087 | return resultobj; | |
21088 | fail: | |
21089 | return NULL; | |
21090 | } | |
21091 | ||
21092 | ||
c32bde28 | 21093 | static PyObject *_wrap_DateTime___gt__(PyObject *, PyObject *args) { |
d55e5bfc RD |
21094 | PyObject *resultobj; |
21095 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21096 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
21097 | bool result; | |
21098 | PyObject * obj0 = 0 ; | |
21099 | PyObject * obj1 = 0 ; | |
21100 | ||
21101 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___gt__",&obj0,&obj1)) goto fail; | |
21102 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21103 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21104 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
21105 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21106 | { | |
21107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21108 | result = (bool)wxDateTime___gt__(arg1,(wxDateTime const *)arg2); | |
21109 | ||
21110 | wxPyEndAllowThreads(__tstate); | |
21111 | if (PyErr_Occurred()) SWIG_fail; | |
21112 | } | |
21113 | { | |
21114 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21115 | } | |
21116 | return resultobj; | |
21117 | fail: | |
21118 | return NULL; | |
21119 | } | |
21120 | ||
21121 | ||
c32bde28 | 21122 | static PyObject *_wrap_DateTime___ge__(PyObject *, PyObject *args) { |
d55e5bfc RD |
21123 | PyObject *resultobj; |
21124 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21125 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
21126 | bool result; | |
21127 | PyObject * obj0 = 0 ; | |
21128 | PyObject * obj1 = 0 ; | |
21129 | ||
21130 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ge__",&obj0,&obj1)) goto fail; | |
21131 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21132 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21133 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
21134 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21135 | { | |
21136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21137 | result = (bool)wxDateTime___ge__(arg1,(wxDateTime const *)arg2); | |
21138 | ||
21139 | wxPyEndAllowThreads(__tstate); | |
21140 | if (PyErr_Occurred()) SWIG_fail; | |
21141 | } | |
21142 | { | |
21143 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21144 | } | |
21145 | return resultobj; | |
21146 | fail: | |
21147 | return NULL; | |
21148 | } | |
21149 | ||
21150 | ||
c32bde28 | 21151 | static PyObject *_wrap_DateTime___eq__(PyObject *, PyObject *args) { |
d55e5bfc RD |
21152 | PyObject *resultobj; |
21153 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21154 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
21155 | bool result; | |
21156 | PyObject * obj0 = 0 ; | |
21157 | PyObject * obj1 = 0 ; | |
21158 | ||
21159 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___eq__",&obj0,&obj1)) goto fail; | |
21160 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21161 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21162 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
21163 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21164 | { | |
21165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21166 | result = (bool)wxDateTime___eq__(arg1,(wxDateTime const *)arg2); | |
21167 | ||
21168 | wxPyEndAllowThreads(__tstate); | |
21169 | if (PyErr_Occurred()) SWIG_fail; | |
21170 | } | |
21171 | { | |
21172 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21173 | } | |
21174 | return resultobj; | |
21175 | fail: | |
21176 | return NULL; | |
21177 | } | |
21178 | ||
21179 | ||
c32bde28 | 21180 | static PyObject *_wrap_DateTime___ne__(PyObject *, PyObject *args) { |
d55e5bfc RD |
21181 | PyObject *resultobj; |
21182 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21183 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
21184 | bool result; | |
21185 | PyObject * obj0 = 0 ; | |
21186 | PyObject * obj1 = 0 ; | |
21187 | ||
21188 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ne__",&obj0,&obj1)) goto fail; | |
21189 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21190 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21191 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
21192 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21193 | { | |
21194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21195 | result = (bool)wxDateTime___ne__(arg1,(wxDateTime const *)arg2); | |
21196 | ||
21197 | wxPyEndAllowThreads(__tstate); | |
21198 | if (PyErr_Occurred()) SWIG_fail; | |
21199 | } | |
21200 | { | |
21201 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21202 | } | |
21203 | return resultobj; | |
21204 | fail: | |
21205 | return NULL; | |
21206 | } | |
21207 | ||
21208 | ||
c32bde28 | 21209 | static PyObject *_wrap_DateTime_ParseRfc822Date(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21210 | PyObject *resultobj; |
21211 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21212 | wxString *arg2 = 0 ; | |
21213 | int result; | |
ae8162c8 | 21214 | bool temp2 = false ; |
d55e5bfc RD |
21215 | PyObject * obj0 = 0 ; |
21216 | PyObject * obj1 = 0 ; | |
21217 | char *kwnames[] = { | |
21218 | (char *) "self",(char *) "date", NULL | |
21219 | }; | |
21220 | ||
21221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseRfc822Date",kwnames,&obj0,&obj1)) goto fail; | |
21222 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21224 | { | |
21225 | arg2 = wxString_in_helper(obj1); | |
21226 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 21227 | temp2 = true; |
d55e5bfc RD |
21228 | } |
21229 | { | |
21230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21231 | result = (int)wxDateTime_ParseRfc822Date(arg1,(wxString const &)*arg2); | |
21232 | ||
21233 | wxPyEndAllowThreads(__tstate); | |
21234 | if (PyErr_Occurred()) SWIG_fail; | |
21235 | } | |
c32bde28 | 21236 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
21237 | { |
21238 | if (temp2) | |
21239 | delete arg2; | |
21240 | } | |
21241 | return resultobj; | |
21242 | fail: | |
21243 | { | |
21244 | if (temp2) | |
21245 | delete arg2; | |
21246 | } | |
21247 | return NULL; | |
21248 | } | |
21249 | ||
21250 | ||
c32bde28 | 21251 | static PyObject *_wrap_DateTime_ParseFormat(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21252 | PyObject *resultobj; |
21253 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21254 | wxString *arg2 = 0 ; | |
21255 | wxString const &arg3_defvalue = wxPyDateFormatStr ; | |
21256 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
21257 | wxDateTime const &arg4_defvalue = wxDefaultDateTime ; | |
21258 | wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ; | |
21259 | int result; | |
ae8162c8 RD |
21260 | bool temp2 = false ; |
21261 | bool temp3 = false ; | |
d55e5bfc RD |
21262 | PyObject * obj0 = 0 ; |
21263 | PyObject * obj1 = 0 ; | |
21264 | PyObject * obj2 = 0 ; | |
21265 | PyObject * obj3 = 0 ; | |
21266 | char *kwnames[] = { | |
21267 | (char *) "self",(char *) "date",(char *) "format",(char *) "dateDef", NULL | |
21268 | }; | |
21269 | ||
21270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_ParseFormat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
21271 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21272 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21273 | { | |
21274 | arg2 = wxString_in_helper(obj1); | |
21275 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 21276 | temp2 = true; |
d55e5bfc RD |
21277 | } |
21278 | if (obj2) { | |
21279 | { | |
21280 | arg3 = wxString_in_helper(obj2); | |
21281 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 21282 | temp3 = true; |
d55e5bfc RD |
21283 | } |
21284 | } | |
21285 | if (obj3) { | |
21286 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDateTime, | |
21287 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21288 | SWIG_fail; | |
21289 | if (arg4 == NULL) { | |
21290 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21291 | SWIG_fail; | |
21292 | } | |
21293 | } | |
21294 | { | |
21295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21296 | result = (int)wxDateTime_ParseFormat(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxDateTime const &)*arg4); | |
21297 | ||
21298 | wxPyEndAllowThreads(__tstate); | |
21299 | if (PyErr_Occurred()) SWIG_fail; | |
21300 | } | |
c32bde28 | 21301 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
21302 | { |
21303 | if (temp2) | |
21304 | delete arg2; | |
21305 | } | |
21306 | { | |
21307 | if (temp3) | |
21308 | delete arg3; | |
21309 | } | |
21310 | return resultobj; | |
21311 | fail: | |
21312 | { | |
21313 | if (temp2) | |
21314 | delete arg2; | |
21315 | } | |
21316 | { | |
21317 | if (temp3) | |
21318 | delete arg3; | |
21319 | } | |
21320 | return NULL; | |
21321 | } | |
21322 | ||
21323 | ||
c32bde28 | 21324 | static PyObject *_wrap_DateTime_ParseDateTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21325 | PyObject *resultobj; |
21326 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21327 | wxString *arg2 = 0 ; | |
21328 | int result; | |
ae8162c8 | 21329 | bool temp2 = false ; |
d55e5bfc RD |
21330 | PyObject * obj0 = 0 ; |
21331 | PyObject * obj1 = 0 ; | |
21332 | char *kwnames[] = { | |
21333 | (char *) "self",(char *) "datetime", NULL | |
21334 | }; | |
21335 | ||
21336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDateTime",kwnames,&obj0,&obj1)) goto fail; | |
21337 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21338 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21339 | { | |
21340 | arg2 = wxString_in_helper(obj1); | |
21341 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 21342 | temp2 = true; |
d55e5bfc RD |
21343 | } |
21344 | { | |
21345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21346 | result = (int)wxDateTime_ParseDateTime(arg1,(wxString const &)*arg2); | |
21347 | ||
21348 | wxPyEndAllowThreads(__tstate); | |
21349 | if (PyErr_Occurred()) SWIG_fail; | |
21350 | } | |
c32bde28 | 21351 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
21352 | { |
21353 | if (temp2) | |
21354 | delete arg2; | |
21355 | } | |
21356 | return resultobj; | |
21357 | fail: | |
21358 | { | |
21359 | if (temp2) | |
21360 | delete arg2; | |
21361 | } | |
21362 | return NULL; | |
21363 | } | |
21364 | ||
21365 | ||
c32bde28 | 21366 | static PyObject *_wrap_DateTime_ParseDate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21367 | PyObject *resultobj; |
21368 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21369 | wxString *arg2 = 0 ; | |
21370 | int result; | |
ae8162c8 | 21371 | bool temp2 = false ; |
d55e5bfc RD |
21372 | PyObject * obj0 = 0 ; |
21373 | PyObject * obj1 = 0 ; | |
21374 | char *kwnames[] = { | |
21375 | (char *) "self",(char *) "date", NULL | |
21376 | }; | |
21377 | ||
21378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDate",kwnames,&obj0,&obj1)) goto fail; | |
21379 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21380 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21381 | { | |
21382 | arg2 = wxString_in_helper(obj1); | |
21383 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 21384 | temp2 = true; |
d55e5bfc RD |
21385 | } |
21386 | { | |
21387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21388 | result = (int)wxDateTime_ParseDate(arg1,(wxString const &)*arg2); | |
21389 | ||
21390 | wxPyEndAllowThreads(__tstate); | |
21391 | if (PyErr_Occurred()) SWIG_fail; | |
21392 | } | |
c32bde28 | 21393 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
21394 | { |
21395 | if (temp2) | |
21396 | delete arg2; | |
21397 | } | |
21398 | return resultobj; | |
21399 | fail: | |
21400 | { | |
21401 | if (temp2) | |
21402 | delete arg2; | |
21403 | } | |
21404 | return NULL; | |
21405 | } | |
21406 | ||
21407 | ||
c32bde28 | 21408 | static PyObject *_wrap_DateTime_ParseTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21409 | PyObject *resultobj; |
21410 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21411 | wxString *arg2 = 0 ; | |
21412 | int result; | |
ae8162c8 | 21413 | bool temp2 = false ; |
d55e5bfc RD |
21414 | PyObject * obj0 = 0 ; |
21415 | PyObject * obj1 = 0 ; | |
21416 | char *kwnames[] = { | |
21417 | (char *) "self",(char *) "time", NULL | |
21418 | }; | |
21419 | ||
21420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseTime",kwnames,&obj0,&obj1)) goto fail; | |
21421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21423 | { | |
21424 | arg2 = wxString_in_helper(obj1); | |
21425 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 21426 | temp2 = true; |
d55e5bfc RD |
21427 | } |
21428 | { | |
21429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21430 | result = (int)wxDateTime_ParseTime(arg1,(wxString const &)*arg2); | |
21431 | ||
21432 | wxPyEndAllowThreads(__tstate); | |
21433 | if (PyErr_Occurred()) SWIG_fail; | |
21434 | } | |
c32bde28 | 21435 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
21436 | { |
21437 | if (temp2) | |
21438 | delete arg2; | |
21439 | } | |
21440 | return resultobj; | |
21441 | fail: | |
21442 | { | |
21443 | if (temp2) | |
21444 | delete arg2; | |
21445 | } | |
21446 | return NULL; | |
21447 | } | |
21448 | ||
21449 | ||
c32bde28 | 21450 | static PyObject *_wrap_DateTime_Format(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21451 | PyObject *resultobj; |
21452 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21453 | wxString const &arg2_defvalue = wxPyDateFormatStr ; | |
21454 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
21455 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
21456 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
21457 | wxString result; | |
ae8162c8 RD |
21458 | bool temp2 = false ; |
21459 | bool temp3 = false ; | |
d55e5bfc RD |
21460 | PyObject * obj0 = 0 ; |
21461 | PyObject * obj1 = 0 ; | |
21462 | PyObject * obj2 = 0 ; | |
21463 | char *kwnames[] = { | |
21464 | (char *) "self",(char *) "format",(char *) "tz", NULL | |
21465 | }; | |
21466 | ||
21467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_Format",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21470 | if (obj1) { | |
21471 | { | |
21472 | arg2 = wxString_in_helper(obj1); | |
21473 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 21474 | temp2 = true; |
d55e5bfc RD |
21475 | } |
21476 | } | |
21477 | if (obj2) { | |
21478 | { | |
21479 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
ae8162c8 | 21480 | temp3 = true; |
d55e5bfc RD |
21481 | } |
21482 | } | |
21483 | { | |
21484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21485 | result = ((wxDateTime const *)arg1)->Format((wxString const &)*arg2,(wxDateTime::TimeZone const &)*arg3); | |
21486 | ||
21487 | wxPyEndAllowThreads(__tstate); | |
21488 | if (PyErr_Occurred()) SWIG_fail; | |
21489 | } | |
21490 | { | |
21491 | #if wxUSE_UNICODE | |
21492 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21493 | #else | |
21494 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21495 | #endif | |
21496 | } | |
21497 | { | |
21498 | if (temp2) | |
21499 | delete arg2; | |
21500 | } | |
21501 | { | |
21502 | if (temp3) delete arg3; | |
21503 | } | |
21504 | return resultobj; | |
21505 | fail: | |
21506 | { | |
21507 | if (temp2) | |
21508 | delete arg2; | |
21509 | } | |
21510 | { | |
21511 | if (temp3) delete arg3; | |
21512 | } | |
21513 | return NULL; | |
21514 | } | |
21515 | ||
21516 | ||
c32bde28 | 21517 | static PyObject *_wrap_DateTime_FormatDate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21518 | PyObject *resultobj; |
21519 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21520 | wxString result; | |
21521 | PyObject * obj0 = 0 ; | |
21522 | char *kwnames[] = { | |
21523 | (char *) "self", NULL | |
21524 | }; | |
21525 | ||
21526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatDate",kwnames,&obj0)) goto fail; | |
21527 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21528 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21529 | { | |
21530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21531 | result = ((wxDateTime const *)arg1)->FormatDate(); | |
21532 | ||
21533 | wxPyEndAllowThreads(__tstate); | |
21534 | if (PyErr_Occurred()) SWIG_fail; | |
21535 | } | |
21536 | { | |
21537 | #if wxUSE_UNICODE | |
21538 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21539 | #else | |
21540 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21541 | #endif | |
21542 | } | |
21543 | return resultobj; | |
21544 | fail: | |
21545 | return NULL; | |
21546 | } | |
21547 | ||
21548 | ||
c32bde28 | 21549 | static PyObject *_wrap_DateTime_FormatTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21550 | PyObject *resultobj; |
21551 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21552 | wxString result; | |
21553 | PyObject * obj0 = 0 ; | |
21554 | char *kwnames[] = { | |
21555 | (char *) "self", NULL | |
21556 | }; | |
21557 | ||
21558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatTime",kwnames,&obj0)) goto fail; | |
21559 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21561 | { | |
21562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21563 | result = ((wxDateTime const *)arg1)->FormatTime(); | |
21564 | ||
21565 | wxPyEndAllowThreads(__tstate); | |
21566 | if (PyErr_Occurred()) SWIG_fail; | |
21567 | } | |
21568 | { | |
21569 | #if wxUSE_UNICODE | |
21570 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21571 | #else | |
21572 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21573 | #endif | |
21574 | } | |
21575 | return resultobj; | |
21576 | fail: | |
21577 | return NULL; | |
21578 | } | |
21579 | ||
21580 | ||
c32bde28 | 21581 | static PyObject *_wrap_DateTime_FormatISODate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21582 | PyObject *resultobj; |
21583 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21584 | wxString result; | |
21585 | PyObject * obj0 = 0 ; | |
21586 | char *kwnames[] = { | |
21587 | (char *) "self", NULL | |
21588 | }; | |
21589 | ||
21590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISODate",kwnames,&obj0)) goto fail; | |
21591 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21593 | { | |
21594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21595 | result = ((wxDateTime const *)arg1)->FormatISODate(); | |
21596 | ||
21597 | wxPyEndAllowThreads(__tstate); | |
21598 | if (PyErr_Occurred()) SWIG_fail; | |
21599 | } | |
21600 | { | |
21601 | #if wxUSE_UNICODE | |
21602 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21603 | #else | |
21604 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21605 | #endif | |
21606 | } | |
21607 | return resultobj; | |
21608 | fail: | |
21609 | return NULL; | |
21610 | } | |
21611 | ||
21612 | ||
c32bde28 | 21613 | static PyObject *_wrap_DateTime_FormatISOTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21614 | PyObject *resultobj; |
21615 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21616 | wxString result; | |
21617 | PyObject * obj0 = 0 ; | |
21618 | char *kwnames[] = { | |
21619 | (char *) "self", NULL | |
21620 | }; | |
21621 | ||
21622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISOTime",kwnames,&obj0)) goto fail; | |
21623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21625 | { | |
21626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21627 | result = ((wxDateTime const *)arg1)->FormatISOTime(); | |
21628 | ||
21629 | wxPyEndAllowThreads(__tstate); | |
21630 | if (PyErr_Occurred()) SWIG_fail; | |
21631 | } | |
21632 | { | |
21633 | #if wxUSE_UNICODE | |
21634 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21635 | #else | |
21636 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21637 | #endif | |
21638 | } | |
21639 | return resultobj; | |
21640 | fail: | |
21641 | return NULL; | |
21642 | } | |
21643 | ||
21644 | ||
c32bde28 | 21645 | static PyObject * DateTime_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
21646 | PyObject *obj; |
21647 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21648 | SWIG_TypeClientData(SWIGTYPE_p_wxDateTime, obj); | |
21649 | Py_INCREF(obj); | |
21650 | return Py_BuildValue((char *)""); | |
21651 | } | |
c32bde28 | 21652 | static PyObject *_wrap_TimeSpan_Seconds(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21653 | PyObject *resultobj; |
21654 | long arg1 ; | |
21655 | wxTimeSpan result; | |
21656 | PyObject * obj0 = 0 ; | |
21657 | char *kwnames[] = { | |
21658 | (char *) "sec", NULL | |
21659 | }; | |
21660 | ||
21661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Seconds",kwnames,&obj0)) goto fail; | |
c32bde28 | 21662 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
21663 | if (PyErr_Occurred()) SWIG_fail; |
21664 | { | |
21665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21666 | result = wxTimeSpan::Seconds(arg1); | |
21667 | ||
21668 | wxPyEndAllowThreads(__tstate); | |
21669 | if (PyErr_Occurred()) SWIG_fail; | |
21670 | } | |
21671 | { | |
21672 | wxTimeSpan * resultptr; | |
21673 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21674 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21675 | } | |
21676 | return resultobj; | |
21677 | fail: | |
21678 | return NULL; | |
21679 | } | |
21680 | ||
21681 | ||
c32bde28 | 21682 | static PyObject *_wrap_TimeSpan_Second(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21683 | PyObject *resultobj; |
21684 | wxTimeSpan result; | |
21685 | char *kwnames[] = { | |
21686 | NULL | |
21687 | }; | |
21688 | ||
21689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Second",kwnames)) goto fail; | |
21690 | { | |
21691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21692 | result = wxTimeSpan::Second(); | |
21693 | ||
21694 | wxPyEndAllowThreads(__tstate); | |
21695 | if (PyErr_Occurred()) SWIG_fail; | |
21696 | } | |
21697 | { | |
21698 | wxTimeSpan * resultptr; | |
21699 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21700 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21701 | } | |
21702 | return resultobj; | |
21703 | fail: | |
21704 | return NULL; | |
21705 | } | |
21706 | ||
21707 | ||
c32bde28 | 21708 | static PyObject *_wrap_TimeSpan_Minutes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21709 | PyObject *resultobj; |
21710 | long arg1 ; | |
21711 | wxTimeSpan result; | |
21712 | PyObject * obj0 = 0 ; | |
21713 | char *kwnames[] = { | |
21714 | (char *) "min", NULL | |
21715 | }; | |
21716 | ||
21717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Minutes",kwnames,&obj0)) goto fail; | |
c32bde28 | 21718 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
21719 | if (PyErr_Occurred()) SWIG_fail; |
21720 | { | |
21721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21722 | result = wxTimeSpan::Minutes(arg1); | |
21723 | ||
21724 | wxPyEndAllowThreads(__tstate); | |
21725 | if (PyErr_Occurred()) SWIG_fail; | |
21726 | } | |
21727 | { | |
21728 | wxTimeSpan * resultptr; | |
21729 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21730 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21731 | } | |
21732 | return resultobj; | |
21733 | fail: | |
21734 | return NULL; | |
21735 | } | |
21736 | ||
21737 | ||
c32bde28 | 21738 | static PyObject *_wrap_TimeSpan_Minute(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21739 | PyObject *resultobj; |
21740 | wxTimeSpan result; | |
21741 | char *kwnames[] = { | |
21742 | NULL | |
21743 | }; | |
21744 | ||
21745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Minute",kwnames)) goto fail; | |
21746 | { | |
21747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21748 | result = wxTimeSpan::Minute(); | |
21749 | ||
21750 | wxPyEndAllowThreads(__tstate); | |
21751 | if (PyErr_Occurred()) SWIG_fail; | |
21752 | } | |
21753 | { | |
21754 | wxTimeSpan * resultptr; | |
21755 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21756 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21757 | } | |
21758 | return resultobj; | |
21759 | fail: | |
21760 | return NULL; | |
21761 | } | |
21762 | ||
21763 | ||
c32bde28 | 21764 | static PyObject *_wrap_TimeSpan_Hours(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21765 | PyObject *resultobj; |
21766 | long arg1 ; | |
21767 | wxTimeSpan result; | |
21768 | PyObject * obj0 = 0 ; | |
21769 | char *kwnames[] = { | |
21770 | (char *) "hours", NULL | |
21771 | }; | |
21772 | ||
21773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Hours",kwnames,&obj0)) goto fail; | |
c32bde28 | 21774 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
21775 | if (PyErr_Occurred()) SWIG_fail; |
21776 | { | |
21777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21778 | result = wxTimeSpan::Hours(arg1); | |
21779 | ||
21780 | wxPyEndAllowThreads(__tstate); | |
21781 | if (PyErr_Occurred()) SWIG_fail; | |
21782 | } | |
21783 | { | |
21784 | wxTimeSpan * resultptr; | |
21785 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21786 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21787 | } | |
21788 | return resultobj; | |
21789 | fail: | |
21790 | return NULL; | |
21791 | } | |
21792 | ||
21793 | ||
c32bde28 | 21794 | static PyObject *_wrap_TimeSpan_Hour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21795 | PyObject *resultobj; |
21796 | wxTimeSpan result; | |
21797 | char *kwnames[] = { | |
21798 | NULL | |
21799 | }; | |
21800 | ||
21801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Hour",kwnames)) goto fail; | |
21802 | { | |
21803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21804 | result = wxTimeSpan::Hour(); | |
21805 | ||
21806 | wxPyEndAllowThreads(__tstate); | |
21807 | if (PyErr_Occurred()) SWIG_fail; | |
21808 | } | |
21809 | { | |
21810 | wxTimeSpan * resultptr; | |
21811 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21812 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21813 | } | |
21814 | return resultobj; | |
21815 | fail: | |
21816 | return NULL; | |
21817 | } | |
21818 | ||
21819 | ||
c32bde28 | 21820 | static PyObject *_wrap_TimeSpan_Days(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21821 | PyObject *resultobj; |
21822 | long arg1 ; | |
21823 | wxTimeSpan result; | |
21824 | PyObject * obj0 = 0 ; | |
21825 | char *kwnames[] = { | |
21826 | (char *) "days", NULL | |
21827 | }; | |
21828 | ||
21829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Days",kwnames,&obj0)) goto fail; | |
c32bde28 | 21830 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
21831 | if (PyErr_Occurred()) SWIG_fail; |
21832 | { | |
21833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21834 | result = wxTimeSpan::Days(arg1); | |
21835 | ||
21836 | wxPyEndAllowThreads(__tstate); | |
21837 | if (PyErr_Occurred()) SWIG_fail; | |
21838 | } | |
21839 | { | |
21840 | wxTimeSpan * resultptr; | |
21841 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21842 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21843 | } | |
21844 | return resultobj; | |
21845 | fail: | |
21846 | return NULL; | |
21847 | } | |
21848 | ||
21849 | ||
c32bde28 | 21850 | static PyObject *_wrap_TimeSpan_Day(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21851 | PyObject *resultobj; |
21852 | wxTimeSpan result; | |
21853 | char *kwnames[] = { | |
21854 | NULL | |
21855 | }; | |
21856 | ||
21857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Day",kwnames)) goto fail; | |
21858 | { | |
21859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21860 | result = wxTimeSpan::Day(); | |
21861 | ||
21862 | wxPyEndAllowThreads(__tstate); | |
21863 | if (PyErr_Occurred()) SWIG_fail; | |
21864 | } | |
21865 | { | |
21866 | wxTimeSpan * resultptr; | |
21867 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21868 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21869 | } | |
21870 | return resultobj; | |
21871 | fail: | |
21872 | return NULL; | |
21873 | } | |
21874 | ||
21875 | ||
c32bde28 | 21876 | static PyObject *_wrap_TimeSpan_Weeks(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21877 | PyObject *resultobj; |
21878 | long arg1 ; | |
21879 | wxTimeSpan result; | |
21880 | PyObject * obj0 = 0 ; | |
21881 | char *kwnames[] = { | |
21882 | (char *) "days", NULL | |
21883 | }; | |
21884 | ||
21885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Weeks",kwnames,&obj0)) goto fail; | |
c32bde28 | 21886 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
21887 | if (PyErr_Occurred()) SWIG_fail; |
21888 | { | |
21889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21890 | result = wxTimeSpan::Weeks(arg1); | |
21891 | ||
21892 | wxPyEndAllowThreads(__tstate); | |
21893 | if (PyErr_Occurred()) SWIG_fail; | |
21894 | } | |
21895 | { | |
21896 | wxTimeSpan * resultptr; | |
21897 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21898 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21899 | } | |
21900 | return resultobj; | |
21901 | fail: | |
21902 | return NULL; | |
21903 | } | |
21904 | ||
21905 | ||
c32bde28 | 21906 | static PyObject *_wrap_TimeSpan_Week(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21907 | PyObject *resultobj; |
21908 | wxTimeSpan result; | |
21909 | char *kwnames[] = { | |
21910 | NULL | |
21911 | }; | |
21912 | ||
21913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Week",kwnames)) goto fail; | |
21914 | { | |
21915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21916 | result = wxTimeSpan::Week(); | |
21917 | ||
21918 | wxPyEndAllowThreads(__tstate); | |
21919 | if (PyErr_Occurred()) SWIG_fail; | |
21920 | } | |
21921 | { | |
21922 | wxTimeSpan * resultptr; | |
21923 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21924 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21925 | } | |
21926 | return resultobj; | |
21927 | fail: | |
21928 | return NULL; | |
21929 | } | |
21930 | ||
21931 | ||
c32bde28 | 21932 | static PyObject *_wrap_new_TimeSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21933 | PyObject *resultobj; |
21934 | long arg1 = (long) 0 ; | |
21935 | long arg2 = (long) 0 ; | |
21936 | long arg3 = (long) 0 ; | |
21937 | long arg4 = (long) 0 ; | |
21938 | wxTimeSpan *result; | |
21939 | PyObject * obj0 = 0 ; | |
21940 | PyObject * obj1 = 0 ; | |
21941 | PyObject * obj2 = 0 ; | |
21942 | PyObject * obj3 = 0 ; | |
21943 | char *kwnames[] = { | |
21944 | (char *) "hours",(char *) "minutes",(char *) "seconds",(char *) "milliseconds", NULL | |
21945 | }; | |
21946 | ||
21947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TimeSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
21948 | if (obj0) { | |
c32bde28 | 21949 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
21950 | if (PyErr_Occurred()) SWIG_fail; |
21951 | } | |
21952 | if (obj1) { | |
c32bde28 | 21953 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
21954 | if (PyErr_Occurred()) SWIG_fail; |
21955 | } | |
21956 | if (obj2) { | |
c32bde28 | 21957 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
21958 | if (PyErr_Occurred()) SWIG_fail; |
21959 | } | |
21960 | if (obj3) { | |
c32bde28 | 21961 | arg4 = (long)SWIG_As_long(obj3); |
d55e5bfc RD |
21962 | if (PyErr_Occurred()) SWIG_fail; |
21963 | } | |
21964 | { | |
21965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21966 | result = (wxTimeSpan *)new wxTimeSpan(arg1,arg2,arg3,arg4); | |
21967 | ||
21968 | wxPyEndAllowThreads(__tstate); | |
21969 | if (PyErr_Occurred()) SWIG_fail; | |
21970 | } | |
21971 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1); | |
21972 | return resultobj; | |
21973 | fail: | |
21974 | return NULL; | |
21975 | } | |
21976 | ||
21977 | ||
c32bde28 | 21978 | static PyObject *_wrap_delete_TimeSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21979 | PyObject *resultobj; |
21980 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
21981 | PyObject * obj0 = 0 ; | |
21982 | char *kwnames[] = { | |
21983 | (char *) "self", NULL | |
21984 | }; | |
21985 | ||
21986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimeSpan",kwnames,&obj0)) goto fail; | |
21987 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
21988 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21989 | { | |
21990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21991 | delete arg1; | |
21992 | ||
21993 | wxPyEndAllowThreads(__tstate); | |
21994 | if (PyErr_Occurred()) SWIG_fail; | |
21995 | } | |
21996 | Py_INCREF(Py_None); resultobj = Py_None; | |
21997 | return resultobj; | |
21998 | fail: | |
21999 | return NULL; | |
22000 | } | |
22001 | ||
22002 | ||
c32bde28 | 22003 | static PyObject *_wrap_TimeSpan_Add(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22004 | PyObject *resultobj; |
22005 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22006 | wxTimeSpan *arg2 = 0 ; | |
22007 | wxTimeSpan *result; | |
22008 | PyObject * obj0 = 0 ; | |
22009 | PyObject * obj1 = 0 ; | |
22010 | char *kwnames[] = { | |
22011 | (char *) "self",(char *) "diff", NULL | |
22012 | }; | |
22013 | ||
22014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Add",kwnames,&obj0,&obj1)) goto fail; | |
22015 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22016 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22017 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22018 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22019 | SWIG_fail; | |
22020 | if (arg2 == NULL) { | |
22021 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22022 | SWIG_fail; | |
22023 | } | |
22024 | { | |
22025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22026 | { | |
22027 | wxTimeSpan &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2); | |
22028 | result = (wxTimeSpan *) &_result_ref; | |
22029 | } | |
22030 | ||
22031 | wxPyEndAllowThreads(__tstate); | |
22032 | if (PyErr_Occurred()) SWIG_fail; | |
22033 | } | |
22034 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
22035 | return resultobj; | |
22036 | fail: | |
22037 | return NULL; | |
22038 | } | |
22039 | ||
22040 | ||
c32bde28 | 22041 | static PyObject *_wrap_TimeSpan_Subtract(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22042 | PyObject *resultobj; |
22043 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22044 | wxTimeSpan *arg2 = 0 ; | |
22045 | wxTimeSpan *result; | |
22046 | PyObject * obj0 = 0 ; | |
22047 | PyObject * obj1 = 0 ; | |
22048 | char *kwnames[] = { | |
22049 | (char *) "self",(char *) "diff", NULL | |
22050 | }; | |
22051 | ||
22052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
22053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22055 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22056 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22057 | SWIG_fail; | |
22058 | if (arg2 == NULL) { | |
22059 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22060 | SWIG_fail; | |
22061 | } | |
22062 | { | |
22063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22064 | { | |
22065 | wxTimeSpan &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2); | |
22066 | result = (wxTimeSpan *) &_result_ref; | |
22067 | } | |
22068 | ||
22069 | wxPyEndAllowThreads(__tstate); | |
22070 | if (PyErr_Occurred()) SWIG_fail; | |
22071 | } | |
22072 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
22073 | return resultobj; | |
22074 | fail: | |
22075 | return NULL; | |
22076 | } | |
22077 | ||
22078 | ||
c32bde28 | 22079 | static PyObject *_wrap_TimeSpan_Multiply(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22080 | PyObject *resultobj; |
22081 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22082 | int arg2 ; | |
22083 | wxTimeSpan *result; | |
22084 | PyObject * obj0 = 0 ; | |
22085 | PyObject * obj1 = 0 ; | |
22086 | char *kwnames[] = { | |
22087 | (char *) "self",(char *) "n", NULL | |
22088 | }; | |
22089 | ||
22090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Multiply",kwnames,&obj0,&obj1)) goto fail; | |
22091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22093 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
22094 | if (PyErr_Occurred()) SWIG_fail; |
22095 | { | |
22096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22097 | { | |
22098 | wxTimeSpan &_result_ref = (arg1)->Multiply(arg2); | |
22099 | result = (wxTimeSpan *) &_result_ref; | |
22100 | } | |
22101 | ||
22102 | wxPyEndAllowThreads(__tstate); | |
22103 | if (PyErr_Occurred()) SWIG_fail; | |
22104 | } | |
22105 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
22106 | return resultobj; | |
22107 | fail: | |
22108 | return NULL; | |
22109 | } | |
22110 | ||
22111 | ||
c32bde28 | 22112 | static PyObject *_wrap_TimeSpan_Neg(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22113 | PyObject *resultobj; |
22114 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22115 | wxTimeSpan *result; | |
22116 | PyObject * obj0 = 0 ; | |
22117 | char *kwnames[] = { | |
22118 | (char *) "self", NULL | |
22119 | }; | |
22120 | ||
22121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Neg",kwnames,&obj0)) goto fail; | |
22122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22124 | { | |
22125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22126 | { | |
22127 | wxTimeSpan &_result_ref = (arg1)->Neg(); | |
22128 | result = (wxTimeSpan *) &_result_ref; | |
22129 | } | |
22130 | ||
22131 | wxPyEndAllowThreads(__tstate); | |
22132 | if (PyErr_Occurred()) SWIG_fail; | |
22133 | } | |
22134 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
22135 | return resultobj; | |
22136 | fail: | |
22137 | return NULL; | |
22138 | } | |
22139 | ||
22140 | ||
c32bde28 | 22141 | static PyObject *_wrap_TimeSpan_Abs(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22142 | PyObject *resultobj; |
22143 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22144 | wxTimeSpan result; | |
22145 | PyObject * obj0 = 0 ; | |
22146 | char *kwnames[] = { | |
22147 | (char *) "self", NULL | |
22148 | }; | |
22149 | ||
22150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Abs",kwnames,&obj0)) goto fail; | |
22151 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22152 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22153 | { | |
22154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22155 | result = ((wxTimeSpan const *)arg1)->Abs(); | |
22156 | ||
22157 | wxPyEndAllowThreads(__tstate); | |
22158 | if (PyErr_Occurred()) SWIG_fail; | |
22159 | } | |
22160 | { | |
22161 | wxTimeSpan * resultptr; | |
22162 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
22163 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
22164 | } | |
22165 | return resultobj; | |
22166 | fail: | |
22167 | return NULL; | |
22168 | } | |
22169 | ||
22170 | ||
c32bde28 | 22171 | static PyObject *_wrap_TimeSpan___iadd__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22172 | PyObject *resultobj; |
22173 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22174 | wxTimeSpan *arg2 = 0 ; | |
22175 | wxTimeSpan *result; | |
22176 | PyObject * obj0 = 0 ; | |
22177 | PyObject * obj1 = 0 ; | |
22178 | char *kwnames[] = { | |
22179 | (char *) "self",(char *) "diff", NULL | |
22180 | }; | |
22181 | ||
22182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
22183 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
c32bde28 | 22184 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
22185 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, |
22186 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22187 | SWIG_fail; | |
22188 | if (arg2 == NULL) { | |
22189 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22190 | SWIG_fail; | |
22191 | } | |
22192 | { | |
22193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22194 | { | |
22195 | wxTimeSpan &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2); | |
22196 | result = (wxTimeSpan *) &_result_ref; | |
22197 | } | |
22198 | ||
22199 | wxPyEndAllowThreads(__tstate); | |
22200 | if (PyErr_Occurred()) SWIG_fail; | |
22201 | } | |
c32bde28 | 22202 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1); |
d55e5bfc RD |
22203 | return resultobj; |
22204 | fail: | |
22205 | return NULL; | |
22206 | } | |
22207 | ||
22208 | ||
c32bde28 | 22209 | static PyObject *_wrap_TimeSpan___isub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22210 | PyObject *resultobj; |
22211 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22212 | wxTimeSpan *arg2 = 0 ; | |
22213 | wxTimeSpan *result; | |
22214 | PyObject * obj0 = 0 ; | |
22215 | PyObject * obj1 = 0 ; | |
22216 | char *kwnames[] = { | |
22217 | (char *) "self",(char *) "diff", NULL | |
22218 | }; | |
22219 | ||
22220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___isub__",kwnames,&obj0,&obj1)) goto fail; | |
22221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
c32bde28 | 22222 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
22223 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, |
22224 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22225 | SWIG_fail; | |
22226 | if (arg2 == NULL) { | |
22227 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22228 | SWIG_fail; | |
22229 | } | |
22230 | { | |
22231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22232 | { | |
22233 | wxTimeSpan &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2); | |
22234 | result = (wxTimeSpan *) &_result_ref; | |
22235 | } | |
22236 | ||
22237 | wxPyEndAllowThreads(__tstate); | |
22238 | if (PyErr_Occurred()) SWIG_fail; | |
22239 | } | |
c32bde28 | 22240 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1); |
d55e5bfc RD |
22241 | return resultobj; |
22242 | fail: | |
22243 | return NULL; | |
22244 | } | |
22245 | ||
22246 | ||
c32bde28 | 22247 | static PyObject *_wrap_TimeSpan___imul__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22248 | PyObject *resultobj; |
22249 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22250 | int arg2 ; | |
22251 | wxTimeSpan *result; | |
22252 | PyObject * obj0 = 0 ; | |
22253 | PyObject * obj1 = 0 ; | |
22254 | char *kwnames[] = { | |
22255 | (char *) "self",(char *) "n", NULL | |
22256 | }; | |
22257 | ||
22258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___imul__",kwnames,&obj0,&obj1)) goto fail; | |
22259 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
c32bde28 RD |
22260 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
22261 | arg2 = (int)SWIG_As_int(obj1); | |
d55e5bfc RD |
22262 | if (PyErr_Occurred()) SWIG_fail; |
22263 | { | |
22264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22265 | { | |
22266 | wxTimeSpan &_result_ref = (arg1)->operator *=(arg2); | |
22267 | result = (wxTimeSpan *) &_result_ref; | |
22268 | } | |
22269 | ||
22270 | wxPyEndAllowThreads(__tstate); | |
22271 | if (PyErr_Occurred()) SWIG_fail; | |
22272 | } | |
c32bde28 | 22273 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1); |
d55e5bfc RD |
22274 | return resultobj; |
22275 | fail: | |
22276 | return NULL; | |
22277 | } | |
22278 | ||
22279 | ||
c32bde28 | 22280 | static PyObject *_wrap_TimeSpan___neg__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22281 | PyObject *resultobj; |
22282 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22283 | wxTimeSpan *result; | |
22284 | PyObject * obj0 = 0 ; | |
22285 | char *kwnames[] = { | |
22286 | (char *) "self", NULL | |
22287 | }; | |
22288 | ||
22289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan___neg__",kwnames,&obj0)) goto fail; | |
22290 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22292 | { | |
22293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22294 | { | |
22295 | wxTimeSpan &_result_ref = (arg1)->operator -(); | |
22296 | result = (wxTimeSpan *) &_result_ref; | |
22297 | } | |
22298 | ||
22299 | wxPyEndAllowThreads(__tstate); | |
22300 | if (PyErr_Occurred()) SWIG_fail; | |
22301 | } | |
22302 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
22303 | return resultobj; | |
22304 | fail: | |
22305 | return NULL; | |
22306 | } | |
22307 | ||
22308 | ||
c32bde28 | 22309 | static PyObject *_wrap_TimeSpan___add__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22310 | PyObject *resultobj; |
22311 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22312 | wxTimeSpan *arg2 = 0 ; | |
22313 | wxTimeSpan result; | |
22314 | PyObject * obj0 = 0 ; | |
22315 | PyObject * obj1 = 0 ; | |
22316 | char *kwnames[] = { | |
22317 | (char *) "self",(char *) "other", NULL | |
22318 | }; | |
22319 | ||
22320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___add__",kwnames,&obj0,&obj1)) goto fail; | |
22321 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22322 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22323 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22324 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22325 | SWIG_fail; | |
22326 | if (arg2 == NULL) { | |
22327 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22328 | SWIG_fail; | |
22329 | } | |
22330 | { | |
22331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22332 | result = wxTimeSpan___add__(arg1,(wxTimeSpan const &)*arg2); | |
22333 | ||
22334 | wxPyEndAllowThreads(__tstate); | |
22335 | if (PyErr_Occurred()) SWIG_fail; | |
22336 | } | |
22337 | { | |
22338 | wxTimeSpan * resultptr; | |
22339 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
22340 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
22341 | } | |
22342 | return resultobj; | |
22343 | fail: | |
22344 | return NULL; | |
22345 | } | |
22346 | ||
22347 | ||
c32bde28 | 22348 | static PyObject *_wrap_TimeSpan___sub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22349 | PyObject *resultobj; |
22350 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22351 | wxTimeSpan *arg2 = 0 ; | |
22352 | wxTimeSpan result; | |
22353 | PyObject * obj0 = 0 ; | |
22354 | PyObject * obj1 = 0 ; | |
22355 | char *kwnames[] = { | |
22356 | (char *) "self",(char *) "other", NULL | |
22357 | }; | |
22358 | ||
22359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___sub__",kwnames,&obj0,&obj1)) goto fail; | |
22360 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22361 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22362 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22363 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22364 | SWIG_fail; | |
22365 | if (arg2 == NULL) { | |
22366 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22367 | SWIG_fail; | |
22368 | } | |
22369 | { | |
22370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22371 | result = wxTimeSpan___sub__(arg1,(wxTimeSpan const &)*arg2); | |
22372 | ||
22373 | wxPyEndAllowThreads(__tstate); | |
22374 | if (PyErr_Occurred()) SWIG_fail; | |
22375 | } | |
22376 | { | |
22377 | wxTimeSpan * resultptr; | |
22378 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
22379 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
22380 | } | |
22381 | return resultobj; | |
22382 | fail: | |
22383 | return NULL; | |
22384 | } | |
22385 | ||
22386 | ||
c32bde28 | 22387 | static PyObject *_wrap_TimeSpan___mul__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22388 | PyObject *resultobj; |
22389 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22390 | int arg2 ; | |
22391 | wxTimeSpan result; | |
22392 | PyObject * obj0 = 0 ; | |
22393 | PyObject * obj1 = 0 ; | |
22394 | char *kwnames[] = { | |
22395 | (char *) "self",(char *) "n", NULL | |
22396 | }; | |
22397 | ||
22398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___mul__",kwnames,&obj0,&obj1)) goto fail; | |
22399 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22400 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22401 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
22402 | if (PyErr_Occurred()) SWIG_fail; |
22403 | { | |
22404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22405 | result = wxTimeSpan___mul__(arg1,arg2); | |
22406 | ||
22407 | wxPyEndAllowThreads(__tstate); | |
22408 | if (PyErr_Occurred()) SWIG_fail; | |
22409 | } | |
22410 | { | |
22411 | wxTimeSpan * resultptr; | |
22412 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
22413 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
22414 | } | |
22415 | return resultobj; | |
22416 | fail: | |
22417 | return NULL; | |
22418 | } | |
22419 | ||
22420 | ||
c32bde28 | 22421 | static PyObject *_wrap_TimeSpan___rmul__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22422 | PyObject *resultobj; |
22423 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22424 | int arg2 ; | |
22425 | wxTimeSpan result; | |
22426 | PyObject * obj0 = 0 ; | |
22427 | PyObject * obj1 = 0 ; | |
22428 | char *kwnames[] = { | |
22429 | (char *) "self",(char *) "n", NULL | |
22430 | }; | |
22431 | ||
22432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___rmul__",kwnames,&obj0,&obj1)) goto fail; | |
22433 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22434 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22435 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
22436 | if (PyErr_Occurred()) SWIG_fail; |
22437 | { | |
22438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22439 | result = wxTimeSpan___rmul__(arg1,arg2); | |
22440 | ||
22441 | wxPyEndAllowThreads(__tstate); | |
22442 | if (PyErr_Occurred()) SWIG_fail; | |
22443 | } | |
22444 | { | |
22445 | wxTimeSpan * resultptr; | |
22446 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
22447 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
22448 | } | |
22449 | return resultobj; | |
22450 | fail: | |
22451 | return NULL; | |
22452 | } | |
22453 | ||
22454 | ||
c32bde28 | 22455 | static PyObject *_wrap_TimeSpan___lt__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22456 | PyObject *resultobj; |
22457 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22458 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
22459 | bool result; | |
22460 | PyObject * obj0 = 0 ; | |
22461 | PyObject * obj1 = 0 ; | |
22462 | char *kwnames[] = { | |
22463 | (char *) "self",(char *) "other", NULL | |
22464 | }; | |
22465 | ||
22466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___lt__",kwnames,&obj0,&obj1)) goto fail; | |
22467 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22469 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22470 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22471 | { | |
22472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22473 | result = (bool)wxTimeSpan___lt__(arg1,(wxTimeSpan const *)arg2); | |
22474 | ||
22475 | wxPyEndAllowThreads(__tstate); | |
22476 | if (PyErr_Occurred()) SWIG_fail; | |
22477 | } | |
22478 | { | |
22479 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22480 | } | |
22481 | return resultobj; | |
22482 | fail: | |
22483 | return NULL; | |
22484 | } | |
22485 | ||
22486 | ||
c32bde28 | 22487 | static PyObject *_wrap_TimeSpan___le__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22488 | PyObject *resultobj; |
22489 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22490 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
22491 | bool result; | |
22492 | PyObject * obj0 = 0 ; | |
22493 | PyObject * obj1 = 0 ; | |
22494 | char *kwnames[] = { | |
22495 | (char *) "self",(char *) "other", NULL | |
22496 | }; | |
22497 | ||
22498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___le__",kwnames,&obj0,&obj1)) goto fail; | |
22499 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22500 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22501 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22503 | { | |
22504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22505 | result = (bool)wxTimeSpan___le__(arg1,(wxTimeSpan const *)arg2); | |
22506 | ||
22507 | wxPyEndAllowThreads(__tstate); | |
22508 | if (PyErr_Occurred()) SWIG_fail; | |
22509 | } | |
22510 | { | |
22511 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22512 | } | |
22513 | return resultobj; | |
22514 | fail: | |
22515 | return NULL; | |
22516 | } | |
22517 | ||
22518 | ||
c32bde28 | 22519 | static PyObject *_wrap_TimeSpan___gt__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22520 | PyObject *resultobj; |
22521 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22522 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
22523 | bool result; | |
22524 | PyObject * obj0 = 0 ; | |
22525 | PyObject * obj1 = 0 ; | |
22526 | char *kwnames[] = { | |
22527 | (char *) "self",(char *) "other", NULL | |
22528 | }; | |
22529 | ||
22530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___gt__",kwnames,&obj0,&obj1)) goto fail; | |
22531 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22532 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22533 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22534 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22535 | { | |
22536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22537 | result = (bool)wxTimeSpan___gt__(arg1,(wxTimeSpan const *)arg2); | |
22538 | ||
22539 | wxPyEndAllowThreads(__tstate); | |
22540 | if (PyErr_Occurred()) SWIG_fail; | |
22541 | } | |
22542 | { | |
22543 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22544 | } | |
22545 | return resultobj; | |
22546 | fail: | |
22547 | return NULL; | |
22548 | } | |
22549 | ||
22550 | ||
c32bde28 | 22551 | static PyObject *_wrap_TimeSpan___ge__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22552 | PyObject *resultobj; |
22553 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22554 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
22555 | bool result; | |
22556 | PyObject * obj0 = 0 ; | |
22557 | PyObject * obj1 = 0 ; | |
22558 | char *kwnames[] = { | |
22559 | (char *) "self",(char *) "other", NULL | |
22560 | }; | |
22561 | ||
22562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ge__",kwnames,&obj0,&obj1)) goto fail; | |
22563 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22564 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22565 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22566 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22567 | { | |
22568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22569 | result = (bool)wxTimeSpan___ge__(arg1,(wxTimeSpan const *)arg2); | |
22570 | ||
22571 | wxPyEndAllowThreads(__tstate); | |
22572 | if (PyErr_Occurred()) SWIG_fail; | |
22573 | } | |
22574 | { | |
22575 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22576 | } | |
22577 | return resultobj; | |
22578 | fail: | |
22579 | return NULL; | |
22580 | } | |
22581 | ||
22582 | ||
c32bde28 | 22583 | static PyObject *_wrap_TimeSpan___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22584 | PyObject *resultobj; |
22585 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22586 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
22587 | bool result; | |
22588 | PyObject * obj0 = 0 ; | |
22589 | PyObject * obj1 = 0 ; | |
22590 | char *kwnames[] = { | |
22591 | (char *) "self",(char *) "other", NULL | |
22592 | }; | |
22593 | ||
22594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
22595 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22596 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22597 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22598 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22599 | { | |
22600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22601 | result = (bool)wxTimeSpan___eq__(arg1,(wxTimeSpan const *)arg2); | |
22602 | ||
22603 | wxPyEndAllowThreads(__tstate); | |
22604 | if (PyErr_Occurred()) SWIG_fail; | |
22605 | } | |
22606 | { | |
22607 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22608 | } | |
22609 | return resultobj; | |
22610 | fail: | |
22611 | return NULL; | |
22612 | } | |
22613 | ||
22614 | ||
c32bde28 | 22615 | static PyObject *_wrap_TimeSpan___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22616 | PyObject *resultobj; |
22617 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22618 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
22619 | bool result; | |
22620 | PyObject * obj0 = 0 ; | |
22621 | PyObject * obj1 = 0 ; | |
22622 | char *kwnames[] = { | |
22623 | (char *) "self",(char *) "other", NULL | |
22624 | }; | |
22625 | ||
22626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
22627 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22628 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22629 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22630 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22631 | { | |
22632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22633 | result = (bool)wxTimeSpan___ne__(arg1,(wxTimeSpan const *)arg2); | |
22634 | ||
22635 | wxPyEndAllowThreads(__tstate); | |
22636 | if (PyErr_Occurred()) SWIG_fail; | |
22637 | } | |
22638 | { | |
22639 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22640 | } | |
22641 | return resultobj; | |
22642 | fail: | |
22643 | return NULL; | |
22644 | } | |
22645 | ||
22646 | ||
c32bde28 | 22647 | static PyObject *_wrap_TimeSpan_IsNull(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22648 | PyObject *resultobj; |
22649 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22650 | bool result; | |
22651 | PyObject * obj0 = 0 ; | |
22652 | char *kwnames[] = { | |
22653 | (char *) "self", NULL | |
22654 | }; | |
22655 | ||
22656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNull",kwnames,&obj0)) goto fail; | |
22657 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22659 | { | |
22660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22661 | result = (bool)((wxTimeSpan const *)arg1)->IsNull(); | |
22662 | ||
22663 | wxPyEndAllowThreads(__tstate); | |
22664 | if (PyErr_Occurred()) SWIG_fail; | |
22665 | } | |
22666 | { | |
22667 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22668 | } | |
22669 | return resultobj; | |
22670 | fail: | |
22671 | return NULL; | |
22672 | } | |
22673 | ||
22674 | ||
c32bde28 | 22675 | static PyObject *_wrap_TimeSpan_IsPositive(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22676 | PyObject *resultobj; |
22677 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22678 | bool result; | |
22679 | PyObject * obj0 = 0 ; | |
22680 | char *kwnames[] = { | |
22681 | (char *) "self", NULL | |
22682 | }; | |
22683 | ||
22684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsPositive",kwnames,&obj0)) goto fail; | |
22685 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22686 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22687 | { | |
22688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22689 | result = (bool)((wxTimeSpan const *)arg1)->IsPositive(); | |
22690 | ||
22691 | wxPyEndAllowThreads(__tstate); | |
22692 | if (PyErr_Occurred()) SWIG_fail; | |
22693 | } | |
22694 | { | |
22695 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22696 | } | |
22697 | return resultobj; | |
22698 | fail: | |
22699 | return NULL; | |
22700 | } | |
22701 | ||
22702 | ||
c32bde28 | 22703 | static PyObject *_wrap_TimeSpan_IsNegative(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22704 | PyObject *resultobj; |
22705 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22706 | bool result; | |
22707 | PyObject * obj0 = 0 ; | |
22708 | char *kwnames[] = { | |
22709 | (char *) "self", NULL | |
22710 | }; | |
22711 | ||
22712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNegative",kwnames,&obj0)) goto fail; | |
22713 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22714 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22715 | { | |
22716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22717 | result = (bool)((wxTimeSpan const *)arg1)->IsNegative(); | |
22718 | ||
22719 | wxPyEndAllowThreads(__tstate); | |
22720 | if (PyErr_Occurred()) SWIG_fail; | |
22721 | } | |
22722 | { | |
22723 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22724 | } | |
22725 | return resultobj; | |
22726 | fail: | |
22727 | return NULL; | |
22728 | } | |
22729 | ||
22730 | ||
c32bde28 | 22731 | static PyObject *_wrap_TimeSpan_IsEqualTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22732 | PyObject *resultobj; |
22733 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22734 | wxTimeSpan *arg2 = 0 ; | |
22735 | bool result; | |
22736 | PyObject * obj0 = 0 ; | |
22737 | PyObject * obj1 = 0 ; | |
22738 | char *kwnames[] = { | |
22739 | (char *) "self",(char *) "ts", NULL | |
22740 | }; | |
22741 | ||
22742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsEqualTo",kwnames,&obj0,&obj1)) goto fail; | |
22743 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22744 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22745 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22746 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22747 | SWIG_fail; | |
22748 | if (arg2 == NULL) { | |
22749 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22750 | SWIG_fail; | |
22751 | } | |
22752 | { | |
22753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22754 | result = (bool)((wxTimeSpan const *)arg1)->IsEqualTo((wxTimeSpan const &)*arg2); | |
22755 | ||
22756 | wxPyEndAllowThreads(__tstate); | |
22757 | if (PyErr_Occurred()) SWIG_fail; | |
22758 | } | |
22759 | { | |
22760 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22761 | } | |
22762 | return resultobj; | |
22763 | fail: | |
22764 | return NULL; | |
22765 | } | |
22766 | ||
22767 | ||
c32bde28 | 22768 | static PyObject *_wrap_TimeSpan_IsLongerThan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22769 | PyObject *resultobj; |
22770 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22771 | wxTimeSpan *arg2 = 0 ; | |
22772 | bool result; | |
22773 | PyObject * obj0 = 0 ; | |
22774 | PyObject * obj1 = 0 ; | |
22775 | char *kwnames[] = { | |
22776 | (char *) "self",(char *) "ts", NULL | |
22777 | }; | |
22778 | ||
22779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsLongerThan",kwnames,&obj0,&obj1)) goto fail; | |
22780 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22781 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22782 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22783 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22784 | SWIG_fail; | |
22785 | if (arg2 == NULL) { | |
22786 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22787 | SWIG_fail; | |
22788 | } | |
22789 | { | |
22790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22791 | result = (bool)((wxTimeSpan const *)arg1)->IsLongerThan((wxTimeSpan const &)*arg2); | |
22792 | ||
22793 | wxPyEndAllowThreads(__tstate); | |
22794 | if (PyErr_Occurred()) SWIG_fail; | |
22795 | } | |
22796 | { | |
22797 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22798 | } | |
22799 | return resultobj; | |
22800 | fail: | |
22801 | return NULL; | |
22802 | } | |
22803 | ||
22804 | ||
c32bde28 | 22805 | static PyObject *_wrap_TimeSpan_IsShorterThan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22806 | PyObject *resultobj; |
22807 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22808 | wxTimeSpan *arg2 = 0 ; | |
22809 | bool result; | |
22810 | PyObject * obj0 = 0 ; | |
22811 | PyObject * obj1 = 0 ; | |
22812 | char *kwnames[] = { | |
22813 | (char *) "self",(char *) "t", NULL | |
22814 | }; | |
22815 | ||
22816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsShorterThan",kwnames,&obj0,&obj1)) goto fail; | |
22817 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22818 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22819 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22820 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22821 | SWIG_fail; | |
22822 | if (arg2 == NULL) { | |
22823 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22824 | SWIG_fail; | |
22825 | } | |
22826 | { | |
22827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22828 | result = (bool)((wxTimeSpan const *)arg1)->IsShorterThan((wxTimeSpan const &)*arg2); | |
22829 | ||
22830 | wxPyEndAllowThreads(__tstate); | |
22831 | if (PyErr_Occurred()) SWIG_fail; | |
22832 | } | |
22833 | { | |
22834 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22835 | } | |
22836 | return resultobj; | |
22837 | fail: | |
22838 | return NULL; | |
22839 | } | |
22840 | ||
22841 | ||
c32bde28 | 22842 | static PyObject *_wrap_TimeSpan_GetWeeks(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22843 | PyObject *resultobj; |
22844 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22845 | int result; | |
22846 | PyObject * obj0 = 0 ; | |
22847 | char *kwnames[] = { | |
22848 | (char *) "self", NULL | |
22849 | }; | |
22850 | ||
22851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetWeeks",kwnames,&obj0)) goto fail; | |
22852 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22853 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22854 | { | |
22855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22856 | result = (int)((wxTimeSpan const *)arg1)->GetWeeks(); | |
22857 | ||
22858 | wxPyEndAllowThreads(__tstate); | |
22859 | if (PyErr_Occurred()) SWIG_fail; | |
22860 | } | |
c32bde28 | 22861 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
22862 | return resultobj; |
22863 | fail: | |
22864 | return NULL; | |
22865 | } | |
22866 | ||
22867 | ||
c32bde28 | 22868 | static PyObject *_wrap_TimeSpan_GetDays(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22869 | PyObject *resultobj; |
22870 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22871 | int result; | |
22872 | PyObject * obj0 = 0 ; | |
22873 | char *kwnames[] = { | |
22874 | (char *) "self", NULL | |
22875 | }; | |
22876 | ||
22877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetDays",kwnames,&obj0)) goto fail; | |
22878 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22880 | { | |
22881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22882 | result = (int)((wxTimeSpan const *)arg1)->GetDays(); | |
22883 | ||
22884 | wxPyEndAllowThreads(__tstate); | |
22885 | if (PyErr_Occurred()) SWIG_fail; | |
22886 | } | |
c32bde28 | 22887 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
22888 | return resultobj; |
22889 | fail: | |
22890 | return NULL; | |
22891 | } | |
22892 | ||
22893 | ||
c32bde28 | 22894 | static PyObject *_wrap_TimeSpan_GetHours(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22895 | PyObject *resultobj; |
22896 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22897 | int result; | |
22898 | PyObject * obj0 = 0 ; | |
22899 | char *kwnames[] = { | |
22900 | (char *) "self", NULL | |
22901 | }; | |
22902 | ||
22903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetHours",kwnames,&obj0)) goto fail; | |
22904 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22905 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22906 | { | |
22907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22908 | result = (int)((wxTimeSpan const *)arg1)->GetHours(); | |
22909 | ||
22910 | wxPyEndAllowThreads(__tstate); | |
22911 | if (PyErr_Occurred()) SWIG_fail; | |
22912 | } | |
c32bde28 | 22913 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
22914 | return resultobj; |
22915 | fail: | |
22916 | return NULL; | |
22917 | } | |
22918 | ||
22919 | ||
c32bde28 | 22920 | static PyObject *_wrap_TimeSpan_GetMinutes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22921 | PyObject *resultobj; |
22922 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22923 | int result; | |
22924 | PyObject * obj0 = 0 ; | |
22925 | char *kwnames[] = { | |
22926 | (char *) "self", NULL | |
22927 | }; | |
22928 | ||
22929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMinutes",kwnames,&obj0)) goto fail; | |
22930 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22931 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22932 | { | |
22933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22934 | result = (int)((wxTimeSpan const *)arg1)->GetMinutes(); | |
22935 | ||
22936 | wxPyEndAllowThreads(__tstate); | |
22937 | if (PyErr_Occurred()) SWIG_fail; | |
22938 | } | |
c32bde28 | 22939 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
22940 | return resultobj; |
22941 | fail: | |
22942 | return NULL; | |
22943 | } | |
22944 | ||
22945 | ||
c32bde28 | 22946 | static PyObject *_wrap_TimeSpan_GetSeconds(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22947 | PyObject *resultobj; |
22948 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22949 | wxLongLong result; | |
22950 | PyObject * obj0 = 0 ; | |
22951 | char *kwnames[] = { | |
22952 | (char *) "self", NULL | |
22953 | }; | |
22954 | ||
22955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetSeconds",kwnames,&obj0)) goto fail; | |
22956 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22958 | { | |
22959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22960 | result = ((wxTimeSpan const *)arg1)->GetSeconds(); | |
22961 | ||
22962 | wxPyEndAllowThreads(__tstate); | |
22963 | if (PyErr_Occurred()) SWIG_fail; | |
22964 | } | |
22965 | { | |
22966 | PyObject *hi, *lo, *shifter, *shifted; | |
22967 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
22968 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
22969 | shifter = PyLong_FromLong(32); | |
22970 | shifted = PyNumber_Lshift(hi, shifter); | |
22971 | resultobj = PyNumber_Or(shifted, lo); | |
22972 | Py_DECREF(hi); | |
22973 | Py_DECREF(lo); | |
22974 | Py_DECREF(shifter); | |
22975 | Py_DECREF(shifted); | |
22976 | } | |
22977 | return resultobj; | |
22978 | fail: | |
22979 | return NULL; | |
22980 | } | |
22981 | ||
22982 | ||
c32bde28 | 22983 | static PyObject *_wrap_TimeSpan_GetMilliseconds(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22984 | PyObject *resultobj; |
22985 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22986 | wxLongLong result; | |
22987 | PyObject * obj0 = 0 ; | |
22988 | char *kwnames[] = { | |
22989 | (char *) "self", NULL | |
22990 | }; | |
22991 | ||
22992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMilliseconds",kwnames,&obj0)) goto fail; | |
22993 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22994 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22995 | { | |
22996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22997 | result = ((wxTimeSpan const *)arg1)->GetMilliseconds(); | |
22998 | ||
22999 | wxPyEndAllowThreads(__tstate); | |
23000 | if (PyErr_Occurred()) SWIG_fail; | |
23001 | } | |
23002 | { | |
23003 | PyObject *hi, *lo, *shifter, *shifted; | |
23004 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
23005 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
23006 | shifter = PyLong_FromLong(32); | |
23007 | shifted = PyNumber_Lshift(hi, shifter); | |
23008 | resultobj = PyNumber_Or(shifted, lo); | |
23009 | Py_DECREF(hi); | |
23010 | Py_DECREF(lo); | |
23011 | Py_DECREF(shifter); | |
23012 | Py_DECREF(shifted); | |
23013 | } | |
23014 | return resultobj; | |
23015 | fail: | |
23016 | return NULL; | |
23017 | } | |
23018 | ||
23019 | ||
c32bde28 | 23020 | static PyObject *_wrap_TimeSpan_Format(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23021 | PyObject *resultobj; |
23022 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
23023 | wxString const &arg2_defvalue = wxPyTimeSpanFormatStr ; | |
23024 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
23025 | wxString result; | |
ae8162c8 | 23026 | bool temp2 = false ; |
d55e5bfc RD |
23027 | PyObject * obj0 = 0 ; |
23028 | PyObject * obj1 = 0 ; | |
23029 | char *kwnames[] = { | |
23030 | (char *) "self",(char *) "format", NULL | |
23031 | }; | |
23032 | ||
23033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TimeSpan_Format",kwnames,&obj0,&obj1)) goto fail; | |
23034 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
23035 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23036 | if (obj1) { | |
23037 | { | |
23038 | arg2 = wxString_in_helper(obj1); | |
23039 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 23040 | temp2 = true; |
d55e5bfc RD |
23041 | } |
23042 | } | |
23043 | { | |
23044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23045 | result = ((wxTimeSpan const *)arg1)->Format((wxString const &)*arg2); | |
23046 | ||
23047 | wxPyEndAllowThreads(__tstate); | |
23048 | if (PyErr_Occurred()) SWIG_fail; | |
23049 | } | |
23050 | { | |
23051 | #if wxUSE_UNICODE | |
23052 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
23053 | #else | |
23054 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
23055 | #endif | |
23056 | } | |
23057 | { | |
23058 | if (temp2) | |
23059 | delete arg2; | |
23060 | } | |
23061 | return resultobj; | |
23062 | fail: | |
23063 | { | |
23064 | if (temp2) | |
23065 | delete arg2; | |
23066 | } | |
23067 | return NULL; | |
23068 | } | |
23069 | ||
23070 | ||
c32bde28 | 23071 | static PyObject * TimeSpan_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
23072 | PyObject *obj; |
23073 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23074 | SWIG_TypeClientData(SWIGTYPE_p_wxTimeSpan, obj); | |
23075 | Py_INCREF(obj); | |
23076 | return Py_BuildValue((char *)""); | |
23077 | } | |
c32bde28 | 23078 | static PyObject *_wrap_new_DateSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23079 | PyObject *resultobj; |
23080 | int arg1 = (int) 0 ; | |
23081 | int arg2 = (int) 0 ; | |
23082 | int arg3 = (int) 0 ; | |
23083 | int arg4 = (int) 0 ; | |
23084 | wxDateSpan *result; | |
23085 | PyObject * obj0 = 0 ; | |
23086 | PyObject * obj1 = 0 ; | |
23087 | PyObject * obj2 = 0 ; | |
23088 | PyObject * obj3 = 0 ; | |
23089 | char *kwnames[] = { | |
23090 | (char *) "years",(char *) "months",(char *) "weeks",(char *) "days", NULL | |
23091 | }; | |
23092 | ||
23093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_DateSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
23094 | if (obj0) { | |
c32bde28 | 23095 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
23096 | if (PyErr_Occurred()) SWIG_fail; |
23097 | } | |
23098 | if (obj1) { | |
c32bde28 | 23099 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
23100 | if (PyErr_Occurred()) SWIG_fail; |
23101 | } | |
23102 | if (obj2) { | |
c32bde28 | 23103 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
23104 | if (PyErr_Occurred()) SWIG_fail; |
23105 | } | |
23106 | if (obj3) { | |
c32bde28 | 23107 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
23108 | if (PyErr_Occurred()) SWIG_fail; |
23109 | } | |
23110 | { | |
23111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23112 | result = (wxDateSpan *)new wxDateSpan(arg1,arg2,arg3,arg4); | |
23113 | ||
23114 | wxPyEndAllowThreads(__tstate); | |
23115 | if (PyErr_Occurred()) SWIG_fail; | |
23116 | } | |
23117 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1); | |
23118 | return resultobj; | |
23119 | fail: | |
23120 | return NULL; | |
23121 | } | |
23122 | ||
23123 | ||
c32bde28 | 23124 | static PyObject *_wrap_delete_DateSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23125 | PyObject *resultobj; |
23126 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23127 | PyObject * obj0 = 0 ; | |
23128 | char *kwnames[] = { | |
23129 | (char *) "self", NULL | |
23130 | }; | |
23131 | ||
23132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateSpan",kwnames,&obj0)) goto fail; | |
23133 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23134 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23135 | { | |
23136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23137 | delete arg1; | |
23138 | ||
23139 | wxPyEndAllowThreads(__tstate); | |
23140 | if (PyErr_Occurred()) SWIG_fail; | |
23141 | } | |
23142 | Py_INCREF(Py_None); resultobj = Py_None; | |
23143 | return resultobj; | |
23144 | fail: | |
23145 | return NULL; | |
23146 | } | |
23147 | ||
23148 | ||
c32bde28 | 23149 | static PyObject *_wrap_DateSpan_Days(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23150 | PyObject *resultobj; |
23151 | int arg1 ; | |
23152 | wxDateSpan result; | |
23153 | PyObject * obj0 = 0 ; | |
23154 | char *kwnames[] = { | |
23155 | (char *) "days", NULL | |
23156 | }; | |
23157 | ||
23158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Days",kwnames,&obj0)) goto fail; | |
c32bde28 | 23159 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
23160 | if (PyErr_Occurred()) SWIG_fail; |
23161 | { | |
23162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23163 | result = wxDateSpan::Days(arg1); | |
23164 | ||
23165 | wxPyEndAllowThreads(__tstate); | |
23166 | if (PyErr_Occurred()) SWIG_fail; | |
23167 | } | |
23168 | { | |
23169 | wxDateSpan * resultptr; | |
23170 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23171 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23172 | } | |
23173 | return resultobj; | |
23174 | fail: | |
23175 | return NULL; | |
23176 | } | |
23177 | ||
23178 | ||
c32bde28 | 23179 | static PyObject *_wrap_DateSpan_Day(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23180 | PyObject *resultobj; |
23181 | wxDateSpan result; | |
23182 | char *kwnames[] = { | |
23183 | NULL | |
23184 | }; | |
23185 | ||
23186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Day",kwnames)) goto fail; | |
23187 | { | |
23188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23189 | result = wxDateSpan::Day(); | |
23190 | ||
23191 | wxPyEndAllowThreads(__tstate); | |
23192 | if (PyErr_Occurred()) SWIG_fail; | |
23193 | } | |
23194 | { | |
23195 | wxDateSpan * resultptr; | |
23196 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23197 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23198 | } | |
23199 | return resultobj; | |
23200 | fail: | |
23201 | return NULL; | |
23202 | } | |
23203 | ||
23204 | ||
c32bde28 | 23205 | static PyObject *_wrap_DateSpan_Weeks(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23206 | PyObject *resultobj; |
23207 | int arg1 ; | |
23208 | wxDateSpan result; | |
23209 | PyObject * obj0 = 0 ; | |
23210 | char *kwnames[] = { | |
23211 | (char *) "weeks", NULL | |
23212 | }; | |
23213 | ||
23214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Weeks",kwnames,&obj0)) goto fail; | |
c32bde28 | 23215 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
23216 | if (PyErr_Occurred()) SWIG_fail; |
23217 | { | |
23218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23219 | result = wxDateSpan::Weeks(arg1); | |
23220 | ||
23221 | wxPyEndAllowThreads(__tstate); | |
23222 | if (PyErr_Occurred()) SWIG_fail; | |
23223 | } | |
23224 | { | |
23225 | wxDateSpan * resultptr; | |
23226 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23227 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23228 | } | |
23229 | return resultobj; | |
23230 | fail: | |
23231 | return NULL; | |
23232 | } | |
23233 | ||
23234 | ||
c32bde28 | 23235 | static PyObject *_wrap_DateSpan_Week(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23236 | PyObject *resultobj; |
23237 | wxDateSpan result; | |
23238 | char *kwnames[] = { | |
23239 | NULL | |
23240 | }; | |
23241 | ||
23242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Week",kwnames)) goto fail; | |
23243 | { | |
23244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23245 | result = wxDateSpan::Week(); | |
23246 | ||
23247 | wxPyEndAllowThreads(__tstate); | |
23248 | if (PyErr_Occurred()) SWIG_fail; | |
23249 | } | |
23250 | { | |
23251 | wxDateSpan * resultptr; | |
23252 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23253 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23254 | } | |
23255 | return resultobj; | |
23256 | fail: | |
23257 | return NULL; | |
23258 | } | |
23259 | ||
23260 | ||
c32bde28 | 23261 | static PyObject *_wrap_DateSpan_Months(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23262 | PyObject *resultobj; |
23263 | int arg1 ; | |
23264 | wxDateSpan result; | |
23265 | PyObject * obj0 = 0 ; | |
23266 | char *kwnames[] = { | |
23267 | (char *) "mon", NULL | |
23268 | }; | |
23269 | ||
23270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Months",kwnames,&obj0)) goto fail; | |
c32bde28 | 23271 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
23272 | if (PyErr_Occurred()) SWIG_fail; |
23273 | { | |
23274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23275 | result = wxDateSpan::Months(arg1); | |
23276 | ||
23277 | wxPyEndAllowThreads(__tstate); | |
23278 | if (PyErr_Occurred()) SWIG_fail; | |
23279 | } | |
23280 | { | |
23281 | wxDateSpan * resultptr; | |
23282 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23283 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23284 | } | |
23285 | return resultobj; | |
23286 | fail: | |
23287 | return NULL; | |
23288 | } | |
23289 | ||
23290 | ||
c32bde28 | 23291 | static PyObject *_wrap_DateSpan_Month(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23292 | PyObject *resultobj; |
23293 | wxDateSpan result; | |
23294 | char *kwnames[] = { | |
23295 | NULL | |
23296 | }; | |
23297 | ||
23298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Month",kwnames)) goto fail; | |
23299 | { | |
23300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23301 | result = wxDateSpan::Month(); | |
23302 | ||
23303 | wxPyEndAllowThreads(__tstate); | |
23304 | if (PyErr_Occurred()) SWIG_fail; | |
23305 | } | |
23306 | { | |
23307 | wxDateSpan * resultptr; | |
23308 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23309 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23310 | } | |
23311 | return resultobj; | |
23312 | fail: | |
23313 | return NULL; | |
23314 | } | |
23315 | ||
23316 | ||
c32bde28 | 23317 | static PyObject *_wrap_DateSpan_Years(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23318 | PyObject *resultobj; |
23319 | int arg1 ; | |
23320 | wxDateSpan result; | |
23321 | PyObject * obj0 = 0 ; | |
23322 | char *kwnames[] = { | |
23323 | (char *) "years", NULL | |
23324 | }; | |
23325 | ||
23326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Years",kwnames,&obj0)) goto fail; | |
c32bde28 | 23327 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
23328 | if (PyErr_Occurred()) SWIG_fail; |
23329 | { | |
23330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23331 | result = wxDateSpan::Years(arg1); | |
23332 | ||
23333 | wxPyEndAllowThreads(__tstate); | |
23334 | if (PyErr_Occurred()) SWIG_fail; | |
23335 | } | |
23336 | { | |
23337 | wxDateSpan * resultptr; | |
23338 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23339 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23340 | } | |
23341 | return resultobj; | |
23342 | fail: | |
23343 | return NULL; | |
23344 | } | |
23345 | ||
23346 | ||
c32bde28 | 23347 | static PyObject *_wrap_DateSpan_Year(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23348 | PyObject *resultobj; |
23349 | wxDateSpan result; | |
23350 | char *kwnames[] = { | |
23351 | NULL | |
23352 | }; | |
23353 | ||
23354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Year",kwnames)) goto fail; | |
23355 | { | |
23356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23357 | result = wxDateSpan::Year(); | |
23358 | ||
23359 | wxPyEndAllowThreads(__tstate); | |
23360 | if (PyErr_Occurred()) SWIG_fail; | |
23361 | } | |
23362 | { | |
23363 | wxDateSpan * resultptr; | |
23364 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23365 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23366 | } | |
23367 | return resultobj; | |
23368 | fail: | |
23369 | return NULL; | |
23370 | } | |
23371 | ||
23372 | ||
c32bde28 | 23373 | static PyObject *_wrap_DateSpan_SetYears(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23374 | PyObject *resultobj; |
23375 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23376 | int arg2 ; | |
23377 | wxDateSpan *result; | |
23378 | PyObject * obj0 = 0 ; | |
23379 | PyObject * obj1 = 0 ; | |
23380 | char *kwnames[] = { | |
23381 | (char *) "self",(char *) "n", NULL | |
23382 | }; | |
23383 | ||
23384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetYears",kwnames,&obj0,&obj1)) goto fail; | |
23385 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23386 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23387 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
23388 | if (PyErr_Occurred()) SWIG_fail; |
23389 | { | |
23390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23391 | { | |
23392 | wxDateSpan &_result_ref = (arg1)->SetYears(arg2); | |
23393 | result = (wxDateSpan *) &_result_ref; | |
23394 | } | |
23395 | ||
23396 | wxPyEndAllowThreads(__tstate); | |
23397 | if (PyErr_Occurred()) SWIG_fail; | |
23398 | } | |
23399 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23400 | return resultobj; | |
23401 | fail: | |
23402 | return NULL; | |
23403 | } | |
23404 | ||
23405 | ||
c32bde28 | 23406 | static PyObject *_wrap_DateSpan_SetMonths(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23407 | PyObject *resultobj; |
23408 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23409 | int arg2 ; | |
23410 | wxDateSpan *result; | |
23411 | PyObject * obj0 = 0 ; | |
23412 | PyObject * obj1 = 0 ; | |
23413 | char *kwnames[] = { | |
23414 | (char *) "self",(char *) "n", NULL | |
23415 | }; | |
23416 | ||
23417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetMonths",kwnames,&obj0,&obj1)) goto fail; | |
23418 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23419 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23420 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
23421 | if (PyErr_Occurred()) SWIG_fail; |
23422 | { | |
23423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23424 | { | |
23425 | wxDateSpan &_result_ref = (arg1)->SetMonths(arg2); | |
23426 | result = (wxDateSpan *) &_result_ref; | |
23427 | } | |
23428 | ||
23429 | wxPyEndAllowThreads(__tstate); | |
23430 | if (PyErr_Occurred()) SWIG_fail; | |
23431 | } | |
23432 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23433 | return resultobj; | |
23434 | fail: | |
23435 | return NULL; | |
23436 | } | |
23437 | ||
23438 | ||
c32bde28 | 23439 | static PyObject *_wrap_DateSpan_SetWeeks(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23440 | PyObject *resultobj; |
23441 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23442 | int arg2 ; | |
23443 | wxDateSpan *result; | |
23444 | PyObject * obj0 = 0 ; | |
23445 | PyObject * obj1 = 0 ; | |
23446 | char *kwnames[] = { | |
23447 | (char *) "self",(char *) "n", NULL | |
23448 | }; | |
23449 | ||
23450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetWeeks",kwnames,&obj0,&obj1)) goto fail; | |
23451 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23452 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23453 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
23454 | if (PyErr_Occurred()) SWIG_fail; |
23455 | { | |
23456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23457 | { | |
23458 | wxDateSpan &_result_ref = (arg1)->SetWeeks(arg2); | |
23459 | result = (wxDateSpan *) &_result_ref; | |
23460 | } | |
23461 | ||
23462 | wxPyEndAllowThreads(__tstate); | |
23463 | if (PyErr_Occurred()) SWIG_fail; | |
23464 | } | |
23465 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23466 | return resultobj; | |
23467 | fail: | |
23468 | return NULL; | |
23469 | } | |
23470 | ||
23471 | ||
c32bde28 | 23472 | static PyObject *_wrap_DateSpan_SetDays(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23473 | PyObject *resultobj; |
23474 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23475 | int arg2 ; | |
23476 | wxDateSpan *result; | |
23477 | PyObject * obj0 = 0 ; | |
23478 | PyObject * obj1 = 0 ; | |
23479 | char *kwnames[] = { | |
23480 | (char *) "self",(char *) "n", NULL | |
23481 | }; | |
23482 | ||
23483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetDays",kwnames,&obj0,&obj1)) goto fail; | |
23484 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23485 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23486 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
23487 | if (PyErr_Occurred()) SWIG_fail; |
23488 | { | |
23489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23490 | { | |
23491 | wxDateSpan &_result_ref = (arg1)->SetDays(arg2); | |
23492 | result = (wxDateSpan *) &_result_ref; | |
23493 | } | |
23494 | ||
23495 | wxPyEndAllowThreads(__tstate); | |
23496 | if (PyErr_Occurred()) SWIG_fail; | |
23497 | } | |
23498 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23499 | return resultobj; | |
23500 | fail: | |
23501 | return NULL; | |
23502 | } | |
23503 | ||
23504 | ||
c32bde28 | 23505 | static PyObject *_wrap_DateSpan_GetYears(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23506 | PyObject *resultobj; |
23507 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23508 | int result; | |
23509 | PyObject * obj0 = 0 ; | |
23510 | char *kwnames[] = { | |
23511 | (char *) "self", NULL | |
23512 | }; | |
23513 | ||
23514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetYears",kwnames,&obj0)) goto fail; | |
23515 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23516 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23517 | { | |
23518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23519 | result = (int)((wxDateSpan const *)arg1)->GetYears(); | |
23520 | ||
23521 | wxPyEndAllowThreads(__tstate); | |
23522 | if (PyErr_Occurred()) SWIG_fail; | |
23523 | } | |
c32bde28 | 23524 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
23525 | return resultobj; |
23526 | fail: | |
23527 | return NULL; | |
23528 | } | |
23529 | ||
23530 | ||
c32bde28 | 23531 | static PyObject *_wrap_DateSpan_GetMonths(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23532 | PyObject *resultobj; |
23533 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23534 | int result; | |
23535 | PyObject * obj0 = 0 ; | |
23536 | char *kwnames[] = { | |
23537 | (char *) "self", NULL | |
23538 | }; | |
23539 | ||
23540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetMonths",kwnames,&obj0)) goto fail; | |
23541 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23543 | { | |
23544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23545 | result = (int)((wxDateSpan const *)arg1)->GetMonths(); | |
23546 | ||
23547 | wxPyEndAllowThreads(__tstate); | |
23548 | if (PyErr_Occurred()) SWIG_fail; | |
23549 | } | |
c32bde28 | 23550 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
23551 | return resultobj; |
23552 | fail: | |
23553 | return NULL; | |
23554 | } | |
23555 | ||
23556 | ||
c32bde28 | 23557 | static PyObject *_wrap_DateSpan_GetWeeks(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23558 | PyObject *resultobj; |
23559 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23560 | int result; | |
23561 | PyObject * obj0 = 0 ; | |
23562 | char *kwnames[] = { | |
23563 | (char *) "self", NULL | |
23564 | }; | |
23565 | ||
23566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetWeeks",kwnames,&obj0)) goto fail; | |
23567 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23568 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23569 | { | |
23570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23571 | result = (int)((wxDateSpan const *)arg1)->GetWeeks(); | |
23572 | ||
23573 | wxPyEndAllowThreads(__tstate); | |
23574 | if (PyErr_Occurred()) SWIG_fail; | |
23575 | } | |
c32bde28 | 23576 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
23577 | return resultobj; |
23578 | fail: | |
23579 | return NULL; | |
23580 | } | |
23581 | ||
23582 | ||
c32bde28 | 23583 | static PyObject *_wrap_DateSpan_GetDays(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23584 | PyObject *resultobj; |
23585 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23586 | int result; | |
23587 | PyObject * obj0 = 0 ; | |
23588 | char *kwnames[] = { | |
23589 | (char *) "self", NULL | |
23590 | }; | |
23591 | ||
23592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetDays",kwnames,&obj0)) goto fail; | |
23593 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23594 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23595 | { | |
23596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23597 | result = (int)((wxDateSpan const *)arg1)->GetDays(); | |
23598 | ||
23599 | wxPyEndAllowThreads(__tstate); | |
23600 | if (PyErr_Occurred()) SWIG_fail; | |
23601 | } | |
c32bde28 | 23602 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
23603 | return resultobj; |
23604 | fail: | |
23605 | return NULL; | |
23606 | } | |
23607 | ||
23608 | ||
c32bde28 | 23609 | static PyObject *_wrap_DateSpan_GetTotalDays(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23610 | PyObject *resultobj; |
23611 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23612 | int result; | |
23613 | PyObject * obj0 = 0 ; | |
23614 | char *kwnames[] = { | |
23615 | (char *) "self", NULL | |
23616 | }; | |
23617 | ||
23618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetTotalDays",kwnames,&obj0)) goto fail; | |
23619 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23620 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23621 | { | |
23622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23623 | result = (int)((wxDateSpan const *)arg1)->GetTotalDays(); | |
23624 | ||
23625 | wxPyEndAllowThreads(__tstate); | |
23626 | if (PyErr_Occurred()) SWIG_fail; | |
23627 | } | |
c32bde28 | 23628 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
23629 | return resultobj; |
23630 | fail: | |
23631 | return NULL; | |
23632 | } | |
23633 | ||
23634 | ||
c32bde28 | 23635 | static PyObject *_wrap_DateSpan_Add(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23636 | PyObject *resultobj; |
23637 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23638 | wxDateSpan *arg2 = 0 ; | |
23639 | wxDateSpan *result; | |
23640 | PyObject * obj0 = 0 ; | |
23641 | PyObject * obj1 = 0 ; | |
23642 | char *kwnames[] = { | |
23643 | (char *) "self",(char *) "other", NULL | |
23644 | }; | |
23645 | ||
23646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Add",kwnames,&obj0,&obj1)) goto fail; | |
23647 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23648 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23649 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23650 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23651 | SWIG_fail; | |
23652 | if (arg2 == NULL) { | |
23653 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23654 | SWIG_fail; | |
23655 | } | |
23656 | { | |
23657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23658 | { | |
23659 | wxDateSpan &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2); | |
23660 | result = (wxDateSpan *) &_result_ref; | |
23661 | } | |
23662 | ||
23663 | wxPyEndAllowThreads(__tstate); | |
23664 | if (PyErr_Occurred()) SWIG_fail; | |
23665 | } | |
23666 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23667 | return resultobj; | |
23668 | fail: | |
23669 | return NULL; | |
23670 | } | |
23671 | ||
23672 | ||
c32bde28 | 23673 | static PyObject *_wrap_DateSpan_Subtract(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23674 | PyObject *resultobj; |
23675 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23676 | wxDateSpan *arg2 = 0 ; | |
23677 | wxDateSpan *result; | |
23678 | PyObject * obj0 = 0 ; | |
23679 | PyObject * obj1 = 0 ; | |
23680 | char *kwnames[] = { | |
23681 | (char *) "self",(char *) "other", NULL | |
23682 | }; | |
23683 | ||
23684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
23685 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23686 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23687 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23688 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23689 | SWIG_fail; | |
23690 | if (arg2 == NULL) { | |
23691 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23692 | SWIG_fail; | |
23693 | } | |
23694 | { | |
23695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23696 | { | |
23697 | wxDateSpan &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2); | |
23698 | result = (wxDateSpan *) &_result_ref; | |
23699 | } | |
23700 | ||
23701 | wxPyEndAllowThreads(__tstate); | |
23702 | if (PyErr_Occurred()) SWIG_fail; | |
23703 | } | |
23704 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23705 | return resultobj; | |
23706 | fail: | |
23707 | return NULL; | |
23708 | } | |
23709 | ||
23710 | ||
c32bde28 | 23711 | static PyObject *_wrap_DateSpan_Neg(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23712 | PyObject *resultobj; |
23713 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23714 | wxDateSpan *result; | |
23715 | PyObject * obj0 = 0 ; | |
23716 | char *kwnames[] = { | |
23717 | (char *) "self", NULL | |
23718 | }; | |
23719 | ||
23720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Neg",kwnames,&obj0)) goto fail; | |
23721 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23722 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23723 | { | |
23724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23725 | { | |
23726 | wxDateSpan &_result_ref = (arg1)->Neg(); | |
23727 | result = (wxDateSpan *) &_result_ref; | |
23728 | } | |
23729 | ||
23730 | wxPyEndAllowThreads(__tstate); | |
23731 | if (PyErr_Occurred()) SWIG_fail; | |
23732 | } | |
23733 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23734 | return resultobj; | |
23735 | fail: | |
23736 | return NULL; | |
23737 | } | |
23738 | ||
23739 | ||
c32bde28 | 23740 | static PyObject *_wrap_DateSpan_Multiply(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23741 | PyObject *resultobj; |
23742 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23743 | int arg2 ; | |
23744 | wxDateSpan *result; | |
23745 | PyObject * obj0 = 0 ; | |
23746 | PyObject * obj1 = 0 ; | |
23747 | char *kwnames[] = { | |
23748 | (char *) "self",(char *) "factor", NULL | |
23749 | }; | |
23750 | ||
23751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Multiply",kwnames,&obj0,&obj1)) goto fail; | |
23752 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23753 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23754 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
23755 | if (PyErr_Occurred()) SWIG_fail; |
23756 | { | |
23757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23758 | { | |
23759 | wxDateSpan &_result_ref = (arg1)->Multiply(arg2); | |
23760 | result = (wxDateSpan *) &_result_ref; | |
23761 | } | |
23762 | ||
23763 | wxPyEndAllowThreads(__tstate); | |
23764 | if (PyErr_Occurred()) SWIG_fail; | |
23765 | } | |
23766 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23767 | return resultobj; | |
23768 | fail: | |
23769 | return NULL; | |
23770 | } | |
23771 | ||
23772 | ||
c32bde28 | 23773 | static PyObject *_wrap_DateSpan___iadd__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23774 | PyObject *resultobj; |
23775 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23776 | wxDateSpan *arg2 = 0 ; | |
23777 | wxDateSpan *result; | |
23778 | PyObject * obj0 = 0 ; | |
23779 | PyObject * obj1 = 0 ; | |
23780 | char *kwnames[] = { | |
23781 | (char *) "self",(char *) "other", NULL | |
23782 | }; | |
23783 | ||
23784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
23785 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
c32bde28 | 23786 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
23787 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, |
23788 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23789 | SWIG_fail; | |
23790 | if (arg2 == NULL) { | |
23791 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23792 | SWIG_fail; | |
23793 | } | |
23794 | { | |
23795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23796 | { | |
23797 | wxDateSpan &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2); | |
23798 | result = (wxDateSpan *) &_result_ref; | |
23799 | } | |
23800 | ||
23801 | wxPyEndAllowThreads(__tstate); | |
23802 | if (PyErr_Occurred()) SWIG_fail; | |
23803 | } | |
c32bde28 | 23804 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1); |
d55e5bfc RD |
23805 | return resultobj; |
23806 | fail: | |
23807 | return NULL; | |
23808 | } | |
23809 | ||
23810 | ||
c32bde28 | 23811 | static PyObject *_wrap_DateSpan___isub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23812 | PyObject *resultobj; |
23813 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23814 | wxDateSpan *arg2 = 0 ; | |
23815 | wxDateSpan *result; | |
23816 | PyObject * obj0 = 0 ; | |
23817 | PyObject * obj1 = 0 ; | |
23818 | char *kwnames[] = { | |
23819 | (char *) "self",(char *) "other", NULL | |
23820 | }; | |
23821 | ||
23822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___isub__",kwnames,&obj0,&obj1)) goto fail; | |
23823 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
c32bde28 | 23824 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
23825 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, |
23826 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23827 | SWIG_fail; | |
23828 | if (arg2 == NULL) { | |
23829 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23830 | SWIG_fail; | |
23831 | } | |
23832 | { | |
23833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23834 | { | |
23835 | wxDateSpan &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2); | |
23836 | result = (wxDateSpan *) &_result_ref; | |
23837 | } | |
23838 | ||
23839 | wxPyEndAllowThreads(__tstate); | |
23840 | if (PyErr_Occurred()) SWIG_fail; | |
23841 | } | |
c32bde28 | 23842 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1); |
d55e5bfc RD |
23843 | return resultobj; |
23844 | fail: | |
23845 | return NULL; | |
23846 | } | |
23847 | ||
23848 | ||
c32bde28 | 23849 | static PyObject *_wrap_DateSpan___neg__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23850 | PyObject *resultobj; |
23851 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23852 | wxDateSpan *result; | |
23853 | PyObject * obj0 = 0 ; | |
23854 | char *kwnames[] = { | |
23855 | (char *) "self", NULL | |
23856 | }; | |
23857 | ||
23858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan___neg__",kwnames,&obj0)) goto fail; | |
23859 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23860 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23861 | { | |
23862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23863 | { | |
23864 | wxDateSpan &_result_ref = (arg1)->operator -(); | |
23865 | result = (wxDateSpan *) &_result_ref; | |
23866 | } | |
23867 | ||
23868 | wxPyEndAllowThreads(__tstate); | |
23869 | if (PyErr_Occurred()) SWIG_fail; | |
23870 | } | |
23871 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23872 | return resultobj; | |
23873 | fail: | |
23874 | return NULL; | |
23875 | } | |
23876 | ||
23877 | ||
c32bde28 | 23878 | static PyObject *_wrap_DateSpan___imul__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23879 | PyObject *resultobj; |
23880 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23881 | int arg2 ; | |
23882 | wxDateSpan *result; | |
23883 | PyObject * obj0 = 0 ; | |
23884 | PyObject * obj1 = 0 ; | |
23885 | char *kwnames[] = { | |
23886 | (char *) "self",(char *) "factor", NULL | |
23887 | }; | |
23888 | ||
23889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___imul__",kwnames,&obj0,&obj1)) goto fail; | |
23890 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
c32bde28 RD |
23891 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
23892 | arg2 = (int)SWIG_As_int(obj1); | |
d55e5bfc RD |
23893 | if (PyErr_Occurred()) SWIG_fail; |
23894 | { | |
23895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23896 | { | |
23897 | wxDateSpan &_result_ref = (arg1)->operator *=(arg2); | |
23898 | result = (wxDateSpan *) &_result_ref; | |
23899 | } | |
23900 | ||
23901 | wxPyEndAllowThreads(__tstate); | |
23902 | if (PyErr_Occurred()) SWIG_fail; | |
23903 | } | |
c32bde28 | 23904 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1); |
d55e5bfc RD |
23905 | return resultobj; |
23906 | fail: | |
23907 | return NULL; | |
23908 | } | |
23909 | ||
23910 | ||
c32bde28 | 23911 | static PyObject *_wrap_DateSpan___add__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23912 | PyObject *resultobj; |
23913 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23914 | wxDateSpan *arg2 = 0 ; | |
23915 | wxDateSpan result; | |
23916 | PyObject * obj0 = 0 ; | |
23917 | PyObject * obj1 = 0 ; | |
23918 | char *kwnames[] = { | |
23919 | (char *) "self",(char *) "other", NULL | |
23920 | }; | |
23921 | ||
23922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___add__",kwnames,&obj0,&obj1)) goto fail; | |
23923 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23924 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23925 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23926 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23927 | SWIG_fail; | |
23928 | if (arg2 == NULL) { | |
23929 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23930 | SWIG_fail; | |
23931 | } | |
23932 | { | |
23933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23934 | result = wxDateSpan___add__(arg1,(wxDateSpan const &)*arg2); | |
23935 | ||
23936 | wxPyEndAllowThreads(__tstate); | |
23937 | if (PyErr_Occurred()) SWIG_fail; | |
23938 | } | |
23939 | { | |
23940 | wxDateSpan * resultptr; | |
23941 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23942 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23943 | } | |
23944 | return resultobj; | |
23945 | fail: | |
23946 | return NULL; | |
23947 | } | |
23948 | ||
23949 | ||
c32bde28 | 23950 | static PyObject *_wrap_DateSpan___sub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23951 | PyObject *resultobj; |
23952 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23953 | wxDateSpan *arg2 = 0 ; | |
23954 | wxDateSpan result; | |
23955 | PyObject * obj0 = 0 ; | |
23956 | PyObject * obj1 = 0 ; | |
23957 | char *kwnames[] = { | |
23958 | (char *) "self",(char *) "other", NULL | |
23959 | }; | |
23960 | ||
23961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___sub__",kwnames,&obj0,&obj1)) goto fail; | |
23962 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23963 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23964 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23965 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23966 | SWIG_fail; | |
23967 | if (arg2 == NULL) { | |
23968 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23969 | SWIG_fail; | |
23970 | } | |
23971 | { | |
23972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23973 | result = wxDateSpan___sub__(arg1,(wxDateSpan const &)*arg2); | |
23974 | ||
23975 | wxPyEndAllowThreads(__tstate); | |
23976 | if (PyErr_Occurred()) SWIG_fail; | |
23977 | } | |
23978 | { | |
23979 | wxDateSpan * resultptr; | |
23980 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23981 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23982 | } | |
23983 | return resultobj; | |
23984 | fail: | |
23985 | return NULL; | |
23986 | } | |
23987 | ||
23988 | ||
c32bde28 | 23989 | static PyObject *_wrap_DateSpan___mul__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23990 | PyObject *resultobj; |
23991 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23992 | int arg2 ; | |
23993 | wxDateSpan result; | |
23994 | PyObject * obj0 = 0 ; | |
23995 | PyObject * obj1 = 0 ; | |
23996 | char *kwnames[] = { | |
23997 | (char *) "self",(char *) "n", NULL | |
23998 | }; | |
23999 | ||
24000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___mul__",kwnames,&obj0,&obj1)) goto fail; | |
24001 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
24002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24003 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
24004 | if (PyErr_Occurred()) SWIG_fail; |
24005 | { | |
24006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24007 | result = wxDateSpan___mul__(arg1,arg2); | |
24008 | ||
24009 | wxPyEndAllowThreads(__tstate); | |
24010 | if (PyErr_Occurred()) SWIG_fail; | |
24011 | } | |
24012 | { | |
24013 | wxDateSpan * resultptr; | |
24014 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
24015 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
24016 | } | |
24017 | return resultobj; | |
24018 | fail: | |
24019 | return NULL; | |
24020 | } | |
24021 | ||
24022 | ||
c32bde28 | 24023 | static PyObject *_wrap_DateSpan___rmul__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24024 | PyObject *resultobj; |
24025 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
24026 | int arg2 ; | |
24027 | wxDateSpan result; | |
24028 | PyObject * obj0 = 0 ; | |
24029 | PyObject * obj1 = 0 ; | |
24030 | char *kwnames[] = { | |
24031 | (char *) "self",(char *) "n", NULL | |
24032 | }; | |
24033 | ||
24034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___rmul__",kwnames,&obj0,&obj1)) goto fail; | |
24035 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
24036 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24037 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
24038 | if (PyErr_Occurred()) SWIG_fail; |
24039 | { | |
24040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24041 | result = wxDateSpan___rmul__(arg1,arg2); | |
24042 | ||
24043 | wxPyEndAllowThreads(__tstate); | |
24044 | if (PyErr_Occurred()) SWIG_fail; | |
24045 | } | |
24046 | { | |
24047 | wxDateSpan * resultptr; | |
24048 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
24049 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
24050 | } | |
24051 | return resultobj; | |
24052 | fail: | |
24053 | return NULL; | |
24054 | } | |
24055 | ||
24056 | ||
c32bde28 | 24057 | static PyObject *_wrap_DateSpan___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24058 | PyObject *resultobj; |
24059 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
24060 | wxDateSpan *arg2 = (wxDateSpan *) 0 ; | |
24061 | bool result; | |
24062 | PyObject * obj0 = 0 ; | |
24063 | PyObject * obj1 = 0 ; | |
24064 | char *kwnames[] = { | |
24065 | (char *) "self",(char *) "other", NULL | |
24066 | }; | |
24067 | ||
24068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
24069 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
24070 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24071 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
24072 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24073 | { | |
24074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24075 | result = (bool)wxDateSpan___eq__(arg1,(wxDateSpan const *)arg2); | |
24076 | ||
24077 | wxPyEndAllowThreads(__tstate); | |
24078 | if (PyErr_Occurred()) SWIG_fail; | |
24079 | } | |
24080 | { | |
24081 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24082 | } | |
24083 | return resultobj; | |
24084 | fail: | |
24085 | return NULL; | |
24086 | } | |
24087 | ||
24088 | ||
c32bde28 | 24089 | static PyObject *_wrap_DateSpan___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24090 | PyObject *resultobj; |
24091 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
24092 | wxDateSpan *arg2 = (wxDateSpan *) 0 ; | |
24093 | bool result; | |
24094 | PyObject * obj0 = 0 ; | |
24095 | PyObject * obj1 = 0 ; | |
24096 | char *kwnames[] = { | |
24097 | (char *) "self",(char *) "other", NULL | |
24098 | }; | |
24099 | ||
24100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
24101 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
24102 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24103 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
24104 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24105 | { | |
24106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24107 | result = (bool)wxDateSpan___ne__(arg1,(wxDateSpan const *)arg2); | |
24108 | ||
24109 | wxPyEndAllowThreads(__tstate); | |
24110 | if (PyErr_Occurred()) SWIG_fail; | |
24111 | } | |
24112 | { | |
24113 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24114 | } | |
24115 | return resultobj; | |
24116 | fail: | |
24117 | return NULL; | |
24118 | } | |
24119 | ||
24120 | ||
c32bde28 | 24121 | static PyObject * DateSpan_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
24122 | PyObject *obj; |
24123 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24124 | SWIG_TypeClientData(SWIGTYPE_p_wxDateSpan, obj); | |
24125 | Py_INCREF(obj); | |
24126 | return Py_BuildValue((char *)""); | |
24127 | } | |
c32bde28 | 24128 | static PyObject *_wrap_GetLocalTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24129 | PyObject *resultobj; |
24130 | long result; | |
24131 | char *kwnames[] = { | |
24132 | NULL | |
24133 | }; | |
24134 | ||
24135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTime",kwnames)) goto fail; | |
24136 | { | |
24137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24138 | result = (long)wxGetLocalTime(); | |
24139 | ||
24140 | wxPyEndAllowThreads(__tstate); | |
24141 | if (PyErr_Occurred()) SWIG_fail; | |
24142 | } | |
c32bde28 | 24143 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
24144 | return resultobj; |
24145 | fail: | |
24146 | return NULL; | |
24147 | } | |
24148 | ||
24149 | ||
c32bde28 | 24150 | static PyObject *_wrap_GetUTCTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24151 | PyObject *resultobj; |
24152 | long result; | |
24153 | char *kwnames[] = { | |
24154 | NULL | |
24155 | }; | |
24156 | ||
24157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUTCTime",kwnames)) goto fail; | |
24158 | { | |
24159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24160 | result = (long)wxGetUTCTime(); | |
24161 | ||
24162 | wxPyEndAllowThreads(__tstate); | |
24163 | if (PyErr_Occurred()) SWIG_fail; | |
24164 | } | |
c32bde28 | 24165 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
24166 | return resultobj; |
24167 | fail: | |
24168 | return NULL; | |
24169 | } | |
24170 | ||
24171 | ||
c32bde28 | 24172 | static PyObject *_wrap_GetCurrentTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24173 | PyObject *resultobj; |
24174 | long result; | |
24175 | char *kwnames[] = { | |
24176 | NULL | |
24177 | }; | |
24178 | ||
24179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentTime",kwnames)) goto fail; | |
24180 | { | |
24181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24182 | result = (long)wxGetCurrentTime(); | |
24183 | ||
24184 | wxPyEndAllowThreads(__tstate); | |
24185 | if (PyErr_Occurred()) SWIG_fail; | |
24186 | } | |
c32bde28 | 24187 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
24188 | return resultobj; |
24189 | fail: | |
24190 | return NULL; | |
24191 | } | |
24192 | ||
24193 | ||
c32bde28 | 24194 | static PyObject *_wrap_GetLocalTimeMillis(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24195 | PyObject *resultobj; |
24196 | wxLongLong result; | |
24197 | char *kwnames[] = { | |
24198 | NULL | |
24199 | }; | |
24200 | ||
24201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTimeMillis",kwnames)) goto fail; | |
24202 | { | |
24203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24204 | result = wxGetLocalTimeMillis(); | |
24205 | ||
24206 | wxPyEndAllowThreads(__tstate); | |
24207 | if (PyErr_Occurred()) SWIG_fail; | |
24208 | } | |
24209 | { | |
24210 | PyObject *hi, *lo, *shifter, *shifted; | |
24211 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
24212 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
24213 | shifter = PyLong_FromLong(32); | |
24214 | shifted = PyNumber_Lshift(hi, shifter); | |
24215 | resultobj = PyNumber_Or(shifted, lo); | |
24216 | Py_DECREF(hi); | |
24217 | Py_DECREF(lo); | |
24218 | Py_DECREF(shifter); | |
24219 | Py_DECREF(shifted); | |
24220 | } | |
24221 | return resultobj; | |
24222 | fail: | |
24223 | return NULL; | |
24224 | } | |
24225 | ||
24226 | ||
c32bde28 | 24227 | static int _wrap_DefaultDateTime_set(PyObject *) { |
d55e5bfc RD |
24228 | PyErr_SetString(PyExc_TypeError,"Variable DefaultDateTime is read-only."); |
24229 | return 1; | |
24230 | } | |
24231 | ||
24232 | ||
24233 | static PyObject *_wrap_DefaultDateTime_get() { | |
24234 | PyObject *pyobj; | |
24235 | ||
24236 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultDateTime), SWIGTYPE_p_wxDateTime, 0); | |
24237 | return pyobj; | |
24238 | } | |
24239 | ||
24240 | ||
c32bde28 | 24241 | static PyObject *_wrap_new_DataFormat(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24242 | PyObject *resultobj; |
24243 | int arg1 ; | |
24244 | wxDataFormat *result; | |
24245 | PyObject * obj0 = 0 ; | |
24246 | char *kwnames[] = { | |
24247 | (char *) "type", NULL | |
24248 | }; | |
24249 | ||
24250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DataFormat",kwnames,&obj0)) goto fail; | |
c32bde28 | 24251 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
24252 | if (PyErr_Occurred()) SWIG_fail; |
24253 | { | |
24254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24255 | result = (wxDataFormat *)new wxDataFormat((wxDataFormatId )arg1); | |
24256 | ||
24257 | wxPyEndAllowThreads(__tstate); | |
24258 | if (PyErr_Occurred()) SWIG_fail; | |
24259 | } | |
24260 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1); | |
24261 | return resultobj; | |
24262 | fail: | |
24263 | return NULL; | |
24264 | } | |
24265 | ||
24266 | ||
c32bde28 | 24267 | static PyObject *_wrap_new_CustomDataFormat(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24268 | PyObject *resultobj; |
24269 | wxString *arg1 = 0 ; | |
24270 | wxDataFormat *result; | |
ae8162c8 | 24271 | bool temp1 = false ; |
d55e5bfc RD |
24272 | PyObject * obj0 = 0 ; |
24273 | char *kwnames[] = { | |
24274 | (char *) "format", NULL | |
24275 | }; | |
24276 | ||
24277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CustomDataFormat",kwnames,&obj0)) goto fail; | |
24278 | { | |
24279 | arg1 = wxString_in_helper(obj0); | |
24280 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 24281 | temp1 = true; |
d55e5bfc RD |
24282 | } |
24283 | { | |
24284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24285 | result = (wxDataFormat *)new wxDataFormat((wxString const &)*arg1); | |
24286 | ||
24287 | wxPyEndAllowThreads(__tstate); | |
24288 | if (PyErr_Occurred()) SWIG_fail; | |
24289 | } | |
24290 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1); | |
24291 | { | |
24292 | if (temp1) | |
24293 | delete arg1; | |
24294 | } | |
24295 | return resultobj; | |
24296 | fail: | |
24297 | { | |
24298 | if (temp1) | |
24299 | delete arg1; | |
24300 | } | |
24301 | return NULL; | |
24302 | } | |
24303 | ||
24304 | ||
c32bde28 | 24305 | static PyObject *_wrap_delete_DataFormat(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24306 | PyObject *resultobj; |
24307 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24308 | PyObject * obj0 = 0 ; | |
24309 | char *kwnames[] = { | |
24310 | (char *) "self", NULL | |
24311 | }; | |
24312 | ||
24313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataFormat",kwnames,&obj0)) goto fail; | |
24314 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24315 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24316 | { | |
24317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24318 | delete arg1; | |
24319 | ||
24320 | wxPyEndAllowThreads(__tstate); | |
24321 | if (PyErr_Occurred()) SWIG_fail; | |
24322 | } | |
24323 | Py_INCREF(Py_None); resultobj = Py_None; | |
24324 | return resultobj; | |
24325 | fail: | |
24326 | return NULL; | |
24327 | } | |
24328 | ||
24329 | ||
c32bde28 | 24330 | static PyObject *_wrap_DataFormat___eq____SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
24331 | PyObject *resultobj; |
24332 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24333 | int arg2 ; | |
24334 | bool result; | |
24335 | PyObject * obj0 = 0 ; | |
24336 | PyObject * obj1 = 0 ; | |
24337 | ||
24338 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail; | |
24339 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24340 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24341 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
24342 | if (PyErr_Occurred()) SWIG_fail; |
24343 | { | |
24344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24345 | result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormatId )arg2); | |
24346 | ||
24347 | wxPyEndAllowThreads(__tstate); | |
24348 | if (PyErr_Occurred()) SWIG_fail; | |
24349 | } | |
24350 | { | |
24351 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24352 | } | |
24353 | return resultobj; | |
24354 | fail: | |
24355 | return NULL; | |
24356 | } | |
24357 | ||
24358 | ||
c32bde28 | 24359 | static PyObject *_wrap_DataFormat___ne____SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
24360 | PyObject *resultobj; |
24361 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24362 | int arg2 ; | |
24363 | bool result; | |
24364 | PyObject * obj0 = 0 ; | |
24365 | PyObject * obj1 = 0 ; | |
24366 | ||
24367 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail; | |
24368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24370 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
24371 | if (PyErr_Occurred()) SWIG_fail; |
24372 | { | |
24373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24374 | result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormatId )arg2); | |
24375 | ||
24376 | wxPyEndAllowThreads(__tstate); | |
24377 | if (PyErr_Occurred()) SWIG_fail; | |
24378 | } | |
24379 | { | |
24380 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24381 | } | |
24382 | return resultobj; | |
24383 | fail: | |
24384 | return NULL; | |
24385 | } | |
24386 | ||
24387 | ||
c32bde28 | 24388 | static PyObject *_wrap_DataFormat___eq____SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
24389 | PyObject *resultobj; |
24390 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24391 | wxDataFormat *arg2 = 0 ; | |
24392 | bool result; | |
24393 | PyObject * obj0 = 0 ; | |
24394 | PyObject * obj1 = 0 ; | |
24395 | ||
24396 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail; | |
24397 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24399 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24400 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24401 | SWIG_fail; | |
24402 | if (arg2 == NULL) { | |
24403 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24404 | SWIG_fail; | |
24405 | } | |
24406 | { | |
24407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24408 | result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormat const &)*arg2); | |
24409 | ||
24410 | wxPyEndAllowThreads(__tstate); | |
24411 | if (PyErr_Occurred()) SWIG_fail; | |
24412 | } | |
24413 | { | |
24414 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24415 | } | |
24416 | return resultobj; | |
24417 | fail: | |
24418 | return NULL; | |
24419 | } | |
24420 | ||
24421 | ||
24422 | static PyObject *_wrap_DataFormat___eq__(PyObject *self, PyObject *args) { | |
24423 | int argc; | |
24424 | PyObject *argv[3]; | |
24425 | int ii; | |
24426 | ||
24427 | argc = PyObject_Length(args); | |
24428 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
24429 | argv[ii] = PyTuple_GetItem(args,ii); | |
24430 | } | |
24431 | if (argc == 2) { | |
24432 | int _v; | |
24433 | { | |
24434 | void *ptr; | |
24435 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
24436 | _v = 0; | |
24437 | PyErr_Clear(); | |
24438 | } else { | |
24439 | _v = 1; | |
24440 | } | |
24441 | } | |
24442 | if (_v) { | |
24443 | { | |
24444 | void *ptr; | |
24445 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
24446 | _v = 0; | |
24447 | PyErr_Clear(); | |
24448 | } else { | |
24449 | _v = 1; | |
24450 | } | |
24451 | } | |
24452 | if (_v) { | |
24453 | return _wrap_DataFormat___eq____SWIG_1(self,args); | |
24454 | } | |
24455 | } | |
24456 | } | |
24457 | if (argc == 2) { | |
24458 | int _v; | |
24459 | { | |
24460 | void *ptr; | |
24461 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
24462 | _v = 0; | |
24463 | PyErr_Clear(); | |
24464 | } else { | |
24465 | _v = 1; | |
24466 | } | |
24467 | } | |
24468 | if (_v) { | |
c32bde28 | 24469 | _v = SWIG_Check_int(argv[1]); |
d55e5bfc RD |
24470 | if (_v) { |
24471 | return _wrap_DataFormat___eq____SWIG_0(self,args); | |
24472 | } | |
24473 | } | |
24474 | } | |
24475 | ||
24476 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___eq__'"); | |
24477 | return NULL; | |
24478 | } | |
24479 | ||
24480 | ||
c32bde28 | 24481 | static PyObject *_wrap_DataFormat___ne____SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
24482 | PyObject *resultobj; |
24483 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24484 | wxDataFormat *arg2 = 0 ; | |
24485 | bool result; | |
24486 | PyObject * obj0 = 0 ; | |
24487 | PyObject * obj1 = 0 ; | |
24488 | ||
24489 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail; | |
24490 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24491 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24492 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24493 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24494 | SWIG_fail; | |
24495 | if (arg2 == NULL) { | |
24496 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24497 | SWIG_fail; | |
24498 | } | |
24499 | { | |
24500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24501 | result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormat const &)*arg2); | |
24502 | ||
24503 | wxPyEndAllowThreads(__tstate); | |
24504 | if (PyErr_Occurred()) SWIG_fail; | |
24505 | } | |
24506 | { | |
24507 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24508 | } | |
24509 | return resultobj; | |
24510 | fail: | |
24511 | return NULL; | |
24512 | } | |
24513 | ||
24514 | ||
24515 | static PyObject *_wrap_DataFormat___ne__(PyObject *self, PyObject *args) { | |
24516 | int argc; | |
24517 | PyObject *argv[3]; | |
24518 | int ii; | |
24519 | ||
24520 | argc = PyObject_Length(args); | |
24521 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
24522 | argv[ii] = PyTuple_GetItem(args,ii); | |
24523 | } | |
24524 | if (argc == 2) { | |
24525 | int _v; | |
24526 | { | |
24527 | void *ptr; | |
24528 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
24529 | _v = 0; | |
24530 | PyErr_Clear(); | |
24531 | } else { | |
24532 | _v = 1; | |
24533 | } | |
24534 | } | |
24535 | if (_v) { | |
24536 | { | |
24537 | void *ptr; | |
24538 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
24539 | _v = 0; | |
24540 | PyErr_Clear(); | |
24541 | } else { | |
24542 | _v = 1; | |
24543 | } | |
24544 | } | |
24545 | if (_v) { | |
24546 | return _wrap_DataFormat___ne____SWIG_1(self,args); | |
24547 | } | |
24548 | } | |
24549 | } | |
24550 | if (argc == 2) { | |
24551 | int _v; | |
24552 | { | |
24553 | void *ptr; | |
24554 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
24555 | _v = 0; | |
24556 | PyErr_Clear(); | |
24557 | } else { | |
24558 | _v = 1; | |
24559 | } | |
24560 | } | |
24561 | if (_v) { | |
c32bde28 | 24562 | _v = SWIG_Check_int(argv[1]); |
d55e5bfc RD |
24563 | if (_v) { |
24564 | return _wrap_DataFormat___ne____SWIG_0(self,args); | |
24565 | } | |
24566 | } | |
24567 | } | |
24568 | ||
24569 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___ne__'"); | |
24570 | return NULL; | |
24571 | } | |
24572 | ||
24573 | ||
c32bde28 | 24574 | static PyObject *_wrap_DataFormat_SetType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24575 | PyObject *resultobj; |
24576 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24577 | int arg2 ; | |
24578 | PyObject * obj0 = 0 ; | |
24579 | PyObject * obj1 = 0 ; | |
24580 | char *kwnames[] = { | |
24581 | (char *) "self",(char *) "format", NULL | |
24582 | }; | |
24583 | ||
24584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetType",kwnames,&obj0,&obj1)) goto fail; | |
24585 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24586 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24587 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
24588 | if (PyErr_Occurred()) SWIG_fail; |
24589 | { | |
24590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24591 | (arg1)->SetType((wxDataFormatId )arg2); | |
24592 | ||
24593 | wxPyEndAllowThreads(__tstate); | |
24594 | if (PyErr_Occurred()) SWIG_fail; | |
24595 | } | |
24596 | Py_INCREF(Py_None); resultobj = Py_None; | |
24597 | return resultobj; | |
24598 | fail: | |
24599 | return NULL; | |
24600 | } | |
24601 | ||
24602 | ||
c32bde28 | 24603 | static PyObject *_wrap_DataFormat_GetType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24604 | PyObject *resultobj; |
24605 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24606 | int result; | |
24607 | PyObject * obj0 = 0 ; | |
24608 | char *kwnames[] = { | |
24609 | (char *) "self", NULL | |
24610 | }; | |
24611 | ||
24612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetType",kwnames,&obj0)) goto fail; | |
24613 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24614 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24615 | { | |
24616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24617 | result = (int)((wxDataFormat const *)arg1)->GetType(); | |
24618 | ||
24619 | wxPyEndAllowThreads(__tstate); | |
24620 | if (PyErr_Occurred()) SWIG_fail; | |
24621 | } | |
c32bde28 | 24622 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
24623 | return resultobj; |
24624 | fail: | |
24625 | return NULL; | |
24626 | } | |
24627 | ||
24628 | ||
c32bde28 | 24629 | static PyObject *_wrap_DataFormat_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24630 | PyObject *resultobj; |
24631 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24632 | wxString result; | |
24633 | PyObject * obj0 = 0 ; | |
24634 | char *kwnames[] = { | |
24635 | (char *) "self", NULL | |
24636 | }; | |
24637 | ||
24638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetId",kwnames,&obj0)) goto fail; | |
24639 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24640 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24641 | { | |
24642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24643 | result = ((wxDataFormat const *)arg1)->GetId(); | |
24644 | ||
24645 | wxPyEndAllowThreads(__tstate); | |
24646 | if (PyErr_Occurred()) SWIG_fail; | |
24647 | } | |
24648 | { | |
24649 | #if wxUSE_UNICODE | |
24650 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24651 | #else | |
24652 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24653 | #endif | |
24654 | } | |
24655 | return resultobj; | |
24656 | fail: | |
24657 | return NULL; | |
24658 | } | |
24659 | ||
24660 | ||
c32bde28 | 24661 | static PyObject *_wrap_DataFormat_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24662 | PyObject *resultobj; |
24663 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24664 | wxString *arg2 = 0 ; | |
ae8162c8 | 24665 | bool temp2 = false ; |
d55e5bfc RD |
24666 | PyObject * obj0 = 0 ; |
24667 | PyObject * obj1 = 0 ; | |
24668 | char *kwnames[] = { | |
24669 | (char *) "self",(char *) "format", NULL | |
24670 | }; | |
24671 | ||
24672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetId",kwnames,&obj0,&obj1)) goto fail; | |
24673 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24674 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24675 | { | |
24676 | arg2 = wxString_in_helper(obj1); | |
24677 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 24678 | temp2 = true; |
d55e5bfc RD |
24679 | } |
24680 | { | |
24681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24682 | (arg1)->SetId((wxString const &)*arg2); | |
24683 | ||
24684 | wxPyEndAllowThreads(__tstate); | |
24685 | if (PyErr_Occurred()) SWIG_fail; | |
24686 | } | |
24687 | Py_INCREF(Py_None); resultobj = Py_None; | |
24688 | { | |
24689 | if (temp2) | |
24690 | delete arg2; | |
24691 | } | |
24692 | return resultobj; | |
24693 | fail: | |
24694 | { | |
24695 | if (temp2) | |
24696 | delete arg2; | |
24697 | } | |
24698 | return NULL; | |
24699 | } | |
24700 | ||
24701 | ||
c32bde28 | 24702 | static PyObject * DataFormat_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
24703 | PyObject *obj; |
24704 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24705 | SWIG_TypeClientData(SWIGTYPE_p_wxDataFormat, obj); | |
24706 | Py_INCREF(obj); | |
24707 | return Py_BuildValue((char *)""); | |
24708 | } | |
c32bde28 | 24709 | static int _wrap_FormatInvalid_set(PyObject *) { |
d55e5bfc RD |
24710 | PyErr_SetString(PyExc_TypeError,"Variable FormatInvalid is read-only."); |
24711 | return 1; | |
24712 | } | |
24713 | ||
24714 | ||
24715 | static PyObject *_wrap_FormatInvalid_get() { | |
24716 | PyObject *pyobj; | |
24717 | ||
24718 | pyobj = SWIG_NewPointerObj((void *)(&wxFormatInvalid), SWIGTYPE_p_wxDataFormat, 0); | |
24719 | return pyobj; | |
24720 | } | |
24721 | ||
24722 | ||
c32bde28 | 24723 | static PyObject *_wrap_delete_DataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24724 | PyObject *resultobj; |
24725 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24726 | PyObject * obj0 = 0 ; | |
24727 | char *kwnames[] = { | |
24728 | (char *) "self", NULL | |
24729 | }; | |
24730 | ||
24731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataObject",kwnames,&obj0)) goto fail; | |
24732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
24733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24734 | { | |
24735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24736 | delete arg1; | |
24737 | ||
24738 | wxPyEndAllowThreads(__tstate); | |
24739 | if (PyErr_Occurred()) SWIG_fail; | |
24740 | } | |
24741 | Py_INCREF(Py_None); resultobj = Py_None; | |
24742 | return resultobj; | |
24743 | fail: | |
24744 | return NULL; | |
24745 | } | |
24746 | ||
24747 | ||
c32bde28 | 24748 | static PyObject *_wrap_DataObject_GetPreferredFormat(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24749 | PyObject *resultobj; |
24750 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24751 | int arg2 = (int) wxDataObject::Get ; | |
24752 | SwigValueWrapper< wxDataFormat > result; | |
24753 | PyObject * obj0 = 0 ; | |
24754 | PyObject * obj1 = 0 ; | |
24755 | char *kwnames[] = { | |
24756 | (char *) "self",(char *) "dir", NULL | |
24757 | }; | |
24758 | ||
24759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetPreferredFormat",kwnames,&obj0,&obj1)) goto fail; | |
24760 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
24761 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24762 | if (obj1) { | |
c32bde28 | 24763 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
24764 | if (PyErr_Occurred()) SWIG_fail; |
24765 | } | |
24766 | { | |
24767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24768 | result = ((wxDataObject const *)arg1)->GetPreferredFormat((wxDataObject::Direction )arg2); | |
24769 | ||
24770 | wxPyEndAllowThreads(__tstate); | |
24771 | if (PyErr_Occurred()) SWIG_fail; | |
24772 | } | |
24773 | { | |
24774 | wxDataFormat * resultptr; | |
24775 | resultptr = new wxDataFormat((wxDataFormat &) result); | |
24776 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDataFormat, 1); | |
24777 | } | |
24778 | return resultobj; | |
24779 | fail: | |
24780 | return NULL; | |
24781 | } | |
24782 | ||
24783 | ||
c32bde28 | 24784 | static PyObject *_wrap_DataObject_GetFormatCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24785 | PyObject *resultobj; |
24786 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24787 | int arg2 = (int) wxDataObject::Get ; | |
24788 | size_t result; | |
24789 | PyObject * obj0 = 0 ; | |
24790 | PyObject * obj1 = 0 ; | |
24791 | char *kwnames[] = { | |
24792 | (char *) "self",(char *) "dir", NULL | |
24793 | }; | |
24794 | ||
24795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetFormatCount",kwnames,&obj0,&obj1)) goto fail; | |
24796 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
24797 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24798 | if (obj1) { | |
c32bde28 | 24799 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
24800 | if (PyErr_Occurred()) SWIG_fail; |
24801 | } | |
24802 | { | |
24803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24804 | result = (size_t)((wxDataObject const *)arg1)->GetFormatCount((wxDataObject::Direction )arg2); | |
24805 | ||
24806 | wxPyEndAllowThreads(__tstate); | |
24807 | if (PyErr_Occurred()) SWIG_fail; | |
24808 | } | |
c32bde28 | 24809 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
24810 | return resultobj; |
24811 | fail: | |
24812 | return NULL; | |
24813 | } | |
24814 | ||
24815 | ||
c32bde28 | 24816 | static PyObject *_wrap_DataObject_IsSupported(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24817 | PyObject *resultobj; |
24818 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24819 | wxDataFormat *arg2 = 0 ; | |
24820 | int arg3 = (int) wxDataObject::Get ; | |
24821 | bool result; | |
24822 | PyObject * obj0 = 0 ; | |
24823 | PyObject * obj1 = 0 ; | |
24824 | PyObject * obj2 = 0 ; | |
24825 | char *kwnames[] = { | |
24826 | (char *) "self",(char *) "format",(char *) "dir", NULL | |
24827 | }; | |
24828 | ||
24829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_IsSupported",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24830 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
24831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24832 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24833 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24834 | SWIG_fail; | |
24835 | if (arg2 == NULL) { | |
24836 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24837 | SWIG_fail; | |
24838 | } | |
24839 | if (obj2) { | |
c32bde28 | 24840 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
24841 | if (PyErr_Occurred()) SWIG_fail; |
24842 | } | |
24843 | { | |
24844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24845 | result = (bool)((wxDataObject const *)arg1)->IsSupported((wxDataFormat const &)*arg2,(wxDataObject::Direction )arg3); | |
24846 | ||
24847 | wxPyEndAllowThreads(__tstate); | |
24848 | if (PyErr_Occurred()) SWIG_fail; | |
24849 | } | |
24850 | { | |
24851 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24852 | } | |
24853 | return resultobj; | |
24854 | fail: | |
24855 | return NULL; | |
24856 | } | |
24857 | ||
24858 | ||
c32bde28 | 24859 | static PyObject *_wrap_DataObject_GetDataSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24860 | PyObject *resultobj; |
24861 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24862 | wxDataFormat *arg2 = 0 ; | |
24863 | size_t result; | |
24864 | PyObject * obj0 = 0 ; | |
24865 | PyObject * obj1 = 0 ; | |
24866 | char *kwnames[] = { | |
24867 | (char *) "self",(char *) "format", NULL | |
24868 | }; | |
24869 | ||
24870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataSize",kwnames,&obj0,&obj1)) goto fail; | |
24871 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
24872 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24873 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24874 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24875 | SWIG_fail; | |
24876 | if (arg2 == NULL) { | |
24877 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24878 | SWIG_fail; | |
24879 | } | |
24880 | { | |
24881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24882 | result = (size_t)((wxDataObject const *)arg1)->GetDataSize((wxDataFormat const &)*arg2); | |
24883 | ||
24884 | wxPyEndAllowThreads(__tstate); | |
24885 | if (PyErr_Occurred()) SWIG_fail; | |
24886 | } | |
c32bde28 | 24887 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
24888 | return resultobj; |
24889 | fail: | |
24890 | return NULL; | |
24891 | } | |
24892 | ||
24893 | ||
c32bde28 | 24894 | static PyObject *_wrap_DataObject_GetAllFormats(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24895 | PyObject *resultobj; |
24896 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
a07a67e6 RD |
24897 | int arg2 = (int) wxDataObject::Get ; |
24898 | PyObject *result; | |
d55e5bfc RD |
24899 | PyObject * obj0 = 0 ; |
24900 | PyObject * obj1 = 0 ; | |
d55e5bfc | 24901 | char *kwnames[] = { |
a07a67e6 | 24902 | (char *) "self",(char *) "dir", NULL |
d55e5bfc RD |
24903 | }; |
24904 | ||
a07a67e6 | 24905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetAllFormats",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
24906 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24907 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
a07a67e6 | 24908 | if (obj1) { |
c32bde28 | 24909 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
24910 | if (PyErr_Occurred()) SWIG_fail; |
24911 | } | |
24912 | { | |
24913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a07a67e6 | 24914 | result = (PyObject *)wxDataObject_GetAllFormats(arg1,(wxDataObject::Direction )arg2); |
d55e5bfc RD |
24915 | |
24916 | wxPyEndAllowThreads(__tstate); | |
24917 | if (PyErr_Occurred()) SWIG_fail; | |
24918 | } | |
a07a67e6 | 24919 | resultobj = result; |
d55e5bfc RD |
24920 | return resultobj; |
24921 | fail: | |
24922 | return NULL; | |
24923 | } | |
24924 | ||
24925 | ||
c32bde28 | 24926 | static PyObject *_wrap_DataObject_GetDataHere(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24927 | PyObject *resultobj; |
24928 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24929 | wxDataFormat *arg2 = 0 ; | |
a07a67e6 | 24930 | PyObject *result; |
d55e5bfc RD |
24931 | PyObject * obj0 = 0 ; |
24932 | PyObject * obj1 = 0 ; | |
d55e5bfc | 24933 | char *kwnames[] = { |
a07a67e6 | 24934 | (char *) "self",(char *) "format", NULL |
d55e5bfc RD |
24935 | }; |
24936 | ||
a07a67e6 | 24937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataHere",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
24938 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24939 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24940 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24941 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24942 | SWIG_fail; | |
24943 | if (arg2 == NULL) { | |
24944 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24945 | SWIG_fail; | |
24946 | } | |
d55e5bfc RD |
24947 | { |
24948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a07a67e6 | 24949 | result = (PyObject *)wxDataObject_GetDataHere(arg1,(wxDataFormat const &)*arg2); |
d55e5bfc RD |
24950 | |
24951 | wxPyEndAllowThreads(__tstate); | |
24952 | if (PyErr_Occurred()) SWIG_fail; | |
24953 | } | |
a07a67e6 | 24954 | resultobj = result; |
d55e5bfc RD |
24955 | return resultobj; |
24956 | fail: | |
24957 | return NULL; | |
24958 | } | |
24959 | ||
24960 | ||
c32bde28 | 24961 | static PyObject *_wrap_DataObject_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24962 | PyObject *resultobj; |
24963 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24964 | wxDataFormat *arg2 = 0 ; | |
a07a67e6 | 24965 | PyObject *arg3 = (PyObject *) 0 ; |
d55e5bfc RD |
24966 | bool result; |
24967 | PyObject * obj0 = 0 ; | |
24968 | PyObject * obj1 = 0 ; | |
24969 | PyObject * obj2 = 0 ; | |
d55e5bfc | 24970 | char *kwnames[] = { |
a07a67e6 | 24971 | (char *) "self",(char *) "format",(char *) "data", NULL |
d55e5bfc RD |
24972 | }; |
24973 | ||
a07a67e6 | 24974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DataObject_SetData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
24975 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
24976 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24977 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24978 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24979 | SWIG_fail; | |
24980 | if (arg2 == NULL) { | |
24981 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24982 | SWIG_fail; | |
24983 | } | |
a07a67e6 | 24984 | arg3 = obj2; |
d55e5bfc RD |
24985 | { |
24986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a07a67e6 | 24987 | result = (bool)wxDataObject_SetData(arg1,(wxDataFormat const &)*arg2,arg3); |
d55e5bfc RD |
24988 | |
24989 | wxPyEndAllowThreads(__tstate); | |
24990 | if (PyErr_Occurred()) SWIG_fail; | |
24991 | } | |
24992 | { | |
24993 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24994 | } | |
24995 | return resultobj; | |
24996 | fail: | |
24997 | return NULL; | |
24998 | } | |
24999 | ||
25000 | ||
c32bde28 | 25001 | static PyObject * DataObject_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
25002 | PyObject *obj; |
25003 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25004 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObject, obj); | |
25005 | Py_INCREF(obj); | |
25006 | return Py_BuildValue((char *)""); | |
25007 | } | |
c32bde28 | 25008 | static PyObject *_wrap_new_DataObjectSimple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25009 | PyObject *resultobj; |
25010 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
25011 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
25012 | wxDataObjectSimple *result; | |
25013 | PyObject * obj0 = 0 ; | |
25014 | char *kwnames[] = { | |
25015 | (char *) "format", NULL | |
25016 | }; | |
25017 | ||
25018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DataObjectSimple",kwnames,&obj0)) goto fail; | |
25019 | if (obj0) { | |
25020 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
25021 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25022 | SWIG_fail; | |
25023 | if (arg1 == NULL) { | |
25024 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25025 | SWIG_fail; | |
25026 | } | |
25027 | } | |
25028 | { | |
25029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25030 | result = (wxDataObjectSimple *)new wxDataObjectSimple((wxDataFormat const &)*arg1); | |
25031 | ||
25032 | wxPyEndAllowThreads(__tstate); | |
25033 | if (PyErr_Occurred()) SWIG_fail; | |
25034 | } | |
25035 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectSimple, 1); | |
25036 | return resultobj; | |
25037 | fail: | |
25038 | return NULL; | |
25039 | } | |
25040 | ||
25041 | ||
c32bde28 | 25042 | static PyObject *_wrap_DataObjectSimple_GetFormat(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25043 | PyObject *resultobj; |
25044 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
25045 | wxDataFormat *result; | |
25046 | PyObject * obj0 = 0 ; | |
25047 | char *kwnames[] = { | |
25048 | (char *) "self", NULL | |
25049 | }; | |
25050 | ||
25051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetFormat",kwnames,&obj0)) goto fail; | |
25052 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, | |
25053 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25054 | { | |
25055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25056 | { | |
25057 | wxDataFormat const &_result_ref = (arg1)->GetFormat(); | |
25058 | result = (wxDataFormat *) &_result_ref; | |
25059 | } | |
25060 | ||
25061 | wxPyEndAllowThreads(__tstate); | |
25062 | if (PyErr_Occurred()) SWIG_fail; | |
25063 | } | |
25064 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 0); | |
25065 | return resultobj; | |
25066 | fail: | |
25067 | return NULL; | |
25068 | } | |
25069 | ||
25070 | ||
c32bde28 | 25071 | static PyObject *_wrap_DataObjectSimple_SetFormat(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25072 | PyObject *resultobj; |
25073 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
25074 | wxDataFormat *arg2 = 0 ; | |
25075 | PyObject * obj0 = 0 ; | |
25076 | PyObject * obj1 = 0 ; | |
25077 | char *kwnames[] = { | |
25078 | (char *) "self",(char *) "format", NULL | |
25079 | }; | |
25080 | ||
25081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetFormat",kwnames,&obj0,&obj1)) goto fail; | |
25082 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, | |
25083 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25084 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
25085 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25086 | SWIG_fail; | |
25087 | if (arg2 == NULL) { | |
25088 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25089 | SWIG_fail; | |
25090 | } | |
25091 | { | |
25092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25093 | (arg1)->SetFormat((wxDataFormat const &)*arg2); | |
25094 | ||
25095 | wxPyEndAllowThreads(__tstate); | |
25096 | if (PyErr_Occurred()) SWIG_fail; | |
25097 | } | |
25098 | Py_INCREF(Py_None); resultobj = Py_None; | |
25099 | return resultobj; | |
25100 | fail: | |
25101 | return NULL; | |
25102 | } | |
25103 | ||
25104 | ||
c32bde28 | 25105 | static PyObject *_wrap_DataObjectSimple_GetDataSize(PyObject *, PyObject *args, PyObject *kwargs) { |
a07a67e6 RD |
25106 | PyObject *resultobj; |
25107 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
25108 | size_t result; | |
25109 | PyObject * obj0 = 0 ; | |
25110 | char *kwnames[] = { | |
25111 | (char *) "self", NULL | |
25112 | }; | |
25113 | ||
25114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataSize",kwnames,&obj0)) goto fail; | |
25115 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, | |
25116 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25117 | { | |
25118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25119 | result = (size_t)((wxDataObjectSimple const *)arg1)->GetDataSize(); | |
25120 | ||
25121 | wxPyEndAllowThreads(__tstate); | |
25122 | if (PyErr_Occurred()) SWIG_fail; | |
25123 | } | |
c32bde28 | 25124 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
a07a67e6 RD |
25125 | return resultobj; |
25126 | fail: | |
25127 | return NULL; | |
25128 | } | |
25129 | ||
25130 | ||
c32bde28 | 25131 | static PyObject *_wrap_DataObjectSimple_GetDataHere(PyObject *, PyObject *args, PyObject *kwargs) { |
a07a67e6 RD |
25132 | PyObject *resultobj; |
25133 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
25134 | PyObject *result; | |
25135 | PyObject * obj0 = 0 ; | |
25136 | char *kwnames[] = { | |
25137 | (char *) "self", NULL | |
25138 | }; | |
25139 | ||
25140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataHere",kwnames,&obj0)) goto fail; | |
25141 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, | |
25142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25143 | { | |
25144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25145 | result = (PyObject *)wxDataObjectSimple_GetDataHere(arg1); | |
25146 | ||
25147 | wxPyEndAllowThreads(__tstate); | |
25148 | if (PyErr_Occurred()) SWIG_fail; | |
25149 | } | |
25150 | resultobj = result; | |
25151 | return resultobj; | |
25152 | fail: | |
25153 | return NULL; | |
25154 | } | |
25155 | ||
25156 | ||
c32bde28 | 25157 | static PyObject *_wrap_DataObjectSimple_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
a07a67e6 RD |
25158 | PyObject *resultobj; |
25159 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
25160 | PyObject *arg2 = (PyObject *) 0 ; | |
25161 | bool result; | |
25162 | PyObject * obj0 = 0 ; | |
25163 | PyObject * obj1 = 0 ; | |
25164 | char *kwnames[] = { | |
25165 | (char *) "self",(char *) "data", NULL | |
25166 | }; | |
25167 | ||
25168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetData",kwnames,&obj0,&obj1)) goto fail; | |
25169 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, | |
25170 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25171 | arg2 = obj1; | |
25172 | { | |
25173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25174 | result = (bool)wxDataObjectSimple_SetData(arg1,arg2); | |
25175 | ||
25176 | wxPyEndAllowThreads(__tstate); | |
25177 | if (PyErr_Occurred()) SWIG_fail; | |
25178 | } | |
25179 | { | |
25180 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25181 | } | |
25182 | return resultobj; | |
25183 | fail: | |
25184 | return NULL; | |
25185 | } | |
25186 | ||
25187 | ||
c32bde28 | 25188 | static PyObject * DataObjectSimple_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
25189 | PyObject *obj; |
25190 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25191 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectSimple, obj); | |
25192 | Py_INCREF(obj); | |
25193 | return Py_BuildValue((char *)""); | |
25194 | } | |
c32bde28 | 25195 | static PyObject *_wrap_new_PyDataObjectSimple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25196 | PyObject *resultobj; |
25197 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
25198 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
25199 | wxPyDataObjectSimple *result; | |
25200 | PyObject * obj0 = 0 ; | |
25201 | char *kwnames[] = { | |
25202 | (char *) "format", NULL | |
25203 | }; | |
25204 | ||
25205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDataObjectSimple",kwnames,&obj0)) goto fail; | |
25206 | if (obj0) { | |
25207 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
25208 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25209 | SWIG_fail; | |
25210 | if (arg1 == NULL) { | |
25211 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25212 | SWIG_fail; | |
25213 | } | |
25214 | } | |
25215 | { | |
25216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25217 | result = (wxPyDataObjectSimple *)new wxPyDataObjectSimple((wxDataFormat const &)*arg1); | |
25218 | ||
25219 | wxPyEndAllowThreads(__tstate); | |
25220 | if (PyErr_Occurred()) SWIG_fail; | |
25221 | } | |
25222 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDataObjectSimple, 1); | |
25223 | return resultobj; | |
25224 | fail: | |
25225 | return NULL; | |
25226 | } | |
25227 | ||
25228 | ||
c32bde28 | 25229 | static PyObject *_wrap_PyDataObjectSimple__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25230 | PyObject *resultobj; |
25231 | wxPyDataObjectSimple *arg1 = (wxPyDataObjectSimple *) 0 ; | |
25232 | PyObject *arg2 = (PyObject *) 0 ; | |
25233 | PyObject *arg3 = (PyObject *) 0 ; | |
25234 | PyObject * obj0 = 0 ; | |
25235 | PyObject * obj1 = 0 ; | |
25236 | PyObject * obj2 = 0 ; | |
25237 | char *kwnames[] = { | |
25238 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25239 | }; | |
25240 | ||
25241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDataObjectSimple__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25242 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDataObjectSimple, | |
25243 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25244 | arg2 = obj1; | |
25245 | arg3 = obj2; | |
25246 | { | |
25247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25248 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25249 | ||
25250 | wxPyEndAllowThreads(__tstate); | |
25251 | if (PyErr_Occurred()) SWIG_fail; | |
25252 | } | |
25253 | Py_INCREF(Py_None); resultobj = Py_None; | |
25254 | return resultobj; | |
25255 | fail: | |
25256 | return NULL; | |
25257 | } | |
25258 | ||
25259 | ||
c32bde28 | 25260 | static PyObject * PyDataObjectSimple_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
25261 | PyObject *obj; |
25262 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25263 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDataObjectSimple, obj); | |
25264 | Py_INCREF(obj); | |
25265 | return Py_BuildValue((char *)""); | |
25266 | } | |
c32bde28 | 25267 | static PyObject *_wrap_new_DataObjectComposite(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25268 | PyObject *resultobj; |
25269 | wxDataObjectComposite *result; | |
25270 | char *kwnames[] = { | |
25271 | NULL | |
25272 | }; | |
25273 | ||
25274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DataObjectComposite",kwnames)) goto fail; | |
25275 | { | |
25276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25277 | result = (wxDataObjectComposite *)new wxDataObjectComposite(); | |
25278 | ||
25279 | wxPyEndAllowThreads(__tstate); | |
25280 | if (PyErr_Occurred()) SWIG_fail; | |
25281 | } | |
25282 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectComposite, 1); | |
25283 | return resultobj; | |
25284 | fail: | |
25285 | return NULL; | |
25286 | } | |
25287 | ||
25288 | ||
c32bde28 | 25289 | static PyObject *_wrap_DataObjectComposite_Add(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25290 | PyObject *resultobj; |
25291 | wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ; | |
25292 | wxDataObjectSimple *arg2 = (wxDataObjectSimple *) 0 ; | |
ae8162c8 | 25293 | bool arg3 = (bool) false ; |
d55e5bfc RD |
25294 | PyObject * obj0 = 0 ; |
25295 | PyObject * obj1 = 0 ; | |
25296 | PyObject * obj2 = 0 ; | |
25297 | char *kwnames[] = { | |
25298 | (char *) "self",(char *) "dataObject",(char *) "preferred", NULL | |
25299 | }; | |
25300 | ||
25301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObjectComposite_Add",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25302 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectComposite, | |
25303 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25304 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObjectSimple, | |
25305 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
25306 | if (obj2) { | |
c32bde28 | 25307 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
25308 | if (PyErr_Occurred()) SWIG_fail; |
25309 | } | |
25310 | { | |
25311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25312 | (arg1)->Add(arg2,arg3); | |
25313 | ||
25314 | wxPyEndAllowThreads(__tstate); | |
25315 | if (PyErr_Occurred()) SWIG_fail; | |
25316 | } | |
25317 | Py_INCREF(Py_None); resultobj = Py_None; | |
25318 | return resultobj; | |
25319 | fail: | |
25320 | return NULL; | |
25321 | } | |
25322 | ||
25323 | ||
c32bde28 | 25324 | static PyObject * DataObjectComposite_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
25325 | PyObject *obj; |
25326 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25327 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectComposite, obj); | |
25328 | Py_INCREF(obj); | |
25329 | return Py_BuildValue((char *)""); | |
25330 | } | |
c32bde28 | 25331 | static PyObject *_wrap_new_TextDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25332 | PyObject *resultobj; |
25333 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
25334 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
25335 | wxTextDataObject *result; | |
ae8162c8 | 25336 | bool temp1 = false ; |
d55e5bfc RD |
25337 | PyObject * obj0 = 0 ; |
25338 | char *kwnames[] = { | |
25339 | (char *) "text", NULL | |
25340 | }; | |
25341 | ||
25342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TextDataObject",kwnames,&obj0)) goto fail; | |
25343 | if (obj0) { | |
25344 | { | |
25345 | arg1 = wxString_in_helper(obj0); | |
25346 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 25347 | temp1 = true; |
d55e5bfc RD |
25348 | } |
25349 | } | |
25350 | { | |
25351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25352 | result = (wxTextDataObject *)new wxTextDataObject((wxString const &)*arg1); | |
25353 | ||
25354 | wxPyEndAllowThreads(__tstate); | |
25355 | if (PyErr_Occurred()) SWIG_fail; | |
25356 | } | |
25357 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextDataObject, 1); | |
25358 | { | |
25359 | if (temp1) | |
25360 | delete arg1; | |
25361 | } | |
25362 | return resultobj; | |
25363 | fail: | |
25364 | { | |
25365 | if (temp1) | |
25366 | delete arg1; | |
25367 | } | |
25368 | return NULL; | |
25369 | } | |
25370 | ||
25371 | ||
c32bde28 | 25372 | static PyObject *_wrap_TextDataObject_GetTextLength(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25373 | PyObject *resultobj; |
25374 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
25375 | size_t result; | |
25376 | PyObject * obj0 = 0 ; | |
25377 | char *kwnames[] = { | |
25378 | (char *) "self", NULL | |
25379 | }; | |
25380 | ||
25381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetTextLength",kwnames,&obj0)) goto fail; | |
25382 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject, | |
25383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25384 | { | |
25385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25386 | result = (size_t)(arg1)->GetTextLength(); | |
25387 | ||
25388 | wxPyEndAllowThreads(__tstate); | |
25389 | if (PyErr_Occurred()) SWIG_fail; | |
25390 | } | |
c32bde28 | 25391 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
25392 | return resultobj; |
25393 | fail: | |
25394 | return NULL; | |
25395 | } | |
25396 | ||
25397 | ||
c32bde28 | 25398 | static PyObject *_wrap_TextDataObject_GetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25399 | PyObject *resultobj; |
25400 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
25401 | wxString result; | |
25402 | PyObject * obj0 = 0 ; | |
25403 | char *kwnames[] = { | |
25404 | (char *) "self", NULL | |
25405 | }; | |
25406 | ||
25407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetText",kwnames,&obj0)) goto fail; | |
25408 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject, | |
25409 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25410 | { | |
25411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25412 | result = (arg1)->GetText(); | |
25413 | ||
25414 | wxPyEndAllowThreads(__tstate); | |
25415 | if (PyErr_Occurred()) SWIG_fail; | |
25416 | } | |
25417 | { | |
25418 | #if wxUSE_UNICODE | |
25419 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
25420 | #else | |
25421 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
25422 | #endif | |
25423 | } | |
25424 | return resultobj; | |
25425 | fail: | |
25426 | return NULL; | |
25427 | } | |
25428 | ||
25429 | ||
c32bde28 | 25430 | static PyObject *_wrap_TextDataObject_SetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25431 | PyObject *resultobj; |
25432 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
25433 | wxString *arg2 = 0 ; | |
ae8162c8 | 25434 | bool temp2 = false ; |
d55e5bfc RD |
25435 | PyObject * obj0 = 0 ; |
25436 | PyObject * obj1 = 0 ; | |
25437 | char *kwnames[] = { | |
25438 | (char *) "self",(char *) "text", NULL | |
25439 | }; | |
25440 | ||
25441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextDataObject_SetText",kwnames,&obj0,&obj1)) goto fail; | |
25442 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject, | |
25443 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25444 | { | |
25445 | arg2 = wxString_in_helper(obj1); | |
25446 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 25447 | temp2 = true; |
d55e5bfc RD |
25448 | } |
25449 | { | |
25450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25451 | (arg1)->SetText((wxString const &)*arg2); | |
25452 | ||
25453 | wxPyEndAllowThreads(__tstate); | |
25454 | if (PyErr_Occurred()) SWIG_fail; | |
25455 | } | |
25456 | Py_INCREF(Py_None); resultobj = Py_None; | |
25457 | { | |
25458 | if (temp2) | |
25459 | delete arg2; | |
25460 | } | |
25461 | return resultobj; | |
25462 | fail: | |
25463 | { | |
25464 | if (temp2) | |
25465 | delete arg2; | |
25466 | } | |
25467 | return NULL; | |
25468 | } | |
25469 | ||
25470 | ||
c32bde28 | 25471 | static PyObject * TextDataObject_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
25472 | PyObject *obj; |
25473 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25474 | SWIG_TypeClientData(SWIGTYPE_p_wxTextDataObject, obj); | |
25475 | Py_INCREF(obj); | |
25476 | return Py_BuildValue((char *)""); | |
25477 | } | |
c32bde28 | 25478 | static PyObject *_wrap_new_PyTextDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25479 | PyObject *resultobj; |
25480 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
25481 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
25482 | wxPyTextDataObject *result; | |
ae8162c8 | 25483 | bool temp1 = false ; |
d55e5bfc RD |
25484 | PyObject * obj0 = 0 ; |
25485 | char *kwnames[] = { | |
25486 | (char *) "text", NULL | |
25487 | }; | |
25488 | ||
25489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyTextDataObject",kwnames,&obj0)) goto fail; | |
25490 | if (obj0) { | |
25491 | { | |
25492 | arg1 = wxString_in_helper(obj0); | |
25493 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 25494 | temp1 = true; |
d55e5bfc RD |
25495 | } |
25496 | } | |
25497 | { | |
25498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25499 | result = (wxPyTextDataObject *)new wxPyTextDataObject((wxString const &)*arg1); | |
25500 | ||
25501 | wxPyEndAllowThreads(__tstate); | |
25502 | if (PyErr_Occurred()) SWIG_fail; | |
25503 | } | |
25504 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDataObject, 1); | |
25505 | { | |
25506 | if (temp1) | |
25507 | delete arg1; | |
25508 | } | |
25509 | return resultobj; | |
25510 | fail: | |
25511 | { | |
25512 | if (temp1) | |
25513 | delete arg1; | |
25514 | } | |
25515 | return NULL; | |
25516 | } | |
25517 | ||
25518 | ||
c32bde28 | 25519 | static PyObject *_wrap_PyTextDataObject__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25520 | PyObject *resultobj; |
25521 | wxPyTextDataObject *arg1 = (wxPyTextDataObject *) 0 ; | |
25522 | PyObject *arg2 = (PyObject *) 0 ; | |
25523 | PyObject *arg3 = (PyObject *) 0 ; | |
25524 | PyObject * obj0 = 0 ; | |
25525 | PyObject * obj1 = 0 ; | |
25526 | PyObject * obj2 = 0 ; | |
25527 | char *kwnames[] = { | |
25528 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25529 | }; | |
25530 | ||
25531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25532 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDataObject, | |
25533 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25534 | arg2 = obj1; | |
25535 | arg3 = obj2; | |
25536 | { | |
25537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25538 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25539 | ||
25540 | wxPyEndAllowThreads(__tstate); | |
25541 | if (PyErr_Occurred()) SWIG_fail; | |
25542 | } | |
25543 | Py_INCREF(Py_None); resultobj = Py_None; | |
25544 | return resultobj; | |
25545 | fail: | |
25546 | return NULL; | |
25547 | } | |
25548 | ||
25549 | ||
c32bde28 | 25550 | static PyObject * PyTextDataObject_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
25551 | PyObject *obj; |
25552 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25553 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDataObject, obj); | |
25554 | Py_INCREF(obj); | |
25555 | return Py_BuildValue((char *)""); | |
25556 | } | |
c32bde28 | 25557 | static PyObject *_wrap_new_BitmapDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25558 | PyObject *resultobj; |
25559 | wxBitmap const &arg1_defvalue = wxNullBitmap ; | |
25560 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
25561 | wxBitmapDataObject *result; | |
25562 | PyObject * obj0 = 0 ; | |
25563 | char *kwnames[] = { | |
25564 | (char *) "bitmap", NULL | |
25565 | }; | |
25566 | ||
25567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BitmapDataObject",kwnames,&obj0)) goto fail; | |
25568 | if (obj0) { | |
25569 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
25570 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25571 | SWIG_fail; | |
25572 | if (arg1 == NULL) { | |
25573 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25574 | SWIG_fail; | |
25575 | } | |
25576 | } | |
25577 | { | |
25578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25579 | result = (wxBitmapDataObject *)new wxBitmapDataObject((wxBitmap const &)*arg1); | |
25580 | ||
25581 | wxPyEndAllowThreads(__tstate); | |
25582 | if (PyErr_Occurred()) SWIG_fail; | |
25583 | } | |
25584 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapDataObject, 1); | |
25585 | return resultobj; | |
25586 | fail: | |
25587 | return NULL; | |
25588 | } | |
25589 | ||
25590 | ||
c32bde28 | 25591 | static PyObject *_wrap_BitmapDataObject_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25592 | PyObject *resultobj; |
25593 | wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ; | |
25594 | wxBitmap result; | |
25595 | PyObject * obj0 = 0 ; | |
25596 | char *kwnames[] = { | |
25597 | (char *) "self", NULL | |
25598 | }; | |
25599 | ||
25600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapDataObject_GetBitmap",kwnames,&obj0)) goto fail; | |
25601 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject, | |
25602 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25603 | { | |
25604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25605 | result = ((wxBitmapDataObject const *)arg1)->GetBitmap(); | |
25606 | ||
25607 | wxPyEndAllowThreads(__tstate); | |
25608 | if (PyErr_Occurred()) SWIG_fail; | |
25609 | } | |
25610 | { | |
25611 | wxBitmap * resultptr; | |
25612 | resultptr = new wxBitmap((wxBitmap &) result); | |
25613 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
25614 | } | |
25615 | return resultobj; | |
25616 | fail: | |
25617 | return NULL; | |
25618 | } | |
25619 | ||
25620 | ||
c32bde28 | 25621 | static PyObject *_wrap_BitmapDataObject_SetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25622 | PyObject *resultobj; |
25623 | wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ; | |
25624 | wxBitmap *arg2 = 0 ; | |
25625 | PyObject * obj0 = 0 ; | |
25626 | PyObject * obj1 = 0 ; | |
25627 | char *kwnames[] = { | |
25628 | (char *) "self",(char *) "bitmap", NULL | |
25629 | }; | |
25630 | ||
25631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapDataObject_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
25632 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject, | |
25633 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25634 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
25635 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25636 | SWIG_fail; | |
25637 | if (arg2 == NULL) { | |
25638 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25639 | SWIG_fail; | |
25640 | } | |
25641 | { | |
25642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25643 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
25644 | ||
25645 | wxPyEndAllowThreads(__tstate); | |
25646 | if (PyErr_Occurred()) SWIG_fail; | |
25647 | } | |
25648 | Py_INCREF(Py_None); resultobj = Py_None; | |
25649 | return resultobj; | |
25650 | fail: | |
25651 | return NULL; | |
25652 | } | |
25653 | ||
25654 | ||
c32bde28 | 25655 | static PyObject * BitmapDataObject_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
25656 | PyObject *obj; |
25657 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25658 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmapDataObject, obj); | |
25659 | Py_INCREF(obj); | |
25660 | return Py_BuildValue((char *)""); | |
25661 | } | |
c32bde28 | 25662 | static PyObject *_wrap_new_PyBitmapDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25663 | PyObject *resultobj; |
25664 | wxBitmap const &arg1_defvalue = wxNullBitmap ; | |
25665 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
25666 | wxPyBitmapDataObject *result; | |
25667 | PyObject * obj0 = 0 ; | |
25668 | char *kwnames[] = { | |
25669 | (char *) "bitmap", NULL | |
25670 | }; | |
25671 | ||
25672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyBitmapDataObject",kwnames,&obj0)) goto fail; | |
25673 | if (obj0) { | |
25674 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
25675 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25676 | SWIG_fail; | |
25677 | if (arg1 == NULL) { | |
25678 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25679 | SWIG_fail; | |
25680 | } | |
25681 | } | |
25682 | { | |
25683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25684 | result = (wxPyBitmapDataObject *)new wxPyBitmapDataObject((wxBitmap const &)*arg1); | |
25685 | ||
25686 | wxPyEndAllowThreads(__tstate); | |
25687 | if (PyErr_Occurred()) SWIG_fail; | |
25688 | } | |
25689 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyBitmapDataObject, 1); | |
25690 | return resultobj; | |
25691 | fail: | |
25692 | return NULL; | |
25693 | } | |
25694 | ||
25695 | ||
c32bde28 | 25696 | static PyObject *_wrap_PyBitmapDataObject__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25697 | PyObject *resultobj; |
25698 | wxPyBitmapDataObject *arg1 = (wxPyBitmapDataObject *) 0 ; | |
25699 | PyObject *arg2 = (PyObject *) 0 ; | |
25700 | PyObject *arg3 = (PyObject *) 0 ; | |
25701 | PyObject * obj0 = 0 ; | |
25702 | PyObject * obj1 = 0 ; | |
25703 | PyObject * obj2 = 0 ; | |
25704 | char *kwnames[] = { | |
25705 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25706 | }; | |
25707 | ||
25708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25709 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapDataObject, | |
25710 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25711 | arg2 = obj1; | |
25712 | arg3 = obj2; | |
25713 | { | |
25714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25715 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25716 | ||
25717 | wxPyEndAllowThreads(__tstate); | |
25718 | if (PyErr_Occurred()) SWIG_fail; | |
25719 | } | |
25720 | Py_INCREF(Py_None); resultobj = Py_None; | |
25721 | return resultobj; | |
25722 | fail: | |
25723 | return NULL; | |
25724 | } | |
25725 | ||
25726 | ||
c32bde28 | 25727 | static PyObject * PyBitmapDataObject_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
25728 | PyObject *obj; |
25729 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25730 | SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapDataObject, obj); | |
25731 | Py_INCREF(obj); | |
25732 | return Py_BuildValue((char *)""); | |
25733 | } | |
c32bde28 | 25734 | static PyObject *_wrap_new_FileDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25735 | PyObject *resultobj; |
25736 | wxFileDataObject *result; | |
25737 | char *kwnames[] = { | |
25738 | NULL | |
25739 | }; | |
25740 | ||
25741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDataObject",kwnames)) goto fail; | |
25742 | { | |
25743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25744 | result = (wxFileDataObject *)new wxFileDataObject(); | |
25745 | ||
25746 | wxPyEndAllowThreads(__tstate); | |
25747 | if (PyErr_Occurred()) SWIG_fail; | |
25748 | } | |
25749 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileDataObject, 1); | |
25750 | return resultobj; | |
25751 | fail: | |
25752 | return NULL; | |
25753 | } | |
25754 | ||
25755 | ||
c32bde28 | 25756 | static PyObject *_wrap_FileDataObject_GetFilenames(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25757 | PyObject *resultobj; |
25758 | wxFileDataObject *arg1 = (wxFileDataObject *) 0 ; | |
25759 | wxArrayString *result; | |
25760 | PyObject * obj0 = 0 ; | |
25761 | char *kwnames[] = { | |
25762 | (char *) "self", NULL | |
25763 | }; | |
25764 | ||
25765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDataObject_GetFilenames",kwnames,&obj0)) goto fail; | |
25766 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject, | |
25767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25768 | { | |
25769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25770 | { | |
25771 | wxArrayString const &_result_ref = (arg1)->GetFilenames(); | |
25772 | result = (wxArrayString *) &_result_ref; | |
25773 | } | |
25774 | ||
25775 | wxPyEndAllowThreads(__tstate); | |
25776 | if (PyErr_Occurred()) SWIG_fail; | |
25777 | } | |
25778 | { | |
25779 | resultobj = wxArrayString2PyList_helper(*result); | |
25780 | } | |
25781 | return resultobj; | |
25782 | fail: | |
25783 | return NULL; | |
25784 | } | |
25785 | ||
25786 | ||
c32bde28 | 25787 | static PyObject *_wrap_FileDataObject_AddFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25788 | PyObject *resultobj; |
25789 | wxFileDataObject *arg1 = (wxFileDataObject *) 0 ; | |
25790 | wxString *arg2 = 0 ; | |
ae8162c8 | 25791 | bool temp2 = false ; |
d55e5bfc RD |
25792 | PyObject * obj0 = 0 ; |
25793 | PyObject * obj1 = 0 ; | |
25794 | char *kwnames[] = { | |
25795 | (char *) "self",(char *) "filename", NULL | |
25796 | }; | |
25797 | ||
25798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDataObject_AddFile",kwnames,&obj0,&obj1)) goto fail; | |
25799 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject, | |
25800 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25801 | { | |
25802 | arg2 = wxString_in_helper(obj1); | |
25803 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 25804 | temp2 = true; |
d55e5bfc RD |
25805 | } |
25806 | { | |
25807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25808 | (arg1)->AddFile((wxString const &)*arg2); | |
25809 | ||
25810 | wxPyEndAllowThreads(__tstate); | |
25811 | if (PyErr_Occurred()) SWIG_fail; | |
25812 | } | |
25813 | Py_INCREF(Py_None); resultobj = Py_None; | |
25814 | { | |
25815 | if (temp2) | |
25816 | delete arg2; | |
25817 | } | |
25818 | return resultobj; | |
25819 | fail: | |
25820 | { | |
25821 | if (temp2) | |
25822 | delete arg2; | |
25823 | } | |
25824 | return NULL; | |
25825 | } | |
25826 | ||
25827 | ||
c32bde28 | 25828 | static PyObject * FileDataObject_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
25829 | PyObject *obj; |
25830 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25831 | SWIG_TypeClientData(SWIGTYPE_p_wxFileDataObject, obj); | |
25832 | Py_INCREF(obj); | |
25833 | return Py_BuildValue((char *)""); | |
25834 | } | |
c32bde28 | 25835 | static PyObject *_wrap_new_CustomDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25836 | PyObject *resultobj; |
25837 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
25838 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
25839 | wxCustomDataObject *result; | |
25840 | PyObject * obj0 = 0 ; | |
25841 | char *kwnames[] = { | |
25842 | (char *) "format", NULL | |
25843 | }; | |
25844 | ||
25845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CustomDataObject",kwnames,&obj0)) goto fail; | |
25846 | if (obj0) { | |
25847 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
25848 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25849 | SWIG_fail; | |
25850 | if (arg1 == NULL) { | |
25851 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25852 | SWIG_fail; | |
25853 | } | |
25854 | } | |
25855 | { | |
25856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25857 | result = (wxCustomDataObject *)new wxCustomDataObject((wxDataFormat const &)*arg1); | |
25858 | ||
25859 | wxPyEndAllowThreads(__tstate); | |
25860 | if (PyErr_Occurred()) SWIG_fail; | |
25861 | } | |
25862 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCustomDataObject, 1); | |
25863 | return resultobj; | |
25864 | fail: | |
25865 | return NULL; | |
25866 | } | |
25867 | ||
25868 | ||
c32bde28 | 25869 | static PyObject *_wrap_CustomDataObject_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25870 | PyObject *resultobj; |
25871 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
25872 | PyObject *arg2 = (PyObject *) 0 ; | |
25873 | bool result; | |
25874 | PyObject * obj0 = 0 ; | |
25875 | PyObject * obj1 = 0 ; | |
25876 | char *kwnames[] = { | |
25877 | (char *) "self",(char *) "data", NULL | |
25878 | }; | |
25879 | ||
25880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_SetData",kwnames,&obj0,&obj1)) goto fail; | |
25881 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, | |
25882 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25883 | arg2 = obj1; | |
25884 | { | |
25885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25886 | result = (bool)wxCustomDataObject_SetData(arg1,arg2); | |
25887 | ||
25888 | wxPyEndAllowThreads(__tstate); | |
25889 | if (PyErr_Occurred()) SWIG_fail; | |
25890 | } | |
25891 | { | |
25892 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25893 | } | |
25894 | return resultobj; | |
25895 | fail: | |
25896 | return NULL; | |
25897 | } | |
25898 | ||
25899 | ||
c32bde28 | 25900 | static PyObject *_wrap_CustomDataObject_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25901 | PyObject *resultobj; |
25902 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
25903 | size_t result; | |
25904 | PyObject * obj0 = 0 ; | |
25905 | char *kwnames[] = { | |
25906 | (char *) "self", NULL | |
25907 | }; | |
25908 | ||
25909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetSize",kwnames,&obj0)) goto fail; | |
25910 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, | |
25911 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25912 | { | |
25913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25914 | result = (size_t)(arg1)->GetSize(); | |
25915 | ||
25916 | wxPyEndAllowThreads(__tstate); | |
25917 | if (PyErr_Occurred()) SWIG_fail; | |
25918 | } | |
c32bde28 | 25919 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
25920 | return resultobj; |
25921 | fail: | |
25922 | return NULL; | |
25923 | } | |
25924 | ||
25925 | ||
c32bde28 | 25926 | static PyObject *_wrap_CustomDataObject_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25927 | PyObject *resultobj; |
25928 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
25929 | PyObject *result; | |
25930 | PyObject * obj0 = 0 ; | |
25931 | char *kwnames[] = { | |
25932 | (char *) "self", NULL | |
25933 | }; | |
25934 | ||
25935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetData",kwnames,&obj0)) goto fail; | |
25936 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, | |
25937 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25938 | { | |
25939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25940 | result = (PyObject *)wxCustomDataObject_GetData(arg1); | |
25941 | ||
25942 | wxPyEndAllowThreads(__tstate); | |
25943 | if (PyErr_Occurred()) SWIG_fail; | |
25944 | } | |
25945 | resultobj = result; | |
25946 | return resultobj; | |
25947 | fail: | |
25948 | return NULL; | |
25949 | } | |
25950 | ||
25951 | ||
c32bde28 | 25952 | static PyObject * CustomDataObject_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
25953 | PyObject *obj; |
25954 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25955 | SWIG_TypeClientData(SWIGTYPE_p_wxCustomDataObject, obj); | |
25956 | Py_INCREF(obj); | |
25957 | return Py_BuildValue((char *)""); | |
25958 | } | |
c32bde28 | 25959 | static PyObject *_wrap_new_URLDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25960 | PyObject *resultobj; |
25961 | wxURLDataObject *result; | |
25962 | char *kwnames[] = { | |
25963 | NULL | |
25964 | }; | |
25965 | ||
25966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_URLDataObject",kwnames)) goto fail; | |
25967 | { | |
25968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25969 | result = (wxURLDataObject *)new wxURLDataObject(); | |
25970 | ||
25971 | wxPyEndAllowThreads(__tstate); | |
25972 | if (PyErr_Occurred()) SWIG_fail; | |
25973 | } | |
25974 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxURLDataObject, 1); | |
25975 | return resultobj; | |
25976 | fail: | |
25977 | return NULL; | |
25978 | } | |
25979 | ||
25980 | ||
c32bde28 | 25981 | static PyObject *_wrap_URLDataObject_GetURL(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25982 | PyObject *resultobj; |
25983 | wxURLDataObject *arg1 = (wxURLDataObject *) 0 ; | |
25984 | wxString result; | |
25985 | PyObject * obj0 = 0 ; | |
25986 | char *kwnames[] = { | |
25987 | (char *) "self", NULL | |
25988 | }; | |
25989 | ||
25990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:URLDataObject_GetURL",kwnames,&obj0)) goto fail; | |
25991 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject, | |
25992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25993 | { | |
25994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25995 | result = (arg1)->GetURL(); | |
25996 | ||
25997 | wxPyEndAllowThreads(__tstate); | |
25998 | if (PyErr_Occurred()) SWIG_fail; | |
25999 | } | |
26000 | { | |
26001 | #if wxUSE_UNICODE | |
26002 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
26003 | #else | |
26004 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
26005 | #endif | |
26006 | } | |
26007 | return resultobj; | |
26008 | fail: | |
26009 | return NULL; | |
26010 | } | |
26011 | ||
26012 | ||
c32bde28 | 26013 | static PyObject *_wrap_URLDataObject_SetURL(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26014 | PyObject *resultobj; |
26015 | wxURLDataObject *arg1 = (wxURLDataObject *) 0 ; | |
26016 | wxString *arg2 = 0 ; | |
ae8162c8 | 26017 | bool temp2 = false ; |
d55e5bfc RD |
26018 | PyObject * obj0 = 0 ; |
26019 | PyObject * obj1 = 0 ; | |
26020 | char *kwnames[] = { | |
26021 | (char *) "self",(char *) "url", NULL | |
26022 | }; | |
26023 | ||
26024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:URLDataObject_SetURL",kwnames,&obj0,&obj1)) goto fail; | |
26025 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject, | |
26026 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26027 | { | |
26028 | arg2 = wxString_in_helper(obj1); | |
26029 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 26030 | temp2 = true; |
d55e5bfc RD |
26031 | } |
26032 | { | |
26033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26034 | (arg1)->SetURL((wxString const &)*arg2); | |
26035 | ||
26036 | wxPyEndAllowThreads(__tstate); | |
26037 | if (PyErr_Occurred()) SWIG_fail; | |
26038 | } | |
26039 | Py_INCREF(Py_None); resultobj = Py_None; | |
26040 | { | |
26041 | if (temp2) | |
26042 | delete arg2; | |
26043 | } | |
26044 | return resultobj; | |
26045 | fail: | |
26046 | { | |
26047 | if (temp2) | |
26048 | delete arg2; | |
26049 | } | |
26050 | return NULL; | |
26051 | } | |
26052 | ||
26053 | ||
c32bde28 | 26054 | static PyObject * URLDataObject_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
26055 | PyObject *obj; |
26056 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26057 | SWIG_TypeClientData(SWIGTYPE_p_wxURLDataObject, obj); | |
26058 | Py_INCREF(obj); | |
26059 | return Py_BuildValue((char *)""); | |
26060 | } | |
c32bde28 | 26061 | static PyObject *_wrap_new_MetafileDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26062 | PyObject *resultobj; |
26063 | wxMetafileDataObject *result; | |
26064 | char *kwnames[] = { | |
26065 | NULL | |
26066 | }; | |
26067 | ||
26068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MetafileDataObject",kwnames)) goto fail; | |
26069 | { | |
26070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26071 | result = (wxMetafileDataObject *)new wxMetafileDataObject(); | |
26072 | ||
26073 | wxPyEndAllowThreads(__tstate); | |
26074 | if (PyErr_Occurred()) SWIG_fail; | |
26075 | } | |
26076 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetafileDataObject, 1); | |
26077 | return resultobj; | |
26078 | fail: | |
26079 | return NULL; | |
26080 | } | |
26081 | ||
26082 | ||
c32bde28 | 26083 | static PyObject *_wrap_MetafileDataObject_SetMetafile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26084 | PyObject *resultobj; |
26085 | wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ; | |
26086 | wxMetafile *arg2 = 0 ; | |
26087 | PyObject * obj0 = 0 ; | |
26088 | PyObject * obj1 = 0 ; | |
26089 | char *kwnames[] = { | |
26090 | (char *) "self",(char *) "metafile", NULL | |
26091 | }; | |
26092 | ||
26093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MetafileDataObject_SetMetafile",kwnames,&obj0,&obj1)) goto fail; | |
26094 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetafileDataObject, | |
26095 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26096 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMetafile, | |
26097 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26098 | SWIG_fail; | |
26099 | if (arg2 == NULL) { | |
26100 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26101 | SWIG_fail; | |
26102 | } | |
26103 | { | |
26104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26105 | (arg1)->SetMetafile((wxMetafile const &)*arg2); | |
26106 | ||
26107 | wxPyEndAllowThreads(__tstate); | |
26108 | if (PyErr_Occurred()) SWIG_fail; | |
26109 | } | |
26110 | Py_INCREF(Py_None); resultobj = Py_None; | |
26111 | return resultobj; | |
26112 | fail: | |
26113 | return NULL; | |
26114 | } | |
26115 | ||
26116 | ||
c32bde28 | 26117 | static PyObject *_wrap_MetafileDataObject_GetMetafile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26118 | PyObject *resultobj; |
26119 | wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ; | |
26120 | wxMetafile result; | |
26121 | PyObject * obj0 = 0 ; | |
26122 | char *kwnames[] = { | |
26123 | (char *) "self", NULL | |
26124 | }; | |
26125 | ||
26126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetafileDataObject_GetMetafile",kwnames,&obj0)) goto fail; | |
26127 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetafileDataObject, | |
26128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26129 | { | |
26130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26131 | result = ((wxMetafileDataObject const *)arg1)->GetMetafile(); | |
26132 | ||
26133 | wxPyEndAllowThreads(__tstate); | |
26134 | if (PyErr_Occurred()) SWIG_fail; | |
26135 | } | |
26136 | { | |
26137 | wxMetafile * resultptr; | |
26138 | resultptr = new wxMetafile((wxMetafile &) result); | |
26139 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxMetafile, 1); | |
26140 | } | |
26141 | return resultobj; | |
26142 | fail: | |
26143 | return NULL; | |
26144 | } | |
26145 | ||
26146 | ||
c32bde28 | 26147 | static PyObject * MetafileDataObject_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
26148 | PyObject *obj; |
26149 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26150 | SWIG_TypeClientData(SWIGTYPE_p_wxMetafileDataObject, obj); | |
26151 | Py_INCREF(obj); | |
26152 | return Py_BuildValue((char *)""); | |
26153 | } | |
c32bde28 | 26154 | static PyObject *_wrap_IsDragResultOk(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26155 | PyObject *resultobj; |
26156 | int arg1 ; | |
26157 | bool result; | |
26158 | PyObject * obj0 = 0 ; | |
26159 | char *kwnames[] = { | |
26160 | (char *) "res", NULL | |
26161 | }; | |
26162 | ||
26163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsDragResultOk",kwnames,&obj0)) goto fail; | |
c32bde28 | 26164 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
26165 | if (PyErr_Occurred()) SWIG_fail; |
26166 | { | |
26167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26168 | result = (bool)wxIsDragResultOk((wxDragResult )arg1); | |
26169 | ||
26170 | wxPyEndAllowThreads(__tstate); | |
26171 | if (PyErr_Occurred()) SWIG_fail; | |
26172 | } | |
26173 | { | |
26174 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26175 | } | |
26176 | return resultobj; | |
26177 | fail: | |
26178 | return NULL; | |
26179 | } | |
26180 | ||
26181 | ||
c32bde28 | 26182 | static PyObject *_wrap_new_DropSource(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26183 | PyObject *resultobj; |
26184 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26185 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
26186 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
26187 | wxCursor const &arg3_defvalue = wxNullCursor ; | |
26188 | wxCursor *arg3 = (wxCursor *) &arg3_defvalue ; | |
26189 | wxCursor const &arg4_defvalue = wxNullCursor ; | |
26190 | wxCursor *arg4 = (wxCursor *) &arg4_defvalue ; | |
26191 | wxPyDropSource *result; | |
26192 | PyObject * obj0 = 0 ; | |
26193 | PyObject * obj1 = 0 ; | |
26194 | PyObject * obj2 = 0 ; | |
26195 | PyObject * obj3 = 0 ; | |
26196 | char *kwnames[] = { | |
26197 | (char *) "win",(char *) "copy",(char *) "move",(char *) "none", NULL | |
26198 | }; | |
26199 | ||
26200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DropSource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26201 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26202 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26203 | if (obj1) { | |
26204 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
26205 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26206 | SWIG_fail; | |
26207 | if (arg2 == NULL) { | |
26208 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26209 | SWIG_fail; | |
26210 | } | |
26211 | } | |
26212 | if (obj2) { | |
26213 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor, | |
26214 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26215 | SWIG_fail; | |
26216 | if (arg3 == NULL) { | |
26217 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26218 | SWIG_fail; | |
26219 | } | |
26220 | } | |
26221 | if (obj3) { | |
26222 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxCursor, | |
26223 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26224 | SWIG_fail; | |
26225 | if (arg4 == NULL) { | |
26226 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26227 | SWIG_fail; | |
26228 | } | |
26229 | } | |
26230 | { | |
26231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26232 | result = (wxPyDropSource *)new wxPyDropSource(arg1,(wxCursor const &)*arg2,(wxCursor const &)*arg3,(wxCursor const &)*arg4); | |
26233 | ||
26234 | wxPyEndAllowThreads(__tstate); | |
26235 | if (PyErr_Occurred()) SWIG_fail; | |
26236 | } | |
26237 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropSource, 1); | |
26238 | return resultobj; | |
26239 | fail: | |
26240 | return NULL; | |
26241 | } | |
26242 | ||
26243 | ||
c32bde28 | 26244 | static PyObject *_wrap_DropSource__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26245 | PyObject *resultobj; |
26246 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
26247 | PyObject *arg2 = (PyObject *) 0 ; | |
26248 | PyObject *arg3 = (PyObject *) 0 ; | |
26249 | int arg4 ; | |
26250 | PyObject * obj0 = 0 ; | |
26251 | PyObject * obj1 = 0 ; | |
26252 | PyObject * obj2 = 0 ; | |
26253 | PyObject * obj3 = 0 ; | |
26254 | char *kwnames[] = { | |
26255 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
26256 | }; | |
26257 | ||
26258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropSource__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26259 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
26260 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26261 | arg2 = obj1; | |
26262 | arg3 = obj2; | |
c32bde28 | 26263 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
26264 | if (PyErr_Occurred()) SWIG_fail; |
26265 | { | |
26266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26267 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
26268 | ||
26269 | wxPyEndAllowThreads(__tstate); | |
26270 | if (PyErr_Occurred()) SWIG_fail; | |
26271 | } | |
26272 | Py_INCREF(Py_None); resultobj = Py_None; | |
26273 | return resultobj; | |
26274 | fail: | |
26275 | return NULL; | |
26276 | } | |
26277 | ||
26278 | ||
c32bde28 | 26279 | static PyObject *_wrap_delete_DropSource(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26280 | PyObject *resultobj; |
26281 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
26282 | PyObject * obj0 = 0 ; | |
26283 | char *kwnames[] = { | |
26284 | (char *) "self", NULL | |
26285 | }; | |
26286 | ||
26287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropSource",kwnames,&obj0)) goto fail; | |
26288 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
26289 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26290 | { | |
26291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26292 | delete arg1; | |
26293 | ||
26294 | wxPyEndAllowThreads(__tstate); | |
26295 | if (PyErr_Occurred()) SWIG_fail; | |
26296 | } | |
26297 | Py_INCREF(Py_None); resultobj = Py_None; | |
26298 | return resultobj; | |
26299 | fail: | |
26300 | return NULL; | |
26301 | } | |
26302 | ||
26303 | ||
c32bde28 | 26304 | static PyObject *_wrap_DropSource_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26305 | PyObject *resultobj; |
26306 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
26307 | wxDataObject *arg2 = 0 ; | |
26308 | PyObject * obj0 = 0 ; | |
26309 | PyObject * obj1 = 0 ; | |
26310 | char *kwnames[] = { | |
26311 | (char *) "self",(char *) "data", NULL | |
26312 | }; | |
26313 | ||
26314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_SetData",kwnames,&obj0,&obj1)) goto fail; | |
26315 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
26316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26317 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
26318 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26319 | SWIG_fail; | |
26320 | if (arg2 == NULL) { | |
26321 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26322 | SWIG_fail; | |
26323 | } | |
26324 | { | |
26325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26326 | (arg1)->SetData(*arg2); | |
26327 | ||
26328 | wxPyEndAllowThreads(__tstate); | |
26329 | if (PyErr_Occurred()) SWIG_fail; | |
26330 | } | |
26331 | Py_INCREF(Py_None); resultobj = Py_None; | |
26332 | return resultobj; | |
26333 | fail: | |
26334 | return NULL; | |
26335 | } | |
26336 | ||
26337 | ||
c32bde28 | 26338 | static PyObject *_wrap_DropSource_GetDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26339 | PyObject *resultobj; |
26340 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
26341 | wxDataObject *result; | |
26342 | PyObject * obj0 = 0 ; | |
26343 | char *kwnames[] = { | |
26344 | (char *) "self", NULL | |
26345 | }; | |
26346 | ||
26347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropSource_GetDataObject",kwnames,&obj0)) goto fail; | |
26348 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
26349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26350 | { | |
26351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26352 | result = (wxDataObject *)(arg1)->GetDataObject(); | |
26353 | ||
26354 | wxPyEndAllowThreads(__tstate); | |
26355 | if (PyErr_Occurred()) SWIG_fail; | |
26356 | } | |
26357 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0); | |
26358 | return resultobj; | |
26359 | fail: | |
26360 | return NULL; | |
26361 | } | |
26362 | ||
26363 | ||
c32bde28 | 26364 | static PyObject *_wrap_DropSource_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26365 | PyObject *resultobj; |
26366 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
26367 | int arg2 ; | |
26368 | wxCursor *arg3 = 0 ; | |
26369 | PyObject * obj0 = 0 ; | |
26370 | PyObject * obj1 = 0 ; | |
26371 | PyObject * obj2 = 0 ; | |
26372 | char *kwnames[] = { | |
26373 | (char *) "self",(char *) "res",(char *) "cursor", NULL | |
26374 | }; | |
26375 | ||
26376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropSource_SetCursor",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26377 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
26378 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 26379 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
26380 | if (PyErr_Occurred()) SWIG_fail; |
26381 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor, | |
26382 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26383 | SWIG_fail; | |
26384 | if (arg3 == NULL) { | |
26385 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26386 | SWIG_fail; | |
26387 | } | |
26388 | { | |
26389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26390 | (arg1)->SetCursor((wxDragResult )arg2,(wxCursor const &)*arg3); | |
26391 | ||
26392 | wxPyEndAllowThreads(__tstate); | |
26393 | if (PyErr_Occurred()) SWIG_fail; | |
26394 | } | |
26395 | Py_INCREF(Py_None); resultobj = Py_None; | |
26396 | return resultobj; | |
26397 | fail: | |
26398 | return NULL; | |
26399 | } | |
26400 | ||
26401 | ||
c32bde28 | 26402 | static PyObject *_wrap_DropSource_DoDragDrop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26403 | PyObject *resultobj; |
26404 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
26405 | int arg2 = (int) wxDrag_CopyOnly ; | |
26406 | int result; | |
26407 | PyObject * obj0 = 0 ; | |
26408 | PyObject * obj1 = 0 ; | |
26409 | char *kwnames[] = { | |
26410 | (char *) "self",(char *) "flags", NULL | |
26411 | }; | |
26412 | ||
26413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DropSource_DoDragDrop",kwnames,&obj0,&obj1)) goto fail; | |
26414 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
26415 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26416 | if (obj1) { | |
c32bde28 | 26417 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
26418 | if (PyErr_Occurred()) SWIG_fail; |
26419 | } | |
26420 | { | |
26421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26422 | result = (int)(arg1)->DoDragDrop(arg2); | |
26423 | ||
26424 | wxPyEndAllowThreads(__tstate); | |
26425 | if (PyErr_Occurred()) SWIG_fail; | |
26426 | } | |
c32bde28 | 26427 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
26428 | return resultobj; |
26429 | fail: | |
26430 | return NULL; | |
26431 | } | |
26432 | ||
26433 | ||
c32bde28 | 26434 | static PyObject *_wrap_DropSource_base_GiveFeedback(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26435 | PyObject *resultobj; |
26436 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
26437 | int arg2 ; | |
26438 | bool result; | |
26439 | PyObject * obj0 = 0 ; | |
26440 | PyObject * obj1 = 0 ; | |
26441 | char *kwnames[] = { | |
26442 | (char *) "self",(char *) "effect", NULL | |
26443 | }; | |
26444 | ||
26445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_base_GiveFeedback",kwnames,&obj0,&obj1)) goto fail; | |
26446 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
26447 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 26448 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
26449 | if (PyErr_Occurred()) SWIG_fail; |
26450 | { | |
26451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26452 | result = (bool)(arg1)->base_GiveFeedback((wxDragResult )arg2); | |
26453 | ||
26454 | wxPyEndAllowThreads(__tstate); | |
26455 | if (PyErr_Occurred()) SWIG_fail; | |
26456 | } | |
26457 | { | |
26458 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26459 | } | |
26460 | return resultobj; | |
26461 | fail: | |
26462 | return NULL; | |
26463 | } | |
26464 | ||
26465 | ||
c32bde28 | 26466 | static PyObject * DropSource_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
26467 | PyObject *obj; |
26468 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26469 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDropSource, obj); | |
26470 | Py_INCREF(obj); | |
26471 | return Py_BuildValue((char *)""); | |
26472 | } | |
c32bde28 | 26473 | static PyObject *_wrap_new_DropTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26474 | PyObject *resultobj; |
26475 | wxDataObject *arg1 = (wxDataObject *) NULL ; | |
26476 | wxPyDropTarget *result; | |
26477 | PyObject * obj0 = 0 ; | |
26478 | char *kwnames[] = { | |
26479 | (char *) "dataObject", NULL | |
26480 | }; | |
26481 | ||
26482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DropTarget",kwnames,&obj0)) goto fail; | |
26483 | if (obj0) { | |
26484 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
26485 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
26486 | } | |
26487 | { | |
26488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26489 | result = (wxPyDropTarget *)new wxPyDropTarget(arg1); | |
26490 | ||
26491 | wxPyEndAllowThreads(__tstate); | |
26492 | if (PyErr_Occurred()) SWIG_fail; | |
26493 | } | |
26494 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 1); | |
26495 | return resultobj; | |
26496 | fail: | |
26497 | return NULL; | |
26498 | } | |
26499 | ||
26500 | ||
c32bde28 | 26501 | static PyObject *_wrap_DropTarget__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26502 | PyObject *resultobj; |
26503 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26504 | PyObject *arg2 = (PyObject *) 0 ; | |
26505 | PyObject *arg3 = (PyObject *) 0 ; | |
26506 | PyObject * obj0 = 0 ; | |
26507 | PyObject * obj1 = 0 ; | |
26508 | PyObject * obj2 = 0 ; | |
26509 | char *kwnames[] = { | |
26510 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
26511 | }; | |
26512 | ||
26513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26514 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26515 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26516 | arg2 = obj1; | |
26517 | arg3 = obj2; | |
26518 | { | |
26519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26520 | (arg1)->_setCallbackInfo(arg2,arg3); | |
26521 | ||
26522 | wxPyEndAllowThreads(__tstate); | |
26523 | if (PyErr_Occurred()) SWIG_fail; | |
26524 | } | |
26525 | Py_INCREF(Py_None); resultobj = Py_None; | |
26526 | return resultobj; | |
26527 | fail: | |
26528 | return NULL; | |
26529 | } | |
26530 | ||
26531 | ||
c32bde28 | 26532 | static PyObject *_wrap_delete_DropTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26533 | PyObject *resultobj; |
26534 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26535 | PyObject * obj0 = 0 ; | |
26536 | char *kwnames[] = { | |
26537 | (char *) "self", NULL | |
26538 | }; | |
26539 | ||
26540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropTarget",kwnames,&obj0)) goto fail; | |
26541 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26543 | { | |
26544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26545 | delete arg1; | |
26546 | ||
26547 | wxPyEndAllowThreads(__tstate); | |
26548 | if (PyErr_Occurred()) SWIG_fail; | |
26549 | } | |
26550 | Py_INCREF(Py_None); resultobj = Py_None; | |
26551 | return resultobj; | |
26552 | fail: | |
26553 | return NULL; | |
26554 | } | |
26555 | ||
26556 | ||
c32bde28 | 26557 | static PyObject *_wrap_DropTarget_GetDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26558 | PyObject *resultobj; |
26559 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26560 | wxDataObject *result; | |
26561 | PyObject * obj0 = 0 ; | |
26562 | char *kwnames[] = { | |
26563 | (char *) "self", NULL | |
26564 | }; | |
26565 | ||
26566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDataObject",kwnames,&obj0)) goto fail; | |
26567 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26568 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26569 | { | |
26570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26571 | result = (wxDataObject *)(arg1)->GetDataObject(); | |
26572 | ||
26573 | wxPyEndAllowThreads(__tstate); | |
26574 | if (PyErr_Occurred()) SWIG_fail; | |
26575 | } | |
26576 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0); | |
26577 | return resultobj; | |
26578 | fail: | |
26579 | return NULL; | |
26580 | } | |
26581 | ||
26582 | ||
c32bde28 | 26583 | static PyObject *_wrap_DropTarget_SetDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26584 | PyObject *resultobj; |
26585 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26586 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
26587 | PyObject * obj0 = 0 ; | |
26588 | PyObject * obj1 = 0 ; | |
26589 | char *kwnames[] = { | |
26590 | (char *) "self",(char *) "dataObject", NULL | |
26591 | }; | |
26592 | ||
26593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDataObject",kwnames,&obj0,&obj1)) goto fail; | |
26594 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26595 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26596 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
26597 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
26598 | { | |
26599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26600 | (arg1)->SetDataObject(arg2); | |
26601 | ||
26602 | wxPyEndAllowThreads(__tstate); | |
26603 | if (PyErr_Occurred()) SWIG_fail; | |
26604 | } | |
26605 | Py_INCREF(Py_None); resultobj = Py_None; | |
26606 | return resultobj; | |
26607 | fail: | |
26608 | return NULL; | |
26609 | } | |
26610 | ||
26611 | ||
c32bde28 | 26612 | static PyObject *_wrap_DropTarget_base_OnEnter(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26613 | PyObject *resultobj; |
26614 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26615 | int arg2 ; | |
26616 | int arg3 ; | |
26617 | int arg4 ; | |
26618 | int result; | |
26619 | PyObject * obj0 = 0 ; | |
26620 | PyObject * obj1 = 0 ; | |
26621 | PyObject * obj2 = 0 ; | |
26622 | PyObject * obj3 = 0 ; | |
26623 | char *kwnames[] = { | |
26624 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26625 | }; | |
26626 | ||
26627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26628 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26629 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 26630 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 26631 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 26632 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 26633 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 26634 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
26635 | if (PyErr_Occurred()) SWIG_fail; |
26636 | { | |
26637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26638 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
26639 | ||
26640 | wxPyEndAllowThreads(__tstate); | |
26641 | if (PyErr_Occurred()) SWIG_fail; | |
26642 | } | |
c32bde28 | 26643 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
26644 | return resultobj; |
26645 | fail: | |
26646 | return NULL; | |
26647 | } | |
26648 | ||
26649 | ||
c32bde28 | 26650 | static PyObject *_wrap_DropTarget_base_OnDragOver(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26651 | PyObject *resultobj; |
26652 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26653 | int arg2 ; | |
26654 | int arg3 ; | |
26655 | int arg4 ; | |
26656 | int result; | |
26657 | PyObject * obj0 = 0 ; | |
26658 | PyObject * obj1 = 0 ; | |
26659 | PyObject * obj2 = 0 ; | |
26660 | PyObject * obj3 = 0 ; | |
26661 | char *kwnames[] = { | |
26662 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26663 | }; | |
26664 | ||
26665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 26668 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 26669 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 26670 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 26671 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 26672 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
26673 | if (PyErr_Occurred()) SWIG_fail; |
26674 | { | |
26675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26676 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
26677 | ||
26678 | wxPyEndAllowThreads(__tstate); | |
26679 | if (PyErr_Occurred()) SWIG_fail; | |
26680 | } | |
c32bde28 | 26681 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
26682 | return resultobj; |
26683 | fail: | |
26684 | return NULL; | |
26685 | } | |
26686 | ||
26687 | ||
c32bde28 | 26688 | static PyObject *_wrap_DropTarget_base_OnLeave(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26689 | PyObject *resultobj; |
26690 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26691 | PyObject * obj0 = 0 ; | |
26692 | char *kwnames[] = { | |
26693 | (char *) "self", NULL | |
26694 | }; | |
26695 | ||
26696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
26697 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26698 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26699 | { | |
26700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26701 | (arg1)->base_OnLeave(); | |
26702 | ||
26703 | wxPyEndAllowThreads(__tstate); | |
26704 | if (PyErr_Occurred()) SWIG_fail; | |
26705 | } | |
26706 | Py_INCREF(Py_None); resultobj = Py_None; | |
26707 | return resultobj; | |
26708 | fail: | |
26709 | return NULL; | |
26710 | } | |
26711 | ||
26712 | ||
c32bde28 | 26713 | static PyObject *_wrap_DropTarget_base_OnDrop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26714 | PyObject *resultobj; |
26715 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26716 | int arg2 ; | |
26717 | int arg3 ; | |
26718 | bool result; | |
26719 | PyObject * obj0 = 0 ; | |
26720 | PyObject * obj1 = 0 ; | |
26721 | PyObject * obj2 = 0 ; | |
26722 | char *kwnames[] = { | |
26723 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26724 | }; | |
26725 | ||
26726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26727 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 26729 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 26730 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 26731 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
26732 | if (PyErr_Occurred()) SWIG_fail; |
26733 | { | |
26734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26735 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
26736 | ||
26737 | wxPyEndAllowThreads(__tstate); | |
26738 | if (PyErr_Occurred()) SWIG_fail; | |
26739 | } | |
26740 | { | |
26741 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26742 | } | |
26743 | return resultobj; | |
26744 | fail: | |
26745 | return NULL; | |
26746 | } | |
26747 | ||
26748 | ||
c32bde28 | 26749 | static PyObject *_wrap_DropTarget_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26750 | PyObject *resultobj; |
26751 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26752 | bool result; | |
26753 | PyObject * obj0 = 0 ; | |
26754 | char *kwnames[] = { | |
26755 | (char *) "self", NULL | |
26756 | }; | |
26757 | ||
26758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetData",kwnames,&obj0)) goto fail; | |
26759 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26760 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26761 | { | |
26762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26763 | result = (bool)(arg1)->GetData(); | |
26764 | ||
26765 | wxPyEndAllowThreads(__tstate); | |
26766 | if (PyErr_Occurred()) SWIG_fail; | |
26767 | } | |
26768 | { | |
26769 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26770 | } | |
26771 | return resultobj; | |
26772 | fail: | |
26773 | return NULL; | |
26774 | } | |
26775 | ||
26776 | ||
c32bde28 | 26777 | static PyObject * DropTarget_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
26778 | PyObject *obj; |
26779 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26780 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDropTarget, obj); | |
26781 | Py_INCREF(obj); | |
26782 | return Py_BuildValue((char *)""); | |
26783 | } | |
c32bde28 | 26784 | static PyObject *_wrap_new_TextDropTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26785 | PyObject *resultobj; |
26786 | wxPyTextDropTarget *result; | |
26787 | char *kwnames[] = { | |
26788 | NULL | |
26789 | }; | |
26790 | ||
26791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TextDropTarget",kwnames)) goto fail; | |
26792 | { | |
26793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26794 | result = (wxPyTextDropTarget *)new wxPyTextDropTarget(); | |
26795 | ||
26796 | wxPyEndAllowThreads(__tstate); | |
26797 | if (PyErr_Occurred()) SWIG_fail; | |
26798 | } | |
26799 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDropTarget, 1); | |
26800 | return resultobj; | |
26801 | fail: | |
26802 | return NULL; | |
26803 | } | |
26804 | ||
26805 | ||
c32bde28 | 26806 | static PyObject *_wrap_TextDropTarget__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26807 | PyObject *resultobj; |
26808 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26809 | PyObject *arg2 = (PyObject *) 0 ; | |
26810 | PyObject *arg3 = (PyObject *) 0 ; | |
26811 | PyObject * obj0 = 0 ; | |
26812 | PyObject * obj1 = 0 ; | |
26813 | PyObject * obj2 = 0 ; | |
26814 | char *kwnames[] = { | |
26815 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
26816 | }; | |
26817 | ||
26818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26819 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, | |
26820 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26821 | arg2 = obj1; | |
26822 | arg3 = obj2; | |
26823 | { | |
26824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26825 | (arg1)->_setCallbackInfo(arg2,arg3); | |
26826 | ||
26827 | wxPyEndAllowThreads(__tstate); | |
26828 | if (PyErr_Occurred()) SWIG_fail; | |
26829 | } | |
26830 | Py_INCREF(Py_None); resultobj = Py_None; | |
26831 | return resultobj; | |
26832 | fail: | |
26833 | return NULL; | |
26834 | } | |
26835 | ||
26836 | ||
c32bde28 | 26837 | static PyObject *_wrap_TextDropTarget_base_OnEnter(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26838 | PyObject *resultobj; |
26839 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26840 | int arg2 ; | |
26841 | int arg3 ; | |
26842 | int arg4 ; | |
26843 | int result; | |
26844 | PyObject * obj0 = 0 ; | |
26845 | PyObject * obj1 = 0 ; | |
26846 | PyObject * obj2 = 0 ; | |
26847 | PyObject * obj3 = 0 ; | |
26848 | char *kwnames[] = { | |
26849 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26850 | }; | |
26851 | ||
26852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, | |
26854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 26855 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 26856 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 26857 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 26858 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 26859 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
26860 | if (PyErr_Occurred()) SWIG_fail; |
26861 | { | |
26862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26863 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
26864 | ||
26865 | wxPyEndAllowThreads(__tstate); | |
26866 | if (PyErr_Occurred()) SWIG_fail; | |
26867 | } | |
c32bde28 | 26868 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
26869 | return resultobj; |
26870 | fail: | |
26871 | return NULL; | |
26872 | } | |
26873 | ||
26874 | ||
c32bde28 | 26875 | static PyObject *_wrap_TextDropTarget_base_OnDragOver(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26876 | PyObject *resultobj; |
26877 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26878 | int arg2 ; | |
26879 | int arg3 ; | |
26880 | int arg4 ; | |
26881 | int result; | |
26882 | PyObject * obj0 = 0 ; | |
26883 | PyObject * obj1 = 0 ; | |
26884 | PyObject * obj2 = 0 ; | |
26885 | PyObject * obj3 = 0 ; | |
26886 | char *kwnames[] = { | |
26887 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26888 | }; | |
26889 | ||
26890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26891 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, | |
26892 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 26893 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 26894 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 26895 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 26896 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 26897 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
26898 | if (PyErr_Occurred()) SWIG_fail; |
26899 | { | |
26900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26901 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
26902 | ||
26903 | wxPyEndAllowThreads(__tstate); | |
26904 | if (PyErr_Occurred()) SWIG_fail; | |
26905 | } | |
c32bde28 | 26906 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
26907 | return resultobj; |
26908 | fail: | |
26909 | return NULL; | |
26910 | } | |
26911 | ||
26912 | ||
c32bde28 | 26913 | static PyObject *_wrap_TextDropTarget_base_OnLeave(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26914 | PyObject *resultobj; |
26915 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26916 | PyObject * obj0 = 0 ; | |
26917 | char *kwnames[] = { | |
26918 | (char *) "self", NULL | |
26919 | }; | |
26920 | ||
26921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
26922 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, | |
26923 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26924 | { | |
26925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26926 | (arg1)->base_OnLeave(); | |
26927 | ||
26928 | wxPyEndAllowThreads(__tstate); | |
26929 | if (PyErr_Occurred()) SWIG_fail; | |
26930 | } | |
26931 | Py_INCREF(Py_None); resultobj = Py_None; | |
26932 | return resultobj; | |
26933 | fail: | |
26934 | return NULL; | |
26935 | } | |
26936 | ||
26937 | ||
c32bde28 | 26938 | static PyObject *_wrap_TextDropTarget_base_OnDrop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26939 | PyObject *resultobj; |
26940 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26941 | int arg2 ; | |
26942 | int arg3 ; | |
26943 | bool result; | |
26944 | PyObject * obj0 = 0 ; | |
26945 | PyObject * obj1 = 0 ; | |
26946 | PyObject * obj2 = 0 ; | |
26947 | char *kwnames[] = { | |
26948 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26949 | }; | |
26950 | ||
26951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, | |
26953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 26954 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 26955 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 26956 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
26957 | if (PyErr_Occurred()) SWIG_fail; |
26958 | { | |
26959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26960 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
26961 | ||
26962 | wxPyEndAllowThreads(__tstate); | |
26963 | if (PyErr_Occurred()) SWIG_fail; | |
26964 | } | |
26965 | { | |
26966 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26967 | } | |
26968 | return resultobj; | |
26969 | fail: | |
26970 | return NULL; | |
26971 | } | |
26972 | ||
26973 | ||
c32bde28 | 26974 | static PyObject *_wrap_TextDropTarget_base_OnData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26975 | PyObject *resultobj; |
26976 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
26977 | int arg2 ; | |
26978 | int arg3 ; | |
26979 | int arg4 ; | |
26980 | int result; | |
26981 | PyObject * obj0 = 0 ; | |
26982 | PyObject * obj1 = 0 ; | |
26983 | PyObject * obj2 = 0 ; | |
26984 | PyObject * obj3 = 0 ; | |
26985 | char *kwnames[] = { | |
26986 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26987 | }; | |
26988 | ||
26989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26990 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, | |
26991 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 26992 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 26993 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 26994 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 26995 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 26996 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
26997 | if (PyErr_Occurred()) SWIG_fail; |
26998 | { | |
26999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27000 | result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4); | |
27001 | ||
27002 | wxPyEndAllowThreads(__tstate); | |
27003 | if (PyErr_Occurred()) SWIG_fail; | |
27004 | } | |
c32bde28 | 27005 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27006 | return resultobj; |
27007 | fail: | |
27008 | return NULL; | |
27009 | } | |
27010 | ||
27011 | ||
c32bde28 | 27012 | static PyObject * TextDropTarget_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
27013 | PyObject *obj; |
27014 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27015 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDropTarget, obj); | |
27016 | Py_INCREF(obj); | |
27017 | return Py_BuildValue((char *)""); | |
27018 | } | |
c32bde28 | 27019 | static PyObject *_wrap_new_FileDropTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27020 | PyObject *resultobj; |
27021 | wxPyFileDropTarget *result; | |
27022 | char *kwnames[] = { | |
27023 | NULL | |
27024 | }; | |
27025 | ||
27026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDropTarget",kwnames)) goto fail; | |
27027 | { | |
27028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27029 | result = (wxPyFileDropTarget *)new wxPyFileDropTarget(); | |
27030 | ||
27031 | wxPyEndAllowThreads(__tstate); | |
27032 | if (PyErr_Occurred()) SWIG_fail; | |
27033 | } | |
27034 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileDropTarget, 1); | |
27035 | return resultobj; | |
27036 | fail: | |
27037 | return NULL; | |
27038 | } | |
27039 | ||
27040 | ||
c32bde28 | 27041 | static PyObject *_wrap_FileDropTarget__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27042 | PyObject *resultobj; |
27043 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
27044 | PyObject *arg2 = (PyObject *) 0 ; | |
27045 | PyObject *arg3 = (PyObject *) 0 ; | |
27046 | PyObject * obj0 = 0 ; | |
27047 | PyObject * obj1 = 0 ; | |
27048 | PyObject * obj2 = 0 ; | |
27049 | char *kwnames[] = { | |
27050 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
27051 | }; | |
27052 | ||
27053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27054 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, | |
27055 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27056 | arg2 = obj1; | |
27057 | arg3 = obj2; | |
27058 | { | |
27059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27060 | (arg1)->_setCallbackInfo(arg2,arg3); | |
27061 | ||
27062 | wxPyEndAllowThreads(__tstate); | |
27063 | if (PyErr_Occurred()) SWIG_fail; | |
27064 | } | |
27065 | Py_INCREF(Py_None); resultobj = Py_None; | |
27066 | return resultobj; | |
27067 | fail: | |
27068 | return NULL; | |
27069 | } | |
27070 | ||
27071 | ||
c32bde28 | 27072 | static PyObject *_wrap_FileDropTarget_base_OnEnter(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27073 | PyObject *resultobj; |
27074 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
27075 | int arg2 ; | |
27076 | int arg3 ; | |
27077 | int arg4 ; | |
27078 | int result; | |
27079 | PyObject * obj0 = 0 ; | |
27080 | PyObject * obj1 = 0 ; | |
27081 | PyObject * obj2 = 0 ; | |
27082 | PyObject * obj3 = 0 ; | |
27083 | char *kwnames[] = { | |
27084 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
27085 | }; | |
27086 | ||
27087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
27088 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, | |
27089 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 27090 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 27091 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 27092 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 27093 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 27094 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
27095 | if (PyErr_Occurred()) SWIG_fail; |
27096 | { | |
27097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27098 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
27099 | ||
27100 | wxPyEndAllowThreads(__tstate); | |
27101 | if (PyErr_Occurred()) SWIG_fail; | |
27102 | } | |
c32bde28 | 27103 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27104 | return resultobj; |
27105 | fail: | |
27106 | return NULL; | |
27107 | } | |
27108 | ||
27109 | ||
c32bde28 | 27110 | static PyObject *_wrap_FileDropTarget_base_OnDragOver(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27111 | PyObject *resultobj; |
27112 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
27113 | int arg2 ; | |
27114 | int arg3 ; | |
27115 | int arg4 ; | |
27116 | int result; | |
27117 | PyObject * obj0 = 0 ; | |
27118 | PyObject * obj1 = 0 ; | |
27119 | PyObject * obj2 = 0 ; | |
27120 | PyObject * obj3 = 0 ; | |
27121 | char *kwnames[] = { | |
27122 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
27123 | }; | |
27124 | ||
27125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
27126 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, | |
27127 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 27128 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 27129 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 27130 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 27131 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 27132 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
27133 | if (PyErr_Occurred()) SWIG_fail; |
27134 | { | |
27135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27136 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
27137 | ||
27138 | wxPyEndAllowThreads(__tstate); | |
27139 | if (PyErr_Occurred()) SWIG_fail; | |
27140 | } | |
c32bde28 | 27141 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27142 | return resultobj; |
27143 | fail: | |
27144 | return NULL; | |
27145 | } | |
27146 | ||
27147 | ||
c32bde28 | 27148 | static PyObject *_wrap_FileDropTarget_base_OnLeave(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27149 | PyObject *resultobj; |
27150 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
27151 | PyObject * obj0 = 0 ; | |
27152 | char *kwnames[] = { | |
27153 | (char *) "self", NULL | |
27154 | }; | |
27155 | ||
27156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
27157 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, | |
27158 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27159 | { | |
27160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27161 | (arg1)->base_OnLeave(); | |
27162 | ||
27163 | wxPyEndAllowThreads(__tstate); | |
27164 | if (PyErr_Occurred()) SWIG_fail; | |
27165 | } | |
27166 | Py_INCREF(Py_None); resultobj = Py_None; | |
27167 | return resultobj; | |
27168 | fail: | |
27169 | return NULL; | |
27170 | } | |
27171 | ||
27172 | ||
c32bde28 | 27173 | static PyObject *_wrap_FileDropTarget_base_OnDrop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27174 | PyObject *resultobj; |
27175 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
27176 | int arg2 ; | |
27177 | int arg3 ; | |
27178 | bool result; | |
27179 | PyObject * obj0 = 0 ; | |
27180 | PyObject * obj1 = 0 ; | |
27181 | PyObject * obj2 = 0 ; | |
27182 | char *kwnames[] = { | |
27183 | (char *) "self",(char *) "x",(char *) "y", NULL | |
27184 | }; | |
27185 | ||
27186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27187 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, | |
27188 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 27189 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 27190 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 27191 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
27192 | if (PyErr_Occurred()) SWIG_fail; |
27193 | { | |
27194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27195 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
27196 | ||
27197 | wxPyEndAllowThreads(__tstate); | |
27198 | if (PyErr_Occurred()) SWIG_fail; | |
27199 | } | |
27200 | { | |
27201 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27202 | } | |
27203 | return resultobj; | |
27204 | fail: | |
27205 | return NULL; | |
27206 | } | |
27207 | ||
27208 | ||
c32bde28 | 27209 | static PyObject *_wrap_FileDropTarget_base_OnData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27210 | PyObject *resultobj; |
27211 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
27212 | int arg2 ; | |
27213 | int arg3 ; | |
27214 | int arg4 ; | |
27215 | int result; | |
27216 | PyObject * obj0 = 0 ; | |
27217 | PyObject * obj1 = 0 ; | |
27218 | PyObject * obj2 = 0 ; | |
27219 | PyObject * obj3 = 0 ; | |
27220 | char *kwnames[] = { | |
27221 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
27222 | }; | |
27223 | ||
27224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
27225 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, | |
27226 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 27227 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 27228 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 27229 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 27230 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 27231 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
27232 | if (PyErr_Occurred()) SWIG_fail; |
27233 | { | |
27234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27235 | result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4); | |
27236 | ||
27237 | wxPyEndAllowThreads(__tstate); | |
27238 | if (PyErr_Occurred()) SWIG_fail; | |
27239 | } | |
c32bde28 | 27240 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27241 | return resultobj; |
27242 | fail: | |
27243 | return NULL; | |
27244 | } | |
27245 | ||
27246 | ||
c32bde28 | 27247 | static PyObject * FileDropTarget_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
27248 | PyObject *obj; |
27249 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27250 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFileDropTarget, obj); | |
27251 | Py_INCREF(obj); | |
27252 | return Py_BuildValue((char *)""); | |
27253 | } | |
c32bde28 | 27254 | static PyObject *_wrap_new_Clipboard(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27255 | PyObject *resultobj; |
27256 | wxClipboard *result; | |
27257 | char *kwnames[] = { | |
27258 | NULL | |
27259 | }; | |
27260 | ||
27261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Clipboard",kwnames)) goto fail; | |
27262 | { | |
27263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27264 | result = (wxClipboard *)new wxClipboard(); | |
27265 | ||
27266 | wxPyEndAllowThreads(__tstate); | |
27267 | if (PyErr_Occurred()) SWIG_fail; | |
27268 | } | |
27269 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 1); | |
27270 | return resultobj; | |
27271 | fail: | |
27272 | return NULL; | |
27273 | } | |
27274 | ||
27275 | ||
c32bde28 | 27276 | static PyObject *_wrap_delete_Clipboard(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27277 | PyObject *resultobj; |
27278 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27279 | PyObject * obj0 = 0 ; | |
27280 | char *kwnames[] = { | |
27281 | (char *) "self", NULL | |
27282 | }; | |
27283 | ||
27284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Clipboard",kwnames,&obj0)) goto fail; | |
27285 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27286 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27287 | { | |
27288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27289 | delete arg1; | |
27290 | ||
27291 | wxPyEndAllowThreads(__tstate); | |
27292 | if (PyErr_Occurred()) SWIG_fail; | |
27293 | } | |
27294 | Py_INCREF(Py_None); resultobj = Py_None; | |
27295 | return resultobj; | |
27296 | fail: | |
27297 | return NULL; | |
27298 | } | |
27299 | ||
27300 | ||
c32bde28 | 27301 | static PyObject *_wrap_Clipboard_Open(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27302 | PyObject *resultobj; |
27303 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27304 | bool result; | |
27305 | PyObject * obj0 = 0 ; | |
27306 | char *kwnames[] = { | |
27307 | (char *) "self", NULL | |
27308 | }; | |
27309 | ||
27310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Open",kwnames,&obj0)) goto fail; | |
27311 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27312 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27313 | { | |
27314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27315 | result = (bool)(arg1)->Open(); | |
27316 | ||
27317 | wxPyEndAllowThreads(__tstate); | |
27318 | if (PyErr_Occurred()) SWIG_fail; | |
27319 | } | |
27320 | { | |
27321 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27322 | } | |
27323 | return resultobj; | |
27324 | fail: | |
27325 | return NULL; | |
27326 | } | |
27327 | ||
27328 | ||
c32bde28 | 27329 | static PyObject *_wrap_Clipboard_Close(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27330 | PyObject *resultobj; |
27331 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27332 | PyObject * obj0 = 0 ; | |
27333 | char *kwnames[] = { | |
27334 | (char *) "self", NULL | |
27335 | }; | |
27336 | ||
27337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Close",kwnames,&obj0)) goto fail; | |
27338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27340 | { | |
27341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27342 | (arg1)->Close(); | |
27343 | ||
27344 | wxPyEndAllowThreads(__tstate); | |
27345 | if (PyErr_Occurred()) SWIG_fail; | |
27346 | } | |
27347 | Py_INCREF(Py_None); resultobj = Py_None; | |
27348 | return resultobj; | |
27349 | fail: | |
27350 | return NULL; | |
27351 | } | |
27352 | ||
27353 | ||
c32bde28 | 27354 | static PyObject *_wrap_Clipboard_IsOpened(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27355 | PyObject *resultobj; |
27356 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27357 | bool result; | |
27358 | PyObject * obj0 = 0 ; | |
27359 | char *kwnames[] = { | |
27360 | (char *) "self", NULL | |
27361 | }; | |
27362 | ||
27363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_IsOpened",kwnames,&obj0)) goto fail; | |
27364 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27365 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27366 | { | |
27367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27368 | result = (bool)((wxClipboard const *)arg1)->IsOpened(); | |
27369 | ||
27370 | wxPyEndAllowThreads(__tstate); | |
27371 | if (PyErr_Occurred()) SWIG_fail; | |
27372 | } | |
27373 | { | |
27374 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27375 | } | |
27376 | return resultobj; | |
27377 | fail: | |
27378 | return NULL; | |
27379 | } | |
27380 | ||
27381 | ||
c32bde28 | 27382 | static PyObject *_wrap_Clipboard_AddData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27383 | PyObject *resultobj; |
27384 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27385 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
27386 | bool result; | |
27387 | PyObject * obj0 = 0 ; | |
27388 | PyObject * obj1 = 0 ; | |
27389 | char *kwnames[] = { | |
27390 | (char *) "self",(char *) "data", NULL | |
27391 | }; | |
27392 | ||
27393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_AddData",kwnames,&obj0,&obj1)) goto fail; | |
27394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27396 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
27397 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
27398 | { | |
27399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27400 | result = (bool)(arg1)->AddData(arg2); | |
27401 | ||
27402 | wxPyEndAllowThreads(__tstate); | |
27403 | if (PyErr_Occurred()) SWIG_fail; | |
27404 | } | |
27405 | { | |
27406 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27407 | } | |
27408 | return resultobj; | |
27409 | fail: | |
27410 | return NULL; | |
27411 | } | |
27412 | ||
27413 | ||
c32bde28 | 27414 | static PyObject *_wrap_Clipboard_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27415 | PyObject *resultobj; |
27416 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27417 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
27418 | bool result; | |
27419 | PyObject * obj0 = 0 ; | |
27420 | PyObject * obj1 = 0 ; | |
27421 | char *kwnames[] = { | |
27422 | (char *) "self",(char *) "data", NULL | |
27423 | }; | |
27424 | ||
27425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_SetData",kwnames,&obj0,&obj1)) goto fail; | |
27426 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27427 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27428 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
27429 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
27430 | { | |
27431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27432 | result = (bool)(arg1)->SetData(arg2); | |
27433 | ||
27434 | wxPyEndAllowThreads(__tstate); | |
27435 | if (PyErr_Occurred()) SWIG_fail; | |
27436 | } | |
27437 | { | |
27438 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27439 | } | |
27440 | return resultobj; | |
27441 | fail: | |
27442 | return NULL; | |
27443 | } | |
27444 | ||
27445 | ||
c32bde28 | 27446 | static PyObject *_wrap_Clipboard_IsSupported(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27447 | PyObject *resultobj; |
27448 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27449 | wxDataFormat *arg2 = 0 ; | |
27450 | bool result; | |
27451 | PyObject * obj0 = 0 ; | |
27452 | PyObject * obj1 = 0 ; | |
27453 | char *kwnames[] = { | |
27454 | (char *) "self",(char *) "format", NULL | |
27455 | }; | |
27456 | ||
27457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_IsSupported",kwnames,&obj0,&obj1)) goto fail; | |
27458 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27459 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27460 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
27461 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27462 | SWIG_fail; | |
27463 | if (arg2 == NULL) { | |
27464 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27465 | SWIG_fail; | |
27466 | } | |
27467 | { | |
27468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27469 | result = (bool)(arg1)->IsSupported((wxDataFormat const &)*arg2); | |
27470 | ||
27471 | wxPyEndAllowThreads(__tstate); | |
27472 | if (PyErr_Occurred()) SWIG_fail; | |
27473 | } | |
27474 | { | |
27475 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27476 | } | |
27477 | return resultobj; | |
27478 | fail: | |
27479 | return NULL; | |
27480 | } | |
27481 | ||
27482 | ||
c32bde28 | 27483 | static PyObject *_wrap_Clipboard_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27484 | PyObject *resultobj; |
27485 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27486 | wxDataObject *arg2 = 0 ; | |
27487 | bool result; | |
27488 | PyObject * obj0 = 0 ; | |
27489 | PyObject * obj1 = 0 ; | |
27490 | char *kwnames[] = { | |
27491 | (char *) "self",(char *) "data", NULL | |
27492 | }; | |
27493 | ||
27494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_GetData",kwnames,&obj0,&obj1)) goto fail; | |
27495 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27496 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27497 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
27498 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27499 | SWIG_fail; | |
27500 | if (arg2 == NULL) { | |
27501 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27502 | SWIG_fail; | |
27503 | } | |
27504 | { | |
27505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27506 | result = (bool)(arg1)->GetData(*arg2); | |
27507 | ||
27508 | wxPyEndAllowThreads(__tstate); | |
27509 | if (PyErr_Occurred()) SWIG_fail; | |
27510 | } | |
27511 | { | |
27512 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27513 | } | |
27514 | return resultobj; | |
27515 | fail: | |
27516 | return NULL; | |
27517 | } | |
27518 | ||
27519 | ||
c32bde28 | 27520 | static PyObject *_wrap_Clipboard_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27521 | PyObject *resultobj; |
27522 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27523 | PyObject * obj0 = 0 ; | |
27524 | char *kwnames[] = { | |
27525 | (char *) "self", NULL | |
27526 | }; | |
27527 | ||
27528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Clear",kwnames,&obj0)) goto fail; | |
27529 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27531 | { | |
27532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27533 | (arg1)->Clear(); | |
27534 | ||
27535 | wxPyEndAllowThreads(__tstate); | |
27536 | if (PyErr_Occurred()) SWIG_fail; | |
27537 | } | |
27538 | Py_INCREF(Py_None); resultobj = Py_None; | |
27539 | return resultobj; | |
27540 | fail: | |
27541 | return NULL; | |
27542 | } | |
27543 | ||
27544 | ||
c32bde28 | 27545 | static PyObject *_wrap_Clipboard_Flush(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27546 | PyObject *resultobj; |
27547 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27548 | bool result; | |
27549 | PyObject * obj0 = 0 ; | |
27550 | char *kwnames[] = { | |
27551 | (char *) "self", NULL | |
27552 | }; | |
27553 | ||
27554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Flush",kwnames,&obj0)) goto fail; | |
27555 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27556 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27557 | { | |
27558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27559 | result = (bool)(arg1)->Flush(); | |
27560 | ||
27561 | wxPyEndAllowThreads(__tstate); | |
27562 | if (PyErr_Occurred()) SWIG_fail; | |
27563 | } | |
27564 | { | |
27565 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27566 | } | |
27567 | return resultobj; | |
27568 | fail: | |
27569 | return NULL; | |
27570 | } | |
27571 | ||
27572 | ||
c32bde28 | 27573 | static PyObject *_wrap_Clipboard_UsePrimarySelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27574 | PyObject *resultobj; |
27575 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
ae8162c8 | 27576 | bool arg2 = (bool) true ; |
d55e5bfc RD |
27577 | PyObject * obj0 = 0 ; |
27578 | PyObject * obj1 = 0 ; | |
27579 | char *kwnames[] = { | |
27580 | (char *) "self",(char *) "primary", NULL | |
27581 | }; | |
27582 | ||
27583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Clipboard_UsePrimarySelection",kwnames,&obj0,&obj1)) goto fail; | |
27584 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27585 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27586 | if (obj1) { | |
c32bde28 | 27587 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
27588 | if (PyErr_Occurred()) SWIG_fail; |
27589 | } | |
27590 | { | |
27591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27592 | (arg1)->UsePrimarySelection(arg2); | |
27593 | ||
27594 | wxPyEndAllowThreads(__tstate); | |
27595 | if (PyErr_Occurred()) SWIG_fail; | |
27596 | } | |
27597 | Py_INCREF(Py_None); resultobj = Py_None; | |
27598 | return resultobj; | |
27599 | fail: | |
27600 | return NULL; | |
27601 | } | |
27602 | ||
27603 | ||
c32bde28 | 27604 | static PyObject *_wrap_Clipboard_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
a001823c RD |
27605 | PyObject *resultobj; |
27606 | wxClipboard *result; | |
27607 | char *kwnames[] = { | |
27608 | NULL | |
27609 | }; | |
27610 | ||
27611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Clipboard_Get",kwnames)) goto fail; | |
27612 | { | |
27613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27614 | result = (wxClipboard *)wxClipboard::Get(); | |
27615 | ||
27616 | wxPyEndAllowThreads(__tstate); | |
27617 | if (PyErr_Occurred()) SWIG_fail; | |
27618 | } | |
27619 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 0); | |
27620 | return resultobj; | |
27621 | fail: | |
27622 | return NULL; | |
27623 | } | |
27624 | ||
27625 | ||
c32bde28 | 27626 | static PyObject * Clipboard_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
27627 | PyObject *obj; |
27628 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27629 | SWIG_TypeClientData(SWIGTYPE_p_wxClipboard, obj); | |
27630 | Py_INCREF(obj); | |
27631 | return Py_BuildValue((char *)""); | |
27632 | } | |
c32bde28 | 27633 | static PyObject *_wrap_new_ClipboardLocker(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27634 | PyObject *resultobj; |
27635 | wxClipboard *arg1 = (wxClipboard *) NULL ; | |
27636 | wxClipboardLocker *result; | |
27637 | PyObject * obj0 = 0 ; | |
27638 | char *kwnames[] = { | |
27639 | (char *) "clipboard", NULL | |
27640 | }; | |
27641 | ||
27642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ClipboardLocker",kwnames,&obj0)) goto fail; | |
27643 | if (obj0) { | |
27644 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27645 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27646 | } | |
27647 | { | |
27648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27649 | result = (wxClipboardLocker *)new wxClipboardLocker(arg1); | |
27650 | ||
27651 | wxPyEndAllowThreads(__tstate); | |
27652 | if (PyErr_Occurred()) SWIG_fail; | |
27653 | } | |
27654 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboardLocker, 1); | |
27655 | return resultobj; | |
27656 | fail: | |
27657 | return NULL; | |
27658 | } | |
27659 | ||
27660 | ||
c32bde28 | 27661 | static PyObject *_wrap_delete_ClipboardLocker(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27662 | PyObject *resultobj; |
27663 | wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ; | |
27664 | PyObject * obj0 = 0 ; | |
27665 | char *kwnames[] = { | |
27666 | (char *) "self", NULL | |
27667 | }; | |
27668 | ||
27669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ClipboardLocker",kwnames,&obj0)) goto fail; | |
27670 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker, | |
27671 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27672 | { | |
27673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27674 | delete arg1; | |
27675 | ||
27676 | wxPyEndAllowThreads(__tstate); | |
27677 | if (PyErr_Occurred()) SWIG_fail; | |
27678 | } | |
27679 | Py_INCREF(Py_None); resultobj = Py_None; | |
27680 | return resultobj; | |
27681 | fail: | |
27682 | return NULL; | |
27683 | } | |
27684 | ||
27685 | ||
c32bde28 | 27686 | static PyObject *_wrap_ClipboardLocker___nonzero__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27687 | PyObject *resultobj; |
27688 | wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ; | |
27689 | bool result; | |
27690 | PyObject * obj0 = 0 ; | |
27691 | char *kwnames[] = { | |
27692 | (char *) "self", NULL | |
27693 | }; | |
27694 | ||
27695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ClipboardLocker___nonzero__",kwnames,&obj0)) goto fail; | |
27696 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker, | |
27697 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27698 | { | |
27699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27700 | result = (bool)wxClipboardLocker___nonzero__(arg1); | |
27701 | ||
27702 | wxPyEndAllowThreads(__tstate); | |
27703 | if (PyErr_Occurred()) SWIG_fail; | |
27704 | } | |
27705 | { | |
27706 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27707 | } | |
27708 | return resultobj; | |
27709 | fail: | |
27710 | return NULL; | |
27711 | } | |
27712 | ||
27713 | ||
c32bde28 | 27714 | static PyObject * ClipboardLocker_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
27715 | PyObject *obj; |
27716 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27717 | SWIG_TypeClientData(SWIGTYPE_p_wxClipboardLocker, obj); | |
27718 | Py_INCREF(obj); | |
27719 | return Py_BuildValue((char *)""); | |
27720 | } | |
c32bde28 | 27721 | static PyObject *_wrap_new_VideoMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27722 | PyObject *resultobj; |
27723 | int arg1 = (int) 0 ; | |
27724 | int arg2 = (int) 0 ; | |
27725 | int arg3 = (int) 0 ; | |
27726 | int arg4 = (int) 0 ; | |
27727 | wxVideoMode *result; | |
27728 | PyObject * obj0 = 0 ; | |
27729 | PyObject * obj1 = 0 ; | |
27730 | PyObject * obj2 = 0 ; | |
27731 | PyObject * obj3 = 0 ; | |
27732 | char *kwnames[] = { | |
27733 | (char *) "width",(char *) "height",(char *) "depth",(char *) "freq", NULL | |
27734 | }; | |
27735 | ||
27736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_VideoMode",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
27737 | if (obj0) { | |
c32bde28 | 27738 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
27739 | if (PyErr_Occurred()) SWIG_fail; |
27740 | } | |
27741 | if (obj1) { | |
c32bde28 | 27742 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
27743 | if (PyErr_Occurred()) SWIG_fail; |
27744 | } | |
27745 | if (obj2) { | |
c32bde28 | 27746 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
27747 | if (PyErr_Occurred()) SWIG_fail; |
27748 | } | |
27749 | if (obj3) { | |
c32bde28 | 27750 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
27751 | if (PyErr_Occurred()) SWIG_fail; |
27752 | } | |
27753 | { | |
27754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27755 | result = (wxVideoMode *)new wxVideoMode(arg1,arg2,arg3,arg4); | |
27756 | ||
27757 | wxPyEndAllowThreads(__tstate); | |
27758 | if (PyErr_Occurred()) SWIG_fail; | |
27759 | } | |
27760 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVideoMode, 1); | |
27761 | return resultobj; | |
27762 | fail: | |
27763 | return NULL; | |
27764 | } | |
27765 | ||
27766 | ||
c32bde28 | 27767 | static PyObject *_wrap_delete_VideoMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27768 | PyObject *resultobj; |
27769 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27770 | PyObject * obj0 = 0 ; | |
27771 | char *kwnames[] = { | |
27772 | (char *) "self", NULL | |
27773 | }; | |
27774 | ||
27775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VideoMode",kwnames,&obj0)) goto fail; | |
27776 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27778 | { | |
27779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27780 | delete arg1; | |
27781 | ||
27782 | wxPyEndAllowThreads(__tstate); | |
27783 | if (PyErr_Occurred()) SWIG_fail; | |
27784 | } | |
27785 | Py_INCREF(Py_None); resultobj = Py_None; | |
27786 | return resultobj; | |
27787 | fail: | |
27788 | return NULL; | |
27789 | } | |
27790 | ||
27791 | ||
c32bde28 | 27792 | static PyObject *_wrap_VideoMode_Matches(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27793 | PyObject *resultobj; |
27794 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27795 | wxVideoMode *arg2 = 0 ; | |
27796 | bool result; | |
27797 | PyObject * obj0 = 0 ; | |
27798 | PyObject * obj1 = 0 ; | |
27799 | char *kwnames[] = { | |
27800 | (char *) "self",(char *) "other", NULL | |
27801 | }; | |
27802 | ||
27803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_Matches",kwnames,&obj0,&obj1)) goto fail; | |
27804 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27805 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27806 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
27807 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27808 | SWIG_fail; | |
27809 | if (arg2 == NULL) { | |
27810 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27811 | SWIG_fail; | |
27812 | } | |
27813 | { | |
27814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27815 | result = (bool)((wxVideoMode const *)arg1)->Matches((wxVideoMode const &)*arg2); | |
27816 | ||
27817 | wxPyEndAllowThreads(__tstate); | |
27818 | if (PyErr_Occurred()) SWIG_fail; | |
27819 | } | |
27820 | { | |
27821 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27822 | } | |
27823 | return resultobj; | |
27824 | fail: | |
27825 | return NULL; | |
27826 | } | |
27827 | ||
27828 | ||
c32bde28 | 27829 | static PyObject *_wrap_VideoMode_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27830 | PyObject *resultobj; |
27831 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27832 | int result; | |
27833 | PyObject * obj0 = 0 ; | |
27834 | char *kwnames[] = { | |
27835 | (char *) "self", NULL | |
27836 | }; | |
27837 | ||
27838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetWidth",kwnames,&obj0)) goto fail; | |
27839 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27840 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27841 | { | |
27842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27843 | result = (int)((wxVideoMode const *)arg1)->GetWidth(); | |
27844 | ||
27845 | wxPyEndAllowThreads(__tstate); | |
27846 | if (PyErr_Occurred()) SWIG_fail; | |
27847 | } | |
c32bde28 | 27848 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27849 | return resultobj; |
27850 | fail: | |
27851 | return NULL; | |
27852 | } | |
27853 | ||
27854 | ||
c32bde28 | 27855 | static PyObject *_wrap_VideoMode_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27856 | PyObject *resultobj; |
27857 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27858 | int result; | |
27859 | PyObject * obj0 = 0 ; | |
27860 | char *kwnames[] = { | |
27861 | (char *) "self", NULL | |
27862 | }; | |
27863 | ||
27864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetHeight",kwnames,&obj0)) goto fail; | |
27865 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27866 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27867 | { | |
27868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27869 | result = (int)((wxVideoMode const *)arg1)->GetHeight(); | |
27870 | ||
27871 | wxPyEndAllowThreads(__tstate); | |
27872 | if (PyErr_Occurred()) SWIG_fail; | |
27873 | } | |
c32bde28 | 27874 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27875 | return resultobj; |
27876 | fail: | |
27877 | return NULL; | |
27878 | } | |
27879 | ||
27880 | ||
c32bde28 | 27881 | static PyObject *_wrap_VideoMode_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27882 | PyObject *resultobj; |
27883 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27884 | int result; | |
27885 | PyObject * obj0 = 0 ; | |
27886 | char *kwnames[] = { | |
27887 | (char *) "self", NULL | |
27888 | }; | |
27889 | ||
27890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetDepth",kwnames,&obj0)) goto fail; | |
27891 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27892 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27893 | { | |
27894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27895 | result = (int)((wxVideoMode const *)arg1)->GetDepth(); | |
27896 | ||
27897 | wxPyEndAllowThreads(__tstate); | |
27898 | if (PyErr_Occurred()) SWIG_fail; | |
27899 | } | |
c32bde28 | 27900 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27901 | return resultobj; |
27902 | fail: | |
27903 | return NULL; | |
27904 | } | |
27905 | ||
27906 | ||
c32bde28 | 27907 | static PyObject *_wrap_VideoMode_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27908 | PyObject *resultobj; |
27909 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27910 | bool result; | |
27911 | PyObject * obj0 = 0 ; | |
27912 | char *kwnames[] = { | |
27913 | (char *) "self", NULL | |
27914 | }; | |
27915 | ||
27916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_IsOk",kwnames,&obj0)) goto fail; | |
27917 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27919 | { | |
27920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27921 | result = (bool)((wxVideoMode const *)arg1)->IsOk(); | |
27922 | ||
27923 | wxPyEndAllowThreads(__tstate); | |
27924 | if (PyErr_Occurred()) SWIG_fail; | |
27925 | } | |
27926 | { | |
27927 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27928 | } | |
27929 | return resultobj; | |
27930 | fail: | |
27931 | return NULL; | |
27932 | } | |
27933 | ||
27934 | ||
c32bde28 | 27935 | static PyObject *_wrap_VideoMode___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27936 | PyObject *resultobj; |
27937 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27938 | wxVideoMode *arg2 = (wxVideoMode *) 0 ; | |
27939 | bool result; | |
27940 | PyObject * obj0 = 0 ; | |
27941 | PyObject * obj1 = 0 ; | |
27942 | char *kwnames[] = { | |
27943 | (char *) "self",(char *) "other", NULL | |
27944 | }; | |
27945 | ||
27946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___eq__",kwnames,&obj0,&obj1)) goto fail; | |
27947 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27948 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27949 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
27950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27951 | { | |
27952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27953 | result = (bool)wxVideoMode___eq__(arg1,(wxVideoMode const *)arg2); | |
27954 | ||
27955 | wxPyEndAllowThreads(__tstate); | |
27956 | if (PyErr_Occurred()) SWIG_fail; | |
27957 | } | |
27958 | { | |
27959 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27960 | } | |
27961 | return resultobj; | |
27962 | fail: | |
27963 | return NULL; | |
27964 | } | |
27965 | ||
27966 | ||
c32bde28 | 27967 | static PyObject *_wrap_VideoMode___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27968 | PyObject *resultobj; |
27969 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
27970 | wxVideoMode *arg2 = (wxVideoMode *) 0 ; | |
27971 | bool result; | |
27972 | PyObject * obj0 = 0 ; | |
27973 | PyObject * obj1 = 0 ; | |
27974 | char *kwnames[] = { | |
27975 | (char *) "self",(char *) "other", NULL | |
27976 | }; | |
27977 | ||
27978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___ne__",kwnames,&obj0,&obj1)) goto fail; | |
27979 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
27980 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27981 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
27982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27983 | { | |
27984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27985 | result = (bool)wxVideoMode___ne__(arg1,(wxVideoMode const *)arg2); | |
27986 | ||
27987 | wxPyEndAllowThreads(__tstate); | |
27988 | if (PyErr_Occurred()) SWIG_fail; | |
27989 | } | |
27990 | { | |
27991 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27992 | } | |
27993 | return resultobj; | |
27994 | fail: | |
27995 | return NULL; | |
27996 | } | |
27997 | ||
27998 | ||
c32bde28 | 27999 | static PyObject *_wrap_VideoMode_w_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28000 | PyObject *resultobj; |
28001 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
28002 | int arg2 ; | |
28003 | PyObject * obj0 = 0 ; | |
28004 | PyObject * obj1 = 0 ; | |
28005 | char *kwnames[] = { | |
28006 | (char *) "self",(char *) "w", NULL | |
28007 | }; | |
28008 | ||
28009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_w_set",kwnames,&obj0,&obj1)) goto fail; | |
28010 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
28011 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 28012 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
28013 | if (PyErr_Occurred()) SWIG_fail; |
28014 | if (arg1) (arg1)->w = arg2; | |
28015 | ||
28016 | Py_INCREF(Py_None); resultobj = Py_None; | |
28017 | return resultobj; | |
28018 | fail: | |
28019 | return NULL; | |
28020 | } | |
28021 | ||
28022 | ||
c32bde28 | 28023 | static PyObject *_wrap_VideoMode_w_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28024 | PyObject *resultobj; |
28025 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
28026 | int result; | |
28027 | PyObject * obj0 = 0 ; | |
28028 | char *kwnames[] = { | |
28029 | (char *) "self", NULL | |
28030 | }; | |
28031 | ||
28032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_w_get",kwnames,&obj0)) goto fail; | |
28033 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
28034 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28035 | result = (int) ((arg1)->w); | |
28036 | ||
c32bde28 | 28037 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
28038 | return resultobj; |
28039 | fail: | |
28040 | return NULL; | |
28041 | } | |
28042 | ||
28043 | ||
c32bde28 | 28044 | static PyObject *_wrap_VideoMode_h_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28045 | PyObject *resultobj; |
28046 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
28047 | int arg2 ; | |
28048 | PyObject * obj0 = 0 ; | |
28049 | PyObject * obj1 = 0 ; | |
28050 | char *kwnames[] = { | |
28051 | (char *) "self",(char *) "h", NULL | |
28052 | }; | |
28053 | ||
28054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_h_set",kwnames,&obj0,&obj1)) goto fail; | |
28055 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
28056 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 28057 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
28058 | if (PyErr_Occurred()) SWIG_fail; |
28059 | if (arg1) (arg1)->h = arg2; | |
28060 | ||
28061 | Py_INCREF(Py_None); resultobj = Py_None; | |
28062 | return resultobj; | |
28063 | fail: | |
28064 | return NULL; | |
28065 | } | |
28066 | ||
28067 | ||
c32bde28 | 28068 | static PyObject *_wrap_VideoMode_h_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28069 | PyObject *resultobj; |
28070 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
28071 | int result; | |
28072 | PyObject * obj0 = 0 ; | |
28073 | char *kwnames[] = { | |
28074 | (char *) "self", NULL | |
28075 | }; | |
28076 | ||
28077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_h_get",kwnames,&obj0)) goto fail; | |
28078 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
28079 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28080 | result = (int) ((arg1)->h); | |
28081 | ||
c32bde28 | 28082 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
28083 | return resultobj; |
28084 | fail: | |
28085 | return NULL; | |
28086 | } | |
28087 | ||
28088 | ||
c32bde28 | 28089 | static PyObject *_wrap_VideoMode_bpp_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28090 | PyObject *resultobj; |
28091 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
28092 | int arg2 ; | |
28093 | PyObject * obj0 = 0 ; | |
28094 | PyObject * obj1 = 0 ; | |
28095 | char *kwnames[] = { | |
28096 | (char *) "self",(char *) "bpp", NULL | |
28097 | }; | |
28098 | ||
28099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_bpp_set",kwnames,&obj0,&obj1)) goto fail; | |
28100 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
28101 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 28102 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
28103 | if (PyErr_Occurred()) SWIG_fail; |
28104 | if (arg1) (arg1)->bpp = arg2; | |
28105 | ||
28106 | Py_INCREF(Py_None); resultobj = Py_None; | |
28107 | return resultobj; | |
28108 | fail: | |
28109 | return NULL; | |
28110 | } | |
28111 | ||
28112 | ||
c32bde28 | 28113 | static PyObject *_wrap_VideoMode_bpp_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28114 | PyObject *resultobj; |
28115 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
28116 | int result; | |
28117 | PyObject * obj0 = 0 ; | |
28118 | char *kwnames[] = { | |
28119 | (char *) "self", NULL | |
28120 | }; | |
28121 | ||
28122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_bpp_get",kwnames,&obj0)) goto fail; | |
28123 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
28124 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28125 | result = (int) ((arg1)->bpp); | |
28126 | ||
c32bde28 | 28127 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
28128 | return resultobj; |
28129 | fail: | |
28130 | return NULL; | |
28131 | } | |
28132 | ||
28133 | ||
c32bde28 | 28134 | static PyObject *_wrap_VideoMode_refresh_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28135 | PyObject *resultobj; |
28136 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
28137 | int arg2 ; | |
28138 | PyObject * obj0 = 0 ; | |
28139 | PyObject * obj1 = 0 ; | |
28140 | char *kwnames[] = { | |
28141 | (char *) "self",(char *) "refresh", NULL | |
28142 | }; | |
28143 | ||
28144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_refresh_set",kwnames,&obj0,&obj1)) goto fail; | |
28145 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
28146 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 28147 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
28148 | if (PyErr_Occurred()) SWIG_fail; |
28149 | if (arg1) (arg1)->refresh = arg2; | |
28150 | ||
28151 | Py_INCREF(Py_None); resultobj = Py_None; | |
28152 | return resultobj; | |
28153 | fail: | |
28154 | return NULL; | |
28155 | } | |
28156 | ||
28157 | ||
c32bde28 | 28158 | static PyObject *_wrap_VideoMode_refresh_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28159 | PyObject *resultobj; |
28160 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
28161 | int result; | |
28162 | PyObject * obj0 = 0 ; | |
28163 | char *kwnames[] = { | |
28164 | (char *) "self", NULL | |
28165 | }; | |
28166 | ||
28167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_refresh_get",kwnames,&obj0)) goto fail; | |
28168 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
28169 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28170 | result = (int) ((arg1)->refresh); | |
28171 | ||
c32bde28 | 28172 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
28173 | return resultobj; |
28174 | fail: | |
28175 | return NULL; | |
28176 | } | |
28177 | ||
28178 | ||
c32bde28 | 28179 | static PyObject * VideoMode_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
28180 | PyObject *obj; |
28181 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28182 | SWIG_TypeClientData(SWIGTYPE_p_wxVideoMode, obj); | |
28183 | Py_INCREF(obj); | |
28184 | return Py_BuildValue((char *)""); | |
28185 | } | |
c32bde28 | 28186 | static int _wrap_DefaultVideoMode_set(PyObject *) { |
d55e5bfc RD |
28187 | PyErr_SetString(PyExc_TypeError,"Variable DefaultVideoMode is read-only."); |
28188 | return 1; | |
28189 | } | |
28190 | ||
28191 | ||
28192 | static PyObject *_wrap_DefaultVideoMode_get() { | |
28193 | PyObject *pyobj; | |
28194 | ||
28195 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultVideoMode), SWIGTYPE_p_wxVideoMode, 0); | |
28196 | return pyobj; | |
28197 | } | |
28198 | ||
28199 | ||
c32bde28 | 28200 | static PyObject *_wrap_new_Display(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28201 | PyObject *resultobj; |
28202 | size_t arg1 = (size_t) 0 ; | |
28203 | wxDisplay *result; | |
28204 | PyObject * obj0 = 0 ; | |
28205 | char *kwnames[] = { | |
28206 | (char *) "index", NULL | |
28207 | }; | |
28208 | ||
28209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Display",kwnames,&obj0)) goto fail; | |
28210 | if (obj0) { | |
c32bde28 | 28211 | arg1 = (size_t)SWIG_As_unsigned_SS_long(obj0); |
d55e5bfc RD |
28212 | if (PyErr_Occurred()) SWIG_fail; |
28213 | } | |
28214 | { | |
28215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28216 | result = (wxDisplay *)new wxDisplay(arg1); | |
28217 | ||
28218 | wxPyEndAllowThreads(__tstate); | |
28219 | if (PyErr_Occurred()) SWIG_fail; | |
28220 | } | |
28221 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplay, 1); | |
28222 | return resultobj; | |
28223 | fail: | |
28224 | return NULL; | |
28225 | } | |
28226 | ||
28227 | ||
c32bde28 | 28228 | static PyObject *_wrap_delete_Display(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28229 | PyObject *resultobj; |
28230 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28231 | PyObject * obj0 = 0 ; | |
28232 | char *kwnames[] = { | |
28233 | (char *) "self", NULL | |
28234 | }; | |
28235 | ||
28236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Display",kwnames,&obj0)) goto fail; | |
28237 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28238 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28239 | { | |
28240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28241 | delete arg1; | |
28242 | ||
28243 | wxPyEndAllowThreads(__tstate); | |
28244 | if (PyErr_Occurred()) SWIG_fail; | |
28245 | } | |
28246 | Py_INCREF(Py_None); resultobj = Py_None; | |
28247 | return resultobj; | |
28248 | fail: | |
28249 | return NULL; | |
28250 | } | |
28251 | ||
28252 | ||
c32bde28 | 28253 | static PyObject *_wrap_Display_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28254 | PyObject *resultobj; |
28255 | size_t result; | |
28256 | char *kwnames[] = { | |
28257 | NULL | |
28258 | }; | |
28259 | ||
28260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Display_GetCount",kwnames)) goto fail; | |
28261 | { | |
28262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28263 | result = (size_t)wxDisplay::GetCount(); | |
28264 | ||
28265 | wxPyEndAllowThreads(__tstate); | |
28266 | if (PyErr_Occurred()) SWIG_fail; | |
28267 | } | |
c32bde28 | 28268 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
28269 | return resultobj; |
28270 | fail: | |
28271 | return NULL; | |
28272 | } | |
28273 | ||
28274 | ||
c32bde28 | 28275 | static PyObject *_wrap_Display_GetFromPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28276 | PyObject *resultobj; |
28277 | wxPoint *arg1 = 0 ; | |
28278 | int result; | |
28279 | wxPoint temp1 ; | |
28280 | PyObject * obj0 = 0 ; | |
28281 | char *kwnames[] = { | |
28282 | (char *) "pt", NULL | |
28283 | }; | |
28284 | ||
28285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromPoint",kwnames,&obj0)) goto fail; | |
28286 | { | |
28287 | arg1 = &temp1; | |
28288 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
28289 | } | |
28290 | { | |
28291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28292 | result = (int)wxDisplay::GetFromPoint((wxPoint const &)*arg1); | |
28293 | ||
28294 | wxPyEndAllowThreads(__tstate); | |
28295 | if (PyErr_Occurred()) SWIG_fail; | |
28296 | } | |
c32bde28 | 28297 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
28298 | return resultobj; |
28299 | fail: | |
28300 | return NULL; | |
28301 | } | |
28302 | ||
28303 | ||
c32bde28 | 28304 | static PyObject *_wrap_Display_GetFromWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28305 | PyObject *resultobj; |
28306 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28307 | int result; | |
28308 | PyObject * obj0 = 0 ; | |
28309 | char *kwnames[] = { | |
28310 | (char *) "window", NULL | |
28311 | }; | |
28312 | ||
28313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromWindow",kwnames,&obj0)) goto fail; | |
28314 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28315 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28316 | { | |
28317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28318 | result = (int)wxDisplay::GetFromWindow(arg1); | |
28319 | ||
28320 | wxPyEndAllowThreads(__tstate); | |
28321 | if (PyErr_Occurred()) SWIG_fail; | |
28322 | } | |
c32bde28 | 28323 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
28324 | return resultobj; |
28325 | fail: | |
28326 | return NULL; | |
28327 | } | |
28328 | ||
28329 | ||
c32bde28 | 28330 | static PyObject *_wrap_Display_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28331 | PyObject *resultobj; |
28332 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28333 | bool result; | |
28334 | PyObject * obj0 = 0 ; | |
28335 | char *kwnames[] = { | |
28336 | (char *) "self", NULL | |
28337 | }; | |
28338 | ||
28339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsOk",kwnames,&obj0)) goto fail; | |
28340 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28341 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28342 | { | |
28343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28344 | result = (bool)((wxDisplay const *)arg1)->IsOk(); | |
28345 | ||
28346 | wxPyEndAllowThreads(__tstate); | |
28347 | if (PyErr_Occurred()) SWIG_fail; | |
28348 | } | |
28349 | { | |
28350 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28351 | } | |
28352 | return resultobj; | |
28353 | fail: | |
28354 | return NULL; | |
28355 | } | |
28356 | ||
28357 | ||
c32bde28 | 28358 | static PyObject *_wrap_Display_GetGeometry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28359 | PyObject *resultobj; |
28360 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28361 | wxRect result; | |
28362 | PyObject * obj0 = 0 ; | |
28363 | char *kwnames[] = { | |
28364 | (char *) "self", NULL | |
28365 | }; | |
28366 | ||
28367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetGeometry",kwnames,&obj0)) goto fail; | |
28368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28370 | { | |
28371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28372 | result = ((wxDisplay const *)arg1)->GetGeometry(); | |
28373 | ||
28374 | wxPyEndAllowThreads(__tstate); | |
28375 | if (PyErr_Occurred()) SWIG_fail; | |
28376 | } | |
28377 | { | |
28378 | wxRect * resultptr; | |
28379 | resultptr = new wxRect((wxRect &) result); | |
28380 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
28381 | } | |
28382 | return resultobj; | |
28383 | fail: | |
28384 | return NULL; | |
28385 | } | |
28386 | ||
28387 | ||
c32bde28 | 28388 | static PyObject *_wrap_Display_GetName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28389 | PyObject *resultobj; |
28390 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28391 | wxString result; | |
28392 | PyObject * obj0 = 0 ; | |
28393 | char *kwnames[] = { | |
28394 | (char *) "self", NULL | |
28395 | }; | |
28396 | ||
28397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetName",kwnames,&obj0)) goto fail; | |
28398 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28399 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28400 | { | |
28401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28402 | result = ((wxDisplay const *)arg1)->GetName(); | |
28403 | ||
28404 | wxPyEndAllowThreads(__tstate); | |
28405 | if (PyErr_Occurred()) SWIG_fail; | |
28406 | } | |
28407 | { | |
28408 | #if wxUSE_UNICODE | |
28409 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28410 | #else | |
28411 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28412 | #endif | |
28413 | } | |
28414 | return resultobj; | |
28415 | fail: | |
28416 | return NULL; | |
28417 | } | |
28418 | ||
28419 | ||
c32bde28 | 28420 | static PyObject *_wrap_Display_IsPrimary(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28421 | PyObject *resultobj; |
28422 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28423 | bool result; | |
28424 | PyObject * obj0 = 0 ; | |
28425 | char *kwnames[] = { | |
28426 | (char *) "self", NULL | |
28427 | }; | |
28428 | ||
28429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsPrimary",kwnames,&obj0)) goto fail; | |
28430 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28431 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28432 | { | |
28433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28434 | result = (bool)((wxDisplay const *)arg1)->IsPrimary(); | |
28435 | ||
28436 | wxPyEndAllowThreads(__tstate); | |
28437 | if (PyErr_Occurred()) SWIG_fail; | |
28438 | } | |
28439 | { | |
28440 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28441 | } | |
28442 | return resultobj; | |
28443 | fail: | |
28444 | return NULL; | |
28445 | } | |
28446 | ||
28447 | ||
c32bde28 | 28448 | static PyObject *_wrap_Display_GetModes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28449 | PyObject *resultobj; |
28450 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28451 | wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ; | |
28452 | wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ; | |
28453 | PyObject *result; | |
28454 | PyObject * obj0 = 0 ; | |
28455 | PyObject * obj1 = 0 ; | |
28456 | char *kwnames[] = { | |
28457 | (char *) "self",(char *) "mode", NULL | |
28458 | }; | |
28459 | ||
28460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_GetModes",kwnames,&obj0,&obj1)) goto fail; | |
28461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28463 | if (obj1) { | |
28464 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
28465 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28466 | SWIG_fail; | |
28467 | if (arg2 == NULL) { | |
28468 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
28469 | SWIG_fail; | |
28470 | } | |
28471 | } | |
28472 | { | |
28473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28474 | result = (PyObject *)wxDisplay_GetModes(arg1,(wxVideoMode const &)*arg2); | |
28475 | ||
28476 | wxPyEndAllowThreads(__tstate); | |
28477 | if (PyErr_Occurred()) SWIG_fail; | |
28478 | } | |
28479 | resultobj = result; | |
28480 | return resultobj; | |
28481 | fail: | |
28482 | return NULL; | |
28483 | } | |
28484 | ||
28485 | ||
c32bde28 | 28486 | static PyObject *_wrap_Display_GetCurrentMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28487 | PyObject *resultobj; |
28488 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28489 | wxVideoMode result; | |
28490 | PyObject * obj0 = 0 ; | |
28491 | char *kwnames[] = { | |
28492 | (char *) "self", NULL | |
28493 | }; | |
28494 | ||
28495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetCurrentMode",kwnames,&obj0)) goto fail; | |
28496 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28497 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28498 | { | |
28499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28500 | result = ((wxDisplay const *)arg1)->GetCurrentMode(); | |
28501 | ||
28502 | wxPyEndAllowThreads(__tstate); | |
28503 | if (PyErr_Occurred()) SWIG_fail; | |
28504 | } | |
28505 | { | |
28506 | wxVideoMode * resultptr; | |
28507 | resultptr = new wxVideoMode((wxVideoMode &) result); | |
28508 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVideoMode, 1); | |
28509 | } | |
28510 | return resultobj; | |
28511 | fail: | |
28512 | return NULL; | |
28513 | } | |
28514 | ||
28515 | ||
c32bde28 | 28516 | static PyObject *_wrap_Display_ChangeMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28517 | PyObject *resultobj; |
28518 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28519 | wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ; | |
28520 | wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ; | |
28521 | bool result; | |
28522 | PyObject * obj0 = 0 ; | |
28523 | PyObject * obj1 = 0 ; | |
28524 | char *kwnames[] = { | |
28525 | (char *) "self",(char *) "mode", NULL | |
28526 | }; | |
28527 | ||
28528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_ChangeMode",kwnames,&obj0,&obj1)) goto fail; | |
28529 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28531 | if (obj1) { | |
28532 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
28533 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28534 | SWIG_fail; | |
28535 | if (arg2 == NULL) { | |
28536 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
28537 | SWIG_fail; | |
28538 | } | |
28539 | } | |
28540 | { | |
28541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28542 | result = (bool)(arg1)->ChangeMode((wxVideoMode const &)*arg2); | |
28543 | ||
28544 | wxPyEndAllowThreads(__tstate); | |
28545 | if (PyErr_Occurred()) SWIG_fail; | |
28546 | } | |
28547 | { | |
28548 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28549 | } | |
28550 | return resultobj; | |
28551 | fail: | |
28552 | return NULL; | |
28553 | } | |
28554 | ||
28555 | ||
c32bde28 | 28556 | static PyObject *_wrap_Display_ResetMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28557 | PyObject *resultobj; |
28558 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28559 | PyObject * obj0 = 0 ; | |
28560 | char *kwnames[] = { | |
28561 | (char *) "self", NULL | |
28562 | }; | |
28563 | ||
28564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_ResetMode",kwnames,&obj0)) goto fail; | |
28565 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28566 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28567 | { | |
28568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28569 | (arg1)->ResetMode(); | |
28570 | ||
28571 | wxPyEndAllowThreads(__tstate); | |
28572 | if (PyErr_Occurred()) SWIG_fail; | |
28573 | } | |
28574 | Py_INCREF(Py_None); resultobj = Py_None; | |
28575 | return resultobj; | |
28576 | fail: | |
28577 | return NULL; | |
28578 | } | |
28579 | ||
28580 | ||
c32bde28 | 28581 | static PyObject * Display_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
28582 | PyObject *obj; |
28583 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28584 | SWIG_TypeClientData(SWIGTYPE_p_wxDisplay, obj); | |
28585 | Py_INCREF(obj); | |
28586 | return Py_BuildValue((char *)""); | |
28587 | } | |
28588 | static PyMethodDef SwigMethods[] = { | |
c32bde28 RD |
28589 | { (char *)"SystemSettings_GetColour", (PyCFunction) _wrap_SystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS, NULL }, |
28590 | { (char *)"SystemSettings_GetFont", (PyCFunction) _wrap_SystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28591 | { (char *)"SystemSettings_GetMetric", (PyCFunction) _wrap_SystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28592 | { (char *)"SystemSettings_HasFeature", (PyCFunction) _wrap_SystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28593 | { (char *)"SystemSettings_GetScreenType", (PyCFunction) _wrap_SystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28594 | { (char *)"SystemSettings_SetScreenType", (PyCFunction) _wrap_SystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28595 | { (char *)"SystemSettings_swigregister", SystemSettings_swigregister, METH_VARARGS, NULL }, | |
28596 | { (char *)"new_SystemOptions", (PyCFunction) _wrap_new_SystemOptions, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28597 | { (char *)"SystemOptions_SetOption", (PyCFunction) _wrap_SystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28598 | { (char *)"SystemOptions_SetOptionInt", (PyCFunction) _wrap_SystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28599 | { (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28600 | { (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28601 | { (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28602 | { (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS, NULL }, | |
28603 | { (char *)"NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28604 | { (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28605 | { (char *)"GetCurrentId", (PyCFunction) _wrap_GetCurrentId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28606 | { (char *)"IsStockID", (PyCFunction) _wrap_IsStockID, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28607 | { (char *)"IsStockLabel", (PyCFunction) _wrap_IsStockLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28608 | { (char *)"GetStockLabel", (PyCFunction) _wrap_GetStockLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28609 | { (char *)"Bell", (PyCFunction) _wrap_Bell, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28610 | { (char *)"EndBusyCursor", (PyCFunction) _wrap_EndBusyCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28611 | { (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28612 | { (char *)"GetMousePosition", (PyCFunction) _wrap_GetMousePosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28613 | { (char *)"IsBusy", (PyCFunction) _wrap_IsBusy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28614 | { (char *)"Now", (PyCFunction) _wrap_Now, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28615 | { (char *)"Shell", (PyCFunction) _wrap_Shell, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28616 | { (char *)"StartTimer", (PyCFunction) _wrap_StartTimer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28617 | { (char *)"GetOsVersion", (PyCFunction) _wrap_GetOsVersion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28618 | { (char *)"GetOsDescription", (PyCFunction) _wrap_GetOsDescription, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28619 | { (char *)"GetFreeMemory", (PyCFunction) _wrap_GetFreeMemory, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28620 | { (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28621 | { (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28622 | { (char *)"MilliSleep", (PyCFunction) _wrap_MilliSleep, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28623 | { (char *)"MicroSleep", (PyCFunction) _wrap_MicroSleep, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28624 | { (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28625 | { (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28626 | { (char *)"GetEmailAddress", (PyCFunction) _wrap_GetEmailAddress, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28627 | { (char *)"GetHostName", (PyCFunction) _wrap_GetHostName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28628 | { (char *)"GetFullHostName", (PyCFunction) _wrap_GetFullHostName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28629 | { (char *)"GetUserId", (PyCFunction) _wrap_GetUserId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28630 | { (char *)"GetUserName", (PyCFunction) _wrap_GetUserName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28631 | { (char *)"GetHomeDir", (PyCFunction) _wrap_GetHomeDir, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28632 | { (char *)"GetUserHome", (PyCFunction) _wrap_GetUserHome, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28633 | { (char *)"GetProcessId", (PyCFunction) _wrap_GetProcessId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28634 | { (char *)"Trap", (PyCFunction) _wrap_Trap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28635 | { (char *)"FileSelector", (PyCFunction) _wrap_FileSelector, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28636 | { (char *)"LoadFileSelector", (PyCFunction) _wrap_LoadFileSelector, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28637 | { (char *)"SaveFileSelector", (PyCFunction) _wrap_SaveFileSelector, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28638 | { (char *)"DirSelector", (PyCFunction) _wrap_DirSelector, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28639 | { (char *)"GetTextFromUser", (PyCFunction) _wrap_GetTextFromUser, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28640 | { (char *)"GetPasswordFromUser", (PyCFunction) _wrap_GetPasswordFromUser, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28641 | { (char *)"GetSingleChoice", (PyCFunction) _wrap_GetSingleChoice, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28642 | { (char *)"GetSingleChoiceIndex", (PyCFunction) _wrap_GetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28643 | { (char *)"MessageBox", (PyCFunction) _wrap_MessageBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28644 | { (char *)"GetNumberFromUser", (PyCFunction) _wrap_GetNumberFromUser, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28645 | { (char *)"ColourDisplay", (PyCFunction) _wrap_ColourDisplay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28646 | { (char *)"DisplayDepth", (PyCFunction) _wrap_DisplayDepth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28647 | { (char *)"GetDisplayDepth", (PyCFunction) _wrap_GetDisplayDepth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28648 | { (char *)"DisplaySize", (PyCFunction) _wrap_DisplaySize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28649 | { (char *)"GetDisplaySize", (PyCFunction) _wrap_GetDisplaySize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28650 | { (char *)"DisplaySizeMM", (PyCFunction) _wrap_DisplaySizeMM, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28651 | { (char *)"GetDisplaySizeMM", (PyCFunction) _wrap_GetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28652 | { (char *)"ClientDisplayRect", (PyCFunction) _wrap_ClientDisplayRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28653 | { (char *)"GetClientDisplayRect", (PyCFunction) _wrap_GetClientDisplayRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28654 | { (char *)"SetCursor", (PyCFunction) _wrap_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28655 | { (char *)"BeginBusyCursor", (PyCFunction) _wrap_BeginBusyCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28656 | { (char *)"GetActiveWindow", (PyCFunction) _wrap_GetActiveWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28657 | { (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28658 | { (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28659 | { (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28660 | { (char *)"GetKeyState", (PyCFunction) _wrap_GetKeyState, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28661 | { (char *)"WakeUpMainThread", (PyCFunction) _wrap_WakeUpMainThread, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28662 | { (char *)"MutexGuiEnter", (PyCFunction) _wrap_MutexGuiEnter, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28663 | { (char *)"MutexGuiLeave", (PyCFunction) _wrap_MutexGuiLeave, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28664 | { (char *)"new_MutexGuiLocker", (PyCFunction) _wrap_new_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28665 | { (char *)"delete_MutexGuiLocker", (PyCFunction) _wrap_delete_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28666 | { (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS, NULL }, | |
28667 | { (char *)"Thread_IsMain", (PyCFunction) _wrap_Thread_IsMain, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28668 | { (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28669 | { (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28670 | { (char *)"ToolTip_GetTip", (PyCFunction) _wrap_ToolTip_GetTip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28671 | { (char *)"ToolTip_GetWindow", (PyCFunction) _wrap_ToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28672 | { (char *)"ToolTip_Enable", (PyCFunction) _wrap_ToolTip_Enable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28673 | { (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28674 | { (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS, NULL }, | |
28675 | { (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28676 | { (char *)"delete_Caret", (PyCFunction) _wrap_delete_Caret, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28677 | { (char *)"Caret_IsOk", (PyCFunction) _wrap_Caret_IsOk, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28678 | { (char *)"Caret_IsVisible", (PyCFunction) _wrap_Caret_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28679 | { (char *)"Caret_GetPosition", (PyCFunction) _wrap_Caret_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28680 | { (char *)"Caret_GetPositionTuple", (PyCFunction) _wrap_Caret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28681 | { (char *)"Caret_GetSize", (PyCFunction) _wrap_Caret_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28682 | { (char *)"Caret_GetSizeTuple", (PyCFunction) _wrap_Caret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28683 | { (char *)"Caret_GetWindow", (PyCFunction) _wrap_Caret_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28684 | { (char *)"Caret_MoveXY", (PyCFunction) _wrap_Caret_MoveXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28685 | { (char *)"Caret_Move", (PyCFunction) _wrap_Caret_Move, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28686 | { (char *)"Caret_SetSizeWH", (PyCFunction) _wrap_Caret_SetSizeWH, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28687 | { (char *)"Caret_SetSize", (PyCFunction) _wrap_Caret_SetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28688 | { (char *)"Caret_Show", (PyCFunction) _wrap_Caret_Show, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28689 | { (char *)"Caret_Hide", (PyCFunction) _wrap_Caret_Hide, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28690 | { (char *)"Caret_swigregister", Caret_swigregister, METH_VARARGS, NULL }, | |
28691 | { (char *)"Caret_GetBlinkTime", (PyCFunction) _wrap_Caret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28692 | { (char *)"Caret_SetBlinkTime", (PyCFunction) _wrap_Caret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28693 | { (char *)"new_BusyCursor", (PyCFunction) _wrap_new_BusyCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28694 | { (char *)"delete_BusyCursor", (PyCFunction) _wrap_delete_BusyCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28695 | { (char *)"BusyCursor_swigregister", BusyCursor_swigregister, METH_VARARGS, NULL }, | |
28696 | { (char *)"new_WindowDisabler", (PyCFunction) _wrap_new_WindowDisabler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28697 | { (char *)"delete_WindowDisabler", (PyCFunction) _wrap_delete_WindowDisabler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28698 | { (char *)"WindowDisabler_swigregister", WindowDisabler_swigregister, METH_VARARGS, NULL }, | |
28699 | { (char *)"new_BusyInfo", (PyCFunction) _wrap_new_BusyInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28700 | { (char *)"delete_BusyInfo", (PyCFunction) _wrap_delete_BusyInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28701 | { (char *)"BusyInfo_swigregister", BusyInfo_swigregister, METH_VARARGS, NULL }, | |
28702 | { (char *)"new_StopWatch", (PyCFunction) _wrap_new_StopWatch, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28703 | { (char *)"StopWatch_Start", (PyCFunction) _wrap_StopWatch_Start, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28704 | { (char *)"StopWatch_Pause", (PyCFunction) _wrap_StopWatch_Pause, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28705 | { (char *)"StopWatch_Resume", (PyCFunction) _wrap_StopWatch_Resume, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28706 | { (char *)"StopWatch_Time", (PyCFunction) _wrap_StopWatch_Time, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28707 | { (char *)"StopWatch_swigregister", StopWatch_swigregister, METH_VARARGS, NULL }, | |
28708 | { (char *)"new_FileHistory", (PyCFunction) _wrap_new_FileHistory, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28709 | { (char *)"delete_FileHistory", (PyCFunction) _wrap_delete_FileHistory, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28710 | { (char *)"FileHistory_AddFileToHistory", (PyCFunction) _wrap_FileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28711 | { (char *)"FileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_FileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28712 | { (char *)"FileHistory_GetMaxFiles", (PyCFunction) _wrap_FileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28713 | { (char *)"FileHistory_UseMenu", (PyCFunction) _wrap_FileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28714 | { (char *)"FileHistory_RemoveMenu", (PyCFunction) _wrap_FileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28715 | { (char *)"FileHistory_Load", (PyCFunction) _wrap_FileHistory_Load, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28716 | { (char *)"FileHistory_Save", (PyCFunction) _wrap_FileHistory_Save, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28717 | { (char *)"FileHistory_AddFilesToMenu", (PyCFunction) _wrap_FileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28718 | { (char *)"FileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_FileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28719 | { (char *)"FileHistory_GetHistoryFile", (PyCFunction) _wrap_FileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28720 | { (char *)"FileHistory_GetCount", (PyCFunction) _wrap_FileHistory_GetCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28721 | { (char *)"FileHistory_swigregister", FileHistory_swigregister, METH_VARARGS, NULL }, | |
28722 | { (char *)"new_SingleInstanceChecker", (PyCFunction) _wrap_new_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28723 | { (char *)"new_PreSingleInstanceChecker", (PyCFunction) _wrap_new_PreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28724 | { (char *)"delete_SingleInstanceChecker", (PyCFunction) _wrap_delete_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28725 | { (char *)"SingleInstanceChecker_Create", (PyCFunction) _wrap_SingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28726 | { (char *)"SingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_SingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28727 | { (char *)"SingleInstanceChecker_swigregister", SingleInstanceChecker_swigregister, METH_VARARGS, NULL }, | |
28728 | { (char *)"DrawWindowOnDC", (PyCFunction) _wrap_DrawWindowOnDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28729 | { (char *)"delete_TipProvider", (PyCFunction) _wrap_delete_TipProvider, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28730 | { (char *)"TipProvider_GetTip", (PyCFunction) _wrap_TipProvider_GetTip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28731 | { (char *)"TipProvider_GetCurrentTip", (PyCFunction) _wrap_TipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28732 | { (char *)"TipProvider_PreprocessTip", (PyCFunction) _wrap_TipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28733 | { (char *)"TipProvider_swigregister", TipProvider_swigregister, METH_VARARGS, NULL }, | |
28734 | { (char *)"new_PyTipProvider", (PyCFunction) _wrap_new_PyTipProvider, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28735 | { (char *)"PyTipProvider__setCallbackInfo", (PyCFunction) _wrap_PyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28736 | { (char *)"PyTipProvider_swigregister", PyTipProvider_swigregister, METH_VARARGS, NULL }, | |
28737 | { (char *)"ShowTip", (PyCFunction) _wrap_ShowTip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28738 | { (char *)"CreateFileTipProvider", (PyCFunction) _wrap_CreateFileTipProvider, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28739 | { (char *)"new_Timer", (PyCFunction) _wrap_new_Timer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28740 | { (char *)"delete_Timer", (PyCFunction) _wrap_delete_Timer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28741 | { (char *)"Timer__setCallbackInfo", (PyCFunction) _wrap_Timer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28742 | { (char *)"Timer_SetOwner", (PyCFunction) _wrap_Timer_SetOwner, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28743 | { (char *)"Timer_GetOwner", (PyCFunction) _wrap_Timer_GetOwner, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28744 | { (char *)"Timer_Start", (PyCFunction) _wrap_Timer_Start, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28745 | { (char *)"Timer_Stop", (PyCFunction) _wrap_Timer_Stop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28746 | { (char *)"Timer_IsRunning", (PyCFunction) _wrap_Timer_IsRunning, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28747 | { (char *)"Timer_GetInterval", (PyCFunction) _wrap_Timer_GetInterval, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28748 | { (char *)"Timer_IsOneShot", (PyCFunction) _wrap_Timer_IsOneShot, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28749 | { (char *)"Timer_GetId", (PyCFunction) _wrap_Timer_GetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28750 | { (char *)"Timer_swigregister", Timer_swigregister, METH_VARARGS, NULL }, | |
28751 | { (char *)"new_TimerEvent", (PyCFunction) _wrap_new_TimerEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28752 | { (char *)"TimerEvent_GetInterval", (PyCFunction) _wrap_TimerEvent_GetInterval, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28753 | { (char *)"TimerEvent_swigregister", TimerEvent_swigregister, METH_VARARGS, NULL }, | |
28754 | { (char *)"new_TimerRunner", _wrap_new_TimerRunner, METH_VARARGS, NULL }, | |
28755 | { (char *)"delete_TimerRunner", (PyCFunction) _wrap_delete_TimerRunner, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28756 | { (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28757 | { (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS, NULL }, | |
28758 | { (char *)"new_Log", (PyCFunction) _wrap_new_Log, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28759 | { (char *)"Log_IsEnabled", (PyCFunction) _wrap_Log_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28760 | { (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28761 | { (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28762 | { (char *)"Log_Flush", (PyCFunction) _wrap_Log_Flush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28763 | { (char *)"Log_FlushActive", (PyCFunction) _wrap_Log_FlushActive, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28764 | { (char *)"Log_GetActiveTarget", (PyCFunction) _wrap_Log_GetActiveTarget, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28765 | { (char *)"Log_SetActiveTarget", (PyCFunction) _wrap_Log_SetActiveTarget, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28766 | { (char *)"Log_Suspend", (PyCFunction) _wrap_Log_Suspend, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28767 | { (char *)"Log_Resume", (PyCFunction) _wrap_Log_Resume, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28768 | { (char *)"Log_SetVerbose", (PyCFunction) _wrap_Log_SetVerbose, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28769 | { (char *)"Log_SetLogLevel", (PyCFunction) _wrap_Log_SetLogLevel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28770 | { (char *)"Log_DontCreateOnDemand", (PyCFunction) _wrap_Log_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28771 | { (char *)"Log_SetTraceMask", (PyCFunction) _wrap_Log_SetTraceMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28772 | { (char *)"Log_AddTraceMask", (PyCFunction) _wrap_Log_AddTraceMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28773 | { (char *)"Log_RemoveTraceMask", (PyCFunction) _wrap_Log_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28774 | { (char *)"Log_ClearTraceMasks", (PyCFunction) _wrap_Log_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28775 | { (char *)"Log_GetTraceMasks", (PyCFunction) _wrap_Log_GetTraceMasks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28776 | { (char *)"Log_SetTimestamp", (PyCFunction) _wrap_Log_SetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28777 | { (char *)"Log_GetVerbose", (PyCFunction) _wrap_Log_GetVerbose, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28778 | { (char *)"Log_GetTraceMask", (PyCFunction) _wrap_Log_GetTraceMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28779 | { (char *)"Log_IsAllowedTraceMask", (PyCFunction) _wrap_Log_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28780 | { (char *)"Log_GetLogLevel", (PyCFunction) _wrap_Log_GetLogLevel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28781 | { (char *)"Log_GetTimestamp", (PyCFunction) _wrap_Log_GetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28782 | { (char *)"Log_TimeStamp", (PyCFunction) _wrap_Log_TimeStamp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28783 | { (char *)"Log_Destroy", (PyCFunction) _wrap_Log_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28784 | { (char *)"Log_swigregister", Log_swigregister, METH_VARARGS, NULL }, | |
28785 | { (char *)"new_LogStderr", (PyCFunction) _wrap_new_LogStderr, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28786 | { (char *)"LogStderr_swigregister", LogStderr_swigregister, METH_VARARGS, NULL }, | |
28787 | { (char *)"new_LogTextCtrl", (PyCFunction) _wrap_new_LogTextCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28788 | { (char *)"LogTextCtrl_swigregister", LogTextCtrl_swigregister, METH_VARARGS, NULL }, | |
28789 | { (char *)"new_LogGui", (PyCFunction) _wrap_new_LogGui, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28790 | { (char *)"LogGui_swigregister", LogGui_swigregister, METH_VARARGS, NULL }, | |
28791 | { (char *)"new_LogWindow", (PyCFunction) _wrap_new_LogWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28792 | { (char *)"LogWindow_Show", (PyCFunction) _wrap_LogWindow_Show, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28793 | { (char *)"LogWindow_GetFrame", (PyCFunction) _wrap_LogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28794 | { (char *)"LogWindow_GetOldLog", (PyCFunction) _wrap_LogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28795 | { (char *)"LogWindow_IsPassingMessages", (PyCFunction) _wrap_LogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28796 | { (char *)"LogWindow_PassMessages", (PyCFunction) _wrap_LogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28797 | { (char *)"LogWindow_swigregister", LogWindow_swigregister, METH_VARARGS, NULL }, | |
28798 | { (char *)"new_LogChain", (PyCFunction) _wrap_new_LogChain, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28799 | { (char *)"LogChain_SetLog", (PyCFunction) _wrap_LogChain_SetLog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28800 | { (char *)"LogChain_PassMessages", (PyCFunction) _wrap_LogChain_PassMessages, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28801 | { (char *)"LogChain_IsPassingMessages", (PyCFunction) _wrap_LogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28802 | { (char *)"LogChain_GetOldLog", (PyCFunction) _wrap_LogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28803 | { (char *)"LogChain_swigregister", LogChain_swigregister, METH_VARARGS, NULL }, | |
28804 | { (char *)"SysErrorCode", (PyCFunction) _wrap_SysErrorCode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28805 | { (char *)"SysErrorMsg", (PyCFunction) _wrap_SysErrorMsg, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28806 | { (char *)"LogFatalError", (PyCFunction) _wrap_LogFatalError, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28807 | { (char *)"LogError", (PyCFunction) _wrap_LogError, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28808 | { (char *)"LogWarning", (PyCFunction) _wrap_LogWarning, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28809 | { (char *)"LogMessage", (PyCFunction) _wrap_LogMessage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28810 | { (char *)"LogInfo", (PyCFunction) _wrap_LogInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28811 | { (char *)"LogDebug", (PyCFunction) _wrap_LogDebug, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28812 | { (char *)"LogVerbose", (PyCFunction) _wrap_LogVerbose, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28813 | { (char *)"LogStatus", (PyCFunction) _wrap_LogStatus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28814 | { (char *)"LogStatusFrame", (PyCFunction) _wrap_LogStatusFrame, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28815 | { (char *)"LogSysError", (PyCFunction) _wrap_LogSysError, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28816 | { (char *)"LogTrace", _wrap_LogTrace, METH_VARARGS, NULL }, | |
28817 | { (char *)"LogGeneric", (PyCFunction) _wrap_LogGeneric, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28818 | { (char *)"SafeShowMessage", (PyCFunction) _wrap_SafeShowMessage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28819 | { (char *)"new_LogNull", (PyCFunction) _wrap_new_LogNull, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28820 | { (char *)"delete_LogNull", (PyCFunction) _wrap_delete_LogNull, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28821 | { (char *)"LogNull_swigregister", LogNull_swigregister, METH_VARARGS, NULL }, | |
28822 | { (char *)"new_PyLog", (PyCFunction) _wrap_new_PyLog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28823 | { (char *)"PyLog__setCallbackInfo", (PyCFunction) _wrap_PyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28824 | { (char *)"PyLog_swigregister", PyLog_swigregister, METH_VARARGS, NULL }, | |
28825 | { (char *)"Process_Kill", (PyCFunction) _wrap_Process_Kill, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28826 | { (char *)"Process_Exists", (PyCFunction) _wrap_Process_Exists, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28827 | { (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28828 | { (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28829 | { (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28830 | { (char *)"Process_base_OnTerminate", (PyCFunction) _wrap_Process_base_OnTerminate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28831 | { (char *)"Process_Redirect", (PyCFunction) _wrap_Process_Redirect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28832 | { (char *)"Process_IsRedirected", (PyCFunction) _wrap_Process_IsRedirected, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28833 | { (char *)"Process_Detach", (PyCFunction) _wrap_Process_Detach, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28834 | { (char *)"Process_GetInputStream", (PyCFunction) _wrap_Process_GetInputStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28835 | { (char *)"Process_GetErrorStream", (PyCFunction) _wrap_Process_GetErrorStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28836 | { (char *)"Process_GetOutputStream", (PyCFunction) _wrap_Process_GetOutputStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28837 | { (char *)"Process_CloseOutput", (PyCFunction) _wrap_Process_CloseOutput, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28838 | { (char *)"Process_IsInputOpened", (PyCFunction) _wrap_Process_IsInputOpened, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28839 | { (char *)"Process_IsInputAvailable", (PyCFunction) _wrap_Process_IsInputAvailable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28840 | { (char *)"Process_IsErrorAvailable", (PyCFunction) _wrap_Process_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28841 | { (char *)"Process_swigregister", Process_swigregister, METH_VARARGS, NULL }, | |
28842 | { (char *)"new_ProcessEvent", (PyCFunction) _wrap_new_ProcessEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28843 | { (char *)"ProcessEvent_GetPid", (PyCFunction) _wrap_ProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28844 | { (char *)"ProcessEvent_GetExitCode", (PyCFunction) _wrap_ProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28845 | { (char *)"ProcessEvent_m_pid_set", (PyCFunction) _wrap_ProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28846 | { (char *)"ProcessEvent_m_pid_get", (PyCFunction) _wrap_ProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28847 | { (char *)"ProcessEvent_m_exitcode_set", (PyCFunction) _wrap_ProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28848 | { (char *)"ProcessEvent_m_exitcode_get", (PyCFunction) _wrap_ProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28849 | { (char *)"ProcessEvent_swigregister", ProcessEvent_swigregister, METH_VARARGS, NULL }, | |
28850 | { (char *)"Execute", (PyCFunction) _wrap_Execute, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28851 | { (char *)"new_Joystick", (PyCFunction) _wrap_new_Joystick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28852 | { (char *)"delete_Joystick", (PyCFunction) _wrap_delete_Joystick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28853 | { (char *)"Joystick_GetPosition", (PyCFunction) _wrap_Joystick_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28854 | { (char *)"Joystick_GetZPosition", (PyCFunction) _wrap_Joystick_GetZPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28855 | { (char *)"Joystick_GetButtonState", (PyCFunction) _wrap_Joystick_GetButtonState, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28856 | { (char *)"Joystick_GetPOVPosition", (PyCFunction) _wrap_Joystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28857 | { (char *)"Joystick_GetPOVCTSPosition", (PyCFunction) _wrap_Joystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28858 | { (char *)"Joystick_GetRudderPosition", (PyCFunction) _wrap_Joystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28859 | { (char *)"Joystick_GetUPosition", (PyCFunction) _wrap_Joystick_GetUPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28860 | { (char *)"Joystick_GetVPosition", (PyCFunction) _wrap_Joystick_GetVPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28861 | { (char *)"Joystick_GetMovementThreshold", (PyCFunction) _wrap_Joystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28862 | { (char *)"Joystick_SetMovementThreshold", (PyCFunction) _wrap_Joystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28863 | { (char *)"Joystick_IsOk", (PyCFunction) _wrap_Joystick_IsOk, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28864 | { (char *)"Joystick_GetNumberJoysticks", (PyCFunction) _wrap_Joystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28865 | { (char *)"Joystick_GetManufacturerId", (PyCFunction) _wrap_Joystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28866 | { (char *)"Joystick_GetProductId", (PyCFunction) _wrap_Joystick_GetProductId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28867 | { (char *)"Joystick_GetProductName", (PyCFunction) _wrap_Joystick_GetProductName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28868 | { (char *)"Joystick_GetXMin", (PyCFunction) _wrap_Joystick_GetXMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28869 | { (char *)"Joystick_GetYMin", (PyCFunction) _wrap_Joystick_GetYMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28870 | { (char *)"Joystick_GetZMin", (PyCFunction) _wrap_Joystick_GetZMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28871 | { (char *)"Joystick_GetXMax", (PyCFunction) _wrap_Joystick_GetXMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28872 | { (char *)"Joystick_GetYMax", (PyCFunction) _wrap_Joystick_GetYMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28873 | { (char *)"Joystick_GetZMax", (PyCFunction) _wrap_Joystick_GetZMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28874 | { (char *)"Joystick_GetNumberButtons", (PyCFunction) _wrap_Joystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28875 | { (char *)"Joystick_GetNumberAxes", (PyCFunction) _wrap_Joystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28876 | { (char *)"Joystick_GetMaxButtons", (PyCFunction) _wrap_Joystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28877 | { (char *)"Joystick_GetMaxAxes", (PyCFunction) _wrap_Joystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28878 | { (char *)"Joystick_GetPollingMin", (PyCFunction) _wrap_Joystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28879 | { (char *)"Joystick_GetPollingMax", (PyCFunction) _wrap_Joystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28880 | { (char *)"Joystick_GetRudderMin", (PyCFunction) _wrap_Joystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28881 | { (char *)"Joystick_GetRudderMax", (PyCFunction) _wrap_Joystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28882 | { (char *)"Joystick_GetUMin", (PyCFunction) _wrap_Joystick_GetUMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28883 | { (char *)"Joystick_GetUMax", (PyCFunction) _wrap_Joystick_GetUMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28884 | { (char *)"Joystick_GetVMin", (PyCFunction) _wrap_Joystick_GetVMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28885 | { (char *)"Joystick_GetVMax", (PyCFunction) _wrap_Joystick_GetVMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28886 | { (char *)"Joystick_HasRudder", (PyCFunction) _wrap_Joystick_HasRudder, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28887 | { (char *)"Joystick_HasZ", (PyCFunction) _wrap_Joystick_HasZ, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28888 | { (char *)"Joystick_HasU", (PyCFunction) _wrap_Joystick_HasU, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28889 | { (char *)"Joystick_HasV", (PyCFunction) _wrap_Joystick_HasV, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28890 | { (char *)"Joystick_HasPOV", (PyCFunction) _wrap_Joystick_HasPOV, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28891 | { (char *)"Joystick_HasPOV4Dir", (PyCFunction) _wrap_Joystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28892 | { (char *)"Joystick_HasPOVCTS", (PyCFunction) _wrap_Joystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28893 | { (char *)"Joystick_SetCapture", (PyCFunction) _wrap_Joystick_SetCapture, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28894 | { (char *)"Joystick_ReleaseCapture", (PyCFunction) _wrap_Joystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28895 | { (char *)"Joystick_swigregister", Joystick_swigregister, METH_VARARGS, NULL }, | |
28896 | { (char *)"JoystickEvent_m_pos_set", (PyCFunction) _wrap_JoystickEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28897 | { (char *)"JoystickEvent_m_pos_get", (PyCFunction) _wrap_JoystickEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28898 | { (char *)"JoystickEvent_m_zPosition_set", (PyCFunction) _wrap_JoystickEvent_m_zPosition_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28899 | { (char *)"JoystickEvent_m_zPosition_get", (PyCFunction) _wrap_JoystickEvent_m_zPosition_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28900 | { (char *)"JoystickEvent_m_buttonChange_set", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28901 | { (char *)"JoystickEvent_m_buttonChange_get", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28902 | { (char *)"JoystickEvent_m_buttonState_set", (PyCFunction) _wrap_JoystickEvent_m_buttonState_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28903 | { (char *)"JoystickEvent_m_buttonState_get", (PyCFunction) _wrap_JoystickEvent_m_buttonState_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28904 | { (char *)"JoystickEvent_m_joyStick_set", (PyCFunction) _wrap_JoystickEvent_m_joyStick_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28905 | { (char *)"JoystickEvent_m_joyStick_get", (PyCFunction) _wrap_JoystickEvent_m_joyStick_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28906 | { (char *)"new_JoystickEvent", (PyCFunction) _wrap_new_JoystickEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28907 | { (char *)"JoystickEvent_GetPosition", (PyCFunction) _wrap_JoystickEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28908 | { (char *)"JoystickEvent_GetZPosition", (PyCFunction) _wrap_JoystickEvent_GetZPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28909 | { (char *)"JoystickEvent_GetButtonState", (PyCFunction) _wrap_JoystickEvent_GetButtonState, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28910 | { (char *)"JoystickEvent_GetButtonChange", (PyCFunction) _wrap_JoystickEvent_GetButtonChange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28911 | { (char *)"JoystickEvent_GetJoystick", (PyCFunction) _wrap_JoystickEvent_GetJoystick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28912 | { (char *)"JoystickEvent_SetJoystick", (PyCFunction) _wrap_JoystickEvent_SetJoystick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28913 | { (char *)"JoystickEvent_SetButtonState", (PyCFunction) _wrap_JoystickEvent_SetButtonState, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28914 | { (char *)"JoystickEvent_SetButtonChange", (PyCFunction) _wrap_JoystickEvent_SetButtonChange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28915 | { (char *)"JoystickEvent_SetPosition", (PyCFunction) _wrap_JoystickEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28916 | { (char *)"JoystickEvent_SetZPosition", (PyCFunction) _wrap_JoystickEvent_SetZPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28917 | { (char *)"JoystickEvent_IsButton", (PyCFunction) _wrap_JoystickEvent_IsButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28918 | { (char *)"JoystickEvent_IsMove", (PyCFunction) _wrap_JoystickEvent_IsMove, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28919 | { (char *)"JoystickEvent_IsZMove", (PyCFunction) _wrap_JoystickEvent_IsZMove, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28920 | { (char *)"JoystickEvent_ButtonDown", (PyCFunction) _wrap_JoystickEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28921 | { (char *)"JoystickEvent_ButtonUp", (PyCFunction) _wrap_JoystickEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28922 | { (char *)"JoystickEvent_ButtonIsDown", (PyCFunction) _wrap_JoystickEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28923 | { (char *)"JoystickEvent_swigregister", JoystickEvent_swigregister, METH_VARARGS, NULL }, | |
28924 | { (char *)"new_Sound", (PyCFunction) _wrap_new_Sound, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28925 | { (char *)"new_SoundFromData", (PyCFunction) _wrap_new_SoundFromData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28926 | { (char *)"delete_Sound", (PyCFunction) _wrap_delete_Sound, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28927 | { (char *)"Sound_Create", (PyCFunction) _wrap_Sound_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28928 | { (char *)"Sound_CreateFromData", (PyCFunction) _wrap_Sound_CreateFromData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28929 | { (char *)"Sound_IsOk", (PyCFunction) _wrap_Sound_IsOk, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28930 | { (char *)"Sound_Play", (PyCFunction) _wrap_Sound_Play, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28931 | { (char *)"Sound_PlaySound", (PyCFunction) _wrap_Sound_PlaySound, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28932 | { (char *)"Sound_Stop", (PyCFunction) _wrap_Sound_Stop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28933 | { (char *)"Sound_swigregister", Sound_swigregister, METH_VARARGS, NULL }, | |
28934 | { (char *)"new_FileTypeInfo", (PyCFunction) _wrap_new_FileTypeInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28935 | { (char *)"new_FileTypeInfoSequence", (PyCFunction) _wrap_new_FileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28936 | { (char *)"new_NullFileTypeInfo", (PyCFunction) _wrap_new_NullFileTypeInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28937 | { (char *)"FileTypeInfo_IsValid", (PyCFunction) _wrap_FileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28938 | { (char *)"FileTypeInfo_SetIcon", (PyCFunction) _wrap_FileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28939 | { (char *)"FileTypeInfo_SetShortDesc", (PyCFunction) _wrap_FileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28940 | { (char *)"FileTypeInfo_GetMimeType", (PyCFunction) _wrap_FileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28941 | { (char *)"FileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_FileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28942 | { (char *)"FileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_FileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28943 | { (char *)"FileTypeInfo_GetShortDesc", (PyCFunction) _wrap_FileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28944 | { (char *)"FileTypeInfo_GetDescription", (PyCFunction) _wrap_FileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28945 | { (char *)"FileTypeInfo_GetExtensions", (PyCFunction) _wrap_FileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28946 | { (char *)"FileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_FileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28947 | { (char *)"FileTypeInfo_GetIconFile", (PyCFunction) _wrap_FileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28948 | { (char *)"FileTypeInfo_GetIconIndex", (PyCFunction) _wrap_FileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28949 | { (char *)"FileTypeInfo_swigregister", FileTypeInfo_swigregister, METH_VARARGS, NULL }, | |
28950 | { (char *)"new_FileType", (PyCFunction) _wrap_new_FileType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28951 | { (char *)"delete_FileType", (PyCFunction) _wrap_delete_FileType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28952 | { (char *)"FileType_GetMimeType", (PyCFunction) _wrap_FileType_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28953 | { (char *)"FileType_GetMimeTypes", (PyCFunction) _wrap_FileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28954 | { (char *)"FileType_GetExtensions", (PyCFunction) _wrap_FileType_GetExtensions, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28955 | { (char *)"FileType_GetIcon", (PyCFunction) _wrap_FileType_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28956 | { (char *)"FileType_GetIconInfo", (PyCFunction) _wrap_FileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28957 | { (char *)"FileType_GetDescription", (PyCFunction) _wrap_FileType_GetDescription, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28958 | { (char *)"FileType_GetOpenCommand", (PyCFunction) _wrap_FileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28959 | { (char *)"FileType_GetPrintCommand", (PyCFunction) _wrap_FileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28960 | { (char *)"FileType_GetAllCommands", (PyCFunction) _wrap_FileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28961 | { (char *)"FileType_SetCommand", (PyCFunction) _wrap_FileType_SetCommand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28962 | { (char *)"FileType_SetDefaultIcon", (PyCFunction) _wrap_FileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28963 | { (char *)"FileType_Unassociate", (PyCFunction) _wrap_FileType_Unassociate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28964 | { (char *)"FileType_ExpandCommand", (PyCFunction) _wrap_FileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28965 | { (char *)"FileType_swigregister", FileType_swigregister, METH_VARARGS, NULL }, | |
28966 | { (char *)"MimeTypesManager_IsOfType", (PyCFunction) _wrap_MimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28967 | { (char *)"new_MimeTypesManager", (PyCFunction) _wrap_new_MimeTypesManager, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28968 | { (char *)"MimeTypesManager_Initialize", (PyCFunction) _wrap_MimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28969 | { (char *)"MimeTypesManager_ClearData", (PyCFunction) _wrap_MimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28970 | { (char *)"MimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28971 | { (char *)"MimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28972 | { (char *)"MimeTypesManager_ReadMailcap", (PyCFunction) _wrap_MimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28973 | { (char *)"MimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_MimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28974 | { (char *)"MimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_MimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28975 | { (char *)"MimeTypesManager_AddFallback", (PyCFunction) _wrap_MimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28976 | { (char *)"MimeTypesManager_Associate", (PyCFunction) _wrap_MimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28977 | { (char *)"MimeTypesManager_Unassociate", (PyCFunction) _wrap_MimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28978 | { (char *)"delete_MimeTypesManager", (PyCFunction) _wrap_delete_MimeTypesManager, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28979 | { (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS, NULL }, | |
28980 | { (char *)"new_ArtProvider", (PyCFunction) _wrap_new_ArtProvider, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28981 | { (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28982 | { (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28983 | { (char *)"ArtProvider_PopProvider", (PyCFunction) _wrap_ArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28984 | { (char *)"ArtProvider_RemoveProvider", (PyCFunction) _wrap_ArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28985 | { (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28986 | { (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28987 | { (char *)"ArtProvider_Destroy", (PyCFunction) _wrap_ArtProvider_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28988 | { (char *)"ArtProvider_swigregister", ArtProvider_swigregister, METH_VARARGS, NULL }, | |
28989 | { (char *)"delete_ConfigBase", (PyCFunction) _wrap_delete_ConfigBase, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28990 | { (char *)"ConfigBase_Set", (PyCFunction) _wrap_ConfigBase_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28991 | { (char *)"ConfigBase_Get", (PyCFunction) _wrap_ConfigBase_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28992 | { (char *)"ConfigBase_Create", (PyCFunction) _wrap_ConfigBase_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28993 | { (char *)"ConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_ConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28994 | { (char *)"ConfigBase_SetPath", (PyCFunction) _wrap_ConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28995 | { (char *)"ConfigBase_GetPath", (PyCFunction) _wrap_ConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28996 | { (char *)"ConfigBase_GetFirstGroup", (PyCFunction) _wrap_ConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28997 | { (char *)"ConfigBase_GetNextGroup", (PyCFunction) _wrap_ConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28998 | { (char *)"ConfigBase_GetFirstEntry", (PyCFunction) _wrap_ConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS, NULL }, | |
28999 | { (char *)"ConfigBase_GetNextEntry", (PyCFunction) _wrap_ConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29000 | { (char *)"ConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_ConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29001 | { (char *)"ConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_ConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29002 | { (char *)"ConfigBase_HasGroup", (PyCFunction) _wrap_ConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29003 | { (char *)"ConfigBase_HasEntry", (PyCFunction) _wrap_ConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29004 | { (char *)"ConfigBase_Exists", (PyCFunction) _wrap_ConfigBase_Exists, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29005 | { (char *)"ConfigBase_GetEntryType", (PyCFunction) _wrap_ConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29006 | { (char *)"ConfigBase_Read", (PyCFunction) _wrap_ConfigBase_Read, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29007 | { (char *)"ConfigBase_ReadInt", (PyCFunction) _wrap_ConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29008 | { (char *)"ConfigBase_ReadFloat", (PyCFunction) _wrap_ConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29009 | { (char *)"ConfigBase_ReadBool", (PyCFunction) _wrap_ConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29010 | { (char *)"ConfigBase_Write", (PyCFunction) _wrap_ConfigBase_Write, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29011 | { (char *)"ConfigBase_WriteInt", (PyCFunction) _wrap_ConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29012 | { (char *)"ConfigBase_WriteFloat", (PyCFunction) _wrap_ConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29013 | { (char *)"ConfigBase_WriteBool", (PyCFunction) _wrap_ConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29014 | { (char *)"ConfigBase_Flush", (PyCFunction) _wrap_ConfigBase_Flush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29015 | { (char *)"ConfigBase_RenameEntry", (PyCFunction) _wrap_ConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29016 | { (char *)"ConfigBase_RenameGroup", (PyCFunction) _wrap_ConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29017 | { (char *)"ConfigBase_DeleteEntry", (PyCFunction) _wrap_ConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29018 | { (char *)"ConfigBase_DeleteGroup", (PyCFunction) _wrap_ConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29019 | { (char *)"ConfigBase_DeleteAll", (PyCFunction) _wrap_ConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29020 | { (char *)"ConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_ConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29021 | { (char *)"ConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_ConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29022 | { (char *)"ConfigBase_SetRecordDefaults", (PyCFunction) _wrap_ConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29023 | { (char *)"ConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_ConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29024 | { (char *)"ConfigBase_ExpandEnvVars", (PyCFunction) _wrap_ConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29025 | { (char *)"ConfigBase_GetAppName", (PyCFunction) _wrap_ConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29026 | { (char *)"ConfigBase_GetVendorName", (PyCFunction) _wrap_ConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29027 | { (char *)"ConfigBase_SetAppName", (PyCFunction) _wrap_ConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29028 | { (char *)"ConfigBase_SetVendorName", (PyCFunction) _wrap_ConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29029 | { (char *)"ConfigBase_SetStyle", (PyCFunction) _wrap_ConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29030 | { (char *)"ConfigBase_GetStyle", (PyCFunction) _wrap_ConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29031 | { (char *)"ConfigBase_swigregister", ConfigBase_swigregister, METH_VARARGS, NULL }, | |
29032 | { (char *)"new_Config", (PyCFunction) _wrap_new_Config, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29033 | { (char *)"delete_Config", (PyCFunction) _wrap_delete_Config, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29034 | { (char *)"Config_swigregister", Config_swigregister, METH_VARARGS, NULL }, | |
29035 | { (char *)"new_FileConfig", (PyCFunction) _wrap_new_FileConfig, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29036 | { (char *)"delete_FileConfig", (PyCFunction) _wrap_delete_FileConfig, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29037 | { (char *)"FileConfig_swigregister", FileConfig_swigregister, METH_VARARGS, NULL }, | |
29038 | { (char *)"new_ConfigPathChanger", (PyCFunction) _wrap_new_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29039 | { (char *)"delete_ConfigPathChanger", (PyCFunction) _wrap_delete_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29040 | { (char *)"ConfigPathChanger_Name", (PyCFunction) _wrap_ConfigPathChanger_Name, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29041 | { (char *)"ConfigPathChanger_swigregister", ConfigPathChanger_swigregister, METH_VARARGS, NULL }, | |
29042 | { (char *)"ExpandEnvVars", (PyCFunction) _wrap_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29043 | { (char *)"DateTime_SetCountry", (PyCFunction) _wrap_DateTime_SetCountry, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29044 | { (char *)"DateTime_GetCountry", (PyCFunction) _wrap_DateTime_GetCountry, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29045 | { (char *)"DateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_DateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29046 | { (char *)"DateTime_GetCurrentYear", (PyCFunction) _wrap_DateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29047 | { (char *)"DateTime_ConvertYearToBC", (PyCFunction) _wrap_DateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29048 | { (char *)"DateTime_GetCurrentMonth", (PyCFunction) _wrap_DateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29049 | { (char *)"DateTime_IsLeapYear", (PyCFunction) _wrap_DateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29050 | { (char *)"DateTime_GetCentury", (PyCFunction) _wrap_DateTime_GetCentury, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29051 | { (char *)"DateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_DateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29052 | { (char *)"DateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_DateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29053 | { (char *)"DateTime_GetMonthName", (PyCFunction) _wrap_DateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29054 | { (char *)"DateTime_GetWeekDayName", (PyCFunction) _wrap_DateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29055 | { (char *)"DateTime_GetAmPmStrings", (PyCFunction) _wrap_DateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29056 | { (char *)"DateTime_IsDSTApplicable", (PyCFunction) _wrap_DateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29057 | { (char *)"DateTime_GetBeginDST", (PyCFunction) _wrap_DateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29058 | { (char *)"DateTime_GetEndDST", (PyCFunction) _wrap_DateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29059 | { (char *)"DateTime_Now", (PyCFunction) _wrap_DateTime_Now, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29060 | { (char *)"DateTime_UNow", (PyCFunction) _wrap_DateTime_UNow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29061 | { (char *)"DateTime_Today", (PyCFunction) _wrap_DateTime_Today, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29062 | { (char *)"new_DateTime", (PyCFunction) _wrap_new_DateTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29063 | { (char *)"new_DateTimeFromTimeT", (PyCFunction) _wrap_new_DateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29064 | { (char *)"new_DateTimeFromJDN", (PyCFunction) _wrap_new_DateTimeFromJDN, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29065 | { (char *)"new_DateTimeFromHMS", (PyCFunction) _wrap_new_DateTimeFromHMS, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29066 | { (char *)"new_DateTimeFromDMY", (PyCFunction) _wrap_new_DateTimeFromDMY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29067 | { (char *)"delete_DateTime", (PyCFunction) _wrap_delete_DateTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29068 | { (char *)"DateTime_SetToCurrent", (PyCFunction) _wrap_DateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29069 | { (char *)"DateTime_SetTimeT", (PyCFunction) _wrap_DateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29070 | { (char *)"DateTime_SetJDN", (PyCFunction) _wrap_DateTime_SetJDN, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29071 | { (char *)"DateTime_SetHMS", (PyCFunction) _wrap_DateTime_SetHMS, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29072 | { (char *)"DateTime_Set", (PyCFunction) _wrap_DateTime_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29073 | { (char *)"DateTime_ResetTime", (PyCFunction) _wrap_DateTime_ResetTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29074 | { (char *)"DateTime_SetYear", (PyCFunction) _wrap_DateTime_SetYear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29075 | { (char *)"DateTime_SetMonth", (PyCFunction) _wrap_DateTime_SetMonth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29076 | { (char *)"DateTime_SetDay", (PyCFunction) _wrap_DateTime_SetDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29077 | { (char *)"DateTime_SetHour", (PyCFunction) _wrap_DateTime_SetHour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29078 | { (char *)"DateTime_SetMinute", (PyCFunction) _wrap_DateTime_SetMinute, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29079 | { (char *)"DateTime_SetSecond", (PyCFunction) _wrap_DateTime_SetSecond, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29080 | { (char *)"DateTime_SetMillisecond", (PyCFunction) _wrap_DateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29081 | { (char *)"DateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29082 | { (char *)"DateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29083 | { (char *)"DateTime_SetToNextWeekDay", (PyCFunction) _wrap_DateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29084 | { (char *)"DateTime_GetNextWeekDay", (PyCFunction) _wrap_DateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29085 | { (char *)"DateTime_SetToPrevWeekDay", (PyCFunction) _wrap_DateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29086 | { (char *)"DateTime_GetPrevWeekDay", (PyCFunction) _wrap_DateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29087 | { (char *)"DateTime_SetToWeekDay", (PyCFunction) _wrap_DateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29088 | { (char *)"DateTime_SetToLastWeekDay", (PyCFunction) _wrap_DateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29089 | { (char *)"DateTime_GetLastWeekDay", (PyCFunction) _wrap_DateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29090 | { (char *)"DateTime_SetToTheWeek", (PyCFunction) _wrap_DateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29091 | { (char *)"DateTime_GetWeek", (PyCFunction) _wrap_DateTime_GetWeek, METH_VARARGS | METH_KEYWORDS, NULL }, | |
7e63a440 | 29092 | { (char *)"DateTime_SetToWeekOfYear", (PyCFunction) _wrap_DateTime_SetToWeekOfYear, METH_VARARGS | METH_KEYWORDS, NULL }, |
c32bde28 RD |
29093 | { (char *)"DateTime_SetToLastMonthDay", (PyCFunction) _wrap_DateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS, NULL }, |
29094 | { (char *)"DateTime_GetLastMonthDay", (PyCFunction) _wrap_DateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29095 | { (char *)"DateTime_SetToYearDay", (PyCFunction) _wrap_DateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29096 | { (char *)"DateTime_GetYearDay", (PyCFunction) _wrap_DateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29097 | { (char *)"DateTime_GetJulianDayNumber", (PyCFunction) _wrap_DateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29098 | { (char *)"DateTime_GetJDN", (PyCFunction) _wrap_DateTime_GetJDN, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29099 | { (char *)"DateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_DateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29100 | { (char *)"DateTime_GetMJD", (PyCFunction) _wrap_DateTime_GetMJD, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29101 | { (char *)"DateTime_GetRataDie", (PyCFunction) _wrap_DateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29102 | { (char *)"DateTime_ToTimezone", (PyCFunction) _wrap_DateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29103 | { (char *)"DateTime_MakeTimezone", (PyCFunction) _wrap_DateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29104 | { (char *)"DateTime_ToGMT", (PyCFunction) _wrap_DateTime_ToGMT, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29105 | { (char *)"DateTime_MakeGMT", (PyCFunction) _wrap_DateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29106 | { (char *)"DateTime_IsDST", (PyCFunction) _wrap_DateTime_IsDST, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29107 | { (char *)"DateTime_IsValid", (PyCFunction) _wrap_DateTime_IsValid, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29108 | { (char *)"DateTime_GetTicks", (PyCFunction) _wrap_DateTime_GetTicks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29109 | { (char *)"DateTime_GetYear", (PyCFunction) _wrap_DateTime_GetYear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29110 | { (char *)"DateTime_GetMonth", (PyCFunction) _wrap_DateTime_GetMonth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29111 | { (char *)"DateTime_GetDay", (PyCFunction) _wrap_DateTime_GetDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29112 | { (char *)"DateTime_GetWeekDay", (PyCFunction) _wrap_DateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29113 | { (char *)"DateTime_GetHour", (PyCFunction) _wrap_DateTime_GetHour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29114 | { (char *)"DateTime_GetMinute", (PyCFunction) _wrap_DateTime_GetMinute, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29115 | { (char *)"DateTime_GetSecond", (PyCFunction) _wrap_DateTime_GetSecond, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29116 | { (char *)"DateTime_GetMillisecond", (PyCFunction) _wrap_DateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29117 | { (char *)"DateTime_GetDayOfYear", (PyCFunction) _wrap_DateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29118 | { (char *)"DateTime_GetWeekOfYear", (PyCFunction) _wrap_DateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29119 | { (char *)"DateTime_GetWeekOfMonth", (PyCFunction) _wrap_DateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29120 | { (char *)"DateTime_IsWorkDay", (PyCFunction) _wrap_DateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29121 | { (char *)"DateTime_IsEqualTo", (PyCFunction) _wrap_DateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29122 | { (char *)"DateTime_IsEarlierThan", (PyCFunction) _wrap_DateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29123 | { (char *)"DateTime_IsLaterThan", (PyCFunction) _wrap_DateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29124 | { (char *)"DateTime_IsStrictlyBetween", (PyCFunction) _wrap_DateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29125 | { (char *)"DateTime_IsBetween", (PyCFunction) _wrap_DateTime_IsBetween, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29126 | { (char *)"DateTime_IsSameDate", (PyCFunction) _wrap_DateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29127 | { (char *)"DateTime_IsSameTime", (PyCFunction) _wrap_DateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29128 | { (char *)"DateTime_IsEqualUpTo", (PyCFunction) _wrap_DateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29129 | { (char *)"DateTime_AddTS", (PyCFunction) _wrap_DateTime_AddTS, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29130 | { (char *)"DateTime_AddDS", (PyCFunction) _wrap_DateTime_AddDS, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29131 | { (char *)"DateTime_SubtractTS", (PyCFunction) _wrap_DateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29132 | { (char *)"DateTime_SubtractDS", (PyCFunction) _wrap_DateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29133 | { (char *)"DateTime_Subtract", (PyCFunction) _wrap_DateTime_Subtract, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29134 | { (char *)"DateTime___iadd__", _wrap_DateTime___iadd__, METH_VARARGS, NULL }, | |
29135 | { (char *)"DateTime___isub__", _wrap_DateTime___isub__, METH_VARARGS, NULL }, | |
29136 | { (char *)"DateTime___add__", _wrap_DateTime___add__, METH_VARARGS, NULL }, | |
29137 | { (char *)"DateTime___sub__", _wrap_DateTime___sub__, METH_VARARGS, NULL }, | |
29138 | { (char *)"DateTime___lt__", _wrap_DateTime___lt__, METH_VARARGS, NULL }, | |
29139 | { (char *)"DateTime___le__", _wrap_DateTime___le__, METH_VARARGS, NULL }, | |
29140 | { (char *)"DateTime___gt__", _wrap_DateTime___gt__, METH_VARARGS, NULL }, | |
29141 | { (char *)"DateTime___ge__", _wrap_DateTime___ge__, METH_VARARGS, NULL }, | |
29142 | { (char *)"DateTime___eq__", _wrap_DateTime___eq__, METH_VARARGS, NULL }, | |
29143 | { (char *)"DateTime___ne__", _wrap_DateTime___ne__, METH_VARARGS, NULL }, | |
29144 | { (char *)"DateTime_ParseRfc822Date", (PyCFunction) _wrap_DateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29145 | { (char *)"DateTime_ParseFormat", (PyCFunction) _wrap_DateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29146 | { (char *)"DateTime_ParseDateTime", (PyCFunction) _wrap_DateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29147 | { (char *)"DateTime_ParseDate", (PyCFunction) _wrap_DateTime_ParseDate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29148 | { (char *)"DateTime_ParseTime", (PyCFunction) _wrap_DateTime_ParseTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29149 | { (char *)"DateTime_Format", (PyCFunction) _wrap_DateTime_Format, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29150 | { (char *)"DateTime_FormatDate", (PyCFunction) _wrap_DateTime_FormatDate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29151 | { (char *)"DateTime_FormatTime", (PyCFunction) _wrap_DateTime_FormatTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29152 | { (char *)"DateTime_FormatISODate", (PyCFunction) _wrap_DateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29153 | { (char *)"DateTime_FormatISOTime", (PyCFunction) _wrap_DateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29154 | { (char *)"DateTime_swigregister", DateTime_swigregister, METH_VARARGS, NULL }, | |
29155 | { (char *)"TimeSpan_Seconds", (PyCFunction) _wrap_TimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29156 | { (char *)"TimeSpan_Second", (PyCFunction) _wrap_TimeSpan_Second, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29157 | { (char *)"TimeSpan_Minutes", (PyCFunction) _wrap_TimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29158 | { (char *)"TimeSpan_Minute", (PyCFunction) _wrap_TimeSpan_Minute, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29159 | { (char *)"TimeSpan_Hours", (PyCFunction) _wrap_TimeSpan_Hours, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29160 | { (char *)"TimeSpan_Hour", (PyCFunction) _wrap_TimeSpan_Hour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29161 | { (char *)"TimeSpan_Days", (PyCFunction) _wrap_TimeSpan_Days, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29162 | { (char *)"TimeSpan_Day", (PyCFunction) _wrap_TimeSpan_Day, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29163 | { (char *)"TimeSpan_Weeks", (PyCFunction) _wrap_TimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29164 | { (char *)"TimeSpan_Week", (PyCFunction) _wrap_TimeSpan_Week, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29165 | { (char *)"new_TimeSpan", (PyCFunction) _wrap_new_TimeSpan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29166 | { (char *)"delete_TimeSpan", (PyCFunction) _wrap_delete_TimeSpan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29167 | { (char *)"TimeSpan_Add", (PyCFunction) _wrap_TimeSpan_Add, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29168 | { (char *)"TimeSpan_Subtract", (PyCFunction) _wrap_TimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29169 | { (char *)"TimeSpan_Multiply", (PyCFunction) _wrap_TimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29170 | { (char *)"TimeSpan_Neg", (PyCFunction) _wrap_TimeSpan_Neg, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29171 | { (char *)"TimeSpan_Abs", (PyCFunction) _wrap_TimeSpan_Abs, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29172 | { (char *)"TimeSpan___iadd__", (PyCFunction) _wrap_TimeSpan___iadd__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29173 | { (char *)"TimeSpan___isub__", (PyCFunction) _wrap_TimeSpan___isub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29174 | { (char *)"TimeSpan___imul__", (PyCFunction) _wrap_TimeSpan___imul__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29175 | { (char *)"TimeSpan___neg__", (PyCFunction) _wrap_TimeSpan___neg__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29176 | { (char *)"TimeSpan___add__", (PyCFunction) _wrap_TimeSpan___add__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29177 | { (char *)"TimeSpan___sub__", (PyCFunction) _wrap_TimeSpan___sub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29178 | { (char *)"TimeSpan___mul__", (PyCFunction) _wrap_TimeSpan___mul__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29179 | { (char *)"TimeSpan___rmul__", (PyCFunction) _wrap_TimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29180 | { (char *)"TimeSpan___lt__", (PyCFunction) _wrap_TimeSpan___lt__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29181 | { (char *)"TimeSpan___le__", (PyCFunction) _wrap_TimeSpan___le__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29182 | { (char *)"TimeSpan___gt__", (PyCFunction) _wrap_TimeSpan___gt__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29183 | { (char *)"TimeSpan___ge__", (PyCFunction) _wrap_TimeSpan___ge__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29184 | { (char *)"TimeSpan___eq__", (PyCFunction) _wrap_TimeSpan___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29185 | { (char *)"TimeSpan___ne__", (PyCFunction) _wrap_TimeSpan___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29186 | { (char *)"TimeSpan_IsNull", (PyCFunction) _wrap_TimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29187 | { (char *)"TimeSpan_IsPositive", (PyCFunction) _wrap_TimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29188 | { (char *)"TimeSpan_IsNegative", (PyCFunction) _wrap_TimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29189 | { (char *)"TimeSpan_IsEqualTo", (PyCFunction) _wrap_TimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29190 | { (char *)"TimeSpan_IsLongerThan", (PyCFunction) _wrap_TimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29191 | { (char *)"TimeSpan_IsShorterThan", (PyCFunction) _wrap_TimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29192 | { (char *)"TimeSpan_GetWeeks", (PyCFunction) _wrap_TimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29193 | { (char *)"TimeSpan_GetDays", (PyCFunction) _wrap_TimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29194 | { (char *)"TimeSpan_GetHours", (PyCFunction) _wrap_TimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29195 | { (char *)"TimeSpan_GetMinutes", (PyCFunction) _wrap_TimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29196 | { (char *)"TimeSpan_GetSeconds", (PyCFunction) _wrap_TimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29197 | { (char *)"TimeSpan_GetMilliseconds", (PyCFunction) _wrap_TimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29198 | { (char *)"TimeSpan_Format", (PyCFunction) _wrap_TimeSpan_Format, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29199 | { (char *)"TimeSpan_swigregister", TimeSpan_swigregister, METH_VARARGS, NULL }, | |
29200 | { (char *)"new_DateSpan", (PyCFunction) _wrap_new_DateSpan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29201 | { (char *)"delete_DateSpan", (PyCFunction) _wrap_delete_DateSpan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29202 | { (char *)"DateSpan_Days", (PyCFunction) _wrap_DateSpan_Days, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29203 | { (char *)"DateSpan_Day", (PyCFunction) _wrap_DateSpan_Day, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29204 | { (char *)"DateSpan_Weeks", (PyCFunction) _wrap_DateSpan_Weeks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29205 | { (char *)"DateSpan_Week", (PyCFunction) _wrap_DateSpan_Week, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29206 | { (char *)"DateSpan_Months", (PyCFunction) _wrap_DateSpan_Months, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29207 | { (char *)"DateSpan_Month", (PyCFunction) _wrap_DateSpan_Month, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29208 | { (char *)"DateSpan_Years", (PyCFunction) _wrap_DateSpan_Years, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29209 | { (char *)"DateSpan_Year", (PyCFunction) _wrap_DateSpan_Year, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29210 | { (char *)"DateSpan_SetYears", (PyCFunction) _wrap_DateSpan_SetYears, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29211 | { (char *)"DateSpan_SetMonths", (PyCFunction) _wrap_DateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29212 | { (char *)"DateSpan_SetWeeks", (PyCFunction) _wrap_DateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29213 | { (char *)"DateSpan_SetDays", (PyCFunction) _wrap_DateSpan_SetDays, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29214 | { (char *)"DateSpan_GetYears", (PyCFunction) _wrap_DateSpan_GetYears, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29215 | { (char *)"DateSpan_GetMonths", (PyCFunction) _wrap_DateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29216 | { (char *)"DateSpan_GetWeeks", (PyCFunction) _wrap_DateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29217 | { (char *)"DateSpan_GetDays", (PyCFunction) _wrap_DateSpan_GetDays, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29218 | { (char *)"DateSpan_GetTotalDays", (PyCFunction) _wrap_DateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29219 | { (char *)"DateSpan_Add", (PyCFunction) _wrap_DateSpan_Add, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29220 | { (char *)"DateSpan_Subtract", (PyCFunction) _wrap_DateSpan_Subtract, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29221 | { (char *)"DateSpan_Neg", (PyCFunction) _wrap_DateSpan_Neg, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29222 | { (char *)"DateSpan_Multiply", (PyCFunction) _wrap_DateSpan_Multiply, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29223 | { (char *)"DateSpan___iadd__", (PyCFunction) _wrap_DateSpan___iadd__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29224 | { (char *)"DateSpan___isub__", (PyCFunction) _wrap_DateSpan___isub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29225 | { (char *)"DateSpan___neg__", (PyCFunction) _wrap_DateSpan___neg__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29226 | { (char *)"DateSpan___imul__", (PyCFunction) _wrap_DateSpan___imul__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29227 | { (char *)"DateSpan___add__", (PyCFunction) _wrap_DateSpan___add__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29228 | { (char *)"DateSpan___sub__", (PyCFunction) _wrap_DateSpan___sub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29229 | { (char *)"DateSpan___mul__", (PyCFunction) _wrap_DateSpan___mul__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29230 | { (char *)"DateSpan___rmul__", (PyCFunction) _wrap_DateSpan___rmul__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29231 | { (char *)"DateSpan___eq__", (PyCFunction) _wrap_DateSpan___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29232 | { (char *)"DateSpan___ne__", (PyCFunction) _wrap_DateSpan___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29233 | { (char *)"DateSpan_swigregister", DateSpan_swigregister, METH_VARARGS, NULL }, | |
29234 | { (char *)"GetLocalTime", (PyCFunction) _wrap_GetLocalTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29235 | { (char *)"GetUTCTime", (PyCFunction) _wrap_GetUTCTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29236 | { (char *)"GetCurrentTime", (PyCFunction) _wrap_GetCurrentTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29237 | { (char *)"GetLocalTimeMillis", (PyCFunction) _wrap_GetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29238 | { (char *)"new_DataFormat", (PyCFunction) _wrap_new_DataFormat, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29239 | { (char *)"new_CustomDataFormat", (PyCFunction) _wrap_new_CustomDataFormat, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29240 | { (char *)"delete_DataFormat", (PyCFunction) _wrap_delete_DataFormat, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29241 | { (char *)"DataFormat___eq__", _wrap_DataFormat___eq__, METH_VARARGS, NULL }, | |
29242 | { (char *)"DataFormat___ne__", _wrap_DataFormat___ne__, METH_VARARGS, NULL }, | |
29243 | { (char *)"DataFormat_SetType", (PyCFunction) _wrap_DataFormat_SetType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29244 | { (char *)"DataFormat_GetType", (PyCFunction) _wrap_DataFormat_GetType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29245 | { (char *)"DataFormat_GetId", (PyCFunction) _wrap_DataFormat_GetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29246 | { (char *)"DataFormat_SetId", (PyCFunction) _wrap_DataFormat_SetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29247 | { (char *)"DataFormat_swigregister", DataFormat_swigregister, METH_VARARGS, NULL }, | |
29248 | { (char *)"delete_DataObject", (PyCFunction) _wrap_delete_DataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29249 | { (char *)"DataObject_GetPreferredFormat", (PyCFunction) _wrap_DataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29250 | { (char *)"DataObject_GetFormatCount", (PyCFunction) _wrap_DataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29251 | { (char *)"DataObject_IsSupported", (PyCFunction) _wrap_DataObject_IsSupported, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29252 | { (char *)"DataObject_GetDataSize", (PyCFunction) _wrap_DataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29253 | { (char *)"DataObject_GetAllFormats", (PyCFunction) _wrap_DataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29254 | { (char *)"DataObject_GetDataHere", (PyCFunction) _wrap_DataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29255 | { (char *)"DataObject_SetData", (PyCFunction) _wrap_DataObject_SetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29256 | { (char *)"DataObject_swigregister", DataObject_swigregister, METH_VARARGS, NULL }, | |
29257 | { (char *)"new_DataObjectSimple", (PyCFunction) _wrap_new_DataObjectSimple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29258 | { (char *)"DataObjectSimple_GetFormat", (PyCFunction) _wrap_DataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29259 | { (char *)"DataObjectSimple_SetFormat", (PyCFunction) _wrap_DataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29260 | { (char *)"DataObjectSimple_GetDataSize", (PyCFunction) _wrap_DataObjectSimple_GetDataSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29261 | { (char *)"DataObjectSimple_GetDataHere", (PyCFunction) _wrap_DataObjectSimple_GetDataHere, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29262 | { (char *)"DataObjectSimple_SetData", (PyCFunction) _wrap_DataObjectSimple_SetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29263 | { (char *)"DataObjectSimple_swigregister", DataObjectSimple_swigregister, METH_VARARGS, NULL }, | |
29264 | { (char *)"new_PyDataObjectSimple", (PyCFunction) _wrap_new_PyDataObjectSimple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29265 | { (char *)"PyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_PyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29266 | { (char *)"PyDataObjectSimple_swigregister", PyDataObjectSimple_swigregister, METH_VARARGS, NULL }, | |
29267 | { (char *)"new_DataObjectComposite", (PyCFunction) _wrap_new_DataObjectComposite, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29268 | { (char *)"DataObjectComposite_Add", (PyCFunction) _wrap_DataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29269 | { (char *)"DataObjectComposite_swigregister", DataObjectComposite_swigregister, METH_VARARGS, NULL }, | |
29270 | { (char *)"new_TextDataObject", (PyCFunction) _wrap_new_TextDataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29271 | { (char *)"TextDataObject_GetTextLength", (PyCFunction) _wrap_TextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29272 | { (char *)"TextDataObject_GetText", (PyCFunction) _wrap_TextDataObject_GetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29273 | { (char *)"TextDataObject_SetText", (PyCFunction) _wrap_TextDataObject_SetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29274 | { (char *)"TextDataObject_swigregister", TextDataObject_swigregister, METH_VARARGS, NULL }, | |
29275 | { (char *)"new_PyTextDataObject", (PyCFunction) _wrap_new_PyTextDataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29276 | { (char *)"PyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_PyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29277 | { (char *)"PyTextDataObject_swigregister", PyTextDataObject_swigregister, METH_VARARGS, NULL }, | |
29278 | { (char *)"new_BitmapDataObject", (PyCFunction) _wrap_new_BitmapDataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29279 | { (char *)"BitmapDataObject_GetBitmap", (PyCFunction) _wrap_BitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29280 | { (char *)"BitmapDataObject_SetBitmap", (PyCFunction) _wrap_BitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29281 | { (char *)"BitmapDataObject_swigregister", BitmapDataObject_swigregister, METH_VARARGS, NULL }, | |
29282 | { (char *)"new_PyBitmapDataObject", (PyCFunction) _wrap_new_PyBitmapDataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29283 | { (char *)"PyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_PyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29284 | { (char *)"PyBitmapDataObject_swigregister", PyBitmapDataObject_swigregister, METH_VARARGS, NULL }, | |
29285 | { (char *)"new_FileDataObject", (PyCFunction) _wrap_new_FileDataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29286 | { (char *)"FileDataObject_GetFilenames", (PyCFunction) _wrap_FileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29287 | { (char *)"FileDataObject_AddFile", (PyCFunction) _wrap_FileDataObject_AddFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29288 | { (char *)"FileDataObject_swigregister", FileDataObject_swigregister, METH_VARARGS, NULL }, | |
29289 | { (char *)"new_CustomDataObject", (PyCFunction) _wrap_new_CustomDataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29290 | { (char *)"CustomDataObject_SetData", (PyCFunction) _wrap_CustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29291 | { (char *)"CustomDataObject_GetSize", (PyCFunction) _wrap_CustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29292 | { (char *)"CustomDataObject_GetData", (PyCFunction) _wrap_CustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29293 | { (char *)"CustomDataObject_swigregister", CustomDataObject_swigregister, METH_VARARGS, NULL }, | |
29294 | { (char *)"new_URLDataObject", (PyCFunction) _wrap_new_URLDataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29295 | { (char *)"URLDataObject_GetURL", (PyCFunction) _wrap_URLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29296 | { (char *)"URLDataObject_SetURL", (PyCFunction) _wrap_URLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29297 | { (char *)"URLDataObject_swigregister", URLDataObject_swigregister, METH_VARARGS, NULL }, | |
29298 | { (char *)"new_MetafileDataObject", (PyCFunction) _wrap_new_MetafileDataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29299 | { (char *)"MetafileDataObject_SetMetafile", (PyCFunction) _wrap_MetafileDataObject_SetMetafile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29300 | { (char *)"MetafileDataObject_GetMetafile", (PyCFunction) _wrap_MetafileDataObject_GetMetafile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29301 | { (char *)"MetafileDataObject_swigregister", MetafileDataObject_swigregister, METH_VARARGS, NULL }, | |
29302 | { (char *)"IsDragResultOk", (PyCFunction) _wrap_IsDragResultOk, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29303 | { (char *)"new_DropSource", (PyCFunction) _wrap_new_DropSource, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29304 | { (char *)"DropSource__setCallbackInfo", (PyCFunction) _wrap_DropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29305 | { (char *)"delete_DropSource", (PyCFunction) _wrap_delete_DropSource, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29306 | { (char *)"DropSource_SetData", (PyCFunction) _wrap_DropSource_SetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29307 | { (char *)"DropSource_GetDataObject", (PyCFunction) _wrap_DropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29308 | { (char *)"DropSource_SetCursor", (PyCFunction) _wrap_DropSource_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29309 | { (char *)"DropSource_DoDragDrop", (PyCFunction) _wrap_DropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29310 | { (char *)"DropSource_base_GiveFeedback", (PyCFunction) _wrap_DropSource_base_GiveFeedback, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29311 | { (char *)"DropSource_swigregister", DropSource_swigregister, METH_VARARGS, NULL }, | |
29312 | { (char *)"new_DropTarget", (PyCFunction) _wrap_new_DropTarget, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29313 | { (char *)"DropTarget__setCallbackInfo", (PyCFunction) _wrap_DropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29314 | { (char *)"delete_DropTarget", (PyCFunction) _wrap_delete_DropTarget, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29315 | { (char *)"DropTarget_GetDataObject", (PyCFunction) _wrap_DropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29316 | { (char *)"DropTarget_SetDataObject", (PyCFunction) _wrap_DropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29317 | { (char *)"DropTarget_base_OnEnter", (PyCFunction) _wrap_DropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29318 | { (char *)"DropTarget_base_OnDragOver", (PyCFunction) _wrap_DropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29319 | { (char *)"DropTarget_base_OnLeave", (PyCFunction) _wrap_DropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29320 | { (char *)"DropTarget_base_OnDrop", (PyCFunction) _wrap_DropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29321 | { (char *)"DropTarget_GetData", (PyCFunction) _wrap_DropTarget_GetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29322 | { (char *)"DropTarget_swigregister", DropTarget_swigregister, METH_VARARGS, NULL }, | |
29323 | { (char *)"new_TextDropTarget", (PyCFunction) _wrap_new_TextDropTarget, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29324 | { (char *)"TextDropTarget__setCallbackInfo", (PyCFunction) _wrap_TextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29325 | { (char *)"TextDropTarget_base_OnEnter", (PyCFunction) _wrap_TextDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29326 | { (char *)"TextDropTarget_base_OnDragOver", (PyCFunction) _wrap_TextDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29327 | { (char *)"TextDropTarget_base_OnLeave", (PyCFunction) _wrap_TextDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29328 | { (char *)"TextDropTarget_base_OnDrop", (PyCFunction) _wrap_TextDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29329 | { (char *)"TextDropTarget_base_OnData", (PyCFunction) _wrap_TextDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29330 | { (char *)"TextDropTarget_swigregister", TextDropTarget_swigregister, METH_VARARGS, NULL }, | |
29331 | { (char *)"new_FileDropTarget", (PyCFunction) _wrap_new_FileDropTarget, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29332 | { (char *)"FileDropTarget__setCallbackInfo", (PyCFunction) _wrap_FileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29333 | { (char *)"FileDropTarget_base_OnEnter", (PyCFunction) _wrap_FileDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29334 | { (char *)"FileDropTarget_base_OnDragOver", (PyCFunction) _wrap_FileDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29335 | { (char *)"FileDropTarget_base_OnLeave", (PyCFunction) _wrap_FileDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29336 | { (char *)"FileDropTarget_base_OnDrop", (PyCFunction) _wrap_FileDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29337 | { (char *)"FileDropTarget_base_OnData", (PyCFunction) _wrap_FileDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29338 | { (char *)"FileDropTarget_swigregister", FileDropTarget_swigregister, METH_VARARGS, NULL }, | |
29339 | { (char *)"new_Clipboard", (PyCFunction) _wrap_new_Clipboard, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29340 | { (char *)"delete_Clipboard", (PyCFunction) _wrap_delete_Clipboard, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29341 | { (char *)"Clipboard_Open", (PyCFunction) _wrap_Clipboard_Open, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29342 | { (char *)"Clipboard_Close", (PyCFunction) _wrap_Clipboard_Close, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29343 | { (char *)"Clipboard_IsOpened", (PyCFunction) _wrap_Clipboard_IsOpened, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29344 | { (char *)"Clipboard_AddData", (PyCFunction) _wrap_Clipboard_AddData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29345 | { (char *)"Clipboard_SetData", (PyCFunction) _wrap_Clipboard_SetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29346 | { (char *)"Clipboard_IsSupported", (PyCFunction) _wrap_Clipboard_IsSupported, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29347 | { (char *)"Clipboard_GetData", (PyCFunction) _wrap_Clipboard_GetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29348 | { (char *)"Clipboard_Clear", (PyCFunction) _wrap_Clipboard_Clear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29349 | { (char *)"Clipboard_Flush", (PyCFunction) _wrap_Clipboard_Flush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29350 | { (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29351 | { (char *)"Clipboard_Get", (PyCFunction) _wrap_Clipboard_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29352 | { (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS, NULL }, | |
29353 | { (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29354 | { (char *)"delete_ClipboardLocker", (PyCFunction) _wrap_delete_ClipboardLocker, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29355 | { (char *)"ClipboardLocker___nonzero__", (PyCFunction) _wrap_ClipboardLocker___nonzero__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29356 | { (char *)"ClipboardLocker_swigregister", ClipboardLocker_swigregister, METH_VARARGS, NULL }, | |
29357 | { (char *)"new_VideoMode", (PyCFunction) _wrap_new_VideoMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29358 | { (char *)"delete_VideoMode", (PyCFunction) _wrap_delete_VideoMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29359 | { (char *)"VideoMode_Matches", (PyCFunction) _wrap_VideoMode_Matches, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29360 | { (char *)"VideoMode_GetWidth", (PyCFunction) _wrap_VideoMode_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29361 | { (char *)"VideoMode_GetHeight", (PyCFunction) _wrap_VideoMode_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29362 | { (char *)"VideoMode_GetDepth", (PyCFunction) _wrap_VideoMode_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29363 | { (char *)"VideoMode_IsOk", (PyCFunction) _wrap_VideoMode_IsOk, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29364 | { (char *)"VideoMode___eq__", (PyCFunction) _wrap_VideoMode___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29365 | { (char *)"VideoMode___ne__", (PyCFunction) _wrap_VideoMode___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29366 | { (char *)"VideoMode_w_set", (PyCFunction) _wrap_VideoMode_w_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29367 | { (char *)"VideoMode_w_get", (PyCFunction) _wrap_VideoMode_w_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29368 | { (char *)"VideoMode_h_set", (PyCFunction) _wrap_VideoMode_h_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29369 | { (char *)"VideoMode_h_get", (PyCFunction) _wrap_VideoMode_h_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29370 | { (char *)"VideoMode_bpp_set", (PyCFunction) _wrap_VideoMode_bpp_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29371 | { (char *)"VideoMode_bpp_get", (PyCFunction) _wrap_VideoMode_bpp_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29372 | { (char *)"VideoMode_refresh_set", (PyCFunction) _wrap_VideoMode_refresh_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29373 | { (char *)"VideoMode_refresh_get", (PyCFunction) _wrap_VideoMode_refresh_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29374 | { (char *)"VideoMode_swigregister", VideoMode_swigregister, METH_VARARGS, NULL }, | |
29375 | { (char *)"new_Display", (PyCFunction) _wrap_new_Display, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29376 | { (char *)"delete_Display", (PyCFunction) _wrap_delete_Display, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29377 | { (char *)"Display_GetCount", (PyCFunction) _wrap_Display_GetCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29378 | { (char *)"Display_GetFromPoint", (PyCFunction) _wrap_Display_GetFromPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29379 | { (char *)"Display_GetFromWindow", (PyCFunction) _wrap_Display_GetFromWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29380 | { (char *)"Display_IsOk", (PyCFunction) _wrap_Display_IsOk, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29381 | { (char *)"Display_GetGeometry", (PyCFunction) _wrap_Display_GetGeometry, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29382 | { (char *)"Display_GetName", (PyCFunction) _wrap_Display_GetName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29383 | { (char *)"Display_IsPrimary", (PyCFunction) _wrap_Display_IsPrimary, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29384 | { (char *)"Display_GetModes", (PyCFunction) _wrap_Display_GetModes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29385 | { (char *)"Display_GetCurrentMode", (PyCFunction) _wrap_Display_GetCurrentMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29386 | { (char *)"Display_ChangeMode", (PyCFunction) _wrap_Display_ChangeMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29387 | { (char *)"Display_ResetMode", (PyCFunction) _wrap_Display_ResetMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29388 | { (char *)"Display_swigregister", Display_swigregister, METH_VARARGS, NULL }, | |
29389 | { NULL, NULL, 0, NULL } | |
d55e5bfc RD |
29390 | }; |
29391 | ||
29392 | ||
29393 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
29394 | ||
29395 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
29396 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
29397 | } | |
29398 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
29399 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
29400 | } | |
29401 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
29402 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
29403 | } | |
29404 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
29405 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
29406 | } | |
29407 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
29408 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
29409 | } | |
29410 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
29411 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
29412 | } | |
29413 | static void *_p_wxTimerEventTo_p_wxEvent(void *x) { | |
29414 | return (void *)((wxEvent *) ((wxTimerEvent *) x)); | |
29415 | } | |
29416 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
29417 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
29418 | } | |
29419 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
29420 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
29421 | } | |
29422 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
29423 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
29424 | } | |
29425 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
29426 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
29427 | } | |
29428 | static void *_p_wxJoystickEventTo_p_wxEvent(void *x) { | |
29429 | return (void *)((wxEvent *) ((wxJoystickEvent *) x)); | |
29430 | } | |
29431 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
29432 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
29433 | } | |
29434 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
29435 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
29436 | } | |
29437 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
29438 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
29439 | } | |
29440 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
29441 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
29442 | } | |
29443 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
29444 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
29445 | } | |
29446 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
29447 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
29448 | } | |
29449 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
29450 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
29451 | } | |
29452 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
29453 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
29454 | } | |
29455 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
29456 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
29457 | } | |
29458 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
29459 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
29460 | } | |
29461 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
29462 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
29463 | } | |
29464 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
29465 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
29466 | } | |
29467 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
29468 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
29469 | } | |
29470 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
29471 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
29472 | } | |
29473 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
29474 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
29475 | } | |
29476 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
29477 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
29478 | } | |
29479 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
29480 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
29481 | } | |
29482 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
29483 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
29484 | } | |
29485 | static void *_p_wxProcessEventTo_p_wxEvent(void *x) { | |
29486 | return (void *)((wxEvent *) ((wxProcessEvent *) x)); | |
29487 | } | |
29488 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
29489 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
29490 | } | |
29491 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
29492 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
29493 | } | |
29494 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
29495 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
29496 | } | |
29497 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
29498 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
29499 | } | |
29500 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
29501 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
29502 | } | |
29503 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
29504 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
29505 | } | |
29506 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
29507 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
29508 | } | |
29509 | static void *_p_wxFileConfigTo_p_wxConfigBase(void *x) { | |
29510 | return (void *)((wxConfigBase *) ((wxFileConfig *) x)); | |
29511 | } | |
29512 | static void *_p_wxConfigTo_p_wxConfigBase(void *x) { | |
29513 | return (void *)((wxConfigBase *) ((wxConfig *) x)); | |
29514 | } | |
29515 | static void *_p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject(void *x) { | |
29516 | return (void *)((wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
29517 | } | |
29518 | static void *_p_wxPyTextDataObjectTo_p_wxTextDataObject(void *x) { | |
29519 | return (void *)((wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
29520 | } | |
29521 | static void *_p_wxDataObjectSimpleTo_p_wxDataObject(void *x) { | |
29522 | return (void *)((wxDataObject *) ((wxDataObjectSimple *) x)); | |
29523 | } | |
29524 | static void *_p_wxPyDataObjectSimpleTo_p_wxDataObject(void *x) { | |
29525 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxPyDataObjectSimple *) x)); | |
29526 | } | |
29527 | static void *_p_wxDataObjectCompositeTo_p_wxDataObject(void *x) { | |
29528 | return (void *)((wxDataObject *) ((wxDataObjectComposite *) x)); | |
29529 | } | |
29530 | static void *_p_wxTextDataObjectTo_p_wxDataObject(void *x) { | |
29531 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxTextDataObject *) x)); | |
29532 | } | |
29533 | static void *_p_wxPyTextDataObjectTo_p_wxDataObject(void *x) { | |
29534 | return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
29535 | } | |
29536 | static void *_p_wxBitmapDataObjectTo_p_wxDataObject(void *x) { | |
29537 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxBitmapDataObject *) x)); | |
29538 | } | |
29539 | static void *_p_wxPyBitmapDataObjectTo_p_wxDataObject(void *x) { | |
29540 | return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
29541 | } | |
29542 | static void *_p_wxFileDataObjectTo_p_wxDataObject(void *x) { | |
29543 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxFileDataObject *) x)); | |
29544 | } | |
29545 | static void *_p_wxCustomDataObjectTo_p_wxDataObject(void *x) { | |
29546 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxCustomDataObject *) x)); | |
29547 | } | |
29548 | static void *_p_wxURLDataObjectTo_p_wxDataObject(void *x) { | |
29549 | return (void *)((wxDataObject *) (wxDataObjectComposite *) ((wxURLDataObject *) x)); | |
29550 | } | |
29551 | static void *_p_wxMetafileDataObjectTo_p_wxDataObject(void *x) { | |
29552 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxMetafileDataObject *) x)); | |
29553 | } | |
29554 | static void *_p_wxURLDataObjectTo_p_wxDataObjectComposite(void *x) { | |
29555 | return (void *)((wxDataObjectComposite *) ((wxURLDataObject *) x)); | |
29556 | } | |
29557 | static void *_p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple(void *x) { | |
29558 | return (void *)((wxDataObjectSimple *) ((wxPyDataObjectSimple *) x)); | |
29559 | } | |
29560 | static void *_p_wxTextDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29561 | return (void *)((wxDataObjectSimple *) ((wxTextDataObject *) x)); | |
29562 | } | |
29563 | static void *_p_wxPyTextDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29564 | return (void *)((wxDataObjectSimple *) (wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
29565 | } | |
29566 | static void *_p_wxBitmapDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29567 | return (void *)((wxDataObjectSimple *) ((wxBitmapDataObject *) x)); | |
29568 | } | |
29569 | static void *_p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29570 | return (void *)((wxDataObjectSimple *) (wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
29571 | } | |
29572 | static void *_p_wxFileDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29573 | return (void *)((wxDataObjectSimple *) ((wxFileDataObject *) x)); | |
29574 | } | |
29575 | static void *_p_wxCustomDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29576 | return (void *)((wxDataObjectSimple *) ((wxCustomDataObject *) x)); | |
29577 | } | |
29578 | static void *_p_wxMetafileDataObjectTo_p_wxDataObjectSimple(void *x) { | |
29579 | return (void *)((wxDataObjectSimple *) ((wxMetafileDataObject *) x)); | |
29580 | } | |
29581 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
29582 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
29583 | } | |
29584 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
29585 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
29586 | } | |
29587 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
29588 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
29589 | } | |
29590 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
29591 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
29592 | } | |
29593 | static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) { | |
29594 | return (void *)((wxEvtHandler *) ((wxPyTimer *) x)); | |
29595 | } | |
29596 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
29597 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
29598 | } | |
29599 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
29600 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
29601 | } | |
29602 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
29603 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
29604 | } | |
29605 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
29606 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
29607 | } | |
29608 | static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) { | |
29609 | return (void *)((wxEvtHandler *) ((wxPyProcess *) x)); | |
29610 | } | |
29611 | static void *_p_wxPyTipProviderTo_p_wxTipProvider(void *x) { | |
29612 | return (void *)((wxTipProvider *) ((wxPyTipProvider *) x)); | |
29613 | } | |
29614 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
29615 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
29616 | } | |
29617 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
29618 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
29619 | } | |
29620 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
29621 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
29622 | } | |
29623 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
29624 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
29625 | } | |
29626 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
29627 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
29628 | } | |
29629 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
29630 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
29631 | } | |
29632 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
29633 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
29634 | } | |
29635 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
29636 | return (void *)((wxObject *) ((wxSizer *) x)); | |
29637 | } | |
29638 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
29639 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
29640 | } | |
29641 | static void *_p_wxFileHistoryTo_p_wxObject(void *x) { | |
29642 | return (void *)((wxObject *) ((wxFileHistory *) x)); | |
29643 | } | |
29644 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
29645 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
29646 | } | |
29647 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
29648 | return (void *)((wxObject *) ((wxEvent *) x)); | |
29649 | } | |
29650 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
29651 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
29652 | } | |
29653 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
29654 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
29655 | } | |
29656 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
29657 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
29658 | } | |
29659 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
29660 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
29661 | } | |
29662 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
29663 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
29664 | } | |
29665 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
29666 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
29667 | } | |
29668 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
29669 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
29670 | } | |
29671 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
29672 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
29673 | } | |
29674 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
29675 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
29676 | } | |
29677 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
29678 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
29679 | } | |
29680 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
29681 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
29682 | } | |
29683 | static void *_p_wxTimerEventTo_p_wxObject(void *x) { | |
29684 | return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x)); | |
29685 | } | |
29686 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
29687 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
29688 | } | |
29689 | static void *_p_wxClipboardTo_p_wxObject(void *x) { | |
29690 | return (void *)((wxObject *) ((wxClipboard *) x)); | |
29691 | } | |
29692 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
29693 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
29694 | } | |
29695 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
29696 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
29697 | } | |
29698 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
29699 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
29700 | } | |
29701 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
29702 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
29703 | } | |
29704 | static void *_p_wxToolTipTo_p_wxObject(void *x) { | |
29705 | return (void *)((wxObject *) ((wxToolTip *) x)); | |
29706 | } | |
29707 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
29708 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
29709 | } | |
29710 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
29711 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
29712 | } | |
29713 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
29714 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
29715 | } | |
29716 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
29717 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
29718 | } | |
29719 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
29720 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
29721 | } | |
29722 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
29723 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
29724 | } | |
29725 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
29726 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
29727 | } | |
29728 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
29729 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
29730 | } | |
29731 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
29732 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
29733 | } | |
29734 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
29735 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
29736 | } | |
29737 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
29738 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
29739 | } | |
29740 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
29741 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
29742 | } | |
29743 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
29744 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
29745 | } | |
29746 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
29747 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
29748 | } | |
29749 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
29750 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
29751 | } | |
29752 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
29753 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
29754 | } | |
29755 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
29756 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
29757 | } | |
29758 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
29759 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
29760 | } | |
29761 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
29762 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
29763 | } | |
29764 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
29765 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
29766 | } | |
29767 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
29768 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
29769 | } | |
29770 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
29771 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
29772 | } | |
29773 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
29774 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
29775 | } | |
29776 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
29777 | return (void *)((wxObject *) ((wxImage *) x)); | |
29778 | } | |
29779 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
29780 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
29781 | } | |
29782 | static void *_p_wxSystemOptionsTo_p_wxObject(void *x) { | |
29783 | return (void *)((wxObject *) ((wxSystemOptions *) x)); | |
29784 | } | |
29785 | static void *_p_wxJoystickEventTo_p_wxObject(void *x) { | |
29786 | return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x)); | |
29787 | } | |
29788 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
29789 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
29790 | } | |
29791 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
29792 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
29793 | } | |
29794 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
29795 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
29796 | } | |
29797 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
29798 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
29799 | } | |
29800 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
29801 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
29802 | } | |
29803 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
29804 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
29805 | } | |
29806 | static void *_p_wxPyProcessTo_p_wxObject(void *x) { | |
29807 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x)); | |
29808 | } | |
29809 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
29810 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
29811 | } | |
29812 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
29813 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
29814 | } | |
29815 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
29816 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
29817 | } | |
29818 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
29819 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
29820 | } | |
29821 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
29822 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
29823 | } | |
29824 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
29825 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
29826 | } | |
29827 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
29828 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
29829 | } | |
29830 | static void *_p_wxBusyInfoTo_p_wxObject(void *x) { | |
29831 | return (void *)((wxObject *) ((wxBusyInfo *) x)); | |
29832 | } | |
29833 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
29834 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
29835 | } | |
29836 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
29837 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
29838 | } | |
29839 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
29840 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
29841 | } | |
29842 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
29843 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
29844 | } | |
29845 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
29846 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
29847 | } | |
29848 | static void *_p_wxProcessEventTo_p_wxObject(void *x) { | |
29849 | return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x)); | |
29850 | } | |
29851 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
29852 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
29853 | } | |
29854 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
29855 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
29856 | } | |
29857 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
29858 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
29859 | } | |
29860 | static void *_p_wxPyTimerTo_p_wxObject(void *x) { | |
29861 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x)); | |
29862 | } | |
29863 | static void *_p_wxLogStderrTo_p_wxLog(void *x) { | |
29864 | return (void *)((wxLog *) ((wxLogStderr *) x)); | |
29865 | } | |
29866 | static void *_p_wxLogTextCtrlTo_p_wxLog(void *x) { | |
29867 | return (void *)((wxLog *) ((wxLogTextCtrl *) x)); | |
29868 | } | |
29869 | static void *_p_wxLogWindowTo_p_wxLog(void *x) { | |
29870 | return (void *)((wxLog *) ((wxLogWindow *) x)); | |
29871 | } | |
29872 | static void *_p_wxLogChainTo_p_wxLog(void *x) { | |
29873 | return (void *)((wxLog *) ((wxLogChain *) x)); | |
29874 | } | |
29875 | static void *_p_wxLogGuiTo_p_wxLog(void *x) { | |
29876 | return (void *)((wxLog *) ((wxLogGui *) x)); | |
29877 | } | |
29878 | static void *_p_wxPyLogTo_p_wxLog(void *x) { | |
29879 | return (void *)((wxLog *) ((wxPyLog *) x)); | |
29880 | } | |
29881 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
29882 | return (void *)((wxWindow *) ((wxControl *) x)); | |
29883 | } | |
29884 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
29885 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
29886 | } | |
29887 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
29888 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
29889 | } | |
29890 | static void *_p_wxPyTextDropTargetTo_p_wxPyDropTarget(void *x) { | |
29891 | return (void *)((wxPyDropTarget *) ((wxPyTextDropTarget *) x)); | |
29892 | } | |
29893 | static void *_p_wxPyFileDropTargetTo_p_wxPyDropTarget(void *x) { | |
29894 | return (void *)((wxPyDropTarget *) ((wxPyFileDropTarget *) x)); | |
29895 | } | |
29896 | 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}}; | |
29897 | 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}}; | |
29898 | 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}}; | |
29899 | 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}}; | |
29900 | 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}}; | |
29901 | 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}}; | |
29902 | 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}}; | |
29903 | 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}}; | |
29904 | 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}}; | |
29905 | 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}}; | |
29906 | 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}}; | |
29907 | 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}}; | |
29908 | 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}}; | |
29909 | 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}}; | |
29910 | 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}}; | |
29911 | 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}}; | |
29912 | 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}}; | |
29913 | 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}}; | |
29914 | 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}}; | |
29915 | 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}}; | |
29916 | 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}}; | |
29917 | 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}}; | |
29918 | 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}}; | |
29919 | 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}}; | |
29920 | 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}}; | |
29921 | 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}}; | |
29922 | static swig_type_info _swigt__p_wxBusyCursor[] = {{"_p_wxBusyCursor", 0, "wxBusyCursor *", 0, 0, 0, 0},{"_p_wxBusyCursor", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
b1f29bf7 | 29923 | 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 |
29924 | 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}}; |
29925 | 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}}; | |
29926 | 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}}; | |
29927 | 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 |
29928 | 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}}; |
29929 | 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}}; | |
29930 | 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}}; | |
29931 | 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}}; | |
29932 | 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}}; | |
29933 | 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}}; | |
29934 | 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}}; | |
29935 | 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}}; | |
29936 | 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}}; | |
29937 | 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}}; | |
29938 | 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}}; | |
29939 | 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}}; | |
29940 | 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}}; | |
29941 | 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}}; | |
29942 | 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}}; | |
29943 | 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}}; | |
29944 | 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}}; | |
29945 | 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}}; | |
29946 | 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}}; | |
29947 | 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}}; | |
29948 | 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}}; | |
29949 | 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}}; | |
29950 | 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}}; | |
29951 | 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}}; | |
29952 | 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}}; | |
29953 | 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}}; | |
29954 | 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}}; | |
29955 | 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}}; | |
29956 | 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}}; | |
29957 | 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}}; | |
29958 | 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}}; | |
29959 | 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}}; | |
29960 | 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}}; | |
29961 | 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}}; | |
29962 | 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}}; | |
29963 | 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}}; | |
29964 | 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}}; | |
29965 | 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}}; | |
29966 | 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}}; | |
29967 | 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}}; | |
29968 | 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}}; | |
29969 | 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}}; | |
29970 | 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}}; | |
29971 | 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}}; | |
29972 | 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}}; | |
29973 | 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}}; | |
29974 | 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}}; | |
29975 | 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}}; | |
29976 | 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}}; | |
29977 | 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}}; | |
29978 | 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 |
29979 | 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}}; |
29980 | 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}}; | |
29981 | 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}}; | |
29982 | ||
29983 | static swig_type_info *swig_types_initial[] = { | |
29984 | _swigt__p_wxLogChain, | |
29985 | _swigt__p_wxMutexGuiLocker, | |
29986 | _swigt__p_wxMetafile, | |
29987 | _swigt__p_wxFileHistory, | |
29988 | _swigt__p_wxLog, | |
29989 | _swigt__p_wxDateTime__TimeZone, | |
29990 | _swigt__p_wxMenu, | |
29991 | _swigt__p_wxEvent, | |
29992 | _swigt__p_wxConfigBase, | |
29993 | _swigt__p_wxDisplay, | |
29994 | _swigt__p_wxFileType, | |
29995 | _swigt__p_wxLogGui, | |
29996 | _swigt__p_wxFont, | |
29997 | _swigt__p_wxDataFormat, | |
29998 | _swigt__p_wxTimerEvent, | |
29999 | _swigt__p_wxCaret, | |
30000 | _swigt__p_int, | |
30001 | _swigt__p_wxSize, | |
30002 | _swigt__p_wxClipboard, | |
30003 | _swigt__p_wxStopWatch, | |
30004 | _swigt__p_wxDC, | |
30005 | _swigt__p_wxClipboardLocker, | |
30006 | _swigt__p_wxIcon, | |
30007 | _swigt__p_wxLogStderr, | |
30008 | _swigt__p_wxLogTextCtrl, | |
30009 | _swigt__p_wxTextCtrl, | |
30010 | _swigt__p_wxBusyCursor, | |
b1f29bf7 | 30011 | _swigt__p_wxPyBitmapDataObject, |
d55e5bfc RD |
30012 | _swigt__p_wxPyTextDataObject, |
30013 | _swigt__p_wxBitmapDataObject, | |
30014 | _swigt__p_wxTextDataObject, | |
30015 | _swigt__p_wxDataObject, | |
d55e5bfc RD |
30016 | _swigt__p_wxFileDataObject, |
30017 | _swigt__p_wxCustomDataObject, | |
30018 | _swigt__p_wxURLDataObject, | |
30019 | _swigt__p_wxMetafileDataObject, | |
30020 | _swigt__p_wxSound, | |
30021 | _swigt__p_wxTimerRunner, | |
30022 | _swigt__p_wxLogWindow, | |
30023 | _swigt__p_wxTimeSpan, | |
30024 | _swigt__p_wxArrayString, | |
30025 | _swigt__p_wxWindowDisabler, | |
30026 | _swigt__p_wxToolTip, | |
30027 | _swigt__p_wxDataObjectComposite, | |
30028 | _swigt__p_wxFileConfig, | |
30029 | _swigt__p_wxSystemSettings, | |
30030 | _swigt__p_wxVideoMode, | |
30031 | _swigt__p_wxPyDataObjectSimple, | |
30032 | _swigt__p_wxDataObjectSimple, | |
30033 | _swigt__p_wxEvtHandler, | |
30034 | _swigt__p_wxRect, | |
30035 | _swigt__p_char, | |
30036 | _swigt__p_wxSingleInstanceChecker, | |
30037 | _swigt__p_wxFileTypeInfo, | |
30038 | _swigt__p_wxFrame, | |
30039 | _swigt__p_wxTimer, | |
30040 | _swigt__p_wxMimeTypesManager, | |
30041 | _swigt__p_wxPyArtProvider, | |
30042 | _swigt__p_wxPyTipProvider, | |
30043 | _swigt__p_wxTipProvider, | |
30044 | _swigt__p_wxJoystick, | |
30045 | _swigt__p_wxSystemOptions, | |
30046 | _swigt__p_wxPoint, | |
30047 | _swigt__p_wxJoystickEvent, | |
30048 | _swigt__p_wxCursor, | |
30049 | _swigt__p_wxObject, | |
30050 | _swigt__p_wxOutputStream, | |
30051 | _swigt__p_wxDateTime, | |
30052 | _swigt__p_wxPyDropSource, | |
30053 | _swigt__p_wxWindow, | |
30054 | _swigt__p_wxString, | |
30055 | _swigt__p_wxPyProcess, | |
30056 | _swigt__p_wxBitmap, | |
30057 | _swigt__p_wxConfig, | |
30058 | _swigt__p_wxChar, | |
30059 | _swigt__p_wxBusyInfo, | |
30060 | _swigt__p_wxPyDropTarget, | |
30061 | _swigt__p_wxPyTextDropTarget, | |
30062 | _swigt__p_wxPyFileDropTarget, | |
30063 | _swigt__p_wxProcessEvent, | |
30064 | _swigt__p_wxPyLog, | |
30065 | _swigt__p_wxLogNull, | |
30066 | _swigt__p_wxColour, | |
d55e5bfc RD |
30067 | _swigt__p_wxConfigPathChanger, |
30068 | _swigt__p_wxPyTimer, | |
30069 | _swigt__p_wxDateSpan, | |
30070 | 0 | |
30071 | }; | |
30072 | ||
30073 | ||
30074 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
30075 | ||
30076 | static swig_const_info swig_const_table[] = { | |
30077 | { SWIG_PY_POINTER, (char*)"TRACE_MemAlloc", 0, 0, (void *)"memalloc", &SWIGTYPE_p_char}, | |
30078 | { SWIG_PY_POINTER, (char*)"TRACE_Messages", 0, 0, (void *)"messages", &SWIGTYPE_p_char}, | |
30079 | { SWIG_PY_POINTER, (char*)"TRACE_ResAlloc", 0, 0, (void *)"resalloc", &SWIGTYPE_p_char}, | |
30080 | { SWIG_PY_POINTER, (char*)"TRACE_RefCount", 0, 0, (void *)"refcount", &SWIGTYPE_p_char}, | |
30081 | { SWIG_PY_POINTER, (char*)"TRACE_OleCalls", 0, 0, (void *)"ole", &SWIGTYPE_p_char}, | |
c32bde28 | 30082 | {0, 0, 0, 0.0, 0, 0}}; |
d55e5bfc RD |
30083 | |
30084 | #ifdef __cplusplus | |
30085 | } | |
30086 | #endif | |
30087 | ||
30088 | #ifdef __cplusplus | |
30089 | extern "C" | |
30090 | #endif | |
30091 | SWIGEXPORT(void) SWIG_init(void) { | |
30092 | static PyObject *SWIG_globals = 0; | |
30093 | static int typeinit = 0; | |
30094 | PyObject *m, *d; | |
30095 | int i; | |
30096 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
30097 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
30098 | d = PyModule_GetDict(m); | |
30099 | ||
30100 | if (!typeinit) { | |
30101 | for (i = 0; swig_types_initial[i]; i++) { | |
30102 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
30103 | } | |
30104 | typeinit = 1; | |
30105 | } | |
30106 | SWIG_InstallConstants(d,swig_const_table); | |
30107 | ||
c32bde28 RD |
30108 | PyDict_SetItemString(d,"SYS_OEM_FIXED_FONT", SWIG_From_int((int)wxSYS_OEM_FIXED_FONT)); |
30109 | PyDict_SetItemString(d,"SYS_ANSI_FIXED_FONT", SWIG_From_int((int)wxSYS_ANSI_FIXED_FONT)); | |
30110 | PyDict_SetItemString(d,"SYS_ANSI_VAR_FONT", SWIG_From_int((int)wxSYS_ANSI_VAR_FONT)); | |
30111 | PyDict_SetItemString(d,"SYS_SYSTEM_FONT", SWIG_From_int((int)wxSYS_SYSTEM_FONT)); | |
30112 | PyDict_SetItemString(d,"SYS_DEVICE_DEFAULT_FONT", SWIG_From_int((int)wxSYS_DEVICE_DEFAULT_FONT)); | |
30113 | PyDict_SetItemString(d,"SYS_DEFAULT_PALETTE", SWIG_From_int((int)wxSYS_DEFAULT_PALETTE)); | |
30114 | PyDict_SetItemString(d,"SYS_SYSTEM_FIXED_FONT", SWIG_From_int((int)wxSYS_SYSTEM_FIXED_FONT)); | |
30115 | PyDict_SetItemString(d,"SYS_DEFAULT_GUI_FONT", SWIG_From_int((int)wxSYS_DEFAULT_GUI_FONT)); | |
30116 | PyDict_SetItemString(d,"SYS_ICONTITLE_FONT", SWIG_From_int((int)wxSYS_ICONTITLE_FONT)); | |
30117 | PyDict_SetItemString(d,"SYS_COLOUR_SCROLLBAR", SWIG_From_int((int)wxSYS_COLOUR_SCROLLBAR)); | |
30118 | PyDict_SetItemString(d,"SYS_COLOUR_BACKGROUND", SWIG_From_int((int)wxSYS_COLOUR_BACKGROUND)); | |
30119 | PyDict_SetItemString(d,"SYS_COLOUR_DESKTOP", SWIG_From_int((int)wxSYS_COLOUR_DESKTOP)); | |
30120 | PyDict_SetItemString(d,"SYS_COLOUR_ACTIVECAPTION", SWIG_From_int((int)wxSYS_COLOUR_ACTIVECAPTION)); | |
30121 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTION", SWIG_From_int((int)wxSYS_COLOUR_INACTIVECAPTION)); | |
30122 | PyDict_SetItemString(d,"SYS_COLOUR_MENU", SWIG_From_int((int)wxSYS_COLOUR_MENU)); | |
30123 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOW", SWIG_From_int((int)wxSYS_COLOUR_WINDOW)); | |
30124 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOWFRAME", SWIG_From_int((int)wxSYS_COLOUR_WINDOWFRAME)); | |
30125 | PyDict_SetItemString(d,"SYS_COLOUR_MENUTEXT", SWIG_From_int((int)wxSYS_COLOUR_MENUTEXT)); | |
30126 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOWTEXT", SWIG_From_int((int)wxSYS_COLOUR_WINDOWTEXT)); | |
30127 | PyDict_SetItemString(d,"SYS_COLOUR_CAPTIONTEXT", SWIG_From_int((int)wxSYS_COLOUR_CAPTIONTEXT)); | |
30128 | PyDict_SetItemString(d,"SYS_COLOUR_ACTIVEBORDER", SWIG_From_int((int)wxSYS_COLOUR_ACTIVEBORDER)); | |
30129 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVEBORDER", SWIG_From_int((int)wxSYS_COLOUR_INACTIVEBORDER)); | |
30130 | PyDict_SetItemString(d,"SYS_COLOUR_APPWORKSPACE", SWIG_From_int((int)wxSYS_COLOUR_APPWORKSPACE)); | |
30131 | PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHT", SWIG_From_int((int)wxSYS_COLOUR_HIGHLIGHT)); | |
30132 | PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHTTEXT", SWIG_From_int((int)wxSYS_COLOUR_HIGHLIGHTTEXT)); | |
30133 | PyDict_SetItemString(d,"SYS_COLOUR_BTNFACE", SWIG_From_int((int)wxSYS_COLOUR_BTNFACE)); | |
30134 | PyDict_SetItemString(d,"SYS_COLOUR_3DFACE", SWIG_From_int((int)wxSYS_COLOUR_3DFACE)); | |
30135 | PyDict_SetItemString(d,"SYS_COLOUR_BTNSHADOW", SWIG_From_int((int)wxSYS_COLOUR_BTNSHADOW)); | |
30136 | PyDict_SetItemString(d,"SYS_COLOUR_3DSHADOW", SWIG_From_int((int)wxSYS_COLOUR_3DSHADOW)); | |
30137 | PyDict_SetItemString(d,"SYS_COLOUR_GRAYTEXT", SWIG_From_int((int)wxSYS_COLOUR_GRAYTEXT)); | |
30138 | PyDict_SetItemString(d,"SYS_COLOUR_BTNTEXT", SWIG_From_int((int)wxSYS_COLOUR_BTNTEXT)); | |
30139 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTIONTEXT", SWIG_From_int((int)wxSYS_COLOUR_INACTIVECAPTIONTEXT)); | |
30140 | PyDict_SetItemString(d,"SYS_COLOUR_BTNHIGHLIGHT", SWIG_From_int((int)wxSYS_COLOUR_BTNHIGHLIGHT)); | |
30141 | PyDict_SetItemString(d,"SYS_COLOUR_BTNHILIGHT", SWIG_From_int((int)wxSYS_COLOUR_BTNHILIGHT)); | |
30142 | PyDict_SetItemString(d,"SYS_COLOUR_3DHIGHLIGHT", SWIG_From_int((int)wxSYS_COLOUR_3DHIGHLIGHT)); | |
30143 | PyDict_SetItemString(d,"SYS_COLOUR_3DHILIGHT", SWIG_From_int((int)wxSYS_COLOUR_3DHILIGHT)); | |
30144 | PyDict_SetItemString(d,"SYS_COLOUR_3DDKSHADOW", SWIG_From_int((int)wxSYS_COLOUR_3DDKSHADOW)); | |
30145 | PyDict_SetItemString(d,"SYS_COLOUR_3DLIGHT", SWIG_From_int((int)wxSYS_COLOUR_3DLIGHT)); | |
30146 | PyDict_SetItemString(d,"SYS_COLOUR_INFOTEXT", SWIG_From_int((int)wxSYS_COLOUR_INFOTEXT)); | |
30147 | PyDict_SetItemString(d,"SYS_COLOUR_INFOBK", SWIG_From_int((int)wxSYS_COLOUR_INFOBK)); | |
30148 | PyDict_SetItemString(d,"SYS_COLOUR_LISTBOX", SWIG_From_int((int)wxSYS_COLOUR_LISTBOX)); | |
30149 | PyDict_SetItemString(d,"SYS_COLOUR_HOTLIGHT", SWIG_From_int((int)wxSYS_COLOUR_HOTLIGHT)); | |
30150 | PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTACTIVECAPTION", SWIG_From_int((int)wxSYS_COLOUR_GRADIENTACTIVECAPTION)); | |
30151 | PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTINACTIVECAPTION", SWIG_From_int((int)wxSYS_COLOUR_GRADIENTINACTIVECAPTION)); | |
30152 | PyDict_SetItemString(d,"SYS_COLOUR_MENUHILIGHT", SWIG_From_int((int)wxSYS_COLOUR_MENUHILIGHT)); | |
30153 | PyDict_SetItemString(d,"SYS_COLOUR_MENUBAR", SWIG_From_int((int)wxSYS_COLOUR_MENUBAR)); | |
30154 | PyDict_SetItemString(d,"SYS_COLOUR_MAX", SWIG_From_int((int)wxSYS_COLOUR_MAX)); | |
30155 | PyDict_SetItemString(d,"SYS_MOUSE_BUTTONS", SWIG_From_int((int)wxSYS_MOUSE_BUTTONS)); | |
30156 | PyDict_SetItemString(d,"SYS_BORDER_X", SWIG_From_int((int)wxSYS_BORDER_X)); | |
30157 | PyDict_SetItemString(d,"SYS_BORDER_Y", SWIG_From_int((int)wxSYS_BORDER_Y)); | |
30158 | PyDict_SetItemString(d,"SYS_CURSOR_X", SWIG_From_int((int)wxSYS_CURSOR_X)); | |
30159 | PyDict_SetItemString(d,"SYS_CURSOR_Y", SWIG_From_int((int)wxSYS_CURSOR_Y)); | |
30160 | PyDict_SetItemString(d,"SYS_DCLICK_X", SWIG_From_int((int)wxSYS_DCLICK_X)); | |
30161 | PyDict_SetItemString(d,"SYS_DCLICK_Y", SWIG_From_int((int)wxSYS_DCLICK_Y)); | |
30162 | PyDict_SetItemString(d,"SYS_DRAG_X", SWIG_From_int((int)wxSYS_DRAG_X)); | |
30163 | PyDict_SetItemString(d,"SYS_DRAG_Y", SWIG_From_int((int)wxSYS_DRAG_Y)); | |
30164 | PyDict_SetItemString(d,"SYS_EDGE_X", SWIG_From_int((int)wxSYS_EDGE_X)); | |
30165 | PyDict_SetItemString(d,"SYS_EDGE_Y", SWIG_From_int((int)wxSYS_EDGE_Y)); | |
30166 | PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_X", SWIG_From_int((int)wxSYS_HSCROLL_ARROW_X)); | |
30167 | PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_Y", SWIG_From_int((int)wxSYS_HSCROLL_ARROW_Y)); | |
30168 | PyDict_SetItemString(d,"SYS_HTHUMB_X", SWIG_From_int((int)wxSYS_HTHUMB_X)); | |
30169 | PyDict_SetItemString(d,"SYS_ICON_X", SWIG_From_int((int)wxSYS_ICON_X)); | |
30170 | PyDict_SetItemString(d,"SYS_ICON_Y", SWIG_From_int((int)wxSYS_ICON_Y)); | |
30171 | PyDict_SetItemString(d,"SYS_ICONSPACING_X", SWIG_From_int((int)wxSYS_ICONSPACING_X)); | |
30172 | PyDict_SetItemString(d,"SYS_ICONSPACING_Y", SWIG_From_int((int)wxSYS_ICONSPACING_Y)); | |
30173 | PyDict_SetItemString(d,"SYS_WINDOWMIN_X", SWIG_From_int((int)wxSYS_WINDOWMIN_X)); | |
30174 | PyDict_SetItemString(d,"SYS_WINDOWMIN_Y", SWIG_From_int((int)wxSYS_WINDOWMIN_Y)); | |
30175 | PyDict_SetItemString(d,"SYS_SCREEN_X", SWIG_From_int((int)wxSYS_SCREEN_X)); | |
30176 | PyDict_SetItemString(d,"SYS_SCREEN_Y", SWIG_From_int((int)wxSYS_SCREEN_Y)); | |
30177 | PyDict_SetItemString(d,"SYS_FRAMESIZE_X", SWIG_From_int((int)wxSYS_FRAMESIZE_X)); | |
30178 | PyDict_SetItemString(d,"SYS_FRAMESIZE_Y", SWIG_From_int((int)wxSYS_FRAMESIZE_Y)); | |
30179 | PyDict_SetItemString(d,"SYS_SMALLICON_X", SWIG_From_int((int)wxSYS_SMALLICON_X)); | |
30180 | PyDict_SetItemString(d,"SYS_SMALLICON_Y", SWIG_From_int((int)wxSYS_SMALLICON_Y)); | |
30181 | PyDict_SetItemString(d,"SYS_HSCROLL_Y", SWIG_From_int((int)wxSYS_HSCROLL_Y)); | |
30182 | PyDict_SetItemString(d,"SYS_VSCROLL_X", SWIG_From_int((int)wxSYS_VSCROLL_X)); | |
30183 | PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_X", SWIG_From_int((int)wxSYS_VSCROLL_ARROW_X)); | |
30184 | PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_Y", SWIG_From_int((int)wxSYS_VSCROLL_ARROW_Y)); | |
30185 | PyDict_SetItemString(d,"SYS_VTHUMB_Y", SWIG_From_int((int)wxSYS_VTHUMB_Y)); | |
30186 | PyDict_SetItemString(d,"SYS_CAPTION_Y", SWIG_From_int((int)wxSYS_CAPTION_Y)); | |
30187 | PyDict_SetItemString(d,"SYS_MENU_Y", SWIG_From_int((int)wxSYS_MENU_Y)); | |
30188 | PyDict_SetItemString(d,"SYS_NETWORK_PRESENT", SWIG_From_int((int)wxSYS_NETWORK_PRESENT)); | |
30189 | PyDict_SetItemString(d,"SYS_PENWINDOWS_PRESENT", SWIG_From_int((int)wxSYS_PENWINDOWS_PRESENT)); | |
30190 | PyDict_SetItemString(d,"SYS_SHOW_SOUNDS", SWIG_From_int((int)wxSYS_SHOW_SOUNDS)); | |
30191 | PyDict_SetItemString(d,"SYS_SWAP_BUTTONS", SWIG_From_int((int)wxSYS_SWAP_BUTTONS)); | |
30192 | PyDict_SetItemString(d,"SYS_CAN_DRAW_FRAME_DECORATIONS", SWIG_From_int((int)wxSYS_CAN_DRAW_FRAME_DECORATIONS)); | |
30193 | PyDict_SetItemString(d,"SYS_CAN_ICONIZE_FRAME", SWIG_From_int((int)wxSYS_CAN_ICONIZE_FRAME)); | |
30194 | PyDict_SetItemString(d,"SYS_SCREEN_NONE", SWIG_From_int((int)wxSYS_SCREEN_NONE)); | |
30195 | PyDict_SetItemString(d,"SYS_SCREEN_TINY", SWIG_From_int((int)wxSYS_SCREEN_TINY)); | |
30196 | PyDict_SetItemString(d,"SYS_SCREEN_PDA", SWIG_From_int((int)wxSYS_SCREEN_PDA)); | |
30197 | PyDict_SetItemString(d,"SYS_SCREEN_SMALL", SWIG_From_int((int)wxSYS_SCREEN_SMALL)); | |
30198 | PyDict_SetItemString(d,"SYS_SCREEN_DESKTOP", SWIG_From_int((int)wxSYS_SCREEN_DESKTOP)); | |
d55e5bfc | 30199 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
7e63a440 | 30200 | SWIG_addvarlink(SWIG_globals,(char*)"WINDOW_DEFAULT_VARIANT",_wrap_WINDOW_DEFAULT_VARIANT_get, _wrap_WINDOW_DEFAULT_VARIANT_set); |
d55e5bfc RD |
30201 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set); |
30202 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set); | |
30203 | SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set); | |
c32bde28 RD |
30204 | PyDict_SetItemString(d,"SHUTDOWN_POWEROFF", SWIG_From_int((int)wxSHUTDOWN_POWEROFF)); |
30205 | PyDict_SetItemString(d,"SHUTDOWN_REBOOT", SWIG_From_int((int)wxSHUTDOWN_REBOOT)); | |
30206 | PyDict_SetItemString(d,"TIMER_CONTINUOUS", SWIG_From_int((int)wxTIMER_CONTINUOUS)); | |
30207 | PyDict_SetItemString(d,"TIMER_ONE_SHOT", SWIG_From_int((int)wxTIMER_ONE_SHOT)); | |
d55e5bfc | 30208 | PyDict_SetItemString(d, "wxEVT_TIMER", PyInt_FromLong(wxEVT_TIMER)); |
1a6bba1e RD |
30209 | |
30210 | wxPyPtrTypeMap_Add("wxTimer", "wxPyTimer"); | |
30211 | ||
c32bde28 RD |
30212 | PyDict_SetItemString(d,"LOG_FatalError", SWIG_From_int((int)wxLOG_FatalError)); |
30213 | PyDict_SetItemString(d,"LOG_Error", SWIG_From_int((int)wxLOG_Error)); | |
30214 | PyDict_SetItemString(d,"LOG_Warning", SWIG_From_int((int)wxLOG_Warning)); | |
30215 | PyDict_SetItemString(d,"LOG_Message", SWIG_From_int((int)wxLOG_Message)); | |
30216 | PyDict_SetItemString(d,"LOG_Status", SWIG_From_int((int)wxLOG_Status)); | |
30217 | PyDict_SetItemString(d,"LOG_Info", SWIG_From_int((int)wxLOG_Info)); | |
30218 | PyDict_SetItemString(d,"LOG_Debug", SWIG_From_int((int)wxLOG_Debug)); | |
30219 | PyDict_SetItemString(d,"LOG_Trace", SWIG_From_int((int)wxLOG_Trace)); | |
30220 | PyDict_SetItemString(d,"LOG_Progress", SWIG_From_int((int)wxLOG_Progress)); | |
30221 | PyDict_SetItemString(d,"LOG_User", SWIG_From_int((int)wxLOG_User)); | |
30222 | PyDict_SetItemString(d,"LOG_Max", SWIG_From_int((int)wxLOG_Max)); | |
d55e5bfc RD |
30223 | PyDict_SetItemString(d,"TRACE_MemAlloc", SWIG_FromCharPtr("memalloc")); |
30224 | PyDict_SetItemString(d,"TRACE_Messages", SWIG_FromCharPtr("messages")); | |
30225 | PyDict_SetItemString(d,"TRACE_ResAlloc", SWIG_FromCharPtr("resalloc")); | |
30226 | PyDict_SetItemString(d,"TRACE_RefCount", SWIG_FromCharPtr("refcount")); | |
30227 | PyDict_SetItemString(d,"TRACE_OleCalls", SWIG_FromCharPtr("ole")); | |
c32bde28 RD |
30228 | PyDict_SetItemString(d,"TraceMemAlloc", SWIG_From_int((int)0x0001)); |
30229 | PyDict_SetItemString(d,"TraceMessages", SWIG_From_int((int)0x0002)); | |
30230 | PyDict_SetItemString(d,"TraceResAlloc", SWIG_From_int((int)0x0004)); | |
30231 | PyDict_SetItemString(d,"TraceRefCount", SWIG_From_int((int)0x0008)); | |
30232 | PyDict_SetItemString(d,"TraceOleCalls", SWIG_From_int((int)0x0100)); | |
30233 | PyDict_SetItemString(d,"PROCESS_DEFAULT", SWIG_From_int((int)wxPROCESS_DEFAULT)); | |
30234 | PyDict_SetItemString(d,"PROCESS_REDIRECT", SWIG_From_int((int)wxPROCESS_REDIRECT)); | |
30235 | PyDict_SetItemString(d,"KILL_OK", SWIG_From_int((int)wxKILL_OK)); | |
30236 | PyDict_SetItemString(d,"KILL_BAD_SIGNAL", SWIG_From_int((int)wxKILL_BAD_SIGNAL)); | |
30237 | PyDict_SetItemString(d,"KILL_ACCESS_DENIED", SWIG_From_int((int)wxKILL_ACCESS_DENIED)); | |
30238 | PyDict_SetItemString(d,"KILL_NO_PROCESS", SWIG_From_int((int)wxKILL_NO_PROCESS)); | |
30239 | PyDict_SetItemString(d,"KILL_ERROR", SWIG_From_int((int)wxKILL_ERROR)); | |
30240 | PyDict_SetItemString(d,"SIGNONE", SWIG_From_int((int)wxSIGNONE)); | |
30241 | PyDict_SetItemString(d,"SIGHUP", SWIG_From_int((int)wxSIGHUP)); | |
30242 | PyDict_SetItemString(d,"SIGINT", SWIG_From_int((int)wxSIGINT)); | |
30243 | PyDict_SetItemString(d,"SIGQUIT", SWIG_From_int((int)wxSIGQUIT)); | |
30244 | PyDict_SetItemString(d,"SIGILL", SWIG_From_int((int)wxSIGILL)); | |
30245 | PyDict_SetItemString(d,"SIGTRAP", SWIG_From_int((int)wxSIGTRAP)); | |
30246 | PyDict_SetItemString(d,"SIGABRT", SWIG_From_int((int)wxSIGABRT)); | |
30247 | PyDict_SetItemString(d,"SIGIOT", SWIG_From_int((int)wxSIGIOT)); | |
30248 | PyDict_SetItemString(d,"SIGEMT", SWIG_From_int((int)wxSIGEMT)); | |
30249 | PyDict_SetItemString(d,"SIGFPE", SWIG_From_int((int)wxSIGFPE)); | |
30250 | PyDict_SetItemString(d,"SIGKILL", SWIG_From_int((int)wxSIGKILL)); | |
30251 | PyDict_SetItemString(d,"SIGBUS", SWIG_From_int((int)wxSIGBUS)); | |
30252 | PyDict_SetItemString(d,"SIGSEGV", SWIG_From_int((int)wxSIGSEGV)); | |
30253 | PyDict_SetItemString(d,"SIGSYS", SWIG_From_int((int)wxSIGSYS)); | |
30254 | PyDict_SetItemString(d,"SIGPIPE", SWIG_From_int((int)wxSIGPIPE)); | |
30255 | PyDict_SetItemString(d,"SIGALRM", SWIG_From_int((int)wxSIGALRM)); | |
30256 | PyDict_SetItemString(d,"SIGTERM", SWIG_From_int((int)wxSIGTERM)); | |
d55e5bfc | 30257 | PyDict_SetItemString(d, "wxEVT_END_PROCESS", PyInt_FromLong(wxEVT_END_PROCESS)); |
c32bde28 RD |
30258 | PyDict_SetItemString(d,"EXEC_ASYNC", SWIG_From_int((int)wxEXEC_ASYNC)); |
30259 | PyDict_SetItemString(d,"EXEC_SYNC", SWIG_From_int((int)wxEXEC_SYNC)); | |
30260 | PyDict_SetItemString(d,"EXEC_NOHIDE", SWIG_From_int((int)wxEXEC_NOHIDE)); | |
30261 | PyDict_SetItemString(d,"EXEC_MAKE_GROUP_LEADER", SWIG_From_int((int)wxEXEC_MAKE_GROUP_LEADER)); | |
d55e5bfc RD |
30262 | |
30263 | wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess"); | |
30264 | ||
c32bde28 RD |
30265 | PyDict_SetItemString(d,"JOYSTICK1", SWIG_From_int((int)wxJOYSTICK1)); |
30266 | PyDict_SetItemString(d,"JOYSTICK2", SWIG_From_int((int)wxJOYSTICK2)); | |
30267 | PyDict_SetItemString(d,"JOY_BUTTON_ANY", SWIG_From_int((int)wxJOY_BUTTON_ANY)); | |
30268 | PyDict_SetItemString(d,"JOY_BUTTON1", SWIG_From_int((int)wxJOY_BUTTON1)); | |
30269 | PyDict_SetItemString(d,"JOY_BUTTON2", SWIG_From_int((int)wxJOY_BUTTON2)); | |
30270 | PyDict_SetItemString(d,"JOY_BUTTON3", SWIG_From_int((int)wxJOY_BUTTON3)); | |
30271 | PyDict_SetItemString(d,"JOY_BUTTON4", SWIG_From_int((int)wxJOY_BUTTON4)); | |
d55e5bfc RD |
30272 | PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong(wxEVT_JOY_BUTTON_DOWN)); |
30273 | PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_UP", PyInt_FromLong(wxEVT_JOY_BUTTON_UP)); | |
30274 | PyDict_SetItemString(d, "wxEVT_JOY_MOVE", PyInt_FromLong(wxEVT_JOY_MOVE)); | |
30275 | PyDict_SetItemString(d, "wxEVT_JOY_ZMOVE", PyInt_FromLong(wxEVT_JOY_ZMOVE)); | |
c32bde28 RD |
30276 | PyDict_SetItemString(d,"SOUND_SYNC", SWIG_From_int((int)wxSOUND_SYNC)); |
30277 | PyDict_SetItemString(d,"SOUND_ASYNC", SWIG_From_int((int)wxSOUND_ASYNC)); | |
30278 | PyDict_SetItemString(d,"SOUND_LOOP", SWIG_From_int((int)wxSOUND_LOOP)); | |
30279 | PyDict_SetItemString(d,"MAILCAP_STANDARD", SWIG_From_int((int)wxMAILCAP_STANDARD)); | |
30280 | PyDict_SetItemString(d,"MAILCAP_NETSCAPE", SWIG_From_int((int)wxMAILCAP_NETSCAPE)); | |
30281 | PyDict_SetItemString(d,"MAILCAP_KDE", SWIG_From_int((int)wxMAILCAP_KDE)); | |
30282 | PyDict_SetItemString(d,"MAILCAP_GNOME", SWIG_From_int((int)wxMAILCAP_GNOME)); | |
30283 | PyDict_SetItemString(d,"MAILCAP_ALL", SWIG_From_int((int)wxMAILCAP_ALL)); | |
d55e5bfc RD |
30284 | SWIG_addvarlink(SWIG_globals,(char*)"TheMimeTypesManager",_wrap_TheMimeTypesManager_get, _wrap_TheMimeTypesManager_set); |
30285 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TOOLBAR",_wrap_ART_TOOLBAR_get, _wrap_ART_TOOLBAR_set); | |
30286 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MENU",_wrap_ART_MENU_get, _wrap_ART_MENU_set); | |
30287 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FRAME_ICON",_wrap_ART_FRAME_ICON_get, _wrap_ART_FRAME_ICON_set); | |
30288 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CMN_DIALOG",_wrap_ART_CMN_DIALOG_get, _wrap_ART_CMN_DIALOG_set); | |
30289 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BROWSER",_wrap_ART_HELP_BROWSER_get, _wrap_ART_HELP_BROWSER_set); | |
30290 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MESSAGE_BOX",_wrap_ART_MESSAGE_BOX_get, _wrap_ART_MESSAGE_BOX_set); | |
4cf4100f | 30291 | SWIG_addvarlink(SWIG_globals,(char*)"ART_BUTTON",_wrap_ART_BUTTON_get, _wrap_ART_BUTTON_set); |
d55e5bfc RD |
30292 | SWIG_addvarlink(SWIG_globals,(char*)"ART_OTHER",_wrap_ART_OTHER_get, _wrap_ART_OTHER_set); |
30293 | SWIG_addvarlink(SWIG_globals,(char*)"ART_ADD_BOOKMARK",_wrap_ART_ADD_BOOKMARK_get, _wrap_ART_ADD_BOOKMARK_set); | |
30294 | SWIG_addvarlink(SWIG_globals,(char*)"ART_DEL_BOOKMARK",_wrap_ART_DEL_BOOKMARK_get, _wrap_ART_DEL_BOOKMARK_set); | |
30295 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SIDE_PANEL",_wrap_ART_HELP_SIDE_PANEL_get, _wrap_ART_HELP_SIDE_PANEL_set); | |
30296 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SETTINGS",_wrap_ART_HELP_SETTINGS_get, _wrap_ART_HELP_SETTINGS_set); | |
30297 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BOOK",_wrap_ART_HELP_BOOK_get, _wrap_ART_HELP_BOOK_set); | |
30298 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_FOLDER",_wrap_ART_HELP_FOLDER_get, _wrap_ART_HELP_FOLDER_set); | |
30299 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_PAGE",_wrap_ART_HELP_PAGE_get, _wrap_ART_HELP_PAGE_set); | |
30300 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_BACK",_wrap_ART_GO_BACK_get, _wrap_ART_GO_BACK_set); | |
30301 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_FORWARD",_wrap_ART_GO_FORWARD_get, _wrap_ART_GO_FORWARD_set); | |
30302 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_UP",_wrap_ART_GO_UP_get, _wrap_ART_GO_UP_set); | |
30303 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DOWN",_wrap_ART_GO_DOWN_get, _wrap_ART_GO_DOWN_set); | |
30304 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_TO_PARENT",_wrap_ART_GO_TO_PARENT_get, _wrap_ART_GO_TO_PARENT_set); | |
30305 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_HOME",_wrap_ART_GO_HOME_get, _wrap_ART_GO_HOME_set); | |
30306 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_OPEN",_wrap_ART_FILE_OPEN_get, _wrap_ART_FILE_OPEN_set); | |
30307 | SWIG_addvarlink(SWIG_globals,(char*)"ART_PRINT",_wrap_ART_PRINT_get, _wrap_ART_PRINT_set); | |
30308 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP",_wrap_ART_HELP_get, _wrap_ART_HELP_set); | |
30309 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TIP",_wrap_ART_TIP_get, _wrap_ART_TIP_set); | |
30310 | SWIG_addvarlink(SWIG_globals,(char*)"ART_REPORT_VIEW",_wrap_ART_REPORT_VIEW_get, _wrap_ART_REPORT_VIEW_set); | |
30311 | SWIG_addvarlink(SWIG_globals,(char*)"ART_LIST_VIEW",_wrap_ART_LIST_VIEW_get, _wrap_ART_LIST_VIEW_set); | |
30312 | SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW_DIR",_wrap_ART_NEW_DIR_get, _wrap_ART_NEW_DIR_set); | |
30313 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER",_wrap_ART_FOLDER_get, _wrap_ART_FOLDER_set); | |
30314 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DIR_UP",_wrap_ART_GO_DIR_UP_get, _wrap_ART_GO_DIR_UP_set); | |
30315 | SWIG_addvarlink(SWIG_globals,(char*)"ART_EXECUTABLE_FILE",_wrap_ART_EXECUTABLE_FILE_get, _wrap_ART_EXECUTABLE_FILE_set); | |
30316 | SWIG_addvarlink(SWIG_globals,(char*)"ART_NORMAL_FILE",_wrap_ART_NORMAL_FILE_get, _wrap_ART_NORMAL_FILE_set); | |
30317 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TICK_MARK",_wrap_ART_TICK_MARK_get, _wrap_ART_TICK_MARK_set); | |
30318 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CROSS_MARK",_wrap_ART_CROSS_MARK_get, _wrap_ART_CROSS_MARK_set); | |
30319 | SWIG_addvarlink(SWIG_globals,(char*)"ART_ERROR",_wrap_ART_ERROR_get, _wrap_ART_ERROR_set); | |
30320 | SWIG_addvarlink(SWIG_globals,(char*)"ART_QUESTION",_wrap_ART_QUESTION_get, _wrap_ART_QUESTION_set); | |
30321 | SWIG_addvarlink(SWIG_globals,(char*)"ART_WARNING",_wrap_ART_WARNING_get, _wrap_ART_WARNING_set); | |
30322 | SWIG_addvarlink(SWIG_globals,(char*)"ART_INFORMATION",_wrap_ART_INFORMATION_get, _wrap_ART_INFORMATION_set); | |
30323 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MISSING_IMAGE",_wrap_ART_MISSING_IMAGE_get, _wrap_ART_MISSING_IMAGE_set); | |
30324 | ||
30325 | wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider"); | |
30326 | ||
c32bde28 RD |
30327 | PyDict_SetItemString(d,"CONFIG_USE_LOCAL_FILE", SWIG_From_int((int)wxCONFIG_USE_LOCAL_FILE)); |
30328 | PyDict_SetItemString(d,"CONFIG_USE_GLOBAL_FILE", SWIG_From_int((int)wxCONFIG_USE_GLOBAL_FILE)); | |
30329 | PyDict_SetItemString(d,"CONFIG_USE_RELATIVE_PATH", SWIG_From_int((int)wxCONFIG_USE_RELATIVE_PATH)); | |
30330 | PyDict_SetItemString(d,"CONFIG_USE_NO_ESCAPE_CHARACTERS", SWIG_From_int((int)wxCONFIG_USE_NO_ESCAPE_CHARACTERS)); | |
30331 | PyDict_SetItemString(d,"ConfigBase_Type_Unknown", SWIG_From_int((int)wxConfigBase::Type_Unknown)); | |
30332 | PyDict_SetItemString(d,"ConfigBase_Type_String", SWIG_From_int((int)wxConfigBase::Type_String)); | |
30333 | PyDict_SetItemString(d,"ConfigBase_Type_Boolean", SWIG_From_int((int)wxConfigBase::Type_Boolean)); | |
30334 | PyDict_SetItemString(d,"ConfigBase_Type_Integer", SWIG_From_int((int)wxConfigBase::Type_Integer)); | |
30335 | PyDict_SetItemString(d,"ConfigBase_Type_Float", SWIG_From_int((int)wxConfigBase::Type_Float)); | |
d55e5bfc RD |
30336 | SWIG_addvarlink(SWIG_globals,(char*)"DateFormatStr",_wrap_DateFormatStr_get, _wrap_DateFormatStr_set); |
30337 | SWIG_addvarlink(SWIG_globals,(char*)"TimeSpanFormatStr",_wrap_TimeSpanFormatStr_get, _wrap_TimeSpanFormatStr_set); | |
c32bde28 RD |
30338 | PyDict_SetItemString(d,"DateTime_Local", SWIG_From_int((int)wxDateTime::Local)); |
30339 | PyDict_SetItemString(d,"DateTime_GMT_12", SWIG_From_int((int)wxDateTime::GMT_12)); | |
30340 | PyDict_SetItemString(d,"DateTime_GMT_11", SWIG_From_int((int)wxDateTime::GMT_11)); | |
30341 | PyDict_SetItemString(d,"DateTime_GMT_10", SWIG_From_int((int)wxDateTime::GMT_10)); | |
30342 | PyDict_SetItemString(d,"DateTime_GMT_9", SWIG_From_int((int)wxDateTime::GMT_9)); | |
30343 | PyDict_SetItemString(d,"DateTime_GMT_8", SWIG_From_int((int)wxDateTime::GMT_8)); | |
30344 | PyDict_SetItemString(d,"DateTime_GMT_7", SWIG_From_int((int)wxDateTime::GMT_7)); | |
30345 | PyDict_SetItemString(d,"DateTime_GMT_6", SWIG_From_int((int)wxDateTime::GMT_6)); | |
30346 | PyDict_SetItemString(d,"DateTime_GMT_5", SWIG_From_int((int)wxDateTime::GMT_5)); | |
30347 | PyDict_SetItemString(d,"DateTime_GMT_4", SWIG_From_int((int)wxDateTime::GMT_4)); | |
30348 | PyDict_SetItemString(d,"DateTime_GMT_3", SWIG_From_int((int)wxDateTime::GMT_3)); | |
30349 | PyDict_SetItemString(d,"DateTime_GMT_2", SWIG_From_int((int)wxDateTime::GMT_2)); | |
30350 | PyDict_SetItemString(d,"DateTime_GMT_1", SWIG_From_int((int)wxDateTime::GMT_1)); | |
30351 | PyDict_SetItemString(d,"DateTime_GMT0", SWIG_From_int((int)wxDateTime::GMT0)); | |
30352 | PyDict_SetItemString(d,"DateTime_GMT1", SWIG_From_int((int)wxDateTime::GMT1)); | |
30353 | PyDict_SetItemString(d,"DateTime_GMT2", SWIG_From_int((int)wxDateTime::GMT2)); | |
30354 | PyDict_SetItemString(d,"DateTime_GMT3", SWIG_From_int((int)wxDateTime::GMT3)); | |
30355 | PyDict_SetItemString(d,"DateTime_GMT4", SWIG_From_int((int)wxDateTime::GMT4)); | |
30356 | PyDict_SetItemString(d,"DateTime_GMT5", SWIG_From_int((int)wxDateTime::GMT5)); | |
30357 | PyDict_SetItemString(d,"DateTime_GMT6", SWIG_From_int((int)wxDateTime::GMT6)); | |
30358 | PyDict_SetItemString(d,"DateTime_GMT7", SWIG_From_int((int)wxDateTime::GMT7)); | |
30359 | PyDict_SetItemString(d,"DateTime_GMT8", SWIG_From_int((int)wxDateTime::GMT8)); | |
30360 | PyDict_SetItemString(d,"DateTime_GMT9", SWIG_From_int((int)wxDateTime::GMT9)); | |
30361 | PyDict_SetItemString(d,"DateTime_GMT10", SWIG_From_int((int)wxDateTime::GMT10)); | |
30362 | PyDict_SetItemString(d,"DateTime_GMT11", SWIG_From_int((int)wxDateTime::GMT11)); | |
30363 | PyDict_SetItemString(d,"DateTime_GMT12", SWIG_From_int((int)wxDateTime::GMT12)); | |
30364 | PyDict_SetItemString(d,"DateTime_WET", SWIG_From_int((int)wxDateTime::WET)); | |
30365 | PyDict_SetItemString(d,"DateTime_WEST", SWIG_From_int((int)wxDateTime::WEST)); | |
30366 | PyDict_SetItemString(d,"DateTime_CET", SWIG_From_int((int)wxDateTime::CET)); | |
30367 | PyDict_SetItemString(d,"DateTime_CEST", SWIG_From_int((int)wxDateTime::CEST)); | |
30368 | PyDict_SetItemString(d,"DateTime_EET", SWIG_From_int((int)wxDateTime::EET)); | |
30369 | PyDict_SetItemString(d,"DateTime_EEST", SWIG_From_int((int)wxDateTime::EEST)); | |
30370 | PyDict_SetItemString(d,"DateTime_MSK", SWIG_From_int((int)wxDateTime::MSK)); | |
30371 | PyDict_SetItemString(d,"DateTime_MSD", SWIG_From_int((int)wxDateTime::MSD)); | |
30372 | PyDict_SetItemString(d,"DateTime_AST", SWIG_From_int((int)wxDateTime::AST)); | |
30373 | PyDict_SetItemString(d,"DateTime_ADT", SWIG_From_int((int)wxDateTime::ADT)); | |
30374 | PyDict_SetItemString(d,"DateTime_EST", SWIG_From_int((int)wxDateTime::EST)); | |
30375 | PyDict_SetItemString(d,"DateTime_EDT", SWIG_From_int((int)wxDateTime::EDT)); | |
30376 | PyDict_SetItemString(d,"DateTime_CST", SWIG_From_int((int)wxDateTime::CST)); | |
30377 | PyDict_SetItemString(d,"DateTime_CDT", SWIG_From_int((int)wxDateTime::CDT)); | |
30378 | PyDict_SetItemString(d,"DateTime_MST", SWIG_From_int((int)wxDateTime::MST)); | |
30379 | PyDict_SetItemString(d,"DateTime_MDT", SWIG_From_int((int)wxDateTime::MDT)); | |
30380 | PyDict_SetItemString(d,"DateTime_PST", SWIG_From_int((int)wxDateTime::PST)); | |
30381 | PyDict_SetItemString(d,"DateTime_PDT", SWIG_From_int((int)wxDateTime::PDT)); | |
30382 | PyDict_SetItemString(d,"DateTime_HST", SWIG_From_int((int)wxDateTime::HST)); | |
30383 | PyDict_SetItemString(d,"DateTime_AKST", SWIG_From_int((int)wxDateTime::AKST)); | |
30384 | PyDict_SetItemString(d,"DateTime_AKDT", SWIG_From_int((int)wxDateTime::AKDT)); | |
30385 | PyDict_SetItemString(d,"DateTime_A_WST", SWIG_From_int((int)wxDateTime::A_WST)); | |
30386 | PyDict_SetItemString(d,"DateTime_A_CST", SWIG_From_int((int)wxDateTime::A_CST)); | |
30387 | PyDict_SetItemString(d,"DateTime_A_EST", SWIG_From_int((int)wxDateTime::A_EST)); | |
30388 | PyDict_SetItemString(d,"DateTime_A_ESST", SWIG_From_int((int)wxDateTime::A_ESST)); | |
30389 | PyDict_SetItemString(d,"DateTime_UTC", SWIG_From_int((int)wxDateTime::UTC)); | |
30390 | PyDict_SetItemString(d,"DateTime_Gregorian", SWIG_From_int((int)wxDateTime::Gregorian)); | |
30391 | PyDict_SetItemString(d,"DateTime_Julian", SWIG_From_int((int)wxDateTime::Julian)); | |
30392 | PyDict_SetItemString(d,"DateTime_Gr_Unknown", SWIG_From_int((int)wxDateTime::Gr_Unknown)); | |
30393 | PyDict_SetItemString(d,"DateTime_Gr_Standard", SWIG_From_int((int)wxDateTime::Gr_Standard)); | |
30394 | PyDict_SetItemString(d,"DateTime_Gr_Alaska", SWIG_From_int((int)wxDateTime::Gr_Alaska)); | |
30395 | PyDict_SetItemString(d,"DateTime_Gr_Albania", SWIG_From_int((int)wxDateTime::Gr_Albania)); | |
30396 | PyDict_SetItemString(d,"DateTime_Gr_Austria", SWIG_From_int((int)wxDateTime::Gr_Austria)); | |
30397 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Brixen", SWIG_From_int((int)wxDateTime::Gr_Austria_Brixen)); | |
30398 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Salzburg", SWIG_From_int((int)wxDateTime::Gr_Austria_Salzburg)); | |
30399 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Tyrol", SWIG_From_int((int)wxDateTime::Gr_Austria_Tyrol)); | |
30400 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Carinthia", SWIG_From_int((int)wxDateTime::Gr_Austria_Carinthia)); | |
30401 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Styria", SWIG_From_int((int)wxDateTime::Gr_Austria_Styria)); | |
30402 | PyDict_SetItemString(d,"DateTime_Gr_Belgium", SWIG_From_int((int)wxDateTime::Gr_Belgium)); | |
30403 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria", SWIG_From_int((int)wxDateTime::Gr_Bulgaria)); | |
30404 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_1", SWIG_From_int((int)wxDateTime::Gr_Bulgaria_1)); | |
30405 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_2", SWIG_From_int((int)wxDateTime::Gr_Bulgaria_2)); | |
30406 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_3", SWIG_From_int((int)wxDateTime::Gr_Bulgaria_3)); | |
30407 | PyDict_SetItemString(d,"DateTime_Gr_Canada", SWIG_From_int((int)wxDateTime::Gr_Canada)); | |
30408 | PyDict_SetItemString(d,"DateTime_Gr_China", SWIG_From_int((int)wxDateTime::Gr_China)); | |
30409 | PyDict_SetItemString(d,"DateTime_Gr_China_1", SWIG_From_int((int)wxDateTime::Gr_China_1)); | |
30410 | PyDict_SetItemString(d,"DateTime_Gr_China_2", SWIG_From_int((int)wxDateTime::Gr_China_2)); | |
30411 | PyDict_SetItemString(d,"DateTime_Gr_Czechoslovakia", SWIG_From_int((int)wxDateTime::Gr_Czechoslovakia)); | |
30412 | PyDict_SetItemString(d,"DateTime_Gr_Denmark", SWIG_From_int((int)wxDateTime::Gr_Denmark)); | |
30413 | PyDict_SetItemString(d,"DateTime_Gr_Egypt", SWIG_From_int((int)wxDateTime::Gr_Egypt)); | |
30414 | PyDict_SetItemString(d,"DateTime_Gr_Estonia", SWIG_From_int((int)wxDateTime::Gr_Estonia)); | |
30415 | PyDict_SetItemString(d,"DateTime_Gr_Finland", SWIG_From_int((int)wxDateTime::Gr_Finland)); | |
30416 | PyDict_SetItemString(d,"DateTime_Gr_France", SWIG_From_int((int)wxDateTime::Gr_France)); | |
30417 | PyDict_SetItemString(d,"DateTime_Gr_France_Alsace", SWIG_From_int((int)wxDateTime::Gr_France_Alsace)); | |
30418 | PyDict_SetItemString(d,"DateTime_Gr_France_Lorraine", SWIG_From_int((int)wxDateTime::Gr_France_Lorraine)); | |
30419 | PyDict_SetItemString(d,"DateTime_Gr_France_Strasbourg", SWIG_From_int((int)wxDateTime::Gr_France_Strasbourg)); | |
30420 | PyDict_SetItemString(d,"DateTime_Gr_Germany", SWIG_From_int((int)wxDateTime::Gr_Germany)); | |
30421 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Catholic", SWIG_From_int((int)wxDateTime::Gr_Germany_Catholic)); | |
30422 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Prussia", SWIG_From_int((int)wxDateTime::Gr_Germany_Prussia)); | |
30423 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Protestant", SWIG_From_int((int)wxDateTime::Gr_Germany_Protestant)); | |
30424 | PyDict_SetItemString(d,"DateTime_Gr_GreatBritain", SWIG_From_int((int)wxDateTime::Gr_GreatBritain)); | |
30425 | PyDict_SetItemString(d,"DateTime_Gr_Greece", SWIG_From_int((int)wxDateTime::Gr_Greece)); | |
30426 | PyDict_SetItemString(d,"DateTime_Gr_Hungary", SWIG_From_int((int)wxDateTime::Gr_Hungary)); | |
30427 | PyDict_SetItemString(d,"DateTime_Gr_Ireland", SWIG_From_int((int)wxDateTime::Gr_Ireland)); | |
30428 | PyDict_SetItemString(d,"DateTime_Gr_Italy", SWIG_From_int((int)wxDateTime::Gr_Italy)); | |
30429 | PyDict_SetItemString(d,"DateTime_Gr_Japan", SWIG_From_int((int)wxDateTime::Gr_Japan)); | |
30430 | PyDict_SetItemString(d,"DateTime_Gr_Japan_1", SWIG_From_int((int)wxDateTime::Gr_Japan_1)); | |
30431 | PyDict_SetItemString(d,"DateTime_Gr_Japan_2", SWIG_From_int((int)wxDateTime::Gr_Japan_2)); | |
30432 | PyDict_SetItemString(d,"DateTime_Gr_Japan_3", SWIG_From_int((int)wxDateTime::Gr_Japan_3)); | |
30433 | PyDict_SetItemString(d,"DateTime_Gr_Latvia", SWIG_From_int((int)wxDateTime::Gr_Latvia)); | |
30434 | PyDict_SetItemString(d,"DateTime_Gr_Lithuania", SWIG_From_int((int)wxDateTime::Gr_Lithuania)); | |
30435 | PyDict_SetItemString(d,"DateTime_Gr_Luxemburg", SWIG_From_int((int)wxDateTime::Gr_Luxemburg)); | |
30436 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands", SWIG_From_int((int)wxDateTime::Gr_Netherlands)); | |
30437 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Groningen", SWIG_From_int((int)wxDateTime::Gr_Netherlands_Groningen)); | |
30438 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Gelderland", SWIG_From_int((int)wxDateTime::Gr_Netherlands_Gelderland)); | |
30439 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Utrecht", SWIG_From_int((int)wxDateTime::Gr_Netherlands_Utrecht)); | |
30440 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Friesland", SWIG_From_int((int)wxDateTime::Gr_Netherlands_Friesland)); | |
30441 | PyDict_SetItemString(d,"DateTime_Gr_Norway", SWIG_From_int((int)wxDateTime::Gr_Norway)); | |
30442 | PyDict_SetItemString(d,"DateTime_Gr_Poland", SWIG_From_int((int)wxDateTime::Gr_Poland)); | |
30443 | PyDict_SetItemString(d,"DateTime_Gr_Portugal", SWIG_From_int((int)wxDateTime::Gr_Portugal)); | |
30444 | PyDict_SetItemString(d,"DateTime_Gr_Romania", SWIG_From_int((int)wxDateTime::Gr_Romania)); | |
30445 | PyDict_SetItemString(d,"DateTime_Gr_Russia", SWIG_From_int((int)wxDateTime::Gr_Russia)); | |
30446 | PyDict_SetItemString(d,"DateTime_Gr_Scotland", SWIG_From_int((int)wxDateTime::Gr_Scotland)); | |
30447 | PyDict_SetItemString(d,"DateTime_Gr_Spain", SWIG_From_int((int)wxDateTime::Gr_Spain)); | |
30448 | PyDict_SetItemString(d,"DateTime_Gr_Sweden", SWIG_From_int((int)wxDateTime::Gr_Sweden)); | |
30449 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland", SWIG_From_int((int)wxDateTime::Gr_Switzerland)); | |
30450 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Catholic", SWIG_From_int((int)wxDateTime::Gr_Switzerland_Catholic)); | |
30451 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Protestant", SWIG_From_int((int)wxDateTime::Gr_Switzerland_Protestant)); | |
30452 | PyDict_SetItemString(d,"DateTime_Gr_Turkey", SWIG_From_int((int)wxDateTime::Gr_Turkey)); | |
30453 | PyDict_SetItemString(d,"DateTime_Gr_USA", SWIG_From_int((int)wxDateTime::Gr_USA)); | |
30454 | PyDict_SetItemString(d,"DateTime_Gr_Wales", SWIG_From_int((int)wxDateTime::Gr_Wales)); | |
30455 | PyDict_SetItemString(d,"DateTime_Gr_Yugoslavia", SWIG_From_int((int)wxDateTime::Gr_Yugoslavia)); | |
30456 | PyDict_SetItemString(d,"DateTime_Country_Unknown", SWIG_From_int((int)wxDateTime::Country_Unknown)); | |
30457 | PyDict_SetItemString(d,"DateTime_Country_Default", SWIG_From_int((int)wxDateTime::Country_Default)); | |
30458 | PyDict_SetItemString(d,"DateTime_Country_WesternEurope_Start", SWIG_From_int((int)wxDateTime::Country_WesternEurope_Start)); | |
30459 | PyDict_SetItemString(d,"DateTime_Country_EEC", SWIG_From_int((int)wxDateTime::Country_EEC)); | |
30460 | PyDict_SetItemString(d,"DateTime_France", SWIG_From_int((int)wxDateTime::France)); | |
30461 | PyDict_SetItemString(d,"DateTime_Germany", SWIG_From_int((int)wxDateTime::Germany)); | |
30462 | PyDict_SetItemString(d,"DateTime_UK", SWIG_From_int((int)wxDateTime::UK)); | |
30463 | PyDict_SetItemString(d,"DateTime_Country_WesternEurope_End", SWIG_From_int((int)wxDateTime::Country_WesternEurope_End)); | |
30464 | PyDict_SetItemString(d,"DateTime_Russia", SWIG_From_int((int)wxDateTime::Russia)); | |
30465 | PyDict_SetItemString(d,"DateTime_USA", SWIG_From_int((int)wxDateTime::USA)); | |
30466 | PyDict_SetItemString(d,"DateTime_Jan", SWIG_From_int((int)wxDateTime::Jan)); | |
30467 | PyDict_SetItemString(d,"DateTime_Feb", SWIG_From_int((int)wxDateTime::Feb)); | |
30468 | PyDict_SetItemString(d,"DateTime_Mar", SWIG_From_int((int)wxDateTime::Mar)); | |
30469 | PyDict_SetItemString(d,"DateTime_Apr", SWIG_From_int((int)wxDateTime::Apr)); | |
30470 | PyDict_SetItemString(d,"DateTime_May", SWIG_From_int((int)wxDateTime::May)); | |
30471 | PyDict_SetItemString(d,"DateTime_Jun", SWIG_From_int((int)wxDateTime::Jun)); | |
30472 | PyDict_SetItemString(d,"DateTime_Jul", SWIG_From_int((int)wxDateTime::Jul)); | |
30473 | PyDict_SetItemString(d,"DateTime_Aug", SWIG_From_int((int)wxDateTime::Aug)); | |
30474 | PyDict_SetItemString(d,"DateTime_Sep", SWIG_From_int((int)wxDateTime::Sep)); | |
30475 | PyDict_SetItemString(d,"DateTime_Oct", SWIG_From_int((int)wxDateTime::Oct)); | |
30476 | PyDict_SetItemString(d,"DateTime_Nov", SWIG_From_int((int)wxDateTime::Nov)); | |
30477 | PyDict_SetItemString(d,"DateTime_Dec", SWIG_From_int((int)wxDateTime::Dec)); | |
30478 | PyDict_SetItemString(d,"DateTime_Inv_Month", SWIG_From_int((int)wxDateTime::Inv_Month)); | |
30479 | PyDict_SetItemString(d,"DateTime_Sun", SWIG_From_int((int)wxDateTime::Sun)); | |
30480 | PyDict_SetItemString(d,"DateTime_Mon", SWIG_From_int((int)wxDateTime::Mon)); | |
30481 | PyDict_SetItemString(d,"DateTime_Tue", SWIG_From_int((int)wxDateTime::Tue)); | |
30482 | PyDict_SetItemString(d,"DateTime_Wed", SWIG_From_int((int)wxDateTime::Wed)); | |
30483 | PyDict_SetItemString(d,"DateTime_Thu", SWIG_From_int((int)wxDateTime::Thu)); | |
30484 | PyDict_SetItemString(d,"DateTime_Fri", SWIG_From_int((int)wxDateTime::Fri)); | |
30485 | PyDict_SetItemString(d,"DateTime_Sat", SWIG_From_int((int)wxDateTime::Sat)); | |
30486 | PyDict_SetItemString(d,"DateTime_Inv_WeekDay", SWIG_From_int((int)wxDateTime::Inv_WeekDay)); | |
30487 | PyDict_SetItemString(d,"DateTime_Inv_Year", SWIG_From_int((int)wxDateTime::Inv_Year)); | |
30488 | PyDict_SetItemString(d,"DateTime_Name_Full", SWIG_From_int((int)wxDateTime::Name_Full)); | |
30489 | PyDict_SetItemString(d,"DateTime_Name_Abbr", SWIG_From_int((int)wxDateTime::Name_Abbr)); | |
30490 | PyDict_SetItemString(d,"DateTime_Default_First", SWIG_From_int((int)wxDateTime::Default_First)); | |
30491 | PyDict_SetItemString(d,"DateTime_Monday_First", SWIG_From_int((int)wxDateTime::Monday_First)); | |
30492 | PyDict_SetItemString(d,"DateTime_Sunday_First", SWIG_From_int((int)wxDateTime::Sunday_First)); | |
d55e5bfc | 30493 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultDateTime",_wrap_DefaultDateTime_get, _wrap_DefaultDateTime_set); |
c32bde28 RD |
30494 | PyDict_SetItemString(d,"DF_INVALID", SWIG_From_int((int)wxDF_INVALID)); |
30495 | PyDict_SetItemString(d,"DF_TEXT", SWIG_From_int((int)wxDF_TEXT)); | |
30496 | PyDict_SetItemString(d,"DF_BITMAP", SWIG_From_int((int)wxDF_BITMAP)); | |
30497 | PyDict_SetItemString(d,"DF_METAFILE", SWIG_From_int((int)wxDF_METAFILE)); | |
30498 | PyDict_SetItemString(d,"DF_SYLK", SWIG_From_int((int)wxDF_SYLK)); | |
30499 | PyDict_SetItemString(d,"DF_DIF", SWIG_From_int((int)wxDF_DIF)); | |
30500 | PyDict_SetItemString(d,"DF_TIFF", SWIG_From_int((int)wxDF_TIFF)); | |
30501 | PyDict_SetItemString(d,"DF_OEMTEXT", SWIG_From_int((int)wxDF_OEMTEXT)); | |
30502 | PyDict_SetItemString(d,"DF_DIB", SWIG_From_int((int)wxDF_DIB)); | |
30503 | PyDict_SetItemString(d,"DF_PALETTE", SWIG_From_int((int)wxDF_PALETTE)); | |
30504 | PyDict_SetItemString(d,"DF_PENDATA", SWIG_From_int((int)wxDF_PENDATA)); | |
30505 | PyDict_SetItemString(d,"DF_RIFF", SWIG_From_int((int)wxDF_RIFF)); | |
30506 | PyDict_SetItemString(d,"DF_WAVE", SWIG_From_int((int)wxDF_WAVE)); | |
30507 | PyDict_SetItemString(d,"DF_UNICODETEXT", SWIG_From_int((int)wxDF_UNICODETEXT)); | |
30508 | PyDict_SetItemString(d,"DF_ENHMETAFILE", SWIG_From_int((int)wxDF_ENHMETAFILE)); | |
30509 | PyDict_SetItemString(d,"DF_FILENAME", SWIG_From_int((int)wxDF_FILENAME)); | |
30510 | PyDict_SetItemString(d,"DF_LOCALE", SWIG_From_int((int)wxDF_LOCALE)); | |
30511 | PyDict_SetItemString(d,"DF_PRIVATE", SWIG_From_int((int)wxDF_PRIVATE)); | |
30512 | PyDict_SetItemString(d,"DF_HTML", SWIG_From_int((int)wxDF_HTML)); | |
30513 | PyDict_SetItemString(d,"DF_MAX", SWIG_From_int((int)wxDF_MAX)); | |
d55e5bfc | 30514 | SWIG_addvarlink(SWIG_globals,(char*)"FormatInvalid",_wrap_FormatInvalid_get, _wrap_FormatInvalid_set); |
c32bde28 RD |
30515 | PyDict_SetItemString(d,"DataObject_Get", SWIG_From_int((int)wxDataObject::Get)); |
30516 | PyDict_SetItemString(d,"DataObject_Set", SWIG_From_int((int)wxDataObject::Set)); | |
30517 | PyDict_SetItemString(d,"DataObject_Both", SWIG_From_int((int)wxDataObject::Both)); | |
30518 | PyDict_SetItemString(d,"Drag_CopyOnly", SWIG_From_int((int)wxDrag_CopyOnly)); | |
30519 | PyDict_SetItemString(d,"Drag_AllowMove", SWIG_From_int((int)wxDrag_AllowMove)); | |
30520 | PyDict_SetItemString(d,"Drag_DefaultMove", SWIG_From_int((int)wxDrag_DefaultMove)); | |
30521 | PyDict_SetItemString(d,"DragError", SWIG_From_int((int)wxDragError)); | |
30522 | PyDict_SetItemString(d,"DragNone", SWIG_From_int((int)wxDragNone)); | |
30523 | PyDict_SetItemString(d,"DragCopy", SWIG_From_int((int)wxDragCopy)); | |
30524 | PyDict_SetItemString(d,"DragMove", SWIG_From_int((int)wxDragMove)); | |
30525 | PyDict_SetItemString(d,"DragLink", SWIG_From_int((int)wxDragLink)); | |
30526 | PyDict_SetItemString(d,"DragCancel", SWIG_From_int((int)wxDragCancel)); | |
d55e5bfc RD |
30527 | |
30528 | wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource"); | |
30529 | wxPyPtrTypeMap_Add("wxDropTarget", "wxPyDropTarget"); | |
30530 | wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget"); | |
30531 | wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget"); | |
30532 | ||
d55e5bfc RD |
30533 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultVideoMode",_wrap_DefaultVideoMode_get, _wrap_DefaultVideoMode_set); |
30534 | } | |
30535 |