]>
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] | |
c9c2cf70 RD |
238 | #define SWIGTYPE_p_wxPyTextDataObject swig_types[27] |
239 | #define SWIGTYPE_p_wxBitmapDataObject swig_types[28] | |
240 | #define SWIGTYPE_p_wxTextDataObject swig_types[29] | |
241 | #define SWIGTYPE_p_wxDataObject swig_types[30] | |
242 | #define SWIGTYPE_p_wxPyBitmapDataObject swig_types[31] | |
d55e5bfc RD |
243 | #define SWIGTYPE_p_wxFileDataObject swig_types[32] |
244 | #define SWIGTYPE_p_wxCustomDataObject swig_types[33] | |
245 | #define SWIGTYPE_p_wxURLDataObject swig_types[34] | |
246 | #define SWIGTYPE_p_wxMetafileDataObject swig_types[35] | |
247 | #define SWIGTYPE_p_wxSound swig_types[36] | |
248 | #define SWIGTYPE_p_wxTimerRunner swig_types[37] | |
249 | #define SWIGTYPE_p_wxLogWindow swig_types[38] | |
250 | #define SWIGTYPE_p_wxTimeSpan swig_types[39] | |
251 | #define SWIGTYPE_p_wxArrayString swig_types[40] | |
252 | #define SWIGTYPE_p_wxWindowDisabler swig_types[41] | |
253 | #define SWIGTYPE_p_wxToolTip swig_types[42] | |
254 | #define SWIGTYPE_p_wxDataObjectComposite swig_types[43] | |
255 | #define SWIGTYPE_p_wxFileConfig swig_types[44] | |
256 | #define SWIGTYPE_p_wxSystemSettings swig_types[45] | |
257 | #define SWIGTYPE_p_wxVideoMode swig_types[46] | |
258 | #define SWIGTYPE_p_wxPyDataObjectSimple swig_types[47] | |
259 | #define SWIGTYPE_p_wxDataObjectSimple swig_types[48] | |
260 | #define SWIGTYPE_p_wxEvtHandler swig_types[49] | |
261 | #define SWIGTYPE_p_wxRect swig_types[50] | |
262 | #define SWIGTYPE_p_char swig_types[51] | |
263 | #define SWIGTYPE_p_wxSingleInstanceChecker swig_types[52] | |
c1cb24a4 RD |
264 | #define SWIGTYPE_p_wxStandardPaths swig_types[53] |
265 | #define SWIGTYPE_p_wxFileTypeInfo swig_types[54] | |
266 | #define SWIGTYPE_p_wxFrame swig_types[55] | |
267 | #define SWIGTYPE_p_wxTimer swig_types[56] | |
268 | #define SWIGTYPE_p_wxMimeTypesManager swig_types[57] | |
269 | #define SWIGTYPE_p_wxPyArtProvider swig_types[58] | |
270 | #define SWIGTYPE_p_wxPyTipProvider swig_types[59] | |
271 | #define SWIGTYPE_p_wxTipProvider swig_types[60] | |
272 | #define SWIGTYPE_p_wxJoystick swig_types[61] | |
273 | #define SWIGTYPE_p_wxSystemOptions swig_types[62] | |
274 | #define SWIGTYPE_p_wxPoint swig_types[63] | |
275 | #define SWIGTYPE_p_wxJoystickEvent swig_types[64] | |
276 | #define SWIGTYPE_p_wxCursor swig_types[65] | |
277 | #define SWIGTYPE_p_wxObject swig_types[66] | |
278 | #define SWIGTYPE_p_wxOutputStream swig_types[67] | |
279 | #define SWIGTYPE_p_wxDateTime swig_types[68] | |
280 | #define SWIGTYPE_p_wxPyDropSource swig_types[69] | |
c9c2cf70 RD |
281 | #define SWIGTYPE_p_wxKillError swig_types[70] |
282 | #define SWIGTYPE_p_wxWindow swig_types[71] | |
283 | #define SWIGTYPE_p_wxString swig_types[72] | |
284 | #define SWIGTYPE_p_wxPyProcess swig_types[73] | |
285 | #define SWIGTYPE_p_wxBitmap swig_types[74] | |
286 | #define SWIGTYPE_p_wxConfig swig_types[75] | |
287 | #define SWIGTYPE_p_wxChar swig_types[76] | |
288 | #define SWIGTYPE_p_wxBusyInfo swig_types[77] | |
289 | #define SWIGTYPE_p_wxPyDropTarget swig_types[78] | |
290 | #define SWIGTYPE_p_wxPyTextDropTarget swig_types[79] | |
291 | #define SWIGTYPE_p_wxPyFileDropTarget swig_types[80] | |
292 | #define SWIGTYPE_p_wxProcessEvent swig_types[81] | |
293 | #define SWIGTYPE_p_wxPyLog swig_types[82] | |
294 | #define SWIGTYPE_p_wxLogNull swig_types[83] | |
295 | #define SWIGTYPE_p_wxColour swig_types[84] | |
296 | #define SWIGTYPE_p_wxConfigPathChanger swig_types[85] | |
297 | #define SWIGTYPE_p_wxPyTimer swig_types[86] | |
298 | #define SWIGTYPE_p_wxDateSpan swig_types[87] | |
299 | static swig_type_info *swig_types[89]; | |
d55e5bfc RD |
300 | |
301 | /* -------- TYPES TABLE (END) -------- */ | |
302 | ||
303 | ||
304 | /*----------------------------------------------- | |
305 | @(target):= _misc_.so | |
306 | ------------------------------------------------*/ | |
307 | #define SWIG_init init_misc_ | |
308 | ||
309 | #define SWIG_name "_misc_" | |
310 | ||
c32bde28 RD |
311 | /* Auxiliar swig macros that appear in the header */ |
312 | ||
313 | #define SWIG_OLDOBJ 1 | |
314 | #define SWIG_NEWOBJ SWIG_OLDOBJ + 1 | |
315 | #define SWIG_PYSTR SWIG_NEWOBJ + 1 | |
d55e5bfc RD |
316 | |
317 | #ifdef __cplusplus | |
318 | #define SWIGSTATICINLINE(a) static inline a | |
319 | #define SWIGSTATIC(a) static a | |
c32bde28 RD |
320 | #define swig_new_array(size,Type) (new Type[(size)]) |
321 | #define swig_delete(cptr) delete cptr | |
d55e5bfc | 322 | #define swig_delete_array(cptr) delete[] cptr |
c32bde28 RD |
323 | #define swig_const_cast(a,Type) const_cast<Type >(a) |
324 | #define swig_static_cast(a,Type) static_cast<Type >(a) | |
325 | #define swig_reinterpret_cast(a,Type) reinterpret_cast<Type >(a) | |
326 | #define swig_new_copy(ptr,Type) (new Type(*ptr)) | |
327 | #define swig_numeric_cast(a,Type) static_cast<Type >(a) | |
d55e5bfc RD |
328 | |
329 | #else /* C case */ | |
330 | ||
331 | #define SWIGSTATICINLINE(a) static a | |
332 | #define SWIGSTATIC(a) static a | |
c32bde28 RD |
333 | #define swig_new_array(size,Type) ((Type*) malloc((size)*sizeof(Type))) |
334 | #define swig_delete(cptr) free((char*)cptr) | |
d55e5bfc | 335 | #define swig_delete_array(cptr) free((char*)cptr) |
c32bde28 RD |
336 | #define swig_const_cast(a,Type) (Type)(a) |
337 | #define swig_static_cast(a,Type) (Type)(a) | |
338 | #define swig_reinterpret_cast(a,Type) (Type)(a) | |
339 | #define swig_numeric_cast(a,Type) (Type)(a) | |
340 | #define swig_new_copy(ptr,Type) ((Type*)memcpy(malloc(sizeof(Type)),ptr,sizeof(Type))) | |
d55e5bfc RD |
341 | |
342 | #endif /* __cplusplus */ | |
343 | ||
344 | ||
c32bde28 RD |
345 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ |
346 | #define SWIG_From_signed_SS_char PyInt_FromLong | |
347 | /*@@*/ | |
348 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ | |
349 | #define SWIG_From_unsigned_SS_char PyInt_FromLong | |
350 | /*@@*/ | |
351 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ | |
352 | #define SWIG_From_short PyInt_FromLong | |
353 | /*@@*/ | |
354 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ | |
355 | #define SWIG_From_unsigned_SS_short PyInt_FromLong | |
356 | /*@@*/ | |
357 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ | |
358 | #define SWIG_From_int PyInt_FromLong | |
359 | /*@@*/ | |
360 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ | |
361 | #define SWIG_From_long PyInt_FromLong | |
362 | /*@@*/ | |
363 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ | |
364 | #define SWIG_From_float PyFloat_FromDouble | |
365 | /*@@*/ | |
366 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ | |
367 | #define SWIG_From_double PyFloat_FromDouble | |
368 | /*@@*/ | |
d55e5bfc RD |
369 | |
370 | ||
371 | #include "wx/wxPython/wxPython.h" | |
372 | #include "wx/wxPython/pyclasses.h" | |
0439c23b | 373 | #include "wx/wxPython/pyistream.h" |
d55e5bfc RD |
374 | |
375 | static const wxString wxPyEmptyString(wxEmptyString); | |
376 | ||
377 | ||
378 | ||
379 | #include <limits.h> | |
380 | ||
381 | ||
c32bde28 RD |
382 | SWIGSTATICINLINE(int) |
383 | SWIG_CheckLongInRange(long value, long min_value, long max_value, | |
384 | const char *errmsg) | |
d55e5bfc | 385 | { |
c32bde28 RD |
386 | if (value < min_value) { |
387 | if (errmsg) { | |
388 | PyErr_Format(PyExc_OverflowError, | |
389 | "value %ld is less than '%s' minimum %ld", | |
390 | value, errmsg, min_value); | |
391 | } | |
392 | return 0; | |
393 | } else if (value > max_value) { | |
394 | if (errmsg) { | |
395 | PyErr_Format(PyExc_OverflowError, | |
396 | "value %ld is greater than '%s' maximum %ld", | |
397 | value, errmsg, max_value); | |
d55e5bfc | 398 | } |
c32bde28 | 399 | return 0; |
d55e5bfc | 400 | } |
c32bde28 | 401 | return 1; |
d55e5bfc RD |
402 | } |
403 | ||
404 | ||
c32bde28 RD |
405 | // See my_fragments.i |
406 | SWIGSTATICINLINE(int) | |
407 | SWIG_AsVal_long(PyObject* obj, long* val) | |
d55e5bfc | 408 | { |
c32bde28 RD |
409 | if (PyNumber_Check(obj)) { |
410 | if (val) *val = PyInt_AsLong(obj); | |
411 | return 1; | |
412 | } | |
d55e5bfc RD |
413 | else { |
414 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
415 | obj->ob_type->tp_name); | |
416 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
417 | Py_DECREF(errmsg); | |
d55e5bfc | 418 | } |
c32bde28 | 419 | return 0; |
d55e5bfc RD |
420 | } |
421 | ||
422 | ||
423 | #if INT_MAX != LONG_MAX | |
424 | SWIGSTATICINLINE(int) | |
c32bde28 | 425 | SWIG_AsVal_int(PyObject *obj, int *val) |
d55e5bfc | 426 | { |
c32bde28 RD |
427 | const char* errmsg = val ? "int" : 0; |
428 | long v; | |
429 | if (SWIG_AsVal_long(obj, &v)) { | |
430 | if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) { | |
431 | if (val) *val = swig_numeric_cast(v, int); | |
432 | return 1; | |
433 | } else { | |
434 | return 0; | |
435 | } | |
436 | } else { | |
437 | PyErr_Clear(); | |
438 | } | |
439 | if (val) { | |
440 | PyErr_SetString(PyExc_TypeError, "an int is expected"); | |
441 | } | |
442 | return 0; | |
d55e5bfc RD |
443 | } |
444 | #else | |
c32bde28 RD |
445 | SWIGSTATICINLINE(int) |
446 | SWIG_AsVal_int(PyObject *obj, int *val) | |
447 | { | |
448 | return SWIG_AsVal_long(obj,(long*)val); | |
449 | } | |
d55e5bfc RD |
450 | #endif |
451 | ||
452 | ||
453 | SWIGSTATICINLINE(int) | |
c32bde28 | 454 | SWIG_As_int(PyObject* obj) |
d55e5bfc | 455 | { |
c32bde28 RD |
456 | int v; |
457 | if (!SWIG_AsVal_int(obj, &v)) { | |
458 | /* | |
459 | this is needed to make valgrind/purify happier. the other | |
460 | solution is throw an exception, but since this code should work | |
461 | with plain C .... | |
462 | */ | |
463 | memset((void*)&v, 0, sizeof(int)); | |
d55e5bfc | 464 | } |
c32bde28 RD |
465 | return v; |
466 | } | |
467 | ||
468 | ||
469 | SWIGSTATICINLINE(int) | |
470 | SWIG_Check_int(PyObject* obj) | |
471 | { | |
472 | return SWIG_AsVal_int(obj, (int*)0); | |
d55e5bfc RD |
473 | } |
474 | ||
7e63a440 | 475 | static const wxString wxPyWINDOW_DEFAULT_VARIANT(wxWINDOW_DEFAULT_VARIANT); |
d1f3a348 RD |
476 | |
477 | #include <wx/stockitem.h> | |
478 | ||
d55e5bfc RD |
479 | static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr); |
480 | static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr); | |
481 | static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr); | |
482 | ||
c32bde28 RD |
483 | SWIGSTATICINLINE(long) |
484 | SWIG_As_long(PyObject* obj) | |
485 | { | |
486 | long v; | |
487 | if (!SWIG_AsVal_long(obj, &v)) { | |
488 | /* | |
489 | this is needed to make valgrind/purify happier. the other | |
490 | solution is throw an exception, but since this code should work | |
491 | with plain C .... | |
492 | */ | |
493 | memset((void*)&v, 0, sizeof(long)); | |
494 | } | |
495 | return v; | |
496 | } | |
497 | ||
498 | ||
d55e5bfc | 499 | SWIGSTATICINLINE(int) |
c32bde28 | 500 | SWIG_Check_long(PyObject* obj) |
d55e5bfc | 501 | { |
c32bde28 RD |
502 | return SWIG_AsVal_long(obj, (long*)0); |
503 | } | |
504 | ||
505 | ||
506 | SWIGSTATICINLINE(int) | |
507 | SWIG_AsVal_bool(PyObject *obj, bool *val) | |
508 | { | |
509 | /* if (val) *val = PyObject_IsTrue(obj); return 1; */ | |
510 | if (obj == Py_True) { | |
511 | if (val) *val = true; | |
512 | return 1; | |
513 | } | |
514 | if (obj == Py_False) { | |
515 | if (val) *val = false; | |
d55e5bfc RD |
516 | return 1; |
517 | } | |
c32bde28 RD |
518 | int res = 0; |
519 | if (SWIG_AsVal_int(obj, &res)) { | |
520 | if (val) *val = (bool)res; | |
521 | return 1; | |
522 | } | |
523 | if (val) { | |
524 | PyErr_SetString(PyExc_TypeError, "a bool is expected"); | |
525 | } | |
526 | return 0; | |
d55e5bfc RD |
527 | } |
528 | ||
529 | ||
530 | SWIGSTATICINLINE(bool) | |
c32bde28 | 531 | SWIG_As_bool(PyObject* obj) |
d55e5bfc | 532 | { |
c32bde28 RD |
533 | bool v; |
534 | if (!SWIG_AsVal_bool(obj, &v)) { | |
535 | /* | |
536 | this is needed to make valgrind/purify happier. the other | |
537 | solution is throw an exception, but since this code should work | |
538 | with plain C .... | |
539 | */ | |
540 | memset((void*)&v, 0, sizeof(bool)); | |
541 | } | |
542 | return v; | |
d55e5bfc RD |
543 | } |
544 | ||
c32bde28 | 545 | |
d55e5bfc | 546 | SWIGSTATICINLINE(int) |
c32bde28 | 547 | SWIG_Check_bool(PyObject* obj) |
d55e5bfc | 548 | { |
c32bde28 | 549 | return SWIG_AsVal_bool(obj, (bool*)0); |
d55e5bfc RD |
550 | } |
551 | ||
552 | ||
c32bde28 | 553 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { |
d55e5bfc RD |
554 | PyObject* o2; |
555 | PyObject* o3; | |
c32bde28 | 556 | |
d55e5bfc RD |
557 | if (!target) { |
558 | target = o; | |
559 | } else if (target == Py_None) { | |
560 | Py_DECREF(Py_None); | |
561 | target = o; | |
7e63a440 RD |
562 | } else { |
563 | if (!PyTuple_Check(target)) { | |
564 | o2 = target; | |
565 | target = PyTuple_New(1); | |
566 | PyTuple_SetItem(target, 0, o2); | |
567 | } | |
d55e5bfc RD |
568 | o3 = PyTuple_New(1); |
569 | PyTuple_SetItem(o3, 0, o); | |
570 | ||
571 | o2 = target; | |
572 | target = PySequence_Concat(o2, o3); | |
573 | Py_DECREF(o2); | |
574 | Py_DECREF(o3); | |
575 | } | |
576 | return target; | |
7e63a440 | 577 | } |
d55e5bfc RD |
578 | |
579 | ||
c32bde28 RD |
580 | |
581 | // See my_fragments.i | |
582 | SWIGSTATICINLINE(int) | |
583 | SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val) | |
d55e5bfc | 584 | { |
c32bde28 RD |
585 | long v = 0; |
586 | if (SWIG_AsVal_long(obj, &v) && v < 0) { | |
587 | PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type"); | |
588 | return 0; | |
d55e5bfc | 589 | } |
c32bde28 RD |
590 | else if (val) |
591 | *val = (unsigned long)v; | |
592 | return 1; | |
d55e5bfc RD |
593 | } |
594 | ||
595 | ||
c32bde28 RD |
596 | SWIGSTATICINLINE(unsigned long) |
597 | SWIG_As_unsigned_SS_long(PyObject* obj) | |
d55e5bfc | 598 | { |
c32bde28 RD |
599 | unsigned long v; |
600 | if (!SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
601 | /* | |
602 | this is needed to make valgrind/purify happier. the other | |
603 | solution is throw an exception, but since this code should work | |
604 | with plain C .... | |
605 | */ | |
606 | memset((void*)&v, 0, sizeof(unsigned long)); | |
d55e5bfc | 607 | } |
c32bde28 RD |
608 | return v; |
609 | } | |
610 | ||
611 | ||
612 | SWIGSTATICINLINE(int) | |
613 | SWIG_Check_unsigned_SS_long(PyObject* obj) | |
614 | { | |
615 | return SWIG_AsVal_unsigned_SS_long(obj, (unsigned long*)0); | |
d55e5bfc RD |
616 | } |
617 | ||
618 | ||
619 | SWIGSTATICINLINE(PyObject* ) | |
c32bde28 | 620 | SWIG_From_unsigned_SS_long(unsigned long value) |
d55e5bfc RD |
621 | { |
622 | return (value > LONG_MAX) ? | |
623 | PyLong_FromUnsignedLong(value) | |
c32bde28 | 624 | : PyInt_FromLong(swig_numeric_cast(value,long)); |
d55e5bfc RD |
625 | } |
626 | ||
627 | ||
628 | bool wxThread_IsMain() { | |
629 | #ifdef WXP_WITH_THREAD | |
630 | return wxThread::IsMain(); | |
631 | #else | |
ae8162c8 | 632 | return true; |
d55e5bfc RD |
633 | #endif |
634 | } | |
635 | ||
636 | ||
637 | int wxCaret_GetBlinkTime() { | |
638 | return wxCaret::GetBlinkTime(); | |
639 | } | |
640 | ||
641 | void wxCaret_SetBlinkTime(int milliseconds) { | |
642 | wxCaret::SetBlinkTime(milliseconds); | |
643 | } | |
644 | ||
645 | ||
646 | #include <wx/snglinst.h> | |
647 | ||
648 | ||
649 | #ifdef __WXMSW__ | |
650 | #include <wx/msw/private.h> | |
651 | #include <wx/dynload.h> | |
652 | #endif | |
653 | ||
654 | ||
655 | ||
656 | void wxDrawWindowOnDC(wxWindow* window, const wxDC& dc, int method) | |
657 | { | |
658 | #ifdef __WXMSW__ | |
659 | ||
660 | switch (method) | |
661 | { | |
662 | case 1: | |
663 | // This one only partially works. Appears to be an undocumented | |
664 | // "standard" convention that not all widgets adhear to. For | |
665 | // example, for some widgets backgrounds or non-client areas may | |
666 | // not be painted. | |
667 | ::SendMessage(GetHwndOf(window), WM_PAINT, (long)GetHdcOf(dc), 0); | |
668 | break; | |
669 | ||
670 | case 2: | |
671 | // This one works much better, except for on XP. On Win2k nearly | |
672 | // all widgets and their children are captured correctly[**]. On | |
673 | // XP with Themes activated most native widgets draw only | |
674 | // partially, if at all. Without themes it works just like on | |
675 | // Win2k. | |
676 | // | |
677 | // ** For example the radio buttons in a wxRadioBox are not its | |
678 | // children by default, but you can capture it via the panel | |
679 | // instead, or change RADIOBTN_PARENT_IS_RADIOBOX in radiobox.cpp. | |
680 | ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc), | |
681 | PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | | |
682 | PRF_ERASEBKGND | PRF_OWNED ); | |
683 | break; | |
684 | ||
685 | case 3: | |
686 | // This one is only defined in the latest SDK and is only | |
687 | // available on XP. MSDN says it is similar to sending WM_PRINT | |
688 | // so I expect that it will work similar to the above. Since it | |
689 | // is avaialble only on XP, it can't be compiled like this and | |
690 | // will have to be loaded dynamically. | |
691 | // //::PrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); //break; | |
692 | ||
693 | // fall through | |
694 | ||
695 | case 4: | |
696 | // Use PrintWindow if available, or fallback to WM_PRINT | |
697 | // otherwise. Unfortunately using PrintWindow is even worse than | |
698 | // WM_PRINT. For most native widgets nothing is drawn to the dc | |
699 | // at all, with or without Themes. | |
700 | typedef BOOL (WINAPI *PrintWindow_t)(HWND, HDC, UINT); | |
ae8162c8 | 701 | static bool s_triedToLoad = false; |
d55e5bfc RD |
702 | static PrintWindow_t pfnPrintWindow = NULL; |
703 | if ( !s_triedToLoad ) | |
704 | { | |
705 | ||
ae8162c8 | 706 | s_triedToLoad = true; |
d55e5bfc RD |
707 | wxDynamicLibrary dllUser32(_T("user32.dll")); |
708 | if ( dllUser32.IsLoaded() ) | |
709 | { | |
710 | wxLogNull nolog; // Don't report errors here | |
711 | pfnPrintWindow = (PrintWindow_t)dllUser32.GetSymbol(_T("PrintWindow")); | |
712 | } | |
713 | } | |
714 | if (pfnPrintWindow) | |
715 | { | |
716 | printf("Using PrintWindow\n"); | |
717 | pfnPrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); | |
718 | } | |
719 | else | |
720 | { | |
721 | printf("Using WM_PRINT\n"); | |
722 | ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc), | |
723 | PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | PRF_ERASEBKGND | PRF_OWNED ); | |
724 | } | |
725 | } | |
726 | #endif | |
727 | } | |
728 | ||
729 | ||
730 | ||
731 | #include <wx/tipdlg.h> | |
732 | ||
733 | ||
734 | class wxPyTipProvider : public wxTipProvider { | |
735 | public: | |
736 | wxPyTipProvider(size_t currentTip) | |
737 | : wxTipProvider(currentTip) {} | |
738 | ||
739 | DEC_PYCALLBACK_STRING__pure(GetTip); | |
740 | DEC_PYCALLBACK_STRING_STRING(PreprocessTip); | |
741 | PYPRIVATE; | |
742 | }; | |
743 | ||
744 | IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip); | |
745 | IMP_PYCALLBACK_STRING_STRING(wxPyTipProvider, wxTipProvider, PreprocessTip); | |
746 | ||
747 | ||
748 | //IMP_PYCALLBACK__(wxPyTimer, wxTimer, Notify); | |
749 | ||
1a6bba1e RD |
750 | IMPLEMENT_ABSTRACT_CLASS(wxPyTimer, wxTimer); |
751 | ||
d55e5bfc RD |
752 | void wxPyTimer::Notify() { |
753 | bool found; | |
754 | bool blocked = wxPyBeginBlockThreads(); | |
755 | if ((found = wxPyCBH_findCallback(m_myInst, "Notify"))) | |
756 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("()")); | |
757 | wxPyEndBlockThreads(blocked); | |
758 | if (! found) | |
759 | wxTimer::Notify(); | |
760 | } | |
761 | void wxPyTimer::base_Notify() { | |
762 | wxTimer::Notify(); | |
763 | } | |
764 | ||
765 | ||
766 | ||
767 | SWIGSTATICINLINE(PyObject *) | |
768 | SWIG_FromCharPtr(const char* cptr) | |
769 | { | |
d55e5bfc | 770 | if (cptr) { |
c32bde28 | 771 | size_t size = strlen(cptr); |
d55e5bfc | 772 | if (size > INT_MAX) { |
c32bde28 | 773 | return SWIG_NewPointerObj(swig_const_cast(cptr,char*), |
d55e5bfc RD |
774 | SWIG_TypeQuery("char *"), 0); |
775 | } else { | |
c32bde28 RD |
776 | if (size != 0) { |
777 | return PyString_FromStringAndSize(cptr, size); | |
778 | } else { | |
779 | return PyString_FromString(cptr); | |
780 | } | |
d55e5bfc | 781 | } |
d55e5bfc | 782 | } |
c32bde28 RD |
783 | Py_INCREF(Py_None); |
784 | return Py_None; | |
d55e5bfc RD |
785 | } |
786 | ||
787 | ||
c32bde28 RD |
788 | SWIGSTATICINLINE(int) |
789 | SWIG_CheckUnsignedLongInRange(unsigned long value, | |
790 | unsigned long max_value, | |
791 | const char *errmsg) | |
d55e5bfc | 792 | { |
c32bde28 RD |
793 | if (value > max_value) { |
794 | if (errmsg) { | |
795 | PyErr_Format(PyExc_OverflowError, | |
796 | "value %ld is greater than '%s' minimum %ld", | |
797 | value, errmsg, max_value); | |
d55e5bfc | 798 | } |
c32bde28 | 799 | return 0; |
d55e5bfc | 800 | } |
c32bde28 RD |
801 | return 1; |
802 | } | |
d55e5bfc RD |
803 | |
804 | ||
805 | #if UINT_MAX != ULONG_MAX | |
c32bde28 RD |
806 | SWIGSTATICINLINE(int) |
807 | SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val) | |
d55e5bfc | 808 | { |
c32bde28 RD |
809 | const char* errmsg = val ? "unsigned int" : 0; |
810 | unsigned long v; | |
811 | if (SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
812 | if (SWIG_CheckUnsignedLongInRange(v, INT_MAX, errmsg)) { | |
813 | if (val) *val = swig_numeric_cast(v, unsigned int); | |
814 | return 1; | |
815 | } | |
816 | } else { | |
817 | PyErr_Clear(); | |
818 | } | |
819 | if (val) { | |
820 | PyErr_SetString(PyExc_TypeError, "an unsigned int is expected"); | |
821 | } | |
822 | return 0; | |
d55e5bfc RD |
823 | } |
824 | #else | |
c32bde28 RD |
825 | SWIGSTATICINLINE(unsigned int) |
826 | SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val) | |
827 | { | |
828 | return SWIG_AsVal_unsigned_SS_long(obj,(unsigned long *)val); | |
829 | } | |
d55e5bfc RD |
830 | #endif |
831 | ||
832 | ||
c32bde28 RD |
833 | SWIGSTATICINLINE(unsigned int) |
834 | SWIG_As_unsigned_SS_int(PyObject* obj) | |
d55e5bfc | 835 | { |
c32bde28 RD |
836 | unsigned int v; |
837 | if (!SWIG_AsVal_unsigned_SS_int(obj, &v)) { | |
838 | /* | |
839 | this is needed to make valgrind/purify happier. the other | |
840 | solution is throw an exception, but since this code should work | |
841 | with plain C .... | |
842 | */ | |
843 | memset((void*)&v, 0, sizeof(unsigned int)); | |
d55e5bfc | 844 | } |
c32bde28 RD |
845 | return v; |
846 | } | |
847 | ||
848 | ||
849 | SWIGSTATICINLINE(int) | |
850 | SWIG_Check_unsigned_SS_int(PyObject* obj) | |
851 | { | |
852 | return SWIG_AsVal_unsigned_SS_int(obj, (unsigned int*)0); | |
d55e5bfc RD |
853 | } |
854 | ||
855 | wxString Log_TimeStamp(){ | |
856 | wxString msg; | |
857 | wxLog::TimeStamp(&msg); | |
858 | return msg; | |
859 | } | |
860 | void wxLog_Destroy(wxLog *self){ delete self; } | |
f78cc896 RD |
861 | // Make somce wrappers that double any % signs so they are 'escaped' |
862 | void wxPyLogFatalError(const wxString& msg) | |
863 | { | |
864 | wxString m(msg); | |
865 | m.Replace(wxT("%"), wxT("%%")); | |
866 | wxLogFatalError(m); | |
867 | } | |
868 | ||
869 | void wxPyLogError(const wxString& msg) | |
870 | { | |
871 | wxString m(msg); | |
872 | m.Replace(wxT("%"), wxT("%%")); | |
873 | wxLogError(m); | |
874 | } | |
875 | ||
876 | void wxPyLogWarning(const wxString& msg) | |
877 | { | |
878 | wxString m(msg); | |
879 | m.Replace(wxT("%"), wxT("%%")); | |
880 | wxLogWarning(m); | |
881 | } | |
882 | ||
883 | void wxPyLogMessage(const wxString& msg) | |
884 | { | |
885 | wxString m(msg); | |
886 | m.Replace(wxT("%"), wxT("%%")); | |
887 | wxLogMessage(m); | |
888 | } | |
889 | ||
890 | void wxPyLogInfo(const wxString& msg) | |
891 | { | |
892 | wxString m(msg); | |
893 | m.Replace(wxT("%"), wxT("%%")); | |
894 | wxLogInfo(m); | |
895 | } | |
896 | ||
897 | void wxPyLogDebug(const wxString& msg) | |
898 | { | |
899 | wxString m(msg); | |
900 | m.Replace(wxT("%"), wxT("%%")); | |
901 | wxLogDebug(m); | |
902 | } | |
903 | ||
904 | void wxPyLogVerbose(const wxString& msg) | |
905 | { | |
906 | wxString m(msg); | |
907 | m.Replace(wxT("%"), wxT("%%")); | |
908 | wxLogVerbose(m); | |
909 | } | |
910 | ||
911 | void wxPyLogStatus(const wxString& msg) | |
912 | { | |
913 | wxString m(msg); | |
914 | m.Replace(wxT("%"), wxT("%%")); | |
915 | wxLogStatus(m); | |
916 | } | |
917 | ||
918 | void wxPyLogStatusFrame(wxFrame *pFrame, const wxString& msg) | |
919 | { | |
920 | wxString m(msg); | |
921 | m.Replace(wxT("%"), wxT("%%")); | |
922 | wxLogStatus(pFrame, m); | |
923 | } | |
924 | ||
925 | void wxPyLogSysError(const wxString& msg) | |
926 | { | |
927 | wxString m(msg); | |
928 | m.Replace(wxT("%"), wxT("%%")); | |
929 | wxLogSysError(m); | |
930 | } | |
931 | ||
932 | void wxPyLogGeneric(unsigned long level, const wxString& msg) | |
933 | { | |
934 | wxString m(msg); | |
935 | m.Replace(wxT("%"), wxT("%%")); | |
936 | wxLogGeneric(level, m); | |
937 | } | |
938 | ||
939 | void wxPyLogTrace(unsigned long mask, const wxString& msg) | |
940 | { | |
941 | wxString m(msg); | |
942 | m.Replace(wxT("%"), wxT("%%")); | |
943 | wxLogTrace(mask, m); | |
944 | } | |
945 | ||
946 | void wxPyLogTrace(const wxString& mask, const wxString& msg) | |
947 | { | |
948 | wxString m(msg); | |
949 | m.Replace(wxT("%"), wxT("%%")); | |
950 | wxLogTrace(mask, m); | |
951 | } | |
952 | ||
953 | ||
d55e5bfc RD |
954 | |
955 | // A wxLog class that can be derived from in wxPython | |
956 | class wxPyLog : public wxLog { | |
957 | public: | |
958 | wxPyLog() : wxLog() {} | |
959 | ||
960 | virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) { | |
961 | bool found; | |
962 | bool blocked = wxPyBeginBlockThreads(); | |
963 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) { | |
964 | PyObject* s = wx2PyString(szString); | |
965 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t)); | |
966 | Py_DECREF(s); | |
967 | } | |
968 | wxPyEndBlockThreads(blocked); | |
969 | if (! found) | |
970 | wxLog::DoLog(level, szString, t); | |
971 | } | |
972 | ||
973 | virtual void DoLogString(const wxChar *szString, time_t t) { | |
974 | bool found; | |
975 | bool blocked = wxPyBeginBlockThreads(); | |
976 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) { | |
977 | PyObject* s = wx2PyString(szString); | |
978 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t)); | |
979 | Py_DECREF(s); | |
980 | } | |
981 | wxPyEndBlockThreads(blocked); | |
982 | if (! found) | |
983 | wxLog::DoLogString(szString, t); | |
984 | } | |
985 | ||
986 | PYPRIVATE; | |
987 | }; | |
988 | ||
989 | ||
990 | ||
991 | ||
992 | IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate); | |
993 | ||
994 | ||
995 | #include <wx/joystick.h> | |
996 | ||
997 | ||
998 | #if !wxUSE_JOYSTICK && !defined(__WXMSW__) | |
999 | // A C++ stub class for wxJoystick for platforms that don't have it. | |
1000 | class wxJoystick : public wxObject { | |
1001 | public: | |
1002 | wxJoystick(int joystick = wxJOYSTICK1) { | |
1003 | bool blocked = wxPyBeginBlockThreads(); | |
1004 | PyErr_SetString(PyExc_NotImplementedError, | |
1005 | "wxJoystick is not available on this platform."); | |
1006 | wxPyEndBlockThreads(blocked); | |
1007 | } | |
1008 | wxPoint GetPosition() { return wxPoint(-1,-1); } | |
1009 | int GetZPosition() { return -1; } | |
1010 | int GetButtonState() { return -1; } | |
1011 | int GetPOVPosition() { return -1; } | |
1012 | int GetPOVCTSPosition() { return -1; } | |
1013 | int GetRudderPosition() { return -1; } | |
1014 | int GetUPosition() { return -1; } | |
1015 | int GetVPosition() { return -1; } | |
1016 | int GetMovementThreshold() { return -1; } | |
1017 | void SetMovementThreshold(int threshold) {} | |
1018 | ||
ae8162c8 | 1019 | bool IsOk(void) { return false; } |
d55e5bfc RD |
1020 | int GetNumberJoysticks() { return -1; } |
1021 | int GetManufacturerId() { return -1; } | |
1022 | int GetProductId() { return -1; } | |
79fccf9d | 1023 | wxString GetProductName() { return wxEmptyString; } |
d55e5bfc RD |
1024 | int GetXMin() { return -1; } |
1025 | int GetYMin() { return -1; } | |
1026 | int GetZMin() { return -1; } | |
1027 | int GetXMax() { return -1; } | |
1028 | int GetYMax() { return -1; } | |
1029 | int GetZMax() { return -1; } | |
1030 | int GetNumberButtons() { return -1; } | |
1031 | int GetNumberAxes() { return -1; } | |
1032 | int GetMaxButtons() { return -1; } | |
1033 | int GetMaxAxes() { return -1; } | |
1034 | int GetPollingMin() { return -1; } | |
1035 | int GetPollingMax() { return -1; } | |
1036 | int GetRudderMin() { return -1; } | |
1037 | int GetRudderMax() { return -1; } | |
1038 | int GetUMin() { return -1; } | |
1039 | int GetUMax() { return -1; } | |
1040 | int GetVMin() { return -1; } | |
1041 | int GetVMax() { return -1; } | |
1042 | ||
ae8162c8 RD |
1043 | bool HasRudder() { return false; } |
1044 | bool HasZ() { return false; } | |
1045 | bool HasU() { return false; } | |
1046 | bool HasV() { return false; } | |
1047 | bool HasPOV() { return false; } | |
1048 | bool HasPOV4Dir() { return false; } | |
1049 | bool HasPOVCTS() { return false; } | |
d55e5bfc | 1050 | |
ae8162c8 RD |
1051 | bool SetCapture(wxWindow* win, int pollingFreq = 0) { return false; } |
1052 | bool ReleaseCapture() { return false; } | |
d55e5bfc RD |
1053 | }; |
1054 | #endif | |
1055 | ||
1056 | ||
1057 | #include <wx/sound.h> | |
1058 | ||
1059 | ||
1060 | #if !wxUSE_SOUND | |
1061 | // A C++ stub class for wxWave for platforms that don't have it. | |
1062 | class wxSound : public wxObject | |
1063 | { | |
1064 | public: | |
1065 | wxSound() { | |
1066 | bool blocked = wxPyBeginBlockThreads(); | |
1067 | PyErr_SetString(PyExc_NotImplementedError, | |
1068 | "wxSound is not available on this platform."); | |
1069 | wxPyEndBlockThreads(blocked); | |
1070 | } | |
b1f29bf7 | 1071 | wxSound(const wxString&/*, bool*/) { |
d55e5bfc RD |
1072 | bool blocked = wxPyBeginBlockThreads(); |
1073 | PyErr_SetString(PyExc_NotImplementedError, | |
1074 | "wxSound is not available on this platform."); | |
1075 | wxPyEndBlockThreads(blocked); | |
1076 | } | |
1077 | wxSound(int, const wxByte*) { | |
1078 | bool blocked = wxPyBeginBlockThreads(); | |
1079 | PyErr_SetString(PyExc_NotImplementedError, | |
1080 | "wxSound is not available on this platform."); | |
1081 | wxPyEndBlockThreads(blocked); | |
1082 | } | |
1083 | ||
1084 | ~wxSound() {}; | |
1085 | ||
b1f29bf7 | 1086 | bool Create(const wxString&/*, bool*/) { return false; } |
d55e5bfc RD |
1087 | bool Create(int, const wxByte*) { return false; }; |
1088 | bool IsOk() { return false; }; | |
1089 | bool Play(unsigned) const { return false; } | |
1090 | static bool Play(const wxString&, unsigned) { return false; } | |
1091 | static void Stop() {} | |
1092 | }; | |
1093 | ||
1094 | #endif | |
1095 | ||
b1f29bf7 RD |
1096 | wxSound *new_wxSound(wxString const &fileName){ |
1097 | if (fileName.Length() == 0) | |
1098 | return new wxSound; | |
1099 | else | |
1100 | return new wxSound(fileName); | |
1101 | } | |
1102 | wxSound *new_wxSound(PyObject *data){ | |
1103 | unsigned char* buffer; int size; | |
1104 | wxSound *sound = NULL; | |
1105 | ||
1106 | bool blocked = wxPyBeginBlockThreads(); | |
1107 | if (!PyArg_Parse(data, "t#", &buffer, &size)) | |
1108 | goto done; | |
1109 | sound = new wxSound(size, buffer); | |
1110 | done: | |
1111 | wxPyEndBlockThreads(blocked); | |
1112 | return sound; | |
1113 | } | |
1114 | bool wxSound_CreateFromData(wxSound *self,PyObject *data){ | |
1115 | #ifndef __WXMAC__ | |
1116 | unsigned char* buffer; | |
1117 | int size; | |
ae8162c8 | 1118 | bool rv = false; |
b1f29bf7 RD |
1119 | |
1120 | bool blocked = wxPyBeginBlockThreads(); | |
1121 | if (!PyArg_Parse(data, "t#", &buffer, &size)) | |
1122 | goto done; | |
1123 | rv = self->Create(size, buffer); | |
1124 | done: | |
1125 | wxPyEndBlockThreads(blocked); | |
1126 | return rv; | |
1127 | #else | |
1128 | bool blocked = wxPyBeginBlockThreads(); | |
1129 | PyErr_SetString(PyExc_NotImplementedError, | |
1130 | "Create from data is not available on this platform."); | |
1131 | wxPyEndBlockThreads(blocked); | |
ae8162c8 | 1132 | return false; |
b1f29bf7 RD |
1133 | #endif |
1134 | } | |
d55e5bfc RD |
1135 | |
1136 | #include <wx/mimetype.h> | |
1137 | ||
1138 | PyObject *wxFileType_GetMimeType(wxFileType *self){ | |
1139 | wxString str; | |
1140 | if (self->GetMimeType(&str)) | |
1141 | return wx2PyString(str); | |
1142 | else | |
1143 | RETURN_NONE(); | |
1144 | } | |
1145 | PyObject *wxFileType_GetMimeTypes(wxFileType *self){ | |
1146 | wxArrayString arr; | |
1147 | if (self->GetMimeTypes(arr)) | |
1148 | return wxArrayString2PyList_helper(arr); | |
1149 | else | |
1150 | RETURN_NONE(); | |
1151 | } | |
1152 | PyObject *wxFileType_GetExtensions(wxFileType *self){ | |
1153 | wxArrayString arr; | |
1154 | if (self->GetExtensions(arr)) | |
1155 | return wxArrayString2PyList_helper(arr); | |
1156 | else | |
1157 | RETURN_NONE(); | |
1158 | } | |
1159 | wxIcon *wxFileType_GetIcon(wxFileType *self){ | |
1160 | wxIconLocation loc; | |
1161 | if (self->GetIcon(&loc)) | |
1162 | return new wxIcon(loc); | |
1163 | else | |
1164 | return NULL; | |
1165 | } | |
1166 | PyObject *wxFileType_GetIconInfo(wxFileType *self){ | |
1167 | wxIconLocation loc; | |
1168 | if (self->GetIcon(&loc)) { | |
1169 | wxString iconFile = loc.GetFileName(); | |
1170 | int iconIndex = -1; | |
1171 | ||
1172 | iconIndex = loc.GetIndex(); | |
1173 | ||
1174 | // Make a tuple and put the values in it | |
1175 | bool blocked = wxPyBeginBlockThreads(); | |
1176 | PyObject* tuple = PyTuple_New(3); | |
1177 | PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(loc), | |
ae8162c8 | 1178 | wxT("wxIcon"), true)); |
d55e5bfc RD |
1179 | PyTuple_SetItem(tuple, 1, wx2PyString(iconFile)); |
1180 | PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex)); | |
1181 | wxPyEndBlockThreads(blocked); | |
1182 | return tuple; | |
1183 | } | |
1184 | else | |
1185 | RETURN_NONE(); | |
1186 | } | |
1187 | PyObject *wxFileType_GetDescription(wxFileType *self){ | |
1188 | wxString str; | |
1189 | if (self->GetDescription(&str)) | |
1190 | return wx2PyString(str); | |
1191 | else | |
1192 | RETURN_NONE(); | |
1193 | } | |
1194 | PyObject *wxFileType_GetOpenCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
1195 | wxString str; | |
1196 | if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype))) | |
1197 | return wx2PyString(str); | |
1198 | else | |
1199 | RETURN_NONE(); | |
1200 | } | |
1201 | PyObject *wxFileType_GetPrintCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
1202 | wxString str; | |
1203 | if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype))) | |
1204 | return wx2PyString(str); | |
1205 | else | |
1206 | RETURN_NONE(); | |
1207 | } | |
1208 | PyObject *wxFileType_GetAllCommands(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
1209 | wxArrayString verbs; | |
1210 | wxArrayString commands; | |
1211 | if (self->GetAllCommands(&verbs, &commands, | |
1212 | wxFileType::MessageParameters(filename, mimetype))) { | |
1213 | bool blocked = wxPyBeginBlockThreads(); | |
1214 | PyObject* tuple = PyTuple_New(2); | |
1215 | PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs)); | |
1216 | PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands)); | |
1217 | wxPyEndBlockThreads(blocked); | |
1218 | return tuple; | |
1219 | } | |
1220 | else | |
1221 | RETURN_NONE(); | |
1222 | } | |
1223 | wxString FileType_ExpandCommand(wxString const &command,wxString const &filename,wxString const &mimetype){ | |
1224 | return wxFileType::ExpandCommand(command, | |
1225 | wxFileType::MessageParameters(filename, mimetype)); | |
1226 | } | |
1227 | PyObject *wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self){ | |
1228 | wxArrayString arr; | |
1229 | self->EnumAllFileTypes(arr); | |
1230 | return wxArrayString2PyList_helper(arr); | |
1231 | } | |
1232 | ||
1233 | #include <wx/artprov.h> | |
1234 | ||
1235 | static const wxString wxPyART_TOOLBAR(wxART_TOOLBAR); | |
1236 | static const wxString wxPyART_MENU(wxART_MENU); | |
1237 | static const wxString wxPyART_FRAME_ICON(wxART_FRAME_ICON); | |
1238 | static const wxString wxPyART_CMN_DIALOG(wxART_CMN_DIALOG); | |
1239 | static const wxString wxPyART_HELP_BROWSER(wxART_HELP_BROWSER); | |
1240 | static const wxString wxPyART_MESSAGE_BOX(wxART_MESSAGE_BOX); | |
4cf4100f | 1241 | static const wxString wxPyART_BUTTON(wxART_BUTTON); |
d55e5bfc RD |
1242 | static const wxString wxPyART_OTHER(wxART_OTHER); |
1243 | static const wxString wxPyART_ADD_BOOKMARK(wxART_ADD_BOOKMARK); | |
1244 | static const wxString wxPyART_DEL_BOOKMARK(wxART_DEL_BOOKMARK); | |
1245 | static const wxString wxPyART_HELP_SIDE_PANEL(wxART_HELP_SIDE_PANEL); | |
1246 | static const wxString wxPyART_HELP_SETTINGS(wxART_HELP_SETTINGS); | |
1247 | static const wxString wxPyART_HELP_BOOK(wxART_HELP_BOOK); | |
1248 | static const wxString wxPyART_HELP_FOLDER(wxART_HELP_FOLDER); | |
1249 | static const wxString wxPyART_HELP_PAGE(wxART_HELP_PAGE); | |
1250 | static const wxString wxPyART_GO_BACK(wxART_GO_BACK); | |
1251 | static const wxString wxPyART_GO_FORWARD(wxART_GO_FORWARD); | |
1252 | static const wxString wxPyART_GO_UP(wxART_GO_UP); | |
1253 | static const wxString wxPyART_GO_DOWN(wxART_GO_DOWN); | |
1254 | static const wxString wxPyART_GO_TO_PARENT(wxART_GO_TO_PARENT); | |
1255 | static const wxString wxPyART_GO_HOME(wxART_GO_HOME); | |
1256 | static const wxString wxPyART_FILE_OPEN(wxART_FILE_OPEN); | |
1257 | static const wxString wxPyART_PRINT(wxART_PRINT); | |
1258 | static const wxString wxPyART_HELP(wxART_HELP); | |
1259 | static const wxString wxPyART_TIP(wxART_TIP); | |
1260 | static const wxString wxPyART_REPORT_VIEW(wxART_REPORT_VIEW); | |
1261 | static const wxString wxPyART_LIST_VIEW(wxART_LIST_VIEW); | |
1262 | static const wxString wxPyART_NEW_DIR(wxART_NEW_DIR); | |
f78cc896 RD |
1263 | static const wxString wxPyART_HARDDISK(wxART_HARDDISK); |
1264 | static const wxString wxPyART_FLOPPY(wxART_FLOPPY); | |
1265 | static const wxString wxPyART_CDROM(wxART_CDROM); | |
1266 | static const wxString wxPyART_REMOVABLE(wxART_REMOVABLE); | |
d55e5bfc | 1267 | static const wxString wxPyART_FOLDER(wxART_FOLDER); |
f78cc896 | 1268 | static const wxString wxPyART_FOLDER_OPEN(wxART_FOLDER_OPEN); |
d55e5bfc RD |
1269 | static const wxString wxPyART_GO_DIR_UP(wxART_GO_DIR_UP); |
1270 | static const wxString wxPyART_EXECUTABLE_FILE(wxART_EXECUTABLE_FILE); | |
1271 | static const wxString wxPyART_NORMAL_FILE(wxART_NORMAL_FILE); | |
1272 | static const wxString wxPyART_TICK_MARK(wxART_TICK_MARK); | |
1273 | static const wxString wxPyART_CROSS_MARK(wxART_CROSS_MARK); | |
1274 | static const wxString wxPyART_ERROR(wxART_ERROR); | |
1275 | static const wxString wxPyART_QUESTION(wxART_QUESTION); | |
1276 | static const wxString wxPyART_WARNING(wxART_WARNING); | |
1277 | static const wxString wxPyART_INFORMATION(wxART_INFORMATION); | |
1278 | static const wxString wxPyART_MISSING_IMAGE(wxART_MISSING_IMAGE); | |
1279 | // Python aware wxArtProvider | |
1280 | class wxPyArtProvider : public wxArtProvider { | |
1281 | public: | |
1282 | ||
1283 | virtual wxBitmap CreateBitmap(const wxArtID& id, | |
1284 | const wxArtClient& client, | |
1285 | const wxSize& size) { | |
1286 | wxBitmap rval = wxNullBitmap; | |
1287 | bool blocked = wxPyBeginBlockThreads(); | |
1288 | if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) { | |
1289 | PyObject* so = wxPyConstructObject((void*)&size, wxT("wxSize"), 0); | |
1290 | PyObject* ro; | |
1291 | wxBitmap* ptr; | |
1292 | PyObject* s1, *s2; | |
1293 | s1 = wx2PyString(id); | |
1294 | s2 = wx2PyString(client); | |
1295 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so)); | |
1296 | Py_DECREF(so); | |
1297 | Py_DECREF(s1); | |
1298 | Py_DECREF(s2); | |
1299 | if (ro) { | |
1300 | if (wxPyConvertSwigPtr(ro, (void**)&ptr, wxT("wxBitmap"))) | |
1301 | rval = *ptr; | |
1302 | Py_DECREF(ro); | |
1303 | } | |
1304 | } | |
1305 | wxPyEndBlockThreads(blocked); | |
1306 | return rval; | |
1307 | } | |
1308 | ||
1309 | PYPRIVATE; | |
1310 | }; | |
1311 | ||
1312 | void wxPyArtProvider_Destroy(wxPyArtProvider *self){ delete self; } | |
1313 | ||
1314 | ||
1315 | ||
1316 | static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) { | |
1317 | PyObject* ret = PyTuple_New(3); | |
1318 | if (ret) { | |
1319 | PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag)); | |
1320 | PyTuple_SET_ITEM(ret, 1, wx2PyString(str)); | |
1321 | PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index)); | |
1322 | } | |
1323 | return ret; | |
1324 | } | |
1325 | ||
1326 | PyObject *wxConfigBase_GetFirstGroup(wxConfigBase *self){ | |
1327 | bool cont; | |
1328 | long index = 0; | |
1329 | wxString value; | |
1330 | ||
1331 | cont = self->GetFirstGroup(value, index); | |
1332 | return __EnumerationHelper(cont, value, index); | |
1333 | } | |
1334 | PyObject *wxConfigBase_GetNextGroup(wxConfigBase *self,long index){ | |
1335 | bool cont; | |
1336 | wxString value; | |
1337 | ||
1338 | cont = self->GetNextGroup(value, index); | |
1339 | return __EnumerationHelper(cont, value, index); | |
1340 | } | |
1341 | PyObject *wxConfigBase_GetFirstEntry(wxConfigBase *self){ | |
1342 | bool cont; | |
1343 | long index = 0; | |
1344 | wxString value; | |
1345 | ||
1346 | cont = self->GetFirstEntry(value, index); | |
1347 | return __EnumerationHelper(cont, value, index); | |
1348 | } | |
1349 | PyObject *wxConfigBase_GetNextEntry(wxConfigBase *self,long index){ | |
1350 | bool cont; | |
1351 | wxString value; | |
1352 | ||
1353 | cont = self->GetNextEntry(value, index); | |
1354 | return __EnumerationHelper(cont, value, index); | |
1355 | } | |
1356 | long wxConfigBase_ReadInt(wxConfigBase *self,wxString const &key,long defaultVal){ | |
1357 | long rv; | |
1358 | self->Read(key, &rv, defaultVal); | |
1359 | return rv; | |
1360 | } | |
1361 | ||
c32bde28 RD |
1362 | // See my_fragments.i |
1363 | SWIGSTATICINLINE(int) | |
1364 | SWIG_AsVal_double(PyObject *obj, double* val) | |
d55e5bfc | 1365 | { |
c32bde28 RD |
1366 | if (PyNumber_Check(obj)) { |
1367 | if (val) *val = PyFloat_AsDouble(obj); | |
1368 | return 1; | |
1369 | } | |
d55e5bfc RD |
1370 | else { |
1371 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
1372 | obj->ob_type->tp_name); | |
1373 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
1374 | Py_DECREF(errmsg); | |
d55e5bfc | 1375 | } |
c32bde28 | 1376 | return 0; |
d55e5bfc RD |
1377 | } |
1378 | ||
1379 | ||
c32bde28 RD |
1380 | SWIGSTATICINLINE(double) |
1381 | SWIG_As_double(PyObject* obj) | |
d55e5bfc | 1382 | { |
c32bde28 RD |
1383 | double v; |
1384 | if (!SWIG_AsVal_double(obj, &v)) { | |
1385 | /* | |
1386 | this is needed to make valgrind/purify happier. the other | |
1387 | solution is throw an exception, but since this code should work | |
1388 | with plain C .... | |
1389 | */ | |
1390 | memset((void*)&v, 0, sizeof(double)); | |
d55e5bfc | 1391 | } |
c32bde28 RD |
1392 | return v; |
1393 | } | |
1394 | ||
1395 | ||
1396 | SWIGSTATICINLINE(int) | |
1397 | SWIG_Check_double(PyObject* obj) | |
1398 | { | |
1399 | return SWIG_AsVal_double(obj, (double*)0); | |
d55e5bfc RD |
1400 | } |
1401 | ||
1402 | double wxConfigBase_ReadFloat(wxConfigBase *self,wxString const &key,double defaultVal){ | |
1403 | double rv; | |
1404 | self->Read(key, &rv, defaultVal); | |
1405 | return rv; | |
1406 | } | |
1407 | bool wxConfigBase_ReadBool(wxConfigBase *self,wxString const &key,bool defaultVal){ | |
1408 | bool rv; | |
1409 | self->Read(key, &rv, defaultVal); | |
1410 | return rv; | |
1411 | } | |
1412 | ||
1413 | #include <wx/datetime.h> | |
1414 | ||
1415 | ||
1416 | static const wxString wxPyDateFormatStr(wxT("%c")); | |
1417 | static const wxString wxPyTimeSpanFormatStr(wxT("%H:%M:%S")); | |
1418 | ||
1419 | #define LOCAL_TZ wxDateTime::Local | |
1420 | ||
1421 | ||
1422 | #if UINT_MAX < LONG_MAX | |
c32bde28 RD |
1423 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ |
1424 | #define SWIG_From_unsigned_SS_int SWIG_From_long | |
1425 | /*@@*/ | |
d55e5bfc | 1426 | #else |
c32bde28 RD |
1427 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/ |
1428 | #define SWIG_From_unsigned_SS_int SWIG_From_unsigned_SS_long | |
1429 | /*@@*/ | |
d55e5bfc RD |
1430 | #endif |
1431 | ||
1432 | wxDateTime wxDateTime___add____SWIG_0(wxDateTime *self,wxTimeSpan const &other){ return *self + other; } | |
1433 | wxDateTime wxDateTime___add____SWIG_1(wxDateTime *self,wxDateSpan const &other){ return *self + other; } | |
1434 | wxTimeSpan wxDateTime___sub____SWIG_0(wxDateTime *self,wxDateTime const &other){ return *self - other; } | |
1435 | wxDateTime wxDateTime___sub____SWIG_1(wxDateTime *self,wxTimeSpan const &other){ return *self - other; } | |
1436 | wxDateTime wxDateTime___sub____SWIG_2(wxDateTime *self,wxDateSpan const &other){ return *self - other; } | |
1437 | bool wxDateTime___lt__(wxDateTime *self,wxDateTime const *other){ | |
1438 | if (!other || !self->IsValid() || !other->IsValid()) return self < other; | |
1439 | return (*self < *other); | |
1440 | } | |
1441 | bool wxDateTime___le__(wxDateTime *self,wxDateTime const *other){ | |
1442 | if (!other || !self->IsValid() || !other->IsValid()) return self <= other; | |
1443 | return (*self <= *other); | |
1444 | } | |
1445 | bool wxDateTime___gt__(wxDateTime *self,wxDateTime const *other){ | |
1446 | if (!other || !self->IsValid() || !other->IsValid()) return self > other; | |
1447 | return (*self > *other); | |
1448 | } | |
1449 | bool wxDateTime___ge__(wxDateTime *self,wxDateTime const *other){ | |
1450 | if (!other || !self->IsValid() || !other->IsValid()) return self >= other; | |
1451 | return (*self >= *other); | |
1452 | } | |
1453 | bool wxDateTime___eq__(wxDateTime *self,wxDateTime const *other){ | |
1454 | if (!other || !self->IsValid() || !other->IsValid()) return self == other; | |
1455 | return (*self == *other); | |
1456 | } | |
1457 | bool wxDateTime___ne__(wxDateTime *self,wxDateTime const *other){ | |
1458 | if (!other || !self->IsValid() || !other->IsValid()) return self != other; | |
1459 | return (*self != *other); | |
1460 | } | |
1461 | int wxDateTime_ParseRfc822Date(wxDateTime *self,wxString const &date){ | |
1462 | const wxChar* rv; | |
1463 | const wxChar* _date = date; | |
1464 | rv = self->ParseRfc822Date(_date); | |
1465 | if (rv == NULL) return -1; | |
1466 | return rv - _date; | |
1467 | } | |
1468 | int wxDateTime_ParseFormat(wxDateTime *self,wxString const &date,wxString const &format,wxDateTime const &dateDef){ | |
1469 | const wxChar* rv; | |
1470 | const wxChar* _date = date; | |
1471 | rv = self->ParseFormat(_date, format, dateDef); | |
1472 | if (rv == NULL) return -1; | |
1473 | return rv - _date; | |
1474 | } | |
1475 | int wxDateTime_ParseDateTime(wxDateTime *self,wxString const &datetime){ | |
1476 | const wxChar* rv; | |
1477 | const wxChar* _datetime = datetime; | |
1478 | rv = self->ParseDateTime(_datetime); | |
1479 | if (rv == NULL) return -1; | |
1480 | return rv - _datetime; | |
1481 | } | |
1482 | int wxDateTime_ParseDate(wxDateTime *self,wxString const &date){ | |
1483 | const wxChar* rv; | |
1484 | const wxChar* _date = date; | |
1485 | rv = self->ParseDate(_date); | |
1486 | if (rv == NULL) return -1; | |
1487 | return rv - _date; | |
1488 | } | |
1489 | int wxDateTime_ParseTime(wxDateTime *self,wxString const &time){ | |
1490 | const wxChar* rv; | |
1491 | const wxChar* _time = time; | |
1492 | rv = self->ParseTime(_time); | |
1493 | if (rv == NULL) return -1; | |
1494 | return rv - _time; | |
1495 | } | |
1496 | wxTimeSpan wxTimeSpan___add__(wxTimeSpan *self,wxTimeSpan const &other){ return *self + other; } | |
1497 | wxTimeSpan wxTimeSpan___sub__(wxTimeSpan *self,wxTimeSpan const &other){ return *self - other; } | |
1498 | wxTimeSpan wxTimeSpan___mul__(wxTimeSpan *self,int n){ return *self * n; } | |
1499 | wxTimeSpan wxTimeSpan___rmul__(wxTimeSpan *self,int n){ return n * *self; } | |
ae8162c8 RD |
1500 | bool wxTimeSpan___lt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self < *other) : false; } |
1501 | bool wxTimeSpan___le__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self <= *other) : false; } | |
1502 | bool wxTimeSpan___gt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self > *other) : true; } | |
1503 | bool wxTimeSpan___ge__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self >= *other) : true; } | |
1504 | bool wxTimeSpan___eq__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self == *other) : false; } | |
1505 | bool wxTimeSpan___ne__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self != *other) : true; } | |
d55e5bfc RD |
1506 | wxDateSpan wxDateSpan___add__(wxDateSpan *self,wxDateSpan const &other){ return *self + other; } |
1507 | wxDateSpan wxDateSpan___sub__(wxDateSpan *self,wxDateSpan const &other){ return *self - other; } | |
1508 | wxDateSpan wxDateSpan___mul__(wxDateSpan *self,int n){ return *self * n; } | |
1509 | wxDateSpan wxDateSpan___rmul__(wxDateSpan *self,int n){ return n * *self; } | |
ae8162c8 RD |
1510 | bool wxDateSpan___eq__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self == *other) : false; } |
1511 | bool wxDateSpan___ne__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self != *other) : true; } | |
d55e5bfc RD |
1512 | |
1513 | #include <wx/dataobj.h> | |
1514 | ||
a07a67e6 RD |
1515 | PyObject *wxDataObject_GetAllFormats(wxDataObject *self,wxDataObject::Direction dir){ |
1516 | size_t count = self->GetFormatCount(dir); | |
1517 | wxDataFormat* formats = new wxDataFormat[count]; | |
1518 | self->GetAllFormats(formats, dir); | |
1519 | ||
1520 | bool blocked = wxPyBeginBlockThreads(); | |
1521 | PyObject* list = PyList_New(count); | |
1522 | for (size_t i=0; i<count; i++) { | |
1523 | wxDataFormat* format = new wxDataFormat(formats[i]); | |
ae8162c8 | 1524 | PyObject* obj = wxPyConstructObject((void*)format, wxT("wxDataFormat"), true); |
a07a67e6 RD |
1525 | PyList_Append(list, obj); |
1526 | Py_DECREF(obj); | |
1527 | } | |
1528 | wxPyEndBlockThreads(blocked); | |
1529 | delete [] formats; | |
1530 | return list; | |
1531 | } | |
1532 | PyObject *wxDataObject_GetDataHere(wxDataObject *self,wxDataFormat const &format){ | |
1533 | PyObject* rval = NULL; | |
1534 | size_t size = self->GetDataSize(format); | |
1535 | bool blocked = wxPyBeginBlockThreads(); | |
1536 | if (size) { | |
1537 | char* buf = new char[size]; | |
1538 | if (self->GetDataHere(format, buf)) | |
1539 | rval = PyString_FromStringAndSize(buf, size); | |
1540 | delete [] buf; | |
1541 | } | |
1542 | if (! rval) { | |
1543 | rval = Py_None; | |
1544 | Py_INCREF(rval); | |
1545 | } | |
1546 | wxPyEndBlockThreads(blocked); | |
1547 | return rval; | |
1548 | } | |
1549 | bool wxDataObject_SetData(wxDataObject *self,wxDataFormat const &format,PyObject *data){ | |
1550 | bool rval; | |
1551 | bool blocked = wxPyBeginBlockThreads(); | |
1552 | if (PyString_Check(data)) { | |
1553 | rval = self->SetData(format, PyString_Size(data), PyString_AsString(data)); | |
1554 | } | |
1555 | else { | |
1556 | // raise a TypeError if not a string | |
1557 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
ae8162c8 | 1558 | rval = false; |
a07a67e6 RD |
1559 | } |
1560 | wxPyEndBlockThreads(blocked); | |
1561 | return rval; | |
1562 | } | |
1563 | PyObject *wxDataObjectSimple_GetDataHere(wxDataObjectSimple *self){ | |
1564 | PyObject* rval = NULL; | |
1565 | size_t size = self->GetDataSize(); | |
1566 | bool blocked = wxPyBeginBlockThreads(); | |
1567 | if (size) { | |
1568 | char* buf = new char[size]; | |
1569 | if (self->GetDataHere(buf)) | |
1570 | rval = PyString_FromStringAndSize(buf, size); | |
1571 | delete [] buf; | |
1572 | } | |
1573 | if (! rval) { | |
1574 | rval = Py_None; | |
1575 | Py_INCREF(rval); | |
1576 | } | |
1577 | wxPyEndBlockThreads(blocked); | |
1578 | return rval; | |
1579 | } | |
1580 | bool wxDataObjectSimple_SetData(wxDataObjectSimple *self,PyObject *data){ | |
1581 | bool rval; | |
1582 | bool blocked = wxPyBeginBlockThreads(); | |
1583 | if (PyString_Check(data)) { | |
1584 | rval = self->SetData(PyString_Size(data), PyString_AsString(data)); | |
1585 | } | |
1586 | else { | |
1587 | // raise a TypeError if not a string | |
1588 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
ae8162c8 | 1589 | rval = false; |
a07a67e6 RD |
1590 | } |
1591 | wxPyEndBlockThreads(blocked); | |
1592 | return rval; | |
1593 | } | |
d55e5bfc RD |
1594 | // Create a new class for wxPython to use |
1595 | class wxPyDataObjectSimple : public wxDataObjectSimple { | |
1596 | public: | |
1597 | wxPyDataObjectSimple(const wxDataFormat& format = wxFormatInvalid) | |
1598 | : wxDataObjectSimple(format) {} | |
1599 | ||
1600 | DEC_PYCALLBACK_SIZET__const(GetDataSize); | |
1601 | bool GetDataHere(void *buf) const; | |
1602 | bool SetData(size_t len, const void *buf) const; | |
1603 | PYPRIVATE; | |
1604 | }; | |
1605 | ||
1606 | IMP_PYCALLBACK_SIZET__const(wxPyDataObjectSimple, wxDataObjectSimple, GetDataSize); | |
1607 | ||
1608 | bool wxPyDataObjectSimple::GetDataHere(void *buf) const { | |
1609 | // We need to get the data for this object and write it to buf. I think | |
1610 | // the best way to do this for wxPython is to have the Python method | |
1611 | // return either a string or None and then act appropriately with the | |
1612 | // C++ version. | |
1613 | ||
ae8162c8 | 1614 | bool rval = false; |
d55e5bfc RD |
1615 | bool blocked = wxPyBeginBlockThreads(); |
1616 | if (wxPyCBH_findCallback(m_myInst, "GetDataHere")) { | |
1617 | PyObject* ro; | |
1618 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
1619 | if (ro) { | |
1620 | rval = (ro != Py_None && PyString_Check(ro)); | |
1621 | if (rval) | |
1622 | memcpy(buf, PyString_AsString(ro), PyString_Size(ro)); | |
1623 | Py_DECREF(ro); | |
1624 | } | |
1625 | } | |
1626 | wxPyEndBlockThreads(blocked); | |
1627 | return rval; | |
1628 | } | |
1629 | ||
1630 | bool wxPyDataObjectSimple::SetData(size_t len, const void *buf) const{ | |
1631 | // For this one we simply need to make a string from buf and len | |
1632 | // and send it to the Python method. | |
ae8162c8 | 1633 | bool rval = false; |
d55e5bfc RD |
1634 | bool blocked = wxPyBeginBlockThreads(); |
1635 | if (wxPyCBH_findCallback(m_myInst, "SetData")) { | |
1636 | PyObject* data = PyString_FromStringAndSize((char*)buf, len); | |
1637 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", data)); | |
1638 | Py_DECREF(data); | |
1639 | } | |
1640 | wxPyEndBlockThreads(blocked); | |
1641 | return rval; | |
1642 | } | |
1643 | ||
1644 | // Create a new class for wxPython to use | |
1645 | class wxPyTextDataObject : public wxTextDataObject { | |
1646 | public: | |
1647 | wxPyTextDataObject(const wxString& text = wxPyEmptyString) | |
1648 | : wxTextDataObject(text) {} | |
1649 | ||
1650 | DEC_PYCALLBACK_SIZET__const(GetTextLength); | |
1651 | DEC_PYCALLBACK_STRING__const(GetText); | |
1652 | DEC_PYCALLBACK__STRING(SetText); | |
1653 | PYPRIVATE; | |
1654 | }; | |
1655 | ||
1656 | IMP_PYCALLBACK_SIZET__const(wxPyTextDataObject, wxTextDataObject, GetTextLength); | |
1657 | IMP_PYCALLBACK_STRING__const(wxPyTextDataObject, wxTextDataObject, GetText); | |
1658 | IMP_PYCALLBACK__STRING(wxPyTextDataObject, wxTextDataObject, SetText); | |
1659 | ||
1660 | ||
1661 | // Create a new class for wxPython to use | |
1662 | class wxPyBitmapDataObject : public wxBitmapDataObject { | |
1663 | public: | |
1664 | wxPyBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap) | |
1665 | : wxBitmapDataObject(bitmap) {} | |
1666 | ||
1667 | wxBitmap GetBitmap() const; | |
1668 | void SetBitmap(const wxBitmap& bitmap); | |
1669 | PYPRIVATE; | |
1670 | }; | |
1671 | ||
1672 | wxBitmap wxPyBitmapDataObject::GetBitmap() const { | |
1673 | wxBitmap* rval = &wxNullBitmap; | |
1674 | bool blocked = wxPyBeginBlockThreads(); | |
1675 | if (wxPyCBH_findCallback(m_myInst, "GetBitmap")) { | |
1676 | PyObject* ro; | |
1677 | wxBitmap* ptr; | |
1678 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
1679 | if (ro) { | |
1680 | if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxBitmap"))) | |
1681 | rval = ptr; | |
1682 | Py_DECREF(ro); | |
1683 | } | |
1684 | } | |
1685 | wxPyEndBlockThreads(blocked); | |
1686 | return *rval; | |
1687 | } | |
a07a67e6 | 1688 | |
d55e5bfc RD |
1689 | void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) { |
1690 | bool blocked = wxPyBeginBlockThreads(); | |
1691 | if (wxPyCBH_findCallback(m_myInst, "SetBitmap")) { | |
ae8162c8 | 1692 | PyObject* bo = wxPyConstructObject((void*)&bitmap, wxT("wxBitmap"), false); |
d55e5bfc RD |
1693 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", bo)); |
1694 | Py_DECREF(bo); | |
1695 | } | |
1696 | wxPyEndBlockThreads(blocked); | |
1697 | } | |
1698 | ||
d55e5bfc | 1699 | bool wxCustomDataObject_SetData(wxCustomDataObject *self,PyObject *data){ |
a07a67e6 RD |
1700 | bool rval; |
1701 | bool blocked = wxPyBeginBlockThreads(); | |
d55e5bfc | 1702 | if (PyString_Check(data)) { |
a07a67e6 | 1703 | rval = self->SetData(PyString_Size(data), PyString_AsString(data)); |
d55e5bfc RD |
1704 | } |
1705 | else { | |
1706 | // raise a TypeError if not a string | |
1707 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
ae8162c8 | 1708 | rval = false; |
d55e5bfc | 1709 | } |
a07a67e6 RD |
1710 | wxPyEndBlockThreads(blocked); |
1711 | return rval; | |
d55e5bfc RD |
1712 | } |
1713 | PyObject *wxCustomDataObject_GetData(wxCustomDataObject *self){ | |
a07a67e6 RD |
1714 | PyObject* obj; |
1715 | bool blocked = wxPyBeginBlockThreads(); | |
1716 | obj = PyString_FromStringAndSize((char*)self->GetData(), self->GetSize()); | |
1717 | wxPyEndBlockThreads(blocked); | |
1718 | return obj; | |
d55e5bfc RD |
1719 | } |
1720 | ||
1721 | #include <wx/metafile.h> | |
1722 | ||
1723 | ||
1724 | IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback); | |
1725 | ||
1726 | ||
1727 | IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave); | |
1728 | IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter); | |
1729 | IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver); | |
1730 | IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData); | |
1731 | IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop); | |
1732 | ||
1733 | ||
1734 | class wxPyTextDropTarget : public wxTextDropTarget { | |
1735 | public: | |
1736 | wxPyTextDropTarget() {} | |
1737 | ||
1738 | DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText); | |
1739 | ||
1740 | DEC_PYCALLBACK__(OnLeave); | |
1741 | DEC_PYCALLBACK_DR_2WXCDR(OnEnter); | |
1742 | DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); | |
1743 | DEC_PYCALLBACK_DR_2WXCDR(OnData); | |
1744 | DEC_PYCALLBACK_BOOL_INTINT(OnDrop); | |
1745 | ||
1746 | PYPRIVATE; | |
1747 | }; | |
1748 | ||
1749 | IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText); | |
1750 | IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave); | |
1751 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter); | |
1752 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver); | |
1753 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData); | |
1754 | IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop); | |
1755 | ||
1756 | ||
1757 | ||
1758 | class wxPyFileDropTarget : public wxFileDropTarget { | |
1759 | public: | |
1760 | wxPyFileDropTarget() {} | |
1761 | ||
1762 | virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames); | |
1763 | ||
1764 | DEC_PYCALLBACK__(OnLeave); | |
1765 | DEC_PYCALLBACK_DR_2WXCDR(OnEnter); | |
1766 | DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); | |
1767 | DEC_PYCALLBACK_DR_2WXCDR(OnData); | |
1768 | DEC_PYCALLBACK_BOOL_INTINT(OnDrop); | |
1769 | ||
1770 | PYPRIVATE; | |
1771 | }; | |
1772 | ||
1773 | bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y, | |
1774 | const wxArrayString& filenames) { | |
ae8162c8 | 1775 | bool rval = false; |
d55e5bfc RD |
1776 | bool blocked = wxPyBeginBlockThreads(); |
1777 | if (wxPyCBH_findCallback(m_myInst, "OnDropFiles")) { | |
1778 | PyObject* list = wxArrayString2PyList_helper(filenames); | |
1779 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",x,y,list)); | |
1780 | Py_DECREF(list); | |
1781 | } | |
1782 | wxPyEndBlockThreads(blocked); | |
1783 | return rval; | |
1784 | } | |
1785 | ||
1786 | ||
1787 | ||
1788 | IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave); | |
1789 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter); | |
1790 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver); | |
1791 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData); | |
1792 | IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop); | |
1793 | ||
1794 | ||
1795 | ||
1796 | ||
1797 | bool wxClipboardLocker___nonzero__(wxClipboardLocker *self){ return !!(*self); } | |
1798 | ||
6923d0a9 | 1799 | #include <wx/display.h> |
d55e5bfc | 1800 | |
ae8162c8 RD |
1801 | bool wxVideoMode___eq__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self == *other) : false; } |
1802 | bool wxVideoMode___ne__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self != *other) : true; } | |
6923d0a9 RD |
1803 | |
1804 | // dummy version of wxDisplay for when it is not enabled in the wxWidgets build | |
1805 | #if !wxUSE_DISPLAY | |
1806 | #include <wx/dynarray.h> | |
1807 | #include <wx/vidmode.h> | |
1808 | ||
1809 | WX_DECLARE_OBJARRAY(wxVideoMode, wxArrayVideoModes); | |
1810 | #include "wx/arrimpl.cpp" | |
1811 | WX_DEFINE_OBJARRAY(wxArrayVideoModes); | |
1812 | const wxVideoMode wxDefaultVideoMode; | |
1813 | ||
1814 | class wxDisplay | |
1815 | { | |
1816 | public: | |
1817 | wxDisplay(size_t index = 0) { wxPyRaiseNotImplemented(); } | |
1818 | ~wxDisplay() {} | |
1819 | ||
1820 | static size_t GetCount() | |
1821 | { wxPyRaiseNotImplemented(); return 0; } | |
1822 | ||
1823 | static int GetFromPoint(const wxPoint& pt) | |
1824 | { wxPyRaiseNotImplemented(); return wxNOT_FOUND; } | |
1825 | static int GetFromWindow(wxWindow *window) | |
1826 | { wxPyRaiseNotImplemented(); return wxNOT_FOUND; } | |
1827 | ||
1828 | virtual bool IsOk() const { return false; } | |
1829 | virtual wxRect GetGeometry() const { wxRect r; return r; } | |
1830 | virtual wxString GetName() const { return wxEmptyString; } | |
1831 | bool IsPrimary() const { return false; } | |
1832 | ||
1833 | wxArrayVideoModes GetModes(const wxVideoMode& mode = wxDefaultVideoMode) | |
1834 | { wxArrayVideoModes a; return a; } | |
1835 | ||
1836 | virtual wxVideoMode GetCurrentMode() const | |
1837 | { return wxDefaultVideoMode; } | |
1838 | ||
1839 | virtual bool ChangeMode(const wxVideoMode& mode = wxDefaultVideoMode) | |
1840 | { return false; } | |
1841 | ||
1842 | void ResetMode() {} | |
1843 | }; | |
1844 | #endif | |
1845 | ||
d55e5bfc RD |
1846 | PyObject *wxDisplay_GetModes(wxDisplay *self,wxVideoMode const &mode){ |
1847 | PyObject* pyList = NULL; | |
1848 | wxArrayVideoModes arr = self->GetModes(mode); | |
1849 | bool blocked = wxPyBeginBlockThreads(); | |
1850 | pyList = PyList_New(0); | |
1851 | for (int i=0; i < arr.GetCount(); i++) { | |
1852 | wxVideoMode* m = new wxVideoMode(arr.Item(i)); | |
1853 | PyObject* pyObj = wxPyConstructObject(m, wxT("wxVideoMode"), true); | |
1854 | PyList_Append(pyList, pyObj); | |
a07a67e6 | 1855 | Py_DECREF(pyObj); |
d55e5bfc RD |
1856 | } |
1857 | wxPyEndBlockThreads(blocked); | |
1858 | return pyList; | |
1859 | } | |
c1cb24a4 RD |
1860 | |
1861 | #include <wx/stdpaths.h> | |
1862 | ||
8fb0e70a RD |
1863 | wxStandardPaths *StandardPaths_Get(){ |
1864 | return (wxStandardPaths*) &wxStandardPaths::Get(); | |
1865 | } | |
c1cb24a4 RD |
1866 | void wxStandardPaths_SetInstallPrefix(wxStandardPaths *self,wxString const &prefix){} |
1867 | wxString wxStandardPaths_GetInstallPrefix(wxStandardPaths *self){ return wxEmptyString; } | |
d55e5bfc RD |
1868 | #ifdef __cplusplus |
1869 | extern "C" { | |
1870 | #endif | |
c32bde28 | 1871 | static PyObject *_wrap_SystemSettings_GetColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1872 | PyObject *resultobj; |
1873 | int arg1 ; | |
1874 | wxColour result; | |
1875 | PyObject * obj0 = 0 ; | |
1876 | char *kwnames[] = { | |
1877 | (char *) "index", NULL | |
1878 | }; | |
1879 | ||
1880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetColour",kwnames,&obj0)) goto fail; | |
c32bde28 | 1881 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
1882 | if (PyErr_Occurred()) SWIG_fail; |
1883 | { | |
0439c23b | 1884 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1886 | result = wxSystemSettings::GetColour((wxSystemColour )arg1); | |
1887 | ||
1888 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1889 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
1890 | } |
1891 | { | |
1892 | wxColour * resultptr; | |
1893 | resultptr = new wxColour((wxColour &) result); | |
1894 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
1895 | } | |
1896 | return resultobj; | |
1897 | fail: | |
1898 | return NULL; | |
1899 | } | |
1900 | ||
1901 | ||
c32bde28 | 1902 | static PyObject *_wrap_SystemSettings_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1903 | PyObject *resultobj; |
1904 | int arg1 ; | |
1905 | wxFont result; | |
1906 | PyObject * obj0 = 0 ; | |
1907 | char *kwnames[] = { | |
1908 | (char *) "index", NULL | |
1909 | }; | |
1910 | ||
1911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetFont",kwnames,&obj0)) goto fail; | |
c32bde28 | 1912 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
1913 | if (PyErr_Occurred()) SWIG_fail; |
1914 | { | |
0439c23b | 1915 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1917 | result = wxSystemSettings::GetFont((wxSystemFont )arg1); | |
1918 | ||
1919 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1920 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
1921 | } |
1922 | { | |
1923 | wxFont * resultptr; | |
1924 | resultptr = new wxFont((wxFont &) result); | |
1925 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
1926 | } | |
1927 | return resultobj; | |
1928 | fail: | |
1929 | return NULL; | |
1930 | } | |
1931 | ||
1932 | ||
c32bde28 | 1933 | static PyObject *_wrap_SystemSettings_GetMetric(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1934 | PyObject *resultobj; |
1935 | int arg1 ; | |
1936 | int result; | |
1937 | PyObject * obj0 = 0 ; | |
1938 | char *kwnames[] = { | |
1939 | (char *) "index", NULL | |
1940 | }; | |
1941 | ||
1942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetMetric",kwnames,&obj0)) goto fail; | |
c32bde28 | 1943 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
1944 | if (PyErr_Occurred()) SWIG_fail; |
1945 | { | |
0439c23b | 1946 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1948 | result = (int)wxSystemSettings::GetMetric((wxSystemMetric )arg1); | |
1949 | ||
1950 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1951 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 1952 | } |
c32bde28 | 1953 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
1954 | return resultobj; |
1955 | fail: | |
1956 | return NULL; | |
1957 | } | |
1958 | ||
1959 | ||
c32bde28 | 1960 | static PyObject *_wrap_SystemSettings_HasFeature(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1961 | PyObject *resultobj; |
1962 | int arg1 ; | |
1963 | bool result; | |
1964 | PyObject * obj0 = 0 ; | |
1965 | char *kwnames[] = { | |
1966 | (char *) "index", NULL | |
1967 | }; | |
1968 | ||
1969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_HasFeature",kwnames,&obj0)) goto fail; | |
c32bde28 | 1970 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
1971 | if (PyErr_Occurred()) SWIG_fail; |
1972 | { | |
0439c23b | 1973 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1975 | result = (bool)wxSystemSettings::HasFeature((wxSystemFeature )arg1); | |
1976 | ||
1977 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1978 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
1979 | } |
1980 | { | |
1981 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1982 | } | |
1983 | return resultobj; | |
1984 | fail: | |
1985 | return NULL; | |
1986 | } | |
1987 | ||
1988 | ||
c32bde28 | 1989 | static PyObject *_wrap_SystemSettings_GetScreenType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1990 | PyObject *resultobj; |
1991 | int result; | |
1992 | char *kwnames[] = { | |
1993 | NULL | |
1994 | }; | |
1995 | ||
1996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SystemSettings_GetScreenType",kwnames)) goto fail; | |
1997 | { | |
0439c23b | 1998 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2000 | result = (int)wxSystemSettings::GetScreenType(); | |
2001 | ||
2002 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2003 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 2004 | } |
c32bde28 | 2005 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
2006 | return resultobj; |
2007 | fail: | |
2008 | return NULL; | |
2009 | } | |
2010 | ||
2011 | ||
c32bde28 | 2012 | static PyObject *_wrap_SystemSettings_SetScreenType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2013 | PyObject *resultobj; |
2014 | int arg1 ; | |
2015 | PyObject * obj0 = 0 ; | |
2016 | char *kwnames[] = { | |
2017 | (char *) "screen", NULL | |
2018 | }; | |
2019 | ||
2020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_SetScreenType",kwnames,&obj0)) goto fail; | |
c32bde28 | 2021 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
2022 | if (PyErr_Occurred()) SWIG_fail; |
2023 | { | |
0439c23b | 2024 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2026 | wxSystemSettings::SetScreenType((wxSystemScreenType )arg1); | |
2027 | ||
2028 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2029 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2030 | } |
2031 | Py_INCREF(Py_None); resultobj = Py_None; | |
2032 | return resultobj; | |
2033 | fail: | |
2034 | return NULL; | |
2035 | } | |
2036 | ||
2037 | ||
c32bde28 | 2038 | static PyObject * SystemSettings_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
2039 | PyObject *obj; |
2040 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2041 | SWIG_TypeClientData(SWIGTYPE_p_wxSystemSettings, obj); | |
2042 | Py_INCREF(obj); | |
2043 | return Py_BuildValue((char *)""); | |
2044 | } | |
7e63a440 RD |
2045 | static int _wrap_WINDOW_DEFAULT_VARIANT_set(PyObject *) { |
2046 | PyErr_SetString(PyExc_TypeError,"Variable WINDOW_DEFAULT_VARIANT is read-only."); | |
2047 | return 1; | |
2048 | } | |
2049 | ||
2050 | ||
2051 | static PyObject *_wrap_WINDOW_DEFAULT_VARIANT_get() { | |
2052 | PyObject *pyobj; | |
2053 | ||
2054 | { | |
2055 | #if wxUSE_UNICODE | |
2056 | pyobj = PyUnicode_FromWideChar((&wxPyWINDOW_DEFAULT_VARIANT)->c_str(), (&wxPyWINDOW_DEFAULT_VARIANT)->Len()); | |
2057 | #else | |
2058 | pyobj = PyString_FromStringAndSize((&wxPyWINDOW_DEFAULT_VARIANT)->c_str(), (&wxPyWINDOW_DEFAULT_VARIANT)->Len()); | |
2059 | #endif | |
2060 | } | |
2061 | return pyobj; | |
2062 | } | |
2063 | ||
2064 | ||
c32bde28 | 2065 | static PyObject *_wrap_new_SystemOptions(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2066 | PyObject *resultobj; |
2067 | wxSystemOptions *result; | |
2068 | char *kwnames[] = { | |
2069 | NULL | |
2070 | }; | |
2071 | ||
2072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SystemOptions",kwnames)) goto fail; | |
2073 | { | |
2074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2075 | result = (wxSystemOptions *)new wxSystemOptions(); | |
2076 | ||
2077 | wxPyEndAllowThreads(__tstate); | |
2078 | if (PyErr_Occurred()) SWIG_fail; | |
2079 | } | |
2080 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSystemOptions, 1); | |
2081 | return resultobj; | |
2082 | fail: | |
2083 | return NULL; | |
2084 | } | |
2085 | ||
2086 | ||
c32bde28 | 2087 | static PyObject *_wrap_SystemOptions_SetOption(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2088 | PyObject *resultobj; |
2089 | wxString *arg1 = 0 ; | |
2090 | wxString *arg2 = 0 ; | |
ae8162c8 RD |
2091 | bool temp1 = false ; |
2092 | bool temp2 = false ; | |
d55e5bfc RD |
2093 | PyObject * obj0 = 0 ; |
2094 | PyObject * obj1 = 0 ; | |
2095 | char *kwnames[] = { | |
2096 | (char *) "name",(char *) "value", NULL | |
2097 | }; | |
2098 | ||
2099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOption",kwnames,&obj0,&obj1)) goto fail; | |
2100 | { | |
2101 | arg1 = wxString_in_helper(obj0); | |
2102 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 2103 | temp1 = true; |
d55e5bfc RD |
2104 | } |
2105 | { | |
2106 | arg2 = wxString_in_helper(obj1); | |
2107 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 2108 | temp2 = true; |
d55e5bfc RD |
2109 | } |
2110 | { | |
2111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2112 | wxSystemOptions::SetOption((wxString const &)*arg1,(wxString const &)*arg2); | |
2113 | ||
2114 | wxPyEndAllowThreads(__tstate); | |
2115 | if (PyErr_Occurred()) SWIG_fail; | |
2116 | } | |
2117 | Py_INCREF(Py_None); resultobj = Py_None; | |
2118 | { | |
2119 | if (temp1) | |
2120 | delete arg1; | |
2121 | } | |
2122 | { | |
2123 | if (temp2) | |
2124 | delete arg2; | |
2125 | } | |
2126 | return resultobj; | |
2127 | fail: | |
2128 | { | |
2129 | if (temp1) | |
2130 | delete arg1; | |
2131 | } | |
2132 | { | |
2133 | if (temp2) | |
2134 | delete arg2; | |
2135 | } | |
2136 | return NULL; | |
2137 | } | |
2138 | ||
2139 | ||
c32bde28 | 2140 | static PyObject *_wrap_SystemOptions_SetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2141 | PyObject *resultobj; |
2142 | wxString *arg1 = 0 ; | |
2143 | int arg2 ; | |
ae8162c8 | 2144 | bool temp1 = false ; |
d55e5bfc RD |
2145 | PyObject * obj0 = 0 ; |
2146 | PyObject * obj1 = 0 ; | |
2147 | char *kwnames[] = { | |
2148 | (char *) "name",(char *) "value", NULL | |
2149 | }; | |
2150 | ||
2151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOptionInt",kwnames,&obj0,&obj1)) goto fail; | |
2152 | { | |
2153 | arg1 = wxString_in_helper(obj0); | |
2154 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 2155 | temp1 = true; |
d55e5bfc | 2156 | } |
c32bde28 | 2157 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
2158 | if (PyErr_Occurred()) SWIG_fail; |
2159 | { | |
2160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2161 | wxSystemOptions::SetOption((wxString const &)*arg1,arg2); | |
2162 | ||
2163 | wxPyEndAllowThreads(__tstate); | |
2164 | if (PyErr_Occurred()) SWIG_fail; | |
2165 | } | |
2166 | Py_INCREF(Py_None); resultobj = Py_None; | |
2167 | { | |
2168 | if (temp1) | |
2169 | delete arg1; | |
2170 | } | |
2171 | return resultobj; | |
2172 | fail: | |
2173 | { | |
2174 | if (temp1) | |
2175 | delete arg1; | |
2176 | } | |
2177 | return NULL; | |
2178 | } | |
2179 | ||
2180 | ||
c32bde28 | 2181 | static PyObject *_wrap_SystemOptions_GetOption(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2182 | PyObject *resultobj; |
2183 | wxString *arg1 = 0 ; | |
2184 | wxString result; | |
ae8162c8 | 2185 | bool temp1 = false ; |
d55e5bfc RD |
2186 | PyObject * obj0 = 0 ; |
2187 | char *kwnames[] = { | |
2188 | (char *) "name", NULL | |
2189 | }; | |
2190 | ||
2191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOption",kwnames,&obj0)) goto fail; | |
2192 | { | |
2193 | arg1 = wxString_in_helper(obj0); | |
2194 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 2195 | temp1 = true; |
d55e5bfc RD |
2196 | } |
2197 | { | |
2198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2199 | result = wxSystemOptions::GetOption((wxString const &)*arg1); | |
2200 | ||
2201 | wxPyEndAllowThreads(__tstate); | |
2202 | if (PyErr_Occurred()) SWIG_fail; | |
2203 | } | |
2204 | { | |
2205 | #if wxUSE_UNICODE | |
2206 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2207 | #else | |
2208 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2209 | #endif | |
2210 | } | |
2211 | { | |
2212 | if (temp1) | |
2213 | delete arg1; | |
2214 | } | |
2215 | return resultobj; | |
2216 | fail: | |
2217 | { | |
2218 | if (temp1) | |
2219 | delete arg1; | |
2220 | } | |
2221 | return NULL; | |
2222 | } | |
2223 | ||
2224 | ||
c32bde28 | 2225 | static PyObject *_wrap_SystemOptions_GetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2226 | PyObject *resultobj; |
2227 | wxString *arg1 = 0 ; | |
2228 | int result; | |
ae8162c8 | 2229 | bool temp1 = false ; |
d55e5bfc RD |
2230 | PyObject * obj0 = 0 ; |
2231 | char *kwnames[] = { | |
2232 | (char *) "name", NULL | |
2233 | }; | |
2234 | ||
2235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOptionInt",kwnames,&obj0)) goto fail; | |
2236 | { | |
2237 | arg1 = wxString_in_helper(obj0); | |
2238 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 2239 | temp1 = true; |
d55e5bfc RD |
2240 | } |
2241 | { | |
2242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2243 | result = (int)wxSystemOptions::GetOptionInt((wxString const &)*arg1); | |
2244 | ||
2245 | wxPyEndAllowThreads(__tstate); | |
2246 | if (PyErr_Occurred()) SWIG_fail; | |
2247 | } | |
c32bde28 | 2248 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
2249 | { |
2250 | if (temp1) | |
2251 | delete arg1; | |
2252 | } | |
2253 | return resultobj; | |
2254 | fail: | |
2255 | { | |
2256 | if (temp1) | |
2257 | delete arg1; | |
2258 | } | |
2259 | return NULL; | |
2260 | } | |
2261 | ||
2262 | ||
c32bde28 | 2263 | static PyObject *_wrap_SystemOptions_HasOption(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2264 | PyObject *resultobj; |
2265 | wxString *arg1 = 0 ; | |
2266 | bool result; | |
ae8162c8 | 2267 | bool temp1 = false ; |
d55e5bfc RD |
2268 | PyObject * obj0 = 0 ; |
2269 | char *kwnames[] = { | |
2270 | (char *) "name", NULL | |
2271 | }; | |
2272 | ||
2273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_HasOption",kwnames,&obj0)) goto fail; | |
2274 | { | |
2275 | arg1 = wxString_in_helper(obj0); | |
2276 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 2277 | temp1 = true; |
d55e5bfc RD |
2278 | } |
2279 | { | |
2280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2281 | result = (bool)wxSystemOptions::HasOption((wxString const &)*arg1); | |
2282 | ||
2283 | wxPyEndAllowThreads(__tstate); | |
2284 | if (PyErr_Occurred()) SWIG_fail; | |
2285 | } | |
2286 | { | |
2287 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2288 | } | |
2289 | { | |
2290 | if (temp1) | |
2291 | delete arg1; | |
2292 | } | |
2293 | return resultobj; | |
2294 | fail: | |
2295 | { | |
2296 | if (temp1) | |
2297 | delete arg1; | |
2298 | } | |
2299 | return NULL; | |
2300 | } | |
2301 | ||
2302 | ||
c32bde28 | 2303 | static PyObject * SystemOptions_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
2304 | PyObject *obj; |
2305 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2306 | SWIG_TypeClientData(SWIGTYPE_p_wxSystemOptions, obj); | |
2307 | Py_INCREF(obj); | |
2308 | return Py_BuildValue((char *)""); | |
2309 | } | |
c32bde28 | 2310 | static int _wrap_FileSelectorPromptStr_set(PyObject *) { |
d55e5bfc RD |
2311 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only."); |
2312 | return 1; | |
2313 | } | |
2314 | ||
2315 | ||
2316 | static PyObject *_wrap_FileSelectorPromptStr_get() { | |
2317 | PyObject *pyobj; | |
2318 | ||
2319 | { | |
2320 | #if wxUSE_UNICODE | |
2321 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
2322 | #else | |
2323 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
2324 | #endif | |
2325 | } | |
2326 | return pyobj; | |
2327 | } | |
2328 | ||
2329 | ||
c32bde28 | 2330 | static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *) { |
d55e5bfc RD |
2331 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only."); |
2332 | return 1; | |
2333 | } | |
2334 | ||
2335 | ||
2336 | static PyObject *_wrap_FileSelectorDefaultWildcardStr_get() { | |
2337 | PyObject *pyobj; | |
2338 | ||
2339 | { | |
2340 | #if wxUSE_UNICODE | |
2341 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
2342 | #else | |
2343 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
2344 | #endif | |
2345 | } | |
2346 | return pyobj; | |
2347 | } | |
2348 | ||
2349 | ||
c32bde28 | 2350 | static int _wrap_DirSelectorPromptStr_set(PyObject *) { |
d55e5bfc RD |
2351 | PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only."); |
2352 | return 1; | |
2353 | } | |
2354 | ||
2355 | ||
2356 | static PyObject *_wrap_DirSelectorPromptStr_get() { | |
2357 | PyObject *pyobj; | |
2358 | ||
2359 | { | |
2360 | #if wxUSE_UNICODE | |
2361 | pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
2362 | #else | |
2363 | pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
2364 | #endif | |
2365 | } | |
2366 | return pyobj; | |
2367 | } | |
2368 | ||
2369 | ||
c32bde28 | 2370 | static PyObject *_wrap_NewId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2371 | PyObject *resultobj; |
2372 | long result; | |
2373 | char *kwnames[] = { | |
2374 | NULL | |
2375 | }; | |
2376 | ||
2377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewId",kwnames)) goto fail; | |
2378 | { | |
2379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2380 | result = (long)wxNewId(); | |
2381 | ||
2382 | wxPyEndAllowThreads(__tstate); | |
2383 | if (PyErr_Occurred()) SWIG_fail; | |
2384 | } | |
c32bde28 | 2385 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
2386 | return resultobj; |
2387 | fail: | |
2388 | return NULL; | |
2389 | } | |
2390 | ||
2391 | ||
c32bde28 | 2392 | static PyObject *_wrap_RegisterId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2393 | PyObject *resultobj; |
2394 | long arg1 ; | |
2395 | PyObject * obj0 = 0 ; | |
2396 | char *kwnames[] = { | |
2397 | (char *) "id", NULL | |
2398 | }; | |
2399 | ||
2400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegisterId",kwnames,&obj0)) goto fail; | |
c32bde28 | 2401 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
2402 | if (PyErr_Occurred()) SWIG_fail; |
2403 | { | |
2404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2405 | wxRegisterId(arg1); | |
2406 | ||
2407 | wxPyEndAllowThreads(__tstate); | |
2408 | if (PyErr_Occurred()) SWIG_fail; | |
2409 | } | |
2410 | Py_INCREF(Py_None); resultobj = Py_None; | |
2411 | return resultobj; | |
2412 | fail: | |
2413 | return NULL; | |
2414 | } | |
2415 | ||
2416 | ||
c32bde28 | 2417 | static PyObject *_wrap_GetCurrentId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2418 | PyObject *resultobj; |
2419 | long result; | |
2420 | char *kwnames[] = { | |
2421 | NULL | |
2422 | }; | |
2423 | ||
2424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentId",kwnames)) goto fail; | |
2425 | { | |
2426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2427 | result = (long)wxGetCurrentId(); | |
2428 | ||
2429 | wxPyEndAllowThreads(__tstate); | |
2430 | if (PyErr_Occurred()) SWIG_fail; | |
2431 | } | |
c32bde28 | 2432 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
2433 | return resultobj; |
2434 | fail: | |
2435 | return NULL; | |
2436 | } | |
2437 | ||
2438 | ||
c32bde28 | 2439 | static PyObject *_wrap_IsStockID(PyObject *, PyObject *args, PyObject *kwargs) { |
d1f3a348 RD |
2440 | PyObject *resultobj; |
2441 | int arg1 ; | |
2442 | bool result; | |
2443 | PyObject * obj0 = 0 ; | |
2444 | char *kwnames[] = { | |
2445 | (char *) "id", NULL | |
2446 | }; | |
2447 | ||
2448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsStockID",kwnames,&obj0)) goto fail; | |
c32bde28 | 2449 | arg1 = (int)SWIG_As_int(obj0); |
d1f3a348 RD |
2450 | if (PyErr_Occurred()) SWIG_fail; |
2451 | { | |
2452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2453 | result = (bool)wxIsStockID(arg1); | |
2454 | ||
2455 | wxPyEndAllowThreads(__tstate); | |
2456 | if (PyErr_Occurred()) SWIG_fail; | |
2457 | } | |
2458 | { | |
2459 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2460 | } | |
2461 | return resultobj; | |
2462 | fail: | |
2463 | return NULL; | |
2464 | } | |
2465 | ||
2466 | ||
c32bde28 | 2467 | static PyObject *_wrap_IsStockLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d1f3a348 RD |
2468 | PyObject *resultobj; |
2469 | int arg1 ; | |
2470 | wxString *arg2 = 0 ; | |
2471 | bool result; | |
ae8162c8 | 2472 | bool temp2 = false ; |
d1f3a348 RD |
2473 | PyObject * obj0 = 0 ; |
2474 | PyObject * obj1 = 0 ; | |
2475 | char *kwnames[] = { | |
2476 | (char *) "id",(char *) "label", NULL | |
2477 | }; | |
2478 | ||
2479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IsStockLabel",kwnames,&obj0,&obj1)) goto fail; | |
c32bde28 | 2480 | arg1 = (int)SWIG_As_int(obj0); |
d1f3a348 RD |
2481 | if (PyErr_Occurred()) SWIG_fail; |
2482 | { | |
2483 | arg2 = wxString_in_helper(obj1); | |
2484 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 2485 | temp2 = true; |
d1f3a348 RD |
2486 | } |
2487 | { | |
2488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2489 | result = (bool)wxIsStockLabel(arg1,(wxString const &)*arg2); | |
2490 | ||
2491 | wxPyEndAllowThreads(__tstate); | |
2492 | if (PyErr_Occurred()) SWIG_fail; | |
2493 | } | |
2494 | { | |
2495 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2496 | } | |
2497 | { | |
2498 | if (temp2) | |
2499 | delete arg2; | |
2500 | } | |
2501 | return resultobj; | |
2502 | fail: | |
2503 | { | |
2504 | if (temp2) | |
2505 | delete arg2; | |
2506 | } | |
2507 | return NULL; | |
2508 | } | |
2509 | ||
2510 | ||
c32bde28 | 2511 | static PyObject *_wrap_GetStockLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d1f3a348 RD |
2512 | PyObject *resultobj; |
2513 | int arg1 ; | |
2514 | wxString result; | |
2515 | PyObject * obj0 = 0 ; | |
2516 | char *kwnames[] = { | |
2517 | (char *) "id", NULL | |
2518 | }; | |
2519 | ||
2520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetStockLabel",kwnames,&obj0)) goto fail; | |
c32bde28 | 2521 | arg1 = (int)SWIG_As_int(obj0); |
d1f3a348 RD |
2522 | if (PyErr_Occurred()) SWIG_fail; |
2523 | { | |
2524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2525 | result = wxGetStockLabel(arg1); | |
2526 | ||
2527 | wxPyEndAllowThreads(__tstate); | |
2528 | if (PyErr_Occurred()) SWIG_fail; | |
2529 | } | |
2530 | { | |
2531 | #if wxUSE_UNICODE | |
2532 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2533 | #else | |
2534 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2535 | #endif | |
2536 | } | |
2537 | return resultobj; | |
2538 | fail: | |
2539 | return NULL; | |
2540 | } | |
2541 | ||
2542 | ||
c32bde28 | 2543 | static PyObject *_wrap_Bell(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2544 | PyObject *resultobj; |
2545 | char *kwnames[] = { | |
2546 | NULL | |
2547 | }; | |
2548 | ||
2549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Bell",kwnames)) goto fail; | |
2550 | { | |
0439c23b | 2551 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2553 | wxBell(); | |
2554 | ||
2555 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2556 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2557 | } |
2558 | Py_INCREF(Py_None); resultobj = Py_None; | |
2559 | return resultobj; | |
2560 | fail: | |
2561 | return NULL; | |
2562 | } | |
2563 | ||
2564 | ||
c32bde28 | 2565 | static PyObject *_wrap_EndBusyCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2566 | PyObject *resultobj; |
2567 | char *kwnames[] = { | |
2568 | NULL | |
2569 | }; | |
2570 | ||
2571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EndBusyCursor",kwnames)) goto fail; | |
2572 | { | |
0439c23b | 2573 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2575 | wxEndBusyCursor(); | |
2576 | ||
2577 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2578 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2579 | } |
2580 | Py_INCREF(Py_None); resultobj = Py_None; | |
2581 | return resultobj; | |
2582 | fail: | |
2583 | return NULL; | |
2584 | } | |
2585 | ||
2586 | ||
c32bde28 | 2587 | static PyObject *_wrap_GetElapsedTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 2588 | PyObject *resultobj; |
ae8162c8 | 2589 | bool arg1 = (bool) true ; |
d55e5bfc RD |
2590 | long result; |
2591 | PyObject * obj0 = 0 ; | |
2592 | char *kwnames[] = { | |
2593 | (char *) "resetTimer", NULL | |
2594 | }; | |
2595 | ||
2596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetElapsedTime",kwnames,&obj0)) goto fail; | |
2597 | if (obj0) { | |
c32bde28 | 2598 | arg1 = (bool)SWIG_As_bool(obj0); |
d55e5bfc RD |
2599 | if (PyErr_Occurred()) SWIG_fail; |
2600 | } | |
2601 | { | |
2602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2603 | result = (long)wxGetElapsedTime(arg1); | |
2604 | ||
2605 | wxPyEndAllowThreads(__tstate); | |
2606 | if (PyErr_Occurred()) SWIG_fail; | |
2607 | } | |
c32bde28 | 2608 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
2609 | return resultobj; |
2610 | fail: | |
2611 | return NULL; | |
2612 | } | |
2613 | ||
2614 | ||
c32bde28 | 2615 | static PyObject *_wrap_GetMousePosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2616 | PyObject *resultobj; |
2617 | int *arg1 = (int *) 0 ; | |
2618 | int *arg2 = (int *) 0 ; | |
2619 | int temp1 ; | |
c32bde28 | 2620 | int res1 = 0 ; |
d55e5bfc | 2621 | int temp2 ; |
c32bde28 | 2622 | int res2 = 0 ; |
d55e5bfc RD |
2623 | char *kwnames[] = { |
2624 | NULL | |
2625 | }; | |
2626 | ||
c32bde28 RD |
2627 | arg1 = &temp1; res1 = SWIG_NEWOBJ; |
2628 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
d55e5bfc RD |
2629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMousePosition",kwnames)) goto fail; |
2630 | { | |
0439c23b | 2631 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2633 | wxGetMousePosition(arg1,arg2); | |
2634 | ||
2635 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2636 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2637 | } |
2638 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
2639 | resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ? |
2640 | SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0))); | |
2641 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
2642 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
2643 | return resultobj; |
2644 | fail: | |
2645 | return NULL; | |
2646 | } | |
2647 | ||
2648 | ||
c32bde28 | 2649 | static PyObject *_wrap_IsBusy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2650 | PyObject *resultobj; |
2651 | bool result; | |
2652 | char *kwnames[] = { | |
2653 | NULL | |
2654 | }; | |
2655 | ||
2656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IsBusy",kwnames)) goto fail; | |
2657 | { | |
2658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2659 | result = (bool)wxIsBusy(); | |
2660 | ||
2661 | wxPyEndAllowThreads(__tstate); | |
2662 | if (PyErr_Occurred()) SWIG_fail; | |
2663 | } | |
2664 | { | |
2665 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2666 | } | |
2667 | return resultobj; | |
2668 | fail: | |
2669 | return NULL; | |
2670 | } | |
2671 | ||
2672 | ||
c32bde28 | 2673 | static PyObject *_wrap_Now(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2674 | PyObject *resultobj; |
2675 | wxString result; | |
2676 | char *kwnames[] = { | |
2677 | NULL | |
2678 | }; | |
2679 | ||
2680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Now",kwnames)) goto fail; | |
2681 | { | |
2682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2683 | result = wxNow(); | |
2684 | ||
2685 | wxPyEndAllowThreads(__tstate); | |
2686 | if (PyErr_Occurred()) SWIG_fail; | |
2687 | } | |
2688 | { | |
2689 | #if wxUSE_UNICODE | |
2690 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2691 | #else | |
2692 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2693 | #endif | |
2694 | } | |
2695 | return resultobj; | |
2696 | fail: | |
2697 | return NULL; | |
2698 | } | |
2699 | ||
2700 | ||
c32bde28 | 2701 | static PyObject *_wrap_Shell(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2702 | PyObject *resultobj; |
2703 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
2704 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2705 | bool result; | |
ae8162c8 | 2706 | bool temp1 = false ; |
d55e5bfc RD |
2707 | PyObject * obj0 = 0 ; |
2708 | char *kwnames[] = { | |
2709 | (char *) "command", NULL | |
2710 | }; | |
2711 | ||
2712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Shell",kwnames,&obj0)) goto fail; | |
2713 | if (obj0) { | |
2714 | { | |
2715 | arg1 = wxString_in_helper(obj0); | |
2716 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 2717 | temp1 = true; |
d55e5bfc RD |
2718 | } |
2719 | } | |
2720 | { | |
2721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2722 | result = (bool)wxShell((wxString const &)*arg1); | |
2723 | ||
2724 | wxPyEndAllowThreads(__tstate); | |
2725 | if (PyErr_Occurred()) SWIG_fail; | |
2726 | } | |
2727 | { | |
2728 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2729 | } | |
2730 | { | |
2731 | if (temp1) | |
2732 | delete arg1; | |
2733 | } | |
2734 | return resultobj; | |
2735 | fail: | |
2736 | { | |
2737 | if (temp1) | |
2738 | delete arg1; | |
2739 | } | |
2740 | return NULL; | |
2741 | } | |
2742 | ||
2743 | ||
c32bde28 | 2744 | static PyObject *_wrap_StartTimer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2745 | PyObject *resultobj; |
2746 | char *kwnames[] = { | |
2747 | NULL | |
2748 | }; | |
2749 | ||
2750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StartTimer",kwnames)) goto fail; | |
2751 | { | |
2752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2753 | wxStartTimer(); | |
2754 | ||
2755 | wxPyEndAllowThreads(__tstate); | |
2756 | if (PyErr_Occurred()) SWIG_fail; | |
2757 | } | |
2758 | Py_INCREF(Py_None); resultobj = Py_None; | |
2759 | return resultobj; | |
2760 | fail: | |
2761 | return NULL; | |
2762 | } | |
2763 | ||
2764 | ||
c32bde28 | 2765 | static PyObject *_wrap_GetOsVersion(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2766 | PyObject *resultobj; |
2767 | int *arg1 = (int *) 0 ; | |
2768 | int *arg2 = (int *) 0 ; | |
2769 | int result; | |
2770 | int temp1 ; | |
c32bde28 | 2771 | int res1 = 0 ; |
d55e5bfc | 2772 | int temp2 ; |
c32bde28 | 2773 | int res2 = 0 ; |
d55e5bfc RD |
2774 | char *kwnames[] = { |
2775 | NULL | |
2776 | }; | |
2777 | ||
c32bde28 RD |
2778 | arg1 = &temp1; res1 = SWIG_NEWOBJ; |
2779 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
d55e5bfc RD |
2780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsVersion",kwnames)) goto fail; |
2781 | { | |
2782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2783 | result = (int)wxGetOsVersion(arg1,arg2); | |
2784 | ||
2785 | wxPyEndAllowThreads(__tstate); | |
2786 | if (PyErr_Occurred()) SWIG_fail; | |
2787 | } | |
c32bde28 RD |
2788 | resultobj = SWIG_From_int((int)result); |
2789 | resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ? | |
2790 | SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0))); | |
2791 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
2792 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
2793 | return resultobj; |
2794 | fail: | |
2795 | return NULL; | |
2796 | } | |
2797 | ||
2798 | ||
c32bde28 | 2799 | static PyObject *_wrap_GetOsDescription(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2800 | PyObject *resultobj; |
2801 | wxString result; | |
2802 | char *kwnames[] = { | |
2803 | NULL | |
2804 | }; | |
2805 | ||
2806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsDescription",kwnames)) goto fail; | |
2807 | { | |
2808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2809 | result = wxGetOsDescription(); | |
2810 | ||
2811 | wxPyEndAllowThreads(__tstate); | |
2812 | if (PyErr_Occurred()) SWIG_fail; | |
2813 | } | |
2814 | { | |
2815 | #if wxUSE_UNICODE | |
2816 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2817 | #else | |
2818 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2819 | #endif | |
2820 | } | |
2821 | return resultobj; | |
2822 | fail: | |
2823 | return NULL; | |
2824 | } | |
2825 | ||
2826 | ||
c32bde28 | 2827 | static PyObject *_wrap_GetFreeMemory(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2828 | PyObject *resultobj; |
2829 | long result; | |
2830 | char *kwnames[] = { | |
2831 | NULL | |
2832 | }; | |
2833 | ||
2834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFreeMemory",kwnames)) goto fail; | |
2835 | { | |
2836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2837 | result = (long)wxGetFreeMemory(); | |
2838 | ||
2839 | wxPyEndAllowThreads(__tstate); | |
2840 | if (PyErr_Occurred()) SWIG_fail; | |
2841 | } | |
c32bde28 | 2842 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
2843 | return resultobj; |
2844 | fail: | |
2845 | return NULL; | |
2846 | } | |
2847 | ||
2848 | ||
c32bde28 | 2849 | static PyObject *_wrap_Shutdown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2850 | PyObject *resultobj; |
2851 | int arg1 ; | |
2852 | bool result; | |
2853 | PyObject * obj0 = 0 ; | |
2854 | char *kwnames[] = { | |
2855 | (char *) "wFlags", NULL | |
2856 | }; | |
2857 | ||
2858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Shutdown",kwnames,&obj0)) goto fail; | |
c32bde28 | 2859 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
2860 | if (PyErr_Occurred()) SWIG_fail; |
2861 | { | |
0439c23b | 2862 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2864 | result = (bool)wxShutdown((wxShutdownFlags )arg1); | |
2865 | ||
2866 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2867 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2868 | } |
2869 | { | |
2870 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2871 | } | |
2872 | return resultobj; | |
2873 | fail: | |
2874 | return NULL; | |
2875 | } | |
2876 | ||
2877 | ||
c32bde28 | 2878 | static PyObject *_wrap_Sleep(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2879 | PyObject *resultobj; |
2880 | int arg1 ; | |
2881 | PyObject * obj0 = 0 ; | |
2882 | char *kwnames[] = { | |
2883 | (char *) "secs", NULL | |
2884 | }; | |
2885 | ||
2886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sleep",kwnames,&obj0)) goto fail; | |
c32bde28 | 2887 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
2888 | if (PyErr_Occurred()) SWIG_fail; |
2889 | { | |
2890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2891 | wxSleep(arg1); | |
2892 | ||
2893 | wxPyEndAllowThreads(__tstate); | |
2894 | if (PyErr_Occurred()) SWIG_fail; | |
2895 | } | |
2896 | Py_INCREF(Py_None); resultobj = Py_None; | |
2897 | return resultobj; | |
2898 | fail: | |
2899 | return NULL; | |
2900 | } | |
2901 | ||
2902 | ||
c32bde28 | 2903 | static PyObject *_wrap_MilliSleep(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2904 | PyObject *resultobj; |
2905 | unsigned long arg1 ; | |
2906 | PyObject * obj0 = 0 ; | |
2907 | char *kwnames[] = { | |
2908 | (char *) "milliseconds", NULL | |
2909 | }; | |
2910 | ||
bf26d883 | 2911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MilliSleep",kwnames,&obj0)) goto fail; |
c32bde28 | 2912 | arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0); |
d55e5bfc RD |
2913 | if (PyErr_Occurred()) SWIG_fail; |
2914 | { | |
2915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
bf26d883 RD |
2916 | wxMilliSleep(arg1); |
2917 | ||
2918 | wxPyEndAllowThreads(__tstate); | |
2919 | if (PyErr_Occurred()) SWIG_fail; | |
2920 | } | |
2921 | Py_INCREF(Py_None); resultobj = Py_None; | |
2922 | return resultobj; | |
2923 | fail: | |
2924 | return NULL; | |
2925 | } | |
2926 | ||
2927 | ||
c32bde28 | 2928 | static PyObject *_wrap_MicroSleep(PyObject *, PyObject *args, PyObject *kwargs) { |
bf26d883 RD |
2929 | PyObject *resultobj; |
2930 | unsigned long arg1 ; | |
2931 | PyObject * obj0 = 0 ; | |
2932 | char *kwnames[] = { | |
2933 | (char *) "microseconds", NULL | |
2934 | }; | |
2935 | ||
2936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MicroSleep",kwnames,&obj0)) goto fail; | |
c32bde28 | 2937 | arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0); |
bf26d883 RD |
2938 | if (PyErr_Occurred()) SWIG_fail; |
2939 | { | |
2940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2941 | wxMicroSleep(arg1); | |
d55e5bfc RD |
2942 | |
2943 | wxPyEndAllowThreads(__tstate); | |
2944 | if (PyErr_Occurred()) SWIG_fail; | |
2945 | } | |
2946 | Py_INCREF(Py_None); resultobj = Py_None; | |
2947 | return resultobj; | |
2948 | fail: | |
2949 | return NULL; | |
2950 | } | |
2951 | ||
2952 | ||
c32bde28 | 2953 | static PyObject *_wrap_EnableTopLevelWindows(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2954 | PyObject *resultobj; |
2955 | bool arg1 ; | |
2956 | PyObject * obj0 = 0 ; | |
2957 | char *kwnames[] = { | |
2958 | (char *) "enable", NULL | |
2959 | }; | |
2960 | ||
2961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EnableTopLevelWindows",kwnames,&obj0)) goto fail; | |
c32bde28 | 2962 | arg1 = (bool)SWIG_As_bool(obj0); |
d55e5bfc RD |
2963 | if (PyErr_Occurred()) SWIG_fail; |
2964 | { | |
2965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2966 | wxEnableTopLevelWindows(arg1); | |
2967 | ||
2968 | wxPyEndAllowThreads(__tstate); | |
2969 | if (PyErr_Occurred()) SWIG_fail; | |
2970 | } | |
2971 | Py_INCREF(Py_None); resultobj = Py_None; | |
2972 | return resultobj; | |
2973 | fail: | |
2974 | return NULL; | |
2975 | } | |
2976 | ||
2977 | ||
c32bde28 | 2978 | static PyObject *_wrap_StripMenuCodes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2979 | PyObject *resultobj; |
2980 | wxString *arg1 = 0 ; | |
2981 | wxString result; | |
ae8162c8 | 2982 | bool temp1 = false ; |
d55e5bfc RD |
2983 | PyObject * obj0 = 0 ; |
2984 | char *kwnames[] = { | |
2985 | (char *) "in", NULL | |
2986 | }; | |
2987 | ||
2988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StripMenuCodes",kwnames,&obj0)) goto fail; | |
2989 | { | |
2990 | arg1 = wxString_in_helper(obj0); | |
2991 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 2992 | temp1 = true; |
d55e5bfc RD |
2993 | } |
2994 | { | |
2995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2996 | result = wxStripMenuCodes((wxString const &)*arg1); | |
2997 | ||
2998 | wxPyEndAllowThreads(__tstate); | |
2999 | if (PyErr_Occurred()) SWIG_fail; | |
3000 | } | |
3001 | { | |
3002 | #if wxUSE_UNICODE | |
3003 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3004 | #else | |
3005 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3006 | #endif | |
3007 | } | |
3008 | { | |
3009 | if (temp1) | |
3010 | delete arg1; | |
3011 | } | |
3012 | return resultobj; | |
3013 | fail: | |
3014 | { | |
3015 | if (temp1) | |
3016 | delete arg1; | |
3017 | } | |
3018 | return NULL; | |
3019 | } | |
3020 | ||
3021 | ||
c32bde28 | 3022 | static PyObject *_wrap_GetEmailAddress(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3023 | PyObject *resultobj; |
3024 | wxString result; | |
3025 | char *kwnames[] = { | |
3026 | NULL | |
3027 | }; | |
3028 | ||
3029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetEmailAddress",kwnames)) goto fail; | |
3030 | { | |
3031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3032 | result = wxGetEmailAddress(); | |
3033 | ||
3034 | wxPyEndAllowThreads(__tstate); | |
3035 | if (PyErr_Occurred()) SWIG_fail; | |
3036 | } | |
3037 | { | |
3038 | #if wxUSE_UNICODE | |
3039 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3040 | #else | |
3041 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3042 | #endif | |
3043 | } | |
3044 | return resultobj; | |
3045 | fail: | |
3046 | return NULL; | |
3047 | } | |
3048 | ||
3049 | ||
c32bde28 | 3050 | static PyObject *_wrap_GetHostName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3051 | PyObject *resultobj; |
3052 | wxString result; | |
3053 | char *kwnames[] = { | |
3054 | NULL | |
3055 | }; | |
3056 | ||
3057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHostName",kwnames)) goto fail; | |
3058 | { | |
3059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3060 | result = wxGetHostName(); | |
3061 | ||
3062 | wxPyEndAllowThreads(__tstate); | |
3063 | if (PyErr_Occurred()) SWIG_fail; | |
3064 | } | |
3065 | { | |
3066 | #if wxUSE_UNICODE | |
3067 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3068 | #else | |
3069 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3070 | #endif | |
3071 | } | |
3072 | return resultobj; | |
3073 | fail: | |
3074 | return NULL; | |
3075 | } | |
3076 | ||
3077 | ||
c32bde28 | 3078 | static PyObject *_wrap_GetFullHostName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3079 | PyObject *resultobj; |
3080 | wxString result; | |
3081 | char *kwnames[] = { | |
3082 | NULL | |
3083 | }; | |
3084 | ||
3085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFullHostName",kwnames)) goto fail; | |
3086 | { | |
3087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3088 | result = wxGetFullHostName(); | |
3089 | ||
3090 | wxPyEndAllowThreads(__tstate); | |
3091 | if (PyErr_Occurred()) SWIG_fail; | |
3092 | } | |
3093 | { | |
3094 | #if wxUSE_UNICODE | |
3095 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3096 | #else | |
3097 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3098 | #endif | |
3099 | } | |
3100 | return resultobj; | |
3101 | fail: | |
3102 | return NULL; | |
3103 | } | |
3104 | ||
3105 | ||
c32bde28 | 3106 | static PyObject *_wrap_GetUserId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3107 | PyObject *resultobj; |
3108 | wxString result; | |
3109 | char *kwnames[] = { | |
3110 | NULL | |
3111 | }; | |
3112 | ||
3113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserId",kwnames)) goto fail; | |
3114 | { | |
3115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3116 | result = wxGetUserId(); | |
3117 | ||
3118 | wxPyEndAllowThreads(__tstate); | |
3119 | if (PyErr_Occurred()) SWIG_fail; | |
3120 | } | |
3121 | { | |
3122 | #if wxUSE_UNICODE | |
3123 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3124 | #else | |
3125 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3126 | #endif | |
3127 | } | |
3128 | return resultobj; | |
3129 | fail: | |
3130 | return NULL; | |
3131 | } | |
3132 | ||
3133 | ||
c32bde28 | 3134 | static PyObject *_wrap_GetUserName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3135 | PyObject *resultobj; |
3136 | wxString result; | |
3137 | char *kwnames[] = { | |
3138 | NULL | |
3139 | }; | |
3140 | ||
3141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserName",kwnames)) goto fail; | |
3142 | { | |
3143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3144 | result = wxGetUserName(); | |
3145 | ||
3146 | wxPyEndAllowThreads(__tstate); | |
3147 | if (PyErr_Occurred()) SWIG_fail; | |
3148 | } | |
3149 | { | |
3150 | #if wxUSE_UNICODE | |
3151 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3152 | #else | |
3153 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3154 | #endif | |
3155 | } | |
3156 | return resultobj; | |
3157 | fail: | |
3158 | return NULL; | |
3159 | } | |
3160 | ||
3161 | ||
c32bde28 | 3162 | static PyObject *_wrap_GetHomeDir(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3163 | PyObject *resultobj; |
3164 | wxString result; | |
3165 | char *kwnames[] = { | |
3166 | NULL | |
3167 | }; | |
3168 | ||
3169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHomeDir",kwnames)) goto fail; | |
3170 | { | |
3171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3172 | result = wxGetHomeDir(); | |
3173 | ||
3174 | wxPyEndAllowThreads(__tstate); | |
3175 | if (PyErr_Occurred()) SWIG_fail; | |
3176 | } | |
3177 | { | |
3178 | #if wxUSE_UNICODE | |
3179 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3180 | #else | |
3181 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3182 | #endif | |
3183 | } | |
3184 | return resultobj; | |
3185 | fail: | |
3186 | return NULL; | |
3187 | } | |
3188 | ||
3189 | ||
c32bde28 | 3190 | static PyObject *_wrap_GetUserHome(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3191 | PyObject *resultobj; |
3192 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
3193 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
3194 | wxString result; | |
ae8162c8 | 3195 | bool temp1 = false ; |
d55e5bfc RD |
3196 | PyObject * obj0 = 0 ; |
3197 | char *kwnames[] = { | |
3198 | (char *) "user", NULL | |
3199 | }; | |
3200 | ||
3201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetUserHome",kwnames,&obj0)) goto fail; | |
3202 | if (obj0) { | |
3203 | { | |
3204 | arg1 = wxString_in_helper(obj0); | |
3205 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 3206 | temp1 = true; |
d55e5bfc RD |
3207 | } |
3208 | } | |
3209 | { | |
3210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3211 | result = wxGetUserHome((wxString const &)*arg1); | |
3212 | ||
3213 | wxPyEndAllowThreads(__tstate); | |
3214 | if (PyErr_Occurred()) SWIG_fail; | |
3215 | } | |
3216 | { | |
3217 | #if wxUSE_UNICODE | |
3218 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3219 | #else | |
3220 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3221 | #endif | |
3222 | } | |
3223 | { | |
3224 | if (temp1) | |
3225 | delete arg1; | |
3226 | } | |
3227 | return resultobj; | |
3228 | fail: | |
3229 | { | |
3230 | if (temp1) | |
3231 | delete arg1; | |
3232 | } | |
3233 | return NULL; | |
3234 | } | |
3235 | ||
3236 | ||
c32bde28 | 3237 | static PyObject *_wrap_GetProcessId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3238 | PyObject *resultobj; |
3239 | unsigned long result; | |
3240 | char *kwnames[] = { | |
3241 | NULL | |
3242 | }; | |
3243 | ||
3244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetProcessId",kwnames)) goto fail; | |
3245 | { | |
3246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3247 | result = (unsigned long)wxGetProcessId(); | |
3248 | ||
3249 | wxPyEndAllowThreads(__tstate); | |
3250 | if (PyErr_Occurred()) SWIG_fail; | |
3251 | } | |
c32bde28 | 3252 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
3253 | return resultobj; |
3254 | fail: | |
3255 | return NULL; | |
3256 | } | |
3257 | ||
3258 | ||
c32bde28 | 3259 | static PyObject *_wrap_Trap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3260 | PyObject *resultobj; |
3261 | char *kwnames[] = { | |
3262 | NULL | |
3263 | }; | |
3264 | ||
3265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Trap",kwnames)) goto fail; | |
3266 | { | |
3267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3268 | wxTrap(); | |
3269 | ||
3270 | wxPyEndAllowThreads(__tstate); | |
3271 | if (PyErr_Occurred()) SWIG_fail; | |
3272 | } | |
3273 | Py_INCREF(Py_None); resultobj = Py_None; | |
3274 | return resultobj; | |
3275 | fail: | |
3276 | return NULL; | |
3277 | } | |
3278 | ||
3279 | ||
c32bde28 | 3280 | static PyObject *_wrap_FileSelector(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3281 | PyObject *resultobj; |
3282 | wxString const &arg1_defvalue = wxPyFileSelectorPromptStr ; | |
3283 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
3284 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3285 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3286 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3287 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3288 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
3289 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
3290 | wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ; | |
3291 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
3292 | int arg6 = (int) 0 ; | |
3293 | wxWindow *arg7 = (wxWindow *) NULL ; | |
3294 | int arg8 = (int) -1 ; | |
3295 | int arg9 = (int) -1 ; | |
3296 | wxString result; | |
ae8162c8 RD |
3297 | bool temp1 = false ; |
3298 | bool temp2 = false ; | |
3299 | bool temp3 = false ; | |
3300 | bool temp4 = false ; | |
3301 | bool temp5 = false ; | |
d55e5bfc RD |
3302 | PyObject * obj0 = 0 ; |
3303 | PyObject * obj1 = 0 ; | |
3304 | PyObject * obj2 = 0 ; | |
3305 | PyObject * obj3 = 0 ; | |
3306 | PyObject * obj4 = 0 ; | |
3307 | PyObject * obj5 = 0 ; | |
3308 | PyObject * obj6 = 0 ; | |
3309 | PyObject * obj7 = 0 ; | |
3310 | PyObject * obj8 = 0 ; | |
3311 | char *kwnames[] = { | |
3312 | (char *) "message",(char *) "default_path",(char *) "default_filename",(char *) "default_extension",(char *) "wildcard",(char *) "flags",(char *) "parent",(char *) "x",(char *) "y", NULL | |
3313 | }; | |
3314 | ||
3315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOOOOO:FileSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
3316 | if (obj0) { | |
3317 | { | |
3318 | arg1 = wxString_in_helper(obj0); | |
3319 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 3320 | temp1 = true; |
d55e5bfc RD |
3321 | } |
3322 | } | |
3323 | if (obj1) { | |
3324 | { | |
3325 | arg2 = wxString_in_helper(obj1); | |
3326 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 3327 | temp2 = true; |
d55e5bfc RD |
3328 | } |
3329 | } | |
3330 | if (obj2) { | |
3331 | { | |
3332 | arg3 = wxString_in_helper(obj2); | |
3333 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 3334 | temp3 = true; |
d55e5bfc RD |
3335 | } |
3336 | } | |
3337 | if (obj3) { | |
3338 | { | |
3339 | arg4 = wxString_in_helper(obj3); | |
3340 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 3341 | temp4 = true; |
d55e5bfc RD |
3342 | } |
3343 | } | |
3344 | if (obj4) { | |
3345 | { | |
3346 | arg5 = wxString_in_helper(obj4); | |
3347 | if (arg5 == NULL) SWIG_fail; | |
ae8162c8 | 3348 | temp5 = true; |
d55e5bfc RD |
3349 | } |
3350 | } | |
3351 | if (obj5) { | |
c32bde28 | 3352 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
3353 | if (PyErr_Occurred()) SWIG_fail; |
3354 | } | |
3355 | if (obj6) { | |
3356 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow, | |
3357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3358 | } | |
3359 | if (obj7) { | |
c32bde28 | 3360 | arg8 = (int)SWIG_As_int(obj7); |
d55e5bfc RD |
3361 | if (PyErr_Occurred()) SWIG_fail; |
3362 | } | |
3363 | if (obj8) { | |
c32bde28 | 3364 | arg9 = (int)SWIG_As_int(obj8); |
d55e5bfc RD |
3365 | if (PyErr_Occurred()) SWIG_fail; |
3366 | } | |
3367 | { | |
0439c23b | 3368 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3370 | result = wxFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,arg7,arg8,arg9); | |
3371 | ||
3372 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3373 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3374 | } |
3375 | { | |
3376 | #if wxUSE_UNICODE | |
3377 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3378 | #else | |
3379 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3380 | #endif | |
3381 | } | |
3382 | { | |
3383 | if (temp1) | |
3384 | delete arg1; | |
3385 | } | |
3386 | { | |
3387 | if (temp2) | |
3388 | delete arg2; | |
3389 | } | |
3390 | { | |
3391 | if (temp3) | |
3392 | delete arg3; | |
3393 | } | |
3394 | { | |
3395 | if (temp4) | |
3396 | delete arg4; | |
3397 | } | |
3398 | { | |
3399 | if (temp5) | |
3400 | delete arg5; | |
3401 | } | |
3402 | return resultobj; | |
3403 | fail: | |
3404 | { | |
3405 | if (temp1) | |
3406 | delete arg1; | |
3407 | } | |
3408 | { | |
3409 | if (temp2) | |
3410 | delete arg2; | |
3411 | } | |
3412 | { | |
3413 | if (temp3) | |
3414 | delete arg3; | |
3415 | } | |
3416 | { | |
3417 | if (temp4) | |
3418 | delete arg4; | |
3419 | } | |
3420 | { | |
3421 | if (temp5) | |
3422 | delete arg5; | |
3423 | } | |
3424 | return NULL; | |
3425 | } | |
3426 | ||
3427 | ||
c32bde28 | 3428 | static PyObject *_wrap_LoadFileSelector(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3429 | PyObject *resultobj; |
3430 | wxString *arg1 = 0 ; | |
3431 | wxString *arg2 = 0 ; | |
3432 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3433 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3434 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3435 | wxString result; | |
ae8162c8 RD |
3436 | bool temp1 = false ; |
3437 | bool temp2 = false ; | |
3438 | bool temp3 = false ; | |
d55e5bfc RD |
3439 | PyObject * obj0 = 0 ; |
3440 | PyObject * obj1 = 0 ; | |
3441 | PyObject * obj2 = 0 ; | |
3442 | PyObject * obj3 = 0 ; | |
3443 | char *kwnames[] = { | |
3444 | (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL | |
3445 | }; | |
3446 | ||
3447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:LoadFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3448 | { | |
3449 | arg1 = wxString_in_helper(obj0); | |
3450 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 3451 | temp1 = true; |
d55e5bfc RD |
3452 | } |
3453 | { | |
3454 | arg2 = wxString_in_helper(obj1); | |
3455 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 3456 | temp2 = true; |
d55e5bfc RD |
3457 | } |
3458 | if (obj2) { | |
3459 | { | |
3460 | arg3 = wxString_in_helper(obj2); | |
3461 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 3462 | temp3 = true; |
d55e5bfc RD |
3463 | } |
3464 | } | |
3465 | if (obj3) { | |
3466 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
3467 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3468 | } | |
3469 | { | |
0439c23b | 3470 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3472 | result = wxLoadFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
3473 | ||
3474 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3475 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3476 | } |
3477 | { | |
3478 | #if wxUSE_UNICODE | |
3479 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3480 | #else | |
3481 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3482 | #endif | |
3483 | } | |
3484 | { | |
3485 | if (temp1) | |
3486 | delete arg1; | |
3487 | } | |
3488 | { | |
3489 | if (temp2) | |
3490 | delete arg2; | |
3491 | } | |
3492 | { | |
3493 | if (temp3) | |
3494 | delete arg3; | |
3495 | } | |
3496 | return resultobj; | |
3497 | fail: | |
3498 | { | |
3499 | if (temp1) | |
3500 | delete arg1; | |
3501 | } | |
3502 | { | |
3503 | if (temp2) | |
3504 | delete arg2; | |
3505 | } | |
3506 | { | |
3507 | if (temp3) | |
3508 | delete arg3; | |
3509 | } | |
3510 | return NULL; | |
3511 | } | |
3512 | ||
3513 | ||
c32bde28 | 3514 | static PyObject *_wrap_SaveFileSelector(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3515 | PyObject *resultobj; |
3516 | wxString *arg1 = 0 ; | |
3517 | wxString *arg2 = 0 ; | |
3518 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3519 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3520 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3521 | wxString result; | |
ae8162c8 RD |
3522 | bool temp1 = false ; |
3523 | bool temp2 = false ; | |
3524 | bool temp3 = false ; | |
d55e5bfc RD |
3525 | PyObject * obj0 = 0 ; |
3526 | PyObject * obj1 = 0 ; | |
3527 | PyObject * obj2 = 0 ; | |
3528 | PyObject * obj3 = 0 ; | |
3529 | char *kwnames[] = { | |
3530 | (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL | |
3531 | }; | |
3532 | ||
3533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:SaveFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3534 | { | |
3535 | arg1 = wxString_in_helper(obj0); | |
3536 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 3537 | temp1 = true; |
d55e5bfc RD |
3538 | } |
3539 | { | |
3540 | arg2 = wxString_in_helper(obj1); | |
3541 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 3542 | temp2 = true; |
d55e5bfc RD |
3543 | } |
3544 | if (obj2) { | |
3545 | { | |
3546 | arg3 = wxString_in_helper(obj2); | |
3547 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 3548 | temp3 = true; |
d55e5bfc RD |
3549 | } |
3550 | } | |
3551 | if (obj3) { | |
3552 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
3553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3554 | } | |
3555 | { | |
0439c23b | 3556 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3558 | result = wxSaveFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
3559 | ||
3560 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3561 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3562 | } |
3563 | { | |
3564 | #if wxUSE_UNICODE | |
3565 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3566 | #else | |
3567 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3568 | #endif | |
3569 | } | |
3570 | { | |
3571 | if (temp1) | |
3572 | delete arg1; | |
3573 | } | |
3574 | { | |
3575 | if (temp2) | |
3576 | delete arg2; | |
3577 | } | |
3578 | { | |
3579 | if (temp3) | |
3580 | delete arg3; | |
3581 | } | |
3582 | return resultobj; | |
3583 | fail: | |
3584 | { | |
3585 | if (temp1) | |
3586 | delete arg1; | |
3587 | } | |
3588 | { | |
3589 | if (temp2) | |
3590 | delete arg2; | |
3591 | } | |
3592 | { | |
3593 | if (temp3) | |
3594 | delete arg3; | |
3595 | } | |
3596 | return NULL; | |
3597 | } | |
3598 | ||
3599 | ||
c32bde28 | 3600 | static PyObject *_wrap_DirSelector(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3601 | PyObject *resultobj; |
3602 | wxString const &arg1_defvalue = wxPyDirSelectorPromptStr ; | |
3603 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
3604 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3605 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3606 | long arg3 = (long) wxDD_DEFAULT_STYLE ; | |
3607 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3608 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3609 | wxWindow *arg5 = (wxWindow *) NULL ; | |
3610 | wxString result; | |
ae8162c8 RD |
3611 | bool temp1 = false ; |
3612 | bool temp2 = false ; | |
d55e5bfc RD |
3613 | wxPoint temp4 ; |
3614 | PyObject * obj0 = 0 ; | |
3615 | PyObject * obj1 = 0 ; | |
3616 | PyObject * obj2 = 0 ; | |
3617 | PyObject * obj3 = 0 ; | |
3618 | PyObject * obj4 = 0 ; | |
3619 | char *kwnames[] = { | |
3620 | (char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "parent", NULL | |
3621 | }; | |
3622 | ||
3623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:DirSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
3624 | if (obj0) { | |
3625 | { | |
3626 | arg1 = wxString_in_helper(obj0); | |
3627 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 3628 | temp1 = true; |
d55e5bfc RD |
3629 | } |
3630 | } | |
3631 | if (obj1) { | |
3632 | { | |
3633 | arg2 = wxString_in_helper(obj1); | |
3634 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 3635 | temp2 = true; |
d55e5bfc RD |
3636 | } |
3637 | } | |
3638 | if (obj2) { | |
c32bde28 | 3639 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
3640 | if (PyErr_Occurred()) SWIG_fail; |
3641 | } | |
3642 | if (obj3) { | |
3643 | { | |
3644 | arg4 = &temp4; | |
3645 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3646 | } | |
3647 | } | |
3648 | if (obj4) { | |
3649 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxWindow, | |
3650 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3651 | } | |
3652 | { | |
0439c23b | 3653 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3655 | result = wxDirSelector((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxPoint const &)*arg4,arg5); | |
3656 | ||
3657 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3658 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3659 | } |
3660 | { | |
3661 | #if wxUSE_UNICODE | |
3662 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3663 | #else | |
3664 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3665 | #endif | |
3666 | } | |
3667 | { | |
3668 | if (temp1) | |
3669 | delete arg1; | |
3670 | } | |
3671 | { | |
3672 | if (temp2) | |
3673 | delete arg2; | |
3674 | } | |
3675 | return resultobj; | |
3676 | fail: | |
3677 | { | |
3678 | if (temp1) | |
3679 | delete arg1; | |
3680 | } | |
3681 | { | |
3682 | if (temp2) | |
3683 | delete arg2; | |
3684 | } | |
3685 | return NULL; | |
3686 | } | |
3687 | ||
3688 | ||
c32bde28 | 3689 | static PyObject *_wrap_GetTextFromUser(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3690 | PyObject *resultobj; |
3691 | wxString *arg1 = 0 ; | |
3692 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3693 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3694 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3695 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3696 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3697 | int arg5 = (int) -1 ; | |
3698 | int arg6 = (int) -1 ; | |
ae8162c8 | 3699 | bool arg7 = (bool) true ; |
d55e5bfc | 3700 | wxString result; |
ae8162c8 RD |
3701 | bool temp1 = false ; |
3702 | bool temp2 = false ; | |
3703 | bool temp3 = false ; | |
d55e5bfc RD |
3704 | PyObject * obj0 = 0 ; |
3705 | PyObject * obj1 = 0 ; | |
3706 | PyObject * obj2 = 0 ; | |
3707 | PyObject * obj3 = 0 ; | |
3708 | PyObject * obj4 = 0 ; | |
3709 | PyObject * obj5 = 0 ; | |
3710 | PyObject * obj6 = 0 ; | |
3711 | char *kwnames[] = { | |
3712 | (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre", NULL | |
3713 | }; | |
3714 | ||
3715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GetTextFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
3716 | { | |
3717 | arg1 = wxString_in_helper(obj0); | |
3718 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 3719 | temp1 = true; |
d55e5bfc RD |
3720 | } |
3721 | if (obj1) { | |
3722 | { | |
3723 | arg2 = wxString_in_helper(obj1); | |
3724 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 3725 | temp2 = true; |
d55e5bfc RD |
3726 | } |
3727 | } | |
3728 | if (obj2) { | |
3729 | { | |
3730 | arg3 = wxString_in_helper(obj2); | |
3731 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 3732 | temp3 = true; |
d55e5bfc RD |
3733 | } |
3734 | } | |
3735 | if (obj3) { | |
3736 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
3737 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3738 | } | |
3739 | if (obj4) { | |
c32bde28 | 3740 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
3741 | if (PyErr_Occurred()) SWIG_fail; |
3742 | } | |
3743 | if (obj5) { | |
c32bde28 | 3744 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
3745 | if (PyErr_Occurred()) SWIG_fail; |
3746 | } | |
3747 | if (obj6) { | |
c32bde28 | 3748 | arg7 = (bool)SWIG_As_bool(obj6); |
d55e5bfc RD |
3749 | if (PyErr_Occurred()) SWIG_fail; |
3750 | } | |
3751 | { | |
0439c23b | 3752 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3754 | result = wxGetTextFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7); | |
3755 | ||
3756 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3757 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3758 | } |
3759 | { | |
3760 | #if wxUSE_UNICODE | |
3761 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3762 | #else | |
3763 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3764 | #endif | |
3765 | } | |
3766 | { | |
3767 | if (temp1) | |
3768 | delete arg1; | |
3769 | } | |
3770 | { | |
3771 | if (temp2) | |
3772 | delete arg2; | |
3773 | } | |
3774 | { | |
3775 | if (temp3) | |
3776 | delete arg3; | |
3777 | } | |
3778 | return resultobj; | |
3779 | fail: | |
3780 | { | |
3781 | if (temp1) | |
3782 | delete arg1; | |
3783 | } | |
3784 | { | |
3785 | if (temp2) | |
3786 | delete arg2; | |
3787 | } | |
3788 | { | |
3789 | if (temp3) | |
3790 | delete arg3; | |
3791 | } | |
3792 | return NULL; | |
3793 | } | |
3794 | ||
3795 | ||
c32bde28 | 3796 | static PyObject *_wrap_GetPasswordFromUser(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3797 | PyObject *resultobj; |
3798 | wxString *arg1 = 0 ; | |
3799 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3800 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3801 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3802 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3803 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3804 | wxString result; | |
ae8162c8 RD |
3805 | bool temp1 = false ; |
3806 | bool temp2 = false ; | |
3807 | bool temp3 = false ; | |
d55e5bfc RD |
3808 | PyObject * obj0 = 0 ; |
3809 | PyObject * obj1 = 0 ; | |
3810 | PyObject * obj2 = 0 ; | |
3811 | PyObject * obj3 = 0 ; | |
3812 | char *kwnames[] = { | |
3813 | (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent", NULL | |
3814 | }; | |
3815 | ||
3816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:GetPasswordFromUser",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3817 | { | |
3818 | arg1 = wxString_in_helper(obj0); | |
3819 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 3820 | temp1 = true; |
d55e5bfc RD |
3821 | } |
3822 | if (obj1) { | |
3823 | { | |
3824 | arg2 = wxString_in_helper(obj1); | |
3825 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 3826 | temp2 = true; |
d55e5bfc RD |
3827 | } |
3828 | } | |
3829 | if (obj2) { | |
3830 | { | |
3831 | arg3 = wxString_in_helper(obj2); | |
3832 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 3833 | temp3 = true; |
d55e5bfc RD |
3834 | } |
3835 | } | |
3836 | if (obj3) { | |
3837 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
3838 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3839 | } | |
3840 | { | |
0439c23b | 3841 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3843 | result = wxGetPasswordFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
3844 | ||
3845 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3846 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3847 | } |
3848 | { | |
3849 | #if wxUSE_UNICODE | |
3850 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3851 | #else | |
3852 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3853 | #endif | |
3854 | } | |
3855 | { | |
3856 | if (temp1) | |
3857 | delete arg1; | |
3858 | } | |
3859 | { | |
3860 | if (temp2) | |
3861 | delete arg2; | |
3862 | } | |
3863 | { | |
3864 | if (temp3) | |
3865 | delete arg3; | |
3866 | } | |
3867 | return resultobj; | |
3868 | fail: | |
3869 | { | |
3870 | if (temp1) | |
3871 | delete arg1; | |
3872 | } | |
3873 | { | |
3874 | if (temp2) | |
3875 | delete arg2; | |
3876 | } | |
3877 | { | |
3878 | if (temp3) | |
3879 | delete arg3; | |
3880 | } | |
3881 | return NULL; | |
3882 | } | |
3883 | ||
3884 | ||
c32bde28 | 3885 | static PyObject *_wrap_GetSingleChoice(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3886 | PyObject *resultobj; |
3887 | wxString *arg1 = 0 ; | |
3888 | wxString *arg2 = 0 ; | |
3889 | int arg3 ; | |
3890 | wxString *arg4 = (wxString *) 0 ; | |
3891 | wxWindow *arg5 = (wxWindow *) NULL ; | |
3892 | int arg6 = (int) -1 ; | |
3893 | int arg7 = (int) -1 ; | |
ae8162c8 | 3894 | bool arg8 = (bool) true ; |
d55e5bfc RD |
3895 | int arg9 = (int) 150 ; |
3896 | int arg10 = (int) 200 ; | |
3897 | wxString result; | |
ae8162c8 RD |
3898 | bool temp1 = false ; |
3899 | bool temp2 = false ; | |
d55e5bfc RD |
3900 | PyObject * obj0 = 0 ; |
3901 | PyObject * obj1 = 0 ; | |
3902 | PyObject * obj2 = 0 ; | |
3903 | PyObject * obj3 = 0 ; | |
3904 | PyObject * obj4 = 0 ; | |
3905 | PyObject * obj5 = 0 ; | |
3906 | PyObject * obj6 = 0 ; | |
3907 | PyObject * obj7 = 0 ; | |
3908 | PyObject * obj8 = 0 ; | |
3909 | char *kwnames[] = { | |
3910 | (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL | |
3911 | }; | |
3912 | ||
3913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
3914 | { | |
3915 | arg1 = wxString_in_helper(obj0); | |
3916 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 3917 | temp1 = true; |
d55e5bfc RD |
3918 | } |
3919 | { | |
3920 | arg2 = wxString_in_helper(obj1); | |
3921 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 3922 | temp2 = true; |
d55e5bfc RD |
3923 | } |
3924 | { | |
3925 | arg3 = PyList_Size(obj2); | |
3926 | arg4 = wxString_LIST_helper(obj2); | |
3927 | if (arg4 == NULL) SWIG_fail; | |
3928 | } | |
3929 | if (obj3) { | |
3930 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow, | |
3931 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3932 | } | |
3933 | if (obj4) { | |
c32bde28 | 3934 | arg6 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
3935 | if (PyErr_Occurred()) SWIG_fail; |
3936 | } | |
3937 | if (obj5) { | |
c32bde28 | 3938 | arg7 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
3939 | if (PyErr_Occurred()) SWIG_fail; |
3940 | } | |
3941 | if (obj6) { | |
c32bde28 | 3942 | arg8 = (bool)SWIG_As_bool(obj6); |
d55e5bfc RD |
3943 | if (PyErr_Occurred()) SWIG_fail; |
3944 | } | |
3945 | if (obj7) { | |
c32bde28 | 3946 | arg9 = (int)SWIG_As_int(obj7); |
d55e5bfc RD |
3947 | if (PyErr_Occurred()) SWIG_fail; |
3948 | } | |
3949 | if (obj8) { | |
c32bde28 | 3950 | arg10 = (int)SWIG_As_int(obj8); |
d55e5bfc RD |
3951 | if (PyErr_Occurred()) SWIG_fail; |
3952 | } | |
3953 | { | |
0439c23b | 3954 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3956 | result = wxGetSingleChoice((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); | |
3957 | ||
3958 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3959 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3960 | } |
3961 | { | |
3962 | #if wxUSE_UNICODE | |
3963 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3964 | #else | |
3965 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3966 | #endif | |
3967 | } | |
3968 | { | |
3969 | if (temp1) | |
3970 | delete arg1; | |
3971 | } | |
3972 | { | |
3973 | if (temp2) | |
3974 | delete arg2; | |
3975 | } | |
3976 | { | |
3977 | if (arg4) delete [] arg4; | |
3978 | } | |
3979 | return resultobj; | |
3980 | fail: | |
3981 | { | |
3982 | if (temp1) | |
3983 | delete arg1; | |
3984 | } | |
3985 | { | |
3986 | if (temp2) | |
3987 | delete arg2; | |
3988 | } | |
3989 | { | |
3990 | if (arg4) delete [] arg4; | |
3991 | } | |
3992 | return NULL; | |
3993 | } | |
3994 | ||
3995 | ||
c32bde28 | 3996 | static PyObject *_wrap_GetSingleChoiceIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3997 | PyObject *resultobj; |
3998 | wxString *arg1 = 0 ; | |
3999 | wxString *arg2 = 0 ; | |
4000 | int arg3 ; | |
4001 | wxString *arg4 = (wxString *) 0 ; | |
4002 | wxWindow *arg5 = (wxWindow *) NULL ; | |
4003 | int arg6 = (int) -1 ; | |
4004 | int arg7 = (int) -1 ; | |
ae8162c8 | 4005 | bool arg8 = (bool) true ; |
d55e5bfc RD |
4006 | int arg9 = (int) 150 ; |
4007 | int arg10 = (int) 200 ; | |
4008 | int result; | |
ae8162c8 RD |
4009 | bool temp1 = false ; |
4010 | bool temp2 = false ; | |
d55e5bfc RD |
4011 | PyObject * obj0 = 0 ; |
4012 | PyObject * obj1 = 0 ; | |
4013 | PyObject * obj2 = 0 ; | |
4014 | PyObject * obj3 = 0 ; | |
4015 | PyObject * obj4 = 0 ; | |
4016 | PyObject * obj5 = 0 ; | |
4017 | PyObject * obj6 = 0 ; | |
4018 | PyObject * obj7 = 0 ; | |
4019 | PyObject * obj8 = 0 ; | |
4020 | char *kwnames[] = { | |
4021 | (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL | |
4022 | }; | |
4023 | ||
4024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoiceIndex",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
4025 | { | |
4026 | arg1 = wxString_in_helper(obj0); | |
4027 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 4028 | temp1 = true; |
d55e5bfc RD |
4029 | } |
4030 | { | |
4031 | arg2 = wxString_in_helper(obj1); | |
4032 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 4033 | temp2 = true; |
d55e5bfc RD |
4034 | } |
4035 | { | |
4036 | arg3 = PyList_Size(obj2); | |
4037 | arg4 = wxString_LIST_helper(obj2); | |
4038 | if (arg4 == NULL) SWIG_fail; | |
4039 | } | |
4040 | if (obj3) { | |
4041 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow, | |
4042 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4043 | } | |
4044 | if (obj4) { | |
c32bde28 | 4045 | arg6 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
4046 | if (PyErr_Occurred()) SWIG_fail; |
4047 | } | |
4048 | if (obj5) { | |
c32bde28 | 4049 | arg7 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
4050 | if (PyErr_Occurred()) SWIG_fail; |
4051 | } | |
4052 | if (obj6) { | |
c32bde28 | 4053 | arg8 = (bool)SWIG_As_bool(obj6); |
d55e5bfc RD |
4054 | if (PyErr_Occurred()) SWIG_fail; |
4055 | } | |
4056 | if (obj7) { | |
c32bde28 | 4057 | arg9 = (int)SWIG_As_int(obj7); |
d55e5bfc RD |
4058 | if (PyErr_Occurred()) SWIG_fail; |
4059 | } | |
4060 | if (obj8) { | |
c32bde28 | 4061 | arg10 = (int)SWIG_As_int(obj8); |
d55e5bfc RD |
4062 | if (PyErr_Occurred()) SWIG_fail; |
4063 | } | |
4064 | { | |
0439c23b | 4065 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4067 | result = (int)wxGetSingleChoiceIndex((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); | |
4068 | ||
4069 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4070 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 4071 | } |
c32bde28 | 4072 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4073 | { |
4074 | if (temp1) | |
4075 | delete arg1; | |
4076 | } | |
4077 | { | |
4078 | if (temp2) | |
4079 | delete arg2; | |
4080 | } | |
4081 | { | |
4082 | if (arg4) delete [] arg4; | |
4083 | } | |
4084 | return resultobj; | |
4085 | fail: | |
4086 | { | |
4087 | if (temp1) | |
4088 | delete arg1; | |
4089 | } | |
4090 | { | |
4091 | if (temp2) | |
4092 | delete arg2; | |
4093 | } | |
4094 | { | |
4095 | if (arg4) delete [] arg4; | |
4096 | } | |
4097 | return NULL; | |
4098 | } | |
4099 | ||
4100 | ||
c32bde28 | 4101 | static PyObject *_wrap_MessageBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4102 | PyObject *resultobj; |
4103 | wxString *arg1 = 0 ; | |
4104 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
4105 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
4106 | int arg3 = (int) wxOK|wxCENTRE ; | |
4107 | wxWindow *arg4 = (wxWindow *) NULL ; | |
4108 | int arg5 = (int) -1 ; | |
4109 | int arg6 = (int) -1 ; | |
4110 | int result; | |
ae8162c8 RD |
4111 | bool temp1 = false ; |
4112 | bool temp2 = false ; | |
d55e5bfc RD |
4113 | PyObject * obj0 = 0 ; |
4114 | PyObject * obj1 = 0 ; | |
4115 | PyObject * obj2 = 0 ; | |
4116 | PyObject * obj3 = 0 ; | |
4117 | PyObject * obj4 = 0 ; | |
4118 | PyObject * obj5 = 0 ; | |
4119 | char *kwnames[] = { | |
4120 | (char *) "message",(char *) "caption",(char *) "style",(char *) "parent",(char *) "x",(char *) "y", NULL | |
4121 | }; | |
4122 | ||
4123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:MessageBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
4124 | { | |
4125 | arg1 = wxString_in_helper(obj0); | |
4126 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 4127 | temp1 = true; |
d55e5bfc RD |
4128 | } |
4129 | if (obj1) { | |
4130 | { | |
4131 | arg2 = wxString_in_helper(obj1); | |
4132 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 4133 | temp2 = true; |
d55e5bfc RD |
4134 | } |
4135 | } | |
4136 | if (obj2) { | |
c32bde28 | 4137 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
4138 | if (PyErr_Occurred()) SWIG_fail; |
4139 | } | |
4140 | if (obj3) { | |
4141 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
4142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4143 | } | |
4144 | if (obj4) { | |
c32bde28 | 4145 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
4146 | if (PyErr_Occurred()) SWIG_fail; |
4147 | } | |
4148 | if (obj5) { | |
c32bde28 | 4149 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
4150 | if (PyErr_Occurred()) SWIG_fail; |
4151 | } | |
4152 | { | |
0439c23b | 4153 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4155 | result = (int)wxMessageBox((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
4156 | ||
4157 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4158 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 4159 | } |
c32bde28 | 4160 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4161 | { |
4162 | if (temp1) | |
4163 | delete arg1; | |
4164 | } | |
4165 | { | |
4166 | if (temp2) | |
4167 | delete arg2; | |
4168 | } | |
4169 | return resultobj; | |
4170 | fail: | |
4171 | { | |
4172 | if (temp1) | |
4173 | delete arg1; | |
4174 | } | |
4175 | { | |
4176 | if (temp2) | |
4177 | delete arg2; | |
4178 | } | |
4179 | return NULL; | |
4180 | } | |
4181 | ||
4182 | ||
c32bde28 | 4183 | static PyObject *_wrap_GetNumberFromUser(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4184 | PyObject *resultobj; |
4185 | wxString *arg1 = 0 ; | |
4186 | wxString *arg2 = 0 ; | |
4187 | wxString *arg3 = 0 ; | |
4188 | long arg4 ; | |
4189 | long arg5 = (long) 0 ; | |
4190 | long arg6 = (long) 100 ; | |
4191 | wxWindow *arg7 = (wxWindow *) NULL ; | |
4192 | wxPoint const &arg8_defvalue = wxDefaultPosition ; | |
4193 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
4194 | long result; | |
ae8162c8 RD |
4195 | bool temp1 = false ; |
4196 | bool temp2 = false ; | |
4197 | bool temp3 = false ; | |
d55e5bfc RD |
4198 | wxPoint temp8 ; |
4199 | PyObject * obj0 = 0 ; | |
4200 | PyObject * obj1 = 0 ; | |
4201 | PyObject * obj2 = 0 ; | |
4202 | PyObject * obj3 = 0 ; | |
4203 | PyObject * obj4 = 0 ; | |
4204 | PyObject * obj5 = 0 ; | |
4205 | PyObject * obj6 = 0 ; | |
4206 | PyObject * obj7 = 0 ; | |
4207 | char *kwnames[] = { | |
4208 | (char *) "message",(char *) "prompt",(char *) "caption",(char *) "value",(char *) "min",(char *) "max",(char *) "parent",(char *) "pos", NULL | |
4209 | }; | |
4210 | ||
4211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:GetNumberFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
4212 | { | |
4213 | arg1 = wxString_in_helper(obj0); | |
4214 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 4215 | temp1 = true; |
d55e5bfc RD |
4216 | } |
4217 | { | |
4218 | arg2 = wxString_in_helper(obj1); | |
4219 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 4220 | temp2 = true; |
d55e5bfc RD |
4221 | } |
4222 | { | |
4223 | arg3 = wxString_in_helper(obj2); | |
4224 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 4225 | temp3 = true; |
d55e5bfc | 4226 | } |
c32bde28 | 4227 | arg4 = (long)SWIG_As_long(obj3); |
d55e5bfc RD |
4228 | if (PyErr_Occurred()) SWIG_fail; |
4229 | if (obj4) { | |
c32bde28 | 4230 | arg5 = (long)SWIG_As_long(obj4); |
d55e5bfc RD |
4231 | if (PyErr_Occurred()) SWIG_fail; |
4232 | } | |
4233 | if (obj5) { | |
c32bde28 | 4234 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
4235 | if (PyErr_Occurred()) SWIG_fail; |
4236 | } | |
4237 | if (obj6) { | |
4238 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow, | |
4239 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4240 | } | |
4241 | if (obj7) { | |
4242 | { | |
4243 | arg8 = &temp8; | |
4244 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
4245 | } | |
4246 | } | |
4247 | { | |
0439c23b | 4248 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4250 | result = (long)wxGetNumberFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7,(wxPoint const &)*arg8); | |
4251 | ||
4252 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4253 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 4254 | } |
c32bde28 | 4255 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
4256 | { |
4257 | if (temp1) | |
4258 | delete arg1; | |
4259 | } | |
4260 | { | |
4261 | if (temp2) | |
4262 | delete arg2; | |
4263 | } | |
4264 | { | |
4265 | if (temp3) | |
4266 | delete arg3; | |
4267 | } | |
4268 | return resultobj; | |
4269 | fail: | |
4270 | { | |
4271 | if (temp1) | |
4272 | delete arg1; | |
4273 | } | |
4274 | { | |
4275 | if (temp2) | |
4276 | delete arg2; | |
4277 | } | |
4278 | { | |
4279 | if (temp3) | |
4280 | delete arg3; | |
4281 | } | |
4282 | return NULL; | |
4283 | } | |
4284 | ||
4285 | ||
c32bde28 | 4286 | static PyObject *_wrap_ColourDisplay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4287 | PyObject *resultobj; |
4288 | bool result; | |
4289 | char *kwnames[] = { | |
4290 | NULL | |
4291 | }; | |
4292 | ||
4293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ColourDisplay",kwnames)) goto fail; | |
4294 | { | |
0439c23b | 4295 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4297 | result = (bool)wxColourDisplay(); | |
4298 | ||
4299 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4300 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4301 | } |
4302 | { | |
4303 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4304 | } | |
4305 | return resultobj; | |
4306 | fail: | |
4307 | return NULL; | |
4308 | } | |
4309 | ||
4310 | ||
c32bde28 | 4311 | static PyObject *_wrap_DisplayDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4312 | PyObject *resultobj; |
4313 | int result; | |
4314 | char *kwnames[] = { | |
4315 | NULL | |
4316 | }; | |
4317 | ||
4318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplayDepth",kwnames)) goto fail; | |
4319 | { | |
0439c23b | 4320 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4322 | result = (int)wxDisplayDepth(); | |
4323 | ||
4324 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4325 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 4326 | } |
c32bde28 | 4327 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4328 | return resultobj; |
4329 | fail: | |
4330 | return NULL; | |
4331 | } | |
4332 | ||
4333 | ||
c32bde28 | 4334 | static PyObject *_wrap_GetDisplayDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4335 | PyObject *resultobj; |
4336 | int result; | |
4337 | char *kwnames[] = { | |
4338 | NULL | |
4339 | }; | |
4340 | ||
4341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplayDepth",kwnames)) goto fail; | |
4342 | { | |
0439c23b | 4343 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4345 | result = (int)wxGetDisplayDepth(); | |
4346 | ||
4347 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4348 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 4349 | } |
c32bde28 | 4350 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4351 | return resultobj; |
4352 | fail: | |
4353 | return NULL; | |
4354 | } | |
4355 | ||
4356 | ||
c32bde28 | 4357 | static PyObject *_wrap_DisplaySize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4358 | PyObject *resultobj; |
4359 | int *arg1 = (int *) 0 ; | |
4360 | int *arg2 = (int *) 0 ; | |
4361 | int temp1 ; | |
c32bde28 | 4362 | int res1 = 0 ; |
d55e5bfc | 4363 | int temp2 ; |
c32bde28 | 4364 | int res2 = 0 ; |
d55e5bfc RD |
4365 | char *kwnames[] = { |
4366 | NULL | |
4367 | }; | |
4368 | ||
c32bde28 RD |
4369 | arg1 = &temp1; res1 = SWIG_NEWOBJ; |
4370 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
d55e5bfc RD |
4371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySize",kwnames)) goto fail; |
4372 | { | |
0439c23b | 4373 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4375 | wxDisplaySize(arg1,arg2); | |
4376 | ||
4377 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4378 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4379 | } |
4380 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
4381 | resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ? |
4382 | SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0))); | |
4383 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
4384 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
4385 | return resultobj; |
4386 | fail: | |
4387 | return NULL; | |
4388 | } | |
4389 | ||
4390 | ||
c32bde28 | 4391 | static PyObject *_wrap_GetDisplaySize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4392 | PyObject *resultobj; |
4393 | wxSize result; | |
4394 | char *kwnames[] = { | |
4395 | NULL | |
4396 | }; | |
4397 | ||
4398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySize",kwnames)) goto fail; | |
4399 | { | |
0439c23b | 4400 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4402 | result = wxGetDisplaySize(); | |
4403 | ||
4404 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4405 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4406 | } |
4407 | { | |
4408 | wxSize * resultptr; | |
4409 | resultptr = new wxSize((wxSize &) result); | |
4410 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
4411 | } | |
4412 | return resultobj; | |
4413 | fail: | |
4414 | return NULL; | |
4415 | } | |
4416 | ||
4417 | ||
c32bde28 | 4418 | static PyObject *_wrap_DisplaySizeMM(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4419 | PyObject *resultobj; |
4420 | int *arg1 = (int *) 0 ; | |
4421 | int *arg2 = (int *) 0 ; | |
4422 | int temp1 ; | |
c32bde28 | 4423 | int res1 = 0 ; |
d55e5bfc | 4424 | int temp2 ; |
c32bde28 | 4425 | int res2 = 0 ; |
d55e5bfc RD |
4426 | char *kwnames[] = { |
4427 | NULL | |
4428 | }; | |
4429 | ||
c32bde28 RD |
4430 | arg1 = &temp1; res1 = SWIG_NEWOBJ; |
4431 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
d55e5bfc RD |
4432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySizeMM",kwnames)) goto fail; |
4433 | { | |
0439c23b | 4434 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4436 | wxDisplaySizeMM(arg1,arg2); | |
4437 | ||
4438 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4439 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4440 | } |
4441 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
4442 | resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ? |
4443 | SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0))); | |
4444 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
4445 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
4446 | return resultobj; |
4447 | fail: | |
4448 | return NULL; | |
4449 | } | |
4450 | ||
4451 | ||
c32bde28 | 4452 | static PyObject *_wrap_GetDisplaySizeMM(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4453 | PyObject *resultobj; |
4454 | wxSize result; | |
4455 | char *kwnames[] = { | |
4456 | NULL | |
4457 | }; | |
4458 | ||
4459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySizeMM",kwnames)) goto fail; | |
4460 | { | |
0439c23b | 4461 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4463 | result = wxGetDisplaySizeMM(); | |
4464 | ||
4465 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4466 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4467 | } |
4468 | { | |
4469 | wxSize * resultptr; | |
4470 | resultptr = new wxSize((wxSize &) result); | |
4471 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
4472 | } | |
4473 | return resultobj; | |
4474 | fail: | |
4475 | return NULL; | |
4476 | } | |
4477 | ||
4478 | ||
c32bde28 | 4479 | static PyObject *_wrap_ClientDisplayRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4480 | PyObject *resultobj; |
4481 | int *arg1 = (int *) 0 ; | |
4482 | int *arg2 = (int *) 0 ; | |
4483 | int *arg3 = (int *) 0 ; | |
4484 | int *arg4 = (int *) 0 ; | |
4485 | int temp1 ; | |
c32bde28 | 4486 | int res1 = 0 ; |
d55e5bfc | 4487 | int temp2 ; |
c32bde28 | 4488 | int res2 = 0 ; |
d55e5bfc | 4489 | int temp3 ; |
c32bde28 | 4490 | int res3 = 0 ; |
d55e5bfc | 4491 | int temp4 ; |
c32bde28 | 4492 | int res4 = 0 ; |
d55e5bfc RD |
4493 | char *kwnames[] = { |
4494 | NULL | |
4495 | }; | |
4496 | ||
c32bde28 RD |
4497 | arg1 = &temp1; res1 = SWIG_NEWOBJ; |
4498 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
4499 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
4500 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
d55e5bfc RD |
4501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ClientDisplayRect",kwnames)) goto fail; |
4502 | { | |
0439c23b | 4503 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4505 | wxClientDisplayRect(arg1,arg2,arg3,arg4); | |
4506 | ||
4507 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4508 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4509 | } |
4510 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
4511 | resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ? |
4512 | SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0))); | |
4513 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
4514 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
4515 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
4516 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
4517 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
4518 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
4519 | return resultobj; |
4520 | fail: | |
4521 | return NULL; | |
4522 | } | |
4523 | ||
4524 | ||
c32bde28 | 4525 | static PyObject *_wrap_GetClientDisplayRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4526 | PyObject *resultobj; |
4527 | wxRect result; | |
4528 | char *kwnames[] = { | |
4529 | NULL | |
4530 | }; | |
4531 | ||
4532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetClientDisplayRect",kwnames)) goto fail; | |
4533 | { | |
0439c23b | 4534 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4536 | result = wxGetClientDisplayRect(); | |
4537 | ||
4538 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4539 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4540 | } |
4541 | { | |
4542 | wxRect * resultptr; | |
4543 | resultptr = new wxRect((wxRect &) result); | |
4544 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
4545 | } | |
4546 | return resultobj; | |
4547 | fail: | |
4548 | return NULL; | |
4549 | } | |
4550 | ||
4551 | ||
c32bde28 | 4552 | static PyObject *_wrap_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4553 | PyObject *resultobj; |
4554 | wxCursor *arg1 = 0 ; | |
4555 | PyObject * obj0 = 0 ; | |
4556 | char *kwnames[] = { | |
4557 | (char *) "cursor", NULL | |
4558 | }; | |
4559 | ||
4560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursor",kwnames,&obj0)) goto fail; | |
4561 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
4562 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4563 | SWIG_fail; | |
4564 | if (arg1 == NULL) { | |
4565 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4566 | SWIG_fail; | |
4567 | } | |
4568 | { | |
0439c23b | 4569 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4571 | wxSetCursor(*arg1); | |
4572 | ||
4573 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4574 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4575 | } |
4576 | Py_INCREF(Py_None); resultobj = Py_None; | |
4577 | return resultobj; | |
4578 | fail: | |
4579 | return NULL; | |
4580 | } | |
4581 | ||
4582 | ||
c32bde28 | 4583 | static PyObject *_wrap_BeginBusyCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4584 | PyObject *resultobj; |
4585 | wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ; | |
4586 | PyObject * obj0 = 0 ; | |
4587 | char *kwnames[] = { | |
4588 | (char *) "cursor", NULL | |
4589 | }; | |
4590 | ||
4591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BeginBusyCursor",kwnames,&obj0)) goto fail; | |
4592 | if (obj0) { | |
4593 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
4594 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4595 | } | |
4596 | { | |
0439c23b | 4597 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4599 | wxBeginBusyCursor(arg1); | |
4600 | ||
4601 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4602 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4603 | } |
4604 | Py_INCREF(Py_None); resultobj = Py_None; | |
4605 | return resultobj; | |
4606 | fail: | |
4607 | return NULL; | |
4608 | } | |
4609 | ||
4610 | ||
c32bde28 | 4611 | static PyObject *_wrap_GetActiveWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4612 | PyObject *resultobj; |
4613 | wxWindow *result; | |
4614 | char *kwnames[] = { | |
4615 | NULL | |
4616 | }; | |
4617 | ||
4618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetActiveWindow",kwnames)) goto fail; | |
4619 | { | |
0439c23b | 4620 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4622 | result = (wxWindow *)wxGetActiveWindow(); | |
4623 | ||
4624 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4625 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4626 | } |
4627 | { | |
412d302d | 4628 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
4629 | } |
4630 | return resultobj; | |
4631 | fail: | |
4632 | return NULL; | |
4633 | } | |
4634 | ||
4635 | ||
c32bde28 | 4636 | static PyObject *_wrap_GenericFindWindowAtPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4637 | PyObject *resultobj; |
4638 | wxPoint *arg1 = 0 ; | |
4639 | wxWindow *result; | |
4640 | wxPoint temp1 ; | |
4641 | PyObject * obj0 = 0 ; | |
4642 | char *kwnames[] = { | |
4643 | (char *) "pt", NULL | |
4644 | }; | |
4645 | ||
4646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericFindWindowAtPoint",kwnames,&obj0)) goto fail; | |
4647 | { | |
4648 | arg1 = &temp1; | |
4649 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
4650 | } | |
4651 | { | |
0439c23b | 4652 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4654 | result = (wxWindow *)wxGenericFindWindowAtPoint((wxPoint const &)*arg1); | |
4655 | ||
4656 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4657 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4658 | } |
4659 | { | |
412d302d | 4660 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
4661 | } |
4662 | return resultobj; | |
4663 | fail: | |
4664 | return NULL; | |
4665 | } | |
4666 | ||
4667 | ||
c32bde28 | 4668 | static PyObject *_wrap_FindWindowAtPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4669 | PyObject *resultobj; |
4670 | wxPoint *arg1 = 0 ; | |
4671 | wxWindow *result; | |
4672 | wxPoint temp1 ; | |
4673 | PyObject * obj0 = 0 ; | |
4674 | char *kwnames[] = { | |
4675 | (char *) "pt", NULL | |
4676 | }; | |
4677 | ||
4678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindWindowAtPoint",kwnames,&obj0)) goto fail; | |
4679 | { | |
4680 | arg1 = &temp1; | |
4681 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
4682 | } | |
4683 | { | |
0439c23b | 4684 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4686 | result = (wxWindow *)wxFindWindowAtPoint((wxPoint const &)*arg1); | |
4687 | ||
4688 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4689 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4690 | } |
4691 | { | |
412d302d | 4692 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
4693 | } |
4694 | return resultobj; | |
4695 | fail: | |
4696 | return NULL; | |
4697 | } | |
4698 | ||
4699 | ||
c32bde28 | 4700 | static PyObject *_wrap_GetTopLevelParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4701 | PyObject *resultobj; |
4702 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4703 | wxWindow *result; | |
4704 | PyObject * obj0 = 0 ; | |
4705 | char *kwnames[] = { | |
4706 | (char *) "win", NULL | |
4707 | }; | |
4708 | ||
4709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetTopLevelParent",kwnames,&obj0)) goto fail; | |
4710 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
4711 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4712 | { | |
0439c23b | 4713 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4715 | result = (wxWindow *)wxGetTopLevelParent(arg1); | |
4716 | ||
4717 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4718 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4719 | } |
4720 | { | |
412d302d | 4721 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
4722 | } |
4723 | return resultobj; | |
4724 | fail: | |
4725 | return NULL; | |
4726 | } | |
4727 | ||
4728 | ||
c32bde28 | 4729 | static PyObject *_wrap_GetKeyState(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4730 | PyObject *resultobj; |
4731 | int arg1 ; | |
4732 | bool result; | |
4733 | PyObject * obj0 = 0 ; | |
4734 | char *kwnames[] = { | |
4735 | (char *) "key", NULL | |
4736 | }; | |
4737 | ||
4738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetKeyState",kwnames,&obj0)) goto fail; | |
c32bde28 | 4739 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
4740 | if (PyErr_Occurred()) SWIG_fail; |
4741 | { | |
0439c23b | 4742 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4744 | result = (bool)wxGetKeyState((wxKeyCode )arg1); | |
4745 | ||
4746 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4747 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4748 | } |
4749 | { | |
4750 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4751 | } | |
4752 | return resultobj; | |
4753 | fail: | |
4754 | return NULL; | |
4755 | } | |
4756 | ||
4757 | ||
c32bde28 | 4758 | static PyObject *_wrap_WakeUpMainThread(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4759 | PyObject *resultobj; |
4760 | char *kwnames[] = { | |
4761 | NULL | |
4762 | }; | |
4763 | ||
4764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpMainThread",kwnames)) goto fail; | |
4765 | { | |
0439c23b | 4766 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4768 | wxWakeUpMainThread(); | |
4769 | ||
4770 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4771 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4772 | } |
4773 | Py_INCREF(Py_None); resultobj = Py_None; | |
4774 | return resultobj; | |
4775 | fail: | |
4776 | return NULL; | |
4777 | } | |
4778 | ||
4779 | ||
c32bde28 | 4780 | static PyObject *_wrap_MutexGuiEnter(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4781 | PyObject *resultobj; |
4782 | char *kwnames[] = { | |
4783 | NULL | |
4784 | }; | |
4785 | ||
4786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiEnter",kwnames)) goto fail; | |
4787 | { | |
0439c23b | 4788 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4790 | wxMutexGuiEnter(); | |
4791 | ||
4792 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4793 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4794 | } |
4795 | Py_INCREF(Py_None); resultobj = Py_None; | |
4796 | return resultobj; | |
4797 | fail: | |
4798 | return NULL; | |
4799 | } | |
4800 | ||
4801 | ||
c32bde28 | 4802 | static PyObject *_wrap_MutexGuiLeave(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4803 | PyObject *resultobj; |
4804 | char *kwnames[] = { | |
4805 | NULL | |
4806 | }; | |
4807 | ||
4808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiLeave",kwnames)) goto fail; | |
4809 | { | |
0439c23b | 4810 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4812 | wxMutexGuiLeave(); | |
4813 | ||
4814 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4815 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4816 | } |
4817 | Py_INCREF(Py_None); resultobj = Py_None; | |
4818 | return resultobj; | |
4819 | fail: | |
4820 | return NULL; | |
4821 | } | |
4822 | ||
4823 | ||
c32bde28 | 4824 | static PyObject *_wrap_new_MutexGuiLocker(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4825 | PyObject *resultobj; |
4826 | wxMutexGuiLocker *result; | |
4827 | char *kwnames[] = { | |
4828 | NULL | |
4829 | }; | |
4830 | ||
4831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MutexGuiLocker",kwnames)) goto fail; | |
4832 | { | |
0439c23b | 4833 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4835 | result = (wxMutexGuiLocker *)new wxMutexGuiLocker(); | |
4836 | ||
4837 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4838 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4839 | } |
4840 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMutexGuiLocker, 1); | |
4841 | return resultobj; | |
4842 | fail: | |
4843 | return NULL; | |
4844 | } | |
4845 | ||
4846 | ||
c32bde28 | 4847 | static PyObject *_wrap_delete_MutexGuiLocker(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4848 | PyObject *resultobj; |
4849 | wxMutexGuiLocker *arg1 = (wxMutexGuiLocker *) 0 ; | |
4850 | PyObject * obj0 = 0 ; | |
4851 | char *kwnames[] = { | |
4852 | (char *) "self", NULL | |
4853 | }; | |
4854 | ||
4855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MutexGuiLocker",kwnames,&obj0)) goto fail; | |
4856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMutexGuiLocker, | |
4857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4858 | { | |
4859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4860 | delete arg1; | |
4861 | ||
4862 | wxPyEndAllowThreads(__tstate); | |
4863 | if (PyErr_Occurred()) SWIG_fail; | |
4864 | } | |
4865 | Py_INCREF(Py_None); resultobj = Py_None; | |
4866 | return resultobj; | |
4867 | fail: | |
4868 | return NULL; | |
4869 | } | |
4870 | ||
4871 | ||
c32bde28 | 4872 | static PyObject * MutexGuiLocker_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
4873 | PyObject *obj; |
4874 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4875 | SWIG_TypeClientData(SWIGTYPE_p_wxMutexGuiLocker, obj); | |
4876 | Py_INCREF(obj); | |
4877 | return Py_BuildValue((char *)""); | |
4878 | } | |
c32bde28 | 4879 | static PyObject *_wrap_Thread_IsMain(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4880 | PyObject *resultobj; |
4881 | bool result; | |
4882 | char *kwnames[] = { | |
4883 | NULL | |
4884 | }; | |
4885 | ||
4886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Thread_IsMain",kwnames)) goto fail; | |
4887 | { | |
4888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4889 | result = (bool)wxThread_IsMain(); | |
4890 | ||
4891 | wxPyEndAllowThreads(__tstate); | |
4892 | if (PyErr_Occurred()) SWIG_fail; | |
4893 | } | |
4894 | { | |
4895 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4896 | } | |
4897 | return resultobj; | |
4898 | fail: | |
4899 | return NULL; | |
4900 | } | |
4901 | ||
4902 | ||
c32bde28 | 4903 | static PyObject *_wrap_new_ToolTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4904 | PyObject *resultobj; |
4905 | wxString *arg1 = 0 ; | |
4906 | wxToolTip *result; | |
ae8162c8 | 4907 | bool temp1 = false ; |
d55e5bfc RD |
4908 | PyObject * obj0 = 0 ; |
4909 | char *kwnames[] = { | |
4910 | (char *) "tip", NULL | |
4911 | }; | |
4912 | ||
4913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ToolTip",kwnames,&obj0)) goto fail; | |
4914 | { | |
4915 | arg1 = wxString_in_helper(obj0); | |
4916 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 4917 | temp1 = true; |
d55e5bfc RD |
4918 | } |
4919 | { | |
0439c23b | 4920 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4922 | result = (wxToolTip *)new wxToolTip((wxString const &)*arg1); | |
4923 | ||
4924 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4925 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4926 | } |
4927 | { | |
412d302d | 4928 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
4929 | } |
4930 | { | |
4931 | if (temp1) | |
4932 | delete arg1; | |
4933 | } | |
4934 | return resultobj; | |
4935 | fail: | |
4936 | { | |
4937 | if (temp1) | |
4938 | delete arg1; | |
4939 | } | |
4940 | return NULL; | |
4941 | } | |
4942 | ||
4943 | ||
c32bde28 | 4944 | static PyObject *_wrap_ToolTip_SetTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4945 | PyObject *resultobj; |
4946 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
4947 | wxString *arg2 = 0 ; | |
ae8162c8 | 4948 | bool temp2 = false ; |
d55e5bfc RD |
4949 | PyObject * obj0 = 0 ; |
4950 | PyObject * obj1 = 0 ; | |
4951 | char *kwnames[] = { | |
4952 | (char *) "self",(char *) "tip", NULL | |
4953 | }; | |
4954 | ||
4955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolTip_SetTip",kwnames,&obj0,&obj1)) goto fail; | |
4956 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip, | |
4957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4958 | { | |
4959 | arg2 = wxString_in_helper(obj1); | |
4960 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 4961 | temp2 = true; |
d55e5bfc RD |
4962 | } |
4963 | { | |
4964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4965 | (arg1)->SetTip((wxString const &)*arg2); | |
4966 | ||
4967 | wxPyEndAllowThreads(__tstate); | |
4968 | if (PyErr_Occurred()) SWIG_fail; | |
4969 | } | |
4970 | Py_INCREF(Py_None); resultobj = Py_None; | |
4971 | { | |
4972 | if (temp2) | |
4973 | delete arg2; | |
4974 | } | |
4975 | return resultobj; | |
4976 | fail: | |
4977 | { | |
4978 | if (temp2) | |
4979 | delete arg2; | |
4980 | } | |
4981 | return NULL; | |
4982 | } | |
4983 | ||
4984 | ||
c32bde28 | 4985 | static PyObject *_wrap_ToolTip_GetTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4986 | PyObject *resultobj; |
4987 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
4988 | wxString result; | |
4989 | PyObject * obj0 = 0 ; | |
4990 | char *kwnames[] = { | |
4991 | (char *) "self", NULL | |
4992 | }; | |
4993 | ||
4994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetTip",kwnames,&obj0)) goto fail; | |
4995 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip, | |
4996 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4997 | { | |
4998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4999 | result = (arg1)->GetTip(); | |
5000 | ||
5001 | wxPyEndAllowThreads(__tstate); | |
5002 | if (PyErr_Occurred()) SWIG_fail; | |
5003 | } | |
5004 | { | |
5005 | #if wxUSE_UNICODE | |
5006 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5007 | #else | |
5008 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5009 | #endif | |
5010 | } | |
5011 | return resultobj; | |
5012 | fail: | |
5013 | return NULL; | |
5014 | } | |
5015 | ||
5016 | ||
c32bde28 | 5017 | static PyObject *_wrap_ToolTip_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5018 | PyObject *resultobj; |
5019 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
5020 | wxWindow *result; | |
5021 | PyObject * obj0 = 0 ; | |
5022 | char *kwnames[] = { | |
5023 | (char *) "self", NULL | |
5024 | }; | |
5025 | ||
5026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetWindow",kwnames,&obj0)) goto fail; | |
5027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip, | |
5028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5029 | { | |
5030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5031 | result = (wxWindow *)(arg1)->GetWindow(); | |
5032 | ||
5033 | wxPyEndAllowThreads(__tstate); | |
5034 | if (PyErr_Occurred()) SWIG_fail; | |
5035 | } | |
5036 | { | |
412d302d | 5037 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
5038 | } |
5039 | return resultobj; | |
5040 | fail: | |
5041 | return NULL; | |
5042 | } | |
5043 | ||
5044 | ||
c32bde28 | 5045 | static PyObject *_wrap_ToolTip_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5046 | PyObject *resultobj; |
5047 | bool arg1 ; | |
5048 | PyObject * obj0 = 0 ; | |
5049 | char *kwnames[] = { | |
5050 | (char *) "flag", NULL | |
5051 | }; | |
5052 | ||
5053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_Enable",kwnames,&obj0)) goto fail; | |
c32bde28 | 5054 | arg1 = (bool)SWIG_As_bool(obj0); |
d55e5bfc RD |
5055 | if (PyErr_Occurred()) SWIG_fail; |
5056 | { | |
5057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5058 | wxToolTip::Enable(arg1); | |
5059 | ||
5060 | wxPyEndAllowThreads(__tstate); | |
5061 | if (PyErr_Occurred()) SWIG_fail; | |
5062 | } | |
5063 | Py_INCREF(Py_None); resultobj = Py_None; | |
5064 | return resultobj; | |
5065 | fail: | |
5066 | return NULL; | |
5067 | } | |
5068 | ||
5069 | ||
c32bde28 | 5070 | static PyObject *_wrap_ToolTip_SetDelay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5071 | PyObject *resultobj; |
5072 | long arg1 ; | |
5073 | PyObject * obj0 = 0 ; | |
5074 | char *kwnames[] = { | |
5075 | (char *) "milliseconds", NULL | |
5076 | }; | |
5077 | ||
5078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_SetDelay",kwnames,&obj0)) goto fail; | |
c32bde28 | 5079 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
5080 | if (PyErr_Occurred()) SWIG_fail; |
5081 | { | |
5082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5083 | wxToolTip::SetDelay(arg1); | |
5084 | ||
5085 | wxPyEndAllowThreads(__tstate); | |
5086 | if (PyErr_Occurred()) SWIG_fail; | |
5087 | } | |
5088 | Py_INCREF(Py_None); resultobj = Py_None; | |
5089 | return resultobj; | |
5090 | fail: | |
5091 | return NULL; | |
5092 | } | |
5093 | ||
5094 | ||
c32bde28 | 5095 | static PyObject * ToolTip_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
5096 | PyObject *obj; |
5097 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5098 | SWIG_TypeClientData(SWIGTYPE_p_wxToolTip, obj); | |
5099 | Py_INCREF(obj); | |
5100 | return Py_BuildValue((char *)""); | |
5101 | } | |
c32bde28 | 5102 | static PyObject *_wrap_new_Caret(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5103 | PyObject *resultobj; |
5104 | wxWindow *arg1 = (wxWindow *) 0 ; | |
5105 | wxSize *arg2 = 0 ; | |
5106 | wxCaret *result; | |
5107 | wxSize temp2 ; | |
5108 | PyObject * obj0 = 0 ; | |
5109 | PyObject * obj1 = 0 ; | |
5110 | char *kwnames[] = { | |
5111 | (char *) "window",(char *) "size", NULL | |
5112 | }; | |
5113 | ||
5114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_Caret",kwnames,&obj0,&obj1)) goto fail; | |
5115 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
5116 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5117 | { | |
5118 | arg2 = &temp2; | |
5119 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
5120 | } | |
5121 | { | |
0439c23b | 5122 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5124 | result = (wxCaret *)new wxCaret(arg1,(wxSize const &)*arg2); | |
5125 | ||
5126 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5127 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5128 | } |
5129 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 1); | |
5130 | return resultobj; | |
5131 | fail: | |
5132 | return NULL; | |
5133 | } | |
5134 | ||
5135 | ||
c32bde28 | 5136 | static PyObject *_wrap_delete_Caret(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5137 | PyObject *resultobj; |
5138 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5139 | PyObject * obj0 = 0 ; | |
5140 | char *kwnames[] = { | |
5141 | (char *) "self", NULL | |
5142 | }; | |
5143 | ||
5144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Caret",kwnames,&obj0)) goto fail; | |
5145 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5146 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5147 | { | |
5148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5149 | delete arg1; | |
5150 | ||
5151 | wxPyEndAllowThreads(__tstate); | |
5152 | if (PyErr_Occurred()) SWIG_fail; | |
5153 | } | |
5154 | Py_INCREF(Py_None); resultobj = Py_None; | |
5155 | return resultobj; | |
5156 | fail: | |
5157 | return NULL; | |
5158 | } | |
5159 | ||
5160 | ||
c32bde28 | 5161 | static PyObject *_wrap_Caret_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5162 | PyObject *resultobj; |
5163 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5164 | bool result; | |
5165 | PyObject * obj0 = 0 ; | |
5166 | char *kwnames[] = { | |
5167 | (char *) "self", NULL | |
5168 | }; | |
5169 | ||
5170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsOk",kwnames,&obj0)) goto fail; | |
5171 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5172 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5173 | { | |
5174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5175 | result = (bool)(arg1)->IsOk(); | |
5176 | ||
5177 | wxPyEndAllowThreads(__tstate); | |
5178 | if (PyErr_Occurred()) SWIG_fail; | |
5179 | } | |
5180 | { | |
5181 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5182 | } | |
5183 | return resultobj; | |
5184 | fail: | |
5185 | return NULL; | |
5186 | } | |
5187 | ||
5188 | ||
c32bde28 | 5189 | static PyObject *_wrap_Caret_IsVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5190 | PyObject *resultobj; |
5191 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5192 | bool result; | |
5193 | PyObject * obj0 = 0 ; | |
5194 | char *kwnames[] = { | |
5195 | (char *) "self", NULL | |
5196 | }; | |
5197 | ||
5198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsVisible",kwnames,&obj0)) goto fail; | |
5199 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5200 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5201 | { | |
5202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5203 | result = (bool)(arg1)->IsVisible(); | |
5204 | ||
5205 | wxPyEndAllowThreads(__tstate); | |
5206 | if (PyErr_Occurred()) SWIG_fail; | |
5207 | } | |
5208 | { | |
5209 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5210 | } | |
5211 | return resultobj; | |
5212 | fail: | |
5213 | return NULL; | |
5214 | } | |
5215 | ||
5216 | ||
c32bde28 | 5217 | static PyObject *_wrap_Caret_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5218 | PyObject *resultobj; |
5219 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5220 | wxPoint result; | |
5221 | PyObject * obj0 = 0 ; | |
5222 | char *kwnames[] = { | |
5223 | (char *) "self", NULL | |
5224 | }; | |
5225 | ||
5226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPosition",kwnames,&obj0)) goto fail; | |
5227 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5228 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5229 | { | |
5230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5231 | result = (arg1)->GetPosition(); | |
5232 | ||
5233 | wxPyEndAllowThreads(__tstate); | |
5234 | if (PyErr_Occurred()) SWIG_fail; | |
5235 | } | |
5236 | { | |
5237 | wxPoint * resultptr; | |
5238 | resultptr = new wxPoint((wxPoint &) result); | |
5239 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
5240 | } | |
5241 | return resultobj; | |
5242 | fail: | |
5243 | return NULL; | |
5244 | } | |
5245 | ||
5246 | ||
c32bde28 | 5247 | static PyObject *_wrap_Caret_GetPositionTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5248 | PyObject *resultobj; |
5249 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5250 | int *arg2 = (int *) 0 ; | |
5251 | int *arg3 = (int *) 0 ; | |
5252 | int temp2 ; | |
c32bde28 | 5253 | int res2 = 0 ; |
d55e5bfc | 5254 | int temp3 ; |
c32bde28 | 5255 | int res3 = 0 ; |
d55e5bfc RD |
5256 | PyObject * obj0 = 0 ; |
5257 | char *kwnames[] = { | |
5258 | (char *) "self", NULL | |
5259 | }; | |
5260 | ||
c32bde28 RD |
5261 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
5262 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
5263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPositionTuple",kwnames,&obj0)) goto fail; |
5264 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5265 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5266 | { | |
5267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5268 | (arg1)->GetPosition(arg2,arg3); | |
5269 | ||
5270 | wxPyEndAllowThreads(__tstate); | |
5271 | if (PyErr_Occurred()) SWIG_fail; | |
5272 | } | |
5273 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
5274 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
5275 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
5276 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
5277 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
5278 | return resultobj; |
5279 | fail: | |
5280 | return NULL; | |
5281 | } | |
5282 | ||
5283 | ||
c32bde28 | 5284 | static PyObject *_wrap_Caret_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5285 | PyObject *resultobj; |
5286 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5287 | wxSize result; | |
5288 | PyObject * obj0 = 0 ; | |
5289 | char *kwnames[] = { | |
5290 | (char *) "self", NULL | |
5291 | }; | |
5292 | ||
5293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSize",kwnames,&obj0)) goto fail; | |
5294 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5295 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5296 | { | |
5297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5298 | result = (arg1)->GetSize(); | |
5299 | ||
5300 | wxPyEndAllowThreads(__tstate); | |
5301 | if (PyErr_Occurred()) SWIG_fail; | |
5302 | } | |
5303 | { | |
5304 | wxSize * resultptr; | |
5305 | resultptr = new wxSize((wxSize &) result); | |
5306 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
5307 | } | |
5308 | return resultobj; | |
5309 | fail: | |
5310 | return NULL; | |
5311 | } | |
5312 | ||
5313 | ||
c32bde28 | 5314 | static PyObject *_wrap_Caret_GetSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5315 | PyObject *resultobj; |
5316 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5317 | int *arg2 = (int *) 0 ; | |
5318 | int *arg3 = (int *) 0 ; | |
5319 | int temp2 ; | |
c32bde28 | 5320 | int res2 = 0 ; |
d55e5bfc | 5321 | int temp3 ; |
c32bde28 | 5322 | int res3 = 0 ; |
d55e5bfc RD |
5323 | PyObject * obj0 = 0 ; |
5324 | char *kwnames[] = { | |
5325 | (char *) "self", NULL | |
5326 | }; | |
5327 | ||
c32bde28 RD |
5328 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
5329 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
5330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSizeTuple",kwnames,&obj0)) goto fail; |
5331 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5332 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5333 | { | |
5334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5335 | (arg1)->GetSize(arg2,arg3); | |
5336 | ||
5337 | wxPyEndAllowThreads(__tstate); | |
5338 | if (PyErr_Occurred()) SWIG_fail; | |
5339 | } | |
5340 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
5341 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
5342 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
5343 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
5344 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
5345 | return resultobj; |
5346 | fail: | |
5347 | return NULL; | |
5348 | } | |
5349 | ||
5350 | ||
c32bde28 | 5351 | static PyObject *_wrap_Caret_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5352 | PyObject *resultobj; |
5353 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5354 | wxWindow *result; | |
5355 | PyObject * obj0 = 0 ; | |
5356 | char *kwnames[] = { | |
5357 | (char *) "self", NULL | |
5358 | }; | |
5359 | ||
5360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetWindow",kwnames,&obj0)) goto fail; | |
5361 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5362 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5363 | { | |
5364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5365 | result = (wxWindow *)(arg1)->GetWindow(); | |
5366 | ||
5367 | wxPyEndAllowThreads(__tstate); | |
5368 | if (PyErr_Occurred()) SWIG_fail; | |
5369 | } | |
5370 | { | |
412d302d | 5371 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
5372 | } |
5373 | return resultobj; | |
5374 | fail: | |
5375 | return NULL; | |
5376 | } | |
5377 | ||
5378 | ||
c32bde28 | 5379 | static PyObject *_wrap_Caret_MoveXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5380 | PyObject *resultobj; |
5381 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5382 | int arg2 ; | |
5383 | int arg3 ; | |
5384 | PyObject * obj0 = 0 ; | |
5385 | PyObject * obj1 = 0 ; | |
5386 | PyObject * obj2 = 0 ; | |
5387 | char *kwnames[] = { | |
5388 | (char *) "self",(char *) "x",(char *) "y", NULL | |
5389 | }; | |
5390 | ||
5391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_MoveXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5392 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 5394 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 5395 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 5396 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
5397 | if (PyErr_Occurred()) SWIG_fail; |
5398 | { | |
5399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5400 | (arg1)->Move(arg2,arg3); | |
5401 | ||
5402 | wxPyEndAllowThreads(__tstate); | |
5403 | if (PyErr_Occurred()) SWIG_fail; | |
5404 | } | |
5405 | Py_INCREF(Py_None); resultobj = Py_None; | |
5406 | return resultobj; | |
5407 | fail: | |
5408 | return NULL; | |
5409 | } | |
5410 | ||
5411 | ||
c32bde28 | 5412 | static PyObject *_wrap_Caret_Move(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5413 | PyObject *resultobj; |
5414 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5415 | wxPoint *arg2 = 0 ; | |
5416 | wxPoint temp2 ; | |
5417 | PyObject * obj0 = 0 ; | |
5418 | PyObject * obj1 = 0 ; | |
5419 | char *kwnames[] = { | |
5420 | (char *) "self",(char *) "pt", NULL | |
5421 | }; | |
5422 | ||
5423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_Move",kwnames,&obj0,&obj1)) goto fail; | |
5424 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5426 | { | |
5427 | arg2 = &temp2; | |
5428 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
5429 | } | |
5430 | { | |
5431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5432 | (arg1)->Move((wxPoint const &)*arg2); | |
5433 | ||
5434 | wxPyEndAllowThreads(__tstate); | |
5435 | if (PyErr_Occurred()) SWIG_fail; | |
5436 | } | |
5437 | Py_INCREF(Py_None); resultobj = Py_None; | |
5438 | return resultobj; | |
5439 | fail: | |
5440 | return NULL; | |
5441 | } | |
5442 | ||
5443 | ||
c32bde28 | 5444 | static PyObject *_wrap_Caret_SetSizeWH(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5445 | PyObject *resultobj; |
5446 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5447 | int arg2 ; | |
5448 | int arg3 ; | |
5449 | PyObject * obj0 = 0 ; | |
5450 | PyObject * obj1 = 0 ; | |
5451 | PyObject * obj2 = 0 ; | |
5452 | char *kwnames[] = { | |
5453 | (char *) "self",(char *) "width",(char *) "height", NULL | |
5454 | }; | |
5455 | ||
5456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5457 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5458 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 5459 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 5460 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 5461 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
5462 | if (PyErr_Occurred()) SWIG_fail; |
5463 | { | |
5464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5465 | (arg1)->SetSize(arg2,arg3); | |
5466 | ||
5467 | wxPyEndAllowThreads(__tstate); | |
5468 | if (PyErr_Occurred()) SWIG_fail; | |
5469 | } | |
5470 | Py_INCREF(Py_None); resultobj = Py_None; | |
5471 | return resultobj; | |
5472 | fail: | |
5473 | return NULL; | |
5474 | } | |
5475 | ||
5476 | ||
c32bde28 | 5477 | static PyObject *_wrap_Caret_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5478 | PyObject *resultobj; |
5479 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5480 | wxSize *arg2 = 0 ; | |
5481 | wxSize temp2 ; | |
5482 | PyObject * obj0 = 0 ; | |
5483 | PyObject * obj1 = 0 ; | |
5484 | char *kwnames[] = { | |
5485 | (char *) "self",(char *) "size", NULL | |
5486 | }; | |
5487 | ||
5488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
5489 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5490 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5491 | { | |
5492 | arg2 = &temp2; | |
5493 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
5494 | } | |
5495 | { | |
5496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5497 | (arg1)->SetSize((wxSize const &)*arg2); | |
5498 | ||
5499 | wxPyEndAllowThreads(__tstate); | |
5500 | if (PyErr_Occurred()) SWIG_fail; | |
5501 | } | |
5502 | Py_INCREF(Py_None); resultobj = Py_None; | |
5503 | return resultobj; | |
5504 | fail: | |
5505 | return NULL; | |
5506 | } | |
5507 | ||
5508 | ||
c32bde28 | 5509 | static PyObject *_wrap_Caret_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5510 | PyObject *resultobj; |
5511 | wxCaret *arg1 = (wxCaret *) 0 ; | |
ae8162c8 | 5512 | int arg2 = (int) true ; |
d55e5bfc RD |
5513 | PyObject * obj0 = 0 ; |
5514 | PyObject * obj1 = 0 ; | |
5515 | char *kwnames[] = { | |
5516 | (char *) "self",(char *) "show", NULL | |
5517 | }; | |
5518 | ||
5519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Caret_Show",kwnames,&obj0,&obj1)) goto fail; | |
5520 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5522 | if (obj1) { | |
c32bde28 | 5523 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
5524 | if (PyErr_Occurred()) SWIG_fail; |
5525 | } | |
5526 | { | |
5527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5528 | (arg1)->Show(arg2); | |
5529 | ||
5530 | wxPyEndAllowThreads(__tstate); | |
5531 | if (PyErr_Occurred()) SWIG_fail; | |
5532 | } | |
5533 | Py_INCREF(Py_None); resultobj = Py_None; | |
5534 | return resultobj; | |
5535 | fail: | |
5536 | return NULL; | |
5537 | } | |
5538 | ||
5539 | ||
c32bde28 | 5540 | static PyObject *_wrap_Caret_Hide(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5541 | PyObject *resultobj; |
5542 | wxCaret *arg1 = (wxCaret *) 0 ; | |
5543 | PyObject * obj0 = 0 ; | |
5544 | char *kwnames[] = { | |
5545 | (char *) "self", NULL | |
5546 | }; | |
5547 | ||
5548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Hide",kwnames,&obj0)) goto fail; | |
5549 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret, | |
5550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5551 | { | |
5552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5553 | (arg1)->Hide(); | |
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 * Caret_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
5566 | PyObject *obj; |
5567 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5568 | SWIG_TypeClientData(SWIGTYPE_p_wxCaret, obj); | |
5569 | Py_INCREF(obj); | |
5570 | return Py_BuildValue((char *)""); | |
5571 | } | |
c32bde28 | 5572 | static PyObject *_wrap_Caret_GetBlinkTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5573 | PyObject *resultobj; |
5574 | int result; | |
5575 | char *kwnames[] = { | |
5576 | NULL | |
5577 | }; | |
5578 | ||
5579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Caret_GetBlinkTime",kwnames)) goto fail; | |
5580 | { | |
5581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5582 | result = (int)wxCaret_GetBlinkTime(); | |
5583 | ||
5584 | wxPyEndAllowThreads(__tstate); | |
5585 | if (PyErr_Occurred()) SWIG_fail; | |
5586 | } | |
c32bde28 | 5587 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
5588 | return resultobj; |
5589 | fail: | |
5590 | return NULL; | |
5591 | } | |
5592 | ||
5593 | ||
c32bde28 | 5594 | static PyObject *_wrap_Caret_SetBlinkTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5595 | PyObject *resultobj; |
5596 | int arg1 ; | |
5597 | PyObject * obj0 = 0 ; | |
5598 | char *kwnames[] = { | |
5599 | (char *) "milliseconds", NULL | |
5600 | }; | |
5601 | ||
5602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_SetBlinkTime",kwnames,&obj0)) goto fail; | |
c32bde28 | 5603 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
5604 | if (PyErr_Occurred()) SWIG_fail; |
5605 | { | |
5606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5607 | wxCaret_SetBlinkTime(arg1); | |
5608 | ||
5609 | wxPyEndAllowThreads(__tstate); | |
5610 | if (PyErr_Occurred()) SWIG_fail; | |
5611 | } | |
5612 | Py_INCREF(Py_None); resultobj = Py_None; | |
5613 | return resultobj; | |
5614 | fail: | |
5615 | return NULL; | |
5616 | } | |
5617 | ||
5618 | ||
c32bde28 | 5619 | static PyObject *_wrap_new_BusyCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5620 | PyObject *resultobj; |
5621 | wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ; | |
5622 | wxBusyCursor *result; | |
5623 | PyObject * obj0 = 0 ; | |
5624 | char *kwnames[] = { | |
5625 | (char *) "cursor", NULL | |
5626 | }; | |
5627 | ||
5628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BusyCursor",kwnames,&obj0)) goto fail; | |
5629 | if (obj0) { | |
5630 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
5631 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5632 | } | |
5633 | { | |
0439c23b | 5634 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5636 | result = (wxBusyCursor *)new wxBusyCursor(arg1); | |
5637 | ||
5638 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5639 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5640 | } |
5641 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyCursor, 1); | |
5642 | return resultobj; | |
5643 | fail: | |
5644 | return NULL; | |
5645 | } | |
5646 | ||
5647 | ||
c32bde28 | 5648 | static PyObject *_wrap_delete_BusyCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5649 | PyObject *resultobj; |
5650 | wxBusyCursor *arg1 = (wxBusyCursor *) 0 ; | |
5651 | PyObject * obj0 = 0 ; | |
5652 | char *kwnames[] = { | |
5653 | (char *) "self", NULL | |
5654 | }; | |
5655 | ||
5656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyCursor",kwnames,&obj0)) goto fail; | |
5657 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyCursor, | |
5658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5659 | { | |
5660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5661 | delete arg1; | |
5662 | ||
5663 | wxPyEndAllowThreads(__tstate); | |
5664 | if (PyErr_Occurred()) SWIG_fail; | |
5665 | } | |
5666 | Py_INCREF(Py_None); resultobj = Py_None; | |
5667 | return resultobj; | |
5668 | fail: | |
5669 | return NULL; | |
5670 | } | |
5671 | ||
5672 | ||
c32bde28 | 5673 | static PyObject * BusyCursor_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
5674 | PyObject *obj; |
5675 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5676 | SWIG_TypeClientData(SWIGTYPE_p_wxBusyCursor, obj); | |
5677 | Py_INCREF(obj); | |
5678 | return Py_BuildValue((char *)""); | |
5679 | } | |
c32bde28 | 5680 | static PyObject *_wrap_new_WindowDisabler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5681 | PyObject *resultobj; |
5682 | wxWindow *arg1 = (wxWindow *) NULL ; | |
5683 | wxWindowDisabler *result; | |
5684 | PyObject * obj0 = 0 ; | |
5685 | char *kwnames[] = { | |
5686 | (char *) "winToSkip", NULL | |
5687 | }; | |
5688 | ||
5689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDisabler",kwnames,&obj0)) goto fail; | |
5690 | if (obj0) { | |
5691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
5692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5693 | } | |
5694 | { | |
0439c23b | 5695 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5697 | result = (wxWindowDisabler *)new wxWindowDisabler(arg1); | |
5698 | ||
5699 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5700 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5701 | } |
5702 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDisabler, 1); | |
5703 | return resultobj; | |
5704 | fail: | |
5705 | return NULL; | |
5706 | } | |
5707 | ||
5708 | ||
c32bde28 | 5709 | static PyObject *_wrap_delete_WindowDisabler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5710 | PyObject *resultobj; |
5711 | wxWindowDisabler *arg1 = (wxWindowDisabler *) 0 ; | |
5712 | PyObject * obj0 = 0 ; | |
5713 | char *kwnames[] = { | |
5714 | (char *) "self", NULL | |
5715 | }; | |
5716 | ||
5717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_WindowDisabler",kwnames,&obj0)) goto fail; | |
5718 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDisabler, | |
5719 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5720 | { | |
5721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5722 | delete arg1; | |
5723 | ||
5724 | wxPyEndAllowThreads(__tstate); | |
5725 | if (PyErr_Occurred()) SWIG_fail; | |
5726 | } | |
5727 | Py_INCREF(Py_None); resultobj = Py_None; | |
5728 | return resultobj; | |
5729 | fail: | |
5730 | return NULL; | |
5731 | } | |
5732 | ||
5733 | ||
c32bde28 | 5734 | static PyObject * WindowDisabler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
5735 | PyObject *obj; |
5736 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5737 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDisabler, obj); | |
5738 | Py_INCREF(obj); | |
5739 | return Py_BuildValue((char *)""); | |
5740 | } | |
c32bde28 | 5741 | static PyObject *_wrap_new_BusyInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5742 | PyObject *resultobj; |
5743 | wxString *arg1 = 0 ; | |
5744 | wxBusyInfo *result; | |
ae8162c8 | 5745 | bool temp1 = false ; |
d55e5bfc RD |
5746 | PyObject * obj0 = 0 ; |
5747 | char *kwnames[] = { | |
5748 | (char *) "message", NULL | |
5749 | }; | |
5750 | ||
5751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BusyInfo",kwnames,&obj0)) goto fail; | |
5752 | { | |
5753 | arg1 = wxString_in_helper(obj0); | |
5754 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 5755 | temp1 = true; |
d55e5bfc RD |
5756 | } |
5757 | { | |
0439c23b | 5758 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5760 | result = (wxBusyInfo *)new wxBusyInfo((wxString const &)*arg1); | |
5761 | ||
5762 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5763 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5764 | } |
5765 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyInfo, 1); | |
5766 | { | |
5767 | if (temp1) | |
5768 | delete arg1; | |
5769 | } | |
5770 | return resultobj; | |
5771 | fail: | |
5772 | { | |
5773 | if (temp1) | |
5774 | delete arg1; | |
5775 | } | |
5776 | return NULL; | |
5777 | } | |
5778 | ||
5779 | ||
c32bde28 | 5780 | static PyObject *_wrap_delete_BusyInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5781 | PyObject *resultobj; |
5782 | wxBusyInfo *arg1 = (wxBusyInfo *) 0 ; | |
5783 | PyObject * obj0 = 0 ; | |
5784 | char *kwnames[] = { | |
5785 | (char *) "self", NULL | |
5786 | }; | |
5787 | ||
5788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyInfo",kwnames,&obj0)) goto fail; | |
5789 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyInfo, | |
5790 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5791 | { | |
5792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5793 | delete arg1; | |
5794 | ||
5795 | wxPyEndAllowThreads(__tstate); | |
5796 | if (PyErr_Occurred()) SWIG_fail; | |
5797 | } | |
5798 | Py_INCREF(Py_None); resultobj = Py_None; | |
5799 | return resultobj; | |
5800 | fail: | |
5801 | return NULL; | |
5802 | } | |
5803 | ||
5804 | ||
c32bde28 | 5805 | static PyObject * BusyInfo_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
5806 | PyObject *obj; |
5807 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5808 | SWIG_TypeClientData(SWIGTYPE_p_wxBusyInfo, obj); | |
5809 | Py_INCREF(obj); | |
5810 | return Py_BuildValue((char *)""); | |
5811 | } | |
c32bde28 | 5812 | static PyObject *_wrap_new_StopWatch(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5813 | PyObject *resultobj; |
5814 | wxStopWatch *result; | |
5815 | char *kwnames[] = { | |
5816 | NULL | |
5817 | }; | |
5818 | ||
5819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StopWatch",kwnames)) goto fail; | |
5820 | { | |
5821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5822 | result = (wxStopWatch *)new wxStopWatch(); | |
5823 | ||
5824 | wxPyEndAllowThreads(__tstate); | |
5825 | if (PyErr_Occurred()) SWIG_fail; | |
5826 | } | |
5827 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStopWatch, 1); | |
5828 | return resultobj; | |
5829 | fail: | |
5830 | return NULL; | |
5831 | } | |
5832 | ||
5833 | ||
c32bde28 | 5834 | static PyObject *_wrap_StopWatch_Start(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5835 | PyObject *resultobj; |
5836 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5837 | long arg2 = (long) 0 ; | |
5838 | PyObject * obj0 = 0 ; | |
5839 | PyObject * obj1 = 0 ; | |
5840 | char *kwnames[] = { | |
5841 | (char *) "self",(char *) "t0", NULL | |
5842 | }; | |
5843 | ||
5844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StopWatch_Start",kwnames,&obj0,&obj1)) goto fail; | |
5845 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, | |
5846 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5847 | if (obj1) { | |
c32bde28 | 5848 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
5849 | if (PyErr_Occurred()) SWIG_fail; |
5850 | } | |
5851 | { | |
5852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5853 | (arg1)->Start(arg2); | |
5854 | ||
5855 | wxPyEndAllowThreads(__tstate); | |
5856 | if (PyErr_Occurred()) SWIG_fail; | |
5857 | } | |
5858 | Py_INCREF(Py_None); resultobj = Py_None; | |
5859 | return resultobj; | |
5860 | fail: | |
5861 | return NULL; | |
5862 | } | |
5863 | ||
5864 | ||
c32bde28 | 5865 | static PyObject *_wrap_StopWatch_Pause(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5866 | PyObject *resultobj; |
5867 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5868 | PyObject * obj0 = 0 ; | |
5869 | char *kwnames[] = { | |
5870 | (char *) "self", NULL | |
5871 | }; | |
5872 | ||
5873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Pause",kwnames,&obj0)) goto fail; | |
5874 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, | |
5875 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5876 | { | |
5877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5878 | (arg1)->Pause(); | |
5879 | ||
5880 | wxPyEndAllowThreads(__tstate); | |
5881 | if (PyErr_Occurred()) SWIG_fail; | |
5882 | } | |
5883 | Py_INCREF(Py_None); resultobj = Py_None; | |
5884 | return resultobj; | |
5885 | fail: | |
5886 | return NULL; | |
5887 | } | |
5888 | ||
5889 | ||
c32bde28 | 5890 | static PyObject *_wrap_StopWatch_Resume(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5891 | PyObject *resultobj; |
5892 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5893 | PyObject * obj0 = 0 ; | |
5894 | char *kwnames[] = { | |
5895 | (char *) "self", NULL | |
5896 | }; | |
5897 | ||
5898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Resume",kwnames,&obj0)) goto fail; | |
5899 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, | |
5900 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5901 | { | |
5902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5903 | (arg1)->Resume(); | |
5904 | ||
5905 | wxPyEndAllowThreads(__tstate); | |
5906 | if (PyErr_Occurred()) SWIG_fail; | |
5907 | } | |
5908 | Py_INCREF(Py_None); resultobj = Py_None; | |
5909 | return resultobj; | |
5910 | fail: | |
5911 | return NULL; | |
5912 | } | |
5913 | ||
5914 | ||
c32bde28 | 5915 | static PyObject *_wrap_StopWatch_Time(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5916 | PyObject *resultobj; |
5917 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
5918 | long result; | |
5919 | PyObject * obj0 = 0 ; | |
5920 | char *kwnames[] = { | |
5921 | (char *) "self", NULL | |
5922 | }; | |
5923 | ||
5924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Time",kwnames,&obj0)) goto fail; | |
5925 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch, | |
5926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5927 | { | |
5928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5929 | result = (long)((wxStopWatch const *)arg1)->Time(); | |
5930 | ||
5931 | wxPyEndAllowThreads(__tstate); | |
5932 | if (PyErr_Occurred()) SWIG_fail; | |
5933 | } | |
c32bde28 | 5934 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
5935 | return resultobj; |
5936 | fail: | |
5937 | return NULL; | |
5938 | } | |
5939 | ||
5940 | ||
c32bde28 | 5941 | static PyObject * StopWatch_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
5942 | PyObject *obj; |
5943 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5944 | SWIG_TypeClientData(SWIGTYPE_p_wxStopWatch, obj); | |
5945 | Py_INCREF(obj); | |
5946 | return Py_BuildValue((char *)""); | |
5947 | } | |
c32bde28 | 5948 | static PyObject *_wrap_new_FileHistory(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5949 | PyObject *resultobj; |
5950 | int arg1 = (int) 9 ; | |
4cf4100f | 5951 | int arg2 = (int) wxID_FILE1 ; |
d55e5bfc RD |
5952 | wxFileHistory *result; |
5953 | PyObject * obj0 = 0 ; | |
4cf4100f | 5954 | PyObject * obj1 = 0 ; |
d55e5bfc | 5955 | char *kwnames[] = { |
4cf4100f | 5956 | (char *) "maxFiles",(char *) "idBase", NULL |
d55e5bfc RD |
5957 | }; |
5958 | ||
4cf4100f | 5959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FileHistory",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc | 5960 | if (obj0) { |
c32bde28 | 5961 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
5962 | if (PyErr_Occurred()) SWIG_fail; |
5963 | } | |
4cf4100f | 5964 | if (obj1) { |
c32bde28 | 5965 | arg2 = (int)SWIG_As_int(obj1); |
4cf4100f RD |
5966 | if (PyErr_Occurred()) SWIG_fail; |
5967 | } | |
d55e5bfc RD |
5968 | { |
5969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4cf4100f | 5970 | result = (wxFileHistory *)new wxFileHistory(arg1,arg2); |
d55e5bfc RD |
5971 | |
5972 | wxPyEndAllowThreads(__tstate); | |
5973 | if (PyErr_Occurred()) SWIG_fail; | |
5974 | } | |
5975 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileHistory, 1); | |
5976 | return resultobj; | |
5977 | fail: | |
5978 | return NULL; | |
5979 | } | |
5980 | ||
5981 | ||
c32bde28 | 5982 | static PyObject *_wrap_delete_FileHistory(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5983 | PyObject *resultobj; |
5984 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5985 | PyObject * obj0 = 0 ; | |
5986 | char *kwnames[] = { | |
5987 | (char *) "self", NULL | |
5988 | }; | |
5989 | ||
5990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileHistory",kwnames,&obj0)) goto fail; | |
5991 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
5992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5993 | { | |
5994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5995 | delete arg1; | |
5996 | ||
5997 | wxPyEndAllowThreads(__tstate); | |
5998 | if (PyErr_Occurred()) SWIG_fail; | |
5999 | } | |
6000 | Py_INCREF(Py_None); resultobj = Py_None; | |
6001 | return resultobj; | |
6002 | fail: | |
6003 | return NULL; | |
6004 | } | |
6005 | ||
6006 | ||
c32bde28 | 6007 | static PyObject *_wrap_FileHistory_AddFileToHistory(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6008 | PyObject *resultobj; |
6009 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
6010 | wxString *arg2 = 0 ; | |
ae8162c8 | 6011 | bool temp2 = false ; |
d55e5bfc RD |
6012 | PyObject * obj0 = 0 ; |
6013 | PyObject * obj1 = 0 ; | |
6014 | char *kwnames[] = { | |
6015 | (char *) "self",(char *) "file", NULL | |
6016 | }; | |
6017 | ||
6018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFileToHistory",kwnames,&obj0,&obj1)) goto fail; | |
6019 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
6020 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6021 | { | |
6022 | arg2 = wxString_in_helper(obj1); | |
6023 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 6024 | temp2 = true; |
d55e5bfc RD |
6025 | } |
6026 | { | |
6027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6028 | (arg1)->AddFileToHistory((wxString const &)*arg2); | |
6029 | ||
6030 | wxPyEndAllowThreads(__tstate); | |
6031 | if (PyErr_Occurred()) SWIG_fail; | |
6032 | } | |
6033 | Py_INCREF(Py_None); resultobj = Py_None; | |
6034 | { | |
6035 | if (temp2) | |
6036 | delete arg2; | |
6037 | } | |
6038 | return resultobj; | |
6039 | fail: | |
6040 | { | |
6041 | if (temp2) | |
6042 | delete arg2; | |
6043 | } | |
6044 | return NULL; | |
6045 | } | |
6046 | ||
6047 | ||
c32bde28 | 6048 | static PyObject *_wrap_FileHistory_RemoveFileFromHistory(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6049 | PyObject *resultobj; |
6050 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
6051 | int arg2 ; | |
6052 | PyObject * obj0 = 0 ; | |
6053 | PyObject * obj1 = 0 ; | |
6054 | char *kwnames[] = { | |
6055 | (char *) "self",(char *) "i", NULL | |
6056 | }; | |
6057 | ||
6058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveFileFromHistory",kwnames,&obj0,&obj1)) goto fail; | |
6059 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
6060 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6061 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
6062 | if (PyErr_Occurred()) SWIG_fail; |
6063 | { | |
6064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6065 | (arg1)->RemoveFileFromHistory(arg2); | |
6066 | ||
6067 | wxPyEndAllowThreads(__tstate); | |
6068 | if (PyErr_Occurred()) SWIG_fail; | |
6069 | } | |
6070 | Py_INCREF(Py_None); resultobj = Py_None; | |
6071 | return resultobj; | |
6072 | fail: | |
6073 | return NULL; | |
6074 | } | |
6075 | ||
6076 | ||
c32bde28 | 6077 | static PyObject *_wrap_FileHistory_GetMaxFiles(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6078 | PyObject *resultobj; |
6079 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
6080 | int result; | |
6081 | PyObject * obj0 = 0 ; | |
6082 | char *kwnames[] = { | |
6083 | (char *) "self", NULL | |
6084 | }; | |
6085 | ||
6086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetMaxFiles",kwnames,&obj0)) goto fail; | |
6087 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
6088 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6089 | { | |
6090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6091 | result = (int)((wxFileHistory const *)arg1)->GetMaxFiles(); | |
6092 | ||
6093 | wxPyEndAllowThreads(__tstate); | |
6094 | if (PyErr_Occurred()) SWIG_fail; | |
6095 | } | |
c32bde28 | 6096 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
6097 | return resultobj; |
6098 | fail: | |
6099 | return NULL; | |
6100 | } | |
6101 | ||
6102 | ||
c32bde28 | 6103 | static PyObject *_wrap_FileHistory_UseMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6104 | PyObject *resultobj; |
6105 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
6106 | wxMenu *arg2 = (wxMenu *) 0 ; | |
6107 | PyObject * obj0 = 0 ; | |
6108 | PyObject * obj1 = 0 ; | |
6109 | char *kwnames[] = { | |
6110 | (char *) "self",(char *) "menu", NULL | |
6111 | }; | |
6112 | ||
6113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_UseMenu",kwnames,&obj0,&obj1)) goto fail; | |
6114 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
6115 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6116 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
6117 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6118 | { | |
6119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6120 | (arg1)->UseMenu(arg2); | |
6121 | ||
6122 | wxPyEndAllowThreads(__tstate); | |
6123 | if (PyErr_Occurred()) SWIG_fail; | |
6124 | } | |
6125 | Py_INCREF(Py_None); resultobj = Py_None; | |
6126 | return resultobj; | |
6127 | fail: | |
6128 | return NULL; | |
6129 | } | |
6130 | ||
6131 | ||
c32bde28 | 6132 | static PyObject *_wrap_FileHistory_RemoveMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6133 | PyObject *resultobj; |
6134 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
6135 | wxMenu *arg2 = (wxMenu *) 0 ; | |
6136 | PyObject * obj0 = 0 ; | |
6137 | PyObject * obj1 = 0 ; | |
6138 | char *kwnames[] = { | |
6139 | (char *) "self",(char *) "menu", NULL | |
6140 | }; | |
6141 | ||
6142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveMenu",kwnames,&obj0,&obj1)) goto fail; | |
6143 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
6144 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6145 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
6146 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6147 | { | |
6148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6149 | (arg1)->RemoveMenu(arg2); | |
6150 | ||
6151 | wxPyEndAllowThreads(__tstate); | |
6152 | if (PyErr_Occurred()) SWIG_fail; | |
6153 | } | |
6154 | Py_INCREF(Py_None); resultobj = Py_None; | |
6155 | return resultobj; | |
6156 | fail: | |
6157 | return NULL; | |
6158 | } | |
6159 | ||
6160 | ||
c32bde28 | 6161 | static PyObject *_wrap_FileHistory_Load(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6162 | PyObject *resultobj; |
6163 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
6164 | wxConfigBase *arg2 = 0 ; | |
6165 | PyObject * obj0 = 0 ; | |
6166 | PyObject * obj1 = 0 ; | |
6167 | char *kwnames[] = { | |
6168 | (char *) "self",(char *) "config", NULL | |
6169 | }; | |
6170 | ||
6171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Load",kwnames,&obj0,&obj1)) goto fail; | |
6172 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
6173 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6174 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase, | |
6175 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6176 | SWIG_fail; | |
6177 | if (arg2 == NULL) { | |
6178 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6179 | SWIG_fail; | |
6180 | } | |
6181 | { | |
6182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6183 | (arg1)->Load(*arg2); | |
6184 | ||
6185 | wxPyEndAllowThreads(__tstate); | |
6186 | if (PyErr_Occurred()) SWIG_fail; | |
6187 | } | |
6188 | Py_INCREF(Py_None); resultobj = Py_None; | |
6189 | return resultobj; | |
6190 | fail: | |
6191 | return NULL; | |
6192 | } | |
6193 | ||
6194 | ||
c32bde28 | 6195 | static PyObject *_wrap_FileHistory_Save(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6196 | PyObject *resultobj; |
6197 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
6198 | wxConfigBase *arg2 = 0 ; | |
6199 | PyObject * obj0 = 0 ; | |
6200 | PyObject * obj1 = 0 ; | |
6201 | char *kwnames[] = { | |
6202 | (char *) "self",(char *) "config", NULL | |
6203 | }; | |
6204 | ||
6205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Save",kwnames,&obj0,&obj1)) goto fail; | |
6206 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
6207 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6208 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase, | |
6209 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6210 | SWIG_fail; | |
6211 | if (arg2 == NULL) { | |
6212 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6213 | SWIG_fail; | |
6214 | } | |
6215 | { | |
6216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6217 | (arg1)->Save(*arg2); | |
6218 | ||
6219 | wxPyEndAllowThreads(__tstate); | |
6220 | if (PyErr_Occurred()) SWIG_fail; | |
6221 | } | |
6222 | Py_INCREF(Py_None); resultobj = Py_None; | |
6223 | return resultobj; | |
6224 | fail: | |
6225 | return NULL; | |
6226 | } | |
6227 | ||
6228 | ||
c32bde28 | 6229 | static PyObject *_wrap_FileHistory_AddFilesToMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6230 | PyObject *resultobj; |
6231 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
6232 | PyObject * obj0 = 0 ; | |
6233 | char *kwnames[] = { | |
6234 | (char *) "self", NULL | |
6235 | }; | |
6236 | ||
6237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_AddFilesToMenu",kwnames,&obj0)) goto fail; | |
6238 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
6239 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6240 | { | |
6241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6242 | (arg1)->AddFilesToMenu(); | |
6243 | ||
6244 | wxPyEndAllowThreads(__tstate); | |
6245 | if (PyErr_Occurred()) SWIG_fail; | |
6246 | } | |
6247 | Py_INCREF(Py_None); resultobj = Py_None; | |
6248 | return resultobj; | |
6249 | fail: | |
6250 | return NULL; | |
6251 | } | |
6252 | ||
6253 | ||
c32bde28 | 6254 | static PyObject *_wrap_FileHistory_AddFilesToThisMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6255 | PyObject *resultobj; |
6256 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
6257 | wxMenu *arg2 = (wxMenu *) 0 ; | |
6258 | PyObject * obj0 = 0 ; | |
6259 | PyObject * obj1 = 0 ; | |
6260 | char *kwnames[] = { | |
6261 | (char *) "self",(char *) "menu", NULL | |
6262 | }; | |
6263 | ||
6264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFilesToThisMenu",kwnames,&obj0,&obj1)) goto fail; | |
6265 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
6266 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6267 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
6268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6269 | { | |
6270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6271 | (arg1)->AddFilesToMenu(arg2); | |
6272 | ||
6273 | wxPyEndAllowThreads(__tstate); | |
6274 | if (PyErr_Occurred()) SWIG_fail; | |
6275 | } | |
6276 | Py_INCREF(Py_None); resultobj = Py_None; | |
6277 | return resultobj; | |
6278 | fail: | |
6279 | return NULL; | |
6280 | } | |
6281 | ||
6282 | ||
c32bde28 | 6283 | static PyObject *_wrap_FileHistory_GetHistoryFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6284 | PyObject *resultobj; |
6285 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
6286 | int arg2 ; | |
6287 | wxString result; | |
6288 | PyObject * obj0 = 0 ; | |
6289 | PyObject * obj1 = 0 ; | |
6290 | char *kwnames[] = { | |
6291 | (char *) "self",(char *) "i", NULL | |
6292 | }; | |
6293 | ||
6294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_GetHistoryFile",kwnames,&obj0,&obj1)) goto fail; | |
6295 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
6296 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 6297 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
6298 | if (PyErr_Occurred()) SWIG_fail; |
6299 | { | |
6300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6301 | result = ((wxFileHistory const *)arg1)->GetHistoryFile(arg2); | |
6302 | ||
6303 | wxPyEndAllowThreads(__tstate); | |
6304 | if (PyErr_Occurred()) SWIG_fail; | |
6305 | } | |
6306 | { | |
6307 | #if wxUSE_UNICODE | |
6308 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6309 | #else | |
6310 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6311 | #endif | |
6312 | } | |
6313 | return resultobj; | |
6314 | fail: | |
6315 | return NULL; | |
6316 | } | |
6317 | ||
6318 | ||
c32bde28 | 6319 | static PyObject *_wrap_FileHistory_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6320 | PyObject *resultobj; |
6321 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
6322 | int result; | |
6323 | PyObject * obj0 = 0 ; | |
6324 | char *kwnames[] = { | |
6325 | (char *) "self", NULL | |
6326 | }; | |
6327 | ||
6328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetCount",kwnames,&obj0)) goto fail; | |
6329 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory, | |
6330 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6331 | { | |
6332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6333 | result = (int)((wxFileHistory const *)arg1)->GetCount(); | |
6334 | ||
6335 | wxPyEndAllowThreads(__tstate); | |
6336 | if (PyErr_Occurred()) SWIG_fail; | |
6337 | } | |
c32bde28 | 6338 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
6339 | return resultobj; |
6340 | fail: | |
6341 | return NULL; | |
6342 | } | |
6343 | ||
6344 | ||
c32bde28 | 6345 | static PyObject * FileHistory_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6346 | PyObject *obj; |
6347 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6348 | SWIG_TypeClientData(SWIGTYPE_p_wxFileHistory, obj); | |
6349 | Py_INCREF(obj); | |
6350 | return Py_BuildValue((char *)""); | |
6351 | } | |
c32bde28 | 6352 | static PyObject *_wrap_new_SingleInstanceChecker(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6353 | PyObject *resultobj; |
6354 | wxString *arg1 = 0 ; | |
6355 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
6356 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
6357 | wxSingleInstanceChecker *result; | |
ae8162c8 RD |
6358 | bool temp1 = false ; |
6359 | bool temp2 = false ; | |
d55e5bfc RD |
6360 | PyObject * obj0 = 0 ; |
6361 | PyObject * obj1 = 0 ; | |
6362 | char *kwnames[] = { | |
6363 | (char *) "name",(char *) "path", NULL | |
6364 | }; | |
6365 | ||
6366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_SingleInstanceChecker",kwnames,&obj0,&obj1)) goto fail; | |
6367 | { | |
6368 | arg1 = wxString_in_helper(obj0); | |
6369 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 6370 | temp1 = true; |
d55e5bfc RD |
6371 | } |
6372 | if (obj1) { | |
6373 | { | |
6374 | arg2 = wxString_in_helper(obj1); | |
6375 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 6376 | temp2 = true; |
d55e5bfc RD |
6377 | } |
6378 | } | |
6379 | { | |
6380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6381 | result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker((wxString const &)*arg1,(wxString const &)*arg2); | |
6382 | ||
6383 | wxPyEndAllowThreads(__tstate); | |
6384 | if (PyErr_Occurred()) SWIG_fail; | |
6385 | } | |
6386 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1); | |
6387 | { | |
6388 | if (temp1) | |
6389 | delete arg1; | |
6390 | } | |
6391 | { | |
6392 | if (temp2) | |
6393 | delete arg2; | |
6394 | } | |
6395 | return resultobj; | |
6396 | fail: | |
6397 | { | |
6398 | if (temp1) | |
6399 | delete arg1; | |
6400 | } | |
6401 | { | |
6402 | if (temp2) | |
6403 | delete arg2; | |
6404 | } | |
6405 | return NULL; | |
6406 | } | |
6407 | ||
6408 | ||
c32bde28 | 6409 | static PyObject *_wrap_new_PreSingleInstanceChecker(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6410 | PyObject *resultobj; |
6411 | wxSingleInstanceChecker *result; | |
6412 | char *kwnames[] = { | |
6413 | NULL | |
6414 | }; | |
6415 | ||
6416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSingleInstanceChecker",kwnames)) goto fail; | |
6417 | { | |
6418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6419 | result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker(); | |
6420 | ||
6421 | wxPyEndAllowThreads(__tstate); | |
6422 | if (PyErr_Occurred()) SWIG_fail; | |
6423 | } | |
6424 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1); | |
6425 | return resultobj; | |
6426 | fail: | |
6427 | return NULL; | |
6428 | } | |
6429 | ||
6430 | ||
c32bde28 | 6431 | static PyObject *_wrap_delete_SingleInstanceChecker(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6432 | PyObject *resultobj; |
6433 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
6434 | PyObject * obj0 = 0 ; | |
6435 | char *kwnames[] = { | |
6436 | (char *) "self", NULL | |
6437 | }; | |
6438 | ||
6439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SingleInstanceChecker",kwnames,&obj0)) goto fail; | |
6440 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker, | |
6441 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6442 | { | |
6443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6444 | delete arg1; | |
6445 | ||
6446 | wxPyEndAllowThreads(__tstate); | |
6447 | if (PyErr_Occurred()) SWIG_fail; | |
6448 | } | |
6449 | Py_INCREF(Py_None); resultobj = Py_None; | |
6450 | return resultobj; | |
6451 | fail: | |
6452 | return NULL; | |
6453 | } | |
6454 | ||
6455 | ||
c32bde28 | 6456 | static PyObject *_wrap_SingleInstanceChecker_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6457 | PyObject *resultobj; |
6458 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
6459 | wxString *arg2 = 0 ; | |
6460 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
6461 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
6462 | bool result; | |
ae8162c8 RD |
6463 | bool temp2 = false ; |
6464 | bool temp3 = false ; | |
d55e5bfc RD |
6465 | PyObject * obj0 = 0 ; |
6466 | PyObject * obj1 = 0 ; | |
6467 | PyObject * obj2 = 0 ; | |
6468 | char *kwnames[] = { | |
6469 | (char *) "self",(char *) "name",(char *) "path", NULL | |
6470 | }; | |
6471 | ||
6472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SingleInstanceChecker_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6473 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker, | |
6474 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6475 | { | |
6476 | arg2 = wxString_in_helper(obj1); | |
6477 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 6478 | temp2 = true; |
d55e5bfc RD |
6479 | } |
6480 | if (obj2) { | |
6481 | { | |
6482 | arg3 = wxString_in_helper(obj2); | |
6483 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 6484 | temp3 = true; |
d55e5bfc RD |
6485 | } |
6486 | } | |
6487 | { | |
6488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6489 | result = (bool)(arg1)->Create((wxString const &)*arg2,(wxString const &)*arg3); | |
6490 | ||
6491 | wxPyEndAllowThreads(__tstate); | |
6492 | if (PyErr_Occurred()) SWIG_fail; | |
6493 | } | |
6494 | { | |
6495 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6496 | } | |
6497 | { | |
6498 | if (temp2) | |
6499 | delete arg2; | |
6500 | } | |
6501 | { | |
6502 | if (temp3) | |
6503 | delete arg3; | |
6504 | } | |
6505 | return resultobj; | |
6506 | fail: | |
6507 | { | |
6508 | if (temp2) | |
6509 | delete arg2; | |
6510 | } | |
6511 | { | |
6512 | if (temp3) | |
6513 | delete arg3; | |
6514 | } | |
6515 | return NULL; | |
6516 | } | |
6517 | ||
6518 | ||
c32bde28 | 6519 | static PyObject *_wrap_SingleInstanceChecker_IsAnotherRunning(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6520 | PyObject *resultobj; |
6521 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
6522 | bool result; | |
6523 | PyObject * obj0 = 0 ; | |
6524 | char *kwnames[] = { | |
6525 | (char *) "self", NULL | |
6526 | }; | |
6527 | ||
6528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleInstanceChecker_IsAnotherRunning",kwnames,&obj0)) goto fail; | |
6529 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker, | |
6530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6531 | { | |
6532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6533 | result = (bool)((wxSingleInstanceChecker const *)arg1)->IsAnotherRunning(); | |
6534 | ||
6535 | wxPyEndAllowThreads(__tstate); | |
6536 | if (PyErr_Occurred()) SWIG_fail; | |
6537 | } | |
6538 | { | |
6539 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6540 | } | |
6541 | return resultobj; | |
6542 | fail: | |
6543 | return NULL; | |
6544 | } | |
6545 | ||
6546 | ||
c32bde28 | 6547 | static PyObject * SingleInstanceChecker_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6548 | PyObject *obj; |
6549 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6550 | SWIG_TypeClientData(SWIGTYPE_p_wxSingleInstanceChecker, obj); | |
6551 | Py_INCREF(obj); | |
6552 | return Py_BuildValue((char *)""); | |
6553 | } | |
c32bde28 | 6554 | static PyObject *_wrap_DrawWindowOnDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6555 | PyObject *resultobj; |
6556 | wxWindow *arg1 = (wxWindow *) 0 ; | |
6557 | wxDC *arg2 = 0 ; | |
6558 | int arg3 ; | |
6559 | PyObject * obj0 = 0 ; | |
6560 | PyObject * obj1 = 0 ; | |
6561 | PyObject * obj2 = 0 ; | |
6562 | char *kwnames[] = { | |
6563 | (char *) "window",(char *) "dc",(char *) "method", NULL | |
6564 | }; | |
6565 | ||
6566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DrawWindowOnDC",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6567 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
6568 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6569 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
6570 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6571 | SWIG_fail; | |
6572 | if (arg2 == NULL) { | |
6573 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6574 | SWIG_fail; | |
6575 | } | |
c32bde28 | 6576 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
6577 | if (PyErr_Occurred()) SWIG_fail; |
6578 | { | |
6579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6580 | wxDrawWindowOnDC(arg1,(wxDC const &)*arg2,arg3); | |
6581 | ||
6582 | wxPyEndAllowThreads(__tstate); | |
6583 | if (PyErr_Occurred()) SWIG_fail; | |
6584 | } | |
6585 | Py_INCREF(Py_None); resultobj = Py_None; | |
6586 | return resultobj; | |
6587 | fail: | |
6588 | return NULL; | |
6589 | } | |
6590 | ||
6591 | ||
c32bde28 | 6592 | static PyObject *_wrap_delete_TipProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6593 | PyObject *resultobj; |
6594 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6595 | PyObject * obj0 = 0 ; | |
6596 | char *kwnames[] = { | |
6597 | (char *) "self", NULL | |
6598 | }; | |
6599 | ||
6600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TipProvider",kwnames,&obj0)) goto fail; | |
6601 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, | |
6602 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6603 | { | |
6604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6605 | delete arg1; | |
6606 | ||
6607 | wxPyEndAllowThreads(__tstate); | |
6608 | if (PyErr_Occurred()) SWIG_fail; | |
6609 | } | |
6610 | Py_INCREF(Py_None); resultobj = Py_None; | |
6611 | return resultobj; | |
6612 | fail: | |
6613 | return NULL; | |
6614 | } | |
6615 | ||
6616 | ||
c32bde28 | 6617 | static PyObject *_wrap_TipProvider_GetTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6618 | PyObject *resultobj; |
6619 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6620 | wxString result; | |
6621 | PyObject * obj0 = 0 ; | |
6622 | char *kwnames[] = { | |
6623 | (char *) "self", NULL | |
6624 | }; | |
6625 | ||
6626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetTip",kwnames,&obj0)) goto fail; | |
6627 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, | |
6628 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6629 | { | |
6630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6631 | result = (arg1)->GetTip(); | |
6632 | ||
6633 | wxPyEndAllowThreads(__tstate); | |
6634 | if (PyErr_Occurred()) SWIG_fail; | |
6635 | } | |
6636 | { | |
6637 | #if wxUSE_UNICODE | |
6638 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6639 | #else | |
6640 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6641 | #endif | |
6642 | } | |
6643 | return resultobj; | |
6644 | fail: | |
6645 | return NULL; | |
6646 | } | |
6647 | ||
6648 | ||
c32bde28 | 6649 | static PyObject *_wrap_TipProvider_GetCurrentTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6650 | PyObject *resultobj; |
6651 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6652 | size_t result; | |
6653 | PyObject * obj0 = 0 ; | |
6654 | char *kwnames[] = { | |
6655 | (char *) "self", NULL | |
6656 | }; | |
6657 | ||
6658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetCurrentTip",kwnames,&obj0)) goto fail; | |
6659 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, | |
6660 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6661 | { | |
6662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6663 | result = (size_t)(arg1)->GetCurrentTip(); | |
6664 | ||
6665 | wxPyEndAllowThreads(__tstate); | |
6666 | if (PyErr_Occurred()) SWIG_fail; | |
6667 | } | |
c32bde28 | 6668 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
6669 | return resultobj; |
6670 | fail: | |
6671 | return NULL; | |
6672 | } | |
6673 | ||
6674 | ||
c32bde28 | 6675 | static PyObject *_wrap_TipProvider_PreprocessTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6676 | PyObject *resultobj; |
6677 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
6678 | wxString *arg2 = 0 ; | |
6679 | wxString result; | |
ae8162c8 | 6680 | bool temp2 = false ; |
d55e5bfc RD |
6681 | PyObject * obj0 = 0 ; |
6682 | PyObject * obj1 = 0 ; | |
6683 | char *kwnames[] = { | |
6684 | (char *) "self",(char *) "tip", NULL | |
6685 | }; | |
6686 | ||
6687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipProvider_PreprocessTip",kwnames,&obj0,&obj1)) goto fail; | |
6688 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider, | |
6689 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6690 | { | |
6691 | arg2 = wxString_in_helper(obj1); | |
6692 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 6693 | temp2 = true; |
d55e5bfc RD |
6694 | } |
6695 | { | |
6696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6697 | result = (arg1)->PreprocessTip((wxString const &)*arg2); | |
6698 | ||
6699 | wxPyEndAllowThreads(__tstate); | |
6700 | if (PyErr_Occurred()) SWIG_fail; | |
6701 | } | |
6702 | { | |
6703 | #if wxUSE_UNICODE | |
6704 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6705 | #else | |
6706 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6707 | #endif | |
6708 | } | |
6709 | { | |
6710 | if (temp2) | |
6711 | delete arg2; | |
6712 | } | |
6713 | return resultobj; | |
6714 | fail: | |
6715 | { | |
6716 | if (temp2) | |
6717 | delete arg2; | |
6718 | } | |
6719 | return NULL; | |
6720 | } | |
6721 | ||
6722 | ||
c32bde28 | 6723 | static PyObject * TipProvider_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6724 | PyObject *obj; |
6725 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6726 | SWIG_TypeClientData(SWIGTYPE_p_wxTipProvider, obj); | |
6727 | Py_INCREF(obj); | |
6728 | return Py_BuildValue((char *)""); | |
6729 | } | |
c32bde28 | 6730 | static PyObject *_wrap_new_PyTipProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6731 | PyObject *resultobj; |
6732 | size_t arg1 ; | |
6733 | wxPyTipProvider *result; | |
6734 | PyObject * obj0 = 0 ; | |
6735 | char *kwnames[] = { | |
6736 | (char *) "currentTip", NULL | |
6737 | }; | |
6738 | ||
6739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PyTipProvider",kwnames,&obj0)) goto fail; | |
c32bde28 | 6740 | arg1 = (size_t)SWIG_As_unsigned_SS_long(obj0); |
d55e5bfc RD |
6741 | if (PyErr_Occurred()) SWIG_fail; |
6742 | { | |
6743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6744 | result = (wxPyTipProvider *)new wxPyTipProvider(arg1); | |
6745 | ||
6746 | wxPyEndAllowThreads(__tstate); | |
6747 | if (PyErr_Occurred()) SWIG_fail; | |
6748 | } | |
6749 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTipProvider, 1); | |
6750 | return resultobj; | |
6751 | fail: | |
6752 | return NULL; | |
6753 | } | |
6754 | ||
6755 | ||
c32bde28 | 6756 | static PyObject *_wrap_PyTipProvider__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6757 | PyObject *resultobj; |
6758 | wxPyTipProvider *arg1 = (wxPyTipProvider *) 0 ; | |
6759 | PyObject *arg2 = (PyObject *) 0 ; | |
6760 | PyObject *arg3 = (PyObject *) 0 ; | |
6761 | PyObject * obj0 = 0 ; | |
6762 | PyObject * obj1 = 0 ; | |
6763 | PyObject * obj2 = 0 ; | |
6764 | char *kwnames[] = { | |
6765 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
6766 | }; | |
6767 | ||
6768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTipProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6769 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTipProvider, | |
6770 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6771 | arg2 = obj1; | |
6772 | arg3 = obj2; | |
6773 | { | |
6774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6775 | (arg1)->_setCallbackInfo(arg2,arg3); | |
6776 | ||
6777 | wxPyEndAllowThreads(__tstate); | |
6778 | if (PyErr_Occurred()) SWIG_fail; | |
6779 | } | |
6780 | Py_INCREF(Py_None); resultobj = Py_None; | |
6781 | return resultobj; | |
6782 | fail: | |
6783 | return NULL; | |
6784 | } | |
6785 | ||
6786 | ||
c32bde28 | 6787 | static PyObject * PyTipProvider_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6788 | PyObject *obj; |
6789 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6790 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTipProvider, obj); | |
6791 | Py_INCREF(obj); | |
6792 | return Py_BuildValue((char *)""); | |
6793 | } | |
c32bde28 | 6794 | static PyObject *_wrap_ShowTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6795 | PyObject *resultobj; |
6796 | wxWindow *arg1 = (wxWindow *) 0 ; | |
6797 | wxTipProvider *arg2 = (wxTipProvider *) 0 ; | |
ae8162c8 | 6798 | bool arg3 = (bool) true ; |
d55e5bfc RD |
6799 | bool result; |
6800 | PyObject * obj0 = 0 ; | |
6801 | PyObject * obj1 = 0 ; | |
6802 | PyObject * obj2 = 0 ; | |
6803 | char *kwnames[] = { | |
6804 | (char *) "parent",(char *) "tipProvider",(char *) "showAtStartup", NULL | |
6805 | }; | |
6806 | ||
6807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ShowTip",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6808 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
6809 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6810 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTipProvider, | |
6811 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6812 | if (obj2) { | |
c32bde28 | 6813 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
6814 | if (PyErr_Occurred()) SWIG_fail; |
6815 | } | |
6816 | { | |
0439c23b | 6817 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6819 | result = (bool)wxShowTip(arg1,arg2,arg3); | |
6820 | ||
6821 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6822 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6823 | } |
6824 | { | |
6825 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6826 | } | |
6827 | return resultobj; | |
6828 | fail: | |
6829 | return NULL; | |
6830 | } | |
6831 | ||
6832 | ||
c32bde28 | 6833 | static PyObject *_wrap_CreateFileTipProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6834 | PyObject *resultobj; |
6835 | wxString *arg1 = 0 ; | |
6836 | size_t arg2 ; | |
6837 | wxTipProvider *result; | |
ae8162c8 | 6838 | bool temp1 = false ; |
d55e5bfc RD |
6839 | PyObject * obj0 = 0 ; |
6840 | PyObject * obj1 = 0 ; | |
6841 | char *kwnames[] = { | |
6842 | (char *) "filename",(char *) "currentTip", NULL | |
6843 | }; | |
6844 | ||
6845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CreateFileTipProvider",kwnames,&obj0,&obj1)) goto fail; | |
6846 | { | |
6847 | arg1 = wxString_in_helper(obj0); | |
6848 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 6849 | temp1 = true; |
d55e5bfc | 6850 | } |
c32bde28 | 6851 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
6852 | if (PyErr_Occurred()) SWIG_fail; |
6853 | { | |
0439c23b | 6854 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6856 | result = (wxTipProvider *)wxCreateFileTipProvider((wxString const &)*arg1,arg2); | |
6857 | ||
6858 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6859 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6860 | } |
6861 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTipProvider, 1); | |
6862 | { | |
6863 | if (temp1) | |
6864 | delete arg1; | |
6865 | } | |
6866 | return resultobj; | |
6867 | fail: | |
6868 | { | |
6869 | if (temp1) | |
6870 | delete arg1; | |
6871 | } | |
6872 | return NULL; | |
6873 | } | |
6874 | ||
6875 | ||
c32bde28 | 6876 | static PyObject *_wrap_new_Timer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6877 | PyObject *resultobj; |
6878 | wxEvtHandler *arg1 = (wxEvtHandler *) NULL ; | |
6879 | int arg2 = (int) -1 ; | |
6880 | wxPyTimer *result; | |
6881 | PyObject * obj0 = 0 ; | |
6882 | PyObject * obj1 = 0 ; | |
6883 | char *kwnames[] = { | |
6884 | (char *) "owner",(char *) "id", NULL | |
6885 | }; | |
6886 | ||
6887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Timer",kwnames,&obj0,&obj1)) goto fail; | |
6888 | if (obj0) { | |
6889 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
6890 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6891 | } | |
6892 | if (obj1) { | |
c32bde28 | 6893 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
6894 | if (PyErr_Occurred()) SWIG_fail; |
6895 | } | |
6896 | { | |
0439c23b | 6897 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6899 | result = (wxPyTimer *)new wxPyTimer(arg1,arg2); | |
6900 | ||
6901 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6902 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6903 | } |
6904 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTimer, 1); | |
6905 | return resultobj; | |
6906 | fail: | |
6907 | return NULL; | |
6908 | } | |
6909 | ||
6910 | ||
c32bde28 | 6911 | static PyObject *_wrap_delete_Timer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6912 | PyObject *resultobj; |
6913 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6914 | PyObject * obj0 = 0 ; | |
6915 | char *kwnames[] = { | |
6916 | (char *) "self", NULL | |
6917 | }; | |
6918 | ||
6919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Timer",kwnames,&obj0)) goto fail; | |
6920 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6921 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6922 | { | |
6923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6924 | delete arg1; | |
6925 | ||
6926 | wxPyEndAllowThreads(__tstate); | |
6927 | if (PyErr_Occurred()) SWIG_fail; | |
6928 | } | |
6929 | Py_INCREF(Py_None); resultobj = Py_None; | |
6930 | return resultobj; | |
6931 | fail: | |
6932 | return NULL; | |
6933 | } | |
6934 | ||
6935 | ||
c32bde28 | 6936 | static PyObject *_wrap_Timer__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6937 | PyObject *resultobj; |
6938 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6939 | PyObject *arg2 = (PyObject *) 0 ; | |
6940 | PyObject *arg3 = (PyObject *) 0 ; | |
6941 | int arg4 = (int) 1 ; | |
6942 | PyObject * obj0 = 0 ; | |
6943 | PyObject * obj1 = 0 ; | |
6944 | PyObject * obj2 = 0 ; | |
6945 | PyObject * obj3 = 0 ; | |
6946 | char *kwnames[] = { | |
6947 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
6948 | }; | |
6949 | ||
6950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Timer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
6951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6953 | arg2 = obj1; | |
6954 | arg3 = obj2; | |
6955 | if (obj3) { | |
c32bde28 | 6956 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
6957 | if (PyErr_Occurred()) SWIG_fail; |
6958 | } | |
6959 | { | |
6960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6961 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
6962 | ||
6963 | wxPyEndAllowThreads(__tstate); | |
6964 | if (PyErr_Occurred()) SWIG_fail; | |
6965 | } | |
6966 | Py_INCREF(Py_None); resultobj = Py_None; | |
6967 | return resultobj; | |
6968 | fail: | |
6969 | return NULL; | |
6970 | } | |
6971 | ||
6972 | ||
c32bde28 | 6973 | static PyObject *_wrap_Timer_SetOwner(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6974 | PyObject *resultobj; |
6975 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
6976 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
6977 | int arg3 = (int) -1 ; | |
6978 | PyObject * obj0 = 0 ; | |
6979 | PyObject * obj1 = 0 ; | |
6980 | PyObject * obj2 = 0 ; | |
6981 | char *kwnames[] = { | |
6982 | (char *) "self",(char *) "owner",(char *) "id", NULL | |
6983 | }; | |
6984 | ||
6985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Timer_SetOwner",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6986 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
6987 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6988 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
6989 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6990 | if (obj2) { | |
c32bde28 | 6991 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
6992 | if (PyErr_Occurred()) SWIG_fail; |
6993 | } | |
6994 | { | |
6995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6996 | (arg1)->SetOwner(arg2,arg3); | |
6997 | ||
6998 | wxPyEndAllowThreads(__tstate); | |
6999 | if (PyErr_Occurred()) SWIG_fail; | |
7000 | } | |
7001 | Py_INCREF(Py_None); resultobj = Py_None; | |
7002 | return resultobj; | |
7003 | fail: | |
7004 | return NULL; | |
7005 | } | |
7006 | ||
7007 | ||
c32bde28 | 7008 | static PyObject *_wrap_Timer_GetOwner(PyObject *, PyObject *args, PyObject *kwargs) { |
1a6bba1e RD |
7009 | PyObject *resultobj; |
7010 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
7011 | wxEvtHandler *result; | |
7012 | PyObject * obj0 = 0 ; | |
7013 | char *kwnames[] = { | |
7014 | (char *) "self", NULL | |
7015 | }; | |
7016 | ||
7017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetOwner",kwnames,&obj0)) goto fail; | |
7018 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
7019 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7020 | { | |
7021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7022 | result = (wxEvtHandler *)(arg1)->GetOwner(); | |
7023 | ||
7024 | wxPyEndAllowThreads(__tstate); | |
7025 | if (PyErr_Occurred()) SWIG_fail; | |
7026 | } | |
7027 | { | |
412d302d | 7028 | resultobj = wxPyMake_wxObject(result, 0); |
1a6bba1e RD |
7029 | } |
7030 | return resultobj; | |
7031 | fail: | |
7032 | return NULL; | |
7033 | } | |
7034 | ||
7035 | ||
c32bde28 | 7036 | static PyObject *_wrap_Timer_Start(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7037 | PyObject *resultobj; |
7038 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
7039 | int arg2 = (int) -1 ; | |
ae8162c8 | 7040 | bool arg3 = (bool) false ; |
d55e5bfc RD |
7041 | bool result; |
7042 | PyObject * obj0 = 0 ; | |
7043 | PyObject * obj1 = 0 ; | |
7044 | PyObject * obj2 = 0 ; | |
7045 | char *kwnames[] = { | |
7046 | (char *) "self",(char *) "milliseconds",(char *) "oneShot", NULL | |
7047 | }; | |
7048 | ||
7049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Timer_Start",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7050 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
7051 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7052 | if (obj1) { | |
c32bde28 | 7053 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
7054 | if (PyErr_Occurred()) SWIG_fail; |
7055 | } | |
7056 | if (obj2) { | |
c32bde28 | 7057 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
7058 | if (PyErr_Occurred()) SWIG_fail; |
7059 | } | |
7060 | { | |
7061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7062 | result = (bool)(arg1)->Start(arg2,arg3); | |
7063 | ||
7064 | wxPyEndAllowThreads(__tstate); | |
7065 | if (PyErr_Occurred()) SWIG_fail; | |
7066 | } | |
7067 | { | |
7068 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7069 | } | |
7070 | return resultobj; | |
7071 | fail: | |
7072 | return NULL; | |
7073 | } | |
7074 | ||
7075 | ||
c32bde28 | 7076 | static PyObject *_wrap_Timer_Stop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7077 | PyObject *resultobj; |
7078 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
7079 | PyObject * obj0 = 0 ; | |
7080 | char *kwnames[] = { | |
7081 | (char *) "self", NULL | |
7082 | }; | |
7083 | ||
7084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Stop",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 | (arg1)->Stop(); | |
7090 | ||
7091 | wxPyEndAllowThreads(__tstate); | |
7092 | if (PyErr_Occurred()) SWIG_fail; | |
7093 | } | |
7094 | Py_INCREF(Py_None); resultobj = Py_None; | |
7095 | return resultobj; | |
7096 | fail: | |
7097 | return NULL; | |
7098 | } | |
7099 | ||
7100 | ||
c32bde28 | 7101 | static PyObject *_wrap_Timer_IsRunning(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7102 | PyObject *resultobj; |
7103 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
7104 | bool result; | |
7105 | PyObject * obj0 = 0 ; | |
7106 | char *kwnames[] = { | |
7107 | (char *) "self", NULL | |
7108 | }; | |
7109 | ||
7110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsRunning",kwnames,&obj0)) goto fail; | |
7111 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
7112 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7113 | { | |
7114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7115 | result = (bool)((wxPyTimer const *)arg1)->IsRunning(); | |
7116 | ||
7117 | wxPyEndAllowThreads(__tstate); | |
7118 | if (PyErr_Occurred()) SWIG_fail; | |
7119 | } | |
7120 | { | |
7121 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7122 | } | |
7123 | return resultobj; | |
7124 | fail: | |
7125 | return NULL; | |
7126 | } | |
7127 | ||
7128 | ||
c32bde28 | 7129 | static PyObject *_wrap_Timer_GetInterval(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7130 | PyObject *resultobj; |
7131 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
7132 | int result; | |
7133 | PyObject * obj0 = 0 ; | |
7134 | char *kwnames[] = { | |
7135 | (char *) "self", NULL | |
7136 | }; | |
7137 | ||
7138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetInterval",kwnames,&obj0)) goto fail; | |
7139 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
7140 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7141 | { | |
7142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7143 | result = (int)((wxPyTimer const *)arg1)->GetInterval(); | |
7144 | ||
7145 | wxPyEndAllowThreads(__tstate); | |
7146 | if (PyErr_Occurred()) SWIG_fail; | |
7147 | } | |
c32bde28 | 7148 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
7149 | return resultobj; |
7150 | fail: | |
7151 | return NULL; | |
7152 | } | |
7153 | ||
7154 | ||
c32bde28 | 7155 | static PyObject *_wrap_Timer_IsOneShot(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7156 | PyObject *resultobj; |
7157 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
7158 | bool result; | |
7159 | PyObject * obj0 = 0 ; | |
7160 | char *kwnames[] = { | |
7161 | (char *) "self", NULL | |
7162 | }; | |
7163 | ||
7164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsOneShot",kwnames,&obj0)) goto fail; | |
7165 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
7166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7167 | { | |
7168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7169 | result = (bool)((wxPyTimer const *)arg1)->IsOneShot(); | |
7170 | ||
7171 | wxPyEndAllowThreads(__tstate); | |
7172 | if (PyErr_Occurred()) SWIG_fail; | |
7173 | } | |
7174 | { | |
7175 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7176 | } | |
7177 | return resultobj; | |
7178 | fail: | |
7179 | return NULL; | |
7180 | } | |
7181 | ||
7182 | ||
c32bde28 | 7183 | static PyObject *_wrap_Timer_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7184 | PyObject *resultobj; |
7185 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
7186 | int result; | |
7187 | PyObject * obj0 = 0 ; | |
7188 | char *kwnames[] = { | |
7189 | (char *) "self", NULL | |
7190 | }; | |
7191 | ||
7192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetId",kwnames,&obj0)) goto fail; | |
7193 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer, | |
7194 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7195 | { | |
7196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7197 | result = (int)((wxPyTimer const *)arg1)->GetId(); | |
7198 | ||
7199 | wxPyEndAllowThreads(__tstate); | |
7200 | if (PyErr_Occurred()) SWIG_fail; | |
7201 | } | |
c32bde28 | 7202 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
7203 | return resultobj; |
7204 | fail: | |
7205 | return NULL; | |
7206 | } | |
7207 | ||
7208 | ||
c32bde28 | 7209 | static PyObject * Timer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
7210 | PyObject *obj; |
7211 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7212 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTimer, obj); | |
7213 | Py_INCREF(obj); | |
7214 | return Py_BuildValue((char *)""); | |
7215 | } | |
c32bde28 | 7216 | static PyObject *_wrap_new_TimerEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7217 | PyObject *resultobj; |
7218 | int arg1 = (int) 0 ; | |
7219 | int arg2 = (int) 0 ; | |
7220 | wxTimerEvent *result; | |
7221 | PyObject * obj0 = 0 ; | |
7222 | PyObject * obj1 = 0 ; | |
7223 | char *kwnames[] = { | |
7224 | (char *) "timerid",(char *) "interval", NULL | |
7225 | }; | |
7226 | ||
7227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TimerEvent",kwnames,&obj0,&obj1)) goto fail; | |
7228 | if (obj0) { | |
c32bde28 | 7229 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
7230 | if (PyErr_Occurred()) SWIG_fail; |
7231 | } | |
7232 | if (obj1) { | |
c32bde28 | 7233 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
7234 | if (PyErr_Occurred()) SWIG_fail; |
7235 | } | |
7236 | { | |
7237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7238 | result = (wxTimerEvent *)new wxTimerEvent(arg1,arg2); | |
7239 | ||
7240 | wxPyEndAllowThreads(__tstate); | |
7241 | if (PyErr_Occurred()) SWIG_fail; | |
7242 | } | |
7243 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerEvent, 1); | |
7244 | return resultobj; | |
7245 | fail: | |
7246 | return NULL; | |
7247 | } | |
7248 | ||
7249 | ||
c32bde28 | 7250 | static PyObject *_wrap_TimerEvent_GetInterval(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7251 | PyObject *resultobj; |
7252 | wxTimerEvent *arg1 = (wxTimerEvent *) 0 ; | |
7253 | int result; | |
7254 | PyObject * obj0 = 0 ; | |
7255 | char *kwnames[] = { | |
7256 | (char *) "self", NULL | |
7257 | }; | |
7258 | ||
7259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimerEvent_GetInterval",kwnames,&obj0)) goto fail; | |
7260 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerEvent, | |
7261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7262 | { | |
7263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7264 | result = (int)((wxTimerEvent const *)arg1)->GetInterval(); | |
7265 | ||
7266 | wxPyEndAllowThreads(__tstate); | |
7267 | if (PyErr_Occurred()) SWIG_fail; | |
7268 | } | |
c32bde28 | 7269 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
7270 | return resultobj; |
7271 | fail: | |
7272 | return NULL; | |
7273 | } | |
7274 | ||
7275 | ||
c32bde28 | 7276 | static PyObject * TimerEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
7277 | PyObject *obj; |
7278 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7279 | SWIG_TypeClientData(SWIGTYPE_p_wxTimerEvent, obj); | |
7280 | Py_INCREF(obj); | |
7281 | return Py_BuildValue((char *)""); | |
7282 | } | |
c32bde28 | 7283 | static PyObject *_wrap_new_TimerRunner__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
7284 | PyObject *resultobj; |
7285 | wxTimer *arg1 = 0 ; | |
7286 | wxTimerRunner *result; | |
7287 | PyObject * obj0 = 0 ; | |
7288 | ||
7289 | if(!PyArg_ParseTuple(args,(char *)"O:new_TimerRunner",&obj0)) goto fail; | |
7290 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer, | |
7291 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7292 | SWIG_fail; | |
7293 | if (arg1 == NULL) { | |
7294 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7295 | SWIG_fail; | |
7296 | } | |
7297 | { | |
0439c23b | 7298 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
7299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7300 | result = (wxTimerRunner *)new wxTimerRunner(*arg1); | |
7301 | ||
7302 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 7303 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
7304 | } |
7305 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1); | |
7306 | return resultobj; | |
7307 | fail: | |
7308 | return NULL; | |
7309 | } | |
7310 | ||
7311 | ||
c32bde28 | 7312 | static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
7313 | PyObject *resultobj; |
7314 | wxTimer *arg1 = 0 ; | |
7315 | int arg2 ; | |
ae8162c8 | 7316 | bool arg3 = (bool) false ; |
d55e5bfc RD |
7317 | wxTimerRunner *result; |
7318 | PyObject * obj0 = 0 ; | |
7319 | PyObject * obj1 = 0 ; | |
7320 | PyObject * obj2 = 0 ; | |
7321 | ||
7322 | if(!PyArg_ParseTuple(args,(char *)"OO|O:new_TimerRunner",&obj0,&obj1,&obj2)) goto fail; | |
7323 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer, | |
7324 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7325 | SWIG_fail; | |
7326 | if (arg1 == NULL) { | |
7327 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7328 | SWIG_fail; | |
7329 | } | |
c32bde28 | 7330 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
7331 | if (PyErr_Occurred()) SWIG_fail; |
7332 | if (obj2) { | |
c32bde28 | 7333 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
7334 | if (PyErr_Occurred()) SWIG_fail; |
7335 | } | |
7336 | { | |
0439c23b | 7337 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
7338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7339 | result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2,arg3); | |
7340 | ||
7341 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 7342 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
7343 | } |
7344 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1); | |
7345 | return resultobj; | |
7346 | fail: | |
7347 | return NULL; | |
7348 | } | |
7349 | ||
7350 | ||
7351 | static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) { | |
7352 | int argc; | |
7353 | PyObject *argv[4]; | |
7354 | int ii; | |
7355 | ||
7356 | argc = PyObject_Length(args); | |
7357 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
7358 | argv[ii] = PyTuple_GetItem(args,ii); | |
7359 | } | |
7360 | if (argc == 1) { | |
7361 | int _v; | |
7362 | { | |
7363 | void *ptr; | |
7364 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) { | |
7365 | _v = 0; | |
7366 | PyErr_Clear(); | |
7367 | } else { | |
7368 | _v = 1; | |
7369 | } | |
7370 | } | |
7371 | if (_v) { | |
7372 | return _wrap_new_TimerRunner__SWIG_0(self,args); | |
7373 | } | |
7374 | } | |
7375 | if ((argc >= 2) && (argc <= 3)) { | |
7376 | int _v; | |
7377 | { | |
7378 | void *ptr; | |
7379 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) { | |
7380 | _v = 0; | |
7381 | PyErr_Clear(); | |
7382 | } else { | |
7383 | _v = 1; | |
7384 | } | |
7385 | } | |
7386 | if (_v) { | |
c32bde28 | 7387 | _v = SWIG_Check_int(argv[1]); |
d55e5bfc RD |
7388 | if (_v) { |
7389 | if (argc <= 2) { | |
7390 | return _wrap_new_TimerRunner__SWIG_1(self,args); | |
7391 | } | |
c32bde28 | 7392 | _v = SWIG_Check_bool(argv[2]); |
d55e5bfc RD |
7393 | if (_v) { |
7394 | return _wrap_new_TimerRunner__SWIG_1(self,args); | |
7395 | } | |
7396 | } | |
7397 | } | |
7398 | } | |
7399 | ||
7400 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TimerRunner'"); | |
7401 | return NULL; | |
7402 | } | |
7403 | ||
7404 | ||
c32bde28 | 7405 | static PyObject *_wrap_delete_TimerRunner(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7406 | PyObject *resultobj; |
7407 | wxTimerRunner *arg1 = (wxTimerRunner *) 0 ; | |
7408 | PyObject * obj0 = 0 ; | |
7409 | char *kwnames[] = { | |
7410 | (char *) "self", NULL | |
7411 | }; | |
7412 | ||
7413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimerRunner",kwnames,&obj0)) goto fail; | |
7414 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner, | |
7415 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7416 | { | |
7417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7418 | delete arg1; | |
7419 | ||
7420 | wxPyEndAllowThreads(__tstate); | |
7421 | if (PyErr_Occurred()) SWIG_fail; | |
7422 | } | |
7423 | Py_INCREF(Py_None); resultobj = Py_None; | |
7424 | return resultobj; | |
7425 | fail: | |
7426 | return NULL; | |
7427 | } | |
7428 | ||
7429 | ||
c32bde28 | 7430 | static PyObject *_wrap_TimerRunner_Start(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7431 | PyObject *resultobj; |
7432 | wxTimerRunner *arg1 = (wxTimerRunner *) 0 ; | |
7433 | int arg2 ; | |
ae8162c8 | 7434 | bool arg3 = (bool) false ; |
d55e5bfc RD |
7435 | PyObject * obj0 = 0 ; |
7436 | PyObject * obj1 = 0 ; | |
7437 | PyObject * obj2 = 0 ; | |
7438 | char *kwnames[] = { | |
7439 | (char *) "self",(char *) "milli",(char *) "oneShot", NULL | |
7440 | }; | |
7441 | ||
7442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TimerRunner_Start",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7443 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner, | |
7444 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 7445 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
7446 | if (PyErr_Occurred()) SWIG_fail; |
7447 | if (obj2) { | |
c32bde28 | 7448 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
7449 | if (PyErr_Occurred()) SWIG_fail; |
7450 | } | |
7451 | { | |
7452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7453 | (arg1)->Start(arg2,arg3); | |
7454 | ||
7455 | wxPyEndAllowThreads(__tstate); | |
7456 | if (PyErr_Occurred()) SWIG_fail; | |
7457 | } | |
7458 | Py_INCREF(Py_None); resultobj = Py_None; | |
7459 | return resultobj; | |
7460 | fail: | |
7461 | return NULL; | |
7462 | } | |
7463 | ||
7464 | ||
c32bde28 | 7465 | static PyObject * TimerRunner_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
7466 | PyObject *obj; |
7467 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7468 | SWIG_TypeClientData(SWIGTYPE_p_wxTimerRunner, obj); | |
7469 | Py_INCREF(obj); | |
7470 | return Py_BuildValue((char *)""); | |
7471 | } | |
c32bde28 | 7472 | static PyObject *_wrap_new_Log(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7473 | PyObject *resultobj; |
7474 | wxLog *result; | |
7475 | char *kwnames[] = { | |
7476 | NULL | |
7477 | }; | |
7478 | ||
7479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Log",kwnames)) goto fail; | |
7480 | { | |
7481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7482 | result = (wxLog *)new wxLog(); | |
7483 | ||
7484 | wxPyEndAllowThreads(__tstate); | |
7485 | if (PyErr_Occurred()) SWIG_fail; | |
7486 | } | |
7487 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 1); | |
7488 | return resultobj; | |
7489 | fail: | |
7490 | return NULL; | |
7491 | } | |
7492 | ||
7493 | ||
c32bde28 | 7494 | static PyObject *_wrap_Log_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7495 | PyObject *resultobj; |
7496 | bool result; | |
7497 | char *kwnames[] = { | |
7498 | NULL | |
7499 | }; | |
7500 | ||
7501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_IsEnabled",kwnames)) goto fail; | |
7502 | { | |
7503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7504 | result = (bool)wxLog::IsEnabled(); | |
7505 | ||
7506 | wxPyEndAllowThreads(__tstate); | |
7507 | if (PyErr_Occurred()) SWIG_fail; | |
7508 | } | |
7509 | { | |
7510 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7511 | } | |
7512 | return resultobj; | |
7513 | fail: | |
7514 | return NULL; | |
7515 | } | |
7516 | ||
7517 | ||
c32bde28 | 7518 | static PyObject *_wrap_Log_EnableLogging(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 7519 | PyObject *resultobj; |
ae8162c8 | 7520 | bool arg1 = (bool) true ; |
d55e5bfc RD |
7521 | bool result; |
7522 | PyObject * obj0 = 0 ; | |
7523 | char *kwnames[] = { | |
7524 | (char *) "doIt", NULL | |
7525 | }; | |
7526 | ||
7527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_EnableLogging",kwnames,&obj0)) goto fail; | |
7528 | if (obj0) { | |
c32bde28 | 7529 | arg1 = (bool)SWIG_As_bool(obj0); |
d55e5bfc RD |
7530 | if (PyErr_Occurred()) SWIG_fail; |
7531 | } | |
7532 | { | |
7533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7534 | result = (bool)wxLog::EnableLogging(arg1); | |
7535 | ||
7536 | wxPyEndAllowThreads(__tstate); | |
7537 | if (PyErr_Occurred()) SWIG_fail; | |
7538 | } | |
7539 | { | |
7540 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7541 | } | |
7542 | return resultobj; | |
7543 | fail: | |
7544 | return NULL; | |
7545 | } | |
7546 | ||
7547 | ||
c32bde28 | 7548 | static PyObject *_wrap_Log_OnLog(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7549 | PyObject *resultobj; |
7550 | wxLogLevel arg1 ; | |
7551 | wxChar *arg2 = (wxChar *) 0 ; | |
7552 | time_t arg3 ; | |
7553 | PyObject * obj0 = 0 ; | |
7554 | PyObject * obj1 = 0 ; | |
7555 | PyObject * obj2 = 0 ; | |
7556 | char *kwnames[] = { | |
7557 | (char *) "level",(char *) "szString",(char *) "t", NULL | |
7558 | }; | |
7559 | ||
7560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Log_OnLog",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
c32bde28 | 7561 | arg1 = (wxLogLevel)SWIG_As_unsigned_SS_long(obj0); |
d55e5bfc RD |
7562 | if (PyErr_Occurred()) SWIG_fail; |
7563 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxChar, | |
7564 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 7565 | arg3 = (time_t)SWIG_As_unsigned_SS_int(obj2); |
d55e5bfc RD |
7566 | if (PyErr_Occurred()) SWIG_fail; |
7567 | { | |
7568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7569 | wxLog::OnLog(arg1,(wxChar const *)arg2,arg3); | |
7570 | ||
7571 | wxPyEndAllowThreads(__tstate); | |
7572 | if (PyErr_Occurred()) SWIG_fail; | |
7573 | } | |
7574 | Py_INCREF(Py_None); resultobj = Py_None; | |
7575 | return resultobj; | |
7576 | fail: | |
7577 | return NULL; | |
7578 | } | |
7579 | ||
7580 | ||
c32bde28 | 7581 | static PyObject *_wrap_Log_Flush(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7582 | PyObject *resultobj; |
7583 | wxLog *arg1 = (wxLog *) 0 ; | |
7584 | PyObject * obj0 = 0 ; | |
7585 | char *kwnames[] = { | |
7586 | (char *) "self", NULL | |
7587 | }; | |
7588 | ||
7589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Flush",kwnames,&obj0)) goto fail; | |
7590 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, | |
7591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7592 | { | |
7593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7594 | (arg1)->Flush(); | |
7595 | ||
7596 | wxPyEndAllowThreads(__tstate); | |
7597 | if (PyErr_Occurred()) SWIG_fail; | |
7598 | } | |
7599 | Py_INCREF(Py_None); resultobj = Py_None; | |
7600 | return resultobj; | |
7601 | fail: | |
7602 | return NULL; | |
7603 | } | |
7604 | ||
7605 | ||
c32bde28 | 7606 | static PyObject *_wrap_Log_FlushActive(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7607 | PyObject *resultobj; |
7608 | char *kwnames[] = { | |
7609 | NULL | |
7610 | }; | |
7611 | ||
7612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_FlushActive",kwnames)) goto fail; | |
7613 | { | |
7614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7615 | wxLog::FlushActive(); | |
7616 | ||
7617 | wxPyEndAllowThreads(__tstate); | |
7618 | if (PyErr_Occurred()) SWIG_fail; | |
7619 | } | |
7620 | Py_INCREF(Py_None); resultobj = Py_None; | |
7621 | return resultobj; | |
7622 | fail: | |
7623 | return NULL; | |
7624 | } | |
7625 | ||
7626 | ||
c32bde28 | 7627 | static PyObject *_wrap_Log_GetActiveTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7628 | PyObject *resultobj; |
7629 | wxLog *result; | |
7630 | char *kwnames[] = { | |
7631 | NULL | |
7632 | }; | |
7633 | ||
7634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetActiveTarget",kwnames)) goto fail; | |
7635 | { | |
7636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7637 | result = (wxLog *)wxLog::GetActiveTarget(); | |
7638 | ||
7639 | wxPyEndAllowThreads(__tstate); | |
7640 | if (PyErr_Occurred()) SWIG_fail; | |
7641 | } | |
7642 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); | |
7643 | return resultobj; | |
7644 | fail: | |
7645 | return NULL; | |
7646 | } | |
7647 | ||
7648 | ||
c32bde28 | 7649 | static PyObject *_wrap_Log_SetActiveTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7650 | PyObject *resultobj; |
7651 | wxLog *arg1 = (wxLog *) 0 ; | |
7652 | wxLog *result; | |
7653 | PyObject * obj0 = 0 ; | |
7654 | char *kwnames[] = { | |
7655 | (char *) "pLogger", NULL | |
7656 | }; | |
7657 | ||
7658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) goto fail; | |
7659 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, | |
7660 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7661 | { | |
7662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7663 | result = (wxLog *)wxLog::SetActiveTarget(arg1); | |
7664 | ||
7665 | wxPyEndAllowThreads(__tstate); | |
7666 | if (PyErr_Occurred()) SWIG_fail; | |
7667 | } | |
7668 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); | |
7669 | return resultobj; | |
7670 | fail: | |
7671 | return NULL; | |
7672 | } | |
7673 | ||
7674 | ||
c32bde28 | 7675 | static PyObject *_wrap_Log_Suspend(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7676 | PyObject *resultobj; |
7677 | char *kwnames[] = { | |
7678 | NULL | |
7679 | }; | |
7680 | ||
7681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Suspend",kwnames)) goto fail; | |
7682 | { | |
7683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7684 | wxLog::Suspend(); | |
7685 | ||
7686 | wxPyEndAllowThreads(__tstate); | |
7687 | if (PyErr_Occurred()) SWIG_fail; | |
7688 | } | |
7689 | Py_INCREF(Py_None); resultobj = Py_None; | |
7690 | return resultobj; | |
7691 | fail: | |
7692 | return NULL; | |
7693 | } | |
7694 | ||
7695 | ||
c32bde28 | 7696 | static PyObject *_wrap_Log_Resume(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7697 | PyObject *resultobj; |
7698 | char *kwnames[] = { | |
7699 | NULL | |
7700 | }; | |
7701 | ||
7702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Resume",kwnames)) goto fail; | |
7703 | { | |
7704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7705 | wxLog::Resume(); | |
7706 | ||
7707 | wxPyEndAllowThreads(__tstate); | |
7708 | if (PyErr_Occurred()) SWIG_fail; | |
7709 | } | |
7710 | Py_INCREF(Py_None); resultobj = Py_None; | |
7711 | return resultobj; | |
7712 | fail: | |
7713 | return NULL; | |
7714 | } | |
7715 | ||
7716 | ||
c32bde28 | 7717 | static PyObject *_wrap_Log_SetVerbose(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 7718 | PyObject *resultobj; |
ae8162c8 | 7719 | bool arg1 = (bool) true ; |
d55e5bfc RD |
7720 | PyObject * obj0 = 0 ; |
7721 | char *kwnames[] = { | |
7722 | (char *) "bVerbose", NULL | |
7723 | }; | |
7724 | ||
7725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetVerbose",kwnames,&obj0)) goto fail; | |
7726 | if (obj0) { | |
c32bde28 | 7727 | arg1 = (bool)SWIG_As_bool(obj0); |
d55e5bfc RD |
7728 | if (PyErr_Occurred()) SWIG_fail; |
7729 | } | |
7730 | { | |
7731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7732 | wxLog::SetVerbose(arg1); | |
7733 | ||
7734 | wxPyEndAllowThreads(__tstate); | |
7735 | if (PyErr_Occurred()) SWIG_fail; | |
7736 | } | |
7737 | Py_INCREF(Py_None); resultobj = Py_None; | |
7738 | return resultobj; | |
7739 | fail: | |
7740 | return NULL; | |
7741 | } | |
7742 | ||
7743 | ||
c32bde28 | 7744 | static PyObject *_wrap_Log_SetLogLevel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7745 | PyObject *resultobj; |
7746 | wxLogLevel arg1 ; | |
7747 | PyObject * obj0 = 0 ; | |
7748 | char *kwnames[] = { | |
7749 | (char *) "logLevel", NULL | |
7750 | }; | |
7751 | ||
7752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetLogLevel",kwnames,&obj0)) goto fail; | |
c32bde28 | 7753 | arg1 = (wxLogLevel)SWIG_As_unsigned_SS_long(obj0); |
d55e5bfc RD |
7754 | if (PyErr_Occurred()) SWIG_fail; |
7755 | { | |
7756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7757 | wxLog::SetLogLevel(arg1); | |
7758 | ||
7759 | wxPyEndAllowThreads(__tstate); | |
7760 | if (PyErr_Occurred()) SWIG_fail; | |
7761 | } | |
7762 | Py_INCREF(Py_None); resultobj = Py_None; | |
7763 | return resultobj; | |
7764 | fail: | |
7765 | return NULL; | |
7766 | } | |
7767 | ||
7768 | ||
c32bde28 | 7769 | static PyObject *_wrap_Log_DontCreateOnDemand(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7770 | PyObject *resultobj; |
7771 | char *kwnames[] = { | |
7772 | NULL | |
7773 | }; | |
7774 | ||
7775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_DontCreateOnDemand",kwnames)) goto fail; | |
7776 | { | |
7777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7778 | wxLog::DontCreateOnDemand(); | |
7779 | ||
7780 | wxPyEndAllowThreads(__tstate); | |
7781 | if (PyErr_Occurred()) SWIG_fail; | |
7782 | } | |
7783 | Py_INCREF(Py_None); resultobj = Py_None; | |
7784 | return resultobj; | |
7785 | fail: | |
7786 | return NULL; | |
7787 | } | |
7788 | ||
7789 | ||
c32bde28 | 7790 | static PyObject *_wrap_Log_SetTraceMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7791 | PyObject *resultobj; |
7792 | wxTraceMask arg1 ; | |
7793 | PyObject * obj0 = 0 ; | |
7794 | char *kwnames[] = { | |
7795 | (char *) "ulMask", NULL | |
7796 | }; | |
7797 | ||
7798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTraceMask",kwnames,&obj0)) goto fail; | |
c32bde28 | 7799 | arg1 = (wxTraceMask)SWIG_As_unsigned_SS_long(obj0); |
d55e5bfc RD |
7800 | if (PyErr_Occurred()) SWIG_fail; |
7801 | { | |
7802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7803 | wxLog::SetTraceMask(arg1); | |
7804 | ||
7805 | wxPyEndAllowThreads(__tstate); | |
7806 | if (PyErr_Occurred()) SWIG_fail; | |
7807 | } | |
7808 | Py_INCREF(Py_None); resultobj = Py_None; | |
7809 | return resultobj; | |
7810 | fail: | |
7811 | return NULL; | |
7812 | } | |
7813 | ||
7814 | ||
c32bde28 | 7815 | static PyObject *_wrap_Log_AddTraceMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7816 | PyObject *resultobj; |
7817 | wxString *arg1 = 0 ; | |
ae8162c8 | 7818 | bool temp1 = false ; |
d55e5bfc RD |
7819 | PyObject * obj0 = 0 ; |
7820 | char *kwnames[] = { | |
7821 | (char *) "str", NULL | |
7822 | }; | |
7823 | ||
7824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_AddTraceMask",kwnames,&obj0)) goto fail; | |
7825 | { | |
7826 | arg1 = wxString_in_helper(obj0); | |
7827 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 7828 | temp1 = true; |
d55e5bfc RD |
7829 | } |
7830 | { | |
7831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7832 | wxLog::AddTraceMask((wxString const &)*arg1); | |
7833 | ||
7834 | wxPyEndAllowThreads(__tstate); | |
7835 | if (PyErr_Occurred()) SWIG_fail; | |
7836 | } | |
7837 | Py_INCREF(Py_None); resultobj = Py_None; | |
7838 | { | |
7839 | if (temp1) | |
7840 | delete arg1; | |
7841 | } | |
7842 | return resultobj; | |
7843 | fail: | |
7844 | { | |
7845 | if (temp1) | |
7846 | delete arg1; | |
7847 | } | |
7848 | return NULL; | |
7849 | } | |
7850 | ||
7851 | ||
c32bde28 | 7852 | static PyObject *_wrap_Log_RemoveTraceMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7853 | PyObject *resultobj; |
7854 | wxString *arg1 = 0 ; | |
ae8162c8 | 7855 | bool temp1 = false ; |
d55e5bfc RD |
7856 | PyObject * obj0 = 0 ; |
7857 | char *kwnames[] = { | |
7858 | (char *) "str", NULL | |
7859 | }; | |
7860 | ||
7861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_RemoveTraceMask",kwnames,&obj0)) goto fail; | |
7862 | { | |
7863 | arg1 = wxString_in_helper(obj0); | |
7864 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 7865 | temp1 = true; |
d55e5bfc RD |
7866 | } |
7867 | { | |
7868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7869 | wxLog::RemoveTraceMask((wxString const &)*arg1); | |
7870 | ||
7871 | wxPyEndAllowThreads(__tstate); | |
7872 | if (PyErr_Occurred()) SWIG_fail; | |
7873 | } | |
7874 | Py_INCREF(Py_None); resultobj = Py_None; | |
7875 | { | |
7876 | if (temp1) | |
7877 | delete arg1; | |
7878 | } | |
7879 | return resultobj; | |
7880 | fail: | |
7881 | { | |
7882 | if (temp1) | |
7883 | delete arg1; | |
7884 | } | |
7885 | return NULL; | |
7886 | } | |
7887 | ||
7888 | ||
c32bde28 | 7889 | static PyObject *_wrap_Log_ClearTraceMasks(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7890 | PyObject *resultobj; |
7891 | char *kwnames[] = { | |
7892 | NULL | |
7893 | }; | |
7894 | ||
7895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_ClearTraceMasks",kwnames)) goto fail; | |
7896 | { | |
7897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7898 | wxLog::ClearTraceMasks(); | |
7899 | ||
7900 | wxPyEndAllowThreads(__tstate); | |
7901 | if (PyErr_Occurred()) SWIG_fail; | |
7902 | } | |
7903 | Py_INCREF(Py_None); resultobj = Py_None; | |
7904 | return resultobj; | |
7905 | fail: | |
7906 | return NULL; | |
7907 | } | |
7908 | ||
7909 | ||
c32bde28 | 7910 | static PyObject *_wrap_Log_GetTraceMasks(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7911 | PyObject *resultobj; |
7912 | wxArrayString *result; | |
7913 | char *kwnames[] = { | |
7914 | NULL | |
7915 | }; | |
7916 | ||
7917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMasks",kwnames)) goto fail; | |
7918 | { | |
7919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7920 | { | |
7921 | wxArrayString const &_result_ref = wxLog::GetTraceMasks(); | |
7922 | result = (wxArrayString *) &_result_ref; | |
7923 | } | |
7924 | ||
7925 | wxPyEndAllowThreads(__tstate); | |
7926 | if (PyErr_Occurred()) SWIG_fail; | |
7927 | } | |
7928 | { | |
7929 | resultobj = wxArrayString2PyList_helper(*result); | |
7930 | } | |
7931 | return resultobj; | |
7932 | fail: | |
7933 | return NULL; | |
7934 | } | |
7935 | ||
7936 | ||
c32bde28 | 7937 | static PyObject *_wrap_Log_SetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7938 | PyObject *resultobj; |
7939 | wxChar *arg1 = (wxChar *) 0 ; | |
7940 | PyObject * obj0 = 0 ; | |
7941 | char *kwnames[] = { | |
7942 | (char *) "ts", NULL | |
7943 | }; | |
7944 | ||
7945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTimestamp",kwnames,&obj0)) goto fail; | |
7946 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar, | |
7947 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7948 | { | |
7949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7950 | wxLog::SetTimestamp((wxChar const *)arg1); | |
7951 | ||
7952 | wxPyEndAllowThreads(__tstate); | |
7953 | if (PyErr_Occurred()) SWIG_fail; | |
7954 | } | |
7955 | Py_INCREF(Py_None); resultobj = Py_None; | |
7956 | return resultobj; | |
7957 | fail: | |
7958 | return NULL; | |
7959 | } | |
7960 | ||
7961 | ||
c32bde28 | 7962 | static PyObject *_wrap_Log_GetVerbose(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7963 | PyObject *resultobj; |
7964 | bool result; | |
7965 | char *kwnames[] = { | |
7966 | NULL | |
7967 | }; | |
7968 | ||
7969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetVerbose",kwnames)) goto fail; | |
7970 | { | |
7971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7972 | result = (bool)wxLog::GetVerbose(); | |
7973 | ||
7974 | wxPyEndAllowThreads(__tstate); | |
7975 | if (PyErr_Occurred()) SWIG_fail; | |
7976 | } | |
7977 | { | |
7978 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7979 | } | |
7980 | return resultobj; | |
7981 | fail: | |
7982 | return NULL; | |
7983 | } | |
7984 | ||
7985 | ||
c32bde28 | 7986 | static PyObject *_wrap_Log_GetTraceMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7987 | PyObject *resultobj; |
7988 | wxTraceMask result; | |
7989 | char *kwnames[] = { | |
7990 | NULL | |
7991 | }; | |
7992 | ||
7993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMask",kwnames)) goto fail; | |
7994 | { | |
7995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7996 | result = (wxTraceMask)wxLog::GetTraceMask(); | |
7997 | ||
7998 | wxPyEndAllowThreads(__tstate); | |
7999 | if (PyErr_Occurred()) SWIG_fail; | |
8000 | } | |
c32bde28 | 8001 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
8002 | return resultobj; |
8003 | fail: | |
8004 | return NULL; | |
8005 | } | |
8006 | ||
8007 | ||
c32bde28 | 8008 | static PyObject *_wrap_Log_IsAllowedTraceMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8009 | PyObject *resultobj; |
8010 | wxChar *arg1 = (wxChar *) 0 ; | |
8011 | bool result; | |
8012 | PyObject * obj0 = 0 ; | |
8013 | char *kwnames[] = { | |
8014 | (char *) "mask", NULL | |
8015 | }; | |
8016 | ||
8017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_IsAllowedTraceMask",kwnames,&obj0)) goto fail; | |
8018 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar, | |
8019 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8020 | { | |
8021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8022 | result = (bool)wxLog::IsAllowedTraceMask((wxChar const *)arg1); | |
8023 | ||
8024 | wxPyEndAllowThreads(__tstate); | |
8025 | if (PyErr_Occurred()) SWIG_fail; | |
8026 | } | |
8027 | { | |
8028 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8029 | } | |
8030 | return resultobj; | |
8031 | fail: | |
8032 | return NULL; | |
8033 | } | |
8034 | ||
8035 | ||
c32bde28 | 8036 | static PyObject *_wrap_Log_GetLogLevel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8037 | PyObject *resultobj; |
8038 | wxLogLevel result; | |
8039 | char *kwnames[] = { | |
8040 | NULL | |
8041 | }; | |
8042 | ||
8043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetLogLevel",kwnames)) goto fail; | |
8044 | { | |
8045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8046 | result = (wxLogLevel)wxLog::GetLogLevel(); | |
8047 | ||
8048 | wxPyEndAllowThreads(__tstate); | |
8049 | if (PyErr_Occurred()) SWIG_fail; | |
8050 | } | |
c32bde28 | 8051 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
8052 | return resultobj; |
8053 | fail: | |
8054 | return NULL; | |
8055 | } | |
8056 | ||
8057 | ||
c32bde28 | 8058 | static PyObject *_wrap_Log_GetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8059 | PyObject *resultobj; |
8060 | wxChar *result; | |
8061 | char *kwnames[] = { | |
8062 | NULL | |
8063 | }; | |
8064 | ||
8065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTimestamp",kwnames)) goto fail; | |
8066 | { | |
8067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8068 | result = (wxChar *)wxLog::GetTimestamp(); | |
8069 | ||
8070 | wxPyEndAllowThreads(__tstate); | |
8071 | if (PyErr_Occurred()) SWIG_fail; | |
8072 | } | |
8073 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChar, 0); | |
8074 | return resultobj; | |
8075 | fail: | |
8076 | return NULL; | |
8077 | } | |
8078 | ||
8079 | ||
c32bde28 | 8080 | static PyObject *_wrap_Log_TimeStamp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8081 | PyObject *resultobj; |
8082 | wxString result; | |
8083 | char *kwnames[] = { | |
8084 | NULL | |
8085 | }; | |
8086 | ||
8087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_TimeStamp",kwnames)) goto fail; | |
8088 | { | |
8089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8090 | result = Log_TimeStamp(); | |
8091 | ||
8092 | wxPyEndAllowThreads(__tstate); | |
8093 | if (PyErr_Occurred()) SWIG_fail; | |
8094 | } | |
8095 | { | |
8096 | #if wxUSE_UNICODE | |
8097 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8098 | #else | |
8099 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8100 | #endif | |
8101 | } | |
8102 | return resultobj; | |
8103 | fail: | |
8104 | return NULL; | |
8105 | } | |
8106 | ||
8107 | ||
c32bde28 | 8108 | static PyObject *_wrap_Log_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8109 | PyObject *resultobj; |
8110 | wxLog *arg1 = (wxLog *) 0 ; | |
8111 | PyObject * obj0 = 0 ; | |
8112 | char *kwnames[] = { | |
8113 | (char *) "self", NULL | |
8114 | }; | |
8115 | ||
8116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Destroy",kwnames,&obj0)) goto fail; | |
8117 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, | |
8118 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8119 | { | |
8120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8121 | wxLog_Destroy(arg1); | |
8122 | ||
8123 | wxPyEndAllowThreads(__tstate); | |
8124 | if (PyErr_Occurred()) SWIG_fail; | |
8125 | } | |
8126 | Py_INCREF(Py_None); resultobj = Py_None; | |
8127 | return resultobj; | |
8128 | fail: | |
8129 | return NULL; | |
8130 | } | |
8131 | ||
8132 | ||
c32bde28 | 8133 | static PyObject * Log_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8134 | PyObject *obj; |
8135 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8136 | SWIG_TypeClientData(SWIGTYPE_p_wxLog, obj); | |
8137 | Py_INCREF(obj); | |
8138 | return Py_BuildValue((char *)""); | |
8139 | } | |
c32bde28 | 8140 | static PyObject *_wrap_new_LogStderr(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8141 | PyObject *resultobj; |
8142 | wxLogStderr *result; | |
8143 | char *kwnames[] = { | |
8144 | NULL | |
8145 | }; | |
8146 | ||
8147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogStderr",kwnames)) goto fail; | |
8148 | { | |
8149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8150 | result = (wxLogStderr *)new wxLogStderr(); | |
8151 | ||
8152 | wxPyEndAllowThreads(__tstate); | |
8153 | if (PyErr_Occurred()) SWIG_fail; | |
8154 | } | |
8155 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogStderr, 1); | |
8156 | return resultobj; | |
8157 | fail: | |
8158 | return NULL; | |
8159 | } | |
8160 | ||
8161 | ||
c32bde28 | 8162 | static PyObject * LogStderr_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8163 | PyObject *obj; |
8164 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8165 | SWIG_TypeClientData(SWIGTYPE_p_wxLogStderr, obj); | |
8166 | Py_INCREF(obj); | |
8167 | return Py_BuildValue((char *)""); | |
8168 | } | |
c32bde28 | 8169 | static PyObject *_wrap_new_LogTextCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8170 | PyObject *resultobj; |
8171 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8172 | wxLogTextCtrl *result; | |
8173 | PyObject * obj0 = 0 ; | |
8174 | char *kwnames[] = { | |
8175 | (char *) "pTextCtrl", NULL | |
8176 | }; | |
8177 | ||
8178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogTextCtrl",kwnames,&obj0)) goto fail; | |
8179 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8180 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8181 | { | |
8182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8183 | result = (wxLogTextCtrl *)new wxLogTextCtrl(arg1); | |
8184 | ||
8185 | wxPyEndAllowThreads(__tstate); | |
8186 | if (PyErr_Occurred()) SWIG_fail; | |
8187 | } | |
8188 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogTextCtrl, 1); | |
8189 | return resultobj; | |
8190 | fail: | |
8191 | return NULL; | |
8192 | } | |
8193 | ||
8194 | ||
c32bde28 | 8195 | static PyObject * LogTextCtrl_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8196 | PyObject *obj; |
8197 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8198 | SWIG_TypeClientData(SWIGTYPE_p_wxLogTextCtrl, obj); | |
8199 | Py_INCREF(obj); | |
8200 | return Py_BuildValue((char *)""); | |
8201 | } | |
c32bde28 | 8202 | static PyObject *_wrap_new_LogGui(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8203 | PyObject *resultobj; |
8204 | wxLogGui *result; | |
8205 | char *kwnames[] = { | |
8206 | NULL | |
8207 | }; | |
8208 | ||
8209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogGui",kwnames)) goto fail; | |
8210 | { | |
8211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8212 | result = (wxLogGui *)new wxLogGui(); | |
8213 | ||
8214 | wxPyEndAllowThreads(__tstate); | |
8215 | if (PyErr_Occurred()) SWIG_fail; | |
8216 | } | |
8217 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogGui, 1); | |
8218 | return resultobj; | |
8219 | fail: | |
8220 | return NULL; | |
8221 | } | |
8222 | ||
8223 | ||
c32bde28 | 8224 | static PyObject * LogGui_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8225 | PyObject *obj; |
8226 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8227 | SWIG_TypeClientData(SWIGTYPE_p_wxLogGui, obj); | |
8228 | Py_INCREF(obj); | |
8229 | return Py_BuildValue((char *)""); | |
8230 | } | |
c32bde28 | 8231 | static PyObject *_wrap_new_LogWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8232 | PyObject *resultobj; |
8233 | wxFrame *arg1 = (wxFrame *) 0 ; | |
8234 | wxString *arg2 = 0 ; | |
ae8162c8 RD |
8235 | bool arg3 = (bool) true ; |
8236 | bool arg4 = (bool) true ; | |
d55e5bfc | 8237 | wxLogWindow *result; |
ae8162c8 | 8238 | bool temp2 = false ; |
d55e5bfc RD |
8239 | PyObject * obj0 = 0 ; |
8240 | PyObject * obj1 = 0 ; | |
8241 | PyObject * obj2 = 0 ; | |
8242 | PyObject * obj3 = 0 ; | |
8243 | char *kwnames[] = { | |
8244 | (char *) "pParent",(char *) "szTitle",(char *) "bShow",(char *) "bPassToOld", NULL | |
8245 | }; | |
8246 | ||
8247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_LogWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
8248 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
8249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8250 | { | |
8251 | arg2 = wxString_in_helper(obj1); | |
8252 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8253 | temp2 = true; |
d55e5bfc RD |
8254 | } |
8255 | if (obj2) { | |
c32bde28 | 8256 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
8257 | if (PyErr_Occurred()) SWIG_fail; |
8258 | } | |
8259 | if (obj3) { | |
c32bde28 | 8260 | arg4 = (bool)SWIG_As_bool(obj3); |
d55e5bfc RD |
8261 | if (PyErr_Occurred()) SWIG_fail; |
8262 | } | |
8263 | { | |
8264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8265 | result = (wxLogWindow *)new wxLogWindow(arg1,(wxString const &)*arg2,arg3,arg4); | |
8266 | ||
8267 | wxPyEndAllowThreads(__tstate); | |
8268 | if (PyErr_Occurred()) SWIG_fail; | |
8269 | } | |
8270 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogWindow, 1); | |
8271 | { | |
8272 | if (temp2) | |
8273 | delete arg2; | |
8274 | } | |
8275 | return resultobj; | |
8276 | fail: | |
8277 | { | |
8278 | if (temp2) | |
8279 | delete arg2; | |
8280 | } | |
8281 | return NULL; | |
8282 | } | |
8283 | ||
8284 | ||
c32bde28 | 8285 | static PyObject *_wrap_LogWindow_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8286 | PyObject *resultobj; |
8287 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
ae8162c8 | 8288 | bool arg2 = (bool) true ; |
d55e5bfc RD |
8289 | PyObject * obj0 = 0 ; |
8290 | PyObject * obj1 = 0 ; | |
8291 | char *kwnames[] = { | |
8292 | (char *) "self",(char *) "bShow", NULL | |
8293 | }; | |
8294 | ||
8295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:LogWindow_Show",kwnames,&obj0,&obj1)) goto fail; | |
8296 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, | |
8297 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8298 | if (obj1) { | |
c32bde28 | 8299 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
8300 | if (PyErr_Occurred()) SWIG_fail; |
8301 | } | |
8302 | { | |
8303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8304 | (arg1)->Show(arg2); | |
8305 | ||
8306 | wxPyEndAllowThreads(__tstate); | |
8307 | if (PyErr_Occurred()) SWIG_fail; | |
8308 | } | |
8309 | Py_INCREF(Py_None); resultobj = Py_None; | |
8310 | return resultobj; | |
8311 | fail: | |
8312 | return NULL; | |
8313 | } | |
8314 | ||
8315 | ||
c32bde28 | 8316 | static PyObject *_wrap_LogWindow_GetFrame(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8317 | PyObject *resultobj; |
8318 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
8319 | wxFrame *result; | |
8320 | PyObject * obj0 = 0 ; | |
8321 | char *kwnames[] = { | |
8322 | (char *) "self", NULL | |
8323 | }; | |
8324 | ||
8325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetFrame",kwnames,&obj0)) goto fail; | |
8326 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, | |
8327 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8328 | { | |
8329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8330 | result = (wxFrame *)((wxLogWindow const *)arg1)->GetFrame(); | |
8331 | ||
8332 | wxPyEndAllowThreads(__tstate); | |
8333 | if (PyErr_Occurred()) SWIG_fail; | |
8334 | } | |
8335 | { | |
412d302d | 8336 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
8337 | } |
8338 | return resultobj; | |
8339 | fail: | |
8340 | return NULL; | |
8341 | } | |
8342 | ||
8343 | ||
c32bde28 | 8344 | static PyObject *_wrap_LogWindow_GetOldLog(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8345 | PyObject *resultobj; |
8346 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
8347 | wxLog *result; | |
8348 | PyObject * obj0 = 0 ; | |
8349 | char *kwnames[] = { | |
8350 | (char *) "self", NULL | |
8351 | }; | |
8352 | ||
8353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetOldLog",kwnames,&obj0)) goto fail; | |
8354 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, | |
8355 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8356 | { | |
8357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8358 | result = (wxLog *)((wxLogWindow const *)arg1)->GetOldLog(); | |
8359 | ||
8360 | wxPyEndAllowThreads(__tstate); | |
8361 | if (PyErr_Occurred()) SWIG_fail; | |
8362 | } | |
8363 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); | |
8364 | return resultobj; | |
8365 | fail: | |
8366 | return NULL; | |
8367 | } | |
8368 | ||
8369 | ||
c32bde28 | 8370 | static PyObject *_wrap_LogWindow_IsPassingMessages(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8371 | PyObject *resultobj; |
8372 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
8373 | bool result; | |
8374 | PyObject * obj0 = 0 ; | |
8375 | char *kwnames[] = { | |
8376 | (char *) "self", NULL | |
8377 | }; | |
8378 | ||
8379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_IsPassingMessages",kwnames,&obj0)) goto fail; | |
8380 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, | |
8381 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8382 | { | |
8383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8384 | result = (bool)((wxLogWindow const *)arg1)->IsPassingMessages(); | |
8385 | ||
8386 | wxPyEndAllowThreads(__tstate); | |
8387 | if (PyErr_Occurred()) SWIG_fail; | |
8388 | } | |
8389 | { | |
8390 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8391 | } | |
8392 | return resultobj; | |
8393 | fail: | |
8394 | return NULL; | |
8395 | } | |
8396 | ||
8397 | ||
c32bde28 | 8398 | static PyObject *_wrap_LogWindow_PassMessages(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8399 | PyObject *resultobj; |
8400 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
8401 | bool arg2 ; | |
8402 | PyObject * obj0 = 0 ; | |
8403 | PyObject * obj1 = 0 ; | |
8404 | char *kwnames[] = { | |
8405 | (char *) "self",(char *) "bDoPass", NULL | |
8406 | }; | |
8407 | ||
8408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogWindow_PassMessages",kwnames,&obj0,&obj1)) goto fail; | |
8409 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow, | |
8410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 8411 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
8412 | if (PyErr_Occurred()) SWIG_fail; |
8413 | { | |
8414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8415 | (arg1)->PassMessages(arg2); | |
8416 | ||
8417 | wxPyEndAllowThreads(__tstate); | |
8418 | if (PyErr_Occurred()) SWIG_fail; | |
8419 | } | |
8420 | Py_INCREF(Py_None); resultobj = Py_None; | |
8421 | return resultobj; | |
8422 | fail: | |
8423 | return NULL; | |
8424 | } | |
8425 | ||
8426 | ||
c32bde28 | 8427 | static PyObject * LogWindow_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8428 | PyObject *obj; |
8429 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8430 | SWIG_TypeClientData(SWIGTYPE_p_wxLogWindow, obj); | |
8431 | Py_INCREF(obj); | |
8432 | return Py_BuildValue((char *)""); | |
8433 | } | |
c32bde28 | 8434 | static PyObject *_wrap_new_LogChain(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8435 | PyObject *resultobj; |
8436 | wxLog *arg1 = (wxLog *) 0 ; | |
8437 | wxLogChain *result; | |
8438 | PyObject * obj0 = 0 ; | |
8439 | char *kwnames[] = { | |
8440 | (char *) "logger", NULL | |
8441 | }; | |
8442 | ||
8443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogChain",kwnames,&obj0)) goto fail; | |
8444 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog, | |
8445 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8446 | { | |
8447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8448 | result = (wxLogChain *)new wxLogChain(arg1); | |
8449 | ||
8450 | wxPyEndAllowThreads(__tstate); | |
8451 | if (PyErr_Occurred()) SWIG_fail; | |
8452 | } | |
8453 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogChain, 1); | |
8454 | return resultobj; | |
8455 | fail: | |
8456 | return NULL; | |
8457 | } | |
8458 | ||
8459 | ||
c32bde28 | 8460 | static PyObject *_wrap_LogChain_SetLog(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8461 | PyObject *resultobj; |
8462 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
8463 | wxLog *arg2 = (wxLog *) 0 ; | |
8464 | PyObject * obj0 = 0 ; | |
8465 | PyObject * obj1 = 0 ; | |
8466 | char *kwnames[] = { | |
8467 | (char *) "self",(char *) "logger", NULL | |
8468 | }; | |
8469 | ||
8470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_SetLog",kwnames,&obj0,&obj1)) goto fail; | |
8471 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, | |
8472 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8473 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLog, | |
8474 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8475 | { | |
8476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8477 | (arg1)->SetLog(arg2); | |
8478 | ||
8479 | wxPyEndAllowThreads(__tstate); | |
8480 | if (PyErr_Occurred()) SWIG_fail; | |
8481 | } | |
8482 | Py_INCREF(Py_None); resultobj = Py_None; | |
8483 | return resultobj; | |
8484 | fail: | |
8485 | return NULL; | |
8486 | } | |
8487 | ||
8488 | ||
c32bde28 | 8489 | static PyObject *_wrap_LogChain_PassMessages(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8490 | PyObject *resultobj; |
8491 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
8492 | bool arg2 ; | |
8493 | PyObject * obj0 = 0 ; | |
8494 | PyObject * obj1 = 0 ; | |
8495 | char *kwnames[] = { | |
8496 | (char *) "self",(char *) "bDoPass", NULL | |
8497 | }; | |
8498 | ||
8499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_PassMessages",kwnames,&obj0,&obj1)) goto fail; | |
8500 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, | |
8501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 8502 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
8503 | if (PyErr_Occurred()) SWIG_fail; |
8504 | { | |
8505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8506 | (arg1)->PassMessages(arg2); | |
8507 | ||
8508 | wxPyEndAllowThreads(__tstate); | |
8509 | if (PyErr_Occurred()) SWIG_fail; | |
8510 | } | |
8511 | Py_INCREF(Py_None); resultobj = Py_None; | |
8512 | return resultobj; | |
8513 | fail: | |
8514 | return NULL; | |
8515 | } | |
8516 | ||
8517 | ||
c32bde28 | 8518 | static PyObject *_wrap_LogChain_IsPassingMessages(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8519 | PyObject *resultobj; |
8520 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
8521 | bool result; | |
8522 | PyObject * obj0 = 0 ; | |
8523 | char *kwnames[] = { | |
8524 | (char *) "self", NULL | |
8525 | }; | |
8526 | ||
8527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_IsPassingMessages",kwnames,&obj0)) goto fail; | |
8528 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, | |
8529 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8530 | { | |
8531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8532 | result = (bool)(arg1)->IsPassingMessages(); | |
8533 | ||
8534 | wxPyEndAllowThreads(__tstate); | |
8535 | if (PyErr_Occurred()) SWIG_fail; | |
8536 | } | |
8537 | { | |
8538 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8539 | } | |
8540 | return resultobj; | |
8541 | fail: | |
8542 | return NULL; | |
8543 | } | |
8544 | ||
8545 | ||
c32bde28 | 8546 | static PyObject *_wrap_LogChain_GetOldLog(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8547 | PyObject *resultobj; |
8548 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
8549 | wxLog *result; | |
8550 | PyObject * obj0 = 0 ; | |
8551 | char *kwnames[] = { | |
8552 | (char *) "self", NULL | |
8553 | }; | |
8554 | ||
8555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_GetOldLog",kwnames,&obj0)) goto fail; | |
8556 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain, | |
8557 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8558 | { | |
8559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8560 | result = (wxLog *)(arg1)->GetOldLog(); | |
8561 | ||
8562 | wxPyEndAllowThreads(__tstate); | |
8563 | if (PyErr_Occurred()) SWIG_fail; | |
8564 | } | |
8565 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0); | |
8566 | return resultobj; | |
8567 | fail: | |
8568 | return NULL; | |
8569 | } | |
8570 | ||
8571 | ||
c32bde28 | 8572 | static PyObject * LogChain_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8573 | PyObject *obj; |
8574 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8575 | SWIG_TypeClientData(SWIGTYPE_p_wxLogChain, obj); | |
8576 | Py_INCREF(obj); | |
8577 | return Py_BuildValue((char *)""); | |
8578 | } | |
c32bde28 | 8579 | static PyObject *_wrap_SysErrorCode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8580 | PyObject *resultobj; |
8581 | unsigned long result; | |
8582 | char *kwnames[] = { | |
8583 | NULL | |
8584 | }; | |
8585 | ||
8586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SysErrorCode",kwnames)) goto fail; | |
8587 | { | |
8588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8589 | result = (unsigned long)wxSysErrorCode(); | |
8590 | ||
8591 | wxPyEndAllowThreads(__tstate); | |
8592 | if (PyErr_Occurred()) SWIG_fail; | |
8593 | } | |
c32bde28 | 8594 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
8595 | return resultobj; |
8596 | fail: | |
8597 | return NULL; | |
8598 | } | |
8599 | ||
8600 | ||
c32bde28 | 8601 | static PyObject *_wrap_SysErrorMsg(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8602 | PyObject *resultobj; |
8603 | unsigned long arg1 = (unsigned long) 0 ; | |
8604 | wxString result; | |
8605 | PyObject * obj0 = 0 ; | |
8606 | char *kwnames[] = { | |
8607 | (char *) "nErrCode", NULL | |
8608 | }; | |
8609 | ||
8610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SysErrorMsg",kwnames,&obj0)) goto fail; | |
8611 | if (obj0) { | |
c32bde28 | 8612 | arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0); |
d55e5bfc RD |
8613 | if (PyErr_Occurred()) SWIG_fail; |
8614 | } | |
8615 | { | |
8616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8617 | result = wxSysErrorMsg(arg1); | |
8618 | ||
8619 | wxPyEndAllowThreads(__tstate); | |
8620 | if (PyErr_Occurred()) SWIG_fail; | |
8621 | } | |
8622 | { | |
8623 | #if wxUSE_UNICODE | |
8624 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8625 | #else | |
8626 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8627 | #endif | |
8628 | } | |
8629 | return resultobj; | |
8630 | fail: | |
8631 | return NULL; | |
8632 | } | |
8633 | ||
8634 | ||
c32bde28 | 8635 | static PyObject *_wrap_LogFatalError(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8636 | PyObject *resultobj; |
8637 | wxString *arg1 = 0 ; | |
ae8162c8 | 8638 | bool temp1 = false ; |
d55e5bfc RD |
8639 | PyObject * obj0 = 0 ; |
8640 | char *kwnames[] = { | |
8641 | (char *) "msg", NULL | |
8642 | }; | |
8643 | ||
8644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogFatalError",kwnames,&obj0)) goto fail; | |
8645 | { | |
8646 | arg1 = wxString_in_helper(obj0); | |
8647 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 8648 | temp1 = true; |
d55e5bfc RD |
8649 | } |
8650 | { | |
8651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 8652 | wxPyLogFatalError((wxString const &)*arg1); |
d55e5bfc RD |
8653 | |
8654 | wxPyEndAllowThreads(__tstate); | |
8655 | if (PyErr_Occurred()) SWIG_fail; | |
8656 | } | |
8657 | Py_INCREF(Py_None); resultobj = Py_None; | |
8658 | { | |
8659 | if (temp1) | |
8660 | delete arg1; | |
8661 | } | |
8662 | return resultobj; | |
8663 | fail: | |
8664 | { | |
8665 | if (temp1) | |
8666 | delete arg1; | |
8667 | } | |
8668 | return NULL; | |
8669 | } | |
8670 | ||
8671 | ||
c32bde28 | 8672 | static PyObject *_wrap_LogError(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8673 | PyObject *resultobj; |
8674 | wxString *arg1 = 0 ; | |
ae8162c8 | 8675 | bool temp1 = false ; |
d55e5bfc RD |
8676 | PyObject * obj0 = 0 ; |
8677 | char *kwnames[] = { | |
8678 | (char *) "msg", NULL | |
8679 | }; | |
8680 | ||
8681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogError",kwnames,&obj0)) goto fail; | |
8682 | { | |
8683 | arg1 = wxString_in_helper(obj0); | |
8684 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 8685 | temp1 = true; |
d55e5bfc RD |
8686 | } |
8687 | { | |
8688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 8689 | wxPyLogError((wxString const &)*arg1); |
d55e5bfc RD |
8690 | |
8691 | wxPyEndAllowThreads(__tstate); | |
8692 | if (PyErr_Occurred()) SWIG_fail; | |
8693 | } | |
8694 | Py_INCREF(Py_None); resultobj = Py_None; | |
8695 | { | |
8696 | if (temp1) | |
8697 | delete arg1; | |
8698 | } | |
8699 | return resultobj; | |
8700 | fail: | |
8701 | { | |
8702 | if (temp1) | |
8703 | delete arg1; | |
8704 | } | |
8705 | return NULL; | |
8706 | } | |
8707 | ||
8708 | ||
c32bde28 | 8709 | static PyObject *_wrap_LogWarning(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8710 | PyObject *resultobj; |
8711 | wxString *arg1 = 0 ; | |
ae8162c8 | 8712 | bool temp1 = false ; |
d55e5bfc RD |
8713 | PyObject * obj0 = 0 ; |
8714 | char *kwnames[] = { | |
8715 | (char *) "msg", NULL | |
8716 | }; | |
8717 | ||
8718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWarning",kwnames,&obj0)) goto fail; | |
8719 | { | |
8720 | arg1 = wxString_in_helper(obj0); | |
8721 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 8722 | temp1 = true; |
d55e5bfc RD |
8723 | } |
8724 | { | |
8725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 8726 | wxPyLogWarning((wxString const &)*arg1); |
d55e5bfc RD |
8727 | |
8728 | wxPyEndAllowThreads(__tstate); | |
8729 | if (PyErr_Occurred()) SWIG_fail; | |
8730 | } | |
8731 | Py_INCREF(Py_None); resultobj = Py_None; | |
8732 | { | |
8733 | if (temp1) | |
8734 | delete arg1; | |
8735 | } | |
8736 | return resultobj; | |
8737 | fail: | |
8738 | { | |
8739 | if (temp1) | |
8740 | delete arg1; | |
8741 | } | |
8742 | return NULL; | |
8743 | } | |
8744 | ||
8745 | ||
c32bde28 | 8746 | static PyObject *_wrap_LogMessage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8747 | PyObject *resultobj; |
8748 | wxString *arg1 = 0 ; | |
ae8162c8 | 8749 | bool temp1 = false ; |
d55e5bfc RD |
8750 | PyObject * obj0 = 0 ; |
8751 | char *kwnames[] = { | |
8752 | (char *) "msg", NULL | |
8753 | }; | |
8754 | ||
8755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogMessage",kwnames,&obj0)) goto fail; | |
8756 | { | |
8757 | arg1 = wxString_in_helper(obj0); | |
8758 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 8759 | temp1 = true; |
d55e5bfc RD |
8760 | } |
8761 | { | |
8762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 8763 | wxPyLogMessage((wxString const &)*arg1); |
d55e5bfc RD |
8764 | |
8765 | wxPyEndAllowThreads(__tstate); | |
8766 | if (PyErr_Occurred()) SWIG_fail; | |
8767 | } | |
8768 | Py_INCREF(Py_None); resultobj = Py_None; | |
8769 | { | |
8770 | if (temp1) | |
8771 | delete arg1; | |
8772 | } | |
8773 | return resultobj; | |
8774 | fail: | |
8775 | { | |
8776 | if (temp1) | |
8777 | delete arg1; | |
8778 | } | |
8779 | return NULL; | |
8780 | } | |
8781 | ||
8782 | ||
c32bde28 | 8783 | static PyObject *_wrap_LogInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8784 | PyObject *resultobj; |
8785 | wxString *arg1 = 0 ; | |
ae8162c8 | 8786 | bool temp1 = false ; |
d55e5bfc RD |
8787 | PyObject * obj0 = 0 ; |
8788 | char *kwnames[] = { | |
8789 | (char *) "msg", NULL | |
8790 | }; | |
8791 | ||
8792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogInfo",kwnames,&obj0)) goto fail; | |
8793 | { | |
8794 | arg1 = wxString_in_helper(obj0); | |
8795 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 8796 | temp1 = true; |
d55e5bfc RD |
8797 | } |
8798 | { | |
8799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 8800 | wxPyLogInfo((wxString const &)*arg1); |
d55e5bfc RD |
8801 | |
8802 | wxPyEndAllowThreads(__tstate); | |
8803 | if (PyErr_Occurred()) SWIG_fail; | |
8804 | } | |
8805 | Py_INCREF(Py_None); resultobj = Py_None; | |
8806 | { | |
8807 | if (temp1) | |
8808 | delete arg1; | |
8809 | } | |
8810 | return resultobj; | |
8811 | fail: | |
8812 | { | |
8813 | if (temp1) | |
8814 | delete arg1; | |
8815 | } | |
8816 | return NULL; | |
8817 | } | |
8818 | ||
8819 | ||
c32bde28 | 8820 | static PyObject *_wrap_LogDebug(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8821 | PyObject *resultobj; |
8822 | wxString *arg1 = 0 ; | |
ae8162c8 | 8823 | bool temp1 = false ; |
d55e5bfc RD |
8824 | PyObject * obj0 = 0 ; |
8825 | char *kwnames[] = { | |
8826 | (char *) "msg", NULL | |
8827 | }; | |
8828 | ||
8829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogDebug",kwnames,&obj0)) goto fail; | |
8830 | { | |
8831 | arg1 = wxString_in_helper(obj0); | |
8832 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 8833 | temp1 = true; |
d55e5bfc RD |
8834 | } |
8835 | { | |
8836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 8837 | wxPyLogDebug((wxString const &)*arg1); |
d55e5bfc RD |
8838 | |
8839 | wxPyEndAllowThreads(__tstate); | |
8840 | if (PyErr_Occurred()) SWIG_fail; | |
8841 | } | |
8842 | Py_INCREF(Py_None); resultobj = Py_None; | |
8843 | { | |
8844 | if (temp1) | |
8845 | delete arg1; | |
8846 | } | |
8847 | return resultobj; | |
8848 | fail: | |
8849 | { | |
8850 | if (temp1) | |
8851 | delete arg1; | |
8852 | } | |
8853 | return NULL; | |
8854 | } | |
8855 | ||
8856 | ||
c32bde28 | 8857 | static PyObject *_wrap_LogVerbose(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8858 | PyObject *resultobj; |
8859 | wxString *arg1 = 0 ; | |
ae8162c8 | 8860 | bool temp1 = false ; |
d55e5bfc RD |
8861 | PyObject * obj0 = 0 ; |
8862 | char *kwnames[] = { | |
8863 | (char *) "msg", NULL | |
8864 | }; | |
8865 | ||
8866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogVerbose",kwnames,&obj0)) goto fail; | |
8867 | { | |
8868 | arg1 = wxString_in_helper(obj0); | |
8869 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 8870 | temp1 = true; |
d55e5bfc RD |
8871 | } |
8872 | { | |
8873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 8874 | wxPyLogVerbose((wxString const &)*arg1); |
d55e5bfc RD |
8875 | |
8876 | wxPyEndAllowThreads(__tstate); | |
8877 | if (PyErr_Occurred()) SWIG_fail; | |
8878 | } | |
8879 | Py_INCREF(Py_None); resultobj = Py_None; | |
8880 | { | |
8881 | if (temp1) | |
8882 | delete arg1; | |
8883 | } | |
8884 | return resultobj; | |
8885 | fail: | |
8886 | { | |
8887 | if (temp1) | |
8888 | delete arg1; | |
8889 | } | |
8890 | return NULL; | |
8891 | } | |
8892 | ||
8893 | ||
c32bde28 | 8894 | static PyObject *_wrap_LogStatus(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8895 | PyObject *resultobj; |
8896 | wxString *arg1 = 0 ; | |
ae8162c8 | 8897 | bool temp1 = false ; |
d55e5bfc RD |
8898 | PyObject * obj0 = 0 ; |
8899 | char *kwnames[] = { | |
8900 | (char *) "msg", NULL | |
8901 | }; | |
8902 | ||
8903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogStatus",kwnames,&obj0)) goto fail; | |
8904 | { | |
8905 | arg1 = wxString_in_helper(obj0); | |
8906 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 8907 | temp1 = true; |
d55e5bfc RD |
8908 | } |
8909 | { | |
8910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 8911 | wxPyLogStatus((wxString const &)*arg1); |
d55e5bfc RD |
8912 | |
8913 | wxPyEndAllowThreads(__tstate); | |
8914 | if (PyErr_Occurred()) SWIG_fail; | |
8915 | } | |
8916 | Py_INCREF(Py_None); resultobj = Py_None; | |
8917 | { | |
8918 | if (temp1) | |
8919 | delete arg1; | |
8920 | } | |
8921 | return resultobj; | |
8922 | fail: | |
8923 | { | |
8924 | if (temp1) | |
8925 | delete arg1; | |
8926 | } | |
8927 | return NULL; | |
8928 | } | |
8929 | ||
8930 | ||
c32bde28 | 8931 | static PyObject *_wrap_LogStatusFrame(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8932 | PyObject *resultobj; |
8933 | wxFrame *arg1 = (wxFrame *) 0 ; | |
8934 | wxString *arg2 = 0 ; | |
ae8162c8 | 8935 | bool temp2 = false ; |
d55e5bfc RD |
8936 | PyObject * obj0 = 0 ; |
8937 | PyObject * obj1 = 0 ; | |
8938 | char *kwnames[] = { | |
8939 | (char *) "pFrame",(char *) "msg", NULL | |
8940 | }; | |
8941 | ||
8942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogStatusFrame",kwnames,&obj0,&obj1)) goto fail; | |
8943 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
8944 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8945 | { | |
8946 | arg2 = wxString_in_helper(obj1); | |
8947 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8948 | temp2 = true; |
d55e5bfc RD |
8949 | } |
8950 | { | |
8951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 8952 | wxPyLogStatusFrame(arg1,(wxString const &)*arg2); |
d55e5bfc RD |
8953 | |
8954 | wxPyEndAllowThreads(__tstate); | |
8955 | if (PyErr_Occurred()) SWIG_fail; | |
8956 | } | |
8957 | Py_INCREF(Py_None); resultobj = Py_None; | |
8958 | { | |
8959 | if (temp2) | |
8960 | delete arg2; | |
8961 | } | |
8962 | return resultobj; | |
8963 | fail: | |
8964 | { | |
8965 | if (temp2) | |
8966 | delete arg2; | |
8967 | } | |
8968 | return NULL; | |
8969 | } | |
8970 | ||
8971 | ||
c32bde28 | 8972 | static PyObject *_wrap_LogSysError(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8973 | PyObject *resultobj; |
8974 | wxString *arg1 = 0 ; | |
ae8162c8 | 8975 | bool temp1 = false ; |
d55e5bfc RD |
8976 | PyObject * obj0 = 0 ; |
8977 | char *kwnames[] = { | |
8978 | (char *) "msg", NULL | |
8979 | }; | |
8980 | ||
8981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogSysError",kwnames,&obj0)) goto fail; | |
8982 | { | |
8983 | arg1 = wxString_in_helper(obj0); | |
8984 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 8985 | temp1 = true; |
d55e5bfc RD |
8986 | } |
8987 | { | |
8988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 8989 | wxPyLogSysError((wxString const &)*arg1); |
d55e5bfc RD |
8990 | |
8991 | wxPyEndAllowThreads(__tstate); | |
8992 | if (PyErr_Occurred()) SWIG_fail; | |
8993 | } | |
8994 | Py_INCREF(Py_None); resultobj = Py_None; | |
8995 | { | |
8996 | if (temp1) | |
8997 | delete arg1; | |
8998 | } | |
8999 | return resultobj; | |
9000 | fail: | |
9001 | { | |
9002 | if (temp1) | |
9003 | delete arg1; | |
9004 | } | |
9005 | return NULL; | |
9006 | } | |
9007 | ||
9008 | ||
f78cc896 RD |
9009 | static PyObject *_wrap_LogGeneric(PyObject *, PyObject *args, PyObject *kwargs) { |
9010 | PyObject *resultobj; | |
9011 | unsigned long arg1 ; | |
9012 | wxString *arg2 = 0 ; | |
9013 | bool temp2 = false ; | |
9014 | PyObject * obj0 = 0 ; | |
9015 | PyObject * obj1 = 0 ; | |
9016 | char *kwnames[] = { | |
9017 | (char *) "level",(char *) "msg", NULL | |
9018 | }; | |
9019 | ||
9020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogGeneric",kwnames,&obj0,&obj1)) goto fail; | |
9021 | arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0); | |
9022 | if (PyErr_Occurred()) SWIG_fail; | |
9023 | { | |
9024 | arg2 = wxString_in_helper(obj1); | |
9025 | if (arg2 == NULL) SWIG_fail; | |
9026 | temp2 = true; | |
9027 | } | |
9028 | { | |
9029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9030 | wxPyLogGeneric(arg1,(wxString const &)*arg2); | |
9031 | ||
9032 | wxPyEndAllowThreads(__tstate); | |
9033 | if (PyErr_Occurred()) SWIG_fail; | |
9034 | } | |
9035 | Py_INCREF(Py_None); resultobj = Py_None; | |
9036 | { | |
9037 | if (temp2) | |
9038 | delete arg2; | |
9039 | } | |
9040 | return resultobj; | |
9041 | fail: | |
9042 | { | |
9043 | if (temp2) | |
9044 | delete arg2; | |
9045 | } | |
9046 | return NULL; | |
9047 | } | |
9048 | ||
9049 | ||
c32bde28 | 9050 | static PyObject *_wrap_LogTrace__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
9051 | PyObject *resultobj; |
9052 | unsigned long arg1 ; | |
9053 | wxString *arg2 = 0 ; | |
ae8162c8 | 9054 | bool temp2 = false ; |
d55e5bfc RD |
9055 | PyObject * obj0 = 0 ; |
9056 | PyObject * obj1 = 0 ; | |
9057 | ||
9058 | if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail; | |
c32bde28 | 9059 | arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0); |
d55e5bfc RD |
9060 | if (PyErr_Occurred()) SWIG_fail; |
9061 | { | |
9062 | arg2 = wxString_in_helper(obj1); | |
9063 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 9064 | temp2 = true; |
d55e5bfc RD |
9065 | } |
9066 | { | |
9067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 9068 | wxPyLogTrace(arg1,(wxString const &)*arg2); |
d55e5bfc RD |
9069 | |
9070 | wxPyEndAllowThreads(__tstate); | |
9071 | if (PyErr_Occurred()) SWIG_fail; | |
9072 | } | |
9073 | Py_INCREF(Py_None); resultobj = Py_None; | |
9074 | { | |
9075 | if (temp2) | |
9076 | delete arg2; | |
9077 | } | |
9078 | return resultobj; | |
9079 | fail: | |
9080 | { | |
9081 | if (temp2) | |
9082 | delete arg2; | |
9083 | } | |
9084 | return NULL; | |
9085 | } | |
9086 | ||
9087 | ||
c32bde28 | 9088 | static PyObject *_wrap_LogTrace__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
9089 | PyObject *resultobj; |
9090 | wxString *arg1 = 0 ; | |
9091 | wxString *arg2 = 0 ; | |
ae8162c8 RD |
9092 | bool temp1 = false ; |
9093 | bool temp2 = false ; | |
d55e5bfc RD |
9094 | PyObject * obj0 = 0 ; |
9095 | PyObject * obj1 = 0 ; | |
9096 | ||
9097 | if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail; | |
9098 | { | |
9099 | arg1 = wxString_in_helper(obj0); | |
9100 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 9101 | temp1 = true; |
d55e5bfc RD |
9102 | } |
9103 | { | |
9104 | arg2 = wxString_in_helper(obj1); | |
9105 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 9106 | temp2 = true; |
d55e5bfc RD |
9107 | } |
9108 | { | |
9109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f78cc896 | 9110 | wxPyLogTrace((wxString const &)*arg1,(wxString const &)*arg2); |
d55e5bfc RD |
9111 | |
9112 | wxPyEndAllowThreads(__tstate); | |
9113 | if (PyErr_Occurred()) SWIG_fail; | |
9114 | } | |
9115 | Py_INCREF(Py_None); resultobj = Py_None; | |
9116 | { | |
9117 | if (temp1) | |
9118 | delete arg1; | |
9119 | } | |
9120 | { | |
9121 | if (temp2) | |
9122 | delete arg2; | |
9123 | } | |
9124 | return resultobj; | |
9125 | fail: | |
9126 | { | |
9127 | if (temp1) | |
9128 | delete arg1; | |
9129 | } | |
9130 | { | |
9131 | if (temp2) | |
9132 | delete arg2; | |
9133 | } | |
9134 | return NULL; | |
9135 | } | |
9136 | ||
9137 | ||
9138 | static PyObject *_wrap_LogTrace(PyObject *self, PyObject *args) { | |
9139 | int argc; | |
9140 | PyObject *argv[3]; | |
9141 | int ii; | |
9142 | ||
9143 | argc = PyObject_Length(args); | |
9144 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
9145 | argv[ii] = PyTuple_GetItem(args,ii); | |
9146 | } | |
9147 | if (argc == 2) { | |
9148 | int _v; | |
9149 | { | |
9150 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); | |
9151 | } | |
9152 | if (_v) { | |
9153 | { | |
9154 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); | |
9155 | } | |
9156 | if (_v) { | |
9157 | return _wrap_LogTrace__SWIG_1(self,args); | |
9158 | } | |
9159 | } | |
9160 | } | |
9161 | if (argc == 2) { | |
9162 | int _v; | |
c32bde28 | 9163 | _v = SWIG_Check_unsigned_SS_long(argv[0]); |
d55e5bfc RD |
9164 | if (_v) { |
9165 | { | |
9166 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); | |
9167 | } | |
9168 | if (_v) { | |
9169 | return _wrap_LogTrace__SWIG_0(self,args); | |
9170 | } | |
9171 | } | |
9172 | } | |
9173 | ||
9174 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'LogTrace'"); | |
9175 | return NULL; | |
9176 | } | |
9177 | ||
9178 | ||
c32bde28 | 9179 | static PyObject *_wrap_SafeShowMessage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9180 | PyObject *resultobj; |
9181 | wxString *arg1 = 0 ; | |
9182 | wxString *arg2 = 0 ; | |
ae8162c8 RD |
9183 | bool temp1 = false ; |
9184 | bool temp2 = false ; | |
d55e5bfc RD |
9185 | PyObject * obj0 = 0 ; |
9186 | PyObject * obj1 = 0 ; | |
9187 | char *kwnames[] = { | |
9188 | (char *) "title",(char *) "text", NULL | |
9189 | }; | |
9190 | ||
9191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SafeShowMessage",kwnames,&obj0,&obj1)) goto fail; | |
9192 | { | |
9193 | arg1 = wxString_in_helper(obj0); | |
9194 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 9195 | temp1 = true; |
d55e5bfc RD |
9196 | } |
9197 | { | |
9198 | arg2 = wxString_in_helper(obj1); | |
9199 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 9200 | temp2 = true; |
d55e5bfc RD |
9201 | } |
9202 | { | |
9203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9204 | wxSafeShowMessage((wxString const &)*arg1,(wxString const &)*arg2); | |
9205 | ||
9206 | wxPyEndAllowThreads(__tstate); | |
9207 | if (PyErr_Occurred()) SWIG_fail; | |
9208 | } | |
9209 | Py_INCREF(Py_None); resultobj = Py_None; | |
9210 | { | |
9211 | if (temp1) | |
9212 | delete arg1; | |
9213 | } | |
9214 | { | |
9215 | if (temp2) | |
9216 | delete arg2; | |
9217 | } | |
9218 | return resultobj; | |
9219 | fail: | |
9220 | { | |
9221 | if (temp1) | |
9222 | delete arg1; | |
9223 | } | |
9224 | { | |
9225 | if (temp2) | |
9226 | delete arg2; | |
9227 | } | |
9228 | return NULL; | |
9229 | } | |
9230 | ||
9231 | ||
c32bde28 | 9232 | static PyObject *_wrap_new_LogNull(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9233 | PyObject *resultobj; |
9234 | wxLogNull *result; | |
9235 | char *kwnames[] = { | |
9236 | NULL | |
9237 | }; | |
9238 | ||
9239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogNull",kwnames)) goto fail; | |
9240 | { | |
9241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9242 | result = (wxLogNull *)new wxLogNull(); | |
9243 | ||
9244 | wxPyEndAllowThreads(__tstate); | |
9245 | if (PyErr_Occurred()) SWIG_fail; | |
9246 | } | |
9247 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogNull, 1); | |
9248 | return resultobj; | |
9249 | fail: | |
9250 | return NULL; | |
9251 | } | |
9252 | ||
9253 | ||
c32bde28 | 9254 | static PyObject *_wrap_delete_LogNull(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9255 | PyObject *resultobj; |
9256 | wxLogNull *arg1 = (wxLogNull *) 0 ; | |
9257 | PyObject * obj0 = 0 ; | |
9258 | char *kwnames[] = { | |
9259 | (char *) "self", NULL | |
9260 | }; | |
9261 | ||
9262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LogNull",kwnames,&obj0)) goto fail; | |
9263 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogNull, | |
9264 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9265 | { | |
9266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9267 | delete arg1; | |
9268 | ||
9269 | wxPyEndAllowThreads(__tstate); | |
9270 | if (PyErr_Occurred()) SWIG_fail; | |
9271 | } | |
9272 | Py_INCREF(Py_None); resultobj = Py_None; | |
9273 | return resultobj; | |
9274 | fail: | |
9275 | return NULL; | |
9276 | } | |
9277 | ||
9278 | ||
c32bde28 | 9279 | static PyObject * LogNull_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
9280 | PyObject *obj; |
9281 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9282 | SWIG_TypeClientData(SWIGTYPE_p_wxLogNull, obj); | |
9283 | Py_INCREF(obj); | |
9284 | return Py_BuildValue((char *)""); | |
9285 | } | |
c32bde28 | 9286 | static PyObject *_wrap_new_PyLog(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9287 | PyObject *resultobj; |
9288 | wxPyLog *result; | |
9289 | char *kwnames[] = { | |
9290 | NULL | |
9291 | }; | |
9292 | ||
9293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLog",kwnames)) goto fail; | |
9294 | { | |
9295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9296 | result = (wxPyLog *)new wxPyLog(); | |
9297 | ||
9298 | wxPyEndAllowThreads(__tstate); | |
9299 | if (PyErr_Occurred()) SWIG_fail; | |
9300 | } | |
9301 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyLog, 1); | |
9302 | return resultobj; | |
9303 | fail: | |
9304 | return NULL; | |
9305 | } | |
9306 | ||
9307 | ||
c32bde28 | 9308 | static PyObject *_wrap_PyLog__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9309 | PyObject *resultobj; |
9310 | wxPyLog *arg1 = (wxPyLog *) 0 ; | |
9311 | PyObject *arg2 = (PyObject *) 0 ; | |
9312 | PyObject *arg3 = (PyObject *) 0 ; | |
9313 | PyObject * obj0 = 0 ; | |
9314 | PyObject * obj1 = 0 ; | |
9315 | PyObject * obj2 = 0 ; | |
9316 | char *kwnames[] = { | |
9317 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
9318 | }; | |
9319 | ||
9320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLog__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9321 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLog, | |
9322 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9323 | arg2 = obj1; | |
9324 | arg3 = obj2; | |
9325 | { | |
9326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9327 | (arg1)->_setCallbackInfo(arg2,arg3); | |
9328 | ||
9329 | wxPyEndAllowThreads(__tstate); | |
9330 | if (PyErr_Occurred()) SWIG_fail; | |
9331 | } | |
9332 | Py_INCREF(Py_None); resultobj = Py_None; | |
9333 | return resultobj; | |
9334 | fail: | |
9335 | return NULL; | |
9336 | } | |
9337 | ||
9338 | ||
c32bde28 | 9339 | static PyObject * PyLog_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
9340 | PyObject *obj; |
9341 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9342 | SWIG_TypeClientData(SWIGTYPE_p_wxPyLog, obj); | |
9343 | Py_INCREF(obj); | |
9344 | return Py_BuildValue((char *)""); | |
9345 | } | |
c32bde28 | 9346 | static PyObject *_wrap_Process_Kill(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9347 | PyObject *resultobj; |
9348 | int arg1 ; | |
9349 | int arg2 = (int) wxSIGTERM ; | |
c9c2cf70 | 9350 | int arg3 = (int) wxKILL_NOCHILDREN ; |
d55e5bfc RD |
9351 | int result; |
9352 | PyObject * obj0 = 0 ; | |
9353 | PyObject * obj1 = 0 ; | |
c9c2cf70 | 9354 | PyObject * obj2 = 0 ; |
d55e5bfc | 9355 | char *kwnames[] = { |
c9c2cf70 | 9356 | (char *) "pid",(char *) "sig",(char *) "flags", NULL |
d55e5bfc RD |
9357 | }; |
9358 | ||
c9c2cf70 | 9359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Process_Kill",kwnames,&obj0,&obj1,&obj2)) goto fail; |
c32bde28 | 9360 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
9361 | if (PyErr_Occurred()) SWIG_fail; |
9362 | if (obj1) { | |
c32bde28 | 9363 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
9364 | if (PyErr_Occurred()) SWIG_fail; |
9365 | } | |
c9c2cf70 RD |
9366 | if (obj2) { |
9367 | arg3 = (int)SWIG_As_int(obj2); | |
9368 | if (PyErr_Occurred()) SWIG_fail; | |
9369 | } | |
d55e5bfc RD |
9370 | { |
9371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c9c2cf70 | 9372 | result = (int)wxPyProcess::Kill(arg1,(wxSignal )arg2,arg3); |
d55e5bfc RD |
9373 | |
9374 | wxPyEndAllowThreads(__tstate); | |
9375 | if (PyErr_Occurred()) SWIG_fail; | |
9376 | } | |
c32bde28 | 9377 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
9378 | return resultobj; |
9379 | fail: | |
9380 | return NULL; | |
9381 | } | |
9382 | ||
9383 | ||
c32bde28 | 9384 | static PyObject *_wrap_Process_Exists(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9385 | PyObject *resultobj; |
9386 | int arg1 ; | |
9387 | bool result; | |
9388 | PyObject * obj0 = 0 ; | |
9389 | char *kwnames[] = { | |
9390 | (char *) "pid", NULL | |
9391 | }; | |
9392 | ||
9393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Exists",kwnames,&obj0)) goto fail; | |
c32bde28 | 9394 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
9395 | if (PyErr_Occurred()) SWIG_fail; |
9396 | { | |
9397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9398 | result = (bool)wxPyProcess::Exists(arg1); | |
9399 | ||
9400 | wxPyEndAllowThreads(__tstate); | |
9401 | if (PyErr_Occurred()) SWIG_fail; | |
9402 | } | |
9403 | { | |
9404 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9405 | } | |
9406 | return resultobj; | |
9407 | fail: | |
9408 | return NULL; | |
9409 | } | |
9410 | ||
9411 | ||
c32bde28 | 9412 | static PyObject *_wrap_Process_Open(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9413 | PyObject *resultobj; |
9414 | wxString *arg1 = 0 ; | |
9415 | int arg2 = (int) wxEXEC_ASYNC ; | |
9416 | wxPyProcess *result; | |
ae8162c8 | 9417 | bool temp1 = false ; |
d55e5bfc RD |
9418 | PyObject * obj0 = 0 ; |
9419 | PyObject * obj1 = 0 ; | |
9420 | char *kwnames[] = { | |
9421 | (char *) "cmd",(char *) "flags", NULL | |
9422 | }; | |
9423 | ||
9424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Open",kwnames,&obj0,&obj1)) goto fail; | |
9425 | { | |
9426 | arg1 = wxString_in_helper(obj0); | |
9427 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 9428 | temp1 = true; |
d55e5bfc RD |
9429 | } |
9430 | if (obj1) { | |
c32bde28 | 9431 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
9432 | if (PyErr_Occurred()) SWIG_fail; |
9433 | } | |
9434 | { | |
9435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9436 | result = (wxPyProcess *)wxPyProcess::Open((wxString const &)*arg1,arg2); | |
9437 | ||
9438 | wxPyEndAllowThreads(__tstate); | |
9439 | if (PyErr_Occurred()) SWIG_fail; | |
9440 | } | |
9441 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 0); | |
9442 | { | |
9443 | if (temp1) | |
9444 | delete arg1; | |
9445 | } | |
9446 | return resultobj; | |
9447 | fail: | |
9448 | { | |
9449 | if (temp1) | |
9450 | delete arg1; | |
9451 | } | |
9452 | return NULL; | |
9453 | } | |
9454 | ||
9455 | ||
c32bde28 | 9456 | static PyObject *_wrap_new_Process(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9457 | PyObject *resultobj; |
9458 | wxEvtHandler *arg1 = (wxEvtHandler *) NULL ; | |
9459 | int arg2 = (int) -1 ; | |
9460 | wxPyProcess *result; | |
9461 | PyObject * obj0 = 0 ; | |
9462 | PyObject * obj1 = 0 ; | |
9463 | char *kwnames[] = { | |
9464 | (char *) "parent",(char *) "id", NULL | |
9465 | }; | |
9466 | ||
9467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Process",kwnames,&obj0,&obj1)) goto fail; | |
9468 | if (obj0) { | |
9469 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
9470 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9471 | } | |
9472 | if (obj1) { | |
c32bde28 | 9473 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
9474 | if (PyErr_Occurred()) SWIG_fail; |
9475 | } | |
9476 | { | |
9477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9478 | result = (wxPyProcess *)new wxPyProcess(arg1,arg2); | |
9479 | ||
9480 | wxPyEndAllowThreads(__tstate); | |
9481 | if (PyErr_Occurred()) SWIG_fail; | |
9482 | } | |
9483 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 1); | |
9484 | return resultobj; | |
9485 | fail: | |
9486 | return NULL; | |
9487 | } | |
9488 | ||
9489 | ||
c32bde28 | 9490 | static PyObject *_wrap_Process__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9491 | PyObject *resultobj; |
9492 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9493 | PyObject *arg2 = (PyObject *) 0 ; | |
9494 | PyObject *arg3 = (PyObject *) 0 ; | |
9495 | PyObject * obj0 = 0 ; | |
9496 | PyObject * obj1 = 0 ; | |
9497 | PyObject * obj2 = 0 ; | |
9498 | char *kwnames[] = { | |
9499 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
9500 | }; | |
9501 | ||
9502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9503 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9504 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9505 | arg2 = obj1; | |
9506 | arg3 = obj2; | |
9507 | { | |
9508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9509 | (arg1)->_setCallbackInfo(arg2,arg3); | |
9510 | ||
9511 | wxPyEndAllowThreads(__tstate); | |
9512 | if (PyErr_Occurred()) SWIG_fail; | |
9513 | } | |
9514 | Py_INCREF(Py_None); resultobj = Py_None; | |
9515 | return resultobj; | |
9516 | fail: | |
9517 | return NULL; | |
9518 | } | |
9519 | ||
9520 | ||
c32bde28 | 9521 | static PyObject *_wrap_Process_base_OnTerminate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9522 | PyObject *resultobj; |
9523 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9524 | int arg2 ; | |
9525 | int arg3 ; | |
9526 | PyObject * obj0 = 0 ; | |
9527 | PyObject * obj1 = 0 ; | |
9528 | PyObject * obj2 = 0 ; | |
9529 | char *kwnames[] = { | |
9530 | (char *) "self",(char *) "pid",(char *) "status", NULL | |
9531 | }; | |
9532 | ||
9533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process_base_OnTerminate",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9534 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9535 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9536 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 9537 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 9538 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9539 | if (PyErr_Occurred()) SWIG_fail; |
9540 | { | |
9541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9542 | (arg1)->base_OnTerminate(arg2,arg3); | |
9543 | ||
9544 | wxPyEndAllowThreads(__tstate); | |
9545 | if (PyErr_Occurred()) SWIG_fail; | |
9546 | } | |
9547 | Py_INCREF(Py_None); resultobj = Py_None; | |
9548 | return resultobj; | |
9549 | fail: | |
9550 | return NULL; | |
9551 | } | |
9552 | ||
9553 | ||
c32bde28 | 9554 | static PyObject *_wrap_Process_Redirect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9555 | PyObject *resultobj; |
9556 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9557 | PyObject * obj0 = 0 ; | |
9558 | char *kwnames[] = { | |
9559 | (char *) "self", NULL | |
9560 | }; | |
9561 | ||
9562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Redirect",kwnames,&obj0)) goto fail; | |
9563 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9564 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9565 | { | |
9566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9567 | (arg1)->Redirect(); | |
9568 | ||
9569 | wxPyEndAllowThreads(__tstate); | |
9570 | if (PyErr_Occurred()) SWIG_fail; | |
9571 | } | |
9572 | Py_INCREF(Py_None); resultobj = Py_None; | |
9573 | return resultobj; | |
9574 | fail: | |
9575 | return NULL; | |
9576 | } | |
9577 | ||
9578 | ||
c32bde28 | 9579 | static PyObject *_wrap_Process_IsRedirected(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9580 | PyObject *resultobj; |
9581 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9582 | bool result; | |
9583 | PyObject * obj0 = 0 ; | |
9584 | char *kwnames[] = { | |
9585 | (char *) "self", NULL | |
9586 | }; | |
9587 | ||
9588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsRedirected",kwnames,&obj0)) goto fail; | |
9589 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9591 | { | |
9592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9593 | result = (bool)(arg1)->IsRedirected(); | |
9594 | ||
9595 | wxPyEndAllowThreads(__tstate); | |
9596 | if (PyErr_Occurred()) SWIG_fail; | |
9597 | } | |
9598 | { | |
9599 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9600 | } | |
9601 | return resultobj; | |
9602 | fail: | |
9603 | return NULL; | |
9604 | } | |
9605 | ||
9606 | ||
c32bde28 | 9607 | static PyObject *_wrap_Process_Detach(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9608 | PyObject *resultobj; |
9609 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9610 | PyObject * obj0 = 0 ; | |
9611 | char *kwnames[] = { | |
9612 | (char *) "self", NULL | |
9613 | }; | |
9614 | ||
9615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Detach",kwnames,&obj0)) goto fail; | |
9616 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9618 | { | |
9619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9620 | (arg1)->Detach(); | |
9621 | ||
9622 | wxPyEndAllowThreads(__tstate); | |
9623 | if (PyErr_Occurred()) SWIG_fail; | |
9624 | } | |
9625 | Py_INCREF(Py_None); resultobj = Py_None; | |
9626 | return resultobj; | |
9627 | fail: | |
9628 | return NULL; | |
9629 | } | |
9630 | ||
9631 | ||
c32bde28 | 9632 | static PyObject *_wrap_Process_GetInputStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9633 | PyObject *resultobj; |
9634 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9635 | wxInputStream *result; | |
9636 | PyObject * obj0 = 0 ; | |
9637 | char *kwnames[] = { | |
9638 | (char *) "self", NULL | |
9639 | }; | |
9640 | ||
9641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetInputStream",kwnames,&obj0)) goto fail; | |
9642 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9643 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9644 | { | |
9645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9646 | result = (wxInputStream *)(arg1)->GetInputStream(); | |
9647 | ||
9648 | wxPyEndAllowThreads(__tstate); | |
9649 | if (PyErr_Occurred()) SWIG_fail; | |
9650 | } | |
9651 | { | |
9652 | wxPyInputStream * _ptr = NULL; | |
9653 | ||
9654 | if (result) { | |
9655 | _ptr = new wxPyInputStream(result); | |
9656 | } | |
fc71d09b | 9657 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), 0); |
d55e5bfc RD |
9658 | } |
9659 | return resultobj; | |
9660 | fail: | |
9661 | return NULL; | |
9662 | } | |
9663 | ||
9664 | ||
c32bde28 | 9665 | static PyObject *_wrap_Process_GetErrorStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9666 | PyObject *resultobj; |
9667 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9668 | wxInputStream *result; | |
9669 | PyObject * obj0 = 0 ; | |
9670 | char *kwnames[] = { | |
9671 | (char *) "self", NULL | |
9672 | }; | |
9673 | ||
9674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetErrorStream",kwnames,&obj0)) goto fail; | |
9675 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9676 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9677 | { | |
9678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9679 | result = (wxInputStream *)(arg1)->GetErrorStream(); | |
9680 | ||
9681 | wxPyEndAllowThreads(__tstate); | |
9682 | if (PyErr_Occurred()) SWIG_fail; | |
9683 | } | |
9684 | { | |
9685 | wxPyInputStream * _ptr = NULL; | |
9686 | ||
9687 | if (result) { | |
9688 | _ptr = new wxPyInputStream(result); | |
9689 | } | |
fc71d09b | 9690 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), 0); |
d55e5bfc RD |
9691 | } |
9692 | return resultobj; | |
9693 | fail: | |
9694 | return NULL; | |
9695 | } | |
9696 | ||
9697 | ||
c32bde28 | 9698 | static PyObject *_wrap_Process_GetOutputStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9699 | PyObject *resultobj; |
9700 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9701 | wxOutputStream *result; | |
9702 | PyObject * obj0 = 0 ; | |
9703 | char *kwnames[] = { | |
9704 | (char *) "self", NULL | |
9705 | }; | |
9706 | ||
9707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetOutputStream",kwnames,&obj0)) goto fail; | |
9708 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9709 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9710 | { | |
9711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9712 | result = (wxOutputStream *)(arg1)->GetOutputStream(); | |
9713 | ||
9714 | wxPyEndAllowThreads(__tstate); | |
9715 | if (PyErr_Occurred()) SWIG_fail; | |
9716 | } | |
9717 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxOutputStream, 0); | |
9718 | return resultobj; | |
9719 | fail: | |
9720 | return NULL; | |
9721 | } | |
9722 | ||
9723 | ||
c32bde28 | 9724 | static PyObject *_wrap_Process_CloseOutput(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9725 | PyObject *resultobj; |
9726 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9727 | PyObject * obj0 = 0 ; | |
9728 | char *kwnames[] = { | |
9729 | (char *) "self", NULL | |
9730 | }; | |
9731 | ||
9732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_CloseOutput",kwnames,&obj0)) goto fail; | |
9733 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9734 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9735 | { | |
9736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9737 | (arg1)->CloseOutput(); | |
9738 | ||
9739 | wxPyEndAllowThreads(__tstate); | |
9740 | if (PyErr_Occurred()) SWIG_fail; | |
9741 | } | |
9742 | Py_INCREF(Py_None); resultobj = Py_None; | |
9743 | return resultobj; | |
9744 | fail: | |
9745 | return NULL; | |
9746 | } | |
9747 | ||
9748 | ||
c32bde28 | 9749 | static PyObject *_wrap_Process_IsInputOpened(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9750 | PyObject *resultobj; |
9751 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9752 | bool result; | |
9753 | PyObject * obj0 = 0 ; | |
9754 | char *kwnames[] = { | |
9755 | (char *) "self", NULL | |
9756 | }; | |
9757 | ||
9758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputOpened",kwnames,&obj0)) goto fail; | |
9759 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9760 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9761 | { | |
9762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9763 | result = (bool)((wxPyProcess const *)arg1)->IsInputOpened(); | |
9764 | ||
9765 | wxPyEndAllowThreads(__tstate); | |
9766 | if (PyErr_Occurred()) SWIG_fail; | |
9767 | } | |
9768 | { | |
9769 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9770 | } | |
9771 | return resultobj; | |
9772 | fail: | |
9773 | return NULL; | |
9774 | } | |
9775 | ||
9776 | ||
c32bde28 | 9777 | static PyObject *_wrap_Process_IsInputAvailable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9778 | PyObject *resultobj; |
9779 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9780 | bool result; | |
9781 | PyObject * obj0 = 0 ; | |
9782 | char *kwnames[] = { | |
9783 | (char *) "self", NULL | |
9784 | }; | |
9785 | ||
9786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputAvailable",kwnames,&obj0)) goto fail; | |
9787 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9788 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9789 | { | |
9790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9791 | result = (bool)((wxPyProcess const *)arg1)->IsInputAvailable(); | |
9792 | ||
9793 | wxPyEndAllowThreads(__tstate); | |
9794 | if (PyErr_Occurred()) SWIG_fail; | |
9795 | } | |
9796 | { | |
9797 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9798 | } | |
9799 | return resultobj; | |
9800 | fail: | |
9801 | return NULL; | |
9802 | } | |
9803 | ||
9804 | ||
c32bde28 | 9805 | static PyObject *_wrap_Process_IsErrorAvailable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9806 | PyObject *resultobj; |
9807 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
9808 | bool result; | |
9809 | PyObject * obj0 = 0 ; | |
9810 | char *kwnames[] = { | |
9811 | (char *) "self", NULL | |
9812 | }; | |
9813 | ||
9814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsErrorAvailable",kwnames,&obj0)) goto fail; | |
9815 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess, | |
9816 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9817 | { | |
9818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9819 | result = (bool)((wxPyProcess const *)arg1)->IsErrorAvailable(); | |
9820 | ||
9821 | wxPyEndAllowThreads(__tstate); | |
9822 | if (PyErr_Occurred()) SWIG_fail; | |
9823 | } | |
9824 | { | |
9825 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9826 | } | |
9827 | return resultobj; | |
9828 | fail: | |
9829 | return NULL; | |
9830 | } | |
9831 | ||
9832 | ||
c32bde28 | 9833 | static PyObject * Process_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
9834 | PyObject *obj; |
9835 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9836 | SWIG_TypeClientData(SWIGTYPE_p_wxPyProcess, obj); | |
9837 | Py_INCREF(obj); | |
9838 | return Py_BuildValue((char *)""); | |
9839 | } | |
c32bde28 | 9840 | static PyObject *_wrap_new_ProcessEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9841 | PyObject *resultobj; |
9842 | int arg1 = (int) 0 ; | |
9843 | int arg2 = (int) 0 ; | |
9844 | int arg3 = (int) 0 ; | |
9845 | wxProcessEvent *result; | |
9846 | PyObject * obj0 = 0 ; | |
9847 | PyObject * obj1 = 0 ; | |
9848 | PyObject * obj2 = 0 ; | |
9849 | char *kwnames[] = { | |
9850 | (char *) "id",(char *) "pid",(char *) "exitcode", NULL | |
9851 | }; | |
9852 | ||
9853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ProcessEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9854 | if (obj0) { | |
c32bde28 | 9855 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
9856 | if (PyErr_Occurred()) SWIG_fail; |
9857 | } | |
9858 | if (obj1) { | |
c32bde28 | 9859 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
9860 | if (PyErr_Occurred()) SWIG_fail; |
9861 | } | |
9862 | if (obj2) { | |
c32bde28 | 9863 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9864 | if (PyErr_Occurred()) SWIG_fail; |
9865 | } | |
9866 | { | |
9867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9868 | result = (wxProcessEvent *)new wxProcessEvent(arg1,arg2,arg3); | |
9869 | ||
9870 | wxPyEndAllowThreads(__tstate); | |
9871 | if (PyErr_Occurred()) SWIG_fail; | |
9872 | } | |
9873 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxProcessEvent, 1); | |
9874 | return resultobj; | |
9875 | fail: | |
9876 | return NULL; | |
9877 | } | |
9878 | ||
9879 | ||
c32bde28 | 9880 | static PyObject *_wrap_ProcessEvent_GetPid(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9881 | PyObject *resultobj; |
9882 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9883 | int result; | |
9884 | PyObject * obj0 = 0 ; | |
9885 | char *kwnames[] = { | |
9886 | (char *) "self", NULL | |
9887 | }; | |
9888 | ||
9889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetPid",kwnames,&obj0)) goto fail; | |
9890 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, | |
9891 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9892 | { | |
9893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9894 | result = (int)(arg1)->GetPid(); | |
9895 | ||
9896 | wxPyEndAllowThreads(__tstate); | |
9897 | if (PyErr_Occurred()) SWIG_fail; | |
9898 | } | |
c32bde28 | 9899 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
9900 | return resultobj; |
9901 | fail: | |
9902 | return NULL; | |
9903 | } | |
9904 | ||
9905 | ||
c32bde28 | 9906 | static PyObject *_wrap_ProcessEvent_GetExitCode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9907 | PyObject *resultobj; |
9908 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9909 | int result; | |
9910 | PyObject * obj0 = 0 ; | |
9911 | char *kwnames[] = { | |
9912 | (char *) "self", NULL | |
9913 | }; | |
9914 | ||
9915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetExitCode",kwnames,&obj0)) goto fail; | |
9916 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, | |
9917 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9918 | { | |
9919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9920 | result = (int)(arg1)->GetExitCode(); | |
9921 | ||
9922 | wxPyEndAllowThreads(__tstate); | |
9923 | if (PyErr_Occurred()) SWIG_fail; | |
9924 | } | |
c32bde28 | 9925 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
9926 | return resultobj; |
9927 | fail: | |
9928 | return NULL; | |
9929 | } | |
9930 | ||
9931 | ||
c32bde28 | 9932 | static PyObject *_wrap_ProcessEvent_m_pid_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9933 | PyObject *resultobj; |
9934 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9935 | int arg2 ; | |
9936 | PyObject * obj0 = 0 ; | |
9937 | PyObject * obj1 = 0 ; | |
9938 | char *kwnames[] = { | |
9939 | (char *) "self",(char *) "m_pid", NULL | |
9940 | }; | |
9941 | ||
9942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_pid_set",kwnames,&obj0,&obj1)) goto fail; | |
9943 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, | |
9944 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9945 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
9946 | if (PyErr_Occurred()) SWIG_fail; |
9947 | if (arg1) (arg1)->m_pid = arg2; | |
9948 | ||
9949 | Py_INCREF(Py_None); resultobj = Py_None; | |
9950 | return resultobj; | |
9951 | fail: | |
9952 | return NULL; | |
9953 | } | |
9954 | ||
9955 | ||
c32bde28 | 9956 | static PyObject *_wrap_ProcessEvent_m_pid_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9957 | PyObject *resultobj; |
9958 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9959 | int result; | |
9960 | PyObject * obj0 = 0 ; | |
9961 | char *kwnames[] = { | |
9962 | (char *) "self", NULL | |
9963 | }; | |
9964 | ||
9965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_pid_get",kwnames,&obj0)) goto fail; | |
9966 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, | |
9967 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9968 | result = (int) ((arg1)->m_pid); | |
9969 | ||
c32bde28 | 9970 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
9971 | return resultobj; |
9972 | fail: | |
9973 | return NULL; | |
9974 | } | |
9975 | ||
9976 | ||
c32bde28 | 9977 | static PyObject *_wrap_ProcessEvent_m_exitcode_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9978 | PyObject *resultobj; |
9979 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
9980 | int arg2 ; | |
9981 | PyObject * obj0 = 0 ; | |
9982 | PyObject * obj1 = 0 ; | |
9983 | char *kwnames[] = { | |
9984 | (char *) "self",(char *) "m_exitcode", NULL | |
9985 | }; | |
9986 | ||
9987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_exitcode_set",kwnames,&obj0,&obj1)) goto fail; | |
9988 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, | |
9989 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 9990 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
9991 | if (PyErr_Occurred()) SWIG_fail; |
9992 | if (arg1) (arg1)->m_exitcode = arg2; | |
9993 | ||
9994 | Py_INCREF(Py_None); resultobj = Py_None; | |
9995 | return resultobj; | |
9996 | fail: | |
9997 | return NULL; | |
9998 | } | |
9999 | ||
10000 | ||
c32bde28 | 10001 | static PyObject *_wrap_ProcessEvent_m_exitcode_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10002 | PyObject *resultobj; |
10003 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
10004 | int result; | |
10005 | PyObject * obj0 = 0 ; | |
10006 | char *kwnames[] = { | |
10007 | (char *) "self", NULL | |
10008 | }; | |
10009 | ||
10010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_exitcode_get",kwnames,&obj0)) goto fail; | |
10011 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent, | |
10012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10013 | result = (int) ((arg1)->m_exitcode); | |
10014 | ||
c32bde28 | 10015 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10016 | return resultobj; |
10017 | fail: | |
10018 | return NULL; | |
10019 | } | |
10020 | ||
10021 | ||
c32bde28 | 10022 | static PyObject * ProcessEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
10023 | PyObject *obj; |
10024 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10025 | SWIG_TypeClientData(SWIGTYPE_p_wxProcessEvent, obj); | |
10026 | Py_INCREF(obj); | |
10027 | return Py_BuildValue((char *)""); | |
10028 | } | |
c32bde28 | 10029 | static PyObject *_wrap_Execute(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10030 | PyObject *resultobj; |
10031 | wxString *arg1 = 0 ; | |
10032 | int arg2 = (int) wxEXEC_ASYNC ; | |
10033 | wxPyProcess *arg3 = (wxPyProcess *) NULL ; | |
10034 | long result; | |
ae8162c8 | 10035 | bool temp1 = false ; |
d55e5bfc RD |
10036 | PyObject * obj0 = 0 ; |
10037 | PyObject * obj1 = 0 ; | |
10038 | PyObject * obj2 = 0 ; | |
10039 | char *kwnames[] = { | |
10040 | (char *) "command",(char *) "flags",(char *) "process", NULL | |
10041 | }; | |
10042 | ||
10043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Execute",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10044 | { | |
10045 | arg1 = wxString_in_helper(obj0); | |
10046 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 10047 | temp1 = true; |
d55e5bfc RD |
10048 | } |
10049 | if (obj1) { | |
c32bde28 | 10050 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
10051 | if (PyErr_Occurred()) SWIG_fail; |
10052 | } | |
10053 | if (obj2) { | |
10054 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyProcess, | |
10055 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10056 | } | |
10057 | { | |
0439c23b | 10058 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
10059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10060 | result = (long)wxExecute((wxString const &)*arg1,arg2,arg3); | |
10061 | ||
10062 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 10063 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 10064 | } |
c32bde28 | 10065 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
10066 | { |
10067 | if (temp1) | |
10068 | delete arg1; | |
10069 | } | |
10070 | return resultobj; | |
10071 | fail: | |
10072 | { | |
10073 | if (temp1) | |
10074 | delete arg1; | |
10075 | } | |
10076 | return NULL; | |
10077 | } | |
10078 | ||
10079 | ||
c9c2cf70 RD |
10080 | static PyObject *_wrap_Kill(PyObject *, PyObject *args, PyObject *kwargs) { |
10081 | PyObject *resultobj; | |
10082 | long arg1 ; | |
10083 | int arg2 = (int) wxSIGTERM ; | |
10084 | wxKillError *arg3 = (wxKillError *) 0 ; | |
10085 | int arg4 = (int) wxKILL_NOCHILDREN ; | |
10086 | int result; | |
10087 | wxKillError temp3 ; | |
10088 | PyObject * obj0 = 0 ; | |
10089 | PyObject * obj1 = 0 ; | |
10090 | PyObject * obj2 = 0 ; | |
10091 | char *kwnames[] = { | |
10092 | (char *) "pid",(char *) "sig",(char *) "flags", NULL | |
10093 | }; | |
10094 | ||
10095 | { | |
10096 | arg3 = &temp3; | |
10097 | } | |
10098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Kill",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10099 | arg1 = (long)SWIG_As_long(obj0); | |
10100 | if (PyErr_Occurred()) SWIG_fail; | |
10101 | if (obj1) { | |
10102 | arg2 = (int)SWIG_As_int(obj1); | |
10103 | if (PyErr_Occurred()) SWIG_fail; | |
10104 | } | |
10105 | if (obj2) { | |
10106 | arg4 = (int)SWIG_As_int(obj2); | |
10107 | if (PyErr_Occurred()) SWIG_fail; | |
10108 | } | |
10109 | { | |
10110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10111 | result = (int)wxKill(arg1,(wxSignal )arg2,arg3,arg4); | |
10112 | ||
10113 | wxPyEndAllowThreads(__tstate); | |
10114 | if (PyErr_Occurred()) SWIG_fail; | |
10115 | } | |
10116 | resultobj = SWIG_From_int((int)result); | |
10117 | { | |
10118 | PyObject* o; | |
10119 | o = PyInt_FromLong((long) (*arg3)); | |
10120 | resultobj = t_output_helper(resultobj, o); | |
10121 | } | |
10122 | return resultobj; | |
10123 | fail: | |
10124 | return NULL; | |
10125 | } | |
10126 | ||
10127 | ||
c32bde28 | 10128 | static PyObject *_wrap_new_Joystick(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10129 | PyObject *resultobj; |
10130 | int arg1 = (int) wxJOYSTICK1 ; | |
10131 | wxJoystick *result; | |
10132 | PyObject * obj0 = 0 ; | |
10133 | char *kwnames[] = { | |
10134 | (char *) "joystick", NULL | |
10135 | }; | |
10136 | ||
10137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Joystick",kwnames,&obj0)) goto fail; | |
10138 | if (obj0) { | |
c32bde28 | 10139 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
10140 | if (PyErr_Occurred()) SWIG_fail; |
10141 | } | |
10142 | { | |
0439c23b | 10143 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
10144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10145 | result = (wxJoystick *)new wxJoystick(arg1); | |
10146 | ||
10147 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 10148 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
10149 | } |
10150 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystick, 1); | |
10151 | return resultobj; | |
10152 | fail: | |
10153 | return NULL; | |
10154 | } | |
10155 | ||
10156 | ||
c32bde28 | 10157 | static PyObject *_wrap_delete_Joystick(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10158 | PyObject *resultobj; |
10159 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10160 | PyObject * obj0 = 0 ; | |
10161 | char *kwnames[] = { | |
10162 | (char *) "self", NULL | |
10163 | }; | |
10164 | ||
10165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Joystick",kwnames,&obj0)) goto fail; | |
10166 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10167 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10168 | { | |
10169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10170 | delete arg1; | |
10171 | ||
10172 | wxPyEndAllowThreads(__tstate); | |
10173 | if (PyErr_Occurred()) SWIG_fail; | |
10174 | } | |
10175 | Py_INCREF(Py_None); resultobj = Py_None; | |
10176 | return resultobj; | |
10177 | fail: | |
10178 | return NULL; | |
10179 | } | |
10180 | ||
10181 | ||
c32bde28 | 10182 | static PyObject *_wrap_Joystick_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10183 | PyObject *resultobj; |
10184 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10185 | wxPoint result; | |
10186 | PyObject * obj0 = 0 ; | |
10187 | char *kwnames[] = { | |
10188 | (char *) "self", NULL | |
10189 | }; | |
10190 | ||
10191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPosition",kwnames,&obj0)) goto fail; | |
10192 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10194 | { | |
10195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10196 | result = (arg1)->GetPosition(); | |
10197 | ||
10198 | wxPyEndAllowThreads(__tstate); | |
10199 | if (PyErr_Occurred()) SWIG_fail; | |
10200 | } | |
10201 | { | |
10202 | wxPoint * resultptr; | |
10203 | resultptr = new wxPoint((wxPoint &) result); | |
10204 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
10205 | } | |
10206 | return resultobj; | |
10207 | fail: | |
10208 | return NULL; | |
10209 | } | |
10210 | ||
10211 | ||
c32bde28 | 10212 | static PyObject *_wrap_Joystick_GetZPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10213 | PyObject *resultobj; |
10214 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10215 | int result; | |
10216 | PyObject * obj0 = 0 ; | |
10217 | char *kwnames[] = { | |
10218 | (char *) "self", NULL | |
10219 | }; | |
10220 | ||
10221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZPosition",kwnames,&obj0)) goto fail; | |
10222 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10224 | { | |
10225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10226 | result = (int)(arg1)->GetZPosition(); | |
10227 | ||
10228 | wxPyEndAllowThreads(__tstate); | |
10229 | if (PyErr_Occurred()) SWIG_fail; | |
10230 | } | |
c32bde28 | 10231 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10232 | return resultobj; |
10233 | fail: | |
10234 | return NULL; | |
10235 | } | |
10236 | ||
10237 | ||
c32bde28 | 10238 | static PyObject *_wrap_Joystick_GetButtonState(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10239 | PyObject *resultobj; |
10240 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10241 | int result; | |
10242 | PyObject * obj0 = 0 ; | |
10243 | char *kwnames[] = { | |
10244 | (char *) "self", NULL | |
10245 | }; | |
10246 | ||
10247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetButtonState",kwnames,&obj0)) goto fail; | |
10248 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10250 | { | |
10251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10252 | result = (int)(arg1)->GetButtonState(); | |
10253 | ||
10254 | wxPyEndAllowThreads(__tstate); | |
10255 | if (PyErr_Occurred()) SWIG_fail; | |
10256 | } | |
c32bde28 | 10257 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10258 | return resultobj; |
10259 | fail: | |
10260 | return NULL; | |
10261 | } | |
10262 | ||
10263 | ||
c32bde28 | 10264 | static PyObject *_wrap_Joystick_GetPOVPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10265 | PyObject *resultobj; |
10266 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10267 | int result; | |
10268 | PyObject * obj0 = 0 ; | |
10269 | char *kwnames[] = { | |
10270 | (char *) "self", NULL | |
10271 | }; | |
10272 | ||
10273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVPosition",kwnames,&obj0)) goto fail; | |
10274 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10275 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10276 | { | |
10277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10278 | result = (int)(arg1)->GetPOVPosition(); | |
10279 | ||
10280 | wxPyEndAllowThreads(__tstate); | |
10281 | if (PyErr_Occurred()) SWIG_fail; | |
10282 | } | |
c32bde28 | 10283 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10284 | return resultobj; |
10285 | fail: | |
10286 | return NULL; | |
10287 | } | |
10288 | ||
10289 | ||
c32bde28 | 10290 | static PyObject *_wrap_Joystick_GetPOVCTSPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10291 | PyObject *resultobj; |
10292 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10293 | int result; | |
10294 | PyObject * obj0 = 0 ; | |
10295 | char *kwnames[] = { | |
10296 | (char *) "self", NULL | |
10297 | }; | |
10298 | ||
10299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVCTSPosition",kwnames,&obj0)) goto fail; | |
10300 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10301 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10302 | { | |
10303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10304 | result = (int)(arg1)->GetPOVCTSPosition(); | |
10305 | ||
10306 | wxPyEndAllowThreads(__tstate); | |
10307 | if (PyErr_Occurred()) SWIG_fail; | |
10308 | } | |
c32bde28 | 10309 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10310 | return resultobj; |
10311 | fail: | |
10312 | return NULL; | |
10313 | } | |
10314 | ||
10315 | ||
c32bde28 | 10316 | static PyObject *_wrap_Joystick_GetRudderPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10317 | PyObject *resultobj; |
10318 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10319 | int result; | |
10320 | PyObject * obj0 = 0 ; | |
10321 | char *kwnames[] = { | |
10322 | (char *) "self", NULL | |
10323 | }; | |
10324 | ||
10325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderPosition",kwnames,&obj0)) goto fail; | |
10326 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10327 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10328 | { | |
10329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10330 | result = (int)(arg1)->GetRudderPosition(); | |
10331 | ||
10332 | wxPyEndAllowThreads(__tstate); | |
10333 | if (PyErr_Occurred()) SWIG_fail; | |
10334 | } | |
c32bde28 | 10335 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10336 | return resultobj; |
10337 | fail: | |
10338 | return NULL; | |
10339 | } | |
10340 | ||
10341 | ||
c32bde28 | 10342 | static PyObject *_wrap_Joystick_GetUPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10343 | PyObject *resultobj; |
10344 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10345 | int result; | |
10346 | PyObject * obj0 = 0 ; | |
10347 | char *kwnames[] = { | |
10348 | (char *) "self", NULL | |
10349 | }; | |
10350 | ||
10351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUPosition",kwnames,&obj0)) goto fail; | |
10352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10354 | { | |
10355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10356 | result = (int)(arg1)->GetUPosition(); | |
10357 | ||
10358 | wxPyEndAllowThreads(__tstate); | |
10359 | if (PyErr_Occurred()) SWIG_fail; | |
10360 | } | |
c32bde28 | 10361 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10362 | return resultobj; |
10363 | fail: | |
10364 | return NULL; | |
10365 | } | |
10366 | ||
10367 | ||
c32bde28 | 10368 | static PyObject *_wrap_Joystick_GetVPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10369 | PyObject *resultobj; |
10370 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10371 | int result; | |
10372 | PyObject * obj0 = 0 ; | |
10373 | char *kwnames[] = { | |
10374 | (char *) "self", NULL | |
10375 | }; | |
10376 | ||
10377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVPosition",kwnames,&obj0)) goto fail; | |
10378 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10379 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10380 | { | |
10381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10382 | result = (int)(arg1)->GetVPosition(); | |
10383 | ||
10384 | wxPyEndAllowThreads(__tstate); | |
10385 | if (PyErr_Occurred()) SWIG_fail; | |
10386 | } | |
c32bde28 | 10387 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10388 | return resultobj; |
10389 | fail: | |
10390 | return NULL; | |
10391 | } | |
10392 | ||
10393 | ||
c32bde28 | 10394 | static PyObject *_wrap_Joystick_GetMovementThreshold(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10395 | PyObject *resultobj; |
10396 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10397 | int result; | |
10398 | PyObject * obj0 = 0 ; | |
10399 | char *kwnames[] = { | |
10400 | (char *) "self", NULL | |
10401 | }; | |
10402 | ||
10403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMovementThreshold",kwnames,&obj0)) goto fail; | |
10404 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10405 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10406 | { | |
10407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10408 | result = (int)(arg1)->GetMovementThreshold(); | |
10409 | ||
10410 | wxPyEndAllowThreads(__tstate); | |
10411 | if (PyErr_Occurred()) SWIG_fail; | |
10412 | } | |
c32bde28 | 10413 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10414 | return resultobj; |
10415 | fail: | |
10416 | return NULL; | |
10417 | } | |
10418 | ||
10419 | ||
c32bde28 | 10420 | static PyObject *_wrap_Joystick_SetMovementThreshold(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10421 | PyObject *resultobj; |
10422 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10423 | int arg2 ; | |
10424 | PyObject * obj0 = 0 ; | |
10425 | PyObject * obj1 = 0 ; | |
10426 | char *kwnames[] = { | |
10427 | (char *) "self",(char *) "threshold", NULL | |
10428 | }; | |
10429 | ||
10430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Joystick_SetMovementThreshold",kwnames,&obj0,&obj1)) goto fail; | |
10431 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10432 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 10433 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
10434 | if (PyErr_Occurred()) SWIG_fail; |
10435 | { | |
10436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10437 | (arg1)->SetMovementThreshold(arg2); | |
10438 | ||
10439 | wxPyEndAllowThreads(__tstate); | |
10440 | if (PyErr_Occurred()) SWIG_fail; | |
10441 | } | |
10442 | Py_INCREF(Py_None); resultobj = Py_None; | |
10443 | return resultobj; | |
10444 | fail: | |
10445 | return NULL; | |
10446 | } | |
10447 | ||
10448 | ||
c32bde28 | 10449 | static PyObject *_wrap_Joystick_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10450 | PyObject *resultobj; |
10451 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10452 | bool result; | |
10453 | PyObject * obj0 = 0 ; | |
10454 | char *kwnames[] = { | |
10455 | (char *) "self", NULL | |
10456 | }; | |
10457 | ||
10458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_IsOk",kwnames,&obj0)) goto fail; | |
10459 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10460 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10461 | { | |
10462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10463 | result = (bool)(arg1)->IsOk(); | |
10464 | ||
10465 | wxPyEndAllowThreads(__tstate); | |
10466 | if (PyErr_Occurred()) SWIG_fail; | |
10467 | } | |
10468 | { | |
10469 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10470 | } | |
10471 | return resultobj; | |
10472 | fail: | |
10473 | return NULL; | |
10474 | } | |
10475 | ||
10476 | ||
c32bde28 | 10477 | static PyObject *_wrap_Joystick_GetNumberJoysticks(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_GetNumberJoysticks",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)->GetNumberJoysticks(); | |
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_GetManufacturerId(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_GetManufacturerId",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)->GetManufacturerId(); | |
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_GetProductId(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_GetProductId",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)->GetProductId(); | |
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_GetProductName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10556 | PyObject *resultobj; |
10557 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10558 | wxString result; | |
10559 | PyObject * obj0 = 0 ; | |
10560 | char *kwnames[] = { | |
10561 | (char *) "self", NULL | |
10562 | }; | |
10563 | ||
10564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductName",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 = (arg1)->GetProductName(); | |
10570 | ||
10571 | wxPyEndAllowThreads(__tstate); | |
10572 | if (PyErr_Occurred()) SWIG_fail; | |
10573 | } | |
10574 | { | |
10575 | #if wxUSE_UNICODE | |
10576 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10577 | #else | |
10578 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10579 | #endif | |
10580 | } | |
10581 | return resultobj; | |
10582 | fail: | |
10583 | return NULL; | |
10584 | } | |
10585 | ||
10586 | ||
c32bde28 | 10587 | static PyObject *_wrap_Joystick_GetXMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10588 | PyObject *resultobj; |
10589 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10590 | int result; | |
10591 | PyObject * obj0 = 0 ; | |
10592 | char *kwnames[] = { | |
10593 | (char *) "self", NULL | |
10594 | }; | |
10595 | ||
10596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMin",kwnames,&obj0)) goto fail; | |
10597 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10598 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10599 | { | |
10600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10601 | result = (int)(arg1)->GetXMin(); | |
10602 | ||
10603 | wxPyEndAllowThreads(__tstate); | |
10604 | if (PyErr_Occurred()) SWIG_fail; | |
10605 | } | |
c32bde28 | 10606 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10607 | return resultobj; |
10608 | fail: | |
10609 | return NULL; | |
10610 | } | |
10611 | ||
10612 | ||
c32bde28 | 10613 | static PyObject *_wrap_Joystick_GetYMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10614 | PyObject *resultobj; |
10615 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10616 | int result; | |
10617 | PyObject * obj0 = 0 ; | |
10618 | char *kwnames[] = { | |
10619 | (char *) "self", NULL | |
10620 | }; | |
10621 | ||
10622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMin",kwnames,&obj0)) goto fail; | |
10623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10625 | { | |
10626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10627 | result = (int)(arg1)->GetYMin(); | |
10628 | ||
10629 | wxPyEndAllowThreads(__tstate); | |
10630 | if (PyErr_Occurred()) SWIG_fail; | |
10631 | } | |
c32bde28 | 10632 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10633 | return resultobj; |
10634 | fail: | |
10635 | return NULL; | |
10636 | } | |
10637 | ||
10638 | ||
c32bde28 | 10639 | static PyObject *_wrap_Joystick_GetZMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10640 | PyObject *resultobj; |
10641 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10642 | int result; | |
10643 | PyObject * obj0 = 0 ; | |
10644 | char *kwnames[] = { | |
10645 | (char *) "self", NULL | |
10646 | }; | |
10647 | ||
10648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMin",kwnames,&obj0)) goto fail; | |
10649 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10650 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10651 | { | |
10652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10653 | result = (int)(arg1)->GetZMin(); | |
10654 | ||
10655 | wxPyEndAllowThreads(__tstate); | |
10656 | if (PyErr_Occurred()) SWIG_fail; | |
10657 | } | |
c32bde28 | 10658 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10659 | return resultobj; |
10660 | fail: | |
10661 | return NULL; | |
10662 | } | |
10663 | ||
10664 | ||
c32bde28 | 10665 | static PyObject *_wrap_Joystick_GetXMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10666 | PyObject *resultobj; |
10667 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10668 | int result; | |
10669 | PyObject * obj0 = 0 ; | |
10670 | char *kwnames[] = { | |
10671 | (char *) "self", NULL | |
10672 | }; | |
10673 | ||
10674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMax",kwnames,&obj0)) goto fail; | |
10675 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10676 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10677 | { | |
10678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10679 | result = (int)(arg1)->GetXMax(); | |
10680 | ||
10681 | wxPyEndAllowThreads(__tstate); | |
10682 | if (PyErr_Occurred()) SWIG_fail; | |
10683 | } | |
c32bde28 | 10684 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10685 | return resultobj; |
10686 | fail: | |
10687 | return NULL; | |
10688 | } | |
10689 | ||
10690 | ||
c32bde28 | 10691 | static PyObject *_wrap_Joystick_GetYMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10692 | PyObject *resultobj; |
10693 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10694 | int result; | |
10695 | PyObject * obj0 = 0 ; | |
10696 | char *kwnames[] = { | |
10697 | (char *) "self", NULL | |
10698 | }; | |
10699 | ||
10700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMax",kwnames,&obj0)) goto fail; | |
10701 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10702 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10703 | { | |
10704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10705 | result = (int)(arg1)->GetYMax(); | |
10706 | ||
10707 | wxPyEndAllowThreads(__tstate); | |
10708 | if (PyErr_Occurred()) SWIG_fail; | |
10709 | } | |
c32bde28 | 10710 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10711 | return resultobj; |
10712 | fail: | |
10713 | return NULL; | |
10714 | } | |
10715 | ||
10716 | ||
c32bde28 | 10717 | static PyObject *_wrap_Joystick_GetZMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10718 | PyObject *resultobj; |
10719 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10720 | int result; | |
10721 | PyObject * obj0 = 0 ; | |
10722 | char *kwnames[] = { | |
10723 | (char *) "self", NULL | |
10724 | }; | |
10725 | ||
10726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMax",kwnames,&obj0)) goto fail; | |
10727 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10729 | { | |
10730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10731 | result = (int)(arg1)->GetZMax(); | |
10732 | ||
10733 | wxPyEndAllowThreads(__tstate); | |
10734 | if (PyErr_Occurred()) SWIG_fail; | |
10735 | } | |
c32bde28 | 10736 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10737 | return resultobj; |
10738 | fail: | |
10739 | return NULL; | |
10740 | } | |
10741 | ||
10742 | ||
c32bde28 | 10743 | static PyObject *_wrap_Joystick_GetNumberButtons(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10744 | PyObject *resultobj; |
10745 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10746 | int result; | |
10747 | PyObject * obj0 = 0 ; | |
10748 | char *kwnames[] = { | |
10749 | (char *) "self", NULL | |
10750 | }; | |
10751 | ||
10752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberButtons",kwnames,&obj0)) goto fail; | |
10753 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10755 | { | |
10756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10757 | result = (int)(arg1)->GetNumberButtons(); | |
10758 | ||
10759 | wxPyEndAllowThreads(__tstate); | |
10760 | if (PyErr_Occurred()) SWIG_fail; | |
10761 | } | |
c32bde28 | 10762 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10763 | return resultobj; |
10764 | fail: | |
10765 | return NULL; | |
10766 | } | |
10767 | ||
10768 | ||
c32bde28 | 10769 | static PyObject *_wrap_Joystick_GetNumberAxes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10770 | PyObject *resultobj; |
10771 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10772 | int result; | |
10773 | PyObject * obj0 = 0 ; | |
10774 | char *kwnames[] = { | |
10775 | (char *) "self", NULL | |
10776 | }; | |
10777 | ||
10778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberAxes",kwnames,&obj0)) goto fail; | |
10779 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10780 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10781 | { | |
10782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10783 | result = (int)(arg1)->GetNumberAxes(); | |
10784 | ||
10785 | wxPyEndAllowThreads(__tstate); | |
10786 | if (PyErr_Occurred()) SWIG_fail; | |
10787 | } | |
c32bde28 | 10788 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10789 | return resultobj; |
10790 | fail: | |
10791 | return NULL; | |
10792 | } | |
10793 | ||
10794 | ||
c32bde28 | 10795 | static PyObject *_wrap_Joystick_GetMaxButtons(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10796 | PyObject *resultobj; |
10797 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10798 | int result; | |
10799 | PyObject * obj0 = 0 ; | |
10800 | char *kwnames[] = { | |
10801 | (char *) "self", NULL | |
10802 | }; | |
10803 | ||
10804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxButtons",kwnames,&obj0)) goto fail; | |
10805 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10806 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10807 | { | |
10808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10809 | result = (int)(arg1)->GetMaxButtons(); | |
10810 | ||
10811 | wxPyEndAllowThreads(__tstate); | |
10812 | if (PyErr_Occurred()) SWIG_fail; | |
10813 | } | |
c32bde28 | 10814 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10815 | return resultobj; |
10816 | fail: | |
10817 | return NULL; | |
10818 | } | |
10819 | ||
10820 | ||
c32bde28 | 10821 | static PyObject *_wrap_Joystick_GetMaxAxes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10822 | PyObject *resultobj; |
10823 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10824 | int result; | |
10825 | PyObject * obj0 = 0 ; | |
10826 | char *kwnames[] = { | |
10827 | (char *) "self", NULL | |
10828 | }; | |
10829 | ||
10830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxAxes",kwnames,&obj0)) goto fail; | |
10831 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10832 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10833 | { | |
10834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10835 | result = (int)(arg1)->GetMaxAxes(); | |
10836 | ||
10837 | wxPyEndAllowThreads(__tstate); | |
10838 | if (PyErr_Occurred()) SWIG_fail; | |
10839 | } | |
c32bde28 | 10840 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10841 | return resultobj; |
10842 | fail: | |
10843 | return NULL; | |
10844 | } | |
10845 | ||
10846 | ||
c32bde28 | 10847 | static PyObject *_wrap_Joystick_GetPollingMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10848 | PyObject *resultobj; |
10849 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10850 | int result; | |
10851 | PyObject * obj0 = 0 ; | |
10852 | char *kwnames[] = { | |
10853 | (char *) "self", NULL | |
10854 | }; | |
10855 | ||
10856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMin",kwnames,&obj0)) goto fail; | |
10857 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10858 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10859 | { | |
10860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10861 | result = (int)(arg1)->GetPollingMin(); | |
10862 | ||
10863 | wxPyEndAllowThreads(__tstate); | |
10864 | if (PyErr_Occurred()) SWIG_fail; | |
10865 | } | |
c32bde28 | 10866 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10867 | return resultobj; |
10868 | fail: | |
10869 | return NULL; | |
10870 | } | |
10871 | ||
10872 | ||
c32bde28 | 10873 | static PyObject *_wrap_Joystick_GetPollingMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10874 | PyObject *resultobj; |
10875 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10876 | int result; | |
10877 | PyObject * obj0 = 0 ; | |
10878 | char *kwnames[] = { | |
10879 | (char *) "self", NULL | |
10880 | }; | |
10881 | ||
10882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMax",kwnames,&obj0)) goto fail; | |
10883 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10885 | { | |
10886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10887 | result = (int)(arg1)->GetPollingMax(); | |
10888 | ||
10889 | wxPyEndAllowThreads(__tstate); | |
10890 | if (PyErr_Occurred()) SWIG_fail; | |
10891 | } | |
c32bde28 | 10892 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10893 | return resultobj; |
10894 | fail: | |
10895 | return NULL; | |
10896 | } | |
10897 | ||
10898 | ||
c32bde28 | 10899 | static PyObject *_wrap_Joystick_GetRudderMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10900 | PyObject *resultobj; |
10901 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10902 | int result; | |
10903 | PyObject * obj0 = 0 ; | |
10904 | char *kwnames[] = { | |
10905 | (char *) "self", NULL | |
10906 | }; | |
10907 | ||
10908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMin",kwnames,&obj0)) goto fail; | |
10909 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10910 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10911 | { | |
10912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10913 | result = (int)(arg1)->GetRudderMin(); | |
10914 | ||
10915 | wxPyEndAllowThreads(__tstate); | |
10916 | if (PyErr_Occurred()) SWIG_fail; | |
10917 | } | |
c32bde28 | 10918 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10919 | return resultobj; |
10920 | fail: | |
10921 | return NULL; | |
10922 | } | |
10923 | ||
10924 | ||
c32bde28 | 10925 | static PyObject *_wrap_Joystick_GetRudderMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10926 | PyObject *resultobj; |
10927 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10928 | int result; | |
10929 | PyObject * obj0 = 0 ; | |
10930 | char *kwnames[] = { | |
10931 | (char *) "self", NULL | |
10932 | }; | |
10933 | ||
10934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMax",kwnames,&obj0)) goto fail; | |
10935 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10936 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10937 | { | |
10938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10939 | result = (int)(arg1)->GetRudderMax(); | |
10940 | ||
10941 | wxPyEndAllowThreads(__tstate); | |
10942 | if (PyErr_Occurred()) SWIG_fail; | |
10943 | } | |
c32bde28 | 10944 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10945 | return resultobj; |
10946 | fail: | |
10947 | return NULL; | |
10948 | } | |
10949 | ||
10950 | ||
c32bde28 | 10951 | static PyObject *_wrap_Joystick_GetUMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10952 | PyObject *resultobj; |
10953 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10954 | int result; | |
10955 | PyObject * obj0 = 0 ; | |
10956 | char *kwnames[] = { | |
10957 | (char *) "self", NULL | |
10958 | }; | |
10959 | ||
10960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMin",kwnames,&obj0)) goto fail; | |
10961 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
10962 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10963 | { | |
10964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10965 | result = (int)(arg1)->GetUMin(); | |
10966 | ||
10967 | wxPyEndAllowThreads(__tstate); | |
10968 | if (PyErr_Occurred()) SWIG_fail; | |
10969 | } | |
c32bde28 | 10970 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10971 | return resultobj; |
10972 | fail: | |
10973 | return NULL; | |
10974 | } | |
10975 | ||
10976 | ||
c32bde28 | 10977 | static PyObject *_wrap_Joystick_GetUMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10978 | PyObject *resultobj; |
10979 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
10980 | int result; | |
10981 | PyObject * obj0 = 0 ; | |
10982 | char *kwnames[] = { | |
10983 | (char *) "self", NULL | |
10984 | }; | |
10985 | ||
10986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMax",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 = (int)(arg1)->GetUMax(); | |
10992 | ||
10993 | wxPyEndAllowThreads(__tstate); | |
10994 | if (PyErr_Occurred()) SWIG_fail; | |
10995 | } | |
c32bde28 | 10996 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10997 | return resultobj; |
10998 | fail: | |
10999 | return NULL; | |
11000 | } | |
11001 | ||
11002 | ||
c32bde28 | 11003 | static PyObject *_wrap_Joystick_GetVMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11004 | PyObject *resultobj; |
11005 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11006 | int result; | |
11007 | PyObject * obj0 = 0 ; | |
11008 | char *kwnames[] = { | |
11009 | (char *) "self", NULL | |
11010 | }; | |
11011 | ||
11012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMin",kwnames,&obj0)) goto fail; | |
11013 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
11014 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11015 | { | |
11016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11017 | result = (int)(arg1)->GetVMin(); | |
11018 | ||
11019 | wxPyEndAllowThreads(__tstate); | |
11020 | if (PyErr_Occurred()) SWIG_fail; | |
11021 | } | |
c32bde28 | 11022 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
11023 | return resultobj; |
11024 | fail: | |
11025 | return NULL; | |
11026 | } | |
11027 | ||
11028 | ||
c32bde28 | 11029 | static PyObject *_wrap_Joystick_GetVMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11030 | PyObject *resultobj; |
11031 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11032 | int result; | |
11033 | PyObject * obj0 = 0 ; | |
11034 | char *kwnames[] = { | |
11035 | (char *) "self", NULL | |
11036 | }; | |
11037 | ||
11038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMax",kwnames,&obj0)) goto fail; | |
11039 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
11040 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11041 | { | |
11042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11043 | result = (int)(arg1)->GetVMax(); | |
11044 | ||
11045 | wxPyEndAllowThreads(__tstate); | |
11046 | if (PyErr_Occurred()) SWIG_fail; | |
11047 | } | |
c32bde28 | 11048 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
11049 | return resultobj; |
11050 | fail: | |
11051 | return NULL; | |
11052 | } | |
11053 | ||
11054 | ||
c32bde28 | 11055 | static PyObject *_wrap_Joystick_HasRudder(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11056 | PyObject *resultobj; |
11057 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11058 | bool result; | |
11059 | PyObject * obj0 = 0 ; | |
11060 | char *kwnames[] = { | |
11061 | (char *) "self", NULL | |
11062 | }; | |
11063 | ||
11064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasRudder",kwnames,&obj0)) goto fail; | |
11065 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
11066 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11067 | { | |
11068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11069 | result = (bool)(arg1)->HasRudder(); | |
11070 | ||
11071 | wxPyEndAllowThreads(__tstate); | |
11072 | if (PyErr_Occurred()) SWIG_fail; | |
11073 | } | |
11074 | { | |
11075 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11076 | } | |
11077 | return resultobj; | |
11078 | fail: | |
11079 | return NULL; | |
11080 | } | |
11081 | ||
11082 | ||
c32bde28 | 11083 | static PyObject *_wrap_Joystick_HasZ(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11084 | PyObject *resultobj; |
11085 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11086 | bool result; | |
11087 | PyObject * obj0 = 0 ; | |
11088 | char *kwnames[] = { | |
11089 | (char *) "self", NULL | |
11090 | }; | |
11091 | ||
11092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasZ",kwnames,&obj0)) goto fail; | |
11093 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
11094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11095 | { | |
11096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11097 | result = (bool)(arg1)->HasZ(); | |
11098 | ||
11099 | wxPyEndAllowThreads(__tstate); | |
11100 | if (PyErr_Occurred()) SWIG_fail; | |
11101 | } | |
11102 | { | |
11103 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11104 | } | |
11105 | return resultobj; | |
11106 | fail: | |
11107 | return NULL; | |
11108 | } | |
11109 | ||
11110 | ||
c32bde28 | 11111 | static PyObject *_wrap_Joystick_HasU(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11112 | PyObject *resultobj; |
11113 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11114 | bool result; | |
11115 | PyObject * obj0 = 0 ; | |
11116 | char *kwnames[] = { | |
11117 | (char *) "self", NULL | |
11118 | }; | |
11119 | ||
11120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasU",kwnames,&obj0)) goto fail; | |
11121 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
11122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11123 | { | |
11124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11125 | result = (bool)(arg1)->HasU(); | |
11126 | ||
11127 | wxPyEndAllowThreads(__tstate); | |
11128 | if (PyErr_Occurred()) SWIG_fail; | |
11129 | } | |
11130 | { | |
11131 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11132 | } | |
11133 | return resultobj; | |
11134 | fail: | |
11135 | return NULL; | |
11136 | } | |
11137 | ||
11138 | ||
c32bde28 | 11139 | static PyObject *_wrap_Joystick_HasV(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11140 | PyObject *resultobj; |
11141 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11142 | bool result; | |
11143 | PyObject * obj0 = 0 ; | |
11144 | char *kwnames[] = { | |
11145 | (char *) "self", NULL | |
11146 | }; | |
11147 | ||
11148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasV",kwnames,&obj0)) goto fail; | |
11149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
11150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11151 | { | |
11152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11153 | result = (bool)(arg1)->HasV(); | |
11154 | ||
11155 | wxPyEndAllowThreads(__tstate); | |
11156 | if (PyErr_Occurred()) SWIG_fail; | |
11157 | } | |
11158 | { | |
11159 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11160 | } | |
11161 | return resultobj; | |
11162 | fail: | |
11163 | return NULL; | |
11164 | } | |
11165 | ||
11166 | ||
c32bde28 | 11167 | static PyObject *_wrap_Joystick_HasPOV(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11168 | PyObject *resultobj; |
11169 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11170 | bool result; | |
11171 | PyObject * obj0 = 0 ; | |
11172 | char *kwnames[] = { | |
11173 | (char *) "self", NULL | |
11174 | }; | |
11175 | ||
11176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV",kwnames,&obj0)) goto fail; | |
11177 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
11178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11179 | { | |
11180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11181 | result = (bool)(arg1)->HasPOV(); | |
11182 | ||
11183 | wxPyEndAllowThreads(__tstate); | |
11184 | if (PyErr_Occurred()) SWIG_fail; | |
11185 | } | |
11186 | { | |
11187 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11188 | } | |
11189 | return resultobj; | |
11190 | fail: | |
11191 | return NULL; | |
11192 | } | |
11193 | ||
11194 | ||
c32bde28 | 11195 | static PyObject *_wrap_Joystick_HasPOV4Dir(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11196 | PyObject *resultobj; |
11197 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11198 | bool result; | |
11199 | PyObject * obj0 = 0 ; | |
11200 | char *kwnames[] = { | |
11201 | (char *) "self", NULL | |
11202 | }; | |
11203 | ||
11204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV4Dir",kwnames,&obj0)) goto fail; | |
11205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
11206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11207 | { | |
11208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11209 | result = (bool)(arg1)->HasPOV4Dir(); | |
11210 | ||
11211 | wxPyEndAllowThreads(__tstate); | |
11212 | if (PyErr_Occurred()) SWIG_fail; | |
11213 | } | |
11214 | { | |
11215 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11216 | } | |
11217 | return resultobj; | |
11218 | fail: | |
11219 | return NULL; | |
11220 | } | |
11221 | ||
11222 | ||
c32bde28 | 11223 | static PyObject *_wrap_Joystick_HasPOVCTS(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11224 | PyObject *resultobj; |
11225 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11226 | bool result; | |
11227 | PyObject * obj0 = 0 ; | |
11228 | char *kwnames[] = { | |
11229 | (char *) "self", NULL | |
11230 | }; | |
11231 | ||
11232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOVCTS",kwnames,&obj0)) goto fail; | |
11233 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
11234 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11235 | { | |
11236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11237 | result = (bool)(arg1)->HasPOVCTS(); | |
11238 | ||
11239 | wxPyEndAllowThreads(__tstate); | |
11240 | if (PyErr_Occurred()) SWIG_fail; | |
11241 | } | |
11242 | { | |
11243 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11244 | } | |
11245 | return resultobj; | |
11246 | fail: | |
11247 | return NULL; | |
11248 | } | |
11249 | ||
11250 | ||
c32bde28 | 11251 | static PyObject *_wrap_Joystick_SetCapture(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11252 | PyObject *resultobj; |
11253 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11254 | wxWindow *arg2 = (wxWindow *) 0 ; | |
11255 | int arg3 = (int) 0 ; | |
11256 | bool result; | |
11257 | PyObject * obj0 = 0 ; | |
11258 | PyObject * obj1 = 0 ; | |
11259 | PyObject * obj2 = 0 ; | |
11260 | char *kwnames[] = { | |
11261 | (char *) "self",(char *) "win",(char *) "pollingFreq", NULL | |
11262 | }; | |
11263 | ||
11264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Joystick_SetCapture",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11265 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
11266 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11267 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
11268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11269 | if (obj2) { | |
c32bde28 | 11270 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
11271 | if (PyErr_Occurred()) SWIG_fail; |
11272 | } | |
11273 | { | |
11274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11275 | result = (bool)(arg1)->SetCapture(arg2,arg3); | |
11276 | ||
11277 | wxPyEndAllowThreads(__tstate); | |
11278 | if (PyErr_Occurred()) SWIG_fail; | |
11279 | } | |
11280 | { | |
11281 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11282 | } | |
11283 | return resultobj; | |
11284 | fail: | |
11285 | return NULL; | |
11286 | } | |
11287 | ||
11288 | ||
c32bde28 | 11289 | static PyObject *_wrap_Joystick_ReleaseCapture(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11290 | PyObject *resultobj; |
11291 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
11292 | bool result; | |
11293 | PyObject * obj0 = 0 ; | |
11294 | char *kwnames[] = { | |
11295 | (char *) "self", NULL | |
11296 | }; | |
11297 | ||
11298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_ReleaseCapture",kwnames,&obj0)) goto fail; | |
11299 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick, | |
11300 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11301 | { | |
11302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11303 | result = (bool)(arg1)->ReleaseCapture(); | |
11304 | ||
11305 | wxPyEndAllowThreads(__tstate); | |
11306 | if (PyErr_Occurred()) SWIG_fail; | |
11307 | } | |
11308 | { | |
11309 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11310 | } | |
11311 | return resultobj; | |
11312 | fail: | |
11313 | return NULL; | |
11314 | } | |
11315 | ||
11316 | ||
c32bde28 | 11317 | static PyObject * Joystick_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
11318 | PyObject *obj; |
11319 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11320 | SWIG_TypeClientData(SWIGTYPE_p_wxJoystick, obj); | |
11321 | Py_INCREF(obj); | |
11322 | return Py_BuildValue((char *)""); | |
11323 | } | |
c32bde28 | 11324 | static PyObject *_wrap_JoystickEvent_m_pos_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11325 | PyObject *resultobj; |
11326 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11327 | wxPoint *arg2 = (wxPoint *) 0 ; | |
11328 | PyObject * obj0 = 0 ; | |
11329 | PyObject * obj1 = 0 ; | |
11330 | char *kwnames[] = { | |
11331 | (char *) "self",(char *) "m_pos", NULL | |
11332 | }; | |
11333 | ||
11334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail; | |
11335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11337 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint, | |
11338 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11339 | if (arg1) (arg1)->m_pos = *arg2; | |
11340 | ||
11341 | Py_INCREF(Py_None); resultobj = Py_None; | |
11342 | return resultobj; | |
11343 | fail: | |
11344 | return NULL; | |
11345 | } | |
11346 | ||
11347 | ||
c32bde28 | 11348 | static PyObject *_wrap_JoystickEvent_m_pos_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11349 | PyObject *resultobj; |
11350 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11351 | wxPoint *result; | |
11352 | PyObject * obj0 = 0 ; | |
11353 | char *kwnames[] = { | |
11354 | (char *) "self", NULL | |
11355 | }; | |
11356 | ||
11357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_pos_get",kwnames,&obj0)) goto fail; | |
11358 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11359 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11360 | result = (wxPoint *)& ((arg1)->m_pos); | |
11361 | ||
11362 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); | |
11363 | return resultobj; | |
11364 | fail: | |
11365 | return NULL; | |
11366 | } | |
11367 | ||
11368 | ||
c32bde28 | 11369 | static PyObject *_wrap_JoystickEvent_m_zPosition_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11370 | PyObject *resultobj; |
11371 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11372 | int arg2 ; | |
11373 | PyObject * obj0 = 0 ; | |
11374 | PyObject * obj1 = 0 ; | |
11375 | char *kwnames[] = { | |
11376 | (char *) "self",(char *) "m_zPosition", NULL | |
11377 | }; | |
11378 | ||
11379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_zPosition_set",kwnames,&obj0,&obj1)) goto fail; | |
11380 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11381 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11382 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11383 | if (PyErr_Occurred()) SWIG_fail; |
11384 | if (arg1) (arg1)->m_zPosition = arg2; | |
11385 | ||
11386 | Py_INCREF(Py_None); resultobj = Py_None; | |
11387 | return resultobj; | |
11388 | fail: | |
11389 | return NULL; | |
11390 | } | |
11391 | ||
11392 | ||
c32bde28 | 11393 | static PyObject *_wrap_JoystickEvent_m_zPosition_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11394 | PyObject *resultobj; |
11395 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11396 | int result; | |
11397 | PyObject * obj0 = 0 ; | |
11398 | char *kwnames[] = { | |
11399 | (char *) "self", NULL | |
11400 | }; | |
11401 | ||
11402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_zPosition_get",kwnames,&obj0)) goto fail; | |
11403 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11405 | result = (int) ((arg1)->m_zPosition); | |
11406 | ||
c32bde28 | 11407 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
11408 | return resultobj; |
11409 | fail: | |
11410 | return NULL; | |
11411 | } | |
11412 | ||
11413 | ||
c32bde28 | 11414 | static PyObject *_wrap_JoystickEvent_m_buttonChange_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11415 | PyObject *resultobj; |
11416 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11417 | int arg2 ; | |
11418 | PyObject * obj0 = 0 ; | |
11419 | PyObject * obj1 = 0 ; | |
11420 | char *kwnames[] = { | |
11421 | (char *) "self",(char *) "m_buttonChange", NULL | |
11422 | }; | |
11423 | ||
11424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonChange_set",kwnames,&obj0,&obj1)) goto fail; | |
11425 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11426 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11427 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11428 | if (PyErr_Occurred()) SWIG_fail; |
11429 | if (arg1) (arg1)->m_buttonChange = arg2; | |
11430 | ||
11431 | Py_INCREF(Py_None); resultobj = Py_None; | |
11432 | return resultobj; | |
11433 | fail: | |
11434 | return NULL; | |
11435 | } | |
11436 | ||
11437 | ||
c32bde28 | 11438 | static PyObject *_wrap_JoystickEvent_m_buttonChange_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11439 | PyObject *resultobj; |
11440 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11441 | int result; | |
11442 | PyObject * obj0 = 0 ; | |
11443 | char *kwnames[] = { | |
11444 | (char *) "self", NULL | |
11445 | }; | |
11446 | ||
11447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonChange_get",kwnames,&obj0)) goto fail; | |
11448 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11449 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11450 | result = (int) ((arg1)->m_buttonChange); | |
11451 | ||
c32bde28 | 11452 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
11453 | return resultobj; |
11454 | fail: | |
11455 | return NULL; | |
11456 | } | |
11457 | ||
11458 | ||
c32bde28 | 11459 | static PyObject *_wrap_JoystickEvent_m_buttonState_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11460 | PyObject *resultobj; |
11461 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11462 | int arg2 ; | |
11463 | PyObject * obj0 = 0 ; | |
11464 | PyObject * obj1 = 0 ; | |
11465 | char *kwnames[] = { | |
11466 | (char *) "self",(char *) "m_buttonState", NULL | |
11467 | }; | |
11468 | ||
11469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonState_set",kwnames,&obj0,&obj1)) goto fail; | |
11470 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11471 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11472 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11473 | if (PyErr_Occurred()) SWIG_fail; |
11474 | if (arg1) (arg1)->m_buttonState = arg2; | |
11475 | ||
11476 | Py_INCREF(Py_None); resultobj = Py_None; | |
11477 | return resultobj; | |
11478 | fail: | |
11479 | return NULL; | |
11480 | } | |
11481 | ||
11482 | ||
c32bde28 | 11483 | static PyObject *_wrap_JoystickEvent_m_buttonState_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11484 | PyObject *resultobj; |
11485 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11486 | int result; | |
11487 | PyObject * obj0 = 0 ; | |
11488 | char *kwnames[] = { | |
11489 | (char *) "self", NULL | |
11490 | }; | |
11491 | ||
11492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonState_get",kwnames,&obj0)) goto fail; | |
11493 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11494 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11495 | result = (int) ((arg1)->m_buttonState); | |
11496 | ||
c32bde28 | 11497 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
11498 | return resultobj; |
11499 | fail: | |
11500 | return NULL; | |
11501 | } | |
11502 | ||
11503 | ||
c32bde28 | 11504 | static PyObject *_wrap_JoystickEvent_m_joyStick_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11505 | PyObject *resultobj; |
11506 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11507 | int arg2 ; | |
11508 | PyObject * obj0 = 0 ; | |
11509 | PyObject * obj1 = 0 ; | |
11510 | char *kwnames[] = { | |
11511 | (char *) "self",(char *) "m_joyStick", NULL | |
11512 | }; | |
11513 | ||
11514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_joyStick_set",kwnames,&obj0,&obj1)) goto fail; | |
11515 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11516 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11517 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11518 | if (PyErr_Occurred()) SWIG_fail; |
11519 | if (arg1) (arg1)->m_joyStick = arg2; | |
11520 | ||
11521 | Py_INCREF(Py_None); resultobj = Py_None; | |
11522 | return resultobj; | |
11523 | fail: | |
11524 | return NULL; | |
11525 | } | |
11526 | ||
11527 | ||
c32bde28 | 11528 | static PyObject *_wrap_JoystickEvent_m_joyStick_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11529 | PyObject *resultobj; |
11530 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11531 | int result; | |
11532 | PyObject * obj0 = 0 ; | |
11533 | char *kwnames[] = { | |
11534 | (char *) "self", NULL | |
11535 | }; | |
11536 | ||
11537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_joyStick_get",kwnames,&obj0)) goto fail; | |
11538 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11540 | result = (int) ((arg1)->m_joyStick); | |
11541 | ||
c32bde28 | 11542 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
11543 | return resultobj; |
11544 | fail: | |
11545 | return NULL; | |
11546 | } | |
11547 | ||
11548 | ||
c32bde28 | 11549 | static PyObject *_wrap_new_JoystickEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11550 | PyObject *resultobj; |
11551 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
11552 | int arg2 = (int) 0 ; | |
11553 | int arg3 = (int) wxJOYSTICK1 ; | |
11554 | int arg4 = (int) 0 ; | |
11555 | wxJoystickEvent *result; | |
11556 | PyObject * obj0 = 0 ; | |
11557 | PyObject * obj1 = 0 ; | |
11558 | PyObject * obj2 = 0 ; | |
11559 | PyObject * obj3 = 0 ; | |
11560 | char *kwnames[] = { | |
11561 | (char *) "type",(char *) "state",(char *) "joystick",(char *) "change", NULL | |
11562 | }; | |
11563 | ||
11564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_JoystickEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
11565 | if (obj0) { | |
c32bde28 | 11566 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
11567 | if (PyErr_Occurred()) SWIG_fail; |
11568 | } | |
11569 | if (obj1) { | |
c32bde28 | 11570 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11571 | if (PyErr_Occurred()) SWIG_fail; |
11572 | } | |
11573 | if (obj2) { | |
c32bde28 | 11574 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
11575 | if (PyErr_Occurred()) SWIG_fail; |
11576 | } | |
11577 | if (obj3) { | |
c32bde28 | 11578 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
11579 | if (PyErr_Occurred()) SWIG_fail; |
11580 | } | |
11581 | { | |
11582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11583 | result = (wxJoystickEvent *)new wxJoystickEvent(arg1,arg2,arg3,arg4); | |
11584 | ||
11585 | wxPyEndAllowThreads(__tstate); | |
11586 | if (PyErr_Occurred()) SWIG_fail; | |
11587 | } | |
11588 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystickEvent, 1); | |
11589 | return resultobj; | |
11590 | fail: | |
11591 | return NULL; | |
11592 | } | |
11593 | ||
11594 | ||
c32bde28 | 11595 | static PyObject *_wrap_JoystickEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11596 | PyObject *resultobj; |
11597 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11598 | wxPoint result; | |
11599 | PyObject * obj0 = 0 ; | |
11600 | char *kwnames[] = { | |
11601 | (char *) "self", NULL | |
11602 | }; | |
11603 | ||
11604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetPosition",kwnames,&obj0)) goto fail; | |
11605 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11606 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11607 | { | |
11608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11609 | result = ((wxJoystickEvent const *)arg1)->GetPosition(); | |
11610 | ||
11611 | wxPyEndAllowThreads(__tstate); | |
11612 | if (PyErr_Occurred()) SWIG_fail; | |
11613 | } | |
11614 | { | |
11615 | wxPoint * resultptr; | |
11616 | resultptr = new wxPoint((wxPoint &) result); | |
11617 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
11618 | } | |
11619 | return resultobj; | |
11620 | fail: | |
11621 | return NULL; | |
11622 | } | |
11623 | ||
11624 | ||
c32bde28 | 11625 | static PyObject *_wrap_JoystickEvent_GetZPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11626 | PyObject *resultobj; |
11627 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11628 | int result; | |
11629 | PyObject * obj0 = 0 ; | |
11630 | char *kwnames[] = { | |
11631 | (char *) "self", NULL | |
11632 | }; | |
11633 | ||
11634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetZPosition",kwnames,&obj0)) goto fail; | |
11635 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11636 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11637 | { | |
11638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11639 | result = (int)((wxJoystickEvent const *)arg1)->GetZPosition(); | |
11640 | ||
11641 | wxPyEndAllowThreads(__tstate); | |
11642 | if (PyErr_Occurred()) SWIG_fail; | |
11643 | } | |
c32bde28 | 11644 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
11645 | return resultobj; |
11646 | fail: | |
11647 | return NULL; | |
11648 | } | |
11649 | ||
11650 | ||
c32bde28 | 11651 | static PyObject *_wrap_JoystickEvent_GetButtonState(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11652 | PyObject *resultobj; |
11653 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11654 | int result; | |
11655 | PyObject * obj0 = 0 ; | |
11656 | char *kwnames[] = { | |
11657 | (char *) "self", NULL | |
11658 | }; | |
11659 | ||
11660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonState",kwnames,&obj0)) goto fail; | |
11661 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11662 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11663 | { | |
11664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11665 | result = (int)((wxJoystickEvent const *)arg1)->GetButtonState(); | |
11666 | ||
11667 | wxPyEndAllowThreads(__tstate); | |
11668 | if (PyErr_Occurred()) SWIG_fail; | |
11669 | } | |
c32bde28 | 11670 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
11671 | return resultobj; |
11672 | fail: | |
11673 | return NULL; | |
11674 | } | |
11675 | ||
11676 | ||
c32bde28 | 11677 | static PyObject *_wrap_JoystickEvent_GetButtonChange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11678 | PyObject *resultobj; |
11679 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11680 | int result; | |
11681 | PyObject * obj0 = 0 ; | |
11682 | char *kwnames[] = { | |
11683 | (char *) "self", NULL | |
11684 | }; | |
11685 | ||
11686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonChange",kwnames,&obj0)) goto fail; | |
11687 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11688 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11689 | { | |
11690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11691 | result = (int)((wxJoystickEvent const *)arg1)->GetButtonChange(); | |
11692 | ||
11693 | wxPyEndAllowThreads(__tstate); | |
11694 | if (PyErr_Occurred()) SWIG_fail; | |
11695 | } | |
c32bde28 | 11696 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
11697 | return resultobj; |
11698 | fail: | |
11699 | return NULL; | |
11700 | } | |
11701 | ||
11702 | ||
c32bde28 | 11703 | static PyObject *_wrap_JoystickEvent_GetJoystick(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11704 | PyObject *resultobj; |
11705 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11706 | int result; | |
11707 | PyObject * obj0 = 0 ; | |
11708 | char *kwnames[] = { | |
11709 | (char *) "self", NULL | |
11710 | }; | |
11711 | ||
11712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetJoystick",kwnames,&obj0)) goto fail; | |
11713 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11714 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11715 | { | |
11716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11717 | result = (int)((wxJoystickEvent const *)arg1)->GetJoystick(); | |
11718 | ||
11719 | wxPyEndAllowThreads(__tstate); | |
11720 | if (PyErr_Occurred()) SWIG_fail; | |
11721 | } | |
c32bde28 | 11722 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
11723 | return resultobj; |
11724 | fail: | |
11725 | return NULL; | |
11726 | } | |
11727 | ||
11728 | ||
c32bde28 | 11729 | static PyObject *_wrap_JoystickEvent_SetJoystick(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11730 | PyObject *resultobj; |
11731 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11732 | int arg2 ; | |
11733 | PyObject * obj0 = 0 ; | |
11734 | PyObject * obj1 = 0 ; | |
11735 | char *kwnames[] = { | |
11736 | (char *) "self",(char *) "stick", NULL | |
11737 | }; | |
11738 | ||
11739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetJoystick",kwnames,&obj0,&obj1)) goto fail; | |
11740 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11741 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11742 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11743 | if (PyErr_Occurred()) SWIG_fail; |
11744 | { | |
11745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11746 | (arg1)->SetJoystick(arg2); | |
11747 | ||
11748 | wxPyEndAllowThreads(__tstate); | |
11749 | if (PyErr_Occurred()) SWIG_fail; | |
11750 | } | |
11751 | Py_INCREF(Py_None); resultobj = Py_None; | |
11752 | return resultobj; | |
11753 | fail: | |
11754 | return NULL; | |
11755 | } | |
11756 | ||
11757 | ||
c32bde28 | 11758 | static PyObject *_wrap_JoystickEvent_SetButtonState(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11759 | PyObject *resultobj; |
11760 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11761 | int arg2 ; | |
11762 | PyObject * obj0 = 0 ; | |
11763 | PyObject * obj1 = 0 ; | |
11764 | char *kwnames[] = { | |
11765 | (char *) "self",(char *) "state", NULL | |
11766 | }; | |
11767 | ||
11768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonState",kwnames,&obj0,&obj1)) goto fail; | |
11769 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11770 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11771 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11772 | if (PyErr_Occurred()) SWIG_fail; |
11773 | { | |
11774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11775 | (arg1)->SetButtonState(arg2); | |
11776 | ||
11777 | wxPyEndAllowThreads(__tstate); | |
11778 | if (PyErr_Occurred()) SWIG_fail; | |
11779 | } | |
11780 | Py_INCREF(Py_None); resultobj = Py_None; | |
11781 | return resultobj; | |
11782 | fail: | |
11783 | return NULL; | |
11784 | } | |
11785 | ||
11786 | ||
c32bde28 | 11787 | static PyObject *_wrap_JoystickEvent_SetButtonChange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11788 | PyObject *resultobj; |
11789 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11790 | int arg2 ; | |
11791 | PyObject * obj0 = 0 ; | |
11792 | PyObject * obj1 = 0 ; | |
11793 | char *kwnames[] = { | |
11794 | (char *) "self",(char *) "change", NULL | |
11795 | }; | |
11796 | ||
11797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonChange",kwnames,&obj0,&obj1)) goto fail; | |
11798 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11799 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11800 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11801 | if (PyErr_Occurred()) SWIG_fail; |
11802 | { | |
11803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11804 | (arg1)->SetButtonChange(arg2); | |
11805 | ||
11806 | wxPyEndAllowThreads(__tstate); | |
11807 | if (PyErr_Occurred()) SWIG_fail; | |
11808 | } | |
11809 | Py_INCREF(Py_None); resultobj = Py_None; | |
11810 | return resultobj; | |
11811 | fail: | |
11812 | return NULL; | |
11813 | } | |
11814 | ||
11815 | ||
c32bde28 | 11816 | static PyObject *_wrap_JoystickEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11817 | PyObject *resultobj; |
11818 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11819 | wxPoint *arg2 = 0 ; | |
11820 | wxPoint temp2 ; | |
11821 | PyObject * obj0 = 0 ; | |
11822 | PyObject * obj1 = 0 ; | |
11823 | char *kwnames[] = { | |
11824 | (char *) "self",(char *) "pos", NULL | |
11825 | }; | |
11826 | ||
11827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
11828 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11830 | { | |
11831 | arg2 = &temp2; | |
11832 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11833 | } | |
11834 | { | |
11835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11836 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
11837 | ||
11838 | wxPyEndAllowThreads(__tstate); | |
11839 | if (PyErr_Occurred()) SWIG_fail; | |
11840 | } | |
11841 | Py_INCREF(Py_None); resultobj = Py_None; | |
11842 | return resultobj; | |
11843 | fail: | |
11844 | return NULL; | |
11845 | } | |
11846 | ||
11847 | ||
c32bde28 | 11848 | static PyObject *_wrap_JoystickEvent_SetZPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11849 | PyObject *resultobj; |
11850 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11851 | int arg2 ; | |
11852 | PyObject * obj0 = 0 ; | |
11853 | PyObject * obj1 = 0 ; | |
11854 | char *kwnames[] = { | |
11855 | (char *) "self",(char *) "zPos", NULL | |
11856 | }; | |
11857 | ||
11858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetZPosition",kwnames,&obj0,&obj1)) goto fail; | |
11859 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11860 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 11861 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11862 | if (PyErr_Occurred()) SWIG_fail; |
11863 | { | |
11864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11865 | (arg1)->SetZPosition(arg2); | |
11866 | ||
11867 | wxPyEndAllowThreads(__tstate); | |
11868 | if (PyErr_Occurred()) SWIG_fail; | |
11869 | } | |
11870 | Py_INCREF(Py_None); resultobj = Py_None; | |
11871 | return resultobj; | |
11872 | fail: | |
11873 | return NULL; | |
11874 | } | |
11875 | ||
11876 | ||
c32bde28 | 11877 | static PyObject *_wrap_JoystickEvent_IsButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11878 | PyObject *resultobj; |
11879 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11880 | bool result; | |
11881 | PyObject * obj0 = 0 ; | |
11882 | char *kwnames[] = { | |
11883 | (char *) "self", NULL | |
11884 | }; | |
11885 | ||
11886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsButton",kwnames,&obj0)) goto fail; | |
11887 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11888 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11889 | { | |
11890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11891 | result = (bool)((wxJoystickEvent const *)arg1)->IsButton(); | |
11892 | ||
11893 | wxPyEndAllowThreads(__tstate); | |
11894 | if (PyErr_Occurred()) SWIG_fail; | |
11895 | } | |
11896 | { | |
11897 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11898 | } | |
11899 | return resultobj; | |
11900 | fail: | |
11901 | return NULL; | |
11902 | } | |
11903 | ||
11904 | ||
c32bde28 | 11905 | static PyObject *_wrap_JoystickEvent_IsMove(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11906 | PyObject *resultobj; |
11907 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11908 | bool result; | |
11909 | PyObject * obj0 = 0 ; | |
11910 | char *kwnames[] = { | |
11911 | (char *) "self", NULL | |
11912 | }; | |
11913 | ||
11914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsMove",kwnames,&obj0)) goto fail; | |
11915 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11916 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11917 | { | |
11918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11919 | result = (bool)((wxJoystickEvent const *)arg1)->IsMove(); | |
11920 | ||
11921 | wxPyEndAllowThreads(__tstate); | |
11922 | if (PyErr_Occurred()) SWIG_fail; | |
11923 | } | |
11924 | { | |
11925 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11926 | } | |
11927 | return resultobj; | |
11928 | fail: | |
11929 | return NULL; | |
11930 | } | |
11931 | ||
11932 | ||
c32bde28 | 11933 | static PyObject *_wrap_JoystickEvent_IsZMove(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11934 | PyObject *resultobj; |
11935 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11936 | bool result; | |
11937 | PyObject * obj0 = 0 ; | |
11938 | char *kwnames[] = { | |
11939 | (char *) "self", NULL | |
11940 | }; | |
11941 | ||
11942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsZMove",kwnames,&obj0)) goto fail; | |
11943 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11944 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11945 | { | |
11946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11947 | result = (bool)((wxJoystickEvent const *)arg1)->IsZMove(); | |
11948 | ||
11949 | wxPyEndAllowThreads(__tstate); | |
11950 | if (PyErr_Occurred()) SWIG_fail; | |
11951 | } | |
11952 | { | |
11953 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11954 | } | |
11955 | return resultobj; | |
11956 | fail: | |
11957 | return NULL; | |
11958 | } | |
11959 | ||
11960 | ||
c32bde28 | 11961 | static PyObject *_wrap_JoystickEvent_ButtonDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11962 | PyObject *resultobj; |
11963 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11964 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
11965 | bool result; | |
11966 | PyObject * obj0 = 0 ; | |
11967 | PyObject * obj1 = 0 ; | |
11968 | char *kwnames[] = { | |
11969 | (char *) "self",(char *) "but", NULL | |
11970 | }; | |
11971 | ||
11972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail; | |
11973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
11974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11975 | if (obj1) { | |
c32bde28 | 11976 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
11977 | if (PyErr_Occurred()) SWIG_fail; |
11978 | } | |
11979 | { | |
11980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11981 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonDown(arg2); | |
11982 | ||
11983 | wxPyEndAllowThreads(__tstate); | |
11984 | if (PyErr_Occurred()) SWIG_fail; | |
11985 | } | |
11986 | { | |
11987 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11988 | } | |
11989 | return resultobj; | |
11990 | fail: | |
11991 | return NULL; | |
11992 | } | |
11993 | ||
11994 | ||
c32bde28 | 11995 | static PyObject *_wrap_JoystickEvent_ButtonUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11996 | PyObject *resultobj; |
11997 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
11998 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
11999 | bool result; | |
12000 | PyObject * obj0 = 0 ; | |
12001 | PyObject * obj1 = 0 ; | |
12002 | char *kwnames[] = { | |
12003 | (char *) "self",(char *) "but", NULL | |
12004 | }; | |
12005 | ||
12006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail; | |
12007 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
12008 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12009 | if (obj1) { | |
c32bde28 | 12010 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
12011 | if (PyErr_Occurred()) SWIG_fail; |
12012 | } | |
12013 | { | |
12014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12015 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonUp(arg2); | |
12016 | ||
12017 | wxPyEndAllowThreads(__tstate); | |
12018 | if (PyErr_Occurred()) SWIG_fail; | |
12019 | } | |
12020 | { | |
12021 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12022 | } | |
12023 | return resultobj; | |
12024 | fail: | |
12025 | return NULL; | |
12026 | } | |
12027 | ||
12028 | ||
c32bde28 | 12029 | static PyObject *_wrap_JoystickEvent_ButtonIsDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12030 | PyObject *resultobj; |
12031 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
12032 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
12033 | bool result; | |
12034 | PyObject * obj0 = 0 ; | |
12035 | PyObject * obj1 = 0 ; | |
12036 | char *kwnames[] = { | |
12037 | (char *) "self",(char *) "but", NULL | |
12038 | }; | |
12039 | ||
12040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail; | |
12041 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent, | |
12042 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12043 | if (obj1) { | |
c32bde28 | 12044 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
12045 | if (PyErr_Occurred()) SWIG_fail; |
12046 | } | |
12047 | { | |
12048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12049 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonIsDown(arg2); | |
12050 | ||
12051 | wxPyEndAllowThreads(__tstate); | |
12052 | if (PyErr_Occurred()) SWIG_fail; | |
12053 | } | |
12054 | { | |
12055 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12056 | } | |
12057 | return resultobj; | |
12058 | fail: | |
12059 | return NULL; | |
12060 | } | |
12061 | ||
12062 | ||
c32bde28 | 12063 | static PyObject * JoystickEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
12064 | PyObject *obj; |
12065 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12066 | SWIG_TypeClientData(SWIGTYPE_p_wxJoystickEvent, obj); | |
12067 | Py_INCREF(obj); | |
12068 | return Py_BuildValue((char *)""); | |
12069 | } | |
c32bde28 | 12070 | static PyObject *_wrap_new_Sound(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 12071 | PyObject *resultobj; |
b1f29bf7 RD |
12072 | wxString const &arg1_defvalue = wxPyEmptyString ; |
12073 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
d55e5bfc | 12074 | wxSound *result; |
ae8162c8 | 12075 | bool temp1 = false ; |
d55e5bfc | 12076 | PyObject * obj0 = 0 ; |
b1f29bf7 RD |
12077 | char *kwnames[] = { |
12078 | (char *) "fileName", NULL | |
12079 | }; | |
d55e5bfc | 12080 | |
b1f29bf7 RD |
12081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Sound",kwnames,&obj0)) goto fail; |
12082 | if (obj0) { | |
12083 | { | |
12084 | arg1 = wxString_in_helper(obj0); | |
12085 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 12086 | temp1 = true; |
b1f29bf7 | 12087 | } |
d55e5bfc RD |
12088 | } |
12089 | { | |
0439c23b | 12090 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 12091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1f29bf7 | 12092 | result = (wxSound *)new_wxSound((wxString const &)*arg1); |
d55e5bfc RD |
12093 | |
12094 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12095 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
12096 | } |
12097 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1); | |
12098 | { | |
12099 | if (temp1) | |
12100 | delete arg1; | |
12101 | } | |
12102 | return resultobj; | |
12103 | fail: | |
12104 | { | |
12105 | if (temp1) | |
12106 | delete arg1; | |
12107 | } | |
12108 | return NULL; | |
12109 | } | |
12110 | ||
12111 | ||
c32bde28 | 12112 | static PyObject *_wrap_new_SoundFromData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 12113 | PyObject *resultobj; |
b1f29bf7 | 12114 | PyObject *arg1 = (PyObject *) 0 ; |
d55e5bfc RD |
12115 | wxSound *result; |
12116 | PyObject * obj0 = 0 ; | |
b1f29bf7 RD |
12117 | char *kwnames[] = { |
12118 | (char *) "data", NULL | |
12119 | }; | |
d55e5bfc | 12120 | |
b1f29bf7 RD |
12121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_SoundFromData",kwnames,&obj0)) goto fail; |
12122 | arg1 = obj0; | |
d55e5bfc | 12123 | { |
0439c23b | 12124 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 12125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1f29bf7 | 12126 | result = (wxSound *)new_wxSound(arg1); |
d55e5bfc RD |
12127 | |
12128 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12129 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
12130 | } |
12131 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1); | |
12132 | return resultobj; | |
12133 | fail: | |
12134 | return NULL; | |
12135 | } | |
12136 | ||
12137 | ||
c32bde28 | 12138 | static PyObject *_wrap_delete_Sound(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12139 | PyObject *resultobj; |
12140 | wxSound *arg1 = (wxSound *) 0 ; | |
12141 | PyObject * obj0 = 0 ; | |
12142 | char *kwnames[] = { | |
12143 | (char *) "self", NULL | |
12144 | }; | |
12145 | ||
12146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Sound",kwnames,&obj0)) goto fail; | |
12147 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, | |
12148 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12149 | { | |
12150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12151 | delete arg1; | |
12152 | ||
12153 | wxPyEndAllowThreads(__tstate); | |
12154 | if (PyErr_Occurred()) SWIG_fail; | |
12155 | } | |
12156 | Py_INCREF(Py_None); resultobj = Py_None; | |
12157 | return resultobj; | |
12158 | fail: | |
12159 | return NULL; | |
12160 | } | |
12161 | ||
12162 | ||
c32bde28 | 12163 | static PyObject *_wrap_Sound_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12164 | PyObject *resultobj; |
12165 | wxSound *arg1 = (wxSound *) 0 ; | |
12166 | wxString *arg2 = 0 ; | |
d55e5bfc | 12167 | bool result; |
ae8162c8 | 12168 | bool temp2 = false ; |
d55e5bfc RD |
12169 | PyObject * obj0 = 0 ; |
12170 | PyObject * obj1 = 0 ; | |
b1f29bf7 RD |
12171 | char *kwnames[] = { |
12172 | (char *) "self",(char *) "fileName", NULL | |
12173 | }; | |
d55e5bfc | 12174 | |
b1f29bf7 | 12175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_Create",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
12176 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, |
12177 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12178 | { | |
12179 | arg2 = wxString_in_helper(obj1); | |
12180 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 12181 | temp2 = true; |
d55e5bfc | 12182 | } |
d55e5bfc RD |
12183 | { |
12184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b1f29bf7 | 12185 | result = (bool)(arg1)->Create((wxString const &)*arg2); |
d55e5bfc RD |
12186 | |
12187 | wxPyEndAllowThreads(__tstate); | |
12188 | if (PyErr_Occurred()) SWIG_fail; | |
12189 | } | |
12190 | { | |
12191 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12192 | } | |
12193 | { | |
12194 | if (temp2) | |
12195 | delete arg2; | |
12196 | } | |
12197 | return resultobj; | |
12198 | fail: | |
12199 | { | |
12200 | if (temp2) | |
12201 | delete arg2; | |
12202 | } | |
12203 | return NULL; | |
12204 | } | |
12205 | ||
12206 | ||
c32bde28 | 12207 | static PyObject *_wrap_Sound_CreateFromData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12208 | PyObject *resultobj; |
12209 | wxSound *arg1 = (wxSound *) 0 ; | |
b1f29bf7 | 12210 | PyObject *arg2 = (PyObject *) 0 ; |
d55e5bfc RD |
12211 | bool result; |
12212 | PyObject * obj0 = 0 ; | |
12213 | PyObject * obj1 = 0 ; | |
b1f29bf7 RD |
12214 | char *kwnames[] = { |
12215 | (char *) "self",(char *) "data", NULL | |
12216 | }; | |
d55e5bfc | 12217 | |
b1f29bf7 | 12218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_CreateFromData",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
12219 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, |
12220 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
b1f29bf7 | 12221 | arg2 = obj1; |
d55e5bfc RD |
12222 | { |
12223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b1f29bf7 | 12224 | result = (bool)wxSound_CreateFromData(arg1,arg2); |
d55e5bfc RD |
12225 | |
12226 | wxPyEndAllowThreads(__tstate); | |
12227 | if (PyErr_Occurred()) SWIG_fail; | |
12228 | } | |
12229 | { | |
12230 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12231 | } | |
12232 | return resultobj; | |
12233 | fail: | |
12234 | return NULL; | |
12235 | } | |
12236 | ||
12237 | ||
c32bde28 | 12238 | static PyObject *_wrap_Sound_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12239 | PyObject *resultobj; |
12240 | wxSound *arg1 = (wxSound *) 0 ; | |
12241 | bool result; | |
12242 | PyObject * obj0 = 0 ; | |
12243 | char *kwnames[] = { | |
12244 | (char *) "self", NULL | |
12245 | }; | |
12246 | ||
12247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sound_IsOk",kwnames,&obj0)) goto fail; | |
12248 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, | |
12249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12250 | { | |
12251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12252 | result = (bool)(arg1)->IsOk(); | |
12253 | ||
12254 | wxPyEndAllowThreads(__tstate); | |
12255 | if (PyErr_Occurred()) SWIG_fail; | |
12256 | } | |
12257 | { | |
12258 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12259 | } | |
12260 | return resultobj; | |
12261 | fail: | |
12262 | return NULL; | |
12263 | } | |
12264 | ||
12265 | ||
c32bde28 | 12266 | static PyObject *_wrap_Sound_Play(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12267 | PyObject *resultobj; |
12268 | wxSound *arg1 = (wxSound *) 0 ; | |
12269 | unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ; | |
12270 | bool result; | |
12271 | PyObject * obj0 = 0 ; | |
12272 | PyObject * obj1 = 0 ; | |
b1f29bf7 RD |
12273 | char *kwnames[] = { |
12274 | (char *) "self",(char *) "flags", NULL | |
12275 | }; | |
d55e5bfc | 12276 | |
b1f29bf7 | 12277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_Play",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
12278 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound, |
12279 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12280 | if (obj1) { | |
c32bde28 | 12281 | arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1); |
d55e5bfc RD |
12282 | if (PyErr_Occurred()) SWIG_fail; |
12283 | } | |
12284 | { | |
0439c23b | 12285 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
12286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12287 | result = (bool)((wxSound const *)arg1)->Play(arg2); | |
12288 | ||
12289 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12290 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
12291 | } |
12292 | { | |
12293 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12294 | } | |
12295 | return resultobj; | |
12296 | fail: | |
12297 | return NULL; | |
12298 | } | |
12299 | ||
12300 | ||
c32bde28 | 12301 | static PyObject *_wrap_Sound_PlaySound(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12302 | PyObject *resultobj; |
12303 | wxString *arg1 = 0 ; | |
12304 | unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ; | |
12305 | bool result; | |
ae8162c8 | 12306 | bool temp1 = false ; |
d55e5bfc RD |
12307 | PyObject * obj0 = 0 ; |
12308 | PyObject * obj1 = 0 ; | |
b1f29bf7 RD |
12309 | char *kwnames[] = { |
12310 | (char *) "filename",(char *) "flags", NULL | |
12311 | }; | |
d55e5bfc | 12312 | |
b1f29bf7 | 12313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_PlaySound",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
12314 | { |
12315 | arg1 = wxString_in_helper(obj0); | |
12316 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 12317 | temp1 = true; |
d55e5bfc RD |
12318 | } |
12319 | if (obj1) { | |
c32bde28 | 12320 | arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1); |
d55e5bfc RD |
12321 | if (PyErr_Occurred()) SWIG_fail; |
12322 | } | |
12323 | { | |
0439c23b | 12324 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
12325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12326 | result = (bool)wxSound::Play((wxString const &)*arg1,arg2); | |
12327 | ||
12328 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12329 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
12330 | } |
12331 | { | |
12332 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12333 | } | |
12334 | { | |
12335 | if (temp1) | |
12336 | delete arg1; | |
12337 | } | |
12338 | return resultobj; | |
12339 | fail: | |
12340 | { | |
12341 | if (temp1) | |
12342 | delete arg1; | |
12343 | } | |
12344 | return NULL; | |
12345 | } | |
12346 | ||
12347 | ||
c32bde28 | 12348 | static PyObject *_wrap_Sound_Stop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12349 | PyObject *resultobj; |
12350 | char *kwnames[] = { | |
12351 | NULL | |
12352 | }; | |
12353 | ||
12354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Sound_Stop",kwnames)) goto fail; | |
12355 | { | |
0439c23b | 12356 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
12357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12358 | wxSound::Stop(); | |
12359 | ||
12360 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12361 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
12362 | } |
12363 | Py_INCREF(Py_None); resultobj = Py_None; | |
12364 | return resultobj; | |
12365 | fail: | |
12366 | return NULL; | |
12367 | } | |
12368 | ||
12369 | ||
c32bde28 | 12370 | static PyObject * Sound_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
12371 | PyObject *obj; |
12372 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12373 | SWIG_TypeClientData(SWIGTYPE_p_wxSound, obj); | |
12374 | Py_INCREF(obj); | |
12375 | return Py_BuildValue((char *)""); | |
12376 | } | |
c32bde28 | 12377 | static PyObject *_wrap_new_FileTypeInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12378 | PyObject *resultobj; |
12379 | wxString *arg1 = 0 ; | |
12380 | wxString *arg2 = 0 ; | |
12381 | wxString *arg3 = 0 ; | |
12382 | wxString *arg4 = 0 ; | |
12383 | wxFileTypeInfo *result; | |
ae8162c8 RD |
12384 | bool temp1 = false ; |
12385 | bool temp2 = false ; | |
12386 | bool temp3 = false ; | |
12387 | bool temp4 = false ; | |
d55e5bfc RD |
12388 | PyObject * obj0 = 0 ; |
12389 | PyObject * obj1 = 0 ; | |
12390 | PyObject * obj2 = 0 ; | |
12391 | PyObject * obj3 = 0 ; | |
12392 | char *kwnames[] = { | |
12393 | (char *) "mimeType",(char *) "openCmd",(char *) "printCmd",(char *) "desc", NULL | |
12394 | }; | |
12395 | ||
12396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileTypeInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
12397 | { | |
12398 | arg1 = wxString_in_helper(obj0); | |
12399 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 12400 | temp1 = true; |
d55e5bfc RD |
12401 | } |
12402 | { | |
12403 | arg2 = wxString_in_helper(obj1); | |
12404 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 12405 | temp2 = true; |
d55e5bfc RD |
12406 | } |
12407 | { | |
12408 | arg3 = wxString_in_helper(obj2); | |
12409 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 12410 | temp3 = true; |
d55e5bfc RD |
12411 | } |
12412 | { | |
12413 | arg4 = wxString_in_helper(obj3); | |
12414 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 12415 | temp4 = true; |
d55e5bfc RD |
12416 | } |
12417 | { | |
12418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12419 | result = (wxFileTypeInfo *)new wxFileTypeInfo((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
12420 | ||
12421 | wxPyEndAllowThreads(__tstate); | |
12422 | if (PyErr_Occurred()) SWIG_fail; | |
12423 | } | |
12424 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); | |
12425 | { | |
12426 | if (temp1) | |
12427 | delete arg1; | |
12428 | } | |
12429 | { | |
12430 | if (temp2) | |
12431 | delete arg2; | |
12432 | } | |
12433 | { | |
12434 | if (temp3) | |
12435 | delete arg3; | |
12436 | } | |
12437 | { | |
12438 | if (temp4) | |
12439 | delete arg4; | |
12440 | } | |
12441 | return resultobj; | |
12442 | fail: | |
12443 | { | |
12444 | if (temp1) | |
12445 | delete arg1; | |
12446 | } | |
12447 | { | |
12448 | if (temp2) | |
12449 | delete arg2; | |
12450 | } | |
12451 | { | |
12452 | if (temp3) | |
12453 | delete arg3; | |
12454 | } | |
12455 | { | |
12456 | if (temp4) | |
12457 | delete arg4; | |
12458 | } | |
12459 | return NULL; | |
12460 | } | |
12461 | ||
12462 | ||
c32bde28 | 12463 | static PyObject *_wrap_new_FileTypeInfoSequence(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12464 | PyObject *resultobj; |
12465 | wxArrayString *arg1 = 0 ; | |
12466 | wxFileTypeInfo *result; | |
ae8162c8 | 12467 | bool temp1 = false ; |
d55e5bfc RD |
12468 | PyObject * obj0 = 0 ; |
12469 | char *kwnames[] = { | |
12470 | (char *) "sArray", NULL | |
12471 | }; | |
12472 | ||
12473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileTypeInfoSequence",kwnames,&obj0)) goto fail; | |
12474 | { | |
12475 | if (! PySequence_Check(obj0)) { | |
12476 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
12477 | SWIG_fail; | |
12478 | } | |
12479 | arg1 = new wxArrayString; | |
ae8162c8 | 12480 | temp1 = true; |
d55e5bfc RD |
12481 | int i, len=PySequence_Length(obj0); |
12482 | for (i=0; i<len; i++) { | |
12483 | PyObject* item = PySequence_GetItem(obj0, i); | |
12484 | #if wxUSE_UNICODE | |
12485 | PyObject* str = PyObject_Unicode(item); | |
12486 | #else | |
12487 | PyObject* str = PyObject_Str(item); | |
12488 | #endif | |
12489 | if (PyErr_Occurred()) SWIG_fail; | |
12490 | arg1->Add(Py2wxString(str)); | |
12491 | Py_DECREF(item); | |
12492 | Py_DECREF(str); | |
12493 | } | |
12494 | } | |
12495 | { | |
12496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12497 | result = (wxFileTypeInfo *)new wxFileTypeInfo((wxArrayString const &)*arg1); | |
12498 | ||
12499 | wxPyEndAllowThreads(__tstate); | |
12500 | if (PyErr_Occurred()) SWIG_fail; | |
12501 | } | |
12502 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); | |
12503 | { | |
12504 | if (temp1) delete arg1; | |
12505 | } | |
12506 | return resultobj; | |
12507 | fail: | |
12508 | { | |
12509 | if (temp1) delete arg1; | |
12510 | } | |
12511 | return NULL; | |
12512 | } | |
12513 | ||
12514 | ||
c32bde28 | 12515 | static PyObject *_wrap_new_NullFileTypeInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12516 | PyObject *resultobj; |
12517 | wxFileTypeInfo *result; | |
12518 | char *kwnames[] = { | |
12519 | NULL | |
12520 | }; | |
12521 | ||
12522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NullFileTypeInfo",kwnames)) goto fail; | |
12523 | { | |
12524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12525 | result = (wxFileTypeInfo *)new wxFileTypeInfo(); | |
12526 | ||
12527 | wxPyEndAllowThreads(__tstate); | |
12528 | if (PyErr_Occurred()) SWIG_fail; | |
12529 | } | |
12530 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1); | |
12531 | return resultobj; | |
12532 | fail: | |
12533 | return NULL; | |
12534 | } | |
12535 | ||
12536 | ||
c32bde28 | 12537 | static PyObject *_wrap_FileTypeInfo_IsValid(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12538 | PyObject *resultobj; |
12539 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12540 | bool result; | |
12541 | PyObject * obj0 = 0 ; | |
12542 | char *kwnames[] = { | |
12543 | (char *) "self", NULL | |
12544 | }; | |
12545 | ||
12546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_IsValid",kwnames,&obj0)) goto fail; | |
12547 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12548 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12549 | { | |
12550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12551 | result = (bool)((wxFileTypeInfo const *)arg1)->IsValid(); | |
12552 | ||
12553 | wxPyEndAllowThreads(__tstate); | |
12554 | if (PyErr_Occurred()) SWIG_fail; | |
12555 | } | |
12556 | { | |
12557 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12558 | } | |
12559 | return resultobj; | |
12560 | fail: | |
12561 | return NULL; | |
12562 | } | |
12563 | ||
12564 | ||
c32bde28 | 12565 | static PyObject *_wrap_FileTypeInfo_SetIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12566 | PyObject *resultobj; |
12567 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12568 | wxString *arg2 = 0 ; | |
12569 | int arg3 = (int) 0 ; | |
ae8162c8 | 12570 | bool temp2 = false ; |
d55e5bfc RD |
12571 | PyObject * obj0 = 0 ; |
12572 | PyObject * obj1 = 0 ; | |
12573 | PyObject * obj2 = 0 ; | |
12574 | char *kwnames[] = { | |
12575 | (char *) "self",(char *) "iconFile",(char *) "iconIndex", NULL | |
12576 | }; | |
12577 | ||
12578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileTypeInfo_SetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12579 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12580 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12581 | { | |
12582 | arg2 = wxString_in_helper(obj1); | |
12583 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 12584 | temp2 = true; |
d55e5bfc RD |
12585 | } |
12586 | if (obj2) { | |
c32bde28 | 12587 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
12588 | if (PyErr_Occurred()) SWIG_fail; |
12589 | } | |
12590 | { | |
12591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12592 | (arg1)->SetIcon((wxString const &)*arg2,arg3); | |
12593 | ||
12594 | wxPyEndAllowThreads(__tstate); | |
12595 | if (PyErr_Occurred()) SWIG_fail; | |
12596 | } | |
12597 | Py_INCREF(Py_None); resultobj = Py_None; | |
12598 | { | |
12599 | if (temp2) | |
12600 | delete arg2; | |
12601 | } | |
12602 | return resultobj; | |
12603 | fail: | |
12604 | { | |
12605 | if (temp2) | |
12606 | delete arg2; | |
12607 | } | |
12608 | return NULL; | |
12609 | } | |
12610 | ||
12611 | ||
c32bde28 | 12612 | static PyObject *_wrap_FileTypeInfo_SetShortDesc(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12613 | PyObject *resultobj; |
12614 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12615 | wxString *arg2 = 0 ; | |
ae8162c8 | 12616 | bool temp2 = false ; |
d55e5bfc RD |
12617 | PyObject * obj0 = 0 ; |
12618 | PyObject * obj1 = 0 ; | |
12619 | char *kwnames[] = { | |
12620 | (char *) "self",(char *) "shortDesc", NULL | |
12621 | }; | |
12622 | ||
12623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileTypeInfo_SetShortDesc",kwnames,&obj0,&obj1)) goto fail; | |
12624 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12625 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12626 | { | |
12627 | arg2 = wxString_in_helper(obj1); | |
12628 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 12629 | temp2 = true; |
d55e5bfc RD |
12630 | } |
12631 | { | |
12632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12633 | (arg1)->SetShortDesc((wxString const &)*arg2); | |
12634 | ||
12635 | wxPyEndAllowThreads(__tstate); | |
12636 | if (PyErr_Occurred()) SWIG_fail; | |
12637 | } | |
12638 | Py_INCREF(Py_None); resultobj = Py_None; | |
12639 | { | |
12640 | if (temp2) | |
12641 | delete arg2; | |
12642 | } | |
12643 | return resultobj; | |
12644 | fail: | |
12645 | { | |
12646 | if (temp2) | |
12647 | delete arg2; | |
12648 | } | |
12649 | return NULL; | |
12650 | } | |
12651 | ||
12652 | ||
c32bde28 | 12653 | static PyObject *_wrap_FileTypeInfo_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12654 | PyObject *resultobj; |
12655 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12656 | wxString *result; | |
12657 | PyObject * obj0 = 0 ; | |
12658 | char *kwnames[] = { | |
12659 | (char *) "self", NULL | |
12660 | }; | |
12661 | ||
12662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetMimeType",kwnames,&obj0)) goto fail; | |
12663 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12665 | { | |
12666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12667 | { | |
12668 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetMimeType(); | |
12669 | result = (wxString *) &_result_ref; | |
12670 | } | |
12671 | ||
12672 | wxPyEndAllowThreads(__tstate); | |
12673 | if (PyErr_Occurred()) SWIG_fail; | |
12674 | } | |
12675 | { | |
12676 | #if wxUSE_UNICODE | |
12677 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12678 | #else | |
12679 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12680 | #endif | |
12681 | } | |
12682 | return resultobj; | |
12683 | fail: | |
12684 | return NULL; | |
12685 | } | |
12686 | ||
12687 | ||
c32bde28 | 12688 | static PyObject *_wrap_FileTypeInfo_GetOpenCommand(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12689 | PyObject *resultobj; |
12690 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12691 | wxString *result; | |
12692 | PyObject * obj0 = 0 ; | |
12693 | char *kwnames[] = { | |
12694 | (char *) "self", NULL | |
12695 | }; | |
12696 | ||
12697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetOpenCommand",kwnames,&obj0)) goto fail; | |
12698 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12699 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12700 | { | |
12701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12702 | { | |
12703 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetOpenCommand(); | |
12704 | result = (wxString *) &_result_ref; | |
12705 | } | |
12706 | ||
12707 | wxPyEndAllowThreads(__tstate); | |
12708 | if (PyErr_Occurred()) SWIG_fail; | |
12709 | } | |
12710 | { | |
12711 | #if wxUSE_UNICODE | |
12712 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12713 | #else | |
12714 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12715 | #endif | |
12716 | } | |
12717 | return resultobj; | |
12718 | fail: | |
12719 | return NULL; | |
12720 | } | |
12721 | ||
12722 | ||
c32bde28 | 12723 | static PyObject *_wrap_FileTypeInfo_GetPrintCommand(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_GetPrintCommand",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)->GetPrintCommand(); | |
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_GetShortDesc(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12759 | PyObject *resultobj; |
12760 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12761 | wxString *result; | |
12762 | PyObject * obj0 = 0 ; | |
12763 | char *kwnames[] = { | |
12764 | (char *) "self", NULL | |
12765 | }; | |
12766 | ||
12767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetShortDesc",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 | { | |
12773 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetShortDesc(); | |
12774 | result = (wxString *) &_result_ref; | |
12775 | } | |
12776 | ||
12777 | wxPyEndAllowThreads(__tstate); | |
12778 | if (PyErr_Occurred()) SWIG_fail; | |
12779 | } | |
12780 | { | |
12781 | #if wxUSE_UNICODE | |
12782 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12783 | #else | |
12784 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12785 | #endif | |
12786 | } | |
12787 | return resultobj; | |
12788 | fail: | |
12789 | return NULL; | |
12790 | } | |
12791 | ||
12792 | ||
c32bde28 | 12793 | static PyObject *_wrap_FileTypeInfo_GetDescription(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12794 | PyObject *resultobj; |
12795 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12796 | wxString *result; | |
12797 | PyObject * obj0 = 0 ; | |
12798 | char *kwnames[] = { | |
12799 | (char *) "self", NULL | |
12800 | }; | |
12801 | ||
12802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetDescription",kwnames,&obj0)) goto fail; | |
12803 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12804 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12805 | { | |
12806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12807 | { | |
12808 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetDescription(); | |
12809 | result = (wxString *) &_result_ref; | |
12810 | } | |
12811 | ||
12812 | wxPyEndAllowThreads(__tstate); | |
12813 | if (PyErr_Occurred()) SWIG_fail; | |
12814 | } | |
12815 | { | |
12816 | #if wxUSE_UNICODE | |
12817 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12818 | #else | |
12819 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12820 | #endif | |
12821 | } | |
12822 | return resultobj; | |
12823 | fail: | |
12824 | return NULL; | |
12825 | } | |
12826 | ||
12827 | ||
c32bde28 | 12828 | static PyObject *_wrap_FileTypeInfo_GetExtensions(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12829 | PyObject *resultobj; |
12830 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12831 | wxArrayString *result; | |
12832 | PyObject * obj0 = 0 ; | |
12833 | char *kwnames[] = { | |
12834 | (char *) "self", NULL | |
12835 | }; | |
12836 | ||
12837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensions",kwnames,&obj0)) goto fail; | |
12838 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12839 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12840 | { | |
12841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12842 | { | |
12843 | wxArrayString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetExtensions(); | |
12844 | result = (wxArrayString *) &_result_ref; | |
12845 | } | |
12846 | ||
12847 | wxPyEndAllowThreads(__tstate); | |
12848 | if (PyErr_Occurred()) SWIG_fail; | |
12849 | } | |
12850 | { | |
12851 | resultobj = wxArrayString2PyList_helper(*result); | |
12852 | } | |
12853 | return resultobj; | |
12854 | fail: | |
12855 | return NULL; | |
12856 | } | |
12857 | ||
12858 | ||
c32bde28 | 12859 | static PyObject *_wrap_FileTypeInfo_GetExtensionsCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12860 | PyObject *resultobj; |
12861 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12862 | int result; | |
12863 | PyObject * obj0 = 0 ; | |
12864 | char *kwnames[] = { | |
12865 | (char *) "self", NULL | |
12866 | }; | |
12867 | ||
12868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensionsCount",kwnames,&obj0)) goto fail; | |
12869 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12870 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12871 | { | |
12872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12873 | result = (int)((wxFileTypeInfo const *)arg1)->GetExtensionsCount(); | |
12874 | ||
12875 | wxPyEndAllowThreads(__tstate); | |
12876 | if (PyErr_Occurred()) SWIG_fail; | |
12877 | } | |
c32bde28 | 12878 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
12879 | return resultobj; |
12880 | fail: | |
12881 | return NULL; | |
12882 | } | |
12883 | ||
12884 | ||
c32bde28 | 12885 | static PyObject *_wrap_FileTypeInfo_GetIconFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12886 | PyObject *resultobj; |
12887 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12888 | wxString *result; | |
12889 | PyObject * obj0 = 0 ; | |
12890 | char *kwnames[] = { | |
12891 | (char *) "self", NULL | |
12892 | }; | |
12893 | ||
12894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconFile",kwnames,&obj0)) goto fail; | |
12895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12897 | { | |
12898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12899 | { | |
12900 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetIconFile(); | |
12901 | result = (wxString *) &_result_ref; | |
12902 | } | |
12903 | ||
12904 | wxPyEndAllowThreads(__tstate); | |
12905 | if (PyErr_Occurred()) SWIG_fail; | |
12906 | } | |
12907 | { | |
12908 | #if wxUSE_UNICODE | |
12909 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12910 | #else | |
12911 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12912 | #endif | |
12913 | } | |
12914 | return resultobj; | |
12915 | fail: | |
12916 | return NULL; | |
12917 | } | |
12918 | ||
12919 | ||
c32bde28 | 12920 | static PyObject *_wrap_FileTypeInfo_GetIconIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12921 | PyObject *resultobj; |
12922 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
12923 | int result; | |
12924 | PyObject * obj0 = 0 ; | |
12925 | char *kwnames[] = { | |
12926 | (char *) "self", NULL | |
12927 | }; | |
12928 | ||
12929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconIndex",kwnames,&obj0)) goto fail; | |
12930 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12931 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12932 | { | |
12933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12934 | result = (int)((wxFileTypeInfo const *)arg1)->GetIconIndex(); | |
12935 | ||
12936 | wxPyEndAllowThreads(__tstate); | |
12937 | if (PyErr_Occurred()) SWIG_fail; | |
12938 | } | |
c32bde28 | 12939 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
12940 | return resultobj; |
12941 | fail: | |
12942 | return NULL; | |
12943 | } | |
12944 | ||
12945 | ||
c32bde28 | 12946 | static PyObject * FileTypeInfo_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
12947 | PyObject *obj; |
12948 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12949 | SWIG_TypeClientData(SWIGTYPE_p_wxFileTypeInfo, obj); | |
12950 | Py_INCREF(obj); | |
12951 | return Py_BuildValue((char *)""); | |
12952 | } | |
c32bde28 | 12953 | static PyObject *_wrap_new_FileType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12954 | PyObject *resultobj; |
12955 | wxFileTypeInfo *arg1 = 0 ; | |
12956 | wxFileType *result; | |
12957 | PyObject * obj0 = 0 ; | |
12958 | char *kwnames[] = { | |
12959 | (char *) "ftInfo", NULL | |
12960 | }; | |
12961 | ||
12962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileType",kwnames,&obj0)) goto fail; | |
12963 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo, | |
12964 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12965 | SWIG_fail; | |
12966 | if (arg1 == NULL) { | |
12967 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12968 | SWIG_fail; | |
12969 | } | |
12970 | { | |
12971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12972 | result = (wxFileType *)new wxFileType((wxFileTypeInfo const &)*arg1); | |
12973 | ||
12974 | wxPyEndAllowThreads(__tstate); | |
12975 | if (PyErr_Occurred()) SWIG_fail; | |
12976 | } | |
12977 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); | |
12978 | return resultobj; | |
12979 | fail: | |
12980 | return NULL; | |
12981 | } | |
12982 | ||
12983 | ||
c32bde28 | 12984 | static PyObject *_wrap_delete_FileType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12985 | PyObject *resultobj; |
12986 | wxFileType *arg1 = (wxFileType *) 0 ; | |
12987 | PyObject * obj0 = 0 ; | |
12988 | char *kwnames[] = { | |
12989 | (char *) "self", NULL | |
12990 | }; | |
12991 | ||
12992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileType",kwnames,&obj0)) goto fail; | |
12993 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
12994 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12995 | { | |
12996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12997 | delete arg1; | |
12998 | ||
12999 | wxPyEndAllowThreads(__tstate); | |
13000 | if (PyErr_Occurred()) SWIG_fail; | |
13001 | } | |
13002 | Py_INCREF(Py_None); resultobj = Py_None; | |
13003 | return resultobj; | |
13004 | fail: | |
13005 | return NULL; | |
13006 | } | |
13007 | ||
13008 | ||
c32bde28 | 13009 | static PyObject *_wrap_FileType_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13010 | PyObject *resultobj; |
13011 | wxFileType *arg1 = (wxFileType *) 0 ; | |
13012 | PyObject *result; | |
13013 | PyObject * obj0 = 0 ; | |
13014 | char *kwnames[] = { | |
13015 | (char *) "self", NULL | |
13016 | }; | |
13017 | ||
13018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeType",kwnames,&obj0)) goto fail; | |
13019 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
13020 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13021 | { | |
13022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13023 | result = (PyObject *)wxFileType_GetMimeType(arg1); | |
13024 | ||
13025 | wxPyEndAllowThreads(__tstate); | |
13026 | if (PyErr_Occurred()) SWIG_fail; | |
13027 | } | |
13028 | resultobj = result; | |
13029 | return resultobj; | |
13030 | fail: | |
13031 | return NULL; | |
13032 | } | |
13033 | ||
13034 | ||
c32bde28 | 13035 | static PyObject *_wrap_FileType_GetMimeTypes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13036 | PyObject *resultobj; |
13037 | wxFileType *arg1 = (wxFileType *) 0 ; | |
13038 | PyObject *result; | |
13039 | PyObject * obj0 = 0 ; | |
13040 | char *kwnames[] = { | |
13041 | (char *) "self", NULL | |
13042 | }; | |
13043 | ||
13044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeTypes",kwnames,&obj0)) goto fail; | |
13045 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
13046 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13047 | { | |
13048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13049 | result = (PyObject *)wxFileType_GetMimeTypes(arg1); | |
13050 | ||
13051 | wxPyEndAllowThreads(__tstate); | |
13052 | if (PyErr_Occurred()) SWIG_fail; | |
13053 | } | |
13054 | resultobj = result; | |
13055 | return resultobj; | |
13056 | fail: | |
13057 | return NULL; | |
13058 | } | |
13059 | ||
13060 | ||
c32bde28 | 13061 | static PyObject *_wrap_FileType_GetExtensions(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13062 | PyObject *resultobj; |
13063 | wxFileType *arg1 = (wxFileType *) 0 ; | |
13064 | PyObject *result; | |
13065 | PyObject * obj0 = 0 ; | |
13066 | char *kwnames[] = { | |
13067 | (char *) "self", NULL | |
13068 | }; | |
13069 | ||
13070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetExtensions",kwnames,&obj0)) goto fail; | |
13071 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
13072 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13073 | { | |
13074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13075 | result = (PyObject *)wxFileType_GetExtensions(arg1); | |
13076 | ||
13077 | wxPyEndAllowThreads(__tstate); | |
13078 | if (PyErr_Occurred()) SWIG_fail; | |
13079 | } | |
13080 | resultobj = result; | |
13081 | return resultobj; | |
13082 | fail: | |
13083 | return NULL; | |
13084 | } | |
13085 | ||
13086 | ||
c32bde28 | 13087 | static PyObject *_wrap_FileType_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13088 | PyObject *resultobj; |
13089 | wxFileType *arg1 = (wxFileType *) 0 ; | |
13090 | wxIcon *result; | |
13091 | PyObject * obj0 = 0 ; | |
13092 | char *kwnames[] = { | |
13093 | (char *) "self", NULL | |
13094 | }; | |
13095 | ||
13096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIcon",kwnames,&obj0)) goto fail; | |
13097 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
13098 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13099 | { | |
13100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13101 | result = (wxIcon *)wxFileType_GetIcon(arg1); | |
13102 | ||
13103 | wxPyEndAllowThreads(__tstate); | |
13104 | if (PyErr_Occurred()) SWIG_fail; | |
13105 | } | |
13106 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); | |
13107 | return resultobj; | |
13108 | fail: | |
13109 | return NULL; | |
13110 | } | |
13111 | ||
13112 | ||
c32bde28 | 13113 | static PyObject *_wrap_FileType_GetIconInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13114 | PyObject *resultobj; |
13115 | wxFileType *arg1 = (wxFileType *) 0 ; | |
13116 | PyObject *result; | |
13117 | PyObject * obj0 = 0 ; | |
13118 | char *kwnames[] = { | |
13119 | (char *) "self", NULL | |
13120 | }; | |
13121 | ||
13122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIconInfo",kwnames,&obj0)) goto fail; | |
13123 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
13124 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13125 | { | |
13126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13127 | result = (PyObject *)wxFileType_GetIconInfo(arg1); | |
13128 | ||
13129 | wxPyEndAllowThreads(__tstate); | |
13130 | if (PyErr_Occurred()) SWIG_fail; | |
13131 | } | |
13132 | resultobj = result; | |
13133 | return resultobj; | |
13134 | fail: | |
13135 | return NULL; | |
13136 | } | |
13137 | ||
13138 | ||
c32bde28 | 13139 | static PyObject *_wrap_FileType_GetDescription(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13140 | PyObject *resultobj; |
13141 | wxFileType *arg1 = (wxFileType *) 0 ; | |
13142 | PyObject *result; | |
13143 | PyObject * obj0 = 0 ; | |
13144 | char *kwnames[] = { | |
13145 | (char *) "self", NULL | |
13146 | }; | |
13147 | ||
13148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetDescription",kwnames,&obj0)) goto fail; | |
13149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
13150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13151 | { | |
13152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13153 | result = (PyObject *)wxFileType_GetDescription(arg1); | |
13154 | ||
13155 | wxPyEndAllowThreads(__tstate); | |
13156 | if (PyErr_Occurred()) SWIG_fail; | |
13157 | } | |
13158 | resultobj = result; | |
13159 | return resultobj; | |
13160 | fail: | |
13161 | return NULL; | |
13162 | } | |
13163 | ||
13164 | ||
c32bde28 | 13165 | static PyObject *_wrap_FileType_GetOpenCommand(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13166 | PyObject *resultobj; |
13167 | wxFileType *arg1 = (wxFileType *) 0 ; | |
13168 | wxString *arg2 = 0 ; | |
13169 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13170 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13171 | PyObject *result; | |
ae8162c8 RD |
13172 | bool temp2 = false ; |
13173 | bool temp3 = false ; | |
d55e5bfc RD |
13174 | PyObject * obj0 = 0 ; |
13175 | PyObject * obj1 = 0 ; | |
13176 | PyObject * obj2 = 0 ; | |
13177 | char *kwnames[] = { | |
13178 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
13179 | }; | |
13180 | ||
13181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetOpenCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13182 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
13183 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13184 | { | |
13185 | arg2 = wxString_in_helper(obj1); | |
13186 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13187 | temp2 = true; |
d55e5bfc RD |
13188 | } |
13189 | if (obj2) { | |
13190 | { | |
13191 | arg3 = wxString_in_helper(obj2); | |
13192 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 13193 | temp3 = true; |
d55e5bfc RD |
13194 | } |
13195 | } | |
13196 | { | |
13197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13198 | result = (PyObject *)wxFileType_GetOpenCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
13199 | ||
13200 | wxPyEndAllowThreads(__tstate); | |
13201 | if (PyErr_Occurred()) SWIG_fail; | |
13202 | } | |
13203 | resultobj = result; | |
13204 | { | |
13205 | if (temp2) | |
13206 | delete arg2; | |
13207 | } | |
13208 | { | |
13209 | if (temp3) | |
13210 | delete arg3; | |
13211 | } | |
13212 | return resultobj; | |
13213 | fail: | |
13214 | { | |
13215 | if (temp2) | |
13216 | delete arg2; | |
13217 | } | |
13218 | { | |
13219 | if (temp3) | |
13220 | delete arg3; | |
13221 | } | |
13222 | return NULL; | |
13223 | } | |
13224 | ||
13225 | ||
c32bde28 | 13226 | static PyObject *_wrap_FileType_GetPrintCommand(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13227 | PyObject *resultobj; |
13228 | wxFileType *arg1 = (wxFileType *) 0 ; | |
13229 | wxString *arg2 = 0 ; | |
13230 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13231 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13232 | PyObject *result; | |
ae8162c8 RD |
13233 | bool temp2 = false ; |
13234 | bool temp3 = false ; | |
d55e5bfc RD |
13235 | PyObject * obj0 = 0 ; |
13236 | PyObject * obj1 = 0 ; | |
13237 | PyObject * obj2 = 0 ; | |
13238 | char *kwnames[] = { | |
13239 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
13240 | }; | |
13241 | ||
13242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetPrintCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13243 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
13244 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13245 | { | |
13246 | arg2 = wxString_in_helper(obj1); | |
13247 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13248 | temp2 = true; |
d55e5bfc RD |
13249 | } |
13250 | if (obj2) { | |
13251 | { | |
13252 | arg3 = wxString_in_helper(obj2); | |
13253 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 13254 | temp3 = true; |
d55e5bfc RD |
13255 | } |
13256 | } | |
13257 | { | |
13258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13259 | result = (PyObject *)wxFileType_GetPrintCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
13260 | ||
13261 | wxPyEndAllowThreads(__tstate); | |
13262 | if (PyErr_Occurred()) SWIG_fail; | |
13263 | } | |
13264 | resultobj = result; | |
13265 | { | |
13266 | if (temp2) | |
13267 | delete arg2; | |
13268 | } | |
13269 | { | |
13270 | if (temp3) | |
13271 | delete arg3; | |
13272 | } | |
13273 | return resultobj; | |
13274 | fail: | |
13275 | { | |
13276 | if (temp2) | |
13277 | delete arg2; | |
13278 | } | |
13279 | { | |
13280 | if (temp3) | |
13281 | delete arg3; | |
13282 | } | |
13283 | return NULL; | |
13284 | } | |
13285 | ||
13286 | ||
c32bde28 | 13287 | static PyObject *_wrap_FileType_GetAllCommands(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13288 | PyObject *resultobj; |
13289 | wxFileType *arg1 = (wxFileType *) 0 ; | |
13290 | wxString *arg2 = 0 ; | |
13291 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13292 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13293 | PyObject *result; | |
ae8162c8 RD |
13294 | bool temp2 = false ; |
13295 | bool temp3 = false ; | |
d55e5bfc RD |
13296 | PyObject * obj0 = 0 ; |
13297 | PyObject * obj1 = 0 ; | |
13298 | PyObject * obj2 = 0 ; | |
13299 | char *kwnames[] = { | |
13300 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
13301 | }; | |
13302 | ||
13303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetAllCommands",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13304 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
13305 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13306 | { | |
13307 | arg2 = wxString_in_helper(obj1); | |
13308 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13309 | temp2 = true; |
d55e5bfc RD |
13310 | } |
13311 | if (obj2) { | |
13312 | { | |
13313 | arg3 = wxString_in_helper(obj2); | |
13314 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 13315 | temp3 = true; |
d55e5bfc RD |
13316 | } |
13317 | } | |
13318 | { | |
13319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13320 | result = (PyObject *)wxFileType_GetAllCommands(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
13321 | ||
13322 | wxPyEndAllowThreads(__tstate); | |
13323 | if (PyErr_Occurred()) SWIG_fail; | |
13324 | } | |
13325 | resultobj = result; | |
13326 | { | |
13327 | if (temp2) | |
13328 | delete arg2; | |
13329 | } | |
13330 | { | |
13331 | if (temp3) | |
13332 | delete arg3; | |
13333 | } | |
13334 | return resultobj; | |
13335 | fail: | |
13336 | { | |
13337 | if (temp2) | |
13338 | delete arg2; | |
13339 | } | |
13340 | { | |
13341 | if (temp3) | |
13342 | delete arg3; | |
13343 | } | |
13344 | return NULL; | |
13345 | } | |
13346 | ||
13347 | ||
c32bde28 | 13348 | static PyObject *_wrap_FileType_SetCommand(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13349 | PyObject *resultobj; |
13350 | wxFileType *arg1 = (wxFileType *) 0 ; | |
13351 | wxString *arg2 = 0 ; | |
13352 | wxString *arg3 = 0 ; | |
ae8162c8 | 13353 | bool arg4 = (bool) true ; |
d55e5bfc | 13354 | bool result; |
ae8162c8 RD |
13355 | bool temp2 = false ; |
13356 | bool temp3 = false ; | |
d55e5bfc RD |
13357 | PyObject * obj0 = 0 ; |
13358 | PyObject * obj1 = 0 ; | |
13359 | PyObject * obj2 = 0 ; | |
13360 | PyObject * obj3 = 0 ; | |
13361 | char *kwnames[] = { | |
13362 | (char *) "self",(char *) "cmd",(char *) "verb",(char *) "overwriteprompt", NULL | |
13363 | }; | |
13364 | ||
13365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FileType_SetCommand",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
13366 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
13367 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13368 | { | |
13369 | arg2 = wxString_in_helper(obj1); | |
13370 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13371 | temp2 = true; |
d55e5bfc RD |
13372 | } |
13373 | { | |
13374 | arg3 = wxString_in_helper(obj2); | |
13375 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 13376 | temp3 = true; |
d55e5bfc RD |
13377 | } |
13378 | if (obj3) { | |
c32bde28 | 13379 | arg4 = (bool)SWIG_As_bool(obj3); |
d55e5bfc RD |
13380 | if (PyErr_Occurred()) SWIG_fail; |
13381 | } | |
13382 | { | |
13383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13384 | result = (bool)(arg1)->SetCommand((wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
13385 | ||
13386 | wxPyEndAllowThreads(__tstate); | |
13387 | if (PyErr_Occurred()) SWIG_fail; | |
13388 | } | |
13389 | { | |
13390 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13391 | } | |
13392 | { | |
13393 | if (temp2) | |
13394 | delete arg2; | |
13395 | } | |
13396 | { | |
13397 | if (temp3) | |
13398 | delete arg3; | |
13399 | } | |
13400 | return resultobj; | |
13401 | fail: | |
13402 | { | |
13403 | if (temp2) | |
13404 | delete arg2; | |
13405 | } | |
13406 | { | |
13407 | if (temp3) | |
13408 | delete arg3; | |
13409 | } | |
13410 | return NULL; | |
13411 | } | |
13412 | ||
13413 | ||
c32bde28 | 13414 | static PyObject *_wrap_FileType_SetDefaultIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13415 | PyObject *resultobj; |
13416 | wxFileType *arg1 = (wxFileType *) 0 ; | |
13417 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
13418 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
13419 | int arg3 = (int) 0 ; | |
13420 | bool result; | |
ae8162c8 | 13421 | bool temp2 = false ; |
d55e5bfc RD |
13422 | PyObject * obj0 = 0 ; |
13423 | PyObject * obj1 = 0 ; | |
13424 | PyObject * obj2 = 0 ; | |
13425 | char *kwnames[] = { | |
13426 | (char *) "self",(char *) "cmd",(char *) "index", NULL | |
13427 | }; | |
13428 | ||
13429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FileType_SetDefaultIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13430 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
13431 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13432 | if (obj1) { | |
13433 | { | |
13434 | arg2 = wxString_in_helper(obj1); | |
13435 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13436 | temp2 = true; |
d55e5bfc RD |
13437 | } |
13438 | } | |
13439 | if (obj2) { | |
c32bde28 | 13440 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
13441 | if (PyErr_Occurred()) SWIG_fail; |
13442 | } | |
13443 | { | |
13444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13445 | result = (bool)(arg1)->SetDefaultIcon((wxString const &)*arg2,arg3); | |
13446 | ||
13447 | wxPyEndAllowThreads(__tstate); | |
13448 | if (PyErr_Occurred()) SWIG_fail; | |
13449 | } | |
13450 | { | |
13451 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13452 | } | |
13453 | { | |
13454 | if (temp2) | |
13455 | delete arg2; | |
13456 | } | |
13457 | return resultobj; | |
13458 | fail: | |
13459 | { | |
13460 | if (temp2) | |
13461 | delete arg2; | |
13462 | } | |
13463 | return NULL; | |
13464 | } | |
13465 | ||
13466 | ||
c32bde28 | 13467 | static PyObject *_wrap_FileType_Unassociate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13468 | PyObject *resultobj; |
13469 | wxFileType *arg1 = (wxFileType *) 0 ; | |
13470 | bool result; | |
13471 | PyObject * obj0 = 0 ; | |
13472 | char *kwnames[] = { | |
13473 | (char *) "self", NULL | |
13474 | }; | |
13475 | ||
13476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_Unassociate",kwnames,&obj0)) goto fail; | |
13477 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType, | |
13478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13479 | { | |
13480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13481 | result = (bool)(arg1)->Unassociate(); | |
13482 | ||
13483 | wxPyEndAllowThreads(__tstate); | |
13484 | if (PyErr_Occurred()) SWIG_fail; | |
13485 | } | |
13486 | { | |
13487 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13488 | } | |
13489 | return resultobj; | |
13490 | fail: | |
13491 | return NULL; | |
13492 | } | |
13493 | ||
13494 | ||
c32bde28 | 13495 | static PyObject *_wrap_FileType_ExpandCommand(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13496 | PyObject *resultobj; |
13497 | wxString *arg1 = 0 ; | |
13498 | wxString *arg2 = 0 ; | |
13499 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13500 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13501 | wxString result; | |
ae8162c8 RD |
13502 | bool temp1 = false ; |
13503 | bool temp2 = false ; | |
13504 | bool temp3 = false ; | |
d55e5bfc RD |
13505 | PyObject * obj0 = 0 ; |
13506 | PyObject * obj1 = 0 ; | |
13507 | PyObject * obj2 = 0 ; | |
13508 | char *kwnames[] = { | |
13509 | (char *) "command",(char *) "filename",(char *) "mimetype", NULL | |
13510 | }; | |
13511 | ||
13512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_ExpandCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13513 | { | |
13514 | arg1 = wxString_in_helper(obj0); | |
13515 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 13516 | temp1 = true; |
d55e5bfc RD |
13517 | } |
13518 | { | |
13519 | arg2 = wxString_in_helper(obj1); | |
13520 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13521 | temp2 = true; |
d55e5bfc RD |
13522 | } |
13523 | if (obj2) { | |
13524 | { | |
13525 | arg3 = wxString_in_helper(obj2); | |
13526 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 13527 | temp3 = true; |
d55e5bfc RD |
13528 | } |
13529 | } | |
13530 | { | |
13531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13532 | result = FileType_ExpandCommand((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
13533 | ||
13534 | wxPyEndAllowThreads(__tstate); | |
13535 | if (PyErr_Occurred()) SWIG_fail; | |
13536 | } | |
13537 | { | |
13538 | #if wxUSE_UNICODE | |
13539 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13540 | #else | |
13541 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13542 | #endif | |
13543 | } | |
13544 | { | |
13545 | if (temp1) | |
13546 | delete arg1; | |
13547 | } | |
13548 | { | |
13549 | if (temp2) | |
13550 | delete arg2; | |
13551 | } | |
13552 | { | |
13553 | if (temp3) | |
13554 | delete arg3; | |
13555 | } | |
13556 | return resultobj; | |
13557 | fail: | |
13558 | { | |
13559 | if (temp1) | |
13560 | delete arg1; | |
13561 | } | |
13562 | { | |
13563 | if (temp2) | |
13564 | delete arg2; | |
13565 | } | |
13566 | { | |
13567 | if (temp3) | |
13568 | delete arg3; | |
13569 | } | |
13570 | return NULL; | |
13571 | } | |
13572 | ||
13573 | ||
c32bde28 | 13574 | static PyObject * FileType_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13575 | PyObject *obj; |
13576 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13577 | SWIG_TypeClientData(SWIGTYPE_p_wxFileType, obj); | |
13578 | Py_INCREF(obj); | |
13579 | return Py_BuildValue((char *)""); | |
13580 | } | |
c32bde28 | 13581 | static int _wrap_TheMimeTypesManager_set(PyObject *) { |
d55e5bfc RD |
13582 | PyErr_SetString(PyExc_TypeError,"Variable TheMimeTypesManager is read-only."); |
13583 | return 1; | |
13584 | } | |
13585 | ||
13586 | ||
13587 | static PyObject *_wrap_TheMimeTypesManager_get() { | |
13588 | PyObject *pyobj; | |
13589 | ||
13590 | pyobj = SWIG_NewPointerObj((void *)(wxTheMimeTypesManager), SWIGTYPE_p_wxMimeTypesManager, 0); | |
13591 | return pyobj; | |
13592 | } | |
13593 | ||
13594 | ||
c32bde28 | 13595 | static PyObject *_wrap_MimeTypesManager_IsOfType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13596 | PyObject *resultobj; |
13597 | wxString *arg1 = 0 ; | |
13598 | wxString *arg2 = 0 ; | |
13599 | bool result; | |
ae8162c8 RD |
13600 | bool temp1 = false ; |
13601 | bool temp2 = false ; | |
d55e5bfc RD |
13602 | PyObject * obj0 = 0 ; |
13603 | PyObject * obj1 = 0 ; | |
13604 | char *kwnames[] = { | |
13605 | (char *) "mimeType",(char *) "wildcard", NULL | |
13606 | }; | |
13607 | ||
13608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_IsOfType",kwnames,&obj0,&obj1)) goto fail; | |
13609 | { | |
13610 | arg1 = wxString_in_helper(obj0); | |
13611 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 13612 | temp1 = true; |
d55e5bfc RD |
13613 | } |
13614 | { | |
13615 | arg2 = wxString_in_helper(obj1); | |
13616 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13617 | temp2 = true; |
d55e5bfc RD |
13618 | } |
13619 | { | |
13620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13621 | result = (bool)wxMimeTypesManager::IsOfType((wxString const &)*arg1,(wxString const &)*arg2); | |
13622 | ||
13623 | wxPyEndAllowThreads(__tstate); | |
13624 | if (PyErr_Occurred()) SWIG_fail; | |
13625 | } | |
13626 | { | |
13627 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13628 | } | |
13629 | { | |
13630 | if (temp1) | |
13631 | delete arg1; | |
13632 | } | |
13633 | { | |
13634 | if (temp2) | |
13635 | delete arg2; | |
13636 | } | |
13637 | return resultobj; | |
13638 | fail: | |
13639 | { | |
13640 | if (temp1) | |
13641 | delete arg1; | |
13642 | } | |
13643 | { | |
13644 | if (temp2) | |
13645 | delete arg2; | |
13646 | } | |
13647 | return NULL; | |
13648 | } | |
13649 | ||
13650 | ||
c32bde28 | 13651 | static PyObject *_wrap_new_MimeTypesManager(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13652 | PyObject *resultobj; |
13653 | wxMimeTypesManager *result; | |
13654 | char *kwnames[] = { | |
13655 | NULL | |
13656 | }; | |
13657 | ||
13658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MimeTypesManager",kwnames)) goto fail; | |
13659 | { | |
13660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13661 | result = (wxMimeTypesManager *)new wxMimeTypesManager(); | |
13662 | ||
13663 | wxPyEndAllowThreads(__tstate); | |
13664 | if (PyErr_Occurred()) SWIG_fail; | |
13665 | } | |
13666 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMimeTypesManager, 1); | |
13667 | return resultobj; | |
13668 | fail: | |
13669 | return NULL; | |
13670 | } | |
13671 | ||
13672 | ||
c32bde28 | 13673 | static PyObject *_wrap_MimeTypesManager_Initialize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13674 | PyObject *resultobj; |
13675 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13676 | int arg2 = (int) wxMAILCAP_ALL ; | |
13677 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13678 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
ae8162c8 | 13679 | bool temp3 = false ; |
d55e5bfc RD |
13680 | PyObject * obj0 = 0 ; |
13681 | PyObject * obj1 = 0 ; | |
13682 | PyObject * obj2 = 0 ; | |
13683 | char *kwnames[] = { | |
13684 | (char *) "self",(char *) "mailcapStyle",(char *) "extraDir", NULL | |
13685 | }; | |
13686 | ||
13687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MimeTypesManager_Initialize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13688 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13689 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13690 | if (obj1) { | |
c32bde28 | 13691 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13692 | if (PyErr_Occurred()) SWIG_fail; |
13693 | } | |
13694 | if (obj2) { | |
13695 | { | |
13696 | arg3 = wxString_in_helper(obj2); | |
13697 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 13698 | temp3 = true; |
d55e5bfc RD |
13699 | } |
13700 | } | |
13701 | { | |
13702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13703 | (arg1)->Initialize(arg2,(wxString const &)*arg3); | |
13704 | ||
13705 | wxPyEndAllowThreads(__tstate); | |
13706 | if (PyErr_Occurred()) SWIG_fail; | |
13707 | } | |
13708 | Py_INCREF(Py_None); resultobj = Py_None; | |
13709 | { | |
13710 | if (temp3) | |
13711 | delete arg3; | |
13712 | } | |
13713 | return resultobj; | |
13714 | fail: | |
13715 | { | |
13716 | if (temp3) | |
13717 | delete arg3; | |
13718 | } | |
13719 | return NULL; | |
13720 | } | |
13721 | ||
13722 | ||
c32bde28 | 13723 | static PyObject *_wrap_MimeTypesManager_ClearData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13724 | PyObject *resultobj; |
13725 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13726 | PyObject * obj0 = 0 ; | |
13727 | char *kwnames[] = { | |
13728 | (char *) "self", NULL | |
13729 | }; | |
13730 | ||
13731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_ClearData",kwnames,&obj0)) goto fail; | |
13732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13734 | { | |
13735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13736 | (arg1)->ClearData(); | |
13737 | ||
13738 | wxPyEndAllowThreads(__tstate); | |
13739 | if (PyErr_Occurred()) SWIG_fail; | |
13740 | } | |
13741 | Py_INCREF(Py_None); resultobj = Py_None; | |
13742 | return resultobj; | |
13743 | fail: | |
13744 | return NULL; | |
13745 | } | |
13746 | ||
13747 | ||
c32bde28 | 13748 | static PyObject *_wrap_MimeTypesManager_GetFileTypeFromExtension(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13749 | PyObject *resultobj; |
13750 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13751 | wxString *arg2 = 0 ; | |
13752 | wxFileType *result; | |
ae8162c8 | 13753 | bool temp2 = false ; |
d55e5bfc RD |
13754 | PyObject * obj0 = 0 ; |
13755 | PyObject * obj1 = 0 ; | |
13756 | char *kwnames[] = { | |
13757 | (char *) "self",(char *) "ext", NULL | |
13758 | }; | |
13759 | ||
13760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromExtension",kwnames,&obj0,&obj1)) goto fail; | |
13761 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13762 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13763 | { | |
13764 | arg2 = wxString_in_helper(obj1); | |
13765 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13766 | temp2 = true; |
d55e5bfc RD |
13767 | } |
13768 | { | |
13769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13770 | result = (wxFileType *)(arg1)->GetFileTypeFromExtension((wxString const &)*arg2); | |
13771 | ||
13772 | wxPyEndAllowThreads(__tstate); | |
13773 | if (PyErr_Occurred()) SWIG_fail; | |
13774 | } | |
13775 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); | |
13776 | { | |
13777 | if (temp2) | |
13778 | delete arg2; | |
13779 | } | |
13780 | return resultobj; | |
13781 | fail: | |
13782 | { | |
13783 | if (temp2) | |
13784 | delete arg2; | |
13785 | } | |
13786 | return NULL; | |
13787 | } | |
13788 | ||
13789 | ||
c32bde28 | 13790 | static PyObject *_wrap_MimeTypesManager_GetFileTypeFromMimeType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13791 | PyObject *resultobj; |
13792 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13793 | wxString *arg2 = 0 ; | |
13794 | wxFileType *result; | |
ae8162c8 | 13795 | bool temp2 = false ; |
d55e5bfc RD |
13796 | PyObject * obj0 = 0 ; |
13797 | PyObject * obj1 = 0 ; | |
13798 | char *kwnames[] = { | |
13799 | (char *) "self",(char *) "mimeType", NULL | |
13800 | }; | |
13801 | ||
13802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromMimeType",kwnames,&obj0,&obj1)) goto fail; | |
13803 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13804 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13805 | { | |
13806 | arg2 = wxString_in_helper(obj1); | |
13807 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13808 | temp2 = true; |
d55e5bfc RD |
13809 | } |
13810 | { | |
13811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13812 | result = (wxFileType *)(arg1)->GetFileTypeFromMimeType((wxString const &)*arg2); | |
13813 | ||
13814 | wxPyEndAllowThreads(__tstate); | |
13815 | if (PyErr_Occurred()) SWIG_fail; | |
13816 | } | |
13817 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); | |
13818 | { | |
13819 | if (temp2) | |
13820 | delete arg2; | |
13821 | } | |
13822 | return resultobj; | |
13823 | fail: | |
13824 | { | |
13825 | if (temp2) | |
13826 | delete arg2; | |
13827 | } | |
13828 | return NULL; | |
13829 | } | |
13830 | ||
13831 | ||
c32bde28 | 13832 | static PyObject *_wrap_MimeTypesManager_ReadMailcap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13833 | PyObject *resultobj; |
13834 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13835 | wxString *arg2 = 0 ; | |
ae8162c8 | 13836 | bool arg3 = (bool) false ; |
d55e5bfc | 13837 | bool result; |
ae8162c8 | 13838 | bool temp2 = false ; |
d55e5bfc RD |
13839 | PyObject * obj0 = 0 ; |
13840 | PyObject * obj1 = 0 ; | |
13841 | PyObject * obj2 = 0 ; | |
13842 | char *kwnames[] = { | |
13843 | (char *) "self",(char *) "filename",(char *) "fallback", NULL | |
13844 | }; | |
13845 | ||
13846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MimeTypesManager_ReadMailcap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13847 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13848 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13849 | { | |
13850 | arg2 = wxString_in_helper(obj1); | |
13851 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13852 | temp2 = true; |
d55e5bfc RD |
13853 | } |
13854 | if (obj2) { | |
c32bde28 | 13855 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
13856 | if (PyErr_Occurred()) SWIG_fail; |
13857 | } | |
13858 | { | |
13859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13860 | result = (bool)(arg1)->ReadMailcap((wxString const &)*arg2,arg3); | |
13861 | ||
13862 | wxPyEndAllowThreads(__tstate); | |
13863 | if (PyErr_Occurred()) SWIG_fail; | |
13864 | } | |
13865 | { | |
13866 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13867 | } | |
13868 | { | |
13869 | if (temp2) | |
13870 | delete arg2; | |
13871 | } | |
13872 | return resultobj; | |
13873 | fail: | |
13874 | { | |
13875 | if (temp2) | |
13876 | delete arg2; | |
13877 | } | |
13878 | return NULL; | |
13879 | } | |
13880 | ||
13881 | ||
c32bde28 | 13882 | static PyObject *_wrap_MimeTypesManager_ReadMimeTypes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13883 | PyObject *resultobj; |
13884 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13885 | wxString *arg2 = 0 ; | |
13886 | bool result; | |
ae8162c8 | 13887 | bool temp2 = false ; |
d55e5bfc RD |
13888 | PyObject * obj0 = 0 ; |
13889 | PyObject * obj1 = 0 ; | |
13890 | char *kwnames[] = { | |
13891 | (char *) "self",(char *) "filename", NULL | |
13892 | }; | |
13893 | ||
13894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_ReadMimeTypes",kwnames,&obj0,&obj1)) goto fail; | |
13895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13897 | { | |
13898 | arg2 = wxString_in_helper(obj1); | |
13899 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13900 | temp2 = true; |
d55e5bfc RD |
13901 | } |
13902 | { | |
13903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13904 | result = (bool)(arg1)->ReadMimeTypes((wxString const &)*arg2); | |
13905 | ||
13906 | wxPyEndAllowThreads(__tstate); | |
13907 | if (PyErr_Occurred()) SWIG_fail; | |
13908 | } | |
13909 | { | |
13910 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13911 | } | |
13912 | { | |
13913 | if (temp2) | |
13914 | delete arg2; | |
13915 | } | |
13916 | return resultobj; | |
13917 | fail: | |
13918 | { | |
13919 | if (temp2) | |
13920 | delete arg2; | |
13921 | } | |
13922 | return NULL; | |
13923 | } | |
13924 | ||
13925 | ||
c32bde28 | 13926 | static PyObject *_wrap_MimeTypesManager_EnumAllFileTypes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13927 | PyObject *resultobj; |
13928 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13929 | PyObject *result; | |
13930 | PyObject * obj0 = 0 ; | |
13931 | char *kwnames[] = { | |
13932 | (char *) "self", NULL | |
13933 | }; | |
13934 | ||
13935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_EnumAllFileTypes",kwnames,&obj0)) goto fail; | |
13936 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13937 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13938 | { | |
13939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13940 | result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(arg1); | |
13941 | ||
13942 | wxPyEndAllowThreads(__tstate); | |
13943 | if (PyErr_Occurred()) SWIG_fail; | |
13944 | } | |
13945 | resultobj = result; | |
13946 | return resultobj; | |
13947 | fail: | |
13948 | return NULL; | |
13949 | } | |
13950 | ||
13951 | ||
c32bde28 | 13952 | static PyObject *_wrap_MimeTypesManager_AddFallback(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13953 | PyObject *resultobj; |
13954 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13955 | wxFileTypeInfo *arg2 = 0 ; | |
13956 | PyObject * obj0 = 0 ; | |
13957 | PyObject * obj1 = 0 ; | |
13958 | char *kwnames[] = { | |
13959 | (char *) "self",(char *) "ft", NULL | |
13960 | }; | |
13961 | ||
13962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_AddFallback",kwnames,&obj0,&obj1)) goto fail; | |
13963 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13964 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13965 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo, | |
13966 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13967 | SWIG_fail; | |
13968 | if (arg2 == NULL) { | |
13969 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13970 | SWIG_fail; | |
13971 | } | |
13972 | { | |
13973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13974 | (arg1)->AddFallback((wxFileTypeInfo const &)*arg2); | |
13975 | ||
13976 | wxPyEndAllowThreads(__tstate); | |
13977 | if (PyErr_Occurred()) SWIG_fail; | |
13978 | } | |
13979 | Py_INCREF(Py_None); resultobj = Py_None; | |
13980 | return resultobj; | |
13981 | fail: | |
13982 | return NULL; | |
13983 | } | |
13984 | ||
13985 | ||
c32bde28 | 13986 | static PyObject *_wrap_MimeTypesManager_Associate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13987 | PyObject *resultobj; |
13988 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
13989 | wxFileTypeInfo *arg2 = 0 ; | |
13990 | wxFileType *result; | |
13991 | PyObject * obj0 = 0 ; | |
13992 | PyObject * obj1 = 0 ; | |
13993 | char *kwnames[] = { | |
13994 | (char *) "self",(char *) "ftInfo", NULL | |
13995 | }; | |
13996 | ||
13997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Associate",kwnames,&obj0,&obj1)) goto fail; | |
13998 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
13999 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14000 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo, | |
14001 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
14002 | SWIG_fail; | |
14003 | if (arg2 == NULL) { | |
14004 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
14005 | SWIG_fail; | |
14006 | } | |
14007 | { | |
14008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14009 | result = (wxFileType *)(arg1)->Associate((wxFileTypeInfo const &)*arg2); | |
14010 | ||
14011 | wxPyEndAllowThreads(__tstate); | |
14012 | if (PyErr_Occurred()) SWIG_fail; | |
14013 | } | |
14014 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1); | |
14015 | return resultobj; | |
14016 | fail: | |
14017 | return NULL; | |
14018 | } | |
14019 | ||
14020 | ||
c32bde28 | 14021 | static PyObject *_wrap_MimeTypesManager_Unassociate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14022 | PyObject *resultobj; |
14023 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
14024 | wxFileType *arg2 = (wxFileType *) 0 ; | |
14025 | bool result; | |
14026 | PyObject * obj0 = 0 ; | |
14027 | PyObject * obj1 = 0 ; | |
14028 | char *kwnames[] = { | |
14029 | (char *) "self",(char *) "ft", NULL | |
14030 | }; | |
14031 | ||
14032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Unassociate",kwnames,&obj0,&obj1)) goto fail; | |
14033 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
14034 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14035 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileType, | |
14036 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14037 | { | |
14038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14039 | result = (bool)(arg1)->Unassociate(arg2); | |
14040 | ||
14041 | wxPyEndAllowThreads(__tstate); | |
14042 | if (PyErr_Occurred()) SWIG_fail; | |
14043 | } | |
14044 | { | |
14045 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14046 | } | |
14047 | return resultobj; | |
14048 | fail: | |
14049 | return NULL; | |
14050 | } | |
14051 | ||
14052 | ||
c32bde28 | 14053 | static PyObject *_wrap_delete_MimeTypesManager(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14054 | PyObject *resultobj; |
14055 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
14056 | PyObject * obj0 = 0 ; | |
14057 | char *kwnames[] = { | |
14058 | (char *) "self", NULL | |
14059 | }; | |
14060 | ||
14061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MimeTypesManager",kwnames,&obj0)) goto fail; | |
14062 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager, | |
14063 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14064 | { | |
14065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14066 | delete arg1; | |
14067 | ||
14068 | wxPyEndAllowThreads(__tstate); | |
14069 | if (PyErr_Occurred()) SWIG_fail; | |
14070 | } | |
14071 | Py_INCREF(Py_None); resultobj = Py_None; | |
14072 | return resultobj; | |
14073 | fail: | |
14074 | return NULL; | |
14075 | } | |
14076 | ||
14077 | ||
c32bde28 | 14078 | static PyObject * MimeTypesManager_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
14079 | PyObject *obj; |
14080 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14081 | SWIG_TypeClientData(SWIGTYPE_p_wxMimeTypesManager, obj); | |
14082 | Py_INCREF(obj); | |
14083 | return Py_BuildValue((char *)""); | |
14084 | } | |
c32bde28 | 14085 | static int _wrap_ART_TOOLBAR_set(PyObject *) { |
d55e5bfc RD |
14086 | PyErr_SetString(PyExc_TypeError,"Variable ART_TOOLBAR is read-only."); |
14087 | return 1; | |
14088 | } | |
14089 | ||
14090 | ||
14091 | static PyObject *_wrap_ART_TOOLBAR_get() { | |
14092 | PyObject *pyobj; | |
14093 | ||
14094 | { | |
14095 | #if wxUSE_UNICODE | |
14096 | pyobj = PyUnicode_FromWideChar((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len()); | |
14097 | #else | |
14098 | pyobj = PyString_FromStringAndSize((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len()); | |
14099 | #endif | |
14100 | } | |
14101 | return pyobj; | |
14102 | } | |
14103 | ||
14104 | ||
c32bde28 | 14105 | static int _wrap_ART_MENU_set(PyObject *) { |
d55e5bfc RD |
14106 | PyErr_SetString(PyExc_TypeError,"Variable ART_MENU is read-only."); |
14107 | return 1; | |
14108 | } | |
14109 | ||
14110 | ||
14111 | static PyObject *_wrap_ART_MENU_get() { | |
14112 | PyObject *pyobj; | |
14113 | ||
14114 | { | |
14115 | #if wxUSE_UNICODE | |
14116 | pyobj = PyUnicode_FromWideChar((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len()); | |
14117 | #else | |
14118 | pyobj = PyString_FromStringAndSize((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len()); | |
14119 | #endif | |
14120 | } | |
14121 | return pyobj; | |
14122 | } | |
14123 | ||
14124 | ||
c32bde28 | 14125 | static int _wrap_ART_FRAME_ICON_set(PyObject *) { |
d55e5bfc RD |
14126 | PyErr_SetString(PyExc_TypeError,"Variable ART_FRAME_ICON is read-only."); |
14127 | return 1; | |
14128 | } | |
14129 | ||
14130 | ||
14131 | static PyObject *_wrap_ART_FRAME_ICON_get() { | |
14132 | PyObject *pyobj; | |
14133 | ||
14134 | { | |
14135 | #if wxUSE_UNICODE | |
14136 | pyobj = PyUnicode_FromWideChar((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len()); | |
14137 | #else | |
14138 | pyobj = PyString_FromStringAndSize((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len()); | |
14139 | #endif | |
14140 | } | |
14141 | return pyobj; | |
14142 | } | |
14143 | ||
14144 | ||
c32bde28 | 14145 | static int _wrap_ART_CMN_DIALOG_set(PyObject *) { |
d55e5bfc RD |
14146 | PyErr_SetString(PyExc_TypeError,"Variable ART_CMN_DIALOG is read-only."); |
14147 | return 1; | |
14148 | } | |
14149 | ||
14150 | ||
14151 | static PyObject *_wrap_ART_CMN_DIALOG_get() { | |
14152 | PyObject *pyobj; | |
14153 | ||
14154 | { | |
14155 | #if wxUSE_UNICODE | |
14156 | pyobj = PyUnicode_FromWideChar((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len()); | |
14157 | #else | |
14158 | pyobj = PyString_FromStringAndSize((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len()); | |
14159 | #endif | |
14160 | } | |
14161 | return pyobj; | |
14162 | } | |
14163 | ||
14164 | ||
c32bde28 | 14165 | static int _wrap_ART_HELP_BROWSER_set(PyObject *) { |
d55e5bfc RD |
14166 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BROWSER is read-only."); |
14167 | return 1; | |
14168 | } | |
14169 | ||
14170 | ||
14171 | static PyObject *_wrap_ART_HELP_BROWSER_get() { | |
14172 | PyObject *pyobj; | |
14173 | ||
14174 | { | |
14175 | #if wxUSE_UNICODE | |
14176 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len()); | |
14177 | #else | |
14178 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len()); | |
14179 | #endif | |
14180 | } | |
14181 | return pyobj; | |
14182 | } | |
14183 | ||
14184 | ||
c32bde28 | 14185 | static int _wrap_ART_MESSAGE_BOX_set(PyObject *) { |
d55e5bfc RD |
14186 | PyErr_SetString(PyExc_TypeError,"Variable ART_MESSAGE_BOX is read-only."); |
14187 | return 1; | |
14188 | } | |
14189 | ||
14190 | ||
14191 | static PyObject *_wrap_ART_MESSAGE_BOX_get() { | |
14192 | PyObject *pyobj; | |
14193 | ||
14194 | { | |
14195 | #if wxUSE_UNICODE | |
14196 | pyobj = PyUnicode_FromWideChar((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len()); | |
14197 | #else | |
14198 | pyobj = PyString_FromStringAndSize((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len()); | |
14199 | #endif | |
14200 | } | |
14201 | return pyobj; | |
14202 | } | |
14203 | ||
14204 | ||
c32bde28 | 14205 | static int _wrap_ART_BUTTON_set(PyObject *) { |
4cf4100f RD |
14206 | PyErr_SetString(PyExc_TypeError,"Variable ART_BUTTON is read-only."); |
14207 | return 1; | |
14208 | } | |
14209 | ||
14210 | ||
14211 | static PyObject *_wrap_ART_BUTTON_get() { | |
14212 | PyObject *pyobj; | |
14213 | ||
14214 | { | |
14215 | #if wxUSE_UNICODE | |
14216 | pyobj = PyUnicode_FromWideChar((&wxPyART_BUTTON)->c_str(), (&wxPyART_BUTTON)->Len()); | |
14217 | #else | |
14218 | pyobj = PyString_FromStringAndSize((&wxPyART_BUTTON)->c_str(), (&wxPyART_BUTTON)->Len()); | |
14219 | #endif | |
14220 | } | |
14221 | return pyobj; | |
14222 | } | |
14223 | ||
14224 | ||
c32bde28 | 14225 | static int _wrap_ART_OTHER_set(PyObject *) { |
d55e5bfc RD |
14226 | PyErr_SetString(PyExc_TypeError,"Variable ART_OTHER is read-only."); |
14227 | return 1; | |
14228 | } | |
14229 | ||
14230 | ||
14231 | static PyObject *_wrap_ART_OTHER_get() { | |
14232 | PyObject *pyobj; | |
14233 | ||
14234 | { | |
14235 | #if wxUSE_UNICODE | |
14236 | pyobj = PyUnicode_FromWideChar((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len()); | |
14237 | #else | |
14238 | pyobj = PyString_FromStringAndSize((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len()); | |
14239 | #endif | |
14240 | } | |
14241 | return pyobj; | |
14242 | } | |
14243 | ||
14244 | ||
c32bde28 | 14245 | static int _wrap_ART_ADD_BOOKMARK_set(PyObject *) { |
d55e5bfc RD |
14246 | PyErr_SetString(PyExc_TypeError,"Variable ART_ADD_BOOKMARK is read-only."); |
14247 | return 1; | |
14248 | } | |
14249 | ||
14250 | ||
14251 | static PyObject *_wrap_ART_ADD_BOOKMARK_get() { | |
14252 | PyObject *pyobj; | |
14253 | ||
14254 | { | |
14255 | #if wxUSE_UNICODE | |
14256 | pyobj = PyUnicode_FromWideChar((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len()); | |
14257 | #else | |
14258 | pyobj = PyString_FromStringAndSize((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len()); | |
14259 | #endif | |
14260 | } | |
14261 | return pyobj; | |
14262 | } | |
14263 | ||
14264 | ||
c32bde28 | 14265 | static int _wrap_ART_DEL_BOOKMARK_set(PyObject *) { |
d55e5bfc RD |
14266 | PyErr_SetString(PyExc_TypeError,"Variable ART_DEL_BOOKMARK is read-only."); |
14267 | return 1; | |
14268 | } | |
14269 | ||
14270 | ||
14271 | static PyObject *_wrap_ART_DEL_BOOKMARK_get() { | |
14272 | PyObject *pyobj; | |
14273 | ||
14274 | { | |
14275 | #if wxUSE_UNICODE | |
14276 | pyobj = PyUnicode_FromWideChar((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len()); | |
14277 | #else | |
14278 | pyobj = PyString_FromStringAndSize((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len()); | |
14279 | #endif | |
14280 | } | |
14281 | return pyobj; | |
14282 | } | |
14283 | ||
14284 | ||
c32bde28 | 14285 | static int _wrap_ART_HELP_SIDE_PANEL_set(PyObject *) { |
d55e5bfc RD |
14286 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SIDE_PANEL is read-only."); |
14287 | return 1; | |
14288 | } | |
14289 | ||
14290 | ||
14291 | static PyObject *_wrap_ART_HELP_SIDE_PANEL_get() { | |
14292 | PyObject *pyobj; | |
14293 | ||
14294 | { | |
14295 | #if wxUSE_UNICODE | |
14296 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len()); | |
14297 | #else | |
14298 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len()); | |
14299 | #endif | |
14300 | } | |
14301 | return pyobj; | |
14302 | } | |
14303 | ||
14304 | ||
c32bde28 | 14305 | static int _wrap_ART_HELP_SETTINGS_set(PyObject *) { |
d55e5bfc RD |
14306 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SETTINGS is read-only."); |
14307 | return 1; | |
14308 | } | |
14309 | ||
14310 | ||
14311 | static PyObject *_wrap_ART_HELP_SETTINGS_get() { | |
14312 | PyObject *pyobj; | |
14313 | ||
14314 | { | |
14315 | #if wxUSE_UNICODE | |
14316 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len()); | |
14317 | #else | |
14318 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len()); | |
14319 | #endif | |
14320 | } | |
14321 | return pyobj; | |
14322 | } | |
14323 | ||
14324 | ||
c32bde28 | 14325 | static int _wrap_ART_HELP_BOOK_set(PyObject *) { |
d55e5bfc RD |
14326 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BOOK is read-only."); |
14327 | return 1; | |
14328 | } | |
14329 | ||
14330 | ||
14331 | static PyObject *_wrap_ART_HELP_BOOK_get() { | |
14332 | PyObject *pyobj; | |
14333 | ||
14334 | { | |
14335 | #if wxUSE_UNICODE | |
14336 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len()); | |
14337 | #else | |
14338 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len()); | |
14339 | #endif | |
14340 | } | |
14341 | return pyobj; | |
14342 | } | |
14343 | ||
14344 | ||
c32bde28 | 14345 | static int _wrap_ART_HELP_FOLDER_set(PyObject *) { |
d55e5bfc RD |
14346 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_FOLDER is read-only."); |
14347 | return 1; | |
14348 | } | |
14349 | ||
14350 | ||
14351 | static PyObject *_wrap_ART_HELP_FOLDER_get() { | |
14352 | PyObject *pyobj; | |
14353 | ||
14354 | { | |
14355 | #if wxUSE_UNICODE | |
14356 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len()); | |
14357 | #else | |
14358 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len()); | |
14359 | #endif | |
14360 | } | |
14361 | return pyobj; | |
14362 | } | |
14363 | ||
14364 | ||
c32bde28 | 14365 | static int _wrap_ART_HELP_PAGE_set(PyObject *) { |
d55e5bfc RD |
14366 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_PAGE is read-only."); |
14367 | return 1; | |
14368 | } | |
14369 | ||
14370 | ||
14371 | static PyObject *_wrap_ART_HELP_PAGE_get() { | |
14372 | PyObject *pyobj; | |
14373 | ||
14374 | { | |
14375 | #if wxUSE_UNICODE | |
14376 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len()); | |
14377 | #else | |
14378 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len()); | |
14379 | #endif | |
14380 | } | |
14381 | return pyobj; | |
14382 | } | |
14383 | ||
14384 | ||
c32bde28 | 14385 | static int _wrap_ART_GO_BACK_set(PyObject *) { |
d55e5bfc RD |
14386 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_BACK is read-only."); |
14387 | return 1; | |
14388 | } | |
14389 | ||
14390 | ||
14391 | static PyObject *_wrap_ART_GO_BACK_get() { | |
14392 | PyObject *pyobj; | |
14393 | ||
14394 | { | |
14395 | #if wxUSE_UNICODE | |
14396 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len()); | |
14397 | #else | |
14398 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len()); | |
14399 | #endif | |
14400 | } | |
14401 | return pyobj; | |
14402 | } | |
14403 | ||
14404 | ||
c32bde28 | 14405 | static int _wrap_ART_GO_FORWARD_set(PyObject *) { |
d55e5bfc RD |
14406 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_FORWARD is read-only."); |
14407 | return 1; | |
14408 | } | |
14409 | ||
14410 | ||
14411 | static PyObject *_wrap_ART_GO_FORWARD_get() { | |
14412 | PyObject *pyobj; | |
14413 | ||
14414 | { | |
14415 | #if wxUSE_UNICODE | |
14416 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len()); | |
14417 | #else | |
14418 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len()); | |
14419 | #endif | |
14420 | } | |
14421 | return pyobj; | |
14422 | } | |
14423 | ||
14424 | ||
c32bde28 | 14425 | static int _wrap_ART_GO_UP_set(PyObject *) { |
d55e5bfc RD |
14426 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_UP is read-only."); |
14427 | return 1; | |
14428 | } | |
14429 | ||
14430 | ||
14431 | static PyObject *_wrap_ART_GO_UP_get() { | |
14432 | PyObject *pyobj; | |
14433 | ||
14434 | { | |
14435 | #if wxUSE_UNICODE | |
14436 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len()); | |
14437 | #else | |
14438 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len()); | |
14439 | #endif | |
14440 | } | |
14441 | return pyobj; | |
14442 | } | |
14443 | ||
14444 | ||
c32bde28 | 14445 | static int _wrap_ART_GO_DOWN_set(PyObject *) { |
d55e5bfc RD |
14446 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DOWN is read-only."); |
14447 | return 1; | |
14448 | } | |
14449 | ||
14450 | ||
14451 | static PyObject *_wrap_ART_GO_DOWN_get() { | |
14452 | PyObject *pyobj; | |
14453 | ||
14454 | { | |
14455 | #if wxUSE_UNICODE | |
14456 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len()); | |
14457 | #else | |
14458 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len()); | |
14459 | #endif | |
14460 | } | |
14461 | return pyobj; | |
14462 | } | |
14463 | ||
14464 | ||
c32bde28 | 14465 | static int _wrap_ART_GO_TO_PARENT_set(PyObject *) { |
d55e5bfc RD |
14466 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_TO_PARENT is read-only."); |
14467 | return 1; | |
14468 | } | |
14469 | ||
14470 | ||
14471 | static PyObject *_wrap_ART_GO_TO_PARENT_get() { | |
14472 | PyObject *pyobj; | |
14473 | ||
14474 | { | |
14475 | #if wxUSE_UNICODE | |
14476 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len()); | |
14477 | #else | |
14478 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len()); | |
14479 | #endif | |
14480 | } | |
14481 | return pyobj; | |
14482 | } | |
14483 | ||
14484 | ||
c32bde28 | 14485 | static int _wrap_ART_GO_HOME_set(PyObject *) { |
d55e5bfc RD |
14486 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_HOME is read-only."); |
14487 | return 1; | |
14488 | } | |
14489 | ||
14490 | ||
14491 | static PyObject *_wrap_ART_GO_HOME_get() { | |
14492 | PyObject *pyobj; | |
14493 | ||
14494 | { | |
14495 | #if wxUSE_UNICODE | |
14496 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len()); | |
14497 | #else | |
14498 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len()); | |
14499 | #endif | |
14500 | } | |
14501 | return pyobj; | |
14502 | } | |
14503 | ||
14504 | ||
c32bde28 | 14505 | static int _wrap_ART_FILE_OPEN_set(PyObject *) { |
d55e5bfc RD |
14506 | PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_OPEN is read-only."); |
14507 | return 1; | |
14508 | } | |
14509 | ||
14510 | ||
14511 | static PyObject *_wrap_ART_FILE_OPEN_get() { | |
14512 | PyObject *pyobj; | |
14513 | ||
14514 | { | |
14515 | #if wxUSE_UNICODE | |
14516 | pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len()); | |
14517 | #else | |
14518 | pyobj = PyString_FromStringAndSize((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len()); | |
14519 | #endif | |
14520 | } | |
14521 | return pyobj; | |
14522 | } | |
14523 | ||
14524 | ||
c32bde28 | 14525 | static int _wrap_ART_PRINT_set(PyObject *) { |
d55e5bfc RD |
14526 | PyErr_SetString(PyExc_TypeError,"Variable ART_PRINT is read-only."); |
14527 | return 1; | |
14528 | } | |
14529 | ||
14530 | ||
14531 | static PyObject *_wrap_ART_PRINT_get() { | |
14532 | PyObject *pyobj; | |
14533 | ||
14534 | { | |
14535 | #if wxUSE_UNICODE | |
14536 | pyobj = PyUnicode_FromWideChar((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len()); | |
14537 | #else | |
14538 | pyobj = PyString_FromStringAndSize((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len()); | |
14539 | #endif | |
14540 | } | |
14541 | return pyobj; | |
14542 | } | |
14543 | ||
14544 | ||
c32bde28 | 14545 | static int _wrap_ART_HELP_set(PyObject *) { |
d55e5bfc RD |
14546 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP is read-only."); |
14547 | return 1; | |
14548 | } | |
14549 | ||
14550 | ||
14551 | static PyObject *_wrap_ART_HELP_get() { | |
14552 | PyObject *pyobj; | |
14553 | ||
14554 | { | |
14555 | #if wxUSE_UNICODE | |
14556 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len()); | |
14557 | #else | |
14558 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len()); | |
14559 | #endif | |
14560 | } | |
14561 | return pyobj; | |
14562 | } | |
14563 | ||
14564 | ||
c32bde28 | 14565 | static int _wrap_ART_TIP_set(PyObject *) { |
d55e5bfc RD |
14566 | PyErr_SetString(PyExc_TypeError,"Variable ART_TIP is read-only."); |
14567 | return 1; | |
14568 | } | |
14569 | ||
14570 | ||
14571 | static PyObject *_wrap_ART_TIP_get() { | |
14572 | PyObject *pyobj; | |
14573 | ||
14574 | { | |
14575 | #if wxUSE_UNICODE | |
14576 | pyobj = PyUnicode_FromWideChar((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len()); | |
14577 | #else | |
14578 | pyobj = PyString_FromStringAndSize((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len()); | |
14579 | #endif | |
14580 | } | |
14581 | return pyobj; | |
14582 | } | |
14583 | ||
14584 | ||
c32bde28 | 14585 | static int _wrap_ART_REPORT_VIEW_set(PyObject *) { |
d55e5bfc RD |
14586 | PyErr_SetString(PyExc_TypeError,"Variable ART_REPORT_VIEW is read-only."); |
14587 | return 1; | |
14588 | } | |
14589 | ||
14590 | ||
14591 | static PyObject *_wrap_ART_REPORT_VIEW_get() { | |
14592 | PyObject *pyobj; | |
14593 | ||
14594 | { | |
14595 | #if wxUSE_UNICODE | |
14596 | pyobj = PyUnicode_FromWideChar((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len()); | |
14597 | #else | |
14598 | pyobj = PyString_FromStringAndSize((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len()); | |
14599 | #endif | |
14600 | } | |
14601 | return pyobj; | |
14602 | } | |
14603 | ||
14604 | ||
c32bde28 | 14605 | static int _wrap_ART_LIST_VIEW_set(PyObject *) { |
d55e5bfc RD |
14606 | PyErr_SetString(PyExc_TypeError,"Variable ART_LIST_VIEW is read-only."); |
14607 | return 1; | |
14608 | } | |
14609 | ||
14610 | ||
14611 | static PyObject *_wrap_ART_LIST_VIEW_get() { | |
14612 | PyObject *pyobj; | |
14613 | ||
14614 | { | |
14615 | #if wxUSE_UNICODE | |
14616 | pyobj = PyUnicode_FromWideChar((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len()); | |
14617 | #else | |
14618 | pyobj = PyString_FromStringAndSize((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len()); | |
14619 | #endif | |
14620 | } | |
14621 | return pyobj; | |
14622 | } | |
14623 | ||
14624 | ||
c32bde28 | 14625 | static int _wrap_ART_NEW_DIR_set(PyObject *) { |
d55e5bfc RD |
14626 | PyErr_SetString(PyExc_TypeError,"Variable ART_NEW_DIR is read-only."); |
14627 | return 1; | |
14628 | } | |
14629 | ||
14630 | ||
14631 | static PyObject *_wrap_ART_NEW_DIR_get() { | |
14632 | PyObject *pyobj; | |
14633 | ||
14634 | { | |
14635 | #if wxUSE_UNICODE | |
14636 | pyobj = PyUnicode_FromWideChar((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len()); | |
14637 | #else | |
14638 | pyobj = PyString_FromStringAndSize((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len()); | |
14639 | #endif | |
14640 | } | |
14641 | return pyobj; | |
14642 | } | |
14643 | ||
14644 | ||
f78cc896 RD |
14645 | static int _wrap_ART_HARDDISK_set(PyObject *) { |
14646 | PyErr_SetString(PyExc_TypeError,"Variable ART_HARDDISK is read-only."); | |
14647 | return 1; | |
14648 | } | |
14649 | ||
14650 | ||
14651 | static PyObject *_wrap_ART_HARDDISK_get() { | |
14652 | PyObject *pyobj; | |
14653 | ||
14654 | { | |
14655 | #if wxUSE_UNICODE | |
14656 | pyobj = PyUnicode_FromWideChar((&wxPyART_HARDDISK)->c_str(), (&wxPyART_HARDDISK)->Len()); | |
14657 | #else | |
14658 | pyobj = PyString_FromStringAndSize((&wxPyART_HARDDISK)->c_str(), (&wxPyART_HARDDISK)->Len()); | |
14659 | #endif | |
14660 | } | |
14661 | return pyobj; | |
14662 | } | |
14663 | ||
14664 | ||
14665 | static int _wrap_ART_FLOPPY_set(PyObject *) { | |
14666 | PyErr_SetString(PyExc_TypeError,"Variable ART_FLOPPY is read-only."); | |
14667 | return 1; | |
14668 | } | |
14669 | ||
14670 | ||
14671 | static PyObject *_wrap_ART_FLOPPY_get() { | |
14672 | PyObject *pyobj; | |
14673 | ||
14674 | { | |
14675 | #if wxUSE_UNICODE | |
14676 | pyobj = PyUnicode_FromWideChar((&wxPyART_FLOPPY)->c_str(), (&wxPyART_FLOPPY)->Len()); | |
14677 | #else | |
14678 | pyobj = PyString_FromStringAndSize((&wxPyART_FLOPPY)->c_str(), (&wxPyART_FLOPPY)->Len()); | |
14679 | #endif | |
14680 | } | |
14681 | return pyobj; | |
14682 | } | |
14683 | ||
14684 | ||
14685 | static int _wrap_ART_CDROM_set(PyObject *) { | |
14686 | PyErr_SetString(PyExc_TypeError,"Variable ART_CDROM is read-only."); | |
14687 | return 1; | |
14688 | } | |
14689 | ||
14690 | ||
14691 | static PyObject *_wrap_ART_CDROM_get() { | |
14692 | PyObject *pyobj; | |
14693 | ||
14694 | { | |
14695 | #if wxUSE_UNICODE | |
14696 | pyobj = PyUnicode_FromWideChar((&wxPyART_CDROM)->c_str(), (&wxPyART_CDROM)->Len()); | |
14697 | #else | |
14698 | pyobj = PyString_FromStringAndSize((&wxPyART_CDROM)->c_str(), (&wxPyART_CDROM)->Len()); | |
14699 | #endif | |
14700 | } | |
14701 | return pyobj; | |
14702 | } | |
14703 | ||
14704 | ||
14705 | static int _wrap_ART_REMOVABLE_set(PyObject *) { | |
14706 | PyErr_SetString(PyExc_TypeError,"Variable ART_REMOVABLE is read-only."); | |
14707 | return 1; | |
14708 | } | |
14709 | ||
14710 | ||
14711 | static PyObject *_wrap_ART_REMOVABLE_get() { | |
14712 | PyObject *pyobj; | |
14713 | ||
14714 | { | |
14715 | #if wxUSE_UNICODE | |
14716 | pyobj = PyUnicode_FromWideChar((&wxPyART_REMOVABLE)->c_str(), (&wxPyART_REMOVABLE)->Len()); | |
14717 | #else | |
14718 | pyobj = PyString_FromStringAndSize((&wxPyART_REMOVABLE)->c_str(), (&wxPyART_REMOVABLE)->Len()); | |
14719 | #endif | |
14720 | } | |
14721 | return pyobj; | |
14722 | } | |
14723 | ||
14724 | ||
c32bde28 | 14725 | static int _wrap_ART_FOLDER_set(PyObject *) { |
d55e5bfc RD |
14726 | PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER is read-only."); |
14727 | return 1; | |
14728 | } | |
14729 | ||
14730 | ||
14731 | static PyObject *_wrap_ART_FOLDER_get() { | |
14732 | PyObject *pyobj; | |
14733 | ||
14734 | { | |
14735 | #if wxUSE_UNICODE | |
14736 | pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len()); | |
14737 | #else | |
14738 | pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len()); | |
14739 | #endif | |
14740 | } | |
14741 | return pyobj; | |
14742 | } | |
14743 | ||
14744 | ||
f78cc896 RD |
14745 | static int _wrap_ART_FOLDER_OPEN_set(PyObject *) { |
14746 | PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER_OPEN is read-only."); | |
14747 | return 1; | |
14748 | } | |
14749 | ||
14750 | ||
14751 | static PyObject *_wrap_ART_FOLDER_OPEN_get() { | |
14752 | PyObject *pyobj; | |
14753 | ||
14754 | { | |
14755 | #if wxUSE_UNICODE | |
14756 | pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER_OPEN)->c_str(), (&wxPyART_FOLDER_OPEN)->Len()); | |
14757 | #else | |
14758 | pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER_OPEN)->c_str(), (&wxPyART_FOLDER_OPEN)->Len()); | |
14759 | #endif | |
14760 | } | |
14761 | return pyobj; | |
14762 | } | |
14763 | ||
14764 | ||
c32bde28 | 14765 | static int _wrap_ART_GO_DIR_UP_set(PyObject *) { |
d55e5bfc RD |
14766 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DIR_UP is read-only."); |
14767 | return 1; | |
14768 | } | |
14769 | ||
14770 | ||
14771 | static PyObject *_wrap_ART_GO_DIR_UP_get() { | |
14772 | PyObject *pyobj; | |
14773 | ||
14774 | { | |
14775 | #if wxUSE_UNICODE | |
14776 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len()); | |
14777 | #else | |
14778 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len()); | |
14779 | #endif | |
14780 | } | |
14781 | return pyobj; | |
14782 | } | |
14783 | ||
14784 | ||
c32bde28 | 14785 | static int _wrap_ART_EXECUTABLE_FILE_set(PyObject *) { |
d55e5bfc RD |
14786 | PyErr_SetString(PyExc_TypeError,"Variable ART_EXECUTABLE_FILE is read-only."); |
14787 | return 1; | |
14788 | } | |
14789 | ||
14790 | ||
14791 | static PyObject *_wrap_ART_EXECUTABLE_FILE_get() { | |
14792 | PyObject *pyobj; | |
14793 | ||
14794 | { | |
14795 | #if wxUSE_UNICODE | |
14796 | pyobj = PyUnicode_FromWideChar((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len()); | |
14797 | #else | |
14798 | pyobj = PyString_FromStringAndSize((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len()); | |
14799 | #endif | |
14800 | } | |
14801 | return pyobj; | |
14802 | } | |
14803 | ||
14804 | ||
c32bde28 | 14805 | static int _wrap_ART_NORMAL_FILE_set(PyObject *) { |
d55e5bfc RD |
14806 | PyErr_SetString(PyExc_TypeError,"Variable ART_NORMAL_FILE is read-only."); |
14807 | return 1; | |
14808 | } | |
14809 | ||
14810 | ||
14811 | static PyObject *_wrap_ART_NORMAL_FILE_get() { | |
14812 | PyObject *pyobj; | |
14813 | ||
14814 | { | |
14815 | #if wxUSE_UNICODE | |
14816 | pyobj = PyUnicode_FromWideChar((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len()); | |
14817 | #else | |
14818 | pyobj = PyString_FromStringAndSize((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len()); | |
14819 | #endif | |
14820 | } | |
14821 | return pyobj; | |
14822 | } | |
14823 | ||
14824 | ||
c32bde28 | 14825 | static int _wrap_ART_TICK_MARK_set(PyObject *) { |
d55e5bfc RD |
14826 | PyErr_SetString(PyExc_TypeError,"Variable ART_TICK_MARK is read-only."); |
14827 | return 1; | |
14828 | } | |
14829 | ||
14830 | ||
14831 | static PyObject *_wrap_ART_TICK_MARK_get() { | |
14832 | PyObject *pyobj; | |
14833 | ||
14834 | { | |
14835 | #if wxUSE_UNICODE | |
14836 | pyobj = PyUnicode_FromWideChar((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len()); | |
14837 | #else | |
14838 | pyobj = PyString_FromStringAndSize((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len()); | |
14839 | #endif | |
14840 | } | |
14841 | return pyobj; | |
14842 | } | |
14843 | ||
14844 | ||
c32bde28 | 14845 | static int _wrap_ART_CROSS_MARK_set(PyObject *) { |
d55e5bfc RD |
14846 | PyErr_SetString(PyExc_TypeError,"Variable ART_CROSS_MARK is read-only."); |
14847 | return 1; | |
14848 | } | |
14849 | ||
14850 | ||
14851 | static PyObject *_wrap_ART_CROSS_MARK_get() { | |
14852 | PyObject *pyobj; | |
14853 | ||
14854 | { | |
14855 | #if wxUSE_UNICODE | |
14856 | pyobj = PyUnicode_FromWideChar((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len()); | |
14857 | #else | |
14858 | pyobj = PyString_FromStringAndSize((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len()); | |
14859 | #endif | |
14860 | } | |
14861 | return pyobj; | |
14862 | } | |
14863 | ||
14864 | ||
c32bde28 | 14865 | static int _wrap_ART_ERROR_set(PyObject *) { |
d55e5bfc RD |
14866 | PyErr_SetString(PyExc_TypeError,"Variable ART_ERROR is read-only."); |
14867 | return 1; | |
14868 | } | |
14869 | ||
14870 | ||
14871 | static PyObject *_wrap_ART_ERROR_get() { | |
14872 | PyObject *pyobj; | |
14873 | ||
14874 | { | |
14875 | #if wxUSE_UNICODE | |
14876 | pyobj = PyUnicode_FromWideChar((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len()); | |
14877 | #else | |
14878 | pyobj = PyString_FromStringAndSize((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len()); | |
14879 | #endif | |
14880 | } | |
14881 | return pyobj; | |
14882 | } | |
14883 | ||
14884 | ||
c32bde28 | 14885 | static int _wrap_ART_QUESTION_set(PyObject *) { |
d55e5bfc RD |
14886 | PyErr_SetString(PyExc_TypeError,"Variable ART_QUESTION is read-only."); |
14887 | return 1; | |
14888 | } | |
14889 | ||
14890 | ||
14891 | static PyObject *_wrap_ART_QUESTION_get() { | |
14892 | PyObject *pyobj; | |
14893 | ||
14894 | { | |
14895 | #if wxUSE_UNICODE | |
14896 | pyobj = PyUnicode_FromWideChar((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len()); | |
14897 | #else | |
14898 | pyobj = PyString_FromStringAndSize((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len()); | |
14899 | #endif | |
14900 | } | |
14901 | return pyobj; | |
14902 | } | |
14903 | ||
14904 | ||
c32bde28 | 14905 | static int _wrap_ART_WARNING_set(PyObject *) { |
d55e5bfc RD |
14906 | PyErr_SetString(PyExc_TypeError,"Variable ART_WARNING is read-only."); |
14907 | return 1; | |
14908 | } | |
14909 | ||
14910 | ||
14911 | static PyObject *_wrap_ART_WARNING_get() { | |
14912 | PyObject *pyobj; | |
14913 | ||
14914 | { | |
14915 | #if wxUSE_UNICODE | |
14916 | pyobj = PyUnicode_FromWideChar((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len()); | |
14917 | #else | |
14918 | pyobj = PyString_FromStringAndSize((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len()); | |
14919 | #endif | |
14920 | } | |
14921 | return pyobj; | |
14922 | } | |
14923 | ||
14924 | ||
c32bde28 | 14925 | static int _wrap_ART_INFORMATION_set(PyObject *) { |
d55e5bfc RD |
14926 | PyErr_SetString(PyExc_TypeError,"Variable ART_INFORMATION is read-only."); |
14927 | return 1; | |
14928 | } | |
14929 | ||
14930 | ||
14931 | static PyObject *_wrap_ART_INFORMATION_get() { | |
14932 | PyObject *pyobj; | |
14933 | ||
14934 | { | |
14935 | #if wxUSE_UNICODE | |
14936 | pyobj = PyUnicode_FromWideChar((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len()); | |
14937 | #else | |
14938 | pyobj = PyString_FromStringAndSize((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len()); | |
14939 | #endif | |
14940 | } | |
14941 | return pyobj; | |
14942 | } | |
14943 | ||
14944 | ||
c32bde28 | 14945 | static int _wrap_ART_MISSING_IMAGE_set(PyObject *) { |
d55e5bfc RD |
14946 | PyErr_SetString(PyExc_TypeError,"Variable ART_MISSING_IMAGE is read-only."); |
14947 | return 1; | |
14948 | } | |
14949 | ||
14950 | ||
14951 | static PyObject *_wrap_ART_MISSING_IMAGE_get() { | |
14952 | PyObject *pyobj; | |
14953 | ||
14954 | { | |
14955 | #if wxUSE_UNICODE | |
14956 | pyobj = PyUnicode_FromWideChar((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len()); | |
14957 | #else | |
14958 | pyobj = PyString_FromStringAndSize((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len()); | |
14959 | #endif | |
14960 | } | |
14961 | return pyobj; | |
14962 | } | |
14963 | ||
14964 | ||
c32bde28 | 14965 | static PyObject *_wrap_new_ArtProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14966 | PyObject *resultobj; |
14967 | wxPyArtProvider *result; | |
14968 | char *kwnames[] = { | |
14969 | NULL | |
14970 | }; | |
14971 | ||
14972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ArtProvider",kwnames)) goto fail; | |
14973 | { | |
0439c23b | 14974 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
14975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14976 | result = (wxPyArtProvider *)new wxPyArtProvider(); | |
14977 | ||
14978 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14979 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
14980 | } |
14981 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyArtProvider, 1); | |
14982 | return resultobj; | |
14983 | fail: | |
14984 | return NULL; | |
14985 | } | |
14986 | ||
14987 | ||
c32bde28 | 14988 | static PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14989 | PyObject *resultobj; |
14990 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
14991 | PyObject *arg2 = (PyObject *) 0 ; | |
14992 | PyObject *arg3 = (PyObject *) 0 ; | |
14993 | PyObject * obj0 = 0 ; | |
14994 | PyObject * obj1 = 0 ; | |
14995 | PyObject * obj2 = 0 ; | |
14996 | char *kwnames[] = { | |
14997 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
14998 | }; | |
14999 | ||
15000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ArtProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15001 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, | |
15002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15003 | arg2 = obj1; | |
15004 | arg3 = obj2; | |
15005 | { | |
15006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15007 | (arg1)->_setCallbackInfo(arg2,arg3); | |
15008 | ||
15009 | wxPyEndAllowThreads(__tstate); | |
15010 | if (PyErr_Occurred()) SWIG_fail; | |
15011 | } | |
15012 | Py_INCREF(Py_None); resultobj = Py_None; | |
15013 | return resultobj; | |
15014 | fail: | |
15015 | return NULL; | |
15016 | } | |
15017 | ||
15018 | ||
c32bde28 | 15019 | static PyObject *_wrap_ArtProvider_PushProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15020 | PyObject *resultobj; |
15021 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
15022 | PyObject * obj0 = 0 ; | |
15023 | char *kwnames[] = { | |
15024 | (char *) "provider", NULL | |
15025 | }; | |
15026 | ||
15027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) goto fail; | |
15028 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, | |
15029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15030 | { | |
15031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15032 | wxPyArtProvider::PushProvider(arg1); | |
15033 | ||
15034 | wxPyEndAllowThreads(__tstate); | |
15035 | if (PyErr_Occurred()) SWIG_fail; | |
15036 | } | |
15037 | Py_INCREF(Py_None); resultobj = Py_None; | |
15038 | return resultobj; | |
15039 | fail: | |
15040 | return NULL; | |
15041 | } | |
15042 | ||
15043 | ||
c32bde28 | 15044 | static PyObject *_wrap_ArtProvider_PopProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15045 | PyObject *resultobj; |
15046 | bool result; | |
15047 | char *kwnames[] = { | |
15048 | NULL | |
15049 | }; | |
15050 | ||
15051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ArtProvider_PopProvider",kwnames)) goto fail; | |
15052 | { | |
15053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15054 | result = (bool)wxPyArtProvider::PopProvider(); | |
15055 | ||
15056 | wxPyEndAllowThreads(__tstate); | |
15057 | if (PyErr_Occurred()) SWIG_fail; | |
15058 | } | |
15059 | { | |
15060 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15061 | } | |
15062 | return resultobj; | |
15063 | fail: | |
15064 | return NULL; | |
15065 | } | |
15066 | ||
15067 | ||
c32bde28 | 15068 | static PyObject *_wrap_ArtProvider_RemoveProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15069 | PyObject *resultobj; |
15070 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
15071 | bool result; | |
15072 | PyObject * obj0 = 0 ; | |
15073 | char *kwnames[] = { | |
15074 | (char *) "provider", NULL | |
15075 | }; | |
15076 | ||
15077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_RemoveProvider",kwnames,&obj0)) goto fail; | |
15078 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, | |
15079 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15080 | { | |
15081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15082 | result = (bool)wxPyArtProvider::RemoveProvider(arg1); | |
15083 | ||
15084 | wxPyEndAllowThreads(__tstate); | |
15085 | if (PyErr_Occurred()) SWIG_fail; | |
15086 | } | |
15087 | { | |
15088 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15089 | } | |
15090 | return resultobj; | |
15091 | fail: | |
15092 | return NULL; | |
15093 | } | |
15094 | ||
15095 | ||
c32bde28 | 15096 | static PyObject *_wrap_ArtProvider_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15097 | PyObject *resultobj; |
15098 | wxString *arg1 = 0 ; | |
15099 | wxString const &arg2_defvalue = wxPyART_OTHER ; | |
15100 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
15101 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
15102 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
15103 | wxBitmap result; | |
ae8162c8 RD |
15104 | bool temp1 = false ; |
15105 | bool temp2 = false ; | |
d55e5bfc RD |
15106 | wxSize temp3 ; |
15107 | PyObject * obj0 = 0 ; | |
15108 | PyObject * obj1 = 0 ; | |
15109 | PyObject * obj2 = 0 ; | |
15110 | char *kwnames[] = { | |
15111 | (char *) "id",(char *) "client",(char *) "size", NULL | |
15112 | }; | |
15113 | ||
15114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15115 | { | |
15116 | arg1 = wxString_in_helper(obj0); | |
15117 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 15118 | temp1 = true; |
d55e5bfc RD |
15119 | } |
15120 | if (obj1) { | |
15121 | { | |
15122 | arg2 = wxString_in_helper(obj1); | |
15123 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 15124 | temp2 = true; |
d55e5bfc RD |
15125 | } |
15126 | } | |
15127 | if (obj2) { | |
15128 | { | |
15129 | arg3 = &temp3; | |
15130 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
15131 | } | |
15132 | } | |
15133 | { | |
0439c23b | 15134 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15136 | result = wxPyArtProvider::GetBitmap((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3); | |
15137 | ||
15138 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15139 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
15140 | } |
15141 | { | |
15142 | wxBitmap * resultptr; | |
15143 | resultptr = new wxBitmap((wxBitmap &) result); | |
15144 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
15145 | } | |
15146 | { | |
15147 | if (temp1) | |
15148 | delete arg1; | |
15149 | } | |
15150 | { | |
15151 | if (temp2) | |
15152 | delete arg2; | |
15153 | } | |
15154 | return resultobj; | |
15155 | fail: | |
15156 | { | |
15157 | if (temp1) | |
15158 | delete arg1; | |
15159 | } | |
15160 | { | |
15161 | if (temp2) | |
15162 | delete arg2; | |
15163 | } | |
15164 | return NULL; | |
15165 | } | |
15166 | ||
15167 | ||
c32bde28 | 15168 | static PyObject *_wrap_ArtProvider_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15169 | PyObject *resultobj; |
15170 | wxString *arg1 = 0 ; | |
15171 | wxString const &arg2_defvalue = wxPyART_OTHER ; | |
15172 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
15173 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
15174 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
15175 | wxIcon result; | |
ae8162c8 RD |
15176 | bool temp1 = false ; |
15177 | bool temp2 = false ; | |
d55e5bfc RD |
15178 | wxSize temp3 ; |
15179 | PyObject * obj0 = 0 ; | |
15180 | PyObject * obj1 = 0 ; | |
15181 | PyObject * obj2 = 0 ; | |
15182 | char *kwnames[] = { | |
15183 | (char *) "id",(char *) "client",(char *) "size", NULL | |
15184 | }; | |
15185 | ||
15186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15187 | { | |
15188 | arg1 = wxString_in_helper(obj0); | |
15189 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 15190 | temp1 = true; |
d55e5bfc RD |
15191 | } |
15192 | if (obj1) { | |
15193 | { | |
15194 | arg2 = wxString_in_helper(obj1); | |
15195 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 15196 | temp2 = true; |
d55e5bfc RD |
15197 | } |
15198 | } | |
15199 | if (obj2) { | |
15200 | { | |
15201 | arg3 = &temp3; | |
15202 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
15203 | } | |
15204 | } | |
15205 | { | |
0439c23b | 15206 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15208 | result = wxPyArtProvider::GetIcon((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3); | |
15209 | ||
15210 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15211 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
15212 | } |
15213 | { | |
15214 | wxIcon * resultptr; | |
15215 | resultptr = new wxIcon((wxIcon &) result); | |
15216 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1); | |
15217 | } | |
15218 | { | |
15219 | if (temp1) | |
15220 | delete arg1; | |
15221 | } | |
15222 | { | |
15223 | if (temp2) | |
15224 | delete arg2; | |
15225 | } | |
15226 | return resultobj; | |
15227 | fail: | |
15228 | { | |
15229 | if (temp1) | |
15230 | delete arg1; | |
15231 | } | |
15232 | { | |
15233 | if (temp2) | |
15234 | delete arg2; | |
15235 | } | |
15236 | return NULL; | |
15237 | } | |
15238 | ||
15239 | ||
c32bde28 | 15240 | static PyObject *_wrap_ArtProvider_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15241 | PyObject *resultobj; |
15242 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
15243 | PyObject * obj0 = 0 ; | |
15244 | char *kwnames[] = { | |
15245 | (char *) "self", NULL | |
15246 | }; | |
15247 | ||
15248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Destroy",kwnames,&obj0)) goto fail; | |
15249 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider, | |
15250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15251 | { | |
15252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15253 | wxPyArtProvider_Destroy(arg1); | |
15254 | ||
15255 | wxPyEndAllowThreads(__tstate); | |
15256 | if (PyErr_Occurred()) SWIG_fail; | |
15257 | } | |
15258 | Py_INCREF(Py_None); resultobj = Py_None; | |
15259 | return resultobj; | |
15260 | fail: | |
15261 | return NULL; | |
15262 | } | |
15263 | ||
15264 | ||
c32bde28 | 15265 | static PyObject * ArtProvider_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
15266 | PyObject *obj; |
15267 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15268 | SWIG_TypeClientData(SWIGTYPE_p_wxPyArtProvider, obj); | |
15269 | Py_INCREF(obj); | |
15270 | return Py_BuildValue((char *)""); | |
15271 | } | |
c32bde28 | 15272 | static PyObject *_wrap_delete_ConfigBase(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15273 | PyObject *resultobj; |
15274 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15275 | PyObject * obj0 = 0 ; | |
15276 | char *kwnames[] = { | |
15277 | (char *) "self", NULL | |
15278 | }; | |
15279 | ||
15280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigBase",kwnames,&obj0)) goto fail; | |
15281 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15282 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15283 | { | |
15284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15285 | delete arg1; | |
15286 | ||
15287 | wxPyEndAllowThreads(__tstate); | |
15288 | if (PyErr_Occurred()) SWIG_fail; | |
15289 | } | |
15290 | Py_INCREF(Py_None); resultobj = Py_None; | |
15291 | return resultobj; | |
15292 | fail: | |
15293 | return NULL; | |
15294 | } | |
15295 | ||
15296 | ||
c32bde28 | 15297 | static PyObject *_wrap_ConfigBase_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15298 | PyObject *resultobj; |
15299 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15300 | wxConfigBase *result; | |
15301 | PyObject * obj0 = 0 ; | |
15302 | char *kwnames[] = { | |
15303 | (char *) "config", NULL | |
15304 | }; | |
15305 | ||
15306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_Set",kwnames,&obj0)) goto fail; | |
15307 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15308 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15309 | { | |
15310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15311 | result = (wxConfigBase *)wxConfigBase::Set(arg1); | |
15312 | ||
15313 | wxPyEndAllowThreads(__tstate); | |
15314 | if (PyErr_Occurred()) SWIG_fail; | |
15315 | } | |
15316 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); | |
15317 | return resultobj; | |
15318 | fail: | |
15319 | return NULL; | |
15320 | } | |
15321 | ||
15322 | ||
c32bde28 | 15323 | static PyObject *_wrap_ConfigBase_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 15324 | PyObject *resultobj; |
ae8162c8 | 15325 | bool arg1 = (bool) true ; |
d55e5bfc RD |
15326 | wxConfigBase *result; |
15327 | PyObject * obj0 = 0 ; | |
15328 | char *kwnames[] = { | |
15329 | (char *) "createOnDemand", NULL | |
15330 | }; | |
15331 | ||
15332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ConfigBase_Get",kwnames,&obj0)) goto fail; | |
15333 | if (obj0) { | |
c32bde28 | 15334 | arg1 = (bool)SWIG_As_bool(obj0); |
d55e5bfc RD |
15335 | if (PyErr_Occurred()) SWIG_fail; |
15336 | } | |
15337 | { | |
15338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15339 | result = (wxConfigBase *)wxConfigBase::Get(arg1); | |
15340 | ||
15341 | wxPyEndAllowThreads(__tstate); | |
15342 | if (PyErr_Occurred()) SWIG_fail; | |
15343 | } | |
15344 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); | |
15345 | return resultobj; | |
15346 | fail: | |
15347 | return NULL; | |
15348 | } | |
15349 | ||
15350 | ||
c32bde28 | 15351 | static PyObject *_wrap_ConfigBase_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15352 | PyObject *resultobj; |
15353 | wxConfigBase *result; | |
15354 | char *kwnames[] = { | |
15355 | NULL | |
15356 | }; | |
15357 | ||
15358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_Create",kwnames)) goto fail; | |
15359 | { | |
15360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15361 | result = (wxConfigBase *)wxConfigBase::Create(); | |
15362 | ||
15363 | wxPyEndAllowThreads(__tstate); | |
15364 | if (PyErr_Occurred()) SWIG_fail; | |
15365 | } | |
15366 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0); | |
15367 | return resultobj; | |
15368 | fail: | |
15369 | return NULL; | |
15370 | } | |
15371 | ||
15372 | ||
c32bde28 | 15373 | static PyObject *_wrap_ConfigBase_DontCreateOnDemand(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15374 | PyObject *resultobj; |
15375 | char *kwnames[] = { | |
15376 | NULL | |
15377 | }; | |
15378 | ||
15379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_DontCreateOnDemand",kwnames)) goto fail; | |
15380 | { | |
15381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15382 | wxConfigBase::DontCreateOnDemand(); | |
15383 | ||
15384 | wxPyEndAllowThreads(__tstate); | |
15385 | if (PyErr_Occurred()) SWIG_fail; | |
15386 | } | |
15387 | Py_INCREF(Py_None); resultobj = Py_None; | |
15388 | return resultobj; | |
15389 | fail: | |
15390 | return NULL; | |
15391 | } | |
15392 | ||
15393 | ||
c32bde28 | 15394 | static PyObject *_wrap_ConfigBase_SetPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15395 | PyObject *resultobj; |
15396 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15397 | wxString *arg2 = 0 ; | |
ae8162c8 | 15398 | bool temp2 = false ; |
d55e5bfc RD |
15399 | PyObject * obj0 = 0 ; |
15400 | PyObject * obj1 = 0 ; | |
15401 | char *kwnames[] = { | |
15402 | (char *) "self",(char *) "path", NULL | |
15403 | }; | |
15404 | ||
15405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
15406 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15407 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15408 | { | |
15409 | arg2 = wxString_in_helper(obj1); | |
15410 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 15411 | temp2 = true; |
d55e5bfc RD |
15412 | } |
15413 | { | |
15414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15415 | (arg1)->SetPath((wxString const &)*arg2); | |
15416 | ||
15417 | wxPyEndAllowThreads(__tstate); | |
15418 | if (PyErr_Occurred()) SWIG_fail; | |
15419 | } | |
15420 | Py_INCREF(Py_None); resultobj = Py_None; | |
15421 | { | |
15422 | if (temp2) | |
15423 | delete arg2; | |
15424 | } | |
15425 | return resultobj; | |
15426 | fail: | |
15427 | { | |
15428 | if (temp2) | |
15429 | delete arg2; | |
15430 | } | |
15431 | return NULL; | |
15432 | } | |
15433 | ||
15434 | ||
c32bde28 | 15435 | static PyObject *_wrap_ConfigBase_GetPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15436 | PyObject *resultobj; |
15437 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15438 | wxString *result; | |
15439 | PyObject * obj0 = 0 ; | |
15440 | char *kwnames[] = { | |
15441 | (char *) "self", NULL | |
15442 | }; | |
15443 | ||
15444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetPath",kwnames,&obj0)) goto fail; | |
15445 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15446 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15447 | { | |
15448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15449 | { | |
15450 | wxString const &_result_ref = ((wxConfigBase const *)arg1)->GetPath(); | |
15451 | result = (wxString *) &_result_ref; | |
15452 | } | |
15453 | ||
15454 | wxPyEndAllowThreads(__tstate); | |
15455 | if (PyErr_Occurred()) SWIG_fail; | |
15456 | } | |
15457 | { | |
15458 | #if wxUSE_UNICODE | |
15459 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
15460 | #else | |
15461 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
15462 | #endif | |
15463 | } | |
15464 | return resultobj; | |
15465 | fail: | |
15466 | return NULL; | |
15467 | } | |
15468 | ||
15469 | ||
c32bde28 | 15470 | static PyObject *_wrap_ConfigBase_GetFirstGroup(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15471 | PyObject *resultobj; |
15472 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15473 | PyObject *result; | |
15474 | PyObject * obj0 = 0 ; | |
15475 | char *kwnames[] = { | |
15476 | (char *) "self", NULL | |
15477 | }; | |
15478 | ||
15479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstGroup",kwnames,&obj0)) goto fail; | |
15480 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15481 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15482 | { | |
15483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15484 | result = (PyObject *)wxConfigBase_GetFirstGroup(arg1); | |
15485 | ||
15486 | wxPyEndAllowThreads(__tstate); | |
15487 | if (PyErr_Occurred()) SWIG_fail; | |
15488 | } | |
15489 | resultobj = result; | |
15490 | return resultobj; | |
15491 | fail: | |
15492 | return NULL; | |
15493 | } | |
15494 | ||
15495 | ||
c32bde28 | 15496 | static PyObject *_wrap_ConfigBase_GetNextGroup(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15497 | PyObject *resultobj; |
15498 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15499 | long arg2 ; | |
15500 | PyObject *result; | |
15501 | PyObject * obj0 = 0 ; | |
15502 | PyObject * obj1 = 0 ; | |
15503 | char *kwnames[] = { | |
15504 | (char *) "self",(char *) "index", NULL | |
15505 | }; | |
15506 | ||
15507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextGroup",kwnames,&obj0,&obj1)) goto fail; | |
15508 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15510 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
15511 | if (PyErr_Occurred()) SWIG_fail; |
15512 | { | |
15513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15514 | result = (PyObject *)wxConfigBase_GetNextGroup(arg1,arg2); | |
15515 | ||
15516 | wxPyEndAllowThreads(__tstate); | |
15517 | if (PyErr_Occurred()) SWIG_fail; | |
15518 | } | |
15519 | resultobj = result; | |
15520 | return resultobj; | |
15521 | fail: | |
15522 | return NULL; | |
15523 | } | |
15524 | ||
15525 | ||
c32bde28 | 15526 | static PyObject *_wrap_ConfigBase_GetFirstEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15527 | PyObject *resultobj; |
15528 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15529 | PyObject *result; | |
15530 | PyObject * obj0 = 0 ; | |
15531 | char *kwnames[] = { | |
15532 | (char *) "self", NULL | |
15533 | }; | |
15534 | ||
15535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstEntry",kwnames,&obj0)) goto fail; | |
15536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15538 | { | |
15539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15540 | result = (PyObject *)wxConfigBase_GetFirstEntry(arg1); | |
15541 | ||
15542 | wxPyEndAllowThreads(__tstate); | |
15543 | if (PyErr_Occurred()) SWIG_fail; | |
15544 | } | |
15545 | resultobj = result; | |
15546 | return resultobj; | |
15547 | fail: | |
15548 | return NULL; | |
15549 | } | |
15550 | ||
15551 | ||
c32bde28 | 15552 | static PyObject *_wrap_ConfigBase_GetNextEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15553 | PyObject *resultobj; |
15554 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15555 | long arg2 ; | |
15556 | PyObject *result; | |
15557 | PyObject * obj0 = 0 ; | |
15558 | PyObject * obj1 = 0 ; | |
15559 | char *kwnames[] = { | |
15560 | (char *) "self",(char *) "index", NULL | |
15561 | }; | |
15562 | ||
15563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextEntry",kwnames,&obj0,&obj1)) goto fail; | |
15564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 15566 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
15567 | if (PyErr_Occurred()) SWIG_fail; |
15568 | { | |
15569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15570 | result = (PyObject *)wxConfigBase_GetNextEntry(arg1,arg2); | |
15571 | ||
15572 | wxPyEndAllowThreads(__tstate); | |
15573 | if (PyErr_Occurred()) SWIG_fail; | |
15574 | } | |
15575 | resultobj = result; | |
15576 | return resultobj; | |
15577 | fail: | |
15578 | return NULL; | |
15579 | } | |
15580 | ||
15581 | ||
c32bde28 | 15582 | static PyObject *_wrap_ConfigBase_GetNumberOfEntries(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15583 | PyObject *resultobj; |
15584 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
ae8162c8 | 15585 | bool arg2 = (bool) false ; |
d55e5bfc RD |
15586 | size_t result; |
15587 | PyObject * obj0 = 0 ; | |
15588 | PyObject * obj1 = 0 ; | |
15589 | char *kwnames[] = { | |
15590 | (char *) "self",(char *) "recursive", NULL | |
15591 | }; | |
15592 | ||
15593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfEntries",kwnames,&obj0,&obj1)) goto fail; | |
15594 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15595 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15596 | if (obj1) { | |
c32bde28 | 15597 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
15598 | if (PyErr_Occurred()) SWIG_fail; |
15599 | } | |
15600 | { | |
15601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15602 | result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfEntries(arg2); | |
15603 | ||
15604 | wxPyEndAllowThreads(__tstate); | |
15605 | if (PyErr_Occurred()) SWIG_fail; | |
15606 | } | |
c32bde28 | 15607 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
15608 | return resultobj; |
15609 | fail: | |
15610 | return NULL; | |
15611 | } | |
15612 | ||
15613 | ||
c32bde28 | 15614 | static PyObject *_wrap_ConfigBase_GetNumberOfGroups(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15615 | PyObject *resultobj; |
15616 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
ae8162c8 | 15617 | bool arg2 = (bool) false ; |
d55e5bfc RD |
15618 | size_t result; |
15619 | PyObject * obj0 = 0 ; | |
15620 | PyObject * obj1 = 0 ; | |
15621 | char *kwnames[] = { | |
15622 | (char *) "self",(char *) "recursive", NULL | |
15623 | }; | |
15624 | ||
15625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfGroups",kwnames,&obj0,&obj1)) goto fail; | |
15626 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15627 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15628 | if (obj1) { | |
c32bde28 | 15629 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
15630 | if (PyErr_Occurred()) SWIG_fail; |
15631 | } | |
15632 | { | |
15633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15634 | result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfGroups(arg2); | |
15635 | ||
15636 | wxPyEndAllowThreads(__tstate); | |
15637 | if (PyErr_Occurred()) SWIG_fail; | |
15638 | } | |
c32bde28 | 15639 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
15640 | return resultobj; |
15641 | fail: | |
15642 | return NULL; | |
15643 | } | |
15644 | ||
15645 | ||
c32bde28 | 15646 | static PyObject *_wrap_ConfigBase_HasGroup(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15647 | PyObject *resultobj; |
15648 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15649 | wxString *arg2 = 0 ; | |
15650 | bool result; | |
ae8162c8 | 15651 | bool temp2 = false ; |
d55e5bfc RD |
15652 | PyObject * obj0 = 0 ; |
15653 | PyObject * obj1 = 0 ; | |
15654 | char *kwnames[] = { | |
15655 | (char *) "self",(char *) "name", NULL | |
15656 | }; | |
15657 | ||
15658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasGroup",kwnames,&obj0,&obj1)) goto fail; | |
15659 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15660 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15661 | { | |
15662 | arg2 = wxString_in_helper(obj1); | |
15663 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 15664 | temp2 = true; |
d55e5bfc RD |
15665 | } |
15666 | { | |
15667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15668 | result = (bool)((wxConfigBase const *)arg1)->HasGroup((wxString const &)*arg2); | |
15669 | ||
15670 | wxPyEndAllowThreads(__tstate); | |
15671 | if (PyErr_Occurred()) SWIG_fail; | |
15672 | } | |
15673 | { | |
15674 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15675 | } | |
15676 | { | |
15677 | if (temp2) | |
15678 | delete arg2; | |
15679 | } | |
15680 | return resultobj; | |
15681 | fail: | |
15682 | { | |
15683 | if (temp2) | |
15684 | delete arg2; | |
15685 | } | |
15686 | return NULL; | |
15687 | } | |
15688 | ||
15689 | ||
c32bde28 | 15690 | static PyObject *_wrap_ConfigBase_HasEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15691 | PyObject *resultobj; |
15692 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15693 | wxString *arg2 = 0 ; | |
15694 | bool result; | |
ae8162c8 | 15695 | bool temp2 = false ; |
d55e5bfc RD |
15696 | PyObject * obj0 = 0 ; |
15697 | PyObject * obj1 = 0 ; | |
15698 | char *kwnames[] = { | |
15699 | (char *) "self",(char *) "name", NULL | |
15700 | }; | |
15701 | ||
15702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasEntry",kwnames,&obj0,&obj1)) goto fail; | |
15703 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15704 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15705 | { | |
15706 | arg2 = wxString_in_helper(obj1); | |
15707 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 15708 | temp2 = true; |
d55e5bfc RD |
15709 | } |
15710 | { | |
15711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15712 | result = (bool)((wxConfigBase const *)arg1)->HasEntry((wxString const &)*arg2); | |
15713 | ||
15714 | wxPyEndAllowThreads(__tstate); | |
15715 | if (PyErr_Occurred()) SWIG_fail; | |
15716 | } | |
15717 | { | |
15718 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15719 | } | |
15720 | { | |
15721 | if (temp2) | |
15722 | delete arg2; | |
15723 | } | |
15724 | return resultobj; | |
15725 | fail: | |
15726 | { | |
15727 | if (temp2) | |
15728 | delete arg2; | |
15729 | } | |
15730 | return NULL; | |
15731 | } | |
15732 | ||
15733 | ||
c32bde28 | 15734 | static PyObject *_wrap_ConfigBase_Exists(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15735 | PyObject *resultobj; |
15736 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15737 | wxString *arg2 = 0 ; | |
15738 | bool result; | |
ae8162c8 | 15739 | bool temp2 = false ; |
d55e5bfc RD |
15740 | PyObject * obj0 = 0 ; |
15741 | PyObject * obj1 = 0 ; | |
15742 | char *kwnames[] = { | |
15743 | (char *) "self",(char *) "name", NULL | |
15744 | }; | |
15745 | ||
15746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_Exists",kwnames,&obj0,&obj1)) goto fail; | |
15747 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15748 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15749 | { | |
15750 | arg2 = wxString_in_helper(obj1); | |
15751 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 15752 | temp2 = true; |
d55e5bfc RD |
15753 | } |
15754 | { | |
15755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15756 | result = (bool)((wxConfigBase const *)arg1)->Exists((wxString const &)*arg2); | |
15757 | ||
15758 | wxPyEndAllowThreads(__tstate); | |
15759 | if (PyErr_Occurred()) SWIG_fail; | |
15760 | } | |
15761 | { | |
15762 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15763 | } | |
15764 | { | |
15765 | if (temp2) | |
15766 | delete arg2; | |
15767 | } | |
15768 | return resultobj; | |
15769 | fail: | |
15770 | { | |
15771 | if (temp2) | |
15772 | delete arg2; | |
15773 | } | |
15774 | return NULL; | |
15775 | } | |
15776 | ||
15777 | ||
c32bde28 | 15778 | static PyObject *_wrap_ConfigBase_GetEntryType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15779 | PyObject *resultobj; |
15780 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15781 | wxString *arg2 = 0 ; | |
15782 | int result; | |
ae8162c8 | 15783 | bool temp2 = false ; |
d55e5bfc RD |
15784 | PyObject * obj0 = 0 ; |
15785 | PyObject * obj1 = 0 ; | |
15786 | char *kwnames[] = { | |
15787 | (char *) "self",(char *) "name", NULL | |
15788 | }; | |
15789 | ||
15790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetEntryType",kwnames,&obj0,&obj1)) goto fail; | |
15791 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15792 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15793 | { | |
15794 | arg2 = wxString_in_helper(obj1); | |
15795 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 15796 | temp2 = true; |
d55e5bfc RD |
15797 | } |
15798 | { | |
15799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15800 | result = (int)((wxConfigBase const *)arg1)->GetEntryType((wxString const &)*arg2); | |
15801 | ||
15802 | wxPyEndAllowThreads(__tstate); | |
15803 | if (PyErr_Occurred()) SWIG_fail; | |
15804 | } | |
c32bde28 | 15805 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15806 | { |
15807 | if (temp2) | |
15808 | delete arg2; | |
15809 | } | |
15810 | return resultobj; | |
15811 | fail: | |
15812 | { | |
15813 | if (temp2) | |
15814 | delete arg2; | |
15815 | } | |
15816 | return NULL; | |
15817 | } | |
15818 | ||
15819 | ||
c32bde28 | 15820 | static PyObject *_wrap_ConfigBase_Read(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15821 | PyObject *resultobj; |
15822 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15823 | wxString *arg2 = 0 ; | |
15824 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
15825 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
15826 | wxString result; | |
ae8162c8 RD |
15827 | bool temp2 = false ; |
15828 | bool temp3 = false ; | |
d55e5bfc RD |
15829 | PyObject * obj0 = 0 ; |
15830 | PyObject * obj1 = 0 ; | |
15831 | PyObject * obj2 = 0 ; | |
15832 | char *kwnames[] = { | |
15833 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15834 | }; | |
15835 | ||
15836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_Read",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15837 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15838 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15839 | { | |
15840 | arg2 = wxString_in_helper(obj1); | |
15841 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 15842 | temp2 = true; |
d55e5bfc RD |
15843 | } |
15844 | if (obj2) { | |
15845 | { | |
15846 | arg3 = wxString_in_helper(obj2); | |
15847 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 15848 | temp3 = true; |
d55e5bfc RD |
15849 | } |
15850 | } | |
15851 | { | |
15852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15853 | result = (arg1)->Read((wxString const &)*arg2,(wxString const &)*arg3); | |
15854 | ||
15855 | wxPyEndAllowThreads(__tstate); | |
15856 | if (PyErr_Occurred()) SWIG_fail; | |
15857 | } | |
15858 | { | |
15859 | #if wxUSE_UNICODE | |
15860 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15861 | #else | |
15862 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15863 | #endif | |
15864 | } | |
15865 | { | |
15866 | if (temp2) | |
15867 | delete arg2; | |
15868 | } | |
15869 | { | |
15870 | if (temp3) | |
15871 | delete arg3; | |
15872 | } | |
15873 | return resultobj; | |
15874 | fail: | |
15875 | { | |
15876 | if (temp2) | |
15877 | delete arg2; | |
15878 | } | |
15879 | { | |
15880 | if (temp3) | |
15881 | delete arg3; | |
15882 | } | |
15883 | return NULL; | |
15884 | } | |
15885 | ||
15886 | ||
c32bde28 | 15887 | static PyObject *_wrap_ConfigBase_ReadInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15888 | PyObject *resultobj; |
15889 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15890 | wxString *arg2 = 0 ; | |
15891 | long arg3 = (long) 0 ; | |
15892 | long result; | |
ae8162c8 | 15893 | bool temp2 = false ; |
d55e5bfc RD |
15894 | PyObject * obj0 = 0 ; |
15895 | PyObject * obj1 = 0 ; | |
15896 | PyObject * obj2 = 0 ; | |
15897 | char *kwnames[] = { | |
15898 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15899 | }; | |
15900 | ||
15901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadInt",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15902 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15903 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15904 | { | |
15905 | arg2 = wxString_in_helper(obj1); | |
15906 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 15907 | temp2 = true; |
d55e5bfc RD |
15908 | } |
15909 | if (obj2) { | |
c32bde28 | 15910 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
15911 | if (PyErr_Occurred()) SWIG_fail; |
15912 | } | |
15913 | { | |
15914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15915 | result = (long)wxConfigBase_ReadInt(arg1,(wxString const &)*arg2,arg3); | |
15916 | ||
15917 | wxPyEndAllowThreads(__tstate); | |
15918 | if (PyErr_Occurred()) SWIG_fail; | |
15919 | } | |
c32bde28 | 15920 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
15921 | { |
15922 | if (temp2) | |
15923 | delete arg2; | |
15924 | } | |
15925 | return resultobj; | |
15926 | fail: | |
15927 | { | |
15928 | if (temp2) | |
15929 | delete arg2; | |
15930 | } | |
15931 | return NULL; | |
15932 | } | |
15933 | ||
15934 | ||
c32bde28 | 15935 | static PyObject *_wrap_ConfigBase_ReadFloat(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15936 | PyObject *resultobj; |
15937 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15938 | wxString *arg2 = 0 ; | |
15939 | double arg3 = (double) 0.0 ; | |
15940 | double result; | |
ae8162c8 | 15941 | bool temp2 = false ; |
d55e5bfc RD |
15942 | PyObject * obj0 = 0 ; |
15943 | PyObject * obj1 = 0 ; | |
15944 | PyObject * obj2 = 0 ; | |
15945 | char *kwnames[] = { | |
15946 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15947 | }; | |
15948 | ||
15949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadFloat",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15950 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15951 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15952 | { | |
15953 | arg2 = wxString_in_helper(obj1); | |
15954 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 15955 | temp2 = true; |
d55e5bfc RD |
15956 | } |
15957 | if (obj2) { | |
c32bde28 | 15958 | arg3 = (double)SWIG_As_double(obj2); |
d55e5bfc RD |
15959 | if (PyErr_Occurred()) SWIG_fail; |
15960 | } | |
15961 | { | |
15962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15963 | result = (double)wxConfigBase_ReadFloat(arg1,(wxString const &)*arg2,arg3); | |
15964 | ||
15965 | wxPyEndAllowThreads(__tstate); | |
15966 | if (PyErr_Occurred()) SWIG_fail; | |
15967 | } | |
c32bde28 | 15968 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
15969 | { |
15970 | if (temp2) | |
15971 | delete arg2; | |
15972 | } | |
15973 | return resultobj; | |
15974 | fail: | |
15975 | { | |
15976 | if (temp2) | |
15977 | delete arg2; | |
15978 | } | |
15979 | return NULL; | |
15980 | } | |
15981 | ||
15982 | ||
c32bde28 | 15983 | static PyObject *_wrap_ConfigBase_ReadBool(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15984 | PyObject *resultobj; |
15985 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
15986 | wxString *arg2 = 0 ; | |
ae8162c8 | 15987 | bool arg3 = (bool) false ; |
d55e5bfc | 15988 | bool result; |
ae8162c8 | 15989 | bool temp2 = false ; |
d55e5bfc RD |
15990 | PyObject * obj0 = 0 ; |
15991 | PyObject * obj1 = 0 ; | |
15992 | PyObject * obj2 = 0 ; | |
15993 | char *kwnames[] = { | |
15994 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
15995 | }; | |
15996 | ||
15997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadBool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15998 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
15999 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16000 | { | |
16001 | arg2 = wxString_in_helper(obj1); | |
16002 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 16003 | temp2 = true; |
d55e5bfc RD |
16004 | } |
16005 | if (obj2) { | |
c32bde28 | 16006 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
16007 | if (PyErr_Occurred()) SWIG_fail; |
16008 | } | |
16009 | { | |
16010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16011 | result = (bool)wxConfigBase_ReadBool(arg1,(wxString const &)*arg2,arg3); | |
16012 | ||
16013 | wxPyEndAllowThreads(__tstate); | |
16014 | if (PyErr_Occurred()) SWIG_fail; | |
16015 | } | |
16016 | { | |
16017 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16018 | } | |
16019 | { | |
16020 | if (temp2) | |
16021 | delete arg2; | |
16022 | } | |
16023 | return resultobj; | |
16024 | fail: | |
16025 | { | |
16026 | if (temp2) | |
16027 | delete arg2; | |
16028 | } | |
16029 | return NULL; | |
16030 | } | |
16031 | ||
16032 | ||
c32bde28 | 16033 | static PyObject *_wrap_ConfigBase_Write(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16034 | PyObject *resultobj; |
16035 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16036 | wxString *arg2 = 0 ; | |
16037 | wxString *arg3 = 0 ; | |
16038 | bool result; | |
ae8162c8 RD |
16039 | bool temp2 = false ; |
16040 | bool temp3 = false ; | |
d55e5bfc RD |
16041 | PyObject * obj0 = 0 ; |
16042 | PyObject * obj1 = 0 ; | |
16043 | PyObject * obj2 = 0 ; | |
16044 | char *kwnames[] = { | |
16045 | (char *) "self",(char *) "key",(char *) "value", NULL | |
16046 | }; | |
16047 | ||
16048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_Write",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16049 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16050 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16051 | { | |
16052 | arg2 = wxString_in_helper(obj1); | |
16053 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 16054 | temp2 = true; |
d55e5bfc RD |
16055 | } |
16056 | { | |
16057 | arg3 = wxString_in_helper(obj2); | |
16058 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 16059 | temp3 = true; |
d55e5bfc RD |
16060 | } |
16061 | { | |
16062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16063 | result = (bool)(arg1)->Write((wxString const &)*arg2,(wxString const &)*arg3); | |
16064 | ||
16065 | wxPyEndAllowThreads(__tstate); | |
16066 | if (PyErr_Occurred()) SWIG_fail; | |
16067 | } | |
16068 | { | |
16069 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16070 | } | |
16071 | { | |
16072 | if (temp2) | |
16073 | delete arg2; | |
16074 | } | |
16075 | { | |
16076 | if (temp3) | |
16077 | delete arg3; | |
16078 | } | |
16079 | return resultobj; | |
16080 | fail: | |
16081 | { | |
16082 | if (temp2) | |
16083 | delete arg2; | |
16084 | } | |
16085 | { | |
16086 | if (temp3) | |
16087 | delete arg3; | |
16088 | } | |
16089 | return NULL; | |
16090 | } | |
16091 | ||
16092 | ||
c32bde28 | 16093 | static PyObject *_wrap_ConfigBase_WriteInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16094 | PyObject *resultobj; |
16095 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16096 | wxString *arg2 = 0 ; | |
16097 | long arg3 ; | |
16098 | bool result; | |
ae8162c8 | 16099 | bool temp2 = false ; |
d55e5bfc RD |
16100 | PyObject * obj0 = 0 ; |
16101 | PyObject * obj1 = 0 ; | |
16102 | PyObject * obj2 = 0 ; | |
16103 | char *kwnames[] = { | |
16104 | (char *) "self",(char *) "key",(char *) "value", NULL | |
16105 | }; | |
16106 | ||
16107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteInt",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16108 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16109 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16110 | { | |
16111 | arg2 = wxString_in_helper(obj1); | |
16112 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 16113 | temp2 = true; |
d55e5bfc | 16114 | } |
c32bde28 | 16115 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
16116 | if (PyErr_Occurred()) SWIG_fail; |
16117 | { | |
16118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16119 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
16120 | ||
16121 | wxPyEndAllowThreads(__tstate); | |
16122 | if (PyErr_Occurred()) SWIG_fail; | |
16123 | } | |
16124 | { | |
16125 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16126 | } | |
16127 | { | |
16128 | if (temp2) | |
16129 | delete arg2; | |
16130 | } | |
16131 | return resultobj; | |
16132 | fail: | |
16133 | { | |
16134 | if (temp2) | |
16135 | delete arg2; | |
16136 | } | |
16137 | return NULL; | |
16138 | } | |
16139 | ||
16140 | ||
c32bde28 | 16141 | static PyObject *_wrap_ConfigBase_WriteFloat(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16142 | PyObject *resultobj; |
16143 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16144 | wxString *arg2 = 0 ; | |
16145 | double arg3 ; | |
16146 | bool result; | |
ae8162c8 | 16147 | bool temp2 = false ; |
d55e5bfc RD |
16148 | PyObject * obj0 = 0 ; |
16149 | PyObject * obj1 = 0 ; | |
16150 | PyObject * obj2 = 0 ; | |
16151 | char *kwnames[] = { | |
16152 | (char *) "self",(char *) "key",(char *) "value", NULL | |
16153 | }; | |
16154 | ||
16155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteFloat",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16156 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16157 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16158 | { | |
16159 | arg2 = wxString_in_helper(obj1); | |
16160 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 16161 | temp2 = true; |
d55e5bfc | 16162 | } |
c32bde28 | 16163 | arg3 = (double)SWIG_As_double(obj2); |
d55e5bfc RD |
16164 | if (PyErr_Occurred()) SWIG_fail; |
16165 | { | |
16166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16167 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
16168 | ||
16169 | wxPyEndAllowThreads(__tstate); | |
16170 | if (PyErr_Occurred()) SWIG_fail; | |
16171 | } | |
16172 | { | |
16173 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16174 | } | |
16175 | { | |
16176 | if (temp2) | |
16177 | delete arg2; | |
16178 | } | |
16179 | return resultobj; | |
16180 | fail: | |
16181 | { | |
16182 | if (temp2) | |
16183 | delete arg2; | |
16184 | } | |
16185 | return NULL; | |
16186 | } | |
16187 | ||
16188 | ||
c32bde28 | 16189 | static PyObject *_wrap_ConfigBase_WriteBool(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16190 | PyObject *resultobj; |
16191 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16192 | wxString *arg2 = 0 ; | |
16193 | bool arg3 ; | |
16194 | bool result; | |
ae8162c8 | 16195 | bool temp2 = false ; |
d55e5bfc RD |
16196 | PyObject * obj0 = 0 ; |
16197 | PyObject * obj1 = 0 ; | |
16198 | PyObject * obj2 = 0 ; | |
16199 | char *kwnames[] = { | |
16200 | (char *) "self",(char *) "key",(char *) "value", NULL | |
16201 | }; | |
16202 | ||
16203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteBool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16204 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16205 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16206 | { | |
16207 | arg2 = wxString_in_helper(obj1); | |
16208 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 16209 | temp2 = true; |
d55e5bfc | 16210 | } |
c32bde28 | 16211 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
16212 | if (PyErr_Occurred()) SWIG_fail; |
16213 | { | |
16214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16215 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
16216 | ||
16217 | wxPyEndAllowThreads(__tstate); | |
16218 | if (PyErr_Occurred()) SWIG_fail; | |
16219 | } | |
16220 | { | |
16221 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16222 | } | |
16223 | { | |
16224 | if (temp2) | |
16225 | delete arg2; | |
16226 | } | |
16227 | return resultobj; | |
16228 | fail: | |
16229 | { | |
16230 | if (temp2) | |
16231 | delete arg2; | |
16232 | } | |
16233 | return NULL; | |
16234 | } | |
16235 | ||
16236 | ||
c32bde28 | 16237 | static PyObject *_wrap_ConfigBase_Flush(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16238 | PyObject *resultobj; |
16239 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
ae8162c8 | 16240 | bool arg2 = (bool) false ; |
d55e5bfc RD |
16241 | bool result; |
16242 | PyObject * obj0 = 0 ; | |
16243 | PyObject * obj1 = 0 ; | |
16244 | char *kwnames[] = { | |
16245 | (char *) "self",(char *) "currentOnly", NULL | |
16246 | }; | |
16247 | ||
16248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_Flush",kwnames,&obj0,&obj1)) goto fail; | |
16249 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16251 | if (obj1) { | |
c32bde28 | 16252 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
16253 | if (PyErr_Occurred()) SWIG_fail; |
16254 | } | |
16255 | { | |
16256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16257 | result = (bool)(arg1)->Flush(arg2); | |
16258 | ||
16259 | wxPyEndAllowThreads(__tstate); | |
16260 | if (PyErr_Occurred()) SWIG_fail; | |
16261 | } | |
16262 | { | |
16263 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16264 | } | |
16265 | return resultobj; | |
16266 | fail: | |
16267 | return NULL; | |
16268 | } | |
16269 | ||
16270 | ||
c32bde28 | 16271 | static PyObject *_wrap_ConfigBase_RenameEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16272 | PyObject *resultobj; |
16273 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16274 | wxString *arg2 = 0 ; | |
16275 | wxString *arg3 = 0 ; | |
16276 | bool result; | |
ae8162c8 RD |
16277 | bool temp2 = false ; |
16278 | bool temp3 = false ; | |
d55e5bfc RD |
16279 | PyObject * obj0 = 0 ; |
16280 | PyObject * obj1 = 0 ; | |
16281 | PyObject * obj2 = 0 ; | |
16282 | char *kwnames[] = { | |
16283 | (char *) "self",(char *) "oldName",(char *) "newName", NULL | |
16284 | }; | |
16285 | ||
16286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16287 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16289 | { | |
16290 | arg2 = wxString_in_helper(obj1); | |
16291 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 16292 | temp2 = true; |
d55e5bfc RD |
16293 | } |
16294 | { | |
16295 | arg3 = wxString_in_helper(obj2); | |
16296 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 16297 | temp3 = true; |
d55e5bfc RD |
16298 | } |
16299 | { | |
16300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16301 | result = (bool)(arg1)->RenameEntry((wxString const &)*arg2,(wxString const &)*arg3); | |
16302 | ||
16303 | wxPyEndAllowThreads(__tstate); | |
16304 | if (PyErr_Occurred()) SWIG_fail; | |
16305 | } | |
16306 | { | |
16307 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16308 | } | |
16309 | { | |
16310 | if (temp2) | |
16311 | delete arg2; | |
16312 | } | |
16313 | { | |
16314 | if (temp3) | |
16315 | delete arg3; | |
16316 | } | |
16317 | return resultobj; | |
16318 | fail: | |
16319 | { | |
16320 | if (temp2) | |
16321 | delete arg2; | |
16322 | } | |
16323 | { | |
16324 | if (temp3) | |
16325 | delete arg3; | |
16326 | } | |
16327 | return NULL; | |
16328 | } | |
16329 | ||
16330 | ||
c32bde28 | 16331 | static PyObject *_wrap_ConfigBase_RenameGroup(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16332 | PyObject *resultobj; |
16333 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16334 | wxString *arg2 = 0 ; | |
16335 | wxString *arg3 = 0 ; | |
16336 | bool result; | |
ae8162c8 RD |
16337 | bool temp2 = false ; |
16338 | bool temp3 = false ; | |
d55e5bfc RD |
16339 | PyObject * obj0 = 0 ; |
16340 | PyObject * obj1 = 0 ; | |
16341 | PyObject * obj2 = 0 ; | |
16342 | char *kwnames[] = { | |
16343 | (char *) "self",(char *) "oldName",(char *) "newName", NULL | |
16344 | }; | |
16345 | ||
16346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameGroup",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16347 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16348 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16349 | { | |
16350 | arg2 = wxString_in_helper(obj1); | |
16351 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 16352 | temp2 = true; |
d55e5bfc RD |
16353 | } |
16354 | { | |
16355 | arg3 = wxString_in_helper(obj2); | |
16356 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 16357 | temp3 = true; |
d55e5bfc RD |
16358 | } |
16359 | { | |
16360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16361 | result = (bool)(arg1)->RenameGroup((wxString const &)*arg2,(wxString const &)*arg3); | |
16362 | ||
16363 | wxPyEndAllowThreads(__tstate); | |
16364 | if (PyErr_Occurred()) SWIG_fail; | |
16365 | } | |
16366 | { | |
16367 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16368 | } | |
16369 | { | |
16370 | if (temp2) | |
16371 | delete arg2; | |
16372 | } | |
16373 | { | |
16374 | if (temp3) | |
16375 | delete arg3; | |
16376 | } | |
16377 | return resultobj; | |
16378 | fail: | |
16379 | { | |
16380 | if (temp2) | |
16381 | delete arg2; | |
16382 | } | |
16383 | { | |
16384 | if (temp3) | |
16385 | delete arg3; | |
16386 | } | |
16387 | return NULL; | |
16388 | } | |
16389 | ||
16390 | ||
c32bde28 | 16391 | static PyObject *_wrap_ConfigBase_DeleteEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16392 | PyObject *resultobj; |
16393 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16394 | wxString *arg2 = 0 ; | |
ae8162c8 | 16395 | bool arg3 = (bool) true ; |
d55e5bfc | 16396 | bool result; |
ae8162c8 | 16397 | bool temp2 = false ; |
d55e5bfc RD |
16398 | PyObject * obj0 = 0 ; |
16399 | PyObject * obj1 = 0 ; | |
16400 | PyObject * obj2 = 0 ; | |
16401 | char *kwnames[] = { | |
16402 | (char *) "self",(char *) "key",(char *) "deleteGroupIfEmpty", NULL | |
16403 | }; | |
16404 | ||
16405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_DeleteEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16406 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16407 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16408 | { | |
16409 | arg2 = wxString_in_helper(obj1); | |
16410 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 16411 | temp2 = true; |
d55e5bfc RD |
16412 | } |
16413 | if (obj2) { | |
c32bde28 | 16414 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
16415 | if (PyErr_Occurred()) SWIG_fail; |
16416 | } | |
16417 | { | |
16418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16419 | result = (bool)(arg1)->DeleteEntry((wxString const &)*arg2,arg3); | |
16420 | ||
16421 | wxPyEndAllowThreads(__tstate); | |
16422 | if (PyErr_Occurred()) SWIG_fail; | |
16423 | } | |
16424 | { | |
16425 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16426 | } | |
16427 | { | |
16428 | if (temp2) | |
16429 | delete arg2; | |
16430 | } | |
16431 | return resultobj; | |
16432 | fail: | |
16433 | { | |
16434 | if (temp2) | |
16435 | delete arg2; | |
16436 | } | |
16437 | return NULL; | |
16438 | } | |
16439 | ||
16440 | ||
c32bde28 | 16441 | static PyObject *_wrap_ConfigBase_DeleteGroup(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16442 | PyObject *resultobj; |
16443 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16444 | wxString *arg2 = 0 ; | |
16445 | bool result; | |
ae8162c8 | 16446 | bool temp2 = false ; |
d55e5bfc RD |
16447 | PyObject * obj0 = 0 ; |
16448 | PyObject * obj1 = 0 ; | |
16449 | char *kwnames[] = { | |
16450 | (char *) "self",(char *) "key", NULL | |
16451 | }; | |
16452 | ||
16453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_DeleteGroup",kwnames,&obj0,&obj1)) goto fail; | |
16454 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16455 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16456 | { | |
16457 | arg2 = wxString_in_helper(obj1); | |
16458 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 16459 | temp2 = true; |
d55e5bfc RD |
16460 | } |
16461 | { | |
16462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16463 | result = (bool)(arg1)->DeleteGroup((wxString const &)*arg2); | |
16464 | ||
16465 | wxPyEndAllowThreads(__tstate); | |
16466 | if (PyErr_Occurred()) SWIG_fail; | |
16467 | } | |
16468 | { | |
16469 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16470 | } | |
16471 | { | |
16472 | if (temp2) | |
16473 | delete arg2; | |
16474 | } | |
16475 | return resultobj; | |
16476 | fail: | |
16477 | { | |
16478 | if (temp2) | |
16479 | delete arg2; | |
16480 | } | |
16481 | return NULL; | |
16482 | } | |
16483 | ||
16484 | ||
c32bde28 | 16485 | static PyObject *_wrap_ConfigBase_DeleteAll(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16486 | PyObject *resultobj; |
16487 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16488 | bool result; | |
16489 | PyObject * obj0 = 0 ; | |
16490 | char *kwnames[] = { | |
16491 | (char *) "self", NULL | |
16492 | }; | |
16493 | ||
16494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_DeleteAll",kwnames,&obj0)) goto fail; | |
16495 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16496 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16497 | { | |
16498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16499 | result = (bool)(arg1)->DeleteAll(); | |
16500 | ||
16501 | wxPyEndAllowThreads(__tstate); | |
16502 | if (PyErr_Occurred()) SWIG_fail; | |
16503 | } | |
16504 | { | |
16505 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16506 | } | |
16507 | return resultobj; | |
16508 | fail: | |
16509 | return NULL; | |
16510 | } | |
16511 | ||
16512 | ||
c32bde28 | 16513 | static PyObject *_wrap_ConfigBase_SetExpandEnvVars(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16514 | PyObject *resultobj; |
16515 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
ae8162c8 | 16516 | bool arg2 = (bool) true ; |
d55e5bfc RD |
16517 | PyObject * obj0 = 0 ; |
16518 | PyObject * obj1 = 0 ; | |
16519 | char *kwnames[] = { | |
16520 | (char *) "self",(char *) "doIt", NULL | |
16521 | }; | |
16522 | ||
16523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetExpandEnvVars",kwnames,&obj0,&obj1)) goto fail; | |
16524 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16525 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16526 | if (obj1) { | |
c32bde28 | 16527 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
16528 | if (PyErr_Occurred()) SWIG_fail; |
16529 | } | |
16530 | { | |
16531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16532 | (arg1)->SetExpandEnvVars(arg2); | |
16533 | ||
16534 | wxPyEndAllowThreads(__tstate); | |
16535 | if (PyErr_Occurred()) SWIG_fail; | |
16536 | } | |
16537 | Py_INCREF(Py_None); resultobj = Py_None; | |
16538 | return resultobj; | |
16539 | fail: | |
16540 | return NULL; | |
16541 | } | |
16542 | ||
16543 | ||
c32bde28 | 16544 | static PyObject *_wrap_ConfigBase_IsExpandingEnvVars(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16545 | PyObject *resultobj; |
16546 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16547 | bool result; | |
16548 | PyObject * obj0 = 0 ; | |
16549 | char *kwnames[] = { | |
16550 | (char *) "self", NULL | |
16551 | }; | |
16552 | ||
16553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsExpandingEnvVars",kwnames,&obj0)) goto fail; | |
16554 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16555 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16556 | { | |
16557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16558 | result = (bool)((wxConfigBase const *)arg1)->IsExpandingEnvVars(); | |
16559 | ||
16560 | wxPyEndAllowThreads(__tstate); | |
16561 | if (PyErr_Occurred()) SWIG_fail; | |
16562 | } | |
16563 | { | |
16564 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16565 | } | |
16566 | return resultobj; | |
16567 | fail: | |
16568 | return NULL; | |
16569 | } | |
16570 | ||
16571 | ||
c32bde28 | 16572 | static PyObject *_wrap_ConfigBase_SetRecordDefaults(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16573 | PyObject *resultobj; |
16574 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
ae8162c8 | 16575 | bool arg2 = (bool) true ; |
d55e5bfc RD |
16576 | PyObject * obj0 = 0 ; |
16577 | PyObject * obj1 = 0 ; | |
16578 | char *kwnames[] = { | |
16579 | (char *) "self",(char *) "doIt", NULL | |
16580 | }; | |
16581 | ||
16582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetRecordDefaults",kwnames,&obj0,&obj1)) goto fail; | |
16583 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16584 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16585 | if (obj1) { | |
c32bde28 | 16586 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
16587 | if (PyErr_Occurred()) SWIG_fail; |
16588 | } | |
16589 | { | |
16590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16591 | (arg1)->SetRecordDefaults(arg2); | |
16592 | ||
16593 | wxPyEndAllowThreads(__tstate); | |
16594 | if (PyErr_Occurred()) SWIG_fail; | |
16595 | } | |
16596 | Py_INCREF(Py_None); resultobj = Py_None; | |
16597 | return resultobj; | |
16598 | fail: | |
16599 | return NULL; | |
16600 | } | |
16601 | ||
16602 | ||
c32bde28 | 16603 | static PyObject *_wrap_ConfigBase_IsRecordingDefaults(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16604 | PyObject *resultobj; |
16605 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16606 | bool result; | |
16607 | PyObject * obj0 = 0 ; | |
16608 | char *kwnames[] = { | |
16609 | (char *) "self", NULL | |
16610 | }; | |
16611 | ||
16612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsRecordingDefaults",kwnames,&obj0)) goto fail; | |
16613 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16614 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16615 | { | |
16616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16617 | result = (bool)((wxConfigBase const *)arg1)->IsRecordingDefaults(); | |
16618 | ||
16619 | wxPyEndAllowThreads(__tstate); | |
16620 | if (PyErr_Occurred()) SWIG_fail; | |
16621 | } | |
16622 | { | |
16623 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16624 | } | |
16625 | return resultobj; | |
16626 | fail: | |
16627 | return NULL; | |
16628 | } | |
16629 | ||
16630 | ||
c32bde28 | 16631 | static PyObject *_wrap_ConfigBase_ExpandEnvVars(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16632 | PyObject *resultobj; |
16633 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16634 | wxString *arg2 = 0 ; | |
16635 | wxString result; | |
ae8162c8 | 16636 | bool temp2 = false ; |
d55e5bfc RD |
16637 | PyObject * obj0 = 0 ; |
16638 | PyObject * obj1 = 0 ; | |
16639 | char *kwnames[] = { | |
16640 | (char *) "self",(char *) "str", NULL | |
16641 | }; | |
16642 | ||
16643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_ExpandEnvVars",kwnames,&obj0,&obj1)) goto fail; | |
16644 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16645 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16646 | { | |
16647 | arg2 = wxString_in_helper(obj1); | |
16648 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 16649 | temp2 = true; |
d55e5bfc RD |
16650 | } |
16651 | { | |
16652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16653 | result = ((wxConfigBase const *)arg1)->ExpandEnvVars((wxString const &)*arg2); | |
16654 | ||
16655 | wxPyEndAllowThreads(__tstate); | |
16656 | if (PyErr_Occurred()) SWIG_fail; | |
16657 | } | |
16658 | { | |
16659 | #if wxUSE_UNICODE | |
16660 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16661 | #else | |
16662 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16663 | #endif | |
16664 | } | |
16665 | { | |
16666 | if (temp2) | |
16667 | delete arg2; | |
16668 | } | |
16669 | return resultobj; | |
16670 | fail: | |
16671 | { | |
16672 | if (temp2) | |
16673 | delete arg2; | |
16674 | } | |
16675 | return NULL; | |
16676 | } | |
16677 | ||
16678 | ||
c32bde28 | 16679 | static PyObject *_wrap_ConfigBase_GetAppName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16680 | PyObject *resultobj; |
16681 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16682 | wxString result; | |
16683 | PyObject * obj0 = 0 ; | |
16684 | char *kwnames[] = { | |
16685 | (char *) "self", NULL | |
16686 | }; | |
16687 | ||
16688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetAppName",kwnames,&obj0)) goto fail; | |
16689 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16690 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16691 | { | |
16692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16693 | result = ((wxConfigBase const *)arg1)->GetAppName(); | |
16694 | ||
16695 | wxPyEndAllowThreads(__tstate); | |
16696 | if (PyErr_Occurred()) SWIG_fail; | |
16697 | } | |
16698 | { | |
16699 | #if wxUSE_UNICODE | |
16700 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16701 | #else | |
16702 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16703 | #endif | |
16704 | } | |
16705 | return resultobj; | |
16706 | fail: | |
16707 | return NULL; | |
16708 | } | |
16709 | ||
16710 | ||
c32bde28 | 16711 | static PyObject *_wrap_ConfigBase_GetVendorName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16712 | PyObject *resultobj; |
16713 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16714 | wxString result; | |
16715 | PyObject * obj0 = 0 ; | |
16716 | char *kwnames[] = { | |
16717 | (char *) "self", NULL | |
16718 | }; | |
16719 | ||
16720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetVendorName",kwnames,&obj0)) goto fail; | |
16721 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16722 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16723 | { | |
16724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16725 | result = ((wxConfigBase const *)arg1)->GetVendorName(); | |
16726 | ||
16727 | wxPyEndAllowThreads(__tstate); | |
16728 | if (PyErr_Occurred()) SWIG_fail; | |
16729 | } | |
16730 | { | |
16731 | #if wxUSE_UNICODE | |
16732 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16733 | #else | |
16734 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16735 | #endif | |
16736 | } | |
16737 | return resultobj; | |
16738 | fail: | |
16739 | return NULL; | |
16740 | } | |
16741 | ||
16742 | ||
c32bde28 | 16743 | static PyObject *_wrap_ConfigBase_SetAppName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16744 | PyObject *resultobj; |
16745 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16746 | wxString *arg2 = 0 ; | |
ae8162c8 | 16747 | bool temp2 = false ; |
d55e5bfc RD |
16748 | PyObject * obj0 = 0 ; |
16749 | PyObject * obj1 = 0 ; | |
16750 | char *kwnames[] = { | |
16751 | (char *) "self",(char *) "appName", NULL | |
16752 | }; | |
16753 | ||
16754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetAppName",kwnames,&obj0,&obj1)) goto fail; | |
16755 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16756 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16757 | { | |
16758 | arg2 = wxString_in_helper(obj1); | |
16759 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 16760 | temp2 = true; |
d55e5bfc RD |
16761 | } |
16762 | { | |
16763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16764 | (arg1)->SetAppName((wxString const &)*arg2); | |
16765 | ||
16766 | wxPyEndAllowThreads(__tstate); | |
16767 | if (PyErr_Occurred()) SWIG_fail; | |
16768 | } | |
16769 | Py_INCREF(Py_None); resultobj = Py_None; | |
16770 | { | |
16771 | if (temp2) | |
16772 | delete arg2; | |
16773 | } | |
16774 | return resultobj; | |
16775 | fail: | |
16776 | { | |
16777 | if (temp2) | |
16778 | delete arg2; | |
16779 | } | |
16780 | return NULL; | |
16781 | } | |
16782 | ||
16783 | ||
c32bde28 | 16784 | static PyObject *_wrap_ConfigBase_SetVendorName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16785 | PyObject *resultobj; |
16786 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16787 | wxString *arg2 = 0 ; | |
ae8162c8 | 16788 | bool temp2 = false ; |
d55e5bfc RD |
16789 | PyObject * obj0 = 0 ; |
16790 | PyObject * obj1 = 0 ; | |
16791 | char *kwnames[] = { | |
16792 | (char *) "self",(char *) "vendorName", NULL | |
16793 | }; | |
16794 | ||
16795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetVendorName",kwnames,&obj0,&obj1)) goto fail; | |
16796 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16797 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16798 | { | |
16799 | arg2 = wxString_in_helper(obj1); | |
16800 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 16801 | temp2 = true; |
d55e5bfc RD |
16802 | } |
16803 | { | |
16804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16805 | (arg1)->SetVendorName((wxString const &)*arg2); | |
16806 | ||
16807 | wxPyEndAllowThreads(__tstate); | |
16808 | if (PyErr_Occurred()) SWIG_fail; | |
16809 | } | |
16810 | Py_INCREF(Py_None); resultobj = Py_None; | |
16811 | { | |
16812 | if (temp2) | |
16813 | delete arg2; | |
16814 | } | |
16815 | return resultobj; | |
16816 | fail: | |
16817 | { | |
16818 | if (temp2) | |
16819 | delete arg2; | |
16820 | } | |
16821 | return NULL; | |
16822 | } | |
16823 | ||
16824 | ||
c32bde28 | 16825 | static PyObject *_wrap_ConfigBase_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16826 | PyObject *resultobj; |
16827 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16828 | long arg2 ; | |
16829 | PyObject * obj0 = 0 ; | |
16830 | PyObject * obj1 = 0 ; | |
16831 | char *kwnames[] = { | |
16832 | (char *) "self",(char *) "style", NULL | |
16833 | }; | |
16834 | ||
16835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetStyle",kwnames,&obj0,&obj1)) goto fail; | |
16836 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16837 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 16838 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
16839 | if (PyErr_Occurred()) SWIG_fail; |
16840 | { | |
16841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16842 | (arg1)->SetStyle(arg2); | |
16843 | ||
16844 | wxPyEndAllowThreads(__tstate); | |
16845 | if (PyErr_Occurred()) SWIG_fail; | |
16846 | } | |
16847 | Py_INCREF(Py_None); resultobj = Py_None; | |
16848 | return resultobj; | |
16849 | fail: | |
16850 | return NULL; | |
16851 | } | |
16852 | ||
16853 | ||
c32bde28 | 16854 | static PyObject *_wrap_ConfigBase_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16855 | PyObject *resultobj; |
16856 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
16857 | long result; | |
16858 | PyObject * obj0 = 0 ; | |
16859 | char *kwnames[] = { | |
16860 | (char *) "self", NULL | |
16861 | }; | |
16862 | ||
16863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetStyle",kwnames,&obj0)) goto fail; | |
16864 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
16865 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16866 | { | |
16867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16868 | result = (long)((wxConfigBase const *)arg1)->GetStyle(); | |
16869 | ||
16870 | wxPyEndAllowThreads(__tstate); | |
16871 | if (PyErr_Occurred()) SWIG_fail; | |
16872 | } | |
c32bde28 | 16873 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
16874 | return resultobj; |
16875 | fail: | |
16876 | return NULL; | |
16877 | } | |
16878 | ||
16879 | ||
c32bde28 | 16880 | static PyObject * ConfigBase_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
16881 | PyObject *obj; |
16882 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16883 | SWIG_TypeClientData(SWIGTYPE_p_wxConfigBase, obj); | |
16884 | Py_INCREF(obj); | |
16885 | return Py_BuildValue((char *)""); | |
16886 | } | |
c32bde28 | 16887 | static PyObject *_wrap_new_Config(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16888 | PyObject *resultobj; |
16889 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
16890 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
16891 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
16892 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
16893 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16894 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16895 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
16896 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
16897 | long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ; | |
16898 | wxConfig *result; | |
ae8162c8 RD |
16899 | bool temp1 = false ; |
16900 | bool temp2 = false ; | |
16901 | bool temp3 = false ; | |
16902 | bool temp4 = false ; | |
d55e5bfc RD |
16903 | PyObject * obj0 = 0 ; |
16904 | PyObject * obj1 = 0 ; | |
16905 | PyObject * obj2 = 0 ; | |
16906 | PyObject * obj3 = 0 ; | |
16907 | PyObject * obj4 = 0 ; | |
16908 | char *kwnames[] = { | |
16909 | (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL | |
16910 | }; | |
16911 | ||
16912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_Config",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
16913 | if (obj0) { | |
16914 | { | |
16915 | arg1 = wxString_in_helper(obj0); | |
16916 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 16917 | temp1 = true; |
d55e5bfc RD |
16918 | } |
16919 | } | |
16920 | if (obj1) { | |
16921 | { | |
16922 | arg2 = wxString_in_helper(obj1); | |
16923 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 16924 | temp2 = true; |
d55e5bfc RD |
16925 | } |
16926 | } | |
16927 | if (obj2) { | |
16928 | { | |
16929 | arg3 = wxString_in_helper(obj2); | |
16930 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 16931 | temp3 = true; |
d55e5bfc RD |
16932 | } |
16933 | } | |
16934 | if (obj3) { | |
16935 | { | |
16936 | arg4 = wxString_in_helper(obj3); | |
16937 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 16938 | temp4 = true; |
d55e5bfc RD |
16939 | } |
16940 | } | |
16941 | if (obj4) { | |
c32bde28 | 16942 | arg5 = (long)SWIG_As_long(obj4); |
d55e5bfc RD |
16943 | if (PyErr_Occurred()) SWIG_fail; |
16944 | } | |
16945 | { | |
16946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16947 | result = (wxConfig *)new wxConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
16948 | ||
16949 | wxPyEndAllowThreads(__tstate); | |
16950 | if (PyErr_Occurred()) SWIG_fail; | |
16951 | } | |
16952 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfig, 1); | |
16953 | { | |
16954 | if (temp1) | |
16955 | delete arg1; | |
16956 | } | |
16957 | { | |
16958 | if (temp2) | |
16959 | delete arg2; | |
16960 | } | |
16961 | { | |
16962 | if (temp3) | |
16963 | delete arg3; | |
16964 | } | |
16965 | { | |
16966 | if (temp4) | |
16967 | delete arg4; | |
16968 | } | |
16969 | return resultobj; | |
16970 | fail: | |
16971 | { | |
16972 | if (temp1) | |
16973 | delete arg1; | |
16974 | } | |
16975 | { | |
16976 | if (temp2) | |
16977 | delete arg2; | |
16978 | } | |
16979 | { | |
16980 | if (temp3) | |
16981 | delete arg3; | |
16982 | } | |
16983 | { | |
16984 | if (temp4) | |
16985 | delete arg4; | |
16986 | } | |
16987 | return NULL; | |
16988 | } | |
16989 | ||
16990 | ||
c32bde28 | 16991 | static PyObject *_wrap_delete_Config(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16992 | PyObject *resultobj; |
16993 | wxConfig *arg1 = (wxConfig *) 0 ; | |
16994 | PyObject * obj0 = 0 ; | |
16995 | char *kwnames[] = { | |
16996 | (char *) "self", NULL | |
16997 | }; | |
16998 | ||
16999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Config",kwnames,&obj0)) goto fail; | |
17000 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfig, | |
17001 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17002 | { | |
17003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17004 | delete arg1; | |
17005 | ||
17006 | wxPyEndAllowThreads(__tstate); | |
17007 | if (PyErr_Occurred()) SWIG_fail; | |
17008 | } | |
17009 | Py_INCREF(Py_None); resultobj = Py_None; | |
17010 | return resultobj; | |
17011 | fail: | |
17012 | return NULL; | |
17013 | } | |
17014 | ||
17015 | ||
c32bde28 | 17016 | static PyObject * Config_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17017 | PyObject *obj; |
17018 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17019 | SWIG_TypeClientData(SWIGTYPE_p_wxConfig, obj); | |
17020 | Py_INCREF(obj); | |
17021 | return Py_BuildValue((char *)""); | |
17022 | } | |
c32bde28 | 17023 | static PyObject *_wrap_new_FileConfig(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17024 | PyObject *resultobj; |
17025 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
17026 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
17027 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
17028 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
17029 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
17030 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
17031 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
17032 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
17033 | long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ; | |
17034 | wxFileConfig *result; | |
ae8162c8 RD |
17035 | bool temp1 = false ; |
17036 | bool temp2 = false ; | |
17037 | bool temp3 = false ; | |
17038 | bool temp4 = false ; | |
d55e5bfc RD |
17039 | PyObject * obj0 = 0 ; |
17040 | PyObject * obj1 = 0 ; | |
17041 | PyObject * obj2 = 0 ; | |
17042 | PyObject * obj3 = 0 ; | |
17043 | PyObject * obj4 = 0 ; | |
17044 | char *kwnames[] = { | |
17045 | (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL | |
17046 | }; | |
17047 | ||
17048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_FileConfig",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
17049 | if (obj0) { | |
17050 | { | |
17051 | arg1 = wxString_in_helper(obj0); | |
17052 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 17053 | temp1 = true; |
d55e5bfc RD |
17054 | } |
17055 | } | |
17056 | if (obj1) { | |
17057 | { | |
17058 | arg2 = wxString_in_helper(obj1); | |
17059 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 17060 | temp2 = true; |
d55e5bfc RD |
17061 | } |
17062 | } | |
17063 | if (obj2) { | |
17064 | { | |
17065 | arg3 = wxString_in_helper(obj2); | |
17066 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 17067 | temp3 = true; |
d55e5bfc RD |
17068 | } |
17069 | } | |
17070 | if (obj3) { | |
17071 | { | |
17072 | arg4 = wxString_in_helper(obj3); | |
17073 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 17074 | temp4 = true; |
d55e5bfc RD |
17075 | } |
17076 | } | |
17077 | if (obj4) { | |
c32bde28 | 17078 | arg5 = (long)SWIG_As_long(obj4); |
d55e5bfc RD |
17079 | if (PyErr_Occurred()) SWIG_fail; |
17080 | } | |
17081 | { | |
17082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17083 | result = (wxFileConfig *)new wxFileConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
17084 | ||
17085 | wxPyEndAllowThreads(__tstate); | |
17086 | if (PyErr_Occurred()) SWIG_fail; | |
17087 | } | |
17088 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileConfig, 1); | |
17089 | { | |
17090 | if (temp1) | |
17091 | delete arg1; | |
17092 | } | |
17093 | { | |
17094 | if (temp2) | |
17095 | delete arg2; | |
17096 | } | |
17097 | { | |
17098 | if (temp3) | |
17099 | delete arg3; | |
17100 | } | |
17101 | { | |
17102 | if (temp4) | |
17103 | delete arg4; | |
17104 | } | |
17105 | return resultobj; | |
17106 | fail: | |
17107 | { | |
17108 | if (temp1) | |
17109 | delete arg1; | |
17110 | } | |
17111 | { | |
17112 | if (temp2) | |
17113 | delete arg2; | |
17114 | } | |
17115 | { | |
17116 | if (temp3) | |
17117 | delete arg3; | |
17118 | } | |
17119 | { | |
17120 | if (temp4) | |
17121 | delete arg4; | |
17122 | } | |
17123 | return NULL; | |
17124 | } | |
17125 | ||
17126 | ||
c32bde28 | 17127 | static PyObject *_wrap_delete_FileConfig(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17128 | PyObject *resultobj; |
17129 | wxFileConfig *arg1 = (wxFileConfig *) 0 ; | |
17130 | PyObject * obj0 = 0 ; | |
17131 | char *kwnames[] = { | |
17132 | (char *) "self", NULL | |
17133 | }; | |
17134 | ||
17135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileConfig",kwnames,&obj0)) goto fail; | |
17136 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileConfig, | |
17137 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17138 | { | |
17139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17140 | delete arg1; | |
17141 | ||
17142 | wxPyEndAllowThreads(__tstate); | |
17143 | if (PyErr_Occurred()) SWIG_fail; | |
17144 | } | |
17145 | Py_INCREF(Py_None); resultobj = Py_None; | |
17146 | return resultobj; | |
17147 | fail: | |
17148 | return NULL; | |
17149 | } | |
17150 | ||
17151 | ||
c32bde28 | 17152 | static PyObject * FileConfig_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17153 | PyObject *obj; |
17154 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17155 | SWIG_TypeClientData(SWIGTYPE_p_wxFileConfig, obj); | |
17156 | Py_INCREF(obj); | |
17157 | return Py_BuildValue((char *)""); | |
17158 | } | |
c32bde28 | 17159 | static PyObject *_wrap_new_ConfigPathChanger(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17160 | PyObject *resultobj; |
17161 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
17162 | wxString *arg2 = 0 ; | |
17163 | wxConfigPathChanger *result; | |
ae8162c8 | 17164 | bool temp2 = false ; |
d55e5bfc RD |
17165 | PyObject * obj0 = 0 ; |
17166 | PyObject * obj1 = 0 ; | |
17167 | char *kwnames[] = { | |
17168 | (char *) "config",(char *) "entry", NULL | |
17169 | }; | |
17170 | ||
17171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_ConfigPathChanger",kwnames,&obj0,&obj1)) goto fail; | |
17172 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase, | |
17173 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17174 | { | |
17175 | arg2 = wxString_in_helper(obj1); | |
17176 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 17177 | temp2 = true; |
d55e5bfc RD |
17178 | } |
17179 | { | |
17180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17181 | result = (wxConfigPathChanger *)new wxConfigPathChanger((wxConfigBase const *)arg1,(wxString const &)*arg2); | |
17182 | ||
17183 | wxPyEndAllowThreads(__tstate); | |
17184 | if (PyErr_Occurred()) SWIG_fail; | |
17185 | } | |
17186 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigPathChanger, 1); | |
17187 | { | |
17188 | if (temp2) | |
17189 | delete arg2; | |
17190 | } | |
17191 | return resultobj; | |
17192 | fail: | |
17193 | { | |
17194 | if (temp2) | |
17195 | delete arg2; | |
17196 | } | |
17197 | return NULL; | |
17198 | } | |
17199 | ||
17200 | ||
c32bde28 | 17201 | static PyObject *_wrap_delete_ConfigPathChanger(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17202 | PyObject *resultobj; |
17203 | wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ; | |
17204 | PyObject * obj0 = 0 ; | |
17205 | char *kwnames[] = { | |
17206 | (char *) "self", NULL | |
17207 | }; | |
17208 | ||
17209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigPathChanger",kwnames,&obj0)) goto fail; | |
17210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger, | |
17211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17212 | { | |
17213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17214 | delete arg1; | |
17215 | ||
17216 | wxPyEndAllowThreads(__tstate); | |
17217 | if (PyErr_Occurred()) SWIG_fail; | |
17218 | } | |
17219 | Py_INCREF(Py_None); resultobj = Py_None; | |
17220 | return resultobj; | |
17221 | fail: | |
17222 | return NULL; | |
17223 | } | |
17224 | ||
17225 | ||
c32bde28 | 17226 | static PyObject *_wrap_ConfigPathChanger_Name(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17227 | PyObject *resultobj; |
17228 | wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ; | |
17229 | wxString *result; | |
17230 | PyObject * obj0 = 0 ; | |
17231 | char *kwnames[] = { | |
17232 | (char *) "self", NULL | |
17233 | }; | |
17234 | ||
17235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigPathChanger_Name",kwnames,&obj0)) goto fail; | |
17236 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger, | |
17237 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17238 | { | |
17239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17240 | { | |
17241 | wxString const &_result_ref = ((wxConfigPathChanger const *)arg1)->Name(); | |
17242 | result = (wxString *) &_result_ref; | |
17243 | } | |
17244 | ||
17245 | wxPyEndAllowThreads(__tstate); | |
17246 | if (PyErr_Occurred()) SWIG_fail; | |
17247 | } | |
17248 | { | |
17249 | #if wxUSE_UNICODE | |
17250 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
17251 | #else | |
17252 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
17253 | #endif | |
17254 | } | |
17255 | return resultobj; | |
17256 | fail: | |
17257 | return NULL; | |
17258 | } | |
17259 | ||
17260 | ||
c32bde28 | 17261 | static PyObject * ConfigPathChanger_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17262 | PyObject *obj; |
17263 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17264 | SWIG_TypeClientData(SWIGTYPE_p_wxConfigPathChanger, obj); | |
17265 | Py_INCREF(obj); | |
17266 | return Py_BuildValue((char *)""); | |
17267 | } | |
c32bde28 | 17268 | static PyObject *_wrap_ExpandEnvVars(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17269 | PyObject *resultobj; |
17270 | wxString *arg1 = 0 ; | |
17271 | wxString result; | |
ae8162c8 | 17272 | bool temp1 = false ; |
d55e5bfc RD |
17273 | PyObject * obj0 = 0 ; |
17274 | char *kwnames[] = { | |
17275 | (char *) "sz", NULL | |
17276 | }; | |
17277 | ||
17278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ExpandEnvVars",kwnames,&obj0)) goto fail; | |
17279 | { | |
17280 | arg1 = wxString_in_helper(obj0); | |
17281 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 17282 | temp1 = true; |
d55e5bfc RD |
17283 | } |
17284 | { | |
17285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17286 | result = wxExpandEnvVars((wxString const &)*arg1); | |
17287 | ||
17288 | wxPyEndAllowThreads(__tstate); | |
17289 | if (PyErr_Occurred()) SWIG_fail; | |
17290 | } | |
17291 | { | |
17292 | #if wxUSE_UNICODE | |
17293 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17294 | #else | |
17295 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17296 | #endif | |
17297 | } | |
17298 | { | |
17299 | if (temp1) | |
17300 | delete arg1; | |
17301 | } | |
17302 | return resultobj; | |
17303 | fail: | |
17304 | { | |
17305 | if (temp1) | |
17306 | delete arg1; | |
17307 | } | |
17308 | return NULL; | |
17309 | } | |
17310 | ||
17311 | ||
c32bde28 | 17312 | static int _wrap_DateFormatStr_set(PyObject *) { |
d55e5bfc RD |
17313 | PyErr_SetString(PyExc_TypeError,"Variable DateFormatStr is read-only."); |
17314 | return 1; | |
17315 | } | |
17316 | ||
17317 | ||
17318 | static PyObject *_wrap_DateFormatStr_get() { | |
17319 | PyObject *pyobj; | |
17320 | ||
17321 | { | |
17322 | #if wxUSE_UNICODE | |
17323 | pyobj = PyUnicode_FromWideChar((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len()); | |
17324 | #else | |
17325 | pyobj = PyString_FromStringAndSize((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len()); | |
17326 | #endif | |
17327 | } | |
17328 | return pyobj; | |
17329 | } | |
17330 | ||
17331 | ||
c32bde28 | 17332 | static int _wrap_TimeSpanFormatStr_set(PyObject *) { |
d55e5bfc RD |
17333 | PyErr_SetString(PyExc_TypeError,"Variable TimeSpanFormatStr is read-only."); |
17334 | return 1; | |
17335 | } | |
17336 | ||
17337 | ||
17338 | static PyObject *_wrap_TimeSpanFormatStr_get() { | |
17339 | PyObject *pyobj; | |
17340 | ||
17341 | { | |
17342 | #if wxUSE_UNICODE | |
17343 | pyobj = PyUnicode_FromWideChar((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len()); | |
17344 | #else | |
17345 | pyobj = PyString_FromStringAndSize((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len()); | |
17346 | #endif | |
17347 | } | |
17348 | return pyobj; | |
17349 | } | |
17350 | ||
17351 | ||
c32bde28 | 17352 | static PyObject *_wrap_DateTime_SetCountry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17353 | PyObject *resultobj; |
17354 | int arg1 ; | |
17355 | PyObject * obj0 = 0 ; | |
17356 | char *kwnames[] = { | |
17357 | (char *) "country", NULL | |
17358 | }; | |
17359 | ||
17360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetCountry",kwnames,&obj0)) goto fail; | |
c32bde28 | 17361 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17362 | if (PyErr_Occurred()) SWIG_fail; |
17363 | { | |
17364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17365 | wxDateTime::SetCountry((wxDateTime::Country )arg1); | |
17366 | ||
17367 | wxPyEndAllowThreads(__tstate); | |
17368 | if (PyErr_Occurred()) SWIG_fail; | |
17369 | } | |
17370 | Py_INCREF(Py_None); resultobj = Py_None; | |
17371 | return resultobj; | |
17372 | fail: | |
17373 | return NULL; | |
17374 | } | |
17375 | ||
17376 | ||
c32bde28 | 17377 | static PyObject *_wrap_DateTime_GetCountry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17378 | PyObject *resultobj; |
17379 | int result; | |
17380 | char *kwnames[] = { | |
17381 | NULL | |
17382 | }; | |
17383 | ||
17384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetCountry",kwnames)) goto fail; | |
17385 | { | |
17386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17387 | result = (int)wxDateTime::GetCountry(); | |
17388 | ||
17389 | wxPyEndAllowThreads(__tstate); | |
17390 | if (PyErr_Occurred()) SWIG_fail; | |
17391 | } | |
c32bde28 | 17392 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
17393 | return resultobj; |
17394 | fail: | |
17395 | return NULL; | |
17396 | } | |
17397 | ||
17398 | ||
c32bde28 | 17399 | static PyObject *_wrap_DateTime_IsWestEuropeanCountry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17400 | PyObject *resultobj; |
17401 | int arg1 = (int) wxDateTime::Country_Default ; | |
17402 | bool result; | |
17403 | PyObject * obj0 = 0 ; | |
17404 | char *kwnames[] = { | |
17405 | (char *) "country", NULL | |
17406 | }; | |
17407 | ||
17408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_IsWestEuropeanCountry",kwnames,&obj0)) goto fail; | |
17409 | if (obj0) { | |
c32bde28 | 17410 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17411 | if (PyErr_Occurred()) SWIG_fail; |
17412 | } | |
17413 | { | |
17414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17415 | result = (bool)wxDateTime::IsWestEuropeanCountry((wxDateTime::Country )arg1); | |
17416 | ||
17417 | wxPyEndAllowThreads(__tstate); | |
17418 | if (PyErr_Occurred()) SWIG_fail; | |
17419 | } | |
17420 | { | |
17421 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17422 | } | |
17423 | return resultobj; | |
17424 | fail: | |
17425 | return NULL; | |
17426 | } | |
17427 | ||
17428 | ||
c32bde28 | 17429 | static PyObject *_wrap_DateTime_GetCurrentYear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17430 | PyObject *resultobj; |
17431 | int arg1 = (int) wxDateTime::Gregorian ; | |
17432 | int result; | |
17433 | PyObject * obj0 = 0 ; | |
17434 | char *kwnames[] = { | |
17435 | (char *) "cal", NULL | |
17436 | }; | |
17437 | ||
17438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentYear",kwnames,&obj0)) goto fail; | |
17439 | if (obj0) { | |
c32bde28 | 17440 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17441 | if (PyErr_Occurred()) SWIG_fail; |
17442 | } | |
17443 | { | |
17444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17445 | result = (int)wxDateTime::GetCurrentYear((wxDateTime::Calendar )arg1); | |
17446 | ||
17447 | wxPyEndAllowThreads(__tstate); | |
17448 | if (PyErr_Occurred()) SWIG_fail; | |
17449 | } | |
c32bde28 | 17450 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
17451 | return resultobj; |
17452 | fail: | |
17453 | return NULL; | |
17454 | } | |
17455 | ||
17456 | ||
c32bde28 | 17457 | static PyObject *_wrap_DateTime_ConvertYearToBC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17458 | PyObject *resultobj; |
17459 | int arg1 ; | |
17460 | int result; | |
17461 | PyObject * obj0 = 0 ; | |
17462 | char *kwnames[] = { | |
17463 | (char *) "year", NULL | |
17464 | }; | |
17465 | ||
17466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ConvertYearToBC",kwnames,&obj0)) goto fail; | |
c32bde28 | 17467 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17468 | if (PyErr_Occurred()) SWIG_fail; |
17469 | { | |
17470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17471 | result = (int)wxDateTime::ConvertYearToBC(arg1); | |
17472 | ||
17473 | wxPyEndAllowThreads(__tstate); | |
17474 | if (PyErr_Occurred()) SWIG_fail; | |
17475 | } | |
c32bde28 | 17476 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
17477 | return resultobj; |
17478 | fail: | |
17479 | return NULL; | |
17480 | } | |
17481 | ||
17482 | ||
c32bde28 | 17483 | static PyObject *_wrap_DateTime_GetCurrentMonth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17484 | PyObject *resultobj; |
17485 | int arg1 = (int) wxDateTime::Gregorian ; | |
17486 | int result; | |
17487 | PyObject * obj0 = 0 ; | |
17488 | char *kwnames[] = { | |
17489 | (char *) "cal", NULL | |
17490 | }; | |
17491 | ||
17492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentMonth",kwnames,&obj0)) goto fail; | |
17493 | if (obj0) { | |
c32bde28 | 17494 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17495 | if (PyErr_Occurred()) SWIG_fail; |
17496 | } | |
17497 | { | |
17498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17499 | result = (int)wxDateTime::GetCurrentMonth((wxDateTime::Calendar )arg1); | |
17500 | ||
17501 | wxPyEndAllowThreads(__tstate); | |
17502 | if (PyErr_Occurred()) SWIG_fail; | |
17503 | } | |
c32bde28 | 17504 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
17505 | return resultobj; |
17506 | fail: | |
17507 | return NULL; | |
17508 | } | |
17509 | ||
17510 | ||
c32bde28 | 17511 | static PyObject *_wrap_DateTime_IsLeapYear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17512 | PyObject *resultobj; |
17513 | int arg1 = (int) wxDateTime::Inv_Year ; | |
17514 | int arg2 = (int) wxDateTime::Gregorian ; | |
17515 | bool result; | |
17516 | PyObject * obj0 = 0 ; | |
17517 | PyObject * obj1 = 0 ; | |
17518 | char *kwnames[] = { | |
17519 | (char *) "year",(char *) "cal", NULL | |
17520 | }; | |
17521 | ||
17522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsLeapYear",kwnames,&obj0,&obj1)) goto fail; | |
17523 | if (obj0) { | |
c32bde28 | 17524 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17525 | if (PyErr_Occurred()) SWIG_fail; |
17526 | } | |
17527 | if (obj1) { | |
c32bde28 | 17528 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17529 | if (PyErr_Occurred()) SWIG_fail; |
17530 | } | |
17531 | { | |
17532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17533 | result = (bool)wxDateTime::IsLeapYear(arg1,(wxDateTime::Calendar )arg2); | |
17534 | ||
17535 | wxPyEndAllowThreads(__tstate); | |
17536 | if (PyErr_Occurred()) SWIG_fail; | |
17537 | } | |
17538 | { | |
17539 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17540 | } | |
17541 | return resultobj; | |
17542 | fail: | |
17543 | return NULL; | |
17544 | } | |
17545 | ||
17546 | ||
c32bde28 | 17547 | static PyObject *_wrap_DateTime_GetCentury(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17548 | PyObject *resultobj; |
17549 | int arg1 = (int) wxDateTime::Inv_Year ; | |
17550 | int result; | |
17551 | PyObject * obj0 = 0 ; | |
17552 | char *kwnames[] = { | |
17553 | (char *) "year", NULL | |
17554 | }; | |
17555 | ||
17556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCentury",kwnames,&obj0)) goto fail; | |
17557 | if (obj0) { | |
c32bde28 | 17558 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17559 | if (PyErr_Occurred()) SWIG_fail; |
17560 | } | |
17561 | { | |
17562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17563 | result = (int)wxDateTime::GetCentury(arg1); | |
17564 | ||
17565 | wxPyEndAllowThreads(__tstate); | |
17566 | if (PyErr_Occurred()) SWIG_fail; | |
17567 | } | |
c32bde28 | 17568 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
17569 | return resultobj; |
17570 | fail: | |
17571 | return NULL; | |
17572 | } | |
17573 | ||
17574 | ||
c32bde28 | 17575 | static PyObject *_wrap_DateTime_GetNumberOfDaysinYear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17576 | PyObject *resultobj; |
17577 | int arg1 ; | |
17578 | int arg2 = (int) wxDateTime::Gregorian ; | |
17579 | int result; | |
17580 | PyObject * obj0 = 0 ; | |
17581 | PyObject * obj1 = 0 ; | |
17582 | char *kwnames[] = { | |
17583 | (char *) "year",(char *) "cal", NULL | |
17584 | }; | |
17585 | ||
17586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetNumberOfDaysinYear",kwnames,&obj0,&obj1)) goto fail; | |
c32bde28 | 17587 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17588 | if (PyErr_Occurred()) SWIG_fail; |
17589 | if (obj1) { | |
c32bde28 | 17590 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17591 | if (PyErr_Occurred()) SWIG_fail; |
17592 | } | |
17593 | { | |
17594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17595 | result = (int)wxDateTime::GetNumberOfDays(arg1,(wxDateTime::Calendar )arg2); | |
17596 | ||
17597 | wxPyEndAllowThreads(__tstate); | |
17598 | if (PyErr_Occurred()) SWIG_fail; | |
17599 | } | |
c32bde28 | 17600 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
17601 | return resultobj; |
17602 | fail: | |
17603 | return NULL; | |
17604 | } | |
17605 | ||
17606 | ||
c32bde28 | 17607 | static PyObject *_wrap_DateTime_GetNumberOfDaysInMonth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17608 | PyObject *resultobj; |
17609 | int arg1 ; | |
17610 | int arg2 = (int) wxDateTime::Inv_Year ; | |
17611 | int arg3 = (int) wxDateTime::Gregorian ; | |
17612 | int result; | |
17613 | PyObject * obj0 = 0 ; | |
17614 | PyObject * obj1 = 0 ; | |
17615 | PyObject * obj2 = 0 ; | |
17616 | char *kwnames[] = { | |
17617 | (char *) "month",(char *) "year",(char *) "cal", NULL | |
17618 | }; | |
17619 | ||
17620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetNumberOfDaysInMonth",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
c32bde28 | 17621 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17622 | if (PyErr_Occurred()) SWIG_fail; |
17623 | if (obj1) { | |
c32bde28 | 17624 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17625 | if (PyErr_Occurred()) SWIG_fail; |
17626 | } | |
17627 | if (obj2) { | |
c32bde28 | 17628 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
17629 | if (PyErr_Occurred()) SWIG_fail; |
17630 | } | |
17631 | { | |
17632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17633 | result = (int)wxDateTime::GetNumberOfDays((wxDateTime::Month )arg1,arg2,(wxDateTime::Calendar )arg3); | |
17634 | ||
17635 | wxPyEndAllowThreads(__tstate); | |
17636 | if (PyErr_Occurred()) SWIG_fail; | |
17637 | } | |
c32bde28 | 17638 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
17639 | return resultobj; |
17640 | fail: | |
17641 | return NULL; | |
17642 | } | |
17643 | ||
17644 | ||
c32bde28 | 17645 | static PyObject *_wrap_DateTime_GetMonthName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17646 | PyObject *resultobj; |
17647 | int arg1 ; | |
17648 | int arg2 = (int) wxDateTime::Name_Full ; | |
17649 | wxString result; | |
17650 | PyObject * obj0 = 0 ; | |
17651 | PyObject * obj1 = 0 ; | |
17652 | char *kwnames[] = { | |
17653 | (char *) "month",(char *) "flags", NULL | |
17654 | }; | |
17655 | ||
17656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonthName",kwnames,&obj0,&obj1)) goto fail; | |
c32bde28 | 17657 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17658 | if (PyErr_Occurred()) SWIG_fail; |
17659 | if (obj1) { | |
c32bde28 | 17660 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17661 | if (PyErr_Occurred()) SWIG_fail; |
17662 | } | |
17663 | { | |
17664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17665 | result = wxDateTime::GetMonthName((wxDateTime::Month )arg1,(wxDateTime::NameFlags )arg2); | |
17666 | ||
17667 | wxPyEndAllowThreads(__tstate); | |
17668 | if (PyErr_Occurred()) SWIG_fail; | |
17669 | } | |
17670 | { | |
17671 | #if wxUSE_UNICODE | |
17672 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17673 | #else | |
17674 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17675 | #endif | |
17676 | } | |
17677 | return resultobj; | |
17678 | fail: | |
17679 | return NULL; | |
17680 | } | |
17681 | ||
17682 | ||
c32bde28 | 17683 | static PyObject *_wrap_DateTime_GetWeekDayName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17684 | PyObject *resultobj; |
17685 | int arg1 ; | |
17686 | int arg2 = (int) wxDateTime::Name_Full ; | |
17687 | wxString result; | |
17688 | PyObject * obj0 = 0 ; | |
17689 | PyObject * obj1 = 0 ; | |
17690 | char *kwnames[] = { | |
17691 | (char *) "weekday",(char *) "flags", NULL | |
17692 | }; | |
17693 | ||
17694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDayName",kwnames,&obj0,&obj1)) goto fail; | |
c32bde28 | 17695 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17696 | if (PyErr_Occurred()) SWIG_fail; |
17697 | if (obj1) { | |
c32bde28 | 17698 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17699 | if (PyErr_Occurred()) SWIG_fail; |
17700 | } | |
17701 | { | |
17702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17703 | result = wxDateTime::GetWeekDayName((wxDateTime::WeekDay )arg1,(wxDateTime::NameFlags )arg2); | |
17704 | ||
17705 | wxPyEndAllowThreads(__tstate); | |
17706 | if (PyErr_Occurred()) SWIG_fail; | |
17707 | } | |
17708 | { | |
17709 | #if wxUSE_UNICODE | |
17710 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17711 | #else | |
17712 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17713 | #endif | |
17714 | } | |
17715 | return resultobj; | |
17716 | fail: | |
17717 | return NULL; | |
17718 | } | |
17719 | ||
17720 | ||
c32bde28 | 17721 | static PyObject *_wrap_DateTime_GetAmPmStrings(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17722 | PyObject *resultobj; |
17723 | wxString *arg1 = (wxString *) 0 ; | |
17724 | wxString *arg2 = (wxString *) 0 ; | |
ae8162c8 RD |
17725 | bool temp1 = false ; |
17726 | bool temp2 = false ; | |
d55e5bfc RD |
17727 | PyObject * obj0 = 0 ; |
17728 | PyObject * obj1 = 0 ; | |
17729 | char *kwnames[] = { | |
17730 | (char *) "OUTPUT",(char *) "OUTPUT", NULL | |
17731 | }; | |
17732 | ||
17733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetAmPmStrings",kwnames,&obj0,&obj1)) goto fail; | |
17734 | { | |
17735 | arg1 = wxString_in_helper(obj0); | |
17736 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 17737 | temp1 = true; |
d55e5bfc RD |
17738 | } |
17739 | { | |
17740 | arg2 = wxString_in_helper(obj1); | |
17741 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 17742 | temp2 = true; |
d55e5bfc RD |
17743 | } |
17744 | { | |
17745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17746 | wxDateTime::GetAmPmStrings(arg1,arg2); | |
17747 | ||
17748 | wxPyEndAllowThreads(__tstate); | |
17749 | if (PyErr_Occurred()) SWIG_fail; | |
17750 | } | |
17751 | Py_INCREF(Py_None); resultobj = Py_None; | |
17752 | { | |
17753 | if (temp1) | |
17754 | delete arg1; | |
17755 | } | |
17756 | { | |
17757 | if (temp2) | |
17758 | delete arg2; | |
17759 | } | |
17760 | return resultobj; | |
17761 | fail: | |
17762 | { | |
17763 | if (temp1) | |
17764 | delete arg1; | |
17765 | } | |
17766 | { | |
17767 | if (temp2) | |
17768 | delete arg2; | |
17769 | } | |
17770 | return NULL; | |
17771 | } | |
17772 | ||
17773 | ||
c32bde28 | 17774 | static PyObject *_wrap_DateTime_IsDSTApplicable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17775 | PyObject *resultobj; |
17776 | int arg1 = (int) wxDateTime::Inv_Year ; | |
17777 | int arg2 = (int) wxDateTime::Country_Default ; | |
17778 | bool result; | |
17779 | PyObject * obj0 = 0 ; | |
17780 | PyObject * obj1 = 0 ; | |
17781 | char *kwnames[] = { | |
17782 | (char *) "year",(char *) "country", NULL | |
17783 | }; | |
17784 | ||
17785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsDSTApplicable",kwnames,&obj0,&obj1)) goto fail; | |
17786 | if (obj0) { | |
c32bde28 | 17787 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17788 | if (PyErr_Occurred()) SWIG_fail; |
17789 | } | |
17790 | if (obj1) { | |
c32bde28 | 17791 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17792 | if (PyErr_Occurred()) SWIG_fail; |
17793 | } | |
17794 | { | |
17795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17796 | result = (bool)wxDateTime::IsDSTApplicable(arg1,(wxDateTime::Country )arg2); | |
17797 | ||
17798 | wxPyEndAllowThreads(__tstate); | |
17799 | if (PyErr_Occurred()) SWIG_fail; | |
17800 | } | |
17801 | { | |
17802 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17803 | } | |
17804 | return resultobj; | |
17805 | fail: | |
17806 | return NULL; | |
17807 | } | |
17808 | ||
17809 | ||
c32bde28 | 17810 | static PyObject *_wrap_DateTime_GetBeginDST(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17811 | PyObject *resultobj; |
17812 | int arg1 = (int) wxDateTime::Inv_Year ; | |
17813 | int arg2 = (int) wxDateTime::Country_Default ; | |
17814 | wxDateTime result; | |
17815 | PyObject * obj0 = 0 ; | |
17816 | PyObject * obj1 = 0 ; | |
17817 | char *kwnames[] = { | |
17818 | (char *) "year",(char *) "country", NULL | |
17819 | }; | |
17820 | ||
17821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetBeginDST",kwnames,&obj0,&obj1)) goto fail; | |
17822 | if (obj0) { | |
c32bde28 | 17823 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17824 | if (PyErr_Occurred()) SWIG_fail; |
17825 | } | |
17826 | if (obj1) { | |
c32bde28 | 17827 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17828 | if (PyErr_Occurred()) SWIG_fail; |
17829 | } | |
17830 | { | |
17831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17832 | result = wxDateTime::GetBeginDST(arg1,(wxDateTime::Country )arg2); | |
17833 | ||
17834 | wxPyEndAllowThreads(__tstate); | |
17835 | if (PyErr_Occurred()) SWIG_fail; | |
17836 | } | |
17837 | { | |
17838 | wxDateTime * resultptr; | |
17839 | resultptr = new wxDateTime((wxDateTime &) result); | |
17840 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
17841 | } | |
17842 | return resultobj; | |
17843 | fail: | |
17844 | return NULL; | |
17845 | } | |
17846 | ||
17847 | ||
c32bde28 | 17848 | static PyObject *_wrap_DateTime_GetEndDST(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17849 | PyObject *resultobj; |
17850 | int arg1 = (int) wxDateTime::Inv_Year ; | |
17851 | int arg2 = (int) wxDateTime::Country_Default ; | |
17852 | wxDateTime result; | |
17853 | PyObject * obj0 = 0 ; | |
17854 | PyObject * obj1 = 0 ; | |
17855 | char *kwnames[] = { | |
17856 | (char *) "year",(char *) "country", NULL | |
17857 | }; | |
17858 | ||
17859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetEndDST",kwnames,&obj0,&obj1)) goto fail; | |
17860 | if (obj0) { | |
c32bde28 | 17861 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17862 | if (PyErr_Occurred()) SWIG_fail; |
17863 | } | |
17864 | if (obj1) { | |
c32bde28 | 17865 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17866 | if (PyErr_Occurred()) SWIG_fail; |
17867 | } | |
17868 | { | |
17869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17870 | result = wxDateTime::GetEndDST(arg1,(wxDateTime::Country )arg2); | |
17871 | ||
17872 | wxPyEndAllowThreads(__tstate); | |
17873 | if (PyErr_Occurred()) SWIG_fail; | |
17874 | } | |
17875 | { | |
17876 | wxDateTime * resultptr; | |
17877 | resultptr = new wxDateTime((wxDateTime &) result); | |
17878 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
17879 | } | |
17880 | return resultobj; | |
17881 | fail: | |
17882 | return NULL; | |
17883 | } | |
17884 | ||
17885 | ||
c32bde28 | 17886 | static PyObject *_wrap_DateTime_Now(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17887 | PyObject *resultobj; |
17888 | wxDateTime result; | |
17889 | char *kwnames[] = { | |
17890 | NULL | |
17891 | }; | |
17892 | ||
17893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Now",kwnames)) goto fail; | |
17894 | { | |
17895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17896 | result = wxDateTime::Now(); | |
17897 | ||
17898 | wxPyEndAllowThreads(__tstate); | |
17899 | if (PyErr_Occurred()) SWIG_fail; | |
17900 | } | |
17901 | { | |
17902 | wxDateTime * resultptr; | |
17903 | resultptr = new wxDateTime((wxDateTime &) result); | |
17904 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
17905 | } | |
17906 | return resultobj; | |
17907 | fail: | |
17908 | return NULL; | |
17909 | } | |
17910 | ||
17911 | ||
c32bde28 | 17912 | static PyObject *_wrap_DateTime_UNow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17913 | PyObject *resultobj; |
17914 | wxDateTime result; | |
17915 | char *kwnames[] = { | |
17916 | NULL | |
17917 | }; | |
17918 | ||
17919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_UNow",kwnames)) goto fail; | |
17920 | { | |
17921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17922 | result = wxDateTime::UNow(); | |
17923 | ||
17924 | wxPyEndAllowThreads(__tstate); | |
17925 | if (PyErr_Occurred()) SWIG_fail; | |
17926 | } | |
17927 | { | |
17928 | wxDateTime * resultptr; | |
17929 | resultptr = new wxDateTime((wxDateTime &) result); | |
17930 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
17931 | } | |
17932 | return resultobj; | |
17933 | fail: | |
17934 | return NULL; | |
17935 | } | |
17936 | ||
17937 | ||
c32bde28 | 17938 | static PyObject *_wrap_DateTime_Today(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17939 | PyObject *resultobj; |
17940 | wxDateTime result; | |
17941 | char *kwnames[] = { | |
17942 | NULL | |
17943 | }; | |
17944 | ||
17945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Today",kwnames)) goto fail; | |
17946 | { | |
17947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17948 | result = wxDateTime::Today(); | |
17949 | ||
17950 | wxPyEndAllowThreads(__tstate); | |
17951 | if (PyErr_Occurred()) SWIG_fail; | |
17952 | } | |
17953 | { | |
17954 | wxDateTime * resultptr; | |
17955 | resultptr = new wxDateTime((wxDateTime &) result); | |
17956 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
17957 | } | |
17958 | return resultobj; | |
17959 | fail: | |
17960 | return NULL; | |
17961 | } | |
17962 | ||
17963 | ||
c32bde28 | 17964 | static PyObject *_wrap_new_DateTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17965 | PyObject *resultobj; |
17966 | wxDateTime *result; | |
17967 | char *kwnames[] = { | |
17968 | NULL | |
17969 | }; | |
17970 | ||
17971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DateTime",kwnames)) goto fail; | |
17972 | { | |
17973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17974 | result = (wxDateTime *)new wxDateTime(); | |
17975 | ||
17976 | wxPyEndAllowThreads(__tstate); | |
17977 | if (PyErr_Occurred()) SWIG_fail; | |
17978 | } | |
17979 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
17980 | return resultobj; | |
17981 | fail: | |
17982 | return NULL; | |
17983 | } | |
17984 | ||
17985 | ||
c32bde28 | 17986 | static PyObject *_wrap_new_DateTimeFromTimeT(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17987 | PyObject *resultobj; |
17988 | time_t arg1 ; | |
17989 | wxDateTime *result; | |
17990 | PyObject * obj0 = 0 ; | |
17991 | char *kwnames[] = { | |
17992 | (char *) "timet", NULL | |
17993 | }; | |
17994 | ||
17995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromTimeT",kwnames,&obj0)) goto fail; | |
c32bde28 | 17996 | arg1 = (time_t)SWIG_As_unsigned_SS_int(obj0); |
d55e5bfc RD |
17997 | if (PyErr_Occurred()) SWIG_fail; |
17998 | { | |
17999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18000 | result = (wxDateTime *)new wxDateTime(arg1); | |
18001 | ||
18002 | wxPyEndAllowThreads(__tstate); | |
18003 | if (PyErr_Occurred()) SWIG_fail; | |
18004 | } | |
18005 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
18006 | return resultobj; | |
18007 | fail: | |
18008 | return NULL; | |
18009 | } | |
18010 | ||
18011 | ||
c32bde28 | 18012 | static PyObject *_wrap_new_DateTimeFromJDN(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18013 | PyObject *resultobj; |
18014 | double arg1 ; | |
18015 | wxDateTime *result; | |
18016 | PyObject * obj0 = 0 ; | |
18017 | char *kwnames[] = { | |
18018 | (char *) "jdn", NULL | |
18019 | }; | |
18020 | ||
18021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromJDN",kwnames,&obj0)) goto fail; | |
c32bde28 | 18022 | arg1 = (double)SWIG_As_double(obj0); |
d55e5bfc RD |
18023 | if (PyErr_Occurred()) SWIG_fail; |
18024 | { | |
18025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18026 | result = (wxDateTime *)new wxDateTime(arg1); | |
18027 | ||
18028 | wxPyEndAllowThreads(__tstate); | |
18029 | if (PyErr_Occurred()) SWIG_fail; | |
18030 | } | |
18031 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
18032 | return resultobj; | |
18033 | fail: | |
18034 | return NULL; | |
18035 | } | |
18036 | ||
18037 | ||
c32bde28 | 18038 | static PyObject *_wrap_new_DateTimeFromHMS(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18039 | PyObject *resultobj; |
18040 | int arg1 ; | |
18041 | int arg2 = (int) 0 ; | |
18042 | int arg3 = (int) 0 ; | |
18043 | int arg4 = (int) 0 ; | |
18044 | wxDateTime *result; | |
18045 | PyObject * obj0 = 0 ; | |
18046 | PyObject * obj1 = 0 ; | |
18047 | PyObject * obj2 = 0 ; | |
18048 | PyObject * obj3 = 0 ; | |
18049 | char *kwnames[] = { | |
18050 | (char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
18051 | }; | |
18052 | ||
18053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DateTimeFromHMS",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
c32bde28 | 18054 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
18055 | if (PyErr_Occurred()) SWIG_fail; |
18056 | if (obj1) { | |
c32bde28 | 18057 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18058 | if (PyErr_Occurred()) SWIG_fail; |
18059 | } | |
18060 | if (obj2) { | |
c32bde28 | 18061 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
18062 | if (PyErr_Occurred()) SWIG_fail; |
18063 | } | |
18064 | if (obj3) { | |
c32bde28 | 18065 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
18066 | if (PyErr_Occurred()) SWIG_fail; |
18067 | } | |
18068 | { | |
18069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18070 | result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4); | |
18071 | ||
18072 | wxPyEndAllowThreads(__tstate); | |
18073 | if (PyErr_Occurred()) SWIG_fail; | |
18074 | } | |
18075 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
18076 | return resultobj; | |
18077 | fail: | |
18078 | return NULL; | |
18079 | } | |
18080 | ||
18081 | ||
c32bde28 | 18082 | static PyObject *_wrap_new_DateTimeFromDMY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18083 | PyObject *resultobj; |
18084 | int arg1 ; | |
18085 | int arg2 = (int) wxDateTime::Inv_Month ; | |
18086 | int arg3 = (int) wxDateTime::Inv_Year ; | |
18087 | int arg4 = (int) 0 ; | |
18088 | int arg5 = (int) 0 ; | |
18089 | int arg6 = (int) 0 ; | |
18090 | int arg7 = (int) 0 ; | |
18091 | wxDateTime *result; | |
18092 | PyObject * obj0 = 0 ; | |
18093 | PyObject * obj1 = 0 ; | |
18094 | PyObject * obj2 = 0 ; | |
18095 | PyObject * obj3 = 0 ; | |
18096 | PyObject * obj4 = 0 ; | |
18097 | PyObject * obj5 = 0 ; | |
18098 | PyObject * obj6 = 0 ; | |
18099 | char *kwnames[] = { | |
18100 | (char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
18101 | }; | |
18102 | ||
18103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DateTimeFromDMY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
c32bde28 | 18104 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
18105 | if (PyErr_Occurred()) SWIG_fail; |
18106 | if (obj1) { | |
c32bde28 | 18107 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18108 | if (PyErr_Occurred()) SWIG_fail; |
18109 | } | |
18110 | if (obj2) { | |
c32bde28 | 18111 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
18112 | if (PyErr_Occurred()) SWIG_fail; |
18113 | } | |
18114 | if (obj3) { | |
c32bde28 | 18115 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
18116 | if (PyErr_Occurred()) SWIG_fail; |
18117 | } | |
18118 | if (obj4) { | |
c32bde28 | 18119 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
18120 | if (PyErr_Occurred()) SWIG_fail; |
18121 | } | |
18122 | if (obj5) { | |
c32bde28 | 18123 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
18124 | if (PyErr_Occurred()) SWIG_fail; |
18125 | } | |
18126 | if (obj6) { | |
c32bde28 | 18127 | arg7 = (int)SWIG_As_int(obj6); |
d55e5bfc RD |
18128 | if (PyErr_Occurred()) SWIG_fail; |
18129 | } | |
18130 | { | |
18131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18132 | result = (wxDateTime *)new wxDateTime(arg1,(wxDateTime::Month )arg2,arg3,arg4,arg5,arg6,arg7); | |
18133 | ||
18134 | wxPyEndAllowThreads(__tstate); | |
18135 | if (PyErr_Occurred()) SWIG_fail; | |
18136 | } | |
18137 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); | |
18138 | return resultobj; | |
18139 | fail: | |
18140 | return NULL; | |
18141 | } | |
18142 | ||
18143 | ||
c32bde28 | 18144 | static PyObject *_wrap_delete_DateTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18145 | PyObject *resultobj; |
18146 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18147 | PyObject * obj0 = 0 ; | |
18148 | char *kwnames[] = { | |
18149 | (char *) "self", NULL | |
18150 | }; | |
18151 | ||
18152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateTime",kwnames,&obj0)) goto fail; | |
18153 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18154 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18155 | { | |
18156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18157 | delete arg1; | |
18158 | ||
18159 | wxPyEndAllowThreads(__tstate); | |
18160 | if (PyErr_Occurred()) SWIG_fail; | |
18161 | } | |
18162 | Py_INCREF(Py_None); resultobj = Py_None; | |
18163 | return resultobj; | |
18164 | fail: | |
18165 | return NULL; | |
18166 | } | |
18167 | ||
18168 | ||
c32bde28 | 18169 | static PyObject *_wrap_DateTime_SetToCurrent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18170 | PyObject *resultobj; |
18171 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18172 | wxDateTime *result; | |
18173 | PyObject * obj0 = 0 ; | |
18174 | char *kwnames[] = { | |
18175 | (char *) "self", NULL | |
18176 | }; | |
18177 | ||
18178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetToCurrent",kwnames,&obj0)) goto fail; | |
18179 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18180 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18181 | { | |
18182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18183 | { | |
18184 | wxDateTime &_result_ref = (arg1)->SetToCurrent(); | |
18185 | result = (wxDateTime *) &_result_ref; | |
18186 | } | |
18187 | ||
18188 | wxPyEndAllowThreads(__tstate); | |
18189 | if (PyErr_Occurred()) SWIG_fail; | |
18190 | } | |
18191 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18192 | return resultobj; | |
18193 | fail: | |
18194 | return NULL; | |
18195 | } | |
18196 | ||
18197 | ||
c32bde28 | 18198 | static PyObject *_wrap_DateTime_SetTimeT(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18199 | PyObject *resultobj; |
18200 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18201 | time_t arg2 ; | |
18202 | wxDateTime *result; | |
18203 | PyObject * obj0 = 0 ; | |
18204 | PyObject * obj1 = 0 ; | |
18205 | char *kwnames[] = { | |
18206 | (char *) "self",(char *) "timet", NULL | |
18207 | }; | |
18208 | ||
18209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetTimeT",kwnames,&obj0,&obj1)) goto fail; | |
18210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18212 | arg2 = (time_t)SWIG_As_unsigned_SS_int(obj1); |
d55e5bfc RD |
18213 | if (PyErr_Occurred()) SWIG_fail; |
18214 | { | |
18215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18216 | { | |
18217 | wxDateTime &_result_ref = (arg1)->Set(arg2); | |
18218 | result = (wxDateTime *) &_result_ref; | |
18219 | } | |
18220 | ||
18221 | wxPyEndAllowThreads(__tstate); | |
18222 | if (PyErr_Occurred()) SWIG_fail; | |
18223 | } | |
18224 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18225 | return resultobj; | |
18226 | fail: | |
18227 | return NULL; | |
18228 | } | |
18229 | ||
18230 | ||
c32bde28 | 18231 | static PyObject *_wrap_DateTime_SetJDN(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18232 | PyObject *resultobj; |
18233 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18234 | double arg2 ; | |
18235 | wxDateTime *result; | |
18236 | PyObject * obj0 = 0 ; | |
18237 | PyObject * obj1 = 0 ; | |
18238 | char *kwnames[] = { | |
18239 | (char *) "self",(char *) "jdn", NULL | |
18240 | }; | |
18241 | ||
18242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetJDN",kwnames,&obj0,&obj1)) goto fail; | |
18243 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18244 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18245 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc RD |
18246 | if (PyErr_Occurred()) SWIG_fail; |
18247 | { | |
18248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18249 | { | |
18250 | wxDateTime &_result_ref = (arg1)->Set(arg2); | |
18251 | result = (wxDateTime *) &_result_ref; | |
18252 | } | |
18253 | ||
18254 | wxPyEndAllowThreads(__tstate); | |
18255 | if (PyErr_Occurred()) SWIG_fail; | |
18256 | } | |
18257 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18258 | return resultobj; | |
18259 | fail: | |
18260 | return NULL; | |
18261 | } | |
18262 | ||
18263 | ||
c32bde28 | 18264 | static PyObject *_wrap_DateTime_SetHMS(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18265 | PyObject *resultobj; |
18266 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18267 | int arg2 ; | |
18268 | int arg3 = (int) 0 ; | |
18269 | int arg4 = (int) 0 ; | |
18270 | int arg5 = (int) 0 ; | |
18271 | wxDateTime *result; | |
18272 | PyObject * obj0 = 0 ; | |
18273 | PyObject * obj1 = 0 ; | |
18274 | PyObject * obj2 = 0 ; | |
18275 | PyObject * obj3 = 0 ; | |
18276 | PyObject * obj4 = 0 ; | |
18277 | char *kwnames[] = { | |
18278 | (char *) "self",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
18279 | }; | |
18280 | ||
18281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetHMS",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
18282 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18283 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18284 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18285 | if (PyErr_Occurred()) SWIG_fail; |
18286 | if (obj2) { | |
c32bde28 | 18287 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
18288 | if (PyErr_Occurred()) SWIG_fail; |
18289 | } | |
18290 | if (obj3) { | |
c32bde28 | 18291 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
18292 | if (PyErr_Occurred()) SWIG_fail; |
18293 | } | |
18294 | if (obj4) { | |
c32bde28 | 18295 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
18296 | if (PyErr_Occurred()) SWIG_fail; |
18297 | } | |
18298 | { | |
18299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18300 | { | |
18301 | wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5); | |
18302 | result = (wxDateTime *) &_result_ref; | |
18303 | } | |
18304 | ||
18305 | wxPyEndAllowThreads(__tstate); | |
18306 | if (PyErr_Occurred()) SWIG_fail; | |
18307 | } | |
18308 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18309 | return resultobj; | |
18310 | fail: | |
18311 | return NULL; | |
18312 | } | |
18313 | ||
18314 | ||
c32bde28 | 18315 | static PyObject *_wrap_DateTime_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18316 | PyObject *resultobj; |
18317 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18318 | int arg2 ; | |
18319 | int arg3 = (int) wxDateTime::Inv_Month ; | |
18320 | int arg4 = (int) wxDateTime::Inv_Year ; | |
18321 | int arg5 = (int) 0 ; | |
18322 | int arg6 = (int) 0 ; | |
18323 | int arg7 = (int) 0 ; | |
18324 | int arg8 = (int) 0 ; | |
18325 | wxDateTime *result; | |
18326 | PyObject * obj0 = 0 ; | |
18327 | PyObject * obj1 = 0 ; | |
18328 | PyObject * obj2 = 0 ; | |
18329 | PyObject * obj3 = 0 ; | |
18330 | PyObject * obj4 = 0 ; | |
18331 | PyObject * obj5 = 0 ; | |
18332 | PyObject * obj6 = 0 ; | |
18333 | PyObject * obj7 = 0 ; | |
18334 | char *kwnames[] = { | |
18335 | (char *) "self",(char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
18336 | }; | |
18337 | ||
18338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:DateTime_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
18339 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18340 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18341 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18342 | if (PyErr_Occurred()) SWIG_fail; |
18343 | if (obj2) { | |
c32bde28 | 18344 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
18345 | if (PyErr_Occurred()) SWIG_fail; |
18346 | } | |
18347 | if (obj3) { | |
c32bde28 | 18348 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
18349 | if (PyErr_Occurred()) SWIG_fail; |
18350 | } | |
18351 | if (obj4) { | |
c32bde28 | 18352 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
18353 | if (PyErr_Occurred()) SWIG_fail; |
18354 | } | |
18355 | if (obj5) { | |
c32bde28 | 18356 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
18357 | if (PyErr_Occurred()) SWIG_fail; |
18358 | } | |
18359 | if (obj6) { | |
c32bde28 | 18360 | arg7 = (int)SWIG_As_int(obj6); |
d55e5bfc RD |
18361 | if (PyErr_Occurred()) SWIG_fail; |
18362 | } | |
18363 | if (obj7) { | |
c32bde28 | 18364 | arg8 = (int)SWIG_As_int(obj7); |
d55e5bfc RD |
18365 | if (PyErr_Occurred()) SWIG_fail; |
18366 | } | |
18367 | { | |
18368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18369 | { | |
18370 | wxDateTime &_result_ref = (arg1)->Set(arg2,(wxDateTime::Month )arg3,arg4,arg5,arg6,arg7,arg8); | |
18371 | result = (wxDateTime *) &_result_ref; | |
18372 | } | |
18373 | ||
18374 | wxPyEndAllowThreads(__tstate); | |
18375 | if (PyErr_Occurred()) SWIG_fail; | |
18376 | } | |
18377 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18378 | return resultobj; | |
18379 | fail: | |
18380 | return NULL; | |
18381 | } | |
18382 | ||
18383 | ||
c32bde28 | 18384 | static PyObject *_wrap_DateTime_ResetTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18385 | PyObject *resultobj; |
18386 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18387 | wxDateTime *result; | |
18388 | PyObject * obj0 = 0 ; | |
18389 | char *kwnames[] = { | |
18390 | (char *) "self", NULL | |
18391 | }; | |
18392 | ||
18393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ResetTime",kwnames,&obj0)) goto fail; | |
18394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18396 | { | |
18397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18398 | { | |
18399 | wxDateTime &_result_ref = (arg1)->ResetTime(); | |
18400 | result = (wxDateTime *) &_result_ref; | |
18401 | } | |
18402 | ||
18403 | wxPyEndAllowThreads(__tstate); | |
18404 | if (PyErr_Occurred()) SWIG_fail; | |
18405 | } | |
18406 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18407 | return resultobj; | |
18408 | fail: | |
18409 | return NULL; | |
18410 | } | |
18411 | ||
18412 | ||
c32bde28 | 18413 | static PyObject *_wrap_DateTime_SetYear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18414 | PyObject *resultobj; |
18415 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18416 | int arg2 ; | |
18417 | wxDateTime *result; | |
18418 | PyObject * obj0 = 0 ; | |
18419 | PyObject * obj1 = 0 ; | |
18420 | char *kwnames[] = { | |
18421 | (char *) "self",(char *) "year", NULL | |
18422 | }; | |
18423 | ||
18424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetYear",kwnames,&obj0,&obj1)) goto fail; | |
18425 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18426 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18427 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18428 | if (PyErr_Occurred()) SWIG_fail; |
18429 | { | |
18430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18431 | { | |
18432 | wxDateTime &_result_ref = (arg1)->SetYear(arg2); | |
18433 | result = (wxDateTime *) &_result_ref; | |
18434 | } | |
18435 | ||
18436 | wxPyEndAllowThreads(__tstate); | |
18437 | if (PyErr_Occurred()) SWIG_fail; | |
18438 | } | |
18439 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18440 | return resultobj; | |
18441 | fail: | |
18442 | return NULL; | |
18443 | } | |
18444 | ||
18445 | ||
c32bde28 | 18446 | static PyObject *_wrap_DateTime_SetMonth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18447 | PyObject *resultobj; |
18448 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18449 | int arg2 ; | |
18450 | wxDateTime *result; | |
18451 | PyObject * obj0 = 0 ; | |
18452 | PyObject * obj1 = 0 ; | |
18453 | char *kwnames[] = { | |
18454 | (char *) "self",(char *) "month", NULL | |
18455 | }; | |
18456 | ||
18457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMonth",kwnames,&obj0,&obj1)) goto fail; | |
18458 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18459 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18460 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18461 | if (PyErr_Occurred()) SWIG_fail; |
18462 | { | |
18463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18464 | { | |
18465 | wxDateTime &_result_ref = (arg1)->SetMonth((wxDateTime::Month )arg2); | |
18466 | result = (wxDateTime *) &_result_ref; | |
18467 | } | |
18468 | ||
18469 | wxPyEndAllowThreads(__tstate); | |
18470 | if (PyErr_Occurred()) SWIG_fail; | |
18471 | } | |
18472 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18473 | return resultobj; | |
18474 | fail: | |
18475 | return NULL; | |
18476 | } | |
18477 | ||
18478 | ||
c32bde28 | 18479 | static PyObject *_wrap_DateTime_SetDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18480 | PyObject *resultobj; |
18481 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18482 | int arg2 ; | |
18483 | wxDateTime *result; | |
18484 | PyObject * obj0 = 0 ; | |
18485 | PyObject * obj1 = 0 ; | |
18486 | char *kwnames[] = { | |
18487 | (char *) "self",(char *) "day", NULL | |
18488 | }; | |
18489 | ||
18490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetDay",kwnames,&obj0,&obj1)) goto fail; | |
18491 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18492 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18493 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18494 | if (PyErr_Occurred()) SWIG_fail; |
18495 | { | |
18496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18497 | { | |
18498 | wxDateTime &_result_ref = (arg1)->SetDay(arg2); | |
18499 | result = (wxDateTime *) &_result_ref; | |
18500 | } | |
18501 | ||
18502 | wxPyEndAllowThreads(__tstate); | |
18503 | if (PyErr_Occurred()) SWIG_fail; | |
18504 | } | |
18505 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18506 | return resultobj; | |
18507 | fail: | |
18508 | return NULL; | |
18509 | } | |
18510 | ||
18511 | ||
c32bde28 | 18512 | static PyObject *_wrap_DateTime_SetHour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18513 | PyObject *resultobj; |
18514 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18515 | int arg2 ; | |
18516 | wxDateTime *result; | |
18517 | PyObject * obj0 = 0 ; | |
18518 | PyObject * obj1 = 0 ; | |
18519 | char *kwnames[] = { | |
18520 | (char *) "self",(char *) "hour", NULL | |
18521 | }; | |
18522 | ||
18523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetHour",kwnames,&obj0,&obj1)) goto fail; | |
18524 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18525 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18526 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18527 | if (PyErr_Occurred()) SWIG_fail; |
18528 | { | |
18529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18530 | { | |
18531 | wxDateTime &_result_ref = (arg1)->SetHour(arg2); | |
18532 | result = (wxDateTime *) &_result_ref; | |
18533 | } | |
18534 | ||
18535 | wxPyEndAllowThreads(__tstate); | |
18536 | if (PyErr_Occurred()) SWIG_fail; | |
18537 | } | |
18538 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18539 | return resultobj; | |
18540 | fail: | |
18541 | return NULL; | |
18542 | } | |
18543 | ||
18544 | ||
c32bde28 | 18545 | static PyObject *_wrap_DateTime_SetMinute(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18546 | PyObject *resultobj; |
18547 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18548 | int arg2 ; | |
18549 | wxDateTime *result; | |
18550 | PyObject * obj0 = 0 ; | |
18551 | PyObject * obj1 = 0 ; | |
18552 | char *kwnames[] = { | |
18553 | (char *) "self",(char *) "minute", NULL | |
18554 | }; | |
18555 | ||
18556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMinute",kwnames,&obj0,&obj1)) goto fail; | |
18557 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18558 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18559 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18560 | if (PyErr_Occurred()) SWIG_fail; |
18561 | { | |
18562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18563 | { | |
18564 | wxDateTime &_result_ref = (arg1)->SetMinute(arg2); | |
18565 | result = (wxDateTime *) &_result_ref; | |
18566 | } | |
18567 | ||
18568 | wxPyEndAllowThreads(__tstate); | |
18569 | if (PyErr_Occurred()) SWIG_fail; | |
18570 | } | |
18571 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18572 | return resultobj; | |
18573 | fail: | |
18574 | return NULL; | |
18575 | } | |
18576 | ||
18577 | ||
c32bde28 | 18578 | static PyObject *_wrap_DateTime_SetSecond(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18579 | PyObject *resultobj; |
18580 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18581 | int arg2 ; | |
18582 | wxDateTime *result; | |
18583 | PyObject * obj0 = 0 ; | |
18584 | PyObject * obj1 = 0 ; | |
18585 | char *kwnames[] = { | |
18586 | (char *) "self",(char *) "second", NULL | |
18587 | }; | |
18588 | ||
18589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetSecond",kwnames,&obj0,&obj1)) goto fail; | |
18590 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18592 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18593 | if (PyErr_Occurred()) SWIG_fail; |
18594 | { | |
18595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18596 | { | |
18597 | wxDateTime &_result_ref = (arg1)->SetSecond(arg2); | |
18598 | result = (wxDateTime *) &_result_ref; | |
18599 | } | |
18600 | ||
18601 | wxPyEndAllowThreads(__tstate); | |
18602 | if (PyErr_Occurred()) SWIG_fail; | |
18603 | } | |
18604 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18605 | return resultobj; | |
18606 | fail: | |
18607 | return NULL; | |
18608 | } | |
18609 | ||
18610 | ||
c32bde28 | 18611 | static PyObject *_wrap_DateTime_SetMillisecond(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18612 | PyObject *resultobj; |
18613 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18614 | int arg2 ; | |
18615 | wxDateTime *result; | |
18616 | PyObject * obj0 = 0 ; | |
18617 | PyObject * obj1 = 0 ; | |
18618 | char *kwnames[] = { | |
18619 | (char *) "self",(char *) "millisecond", NULL | |
18620 | }; | |
18621 | ||
18622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMillisecond",kwnames,&obj0,&obj1)) goto fail; | |
18623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18625 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18626 | if (PyErr_Occurred()) SWIG_fail; |
18627 | { | |
18628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18629 | { | |
18630 | wxDateTime &_result_ref = (arg1)->SetMillisecond(arg2); | |
18631 | result = (wxDateTime *) &_result_ref; | |
18632 | } | |
18633 | ||
18634 | wxPyEndAllowThreads(__tstate); | |
18635 | if (PyErr_Occurred()) SWIG_fail; | |
18636 | } | |
18637 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18638 | return resultobj; | |
18639 | fail: | |
18640 | return NULL; | |
18641 | } | |
18642 | ||
18643 | ||
c32bde28 | 18644 | static PyObject *_wrap_DateTime_SetToWeekDayInSameWeek(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18645 | PyObject *resultobj; |
18646 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18647 | int arg2 ; | |
18648 | int arg3 = (int) wxDateTime::Monday_First ; | |
18649 | wxDateTime *result; | |
18650 | PyObject * obj0 = 0 ; | |
18651 | PyObject * obj1 = 0 ; | |
18652 | PyObject * obj2 = 0 ; | |
18653 | char *kwnames[] = { | |
18654 | (char *) "self",(char *) "weekday",(char *) "flags", NULL | |
18655 | }; | |
18656 | ||
18657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18658 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18659 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18660 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18661 | if (PyErr_Occurred()) SWIG_fail; |
18662 | if (obj2) { | |
c32bde28 | 18663 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
18664 | if (PyErr_Occurred()) SWIG_fail; |
18665 | } | |
18666 | { | |
18667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18668 | { | |
18669 | wxDateTime &_result_ref = (arg1)->SetToWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3); | |
18670 | result = (wxDateTime *) &_result_ref; | |
18671 | } | |
18672 | ||
18673 | wxPyEndAllowThreads(__tstate); | |
18674 | if (PyErr_Occurred()) SWIG_fail; | |
18675 | } | |
18676 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18677 | return resultobj; | |
18678 | fail: | |
18679 | return NULL; | |
18680 | } | |
18681 | ||
18682 | ||
c32bde28 | 18683 | static PyObject *_wrap_DateTime_GetWeekDayInSameWeek(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18684 | PyObject *resultobj; |
18685 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18686 | int arg2 ; | |
18687 | int arg3 = (int) wxDateTime::Monday_First ; | |
18688 | wxDateTime result; | |
18689 | PyObject * obj0 = 0 ; | |
18690 | PyObject * obj1 = 0 ; | |
18691 | PyObject * obj2 = 0 ; | |
18692 | char *kwnames[] = { | |
18693 | (char *) "self",(char *) "weekday",(char *) "flags", NULL | |
18694 | }; | |
18695 | ||
18696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_GetWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18697 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18698 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18699 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18700 | if (PyErr_Occurred()) SWIG_fail; |
18701 | if (obj2) { | |
c32bde28 | 18702 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
18703 | if (PyErr_Occurred()) SWIG_fail; |
18704 | } | |
18705 | { | |
18706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18707 | result = (arg1)->GetWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3); | |
18708 | ||
18709 | wxPyEndAllowThreads(__tstate); | |
18710 | if (PyErr_Occurred()) SWIG_fail; | |
18711 | } | |
18712 | { | |
18713 | wxDateTime * resultptr; | |
18714 | resultptr = new wxDateTime((wxDateTime &) result); | |
18715 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18716 | } | |
18717 | return resultobj; | |
18718 | fail: | |
18719 | return NULL; | |
18720 | } | |
18721 | ||
18722 | ||
c32bde28 | 18723 | static PyObject *_wrap_DateTime_SetToNextWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18724 | PyObject *resultobj; |
18725 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18726 | int arg2 ; | |
18727 | wxDateTime *result; | |
18728 | PyObject * obj0 = 0 ; | |
18729 | PyObject * obj1 = 0 ; | |
18730 | char *kwnames[] = { | |
18731 | (char *) "self",(char *) "weekday", NULL | |
18732 | }; | |
18733 | ||
18734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToNextWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
18735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18737 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18738 | if (PyErr_Occurred()) SWIG_fail; |
18739 | { | |
18740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18741 | { | |
18742 | wxDateTime &_result_ref = (arg1)->SetToNextWeekDay((wxDateTime::WeekDay )arg2); | |
18743 | result = (wxDateTime *) &_result_ref; | |
18744 | } | |
18745 | ||
18746 | wxPyEndAllowThreads(__tstate); | |
18747 | if (PyErr_Occurred()) SWIG_fail; | |
18748 | } | |
18749 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18750 | return resultobj; | |
18751 | fail: | |
18752 | return NULL; | |
18753 | } | |
18754 | ||
18755 | ||
c32bde28 | 18756 | static PyObject *_wrap_DateTime_GetNextWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18757 | PyObject *resultobj; |
18758 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18759 | int arg2 ; | |
18760 | wxDateTime result; | |
18761 | PyObject * obj0 = 0 ; | |
18762 | PyObject * obj1 = 0 ; | |
18763 | char *kwnames[] = { | |
18764 | (char *) "self",(char *) "weekday", NULL | |
18765 | }; | |
18766 | ||
18767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetNextWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
18768 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18769 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18770 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18771 | if (PyErr_Occurred()) SWIG_fail; |
18772 | { | |
18773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18774 | result = (arg1)->GetNextWeekDay((wxDateTime::WeekDay )arg2); | |
18775 | ||
18776 | wxPyEndAllowThreads(__tstate); | |
18777 | if (PyErr_Occurred()) SWIG_fail; | |
18778 | } | |
18779 | { | |
18780 | wxDateTime * resultptr; | |
18781 | resultptr = new wxDateTime((wxDateTime &) result); | |
18782 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18783 | } | |
18784 | return resultobj; | |
18785 | fail: | |
18786 | return NULL; | |
18787 | } | |
18788 | ||
18789 | ||
c32bde28 | 18790 | static PyObject *_wrap_DateTime_SetToPrevWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18791 | PyObject *resultobj; |
18792 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18793 | int arg2 ; | |
18794 | wxDateTime *result; | |
18795 | PyObject * obj0 = 0 ; | |
18796 | PyObject * obj1 = 0 ; | |
18797 | char *kwnames[] = { | |
18798 | (char *) "self",(char *) "weekday", NULL | |
18799 | }; | |
18800 | ||
18801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToPrevWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
18802 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18803 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18804 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18805 | if (PyErr_Occurred()) SWIG_fail; |
18806 | { | |
18807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18808 | { | |
18809 | wxDateTime &_result_ref = (arg1)->SetToPrevWeekDay((wxDateTime::WeekDay )arg2); | |
18810 | result = (wxDateTime *) &_result_ref; | |
18811 | } | |
18812 | ||
18813 | wxPyEndAllowThreads(__tstate); | |
18814 | if (PyErr_Occurred()) SWIG_fail; | |
18815 | } | |
18816 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
18817 | return resultobj; | |
18818 | fail: | |
18819 | return NULL; | |
18820 | } | |
18821 | ||
18822 | ||
c32bde28 | 18823 | static PyObject *_wrap_DateTime_GetPrevWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18824 | PyObject *resultobj; |
18825 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18826 | int arg2 ; | |
18827 | wxDateTime result; | |
18828 | PyObject * obj0 = 0 ; | |
18829 | PyObject * obj1 = 0 ; | |
18830 | char *kwnames[] = { | |
18831 | (char *) "self",(char *) "weekday", NULL | |
18832 | }; | |
18833 | ||
18834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetPrevWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
18835 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18836 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18837 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18838 | if (PyErr_Occurred()) SWIG_fail; |
18839 | { | |
18840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18841 | result = (arg1)->GetPrevWeekDay((wxDateTime::WeekDay )arg2); | |
18842 | ||
18843 | wxPyEndAllowThreads(__tstate); | |
18844 | if (PyErr_Occurred()) SWIG_fail; | |
18845 | } | |
18846 | { | |
18847 | wxDateTime * resultptr; | |
18848 | resultptr = new wxDateTime((wxDateTime &) result); | |
18849 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18850 | } | |
18851 | return resultobj; | |
18852 | fail: | |
18853 | return NULL; | |
18854 | } | |
18855 | ||
18856 | ||
c32bde28 | 18857 | static PyObject *_wrap_DateTime_SetToWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18858 | PyObject *resultobj; |
18859 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18860 | int arg2 ; | |
18861 | int arg3 = (int) 1 ; | |
18862 | int arg4 = (int) wxDateTime::Inv_Month ; | |
18863 | int arg5 = (int) wxDateTime::Inv_Year ; | |
18864 | bool result; | |
18865 | PyObject * obj0 = 0 ; | |
18866 | PyObject * obj1 = 0 ; | |
18867 | PyObject * obj2 = 0 ; | |
18868 | PyObject * obj3 = 0 ; | |
18869 | PyObject * obj4 = 0 ; | |
18870 | char *kwnames[] = { | |
18871 | (char *) "self",(char *) "weekday",(char *) "n",(char *) "month",(char *) "year", NULL | |
18872 | }; | |
18873 | ||
18874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetToWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
18875 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18876 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18877 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18878 | if (PyErr_Occurred()) SWIG_fail; |
18879 | if (obj2) { | |
c32bde28 | 18880 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
18881 | if (PyErr_Occurred()) SWIG_fail; |
18882 | } | |
18883 | if (obj3) { | |
c32bde28 | 18884 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
18885 | if (PyErr_Occurred()) SWIG_fail; |
18886 | } | |
18887 | if (obj4) { | |
c32bde28 | 18888 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
18889 | if (PyErr_Occurred()) SWIG_fail; |
18890 | } | |
18891 | { | |
18892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18893 | result = (bool)(arg1)->SetToWeekDay((wxDateTime::WeekDay )arg2,arg3,(wxDateTime::Month )arg4,arg5); | |
18894 | ||
18895 | wxPyEndAllowThreads(__tstate); | |
18896 | if (PyErr_Occurred()) SWIG_fail; | |
18897 | } | |
18898 | { | |
18899 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18900 | } | |
18901 | return resultobj; | |
18902 | fail: | |
18903 | return NULL; | |
18904 | } | |
18905 | ||
18906 | ||
c32bde28 | 18907 | static PyObject *_wrap_DateTime_SetToLastWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18908 | PyObject *resultobj; |
18909 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18910 | int arg2 ; | |
18911 | int arg3 = (int) wxDateTime::Inv_Month ; | |
18912 | int arg4 = (int) wxDateTime::Inv_Year ; | |
18913 | bool result; | |
18914 | PyObject * obj0 = 0 ; | |
18915 | PyObject * obj1 = 0 ; | |
18916 | PyObject * obj2 = 0 ; | |
18917 | PyObject * obj3 = 0 ; | |
18918 | char *kwnames[] = { | |
18919 | (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL | |
18920 | }; | |
18921 | ||
18922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
18923 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18924 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18925 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18926 | if (PyErr_Occurred()) SWIG_fail; |
18927 | if (obj2) { | |
c32bde28 | 18928 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
18929 | if (PyErr_Occurred()) SWIG_fail; |
18930 | } | |
18931 | if (obj3) { | |
c32bde28 | 18932 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
18933 | if (PyErr_Occurred()) SWIG_fail; |
18934 | } | |
18935 | { | |
18936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18937 | result = (bool)(arg1)->SetToLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4); | |
18938 | ||
18939 | wxPyEndAllowThreads(__tstate); | |
18940 | if (PyErr_Occurred()) SWIG_fail; | |
18941 | } | |
18942 | { | |
18943 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18944 | } | |
18945 | return resultobj; | |
18946 | fail: | |
18947 | return NULL; | |
18948 | } | |
18949 | ||
18950 | ||
c32bde28 | 18951 | static PyObject *_wrap_DateTime_GetLastWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18952 | PyObject *resultobj; |
18953 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18954 | int arg2 ; | |
18955 | int arg3 = (int) wxDateTime::Inv_Month ; | |
18956 | int arg4 = (int) wxDateTime::Inv_Year ; | |
18957 | wxDateTime result; | |
18958 | PyObject * obj0 = 0 ; | |
18959 | PyObject * obj1 = 0 ; | |
18960 | PyObject * obj2 = 0 ; | |
18961 | PyObject * obj3 = 0 ; | |
18962 | char *kwnames[] = { | |
18963 | (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL | |
18964 | }; | |
18965 | ||
18966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
18967 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
18968 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 18969 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
18970 | if (PyErr_Occurred()) SWIG_fail; |
18971 | if (obj2) { | |
c32bde28 | 18972 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
18973 | if (PyErr_Occurred()) SWIG_fail; |
18974 | } | |
18975 | if (obj3) { | |
c32bde28 | 18976 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
18977 | if (PyErr_Occurred()) SWIG_fail; |
18978 | } | |
18979 | { | |
18980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18981 | result = (arg1)->GetLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4); | |
18982 | ||
18983 | wxPyEndAllowThreads(__tstate); | |
18984 | if (PyErr_Occurred()) SWIG_fail; | |
18985 | } | |
18986 | { | |
18987 | wxDateTime * resultptr; | |
18988 | resultptr = new wxDateTime((wxDateTime &) result); | |
18989 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
18990 | } | |
18991 | return resultobj; | |
18992 | fail: | |
18993 | return NULL; | |
18994 | } | |
18995 | ||
18996 | ||
c32bde28 | 18997 | static PyObject *_wrap_DateTime_SetToTheWeek(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18998 | PyObject *resultobj; |
18999 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19000 | int arg2 ; | |
19001 | int arg3 = (int) wxDateTime::Mon ; | |
19002 | int arg4 = (int) wxDateTime::Monday_First ; | |
19003 | bool result; | |
19004 | PyObject * obj0 = 0 ; | |
19005 | PyObject * obj1 = 0 ; | |
19006 | PyObject * obj2 = 0 ; | |
19007 | PyObject * obj3 = 0 ; | |
19008 | char *kwnames[] = { | |
19009 | (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL | |
19010 | }; | |
19011 | ||
19012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToTheWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
19013 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19014 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 19015 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
19016 | if (PyErr_Occurred()) SWIG_fail; |
19017 | if (obj2) { | |
c32bde28 | 19018 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
19019 | if (PyErr_Occurred()) SWIG_fail; |
19020 | } | |
19021 | if (obj3) { | |
c32bde28 | 19022 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
19023 | if (PyErr_Occurred()) SWIG_fail; |
19024 | } | |
19025 | { | |
19026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19027 | result = (bool)(arg1)->SetToTheWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4); | |
19028 | ||
19029 | wxPyEndAllowThreads(__tstate); | |
19030 | if (PyErr_Occurred()) SWIG_fail; | |
19031 | } | |
19032 | { | |
19033 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19034 | } | |
19035 | return resultobj; | |
19036 | fail: | |
19037 | return NULL; | |
19038 | } | |
19039 | ||
19040 | ||
c32bde28 | 19041 | static PyObject *_wrap_DateTime_GetWeek(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19042 | PyObject *resultobj; |
19043 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19044 | int arg2 ; | |
19045 | int arg3 = (int) wxDateTime::Mon ; | |
19046 | int arg4 = (int) wxDateTime::Monday_First ; | |
19047 | wxDateTime result; | |
19048 | PyObject * obj0 = 0 ; | |
19049 | PyObject * obj1 = 0 ; | |
19050 | PyObject * obj2 = 0 ; | |
19051 | PyObject * obj3 = 0 ; | |
19052 | char *kwnames[] = { | |
19053 | (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL | |
19054 | }; | |
19055 | ||
19056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
19057 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19058 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 19059 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
19060 | if (PyErr_Occurred()) SWIG_fail; |
19061 | if (obj2) { | |
c32bde28 | 19062 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
19063 | if (PyErr_Occurred()) SWIG_fail; |
19064 | } | |
19065 | if (obj3) { | |
c32bde28 | 19066 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
19067 | if (PyErr_Occurred()) SWIG_fail; |
19068 | } | |
19069 | { | |
19070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19071 | result = (arg1)->GetWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4); | |
19072 | ||
19073 | wxPyEndAllowThreads(__tstate); | |
19074 | if (PyErr_Occurred()) SWIG_fail; | |
19075 | } | |
19076 | { | |
19077 | wxDateTime * resultptr; | |
19078 | resultptr = new wxDateTime((wxDateTime &) result); | |
19079 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
19080 | } | |
19081 | return resultobj; | |
19082 | fail: | |
19083 | return NULL; | |
19084 | } | |
19085 | ||
19086 | ||
7e63a440 RD |
19087 | static PyObject *_wrap_DateTime_SetToWeekOfYear(PyObject *, PyObject *args, PyObject *kwargs) { |
19088 | PyObject *resultobj; | |
19089 | int arg1 ; | |
19090 | int arg2 ; | |
19091 | int arg3 = (int) wxDateTime::Mon ; | |
19092 | wxDateTime result; | |
19093 | PyObject * obj0 = 0 ; | |
19094 | PyObject * obj1 = 0 ; | |
19095 | PyObject * obj2 = 0 ; | |
19096 | char *kwnames[] = { | |
19097 | (char *) "year",(char *) "numWeek",(char *) "weekday", NULL | |
19098 | }; | |
19099 | ||
19100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19101 | arg1 = (int)SWIG_As_int(obj0); | |
19102 | if (PyErr_Occurred()) SWIG_fail; | |
19103 | arg2 = (int)SWIG_As_int(obj1); | |
19104 | if (PyErr_Occurred()) SWIG_fail; | |
19105 | if (obj2) { | |
19106 | arg3 = (int)SWIG_As_int(obj2); | |
19107 | if (PyErr_Occurred()) SWIG_fail; | |
19108 | } | |
19109 | { | |
19110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19111 | result = wxDateTime::SetToWeekOfYear(arg1,arg2,(wxDateTime::WeekDay )arg3); | |
19112 | ||
19113 | wxPyEndAllowThreads(__tstate); | |
19114 | if (PyErr_Occurred()) SWIG_fail; | |
19115 | } | |
19116 | { | |
19117 | wxDateTime * resultptr; | |
19118 | resultptr = new wxDateTime((wxDateTime &) result); | |
19119 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
19120 | } | |
19121 | return resultobj; | |
19122 | fail: | |
19123 | return NULL; | |
19124 | } | |
19125 | ||
19126 | ||
c32bde28 | 19127 | static PyObject *_wrap_DateTime_SetToLastMonthDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19128 | PyObject *resultobj; |
19129 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19130 | int arg2 = (int) wxDateTime::Inv_Month ; | |
19131 | int arg3 = (int) wxDateTime::Inv_Year ; | |
19132 | wxDateTime *result; | |
19133 | PyObject * obj0 = 0 ; | |
19134 | PyObject * obj1 = 0 ; | |
19135 | PyObject * obj2 = 0 ; | |
19136 | char *kwnames[] = { | |
19137 | (char *) "self",(char *) "month",(char *) "year", NULL | |
19138 | }; | |
19139 | ||
19140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_SetToLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19141 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19143 | if (obj1) { | |
c32bde28 | 19144 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
19145 | if (PyErr_Occurred()) SWIG_fail; |
19146 | } | |
19147 | if (obj2) { | |
c32bde28 | 19148 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
19149 | if (PyErr_Occurred()) SWIG_fail; |
19150 | } | |
19151 | { | |
19152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19153 | { | |
19154 | wxDateTime &_result_ref = (arg1)->SetToLastMonthDay((wxDateTime::Month )arg2,arg3); | |
19155 | result = (wxDateTime *) &_result_ref; | |
19156 | } | |
19157 | ||
19158 | wxPyEndAllowThreads(__tstate); | |
19159 | if (PyErr_Occurred()) SWIG_fail; | |
19160 | } | |
19161 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
19162 | return resultobj; | |
19163 | fail: | |
19164 | return NULL; | |
19165 | } | |
19166 | ||
19167 | ||
c32bde28 | 19168 | static PyObject *_wrap_DateTime_GetLastMonthDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19169 | PyObject *resultobj; |
19170 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19171 | int arg2 = (int) wxDateTime::Inv_Month ; | |
19172 | int arg3 = (int) wxDateTime::Inv_Year ; | |
19173 | wxDateTime result; | |
19174 | PyObject * obj0 = 0 ; | |
19175 | PyObject * obj1 = 0 ; | |
19176 | PyObject * obj2 = 0 ; | |
19177 | char *kwnames[] = { | |
19178 | (char *) "self",(char *) "month",(char *) "year", NULL | |
19179 | }; | |
19180 | ||
19181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19182 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19183 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19184 | if (obj1) { | |
c32bde28 | 19185 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
19186 | if (PyErr_Occurred()) SWIG_fail; |
19187 | } | |
19188 | if (obj2) { | |
c32bde28 | 19189 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
19190 | if (PyErr_Occurred()) SWIG_fail; |
19191 | } | |
19192 | { | |
19193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19194 | result = (arg1)->GetLastMonthDay((wxDateTime::Month )arg2,arg3); | |
19195 | ||
19196 | wxPyEndAllowThreads(__tstate); | |
19197 | if (PyErr_Occurred()) SWIG_fail; | |
19198 | } | |
19199 | { | |
19200 | wxDateTime * resultptr; | |
19201 | resultptr = new wxDateTime((wxDateTime &) result); | |
19202 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
19203 | } | |
19204 | return resultobj; | |
19205 | fail: | |
19206 | return NULL; | |
19207 | } | |
19208 | ||
19209 | ||
c32bde28 | 19210 | static PyObject *_wrap_DateTime_SetToYearDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19211 | PyObject *resultobj; |
19212 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19213 | int arg2 ; | |
19214 | wxDateTime *result; | |
19215 | PyObject * obj0 = 0 ; | |
19216 | PyObject * obj1 = 0 ; | |
19217 | char *kwnames[] = { | |
19218 | (char *) "self",(char *) "yday", NULL | |
19219 | }; | |
19220 | ||
19221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToYearDay",kwnames,&obj0,&obj1)) goto fail; | |
19222 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 19224 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
19225 | if (PyErr_Occurred()) SWIG_fail; |
19226 | { | |
19227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19228 | { | |
19229 | wxDateTime &_result_ref = (arg1)->SetToYearDay(arg2); | |
19230 | result = (wxDateTime *) &_result_ref; | |
19231 | } | |
19232 | ||
19233 | wxPyEndAllowThreads(__tstate); | |
19234 | if (PyErr_Occurred()) SWIG_fail; | |
19235 | } | |
19236 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
19237 | return resultobj; | |
19238 | fail: | |
19239 | return NULL; | |
19240 | } | |
19241 | ||
19242 | ||
c32bde28 | 19243 | static PyObject *_wrap_DateTime_GetYearDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19244 | PyObject *resultobj; |
19245 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19246 | int arg2 ; | |
19247 | wxDateTime result; | |
19248 | PyObject * obj0 = 0 ; | |
19249 | PyObject * obj1 = 0 ; | |
19250 | char *kwnames[] = { | |
19251 | (char *) "self",(char *) "yday", NULL | |
19252 | }; | |
19253 | ||
19254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetYearDay",kwnames,&obj0,&obj1)) goto fail; | |
19255 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19256 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 19257 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
19258 | if (PyErr_Occurred()) SWIG_fail; |
19259 | { | |
19260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19261 | result = (arg1)->GetYearDay(arg2); | |
19262 | ||
19263 | wxPyEndAllowThreads(__tstate); | |
19264 | if (PyErr_Occurred()) SWIG_fail; | |
19265 | } | |
19266 | { | |
19267 | wxDateTime * resultptr; | |
19268 | resultptr = new wxDateTime((wxDateTime &) result); | |
19269 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
19270 | } | |
19271 | return resultobj; | |
19272 | fail: | |
19273 | return NULL; | |
19274 | } | |
19275 | ||
19276 | ||
c32bde28 | 19277 | static PyObject *_wrap_DateTime_GetJulianDayNumber(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19278 | PyObject *resultobj; |
19279 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19280 | double result; | |
19281 | PyObject * obj0 = 0 ; | |
19282 | char *kwnames[] = { | |
19283 | (char *) "self", NULL | |
19284 | }; | |
19285 | ||
19286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJulianDayNumber",kwnames,&obj0)) goto fail; | |
19287 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19289 | { | |
19290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19291 | result = (double)(arg1)->GetJulianDayNumber(); | |
19292 | ||
19293 | wxPyEndAllowThreads(__tstate); | |
19294 | if (PyErr_Occurred()) SWIG_fail; | |
19295 | } | |
c32bde28 | 19296 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
19297 | return resultobj; |
19298 | fail: | |
19299 | return NULL; | |
19300 | } | |
19301 | ||
19302 | ||
c32bde28 | 19303 | static PyObject *_wrap_DateTime_GetJDN(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19304 | PyObject *resultobj; |
19305 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19306 | double result; | |
19307 | PyObject * obj0 = 0 ; | |
19308 | char *kwnames[] = { | |
19309 | (char *) "self", NULL | |
19310 | }; | |
19311 | ||
19312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJDN",kwnames,&obj0)) goto fail; | |
19313 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19314 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19315 | { | |
19316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19317 | result = (double)(arg1)->GetJDN(); | |
19318 | ||
19319 | wxPyEndAllowThreads(__tstate); | |
19320 | if (PyErr_Occurred()) SWIG_fail; | |
19321 | } | |
c32bde28 | 19322 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
19323 | return resultobj; |
19324 | fail: | |
19325 | return NULL; | |
19326 | } | |
19327 | ||
19328 | ||
c32bde28 | 19329 | static PyObject *_wrap_DateTime_GetModifiedJulianDayNumber(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19330 | PyObject *resultobj; |
19331 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19332 | double result; | |
19333 | PyObject * obj0 = 0 ; | |
19334 | char *kwnames[] = { | |
19335 | (char *) "self", NULL | |
19336 | }; | |
19337 | ||
19338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetModifiedJulianDayNumber",kwnames,&obj0)) goto fail; | |
19339 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19340 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19341 | { | |
19342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19343 | result = (double)((wxDateTime const *)arg1)->GetModifiedJulianDayNumber(); | |
19344 | ||
19345 | wxPyEndAllowThreads(__tstate); | |
19346 | if (PyErr_Occurred()) SWIG_fail; | |
19347 | } | |
c32bde28 | 19348 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
19349 | return resultobj; |
19350 | fail: | |
19351 | return NULL; | |
19352 | } | |
19353 | ||
19354 | ||
c32bde28 | 19355 | static PyObject *_wrap_DateTime_GetMJD(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19356 | PyObject *resultobj; |
19357 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19358 | double result; | |
19359 | PyObject * obj0 = 0 ; | |
19360 | char *kwnames[] = { | |
19361 | (char *) "self", NULL | |
19362 | }; | |
19363 | ||
19364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetMJD",kwnames,&obj0)) goto fail; | |
19365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19367 | { | |
19368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19369 | result = (double)(arg1)->GetMJD(); | |
19370 | ||
19371 | wxPyEndAllowThreads(__tstate); | |
19372 | if (PyErr_Occurred()) SWIG_fail; | |
19373 | } | |
c32bde28 | 19374 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
19375 | return resultobj; |
19376 | fail: | |
19377 | return NULL; | |
19378 | } | |
19379 | ||
19380 | ||
c32bde28 | 19381 | static PyObject *_wrap_DateTime_GetRataDie(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19382 | PyObject *resultobj; |
19383 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19384 | double result; | |
19385 | PyObject * obj0 = 0 ; | |
19386 | char *kwnames[] = { | |
19387 | (char *) "self", NULL | |
19388 | }; | |
19389 | ||
19390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetRataDie",kwnames,&obj0)) goto fail; | |
19391 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19393 | { | |
19394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19395 | result = (double)(arg1)->GetRataDie(); | |
19396 | ||
19397 | wxPyEndAllowThreads(__tstate); | |
19398 | if (PyErr_Occurred()) SWIG_fail; | |
19399 | } | |
c32bde28 | 19400 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
19401 | return resultobj; |
19402 | fail: | |
19403 | return NULL; | |
19404 | } | |
19405 | ||
19406 | ||
c32bde28 | 19407 | static PyObject *_wrap_DateTime_ToTimezone(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19408 | PyObject *resultobj; |
19409 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19410 | wxDateTime::TimeZone *arg2 = 0 ; | |
ae8162c8 | 19411 | bool arg3 = (bool) false ; |
d55e5bfc | 19412 | wxDateTime result; |
ae8162c8 | 19413 | bool temp2 = false ; |
d55e5bfc RD |
19414 | PyObject * obj0 = 0 ; |
19415 | PyObject * obj1 = 0 ; | |
19416 | PyObject * obj2 = 0 ; | |
19417 | char *kwnames[] = { | |
19418 | (char *) "self",(char *) "tz",(char *) "noDST", NULL | |
19419 | }; | |
19420 | ||
19421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_ToTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19422 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19423 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19424 | { | |
19425 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
ae8162c8 | 19426 | temp2 = true; |
d55e5bfc RD |
19427 | } |
19428 | if (obj2) { | |
c32bde28 | 19429 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
19430 | if (PyErr_Occurred()) SWIG_fail; |
19431 | } | |
19432 | { | |
19433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19434 | result = (arg1)->ToTimezone((wxDateTime::TimeZone const &)*arg2,arg3); | |
19435 | ||
19436 | wxPyEndAllowThreads(__tstate); | |
19437 | if (PyErr_Occurred()) SWIG_fail; | |
19438 | } | |
19439 | { | |
19440 | wxDateTime * resultptr; | |
19441 | resultptr = new wxDateTime((wxDateTime &) result); | |
19442 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
19443 | } | |
19444 | { | |
19445 | if (temp2) delete arg2; | |
19446 | } | |
19447 | return resultobj; | |
19448 | fail: | |
19449 | { | |
19450 | if (temp2) delete arg2; | |
19451 | } | |
19452 | return NULL; | |
19453 | } | |
19454 | ||
19455 | ||
c32bde28 | 19456 | static PyObject *_wrap_DateTime_MakeTimezone(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19457 | PyObject *resultobj; |
19458 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19459 | wxDateTime::TimeZone *arg2 = 0 ; | |
ae8162c8 | 19460 | bool arg3 = (bool) false ; |
d55e5bfc | 19461 | wxDateTime *result; |
ae8162c8 | 19462 | bool temp2 = false ; |
d55e5bfc RD |
19463 | PyObject * obj0 = 0 ; |
19464 | PyObject * obj1 = 0 ; | |
19465 | PyObject * obj2 = 0 ; | |
19466 | char *kwnames[] = { | |
19467 | (char *) "self",(char *) "tz",(char *) "noDST", NULL | |
19468 | }; | |
19469 | ||
19470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19471 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19472 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19473 | { | |
19474 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
ae8162c8 | 19475 | temp2 = true; |
d55e5bfc RD |
19476 | } |
19477 | if (obj2) { | |
c32bde28 | 19478 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
19479 | if (PyErr_Occurred()) SWIG_fail; |
19480 | } | |
19481 | { | |
19482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19483 | { | |
19484 | wxDateTime &_result_ref = (arg1)->MakeTimezone((wxDateTime::TimeZone const &)*arg2,arg3); | |
19485 | result = (wxDateTime *) &_result_ref; | |
19486 | } | |
19487 | ||
19488 | wxPyEndAllowThreads(__tstate); | |
19489 | if (PyErr_Occurred()) SWIG_fail; | |
19490 | } | |
19491 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
19492 | { | |
19493 | if (temp2) delete arg2; | |
19494 | } | |
19495 | return resultobj; | |
19496 | fail: | |
19497 | { | |
19498 | if (temp2) delete arg2; | |
19499 | } | |
19500 | return NULL; | |
19501 | } | |
19502 | ||
19503 | ||
c32bde28 | 19504 | static PyObject *_wrap_DateTime_ToGMT(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19505 | PyObject *resultobj; |
19506 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
ae8162c8 | 19507 | bool arg2 = (bool) false ; |
d55e5bfc RD |
19508 | wxDateTime result; |
19509 | PyObject * obj0 = 0 ; | |
19510 | PyObject * obj1 = 0 ; | |
19511 | char *kwnames[] = { | |
19512 | (char *) "self",(char *) "noDST", NULL | |
19513 | }; | |
19514 | ||
19515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToGMT",kwnames,&obj0,&obj1)) goto fail; | |
19516 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19517 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19518 | if (obj1) { | |
c32bde28 | 19519 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
19520 | if (PyErr_Occurred()) SWIG_fail; |
19521 | } | |
19522 | { | |
19523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19524 | result = (arg1)->ToGMT(arg2); | |
19525 | ||
19526 | wxPyEndAllowThreads(__tstate); | |
19527 | if (PyErr_Occurred()) SWIG_fail; | |
19528 | } | |
19529 | { | |
19530 | wxDateTime * resultptr; | |
19531 | resultptr = new wxDateTime((wxDateTime &) result); | |
19532 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
19533 | } | |
19534 | return resultobj; | |
19535 | fail: | |
19536 | return NULL; | |
19537 | } | |
19538 | ||
19539 | ||
c32bde28 | 19540 | static PyObject *_wrap_DateTime_MakeGMT(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19541 | PyObject *resultobj; |
19542 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
ae8162c8 | 19543 | bool arg2 = (bool) false ; |
d55e5bfc RD |
19544 | wxDateTime *result; |
19545 | PyObject * obj0 = 0 ; | |
19546 | PyObject * obj1 = 0 ; | |
19547 | char *kwnames[] = { | |
19548 | (char *) "self",(char *) "noDST", NULL | |
19549 | }; | |
19550 | ||
19551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeGMT",kwnames,&obj0,&obj1)) goto fail; | |
19552 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19554 | if (obj1) { | |
c32bde28 | 19555 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
19556 | if (PyErr_Occurred()) SWIG_fail; |
19557 | } | |
19558 | { | |
19559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19560 | { | |
19561 | wxDateTime &_result_ref = (arg1)->MakeGMT(arg2); | |
19562 | result = (wxDateTime *) &_result_ref; | |
19563 | } | |
19564 | ||
19565 | wxPyEndAllowThreads(__tstate); | |
19566 | if (PyErr_Occurred()) SWIG_fail; | |
19567 | } | |
19568 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
19569 | return resultobj; | |
19570 | fail: | |
19571 | return NULL; | |
19572 | } | |
19573 | ||
19574 | ||
c32bde28 | 19575 | static PyObject *_wrap_DateTime_IsDST(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19576 | PyObject *resultobj; |
19577 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19578 | int arg2 = (int) wxDateTime::Country_Default ; | |
19579 | int result; | |
19580 | PyObject * obj0 = 0 ; | |
19581 | PyObject * obj1 = 0 ; | |
19582 | char *kwnames[] = { | |
19583 | (char *) "self",(char *) "country", NULL | |
19584 | }; | |
19585 | ||
19586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsDST",kwnames,&obj0,&obj1)) goto fail; | |
19587 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19588 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19589 | if (obj1) { | |
c32bde28 | 19590 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
19591 | if (PyErr_Occurred()) SWIG_fail; |
19592 | } | |
19593 | { | |
19594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19595 | result = (int)(arg1)->IsDST((wxDateTime::Country )arg2); | |
19596 | ||
19597 | wxPyEndAllowThreads(__tstate); | |
19598 | if (PyErr_Occurred()) SWIG_fail; | |
19599 | } | |
c32bde28 | 19600 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
19601 | return resultobj; |
19602 | fail: | |
19603 | return NULL; | |
19604 | } | |
19605 | ||
19606 | ||
c32bde28 | 19607 | static PyObject *_wrap_DateTime_IsValid(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19608 | PyObject *resultobj; |
19609 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19610 | bool result; | |
19611 | PyObject * obj0 = 0 ; | |
19612 | char *kwnames[] = { | |
19613 | (char *) "self", NULL | |
19614 | }; | |
19615 | ||
19616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_IsValid",kwnames,&obj0)) goto fail; | |
19617 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19618 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19619 | { | |
19620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19621 | result = (bool)((wxDateTime const *)arg1)->IsValid(); | |
19622 | ||
19623 | wxPyEndAllowThreads(__tstate); | |
19624 | if (PyErr_Occurred()) SWIG_fail; | |
19625 | } | |
19626 | { | |
19627 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19628 | } | |
19629 | return resultobj; | |
19630 | fail: | |
19631 | return NULL; | |
19632 | } | |
19633 | ||
19634 | ||
c32bde28 | 19635 | static PyObject *_wrap_DateTime_GetTicks(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19636 | PyObject *resultobj; |
19637 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19638 | time_t result; | |
19639 | PyObject * obj0 = 0 ; | |
19640 | char *kwnames[] = { | |
19641 | (char *) "self", NULL | |
19642 | }; | |
19643 | ||
19644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetTicks",kwnames,&obj0)) goto fail; | |
19645 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19646 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19647 | { | |
19648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19649 | result = (time_t)((wxDateTime const *)arg1)->GetTicks(); | |
19650 | ||
19651 | wxPyEndAllowThreads(__tstate); | |
19652 | if (PyErr_Occurred()) SWIG_fail; | |
19653 | } | |
c32bde28 | 19654 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)result); |
d55e5bfc RD |
19655 | return resultobj; |
19656 | fail: | |
19657 | return NULL; | |
19658 | } | |
19659 | ||
19660 | ||
c32bde28 | 19661 | static PyObject *_wrap_DateTime_GetYear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19662 | PyObject *resultobj; |
19663 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19664 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19665 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19666 | int result; | |
ae8162c8 | 19667 | bool temp2 = false ; |
d55e5bfc RD |
19668 | PyObject * obj0 = 0 ; |
19669 | PyObject * obj1 = 0 ; | |
19670 | char *kwnames[] = { | |
19671 | (char *) "self",(char *) "tz", NULL | |
19672 | }; | |
19673 | ||
19674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetYear",kwnames,&obj0,&obj1)) goto fail; | |
19675 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19676 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19677 | if (obj1) { | |
19678 | { | |
19679 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
ae8162c8 | 19680 | temp2 = true; |
d55e5bfc RD |
19681 | } |
19682 | } | |
19683 | { | |
19684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19685 | result = (int)((wxDateTime const *)arg1)->GetYear((wxDateTime::TimeZone const &)*arg2); | |
19686 | ||
19687 | wxPyEndAllowThreads(__tstate); | |
19688 | if (PyErr_Occurred()) SWIG_fail; | |
19689 | } | |
c32bde28 | 19690 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
19691 | { |
19692 | if (temp2) delete arg2; | |
19693 | } | |
19694 | return resultobj; | |
19695 | fail: | |
19696 | { | |
19697 | if (temp2) delete arg2; | |
19698 | } | |
19699 | return NULL; | |
19700 | } | |
19701 | ||
19702 | ||
c32bde28 | 19703 | static PyObject *_wrap_DateTime_GetMonth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19704 | PyObject *resultobj; |
19705 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19706 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19707 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19708 | int result; | |
ae8162c8 | 19709 | bool temp2 = false ; |
d55e5bfc RD |
19710 | PyObject * obj0 = 0 ; |
19711 | PyObject * obj1 = 0 ; | |
19712 | char *kwnames[] = { | |
19713 | (char *) "self",(char *) "tz", NULL | |
19714 | }; | |
19715 | ||
19716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonth",kwnames,&obj0,&obj1)) goto fail; | |
19717 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19718 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19719 | if (obj1) { | |
19720 | { | |
19721 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
ae8162c8 | 19722 | temp2 = true; |
d55e5bfc RD |
19723 | } |
19724 | } | |
19725 | { | |
19726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19727 | result = (int)((wxDateTime const *)arg1)->GetMonth((wxDateTime::TimeZone const &)*arg2); | |
19728 | ||
19729 | wxPyEndAllowThreads(__tstate); | |
19730 | if (PyErr_Occurred()) SWIG_fail; | |
19731 | } | |
c32bde28 | 19732 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
19733 | { |
19734 | if (temp2) delete arg2; | |
19735 | } | |
19736 | return resultobj; | |
19737 | fail: | |
19738 | { | |
19739 | if (temp2) delete arg2; | |
19740 | } | |
19741 | return NULL; | |
19742 | } | |
19743 | ||
19744 | ||
c32bde28 | 19745 | static PyObject *_wrap_DateTime_GetDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19746 | PyObject *resultobj; |
19747 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19748 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19749 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19750 | int result; | |
ae8162c8 | 19751 | bool temp2 = false ; |
d55e5bfc RD |
19752 | PyObject * obj0 = 0 ; |
19753 | PyObject * obj1 = 0 ; | |
19754 | char *kwnames[] = { | |
19755 | (char *) "self",(char *) "tz", NULL | |
19756 | }; | |
19757 | ||
19758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDay",kwnames,&obj0,&obj1)) goto fail; | |
19759 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19760 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19761 | if (obj1) { | |
19762 | { | |
19763 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
ae8162c8 | 19764 | temp2 = true; |
d55e5bfc RD |
19765 | } |
19766 | } | |
19767 | { | |
19768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19769 | result = (int)((wxDateTime const *)arg1)->GetDay((wxDateTime::TimeZone const &)*arg2); | |
19770 | ||
19771 | wxPyEndAllowThreads(__tstate); | |
19772 | if (PyErr_Occurred()) SWIG_fail; | |
19773 | } | |
c32bde28 | 19774 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
19775 | { |
19776 | if (temp2) delete arg2; | |
19777 | } | |
19778 | return resultobj; | |
19779 | fail: | |
19780 | { | |
19781 | if (temp2) delete arg2; | |
19782 | } | |
19783 | return NULL; | |
19784 | } | |
19785 | ||
19786 | ||
c32bde28 | 19787 | static PyObject *_wrap_DateTime_GetWeekDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19788 | PyObject *resultobj; |
19789 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19790 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19791 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19792 | int result; | |
ae8162c8 | 19793 | bool temp2 = false ; |
d55e5bfc RD |
19794 | PyObject * obj0 = 0 ; |
19795 | PyObject * obj1 = 0 ; | |
19796 | char *kwnames[] = { | |
19797 | (char *) "self",(char *) "tz", NULL | |
19798 | }; | |
19799 | ||
19800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
19801 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19803 | if (obj1) { | |
19804 | { | |
19805 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
ae8162c8 | 19806 | temp2 = true; |
d55e5bfc RD |
19807 | } |
19808 | } | |
19809 | { | |
19810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19811 | result = (int)((wxDateTime const *)arg1)->GetWeekDay((wxDateTime::TimeZone const &)*arg2); | |
19812 | ||
19813 | wxPyEndAllowThreads(__tstate); | |
19814 | if (PyErr_Occurred()) SWIG_fail; | |
19815 | } | |
c32bde28 | 19816 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
19817 | { |
19818 | if (temp2) delete arg2; | |
19819 | } | |
19820 | return resultobj; | |
19821 | fail: | |
19822 | { | |
19823 | if (temp2) delete arg2; | |
19824 | } | |
19825 | return NULL; | |
19826 | } | |
19827 | ||
19828 | ||
c32bde28 | 19829 | static PyObject *_wrap_DateTime_GetHour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19830 | PyObject *resultobj; |
19831 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19832 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19833 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19834 | int result; | |
ae8162c8 | 19835 | bool temp2 = false ; |
d55e5bfc RD |
19836 | PyObject * obj0 = 0 ; |
19837 | PyObject * obj1 = 0 ; | |
19838 | char *kwnames[] = { | |
19839 | (char *) "self",(char *) "tz", NULL | |
19840 | }; | |
19841 | ||
19842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetHour",kwnames,&obj0,&obj1)) goto fail; | |
19843 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19844 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19845 | if (obj1) { | |
19846 | { | |
19847 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
ae8162c8 | 19848 | temp2 = true; |
d55e5bfc RD |
19849 | } |
19850 | } | |
19851 | { | |
19852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19853 | result = (int)((wxDateTime const *)arg1)->GetHour((wxDateTime::TimeZone const &)*arg2); | |
19854 | ||
19855 | wxPyEndAllowThreads(__tstate); | |
19856 | if (PyErr_Occurred()) SWIG_fail; | |
19857 | } | |
c32bde28 | 19858 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
19859 | { |
19860 | if (temp2) delete arg2; | |
19861 | } | |
19862 | return resultobj; | |
19863 | fail: | |
19864 | { | |
19865 | if (temp2) delete arg2; | |
19866 | } | |
19867 | return NULL; | |
19868 | } | |
19869 | ||
19870 | ||
c32bde28 | 19871 | static PyObject *_wrap_DateTime_GetMinute(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19872 | PyObject *resultobj; |
19873 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19874 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19875 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19876 | int result; | |
ae8162c8 | 19877 | bool temp2 = false ; |
d55e5bfc RD |
19878 | PyObject * obj0 = 0 ; |
19879 | PyObject * obj1 = 0 ; | |
19880 | char *kwnames[] = { | |
19881 | (char *) "self",(char *) "tz", NULL | |
19882 | }; | |
19883 | ||
19884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMinute",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) { | |
19888 | { | |
19889 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
ae8162c8 | 19890 | temp2 = true; |
d55e5bfc RD |
19891 | } |
19892 | } | |
19893 | { | |
19894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19895 | result = (int)((wxDateTime const *)arg1)->GetMinute((wxDateTime::TimeZone const &)*arg2); | |
19896 | ||
19897 | wxPyEndAllowThreads(__tstate); | |
19898 | if (PyErr_Occurred()) SWIG_fail; | |
19899 | } | |
c32bde28 | 19900 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
19901 | { |
19902 | if (temp2) delete arg2; | |
19903 | } | |
19904 | return resultobj; | |
19905 | fail: | |
19906 | { | |
19907 | if (temp2) delete arg2; | |
19908 | } | |
19909 | return NULL; | |
19910 | } | |
19911 | ||
19912 | ||
c32bde28 | 19913 | static PyObject *_wrap_DateTime_GetSecond(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19914 | PyObject *resultobj; |
19915 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19916 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19917 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19918 | int result; | |
ae8162c8 | 19919 | bool temp2 = false ; |
d55e5bfc RD |
19920 | PyObject * obj0 = 0 ; |
19921 | PyObject * obj1 = 0 ; | |
19922 | char *kwnames[] = { | |
19923 | (char *) "self",(char *) "tz", NULL | |
19924 | }; | |
19925 | ||
19926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetSecond",kwnames,&obj0,&obj1)) goto fail; | |
19927 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19928 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19929 | if (obj1) { | |
19930 | { | |
19931 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
ae8162c8 | 19932 | temp2 = true; |
d55e5bfc RD |
19933 | } |
19934 | } | |
19935 | { | |
19936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19937 | result = (int)((wxDateTime const *)arg1)->GetSecond((wxDateTime::TimeZone const &)*arg2); | |
19938 | ||
19939 | wxPyEndAllowThreads(__tstate); | |
19940 | if (PyErr_Occurred()) SWIG_fail; | |
19941 | } | |
c32bde28 | 19942 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
19943 | { |
19944 | if (temp2) delete arg2; | |
19945 | } | |
19946 | return resultobj; | |
19947 | fail: | |
19948 | { | |
19949 | if (temp2) delete arg2; | |
19950 | } | |
19951 | return NULL; | |
19952 | } | |
19953 | ||
19954 | ||
c32bde28 | 19955 | static PyObject *_wrap_DateTime_GetMillisecond(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19956 | PyObject *resultobj; |
19957 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19958 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
19959 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
19960 | int result; | |
ae8162c8 | 19961 | bool temp2 = false ; |
d55e5bfc RD |
19962 | PyObject * obj0 = 0 ; |
19963 | PyObject * obj1 = 0 ; | |
19964 | char *kwnames[] = { | |
19965 | (char *) "self",(char *) "tz", NULL | |
19966 | }; | |
19967 | ||
19968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMillisecond",kwnames,&obj0,&obj1)) goto fail; | |
19969 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
19970 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19971 | if (obj1) { | |
19972 | { | |
19973 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
ae8162c8 | 19974 | temp2 = true; |
d55e5bfc RD |
19975 | } |
19976 | } | |
19977 | { | |
19978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19979 | result = (int)((wxDateTime const *)arg1)->GetMillisecond((wxDateTime::TimeZone const &)*arg2); | |
19980 | ||
19981 | wxPyEndAllowThreads(__tstate); | |
19982 | if (PyErr_Occurred()) SWIG_fail; | |
19983 | } | |
c32bde28 | 19984 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
19985 | { |
19986 | if (temp2) delete arg2; | |
19987 | } | |
19988 | return resultobj; | |
19989 | fail: | |
19990 | { | |
19991 | if (temp2) delete arg2; | |
19992 | } | |
19993 | return NULL; | |
19994 | } | |
19995 | ||
19996 | ||
c32bde28 | 19997 | static PyObject *_wrap_DateTime_GetDayOfYear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19998 | PyObject *resultobj; |
19999 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20000 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
20001 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
20002 | int result; | |
ae8162c8 | 20003 | bool temp2 = false ; |
d55e5bfc RD |
20004 | PyObject * obj0 = 0 ; |
20005 | PyObject * obj1 = 0 ; | |
20006 | char *kwnames[] = { | |
20007 | (char *) "self",(char *) "tz", NULL | |
20008 | }; | |
20009 | ||
20010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDayOfYear",kwnames,&obj0,&obj1)) goto fail; | |
20011 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20013 | if (obj1) { | |
20014 | { | |
20015 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
ae8162c8 | 20016 | temp2 = true; |
d55e5bfc RD |
20017 | } |
20018 | } | |
20019 | { | |
20020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20021 | result = (int)((wxDateTime const *)arg1)->GetDayOfYear((wxDateTime::TimeZone const &)*arg2); | |
20022 | ||
20023 | wxPyEndAllowThreads(__tstate); | |
20024 | if (PyErr_Occurred()) SWIG_fail; | |
20025 | } | |
c32bde28 | 20026 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
20027 | { |
20028 | if (temp2) delete arg2; | |
20029 | } | |
20030 | return resultobj; | |
20031 | fail: | |
20032 | { | |
20033 | if (temp2) delete arg2; | |
20034 | } | |
20035 | return NULL; | |
20036 | } | |
20037 | ||
20038 | ||
c32bde28 | 20039 | static PyObject *_wrap_DateTime_GetWeekOfYear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20040 | PyObject *resultobj; |
20041 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20042 | int arg2 = (int) wxDateTime::Monday_First ; | |
20043 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
20044 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
20045 | int result; | |
ae8162c8 | 20046 | bool temp3 = false ; |
d55e5bfc RD |
20047 | PyObject * obj0 = 0 ; |
20048 | PyObject * obj1 = 0 ; | |
20049 | PyObject * obj2 = 0 ; | |
20050 | char *kwnames[] = { | |
20051 | (char *) "self",(char *) "flags",(char *) "tz", NULL | |
20052 | }; | |
20053 | ||
20054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20055 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20056 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20057 | if (obj1) { | |
c32bde28 | 20058 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
20059 | if (PyErr_Occurred()) SWIG_fail; |
20060 | } | |
20061 | if (obj2) { | |
20062 | { | |
20063 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
ae8162c8 | 20064 | temp3 = true; |
d55e5bfc RD |
20065 | } |
20066 | } | |
20067 | { | |
20068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20069 | result = (int)((wxDateTime const *)arg1)->GetWeekOfYear((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3); | |
20070 | ||
20071 | wxPyEndAllowThreads(__tstate); | |
20072 | if (PyErr_Occurred()) SWIG_fail; | |
20073 | } | |
c32bde28 | 20074 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
20075 | { |
20076 | if (temp3) delete arg3; | |
20077 | } | |
20078 | return resultobj; | |
20079 | fail: | |
20080 | { | |
20081 | if (temp3) delete arg3; | |
20082 | } | |
20083 | return NULL; | |
20084 | } | |
20085 | ||
20086 | ||
c32bde28 | 20087 | static PyObject *_wrap_DateTime_GetWeekOfMonth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20088 | PyObject *resultobj; |
20089 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20090 | int arg2 = (int) wxDateTime::Monday_First ; | |
20091 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
20092 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
20093 | int result; | |
ae8162c8 | 20094 | bool temp3 = false ; |
d55e5bfc RD |
20095 | PyObject * obj0 = 0 ; |
20096 | PyObject * obj1 = 0 ; | |
20097 | PyObject * obj2 = 0 ; | |
20098 | char *kwnames[] = { | |
20099 | (char *) "self",(char *) "flags",(char *) "tz", NULL | |
20100 | }; | |
20101 | ||
20102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfMonth",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20103 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20104 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20105 | if (obj1) { | |
c32bde28 | 20106 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
20107 | if (PyErr_Occurred()) SWIG_fail; |
20108 | } | |
20109 | if (obj2) { | |
20110 | { | |
20111 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
ae8162c8 | 20112 | temp3 = true; |
d55e5bfc RD |
20113 | } |
20114 | } | |
20115 | { | |
20116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20117 | result = (int)((wxDateTime const *)arg1)->GetWeekOfMonth((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3); | |
20118 | ||
20119 | wxPyEndAllowThreads(__tstate); | |
20120 | if (PyErr_Occurred()) SWIG_fail; | |
20121 | } | |
c32bde28 | 20122 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
20123 | { |
20124 | if (temp3) delete arg3; | |
20125 | } | |
20126 | return resultobj; | |
20127 | fail: | |
20128 | { | |
20129 | if (temp3) delete arg3; | |
20130 | } | |
20131 | return NULL; | |
20132 | } | |
20133 | ||
20134 | ||
c32bde28 | 20135 | static PyObject *_wrap_DateTime_IsWorkDay(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20136 | PyObject *resultobj; |
20137 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20138 | int arg2 = (int) wxDateTime::Country_Default ; | |
20139 | bool result; | |
20140 | PyObject * obj0 = 0 ; | |
20141 | PyObject * obj1 = 0 ; | |
20142 | char *kwnames[] = { | |
20143 | (char *) "self",(char *) "country", NULL | |
20144 | }; | |
20145 | ||
20146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsWorkDay",kwnames,&obj0,&obj1)) goto fail; | |
20147 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20148 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20149 | if (obj1) { | |
c32bde28 | 20150 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
20151 | if (PyErr_Occurred()) SWIG_fail; |
20152 | } | |
20153 | { | |
20154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20155 | result = (bool)((wxDateTime const *)arg1)->IsWorkDay((wxDateTime::Country )arg2); | |
20156 | ||
20157 | wxPyEndAllowThreads(__tstate); | |
20158 | if (PyErr_Occurred()) SWIG_fail; | |
20159 | } | |
20160 | { | |
20161 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20162 | } | |
20163 | return resultobj; | |
20164 | fail: | |
20165 | return NULL; | |
20166 | } | |
20167 | ||
20168 | ||
c32bde28 | 20169 | static PyObject *_wrap_DateTime_IsEqualTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20170 | PyObject *resultobj; |
20171 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20172 | wxDateTime *arg2 = 0 ; | |
20173 | bool result; | |
20174 | PyObject * obj0 = 0 ; | |
20175 | PyObject * obj1 = 0 ; | |
20176 | char *kwnames[] = { | |
20177 | (char *) "self",(char *) "datetime", NULL | |
20178 | }; | |
20179 | ||
20180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEqualTo",kwnames,&obj0,&obj1)) goto fail; | |
20181 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20183 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20184 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20185 | SWIG_fail; | |
20186 | if (arg2 == NULL) { | |
20187 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20188 | SWIG_fail; | |
20189 | } | |
20190 | { | |
20191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20192 | result = (bool)((wxDateTime const *)arg1)->IsEqualTo((wxDateTime const &)*arg2); | |
20193 | ||
20194 | wxPyEndAllowThreads(__tstate); | |
20195 | if (PyErr_Occurred()) SWIG_fail; | |
20196 | } | |
20197 | { | |
20198 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20199 | } | |
20200 | return resultobj; | |
20201 | fail: | |
20202 | return NULL; | |
20203 | } | |
20204 | ||
20205 | ||
c32bde28 | 20206 | static PyObject *_wrap_DateTime_IsEarlierThan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20207 | PyObject *resultobj; |
20208 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20209 | wxDateTime *arg2 = 0 ; | |
20210 | bool result; | |
20211 | PyObject * obj0 = 0 ; | |
20212 | PyObject * obj1 = 0 ; | |
20213 | char *kwnames[] = { | |
20214 | (char *) "self",(char *) "datetime", NULL | |
20215 | }; | |
20216 | ||
20217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEarlierThan",kwnames,&obj0,&obj1)) goto fail; | |
20218 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20220 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20221 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20222 | SWIG_fail; | |
20223 | if (arg2 == NULL) { | |
20224 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20225 | SWIG_fail; | |
20226 | } | |
20227 | { | |
20228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20229 | result = (bool)((wxDateTime const *)arg1)->IsEarlierThan((wxDateTime const &)*arg2); | |
20230 | ||
20231 | wxPyEndAllowThreads(__tstate); | |
20232 | if (PyErr_Occurred()) SWIG_fail; | |
20233 | } | |
20234 | { | |
20235 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20236 | } | |
20237 | return resultobj; | |
20238 | fail: | |
20239 | return NULL; | |
20240 | } | |
20241 | ||
20242 | ||
c32bde28 | 20243 | static PyObject *_wrap_DateTime_IsLaterThan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20244 | PyObject *resultobj; |
20245 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20246 | wxDateTime *arg2 = 0 ; | |
20247 | bool result; | |
20248 | PyObject * obj0 = 0 ; | |
20249 | PyObject * obj1 = 0 ; | |
20250 | char *kwnames[] = { | |
20251 | (char *) "self",(char *) "datetime", NULL | |
20252 | }; | |
20253 | ||
20254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsLaterThan",kwnames,&obj0,&obj1)) goto fail; | |
20255 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20256 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20257 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20258 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20259 | SWIG_fail; | |
20260 | if (arg2 == NULL) { | |
20261 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20262 | SWIG_fail; | |
20263 | } | |
20264 | { | |
20265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20266 | result = (bool)((wxDateTime const *)arg1)->IsLaterThan((wxDateTime const &)*arg2); | |
20267 | ||
20268 | wxPyEndAllowThreads(__tstate); | |
20269 | if (PyErr_Occurred()) SWIG_fail; | |
20270 | } | |
20271 | { | |
20272 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20273 | } | |
20274 | return resultobj; | |
20275 | fail: | |
20276 | return NULL; | |
20277 | } | |
20278 | ||
20279 | ||
c32bde28 | 20280 | static PyObject *_wrap_DateTime_IsStrictlyBetween(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20281 | PyObject *resultobj; |
20282 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20283 | wxDateTime *arg2 = 0 ; | |
20284 | wxDateTime *arg3 = 0 ; | |
20285 | bool result; | |
20286 | PyObject * obj0 = 0 ; | |
20287 | PyObject * obj1 = 0 ; | |
20288 | PyObject * obj2 = 0 ; | |
20289 | char *kwnames[] = { | |
20290 | (char *) "self",(char *) "t1",(char *) "t2", NULL | |
20291 | }; | |
20292 | ||
20293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsStrictlyBetween",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20294 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20295 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20296 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20297 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20298 | SWIG_fail; | |
20299 | if (arg2 == NULL) { | |
20300 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20301 | SWIG_fail; | |
20302 | } | |
20303 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime, | |
20304 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20305 | SWIG_fail; | |
20306 | if (arg3 == NULL) { | |
20307 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20308 | SWIG_fail; | |
20309 | } | |
20310 | { | |
20311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20312 | result = (bool)((wxDateTime const *)arg1)->IsStrictlyBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
20313 | ||
20314 | wxPyEndAllowThreads(__tstate); | |
20315 | if (PyErr_Occurred()) SWIG_fail; | |
20316 | } | |
20317 | { | |
20318 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20319 | } | |
20320 | return resultobj; | |
20321 | fail: | |
20322 | return NULL; | |
20323 | } | |
20324 | ||
20325 | ||
c32bde28 | 20326 | static PyObject *_wrap_DateTime_IsBetween(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20327 | PyObject *resultobj; |
20328 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20329 | wxDateTime *arg2 = 0 ; | |
20330 | wxDateTime *arg3 = 0 ; | |
20331 | bool result; | |
20332 | PyObject * obj0 = 0 ; | |
20333 | PyObject * obj1 = 0 ; | |
20334 | PyObject * obj2 = 0 ; | |
20335 | char *kwnames[] = { | |
20336 | (char *) "self",(char *) "t1",(char *) "t2", NULL | |
20337 | }; | |
20338 | ||
20339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsBetween",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20340 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20341 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20342 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20343 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20344 | SWIG_fail; | |
20345 | if (arg2 == NULL) { | |
20346 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20347 | SWIG_fail; | |
20348 | } | |
20349 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime, | |
20350 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20351 | SWIG_fail; | |
20352 | if (arg3 == NULL) { | |
20353 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20354 | SWIG_fail; | |
20355 | } | |
20356 | { | |
20357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20358 | result = (bool)((wxDateTime const *)arg1)->IsBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
20359 | ||
20360 | wxPyEndAllowThreads(__tstate); | |
20361 | if (PyErr_Occurred()) SWIG_fail; | |
20362 | } | |
20363 | { | |
20364 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20365 | } | |
20366 | return resultobj; | |
20367 | fail: | |
20368 | return NULL; | |
20369 | } | |
20370 | ||
20371 | ||
c32bde28 | 20372 | static PyObject *_wrap_DateTime_IsSameDate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20373 | PyObject *resultobj; |
20374 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20375 | wxDateTime *arg2 = 0 ; | |
20376 | bool result; | |
20377 | PyObject * obj0 = 0 ; | |
20378 | PyObject * obj1 = 0 ; | |
20379 | char *kwnames[] = { | |
20380 | (char *) "self",(char *) "dt", NULL | |
20381 | }; | |
20382 | ||
20383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameDate",kwnames,&obj0,&obj1)) goto fail; | |
20384 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20386 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20387 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20388 | SWIG_fail; | |
20389 | if (arg2 == NULL) { | |
20390 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20391 | SWIG_fail; | |
20392 | } | |
20393 | { | |
20394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20395 | result = (bool)((wxDateTime const *)arg1)->IsSameDate((wxDateTime const &)*arg2); | |
20396 | ||
20397 | wxPyEndAllowThreads(__tstate); | |
20398 | if (PyErr_Occurred()) SWIG_fail; | |
20399 | } | |
20400 | { | |
20401 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20402 | } | |
20403 | return resultobj; | |
20404 | fail: | |
20405 | return NULL; | |
20406 | } | |
20407 | ||
20408 | ||
c32bde28 | 20409 | static PyObject *_wrap_DateTime_IsSameTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20410 | PyObject *resultobj; |
20411 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20412 | wxDateTime *arg2 = 0 ; | |
20413 | bool result; | |
20414 | PyObject * obj0 = 0 ; | |
20415 | PyObject * obj1 = 0 ; | |
20416 | char *kwnames[] = { | |
20417 | (char *) "self",(char *) "dt", NULL | |
20418 | }; | |
20419 | ||
20420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameTime",kwnames,&obj0,&obj1)) goto fail; | |
20421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20423 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20424 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20425 | SWIG_fail; | |
20426 | if (arg2 == NULL) { | |
20427 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20428 | SWIG_fail; | |
20429 | } | |
20430 | { | |
20431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20432 | result = (bool)((wxDateTime const *)arg1)->IsSameTime((wxDateTime const &)*arg2); | |
20433 | ||
20434 | wxPyEndAllowThreads(__tstate); | |
20435 | if (PyErr_Occurred()) SWIG_fail; | |
20436 | } | |
20437 | { | |
20438 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20439 | } | |
20440 | return resultobj; | |
20441 | fail: | |
20442 | return NULL; | |
20443 | } | |
20444 | ||
20445 | ||
c32bde28 | 20446 | static PyObject *_wrap_DateTime_IsEqualUpTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20447 | PyObject *resultobj; |
20448 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20449 | wxDateTime *arg2 = 0 ; | |
20450 | wxTimeSpan *arg3 = 0 ; | |
20451 | bool result; | |
20452 | PyObject * obj0 = 0 ; | |
20453 | PyObject * obj1 = 0 ; | |
20454 | PyObject * obj2 = 0 ; | |
20455 | char *kwnames[] = { | |
20456 | (char *) "self",(char *) "dt",(char *) "ts", NULL | |
20457 | }; | |
20458 | ||
20459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsEqualUpTo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20460 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20461 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20462 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20463 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20464 | SWIG_fail; | |
20465 | if (arg2 == NULL) { | |
20466 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20467 | SWIG_fail; | |
20468 | } | |
20469 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTimeSpan, | |
20470 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20471 | SWIG_fail; | |
20472 | if (arg3 == NULL) { | |
20473 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20474 | SWIG_fail; | |
20475 | } | |
20476 | { | |
20477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20478 | result = (bool)((wxDateTime const *)arg1)->IsEqualUpTo((wxDateTime const &)*arg2,(wxTimeSpan const &)*arg3); | |
20479 | ||
20480 | wxPyEndAllowThreads(__tstate); | |
20481 | if (PyErr_Occurred()) SWIG_fail; | |
20482 | } | |
20483 | { | |
20484 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20485 | } | |
20486 | return resultobj; | |
20487 | fail: | |
20488 | return NULL; | |
20489 | } | |
20490 | ||
20491 | ||
c32bde28 | 20492 | static PyObject *_wrap_DateTime_AddTS(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20493 | PyObject *resultobj; |
20494 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20495 | wxTimeSpan *arg2 = 0 ; | |
20496 | wxDateTime *result; | |
20497 | PyObject * obj0 = 0 ; | |
20498 | PyObject * obj1 = 0 ; | |
20499 | char *kwnames[] = { | |
20500 | (char *) "self",(char *) "diff", NULL | |
20501 | }; | |
20502 | ||
20503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddTS",kwnames,&obj0,&obj1)) goto fail; | |
20504 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20505 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20506 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
20507 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20508 | SWIG_fail; | |
20509 | if (arg2 == NULL) { | |
20510 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20511 | SWIG_fail; | |
20512 | } | |
20513 | { | |
20514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20515 | { | |
20516 | wxDateTime &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2); | |
20517 | result = (wxDateTime *) &_result_ref; | |
20518 | } | |
20519 | ||
20520 | wxPyEndAllowThreads(__tstate); | |
20521 | if (PyErr_Occurred()) SWIG_fail; | |
20522 | } | |
20523 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
20524 | return resultobj; | |
20525 | fail: | |
20526 | return NULL; | |
20527 | } | |
20528 | ||
20529 | ||
c32bde28 | 20530 | static PyObject *_wrap_DateTime_AddDS(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20531 | PyObject *resultobj; |
20532 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20533 | wxDateSpan *arg2 = 0 ; | |
20534 | wxDateTime *result; | |
20535 | PyObject * obj0 = 0 ; | |
20536 | PyObject * obj1 = 0 ; | |
20537 | char *kwnames[] = { | |
20538 | (char *) "self",(char *) "diff", NULL | |
20539 | }; | |
20540 | ||
20541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddDS",kwnames,&obj0,&obj1)) goto fail; | |
20542 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20543 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20544 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
20545 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20546 | SWIG_fail; | |
20547 | if (arg2 == NULL) { | |
20548 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20549 | SWIG_fail; | |
20550 | } | |
20551 | { | |
20552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20553 | { | |
20554 | wxDateTime &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2); | |
20555 | result = (wxDateTime *) &_result_ref; | |
20556 | } | |
20557 | ||
20558 | wxPyEndAllowThreads(__tstate); | |
20559 | if (PyErr_Occurred()) SWIG_fail; | |
20560 | } | |
20561 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
20562 | return resultobj; | |
20563 | fail: | |
20564 | return NULL; | |
20565 | } | |
20566 | ||
20567 | ||
c32bde28 | 20568 | static PyObject *_wrap_DateTime_SubtractTS(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20569 | PyObject *resultobj; |
20570 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20571 | wxTimeSpan *arg2 = 0 ; | |
20572 | wxDateTime *result; | |
20573 | PyObject * obj0 = 0 ; | |
20574 | PyObject * obj1 = 0 ; | |
20575 | char *kwnames[] = { | |
20576 | (char *) "self",(char *) "diff", NULL | |
20577 | }; | |
20578 | ||
20579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractTS",kwnames,&obj0,&obj1)) goto fail; | |
20580 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20582 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
20583 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20584 | SWIG_fail; | |
20585 | if (arg2 == NULL) { | |
20586 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20587 | SWIG_fail; | |
20588 | } | |
20589 | { | |
20590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20591 | { | |
20592 | wxDateTime &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2); | |
20593 | result = (wxDateTime *) &_result_ref; | |
20594 | } | |
20595 | ||
20596 | wxPyEndAllowThreads(__tstate); | |
20597 | if (PyErr_Occurred()) SWIG_fail; | |
20598 | } | |
20599 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
20600 | return resultobj; | |
20601 | fail: | |
20602 | return NULL; | |
20603 | } | |
20604 | ||
20605 | ||
c32bde28 | 20606 | static PyObject *_wrap_DateTime_SubtractDS(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20607 | PyObject *resultobj; |
20608 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20609 | wxDateSpan *arg2 = 0 ; | |
20610 | wxDateTime *result; | |
20611 | PyObject * obj0 = 0 ; | |
20612 | PyObject * obj1 = 0 ; | |
20613 | char *kwnames[] = { | |
20614 | (char *) "self",(char *) "diff", NULL | |
20615 | }; | |
20616 | ||
20617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractDS",kwnames,&obj0,&obj1)) goto fail; | |
20618 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20619 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20620 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
20621 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20622 | SWIG_fail; | |
20623 | if (arg2 == NULL) { | |
20624 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20625 | SWIG_fail; | |
20626 | } | |
20627 | { | |
20628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20629 | { | |
20630 | wxDateTime &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2); | |
20631 | result = (wxDateTime *) &_result_ref; | |
20632 | } | |
20633 | ||
20634 | wxPyEndAllowThreads(__tstate); | |
20635 | if (PyErr_Occurred()) SWIG_fail; | |
20636 | } | |
20637 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0); | |
20638 | return resultobj; | |
20639 | fail: | |
20640 | return NULL; | |
20641 | } | |
20642 | ||
20643 | ||
c32bde28 | 20644 | static PyObject *_wrap_DateTime_Subtract(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20645 | PyObject *resultobj; |
20646 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20647 | wxDateTime *arg2 = 0 ; | |
20648 | wxTimeSpan result; | |
20649 | PyObject * obj0 = 0 ; | |
20650 | PyObject * obj1 = 0 ; | |
20651 | char *kwnames[] = { | |
20652 | (char *) "self",(char *) "dt", NULL | |
20653 | }; | |
20654 | ||
20655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
20656 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20657 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20658 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
20659 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20660 | SWIG_fail; | |
20661 | if (arg2 == NULL) { | |
20662 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20663 | SWIG_fail; | |
20664 | } | |
20665 | { | |
20666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20667 | result = ((wxDateTime const *)arg1)->Subtract((wxDateTime const &)*arg2); | |
20668 | ||
20669 | wxPyEndAllowThreads(__tstate); | |
20670 | if (PyErr_Occurred()) SWIG_fail; | |
20671 | } | |
20672 | { | |
20673 | wxTimeSpan * resultptr; | |
20674 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
20675 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
20676 | } | |
20677 | return resultobj; | |
20678 | fail: | |
20679 | return NULL; | |
20680 | } | |
20681 | ||
20682 | ||
c32bde28 | 20683 | static PyObject *_wrap_DateTime___iadd____SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
20684 | PyObject *resultobj; |
20685 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20686 | wxTimeSpan *arg2 = 0 ; | |
20687 | wxDateTime *result; | |
20688 | PyObject * obj0 = 0 ; | |
20689 | PyObject * obj1 = 0 ; | |
20690 | ||
20691 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail; | |
20692 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
c32bde28 | 20693 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
20694 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, |
20695 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20696 | SWIG_fail; | |
20697 | if (arg2 == NULL) { | |
20698 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20699 | SWIG_fail; | |
20700 | } | |
20701 | { | |
20702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20703 | { | |
20704 | wxDateTime &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2); | |
20705 | result = (wxDateTime *) &_result_ref; | |
20706 | } | |
20707 | ||
20708 | wxPyEndAllowThreads(__tstate); | |
20709 | if (PyErr_Occurred()) SWIG_fail; | |
20710 | } | |
c32bde28 | 20711 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d55e5bfc RD |
20712 | return resultobj; |
20713 | fail: | |
20714 | return NULL; | |
20715 | } | |
20716 | ||
20717 | ||
c32bde28 | 20718 | static PyObject *_wrap_DateTime___iadd____SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
20719 | PyObject *resultobj; |
20720 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20721 | wxDateSpan *arg2 = 0 ; | |
20722 | wxDateTime *result; | |
20723 | PyObject * obj0 = 0 ; | |
20724 | PyObject * obj1 = 0 ; | |
20725 | ||
20726 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail; | |
20727 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
c32bde28 | 20728 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
20729 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, |
20730 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20731 | SWIG_fail; | |
20732 | if (arg2 == NULL) { | |
20733 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20734 | SWIG_fail; | |
20735 | } | |
20736 | { | |
20737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20738 | { | |
20739 | wxDateTime &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2); | |
20740 | result = (wxDateTime *) &_result_ref; | |
20741 | } | |
20742 | ||
20743 | wxPyEndAllowThreads(__tstate); | |
20744 | if (PyErr_Occurred()) SWIG_fail; | |
20745 | } | |
c32bde28 | 20746 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d55e5bfc RD |
20747 | return resultobj; |
20748 | fail: | |
20749 | return NULL; | |
20750 | } | |
20751 | ||
20752 | ||
20753 | static PyObject *_wrap_DateTime___iadd__(PyObject *self, PyObject *args) { | |
20754 | int argc; | |
20755 | PyObject *argv[3]; | |
20756 | int ii; | |
20757 | ||
20758 | argc = PyObject_Length(args); | |
20759 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
20760 | argv[ii] = PyTuple_GetItem(args,ii); | |
20761 | } | |
20762 | if (argc == 2) { | |
20763 | int _v; | |
20764 | { | |
20765 | void *ptr; | |
20766 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20767 | _v = 0; | |
20768 | PyErr_Clear(); | |
20769 | } else { | |
20770 | _v = 1; | |
20771 | } | |
20772 | } | |
20773 | if (_v) { | |
20774 | { | |
20775 | void *ptr; | |
20776 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
20777 | _v = 0; | |
20778 | PyErr_Clear(); | |
20779 | } else { | |
20780 | _v = 1; | |
20781 | } | |
20782 | } | |
20783 | if (_v) { | |
20784 | return _wrap_DateTime___iadd____SWIG_0(self,args); | |
20785 | } | |
20786 | } | |
20787 | } | |
20788 | if (argc == 2) { | |
20789 | int _v; | |
20790 | { | |
20791 | void *ptr; | |
20792 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20793 | _v = 0; | |
20794 | PyErr_Clear(); | |
20795 | } else { | |
20796 | _v = 1; | |
20797 | } | |
20798 | } | |
20799 | if (_v) { | |
20800 | { | |
20801 | void *ptr; | |
20802 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
20803 | _v = 0; | |
20804 | PyErr_Clear(); | |
20805 | } else { | |
20806 | _v = 1; | |
20807 | } | |
20808 | } | |
20809 | if (_v) { | |
20810 | return _wrap_DateTime___iadd____SWIG_1(self,args); | |
20811 | } | |
20812 | } | |
20813 | } | |
20814 | ||
20815 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___iadd__'"); | |
20816 | return NULL; | |
20817 | } | |
20818 | ||
20819 | ||
c32bde28 | 20820 | static PyObject *_wrap_DateTime___isub____SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
20821 | PyObject *resultobj; |
20822 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20823 | wxTimeSpan *arg2 = 0 ; | |
20824 | wxDateTime *result; | |
20825 | PyObject * obj0 = 0 ; | |
20826 | PyObject * obj1 = 0 ; | |
20827 | ||
20828 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail; | |
20829 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
c32bde28 | 20830 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
20831 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, |
20832 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20833 | SWIG_fail; | |
20834 | if (arg2 == NULL) { | |
20835 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20836 | SWIG_fail; | |
20837 | } | |
20838 | { | |
20839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20840 | { | |
20841 | wxDateTime &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2); | |
20842 | result = (wxDateTime *) &_result_ref; | |
20843 | } | |
20844 | ||
20845 | wxPyEndAllowThreads(__tstate); | |
20846 | if (PyErr_Occurred()) SWIG_fail; | |
20847 | } | |
c32bde28 | 20848 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d55e5bfc RD |
20849 | return resultobj; |
20850 | fail: | |
20851 | return NULL; | |
20852 | } | |
20853 | ||
20854 | ||
c32bde28 | 20855 | static PyObject *_wrap_DateTime___isub____SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
20856 | PyObject *resultobj; |
20857 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20858 | wxDateSpan *arg2 = 0 ; | |
20859 | wxDateTime *result; | |
20860 | PyObject * obj0 = 0 ; | |
20861 | PyObject * obj1 = 0 ; | |
20862 | ||
20863 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail; | |
20864 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
c32bde28 | 20865 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
20866 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, |
20867 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20868 | SWIG_fail; | |
20869 | if (arg2 == NULL) { | |
20870 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20871 | SWIG_fail; | |
20872 | } | |
20873 | { | |
20874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20875 | { | |
20876 | wxDateTime &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2); | |
20877 | result = (wxDateTime *) &_result_ref; | |
20878 | } | |
20879 | ||
20880 | wxPyEndAllowThreads(__tstate); | |
20881 | if (PyErr_Occurred()) SWIG_fail; | |
20882 | } | |
c32bde28 | 20883 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1); |
d55e5bfc RD |
20884 | return resultobj; |
20885 | fail: | |
20886 | return NULL; | |
20887 | } | |
20888 | ||
20889 | ||
20890 | static PyObject *_wrap_DateTime___isub__(PyObject *self, PyObject *args) { | |
20891 | int argc; | |
20892 | PyObject *argv[3]; | |
20893 | int ii; | |
20894 | ||
20895 | argc = PyObject_Length(args); | |
20896 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
20897 | argv[ii] = PyTuple_GetItem(args,ii); | |
20898 | } | |
20899 | if (argc == 2) { | |
20900 | int _v; | |
20901 | { | |
20902 | void *ptr; | |
20903 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20904 | _v = 0; | |
20905 | PyErr_Clear(); | |
20906 | } else { | |
20907 | _v = 1; | |
20908 | } | |
20909 | } | |
20910 | if (_v) { | |
20911 | { | |
20912 | void *ptr; | |
20913 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
20914 | _v = 0; | |
20915 | PyErr_Clear(); | |
20916 | } else { | |
20917 | _v = 1; | |
20918 | } | |
20919 | } | |
20920 | if (_v) { | |
20921 | return _wrap_DateTime___isub____SWIG_0(self,args); | |
20922 | } | |
20923 | } | |
20924 | } | |
20925 | if (argc == 2) { | |
20926 | int _v; | |
20927 | { | |
20928 | void *ptr; | |
20929 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
20930 | _v = 0; | |
20931 | PyErr_Clear(); | |
20932 | } else { | |
20933 | _v = 1; | |
20934 | } | |
20935 | } | |
20936 | if (_v) { | |
20937 | { | |
20938 | void *ptr; | |
20939 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
20940 | _v = 0; | |
20941 | PyErr_Clear(); | |
20942 | } else { | |
20943 | _v = 1; | |
20944 | } | |
20945 | } | |
20946 | if (_v) { | |
20947 | return _wrap_DateTime___isub____SWIG_1(self,args); | |
20948 | } | |
20949 | } | |
20950 | } | |
20951 | ||
20952 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___isub__'"); | |
20953 | return NULL; | |
20954 | } | |
20955 | ||
20956 | ||
c32bde28 | 20957 | static PyObject *_wrap_DateTime___add____SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
20958 | PyObject *resultobj; |
20959 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20960 | wxTimeSpan *arg2 = 0 ; | |
20961 | wxDateTime result; | |
20962 | PyObject * obj0 = 0 ; | |
20963 | PyObject * obj1 = 0 ; | |
20964 | ||
20965 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail; | |
20966 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
20967 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20968 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
20969 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20970 | SWIG_fail; | |
20971 | if (arg2 == NULL) { | |
20972 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20973 | SWIG_fail; | |
20974 | } | |
20975 | { | |
20976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20977 | result = wxDateTime___add____SWIG_0(arg1,(wxTimeSpan const &)*arg2); | |
20978 | ||
20979 | wxPyEndAllowThreads(__tstate); | |
20980 | if (PyErr_Occurred()) SWIG_fail; | |
20981 | } | |
20982 | { | |
20983 | wxDateTime * resultptr; | |
20984 | resultptr = new wxDateTime((wxDateTime &) result); | |
20985 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
20986 | } | |
20987 | return resultobj; | |
20988 | fail: | |
20989 | return NULL; | |
20990 | } | |
20991 | ||
20992 | ||
c32bde28 | 20993 | static PyObject *_wrap_DateTime___add____SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
20994 | PyObject *resultobj; |
20995 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
20996 | wxDateSpan *arg2 = 0 ; | |
20997 | wxDateTime result; | |
20998 | PyObject * obj0 = 0 ; | |
20999 | PyObject * obj1 = 0 ; | |
21000 | ||
21001 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail; | |
21002 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21003 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21004 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
21005 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21006 | SWIG_fail; | |
21007 | if (arg2 == NULL) { | |
21008 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21009 | SWIG_fail; | |
21010 | } | |
21011 | { | |
21012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21013 | result = wxDateTime___add____SWIG_1(arg1,(wxDateSpan const &)*arg2); | |
21014 | ||
21015 | wxPyEndAllowThreads(__tstate); | |
21016 | if (PyErr_Occurred()) SWIG_fail; | |
21017 | } | |
21018 | { | |
21019 | wxDateTime * resultptr; | |
21020 | resultptr = new wxDateTime((wxDateTime &) result); | |
21021 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
21022 | } | |
21023 | return resultobj; | |
21024 | fail: | |
21025 | return NULL; | |
21026 | } | |
21027 | ||
21028 | ||
21029 | static PyObject *_wrap_DateTime___add__(PyObject *self, PyObject *args) { | |
21030 | int argc; | |
21031 | PyObject *argv[3]; | |
21032 | int ii; | |
21033 | ||
21034 | argc = PyObject_Length(args); | |
21035 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
21036 | argv[ii] = PyTuple_GetItem(args,ii); | |
21037 | } | |
21038 | if (argc == 2) { | |
21039 | int _v; | |
21040 | { | |
21041 | void *ptr; | |
21042 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
21043 | _v = 0; | |
21044 | PyErr_Clear(); | |
21045 | } else { | |
21046 | _v = 1; | |
21047 | } | |
21048 | } | |
21049 | if (_v) { | |
21050 | { | |
21051 | void *ptr; | |
21052 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
21053 | _v = 0; | |
21054 | PyErr_Clear(); | |
21055 | } else { | |
21056 | _v = 1; | |
21057 | } | |
21058 | } | |
21059 | if (_v) { | |
21060 | return _wrap_DateTime___add____SWIG_0(self,args); | |
21061 | } | |
21062 | } | |
21063 | } | |
21064 | if (argc == 2) { | |
21065 | int _v; | |
21066 | { | |
21067 | void *ptr; | |
21068 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
21069 | _v = 0; | |
21070 | PyErr_Clear(); | |
21071 | } else { | |
21072 | _v = 1; | |
21073 | } | |
21074 | } | |
21075 | if (_v) { | |
21076 | { | |
21077 | void *ptr; | |
21078 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
21079 | _v = 0; | |
21080 | PyErr_Clear(); | |
21081 | } else { | |
21082 | _v = 1; | |
21083 | } | |
21084 | } | |
21085 | if (_v) { | |
21086 | return _wrap_DateTime___add____SWIG_1(self,args); | |
21087 | } | |
21088 | } | |
21089 | } | |
21090 | ||
21091 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___add__'"); | |
21092 | return NULL; | |
21093 | } | |
21094 | ||
21095 | ||
c32bde28 | 21096 | static PyObject *_wrap_DateTime___sub____SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
21097 | PyObject *resultobj; |
21098 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21099 | wxDateTime *arg2 = 0 ; | |
21100 | wxTimeSpan result; | |
21101 | PyObject * obj0 = 0 ; | |
21102 | PyObject * obj1 = 0 ; | |
21103 | ||
21104 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
21105 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21106 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21107 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
21108 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21109 | SWIG_fail; | |
21110 | if (arg2 == NULL) { | |
21111 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21112 | SWIG_fail; | |
21113 | } | |
21114 | { | |
21115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21116 | result = wxDateTime___sub____SWIG_0(arg1,(wxDateTime const &)*arg2); | |
21117 | ||
21118 | wxPyEndAllowThreads(__tstate); | |
21119 | if (PyErr_Occurred()) SWIG_fail; | |
21120 | } | |
21121 | { | |
21122 | wxTimeSpan * resultptr; | |
21123 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21124 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21125 | } | |
21126 | return resultobj; | |
21127 | fail: | |
21128 | return NULL; | |
21129 | } | |
21130 | ||
21131 | ||
c32bde28 | 21132 | static PyObject *_wrap_DateTime___sub____SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
21133 | PyObject *resultobj; |
21134 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21135 | wxTimeSpan *arg2 = 0 ; | |
21136 | wxDateTime result; | |
21137 | PyObject * obj0 = 0 ; | |
21138 | PyObject * obj1 = 0 ; | |
21139 | ||
21140 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
21141 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21143 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
21144 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21145 | SWIG_fail; | |
21146 | if (arg2 == NULL) { | |
21147 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21148 | SWIG_fail; | |
21149 | } | |
21150 | { | |
21151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21152 | result = wxDateTime___sub____SWIG_1(arg1,(wxTimeSpan const &)*arg2); | |
21153 | ||
21154 | wxPyEndAllowThreads(__tstate); | |
21155 | if (PyErr_Occurred()) SWIG_fail; | |
21156 | } | |
21157 | { | |
21158 | wxDateTime * resultptr; | |
21159 | resultptr = new wxDateTime((wxDateTime &) result); | |
21160 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
21161 | } | |
21162 | return resultobj; | |
21163 | fail: | |
21164 | return NULL; | |
21165 | } | |
21166 | ||
21167 | ||
c32bde28 | 21168 | static PyObject *_wrap_DateTime___sub____SWIG_2(PyObject *, PyObject *args) { |
d55e5bfc RD |
21169 | PyObject *resultobj; |
21170 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21171 | wxDateSpan *arg2 = 0 ; | |
21172 | wxDateTime result; | |
21173 | PyObject * obj0 = 0 ; | |
21174 | PyObject * obj1 = 0 ; | |
21175 | ||
21176 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
21177 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21179 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
21180 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21181 | SWIG_fail; | |
21182 | if (arg2 == NULL) { | |
21183 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21184 | SWIG_fail; | |
21185 | } | |
21186 | { | |
21187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21188 | result = wxDateTime___sub____SWIG_2(arg1,(wxDateSpan const &)*arg2); | |
21189 | ||
21190 | wxPyEndAllowThreads(__tstate); | |
21191 | if (PyErr_Occurred()) SWIG_fail; | |
21192 | } | |
21193 | { | |
21194 | wxDateTime * resultptr; | |
21195 | resultptr = new wxDateTime((wxDateTime &) result); | |
21196 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
21197 | } | |
21198 | return resultobj; | |
21199 | fail: | |
21200 | return NULL; | |
21201 | } | |
21202 | ||
21203 | ||
21204 | static PyObject *_wrap_DateTime___sub__(PyObject *self, PyObject *args) { | |
21205 | int argc; | |
21206 | PyObject *argv[3]; | |
21207 | int ii; | |
21208 | ||
21209 | argc = PyObject_Length(args); | |
21210 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
21211 | argv[ii] = PyTuple_GetItem(args,ii); | |
21212 | } | |
21213 | if (argc == 2) { | |
21214 | int _v; | |
21215 | { | |
21216 | void *ptr; | |
21217 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
21218 | _v = 0; | |
21219 | PyErr_Clear(); | |
21220 | } else { | |
21221 | _v = 1; | |
21222 | } | |
21223 | } | |
21224 | if (_v) { | |
21225 | { | |
21226 | void *ptr; | |
21227 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
21228 | _v = 0; | |
21229 | PyErr_Clear(); | |
21230 | } else { | |
21231 | _v = 1; | |
21232 | } | |
21233 | } | |
21234 | if (_v) { | |
21235 | return _wrap_DateTime___sub____SWIG_0(self,args); | |
21236 | } | |
21237 | } | |
21238 | } | |
21239 | if (argc == 2) { | |
21240 | int _v; | |
21241 | { | |
21242 | void *ptr; | |
21243 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
21244 | _v = 0; | |
21245 | PyErr_Clear(); | |
21246 | } else { | |
21247 | _v = 1; | |
21248 | } | |
21249 | } | |
21250 | if (_v) { | |
21251 | { | |
21252 | void *ptr; | |
21253 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
21254 | _v = 0; | |
21255 | PyErr_Clear(); | |
21256 | } else { | |
21257 | _v = 1; | |
21258 | } | |
21259 | } | |
21260 | if (_v) { | |
21261 | return _wrap_DateTime___sub____SWIG_1(self,args); | |
21262 | } | |
21263 | } | |
21264 | } | |
21265 | if (argc == 2) { | |
21266 | int _v; | |
21267 | { | |
21268 | void *ptr; | |
21269 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
21270 | _v = 0; | |
21271 | PyErr_Clear(); | |
21272 | } else { | |
21273 | _v = 1; | |
21274 | } | |
21275 | } | |
21276 | if (_v) { | |
21277 | { | |
21278 | void *ptr; | |
21279 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
21280 | _v = 0; | |
21281 | PyErr_Clear(); | |
21282 | } else { | |
21283 | _v = 1; | |
21284 | } | |
21285 | } | |
21286 | if (_v) { | |
21287 | return _wrap_DateTime___sub____SWIG_2(self,args); | |
21288 | } | |
21289 | } | |
21290 | } | |
21291 | ||
21292 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___sub__'"); | |
21293 | return NULL; | |
21294 | } | |
21295 | ||
21296 | ||
c32bde28 | 21297 | static PyObject *_wrap_DateTime___lt__(PyObject *, PyObject *args) { |
d55e5bfc RD |
21298 | PyObject *resultobj; |
21299 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21300 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
21301 | bool result; | |
21302 | PyObject * obj0 = 0 ; | |
21303 | PyObject * obj1 = 0 ; | |
21304 | ||
21305 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___lt__",&obj0,&obj1)) goto fail; | |
21306 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21308 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
21309 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21310 | { | |
21311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21312 | result = (bool)wxDateTime___lt__(arg1,(wxDateTime const *)arg2); | |
21313 | ||
21314 | wxPyEndAllowThreads(__tstate); | |
21315 | if (PyErr_Occurred()) SWIG_fail; | |
21316 | } | |
21317 | { | |
21318 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21319 | } | |
21320 | return resultobj; | |
21321 | fail: | |
21322 | return NULL; | |
21323 | } | |
21324 | ||
21325 | ||
c32bde28 | 21326 | static PyObject *_wrap_DateTime___le__(PyObject *, PyObject *args) { |
d55e5bfc RD |
21327 | PyObject *resultobj; |
21328 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21329 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
21330 | bool result; | |
21331 | PyObject * obj0 = 0 ; | |
21332 | PyObject * obj1 = 0 ; | |
21333 | ||
21334 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___le__",&obj0,&obj1)) goto fail; | |
21335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21337 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
21338 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21339 | { | |
21340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21341 | result = (bool)wxDateTime___le__(arg1,(wxDateTime const *)arg2); | |
21342 | ||
21343 | wxPyEndAllowThreads(__tstate); | |
21344 | if (PyErr_Occurred()) SWIG_fail; | |
21345 | } | |
21346 | { | |
21347 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21348 | } | |
21349 | return resultobj; | |
21350 | fail: | |
21351 | return NULL; | |
21352 | } | |
21353 | ||
21354 | ||
c32bde28 | 21355 | static PyObject *_wrap_DateTime___gt__(PyObject *, PyObject *args) { |
d55e5bfc RD |
21356 | PyObject *resultobj; |
21357 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21358 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
21359 | bool result; | |
21360 | PyObject * obj0 = 0 ; | |
21361 | PyObject * obj1 = 0 ; | |
21362 | ||
21363 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___gt__",&obj0,&obj1)) goto fail; | |
21364 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21365 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21366 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
21367 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21368 | { | |
21369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21370 | result = (bool)wxDateTime___gt__(arg1,(wxDateTime const *)arg2); | |
21371 | ||
21372 | wxPyEndAllowThreads(__tstate); | |
21373 | if (PyErr_Occurred()) SWIG_fail; | |
21374 | } | |
21375 | { | |
21376 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21377 | } | |
21378 | return resultobj; | |
21379 | fail: | |
21380 | return NULL; | |
21381 | } | |
21382 | ||
21383 | ||
c32bde28 | 21384 | static PyObject *_wrap_DateTime___ge__(PyObject *, PyObject *args) { |
d55e5bfc RD |
21385 | PyObject *resultobj; |
21386 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21387 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
21388 | bool result; | |
21389 | PyObject * obj0 = 0 ; | |
21390 | PyObject * obj1 = 0 ; | |
21391 | ||
21392 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ge__",&obj0,&obj1)) goto fail; | |
21393 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21394 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21395 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
21396 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21397 | { | |
21398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21399 | result = (bool)wxDateTime___ge__(arg1,(wxDateTime const *)arg2); | |
21400 | ||
21401 | wxPyEndAllowThreads(__tstate); | |
21402 | if (PyErr_Occurred()) SWIG_fail; | |
21403 | } | |
21404 | { | |
21405 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21406 | } | |
21407 | return resultobj; | |
21408 | fail: | |
21409 | return NULL; | |
21410 | } | |
21411 | ||
21412 | ||
c32bde28 | 21413 | static PyObject *_wrap_DateTime___eq__(PyObject *, PyObject *args) { |
d55e5bfc RD |
21414 | PyObject *resultobj; |
21415 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21416 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
21417 | bool result; | |
21418 | PyObject * obj0 = 0 ; | |
21419 | PyObject * obj1 = 0 ; | |
21420 | ||
21421 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___eq__",&obj0,&obj1)) goto fail; | |
21422 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21423 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21424 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
21425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21426 | { | |
21427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21428 | result = (bool)wxDateTime___eq__(arg1,(wxDateTime const *)arg2); | |
21429 | ||
21430 | wxPyEndAllowThreads(__tstate); | |
21431 | if (PyErr_Occurred()) SWIG_fail; | |
21432 | } | |
21433 | { | |
21434 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21435 | } | |
21436 | return resultobj; | |
21437 | fail: | |
21438 | return NULL; | |
21439 | } | |
21440 | ||
21441 | ||
c32bde28 | 21442 | static PyObject *_wrap_DateTime___ne__(PyObject *, PyObject *args) { |
d55e5bfc RD |
21443 | PyObject *resultobj; |
21444 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21445 | wxDateTime *arg2 = (wxDateTime *) 0 ; | |
21446 | bool result; | |
21447 | PyObject * obj0 = 0 ; | |
21448 | PyObject * obj1 = 0 ; | |
21449 | ||
21450 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ne__",&obj0,&obj1)) goto fail; | |
21451 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21452 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21453 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime, | |
21454 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21455 | { | |
21456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21457 | result = (bool)wxDateTime___ne__(arg1,(wxDateTime const *)arg2); | |
21458 | ||
21459 | wxPyEndAllowThreads(__tstate); | |
21460 | if (PyErr_Occurred()) SWIG_fail; | |
21461 | } | |
21462 | { | |
21463 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21464 | } | |
21465 | return resultobj; | |
21466 | fail: | |
21467 | return NULL; | |
21468 | } | |
21469 | ||
21470 | ||
c32bde28 | 21471 | static PyObject *_wrap_DateTime_ParseRfc822Date(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21472 | PyObject *resultobj; |
21473 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21474 | wxString *arg2 = 0 ; | |
21475 | int result; | |
ae8162c8 | 21476 | bool temp2 = false ; |
d55e5bfc RD |
21477 | PyObject * obj0 = 0 ; |
21478 | PyObject * obj1 = 0 ; | |
21479 | char *kwnames[] = { | |
21480 | (char *) "self",(char *) "date", NULL | |
21481 | }; | |
21482 | ||
21483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseRfc822Date",kwnames,&obj0,&obj1)) goto fail; | |
21484 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21485 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21486 | { | |
21487 | arg2 = wxString_in_helper(obj1); | |
21488 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 21489 | temp2 = true; |
d55e5bfc RD |
21490 | } |
21491 | { | |
21492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21493 | result = (int)wxDateTime_ParseRfc822Date(arg1,(wxString const &)*arg2); | |
21494 | ||
21495 | wxPyEndAllowThreads(__tstate); | |
21496 | if (PyErr_Occurred()) SWIG_fail; | |
21497 | } | |
c32bde28 | 21498 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
21499 | { |
21500 | if (temp2) | |
21501 | delete arg2; | |
21502 | } | |
21503 | return resultobj; | |
21504 | fail: | |
21505 | { | |
21506 | if (temp2) | |
21507 | delete arg2; | |
21508 | } | |
21509 | return NULL; | |
21510 | } | |
21511 | ||
21512 | ||
c32bde28 | 21513 | static PyObject *_wrap_DateTime_ParseFormat(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21514 | PyObject *resultobj; |
21515 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21516 | wxString *arg2 = 0 ; | |
21517 | wxString const &arg3_defvalue = wxPyDateFormatStr ; | |
21518 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
21519 | wxDateTime const &arg4_defvalue = wxDefaultDateTime ; | |
21520 | wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ; | |
21521 | int result; | |
ae8162c8 RD |
21522 | bool temp2 = false ; |
21523 | bool temp3 = false ; | |
d55e5bfc RD |
21524 | PyObject * obj0 = 0 ; |
21525 | PyObject * obj1 = 0 ; | |
21526 | PyObject * obj2 = 0 ; | |
21527 | PyObject * obj3 = 0 ; | |
21528 | char *kwnames[] = { | |
21529 | (char *) "self",(char *) "date",(char *) "format",(char *) "dateDef", NULL | |
21530 | }; | |
21531 | ||
21532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_ParseFormat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
21533 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21534 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21535 | { | |
21536 | arg2 = wxString_in_helper(obj1); | |
21537 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 21538 | temp2 = true; |
d55e5bfc RD |
21539 | } |
21540 | if (obj2) { | |
21541 | { | |
21542 | arg3 = wxString_in_helper(obj2); | |
21543 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 21544 | temp3 = true; |
d55e5bfc RD |
21545 | } |
21546 | } | |
21547 | if (obj3) { | |
21548 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDateTime, | |
21549 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21550 | SWIG_fail; | |
21551 | if (arg4 == NULL) { | |
21552 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21553 | SWIG_fail; | |
21554 | } | |
21555 | } | |
21556 | { | |
21557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21558 | result = (int)wxDateTime_ParseFormat(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxDateTime const &)*arg4); | |
21559 | ||
21560 | wxPyEndAllowThreads(__tstate); | |
21561 | if (PyErr_Occurred()) SWIG_fail; | |
21562 | } | |
c32bde28 | 21563 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
21564 | { |
21565 | if (temp2) | |
21566 | delete arg2; | |
21567 | } | |
21568 | { | |
21569 | if (temp3) | |
21570 | delete arg3; | |
21571 | } | |
21572 | return resultobj; | |
21573 | fail: | |
21574 | { | |
21575 | if (temp2) | |
21576 | delete arg2; | |
21577 | } | |
21578 | { | |
21579 | if (temp3) | |
21580 | delete arg3; | |
21581 | } | |
21582 | return NULL; | |
21583 | } | |
21584 | ||
21585 | ||
c32bde28 | 21586 | static PyObject *_wrap_DateTime_ParseDateTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21587 | PyObject *resultobj; |
21588 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21589 | wxString *arg2 = 0 ; | |
21590 | int result; | |
ae8162c8 | 21591 | bool temp2 = false ; |
d55e5bfc RD |
21592 | PyObject * obj0 = 0 ; |
21593 | PyObject * obj1 = 0 ; | |
21594 | char *kwnames[] = { | |
21595 | (char *) "self",(char *) "datetime", NULL | |
21596 | }; | |
21597 | ||
21598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDateTime",kwnames,&obj0,&obj1)) goto fail; | |
21599 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21600 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21601 | { | |
21602 | arg2 = wxString_in_helper(obj1); | |
21603 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 21604 | temp2 = true; |
d55e5bfc RD |
21605 | } |
21606 | { | |
21607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21608 | result = (int)wxDateTime_ParseDateTime(arg1,(wxString const &)*arg2); | |
21609 | ||
21610 | wxPyEndAllowThreads(__tstate); | |
21611 | if (PyErr_Occurred()) SWIG_fail; | |
21612 | } | |
c32bde28 | 21613 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
21614 | { |
21615 | if (temp2) | |
21616 | delete arg2; | |
21617 | } | |
21618 | return resultobj; | |
21619 | fail: | |
21620 | { | |
21621 | if (temp2) | |
21622 | delete arg2; | |
21623 | } | |
21624 | return NULL; | |
21625 | } | |
21626 | ||
21627 | ||
c32bde28 | 21628 | static PyObject *_wrap_DateTime_ParseDate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21629 | PyObject *resultobj; |
21630 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21631 | wxString *arg2 = 0 ; | |
21632 | int result; | |
ae8162c8 | 21633 | bool temp2 = false ; |
d55e5bfc RD |
21634 | PyObject * obj0 = 0 ; |
21635 | PyObject * obj1 = 0 ; | |
21636 | char *kwnames[] = { | |
21637 | (char *) "self",(char *) "date", NULL | |
21638 | }; | |
21639 | ||
21640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDate",kwnames,&obj0,&obj1)) goto fail; | |
21641 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21642 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21643 | { | |
21644 | arg2 = wxString_in_helper(obj1); | |
21645 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 21646 | temp2 = true; |
d55e5bfc RD |
21647 | } |
21648 | { | |
21649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21650 | result = (int)wxDateTime_ParseDate(arg1,(wxString const &)*arg2); | |
21651 | ||
21652 | wxPyEndAllowThreads(__tstate); | |
21653 | if (PyErr_Occurred()) SWIG_fail; | |
21654 | } | |
c32bde28 | 21655 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
21656 | { |
21657 | if (temp2) | |
21658 | delete arg2; | |
21659 | } | |
21660 | return resultobj; | |
21661 | fail: | |
21662 | { | |
21663 | if (temp2) | |
21664 | delete arg2; | |
21665 | } | |
21666 | return NULL; | |
21667 | } | |
21668 | ||
21669 | ||
c32bde28 | 21670 | static PyObject *_wrap_DateTime_ParseTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21671 | PyObject *resultobj; |
21672 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21673 | wxString *arg2 = 0 ; | |
21674 | int result; | |
ae8162c8 | 21675 | bool temp2 = false ; |
d55e5bfc RD |
21676 | PyObject * obj0 = 0 ; |
21677 | PyObject * obj1 = 0 ; | |
21678 | char *kwnames[] = { | |
21679 | (char *) "self",(char *) "time", NULL | |
21680 | }; | |
21681 | ||
21682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseTime",kwnames,&obj0,&obj1)) goto fail; | |
21683 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21684 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21685 | { | |
21686 | arg2 = wxString_in_helper(obj1); | |
21687 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 21688 | temp2 = true; |
d55e5bfc RD |
21689 | } |
21690 | { | |
21691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21692 | result = (int)wxDateTime_ParseTime(arg1,(wxString const &)*arg2); | |
21693 | ||
21694 | wxPyEndAllowThreads(__tstate); | |
21695 | if (PyErr_Occurred()) SWIG_fail; | |
21696 | } | |
c32bde28 | 21697 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
21698 | { |
21699 | if (temp2) | |
21700 | delete arg2; | |
21701 | } | |
21702 | return resultobj; | |
21703 | fail: | |
21704 | { | |
21705 | if (temp2) | |
21706 | delete arg2; | |
21707 | } | |
21708 | return NULL; | |
21709 | } | |
21710 | ||
21711 | ||
c32bde28 | 21712 | static PyObject *_wrap_DateTime_Format(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21713 | PyObject *resultobj; |
21714 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21715 | wxString const &arg2_defvalue = wxPyDateFormatStr ; | |
21716 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
21717 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
21718 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
21719 | wxString result; | |
ae8162c8 RD |
21720 | bool temp2 = false ; |
21721 | bool temp3 = false ; | |
d55e5bfc RD |
21722 | PyObject * obj0 = 0 ; |
21723 | PyObject * obj1 = 0 ; | |
21724 | PyObject * obj2 = 0 ; | |
21725 | char *kwnames[] = { | |
21726 | (char *) "self",(char *) "format",(char *) "tz", NULL | |
21727 | }; | |
21728 | ||
21729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_Format",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21730 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21731 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21732 | if (obj1) { | |
21733 | { | |
21734 | arg2 = wxString_in_helper(obj1); | |
21735 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 21736 | temp2 = true; |
d55e5bfc RD |
21737 | } |
21738 | } | |
21739 | if (obj2) { | |
21740 | { | |
21741 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
ae8162c8 | 21742 | temp3 = true; |
d55e5bfc RD |
21743 | } |
21744 | } | |
21745 | { | |
21746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21747 | result = ((wxDateTime const *)arg1)->Format((wxString const &)*arg2,(wxDateTime::TimeZone const &)*arg3); | |
21748 | ||
21749 | wxPyEndAllowThreads(__tstate); | |
21750 | if (PyErr_Occurred()) SWIG_fail; | |
21751 | } | |
21752 | { | |
21753 | #if wxUSE_UNICODE | |
21754 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21755 | #else | |
21756 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21757 | #endif | |
21758 | } | |
21759 | { | |
21760 | if (temp2) | |
21761 | delete arg2; | |
21762 | } | |
21763 | { | |
21764 | if (temp3) delete arg3; | |
21765 | } | |
21766 | return resultobj; | |
21767 | fail: | |
21768 | { | |
21769 | if (temp2) | |
21770 | delete arg2; | |
21771 | } | |
21772 | { | |
21773 | if (temp3) delete arg3; | |
21774 | } | |
21775 | return NULL; | |
21776 | } | |
21777 | ||
21778 | ||
c32bde28 | 21779 | static PyObject *_wrap_DateTime_FormatDate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21780 | PyObject *resultobj; |
21781 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21782 | wxString result; | |
21783 | PyObject * obj0 = 0 ; | |
21784 | char *kwnames[] = { | |
21785 | (char *) "self", NULL | |
21786 | }; | |
21787 | ||
21788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatDate",kwnames,&obj0)) goto fail; | |
21789 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21790 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21791 | { | |
21792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21793 | result = ((wxDateTime const *)arg1)->FormatDate(); | |
21794 | ||
21795 | wxPyEndAllowThreads(__tstate); | |
21796 | if (PyErr_Occurred()) SWIG_fail; | |
21797 | } | |
21798 | { | |
21799 | #if wxUSE_UNICODE | |
21800 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21801 | #else | |
21802 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21803 | #endif | |
21804 | } | |
21805 | return resultobj; | |
21806 | fail: | |
21807 | return NULL; | |
21808 | } | |
21809 | ||
21810 | ||
c32bde28 | 21811 | static PyObject *_wrap_DateTime_FormatTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21812 | PyObject *resultobj; |
21813 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21814 | wxString result; | |
21815 | PyObject * obj0 = 0 ; | |
21816 | char *kwnames[] = { | |
21817 | (char *) "self", NULL | |
21818 | }; | |
21819 | ||
21820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatTime",kwnames,&obj0)) goto fail; | |
21821 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21822 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21823 | { | |
21824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21825 | result = ((wxDateTime const *)arg1)->FormatTime(); | |
21826 | ||
21827 | wxPyEndAllowThreads(__tstate); | |
21828 | if (PyErr_Occurred()) SWIG_fail; | |
21829 | } | |
21830 | { | |
21831 | #if wxUSE_UNICODE | |
21832 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21833 | #else | |
21834 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21835 | #endif | |
21836 | } | |
21837 | return resultobj; | |
21838 | fail: | |
21839 | return NULL; | |
21840 | } | |
21841 | ||
21842 | ||
c32bde28 | 21843 | static PyObject *_wrap_DateTime_FormatISODate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21844 | PyObject *resultobj; |
21845 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21846 | wxString result; | |
21847 | PyObject * obj0 = 0 ; | |
21848 | char *kwnames[] = { | |
21849 | (char *) "self", NULL | |
21850 | }; | |
21851 | ||
21852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISODate",kwnames,&obj0)) goto fail; | |
21853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21855 | { | |
21856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21857 | result = ((wxDateTime const *)arg1)->FormatISODate(); | |
21858 | ||
21859 | wxPyEndAllowThreads(__tstate); | |
21860 | if (PyErr_Occurred()) SWIG_fail; | |
21861 | } | |
21862 | { | |
21863 | #if wxUSE_UNICODE | |
21864 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21865 | #else | |
21866 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21867 | #endif | |
21868 | } | |
21869 | return resultobj; | |
21870 | fail: | |
21871 | return NULL; | |
21872 | } | |
21873 | ||
21874 | ||
c32bde28 | 21875 | static PyObject *_wrap_DateTime_FormatISOTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21876 | PyObject *resultobj; |
21877 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
21878 | wxString result; | |
21879 | PyObject * obj0 = 0 ; | |
21880 | char *kwnames[] = { | |
21881 | (char *) "self", NULL | |
21882 | }; | |
21883 | ||
21884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISOTime",kwnames,&obj0)) goto fail; | |
21885 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime, | |
21886 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21887 | { | |
21888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21889 | result = ((wxDateTime const *)arg1)->FormatISOTime(); | |
21890 | ||
21891 | wxPyEndAllowThreads(__tstate); | |
21892 | if (PyErr_Occurred()) SWIG_fail; | |
21893 | } | |
21894 | { | |
21895 | #if wxUSE_UNICODE | |
21896 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21897 | #else | |
21898 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21899 | #endif | |
21900 | } | |
21901 | return resultobj; | |
21902 | fail: | |
21903 | return NULL; | |
21904 | } | |
21905 | ||
21906 | ||
c32bde28 | 21907 | static PyObject * DateTime_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
21908 | PyObject *obj; |
21909 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21910 | SWIG_TypeClientData(SWIGTYPE_p_wxDateTime, obj); | |
21911 | Py_INCREF(obj); | |
21912 | return Py_BuildValue((char *)""); | |
21913 | } | |
c32bde28 | 21914 | static PyObject *_wrap_TimeSpan_Seconds(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21915 | PyObject *resultobj; |
21916 | long arg1 ; | |
21917 | wxTimeSpan result; | |
21918 | PyObject * obj0 = 0 ; | |
21919 | char *kwnames[] = { | |
21920 | (char *) "sec", NULL | |
21921 | }; | |
21922 | ||
21923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Seconds",kwnames,&obj0)) goto fail; | |
c32bde28 | 21924 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
21925 | if (PyErr_Occurred()) SWIG_fail; |
21926 | { | |
21927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21928 | result = wxTimeSpan::Seconds(arg1); | |
21929 | ||
21930 | wxPyEndAllowThreads(__tstate); | |
21931 | if (PyErr_Occurred()) SWIG_fail; | |
21932 | } | |
21933 | { | |
21934 | wxTimeSpan * resultptr; | |
21935 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21936 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21937 | } | |
21938 | return resultobj; | |
21939 | fail: | |
21940 | return NULL; | |
21941 | } | |
21942 | ||
21943 | ||
c32bde28 | 21944 | static PyObject *_wrap_TimeSpan_Second(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21945 | PyObject *resultobj; |
21946 | wxTimeSpan result; | |
21947 | char *kwnames[] = { | |
21948 | NULL | |
21949 | }; | |
21950 | ||
21951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Second",kwnames)) goto fail; | |
21952 | { | |
21953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21954 | result = wxTimeSpan::Second(); | |
21955 | ||
21956 | wxPyEndAllowThreads(__tstate); | |
21957 | if (PyErr_Occurred()) SWIG_fail; | |
21958 | } | |
21959 | { | |
21960 | wxTimeSpan * resultptr; | |
21961 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21962 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21963 | } | |
21964 | return resultobj; | |
21965 | fail: | |
21966 | return NULL; | |
21967 | } | |
21968 | ||
21969 | ||
c32bde28 | 21970 | static PyObject *_wrap_TimeSpan_Minutes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21971 | PyObject *resultobj; |
21972 | long arg1 ; | |
21973 | wxTimeSpan result; | |
21974 | PyObject * obj0 = 0 ; | |
21975 | char *kwnames[] = { | |
21976 | (char *) "min", NULL | |
21977 | }; | |
21978 | ||
21979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Minutes",kwnames,&obj0)) goto fail; | |
c32bde28 | 21980 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
21981 | if (PyErr_Occurred()) SWIG_fail; |
21982 | { | |
21983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21984 | result = wxTimeSpan::Minutes(arg1); | |
21985 | ||
21986 | wxPyEndAllowThreads(__tstate); | |
21987 | if (PyErr_Occurred()) SWIG_fail; | |
21988 | } | |
21989 | { | |
21990 | wxTimeSpan * resultptr; | |
21991 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
21992 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
21993 | } | |
21994 | return resultobj; | |
21995 | fail: | |
21996 | return NULL; | |
21997 | } | |
21998 | ||
21999 | ||
c32bde28 | 22000 | static PyObject *_wrap_TimeSpan_Minute(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22001 | PyObject *resultobj; |
22002 | wxTimeSpan result; | |
22003 | char *kwnames[] = { | |
22004 | NULL | |
22005 | }; | |
22006 | ||
22007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Minute",kwnames)) goto fail; | |
22008 | { | |
22009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22010 | result = wxTimeSpan::Minute(); | |
22011 | ||
22012 | wxPyEndAllowThreads(__tstate); | |
22013 | if (PyErr_Occurred()) SWIG_fail; | |
22014 | } | |
22015 | { | |
22016 | wxTimeSpan * resultptr; | |
22017 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
22018 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
22019 | } | |
22020 | return resultobj; | |
22021 | fail: | |
22022 | return NULL; | |
22023 | } | |
22024 | ||
22025 | ||
c32bde28 | 22026 | static PyObject *_wrap_TimeSpan_Hours(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22027 | PyObject *resultobj; |
22028 | long arg1 ; | |
22029 | wxTimeSpan result; | |
22030 | PyObject * obj0 = 0 ; | |
22031 | char *kwnames[] = { | |
22032 | (char *) "hours", NULL | |
22033 | }; | |
22034 | ||
22035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Hours",kwnames,&obj0)) goto fail; | |
c32bde28 | 22036 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
22037 | if (PyErr_Occurred()) SWIG_fail; |
22038 | { | |
22039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22040 | result = wxTimeSpan::Hours(arg1); | |
22041 | ||
22042 | wxPyEndAllowThreads(__tstate); | |
22043 | if (PyErr_Occurred()) SWIG_fail; | |
22044 | } | |
22045 | { | |
22046 | wxTimeSpan * resultptr; | |
22047 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
22048 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
22049 | } | |
22050 | return resultobj; | |
22051 | fail: | |
22052 | return NULL; | |
22053 | } | |
22054 | ||
22055 | ||
c32bde28 | 22056 | static PyObject *_wrap_TimeSpan_Hour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22057 | PyObject *resultobj; |
22058 | wxTimeSpan result; | |
22059 | char *kwnames[] = { | |
22060 | NULL | |
22061 | }; | |
22062 | ||
22063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Hour",kwnames)) goto fail; | |
22064 | { | |
22065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22066 | result = wxTimeSpan::Hour(); | |
22067 | ||
22068 | wxPyEndAllowThreads(__tstate); | |
22069 | if (PyErr_Occurred()) SWIG_fail; | |
22070 | } | |
22071 | { | |
22072 | wxTimeSpan * resultptr; | |
22073 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
22074 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
22075 | } | |
22076 | return resultobj; | |
22077 | fail: | |
22078 | return NULL; | |
22079 | } | |
22080 | ||
22081 | ||
c32bde28 | 22082 | static PyObject *_wrap_TimeSpan_Days(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22083 | PyObject *resultobj; |
22084 | long arg1 ; | |
22085 | wxTimeSpan result; | |
22086 | PyObject * obj0 = 0 ; | |
22087 | char *kwnames[] = { | |
22088 | (char *) "days", NULL | |
22089 | }; | |
22090 | ||
22091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Days",kwnames,&obj0)) goto fail; | |
c32bde28 | 22092 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
22093 | if (PyErr_Occurred()) SWIG_fail; |
22094 | { | |
22095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22096 | result = wxTimeSpan::Days(arg1); | |
22097 | ||
22098 | wxPyEndAllowThreads(__tstate); | |
22099 | if (PyErr_Occurred()) SWIG_fail; | |
22100 | } | |
22101 | { | |
22102 | wxTimeSpan * resultptr; | |
22103 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
22104 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
22105 | } | |
22106 | return resultobj; | |
22107 | fail: | |
22108 | return NULL; | |
22109 | } | |
22110 | ||
22111 | ||
c32bde28 | 22112 | static PyObject *_wrap_TimeSpan_Day(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22113 | PyObject *resultobj; |
22114 | wxTimeSpan result; | |
22115 | char *kwnames[] = { | |
22116 | NULL | |
22117 | }; | |
22118 | ||
22119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Day",kwnames)) goto fail; | |
22120 | { | |
22121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22122 | result = wxTimeSpan::Day(); | |
22123 | ||
22124 | wxPyEndAllowThreads(__tstate); | |
22125 | if (PyErr_Occurred()) SWIG_fail; | |
22126 | } | |
22127 | { | |
22128 | wxTimeSpan * resultptr; | |
22129 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
22130 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
22131 | } | |
22132 | return resultobj; | |
22133 | fail: | |
22134 | return NULL; | |
22135 | } | |
22136 | ||
22137 | ||
c32bde28 | 22138 | static PyObject *_wrap_TimeSpan_Weeks(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22139 | PyObject *resultobj; |
22140 | long arg1 ; | |
22141 | wxTimeSpan result; | |
22142 | PyObject * obj0 = 0 ; | |
22143 | char *kwnames[] = { | |
22144 | (char *) "days", NULL | |
22145 | }; | |
22146 | ||
22147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Weeks",kwnames,&obj0)) goto fail; | |
c32bde28 | 22148 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
22149 | if (PyErr_Occurred()) SWIG_fail; |
22150 | { | |
22151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22152 | result = wxTimeSpan::Weeks(arg1); | |
22153 | ||
22154 | wxPyEndAllowThreads(__tstate); | |
22155 | if (PyErr_Occurred()) SWIG_fail; | |
22156 | } | |
22157 | { | |
22158 | wxTimeSpan * resultptr; | |
22159 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
22160 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
22161 | } | |
22162 | return resultobj; | |
22163 | fail: | |
22164 | return NULL; | |
22165 | } | |
22166 | ||
22167 | ||
c32bde28 | 22168 | static PyObject *_wrap_TimeSpan_Week(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22169 | PyObject *resultobj; |
22170 | wxTimeSpan result; | |
22171 | char *kwnames[] = { | |
22172 | NULL | |
22173 | }; | |
22174 | ||
22175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Week",kwnames)) goto fail; | |
22176 | { | |
22177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22178 | result = wxTimeSpan::Week(); | |
22179 | ||
22180 | wxPyEndAllowThreads(__tstate); | |
22181 | if (PyErr_Occurred()) SWIG_fail; | |
22182 | } | |
22183 | { | |
22184 | wxTimeSpan * resultptr; | |
22185 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
22186 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
22187 | } | |
22188 | return resultobj; | |
22189 | fail: | |
22190 | return NULL; | |
22191 | } | |
22192 | ||
22193 | ||
c32bde28 | 22194 | static PyObject *_wrap_new_TimeSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22195 | PyObject *resultobj; |
22196 | long arg1 = (long) 0 ; | |
22197 | long arg2 = (long) 0 ; | |
22198 | long arg3 = (long) 0 ; | |
22199 | long arg4 = (long) 0 ; | |
22200 | wxTimeSpan *result; | |
22201 | PyObject * obj0 = 0 ; | |
22202 | PyObject * obj1 = 0 ; | |
22203 | PyObject * obj2 = 0 ; | |
22204 | PyObject * obj3 = 0 ; | |
22205 | char *kwnames[] = { | |
22206 | (char *) "hours",(char *) "minutes",(char *) "seconds",(char *) "milliseconds", NULL | |
22207 | }; | |
22208 | ||
22209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TimeSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
22210 | if (obj0) { | |
c32bde28 | 22211 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
22212 | if (PyErr_Occurred()) SWIG_fail; |
22213 | } | |
22214 | if (obj1) { | |
c32bde28 | 22215 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
22216 | if (PyErr_Occurred()) SWIG_fail; |
22217 | } | |
22218 | if (obj2) { | |
c32bde28 | 22219 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
22220 | if (PyErr_Occurred()) SWIG_fail; |
22221 | } | |
22222 | if (obj3) { | |
c32bde28 | 22223 | arg4 = (long)SWIG_As_long(obj3); |
d55e5bfc RD |
22224 | if (PyErr_Occurred()) SWIG_fail; |
22225 | } | |
22226 | { | |
22227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22228 | result = (wxTimeSpan *)new wxTimeSpan(arg1,arg2,arg3,arg4); | |
22229 | ||
22230 | wxPyEndAllowThreads(__tstate); | |
22231 | if (PyErr_Occurred()) SWIG_fail; | |
22232 | } | |
22233 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1); | |
22234 | return resultobj; | |
22235 | fail: | |
22236 | return NULL; | |
22237 | } | |
22238 | ||
22239 | ||
c32bde28 | 22240 | static PyObject *_wrap_delete_TimeSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22241 | PyObject *resultobj; |
22242 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22243 | PyObject * obj0 = 0 ; | |
22244 | char *kwnames[] = { | |
22245 | (char *) "self", NULL | |
22246 | }; | |
22247 | ||
22248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimeSpan",kwnames,&obj0)) goto fail; | |
22249 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22251 | { | |
22252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22253 | delete arg1; | |
22254 | ||
22255 | wxPyEndAllowThreads(__tstate); | |
22256 | if (PyErr_Occurred()) SWIG_fail; | |
22257 | } | |
22258 | Py_INCREF(Py_None); resultobj = Py_None; | |
22259 | return resultobj; | |
22260 | fail: | |
22261 | return NULL; | |
22262 | } | |
22263 | ||
22264 | ||
c32bde28 | 22265 | static PyObject *_wrap_TimeSpan_Add(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22266 | PyObject *resultobj; |
22267 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22268 | wxTimeSpan *arg2 = 0 ; | |
22269 | wxTimeSpan *result; | |
22270 | PyObject * obj0 = 0 ; | |
22271 | PyObject * obj1 = 0 ; | |
22272 | char *kwnames[] = { | |
22273 | (char *) "self",(char *) "diff", NULL | |
22274 | }; | |
22275 | ||
22276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Add",kwnames,&obj0,&obj1)) goto fail; | |
22277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22279 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22280 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22281 | SWIG_fail; | |
22282 | if (arg2 == NULL) { | |
22283 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22284 | SWIG_fail; | |
22285 | } | |
22286 | { | |
22287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22288 | { | |
22289 | wxTimeSpan &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2); | |
22290 | result = (wxTimeSpan *) &_result_ref; | |
22291 | } | |
22292 | ||
22293 | wxPyEndAllowThreads(__tstate); | |
22294 | if (PyErr_Occurred()) SWIG_fail; | |
22295 | } | |
22296 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
22297 | return resultobj; | |
22298 | fail: | |
22299 | return NULL; | |
22300 | } | |
22301 | ||
22302 | ||
c32bde28 | 22303 | static PyObject *_wrap_TimeSpan_Subtract(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22304 | PyObject *resultobj; |
22305 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22306 | wxTimeSpan *arg2 = 0 ; | |
22307 | wxTimeSpan *result; | |
22308 | PyObject * obj0 = 0 ; | |
22309 | PyObject * obj1 = 0 ; | |
22310 | char *kwnames[] = { | |
22311 | (char *) "self",(char *) "diff", NULL | |
22312 | }; | |
22313 | ||
22314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
22315 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22317 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22318 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22319 | SWIG_fail; | |
22320 | if (arg2 == NULL) { | |
22321 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22322 | SWIG_fail; | |
22323 | } | |
22324 | { | |
22325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22326 | { | |
22327 | wxTimeSpan &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2); | |
22328 | result = (wxTimeSpan *) &_result_ref; | |
22329 | } | |
22330 | ||
22331 | wxPyEndAllowThreads(__tstate); | |
22332 | if (PyErr_Occurred()) SWIG_fail; | |
22333 | } | |
22334 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
22335 | return resultobj; | |
22336 | fail: | |
22337 | return NULL; | |
22338 | } | |
22339 | ||
22340 | ||
c32bde28 | 22341 | static PyObject *_wrap_TimeSpan_Multiply(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22342 | PyObject *resultobj; |
22343 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22344 | int arg2 ; | |
22345 | wxTimeSpan *result; | |
22346 | PyObject * obj0 = 0 ; | |
22347 | PyObject * obj1 = 0 ; | |
22348 | char *kwnames[] = { | |
22349 | (char *) "self",(char *) "n", NULL | |
22350 | }; | |
22351 | ||
22352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Multiply",kwnames,&obj0,&obj1)) goto fail; | |
22353 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22354 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22355 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
22356 | if (PyErr_Occurred()) SWIG_fail; |
22357 | { | |
22358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22359 | { | |
22360 | wxTimeSpan &_result_ref = (arg1)->Multiply(arg2); | |
22361 | result = (wxTimeSpan *) &_result_ref; | |
22362 | } | |
22363 | ||
22364 | wxPyEndAllowThreads(__tstate); | |
22365 | if (PyErr_Occurred()) SWIG_fail; | |
22366 | } | |
22367 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
22368 | return resultobj; | |
22369 | fail: | |
22370 | return NULL; | |
22371 | } | |
22372 | ||
22373 | ||
c32bde28 | 22374 | static PyObject *_wrap_TimeSpan_Neg(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22375 | PyObject *resultobj; |
22376 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22377 | wxTimeSpan *result; | |
22378 | PyObject * obj0 = 0 ; | |
22379 | char *kwnames[] = { | |
22380 | (char *) "self", NULL | |
22381 | }; | |
22382 | ||
22383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Neg",kwnames,&obj0)) goto fail; | |
22384 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22386 | { | |
22387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22388 | { | |
22389 | wxTimeSpan &_result_ref = (arg1)->Neg(); | |
22390 | result = (wxTimeSpan *) &_result_ref; | |
22391 | } | |
22392 | ||
22393 | wxPyEndAllowThreads(__tstate); | |
22394 | if (PyErr_Occurred()) SWIG_fail; | |
22395 | } | |
22396 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
22397 | return resultobj; | |
22398 | fail: | |
22399 | return NULL; | |
22400 | } | |
22401 | ||
22402 | ||
c32bde28 | 22403 | static PyObject *_wrap_TimeSpan_Abs(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22404 | PyObject *resultobj; |
22405 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22406 | wxTimeSpan result; | |
22407 | PyObject * obj0 = 0 ; | |
22408 | char *kwnames[] = { | |
22409 | (char *) "self", NULL | |
22410 | }; | |
22411 | ||
22412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Abs",kwnames,&obj0)) goto fail; | |
22413 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22415 | { | |
22416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22417 | result = ((wxTimeSpan const *)arg1)->Abs(); | |
22418 | ||
22419 | wxPyEndAllowThreads(__tstate); | |
22420 | if (PyErr_Occurred()) SWIG_fail; | |
22421 | } | |
22422 | { | |
22423 | wxTimeSpan * resultptr; | |
22424 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
22425 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
22426 | } | |
22427 | return resultobj; | |
22428 | fail: | |
22429 | return NULL; | |
22430 | } | |
22431 | ||
22432 | ||
c32bde28 | 22433 | static PyObject *_wrap_TimeSpan___iadd__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22434 | PyObject *resultobj; |
22435 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22436 | wxTimeSpan *arg2 = 0 ; | |
22437 | wxTimeSpan *result; | |
22438 | PyObject * obj0 = 0 ; | |
22439 | PyObject * obj1 = 0 ; | |
22440 | char *kwnames[] = { | |
22441 | (char *) "self",(char *) "diff", NULL | |
22442 | }; | |
22443 | ||
22444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
22445 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
c32bde28 | 22446 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
22447 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, |
22448 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22449 | SWIG_fail; | |
22450 | if (arg2 == NULL) { | |
22451 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22452 | SWIG_fail; | |
22453 | } | |
22454 | { | |
22455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22456 | { | |
22457 | wxTimeSpan &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2); | |
22458 | result = (wxTimeSpan *) &_result_ref; | |
22459 | } | |
22460 | ||
22461 | wxPyEndAllowThreads(__tstate); | |
22462 | if (PyErr_Occurred()) SWIG_fail; | |
22463 | } | |
c32bde28 | 22464 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1); |
d55e5bfc RD |
22465 | return resultobj; |
22466 | fail: | |
22467 | return NULL; | |
22468 | } | |
22469 | ||
22470 | ||
c32bde28 | 22471 | static PyObject *_wrap_TimeSpan___isub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22472 | PyObject *resultobj; |
22473 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22474 | wxTimeSpan *arg2 = 0 ; | |
22475 | wxTimeSpan *result; | |
22476 | PyObject * obj0 = 0 ; | |
22477 | PyObject * obj1 = 0 ; | |
22478 | char *kwnames[] = { | |
22479 | (char *) "self",(char *) "diff", NULL | |
22480 | }; | |
22481 | ||
22482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___isub__",kwnames,&obj0,&obj1)) goto fail; | |
22483 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
c32bde28 | 22484 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
22485 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, |
22486 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22487 | SWIG_fail; | |
22488 | if (arg2 == NULL) { | |
22489 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22490 | SWIG_fail; | |
22491 | } | |
22492 | { | |
22493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22494 | { | |
22495 | wxTimeSpan &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2); | |
22496 | result = (wxTimeSpan *) &_result_ref; | |
22497 | } | |
22498 | ||
22499 | wxPyEndAllowThreads(__tstate); | |
22500 | if (PyErr_Occurred()) SWIG_fail; | |
22501 | } | |
c32bde28 | 22502 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1); |
d55e5bfc RD |
22503 | return resultobj; |
22504 | fail: | |
22505 | return NULL; | |
22506 | } | |
22507 | ||
22508 | ||
c32bde28 | 22509 | static PyObject *_wrap_TimeSpan___imul__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22510 | PyObject *resultobj; |
22511 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22512 | int arg2 ; | |
22513 | wxTimeSpan *result; | |
22514 | PyObject * obj0 = 0 ; | |
22515 | PyObject * obj1 = 0 ; | |
22516 | char *kwnames[] = { | |
22517 | (char *) "self",(char *) "n", NULL | |
22518 | }; | |
22519 | ||
22520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___imul__",kwnames,&obj0,&obj1)) goto fail; | |
22521 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
c32bde28 RD |
22522 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
22523 | arg2 = (int)SWIG_As_int(obj1); | |
d55e5bfc RD |
22524 | if (PyErr_Occurred()) SWIG_fail; |
22525 | { | |
22526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22527 | { | |
22528 | wxTimeSpan &_result_ref = (arg1)->operator *=(arg2); | |
22529 | result = (wxTimeSpan *) &_result_ref; | |
22530 | } | |
22531 | ||
22532 | wxPyEndAllowThreads(__tstate); | |
22533 | if (PyErr_Occurred()) SWIG_fail; | |
22534 | } | |
c32bde28 | 22535 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1); |
d55e5bfc RD |
22536 | return resultobj; |
22537 | fail: | |
22538 | return NULL; | |
22539 | } | |
22540 | ||
22541 | ||
c32bde28 | 22542 | static PyObject *_wrap_TimeSpan___neg__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22543 | PyObject *resultobj; |
22544 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22545 | wxTimeSpan *result; | |
22546 | PyObject * obj0 = 0 ; | |
22547 | char *kwnames[] = { | |
22548 | (char *) "self", NULL | |
22549 | }; | |
22550 | ||
22551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan___neg__",kwnames,&obj0)) goto fail; | |
22552 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22554 | { | |
22555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22556 | { | |
22557 | wxTimeSpan &_result_ref = (arg1)->operator -(); | |
22558 | result = (wxTimeSpan *) &_result_ref; | |
22559 | } | |
22560 | ||
22561 | wxPyEndAllowThreads(__tstate); | |
22562 | if (PyErr_Occurred()) SWIG_fail; | |
22563 | } | |
22564 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0); | |
22565 | return resultobj; | |
22566 | fail: | |
22567 | return NULL; | |
22568 | } | |
22569 | ||
22570 | ||
c32bde28 | 22571 | static PyObject *_wrap_TimeSpan___add__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22572 | PyObject *resultobj; |
22573 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22574 | wxTimeSpan *arg2 = 0 ; | |
22575 | wxTimeSpan result; | |
22576 | PyObject * obj0 = 0 ; | |
22577 | PyObject * obj1 = 0 ; | |
22578 | char *kwnames[] = { | |
22579 | (char *) "self",(char *) "other", NULL | |
22580 | }; | |
22581 | ||
22582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___add__",kwnames,&obj0,&obj1)) goto fail; | |
22583 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22584 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22585 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22586 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22587 | SWIG_fail; | |
22588 | if (arg2 == NULL) { | |
22589 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22590 | SWIG_fail; | |
22591 | } | |
22592 | { | |
22593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22594 | result = wxTimeSpan___add__(arg1,(wxTimeSpan const &)*arg2); | |
22595 | ||
22596 | wxPyEndAllowThreads(__tstate); | |
22597 | if (PyErr_Occurred()) SWIG_fail; | |
22598 | } | |
22599 | { | |
22600 | wxTimeSpan * resultptr; | |
22601 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
22602 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
22603 | } | |
22604 | return resultobj; | |
22605 | fail: | |
22606 | return NULL; | |
22607 | } | |
22608 | ||
22609 | ||
c32bde28 | 22610 | static PyObject *_wrap_TimeSpan___sub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22611 | PyObject *resultobj; |
22612 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22613 | wxTimeSpan *arg2 = 0 ; | |
22614 | wxTimeSpan result; | |
22615 | PyObject * obj0 = 0 ; | |
22616 | PyObject * obj1 = 0 ; | |
22617 | char *kwnames[] = { | |
22618 | (char *) "self",(char *) "other", NULL | |
22619 | }; | |
22620 | ||
22621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___sub__",kwnames,&obj0,&obj1)) goto fail; | |
22622 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22623 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22624 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22625 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22626 | SWIG_fail; | |
22627 | if (arg2 == NULL) { | |
22628 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22629 | SWIG_fail; | |
22630 | } | |
22631 | { | |
22632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22633 | result = wxTimeSpan___sub__(arg1,(wxTimeSpan const &)*arg2); | |
22634 | ||
22635 | wxPyEndAllowThreads(__tstate); | |
22636 | if (PyErr_Occurred()) SWIG_fail; | |
22637 | } | |
22638 | { | |
22639 | wxTimeSpan * resultptr; | |
22640 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
22641 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
22642 | } | |
22643 | return resultobj; | |
22644 | fail: | |
22645 | return NULL; | |
22646 | } | |
22647 | ||
22648 | ||
c32bde28 | 22649 | static PyObject *_wrap_TimeSpan___mul__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22650 | PyObject *resultobj; |
22651 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22652 | int arg2 ; | |
22653 | wxTimeSpan result; | |
22654 | PyObject * obj0 = 0 ; | |
22655 | PyObject * obj1 = 0 ; | |
22656 | char *kwnames[] = { | |
22657 | (char *) "self",(char *) "n", NULL | |
22658 | }; | |
22659 | ||
22660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___mul__",kwnames,&obj0,&obj1)) goto fail; | |
22661 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22662 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22663 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
22664 | if (PyErr_Occurred()) SWIG_fail; |
22665 | { | |
22666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22667 | result = wxTimeSpan___mul__(arg1,arg2); | |
22668 | ||
22669 | wxPyEndAllowThreads(__tstate); | |
22670 | if (PyErr_Occurred()) SWIG_fail; | |
22671 | } | |
22672 | { | |
22673 | wxTimeSpan * resultptr; | |
22674 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
22675 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
22676 | } | |
22677 | return resultobj; | |
22678 | fail: | |
22679 | return NULL; | |
22680 | } | |
22681 | ||
22682 | ||
c32bde28 | 22683 | static PyObject *_wrap_TimeSpan___rmul__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22684 | PyObject *resultobj; |
22685 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22686 | int arg2 ; | |
22687 | wxTimeSpan result; | |
22688 | PyObject * obj0 = 0 ; | |
22689 | PyObject * obj1 = 0 ; | |
22690 | char *kwnames[] = { | |
22691 | (char *) "self",(char *) "n", NULL | |
22692 | }; | |
22693 | ||
22694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___rmul__",kwnames,&obj0,&obj1)) goto fail; | |
22695 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22696 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 22697 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
22698 | if (PyErr_Occurred()) SWIG_fail; |
22699 | { | |
22700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22701 | result = wxTimeSpan___rmul__(arg1,arg2); | |
22702 | ||
22703 | wxPyEndAllowThreads(__tstate); | |
22704 | if (PyErr_Occurred()) SWIG_fail; | |
22705 | } | |
22706 | { | |
22707 | wxTimeSpan * resultptr; | |
22708 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
22709 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1); | |
22710 | } | |
22711 | return resultobj; | |
22712 | fail: | |
22713 | return NULL; | |
22714 | } | |
22715 | ||
22716 | ||
c32bde28 | 22717 | static PyObject *_wrap_TimeSpan___lt__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22718 | PyObject *resultobj; |
22719 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22720 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
22721 | bool result; | |
22722 | PyObject * obj0 = 0 ; | |
22723 | PyObject * obj1 = 0 ; | |
22724 | char *kwnames[] = { | |
22725 | (char *) "self",(char *) "other", NULL | |
22726 | }; | |
22727 | ||
22728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___lt__",kwnames,&obj0,&obj1)) goto fail; | |
22729 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22730 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22731 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22732 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22733 | { | |
22734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22735 | result = (bool)wxTimeSpan___lt__(arg1,(wxTimeSpan const *)arg2); | |
22736 | ||
22737 | wxPyEndAllowThreads(__tstate); | |
22738 | if (PyErr_Occurred()) SWIG_fail; | |
22739 | } | |
22740 | { | |
22741 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22742 | } | |
22743 | return resultobj; | |
22744 | fail: | |
22745 | return NULL; | |
22746 | } | |
22747 | ||
22748 | ||
c32bde28 | 22749 | static PyObject *_wrap_TimeSpan___le__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22750 | PyObject *resultobj; |
22751 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22752 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
22753 | bool result; | |
22754 | PyObject * obj0 = 0 ; | |
22755 | PyObject * obj1 = 0 ; | |
22756 | char *kwnames[] = { | |
22757 | (char *) "self",(char *) "other", NULL | |
22758 | }; | |
22759 | ||
22760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___le__",kwnames,&obj0,&obj1)) goto fail; | |
22761 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22762 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22763 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22764 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22765 | { | |
22766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22767 | result = (bool)wxTimeSpan___le__(arg1,(wxTimeSpan const *)arg2); | |
22768 | ||
22769 | wxPyEndAllowThreads(__tstate); | |
22770 | if (PyErr_Occurred()) SWIG_fail; | |
22771 | } | |
22772 | { | |
22773 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22774 | } | |
22775 | return resultobj; | |
22776 | fail: | |
22777 | return NULL; | |
22778 | } | |
22779 | ||
22780 | ||
c32bde28 | 22781 | static PyObject *_wrap_TimeSpan___gt__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22782 | PyObject *resultobj; |
22783 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22784 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
22785 | bool result; | |
22786 | PyObject * obj0 = 0 ; | |
22787 | PyObject * obj1 = 0 ; | |
22788 | char *kwnames[] = { | |
22789 | (char *) "self",(char *) "other", NULL | |
22790 | }; | |
22791 | ||
22792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___gt__",kwnames,&obj0,&obj1)) goto fail; | |
22793 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22794 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22795 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22796 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22797 | { | |
22798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22799 | result = (bool)wxTimeSpan___gt__(arg1,(wxTimeSpan const *)arg2); | |
22800 | ||
22801 | wxPyEndAllowThreads(__tstate); | |
22802 | if (PyErr_Occurred()) SWIG_fail; | |
22803 | } | |
22804 | { | |
22805 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22806 | } | |
22807 | return resultobj; | |
22808 | fail: | |
22809 | return NULL; | |
22810 | } | |
22811 | ||
22812 | ||
c32bde28 | 22813 | static PyObject *_wrap_TimeSpan___ge__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22814 | PyObject *resultobj; |
22815 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22816 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
22817 | bool result; | |
22818 | PyObject * obj0 = 0 ; | |
22819 | PyObject * obj1 = 0 ; | |
22820 | char *kwnames[] = { | |
22821 | (char *) "self",(char *) "other", NULL | |
22822 | }; | |
22823 | ||
22824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ge__",kwnames,&obj0,&obj1)) goto fail; | |
22825 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22826 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22827 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22829 | { | |
22830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22831 | result = (bool)wxTimeSpan___ge__(arg1,(wxTimeSpan const *)arg2); | |
22832 | ||
22833 | wxPyEndAllowThreads(__tstate); | |
22834 | if (PyErr_Occurred()) SWIG_fail; | |
22835 | } | |
22836 | { | |
22837 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22838 | } | |
22839 | return resultobj; | |
22840 | fail: | |
22841 | return NULL; | |
22842 | } | |
22843 | ||
22844 | ||
c32bde28 | 22845 | static PyObject *_wrap_TimeSpan___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22846 | PyObject *resultobj; |
22847 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22848 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
22849 | bool result; | |
22850 | PyObject * obj0 = 0 ; | |
22851 | PyObject * obj1 = 0 ; | |
22852 | char *kwnames[] = { | |
22853 | (char *) "self",(char *) "other", NULL | |
22854 | }; | |
22855 | ||
22856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
22857 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22858 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22859 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22860 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22861 | { | |
22862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22863 | result = (bool)wxTimeSpan___eq__(arg1,(wxTimeSpan const *)arg2); | |
22864 | ||
22865 | wxPyEndAllowThreads(__tstate); | |
22866 | if (PyErr_Occurred()) SWIG_fail; | |
22867 | } | |
22868 | { | |
22869 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22870 | } | |
22871 | return resultobj; | |
22872 | fail: | |
22873 | return NULL; | |
22874 | } | |
22875 | ||
22876 | ||
c32bde28 | 22877 | static PyObject *_wrap_TimeSpan___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22878 | PyObject *resultobj; |
22879 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22880 | wxTimeSpan *arg2 = (wxTimeSpan *) 0 ; | |
22881 | bool result; | |
22882 | PyObject * obj0 = 0 ; | |
22883 | PyObject * obj1 = 0 ; | |
22884 | char *kwnames[] = { | |
22885 | (char *) "self",(char *) "other", NULL | |
22886 | }; | |
22887 | ||
22888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
22889 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22890 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22891 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
22892 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22893 | { | |
22894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22895 | result = (bool)wxTimeSpan___ne__(arg1,(wxTimeSpan const *)arg2); | |
22896 | ||
22897 | wxPyEndAllowThreads(__tstate); | |
22898 | if (PyErr_Occurred()) SWIG_fail; | |
22899 | } | |
22900 | { | |
22901 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22902 | } | |
22903 | return resultobj; | |
22904 | fail: | |
22905 | return NULL; | |
22906 | } | |
22907 | ||
22908 | ||
c32bde28 | 22909 | static PyObject *_wrap_TimeSpan_IsNull(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22910 | PyObject *resultobj; |
22911 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22912 | bool result; | |
22913 | PyObject * obj0 = 0 ; | |
22914 | char *kwnames[] = { | |
22915 | (char *) "self", NULL | |
22916 | }; | |
22917 | ||
22918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNull",kwnames,&obj0)) goto fail; | |
22919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22921 | { | |
22922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22923 | result = (bool)((wxTimeSpan const *)arg1)->IsNull(); | |
22924 | ||
22925 | wxPyEndAllowThreads(__tstate); | |
22926 | if (PyErr_Occurred()) SWIG_fail; | |
22927 | } | |
22928 | { | |
22929 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22930 | } | |
22931 | return resultobj; | |
22932 | fail: | |
22933 | return NULL; | |
22934 | } | |
22935 | ||
22936 | ||
c32bde28 | 22937 | static PyObject *_wrap_TimeSpan_IsPositive(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22938 | PyObject *resultobj; |
22939 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22940 | bool result; | |
22941 | PyObject * obj0 = 0 ; | |
22942 | char *kwnames[] = { | |
22943 | (char *) "self", NULL | |
22944 | }; | |
22945 | ||
22946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsPositive",kwnames,&obj0)) goto fail; | |
22947 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22948 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22949 | { | |
22950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22951 | result = (bool)((wxTimeSpan const *)arg1)->IsPositive(); | |
22952 | ||
22953 | wxPyEndAllowThreads(__tstate); | |
22954 | if (PyErr_Occurred()) SWIG_fail; | |
22955 | } | |
22956 | { | |
22957 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22958 | } | |
22959 | return resultobj; | |
22960 | fail: | |
22961 | return NULL; | |
22962 | } | |
22963 | ||
22964 | ||
c32bde28 | 22965 | static PyObject *_wrap_TimeSpan_IsNegative(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22966 | PyObject *resultobj; |
22967 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22968 | bool result; | |
22969 | PyObject * obj0 = 0 ; | |
22970 | char *kwnames[] = { | |
22971 | (char *) "self", NULL | |
22972 | }; | |
22973 | ||
22974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNegative",kwnames,&obj0)) goto fail; | |
22975 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
22976 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22977 | { | |
22978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22979 | result = (bool)((wxTimeSpan const *)arg1)->IsNegative(); | |
22980 | ||
22981 | wxPyEndAllowThreads(__tstate); | |
22982 | if (PyErr_Occurred()) SWIG_fail; | |
22983 | } | |
22984 | { | |
22985 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22986 | } | |
22987 | return resultobj; | |
22988 | fail: | |
22989 | return NULL; | |
22990 | } | |
22991 | ||
22992 | ||
c32bde28 | 22993 | static PyObject *_wrap_TimeSpan_IsEqualTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22994 | PyObject *resultobj; |
22995 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
22996 | wxTimeSpan *arg2 = 0 ; | |
22997 | bool result; | |
22998 | PyObject * obj0 = 0 ; | |
22999 | PyObject * obj1 = 0 ; | |
23000 | char *kwnames[] = { | |
23001 | (char *) "self",(char *) "ts", NULL | |
23002 | }; | |
23003 | ||
23004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsEqualTo",kwnames,&obj0,&obj1)) goto fail; | |
23005 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
23006 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23007 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
23008 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23009 | SWIG_fail; | |
23010 | if (arg2 == NULL) { | |
23011 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23012 | SWIG_fail; | |
23013 | } | |
23014 | { | |
23015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23016 | result = (bool)((wxTimeSpan const *)arg1)->IsEqualTo((wxTimeSpan const &)*arg2); | |
23017 | ||
23018 | wxPyEndAllowThreads(__tstate); | |
23019 | if (PyErr_Occurred()) SWIG_fail; | |
23020 | } | |
23021 | { | |
23022 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23023 | } | |
23024 | return resultobj; | |
23025 | fail: | |
23026 | return NULL; | |
23027 | } | |
23028 | ||
23029 | ||
c32bde28 | 23030 | static PyObject *_wrap_TimeSpan_IsLongerThan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23031 | PyObject *resultobj; |
23032 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
23033 | wxTimeSpan *arg2 = 0 ; | |
23034 | bool result; | |
23035 | PyObject * obj0 = 0 ; | |
23036 | PyObject * obj1 = 0 ; | |
23037 | char *kwnames[] = { | |
23038 | (char *) "self",(char *) "ts", NULL | |
23039 | }; | |
23040 | ||
23041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsLongerThan",kwnames,&obj0,&obj1)) goto fail; | |
23042 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
23043 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23044 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
23045 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23046 | SWIG_fail; | |
23047 | if (arg2 == NULL) { | |
23048 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23049 | SWIG_fail; | |
23050 | } | |
23051 | { | |
23052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23053 | result = (bool)((wxTimeSpan const *)arg1)->IsLongerThan((wxTimeSpan const &)*arg2); | |
23054 | ||
23055 | wxPyEndAllowThreads(__tstate); | |
23056 | if (PyErr_Occurred()) SWIG_fail; | |
23057 | } | |
23058 | { | |
23059 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23060 | } | |
23061 | return resultobj; | |
23062 | fail: | |
23063 | return NULL; | |
23064 | } | |
23065 | ||
23066 | ||
c32bde28 | 23067 | static PyObject *_wrap_TimeSpan_IsShorterThan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23068 | PyObject *resultobj; |
23069 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
23070 | wxTimeSpan *arg2 = 0 ; | |
23071 | bool result; | |
23072 | PyObject * obj0 = 0 ; | |
23073 | PyObject * obj1 = 0 ; | |
23074 | char *kwnames[] = { | |
23075 | (char *) "self",(char *) "t", NULL | |
23076 | }; | |
23077 | ||
23078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsShorterThan",kwnames,&obj0,&obj1)) goto fail; | |
23079 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
23080 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23081 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan, | |
23082 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23083 | SWIG_fail; | |
23084 | if (arg2 == NULL) { | |
23085 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23086 | SWIG_fail; | |
23087 | } | |
23088 | { | |
23089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23090 | result = (bool)((wxTimeSpan const *)arg1)->IsShorterThan((wxTimeSpan const &)*arg2); | |
23091 | ||
23092 | wxPyEndAllowThreads(__tstate); | |
23093 | if (PyErr_Occurred()) SWIG_fail; | |
23094 | } | |
23095 | { | |
23096 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23097 | } | |
23098 | return resultobj; | |
23099 | fail: | |
23100 | return NULL; | |
23101 | } | |
23102 | ||
23103 | ||
c32bde28 | 23104 | static PyObject *_wrap_TimeSpan_GetWeeks(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23105 | PyObject *resultobj; |
23106 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
23107 | int result; | |
23108 | PyObject * obj0 = 0 ; | |
23109 | char *kwnames[] = { | |
23110 | (char *) "self", NULL | |
23111 | }; | |
23112 | ||
23113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetWeeks",kwnames,&obj0)) goto fail; | |
23114 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
23115 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23116 | { | |
23117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23118 | result = (int)((wxTimeSpan const *)arg1)->GetWeeks(); | |
23119 | ||
23120 | wxPyEndAllowThreads(__tstate); | |
23121 | if (PyErr_Occurred()) SWIG_fail; | |
23122 | } | |
c32bde28 | 23123 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
23124 | return resultobj; |
23125 | fail: | |
23126 | return NULL; | |
23127 | } | |
23128 | ||
23129 | ||
c32bde28 | 23130 | static PyObject *_wrap_TimeSpan_GetDays(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23131 | PyObject *resultobj; |
23132 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
23133 | int result; | |
23134 | PyObject * obj0 = 0 ; | |
23135 | char *kwnames[] = { | |
23136 | (char *) "self", NULL | |
23137 | }; | |
23138 | ||
23139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetDays",kwnames,&obj0)) goto fail; | |
23140 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
23141 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23142 | { | |
23143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23144 | result = (int)((wxTimeSpan const *)arg1)->GetDays(); | |
23145 | ||
23146 | wxPyEndAllowThreads(__tstate); | |
23147 | if (PyErr_Occurred()) SWIG_fail; | |
23148 | } | |
c32bde28 | 23149 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
23150 | return resultobj; |
23151 | fail: | |
23152 | return NULL; | |
23153 | } | |
23154 | ||
23155 | ||
c32bde28 | 23156 | static PyObject *_wrap_TimeSpan_GetHours(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23157 | PyObject *resultobj; |
23158 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
23159 | int result; | |
23160 | PyObject * obj0 = 0 ; | |
23161 | char *kwnames[] = { | |
23162 | (char *) "self", NULL | |
23163 | }; | |
23164 | ||
23165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetHours",kwnames,&obj0)) goto fail; | |
23166 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
23167 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23168 | { | |
23169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23170 | result = (int)((wxTimeSpan const *)arg1)->GetHours(); | |
23171 | ||
23172 | wxPyEndAllowThreads(__tstate); | |
23173 | if (PyErr_Occurred()) SWIG_fail; | |
23174 | } | |
c32bde28 | 23175 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
23176 | return resultobj; |
23177 | fail: | |
23178 | return NULL; | |
23179 | } | |
23180 | ||
23181 | ||
c32bde28 | 23182 | static PyObject *_wrap_TimeSpan_GetMinutes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23183 | PyObject *resultobj; |
23184 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
23185 | int result; | |
23186 | PyObject * obj0 = 0 ; | |
23187 | char *kwnames[] = { | |
23188 | (char *) "self", NULL | |
23189 | }; | |
23190 | ||
23191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMinutes",kwnames,&obj0)) goto fail; | |
23192 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
23193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23194 | { | |
23195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23196 | result = (int)((wxTimeSpan const *)arg1)->GetMinutes(); | |
23197 | ||
23198 | wxPyEndAllowThreads(__tstate); | |
23199 | if (PyErr_Occurred()) SWIG_fail; | |
23200 | } | |
c32bde28 | 23201 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
23202 | return resultobj; |
23203 | fail: | |
23204 | return NULL; | |
23205 | } | |
23206 | ||
23207 | ||
c32bde28 | 23208 | static PyObject *_wrap_TimeSpan_GetSeconds(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23209 | PyObject *resultobj; |
23210 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
23211 | wxLongLong result; | |
23212 | PyObject * obj0 = 0 ; | |
23213 | char *kwnames[] = { | |
23214 | (char *) "self", NULL | |
23215 | }; | |
23216 | ||
23217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetSeconds",kwnames,&obj0)) goto fail; | |
23218 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
23219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23220 | { | |
23221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23222 | result = ((wxTimeSpan const *)arg1)->GetSeconds(); | |
23223 | ||
23224 | wxPyEndAllowThreads(__tstate); | |
23225 | if (PyErr_Occurred()) SWIG_fail; | |
23226 | } | |
23227 | { | |
23228 | PyObject *hi, *lo, *shifter, *shifted; | |
23229 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
23230 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
23231 | shifter = PyLong_FromLong(32); | |
23232 | shifted = PyNumber_Lshift(hi, shifter); | |
23233 | resultobj = PyNumber_Or(shifted, lo); | |
23234 | Py_DECREF(hi); | |
23235 | Py_DECREF(lo); | |
23236 | Py_DECREF(shifter); | |
23237 | Py_DECREF(shifted); | |
23238 | } | |
23239 | return resultobj; | |
23240 | fail: | |
23241 | return NULL; | |
23242 | } | |
23243 | ||
23244 | ||
c32bde28 | 23245 | static PyObject *_wrap_TimeSpan_GetMilliseconds(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23246 | PyObject *resultobj; |
23247 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
23248 | wxLongLong result; | |
23249 | PyObject * obj0 = 0 ; | |
23250 | char *kwnames[] = { | |
23251 | (char *) "self", NULL | |
23252 | }; | |
23253 | ||
23254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMilliseconds",kwnames,&obj0)) goto fail; | |
23255 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
23256 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23257 | { | |
23258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23259 | result = ((wxTimeSpan const *)arg1)->GetMilliseconds(); | |
23260 | ||
23261 | wxPyEndAllowThreads(__tstate); | |
23262 | if (PyErr_Occurred()) SWIG_fail; | |
23263 | } | |
23264 | { | |
23265 | PyObject *hi, *lo, *shifter, *shifted; | |
23266 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
23267 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
23268 | shifter = PyLong_FromLong(32); | |
23269 | shifted = PyNumber_Lshift(hi, shifter); | |
23270 | resultobj = PyNumber_Or(shifted, lo); | |
23271 | Py_DECREF(hi); | |
23272 | Py_DECREF(lo); | |
23273 | Py_DECREF(shifter); | |
23274 | Py_DECREF(shifted); | |
23275 | } | |
23276 | return resultobj; | |
23277 | fail: | |
23278 | return NULL; | |
23279 | } | |
23280 | ||
23281 | ||
c32bde28 | 23282 | static PyObject *_wrap_TimeSpan_Format(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23283 | PyObject *resultobj; |
23284 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
23285 | wxString const &arg2_defvalue = wxPyTimeSpanFormatStr ; | |
23286 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
23287 | wxString result; | |
ae8162c8 | 23288 | bool temp2 = false ; |
d55e5bfc RD |
23289 | PyObject * obj0 = 0 ; |
23290 | PyObject * obj1 = 0 ; | |
23291 | char *kwnames[] = { | |
23292 | (char *) "self",(char *) "format", NULL | |
23293 | }; | |
23294 | ||
23295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TimeSpan_Format",kwnames,&obj0,&obj1)) goto fail; | |
23296 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan, | |
23297 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23298 | if (obj1) { | |
23299 | { | |
23300 | arg2 = wxString_in_helper(obj1); | |
23301 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 23302 | temp2 = true; |
d55e5bfc RD |
23303 | } |
23304 | } | |
23305 | { | |
23306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23307 | result = ((wxTimeSpan const *)arg1)->Format((wxString const &)*arg2); | |
23308 | ||
23309 | wxPyEndAllowThreads(__tstate); | |
23310 | if (PyErr_Occurred()) SWIG_fail; | |
23311 | } | |
23312 | { | |
23313 | #if wxUSE_UNICODE | |
23314 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
23315 | #else | |
23316 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
23317 | #endif | |
23318 | } | |
23319 | { | |
23320 | if (temp2) | |
23321 | delete arg2; | |
23322 | } | |
23323 | return resultobj; | |
23324 | fail: | |
23325 | { | |
23326 | if (temp2) | |
23327 | delete arg2; | |
23328 | } | |
23329 | return NULL; | |
23330 | } | |
23331 | ||
23332 | ||
c32bde28 | 23333 | static PyObject * TimeSpan_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
23334 | PyObject *obj; |
23335 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23336 | SWIG_TypeClientData(SWIGTYPE_p_wxTimeSpan, obj); | |
23337 | Py_INCREF(obj); | |
23338 | return Py_BuildValue((char *)""); | |
23339 | } | |
c32bde28 | 23340 | static PyObject *_wrap_new_DateSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23341 | PyObject *resultobj; |
23342 | int arg1 = (int) 0 ; | |
23343 | int arg2 = (int) 0 ; | |
23344 | int arg3 = (int) 0 ; | |
23345 | int arg4 = (int) 0 ; | |
23346 | wxDateSpan *result; | |
23347 | PyObject * obj0 = 0 ; | |
23348 | PyObject * obj1 = 0 ; | |
23349 | PyObject * obj2 = 0 ; | |
23350 | PyObject * obj3 = 0 ; | |
23351 | char *kwnames[] = { | |
23352 | (char *) "years",(char *) "months",(char *) "weeks",(char *) "days", NULL | |
23353 | }; | |
23354 | ||
23355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_DateSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
23356 | if (obj0) { | |
c32bde28 | 23357 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
23358 | if (PyErr_Occurred()) SWIG_fail; |
23359 | } | |
23360 | if (obj1) { | |
c32bde28 | 23361 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
23362 | if (PyErr_Occurred()) SWIG_fail; |
23363 | } | |
23364 | if (obj2) { | |
c32bde28 | 23365 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
23366 | if (PyErr_Occurred()) SWIG_fail; |
23367 | } | |
23368 | if (obj3) { | |
c32bde28 | 23369 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
23370 | if (PyErr_Occurred()) SWIG_fail; |
23371 | } | |
23372 | { | |
23373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23374 | result = (wxDateSpan *)new wxDateSpan(arg1,arg2,arg3,arg4); | |
23375 | ||
23376 | wxPyEndAllowThreads(__tstate); | |
23377 | if (PyErr_Occurred()) SWIG_fail; | |
23378 | } | |
23379 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1); | |
23380 | return resultobj; | |
23381 | fail: | |
23382 | return NULL; | |
23383 | } | |
23384 | ||
23385 | ||
c32bde28 | 23386 | static PyObject *_wrap_delete_DateSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23387 | PyObject *resultobj; |
23388 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23389 | PyObject * obj0 = 0 ; | |
23390 | char *kwnames[] = { | |
23391 | (char *) "self", NULL | |
23392 | }; | |
23393 | ||
23394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateSpan",kwnames,&obj0)) goto fail; | |
23395 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23396 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23397 | { | |
23398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23399 | delete arg1; | |
23400 | ||
23401 | wxPyEndAllowThreads(__tstate); | |
23402 | if (PyErr_Occurred()) SWIG_fail; | |
23403 | } | |
23404 | Py_INCREF(Py_None); resultobj = Py_None; | |
23405 | return resultobj; | |
23406 | fail: | |
23407 | return NULL; | |
23408 | } | |
23409 | ||
23410 | ||
c32bde28 | 23411 | static PyObject *_wrap_DateSpan_Days(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23412 | PyObject *resultobj; |
23413 | int arg1 ; | |
23414 | wxDateSpan result; | |
23415 | PyObject * obj0 = 0 ; | |
23416 | char *kwnames[] = { | |
23417 | (char *) "days", NULL | |
23418 | }; | |
23419 | ||
23420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Days",kwnames,&obj0)) goto fail; | |
c32bde28 | 23421 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
23422 | if (PyErr_Occurred()) SWIG_fail; |
23423 | { | |
23424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23425 | result = wxDateSpan::Days(arg1); | |
23426 | ||
23427 | wxPyEndAllowThreads(__tstate); | |
23428 | if (PyErr_Occurred()) SWIG_fail; | |
23429 | } | |
23430 | { | |
23431 | wxDateSpan * resultptr; | |
23432 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23433 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23434 | } | |
23435 | return resultobj; | |
23436 | fail: | |
23437 | return NULL; | |
23438 | } | |
23439 | ||
23440 | ||
c32bde28 | 23441 | static PyObject *_wrap_DateSpan_Day(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23442 | PyObject *resultobj; |
23443 | wxDateSpan result; | |
23444 | char *kwnames[] = { | |
23445 | NULL | |
23446 | }; | |
23447 | ||
23448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Day",kwnames)) goto fail; | |
23449 | { | |
23450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23451 | result = wxDateSpan::Day(); | |
23452 | ||
23453 | wxPyEndAllowThreads(__tstate); | |
23454 | if (PyErr_Occurred()) SWIG_fail; | |
23455 | } | |
23456 | { | |
23457 | wxDateSpan * resultptr; | |
23458 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23459 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23460 | } | |
23461 | return resultobj; | |
23462 | fail: | |
23463 | return NULL; | |
23464 | } | |
23465 | ||
23466 | ||
c32bde28 | 23467 | static PyObject *_wrap_DateSpan_Weeks(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23468 | PyObject *resultobj; |
23469 | int arg1 ; | |
23470 | wxDateSpan result; | |
23471 | PyObject * obj0 = 0 ; | |
23472 | char *kwnames[] = { | |
23473 | (char *) "weeks", NULL | |
23474 | }; | |
23475 | ||
23476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Weeks",kwnames,&obj0)) goto fail; | |
c32bde28 | 23477 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
23478 | if (PyErr_Occurred()) SWIG_fail; |
23479 | { | |
23480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23481 | result = wxDateSpan::Weeks(arg1); | |
23482 | ||
23483 | wxPyEndAllowThreads(__tstate); | |
23484 | if (PyErr_Occurred()) SWIG_fail; | |
23485 | } | |
23486 | { | |
23487 | wxDateSpan * resultptr; | |
23488 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23489 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23490 | } | |
23491 | return resultobj; | |
23492 | fail: | |
23493 | return NULL; | |
23494 | } | |
23495 | ||
23496 | ||
c32bde28 | 23497 | static PyObject *_wrap_DateSpan_Week(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23498 | PyObject *resultobj; |
23499 | wxDateSpan result; | |
23500 | char *kwnames[] = { | |
23501 | NULL | |
23502 | }; | |
23503 | ||
23504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Week",kwnames)) goto fail; | |
23505 | { | |
23506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23507 | result = wxDateSpan::Week(); | |
23508 | ||
23509 | wxPyEndAllowThreads(__tstate); | |
23510 | if (PyErr_Occurred()) SWIG_fail; | |
23511 | } | |
23512 | { | |
23513 | wxDateSpan * resultptr; | |
23514 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23515 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23516 | } | |
23517 | return resultobj; | |
23518 | fail: | |
23519 | return NULL; | |
23520 | } | |
23521 | ||
23522 | ||
c32bde28 | 23523 | static PyObject *_wrap_DateSpan_Months(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23524 | PyObject *resultobj; |
23525 | int arg1 ; | |
23526 | wxDateSpan result; | |
23527 | PyObject * obj0 = 0 ; | |
23528 | char *kwnames[] = { | |
23529 | (char *) "mon", NULL | |
23530 | }; | |
23531 | ||
23532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Months",kwnames,&obj0)) goto fail; | |
c32bde28 | 23533 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
23534 | if (PyErr_Occurred()) SWIG_fail; |
23535 | { | |
23536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23537 | result = wxDateSpan::Months(arg1); | |
23538 | ||
23539 | wxPyEndAllowThreads(__tstate); | |
23540 | if (PyErr_Occurred()) SWIG_fail; | |
23541 | } | |
23542 | { | |
23543 | wxDateSpan * resultptr; | |
23544 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23545 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23546 | } | |
23547 | return resultobj; | |
23548 | fail: | |
23549 | return NULL; | |
23550 | } | |
23551 | ||
23552 | ||
c32bde28 | 23553 | static PyObject *_wrap_DateSpan_Month(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23554 | PyObject *resultobj; |
23555 | wxDateSpan result; | |
23556 | char *kwnames[] = { | |
23557 | NULL | |
23558 | }; | |
23559 | ||
23560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Month",kwnames)) goto fail; | |
23561 | { | |
23562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23563 | result = wxDateSpan::Month(); | |
23564 | ||
23565 | wxPyEndAllowThreads(__tstate); | |
23566 | if (PyErr_Occurred()) SWIG_fail; | |
23567 | } | |
23568 | { | |
23569 | wxDateSpan * resultptr; | |
23570 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23571 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23572 | } | |
23573 | return resultobj; | |
23574 | fail: | |
23575 | return NULL; | |
23576 | } | |
23577 | ||
23578 | ||
c32bde28 | 23579 | static PyObject *_wrap_DateSpan_Years(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23580 | PyObject *resultobj; |
23581 | int arg1 ; | |
23582 | wxDateSpan result; | |
23583 | PyObject * obj0 = 0 ; | |
23584 | char *kwnames[] = { | |
23585 | (char *) "years", NULL | |
23586 | }; | |
23587 | ||
23588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Years",kwnames,&obj0)) goto fail; | |
c32bde28 | 23589 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
23590 | if (PyErr_Occurred()) SWIG_fail; |
23591 | { | |
23592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23593 | result = wxDateSpan::Years(arg1); | |
23594 | ||
23595 | wxPyEndAllowThreads(__tstate); | |
23596 | if (PyErr_Occurred()) SWIG_fail; | |
23597 | } | |
23598 | { | |
23599 | wxDateSpan * resultptr; | |
23600 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23601 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23602 | } | |
23603 | return resultobj; | |
23604 | fail: | |
23605 | return NULL; | |
23606 | } | |
23607 | ||
23608 | ||
c32bde28 | 23609 | static PyObject *_wrap_DateSpan_Year(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23610 | PyObject *resultobj; |
23611 | wxDateSpan result; | |
23612 | char *kwnames[] = { | |
23613 | NULL | |
23614 | }; | |
23615 | ||
23616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Year",kwnames)) goto fail; | |
23617 | { | |
23618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23619 | result = wxDateSpan::Year(); | |
23620 | ||
23621 | wxPyEndAllowThreads(__tstate); | |
23622 | if (PyErr_Occurred()) SWIG_fail; | |
23623 | } | |
23624 | { | |
23625 | wxDateSpan * resultptr; | |
23626 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
23627 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
23628 | } | |
23629 | return resultobj; | |
23630 | fail: | |
23631 | return NULL; | |
23632 | } | |
23633 | ||
23634 | ||
c32bde28 | 23635 | static PyObject *_wrap_DateSpan_SetYears(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23636 | PyObject *resultobj; |
23637 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23638 | int arg2 ; | |
23639 | wxDateSpan *result; | |
23640 | PyObject * obj0 = 0 ; | |
23641 | PyObject * obj1 = 0 ; | |
23642 | char *kwnames[] = { | |
23643 | (char *) "self",(char *) "n", NULL | |
23644 | }; | |
23645 | ||
23646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetYears",kwnames,&obj0,&obj1)) goto fail; | |
23647 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23648 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23649 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
23650 | if (PyErr_Occurred()) SWIG_fail; |
23651 | { | |
23652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23653 | { | |
23654 | wxDateSpan &_result_ref = (arg1)->SetYears(arg2); | |
23655 | result = (wxDateSpan *) &_result_ref; | |
23656 | } | |
23657 | ||
23658 | wxPyEndAllowThreads(__tstate); | |
23659 | if (PyErr_Occurred()) SWIG_fail; | |
23660 | } | |
23661 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23662 | return resultobj; | |
23663 | fail: | |
23664 | return NULL; | |
23665 | } | |
23666 | ||
23667 | ||
c32bde28 | 23668 | static PyObject *_wrap_DateSpan_SetMonths(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23669 | PyObject *resultobj; |
23670 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23671 | int arg2 ; | |
23672 | wxDateSpan *result; | |
23673 | PyObject * obj0 = 0 ; | |
23674 | PyObject * obj1 = 0 ; | |
23675 | char *kwnames[] = { | |
23676 | (char *) "self",(char *) "n", NULL | |
23677 | }; | |
23678 | ||
23679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetMonths",kwnames,&obj0,&obj1)) goto fail; | |
23680 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23681 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23682 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
23683 | if (PyErr_Occurred()) SWIG_fail; |
23684 | { | |
23685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23686 | { | |
23687 | wxDateSpan &_result_ref = (arg1)->SetMonths(arg2); | |
23688 | result = (wxDateSpan *) &_result_ref; | |
23689 | } | |
23690 | ||
23691 | wxPyEndAllowThreads(__tstate); | |
23692 | if (PyErr_Occurred()) SWIG_fail; | |
23693 | } | |
23694 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23695 | return resultobj; | |
23696 | fail: | |
23697 | return NULL; | |
23698 | } | |
23699 | ||
23700 | ||
c32bde28 | 23701 | static PyObject *_wrap_DateSpan_SetWeeks(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23702 | PyObject *resultobj; |
23703 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23704 | int arg2 ; | |
23705 | wxDateSpan *result; | |
23706 | PyObject * obj0 = 0 ; | |
23707 | PyObject * obj1 = 0 ; | |
23708 | char *kwnames[] = { | |
23709 | (char *) "self",(char *) "n", NULL | |
23710 | }; | |
23711 | ||
23712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetWeeks",kwnames,&obj0,&obj1)) goto fail; | |
23713 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23714 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23715 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
23716 | if (PyErr_Occurred()) SWIG_fail; |
23717 | { | |
23718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23719 | { | |
23720 | wxDateSpan &_result_ref = (arg1)->SetWeeks(arg2); | |
23721 | result = (wxDateSpan *) &_result_ref; | |
23722 | } | |
23723 | ||
23724 | wxPyEndAllowThreads(__tstate); | |
23725 | if (PyErr_Occurred()) SWIG_fail; | |
23726 | } | |
23727 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23728 | return resultobj; | |
23729 | fail: | |
23730 | return NULL; | |
23731 | } | |
23732 | ||
23733 | ||
c32bde28 | 23734 | static PyObject *_wrap_DateSpan_SetDays(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23735 | PyObject *resultobj; |
23736 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23737 | int arg2 ; | |
23738 | wxDateSpan *result; | |
23739 | PyObject * obj0 = 0 ; | |
23740 | PyObject * obj1 = 0 ; | |
23741 | char *kwnames[] = { | |
23742 | (char *) "self",(char *) "n", NULL | |
23743 | }; | |
23744 | ||
23745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetDays",kwnames,&obj0,&obj1)) goto fail; | |
23746 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23747 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 23748 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
23749 | if (PyErr_Occurred()) SWIG_fail; |
23750 | { | |
23751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23752 | { | |
23753 | wxDateSpan &_result_ref = (arg1)->SetDays(arg2); | |
23754 | result = (wxDateSpan *) &_result_ref; | |
23755 | } | |
23756 | ||
23757 | wxPyEndAllowThreads(__tstate); | |
23758 | if (PyErr_Occurred()) SWIG_fail; | |
23759 | } | |
23760 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23761 | return resultobj; | |
23762 | fail: | |
23763 | return NULL; | |
23764 | } | |
23765 | ||
23766 | ||
c32bde28 | 23767 | static PyObject *_wrap_DateSpan_GetYears(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23768 | PyObject *resultobj; |
23769 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23770 | int result; | |
23771 | PyObject * obj0 = 0 ; | |
23772 | char *kwnames[] = { | |
23773 | (char *) "self", NULL | |
23774 | }; | |
23775 | ||
23776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetYears",kwnames,&obj0)) goto fail; | |
23777 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23778 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23779 | { | |
23780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23781 | result = (int)((wxDateSpan const *)arg1)->GetYears(); | |
23782 | ||
23783 | wxPyEndAllowThreads(__tstate); | |
23784 | if (PyErr_Occurred()) SWIG_fail; | |
23785 | } | |
c32bde28 | 23786 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
23787 | return resultobj; |
23788 | fail: | |
23789 | return NULL; | |
23790 | } | |
23791 | ||
23792 | ||
c32bde28 | 23793 | static PyObject *_wrap_DateSpan_GetMonths(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23794 | PyObject *resultobj; |
23795 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23796 | int result; | |
23797 | PyObject * obj0 = 0 ; | |
23798 | char *kwnames[] = { | |
23799 | (char *) "self", NULL | |
23800 | }; | |
23801 | ||
23802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetMonths",kwnames,&obj0)) goto fail; | |
23803 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23804 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23805 | { | |
23806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23807 | result = (int)((wxDateSpan const *)arg1)->GetMonths(); | |
23808 | ||
23809 | wxPyEndAllowThreads(__tstate); | |
23810 | if (PyErr_Occurred()) SWIG_fail; | |
23811 | } | |
c32bde28 | 23812 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
23813 | return resultobj; |
23814 | fail: | |
23815 | return NULL; | |
23816 | } | |
23817 | ||
23818 | ||
c32bde28 | 23819 | static PyObject *_wrap_DateSpan_GetWeeks(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23820 | PyObject *resultobj; |
23821 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23822 | int result; | |
23823 | PyObject * obj0 = 0 ; | |
23824 | char *kwnames[] = { | |
23825 | (char *) "self", NULL | |
23826 | }; | |
23827 | ||
23828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetWeeks",kwnames,&obj0)) goto fail; | |
23829 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23830 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23831 | { | |
23832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23833 | result = (int)((wxDateSpan const *)arg1)->GetWeeks(); | |
23834 | ||
23835 | wxPyEndAllowThreads(__tstate); | |
23836 | if (PyErr_Occurred()) SWIG_fail; | |
23837 | } | |
c32bde28 | 23838 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
23839 | return resultobj; |
23840 | fail: | |
23841 | return NULL; | |
23842 | } | |
23843 | ||
23844 | ||
c32bde28 | 23845 | static PyObject *_wrap_DateSpan_GetDays(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23846 | PyObject *resultobj; |
23847 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23848 | int result; | |
23849 | PyObject * obj0 = 0 ; | |
23850 | char *kwnames[] = { | |
23851 | (char *) "self", NULL | |
23852 | }; | |
23853 | ||
23854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetDays",kwnames,&obj0)) goto fail; | |
23855 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23856 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23857 | { | |
23858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23859 | result = (int)((wxDateSpan const *)arg1)->GetDays(); | |
23860 | ||
23861 | wxPyEndAllowThreads(__tstate); | |
23862 | if (PyErr_Occurred()) SWIG_fail; | |
23863 | } | |
c32bde28 | 23864 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
23865 | return resultobj; |
23866 | fail: | |
23867 | return NULL; | |
23868 | } | |
23869 | ||
23870 | ||
c32bde28 | 23871 | static PyObject *_wrap_DateSpan_GetTotalDays(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23872 | PyObject *resultobj; |
23873 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23874 | int result; | |
23875 | PyObject * obj0 = 0 ; | |
23876 | char *kwnames[] = { | |
23877 | (char *) "self", NULL | |
23878 | }; | |
23879 | ||
23880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetTotalDays",kwnames,&obj0)) goto fail; | |
23881 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23882 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23883 | { | |
23884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23885 | result = (int)((wxDateSpan const *)arg1)->GetTotalDays(); | |
23886 | ||
23887 | wxPyEndAllowThreads(__tstate); | |
23888 | if (PyErr_Occurred()) SWIG_fail; | |
23889 | } | |
c32bde28 | 23890 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
23891 | return resultobj; |
23892 | fail: | |
23893 | return NULL; | |
23894 | } | |
23895 | ||
23896 | ||
c32bde28 | 23897 | static PyObject *_wrap_DateSpan_Add(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23898 | PyObject *resultobj; |
23899 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23900 | wxDateSpan *arg2 = 0 ; | |
23901 | wxDateSpan *result; | |
23902 | PyObject * obj0 = 0 ; | |
23903 | PyObject * obj1 = 0 ; | |
23904 | char *kwnames[] = { | |
23905 | (char *) "self",(char *) "other", NULL | |
23906 | }; | |
23907 | ||
23908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Add",kwnames,&obj0,&obj1)) goto fail; | |
23909 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23910 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23911 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23912 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23913 | SWIG_fail; | |
23914 | if (arg2 == NULL) { | |
23915 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23916 | SWIG_fail; | |
23917 | } | |
23918 | { | |
23919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23920 | { | |
23921 | wxDateSpan &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2); | |
23922 | result = (wxDateSpan *) &_result_ref; | |
23923 | } | |
23924 | ||
23925 | wxPyEndAllowThreads(__tstate); | |
23926 | if (PyErr_Occurred()) SWIG_fail; | |
23927 | } | |
23928 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23929 | return resultobj; | |
23930 | fail: | |
23931 | return NULL; | |
23932 | } | |
23933 | ||
23934 | ||
c32bde28 | 23935 | static PyObject *_wrap_DateSpan_Subtract(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23936 | PyObject *resultobj; |
23937 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23938 | wxDateSpan *arg2 = 0 ; | |
23939 | wxDateSpan *result; | |
23940 | PyObject * obj0 = 0 ; | |
23941 | PyObject * obj1 = 0 ; | |
23942 | char *kwnames[] = { | |
23943 | (char *) "self",(char *) "other", NULL | |
23944 | }; | |
23945 | ||
23946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
23947 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23948 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23949 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
23950 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23951 | SWIG_fail; | |
23952 | if (arg2 == NULL) { | |
23953 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23954 | SWIG_fail; | |
23955 | } | |
23956 | { | |
23957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23958 | { | |
23959 | wxDateSpan &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2); | |
23960 | result = (wxDateSpan *) &_result_ref; | |
23961 | } | |
23962 | ||
23963 | wxPyEndAllowThreads(__tstate); | |
23964 | if (PyErr_Occurred()) SWIG_fail; | |
23965 | } | |
23966 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23967 | return resultobj; | |
23968 | fail: | |
23969 | return NULL; | |
23970 | } | |
23971 | ||
23972 | ||
c32bde28 | 23973 | static PyObject *_wrap_DateSpan_Neg(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23974 | PyObject *resultobj; |
23975 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
23976 | wxDateSpan *result; | |
23977 | PyObject * obj0 = 0 ; | |
23978 | char *kwnames[] = { | |
23979 | (char *) "self", NULL | |
23980 | }; | |
23981 | ||
23982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Neg",kwnames,&obj0)) goto fail; | |
23983 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
23984 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23985 | { | |
23986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23987 | { | |
23988 | wxDateSpan &_result_ref = (arg1)->Neg(); | |
23989 | result = (wxDateSpan *) &_result_ref; | |
23990 | } | |
23991 | ||
23992 | wxPyEndAllowThreads(__tstate); | |
23993 | if (PyErr_Occurred()) SWIG_fail; | |
23994 | } | |
23995 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
23996 | return resultobj; | |
23997 | fail: | |
23998 | return NULL; | |
23999 | } | |
24000 | ||
24001 | ||
c32bde28 | 24002 | static PyObject *_wrap_DateSpan_Multiply(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24003 | PyObject *resultobj; |
24004 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
24005 | int arg2 ; | |
24006 | wxDateSpan *result; | |
24007 | PyObject * obj0 = 0 ; | |
24008 | PyObject * obj1 = 0 ; | |
24009 | char *kwnames[] = { | |
24010 | (char *) "self",(char *) "factor", NULL | |
24011 | }; | |
24012 | ||
24013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Multiply",kwnames,&obj0,&obj1)) goto fail; | |
24014 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
24015 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24016 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
24017 | if (PyErr_Occurred()) SWIG_fail; |
24018 | { | |
24019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24020 | { | |
24021 | wxDateSpan &_result_ref = (arg1)->Multiply(arg2); | |
24022 | result = (wxDateSpan *) &_result_ref; | |
24023 | } | |
24024 | ||
24025 | wxPyEndAllowThreads(__tstate); | |
24026 | if (PyErr_Occurred()) SWIG_fail; | |
24027 | } | |
24028 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
24029 | return resultobj; | |
24030 | fail: | |
24031 | return NULL; | |
24032 | } | |
24033 | ||
24034 | ||
c32bde28 | 24035 | static PyObject *_wrap_DateSpan___iadd__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24036 | PyObject *resultobj; |
24037 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
24038 | wxDateSpan *arg2 = 0 ; | |
24039 | wxDateSpan *result; | |
24040 | PyObject * obj0 = 0 ; | |
24041 | PyObject * obj1 = 0 ; | |
24042 | char *kwnames[] = { | |
24043 | (char *) "self",(char *) "other", NULL | |
24044 | }; | |
24045 | ||
24046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
24047 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
c32bde28 | 24048 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
24049 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, |
24050 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24051 | SWIG_fail; | |
24052 | if (arg2 == NULL) { | |
24053 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24054 | SWIG_fail; | |
24055 | } | |
24056 | { | |
24057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24058 | { | |
24059 | wxDateSpan &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2); | |
24060 | result = (wxDateSpan *) &_result_ref; | |
24061 | } | |
24062 | ||
24063 | wxPyEndAllowThreads(__tstate); | |
24064 | if (PyErr_Occurred()) SWIG_fail; | |
24065 | } | |
c32bde28 | 24066 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1); |
d55e5bfc RD |
24067 | return resultobj; |
24068 | fail: | |
24069 | return NULL; | |
24070 | } | |
24071 | ||
24072 | ||
c32bde28 | 24073 | static PyObject *_wrap_DateSpan___isub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24074 | PyObject *resultobj; |
24075 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
24076 | wxDateSpan *arg2 = 0 ; | |
24077 | wxDateSpan *result; | |
24078 | PyObject * obj0 = 0 ; | |
24079 | PyObject * obj1 = 0 ; | |
24080 | char *kwnames[] = { | |
24081 | (char *) "self",(char *) "other", NULL | |
24082 | }; | |
24083 | ||
24084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___isub__",kwnames,&obj0,&obj1)) goto fail; | |
24085 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
c32bde28 | 24086 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
24087 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, |
24088 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24089 | SWIG_fail; | |
24090 | if (arg2 == NULL) { | |
24091 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24092 | SWIG_fail; | |
24093 | } | |
24094 | { | |
24095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24096 | { | |
24097 | wxDateSpan &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2); | |
24098 | result = (wxDateSpan *) &_result_ref; | |
24099 | } | |
24100 | ||
24101 | wxPyEndAllowThreads(__tstate); | |
24102 | if (PyErr_Occurred()) SWIG_fail; | |
24103 | } | |
c32bde28 | 24104 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1); |
d55e5bfc RD |
24105 | return resultobj; |
24106 | fail: | |
24107 | return NULL; | |
24108 | } | |
24109 | ||
24110 | ||
c32bde28 | 24111 | static PyObject *_wrap_DateSpan___neg__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24112 | PyObject *resultobj; |
24113 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
24114 | wxDateSpan *result; | |
24115 | PyObject * obj0 = 0 ; | |
24116 | char *kwnames[] = { | |
24117 | (char *) "self", NULL | |
24118 | }; | |
24119 | ||
24120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan___neg__",kwnames,&obj0)) goto fail; | |
24121 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
24122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24123 | { | |
24124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24125 | { | |
24126 | wxDateSpan &_result_ref = (arg1)->operator -(); | |
24127 | result = (wxDateSpan *) &_result_ref; | |
24128 | } | |
24129 | ||
24130 | wxPyEndAllowThreads(__tstate); | |
24131 | if (PyErr_Occurred()) SWIG_fail; | |
24132 | } | |
24133 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0); | |
24134 | return resultobj; | |
24135 | fail: | |
24136 | return NULL; | |
24137 | } | |
24138 | ||
24139 | ||
c32bde28 | 24140 | static PyObject *_wrap_DateSpan___imul__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24141 | PyObject *resultobj; |
24142 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
24143 | int arg2 ; | |
24144 | wxDateSpan *result; | |
24145 | PyObject * obj0 = 0 ; | |
24146 | PyObject * obj1 = 0 ; | |
24147 | char *kwnames[] = { | |
24148 | (char *) "self",(char *) "factor", NULL | |
24149 | }; | |
24150 | ||
24151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___imul__",kwnames,&obj0,&obj1)) goto fail; | |
24152 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
c32bde28 RD |
24153 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
24154 | arg2 = (int)SWIG_As_int(obj1); | |
d55e5bfc RD |
24155 | if (PyErr_Occurred()) SWIG_fail; |
24156 | { | |
24157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24158 | { | |
24159 | wxDateSpan &_result_ref = (arg1)->operator *=(arg2); | |
24160 | result = (wxDateSpan *) &_result_ref; | |
24161 | } | |
24162 | ||
24163 | wxPyEndAllowThreads(__tstate); | |
24164 | if (PyErr_Occurred()) SWIG_fail; | |
24165 | } | |
c32bde28 | 24166 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1); |
d55e5bfc RD |
24167 | return resultobj; |
24168 | fail: | |
24169 | return NULL; | |
24170 | } | |
24171 | ||
24172 | ||
c32bde28 | 24173 | static PyObject *_wrap_DateSpan___add__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24174 | PyObject *resultobj; |
24175 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
24176 | wxDateSpan *arg2 = 0 ; | |
24177 | wxDateSpan result; | |
24178 | PyObject * obj0 = 0 ; | |
24179 | PyObject * obj1 = 0 ; | |
24180 | char *kwnames[] = { | |
24181 | (char *) "self",(char *) "other", NULL | |
24182 | }; | |
24183 | ||
24184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___add__",kwnames,&obj0,&obj1)) goto fail; | |
24185 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
24186 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24187 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
24188 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24189 | SWIG_fail; | |
24190 | if (arg2 == NULL) { | |
24191 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24192 | SWIG_fail; | |
24193 | } | |
24194 | { | |
24195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24196 | result = wxDateSpan___add__(arg1,(wxDateSpan const &)*arg2); | |
24197 | ||
24198 | wxPyEndAllowThreads(__tstate); | |
24199 | if (PyErr_Occurred()) SWIG_fail; | |
24200 | } | |
24201 | { | |
24202 | wxDateSpan * resultptr; | |
24203 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
24204 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
24205 | } | |
24206 | return resultobj; | |
24207 | fail: | |
24208 | return NULL; | |
24209 | } | |
24210 | ||
24211 | ||
c32bde28 | 24212 | static PyObject *_wrap_DateSpan___sub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24213 | PyObject *resultobj; |
24214 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
24215 | wxDateSpan *arg2 = 0 ; | |
24216 | wxDateSpan result; | |
24217 | PyObject * obj0 = 0 ; | |
24218 | PyObject * obj1 = 0 ; | |
24219 | char *kwnames[] = { | |
24220 | (char *) "self",(char *) "other", NULL | |
24221 | }; | |
24222 | ||
24223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___sub__",kwnames,&obj0,&obj1)) goto fail; | |
24224 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
24225 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24226 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
24227 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24228 | SWIG_fail; | |
24229 | if (arg2 == NULL) { | |
24230 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24231 | SWIG_fail; | |
24232 | } | |
24233 | { | |
24234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24235 | result = wxDateSpan___sub__(arg1,(wxDateSpan const &)*arg2); | |
24236 | ||
24237 | wxPyEndAllowThreads(__tstate); | |
24238 | if (PyErr_Occurred()) SWIG_fail; | |
24239 | } | |
24240 | { | |
24241 | wxDateSpan * resultptr; | |
24242 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
24243 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
24244 | } | |
24245 | return resultobj; | |
24246 | fail: | |
24247 | return NULL; | |
24248 | } | |
24249 | ||
24250 | ||
c32bde28 | 24251 | static PyObject *_wrap_DateSpan___mul__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24252 | PyObject *resultobj; |
24253 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
24254 | int arg2 ; | |
24255 | wxDateSpan result; | |
24256 | PyObject * obj0 = 0 ; | |
24257 | PyObject * obj1 = 0 ; | |
24258 | char *kwnames[] = { | |
24259 | (char *) "self",(char *) "n", NULL | |
24260 | }; | |
24261 | ||
24262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___mul__",kwnames,&obj0,&obj1)) goto fail; | |
24263 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
24264 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24265 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
24266 | if (PyErr_Occurred()) SWIG_fail; |
24267 | { | |
24268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24269 | result = wxDateSpan___mul__(arg1,arg2); | |
24270 | ||
24271 | wxPyEndAllowThreads(__tstate); | |
24272 | if (PyErr_Occurred()) SWIG_fail; | |
24273 | } | |
24274 | { | |
24275 | wxDateSpan * resultptr; | |
24276 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
24277 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
24278 | } | |
24279 | return resultobj; | |
24280 | fail: | |
24281 | return NULL; | |
24282 | } | |
24283 | ||
24284 | ||
c32bde28 | 24285 | static PyObject *_wrap_DateSpan___rmul__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24286 | PyObject *resultobj; |
24287 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
24288 | int arg2 ; | |
24289 | wxDateSpan result; | |
24290 | PyObject * obj0 = 0 ; | |
24291 | PyObject * obj1 = 0 ; | |
24292 | char *kwnames[] = { | |
24293 | (char *) "self",(char *) "n", NULL | |
24294 | }; | |
24295 | ||
24296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___rmul__",kwnames,&obj0,&obj1)) goto fail; | |
24297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
24298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24299 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
24300 | if (PyErr_Occurred()) SWIG_fail; |
24301 | { | |
24302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24303 | result = wxDateSpan___rmul__(arg1,arg2); | |
24304 | ||
24305 | wxPyEndAllowThreads(__tstate); | |
24306 | if (PyErr_Occurred()) SWIG_fail; | |
24307 | } | |
24308 | { | |
24309 | wxDateSpan * resultptr; | |
24310 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
24311 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1); | |
24312 | } | |
24313 | return resultobj; | |
24314 | fail: | |
24315 | return NULL; | |
24316 | } | |
24317 | ||
24318 | ||
c32bde28 | 24319 | static PyObject *_wrap_DateSpan___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24320 | PyObject *resultobj; |
24321 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
24322 | wxDateSpan *arg2 = (wxDateSpan *) 0 ; | |
24323 | bool result; | |
24324 | PyObject * obj0 = 0 ; | |
24325 | PyObject * obj1 = 0 ; | |
24326 | char *kwnames[] = { | |
24327 | (char *) "self",(char *) "other", NULL | |
24328 | }; | |
24329 | ||
24330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
24331 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
24332 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24333 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
24334 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24335 | { | |
24336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24337 | result = (bool)wxDateSpan___eq__(arg1,(wxDateSpan const *)arg2); | |
24338 | ||
24339 | wxPyEndAllowThreads(__tstate); | |
24340 | if (PyErr_Occurred()) SWIG_fail; | |
24341 | } | |
24342 | { | |
24343 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24344 | } | |
24345 | return resultobj; | |
24346 | fail: | |
24347 | return NULL; | |
24348 | } | |
24349 | ||
24350 | ||
c32bde28 | 24351 | static PyObject *_wrap_DateSpan___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24352 | PyObject *resultobj; |
24353 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
24354 | wxDateSpan *arg2 = (wxDateSpan *) 0 ; | |
24355 | bool result; | |
24356 | PyObject * obj0 = 0 ; | |
24357 | PyObject * obj1 = 0 ; | |
24358 | char *kwnames[] = { | |
24359 | (char *) "self",(char *) "other", NULL | |
24360 | }; | |
24361 | ||
24362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
24363 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan, | |
24364 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24365 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan, | |
24366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24367 | { | |
24368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24369 | result = (bool)wxDateSpan___ne__(arg1,(wxDateSpan const *)arg2); | |
24370 | ||
24371 | wxPyEndAllowThreads(__tstate); | |
24372 | if (PyErr_Occurred()) SWIG_fail; | |
24373 | } | |
24374 | { | |
24375 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24376 | } | |
24377 | return resultobj; | |
24378 | fail: | |
24379 | return NULL; | |
24380 | } | |
24381 | ||
24382 | ||
c32bde28 | 24383 | static PyObject * DateSpan_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
24384 | PyObject *obj; |
24385 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24386 | SWIG_TypeClientData(SWIGTYPE_p_wxDateSpan, obj); | |
24387 | Py_INCREF(obj); | |
24388 | return Py_BuildValue((char *)""); | |
24389 | } | |
c32bde28 | 24390 | static PyObject *_wrap_GetLocalTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24391 | PyObject *resultobj; |
24392 | long result; | |
24393 | char *kwnames[] = { | |
24394 | NULL | |
24395 | }; | |
24396 | ||
24397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTime",kwnames)) goto fail; | |
24398 | { | |
24399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24400 | result = (long)wxGetLocalTime(); | |
24401 | ||
24402 | wxPyEndAllowThreads(__tstate); | |
24403 | if (PyErr_Occurred()) SWIG_fail; | |
24404 | } | |
c32bde28 | 24405 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
24406 | return resultobj; |
24407 | fail: | |
24408 | return NULL; | |
24409 | } | |
24410 | ||
24411 | ||
c32bde28 | 24412 | static PyObject *_wrap_GetUTCTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24413 | PyObject *resultobj; |
24414 | long result; | |
24415 | char *kwnames[] = { | |
24416 | NULL | |
24417 | }; | |
24418 | ||
24419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUTCTime",kwnames)) goto fail; | |
24420 | { | |
24421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24422 | result = (long)wxGetUTCTime(); | |
24423 | ||
24424 | wxPyEndAllowThreads(__tstate); | |
24425 | if (PyErr_Occurred()) SWIG_fail; | |
24426 | } | |
c32bde28 | 24427 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
24428 | return resultobj; |
24429 | fail: | |
24430 | return NULL; | |
24431 | } | |
24432 | ||
24433 | ||
c32bde28 | 24434 | static PyObject *_wrap_GetCurrentTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24435 | PyObject *resultobj; |
24436 | long result; | |
24437 | char *kwnames[] = { | |
24438 | NULL | |
24439 | }; | |
24440 | ||
24441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentTime",kwnames)) goto fail; | |
24442 | { | |
24443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24444 | result = (long)wxGetCurrentTime(); | |
24445 | ||
24446 | wxPyEndAllowThreads(__tstate); | |
24447 | if (PyErr_Occurred()) SWIG_fail; | |
24448 | } | |
c32bde28 | 24449 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
24450 | return resultobj; |
24451 | fail: | |
24452 | return NULL; | |
24453 | } | |
24454 | ||
24455 | ||
c32bde28 | 24456 | static PyObject *_wrap_GetLocalTimeMillis(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24457 | PyObject *resultobj; |
24458 | wxLongLong result; | |
24459 | char *kwnames[] = { | |
24460 | NULL | |
24461 | }; | |
24462 | ||
24463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTimeMillis",kwnames)) goto fail; | |
24464 | { | |
24465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24466 | result = wxGetLocalTimeMillis(); | |
24467 | ||
24468 | wxPyEndAllowThreads(__tstate); | |
24469 | if (PyErr_Occurred()) SWIG_fail; | |
24470 | } | |
24471 | { | |
24472 | PyObject *hi, *lo, *shifter, *shifted; | |
24473 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
24474 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
24475 | shifter = PyLong_FromLong(32); | |
24476 | shifted = PyNumber_Lshift(hi, shifter); | |
24477 | resultobj = PyNumber_Or(shifted, lo); | |
24478 | Py_DECREF(hi); | |
24479 | Py_DECREF(lo); | |
24480 | Py_DECREF(shifter); | |
24481 | Py_DECREF(shifted); | |
24482 | } | |
24483 | return resultobj; | |
24484 | fail: | |
24485 | return NULL; | |
24486 | } | |
24487 | ||
24488 | ||
c32bde28 | 24489 | static int _wrap_DefaultDateTime_set(PyObject *) { |
d55e5bfc RD |
24490 | PyErr_SetString(PyExc_TypeError,"Variable DefaultDateTime is read-only."); |
24491 | return 1; | |
24492 | } | |
24493 | ||
24494 | ||
24495 | static PyObject *_wrap_DefaultDateTime_get() { | |
24496 | PyObject *pyobj; | |
24497 | ||
24498 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultDateTime), SWIGTYPE_p_wxDateTime, 0); | |
24499 | return pyobj; | |
24500 | } | |
24501 | ||
24502 | ||
c32bde28 | 24503 | static PyObject *_wrap_new_DataFormat(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24504 | PyObject *resultobj; |
24505 | int arg1 ; | |
24506 | wxDataFormat *result; | |
24507 | PyObject * obj0 = 0 ; | |
24508 | char *kwnames[] = { | |
24509 | (char *) "type", NULL | |
24510 | }; | |
24511 | ||
24512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DataFormat",kwnames,&obj0)) goto fail; | |
c32bde28 | 24513 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
24514 | if (PyErr_Occurred()) SWIG_fail; |
24515 | { | |
24516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24517 | result = (wxDataFormat *)new wxDataFormat((wxDataFormatId )arg1); | |
24518 | ||
24519 | wxPyEndAllowThreads(__tstate); | |
24520 | if (PyErr_Occurred()) SWIG_fail; | |
24521 | } | |
24522 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1); | |
24523 | return resultobj; | |
24524 | fail: | |
24525 | return NULL; | |
24526 | } | |
24527 | ||
24528 | ||
c32bde28 | 24529 | static PyObject *_wrap_new_CustomDataFormat(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24530 | PyObject *resultobj; |
24531 | wxString *arg1 = 0 ; | |
24532 | wxDataFormat *result; | |
ae8162c8 | 24533 | bool temp1 = false ; |
d55e5bfc RD |
24534 | PyObject * obj0 = 0 ; |
24535 | char *kwnames[] = { | |
24536 | (char *) "format", NULL | |
24537 | }; | |
24538 | ||
24539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CustomDataFormat",kwnames,&obj0)) goto fail; | |
24540 | { | |
24541 | arg1 = wxString_in_helper(obj0); | |
24542 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 24543 | temp1 = true; |
d55e5bfc RD |
24544 | } |
24545 | { | |
24546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24547 | result = (wxDataFormat *)new wxDataFormat((wxString const &)*arg1); | |
24548 | ||
24549 | wxPyEndAllowThreads(__tstate); | |
24550 | if (PyErr_Occurred()) SWIG_fail; | |
24551 | } | |
24552 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1); | |
24553 | { | |
24554 | if (temp1) | |
24555 | delete arg1; | |
24556 | } | |
24557 | return resultobj; | |
24558 | fail: | |
24559 | { | |
24560 | if (temp1) | |
24561 | delete arg1; | |
24562 | } | |
24563 | return NULL; | |
24564 | } | |
24565 | ||
24566 | ||
c32bde28 | 24567 | static PyObject *_wrap_delete_DataFormat(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24568 | PyObject *resultobj; |
24569 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24570 | PyObject * obj0 = 0 ; | |
24571 | char *kwnames[] = { | |
24572 | (char *) "self", NULL | |
24573 | }; | |
24574 | ||
24575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataFormat",kwnames,&obj0)) goto fail; | |
24576 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24577 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24578 | { | |
24579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24580 | delete arg1; | |
24581 | ||
24582 | wxPyEndAllowThreads(__tstate); | |
24583 | if (PyErr_Occurred()) SWIG_fail; | |
24584 | } | |
24585 | Py_INCREF(Py_None); resultobj = Py_None; | |
24586 | return resultobj; | |
24587 | fail: | |
24588 | return NULL; | |
24589 | } | |
24590 | ||
24591 | ||
c32bde28 | 24592 | static PyObject *_wrap_DataFormat___eq____SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
24593 | PyObject *resultobj; |
24594 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24595 | int arg2 ; | |
24596 | bool result; | |
24597 | PyObject * obj0 = 0 ; | |
24598 | PyObject * obj1 = 0 ; | |
24599 | ||
24600 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail; | |
24601 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24602 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24603 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
24604 | if (PyErr_Occurred()) SWIG_fail; |
24605 | { | |
24606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24607 | result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormatId )arg2); | |
24608 | ||
24609 | wxPyEndAllowThreads(__tstate); | |
24610 | if (PyErr_Occurred()) SWIG_fail; | |
24611 | } | |
24612 | { | |
24613 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24614 | } | |
24615 | return resultobj; | |
24616 | fail: | |
24617 | return NULL; | |
24618 | } | |
24619 | ||
24620 | ||
c32bde28 | 24621 | static PyObject *_wrap_DataFormat___ne____SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
24622 | PyObject *resultobj; |
24623 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24624 | int arg2 ; | |
24625 | bool result; | |
24626 | PyObject * obj0 = 0 ; | |
24627 | PyObject * obj1 = 0 ; | |
24628 | ||
24629 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail; | |
24630 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24631 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24632 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
24633 | if (PyErr_Occurred()) SWIG_fail; |
24634 | { | |
24635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24636 | result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormatId )arg2); | |
24637 | ||
24638 | wxPyEndAllowThreads(__tstate); | |
24639 | if (PyErr_Occurred()) SWIG_fail; | |
24640 | } | |
24641 | { | |
24642 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24643 | } | |
24644 | return resultobj; | |
24645 | fail: | |
24646 | return NULL; | |
24647 | } | |
24648 | ||
24649 | ||
c32bde28 | 24650 | static PyObject *_wrap_DataFormat___eq____SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
24651 | PyObject *resultobj; |
24652 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24653 | wxDataFormat *arg2 = 0 ; | |
24654 | bool result; | |
24655 | PyObject * obj0 = 0 ; | |
24656 | PyObject * obj1 = 0 ; | |
24657 | ||
24658 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail; | |
24659 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24660 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24661 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24662 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24663 | SWIG_fail; | |
24664 | if (arg2 == NULL) { | |
24665 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24666 | SWIG_fail; | |
24667 | } | |
24668 | { | |
24669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24670 | result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormat const &)*arg2); | |
24671 | ||
24672 | wxPyEndAllowThreads(__tstate); | |
24673 | if (PyErr_Occurred()) SWIG_fail; | |
24674 | } | |
24675 | { | |
24676 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24677 | } | |
24678 | return resultobj; | |
24679 | fail: | |
24680 | return NULL; | |
24681 | } | |
24682 | ||
24683 | ||
24684 | static PyObject *_wrap_DataFormat___eq__(PyObject *self, PyObject *args) { | |
24685 | int argc; | |
24686 | PyObject *argv[3]; | |
24687 | int ii; | |
24688 | ||
24689 | argc = PyObject_Length(args); | |
24690 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
24691 | argv[ii] = PyTuple_GetItem(args,ii); | |
24692 | } | |
24693 | if (argc == 2) { | |
24694 | int _v; | |
24695 | { | |
24696 | void *ptr; | |
24697 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
24698 | _v = 0; | |
24699 | PyErr_Clear(); | |
24700 | } else { | |
24701 | _v = 1; | |
24702 | } | |
24703 | } | |
24704 | if (_v) { | |
24705 | { | |
24706 | void *ptr; | |
24707 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
24708 | _v = 0; | |
24709 | PyErr_Clear(); | |
24710 | } else { | |
24711 | _v = 1; | |
24712 | } | |
24713 | } | |
24714 | if (_v) { | |
24715 | return _wrap_DataFormat___eq____SWIG_1(self,args); | |
24716 | } | |
24717 | } | |
24718 | } | |
24719 | if (argc == 2) { | |
24720 | int _v; | |
24721 | { | |
24722 | void *ptr; | |
24723 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
24724 | _v = 0; | |
24725 | PyErr_Clear(); | |
24726 | } else { | |
24727 | _v = 1; | |
24728 | } | |
24729 | } | |
24730 | if (_v) { | |
c32bde28 | 24731 | _v = SWIG_Check_int(argv[1]); |
d55e5bfc RD |
24732 | if (_v) { |
24733 | return _wrap_DataFormat___eq____SWIG_0(self,args); | |
24734 | } | |
24735 | } | |
24736 | } | |
24737 | ||
24738 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___eq__'"); | |
24739 | return NULL; | |
24740 | } | |
24741 | ||
24742 | ||
c32bde28 | 24743 | static PyObject *_wrap_DataFormat___ne____SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
24744 | PyObject *resultobj; |
24745 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24746 | wxDataFormat *arg2 = 0 ; | |
24747 | bool result; | |
24748 | PyObject * obj0 = 0 ; | |
24749 | PyObject * obj1 = 0 ; | |
24750 | ||
24751 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail; | |
24752 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24753 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24754 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
24755 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24756 | SWIG_fail; | |
24757 | if (arg2 == NULL) { | |
24758 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24759 | SWIG_fail; | |
24760 | } | |
24761 | { | |
24762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24763 | result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormat const &)*arg2); | |
24764 | ||
24765 | wxPyEndAllowThreads(__tstate); | |
24766 | if (PyErr_Occurred()) SWIG_fail; | |
24767 | } | |
24768 | { | |
24769 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24770 | } | |
24771 | return resultobj; | |
24772 | fail: | |
24773 | return NULL; | |
24774 | } | |
24775 | ||
24776 | ||
24777 | static PyObject *_wrap_DataFormat___ne__(PyObject *self, PyObject *args) { | |
24778 | int argc; | |
24779 | PyObject *argv[3]; | |
24780 | int ii; | |
24781 | ||
24782 | argc = PyObject_Length(args); | |
24783 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
24784 | argv[ii] = PyTuple_GetItem(args,ii); | |
24785 | } | |
24786 | if (argc == 2) { | |
24787 | int _v; | |
24788 | { | |
24789 | void *ptr; | |
24790 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
24791 | _v = 0; | |
24792 | PyErr_Clear(); | |
24793 | } else { | |
24794 | _v = 1; | |
24795 | } | |
24796 | } | |
24797 | if (_v) { | |
24798 | { | |
24799 | void *ptr; | |
24800 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
24801 | _v = 0; | |
24802 | PyErr_Clear(); | |
24803 | } else { | |
24804 | _v = 1; | |
24805 | } | |
24806 | } | |
24807 | if (_v) { | |
24808 | return _wrap_DataFormat___ne____SWIG_1(self,args); | |
24809 | } | |
24810 | } | |
24811 | } | |
24812 | if (argc == 2) { | |
24813 | int _v; | |
24814 | { | |
24815 | void *ptr; | |
24816 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
24817 | _v = 0; | |
24818 | PyErr_Clear(); | |
24819 | } else { | |
24820 | _v = 1; | |
24821 | } | |
24822 | } | |
24823 | if (_v) { | |
c32bde28 | 24824 | _v = SWIG_Check_int(argv[1]); |
d55e5bfc RD |
24825 | if (_v) { |
24826 | return _wrap_DataFormat___ne____SWIG_0(self,args); | |
24827 | } | |
24828 | } | |
24829 | } | |
24830 | ||
24831 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___ne__'"); | |
24832 | return NULL; | |
24833 | } | |
24834 | ||
24835 | ||
c32bde28 | 24836 | static PyObject *_wrap_DataFormat_SetType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24837 | PyObject *resultobj; |
24838 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24839 | int arg2 ; | |
24840 | PyObject * obj0 = 0 ; | |
24841 | PyObject * obj1 = 0 ; | |
24842 | char *kwnames[] = { | |
24843 | (char *) "self",(char *) "format", NULL | |
24844 | }; | |
24845 | ||
24846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetType",kwnames,&obj0,&obj1)) goto fail; | |
24847 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24848 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 24849 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
24850 | if (PyErr_Occurred()) SWIG_fail; |
24851 | { | |
24852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24853 | (arg1)->SetType((wxDataFormatId )arg2); | |
24854 | ||
24855 | wxPyEndAllowThreads(__tstate); | |
24856 | if (PyErr_Occurred()) SWIG_fail; | |
24857 | } | |
24858 | Py_INCREF(Py_None); resultobj = Py_None; | |
24859 | return resultobj; | |
24860 | fail: | |
24861 | return NULL; | |
24862 | } | |
24863 | ||
24864 | ||
c32bde28 | 24865 | static PyObject *_wrap_DataFormat_GetType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24866 | PyObject *resultobj; |
24867 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24868 | int result; | |
24869 | PyObject * obj0 = 0 ; | |
24870 | char *kwnames[] = { | |
24871 | (char *) "self", NULL | |
24872 | }; | |
24873 | ||
24874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetType",kwnames,&obj0)) goto fail; | |
24875 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24876 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24877 | { | |
24878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24879 | result = (int)((wxDataFormat const *)arg1)->GetType(); | |
24880 | ||
24881 | wxPyEndAllowThreads(__tstate); | |
24882 | if (PyErr_Occurred()) SWIG_fail; | |
24883 | } | |
c32bde28 | 24884 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
24885 | return resultobj; |
24886 | fail: | |
24887 | return NULL; | |
24888 | } | |
24889 | ||
24890 | ||
c32bde28 | 24891 | static PyObject *_wrap_DataFormat_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24892 | PyObject *resultobj; |
24893 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24894 | wxString result; | |
24895 | PyObject * obj0 = 0 ; | |
24896 | char *kwnames[] = { | |
24897 | (char *) "self", NULL | |
24898 | }; | |
24899 | ||
24900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetId",kwnames,&obj0)) goto fail; | |
24901 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24902 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24903 | { | |
24904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24905 | result = ((wxDataFormat const *)arg1)->GetId(); | |
24906 | ||
24907 | wxPyEndAllowThreads(__tstate); | |
24908 | if (PyErr_Occurred()) SWIG_fail; | |
24909 | } | |
24910 | { | |
24911 | #if wxUSE_UNICODE | |
24912 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24913 | #else | |
24914 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24915 | #endif | |
24916 | } | |
24917 | return resultobj; | |
24918 | fail: | |
24919 | return NULL; | |
24920 | } | |
24921 | ||
24922 | ||
c32bde28 | 24923 | static PyObject *_wrap_DataFormat_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24924 | PyObject *resultobj; |
24925 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
24926 | wxString *arg2 = 0 ; | |
ae8162c8 | 24927 | bool temp2 = false ; |
d55e5bfc RD |
24928 | PyObject * obj0 = 0 ; |
24929 | PyObject * obj1 = 0 ; | |
24930 | char *kwnames[] = { | |
24931 | (char *) "self",(char *) "format", NULL | |
24932 | }; | |
24933 | ||
24934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetId",kwnames,&obj0,&obj1)) goto fail; | |
24935 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
24936 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24937 | { | |
24938 | arg2 = wxString_in_helper(obj1); | |
24939 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 24940 | temp2 = true; |
d55e5bfc RD |
24941 | } |
24942 | { | |
24943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24944 | (arg1)->SetId((wxString const &)*arg2); | |
24945 | ||
24946 | wxPyEndAllowThreads(__tstate); | |
24947 | if (PyErr_Occurred()) SWIG_fail; | |
24948 | } | |
24949 | Py_INCREF(Py_None); resultobj = Py_None; | |
24950 | { | |
24951 | if (temp2) | |
24952 | delete arg2; | |
24953 | } | |
24954 | return resultobj; | |
24955 | fail: | |
24956 | { | |
24957 | if (temp2) | |
24958 | delete arg2; | |
24959 | } | |
24960 | return NULL; | |
24961 | } | |
24962 | ||
24963 | ||
c32bde28 | 24964 | static PyObject * DataFormat_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
24965 | PyObject *obj; |
24966 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24967 | SWIG_TypeClientData(SWIGTYPE_p_wxDataFormat, obj); | |
24968 | Py_INCREF(obj); | |
24969 | return Py_BuildValue((char *)""); | |
24970 | } | |
c32bde28 | 24971 | static int _wrap_FormatInvalid_set(PyObject *) { |
d55e5bfc RD |
24972 | PyErr_SetString(PyExc_TypeError,"Variable FormatInvalid is read-only."); |
24973 | return 1; | |
24974 | } | |
24975 | ||
24976 | ||
24977 | static PyObject *_wrap_FormatInvalid_get() { | |
24978 | PyObject *pyobj; | |
24979 | ||
24980 | pyobj = SWIG_NewPointerObj((void *)(&wxFormatInvalid), SWIGTYPE_p_wxDataFormat, 0); | |
24981 | return pyobj; | |
24982 | } | |
24983 | ||
24984 | ||
c32bde28 | 24985 | static PyObject *_wrap_delete_DataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24986 | PyObject *resultobj; |
24987 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
24988 | PyObject * obj0 = 0 ; | |
24989 | char *kwnames[] = { | |
24990 | (char *) "self", NULL | |
24991 | }; | |
24992 | ||
24993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataObject",kwnames,&obj0)) goto fail; | |
24994 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
24995 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24996 | { | |
24997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24998 | delete arg1; | |
24999 | ||
25000 | wxPyEndAllowThreads(__tstate); | |
25001 | if (PyErr_Occurred()) SWIG_fail; | |
25002 | } | |
25003 | Py_INCREF(Py_None); resultobj = Py_None; | |
25004 | return resultobj; | |
25005 | fail: | |
25006 | return NULL; | |
25007 | } | |
25008 | ||
25009 | ||
c32bde28 | 25010 | static PyObject *_wrap_DataObject_GetPreferredFormat(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25011 | PyObject *resultobj; |
25012 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
25013 | int arg2 = (int) wxDataObject::Get ; | |
25014 | SwigValueWrapper< wxDataFormat > result; | |
25015 | PyObject * obj0 = 0 ; | |
25016 | PyObject * obj1 = 0 ; | |
25017 | char *kwnames[] = { | |
25018 | (char *) "self",(char *) "dir", NULL | |
25019 | }; | |
25020 | ||
25021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetPreferredFormat",kwnames,&obj0,&obj1)) goto fail; | |
25022 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
25023 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25024 | if (obj1) { | |
c32bde28 | 25025 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
25026 | if (PyErr_Occurred()) SWIG_fail; |
25027 | } | |
25028 | { | |
25029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25030 | result = ((wxDataObject const *)arg1)->GetPreferredFormat((wxDataObject::Direction )arg2); | |
25031 | ||
25032 | wxPyEndAllowThreads(__tstate); | |
25033 | if (PyErr_Occurred()) SWIG_fail; | |
25034 | } | |
25035 | { | |
25036 | wxDataFormat * resultptr; | |
25037 | resultptr = new wxDataFormat((wxDataFormat &) result); | |
25038 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDataFormat, 1); | |
25039 | } | |
25040 | return resultobj; | |
25041 | fail: | |
25042 | return NULL; | |
25043 | } | |
25044 | ||
25045 | ||
c32bde28 | 25046 | static PyObject *_wrap_DataObject_GetFormatCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25047 | PyObject *resultobj; |
25048 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
25049 | int arg2 = (int) wxDataObject::Get ; | |
25050 | size_t result; | |
25051 | PyObject * obj0 = 0 ; | |
25052 | PyObject * obj1 = 0 ; | |
25053 | char *kwnames[] = { | |
25054 | (char *) "self",(char *) "dir", NULL | |
25055 | }; | |
25056 | ||
25057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetFormatCount",kwnames,&obj0,&obj1)) goto fail; | |
25058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
25059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25060 | if (obj1) { | |
c32bde28 | 25061 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
25062 | if (PyErr_Occurred()) SWIG_fail; |
25063 | } | |
25064 | { | |
25065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25066 | result = (size_t)((wxDataObject const *)arg1)->GetFormatCount((wxDataObject::Direction )arg2); | |
25067 | ||
25068 | wxPyEndAllowThreads(__tstate); | |
25069 | if (PyErr_Occurred()) SWIG_fail; | |
25070 | } | |
c32bde28 | 25071 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
25072 | return resultobj; |
25073 | fail: | |
25074 | return NULL; | |
25075 | } | |
25076 | ||
25077 | ||
c32bde28 | 25078 | static PyObject *_wrap_DataObject_IsSupported(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25079 | PyObject *resultobj; |
25080 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
25081 | wxDataFormat *arg2 = 0 ; | |
25082 | int arg3 = (int) wxDataObject::Get ; | |
25083 | bool result; | |
25084 | PyObject * obj0 = 0 ; | |
25085 | PyObject * obj1 = 0 ; | |
25086 | PyObject * obj2 = 0 ; | |
25087 | char *kwnames[] = { | |
25088 | (char *) "self",(char *) "format",(char *) "dir", NULL | |
25089 | }; | |
25090 | ||
25091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_IsSupported",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25092 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
25093 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25094 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
25095 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25096 | SWIG_fail; | |
25097 | if (arg2 == NULL) { | |
25098 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25099 | SWIG_fail; | |
25100 | } | |
25101 | if (obj2) { | |
c32bde28 | 25102 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
25103 | if (PyErr_Occurred()) SWIG_fail; |
25104 | } | |
25105 | { | |
25106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25107 | result = (bool)((wxDataObject const *)arg1)->IsSupported((wxDataFormat const &)*arg2,(wxDataObject::Direction )arg3); | |
25108 | ||
25109 | wxPyEndAllowThreads(__tstate); | |
25110 | if (PyErr_Occurred()) SWIG_fail; | |
25111 | } | |
25112 | { | |
25113 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25114 | } | |
25115 | return resultobj; | |
25116 | fail: | |
25117 | return NULL; | |
25118 | } | |
25119 | ||
25120 | ||
c32bde28 | 25121 | static PyObject *_wrap_DataObject_GetDataSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25122 | PyObject *resultobj; |
25123 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
25124 | wxDataFormat *arg2 = 0 ; | |
25125 | size_t result; | |
25126 | PyObject * obj0 = 0 ; | |
25127 | PyObject * obj1 = 0 ; | |
25128 | char *kwnames[] = { | |
25129 | (char *) "self",(char *) "format", NULL | |
25130 | }; | |
25131 | ||
25132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataSize",kwnames,&obj0,&obj1)) goto fail; | |
25133 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
25134 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25135 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
25136 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25137 | SWIG_fail; | |
25138 | if (arg2 == NULL) { | |
25139 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25140 | SWIG_fail; | |
25141 | } | |
25142 | { | |
25143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25144 | result = (size_t)((wxDataObject const *)arg1)->GetDataSize((wxDataFormat const &)*arg2); | |
25145 | ||
25146 | wxPyEndAllowThreads(__tstate); | |
25147 | if (PyErr_Occurred()) SWIG_fail; | |
25148 | } | |
c32bde28 | 25149 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
25150 | return resultobj; |
25151 | fail: | |
25152 | return NULL; | |
25153 | } | |
25154 | ||
25155 | ||
c32bde28 | 25156 | static PyObject *_wrap_DataObject_GetAllFormats(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25157 | PyObject *resultobj; |
25158 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
a07a67e6 RD |
25159 | int arg2 = (int) wxDataObject::Get ; |
25160 | PyObject *result; | |
d55e5bfc RD |
25161 | PyObject * obj0 = 0 ; |
25162 | PyObject * obj1 = 0 ; | |
d55e5bfc | 25163 | char *kwnames[] = { |
a07a67e6 | 25164 | (char *) "self",(char *) "dir", NULL |
d55e5bfc RD |
25165 | }; |
25166 | ||
a07a67e6 | 25167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetAllFormats",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
25168 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
25169 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
a07a67e6 | 25170 | if (obj1) { |
c32bde28 | 25171 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
25172 | if (PyErr_Occurred()) SWIG_fail; |
25173 | } | |
25174 | { | |
25175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a07a67e6 | 25176 | result = (PyObject *)wxDataObject_GetAllFormats(arg1,(wxDataObject::Direction )arg2); |
d55e5bfc RD |
25177 | |
25178 | wxPyEndAllowThreads(__tstate); | |
25179 | if (PyErr_Occurred()) SWIG_fail; | |
25180 | } | |
a07a67e6 | 25181 | resultobj = result; |
d55e5bfc RD |
25182 | return resultobj; |
25183 | fail: | |
25184 | return NULL; | |
25185 | } | |
25186 | ||
25187 | ||
c32bde28 | 25188 | static PyObject *_wrap_DataObject_GetDataHere(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25189 | PyObject *resultobj; |
25190 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
25191 | wxDataFormat *arg2 = 0 ; | |
a07a67e6 | 25192 | PyObject *result; |
d55e5bfc RD |
25193 | PyObject * obj0 = 0 ; |
25194 | PyObject * obj1 = 0 ; | |
d55e5bfc | 25195 | char *kwnames[] = { |
a07a67e6 | 25196 | (char *) "self",(char *) "format", NULL |
d55e5bfc RD |
25197 | }; |
25198 | ||
a07a67e6 | 25199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataHere",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
25200 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
25201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25202 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
25203 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25204 | SWIG_fail; | |
25205 | if (arg2 == NULL) { | |
25206 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25207 | SWIG_fail; | |
25208 | } | |
d55e5bfc RD |
25209 | { |
25210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a07a67e6 | 25211 | result = (PyObject *)wxDataObject_GetDataHere(arg1,(wxDataFormat const &)*arg2); |
d55e5bfc RD |
25212 | |
25213 | wxPyEndAllowThreads(__tstate); | |
25214 | if (PyErr_Occurred()) SWIG_fail; | |
25215 | } | |
a07a67e6 | 25216 | resultobj = result; |
d55e5bfc RD |
25217 | return resultobj; |
25218 | fail: | |
25219 | return NULL; | |
25220 | } | |
25221 | ||
25222 | ||
c32bde28 | 25223 | static PyObject *_wrap_DataObject_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25224 | PyObject *resultobj; |
25225 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
25226 | wxDataFormat *arg2 = 0 ; | |
a07a67e6 | 25227 | PyObject *arg3 = (PyObject *) 0 ; |
d55e5bfc RD |
25228 | bool result; |
25229 | PyObject * obj0 = 0 ; | |
25230 | PyObject * obj1 = 0 ; | |
25231 | PyObject * obj2 = 0 ; | |
d55e5bfc | 25232 | char *kwnames[] = { |
a07a67e6 | 25233 | (char *) "self",(char *) "format",(char *) "data", NULL |
d55e5bfc RD |
25234 | }; |
25235 | ||
a07a67e6 | 25236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DataObject_SetData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
25237 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, |
25238 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25239 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
25240 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25241 | SWIG_fail; | |
25242 | if (arg2 == NULL) { | |
25243 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25244 | SWIG_fail; | |
25245 | } | |
a07a67e6 | 25246 | arg3 = obj2; |
d55e5bfc RD |
25247 | { |
25248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a07a67e6 | 25249 | result = (bool)wxDataObject_SetData(arg1,(wxDataFormat const &)*arg2,arg3); |
d55e5bfc RD |
25250 | |
25251 | wxPyEndAllowThreads(__tstate); | |
25252 | if (PyErr_Occurred()) SWIG_fail; | |
25253 | } | |
25254 | { | |
25255 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25256 | } | |
25257 | return resultobj; | |
25258 | fail: | |
25259 | return NULL; | |
25260 | } | |
25261 | ||
25262 | ||
c32bde28 | 25263 | static PyObject * DataObject_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
25264 | PyObject *obj; |
25265 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25266 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObject, obj); | |
25267 | Py_INCREF(obj); | |
25268 | return Py_BuildValue((char *)""); | |
25269 | } | |
c32bde28 | 25270 | static PyObject *_wrap_new_DataObjectSimple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25271 | PyObject *resultobj; |
25272 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
25273 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
25274 | wxDataObjectSimple *result; | |
25275 | PyObject * obj0 = 0 ; | |
25276 | char *kwnames[] = { | |
25277 | (char *) "format", NULL | |
25278 | }; | |
25279 | ||
25280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DataObjectSimple",kwnames,&obj0)) goto fail; | |
25281 | if (obj0) { | |
25282 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
25283 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25284 | SWIG_fail; | |
25285 | if (arg1 == NULL) { | |
25286 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25287 | SWIG_fail; | |
25288 | } | |
25289 | } | |
25290 | { | |
25291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25292 | result = (wxDataObjectSimple *)new wxDataObjectSimple((wxDataFormat const &)*arg1); | |
25293 | ||
25294 | wxPyEndAllowThreads(__tstate); | |
25295 | if (PyErr_Occurred()) SWIG_fail; | |
25296 | } | |
25297 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectSimple, 1); | |
25298 | return resultobj; | |
25299 | fail: | |
25300 | return NULL; | |
25301 | } | |
25302 | ||
25303 | ||
c32bde28 | 25304 | static PyObject *_wrap_DataObjectSimple_GetFormat(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25305 | PyObject *resultobj; |
25306 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
25307 | wxDataFormat *result; | |
25308 | PyObject * obj0 = 0 ; | |
25309 | char *kwnames[] = { | |
25310 | (char *) "self", NULL | |
25311 | }; | |
25312 | ||
25313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetFormat",kwnames,&obj0)) goto fail; | |
25314 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, | |
25315 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25316 | { | |
25317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25318 | { | |
25319 | wxDataFormat const &_result_ref = (arg1)->GetFormat(); | |
25320 | result = (wxDataFormat *) &_result_ref; | |
25321 | } | |
25322 | ||
25323 | wxPyEndAllowThreads(__tstate); | |
25324 | if (PyErr_Occurred()) SWIG_fail; | |
25325 | } | |
25326 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 0); | |
25327 | return resultobj; | |
25328 | fail: | |
25329 | return NULL; | |
25330 | } | |
25331 | ||
25332 | ||
c32bde28 | 25333 | static PyObject *_wrap_DataObjectSimple_SetFormat(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25334 | PyObject *resultobj; |
25335 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
25336 | wxDataFormat *arg2 = 0 ; | |
25337 | PyObject * obj0 = 0 ; | |
25338 | PyObject * obj1 = 0 ; | |
25339 | char *kwnames[] = { | |
25340 | (char *) "self",(char *) "format", NULL | |
25341 | }; | |
25342 | ||
25343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetFormat",kwnames,&obj0,&obj1)) goto fail; | |
25344 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, | |
25345 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25346 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
25347 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25348 | SWIG_fail; | |
25349 | if (arg2 == NULL) { | |
25350 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25351 | SWIG_fail; | |
25352 | } | |
25353 | { | |
25354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25355 | (arg1)->SetFormat((wxDataFormat const &)*arg2); | |
25356 | ||
25357 | wxPyEndAllowThreads(__tstate); | |
25358 | if (PyErr_Occurred()) SWIG_fail; | |
25359 | } | |
25360 | Py_INCREF(Py_None); resultobj = Py_None; | |
25361 | return resultobj; | |
25362 | fail: | |
25363 | return NULL; | |
25364 | } | |
25365 | ||
25366 | ||
c32bde28 | 25367 | static PyObject *_wrap_DataObjectSimple_GetDataSize(PyObject *, PyObject *args, PyObject *kwargs) { |
a07a67e6 RD |
25368 | PyObject *resultobj; |
25369 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
25370 | size_t result; | |
25371 | PyObject * obj0 = 0 ; | |
25372 | char *kwnames[] = { | |
25373 | (char *) "self", NULL | |
25374 | }; | |
25375 | ||
25376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataSize",kwnames,&obj0)) goto fail; | |
25377 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, | |
25378 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25379 | { | |
25380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25381 | result = (size_t)((wxDataObjectSimple const *)arg1)->GetDataSize(); | |
25382 | ||
25383 | wxPyEndAllowThreads(__tstate); | |
25384 | if (PyErr_Occurred()) SWIG_fail; | |
25385 | } | |
c32bde28 | 25386 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
a07a67e6 RD |
25387 | return resultobj; |
25388 | fail: | |
25389 | return NULL; | |
25390 | } | |
25391 | ||
25392 | ||
c32bde28 | 25393 | static PyObject *_wrap_DataObjectSimple_GetDataHere(PyObject *, PyObject *args, PyObject *kwargs) { |
a07a67e6 RD |
25394 | PyObject *resultobj; |
25395 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
25396 | PyObject *result; | |
25397 | PyObject * obj0 = 0 ; | |
25398 | char *kwnames[] = { | |
25399 | (char *) "self", NULL | |
25400 | }; | |
25401 | ||
25402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataHere",kwnames,&obj0)) goto fail; | |
25403 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, | |
25404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25405 | { | |
25406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25407 | result = (PyObject *)wxDataObjectSimple_GetDataHere(arg1); | |
25408 | ||
25409 | wxPyEndAllowThreads(__tstate); | |
25410 | if (PyErr_Occurred()) SWIG_fail; | |
25411 | } | |
25412 | resultobj = result; | |
25413 | return resultobj; | |
25414 | fail: | |
25415 | return NULL; | |
25416 | } | |
25417 | ||
25418 | ||
c32bde28 | 25419 | static PyObject *_wrap_DataObjectSimple_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
a07a67e6 RD |
25420 | PyObject *resultobj; |
25421 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
25422 | PyObject *arg2 = (PyObject *) 0 ; | |
25423 | bool result; | |
25424 | PyObject * obj0 = 0 ; | |
25425 | PyObject * obj1 = 0 ; | |
25426 | char *kwnames[] = { | |
25427 | (char *) "self",(char *) "data", NULL | |
25428 | }; | |
25429 | ||
25430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetData",kwnames,&obj0,&obj1)) goto fail; | |
25431 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple, | |
25432 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25433 | arg2 = obj1; | |
25434 | { | |
25435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25436 | result = (bool)wxDataObjectSimple_SetData(arg1,arg2); | |
25437 | ||
25438 | wxPyEndAllowThreads(__tstate); | |
25439 | if (PyErr_Occurred()) SWIG_fail; | |
25440 | } | |
25441 | { | |
25442 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25443 | } | |
25444 | return resultobj; | |
25445 | fail: | |
25446 | return NULL; | |
25447 | } | |
25448 | ||
25449 | ||
c32bde28 | 25450 | static PyObject * DataObjectSimple_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
25451 | PyObject *obj; |
25452 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25453 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectSimple, obj); | |
25454 | Py_INCREF(obj); | |
25455 | return Py_BuildValue((char *)""); | |
25456 | } | |
c32bde28 | 25457 | static PyObject *_wrap_new_PyDataObjectSimple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25458 | PyObject *resultobj; |
25459 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
25460 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
25461 | wxPyDataObjectSimple *result; | |
25462 | PyObject * obj0 = 0 ; | |
25463 | char *kwnames[] = { | |
25464 | (char *) "format", NULL | |
25465 | }; | |
25466 | ||
25467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDataObjectSimple",kwnames,&obj0)) goto fail; | |
25468 | if (obj0) { | |
25469 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
25470 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25471 | SWIG_fail; | |
25472 | if (arg1 == NULL) { | |
25473 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25474 | SWIG_fail; | |
25475 | } | |
25476 | } | |
25477 | { | |
25478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25479 | result = (wxPyDataObjectSimple *)new wxPyDataObjectSimple((wxDataFormat const &)*arg1); | |
25480 | ||
25481 | wxPyEndAllowThreads(__tstate); | |
25482 | if (PyErr_Occurred()) SWIG_fail; | |
25483 | } | |
25484 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDataObjectSimple, 1); | |
25485 | return resultobj; | |
25486 | fail: | |
25487 | return NULL; | |
25488 | } | |
25489 | ||
25490 | ||
c32bde28 | 25491 | static PyObject *_wrap_PyDataObjectSimple__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25492 | PyObject *resultobj; |
25493 | wxPyDataObjectSimple *arg1 = (wxPyDataObjectSimple *) 0 ; | |
25494 | PyObject *arg2 = (PyObject *) 0 ; | |
25495 | PyObject *arg3 = (PyObject *) 0 ; | |
25496 | PyObject * obj0 = 0 ; | |
25497 | PyObject * obj1 = 0 ; | |
25498 | PyObject * obj2 = 0 ; | |
25499 | char *kwnames[] = { | |
25500 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25501 | }; | |
25502 | ||
25503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDataObjectSimple__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25504 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDataObjectSimple, | |
25505 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25506 | arg2 = obj1; | |
25507 | arg3 = obj2; | |
25508 | { | |
25509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25510 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25511 | ||
25512 | wxPyEndAllowThreads(__tstate); | |
25513 | if (PyErr_Occurred()) SWIG_fail; | |
25514 | } | |
25515 | Py_INCREF(Py_None); resultobj = Py_None; | |
25516 | return resultobj; | |
25517 | fail: | |
25518 | return NULL; | |
25519 | } | |
25520 | ||
25521 | ||
c32bde28 | 25522 | static PyObject * PyDataObjectSimple_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
25523 | PyObject *obj; |
25524 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25525 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDataObjectSimple, obj); | |
25526 | Py_INCREF(obj); | |
25527 | return Py_BuildValue((char *)""); | |
25528 | } | |
c32bde28 | 25529 | static PyObject *_wrap_new_DataObjectComposite(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25530 | PyObject *resultobj; |
25531 | wxDataObjectComposite *result; | |
25532 | char *kwnames[] = { | |
25533 | NULL | |
25534 | }; | |
25535 | ||
25536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DataObjectComposite",kwnames)) goto fail; | |
25537 | { | |
25538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25539 | result = (wxDataObjectComposite *)new wxDataObjectComposite(); | |
25540 | ||
25541 | wxPyEndAllowThreads(__tstate); | |
25542 | if (PyErr_Occurred()) SWIG_fail; | |
25543 | } | |
25544 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectComposite, 1); | |
25545 | return resultobj; | |
25546 | fail: | |
25547 | return NULL; | |
25548 | } | |
25549 | ||
25550 | ||
c32bde28 | 25551 | static PyObject *_wrap_DataObjectComposite_Add(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25552 | PyObject *resultobj; |
25553 | wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ; | |
25554 | wxDataObjectSimple *arg2 = (wxDataObjectSimple *) 0 ; | |
ae8162c8 | 25555 | bool arg3 = (bool) false ; |
d55e5bfc RD |
25556 | PyObject * obj0 = 0 ; |
25557 | PyObject * obj1 = 0 ; | |
25558 | PyObject * obj2 = 0 ; | |
25559 | char *kwnames[] = { | |
25560 | (char *) "self",(char *) "dataObject",(char *) "preferred", NULL | |
25561 | }; | |
25562 | ||
25563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObjectComposite_Add",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectComposite, | |
25565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25566 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObjectSimple, | |
25567 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
25568 | if (obj2) { | |
c32bde28 | 25569 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
25570 | if (PyErr_Occurred()) SWIG_fail; |
25571 | } | |
25572 | { | |
25573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25574 | (arg1)->Add(arg2,arg3); | |
25575 | ||
25576 | wxPyEndAllowThreads(__tstate); | |
25577 | if (PyErr_Occurred()) SWIG_fail; | |
25578 | } | |
25579 | Py_INCREF(Py_None); resultobj = Py_None; | |
25580 | return resultobj; | |
25581 | fail: | |
25582 | return NULL; | |
25583 | } | |
25584 | ||
25585 | ||
c32bde28 | 25586 | static PyObject * DataObjectComposite_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
25587 | PyObject *obj; |
25588 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25589 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectComposite, obj); | |
25590 | Py_INCREF(obj); | |
25591 | return Py_BuildValue((char *)""); | |
25592 | } | |
c32bde28 | 25593 | static PyObject *_wrap_new_TextDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25594 | PyObject *resultobj; |
25595 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
25596 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
25597 | wxTextDataObject *result; | |
ae8162c8 | 25598 | bool temp1 = false ; |
d55e5bfc RD |
25599 | PyObject * obj0 = 0 ; |
25600 | char *kwnames[] = { | |
25601 | (char *) "text", NULL | |
25602 | }; | |
25603 | ||
25604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TextDataObject",kwnames,&obj0)) goto fail; | |
25605 | if (obj0) { | |
25606 | { | |
25607 | arg1 = wxString_in_helper(obj0); | |
25608 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 25609 | temp1 = true; |
d55e5bfc RD |
25610 | } |
25611 | } | |
25612 | { | |
25613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25614 | result = (wxTextDataObject *)new wxTextDataObject((wxString const &)*arg1); | |
25615 | ||
25616 | wxPyEndAllowThreads(__tstate); | |
25617 | if (PyErr_Occurred()) SWIG_fail; | |
25618 | } | |
25619 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextDataObject, 1); | |
25620 | { | |
25621 | if (temp1) | |
25622 | delete arg1; | |
25623 | } | |
25624 | return resultobj; | |
25625 | fail: | |
25626 | { | |
25627 | if (temp1) | |
25628 | delete arg1; | |
25629 | } | |
25630 | return NULL; | |
25631 | } | |
25632 | ||
25633 | ||
c32bde28 | 25634 | static PyObject *_wrap_TextDataObject_GetTextLength(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25635 | PyObject *resultobj; |
25636 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
25637 | size_t result; | |
25638 | PyObject * obj0 = 0 ; | |
25639 | char *kwnames[] = { | |
25640 | (char *) "self", NULL | |
25641 | }; | |
25642 | ||
25643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetTextLength",kwnames,&obj0)) goto fail; | |
25644 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject, | |
25645 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25646 | { | |
25647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25648 | result = (size_t)(arg1)->GetTextLength(); | |
25649 | ||
25650 | wxPyEndAllowThreads(__tstate); | |
25651 | if (PyErr_Occurred()) SWIG_fail; | |
25652 | } | |
c32bde28 | 25653 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
25654 | return resultobj; |
25655 | fail: | |
25656 | return NULL; | |
25657 | } | |
25658 | ||
25659 | ||
c32bde28 | 25660 | static PyObject *_wrap_TextDataObject_GetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25661 | PyObject *resultobj; |
25662 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
25663 | wxString result; | |
25664 | PyObject * obj0 = 0 ; | |
25665 | char *kwnames[] = { | |
25666 | (char *) "self", NULL | |
25667 | }; | |
25668 | ||
25669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetText",kwnames,&obj0)) goto fail; | |
25670 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject, | |
25671 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25672 | { | |
25673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25674 | result = (arg1)->GetText(); | |
25675 | ||
25676 | wxPyEndAllowThreads(__tstate); | |
25677 | if (PyErr_Occurred()) SWIG_fail; | |
25678 | } | |
25679 | { | |
25680 | #if wxUSE_UNICODE | |
25681 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
25682 | #else | |
25683 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
25684 | #endif | |
25685 | } | |
25686 | return resultobj; | |
25687 | fail: | |
25688 | return NULL; | |
25689 | } | |
25690 | ||
25691 | ||
c32bde28 | 25692 | static PyObject *_wrap_TextDataObject_SetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25693 | PyObject *resultobj; |
25694 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
25695 | wxString *arg2 = 0 ; | |
ae8162c8 | 25696 | bool temp2 = false ; |
d55e5bfc RD |
25697 | PyObject * obj0 = 0 ; |
25698 | PyObject * obj1 = 0 ; | |
25699 | char *kwnames[] = { | |
25700 | (char *) "self",(char *) "text", NULL | |
25701 | }; | |
25702 | ||
25703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextDataObject_SetText",kwnames,&obj0,&obj1)) goto fail; | |
25704 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject, | |
25705 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25706 | { | |
25707 | arg2 = wxString_in_helper(obj1); | |
25708 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 25709 | temp2 = true; |
d55e5bfc RD |
25710 | } |
25711 | { | |
25712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25713 | (arg1)->SetText((wxString const &)*arg2); | |
25714 | ||
25715 | wxPyEndAllowThreads(__tstate); | |
25716 | if (PyErr_Occurred()) SWIG_fail; | |
25717 | } | |
25718 | Py_INCREF(Py_None); resultobj = Py_None; | |
25719 | { | |
25720 | if (temp2) | |
25721 | delete arg2; | |
25722 | } | |
25723 | return resultobj; | |
25724 | fail: | |
25725 | { | |
25726 | if (temp2) | |
25727 | delete arg2; | |
25728 | } | |
25729 | return NULL; | |
25730 | } | |
25731 | ||
25732 | ||
c32bde28 | 25733 | static PyObject * TextDataObject_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
25734 | PyObject *obj; |
25735 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25736 | SWIG_TypeClientData(SWIGTYPE_p_wxTextDataObject, obj); | |
25737 | Py_INCREF(obj); | |
25738 | return Py_BuildValue((char *)""); | |
25739 | } | |
c32bde28 | 25740 | static PyObject *_wrap_new_PyTextDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25741 | PyObject *resultobj; |
25742 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
25743 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
25744 | wxPyTextDataObject *result; | |
ae8162c8 | 25745 | bool temp1 = false ; |
d55e5bfc RD |
25746 | PyObject * obj0 = 0 ; |
25747 | char *kwnames[] = { | |
25748 | (char *) "text", NULL | |
25749 | }; | |
25750 | ||
25751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyTextDataObject",kwnames,&obj0)) goto fail; | |
25752 | if (obj0) { | |
25753 | { | |
25754 | arg1 = wxString_in_helper(obj0); | |
25755 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 25756 | temp1 = true; |
d55e5bfc RD |
25757 | } |
25758 | } | |
25759 | { | |
25760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25761 | result = (wxPyTextDataObject *)new wxPyTextDataObject((wxString const &)*arg1); | |
25762 | ||
25763 | wxPyEndAllowThreads(__tstate); | |
25764 | if (PyErr_Occurred()) SWIG_fail; | |
25765 | } | |
25766 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDataObject, 1); | |
25767 | { | |
25768 | if (temp1) | |
25769 | delete arg1; | |
25770 | } | |
25771 | return resultobj; | |
25772 | fail: | |
25773 | { | |
25774 | if (temp1) | |
25775 | delete arg1; | |
25776 | } | |
25777 | return NULL; | |
25778 | } | |
25779 | ||
25780 | ||
c32bde28 | 25781 | static PyObject *_wrap_PyTextDataObject__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25782 | PyObject *resultobj; |
25783 | wxPyTextDataObject *arg1 = (wxPyTextDataObject *) 0 ; | |
25784 | PyObject *arg2 = (PyObject *) 0 ; | |
25785 | PyObject *arg3 = (PyObject *) 0 ; | |
25786 | PyObject * obj0 = 0 ; | |
25787 | PyObject * obj1 = 0 ; | |
25788 | PyObject * obj2 = 0 ; | |
25789 | char *kwnames[] = { | |
25790 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25791 | }; | |
25792 | ||
25793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25794 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDataObject, | |
25795 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25796 | arg2 = obj1; | |
25797 | arg3 = obj2; | |
25798 | { | |
25799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25800 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25801 | ||
25802 | wxPyEndAllowThreads(__tstate); | |
25803 | if (PyErr_Occurred()) SWIG_fail; | |
25804 | } | |
25805 | Py_INCREF(Py_None); resultobj = Py_None; | |
25806 | return resultobj; | |
25807 | fail: | |
25808 | return NULL; | |
25809 | } | |
25810 | ||
25811 | ||
c32bde28 | 25812 | static PyObject * PyTextDataObject_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
25813 | PyObject *obj; |
25814 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25815 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDataObject, obj); | |
25816 | Py_INCREF(obj); | |
25817 | return Py_BuildValue((char *)""); | |
25818 | } | |
c32bde28 | 25819 | static PyObject *_wrap_new_BitmapDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25820 | PyObject *resultobj; |
25821 | wxBitmap const &arg1_defvalue = wxNullBitmap ; | |
25822 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
25823 | wxBitmapDataObject *result; | |
25824 | PyObject * obj0 = 0 ; | |
25825 | char *kwnames[] = { | |
25826 | (char *) "bitmap", NULL | |
25827 | }; | |
25828 | ||
25829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BitmapDataObject",kwnames,&obj0)) goto fail; | |
25830 | if (obj0) { | |
25831 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
25832 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25833 | SWIG_fail; | |
25834 | if (arg1 == NULL) { | |
25835 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25836 | SWIG_fail; | |
25837 | } | |
25838 | } | |
25839 | { | |
25840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25841 | result = (wxBitmapDataObject *)new wxBitmapDataObject((wxBitmap const &)*arg1); | |
25842 | ||
25843 | wxPyEndAllowThreads(__tstate); | |
25844 | if (PyErr_Occurred()) SWIG_fail; | |
25845 | } | |
25846 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapDataObject, 1); | |
25847 | return resultobj; | |
25848 | fail: | |
25849 | return NULL; | |
25850 | } | |
25851 | ||
25852 | ||
c32bde28 | 25853 | static PyObject *_wrap_BitmapDataObject_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25854 | PyObject *resultobj; |
25855 | wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ; | |
25856 | wxBitmap result; | |
25857 | PyObject * obj0 = 0 ; | |
25858 | char *kwnames[] = { | |
25859 | (char *) "self", NULL | |
25860 | }; | |
25861 | ||
25862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapDataObject_GetBitmap",kwnames,&obj0)) goto fail; | |
25863 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject, | |
25864 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25865 | { | |
25866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25867 | result = ((wxBitmapDataObject const *)arg1)->GetBitmap(); | |
25868 | ||
25869 | wxPyEndAllowThreads(__tstate); | |
25870 | if (PyErr_Occurred()) SWIG_fail; | |
25871 | } | |
25872 | { | |
25873 | wxBitmap * resultptr; | |
25874 | resultptr = new wxBitmap((wxBitmap &) result); | |
25875 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
25876 | } | |
25877 | return resultobj; | |
25878 | fail: | |
25879 | return NULL; | |
25880 | } | |
25881 | ||
25882 | ||
c32bde28 | 25883 | static PyObject *_wrap_BitmapDataObject_SetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25884 | PyObject *resultobj; |
25885 | wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ; | |
25886 | wxBitmap *arg2 = 0 ; | |
25887 | PyObject * obj0 = 0 ; | |
25888 | PyObject * obj1 = 0 ; | |
25889 | char *kwnames[] = { | |
25890 | (char *) "self",(char *) "bitmap", NULL | |
25891 | }; | |
25892 | ||
25893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapDataObject_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
25894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject, | |
25895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25896 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
25897 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25898 | SWIG_fail; | |
25899 | if (arg2 == NULL) { | |
25900 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25901 | SWIG_fail; | |
25902 | } | |
25903 | { | |
25904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25905 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
25906 | ||
25907 | wxPyEndAllowThreads(__tstate); | |
25908 | if (PyErr_Occurred()) SWIG_fail; | |
25909 | } | |
25910 | Py_INCREF(Py_None); resultobj = Py_None; | |
25911 | return resultobj; | |
25912 | fail: | |
25913 | return NULL; | |
25914 | } | |
25915 | ||
25916 | ||
c32bde28 | 25917 | static PyObject * BitmapDataObject_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
25918 | PyObject *obj; |
25919 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25920 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmapDataObject, obj); | |
25921 | Py_INCREF(obj); | |
25922 | return Py_BuildValue((char *)""); | |
25923 | } | |
c32bde28 | 25924 | static PyObject *_wrap_new_PyBitmapDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25925 | PyObject *resultobj; |
25926 | wxBitmap const &arg1_defvalue = wxNullBitmap ; | |
25927 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
25928 | wxPyBitmapDataObject *result; | |
25929 | PyObject * obj0 = 0 ; | |
25930 | char *kwnames[] = { | |
25931 | (char *) "bitmap", NULL | |
25932 | }; | |
25933 | ||
25934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyBitmapDataObject",kwnames,&obj0)) goto fail; | |
25935 | if (obj0) { | |
25936 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
25937 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25938 | SWIG_fail; | |
25939 | if (arg1 == NULL) { | |
25940 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25941 | SWIG_fail; | |
25942 | } | |
25943 | } | |
25944 | { | |
25945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25946 | result = (wxPyBitmapDataObject *)new wxPyBitmapDataObject((wxBitmap const &)*arg1); | |
25947 | ||
25948 | wxPyEndAllowThreads(__tstate); | |
25949 | if (PyErr_Occurred()) SWIG_fail; | |
25950 | } | |
25951 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyBitmapDataObject, 1); | |
25952 | return resultobj; | |
25953 | fail: | |
25954 | return NULL; | |
25955 | } | |
25956 | ||
25957 | ||
c32bde28 | 25958 | static PyObject *_wrap_PyBitmapDataObject__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25959 | PyObject *resultobj; |
25960 | wxPyBitmapDataObject *arg1 = (wxPyBitmapDataObject *) 0 ; | |
25961 | PyObject *arg2 = (PyObject *) 0 ; | |
25962 | PyObject *arg3 = (PyObject *) 0 ; | |
25963 | PyObject * obj0 = 0 ; | |
25964 | PyObject * obj1 = 0 ; | |
25965 | PyObject * obj2 = 0 ; | |
25966 | char *kwnames[] = { | |
25967 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25968 | }; | |
25969 | ||
25970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25971 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapDataObject, | |
25972 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25973 | arg2 = obj1; | |
25974 | arg3 = obj2; | |
25975 | { | |
25976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25977 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25978 | ||
25979 | wxPyEndAllowThreads(__tstate); | |
25980 | if (PyErr_Occurred()) SWIG_fail; | |
25981 | } | |
25982 | Py_INCREF(Py_None); resultobj = Py_None; | |
25983 | return resultobj; | |
25984 | fail: | |
25985 | return NULL; | |
25986 | } | |
25987 | ||
25988 | ||
c32bde28 | 25989 | static PyObject * PyBitmapDataObject_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
25990 | PyObject *obj; |
25991 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25992 | SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapDataObject, obj); | |
25993 | Py_INCREF(obj); | |
25994 | return Py_BuildValue((char *)""); | |
25995 | } | |
c32bde28 | 25996 | static PyObject *_wrap_new_FileDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25997 | PyObject *resultobj; |
25998 | wxFileDataObject *result; | |
25999 | char *kwnames[] = { | |
26000 | NULL | |
26001 | }; | |
26002 | ||
26003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDataObject",kwnames)) goto fail; | |
26004 | { | |
26005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26006 | result = (wxFileDataObject *)new wxFileDataObject(); | |
26007 | ||
26008 | wxPyEndAllowThreads(__tstate); | |
26009 | if (PyErr_Occurred()) SWIG_fail; | |
26010 | } | |
26011 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileDataObject, 1); | |
26012 | return resultobj; | |
26013 | fail: | |
26014 | return NULL; | |
26015 | } | |
26016 | ||
26017 | ||
c32bde28 | 26018 | static PyObject *_wrap_FileDataObject_GetFilenames(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26019 | PyObject *resultobj; |
26020 | wxFileDataObject *arg1 = (wxFileDataObject *) 0 ; | |
26021 | wxArrayString *result; | |
26022 | PyObject * obj0 = 0 ; | |
26023 | char *kwnames[] = { | |
26024 | (char *) "self", NULL | |
26025 | }; | |
26026 | ||
26027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDataObject_GetFilenames",kwnames,&obj0)) goto fail; | |
26028 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject, | |
26029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26030 | { | |
26031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26032 | { | |
26033 | wxArrayString const &_result_ref = (arg1)->GetFilenames(); | |
26034 | result = (wxArrayString *) &_result_ref; | |
26035 | } | |
26036 | ||
26037 | wxPyEndAllowThreads(__tstate); | |
26038 | if (PyErr_Occurred()) SWIG_fail; | |
26039 | } | |
26040 | { | |
26041 | resultobj = wxArrayString2PyList_helper(*result); | |
26042 | } | |
26043 | return resultobj; | |
26044 | fail: | |
26045 | return NULL; | |
26046 | } | |
26047 | ||
26048 | ||
c32bde28 | 26049 | static PyObject *_wrap_FileDataObject_AddFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26050 | PyObject *resultobj; |
26051 | wxFileDataObject *arg1 = (wxFileDataObject *) 0 ; | |
26052 | wxString *arg2 = 0 ; | |
ae8162c8 | 26053 | bool temp2 = false ; |
d55e5bfc RD |
26054 | PyObject * obj0 = 0 ; |
26055 | PyObject * obj1 = 0 ; | |
26056 | char *kwnames[] = { | |
26057 | (char *) "self",(char *) "filename", NULL | |
26058 | }; | |
26059 | ||
26060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDataObject_AddFile",kwnames,&obj0,&obj1)) goto fail; | |
26061 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject, | |
26062 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26063 | { | |
26064 | arg2 = wxString_in_helper(obj1); | |
26065 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 26066 | temp2 = true; |
d55e5bfc RD |
26067 | } |
26068 | { | |
26069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26070 | (arg1)->AddFile((wxString const &)*arg2); | |
26071 | ||
26072 | wxPyEndAllowThreads(__tstate); | |
26073 | if (PyErr_Occurred()) SWIG_fail; | |
26074 | } | |
26075 | Py_INCREF(Py_None); resultobj = Py_None; | |
26076 | { | |
26077 | if (temp2) | |
26078 | delete arg2; | |
26079 | } | |
26080 | return resultobj; | |
26081 | fail: | |
26082 | { | |
26083 | if (temp2) | |
26084 | delete arg2; | |
26085 | } | |
26086 | return NULL; | |
26087 | } | |
26088 | ||
26089 | ||
c32bde28 | 26090 | static PyObject * FileDataObject_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
26091 | PyObject *obj; |
26092 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26093 | SWIG_TypeClientData(SWIGTYPE_p_wxFileDataObject, obj); | |
26094 | Py_INCREF(obj); | |
26095 | return Py_BuildValue((char *)""); | |
26096 | } | |
c32bde28 | 26097 | static PyObject *_wrap_new_CustomDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26098 | PyObject *resultobj; |
26099 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
26100 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
26101 | wxCustomDataObject *result; | |
26102 | PyObject * obj0 = 0 ; | |
26103 | char *kwnames[] = { | |
26104 | (char *) "format", NULL | |
26105 | }; | |
26106 | ||
26107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CustomDataObject",kwnames,&obj0)) goto fail; | |
26108 | if (obj0) { | |
26109 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat, | |
26110 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26111 | SWIG_fail; | |
26112 | if (arg1 == NULL) { | |
26113 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26114 | SWIG_fail; | |
26115 | } | |
26116 | } | |
26117 | { | |
26118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26119 | result = (wxCustomDataObject *)new wxCustomDataObject((wxDataFormat const &)*arg1); | |
26120 | ||
26121 | wxPyEndAllowThreads(__tstate); | |
26122 | if (PyErr_Occurred()) SWIG_fail; | |
26123 | } | |
26124 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCustomDataObject, 1); | |
26125 | return resultobj; | |
26126 | fail: | |
26127 | return NULL; | |
26128 | } | |
26129 | ||
26130 | ||
c32bde28 | 26131 | static PyObject *_wrap_CustomDataObject_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26132 | PyObject *resultobj; |
26133 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
26134 | PyObject *arg2 = (PyObject *) 0 ; | |
26135 | bool result; | |
26136 | PyObject * obj0 = 0 ; | |
26137 | PyObject * obj1 = 0 ; | |
26138 | char *kwnames[] = { | |
26139 | (char *) "self",(char *) "data", NULL | |
26140 | }; | |
26141 | ||
26142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_SetData",kwnames,&obj0,&obj1)) goto fail; | |
26143 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, | |
26144 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26145 | arg2 = obj1; | |
26146 | { | |
26147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26148 | result = (bool)wxCustomDataObject_SetData(arg1,arg2); | |
26149 | ||
26150 | wxPyEndAllowThreads(__tstate); | |
26151 | if (PyErr_Occurred()) SWIG_fail; | |
26152 | } | |
26153 | { | |
26154 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26155 | } | |
26156 | return resultobj; | |
26157 | fail: | |
26158 | return NULL; | |
26159 | } | |
26160 | ||
26161 | ||
c32bde28 | 26162 | static PyObject *_wrap_CustomDataObject_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26163 | PyObject *resultobj; |
26164 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
26165 | size_t result; | |
26166 | PyObject * obj0 = 0 ; | |
26167 | char *kwnames[] = { | |
26168 | (char *) "self", NULL | |
26169 | }; | |
26170 | ||
26171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetSize",kwnames,&obj0)) goto fail; | |
26172 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, | |
26173 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26174 | { | |
26175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26176 | result = (size_t)(arg1)->GetSize(); | |
26177 | ||
26178 | wxPyEndAllowThreads(__tstate); | |
26179 | if (PyErr_Occurred()) SWIG_fail; | |
26180 | } | |
c32bde28 | 26181 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
26182 | return resultobj; |
26183 | fail: | |
26184 | return NULL; | |
26185 | } | |
26186 | ||
26187 | ||
c32bde28 | 26188 | static PyObject *_wrap_CustomDataObject_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26189 | PyObject *resultobj; |
26190 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
26191 | PyObject *result; | |
26192 | PyObject * obj0 = 0 ; | |
26193 | char *kwnames[] = { | |
26194 | (char *) "self", NULL | |
26195 | }; | |
26196 | ||
26197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetData",kwnames,&obj0)) goto fail; | |
26198 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject, | |
26199 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26200 | { | |
26201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26202 | result = (PyObject *)wxCustomDataObject_GetData(arg1); | |
26203 | ||
26204 | wxPyEndAllowThreads(__tstate); | |
26205 | if (PyErr_Occurred()) SWIG_fail; | |
26206 | } | |
26207 | resultobj = result; | |
26208 | return resultobj; | |
26209 | fail: | |
26210 | return NULL; | |
26211 | } | |
26212 | ||
26213 | ||
c32bde28 | 26214 | static PyObject * CustomDataObject_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
26215 | PyObject *obj; |
26216 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26217 | SWIG_TypeClientData(SWIGTYPE_p_wxCustomDataObject, obj); | |
26218 | Py_INCREF(obj); | |
26219 | return Py_BuildValue((char *)""); | |
26220 | } | |
c32bde28 | 26221 | static PyObject *_wrap_new_URLDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26222 | PyObject *resultobj; |
26223 | wxURLDataObject *result; | |
26224 | char *kwnames[] = { | |
26225 | NULL | |
26226 | }; | |
26227 | ||
26228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_URLDataObject",kwnames)) goto fail; | |
26229 | { | |
26230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26231 | result = (wxURLDataObject *)new wxURLDataObject(); | |
26232 | ||
26233 | wxPyEndAllowThreads(__tstate); | |
26234 | if (PyErr_Occurred()) SWIG_fail; | |
26235 | } | |
26236 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxURLDataObject, 1); | |
26237 | return resultobj; | |
26238 | fail: | |
26239 | return NULL; | |
26240 | } | |
26241 | ||
26242 | ||
c32bde28 | 26243 | static PyObject *_wrap_URLDataObject_GetURL(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26244 | PyObject *resultobj; |
26245 | wxURLDataObject *arg1 = (wxURLDataObject *) 0 ; | |
26246 | wxString result; | |
26247 | PyObject * obj0 = 0 ; | |
26248 | char *kwnames[] = { | |
26249 | (char *) "self", NULL | |
26250 | }; | |
26251 | ||
26252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:URLDataObject_GetURL",kwnames,&obj0)) goto fail; | |
26253 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject, | |
26254 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26255 | { | |
26256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26257 | result = (arg1)->GetURL(); | |
26258 | ||
26259 | wxPyEndAllowThreads(__tstate); | |
26260 | if (PyErr_Occurred()) SWIG_fail; | |
26261 | } | |
26262 | { | |
26263 | #if wxUSE_UNICODE | |
26264 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
26265 | #else | |
26266 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
26267 | #endif | |
26268 | } | |
26269 | return resultobj; | |
26270 | fail: | |
26271 | return NULL; | |
26272 | } | |
26273 | ||
26274 | ||
c32bde28 | 26275 | static PyObject *_wrap_URLDataObject_SetURL(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26276 | PyObject *resultobj; |
26277 | wxURLDataObject *arg1 = (wxURLDataObject *) 0 ; | |
26278 | wxString *arg2 = 0 ; | |
ae8162c8 | 26279 | bool temp2 = false ; |
d55e5bfc RD |
26280 | PyObject * obj0 = 0 ; |
26281 | PyObject * obj1 = 0 ; | |
26282 | char *kwnames[] = { | |
26283 | (char *) "self",(char *) "url", NULL | |
26284 | }; | |
26285 | ||
26286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:URLDataObject_SetURL",kwnames,&obj0,&obj1)) goto fail; | |
26287 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject, | |
26288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26289 | { | |
26290 | arg2 = wxString_in_helper(obj1); | |
26291 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 26292 | temp2 = true; |
d55e5bfc RD |
26293 | } |
26294 | { | |
26295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26296 | (arg1)->SetURL((wxString const &)*arg2); | |
26297 | ||
26298 | wxPyEndAllowThreads(__tstate); | |
26299 | if (PyErr_Occurred()) SWIG_fail; | |
26300 | } | |
26301 | Py_INCREF(Py_None); resultobj = Py_None; | |
26302 | { | |
26303 | if (temp2) | |
26304 | delete arg2; | |
26305 | } | |
26306 | return resultobj; | |
26307 | fail: | |
26308 | { | |
26309 | if (temp2) | |
26310 | delete arg2; | |
26311 | } | |
26312 | return NULL; | |
26313 | } | |
26314 | ||
26315 | ||
c32bde28 | 26316 | static PyObject * URLDataObject_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
26317 | PyObject *obj; |
26318 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26319 | SWIG_TypeClientData(SWIGTYPE_p_wxURLDataObject, obj); | |
26320 | Py_INCREF(obj); | |
26321 | return Py_BuildValue((char *)""); | |
26322 | } | |
c32bde28 | 26323 | static PyObject *_wrap_new_MetafileDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26324 | PyObject *resultobj; |
26325 | wxMetafileDataObject *result; | |
26326 | char *kwnames[] = { | |
26327 | NULL | |
26328 | }; | |
26329 | ||
26330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MetafileDataObject",kwnames)) goto fail; | |
26331 | { | |
26332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26333 | result = (wxMetafileDataObject *)new wxMetafileDataObject(); | |
26334 | ||
26335 | wxPyEndAllowThreads(__tstate); | |
26336 | if (PyErr_Occurred()) SWIG_fail; | |
26337 | } | |
26338 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetafileDataObject, 1); | |
26339 | return resultobj; | |
26340 | fail: | |
26341 | return NULL; | |
26342 | } | |
26343 | ||
26344 | ||
c32bde28 | 26345 | static PyObject *_wrap_MetafileDataObject_SetMetafile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26346 | PyObject *resultobj; |
26347 | wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ; | |
26348 | wxMetafile *arg2 = 0 ; | |
26349 | PyObject * obj0 = 0 ; | |
26350 | PyObject * obj1 = 0 ; | |
26351 | char *kwnames[] = { | |
26352 | (char *) "self",(char *) "metafile", NULL | |
26353 | }; | |
26354 | ||
26355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MetafileDataObject_SetMetafile",kwnames,&obj0,&obj1)) goto fail; | |
26356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetafileDataObject, | |
26357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26358 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMetafile, | |
26359 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26360 | SWIG_fail; | |
26361 | if (arg2 == NULL) { | |
26362 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26363 | SWIG_fail; | |
26364 | } | |
26365 | { | |
26366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26367 | (arg1)->SetMetafile((wxMetafile const &)*arg2); | |
26368 | ||
26369 | wxPyEndAllowThreads(__tstate); | |
26370 | if (PyErr_Occurred()) SWIG_fail; | |
26371 | } | |
26372 | Py_INCREF(Py_None); resultobj = Py_None; | |
26373 | return resultobj; | |
26374 | fail: | |
26375 | return NULL; | |
26376 | } | |
26377 | ||
26378 | ||
c32bde28 | 26379 | static PyObject *_wrap_MetafileDataObject_GetMetafile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26380 | PyObject *resultobj; |
26381 | wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ; | |
26382 | wxMetafile result; | |
26383 | PyObject * obj0 = 0 ; | |
26384 | char *kwnames[] = { | |
26385 | (char *) "self", NULL | |
26386 | }; | |
26387 | ||
26388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetafileDataObject_GetMetafile",kwnames,&obj0)) goto fail; | |
26389 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetafileDataObject, | |
26390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26391 | { | |
26392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26393 | result = ((wxMetafileDataObject const *)arg1)->GetMetafile(); | |
26394 | ||
26395 | wxPyEndAllowThreads(__tstate); | |
26396 | if (PyErr_Occurred()) SWIG_fail; | |
26397 | } | |
26398 | { | |
26399 | wxMetafile * resultptr; | |
26400 | resultptr = new wxMetafile((wxMetafile &) result); | |
26401 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxMetafile, 1); | |
26402 | } | |
26403 | return resultobj; | |
26404 | fail: | |
26405 | return NULL; | |
26406 | } | |
26407 | ||
26408 | ||
c32bde28 | 26409 | static PyObject * MetafileDataObject_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
26410 | PyObject *obj; |
26411 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26412 | SWIG_TypeClientData(SWIGTYPE_p_wxMetafileDataObject, obj); | |
26413 | Py_INCREF(obj); | |
26414 | return Py_BuildValue((char *)""); | |
26415 | } | |
c32bde28 | 26416 | static PyObject *_wrap_IsDragResultOk(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26417 | PyObject *resultobj; |
26418 | int arg1 ; | |
26419 | bool result; | |
26420 | PyObject * obj0 = 0 ; | |
26421 | char *kwnames[] = { | |
26422 | (char *) "res", NULL | |
26423 | }; | |
26424 | ||
26425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsDragResultOk",kwnames,&obj0)) goto fail; | |
c32bde28 | 26426 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
26427 | if (PyErr_Occurred()) SWIG_fail; |
26428 | { | |
26429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26430 | result = (bool)wxIsDragResultOk((wxDragResult )arg1); | |
26431 | ||
26432 | wxPyEndAllowThreads(__tstate); | |
26433 | if (PyErr_Occurred()) SWIG_fail; | |
26434 | } | |
26435 | { | |
26436 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26437 | } | |
26438 | return resultobj; | |
26439 | fail: | |
26440 | return NULL; | |
26441 | } | |
26442 | ||
26443 | ||
c32bde28 | 26444 | static PyObject *_wrap_new_DropSource(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26445 | PyObject *resultobj; |
26446 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26447 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
26448 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
26449 | wxCursor const &arg3_defvalue = wxNullCursor ; | |
26450 | wxCursor *arg3 = (wxCursor *) &arg3_defvalue ; | |
26451 | wxCursor const &arg4_defvalue = wxNullCursor ; | |
26452 | wxCursor *arg4 = (wxCursor *) &arg4_defvalue ; | |
26453 | wxPyDropSource *result; | |
26454 | PyObject * obj0 = 0 ; | |
26455 | PyObject * obj1 = 0 ; | |
26456 | PyObject * obj2 = 0 ; | |
26457 | PyObject * obj3 = 0 ; | |
26458 | char *kwnames[] = { | |
26459 | (char *) "win",(char *) "copy",(char *) "move",(char *) "none", NULL | |
26460 | }; | |
26461 | ||
26462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DropSource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26463 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26465 | if (obj1) { | |
26466 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
26467 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26468 | SWIG_fail; | |
26469 | if (arg2 == NULL) { | |
26470 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26471 | SWIG_fail; | |
26472 | } | |
26473 | } | |
26474 | if (obj2) { | |
26475 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor, | |
26476 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26477 | SWIG_fail; | |
26478 | if (arg3 == NULL) { | |
26479 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26480 | SWIG_fail; | |
26481 | } | |
26482 | } | |
26483 | if (obj3) { | |
26484 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxCursor, | |
26485 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26486 | SWIG_fail; | |
26487 | if (arg4 == NULL) { | |
26488 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26489 | SWIG_fail; | |
26490 | } | |
26491 | } | |
26492 | { | |
26493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26494 | result = (wxPyDropSource *)new wxPyDropSource(arg1,(wxCursor const &)*arg2,(wxCursor const &)*arg3,(wxCursor const &)*arg4); | |
26495 | ||
26496 | wxPyEndAllowThreads(__tstate); | |
26497 | if (PyErr_Occurred()) SWIG_fail; | |
26498 | } | |
26499 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropSource, 1); | |
26500 | return resultobj; | |
26501 | fail: | |
26502 | return NULL; | |
26503 | } | |
26504 | ||
26505 | ||
c32bde28 | 26506 | static PyObject *_wrap_DropSource__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26507 | PyObject *resultobj; |
26508 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
26509 | PyObject *arg2 = (PyObject *) 0 ; | |
26510 | PyObject *arg3 = (PyObject *) 0 ; | |
26511 | int arg4 ; | |
26512 | PyObject * obj0 = 0 ; | |
26513 | PyObject * obj1 = 0 ; | |
26514 | PyObject * obj2 = 0 ; | |
26515 | PyObject * obj3 = 0 ; | |
26516 | char *kwnames[] = { | |
26517 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
26518 | }; | |
26519 | ||
26520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropSource__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26521 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
26522 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26523 | arg2 = obj1; | |
26524 | arg3 = obj2; | |
c32bde28 | 26525 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
26526 | if (PyErr_Occurred()) SWIG_fail; |
26527 | { | |
26528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26529 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
26530 | ||
26531 | wxPyEndAllowThreads(__tstate); | |
26532 | if (PyErr_Occurred()) SWIG_fail; | |
26533 | } | |
26534 | Py_INCREF(Py_None); resultobj = Py_None; | |
26535 | return resultobj; | |
26536 | fail: | |
26537 | return NULL; | |
26538 | } | |
26539 | ||
26540 | ||
c32bde28 | 26541 | static PyObject *_wrap_delete_DropSource(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26542 | PyObject *resultobj; |
26543 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
26544 | PyObject * obj0 = 0 ; | |
26545 | char *kwnames[] = { | |
26546 | (char *) "self", NULL | |
26547 | }; | |
26548 | ||
26549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropSource",kwnames,&obj0)) goto fail; | |
26550 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
26551 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26552 | { | |
26553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26554 | delete arg1; | |
26555 | ||
26556 | wxPyEndAllowThreads(__tstate); | |
26557 | if (PyErr_Occurred()) SWIG_fail; | |
26558 | } | |
26559 | Py_INCREF(Py_None); resultobj = Py_None; | |
26560 | return resultobj; | |
26561 | fail: | |
26562 | return NULL; | |
26563 | } | |
26564 | ||
26565 | ||
c32bde28 | 26566 | static PyObject *_wrap_DropSource_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26567 | PyObject *resultobj; |
26568 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
26569 | wxDataObject *arg2 = 0 ; | |
26570 | PyObject * obj0 = 0 ; | |
26571 | PyObject * obj1 = 0 ; | |
26572 | char *kwnames[] = { | |
26573 | (char *) "self",(char *) "data", NULL | |
26574 | }; | |
26575 | ||
26576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_SetData",kwnames,&obj0,&obj1)) goto fail; | |
26577 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
26578 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26579 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
26580 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26581 | SWIG_fail; | |
26582 | if (arg2 == NULL) { | |
26583 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26584 | SWIG_fail; | |
26585 | } | |
26586 | { | |
26587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26588 | (arg1)->SetData(*arg2); | |
26589 | ||
26590 | wxPyEndAllowThreads(__tstate); | |
26591 | if (PyErr_Occurred()) SWIG_fail; | |
26592 | } | |
26593 | Py_INCREF(Py_None); resultobj = Py_None; | |
26594 | return resultobj; | |
26595 | fail: | |
26596 | return NULL; | |
26597 | } | |
26598 | ||
26599 | ||
c32bde28 | 26600 | static PyObject *_wrap_DropSource_GetDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26601 | PyObject *resultobj; |
26602 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
26603 | wxDataObject *result; | |
26604 | PyObject * obj0 = 0 ; | |
26605 | char *kwnames[] = { | |
26606 | (char *) "self", NULL | |
26607 | }; | |
26608 | ||
26609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropSource_GetDataObject",kwnames,&obj0)) goto fail; | |
26610 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
26611 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26612 | { | |
26613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26614 | result = (wxDataObject *)(arg1)->GetDataObject(); | |
26615 | ||
26616 | wxPyEndAllowThreads(__tstate); | |
26617 | if (PyErr_Occurred()) SWIG_fail; | |
26618 | } | |
26619 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0); | |
26620 | return resultobj; | |
26621 | fail: | |
26622 | return NULL; | |
26623 | } | |
26624 | ||
26625 | ||
c32bde28 | 26626 | static PyObject *_wrap_DropSource_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26627 | PyObject *resultobj; |
26628 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
26629 | int arg2 ; | |
26630 | wxCursor *arg3 = 0 ; | |
26631 | PyObject * obj0 = 0 ; | |
26632 | PyObject * obj1 = 0 ; | |
26633 | PyObject * obj2 = 0 ; | |
26634 | char *kwnames[] = { | |
26635 | (char *) "self",(char *) "res",(char *) "cursor", NULL | |
26636 | }; | |
26637 | ||
26638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropSource_SetCursor",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26639 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
26640 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 26641 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
26642 | if (PyErr_Occurred()) SWIG_fail; |
26643 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor, | |
26644 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26645 | SWIG_fail; | |
26646 | if (arg3 == NULL) { | |
26647 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26648 | SWIG_fail; | |
26649 | } | |
26650 | { | |
26651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26652 | (arg1)->SetCursor((wxDragResult )arg2,(wxCursor const &)*arg3); | |
26653 | ||
26654 | wxPyEndAllowThreads(__tstate); | |
26655 | if (PyErr_Occurred()) SWIG_fail; | |
26656 | } | |
26657 | Py_INCREF(Py_None); resultobj = Py_None; | |
26658 | return resultobj; | |
26659 | fail: | |
26660 | return NULL; | |
26661 | } | |
26662 | ||
26663 | ||
c32bde28 | 26664 | static PyObject *_wrap_DropSource_DoDragDrop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26665 | PyObject *resultobj; |
26666 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
26667 | int arg2 = (int) wxDrag_CopyOnly ; | |
26668 | int result; | |
26669 | PyObject * obj0 = 0 ; | |
26670 | PyObject * obj1 = 0 ; | |
26671 | char *kwnames[] = { | |
26672 | (char *) "self",(char *) "flags", NULL | |
26673 | }; | |
26674 | ||
26675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DropSource_DoDragDrop",kwnames,&obj0,&obj1)) goto fail; | |
26676 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
26677 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26678 | if (obj1) { | |
c32bde28 | 26679 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
26680 | if (PyErr_Occurred()) SWIG_fail; |
26681 | } | |
26682 | { | |
26683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26684 | result = (int)(arg1)->DoDragDrop(arg2); | |
26685 | ||
26686 | wxPyEndAllowThreads(__tstate); | |
26687 | if (PyErr_Occurred()) SWIG_fail; | |
26688 | } | |
c32bde28 | 26689 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
26690 | return resultobj; |
26691 | fail: | |
26692 | return NULL; | |
26693 | } | |
26694 | ||
26695 | ||
c32bde28 | 26696 | static PyObject *_wrap_DropSource_base_GiveFeedback(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26697 | PyObject *resultobj; |
26698 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
26699 | int arg2 ; | |
26700 | bool result; | |
26701 | PyObject * obj0 = 0 ; | |
26702 | PyObject * obj1 = 0 ; | |
26703 | char *kwnames[] = { | |
26704 | (char *) "self",(char *) "effect", NULL | |
26705 | }; | |
26706 | ||
26707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_base_GiveFeedback",kwnames,&obj0,&obj1)) goto fail; | |
26708 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource, | |
26709 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 26710 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
26711 | if (PyErr_Occurred()) SWIG_fail; |
26712 | { | |
26713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26714 | result = (bool)(arg1)->base_GiveFeedback((wxDragResult )arg2); | |
26715 | ||
26716 | wxPyEndAllowThreads(__tstate); | |
26717 | if (PyErr_Occurred()) SWIG_fail; | |
26718 | } | |
26719 | { | |
26720 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26721 | } | |
26722 | return resultobj; | |
26723 | fail: | |
26724 | return NULL; | |
26725 | } | |
26726 | ||
26727 | ||
c32bde28 | 26728 | static PyObject * DropSource_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
26729 | PyObject *obj; |
26730 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26731 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDropSource, obj); | |
26732 | Py_INCREF(obj); | |
26733 | return Py_BuildValue((char *)""); | |
26734 | } | |
c32bde28 | 26735 | static PyObject *_wrap_new_DropTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26736 | PyObject *resultobj; |
26737 | wxDataObject *arg1 = (wxDataObject *) NULL ; | |
26738 | wxPyDropTarget *result; | |
26739 | PyObject * obj0 = 0 ; | |
26740 | char *kwnames[] = { | |
26741 | (char *) "dataObject", NULL | |
26742 | }; | |
26743 | ||
26744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DropTarget",kwnames,&obj0)) goto fail; | |
26745 | if (obj0) { | |
26746 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject, | |
26747 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
26748 | } | |
26749 | { | |
26750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26751 | result = (wxPyDropTarget *)new wxPyDropTarget(arg1); | |
26752 | ||
26753 | wxPyEndAllowThreads(__tstate); | |
26754 | if (PyErr_Occurred()) SWIG_fail; | |
26755 | } | |
26756 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 1); | |
26757 | return resultobj; | |
26758 | fail: | |
26759 | return NULL; | |
26760 | } | |
26761 | ||
26762 | ||
c32bde28 | 26763 | static PyObject *_wrap_DropTarget__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26764 | PyObject *resultobj; |
26765 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26766 | PyObject *arg2 = (PyObject *) 0 ; | |
26767 | PyObject *arg3 = (PyObject *) 0 ; | |
26768 | PyObject * obj0 = 0 ; | |
26769 | PyObject * obj1 = 0 ; | |
26770 | PyObject * obj2 = 0 ; | |
26771 | char *kwnames[] = { | |
26772 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
26773 | }; | |
26774 | ||
26775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26776 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26778 | arg2 = obj1; | |
26779 | arg3 = obj2; | |
26780 | { | |
26781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26782 | (arg1)->_setCallbackInfo(arg2,arg3); | |
26783 | ||
26784 | wxPyEndAllowThreads(__tstate); | |
26785 | if (PyErr_Occurred()) SWIG_fail; | |
26786 | } | |
26787 | Py_INCREF(Py_None); resultobj = Py_None; | |
26788 | return resultobj; | |
26789 | fail: | |
26790 | return NULL; | |
26791 | } | |
26792 | ||
26793 | ||
c32bde28 | 26794 | static PyObject *_wrap_delete_DropTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26795 | PyObject *resultobj; |
26796 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26797 | PyObject * obj0 = 0 ; | |
26798 | char *kwnames[] = { | |
26799 | (char *) "self", NULL | |
26800 | }; | |
26801 | ||
26802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropTarget",kwnames,&obj0)) goto fail; | |
26803 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26804 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26805 | { | |
26806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26807 | delete arg1; | |
26808 | ||
26809 | wxPyEndAllowThreads(__tstate); | |
26810 | if (PyErr_Occurred()) SWIG_fail; | |
26811 | } | |
26812 | Py_INCREF(Py_None); resultobj = Py_None; | |
26813 | return resultobj; | |
26814 | fail: | |
26815 | return NULL; | |
26816 | } | |
26817 | ||
26818 | ||
c32bde28 | 26819 | static PyObject *_wrap_DropTarget_GetDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26820 | PyObject *resultobj; |
26821 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26822 | wxDataObject *result; | |
26823 | PyObject * obj0 = 0 ; | |
26824 | char *kwnames[] = { | |
26825 | (char *) "self", NULL | |
26826 | }; | |
26827 | ||
26828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDataObject",kwnames,&obj0)) goto fail; | |
26829 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26830 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26831 | { | |
26832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26833 | result = (wxDataObject *)(arg1)->GetDataObject(); | |
26834 | ||
26835 | wxPyEndAllowThreads(__tstate); | |
26836 | if (PyErr_Occurred()) SWIG_fail; | |
26837 | } | |
26838 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0); | |
26839 | return resultobj; | |
26840 | fail: | |
26841 | return NULL; | |
26842 | } | |
26843 | ||
26844 | ||
c32bde28 | 26845 | static PyObject *_wrap_DropTarget_SetDataObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26846 | PyObject *resultobj; |
26847 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26848 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
26849 | PyObject * obj0 = 0 ; | |
26850 | PyObject * obj1 = 0 ; | |
26851 | char *kwnames[] = { | |
26852 | (char *) "self",(char *) "dataObject", NULL | |
26853 | }; | |
26854 | ||
26855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDataObject",kwnames,&obj0,&obj1)) goto fail; | |
26856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26858 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
26859 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
26860 | { | |
26861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26862 | (arg1)->SetDataObject(arg2); | |
26863 | ||
26864 | wxPyEndAllowThreads(__tstate); | |
26865 | if (PyErr_Occurred()) SWIG_fail; | |
26866 | } | |
26867 | Py_INCREF(Py_None); resultobj = Py_None; | |
26868 | return resultobj; | |
26869 | fail: | |
26870 | return NULL; | |
26871 | } | |
26872 | ||
26873 | ||
c32bde28 | 26874 | static PyObject *_wrap_DropTarget_base_OnEnter(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26875 | PyObject *resultobj; |
26876 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26877 | int arg2 ; | |
26878 | int arg3 ; | |
26879 | int arg4 ; | |
26880 | int result; | |
26881 | PyObject * obj0 = 0 ; | |
26882 | PyObject * obj1 = 0 ; | |
26883 | PyObject * obj2 = 0 ; | |
26884 | PyObject * obj3 = 0 ; | |
26885 | char *kwnames[] = { | |
26886 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26887 | }; | |
26888 | ||
26889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26890 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26891 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 26892 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 26893 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 26894 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 26895 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 26896 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
26897 | if (PyErr_Occurred()) SWIG_fail; |
26898 | { | |
26899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26900 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
26901 | ||
26902 | wxPyEndAllowThreads(__tstate); | |
26903 | if (PyErr_Occurred()) SWIG_fail; | |
26904 | } | |
c32bde28 | 26905 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
26906 | return resultobj; |
26907 | fail: | |
26908 | return NULL; | |
26909 | } | |
26910 | ||
26911 | ||
c32bde28 | 26912 | static PyObject *_wrap_DropTarget_base_OnDragOver(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26913 | PyObject *resultobj; |
26914 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26915 | int arg2 ; | |
26916 | int arg3 ; | |
26917 | int arg4 ; | |
26918 | int result; | |
26919 | PyObject * obj0 = 0 ; | |
26920 | PyObject * obj1 = 0 ; | |
26921 | PyObject * obj2 = 0 ; | |
26922 | PyObject * obj3 = 0 ; | |
26923 | char *kwnames[] = { | |
26924 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
26925 | }; | |
26926 | ||
26927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26928 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 26930 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 26931 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 26932 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 26933 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 26934 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
26935 | if (PyErr_Occurred()) SWIG_fail; |
26936 | { | |
26937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26938 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
26939 | ||
26940 | wxPyEndAllowThreads(__tstate); | |
26941 | if (PyErr_Occurred()) SWIG_fail; | |
26942 | } | |
c32bde28 | 26943 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
26944 | return resultobj; |
26945 | fail: | |
26946 | return NULL; | |
26947 | } | |
26948 | ||
26949 | ||
c32bde28 | 26950 | static PyObject *_wrap_DropTarget_base_OnLeave(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26951 | PyObject *resultobj; |
26952 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26953 | PyObject * obj0 = 0 ; | |
26954 | char *kwnames[] = { | |
26955 | (char *) "self", NULL | |
26956 | }; | |
26957 | ||
26958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
26959 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26960 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26961 | { | |
26962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26963 | (arg1)->base_OnLeave(); | |
26964 | ||
26965 | wxPyEndAllowThreads(__tstate); | |
26966 | if (PyErr_Occurred()) SWIG_fail; | |
26967 | } | |
26968 | Py_INCREF(Py_None); resultobj = Py_None; | |
26969 | return resultobj; | |
26970 | fail: | |
26971 | return NULL; | |
26972 | } | |
26973 | ||
26974 | ||
c32bde28 | 26975 | static PyObject *_wrap_DropTarget_base_OnDrop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26976 | PyObject *resultobj; |
26977 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
26978 | int arg2 ; | |
26979 | int arg3 ; | |
26980 | bool result; | |
26981 | PyObject * obj0 = 0 ; | |
26982 | PyObject * obj1 = 0 ; | |
26983 | PyObject * obj2 = 0 ; | |
26984 | char *kwnames[] = { | |
26985 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26986 | }; | |
26987 | ||
26988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26989 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
26990 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 26991 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 26992 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 26993 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
26994 | if (PyErr_Occurred()) SWIG_fail; |
26995 | { | |
26996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26997 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
26998 | ||
26999 | wxPyEndAllowThreads(__tstate); | |
27000 | if (PyErr_Occurred()) SWIG_fail; | |
27001 | } | |
27002 | { | |
27003 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27004 | } | |
27005 | return resultobj; | |
27006 | fail: | |
27007 | return NULL; | |
27008 | } | |
27009 | ||
27010 | ||
c32bde28 | 27011 | static PyObject *_wrap_DropTarget_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27012 | PyObject *resultobj; |
27013 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
27014 | bool result; | |
27015 | PyObject * obj0 = 0 ; | |
27016 | char *kwnames[] = { | |
27017 | (char *) "self", NULL | |
27018 | }; | |
27019 | ||
27020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetData",kwnames,&obj0)) goto fail; | |
27021 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget, | |
27022 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27023 | { | |
27024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27025 | result = (bool)(arg1)->GetData(); | |
27026 | ||
27027 | wxPyEndAllowThreads(__tstate); | |
27028 | if (PyErr_Occurred()) SWIG_fail; | |
27029 | } | |
27030 | { | |
27031 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27032 | } | |
27033 | return resultobj; | |
27034 | fail: | |
27035 | return NULL; | |
27036 | } | |
27037 | ||
27038 | ||
c32bde28 | 27039 | static PyObject * DropTarget_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
27040 | PyObject *obj; |
27041 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27042 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDropTarget, obj); | |
27043 | Py_INCREF(obj); | |
27044 | return Py_BuildValue((char *)""); | |
27045 | } | |
c32bde28 | 27046 | static PyObject *_wrap_new_TextDropTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27047 | PyObject *resultobj; |
27048 | wxPyTextDropTarget *result; | |
27049 | char *kwnames[] = { | |
27050 | NULL | |
27051 | }; | |
27052 | ||
27053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TextDropTarget",kwnames)) goto fail; | |
27054 | { | |
27055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27056 | result = (wxPyTextDropTarget *)new wxPyTextDropTarget(); | |
27057 | ||
27058 | wxPyEndAllowThreads(__tstate); | |
27059 | if (PyErr_Occurred()) SWIG_fail; | |
27060 | } | |
27061 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDropTarget, 1); | |
27062 | return resultobj; | |
27063 | fail: | |
27064 | return NULL; | |
27065 | } | |
27066 | ||
27067 | ||
c32bde28 | 27068 | static PyObject *_wrap_TextDropTarget__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27069 | PyObject *resultobj; |
27070 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
27071 | PyObject *arg2 = (PyObject *) 0 ; | |
27072 | PyObject *arg3 = (PyObject *) 0 ; | |
27073 | PyObject * obj0 = 0 ; | |
27074 | PyObject * obj1 = 0 ; | |
27075 | PyObject * obj2 = 0 ; | |
27076 | char *kwnames[] = { | |
27077 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
27078 | }; | |
27079 | ||
27080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27081 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, | |
27082 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27083 | arg2 = obj1; | |
27084 | arg3 = obj2; | |
27085 | { | |
27086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27087 | (arg1)->_setCallbackInfo(arg2,arg3); | |
27088 | ||
27089 | wxPyEndAllowThreads(__tstate); | |
27090 | if (PyErr_Occurred()) SWIG_fail; | |
27091 | } | |
27092 | Py_INCREF(Py_None); resultobj = Py_None; | |
27093 | return resultobj; | |
27094 | fail: | |
27095 | return NULL; | |
27096 | } | |
27097 | ||
27098 | ||
c32bde28 | 27099 | static PyObject *_wrap_TextDropTarget_base_OnEnter(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27100 | PyObject *resultobj; |
27101 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
27102 | int arg2 ; | |
27103 | int arg3 ; | |
27104 | int arg4 ; | |
27105 | int result; | |
27106 | PyObject * obj0 = 0 ; | |
27107 | PyObject * obj1 = 0 ; | |
27108 | PyObject * obj2 = 0 ; | |
27109 | PyObject * obj3 = 0 ; | |
27110 | char *kwnames[] = { | |
27111 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
27112 | }; | |
27113 | ||
27114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
27115 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, | |
27116 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 27117 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 27118 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 27119 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 27120 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 27121 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
27122 | if (PyErr_Occurred()) SWIG_fail; |
27123 | { | |
27124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27125 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
27126 | ||
27127 | wxPyEndAllowThreads(__tstate); | |
27128 | if (PyErr_Occurred()) SWIG_fail; | |
27129 | } | |
c32bde28 | 27130 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27131 | return resultobj; |
27132 | fail: | |
27133 | return NULL; | |
27134 | } | |
27135 | ||
27136 | ||
c32bde28 | 27137 | static PyObject *_wrap_TextDropTarget_base_OnDragOver(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27138 | PyObject *resultobj; |
27139 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
27140 | int arg2 ; | |
27141 | int arg3 ; | |
27142 | int arg4 ; | |
27143 | int result; | |
27144 | PyObject * obj0 = 0 ; | |
27145 | PyObject * obj1 = 0 ; | |
27146 | PyObject * obj2 = 0 ; | |
27147 | PyObject * obj3 = 0 ; | |
27148 | char *kwnames[] = { | |
27149 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
27150 | }; | |
27151 | ||
27152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
27153 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, | |
27154 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 27155 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 27156 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 27157 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 27158 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 27159 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
27160 | if (PyErr_Occurred()) SWIG_fail; |
27161 | { | |
27162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27163 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
27164 | ||
27165 | wxPyEndAllowThreads(__tstate); | |
27166 | if (PyErr_Occurred()) SWIG_fail; | |
27167 | } | |
c32bde28 | 27168 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27169 | return resultobj; |
27170 | fail: | |
27171 | return NULL; | |
27172 | } | |
27173 | ||
27174 | ||
c32bde28 | 27175 | static PyObject *_wrap_TextDropTarget_base_OnLeave(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27176 | PyObject *resultobj; |
27177 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
27178 | PyObject * obj0 = 0 ; | |
27179 | char *kwnames[] = { | |
27180 | (char *) "self", NULL | |
27181 | }; | |
27182 | ||
27183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
27184 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, | |
27185 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27186 | { | |
27187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27188 | (arg1)->base_OnLeave(); | |
27189 | ||
27190 | wxPyEndAllowThreads(__tstate); | |
27191 | if (PyErr_Occurred()) SWIG_fail; | |
27192 | } | |
27193 | Py_INCREF(Py_None); resultobj = Py_None; | |
27194 | return resultobj; | |
27195 | fail: | |
27196 | return NULL; | |
27197 | } | |
27198 | ||
27199 | ||
c32bde28 | 27200 | static PyObject *_wrap_TextDropTarget_base_OnDrop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27201 | PyObject *resultobj; |
27202 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
27203 | int arg2 ; | |
27204 | int arg3 ; | |
27205 | bool result; | |
27206 | PyObject * obj0 = 0 ; | |
27207 | PyObject * obj1 = 0 ; | |
27208 | PyObject * obj2 = 0 ; | |
27209 | char *kwnames[] = { | |
27210 | (char *) "self",(char *) "x",(char *) "y", NULL | |
27211 | }; | |
27212 | ||
27213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27214 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, | |
27215 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 27216 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 27217 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 27218 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
27219 | if (PyErr_Occurred()) SWIG_fail; |
27220 | { | |
27221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27222 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
27223 | ||
27224 | wxPyEndAllowThreads(__tstate); | |
27225 | if (PyErr_Occurred()) SWIG_fail; | |
27226 | } | |
27227 | { | |
27228 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27229 | } | |
27230 | return resultobj; | |
27231 | fail: | |
27232 | return NULL; | |
27233 | } | |
27234 | ||
27235 | ||
c32bde28 | 27236 | static PyObject *_wrap_TextDropTarget_base_OnData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27237 | PyObject *resultobj; |
27238 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
27239 | int arg2 ; | |
27240 | int arg3 ; | |
27241 | int arg4 ; | |
27242 | int result; | |
27243 | PyObject * obj0 = 0 ; | |
27244 | PyObject * obj1 = 0 ; | |
27245 | PyObject * obj2 = 0 ; | |
27246 | PyObject * obj3 = 0 ; | |
27247 | char *kwnames[] = { | |
27248 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
27249 | }; | |
27250 | ||
27251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
27252 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget, | |
27253 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 27254 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 27255 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 27256 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 27257 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 27258 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
27259 | if (PyErr_Occurred()) SWIG_fail; |
27260 | { | |
27261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27262 | result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4); | |
27263 | ||
27264 | wxPyEndAllowThreads(__tstate); | |
27265 | if (PyErr_Occurred()) SWIG_fail; | |
27266 | } | |
c32bde28 | 27267 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27268 | return resultobj; |
27269 | fail: | |
27270 | return NULL; | |
27271 | } | |
27272 | ||
27273 | ||
c32bde28 | 27274 | static PyObject * TextDropTarget_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
27275 | PyObject *obj; |
27276 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27277 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDropTarget, obj); | |
27278 | Py_INCREF(obj); | |
27279 | return Py_BuildValue((char *)""); | |
27280 | } | |
c32bde28 | 27281 | static PyObject *_wrap_new_FileDropTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27282 | PyObject *resultobj; |
27283 | wxPyFileDropTarget *result; | |
27284 | char *kwnames[] = { | |
27285 | NULL | |
27286 | }; | |
27287 | ||
27288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDropTarget",kwnames)) goto fail; | |
27289 | { | |
27290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27291 | result = (wxPyFileDropTarget *)new wxPyFileDropTarget(); | |
27292 | ||
27293 | wxPyEndAllowThreads(__tstate); | |
27294 | if (PyErr_Occurred()) SWIG_fail; | |
27295 | } | |
27296 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileDropTarget, 1); | |
27297 | return resultobj; | |
27298 | fail: | |
27299 | return NULL; | |
27300 | } | |
27301 | ||
27302 | ||
c32bde28 | 27303 | static PyObject *_wrap_FileDropTarget__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27304 | PyObject *resultobj; |
27305 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
27306 | PyObject *arg2 = (PyObject *) 0 ; | |
27307 | PyObject *arg3 = (PyObject *) 0 ; | |
27308 | PyObject * obj0 = 0 ; | |
27309 | PyObject * obj1 = 0 ; | |
27310 | PyObject * obj2 = 0 ; | |
27311 | char *kwnames[] = { | |
27312 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
27313 | }; | |
27314 | ||
27315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27316 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, | |
27317 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27318 | arg2 = obj1; | |
27319 | arg3 = obj2; | |
27320 | { | |
27321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27322 | (arg1)->_setCallbackInfo(arg2,arg3); | |
27323 | ||
27324 | wxPyEndAllowThreads(__tstate); | |
27325 | if (PyErr_Occurred()) SWIG_fail; | |
27326 | } | |
27327 | Py_INCREF(Py_None); resultobj = Py_None; | |
27328 | return resultobj; | |
27329 | fail: | |
27330 | return NULL; | |
27331 | } | |
27332 | ||
27333 | ||
c32bde28 | 27334 | static PyObject *_wrap_FileDropTarget_base_OnEnter(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27335 | PyObject *resultobj; |
27336 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
27337 | int arg2 ; | |
27338 | int arg3 ; | |
27339 | int arg4 ; | |
27340 | int result; | |
27341 | PyObject * obj0 = 0 ; | |
27342 | PyObject * obj1 = 0 ; | |
27343 | PyObject * obj2 = 0 ; | |
27344 | PyObject * obj3 = 0 ; | |
27345 | char *kwnames[] = { | |
27346 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
27347 | }; | |
27348 | ||
27349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
27350 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, | |
27351 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 27352 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 27353 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 27354 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 27355 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 27356 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
27357 | if (PyErr_Occurred()) SWIG_fail; |
27358 | { | |
27359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27360 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
27361 | ||
27362 | wxPyEndAllowThreads(__tstate); | |
27363 | if (PyErr_Occurred()) SWIG_fail; | |
27364 | } | |
c32bde28 | 27365 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27366 | return resultobj; |
27367 | fail: | |
27368 | return NULL; | |
27369 | } | |
27370 | ||
27371 | ||
c32bde28 | 27372 | static PyObject *_wrap_FileDropTarget_base_OnDragOver(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27373 | PyObject *resultobj; |
27374 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
27375 | int arg2 ; | |
27376 | int arg3 ; | |
27377 | int arg4 ; | |
27378 | int result; | |
27379 | PyObject * obj0 = 0 ; | |
27380 | PyObject * obj1 = 0 ; | |
27381 | PyObject * obj2 = 0 ; | |
27382 | PyObject * obj3 = 0 ; | |
27383 | char *kwnames[] = { | |
27384 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
27385 | }; | |
27386 | ||
27387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
27388 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, | |
27389 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 27390 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 27391 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 27392 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 27393 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 27394 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
27395 | if (PyErr_Occurred()) SWIG_fail; |
27396 | { | |
27397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27398 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
27399 | ||
27400 | wxPyEndAllowThreads(__tstate); | |
27401 | if (PyErr_Occurred()) SWIG_fail; | |
27402 | } | |
c32bde28 | 27403 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27404 | return resultobj; |
27405 | fail: | |
27406 | return NULL; | |
27407 | } | |
27408 | ||
27409 | ||
c32bde28 | 27410 | static PyObject *_wrap_FileDropTarget_base_OnLeave(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27411 | PyObject *resultobj; |
27412 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
27413 | PyObject * obj0 = 0 ; | |
27414 | char *kwnames[] = { | |
27415 | (char *) "self", NULL | |
27416 | }; | |
27417 | ||
27418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
27419 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, | |
27420 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27421 | { | |
27422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27423 | (arg1)->base_OnLeave(); | |
27424 | ||
27425 | wxPyEndAllowThreads(__tstate); | |
27426 | if (PyErr_Occurred()) SWIG_fail; | |
27427 | } | |
27428 | Py_INCREF(Py_None); resultobj = Py_None; | |
27429 | return resultobj; | |
27430 | fail: | |
27431 | return NULL; | |
27432 | } | |
27433 | ||
27434 | ||
c32bde28 | 27435 | static PyObject *_wrap_FileDropTarget_base_OnDrop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27436 | PyObject *resultobj; |
27437 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
27438 | int arg2 ; | |
27439 | int arg3 ; | |
27440 | bool result; | |
27441 | PyObject * obj0 = 0 ; | |
27442 | PyObject * obj1 = 0 ; | |
27443 | PyObject * obj2 = 0 ; | |
27444 | char *kwnames[] = { | |
27445 | (char *) "self",(char *) "x",(char *) "y", NULL | |
27446 | }; | |
27447 | ||
27448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27449 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, | |
27450 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 27451 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 27452 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 27453 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
27454 | if (PyErr_Occurred()) SWIG_fail; |
27455 | { | |
27456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27457 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
27458 | ||
27459 | wxPyEndAllowThreads(__tstate); | |
27460 | if (PyErr_Occurred()) SWIG_fail; | |
27461 | } | |
27462 | { | |
27463 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27464 | } | |
27465 | return resultobj; | |
27466 | fail: | |
27467 | return NULL; | |
27468 | } | |
27469 | ||
27470 | ||
c32bde28 | 27471 | static PyObject *_wrap_FileDropTarget_base_OnData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27472 | PyObject *resultobj; |
27473 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
27474 | int arg2 ; | |
27475 | int arg3 ; | |
27476 | int arg4 ; | |
27477 | int result; | |
27478 | PyObject * obj0 = 0 ; | |
27479 | PyObject * obj1 = 0 ; | |
27480 | PyObject * obj2 = 0 ; | |
27481 | PyObject * obj3 = 0 ; | |
27482 | char *kwnames[] = { | |
27483 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
27484 | }; | |
27485 | ||
27486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
27487 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget, | |
27488 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 27489 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 27490 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 27491 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 27492 | if (PyErr_Occurred()) SWIG_fail; |
c32bde28 | 27493 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
27494 | if (PyErr_Occurred()) SWIG_fail; |
27495 | { | |
27496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27497 | result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4); | |
27498 | ||
27499 | wxPyEndAllowThreads(__tstate); | |
27500 | if (PyErr_Occurred()) SWIG_fail; | |
27501 | } | |
c32bde28 | 27502 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27503 | return resultobj; |
27504 | fail: | |
27505 | return NULL; | |
27506 | } | |
27507 | ||
27508 | ||
c32bde28 | 27509 | static PyObject * FileDropTarget_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
27510 | PyObject *obj; |
27511 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27512 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFileDropTarget, obj); | |
27513 | Py_INCREF(obj); | |
27514 | return Py_BuildValue((char *)""); | |
27515 | } | |
c32bde28 | 27516 | static PyObject *_wrap_new_Clipboard(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27517 | PyObject *resultobj; |
27518 | wxClipboard *result; | |
27519 | char *kwnames[] = { | |
27520 | NULL | |
27521 | }; | |
27522 | ||
27523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Clipboard",kwnames)) goto fail; | |
27524 | { | |
27525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27526 | result = (wxClipboard *)new wxClipboard(); | |
27527 | ||
27528 | wxPyEndAllowThreads(__tstate); | |
27529 | if (PyErr_Occurred()) SWIG_fail; | |
27530 | } | |
27531 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 1); | |
27532 | return resultobj; | |
27533 | fail: | |
27534 | return NULL; | |
27535 | } | |
27536 | ||
27537 | ||
c32bde28 | 27538 | static PyObject *_wrap_delete_Clipboard(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27539 | PyObject *resultobj; |
27540 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27541 | PyObject * obj0 = 0 ; | |
27542 | char *kwnames[] = { | |
27543 | (char *) "self", NULL | |
27544 | }; | |
27545 | ||
27546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Clipboard",kwnames,&obj0)) goto fail; | |
27547 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27548 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27549 | { | |
27550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27551 | delete arg1; | |
27552 | ||
27553 | wxPyEndAllowThreads(__tstate); | |
27554 | if (PyErr_Occurred()) SWIG_fail; | |
27555 | } | |
27556 | Py_INCREF(Py_None); resultobj = Py_None; | |
27557 | return resultobj; | |
27558 | fail: | |
27559 | return NULL; | |
27560 | } | |
27561 | ||
27562 | ||
c32bde28 | 27563 | static PyObject *_wrap_Clipboard_Open(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27564 | PyObject *resultobj; |
27565 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27566 | bool result; | |
27567 | PyObject * obj0 = 0 ; | |
27568 | char *kwnames[] = { | |
27569 | (char *) "self", NULL | |
27570 | }; | |
27571 | ||
27572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Open",kwnames,&obj0)) goto fail; | |
27573 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27574 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27575 | { | |
27576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27577 | result = (bool)(arg1)->Open(); | |
27578 | ||
27579 | wxPyEndAllowThreads(__tstate); | |
27580 | if (PyErr_Occurred()) SWIG_fail; | |
27581 | } | |
27582 | { | |
27583 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27584 | } | |
27585 | return resultobj; | |
27586 | fail: | |
27587 | return NULL; | |
27588 | } | |
27589 | ||
27590 | ||
c32bde28 | 27591 | static PyObject *_wrap_Clipboard_Close(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27592 | PyObject *resultobj; |
27593 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27594 | PyObject * obj0 = 0 ; | |
27595 | char *kwnames[] = { | |
27596 | (char *) "self", NULL | |
27597 | }; | |
27598 | ||
27599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Close",kwnames,&obj0)) goto fail; | |
27600 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27601 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27602 | { | |
27603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27604 | (arg1)->Close(); | |
27605 | ||
27606 | wxPyEndAllowThreads(__tstate); | |
27607 | if (PyErr_Occurred()) SWIG_fail; | |
27608 | } | |
27609 | Py_INCREF(Py_None); resultobj = Py_None; | |
27610 | return resultobj; | |
27611 | fail: | |
27612 | return NULL; | |
27613 | } | |
27614 | ||
27615 | ||
c32bde28 | 27616 | static PyObject *_wrap_Clipboard_IsOpened(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27617 | PyObject *resultobj; |
27618 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27619 | bool result; | |
27620 | PyObject * obj0 = 0 ; | |
27621 | char *kwnames[] = { | |
27622 | (char *) "self", NULL | |
27623 | }; | |
27624 | ||
27625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_IsOpened",kwnames,&obj0)) goto fail; | |
27626 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27627 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27628 | { | |
27629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27630 | result = (bool)((wxClipboard const *)arg1)->IsOpened(); | |
27631 | ||
27632 | wxPyEndAllowThreads(__tstate); | |
27633 | if (PyErr_Occurred()) SWIG_fail; | |
27634 | } | |
27635 | { | |
27636 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27637 | } | |
27638 | return resultobj; | |
27639 | fail: | |
27640 | return NULL; | |
27641 | } | |
27642 | ||
27643 | ||
c32bde28 | 27644 | static PyObject *_wrap_Clipboard_AddData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27645 | PyObject *resultobj; |
27646 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27647 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
27648 | bool result; | |
27649 | PyObject * obj0 = 0 ; | |
27650 | PyObject * obj1 = 0 ; | |
27651 | char *kwnames[] = { | |
27652 | (char *) "self",(char *) "data", NULL | |
27653 | }; | |
27654 | ||
27655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_AddData",kwnames,&obj0,&obj1)) goto fail; | |
27656 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27657 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27658 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
27659 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
27660 | { | |
27661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27662 | result = (bool)(arg1)->AddData(arg2); | |
27663 | ||
27664 | wxPyEndAllowThreads(__tstate); | |
27665 | if (PyErr_Occurred()) SWIG_fail; | |
27666 | } | |
27667 | { | |
27668 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27669 | } | |
27670 | return resultobj; | |
27671 | fail: | |
27672 | return NULL; | |
27673 | } | |
27674 | ||
27675 | ||
c32bde28 | 27676 | static PyObject *_wrap_Clipboard_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27677 | PyObject *resultobj; |
27678 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27679 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
27680 | bool result; | |
27681 | PyObject * obj0 = 0 ; | |
27682 | PyObject * obj1 = 0 ; | |
27683 | char *kwnames[] = { | |
27684 | (char *) "self",(char *) "data", NULL | |
27685 | }; | |
27686 | ||
27687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_SetData",kwnames,&obj0,&obj1)) goto fail; | |
27688 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27689 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27690 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
27691 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
27692 | { | |
27693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27694 | result = (bool)(arg1)->SetData(arg2); | |
27695 | ||
27696 | wxPyEndAllowThreads(__tstate); | |
27697 | if (PyErr_Occurred()) SWIG_fail; | |
27698 | } | |
27699 | { | |
27700 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27701 | } | |
27702 | return resultobj; | |
27703 | fail: | |
27704 | return NULL; | |
27705 | } | |
27706 | ||
27707 | ||
c32bde28 | 27708 | static PyObject *_wrap_Clipboard_IsSupported(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27709 | PyObject *resultobj; |
27710 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27711 | wxDataFormat *arg2 = 0 ; | |
27712 | bool result; | |
27713 | PyObject * obj0 = 0 ; | |
27714 | PyObject * obj1 = 0 ; | |
27715 | char *kwnames[] = { | |
27716 | (char *) "self",(char *) "format", NULL | |
27717 | }; | |
27718 | ||
27719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_IsSupported",kwnames,&obj0,&obj1)) goto fail; | |
27720 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27721 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27722 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat, | |
27723 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27724 | SWIG_fail; | |
27725 | if (arg2 == NULL) { | |
27726 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27727 | SWIG_fail; | |
27728 | } | |
27729 | { | |
27730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27731 | result = (bool)(arg1)->IsSupported((wxDataFormat const &)*arg2); | |
27732 | ||
27733 | wxPyEndAllowThreads(__tstate); | |
27734 | if (PyErr_Occurred()) SWIG_fail; | |
27735 | } | |
27736 | { | |
27737 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27738 | } | |
27739 | return resultobj; | |
27740 | fail: | |
27741 | return NULL; | |
27742 | } | |
27743 | ||
27744 | ||
c32bde28 | 27745 | static PyObject *_wrap_Clipboard_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27746 | PyObject *resultobj; |
27747 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27748 | wxDataObject *arg2 = 0 ; | |
27749 | bool result; | |
27750 | PyObject * obj0 = 0 ; | |
27751 | PyObject * obj1 = 0 ; | |
27752 | char *kwnames[] = { | |
27753 | (char *) "self",(char *) "data", NULL | |
27754 | }; | |
27755 | ||
27756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_GetData",kwnames,&obj0,&obj1)) goto fail; | |
27757 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27758 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27759 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject, | |
27760 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27761 | SWIG_fail; | |
27762 | if (arg2 == NULL) { | |
27763 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27764 | SWIG_fail; | |
27765 | } | |
27766 | { | |
27767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27768 | result = (bool)(arg1)->GetData(*arg2); | |
27769 | ||
27770 | wxPyEndAllowThreads(__tstate); | |
27771 | if (PyErr_Occurred()) SWIG_fail; | |
27772 | } | |
27773 | { | |
27774 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27775 | } | |
27776 | return resultobj; | |
27777 | fail: | |
27778 | return NULL; | |
27779 | } | |
27780 | ||
27781 | ||
c32bde28 | 27782 | static PyObject *_wrap_Clipboard_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27783 | PyObject *resultobj; |
27784 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27785 | PyObject * obj0 = 0 ; | |
27786 | char *kwnames[] = { | |
27787 | (char *) "self", NULL | |
27788 | }; | |
27789 | ||
27790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Clear",kwnames,&obj0)) goto fail; | |
27791 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27792 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27793 | { | |
27794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27795 | (arg1)->Clear(); | |
27796 | ||
27797 | wxPyEndAllowThreads(__tstate); | |
27798 | if (PyErr_Occurred()) SWIG_fail; | |
27799 | } | |
27800 | Py_INCREF(Py_None); resultobj = Py_None; | |
27801 | return resultobj; | |
27802 | fail: | |
27803 | return NULL; | |
27804 | } | |
27805 | ||
27806 | ||
c32bde28 | 27807 | static PyObject *_wrap_Clipboard_Flush(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27808 | PyObject *resultobj; |
27809 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
27810 | bool result; | |
27811 | PyObject * obj0 = 0 ; | |
27812 | char *kwnames[] = { | |
27813 | (char *) "self", NULL | |
27814 | }; | |
27815 | ||
27816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Flush",kwnames,&obj0)) goto fail; | |
27817 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27818 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27819 | { | |
27820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27821 | result = (bool)(arg1)->Flush(); | |
27822 | ||
27823 | wxPyEndAllowThreads(__tstate); | |
27824 | if (PyErr_Occurred()) SWIG_fail; | |
27825 | } | |
27826 | { | |
27827 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27828 | } | |
27829 | return resultobj; | |
27830 | fail: | |
27831 | return NULL; | |
27832 | } | |
27833 | ||
27834 | ||
c32bde28 | 27835 | static PyObject *_wrap_Clipboard_UsePrimarySelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27836 | PyObject *resultobj; |
27837 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
ae8162c8 | 27838 | bool arg2 = (bool) true ; |
d55e5bfc RD |
27839 | PyObject * obj0 = 0 ; |
27840 | PyObject * obj1 = 0 ; | |
27841 | char *kwnames[] = { | |
27842 | (char *) "self",(char *) "primary", NULL | |
27843 | }; | |
27844 | ||
27845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Clipboard_UsePrimarySelection",kwnames,&obj0,&obj1)) goto fail; | |
27846 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27848 | if (obj1) { | |
c32bde28 | 27849 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
27850 | if (PyErr_Occurred()) SWIG_fail; |
27851 | } | |
27852 | { | |
27853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27854 | (arg1)->UsePrimarySelection(arg2); | |
27855 | ||
27856 | wxPyEndAllowThreads(__tstate); | |
27857 | if (PyErr_Occurred()) SWIG_fail; | |
27858 | } | |
27859 | Py_INCREF(Py_None); resultobj = Py_None; | |
27860 | return resultobj; | |
27861 | fail: | |
27862 | return NULL; | |
27863 | } | |
27864 | ||
27865 | ||
c32bde28 | 27866 | static PyObject *_wrap_Clipboard_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
a001823c RD |
27867 | PyObject *resultobj; |
27868 | wxClipboard *result; | |
27869 | char *kwnames[] = { | |
27870 | NULL | |
27871 | }; | |
27872 | ||
27873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Clipboard_Get",kwnames)) goto fail; | |
27874 | { | |
27875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27876 | result = (wxClipboard *)wxClipboard::Get(); | |
27877 | ||
27878 | wxPyEndAllowThreads(__tstate); | |
27879 | if (PyErr_Occurred()) SWIG_fail; | |
27880 | } | |
27881 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 0); | |
27882 | return resultobj; | |
27883 | fail: | |
27884 | return NULL; | |
27885 | } | |
27886 | ||
27887 | ||
c32bde28 | 27888 | static PyObject * Clipboard_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
27889 | PyObject *obj; |
27890 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27891 | SWIG_TypeClientData(SWIGTYPE_p_wxClipboard, obj); | |
27892 | Py_INCREF(obj); | |
27893 | return Py_BuildValue((char *)""); | |
27894 | } | |
c32bde28 | 27895 | static PyObject *_wrap_new_ClipboardLocker(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27896 | PyObject *resultobj; |
27897 | wxClipboard *arg1 = (wxClipboard *) NULL ; | |
27898 | wxClipboardLocker *result; | |
27899 | PyObject * obj0 = 0 ; | |
27900 | char *kwnames[] = { | |
27901 | (char *) "clipboard", NULL | |
27902 | }; | |
27903 | ||
27904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ClipboardLocker",kwnames,&obj0)) goto fail; | |
27905 | if (obj0) { | |
27906 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard, | |
27907 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27908 | } | |
27909 | { | |
27910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27911 | result = (wxClipboardLocker *)new wxClipboardLocker(arg1); | |
27912 | ||
27913 | wxPyEndAllowThreads(__tstate); | |
27914 | if (PyErr_Occurred()) SWIG_fail; | |
27915 | } | |
27916 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboardLocker, 1); | |
27917 | return resultobj; | |
27918 | fail: | |
27919 | return NULL; | |
27920 | } | |
27921 | ||
27922 | ||
c32bde28 | 27923 | static PyObject *_wrap_delete_ClipboardLocker(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27924 | PyObject *resultobj; |
27925 | wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ; | |
27926 | PyObject * obj0 = 0 ; | |
27927 | char *kwnames[] = { | |
27928 | (char *) "self", NULL | |
27929 | }; | |
27930 | ||
27931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ClipboardLocker",kwnames,&obj0)) goto fail; | |
27932 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker, | |
27933 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27934 | { | |
27935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27936 | delete arg1; | |
27937 | ||
27938 | wxPyEndAllowThreads(__tstate); | |
27939 | if (PyErr_Occurred()) SWIG_fail; | |
27940 | } | |
27941 | Py_INCREF(Py_None); resultobj = Py_None; | |
27942 | return resultobj; | |
27943 | fail: | |
27944 | return NULL; | |
27945 | } | |
27946 | ||
27947 | ||
c32bde28 | 27948 | static PyObject *_wrap_ClipboardLocker___nonzero__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27949 | PyObject *resultobj; |
27950 | wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ; | |
27951 | bool result; | |
27952 | PyObject * obj0 = 0 ; | |
27953 | char *kwnames[] = { | |
27954 | (char *) "self", NULL | |
27955 | }; | |
27956 | ||
27957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ClipboardLocker___nonzero__",kwnames,&obj0)) goto fail; | |
27958 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker, | |
27959 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27960 | { | |
27961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27962 | result = (bool)wxClipboardLocker___nonzero__(arg1); | |
27963 | ||
27964 | wxPyEndAllowThreads(__tstate); | |
27965 | if (PyErr_Occurred()) SWIG_fail; | |
27966 | } | |
27967 | { | |
27968 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27969 | } | |
27970 | return resultobj; | |
27971 | fail: | |
27972 | return NULL; | |
27973 | } | |
27974 | ||
27975 | ||
c32bde28 | 27976 | static PyObject * ClipboardLocker_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
27977 | PyObject *obj; |
27978 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27979 | SWIG_TypeClientData(SWIGTYPE_p_wxClipboardLocker, obj); | |
27980 | Py_INCREF(obj); | |
27981 | return Py_BuildValue((char *)""); | |
27982 | } | |
c32bde28 | 27983 | static PyObject *_wrap_new_VideoMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27984 | PyObject *resultobj; |
27985 | int arg1 = (int) 0 ; | |
27986 | int arg2 = (int) 0 ; | |
27987 | int arg3 = (int) 0 ; | |
27988 | int arg4 = (int) 0 ; | |
27989 | wxVideoMode *result; | |
27990 | PyObject * obj0 = 0 ; | |
27991 | PyObject * obj1 = 0 ; | |
27992 | PyObject * obj2 = 0 ; | |
27993 | PyObject * obj3 = 0 ; | |
27994 | char *kwnames[] = { | |
27995 | (char *) "width",(char *) "height",(char *) "depth",(char *) "freq", NULL | |
27996 | }; | |
27997 | ||
27998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_VideoMode",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
27999 | if (obj0) { | |
c32bde28 | 28000 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
28001 | if (PyErr_Occurred()) SWIG_fail; |
28002 | } | |
28003 | if (obj1) { | |
c32bde28 | 28004 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
28005 | if (PyErr_Occurred()) SWIG_fail; |
28006 | } | |
28007 | if (obj2) { | |
c32bde28 | 28008 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
28009 | if (PyErr_Occurred()) SWIG_fail; |
28010 | } | |
28011 | if (obj3) { | |
c32bde28 | 28012 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
28013 | if (PyErr_Occurred()) SWIG_fail; |
28014 | } | |
28015 | { | |
28016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28017 | result = (wxVideoMode *)new wxVideoMode(arg1,arg2,arg3,arg4); | |
28018 | ||
28019 | wxPyEndAllowThreads(__tstate); | |
28020 | if (PyErr_Occurred()) SWIG_fail; | |
28021 | } | |
28022 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVideoMode, 1); | |
28023 | return resultobj; | |
28024 | fail: | |
28025 | return NULL; | |
28026 | } | |
28027 | ||
28028 | ||
c32bde28 | 28029 | static PyObject *_wrap_delete_VideoMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28030 | PyObject *resultobj; |
28031 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
28032 | PyObject * obj0 = 0 ; | |
28033 | char *kwnames[] = { | |
28034 | (char *) "self", NULL | |
28035 | }; | |
28036 | ||
28037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VideoMode",kwnames,&obj0)) goto fail; | |
28038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
28039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28040 | { | |
28041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28042 | delete arg1; | |
28043 | ||
28044 | wxPyEndAllowThreads(__tstate); | |
28045 | if (PyErr_Occurred()) SWIG_fail; | |
28046 | } | |
28047 | Py_INCREF(Py_None); resultobj = Py_None; | |
28048 | return resultobj; | |
28049 | fail: | |
28050 | return NULL; | |
28051 | } | |
28052 | ||
28053 | ||
c32bde28 | 28054 | static PyObject *_wrap_VideoMode_Matches(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28055 | PyObject *resultobj; |
28056 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
28057 | wxVideoMode *arg2 = 0 ; | |
28058 | bool result; | |
28059 | PyObject * obj0 = 0 ; | |
28060 | PyObject * obj1 = 0 ; | |
28061 | char *kwnames[] = { | |
28062 | (char *) "self",(char *) "other", NULL | |
28063 | }; | |
28064 | ||
28065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_Matches",kwnames,&obj0,&obj1)) goto fail; | |
28066 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
28067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28068 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
28069 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28070 | SWIG_fail; | |
28071 | if (arg2 == NULL) { | |
28072 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
28073 | SWIG_fail; | |
28074 | } | |
28075 | { | |
28076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28077 | result = (bool)((wxVideoMode const *)arg1)->Matches((wxVideoMode const &)*arg2); | |
28078 | ||
28079 | wxPyEndAllowThreads(__tstate); | |
28080 | if (PyErr_Occurred()) SWIG_fail; | |
28081 | } | |
28082 | { | |
28083 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28084 | } | |
28085 | return resultobj; | |
28086 | fail: | |
28087 | return NULL; | |
28088 | } | |
28089 | ||
28090 | ||
c32bde28 | 28091 | static PyObject *_wrap_VideoMode_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28092 | PyObject *resultobj; |
28093 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
28094 | int result; | |
28095 | PyObject * obj0 = 0 ; | |
28096 | char *kwnames[] = { | |
28097 | (char *) "self", NULL | |
28098 | }; | |
28099 | ||
28100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetWidth",kwnames,&obj0)) goto fail; | |
28101 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
28102 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28103 | { | |
28104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28105 | result = (int)((wxVideoMode const *)arg1)->GetWidth(); | |
28106 | ||
28107 | wxPyEndAllowThreads(__tstate); | |
28108 | if (PyErr_Occurred()) SWIG_fail; | |
28109 | } | |
c32bde28 | 28110 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
28111 | return resultobj; |
28112 | fail: | |
28113 | return NULL; | |
28114 | } | |
28115 | ||
28116 | ||
c32bde28 | 28117 | static PyObject *_wrap_VideoMode_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28118 | PyObject *resultobj; |
28119 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
28120 | int result; | |
28121 | PyObject * obj0 = 0 ; | |
28122 | char *kwnames[] = { | |
28123 | (char *) "self", NULL | |
28124 | }; | |
28125 | ||
28126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetHeight",kwnames,&obj0)) goto fail; | |
28127 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
28128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28129 | { | |
28130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28131 | result = (int)((wxVideoMode const *)arg1)->GetHeight(); | |
28132 | ||
28133 | wxPyEndAllowThreads(__tstate); | |
28134 | if (PyErr_Occurred()) SWIG_fail; | |
28135 | } | |
c32bde28 | 28136 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
28137 | return resultobj; |
28138 | fail: | |
28139 | return NULL; | |
28140 | } | |
28141 | ||
28142 | ||
c32bde28 | 28143 | static PyObject *_wrap_VideoMode_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28144 | PyObject *resultobj; |
28145 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
28146 | int result; | |
28147 | PyObject * obj0 = 0 ; | |
28148 | char *kwnames[] = { | |
28149 | (char *) "self", NULL | |
28150 | }; | |
28151 | ||
28152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetDepth",kwnames,&obj0)) goto fail; | |
28153 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
28154 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28155 | { | |
28156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28157 | result = (int)((wxVideoMode const *)arg1)->GetDepth(); | |
28158 | ||
28159 | wxPyEndAllowThreads(__tstate); | |
28160 | if (PyErr_Occurred()) SWIG_fail; | |
28161 | } | |
c32bde28 | 28162 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
28163 | return resultobj; |
28164 | fail: | |
28165 | return NULL; | |
28166 | } | |
28167 | ||
28168 | ||
c32bde28 | 28169 | static PyObject *_wrap_VideoMode_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28170 | PyObject *resultobj; |
28171 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
28172 | bool result; | |
28173 | PyObject * obj0 = 0 ; | |
28174 | char *kwnames[] = { | |
28175 | (char *) "self", NULL | |
28176 | }; | |
28177 | ||
28178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_IsOk",kwnames,&obj0)) goto fail; | |
28179 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
28180 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28181 | { | |
28182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28183 | result = (bool)((wxVideoMode const *)arg1)->IsOk(); | |
28184 | ||
28185 | wxPyEndAllowThreads(__tstate); | |
28186 | if (PyErr_Occurred()) SWIG_fail; | |
28187 | } | |
28188 | { | |
28189 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28190 | } | |
28191 | return resultobj; | |
28192 | fail: | |
28193 | return NULL; | |
28194 | } | |
28195 | ||
28196 | ||
c32bde28 | 28197 | static PyObject *_wrap_VideoMode___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28198 | PyObject *resultobj; |
28199 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
28200 | wxVideoMode *arg2 = (wxVideoMode *) 0 ; | |
28201 | bool result; | |
28202 | PyObject * obj0 = 0 ; | |
28203 | PyObject * obj1 = 0 ; | |
28204 | char *kwnames[] = { | |
28205 | (char *) "self",(char *) "other", NULL | |
28206 | }; | |
28207 | ||
28208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___eq__",kwnames,&obj0,&obj1)) goto fail; | |
28209 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
28210 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28211 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
28212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28213 | { | |
28214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28215 | result = (bool)wxVideoMode___eq__(arg1,(wxVideoMode const *)arg2); | |
28216 | ||
28217 | wxPyEndAllowThreads(__tstate); | |
28218 | if (PyErr_Occurred()) SWIG_fail; | |
28219 | } | |
28220 | { | |
28221 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28222 | } | |
28223 | return resultobj; | |
28224 | fail: | |
28225 | return NULL; | |
28226 | } | |
28227 | ||
28228 | ||
c32bde28 | 28229 | static PyObject *_wrap_VideoMode___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28230 | PyObject *resultobj; |
28231 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
28232 | wxVideoMode *arg2 = (wxVideoMode *) 0 ; | |
28233 | bool result; | |
28234 | PyObject * obj0 = 0 ; | |
28235 | PyObject * obj1 = 0 ; | |
28236 | char *kwnames[] = { | |
28237 | (char *) "self",(char *) "other", NULL | |
28238 | }; | |
28239 | ||
28240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___ne__",kwnames,&obj0,&obj1)) goto fail; | |
28241 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
28242 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28243 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
28244 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28245 | { | |
28246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28247 | result = (bool)wxVideoMode___ne__(arg1,(wxVideoMode const *)arg2); | |
28248 | ||
28249 | wxPyEndAllowThreads(__tstate); | |
28250 | if (PyErr_Occurred()) SWIG_fail; | |
28251 | } | |
28252 | { | |
28253 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28254 | } | |
28255 | return resultobj; | |
28256 | fail: | |
28257 | return NULL; | |
28258 | } | |
28259 | ||
28260 | ||
c32bde28 | 28261 | static PyObject *_wrap_VideoMode_w_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28262 | PyObject *resultobj; |
28263 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
28264 | int arg2 ; | |
28265 | PyObject * obj0 = 0 ; | |
28266 | PyObject * obj1 = 0 ; | |
28267 | char *kwnames[] = { | |
28268 | (char *) "self",(char *) "w", NULL | |
28269 | }; | |
28270 | ||
28271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_w_set",kwnames,&obj0,&obj1)) goto fail; | |
28272 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
28273 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 28274 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
28275 | if (PyErr_Occurred()) SWIG_fail; |
28276 | if (arg1) (arg1)->w = arg2; | |
28277 | ||
28278 | Py_INCREF(Py_None); resultobj = Py_None; | |
28279 | return resultobj; | |
28280 | fail: | |
28281 | return NULL; | |
28282 | } | |
28283 | ||
28284 | ||
c32bde28 | 28285 | static PyObject *_wrap_VideoMode_w_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28286 | PyObject *resultobj; |
28287 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
28288 | int result; | |
28289 | PyObject * obj0 = 0 ; | |
28290 | char *kwnames[] = { | |
28291 | (char *) "self", NULL | |
28292 | }; | |
28293 | ||
28294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_w_get",kwnames,&obj0)) goto fail; | |
28295 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
28296 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28297 | result = (int) ((arg1)->w); | |
28298 | ||
c32bde28 | 28299 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
28300 | return resultobj; |
28301 | fail: | |
28302 | return NULL; | |
28303 | } | |
28304 | ||
28305 | ||
c32bde28 | 28306 | static PyObject *_wrap_VideoMode_h_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28307 | PyObject *resultobj; |
28308 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
28309 | int arg2 ; | |
28310 | PyObject * obj0 = 0 ; | |
28311 | PyObject * obj1 = 0 ; | |
28312 | char *kwnames[] = { | |
28313 | (char *) "self",(char *) "h", NULL | |
28314 | }; | |
28315 | ||
28316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_h_set",kwnames,&obj0,&obj1)) goto fail; | |
28317 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
28318 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 28319 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
28320 | if (PyErr_Occurred()) SWIG_fail; |
28321 | if (arg1) (arg1)->h = arg2; | |
28322 | ||
28323 | Py_INCREF(Py_None); resultobj = Py_None; | |
28324 | return resultobj; | |
28325 | fail: | |
28326 | return NULL; | |
28327 | } | |
28328 | ||
28329 | ||
c32bde28 | 28330 | static PyObject *_wrap_VideoMode_h_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28331 | PyObject *resultobj; |
28332 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
28333 | int result; | |
28334 | PyObject * obj0 = 0 ; | |
28335 | char *kwnames[] = { | |
28336 | (char *) "self", NULL | |
28337 | }; | |
28338 | ||
28339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_h_get",kwnames,&obj0)) goto fail; | |
28340 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
28341 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28342 | result = (int) ((arg1)->h); | |
28343 | ||
c32bde28 | 28344 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
28345 | return resultobj; |
28346 | fail: | |
28347 | return NULL; | |
28348 | } | |
28349 | ||
28350 | ||
c32bde28 | 28351 | static PyObject *_wrap_VideoMode_bpp_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28352 | PyObject *resultobj; |
28353 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
28354 | int arg2 ; | |
28355 | PyObject * obj0 = 0 ; | |
28356 | PyObject * obj1 = 0 ; | |
28357 | char *kwnames[] = { | |
28358 | (char *) "self",(char *) "bpp", NULL | |
28359 | }; | |
28360 | ||
28361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_bpp_set",kwnames,&obj0,&obj1)) goto fail; | |
28362 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
28363 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 28364 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
28365 | if (PyErr_Occurred()) SWIG_fail; |
28366 | if (arg1) (arg1)->bpp = arg2; | |
28367 | ||
28368 | Py_INCREF(Py_None); resultobj = Py_None; | |
28369 | return resultobj; | |
28370 | fail: | |
28371 | return NULL; | |
28372 | } | |
28373 | ||
28374 | ||
c32bde28 | 28375 | static PyObject *_wrap_VideoMode_bpp_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28376 | PyObject *resultobj; |
28377 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
28378 | int result; | |
28379 | PyObject * obj0 = 0 ; | |
28380 | char *kwnames[] = { | |
28381 | (char *) "self", NULL | |
28382 | }; | |
28383 | ||
28384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_bpp_get",kwnames,&obj0)) goto fail; | |
28385 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
28386 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28387 | result = (int) ((arg1)->bpp); | |
28388 | ||
c32bde28 | 28389 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
28390 | return resultobj; |
28391 | fail: | |
28392 | return NULL; | |
28393 | } | |
28394 | ||
28395 | ||
c32bde28 | 28396 | static PyObject *_wrap_VideoMode_refresh_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28397 | PyObject *resultobj; |
28398 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
28399 | int arg2 ; | |
28400 | PyObject * obj0 = 0 ; | |
28401 | PyObject * obj1 = 0 ; | |
28402 | char *kwnames[] = { | |
28403 | (char *) "self",(char *) "refresh", NULL | |
28404 | }; | |
28405 | ||
28406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_refresh_set",kwnames,&obj0,&obj1)) goto fail; | |
28407 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
28408 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c32bde28 | 28409 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
28410 | if (PyErr_Occurred()) SWIG_fail; |
28411 | if (arg1) (arg1)->refresh = arg2; | |
28412 | ||
28413 | Py_INCREF(Py_None); resultobj = Py_None; | |
28414 | return resultobj; | |
28415 | fail: | |
28416 | return NULL; | |
28417 | } | |
28418 | ||
28419 | ||
c32bde28 | 28420 | static PyObject *_wrap_VideoMode_refresh_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28421 | PyObject *resultobj; |
28422 | wxVideoMode *arg1 = (wxVideoMode *) 0 ; | |
28423 | int result; | |
28424 | PyObject * obj0 = 0 ; | |
28425 | char *kwnames[] = { | |
28426 | (char *) "self", NULL | |
28427 | }; | |
28428 | ||
28429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_refresh_get",kwnames,&obj0)) goto fail; | |
28430 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode, | |
28431 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28432 | result = (int) ((arg1)->refresh); | |
28433 | ||
c32bde28 | 28434 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
28435 | return resultobj; |
28436 | fail: | |
28437 | return NULL; | |
28438 | } | |
28439 | ||
28440 | ||
c32bde28 | 28441 | static PyObject * VideoMode_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
28442 | PyObject *obj; |
28443 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28444 | SWIG_TypeClientData(SWIGTYPE_p_wxVideoMode, obj); | |
28445 | Py_INCREF(obj); | |
28446 | return Py_BuildValue((char *)""); | |
28447 | } | |
c32bde28 | 28448 | static int _wrap_DefaultVideoMode_set(PyObject *) { |
d55e5bfc RD |
28449 | PyErr_SetString(PyExc_TypeError,"Variable DefaultVideoMode is read-only."); |
28450 | return 1; | |
28451 | } | |
28452 | ||
28453 | ||
28454 | static PyObject *_wrap_DefaultVideoMode_get() { | |
28455 | PyObject *pyobj; | |
28456 | ||
28457 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultVideoMode), SWIGTYPE_p_wxVideoMode, 0); | |
28458 | return pyobj; | |
28459 | } | |
28460 | ||
28461 | ||
c32bde28 | 28462 | static PyObject *_wrap_new_Display(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28463 | PyObject *resultobj; |
28464 | size_t arg1 = (size_t) 0 ; | |
28465 | wxDisplay *result; | |
28466 | PyObject * obj0 = 0 ; | |
28467 | char *kwnames[] = { | |
28468 | (char *) "index", NULL | |
28469 | }; | |
28470 | ||
28471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Display",kwnames,&obj0)) goto fail; | |
28472 | if (obj0) { | |
c32bde28 | 28473 | arg1 = (size_t)SWIG_As_unsigned_SS_long(obj0); |
d55e5bfc RD |
28474 | if (PyErr_Occurred()) SWIG_fail; |
28475 | } | |
28476 | { | |
28477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28478 | result = (wxDisplay *)new wxDisplay(arg1); | |
28479 | ||
28480 | wxPyEndAllowThreads(__tstate); | |
28481 | if (PyErr_Occurred()) SWIG_fail; | |
28482 | } | |
28483 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplay, 1); | |
28484 | return resultobj; | |
28485 | fail: | |
28486 | return NULL; | |
28487 | } | |
28488 | ||
28489 | ||
c32bde28 | 28490 | static PyObject *_wrap_delete_Display(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28491 | PyObject *resultobj; |
28492 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28493 | PyObject * obj0 = 0 ; | |
28494 | char *kwnames[] = { | |
28495 | (char *) "self", NULL | |
28496 | }; | |
28497 | ||
28498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Display",kwnames,&obj0)) goto fail; | |
28499 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28500 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28501 | { | |
28502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28503 | delete arg1; | |
28504 | ||
28505 | wxPyEndAllowThreads(__tstate); | |
28506 | if (PyErr_Occurred()) SWIG_fail; | |
28507 | } | |
28508 | Py_INCREF(Py_None); resultobj = Py_None; | |
28509 | return resultobj; | |
28510 | fail: | |
28511 | return NULL; | |
28512 | } | |
28513 | ||
28514 | ||
c32bde28 | 28515 | static PyObject *_wrap_Display_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28516 | PyObject *resultobj; |
28517 | size_t result; | |
28518 | char *kwnames[] = { | |
28519 | NULL | |
28520 | }; | |
28521 | ||
28522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Display_GetCount",kwnames)) goto fail; | |
28523 | { | |
28524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28525 | result = (size_t)wxDisplay::GetCount(); | |
28526 | ||
28527 | wxPyEndAllowThreads(__tstate); | |
28528 | if (PyErr_Occurred()) SWIG_fail; | |
28529 | } | |
c32bde28 | 28530 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
28531 | return resultobj; |
28532 | fail: | |
28533 | return NULL; | |
28534 | } | |
28535 | ||
28536 | ||
c32bde28 | 28537 | static PyObject *_wrap_Display_GetFromPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28538 | PyObject *resultobj; |
28539 | wxPoint *arg1 = 0 ; | |
28540 | int result; | |
28541 | wxPoint temp1 ; | |
28542 | PyObject * obj0 = 0 ; | |
28543 | char *kwnames[] = { | |
28544 | (char *) "pt", NULL | |
28545 | }; | |
28546 | ||
28547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromPoint",kwnames,&obj0)) goto fail; | |
28548 | { | |
28549 | arg1 = &temp1; | |
28550 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
28551 | } | |
28552 | { | |
28553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28554 | result = (int)wxDisplay::GetFromPoint((wxPoint const &)*arg1); | |
28555 | ||
28556 | wxPyEndAllowThreads(__tstate); | |
28557 | if (PyErr_Occurred()) SWIG_fail; | |
28558 | } | |
c32bde28 | 28559 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
28560 | return resultobj; |
28561 | fail: | |
28562 | return NULL; | |
28563 | } | |
28564 | ||
28565 | ||
c32bde28 | 28566 | static PyObject *_wrap_Display_GetFromWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28567 | PyObject *resultobj; |
28568 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28569 | int result; | |
28570 | PyObject * obj0 = 0 ; | |
28571 | char *kwnames[] = { | |
28572 | (char *) "window", NULL | |
28573 | }; | |
28574 | ||
28575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromWindow",kwnames,&obj0)) goto fail; | |
28576 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28577 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28578 | { | |
28579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28580 | result = (int)wxDisplay::GetFromWindow(arg1); | |
28581 | ||
28582 | wxPyEndAllowThreads(__tstate); | |
28583 | if (PyErr_Occurred()) SWIG_fail; | |
28584 | } | |
c32bde28 | 28585 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
28586 | return resultobj; |
28587 | fail: | |
28588 | return NULL; | |
28589 | } | |
28590 | ||
28591 | ||
c32bde28 | 28592 | static PyObject *_wrap_Display_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28593 | PyObject *resultobj; |
28594 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28595 | bool result; | |
28596 | PyObject * obj0 = 0 ; | |
28597 | char *kwnames[] = { | |
28598 | (char *) "self", NULL | |
28599 | }; | |
28600 | ||
28601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsOk",kwnames,&obj0)) goto fail; | |
28602 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28603 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28604 | { | |
28605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28606 | result = (bool)((wxDisplay const *)arg1)->IsOk(); | |
28607 | ||
28608 | wxPyEndAllowThreads(__tstate); | |
28609 | if (PyErr_Occurred()) SWIG_fail; | |
28610 | } | |
28611 | { | |
28612 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28613 | } | |
28614 | return resultobj; | |
28615 | fail: | |
28616 | return NULL; | |
28617 | } | |
28618 | ||
28619 | ||
c32bde28 | 28620 | static PyObject *_wrap_Display_GetGeometry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28621 | PyObject *resultobj; |
28622 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28623 | wxRect result; | |
28624 | PyObject * obj0 = 0 ; | |
28625 | char *kwnames[] = { | |
28626 | (char *) "self", NULL | |
28627 | }; | |
28628 | ||
28629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetGeometry",kwnames,&obj0)) goto fail; | |
28630 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28631 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28632 | { | |
28633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28634 | result = ((wxDisplay const *)arg1)->GetGeometry(); | |
28635 | ||
28636 | wxPyEndAllowThreads(__tstate); | |
28637 | if (PyErr_Occurred()) SWIG_fail; | |
28638 | } | |
28639 | { | |
28640 | wxRect * resultptr; | |
28641 | resultptr = new wxRect((wxRect &) result); | |
28642 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
28643 | } | |
28644 | return resultobj; | |
28645 | fail: | |
28646 | return NULL; | |
28647 | } | |
28648 | ||
28649 | ||
c32bde28 | 28650 | static PyObject *_wrap_Display_GetName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28651 | PyObject *resultobj; |
28652 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28653 | wxString result; | |
28654 | PyObject * obj0 = 0 ; | |
28655 | char *kwnames[] = { | |
28656 | (char *) "self", NULL | |
28657 | }; | |
28658 | ||
28659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetName",kwnames,&obj0)) goto fail; | |
28660 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28661 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28662 | { | |
28663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28664 | result = ((wxDisplay const *)arg1)->GetName(); | |
28665 | ||
28666 | wxPyEndAllowThreads(__tstate); | |
28667 | if (PyErr_Occurred()) SWIG_fail; | |
28668 | } | |
28669 | { | |
28670 | #if wxUSE_UNICODE | |
28671 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28672 | #else | |
28673 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28674 | #endif | |
28675 | } | |
28676 | return resultobj; | |
28677 | fail: | |
28678 | return NULL; | |
28679 | } | |
28680 | ||
28681 | ||
c32bde28 | 28682 | static PyObject *_wrap_Display_IsPrimary(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28683 | PyObject *resultobj; |
28684 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28685 | bool result; | |
28686 | PyObject * obj0 = 0 ; | |
28687 | char *kwnames[] = { | |
28688 | (char *) "self", NULL | |
28689 | }; | |
28690 | ||
28691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsPrimary",kwnames,&obj0)) goto fail; | |
28692 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28693 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28694 | { | |
28695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28696 | result = (bool)((wxDisplay const *)arg1)->IsPrimary(); | |
28697 | ||
28698 | wxPyEndAllowThreads(__tstate); | |
28699 | if (PyErr_Occurred()) SWIG_fail; | |
28700 | } | |
28701 | { | |
28702 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28703 | } | |
28704 | return resultobj; | |
28705 | fail: | |
28706 | return NULL; | |
28707 | } | |
28708 | ||
28709 | ||
c32bde28 | 28710 | static PyObject *_wrap_Display_GetModes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28711 | PyObject *resultobj; |
28712 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28713 | wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ; | |
28714 | wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ; | |
28715 | PyObject *result; | |
28716 | PyObject * obj0 = 0 ; | |
28717 | PyObject * obj1 = 0 ; | |
28718 | char *kwnames[] = { | |
28719 | (char *) "self",(char *) "mode", NULL | |
28720 | }; | |
28721 | ||
28722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_GetModes",kwnames,&obj0,&obj1)) goto fail; | |
28723 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28724 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28725 | if (obj1) { | |
28726 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
28727 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28728 | SWIG_fail; | |
28729 | if (arg2 == NULL) { | |
28730 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
28731 | SWIG_fail; | |
28732 | } | |
28733 | } | |
28734 | { | |
28735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28736 | result = (PyObject *)wxDisplay_GetModes(arg1,(wxVideoMode const &)*arg2); | |
28737 | ||
28738 | wxPyEndAllowThreads(__tstate); | |
28739 | if (PyErr_Occurred()) SWIG_fail; | |
28740 | } | |
28741 | resultobj = result; | |
28742 | return resultobj; | |
28743 | fail: | |
28744 | return NULL; | |
28745 | } | |
28746 | ||
28747 | ||
c32bde28 | 28748 | static PyObject *_wrap_Display_GetCurrentMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28749 | PyObject *resultobj; |
28750 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28751 | wxVideoMode result; | |
28752 | PyObject * obj0 = 0 ; | |
28753 | char *kwnames[] = { | |
28754 | (char *) "self", NULL | |
28755 | }; | |
28756 | ||
28757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetCurrentMode",kwnames,&obj0)) goto fail; | |
28758 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28759 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28760 | { | |
28761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28762 | result = ((wxDisplay const *)arg1)->GetCurrentMode(); | |
28763 | ||
28764 | wxPyEndAllowThreads(__tstate); | |
28765 | if (PyErr_Occurred()) SWIG_fail; | |
28766 | } | |
28767 | { | |
28768 | wxVideoMode * resultptr; | |
28769 | resultptr = new wxVideoMode((wxVideoMode &) result); | |
28770 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVideoMode, 1); | |
28771 | } | |
28772 | return resultobj; | |
28773 | fail: | |
28774 | return NULL; | |
28775 | } | |
28776 | ||
28777 | ||
c32bde28 | 28778 | static PyObject *_wrap_Display_ChangeMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28779 | PyObject *resultobj; |
28780 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28781 | wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ; | |
28782 | wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ; | |
28783 | bool result; | |
28784 | PyObject * obj0 = 0 ; | |
28785 | PyObject * obj1 = 0 ; | |
28786 | char *kwnames[] = { | |
28787 | (char *) "self",(char *) "mode", NULL | |
28788 | }; | |
28789 | ||
28790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_ChangeMode",kwnames,&obj0,&obj1)) goto fail; | |
28791 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28792 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28793 | if (obj1) { | |
28794 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode, | |
28795 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28796 | SWIG_fail; | |
28797 | if (arg2 == NULL) { | |
28798 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
28799 | SWIG_fail; | |
28800 | } | |
28801 | } | |
28802 | { | |
28803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28804 | result = (bool)(arg1)->ChangeMode((wxVideoMode const &)*arg2); | |
28805 | ||
28806 | wxPyEndAllowThreads(__tstate); | |
28807 | if (PyErr_Occurred()) SWIG_fail; | |
28808 | } | |
28809 | { | |
28810 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28811 | } | |
28812 | return resultobj; | |
28813 | fail: | |
28814 | return NULL; | |
28815 | } | |
28816 | ||
28817 | ||
c32bde28 | 28818 | static PyObject *_wrap_Display_ResetMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28819 | PyObject *resultobj; |
28820 | wxDisplay *arg1 = (wxDisplay *) 0 ; | |
28821 | PyObject * obj0 = 0 ; | |
28822 | char *kwnames[] = { | |
28823 | (char *) "self", NULL | |
28824 | }; | |
28825 | ||
28826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_ResetMode",kwnames,&obj0)) goto fail; | |
28827 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay, | |
28828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28829 | { | |
28830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28831 | (arg1)->ResetMode(); | |
28832 | ||
28833 | wxPyEndAllowThreads(__tstate); | |
28834 | if (PyErr_Occurred()) SWIG_fail; | |
28835 | } | |
28836 | Py_INCREF(Py_None); resultobj = Py_None; | |
28837 | return resultobj; | |
28838 | fail: | |
28839 | return NULL; | |
28840 | } | |
28841 | ||
28842 | ||
c32bde28 | 28843 | static PyObject * Display_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
28844 | PyObject *obj; |
28845 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28846 | SWIG_TypeClientData(SWIGTYPE_p_wxDisplay, obj); | |
28847 | Py_INCREF(obj); | |
28848 | return Py_BuildValue((char *)""); | |
28849 | } | |
c1cb24a4 RD |
28850 | static PyObject *_wrap_StandardPaths_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
28851 | PyObject *resultobj; | |
28852 | wxStandardPaths *result; | |
28853 | char *kwnames[] = { | |
28854 | NULL | |
28855 | }; | |
28856 | ||
28857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StandardPaths_Get",kwnames)) goto fail; | |
28858 | { | |
28859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8fb0e70a | 28860 | result = (wxStandardPaths *)StandardPaths_Get(); |
c1cb24a4 RD |
28861 | |
28862 | wxPyEndAllowThreads(__tstate); | |
28863 | if (PyErr_Occurred()) SWIG_fail; | |
28864 | } | |
28865 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStandardPaths, 0); | |
28866 | return resultobj; | |
28867 | fail: | |
28868 | return NULL; | |
28869 | } | |
28870 | ||
28871 | ||
28872 | static PyObject *_wrap_StandardPaths_GetConfigDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
28873 | PyObject *resultobj; | |
28874 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; | |
28875 | wxString result; | |
28876 | PyObject * obj0 = 0 ; | |
28877 | char *kwnames[] = { | |
28878 | (char *) "self", NULL | |
28879 | }; | |
28880 | ||
28881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetConfigDir",kwnames,&obj0)) goto fail; | |
28882 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths, | |
28883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28884 | { | |
28885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28886 | result = ((wxStandardPaths const *)arg1)->GetConfigDir(); | |
28887 | ||
28888 | wxPyEndAllowThreads(__tstate); | |
28889 | if (PyErr_Occurred()) SWIG_fail; | |
28890 | } | |
28891 | { | |
28892 | #if wxUSE_UNICODE | |
28893 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28894 | #else | |
28895 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28896 | #endif | |
28897 | } | |
28898 | return resultobj; | |
28899 | fail: | |
28900 | return NULL; | |
28901 | } | |
28902 | ||
28903 | ||
28904 | static PyObject *_wrap_StandardPaths_GetUserConfigDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
28905 | PyObject *resultobj; | |
28906 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; | |
28907 | wxString result; | |
28908 | PyObject * obj0 = 0 ; | |
28909 | char *kwnames[] = { | |
28910 | (char *) "self", NULL | |
28911 | }; | |
28912 | ||
28913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetUserConfigDir",kwnames,&obj0)) goto fail; | |
28914 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths, | |
28915 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28916 | { | |
28917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28918 | result = ((wxStandardPaths const *)arg1)->GetUserConfigDir(); | |
28919 | ||
28920 | wxPyEndAllowThreads(__tstate); | |
28921 | if (PyErr_Occurred()) SWIG_fail; | |
28922 | } | |
28923 | { | |
28924 | #if wxUSE_UNICODE | |
28925 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28926 | #else | |
28927 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28928 | #endif | |
28929 | } | |
28930 | return resultobj; | |
28931 | fail: | |
28932 | return NULL; | |
28933 | } | |
28934 | ||
28935 | ||
28936 | static PyObject *_wrap_StandardPaths_GetDataDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
28937 | PyObject *resultobj; | |
28938 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; | |
28939 | wxString result; | |
28940 | PyObject * obj0 = 0 ; | |
28941 | char *kwnames[] = { | |
28942 | (char *) "self", NULL | |
28943 | }; | |
28944 | ||
28945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetDataDir",kwnames,&obj0)) goto fail; | |
28946 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths, | |
28947 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28948 | { | |
28949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28950 | result = ((wxStandardPaths const *)arg1)->GetDataDir(); | |
28951 | ||
28952 | wxPyEndAllowThreads(__tstate); | |
28953 | if (PyErr_Occurred()) SWIG_fail; | |
28954 | } | |
28955 | { | |
28956 | #if wxUSE_UNICODE | |
28957 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28958 | #else | |
28959 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28960 | #endif | |
28961 | } | |
28962 | return resultobj; | |
28963 | fail: | |
28964 | return NULL; | |
28965 | } | |
28966 | ||
28967 | ||
28968 | static PyObject *_wrap_StandardPaths_GetLocalDataDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
28969 | PyObject *resultobj; | |
28970 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; | |
28971 | wxString result; | |
28972 | PyObject * obj0 = 0 ; | |
28973 | char *kwnames[] = { | |
28974 | (char *) "self", NULL | |
28975 | }; | |
28976 | ||
28977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetLocalDataDir",kwnames,&obj0)) goto fail; | |
28978 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths, | |
28979 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28980 | { | |
28981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28982 | result = ((wxStandardPaths const *)arg1)->GetLocalDataDir(); | |
28983 | ||
28984 | wxPyEndAllowThreads(__tstate); | |
28985 | if (PyErr_Occurred()) SWIG_fail; | |
28986 | } | |
28987 | { | |
28988 | #if wxUSE_UNICODE | |
28989 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28990 | #else | |
28991 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28992 | #endif | |
28993 | } | |
28994 | return resultobj; | |
28995 | fail: | |
28996 | return NULL; | |
28997 | } | |
28998 | ||
28999 | ||
29000 | static PyObject *_wrap_StandardPaths_GetUserDataDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
29001 | PyObject *resultobj; | |
29002 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; | |
29003 | wxString result; | |
29004 | PyObject * obj0 = 0 ; | |
29005 | char *kwnames[] = { | |
29006 | (char *) "self", NULL | |
29007 | }; | |
29008 | ||
29009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetUserDataDir",kwnames,&obj0)) goto fail; | |
29010 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths, | |
29011 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29012 | { | |
29013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29014 | result = ((wxStandardPaths const *)arg1)->GetUserDataDir(); | |
29015 | ||
29016 | wxPyEndAllowThreads(__tstate); | |
29017 | if (PyErr_Occurred()) SWIG_fail; | |
29018 | } | |
29019 | { | |
29020 | #if wxUSE_UNICODE | |
29021 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
29022 | #else | |
29023 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
29024 | #endif | |
29025 | } | |
29026 | return resultobj; | |
29027 | fail: | |
29028 | return NULL; | |
29029 | } | |
29030 | ||
29031 | ||
29032 | static PyObject *_wrap_StandardPaths_GetUserLocalDataDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
29033 | PyObject *resultobj; | |
29034 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; | |
29035 | wxString result; | |
29036 | PyObject * obj0 = 0 ; | |
29037 | char *kwnames[] = { | |
29038 | (char *) "self", NULL | |
29039 | }; | |
29040 | ||
29041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetUserLocalDataDir",kwnames,&obj0)) goto fail; | |
29042 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths, | |
29043 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29044 | { | |
29045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29046 | result = ((wxStandardPaths const *)arg1)->GetUserLocalDataDir(); | |
29047 | ||
29048 | wxPyEndAllowThreads(__tstate); | |
29049 | if (PyErr_Occurred()) SWIG_fail; | |
29050 | } | |
29051 | { | |
29052 | #if wxUSE_UNICODE | |
29053 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
29054 | #else | |
29055 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
29056 | #endif | |
29057 | } | |
29058 | return resultobj; | |
29059 | fail: | |
29060 | return NULL; | |
29061 | } | |
29062 | ||
29063 | ||
29064 | static PyObject *_wrap_StandardPaths_GetPluginsDir(PyObject *, PyObject *args, PyObject *kwargs) { | |
29065 | PyObject *resultobj; | |
29066 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; | |
29067 | wxString result; | |
29068 | PyObject * obj0 = 0 ; | |
29069 | char *kwnames[] = { | |
29070 | (char *) "self", NULL | |
29071 | }; | |
29072 | ||
29073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetPluginsDir",kwnames,&obj0)) goto fail; | |
29074 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths, | |
29075 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29076 | { | |
29077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29078 | result = ((wxStandardPaths const *)arg1)->GetPluginsDir(); | |
29079 | ||
29080 | wxPyEndAllowThreads(__tstate); | |
29081 | if (PyErr_Occurred()) SWIG_fail; | |
29082 | } | |
29083 | { | |
29084 | #if wxUSE_UNICODE | |
29085 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
29086 | #else | |
29087 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
29088 | #endif | |
29089 | } | |
29090 | return resultobj; | |
29091 | fail: | |
29092 | return NULL; | |
29093 | } | |
29094 | ||
29095 | ||
29096 | static PyObject *_wrap_StandardPaths_SetInstallPrefix(PyObject *, PyObject *args, PyObject *kwargs) { | |
29097 | PyObject *resultobj; | |
29098 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; | |
29099 | wxString *arg2 = 0 ; | |
29100 | bool temp2 = false ; | |
29101 | PyObject * obj0 = 0 ; | |
29102 | PyObject * obj1 = 0 ; | |
29103 | char *kwnames[] = { | |
29104 | (char *) "self",(char *) "prefix", NULL | |
29105 | }; | |
29106 | ||
29107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StandardPaths_SetInstallPrefix",kwnames,&obj0,&obj1)) goto fail; | |
29108 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths, | |
29109 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29110 | { | |
29111 | arg2 = wxString_in_helper(obj1); | |
29112 | if (arg2 == NULL) SWIG_fail; | |
29113 | temp2 = true; | |
29114 | } | |
29115 | { | |
29116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29117 | wxStandardPaths_SetInstallPrefix(arg1,(wxString const &)*arg2); | |
29118 | ||
29119 | wxPyEndAllowThreads(__tstate); | |
29120 | if (PyErr_Occurred()) SWIG_fail; | |
29121 | } | |
29122 | Py_INCREF(Py_None); resultobj = Py_None; | |
29123 | { | |
29124 | if (temp2) | |
29125 | delete arg2; | |
29126 | } | |
29127 | return resultobj; | |
29128 | fail: | |
29129 | { | |
29130 | if (temp2) | |
29131 | delete arg2; | |
29132 | } | |
29133 | return NULL; | |
29134 | } | |
29135 | ||
29136 | ||
29137 | static PyObject *_wrap_StandardPaths_GetInstallPrefix(PyObject *, PyObject *args, PyObject *kwargs) { | |
29138 | PyObject *resultobj; | |
29139 | wxStandardPaths *arg1 = (wxStandardPaths *) 0 ; | |
29140 | wxString result; | |
29141 | PyObject * obj0 = 0 ; | |
29142 | char *kwnames[] = { | |
29143 | (char *) "self", NULL | |
29144 | }; | |
29145 | ||
29146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetInstallPrefix",kwnames,&obj0)) goto fail; | |
29147 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths, | |
29148 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29149 | { | |
29150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29151 | result = wxStandardPaths_GetInstallPrefix(arg1); | |
29152 | ||
29153 | wxPyEndAllowThreads(__tstate); | |
29154 | if (PyErr_Occurred()) SWIG_fail; | |
29155 | } | |
29156 | { | |
29157 | #if wxUSE_UNICODE | |
29158 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
29159 | #else | |
29160 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
29161 | #endif | |
29162 | } | |
29163 | return resultobj; | |
29164 | fail: | |
29165 | return NULL; | |
29166 | } | |
29167 | ||
29168 | ||
29169 | static PyObject * StandardPaths_swigregister(PyObject *, PyObject *args) { | |
29170 | PyObject *obj; | |
29171 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29172 | SWIG_TypeClientData(SWIGTYPE_p_wxStandardPaths, obj); | |
29173 | Py_INCREF(obj); | |
29174 | return Py_BuildValue((char *)""); | |
29175 | } | |
d55e5bfc | 29176 | static PyMethodDef SwigMethods[] = { |
c32bde28 RD |
29177 | { (char *)"SystemSettings_GetColour", (PyCFunction) _wrap_SystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS, NULL }, |
29178 | { (char *)"SystemSettings_GetFont", (PyCFunction) _wrap_SystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29179 | { (char *)"SystemSettings_GetMetric", (PyCFunction) _wrap_SystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29180 | { (char *)"SystemSettings_HasFeature", (PyCFunction) _wrap_SystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29181 | { (char *)"SystemSettings_GetScreenType", (PyCFunction) _wrap_SystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29182 | { (char *)"SystemSettings_SetScreenType", (PyCFunction) _wrap_SystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29183 | { (char *)"SystemSettings_swigregister", SystemSettings_swigregister, METH_VARARGS, NULL }, | |
29184 | { (char *)"new_SystemOptions", (PyCFunction) _wrap_new_SystemOptions, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29185 | { (char *)"SystemOptions_SetOption", (PyCFunction) _wrap_SystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29186 | { (char *)"SystemOptions_SetOptionInt", (PyCFunction) _wrap_SystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29187 | { (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29188 | { (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29189 | { (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29190 | { (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS, NULL }, | |
29191 | { (char *)"NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29192 | { (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29193 | { (char *)"GetCurrentId", (PyCFunction) _wrap_GetCurrentId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29194 | { (char *)"IsStockID", (PyCFunction) _wrap_IsStockID, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29195 | { (char *)"IsStockLabel", (PyCFunction) _wrap_IsStockLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29196 | { (char *)"GetStockLabel", (PyCFunction) _wrap_GetStockLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29197 | { (char *)"Bell", (PyCFunction) _wrap_Bell, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29198 | { (char *)"EndBusyCursor", (PyCFunction) _wrap_EndBusyCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29199 | { (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29200 | { (char *)"GetMousePosition", (PyCFunction) _wrap_GetMousePosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29201 | { (char *)"IsBusy", (PyCFunction) _wrap_IsBusy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29202 | { (char *)"Now", (PyCFunction) _wrap_Now, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29203 | { (char *)"Shell", (PyCFunction) _wrap_Shell, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29204 | { (char *)"StartTimer", (PyCFunction) _wrap_StartTimer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29205 | { (char *)"GetOsVersion", (PyCFunction) _wrap_GetOsVersion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29206 | { (char *)"GetOsDescription", (PyCFunction) _wrap_GetOsDescription, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29207 | { (char *)"GetFreeMemory", (PyCFunction) _wrap_GetFreeMemory, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29208 | { (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29209 | { (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29210 | { (char *)"MilliSleep", (PyCFunction) _wrap_MilliSleep, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29211 | { (char *)"MicroSleep", (PyCFunction) _wrap_MicroSleep, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29212 | { (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29213 | { (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29214 | { (char *)"GetEmailAddress", (PyCFunction) _wrap_GetEmailAddress, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29215 | { (char *)"GetHostName", (PyCFunction) _wrap_GetHostName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29216 | { (char *)"GetFullHostName", (PyCFunction) _wrap_GetFullHostName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29217 | { (char *)"GetUserId", (PyCFunction) _wrap_GetUserId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29218 | { (char *)"GetUserName", (PyCFunction) _wrap_GetUserName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29219 | { (char *)"GetHomeDir", (PyCFunction) _wrap_GetHomeDir, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29220 | { (char *)"GetUserHome", (PyCFunction) _wrap_GetUserHome, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29221 | { (char *)"GetProcessId", (PyCFunction) _wrap_GetProcessId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29222 | { (char *)"Trap", (PyCFunction) _wrap_Trap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29223 | { (char *)"FileSelector", (PyCFunction) _wrap_FileSelector, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29224 | { (char *)"LoadFileSelector", (PyCFunction) _wrap_LoadFileSelector, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29225 | { (char *)"SaveFileSelector", (PyCFunction) _wrap_SaveFileSelector, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29226 | { (char *)"DirSelector", (PyCFunction) _wrap_DirSelector, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29227 | { (char *)"GetTextFromUser", (PyCFunction) _wrap_GetTextFromUser, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29228 | { (char *)"GetPasswordFromUser", (PyCFunction) _wrap_GetPasswordFromUser, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29229 | { (char *)"GetSingleChoice", (PyCFunction) _wrap_GetSingleChoice, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29230 | { (char *)"GetSingleChoiceIndex", (PyCFunction) _wrap_GetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29231 | { (char *)"MessageBox", (PyCFunction) _wrap_MessageBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29232 | { (char *)"GetNumberFromUser", (PyCFunction) _wrap_GetNumberFromUser, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29233 | { (char *)"ColourDisplay", (PyCFunction) _wrap_ColourDisplay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29234 | { (char *)"DisplayDepth", (PyCFunction) _wrap_DisplayDepth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29235 | { (char *)"GetDisplayDepth", (PyCFunction) _wrap_GetDisplayDepth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29236 | { (char *)"DisplaySize", (PyCFunction) _wrap_DisplaySize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29237 | { (char *)"GetDisplaySize", (PyCFunction) _wrap_GetDisplaySize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29238 | { (char *)"DisplaySizeMM", (PyCFunction) _wrap_DisplaySizeMM, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29239 | { (char *)"GetDisplaySizeMM", (PyCFunction) _wrap_GetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29240 | { (char *)"ClientDisplayRect", (PyCFunction) _wrap_ClientDisplayRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29241 | { (char *)"GetClientDisplayRect", (PyCFunction) _wrap_GetClientDisplayRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29242 | { (char *)"SetCursor", (PyCFunction) _wrap_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29243 | { (char *)"BeginBusyCursor", (PyCFunction) _wrap_BeginBusyCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29244 | { (char *)"GetActiveWindow", (PyCFunction) _wrap_GetActiveWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29245 | { (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29246 | { (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29247 | { (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29248 | { (char *)"GetKeyState", (PyCFunction) _wrap_GetKeyState, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29249 | { (char *)"WakeUpMainThread", (PyCFunction) _wrap_WakeUpMainThread, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29250 | { (char *)"MutexGuiEnter", (PyCFunction) _wrap_MutexGuiEnter, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29251 | { (char *)"MutexGuiLeave", (PyCFunction) _wrap_MutexGuiLeave, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29252 | { (char *)"new_MutexGuiLocker", (PyCFunction) _wrap_new_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29253 | { (char *)"delete_MutexGuiLocker", (PyCFunction) _wrap_delete_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29254 | { (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS, NULL }, | |
29255 | { (char *)"Thread_IsMain", (PyCFunction) _wrap_Thread_IsMain, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29256 | { (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29257 | { (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29258 | { (char *)"ToolTip_GetTip", (PyCFunction) _wrap_ToolTip_GetTip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29259 | { (char *)"ToolTip_GetWindow", (PyCFunction) _wrap_ToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29260 | { (char *)"ToolTip_Enable", (PyCFunction) _wrap_ToolTip_Enable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29261 | { (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29262 | { (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS, NULL }, | |
29263 | { (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29264 | { (char *)"delete_Caret", (PyCFunction) _wrap_delete_Caret, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29265 | { (char *)"Caret_IsOk", (PyCFunction) _wrap_Caret_IsOk, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29266 | { (char *)"Caret_IsVisible", (PyCFunction) _wrap_Caret_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29267 | { (char *)"Caret_GetPosition", (PyCFunction) _wrap_Caret_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29268 | { (char *)"Caret_GetPositionTuple", (PyCFunction) _wrap_Caret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29269 | { (char *)"Caret_GetSize", (PyCFunction) _wrap_Caret_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29270 | { (char *)"Caret_GetSizeTuple", (PyCFunction) _wrap_Caret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29271 | { (char *)"Caret_GetWindow", (PyCFunction) _wrap_Caret_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29272 | { (char *)"Caret_MoveXY", (PyCFunction) _wrap_Caret_MoveXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29273 | { (char *)"Caret_Move", (PyCFunction) _wrap_Caret_Move, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29274 | { (char *)"Caret_SetSizeWH", (PyCFunction) _wrap_Caret_SetSizeWH, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29275 | { (char *)"Caret_SetSize", (PyCFunction) _wrap_Caret_SetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29276 | { (char *)"Caret_Show", (PyCFunction) _wrap_Caret_Show, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29277 | { (char *)"Caret_Hide", (PyCFunction) _wrap_Caret_Hide, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29278 | { (char *)"Caret_swigregister", Caret_swigregister, METH_VARARGS, NULL }, | |
29279 | { (char *)"Caret_GetBlinkTime", (PyCFunction) _wrap_Caret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29280 | { (char *)"Caret_SetBlinkTime", (PyCFunction) _wrap_Caret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29281 | { (char *)"new_BusyCursor", (PyCFunction) _wrap_new_BusyCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29282 | { (char *)"delete_BusyCursor", (PyCFunction) _wrap_delete_BusyCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29283 | { (char *)"BusyCursor_swigregister", BusyCursor_swigregister, METH_VARARGS, NULL }, | |
29284 | { (char *)"new_WindowDisabler", (PyCFunction) _wrap_new_WindowDisabler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29285 | { (char *)"delete_WindowDisabler", (PyCFunction) _wrap_delete_WindowDisabler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29286 | { (char *)"WindowDisabler_swigregister", WindowDisabler_swigregister, METH_VARARGS, NULL }, | |
29287 | { (char *)"new_BusyInfo", (PyCFunction) _wrap_new_BusyInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29288 | { (char *)"delete_BusyInfo", (PyCFunction) _wrap_delete_BusyInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29289 | { (char *)"BusyInfo_swigregister", BusyInfo_swigregister, METH_VARARGS, NULL }, | |
29290 | { (char *)"new_StopWatch", (PyCFunction) _wrap_new_StopWatch, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29291 | { (char *)"StopWatch_Start", (PyCFunction) _wrap_StopWatch_Start, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29292 | { (char *)"StopWatch_Pause", (PyCFunction) _wrap_StopWatch_Pause, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29293 | { (char *)"StopWatch_Resume", (PyCFunction) _wrap_StopWatch_Resume, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29294 | { (char *)"StopWatch_Time", (PyCFunction) _wrap_StopWatch_Time, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29295 | { (char *)"StopWatch_swigregister", StopWatch_swigregister, METH_VARARGS, NULL }, | |
29296 | { (char *)"new_FileHistory", (PyCFunction) _wrap_new_FileHistory, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29297 | { (char *)"delete_FileHistory", (PyCFunction) _wrap_delete_FileHistory, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29298 | { (char *)"FileHistory_AddFileToHistory", (PyCFunction) _wrap_FileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29299 | { (char *)"FileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_FileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29300 | { (char *)"FileHistory_GetMaxFiles", (PyCFunction) _wrap_FileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29301 | { (char *)"FileHistory_UseMenu", (PyCFunction) _wrap_FileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29302 | { (char *)"FileHistory_RemoveMenu", (PyCFunction) _wrap_FileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29303 | { (char *)"FileHistory_Load", (PyCFunction) _wrap_FileHistory_Load, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29304 | { (char *)"FileHistory_Save", (PyCFunction) _wrap_FileHistory_Save, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29305 | { (char *)"FileHistory_AddFilesToMenu", (PyCFunction) _wrap_FileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29306 | { (char *)"FileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_FileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29307 | { (char *)"FileHistory_GetHistoryFile", (PyCFunction) _wrap_FileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29308 | { (char *)"FileHistory_GetCount", (PyCFunction) _wrap_FileHistory_GetCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29309 | { (char *)"FileHistory_swigregister", FileHistory_swigregister, METH_VARARGS, NULL }, | |
29310 | { (char *)"new_SingleInstanceChecker", (PyCFunction) _wrap_new_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29311 | { (char *)"new_PreSingleInstanceChecker", (PyCFunction) _wrap_new_PreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29312 | { (char *)"delete_SingleInstanceChecker", (PyCFunction) _wrap_delete_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29313 | { (char *)"SingleInstanceChecker_Create", (PyCFunction) _wrap_SingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29314 | { (char *)"SingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_SingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29315 | { (char *)"SingleInstanceChecker_swigregister", SingleInstanceChecker_swigregister, METH_VARARGS, NULL }, | |
29316 | { (char *)"DrawWindowOnDC", (PyCFunction) _wrap_DrawWindowOnDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29317 | { (char *)"delete_TipProvider", (PyCFunction) _wrap_delete_TipProvider, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29318 | { (char *)"TipProvider_GetTip", (PyCFunction) _wrap_TipProvider_GetTip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29319 | { (char *)"TipProvider_GetCurrentTip", (PyCFunction) _wrap_TipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29320 | { (char *)"TipProvider_PreprocessTip", (PyCFunction) _wrap_TipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29321 | { (char *)"TipProvider_swigregister", TipProvider_swigregister, METH_VARARGS, NULL }, | |
29322 | { (char *)"new_PyTipProvider", (PyCFunction) _wrap_new_PyTipProvider, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29323 | { (char *)"PyTipProvider__setCallbackInfo", (PyCFunction) _wrap_PyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29324 | { (char *)"PyTipProvider_swigregister", PyTipProvider_swigregister, METH_VARARGS, NULL }, | |
29325 | { (char *)"ShowTip", (PyCFunction) _wrap_ShowTip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29326 | { (char *)"CreateFileTipProvider", (PyCFunction) _wrap_CreateFileTipProvider, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29327 | { (char *)"new_Timer", (PyCFunction) _wrap_new_Timer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29328 | { (char *)"delete_Timer", (PyCFunction) _wrap_delete_Timer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29329 | { (char *)"Timer__setCallbackInfo", (PyCFunction) _wrap_Timer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29330 | { (char *)"Timer_SetOwner", (PyCFunction) _wrap_Timer_SetOwner, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29331 | { (char *)"Timer_GetOwner", (PyCFunction) _wrap_Timer_GetOwner, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29332 | { (char *)"Timer_Start", (PyCFunction) _wrap_Timer_Start, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29333 | { (char *)"Timer_Stop", (PyCFunction) _wrap_Timer_Stop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29334 | { (char *)"Timer_IsRunning", (PyCFunction) _wrap_Timer_IsRunning, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29335 | { (char *)"Timer_GetInterval", (PyCFunction) _wrap_Timer_GetInterval, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29336 | { (char *)"Timer_IsOneShot", (PyCFunction) _wrap_Timer_IsOneShot, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29337 | { (char *)"Timer_GetId", (PyCFunction) _wrap_Timer_GetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29338 | { (char *)"Timer_swigregister", Timer_swigregister, METH_VARARGS, NULL }, | |
29339 | { (char *)"new_TimerEvent", (PyCFunction) _wrap_new_TimerEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29340 | { (char *)"TimerEvent_GetInterval", (PyCFunction) _wrap_TimerEvent_GetInterval, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29341 | { (char *)"TimerEvent_swigregister", TimerEvent_swigregister, METH_VARARGS, NULL }, | |
29342 | { (char *)"new_TimerRunner", _wrap_new_TimerRunner, METH_VARARGS, NULL }, | |
29343 | { (char *)"delete_TimerRunner", (PyCFunction) _wrap_delete_TimerRunner, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29344 | { (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29345 | { (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS, NULL }, | |
29346 | { (char *)"new_Log", (PyCFunction) _wrap_new_Log, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29347 | { (char *)"Log_IsEnabled", (PyCFunction) _wrap_Log_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29348 | { (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29349 | { (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29350 | { (char *)"Log_Flush", (PyCFunction) _wrap_Log_Flush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29351 | { (char *)"Log_FlushActive", (PyCFunction) _wrap_Log_FlushActive, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29352 | { (char *)"Log_GetActiveTarget", (PyCFunction) _wrap_Log_GetActiveTarget, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29353 | { (char *)"Log_SetActiveTarget", (PyCFunction) _wrap_Log_SetActiveTarget, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29354 | { (char *)"Log_Suspend", (PyCFunction) _wrap_Log_Suspend, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29355 | { (char *)"Log_Resume", (PyCFunction) _wrap_Log_Resume, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29356 | { (char *)"Log_SetVerbose", (PyCFunction) _wrap_Log_SetVerbose, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29357 | { (char *)"Log_SetLogLevel", (PyCFunction) _wrap_Log_SetLogLevel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29358 | { (char *)"Log_DontCreateOnDemand", (PyCFunction) _wrap_Log_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29359 | { (char *)"Log_SetTraceMask", (PyCFunction) _wrap_Log_SetTraceMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29360 | { (char *)"Log_AddTraceMask", (PyCFunction) _wrap_Log_AddTraceMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29361 | { (char *)"Log_RemoveTraceMask", (PyCFunction) _wrap_Log_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29362 | { (char *)"Log_ClearTraceMasks", (PyCFunction) _wrap_Log_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29363 | { (char *)"Log_GetTraceMasks", (PyCFunction) _wrap_Log_GetTraceMasks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29364 | { (char *)"Log_SetTimestamp", (PyCFunction) _wrap_Log_SetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29365 | { (char *)"Log_GetVerbose", (PyCFunction) _wrap_Log_GetVerbose, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29366 | { (char *)"Log_GetTraceMask", (PyCFunction) _wrap_Log_GetTraceMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29367 | { (char *)"Log_IsAllowedTraceMask", (PyCFunction) _wrap_Log_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29368 | { (char *)"Log_GetLogLevel", (PyCFunction) _wrap_Log_GetLogLevel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29369 | { (char *)"Log_GetTimestamp", (PyCFunction) _wrap_Log_GetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29370 | { (char *)"Log_TimeStamp", (PyCFunction) _wrap_Log_TimeStamp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29371 | { (char *)"Log_Destroy", (PyCFunction) _wrap_Log_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29372 | { (char *)"Log_swigregister", Log_swigregister, METH_VARARGS, NULL }, | |
29373 | { (char *)"new_LogStderr", (PyCFunction) _wrap_new_LogStderr, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29374 | { (char *)"LogStderr_swigregister", LogStderr_swigregister, METH_VARARGS, NULL }, | |
29375 | { (char *)"new_LogTextCtrl", (PyCFunction) _wrap_new_LogTextCtrl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29376 | { (char *)"LogTextCtrl_swigregister", LogTextCtrl_swigregister, METH_VARARGS, NULL }, | |
29377 | { (char *)"new_LogGui", (PyCFunction) _wrap_new_LogGui, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29378 | { (char *)"LogGui_swigregister", LogGui_swigregister, METH_VARARGS, NULL }, | |
29379 | { (char *)"new_LogWindow", (PyCFunction) _wrap_new_LogWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29380 | { (char *)"LogWindow_Show", (PyCFunction) _wrap_LogWindow_Show, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29381 | { (char *)"LogWindow_GetFrame", (PyCFunction) _wrap_LogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29382 | { (char *)"LogWindow_GetOldLog", (PyCFunction) _wrap_LogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29383 | { (char *)"LogWindow_IsPassingMessages", (PyCFunction) _wrap_LogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29384 | { (char *)"LogWindow_PassMessages", (PyCFunction) _wrap_LogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29385 | { (char *)"LogWindow_swigregister", LogWindow_swigregister, METH_VARARGS, NULL }, | |
29386 | { (char *)"new_LogChain", (PyCFunction) _wrap_new_LogChain, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29387 | { (char *)"LogChain_SetLog", (PyCFunction) _wrap_LogChain_SetLog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29388 | { (char *)"LogChain_PassMessages", (PyCFunction) _wrap_LogChain_PassMessages, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29389 | { (char *)"LogChain_IsPassingMessages", (PyCFunction) _wrap_LogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29390 | { (char *)"LogChain_GetOldLog", (PyCFunction) _wrap_LogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29391 | { (char *)"LogChain_swigregister", LogChain_swigregister, METH_VARARGS, NULL }, | |
29392 | { (char *)"SysErrorCode", (PyCFunction) _wrap_SysErrorCode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29393 | { (char *)"SysErrorMsg", (PyCFunction) _wrap_SysErrorMsg, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29394 | { (char *)"LogFatalError", (PyCFunction) _wrap_LogFatalError, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29395 | { (char *)"LogError", (PyCFunction) _wrap_LogError, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29396 | { (char *)"LogWarning", (PyCFunction) _wrap_LogWarning, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29397 | { (char *)"LogMessage", (PyCFunction) _wrap_LogMessage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29398 | { (char *)"LogInfo", (PyCFunction) _wrap_LogInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29399 | { (char *)"LogDebug", (PyCFunction) _wrap_LogDebug, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29400 | { (char *)"LogVerbose", (PyCFunction) _wrap_LogVerbose, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29401 | { (char *)"LogStatus", (PyCFunction) _wrap_LogStatus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29402 | { (char *)"LogStatusFrame", (PyCFunction) _wrap_LogStatusFrame, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29403 | { (char *)"LogSysError", (PyCFunction) _wrap_LogSysError, METH_VARARGS | METH_KEYWORDS, NULL }, | |
c32bde28 | 29404 | { (char *)"LogGeneric", (PyCFunction) _wrap_LogGeneric, METH_VARARGS | METH_KEYWORDS, NULL }, |
f78cc896 | 29405 | { (char *)"LogTrace", _wrap_LogTrace, METH_VARARGS, NULL }, |
c32bde28 RD |
29406 | { (char *)"SafeShowMessage", (PyCFunction) _wrap_SafeShowMessage, METH_VARARGS | METH_KEYWORDS, NULL }, |
29407 | { (char *)"new_LogNull", (PyCFunction) _wrap_new_LogNull, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29408 | { (char *)"delete_LogNull", (PyCFunction) _wrap_delete_LogNull, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29409 | { (char *)"LogNull_swigregister", LogNull_swigregister, METH_VARARGS, NULL }, | |
29410 | { (char *)"new_PyLog", (PyCFunction) _wrap_new_PyLog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29411 | { (char *)"PyLog__setCallbackInfo", (PyCFunction) _wrap_PyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29412 | { (char *)"PyLog_swigregister", PyLog_swigregister, METH_VARARGS, NULL }, | |
29413 | { (char *)"Process_Kill", (PyCFunction) _wrap_Process_Kill, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29414 | { (char *)"Process_Exists", (PyCFunction) _wrap_Process_Exists, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29415 | { (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29416 | { (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29417 | { (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29418 | { (char *)"Process_base_OnTerminate", (PyCFunction) _wrap_Process_base_OnTerminate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29419 | { (char *)"Process_Redirect", (PyCFunction) _wrap_Process_Redirect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29420 | { (char *)"Process_IsRedirected", (PyCFunction) _wrap_Process_IsRedirected, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29421 | { (char *)"Process_Detach", (PyCFunction) _wrap_Process_Detach, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29422 | { (char *)"Process_GetInputStream", (PyCFunction) _wrap_Process_GetInputStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29423 | { (char *)"Process_GetErrorStream", (PyCFunction) _wrap_Process_GetErrorStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29424 | { (char *)"Process_GetOutputStream", (PyCFunction) _wrap_Process_GetOutputStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29425 | { (char *)"Process_CloseOutput", (PyCFunction) _wrap_Process_CloseOutput, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29426 | { (char *)"Process_IsInputOpened", (PyCFunction) _wrap_Process_IsInputOpened, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29427 | { (char *)"Process_IsInputAvailable", (PyCFunction) _wrap_Process_IsInputAvailable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29428 | { (char *)"Process_IsErrorAvailable", (PyCFunction) _wrap_Process_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29429 | { (char *)"Process_swigregister", Process_swigregister, METH_VARARGS, NULL }, | |
29430 | { (char *)"new_ProcessEvent", (PyCFunction) _wrap_new_ProcessEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29431 | { (char *)"ProcessEvent_GetPid", (PyCFunction) _wrap_ProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29432 | { (char *)"ProcessEvent_GetExitCode", (PyCFunction) _wrap_ProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29433 | { (char *)"ProcessEvent_m_pid_set", (PyCFunction) _wrap_ProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29434 | { (char *)"ProcessEvent_m_pid_get", (PyCFunction) _wrap_ProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29435 | { (char *)"ProcessEvent_m_exitcode_set", (PyCFunction) _wrap_ProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29436 | { (char *)"ProcessEvent_m_exitcode_get", (PyCFunction) _wrap_ProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29437 | { (char *)"ProcessEvent_swigregister", ProcessEvent_swigregister, METH_VARARGS, NULL }, | |
29438 | { (char *)"Execute", (PyCFunction) _wrap_Execute, METH_VARARGS | METH_KEYWORDS, NULL }, | |
c9c2cf70 | 29439 | { (char *)"Kill", (PyCFunction) _wrap_Kill, METH_VARARGS | METH_KEYWORDS, NULL }, |
c32bde28 RD |
29440 | { (char *)"new_Joystick", (PyCFunction) _wrap_new_Joystick, METH_VARARGS | METH_KEYWORDS, NULL }, |
29441 | { (char *)"delete_Joystick", (PyCFunction) _wrap_delete_Joystick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29442 | { (char *)"Joystick_GetPosition", (PyCFunction) _wrap_Joystick_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29443 | { (char *)"Joystick_GetZPosition", (PyCFunction) _wrap_Joystick_GetZPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29444 | { (char *)"Joystick_GetButtonState", (PyCFunction) _wrap_Joystick_GetButtonState, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29445 | { (char *)"Joystick_GetPOVPosition", (PyCFunction) _wrap_Joystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29446 | { (char *)"Joystick_GetPOVCTSPosition", (PyCFunction) _wrap_Joystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29447 | { (char *)"Joystick_GetRudderPosition", (PyCFunction) _wrap_Joystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29448 | { (char *)"Joystick_GetUPosition", (PyCFunction) _wrap_Joystick_GetUPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29449 | { (char *)"Joystick_GetVPosition", (PyCFunction) _wrap_Joystick_GetVPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29450 | { (char *)"Joystick_GetMovementThreshold", (PyCFunction) _wrap_Joystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29451 | { (char *)"Joystick_SetMovementThreshold", (PyCFunction) _wrap_Joystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29452 | { (char *)"Joystick_IsOk", (PyCFunction) _wrap_Joystick_IsOk, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29453 | { (char *)"Joystick_GetNumberJoysticks", (PyCFunction) _wrap_Joystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29454 | { (char *)"Joystick_GetManufacturerId", (PyCFunction) _wrap_Joystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29455 | { (char *)"Joystick_GetProductId", (PyCFunction) _wrap_Joystick_GetProductId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29456 | { (char *)"Joystick_GetProductName", (PyCFunction) _wrap_Joystick_GetProductName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29457 | { (char *)"Joystick_GetXMin", (PyCFunction) _wrap_Joystick_GetXMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29458 | { (char *)"Joystick_GetYMin", (PyCFunction) _wrap_Joystick_GetYMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29459 | { (char *)"Joystick_GetZMin", (PyCFunction) _wrap_Joystick_GetZMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29460 | { (char *)"Joystick_GetXMax", (PyCFunction) _wrap_Joystick_GetXMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29461 | { (char *)"Joystick_GetYMax", (PyCFunction) _wrap_Joystick_GetYMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29462 | { (char *)"Joystick_GetZMax", (PyCFunction) _wrap_Joystick_GetZMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29463 | { (char *)"Joystick_GetNumberButtons", (PyCFunction) _wrap_Joystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29464 | { (char *)"Joystick_GetNumberAxes", (PyCFunction) _wrap_Joystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29465 | { (char *)"Joystick_GetMaxButtons", (PyCFunction) _wrap_Joystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29466 | { (char *)"Joystick_GetMaxAxes", (PyCFunction) _wrap_Joystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29467 | { (char *)"Joystick_GetPollingMin", (PyCFunction) _wrap_Joystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29468 | { (char *)"Joystick_GetPollingMax", (PyCFunction) _wrap_Joystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29469 | { (char *)"Joystick_GetRudderMin", (PyCFunction) _wrap_Joystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29470 | { (char *)"Joystick_GetRudderMax", (PyCFunction) _wrap_Joystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29471 | { (char *)"Joystick_GetUMin", (PyCFunction) _wrap_Joystick_GetUMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29472 | { (char *)"Joystick_GetUMax", (PyCFunction) _wrap_Joystick_GetUMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29473 | { (char *)"Joystick_GetVMin", (PyCFunction) _wrap_Joystick_GetVMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29474 | { (char *)"Joystick_GetVMax", (PyCFunction) _wrap_Joystick_GetVMax, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29475 | { (char *)"Joystick_HasRudder", (PyCFunction) _wrap_Joystick_HasRudder, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29476 | { (char *)"Joystick_HasZ", (PyCFunction) _wrap_Joystick_HasZ, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29477 | { (char *)"Joystick_HasU", (PyCFunction) _wrap_Joystick_HasU, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29478 | { (char *)"Joystick_HasV", (PyCFunction) _wrap_Joystick_HasV, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29479 | { (char *)"Joystick_HasPOV", (PyCFunction) _wrap_Joystick_HasPOV, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29480 | { (char *)"Joystick_HasPOV4Dir", (PyCFunction) _wrap_Joystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29481 | { (char *)"Joystick_HasPOVCTS", (PyCFunction) _wrap_Joystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29482 | { (char *)"Joystick_SetCapture", (PyCFunction) _wrap_Joystick_SetCapture, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29483 | { (char *)"Joystick_ReleaseCapture", (PyCFunction) _wrap_Joystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29484 | { (char *)"Joystick_swigregister", Joystick_swigregister, METH_VARARGS, NULL }, | |
29485 | { (char *)"JoystickEvent_m_pos_set", (PyCFunction) _wrap_JoystickEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29486 | { (char *)"JoystickEvent_m_pos_get", (PyCFunction) _wrap_JoystickEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29487 | { (char *)"JoystickEvent_m_zPosition_set", (PyCFunction) _wrap_JoystickEvent_m_zPosition_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29488 | { (char *)"JoystickEvent_m_zPosition_get", (PyCFunction) _wrap_JoystickEvent_m_zPosition_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29489 | { (char *)"JoystickEvent_m_buttonChange_set", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29490 | { (char *)"JoystickEvent_m_buttonChange_get", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29491 | { (char *)"JoystickEvent_m_buttonState_set", (PyCFunction) _wrap_JoystickEvent_m_buttonState_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29492 | { (char *)"JoystickEvent_m_buttonState_get", (PyCFunction) _wrap_JoystickEvent_m_buttonState_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29493 | { (char *)"JoystickEvent_m_joyStick_set", (PyCFunction) _wrap_JoystickEvent_m_joyStick_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29494 | { (char *)"JoystickEvent_m_joyStick_get", (PyCFunction) _wrap_JoystickEvent_m_joyStick_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29495 | { (char *)"new_JoystickEvent", (PyCFunction) _wrap_new_JoystickEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29496 | { (char *)"JoystickEvent_GetPosition", (PyCFunction) _wrap_JoystickEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29497 | { (char *)"JoystickEvent_GetZPosition", (PyCFunction) _wrap_JoystickEvent_GetZPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29498 | { (char *)"JoystickEvent_GetButtonState", (PyCFunction) _wrap_JoystickEvent_GetButtonState, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29499 | { (char *)"JoystickEvent_GetButtonChange", (PyCFunction) _wrap_JoystickEvent_GetButtonChange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29500 | { (char *)"JoystickEvent_GetJoystick", (PyCFunction) _wrap_JoystickEvent_GetJoystick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29501 | { (char *)"JoystickEvent_SetJoystick", (PyCFunction) _wrap_JoystickEvent_SetJoystick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29502 | { (char *)"JoystickEvent_SetButtonState", (PyCFunction) _wrap_JoystickEvent_SetButtonState, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29503 | { (char *)"JoystickEvent_SetButtonChange", (PyCFunction) _wrap_JoystickEvent_SetButtonChange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29504 | { (char *)"JoystickEvent_SetPosition", (PyCFunction) _wrap_JoystickEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29505 | { (char *)"JoystickEvent_SetZPosition", (PyCFunction) _wrap_JoystickEvent_SetZPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29506 | { (char *)"JoystickEvent_IsButton", (PyCFunction) _wrap_JoystickEvent_IsButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29507 | { (char *)"JoystickEvent_IsMove", (PyCFunction) _wrap_JoystickEvent_IsMove, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29508 | { (char *)"JoystickEvent_IsZMove", (PyCFunction) _wrap_JoystickEvent_IsZMove, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29509 | { (char *)"JoystickEvent_ButtonDown", (PyCFunction) _wrap_JoystickEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29510 | { (char *)"JoystickEvent_ButtonUp", (PyCFunction) _wrap_JoystickEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29511 | { (char *)"JoystickEvent_ButtonIsDown", (PyCFunction) _wrap_JoystickEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29512 | { (char *)"JoystickEvent_swigregister", JoystickEvent_swigregister, METH_VARARGS, NULL }, | |
29513 | { (char *)"new_Sound", (PyCFunction) _wrap_new_Sound, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29514 | { (char *)"new_SoundFromData", (PyCFunction) _wrap_new_SoundFromData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29515 | { (char *)"delete_Sound", (PyCFunction) _wrap_delete_Sound, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29516 | { (char *)"Sound_Create", (PyCFunction) _wrap_Sound_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29517 | { (char *)"Sound_CreateFromData", (PyCFunction) _wrap_Sound_CreateFromData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29518 | { (char *)"Sound_IsOk", (PyCFunction) _wrap_Sound_IsOk, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29519 | { (char *)"Sound_Play", (PyCFunction) _wrap_Sound_Play, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29520 | { (char *)"Sound_PlaySound", (PyCFunction) _wrap_Sound_PlaySound, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29521 | { (char *)"Sound_Stop", (PyCFunction) _wrap_Sound_Stop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29522 | { (char *)"Sound_swigregister", Sound_swigregister, METH_VARARGS, NULL }, | |
29523 | { (char *)"new_FileTypeInfo", (PyCFunction) _wrap_new_FileTypeInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29524 | { (char *)"new_FileTypeInfoSequence", (PyCFunction) _wrap_new_FileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29525 | { (char *)"new_NullFileTypeInfo", (PyCFunction) _wrap_new_NullFileTypeInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29526 | { (char *)"FileTypeInfo_IsValid", (PyCFunction) _wrap_FileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29527 | { (char *)"FileTypeInfo_SetIcon", (PyCFunction) _wrap_FileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29528 | { (char *)"FileTypeInfo_SetShortDesc", (PyCFunction) _wrap_FileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29529 | { (char *)"FileTypeInfo_GetMimeType", (PyCFunction) _wrap_FileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29530 | { (char *)"FileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_FileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29531 | { (char *)"FileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_FileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29532 | { (char *)"FileTypeInfo_GetShortDesc", (PyCFunction) _wrap_FileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29533 | { (char *)"FileTypeInfo_GetDescription", (PyCFunction) _wrap_FileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29534 | { (char *)"FileTypeInfo_GetExtensions", (PyCFunction) _wrap_FileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29535 | { (char *)"FileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_FileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29536 | { (char *)"FileTypeInfo_GetIconFile", (PyCFunction) _wrap_FileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29537 | { (char *)"FileTypeInfo_GetIconIndex", (PyCFunction) _wrap_FileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29538 | { (char *)"FileTypeInfo_swigregister", FileTypeInfo_swigregister, METH_VARARGS, NULL }, | |
29539 | { (char *)"new_FileType", (PyCFunction) _wrap_new_FileType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29540 | { (char *)"delete_FileType", (PyCFunction) _wrap_delete_FileType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29541 | { (char *)"FileType_GetMimeType", (PyCFunction) _wrap_FileType_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29542 | { (char *)"FileType_GetMimeTypes", (PyCFunction) _wrap_FileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29543 | { (char *)"FileType_GetExtensions", (PyCFunction) _wrap_FileType_GetExtensions, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29544 | { (char *)"FileType_GetIcon", (PyCFunction) _wrap_FileType_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29545 | { (char *)"FileType_GetIconInfo", (PyCFunction) _wrap_FileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29546 | { (char *)"FileType_GetDescription", (PyCFunction) _wrap_FileType_GetDescription, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29547 | { (char *)"FileType_GetOpenCommand", (PyCFunction) _wrap_FileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29548 | { (char *)"FileType_GetPrintCommand", (PyCFunction) _wrap_FileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29549 | { (char *)"FileType_GetAllCommands", (PyCFunction) _wrap_FileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29550 | { (char *)"FileType_SetCommand", (PyCFunction) _wrap_FileType_SetCommand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29551 | { (char *)"FileType_SetDefaultIcon", (PyCFunction) _wrap_FileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29552 | { (char *)"FileType_Unassociate", (PyCFunction) _wrap_FileType_Unassociate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29553 | { (char *)"FileType_ExpandCommand", (PyCFunction) _wrap_FileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29554 | { (char *)"FileType_swigregister", FileType_swigregister, METH_VARARGS, NULL }, | |
29555 | { (char *)"MimeTypesManager_IsOfType", (PyCFunction) _wrap_MimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29556 | { (char *)"new_MimeTypesManager", (PyCFunction) _wrap_new_MimeTypesManager, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29557 | { (char *)"MimeTypesManager_Initialize", (PyCFunction) _wrap_MimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29558 | { (char *)"MimeTypesManager_ClearData", (PyCFunction) _wrap_MimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29559 | { (char *)"MimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29560 | { (char *)"MimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29561 | { (char *)"MimeTypesManager_ReadMailcap", (PyCFunction) _wrap_MimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29562 | { (char *)"MimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_MimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29563 | { (char *)"MimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_MimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29564 | { (char *)"MimeTypesManager_AddFallback", (PyCFunction) _wrap_MimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29565 | { (char *)"MimeTypesManager_Associate", (PyCFunction) _wrap_MimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29566 | { (char *)"MimeTypesManager_Unassociate", (PyCFunction) _wrap_MimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29567 | { (char *)"delete_MimeTypesManager", (PyCFunction) _wrap_delete_MimeTypesManager, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29568 | { (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS, NULL }, | |
29569 | { (char *)"new_ArtProvider", (PyCFunction) _wrap_new_ArtProvider, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29570 | { (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29571 | { (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29572 | { (char *)"ArtProvider_PopProvider", (PyCFunction) _wrap_ArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29573 | { (char *)"ArtProvider_RemoveProvider", (PyCFunction) _wrap_ArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29574 | { (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29575 | { (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29576 | { (char *)"ArtProvider_Destroy", (PyCFunction) _wrap_ArtProvider_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29577 | { (char *)"ArtProvider_swigregister", ArtProvider_swigregister, METH_VARARGS, NULL }, | |
29578 | { (char *)"delete_ConfigBase", (PyCFunction) _wrap_delete_ConfigBase, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29579 | { (char *)"ConfigBase_Set", (PyCFunction) _wrap_ConfigBase_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29580 | { (char *)"ConfigBase_Get", (PyCFunction) _wrap_ConfigBase_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29581 | { (char *)"ConfigBase_Create", (PyCFunction) _wrap_ConfigBase_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29582 | { (char *)"ConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_ConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29583 | { (char *)"ConfigBase_SetPath", (PyCFunction) _wrap_ConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29584 | { (char *)"ConfigBase_GetPath", (PyCFunction) _wrap_ConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29585 | { (char *)"ConfigBase_GetFirstGroup", (PyCFunction) _wrap_ConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29586 | { (char *)"ConfigBase_GetNextGroup", (PyCFunction) _wrap_ConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29587 | { (char *)"ConfigBase_GetFirstEntry", (PyCFunction) _wrap_ConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29588 | { (char *)"ConfigBase_GetNextEntry", (PyCFunction) _wrap_ConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29589 | { (char *)"ConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_ConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29590 | { (char *)"ConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_ConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29591 | { (char *)"ConfigBase_HasGroup", (PyCFunction) _wrap_ConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29592 | { (char *)"ConfigBase_HasEntry", (PyCFunction) _wrap_ConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29593 | { (char *)"ConfigBase_Exists", (PyCFunction) _wrap_ConfigBase_Exists, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29594 | { (char *)"ConfigBase_GetEntryType", (PyCFunction) _wrap_ConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29595 | { (char *)"ConfigBase_Read", (PyCFunction) _wrap_ConfigBase_Read, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29596 | { (char *)"ConfigBase_ReadInt", (PyCFunction) _wrap_ConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29597 | { (char *)"ConfigBase_ReadFloat", (PyCFunction) _wrap_ConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29598 | { (char *)"ConfigBase_ReadBool", (PyCFunction) _wrap_ConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29599 | { (char *)"ConfigBase_Write", (PyCFunction) _wrap_ConfigBase_Write, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29600 | { (char *)"ConfigBase_WriteInt", (PyCFunction) _wrap_ConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29601 | { (char *)"ConfigBase_WriteFloat", (PyCFunction) _wrap_ConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29602 | { (char *)"ConfigBase_WriteBool", (PyCFunction) _wrap_ConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29603 | { (char *)"ConfigBase_Flush", (PyCFunction) _wrap_ConfigBase_Flush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29604 | { (char *)"ConfigBase_RenameEntry", (PyCFunction) _wrap_ConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29605 | { (char *)"ConfigBase_RenameGroup", (PyCFunction) _wrap_ConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29606 | { (char *)"ConfigBase_DeleteEntry", (PyCFunction) _wrap_ConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29607 | { (char *)"ConfigBase_DeleteGroup", (PyCFunction) _wrap_ConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29608 | { (char *)"ConfigBase_DeleteAll", (PyCFunction) _wrap_ConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29609 | { (char *)"ConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_ConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29610 | { (char *)"ConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_ConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29611 | { (char *)"ConfigBase_SetRecordDefaults", (PyCFunction) _wrap_ConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29612 | { (char *)"ConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_ConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29613 | { (char *)"ConfigBase_ExpandEnvVars", (PyCFunction) _wrap_ConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29614 | { (char *)"ConfigBase_GetAppName", (PyCFunction) _wrap_ConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29615 | { (char *)"ConfigBase_GetVendorName", (PyCFunction) _wrap_ConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29616 | { (char *)"ConfigBase_SetAppName", (PyCFunction) _wrap_ConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29617 | { (char *)"ConfigBase_SetVendorName", (PyCFunction) _wrap_ConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29618 | { (char *)"ConfigBase_SetStyle", (PyCFunction) _wrap_ConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29619 | { (char *)"ConfigBase_GetStyle", (PyCFunction) _wrap_ConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29620 | { (char *)"ConfigBase_swigregister", ConfigBase_swigregister, METH_VARARGS, NULL }, | |
29621 | { (char *)"new_Config", (PyCFunction) _wrap_new_Config, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29622 | { (char *)"delete_Config", (PyCFunction) _wrap_delete_Config, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29623 | { (char *)"Config_swigregister", Config_swigregister, METH_VARARGS, NULL }, | |
29624 | { (char *)"new_FileConfig", (PyCFunction) _wrap_new_FileConfig, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29625 | { (char *)"delete_FileConfig", (PyCFunction) _wrap_delete_FileConfig, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29626 | { (char *)"FileConfig_swigregister", FileConfig_swigregister, METH_VARARGS, NULL }, | |
29627 | { (char *)"new_ConfigPathChanger", (PyCFunction) _wrap_new_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29628 | { (char *)"delete_ConfigPathChanger", (PyCFunction) _wrap_delete_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29629 | { (char *)"ConfigPathChanger_Name", (PyCFunction) _wrap_ConfigPathChanger_Name, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29630 | { (char *)"ConfigPathChanger_swigregister", ConfigPathChanger_swigregister, METH_VARARGS, NULL }, | |
29631 | { (char *)"ExpandEnvVars", (PyCFunction) _wrap_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29632 | { (char *)"DateTime_SetCountry", (PyCFunction) _wrap_DateTime_SetCountry, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29633 | { (char *)"DateTime_GetCountry", (PyCFunction) _wrap_DateTime_GetCountry, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29634 | { (char *)"DateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_DateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29635 | { (char *)"DateTime_GetCurrentYear", (PyCFunction) _wrap_DateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29636 | { (char *)"DateTime_ConvertYearToBC", (PyCFunction) _wrap_DateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29637 | { (char *)"DateTime_GetCurrentMonth", (PyCFunction) _wrap_DateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29638 | { (char *)"DateTime_IsLeapYear", (PyCFunction) _wrap_DateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29639 | { (char *)"DateTime_GetCentury", (PyCFunction) _wrap_DateTime_GetCentury, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29640 | { (char *)"DateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_DateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29641 | { (char *)"DateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_DateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29642 | { (char *)"DateTime_GetMonthName", (PyCFunction) _wrap_DateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29643 | { (char *)"DateTime_GetWeekDayName", (PyCFunction) _wrap_DateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29644 | { (char *)"DateTime_GetAmPmStrings", (PyCFunction) _wrap_DateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29645 | { (char *)"DateTime_IsDSTApplicable", (PyCFunction) _wrap_DateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29646 | { (char *)"DateTime_GetBeginDST", (PyCFunction) _wrap_DateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29647 | { (char *)"DateTime_GetEndDST", (PyCFunction) _wrap_DateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29648 | { (char *)"DateTime_Now", (PyCFunction) _wrap_DateTime_Now, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29649 | { (char *)"DateTime_UNow", (PyCFunction) _wrap_DateTime_UNow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29650 | { (char *)"DateTime_Today", (PyCFunction) _wrap_DateTime_Today, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29651 | { (char *)"new_DateTime", (PyCFunction) _wrap_new_DateTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29652 | { (char *)"new_DateTimeFromTimeT", (PyCFunction) _wrap_new_DateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29653 | { (char *)"new_DateTimeFromJDN", (PyCFunction) _wrap_new_DateTimeFromJDN, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29654 | { (char *)"new_DateTimeFromHMS", (PyCFunction) _wrap_new_DateTimeFromHMS, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29655 | { (char *)"new_DateTimeFromDMY", (PyCFunction) _wrap_new_DateTimeFromDMY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29656 | { (char *)"delete_DateTime", (PyCFunction) _wrap_delete_DateTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29657 | { (char *)"DateTime_SetToCurrent", (PyCFunction) _wrap_DateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29658 | { (char *)"DateTime_SetTimeT", (PyCFunction) _wrap_DateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29659 | { (char *)"DateTime_SetJDN", (PyCFunction) _wrap_DateTime_SetJDN, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29660 | { (char *)"DateTime_SetHMS", (PyCFunction) _wrap_DateTime_SetHMS, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29661 | { (char *)"DateTime_Set", (PyCFunction) _wrap_DateTime_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29662 | { (char *)"DateTime_ResetTime", (PyCFunction) _wrap_DateTime_ResetTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29663 | { (char *)"DateTime_SetYear", (PyCFunction) _wrap_DateTime_SetYear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29664 | { (char *)"DateTime_SetMonth", (PyCFunction) _wrap_DateTime_SetMonth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29665 | { (char *)"DateTime_SetDay", (PyCFunction) _wrap_DateTime_SetDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29666 | { (char *)"DateTime_SetHour", (PyCFunction) _wrap_DateTime_SetHour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29667 | { (char *)"DateTime_SetMinute", (PyCFunction) _wrap_DateTime_SetMinute, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29668 | { (char *)"DateTime_SetSecond", (PyCFunction) _wrap_DateTime_SetSecond, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29669 | { (char *)"DateTime_SetMillisecond", (PyCFunction) _wrap_DateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29670 | { (char *)"DateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29671 | { (char *)"DateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29672 | { (char *)"DateTime_SetToNextWeekDay", (PyCFunction) _wrap_DateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29673 | { (char *)"DateTime_GetNextWeekDay", (PyCFunction) _wrap_DateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29674 | { (char *)"DateTime_SetToPrevWeekDay", (PyCFunction) _wrap_DateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29675 | { (char *)"DateTime_GetPrevWeekDay", (PyCFunction) _wrap_DateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29676 | { (char *)"DateTime_SetToWeekDay", (PyCFunction) _wrap_DateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29677 | { (char *)"DateTime_SetToLastWeekDay", (PyCFunction) _wrap_DateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29678 | { (char *)"DateTime_GetLastWeekDay", (PyCFunction) _wrap_DateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29679 | { (char *)"DateTime_SetToTheWeek", (PyCFunction) _wrap_DateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29680 | { (char *)"DateTime_GetWeek", (PyCFunction) _wrap_DateTime_GetWeek, METH_VARARGS | METH_KEYWORDS, NULL }, | |
7e63a440 | 29681 | { (char *)"DateTime_SetToWeekOfYear", (PyCFunction) _wrap_DateTime_SetToWeekOfYear, METH_VARARGS | METH_KEYWORDS, NULL }, |
c32bde28 RD |
29682 | { (char *)"DateTime_SetToLastMonthDay", (PyCFunction) _wrap_DateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS, NULL }, |
29683 | { (char *)"DateTime_GetLastMonthDay", (PyCFunction) _wrap_DateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29684 | { (char *)"DateTime_SetToYearDay", (PyCFunction) _wrap_DateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29685 | { (char *)"DateTime_GetYearDay", (PyCFunction) _wrap_DateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29686 | { (char *)"DateTime_GetJulianDayNumber", (PyCFunction) _wrap_DateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29687 | { (char *)"DateTime_GetJDN", (PyCFunction) _wrap_DateTime_GetJDN, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29688 | { (char *)"DateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_DateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29689 | { (char *)"DateTime_GetMJD", (PyCFunction) _wrap_DateTime_GetMJD, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29690 | { (char *)"DateTime_GetRataDie", (PyCFunction) _wrap_DateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29691 | { (char *)"DateTime_ToTimezone", (PyCFunction) _wrap_DateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29692 | { (char *)"DateTime_MakeTimezone", (PyCFunction) _wrap_DateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29693 | { (char *)"DateTime_ToGMT", (PyCFunction) _wrap_DateTime_ToGMT, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29694 | { (char *)"DateTime_MakeGMT", (PyCFunction) _wrap_DateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29695 | { (char *)"DateTime_IsDST", (PyCFunction) _wrap_DateTime_IsDST, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29696 | { (char *)"DateTime_IsValid", (PyCFunction) _wrap_DateTime_IsValid, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29697 | { (char *)"DateTime_GetTicks", (PyCFunction) _wrap_DateTime_GetTicks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29698 | { (char *)"DateTime_GetYear", (PyCFunction) _wrap_DateTime_GetYear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29699 | { (char *)"DateTime_GetMonth", (PyCFunction) _wrap_DateTime_GetMonth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29700 | { (char *)"DateTime_GetDay", (PyCFunction) _wrap_DateTime_GetDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29701 | { (char *)"DateTime_GetWeekDay", (PyCFunction) _wrap_DateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29702 | { (char *)"DateTime_GetHour", (PyCFunction) _wrap_DateTime_GetHour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29703 | { (char *)"DateTime_GetMinute", (PyCFunction) _wrap_DateTime_GetMinute, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29704 | { (char *)"DateTime_GetSecond", (PyCFunction) _wrap_DateTime_GetSecond, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29705 | { (char *)"DateTime_GetMillisecond", (PyCFunction) _wrap_DateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29706 | { (char *)"DateTime_GetDayOfYear", (PyCFunction) _wrap_DateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29707 | { (char *)"DateTime_GetWeekOfYear", (PyCFunction) _wrap_DateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29708 | { (char *)"DateTime_GetWeekOfMonth", (PyCFunction) _wrap_DateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29709 | { (char *)"DateTime_IsWorkDay", (PyCFunction) _wrap_DateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29710 | { (char *)"DateTime_IsEqualTo", (PyCFunction) _wrap_DateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29711 | { (char *)"DateTime_IsEarlierThan", (PyCFunction) _wrap_DateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29712 | { (char *)"DateTime_IsLaterThan", (PyCFunction) _wrap_DateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29713 | { (char *)"DateTime_IsStrictlyBetween", (PyCFunction) _wrap_DateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29714 | { (char *)"DateTime_IsBetween", (PyCFunction) _wrap_DateTime_IsBetween, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29715 | { (char *)"DateTime_IsSameDate", (PyCFunction) _wrap_DateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29716 | { (char *)"DateTime_IsSameTime", (PyCFunction) _wrap_DateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29717 | { (char *)"DateTime_IsEqualUpTo", (PyCFunction) _wrap_DateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29718 | { (char *)"DateTime_AddTS", (PyCFunction) _wrap_DateTime_AddTS, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29719 | { (char *)"DateTime_AddDS", (PyCFunction) _wrap_DateTime_AddDS, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29720 | { (char *)"DateTime_SubtractTS", (PyCFunction) _wrap_DateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29721 | { (char *)"DateTime_SubtractDS", (PyCFunction) _wrap_DateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29722 | { (char *)"DateTime_Subtract", (PyCFunction) _wrap_DateTime_Subtract, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29723 | { (char *)"DateTime___iadd__", _wrap_DateTime___iadd__, METH_VARARGS, NULL }, | |
29724 | { (char *)"DateTime___isub__", _wrap_DateTime___isub__, METH_VARARGS, NULL }, | |
29725 | { (char *)"DateTime___add__", _wrap_DateTime___add__, METH_VARARGS, NULL }, | |
29726 | { (char *)"DateTime___sub__", _wrap_DateTime___sub__, METH_VARARGS, NULL }, | |
29727 | { (char *)"DateTime___lt__", _wrap_DateTime___lt__, METH_VARARGS, NULL }, | |
29728 | { (char *)"DateTime___le__", _wrap_DateTime___le__, METH_VARARGS, NULL }, | |
29729 | { (char *)"DateTime___gt__", _wrap_DateTime___gt__, METH_VARARGS, NULL }, | |
29730 | { (char *)"DateTime___ge__", _wrap_DateTime___ge__, METH_VARARGS, NULL }, | |
29731 | { (char *)"DateTime___eq__", _wrap_DateTime___eq__, METH_VARARGS, NULL }, | |
29732 | { (char *)"DateTime___ne__", _wrap_DateTime___ne__, METH_VARARGS, NULL }, | |
29733 | { (char *)"DateTime_ParseRfc822Date", (PyCFunction) _wrap_DateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29734 | { (char *)"DateTime_ParseFormat", (PyCFunction) _wrap_DateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29735 | { (char *)"DateTime_ParseDateTime", (PyCFunction) _wrap_DateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29736 | { (char *)"DateTime_ParseDate", (PyCFunction) _wrap_DateTime_ParseDate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29737 | { (char *)"DateTime_ParseTime", (PyCFunction) _wrap_DateTime_ParseTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29738 | { (char *)"DateTime_Format", (PyCFunction) _wrap_DateTime_Format, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29739 | { (char *)"DateTime_FormatDate", (PyCFunction) _wrap_DateTime_FormatDate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29740 | { (char *)"DateTime_FormatTime", (PyCFunction) _wrap_DateTime_FormatTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29741 | { (char *)"DateTime_FormatISODate", (PyCFunction) _wrap_DateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29742 | { (char *)"DateTime_FormatISOTime", (PyCFunction) _wrap_DateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29743 | { (char *)"DateTime_swigregister", DateTime_swigregister, METH_VARARGS, NULL }, | |
29744 | { (char *)"TimeSpan_Seconds", (PyCFunction) _wrap_TimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29745 | { (char *)"TimeSpan_Second", (PyCFunction) _wrap_TimeSpan_Second, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29746 | { (char *)"TimeSpan_Minutes", (PyCFunction) _wrap_TimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29747 | { (char *)"TimeSpan_Minute", (PyCFunction) _wrap_TimeSpan_Minute, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29748 | { (char *)"TimeSpan_Hours", (PyCFunction) _wrap_TimeSpan_Hours, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29749 | { (char *)"TimeSpan_Hour", (PyCFunction) _wrap_TimeSpan_Hour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29750 | { (char *)"TimeSpan_Days", (PyCFunction) _wrap_TimeSpan_Days, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29751 | { (char *)"TimeSpan_Day", (PyCFunction) _wrap_TimeSpan_Day, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29752 | { (char *)"TimeSpan_Weeks", (PyCFunction) _wrap_TimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29753 | { (char *)"TimeSpan_Week", (PyCFunction) _wrap_TimeSpan_Week, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29754 | { (char *)"new_TimeSpan", (PyCFunction) _wrap_new_TimeSpan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29755 | { (char *)"delete_TimeSpan", (PyCFunction) _wrap_delete_TimeSpan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29756 | { (char *)"TimeSpan_Add", (PyCFunction) _wrap_TimeSpan_Add, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29757 | { (char *)"TimeSpan_Subtract", (PyCFunction) _wrap_TimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29758 | { (char *)"TimeSpan_Multiply", (PyCFunction) _wrap_TimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29759 | { (char *)"TimeSpan_Neg", (PyCFunction) _wrap_TimeSpan_Neg, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29760 | { (char *)"TimeSpan_Abs", (PyCFunction) _wrap_TimeSpan_Abs, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29761 | { (char *)"TimeSpan___iadd__", (PyCFunction) _wrap_TimeSpan___iadd__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29762 | { (char *)"TimeSpan___isub__", (PyCFunction) _wrap_TimeSpan___isub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29763 | { (char *)"TimeSpan___imul__", (PyCFunction) _wrap_TimeSpan___imul__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29764 | { (char *)"TimeSpan___neg__", (PyCFunction) _wrap_TimeSpan___neg__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29765 | { (char *)"TimeSpan___add__", (PyCFunction) _wrap_TimeSpan___add__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29766 | { (char *)"TimeSpan___sub__", (PyCFunction) _wrap_TimeSpan___sub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29767 | { (char *)"TimeSpan___mul__", (PyCFunction) _wrap_TimeSpan___mul__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29768 | { (char *)"TimeSpan___rmul__", (PyCFunction) _wrap_TimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29769 | { (char *)"TimeSpan___lt__", (PyCFunction) _wrap_TimeSpan___lt__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29770 | { (char *)"TimeSpan___le__", (PyCFunction) _wrap_TimeSpan___le__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29771 | { (char *)"TimeSpan___gt__", (PyCFunction) _wrap_TimeSpan___gt__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29772 | { (char *)"TimeSpan___ge__", (PyCFunction) _wrap_TimeSpan___ge__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29773 | { (char *)"TimeSpan___eq__", (PyCFunction) _wrap_TimeSpan___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29774 | { (char *)"TimeSpan___ne__", (PyCFunction) _wrap_TimeSpan___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29775 | { (char *)"TimeSpan_IsNull", (PyCFunction) _wrap_TimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29776 | { (char *)"TimeSpan_IsPositive", (PyCFunction) _wrap_TimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29777 | { (char *)"TimeSpan_IsNegative", (PyCFunction) _wrap_TimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29778 | { (char *)"TimeSpan_IsEqualTo", (PyCFunction) _wrap_TimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29779 | { (char *)"TimeSpan_IsLongerThan", (PyCFunction) _wrap_TimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29780 | { (char *)"TimeSpan_IsShorterThan", (PyCFunction) _wrap_TimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29781 | { (char *)"TimeSpan_GetWeeks", (PyCFunction) _wrap_TimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29782 | { (char *)"TimeSpan_GetDays", (PyCFunction) _wrap_TimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29783 | { (char *)"TimeSpan_GetHours", (PyCFunction) _wrap_TimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29784 | { (char *)"TimeSpan_GetMinutes", (PyCFunction) _wrap_TimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29785 | { (char *)"TimeSpan_GetSeconds", (PyCFunction) _wrap_TimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29786 | { (char *)"TimeSpan_GetMilliseconds", (PyCFunction) _wrap_TimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29787 | { (char *)"TimeSpan_Format", (PyCFunction) _wrap_TimeSpan_Format, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29788 | { (char *)"TimeSpan_swigregister", TimeSpan_swigregister, METH_VARARGS, NULL }, | |
29789 | { (char *)"new_DateSpan", (PyCFunction) _wrap_new_DateSpan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29790 | { (char *)"delete_DateSpan", (PyCFunction) _wrap_delete_DateSpan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29791 | { (char *)"DateSpan_Days", (PyCFunction) _wrap_DateSpan_Days, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29792 | { (char *)"DateSpan_Day", (PyCFunction) _wrap_DateSpan_Day, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29793 | { (char *)"DateSpan_Weeks", (PyCFunction) _wrap_DateSpan_Weeks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29794 | { (char *)"DateSpan_Week", (PyCFunction) _wrap_DateSpan_Week, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29795 | { (char *)"DateSpan_Months", (PyCFunction) _wrap_DateSpan_Months, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29796 | { (char *)"DateSpan_Month", (PyCFunction) _wrap_DateSpan_Month, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29797 | { (char *)"DateSpan_Years", (PyCFunction) _wrap_DateSpan_Years, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29798 | { (char *)"DateSpan_Year", (PyCFunction) _wrap_DateSpan_Year, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29799 | { (char *)"DateSpan_SetYears", (PyCFunction) _wrap_DateSpan_SetYears, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29800 | { (char *)"DateSpan_SetMonths", (PyCFunction) _wrap_DateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29801 | { (char *)"DateSpan_SetWeeks", (PyCFunction) _wrap_DateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29802 | { (char *)"DateSpan_SetDays", (PyCFunction) _wrap_DateSpan_SetDays, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29803 | { (char *)"DateSpan_GetYears", (PyCFunction) _wrap_DateSpan_GetYears, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29804 | { (char *)"DateSpan_GetMonths", (PyCFunction) _wrap_DateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29805 | { (char *)"DateSpan_GetWeeks", (PyCFunction) _wrap_DateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29806 | { (char *)"DateSpan_GetDays", (PyCFunction) _wrap_DateSpan_GetDays, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29807 | { (char *)"DateSpan_GetTotalDays", (PyCFunction) _wrap_DateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29808 | { (char *)"DateSpan_Add", (PyCFunction) _wrap_DateSpan_Add, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29809 | { (char *)"DateSpan_Subtract", (PyCFunction) _wrap_DateSpan_Subtract, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29810 | { (char *)"DateSpan_Neg", (PyCFunction) _wrap_DateSpan_Neg, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29811 | { (char *)"DateSpan_Multiply", (PyCFunction) _wrap_DateSpan_Multiply, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29812 | { (char *)"DateSpan___iadd__", (PyCFunction) _wrap_DateSpan___iadd__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29813 | { (char *)"DateSpan___isub__", (PyCFunction) _wrap_DateSpan___isub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29814 | { (char *)"DateSpan___neg__", (PyCFunction) _wrap_DateSpan___neg__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29815 | { (char *)"DateSpan___imul__", (PyCFunction) _wrap_DateSpan___imul__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29816 | { (char *)"DateSpan___add__", (PyCFunction) _wrap_DateSpan___add__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29817 | { (char *)"DateSpan___sub__", (PyCFunction) _wrap_DateSpan___sub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29818 | { (char *)"DateSpan___mul__", (PyCFunction) _wrap_DateSpan___mul__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29819 | { (char *)"DateSpan___rmul__", (PyCFunction) _wrap_DateSpan___rmul__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29820 | { (char *)"DateSpan___eq__", (PyCFunction) _wrap_DateSpan___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29821 | { (char *)"DateSpan___ne__", (PyCFunction) _wrap_DateSpan___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29822 | { (char *)"DateSpan_swigregister", DateSpan_swigregister, METH_VARARGS, NULL }, | |
29823 | { (char *)"GetLocalTime", (PyCFunction) _wrap_GetLocalTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29824 | { (char *)"GetUTCTime", (PyCFunction) _wrap_GetUTCTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29825 | { (char *)"GetCurrentTime", (PyCFunction) _wrap_GetCurrentTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29826 | { (char *)"GetLocalTimeMillis", (PyCFunction) _wrap_GetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29827 | { (char *)"new_DataFormat", (PyCFunction) _wrap_new_DataFormat, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29828 | { (char *)"new_CustomDataFormat", (PyCFunction) _wrap_new_CustomDataFormat, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29829 | { (char *)"delete_DataFormat", (PyCFunction) _wrap_delete_DataFormat, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29830 | { (char *)"DataFormat___eq__", _wrap_DataFormat___eq__, METH_VARARGS, NULL }, | |
29831 | { (char *)"DataFormat___ne__", _wrap_DataFormat___ne__, METH_VARARGS, NULL }, | |
29832 | { (char *)"DataFormat_SetType", (PyCFunction) _wrap_DataFormat_SetType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29833 | { (char *)"DataFormat_GetType", (PyCFunction) _wrap_DataFormat_GetType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29834 | { (char *)"DataFormat_GetId", (PyCFunction) _wrap_DataFormat_GetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29835 | { (char *)"DataFormat_SetId", (PyCFunction) _wrap_DataFormat_SetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29836 | { (char *)"DataFormat_swigregister", DataFormat_swigregister, METH_VARARGS, NULL }, | |
29837 | { (char *)"delete_DataObject", (PyCFunction) _wrap_delete_DataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29838 | { (char *)"DataObject_GetPreferredFormat", (PyCFunction) _wrap_DataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29839 | { (char *)"DataObject_GetFormatCount", (PyCFunction) _wrap_DataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29840 | { (char *)"DataObject_IsSupported", (PyCFunction) _wrap_DataObject_IsSupported, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29841 | { (char *)"DataObject_GetDataSize", (PyCFunction) _wrap_DataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29842 | { (char *)"DataObject_GetAllFormats", (PyCFunction) _wrap_DataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29843 | { (char *)"DataObject_GetDataHere", (PyCFunction) _wrap_DataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29844 | { (char *)"DataObject_SetData", (PyCFunction) _wrap_DataObject_SetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29845 | { (char *)"DataObject_swigregister", DataObject_swigregister, METH_VARARGS, NULL }, | |
29846 | { (char *)"new_DataObjectSimple", (PyCFunction) _wrap_new_DataObjectSimple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29847 | { (char *)"DataObjectSimple_GetFormat", (PyCFunction) _wrap_DataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29848 | { (char *)"DataObjectSimple_SetFormat", (PyCFunction) _wrap_DataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29849 | { (char *)"DataObjectSimple_GetDataSize", (PyCFunction) _wrap_DataObjectSimple_GetDataSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29850 | { (char *)"DataObjectSimple_GetDataHere", (PyCFunction) _wrap_DataObjectSimple_GetDataHere, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29851 | { (char *)"DataObjectSimple_SetData", (PyCFunction) _wrap_DataObjectSimple_SetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29852 | { (char *)"DataObjectSimple_swigregister", DataObjectSimple_swigregister, METH_VARARGS, NULL }, | |
29853 | { (char *)"new_PyDataObjectSimple", (PyCFunction) _wrap_new_PyDataObjectSimple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29854 | { (char *)"PyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_PyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29855 | { (char *)"PyDataObjectSimple_swigregister", PyDataObjectSimple_swigregister, METH_VARARGS, NULL }, | |
29856 | { (char *)"new_DataObjectComposite", (PyCFunction) _wrap_new_DataObjectComposite, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29857 | { (char *)"DataObjectComposite_Add", (PyCFunction) _wrap_DataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29858 | { (char *)"DataObjectComposite_swigregister", DataObjectComposite_swigregister, METH_VARARGS, NULL }, | |
29859 | { (char *)"new_TextDataObject", (PyCFunction) _wrap_new_TextDataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29860 | { (char *)"TextDataObject_GetTextLength", (PyCFunction) _wrap_TextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29861 | { (char *)"TextDataObject_GetText", (PyCFunction) _wrap_TextDataObject_GetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29862 | { (char *)"TextDataObject_SetText", (PyCFunction) _wrap_TextDataObject_SetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29863 | { (char *)"TextDataObject_swigregister", TextDataObject_swigregister, METH_VARARGS, NULL }, | |
29864 | { (char *)"new_PyTextDataObject", (PyCFunction) _wrap_new_PyTextDataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29865 | { (char *)"PyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_PyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29866 | { (char *)"PyTextDataObject_swigregister", PyTextDataObject_swigregister, METH_VARARGS, NULL }, | |
29867 | { (char *)"new_BitmapDataObject", (PyCFunction) _wrap_new_BitmapDataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29868 | { (char *)"BitmapDataObject_GetBitmap", (PyCFunction) _wrap_BitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29869 | { (char *)"BitmapDataObject_SetBitmap", (PyCFunction) _wrap_BitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29870 | { (char *)"BitmapDataObject_swigregister", BitmapDataObject_swigregister, METH_VARARGS, NULL }, | |
29871 | { (char *)"new_PyBitmapDataObject", (PyCFunction) _wrap_new_PyBitmapDataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29872 | { (char *)"PyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_PyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29873 | { (char *)"PyBitmapDataObject_swigregister", PyBitmapDataObject_swigregister, METH_VARARGS, NULL }, | |
29874 | { (char *)"new_FileDataObject", (PyCFunction) _wrap_new_FileDataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29875 | { (char *)"FileDataObject_GetFilenames", (PyCFunction) _wrap_FileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29876 | { (char *)"FileDataObject_AddFile", (PyCFunction) _wrap_FileDataObject_AddFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29877 | { (char *)"FileDataObject_swigregister", FileDataObject_swigregister, METH_VARARGS, NULL }, | |
29878 | { (char *)"new_CustomDataObject", (PyCFunction) _wrap_new_CustomDataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29879 | { (char *)"CustomDataObject_SetData", (PyCFunction) _wrap_CustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29880 | { (char *)"CustomDataObject_GetSize", (PyCFunction) _wrap_CustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29881 | { (char *)"CustomDataObject_GetData", (PyCFunction) _wrap_CustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29882 | { (char *)"CustomDataObject_swigregister", CustomDataObject_swigregister, METH_VARARGS, NULL }, | |
29883 | { (char *)"new_URLDataObject", (PyCFunction) _wrap_new_URLDataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29884 | { (char *)"URLDataObject_GetURL", (PyCFunction) _wrap_URLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29885 | { (char *)"URLDataObject_SetURL", (PyCFunction) _wrap_URLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29886 | { (char *)"URLDataObject_swigregister", URLDataObject_swigregister, METH_VARARGS, NULL }, | |
29887 | { (char *)"new_MetafileDataObject", (PyCFunction) _wrap_new_MetafileDataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29888 | { (char *)"MetafileDataObject_SetMetafile", (PyCFunction) _wrap_MetafileDataObject_SetMetafile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29889 | { (char *)"MetafileDataObject_GetMetafile", (PyCFunction) _wrap_MetafileDataObject_GetMetafile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29890 | { (char *)"MetafileDataObject_swigregister", MetafileDataObject_swigregister, METH_VARARGS, NULL }, | |
29891 | { (char *)"IsDragResultOk", (PyCFunction) _wrap_IsDragResultOk, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29892 | { (char *)"new_DropSource", (PyCFunction) _wrap_new_DropSource, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29893 | { (char *)"DropSource__setCallbackInfo", (PyCFunction) _wrap_DropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29894 | { (char *)"delete_DropSource", (PyCFunction) _wrap_delete_DropSource, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29895 | { (char *)"DropSource_SetData", (PyCFunction) _wrap_DropSource_SetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29896 | { (char *)"DropSource_GetDataObject", (PyCFunction) _wrap_DropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29897 | { (char *)"DropSource_SetCursor", (PyCFunction) _wrap_DropSource_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29898 | { (char *)"DropSource_DoDragDrop", (PyCFunction) _wrap_DropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29899 | { (char *)"DropSource_base_GiveFeedback", (PyCFunction) _wrap_DropSource_base_GiveFeedback, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29900 | { (char *)"DropSource_swigregister", DropSource_swigregister, METH_VARARGS, NULL }, | |
29901 | { (char *)"new_DropTarget", (PyCFunction) _wrap_new_DropTarget, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29902 | { (char *)"DropTarget__setCallbackInfo", (PyCFunction) _wrap_DropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29903 | { (char *)"delete_DropTarget", (PyCFunction) _wrap_delete_DropTarget, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29904 | { (char *)"DropTarget_GetDataObject", (PyCFunction) _wrap_DropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29905 | { (char *)"DropTarget_SetDataObject", (PyCFunction) _wrap_DropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29906 | { (char *)"DropTarget_base_OnEnter", (PyCFunction) _wrap_DropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29907 | { (char *)"DropTarget_base_OnDragOver", (PyCFunction) _wrap_DropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29908 | { (char *)"DropTarget_base_OnLeave", (PyCFunction) _wrap_DropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29909 | { (char *)"DropTarget_base_OnDrop", (PyCFunction) _wrap_DropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29910 | { (char *)"DropTarget_GetData", (PyCFunction) _wrap_DropTarget_GetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29911 | { (char *)"DropTarget_swigregister", DropTarget_swigregister, METH_VARARGS, NULL }, | |
29912 | { (char *)"new_TextDropTarget", (PyCFunction) _wrap_new_TextDropTarget, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29913 | { (char *)"TextDropTarget__setCallbackInfo", (PyCFunction) _wrap_TextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29914 | { (char *)"TextDropTarget_base_OnEnter", (PyCFunction) _wrap_TextDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29915 | { (char *)"TextDropTarget_base_OnDragOver", (PyCFunction) _wrap_TextDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29916 | { (char *)"TextDropTarget_base_OnLeave", (PyCFunction) _wrap_TextDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29917 | { (char *)"TextDropTarget_base_OnDrop", (PyCFunction) _wrap_TextDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29918 | { (char *)"TextDropTarget_base_OnData", (PyCFunction) _wrap_TextDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29919 | { (char *)"TextDropTarget_swigregister", TextDropTarget_swigregister, METH_VARARGS, NULL }, | |
29920 | { (char *)"new_FileDropTarget", (PyCFunction) _wrap_new_FileDropTarget, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29921 | { (char *)"FileDropTarget__setCallbackInfo", (PyCFunction) _wrap_FileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29922 | { (char *)"FileDropTarget_base_OnEnter", (PyCFunction) _wrap_FileDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29923 | { (char *)"FileDropTarget_base_OnDragOver", (PyCFunction) _wrap_FileDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29924 | { (char *)"FileDropTarget_base_OnLeave", (PyCFunction) _wrap_FileDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29925 | { (char *)"FileDropTarget_base_OnDrop", (PyCFunction) _wrap_FileDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29926 | { (char *)"FileDropTarget_base_OnData", (PyCFunction) _wrap_FileDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29927 | { (char *)"FileDropTarget_swigregister", FileDropTarget_swigregister, METH_VARARGS, NULL }, | |
29928 | { (char *)"new_Clipboard", (PyCFunction) _wrap_new_Clipboard, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29929 | { (char *)"delete_Clipboard", (PyCFunction) _wrap_delete_Clipboard, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29930 | { (char *)"Clipboard_Open", (PyCFunction) _wrap_Clipboard_Open, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29931 | { (char *)"Clipboard_Close", (PyCFunction) _wrap_Clipboard_Close, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29932 | { (char *)"Clipboard_IsOpened", (PyCFunction) _wrap_Clipboard_IsOpened, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29933 | { (char *)"Clipboard_AddData", (PyCFunction) _wrap_Clipboard_AddData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29934 | { (char *)"Clipboard_SetData", (PyCFunction) _wrap_Clipboard_SetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29935 | { (char *)"Clipboard_IsSupported", (PyCFunction) _wrap_Clipboard_IsSupported, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29936 | { (char *)"Clipboard_GetData", (PyCFunction) _wrap_Clipboard_GetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29937 | { (char *)"Clipboard_Clear", (PyCFunction) _wrap_Clipboard_Clear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29938 | { (char *)"Clipboard_Flush", (PyCFunction) _wrap_Clipboard_Flush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29939 | { (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29940 | { (char *)"Clipboard_Get", (PyCFunction) _wrap_Clipboard_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29941 | { (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS, NULL }, | |
29942 | { (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29943 | { (char *)"delete_ClipboardLocker", (PyCFunction) _wrap_delete_ClipboardLocker, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29944 | { (char *)"ClipboardLocker___nonzero__", (PyCFunction) _wrap_ClipboardLocker___nonzero__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29945 | { (char *)"ClipboardLocker_swigregister", ClipboardLocker_swigregister, METH_VARARGS, NULL }, | |
29946 | { (char *)"new_VideoMode", (PyCFunction) _wrap_new_VideoMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29947 | { (char *)"delete_VideoMode", (PyCFunction) _wrap_delete_VideoMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29948 | { (char *)"VideoMode_Matches", (PyCFunction) _wrap_VideoMode_Matches, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29949 | { (char *)"VideoMode_GetWidth", (PyCFunction) _wrap_VideoMode_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29950 | { (char *)"VideoMode_GetHeight", (PyCFunction) _wrap_VideoMode_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29951 | { (char *)"VideoMode_GetDepth", (PyCFunction) _wrap_VideoMode_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29952 | { (char *)"VideoMode_IsOk", (PyCFunction) _wrap_VideoMode_IsOk, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29953 | { (char *)"VideoMode___eq__", (PyCFunction) _wrap_VideoMode___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29954 | { (char *)"VideoMode___ne__", (PyCFunction) _wrap_VideoMode___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29955 | { (char *)"VideoMode_w_set", (PyCFunction) _wrap_VideoMode_w_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29956 | { (char *)"VideoMode_w_get", (PyCFunction) _wrap_VideoMode_w_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29957 | { (char *)"VideoMode_h_set", (PyCFunction) _wrap_VideoMode_h_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29958 | { (char *)"VideoMode_h_get", (PyCFunction) _wrap_VideoMode_h_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29959 | { (char *)"VideoMode_bpp_set", (PyCFunction) _wrap_VideoMode_bpp_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29960 | { (char *)"VideoMode_bpp_get", (PyCFunction) _wrap_VideoMode_bpp_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29961 | { (char *)"VideoMode_refresh_set", (PyCFunction) _wrap_VideoMode_refresh_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29962 | { (char *)"VideoMode_refresh_get", (PyCFunction) _wrap_VideoMode_refresh_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29963 | { (char *)"VideoMode_swigregister", VideoMode_swigregister, METH_VARARGS, NULL }, | |
29964 | { (char *)"new_Display", (PyCFunction) _wrap_new_Display, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29965 | { (char *)"delete_Display", (PyCFunction) _wrap_delete_Display, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29966 | { (char *)"Display_GetCount", (PyCFunction) _wrap_Display_GetCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29967 | { (char *)"Display_GetFromPoint", (PyCFunction) _wrap_Display_GetFromPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29968 | { (char *)"Display_GetFromWindow", (PyCFunction) _wrap_Display_GetFromWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29969 | { (char *)"Display_IsOk", (PyCFunction) _wrap_Display_IsOk, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29970 | { (char *)"Display_GetGeometry", (PyCFunction) _wrap_Display_GetGeometry, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29971 | { (char *)"Display_GetName", (PyCFunction) _wrap_Display_GetName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29972 | { (char *)"Display_IsPrimary", (PyCFunction) _wrap_Display_IsPrimary, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29973 | { (char *)"Display_GetModes", (PyCFunction) _wrap_Display_GetModes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29974 | { (char *)"Display_GetCurrentMode", (PyCFunction) _wrap_Display_GetCurrentMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29975 | { (char *)"Display_ChangeMode", (PyCFunction) _wrap_Display_ChangeMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29976 | { (char *)"Display_ResetMode", (PyCFunction) _wrap_Display_ResetMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29977 | { (char *)"Display_swigregister", Display_swigregister, METH_VARARGS, NULL }, | |
c1cb24a4 RD |
29978 | { (char *)"StandardPaths_Get", (PyCFunction) _wrap_StandardPaths_Get, METH_VARARGS | METH_KEYWORDS, NULL }, |
29979 | { (char *)"StandardPaths_GetConfigDir", (PyCFunction) _wrap_StandardPaths_GetConfigDir, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29980 | { (char *)"StandardPaths_GetUserConfigDir", (PyCFunction) _wrap_StandardPaths_GetUserConfigDir, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29981 | { (char *)"StandardPaths_GetDataDir", (PyCFunction) _wrap_StandardPaths_GetDataDir, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29982 | { (char *)"StandardPaths_GetLocalDataDir", (PyCFunction) _wrap_StandardPaths_GetLocalDataDir, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29983 | { (char *)"StandardPaths_GetUserDataDir", (PyCFunction) _wrap_StandardPaths_GetUserDataDir, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29984 | { (char *)"StandardPaths_GetUserLocalDataDir", (PyCFunction) _wrap_StandardPaths_GetUserLocalDataDir, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29985 | { (char *)"StandardPaths_GetPluginsDir", (PyCFunction) _wrap_StandardPaths_GetPluginsDir, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29986 | { (char *)"StandardPaths_SetInstallPrefix", (PyCFunction) _wrap_StandardPaths_SetInstallPrefix, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29987 | { (char *)"StandardPaths_GetInstallPrefix", (PyCFunction) _wrap_StandardPaths_GetInstallPrefix, METH_VARARGS | METH_KEYWORDS, NULL }, | |
29988 | { (char *)"StandardPaths_swigregister", StandardPaths_swigregister, METH_VARARGS, NULL }, | |
c32bde28 | 29989 | { NULL, NULL, 0, NULL } |
d55e5bfc RD |
29990 | }; |
29991 | ||
29992 | ||
29993 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
29994 | ||
29995 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
29996 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
29997 | } | |
29998 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
29999 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
30000 | } | |
30001 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
30002 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
30003 | } | |
30004 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
30005 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
30006 | } | |
30007 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
30008 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
30009 | } | |
30010 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
30011 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
30012 | } | |
30013 | static void *_p_wxTimerEventTo_p_wxEvent(void *x) { | |
30014 | return (void *)((wxEvent *) ((wxTimerEvent *) x)); | |
30015 | } | |
30016 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
30017 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
30018 | } | |
30019 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
30020 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
30021 | } | |
30022 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
30023 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
30024 | } | |
30025 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
30026 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
30027 | } | |
30028 | static void *_p_wxJoystickEventTo_p_wxEvent(void *x) { | |
30029 | return (void *)((wxEvent *) ((wxJoystickEvent *) x)); | |
30030 | } | |
30031 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
30032 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
30033 | } | |
30034 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
30035 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
30036 | } | |
30037 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
30038 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
30039 | } | |
30040 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
30041 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
30042 | } | |
30043 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
30044 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
30045 | } | |
30046 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
30047 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
30048 | } | |
30049 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
30050 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
30051 | } | |
30052 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
30053 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
30054 | } | |
30055 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
30056 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
30057 | } | |
30058 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
30059 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
30060 | } | |
30061 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
30062 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
30063 | } | |
30064 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
30065 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
30066 | } | |
30067 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
30068 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
30069 | } | |
30070 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
30071 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
30072 | } | |
30073 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
30074 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
30075 | } | |
30076 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
30077 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
30078 | } | |
30079 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
30080 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
30081 | } | |
30082 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
30083 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
30084 | } | |
30085 | static void *_p_wxProcessEventTo_p_wxEvent(void *x) { | |
30086 | return (void *)((wxEvent *) ((wxProcessEvent *) x)); | |
30087 | } | |
30088 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
30089 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
30090 | } | |
30091 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
30092 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
30093 | } | |
30094 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
30095 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
30096 | } | |
30097 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
30098 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
30099 | } | |
30100 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
30101 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
30102 | } | |
30103 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
30104 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
30105 | } | |
30106 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
30107 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
30108 | } | |
30109 | static void *_p_wxFileConfigTo_p_wxConfigBase(void *x) { | |
30110 | return (void *)((wxConfigBase *) ((wxFileConfig *) x)); | |
30111 | } | |
30112 | static void *_p_wxConfigTo_p_wxConfigBase(void *x) { | |
30113 | return (void *)((wxConfigBase *) ((wxConfig *) x)); | |
30114 | } | |
30115 | static void *_p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject(void *x) { | |
30116 | return (void *)((wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
30117 | } | |
30118 | static void *_p_wxPyTextDataObjectTo_p_wxTextDataObject(void *x) { | |
30119 | return (void *)((wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
30120 | } | |
30121 | static void *_p_wxDataObjectSimpleTo_p_wxDataObject(void *x) { | |
30122 | return (void *)((wxDataObject *) ((wxDataObjectSimple *) x)); | |
30123 | } | |
30124 | static void *_p_wxPyDataObjectSimpleTo_p_wxDataObject(void *x) { | |
30125 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxPyDataObjectSimple *) x)); | |
30126 | } | |
30127 | static void *_p_wxDataObjectCompositeTo_p_wxDataObject(void *x) { | |
30128 | return (void *)((wxDataObject *) ((wxDataObjectComposite *) x)); | |
30129 | } | |
30130 | static void *_p_wxTextDataObjectTo_p_wxDataObject(void *x) { | |
30131 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxTextDataObject *) x)); | |
30132 | } | |
30133 | static void *_p_wxPyTextDataObjectTo_p_wxDataObject(void *x) { | |
30134 | return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
30135 | } | |
30136 | static void *_p_wxBitmapDataObjectTo_p_wxDataObject(void *x) { | |
30137 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxBitmapDataObject *) x)); | |
30138 | } | |
30139 | static void *_p_wxPyBitmapDataObjectTo_p_wxDataObject(void *x) { | |
30140 | return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
30141 | } | |
30142 | static void *_p_wxFileDataObjectTo_p_wxDataObject(void *x) { | |
30143 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxFileDataObject *) x)); | |
30144 | } | |
30145 | static void *_p_wxCustomDataObjectTo_p_wxDataObject(void *x) { | |
30146 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxCustomDataObject *) x)); | |
30147 | } | |
30148 | static void *_p_wxURLDataObjectTo_p_wxDataObject(void *x) { | |
30149 | return (void *)((wxDataObject *) (wxDataObjectComposite *) ((wxURLDataObject *) x)); | |
30150 | } | |
30151 | static void *_p_wxMetafileDataObjectTo_p_wxDataObject(void *x) { | |
30152 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxMetafileDataObject *) x)); | |
30153 | } | |
30154 | static void *_p_wxURLDataObjectTo_p_wxDataObjectComposite(void *x) { | |
30155 | return (void *)((wxDataObjectComposite *) ((wxURLDataObject *) x)); | |
30156 | } | |
30157 | static void *_p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple(void *x) { | |
30158 | return (void *)((wxDataObjectSimple *) ((wxPyDataObjectSimple *) x)); | |
30159 | } | |
30160 | static void *_p_wxTextDataObjectTo_p_wxDataObjectSimple(void *x) { | |
30161 | return (void *)((wxDataObjectSimple *) ((wxTextDataObject *) x)); | |
30162 | } | |
30163 | static void *_p_wxPyTextDataObjectTo_p_wxDataObjectSimple(void *x) { | |
30164 | return (void *)((wxDataObjectSimple *) (wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
30165 | } | |
30166 | static void *_p_wxBitmapDataObjectTo_p_wxDataObjectSimple(void *x) { | |
30167 | return (void *)((wxDataObjectSimple *) ((wxBitmapDataObject *) x)); | |
30168 | } | |
30169 | static void *_p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple(void *x) { | |
30170 | return (void *)((wxDataObjectSimple *) (wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
30171 | } | |
30172 | static void *_p_wxFileDataObjectTo_p_wxDataObjectSimple(void *x) { | |
30173 | return (void *)((wxDataObjectSimple *) ((wxFileDataObject *) x)); | |
30174 | } | |
30175 | static void *_p_wxCustomDataObjectTo_p_wxDataObjectSimple(void *x) { | |
30176 | return (void *)((wxDataObjectSimple *) ((wxCustomDataObject *) x)); | |
30177 | } | |
30178 | static void *_p_wxMetafileDataObjectTo_p_wxDataObjectSimple(void *x) { | |
30179 | return (void *)((wxDataObjectSimple *) ((wxMetafileDataObject *) x)); | |
30180 | } | |
30181 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
30182 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
30183 | } | |
30184 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
30185 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
30186 | } | |
30187 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
30188 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
30189 | } | |
30190 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
30191 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
30192 | } | |
30193 | static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) { | |
30194 | return (void *)((wxEvtHandler *) ((wxPyTimer *) x)); | |
30195 | } | |
30196 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
30197 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
30198 | } | |
30199 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
30200 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
30201 | } | |
30202 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
30203 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
30204 | } | |
30205 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
30206 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
30207 | } | |
30208 | static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) { | |
30209 | return (void *)((wxEvtHandler *) ((wxPyProcess *) x)); | |
30210 | } | |
30211 | static void *_p_wxPyTipProviderTo_p_wxTipProvider(void *x) { | |
30212 | return (void *)((wxTipProvider *) ((wxPyTipProvider *) x)); | |
30213 | } | |
30214 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
30215 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
30216 | } | |
30217 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
30218 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
30219 | } | |
30220 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
30221 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
30222 | } | |
30223 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
30224 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
30225 | } | |
30226 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
30227 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
30228 | } | |
30229 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
30230 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
30231 | } | |
30232 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
30233 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
30234 | } | |
30235 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
30236 | return (void *)((wxObject *) ((wxSizer *) x)); | |
30237 | } | |
30238 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
30239 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
30240 | } | |
30241 | static void *_p_wxFileHistoryTo_p_wxObject(void *x) { | |
30242 | return (void *)((wxObject *) ((wxFileHistory *) x)); | |
30243 | } | |
30244 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
30245 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
30246 | } | |
30247 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
30248 | return (void *)((wxObject *) ((wxEvent *) x)); | |
30249 | } | |
30250 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
30251 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
30252 | } | |
30253 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
30254 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
30255 | } | |
30256 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
30257 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
30258 | } | |
30259 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
30260 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
30261 | } | |
30262 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
30263 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
30264 | } | |
30265 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
30266 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
30267 | } | |
30268 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
30269 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
30270 | } | |
30271 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
30272 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
30273 | } | |
30274 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
30275 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
30276 | } | |
30277 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
30278 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
30279 | } | |
30280 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
30281 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
30282 | } | |
30283 | static void *_p_wxTimerEventTo_p_wxObject(void *x) { | |
30284 | return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x)); | |
30285 | } | |
30286 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
30287 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
30288 | } | |
30289 | static void *_p_wxClipboardTo_p_wxObject(void *x) { | |
30290 | return (void *)((wxObject *) ((wxClipboard *) x)); | |
30291 | } | |
30292 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
30293 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
30294 | } | |
30295 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
30296 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
30297 | } | |
30298 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
30299 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
30300 | } | |
30301 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
30302 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
30303 | } | |
30304 | static void *_p_wxToolTipTo_p_wxObject(void *x) { | |
30305 | return (void *)((wxObject *) ((wxToolTip *) x)); | |
30306 | } | |
30307 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
30308 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
30309 | } | |
30310 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
30311 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
30312 | } | |
30313 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
30314 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
30315 | } | |
30316 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
30317 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
30318 | } | |
30319 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
30320 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
30321 | } | |
30322 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
30323 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
30324 | } | |
30325 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
30326 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
30327 | } | |
30328 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
30329 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
30330 | } | |
30331 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
30332 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
30333 | } | |
30334 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
30335 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
30336 | } | |
30337 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
30338 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
30339 | } | |
30340 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
30341 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
30342 | } | |
30343 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
30344 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
30345 | } | |
30346 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
30347 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
30348 | } | |
30349 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
30350 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
30351 | } | |
30352 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
30353 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
30354 | } | |
30355 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
30356 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
30357 | } | |
30358 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
30359 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
30360 | } | |
30361 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
30362 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
30363 | } | |
30364 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
30365 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
30366 | } | |
30367 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
30368 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
30369 | } | |
30370 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
30371 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
30372 | } | |
30373 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
30374 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
30375 | } | |
30376 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
30377 | return (void *)((wxObject *) ((wxImage *) x)); | |
30378 | } | |
30379 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
30380 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
30381 | } | |
30382 | static void *_p_wxSystemOptionsTo_p_wxObject(void *x) { | |
30383 | return (void *)((wxObject *) ((wxSystemOptions *) x)); | |
30384 | } | |
30385 | static void *_p_wxJoystickEventTo_p_wxObject(void *x) { | |
30386 | return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x)); | |
30387 | } | |
30388 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
30389 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
30390 | } | |
30391 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
30392 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
30393 | } | |
30394 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
30395 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
30396 | } | |
30397 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
30398 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
30399 | } | |
30400 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
30401 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
30402 | } | |
30403 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
30404 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
30405 | } | |
30406 | static void *_p_wxPyProcessTo_p_wxObject(void *x) { | |
30407 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x)); | |
30408 | } | |
30409 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
30410 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
30411 | } | |
30412 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
30413 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
30414 | } | |
30415 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
30416 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
30417 | } | |
30418 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
30419 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
30420 | } | |
30421 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
30422 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
30423 | } | |
30424 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
30425 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
30426 | } | |
30427 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
30428 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
30429 | } | |
30430 | static void *_p_wxBusyInfoTo_p_wxObject(void *x) { | |
30431 | return (void *)((wxObject *) ((wxBusyInfo *) x)); | |
30432 | } | |
30433 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
30434 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
30435 | } | |
30436 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
30437 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
30438 | } | |
30439 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
30440 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
30441 | } | |
30442 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
30443 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
30444 | } | |
30445 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
30446 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
30447 | } | |
30448 | static void *_p_wxProcessEventTo_p_wxObject(void *x) { | |
30449 | return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x)); | |
30450 | } | |
30451 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
30452 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
30453 | } | |
30454 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
30455 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
30456 | } | |
30457 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
30458 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
30459 | } | |
30460 | static void *_p_wxPyTimerTo_p_wxObject(void *x) { | |
30461 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x)); | |
30462 | } | |
30463 | static void *_p_wxLogStderrTo_p_wxLog(void *x) { | |
30464 | return (void *)((wxLog *) ((wxLogStderr *) x)); | |
30465 | } | |
30466 | static void *_p_wxLogTextCtrlTo_p_wxLog(void *x) { | |
30467 | return (void *)((wxLog *) ((wxLogTextCtrl *) x)); | |
30468 | } | |
30469 | static void *_p_wxLogWindowTo_p_wxLog(void *x) { | |
30470 | return (void *)((wxLog *) ((wxLogWindow *) x)); | |
30471 | } | |
30472 | static void *_p_wxLogChainTo_p_wxLog(void *x) { | |
30473 | return (void *)((wxLog *) ((wxLogChain *) x)); | |
30474 | } | |
30475 | static void *_p_wxLogGuiTo_p_wxLog(void *x) { | |
30476 | return (void *)((wxLog *) ((wxLogGui *) x)); | |
30477 | } | |
30478 | static void *_p_wxPyLogTo_p_wxLog(void *x) { | |
30479 | return (void *)((wxLog *) ((wxPyLog *) x)); | |
30480 | } | |
30481 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
30482 | return (void *)((wxWindow *) ((wxControl *) x)); | |
30483 | } | |
30484 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
30485 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
30486 | } | |
30487 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
30488 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
30489 | } | |
30490 | static void *_p_wxPyTextDropTargetTo_p_wxPyDropTarget(void *x) { | |
30491 | return (void *)((wxPyDropTarget *) ((wxPyTextDropTarget *) x)); | |
30492 | } | |
30493 | static void *_p_wxPyFileDropTargetTo_p_wxPyDropTarget(void *x) { | |
30494 | return (void *)((wxPyDropTarget *) ((wxPyFileDropTarget *) x)); | |
30495 | } | |
30496 | 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}}; | |
30497 | 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}}; | |
30498 | 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}}; | |
30499 | 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}}; | |
30500 | 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}}; | |
30501 | 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}}; | |
30502 | 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}}; | |
30503 | 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}}; | |
30504 | 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}}; | |
30505 | 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}}; | |
30506 | 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}}; | |
30507 | 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}}; | |
30508 | 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}}; | |
30509 | 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}}; | |
30510 | 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}}; | |
30511 | 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}}; | |
30512 | 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}}; | |
30513 | 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}}; | |
30514 | 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}}; | |
30515 | 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}}; | |
30516 | 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}}; | |
30517 | 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}}; | |
30518 | 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}}; | |
30519 | 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}}; | |
30520 | 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}}; | |
30521 | 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}}; | |
30522 | 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}}; | |
30523 | 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}}; | |
30524 | 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}}; | |
30525 | 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}}; | |
30526 | 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}}; | |
c9c2cf70 | 30527 | 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 |
30528 | 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}}; |
30529 | 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}}; | |
30530 | 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}}; | |
30531 | 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}}; | |
30532 | 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}}; | |
30533 | 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}}; | |
30534 | 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}}; | |
30535 | 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}}; | |
30536 | 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}}; | |
30537 | 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}}; | |
30538 | 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}}; | |
30539 | 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}}; | |
30540 | 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}}; | |
30541 | 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}}; | |
30542 | 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}}; | |
30543 | 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}}; | |
30544 | 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}}; | |
30545 | 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}}; | |
30546 | 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}}; | |
30547 | 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}}; | |
30548 | 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}}; | |
c1cb24a4 | 30549 | static swig_type_info _swigt__p_wxStandardPaths[] = {{"_p_wxStandardPaths", 0, "wxStandardPaths *", 0, 0, 0, 0},{"_p_wxStandardPaths", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
d55e5bfc RD |
30550 | 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}}; |
30551 | 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}}; | |
30552 | 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}}; | |
30553 | 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}}; | |
30554 | 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}}; | |
30555 | 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}}; | |
30556 | 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}}; | |
30557 | 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}}; | |
30558 | 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}}; | |
30559 | 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}}; | |
30560 | 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}}; | |
30561 | 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}}; | |
30562 | 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}}; | |
30563 | 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}}; | |
30564 | 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}}; | |
30565 | 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}}; | |
c9c2cf70 | 30566 | static swig_type_info _swigt__p_wxKillError[] = {{"_p_wxKillError", 0, "enum wxKillError *|wxKillError *", 0, 0, 0, 0},{"_p_wxKillError", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
d55e5bfc RD |
30567 | 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}}; |
30568 | 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}}; | |
30569 | 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}}; | |
30570 | 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}}; | |
30571 | 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}}; | |
30572 | 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}}; | |
30573 | 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}}; | |
30574 | 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}}; | |
30575 | 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}}; | |
30576 | 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}}; | |
30577 | 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}}; | |
30578 | 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}}; | |
30579 | 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}}; | |
30580 | 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 |
30581 | 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}}; |
30582 | 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}}; | |
30583 | 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}}; | |
30584 | ||
30585 | static swig_type_info *swig_types_initial[] = { | |
30586 | _swigt__p_wxLogChain, | |
30587 | _swigt__p_wxMutexGuiLocker, | |
30588 | _swigt__p_wxMetafile, | |
30589 | _swigt__p_wxFileHistory, | |
30590 | _swigt__p_wxLog, | |
30591 | _swigt__p_wxDateTime__TimeZone, | |
30592 | _swigt__p_wxMenu, | |
30593 | _swigt__p_wxEvent, | |
30594 | _swigt__p_wxConfigBase, | |
30595 | _swigt__p_wxDisplay, | |
30596 | _swigt__p_wxFileType, | |
30597 | _swigt__p_wxLogGui, | |
30598 | _swigt__p_wxFont, | |
30599 | _swigt__p_wxDataFormat, | |
30600 | _swigt__p_wxTimerEvent, | |
30601 | _swigt__p_wxCaret, | |
30602 | _swigt__p_int, | |
30603 | _swigt__p_wxSize, | |
30604 | _swigt__p_wxClipboard, | |
30605 | _swigt__p_wxStopWatch, | |
30606 | _swigt__p_wxDC, | |
30607 | _swigt__p_wxClipboardLocker, | |
30608 | _swigt__p_wxIcon, | |
30609 | _swigt__p_wxLogStderr, | |
30610 | _swigt__p_wxLogTextCtrl, | |
30611 | _swigt__p_wxTextCtrl, | |
30612 | _swigt__p_wxBusyCursor, | |
30613 | _swigt__p_wxPyTextDataObject, | |
30614 | _swigt__p_wxBitmapDataObject, | |
30615 | _swigt__p_wxTextDataObject, | |
30616 | _swigt__p_wxDataObject, | |
c9c2cf70 | 30617 | _swigt__p_wxPyBitmapDataObject, |
d55e5bfc RD |
30618 | _swigt__p_wxFileDataObject, |
30619 | _swigt__p_wxCustomDataObject, | |
30620 | _swigt__p_wxURLDataObject, | |
30621 | _swigt__p_wxMetafileDataObject, | |
30622 | _swigt__p_wxSound, | |
30623 | _swigt__p_wxTimerRunner, | |
30624 | _swigt__p_wxLogWindow, | |
30625 | _swigt__p_wxTimeSpan, | |
30626 | _swigt__p_wxArrayString, | |
30627 | _swigt__p_wxWindowDisabler, | |
30628 | _swigt__p_wxToolTip, | |
30629 | _swigt__p_wxDataObjectComposite, | |
30630 | _swigt__p_wxFileConfig, | |
30631 | _swigt__p_wxSystemSettings, | |
30632 | _swigt__p_wxVideoMode, | |
30633 | _swigt__p_wxPyDataObjectSimple, | |
30634 | _swigt__p_wxDataObjectSimple, | |
30635 | _swigt__p_wxEvtHandler, | |
30636 | _swigt__p_wxRect, | |
30637 | _swigt__p_char, | |
30638 | _swigt__p_wxSingleInstanceChecker, | |
c1cb24a4 | 30639 | _swigt__p_wxStandardPaths, |
d55e5bfc RD |
30640 | _swigt__p_wxFileTypeInfo, |
30641 | _swigt__p_wxFrame, | |
30642 | _swigt__p_wxTimer, | |
30643 | _swigt__p_wxMimeTypesManager, | |
30644 | _swigt__p_wxPyArtProvider, | |
30645 | _swigt__p_wxPyTipProvider, | |
30646 | _swigt__p_wxTipProvider, | |
30647 | _swigt__p_wxJoystick, | |
30648 | _swigt__p_wxSystemOptions, | |
30649 | _swigt__p_wxPoint, | |
30650 | _swigt__p_wxJoystickEvent, | |
30651 | _swigt__p_wxCursor, | |
30652 | _swigt__p_wxObject, | |
30653 | _swigt__p_wxOutputStream, | |
30654 | _swigt__p_wxDateTime, | |
30655 | _swigt__p_wxPyDropSource, | |
c9c2cf70 | 30656 | _swigt__p_wxKillError, |
d55e5bfc RD |
30657 | _swigt__p_wxWindow, |
30658 | _swigt__p_wxString, | |
30659 | _swigt__p_wxPyProcess, | |
30660 | _swigt__p_wxBitmap, | |
30661 | _swigt__p_wxConfig, | |
30662 | _swigt__p_wxChar, | |
30663 | _swigt__p_wxBusyInfo, | |
30664 | _swigt__p_wxPyDropTarget, | |
30665 | _swigt__p_wxPyTextDropTarget, | |
30666 | _swigt__p_wxPyFileDropTarget, | |
30667 | _swigt__p_wxProcessEvent, | |
30668 | _swigt__p_wxPyLog, | |
30669 | _swigt__p_wxLogNull, | |
30670 | _swigt__p_wxColour, | |
d55e5bfc RD |
30671 | _swigt__p_wxConfigPathChanger, |
30672 | _swigt__p_wxPyTimer, | |
30673 | _swigt__p_wxDateSpan, | |
30674 | 0 | |
30675 | }; | |
30676 | ||
30677 | ||
30678 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
30679 | ||
30680 | static swig_const_info swig_const_table[] = { | |
30681 | { SWIG_PY_POINTER, (char*)"TRACE_MemAlloc", 0, 0, (void *)"memalloc", &SWIGTYPE_p_char}, | |
30682 | { SWIG_PY_POINTER, (char*)"TRACE_Messages", 0, 0, (void *)"messages", &SWIGTYPE_p_char}, | |
30683 | { SWIG_PY_POINTER, (char*)"TRACE_ResAlloc", 0, 0, (void *)"resalloc", &SWIGTYPE_p_char}, | |
30684 | { SWIG_PY_POINTER, (char*)"TRACE_RefCount", 0, 0, (void *)"refcount", &SWIGTYPE_p_char}, | |
30685 | { SWIG_PY_POINTER, (char*)"TRACE_OleCalls", 0, 0, (void *)"ole", &SWIGTYPE_p_char}, | |
c32bde28 | 30686 | {0, 0, 0, 0.0, 0, 0}}; |
d55e5bfc RD |
30687 | |
30688 | #ifdef __cplusplus | |
30689 | } | |
30690 | #endif | |
30691 | ||
30692 | #ifdef __cplusplus | |
30693 | extern "C" | |
30694 | #endif | |
30695 | SWIGEXPORT(void) SWIG_init(void) { | |
30696 | static PyObject *SWIG_globals = 0; | |
30697 | static int typeinit = 0; | |
30698 | PyObject *m, *d; | |
30699 | int i; | |
30700 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
30701 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
30702 | d = PyModule_GetDict(m); | |
30703 | ||
30704 | if (!typeinit) { | |
30705 | for (i = 0; swig_types_initial[i]; i++) { | |
30706 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
30707 | } | |
30708 | typeinit = 1; | |
30709 | } | |
30710 | SWIG_InstallConstants(d,swig_const_table); | |
30711 | ||
c32bde28 RD |
30712 | PyDict_SetItemString(d,"SYS_OEM_FIXED_FONT", SWIG_From_int((int)wxSYS_OEM_FIXED_FONT)); |
30713 | PyDict_SetItemString(d,"SYS_ANSI_FIXED_FONT", SWIG_From_int((int)wxSYS_ANSI_FIXED_FONT)); | |
30714 | PyDict_SetItemString(d,"SYS_ANSI_VAR_FONT", SWIG_From_int((int)wxSYS_ANSI_VAR_FONT)); | |
30715 | PyDict_SetItemString(d,"SYS_SYSTEM_FONT", SWIG_From_int((int)wxSYS_SYSTEM_FONT)); | |
30716 | PyDict_SetItemString(d,"SYS_DEVICE_DEFAULT_FONT", SWIG_From_int((int)wxSYS_DEVICE_DEFAULT_FONT)); | |
30717 | PyDict_SetItemString(d,"SYS_DEFAULT_PALETTE", SWIG_From_int((int)wxSYS_DEFAULT_PALETTE)); | |
30718 | PyDict_SetItemString(d,"SYS_SYSTEM_FIXED_FONT", SWIG_From_int((int)wxSYS_SYSTEM_FIXED_FONT)); | |
30719 | PyDict_SetItemString(d,"SYS_DEFAULT_GUI_FONT", SWIG_From_int((int)wxSYS_DEFAULT_GUI_FONT)); | |
30720 | PyDict_SetItemString(d,"SYS_ICONTITLE_FONT", SWIG_From_int((int)wxSYS_ICONTITLE_FONT)); | |
30721 | PyDict_SetItemString(d,"SYS_COLOUR_SCROLLBAR", SWIG_From_int((int)wxSYS_COLOUR_SCROLLBAR)); | |
30722 | PyDict_SetItemString(d,"SYS_COLOUR_BACKGROUND", SWIG_From_int((int)wxSYS_COLOUR_BACKGROUND)); | |
30723 | PyDict_SetItemString(d,"SYS_COLOUR_DESKTOP", SWIG_From_int((int)wxSYS_COLOUR_DESKTOP)); | |
30724 | PyDict_SetItemString(d,"SYS_COLOUR_ACTIVECAPTION", SWIG_From_int((int)wxSYS_COLOUR_ACTIVECAPTION)); | |
30725 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTION", SWIG_From_int((int)wxSYS_COLOUR_INACTIVECAPTION)); | |
30726 | PyDict_SetItemString(d,"SYS_COLOUR_MENU", SWIG_From_int((int)wxSYS_COLOUR_MENU)); | |
30727 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOW", SWIG_From_int((int)wxSYS_COLOUR_WINDOW)); | |
30728 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOWFRAME", SWIG_From_int((int)wxSYS_COLOUR_WINDOWFRAME)); | |
30729 | PyDict_SetItemString(d,"SYS_COLOUR_MENUTEXT", SWIG_From_int((int)wxSYS_COLOUR_MENUTEXT)); | |
30730 | PyDict_SetItemString(d,"SYS_COLOUR_WINDOWTEXT", SWIG_From_int((int)wxSYS_COLOUR_WINDOWTEXT)); | |
30731 | PyDict_SetItemString(d,"SYS_COLOUR_CAPTIONTEXT", SWIG_From_int((int)wxSYS_COLOUR_CAPTIONTEXT)); | |
30732 | PyDict_SetItemString(d,"SYS_COLOUR_ACTIVEBORDER", SWIG_From_int((int)wxSYS_COLOUR_ACTIVEBORDER)); | |
30733 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVEBORDER", SWIG_From_int((int)wxSYS_COLOUR_INACTIVEBORDER)); | |
30734 | PyDict_SetItemString(d,"SYS_COLOUR_APPWORKSPACE", SWIG_From_int((int)wxSYS_COLOUR_APPWORKSPACE)); | |
30735 | PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHT", SWIG_From_int((int)wxSYS_COLOUR_HIGHLIGHT)); | |
30736 | PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHTTEXT", SWIG_From_int((int)wxSYS_COLOUR_HIGHLIGHTTEXT)); | |
30737 | PyDict_SetItemString(d,"SYS_COLOUR_BTNFACE", SWIG_From_int((int)wxSYS_COLOUR_BTNFACE)); | |
30738 | PyDict_SetItemString(d,"SYS_COLOUR_3DFACE", SWIG_From_int((int)wxSYS_COLOUR_3DFACE)); | |
30739 | PyDict_SetItemString(d,"SYS_COLOUR_BTNSHADOW", SWIG_From_int((int)wxSYS_COLOUR_BTNSHADOW)); | |
30740 | PyDict_SetItemString(d,"SYS_COLOUR_3DSHADOW", SWIG_From_int((int)wxSYS_COLOUR_3DSHADOW)); | |
30741 | PyDict_SetItemString(d,"SYS_COLOUR_GRAYTEXT", SWIG_From_int((int)wxSYS_COLOUR_GRAYTEXT)); | |
30742 | PyDict_SetItemString(d,"SYS_COLOUR_BTNTEXT", SWIG_From_int((int)wxSYS_COLOUR_BTNTEXT)); | |
30743 | PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTIONTEXT", SWIG_From_int((int)wxSYS_COLOUR_INACTIVECAPTIONTEXT)); | |
30744 | PyDict_SetItemString(d,"SYS_COLOUR_BTNHIGHLIGHT", SWIG_From_int((int)wxSYS_COLOUR_BTNHIGHLIGHT)); | |
30745 | PyDict_SetItemString(d,"SYS_COLOUR_BTNHILIGHT", SWIG_From_int((int)wxSYS_COLOUR_BTNHILIGHT)); | |
30746 | PyDict_SetItemString(d,"SYS_COLOUR_3DHIGHLIGHT", SWIG_From_int((int)wxSYS_COLOUR_3DHIGHLIGHT)); | |
30747 | PyDict_SetItemString(d,"SYS_COLOUR_3DHILIGHT", SWIG_From_int((int)wxSYS_COLOUR_3DHILIGHT)); | |
30748 | PyDict_SetItemString(d,"SYS_COLOUR_3DDKSHADOW", SWIG_From_int((int)wxSYS_COLOUR_3DDKSHADOW)); | |
30749 | PyDict_SetItemString(d,"SYS_COLOUR_3DLIGHT", SWIG_From_int((int)wxSYS_COLOUR_3DLIGHT)); | |
30750 | PyDict_SetItemString(d,"SYS_COLOUR_INFOTEXT", SWIG_From_int((int)wxSYS_COLOUR_INFOTEXT)); | |
30751 | PyDict_SetItemString(d,"SYS_COLOUR_INFOBK", SWIG_From_int((int)wxSYS_COLOUR_INFOBK)); | |
30752 | PyDict_SetItemString(d,"SYS_COLOUR_LISTBOX", SWIG_From_int((int)wxSYS_COLOUR_LISTBOX)); | |
30753 | PyDict_SetItemString(d,"SYS_COLOUR_HOTLIGHT", SWIG_From_int((int)wxSYS_COLOUR_HOTLIGHT)); | |
30754 | PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTACTIVECAPTION", SWIG_From_int((int)wxSYS_COLOUR_GRADIENTACTIVECAPTION)); | |
30755 | PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTINACTIVECAPTION", SWIG_From_int((int)wxSYS_COLOUR_GRADIENTINACTIVECAPTION)); | |
30756 | PyDict_SetItemString(d,"SYS_COLOUR_MENUHILIGHT", SWIG_From_int((int)wxSYS_COLOUR_MENUHILIGHT)); | |
30757 | PyDict_SetItemString(d,"SYS_COLOUR_MENUBAR", SWIG_From_int((int)wxSYS_COLOUR_MENUBAR)); | |
30758 | PyDict_SetItemString(d,"SYS_COLOUR_MAX", SWIG_From_int((int)wxSYS_COLOUR_MAX)); | |
30759 | PyDict_SetItemString(d,"SYS_MOUSE_BUTTONS", SWIG_From_int((int)wxSYS_MOUSE_BUTTONS)); | |
30760 | PyDict_SetItemString(d,"SYS_BORDER_X", SWIG_From_int((int)wxSYS_BORDER_X)); | |
30761 | PyDict_SetItemString(d,"SYS_BORDER_Y", SWIG_From_int((int)wxSYS_BORDER_Y)); | |
30762 | PyDict_SetItemString(d,"SYS_CURSOR_X", SWIG_From_int((int)wxSYS_CURSOR_X)); | |
30763 | PyDict_SetItemString(d,"SYS_CURSOR_Y", SWIG_From_int((int)wxSYS_CURSOR_Y)); | |
30764 | PyDict_SetItemString(d,"SYS_DCLICK_X", SWIG_From_int((int)wxSYS_DCLICK_X)); | |
30765 | PyDict_SetItemString(d,"SYS_DCLICK_Y", SWIG_From_int((int)wxSYS_DCLICK_Y)); | |
30766 | PyDict_SetItemString(d,"SYS_DRAG_X", SWIG_From_int((int)wxSYS_DRAG_X)); | |
30767 | PyDict_SetItemString(d,"SYS_DRAG_Y", SWIG_From_int((int)wxSYS_DRAG_Y)); | |
30768 | PyDict_SetItemString(d,"SYS_EDGE_X", SWIG_From_int((int)wxSYS_EDGE_X)); | |
30769 | PyDict_SetItemString(d,"SYS_EDGE_Y", SWIG_From_int((int)wxSYS_EDGE_Y)); | |
30770 | PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_X", SWIG_From_int((int)wxSYS_HSCROLL_ARROW_X)); | |
30771 | PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_Y", SWIG_From_int((int)wxSYS_HSCROLL_ARROW_Y)); | |
30772 | PyDict_SetItemString(d,"SYS_HTHUMB_X", SWIG_From_int((int)wxSYS_HTHUMB_X)); | |
30773 | PyDict_SetItemString(d,"SYS_ICON_X", SWIG_From_int((int)wxSYS_ICON_X)); | |
30774 | PyDict_SetItemString(d,"SYS_ICON_Y", SWIG_From_int((int)wxSYS_ICON_Y)); | |
30775 | PyDict_SetItemString(d,"SYS_ICONSPACING_X", SWIG_From_int((int)wxSYS_ICONSPACING_X)); | |
30776 | PyDict_SetItemString(d,"SYS_ICONSPACING_Y", SWIG_From_int((int)wxSYS_ICONSPACING_Y)); | |
30777 | PyDict_SetItemString(d,"SYS_WINDOWMIN_X", SWIG_From_int((int)wxSYS_WINDOWMIN_X)); | |
30778 | PyDict_SetItemString(d,"SYS_WINDOWMIN_Y", SWIG_From_int((int)wxSYS_WINDOWMIN_Y)); | |
30779 | PyDict_SetItemString(d,"SYS_SCREEN_X", SWIG_From_int((int)wxSYS_SCREEN_X)); | |
30780 | PyDict_SetItemString(d,"SYS_SCREEN_Y", SWIG_From_int((int)wxSYS_SCREEN_Y)); | |
30781 | PyDict_SetItemString(d,"SYS_FRAMESIZE_X", SWIG_From_int((int)wxSYS_FRAMESIZE_X)); | |
30782 | PyDict_SetItemString(d,"SYS_FRAMESIZE_Y", SWIG_From_int((int)wxSYS_FRAMESIZE_Y)); | |
30783 | PyDict_SetItemString(d,"SYS_SMALLICON_X", SWIG_From_int((int)wxSYS_SMALLICON_X)); | |
30784 | PyDict_SetItemString(d,"SYS_SMALLICON_Y", SWIG_From_int((int)wxSYS_SMALLICON_Y)); | |
30785 | PyDict_SetItemString(d,"SYS_HSCROLL_Y", SWIG_From_int((int)wxSYS_HSCROLL_Y)); | |
30786 | PyDict_SetItemString(d,"SYS_VSCROLL_X", SWIG_From_int((int)wxSYS_VSCROLL_X)); | |
30787 | PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_X", SWIG_From_int((int)wxSYS_VSCROLL_ARROW_X)); | |
30788 | PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_Y", SWIG_From_int((int)wxSYS_VSCROLL_ARROW_Y)); | |
30789 | PyDict_SetItemString(d,"SYS_VTHUMB_Y", SWIG_From_int((int)wxSYS_VTHUMB_Y)); | |
30790 | PyDict_SetItemString(d,"SYS_CAPTION_Y", SWIG_From_int((int)wxSYS_CAPTION_Y)); | |
30791 | PyDict_SetItemString(d,"SYS_MENU_Y", SWIG_From_int((int)wxSYS_MENU_Y)); | |
30792 | PyDict_SetItemString(d,"SYS_NETWORK_PRESENT", SWIG_From_int((int)wxSYS_NETWORK_PRESENT)); | |
30793 | PyDict_SetItemString(d,"SYS_PENWINDOWS_PRESENT", SWIG_From_int((int)wxSYS_PENWINDOWS_PRESENT)); | |
30794 | PyDict_SetItemString(d,"SYS_SHOW_SOUNDS", SWIG_From_int((int)wxSYS_SHOW_SOUNDS)); | |
30795 | PyDict_SetItemString(d,"SYS_SWAP_BUTTONS", SWIG_From_int((int)wxSYS_SWAP_BUTTONS)); | |
30796 | PyDict_SetItemString(d,"SYS_CAN_DRAW_FRAME_DECORATIONS", SWIG_From_int((int)wxSYS_CAN_DRAW_FRAME_DECORATIONS)); | |
30797 | PyDict_SetItemString(d,"SYS_CAN_ICONIZE_FRAME", SWIG_From_int((int)wxSYS_CAN_ICONIZE_FRAME)); | |
30798 | PyDict_SetItemString(d,"SYS_SCREEN_NONE", SWIG_From_int((int)wxSYS_SCREEN_NONE)); | |
30799 | PyDict_SetItemString(d,"SYS_SCREEN_TINY", SWIG_From_int((int)wxSYS_SCREEN_TINY)); | |
30800 | PyDict_SetItemString(d,"SYS_SCREEN_PDA", SWIG_From_int((int)wxSYS_SCREEN_PDA)); | |
30801 | PyDict_SetItemString(d,"SYS_SCREEN_SMALL", SWIG_From_int((int)wxSYS_SCREEN_SMALL)); | |
30802 | PyDict_SetItemString(d,"SYS_SCREEN_DESKTOP", SWIG_From_int((int)wxSYS_SCREEN_DESKTOP)); | |
d55e5bfc | 30803 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
7e63a440 | 30804 | SWIG_addvarlink(SWIG_globals,(char*)"WINDOW_DEFAULT_VARIANT",_wrap_WINDOW_DEFAULT_VARIANT_get, _wrap_WINDOW_DEFAULT_VARIANT_set); |
d55e5bfc RD |
30805 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set); |
30806 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set); | |
30807 | SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set); | |
c32bde28 RD |
30808 | PyDict_SetItemString(d,"SHUTDOWN_POWEROFF", SWIG_From_int((int)wxSHUTDOWN_POWEROFF)); |
30809 | PyDict_SetItemString(d,"SHUTDOWN_REBOOT", SWIG_From_int((int)wxSHUTDOWN_REBOOT)); | |
30810 | PyDict_SetItemString(d,"TIMER_CONTINUOUS", SWIG_From_int((int)wxTIMER_CONTINUOUS)); | |
30811 | PyDict_SetItemString(d,"TIMER_ONE_SHOT", SWIG_From_int((int)wxTIMER_ONE_SHOT)); | |
d55e5bfc | 30812 | PyDict_SetItemString(d, "wxEVT_TIMER", PyInt_FromLong(wxEVT_TIMER)); |
1a6bba1e RD |
30813 | |
30814 | wxPyPtrTypeMap_Add("wxTimer", "wxPyTimer"); | |
30815 | ||
c32bde28 RD |
30816 | PyDict_SetItemString(d,"LOG_FatalError", SWIG_From_int((int)wxLOG_FatalError)); |
30817 | PyDict_SetItemString(d,"LOG_Error", SWIG_From_int((int)wxLOG_Error)); | |
30818 | PyDict_SetItemString(d,"LOG_Warning", SWIG_From_int((int)wxLOG_Warning)); | |
30819 | PyDict_SetItemString(d,"LOG_Message", SWIG_From_int((int)wxLOG_Message)); | |
30820 | PyDict_SetItemString(d,"LOG_Status", SWIG_From_int((int)wxLOG_Status)); | |
30821 | PyDict_SetItemString(d,"LOG_Info", SWIG_From_int((int)wxLOG_Info)); | |
30822 | PyDict_SetItemString(d,"LOG_Debug", SWIG_From_int((int)wxLOG_Debug)); | |
30823 | PyDict_SetItemString(d,"LOG_Trace", SWIG_From_int((int)wxLOG_Trace)); | |
30824 | PyDict_SetItemString(d,"LOG_Progress", SWIG_From_int((int)wxLOG_Progress)); | |
30825 | PyDict_SetItemString(d,"LOG_User", SWIG_From_int((int)wxLOG_User)); | |
30826 | PyDict_SetItemString(d,"LOG_Max", SWIG_From_int((int)wxLOG_Max)); | |
d55e5bfc RD |
30827 | PyDict_SetItemString(d,"TRACE_MemAlloc", SWIG_FromCharPtr("memalloc")); |
30828 | PyDict_SetItemString(d,"TRACE_Messages", SWIG_FromCharPtr("messages")); | |
30829 | PyDict_SetItemString(d,"TRACE_ResAlloc", SWIG_FromCharPtr("resalloc")); | |
30830 | PyDict_SetItemString(d,"TRACE_RefCount", SWIG_FromCharPtr("refcount")); | |
30831 | PyDict_SetItemString(d,"TRACE_OleCalls", SWIG_FromCharPtr("ole")); | |
c32bde28 RD |
30832 | PyDict_SetItemString(d,"TraceMemAlloc", SWIG_From_int((int)0x0001)); |
30833 | PyDict_SetItemString(d,"TraceMessages", SWIG_From_int((int)0x0002)); | |
30834 | PyDict_SetItemString(d,"TraceResAlloc", SWIG_From_int((int)0x0004)); | |
30835 | PyDict_SetItemString(d,"TraceRefCount", SWIG_From_int((int)0x0008)); | |
30836 | PyDict_SetItemString(d,"TraceOleCalls", SWIG_From_int((int)0x0100)); | |
30837 | PyDict_SetItemString(d,"PROCESS_DEFAULT", SWIG_From_int((int)wxPROCESS_DEFAULT)); | |
30838 | PyDict_SetItemString(d,"PROCESS_REDIRECT", SWIG_From_int((int)wxPROCESS_REDIRECT)); | |
30839 | PyDict_SetItemString(d,"KILL_OK", SWIG_From_int((int)wxKILL_OK)); | |
30840 | PyDict_SetItemString(d,"KILL_BAD_SIGNAL", SWIG_From_int((int)wxKILL_BAD_SIGNAL)); | |
30841 | PyDict_SetItemString(d,"KILL_ACCESS_DENIED", SWIG_From_int((int)wxKILL_ACCESS_DENIED)); | |
30842 | PyDict_SetItemString(d,"KILL_NO_PROCESS", SWIG_From_int((int)wxKILL_NO_PROCESS)); | |
30843 | PyDict_SetItemString(d,"KILL_ERROR", SWIG_From_int((int)wxKILL_ERROR)); | |
c9c2cf70 RD |
30844 | PyDict_SetItemString(d,"KILL_NOCHILDREN", SWIG_From_int((int)wxKILL_NOCHILDREN)); |
30845 | PyDict_SetItemString(d,"KILL_CHILDREN", SWIG_From_int((int)wxKILL_CHILDREN)); | |
c32bde28 RD |
30846 | PyDict_SetItemString(d,"SIGNONE", SWIG_From_int((int)wxSIGNONE)); |
30847 | PyDict_SetItemString(d,"SIGHUP", SWIG_From_int((int)wxSIGHUP)); | |
30848 | PyDict_SetItemString(d,"SIGINT", SWIG_From_int((int)wxSIGINT)); | |
30849 | PyDict_SetItemString(d,"SIGQUIT", SWIG_From_int((int)wxSIGQUIT)); | |
30850 | PyDict_SetItemString(d,"SIGILL", SWIG_From_int((int)wxSIGILL)); | |
30851 | PyDict_SetItemString(d,"SIGTRAP", SWIG_From_int((int)wxSIGTRAP)); | |
30852 | PyDict_SetItemString(d,"SIGABRT", SWIG_From_int((int)wxSIGABRT)); | |
30853 | PyDict_SetItemString(d,"SIGIOT", SWIG_From_int((int)wxSIGIOT)); | |
30854 | PyDict_SetItemString(d,"SIGEMT", SWIG_From_int((int)wxSIGEMT)); | |
30855 | PyDict_SetItemString(d,"SIGFPE", SWIG_From_int((int)wxSIGFPE)); | |
30856 | PyDict_SetItemString(d,"SIGKILL", SWIG_From_int((int)wxSIGKILL)); | |
30857 | PyDict_SetItemString(d,"SIGBUS", SWIG_From_int((int)wxSIGBUS)); | |
30858 | PyDict_SetItemString(d,"SIGSEGV", SWIG_From_int((int)wxSIGSEGV)); | |
30859 | PyDict_SetItemString(d,"SIGSYS", SWIG_From_int((int)wxSIGSYS)); | |
30860 | PyDict_SetItemString(d,"SIGPIPE", SWIG_From_int((int)wxSIGPIPE)); | |
30861 | PyDict_SetItemString(d,"SIGALRM", SWIG_From_int((int)wxSIGALRM)); | |
30862 | PyDict_SetItemString(d,"SIGTERM", SWIG_From_int((int)wxSIGTERM)); | |
d55e5bfc | 30863 | PyDict_SetItemString(d, "wxEVT_END_PROCESS", PyInt_FromLong(wxEVT_END_PROCESS)); |
c32bde28 RD |
30864 | PyDict_SetItemString(d,"EXEC_ASYNC", SWIG_From_int((int)wxEXEC_ASYNC)); |
30865 | PyDict_SetItemString(d,"EXEC_SYNC", SWIG_From_int((int)wxEXEC_SYNC)); | |
30866 | PyDict_SetItemString(d,"EXEC_NOHIDE", SWIG_From_int((int)wxEXEC_NOHIDE)); | |
30867 | PyDict_SetItemString(d,"EXEC_MAKE_GROUP_LEADER", SWIG_From_int((int)wxEXEC_MAKE_GROUP_LEADER)); | |
d55e5bfc RD |
30868 | |
30869 | wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess"); | |
30870 | ||
c32bde28 RD |
30871 | PyDict_SetItemString(d,"JOYSTICK1", SWIG_From_int((int)wxJOYSTICK1)); |
30872 | PyDict_SetItemString(d,"JOYSTICK2", SWIG_From_int((int)wxJOYSTICK2)); | |
30873 | PyDict_SetItemString(d,"JOY_BUTTON_ANY", SWIG_From_int((int)wxJOY_BUTTON_ANY)); | |
30874 | PyDict_SetItemString(d,"JOY_BUTTON1", SWIG_From_int((int)wxJOY_BUTTON1)); | |
30875 | PyDict_SetItemString(d,"JOY_BUTTON2", SWIG_From_int((int)wxJOY_BUTTON2)); | |
30876 | PyDict_SetItemString(d,"JOY_BUTTON3", SWIG_From_int((int)wxJOY_BUTTON3)); | |
30877 | PyDict_SetItemString(d,"JOY_BUTTON4", SWIG_From_int((int)wxJOY_BUTTON4)); | |
d55e5bfc RD |
30878 | PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong(wxEVT_JOY_BUTTON_DOWN)); |
30879 | PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_UP", PyInt_FromLong(wxEVT_JOY_BUTTON_UP)); | |
30880 | PyDict_SetItemString(d, "wxEVT_JOY_MOVE", PyInt_FromLong(wxEVT_JOY_MOVE)); | |
30881 | PyDict_SetItemString(d, "wxEVT_JOY_ZMOVE", PyInt_FromLong(wxEVT_JOY_ZMOVE)); | |
c32bde28 RD |
30882 | PyDict_SetItemString(d,"SOUND_SYNC", SWIG_From_int((int)wxSOUND_SYNC)); |
30883 | PyDict_SetItemString(d,"SOUND_ASYNC", SWIG_From_int((int)wxSOUND_ASYNC)); | |
30884 | PyDict_SetItemString(d,"SOUND_LOOP", SWIG_From_int((int)wxSOUND_LOOP)); | |
30885 | PyDict_SetItemString(d,"MAILCAP_STANDARD", SWIG_From_int((int)wxMAILCAP_STANDARD)); | |
30886 | PyDict_SetItemString(d,"MAILCAP_NETSCAPE", SWIG_From_int((int)wxMAILCAP_NETSCAPE)); | |
30887 | PyDict_SetItemString(d,"MAILCAP_KDE", SWIG_From_int((int)wxMAILCAP_KDE)); | |
30888 | PyDict_SetItemString(d,"MAILCAP_GNOME", SWIG_From_int((int)wxMAILCAP_GNOME)); | |
30889 | PyDict_SetItemString(d,"MAILCAP_ALL", SWIG_From_int((int)wxMAILCAP_ALL)); | |
d55e5bfc RD |
30890 | SWIG_addvarlink(SWIG_globals,(char*)"TheMimeTypesManager",_wrap_TheMimeTypesManager_get, _wrap_TheMimeTypesManager_set); |
30891 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TOOLBAR",_wrap_ART_TOOLBAR_get, _wrap_ART_TOOLBAR_set); | |
30892 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MENU",_wrap_ART_MENU_get, _wrap_ART_MENU_set); | |
30893 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FRAME_ICON",_wrap_ART_FRAME_ICON_get, _wrap_ART_FRAME_ICON_set); | |
30894 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CMN_DIALOG",_wrap_ART_CMN_DIALOG_get, _wrap_ART_CMN_DIALOG_set); | |
30895 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BROWSER",_wrap_ART_HELP_BROWSER_get, _wrap_ART_HELP_BROWSER_set); | |
30896 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MESSAGE_BOX",_wrap_ART_MESSAGE_BOX_get, _wrap_ART_MESSAGE_BOX_set); | |
4cf4100f | 30897 | SWIG_addvarlink(SWIG_globals,(char*)"ART_BUTTON",_wrap_ART_BUTTON_get, _wrap_ART_BUTTON_set); |
d55e5bfc RD |
30898 | SWIG_addvarlink(SWIG_globals,(char*)"ART_OTHER",_wrap_ART_OTHER_get, _wrap_ART_OTHER_set); |
30899 | SWIG_addvarlink(SWIG_globals,(char*)"ART_ADD_BOOKMARK",_wrap_ART_ADD_BOOKMARK_get, _wrap_ART_ADD_BOOKMARK_set); | |
30900 | SWIG_addvarlink(SWIG_globals,(char*)"ART_DEL_BOOKMARK",_wrap_ART_DEL_BOOKMARK_get, _wrap_ART_DEL_BOOKMARK_set); | |
30901 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SIDE_PANEL",_wrap_ART_HELP_SIDE_PANEL_get, _wrap_ART_HELP_SIDE_PANEL_set); | |
30902 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SETTINGS",_wrap_ART_HELP_SETTINGS_get, _wrap_ART_HELP_SETTINGS_set); | |
30903 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BOOK",_wrap_ART_HELP_BOOK_get, _wrap_ART_HELP_BOOK_set); | |
30904 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_FOLDER",_wrap_ART_HELP_FOLDER_get, _wrap_ART_HELP_FOLDER_set); | |
30905 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_PAGE",_wrap_ART_HELP_PAGE_get, _wrap_ART_HELP_PAGE_set); | |
30906 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_BACK",_wrap_ART_GO_BACK_get, _wrap_ART_GO_BACK_set); | |
30907 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_FORWARD",_wrap_ART_GO_FORWARD_get, _wrap_ART_GO_FORWARD_set); | |
30908 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_UP",_wrap_ART_GO_UP_get, _wrap_ART_GO_UP_set); | |
30909 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DOWN",_wrap_ART_GO_DOWN_get, _wrap_ART_GO_DOWN_set); | |
30910 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_TO_PARENT",_wrap_ART_GO_TO_PARENT_get, _wrap_ART_GO_TO_PARENT_set); | |
30911 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_HOME",_wrap_ART_GO_HOME_get, _wrap_ART_GO_HOME_set); | |
30912 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_OPEN",_wrap_ART_FILE_OPEN_get, _wrap_ART_FILE_OPEN_set); | |
30913 | SWIG_addvarlink(SWIG_globals,(char*)"ART_PRINT",_wrap_ART_PRINT_get, _wrap_ART_PRINT_set); | |
30914 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP",_wrap_ART_HELP_get, _wrap_ART_HELP_set); | |
30915 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TIP",_wrap_ART_TIP_get, _wrap_ART_TIP_set); | |
30916 | SWIG_addvarlink(SWIG_globals,(char*)"ART_REPORT_VIEW",_wrap_ART_REPORT_VIEW_get, _wrap_ART_REPORT_VIEW_set); | |
30917 | SWIG_addvarlink(SWIG_globals,(char*)"ART_LIST_VIEW",_wrap_ART_LIST_VIEW_get, _wrap_ART_LIST_VIEW_set); | |
30918 | SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW_DIR",_wrap_ART_NEW_DIR_get, _wrap_ART_NEW_DIR_set); | |
f78cc896 RD |
30919 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HARDDISK",_wrap_ART_HARDDISK_get, _wrap_ART_HARDDISK_set); |
30920 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FLOPPY",_wrap_ART_FLOPPY_get, _wrap_ART_FLOPPY_set); | |
30921 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CDROM",_wrap_ART_CDROM_get, _wrap_ART_CDROM_set); | |
30922 | SWIG_addvarlink(SWIG_globals,(char*)"ART_REMOVABLE",_wrap_ART_REMOVABLE_get, _wrap_ART_REMOVABLE_set); | |
d55e5bfc | 30923 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER",_wrap_ART_FOLDER_get, _wrap_ART_FOLDER_set); |
f78cc896 | 30924 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER_OPEN",_wrap_ART_FOLDER_OPEN_get, _wrap_ART_FOLDER_OPEN_set); |
d55e5bfc RD |
30925 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DIR_UP",_wrap_ART_GO_DIR_UP_get, _wrap_ART_GO_DIR_UP_set); |
30926 | SWIG_addvarlink(SWIG_globals,(char*)"ART_EXECUTABLE_FILE",_wrap_ART_EXECUTABLE_FILE_get, _wrap_ART_EXECUTABLE_FILE_set); | |
30927 | SWIG_addvarlink(SWIG_globals,(char*)"ART_NORMAL_FILE",_wrap_ART_NORMAL_FILE_get, _wrap_ART_NORMAL_FILE_set); | |
30928 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TICK_MARK",_wrap_ART_TICK_MARK_get, _wrap_ART_TICK_MARK_set); | |
30929 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CROSS_MARK",_wrap_ART_CROSS_MARK_get, _wrap_ART_CROSS_MARK_set); | |
30930 | SWIG_addvarlink(SWIG_globals,(char*)"ART_ERROR",_wrap_ART_ERROR_get, _wrap_ART_ERROR_set); | |
30931 | SWIG_addvarlink(SWIG_globals,(char*)"ART_QUESTION",_wrap_ART_QUESTION_get, _wrap_ART_QUESTION_set); | |
30932 | SWIG_addvarlink(SWIG_globals,(char*)"ART_WARNING",_wrap_ART_WARNING_get, _wrap_ART_WARNING_set); | |
30933 | SWIG_addvarlink(SWIG_globals,(char*)"ART_INFORMATION",_wrap_ART_INFORMATION_get, _wrap_ART_INFORMATION_set); | |
30934 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MISSING_IMAGE",_wrap_ART_MISSING_IMAGE_get, _wrap_ART_MISSING_IMAGE_set); | |
30935 | ||
30936 | wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider"); | |
30937 | ||
c32bde28 RD |
30938 | PyDict_SetItemString(d,"CONFIG_USE_LOCAL_FILE", SWIG_From_int((int)wxCONFIG_USE_LOCAL_FILE)); |
30939 | PyDict_SetItemString(d,"CONFIG_USE_GLOBAL_FILE", SWIG_From_int((int)wxCONFIG_USE_GLOBAL_FILE)); | |
30940 | PyDict_SetItemString(d,"CONFIG_USE_RELATIVE_PATH", SWIG_From_int((int)wxCONFIG_USE_RELATIVE_PATH)); | |
30941 | PyDict_SetItemString(d,"CONFIG_USE_NO_ESCAPE_CHARACTERS", SWIG_From_int((int)wxCONFIG_USE_NO_ESCAPE_CHARACTERS)); | |
30942 | PyDict_SetItemString(d,"ConfigBase_Type_Unknown", SWIG_From_int((int)wxConfigBase::Type_Unknown)); | |
30943 | PyDict_SetItemString(d,"ConfigBase_Type_String", SWIG_From_int((int)wxConfigBase::Type_String)); | |
30944 | PyDict_SetItemString(d,"ConfigBase_Type_Boolean", SWIG_From_int((int)wxConfigBase::Type_Boolean)); | |
30945 | PyDict_SetItemString(d,"ConfigBase_Type_Integer", SWIG_From_int((int)wxConfigBase::Type_Integer)); | |
30946 | PyDict_SetItemString(d,"ConfigBase_Type_Float", SWIG_From_int((int)wxConfigBase::Type_Float)); | |
d55e5bfc RD |
30947 | SWIG_addvarlink(SWIG_globals,(char*)"DateFormatStr",_wrap_DateFormatStr_get, _wrap_DateFormatStr_set); |
30948 | SWIG_addvarlink(SWIG_globals,(char*)"TimeSpanFormatStr",_wrap_TimeSpanFormatStr_get, _wrap_TimeSpanFormatStr_set); | |
c32bde28 RD |
30949 | PyDict_SetItemString(d,"DateTime_Local", SWIG_From_int((int)wxDateTime::Local)); |
30950 | PyDict_SetItemString(d,"DateTime_GMT_12", SWIG_From_int((int)wxDateTime::GMT_12)); | |
30951 | PyDict_SetItemString(d,"DateTime_GMT_11", SWIG_From_int((int)wxDateTime::GMT_11)); | |
30952 | PyDict_SetItemString(d,"DateTime_GMT_10", SWIG_From_int((int)wxDateTime::GMT_10)); | |
30953 | PyDict_SetItemString(d,"DateTime_GMT_9", SWIG_From_int((int)wxDateTime::GMT_9)); | |
30954 | PyDict_SetItemString(d,"DateTime_GMT_8", SWIG_From_int((int)wxDateTime::GMT_8)); | |
30955 | PyDict_SetItemString(d,"DateTime_GMT_7", SWIG_From_int((int)wxDateTime::GMT_7)); | |
30956 | PyDict_SetItemString(d,"DateTime_GMT_6", SWIG_From_int((int)wxDateTime::GMT_6)); | |
30957 | PyDict_SetItemString(d,"DateTime_GMT_5", SWIG_From_int((int)wxDateTime::GMT_5)); | |
30958 | PyDict_SetItemString(d,"DateTime_GMT_4", SWIG_From_int((int)wxDateTime::GMT_4)); | |
30959 | PyDict_SetItemString(d,"DateTime_GMT_3", SWIG_From_int((int)wxDateTime::GMT_3)); | |
30960 | PyDict_SetItemString(d,"DateTime_GMT_2", SWIG_From_int((int)wxDateTime::GMT_2)); | |
30961 | PyDict_SetItemString(d,"DateTime_GMT_1", SWIG_From_int((int)wxDateTime::GMT_1)); | |
30962 | PyDict_SetItemString(d,"DateTime_GMT0", SWIG_From_int((int)wxDateTime::GMT0)); | |
30963 | PyDict_SetItemString(d,"DateTime_GMT1", SWIG_From_int((int)wxDateTime::GMT1)); | |
30964 | PyDict_SetItemString(d,"DateTime_GMT2", SWIG_From_int((int)wxDateTime::GMT2)); | |
30965 | PyDict_SetItemString(d,"DateTime_GMT3", SWIG_From_int((int)wxDateTime::GMT3)); | |
30966 | PyDict_SetItemString(d,"DateTime_GMT4", SWIG_From_int((int)wxDateTime::GMT4)); | |
30967 | PyDict_SetItemString(d,"DateTime_GMT5", SWIG_From_int((int)wxDateTime::GMT5)); | |
30968 | PyDict_SetItemString(d,"DateTime_GMT6", SWIG_From_int((int)wxDateTime::GMT6)); | |
30969 | PyDict_SetItemString(d,"DateTime_GMT7", SWIG_From_int((int)wxDateTime::GMT7)); | |
30970 | PyDict_SetItemString(d,"DateTime_GMT8", SWIG_From_int((int)wxDateTime::GMT8)); | |
30971 | PyDict_SetItemString(d,"DateTime_GMT9", SWIG_From_int((int)wxDateTime::GMT9)); | |
30972 | PyDict_SetItemString(d,"DateTime_GMT10", SWIG_From_int((int)wxDateTime::GMT10)); | |
30973 | PyDict_SetItemString(d,"DateTime_GMT11", SWIG_From_int((int)wxDateTime::GMT11)); | |
30974 | PyDict_SetItemString(d,"DateTime_GMT12", SWIG_From_int((int)wxDateTime::GMT12)); | |
30975 | PyDict_SetItemString(d,"DateTime_WET", SWIG_From_int((int)wxDateTime::WET)); | |
30976 | PyDict_SetItemString(d,"DateTime_WEST", SWIG_From_int((int)wxDateTime::WEST)); | |
30977 | PyDict_SetItemString(d,"DateTime_CET", SWIG_From_int((int)wxDateTime::CET)); | |
30978 | PyDict_SetItemString(d,"DateTime_CEST", SWIG_From_int((int)wxDateTime::CEST)); | |
30979 | PyDict_SetItemString(d,"DateTime_EET", SWIG_From_int((int)wxDateTime::EET)); | |
30980 | PyDict_SetItemString(d,"DateTime_EEST", SWIG_From_int((int)wxDateTime::EEST)); | |
30981 | PyDict_SetItemString(d,"DateTime_MSK", SWIG_From_int((int)wxDateTime::MSK)); | |
30982 | PyDict_SetItemString(d,"DateTime_MSD", SWIG_From_int((int)wxDateTime::MSD)); | |
30983 | PyDict_SetItemString(d,"DateTime_AST", SWIG_From_int((int)wxDateTime::AST)); | |
30984 | PyDict_SetItemString(d,"DateTime_ADT", SWIG_From_int((int)wxDateTime::ADT)); | |
30985 | PyDict_SetItemString(d,"DateTime_EST", SWIG_From_int((int)wxDateTime::EST)); | |
30986 | PyDict_SetItemString(d,"DateTime_EDT", SWIG_From_int((int)wxDateTime::EDT)); | |
30987 | PyDict_SetItemString(d,"DateTime_CST", SWIG_From_int((int)wxDateTime::CST)); | |
30988 | PyDict_SetItemString(d,"DateTime_CDT", SWIG_From_int((int)wxDateTime::CDT)); | |
30989 | PyDict_SetItemString(d,"DateTime_MST", SWIG_From_int((int)wxDateTime::MST)); | |
30990 | PyDict_SetItemString(d,"DateTime_MDT", SWIG_From_int((int)wxDateTime::MDT)); | |
30991 | PyDict_SetItemString(d,"DateTime_PST", SWIG_From_int((int)wxDateTime::PST)); | |
30992 | PyDict_SetItemString(d,"DateTime_PDT", SWIG_From_int((int)wxDateTime::PDT)); | |
30993 | PyDict_SetItemString(d,"DateTime_HST", SWIG_From_int((int)wxDateTime::HST)); | |
30994 | PyDict_SetItemString(d,"DateTime_AKST", SWIG_From_int((int)wxDateTime::AKST)); | |
30995 | PyDict_SetItemString(d,"DateTime_AKDT", SWIG_From_int((int)wxDateTime::AKDT)); | |
30996 | PyDict_SetItemString(d,"DateTime_A_WST", SWIG_From_int((int)wxDateTime::A_WST)); | |
30997 | PyDict_SetItemString(d,"DateTime_A_CST", SWIG_From_int((int)wxDateTime::A_CST)); | |
30998 | PyDict_SetItemString(d,"DateTime_A_EST", SWIG_From_int((int)wxDateTime::A_EST)); | |
30999 | PyDict_SetItemString(d,"DateTime_A_ESST", SWIG_From_int((int)wxDateTime::A_ESST)); | |
31000 | PyDict_SetItemString(d,"DateTime_UTC", SWIG_From_int((int)wxDateTime::UTC)); | |
31001 | PyDict_SetItemString(d,"DateTime_Gregorian", SWIG_From_int((int)wxDateTime::Gregorian)); | |
31002 | PyDict_SetItemString(d,"DateTime_Julian", SWIG_From_int((int)wxDateTime::Julian)); | |
31003 | PyDict_SetItemString(d,"DateTime_Gr_Unknown", SWIG_From_int((int)wxDateTime::Gr_Unknown)); | |
31004 | PyDict_SetItemString(d,"DateTime_Gr_Standard", SWIG_From_int((int)wxDateTime::Gr_Standard)); | |
31005 | PyDict_SetItemString(d,"DateTime_Gr_Alaska", SWIG_From_int((int)wxDateTime::Gr_Alaska)); | |
31006 | PyDict_SetItemString(d,"DateTime_Gr_Albania", SWIG_From_int((int)wxDateTime::Gr_Albania)); | |
31007 | PyDict_SetItemString(d,"DateTime_Gr_Austria", SWIG_From_int((int)wxDateTime::Gr_Austria)); | |
31008 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Brixen", SWIG_From_int((int)wxDateTime::Gr_Austria_Brixen)); | |
31009 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Salzburg", SWIG_From_int((int)wxDateTime::Gr_Austria_Salzburg)); | |
31010 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Tyrol", SWIG_From_int((int)wxDateTime::Gr_Austria_Tyrol)); | |
31011 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Carinthia", SWIG_From_int((int)wxDateTime::Gr_Austria_Carinthia)); | |
31012 | PyDict_SetItemString(d,"DateTime_Gr_Austria_Styria", SWIG_From_int((int)wxDateTime::Gr_Austria_Styria)); | |
31013 | PyDict_SetItemString(d,"DateTime_Gr_Belgium", SWIG_From_int((int)wxDateTime::Gr_Belgium)); | |
31014 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria", SWIG_From_int((int)wxDateTime::Gr_Bulgaria)); | |
31015 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_1", SWIG_From_int((int)wxDateTime::Gr_Bulgaria_1)); | |
31016 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_2", SWIG_From_int((int)wxDateTime::Gr_Bulgaria_2)); | |
31017 | PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_3", SWIG_From_int((int)wxDateTime::Gr_Bulgaria_3)); | |
31018 | PyDict_SetItemString(d,"DateTime_Gr_Canada", SWIG_From_int((int)wxDateTime::Gr_Canada)); | |
31019 | PyDict_SetItemString(d,"DateTime_Gr_China", SWIG_From_int((int)wxDateTime::Gr_China)); | |
31020 | PyDict_SetItemString(d,"DateTime_Gr_China_1", SWIG_From_int((int)wxDateTime::Gr_China_1)); | |
31021 | PyDict_SetItemString(d,"DateTime_Gr_China_2", SWIG_From_int((int)wxDateTime::Gr_China_2)); | |
31022 | PyDict_SetItemString(d,"DateTime_Gr_Czechoslovakia", SWIG_From_int((int)wxDateTime::Gr_Czechoslovakia)); | |
31023 | PyDict_SetItemString(d,"DateTime_Gr_Denmark", SWIG_From_int((int)wxDateTime::Gr_Denmark)); | |
31024 | PyDict_SetItemString(d,"DateTime_Gr_Egypt", SWIG_From_int((int)wxDateTime::Gr_Egypt)); | |
31025 | PyDict_SetItemString(d,"DateTime_Gr_Estonia", SWIG_From_int((int)wxDateTime::Gr_Estonia)); | |
31026 | PyDict_SetItemString(d,"DateTime_Gr_Finland", SWIG_From_int((int)wxDateTime::Gr_Finland)); | |
31027 | PyDict_SetItemString(d,"DateTime_Gr_France", SWIG_From_int((int)wxDateTime::Gr_France)); | |
31028 | PyDict_SetItemString(d,"DateTime_Gr_France_Alsace", SWIG_From_int((int)wxDateTime::Gr_France_Alsace)); | |
31029 | PyDict_SetItemString(d,"DateTime_Gr_France_Lorraine", SWIG_From_int((int)wxDateTime::Gr_France_Lorraine)); | |
31030 | PyDict_SetItemString(d,"DateTime_Gr_France_Strasbourg", SWIG_From_int((int)wxDateTime::Gr_France_Strasbourg)); | |
31031 | PyDict_SetItemString(d,"DateTime_Gr_Germany", SWIG_From_int((int)wxDateTime::Gr_Germany)); | |
31032 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Catholic", SWIG_From_int((int)wxDateTime::Gr_Germany_Catholic)); | |
31033 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Prussia", SWIG_From_int((int)wxDateTime::Gr_Germany_Prussia)); | |
31034 | PyDict_SetItemString(d,"DateTime_Gr_Germany_Protestant", SWIG_From_int((int)wxDateTime::Gr_Germany_Protestant)); | |
31035 | PyDict_SetItemString(d,"DateTime_Gr_GreatBritain", SWIG_From_int((int)wxDateTime::Gr_GreatBritain)); | |
31036 | PyDict_SetItemString(d,"DateTime_Gr_Greece", SWIG_From_int((int)wxDateTime::Gr_Greece)); | |
31037 | PyDict_SetItemString(d,"DateTime_Gr_Hungary", SWIG_From_int((int)wxDateTime::Gr_Hungary)); | |
31038 | PyDict_SetItemString(d,"DateTime_Gr_Ireland", SWIG_From_int((int)wxDateTime::Gr_Ireland)); | |
31039 | PyDict_SetItemString(d,"DateTime_Gr_Italy", SWIG_From_int((int)wxDateTime::Gr_Italy)); | |
31040 | PyDict_SetItemString(d,"DateTime_Gr_Japan", SWIG_From_int((int)wxDateTime::Gr_Japan)); | |
31041 | PyDict_SetItemString(d,"DateTime_Gr_Japan_1", SWIG_From_int((int)wxDateTime::Gr_Japan_1)); | |
31042 | PyDict_SetItemString(d,"DateTime_Gr_Japan_2", SWIG_From_int((int)wxDateTime::Gr_Japan_2)); | |
31043 | PyDict_SetItemString(d,"DateTime_Gr_Japan_3", SWIG_From_int((int)wxDateTime::Gr_Japan_3)); | |
31044 | PyDict_SetItemString(d,"DateTime_Gr_Latvia", SWIG_From_int((int)wxDateTime::Gr_Latvia)); | |
31045 | PyDict_SetItemString(d,"DateTime_Gr_Lithuania", SWIG_From_int((int)wxDateTime::Gr_Lithuania)); | |
31046 | PyDict_SetItemString(d,"DateTime_Gr_Luxemburg", SWIG_From_int((int)wxDateTime::Gr_Luxemburg)); | |
31047 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands", SWIG_From_int((int)wxDateTime::Gr_Netherlands)); | |
31048 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Groningen", SWIG_From_int((int)wxDateTime::Gr_Netherlands_Groningen)); | |
31049 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Gelderland", SWIG_From_int((int)wxDateTime::Gr_Netherlands_Gelderland)); | |
31050 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Utrecht", SWIG_From_int((int)wxDateTime::Gr_Netherlands_Utrecht)); | |
31051 | PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Friesland", SWIG_From_int((int)wxDateTime::Gr_Netherlands_Friesland)); | |
31052 | PyDict_SetItemString(d,"DateTime_Gr_Norway", SWIG_From_int((int)wxDateTime::Gr_Norway)); | |
31053 | PyDict_SetItemString(d,"DateTime_Gr_Poland", SWIG_From_int((int)wxDateTime::Gr_Poland)); | |
31054 | PyDict_SetItemString(d,"DateTime_Gr_Portugal", SWIG_From_int((int)wxDateTime::Gr_Portugal)); | |
31055 | PyDict_SetItemString(d,"DateTime_Gr_Romania", SWIG_From_int((int)wxDateTime::Gr_Romania)); | |
31056 | PyDict_SetItemString(d,"DateTime_Gr_Russia", SWIG_From_int((int)wxDateTime::Gr_Russia)); | |
31057 | PyDict_SetItemString(d,"DateTime_Gr_Scotland", SWIG_From_int((int)wxDateTime::Gr_Scotland)); | |
31058 | PyDict_SetItemString(d,"DateTime_Gr_Spain", SWIG_From_int((int)wxDateTime::Gr_Spain)); | |
31059 | PyDict_SetItemString(d,"DateTime_Gr_Sweden", SWIG_From_int((int)wxDateTime::Gr_Sweden)); | |
31060 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland", SWIG_From_int((int)wxDateTime::Gr_Switzerland)); | |
31061 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Catholic", SWIG_From_int((int)wxDateTime::Gr_Switzerland_Catholic)); | |
31062 | PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Protestant", SWIG_From_int((int)wxDateTime::Gr_Switzerland_Protestant)); | |
31063 | PyDict_SetItemString(d,"DateTime_Gr_Turkey", SWIG_From_int((int)wxDateTime::Gr_Turkey)); | |
31064 | PyDict_SetItemString(d,"DateTime_Gr_USA", SWIG_From_int((int)wxDateTime::Gr_USA)); | |
31065 | PyDict_SetItemString(d,"DateTime_Gr_Wales", SWIG_From_int((int)wxDateTime::Gr_Wales)); | |
31066 | PyDict_SetItemString(d,"DateTime_Gr_Yugoslavia", SWIG_From_int((int)wxDateTime::Gr_Yugoslavia)); | |
31067 | PyDict_SetItemString(d,"DateTime_Country_Unknown", SWIG_From_int((int)wxDateTime::Country_Unknown)); | |
31068 | PyDict_SetItemString(d,"DateTime_Country_Default", SWIG_From_int((int)wxDateTime::Country_Default)); | |
31069 | PyDict_SetItemString(d,"DateTime_Country_WesternEurope_Start", SWIG_From_int((int)wxDateTime::Country_WesternEurope_Start)); | |
31070 | PyDict_SetItemString(d,"DateTime_Country_EEC", SWIG_From_int((int)wxDateTime::Country_EEC)); | |
31071 | PyDict_SetItemString(d,"DateTime_France", SWIG_From_int((int)wxDateTime::France)); | |
31072 | PyDict_SetItemString(d,"DateTime_Germany", SWIG_From_int((int)wxDateTime::Germany)); | |
31073 | PyDict_SetItemString(d,"DateTime_UK", SWIG_From_int((int)wxDateTime::UK)); | |
31074 | PyDict_SetItemString(d,"DateTime_Country_WesternEurope_End", SWIG_From_int((int)wxDateTime::Country_WesternEurope_End)); | |
31075 | PyDict_SetItemString(d,"DateTime_Russia", SWIG_From_int((int)wxDateTime::Russia)); | |
31076 | PyDict_SetItemString(d,"DateTime_USA", SWIG_From_int((int)wxDateTime::USA)); | |
31077 | PyDict_SetItemString(d,"DateTime_Jan", SWIG_From_int((int)wxDateTime::Jan)); | |
31078 | PyDict_SetItemString(d,"DateTime_Feb", SWIG_From_int((int)wxDateTime::Feb)); | |
31079 | PyDict_SetItemString(d,"DateTime_Mar", SWIG_From_int((int)wxDateTime::Mar)); | |
31080 | PyDict_SetItemString(d,"DateTime_Apr", SWIG_From_int((int)wxDateTime::Apr)); | |
31081 | PyDict_SetItemString(d,"DateTime_May", SWIG_From_int((int)wxDateTime::May)); | |
31082 | PyDict_SetItemString(d,"DateTime_Jun", SWIG_From_int((int)wxDateTime::Jun)); | |
31083 | PyDict_SetItemString(d,"DateTime_Jul", SWIG_From_int((int)wxDateTime::Jul)); | |
31084 | PyDict_SetItemString(d,"DateTime_Aug", SWIG_From_int((int)wxDateTime::Aug)); | |
31085 | PyDict_SetItemString(d,"DateTime_Sep", SWIG_From_int((int)wxDateTime::Sep)); | |
31086 | PyDict_SetItemString(d,"DateTime_Oct", SWIG_From_int((int)wxDateTime::Oct)); | |
31087 | PyDict_SetItemString(d,"DateTime_Nov", SWIG_From_int((int)wxDateTime::Nov)); | |
31088 | PyDict_SetItemString(d,"DateTime_Dec", SWIG_From_int((int)wxDateTime::Dec)); | |
31089 | PyDict_SetItemString(d,"DateTime_Inv_Month", SWIG_From_int((int)wxDateTime::Inv_Month)); | |
31090 | PyDict_SetItemString(d,"DateTime_Sun", SWIG_From_int((int)wxDateTime::Sun)); | |
31091 | PyDict_SetItemString(d,"DateTime_Mon", SWIG_From_int((int)wxDateTime::Mon)); | |
31092 | PyDict_SetItemString(d,"DateTime_Tue", SWIG_From_int((int)wxDateTime::Tue)); | |
31093 | PyDict_SetItemString(d,"DateTime_Wed", SWIG_From_int((int)wxDateTime::Wed)); | |
31094 | PyDict_SetItemString(d,"DateTime_Thu", SWIG_From_int((int)wxDateTime::Thu)); | |
31095 | PyDict_SetItemString(d,"DateTime_Fri", SWIG_From_int((int)wxDateTime::Fri)); | |
31096 | PyDict_SetItemString(d,"DateTime_Sat", SWIG_From_int((int)wxDateTime::Sat)); | |
31097 | PyDict_SetItemString(d,"DateTime_Inv_WeekDay", SWIG_From_int((int)wxDateTime::Inv_WeekDay)); | |
31098 | PyDict_SetItemString(d,"DateTime_Inv_Year", SWIG_From_int((int)wxDateTime::Inv_Year)); | |
31099 | PyDict_SetItemString(d,"DateTime_Name_Full", SWIG_From_int((int)wxDateTime::Name_Full)); | |
31100 | PyDict_SetItemString(d,"DateTime_Name_Abbr", SWIG_From_int((int)wxDateTime::Name_Abbr)); | |
31101 | PyDict_SetItemString(d,"DateTime_Default_First", SWIG_From_int((int)wxDateTime::Default_First)); | |
31102 | PyDict_SetItemString(d,"DateTime_Monday_First", SWIG_From_int((int)wxDateTime::Monday_First)); | |
31103 | PyDict_SetItemString(d,"DateTime_Sunday_First", SWIG_From_int((int)wxDateTime::Sunday_First)); | |
d55e5bfc | 31104 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultDateTime",_wrap_DefaultDateTime_get, _wrap_DefaultDateTime_set); |
c32bde28 RD |
31105 | PyDict_SetItemString(d,"DF_INVALID", SWIG_From_int((int)wxDF_INVALID)); |
31106 | PyDict_SetItemString(d,"DF_TEXT", SWIG_From_int((int)wxDF_TEXT)); | |
31107 | PyDict_SetItemString(d,"DF_BITMAP", SWIG_From_int((int)wxDF_BITMAP)); | |
31108 | PyDict_SetItemString(d,"DF_METAFILE", SWIG_From_int((int)wxDF_METAFILE)); | |
31109 | PyDict_SetItemString(d,"DF_SYLK", SWIG_From_int((int)wxDF_SYLK)); | |
31110 | PyDict_SetItemString(d,"DF_DIF", SWIG_From_int((int)wxDF_DIF)); | |
31111 | PyDict_SetItemString(d,"DF_TIFF", SWIG_From_int((int)wxDF_TIFF)); | |
31112 | PyDict_SetItemString(d,"DF_OEMTEXT", SWIG_From_int((int)wxDF_OEMTEXT)); | |
31113 | PyDict_SetItemString(d,"DF_DIB", SWIG_From_int((int)wxDF_DIB)); | |
31114 | PyDict_SetItemString(d,"DF_PALETTE", SWIG_From_int((int)wxDF_PALETTE)); | |
31115 | PyDict_SetItemString(d,"DF_PENDATA", SWIG_From_int((int)wxDF_PENDATA)); | |
31116 | PyDict_SetItemString(d,"DF_RIFF", SWIG_From_int((int)wxDF_RIFF)); | |
31117 | PyDict_SetItemString(d,"DF_WAVE", SWIG_From_int((int)wxDF_WAVE)); | |
31118 | PyDict_SetItemString(d,"DF_UNICODETEXT", SWIG_From_int((int)wxDF_UNICODETEXT)); | |
31119 | PyDict_SetItemString(d,"DF_ENHMETAFILE", SWIG_From_int((int)wxDF_ENHMETAFILE)); | |
31120 | PyDict_SetItemString(d,"DF_FILENAME", SWIG_From_int((int)wxDF_FILENAME)); | |
31121 | PyDict_SetItemString(d,"DF_LOCALE", SWIG_From_int((int)wxDF_LOCALE)); | |
31122 | PyDict_SetItemString(d,"DF_PRIVATE", SWIG_From_int((int)wxDF_PRIVATE)); | |
31123 | PyDict_SetItemString(d,"DF_HTML", SWIG_From_int((int)wxDF_HTML)); | |
31124 | PyDict_SetItemString(d,"DF_MAX", SWIG_From_int((int)wxDF_MAX)); | |
d55e5bfc | 31125 | SWIG_addvarlink(SWIG_globals,(char*)"FormatInvalid",_wrap_FormatInvalid_get, _wrap_FormatInvalid_set); |
c32bde28 RD |
31126 | PyDict_SetItemString(d,"DataObject_Get", SWIG_From_int((int)wxDataObject::Get)); |
31127 | PyDict_SetItemString(d,"DataObject_Set", SWIG_From_int((int)wxDataObject::Set)); | |
31128 | PyDict_SetItemString(d,"DataObject_Both", SWIG_From_int((int)wxDataObject::Both)); | |
31129 | PyDict_SetItemString(d,"Drag_CopyOnly", SWIG_From_int((int)wxDrag_CopyOnly)); | |
31130 | PyDict_SetItemString(d,"Drag_AllowMove", SWIG_From_int((int)wxDrag_AllowMove)); | |
31131 | PyDict_SetItemString(d,"Drag_DefaultMove", SWIG_From_int((int)wxDrag_DefaultMove)); | |
31132 | PyDict_SetItemString(d,"DragError", SWIG_From_int((int)wxDragError)); | |
31133 | PyDict_SetItemString(d,"DragNone", SWIG_From_int((int)wxDragNone)); | |
31134 | PyDict_SetItemString(d,"DragCopy", SWIG_From_int((int)wxDragCopy)); | |
31135 | PyDict_SetItemString(d,"DragMove", SWIG_From_int((int)wxDragMove)); | |
31136 | PyDict_SetItemString(d,"DragLink", SWIG_From_int((int)wxDragLink)); | |
31137 | PyDict_SetItemString(d,"DragCancel", SWIG_From_int((int)wxDragCancel)); | |
d55e5bfc RD |
31138 | |
31139 | wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource"); | |
31140 | wxPyPtrTypeMap_Add("wxDropTarget", "wxPyDropTarget"); | |
31141 | wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget"); | |
31142 | wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget"); | |
31143 | ||
d55e5bfc RD |
31144 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultVideoMode",_wrap_DefaultVideoMode_get, _wrap_DefaultVideoMode_set); |
31145 | } | |
31146 |